var NTe=Object.defineProperty;var BTe=(e,t,r)=>t in e?NTe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ie=(e,t,r)=>BTe(e,typeof t!="symbol"?t+"":t,r);function ise(e,t){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function xx(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var h_={exports:{}},Qb={},p_={exports:{}},tn={};/** * @license React * react.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 LU;function $Te(){if(LU)return tn;LU=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),d=Symbol.iterator;function h(V){return V===null||typeof V!="object"?null:(V=d&&V[d]||V["@@iterator"],typeof V=="function"?V:null)}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f=Object.assign,g={};function m(V,$,K){this.props=V,this.context=$,this.refs=g,this.updater=K||p}m.prototype.isReactComponent={},m.prototype.setState=function(V,$){if(typeof V!="object"&&typeof V!="function"&&V!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,V,$,"setState")},m.prototype.forceUpdate=function(V){this.updater.enqueueForceUpdate(this,V,"forceUpdate")};function y(){}y.prototype=m.prototype;function b(V,$,K){this.props=V,this.context=$,this.refs=g,this.updater=K||p}var S=b.prototype=new y;S.constructor=b,f(S,m.prototype),S.isPureReactComponent=!0;var x=Array.isArray,E=Object.prototype.hasOwnProperty,R={current:null},T={key:!0,ref:!0,__self:!0,__source:!0};function M(V,$,K){var q,X={},Y=null,oe=null;if($!=null)for(q in $.ref!==void 0&&(oe=$.ref),$.key!==void 0&&(Y=""+$.key),$)E.call($,q)&&!T.hasOwnProperty(q)&&(X[q]=$[q]);var ee=arguments.length-2;if(ee===1)X.children=K;else if(1>>1,$=N[V];if(0>>1;Vi(X,W))Y<$&&0>i(oe,X)?(N[V]=oe,N[Y]=W,V=Y):(N[V]=X,N[q]=W,V=q);else if(Y<$&&0>i(oe,W))N[V]=oe,N[Y]=W,V=Y;else break e}}return z}function i(N,z){var W=N.sortIndex-z.sortIndex;return W!==0?W:N.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],c=[],u=1,d=null,h=3,p=!1,f=!1,g=!1,m=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(N){for(var z=r(c);z!==null;){if(z.callback===null)n(c);else if(z.startTime<=N)n(c),z.sortIndex=z.expirationTime,t(l,z);else break;z=r(c)}}function x(N){if(g=!1,S(N),!f)if(r(l)!==null)f=!0,B(E);else{var z=r(c);z!==null&&H(x,z.startTime-N)}}function E(N,z){f=!1,g&&(g=!1,y(M),M=-1),p=!0;var W=h;try{for(S(z),d=r(l);d!==null&&(!(d.expirationTime>z)||N&&!I());){var V=d.callback;if(typeof V=="function"){d.callback=null,h=d.priorityLevel;var $=V(d.expirationTime<=z);z=e.unstable_now(),typeof $=="function"?d.callback=$:d===r(l)&&n(l),S(z)}else n(l);d=r(l)}if(d!==null)var K=!0;else{var q=r(c);q!==null&&H(x,q.startTime-z),K=!1}return K}finally{d=null,h=W,p=!1}}var R=!1,T=null,M=-1,D=5,A=-1;function I(){return!(e.unstable_now()-AN||125V?(N.sortIndex=W,t(c,N),r(l)===null&&N===r(c)&&(g?(y(M),M=-1):g=!0,H(x,W-V))):(N.sortIndex=$,t(l,N),f||p||(f=!0,B(E))),N},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(N){var z=h;return function(){var W=h;h=z;try{return N.apply(this,arguments)}finally{h=W}}}})(m_)),m_}var BU;function HTe(){return BU||(BU=1,g_.exports=zTe()),g_.exports}/** * @license React * react-dom.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 $U;function WTe(){if($U)return zs;$U=1;var e=h4(),t=HTe();function r(C){for(var w="https://reactjs.org/docs/error-decoder.html?invariant="+C,P=1;P"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),l=Object.prototype.hasOwnProperty,c=/^[: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]*$/,u={},d={};function h(C){return l.call(d,C)?!0:l.call(u,C)?!1:c.test(C)?d[C]=!0:(u[C]=!0,!1)}function p(C,w,P,_){if(P!==null&&P.type===0)return!1;switch(typeof w){case"function":case"symbol":return!0;case"boolean":return _?!1:P!==null?!P.acceptsBooleans:(C=C.toLowerCase().slice(0,5),C!=="data-"&&C!=="aria-");default:return!1}}function f(C,w,P,_){if(w===null||typeof w>"u"||p(C,w,P,_))return!0;if(_)return!1;if(P!==null)switch(P.type){case 3:return!w;case 4:return w===!1;case 5:return isNaN(w);case 6:return isNaN(w)||1>w}return!1}function g(C,w,P,_,G,U,te){this.acceptsBooleans=w===2||w===3||w===4,this.attributeName=_,this.attributeNamespace=G,this.mustUseProperty=P,this.propertyName=C,this.type=w,this.sanitizeURL=U,this.removeEmptyString=te}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(C){m[C]=new g(C,0,!1,C,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(C){var w=C[0];m[w]=new g(w,1,!1,C[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(C){m[C]=new g(C,2,!1,C.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(C){m[C]=new g(C,2,!1,C,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(C){m[C]=new g(C,3,!1,C.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(C){m[C]=new g(C,3,!0,C,null,!1,!1)}),["capture","download"].forEach(function(C){m[C]=new g(C,4,!1,C,null,!1,!1)}),["cols","rows","size","span"].forEach(function(C){m[C]=new g(C,6,!1,C,null,!1,!1)}),["rowSpan","start"].forEach(function(C){m[C]=new g(C,5,!1,C.toLowerCase(),null,!1,!1)});var y=/[\-:]([a-z])/g;function b(C){return C[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(C){var w=C.replace(y,b);m[w]=new g(w,1,!1,C,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(C){var w=C.replace(y,b);m[w]=new g(w,1,!1,C,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(C){var w=C.replace(y,b);m[w]=new g(w,1,!1,C,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(C){m[C]=new g(C,1,!1,C.toLowerCase(),null,!1,!1)}),m.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(C){m[C]=new g(C,1,!1,C.toLowerCase(),null,!0,!0)});function S(C,w,P,_){var G=m.hasOwnProperty(w)?m[w]:null;(G!==null?G.type!==0:_||!(2ye||G[te]!==U[ye]){var Se=` `+G[te].replace(" at new "," at ");return C.displayName&&Se.includes("")&&(Se=Se.replace("",C.displayName)),Se}while(1<=te&&0<=ye);break}}}finally{K=!1,Error.prepareStackTrace=P}return(C=C?C.displayName||C.name:"")?$(C):""}function X(C){switch(C.tag){case 5:return $(C.type);case 16:return $("Lazy");case 13:return $("Suspense");case 19:return $("SuspenseList");case 0:case 2:case 15:return C=q(C.type,!1),C;case 11:return C=q(C.type.render,!1),C;case 1:return C=q(C.type,!0),C;default:return""}}function Y(C){if(C==null)return null;if(typeof C=="function")return C.displayName||C.name||null;if(typeof C=="string")return C;switch(C){case T:return"Fragment";case R:return"Portal";case D:return"Profiler";case M:return"StrictMode";case F:return"Suspense";case O:return"SuspenseList"}if(typeof C=="object")switch(C.$$typeof){case I:return(C.displayName||"Context")+".Consumer";case A:return(C._context.displayName||"Context")+".Provider";case L:var w=C.render;return C=C.displayName,C||(C=w.displayName||w.name||"",C=C!==""?"ForwardRef("+C+")":"ForwardRef"),C;case k:return w=C.displayName||null,w!==null?w:Y(C.type)||"Memo";case B:w=C._payload,C=C._init;try{return Y(C(w))}catch{}}return null}function oe(C){var w=C.type;switch(C.tag){case 24:return"Cache";case 9:return(w.displayName||"Context")+".Consumer";case 10:return(w._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return C=w.render,C=C.displayName||C.name||"",w.displayName||(C!==""?"ForwardRef("+C+")":"ForwardRef");case 7:return"Fragment";case 5:return w;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Y(w);case 8:return w===M?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof w=="function")return w.displayName||w.name||null;if(typeof w=="string")return w}return null}function ee(C){switch(typeof C){case"boolean":case"number":case"string":case"undefined":return C;case"object":return C;default:return""}}function ne(C){var w=C.type;return(C=C.nodeName)&&C.toLowerCase()==="input"&&(w==="checkbox"||w==="radio")}function le(C){var w=ne(C)?"checked":"value",P=Object.getOwnPropertyDescriptor(C.constructor.prototype,w),_=""+C[w];if(!C.hasOwnProperty(w)&&typeof P<"u"&&typeof P.get=="function"&&typeof P.set=="function"){var G=P.get,U=P.set;return Object.defineProperty(C,w,{configurable:!0,get:function(){return G.call(this)},set:function(te){_=""+te,U.call(this,te)}}),Object.defineProperty(C,w,{enumerable:P.enumerable}),{getValue:function(){return _},setValue:function(te){_=""+te},stopTracking:function(){C._valueTracker=null,delete C[w]}}}}function he(C){C._valueTracker||(C._valueTracker=le(C))}function re(C){if(!C)return!1;var w=C._valueTracker;if(!w)return!0;var P=w.getValue(),_="";return C&&(_=ne(C)?C.checked?"true":"false":C.value),C=_,C!==P?(w.setValue(C),!0):!1}function ie(C){if(C=C||(typeof document<"u"?document:void 0),typeof C>"u")return null;try{return C.activeElement||C.body}catch{return C.body}}function de(C,w){var P=w.checked;return W({},w,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:P??C._wrapperState.initialChecked})}function J(C,w){var P=w.defaultValue==null?"":w.defaultValue,_=w.checked!=null?w.checked:w.defaultChecked;P=ee(w.value!=null?w.value:P),C._wrapperState={initialChecked:_,initialValue:P,controlled:w.type==="checkbox"||w.type==="radio"?w.checked!=null:w.value!=null}}function ue(C,w){w=w.checked,w!=null&&S(C,"checked",w,!1)}function ve(C,w){ue(C,w);var P=ee(w.value),_=w.type;if(P!=null)_==="number"?(P===0&&C.value===""||C.value!=P)&&(C.value=""+P):C.value!==""+P&&(C.value=""+P);else if(_==="submit"||_==="reset"){C.removeAttribute("value");return}w.hasOwnProperty("value")?me(C,w.type,P):w.hasOwnProperty("defaultValue")&&me(C,w.type,ee(w.defaultValue)),w.checked==null&&w.defaultChecked!=null&&(C.defaultChecked=!!w.defaultChecked)}function pe(C,w,P){if(w.hasOwnProperty("value")||w.hasOwnProperty("defaultValue")){var _=w.type;if(!(_!=="submit"&&_!=="reset"||w.value!==void 0&&w.value!==null))return;w=""+C._wrapperState.initialValue,P||w===C.value||(C.value=w),C.defaultValue=w}P=C.name,P!==""&&(C.name=""),C.defaultChecked=!!C._wrapperState.initialChecked,P!==""&&(C.name=P)}function me(C,w,P){(w!=="number"||ie(C.ownerDocument)!==C)&&(P==null?C.defaultValue=""+C._wrapperState.initialValue:C.defaultValue!==""+P&&(C.defaultValue=""+P))}var Oe=Array.isArray;function De(C,w,P,_){if(C=C.options,w){w={};for(var G=0;G"+w.valueOf().toString()+"",w=Ze.firstChild;C.firstChild;)C.removeChild(C.firstChild);for(;w.firstChild;)C.appendChild(w.firstChild)}});function tt(C,w){if(w){var P=C.firstChild;if(P&&P===C.lastChild&&P.nodeType===3){P.nodeValue=w;return}}C.textContent=w}var Ne={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},rt=["Webkit","ms","Moz","O"];Object.keys(Ne).forEach(function(C){rt.forEach(function(w){w=w+C.charAt(0).toUpperCase()+C.substring(1),Ne[w]=Ne[C]})});function ot(C,w,P){return w==null||typeof w=="boolean"||w===""?"":P||typeof w!="number"||w===0||Ne.hasOwnProperty(C)&&Ne[C]?(""+w).trim():w+"px"}function Ye(C,w){C=C.style;for(var P in w)if(w.hasOwnProperty(P)){var _=P.indexOf("--")===0,G=ot(P,w[P],_);P==="float"&&(P="cssFloat"),_?C.setProperty(P,G):C[P]=G}}var Ae=W({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function nt(C,w){if(w){if(Ae[C]&&(w.children!=null||w.dangerouslySetInnerHTML!=null))throw Error(r(137,C));if(w.dangerouslySetInnerHTML!=null){if(w.children!=null)throw Error(r(60));if(typeof w.dangerouslySetInnerHTML!="object"||!("__html"in w.dangerouslySetInnerHTML))throw Error(r(61))}if(w.style!=null&&typeof w.style!="object")throw Error(r(62))}}function Et(C,w){if(C.indexOf("-")===-1)return typeof w.is=="string";switch(C){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 Tt=null;function Ot(C){return C=C.target||C.srcElement||window,C.correspondingUseElement&&(C=C.correspondingUseElement),C.nodeType===3?C.parentNode:C}var Wt=null,at=null,lt=null;function Ut(C){if(C=Nb(C)){if(typeof Wt!="function")throw Error(r(280));var w=C.stateNode;w&&(w=sE(w),Wt(C.stateNode,C.type,w))}}function cr(C){at?lt?lt.push(C):lt=[C]:at=C}function _e(){if(at){var C=at,w=lt;if(lt=at=null,Ut(C),w)for(C=0;C>>=0,C===0?32:31-(yr(C)/wn|0)|0}var Ni=64,Ha=4194304;function Uo(C){switch(C&-C){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: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 C&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return C&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return C}}function Os(C,w){var P=C.pendingLanes;if(P===0)return 0;var _=0,G=C.suspendedLanes,U=C.pingedLanes,te=P&268435455;if(te!==0){var ye=te&~G;ye!==0?_=Uo(ye):(U&=te,U!==0&&(_=Uo(U)))}else te=P&~G,te!==0?_=Uo(te):U!==0&&(_=Uo(U));if(_===0)return 0;if(w!==0&&w!==_&&(w&G)===0&&(G=_&-_,U=w&-w,G>=U||G===16&&(U&4194240)!==0))return w;if((_&4)!==0&&(_|=P&16),w=C.entangledLanes,w!==0)for(C=C.entanglements,w&=_;0P;P++)w.push(C);return w}function ga(C,w,P){C.pendingLanes|=w,w!==536870912&&(C.suspendedLanes=0,C.pingedLanes=0),C=C.eventTimes,w=31-Ct(w),C[w]=P}function W1(C,w){var P=C.pendingLanes&~w;C.pendingLanes=w,C.suspendedLanes=0,C.pingedLanes=0,C.expiredLanes&=w,C.mutableReadLanes&=w,C.entangledLanes&=w,w=C.entanglements;var _=C.eventTimes;for(C=C.expirationTimes;0=Mb),R7=" ",P7=!1;function M7(C,w){switch(C){case"keyup":return FEe.indexOf(w.keyCode)!==-1;case"keydown":return w.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function I7(C){return C=C.detail,typeof C=="object"&&"data"in C?C.data:null}var Hm=!1;function _Ee(C,w){switch(C){case"compositionend":return I7(w);case"keypress":return w.which!==32?null:(P7=!0,R7);case"textInput":return C=w.data,C===R7&&P7?null:C;default:return null}}function kEe(C,w){if(Hm)return C==="compositionend"||!jF&&M7(C,w)?(C=b7(),X1=GF=oh=null,Hm=!1,C):null;switch(C){case"paste":return null;case"keypress":if(!(w.ctrlKey||w.altKey||w.metaKey)||w.ctrlKey&&w.altKey){if(w.char&&1=w)return{node:P,offset:w-C};C=_}e:{for(;P;){if(P.nextSibling){P=P.nextSibling;break e}P=P.parentNode}P=void 0}P=O7(P)}}function B7(C,w){return C&&w?C===w?!0:C&&C.nodeType===3?!1:w&&w.nodeType===3?B7(C,w.parentNode):"contains"in C?C.contains(w):C.compareDocumentPosition?!!(C.compareDocumentPosition(w)&16):!1:!1}function $7(){for(var C=window,w=ie();w instanceof C.HTMLIFrameElement;){try{var P=typeof w.contentWindow.location.href=="string"}catch{P=!1}if(P)C=w.contentWindow;else break;w=ie(C.document)}return w}function XF(C){var w=C&&C.nodeName&&C.nodeName.toLowerCase();return w&&(w==="input"&&(C.type==="text"||C.type==="search"||C.type==="tel"||C.type==="url"||C.type==="password")||w==="textarea"||C.contentEditable==="true")}function WEe(C){var w=$7(),P=C.focusedElem,_=C.selectionRange;if(w!==P&&P&&P.ownerDocument&&B7(P.ownerDocument.documentElement,P)){if(_!==null&&XF(P)){if(w=_.start,C=_.end,C===void 0&&(C=w),"selectionStart"in P)P.selectionStart=w,P.selectionEnd=Math.min(C,P.value.length);else if(C=(w=P.ownerDocument||document)&&w.defaultView||window,C.getSelection){C=C.getSelection();var G=P.textContent.length,U=Math.min(_.start,G);_=_.end===void 0?U:Math.min(_.end,G),!C.extend&&U>_&&(G=_,_=U,U=G),G=N7(P,U);var te=N7(P,_);G&&te&&(C.rangeCount!==1||C.anchorNode!==G.node||C.anchorOffset!==G.offset||C.focusNode!==te.node||C.focusOffset!==te.offset)&&(w=w.createRange(),w.setStart(G.node,G.offset),C.removeAllRanges(),U>_?(C.addRange(w),C.extend(te.node,te.offset)):(w.setEnd(te.node,te.offset),C.addRange(w)))}}for(w=[],C=P;C=C.parentNode;)C.nodeType===1&&w.push({element:C,left:C.scrollLeft,top:C.scrollTop});for(typeof P.focus=="function"&&P.focus(),P=0;P=document.documentMode,Wm=null,YF=null,Fb=null,ZF=!1;function G7(C,w,P){var _=P.window===P?P.document:P.nodeType===9?P:P.ownerDocument;ZF||Wm==null||Wm!==ie(_)||(_=Wm,"selectionStart"in _&&XF(_)?_={start:_.selectionStart,end:_.selectionEnd}:(_=(_.ownerDocument&&_.ownerDocument.defaultView||window).getSelection(),_={anchorNode:_.anchorNode,anchorOffset:_.anchorOffset,focusNode:_.focusNode,focusOffset:_.focusOffset}),Fb&&Ab(Fb,_)||(Fb=_,_=nE(YF,"onSelect"),0<_.length&&(w=new VF("onSelect","select",null,w,P),C.push({event:w,listeners:_}),w.target=Wm)))}function eE(C,w){var P={};return P[C.toLowerCase()]=w.toLowerCase(),P["Webkit"+C]="webkit"+w,P["Moz"+C]="moz"+w,P}var Um={animationend:eE("Animation","AnimationEnd"),animationiteration:eE("Animation","AnimationIteration"),animationstart:eE("Animation","AnimationStart"),transitionend:eE("Transition","TransitionEnd")},QF={},V7={};a&&(V7=document.createElement("div").style,"AnimationEvent"in window||(delete Um.animationend.animation,delete Um.animationiteration.animation,delete Um.animationstart.animation),"TransitionEvent"in window||delete Um.transitionend.transition);function tE(C){if(QF[C])return QF[C];if(!Um[C])return C;var w=Um[C],P;for(P in w)if(w.hasOwnProperty(P)&&P in V7)return QF[C]=w[P];return C}var z7=tE("animationend"),H7=tE("animationiteration"),W7=tE("animationstart"),U7=tE("transitionend"),j7=new Map,K7="abort auxClick 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(" ");function sh(C,w){j7.set(C,w),o(w,[C])}for(var JF=0;JFXm||(C.current=cL[Xm],cL[Xm]=null,Xm--)}function Hn(C,w){Xm++,cL[Xm]=C.current,C.current=w}var ch={},jo=lh(ch),Ns=lh(!1),af=ch;function Ym(C,w){var P=C.type.contextTypes;if(!P)return ch;var _=C.stateNode;if(_&&_.__reactInternalMemoizedUnmaskedChildContext===w)return _.__reactInternalMemoizedMaskedChildContext;var G={},U;for(U in P)G[U]=w[U];return _&&(C=C.stateNode,C.__reactInternalMemoizedUnmaskedChildContext=w,C.__reactInternalMemoizedMaskedChildContext=G),G}function Bs(C){return C=C.childContextTypes,C!=null}function aE(){Xn(Ns),Xn(jo)}function t9(C,w,P){if(jo.current!==ch)throw Error(r(168));Hn(jo,w),Hn(Ns,P)}function r9(C,w,P){var _=C.stateNode;if(w=w.childContextTypes,typeof _.getChildContext!="function")return P;_=_.getChildContext();for(var G in _)if(!(G in w))throw Error(r(108,oe(C)||"Unknown",G));return W({},P,_)}function lE(C){return C=(C=C.stateNode)&&C.__reactInternalMemoizedMergedChildContext||ch,af=jo.current,Hn(jo,C),Hn(Ns,Ns.current),!0}function n9(C,w,P){var _=C.stateNode;if(!_)throw Error(r(169));P?(C=r9(C,w,af),_.__reactInternalMemoizedMergedChildContext=C,Xn(Ns),Xn(jo),Hn(jo,C)):Xn(Ns),Hn(Ns,P)}var Bu=null,cE=!1,uL=!1;function i9(C){Bu===null?Bu=[C]:Bu.push(C)}function rTe(C){cE=!0,i9(C)}function uh(){if(!uL&&Bu!==null){uL=!0;var C=0,w=Cn;try{var P=Bu;for(Cn=1;C>=te,G-=te,$u=1<<32-Ct(w)+G|P<Lr?(vo=xr,xr=null):vo=xr.sibling;var bn=ut(Le,xr,Ge[Lr],Rt);if(bn===null){xr===null&&(xr=vo);break}C&&xr&&bn.alternate===null&&w(Le,xr),Me=U(bn,Me,Lr),wr===null?dr=bn:wr.sibling=bn,wr=bn,xr=vo}if(Lr===Ge.length)return P(Le,xr),ii&&cf(Le,Lr),dr;if(xr===null){for(;LrLr?(vo=xr,xr=null):vo=xr.sibling;var Ch=ut(Le,xr,bn.value,Rt);if(Ch===null){xr===null&&(xr=vo);break}C&&xr&&Ch.alternate===null&&w(Le,xr),Me=U(Ch,Me,Lr),wr===null?dr=Ch:wr.sibling=Ch,wr=Ch,xr=vo}if(bn.done)return P(Le,xr),ii&&cf(Le,Lr),dr;if(xr===null){for(;!bn.done;Lr++,bn=Ge.next())bn=bt(Le,bn.value,Rt),bn!==null&&(Me=U(bn,Me,Lr),wr===null?dr=bn:wr.sibling=bn,wr=bn);return ii&&cf(Le,Lr),dr}for(xr=_(Le,xr);!bn.done;Lr++,bn=Ge.next())bn=Jt(xr,Le,Lr,bn.value,Rt),bn!==null&&(C&&bn.alternate!==null&&xr.delete(bn.key===null?Lr:bn.key),Me=U(bn,Me,Lr),wr===null?dr=bn:wr.sibling=bn,wr=bn);return C&&xr.forEach(function(OTe){return w(Le,OTe)}),ii&&cf(Le,Lr),dr}function Ri(Le,Me,Ge,Rt){if(typeof Ge=="object"&&Ge!==null&&Ge.type===T&&Ge.key===null&&(Ge=Ge.props.children),typeof Ge=="object"&&Ge!==null){switch(Ge.$$typeof){case E:e:{for(var dr=Ge.key,wr=Me;wr!==null;){if(wr.key===dr){if(dr=Ge.type,dr===T){if(wr.tag===7){P(Le,wr.sibling),Me=G(wr,Ge.props.children),Me.return=Le,Le=Me;break e}}else if(wr.elementType===dr||typeof dr=="object"&&dr!==null&&dr.$$typeof===B&&u9(dr)===wr.type){P(Le,wr.sibling),Me=G(wr,Ge.props),Me.ref=Bb(Le,wr,Ge),Me.return=Le,Le=Me;break e}P(Le,wr);break}else w(Le,wr);wr=wr.sibling}Ge.type===T?(Me=vf(Ge.props.children,Le.mode,Rt,Ge.key),Me.return=Le,Le=Me):(Rt=NE(Ge.type,Ge.key,Ge.props,null,Le.mode,Rt),Rt.ref=Bb(Le,Me,Ge),Rt.return=Le,Le=Rt)}return te(Le);case R:e:{for(wr=Ge.key;Me!==null;){if(Me.key===wr)if(Me.tag===4&&Me.stateNode.containerInfo===Ge.containerInfo&&Me.stateNode.implementation===Ge.implementation){P(Le,Me.sibling),Me=G(Me,Ge.children||[]),Me.return=Le,Le=Me;break e}else{P(Le,Me);break}else w(Le,Me);Me=Me.sibling}Me=a_(Ge,Le.mode,Rt),Me.return=Le,Le=Me}return te(Le);case B:return wr=Ge._init,Ri(Le,Me,wr(Ge._payload),Rt)}if(Oe(Ge))return or(Le,Me,Ge,Rt);if(z(Ge))return sr(Le,Me,Ge,Rt);pE(Le,Ge)}return typeof Ge=="string"&&Ge!==""||typeof Ge=="number"?(Ge=""+Ge,Me!==null&&Me.tag===6?(P(Le,Me.sibling),Me=G(Me,Ge),Me.return=Le,Le=Me):(P(Le,Me),Me=s_(Ge,Le.mode,Rt),Me.return=Le,Le=Me),te(Le)):P(Le,Me)}return Ri}var ev=d9(!0),h9=d9(!1),fE=lh(null),gE=null,tv=null,mL=null;function vL(){mL=tv=gE=null}function yL(C){var w=fE.current;Xn(fE),C._currentValue=w}function CL(C,w,P){for(;C!==null;){var _=C.alternate;if((C.childLanes&w)!==w?(C.childLanes|=w,_!==null&&(_.childLanes|=w)):_!==null&&(_.childLanes&w)!==w&&(_.childLanes|=w),C===P)break;C=C.return}}function rv(C,w){gE=C,mL=tv=null,C=C.dependencies,C!==null&&C.firstContext!==null&&((C.lanes&w)!==0&&($s=!0),C.firstContext=null)}function ja(C){var w=C._currentValue;if(mL!==C)if(C={context:C,memoizedValue:w,next:null},tv===null){if(gE===null)throw Error(r(308));tv=C,gE.dependencies={lanes:0,firstContext:C}}else tv=tv.next=C;return w}var uf=null;function bL(C){uf===null?uf=[C]:uf.push(C)}function p9(C,w,P,_){var G=w.interleaved;return G===null?(P.next=P,bL(w)):(P.next=G.next,G.next=P),w.interleaved=P,Vu(C,_)}function Vu(C,w){C.lanes|=w;var P=C.alternate;for(P!==null&&(P.lanes|=w),P=C,C=C.return;C!==null;)C.childLanes|=w,P=C.alternate,P!==null&&(P.childLanes|=w),P=C,C=C.return;return P.tag===3?P.stateNode:null}var dh=!1;function SL(C){C.updateQueue={baseState:C.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function f9(C,w){C=C.updateQueue,w.updateQueue===C&&(w.updateQueue={baseState:C.baseState,firstBaseUpdate:C.firstBaseUpdate,lastBaseUpdate:C.lastBaseUpdate,shared:C.shared,effects:C.effects})}function zu(C,w){return{eventTime:C,lane:w,tag:0,payload:null,callback:null,next:null}}function hh(C,w,P){var _=C.updateQueue;if(_===null)return null;if(_=_.shared,(mn&2)!==0){var G=_.pending;return G===null?w.next=w:(w.next=G.next,G.next=w),_.pending=w,Vu(C,P)}return G=_.interleaved,G===null?(w.next=w,bL(_)):(w.next=G.next,G.next=w),_.interleaved=w,Vu(C,P)}function mE(C,w,P){if(w=w.updateQueue,w!==null&&(w=w.shared,(P&4194240)!==0)){var _=w.lanes;_&=C.pendingLanes,P|=_,w.lanes=P,bb(C,P)}}function g9(C,w){var P=C.updateQueue,_=C.alternate;if(_!==null&&(_=_.updateQueue,P===_)){var G=null,U=null;if(P=P.firstBaseUpdate,P!==null){do{var te={eventTime:P.eventTime,lane:P.lane,tag:P.tag,payload:P.payload,callback:P.callback,next:null};U===null?G=U=te:U=U.next=te,P=P.next}while(P!==null);U===null?G=U=w:U=U.next=w}else G=U=w;P={baseState:_.baseState,firstBaseUpdate:G,lastBaseUpdate:U,shared:_.shared,effects:_.effects},C.updateQueue=P;return}C=P.lastBaseUpdate,C===null?P.firstBaseUpdate=w:C.next=w,P.lastBaseUpdate=w}function vE(C,w,P,_){var G=C.updateQueue;dh=!1;var U=G.firstBaseUpdate,te=G.lastBaseUpdate,ye=G.shared.pending;if(ye!==null){G.shared.pending=null;var Se=ye,He=Se.next;Se.next=null,te===null?U=He:te.next=He,te=Se;var ft=C.alternate;ft!==null&&(ft=ft.updateQueue,ye=ft.lastBaseUpdate,ye!==te&&(ye===null?ft.firstBaseUpdate=He:ye.next=He,ft.lastBaseUpdate=Se))}if(U!==null){var bt=G.baseState;te=0,ft=He=Se=null,ye=U;do{var ut=ye.lane,Jt=ye.eventTime;if((_&ut)===ut){ft!==null&&(ft=ft.next={eventTime:Jt,lane:0,tag:ye.tag,payload:ye.payload,callback:ye.callback,next:null});e:{var or=C,sr=ye;switch(ut=w,Jt=P,sr.tag){case 1:if(or=sr.payload,typeof or=="function"){bt=or.call(Jt,bt,ut);break e}bt=or;break e;case 3:or.flags=or.flags&-65537|128;case 0:if(or=sr.payload,ut=typeof or=="function"?or.call(Jt,bt,ut):or,ut==null)break e;bt=W({},bt,ut);break e;case 2:dh=!0}}ye.callback!==null&&ye.lane!==0&&(C.flags|=64,ut=G.effects,ut===null?G.effects=[ye]:ut.push(ye))}else Jt={eventTime:Jt,lane:ut,tag:ye.tag,payload:ye.payload,callback:ye.callback,next:null},ft===null?(He=ft=Jt,Se=bt):ft=ft.next=Jt,te|=ut;if(ye=ye.next,ye===null){if(ye=G.shared.pending,ye===null)break;ut=ye,ye=ut.next,ut.next=null,G.lastBaseUpdate=ut,G.shared.pending=null}}while(!0);if(ft===null&&(Se=bt),G.baseState=Se,G.firstBaseUpdate=He,G.lastBaseUpdate=ft,w=G.shared.interleaved,w!==null){G=w;do te|=G.lane,G=G.next;while(G!==w)}else U===null&&(G.shared.lanes=0);pf|=te,C.lanes=te,C.memoizedState=bt}}function m9(C,w,P){if(C=w.effects,w.effects=null,C!==null)for(w=0;wP?P:4,C(!0);var _=RL.transition;RL.transition={};try{C(!1),w()}finally{Cn=P,RL.transition=_}}function k9(){return Ka().memoizedState}function sTe(C,w,P){var _=mh(C);if(P={lane:_,action:P,hasEagerState:!1,eagerState:null,next:null},O9(C))N9(w,P);else if(P=p9(C,w,P,_),P!==null){var G=vs();zl(P,C,_,G),B9(P,w,_)}}function aTe(C,w,P){var _=mh(C),G={lane:_,action:P,hasEagerState:!1,eagerState:null,next:null};if(O9(C))N9(w,G);else{var U=C.alternate;if(C.lanes===0&&(U===null||U.lanes===0)&&(U=w.lastRenderedReducer,U!==null))try{var te=w.lastRenderedState,ye=U(te,P);if(G.hasEagerState=!0,G.eagerState=ye,Nl(ye,te)){var Se=w.interleaved;Se===null?(G.next=G,bL(w)):(G.next=Se.next,Se.next=G),w.interleaved=G;return}}catch{}finally{}P=p9(C,w,G,_),P!==null&&(G=vs(),zl(P,C,_,G),B9(P,w,_))}}function O9(C){var w=C.alternate;return C===ci||w!==null&&w===ci}function N9(C,w){zb=bE=!0;var P=C.pending;P===null?w.next=w:(w.next=P.next,P.next=w),C.pending=w}function B9(C,w,P){if((P&4194240)!==0){var _=w.lanes;_&=C.pendingLanes,P|=_,w.lanes=P,bb(C,P)}}var xE={readContext:ja,useCallback:Ko,useContext:Ko,useEffect:Ko,useImperativeHandle:Ko,useInsertionEffect:Ko,useLayoutEffect:Ko,useMemo:Ko,useReducer:Ko,useRef:Ko,useState:Ko,useDebugValue:Ko,useDeferredValue:Ko,useTransition:Ko,useMutableSource:Ko,useSyncExternalStore:Ko,useId:Ko,unstable_isNewReconciler:!1},lTe={readContext:ja,useCallback:function(C,w){return Lc().memoizedState=[C,w===void 0?null:w],C},useContext:ja,useEffect:P9,useImperativeHandle:function(C,w,P){return P=P!=null?P.concat([C]):null,SE(4194308,4,D9.bind(null,w,C),P)},useLayoutEffect:function(C,w){return SE(4194308,4,C,w)},useInsertionEffect:function(C,w){return SE(4,2,C,w)},useMemo:function(C,w){var P=Lc();return w=w===void 0?null:w,C=C(),P.memoizedState=[C,w],C},useReducer:function(C,w,P){var _=Lc();return w=P!==void 0?P(w):w,_.memoizedState=_.baseState=w,C={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:C,lastRenderedState:w},_.queue=C,C=C.dispatch=sTe.bind(null,ci,C),[_.memoizedState,C]},useRef:function(C){var w=Lc();return C={current:C},w.memoizedState=C},useState:T9,useDebugValue:LL,useDeferredValue:function(C){return Lc().memoizedState=C},useTransition:function(){var C=T9(!1),w=C[0];return C=oTe.bind(null,C[1]),Lc().memoizedState=C,[w,C]},useMutableSource:function(){},useSyncExternalStore:function(C,w,P){var _=ci,G=Lc();if(ii){if(P===void 0)throw Error(r(407));P=P()}else{if(P=w(),mo===null)throw Error(r(349));(hf&30)!==0||b9(_,w,P)}G.memoizedState=P;var U={value:P,getSnapshot:w};return G.queue=U,P9(w9.bind(null,_,U,C),[C]),_.flags|=2048,Ub(9,S9.bind(null,_,U,P,w),void 0,null),P},useId:function(){var C=Lc(),w=mo.identifierPrefix;if(ii){var P=Gu,_=$u;P=(_&~(1<<32-Ct(_)-1)).toString(32)+P,w=":"+w+"R"+P,P=Hb++,0<\/script>",C=C.removeChild(C.firstChild)):typeof _.is=="string"?C=te.createElement(P,{is:_.is}):(C=te.createElement(P),P==="select"&&(te=C,_.multiple?te.multiple=!0:_.size&&(te.size=_.size))):C=te.createElementNS(C,P),C[Ac]=w,C[Ob]=_,iU(C,w,!1,!1),w.stateNode=C;e:{switch(te=Et(P,_),P){case"dialog":qn("cancel",C),qn("close",C),G=_;break;case"iframe":case"object":case"embed":qn("load",C),G=_;break;case"video":case"audio":for(G=0;Gav&&(w.flags|=128,_=!0,jb(U,!1),w.lanes=4194304)}else{if(!_)if(C=yE(te),C!==null){if(w.flags|=128,_=!0,P=C.updateQueue,P!==null&&(w.updateQueue=P,w.flags|=4),jb(U,!0),U.tail===null&&U.tailMode==="hidden"&&!te.alternate&&!ii)return qo(w),null}else 2*rr()-U.renderingStartTime>av&&P!==1073741824&&(w.flags|=128,_=!0,jb(U,!1),w.lanes=4194304);U.isBackwards?(te.sibling=w.child,w.child=te):(P=U.last,P!==null?P.sibling=te:w.child=te,U.last=te)}return U.tail!==null?(w=U.tail,U.rendering=w,U.tail=w.sibling,U.renderingStartTime=rr(),w.sibling=null,P=li.current,Hn(li,_?P&1|2:P&1),w):(qo(w),null);case 22:case 23:return n_(),_=w.memoizedState!==null,C!==null&&C.memoizedState!==null!==_&&(w.flags|=8192),_&&(w.mode&1)!==0?(Ca&1073741824)!==0&&(qo(w),w.subtreeFlags&6&&(w.flags|=8192)):qo(w),null;case 24:return null;case 25:return null}throw Error(r(156,w.tag))}function mTe(C,w){switch(hL(w),w.tag){case 1:return Bs(w.type)&&aE(),C=w.flags,C&65536?(w.flags=C&-65537|128,w):null;case 3:return nv(),Xn(Ns),Xn(jo),TL(),C=w.flags,(C&65536)!==0&&(C&128)===0?(w.flags=C&-65537|128,w):null;case 5:return xL(w),null;case 13:if(Xn(li),C=w.memoizedState,C!==null&&C.dehydrated!==null){if(w.alternate===null)throw Error(r(340));Jm()}return C=w.flags,C&65536?(w.flags=C&-65537|128,w):null;case 19:return Xn(li),null;case 4:return nv(),null;case 10:return yL(w.type._context),null;case 22:case 23:return n_(),null;case 24:return null;default:return null}}var PE=!1,Xo=!1,vTe=typeof WeakSet=="function"?WeakSet:Set,nr=null;function ov(C,w){var P=C.ref;if(P!==null)if(typeof P=="function")try{P(null)}catch(_){gi(C,w,_)}else P.current=null}function UL(C,w,P){try{P()}catch(_){gi(C,w,_)}}var aU=!1;function yTe(C,w){if(nL=K1,C=$7(),XF(C)){if("selectionStart"in C)var P={start:C.selectionStart,end:C.selectionEnd};else e:{P=(P=C.ownerDocument)&&P.defaultView||window;var _=P.getSelection&&P.getSelection();if(_&&_.rangeCount!==0){P=_.anchorNode;var G=_.anchorOffset,U=_.focusNode;_=_.focusOffset;try{P.nodeType,U.nodeType}catch{P=null;break e}var te=0,ye=-1,Se=-1,He=0,ft=0,bt=C,ut=null;t:for(;;){for(var Jt;bt!==P||G!==0&&bt.nodeType!==3||(ye=te+G),bt!==U||_!==0&&bt.nodeType!==3||(Se=te+_),bt.nodeType===3&&(te+=bt.nodeValue.length),(Jt=bt.firstChild)!==null;)ut=bt,bt=Jt;for(;;){if(bt===C)break t;if(ut===P&&++He===G&&(ye=te),ut===U&&++ft===_&&(Se=te),(Jt=bt.nextSibling)!==null)break;bt=ut,ut=bt.parentNode}bt=Jt}P=ye===-1||Se===-1?null:{start:ye,end:Se}}else P=null}P=P||{start:0,end:0}}else P=null;for(iL={focusedElem:C,selectionRange:P},K1=!1,nr=w;nr!==null;)if(w=nr,C=w.child,(w.subtreeFlags&1028)!==0&&C!==null)C.return=w,nr=C;else for(;nr!==null;){w=nr;try{var or=w.alternate;if((w.flags&1024)!==0)switch(w.tag){case 0:case 11:case 15:break;case 1:if(or!==null){var sr=or.memoizedProps,Ri=or.memoizedState,Le=w.stateNode,Me=Le.getSnapshotBeforeUpdate(w.elementType===w.type?sr:$l(w.type,sr),Ri);Le.__reactInternalSnapshotBeforeUpdate=Me}break;case 3:var Ge=w.stateNode.containerInfo;Ge.nodeType===1?Ge.textContent="":Ge.nodeType===9&&Ge.documentElement&&Ge.removeChild(Ge.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(Rt){gi(w,w.return,Rt)}if(C=w.sibling,C!==null){C.return=w.return,nr=C;break}nr=w.return}return or=aU,aU=!1,or}function Kb(C,w,P){var _=w.updateQueue;if(_=_!==null?_.lastEffect:null,_!==null){var G=_=_.next;do{if((G.tag&C)===C){var U=G.destroy;G.destroy=void 0,U!==void 0&&UL(w,P,U)}G=G.next}while(G!==_)}}function ME(C,w){if(w=w.updateQueue,w=w!==null?w.lastEffect:null,w!==null){var P=w=w.next;do{if((P.tag&C)===C){var _=P.create;P.destroy=_()}P=P.next}while(P!==w)}}function jL(C){var w=C.ref;if(w!==null){var P=C.stateNode;switch(C.tag){case 5:C=P;break;default:C=P}typeof w=="function"?w(C):w.current=C}}function lU(C){var w=C.alternate;w!==null&&(C.alternate=null,lU(w)),C.child=null,C.deletions=null,C.sibling=null,C.tag===5&&(w=C.stateNode,w!==null&&(delete w[Ac],delete w[Ob],delete w[lL],delete w[eTe],delete w[tTe])),C.stateNode=null,C.return=null,C.dependencies=null,C.memoizedProps=null,C.memoizedState=null,C.pendingProps=null,C.stateNode=null,C.updateQueue=null}function cU(C){return C.tag===5||C.tag===3||C.tag===4}function uU(C){e:for(;;){for(;C.sibling===null;){if(C.return===null||cU(C.return))return null;C=C.return}for(C.sibling.return=C.return,C=C.sibling;C.tag!==5&&C.tag!==6&&C.tag!==18;){if(C.flags&2||C.child===null||C.tag===4)continue e;C.child.return=C,C=C.child}if(!(C.flags&2))return C.stateNode}}function KL(C,w,P){var _=C.tag;if(_===5||_===6)C=C.stateNode,w?P.nodeType===8?P.parentNode.insertBefore(C,w):P.insertBefore(C,w):(P.nodeType===8?(w=P.parentNode,w.insertBefore(C,P)):(w=P,w.appendChild(C)),P=P._reactRootContainer,P!=null||w.onclick!==null||(w.onclick=oE));else if(_!==4&&(C=C.child,C!==null))for(KL(C,w,P),C=C.sibling;C!==null;)KL(C,w,P),C=C.sibling}function qL(C,w,P){var _=C.tag;if(_===5||_===6)C=C.stateNode,w?P.insertBefore(C,w):P.appendChild(C);else if(_!==4&&(C=C.child,C!==null))for(qL(C,w,P),C=C.sibling;C!==null;)qL(C,w,P),C=C.sibling}var Do=null,Gl=!1;function ph(C,w,P){for(P=P.child;P!==null;)dU(C,w,P),P=P.sibling}function dU(C,w,P){if(ri&&typeof ri.onCommitFiberUnmount=="function")try{ri.onCommitFiberUnmount(sn,P)}catch{}switch(P.tag){case 5:Xo||ov(P,w);case 6:var _=Do,G=Gl;Do=null,ph(C,w,P),Do=_,Gl=G,Do!==null&&(Gl?(C=Do,P=P.stateNode,C.nodeType===8?C.parentNode.removeChild(P):C.removeChild(P)):Do.removeChild(P.stateNode));break;case 18:Do!==null&&(Gl?(C=Do,P=P.stateNode,C.nodeType===8?aL(C.parentNode,P):C.nodeType===1&&aL(C,P),Tb(C)):aL(Do,P.stateNode));break;case 4:_=Do,G=Gl,Do=P.stateNode.containerInfo,Gl=!0,ph(C,w,P),Do=_,Gl=G;break;case 0:case 11:case 14:case 15:if(!Xo&&(_=P.updateQueue,_!==null&&(_=_.lastEffect,_!==null))){G=_=_.next;do{var U=G,te=U.destroy;U=U.tag,te!==void 0&&((U&2)!==0||(U&4)!==0)&&UL(P,w,te),G=G.next}while(G!==_)}ph(C,w,P);break;case 1:if(!Xo&&(ov(P,w),_=P.stateNode,typeof _.componentWillUnmount=="function"))try{_.props=P.memoizedProps,_.state=P.memoizedState,_.componentWillUnmount()}catch(ye){gi(P,w,ye)}ph(C,w,P);break;case 21:ph(C,w,P);break;case 22:P.mode&1?(Xo=(_=Xo)||P.memoizedState!==null,ph(C,w,P),Xo=_):ph(C,w,P);break;default:ph(C,w,P)}}function hU(C){var w=C.updateQueue;if(w!==null){C.updateQueue=null;var P=C.stateNode;P===null&&(P=C.stateNode=new vTe),w.forEach(function(_){var G=PTe.bind(null,C,_);P.has(_)||(P.add(_),_.then(G,G))})}}function Vl(C,w){var P=w.deletions;if(P!==null)for(var _=0;_G&&(G=te),_&=~U}if(_=G,_=rr()-_,_=(120>_?120:480>_?480:1080>_?1080:1920>_?1920:3e3>_?3e3:4320>_?4320:1960*bTe(_/1960))-_,10<_){C.timeoutHandle=sL(mf.bind(null,C,Gs,Wu),_);break}mf(C,Gs,Wu);break;case 5:mf(C,Gs,Wu);break;default:throw Error(r(329))}}}return Vs(C,rr()),C.callbackNode===P?yU.bind(null,C):null}function e_(C,w){var P=Xb;return C.current.memoizedState.isDehydrated&&(gf(C,w).flags|=256),C=OE(C,w),C!==2&&(w=Gs,Gs=P,w!==null&&t_(w)),C}function t_(C){Gs===null?Gs=C:Gs.push.apply(Gs,C)}function STe(C){for(var w=C;;){if(w.flags&16384){var P=w.updateQueue;if(P!==null&&(P=P.stores,P!==null))for(var _=0;_C?16:C,gh===null)var _=!1;else{if(C=gh,gh=null,LE=0,(mn&6)!==0)throw Error(r(331));var G=mn;for(mn|=4,nr=C.current;nr!==null;){var U=nr,te=U.child;if((nr.flags&16)!==0){var ye=U.deletions;if(ye!==null){for(var Se=0;Serr()-ZL?gf(C,0):YL|=P),Vs(C,w)}function TU(C,w){w===0&&((C.mode&1)===0?w=1:(w=Ha,Ha<<=1,(Ha&130023424)===0&&(Ha=4194304)));var P=vs();C=Vu(C,w),C!==null&&(ga(C,w,P),Vs(C,P))}function RTe(C){var w=C.memoizedState,P=0;w!==null&&(P=w.retryLane),TU(C,P)}function PTe(C,w){var P=0;switch(C.tag){case 13:var _=C.stateNode,G=C.memoizedState;G!==null&&(P=G.retryLane);break;case 19:_=C.stateNode;break;default:throw Error(r(314))}_!==null&&_.delete(w),TU(C,P)}var RU;RU=function(C,w,P){if(C!==null)if(C.memoizedProps!==w.pendingProps||Ns.current)$s=!0;else{if((C.lanes&P)===0&&(w.flags&128)===0)return $s=!1,fTe(C,w,P);$s=(C.flags&131072)!==0}else $s=!1,ii&&(w.flags&1048576)!==0&&o9(w,dE,w.index);switch(w.lanes=0,w.tag){case 2:var _=w.type;RE(C,w),C=w.pendingProps;var G=Ym(w,jo.current);rv(w,P),G=ML(null,w,_,C,G,P);var U=IL();return w.flags|=1,typeof G=="object"&&G!==null&&typeof G.render=="function"&&G.$$typeof===void 0?(w.tag=1,w.memoizedState=null,w.updateQueue=null,Bs(_)?(U=!0,lE(w)):U=!1,w.memoizedState=G.state!==null&&G.state!==void 0?G.state:null,SL(w),G.updater=EE,w.stateNode=G,G._reactInternals=w,kL(w,_,C,P),w=$L(null,w,_,!0,U,P)):(w.tag=0,ii&&U&&dL(w),ms(null,w,G,P),w=w.child),w;case 16:_=w.elementType;e:{switch(RE(C,w),C=w.pendingProps,G=_._init,_=G(_._payload),w.type=_,G=w.tag=ITe(_),C=$l(_,C),G){case 0:w=BL(null,w,_,C,P);break e;case 1:w=Q9(null,w,_,C,P);break e;case 11:w=K9(null,w,_,C,P);break e;case 14:w=q9(null,w,_,$l(_.type,C),P);break e}throw Error(r(306,_,""))}return w;case 0:return _=w.type,G=w.pendingProps,G=w.elementType===_?G:$l(_,G),BL(C,w,_,G,P);case 1:return _=w.type,G=w.pendingProps,G=w.elementType===_?G:$l(_,G),Q9(C,w,_,G,P);case 3:e:{if(J9(w),C===null)throw Error(r(387));_=w.pendingProps,U=w.memoizedState,G=U.element,f9(C,w),vE(w,_,null,P);var te=w.memoizedState;if(_=te.element,U.isDehydrated)if(U={element:_,isDehydrated:!1,cache:te.cache,pendingSuspenseBoundaries:te.pendingSuspenseBoundaries,transitions:te.transitions},w.updateQueue.baseState=U,w.memoizedState=U,w.flags&256){G=iv(Error(r(423)),w),w=eU(C,w,_,P,G);break e}else if(_!==G){G=iv(Error(r(424)),w),w=eU(C,w,_,P,G);break e}else for(ya=ah(w.stateNode.containerInfo.firstChild),va=w,ii=!0,Bl=null,P=h9(w,null,_,P),w.child=P;P;)P.flags=P.flags&-3|4096,P=P.sibling;else{if(Jm(),_===G){w=Hu(C,w,P);break e}ms(C,w,_,P)}w=w.child}return w;case 5:return v9(w),C===null&&fL(w),_=w.type,G=w.pendingProps,U=C!==null?C.memoizedProps:null,te=G.children,oL(_,G)?te=null:U!==null&&oL(_,U)&&(w.flags|=32),Z9(C,w),ms(C,w,te,P),w.child;case 6:return C===null&&fL(w),null;case 13:return tU(C,w,P);case 4:return wL(w,w.stateNode.containerInfo),_=w.pendingProps,C===null?w.child=ev(w,null,_,P):ms(C,w,_,P),w.child;case 11:return _=w.type,G=w.pendingProps,G=w.elementType===_?G:$l(_,G),K9(C,w,_,G,P);case 7:return ms(C,w,w.pendingProps,P),w.child;case 8:return ms(C,w,w.pendingProps.children,P),w.child;case 12:return ms(C,w,w.pendingProps.children,P),w.child;case 10:e:{if(_=w.type._context,G=w.pendingProps,U=w.memoizedProps,te=G.value,Hn(fE,_._currentValue),_._currentValue=te,U!==null)if(Nl(U.value,te)){if(U.children===G.children&&!Ns.current){w=Hu(C,w,P);break e}}else for(U=w.child,U!==null&&(U.return=w);U!==null;){var ye=U.dependencies;if(ye!==null){te=U.child;for(var Se=ye.firstContext;Se!==null;){if(Se.context===_){if(U.tag===1){Se=zu(-1,P&-P),Se.tag=2;var He=U.updateQueue;if(He!==null){He=He.shared;var ft=He.pending;ft===null?Se.next=Se:(Se.next=ft.next,ft.next=Se),He.pending=Se}}U.lanes|=P,Se=U.alternate,Se!==null&&(Se.lanes|=P),CL(U.return,P,w),ye.lanes|=P;break}Se=Se.next}}else if(U.tag===10)te=U.type===w.type?null:U.child;else if(U.tag===18){if(te=U.return,te===null)throw Error(r(341));te.lanes|=P,ye=te.alternate,ye!==null&&(ye.lanes|=P),CL(te,P,w),te=U.sibling}else te=U.child;if(te!==null)te.return=U;else for(te=U;te!==null;){if(te===w){te=null;break}if(U=te.sibling,U!==null){U.return=te.return,te=U;break}te=te.return}U=te}ms(C,w,G.children,P),w=w.child}return w;case 9:return G=w.type,_=w.pendingProps.children,rv(w,P),G=ja(G),_=_(G),w.flags|=1,ms(C,w,_,P),w.child;case 14:return _=w.type,G=$l(_,w.pendingProps),G=$l(_.type,G),q9(C,w,_,G,P);case 15:return X9(C,w,w.type,w.pendingProps,P);case 17:return _=w.type,G=w.pendingProps,G=w.elementType===_?G:$l(_,G),RE(C,w),w.tag=1,Bs(_)?(C=!0,lE(w)):C=!1,rv(w,P),G9(w,_,G),kL(w,_,G,P),$L(null,w,_,!0,C,P);case 19:return nU(C,w,P);case 22:return Y9(C,w,P)}throw Error(r(156,w.tag))};function PU(C,w){return Qt(C,w)}function MTe(C,w,P,_){this.tag=C,this.key=P,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=w,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=_,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xa(C,w,P,_){return new MTe(C,w,P,_)}function o_(C){return C=C.prototype,!(!C||!C.isReactComponent)}function ITe(C){if(typeof C=="function")return o_(C)?1:0;if(C!=null){if(C=C.$$typeof,C===L)return 11;if(C===k)return 14}return 2}function yh(C,w){var P=C.alternate;return P===null?(P=Xa(C.tag,w,C.key,C.mode),P.elementType=C.elementType,P.type=C.type,P.stateNode=C.stateNode,P.alternate=C,C.alternate=P):(P.pendingProps=w,P.type=C.type,P.flags=0,P.subtreeFlags=0,P.deletions=null),P.flags=C.flags&14680064,P.childLanes=C.childLanes,P.lanes=C.lanes,P.child=C.child,P.memoizedProps=C.memoizedProps,P.memoizedState=C.memoizedState,P.updateQueue=C.updateQueue,w=C.dependencies,P.dependencies=w===null?null:{lanes:w.lanes,firstContext:w.firstContext},P.sibling=C.sibling,P.index=C.index,P.ref=C.ref,P}function NE(C,w,P,_,G,U){var te=2;if(_=C,typeof C=="function")o_(C)&&(te=1);else if(typeof C=="string")te=5;else e:switch(C){case T:return vf(P.children,G,U,w);case M:te=8,G|=8;break;case D:return C=Xa(12,P,w,G|2),C.elementType=D,C.lanes=U,C;case F:return C=Xa(13,P,w,G),C.elementType=F,C.lanes=U,C;case O:return C=Xa(19,P,w,G),C.elementType=O,C.lanes=U,C;case H:return BE(P,G,U,w);default:if(typeof C=="object"&&C!==null)switch(C.$$typeof){case A:te=10;break e;case I:te=9;break e;case L:te=11;break e;case k:te=14;break e;case B:te=16,_=null;break e}throw Error(r(130,C==null?C:typeof C,""))}return w=Xa(te,P,w,G),w.elementType=C,w.type=_,w.lanes=U,w}function vf(C,w,P,_){return C=Xa(7,C,_,w),C.lanes=P,C}function BE(C,w,P,_){return C=Xa(22,C,_,w),C.elementType=H,C.lanes=P,C.stateNode={isHidden:!1},C}function s_(C,w,P){return C=Xa(6,C,null,w),C.lanes=P,C}function a_(C,w,P){return w=Xa(4,C.children!==null?C.children:[],C.key,w),w.lanes=P,w.stateNode={containerInfo:C.containerInfo,pendingChildren:null,implementation:C.implementation},w}function DTe(C,w,P,_,G){this.tag=w,this.containerInfo=C,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Dc(0),this.expirationTimes=Dc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Dc(0),this.identifierPrefix=_,this.onRecoverableError=G,this.mutableSourceEagerHydrationData=null}function l_(C,w,P,_,G,U,te,ye,Se){return C=new DTe(C,w,P,ye,Se),w===1?(w=1,U===!0&&(w|=8)):w=0,U=Xa(3,null,null,w),C.current=U,U.stateNode=C,U.memoizedState={element:_,isDehydrated:P,cache:null,transitions:null,pendingSuspenseBoundaries:null},SL(U),C}function ATe(C,w,P){var _=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),f_.exports=WTe(),f_.exports}var VU;function UTe(){if(VU)return UE;VU=1;var e=sse();return UE.createRoot=e.createRoot,UE.hydrateRoot=e.hydrateRoot,UE}var ase=UTe();const PBt=xx(ase);var $a=sse();const lse=xx($a),jTe=ise({__proto__:null,default:lse},[$a]);/** * @remix-run/router v1.23.0 * * 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 */function oi(){return oi=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Oy(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function qTe(){return Math.random().toString(36).substr(2,8)}function HU(e,t){return{usr:e.state,key:e.key,idx:t}}function gw(e,t,r,n){return r===void 0&&(r=null),oi({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Vp(t):t,{state:r,key:t&&t.key||n||qTe()})}function Qg(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Vp(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function XTe(e,t,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:o=!1}=n,s=i.history,a=Vi.Pop,l=null,c=u();c==null&&(c=0,s.replaceState(oi({},s.state,{idx:c}),""));function u(){return(s.state||{idx:null}).idx}function d(){a=Vi.Pop;let m=u(),y=m==null?null:m-c;c=m,l&&l({action:a,location:g.location,delta:y})}function h(m,y){a=Vi.Push;let b=gw(g.location,m,y);c=u()+1;let S=HU(b,c),x=g.createHref(b);try{s.pushState(S,"",x)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;i.location.assign(x)}o&&l&&l({action:a,location:g.location,delta:1})}function p(m,y){a=Vi.Replace;let b=gw(g.location,m,y);c=u();let S=HU(b,c),x=g.createHref(b);s.replaceState(S,"",x),o&&l&&l({action:a,location:g.location,delta:0})}function f(m){let y=i.location.origin!=="null"?i.location.origin:i.location.href,b=typeof m=="string"?m:Qg(m);return b=b.replace(/ $/,"%20"),ln(y,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,y)}let g={get action(){return a},get location(){return e(i,s)},listen(m){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(zU,d),l=m,()=>{i.removeEventListener(zU,d),l=null}},createHref(m){return t(i,m)},createURL:f,encodeLocation(m){let y=f(m);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:h,replace:p,go(m){return s.go(m)}};return g}var Fn;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Fn||(Fn={}));const YTe=new Set(["lazy","caseSensitive","path","id","index","children"]);function ZTe(e){return e.index===!0}function nM(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((i,o)=>{let s=[...r,String(o)],a=typeof i.id=="string"?i.id:s.join("-");if(ln(i.index!==!0||!i.children,"Cannot specify children on an index route"),ln(!n[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),ZTe(i)){let l=oi({},i,t(i),{id:a});return n[a]=l,l}else{let l=oi({},i,t(i),{id:a,children:void 0});return n[a]=l,i.children&&(l.children=nM(i.children,t,s,n)),l}})}function ng(e,t,r){return r===void 0&&(r="/"),rP(e,t,r,!1)}function rP(e,t,r,n){let i=typeof t=="string"?Vp(t):t,o=EC(i.pathname||"/",r);if(o==null)return null;let s=cse(e);JTe(s);let a=null;for(let l=0;a==null&&l{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};l.relativePath.startsWith("/")&&(ln(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let c=yd([n,l.relativePath]),u=r.concat(l);o.children&&o.children.length>0&&(ln(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),cse(o.children,t,u,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:sRe(c,o.index),routesMeta:u})};return e.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,s);else for(let l of use(o.path))i(o,s,l)}),t}function use(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return i?[o,""]:[o];let s=use(n.join("/")),a=[];return a.push(...s.map(l=>l===""?o:[o,l].join("/"))),i&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function JTe(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:aRe(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const eRe=/^:[\w-]+$/,tRe=3,rRe=2,nRe=1,iRe=10,oRe=-2,WU=e=>e==="*";function sRe(e,t){let r=e.split("/"),n=r.length;return r.some(WU)&&(n+=oRe),t&&(n+=rRe),r.filter(i=>!WU(i)).reduce((i,o)=>i+(eRe.test(o)?tRe:o===""?nRe:iRe),n)}function aRe(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function lRe(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,i={},o="/",s=[];for(let a=0;a{let{paramName:h,isOptional:p}=u;if(h==="*"){let g=a[d]||"";s=o.slice(0,o.length-g.length).replace(/(.)\/+$/,"$1")}const f=a[d];return p&&!f?c[h]=void 0:c[h]=(f||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:s,pattern:e}}function cRe(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Oy(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 n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(n.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function uRe(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Oy(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function EC(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function dRe(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?Vp(e):e;return{pathname:r?r.startsWith("/")?r:hRe(r,t):t,search:fRe(n),hash:gRe(i)}}function hRe(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function v_(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function dse(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function PD(e,t){let r=dse(e);return t?r.map((n,i)=>i===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function MD(e,t,r,n){n===void 0&&(n=!1);let i;typeof e=="string"?i=Vp(e):(i=oi({},e),ln(!i.pathname||!i.pathname.includes("?"),v_("?","pathname","search",i)),ln(!i.pathname||!i.pathname.includes("#"),v_("#","pathname","hash",i)),ln(!i.search||!i.search.includes("#"),v_("#","search","hash",i)));let o=e===""||i.pathname==="",s=o?"/":i.pathname,a;if(s==null)a=r;else{let d=t.length-1;if(!n&&s.startsWith("..")){let h=s.split("/");for(;h[0]==="..";)h.shift(),d-=1;i.pathname=h.join("/")}a=d>=0?t[d]:"/"}let l=dRe(i,a),c=s&&s!=="/"&&s.endsWith("/"),u=(o||s===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const yd=e=>e.join("/").replace(/\/\/+/g,"/"),pRe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),fRe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,gRe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class iM{constructor(t,r,n,i){i===void 0&&(i=!1),this.status=t,this.statusText=r||"",this.internal=i,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function mw(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const hse=["post","put","patch","delete"],mRe=new Set(hse),vRe=["get",...hse],yRe=new Set(vRe),CRe=new Set([301,302,303,307,308]),bRe=new Set([307,308]),y_={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},SRe={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Jb={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},p4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,wRe=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),pse="remix-router-transitions";function xRe(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;ln(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let se=e.detectErrorBoundary;i=ce=>({hasErrorBoundary:se(ce)})}else i=wRe;let o={},s=nM(e.routes,i,void 0,o),a,l=e.basename||"/",c=e.dataStrategy||PRe,u=e.patchRoutesOnNavigation,d=oi({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),h=null,p=new Set,f=null,g=null,m=null,y=e.hydrationData!=null,b=ng(s,e.history.location,l),S=!1,x=null;if(b==null&&!u){let se=qs(404,{pathname:e.history.location.pathname}),{matches:ce,route:fe}=rj(s);b=ce,x={[fe.id]:se}}b&&!e.hydrationData&&Re(b,s,e.history.location.pathname).active&&(b=null);let E;if(b)if(b.some(se=>se.route.lazy))E=!1;else if(!b.some(se=>se.route.loader))E=!0;else if(d.v7_partialHydration){let se=e.hydrationData?e.hydrationData.loaderData:null,ce=e.hydrationData?e.hydrationData.errors:null;if(ce){let fe=b.findIndex(Te=>ce[Te.route.id]!==void 0);E=b.slice(0,fe+1).every(Te=>!ZN(Te.route,se,ce))}else E=b.every(fe=>!ZN(fe.route,se,ce))}else E=e.hydrationData!=null;else if(E=!1,b=[],d.v7_partialHydration){let se=Re(null,s,e.history.location.pathname);se.active&&se.matches&&(S=!0,b=se.matches)}let R,T={historyAction:e.history.action,location:e.history.location,matches:b,initialized:E,navigation:y_,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||x,fetchers:new Map,blockers:new Map},M=Vi.Pop,D=!1,A,I=!1,L=new Map,F=null,O=!1,k=!1,B=[],H=new Set,N=new Map,z=0,W=-1,V=new Map,$=new Set,K=new Map,q=new Map,X=new Set,Y=new Map,oe=new Map,ee;function ne(){if(h=e.history.listen(se=>{let{action:ce,location:fe,delta:Te}=se;if(ee){ee(),ee=void 0;return}Oy(oe.size===0||Te!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let $e=Wt({currentLocation:T.location,nextLocation:fe,historyAction:ce});if($e&&Te!=null){let et=new Promise(Dt=>{ee=Dt});e.history.go(Te*-1),Ot($e,{state:"blocked",location:fe,proceed(){Ot($e,{state:"proceeding",proceed:void 0,reset:void 0,location:fe}),et.then(()=>e.history.go(Te))},reset(){let Dt=new Map(T.blockers);Dt.set($e,Jb),re({blockers:Dt})}});return}return ue(ce,fe)}),r){VRe(t,L);let se=()=>zRe(t,L);t.addEventListener("pagehide",se),F=()=>t.removeEventListener("pagehide",se)}return T.initialized||ue(Vi.Pop,T.location,{initialHydration:!0}),R}function le(){h&&h(),F&&F(),p.clear(),A&&A.abort(),T.fetchers.forEach((se,ce)=>Ne(ce)),T.blockers.forEach((se,ce)=>Tt(ce))}function he(se){return p.add(se),()=>p.delete(se)}function re(se,ce){ce===void 0&&(ce={}),T=oi({},T,se);let fe=[],Te=[];d.v7_fetcherPersist&&T.fetchers.forEach(($e,et)=>{$e.state==="idle"&&(X.has(et)?Te.push(et):fe.push(et))}),X.forEach($e=>{!T.fetchers.has($e)&&!N.has($e)&&Te.push($e)}),[...p].forEach($e=>$e(T,{deletedFetchers:Te,viewTransitionOpts:ce.viewTransitionOpts,flushSync:ce.flushSync===!0})),d.v7_fetcherPersist?(fe.forEach($e=>T.fetchers.delete($e)),Te.forEach($e=>Ne($e))):Te.forEach($e=>X.delete($e))}function ie(se,ce,fe){var Te,$e;let{flushSync:et}=fe===void 0?{}:fe,Dt=T.actionData!=null&&T.navigation.formMethod!=null&&Yl(T.navigation.formMethod)&&T.navigation.state==="loading"&&((Te=se.state)==null?void 0:Te._isRedirect)!==!0,ct;ce.actionData?Object.keys(ce.actionData).length>0?ct=ce.actionData:ct=null:Dt?ct=T.actionData:ct=null;let st=ce.loaderData?ej(T.loaderData,ce.loaderData,ce.matches||[],ce.errors):T.loaderData,wt=T.blockers;wt.size>0&&(wt=new Map(wt),wt.forEach((At,pt)=>wt.set(pt,Jb)));let Mt=D===!0||T.navigation.formMethod!=null&&Yl(T.navigation.formMethod)&&(($e=se.state)==null?void 0:$e._isRedirect)!==!0;a&&(s=a,a=void 0),O||M===Vi.Pop||(M===Vi.Push?e.history.push(se,se.state):M===Vi.Replace&&e.history.replace(se,se.state));let _t;if(M===Vi.Pop){let At=L.get(T.location.pathname);At&&At.has(se.pathname)?_t={currentLocation:T.location,nextLocation:se}:L.has(se.pathname)&&(_t={currentLocation:se,nextLocation:T.location})}else if(I){let At=L.get(T.location.pathname);At?At.add(se.pathname):(At=new Set([se.pathname]),L.set(T.location.pathname,At)),_t={currentLocation:T.location,nextLocation:se}}re(oi({},ce,{actionData:ct,loaderData:st,historyAction:M,location:se,initialized:!0,navigation:y_,revalidation:"idle",restoreScrollPosition:qe(se,ce.matches||T.matches),preventScrollReset:Mt,blockers:wt}),{viewTransitionOpts:_t,flushSync:et===!0}),M=Vi.Pop,D=!1,I=!1,O=!1,k=!1,B=[]}async function de(se,ce){if(typeof se=="number"){e.history.go(se);return}let fe=YN(T.location,T.matches,l,d.v7_prependBasename,se,d.v7_relativeSplatPath,ce==null?void 0:ce.fromRouteId,ce==null?void 0:ce.relative),{path:Te,submission:$e,error:et}=jU(d.v7_normalizeFormMethod,!1,fe,ce),Dt=T.location,ct=gw(T.location,Te,ce&&ce.state);ct=oi({},ct,e.history.encodeLocation(ct));let st=ce&&ce.replace!=null?ce.replace:void 0,wt=Vi.Push;st===!0?wt=Vi.Replace:st===!1||$e!=null&&Yl($e.formMethod)&&$e.formAction===T.location.pathname+T.location.search&&(wt=Vi.Replace);let Mt=ce&&"preventScrollReset"in ce?ce.preventScrollReset===!0:void 0,_t=(ce&&ce.flushSync)===!0,At=Wt({currentLocation:Dt,nextLocation:ct,historyAction:wt});if(At){Ot(At,{state:"blocked",location:ct,proceed(){Ot(At,{state:"proceeding",proceed:void 0,reset:void 0,location:ct}),de(se,ce)},reset(){let pt=new Map(T.blockers);pt.set(At,Jb),re({blockers:pt})}});return}return await ue(wt,ct,{submission:$e,pendingError:et,preventScrollReset:Mt,replace:ce&&ce.replace,enableViewTransition:ce&&ce.viewTransition,flushSync:_t})}function J(){if(St(),re({revalidation:"loading"}),T.navigation.state!=="submitting"){if(T.navigation.state==="idle"){ue(T.historyAction,T.location,{startUninterruptedRevalidation:!0});return}ue(M||T.historyAction,T.navigation.location,{overrideNavigation:T.navigation,enableViewTransition:I===!0})}}async function ue(se,ce,fe){A&&A.abort(),A=null,M=se,O=(fe&&fe.startUninterruptedRevalidation)===!0,_e(T.location,T.matches),D=(fe&&fe.preventScrollReset)===!0,I=(fe&&fe.enableViewTransition)===!0;let Te=a||s,$e=fe&&fe.overrideNavigation,et=fe!=null&&fe.initialHydration&&T.matches&&T.matches.length>0&&!S?T.matches:ng(Te,ce,l),Dt=(fe&&fe.flushSync)===!0;if(et&&T.initialized&&!k&&LRe(T.location,ce)&&!(fe&&fe.submission&&Yl(fe.submission.formMethod))){ie(ce,{matches:et},{flushSync:Dt});return}let ct=Re(et,Te,ce.pathname);if(ct.active&&ct.matches&&(et=ct.matches),!et){let{error:yt,notFoundMatches:It,route:Qt}=at(ce.pathname);ie(ce,{matches:It,loaderData:{},errors:{[Qt.id]:yt}},{flushSync:Dt});return}A=new AbortController;let st=cv(e.history,ce,A.signal,fe&&fe.submission),wt;if(fe&&fe.pendingError)wt=[ig(et).route.id,{type:Fn.error,error:fe.pendingError}];else if(fe&&fe.submission&&Yl(fe.submission.formMethod)){let yt=await ve(st,ce,fe.submission,et,ct.active,{replace:fe.replace,flushSync:Dt});if(yt.shortCircuited)return;if(yt.pendingActionResult){let[It,Qt]=yt.pendingActionResult;if(Pa(Qt)&&mw(Qt.error)&&Qt.error.status===404){A=null,ie(ce,{matches:yt.matches,loaderData:{},errors:{[It]:Qt.error}});return}}et=yt.matches||et,wt=yt.pendingActionResult,$e=C_(ce,fe.submission),Dt=!1,ct.active=!1,st=cv(e.history,st.url,st.signal)}let{shortCircuited:Mt,matches:_t,loaderData:At,errors:pt}=await pe(st,ce,et,ct.active,$e,fe&&fe.submission,fe&&fe.fetcherSubmission,fe&&fe.replace,fe&&fe.initialHydration===!0,Dt,wt);Mt||(A=null,ie(ce,oi({matches:_t||et},tj(wt),{loaderData:At,errors:pt})))}async function ve(se,ce,fe,Te,$e,et){et===void 0&&(et={}),St();let Dt=$Re(ce,fe);if(re({navigation:Dt},{flushSync:et.flushSync===!0}),$e){let wt=await it(Te,ce.pathname,se.signal);if(wt.type==="aborted")return{shortCircuited:!0};if(wt.type==="error"){let Mt=ig(wt.partialMatches).route.id;return{matches:wt.partialMatches,pendingActionResult:[Mt,{type:Fn.error,error:wt.error}]}}else if(wt.matches)Te=wt.matches;else{let{notFoundMatches:Mt,error:_t,route:At}=at(ce.pathname);return{matches:Mt,pendingActionResult:[At.id,{type:Fn.error,error:_t}]}}}let ct,st=eS(Te,ce);if(!st.route.action&&!st.route.lazy)ct={type:Fn.error,error:qs(405,{method:se.method,pathname:ce.pathname,routeId:st.route.id})};else if(ct=(await mt("action",T,se,[st],Te,null))[st.route.id],se.signal.aborted)return{shortCircuited:!0};if(gg(ct)){let wt;return et&&et.replace!=null?wt=et.replace:wt=ZU(ct.response.headers.get("Location"),new URL(se.url),l)===T.location.pathname+T.location.search,await ze(se,ct,!0,{submission:fe,replace:wt}),{shortCircuited:!0}}if(Jh(ct))throw qs(400,{type:"defer-action"});if(Pa(ct)){let wt=ig(Te,st.route.id);return(et&&et.replace)!==!0&&(M=Vi.Push),{matches:Te,pendingActionResult:[wt.route.id,ct]}}return{matches:Te,pendingActionResult:[st.route.id,ct]}}async function pe(se,ce,fe,Te,$e,et,Dt,ct,st,wt,Mt){let _t=$e||C_(ce,et),At=et||Dt||ij(_t),pt=!O&&(!d.v7_partialHydration||!st);if(Te){if(pt){let sn=me(Mt);re(oi({navigation:_t},sn!==void 0?{actionData:sn}:{}),{flushSync:wt})}let Dr=await it(fe,ce.pathname,se.signal);if(Dr.type==="aborted")return{shortCircuited:!0};if(Dr.type==="error"){let sn=ig(Dr.partialMatches).route.id;return{matches:Dr.partialMatches,loaderData:{},errors:{[sn]:Dr.error}}}else if(Dr.matches)fe=Dr.matches;else{let{error:sn,notFoundMatches:ri,route:vr}=at(ce.pathname);return{matches:ri,loaderData:{},errors:{[vr.id]:sn}}}}let yt=a||s,[It,Qt]=qU(e.history,T,fe,At,ce,d.v7_partialHydration&&st===!0,d.v7_skipActionErrorRevalidation,k,B,H,X,K,$,yt,l,Mt);if(lt(Dr=>!(fe&&fe.some(sn=>sn.route.id===Dr))||It&&It.some(sn=>sn.route.id===Dr)),W=++z,It.length===0&&Qt.length===0){let Dr=Ae();return ie(ce,oi({matches:fe,loaderData:{},errors:Mt&&Pa(Mt[1])?{[Mt[0]]:Mt[1].error}:null},tj(Mt),Dr?{fetchers:new Map(T.fetchers)}:{}),{flushSync:wt}),{shortCircuited:!0}}if(pt){let Dr={};if(!Te){Dr.navigation=_t;let sn=me(Mt);sn!==void 0&&(Dr.actionData=sn)}Qt.length>0&&(Dr.fetchers=Oe(Qt)),re(Dr,{flushSync:wt})}Qt.forEach(Dr=>{ot(Dr.key),Dr.controller&&N.set(Dr.key,Dr.controller)});let Ft=()=>Qt.forEach(Dr=>ot(Dr.key));A&&A.signal.addEventListener("abort",Ft);let{loaderResults:ur,fetcherResults:fr}=await Nt(T,fe,It,Qt,se);if(se.signal.aborted)return{shortCircuited:!0};A&&A.signal.removeEventListener("abort",Ft),Qt.forEach(Dr=>N.delete(Dr.key));let rr=jE(ur);if(rr)return await ze(se,rr.result,!0,{replace:ct}),{shortCircuited:!0};if(rr=jE(fr),rr)return $.add(rr.key),await ze(se,rr.result,!0,{replace:ct}),{shortCircuited:!0};let{loaderData:yn,errors:dn}=JU(T,fe,ur,Mt,Qt,fr,Y);Y.forEach((Dr,sn)=>{Dr.subscribe(ri=>{(ri||Dr.done)&&Y.delete(sn)})}),d.v7_partialHydration&&st&&T.errors&&(dn=oi({},T.errors,dn));let hn=Ae(),en=nt(W),fo=hn||en||Qt.length>0;return oi({matches:fe,loaderData:yn,errors:dn},fo?{fetchers:new Map(T.fetchers)}:{})}function me(se){if(se&&!Pa(se[1]))return{[se[0]]:se[1].data};if(T.actionData)return Object.keys(T.actionData).length===0?null:T.actionData}function Oe(se){return se.forEach(ce=>{let fe=T.fetchers.get(ce.key),Te=e0(void 0,fe?fe.data:void 0);T.fetchers.set(ce.key,Te)}),new Map(T.fetchers)}function De(se,ce,fe,Te){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");ot(se);let $e=(Te&&Te.flushSync)===!0,et=a||s,Dt=YN(T.location,T.matches,l,d.v7_prependBasename,fe,d.v7_relativeSplatPath,ce,Te==null?void 0:Te.relative),ct=ng(et,Dt,l),st=Re(ct,et,Dt);if(st.active&&st.matches&&(ct=st.matches),!ct){Fe(se,ce,qs(404,{pathname:Dt}),{flushSync:$e});return}let{path:wt,submission:Mt,error:_t}=jU(d.v7_normalizeFormMethod,!0,Dt,Te);if(_t){Fe(se,ce,_t,{flushSync:$e});return}let At=eS(ct,wt),pt=(Te&&Te.preventScrollReset)===!0;if(Mt&&Yl(Mt.formMethod)){Ee(se,ce,wt,At,ct,st.active,$e,pt,Mt);return}K.set(se,{routeId:ce,path:wt}),We(se,ce,wt,At,ct,st.active,$e,pt,Mt)}async function Ee(se,ce,fe,Te,$e,et,Dt,ct,st){St(),K.delete(se);function wt(Ct){if(!Ct.route.action&&!Ct.route.lazy){let yr=qs(405,{method:st.formMethod,pathname:fe,routeId:ce});return Fe(se,ce,yr,{flushSync:Dt}),!0}return!1}if(!et&&wt(Te))return;let Mt=T.fetchers.get(se);Ze(se,GRe(st,Mt),{flushSync:Dt});let _t=new AbortController,At=cv(e.history,fe,_t.signal,st);if(et){let Ct=await it($e,new URL(At.url).pathname,At.signal,se);if(Ct.type==="aborted")return;if(Ct.type==="error"){Fe(se,ce,Ct.error,{flushSync:Dt});return}else if(Ct.matches){if($e=Ct.matches,Te=eS($e,fe),wt(Te))return}else{Fe(se,ce,qs(404,{pathname:fe}),{flushSync:Dt});return}}N.set(se,_t);let pt=z,It=(await mt("action",T,At,[Te],$e,se))[Te.route.id];if(At.signal.aborted){N.get(se)===_t&&N.delete(se);return}if(d.v7_fetcherPersist&&X.has(se)){if(gg(It)||Pa(It)){Ze(se,Lh(void 0));return}}else{if(gg(It))if(N.delete(se),W>pt){Ze(se,Lh(void 0));return}else return $.add(se),Ze(se,e0(st)),ze(At,It,!1,{fetcherSubmission:st,preventScrollReset:ct});if(Pa(It)){Fe(se,ce,It.error);return}}if(Jh(It))throw qs(400,{type:"defer-action"});let Qt=T.navigation.location||T.location,Ft=cv(e.history,Qt,_t.signal),ur=a||s,fr=T.navigation.state!=="idle"?ng(ur,T.navigation.location,l):T.matches;ln(fr,"Didn't find any matches after fetcher action");let rr=++z;V.set(se,rr);let yn=e0(st,It.data);T.fetchers.set(se,yn);let[dn,hn]=qU(e.history,T,fr,st,Qt,!1,d.v7_skipActionErrorRevalidation,k,B,H,X,K,$,ur,l,[Te.route.id,It]);hn.filter(Ct=>Ct.key!==se).forEach(Ct=>{let yr=Ct.key,wn=T.fetchers.get(yr),ni=e0(void 0,wn?wn.data:void 0);T.fetchers.set(yr,ni),ot(yr),Ct.controller&&N.set(yr,Ct.controller)}),re({fetchers:new Map(T.fetchers)});let en=()=>hn.forEach(Ct=>ot(Ct.key));_t.signal.addEventListener("abort",en);let{loaderResults:fo,fetcherResults:Dr}=await Nt(T,fr,dn,hn,Ft);if(_t.signal.aborted)return;_t.signal.removeEventListener("abort",en),V.delete(se),N.delete(se),hn.forEach(Ct=>N.delete(Ct.key));let sn=jE(fo);if(sn)return ze(Ft,sn.result,!1,{preventScrollReset:ct});if(sn=jE(Dr),sn)return $.add(sn.key),ze(Ft,sn.result,!1,{preventScrollReset:ct});let{loaderData:ri,errors:vr}=JU(T,fr,fo,void 0,hn,Dr,Y);if(T.fetchers.has(se)){let Ct=Lh(It.data);T.fetchers.set(se,Ct)}nt(rr),T.navigation.state==="loading"&&rr>W?(ln(M,"Expected pending action"),A&&A.abort(),ie(T.navigation.location,{matches:fr,loaderData:ri,errors:vr,fetchers:new Map(T.fetchers)})):(re({errors:vr,loaderData:ej(T.loaderData,ri,fr,vr),fetchers:new Map(T.fetchers)}),k=!1)}async function We(se,ce,fe,Te,$e,et,Dt,ct,st){let wt=T.fetchers.get(se);Ze(se,e0(st,wt?wt.data:void 0),{flushSync:Dt});let Mt=new AbortController,_t=cv(e.history,fe,Mt.signal);if(et){let It=await it($e,new URL(_t.url).pathname,_t.signal,se);if(It.type==="aborted")return;if(It.type==="error"){Fe(se,ce,It.error,{flushSync:Dt});return}else if(It.matches)$e=It.matches,Te=eS($e,fe);else{Fe(se,ce,qs(404,{pathname:fe}),{flushSync:Dt});return}}N.set(se,Mt);let At=z,yt=(await mt("loader",T,_t,[Te],$e,se))[Te.route.id];if(Jh(yt)&&(yt=await f4(yt,_t.signal,!0)||yt),N.get(se)===Mt&&N.delete(se),!_t.signal.aborted){if(X.has(se)){Ze(se,Lh(void 0));return}if(gg(yt))if(W>At){Ze(se,Lh(void 0));return}else{$.add(se),await ze(_t,yt,!1,{preventScrollReset:ct});return}if(Pa(yt)){Fe(se,ce,yt.error);return}ln(!Jh(yt),"Unhandled fetcher deferred data"),Ze(se,Lh(yt.data))}}async function ze(se,ce,fe,Te){let{submission:$e,fetcherSubmission:et,preventScrollReset:Dt,replace:ct}=Te===void 0?{}:Te;ce.response.headers.has("X-Remix-Revalidate")&&(k=!0);let st=ce.response.headers.get("Location");ln(st,"Expected a Location header on the redirect Response"),st=ZU(st,new URL(se.url),l);let wt=gw(T.location,st,{_isRedirect:!0});if(r){let It=!1;if(ce.response.headers.has("X-Remix-Reload-Document"))It=!0;else if(p4.test(st)){const Qt=e.history.createURL(st);It=Qt.origin!==t.location.origin||EC(Qt.pathname,l)==null}if(It){ct?t.location.replace(st):t.location.assign(st);return}}A=null;let Mt=ct===!0||ce.response.headers.has("X-Remix-Replace")?Vi.Replace:Vi.Push,{formMethod:_t,formAction:At,formEncType:pt}=T.navigation;!$e&&!et&&_t&&At&&pt&&($e=ij(T.navigation));let yt=$e||et;if(bRe.has(ce.response.status)&&yt&&Yl(yt.formMethod))await ue(Mt,wt,{submission:oi({},yt,{formAction:st}),preventScrollReset:Dt||D,enableViewTransition:fe?I:void 0});else{let It=C_(wt,$e);await ue(Mt,wt,{overrideNavigation:It,fetcherSubmission:et,preventScrollReset:Dt||D,enableViewTransition:fe?I:void 0})}}async function mt(se,ce,fe,Te,$e,et){let Dt,ct={};try{Dt=await MRe(c,se,ce,fe,Te,$e,et,o,i)}catch(st){return Te.forEach(wt=>{ct[wt.route.id]={type:Fn.error,error:st}}),ct}for(let[st,wt]of Object.entries(Dt))if(_Re(wt)){let Mt=wt.result;ct[st]={type:Fn.redirect,response:ARe(Mt,fe,st,$e,l,d.v7_relativeSplatPath)}}else ct[st]=await DRe(wt);return ct}async function Nt(se,ce,fe,Te,$e){let et=se.matches,Dt=mt("loader",se,$e,fe,ce,null),ct=Promise.all(Te.map(async Mt=>{if(Mt.matches&&Mt.match&&Mt.controller){let At=(await mt("loader",se,cv(e.history,Mt.path,Mt.controller.signal),[Mt.match],Mt.matches,Mt.key))[Mt.match.route.id];return{[Mt.key]:At}}else return Promise.resolve({[Mt.key]:{type:Fn.error,error:qs(404,{pathname:Mt.path})}})})),st=await Dt,wt=(await ct).reduce((Mt,_t)=>Object.assign(Mt,_t),{});return await Promise.all([NRe(ce,st,$e.signal,et,se.loaderData),BRe(ce,wt,Te)]),{loaderResults:st,fetcherResults:wt}}function St(){k=!0,B.push(...lt()),K.forEach((se,ce)=>{N.has(ce)&&H.add(ce),ot(ce)})}function Ze(se,ce,fe){fe===void 0&&(fe={}),T.fetchers.set(se,ce),re({fetchers:new Map(T.fetchers)},{flushSync:(fe&&fe.flushSync)===!0})}function Fe(se,ce,fe,Te){Te===void 0&&(Te={});let $e=ig(T.matches,ce);Ne(se),re({errors:{[$e.route.id]:fe},fetchers:new Map(T.fetchers)},{flushSync:(Te&&Te.flushSync)===!0})}function tt(se){return q.set(se,(q.get(se)||0)+1),X.has(se)&&X.delete(se),T.fetchers.get(se)||SRe}function Ne(se){let ce=T.fetchers.get(se);N.has(se)&&!(ce&&ce.state==="loading"&&V.has(se))&&ot(se),K.delete(se),V.delete(se),$.delete(se),d.v7_fetcherPersist&&X.delete(se),H.delete(se),T.fetchers.delete(se)}function rt(se){let ce=(q.get(se)||0)-1;ce<=0?(q.delete(se),X.add(se),d.v7_fetcherPersist||Ne(se)):q.set(se,ce),re({fetchers:new Map(T.fetchers)})}function ot(se){let ce=N.get(se);ce&&(ce.abort(),N.delete(se))}function Ye(se){for(let ce of se){let fe=tt(ce),Te=Lh(fe.data);T.fetchers.set(ce,Te)}}function Ae(){let se=[],ce=!1;for(let fe of $){let Te=T.fetchers.get(fe);ln(Te,"Expected fetcher: "+fe),Te.state==="loading"&&($.delete(fe),se.push(fe),ce=!0)}return Ye(se),ce}function nt(se){let ce=[];for(let[fe,Te]of V)if(Te0}function Et(se,ce){let fe=T.blockers.get(se)||Jb;return oe.get(se)!==ce&&oe.set(se,ce),fe}function Tt(se){T.blockers.delete(se),oe.delete(se)}function Ot(se,ce){let fe=T.blockers.get(se)||Jb;ln(fe.state==="unblocked"&&ce.state==="blocked"||fe.state==="blocked"&&ce.state==="blocked"||fe.state==="blocked"&&ce.state==="proceeding"||fe.state==="blocked"&&ce.state==="unblocked"||fe.state==="proceeding"&&ce.state==="unblocked","Invalid blocker state transition: "+fe.state+" -> "+ce.state);let Te=new Map(T.blockers);Te.set(se,ce),re({blockers:Te})}function Wt(se){let{currentLocation:ce,nextLocation:fe,historyAction:Te}=se;if(oe.size===0)return;oe.size>1&&Oy(!1,"A router only supports one blocker at a time");let $e=Array.from(oe.entries()),[et,Dt]=$e[$e.length-1],ct=T.blockers.get(et);if(!(ct&&ct.state==="proceeding")&&Dt({currentLocation:ce,nextLocation:fe,historyAction:Te}))return et}function at(se){let ce=qs(404,{pathname:se}),fe=a||s,{matches:Te,route:$e}=rj(fe);return lt(),{notFoundMatches:Te,route:$e,error:ce}}function lt(se){let ce=[];return Y.forEach((fe,Te)=>{(!se||se(Te))&&(fe.cancel(),ce.push(Te),Y.delete(Te))}),ce}function Ut(se,ce,fe){if(f=se,m=ce,g=fe||null,!y&&T.navigation===y_){y=!0;let Te=qe(T.location,T.matches);Te!=null&&re({restoreScrollPosition:Te})}return()=>{f=null,m=null,g=null}}function cr(se,ce){return g&&g(se,ce.map(Te=>QTe(Te,T.loaderData)))||se.key}function _e(se,ce){if(f&&m){let fe=cr(se,ce);f[fe]=m()}}function qe(se,ce){if(f){let fe=cr(se,ce),Te=f[fe];if(typeof Te=="number")return Te}return null}function Re(se,ce,fe){if(u)if(se){if(Object.keys(se[0].params).length>0)return{active:!0,matches:rP(ce,fe,l,!0)}}else return{active:!0,matches:rP(ce,fe,l,!0)||[]};return{active:!1,matches:null}}async function it(se,ce,fe,Te){if(!u)return{type:"success",matches:se};let $e=se;for(;;){let et=a==null,Dt=a||s,ct=o;try{await u({signal:fe,path:ce,matches:$e,fetcherKey:Te,patch:(Mt,_t)=>{fe.aborted||YU(Mt,_t,Dt,ct,i)}})}catch(Mt){return{type:"error",error:Mt,partialMatches:$e}}finally{et&&!fe.aborted&&(s=[...s])}if(fe.aborted)return{type:"aborted"};let st=ng(Dt,ce,l);if(st)return{type:"success",matches:st};let wt=rP(Dt,ce,l,!0);if(!wt||$e.length===wt.length&&$e.every((Mt,_t)=>Mt.route.id===wt[_t].route.id))return{type:"success",matches:null};$e=wt}}function Ve(se){o={},a=nM(se,i,void 0,o)}function ke(se,ce){let fe=a==null;YU(se,ce,a||s,o,i),fe&&(s=[...s],re({}))}return R={get basename(){return l},get future(){return d},get state(){return T},get routes(){return s},get window(){return t},initialize:ne,subscribe:he,enableScrollRestoration:Ut,navigate:de,fetch:De,revalidate:J,createHref:se=>e.history.createHref(se),encodeLocation:se=>e.history.encodeLocation(se),getFetcher:tt,deleteFetcher:rt,dispose:le,getBlocker:Et,deleteBlocker:Tt,patchRoutes:ke,_internalFetchControllers:N,_internalActiveDeferreds:Y,_internalSetRoutes:Ve},R}function ERe(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function YN(e,t,r,n,i,o,s,a){let l,c;if(s){l=[];for(let d of t)if(l.push(d),d.route.id===s){c=d;break}}else l=t,c=t[t.length-1];let u=MD(i||".",PD(l,o),EC(e.pathname,r)||e.pathname,a==="path");if(i==null&&(u.search=e.search,u.hash=e.hash),(i==null||i===""||i===".")&&c){let d=g4(u.search);if(c.route.index&&!d)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&d){let h=new URLSearchParams(u.search),p=h.getAll("index");h.delete("index"),p.filter(g=>g).forEach(g=>h.append("index",g));let f=h.toString();u.search=f?"?"+f:""}}return n&&r!=="/"&&(u.pathname=u.pathname==="/"?r:yd([r,u.pathname])),Qg(u)}function jU(e,t,r,n){if(!n||!ERe(n))return{path:r};if(n.formMethod&&!ORe(n.formMethod))return{path:r,error:qs(405,{method:n.formMethod})};let i=()=>({path:r,error:qs(400,{type:"invalid-body"})}),o=n.formMethod||"get",s=e?o.toUpperCase():o.toLowerCase(),a=mse(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Yl(s))return i();let h=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((p,f)=>{let[g,m]=f;return""+p+g+"="+m+` `},""):String(n.body);return{path:r,submission:{formMethod:s,formAction:a,formEncType:n.formEncType,formData:void 0,json:void 0,text:h}}}else if(n.formEncType==="application/json"){if(!Yl(s))return i();try{let h=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:s,formAction:a,formEncType:n.formEncType,formData:void 0,json:h,text:void 0}}}catch{return i()}}}ln(typeof FormData=="function","FormData is not available in this environment");let l,c;if(n.formData)l=QN(n.formData),c=n.formData;else if(n.body instanceof FormData)l=QN(n.body),c=n.body;else if(n.body instanceof URLSearchParams)l=n.body,c=QU(l);else if(n.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(n.body),c=QU(l)}catch{return i()}let u={formMethod:s,formAction:a,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(Yl(u.formMethod))return{path:r,submission:u};let d=Vp(r);return t&&d.search&&g4(d.search)&&l.append("index",""),d.search="?"+l,{path:Qg(d),submission:u}}function KU(e,t,r){r===void 0&&(r=!1);let n=e.findIndex(i=>i.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function qU(e,t,r,n,i,o,s,a,l,c,u,d,h,p,f,g){let m=g?Pa(g[1])?g[1].error:g[1].data:void 0,y=e.createURL(t.location),b=e.createURL(i),S=r;o&&t.errors?S=KU(r,Object.keys(t.errors)[0],!0):g&&Pa(g[1])&&(S=KU(r,g[0]));let x=g?g[1].statusCode:void 0,E=s&&x&&x>=400,R=S.filter((M,D)=>{let{route:A}=M;if(A.lazy)return!0;if(A.loader==null)return!1;if(o)return ZN(A,t.loaderData,t.errors);if(TRe(t.loaderData,t.matches[D],M)||l.some(F=>F===M.route.id))return!0;let I=t.matches[D],L=M;return XU(M,oi({currentUrl:y,currentParams:I.params,nextUrl:b,nextParams:L.params},n,{actionResult:m,actionStatus:x,defaultShouldRevalidate:E?!1:a||y.pathname+y.search===b.pathname+b.search||y.search!==b.search||fse(I,L)}))}),T=[];return d.forEach((M,D)=>{if(o||!r.some(O=>O.route.id===M.routeId)||u.has(D))return;let A=ng(p,M.path,f);if(!A){T.push({key:D,routeId:M.routeId,path:M.path,matches:null,match:null,controller:null});return}let I=t.fetchers.get(D),L=eS(A,M.path),F=!1;h.has(D)?F=!1:c.has(D)?(c.delete(D),F=!0):I&&I.state!=="idle"&&I.data===void 0?F=a:F=XU(L,oi({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:r[r.length-1].params},n,{actionResult:m,actionStatus:x,defaultShouldRevalidate:E?!1:a})),F&&T.push({key:D,routeId:M.routeId,path:M.path,matches:A,match:L,controller:new AbortController})}),[R,T]}function ZN(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=t!=null&&t[e.id]!==void 0,i=r!=null&&r[e.id]!==void 0;return!n&&i?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!n&&!i}function TRe(e,t,r){let n=!t||r.route.id!==t.route.id,i=e[r.route.id]===void 0;return n||i}function fse(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function XU(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function YU(e,t,r,n,i){var o;let s;if(e){let c=n[e];ln(c,"No route found to patch children into: routeId = "+e),c.children||(c.children=[]),s=c.children}else s=r;let a=t.filter(c=>!s.some(u=>gse(c,u))),l=nM(a,i,[e||"_","patch",String(((o=s)==null?void 0:o.length)||"0")],n);s.push(...l)}function gse(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((r,n)=>{var i;return(i=t.children)==null?void 0:i.some(o=>gse(r,o))}):!1}async function RRe(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let i=r[e.id];ln(i,"No route found in manifest");let o={};for(let s in n){let l=i[s]!==void 0&&s!=="hasErrorBoundary";Oy(!l,'Route "'+i.id+'" has a static property "'+s+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+s+'" will be ignored.')),!l&&!YTe.has(s)&&(o[s]=n[s])}Object.assign(i,o),Object.assign(i,oi({},t(i),{lazy:void 0}))}async function PRe(e){let{matches:t}=e,r=t.filter(i=>i.shouldLoad);return(await Promise.all(r.map(i=>i.resolve()))).reduce((i,o,s)=>Object.assign(i,{[r[s].route.id]:o}),{})}async function MRe(e,t,r,n,i,o,s,a,l,c){let u=o.map(p=>p.route.lazy?RRe(p.route,l,a):void 0),d=o.map((p,f)=>{let g=u[f],m=i.some(b=>b.route.id===p.route.id);return oi({},p,{shouldLoad:m,resolve:async b=>(b&&n.method==="GET"&&(p.route.lazy||p.route.loader)&&(m=!0),m?IRe(t,n,p,g,b,c):Promise.resolve({type:Fn.data,result:void 0}))})}),h=await e({matches:d,request:n,params:o[0].params,fetcherKey:s,context:c});try{await Promise.all(u)}catch{}return h}async function IRe(e,t,r,n,i,o){let s,a,l=c=>{let u,d=new Promise((f,g)=>u=g);a=()=>u(),t.signal.addEventListener("abort",a);let h=f=>typeof c!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):c({request:t,params:r.params,context:o},...f!==void 0?[f]:[]),p=(async()=>{try{return{type:"data",result:await(i?i(g=>h(g)):h())}}catch(f){return{type:"error",result:f}}})();return Promise.race([p,d])};try{let c=r.route[e];if(n)if(c){let u,[d]=await Promise.all([l(c).catch(h=>{u=h}),n]);if(u!==void 0)throw u;s=d}else if(await n,c=r.route[e],c)s=await l(c);else if(e==="action"){let u=new URL(t.url),d=u.pathname+u.search;throw qs(405,{method:t.method,pathname:d,routeId:r.route.id})}else return{type:Fn.data,result:void 0};else if(c)s=await l(c);else{let u=new URL(t.url),d=u.pathname+u.search;throw qs(404,{pathname:d})}ln(s.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(c){return{type:Fn.error,result:c}}finally{a&&t.signal.removeEventListener("abort",a)}return s}async function DRe(e){let{result:t,type:r}=e;if(vse(t)){let d;try{let h=t.headers.get("Content-Type");h&&/\bapplication\/json\b/.test(h)?t.body==null?d=null:d=await t.json():d=await t.text()}catch(h){return{type:Fn.error,error:h}}return r===Fn.error?{type:Fn.error,error:new iM(t.status,t.statusText,d),statusCode:t.status,headers:t.headers}:{type:Fn.data,data:d,statusCode:t.status,headers:t.headers}}if(r===Fn.error){if(nj(t)){var n,i;if(t.data instanceof Error){var o,s;return{type:Fn.error,error:t.data,statusCode:(o=t.init)==null?void 0:o.status,headers:(s=t.init)!=null&&s.headers?new Headers(t.init.headers):void 0}}return{type:Fn.error,error:new iM(((n=t.init)==null?void 0:n.status)||500,void 0,t.data),statusCode:mw(t)?t.status:void 0,headers:(i=t.init)!=null&&i.headers?new Headers(t.init.headers):void 0}}return{type:Fn.error,error:t,statusCode:mw(t)?t.status:void 0}}if(kRe(t)){var a,l;return{type:Fn.deferred,deferredData:t,statusCode:(a=t.init)==null?void 0:a.status,headers:((l=t.init)==null?void 0:l.headers)&&new Headers(t.init.headers)}}if(nj(t)){var c,u;return{type:Fn.data,data:t.data,statusCode:(c=t.init)==null?void 0:c.status,headers:(u=t.init)!=null&&u.headers?new Headers(t.init.headers):void 0}}return{type:Fn.data,data:t}}function ARe(e,t,r,n,i,o){let s=e.headers.get("Location");if(ln(s,"Redirects returned/thrown from loaders/actions must have a Location header"),!p4.test(s)){let a=n.slice(0,n.findIndex(l=>l.route.id===r)+1);s=YN(new URL(t.url),a,i,!0,s,o),e.headers.set("Location",s)}return e}function ZU(e,t,r){if(p4.test(e)){let n=e,i=n.startsWith("//")?new URL(t.protocol+n):new URL(n),o=EC(i.pathname,r)!=null;if(i.origin===t.origin&&o)return i.pathname+i.search+i.hash}return e}function cv(e,t,r,n){let i=e.createURL(mse(t)).toString(),o={signal:r};if(n&&Yl(n.formMethod)){let{formMethod:s,formEncType:a}=n;o.method=s.toUpperCase(),a==="application/json"?(o.headers=new Headers({"Content-Type":a}),o.body=JSON.stringify(n.json)):a==="text/plain"?o.body=n.text:a==="application/x-www-form-urlencoded"&&n.formData?o.body=QN(n.formData):o.body=n.formData}return new Request(i,o)}function QN(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function QU(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function FRe(e,t,r,n,i){let o={},s=null,a,l=!1,c={},u=r&&Pa(r[1])?r[1].error:void 0;return e.forEach(d=>{if(!(d.route.id in t))return;let h=d.route.id,p=t[h];if(ln(!gg(p),"Cannot handle redirect results in processLoaderData"),Pa(p)){let f=p.error;u!==void 0&&(f=u,u=void 0),s=s||{};{let g=ig(e,h);s[g.route.id]==null&&(s[g.route.id]=f)}o[h]=void 0,l||(l=!0,a=mw(p.error)?p.error.status:500),p.headers&&(c[h]=p.headers)}else Jh(p)?(n.set(h,p.deferredData),o[h]=p.deferredData.data,p.statusCode!=null&&p.statusCode!==200&&!l&&(a=p.statusCode),p.headers&&(c[h]=p.headers)):(o[h]=p.data,p.statusCode&&p.statusCode!==200&&!l&&(a=p.statusCode),p.headers&&(c[h]=p.headers))}),u!==void 0&&r&&(s={[r[0]]:u},o[r[0]]=void 0),{loaderData:o,errors:s,statusCode:a||200,loaderHeaders:c}}function JU(e,t,r,n,i,o,s){let{loaderData:a,errors:l}=FRe(t,r,n,s);return i.forEach(c=>{let{key:u,match:d,controller:h}=c,p=o[u];if(ln(p,"Did not find corresponding fetcher result"),!(h&&h.signal.aborted))if(Pa(p)){let f=ig(e.matches,d==null?void 0:d.route.id);l&&l[f.route.id]||(l=oi({},l,{[f.route.id]:p.error})),e.fetchers.delete(u)}else if(gg(p))ln(!1,"Unhandled fetcher revalidation redirect");else if(Jh(p))ln(!1,"Unhandled fetcher deferred data");else{let f=Lh(p.data);e.fetchers.set(u,f)}}),{loaderData:a,errors:l}}function ej(e,t,r,n){let i=oi({},t);for(let o of r){let s=o.route.id;if(t.hasOwnProperty(s)?t[s]!==void 0&&(i[s]=t[s]):e[s]!==void 0&&o.route.loader&&(i[s]=e[s]),n&&n.hasOwnProperty(s))break}return i}function tj(e){return e?Pa(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function ig(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function rj(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function qs(e,t){let{pathname:r,routeId:n,method:i,type:o,message:s}=t===void 0?{}:t,a="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(a="Bad Request",i&&r&&n?l="You made a "+i+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":o==="defer-action"?l="defer() is not supported in actions":o==="invalid-body"&&(l="Unable to encode submission body")):e===403?(a="Forbidden",l='Route "'+n+'" does not match URL "'+r+'"'):e===404?(a="Not Found",l='No route matches URL "'+r+'"'):e===405&&(a="Method Not Allowed",i&&r&&n?l="You made a "+i.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":i&&(l='Invalid request method "'+i.toUpperCase()+'"')),new iM(e||500,a,new Error(l),!0)}function jE(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,i]=t[r];if(gg(i))return{key:n,result:i}}}function mse(e){let t=typeof e=="string"?Vp(e):e;return Qg(oi({},t,{hash:""}))}function LRe(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function _Re(e){return vse(e.result)&&CRe.has(e.result.status)}function Jh(e){return e.type===Fn.deferred}function Pa(e){return e.type===Fn.error}function gg(e){return(e&&e.type)===Fn.redirect}function nj(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function kRe(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function vse(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function ORe(e){return yRe.has(e.toLowerCase())}function Yl(e){return mRe.has(e.toLowerCase())}async function NRe(e,t,r,n,i){let o=Object.entries(t);for(let s=0;s(h==null?void 0:h.route.id)===a);if(!c)continue;let u=n.find(h=>h.route.id===c.route.id),d=u!=null&&!fse(u,c)&&(i&&i[c.route.id])!==void 0;Jh(l)&&d&&await f4(l,r,!1).then(h=>{h&&(t[a]=h)})}}async function BRe(e,t,r){for(let n=0;n(c==null?void 0:c.route.id)===o)&&Jh(a)&&(ln(s,"Expected an AbortController for revalidating fetcher deferred result"),await f4(a,s.signal,!0).then(c=>{c&&(t[i]=c)}))}}async function f4(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:Fn.data,data:e.deferredData.unwrappedData}}catch(i){return{type:Fn.error,error:i}}return{type:Fn.data,data:e.deferredData.data}}}function g4(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function eS(e,t){let r=typeof t=="string"?Vp(t).search:t.search;if(e[e.length-1].route.index&&g4(r||""))return e[e.length-1];let n=dse(e);return n[n.length-1]}function ij(e){let{formMethod:t,formAction:r,formEncType:n,text:i,formData:o,json:s}=e;if(!(!t||!r||!n)){if(i!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:i};if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};if(s!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:s,text:void 0}}}function C_(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function $Re(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function e0(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function GRe(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Lh(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function VRe(e,t){try{let r=e.sessionStorage.getItem(pse);if(r){let n=JSON.parse(r);for(let[i,o]of Object.entries(n||{}))o&&Array.isArray(o)&&t.set(i,new Set(o||[]))}}catch{}}function zRe(e,t){if(t.size>0){let r={};for(let[n,i]of t)r[n]=[...i];try{e.sessionStorage.setItem(pse,JSON.stringify(r))}catch(n){Oy(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** * React Router v6.30.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 */function oM(){return oM=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),v.useCallback(function(c,u){if(u===void 0&&(u={}),!a.current)return;if(typeof c=="number"){n.go(c);return}let d=MD(c,JSON.parse(s),o,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:yd([t,d.pathname])),(u.replace?n.replace:n.push)(d,u.state,u)},[t,n,s,o,e])}const URe=v.createContext(null);function jRe(e){let t=v.useContext(Ru).outlet;return t&&v.createElement(URe.Provider,{value:e},t)}function MBt(){let{matches:e}=v.useContext(Ru),t=e[e.length-1];return t?t.params:{}}function Sse(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=v.useContext(zp),{matches:i}=v.useContext(Ru),{pathname:o}=RC(),s=JSON.stringify(PD(i,n.v7_relativeSplatPath));return v.useMemo(()=>MD(e,JSON.parse(s),o,r==="path"),[e,s,o,r])}function KRe(e,t,r,n){TC()||ln(!1);let{navigator:i}=v.useContext(zp),{matches:o}=v.useContext(Ru),s=o[o.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let c=RC(),u;u=c;let d=u.pathname||"/",h=d;if(l!=="/"){let g=l.replace(/^\//,"").split("/");h="/"+d.replace(/^\//,"").split("/").slice(g.length).join("/")}let p=ng(e,{pathname:h});return QRe(p&&p.map(g=>Object.assign({},g,{params:Object.assign({},a,g.params),pathname:yd([l,i.encodeLocation?i.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?l:yd([l,i.encodeLocation?i.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),o,r,n)}function qRe(){let e=rPe(),t=mw(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),r?v.createElement("pre",{style:i},r):null,null)}const XRe=v.createElement(qRe,null);class YRe extends v.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?v.createElement(Ru.Provider,{value:this.props.routeContext},v.createElement(Cse.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ZRe(e){let{routeContext:t,match:r,children:n}=e,i=v.useContext(ID);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),v.createElement(Ru.Provider,{value:t},n)}function QRe(e,t,r,n){var i;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var o;if(!r)return null;if(r.errors)e=r.matches;else if((o=n)!=null&&o.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let s=e,a=(i=r)==null?void 0:i.errors;if(a!=null){let u=s.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);u>=0||ln(!1),s=s.slice(0,Math.min(s.length,u+1))}let l=!1,c=-1;if(r&&n&&n.v7_partialHydration)for(let u=0;u=0?s=s.slice(0,c+1):s=[s[0]];break}}}return s.reduceRight((u,d,h)=>{let p,f=!1,g=null,m=null;r&&(p=a&&d.route.id?a[d.route.id]:void 0,g=d.route.errorElement||XRe,l&&(c<0&&h===0?(iPe("route-fallback"),f=!0,m=null):c===h&&(f=!0,m=d.route.hydrateFallbackElement||null)));let y=t.concat(s.slice(0,h+1)),b=()=>{let S;return p?S=g:f?S=m:d.route.Component?S=v.createElement(d.route.Component,null):d.route.element?S=d.route.element:S=u,v.createElement(ZRe,{match:d,routeContext:{outlet:u,matches:y,isDataRoute:r!=null},children:S})};return r&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?v.createElement(YRe,{location:r.location,revalidation:r.revalidation,component:g,error:p,children:b(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):b()},null)}var wse=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(wse||{}),xse=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(xse||{});function JRe(e){let t=v.useContext(ID);return t||ln(!1),t}function ePe(e){let t=v.useContext(yse);return t||ln(!1),t}function tPe(e){let t=v.useContext(Ru);return t||ln(!1),t}function Ese(e){let t=tPe(),r=t.matches[t.matches.length-1];return r.route.id||ln(!1),r.route.id}function rPe(){var e;let t=v.useContext(Cse),r=ePe(xse.UseRouteError),n=Ese();return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function nPe(){let{router:e}=JRe(wse.UseNavigateStable),t=Ese(),r=v.useRef(!1);return bse(()=>{r.current=!0}),v.useCallback(function(i,o){o===void 0&&(o={}),r.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,oM({fromRouteId:t},o)))},[e,t])}const oj={};function iPe(e,t,r){oj[e]||(oj[e]=!0)}function oPe(e,t){e==null||e.v7_startTransition,(e==null?void 0:e.v7_relativeSplatPath)===void 0&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}function IBt(e){let{to:t,replace:r,state:n,relative:i}=e;TC()||ln(!1);let{future:o,static:s}=v.useContext(zp),{matches:a}=v.useContext(Ru),{pathname:l}=RC(),c=v4(),u=MD(t,PD(a,o.v7_relativeSplatPath),l,i==="path"),d=JSON.stringify(u);return v.useEffect(()=>c(JSON.parse(d),{replace:r,state:n,relative:i}),[c,d,i,r,n]),null}function DBt(e){return jRe(e.context)}function sPe(e){let{basename:t="/",children:r=null,location:n,navigationType:i=Vi.Pop,navigator:o,static:s=!1,future:a}=e;TC()&&ln(!1);let l=t.replace(/^\/*/,"/"),c=v.useMemo(()=>({basename:l,navigator:o,static:s,future:oM({v7_relativeSplatPath:!1},a)}),[l,a,o,s]);typeof n=="string"&&(n=Vp(n));let{pathname:u="/",search:d="",hash:h="",state:p=null,key:f="default"}=n,g=v.useMemo(()=>{let m=EC(u,l);return m==null?null:{location:{pathname:m,search:d,hash:h,state:p,key:f},navigationType:i}},[l,u,d,h,p,f,i]);return g==null?null:v.createElement(zp.Provider,{value:c},v.createElement(m4.Provider,{children:r,value:g}))}new Promise(()=>{});function aPe(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:v.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:v.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:v.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.30.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 */function vw(){return vw=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[i]=e[i]);return r}function cPe(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function uPe(e,t){return e.button===0&&(!t||t==="_self")&&!cPe(e)}function JN(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(i=>[r,i]):[[r,n]])},[]))}function dPe(e,t){let r=JN(e);return t&&t.forEach((n,i)=>{r.has(i)||t.getAll(i).forEach(o=>{r.append(i,o)})}),r}const hPe=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],pPe="6";try{window.__reactRouterVersion=pPe}catch{}function ABt(e,t){return xRe({basename:void 0,future:vw({},void 0,{v7_prependBasename:!0}),history:KTe({window:void 0}),hydrationData:fPe(),routes:e,mapRouteProperties:aPe,dataStrategy:void 0,patchRoutesOnNavigation:void 0,window:void 0}).initialize()}function fPe(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=vw({},t,{errors:gPe(t.errors)})),t}function gPe(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,i]of t)if(i&&i.__type==="RouteErrorResponse")r[n]=new iM(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let o=window[i.__subType];if(typeof o=="function")try{let s=new o(i.message);s.stack="",r[n]=s}catch{}}if(r[n]==null){let o=new Error(i.message);o.stack="",r[n]=o}}else r[n]=i;return r}const mPe=v.createContext({isTransitioning:!1}),vPe=v.createContext(new Map),yPe="startTransition",sj=ose[yPe],CPe="flushSync",aj=jTe[CPe];function bPe(e){sj?sj(e):e()}function t0(e){aj?aj(e):e()}class SPe{constructor(){this.status="pending",this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function FBt(e){let{fallbackElement:t,router:r,future:n}=e,[i,o]=v.useState(r.state),[s,a]=v.useState(),[l,c]=v.useState({isTransitioning:!1}),[u,d]=v.useState(),[h,p]=v.useState(),[f,g]=v.useState(),m=v.useRef(new Map),{v7_startTransition:y}=n||{},b=v.useCallback(M=>{y?bPe(M):M()},[y]),S=v.useCallback((M,D)=>{let{deletedFetchers:A,flushSync:I,viewTransitionOpts:L}=D;M.fetchers.forEach((O,k)=>{O.data!==void 0&&m.current.set(k,O.data)}),A.forEach(O=>m.current.delete(O));let F=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!L||F){I?t0(()=>o(M)):b(()=>o(M));return}if(I){t0(()=>{h&&(u&&u.resolve(),h.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:L.currentLocation,nextLocation:L.nextLocation})});let O=r.window.document.startViewTransition(()=>{t0(()=>o(M))});O.finished.finally(()=>{t0(()=>{d(void 0),p(void 0),a(void 0),c({isTransitioning:!1})})}),t0(()=>p(O));return}h?(u&&u.resolve(),h.skipTransition(),g({state:M,currentLocation:L.currentLocation,nextLocation:L.nextLocation})):(a(M),c({isTransitioning:!0,flushSync:!1,currentLocation:L.currentLocation,nextLocation:L.nextLocation}))},[r.window,h,u,m,b]);v.useLayoutEffect(()=>r.subscribe(S),[r,S]),v.useEffect(()=>{l.isTransitioning&&!l.flushSync&&d(new SPe)},[l]),v.useEffect(()=>{if(u&&s&&r.window){let M=s,D=u.promise,A=r.window.document.startViewTransition(async()=>{b(()=>o(M)),await D});A.finished.finally(()=>{d(void 0),p(void 0),a(void 0),c({isTransitioning:!1})}),p(A)}},[b,s,u,r.window]),v.useEffect(()=>{u&&s&&i.location.key===s.location.key&&u.resolve()},[u,h,i.location,s]),v.useEffect(()=>{!l.isTransitioning&&f&&(a(f.state),c({isTransitioning:!0,flushSync:!1,currentLocation:f.currentLocation,nextLocation:f.nextLocation}),g(void 0))},[l.isTransitioning,f]),v.useEffect(()=>{},[]);let x=v.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:M=>r.navigate(M),push:(M,D,A)=>r.navigate(M,{state:D,preventScrollReset:A==null?void 0:A.preventScrollReset}),replace:(M,D,A)=>r.navigate(M,{replace:!0,state:D,preventScrollReset:A==null?void 0:A.preventScrollReset})}),[r]),E=r.basename||"/",R=v.useMemo(()=>({router:r,navigator:x,static:!1,basename:E}),[r,x,E]),T=v.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return v.useEffect(()=>oPe(n,r.future),[n,r.future]),v.createElement(v.Fragment,null,v.createElement(ID.Provider,{value:R},v.createElement(yse.Provider,{value:i},v.createElement(vPe.Provider,{value:m.current},v.createElement(mPe.Provider,{value:l},v.createElement(sPe,{basename:E,location:i.location,navigationType:i.historyAction,navigator:x,future:T},i.initialized||r.future.v7_partialHydration?v.createElement(wPe,{routes:r.routes,future:r.future,state:i}):t))))),null)}const wPe=v.memo(xPe);function xPe(e){let{routes:t,future:r,state:n}=e;return KRe(t,void 0,n,r)}const EPe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",TPe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,LBt=v.forwardRef(function(t,r){let{onClick:n,relative:i,reloadDocument:o,replace:s,state:a,target:l,to:c,preventScrollReset:u,viewTransition:d}=t,h=lPe(t,hPe),{basename:p}=v.useContext(zp),f,g=!1;if(typeof c=="string"&&TPe.test(c)&&(f=c,EPe))try{let S=new URL(window.location.href),x=c.startsWith("//")?new URL(S.protocol+c):new URL(c),E=EC(x.pathname,p);x.origin===S.origin&&E!=null?c=E+x.search+x.hash:g=!0}catch{}let m=HRe(c,{relative:i}),y=RPe(c,{replace:s,state:a,target:l,preventScrollReset:u,relative:i,viewTransition:d});function b(S){n&&n(S),S.defaultPrevented||y(S)}return v.createElement("a",vw({},h,{href:f||m,onClick:g||o?n:b,ref:r,target:l}))});var lj;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(lj||(lj={}));var cj;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(cj||(cj={}));function RPe(e,t){let{target:r,replace:n,state:i,preventScrollReset:o,relative:s,viewTransition:a}=t===void 0?{}:t,l=v4(),c=RC(),u=Sse(e,{relative:s});return v.useCallback(d=>{if(uPe(d,r)){d.preventDefault();let h=n!==void 0?n:Qg(c)===Qg(u);l(e,{replace:h,state:i,preventScrollReset:o,relative:s,viewTransition:a})}},[c,l,u,n,i,r,e,o,s,a])}function _Bt(e){let t=v.useRef(JN(e)),r=v.useRef(!1),n=RC(),i=v.useMemo(()=>dPe(n.search,r.current?null:t.current),[n.search]),o=v4(),s=v.useCallback((a,l)=>{const c=JN(typeof a=="function"?a(i):a);r.current=!0,o("?"+c,l)},[o,i]);return[i,s]}function Tse(e,t){return function(){return e.apply(t,arguments)}}const{toString:PPe}=Object.prototype,{getPrototypeOf:y4}=Object,{iterator:DD,toStringTag:Rse}=Symbol,AD=(e=>t=>{const r=PPe.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),wc=e=>(e=e.toLowerCase(),t=>AD(t)===e),FD=e=>t=>typeof t===e,{isArray:PC}=Array,Ny=FD("undefined");function Ex(e){return e!==null&&!Ny(e)&&e.constructor!==null&&!Ny(e.constructor)&&Js(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Pse=wc("ArrayBuffer");function MPe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Pse(e.buffer),t}const IPe=FD("string"),Js=FD("function"),Mse=FD("number"),Tx=e=>e!==null&&typeof e=="object",DPe=e=>e===!0||e===!1,nP=e=>{if(AD(e)!=="object")return!1;const t=y4(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Rse in e)&&!(DD in e)},APe=e=>{if(!Tx(e)||Ex(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},FPe=wc("Date"),LPe=wc("File"),_Pe=e=>!!(e&&typeof e.uri<"u"),kPe=e=>e&&typeof e.getParts<"u",OPe=wc("Blob"),NPe=wc("FileList"),BPe=e=>Tx(e)&&Js(e.pipe);function $Pe(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const uj=$Pe(),dj=typeof uj.FormData<"u"?uj.FormData:void 0,GPe=e=>{let t;return e&&(dj&&e instanceof dj||Js(e.append)&&((t=AD(e))==="formdata"||t==="object"&&Js(e.toString)&&e.toString()==="[object FormData]"))},VPe=wc("URLSearchParams"),[zPe,HPe,WPe,UPe]=["ReadableStream","Request","Response","Headers"].map(wc),jPe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Rx(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),PC(e))for(n=0,i=e.length;n0;)if(i=r[n],t===i.toLowerCase())return i;return null}const mg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Dse=e=>!Ny(e)&&e!==mg;function eB(){const{caseless:e,skipUndefined:t}=Dse(this)&&this||{},r={},n=(i,o)=>{if(o==="__proto__"||o==="constructor"||o==="prototype")return;const s=e&&Ise(r,o)||o;nP(r[s])&&nP(i)?r[s]=eB(r[s],i):nP(i)?r[s]=eB({},i):PC(i)?r[s]=i.slice():(!t||!Ny(i))&&(r[s]=i)};for(let i=0,o=arguments.length;i(Rx(t,(i,o)=>{r&&Js(i)?Object.defineProperty(e,o,{value:Tse(i,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),qPe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),XPe=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},YPe=(e,t,r,n)=>{let i,o,s;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!n||n(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=r!==!1&&y4(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},ZPe=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},QPe=e=>{if(!e)return null;if(PC(e))return e;let t=e.length;if(!Mse(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},JPe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&y4(Uint8Array)),eMe=(e,t)=>{const n=(e&&e[DD]).call(e);let i;for(;(i=n.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},tMe=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},rMe=wc("HTMLFormElement"),nMe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),hj=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),iMe=wc("RegExp"),Ase=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Rx(r,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(n[o]=s||i)}),Object.defineProperties(e,n)},oMe=e=>{Ase(e,(t,r)=>{if(Js(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Js(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},sMe=(e,t)=>{const r={},n=i=>{i.forEach(o=>{r[o]=!0})};return PC(e)?n(e):n(String(e).split(t)),r},aMe=()=>{},lMe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function cMe(e){return!!(e&&Js(e.append)&&e[Rse]==="FormData"&&e[DD])}const uMe=e=>{const t=new Array(10),r=(n,i)=>{if(Tx(n)){if(t.indexOf(n)>=0)return;if(Ex(n))return n;if(!("toJSON"in n)){t[i]=n;const o=PC(n)?[]:{};return Rx(n,(s,a)=>{const l=r(s,i+1);!Ny(l)&&(o[a]=l)}),t[i]=void 0,o}}return n};return r(e,0)},dMe=wc("AsyncFunction"),hMe=e=>e&&(Tx(e)||Js(e))&&Js(e.then)&&Js(e.catch),Fse=((e,t)=>e?setImmediate:t?((r,n)=>(mg.addEventListener("message",({source:i,data:o})=>{i===mg&&o===r&&n.length&&n.shift()()},!1),i=>{n.push(i),mg.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Js(mg.postMessage)),pMe=typeof queueMicrotask<"u"?queueMicrotask.bind(mg):typeof process<"u"&&process.nextTick||Fse,fMe=e=>e!=null&&Js(e[DD]),je={isArray:PC,isArrayBuffer:Pse,isBuffer:Ex,isFormData:GPe,isArrayBufferView:MPe,isString:IPe,isNumber:Mse,isBoolean:DPe,isObject:Tx,isPlainObject:nP,isEmptyObject:APe,isReadableStream:zPe,isRequest:HPe,isResponse:WPe,isHeaders:UPe,isUndefined:Ny,isDate:FPe,isFile:LPe,isReactNativeBlob:_Pe,isReactNative:kPe,isBlob:OPe,isRegExp:iMe,isFunction:Js,isStream:BPe,isURLSearchParams:VPe,isTypedArray:JPe,isFileList:NPe,forEach:Rx,merge:eB,extend:KPe,trim:jPe,stripBOM:qPe,inherits:XPe,toFlatObject:YPe,kindOf:AD,kindOfTest:wc,endsWith:ZPe,toArray:QPe,forEachEntry:eMe,matchAll:tMe,isHTMLForm:rMe,hasOwnProperty:hj,hasOwnProp:hj,reduceDescriptors:Ase,freezeMethods:oMe,toObjectSet:sMe,toCamelCase:nMe,noop:aMe,toFiniteNumber:lMe,findKey:Ise,global:mg,isContextDefined:Dse,isSpecCompliantForm:cMe,toJSONObject:uMe,isAsyncFn:dMe,isThenable:hMe,setImmediate:Fse,asap:pMe,isIterable:fMe};let Ar=class Lse extends Error{static from(t,r,n,i,o,s){const a=new Lse(t.message,r||t.code,n,i,o);return a.cause=t,a.name=t.name,t.status!=null&&a.status==null&&(a.status=t.status),s&&Object.assign(a,s),a}constructor(t,r,n,i,o){super(t),Object.defineProperty(this,"message",{value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),i&&(this.request=i),o&&(this.response=o,this.status=o.status)}toJSON(){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:je.toJSONObject(this.config),code:this.code,status:this.status}}};Ar.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Ar.ERR_BAD_OPTION="ERR_BAD_OPTION";Ar.ECONNABORTED="ECONNABORTED";Ar.ETIMEDOUT="ETIMEDOUT";Ar.ERR_NETWORK="ERR_NETWORK";Ar.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Ar.ERR_DEPRECATED="ERR_DEPRECATED";Ar.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Ar.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Ar.ERR_CANCELED="ERR_CANCELED";Ar.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Ar.ERR_INVALID_URL="ERR_INVALID_URL";const gMe=null;function tB(e){return je.isPlainObject(e)||je.isArray(e)}function _se(e){return je.endsWith(e,"[]")?e.slice(0,-2):e}function b_(e,t,r){return e?e.concat(t).map(function(i,o){return i=_se(i),!r&&o?"["+i+"]":i}).join(r?".":""):t}function mMe(e){return je.isArray(e)&&!e.some(tB)}const vMe=je.toFlatObject(je,{},null,function(t){return/^is[A-Z]/.test(t)});function LD(e,t,r){if(!je.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=je.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,m){return!je.isUndefined(m[g])});const n=r.metaTokens,i=r.visitor||u,o=r.dots,s=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&je.isSpecCompliantForm(t);if(!je.isFunction(i))throw new TypeError("visitor must be a function");function c(f){if(f===null)return"";if(je.isDate(f))return f.toISOString();if(je.isBoolean(f))return f.toString();if(!l&&je.isBlob(f))throw new Ar("Blob is not supported. Use a Buffer instead.");return je.isArrayBuffer(f)||je.isTypedArray(f)?l&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function u(f,g,m){let y=f;if(je.isReactNative(t)&&je.isReactNativeBlob(f))return t.append(b_(m,g,o),c(f)),!1;if(f&&!m&&typeof f=="object"){if(je.endsWith(g,"{}"))g=n?g:g.slice(0,-2),f=JSON.stringify(f);else if(je.isArray(f)&&mMe(f)||(je.isFileList(f)||je.endsWith(g,"[]"))&&(y=je.toArray(f)))return g=_se(g),y.forEach(function(S,x){!(je.isUndefined(S)||S===null)&&t.append(s===!0?b_([g],x,o):s===null?g:g+"[]",c(S))}),!1}return tB(f)?!0:(t.append(b_(m,g,o),c(f)),!1)}const d=[],h=Object.assign(vMe,{defaultVisitor:u,convertValue:c,isVisitable:tB});function p(f,g){if(!je.isUndefined(f)){if(d.indexOf(f)!==-1)throw Error("Circular reference detected in "+g.join("."));d.push(f),je.forEach(f,function(y,b){(!(je.isUndefined(y)||y===null)&&i.call(t,y,je.isString(b)?b.trim():b,g,h))===!0&&p(y,g?g.concat(b):[b])}),d.pop()}}if(!je.isObject(e))throw new TypeError("data must be an object");return p(e),t}function pj(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function C4(e,t){this._pairs=[],e&&LD(e,this,t)}const kse=C4.prototype;kse.append=function(t,r){this._pairs.push([t,r])};kse.toString=function(t){const r=t?function(n){return t.call(this,n,pj)}:pj;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function yMe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ose(e,t,r){if(!t)return e;const n=r&&r.encode||yMe,i=je.isFunction(r)?{serialize:r}:r,o=i&&i.serialize;let s;if(o?s=o(t,i):s=je.isURLSearchParams(t)?t.toString():new C4(t,i).toString(n),s){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}let fj=class{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){je.forEach(this.handlers,function(n){n!==null&&t(n)})}};const b4={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},CMe=typeof URLSearchParams<"u"?URLSearchParams:C4,bMe=typeof FormData<"u"?FormData:null,SMe=typeof Blob<"u"?Blob:null,wMe={isBrowser:!0,classes:{URLSearchParams:CMe,FormData:bMe,Blob:SMe},protocols:["http","https","file","blob","url","data"]},S4=typeof window<"u"&&typeof document<"u",rB=typeof navigator=="object"&&navigator||void 0,xMe=S4&&(!rB||["ReactNative","NativeScript","NS"].indexOf(rB.product)<0),EMe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",TMe=S4&&window.location.href||"http://localhost",RMe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:S4,hasStandardBrowserEnv:xMe,hasStandardBrowserWebWorkerEnv:EMe,navigator:rB,origin:TMe},Symbol.toStringTag,{value:"Module"})),ss={...RMe,...wMe};function PMe(e,t){return LD(e,new ss.classes.URLSearchParams,{visitor:function(r,n,i,o){return ss.isNode&&je.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function MMe(e){return je.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function IMe(e){const t={},r=Object.keys(e);let n;const i=r.length;let o;for(n=0;n=r.length;return s=!s&&je.isArray(i)?i.length:s,l?(je.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!a):((!i[s]||!je.isObject(i[s]))&&(i[s]=[]),t(r,n,i[s],o)&&je.isArray(i[s])&&(i[s]=IMe(i[s])),!a)}if(je.isFormData(e)&&je.isFunction(e.entries)){const r={};return je.forEachEntry(e,(n,i)=>{t(MMe(n),i,r,0)}),r}return null}function DMe(e,t,r){if(je.isString(e))try{return(t||JSON.parse)(e),je.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Px={transitional:b4,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,o=je.isObject(t);if(o&&je.isHTMLForm(t)&&(t=new FormData(t)),je.isFormData(t))return i?JSON.stringify(Nse(t)):t;if(je.isArrayBuffer(t)||je.isBuffer(t)||je.isStream(t)||je.isFile(t)||je.isBlob(t)||je.isReadableStream(t))return t;if(je.isArrayBufferView(t))return t.buffer;if(je.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return PMe(t,this.formSerializer).toString();if((a=je.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return LD(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(r.setContentType("application/json",!1),DMe(t)):t}],transformResponse:[function(t){const r=this.transitional||Px.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if(je.isResponse(t)||je.isReadableStream(t))return t;if(t&&je.isString(t)&&(n&&!this.responseType||i)){const s=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(a){if(s)throw a.name==="SyntaxError"?Ar.from(a,Ar.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ss.classes.FormData,Blob:ss.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};je.forEach(["delete","get","head","post","put","patch"],e=>{Px.headers[e]={}});const AMe=je.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"]),FMe=e=>{const t={};let r,n,i;return e&&e.split(` `).forEach(function(s){i=s.indexOf(":"),r=s.substring(0,i).trim().toLowerCase(),n=s.substring(i+1).trim(),!(!r||t[r]&&AMe[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},gj=Symbol("internals");function r0(e){return e&&String(e).trim().toLowerCase()}function iP(e){return e===!1||e==null?e:je.isArray(e)?e.map(iP):String(e)}function LMe(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const _Me=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function S_(e,t,r,n,i){if(je.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!je.isString(t)){if(je.isString(n))return t.indexOf(n)!==-1;if(je.isRegExp(n))return n.test(t)}}function kMe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function OMe(e,t){const r=je.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,o,s){return this[n].call(this,t,i,o,s)},configurable:!0})})}let ea=class{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function o(a,l,c){const u=r0(l);if(!u)throw new Error("header name must be a non-empty string");const d=je.findKey(i,u);(!d||i[d]===void 0||c===!0||c===void 0&&i[d]!==!1)&&(i[d||l]=iP(a))}const s=(a,l)=>je.forEach(a,(c,u)=>o(c,u,l));if(je.isPlainObject(t)||t instanceof this.constructor)s(t,r);else if(je.isString(t)&&(t=t.trim())&&!_Me(t))s(FMe(t),r);else if(je.isObject(t)&&je.isIterable(t)){let a={},l,c;for(const u of t){if(!je.isArray(u))throw TypeError("Object iterator must return a key-value pair");a[c=u[0]]=(l=a[c])?je.isArray(l)?[...l,u[1]]:[l,u[1]]:u[1]}s(a,r)}else t!=null&&o(r,t,n);return this}get(t,r){if(t=r0(t),t){const n=je.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return LMe(i);if(je.isFunction(r))return r.call(this,i,n);if(je.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=r0(t),t){const n=je.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||S_(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function o(s){if(s=r0(s),s){const a=je.findKey(n,s);a&&(!r||S_(n,n[a],a,r))&&(delete n[a],i=!0)}}return je.isArray(t)?t.forEach(o):o(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const o=r[n];(!t||S_(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const r=this,n={};return je.forEach(this,(i,o)=>{const s=je.findKey(n,o);if(s){r[s]=iP(i),delete r[o];return}const a=t?kMe(o):String(o).trim();a!==o&&delete r[o],r[a]=iP(i),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return je.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&je.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(` `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(i=>n.set(i)),n}static accessor(t){const n=(this[gj]=this[gj]={accessors:{}}).accessors,i=this.prototype;function o(s){const a=r0(s);n[a]||(OMe(i,s),n[a]=!0)}return je.isArray(t)?t.forEach(o):o(t),this}};ea.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);je.reduceDescriptors(ea.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});je.freezeMethods(ea);function w_(e,t){const r=this||Px,n=t||r,i=ea.from(n.headers);let o=n.data;return je.forEach(e,function(a){o=a.call(r,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function Bse(e){return!!(e&&e.__CANCEL__)}let Mx=class extends Ar{constructor(t,r,n){super(t??"canceled",Ar.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}};function $se(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Ar("Request failed with status code "+r.status,[Ar.ERR_BAD_REQUEST,Ar.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function NMe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function BMe(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=n[o];s||(s=c),r[i]=l,n[i]=c;let d=o,h=0;for(;d!==i;)h+=r[d++],d=d%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-s{r=u,i=null,o&&(clearTimeout(o),o=null),e(...c)};return[(...c)=>{const u=Date.now(),d=u-r;d>=n?s(c,u):(i=c,o||(o=setTimeout(()=>{o=null,s(i)},n-d)))},()=>i&&s(i)]}const sM=(e,t,r=3)=>{let n=0;const i=BMe(50,250);return $Me(o=>{const s=o.loaded,a=o.lengthComputable?o.total:void 0,l=s-n,c=i(l),u=s<=a;n=s;const d={loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&u?(a-s)/c:void 0,event:o,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(d)},r)},mj=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},vj=e=>(...t)=>je.asap(()=>e(...t)),GMe=ss.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,ss.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(ss.origin),ss.navigator&&/(msie|trident)/i.test(ss.navigator.userAgent)):()=>!0,VMe=ss.hasStandardBrowserEnv?{write(e,t,r,n,i,o,s){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];je.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),je.isString(n)&&a.push(`path=${n}`),je.isString(i)&&a.push(`domain=${i}`),o===!0&&a.push("secure"),je.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function zMe(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function HMe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Gse(e,t,r){let n=!zMe(t);return e&&(n||r==!1)?HMe(e,t):t}const yj=e=>e instanceof ea?{...e}:e;function Jg(e,t){t=t||{};const r={};function n(c,u,d,h){return je.isPlainObject(c)&&je.isPlainObject(u)?je.merge.call({caseless:h},c,u):je.isPlainObject(u)?je.merge({},u):je.isArray(u)?u.slice():u}function i(c,u,d,h){if(je.isUndefined(u)){if(!je.isUndefined(c))return n(void 0,c,d,h)}else return n(c,u,d,h)}function o(c,u){if(!je.isUndefined(u))return n(void 0,u)}function s(c,u){if(je.isUndefined(u)){if(!je.isUndefined(c))return n(void 0,c)}else return n(void 0,u)}function a(c,u,d){if(d in t)return n(c,u);if(d in e)return n(void 0,c)}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(c,u,d)=>i(yj(c),yj(u),d,!0)};return je.forEach(Object.keys({...e,...t}),function(u){if(u==="__proto__"||u==="constructor"||u==="prototype")return;const d=je.hasOwnProp(l,u)?l[u]:i,h=d(e[u],t[u],u);je.isUndefined(h)&&d!==a||(r[u]=h)}),r}const Vse=e=>{const t=Jg({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:o,headers:s,auth:a}=t;if(t.headers=s=ea.from(s),t.url=Ose(Gse(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),je.isFormData(r)){if(ss.hasStandardBrowserEnv||ss.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(je.isFunction(r.getHeaders)){const l=r.getHeaders(),c=["content-type","content-length"];Object.entries(l).forEach(([u,d])=>{c.includes(u.toLowerCase())&&s.set(u,d)})}}if(ss.hasStandardBrowserEnv&&(n&&je.isFunction(n)&&(n=n(t)),n||n!==!1&&GMe(t.url))){const l=i&&o&&VMe.read(o);l&&s.set(i,l)}return t},WMe=typeof XMLHttpRequest<"u",UMe=WMe&&function(e){return new Promise(function(r,n){const i=Vse(e);let o=i.data;const s=ea.from(i.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=i,u,d,h,p,f;function g(){p&&p(),f&&f(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let m=new XMLHttpRequest;m.open(i.method.toUpperCase(),i.url,!0),m.timeout=i.timeout;function y(){if(!m)return;const S=ea.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),E={data:!a||a==="text"||a==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:S,config:e,request:m};$se(function(T){r(T),g()},function(T){n(T),g()},E),m=null}"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(y)},m.onabort=function(){m&&(n(new Ar("Request aborted",Ar.ECONNABORTED,e,m)),m=null)},m.onerror=function(x){const E=x&&x.message?x.message:"Network Error",R=new Ar(E,Ar.ERR_NETWORK,e,m);R.event=x||null,n(R),m=null},m.ontimeout=function(){let x=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const E=i.transitional||b4;i.timeoutErrorMessage&&(x=i.timeoutErrorMessage),n(new Ar(x,E.clarifyTimeoutError?Ar.ETIMEDOUT:Ar.ECONNABORTED,e,m)),m=null},o===void 0&&s.setContentType(null),"setRequestHeader"in m&&je.forEach(s.toJSON(),function(x,E){m.setRequestHeader(E,x)}),je.isUndefined(i.withCredentials)||(m.withCredentials=!!i.withCredentials),a&&a!=="json"&&(m.responseType=i.responseType),c&&([h,f]=sM(c,!0),m.addEventListener("progress",h)),l&&m.upload&&([d,p]=sM(l),m.upload.addEventListener("progress",d),m.upload.addEventListener("loadend",p)),(i.cancelToken||i.signal)&&(u=S=>{m&&(n(!S||S.type?new Mx(null,e,m):S),m.abort(),m=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const b=NMe(i.url);if(b&&ss.protocols.indexOf(b)===-1){n(new Ar("Unsupported protocol "+b+":",Ar.ERR_BAD_REQUEST,e));return}m.send(o||null)})},jMe=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,i;const o=function(c){if(!i){i=!0,a();const u=c instanceof Error?c:this.reason;n.abort(u instanceof Ar?u:new Mx(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{s=null,o(new Ar(`timeout of ${t}ms exceeded`,Ar.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o));const{signal:l}=n;return l.unsubscribe=()=>je.asap(a),l}},KMe=function*(e,t){let r=e.byteLength;if(r{const i=qMe(e,t);let o=0,s,a=l=>{s||(s=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await i.next();if(c){a(),l.close();return}let d=u.byteLength;if(r){let h=o+=d;r(h)}l.enqueue(new Uint8Array(u))}catch(c){throw a(c),c}},cancel(l){return a(l),i.return()}},{highWaterMark:2})},bj=64*1024,{isFunction:KE}=je,YMe=(({Request:e,Response:t})=>({Request:e,Response:t}))(je.global),{ReadableStream:Sj,TextEncoder:wj}=je.global,xj=(e,...t)=>{try{return!!e(...t)}catch{return!1}},ZMe=e=>{e=je.merge.call({skipUndefined:!0},YMe,e);const{fetch:t,Request:r,Response:n}=e,i=t?KE(t):typeof fetch=="function",o=KE(r),s=KE(n);if(!i)return!1;const a=i&&KE(Sj),l=i&&(typeof wj=="function"?(f=>g=>f.encode(g))(new wj):async f=>new Uint8Array(await new r(f).arrayBuffer())),c=o&&a&&xj(()=>{let f=!1;const g=new r(ss.origin,{body:new Sj,method:"POST",get duplex(){return f=!0,"half"}}).headers.has("Content-Type");return f&&!g}),u=s&&a&&xj(()=>je.isReadableStream(new n("").body)),d={stream:u&&(f=>f.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(f=>{!d[f]&&(d[f]=(g,m)=>{let y=g&&g[f];if(y)return y.call(g);throw new Ar(`Response type '${f}' is not supported`,Ar.ERR_NOT_SUPPORT,m)})});const h=async f=>{if(f==null)return 0;if(je.isBlob(f))return f.size;if(je.isSpecCompliantForm(f))return(await new r(ss.origin,{method:"POST",body:f}).arrayBuffer()).byteLength;if(je.isArrayBufferView(f)||je.isArrayBuffer(f))return f.byteLength;if(je.isURLSearchParams(f)&&(f=f+""),je.isString(f))return(await l(f)).byteLength},p=async(f,g)=>{const m=je.toFiniteNumber(f.getContentLength());return m??h(g)};return async f=>{let{url:g,method:m,data:y,signal:b,cancelToken:S,timeout:x,onDownloadProgress:E,onUploadProgress:R,responseType:T,headers:M,withCredentials:D="same-origin",fetchOptions:A}=Vse(f),I=t||fetch;T=T?(T+"").toLowerCase():"text";let L=jMe([b,S&&S.toAbortSignal()],x),F=null;const O=L&&L.unsubscribe&&(()=>{L.unsubscribe()});let k;try{if(R&&c&&m!=="get"&&m!=="head"&&(k=await p(M,y))!==0){let V=new r(g,{method:"POST",body:y,duplex:"half"}),$;if(je.isFormData(y)&&($=V.headers.get("content-type"))&&M.setContentType($),V.body){const[K,q]=mj(k,sM(vj(R)));y=Cj(V.body,bj,K,q)}}je.isString(D)||(D=D?"include":"omit");const B=o&&"credentials"in r.prototype,H={...A,signal:L,method:m.toUpperCase(),headers:M.normalize().toJSON(),body:y,duplex:"half",credentials:B?D:void 0};F=o&&new r(g,H);let N=await(o?I(F,A):I(g,H));const z=u&&(T==="stream"||T==="response");if(u&&(E||z&&O)){const V={};["status","statusText","headers"].forEach(X=>{V[X]=N[X]});const $=je.toFiniteNumber(N.headers.get("content-length")),[K,q]=E&&mj($,sM(vj(E),!0))||[];N=new n(Cj(N.body,bj,K,()=>{q&&q(),O&&O()}),V)}T=T||"text";let W=await d[je.findKey(d,T)||"text"](N,f);return!z&&O&&O(),await new Promise((V,$)=>{$se(V,$,{data:W,headers:ea.from(N.headers),status:N.status,statusText:N.statusText,config:f,request:F})})}catch(B){throw O&&O(),B&&B.name==="TypeError"&&/Load failed|fetch/i.test(B.message)?Object.assign(new Ar("Network Error",Ar.ERR_NETWORK,f,F,B&&B.response),{cause:B.cause||B}):Ar.from(B,B&&B.code,f,F,B&&B.response)}}},QMe=new Map,zse=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:i}=t,o=[n,i,r];let s=o.length,a=s,l,c,u=QMe;for(;a--;)l=o[a],c=u.get(l),c===void 0&&u.set(l,c=a?new Map:ZMe(t)),u=c;return c};zse();const w4={http:gMe,xhr:UMe,fetch:{get:zse}};je.forEach(w4,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ej=e=>`- ${e}`,JMe=e=>je.isFunction(e)||e===null||e===!1;function eIe(e,t){e=je.isArray(e)?e:[e];const{length:r}=e;let n,i;const o={};for(let s=0;s`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=r?s.length>1?`since : `+s.map(Ej).join(` `):" "+Ej(s[0]):"as no adapter specified";throw new Ar("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return i}const Hse={getAdapter:eIe,adapters:w4};function x_(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Mx(null,e)}function Tj(e){return x_(e),e.headers=ea.from(e.headers),e.data=w_.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Hse.getAdapter(e.adapter||Px.adapter,e)(e).then(function(n){return x_(e),n.data=w_.call(e,e.transformResponse,n),n.headers=ea.from(n.headers),n},function(n){return Bse(n)||(x_(e),n&&n.response&&(n.response.data=w_.call(e,e.transformResponse,n.response),n.response.headers=ea.from(n.response.headers))),Promise.reject(n)})}const Wse="1.13.6",_D={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{_D[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Rj={};_D.transitional=function(t,r,n){function i(o,s){return"[Axios v"+Wse+"] Transitional option '"+o+"'"+s+(n?". "+n:"")}return(o,s,a)=>{if(t===!1)throw new Ar(i(s," has been removed"+(r?" in "+r:"")),Ar.ERR_DEPRECATED);return r&&!Rj[s]&&(Rj[s]=!0,console.warn(i(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,s,a):!0}};_D.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function tIe(e,t,r){if(typeof e!="object")throw new Ar("options must be an object",Ar.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const o=n[i],s=t[o];if(s){const a=e[o],l=a===void 0||s(a,o,e);if(l!==!0)throw new Ar("option "+o+" must be "+l,Ar.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Ar("Unknown option "+o,Ar.ERR_BAD_OPTION)}}const oP={assertOptions:tIe,validators:_D},Ya=oP.validators;let Lg=class{constructor(t){this.defaults=t||{},this.interceptors={request:new fj,response:new fj}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?o&&!String(n.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(n.stack+=` `+o):n.stack=o}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Jg(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:o}=r;n!==void 0&&oP.assertOptions(n,{silentJSONParsing:Ya.transitional(Ya.boolean),forcedJSONParsing:Ya.transitional(Ya.boolean),clarifyTimeoutError:Ya.transitional(Ya.boolean),legacyInterceptorReqResOrdering:Ya.transitional(Ya.boolean)},!1),i!=null&&(je.isFunction(i)?r.paramsSerializer={serialize:i}:oP.assertOptions(i,{encode:Ya.function,serialize:Ya.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),oP.assertOptions(r,{baseUrl:Ya.spelling("baseURL"),withXsrfToken:Ya.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=o&&je.merge(o.common,o[r.method]);o&&je.forEach(["delete","get","head","post","put","patch","common"],f=>{delete o[f]}),r.headers=ea.concat(s,o);const a=[];let l=!0;this.interceptors.request.forEach(function(g){if(typeof g.runWhen=="function"&&g.runWhen(r)===!1)return;l=l&&g.synchronous;const m=r.transitional||b4;m&&m.legacyInterceptorReqResOrdering?a.unshift(g.fulfilled,g.rejected):a.push(g.fulfilled,g.rejected)});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let u,d=0,h;if(!l){const f=[Tj.bind(this),void 0];for(f.unshift(...a),f.push(...c),h=f.length,u=Promise.resolve(r);d{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](i);n._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(a=>{n.subscribe(a),o=a}).then(i);return s.cancel=function(){n.unsubscribe(o)},s},t(function(o,s,a){n.reason||(n.reason=new Mx(o,s,a),r(n.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 r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Use(function(i){t=i}),cancel:t}}};function nIe(e){return function(r){return e.apply(null,r)}}function iIe(e){return je.isObject(e)&&e.isAxiosError===!0}const nB={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(nB).forEach(([e,t])=>{nB[t]=e});function jse(e){const t=new Lg(e),r=Tse(Lg.prototype.request,t);return je.extend(r,Lg.prototype,t,{allOwnKeys:!0}),je.extend(r,t,null,{allOwnKeys:!0}),r.create=function(i){return jse(Jg(e,i))},r}const Ki=jse(Px);Ki.Axios=Lg;Ki.CanceledError=Mx;Ki.CancelToken=rIe;Ki.isCancel=Bse;Ki.VERSION=Wse;Ki.toFormData=LD;Ki.AxiosError=Ar;Ki.Cancel=Ki.CanceledError;Ki.all=function(t){return Promise.all(t)};Ki.spread=nIe;Ki.isAxiosError=iIe;Ki.mergeConfig=Jg;Ki.AxiosHeaders=ea;Ki.formToJSON=e=>Nse(je.isHTMLForm(e)?new FormData(e):e);Ki.getAdapter=Hse.getAdapter;Ki.HttpStatusCode=nB;Ki.default=Ki;const{Axios:$Bt,AxiosError:GBt,CanceledError:VBt,isCancel:zBt,CancelToken:HBt,VERSION:WBt,all:UBt,Cancel:jBt,isAxiosError:KBt,spread:qBt,toFormData:XBt,AxiosHeaders:YBt,HttpStatusCode:ZBt,formToJSON:QBt,getAdapter:JBt,mergeConfig:e$t}=Ki;function Sr(e){const t=v.useRef(e);return t.current=e,v.useCallback((...n)=>{var i;return(i=t.current)==null?void 0:i.call(t,...n)},[])}function To(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const Pj=To()?v.useLayoutEffect:v.useEffect,jr=(e,t)=>{const r=v.useRef(!0);Pj(()=>e(r.current),t),Pj(()=>(r.current=!1,()=>{r.current=!0}),[])},sP=(e,t)=>{jr(r=>{if(!r)return e()},t)},yw=e=>{const t=v.useRef(!1),[r,n]=v.useState(e);v.useEffect(()=>(t.current=!1,()=>{t.current=!0}),[]);function i(o,s){s&&t.current||n(o)}return[r,i]};function An(e,t){const[r,n]=v.useState(e),i=t!==void 0?t:r;return jr(o=>{o||n(t)},[t]),[i,n]}var E_={exports:{}},In={};/** * @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 Mj;function oIe(){if(Mj)return In;Mj=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),f;f=Symbol.for("react.module.reference");function g(m){if(typeof m=="object"&&m!==null){var y=m.$$typeof;switch(y){case e:switch(m=m.type,m){case r:case i:case n:case c:case u:return m;default:switch(m=m&&m.$$typeof,m){case a:case s:case l:case h:case d:case o:return m;default:return y}}case t:return y}}}return In.ContextConsumer=s,In.ContextProvider=o,In.Element=e,In.ForwardRef=l,In.Fragment=r,In.Lazy=h,In.Memo=d,In.Portal=t,In.Profiler=i,In.StrictMode=n,In.Suspense=c,In.SuspenseList=u,In.isAsyncMode=function(){return!1},In.isConcurrentMode=function(){return!1},In.isContextConsumer=function(m){return g(m)===s},In.isContextProvider=function(m){return g(m)===o},In.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},In.isForwardRef=function(m){return g(m)===l},In.isFragment=function(m){return g(m)===r},In.isLazy=function(m){return g(m)===h},In.isMemo=function(m){return g(m)===d},In.isPortal=function(m){return g(m)===t},In.isProfiler=function(m){return g(m)===i},In.isStrictMode=function(m){return g(m)===n},In.isSuspense=function(m){return g(m)===c},In.isSuspenseList=function(m){return g(m)===u},In.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===r||m===i||m===n||m===c||m===u||m===p||typeof m=="object"&&m!==null&&(m.$$typeof===h||m.$$typeof===d||m.$$typeof===o||m.$$typeof===s||m.$$typeof===l||m.$$typeof===f||m.getModuleId!==void 0)},In.typeOf=g,In}var Ij;function sIe(){return Ij||(Ij=1,E_.exports=oIe()),E_.exports}var T_=sIe();function Pm(e,t,r){const n=v.useRef({});return(!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}const aIe=Symbol.for("react.element"),lIe=Symbol.for("react.transitional.element"),cIe=Symbol.for("react.fragment");function Kse(e){return e&&typeof e=="object"&&(e.$$typeof===aIe||e.$$typeof===lIe)&&e.type===cIe}const uIe=Number(v.version.split(".")[0]),iB=(e,t)=>{typeof e=="function"?e(t):typeof e=="object"&&e&&"current"in e&&(e.current=t)},Wo=(...e)=>{const t=e.filter(Boolean);return t.length<=1?t[0]:r=>{e.forEach(n=>{iB(n,r)})}},Pu=(...e)=>Pm(()=>Wo(...e),e,(t,r)=>t.length!==r.length||t.every((n,i)=>n!==r[i])),pu=e=>{var r,n;if(!e)return!1;if(x4(e)&&uIe>=19)return!0;const t=T_.isMemo(e)?e.type.type:e.type;return!(typeof t=="function"&&!((r=t.prototype)!=null&&r.render)&&t.$$typeof!==T_.ForwardRef||typeof e=="function"&&!((n=e.prototype)!=null&&n.render)&&e.$$typeof!==T_.ForwardRef)};function x4(e){return v.isValidElement(e)&&!Kse(e)}const dIe=e=>x4(e)&&pu(e),jd=e=>{if(e&&x4(e)){const t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};function Zs(e,t){let r=e;for(let n=0;n"u"?Object.keys:Reflect.ownKeys;function Xse(e,t={}){const{prepareArray:r}=t,n=r||(()=>[]);let i=Dj(e[0]);return e.forEach(o=>{function s(a,l){const c=new Set(l),u=Zs(o,a),d=Array.isArray(u);if(d||hIe(u)){if(!c.has(u)){c.add(u);const h=Zs(i,a);d?i=sl(i,a,n(h,u)):(!h||typeof h!="object")&&(i=sl(i,a,Dj(u))),pIe(u).forEach(p=>{Object.getOwnPropertyDescriptor(u,p).enumerable&&s([...a,p],c)})}}else i=sl(i,a,u)}s([])}),i}function ry(...e){return Xse(e)}let oB={};const fIe=e=>{};function gIe(e,t){}function mIe(e,t){}function vIe(){oB={}}function Yse(e,t,r){!t&&!oB[r]&&(e(!1,r),oB[r]=!0)}function Vn(e,t){Yse(gIe,e,t)}function yIe(e,t){Yse(mIe,e,t)}Vn.preMessage=fIe;Vn.resetWarned=vIe;Vn.noteOnce=yIe;function fn(e,t){const r=Object.assign({},e);return Array.isArray(t)&&t.forEach(n=>{delete r[n]}),r}function Li(e,t={}){let r=[];return Q.Children.forEach(e,n=>{n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(Li(n)):Kse(n)&&n.props?r=r.concat(Li(n.props.children,t)):r.push(n))}),r}function CIe(){}const bIe=v.createContext({}),MC=()=>{const e=()=>{};return e.deprecated=CIe,e};function By(e){return e instanceof HTMLElement||e instanceof SVGElement}function pc(e){return e&&typeof e=="object"&&By(e.nativeElement)?e.nativeElement:By(e)?e:null}const sB=v.createContext(null);function SIe({children:e,onBatchResize:t}){const r=v.useRef(0),n=v.useRef([]),i=v.useContext(sB),o=v.useCallback((s,a,l)=>{r.current+=1;const c=r.current;n.current.push({size:s,element:a,data:l}),Promise.resolve().then(()=>{c===r.current&&(t==null||t(n.current),n.current=[])}),i==null||i(s,a,l)},[t,i]);return v.createElement(sB.Provider,{value:o},e)}const ep=new Map;function wIe(e){e.forEach(t=>{var n;const{target:r}=t;(n=ep.get(r))==null||n.forEach(i=>i(r))})}let R_;function Zse(){return R_||(R_=new ResizeObserver(wIe)),R_}function xIe(e,t){ep.has(e)||(ep.set(e,new Set),Zse().observe(e)),ep.get(e).add(t)}function EIe(e,t){ep.has(e)&&(ep.get(e).delete(t),ep.get(e).size||(Zse().unobserve(e),ep.delete(e)))}function Qse(e,t,r,n){const i=v.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),o=Sr(a=>{const{width:l,height:c}=a.getBoundingClientRect(),{offsetWidth:u,offsetHeight:d}=a,h=Math.floor(l),p=Math.floor(c);if(i.current.width!==h||i.current.height!==p||i.current.offsetWidth!==u||i.current.offsetHeight!==d){const f={width:h,height:p,offsetWidth:u,offsetHeight:d};i.current=f;const g=u===Math.round(l)?l:u,m=d===Math.round(c)?c:d,y={...f,offsetWidth:g,offsetHeight:m};n==null||n(y,a),Promise.resolve().then(()=>{r==null||r(y,a)})}}),s=typeof t=="function";v.useEffect(()=>{const a=s?t():t;return a&&e&&xIe(a,o),()=>{a&&EIe(a,o)}},[e,s?0:t])}function TIe(e,t){const{children:r,disabled:n,onResize:i,data:o}=e,s=v.useRef(null),a=v.useContext(sB),l=typeof r=="function",c=l?r(s):r,u=!l&&v.isValidElement(c)&&pu(c),d=u?jd(c):null,h=Pu(d,s),p=()=>pc(s.current);return v.useImperativeHandle(t,()=>p()),Qse(!n,p,i,(f,g)=>{a==null||a(f,g,o)}),u?v.cloneElement(c,{ref:h}):c}const RIe=v.forwardRef(TIe);function aB(){return aB=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const s=(i==null?void 0:i.key)||`${PIe}-${o}`;return v.createElement(RIe,aB({},e,{key:s,ref:o===0?t:void 0}),i)})}const ta=v.forwardRef(MIe);ta.Collection=SIe;function Jse(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;te.length)&&(t=e.length);for(var r=0,n=Array(t);r+setTimeout(e,16),rae=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(tae=e=>window.requestAnimationFrame(e),rae=e=>window.cancelAnimationFrame(e));let Aj=0;const E4=new Map;function nae(e){E4.delete(e)}const Or=(e,t=1)=>{Aj+=1;const r=Aj;function n(i){if(i===0)nae(r),e();else{const o=tae(()=>{n(i-1)});E4.set(r,o)}}return n(t),r};Or.cancel=e=>{const t=E4.get(e);return nae(e),rae(t)};function FIe(e){let t=null;const r=i=>()=>{t=null,e.apply(void 0,Pr(i))},n=(...i)=>{t===null&&(t=Or(r(i)))};return n.cancel=()=>{Or.cancel(t),t=null},n}const Cw="ant",kD="anticon",LIe=["outlined","borderless","filled","underlined"],_Ie=(e,t)=>t||(e?`${Cw}-${e}`:Cw),ir=v.createContext({getPrefixCls:_Ie,iconPrefixCls:kD}),{Consumer:t$t}=ir,Fj={};function Fr(e){const t=v.useContext(ir),{getPrefixCls:r,direction:n,getPopupContainer:i,renderEmpty:o}=t,s=t[e];return{classNames:Fj,styles:Fj,...s,getPrefixCls:r,direction:n,getPopupContainer:i,renderEmpty:o}}function bw(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 cB(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let r=t;for(;r;){if(r===e)return!0;r=r.parentNode}return!1}const Lj="data-rc-order",_j="data-rc-priority",kIe="rc-util-key",uB=new Map;function iae({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:kIe}function OD(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function OIe(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function T4(e){return Array.from((uB.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function oae(e,t={}){if(!To())return null;const{csp:r,prepend:n,priority:i=0}=t,o=OIe(n),s=o==="prependQueue",a=document.createElement("style");a.setAttribute(Lj,o),s&&i&&a.setAttribute(_j,`${i}`),r!=null&&r.nonce&&(a.nonce=r==null?void 0:r.nonce),a.innerHTML=e;const l=OD(t),{firstChild:c}=l;if(n){if(s){const u=(t.styles||T4(l)).filter(d=>{if(!["prepend","prependQueue"].includes(d.getAttribute(Lj)))return!1;const h=Number(d.getAttribute(_j)||0);return i>=h});if(u.length)return l.insertBefore(a,u[u.length-1].nextSibling),a}l.insertBefore(a,c)}else l.appendChild(a);return a}function sae(e,t={}){let{styles:r}=t;return r||(r=T4(OD(t))),r.find(n=>n.getAttribute(iae(t))===e)}function Sw(e,t={}){const r=sae(e,t);r&&OD(t).removeChild(r)}function NIe(e,t){const r=uB.get(e);if(!r||!cB(document,r)){const n=oae("",t),{parentNode:i}=n;uB.set(e,i),e.removeChild(n)}}function hp(e,t,r={}){var l,c,u;const n=OD(r),i=T4(n),o={...r,styles:i};NIe(n,o);const s=sae(t,o);if(s)return(l=o.csp)!=null&&l.nonce&&s.nonce!==((c=o.csp)==null?void 0:c.nonce)&&(s.nonce=(u=o.csp)==null?void 0:u.nonce),s.innerHTML!==e&&(s.innerHTML=e),s;const a=oae(e,o);return a.setAttribute(iae(o),t),a}function fc(e,t,r=!1){const n=new Set;function i(o,s,a=1){const l=n.has(o);if(Vn(!l,"Warning: There may be circular references"),l)return!1;if(o===s)return!0;if(r&&a>1)return!1;n.add(o);const c=a+1;if(Array.isArray(o)){if(!Array.isArray(s)||o.length!==s.length)return!1;for(let u=0;ui(o[d],s[d],c))}return!1}return i(e,t)}const BIe="%";function dB(e){return e.join(BIe)}let kj=0;class $Ie{constructor(t){Ie(this,"instanceId");Ie(this,"cache",new Map);Ie(this,"updateTimes",new Map);Ie(this,"extracted",new Set);this.instanceId=t}get(t){return this.opGet(dB(t))}opGet(t){return this.cache.get(t)||null}update(t,r){return this.opUpdate(dB(t),r)}opUpdate(t,r){const n=this.cache.get(t),i=r(n);i===null?(this.cache.delete(t),this.updateTimes.delete(t)):(this.cache.set(t,i),this.updateTimes.set(t,kj),kj+=1)}}const R4="data-token-hash",Cd="data-css-hash",sd="__cssinjs_instance__";function GIe(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${Cd}]`)||[],{firstChild:r}=document.head;Array.from(t).forEach(i=>{i[sd]||(i[sd]=e),i[sd]===e&&document.head.insertBefore(i,r)});const n={};Array.from(document.querySelectorAll(`style[${Cd}]`)).forEach(i=>{var s;const o=i.getAttribute(Cd);n[o]?i[sd]===e&&((s=i.parentNode)==null||s.removeChild(i)):n[o]=!0})}return new $Ie(e)}const Ix=v.createContext({hashPriority:"low",cache:GIe(),defaultCache:!0,autoPrefix:!1});function VIe(e,t){if(e.length!==t.length)return!1;for(let r=0;r{var o;n?n=(o=n==null?void 0:n.map)==null?void 0:o.get(i):n=void 0}),n!=null&&n.value&&r&&(n.value[1]=this.cacheCallTimes++),n==null?void 0:n.value}get(t){var r;return(r=this.internalGet(t,!0))==null?void 0:r[0]}has(t){return!!this.internalGet(t)}set(t,r){if(!this.has(t)){if(this.size()+1>vy.MAX_CACHE_SIZE+vy.MAX_CACHE_OFFSET){const[i]=this.keys.reduce((o,s)=>{const[,a]=o;return this.internalGet(s)[1]{if(o===t.length-1)n.set(i,{value:[r,this.cacheCallTimes++]});else{const s=n.get(i);s?s.map||(s.map=new Map):n.set(i,{map:new Map}),n=n.get(i).map}})}deleteByPath(t,r){var o;const n=t.get(r[0]);if(r.length===1)return n.map?t.set(r[0],{map:n.map}):t.delete(r[0]),(o=n.value)==null?void 0:o[0];const i=this.deleteByPath(n.map,r.slice(1));return(!n.map||n.map.size===0)&&!n.value&&t.delete(r[0]),i}delete(t){if(this.has(t))return this.keys=this.keys.filter(r=>!VIe(r,t)),this.deleteByPath(this.cache,t)}};Ie(vy,"MAX_CACHE_SIZE",20),Ie(vy,"MAX_CACHE_OFFSET",5);let hB=vy,Oj=0;class aae{constructor(t){Ie(this,"derivatives");Ie(this,"id");this.derivatives=Array.isArray(t)?t:[t],this.id=Oj,t.length===0&&(t.length>0,void 0),Oj+=1}getDerivativeToken(t){return this.derivatives.reduce((r,n)=>n(t,r),void 0)}}const P_=new hB;function pB(e){const t=Array.isArray(e)?e:[e];return P_.has(t)||P_.set(t,new aae(t)),P_.get(t)}const zIe=new WeakMap,M_={};function HIe(e,t){let r=zIe;for(let n=0;n{const n=e[r];t+=r,n instanceof aae?t+=n.id:n&&typeof n=="object"?t+=PS(n):t+=n}),t=bw(t),Nj.set(e,t)),t}function WIe(e,t){return bw(`${t}_${PS(e)}`)}const fB=To();function ae(e){return typeof e=="number"?`${e}px`:e}function lae(e){const{hashCls:t,hashPriority:r="low"}=e||{};if(!t)return"";const n=`.${t}`;return r==="low"?`:where(${n})`:n}const UIe=e=>e!=null;function P4(e,t){const r=typeof t=="function"?t():t;return r?{...e,csp:{...e.csp,nonce:r}}:e}const aP=(e,t="")=>`--${t?`${t}-`:""}${e}`.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase(),jIe=(e,t,r)=>{const{hashCls:n,hashPriority:i="low",scope:o}=r||{};if(!Object.keys(e).length)return"";const s=`${lae({hashCls:n,hashPriority:i})}.${t}`,a=[o].flat().filter(Boolean);return`${a.length?a.map(c=>`${s}.${c}`).join(", "):s}{${Object.entries(e).map(([c,u])=>`${c}:${u};`).join("")}}`},cae=(e,t,r)=>{const{hashCls:n,hashPriority:i="low",prefix:o,unitless:s,ignore:a,preserve:l}=r||{},c={},u={};return Object.entries(e).forEach(([d,h])=>{if(l!=null&&l[d])u[d]=h;else if((typeof h=="string"||typeof h=="number")&&!(a!=null&&a[d])){const p=aP(d,o);c[p]=typeof h=="number"&&!(s!=null&&s[d])?`${h}px`:String(h),u[d]=`var(${p})`}}),[u,jIe(c,t,{scope:r==null?void 0:r.scope,hashCls:n,hashPriority:i})]},qE=new Map;function M4(e,t,r,n,i){const{cache:o}=v.useContext(Ix),s=[e,...t],a=dB(s),l=d=>{o.opUpdate(a,h=>{const[p=0,f]=h||[void 0,void 0],m=f||r(),y=[p,m];return d?d(y):y})};v.useMemo(()=>{l()},[a]);const u=o.opGet(a)[1];return v.useInsertionEffect(()=>(l(([d,h])=>[d+1,h]),qE.has(a)||(i==null||i(u),qE.set(a,!0),Promise.resolve().then(()=>{qE.delete(a)})),()=>{o.opUpdate(a,d=>{const[h=0,p]=d||[];return h-1===0?(n==null||n(p,!1),qE.delete(a),null):[h-1,p]})}),[a]),u}const KIe={},qIe="css",og=new Map;function XIe(e){og.set(e,(og.get(e)||0)+1)}function YIe(e,t){typeof document<"u"&&document.querySelectorAll(`style[${R4}="${e}"]`).forEach(n=>{var i;n[sd]===t&&((i=n.parentNode)==null||i.removeChild(n))})}const ZIe=-1;function QIe(e,t){og.set(e,(og.get(e)||0)-1);const r=new Set;og.forEach((n,i)=>{n<=0&&r.add(i)}),og.size-r.size>ZIe&&r.forEach(n=>{YIe(n,t),og.delete(n)})}const JIe=(e,t,r,n)=>{let o={...r.getDerivativeToken(e),...t};return n&&(o=n(o)),o},eDe="token";function tDe(e,t,r){const{cache:{instanceId:n},container:i,hashPriority:o}=v.useContext(Ix),{salt:s="",override:a=KIe,formatToken:l,getComputedToken:c,cssVar:u,nonce:d}=r,h=HIe(()=>Object.assign({},...t),t),p=PS(h),f=PS(a),g=PS(u);return M4(eDe,[s,e.id,p,f,g],()=>{const y=c?c(h,a,e):JIe(h,a,e,l),b={...y},S=`${s}_${u.prefix}`,x=bw(S),E=`${qIe}-${x}`;b._tokenKey=WIe(b,S);const[R,T]=cae(y,u.key,{prefix:u.prefix,ignore:u.ignore,unitless:u.unitless,preserve:u.preserve,hashPriority:o,hashCls:u.hashed?E:void 0});return R._hashId=x,XIe(u.key),[R,E,b,T,u.key]},([,,,,y])=>{QIe(y,n)},([,,,y,b])=>{if(!y)return;let S={mark:Cd,prepend:"queue",attachTo:i,priority:-999};S=P4(S,d);const x=hp(y,bw(`css-var-${b}`),S);x[sd]=n,x.setAttribute(R4,b)})}var rDe={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},Yn="-ms-",MS="-moz-",xn="-webkit-",uae="comm",I4="rule",D4="decl",nDe="@import",iDe="@namespace",dae="@keyframes",oDe="@layer",hae=Math.abs,A4=String.fromCharCode,gB=Object.assign;function sDe(e,t){return to(e,0)^45?(((t<<2^to(e,0))<<2^to(e,1))<<2^to(e,2))<<2^to(e,3):0}function pae(e){return e.trim()}function td(e,t){return(e=t.exec(e))?e[0]:e}function Zr(e,t,r){return e.replace(t,r)}function lP(e,t,r){return e.indexOf(t,r)}function to(e,t){return e.charCodeAt(t)|0}function em(e,t,r){return e.slice(t,r)}function Zl(e){return e.length}function fae(e){return e.length}function tS(e,t){return t.push(e),e}function aDe(e,t){return e.map(t).join("")}function Bj(e,t){return e.filter(function(r){return!td(r,t)})}var ND=1,$y=1,gae=0,Sl=0,Wi=0,IC="";function BD(e,t,r,n,i,o,s,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:ND,column:$y,length:s,return:"",siblings:a}}function _h(e,t){return gB(BD("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function uv(e){for(;e.root;)e=_h(e.root,{children:[e]});tS(e,e.siblings)}function lDe(){return Wi}function cDe(){return Wi=Sl>0?to(IC,--Sl):0,$y--,Wi===10&&($y=1,ND--),Wi}function oc(){return Wi=Sl2||ww(Wi)>3?"":" "}function pDe(e,t){for(;--t&&oc()&&!(Wi<48||Wi>102||Wi>57&&Wi<65||Wi>70&&Wi<97););return $D(e,cP()+(t<6&&tp()==32&&oc()==32))}function mB(e){for(;oc();)switch(Wi){case e:return Sl;case 34:case 39:e!==34&&e!==39&&mB(Wi);break;case 40:e===41&&mB(e);break;case 92:oc();break}return Sl}function fDe(e,t){for(;oc()&&e+Wi!==57;)if(e+Wi===84&&tp()===47)break;return"/*"+$D(t,Sl-1)+"*"+A4(e===47?e:oc())}function gDe(e){for(;!ww(tp());)oc();return $D(e,Sl)}function $j(e){return dDe(uP("",null,null,null,[""],e=uDe(e),0,[0],e))}function uP(e,t,r,n,i,o,s,a,l){for(var c=0,u=0,d=s,h=0,p=0,f=0,g=1,m=1,y=1,b=0,S="",x=i,E=o,R=n,T=S;m;)switch(f=b,b=oc()){case 40:if(f!=108&&to(T,d-1)==58){lP(T+=Zr(I_(b),"&","&\f"),"&\f",hae(c?a[c-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:T+=I_(b);break;case 9:case 10:case 13:case 32:T+=hDe(f);break;case 92:T+=pDe(cP()-1,7);continue;case 47:switch(tp()){case 42:case 47:tS(mDe(fDe(oc(),cP()),t,r,l),l),(ww(f||1)==5||ww(tp()||1)==5)&&Zl(T)&&em(T,-1,void 0)!==" "&&(T+=" ");break;default:T+="/"}break;case 123*g:a[c++]=Zl(T)*y;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:y==-1&&(T=Zr(T,/\f/g,"")),p>0&&(Zl(T)-d||g===0&&f===47)&&tS(p>32?Vj(T+";",n,r,d-1,l):Vj(Zr(T," ","")+";",n,r,d-2,l),l);break;case 59:T+=";";default:if(tS(R=Gj(T,t,r,c,u,i,a,S,x=[],E=[],d,o),o),b===123)if(u===0)uP(T,t,R,R,x,o,d,a,E);else{switch(h){case 99:if(to(T,3)===110)break;case 108:if(to(T,2)===97)break;default:u=0;case 100:case 109:case 115:}u?uP(e,R,R,n&&tS(Gj(e,R,R,0,0,i,a,S,i,x=[],d,E),E),i,E,d,a,n?x:E):uP(T,R,R,R,[""],E,0,a,E)}}c=u=p=0,g=y=1,S=T="",d=s;break;case 58:d=1+Zl(T),p=f;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&cDe()==125)continue}switch(T+=A4(b),b*g){case 38:y=u>0?1:(T+="\f",-1);break;case 44:a[c++]=(Zl(T)-1)*y,y=1;break;case 64:tp()===45&&(T+=I_(oc())),h=tp(),u=d=Zl(S=T+=gDe(cP())),b++;break;case 45:f===45&&Zl(T)==2&&(g=0)}}return o}function Gj(e,t,r,n,i,o,s,a,l,c,u,d){for(var h=i-1,p=i===0?o:[""],f=fae(p),g=0,m=0,y=0;g0?p[b]+" "+S:Zr(S,/&\f/g,p[b])))&&(l[y++]=x);return BD(e,t,r,i===0?I4:a,l,c,u,d)}function mDe(e,t,r,n){return BD(e,t,r,uae,A4(lDe()),em(e,2,-2),0,n)}function Vj(e,t,r,n,i){return BD(e,t,r,D4,em(e,0,n),em(e,n+1,-1),n,i)}function mae(e,t,r){switch(sDe(e,t)){case 5103:return xn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return xn+e+e;case 4855:return xn+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return MS+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return xn+e+MS+e+Yn+e+e;case 5936:switch(to(e,t+11)){case 114:return xn+e+Yn+Zr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return xn+e+Yn+Zr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return xn+e+Yn+Zr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return xn+e+Yn+e+e;case 6165:return xn+e+Yn+"flex-"+e+e;case 5187:return xn+e+Zr(e,/(\w+).+(:[^]+)/,xn+"box-$1$2"+Yn+"flex-$1$2")+e;case 5443:return xn+e+Yn+"flex-item-"+Zr(e,/flex-|-self/g,"")+(td(e,/flex-|baseline/)?"":Yn+"grid-row-"+Zr(e,/flex-|-self/g,""))+e;case 4675:return xn+e+Yn+"flex-line-pack"+Zr(e,/align-content|flex-|-self/g,"")+e;case 5548:return xn+e+Yn+Zr(e,"shrink","negative")+e;case 5292:return xn+e+Yn+Zr(e,"basis","preferred-size")+e;case 6060:return xn+"box-"+Zr(e,"-grow","")+xn+e+Yn+Zr(e,"grow","positive")+e;case 4554:return xn+Zr(e,/([^-])(transform)/g,"$1"+xn+"$2")+e;case 6187:return Zr(Zr(Zr(e,/(zoom-|grab)/,xn+"$1"),/(image-set)/,xn+"$1"),e,"")+e;case 5495:case 3959:return Zr(e,/(image-set\([^]*)/,xn+"$1$`$1");case 4968:return Zr(Zr(e,/(.+:)(flex-)?(.*)/,xn+"box-pack:$3"+Yn+"flex-pack:$3"),/space-between/,"justify")+xn+e+e;case 4200:if(!td(e,/flex-|baseline/))return Yn+"grid-column-align"+em(e,t)+e;break;case 2592:case 3360:return Yn+Zr(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,i){return t=i,td(n.props,/grid-\w+-end/)})?~lP(e+(r=r[t].value),"span",0)?e:Yn+Zr(e,"-start","")+e+Yn+"grid-row-span:"+(~lP(r,"span",0)?td(r,/\d+/):+td(r,/\d+/)-+td(e,/\d+/))+";":Yn+Zr(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return td(n.props,/grid-\w+-start/)})?e:Yn+Zr(Zr(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Zr(e,/(.+)-inline(.+)/,xn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Zl(e)-1-t>6)switch(to(e,t+1)){case 109:if(to(e,t+4)!==45)break;case 102:return Zr(e,/(.+:)(.+)-([^]+)/,"$1"+xn+"$2-$3$1"+MS+(to(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~lP(e,"stretch",0)?mae(Zr(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Zr(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,i,o,s,a,l,c){return Yn+i+":"+o+c+(s?Yn+i+"-span:"+(a?l:+l-+o)+c:"")+e});case 4949:if(to(e,t+6)===121)return Zr(e,":",":"+xn)+e;break;case 6444:switch(to(e,to(e,14)===45?18:11)){case 120:return Zr(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+xn+(to(e,14)===45?"inline-":"")+"box$3$1"+xn+"$2$3$1"+Yn+"$2box$3")+e;case 100:return Zr(e,":",":"+Yn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Zr(e,"scroll-","scroll-snap-")+e}return e}function xw(e,t){for(var r="",n=0;n-1&&!e.return)switch(e.type){case D4:e.return=mae(e.value,e.length,r);return;case dae:return xw([_h(e,{value:Zr(e.value,"@","@"+xn)})],n);case I4:if(e.length)return aDe(r=e.props,function(i){switch(td(i,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":uv(_h(e,{props:[Zr(i,/:(read-\w+)/,":"+MS+"$1")]})),uv(_h(e,{props:[i]})),gB(e,{props:Bj(r,n)});break;case"::placeholder":uv(_h(e,{props:[Zr(i,/:(plac\w+)/,":"+xn+"input-$1")]})),uv(_h(e,{props:[Zr(i,/:(plac\w+)/,":"+MS+"$1")]})),uv(_h(e,{props:[Zr(i,/:(plac\w+)/,Yn+"input-$1")]})),uv(_h(e,{props:[i]})),gB(e,{props:Bj(r,n)});break}return""})}}const Hj="data-ant-cssinjs-cache-path",vae="_FILE_STYLE__";let _g,yae=!0;function CDe(){var e;if(!_g&&(_g={},To())){const t=document.createElement("div");t.className=Hj,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);let r=getComputedStyle(t).content||"";r=r.replace(/^"/,"").replace(/"$/,""),r.split(";").forEach(i=>{const[o,s]=i.split(":");_g[o]=s});const n=document.querySelector(`style[${Hj}]`);n&&(yae=!1,(e=n.parentNode)==null||e.removeChild(n)),document.body.removeChild(t)}}function bDe(e){return CDe(),!!_g[e]}function SDe(e){const t=_g[e];let r=null;if(t&&To())if(yae)r=vae;else{const n=document.querySelector(`style[${Cd}="${_g[e]}"]`);n?r=n.innerHTML:delete _g[e]}return[r,t]}const wDe="_skip_check_",Cae="_multi_value_";function D_(e,t){return(t?xw($j(e),vDe([yDe,zj])):xw($j(e),zj)).replace(/\{%%%\:[^;];}/g,";")}function xDe(e){return typeof e=="object"&&e&&(wDe in e||Cae in e)}function Wj(e,t,r="high"){if(!t)return e;const n=lae({hashCls:t,hashPriority:r});return e.split(",").map(o=>{var c;const s=o.trim().split(/\s+/);let a=s[0]||"";const l=((c=a.match(/^\w+/))==null?void 0:c[0])||"";return a=`${l}${n}${a.slice(l.length)}`,[a,...s.slice(1)].join(" ")}).join(",")}const vB=(e,t={},{root:r,injectHash:n,parentSelectors:i}={root:!0,parentSelectors:[]})=>{const{hashId:o,layer:s,path:a,hashPriority:l,transformers:c=[],linters:u=[]}=t;let d="",h={};function p(m){const y=m.getName(o);if(!h[y]){const[b]=vB(m.style,t,{root:!1,parentSelectors:i});h[y]=`@keyframes ${m.getName(o)}${b}`}}function f(m,y=[]){return m.forEach(b=>{Array.isArray(b)?f(b,y):b&&y.push(b)}),y}return f(Array.isArray(e)?e:[e]).forEach(m=>{const y=typeof m=="string"&&!r?{}:m;if(typeof y=="string")d+=`${y} `;else if(y._keyframe)p(y);else{const b=c.reduce((S,x)=>{var E;return((E=x==null?void 0:x.visit)==null?void 0:E.call(x,S))||S},y);Object.keys(b).forEach(S=>{const x=b[S];if(typeof x=="object"&&x&&(S!=="animationName"||!x._keyframe)&&!xDe(x)){let E=!1,R=S.trim(),T=!1;(r||n)&&o?R.startsWith("@")?E=!0:R==="&"?R=Wj("",o,l):R=Wj(S,o,l):r&&!o&&(R==="&"||R==="")&&(R="",T=!0);const[M,D]=vB(x,t,{root:T,injectHash:E,parentSelectors:[...i,R]});h={...h,...D},d+=`${R}${M}`}else{let E=function(T,M){const D=T.replace(/[A-Z]/g,I=>`-${I.toLowerCase()}`);let A=M;!rDe[T]&&typeof A=="number"&&A!==0&&(A=`${A}px`),T==="animationName"&&(M!=null&&M._keyframe)&&(p(M),A=M.getName(o)),d+=`${D}:${A};`};const R=(x==null?void 0:x.value)??x;typeof x=="object"&&(x!=null&&x[Cae])&&Array.isArray(R)?R.forEach(T=>{E(S,T)}):UIe(R)&&E(S,R)}})}}),r?s&&(d&&(d=`@layer ${s.name} {${d}}`),s.dependencies&&(h[`@layer ${s.name}`]=s.dependencies.map(m=>`@layer ${m}, ${s.name};`).join(` `))):d=`{${d}}`,[d,h]};function bae(e,t){return bw(`${e.join("%")}${t}`)}const EDe="style";function yB(e,t){const{path:r,hashId:n,layer:i,nonce:o,clientOnly:s,order:a=0}=e,{mock:l,hashPriority:c,container:u,transformers:d,linters:h,cache:p,layer:f,autoPrefix:g}=v.useContext(Ix),m=[n||""];f&&m.push("layer"),m.push(...r);let y=fB;M4(EDe,m,()=>{const b=m.join("|");if(bDe(b)){const[M,D]=SDe(b);if(M)return[M,D,{},s,a]}const S=t(),[x,E]=vB(S,{hashId:n,hashPriority:c,layer:f?i:void 0,path:r.join("-"),transformers:d,linters:h}),R=D_(x,g||!1),T=bae(m,R);return[R,T,E,s,a]},(b,S)=>{const[,x]=b;S&&fB&&Sw(x,{mark:Cd,attachTo:u})},b=>{const[S,x,E,,R]=b;if(y&&S!==vae){let T={mark:Cd,prepend:f?!1:"queue",attachTo:u,priority:R};T=P4(T,o);const M=[],D=[];Object.keys(E).forEach(I=>{I.startsWith("@layer")?M.push(I):D.push(I)}),M.forEach(I=>{hp(D_(E[I],g||!1),`_layer-${I}`,{...T,prepend:!0})});const A=hp(S,x,T);A[sd]=p.instanceId,D.forEach(I=>{hp(D_(E[I],g||!1),`_effect-${I}`,T)})}})}const TDe="cssVar",RDe=(e,t)=>{const{key:r,prefix:n,unitless:i,ignore:o,token:s,hashId:a,scope:l,nonce:c}=e,{cache:{instanceId:u},container:d,hashPriority:h}=v.useContext(Ix),{_tokenKey:p}=s,f=Array.isArray(l)?l.join("@@"):l,g=[...e.path,r,f,p];return M4(TDe,g,()=>{const y=t(),[b,S]=cae(y,r,{prefix:n,unitless:i,ignore:o,scope:l,hashPriority:h,hashCls:a}),x=bae(g,S);return[b,S,x,r]},([,,y])=>{fB&&Sw(y,{mark:Cd,attachTo:d})},([,y,b])=>{if(!y)return;let S={mark:Cd,prepend:"queue",attachTo:d,priority:-999};S=P4(S,c);const x=hp(y,b,S);x[sd]=u,x.setAttribute(R4,r)})};class qr{constructor(t,r){Ie(this,"name");Ie(this,"style");Ie(this,"_keyframe",!0);this.name=t,this.style=r}getName(t=""){return t?`${t}-${this.name}`:this.name}}function dv(e){return e.notSplit=!0,e}dv(["borderTop","borderBottom"]),dv(["borderTop"]),dv(["borderBottom"]),dv(["borderLeft","borderRight"]),dv(["borderLeft"]),dv(["borderRight"]);function Ui(e){"@babel/helpers - typeof";return Ui=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},Ui(e)}function PDe(e){if(Array.isArray(e))return e}function MDe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,s,a=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}function IDe(){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 Sae(e,t){return PDe(e)||MDe(e,t)||eae(e,t)||IDe()}function DDe(e,t){if(Ui(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ui(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wae(e){var t=DDe(e,"string");return Ui(t)=="symbol"?t:t+""}function Bn(e,t,r){return(t=wae(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Uj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ci(e){for(var t=1;t1e4){var n=Date.now();this.lastAccessBeat.forEach(function(i,o){n-i>$De&&(r.map.delete(o),r.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e})(),Yj=new GDe;function VDe(e,t){return Q.useMemo(function(){var r=Yj.get(t);if(r)return r;var n=e();return Yj.set(t,n),n},t)}var zDe=function(){return{}};function HDe(e){var t=e.useCSP,r=t===void 0?zDe:t,n=e.useToken,i=e.usePrefix,o=e.getResetStyles,s=e.getCommonStyle,a=e.getCompUnitless;function l(h,p,f,g){var m=Array.isArray(h)?h[0]:h;function y(M){return"".concat(String(m)).concat(M.slice(0,1).toUpperCase()).concat(M.slice(1))}var b=(g==null?void 0:g.unitless)||{},S=typeof a=="function"?a(h):{},x=Ci(Ci({},S),{},Bn({},y("zIndexPopup"),!0));Object.keys(b).forEach(function(M){x[y(M)]=b[M]});var E=Ci(Ci({},g),{},{unitless:x,prefixToken:y}),R=u(h,p,f,E),T=c(m,f,E);return function(M){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:M,A=R(M,D),I=g==null?void 0:g.extraCssVarPrefixCls,L=typeof I=="function"?I({prefixCls:M,rootCls:D}):I,F=T(L!=null&&L.length?[D].concat(Pr(L)):D);return[A,F]}}function c(h,p,f){var g=f.unitless,m=f.prefixToken,y=f.ignore;return function(b){var S=n(),x=S.cssVar,E=S.realToken,R=r();return RDe({path:[h],prefix:x.prefix,key:x.key,unitless:g,ignore:y,token:E,scope:b,nonce:function(){return R.nonce}},function(){var T=Xj(h,E,p),M=Kj(h,E,T,{deprecatedTokens:f==null?void 0:f.deprecatedTokens});return T&&Object.keys(T).forEach(function(D){M[m(D)]=M[D],delete M[D]}),M}),x==null?void 0:x.key}}function u(h,p,f){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},m=Array.isArray(h)?h:[h,h],y=Sae(m,1),b=y[0],S=m.join("-"),x=e.layer||{name:"antd"};return function(E){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:E,T=n(),M=T.theme,D=T.realToken,A=T.hashId,I=T.token,L=T.cssVar,F=T.zeroRuntime,O=v.useMemo(function(){return F},[]);if(O)return A;var k=i(),B=k.rootPrefixCls,H=k.iconPrefixCls,N=r(),z="css",W=VDe(function(){var X=new Set;return Object.keys(g.unitless||{}).forEach(function(Y){X.add(aP(Y,L.prefix)),X.add(aP(Y,jj(b,L.prefix)))}),kDe(z,X)},[z,b,L==null?void 0:L.prefix]),V=BDe(),$=V.max,K=V.min,q={theme:M,token:I,hashId:A,nonce:function(){return N.nonce},clientOnly:g.clientOnly,layer:x,order:g.order||-999};return typeof o=="function"&&yB(Ci(Ci({},q),{},{clientOnly:!1,path:["Shared",B]}),function(){return o(I,{prefix:{rootPrefixCls:B,iconPrefixCls:H},csp:N})}),yB(Ci(Ci({},q),{},{path:[S,E,H]}),function(){if(g.injectStyle===!1)return[];var X=NDe(I),Y=X.token,oe=X.flush,ee=Xj(b,D,f),ne=".".concat(E),le=Kj(b,D,ee,{deprecatedTokens:g.deprecatedTokens});ee&&Ui(ee)==="object"&&Object.keys(ee).forEach(function(de){ee[de]="var(".concat(aP(de,jj(b,L.prefix)),")")});var he=$r(Y,{componentCls:ne,prefixCls:E,iconCls:".".concat(H),antCls:".".concat(B),calc:W,max:$,min:K},ee),re=p(he,{hashId:A,prefixCls:E,rootPrefixCls:B,iconPrefixCls:H});oe(b,le);var ie=typeof s=="function"?s(he,E,R,g.resetFont):null;return[g.resetStyle===!1?null:ie,re]}),A}}function d(h,p,f){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},m=u(h,p,f,Ci({resetStyle:!1,order:-998},g)),y=function(S){var x=S.prefixCls,E=S.rootCls,R=E===void 0?x:E;return m(x,R),null};return y}return{genStyleHooks:l,genSubStyleComponent:d,genComponentStyleHook:u}}const Ad=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function dP(e){return(e+8)/e}function WDe(e){const t=Array.from({length:10}).map((r,n)=>{const i=n-1,o=e*Math.E**(i/5),s=n>1?Math.floor(o):Math.ceil(o);return Math.floor(s/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:dP(r)}))}const UDe="6.3.2",Pae={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"},Tw={...Pae,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},jDe={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},yo=Math.round;function F_(e,t){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)n[i]=t(n[i]||0,r[i]||"",i);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const Zj=(e,t,r)=>r===0?e:e/100;function n0(e,t){const r=t||255;return e>r?r:e<0?0:e}class cn{constructor(t){Ie(this,"isValid",!0);Ie(this,"r",0);Ie(this,"g",0);Ie(this,"b",0);Ie(this,"a",1);Ie(this,"_h");Ie(this,"_hsl_s");Ie(this,"_hsv_s");Ie(this,"_l");Ie(this,"_v");Ie(this,"_max");Ie(this,"_min");Ie(this,"_brightness");function r(n){return n[0]in t&&n[1]in t&&n[2]in t}if(t)if(typeof t=="string"){let i=function(o){return n.startsWith(o)};const n=t.trim();if(/^#?[A-F\d]{3,8}$/i.test(n))this.fromHexString(n);else if(i("rgb"))this.fromRgbString(n);else if(i("hsl"))this.fromHslString(n);else if(i("hsv")||i("hsb"))this.fromHsvString(n);else{const o=jDe[n.toLowerCase()];o&&this.fromHexString(parseInt(o,36).toString(16).padStart(6,"0"))}}else if(t instanceof cn)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._hsl_s=t._hsl_s,this._hsv_s=t._hsv_s,this._l=t._l,this._v=t._v;else if(r("rgb"))this.r=n0(t.r),this.g=n0(t.g),this.b=n0(t.b),this.a=typeof t.a=="number"?n0(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("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 r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(o){const s=o/255;return s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4)}const r=t(this.r),n=t(this.g),i=t(this.b);return .2126*r+.7152*n+.0722*i}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=yo(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g"u"){const t=this.getMax()-this.getMin();t===0?this._hsv_s=0:this._hsv_s=t/this.getMax()}return this._hsv_s}getHSLSaturation(){if(typeof this._hsl_s>"u"){const t=this.getMax()-this.getMin();if(t===0)this._hsl_s=0;else{const r=this.getLightness();this._hsl_s=t/255/(1-Math.abs(2*r-1))}}return this._hsl_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 r=this.getHue(),n=this.getSaturation();let i=this.getLightness()-t/100;return i<0&&(i=0),this._c({h:r,s:n,l:i,a:this.a})}lighten(t=10){const r=this.getHue(),n=this.getSaturation();let i=this.getLightness()+t/100;return i>1&&(i=1),this._c({h:r,s:n,l:i,a:this.a})}mix(t,r=50){const n=this._c(t),i=r/100,o=a=>(n[a]-this[a])*i+this[a],s={r:yo(o("r")),g:yo(o("g")),b:yo(o("b")),a:yo(o("a")*100)/100};return this._c(s)}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 r=this._c(t),n=this.a+r.a*(1-this.a),i=o=>yo((this[o]*this.a+r[o]*r.a*(1-this.a))/n);return this._c({r:i("r"),g:i("g"),b:i("b"),a:n})}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 r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;const n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;const i=(this.b||0).toString(16);if(t+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=yo(this.a*255).toString(16);t+=o.length===2?o:"0"+o}return t}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),r=yo(this.getHSLSaturation()*100),n=yo(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${n}%,${this.a})`:`hsl(${t},${r}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getHSVSaturation(),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,r,n){const i=this.clone();return i[t]=n0(r,n),i}_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 r=t.replace("#","");function n(i,o){return parseInt(r[i]+r[o||i],16)}r.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=r[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=r[6]?n(6,7)/255:1)}fromHsl({h:t,s:r,l:n,a:i}){const o=(t%360+360)%360;if(this._h=o,this._hsl_s=r,this._l=n,this.a=typeof i=="number"?i:1,r<=0){const p=yo(n*255);this.r=p,this.g=p,this.b=p;return}let s=0,a=0,l=0;const c=o/60,u=(1-Math.abs(2*n-1))*r,d=u*(1-Math.abs(c%2-1));c>=0&&c<1?(s=u,a=d):c>=1&&c<2?(s=d,a=u):c>=2&&c<3?(a=u,l=d):c>=3&&c<4?(a=d,l=u):c>=4&&c<5?(s=d,l=u):c>=5&&c<6&&(s=u,l=d);const h=n-u/2;this.r=yo((s+h)*255),this.g=yo((a+h)*255),this.b=yo((l+h)*255)}fromHsv({h:t,s:r,v:n,a:i}){const o=(t%360+360)%360;this._h=o,this._hsv_s=r,this._v=n,this.a=typeof i=="number"?i:1;const s=yo(n*255);if(this.r=s,this.g=s,this.b=s,r<=0)return;const a=o/60,l=Math.floor(a),c=a-l,u=yo(n*(1-r)*255),d=yo(n*(1-r*c)*255),h=yo(n*(1-r*(1-c))*255);switch(l){case 0:this.g=h,this.b=u;break;case 1:this.r=d,this.b=u;break;case 2:this.r=u,this.b=h;break;case 3:this.r=u,this.g=d;break;case 4:this.r=h,this.g=u;break;case 5:default:this.g=u,this.b=d;break}}fromHsvString(t){const r=F_(t,Zj);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){const r=F_(t,Zj);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){const r=F_(t,(n,i)=>i.includes("%")?yo(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}}const XE=2,Qj=.16,KDe=.05,qDe=.05,XDe=.15,Mae=5,Iae=4,YDe=[{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 Jj(e,t,r){let n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-XE*t:Math.round(e.h)+XE*t:n=r?Math.round(e.h)+XE*t:Math.round(e.h)-XE*t,n<0?n+=360:n>=360&&(n-=360),n}function eK(e,t,r){if(e.h===0&&e.s===0)return e.s;let n;return r?n=e.s-Qj*t:t===Iae?n=e.s+Qj:n=e.s+KDe*t,n>1&&(n=1),r&&t===Mae&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function tK(e,t,r){let n;return r?n=e.v+qDe*t:n=e.v-XDe*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function L4(e,t={}){const r=[],n=new cn(e),i=n.toHsv();for(let o=Mae;o>0;o-=1){const s=new cn({h:Jj(i,o,!0),s:eK(i,o,!0),v:tK(i,o,!0)});r.push(s)}r.push(n);for(let o=1;o<=Iae;o+=1){const s=new cn({h:Jj(i,o),s:eK(i,o),v:tK(i,o)});r.push(s)}return t.theme==="dark"?YDe.map(({index:o,amount:s})=>new cn(t.backgroundColor||"#141414").mix(r[o],s).toHexString()):r.map(o=>o.toHexString())}const Cy={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"},bB=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];bB.primary=bB[5];const SB=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];SB.primary=SB[5];const wB=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];wB.primary=wB[5];const aM=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];aM.primary=aM[5];const xB=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];xB.primary=xB[5];const EB=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];EB.primary=EB[5];const TB=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];TB.primary=TB[5];const RB=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];RB.primary=RB[5];const Gy=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Gy.primary=Gy[5];const PB=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];PB.primary=PB[5];const MB=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];MB.primary=MB[5];const IB=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];IB.primary=IB[5];const DB=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];DB.primary=DB[5];const L_={red:bB,volcano:SB,orange:wB,gold:aM,yellow:xB,lime:EB,green:TB,cyan:RB,blue:Gy,geekblue:PB,purple:MB,magenta:IB,grey:DB};function ZDe(e,{generateColorPalettes:t,generateNeutralColorPalettes:r}){const{colorSuccess:n,colorWarning:i,colorError:o,colorInfo:s,colorPrimary:a,colorBgBase:l,colorTextBase:c}=e,u=t(a),d=t(n),h=t(i),p=t(o),f=t(s),g=r(l,c),m=e.colorLink||e.colorInfo,y=t(m),b=new cn(p[1]).mix(new cn(p[3]),50).toHexString(),S={};return Ad.forEach(x=>{const E=e[x];if(E){const R=t(E);S[`${x}Hover`]=R[5],S[`${x}Active`]=R[7]}}),{...g,colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBgFilledHover:b,colorErrorBgActive:p[3],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:f[1],colorInfoBgHover:f[2],colorInfoBorder:f[3],colorInfoBorderHover:f[4],colorInfoHover:f[4],colorInfo:f[6],colorInfoActive:f[7],colorInfoTextHover:f[8],colorInfoText:f[9],colorInfoTextActive:f[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],...S,colorBgMask:new cn("#000").setA(.45).toRgbString(),colorWhite:"#fff"}}const QDe=e=>{let t=e,r=e,n=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:i}};function JDe(e){const{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:i}=e;return{motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:i+1,...QDe(n)}}const eAe=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},tAe=e=>{const t=WDe(e),r=t.map(u=>u.size),n=t.map(u=>u.lineHeight),i=r[1],o=r[0],s=r[2],a=n[1],l=n[0],c=n[2];return{fontSizeSM:o,fontSize:i,fontSizeLG:s,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:a,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(a*i),fontHeightLG:Math.round(c*s),fontHeightSM:Math.round(l*o),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};function rAe(e){const{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}const Za=(e,t)=>new cn(e).setA(t).toRgbString(),hv=(e,t)=>new cn(e).darken(t).toHexString(),nAe=e=>{const t=L4(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]}},iAe=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:Za(n,.88),colorTextSecondary:Za(n,.65),colorTextTertiary:Za(n,.45),colorTextQuaternary:Za(n,.25),colorFill:Za(n,.15),colorFillSecondary:Za(n,.06),colorFillTertiary:Za(n,.04),colorFillQuaternary:Za(n,.02),colorBgSolid:Za(n,1),colorBgSolidHover:Za(n,.75),colorBgSolidActive:Za(n,.95),colorBgLayout:hv(r,4),colorBgContainer:hv(r,0),colorBgElevated:hv(r,0),colorBgSpotlight:Za(n,.85),colorBgBlur:"transparent",colorBorder:hv(r,15),colorBorderDisabled:hv(r,15),colorBorderSecondary:hv(r,6)}};function oAe(e){Cy.pink=Cy.magenta,L_.pink=L_.magenta;const t=Object.keys(Pae).map(r=>{const n=e[r]===Cy[r]?L_[r]:L4(e[r]);return Array.from({length:10},()=>1).reduce((i,o,s)=>(i[`${r}-${s+1}`]=n[s],i[`${r}${s+1}`]=n[s],i),{})}).reduce((r,n)=>(r={...r,...n},r),{});return{...e,...t,...ZDe(e,{generateColorPalettes:nAe,generateNeutralColorPalettes:iAe}),...tAe(e.fontSize),...rAe(e),...eAe(e),...JDe(e)}}const Dae=pB(oAe),AB={token:Tw,override:{override:Tw},hashed:!0},Aae=Q.createContext(AB);function __(e){return e>=0&&e<=255}function rS(e,t){const{r,g:n,b:i,a:o}=new cn(e).toRgb();if(o<1)return e;const{r:s,g:a,b:l}=new cn(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((r-s*(1-c))/c),d=Math.round((n-a*(1-c))/c),h=Math.round((i-l*(1-c))/c);if(__(u)&&__(d)&&__(h))return new cn({r:u,g:d,b:h,a:Math.round(c*100)/100}).toRgbString()}return new cn({r,g:n,b:i,a:1}).toRgbString()}function sAe(e){const{override:t,...r}=e,n={...t};Object.keys(Tw).forEach(p=>{delete n[p]});const i={...r,...n},o=480,s=576,a=768,l=992,c=1200,u=1600,d=1920;return i.motion===!1&&(i.motionDurationFast="0s",i.motionDurationMid="0s",i.motionDurationSlow="0s"),{...i,colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:rS(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:rS(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:rS(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:rS(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.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:o,screenXSMin:o,screenXSMax:s-1,screenSM:s,screenSMMin:s,screenSMMax:a-1,screenMD:a,screenMDMin:a,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,screenXXLMax:d-1,screenXXXL:d,screenXXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` 0 1px 2px -2px ${new cn("rgba(0, 0, 0, 0.16)").toRgbString()}, 0 3px 6px 0 ${new cn("rgba(0, 0, 0, 0.12)").toRgbString()}, 0 5px 12px 4px ${new cn("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)",...n}}const Fae={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},aAe={motionBase:!0,motionUnit:!0},lAe={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},Lae=(e,t,r)=>{const n=r.getDerivativeToken(e),{override:i,...o}=t;let s={...n,override:i};return s=sAe(s),o&&Object.entries(o).forEach(([a,l])=>{const{theme:c,...u}=l;let d=u;c&&(d=Lae({...s,...u},{override:u},c)),s[a]=d}),s};function fs(){const{token:e,hashed:t,theme:r,override:n,cssVar:i,zeroRuntime:o}=Q.useContext(Aae),{csp:s}=Q.useContext(ir),a={prefix:(i==null?void 0:i.prefix)??"ant",key:(i==null?void 0:i.key)??"css-var-root"},l=`${UDe}-${t||""}`,c=r||Dae,[u,d,h]=tDe(c,[Tw,e],{salt:l,override:n,getComputedToken:Lae,cssVar:{...a,unitless:Fae,ignore:aAe,preserve:lAe},nonce:s==null?void 0:s.nonce});return[c,h,t?d:"",u,a,!!o]}const Ps={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},on=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),Dx=()=>({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"}}),fu=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),cAe=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"}}}),uAe=(e,t,r,n)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,o=r?`.${r}`:i,s={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let a={};return n!==!1&&(a={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:{...a,...s,[i]:s}}},gc=(e,t)=>({outline:`${ae(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:["outline-offset","outline"].map(r=>`${r} 0s`).join(", ")}),wl=(e,t)=>({"&:focus-visible":gc(e,t)}),_ae=e=>({[`.${e}`]:{...Dx(),[`.${e} .${e}-icon`]:{display:"block"}}}),_4=e=>({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none",...wl(e),"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:zr,genComponentStyleHook:dAe,genSubStyleComponent:Ax}=HDe({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=v.useContext(ir);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,r,n,i,o]=fs();return{theme:e,realToken:t,hashId:r,token:n,cssVar:i,zeroRuntime:o}},useCSP:()=>{const{csp:e}=v.useContext(ir);return e??{}},getResetStyles:(e,t)=>{const r=cAe(e);return[r,{"&":r},_ae((t==null?void 0:t.prefix.iconPrefixCls)??kD)]},getCommonStyle:uAe,getCompUnitless:()=>Fae}),Jn=(e,t)=>{const r=`--${e.replace(/\./g,"")}-${t}-`;return[o=>`${r}${o}`,(o,s)=>s?`var(${r}${o}, ${s})`:`var(${r}${o})`]};function VD(e,t){return Ad.reduce((r,n)=>{const i=e[`${n}1`],o=e[`${n}3`],s=e[`${n}6`],a=e[`${n}7`];return{...r,...t(n,{lightColor:i,lightBorderColor:o,darkColor:s,textColor:a})}},{})}const hAe=(e,t)=>(fs(),yB({hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>_ae(e)));var pAe={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"};const k4=v.createContext({});function kae(e){var t;return(t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e)}function fAe(e){return kae(e)instanceof ShadowRoot}function lM(e){return fAe(e)?kae(e):null}function gAe(e){return e.replace(/-(.)/g,(t,r)=>r.toUpperCase())}function mAe(e,t){Vn(e,`[@ant-design/icons] ${t}`)}function rK(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function nK(e={}){return Object.keys(e).reduce((t,r)=>{const n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[gAe(r)]=n}return t},{})}function FB(e,t,r){return r?Q.createElement(e.tag,{key:t,...nK(e.attrs),...r},(e.children||[]).map((n,i)=>FB(n,`${t}-${e.tag}-${i}`))):Q.createElement(e.tag,{key:t,...nK(e.attrs)},(e.children||[]).map((n,i)=>FB(n,`${t}-${e.tag}-${i}`)))}function Oae(e){return L4(e)[0]}function Nae(e){return e?Array.isArray(e)?e:[e]:[]}const vAe=` .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; vertical-align: inherit; } .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); } } `,yAe=e=>{const{csp:t,prefixCls:r,layer:n}=v.useContext(k4);let i=vAe;r&&(i=i.replace(/anticon/g,r)),n&&(i=`@layer ${n} { ${i} }`),v.useEffect(()=>{const o=e.current,s=lM(o);hp(i,"@ant-design-icons",{prepend:!n,csp:t,attachTo:s})},[])},IS={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function CAe({primaryColor:e,secondaryColor:t}){IS.primaryColor=e,IS.secondaryColor=t||Oae(e),IS.calculated=!!t}function bAe(){return{...IS}}const DC=e=>{const{icon:t,className:r,onClick:n,style:i,primaryColor:o,secondaryColor:s,...a}=e,l=v.useRef(null);let c=IS;if(o&&(c={primaryColor:o,secondaryColor:s||Oae(o)}),yAe(l),mAe(rK(t),`icon should be icon definiton, but got ${t}`),!rK(t))return null;let u=t;return u&&typeof u.icon=="function"&&(u={...u,icon:u.icon(c.primaryColor,c.secondaryColor)}),FB(u.icon,`svg-${u.name}`,{className:r,onClick:n,style:i,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...a,ref:l})};DC.displayName="IconReact";DC.getTwoToneColors=bAe;DC.setTwoToneColors=CAe;function Bae(e){const[t,r]=Nae(e);return DC.setTwoToneColors({primaryColor:t,secondaryColor:r})}function SAe(){const e=DC.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}function LB(){return LB=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{className:r,icon:n,spin:i,rotate:o,tabIndex:s,onClick:a,twoToneColor:l,...c}=e,{prefixCls:u="anticon",rootClassName:d}=v.useContext(k4),h=Z(d,u,{[`${u}-${n.name}`]:!!n.name,[`${u}-spin`]:!!i||n.name==="loading"},r);let p=s;p===void 0&&a&&(p=-1);const f=o?{msTransform:`rotate(${o}deg)`,transform:`rotate(${o}deg)`}:void 0,[g,m]=Nae(l);return v.createElement("span",LB({role:"img","aria-label":n.name},c,{ref:t,tabIndex:p,onClick:a,className:h}),v.createElement(DC,{icon:n,primaryColor:g,secondaryColor:m,style:f}))});mr.getTwoToneColor=SAe;mr.setTwoToneColor=Bae;function _B(){return _B=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,_B({},e,{ref:t,icon:pAe})),zD=v.forwardRef(wAe);var xAe={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"};function kB(){return kB=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,kB({},e,{ref:t,icon:xAe})),AC=v.forwardRef(EAe);var TAe={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"};function OB(){return OB=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,OB({},e,{ref:t,icon:TAe})),Xd=v.forwardRef(RAe);var PAe={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"};function NB(){return NB=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,NB({},e,{ref:t,icon:PAe})),Fx=v.forwardRef(MAe);var IAe={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"};function BB(){return BB=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,BB({},e,{ref:t,icon:IAe})),$ae=v.forwardRef(DAe),Gae=v.createContext({}),AAe=e=>{const{children:t,...r}=e,n=v.useMemo(()=>({motion:r.motion}),[r.motion]);return v.createElement(Gae.Provider,{value:n},t)};function Vae(e){const[,t]=v.useReducer(o=>o+1,0),r=v.useRef(e),n=Sr(()=>r.current),i=Sr(o=>{r.current=typeof o=="function"?o(r.current):o,t()});return[n,i]}const Kc="none",YE="appear",ZE="enter",QE="leave",iK="none",Ql="prepare",sg="start",ag="active",O4="end",zae="prepared";function oK(e,t){const r={};return r[e.toLowerCase()]=t.toLowerCase(),r[`Webkit${e}`]=`webkit${t}`,r[`Moz${e}`]=`moz${t}`,r[`ms${e}`]=`MS${t}`,r[`O${e}`]=`o${t.toLowerCase()}`,r}function FAe(e,t){const r={animationend:oK("Animation","AnimationEnd"),transitionend:oK("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}const LAe=FAe(To(),typeof window<"u"?window:{});let Hae={};To()&&({style:Hae}=document.createElement("div"));const JE={};function Wae(e){if(JE[e])return JE[e];const t=LAe[e];if(t){const r=Object.keys(t),n=r.length;for(let i=0;in[1].toUpperCase());return e[r]}return`${e}-${t}`}const kAe=(e=>{const t=v.useRef();function r(i){i&&(i.removeEventListener(aK,e),i.removeEventListener(sK,e))}function n(i){t.current&&t.current!==i&&r(t.current),i&&i!==t.current&&(i.addEventListener(aK,e),i.addEventListener(sK,e),t.current=i)}return v.useEffect(()=>()=>{r(t.current),t.current=null},[]),[n,r]}),Kae=To()?v.useLayoutEffect:v.useEffect,OAe=(()=>{const e=v.useRef(null);function t(){Or.cancel(e.current)}function r(n,i=2){t();const o=Or(()=>{i<=1?n({isCanceled:()=>o!==e.current}):r(n,i-1)});e.current=o}return v.useEffect(()=>()=>{t()},[]),[r,t]}),NAe=[Ql,sg,ag,O4],BAe=[Ql,zae],qae=!1,$Ae=!0;function Xae(e){return e===ag||e===O4}const GAe=((e,t,r)=>{const[n,i]=yw(iK),[o,s]=OAe();function a(){i(Ql,!0)}const l=t?BAe:NAe;return Kae(()=>{if(n!==iK&&n!==O4){const c=l.indexOf(n),u=l[c+1],d=r(n);d===qae?i(u,!0):u&&o(h=>{function p(){h.isCanceled()||i(u,!0)}d===!0?p():Promise.resolve(d).then(p)})}},[e,n]),v.useEffect(()=>()=>{s()},[]),[a,n]});function VAe(e,t,r,{motionEnter:n=!0,motionAppear:i=!0,motionLeave:o=!0,motionDeadline:s,motionLeaveImmediately:a,onAppearPrepare:l,onEnterPrepare:c,onLeavePrepare:u,onAppearStart:d,onEnterStart:h,onLeaveStart:p,onAppearActive:f,onEnterActive:g,onLeaveActive:m,onAppearEnd:y,onEnterEnd:b,onLeaveEnd:S,onVisibleChanged:x}){const[E,R]=v.useState(),[T,M]=Vae(Kc),[D,A]=v.useState([null,null]),I=T(),L=v.useRef(!1),F=v.useRef(null);function O(){return r()}const k=v.useRef(!1);function B(){M(Kc),A([null,null])}const H=Sr(ee=>{const ne=T();if(ne===Kc)return;const le=O();if(ee&&!ee.deadline&&ee.target!==le)return;const he=k.current;let re;ne===YE&&he?re=y==null?void 0:y(le,ee):ne===ZE&&he?re=b==null?void 0:b(le,ee):ne===QE&&he&&(re=S==null?void 0:S(le,ee)),he&&re!==!1&&B()}),[N]=kAe(H),z=ee=>{switch(ee){case YE:return{[Ql]:l,[sg]:d,[ag]:f};case ZE:return{[Ql]:c,[sg]:h,[ag]:g};case QE:return{[Ql]:u,[sg]:p,[ag]:m};default:return{}}},W=v.useMemo(()=>z(I),[I]),[V,$]=GAe(I,!e,ee=>{var ne;if(ee===Ql){const le=W[Ql];return le?le(O()):qae}return ee in W&&A([((ne=W[ee])==null?void 0:ne.call(W,O(),null))||null,ee]),ee===ag&&I!==Kc&&(N(O()),s>0&&(clearTimeout(F.current),F.current=setTimeout(()=>{H({deadline:!0})},s))),ee===zae&&B(),$Ae}),K=Xae($);k.current=K;const q=v.useRef(null);Kae(()=>{if(L.current&&q.current===t)return;R(t);const ee=L.current;L.current=!0;let ne;!ee&&t&&i&&(ne=YE),ee&&t&&n&&(ne=ZE),(ee&&!t&&o||!ee&&a&&!t&&o)&&(ne=QE);const le=z(ne);ne&&(e||le[Ql])?(M(ne),V()):M(Kc),q.current=t},[t]),v.useEffect(()=>{(I===YE&&!i||I===ZE&&!n||I===QE&&!o)&&M(Kc)},[i,n,o]),v.useEffect(()=>()=>{L.current=!1,clearTimeout(F.current)},[]);const X=v.useRef(!1);v.useEffect(()=>{E&&(X.current=!0),E!==void 0&&I===Kc&&((X.current||E)&&(x==null||x(E)),X.current=!0)},[E,I]);let Y=D[0];W[Ql]&&$===sg&&(Y={transition:"none",...Y});const oe=D[1];return[T,$,Y,E??t,!L.current&&I===Kc&&e&&i?"NONE":$===sg||$===ag?oe===$:!0]}function zAe(e){let t=e;typeof e=="object"&&({transitionSupport:t}=e);function r(i,o){return!!(i.motionName&&t&&o!==!1)}const n=v.forwardRef((i,o)=>{const{visible:s=!0,removeOnLeave:a=!0,forceRender:l,children:c,motionName:u,leavedClassName:d,eventProps:h}=i,{motion:p}=v.useContext(Gae),f=r(i,p),g=v.useRef();function m(){return pc(g.current)}const[y,b,S,x,E]=VAe(f,s,m,i),R=y(),T=v.useRef(x);x&&(T.current=!0);const M=v.useMemo(()=>{const A={};return Object.defineProperties(A,{nativeElement:{enumerable:!0,get:m},inMotion:{enumerable:!0,get:()=>()=>y()!==Kc},enableMotion:{enumerable:!0,get:()=>()=>f}}),A},[]);v.useImperativeHandle(o,()=>M,[]);const D=v.useRef(0);return E&&(D.current+=1),v.useMemo(()=>{if(E==="NONE")return null;let A;const I={...h,visible:s};if(!c)A=null;else if(R===Kc)x?A=c({...I},g):!a&&T.current&&d?A=c({...I,className:d},g):l||!a&&!d?A=c({...I,style:{display:"none"}},g):A=null;else{let L;b===Ql?L="prepare":Xae(b)?L="active":b===sg&&(L="start");const F=lK(u,`${R}-${L}`);A=c({...I,className:Z(lK(u,R),{[F]:F&&L,[u]:typeof u=="string"}),style:S},g)}return v.isValidElement(A)&&pu(A)&&(jd(A)||(A=v.cloneElement(A,{ref:g}))),A},[D.current])});return n.displayName="CSSMotion",n}const Mu=zAe(_Ae),$B="add",GB="keep",VB="remove",k_="removed";function HAe(e){let t;return e&&typeof e=="object"&&"key"in e?t=e:t={key:e},{...t,key:String(t.key)}}function zB(e=[]){return e.map(HAe)}function WAe(e=[],t=[]){let r=[],n=0;const i=t.length,o=zB(e),s=zB(t);o.forEach(c=>{let u=!1;for(let d=n;d({...p,status:$B}))),n=d),r.push({...h,status:GB}),n+=1,u=!0;break}}u||r.push({...c,status:VB})}),n({...c,status:$B}))));const a={};return r.forEach(({key:c})=>{a[c]=(a[c]||0)+1}),Object.keys(a).filter(c=>a[c]>1).forEach(c=>{r=r.filter(({key:u,status:d})=>u!==c||d!==VB),r.forEach(u=>{u.key===c&&(u.status=GB)})}),r}function HB(){return HB=Object.assign?Object.assign.bind():function(e){for(var t=1;t{this.setState(s=>({keyEntities:s.keyEntities.map(l=>l.key!==o?l:{...l,status:k_})}),()=>{const{keyEntities:s}=this.state;s.filter(({status:l})=>l!==k_).length===0&&this.props.onAllRemoved&&this.props.onAllRemoved()})})}static getDerivedStateFromProps({keys:o},{keyEntities:s}){const a=zB(o);return{keyEntities:WAe(s,a).filter(c=>{const u=s.find(({key:d})=>c.key===d);return!(u&&u.status===k_&&c.status===VB)})}}render(){const{keyEntities:o}=this.state,{component:s,children:a,onVisibleChanged:l,onAllRemoved:c,...u}=this.props,d=s||v.Fragment,h={};return UAe.forEach(p=>{h[p]=u[p],delete u[p]}),delete u.keys,v.createElement(d,u,o.map(({status:p,...f},g)=>{const m=p===$B||p===GB;return v.createElement(t,HB({},h,{key:f.key,visible:m,eventProps:f,onVisibleChanged:y=>{l==null||l(y,{key:f.key}),y||this.removeKey(f.key)}}),(y,b)=>a({...y,index:g},b))}))}}return Ie(r,"defaultProps",{component:"div"}),r}const KAe=jAe(),qAe=`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`,XAe=`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`,YAe=`${qAe} ${XAe}`.split(/[\s\n]+/),ZAe="aria-",QAe="data-";function cK(e,t){return e.indexOf(t)===0}function ei(e,t=!1){let r;t===!1?r={aria:!0,data:!0,attr:!0}:t===!0?r={aria:!0}:r={...t};const n={};return Object.keys(e).forEach(i=>{(r.aria&&(i==="role"||cK(i,ZAe))||r.data&&cK(i,QAe)||r.attr&&YAe.includes(i))&&(n[i]=e[i])}),n}const Yae={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"};var JAe={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};function Rw(e){"@babel/helpers - typeof";return Rw=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},Rw(e)}function uK(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function dK(e){for(var t=1;tpP.reduce((e,t)=>({...e,...t}),xl.Modal);function iFe(e){if(e){const t={...e};return pP.push(t),hP=pK(),()=>{pP=pP.filter(r=>r!==t),hP=pK()}}hP={...xl.Modal}}function Qae(){return hP}const N4=v.createContext(void 0),Dl=(e,t)=>{const r=v.useContext(N4),n=v.useMemo(()=>{const o=t||xl[e],s=(r==null?void 0:r[e])??{};return{...typeof o=="function"?o():o,...s||{}}},[e,t,r]),i=v.useMemo(()=>{const o=r==null?void 0:r.locale;return r!=null&&r.exist&&!o?xl.locale:o},[r]);return[n,i]},oFe="internalMark",sFe=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;v.useEffect(()=>iFe(t==null?void 0:t.Modal),[t]);const i=v.useMemo(()=>({...t,exist:!0}),[t]);return v.createElement(N4.Provider,{value:i},r)};function Pw(...e){const t={};return e.forEach(r=>{r&&Object.keys(r).forEach(n=>{r[n]!==void 0&&(t[n]=r[n])})}),t}const Tn=e=>e!=null,Vy=e=>{if(!e)return;const{closable:t,closeIcon:r}=e;return{closable:t,closeIcon:r}},Jae={},fK=(e,t)=>{if(!e&&(e===!1||t===!1||t===null))return!1;if(e===void 0&&t===void 0)return null;let r={closeIcon:typeof t!="boolean"&&t!==null?t:void 0};return e&&typeof e=="object"&&(r={...r,...e}),r},aFe=(e,t,r)=>e===!1?!1:e?Pw(r,t,e):t===!1?!1:t?Pw(r,t):r.closable?r:!1,lFe=(e,t,r)=>{const{closeIconRender:n}=t,{closeIcon:i,...o}=e;let s=i;const a=ei(o,!0);return Tn(s)&&(n&&(s=n(s)),s=Q.isValidElement(s)?Q.cloneElement(s,{"aria-label":r,...s.props,...a}):Q.createElement("span",{"aria-label":r,...a},s)),[s,a]},cFe=(e,t,r=Jae,n="Close")=>{const i=fK(e==null?void 0:e.closable,e==null?void 0:e.closeIcon),o=fK(t==null?void 0:t.closable,t==null?void 0:t.closeIcon),s={closeIcon:Q.createElement(Xd,null),...r},a=aFe(i,o,s),l=typeof a!="boolean"?!!(a!=null&&a.disabled):!1;if(a===!1)return[!1,null,l,{}];const[c,u]=lFe(a,s,n);return[!0,c,l,u]},B4=(e,t,r=Jae)=>{const[n]=Dl("global",xl.global);return Q.useMemo(()=>cFe(e,t,{closeIcon:Q.createElement(Xd,null),...r},n.close),[e,t,r,n.close])},$4=()=>Q.useReducer(e=>e+1,0),WB=(e,t)=>{let r={};return e&&typeof e=="object"&&(r=e),typeof e=="boolean"&&(r={enabled:e}),r.closable===void 0&&t!==void 0&&(r.closable=t),r},ele=(e,t,r,n)=>v.useMemo(()=>{const i=WB(e,n),o=WB(t),s={blur:!1,...o,...i,closable:i.closable??n??o.closable??!0},a=s.blur?`${r}-mask-blur`:void 0;return[s.enabled!==!1,{mask:a},!!s.closable]},[e,t,r,n]),tle=(e,...t)=>{const r=e||{};return t.filter(Boolean).reduce((n,i)=>(Object.keys(i||{}).forEach(o=>{const s=r[o],a=i[o];if(s&&typeof s=="object")if(a&&typeof a=="object")n[o]=tle(s,n[o],a);else{const{_default:l}=s;l&&(n[o]=n[o]||{},n[o][l]=Z(n[o][l],a))}else n[o]=Z(n[o],a)}),n),{})},uFe=(e,...t)=>v.useMemo(()=>tle.apply(void 0,[e].concat(t)),[e].concat(t)),dFe=(...e)=>e.filter(Boolean).reduce((t,r={})=>(Object.keys(r).forEach(n=>{t[n]={...t[n],...r[n]}}),t),{}),hFe=(...e)=>v.useMemo(()=>dFe.apply(void 0,e),[].concat(e)),UB=(e,t)=>{const r={...e};return Object.keys(t).forEach(n=>{if(n!=="_default"){const i=t[n],o=r[n]||{};r[n]=i?UB(o,i):o}}),r},gK=(e,t)=>typeof e=="function"?e(t):e,Gr=(e,t,r,n)=>{const i=e.map(l=>l?gK(l,r):void 0),o=t.map(l=>l?gK(l,r):void 0),s=uFe.apply(void 0,[n].concat(Pr(i))),a=hFe.apply(void 0,Pr(o));return v.useMemo(()=>n?[UB(s,n),UB(a,n)]:[s,a],[s,a,n])},pFe=e=>{const[t,r]=v.useState(null);return[v.useCallback((i,o,s)=>{const a=t??i,l=Math.min(a||0,i),c=Math.max(a||0,i),u=o.slice(l,c+1).map(e),d=u.some(p=>!s.has(p)),h=[];return u.forEach(p=>{d?(s.has(p)||h.push(p),s.add(p)):(s.delete(p),h.push(p))}),r(d?c:null),h},[t]),r]},mK=e=>e==="horizontal"||e==="vertical",Lx=(e,t,r)=>v.useMemo(()=>{const n=mK(e);let i;return n?i=e:typeof t=="boolean"?i=t?"vertical":"horizontal":i=mK(r)?r:"horizontal",[i,i==="vertical"]},[r,e,t]),fFe=()=>{const[e,t]=v.useState([]),r=v.useCallback(n=>(t(i=>[].concat(Pr(i),[n])),()=>{t(i=>i.filter(o=>o!==n))}),[]);return[e,r]},gFe=(e,t)=>(e._antProxy=e._antProxy||{},Object.keys(t).forEach(r=>{if(!(r in e._antProxy)){const n=e[r];e._antProxy[r]=n,e[r]=t[r]}}),e),mFe=(e,t)=>v.useImperativeHandle(e,()=>{const r=t(),{nativeElement:n}=r;return typeof Proxy<"u"?new Proxy(n,{get(i,o){return r[o]?r[o]:Reflect.get(i,o)}}):gFe(n,r)}),vFe=e=>{const t=v.useRef(e),[,r]=$4();return[()=>t.current,n=>{t.current=n,r()}]},_x=Q.createContext(void 0),kh=100,yFe=10,CFe=kh*yFe,rle={Modal:kh,Drawer:kh,Popover:kh,Popconfirm:kh,Tooltip:kh,Tour:kh,FloatButton:kh},bFe={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},SFe=e=>e in rle,Hp=(e,t)=>{const[,r]=fs(),n=Q.useContext(_x),i=SFe(e);let o;if(t!==void 0)o=[t,t];else{let s=n??0;i?s+=(n?0:r.zIndexPopupBase)+rle[e]:s+=bFe[e],o=[n===void 0?t:s,s]}return o},eT=(e,t,r,n,i)=>({background:e,border:`${ae(n.lineWidth)} ${n.lineType} ${t}`,[`${i}-icon`]:{color:r}}),wFe=e=>{const{componentCls:t,motionDurationSlow:r,marginXS:n,marginSM:i,fontSize:o,fontSizeLG:s,lineHeight:a,borderRadiusLG:l,motionEaseInOutCirc:c,withDescriptionIconSize:u,colorText:d,colorTextHeading:h,withDescriptionPadding:p,defaultPadding:f}=e;return{[t]:{...on(e),position:"relative",display:"flex",alignItems:"center",padding:f,wordWrap:"break-word",borderRadius:l,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-section`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:n,lineHeight:0},"&-description":{display:"none",fontSize:o,lineHeight:a},"&-title":{color:h},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:["max-height","opacity","padding-top","padding-bottom","margin-bottom"].map(g=>`${g} ${r} ${c}`).join(", ")},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}},[`${t}-with-description`]:{alignItems:"flex-start",padding:p,[`${t}-icon`]:{marginInlineEnd:i,fontSize:u,lineHeight:0},[`${t}-title`]:{display:"block",marginBottom:n,color:h,fontSize:s},[`${t}-description`]:{display:"block",color:d}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},xFe=e=>{const{componentCls:t,colorSuccess:r,colorSuccessBorder:n,colorSuccessBg:i,colorWarning:o,colorWarningBorder:s,colorWarningBg:a,colorError:l,colorErrorBorder:c,colorErrorBg:u,colorInfo:d,colorInfoBorder:h,colorInfoBg:p}=e;return{[t]:{"&-success":eT(i,n,r,e,t),"&-info":eT(p,h,d,e,t),"&-warning":eT(a,s,o,e,t),"&-error":{...eT(u,c,l,e,t),[`${t}-description > pre`]:{margin:0,padding:0}}}}},EFe=e=>{const{componentCls:t,iconCls:r,motionDurationMid:n,marginXS:i,fontSizeIcon:o,colorIcon:s,colorIconHover:a}=e;return{[t]:{"&-actions":{marginInlineStart:i},[`${t}-close-icon`]:{marginInlineStart:i,padding:0,overflow:"hidden",fontSize:o,lineHeight:ae(o),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${r}-close`]:{color:s,transition:`color ${n}`,"&:hover":{color:a}}},"&-close-text":{color:s,transition:`color ${n}`,"&:hover":{color:a}}}}},TFe=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),RFe=zr("Alert",e=>[wFe(e),xFe(e),EFe(e)],TFe),PFe=e=>{const{icon:t,type:r,className:n,style:i,successIcon:o,infoIcon:s,warningIcon:a,errorIcon:l}=e,c={success:o??v.createElement(zD,null),info:s??v.createElement($ae,null),error:l??v.createElement(AC,null),warning:a??v.createElement(Fx,null)};return v.createElement("span",{className:n,style:i},t??c[r])},MFe=e=>{const{isClosable:t,prefixCls:r,closeIcon:n,handleClose:i,ariaProps:o,className:s,style:a}=e,l=n===!0||n===void 0?v.createElement(Xd,null):n;return t?v.createElement("button",{type:"button",onClick:i,className:Z(`${r}-close-icon`,s),tabIndex:0,style:a,...o},l):null},nle=v.forwardRef((e,t)=>{const{description:r,prefixCls:n,message:i,title:o,banner:s,className:a,rootClassName:l,style:c,onMouseEnter:u,onMouseLeave:d,onClick:h,afterClose:p,showIcon:f,closable:g,closeText:m,closeIcon:y,action:b,id:S,styles:x,classNames:E,...R}=e,T=o??i,[M,D]=v.useState(!1),A=v.useRef(null);v.useImperativeHandle(t,()=>({nativeElement:A.current}));const{getPrefixCls:I,direction:L,closable:F,closeIcon:O,className:k,style:B,classNames:H,styles:N,successIcon:z,infoIcon:W,warningIcon:V,errorIcon:$}=Fr("alert"),K=I("alert",n),[q,X]=RFe(K),{onClose:Y,afterClose:oe}=g&&typeof g=="object"?g:{},ee=me=>{var Oe;D(!0),(Oe=Y??e.onClose)==null||Oe(me)},ne=v.useMemo(()=>e.type!==void 0?e.type:s?"warning":"info",[e.type,s]),le=v.useMemo(()=>typeof g=="object"&&g.closeIcon||m?!0:typeof g=="boolean"?g:y!==!1&&Tn(y)?!0:!!F,[m,y,g,F]),he=s&&f===void 0?!0:f,re={...e,prefixCls:K,type:ne,showIcon:he,closable:le},[ie,de]=Gr([H,E],[N,x],{props:re}),J=Z(K,`${K}-${ne}`,{[`${K}-with-description`]:!!r,[`${K}-no-icon`]:!he,[`${K}-banner`]:!!s,[`${K}-rtl`]:L==="rtl"},k,a,l,ie.root,X,q),ue=ei(R,{aria:!0,data:!0}),ve=v.useMemo(()=>typeof g=="object"&&g.closeIcon?g.closeIcon:m||(y!==void 0?y:typeof F=="object"&&F.closeIcon?F.closeIcon:O),[y,g,F,m,O]),pe=v.useMemo(()=>{const me=g??F;return typeof me=="object"?ei(me,{data:!0,aria:!0}):{}},[g,F]);return v.createElement(Mu,{visible:!M,motionName:`${K}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:me=>({maxHeight:me.offsetHeight}),onLeaveEnd:oe??p},({className:me,style:Oe},De)=>v.createElement("div",{id:S,ref:Wo(A,De),"data-show":!M,className:Z(J,me),style:{...de.root,...B,...c,...Oe},onMouseEnter:u,onMouseLeave:d,onClick:h,role:"alert",...ue},he?v.createElement(PFe,{className:Z(`${K}-icon`,ie.icon),style:de.icon,description:r,icon:e.icon,prefixCls:K,type:ne,successIcon:z,infoIcon:W,warningIcon:V,errorIcon:$}):null,v.createElement("div",{className:Z(`${K}-section`,ie.section),style:de.section},T?v.createElement("div",{className:Z(`${K}-title`,ie.title),style:de.title},T):null,r?v.createElement("div",{className:Z(`${K}-description`,ie.description),style:de.description},r):null),b?v.createElement("div",{className:Z(`${K}-actions`,ie.actions),style:de.actions},b):null,v.createElement(MFe,{className:ie.close,style:de.close,isClosable:le,prefixCls:K,closeIcon:ve,handleClose:ee,ariaProps:pe})))});function IFe(e,t,r){return t=tm(t),xae(e,GD()?Reflect.construct(t,r||[],tm(e).constructor):t.apply(e,r))}let DFe=(function(e){function t(){var r;return Kd(this,t),r=IFe(this,t,arguments),r.state={error:void 0,info:{}},r}return F4(t,e),qd(t,[{key:"componentDidCatch",value:function(n,i){this.setState({error:n,info:i})}},{key:"render",value:function(){const{message:n,title:i,description:o,id:s,children:a}=this.props,{error:l,info:c}=this.state,u=i??n,d=(c==null?void 0:c.componentStack)||null,h=Tn(u)?u:l==null?void 0:l.toString(),p=Tn(o)?o:d;return l?v.createElement(nle,{id:s,type:"error",title:h,description:v.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},p)}):a}}])})(v.PureComponent);const AFe=nle;AFe.ErrorBoundary=DFe;function jB(e){return Tn(e)&&e===e.window}const ile=e=>{var r;if(typeof window>"u")return 0;let t=0;return jB(e)?t=e.pageYOffset:e instanceof Document?t=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(t=e.scrollTop),e&&!jB(e)&&typeof t!="number"&&(t=(r=(e.ownerDocument??e).documentElement)==null?void 0:r.scrollTop),t};function FFe(e,t,r,n){const i=r-t;return e/=n/2,e<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}function ole(e,t={}){const{getContainer:r=()=>window,callback:n,duration:i=450}=t,o=r(),s=ile(o),a=Date.now();let l;const c=()=>{const d=Date.now()-a,h=FFe(d>i?i:d,s,e,i);jB(o)?o.scrollTo(window.pageXOffset,h):o instanceof Document||o.constructor.name==="HTMLDocument"?o.documentElement.scrollTop=h:o.scrollTop=h,d{Or.cancel(l)}}const ho=e=>`${e}-css-var`,LFe=v.createContext(void 0),sle=v.createContext(null);let _Fe=!1;function kFe(e){return _Fe}const vK=[];function OFe(e,t){const[r]=v.useState(()=>To()?document.createElement("div"):null),n=v.useRef(!1),i=v.useContext(sle),[o,s]=v.useState(vK),a=i||(n.current?void 0:u=>{s(d=>[u,...d])});function l(){r.parentElement||document.body.appendChild(r),n.current=!0}function c(){var u;(u=r.parentElement)==null||u.removeChild(r),n.current=!1}return jr(()=>(e?i?i(l):l():c(),c),[e]),jr(()=>{o.length&&(o.forEach(u=>u()),s(vK))},[o]),[r,a]}let O_;function ale(e){const t=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,r=document.createElement("div");r.id=t;const n=r.style;n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll";let i,o;if(e){const l=getComputedStyle(e);n.scrollbarColor=l.scrollbarColor,n.scrollbarWidth=l.scrollbarWidth;const c=getComputedStyle(e,"::-webkit-scrollbar"),u=parseInt(c.width,10),d=parseInt(c.height,10);try{const h=u?`width: ${c.width};`:"",p=d?`height: ${c.height};`:"";hp(` #${t}::-webkit-scrollbar { ${h} ${p} }`,t)}catch(h){console.error(h),i=u,o=d}}document.body.appendChild(r);const s=e&&i&&!isNaN(i)?i:r.offsetWidth-r.clientWidth,a=e&&o&&!isNaN(o)?o:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),Sw(t),{width:s,height:a}}function yK(e){return typeof document>"u"?0:(O_===void 0&&(O_=ale()),O_.width)}function KB(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:ale(e)}function NFe(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}const BFe=`rc-util-locker-${Date.now()}`;let CK=0;function $Fe(e){const t=!!e,[r]=v.useState(()=>(CK+=1,`${BFe}_${CK}`));jr(()=>{if(t){const n=KB(document.body).width,i=NFe();hp(` html body { overflow-y: hidden; ${i?`width: calc(100% - ${n}px);`:""} }`,r)}else Sw(r);return()=>{Sw(r)}},[t,r])}function GFe(){return{...ose}.useId}let bK=0;function lle(e,t){const n=String(t).replace(/[^a-zA-Z0-9_.:-]/g,"-");return`${e}-${n}`}const SK=GFe(),xc=SK?(function(t){const r=SK();return t||r}):(function(t){const[r,n]=v.useState("ssr-id");return v.useEffect(()=>{const i=bK;bK+=1,n(`rc_unique_${i}`)},[]),t||r});let vg=[];const VFe=200;let cle=0;const ule=e=>{if(e.key==="Escape"&&!e.isComposing){if(Date.now()-cle=0;n-=1)vg[n].onEsc({top:n===r-1,event:e})}},dle=()=>{cle=Date.now()};function zFe(){window.addEventListener("keydown",ule),window.addEventListener("compositionend",dle)}function HFe(){vg.length===0&&(window.removeEventListener("keydown",ule),window.removeEventListener("compositionend",dle))}function WFe(e,t){const r=xc(),n=Sr(t),i=()=>{vg.find(s=>s.id===r)||vg.push({id:r,onEsc:n})},o=()=>{vg=vg.filter(s=>s.id!==r)};v.useMemo(()=>{e?i():e||o()},[e]),v.useEffect(()=>{if(e)return i(),zFe(),()=>{o(),HFe()}},[e])}const wK=e=>e===!1?!1:!To()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e,kx=v.forwardRef((e,t)=>{const{open:r,autoLock:n,getContainer:i,debug:o,autoDestroy:s=!0,children:a,onEsc:l}=e,[c,u]=v.useState(r),d=c||r;v.useEffect(()=>{(s||r)&&u(r)},[r,s]);const[h,p]=v.useState(()=>wK(i));v.useEffect(()=>{const E=wK(i);p(()=>E??null)});const[f,g]=OFe(d&&!h),m=h??f;$Fe(n&&r&&To()&&(m===f||m===document.body)),WFe(r,l);let y=null;a&&pu(a)&&t&&(y=jd(a));const b=Pu(y,t);if(!d||!To()||h===void 0)return null;const S=m===!1||kFe();let x=a;return t&&(x=v.cloneElement(a,{ref:b})),v.createElement(sle.Provider,{value:g},S?x:$a.createPortal(x,m))}),UFe=v.createContext({}),rd="none",tT="appear",rT="enter",nT="leave",xK="none",Jl="prepare",ny="start",iy="active",G4="end",hle="prepared";function EK(e,t){const r={};return r[e.toLowerCase()]=t.toLowerCase(),r[`Webkit${e}`]=`webkit${t}`,r[`Moz${e}`]=`moz${t}`,r[`ms${e}`]=`MS${t}`,r[`O${e}`]=`o${t.toLowerCase()}`,r}function jFe(e,t){const r={animationend:EK("Animation","AnimationEnd"),transitionend:EK("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}const KFe=jFe(To(),typeof window<"u"?window:{});let ple={};To()&&({style:ple}=document.createElement("div"));const iT={};function fle(e){if(iT[e])return iT[e];const t=KFe[e];if(t){const r=Object.keys(t),n=r.length;for(let i=0;in[1].toUpperCase());return e[r]}return`${e}-${t}`}const XFe=(e=>{const t=v.useRef();function r(i){i&&(i.removeEventListener(RK,e),i.removeEventListener(TK,e))}function n(i){t.current&&t.current!==i&&r(t.current),i&&i!==t.current&&(i.addEventListener(RK,e),i.addEventListener(TK,e),t.current=i)}return v.useEffect(()=>()=>{r(t.current),t.current=null},[]),[n,r]}),vle=To()?v.useLayoutEffect:v.useEffect,YFe=(()=>{const e=v.useRef(null);function t(){Or.cancel(e.current)}function r(n,i=2){t();const o=Or(()=>{i<=1?n({isCanceled:()=>o!==e.current}):r(n,i-1)});e.current=o}return v.useEffect(()=>()=>{t()},[]),[r,t]}),ZFe=[Jl,ny,iy,G4],QFe=[Jl,hle],yle=!1,JFe=!0;function Cle(e){return e===iy||e===G4}const eLe=((e,t,r)=>{const[n,i]=yw(xK),[o,s]=YFe();function a(){i(Jl,!0)}const l=t?QFe:ZFe;return vle(()=>{if(n!==xK&&n!==G4){const c=l.indexOf(n),u=l[c+1],d=r(n);d===yle?i(u,!0):u&&o(h=>{function p(){h.isCanceled()||i(u,!0)}d===!0?p():Promise.resolve(d).then(p)})}},[e,n]),v.useEffect(()=>()=>{s()},[]),[a,n]});function tLe(e,t,r,{motionEnter:n=!0,motionAppear:i=!0,motionLeave:o=!0,motionDeadline:s,motionLeaveImmediately:a,onAppearPrepare:l,onEnterPrepare:c,onLeavePrepare:u,onAppearStart:d,onEnterStart:h,onLeaveStart:p,onAppearActive:f,onEnterActive:g,onLeaveActive:m,onAppearEnd:y,onEnterEnd:b,onLeaveEnd:S,onVisibleChanged:x}){const[E,R]=yw(),[T,M]=Vae(rd),[D,A]=yw(null),I=T(),L=v.useRef(!1),F=v.useRef(null);function O(){return r()}const k=v.useRef(!1);function B(){M(rd),A(null,!0)}const H=Sr(oe=>{const ee=T();if(ee===rd)return;const ne=O();if(oe&&!oe.deadline&&oe.target!==ne)return;const le=k.current;let he;ee===tT&&le?he=y==null?void 0:y(ne,oe):ee===rT&&le?he=b==null?void 0:b(ne,oe):ee===nT&&le&&(he=S==null?void 0:S(ne,oe)),le&&he!==!1&&B()}),[N]=XFe(H),z=oe=>{switch(oe){case tT:return{[Jl]:l,[ny]:d,[iy]:f};case rT:return{[Jl]:c,[ny]:h,[iy]:g};case nT:return{[Jl]:u,[ny]:p,[iy]:m};default:return{}}},W=v.useMemo(()=>z(I),[I]),[V,$]=eLe(I,!e,oe=>{var ee;if(oe===Jl){const ne=W[Jl];return ne?ne(O()):yle}return $ in W&&A(((ee=W[$])==null?void 0:ee.call(W,O(),null))||null),$===iy&&I!==rd&&(N(O()),s>0&&(clearTimeout(F.current),F.current=setTimeout(()=>{H({deadline:!0})},s))),$===hle&&B(),JFe}),K=Cle($);k.current=K;const q=v.useRef(null);vle(()=>{if(L.current&&q.current===t)return;R(t);const oe=L.current;L.current=!0;let ee;!oe&&t&&i&&(ee=tT),oe&&t&&n&&(ee=rT),(oe&&!t&&o||!oe&&a&&!t&&o)&&(ee=nT);const ne=z(ee);ee&&(e||ne[Jl])?(M(ee),V()):M(rd),q.current=t},[t]),v.useEffect(()=>{(I===tT&&!i||I===rT&&!n||I===nT&&!o)&&M(rd)},[i,n,o]),v.useEffect(()=>()=>{L.current=!1,clearTimeout(F.current)},[]);const X=v.useRef(!1);v.useEffect(()=>{E&&(X.current=!0),E!==void 0&&I===rd&&((X.current||E)&&(x==null||x(E)),X.current=!0)},[E,I]);let Y=D;return W[Jl]&&$===ny&&(Y={transition:"none",...Y}),[T,$,Y,E??t]}function rLe(e){let t=e;typeof e=="object"&&({transitionSupport:t}=e);function r(i,o){return!!(i.motionName&&t&&o!==!1)}const n=v.forwardRef((i,o)=>{const{visible:s=!0,removeOnLeave:a=!0,forceRender:l,children:c,motionName:u,leavedClassName:d,eventProps:h}=i,{motion:p}=v.useContext(UFe),f=r(i,p),g=v.useRef();function m(){return pc(g.current)}const[y,b,S,x]=tLe(f,s,m,i),E=y(),R=v.useRef(x);x&&(R.current=!0);const T=v.useMemo(()=>{const A={};return Object.defineProperties(A,{nativeElement:{enumerable:!0,get:m},inMotion:{enumerable:!0,get:()=>()=>y()!==rd},enableMotion:{enumerable:!0,get:()=>()=>f}}),A},[]);v.useImperativeHandle(o,()=>T,[]);let M;const D={...h,visible:s};if(!c)M=null;else if(E===rd)x?M=c({...D},g):!a&&R.current&&d?M=c({...D,className:d},g):l||!a&&!d?M=c({...D,style:{display:"none"}},g):M=null;else{let A;b===Jl?A="prepare":Cle(b)?A="active":b===ny&&(A="start");const I=PK(u,`${E}-${A}`);M=c({...D,className:Z(PK(u,E),{[I]:I&&A,[u]:typeof u=="string"}),style:S},g)}return v.isValidElement(M)&&pu(M)&&(jd(M)||(M=v.cloneElement(M,{ref:g}))),M});return n.displayName="CSSMotion",n}const gu=rLe(qFe);function nLe(e){const{prefixCls:t,align:r,arrow:n,arrowPos:i}=e,{className:o,content:s,style:a}=n||{},{x:l=0,y:c=0}=i,u=v.useRef(null);if(!r||!r.points)return null;const d={position:"absolute"};if(r.autoArrow!==!1){const h=r.points[0],p=r.points[1],f=h[0],g=h[1],m=p[0],y=p[1];f===m||!["t","b"].includes(f)?d.top=c:f==="t"?d.top=0:d.bottom=0,g===y||!["l","r"].includes(g)?d.left=l:g==="l"?d.left=0:d.right=0}return v.createElement("div",{ref:u,className:Z(`${t}-arrow`,o),style:{...d,...a}},s)}function qB(){return qB=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement("div",{style:{zIndex:n},className:Z(`${t}-mask`,s&&`${t}-mobile-mask`,a)})):null}const oLe=v.memo(({children:e})=>e,(e,t)=>t.cache);function ble(e,t,r,n,i,o,s,a){var u;const l="auto",c=e?{}:{left:"-1000vw",top:"-1000vh",right:l,bottom:l};if(!e&&(t||!r)){const{points:d}=n,h=n.dynamicInset||((u=n._experimental)==null?void 0:u.dynamicInset),p=h&&d[0][1]==="r",f=h&&d[0][0]==="b";p?(c.right=i,c.left=l):(c.left=s,c.right=l),f?(c.bottom=o,c.top=l):(c.top=a,c.bottom=l)}return c}function XB(){return XB=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{onEsc:r,popup:n,className:i,prefixCls:o,style:s,target:a,onVisibleChanged:l,open:c,keepDom:u,fresh:d,onClick:h,mask:p,arrow:f,arrowPos:g,align:m,motion:y,maskMotion:b,mobile:S,forceRender:x,getPopupContainer:E,autoDestroy:R,portal:T,children:M,zIndex:D,onMouseEnter:A,onMouseLeave:I,onPointerEnter:L,onPointerDownCapture:F,ready:O,offsetX:k,offsetY:B,offsetR:H,offsetB:N,onAlign:z,onPrepare:W,onResize:V,stretch:$,targetWidth:K,targetHeight:q}=e,X=typeof n=="function"?n():n,Y=c||u,oe=!!S,[ee,ne,le]=v.useMemo(()=>S?[S.mask,S.maskMotion,S.motion]:[p,b,y],[S,p,b,y]),he=(E==null?void 0:E.length)>0,[re,ie]=v.useState(!E||!he);jr(()=>{!re&&he&&a&&ie(!0)},[re,he,a]);const de=Sr((ve,pe)=>{V==null||V(ve,pe),z()}),J=ble(oe,O,c,m,H,N,k,B);if(!re)return null;const ue={};return $&&($.includes("height")&&q?ue.height=q:$.includes("minHeight")&&q&&(ue.minHeight=q),$.includes("width")&&K?ue.width=K:$.includes("minWidth")&&K&&(ue.minWidth=K)),c||(ue.pointerEvents="none"),v.createElement(T,{open:x||Y,getContainer:E&&(()=>E(a)),autoDestroy:R,onEsc:r},v.createElement(iLe,{prefixCls:o,open:c,zIndex:D,mask:ee,motion:ne,mobile:oe}),v.createElement(ta,{onResize:de,disabled:!c},ve=>v.createElement(gu,XB({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:x,leavedClassName:`${o}-hidden`},le,{onAppearPrepare:W,onEnterPrepare:W,visible:c,onVisibleChanged:pe=>{var me;(me=y==null?void 0:y.onVisibleChanged)==null||me.call(y,pe),l(pe)}}),({className:pe,style:me},Oe)=>{const De=Z(o,pe,i,{[`${o}-mobile`]:oe});return v.createElement("div",{ref:Wo(ve,t,Oe),className:De,style:{"--arrow-x":`${g.x||0}px`,"--arrow-y":`${g.y||0}px`,...J,...ue,...me,boxSizing:"border-box",zIndex:D,...s},onMouseEnter:A,onMouseLeave:I,onPointerEnter:L,onClick:h,onPointerDownCapture:F},f&&v.createElement(nLe,{prefixCls:o,arrow:f,arrowPos:g,align:m}),v.createElement(oLe,{cache:!c&&!d},X))})),M)}),cM=v.createContext(null),wle=v.createContext(null);function MK(e){return e?Array.isArray(e)?e:[e]:[]}function sLe(e,t,r){return v.useMemo(()=>{const n=MK(t??e),i=MK(r??e),o=new Set(n),s=new Set(i);return o.has("hover")&&!o.has("click")&&o.add("touch"),s.has("hover")&&!s.has("click")&&s.add("touch"),[o,s]},[e,t,r])}const HD=(e=>{if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){const{width:t,height:r}=e.getBBox();if(t||r)return!0}if(e.getBoundingClientRect){const{width:t,height:r}=e.getBoundingClientRect();if(t||r)return!0}}return!1});function aLe(e=[],t=[],r){const n=(i,o)=>i[o]||"";return r?n(e,0)===n(t,0):n(e,0)===n(t,0)&&n(e,1)===n(t,1)}function xle(e,t,r,n){var s;const{points:i}=r,o=Object.keys(e);for(let a=0;an.includes(a))&&t.push(r),r=r.parentElement}return t}function Mw(e,t=1){return Number.isNaN(e)?t:e}function i0(e){return Mw(parseFloat(e),0)}function IK(e,t){const r={...e};return(t||[]).forEach(n=>{if(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)return;const{overflow:i,overflowClipMargin:o,borderTopWidth:s,borderBottomWidth:a,borderLeftWidth:l,borderRightWidth:c}=Ox(n).getComputedStyle(n),u=n.getBoundingClientRect(),{offsetHeight:d,clientHeight:h,offsetWidth:p,clientWidth:f}=n,g=i0(s),m=i0(a),y=i0(l),b=i0(c),S=Mw(Math.round(u.width/p*1e3)/1e3),x=Mw(Math.round(u.height/d*1e3)/1e3),E=(p-f-y-b)*S,R=(d-h-g-m)*x,T=g*x,M=m*x,D=y*S,A=b*S;let I=0,L=0;if(i==="clip"){const H=i0(o);I=H*S,L=H*x}const F=u.x+D-I,O=u.y+T-L,k=F+u.width+2*I-D-A-E,B=O+u.height+2*L-T-M-R;r.left=Math.max(r.left,F),r.top=Math.max(r.top,O),r.right=Math.min(r.right,k),r.bottom=Math.min(r.bottom,B)}),r}function DK(e,t=0){const r=`${t}`,n=r.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(r)}function AK(e,t){const[r,n]=t||[];return[DK(e.width,r),DK(e.height,n)]}function FK(e=""){return[e[0],e[1]]}function pv(e,t){const r=t[0],n=t[1];let i,o;return r==="t"?o=e.y:r==="b"?o=e.y+e.height:o=e.y+e.height/2,n==="l"?i=e.x:n==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:o}}function bh(e,t){const r={t:"b",b:"t",l:"r",r:"l"},n=[...e];return n[t]=r[e[t]]||"c",n}function LK(e){return e.join("")}function Ele(e,t,r,n,i,o,s,a){const[l,c]=v.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[n]||{}}),u=v.useRef(0),d=v.useMemo(()=>!t||a?[]:YB(t),[t]),h=v.useRef({});e||(()=>{h.current={}})();const f=Sr(()=>{var y,b;if(t&&r&&e&&!a){let Et=function(vr,Ct,yr=ue){const wn=k.x+vr,ni=k.y+Ct,Ni=wn+X,Ha=ni+q,Uo=Math.max(wn,yr.left),Os=Math.max(ni,yr.top),fa=Math.min(Ni,yr.right),Bt=Math.min(Ha,yr.bottom);return Math.max(0,(fa-Uo)*(Bt-Os))},Te=function(){ke=k.y+nt,se=ke+q,ce=k.x+Ae,fe=ce+X};const S=t,x=S.ownerDocument,E=Ox(S),{position:R}=E.getComputedStyle(S),T=S.style.left,M=S.style.top,D=S.style.right,A=S.style.bottom,I=S.style.overflow,L={...i[n],...o},F=x.createElement("div");(y=S.parentElement)==null||y.appendChild(F),F.style.left=`${S.offsetLeft}px`,F.style.top=`${S.offsetTop}px`,F.style.position=R,F.style.height=`${S.offsetHeight}px`,F.style.width=`${S.offsetWidth}px`,S.style.left="0",S.style.top="0",S.style.right="auto",S.style.bottom="auto",S.style.overflow="hidden";let O;if(Array.isArray(r))O={x:r[0],y:r[1],width:0,height:0};else{const vr=r.getBoundingClientRect();vr.x=vr.x??vr.left,vr.y=vr.y??vr.top,O={x:vr.x,y:vr.y,width:vr.width,height:vr.height}}const k=S.getBoundingClientRect(),{height:B,width:H}=E.getComputedStyle(S);k.x=k.x??k.left,k.y=k.y??k.top;const{clientWidth:N,clientHeight:z,scrollWidth:W,scrollHeight:V,scrollTop:$,scrollLeft:K}=x.documentElement,q=k.height,X=k.width,Y=O.height,oe=O.width,ee={left:0,top:0,right:N,bottom:z},ne={left:-K,top:-$,right:W-K,bottom:V-$};let{htmlRegion:le}=L;const he="visible",re="visibleFirst";le!=="scroll"&&le!==re&&(le=he);const ie=le===re,de=IK(ne,d),J=IK(ee,d),ue=le===he?J:de,ve=ie?J:ue;S.style.left="auto",S.style.top="auto",S.style.right="0",S.style.bottom="0";const pe=S.getBoundingClientRect();S.style.left=T,S.style.top=M,S.style.right=D,S.style.bottom=A,S.style.overflow=I,(b=S.parentElement)==null||b.removeChild(F);const me=Mw(Math.round(X/parseFloat(H)*1e3)/1e3),Oe=Mw(Math.round(q/parseFloat(B)*1e3)/1e3);if(me===0||Oe===0||By(r)&&!HD(r))return;const{offset:De,targetOffset:Ee}=L;let[We,ze]=AK(k,De);const[mt,Nt]=AK(O,Ee);O.x-=mt,O.y-=Nt;const[St,Ze]=L.points||[],Fe=FK(Ze),tt=FK(St),Ne=pv(O,Fe),rt=pv(k,tt),ot={...L};let Ye=[tt,Fe],Ae=Ne.x-rt.x+We,nt=Ne.y-rt.y+ze;const Tt=Et(Ae,nt),Ot=Et(Ae,nt,J),Wt=pv(O,["t","l"]),at=pv(k,["t","l"]),lt=pv(O,["b","r"]),Ut=pv(k,["b","r"]),cr=L.overflow||{},{adjustX:_e,adjustY:qe,shiftX:Re,shiftY:it}=cr,Ve=vr=>typeof vr=="boolean"?vr:vr>=0;let ke,se,ce,fe;Te();const $e=Ve(qe),et=tt[0]===Fe[0];if($e&&tt[0]==="t"&&(se>ve.bottom||h.current.bt)){let vr=nt;et?vr-=q-Y:vr=Wt.y-Ut.y-ze;const Ct=Et(Ae,vr),yr=Et(Ae,vr,J);Ct>Tt||Ct===Tt&&(!ie||yr>=Ot)?(h.current.bt=!0,nt=vr,ze=-ze,Ye=[bh(Ye[0],0),bh(Ye[1],0)]):h.current.bt=!1}if($e&&tt[0]==="b"&&(keTt||Ct===Tt&&(!ie||yr>=Ot)?(h.current.tb=!0,nt=vr,ze=-ze,Ye=[bh(Ye[0],0),bh(Ye[1],0)]):h.current.tb=!1}const Dt=Ve(_e),ct=tt[1]===Fe[1];if(Dt&&tt[1]==="l"&&(fe>ve.right||h.current.rl)){let vr=Ae;ct?vr-=X-oe:vr=Wt.x-Ut.x-We;const Ct=Et(vr,nt),yr=Et(vr,nt,J);Ct>Tt||Ct===Tt&&(!ie||yr>=Ot)?(h.current.rl=!0,Ae=vr,We=-We,Ye=[bh(Ye[0],1),bh(Ye[1],1)]):h.current.rl=!1}if(Dt&&tt[1]==="r"&&(ceTt||Ct===Tt&&(!ie||yr>=Ot)?(h.current.lr=!0,Ae=vr,We=-We,Ye=[bh(Ye[0],1),bh(Ye[1],1)]):h.current.lr=!1}ot.points=[LK(Ye[0]),LK(Ye[1])],Te();const st=Re===!0?0:Re;typeof st=="number"&&(ceJ.right&&(Ae-=fe-J.right-We,O.x>J.right-st&&(Ae+=O.x-J.right+st)));const wt=it===!0?0:it;typeof wt=="number"&&(keJ.bottom&&(nt-=se-J.bottom-ze,O.y>J.bottom-wt&&(nt+=O.y-J.bottom+wt)));const Mt=k.x+Ae,_t=Mt+X,At=k.y+nt,pt=At+q,yt=O.x,It=yt+oe,Qt=O.y,Ft=Qt+Y,ur=Math.max(Mt,yt),fr=Math.min(_t,It),yn=(ur+fr)/2-Mt,dn=Math.max(At,Qt),hn=Math.min(pt,Ft),fo=(dn+hn)/2-At;s==null||s(t,ot);let Dr=pe.right-k.x-(Ae+k.width),sn=pe.bottom-k.y-(nt+k.height);me===1&&(Ae=Math.floor(Ae),Dr=Math.floor(Dr)),Oe===1&&(nt=Math.floor(nt),sn=Math.floor(sn));const ri={ready:!0,offsetX:Ae/me,offsetY:nt/Oe,offsetR:Dr/me,offsetB:sn/Oe,arrowX:yn/me,arrowY:fo/Oe,scaleX:me,scaleY:Oe,align:ot};c(ri)}}),g=()=>{u.current+=1;const y=u.current;Promise.resolve().then(()=>{u.current===y&&f()})},m=()=>{c(y=>({...y,ready:!1}))};return jr(m,[n]),jr(()=>{e||m()},[e]),[l.ready,l.offsetX,l.offsetY,l.offsetR,l.offsetB,l.arrowX,l.arrowY,l.scaleX,l.scaleY,l.align,g]}function Tle(){const e=v.useRef(null),t=()=>{e.current&&(clearTimeout(e.current),e.current=null)},r=(n,i)=>{t(),i===0?n():e.current=setTimeout(()=>{n()},i*1e3)};return v.useEffect(()=>()=>{t()},[]),r}function lLe(e,t,r,n,i){jr(()=>{if(e&&t&&r){let d=function(){n(),i()};const o=t,s=r,a=YB(o),l=YB(s),c=Ox(s),u=new Set([c,...a,...l]);return u.forEach(h=>{h.addEventListener("scroll",d,{passive:!0})}),c.addEventListener("resize",d,{passive:!0}),n(),()=>{u.forEach(h=>{h.removeEventListener("scroll",d),c.removeEventListener("resize",d)})}}},[e,t,r])}function cLe(e,t,r,n,i,o,s,a){const l=v.useRef(e);l.current=e;const c=v.useRef(!1);v.useEffect(()=>{if(t&&n&&(!i||o)){const d=()=>{c.current=!1},h=g=>{var m,y;l.current&&!s(((y=(m=g.composedPath)==null?void 0:m.call(g))==null?void 0:y[0])||g.target)&&!c.current&&a(!1)},p=Ox(n);p.addEventListener("pointerdown",d,!0),p.addEventListener("mousedown",h,!0),p.addEventListener("contextmenu",h,!0);const f=lM(r);return f&&(f.addEventListener("mousedown",h,!0),f.addEventListener("contextmenu",h,!0)),()=>{p.removeEventListener("pointerdown",d,!0),p.removeEventListener("mousedown",h,!0),p.removeEventListener("contextmenu",h,!0),f&&(f.removeEventListener("mousedown",h,!0),f.removeEventListener("contextmenu",h,!0))}}},[t,r,n,i,o]);function u(){c.current=!0}return u}function uLe(){const[e,t]=Q.useState(null),[r,n]=Q.useState(!1),[i,o]=Q.useState(!1),s=Q.useRef(null),a=Sr(c=>{c===!1?(s.current=null,n(!1)):i&&r?s.current=c:(n(!0),t(c),s.current=null,r||o(!0))}),l=Sr(c=>{c?(o(!1),s.current&&(t(s.current),s.current=null)):(o(!1),s.current=null)});return[a,r,e,l]}function ZB(){return ZB=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{prefixCls:t,isMobile:r,ready:n,open:i,align:o,offsetR:s,offsetB:a,offsetX:l,offsetY:c,arrowPos:u,popupSize:d,motion:h,uniqueContainerClassName:p,uniqueContainerStyle:f}=e,g=`${t}-unique-container`,[m,y]=Q.useState(!1),b=ble(r,n,i,o,s,a,l,c),S=Q.useRef(b);n&&(S.current=b);const x={};return d&&(x.width=d.width,x.height=d.height),Q.createElement(gu,ZB({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${g}-hidden`},h,{visible:i,onVisibleChanged:E=>{y(E)}}),({className:E,style:R})=>{const T=Z(g,E,p,{[`${g}-visible`]:m});return Q.createElement("div",{className:T,style:{"--arrow-x":`${(u==null?void 0:u.x)||0}px`,"--arrow-y":`${(u==null?void 0:u.y)||0}px`,...S.current,...x,...R,...f}})})},hLe=({children:e,postTriggerProps:t})=>{const[r,n,i,o]=uLe(),s=v.useMemo(()=>!i||!t?i:t(i),[i,t]),[a,l]=v.useState(null),[c,u]=v.useState(null),d=v.useRef(null),h=Sr(N=>{d.current=N,By(N)&&a!==N&&l(N)}),p=v.useRef(null),f=Tle(),g=Sr((N,z)=>{p.current=z,f(()=>{r(N)},N.delay)}),m=N=>{f(()=>{var z;(z=p.current)!=null&&z.call(p)||r(!1)},N)},y=Sr(N=>{o(N)}),[b,S,x,E,R,T,M,,,D,A]=Ele(n,a,s==null?void 0:s.target,s==null?void 0:s.popupPlacement,(s==null?void 0:s.builtinPlacements)||{},s==null?void 0:s.popupAlign,void 0,!1),I=v.useMemo(()=>{var z;if(!s)return"";const N=xle(s.builtinPlacements||{},s.prefixCls||"",D,!1);return Z(N,(z=s.getPopupClassNameFromAlign)==null?void 0:z.call(s,D))},[D,s==null?void 0:s.getPopupClassNameFromAlign,s==null?void 0:s.builtinPlacements,s==null?void 0:s.prefixCls]),L=v.useMemo(()=>({show:g,hide:m}),[]);v.useEffect(()=>{A()},[s==null?void 0:s.target]);const F=Sr(()=>(A(),Promise.resolve())),O=v.useRef({}),k=v.useContext(cM),B=v.useMemo(()=>({registerSubPopup:(N,z)=>{O.current[N]=z,k==null||k.registerSubPopup(N,z)}}),[k]),H=s==null?void 0:s.prefixCls;return v.createElement(wle.Provider,{value:L},e,s&&v.createElement(cM.Provider,{value:B},v.createElement(Sle,{ref:h,portal:kx,onEsc:s.onEsc,prefixCls:H,popup:s.popup,className:Z(s.popupClassName,I,`${H}-unique-controlled`),style:s.popupStyle,target:s.target,open:n,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:y,ready:b,offsetX:S,offsetY:x,offsetR:E,offsetB:R,onAlign:A,onPrepare:F,onResize:N=>u({width:N.offsetWidth,height:N.offsetHeight}),arrowPos:{x:T,y:M},align:D,zIndex:s.zIndex,mask:s.mask,arrow:s.arrow,motion:s.popupMotion,maskMotion:s.maskMotion,getPopupContainer:s.getPopupContainer},v.createElement(dLe,{prefixCls:H,isMobile:!1,ready:b,open:n,align:D,offsetR:E,offsetB:R,offsetX:S,offsetY:x,arrowPos:{x:T,y:M},popupSize:c,motion:s.popupMotion,uniqueContainerClassName:Z(s.uniqueContainerClassName,I),uniqueContainerStyle:s.uniqueContainerStyle}))))};function pLe(e=kx){return v.forwardRef((r,n)=>{const{prefixCls:i="rc-trigger-popup",children:o,action:s="hover",showAction:a,hideAction:l,popupVisible:c,defaultPopupVisible:u,onOpenChange:d,afterOpenChange:h,onPopupVisibleChange:p,afterPopupVisibleChange:f,mouseEnterDelay:g,mouseLeaveDelay:m=.1,focusDelay:y,blurDelay:b,mask:S,maskClosable:x=!0,getPopupContainer:E,forceRender:R,autoDestroy:T,popup:M,popupClassName:D,uniqueContainerClassName:A,uniqueContainerStyle:I,popupStyle:L,popupPlacement:F,builtinPlacements:O={},popupAlign:k,zIndex:B,stretch:H,getPopupClassNameFromAlign:N,fresh:z,unique:W,alignPoint:V,onPopupClick:$,onPopupAlign:K,arrow:q,popupMotion:X,maskMotion:Y,mobile:oe,...ee}=r,ne=T||!1,le=c===void 0,he=!!oe,re=v.useRef({}),ie=v.useContext(cM),de=v.useMemo(()=>({registerSubPopup:(Bt,Ur)=>{re.current[Bt]=Ur,ie==null||ie.registerSubPopup(Bt,Ur)}}),[ie]),J=v.useContext(wle),ue=xc(),[ve,pe]=v.useState(null),me=v.useRef(null),Oe=Sr(Bt=>{me.current=Bt,By(Bt)&&ve!==Bt&&pe(Bt),ie==null||ie.registerSubPopup(ue,Bt)}),[De,Ee]=v.useState(null),We=v.useRef(null),ze=Sr(Bt=>{const Ur=pc(Bt);By(Ur)&&De!==Ur&&(Ee(Ur),We.current=Ur)}),mt={},Nt=Sr(Bt=>{var Zi,Dc;const Ur=De;return(Ur==null?void 0:Ur.contains(Bt))||((Zi=lM(Ur))==null?void 0:Zi.host)===Bt||Bt===Ur||(ve==null?void 0:ve.contains(Bt))||((Dc=lM(ve))==null?void 0:Dc.host)===Bt||Bt===ve||Object.values(re.current).some(ga=>(ga==null?void 0:ga.contains(Bt))||Bt===ga)}),St=q?{...q!==!0?q:{}}:null,[Ze,Fe]=An(u||!1,c),tt=Ze||!1,Ne=v.useMemo(()=>{const Bt=typeof o=="function"?o({open:tt}):o;return v.Children.only(Bt)},[o,tt]),rt=(Ne==null?void 0:Ne.props)||{},ot=Sr(()=>tt),Ye=Sr((Bt=0)=>({popup:M,target:De,delay:Bt,prefixCls:i,popupClassName:D,uniqueContainerClassName:A,uniqueContainerStyle:I,popupStyle:L,popupPlacement:F,builtinPlacements:O,popupAlign:k,zIndex:B,mask:S,maskClosable:x,popupMotion:X,maskMotion:Y,arrow:St,getPopupContainer:E,getPopupClassNameFromAlign:N,id:ue,onEsc:Ot}));jr(()=>{J&&W&&De&&!le&&!ie&&(tt?J.show(Ye(g),ot):J.hide(m))},[tt,De]);const Ae=v.useRef(tt);Ae.current=tt;const nt=Sr(Bt=>{$a.flushSync(()=>{tt!==Bt&&(Fe(Bt),d==null||d(Bt),p==null||p(Bt))})}),Et=Tle(),Tt=(Bt,Ur=0)=>{if(c!==void 0){Et(()=>{nt(Bt)},Ur);return}if(J&&W&&le&&!ie){Bt?J.show(Ye(Ur),ot):J.hide(Ur);return}Et(()=>{nt(Bt)},Ur)};function Ot({top:Bt}){Bt&&Tt(!1)}const[Wt,at]=v.useState(!1);jr(Bt=>{(!Bt||tt)&&at(!0)},[tt]);const[lt,Ut]=v.useState(null),[cr,_e]=v.useState(null),qe=Bt=>{_e([Bt.clientX,Bt.clientY])},[Re,it,Ve,ke,se,ce,fe,Te,$e,et,Dt]=Ele(tt,ve,V&&cr!==null?cr:De,F,O,k,K,he),[ct,st]=sLe(s,a,l),wt=ct.has("click"),Mt=st.has("click")||st.has("contextMenu"),_t=Sr(()=>{Wt||Dt()});lLe(tt,De,ve,_t,()=>{Ae.current&&V&&Mt&&Tt(!1)}),jr(()=>{_t()},[cr,F]),jr(()=>{tt&&!(O!=null&&O[F])&&_t()},[JSON.stringify(k)]);const pt=v.useMemo(()=>{const Bt=xle(O,i,et,V);return Z(Bt,N==null?void 0:N(et))},[et,N,O,i,V]);v.useImperativeHandle(n,()=>({nativeElement:We.current,popupElement:me.current,forceAlign:_t}));const[yt,It]=v.useState(0),[Qt,Ft]=v.useState(0),ur=()=>{if(H&&De){const Bt=De.getBoundingClientRect();It(Bt.width),Ft(Bt.height)}},fr=()=>{ur(),_t()},rr=Bt=>{at(!1),Dt(),h==null||h(Bt),f==null||f(Bt)},yn=()=>new Promise(Bt=>{ur(),Ut(()=>Bt)});jr(()=>{lt&&(Dt(),lt(),Ut(null))},[lt]);function dn(Bt,Ur,Zi,Dc,ga){mt[Bt]=(W1,...bb)=>{var Cn;(!ga||!ga())&&(Dc==null||Dc(W1),Tt(Ur,Zi)),(Cn=rt[Bt])==null||Cn.call(rt,W1,...bb)}}const hn=ct.has("touch"),en=st.has("touch"),fo=v.useRef(!1);(hn||en)&&(mt.onTouchStart=(...Bt)=>{var Ur;fo.current=!0,Ae.current&&en?Tt(!1):!Ae.current&&hn&&Tt(!0),(Ur=rt.onTouchStart)==null||Ur.call(rt,...Bt)}),(wt||Mt)&&(mt.onClick=(Bt,...Ur)=>{var Zi;Ae.current&&Mt?Tt(!1):!Ae.current&&wt&&(qe(Bt),Tt(!0)),(Zi=rt.onClick)==null||Zi.call(rt,Bt,...Ur),fo.current=!1});const Dr=cLe(tt,Mt||en,De,ve,S,x,Nt,Tt),sn=ct.has("hover"),ri=st.has("hover");let vr,Ct;const yr=()=>fo.current;if(sn){const Bt=Ur=>{qe(Ur)};dn("onMouseEnter",!0,g,Bt,yr),dn("onPointerEnter",!0,g,Bt,yr),vr=Ur=>{(tt||Wt)&&(ve!=null&&ve.contains(Ur.target))&&Tt(!0,g)},V&&(mt.onMouseMove=Ur=>{var Zi;(Zi=rt.onMouseMove)==null||Zi.call(rt,Ur)})}ri&&(dn("onMouseLeave",!1,m,void 0,yr),dn("onPointerLeave",!1,m,void 0,yr),Ct=()=>{Tt(!1,m)}),ct.has("focus")&&dn("onFocus",!0,y),st.has("focus")&&dn("onBlur",!1,b),ct.has("contextMenu")&&(mt.onContextMenu=(Bt,...Ur)=>{var Zi;Ae.current&&st.has("contextMenu")?Tt(!1):(qe(Bt),Tt(!0)),Bt.preventDefault(),(Zi=rt.onContextMenu)==null||Zi.call(rt,Bt,...Ur)});const wn=v.useRef(!1);wn.current||(wn.current=R||tt||Wt);const ni={...rt,...mt},Ni={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(Bt=>{ee[Bt]&&(Ni[Bt]=(...Ur)=>{var Zi;(Zi=ni[Bt])==null||Zi.call(ni,...Ur),ee[Bt](...Ur)})});const Uo={x:ce,y:fe};Qse(tt,De,fr);const Os=Pu(ze,jd(Ne)),fa=v.cloneElement(Ne,{...ni,...Ni,ref:Os});return v.createElement(v.Fragment,null,fa,wn.current&&(!J||!W)&&v.createElement(cM.Provider,{value:de},v.createElement(Sle,{portal:e,ref:Oe,prefixCls:i,popup:M,className:Z(D,!he&&pt),style:L,target:De,onMouseEnter:vr,onMouseLeave:Ct,onPointerEnter:vr,zIndex:B,open:tt,keepDom:Wt,fresh:z,onClick:$,onPointerDownCapture:Dr,mask:S,motion:X,maskMotion:Y,onVisibleChanged:rr,onPrepare:yn,forceRender:R,autoDestroy:ne,getPopupContainer:E,onEsc:Ot,align:et,arrow:St,arrowPos:Uo,ready:Re,offsetX:it,offsetY:Ve,offsetR:ke,offsetB:se,onAlign:_t,stretch:H,targetWidth:yt/Te,targetHeight:Qt/$e,mobile:oe})))})}const WD=pLe(kx);function Rle(e){return e&&Q.isValidElement(e)&&e.type===Q.Fragment}const Ple=(e,t,r)=>Q.isValidElement(e)?Q.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function Ei(e,t){return Ple(e,e,t)}const fLe=({children:e})=>{const{getPrefixCls:t}=Q.useContext(ir),r=t();return Q.isValidElement(e)?Q.createElement(Mu,{visible:!0,motionName:`${r}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:n,className:i})=>Ei(e,o=>({className:Z(o.className,i),style:{...o.style,...n}}))):e},oT=[null,null];function gLe(e){if(oT[0]!==e){const t={};Object.keys(e).forEach(r=>{t[r]={...e[r],dynamicInset:!1}}),oT[0]=e,oT[1]=t}return oT[1]}const Mle=({children:e})=>{const t=r=>{const{id:n,builtinPlacements:i,popup:o}=r,s=typeof o=="function"?o():o,a=gLe(i);return{...r,getPopupContainer:null,arrow:!1,popup:Q.createElement(fLe,{key:n},s),builtinPlacements:a}};return Q.createElement(hLe,{postTriggerProps:t},e)},hs=v.createContext(!1),Ile=({children:e,disabled:t})=>{const r=v.useContext(hs);return v.createElement(hs.Provider,{value:t??r},e)},zy=v.createContext(void 0),mLe=({children:e,size:t})=>{const r=v.useContext(zy);return v.createElement(zy.Provider,{value:t||r},e)};function vLe(){const e=v.useContext(hs),t=v.useContext(zy);return{componentDisabled:e,componentSize:t}}function yLe(e,t,r){MC();const n=e||{},i=n.inherit===!1||!t?{...AB,hashed:(t==null?void 0:t.hashed)??AB.hashed,cssVar:t==null?void 0:t.cssVar}:t,o=v.useId();return Pm(()=>{var c;if(!e)return t;const s={...i.components};Object.keys(e.components||{}).forEach(u=>{s[u]={...s[u],...e.components[u]}});const a=`css-var-${o.replace(/:/g,"")}`,l={prefix:r==null?void 0:r.prefixCls,...i.cssVar,...n.cssVar,key:((c=n.cssVar)==null?void 0:c.key)||a};return{...i,...n,token:{...i.token,...n.token},components:s,cssVar:l}},[n,i],(s,a)=>s.some((l,c)=>{const u=a[c];return!fc(l,u,!0)}))}const _K=v.createContext(!0);function CLe(e){const t=v.useContext(_K),{children:r}=e,[,n]=fs(),{motion:i}=n,o=v.useRef(!1);return o.current||(o.current=t!==i),o.current?v.createElement(_K.Provider,{value:i},v.createElement(AAe,{motion:i},r)):r}const bLe=()=>null,SLe=({iconPrefixCls:e,csp:t})=>(hAe(e,t),null),wLe=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let uM,Dle,Ale,Fle;function N_(){return uM||Cw}function xLe(){return Dle||kD}const ELe=e=>{const{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:i}=e;t!==void 0&&(uM=t),r!==void 0&&(Dle=r),"holderRender"in e&&(Fle=i),n&&(Ale=n)},TLe=()=>({getPrefixCls:(e,t)=>t||(e?`${N_()}-${e}`:N_()),getIconPrefixCls:xLe,getRootPrefixCls:()=>uM||N_(),getTheme:()=>Ale,holderRender:Fle}),RLe=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,alert:i,affix:o,anchor:s,app:a,form:l,locale:c,componentSize:u,direction:d,space:h,splitter:p,virtual:f,dropdownMatchSelectWidth:g,popupMatchSelectWidth:m,popupOverflow:y,legacyLocale:b,parentContext:S,iconPrefixCls:x,theme:E,componentDisabled:R,segmented:T,statistic:M,spin:D,calendar:A,carousel:I,cascader:L,collapse:F,typography:O,checkbox:k,descriptions:B,divider:H,drawer:N,skeleton:z,steps:W,image:V,layout:$,list:K,mentions:q,modal:X,progress:Y,result:oe,slider:ee,breadcrumb:ne,masonry:le,menu:he,pagination:re,input:ie,textArea:de,otp:J,empty:ue,badge:ve,radio:pe,rate:me,ribbon:Oe,switch:De,transfer:Ee,avatar:We,message:ze,tag:mt,table:Nt,card:St,cardMeta:Ze,tabs:Fe,timeline:tt,timePicker:Ne,upload:rt,notification:ot,tree:Ye,colorPicker:Ae,datePicker:nt,rangePicker:Et,flex:Tt,wave:Ot,dropdown:Wt,warning:at,tour:lt,tooltip:Ut,popover:cr,popconfirm:_e,qrcode:qe,floatButton:Re,floatButtonGroup:it,variant:Ve,inputNumber:ke,treeSelect:se,watermark:ce}=e,fe=v.useCallback((yt,It)=>{const{prefixCls:Qt}=e;if(It)return It;const Ft=Qt||S.getPrefixCls("");return yt?`${Ft}-${yt}`:Ft},[S.getPrefixCls,e.prefixCls]),Te=x||S.iconPrefixCls||kD,$e=r||S.csp,et=yLe(E,S.theme,{prefixCls:fe("")}),Dt={csp:$e,autoInsertSpaceInButton:n,alert:i,affix:o,anchor:s,app:a,locale:c||b,direction:d,space:h,splitter:p,virtual:f,popupMatchSelectWidth:m??g,popupOverflow:y,getPrefixCls:fe,iconPrefixCls:Te,theme:et,segmented:T,statistic:M,spin:D,calendar:A,carousel:I,cascader:L,collapse:F,typography:O,checkbox:k,descriptions:B,divider:H,drawer:N,skeleton:z,steps:W,image:V,input:ie,textArea:de,otp:J,layout:$,list:K,mentions:q,modal:X,progress:Y,result:oe,slider:ee,breadcrumb:ne,masonry:le,menu:he,pagination:re,empty:ue,badge:ve,radio:pe,rate:me,ribbon:Oe,switch:De,transfer:Ee,avatar:We,message:ze,tag:mt,table:Nt,card:St,cardMeta:Ze,tabs:Fe,timeline:tt,timePicker:Ne,upload:rt,notification:ot,tree:Ye,colorPicker:Ae,datePicker:nt,rangePicker:Et,flex:Tt,wave:Ot,dropdown:Wt,warning:at,tour:lt,tooltip:Ut,popover:cr,popconfirm:_e,qrcode:qe,floatButton:Re,floatButtonGroup:it,variant:Ve,inputNumber:ke,treeSelect:se,watermark:ce},ct={...S};Object.keys(Dt).forEach(yt=>{Dt[yt]!==void 0&&(ct[yt]=Dt[yt])}),wLe.forEach(yt=>{const It=e[yt];It&&(ct[yt]=It)}),typeof n<"u"&&(ct.button={autoInsertSpace:n,...ct.button});const st=Pm(()=>ct,ct,(yt,It)=>{const Qt=Object.keys(yt),Ft=Object.keys(It);return Qt.length!==Ft.length||Qt.some(ur=>yt[ur]!==It[ur])}),{layer:wt}=v.useContext(Ix),Mt=v.useMemo(()=>({prefixCls:Te,csp:$e,layer:wt?"antd":void 0}),[Te,$e,wt]);let _t=v.createElement(v.Fragment,null,v.createElement(SLe,{iconPrefixCls:Te,csp:$e}),v.createElement(bLe,{dropdownMatchSelectWidth:g}),t);const At=v.useMemo(()=>{var yt,It,Qt,Ft;return ry(((yt=xl.Form)==null?void 0:yt.defaultValidateMessages)||{},((Qt=(It=st.locale)==null?void 0:It.Form)==null?void 0:Qt.defaultValidateMessages)||{},((Ft=st.form)==null?void 0:Ft.validateMessages)||{},(l==null?void 0:l.validateMessages)||{})},[st,l==null?void 0:l.validateMessages]);Object.keys(At).length>0&&(_t=v.createElement(LFe.Provider,{value:At},_t)),c&&(_t=v.createElement(sFe,{locale:c,_ANT_MARK__:oFe},_t)),_t=v.createElement(k4.Provider,{value:Mt},_t),u&&(_t=v.createElement(mLe,{size:u},_t)),_t=v.createElement(CLe,null,_t),Ut!=null&&Ut.unique&&(_t=v.createElement(Mle,null,_t));const pt=v.useMemo(()=>{const{algorithm:yt,token:It,components:Qt,cssVar:Ft,...ur}=et||{},fr=yt&&(!Array.isArray(yt)||yt.length>0)?pB(yt):Dae,rr={};Object.entries(Qt||{}).forEach(([dn,hn])=>{const en={...hn};"algorithm"in en&&(en.algorithm===!0?en.theme=fr:(Array.isArray(en.algorithm)||typeof en.algorithm=="function")&&(en.theme=pB(en.algorithm)),delete en.algorithm),rr[dn]=en});const yn={...Tw,...It};return{...ur,theme:fr,token:yn,components:rr,override:{override:yn,...rr},cssVar:Ft}},[et]);return E&&(_t=v.createElement(Aae.Provider,{value:pt},_t)),st.warning&&(_t=v.createElement(bIe.Provider,{value:st.warning},_t)),R!==void 0&&(_t=v.createElement(Ile,{disabled:R},_t)),v.createElement(ir.Provider,{value:st},_t)},Iu=e=>{const t=v.useContext(ir),r=v.useContext(N4);return v.createElement(RLe,{parentContext:t,legacyLocale:r,...e})};Iu.ConfigContext=ir;Iu.SizeContext=zy;Iu.config=ELe;Iu.useConfig=vLe;Object.defineProperty(Iu,"SizeContext",{get:()=>zy});const Zt={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};var PLe={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"};function QB(){return QB=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,QB({},e,{ref:t,icon:PLe})),rm=v.forwardRef(MLe),dM="__rc_react_root__";function Lle(e,t){const r=t[dM]||ase.createRoot(t);r.render(e),t[dM]=r}async function _le(e){return Promise.resolve().then(()=>{var t;(t=e[dM])==null||t.unmount(),delete e[dM]})}const B_=()=>({height:0,opacity:0}),kK=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},ILe=e=>({height:e?e.offsetHeight:0}),$_=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",V4=(e=Cw)=>({motionName:`${e}-motion-collapse`,onAppearStart:B_,onEnterStart:B_,onAppearActive:kK,onEnterActive:kK,onLeaveStart:ILe,onLeaveActive:B_,onAppearEnd:$_,onEnterEnd:$_,onLeaveEnd:$_,motionDeadline:500}),mu=(e,t,r)=>r!==void 0?r:`${e}-${t}`,DLe=e=>{const{componentCls:t,colorPrimary:r,motionDurationSlow:n,motionEaseInOut:i,motionEaseOutCirc:o,antCls:s}=e,[,a]=Jn(s,"wave");return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:a("color",r),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:["box-shadow 0.4s","opacity 2s"].map(l=>`${l} ${o}`).join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:["box-shadow","opacity"].map(l=>`${l} ${n} ${i}`).join(",")}}}}},ALe=dAe("Wave",DLe),UD=`${Cw}-wave-target`;function OK(e){return e&&typeof e=="string"&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"&&e!=="canvastext"}function FLe(e,t=null){const r=getComputedStyle(e),{borderTopColor:n,borderColor:i,backgroundColor:o}=r;return t&&OK(r[t])?r[t]:[n,i,o].find(OK)??null}function G_(e){return Number.isNaN(e)?0:e}const LLe=e=>{const{className:t,target:r,component:n,colorSource:i}=e,o=v.useRef(null),{getPrefixCls:s}=v.useContext(ir),a=s(),[l]=Jn(a,"wave"),[c,u]=v.useState(null),[d,h]=v.useState([]),[p,f]=v.useState(0),[g,m]=v.useState(0),[y,b]=v.useState(0),[S,x]=v.useState(0),[E,R]=v.useState(!1),T={left:p,top:g,width:y,height:S,borderRadius:d.map(A=>`${A}px`).join(" ")};c&&(T[l("color")]=c);function M(){const A=getComputedStyle(r);u(FLe(r,i));const I=A.position==="static",{borderLeftWidth:L,borderTopWidth:F}=A;f(I?r.offsetLeft:G_(-Number.parseFloat(L))),m(I?r.offsetTop:G_(-Number.parseFloat(F))),b(r.offsetWidth),x(r.offsetHeight);const{borderTopLeftRadius:O,borderTopRightRadius:k,borderBottomLeftRadius:B,borderBottomRightRadius:H}=A;h([O,k,H,B].map(N=>G_(Number.parseFloat(N))))}if(v.useEffect(()=>{if(r){const A=Or(()=>{M(),R(!0)});let I;return typeof ResizeObserver<"u"&&(I=new ResizeObserver(M),I.observe(r)),()=>{Or.cancel(A),I==null||I.disconnect()}}},[r]),!E)return null;const D=(n==="Checkbox"||n==="Radio")&&(r==null?void 0:r.classList.contains(UD));return v.createElement(Mu,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(A,I)=>{var L;if(I.deadline||I.propertyName==="opacity"){const F=(L=o.current)==null?void 0:L.parentElement;_le(F).then(()=>{F==null||F.remove()})}return!1}},({className:A},I)=>v.createElement("div",{ref:Wo(o,I),className:Z(t,A,{"wave-quick":D}),style:T}))},_Le=(e,t)=>{var i;const{component:r}=t;if(r==="Checkbox"&&!((i=e.querySelector("input"))!=null&&i.checked))return;const n=document.createElement("div");n.style.position="absolute",n.style.left="0px",n.style.top="0px",e==null||e.insertBefore(n,e==null?void 0:e.firstChild),Lle(v.createElement(LLe,{...t,target:e}),n)},kLe=(e,t,r,n)=>{const{wave:i}=v.useContext(ir),[,o,s]=fs(),a=Sr(u=>{const d=e.current;if(i!=null&&i.disabled||!d)return;const h=d.querySelector(`.${UD}`)||d,{showEffect:p}=i||{};(p||_Le)(h,{className:t,token:o,component:r,event:u,hashId:s,colorSource:n})}),l=v.useRef(null);return v.useEffect(()=>()=>{Or.cancel(l.current)},[]),u=>{Or.cancel(l.current),l.current=Or(()=>{a(u)})}},Nx=e=>{const{children:t,disabled:r,component:n,colorSource:i}=e,{getPrefixCls:o}=v.useContext(ir),s=v.useRef(null),a=o("wave"),l=ALe(a),c=kLe(s,Z(a,l),n,i);if(Q.useEffect(()=>{const d=s.current;if(!d||d.nodeType!==window.Node.ELEMENT_NODE||r)return;const h=p=>{!HD(p.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")&&!d.className.includes("disabled:")||d.getAttribute("aria-disabled")==="true"||d.className.includes("-leave")||c(p)};return d.addEventListener("click",h,!0),()=>{d.removeEventListener("click",h,!0)}},[r]),!Q.isValidElement(t))return t??null;const u=pu(t)?Wo(jd(t),s):s;return Ei(t,{ref:u})},Oi=e=>{const t=Q.useContext(zy);return Q.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},OLe=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},NLe=zr(["Space","Compact"],OLe,()=>({}),{resetStyle:!1}),jD=v.createContext(null),Wp=(e,t)=>{const r=v.useContext(jD),n=v.useMemo(()=>{if(!r)return"";const{compactDirection:i,isFirstItem:o,isLastItem:s}=r,a=i==="vertical"?"-vertical-":"-";return Z(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:o,[`${e}-compact${a}last-item`]:s,[`${e}-compact${a}item-rtl`]:t==="rtl"})},[e,t,r]);return{compactSize:r==null?void 0:r.compactSize,compactDirection:r==null?void 0:r.compactDirection,compactItemClassnames:n}},BLe=e=>{const{children:t}=e;return v.createElement(jD.Provider,{value:null},t)},$Le=e=>{const{children:t,...r}=e;return v.createElement(jD.Provider,{value:v.useMemo(()=>r,[r])},t)},z4=e=>{const{getPrefixCls:t,direction:r}=v.useContext(ir),{size:n,direction:i,orientation:o,block:s,prefixCls:a,className:l,rootClassName:c,children:u,vertical:d,...h}=e,[p,f]=Lx(o,d,i),g=Oi(R=>n??R),m=t("space-compact",a),[y]=NLe(m),b=Z(m,y,{[`${m}-rtl`]:r==="rtl",[`${m}-block`]:s,[`${m}-vertical`]:f},l,c),S=v.useContext(jD),x=Li(u),E=v.useMemo(()=>x.map((R,T)=>{const M=(R==null?void 0:R.key)||`${m}-item-${T}`;return v.createElement($Le,{key:M,compactSize:g,compactDirection:p,isFirstItem:T===0&&(!S||(S==null?void 0:S.isFirstItem)),isLastItem:T===x.length-1&&(!S||(S==null?void 0:S.isLastItem))},R)}),[x,S,p,g,m]);return x.length===0?null:v.createElement("div",{className:b,...h},E)},kle=v.createContext(void 0),GLe=e=>{const{getPrefixCls:t,direction:r}=v.useContext(ir),{prefixCls:n,size:i,className:o,...s}=e,a=t("btn-group",n),[,,l]=fs(),c=v.useMemo(()=>{switch(i){case"large":return"lg";case"small":return"sm";default:return""}},[i]),u=Z(a,{[`${a}-${c}`]:c,[`${a}-rtl`]:r==="rtl"},o,l);return v.createElement(kle.Provider,{value:i},v.createElement("div",{...s,className:u}))},NK=/^[\u4E00-\u9FA5]{2}$/,JB=NK.test.bind(NK);function H4(e){return e==="danger"?{danger:!0}:{type:e}}function BK(e){return typeof e=="string"}function V_(e){return e==="text"||e==="link"}function VLe(e,t,r,n){if(!Tn(e)||e==="")return;const i=t?" ":"";return typeof e!="string"&&typeof e!="number"&&BK(e.type)&&JB(e.props.children)?Ei(e,o=>{const s=Z(o.className,n)||void 0,a={...r,...o.style};return{...o,children:o.children.split("").join(i),className:s,style:a}}):BK(e)?Q.createElement("span",{className:n,style:r},JB(e)?e.split("").join(i):e):Rle(e)?Q.createElement("span",{className:n,style:r},e):Ei(e,o=>({...o,className:Z(o.className,n)||void 0,style:{...o.style,...r}}))}function zLe(e,t,r,n){let i=!1;const o=[];return Q.Children.forEach(e,s=>{const a=typeof s,l=a==="string"||a==="number";if(i&&l){const c=o.length-1,u=o[c];o[c]=`${u}${s}`}else o.push(s);i=l}),Q.Children.map(o,s=>VLe(s,t,r,n))}["default","primary","danger"].concat(Pr(Ad));const Ole=v.forwardRef((e,t)=>{const{className:r,style:n,children:i,prefixCls:o}=e,s=Z(`${o}-icon`,r);return Q.createElement("span",{ref:t,className:s,style:n},i)}),$K=v.forwardRef((e,t)=>{const{prefixCls:r,className:n,style:i,iconClassName:o}=e,s=Z(`${r}-loading-icon`,n);return Q.createElement(Ole,{prefixCls:r,className:s,style:i,ref:t},Q.createElement(rm,{className:o}))}),z_=()=>({width:0,opacity:0,transform:"scale(0)"}),H_=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),HLe=e=>{const{prefixCls:t,loading:r,existIcon:n,className:i,style:o,mount:s}=e,a=!!r;return n?Q.createElement($K,{prefixCls:t,className:i,style:o}):Q.createElement(Mu,{visible:a,motionName:`${t}-loading-icon-motion`,motionAppear:!s,motionEnter:!s,motionLeave:!s,removeOnLeave:!0,onAppearStart:z_,onAppearActive:H_,onEnterStart:z_,onEnterActive:H_,onLeaveStart:H_,onLeaveActive:z_},({className:l,style:c},u)=>{const d={...o,...c};return Q.createElement($K,{prefixCls:t,className:Z(i,l),style:d,ref:u})})},W4=e=>{const{componentCls:t,antCls:r,motionDurationMid:n,motionEaseInOut:i}=e;return{[t]:{[`${r}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`${["height","opacity"].map(o=>`${o} ${n} ${i}`).join(", ")} !important`}},[`${r}-motion-collapse`]:{overflow:"hidden",transition:`${["height","opacity"].map(o=>`${o} ${n} ${i}`).join(", ")} !important`}}}},GK=e=>({animationDuration:e,animationFillMode:"both"}),KD=(e,t,r,n,i=!1)=>{const o=i?"&":"";return{[` ${o}${e}-enter, ${o}${e}-appear `]:{...GK(n),animationPlayState:"paused"},[`${o}${e}-leave`]:{...GK(n),animationPlayState:"paused"},[` ${o}${e}-enter${e}-enter-active, ${o}${e}-appear${e}-appear-active `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}},WLe=new qr("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),ULe=new qr("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),qD=(e,t=!1)=>{const{antCls:r}=e,n=`${r}-fade`,i=t?"&":"";return[KD(n,WLe,ULe,e.motionDurationMid,t),{[` ${i}${n}-enter, ${i}${n}-appear `]:{opacity:0,animationTimingFunction:"linear"},[`${i}${n}-leave`]:{animationTimingFunction:"linear"}}]},jLe=new qr("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),KLe=new qr("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),qLe=new qr("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),XLe=new qr("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),YLe=new qr("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ZLe=new qr("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),QLe=new qr("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),JLe=new qr("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),e_e={"move-up":{inKeyframes:QLe,outKeyframes:JLe},"move-down":{inKeyframes:jLe,outKeyframes:KLe},"move-left":{inKeyframes:qLe,outKeyframes:XLe},"move-right":{inKeyframes:YLe,outKeyframes:ZLe}},hM=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:i,outKeyframes:o}=e_e[t];return[KD(n,i,o,e.motionDurationMid),{[` ${n}-enter, ${n}-appear `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},U4=new qr("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),j4=new qr("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),K4=new qr("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),q4=new qr("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),t_e=new qr("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),r_e=new qr("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),n_e=new qr("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),i_e=new qr("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),o_e={"slide-up":{inKeyframes:U4,outKeyframes:j4},"slide-down":{inKeyframes:K4,outKeyframes:q4},"slide-left":{inKeyframes:t_e,outKeyframes:r_e},"slide-right":{inKeyframes:n_e,outKeyframes:i_e}},Tp=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:i,outKeyframes:o}=o_e[t];return[KD(n,i,o,e.motionDurationMid),{[` ${n}-enter, ${n}-appear `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},bd=()=>({"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"}}),s_e=new qr("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),a_e=new qr("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),VK=new qr("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),zK=new qr("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),l_e=new qr("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),c_e=new qr("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),u_e=new qr("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),d_e=new qr("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),h_e=new qr("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),p_e=new qr("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),f_e=new qr("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),g_e=new qr("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),m_e={zoom:{inKeyframes:s_e,outKeyframes:a_e},"zoom-big":{inKeyframes:VK,outKeyframes:zK},"zoom-big-fast":{inKeyframes:VK,outKeyframes:zK},"zoom-left":{inKeyframes:u_e,outKeyframes:d_e},"zoom-right":{inKeyframes:h_e,outKeyframes:p_e},"zoom-up":{inKeyframes:l_e,outKeyframes:c_e},"zoom-down":{inKeyframes:f_e,outKeyframes:g_e}},Bx=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:i,outKeyframes:o}=m_e[t];return[KD(n,i,o,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` ${n}-enter, ${n}-appear `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},HK=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),v_e=e=>{const{componentCls:t,fontSize:r,lineWidth:n,groupBorderColor:i,colorErrorHover:o}=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(n).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:r}},HK(`${t}-primary`,i),HK(`${t}-danger`,o)]}},W_=e=>Math.round(Number(e||0)),y_e=e=>{if(e instanceof cn)return e;if(e&&typeof e=="object"&&"h"in e&&"b"in e){const{b:t,...r}=e;return{...r,v:t}}return typeof e=="string"&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e};class Iw extends cn{constructor(t){super(y_e(t))}toHsbString(){const t=this.toHsb(),r=W_(t.s*100),n=W_(t.b*100),i=W_(t.h),o=t.a,s=`hsb(${i}, ${r}%, ${n}%)`,a=`hsba(${i}, ${r}%, ${n}%, ${o.toFixed(o===0?0:2)})`;return o===1?s:a}toHsb(){const{v:t,...r}=this.toHsv();return{...r,b:t,a:this.a}}}const C_e=e=>e instanceof Iw?e:new Iw(e);C_e("#1677ff");const b_e=(e,t)=>(e==null?void 0:e.replace(/[^0-9a-f]/gi,"").slice(0,t?8:6))||"",S_e=(e,t)=>e?b_e(e,t):"";let pM=(function(){function e(t){var n;if(Kd(this,e),this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)==null?void 0:n.map(i=>({color:new e(i.color),percent:i.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(({color:i,percent:o})=>({color:new e(i),percent:o})),this.metaColor=new Iw(this.colors[0].color.metaColor)):this.metaColor=new Iw(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return qd(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return S_e(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:r}=this;return r?`linear-gradient(90deg, ${r.map(i=>`${i.color.toRgbString()} ${i.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(r){return!r||this.isGradient()!==r.isGradient()?!1:this.isGradient()?this.colors.length===r.colors.length&&this.colors.every((n,i)=>{const o=r.colors[i];return n.percent===o.percent&&n.color.equals(o.color)}):this.toHexString()===r.toHexString()}}])})();var w_e={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"};function e$(){return e$=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,e$({},e,{ref:t,icon:w_e})),t$=v.forwardRef(x_e);function hl(){return hl=Object.assign?Object.assign.bind():function(e){for(var t=1;te instanceof pM?e:new pM(e),Nle=(e,t)=>{const{r,g:n,b:i,a:o}=e.toRgb(),s=new Iw(e.toRgbString()).onBackground(t).toHsv();return o<=.5?s.v>.5:r*.299+n*.587+i*.114>192},Ble=e=>{const{paddingInline:t,onlyIconSize:r,borderColorDisabled:n}=e;return $r(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:r,colorBorderDisabled:n})},$le=e=>{const t=e.contentFontSize??e.fontSize,r=e.contentFontSizeSM??e.fontSize,n=e.contentFontSizeLG??e.fontSizeLG,i=e.contentLineHeight??dP(t),o=e.contentLineHeightSM??dP(r),s=e.contentLineHeightLG??dP(n),a=Nle(new pM(e.colorBgSolid),"#fff")?"#000":"#fff",l=Ad.reduce((d,h)=>({...d,[`${h}ShadowColor`]:`0 ${ae(e.controlOutlineWidth)} 0 ${rS(e[`${h}1`],e.colorBgContainer)}`}),{}),c=e.colorBgContainerDisabled,u=e.colorBgContainerDisabled;return{...l,fontWeight:400,iconGap:e.marginXS,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.colorBorderDisabled,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:a,contentFontSize:t,contentFontSizeSM:r,contentFontSizeLG:n,contentLineHeight:i,contentLineHeightSM:o,contentLineHeightLG:s,paddingBlock:Math.max((e.controlHeight-t*i)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-r*o)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-n*s)/2-e.lineWidth,0),defaultBgDisabled:c,dashedBgDisabled:u}},T_e=e=>{const{componentCls:t,antCls:r,lineWidth:n}=e,[i,o]=Jn(r,"btn");return{[t]:[{[i("border-width")]:n,[i("border-color")]:"#000",[i("border-color-hover")]:o("border-color"),[i("border-color-active")]:o("border-color"),[i("border-color-disabled")]:o("border-color"),[i("border-style")]:"solid",[i("text-color")]:"#000",[i("text-color-hover")]:o("text-color"),[i("text-color-active")]:o("text-color"),[i("text-color-disabled")]:o("text-color"),[i("bg-color")]:"#ddd",[i("bg-color-hover")]:o("bg-color"),[i("bg-color-active")]:o("bg-color"),[i("bg-color-disabled")]:e.colorBgContainerDisabled,[i("bg-color-container")]:e.colorBgContainer,[i("shadow")]:"none"},{border:[o("border-width"),o("border-style"),o("border-color")].join(" "),color:o("text-color"),backgroundColor:o("bg-color"),[`&:not(:disabled):not(${t}-disabled)`]:{"&:hover":{border:[o("border-width"),o("border-style"),o("border-color-hover")].join(" "),color:o("text-color-hover"),backgroundColor:o("bg-color-hover")},"&:active":{border:[o("border-width"),o("border-style"),o("border-color-active")].join(" "),color:o("text-color-active"),backgroundColor:o("bg-color-active")}}},{[`&${t}-variant-solid`]:{[i("solid-bg-color")]:o("color-base"),[i("solid-bg-color-hover")]:o("color-hover"),[i("solid-bg-color-active")]:o("color-active"),[i("border-color")]:"transparent",[i("text-color")]:e.colorTextLightSolid,[i("bg-color")]:o("solid-bg-color"),[i("bg-color-hover")]:o("solid-bg-color-hover"),[i("bg-color-active")]:o("solid-bg-color-active"),boxShadow:o("shadow")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i("border-color")]:o("color-base"),[i("border-color-hover")]:o("color-hover"),[i("border-color-active")]:o("color-active"),[i("bg-color")]:o("bg-color-container"),[i("text-color")]:o("color-base"),[i("text-color-hover")]:o("color-hover"),[i("text-color-active")]:o("color-active"),boxShadow:o("shadow")},[`&${t}-variant-dashed`]:{[i("border-style")]:"dashed",[i("bg-color-disabled")]:e.dashedBgDisabled},[`&${t}-variant-filled`]:{[i("border-color")]:"transparent",[i("text-color")]:o("color-base"),[i("bg-color")]:o("color-light"),[i("bg-color-hover")]:o("color-light-hover"),[i("bg-color-active")]:o("color-light-active")},[`&${t}-variant-text, &${t}-variant-link`]:{[i("border-color")]:"transparent",[i("text-color")]:o("color-base"),[i("text-color-hover")]:o("color-hover"),[i("text-color-active")]:o("color-active"),[i("bg-color")]:"transparent",[i("bg-color-hover")]:"transparent",[i("bg-color-active")]:"transparent",[`&:disabled, &${e.componentCls}-disabled`]:{background:"transparent",borderColor:"transparent"}},[`&${t}-variant-text`]:{[i("bg-color-hover")]:o("color-light"),[i("bg-color-active")]:o("color-light-active")}},{[`&${t}-variant-link`]:{[i("color-base")]:e.colorLink,[i("color-hover")]:e.colorLinkHover,[i("color-active")]:e.colorLinkActive,[i("bg-color-hover")]:e.linkHoverBg},[`&${t}-color-primary`]:{[i("color-base")]:e.colorPrimary,[i("color-hover")]:e.colorPrimaryHover,[i("color-active")]:e.colorPrimaryActive,[i("color-light")]:e.colorPrimaryBg,[i("color-light-hover")]:e.colorPrimaryBgHover,[i("color-light-active")]:e.colorPrimaryBorder,[i("shadow")]:e.primaryShadow,[`&${t}-variant-solid`]:{[i("text-color")]:e.primaryColor,[i("text-color-hover")]:o("text-color"),[i("text-color-active")]:o("text-color")}},[`&${t}-color-dangerous`]:{[i("color-base")]:e.colorError,[i("color-hover")]:e.colorErrorHover,[i("color-active")]:e.colorErrorActive,[i("color-light")]:e.colorErrorBg,[i("color-light-hover")]:e.colorErrorBgFilledHover,[i("color-light-active")]:e.colorErrorBgActive,[i("shadow")]:e.dangerShadow,[`&${t}-variant-solid`]:{[i("text-color")]:e.dangerColor,[i("text-color-hover")]:o("text-color"),[i("text-color-active")]:o("text-color")}},[`&${t}-color-default`]:{[i("solid-bg-color")]:e.colorBgSolid,[i("solid-bg-color-hover")]:e.colorBgSolidHover,[i("solid-bg-color-active")]:e.colorBgSolidActive,[i("color-base")]:e.defaultBorderColor,[i("color-hover")]:e.defaultHoverBorderColor,[i("color-active")]:e.defaultActiveBorderColor,[i("color-light")]:e.colorFillTertiary,[i("color-light-hover")]:e.colorFillSecondary,[i("color-light-active")]:e.colorFill,[i("text-color")]:e.defaultColor,[i("text-color-hover")]:e.defaultHoverColor,[i("text-color-active")]:e.defaultActiveColor,[i("shadow")]:e.defaultShadow,[`&${t}-variant-outlined`]:{[i("bg-color-disabled")]:e.defaultBgDisabled},[`&${t}-variant-solid`]:{[i("text-color")]:e.solidTextColor,[i("text-color-hover")]:o("text-color"),[i("text-color-active")]:o("text-color")},[`&${t}-variant-filled, &${t}-variant-text`]:{[i("text-color-hover")]:o("text-color"),[i("text-color-active")]:o("text-color")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i("text-color")]:e.defaultColor,[i("text-color-hover")]:e.defaultHoverColor,[i("text-color-active")]:e.defaultActiveColor,[i("bg-color-container")]:e.defaultBg,[i("bg-color-hover")]:e.defaultHoverBg,[i("bg-color-active")]:e.defaultActiveBg},[`&${t}-variant-text`]:{[i("text-color")]:e.textTextColor,[i("text-color-hover")]:e.textTextHoverColor,[i("text-color-active")]:e.textTextActiveColor,[i("bg-color-hover")]:e.textHoverBg},[`&${t}-background-ghost`]:{[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i("text-color")]:e.defaultGhostColor,[i("border-color")]:e.defaultGhostBorderColor}}}},Ad.map(s=>{const a=e[`${s}6`],l=e[`${s}1`],c=e[`${s}Hover`],u=e[`${s}2`],d=e[`${s}3`],h=e[`${s}Active`],p=e[`${s}ShadowColor`];return{[`&${t}-color-${s}`]:{[i("color-base")]:a,[i("color-hover")]:c,[i("color-active")]:h,[i("color-light")]:l,[i("color-light-hover")]:u,[i("color-light-active")]:d,[i("shadow")]:p}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",borderColor:e.colorBorderDisabled,background:o("bg-color-disabled"),color:e.colorTextDisabled,boxShadow:"none"}},{[`&${t}-background-ghost`]:{[i("bg-color")]:e.ghostBg,[i("bg-color-hover")]:e.ghostBg,[i("bg-color-active")]:e.ghostBg,[i("shadow")]:"none",[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i("bg-color-hover")]:e.ghostBg,[i("bg-color-active")]:e.ghostBg}}}]}},R_e=e=>{const{componentCls:t,iconCls:r,fontWeight:n,opacityLoading:i,motionDurationSlow:o,motionEaseInOut:s,iconGap:a,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:a,alignItems:"center",justifyContent:"center",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",...bd(),"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:Dx(),"> a":{color:"currentColor"},"&:not(:disabled)":wl(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${r})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:i,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${o} ${s}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(a).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(a).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(a).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(a).mul(-1).equal()}}}}}},P_e=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),X4=(e,t="")=>{const{componentCls:r,controlHeight:n,fontSize:i,borderRadius:o,buttonPaddingHorizontal:s,iconCls:a,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:i,height:n,padding:`${ae(l)} ${ae(s)}`,borderRadius:o,[`&${r}-icon-only`]:{width:n,[a]:{fontSize:c}}}},{[`${r}${r}-circle${t}`]:P_e(e)},{[`${r}${r}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${r}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},M_e=e=>{const t=$r(e,{fontSize:e.contentFontSize});return X4(t,e.componentCls)},I_e=e=>{const t=$r(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return X4(t,`${e.componentCls}-sm`)},D_e=e=>{const t=$r(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return X4(t,`${e.componentCls}-lg`)},A_e=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},F_e=zr("Button",e=>{const t=Ble(e);return[R_e(t),M_e(t),I_e(t),D_e(t),A_e(t),T_e(t),v_e(t)]},$le,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function L_e(e,t,r,n){const{focusElCls:i,focus:o,borderElCls:s}=r,a=s?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{[l]:{zIndex:3},...i?{[`&${i}`]:{zIndex:3}}:{},[`&[disabled] ${a}`]:{zIndex:0}}}}function __e(e,t,r){const{borderElCls:n}=r,i=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function $x(e,t={focus:!0}){const{componentCls:r}=e,{componentCls:n}=t,i=n||r,o=`${i}-compact`;return{[o]:{...L_e(e,o,t,i),...__e(i,o,t)}}}function k_e(e,t,r){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function O_e(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 N_e(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:{...k_e(e,t,e.componentCls),...O_e(e.componentCls,t)}}}const B_e=e=>{const{antCls:t,componentCls:r,lineWidth:n,calc:i,colorBgContainer:o}=e,s=`${r}-variant-solid:not([disabled])`,a=i(n).mul(-1).equal(),[l,c]=Jn(t,"btn"),u=d=>({[`${r}-compact${d?"-vertical":""}-item`]:{[l("compact-connect-border-color")]:c("bg-color-hover"),[`&${s}`]:{transition:"none",[`& + ${s}:before`]:[{position:"absolute",backgroundColor:c("compact-connect-border-color"),content:'""'},d?{top:a,insetInline:a,height:n}:{insetBlock:a,insetInlineStart:a,width:n}],"&:hover:before":{display:"none"}}}});return[u(),u(!0),{[`${s}${r}-color-default`]:{[l("compact-connect-border-color")]:`color-mix(in srgb, ${c("bg-color-hover")} 75%, ${o})`}}]},$_e=Ax(["Button","compact"],e=>{const t=Ble(e);return[$x(t),N_e(t),B_e(t)]},$le);function G_e(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 V_e={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},z_e=Q.forwardRef((e,t)=>{const{_skipSemantic:r,loading:n=!1,prefixCls:i,color:o,variant:s,type:a,danger:l=!1,shape:c,size:u,disabled:d,className:h,rootClassName:p,children:f,icon:g,iconPosition:m,iconPlacement:y,ghost:b=!1,block:S=!1,htmlType:x="button",classNames:E,styles:R,style:T,autoInsertSpace:M,autoFocus:D,...A}=e,I=Li(f),L=a||"default",{getPrefixCls:F,direction:O,autoInsertSpace:k,className:B,style:H,classNames:N,styles:z,loadingIcon:W,shape:V,color:$,variant:K}=Fr("button"),q=c||V||"default",[X,Y]=v.useMemo(()=>{if(o&&s)return[o,s];if(a||l){const qe=V_e[L]||[];return l?["danger",qe[1]]:qe}return $&&K?[$,K]:["default","outlined"]},[o,s,a,l,$,K,L]),[oe,ee]=v.useMemo(()=>b&&Y==="solid"?[X,"outlined"]:[X,Y],[X,Y,b]),ne=oe==="danger",le=ne?"dangerous":oe,he=M??k??!0,re=F("btn",i),[ie,de]=F_e(re),J=v.useContext(hs),ue=d??J,ve=v.useContext(kle),pe=v.useMemo(()=>G_e(n),[n]),[me,Oe]=v.useState(pe.loading),[De,Ee]=v.useState(!1),We=v.useRef(null),ze=Pu(t,We),mt=I.length===1&&!g&&!V_(ee),Nt=v.useRef(!0);Q.useEffect(()=>(Nt.current=!1,()=>{Nt.current=!0}),[]),jr(()=>{let qe=null;pe.delay>0?qe=setTimeout(()=>{qe=null,Oe(!0)},pe.delay):Oe(pe.loading);function Re(){qe&&(clearTimeout(qe),qe=null)}return Re},[pe.delay,pe.loading]),v.useEffect(()=>{if(!We.current||!he)return;const qe=We.current.textContent||"";mt&&JB(qe)?De||Ee(!0):De&&Ee(!1)}),v.useEffect(()=>{D&&We.current&&We.current.focus()},[]);const St=Q.useCallback(qe=>{var Re;if(me||ue){qe.preventDefault();return}(Re=e.onClick)==null||Re.call(e,("href"in e,qe))},[e.onClick,me,ue]),{compactSize:Ze,compactItemClassnames:Fe}=Wp(re,O),tt=Oi(qe=>u??Ze??ve??qe),Ne=me?"loading":g,rt=y??m??"start",ot=fn(A,["navigate"]),Ye={...e,type:L,color:oe,variant:ee,danger:ne,shape:q,size:tt,disabled:ue,loading:me,iconPlacement:rt},[Ae,nt]=Gr([r?void 0:N,E],[r?void 0:z,R],{props:Ye}),Et=Z(re,ie,de,{[`${re}-${q}`]:q!=="default"&&q!=="square"&&q,[`${re}-${L}`]:L,[`${re}-dangerous`]:l,[`${re}-color-${le}`]:le,[`${re}-variant-${ee}`]:ee,[`${re}-lg`]:tt==="large",[`${re}-sm`]:tt==="small",[`${re}-icon-only`]:!f&&f!==0&&!!Ne,[`${re}-background-ghost`]:b&&!V_(ee),[`${re}-loading`]:me,[`${re}-two-chinese-chars`]:De&&he&&!me,[`${re}-block`]:S,[`${re}-rtl`]:O==="rtl",[`${re}-icon-end`]:rt==="end"},Fe,h,p,B,Ae.root),Tt={...nt.root,...H,...T},Ot={className:Ae.icon,style:nt.icon},Wt=qe=>Q.createElement(Ole,{prefixCls:re,...Ot},qe),at=Q.createElement(HLe,{existIcon:!!g,prefixCls:re,loading:me,mount:Nt.current,...Ot}),lt=n&&typeof n=="object"&&n.icon||W;let Ut;g&&!me?Ut=Wt(g):n&<?Ut=Wt(lt):Ut=at;const cr=Tn(f)?zLe(f,mt&&he,nt.content,Ae.content):null;if(ot.href!==void 0)return Q.createElement("a",{...ot,className:Z(Et,{[`${re}-disabled`]:ue}),href:ue?void 0:ot.href,style:Tt,onClick:St,ref:ze,tabIndex:ue?-1:0,"aria-disabled":ue},Ut,cr);let _e=Q.createElement("button",{...A,type:x,className:Et,style:Tt,onClick:St,disabled:ue,ref:ze},Ut,cr,Fe&&Q.createElement($_e,{prefixCls:re}));return V_(ee)||(_e=Q.createElement(Nx,{component:"Button",disabled:me},_e)),_e}),ca=z_e;ca.Group=GLe;ca.__ANT_BUTTON=!0;const U_=e=>typeof(e==null?void 0:e.then)=="function",Y4=e=>{const{type:t,children:r,prefixCls:n,buttonProps:i,close:o,autoFocus:s,emitEvent:a,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,d=v.useRef(!1),h=v.useRef(null),[p,f]=yw(!1),g=(...b)=>{o==null||o(...b)};v.useEffect(()=>{let b=null;return s&&(b=setTimeout(()=>{var S;(S=h.current)==null||S.focus({preventScroll:!0})})),()=>{b&&clearTimeout(b)}},[s]);const m=b=>{U_(b)&&(f(!0),b.then((...S)=>{f(!1,!0),g.apply(void 0,S),d.current=!1},S=>{if(f(!1,!0),d.current=!1,!(l!=null&&l()))return Promise.reject(S)}))},y=b=>{if(d.current)return;if(d.current=!0,!u){g();return}let S;if(a){if(S=u(b),c&&!U_(S)){d.current=!1,g(b);return}}else if(u.length)S=u(o),d.current=!1;else if(S=u(),!U_(S)){g();return}m(S)};return v.createElement(ca,{...H4(t),onClick:y,loading:p,prefixCls:n,...i,ref:h},r)},Gx=Q.createContext({}),{Provider:Gle}=Gx,WK=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:r,isSilent:n,mergedOkCancel:i,rootPrefixCls:o,close:s,onCancel:a,onConfirm:l,onClose:c}=v.useContext(Gx);return i?Q.createElement(Y4,{isSilent:n,actionFn:a,close:(...u)=>{s==null||s(...u),l==null||l(!1),c==null||c()},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${o}-btn`},r):null},UK=()=>{const{autoFocusButton:e,close:t,isSilent:r,okButtonProps:n,rootPrefixCls:i,okTextLocale:o,okType:s,onConfirm:a,onOk:l,onClose:c}=v.useContext(Gx);return Q.createElement(Y4,{isSilent:r,type:s||"primary",actionFn:l,close:(...u)=>{t==null||t(...u),a==null||a(!0),c==null||c()},autoFocus:e==="ok",buttonProps:n,prefixCls:`${i}-btn`},o)},Vle=v.createContext({});function jK(e,t,r){let n=t;return!n&&r&&(n=`${e}-${r}`),n}function KK(e,t){let r=e[`page${t?"Y":"X"}Offset`];const n=`scroll${t?"Top":"Left"}`;if(typeof r!="number"){const i=e.document;r=i.documentElement[n],typeof r!="number"&&(r=i.body[n])}return r}function H_e(e){const t=e.getBoundingClientRect(),r={left:t.left,top:t.top},n=e.ownerDocument,i=n.defaultView||n.parentWindow;return r.left+=KK(i),r.top+=KK(i,!0),r}function qK(e,t=!1){if(HD(e)){const r=e.nodeName.toLowerCase(),n=["input","select","textarea","button"].includes(r)||e.isContentEditable||r==="a"&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),o=Number(i);let s=null;return i&&!Number.isNaN(o)?s=o:n&&s===null&&(s=0),n&&e.disabled&&(s=null),s!==null&&(s>=0||t&&s<0)}return!1}function Z4(e,t=!1){const r=[...e.querySelectorAll("*")].filter(n=>qK(n,t));return qK(e,t)&&r.unshift(e),r}function Q4(e,t){if(!e)return;e.focus(t);const{cursor:r}=t||{};if(r&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){const n=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(n,n);break;default:e.setSelectionRange(0,n)}}}let by=null,$h=[];const r$=new Map,J4=new Map;function eH(){return $h[$h.length-1]}function W_e(e){const t=eH();if(e&&t){let r;for(const[i,o]of r$.entries())if(o===t){r=i;break}const n=J4.get(r);return!!n&&(n===e||n.contains(e))}return!1}function U_e(e){const{activeElement:t}=document;return e===t||e.contains(t)}function j_(){const e=eH(),{activeElement:t}=document;if(!W_e(t))if(e&&!U_e(e)){const r=Z4(e),n=r.includes(by)?by:r[0];n==null||n.focus({preventScroll:!0})}else by=t}function XK(e){if(e.key==="Tab"){const{activeElement:t}=document,r=eH(),n=Z4(r),i=n[n.length-1];e.shiftKey&&t===n[0]?by=i:!e.shiftKey&&t===i&&(by=n[0])}}function j_e(e,t){return e&&(r$.set(t,e),$h=$h.filter(r=>r!==e),$h.push(e),window.addEventListener("focusin",j_),window.addEventListener("keydown",XK,!0),j_()),()=>{by=null,$h=$h.filter(r=>r!==e),r$.delete(t),J4.delete(t),$h.length===0&&(window.removeEventListener("focusin",j_),window.removeEventListener("keydown",XK,!0))}}function zle(e,t){const r=xc();return v.useEffect(()=>{if(e){const i=t();if(i)return j_e(i,r)}},[e,r]),[i=>{i&&J4.set(r,i)}]}const K_e=v.memo(({children:e})=>e,(e,{shouldUpdate:t})=>!t);function fM(){return fM=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{prefixCls:r,className:n,style:i,title:o,ariaId:s,footer:a,closable:l,closeIcon:c,onClose:u,children:d,bodyStyle:h,bodyProps:p,modalRender:f,onMouseDown:g,onMouseUp:m,holderRef:y,visible:b,forceRender:S,width:x,height:E,classNames:R,styles:T,isFixedPos:M,focusTrap:D}=e,{panel:A}=Q.useContext(Vle),I=v.useRef(null),L=Pu(y,A,I),[F]=zle(b&&M&&D!==!1,()=>I.current);Q.useImperativeHandle(t,()=>({focus:()=>{var $;($=I.current)==null||$.focus({preventScroll:!0})}}));const O={};x!==void 0&&(O.width=x),E!==void 0&&(O.height=E);const k=a?Q.createElement("div",{className:Z(`${r}-footer`,R==null?void 0:R.footer),style:{...T==null?void 0:T.footer}},a):null,B=o?Q.createElement("div",{className:Z(`${r}-header`,R==null?void 0:R.header),style:{...T==null?void 0:T.header}},Q.createElement("div",{className:Z(`${r}-title`,R==null?void 0:R.title),id:s,style:{...T==null?void 0:T.title}},o)):null,H=v.useMemo(()=>typeof l=="object"&&l!==null?l:l?{closeIcon:c??Q.createElement("span",{className:`${r}-close-x`})}:{},[l,c,r]),N=ei(H,!0),z=typeof l=="object"&&l.disabled,W=l?Q.createElement("button",fM({type:"button",onClick:u,"aria-label":"Close"},N,{className:`${r}-close`,disabled:z}),H.closeIcon):null,V=Q.createElement("div",{className:Z(`${r}-container`,R==null?void 0:R.container),style:T==null?void 0:T.container},W,B,Q.createElement("div",fM({className:Z(`${r}-body`,R==null?void 0:R.body),style:{...h,...T==null?void 0:T.body}},p),d),k);return Q.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":o?s:null,"aria-modal":"true",ref:L,style:{...i,...O},className:Z(r,n),onMouseDown:g,onMouseUp:m,tabIndex:-1,onFocus:$=>{F($.target)}},Q.createElement(K_e,{shouldUpdate:b||S},f?f(V):V))});function n$(){return n$=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{prefixCls:r,title:n,style:i,className:o,visible:s,forceRender:a,destroyOnHidden:l,motionName:c,ariaId:u,onVisibleChanged:d,mousePosition:h}=e,p=v.useRef(null),f=v.useRef(null);v.useImperativeHandle(t,()=>({...f.current,inMotion:p.current.inMotion,enableMotion:p.current.enableMotion}));const[g,m]=v.useState(),y={};g&&(y.transformOrigin=g);function b(){var x;if(!((x=p.current)!=null&&x.nativeElement))return;const S=H_e(p.current.nativeElement);m(h&&(h.x||h.y)?`${h.x-S.left}px ${h.y-S.top}px`:"")}return v.createElement(gu,{visible:s,onVisibleChanged:d,onAppearPrepare:b,onEnterPrepare:b,forceRender:a,motionName:c,removeOnLeave:l,ref:p},({className:S,style:x},E)=>v.createElement(Hle,n$({},e,{ref:f,title:n,ariaId:u,prefixCls:r,holderRef:E,style:{...x,...i,...y},className:Z(o,S)})))});function i$(){return i$=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{prefixCls:t,style:r,visible:n,maskProps:i,motionName:o,className:s}=e;return v.createElement(gu,{key:"mask",visible:n,motionName:o,leavedClassName:`${t}-mask-hidden`},({className:a,style:l},c)=>v.createElement("div",i$({ref:c,style:{...l,...r},className:Z(`${t}-mask`,a,s)},i)))};function DS(){return DS=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{prefixCls:t="rc-dialog",zIndex:r,visible:n=!1,focusTriggerAfterClose:i=!0,wrapStyle:o,wrapClassName:s,wrapProps:a,onClose:l,afterOpenChange:c,afterClose:u,transitionName:d,animation:h,closable:p=!0,mask:f=!0,maskTransitionName:g,maskAnimation:m,maskClosable:y=!0,maskStyle:b,maskProps:S,rootClassName:x,rootStyle:E,classNames:R,styles:T}=e,M=v.useRef(null),D=v.useRef(null),A=v.useRef(null),[I,L]=v.useState(n),[F,O]=v.useState(!1),k=xc();function B(){cB(D.current,document.activeElement)||(M.current=document.activeElement)}function H(){var X;cB(D.current,document.activeElement)||(X=A.current)==null||X.focus()}function N(){if(L(!1),f&&M.current&&i){try{M.current.focus({preventScroll:!0})}catch{}M.current=null}I&&(u==null||u())}function z(X){X?H():N(),c==null||c(X)}function W(X){l==null||l(X)}const V=v.useRef(!1);let $=null;y&&($=X=>{D.current===X.target&&V.current&&W(X)});function K(X){V.current=X.target===D.current}v.useEffect(()=>{if(n){if(V.current=!1,L(!0),B(),D.current){const X=getComputedStyle(D.current);O(X.position==="fixed")}}else I&&A.current.enableMotion()&&!A.current.inMotion()&&N()},[n]);const q={zIndex:r,...o,...T==null?void 0:T.wrapper,display:I?null:"none"};return v.createElement("div",DS({className:Z(`${t}-root`,x),style:E},ei(e,{data:!0})),v.createElement(X_e,{prefixCls:t,visible:f&&n,motionName:jK(t,g,m),style:{zIndex:r,...b,...T==null?void 0:T.mask},maskProps:S,className:R==null?void 0:R.mask}),v.createElement("div",DS({className:Z(`${t}-wrap`,s,R==null?void 0:R.wrapper),ref:D,onClick:$,onMouseDown:K,style:q},a),v.createElement(q_e,DS({},e,{isFixedPos:F,ref:A,closable:p,ariaId:k,prefixCls:t,visible:n&&I,onClose:W,onVisibleChanged:z,motionName:jK(t,d,h)}))))};function o$(){return o$=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{visible:t,getContainer:r,forceRender:n,destroyOnHidden:i=!1,afterClose:o,closable:s,panelRef:a,keyboard:l=!0,onClose:c}=e,[u,d]=v.useState(t),h=v.useMemo(()=>({panel:a}),[a]),p=({top:f,event:g})=>{if(f&&l){g.stopPropagation(),c==null||c(g);return}};return v.useEffect(()=>{t&&d(!0)},[t]),!n&&i&&!u?null:v.createElement(Vle.Provider,{value:h},v.createElement(kx,{open:t||n||u,onEsc:p,autoDestroy:!1,getContainer:r,autoLock:t||u},v.createElement(Y_e,o$({},e,{destroyOnHidden:i,afterClose:()=>{const f=s&&typeof s=="object"?s:{},{afterClose:g}=f||{};g==null||g(),o==null||o(),d(!1)}}))))},yg="RC_FORM_INTERNAL_HOOKS",On=()=>{Vn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Hy=v.createContext({getFieldValue:On,getFieldsValue:On,getFieldError:On,getFieldWarning:On,getFieldsError:On,isFieldsTouched:On,isFieldTouched:On,isFieldValidating:On,isFieldsValidating:On,resetFields:On,setFields:On,setFieldValue:On,setFieldsValue:On,validateFields:On,submit:On,getInternalHooks:()=>(On(),{dispatch:On,initEntityValue:On,registerField:On,useSubscribe:On,setInitialValues:On,destroyForm:On,setCallbacks:On,registerWatch:On,getFields:On,setValidateMessages:On,setPreserve:On,getInitialValue:On})}),gM=v.createContext(null);function s$(e){return e==null?[]:Array.isArray(e)?e:[e]}function Q_e(e){return e&&!!e._init}function a$(){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",tel:"%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 l$=a$();function J_e(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function e2e(e,t,r){if(GD())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var i=new(e.bind.apply(e,n));return r&&Ew(i,r.prototype),i}function c$(e){var t=typeof Map=="function"?new Map:void 0;return c$=function(n){if(n===null||!J_e(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,i)}function i(){return e2e(n,arguments,tm(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Ew(i,n)},c$(e)}var t2e=/%[sdj%]/g,r2e=function(){};function u$(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function Aa(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n=o)return a;switch(a){case"%s":return String(r[i++]);case"%d":return Number(r[i++]);case"%j":try{return JSON.stringify(r[i++])}catch{return"[Circular]"}break;default:return a}});return s}return e}function n2e(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function ao(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||n2e(t)&&typeof e=="string"&&!e)}function i2e(e,t,r){var n=[],i=0,o=e.length;function s(a){n.push.apply(n,Pr(a||[])),i++,i===o&&r(n)}e.forEach(function(a){t(a,s)})}function YK(e,t,r){var n=0,i=e.length;function o(s){if(s&&s.length){r(s);return}var a=n;n=n+1,at.max?i.push(Aa(o.messages[d].max,t.fullField,t.max)):a&&l&&(ut.max)&&i.push(Aa(o.messages[d].range,t.fullField,t.min,t.max))},Wle=function(t,r,n,i,o,s){t.required&&(!n.hasOwnProperty(t.field)||ao(r,s||t.type))&&i.push(Aa(o.messages.required,t.fullField))},sT;const h2e=(function(){if(sT)return sT;var e="[a-fA-F\\d:]",t=function(R){return R&&R.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},r="(?: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}",n="[a-fA-F\\d]{1,4}",i=["(?:".concat(n,":){7}(?:").concat(n,"|:)"),"(?:".concat(n,":){6}(?:").concat(r,"|:").concat(n,"|:)"),"(?:".concat(n,":){5}(?::").concat(r,"|(?::").concat(n,"){1,2}|:)"),"(?:".concat(n,":){4}(?:(?::").concat(n,"){0,1}:").concat(r,"|(?::").concat(n,"){1,3}|:)"),"(?:".concat(n,":){3}(?:(?::").concat(n,"){0,2}:").concat(r,"|(?::").concat(n,"){1,4}|:)"),"(?:".concat(n,":){2}(?:(?::").concat(n,"){0,3}:").concat(r,"|(?::").concat(n,"){1,5}|:)"),"(?:".concat(n,":){1}(?:(?::").concat(n,"){0,4}:").concat(r,"|(?::").concat(n,"){1,6}|:)"),"(?::(?:(?::".concat(n,"){0,5}:").concat(r,"|(?::").concat(n,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",s="(?:".concat(i.join("|"),")").concat(o),a=new RegExp("(?:^".concat(r,"$)|(?:^").concat(s,"$)")),l=new RegExp("^".concat(r,"$")),c=new RegExp("^".concat(s,"$")),u=function(R){return R&&R.exact?a:new RegExp("(?:".concat(t(R)).concat(r).concat(t(R),")|(?:").concat(t(R)).concat(s).concat(t(R),")"),"g")};u.v4=function(E){return E&&E.exact?l:new RegExp("".concat(t(E)).concat(r).concat(t(E)),"g")},u.v6=function(E){return E&&E.exact?c:new RegExp("".concat(t(E)).concat(s).concat(t(E)),"g")};var d="(?:(?:[a-z]+:)?//)",h="(?:\\S+(?::\\S*)?@)?",p=u.v4().source,f=u.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",m="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",y="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",b="(?::\\d{2,5})?",S='(?:[/?#][^\\s"]*)?',x="(?:".concat(d,"|www\\.)").concat(h,"(?:localhost|").concat(p,"|").concat(f,"|").concat(g).concat(m).concat(y,")").concat(b).concat(S);return sT=new RegExp("(?:^".concat(x,"$)"),"i"),sT});var K_={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,}))$/,tel:/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},nS={integer:function(t){return nS.number(t)&&parseInt(t,10)===t},float:function(t){return nS.number(t)&&!nS.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 Ui(t)==="object"&&!nS.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(K_.email)},tel:function(t){return typeof t=="string"&&t.length<=32&&!!t.match(K_.tel)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(h2e())},hex:function(t){return typeof t=="string"&&!!t.match(K_.hex)}},p2e=function(t,r,n,i,o){if(t.required&&r===void 0){Wle(t,r,n,i,o);return}var s=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],a=t.type;s.indexOf(a)>-1?nS[a](r)||i.push(Aa(o.messages.types[a],t.fullField,t.type)):a&&Ui(r)!==t.type&&i.push(Aa(o.messages.types[a],t.fullField,t.type))},f2e=function(t,r,n,i,o){(/^\s+$/.test(r)||r==="")&&i.push(Aa(o.messages.whitespace,t.fullField))};const un={required:Wle,whitespace:f2e,type:p2e,range:d2e,enum:c2e,pattern:u2e};var g2e=function(t,r,n,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(ao(r)&&!t.required)return n();un.required(t,r,i,s,o)}n(s)},m2e=function(t,r,n,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(r==null&&!t.required)return n();un.required(t,r,i,s,o,"array"),r!=null&&(un.type(t,r,i,s,o),un.range(t,r,i,s,o))}n(s)},v2e=function(t,r,n,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(ao(r)&&!t.required)return n();un.required(t,r,i,s,o),r!==void 0&&un.type(t,r,i,s,o)}n(s)},y2e=function(t,r,n,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(ao(r,"date")&&!t.required)return n();if(un.required(t,r,i,s,o),!ao(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),un.type(t,l,i,s,o),l&&un.range(t,l.getTime(),i,s,o)}}n(s)},C2e="enum",b2e=function(t,r,n,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(ao(r)&&!t.required)return n();un.required(t,r,i,s,o),r!==void 0&&un[C2e](t,r,i,s,o)}n(s)},S2e=function(t,r,n,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(ao(r)&&!t.required)return n();un.required(t,r,i,s,o),r!==void 0&&(un.type(t,r,i,s,o),un.range(t,r,i,s,o))}n(s)},w2e=function(t,r,n,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(ao(r)&&!t.required)return n();un.required(t,r,i,s,o),r!==void 0&&(un.type(t,r,i,s,o),un.range(t,r,i,s,o))}n(s)},x2e=function(t,r,n,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(ao(r)&&!t.required)return n();un.required(t,r,i,s,o),r!==void 0&&un.type(t,r,i,s,o)}n(s)},E2e=function(t,r,n,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(r===""&&(r=void 0),ao(r)&&!t.required)return n();un.required(t,r,i,s,o),r!==void 0&&(un.type(t,r,i,s,o),un.range(t,r,i,s,o))}n(s)},T2e=function(t,r,n,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(ao(r)&&!t.required)return n();un.required(t,r,i,s,o),r!==void 0&&un.type(t,r,i,s,o)}n(s)},R2e=function(t,r,n,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(ao(r,"string")&&!t.required)return n();un.required(t,r,i,s,o),ao(r,"string")||un.pattern(t,r,i,s,o)}n(s)},P2e=function(t,r,n,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(ao(r)&&!t.required)return n();un.required(t,r,i,s,o),ao(r)||un.type(t,r,i,s,o)}n(s)},M2e=function(t,r,n,i,o){var s=[],a=Array.isArray(r)?"array":Ui(r);un.required(t,r,i,s,o,a),n(s)},I2e=function(t,r,n,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(ao(r,"string")&&!t.required)return n();un.required(t,r,i,s,o,"string"),ao(r,"string")||(un.type(t,r,i,s,o),un.range(t,r,i,s,o),un.pattern(t,r,i,s,o),t.whitespace===!0&&un.whitespace(t,r,i,s,o))}n(s)},aT=function(t,r,n,i,o){var s=t.type,a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(ao(r,s)&&!t.required)return n();un.required(t,r,i,a,o,s),ao(r,s)||un.type(t,r,i,a,o)}n(a)};const AS={string:I2e,method:x2e,number:E2e,boolean:v2e,regexp:P2e,integer:w2e,float:S2e,array:m2e,object:T2e,enum:b2e,pattern:R2e,date:y2e,url:aT,hex:aT,email:aT,tel:aT,required:M2e,any:g2e};var Vx=(function(){function e(t){Kd(this,e),Bn(this,"rules",null),Bn(this,"_messages",l$),this.define(t)}return qd(e,[{key:"define",value:function(r){var n=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(Ui(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(i){var o=r[i];n.rules[i]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(r){return r&&(this._messages=JK(a$(),r)),this._messages}},{key:"validate",value:function(r){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},s=r,a=i,l=o;if(typeof a=="function"&&(l=a,a={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,s),Promise.resolve(s);function c(f){var g=[],m={};function y(S){if(Array.isArray(S)){var x;g=(x=g).concat.apply(x,Pr(S))}else g.push(S)}for(var b=0;b0&&arguments[0]!==void 0?arguments[0]:[],M=Array.isArray(T)?T:[T];!a.suppressWarning&&M.length&&e.warning("async-validator:",M),M.length&&m.message!==void 0&&m.message!==null&&(M=[].concat(m.message));var D=M.map(QK(m,s));if(a.first&&D.length)return p[m.field]=1,g(D);if(!y)g(D);else{if(m.required&&!f.value)return m.message!==void 0?D=[].concat(m.message).map(QK(m,s)):a.error&&(D=[a.error(m,Aa(a.messages.required,m.field))]),g(D);var A={};m.defaultField&&Object.keys(f.value).map(function(F){A[F]=m.defaultField}),A=Ci(Ci({},A),f.rule.fields);var I={};Object.keys(A).forEach(function(F){var O=A[F],k=Array.isArray(O)?O:[O];I[F]=k.map(b.bind(null,F))});var L=new e(I);L.messages(a.messages),f.rule.options&&(f.rule.options.messages=a.messages,f.rule.options.error=a.error),L.validate(f.value,f.rule.options||a,function(F){var O=[];D&&D.length&&O.push.apply(O,Pr(D)),F&&F.length&&O.push.apply(O,Pr(F)),g(O.length?O:null)})}}var x;if(m.asyncValidator)x=m.asyncValidator(m,f.value,S,f.source,a);else if(m.validator){try{x=m.validator(m,f.value,S,f.source,a)}catch(T){var E,R;(E=(R=console).error)===null||E===void 0||E.call(R,T),a.suppressValidatorError||setTimeout(function(){throw T},0),S(T.message)}x===!0?S():x===!1?S(typeof m.message=="function"?m.message(m.fullField||m.field):m.message||"".concat(m.fullField||m.field," fails")):x instanceof Array?S(x):x instanceof Error&&S(x.message)}x&&x.then&&x.then(function(){return S()},function(T){return S(T)})},function(f){c(f)},s)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!AS.hasOwnProperty(r.type))throw new Error(Aa("Unknown rule type %s",r.type));return r.type||"string"}},{key:"getValidationMethod",value:function(r){if(typeof r.validator=="function")return r.validator;var n=Object.keys(r),i=n.indexOf("message");return i!==-1&&n.splice(i,1),n.length===1&&n[0]==="required"?AS.required:AS[this.getType(r)]||void 0}}]),e})();Bn(Vx,"register",function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");AS[t]=r});Bn(Vx,"warning",r2e);Bn(Vx,"messages",l$);Bn(Vx,"validators",AS);const Hs="'${name}' is not a valid ${type}",Ule={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:Hs,method:Hs,array:Hs,object:Hs,number:Hs,date:Hs,boolean:Hs,integer:Hs,float:Hs,regexp:Hs,email:Hs,tel:Hs,url:Hs,hex:Hs},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}"}},eq=Vx;function D2e(e,t){return e.replace(/\\?\$\{\w+\}/g,r=>{if(r.startsWith("\\"))return r.slice(1);const n=r.slice(2,-1);return t[n]})}const tq="CODE_LOGIC_ERROR";async function d$(e,t,r,n,i){const o={...r};if(delete o.ruleIndex,eq.warning=()=>{},o.validator){const h=o.validator;o.validator=(...p)=>{try{return h(...p)}catch(f){return console.error(f),Promise.reject(tq)}}}let s=null;o&&o.type==="array"&&o.defaultField&&(s=o.defaultField,delete o.defaultField);const a=new eq({[e]:[o]}),l=ry(Ule,n.validateMessages);a.messages(l);let c=[];try{await Promise.resolve(a.validate({[e]:t},{...n}))}catch(h){h.errors&&(c=h.errors.map(({message:p},f)=>{const g=p===tq?l.default:p;return v.isValidElement(g)?v.cloneElement(g,{key:`error_${f}`}):g}))}if(!c.length&&s&&Array.isArray(t)&&t.length>0)return(await Promise.all(t.map((p,f)=>d$(`${e}.${f}`,p,s,n,i)))).reduce((p,f)=>[...p,...f],[]);const u={...r,name:e,enum:(r.enum||[]).join(", "),...i};return c.map(h=>typeof h=="string"?D2e(h,u):h)}function A2e(e,t,r,n,i,o){const s=e.join("."),a=r.map((c,u)=>{const d=c.validator,h={...c,ruleIndex:u};return d&&(h.validator=(p,f,g)=>{let m=!1;const b=d(p,f,(...S)=>{Promise.resolve().then(()=>{Vn(!m,"Your validator function has already return a promise. `callback` will be ignored."),m||g(...S)})});m=b&&typeof b.then=="function"&&typeof b.catch=="function",Vn(m,"`callback` is deprecated. Please return a promise instead."),m&&b.then(()=>{g()}).catch(S=>{g(S||" ")})}),h}).sort(({warningOnly:c,ruleIndex:u},{warningOnly:d,ruleIndex:h})=>!!c==!!d?u-h:c?1:-1);let l;if(i===!0)l=new Promise(async(c,u)=>{for(let d=0;dd$(s,t,u,n,o).then(d=>({errors:d,rule:u})));l=(i?L2e(c):F2e(c)).then(u=>Promise.reject(u))}return l.catch(c=>c),l}async function F2e(e){return Promise.all(e).then(t=>[].concat(...t))}async function L2e(e){let t=0;return new Promise(r=>{e.forEach(n=>{n.then(i=>{i.errors.length&&r([i]),t+=1,t===e.length&&r([])})})})}function yi(e){return s$(e)}function rq(e,t){let r={};return t.forEach(n=>{const i=Zs(e,n);r=sl(r,n,i)}),r}function Sy(e,t,r=!1){return e&&e.some(n=>mM(t,n,r))}function mM(e,t,r=!1){return!e||!t||!r&&e.length!==t.length?!1:t.every((n,i)=>e[i]===n)}function _2e(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||typeof e!="object"||typeof t!="object")return!1;const r=Object.keys(e),n=Object.keys(t);return[...new Set([...r,...n])].every(o=>{const s=e[o],a=t[o];return typeof s=="function"&&typeof a=="function"?!0:s===a})}function k2e(e,...t){const r=t[0];return r&&r.target&&typeof r.target=="object"&&e in r.target?r.target[e]:r}function nq(e,t,r){const{length:n}=e;if(t<0||t>=n||r<0||r>=n)return e;const i=e[t],o=t-r;return o>0?[...e.slice(0,r),i,...e.slice(r,t),...e.slice(t+1,n)]:o<0?[...e.slice(0,t),...e.slice(t+1,r+1),i,...e.slice(r+1,n)]:e}async function O2e(){return new Promise(e=>{Or(()=>{e()})})}function h$(){return h$=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{preserve:r,isListField:n,name:i}=this.props;this.cancelRegisterFunc&&this.cancelRegisterFunc(n,r,yi(i)),this.cancelRegisterFunc=null});Ie(this,"getNamePath",()=>{const{name:r,fieldContext:n}=this.props,{prefixName:i=[]}=n;return r!==void 0?[...i,...r]:[]});Ie(this,"getRules",()=>{const{rules:r=[],fieldContext:n}=this.props;return r.map(i=>typeof i=="function"?i(n):i)});Ie(this,"refresh",()=>{this.mounted&&this.setState(({resetCount:r})=>({resetCount:r+1}))});Ie(this,"metaCache",null);Ie(this,"triggerMetaEvent",r=>{const{onMetaChange:n}=this.props;if(n){const i={...this.getMeta(),destroy:r};fc(this.metaCache,i)||n(i),this.metaCache=i}else this.metaCache=null});Ie(this,"onStoreChange",(r,n,i)=>{const{shouldUpdate:o,dependencies:s=[],onReset:a}=this.props,{store:l}=i,c=this.getNamePath(),u=this.getValue(r),d=this.getValue(l),h=n&&Sy(n,c);switch(i.type==="valueUpdate"&&i.source==="external"&&!fc(u,d)&&(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=yf,this.warnings=o0,this.triggerMetaEvent()),i.type){case"reset":if(!n||h){this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=yf,this.warnings=o0,this.triggerMetaEvent(),a==null||a(),this.refresh();return}break;case"remove":{if(o&&q_(o,r,l,u,d,i)){this.reRender();return}break}case"setField":{const{data:p}=i;if(h){"touched"in p&&(this.touched=p.touched),"validating"in p&&!("originRCField"in p)&&(this.validatePromise=p.validating?Promise.resolve([]):null),"errors"in p&&(this.errors=p.errors||yf),"warnings"in p&&(this.warnings=p.warnings||o0),this.dirty=!0,this.triggerMetaEvent(),this.reRender();return}else if("value"in p&&Sy(n,c,!0)){this.reRender();return}if(o&&!c.length&&q_(o,r,l,u,d,i)){this.reRender();return}break}case"dependenciesUpdate":{if(s.map(yi).some(f=>Sy(i.relatedFields,f))){this.reRender();return}break}default:if(h||(!s.length||c.length||o)&&q_(o,r,l,u,d,i)){this.reRender();return}break}o===!0&&this.reRender()});Ie(this,"validateRules",r=>{const n=this.getNamePath(),i=this.getValue(),{triggerName:o,validateOnly:s=!1,delayFrame:a}=r||{},l=Promise.resolve().then(async()=>{if(!this.mounted)return[];const{validateFirst:c=!1,messageVariables:u,validateDebounce:d}=this.props;a&&await O2e();let h=this.getRules();if(o&&(h=h.filter(f=>f).filter(f=>{const{validateTrigger:g}=f;return g?s$(g).includes(o):!0})),d&&o&&(await new Promise(f=>{setTimeout(f,d)}),this.validatePromise!==l))return[];const p=A2e(n,i,h,r,c,u);return p.catch(f=>f).then((f=yf)=>{var g;if(this.validatePromise===l){this.validatePromise=null;const m=[],y=[];(g=f.forEach)==null||g.call(f,({rule:{warningOnly:b},errors:S=yf})=>{b?y.push(...S):m.push(...S)}),this.errors=m,this.warnings=y,this.triggerMetaEvent(),this.reRender()}}),p});return s||(this.validatePromise=l,this.dirty=!0,this.errors=yf,this.warnings=o0,this.triggerMetaEvent(),this.reRender()),l});Ie(this,"isFieldValidating",()=>!!this.validatePromise);Ie(this,"isFieldTouched",()=>this.touched);Ie(this,"isFieldDirty",()=>{if(this.dirty||this.props.initialValue!==void 0)return!0;const{fieldContext:r}=this.props,{getInitialValue:n}=r.getInternalHooks(yg);return n(this.getNamePath())!==void 0});Ie(this,"getErrors",()=>this.errors);Ie(this,"getWarnings",()=>this.warnings);Ie(this,"isListField",()=>this.props.isListField);Ie(this,"isList",()=>this.props.isList);Ie(this,"isPreserve",()=>this.props.preserve);Ie(this,"getMeta",()=>(this.prevValidating=this.isFieldValidating(),{touched:this.isFieldTouched(),validating:this.prevValidating,errors:this.errors,warnings:this.warnings,name:this.getNamePath(),validated:this.validatePromise===null}));Ie(this,"getOnlyChild",r=>{if(typeof r=="function"){const i=this.getMeta();return{...this.getOnlyChild(r(this.getControlled(),i,this.props.fieldContext)),isFunction:!0}}const n=Li(r);return n.length!==1||!v.isValidElement(n[0])?{child:n,isFunction:!1}:{child:n[0],isFunction:!1}});Ie(this,"getValue",r=>{const{getFieldsValue:n}=this.props.fieldContext,i=this.getNamePath();return Zs(r||n(!0),i)});Ie(this,"getControlled",(r={})=>{const{name:n,trigger:i="onChange",validateTrigger:o,getValueFromEvent:s,normalize:a,valuePropName:l="value",getValueProps:c,fieldContext:u}=this.props,d=o!==void 0?o:u.validateTrigger,h=this.getNamePath(),{getInternalHooks:p,getFieldsValue:f}=u,{dispatch:g}=p(yg),m=this.getValue(),y=c||(R=>({[l]:R})),b=r[i],S=n!==void 0?y(m):{},x={...r,...S};return x[i]=(...R)=>{this.touched=!0,this.dirty=!0,this.triggerMetaEvent();let T;s?T=s(...R):T=k2e(l,...R),a&&(T=a(T,m,f(!0))),T!==m&&g({type:"updateValue",namePath:h,value:T}),b&&b(...R)},s$(d||[]).forEach(R=>{const T=x[R];x[R]=(...M)=>{T&&T(...M);const{rules:D}=this.props;D&&D.length&&g({type:"validateField",namePath:h,triggerName:R})}}),x});if(r.fieldContext){const{getInternalHooks:n}=r.fieldContext,{initEntityValue:i}=n(yg);i(this)}}componentDidMount(){const{shouldUpdate:r,fieldContext:n}=this.props;if(this.mounted=!0,n){const{getInternalHooks:i}=n,{registerField:o}=i(yg);this.cancelRegisterFunc=o(this)}r===!0&&this.reRender()}componentWillUnmount(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}reRender(){this.mounted&&this.forceUpdate()}render(){const{resetCount:r}=this.state,{children:n}=this.props,{child:i,isFunction:o}=this.getOnlyChild(n);let s;return o?s=i:v.isValidElement(i)?s=v.cloneElement(i,this.getControlled(i.props)):(Vn(!i,"`children` of Field is not validate ReactElement."),s=i),v.createElement(v.Fragment,{key:r},s)}}Ie(jle,"contextType",Hy);function Kle({name:e,...t}){const r=v.useContext(Hy),n=v.useContext(gM),i=e!==void 0?yi(e):void 0,o=t.isListField??!!n;let s="keep";return o||(s=`_${(i||[]).join("_")}`),v.createElement(jle,h$({key:s,name:i,isListField:o},t,{fieldContext:r}))}function N2e({name:e,initialValue:t,children:r,rules:n,validateTrigger:i,isListField:o}){const s=v.useContext(Hy),a=v.useContext(gM),c=v.useRef({keys:[],id:0}).current,u=v.useMemo(()=>[...yi(s.prefixName)||[],...yi(e)],[s.prefixName,e]),d=v.useMemo(()=>({...s,prefixName:u}),[s,u]),h=v.useMemo(()=>({getKey:f=>{const g=u.length,m=f[g];return[c.keys[m],f.slice(g+1)]}}),[c,u]);if(typeof r!="function")return Vn(!1,"Form.List only accepts function as children."),null;const p=(f,g,{source:m})=>m==="internal"?!1:f!==g;return v.createElement(gM.Provider,{value:h},v.createElement(Hy.Provider,{value:d},v.createElement(Kle,{name:[],shouldUpdate:p,rules:n,validateTrigger:i,initialValue:t,isList:!0,isListField:o??!!a},({value:f=[],onChange:g},m)=>{const{getFieldValue:y}=s,b=()=>y(u||[])||[],S={add:(E,R)=>{const T=b();R>=0&&R<=T.length?(c.keys=[...c.keys.slice(0,R),c.id,...c.keys.slice(R)],g([...T.slice(0,R),E,...T.slice(R)])):(c.keys=[...c.keys,c.id],g([...T,E])),c.id+=1},remove:E=>{const R=b(),T=new Set(Array.isArray(E)?E:[E]);T.size<=0||(c.keys=c.keys.filter((M,D)=>!T.has(D)),g(R.filter((M,D)=>!T.has(D))))},move(E,R){if(E===R)return;const T=b();E<0||E>=T.length||R<0||R>=T.length||(c.keys=nq(c.keys,E,R),g(nq(T,E,R)))}};let x=f||[];return Array.isArray(x)||(x=[]),r(x.map((E,R)=>{let T=c.keys[R];return T===void 0&&(c.keys[R]=c.id,T=c.keys[R],c.id+=1),{name:R,key:T,isListField:!0}}),S,m)})))}function B2e(e){let t=!1,r=e.length;const n=[];return e.length?new Promise((i,o)=>{e.forEach((s,a)=>{s.catch(l=>(t=!0,l)).then(l=>{r-=1,n[a]=l,!(r>0)&&(t&&o(n),i(n))})})}):Promise.resolve([])}const p$="__@field_split__";function lT(e){return e.map(t=>`${typeof t}:${t}`).join(p$)}class gv{constructor(){Ie(this,"kvs",new Map)}set(t,r){this.kvs.set(lT(t),r)}get(t){return this.kvs.get(lT(t))}getAsPrefix(t){const r=lT(t),n=r+p$,i=[],o=this.kvs.get(r);return o!==void 0&&i.push(o),this.kvs.forEach((s,a)=>{a.startsWith(n)&&i.push(s)}),i}update(t,r){const n=this.get(t),i=r(n);i?this.set(t,i):this.delete(t)}delete(t){this.kvs.delete(lT(t))}map(t){return[...this.kvs.entries()].map(([r,n])=>{const i=r.split(p$);return t({key:i.map(o=>{const[,s,a]=o.match(/^([^:]*):(.*)$/);return s==="number"?Number(a):a}),value:n})})}toJSON(){const t={};return this.map(({key:r,value:n})=>(t[r.join(".")]=n,null)),t}}const $2e=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)};class G2e{constructor(t){Ie(this,"namePathList",[]);Ie(this,"taskId",0);Ie(this,"watcherList",new Set);Ie(this,"form");this.form=t}register(t){return this.watcherList.add(t),()=>{this.watcherList.delete(t)}}notify(t){t.forEach(r=>{this.namePathList.every(n=>!mM(n,r))&&this.namePathList.push(r)}),this.doBatch()}doBatch(){this.taskId+=1;const t=this.taskId;$2e(()=>{if(t===this.taskId&&this.watcherList.size){const r=this.form.getForm(),n=r.getFieldsValue(),i=r.getFieldsValue(!0);this.watcherList.forEach(o=>{o(n,i,this.namePathList)}),this.namePathList=[]}})}}class V2e{constructor(t){Ie(this,"formHooked",!1);Ie(this,"forceRootUpdate");Ie(this,"subscribable",!0);Ie(this,"store",{});Ie(this,"fieldEntities",[]);Ie(this,"initialValues",{});Ie(this,"callbacks",{});Ie(this,"validateMessages",null);Ie(this,"preserve",null);Ie(this,"lastValidatePromise",null);Ie(this,"watcherCenter",new G2e(this));Ie(this,"getForm",()=>({getFieldValue:this.getFieldValue,getFieldsValue:this.getFieldsValue,getFieldError:this.getFieldError,getFieldWarning:this.getFieldWarning,getFieldsError:this.getFieldsError,isFieldsTouched:this.isFieldsTouched,isFieldTouched:this.isFieldTouched,isFieldValidating:this.isFieldValidating,isFieldsValidating:this.isFieldsValidating,resetFields:this.resetFields,setFields:this.setFields,setFieldValue:this.setFieldValue,setFieldsValue:this.setFieldsValue,validateFields:this.validateFields,submit:this.submit,_init:!0,getInternalHooks:this.getInternalHooks}));Ie(this,"getInternalHooks",t=>t===yg?(this.formHooked=!0,{dispatch:this.dispatch,initEntityValue:this.initEntityValue,registerField:this.registerField,useSubscribe:this.useSubscribe,setInitialValues:this.setInitialValues,destroyForm:this.destroyForm,setCallbacks:this.setCallbacks,setValidateMessages:this.setValidateMessages,getFields:this.getFields,setPreserve:this.setPreserve,getInitialValue:this.getInitialValue,registerWatch:this.registerWatch}):(Vn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null));Ie(this,"useSubscribe",t=>{this.subscribable=t});Ie(this,"prevWithoutPreserves",null);Ie(this,"setInitialValues",(t,r)=>{var n;if(this.initialValues=t||{},r){let i=ry(t,this.store);(n=this.prevWithoutPreserves)==null||n.map(({key:o})=>{i=sl(i,o,Zs(t,o))}),this.prevWithoutPreserves=null,this.updateStore(i)}});Ie(this,"destroyForm",t=>{if(t)this.updateStore({});else{const r=new gv;this.getFieldEntities(!0).forEach(n=>{this.isMergedPreserve(n.isPreserve())||r.set(n.getNamePath(),!0)}),this.prevWithoutPreserves=r}});Ie(this,"getInitialValue",t=>{const r=Zs(this.initialValues,t);return t.length?ry(r):r});Ie(this,"setCallbacks",t=>{this.callbacks=t});Ie(this,"setValidateMessages",t=>{this.validateMessages=t});Ie(this,"setPreserve",t=>{this.preserve=t});Ie(this,"registerWatch",t=>this.watcherCenter.register(t));Ie(this,"notifyWatch",(t=[])=>{this.watcherCenter.notify(t)});Ie(this,"timeoutId",null);Ie(this,"warningUnhooked",()=>{});Ie(this,"updateStore",t=>{this.store=t});Ie(this,"getFieldEntities",(t=!1)=>t?this.fieldEntities.filter(r=>r.getNamePath().length):this.fieldEntities);Ie(this,"getFieldsMap",(t=!1)=>{const r=new gv;return this.getFieldEntities(t).forEach(n=>{const i=n.getNamePath();r.set(i,n)}),r});Ie(this,"getFieldEntitiesForNamePathList",(t,r=!1)=>{if(!t)return this.getFieldEntities(!0);const n=this.getFieldsMap(!0);return r?t.flatMap(i=>{const o=yi(i),s=n.getAsPrefix(o);return s.length?s:[{INVALIDATE_NAME_PATH:o}]}):t.map(i=>{const o=yi(i);return n.get(o)||{INVALIDATE_NAME_PATH:yi(i)}})});Ie(this,"getFieldsValue",(t,r)=>{this.warningUnhooked();let n,i;if(t===!0||Array.isArray(t)?(n=t,i=r):t&&typeof t=="object"&&(i=t.filter),n===!0&&!i)return this.store;const o=this.getFieldEntitiesForNamePathList(Array.isArray(n)?n:null,!0),s=[],a=[];o.forEach(c=>{var d;const u=c.INVALIDATE_NAME_PATH||c.getNamePath();if((d=c.isList)!=null&&d.call(c)){a.push(u);return}if(!i)s.push(u);else{const h="getMeta"in c?c.getMeta():null;i(h)&&s.push(u)}});let l=rq(this.store,s.map(yi));return a.forEach(c=>{Zs(l,c)||(l=sl(l,c,[]))}),l});Ie(this,"getFieldValue",t=>{this.warningUnhooked();const r=yi(t);return Zs(this.store,r)});Ie(this,"getFieldsError",t=>(this.warningUnhooked(),this.getFieldEntitiesForNamePathList(t).map((n,i)=>n&&!n.INVALIDATE_NAME_PATH?{name:n.getNamePath(),errors:n.getErrors(),warnings:n.getWarnings()}:{name:yi(t[i]),errors:[],warnings:[]})));Ie(this,"getFieldError",t=>{this.warningUnhooked();const r=yi(t);return this.getFieldsError([r])[0].errors});Ie(this,"getFieldWarning",t=>{this.warningUnhooked();const r=yi(t);return this.getFieldsError([r])[0].warnings});Ie(this,"isFieldsTouched",(...t)=>{this.warningUnhooked();const[r,n]=t;let i,o=!1;t.length===0?i=null:t.length===1?Array.isArray(r)?(i=r.map(yi),o=!1):(i=null,o=r):(i=r.map(yi),o=n);const s=this.getFieldEntities(!0),a=d=>d.isFieldTouched();if(!i)return o?s.every(d=>a(d)||d.isList()):s.some(a);const l=new gv;i.forEach(d=>{l.set(d,[])}),s.forEach(d=>{const h=d.getNamePath();i.forEach(p=>{p.every((f,g)=>h[g]===f)&&l.update(p,f=>[...f,d])})});const c=d=>d.some(a),u=l.map(({value:d})=>d);return o?u.every(c):u.some(c)});Ie(this,"isFieldTouched",t=>(this.warningUnhooked(),this.isFieldsTouched([t])));Ie(this,"isFieldsValidating",t=>{this.warningUnhooked();const r=this.getFieldEntities();if(!t)return r.some(i=>i.isFieldValidating());const n=t.map(yi);return r.some(i=>{const o=i.getNamePath();return Sy(n,o)&&i.isFieldValidating()})});Ie(this,"isFieldValidating",t=>(this.warningUnhooked(),this.isFieldsValidating([t])));Ie(this,"resetWithFieldInitialValue",(t={})=>{const r=new gv,n=this.getFieldEntities(!0);n.forEach(s=>{const{initialValue:a}=s.props,l=s.getNamePath();if(a!==void 0){const c=r.get(l)||new Set;c.add({entity:s,value:a}),r.set(l,c)}});const i=s=>{s.forEach(a=>{const{initialValue:l}=a.props;if(l!==void 0){const c=a.getNamePath();if(this.getInitialValue(c)!==void 0)Vn(!1,`Form already set 'initialValues' with path '${c.join(".")}'. Field can not overwrite it.`);else{const d=r.get(c);if(d&&d.size>1)Vn(!1,`Multiple Field with path '${c.join(".")}' set 'initialValue'. Can not decide which one to pick.`);else if(d){const h=this.getFieldValue(c);!a.isListField()&&(!t.skipExist||h===void 0)&&this.updateStore(sl(this.store,c,[...d][0].value))}}}})};let o;t.entities?o=t.entities:t.namePathList?(o=[],t.namePathList.forEach(s=>{const a=r.get(s);a&&o.push(...[...a].map(l=>l.entity))})):o=n,i(o)});Ie(this,"resetFields",t=>{this.warningUnhooked();const r=this.store;if(!t){this.updateStore(ry(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(r,null,{type:"reset"}),this.notifyWatch();return}const n=t.map(yi);n.forEach(i=>{const o=this.getInitialValue(i);this.updateStore(sl(this.store,i,o))}),this.resetWithFieldInitialValue({namePathList:n}),this.notifyObservers(r,n,{type:"reset"}),this.notifyWatch(n)});Ie(this,"setFields",t=>{this.warningUnhooked();const r=this.store,n=[];t.forEach(i=>{const{name:o,...s}=i,a=yi(o);n.push(a),"value"in s&&this.updateStore(sl(this.store,a,s.value)),this.notifyObservers(r,[a],{type:"setField",data:i})}),this.notifyWatch(n)});Ie(this,"getFields",()=>this.getFieldEntities(!0).map(n=>{const i=n.getNamePath(),s={...n.getMeta(),name:i,value:this.getFieldValue(i)};return Object.defineProperty(s,"originRCField",{value:!0}),s}));Ie(this,"initEntityValue",t=>{const{initialValue:r}=t.props;if(r!==void 0){const n=t.getNamePath();Zs(this.store,n)===void 0&&this.updateStore(sl(this.store,n,r))}});Ie(this,"isMergedPreserve",t=>(t!==void 0?t:this.preserve)??!0);Ie(this,"registerField",t=>{this.fieldEntities.push(t);const r=t.getNamePath();if(this.notifyWatch([r]),t.props.initialValue!==void 0){const n=this.store;this.resetWithFieldInitialValue({entities:[t],skipExist:!0}),this.notifyObservers(n,[t.getNamePath()],{type:"valueUpdate",source:"internal"})}return(n,i,o=[])=>{if(this.fieldEntities=this.fieldEntities.filter(s=>s!==t),!this.isMergedPreserve(i)&&(!n||o.length>1)){const s=n?void 0:this.getInitialValue(r);if(r.length&&this.getFieldValue(r)!==s&&this.fieldEntities.every(a=>!mM(a.getNamePath(),r))){const a=this.store;this.updateStore(sl(a,r,s,!0)),this.notifyObservers(a,[r],{type:"remove"}),this.triggerDependenciesUpdate(a,r)}}this.notifyWatch([r])}});Ie(this,"dispatch",t=>{switch(t.type){case"updateValue":{const{namePath:r,value:n}=t;this.updateValue(r,n);break}case"validateField":{const{namePath:r,triggerName:n}=t;this.validateFields([r],{triggerName:n});break}}});Ie(this,"notifyObservers",(t,r,n)=>{if(this.subscribable){const i={...n,store:this.getFieldsValue(!0)};this.getFieldEntities().forEach(({onStoreChange:o})=>{o(t,r,i)})}else this.forceRootUpdate()});Ie(this,"triggerDependenciesUpdate",(t,r)=>{const n=this.getDependencyChildrenFields(r);return n.length&&this.validateFields(n,{delayFrame:!0}),this.notifyObservers(t,n,{type:"dependenciesUpdate",relatedFields:[r,...n]}),n});Ie(this,"updateValue",(t,r)=>{const n=yi(t),i=this.store;this.updateStore(sl(this.store,n,r)),this.notifyObservers(i,[n],{type:"valueUpdate",source:"internal"}),this.notifyWatch([n]);const o=this.triggerDependenciesUpdate(i,n),{onValuesChange:s}=this.callbacks;if(s){const a=this.getFieldsMap(!0).get(n),l=rq(this.store,[n]),c=this.getFieldsValue(),u=Xse([c,l],{prepareArray:d=>a!=null&&a.isList()?[]:[...d||[]]});s(l,u)}this.triggerOnFieldsChange([n,...o])});Ie(this,"setFieldsValue",t=>{this.warningUnhooked();const r=this.store;if(t){const n=ry(this.store,t);this.updateStore(n)}this.notifyObservers(r,null,{type:"valueUpdate",source:"external"}),this.notifyWatch()});Ie(this,"setFieldValue",(t,r)=>{this.setFields([{name:t,value:r,errors:[],warnings:[],touched:!0}])});Ie(this,"getDependencyChildrenFields",t=>{const r=new Set,n=[],i=new gv;this.getFieldEntities().forEach(s=>{const{dependencies:a}=s.props;(a||[]).forEach(l=>{const c=yi(l);i.update(c,(u=new Set)=>(u.add(s),u))})});const o=s=>{(i.get(s)||new Set).forEach(l=>{if(!r.has(l)){r.add(l);const c=l.getNamePath();l.isFieldDirty()&&c.length&&(n.push(c),o(c))}})};return o(t),n});Ie(this,"triggerOnFieldsChange",(t,r)=>{const{onFieldsChange:n}=this.callbacks;if(n){const i=this.getFields();if(r){const s=new gv;r.forEach(({name:a,errors:l})=>{s.set(a,l)}),i.forEach(a=>{a.errors=s.get(a.name)||a.errors})}const o=i.filter(({name:s})=>Sy(t,s));o.length&&n(o,i)}});Ie(this,"validateFields",(t,r)=>{this.warningUnhooked();let n,i;Array.isArray(t)||typeof t=="string"||typeof r=="string"?(n=t,i=r):i=t;const o=!!n,s=o?n.map(yi):[],a=[...s],l=[],c=String(Date.now()),u=new Set,{recursive:d,dirty:h}=i||{};this.getFieldEntities(!0).forEach(m=>{const y=m.getNamePath();if(o||((!m.isList()||!s.some(b=>mM(b,y,!0)))&&a.push(y),s.push(y)),!(!m.props.rules||!m.props.rules.length)&&!(h&&!m.isFieldDirty())&&(u.add(y.join(c)),!o||Sy(s,y,d))){const b=m.validateRules({validateMessages:{...Ule,...this.validateMessages},...i});l.push(b.then(()=>({name:y,errors:[],warnings:[]})).catch(S=>{var R;const x=[],E=[];return(R=S.forEach)==null||R.call(S,({rule:{warningOnly:T},errors:M})=>{T?E.push(...M):x.push(...M)}),x.length?Promise.reject({name:y,errors:x,warnings:E}):{name:y,errors:x,warnings:E}}))}});const p=B2e(l);this.lastValidatePromise=p,p.catch(m=>m).then(m=>{const y=m.map(({name:b})=>b);this.notifyObservers(this.store,y,{type:"validateFinish"}),this.triggerOnFieldsChange(y,m)});const f=p.then(()=>this.lastValidatePromise===p?Promise.resolve(this.getFieldsValue(a)):Promise.reject([])).catch(m=>{var S,x;const y=m.filter(E=>E&&E.errors.length),b=(x=(S=y[0])==null?void 0:S.errors)==null?void 0:x[0];return Promise.reject({message:b,values:this.getFieldsValue(s),errorFields:y,outOfDate:this.lastValidatePromise!==p})});f.catch(m=>m);const g=s.filter(m=>u.has(m.join(c)));return this.triggerOnFieldsChange(g),f});Ie(this,"submit",()=>{this.warningUnhooked(),this.validateFields().then(t=>{const{onFinish:r}=this.callbacks;if(r)try{r(t)}catch(n){console.error(n)}}).catch(t=>{const{onFinishFailed:r}=this.callbacks;r&&r(t)})});this.forceRootUpdate=t}}function qle(e){const t=v.useRef(null),[,r]=v.useState({});if(!t.current)if(e)t.current=e;else{const n=()=>{r({})},i=new V2e(n);t.current=i.getForm()}return[t.current]}const f$=v.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),z2e=({validateMessages:e,onFormChange:t,onFormFinish:r,children:n})=>{const i=v.useContext(f$),o=v.useRef({});return v.createElement(f$.Provider,{value:{...i,validateMessages:{...i.validateMessages,...e},triggerFormChange:(s,a)=>{t&&t(s,{changedFields:a,forms:o.current}),i.triggerFormChange(s,a)},triggerFormFinish:(s,a)=>{r&&r(s,{values:a,forms:o.current}),i.triggerFormFinish(s,a)},registerForm:(s,a)=>{s&&(o.current={...o.current,[s]:a}),i.registerForm(s,a)},unregisterForm:s=>{const a={...o.current};delete a[s],o.current=a,i.unregisterForm(s)}}},n)};function g$(){return g$=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const m=v.useRef(null),y=v.useContext(f$),[b]=qle(n),{useSubscribe:S,setInitialValues:x,setCallbacks:E,setValidateMessages:R,setPreserve:T,destroyForm:M}=b.getInternalHooks(yg);v.useImperativeHandle(g,()=>({...b,nativeElement:m.current})),v.useEffect(()=>(y.registerForm(e,b),()=>{y.unregisterForm(e)}),[y,b,e]),R({...y.validateMessages,...a}),E({onValuesChange:c,onFieldsChange:(k,...B)=>{y.triggerFormChange(e,k),u&&u(k,...B)},onFinish:k=>{y.triggerFormFinish(e,k),d&&d(k)},onFinishFailed:h}),T(i);const D=v.useRef(null);x(t,!D.current),D.current||(D.current=!0),v.useEffect(()=>()=>M(p),[]);let A;const I=typeof o=="function";if(I){const k=b.getFieldsValue(!0);A=o(k,b)}else A=o;S(!I);const L=v.useRef(null);v.useEffect(()=>{_2e(L.current||[],r||[])||b.setFields(r||[]),L.current=r},[r,b]);const F=v.useMemo(()=>({...b,validateTrigger:l}),[b,l]),O=v.createElement(gM.Provider,{value:null},v.createElement(Hy.Provider,{value:F},A));return s===!1?O:v.createElement(s,g$({},f,{ref:m,onSubmit:k=>{k.preventDefault(),k.stopPropagation(),b.submit()},onReset:k=>{var B;k.preventDefault(),b.resetFields(),(B=f.onReset)==null||B.call(f,k)}}),O)};function X_(e){try{return JSON.stringify(e)}catch{return Math.random()}}function W2e(...e){const[t,r={}]=e,n=Q_e(r)?{form:r}:r,i=n.form,[o,s]=v.useState(()=>typeof t=="function"?t({}):void 0),a=v.useMemo(()=>X_(o),[o]),l=v.useRef(a);l.current=a;const c=v.useContext(Hy),u=i||c,d=u&&u._init,{getFieldsValue:h,getInternalHooks:p}=u,{registerWatch:f}=p(yg),g=Sr((y,b)=>{const S=n.preserve?b??h(!0):y??h(),x=typeof t=="function"?t(S):Zs(S,yi(t));X_(o)!==X_(x)&&s(x)}),m=typeof t=="function"?t:JSON.stringify(t);return v.useEffect(()=>{d&&g()},[d,m]),v.useEffect(()=>d?f((b,S)=>{g(b,S)}):void 0,[d]),o}const U2e=v.forwardRef(H2e),zx=U2e;zx.FormProvider=z2e;zx.Field=Kle;zx.List=N2e;zx.useForm=qle;zx.useWatch=W2e;const ua=v.createContext({}),j2e=({children:e,status:t,override:r})=>{const n=v.useContext(ua),i=v.useMemo(()=>{const o={...n};return r&&delete o.isFormItemInput,t&&(delete o.status,delete o.hasFeedback,delete o.feedbackIcon),o},[t,r,n]);return v.createElement(ua.Provider,{value:i},e)},K2e=v.createContext(void 0),Rp=e=>{const{space:t,form:r,children:n}=e;if(!Tn(n))return null;let i=n;return r&&(i=Q.createElement(j2e,{override:!0,status:!0},i)),t&&(i=Q.createElement(BLe,null,i)),i},q2e=e=>{if(To()&&window.document.documentElement){const t=Array.isArray(e)?e:[e],{documentElement:r}=window.document;return t.some(n=>n in r.style)}return!1};function iq(e,t){return q2e(e)}const X2e=()=>To()&&window.document.documentElement;function Xle(e,t,r){return v.useMemo(()=>({...{trap:t??!0,focusTriggerAfterClose:r??!0},...e}),[e,t,r])}const XD=e=>{const{prefixCls:t,className:r,style:n,size:i,shape:o}=e,s=Z({[`${t}-lg`]:i==="large",[`${t}-sm`]:i==="small"}),a=Z({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),l=v.useMemo(()=>typeof i=="number"?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return v.createElement("span",{className:Z(t,s,a,r),style:{...l,...n}})},Y2e=new qr("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),tH=e=>({height:e,lineHeight:ae(e)}),pp=e=>({width:e,...tH(e)}),Z2e=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Y2e,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Y_=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...tH(e)}),Q2e=e=>{const{skeletonAvatarCls:t,gradientFromColor:r,controlHeight:n,controlHeightLG:i,controlHeightSM:o}=e;return{[t]:{display:"inline-block",verticalAlign:"top",background:r,...pp(n)},[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:{...pp(i)},[`${t}${t}-sm`]:{...pp(o)}}},J2e=e=>{const{controlHeight:t,borderRadiusSM:r,skeletonInputCls:n,controlHeightLG:i,controlHeightSM:o,gradientFromColor:s,calc:a}=e;return{[n]:{display:"inline-block",verticalAlign:"top",background:s,borderRadius:r,...Y_(t,a)},[`${n}-lg`]:{...Y_(i,a)},[`${n}-sm`]:{...Y_(o,a)}}},Yle=e=>{const{gradientFromColor:t,borderRadiusSM:r,imageSizeBase:n,calc:i}=e;return{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:t,borderRadius:r,...pp(i(n).mul(2).equal())}},eke=e=>({[e.skeletonNodeCls]:{...Yle(e)}}),tke=e=>{const{skeletonImageCls:t,imageSizeBase:r,calc:n}=e;return{[t]:{...Yle(e),[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:{...pp(r),maxWidth:n(r).mul(4).equal(),maxHeight:n(r).mul(4).equal()},[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}},[`${t}${t}-circle`]:{borderRadius:"50%"}}},Z_=(e,t,r)=>{const{skeletonButtonCls:n}=e;return{[`${r}${n}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${r}${n}-round`]:{borderRadius:t}}},Q_=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...tH(e)}),rke=e=>{const{borderRadiusSM:t,skeletonButtonCls:r,controlHeight:n,controlHeightLG:i,controlHeightSM:o,gradientFromColor:s,calc:a}=e;return{[r]:{display:"inline-block",verticalAlign:"top",background:s,borderRadius:t,width:a(n).mul(2).equal(),minWidth:a(n).mul(2).equal(),...Q_(n,a)},...Z_(e,n,r),[`${r}-lg`]:{...Q_(i,a)},...Z_(e,i,`${r}-lg`),[`${r}-sm`]:{...Q_(o,a)},...Z_(e,o,`${r}-sm`)}},nke=e=>{const{componentCls:t,skeletonAvatarCls:r,skeletonTitleCls:n,skeletonParagraphCls:i,skeletonButtonCls:o,skeletonInputCls:s,skeletonNodeCls:a,skeletonImageCls:l,controlHeight:c,controlHeightLG:u,controlHeightSM:d,gradientFromColor:h,padding:p,marginSM:f,borderRadius:g,titleHeight:m,blockRadius:y,paragraphLiHeight:b,controlHeightXS:S,paragraphMarginTop:x}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[r]:{display:"inline-block",verticalAlign:"top",background:h,...pp(c)},[`${r}-circle`]:{borderRadius:"50%"},[`${r}-lg`]:{...pp(u)},[`${r}-sm`]:{...pp(d)}},[`${t}-section`]:{display:"table-cell",width:"100%",verticalAlign:"top",[n]:{width:"100%",height:m,background:h,borderRadius:y,[`+ ${i}`]:{marginBlockStart:d}},[i]:{padding:0,"> li":{width:"100%",height:b,listStyle:"none",background:h,borderRadius:y,"+ li":{marginBlockStart:S}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-section`]:{[`${n}, ${i} > li`]:{borderRadius:g}}},[`${t}-with-avatar ${t}-section`]:{[n]:{marginBlockStart:f,[`+ ${i}`]:{marginBlockStart:x}}},[`${t}${t}-element`]:{display:"inline-block",width:"auto",...rke(e),...Q2e(e),...J2e(e),...eke(e),...tke(e)},[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[s]:{width:"100%"}},[`${t}${t}-active`]:{[` ${n}, ${i} > li, ${r}, ${o}, ${s}, ${a}, ${l} `]:{...Z2e(e)}}}},ike=e=>{const{colorFillContent:t,colorFill:r}=e,n=t,i=r;return{color:n,colorGradientEnd:i,gradientFromColor:n,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Hx=zr("Skeleton",e=>{const{componentCls:t,calc:r}=e,n=$r(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonNodeCls:`${t}-node`,skeletonImageCls:`${t}-image`,imageSizeBase:r(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 nke(n)},ike,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),oke=e=>{const{prefixCls:t,className:r,classNames:n,rootClassName:i,active:o,style:s,styles:a,shape:l="circle",size:c,...u}=e,{getPrefixCls:d}=v.useContext(ir),h=d("skeleton",t),[p,f]=Hx(h),g=Oi(y=>c??y),m=Z(h,`${h}-element`,{[`${h}-active`]:o},n==null?void 0:n.root,r,i,p,f);return v.createElement("div",{className:m,style:a==null?void 0:a.root},v.createElement(XD,{prefixCls:`${h}-avatar`,className:n==null?void 0:n.content,style:{...a==null?void 0:a.content,...s},shape:l,size:g,...u}))},ske=e=>{const{prefixCls:t,className:r,rootClassName:n,classNames:i,active:o,style:s,styles:a,block:l=!1,size:c,...u}=e,{getPrefixCls:d}=v.useContext(ir),h=d("skeleton",t),[p,f]=Hx(h),g=Oi(y=>c??y),m=Z(h,`${h}-element`,{[`${h}-active`]:o,[`${h}-block`]:l},i==null?void 0:i.root,r,n,p,f);return v.createElement("div",{className:m,style:a==null?void 0:a.root},v.createElement(XD,{prefixCls:`${h}-button`,className:i==null?void 0:i.content,style:{...a==null?void 0:a.content,...s},size:g,...u}))},Zle=e=>{const{prefixCls:t,className:r,classNames:n,rootClassName:i,internalClassName:o,style:s,styles:a,active:l,children:c}=e,{getPrefixCls:u}=v.useContext(ir),d=u("skeleton",t),[h,p]=Hx(d),f=Z(d,`${d}-element`,{[`${d}-active`]:l},h,n==null?void 0:n.root,r,i,p);return v.createElement("div",{className:f,style:a==null?void 0:a.root},v.createElement("div",{className:Z(n==null?void 0:n.content,o||`${d}-node`),style:{...a==null?void 0:a.content,...s}},c))},ake=e=>{const{getPrefixCls:t}=v.useContext(ir),r=t("skeleton",e.prefixCls);return v.createElement(Zle,{...e,internalClassName:`${r}-image`},v.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${r}-image-svg`},v.createElement("title",null,"Image placeholder"),v.createElement("path",{d:"M365.7 329.1q0 45.8-32 77.7t-77.7 32-77.7-32-32-77.7 32-77.6 77.7-32 77.7 32 32 77.6M951 548.6v256H146.3V694.9L329 512l91.5 91.4L713 311zm54.8-402.3H91.4q-7.4 0-12.8 5.4T73 164.6v694.8q0 7.5 5.5 12.9t12.8 5.4h914.3q7.5 0 12.9-5.4t5.4-12.9V164.6q0-7.5-5.4-12.9t-12.9-5.4m91.4 18.3v694.8q0 37.8-26.8 64.6t-64.6 26.9H91.4q-37.7 0-64.6-26.9T0 859.4V164.6q0-37.8 26.8-64.6T91.4 73h914.3q37.8 0 64.6 26.9t26.8 64.6",className:`${r}-image-path`})))},lke=e=>{const{prefixCls:t,className:r,classNames:n,rootClassName:i,active:o,block:s,style:a,styles:l,size:c,...u}=e,{getPrefixCls:d}=v.useContext(ir),h=d("skeleton",t),[p,f]=Hx(h),g=Oi(y=>c??y),m=Z(h,`${h}-element`,{[`${h}-active`]:o,[`${h}-block`]:s},n==null?void 0:n.root,r,i,p,f);return v.createElement("div",{className:m,style:l==null?void 0:l.root},v.createElement(XD,{prefixCls:`${h}-input`,className:n==null?void 0:n.content,style:{...l==null?void 0:l.content,...a},size:g,...u}))},cke=(e,t)=>{const{width:r,rows:n=2}=t;if(Array.isArray(r))return r[e];if(n-1===e)return r},uke=e=>{const{prefixCls:t,className:r,style:n,rows:i=0}=e,o=Array.from({length:i}).map((s,a)=>v.createElement("li",{key:a,style:{width:cke(a,e)}}));return v.createElement("ul",{className:Z(t,r),style:n},o)},dke=({prefixCls:e,className:t,width:r,style:n})=>v.createElement("h3",{className:Z(e,t),style:{width:r,...n}});function J_(e){return e&&typeof e=="object"?e:{}}function hke(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function pke(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function fke(e,t){const r={};return(!e||!t)&&(r.width="61%"),!e&&t?r.rows=3:r.rows=2,r}const Up=e=>{const{prefixCls:t,loading:r,className:n,rootClassName:i,classNames:o,style:s,styles:a,children:l,avatar:c=!1,title:u=!0,paragraph:d=!0,active:h,round:p}=e,{getPrefixCls:f,direction:g,className:m,style:y,classNames:b,styles:S}=Fr("skeleton"),x=f("skeleton",t),[E,R]=Hx(x),T={...e,avatar:c,title:u,paragraph:d},[M,D]=Gr([b,o],[S,a],{props:T});if(r||!("loading"in e)){const A=!!c,I=!!u,L=!!d;let F;if(A){const B={className:M.avatar,prefixCls:`${x}-avatar`,...hke(I,L),...J_(c),style:D.avatar};F=v.createElement("div",{className:Z(M.header,`${x}-header`),style:D.header},v.createElement(XD,{...B}))}let O;if(I||L){let B;if(I){const N={className:M.title,prefixCls:`${x}-title`,...pke(A,L),...J_(u),style:D.title};B=v.createElement(dke,{...N})}let H;if(L){const N={className:M.paragraph,prefixCls:`${x}-paragraph`,...fke(A,I),...J_(d),style:D.paragraph};H=v.createElement(uke,{...N})}O=v.createElement("div",{className:Z(M.section,`${x}-section`),style:D.section},B,H)}const k=Z(x,{[`${x}-with-avatar`]:A,[`${x}-active`]:h,[`${x}-rtl`]:g==="rtl",[`${x}-round`]:p},M.root,m,n,i,E,R);return v.createElement("div",{className:k,style:{...D.root,...y,...s}},F,O)}return l??null};Up.Button=ske;Up.Avatar=oke;Up.Input=lke;Up.Image=ake;Up.Node=Zle;function oq(){}const gke=v.createContext({add:oq,remove:oq});function Qle(e){const t=v.useContext(gke),r=v.useRef(null);return Sr(i=>{if(i){const o=e?i.querySelector(e):i;o&&(t.add(o),r.current=o)}else t.remove(r.current)})}const sq=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:r}=v.useContext(Gx);return Q.createElement(ca,{onClick:r,...e},t)},aq=()=>{const{confirmLoading:e,okButtonProps:t,okType:r,okTextLocale:n,onOk:i}=v.useContext(Gx);return Q.createElement(ca,{...H4(r),loading:e,onClick:i,...t},n)};function Jle(e,t){return Q.createElement("span",{className:`${e}-close-x`},t||Q.createElement(Xd,{className:`${e}-close-icon`}))}const ece=e=>{const{okText:t,okType:r="primary",cancelText:n,confirmLoading:i,onOk:o,onCancel:s,okButtonProps:a,cancelButtonProps:l,footer:c}=e,[u]=Dl("Modal",Qae()),d=t||(u==null?void 0:u.okText),h=n||(u==null?void 0:u.cancelText),p=Q.useMemo(()=>({confirmLoading:i,okButtonProps:a,cancelButtonProps:l,okTextLocale:d,cancelTextLocale:h,okType:r,onOk:o,onCancel:s}),[i,a,l,d,h,r,o,s]);let f;return typeof c=="function"||typeof c>"u"?(f=Q.createElement(Q.Fragment,null,Q.createElement(sq,null),Q.createElement(aq,null)),typeof c=="function"&&(f=c(f,{OkBtn:aq,CancelBtn:sq})),f=Q.createElement(Gle,{value:p},f)):f=c,Q.createElement(Ile,{disabled:!1},f)},mke=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"}}}},vke=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},yke=(e,t)=>{const{componentCls:r,gridColumns:n,antCls:i}=e,[o,s]=Jn(i,"grid"),[,a]=Jn(i,"col"),l={};for(let c=n;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}`]=[{[o("display")]:"block",display:"block"},{display:s("display"),flex:`0 0 ${c/n*100}%`,maxWidth:`${c/n*100}%`}],l[`${r}${t}-push-${c}`]={insetInlineStart:`${c/n*100}%`},l[`${r}${t}-pull-${c}`]={insetInlineEnd:`${c/n*100}%`},l[`${r}${t}-offset-${c}`]={marginInlineStart:`${c/n*100}%`},l[`${r}${t}-order-${c}`]={order:c});return l[`${r}${t}-flex`]={flex:a(`${t.replace(/-/,"")}-flex`)},l},m$=(e,t)=>yke(e,t),Cke=(e,t,r)=>({[`@media (min-width: ${ae(t)})`]:{...m$(e,r)}}),bke=()=>({}),Ske=()=>({}),wke=zr("Grid",mke,bke),tce=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),xke=zr("Grid",e=>{const t=$r(e,{gridColumns:24}),r=tce(t);return delete r.xs,[vke(t),m$(t,""),m$(t,"-xs"),Object.keys(r).map(n=>Cke(t,r[n],`-${n}`)).reduce((n,i)=>({...n,...i}),{})]},Ske);function lq(e){return{position:e,inset:0}}const Eke=e=>{const{componentCls:t,antCls:r}=e;return[{[`${t}-root`]:{[`${t}${r}-zoom-enter, ${t}${r}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${r}-zoom-leave ${t}-container`]:{pointerEvents:"none"},[`${t}-mask`]:{...lq("fixed"),zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`&${t}-mask-blur`]:{backdropFilter:"blur(4px)"},[`${t}-hidden`]:{display:"none"}},[`${t}-wrap`]:{...lq("fixed"),zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"}}},{[`${t}-root`]:qD(e)}]},Tke=e=>{const{componentCls:t,motionDurationMid:r}=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:`${ae(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:{...on(e),pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${ae(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto","&:focus-visible":{borderRadius:e.borderRadiusLG,...gc(e)},[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-container`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:{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","background-color"].map(n=>`${n} ${r}`).join(", "),"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:ae(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive},...wl(e)},[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${ae(e.borderRadiusLG)} ${ae(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:`${ae(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}-container, ${t}-body, ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},Rke=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},Pke=e=>{const{componentCls:t}=e,r=tce(e),n={...r};delete n.xs;const i=`--${t.replace(".","")}-`,o=Object.keys(n).map(s=>({[`@media (min-width: ${ae(n[s])})`]:{width:`var(${i}${s}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(Pr(Object.keys(r).map((s,a)=>{const l=Object.keys(r)[a-1];return l?{[`${i}${s}-width`]:`var(${i}${l}-width)`}:null})),[{width:`var(${i}xs-width)`}],Pr(o))}}},rce=e=>{const t=e.padding,r=e.fontSizeHeading5,n=e.lineHeightHeading5;return $r(e,{modalHeaderHeight:e.calc(e.calc(n).mul(r).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()})},nce=e=>({footerBg:"transparent",headerBg:"transparent",titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${ae(e.paddingMD)} ${ae(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${ae(e.padding)} ${ae(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${ae(e.paddingXS)} ${ae(e.padding)}`:0,footerBorderTop:e.wireframe?`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${ae(e.padding*2)} ${ae(e.padding*2)} ${ae(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM,mask:!0}),ice=zr("Modal",e=>{const t=rce(e);return[Tke(t),Rke(t),Eke(t),Bx(t,"zoom"),Pke(t)]},nce,{unitless:{titleLineHeight:!0}});let v$;const Mke=e=>{v$={x:e.pageX,y:e.pageY},setTimeout(()=>{v$=null},100)};X2e()&&document.documentElement.addEventListener("click",Mke,!0);const oce=e=>{const{prefixCls:t,className:r,rootClassName:n,open:i,wrapClassName:o,centered:s,getContainer:a,style:l,width:c=520,footer:u,classNames:d,styles:h,children:p,loading:f,confirmLoading:g,zIndex:m,mousePosition:y,onOk:b,onCancel:S,okButtonProps:x,cancelButtonProps:E,destroyOnHidden:R,destroyOnClose:T,panelRef:M=null,closable:D,mask:A,modalRender:I,maskClosable:L,focusTriggerAfterClose:F,focusable:O,...k}=e,{getPopupContainer:B,getPrefixCls:H,direction:N,className:z,style:W,classNames:V,styles:$,centered:K,cancelButtonProps:q,okButtonProps:X,mask:Y}=Fr("modal"),{modal:oe}=v.useContext(ir),[ee,ne]=v.useMemo(()=>typeof D=="boolean"?[void 0,void 0]:[D==null?void 0:D.afterClose,D==null?void 0:D.onClose],[D]),le=H("modal",t),he=H(),[re,ie,de]=ele(A,Y,le,L),J=Xle(O,re,F),ue=Wt=>{g||(S==null||S(Wt),ne==null||ne())},ve=Wt=>{b==null||b(Wt),ne==null||ne()},pe=ho(le),[me,Oe]=ice(le,pe),De=Z(o,{[`${le}-centered`]:s??K,[`${le}-wrap-rtl`]:N==="rtl"}),Ee=u!==null&&!f?v.createElement(ece,{...e,okButtonProps:{...X,...x},onOk:ve,cancelButtonProps:{...q,...E},onCancel:ue}):null,[We,ze,mt,Nt]=B4(Vy(e),Vy(oe),{closable:!0,closeIcon:v.createElement(Xd,{className:`${le}-close-icon`}),closeIconRender:Wt=>Jle(le,Wt)}),St=We?{disabled:mt,closeIcon:ze,afterClose:ee,...Nt}:!1,Ze=I?Wt=>v.createElement("div",{className:`${le}-render`},I(Wt)):void 0,Fe=`.${le}-${I?"render":"container"}`,tt=Qle(Fe),Ne=Wo(M,tt),[rt,ot]=Hp("Modal",m),Ye={...e,width:c,panelRef:M,focusTriggerAfterClose:J.focusTriggerAfterClose,focusable:J,mask:re,maskClosable:de,zIndex:rt},[Ae,nt]=Gr([V,d,ie],[$,h],{props:Ye}),[Et,Tt]=v.useMemo(()=>c&&typeof c=="object"?[void 0,c]:[c,void 0],[c]),Ot=v.useMemo(()=>{const Wt={};return Tt&&Object.keys(Tt).forEach(at=>{const lt=Tt[at];lt!==void 0&&(Wt[`--${le}-${at}-width`]=typeof lt=="number"?`${lt}px`:lt)}),Wt},[le,Tt]);return v.createElement(Rp,{form:!0,space:!0},v.createElement(_x.Provider,{value:ot},v.createElement(Z_e,{width:Et,...k,zIndex:rt,getContainer:a===void 0?B:a,prefixCls:le,rootClassName:Z(me,n,Oe,pe,Ae.root),rootStyle:nt.root,footer:Ee,visible:i,mousePosition:y??v$,onClose:ue,closable:St,closeIcon:ze,transitionName:mu(he,"zoom",e.transitionName),maskTransitionName:mu(he,"fade",e.maskTransitionName),mask:re,maskClosable:de,className:Z(me,r,z),style:{...W,...l,...Ot},classNames:{...Ae,wrapper:Z(Ae.wrapper,De)},styles:nt,panelRef:Ne,destroyOnHidden:R??T,modalRender:Ze,focusTriggerAfterClose:J.focusTriggerAfterClose,focusTrap:J.trap},f?v.createElement(Up,{active:!0,title:!1,paragraph:{rows:4},className:`${le}-body-skeleton`}):p)))},Ike=e=>{const{componentCls:t,titleFontSize:r,titleLineHeight:n,modalConfirmIconSize:i,fontSize:o,lineHeight:s,modalTitleHeight:a,fontHeight:l,confirmBodyPadding:c}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:{...fu()},[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:i,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(i).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(a).sub(i).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${ae(e.marginSM)})`},[`${u}-body-no-icon ${u}-paragraph`]:{maxWidth:"100%"},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${ae(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:r,lineHeight:n},[`${u}-container`]:{color:e.colorText,fontSize:o,lineHeight:s},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls}, ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},Dke=Ax(["Modal","confirm"],e=>{const t=rce(e);return Ike(t)},nce,{order:-1e3}),sce=e=>{const{prefixCls:t,icon:r,okText:n,cancelText:i,confirmPrefixCls:o,type:s,okCancel:a,footer:l,locale:c,autoFocusButton:u,focusable:d,...h}=e;let p=r;if(!r&&r!==null)switch(s){case"info":p=v.createElement($ae,null);break;case"success":p=v.createElement(zD,null);break;case"error":p=v.createElement(AC,null);break;default:p=v.createElement(Fx,null)}const f=a??s==="confirm",g=v.useMemo(()=>{const I=(d==null?void 0:d.autoFocusButton)||u;return I||I===null?I:"ok"},[u,d==null?void 0:d.autoFocusButton]),[m]=Dl("Modal"),y=c||m,b=n||(f?y==null?void 0:y.okText:y==null?void 0:y.justOkText),S=i||(y==null?void 0:y.cancelText),{closable:x}=h,{onClose:E}=x&&typeof x=="object"?x:{},R=v.useMemo(()=>({autoFocusButton:g,cancelTextLocale:S,okTextLocale:b,mergedOkCancel:f,onClose:E,...h}),[g,S,b,f,E,h]),T=v.createElement(v.Fragment,null,v.createElement(WK,null),v.createElement(UK,null)),M=Tn(e.title)&&e.title!=="",D=Tn(p),A=`${o}-body`;return v.createElement("div",{className:`${o}-body-wrapper`},v.createElement("div",{className:Z(A,{[`${A}-has-title`]:M,[`${A}-no-icon`]:!D})},p,v.createElement("div",{className:`${o}-paragraph`},M&&v.createElement("span",{className:`${o}-title`},e.title),v.createElement("div",{className:`${o}-content`},e.content))),l===void 0||typeof l=="function"?v.createElement(Gle,{value:R},v.createElement("div",{className:`${o}-btns`},typeof l=="function"?l(T,{OkBtn:UK,CancelBtn:WK}):T)):l,v.createElement(Dke,{prefixCls:t}))},Ake=e=>{const{close:t,zIndex:r,maskStyle:n,direction:i,prefixCls:o,wrapClassName:s,rootPrefixCls:a,bodyStyle:l,closable:c=!1,onConfirm:u,styles:d,title:h,mask:p,maskClosable:f,okButtonProps:g,cancelButtonProps:m}=e,{cancelButtonProps:y,okButtonProps:b}=Fr("modal"),S=`${o}-confirm`,x=e.width||416,E=e.style||{},R=Z(S,`${S}-${e.type}`,{[`${S}-rtl`]:i==="rtl"},e.className),T=v.useMemo(()=>{const A=WB(p,f);return A.closable??(A.closable=!1),A},[p,f]),[,M]=fs(),D=v.useMemo(()=>r!==void 0?r:M.zIndexPopupBase+CFe,[r,M]);return v.createElement(oce,{...e,className:R,wrapClassName:Z({[`${S}-centered`]:!!e.centered},s),onCancel:()=>{t==null||t({triggerCancel:!0}),u==null||u(!1)},title:h,footer:null,transitionName:mu(a||"","zoom",e.transitionName),maskTransitionName:mu(a||"","fade",e.maskTransitionName),mask:T,style:E,styles:{body:l,mask:n,...d},width:x,zIndex:D,closable:c},v.createElement(sce,{...e,confirmPrefixCls:S,okButtonProps:{...b,...g},cancelButtonProps:{...y,...m}}))},ace=e=>{const{rootPrefixCls:t,iconPrefixCls:r,direction:n,theme:i}=e;return v.createElement(Iu,{prefixCls:t,iconPrefixCls:r,direction:n,theme:i},v.createElement(Ake,{...e}))},Cg=[];let lce="";function cce(){return lce}const Fke=e=>{var c;const{prefixCls:t,getContainer:r,direction:n}=e,i=Qae(),o=v.useContext(ir),s=cce()||o.getPrefixCls(),a=t||`${s}-modal`;let l=r;return l===!1&&(l=void 0),Q.createElement(ace,{...e,rootPrefixCls:s,prefixCls:a,iconPrefixCls:o.iconPrefixCls,theme:o.theme,direction:n??o.direction,locale:((c=o.locale)==null?void 0:c.Modal)??i,getContainer:l})};function Wx(e){const t=TLe(),r=document.createDocumentFragment();let n={...e,close:a,open:!0},i;function o(...c){var d;c.some(h=>h==null?void 0:h.triggerCancel)&&((d=e.onCancel)==null||d.call(e,()=>{},...c.slice(1)));for(let h=0;h{})}const s=c=>{clearTimeout(i),i=setTimeout(()=>{const u=t.getPrefixCls(void 0,cce()),d=t.getIconPrefixCls(),h=t.getTheme(),p=Q.createElement(Fke,{...c});Lle(Q.createElement(Iu,{prefixCls:u,iconPrefixCls:d,theme:h},typeof t.holderRender=="function"?t.holderRender(p):p),r)})};function a(...c){n={...n,open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),o.apply(this,c)}},s(n)}function l(c){typeof c=="function"?n=c(n):n={...n,...c},s(n)}return s(n),Cg.push(a),{destroy:a,update:l}}function uce(e){return{...e,type:"warning"}}function dce(e){return{...e,type:"info"}}function hce(e){return{...e,type:"success"}}function pce(e){return{...e,type:"error"}}function fce(e){return{...e,type:"confirm"}}function Lke({rootPrefixCls:e}){lce=e}const _ke=v.forwardRef((e,t)=>{const{afterClose:r,config:n,...i}=e,[o,s]=v.useState(!0),[a,l]=v.useState(n),{direction:c,getPrefixCls:u}=v.useContext(ir),d=u("modal"),h=u(),p=()=>{var y;r(),(y=a.afterClose)==null||y.call(a)},f=(...y)=>{var S;s(!1),y.some(x=>x==null?void 0:x.triggerCancel)&&((S=a.onCancel)==null||S.call(a,()=>{},...y.slice(1)))};v.useImperativeHandle(t,()=>({destroy:f,update:y=>{l(b=>{const S=typeof y=="function"?y(b):y;return{...b,...S}})}}));const g=a.okCancel??a.type==="confirm",[m]=Dl("Modal",xl.Modal);return v.createElement(ace,{prefixCls:d,rootPrefixCls:h,...a,close:f,open:o,afterClose:p,okText:a.okText||(g?m==null?void 0:m.okText:m==null?void 0:m.justOkText),direction:a.direction||c,cancelText:a.cancelText||(m==null?void 0:m.cancelText),...i})});let cq=0;const kke=v.memo(v.forwardRef((e,t)=>{const[r,n]=fFe();return v.useImperativeHandle(t,()=>({patchElement:n}),[n]),v.createElement(v.Fragment,null,r)}));function Oke(){const e=v.useRef(null),[t,r]=v.useState([]);v.useEffect(()=>{t.length&&(Pr(t).forEach(s=>{s()}),r([]))},[t]);const n=v.useCallback(o=>function(a){var g;cq+=1;const l=v.createRef();let c;const u=new Promise(m=>{c=m});let d=!1,h;const p=v.createElement(_ke,{key:`modal-${cq}`,config:o(a),ref:l,afterClose:()=>{h==null||h()},isSilent:()=>d,onConfirm:m=>{c(m)}});return h=(g=e.current)==null?void 0:g.patchElement(p),h&&Cg.push(h),{destroy:()=>{function m(){var y;(y=l.current)==null||y.destroy()}l.current?m():r(y=>[].concat(Pr(y),[m]))},update:m=>{function y(){var b;(b=l.current)==null||b.update(m)}l.current?y():r(b=>[].concat(Pr(b),[y]))},then:m=>(d=!0,u.then(m))}},[]);return[v.useMemo(()=>({info:n(dce),success:n(hce),error:n(pce),warning:n(uce),confirm:n(fce)}),[n]),v.createElement(kke,{key:"modal-holder",ref:e})]}function gce(e){return t=>v.createElement(Iu,{theme:{token:{motion:!1,zIndexPopupBase:0}}},v.createElement(e,{...t}))}const rH=(e,t,r,n,i)=>gce(s=>{const{prefixCls:a,style:l}=s,c=v.useRef(null),[u,d]=v.useState(0),[h,p]=v.useState(0),[f,g]=An(!1,s.open),{getPrefixCls:m}=v.useContext(ir),y=m(n||"select",a);v.useEffect(()=>{if(g(!0),typeof ResizeObserver<"u"){const x=new ResizeObserver(R=>{const T=R[0].target;d(T.offsetHeight+8),p(T.offsetWidth)}),E=setInterval(()=>{var M;const R=i?`.${i(y)}`:`.${y}-dropdown`,T=(M=c.current)==null?void 0:M.querySelector(R);T&&(clearInterval(E),x.observe(T))},10);return()=>{clearInterval(E),x.disconnect()}}},[y]);let b={...s,style:{...l,margin:0},open:f,getPopupContainer:()=>c.current};r&&(b=r(b)),t&&Object.assign(b,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const S={paddingBottom:u,position:"relative",minWidth:h};return v.createElement("div",{ref:c,style:S},v.createElement(e,{...b}))}),Nke=(e,t,r,n,i=!1,o,s)=>{const a=v.useMemo(()=>typeof r=="boolean"?{allowClear:r}:r&&typeof r=="object"?r:{allowClear:!1},[r]);return v.useMemo(()=>{const l=!i&&a.allowClear!==!1&&(t.length||o)&&!(s==="combobox"&&o==="");return{allowClear:l,clearIcon:l?a.clearIcon||n||"×":null}},[a,n,i,t.length,o,s])},mce=v.createContext(null);function Mm(){return v.useContext(mce)}function Bke(e=250){const t=v.useRef(null),r=v.useRef(null);v.useEffect(()=>()=>{window.clearTimeout(r.current)},[]);function n(i){(i||t.current===null)&&(t.current=i),window.clearTimeout(r.current),r.current=window.setTimeout(()=>{t.current=null},e)}return[()=>t.current,n]}function vce(e,t){return e.filter(r=>r).some(r=>r.contains(t)||r===t)}function $ke(e,t,r,n){const i=Sr(o=>{if(n)return;let s=o.target;s.shadowRoot&&o.composed&&(s=o.composedPath()[0]||s),o._ori_target&&(s=o._ori_target),t&&!vce(e(),s)&&r(!1)});v.useEffect(()=>(window.addEventListener("mousedown",i),()=>window.removeEventListener("mousedown",i)),[i])}function y$(){return y$=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const t=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}},Vke=(e,t)=>{const{prefixCls:r,disabled:n,visible:i,children:o,popupElement:s,animation:a,transitionName:l,popupStyle:c,popupClassName:u,direction:d="ltr",placement:h,builtinPlacements:p,popupMatchSelectWidth:f,popupRender:g,popupAlign:m,getPopupContainer:y,empty:b,onPopupVisibleChange:S,onPopupMouseEnter:x,onPopupMouseDown:E,onPopupBlur:R,...T}=e,M=`${r}-dropdown`;let D=s;g&&(D=g(s));const A=v.useMemo(()=>p||Gke(f),[p,f]),I=a?`${M}-${a}`:l,L=typeof f=="number",F=v.useMemo(()=>L?null:f===!1?"minWidth":"width",[f,L]);let O=c;L&&(O={...c,width:f});const k=v.useRef(null);return v.useImperativeHandle(t,()=>({getPopupElement:()=>{var B;return(B=k.current)==null?void 0:B.popupElement}})),v.createElement(WD,y$({},T,{showAction:S?["click"]:[],hideAction:S?["click"]:[],popupPlacement:h||(d==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:A,prefixCls:M,popupMotion:{motionName:I},popup:v.createElement("div",{onMouseEnter:x,onMouseDown:E,onBlur:R},D),ref:k,stretch:F,popupAlign:m,popupVisible:i,getPopupContainer:y,popupClassName:Z(u,{[`${M}-empty`]:b}),popupStyle:O,onPopupVisibleChange:S}),o)},zke=v.forwardRef(Vke);function uq(e,t){const{key:r}=e;let n;return"value"in e&&({value:n}=e),r??(n!==void 0?n:`rc-index-key-${t}`)}function C$(e){return typeof e<"u"&&!Number.isNaN(e)}function yce(e,t){const{label:r,value:n,options:i,groupLabel:o}=e||{},s=r||(t?"children":"label");return{label:s,value:n||"value",options:i||"options",groupLabel:o||s}}function Hke(e,{fieldNames:t,childrenAsData:r}={}){const n=[],{label:i,value:o,options:s,groupLabel:a}=yce(t,!1);function l(c,u){Array.isArray(c)&&c.forEach(d=>{if(u||!(s in d)){const h=d[o];n.push({key:uq(d,n.length),groupOption:u,data:d,label:d[i],value:h})}else{let h=d[a];h===void 0&&r&&(h=d.label),n.push({key:uq(d,n.length),group:!0,data:d,label:h}),l(d[s],!0)}})}return l(e,!1),n}function b$(e){const t={...e};return"props"in t||Object.defineProperty(t,"props",{get(){return Vn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}const Wke=(e,t,r)=>{if(!t||!t.length)return null;let n=!1;const i=(s,[a,...l])=>{if(!a)return[s];const c=s.split(a);return n=n||c.length>1,c.reduce((u,d)=>[...u,...i(d,l)],[]).filter(Boolean)},o=i(e,t);return n?typeof r<"u"?o.slice(0,r):o:null};function Uke(e){const{visible:t,values:r}=e;if(!t)return null;const n=50;return v.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`${r.slice(0,n).map(({label:i,value:o})=>["number","string"].includes(typeof i)?i:o).join(", ")}`,r.length>n?", ...":null)}const jke=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},nH=(e,t=1)=>{if(t<=0){e();return}jke(()=>{nH(e,t-1)})};function Kke(e,t,r,n){const[i,o]=v.useState(!1);v.useEffect(()=>{o(!0)},[]);const[s,a]=An(e,t),[l,c]=v.useState(!1),u=i?s:!1,d=n(u),h=v.useRef(0),p=Sr(g=>{r&&d!==g&&r(g),a(g)}),f=Sr((g,m={})=>{const{cancelFun:y}=m;h.current+=1;const b=h.current,S=typeof g=="boolean"?g:!d;c(!S);function x(){b===h.current&&!(y!=null&&y())&&(p(S),c(!1))}S?x():nH(()=>{x()})});return[u,d,f,l]}function e2(e){const{children:t,...r}=e;return t?v.createElement("div",r,t):null}const Cce=v.createContext(null);function Ux(){return v.useContext(Cce)}const bce=v.forwardRef((e,t)=>{const{onChange:r,onKeyDown:n,onBlur:i,style:o,syncWidth:s,value:a,className:l,autoComplete:c,...u}=e,{prefixCls:d,mode:h,onSearch:p,onSearchSubmit:f,onInputBlur:g,autoFocus:m,tokenWithEnter:y,placeholder:b,components:{input:S="input"}}=Ux(),{id:x,classNames:E,styles:R,open:T,activeDescendantId:M,role:D,disabled:A}=Mm()||{},I=Z(`${d}-input`,E==null?void 0:E.input,l),L=v.useRef(!1),F=v.useRef(null),O=v.useRef(null);v.useImperativeHandle(t,()=>O.current);const k=X=>{let{value:Y}=X.target;if(y&&F.current&&/[\r\n]/.test(F.current)){const oe=F.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Y=Y.replace(oe,F.current)}F.current=null,p&&p(Y,!0,L.current),r==null||r(X)},B=X=>{const{key:Y}=X,{value:oe}=X.currentTarget;Y==="Enter"&&h==="tags"&&!L.current&&f&&f(oe),n==null||n(X)},H=X=>{g==null||g(),i==null||i(X)},N=()=>{L.current=!0},z=X=>{if(L.current=!1,h!=="combobox"){const{value:Y}=X.currentTarget;p==null||p(Y,!0,!1)}},W=X=>{const{clipboardData:Y}=X,oe=Y==null?void 0:Y.getData("text");F.current=oe||""},[V,$]=v.useState(void 0);jr(()=>{const X=O.current;if(s&&X){X.style.width="0px";const Y=X.scrollWidth;$(Y),X.style.width=""}},[s,a]);const K={id:x,type:h==="combobox"?"text":"search",...u,ref:O,style:{...R==null?void 0:R.input,...o,"--select-input-width":V},autoFocus:m,autoComplete:c||"off",className:I,disabled:A,value:a||"",onChange:k,onKeyDown:B,onBlur:H,onPaste:W,onCompositionStart:N,onCompositionEnd:z,role:D||"combobox","aria-expanded":T||!1,"aria-haspopup":"listbox","aria-owns":T?`${x}_list`:void 0,"aria-autocomplete":"list","aria-controls":T?`${x}_list`:void 0,"aria-activedescendant":T?M:void 0};if(v.isValidElement(S)){const X=S.props||{},Y={placeholder:e.placeholder||b,...K,...X};return Object.keys(X).forEach(oe=>{const ee=X[oe];typeof ee=="function"&&(Y[oe]=(...ne)=>{var le;ee(...ne),(le=K[oe])==null||le.call(K,...ne)})}),Y.ref=Wo(S.ref,K.ref),v.cloneElement(S,Y)}const q=S;return v.createElement(q,K)});function Sce(e){const{prefixCls:t,placeholder:r,displayValues:n}=Ux(),{classNames:i,styles:o}=Mm(),{show:s=!0}=e;return n.length?null:v.createElement("div",{className:Z(`${t}-placeholder`,i==null?void 0:i.placeholder),style:{visibility:s?"visible":"hidden",...o==null?void 0:o.placeholder}},r)}const iH=v.createContext(null);function wce(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function qke(e){return e!=null}function Xke(e){return!e&&e!==0}function dq(e){return["string","number"].includes(typeof e)}function S$(e){let t;return e&&(dq(e.title)?t=e.title.toString():dq(e.label)&&(t=e.label.toString())),t}function w$(){return w$=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{prefixCls:r,searchValue:n,activeValue:i,displayValues:o,maxLength:s,mode:a,components:l}=Ux(),{triggerOpen:c,title:u,showSearch:d,classNames:h,styles:p}=Mm(),f=v.useContext(iH),[g,m]=v.useState(!1),y=a==="combobox",b=o[0],S=v.useMemo(()=>y&&i&&!g&&c?i:d?n:"",[y,i,g,c,n,d]),[x,E,R,T]=v.useMemo(()=>{let I,L,F;if(b&&(f!=null&&f.flattenOptions)){const k=f.flattenOptions.find(B=>B.value===b.value);k!=null&&k.data&&(I=k.data.className,L=k.data.style,F=S$(k.data))}return b&&!F&&(F=S$(b)),u!==void 0&&(F=u),[I,L,F,!!I||!!L]},[b,f==null?void 0:f.flattenOptions,u]);v.useEffect(()=>{y&&m(!1)},[y,i]);const M=b&&b.label!==null&&b.label!==void 0&&String(b.label).trim()!=="",A=!(y&&(l!=null&&l.input))?b?T?v.createElement("div",{className:Z(`${r}-content-value`,x),style:{...S?{visibility:"hidden"}:{},...E},title:R},b.label):b.label:v.createElement(Sce,{show:!S}):null;return v.createElement("div",{className:Z(`${r}-content`,M&&`${r}-content-has-value`,S&&`${r}-content-has-search-value`,T&&`${r}-content-has-option-style`,h==null?void 0:h.content),style:p==null?void 0:p.content,title:T?void 0:R},A,v.createElement(bce,w$({ref:t},e,{value:S,maxLength:a==="combobox"?s:void 0,onChange:I=>{var L;m(!0),(L=e.onChange)==null||L.call(e,I)}})))}),mv=void 0;function Zke(e,t){const{prefixCls:r,invalidate:n,item:i,renderItem:o,responsive:s,responsiveDisabled:a,registerSize:l,itemKey:c,className:u,style:d,children:h,display:p,order:f,component:g="div",...m}=e,y=s&&!p;function b(T){l(c,T)}v.useEffect(()=>()=>{b(null)},[]);const S=o&&i!==mv?o(i,{index:f}):h;let x;n||(x={opacity:y?0:1,height:y?0:mv,overflowY:y?"hidden":mv,order:s?f:mv,pointerEvents:y?"none":mv,position:y?"absolute":mv});const E={};y&&(E["aria-hidden"]=!0);let R=v.createElement(g,hl({className:Z(!n&&r,u),style:{...x,...d}},E,m,{ref:t}),S);return s&&(R=v.createElement(ta,{onResize:({offsetWidth:T})=>{b(T)},disabled:a},R)),R}const iS=v.forwardRef(Zke);function Qke(e){if(typeof MessageChannel>"u")Or(e);else{const t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(void 0)}}function Jke(){const e=v.useRef(null);return r=>{e.current||(e.current=[],Qke(()=>{$a.unstable_batchedUpdates(()=>{e.current.forEach(n=>{n()}),e.current=null})})),e.current.push(r)}}function vv(e,t){const[r,n]=v.useState(t),i=Sr(o=>{e(()=>{n(o)})});return[r,i]}const vM=Q.createContext(null),eOe=(e,t)=>{const r=v.useContext(vM);if(!r){const{component:a="div",...l}=e;return v.createElement(a,hl({},l,{ref:t}))}const{className:n,...i}=r,{className:o,...s}=e;return v.createElement(vM.Provider,{value:null},v.createElement(iS,hl({ref:t,className:Z(n,o)},i,s)))},tOe=v.forwardRef(eOe),xce="responsive",Ece="invalidate";function rOe(e){return`+ ${e.length} ...`}function nOe(e,t){const{prefixCls:r="rc-overflow",data:n=[],renderItem:i,renderRawItem:o,itemKey:s,itemWidth:a=10,ssr:l,style:c,className:u,maxCount:d,renderRest:h,renderRawRest:p,prefix:f,suffix:g,component:m="div",itemComponent:y,onVisibleChange:b,...S}=e,x=l==="full",E=Jke(),[R,T]=vv(E,null),M=R||0,[D,A]=vv(E,new Map),[I,L]=vv(E,0),[F,O]=vv(E,0),[k,B]=vv(E,0),[H,N]=vv(E,0),[z,W]=v.useState(null),[V,$]=v.useState(null),K=v.useMemo(()=>V===null&&x?Number.MAX_SAFE_INTEGER:V||0,[V,R]),[q,X]=v.useState(!1),Y=`${r}-item`,oe=Math.max(I,F),ee=d===xce,ne=n.length&&ee,le=d===Ece,he=ne||typeof d=="number"&&n.length>d,re=v.useMemo(()=>{let Ne=n;return ne?R===null&&x?Ne=n:Ne=n.slice(0,Math.min(n.length,M/a)):typeof d=="number"&&(Ne=n.slice(0,d)),Ne},[n,a,R,d,ne]),ie=v.useMemo(()=>ne?n.slice(K+1):n.slice(re.length),[n,re,ne,K]),de=v.useCallback((Ne,rt)=>typeof s=="function"?s(Ne):(s&&(Ne==null?void 0:Ne[s]))??rt,[s]),J=v.useCallback(i||(Ne=>Ne),[i]);function ue(Ne,rt,ot){V===Ne&&(rt===void 0||rt===z)||($(Ne),ot||(X(Ne{const Ye=new Map(ot);return rt===null?Ye.delete(Ne):Ye.set(Ne,rt),Ye})}function me(Ne,rt){O(rt),L(F)}function Oe(Ne,rt){B(rt)}function De(Ne,rt){N(rt)}function Ee(Ne){return D.get(de(re[Ne],Ne))}jr(()=>{if(M&&typeof oe=="number"&&re){let Ne=k+H;const rt=re.length,ot=rt-1;if(!rt){ue(0,null);return}for(let Ye=0;YeM){ue(Ye-1,Ne-Ae-H+F);break}}g&&Ee(0)+H>M&&W(null)}},[M,D,F,k,H,de,re]);const We=q&&!!ie.length;let ze={};z!==null&&ne&&(ze={position:"absolute",left:z,top:0});const mt={prefixCls:Y,responsive:ne,component:y,invalidate:le},Nt=o?(Ne,rt)=>{const ot=de(Ne,rt);return v.createElement(vM.Provider,{key:ot,value:{...mt,order:rt,item:Ne,itemKey:ot,registerSize:pe,display:rt<=K}},o(Ne,rt))}:(Ne,rt)=>{const ot=de(Ne,rt);return v.createElement(iS,hl({},mt,{order:rt,key:ot,item:Ne,renderItem:J,itemKey:ot,registerSize:pe,display:rt<=K}))},St={order:We?K:Number.MAX_SAFE_INTEGER,className:`${Y}-rest`,registerSize:me,display:We},Ze=h||rOe,Fe=p?v.createElement(vM.Provider,{value:{...mt,...St}},p(ie)):v.createElement(iS,hl({},mt,St),typeof Ze=="function"?Ze(ie):Ze),tt=v.createElement(m,hl({className:Z(!le&&r,u),style:c,ref:t},S),f&&v.createElement(iS,hl({},mt,{responsive:ee,responsiveDisabled:!ne,order:-1,className:`${Y}-prefix`,registerSize:Oe,display:!0}),f),re.map(Nt),he?Fe:null,g&&v.createElement(iS,hl({},mt,{responsive:ee,responsiveDisabled:!ne,order:K,className:`${Y}-suffix`,registerSize:De,display:!0,style:ze}),g));return ee?v.createElement(ta,{onResize:ve,disabled:!ne},tt):tt}const Sd=v.forwardRef(nOe);Sd.Item=tOe;Sd.RESPONSIVE=xce;Sd.INVALIDATE=Ece;const Tce=e=>{const{className:t,style:r,customizeIcon:n,customizeIconProps:i,children:o,onMouseDown:s,onClick:a}=e,l=typeof n=="function"?n(i):n;return v.createElement("span",{className:t,onMouseDown:c=>{c.preventDefault(),s==null||s(c)},style:{userSelect:"none",WebkitUserSelect:"none",...r},unselectable:"on",onClick:a,"aria-hidden":!0},l!==void 0?l:v.createElement("span",{className:Z(t.split(/\s+/).map(c=>`${c}-icon`))},o))};function x$(){return x$=Object.assign?Object.assign.bind():function(e){for(var t=1;t{e.preventDefault(),e.stopPropagation()},oOe=v.forwardRef(function({inputProps:t},r){const{prefixCls:n,displayValues:i,searchValue:o,mode:s,onSelectorRemove:a,removeIcon:l}=Ux(),{disabled:c,showSearch:u,triggerOpen:d,rawOpen:h,toggleOpen:p,autoClearSearchValue:f,tagRender:g,maxTagPlaceholder:m,maxTagTextLength:y,maxTagCount:b,classNames:S,styles:x}=Mm(),E=`${n}-selection-item`;let R=o;!h&&s==="multiple"&&f!==!1&&(R="");const T=u&&R||"",M=u&&!c,D=l??"×",A=m??(N=>`+ ${N.length} ...`),I=g,L=N=>{p(N)},F=N=>{a==null||a(N)},O=(N,z,W,V,$)=>v.createElement("span",{title:S$(N),className:Z(E,{[`${E}-disabled`]:W},S==null?void 0:S.item),style:x==null?void 0:x.item},v.createElement("span",{className:Z(`${E}-content`,S==null?void 0:S.itemContent),style:x==null?void 0:x.itemContent},z),V&&v.createElement(Tce,{className:Z(`${E}-remove`,S==null?void 0:S.itemRemove),style:x==null?void 0:x.itemRemove,onMouseDown:hq,onClick:$,customizeIcon:D},"×")),k=(N,z,W,V,$,K,q)=>{const X=Y=>{hq(Y),L(!d)};return v.createElement("span",{onMouseDown:X},I({label:z,value:N,index:q==null?void 0:q.index,disabled:W,closable:V,onClose:$,isMaxTag:!!K}))},B=(N,z)=>{const{disabled:W,label:V,value:$}=N,K=!c&&!W;let q=V;if(typeof y=="number"&&(typeof V=="string"||typeof V=="number")){const Y=String(q);Y.length>y&&(q=`${Y.slice(0,y)}...`)}const X=Y=>{Y&&Y.stopPropagation(),F(N)};return typeof I=="function"?k($,q,W,K,X,void 0,z):O(N,q,W,K,X)},H=N=>{if(!i.length)return null;const z=typeof A=="function"?A(N):A;return typeof I=="function"?k(void 0,z,!1,!1,void 0,!0):O({title:z},z,!1)};return v.createElement(Sd,{prefixCls:`${n}-content`,className:S==null?void 0:S.content,style:x==null?void 0:x.content,prefix:!i.length&&!T&&v.createElement(Sce,null),data:i,renderItem:B,renderRest:H,suffix:v.createElement(bce,x$({ref:r,disabled:c,readOnly:!M},t,{value:T||"",syncWidth:!0})),itemKey:iOe,maxCount:b})}),sOe=v.forwardRef(function(t,r){const{multiple:n,onInputKeyDown:i,tabIndex:o}=Ux(),s=Mm(),{showSearch:a}=s,c={...ei(s,{aria:!0}),onKeyDown:i,readOnly:!a,tabIndex:o};return n?v.createElement(oOe,{ref:r,inputProps:c}):v.createElement(Yke,{ref:r,inputProps:c})});function aOe(e){return e&&![Zt.ESC,Zt.SHIFT,Zt.BACKSPACE,Zt.TAB,Zt.WIN_KEY,Zt.ALT,Zt.META,Zt.WIN_KEY_RIGHT,Zt.CTRL,Zt.SEMICOLON,Zt.EQUALS,Zt.CAPS_LOCK,Zt.CONTEXT_MENU,Zt.UP,Zt.LEFT,Zt.RIGHT,Zt.F1,Zt.F2,Zt.F3,Zt.F4,Zt.F5,Zt.F6,Zt.F7,Zt.F8,Zt.F9,Zt.F10,Zt.F11,Zt.F12].includes(e)}function yM(){return yM=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{which:ee}=oe,ne=z.current instanceof HTMLTextAreaElement;if(!ne&&I&&(ee===Zt.UP||ee===Zt.DOWN)&&oe.preventDefault(),R&&R(oe),ne&&!I&&~[Zt.UP,Zt.DOWN,Zt.LEFT,Zt.RIGHT].indexOf(ee))return;!(oe.ctrlKey||oe.altKey||oe.metaKey)&&aOe(ee)&&L(!0)});v.useImperativeHandle(r,()=>({focus:oe=>{var ee,ne;(ne=(ee=z.current||N.current).focus)==null||ne.call(ee,oe)},blur:()=>{var oe,ee;(ee=(oe=z.current||N.current).blur)==null||ee.call(oe)},nativeElement:pc(N.current)}));const V=Sr(oe=>{var ee;if(!O){const ne=pc(z.current);oe.nativeEvent._ori_target=ne;const le=ne===oe.target||(ne==null?void 0:ne.contains(oe.target));ne&&!le&&oe.preventDefault();const ie=I&&!u&&(p==="combobox"||F)||I&&u&≤oe.nativeEvent._select_lazy?I&&L(!1):((ee=z.current)==null||ee.focus(),ie||L())}x==null||x(oe)}),{root:$}=D,K=fn(A,lOe),q=ei(K,{aria:!0}),X=Object.keys(q),Y={...t,onInputKeyDown:W};if($){const oe=$.props||{},ee={...oe,...K};return Object.keys(oe).forEach(ne=>{const le=oe[ne],he=K[ne];typeof le=="function"&&typeof he=="function"&&(ee[ne]=(...re)=>{he(...re),le(...re)})}),v.isValidElement($)?v.cloneElement($,{...ee,ref:Wo($.ref,N)}):v.createElement($,yM({},ee,{ref:N}))}return v.createElement(Cce.Provider,{value:Y},v.createElement("div",yM({},fn(K,X),{ref:N,className:i,style:o,onMouseDown:V}),v.createElement(e2,{className:Z(`${n}-prefix`,B==null?void 0:B.prefix),style:H==null?void 0:H.prefix},s),v.createElement(sOe,{ref:z}),v.createElement(e2,{className:Z(`${n}-suffix`,{[`${n}-suffix-loading`]:k},B==null?void 0:B.suffix),style:H==null?void 0:H.suffix},a),l&&v.createElement(e2,{className:Z(`${n}-clear`,B==null?void 0:B.clear),style:H==null?void 0:H.clear,onMouseDown:oe=>{oe.nativeEvent._select_lazy=!0,E==null||E(oe)}},l),c))});function uOe(e,t,r){return v.useMemo(()=>{let{root:n,input:i}=e||{};return r&&(n=r()),t&&(i=t()),{root:n,input:i}},[e,t,r])}function E$(){return E$=Object.assign?Object.assign.bind():function(e){for(var t=1;te==="tags"||e==="multiple",dOe=v.forwardRef((e,t)=>{const{id:r,prefixCls:n,className:i,styles:o,classNames:s,showSearch:a,tagRender:l,showScrollBar:c="optional",direction:u,omitDomProps:d,displayValues:h,onDisplayValuesChange:p,emptyOptions:f,notFoundContent:g="Not Found",onClear:m,maxCount:y,placeholder:b,mode:S,disabled:x,loading:E,getInputElement:R,getRawInputElement:T,open:M,defaultOpen:D,onPopupVisibleChange:A,activeValue:I,onActiveValueChange:L,activeDescendantId:F,searchValue:O,autoClearSearchValue:k,onSearch:B,onSearchSplit:H,tokenSeparators:N,allowClear:z,prefix:W,suffix:V,suffixIcon:$,clearIcon:K,OptionList:q,animation:X,transitionName:Y,popupStyle:oe,popupClassName:ee,popupMatchSelectWidth:ne,popupRender:le,popupAlign:he,placement:re,builtinPlacements:ie,getPopupContainer:de,showAction:J=[],onFocus:ue,onBlur:ve,onKeyUp:pe,onKeyDown:me,onMouseDown:Oe,components:De,...Ee}=e,We=T$(S),ze=v.useRef(null),mt=v.useRef(null),Nt=v.useRef(null),[St,Ze]=v.useState(!1);v.useImperativeHandle(t,()=>{var pt,yt;return{focus:(pt=ze.current)==null?void 0:pt.focus,blur:(yt=ze.current)==null?void 0:yt.blur,scrollTo:It=>{var Qt;return(Qt=Nt.current)==null?void 0:Qt.scrollTo(It)},nativeElement:pc(ze.current)}});const Fe=uOe(De,R,T),tt=v.useMemo(()=>{var yt;if(S!=="combobox")return O;const pt=(yt=h[0])==null?void 0:yt.value;return typeof pt=="string"||typeof pt=="number"?String(pt):""},[O,S,h]),Ne=S==="combobox"&&typeof R=="function"&&R()||null,rt=!g&&f,[ot,Ye,Ae,nt]=Kke(D||!1,M,A,pt=>x||rt?!1:pt),Et=v.useMemo(()=>(N||[]).some(pt=>[` `,`\r `].includes(pt)),[N]),Tt=(pt,yt,It)=>{if(We&&C$(y)&&h.length>=y)return;let Qt=!0,Ft=pt;L==null||L(null);const ur=Wke(pt,N,C$(y)?y-h.length:void 0),fr=It?null:ur;return S!=="combobox"&&fr&&(Ft="",H==null||H(fr),Ae(!1),Qt=!1),B&&tt!==Ft&&B(Ft,{source:yt?"typing":"effect"}),pt&&yt&&Qt&&Ae(!0),Qt},Ot=pt=>{!pt||!pt.trim()||B(pt,{source:"submit"})};v.useEffect(()=>{!ot&&!We&&S!=="combobox"&&Tt("",!1,!1)},[ot]),v.useEffect(()=>{x&&(Ae(!1),Ze(!1))},[x,Ye]);const[Wt,at]=Bke(),lt=v.useRef(!1),Ut=pt=>{var ur;const yt=Wt(),{key:It}=pt,Qt=It==="Enter",Ft=It===" ";if(Qt||Ft){const fr=S==="combobox";(Ft&&!(fr||a)||Qt&&!fr)&&pt.preventDefault(),Ye||Ae(!0)}if(at(!!tt),It==="Backspace"&&!yt&&We&&!tt&&h.length){const fr=[...h];let rr=null;for(let yn=fr.length-1;yn>=0;yn-=1){const dn=fr[yn];if(!dn.disabled){fr.splice(yn,1),rr=dn;break}}rr&&p(fr,{type:"remove",values:[rr]})}Ye&&(!Qt||!lt.current)&&!Ft&&(Qt&&(lt.current=!0),(ur=Nt.current)==null||ur.onKeyDown(pt)),me==null||me(pt)},cr=(pt,...yt)=>{var It;Ye&&((It=Nt.current)==null||It.onKeyUp(pt,...yt)),pt.key==="Enter"&&(lt.current=!1),pe==null||pe(pt,...yt)},_e=Sr(pt=>{const yt=h.filter(It=>It!==pt);p(yt,{type:"remove",values:[pt]})}),qe=()=>{lt.current=!1},Re=()=>{var pt;return[pc(ze.current),(pt=mt.current)==null?void 0:pt.getPopupElement()]};$ke(Re,Ye,Ae,!!Fe.root);const it=v.useRef(!1),Ve=pt=>{Ze(!0),x||(J.includes("focus")&&Ae(!0),ue==null||ue(pt))},ke=()=>{Ye&&!it.current&&Ae(!1,{cancelFun:()=>vce(Re(),document.activeElement)})},se=pt=>{Ze(!1),tt&&(S==="tags"?B(tt,{source:"submit"}):S==="multiple"&&B("",{source:"blur"})),ke(),x||ve==null||ve(pt)},ce=(pt,...yt)=>{var Ft;const{target:It}=pt,Qt=(Ft=mt.current)==null?void 0:Ft.getPopupElement();Qt!=null&&Qt.contains(It)&&Ae&&Ae(!0),Oe==null||Oe(pt,...yt),it.current=!0,nH(()=>{it.current=!1})},[,fe]=v.useState({});function Te(){fe({})}let $e;Fe.root&&($e=pt=>{Ae(pt)});const et=v.useMemo(()=>({...e,notFoundContent:g,open:Ye,triggerOpen:Ye,rawOpen:ot,id:r,showSearch:a,multiple:We,toggleOpen:Ae,showScrollBar:c,styles:o,classNames:s,lockOptions:nt}),[e,g,Ae,r,a,We,Ye,ot,c,o,s,nt]),Dt=v.useMemo(()=>{const pt=V??$;return typeof pt=="function"?pt({searchValue:tt,open:Ye,focused:St,showSearch:a,loading:E}):pt},[V,$,tt,Ye,St,a,E]),ct=()=>{var pt;m==null||m(),(pt=ze.current)==null||pt.focus(),p([],{type:"clear",values:h}),Tt("",!1,!1)},{allowClear:st,clearIcon:wt}=Nke(n,h,z,K,x,tt,S),Mt=v.createElement(q,{ref:Nt}),_t=Z(n,i,{[`${n}-focused`]:St,[`${n}-multiple`]:We,[`${n}-single`]:!We,[`${n}-allow-clear`]:st,[`${n}-show-arrow`]:Dt!=null,[`${n}-disabled`]:x,[`${n}-loading`]:E,[`${n}-open`]:Ye,[`${n}-customize-input`]:Ne,[`${n}-show-search`]:a});let At=v.createElement(cOe,E$({},Ee,{ref:ze,prefixCls:n,className:_t,focused:St,prefix:W,suffix:Dt,clearIcon:wt,multiple:We,mode:S,displayValues:h,placeholder:b,searchValue:tt,activeValue:I,onSearch:Tt,onSearchSubmit:Ot,onInputBlur:qe,onFocus:Ve,onBlur:se,onClearMouseDown:ct,onKeyDown:Ut,onKeyUp:cr,onSelectorRemove:_e,tokenWithEnter:Et,onMouseDown:ce,components:Fe}));return At=v.createElement(zke,{ref:mt,disabled:x,prefixCls:n,visible:Ye,popupElement:Mt,animation:X,transitionName:Y,popupStyle:oe,popupClassName:ee,direction:u,popupMatchSelectWidth:ne,popupRender:le,popupAlign:he,placement:re,builtinPlacements:ie,getPopupContainer:de,empty:f,onPopupVisibleChange:$e,onPopupMouseEnter:Te,onPopupMouseDown:ce,onPopupBlur:ke},At),v.createElement(mce.Provider,{value:et},v.createElement(Uke,{visible:St&&!Ye,values:h}),At)}),oH=()=>null;oH.isSelectOptGroup=!0;const sH=()=>null;sH.isSelectOption=!0;const Rce=v.forwardRef(({height:e,offsetY:t,offsetX:r,children:n,prefixCls:i,onInnerResize:o,innerProps:s,rtl:a,extra:l},c)=>{let u={},d={display:"flex",flexDirection:"column"};return t!==void 0&&(u={height:e,position:"relative",overflow:"hidden"},d={...d,transform:`translateY(${t}px)`,[a?"marginRight":"marginLeft"]:-r,position:"absolute",left:0,right:0,top:0}),v.createElement("div",{style:u},v.createElement(ta,{onResize:({offsetHeight:h})=>{h&&o&&o()}},v.createElement("div",hl({style:d,className:Z({[`${i}-holder-inner`]:i}),ref:c},s),n,l)))});Rce.displayName="Filler";function hOe({children:e,setRef:t}){const r=v.useCallback(n=>{t(n)},[]);return v.cloneElement(e,{ref:r})}function pOe(e,t,r,n,i,o,s,{getKey:a}){return e.slice(t,r+1).map((l,c)=>{const u=t+c,d=s(l,u,{style:{width:n},offsetX:i}),h=a(l);return v.createElement(hOe,{key:h,setRef:p=>o(l,p)},d)})}function fOe(e,t,r){const n=e.length,i=t.length;let o,s;if(n===0&&i===0)return null;n{const a=fOe(n||[],e||[],t);(a==null?void 0:a.index)!==void 0&&s(e[a.index]),i(e)},[e]),[o]}const pq=typeof navigator=="object"&&/Firefox/i.test(navigator.userAgent),Pce=((e,t,r,n)=>{const i=v.useRef(!1),o=v.useRef(null);function s(){clearTimeout(o.current),i.current=!0,o.current=setTimeout(()=>{i.current=!1},50)}const a=v.useRef({top:e,bottom:t,left:r,right:n});return a.current.top=e,a.current.bottom=t,a.current.left=r,a.current.right=n,(l,c,u=!1)=>{const d=l?c<0&&a.current.left||c>0&&a.current.right:c<0&&a.current.top||c>0&&a.current.bottom;return u&&d?(clearTimeout(o.current),i.current=!1):(!d||i.current)&&s(),!i.current&&d}});function mOe(e,t,r,n,i,o,s){const a=v.useRef(0),l=v.useRef(null),c=v.useRef(null),u=v.useRef(!1),d=Pce(t,r,n,i);function h(b,S){if(Or.cancel(l.current),d(!1,S))return;const x=b;if(!x._virtualHandled)x._virtualHandled=!0;else return;a.current+=S,c.current=S,pq||x.preventDefault(),l.current=Or(()=>{const E=u.current?10:1;s(a.current*E,!1),a.current=0})}function p(b,S){s(S,!0),pq||b.preventDefault()}const f=v.useRef(null),g=v.useRef(null);function m(b){if(!e)return;Or.cancel(g.current),g.current=Or(()=>{f.current=null},2);const{deltaX:S,deltaY:x,shiftKey:E}=b;let R=S,T=x;(f.current==="sx"||!f.current&&E&&x&&!S)&&(R=x,T=0,f.current="sx");const M=Math.abs(R),D=Math.abs(T);f.current===null&&(f.current=o&&M>D?"x":"y"),f.current==="y"?h(b,T):p(b,R)}function y(b){e&&(u.current=b.detail===c.current)}return[m,y]}function vOe(e,t,r,n){const[i,o]=v.useMemo(()=>[new Map,[]],[e,r.id,n]);return(a,l=a)=>{let c=i.get(a),u=i.get(l);if(c===void 0||u===void 0){const d=e.length;for(let h=o.length;h{let p=!1;o.current.forEach((f,g)=>{if(f&&f.offsetParent){const{offsetHeight:m}=f,{marginTop:y,marginBottom:b}=getComputedStyle(f),S=fq(y),x=fq(b),E=m+S+x;s.current.get(g)!==E&&(s.current.set(g,E),p=!0)}}),p&&i(f=>f+1)};if(d)h();else{a.current+=1;const p=a.current;Promise.resolve().then(()=>{p===a.current&&h()})}}function u(d,h){const p=e(d);o.current.get(p),h?(o.current.set(p,h),c()):o.current.delete(p)}return v.useEffect(()=>l,[]),[u,c,s.current,n]}const gq=14/15;function bOe(e,t,r){const n=v.useRef(!1),i=v.useRef(0),o=v.useRef(0),s=v.useRef(null),a=v.useRef(null);let l;const c=h=>{if(n.current){const p=Math.ceil(h.touches[0].pageX),f=Math.ceil(h.touches[0].pageY);let g=i.current-p,m=o.current-f;const y=Math.abs(g)>Math.abs(m);y?i.current=p:o.current=f;const b=r(y,y?g:m,!1,h);b&&h.preventDefault(),clearInterval(a.current),b&&(a.current=setInterval(()=>{y?g*=gq:m*=gq;const S=Math.floor(y?g:m);(!r(y,S,!0)||Math.abs(S)<=.1)&&clearInterval(a.current)},16))}},u=()=>{n.current=!1,l()},d=h=>{l(),h.touches.length===1&&!n.current&&(n.current=!0,i.current=Math.ceil(h.touches[0].pageX),o.current=Math.ceil(h.touches[0].pageY),s.current=h.target,s.current.addEventListener("touchmove",c,{passive:!1}),s.current.addEventListener("touchend",u,{passive:!0}))};l=()=>{s.current&&(s.current.removeEventListener("touchmove",c),s.current.removeEventListener("touchend",u))},jr(()=>(e&&t.current.addEventListener("touchstart",d,{passive:!0}),()=>{var h;(h=t.current)==null||h.removeEventListener("touchstart",d),l(),clearInterval(a.current)}),[e])}function mq(e){return Math.floor(e**.5)}function R$(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function SOe(e,t,r){v.useEffect(()=>{const n=t.current;if(e&&n){let i=!1,o,s;const a=()=>{Or.cancel(o)},l=()=>{a(),o=Or(()=>{r(s),l()})},c=()=>{i=!1,a()},u=h=>{if(h.target.draggable||h.button!==0)return;const p=h;p._virtualHandled||(p._virtualHandled=!0,i=!0)},d=h=>{if(i){const p=R$(h,!1),{top:f,bottom:g}=n.getBoundingClientRect();if(p<=f){const m=f-p;s=-mq(m),l()}else if(p>=g){const m=p-g;s=mq(m),l()}else a()}};return n.addEventListener("mousedown",u),n.ownerDocument.addEventListener("mouseup",c),n.ownerDocument.addEventListener("mousemove",d),n.ownerDocument.addEventListener("dragend",c),()=>{n.removeEventListener("mousedown",u),n.ownerDocument.removeEventListener("mouseup",c),n.ownerDocument.removeEventListener("mousemove",d),n.ownerDocument.removeEventListener("dragend",c),a()}}},[e])}const wOe=10;function xOe(e,t,r,n,i,o,s,a){const l=v.useRef(),[c,u]=v.useState(null);return jr(()=>{if(c&&c.times({...S}));return}o();const{targetAlign:d,originAlign:h,index:p,offset:f}=c,g=e.current.clientHeight;let m=!1,y=d,b=null;if(g){const S=d||h;let x=0,E=0,R=0;const T=Math.min(t.length-1,p);for(let D=0;D<=T;D+=1){const A=i(t[D]);E=x;const I=r.get(A);R=E+(I===void 0?n:I),x=R}let M=S==="top"?f:g-f;for(let D=T;D>=0;D-=1){const A=i(t[D]),I=r.get(A);if(I===void 0){m=!0;break}if(M-=I,M<=0)break}switch(S){case"top":b=E-f;break;case"bottom":b=R-g+f;break;default:{const{scrollTop:D}=e.current,A=D+g;EA&&(y="bottom")}}b!==null&&s(b),b!==c.lastTop&&(m=!0)}m&&u({...c,times:c.times+1,targetAlign:y,lastTop:b})}},[c,e.current]),d=>{if(d==null){a();return}if(Or.cancel(l.current),typeof d=="number")s(d);else if(d&&typeof d=="object"){let h;const{align:p}=d;"index"in d?{index:h}=d:h=t.findIndex(g=>i(g)===d.key);const{offset:f=0}=d;u({times:0,index:h,offset:f,originAlign:p})}}}const vq=v.forwardRef((e,t)=>{const{prefixCls:r,rtl:n,scrollOffset:i,scrollRange:o,onStartMove:s,onStopMove:a,onScroll:l,horizontal:c,spinSize:u,containerSize:d,style:h,thumbStyle:p,showScrollBar:f}=e,[g,m]=v.useState(!1),[y,b]=v.useState(null),[S,x]=v.useState(null),E=!n,R=v.useRef(),T=v.useRef(),[M,D]=v.useState(f),A=v.useRef(),I=()=>{f===!0||f===!1||(clearTimeout(A.current),D(!0),A.current=setTimeout(()=>{D(!1)},3e3))},L=o-d||0,F=d-u||0,O=v.useMemo(()=>i===0||L===0?0:i/L*F,[i,L,F]),k=K=>{K.stopPropagation(),K.preventDefault()},B=v.useRef({top:O,dragging:g,pageY:y,startTop:S});B.current={top:O,dragging:g,pageY:y,startTop:S};const H=K=>{m(!0),b(R$(K,c)),x(B.current.top),s(),K.stopPropagation(),K.preventDefault()};v.useEffect(()=>{const K=Y=>{Y.preventDefault()},q=R.current,X=T.current;return q.addEventListener("touchstart",K,{passive:!1}),X.addEventListener("touchstart",H,{passive:!1}),()=>{q.removeEventListener("touchstart",K),X.removeEventListener("touchstart",H)}},[]);const N=v.useRef();N.current=L;const z=v.useRef();z.current=F,v.useEffect(()=>{if(g){let K;const q=Y=>{const{dragging:oe,pageY:ee,startTop:ne}=B.current;Or.cancel(K);const le=R.current.getBoundingClientRect(),he=d/(c?le.width:le.height);if(oe){const re=(R$(Y,c)-ee)*he;let ie=ne;!E&&c?ie-=re:ie+=re;const de=N.current,J=z.current,ue=J?ie/J:0;let ve=Math.ceil(ue*de);ve=Math.max(ve,0),ve=Math.min(ve,de),K=Or(()=>{l(ve,c)})}},X=()=>{m(!1),a()};return window.addEventListener("mousemove",q,{passive:!0}),window.addEventListener("touchmove",q,{passive:!0}),window.addEventListener("mouseup",X,{passive:!0}),window.addEventListener("touchend",X,{passive:!0}),()=>{window.removeEventListener("mousemove",q),window.removeEventListener("touchmove",q),window.removeEventListener("mouseup",X),window.removeEventListener("touchend",X),Or.cancel(K)}}},[g]),v.useEffect(()=>(I(),()=>{clearTimeout(A.current)}),[i]),v.useImperativeHandle(t,()=>({delayHidden:I}));const W=`${r}-scrollbar`,V={position:"absolute",visibility:M?null:"hidden"},$={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return c?(Object.assign(V,{height:8,left:0,right:0,bottom:0}),Object.assign($,{height:"100%",width:u,[E?"left":"right"]:O})):(Object.assign(V,{width:8,top:0,bottom:0,[E?"right":"left"]:0}),Object.assign($,{width:"100%",height:u,top:O})),v.createElement("div",{ref:R,className:Z(W,{[`${W}-horizontal`]:c,[`${W}-vertical`]:!c,[`${W}-visible`]:M}),style:{...V,...h},onMouseDown:k,onMouseMove:I},v.createElement("div",{ref:T,className:Z(`${W}-thumb`,{[`${W}-thumb-moving`]:g}),style:{...$,...p},onMouseDown:H}))}),EOe=20;function yq(e=0,t=0){let r=e/t*e;return isNaN(r)&&(r=0),r=Math.max(r,EOe),Math.floor(r)}const TOe=[],ROe={overflowY:"auto",overflowAnchor:"none"};function POe(e,t){const{prefixCls:r="rc-virtual-list",className:n,height:i,itemHeight:o,fullHeight:s=!0,style:a,data:l,children:c,itemKey:u,virtual:d,direction:h,scrollWidth:p,component:f="div",onScroll:g,onVirtualScroll:m,onVisibleChange:y,innerProps:b,extraRender:S,styles:x,showScrollBar:E="optional",...R}=e,T=v.useCallback(Ve=>typeof u=="function"?u(Ve):Ve==null?void 0:Ve[u],[u]),[M,D,A,I]=COe(T),L=!!(d!==!1&&i&&o),F=v.useMemo(()=>Object.values(A.maps).reduce((Ve,ke)=>Ve+ke,0),[A.id,A.maps]),O=L&&l&&(Math.max(o*l.length,F)>i||!!p),k=h==="rtl",B=Z(r,{[`${r}-rtl`]:k},n),H=l||TOe,N=v.useRef(),z=v.useRef(),W=v.useRef(),[V,$]=v.useState(0),[K,q]=v.useState(0),[X,Y]=v.useState(!1),oe=()=>{Y(!0)},ee=()=>{Y(!1)},ne={getKey:T};function le(Ve){$(ke=>{let se;typeof Ve=="function"?se=Ve(ke):se=Ve;const ce=St(se);return N.current.scrollTop=ce,ce})}const he=v.useRef({start:0,end:H.length}),re=v.useRef(),[ie]=gOe(H,T);re.current=ie;const{scrollHeight:de,start:J,end:ue,offset:ve}=v.useMemo(()=>{var Te;if(!L)return{scrollHeight:void 0,start:0,end:H.length-1,offset:void 0};if(!O)return{scrollHeight:((Te=z.current)==null?void 0:Te.offsetHeight)||0,start:0,end:H.length-1,offset:void 0};let Ve=0,ke,se,ce;const fe=H.length;for(let $e=0;$e=V&&ke===void 0&&(ke=$e,se=Ve),st>V+i&&ce===void 0&&(ce=$e),Ve=st}return ke===void 0&&(ke=0,se=0,ce=Math.ceil(i/o)),ce===void 0&&(ce=H.length-1),ce=Math.min(ce+1,H.length-1),{scrollHeight:Ve,start:ke,end:ce,offset:se}},[O,L,V,H,I,i]);he.current.start=J,he.current.end=ue,v.useLayoutEffect(()=>{const Ve=A.getRecord();if(Ve.size===1){const ke=Array.from(Ve.keys())[0],se=Ve.get(ke),ce=H[J];if(ce&&se===void 0&&T(ce)===ke){const $e=A.get(ke)-o;le(et=>et+$e)}}A.resetRecord()},[de]);const[pe,me]=v.useState({width:0,height:i}),Oe=Ve=>{me({width:Ve.offsetWidth,height:Ve.offsetHeight})},De=v.useRef(),Ee=v.useRef(),We=v.useMemo(()=>yq(pe.width,p),[pe.width,p]),ze=v.useMemo(()=>yq(pe.height,de),[pe.height,de]),mt=de-i,Nt=v.useRef(mt);Nt.current=mt;function St(Ve){let ke=Ve;return Number.isNaN(Nt.current)||(ke=Math.min(ke,Nt.current)),ke=Math.max(ke,0),ke}const Ze=V<=0,Fe=V>=mt,tt=K<=0,Ne=K>=p,rt=Pce(Ze,Fe,tt,Ne),ot=()=>({x:k?-K:K,y:V}),Ye=v.useRef(ot()),Ae=Sr(Ve=>{if(m){const ke={...ot(),...Ve};(Ye.current.x!==ke.x||Ye.current.y!==ke.y)&&(m(ke),Ye.current=ke)}});function nt(Ve,ke){const se=Ve;ke?($a.flushSync(()=>{q(se)}),Ae()):le(se)}function Et(Ve){const{scrollTop:ke}=Ve.currentTarget;ke!==V&&le(ke),g==null||g(Ve),Ae()}const Tt=Ve=>{let ke=Ve;const se=p?p-pe.width:0;return ke=Math.max(ke,0),ke=Math.min(ke,se),ke},Ot=Sr((Ve,ke)=>{ke?($a.flushSync(()=>{q(se=>{const ce=se+(k?-Ve:Ve);return Tt(ce)})}),Ae()):le(se=>se+Ve)}),[Wt,at]=mOe(L,Ze,Fe,tt,Ne,!!p,Ot);bOe(L,N,(Ve,ke,se,ce)=>{const fe=ce;return rt(Ve,ke,se)?!1:!fe||!fe._virtualHandled?(fe&&(fe._virtualHandled=!0),Wt({preventDefault(){},deltaX:Ve?ke:0,deltaY:Ve?0:ke}),!0):!1}),SOe(O,N,Ve=>{le(ke=>ke+Ve)}),jr(()=>{function Ve(se){const ce=Ze&&se.detail<0,fe=Fe&&se.detail>0;L&&!ce&&!fe&&se.preventDefault()}const ke=N.current;return ke.addEventListener("wheel",Wt,{passive:!1}),ke.addEventListener("DOMMouseScroll",at,{passive:!0}),ke.addEventListener("MozMousePixelScroll",Ve,{passive:!1}),()=>{ke.removeEventListener("wheel",Wt),ke.removeEventListener("DOMMouseScroll",at),ke.removeEventListener("MozMousePixelScroll",Ve)}},[L,Ze,Fe]),jr(()=>{if(p){const Ve=Tt(K);q(Ve),Ae({x:Ve})}},[pe.width,p]);const lt=()=>{var Ve,ke;(Ve=De.current)==null||Ve.delayHidden(),(ke=Ee.current)==null||ke.delayHidden()},Ut=xOe(N,H,A,o,T,()=>D(!0),le,lt);v.useImperativeHandle(t,()=>({nativeElement:W.current,getScrollInfo:ot,scrollTo:Ve=>{function ke(se){return se&&typeof se=="object"&&("left"in se||"top"in se)}ke(Ve)?(Ve.left!==void 0&&q(Tt(Ve.left)),Ut(Ve.top)):Ut(Ve)}})),jr(()=>{if(y){const Ve=H.slice(J,ue+1);y(Ve,H)}},[J,ue,H]);const cr=vOe(H,T,A,o),_e=S==null?void 0:S({start:J,end:ue,virtual:O,offsetX:K,offsetY:ve,rtl:k,getSize:cr}),qe=pOe(H,J,ue,p,K,M,c,ne);let Re=null;i&&(Re={[s?"height":"maxHeight"]:i,...ROe},L&&(Re.overflowY="hidden",p&&(Re.overflowX="hidden"),X&&(Re.pointerEvents="none")));const it={};return k&&(it.dir="rtl"),v.createElement("div",hl({ref:W,style:{...a,position:"relative"},className:B},it,R),v.createElement(ta,{onResize:Oe},v.createElement(f,{className:`${r}-holder`,style:Re,ref:N,onScroll:Et,onMouseEnter:lt},v.createElement(Rce,{prefixCls:r,height:de,offsetX:K,offsetY:ve,scrollWidth:p,onInnerResize:D,ref:z,innerProps:b,rtl:k,extra:_e},qe))),O&&de>i&&v.createElement(vq,{ref:De,prefixCls:r,scrollOffset:V,scrollRange:de,rtl:k,onScroll:nt,onStartMove:oe,onStopMove:ee,spinSize:ze,containerSize:pe.height,style:x==null?void 0:x.verticalScrollBar,thumbStyle:x==null?void 0:x.verticalScrollBarThumb,showScrollBar:E}),O&&p>pe.width&&v.createElement(vq,{ref:Ee,prefixCls:r,scrollOffset:K,scrollRange:p,rtl:k,onScroll:nt,onStartMove:oe,onStopMove:ee,spinSize:We,containerSize:pe.width,horizontal:!0,style:x==null?void 0:x.horizontalScrollBar,thumbStyle:x==null?void 0:x.horizontalScrollBarThumb,showScrollBar:E}))}const YD=v.forwardRef(POe);YD.displayName="List";function MOe(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}function FS(){return FS=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var le,he;const{prefixCls:r,id:n,open:i,multiple:o,mode:s,searchValue:a,toggleOpen:l,notFoundContent:c,onPopupScroll:u,showScrollBar:d,lockOptions:h}=Mm(),{maxCount:p,flattenOptions:f,onActiveValue:g,defaultActiveFirstOption:m,onSelect:y,menuItemSelectedIcon:b,rawValues:S,fieldNames:x,virtual:E,direction:R,listHeight:T,listItemHeight:M,optionRender:D,classNames:A,styles:I}=v.useContext(iH),L=`${r}-item`,F=Pm(()=>f,[i,h],(re,ie)=>ie[0]&&!ie[1]),O=v.useRef(null),k=v.useMemo(()=>o&&C$(p)&&(S==null?void 0:S.size)>=p,[o,p,S==null?void 0:S.size]),B=re=>{re.preventDefault()},H=re=>{var ie;(ie=O.current)==null||ie.scrollTo(typeof re=="number"?{index:re}:re)},N=v.useCallback(re=>s==="combobox"?!1:S.has(re),[s,[...S].toString(),S.size]),z=(re,ie=1)=>{const de=F.length;for(let J=0;Jz(0)),$=(re,ie=!1)=>{V(re);const de={source:ie?"keyboard":"mouse"},J=F[re];if(!J){g(null,-1,de);return}g(J.value,re,de)};v.useEffect(()=>{$(m!==!1?z(0):-1)},[F.length,a]);const K=v.useCallback(re=>s==="combobox"?String(re).toLowerCase()===a.toLowerCase():S.has(re),[s,a,[...S].toString(),S.size]);v.useEffect(()=>{var ie;let re;if(!o&&i&&S.size===1){const de=Array.from(S)[0],J=F.findIndex(({data:ue})=>a?String(ue.value).startsWith(a):ue.value===de);J!==-1&&($(J),re=setTimeout(()=>{H(J)}))}return i&&((ie=O.current)==null||ie.scrollTo(void 0)),()=>clearTimeout(re)},[i,a]);const q=re=>{re!==void 0&&y(re,{selected:!S.has(re)}),o||l(!1)};if(v.useImperativeHandle(t,()=>({onKeyDown:re=>{const{which:ie,ctrlKey:de}=re;switch(ie){case Zt.N:case Zt.P:case Zt.UP:case Zt.DOWN:{let J=0;if(ie===Zt.UP?J=-1:ie===Zt.DOWN?J=1:MOe()&&de&&(ie===Zt.N?J=1:ie===Zt.P&&(J=-1)),J!==0){const ue=z(W+J,J);H(ue),$(ue,!0)}break}case Zt.TAB:case Zt.ENTER:{const J=F[W];if(!J||J.data.disabled)return q(void 0);!k||S.has(J.value)?q(J.value):q(void 0),i&&re.preventDefault();break}case Zt.ESC:l(!1),i&&re.stopPropagation()}},onKeyUp:()=>{},scrollTo:re=>{H(re)}})),F.length===0)return v.createElement("div",{role:"listbox",id:`${n}_list`,className:`${L}-empty`,onMouseDown:B},c);const X=Object.keys(x).map(re=>x[re]),Y=re=>re.label;function oe(re,ie){const{group:de}=re;return{role:de?"presentation":"option",id:`${n}_list_${ie}`}}const ee=re=>{const ie=F[re];if(!ie)return null;const de=ie.data||{},{value:J,disabled:ue}=de,{group:ve}=ie,pe=ei(de,!0),me=Y(ie);return ie?v.createElement("div",FS({"aria-label":typeof me=="string"&&!ve?me:null},pe,{key:re},oe(ie,re),{"aria-selected":K(J),"aria-disabled":ue}),J):null},ne={role:"listbox",id:`${n}_list`};return v.createElement(v.Fragment,null,E&&v.createElement("div",FS({},ne,{style:{height:0,width:0,overflow:"hidden"}}),ee(W-1),ee(W),ee(W+1)),v.createElement(YD,{itemKey:"key",ref:O,data:F,height:T,itemHeight:M,fullHeight:!1,onMouseDown:B,onScroll:u,virtual:E,direction:R,innerProps:E?null:ne,showScrollBar:d,className:(le=A==null?void 0:A.popup)==null?void 0:le.list,style:(he=I==null?void 0:I.popup)==null?void 0:he.list},(re,ie)=>{var Ae,nt;const{group:de,groupOption:J,data:ue,label:ve,value:pe}=re,{key:me}=ue;if(de){const Et=ue.title??(Cq(ve)?ve.toString():void 0);return v.createElement("div",{className:Z(L,`${L}-group`,ue.className),title:Et},ve!==void 0?ve:me)}const{disabled:Oe,title:De,children:Ee,style:We,className:ze,...mt}=ue,Nt=fn(mt,X),St=N(pe),Ze=Oe||!St&&k,Fe=`${L}-option`,tt=Z(L,Fe,ze,(Ae=A==null?void 0:A.popup)==null?void 0:Ae.listItem,{[`${Fe}-grouped`]:J,[`${Fe}-active`]:W===ie&&!Ze,[`${Fe}-disabled`]:Ze,[`${Fe}-selected`]:St}),Ne=Y(re),rt=!b||typeof b=="function"||St,ot=typeof Ne=="number"?Ne:Ne||pe;let Ye=Cq(ot)?ot.toString():void 0;return De!==void 0&&(Ye=De),v.createElement("div",FS({},ei(Nt),E?{}:oe(re,ie),{"aria-selected":E?void 0:K(pe),"aria-disabled":Ze,className:tt,title:Ye,onMouseMove:()=>{W===ie||Ze||$(ie)},onClick:()=>{Ze||q(pe)},style:{...(nt=I==null?void 0:I.popup)==null?void 0:nt.listItem,...We}}),v.createElement("div",{className:`${Fe}-content`},typeof D=="function"?D(re,{index:ie}):ot),v.isValidElement(b)||St,rt&&v.createElement(Tce,{className:`${L}-option-state`,customizeIcon:b,customizeIconProps:{value:pe,disabled:Ze,isSelected:St}},St?"✓":null))}))},DOe=v.forwardRef(IOe),AOe=((e,t)=>{const r=v.useRef({values:new Map,options:new Map}),n=v.useMemo(()=>{const{values:o,options:s}=r.current,a=e.map(u=>{var d;return u.label===void 0?{...u,label:(d=o.get(u.value))==null?void 0:d.label}:u}),l=new Map,c=new Map;return a.forEach(u=>{l.set(u.value,u),c.set(u.value,t.get(u.value)||s.get(u.value))}),r.current.values=l,r.current.options=c,a},[e,t]),i=v.useCallback(o=>t.get(o)||r.current.options.get(o),[t]);return[n,i]});function t2(e,t){return wce(e).join("").toUpperCase().includes(t)}const FOe=((e,t,r,n,i)=>v.useMemo(()=>{if(!r||n===!1)return e;const{options:o,label:s,value:a}=t,l=[],c=typeof n=="function",u=r.toUpperCase(),d=c?n:(p,f)=>i&&i.length?i.some(g=>t2(f[g],u)):f[o]?t2(f[s!=="children"?s:"label"],u):t2(f[a],u),h=c?p=>b$(p):p=>p;return e.forEach(p=>{if(p[o]){if(d(r,h(p)))l.push(p);else{const g=p[o].filter(m=>d(r,h(m)));g.length&&l.push({...p,[o]:g})}return}d(r,h(p))&&l.push(p)}),l},[e,n,i,r,t]));function LOe(e){const{key:t,props:{children:r,value:n,...i}}=e;return{key:t,value:n!==void 0?n:t,children:r,...i}}function Mce(e,t=!1){return Li(e).map((r,n)=>{if(!v.isValidElement(r)||!r.type)return null;const{type:{isSelectOptGroup:i},key:o,props:{children:s,...a}}=r;return t||!i?LOe(r):{key:`__RC_SELECT_GRP__${o===null?n:o}__`,label:o,...a,options:Mce(s)}}).filter(r=>r)}const _Oe=(e,t,r,n,i)=>v.useMemo(()=>{let o=e;!e&&(o=Mce(t));const a=new Map,l=new Map,c=(d,h,p)=>{p&&typeof p=="string"&&d.set(h[p],h)},u=(d,h=!1)=>{for(let p=0;p{c(l,f,g)}),c(l,f,i)):u(f[r.options],!0)}};return u(o),{options:o,valueOptions:a,labelOptions:l}},[e,t,r,n,i]);function bq(e){const t=v.useRef();return t.current=e,v.useCallback((...n)=>t.current(...n),[])}function kOe(e,t,r){const{filterOption:n,searchValue:i,optionFilterProp:o,filterSort:s,onSearch:a,autoClearSearchValue:l}=t;return v.useMemo(()=>{const c=typeof e=="object",u={filterOption:n,searchValue:i,optionFilterProp:o,filterSort:s,onSearch:a,autoClearSearchValue:l,...c?e:{}};return[c||r==="combobox"||r==="tags"||r==="multiple"&&e===void 0?!0:e,u]},[r,e,n,i,o,s,a,l])}function P$(){return P$=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{id:r,mode:n,prefixCls:i="rc-select",backfill:o,fieldNames:s,showSearch:a,searchValue:l,onSearch:c,autoClearSearchValue:u,filterOption:d,optionFilterProp:h,filterSort:p,onSelect:f,onDeselect:g,onActive:m,popupMatchSelectWidth:y=!0,optionLabelProp:b,options:S,optionRender:x,children:E,defaultActiveFirstOption:R,menuItemSelectedIcon:T,virtual:M,direction:D,listHeight:A=200,listItemHeight:I=20,labelRender:L,value:F,defaultValue:O,labelInValue:k,onChange:B,maxCount:H,classNames:N,styles:z,...W}=e,V={searchValue:l,onSearch:c,autoClearSearchValue:u,filterOption:d,optionFilterProp:h,filterSort:p},[$,K]=kOe(a,V,n),{filterOption:q,searchValue:X,optionFilterProp:Y,filterSort:oe,onSearch:ee,autoClearSearchValue:ne=!0}=K,le=v.useMemo(()=>Y?Array.isArray(Y)?Y:[Y]:[],[Y]),he=xc(r),re=T$(n),ie=!!(!S&&E),de=v.useMemo(()=>q===void 0&&n==="combobox"?!1:q,[q,n]),J=v.useMemo(()=>yce(s,ie),[JSON.stringify(s),ie]),[ue,ve]=An("",X),pe=ue||"",me=_Oe(S,E,J,le,b),{valueOptions:Oe,labelOptions:De,options:Ee}=me,We=v.useCallback(ce=>wce(ce).map(Te=>{let $e,et,Dt,ct;NOe(Te)?$e=Te:(et=Te.label,$e=Te.value);const st=Oe.get($e);return st&&(et===void 0&&(et=st==null?void 0:st[b||J.label]),Dt=st==null?void 0:st.disabled,ct=st==null?void 0:st.title),{label:et,value:$e,key:$e,disabled:Dt,title:ct}}),[J,b,Oe]),[ze,mt]=An(O,F),Nt=v.useMemo(()=>{var Te;const fe=We(re&&ze===null?[]:ze);return n==="combobox"&&Xke((Te=fe[0])==null?void 0:Te.value)?[]:fe},[ze,We,n,re]),[St,Ze]=AOe(Nt,Oe),Fe=v.useMemo(()=>{if(!n&&St.length===1){const ce=St[0];if(ce.value===null&&(ce.label===null||ce.label===void 0))return[]}return St.map(ce=>({...ce,label:(typeof L=="function"?L(ce):ce.label)??ce.value}))},[n,St,L]),tt=v.useMemo(()=>new Set(St.map(ce=>ce.value)),[St]);v.useEffect(()=>{var ce;if(n==="combobox"){const fe=(ce=St[0])==null?void 0:ce.value;ve(qke(fe)?String(fe):"")}},[St]);const Ne=bq((ce,fe)=>{const Te=fe??ce;return{[J.value]:ce,[J.label]:Te}}),rt=v.useMemo(()=>{if(n!=="tags")return Ee;const ce=[...Ee],fe=Te=>Oe.has(Te);return[...St].sort((Te,$e)=>Te.value<$e.value?-1:1).forEach(Te=>{const $e=Te.value;fe($e)||ce.push(Ne($e,Te.label))}),ce},[Ne,Ee,Oe,St,n]),ot=FOe(rt,J,pe,de,le),Ye=v.useMemo(()=>{const ce=fe=>le.length?le.some(Te=>(fe==null?void 0:fe[Te])===pe):(fe==null?void 0:fe.value)===pe;return n!=="tags"||!pe||ot.some(fe=>ce(fe))||ot.some(fe=>fe[J.value]===pe)?ot:[Ne(pe),...ot]},[Ne,le,n,ot,pe,J]),Ae=ce=>[...ce].sort((Te,$e)=>oe(Te,$e,{searchValue:pe})).map(Te=>Array.isArray(Te.options)?{...Te,options:Te.options.length>0?Ae(Te.options):Te.options}:Te),nt=v.useMemo(()=>oe?Ae(Ye):Ye,[Ye,oe,pe]),Et=v.useMemo(()=>Hke(nt,{fieldNames:J,childrenAsData:ie}),[nt,J,ie]),Tt=ce=>{const fe=We(ce);if(mt(fe),B&&(fe.length!==St.length||fe.some((Te,$e)=>{var et;return((et=St[$e])==null?void 0:et.value)!==(Te==null?void 0:Te.value)}))){const Te=k?fe.map(({label:et,value:Dt})=>({label:et,value:Dt})):fe.map(et=>et.value),$e=fe.map(et=>b$(Ze(et.value)));B(re?Te:Te[0],re?$e:$e[0])}},[Ot,Wt]=v.useState(null),[at,lt]=v.useState(0),Ut=R!==void 0?R:n!=="combobox",cr=v.useRef(),_e=v.useCallback((ce,fe,{source:Te="keyboard"}={})=>{lt(fe),o&&n==="combobox"&&ce!==null&&Te==="keyboard"&&Wt(String(ce));const $e=Promise.resolve().then(()=>{cr.current===$e&&(m==null||m(ce))});cr.current=$e},[o,n,m]),qe=(ce,fe,Te)=>{const $e=()=>{const et=Ze(ce);return[k?{label:et==null?void 0:et[J.label],value:ce}:ce,b$(et)]};if(fe&&f){const[et,Dt]=$e();f(et,Dt)}else if(!fe&&g&&Te!=="clear"){const[et,Dt]=$e();g(et,Dt)}},Re=bq((ce,fe)=>{let Te;const $e=re?fe.selected:!0;$e?Te=re?[...St,ce]:[ce]:Te=St.filter(et=>et.value!==ce),Tt(Te),qe(ce,$e),n==="combobox"?Wt(""):(!T$||ne)&&(ve(""),Wt(""))}),it=(ce,fe)=>{Tt(ce);const{type:Te,values:$e}=fe;(Te==="remove"||Te==="clear")&&$e.forEach(et=>{qe(et.value,!1,Te)})},Ve=(ce,fe)=>{if(ve(ce),Wt(null),fe.source==="submit"){const Te=(ce||"").trim();if(Te){const $e=Array.from(new Set([...tt,Te]));Tt($e),qe(Te,!0),ve("")}return}fe.source!=="blur"&&(n==="combobox"&&Tt(ce),ee==null||ee(ce))},ke=ce=>{let fe=ce;n!=="tags"&&(fe=ce.map($e=>{const et=De.get($e);return et==null?void 0:et.value}).filter($e=>$e!==void 0));const Te=Array.from(new Set([...tt,...fe]));Tt(Te),Te.forEach($e=>{qe($e,!0)})},se=v.useMemo(()=>({...me,flattenOptions:Et,onActiveValue:_e,defaultActiveFirstOption:Ut,onSelect:Re,menuItemSelectedIcon:T,rawValues:tt,fieldNames:J,virtual:M!==!1&&y!==!1,direction:D,listHeight:A,listItemHeight:I,childrenAsData:ie,maxCount:H,optionRender:x,classNames:N,styles:z}),[H,me,Et,_e,Ut,Re,T,tt,J,M,y,D,A,I,ie,x,N,z]);return v.createElement(iH.Provider,{value:se},v.createElement(dOe,P$({},W,{id:he,prefixCls:i,ref:t,omitDomProps:OOe,mode:n,classNames:N,styles:z,displayValues:Fe,onDisplayValuesChange:it,maxCount:H,direction:D,showSearch:$,searchValue:pe,onSearch:Ve,autoClearSearchValue:ne,onSearchSplit:ke,popupMatchSelectWidth:y,OptionList:DOe,emptyOptions:!Et.length,activeValue:Ot,activeDescendantId:`${he}_list_${at}`})))}),aH=BOe;aH.Option=sH;aH.OptGroup=oH;const Wy=(e,t,r)=>Z({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:r}),jx=(e,t)=>t||e,$Oe=()=>{const[,e]=fs(),[t]=Dl("Empty"),n=new cn(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return v.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},v.createElement("title",null,(t==null?void 0:t.description)||"Empty"),v.createElement("g",{fill:"none",fillRule:"evenodd"},v.createElement("g",{transform:"translate(24 31.7)"},v.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.8",cy:"106.9",rx:"67.8",ry:"12.7"}),v.createElement("path",{fill:"#aeb8c2",d:"M122 69.7 98.1 40.2a6 6 0 0 0-4.6-2.2H42.1a6 6 0 0 0-4.6 2.2l-24 29.5V85H122z"}),v.createElement("path",{fill:"#f5f5f7",d:"M33.8 0h68a4 4 0 0 1 4 4v93.3a4 4 0 0 1-4 4h-68a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4"}),v.createElement("path",{fill:"#dce0e6",d:"M42.7 10h50.2a2 2 0 0 1 2 2v25a2 2 0 0 1-2 2H42.7a2 2 0 0 1-2-2V12a2 2 0 0 1 2-2m.2 39.8h49.8a2.3 2.3 0 1 1 0 4.5H42.9a2.3 2.3 0 0 1 0-4.5m0 11.7h49.8a2.3 2.3 0 1 1 0 4.6H42.9a2.3 2.3 0 0 1 0-4.6m79 43.5a7 7 0 0 1-6.8 5.4H20.5a7 7 0 0 1-6.7-5.4l-.2-1.8V69.7h26.3c2.9 0 5.2 2.4 5.2 5.4s2.4 5.4 5.3 5.4h34.8c2.9 0 5.3-2.4 5.3-5.4s2.3-5.4 5.2-5.4H122v33.5q0 1-.2 1.8"})),v.createElement("path",{fill:"#dce0e6",d:"m149.1 33.3-6.8 2.6a1 1 0 0 1-1.3-1.2l2-6.2q-4.1-4.5-4.2-10.4c0-10 10.1-18.1 22.6-18.1S184 8.1 184 18.1s-10.1 18-22.6 18q-6.8 0-12.3-2.8"}),v.createElement("g",{fill:"#fff",transform:"translate(149.7 15.4)"},v.createElement("circle",{cx:"20.7",cy:"3.2",r:"2.8"}),v.createElement("path",{d:"M5.7 5.6H0L2.9.7zM9.3.7h5v5h-5z"}))))},GOe=()=>{const[,e]=fs(),[t]=Dl("Empty"),{colorFill:r,colorFillTertiary:n,colorFillQuaternary:i,colorBgContainer:o}=e,{borderColor:s,shadowColor:a,contentColor:l}=v.useMemo(()=>({borderColor:new cn(r).onBackground(o).toHexString(),shadowColor:new cn(n).onBackground(o).toHexString(),contentColor:new cn(i).onBackground(o).toHexString()}),[r,n,i,o]);return v.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},v.createElement("title",null,(t==null?void 0:t.description)||"Empty"),v.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},v.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),v.createElement("g",{fillRule:"nonzero",stroke:s},v.createElement("path",{d:"M55 12.8 44.9 1.3Q44 0 42.9 0H21.1q-1.2 0-2 1.3L9 12.8V22h46z"}),v.createElement("path",{d:"M41.6 16c0-1.7 1-3 2.2-3H55v18.1c0 2.2-1.3 3.9-3 3.9H12c-1.7 0-3-1.7-3-3.9V13h11.2c1.2 0 2.2 1.3 2.2 3s1 2.9 2.2 2.9h14.8c1.2 0 2.2-1.4 2.2-3",fill:l}))))},VOe=e=>{const{componentCls:t,margin:r,marginXS:n,marginXL:i,fontSize:o,lineHeight:s}=e;return{[t]:{marginInline:n,fontSize:o,lineHeight:s,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:n,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:r},"&-normal":{marginBlock:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:n,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},zOe=zr("Empty",e=>{const{componentCls:t,controlHeightLG:r,calc:n}=e,i=$r(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n(r).mul(2.5).equal(),emptyImgHeightMD:r,emptyImgHeightSM:n(r).mul(.875).equal()});return VOe(i)}),Ice=v.createElement($Oe,null),Dce=v.createElement(GOe,null),ad=e=>{const{className:t,rootClassName:r,prefixCls:n,image:i,description:o,children:s,imageStyle:a,style:l,classNames:c,styles:u,...d}=e,{getPrefixCls:h,direction:p,className:f,style:g,classNames:m,styles:y,image:b}=Fr("empty"),S=h("empty",n),[x,E]=zOe(S),[R,T]=Gr([m,c],[y,u],{props:e}),[M]=Dl("Empty"),D=typeof o<"u"?o:M==null?void 0:M.description,A=typeof D=="string"?D:"empty",I=i??b??Ice;let L=null;return typeof I=="string"?L=v.createElement("img",{draggable:!1,alt:A,src:I}):L=I,v.createElement("div",{className:Z(x,E,S,f,{[`${S}-normal`]:I===Dce,[`${S}-rtl`]:p==="rtl"},t,r,R.root),style:{...T.root,...g,...l},...d},v.createElement("div",{className:Z(`${S}-image`,R.image),style:{...a,...T.image}},L),D&&v.createElement("div",{className:Z(`${S}-description`,R.description),style:T.description},D),s&&v.createElement("div",{className:Z(`${S}-footer`,R.footer),style:T.footer},s))};ad.PRESENTED_IMAGE_DEFAULT=Ice;ad.PRESENTED_IMAGE_SIMPLE=Dce;const lH=e=>{const{componentName:t}=e,{getPrefixCls:r}=v.useContext(ir),n=r("empty");switch(t){case"Table":case"List":return Q.createElement(ad,{image:ad.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Q.createElement(ad,{image:ad.PRESENTED_IMAGE_SIMPLE,className:`${n}-small`});case"Table.filter":return null;default:return Q.createElement(ad,null)}},Kx=(e,t,r)=>{const{variant:n,[e]:i}=v.useContext(ir),o=v.useContext(K2e),s=i==null?void 0:i.variant;let a;typeof t<"u"?a=t:r===!1?a="borderless":a=o??s??n??"outlined";const l=LIe.includes(a);return[a,l]},HOe=e=>{const r={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:{...r,points:["tl","bl"],offset:[0,4]},bottomRight:{...r,points:["tr","br"],offset:[0,4]},topLeft:{...r,points:["bl","tl"],offset:[0,-4]},topRight:{...r,points:["br","tr"],offset:[0,-4]}}};function WOe(e,t){return e||HOe(t)}const Sq=e=>{const{optionHeight:t,optionFontSize:r,optionLineHeight:n,optionPadding:i}=e;return{position:"relative",display:"block",minHeight:t,padding:i,color:e.colorText,fontWeight:"normal",fontSize:r,lineHeight:n,boxSizing:"border-box"}},UOe=e=>{const{antCls:t,componentCls:r}=e,n=`${r}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,o=`&${t}-slide-up-appear${t}-slide-up-appear-active`,s=`&${t}-slide-up-leave${t}-slide-up-leave-active`,a=`${r}-dropdown-placement-`,l=`${n}-option-selected`;return[{[`${r}-dropdown`]:{...on(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,[` ${i}${a}bottomLeft, ${o}${a}bottomLeft `]:{animationName:U4},[` ${i}${a}topLeft, ${o}${a}topLeft, ${i}${a}topRight, ${o}${a}topRight `]:{animationName:K4},[`${s}${a}bottomLeft`]:{animationName:j4},[` ${s}${a}topLeft, ${s}${a}topRight `]:{animationName:q4},"&-hidden":{display:"none"},[n]:{...Sq(e),cursor:"pointer",transition:`background-color ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":{flex:"auto",...Ps},"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${n}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${n}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${n}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${n}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":{...Sq(e),color:e.colorTextDisabled}},[`${l}:has(+ ${l})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}}},Tp(e,"slide-up"),Tp(e,"slide-down"),hM(e,"move-up"),hM(e,"move-down")]},jOe=e=>{const{componentCls:t}=e;return{[`&${t}-customize`]:{border:0,padding:0,fontSize:"inherit",lineHeight:"inherit",[`${t}-placeholder`]:{display:"none"},[`${t}-content`]:{margin:0,padding:0,"&-value":{display:"none"}}}}},wq=4,KOe=e=>{const{componentCls:t,calc:r,iconCls:n,paddingXS:i,paddingXXS:o,INTERNAL_FIXED_ITEM_MARGIN:s,lineWidth:a,colorIcon:l,colorIconHover:c,inputPaddingHorizontalBase:u,antCls:d}=e,[h,p]=Jn(d,"select");return{"&-multiple":{[h("multi-item-background")]:e.multipleItemBg,[h("multi-item-border-color")]:"transparent",[h("multi-item-border-radius")]:e.borderRadiusSM,[h("multi-item-height")]:e.multipleItemHeight,[h("multi-padding-base")]:`calc((${p("height")} - ${p("multi-item-height")}) / 2)`,[h("multi-padding-vertical")]:`calc(${p("multi-padding-base")} - ${s} - ${a})`,[h("multi-item-padding-horizontal")]:`calc(${u} - ${p("multi-padding-vertical")} - ${a} * 2)`,paddingBlock:p("multi-padding-vertical"),paddingInlineStart:`calc(${p("multi-padding-base")} - ${a})`,[`${t}-prefix`]:{marginInlineStart:p("multi-item-padding-horizontal")},[`${t}-prefix + ${t}-content`]:{[`${t}-placeholder`]:{insetInlineStart:0},[`${t}-content-item${t}-content-item-suffix`]:{marginInlineStart:0}},[`${t}-placeholder`]:{position:"absolute",lineHeight:p("line-height"),insetInlineStart:p("multi-item-padding-horizontal"),width:`calc(100% - ${p("multi-item-padding-horizontal")})`,top:"50%",transform:"translateY(-50%)"},[`${t}-content`]:{flexWrap:"wrap",alignItems:"center",lineHeight:1,"&-item-prefix":{height:p("font-size")},"&-item":{lineHeight:1,maxWidth:`calc(100% - ${wq}px)`},[`${t}-content-item-prefix + ${t}-content-item-suffix, ${t}-content-item-suffix:first-child`]:{marginInlineStart:p("multi-item-padding-horizontal")},[`${t}-selection-item`]:{lineHeight:`calc(${p("multi-item-height")} - ${a} * 2)`,border:`${a} solid ${p("multi-item-border-color")}`,display:"flex",marginBlock:s,marginInlineEnd:r(s).mul(2).equal(),background:p("multi-item-background"),borderRadius:p("multi-item-border-radius"),paddingInlineStart:i,paddingInlineEnd:o,transition:["height","line-height","padding"].map(f=>`${f} ${e.motionDurationSlow}`).join(","),"&-content":{...Ps,marginInlineEnd:o},"&-remove":{...Dx(),display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}}},[`${t}-input`]:{lineHeight:r(s).mul(2).add(p("multi-item-height")).equal(),width:"calc(var(--select-input-width, 0) * 1px)",minWidth:wq,maxWidth:"100%",transition:`line-height ${e.motionDurationSlow}`}},[`&${t}-sm`]:{[h("multi-item-height")]:e.multipleItemHeightSM,[h("multi-item-border-radius")]:e.borderRadiusXS},[`&${t}-lg`]:{[h("multi-item-height")]:e.multipleItemHeightLG,[h("multi-item-border-radius")]:e.borderRadius},[`&${t}-filled`]:{[h("multi-item-border-color")]:e.colorSplit,[h("multi-item-background")]:e.colorBgContainer,[`&${t}-disabled`]:{[h("multi-item-border-color")]:"transparent"}}}}},r2=(e,t)=>{const{componentCls:r,antCls:n}=e,[i]=Jn(n,"select"),{border:o,borderHover:s,borderActive:a,borderOutline:l}=t,c=t.background||e.selectorBg||e.colorBgContainer;return{[i("border-color")]:o,[i("background-color")]:c,[i("color")]:t.color||e.colorText,[`&:not(${r}-disabled)`]:{"&:hover":{[i("border-color")]:s,[i("background-color")]:t.backgroundHover||c},[`&${r}-focused`]:{[i("border-color")]:a,[i("background-color")]:t.backgroundActive||c,boxShadow:`0 0 0 ${ae(e.controlOutlineWidth)} ${l}`}},[`&${r}-disabled`]:{[i("border-color")]:t.borderDisabled||t.border,[i("background-color")]:t.backgroundDisabled||t.background}}},cT=(e,t,r,n={},i={},o)=>{const{componentCls:s}=e;return{[`&${s}-${t}`]:[r2(e,r),{[`&${s}-status-error`]:r2(e,{...r,color:n.color||e.colorError,...n}),[`&${s}-status-warning`]:r2(e,{...r,color:i.color||e.colorWarning,...i})},o]}},qOe=e=>{const{componentCls:t,fontHeight:r,controlHeight:n,iconCls:i,antCls:o,calc:s}=e,[a,l]=Jn(o,"select");return{[t]:[{[a("border-radius")]:e.borderRadius,[a("border-color")]:"#000",[a("border-size")]:e.lineWidth,[a("background-color")]:e.colorBgContainer,[a("font-size")]:e.fontSize,[a("line-height")]:e.lineHeight,[a("font-height")]:r,[a("color")]:e.colorText,[a("height")]:n,[a("padding-horizontal")]:s(e.paddingSM).sub(e.lineWidth).equal(),[a("padding-vertical")]:`calc((${l("height")} - ${l("font-height")}) / 2 - ${l("border-size")})`,...on(e,!0),display:"inline-flex",flexWrap:"nowrap",position:"relative",transition:`all ${e.motionDurationSlow}`,alignItems:"flex-start",outline:0,cursor:"pointer",borderRadius:l("border-radius"),borderWidth:l("border-size"),borderStyle:e.lineType,borderColor:l("border-color"),background:l("background-color"),fontSize:l("font-size"),lineHeight:l("line-height"),color:l("color"),paddingInline:l("padding-horizontal"),paddingBlock:l("padding-vertical"),[`${t}-prefix`]:{flex:"none",lineHeight:1},[`${t}-placeholder`]:{...Ps,color:e.colorTextPlaceholder,pointerEvents:"none",zIndex:1},[`${t}-content`]:{flex:"auto",minWidth:0,position:"relative",display:"flex",marginInlineEnd:s(e.paddingXXS).mul(1.5).equal(),"&:before":{content:'"\\a0"',width:0,overflow:"hidden"},"&-value":{visibility:"inherit"},"input[readonly]":{cursor:"inherit",caretColor:"transparent"}},[`${t}-suffix`]:{flex:"none",color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,"> :not(:last-child)":{marginInlineEnd:e.marginXS}},[`${t}-prefix, ${t}-suffix`]:{alignSelf:"center",[i]:{verticalAlign:"top"}},"&-disabled":{background:e.colorBgContainerDisabled,color:e.colorTextDisabled,cursor:"not-allowed",input:{cursor:"not-allowed"}},"&-sm":{[a("height")]:e.controlHeightSM,[a("padding-horizontal")]:s(e.paddingXS).sub(e.lineWidth).equal(),[a("border-radius")]:e.borderRadiusSM,[`${t}-clear`]:{insetInlineEnd:l("padding-horizontal")}},"&-lg":{[a("height")]:e.controlHeightLG,[a("font-size")]:e.fontSizeLG,[a("line-height")]:e.lineHeightLG,[a("font-height")]:e.fontHeightLG,[a("border-radius")]:e.borderRadiusLG}},{[`&:not(${t}-customize)`]:{[`${t}-input`]:{outline:"none",background:"transparent",appearance:"none",border:0,margin:0,padding:0,color:l("color"),"&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},{[`&-single:not(${t}-customize)`]:{[`${t}-input`]:{position:"absolute",inset:0,lineHeight:`calc(${l("font-height")} + ${l("padding-vertical")} * 2)`},[`${t}-content`]:{...Ps,alignSelf:"center","&-has-value":{display:"block","&:before":{display:"none"}},"&-has-search-value":{color:"transparent"},"&-value":{transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,zIndex:1}},[`&${t}-open ${t}-content`]:{color:e.colorTextPlaceholder,"&-has-search-value":{color:"transparent"}}}},{[`&-show-search:not(${t}-customize-input):not(${t}-disabled)`]:{cursor:"text"}},KOe(e),cT(e,"outlined",{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:e.activeOutlineColor,borderDisabled:e.colorBorderDisabled},{border:e.colorError,borderHover:e.colorErrorHover,borderActive:e.colorError,borderOutline:e.colorErrorOutline},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning,borderOutline:e.colorWarningOutline}),cT(e,"filled",{border:"transparent",borderHover:"transparent",borderActive:e.activeBorderColor,borderOutline:"transparent",borderDisabled:e.colorBorderDisabled,background:e.colorFillTertiary,backgroundHover:e.colorFillSecondary,backgroundActive:e.colorBgContainer},{background:e.colorErrorBg,backgroundHover:e.colorErrorBgHover,borderActive:e.colorError},{background:e.colorWarningBg,backgroundHover:e.colorWarningBgHover,borderActive:e.colorWarning}),cT(e,"borderless",{border:"transparent",borderHover:"transparent",borderActive:"transparent",borderOutline:"transparent",background:"transparent"}),cT(e,"underlined",{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:"transparent"},{border:e.colorError,borderHover:e.colorErrorHover,borderActive:e.colorError},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning},{borderRadius:0,borderTopColor:"transparent",borderRightColor:"transparent",borderLeftColor:"transparent"}),jOe(e)]}},XOe=e=>{const{fontSize:t,lineHeight:r,lineWidth:n,controlHeight:i,controlHeightSM:o,controlHeightLG:s,paddingXXS:a,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:d,controlItemBgActive:h,controlItemBgHover:p,colorBgContainer:f,colorFillSecondary:g,colorBgContainerDisabled:m,colorTextDisabled:y,colorPrimaryHover:b,colorPrimary:S,controlOutline:x}=e,E=a*2,R=n*2,T=Math.min(i-E,i-R),M=Math.min(o-E,o-R),D=Math.min(s-E,s-R);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(a/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:h,optionActiveBg:p,optionPadding:`${(i-t*r)/2}px ${l}px`,optionFontSize:t,optionLineHeight:r,optionHeight:i,selectorBg:f,clearBg:f,singleItemHeightLG:s,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:T,multipleItemHeightSM:M,multipleItemHeightLG:D,multipleSelectorBgDisabled:m,multipleItemColorDisabled:y,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:b,activeBorderColor:S,activeOutlineColor:x,selectAffixPadding:a}},YOe=e=>{const{antCls:t,componentCls:r,motionDurationMid:n,inputPaddingHorizontalBase:i}=e,o={[`${r}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[r]:{...on(e),[`${r}-selection-item`]:{flex:1,fontWeight:"normal",position:"relative",userSelect:"none",...Ps,[`> ${t}-typography`]:{display:"inline"}},[`${r}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${r}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:i,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","opacity"].map(s=>`${s} ${n} ease`).join(", "),textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":o,"&:hover":o},[`${r}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${r}-has-feedback`]:{[`${r}-clear`]:{insetInlineEnd:e.calc(i).add(e.fontSize).add(e.paddingXS).equal()}}}}}},ZOe=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},YOe(e),UOe(e),{[`${t}-rtl`]:{direction:"rtl"}},$x(e,{focusElCls:`${t}-focused`})]},QOe=zr("Select",(e,{rootPrefixCls:t})=>{const r=$r(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[ZOe(r),qOe(r)]},XOe,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var JOe={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"};function M$(){return M$=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,M$({},e,{ref:t,icon:JOe})),cH=v.forwardRef(eNe);var tNe={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"};function I$(){return I$=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,I$({},e,{ref:t,icon:tNe})),ZD=v.forwardRef(rNe);var nNe={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"};function D$(){return D$=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,D$({},e,{ref:t,icon:nNe})),uH=v.forwardRef(iNe);function oNe({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:r,removeIcon:n,loading:i,loadingIcon:o,multiple:s,hasFeedback:a,showSuffixIcon:l,feedbackIcon:c,showArrow:u,componentName:d}){const h=t??v.createElement(AC,null),p=y=>e===null&&!a&&!u?null:v.createElement(v.Fragment,null,l!==!1&&y,a&&c);let f=null;e!==void 0?f=p(e):i?f=p(o??v.createElement(rm,{spin:!0})):f=({open:y,showSearch:b})=>p(y&&b?v.createElement(uH,null):v.createElement(ZD,null));let g=null;r!==void 0?g=r:s?g=v.createElement(cH,null):g=null;let m=null;return n!==void 0?m=n:m=v.createElement(Xd,null),{clearIcon:h,suffixIcon:f,itemIcon:g,removeIcon:m}}function sNe(e){return Q.useMemo(()=>{if(e)return(...t)=>Q.createElement(Rp,{space:!0},e.apply(void 0,t))},[e])}function aNe(e,t){return t!==void 0?t:e!==null}const Ace="SECRET_COMBOBOX_MODE_DO_NOT_USE",lNe=(e,t)=>{var fe,Te,$e,et,Dt;const{prefixCls:r,bordered:n,className:i,rootClassName:o,getPopupContainer:s,popupClassName:a,dropdownClassName:l,listHeight:c=256,placement:u,listItemHeight:d,size:h,disabled:p,notFoundContent:f,status:g,builtinPlacements:m,dropdownMatchSelectWidth:y,popupMatchSelectWidth:b,direction:S,style:x,allowClear:E,variant:R,popupStyle:T,dropdownStyle:M,transitionName:D,tagRender:A,maxCount:I,prefix:L,dropdownRender:F,popupRender:O,onDropdownVisibleChange:k,onOpenChange:B,styles:H,classNames:N,...z}=e,{getPopupContainer:W,getPrefixCls:V,renderEmpty:$,direction:K,virtual:q,popupMatchSelectWidth:X,popupOverflow:Y}=v.useContext(ir),{showSearch:oe,style:ee,styles:ne,className:le,classNames:he}=Fr("select"),[,re]=fs(),ie=d??(re==null?void 0:re.controlHeight),de=V("select",r),J=V(),ue=S??K,{compactSize:ve,compactItemClassnames:pe}=Wp(de,ue),[me,Oe]=Kx("select",R,n),De=ho(de),[Ee,We]=QOe(de,De),ze=v.useMemo(()=>{const{mode:ct}=e;if(ct!=="combobox")return ct===Ace?"combobox":ct},[e.mode]),mt=ze==="multiple"||ze==="tags",Nt=aNe(e.suffixIcon,e.showArrow),St=b??y??X,Ze=sNe(O||F),Fe=B||k,{status:tt,hasFeedback:Ne,isFormItemInput:rt,feedbackIcon:ot}=v.useContext(ua),Ye=jx(tt,g);let Ae;f!==void 0?Ae=f:ze==="combobox"?Ae=null:Ae=($==null?void 0:$("Select"))||v.createElement(lH,{componentName:"Select"});const{suffixIcon:nt,itemIcon:Et,removeIcon:Tt,clearIcon:Ot}=oNe({...z,multiple:mt,hasFeedback:Ne,feedbackIcon:ot,showSuffixIcon:Nt,componentName:"Select"}),Wt=E===!0?{clearIcon:Ot}:E,at=fn(z,["suffixIcon","itemIcon"]),lt=Oi(ct=>h??ve??ct),Ut=v.useContext(hs),cr=p??Ut,_e={...e,variant:me,status:Ye,disabled:cr,size:lt},[qe,Re]=Gr([he,N],[ne,H],{props:_e},{popup:{_default:"root"}}),it=Z((fe=qe.popup)==null?void 0:fe.root,a,l,{[`${de}-dropdown-${ue}`]:ue==="rtl"},o,We,De,Ee),Ve={...(Te=Re.popup)==null?void 0:Te.root,...T??M},ke=Z({[`${de}-lg`]:lt==="large",[`${de}-sm`]:lt==="small",[`${de}-rtl`]:ue==="rtl",[`${de}-${me}`]:Oe,[`${de}-in-form-item`]:rt},Wy(de,Ye,Ne),pe,le,i,qe.root,o,We,De,Ee),se=v.useMemo(()=>u!==void 0?u:ue==="rtl"?"bottomRight":"bottomLeft",[u,ue]),[ce]=Hp("SelectLike",((et=($e=Re.popup)==null?void 0:$e.root)==null?void 0:et.zIndex)??(Ve==null?void 0:Ve.zIndex));return v.createElement(aH,{ref:t,virtual:q,classNames:qe,styles:Re,showSearch:oe,...at,style:{...Re.root,...ee,...x},popupMatchSelectWidth:St,transitionName:mu(J,"slide-up",D),builtinPlacements:WOe(m,Y),listHeight:c,listItemHeight:ie,mode:ze,prefixCls:de,placement:se,direction:ue,prefix:L,suffixIcon:nt,menuItemSelectedIcon:Et,removeIcon:Tt,allowClear:Wt,notFoundContent:Ae,className:ke,getPopupContainer:s||W,popupClassName:it,disabled:cr,popupStyle:{...(Dt=Re.popup)==null?void 0:Dt.root,...Ve,zIndex:ce},maxCount:mt?I:void 0,tagRender:mt?A:void 0,popupRender:Ze,onPopupVisibleChange:Fe})},vu=v.forwardRef(lNe),cNe=rH(vu,"popupAlign");vu.SECRET_COMBOBOX_MODE_DO_NOT_USE=Ace;vu.Option=sH;vu.OptGroup=oH;vu._InternalPanelDoNotUseOrYouWillBeFired=cNe;const{Option:xq}=vu;function Eq(e){return(e==null?void 0:e.type)&&(e.type.isSelectOption||e.type.isSelectOptGroup)}const uNe=(e,t)=>{const{prefixCls:r,className:n,style:i,popupClassName:o,dropdownClassName:s,children:a,dataSource:l,rootClassName:c,dropdownStyle:u,dropdownRender:d,popupRender:h,onDropdownVisibleChange:p,onOpenChange:f,styles:g,classNames:m}=e,y=Li(a),b=h||d,S=f||p;let x;y.length===1&&v.isValidElement(y[0])&&!Eq(y[0])&&([x]=y);const E=x?()=>x:void 0;let R;y.length&&Eq(y[0])?R=a:R=l?l.map(O=>{if(v.isValidElement(O))return O;switch(typeof O){case"string":return v.createElement(xq,{key:O,value:O},O);case"object":{const{value:k}=O;return v.createElement(xq,{key:k,value:k},O.text)}default:return}}):[];const{getPrefixCls:T}=v.useContext(ir),M=T("select",r),D={...e,dataSource:l,status:e.status,popupMatchSelectWidth:e.popupMatchSelectWidth||e.dropdownMatchSelectWidth,popupRender:b,onOpenChange:S},[A,I]=Gr([m],[g],{props:D},{popup:{_default:"root"}}),L=v.useMemo(()=>{var O,k,B;return{root:Z(`${M}-auto-complete`,n,c,A.root,{[`${M}-customize`]:x}),prefix:A.prefix,input:A.input,placeholder:A.placeholder,content:A.content,popup:{root:Z(o,s,(O=A.popup)==null?void 0:O.root),list:(k=A.popup)==null?void 0:k.list,listItem:(B=A.popup)==null?void 0:B.listItem}}},[M,n,c,A,o,s]),F=v.useMemo(()=>{var O,k,B;return{root:{...I.root,...i},input:I.input,prefix:I.prefix,placeholder:I.placeholder,content:I.content,popup:{root:{...u,...(O=I.popup)==null?void 0:O.root},list:(k=I.popup)==null?void 0:k.list,listItem:(B=I.popup)==null?void 0:B.listItem}}},[I,i,u]);return v.createElement(vu,{ref:t,suffixIcon:null,...fn(e,["dataSource","dropdownClassName","popupClassName"]),prefixCls:M,classNames:L,styles:F,mode:vu.SECRET_COMBOBOX_MODE_DO_NOT_USE,popupRender:b,onPopupVisibleChange:S,getInputElement:E},R)},Fce=v.forwardRef(uNe),{Option:dNe}=vu,hNe=rH(Fce,"popupAlign",e=>fn(e,["visible"])),Lce=Fce;Lce.Option=dNe;Lce._InternalPanelDoNotUseOrYouWillBeFired=hNe;const su=["xxxl","xxl","xl","lg","md","sm","xs"],pNe=[].concat(su).reverse(),fNe=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)`,xxxl:`(min-width: ${e.screenXXXL}px)`}),gNe=e=>{const t=e,r=[].concat(su).reverse();return r.forEach((n,i)=>{const o=n.toUpperCase(),s=`screen${o}Min`,a=`screen${o}`;if(!(t[s]<=t[a]))throw new Error(`${s}<=${a} fails : !(${t[s]}<=${t[a]})`);if(i{if(t){for(const r of su)if(e[r]&&(t==null?void 0:t[r])!==void 0)return t[r]}},mNe=()=>{const[,e]=fs(),t=fNe(gNe(e));return Q.useMemo(()=>{const r=new Map;let n=-1,i={};return{responsiveMap:t,matchHandlers:{},dispatch(o){return i=o,r.forEach(s=>s(i)),r.size>=1},subscribe(o){return r.size||this.register(),n+=1,r.set(n,o),o(i),n},unsubscribe(o){r.delete(o),r.size||this.unregister()},register(){Object.entries(t).forEach(([o,s])=>{const a=({matches:c})=>{this.dispatch({...i,[o]:c})},l=window.matchMedia(s);typeof(l==null?void 0:l.addEventListener)=="function"&&l.addEventListener("change",a),this.matchHandlers[s]={mql:l,listener:a},a(l)})},unregister(){Object.values(t).forEach(o=>{var a;const s=this.matchHandlers[o];typeof((a=s==null?void 0:s.mql)==null?void 0:a.removeEventListener)=="function"&&s.mql.removeEventListener("change",s==null?void 0:s.listener)}),r.clear()}}},[t])};function qx(e=!0,t={}){const r=v.useRef(t),[,n]=$4(),i=mNe();return jr(()=>{const o=i.subscribe(s=>{r.current=s,e&&n()});return()=>i.unsubscribe(o)},[]),r.current}const Uy=e=>e?typeof e=="function"?e():e:null,dH=e=>{const{children:t,prefixCls:r,id:n,classNames:i,styles:o,className:s,style:a}=e;return v.createElement("div",{id:n,className:Z(`${r}-container`,i==null?void 0:i.container,s),style:{...o==null?void 0:o.container,...a},role:"tooltip"},typeof t=="function"?t():t)},yv={shiftX:64,adjustY:1},Cv={adjustX:1,shiftY:!0},Qa=[0,0],vNe={left:{points:["cr","cl"],overflow:Cv,offset:[-4,0],targetOffset:Qa},right:{points:["cl","cr"],overflow:Cv,offset:[4,0],targetOffset:Qa},top:{points:["bc","tc"],overflow:yv,offset:[0,-4],targetOffset:Qa},bottom:{points:["tc","bc"],overflow:yv,offset:[0,4],targetOffset:Qa},topLeft:{points:["bl","tl"],overflow:yv,offset:[0,-4],targetOffset:Qa},leftTop:{points:["tr","tl"],overflow:Cv,offset:[-4,0],targetOffset:Qa},topRight:{points:["br","tr"],overflow:yv,offset:[0,-4],targetOffset:Qa},rightTop:{points:["tl","tr"],overflow:Cv,offset:[4,0],targetOffset:Qa},bottomRight:{points:["tr","br"],overflow:yv,offset:[0,4],targetOffset:Qa},rightBottom:{points:["bl","br"],overflow:Cv,offset:[4,0],targetOffset:Qa},bottomLeft:{points:["tl","bl"],overflow:yv,offset:[0,4],targetOffset:Qa},leftBottom:{points:["br","bl"],overflow:Cv,offset:[-4,0],targetOffset:Qa}};function A$(){return A$=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{trigger:r=["hover"],mouseEnterDelay:n=0,mouseLeaveDelay:i=.1,prefixCls:o="rc-tooltip",children:s,onVisibleChange:a,afterVisibleChange:l,motion:c,placement:u="right",align:d={},destroyOnHidden:h=!1,defaultVisible:p,getTooltipContainer:f,arrowContent:g,overlay:m,id:y,showArrow:b=!0,classNames:S,styles:x,...E}=e,R=xc(y),T=v.useRef(null);v.useImperativeHandle(t,()=>T.current);const M={...E};"visible"in e&&(M.popupVisible=e.visible);const D=v.useMemo(()=>{if(!b)return!1;const I=b===!0?{}:b;return{...I,className:Z(I.className,S==null?void 0:S.arrow),style:{...I.style,...x==null?void 0:x.arrow},content:I.content??g}},[b,S==null?void 0:S.arrow,x==null?void 0:x.arrow,g]),A=({open:I})=>{const L=v.Children.only(s),F={"aria-describedby":m&&I?R:void 0};return v.cloneElement(L,F)};return v.createElement(WD,A$({popupClassName:S==null?void 0:S.root,prefixCls:o,popup:v.createElement(dH,{key:"content",prefixCls:o,id:R,classNames:S,styles:x},m),action:r,builtinPlacements:vNe,popupPlacement:u,ref:T,popupAlign:d,getPopupContainer:f,onOpenChange:a,afterOpenChange:l,popupMotion:c,defaultPopupVisible:p,autoDestroy:h,mouseLeaveDelay:i,popupStyle:x==null?void 0:x.root,mouseEnterDelay:n,arrow:D,uniqueContainerClassName:S==null?void 0:S.uniqueContainer,uniqueContainerStyle:x==null?void 0:x.uniqueContainer},M),A)});function hH(e){const{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,i=t/2,o=0,s=i,a=n*1/Math.sqrt(2),l=i-n*(1-1/Math.sqrt(2)),c=i-r*(1/Math.sqrt(2)),u=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),d=2*i-c,h=u,p=2*i-a,f=l,g=2*i-o,m=s,y=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),b=n*(Math.sqrt(2)-1),S=`polygon(${b}px 100%, 50% ${b}px, ${2*i-b}px 100%, ${b}px 100%)`,x=`path('M ${o} ${s} A ${n} ${n} 0 0 0 ${a} ${l} L ${c} ${u} A ${r} ${r} 0 0 1 ${d} ${h} L ${p} ${f} A ${n} ${n} 0 0 0 ${g} ${m} Z')`;return{arrowShadowWidth:y,arrowPath:x,arrowPolygon:S}}const CNe=(e,t,r)=>{const{sizePopupArrow:n,arrowPolygon:i,arrowPath:o,arrowShadowWidth:s,borderRadiusXS:a,calc:l}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:l(n).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:s,height:s,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${ae(a)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},kce=8;function QD(e){const{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?kce:n}}function uT(e,t){return e?t:{}}const pH=(e,t,r)=>{const{componentCls:n,boxShadowPopoverArrow:i,arrowOffsetVertical:o,arrowOffsetHorizontal:s,antCls:a}=e,[l]=Jn(a,"tooltip"),{arrowDistance:c=0,arrowPlacement:u={left:!0,right:!0,top:!0,bottom:!0}}=r||{};return{[n]:{[`${n}-arrow`]:[{position:"absolute",zIndex:1,display:"block",...CNe(e,t,i),"&:before":{background:t}}],...uT(!!u.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:c,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{[l("arrow-offset-x")]:s,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:s}}},"&-placement-topRight":{[l("arrow-offset-x")]:`calc(100% - ${ae(s)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:s}}}}),...uT(!!u.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:c,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{[l("arrow-offset-x")]:s,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:s}}},"&-placement-bottomRight":{[l("arrow-offset-x")]:`calc(100% - ${ae(s)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:s}}}}),...uT(!!u.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:c},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:o},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:o}}),...uT(!!u.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:c},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:o},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:o}})}}};function bNe(e,t,r,n){if(n===!1)return{adjustX:!1,adjustY:!1};const i=n&&typeof n=="object"?n:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.arrowOffsetHorizontal*2+r,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=t.arrowOffsetVertical*2+r,o.shiftX=!0,o.adjustX=!0;break}const s={...o,...i};return s.shiftX||(s.adjustX=!0),s.shiftY||(s.adjustY=!0),s}const Tq={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"]}},SNe={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"]}},wNe=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Oce(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:i,borderRadius:o,visibleFirst:s}=e,a=t/2,l={},c=QD({contentRadius:o,limitVerticalRadius:!0});return Object.keys(Tq).forEach(u=>{const h={...n&&SNe[u]||Tq[u],offset:[0,0],dynamicInset:!0};switch(l[u]=h,wNe.has(u)&&(h.autoArrow=!1),u){case"top":case"topLeft":case"topRight":h.offset[1]=-a-i;break;case"bottom":case"bottomLeft":case"bottomRight":h.offset[1]=a+i;break;case"left":case"leftTop":case"leftBottom":h.offset[0]=-a-i;break;case"right":case"rightTop":case"rightBottom":h.offset[0]=a+i;break}if(n)switch(u){case"topLeft":case"bottomLeft":h.offset[0]=-c.arrowOffsetHorizontal-a;break;case"topRight":case"bottomRight":h.offset[0]=c.arrowOffsetHorizontal+a;break;case"leftTop":case"rightTop":h.offset[1]=-c.arrowOffsetHorizontal*2+a;break;case"leftBottom":case"rightBottom":h.offset[1]=c.arrowOffsetHorizontal*2-a;break}h.overflow=bNe(u,c,t,r),s&&(h.htmlRegion="visibleFirst")}),l}const fH=(e,t)=>{const r=n=>typeof n=="boolean"?{show:n}:n||{};return Q.useMemo(()=>{const n=r(e),i=r(t);return{...i,...n,show:n.show??i.show??!0}},[e,t])},Rq="50%",xNe=e=>{const{calc:t,componentCls:r,tooltipMaxWidth:n,tooltipColor:i,tooltipBg:o,tooltipBorderRadius:s,zIndexPopup:a,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:h,sizePopupArrow:p,antCls:f}=e,[g,m]=Jn(f,"tooltip"),y=t(s).add(p).add(h).equal(),S={minWidth:t(s).mul(2).add(p).equal(),minHeight:l,padding:`${ae(e.calc(u).div(2).equal())} ${ae(d)}`,color:m("overlay-color",i),textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:s,boxShadow:c,boxSizing:"border-box"},x={[g("valid-offset-x")]:m("arrow-offset-x","var(--arrow-x)"),transformOrigin:[m("valid-offset-x",Rq),`var(--arrow-y, ${Rq})`].join(" ")};return[{[r]:{...on(e),position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible",...x,"&-hidden":{display:"none"},[g("arrow-background-color")]:o,[`${r}-container`]:[S,qD(e,!0)],[`&:has(~ ${r}-unique-container)`]:{[`${r}-container`]:{border:"none",background:"transparent",boxShadow:"none"}},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:y},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${r}-inner`]:{borderRadius:e.min(s,kce)}},[`${r}-content`]:{position:"relative"},...VD(e,(E,{darkColor:R})=>({[`&${r}-${E}`]:{[`${r}-container`]:{backgroundColor:R},[`${r}-arrow`]:{[g("arrow-background-color")]:R}}})),"&-rtl":{direction:"rtl"}}},pH(e,m("arrow-background-color")),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}},{[`${r}-unique-container`]:{...S,...x,position:"absolute",zIndex:t(a).sub(1).equal(),"&-hidden":{display:"none"},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},ENe=e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,...QD({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...hH($r(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),Nce=(e,t,r=!0)=>zr("Tooltip",i=>{const{borderRadius:o,colorTextLightSolid:s,colorBgSpotlight:a,maxWidth:l}=i,c=$r(i,{tooltipMaxWidth:l,tooltipColor:s,tooltipBorderRadius:o,tooltipBg:a});return[xNe(c),Bx(i,"zoom-big-fast")]},ENe,{resetStyle:!1,injectStyle:r})(e,t),TNe=Ad.map(e=>`${e}-inverse`),RNe=["success","processing","error","default","warning"];function JD(e,t=!0){return t?[].concat(Pr(TNe),Pr(Ad)).includes(e):Ad.includes(e)}function PNe(e){return RNe.includes(e)}const Bce=(e,t,r)=>{const n=JD(r),[i]=Jn(e,"tooltip"),o=Z({[`${t}-${r}`]:r&&n}),s={},a={},l=E_e(r).toRgb(),u=(.299*l.r+.587*l.g+.114*l.b)/255<.5?"#FFF":"#000";return r&&!n&&(s.background=r,s[i("overlay-color")]=u,a[i("arrow-background-color")]=r),{className:o,overlayStyle:s,arrowStyle:a}},MNe=e=>{const{prefixCls:t,className:r,placement:n="top",title:i,color:o,overlayInnerStyle:s,classNames:a,styles:l}=e,{getPrefixCls:c}=v.useContext(ir),u=c("tooltip",t),d=c(),h=ho(u),[p,f]=Nce(u,h),g=Bce(d,u,o),m=g.arrowStyle,y=v.useMemo(()=>({container:{...s,...g.overlayStyle}}),[s,g.overlayStyle]),b={...e,placement:n},[S,x]=Gr([a],[y,l],{props:b}),E=Z(h,p,f,u,`${u}-pure`,`${u}-placement-${n}`,r,g.className);return v.createElement("div",{className:E,style:m},v.createElement("div",{className:`${u}-arrow`}),v.createElement(dH,{...e,className:p,prefixCls:u,classNames:S,styles:x},i))},INe=v.forwardRef((e,t)=>{const{prefixCls:r,openClassName:n,getTooltipContainer:i,color:o,children:s,afterOpenChange:a,arrow:l,destroyTooltipOnHide:c,destroyOnHidden:u,title:d,overlay:h,trigger:p,builtinPlacements:f,autoAdjustOverflow:g=!0,motion:m,getPopupContainer:y,placement:b="top",mouseEnterDelay:S=.1,mouseLeaveDelay:x=.1,rootClassName:E,styles:R,classNames:T,onOpenChange:M,overlayInnerStyle:D,overlayStyle:A,overlayClassName:I,...L}=e,[,F]=fs(),{getPopupContainer:O,getPrefixCls:k,direction:B,className:H,style:N,classNames:z,styles:W,arrow:V,trigger:$}=Fr("tooltip"),K=fH(l,V),q=K.show,X=p||$||"hover";MC();const Y=v.useRef(null),oe=()=>{var nt;(nt=Y.current)==null||nt.forceAlign()};v.useImperativeHandle(t,()=>{var nt,Et;return{forceAlign:oe,nativeElement:(nt=Y.current)==null?void 0:nt.nativeElement,popupElement:(Et=Y.current)==null?void 0:Et.popupElement}});const[ee,ne]=An(e.defaultOpen??!1,e.open),le=!d&&!h&&d!==0,he=nt=>{ne(le?!1:nt),!le&&M&&M(nt)},re=v.useMemo(()=>f||Oce({arrowPointAtCenter:(K==null?void 0:K.pointAtCenter)??!1,autoAdjustOverflow:g,arrowWidth:q?F.sizePopupArrow:0,borderRadius:F.borderRadius,offset:F.marginXXS,visibleFirst:!0}),[K,f,F,q,g]),ie=v.useMemo(()=>d===0?d:h||d||"",[h,d]),de=v.createElement(Rp,{space:!0,form:!0},typeof ie=="function"?ie():ie),J={...e,trigger:X,color:o,placement:b,builtinPlacements:f,openClassName:n,arrow:l,autoAdjustOverflow:g,getPopupContainer:y,children:s,destroyTooltipOnHide:c,destroyOnHidden:u},[ue,ve]=Gr([z,T],[W,R],{props:J}),pe=k("tooltip",r),me=k(),Oe=e["data-popover-inject"];let De=ee;!("open"in e)&&le&&(De=!1);const Ee=v.isValidElement(s)&&!Rle(s)?s:v.createElement("span",null,s),We=Ee.props,ze=!We.className||typeof We.className=="string"?Z(We.className,n||`${pe}-open`):We.className,mt=ho(pe),[Nt,St]=Nce(pe,mt,!Oe),Ze=Bce(me,pe,o),Fe=Ze.arrowStyle,tt=Z(mt,Nt,St),Ne=Z(I,{[`${pe}-rtl`]:B==="rtl"},Ze.className,E,tt,H,ue.root),[rt,ot]=Hp("Tooltip",L.zIndex),Ye={...ve.container,...D,...Ze.overlayStyle},Ae=v.createElement(yNe,{unique:!0,...L,trigger:X,zIndex:rt,showArrow:q,placement:b,mouseEnterDelay:S,mouseLeaveDelay:x,prefixCls:pe,classNames:{root:Ne,container:ue.container,arrow:ue.arrow,uniqueContainer:Z(tt,ue.container)},styles:{root:{...Fe,...ve.root,...N,...A},container:Ye,uniqueContainer:Ye,arrow:ve.arrow},getTooltipContainer:y||i||O,ref:Y,builtinPlacements:re,overlay:de,visible:De,onVisibleChange:he,afterVisibleChange:a,arrowContent:v.createElement("span",{className:`${pe}-arrow-content`}),motion:{motionName:mu(me,"zoom-big-fast",typeof(m==null?void 0:m.motionName)=="string"?m==null?void 0:m.motionName:void 0),motionDeadline:1e3},destroyOnHidden:u??!!c},De?Ei(Ee,{className:ze}):Ee);return v.createElement(_x.Provider,{value:ot},Ae)}),El=INe;El._InternalPanelDoNotUseOrYouWillBeFired=MNe;El.UniqueProvider=Mle;const Pq="50%",DNe=e=>{const{componentCls:t,popoverColor:r,titleMinWidth:n,fontWeightStrong:i,innerPadding:o,boxShadowSecondary:s,colorTextHeading:a,borderRadiusLG:l,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:d,popoverBg:h,titleBorderBottom:p,innerContentPadding:f,titlePadding:g,antCls:m}=e,[y,b]=Jn(m,"tooltip");return[{[t]:{...on(e),position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",[y("valid-offset-x")]:b("arrow-offset-x","var(--arrow-x)"),transformOrigin:[b("valid-offset-x",Pq),`var(--arrow-y, ${Pq})`].join(" "),[y("arrow-background-color")]:d,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-container`]:{backgroundColor:h,backgroundClip:"padding-box",borderRadius:l,boxShadow:s,padding:o},[`${t}-title`]:{minWidth:n,marginBottom:u,color:a,fontWeight:i,borderBottom:p,padding:g},[`${t}-content`]:{color:r,padding:f}}},pH(e,b("arrow-background-color")),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block"}}]},ANe=e=>{const{componentCls:t,antCls:r}=e,[n]=Jn(r,"tooltip");return{[t]:Ad.map(i=>{const o=e[`${i}6`];return{[`&${t}-${i}`]:{[n("arrow-background-color")]:o,[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{background:"transparent"}}}})}},FNe=e=>{const{lineWidth:t,controlHeight:r,fontHeight:n,padding:i,wireframe:o,zIndexPopupBase:s,borderRadiusLG:a,marginXS:l,lineType:c,colorSplit:u,paddingSM:d}=e,h=r-n,p=h/2,f=h/2-t,g=i;return{titleMinWidth:177,zIndexPopup:s+30,...hH(e),...QD({contentRadius:a,limitVerticalRadius:!0}),innerPadding:o?0:12,titleMarginBottom:o?0:l,titlePadding:o?`${p}px ${g}px ${f}px`:0,titleBorderBottom:o?`${t}px ${c} ${u}`:"none",innerContentPadding:o?`${d}px ${g}px`:0}},$ce=zr("Popover",e=>{const{colorBgElevated:t,colorText:r}=e,n=$r(e,{popoverBg:t,popoverColor:r});return[DNe(n),ANe(n),Bx(n,"zoom-big")]},FNe,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]}),Gce=e=>{const{title:t,content:r,prefixCls:n,classNames:i,styles:o}=e;return!t&&!r?null:v.createElement(v.Fragment,null,t&&v.createElement("div",{className:Z(`${n}-title`,i==null?void 0:i.title),style:o==null?void 0:o.title},t),r&&v.createElement("div",{className:Z(`${n}-content`,i==null?void 0:i.content),style:o==null?void 0:o.content},r))},LNe=e=>{const{hashId:t,prefixCls:r,className:n,style:i,placement:o="top",title:s,content:a,children:l,classNames:c,styles:u}=e,d=Uy(s),h=Uy(a),p={...e,placement:o},[f,g]=Gr([c],[u],{props:p}),m=Z(t,r,`${r}-pure`,`${r}-placement-${o}`,n);return v.createElement("div",{className:m,style:i},v.createElement("div",{className:`${r}-arrow`}),v.createElement(dH,{...e,className:t,prefixCls:r,classNames:f,styles:g},l||v.createElement(Gce,{prefixCls:r,title:d,content:h,classNames:f,styles:g})))},Vce=e=>{const{prefixCls:t,className:r,...n}=e,{getPrefixCls:i}=v.useContext(ir),o=i("popover",t),[s,a]=$ce(o);return v.createElement(LNe,{...n,prefixCls:o,hashId:s,className:Z(r,a)})},_Ne=v.forwardRef((e,t)=>{const{prefixCls:r,title:n,content:i,overlayClassName:o,placement:s="top",trigger:a,children:l,mouseEnterDelay:c=.1,mouseLeaveDelay:u=.1,onOpenChange:d,overlayStyle:h={},styles:p,classNames:f,motion:g,arrow:m,...y}=e,{getPrefixCls:b,className:S,style:x,classNames:E,styles:R,arrow:T,trigger:M}=Fr("popover"),D=b("popover",r),[A,I]=$ce(D),L=b(),F=fH(m,T),O=a||M||"hover",k={...e,placement:s,trigger:O,mouseEnterDelay:c,mouseLeaveDelay:u,overlayStyle:h,styles:p,classNames:f},[B,H]=Gr([E,f],[R,p],{props:k}),N=Z(o,A,I,S,B.root),[z,W]=An(e.defaultOpen??!1,e.open),V=q=>{W(q),d==null||d(q)},$=Uy(n),K=Uy(i);return v.createElement(El,{unique:!1,arrow:F,placement:s,trigger:O,mouseEnterDelay:c,mouseLeaveDelay:u,...y,prefixCls:D,classNames:{root:N,container:B.container,arrow:B.arrow},styles:{root:{...H.root,...x,...h},container:H.container,arrow:H.arrow},ref:t,open:z,onOpenChange:V,overlay:$||K?v.createElement(Gce,{prefixCls:D,title:$,content:K,classNames:B,styles:H}):null,motion:{motionName:mu(L,"zoom-big",typeof(g==null?void 0:g.motionName)=="string"?g==null?void 0:g.motionName:void 0)},"data-popover-inject":!0},l)}),zce=_Ne;zce._InternalPanelDoNotUseOrYouWillBeFired=Vce;var kNe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"};function F$(){return F$=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,F$({},e,{ref:t,icon:kNe})),NNe=v.forwardRef(ONe),Mq=e=>{const{prefixCls:t,value:r,current:n,offset:i=0}=e;let o;return i&&(o={position:"absolute",top:`${i}00%`,left:0}),v.createElement("span",{style:o,className:Z(`${t}-only-unit`,{current:n})},r)};function BNe(e,t,r){let n=e,i=0;for(;(n+10)%10!==t;)n+=r,i+=r;return i}const $Ne=e=>{const{prefixCls:t,count:r,value:n}=e,i=Number(n),o=Math.abs(r),[s,a]=v.useState(i),[l,c]=v.useState(o),u=()=>{a(i),c(o)};v.useEffect(()=>{const p=setTimeout(u,1e3);return()=>clearTimeout(p)},[i]);let d,h;if(s===i||Number.isNaN(i)||Number.isNaN(s))d=[v.createElement(Mq,{...e,key:i,current:!0})],h={transition:"none"};else{d=[];const p=i+10,f=[];for(let b=i;b<=p;b+=1)f.push(b);const g=lb%10===s);d=(g<0?f.slice(0,m+1):f.slice(m)).map((b,S)=>{const x=b%10;return v.createElement(Mq,{...e,key:b,value:x,offset:g<0?S-m:S,current:S===m})}),h={transform:`translateY(${-BNe(s,i,g)}00%)`}}return v.createElement("span",{className:`${t}-only`,style:h,onTransitionEnd:u},d)},GNe=v.forwardRef((e,t)=>{const{prefixCls:r,count:n,className:i,motionClassName:o,style:s,title:a,show:l,component:c="sup",children:u,...d}=e,{getPrefixCls:h}=v.useContext(ir),p=h("scroll-number",r),f={...d,"data-show":l,style:s,className:Z(p,i,o),title:a};let g=n;if(n&&Number(n)%1===0){const m=String(n).split("");g=v.createElement("bdi",null,m.map((y,b)=>v.createElement($Ne,{prefixCls:p,count:Number(n),value:y,key:m.length-b})))}return s!=null&&s.borderColor&&(f.style={...s,boxShadow:`0 0 0 1px ${s.borderColor} inset`}),u?Ei(u,m=>({className:Z(`${p}-custom-component`,m==null?void 0:m.className,o)})):v.createElement(c,{...f,ref:t},g)}),VNe=new qr("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),zNe=new qr("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),HNe=new qr("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),WNe=new qr("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),UNe=new qr("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),jNe=new qr("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),KNe=e=>{const{componentCls:t,iconCls:r,antCls:n,badgeShadowSize:i,textFontSize:o,textFontSizeSM:s,statusSize:a,dotSize:l,textFontWeight:c,indicatorHeight:u,indicatorHeightSM:d,marginXS:h,calc:p}=e,f=`${n}-scroll-number`,g=VD(e,(m,{darkColor:y})=>({[`&${t} ${t}-color-${m}`]:{background:y,[`&:not(${t}-count)`]:{color:y},"a:hover &":{background:y}}}));return{[t]:{...on(e),position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:u,height:u,color:e.badgeTextColor,fontWeight:c,fontSize:o,lineHeight:ae(u),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:p(u).div(2).equal(),boxShadow:`0 0 0 ${ae(i)} ${e.badgeShadowColor}`,transition:`background-color ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:d,height:d,fontSize:s,lineHeight:ae(d),borderRadius:p(d).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${ae(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:l,minWidth:l,height:l,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${ae(i)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${f}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${r}-spin`]:{animationName:jNe,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:a,height:a,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:i,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:VNe,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:h,color:e.colorText,fontSize:e.fontSize}},...g,[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:zNe,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:HNe,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:WNe,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:UNe,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${f}-custom-component, ${t}-count`]:{transform:"none"},[`${f}-custom-component, ${f}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[f]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${f}-only`]:{position:"relative",display:"inline-block",height:u,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${f}-only-unit`]:{height:u,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${f}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${f}-custom-component`]:{transform:"translate(-50%, -50%)"}}}}},Hce=e=>{const{fontHeight:t,lineWidth:r,marginXS:n,colorBorderBg:i}=e,o=t,s=r,a=e.colorTextLightSolid,l=e.colorError,c=e.colorErrorHover;return $r(e,{badgeFontHeight:o,badgeShadowSize:s,badgeTextColor:a,badgeColor:l,badgeColorHover:c,badgeShadowColor:i,badgeProcessingDuration:"1.2s",badgeRibbonOffset:n,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},Wce=e=>{const{fontSize:t,lineHeight:r,fontSizeSM:n,lineWidth:i}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*r)-2*i,indicatorHeightSM:t,dotSize:n/2,textFontSize:n,textFontSizeSM:n,textFontWeight:"normal",statusSize:n/2}},qNe=zr("Badge",e=>{const t=Hce(e);return KNe(t)},Wce),XNe=v.forwardRef((e,t)=>{const{prefixCls:r,scrollNumberPrefixCls:n,children:i,status:o,text:s,color:a,count:l=null,overflowCount:c=99,dot:u=!1,size:d="medium",title:h,offset:p,style:f,className:g,rootClassName:m,classNames:y,styles:b,showZero:S=!1,...x}=e,{getPrefixCls:E,direction:R,className:T,style:M,classNames:D,styles:A}=Fr("badge"),I=E("badge",r),[L,F]=qNe(I),O={...e,overflowCount:c,size:d,dot:u,showZero:S},[k,B]=Gr([D,y],[A,b],{props:O}),H=l>c?`${c}+`:l,N=H==="0"||H===0||s==="0"||s===0,z=l===null||N&&!S,W=(Tn(o)||Tn(a))&&z,V=Tn(o)||!N,$=u&&!N,K=$?"":H,q=v.useMemo(()=>((!Tn(K)||K==="")&&(!Tn(s)||s==="")||N&&!S)&&!$,[K,N,S,$,s]),X=v.useRef(l);q||(X.current=l);const Y=X.current,oe=v.useRef(K);q||(oe.current=K);const ee=oe.current,ne=v.useRef($);q||(ne.current=$);const le=v.useMemo(()=>{if(!p)return{...M,...f};const me=Number.parseInt(p[0],10);return{...{marginTop:p[1],insetInlineEnd:-me},...M,...f}},[p,f,M]),he=h??(typeof Y=="string"||typeof Y=="number"?Y:void 0),re=!q&&(s===0?S:!!s&&s!==!0),ie=re?v.createElement("span",{className:`${I}-status-text`},s):null,de=!Y||typeof Y!="object"?void 0:Ei(Y,me=>({style:{...le,...me.style}})),J=JD(a,!1),ue=Z(k.indicator,{[`${I}-status-dot`]:W,[`${I}-status-${o}`]:!!o,[`${I}-color-${a}`]:J}),ve={};a&&!J&&(ve.color=a,ve.background=a);const pe=Z(I,{[`${I}-status`]:W,[`${I}-not-a-wrapper`]:!i,[`${I}-rtl`]:R==="rtl"},g,m,T,k.root,L,F);if(!i&&W&&(s||V||!z)){const me=le.color;return v.createElement("span",{ref:t,...x,className:pe,style:{...B.root,...le}},v.createElement("span",{className:ue,style:{...B.indicator,...ve}}),re&&v.createElement("span",{style:{color:me},className:`${I}-status-text`},s))}return v.createElement("span",{ref:t,...x,className:pe,style:B.root},i,v.createElement(Mu,{visible:!q,motionName:`${I}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:me})=>{const Oe=E("scroll-number",n),De=ne.current,Ee=Z(k.indicator,{[`${I}-dot`]:De,[`${I}-count`]:!De,[`${I}-count-sm`]:d==="small",[`${I}-multiple-words`]:!De&&ee&&ee.toString().length>1,[`${I}-status-${o}`]:!!o,[`${I}-color-${a}`]:J});let We={...B.indicator,...le};return a&&!J&&(We=We||{},We.background=a),v.createElement(GNe,{prefixCls:Oe,show:!q,motionClassName:me,className:Ee,count:ee,title:he,style:We,key:"scrollNumber"},de)}),ie)}),YNe=e=>{const{antCls:t,badgeFontHeight:r,marginXS:n,badgeRibbonOffset:i,calc:o}=e,s=`${t}-ribbon`,a=`${t}-ribbon-wrapper`,l=VD(e,(c,{darkColor:u})=>({[`&${s}-color-${c}`]:{background:u,color:u}}));return{[a]:{position:"relative"},[s]:{...on(e),position:"absolute",top:n,padding:`0 ${ae(e.paddingXS)}`,color:e.colorPrimary,lineHeight:ae(r),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${s}-content`]:{color:e.badgeTextColor},[`${s}-corner`]:{position:"absolute",top:"100%",width:i,height:i,color:"currentcolor",border:`${ae(o(i).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter},...l,[`&${s}-placement-end`]:{insetInlineEnd:o(i).mul(-1).equal(),borderEndEndRadius:0,[`${s}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${s}-placement-start`]:{insetInlineStart:o(i).mul(-1).equal(),borderEndStartRadius:0,[`${s}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}}}},ZNe=zr(["Badge","Ribbon"],e=>{const t=Hce(e);return YNe(t)},Wce),QNe=e=>{const{className:t,prefixCls:r,style:n,color:i,children:o,text:s,placement:a="end",rootClassName:l,styles:c,classNames:u}=e,{getPrefixCls:d,direction:h,className:p,style:f,classNames:g,styles:m}=Fr("ribbon"),y=d("ribbon",r),b=`${y}-wrapper`,[S,x]=ZNe(y,b),E={...e,placement:a},[R,T]=Gr([g,u],[m,c],{props:E}),M=JD(i,!1),D=Z(y,`${y}-placement-${a}`,{[`${y}-rtl`]:h==="rtl",[`${y}-color-${i}`]:M},t,p,R.indicator),A={},I={};return i&&!M&&(A.background=i,I.color=i),v.createElement("div",{className:Z(b,l,S,x,R.root),style:T.root},o,v.createElement("div",{className:Z(D,S),style:{...A,...T.indicator,...f,...n}},v.createElement("span",{className:Z(`${y}-content`,R.content),style:T.content},s),v.createElement("div",{className:`${y}-corner`,style:I})))},Uce=XNe;Uce.Ribbon=QNe;const gH=Q.createContext({});var JNe={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"};function L$(){return L$=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,L$({},e,{ref:t,icon:JNe})),_$=v.forwardRef(eBe),{ESC:tBe,TAB:rBe}=Zt;function nBe({visible:e,triggerRef:t,onVisibleChange:r,autoFocus:n,overlayRef:i}){const o=v.useRef(!1),s=()=>{var c,u;e&&((u=(c=t.current)==null?void 0:c.focus)==null||u.call(c),r==null||r(!1))},a=()=>{var c;return(c=i.current)!=null&&c.focus?(i.current.focus(),o.current=!0,!0):!1},l=c=>{switch(c.keyCode){case tBe:s();break;case rBe:{let u=!1;o.current||(u=a()),u?c.preventDefault():s();break}}};v.useEffect(()=>e?(window.addEventListener("keydown",l),n&&Or(a,3),()=>{window.removeEventListener("keydown",l),o.current=!1}):()=>{o.current=!1},[e])}const iBe=v.forwardRef((e,t)=>{const{overlay:r,arrow:n,prefixCls:i}=e,o=v.useMemo(()=>{let a;return typeof r=="function"?a=r():a=r,a},[r]),s=Wo(t,jd(o));return Q.createElement(Q.Fragment,null,n&&Q.createElement("div",{className:`${i}-arrow`}),Q.cloneElement(o,{ref:pu(o)?s:void 0}))}),bv={adjustX:1,adjustY:1},Sv=[0,0],oBe={topLeft:{points:["bl","tl"],overflow:bv,offset:[0,-4],targetOffset:Sv},top:{points:["bc","tc"],overflow:bv,offset:[0,-4],targetOffset:Sv},topRight:{points:["br","tr"],overflow:bv,offset:[0,-4],targetOffset:Sv},bottomLeft:{points:["tl","bl"],overflow:bv,offset:[0,4],targetOffset:Sv},bottom:{points:["tc","bc"],overflow:bv,offset:[0,4],targetOffset:Sv},bottomRight:{points:["tr","br"],overflow:bv,offset:[0,4],targetOffset:Sv}};function k$(){return k$=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var W;const{arrow:r=!1,prefixCls:n="rc-dropdown",transitionName:i,animation:o,align:s,placement:a="bottomLeft",placements:l=oBe,getPopupContainer:c,showAction:u,hideAction:d,overlayClassName:h,overlayStyle:p,visible:f,trigger:g=["hover"],autoFocus:m,overlay:y,children:b,onVisibleChange:S,...x}=e,[E,R]=Q.useState(),T="visible"in e?f:E,M=o?`${n}-${o}`:i,D=Q.useRef(null),A=Q.useRef(null),I=Q.useRef(null);Q.useImperativeHandle(t,()=>D.current);const L=V=>{R(V),S==null||S(V)};nBe({visible:T,triggerRef:I,onVisibleChange:L,autoFocus:m,overlayRef:A});const F=V=>{const{onOverlayClick:$}=e;R(!1),$&&$(V)},O=()=>Q.createElement(iBe,{ref:A,overlay:y,prefixCls:n,arrow:r}),k=()=>typeof y=="function"?O:O(),B=()=>{const{minOverlayWidthMatchTrigger:V,alignPoint:$}=e;return"minOverlayWidthMatchTrigger"in e?V:!$},H=()=>{const{openClassName:V}=e;return V!==void 0?V:`${n}-open`},N=Q.cloneElement(b,{className:Z((W=b.props)==null?void 0:W.className,T&&H()),ref:pu(b)?Wo(I,jd(b)):void 0});let z=d;return!z&&g.indexOf("contextMenu")!==-1&&(z=["click"]),Q.createElement(WD,k$({builtinPlacements:l},x,{prefixCls:n,ref:D,popupClassName:Z(h,{[`${n}-show-arrow`]:r}),popupStyle:p,action:g,showAction:u,hideAction:z,popupPlacement:a,popupAlign:s,popupMotion:{motionName:M},popupVisible:T,stretch:B()?"minWidth":"",popup:k(),onOpenChange:L,onPopupClick:F,getPopupContainer:c}),N)}),sBe=e=>typeof e!="object"&&typeof e!="function"||e===null,Kce=v.createContext(null);function qce(e,t){return`${e}-${t}`}function Xce(e){const t=v.useContext(Kce);return qce(t,e)}const mc=v.createContext(null);function aBe(e,t){const r={...e};return Object.keys(t).forEach(n=>{const i=t[n];i!==void 0&&(r[n]=i)}),r}function Dw({children:e,locked:t,...r}){const n=v.useContext(mc),i=Pm(()=>aBe(n,r),[n,r],(o,s)=>!t&&(o[0]!==s[0]||!fc(o[1],s[1],!0)));return v.createElement(mc.Provider,{value:i},e)}const lBe=[],Yce=v.createContext(null);function eA(){return v.useContext(Yce)}const Zce=v.createContext(lBe);function FC(e){const t=v.useContext(Zce);return v.useMemo(()=>e!==void 0?[...t,e]:t,[t,e])}const Qce=v.createContext(null),mH=v.createContext({}),{LEFT:O$,RIGHT:N$,UP:B$,DOWN:fP,ENTER:gP,ESC:Jce,HOME:s0,END:a0}=Zt,Iq=[B$,fP,O$,N$];function cBe(e,t,r,n){var p;const i="prev",o="next",s="children",a="parent";if(e==="inline"&&n===gP)return{inlineTrigger:!0};const l={[B$]:i,[fP]:o},c={[O$]:r?o:i,[N$]:r?i:o,[fP]:s,[gP]:s},u={[B$]:i,[fP]:o,[gP]:s,[Jce]:a,[O$]:r?s:a,[N$]:r?a:s};switch((p={inline:l,horizontal:c,vertical:u,inlineSub:l,horizontalSub:u,verticalSub:u}[`${e}${t?"":"Sub"}`])==null?void 0:p[n]){case i:return{offset:-1,sibling:!0};case o:return{offset:1,sibling:!0};case a:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function uBe(e){let t=e;for(;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function dBe(e,t){let r=e||document.activeElement;for(;r;){if(t.has(r))return r;r=r.parentElement}return null}function vH(e,t){return Z4(e,!0).filter(n=>t.has(n))}function Dq(e,t,r,n=1){if(!e)return null;const i=vH(e,t),o=i.length;let s=i.findIndex(a=>r===a);return n<0?s===-1?s=o-1:s-=1:n>0&&(s+=1),s=(s+o)%o,i[s]}const CM=(e,t)=>{const r=new Set,n=new Map,i=new Map;return e.forEach(o=>{const s=document.querySelector(`[data-menu-id='${qce(t,o)}']`);s&&(r.add(s),i.set(s,o),n.set(o,s))}),{elements:r,key2element:n,element2key:i}};function hBe(e,t,r,n,i,o,s,a,l,c){const u=v.useRef(),d=v.useRef();d.current=t;const h=()=>{Or.cancel(u.current)};return v.useEffect(()=>()=>{h()},[]),p=>{const{which:f}=p;if([...Iq,gP,Jce,s0,a0].includes(f)){const g=o();let m=CM(g,n);const{elements:y,key2element:b,element2key:S}=m,x=b.get(t),E=dBe(x,y),R=S.get(E),T=cBe(e,s(R,!0).length===1,r,f);if(!T&&f!==s0&&f!==a0)return;(Iq.includes(f)||[s0,a0].includes(f))&&p.preventDefault();const M=D=>{if(D){let A=D;const I=D.querySelector("a");I!=null&&I.getAttribute("href")&&(A=I);const L=S.get(D);a(L),h(),u.current=Or(()=>{d.current===L&&A.focus()})}};if([s0,a0].includes(f)||T.sibling||!E){let D;!E||e==="inline"?D=i.current:D=uBe(E);let A;const I=vH(D,y);f===s0?A=I[0]:f===a0?A=I[I.length-1]:A=Dq(D,y,E,T.offset),M(A)}else if(T.inlineTrigger)l(R);else if(T.offset>0)l(R,!0),h(),u.current=Or(()=>{m=CM(g,n);const D=E.getAttribute("aria-controls"),A=document.getElementById(D),I=Dq(A,m.elements);M(I)},5);else if(T.offset<0){const D=s(R,!0),A=D[D.length-2],I=b.get(A);l(A,!1),M(I)}}c==null||c(p)}}function pBe(e){Promise.resolve().then(e)}const yH="__RC_UTIL_PATH_SPLIT__",Aq=e=>e.join(yH),fBe=e=>e.split(yH),$$="rc-menu-more";function gBe(){const[,e]=v.useState({}),t=v.useRef(new Map),r=v.useRef(new Map),[n,i]=v.useState([]),o=v.useRef(0),s=v.useRef(!1),a=()=>{s.current||e({})},l=v.useCallback((g,m)=>{const y=Aq(m);r.current.set(y,g),t.current.set(g,y),o.current+=1;const b=o.current;pBe(()=>{b===o.current&&a()})},[]),c=v.useCallback((g,m)=>{const y=Aq(m);r.current.delete(y),t.current.delete(g)},[]),u=v.useCallback(g=>{i(g)},[]),d=v.useCallback((g,m)=>{const y=t.current.get(g)||"",b=fBe(y);return m&&n.includes(b[0])&&b.unshift($$),b},[n]),h=v.useCallback((g,m)=>g.filter(y=>y!==void 0).some(y=>d(y,!0).includes(m)),[d]),p=()=>{const g=[...t.current.keys()];return n.length&&g.push($$),g},f=v.useCallback(g=>{const m=`${t.current.get(g)}${yH}`,y=new Set;return[...r.current.keys()].forEach(b=>{b.startsWith(m)&&y.add(r.current.get(b))}),y},[]);return v.useEffect(()=>()=>{s.current=!0},[]),{registerPath:l,unregisterPath:c,refreshOverflowKeys:u,isSubPathKey:h,getKeyPath:d,getKeys:p,getSubPathKeys:f}}function oS(e){const t=v.useRef(e);t.current=e;const r=v.useCallback((...n)=>{var i;return(i=t.current)==null?void 0:i.call(t,...n)},[]);return e?r:void 0}function eue(e,t,r,n){const{activeKey:i,onActive:o,onInactive:s}=v.useContext(mc),a={active:i===e};return t||(a.onMouseEnter=l=>{r==null||r({key:e,domEvent:l}),o(e)},a.onMouseLeave=l=>{n==null||n({key:e,domEvent:l}),s(e)}),a}function tue(e){const{mode:t,rtl:r,inlineIndent:n}=v.useContext(mc);if(t!=="inline")return null;const i=e;return r?{paddingRight:i*n}:{paddingLeft:i*n}}function rue({icon:e,props:t,children:r}){let n;return e===null||e===!1?null:(typeof e=="function"?n=v.createElement(e,{...t}):typeof e!="boolean"&&(n=e),n||r||null)}function bM({item:e,...t}){return Object.defineProperty(t,"item",{get:()=>(Vn(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}function Aw(){return Aw=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{style:r,className:n,eventKey:i,warnKey:o,disabled:s,itemIcon:a,children:l,role:c,onMouseEnter:u,onMouseLeave:d,onClick:h,onKeyDown:p,onFocus:f,...g}=e,m=Xce(i),{prefixCls:y,onItemClick:b,disabled:S,overflowDisabled:x,itemIcon:E,selectedKeys:R,onActive:T}=v.useContext(mc),{_internalRenderMenuItem:M}=v.useContext(mH),D=`${y}-item`,A=v.useRef(),I=v.useRef(),L=S||s,F=Pu(t,I),O=FC(i),k=Y=>({key:i,keyPath:[...O].reverse(),item:A.current,domEvent:Y}),B=a||E,{active:H,...N}=eue(i,L,u,d),z=R.includes(i),W=tue(O.length),V=Y=>{if(L)return;const oe=k(Y);h==null||h(bM(oe)),b(oe)},$=Y=>{if(p==null||p(Y),Y.which===Zt.ENTER){const oe=k(Y);h==null||h(bM(oe)),b(oe)}},K=Y=>{T(i),f==null||f(Y)},q={};e.role==="option"&&(q["aria-selected"]=z);let X=v.createElement(mBe,Aw({ref:A,elementRef:F,role:c===null?"none":c||"menuitem",tabIndex:s?null:-1,"data-menu-id":x&&m?null:m},fn(g,["extra"]),N,q,{component:"li","aria-disabled":s,style:{...W,...r},className:Z(D,{[`${D}-active`]:H,[`${D}-selected`]:z,[`${D}-disabled`]:L},n),onClick:V,onKeyDown:$,onFocus:K}),l,v.createElement(rue,{props:{...e,isSelected:z},icon:B}));return M&&(X=M(X,e,{selected:z})),X});function yBe(e,t){const{eventKey:r}=e,n=eA(),i=FC(r);return v.useEffect(()=>{if(n)return n.registerPath(r,i),()=>{n.unregisterPath(r,i)}},[i]),n?null:v.createElement(vBe,Aw({},e,{ref:t}))}const Xx=v.forwardRef(yBe);function G$(){return G$=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{prefixCls:i,mode:o,rtl:s}=v.useContext(mc);return v.createElement("ul",G$({className:Z(i,s&&`${i}-rtl`,`${i}-sub`,`${i}-${o==="inline"?"inline":"vertical"}`,e),role:"menu"},r,{"data-menu-list":!0,ref:n}),t)},nue=v.forwardRef(CBe);function CH(e,t){return Li(e).map((r,n)=>{var i;if(v.isValidElement(r)){const{key:o}=r;let s=((i=r.props)==null?void 0:i.eventKey)??o;s==null&&(s=`tmp_key-${[...t,n].join("-")}`);const l={key:s,eventKey:s};return v.cloneElement(r,l)}return r})}const rs={adjustX:1,adjustY:1},bBe={topLeft:{points:["bl","tl"],overflow:rs},topRight:{points:["br","tr"],overflow:rs},bottomLeft:{points:["tl","bl"],overflow:rs},bottomRight:{points:["tr","br"],overflow:rs},leftTop:{points:["tr","tl"],overflow:rs},leftBottom:{points:["br","bl"],overflow:rs},rightTop:{points:["tl","tr"],overflow:rs},rightBottom:{points:["bl","br"],overflow:rs}},SBe={topLeft:{points:["bl","tl"],overflow:rs},topRight:{points:["br","tr"],overflow:rs},bottomLeft:{points:["tl","bl"],overflow:rs},bottomRight:{points:["tr","br"],overflow:rs},rightTop:{points:["tr","tl"],overflow:rs},rightBottom:{points:["br","bl"],overflow:rs},leftTop:{points:["tl","tr"],overflow:rs},leftBottom:{points:["bl","br"],overflow:rs}};function iue(e,t,r){if(t)return t;if(r)return r[e]||r.other}const wBe={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function xBe({prefixCls:e,visible:t,children:r,popup:n,popupStyle:i,popupClassName:o,popupOffset:s,disabled:a,mode:l,onVisibleChange:c}){const{getPopupContainer:u,rtl:d,subMenuOpenDelay:h,subMenuCloseDelay:p,builtinPlacements:f,triggerSubMenuAction:g,forceSubMenuRender:m,rootClassName:y,motion:b,defaultMotions:S}=v.useContext(mc),[x,E]=v.useState(!1),R=d?{...SBe,...f}:{...bBe,...f},T=wBe[l],M=iue(l,b,S),D=v.useRef(M);l!=="inline"&&(D.current=M);const A={...D.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},I=v.useRef();return v.useEffect(()=>(I.current=Or(()=>{E(t)}),()=>{Or.cancel(I.current)}),[t]),v.createElement(WD,{prefixCls:e,popupClassName:Z(`${e}-popup`,{[`${e}-rtl`]:d},o,y),stretch:l==="horizontal"?"minWidth":null,getPopupContainer:u,builtinPlacements:R,popupPlacement:T,popupVisible:x,popup:n,popupStyle:i,popupAlign:s&&{offset:s},action:a?[]:[g],mouseEnterDelay:h,mouseLeaveDelay:p,onPopupVisibleChange:c,forceRender:m,popupMotion:A,fresh:!0},r)}function V$(){return V$=Object.assign?Object.assign.bind():function(e){for(var t=1;t{u.current&&h(!1)},[c]);const f={...iue(i,a,l)};r.length>1&&(f.motionAppear=!1);const g=f.onVisibleChanged;return f.onVisibleChanged=m=>(!u.current&&!m&&h(!0),g==null?void 0:g(m)),d?null:v.createElement(Dw,{mode:i,locked:!u.current},v.createElement(gu,V$({visible:p},f,{forceRender:s,removeOnLeave:!1,leavedClassName:`${o}-hidden`}),({className:m,style:y})=>v.createElement(nue,{id:e,className:m,style:y},n)))}function Fw(){return Fw=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{style:r,className:n,styles:i,classNames:o,title:s,eventKey:a,warnKey:l,disabled:c,internalPopupClose:u,children:d,itemIcon:h,expandIcon:p,popupClassName:f,popupOffset:g,popupStyle:m,onClick:y,onMouseEnter:b,onMouseLeave:S,onTitleClick:x,onTitleMouseEnter:E,onTitleMouseLeave:R,popupRender:T,...M}=e,D=Xce(a),{prefixCls:A,mode:I,openKeys:L,disabled:F,overflowDisabled:O,activeKey:k,selectedKeys:B,itemIcon:H,expandIcon:N,onItemClick:z,onOpenChange:W,onActive:V,popupRender:$}=v.useContext(mc),{_internalRenderSubMenuItem:K}=v.useContext(mH),{isSubPathKey:q}=v.useContext(Qce),X=FC(),Y=`${A}-submenu`,oe=F||c,ee=v.useRef(),ne=v.useRef(),le=h??H,he=p??N,re=L.includes(a),ie=!O&&re,de=q(B,a),{active:J,...ue}=eue(a,oe,E,R),[ve,pe]=v.useState(!1),me=Ae=>{oe||pe(Ae)},Oe=Ae=>{me(!0),b==null||b({key:a,domEvent:Ae})},De=Ae=>{me(!1),S==null||S({key:a,domEvent:Ae})},Ee=v.useMemo(()=>J||(I!=="inline"?ve||q([k],a):!1),[I,J,k,ve,a,q]),We=tue(X.length),ze=Ae=>{oe||(x==null||x({key:a,domEvent:Ae}),I==="inline"&&W(a,!re))},mt=oS(Ae=>{y==null||y(bM(Ae)),z(Ae)}),Nt=Ae=>{I!=="inline"&&W(a,Ae)},St=()=>{V(a)},Ze=D&&`${D}-popup`,Fe=v.useMemo(()=>v.createElement(rue,{icon:I!=="horizontal"?he:void 0,props:{...e,isOpen:ie,isSubMenu:!0}},v.createElement("i",{className:`${Y}-arrow`})),[I,he,e,ie,Y]);let tt=v.createElement("div",Fw({role:"menuitem",style:We,className:`${Y}-title`,tabIndex:oe?null:-1,ref:ee,title:typeof s=="string"?s:null,"data-menu-id":O&&D?null:D,"aria-expanded":ie,"aria-haspopup":!0,"aria-controls":Ze,"aria-disabled":oe,onClick:ze,onFocus:St},ue),s,Fe);const Ne=v.useRef(I);I!=="inline"&&X.length>1?Ne.current="vertical":Ne.current=I;const rt=Ne.current,ot=v.useMemo(()=>{const Ae=v.createElement(Dw,{classNames:o,styles:i,mode:rt==="horizontal"?"vertical":rt},v.createElement(nue,{id:Ze,ref:ne},d)),nt=T||$;return nt?nt(Ae,{item:e,keys:X}):Ae},[T,$,X,Ze,d,e,rt]);if(!O){const Ae=Ne.current;tt=v.createElement(xBe,{mode:Ae,prefixCls:Y,visible:!u&&ie&&I!=="inline",popupClassName:f,popupOffset:g,popupStyle:m,popup:ot,disabled:oe,onVisibleChange:Nt},tt)}let Ye=v.createElement(Sd.Item,Fw({ref:t,role:"none"},M,{component:"li",style:r,className:Z(Y,`${Y}-${I}`,n,{[`${Y}-open`]:ie,[`${Y}-active`]:Ee,[`${Y}-selected`]:de,[`${Y}-disabled`]:oe}),onMouseEnter:Oe,onMouseLeave:De}),tt,!O&&v.createElement(EBe,{id:Ze,open:ie,keyPath:X},d));return K&&(Ye=K(Ye,e,{selected:de,active:Ee,open:ie,disabled:oe})),v.createElement(Dw,{classNames:o,styles:i,onItemClick:mt,mode:I==="horizontal"?"vertical":I,itemIcon:le,expandIcon:he},Ye)}),tA=v.forwardRef((e,t)=>{const{eventKey:r,children:n}=e,i=FC(r),o=CH(n,i),s=eA();v.useEffect(()=>{if(s)return s.registerPath(r,i),()=>{s.unregisterPath(r,i)}},[i]);let a;return s?a=o:a=v.createElement(TBe,Fw({ref:t},e),o),v.createElement(Zce.Provider,{value:i},a)});function bH({className:e,style:t}){const{prefixCls:r}=v.useContext(mc);return eA()?null:v.createElement("li",{role:"separator",className:Z(`${r}-item-divider`,e),style:t})}function SM(){return SM=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{className:r,title:n,eventKey:i,children:o,...s}=e,{prefixCls:a,classNames:l,styles:c}=v.useContext(mc),u=`${a}-item-group`;return v.createElement("li",SM({ref:t,role:"presentation"},s,{onClick:d=>d.stopPropagation(),className:Z(u,r)}),v.createElement("div",{role:"presentation",className:Z(`${u}-title`,l==null?void 0:l.listTitle),style:c==null?void 0:c.listTitle,title:typeof n=="string"?n:void 0},n),v.createElement("ul",{role:"group",className:Z(`${u}-list`,l==null?void 0:l.list),style:c==null?void 0:c.list},o))}),SH=v.forwardRef((e,t)=>{const{eventKey:r,children:n}=e,i=FC(r),o=CH(n,i);return eA()?o:v.createElement(RBe,SM({ref:t},fn(e,["warnKey"])),o)});function oy(){return oy=Object.assign?Object.assign.bind():function(e){for(var t=1;t{if(a&&typeof a=="object"){const{label:c,children:u,key:d,type:h,extra:p,...f}=a,g=d??`tmp-${l}`;return u||h==="group"?h==="group"?v.createElement(i,oy({key:g},f,{title:c}),z$(u,t,r)):v.createElement(o,oy({key:g},f,{title:c}),z$(u,t,r)):h==="divider"?v.createElement(s,oy({key:g},f)):v.createElement(n,oy({key:g},f,{extra:p}),c,(!!p||p===0)&&v.createElement("span",{className:`${r}-item-extra`},p))}return null}).filter(a=>a)}function Fq(e,t,r,n,i){let o=e;const s={divider:bH,item:Xx,group:SH,submenu:tA,...n};return t&&(o=z$(t,s,i)),CH(o,r)}function H$(){return H$=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var _t;const{prefixCls:r="rc-menu",rootClassName:n,style:i,className:o,styles:s,classNames:a,tabIndex:l=0,items:c,children:u,direction:d,id:h,mode:p="vertical",inlineCollapsed:f,disabled:g,disabledOverflow:m,subMenuOpenDelay:y=.1,subMenuCloseDelay:b=.1,forceSubMenuRender:S,defaultOpenKeys:x,openKeys:E,activeKey:R,defaultActiveFirst:T,selectable:M=!0,multiple:D=!1,defaultSelectedKeys:A,selectedKeys:I,onSelect:L,onDeselect:F,inlineIndent:O=24,motion:k,defaultMotions:B,triggerSubMenuAction:H="hover",builtinPlacements:N,itemIcon:z,expandIcon:W,overflowedIndicator:V="...",overflowedIndicatorPopupClassName:$,getPopupContainer:K,onClick:q,onOpenChange:X,onKeyDown:Y,openAnimation:oe,openTransitionName:ee,_internalRenderMenuItem:ne,_internalRenderSubMenuItem:le,_internalComponents:he,popupRender:re,...ie}=e,[de,J]=v.useMemo(()=>[Fq(u,c,Cf,he,r),Fq(u,c,Cf,{},r)],[u,c,he]),[ue,ve]=v.useState(!1),pe=v.useRef(),me=xc(h?`rc-menu-uuid-${h}`:"rc-menu-uuid"),Oe=d==="rtl",[De,Ee]=An(x,E),We=De||Cf,ze=(At,pt=!1)=>{function yt(){Ee(At),X==null||X(At)}pt?$a.flushSync(yt):yt()},[mt,Nt]=v.useState(We),St=v.useRef(!1),[Ze,Fe]=v.useMemo(()=>(p==="inline"||p==="vertical")&&f?["vertical",f]:[p,!1],[p,f]),tt=Ze==="inline",[Ne,rt]=v.useState(Ze),[ot,Ye]=v.useState(Fe);v.useEffect(()=>{rt(Ze),Ye(Fe),St.current&&(tt?Ee(mt):ze(Cf))},[Ze,Fe]);const[Ae,nt]=v.useState(0),Et=Ae>=de.length-1||Ne!=="horizontal"||m;v.useEffect(()=>{tt&&Nt(We)},[We]),v.useEffect(()=>(St.current=!0,()=>{St.current=!1}),[]);const{registerPath:Tt,unregisterPath:Ot,refreshOverflowKeys:Wt,isSubPathKey:at,getKeyPath:lt,getKeys:Ut,getSubPathKeys:cr}=gBe(),_e=v.useMemo(()=>({registerPath:Tt,unregisterPath:Ot}),[Tt,Ot]),qe=v.useMemo(()=>({isSubPathKey:at}),[at]);v.useEffect(()=>{Wt(Et?Cf:de.slice(Ae+1).map(At=>At.key))},[Ae,Et]);const[Re,it]=An(R||T&&((_t=de[0])==null?void 0:_t.key),R),Ve=oS(At=>{it(At)}),ke=oS(()=>{it(void 0)});v.useImperativeHandle(t,()=>({list:pe.current,focus:At=>{var rr,yn;const pt=Ut(),{elements:yt,key2element:It,element2key:Qt}=CM(pt,me),Ft=vH(pe.current,yt);let ur;Re&&pt.includes(Re)?ur=Re:ur=Ft[0]?Qt.get(Ft[0]):(rr=de.find(dn=>!dn.props.disabled))==null?void 0:rr.key;const fr=It.get(ur);ur&&fr&&((yn=fr==null?void 0:fr.focus)==null||yn.call(fr,At))},findItem:({key:At})=>{const pt=Ut(),{key2element:yt}=CM(pt,me);return yt.get(At)||null}}));const[se,ce]=An(A||[],I),fe=v.useMemo(()=>Array.isArray(se)?se:se==null?Cf:[se],[se]),Te=At=>{if(M){const{key:pt}=At,yt=fe.includes(pt);let It;D?yt?It=fe.filter(Ft=>Ft!==pt):It=[...fe,pt]:It=[pt],ce(It);const Qt={...At,selectedKeys:It};yt?F==null||F(Qt):L==null||L(Qt)}!D&&We.length&&Ne!=="inline"&&ze(Cf)},$e=oS(At=>{q==null||q(bM(At)),Te(At)}),et=oS((At,pt)=>{let yt=We.filter(It=>It!==At);if(pt)yt.push(At);else if(Ne!=="inline"){const It=cr(At);yt=yt.filter(Qt=>!It.has(Qt))}fc(We,yt,!0)||ze(yt,!0)}),ct=hBe(Ne,Re,Oe,me,pe,Ut,lt,it,(At,pt)=>{const yt=pt??!We.includes(At);et(At,yt)},Y);v.useEffect(()=>{ve(!0)},[]);const st=v.useMemo(()=>({_internalRenderMenuItem:ne,_internalRenderSubMenuItem:le}),[ne,le]),wt=Ne!=="horizontal"||m?de:de.map((At,pt)=>v.createElement(Dw,{key:At.key,overflowDisabled:pt>Ae,classNames:a,styles:s},At)),Mt=v.createElement(Sd,H$({id:h,ref:pe,prefixCls:`${r}-overflow`,component:"ul",itemComponent:Xx,className:Z(r,`${r}-root`,`${r}-${Ne}`,o,{[`${r}-inline-collapsed`]:ot,[`${r}-rtl`]:Oe},n),dir:d,style:i,role:"menu",tabIndex:l,data:wt,renderRawItem:At=>At,renderRawRest:At=>{const pt=At.length,yt=pt?de.slice(-pt):null;return v.createElement(tA,{eventKey:$$,title:V,disabled:Et,internalPopupClose:pt===0,popupClassName:$},yt)},maxCount:Ne!=="horizontal"||m?Sd.INVALIDATE:Sd.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:At=>{nt(At)},onKeyDown:ct},ie));return v.createElement(mH.Provider,{value:st},v.createElement(Kce.Provider,{value:me},v.createElement(Dw,{prefixCls:r,rootClassName:n,classNames:a,styles:s,mode:Ne,openKeys:We,rtl:Oe,disabled:g,motion:ue?k:null,defaultMotions:ue?B:null,activeKey:Re,onActive:Ve,onInactive:ke,selectedKeys:fe,inlineIndent:O,subMenuOpenDelay:y,subMenuCloseDelay:b,forceSubMenuRender:S,builtinPlacements:N,triggerSubMenuAction:H,getPopupContainer:K,itemIcon:z,expandIcon:W,onItemClick:$e,onOpenChange:et,popupRender:re},v.createElement(Qce.Provider,{value:qe},Mt),v.createElement("div",{style:{display:"none"},"aria-hidden":!0},v.createElement(Yce.Provider,{value:_e},J)))))}),LC=PBe;LC.Item=Xx;LC.SubMenu=tA;LC.ItemGroup=SH;LC.Divider=bH;const oue=v.createContext({});var MBe={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"};function W$(){return W$=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,W$({},e,{ref:t,icon:MBe})),wH=v.forwardRef(IBe),wM=v.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null}),sue=e=>{const{prefixCls:t,className:r,dashed:n,...i}=e,{getPrefixCls:o}=v.useContext(ir),s=o("menu",t),a=Z({[`${s}-item-divider-dashed`]:!!n},r);return v.createElement(bH,{className:a,...i})},aue=e=>{var T,M;const{className:t,children:r,icon:n,title:i,danger:o,extra:s}=e,{prefixCls:a,firstLevel:l,direction:c,disableMenuItemTitleTooltip:u,tooltip:d,inlineCollapsed:h,styles:p,classNames:f}=v.useContext(wM),g=D=>{var L,F;const A=r==null?void 0:r[0],I=v.createElement("span",{className:Z(`${a}-title-content`,l?f==null?void 0:f.itemContent:(L=f==null?void 0:f.subMenu)==null?void 0:L.itemContent,{[`${a}-title-content-with-extra`]:!!s||s===0}),style:l?p==null?void 0:p.itemContent:(F=p==null?void 0:p.subMenu)==null?void 0:F.itemContent},r);return(!n||v.isValidElement(r)&&r.type==="span")&&r&&D&&l&&typeof A=="string"?v.createElement("div",{className:`${a}-inline-collapsed-noicon`},A.charAt(0)):I},{siderCollapsed:m}=v.useContext(oue);let y=i;typeof i>"u"?y=l?r:"":i===!1&&(y="");const b=d===!1?void 0:d,S=b&&b.title!==void 0?b.title:y,x={...b??null,title:S};!m&&!h&&(x.title=null,x.open=!1);const E=Li(r).length;let R=v.createElement(Xx,{...fn(e,["title","icon","danger"]),className:Z(l?f==null?void 0:f.item:(T=f==null?void 0:f.subMenu)==null?void 0:T.item,{[`${a}-item-danger`]:o,[`${a}-item-only-child`]:(n?E+1:E)===1},t),style:{...l?p==null?void 0:p.item:(M=p==null?void 0:p.subMenu)==null?void 0:M.item,...e.style},title:typeof i=="string"?i:void 0},Ei(n,D=>{var A,I;return{className:Z(`${a}-item-icon`,l?f==null?void 0:f.itemIcon:(A=f==null?void 0:f.subMenu)==null?void 0:A.itemIcon,D.className),style:{...l?p==null?void 0:p.itemIcon:(I=p==null?void 0:p.subMenu)==null?void 0:I.itemIcon,...D.style}}}),g(h));if(!u&&d!==!1){const D=b&&b.placement?b.placement:c==="rtl"?"left":"right",A=`${a}-inline-collapsed-tooltip`,I=F=>({...F,root:Z(A,F==null?void 0:F.root)}),L=b&&typeof b.classNames=="function"?F=>{const O=b.classNames(F);return I(O)}:I(b==null?void 0:b.classNames);R=v.createElement(El,{...x,placement:D,classNames:L},R)}return R},xM=v.createContext(null),lue=v.forwardRef((e,t)=>{const{children:r,...n}=e,i=v.useContext(xM),o=v.useMemo(()=>({...i,...n}),[i,n.prefixCls,n.mode,n.selectable,n.rootClassName]),s=dIe(r),a=Pu(t,s?jd(r):null);return v.createElement(xM.Provider,{value:o},v.createElement(Rp,{space:!0},s?v.cloneElement(r,{ref:a}):r))}),DBe=e=>{const{componentCls:t,motionDurationSlow:r,horizontalLineHeight:n,colorSplit:i,lineWidth:o,lineType:s,itemPaddingInline:a}=e;return{[`${t}-horizontal`]:{lineHeight:n,border:0,borderBottom:`${ae(o)} ${s} ${i}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:a},[`> ${t}-item:hover, > ${t}-item-active, > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:["border-color","background-color"].map(l=>`${l} ${r}`).join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},ABe=({componentCls:e,menuArrowOffset:t,calc:r})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical, ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${ae(r(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${ae(t)})`}}}}),Lq=e=>gc(e),_q=(e,t)=>{const{componentCls:r,itemColor:n,itemSelectedColor:i,subMenuItemSelectedColor:o,groupTitleColor:s,itemBg:a,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:h,motionDurationSlow:p,motionEaseInOut:f,motionEaseOut:g,itemPaddingInline:m,motionDurationMid:y,itemHoverColor:b,lineType:S,colorSplit:x,itemDisabledColor:E,dangerItemColor:R,dangerItemHoverColor:T,dangerItemSelectedColor:M,dangerItemActiveBg:D,dangerItemSelectedBg:A,popupBg:I,itemHoverBg:L,itemActiveBg:F,menuSubMenuBg:O,horizontalItemSelectedColor:k,horizontalItemSelectedBg:B,horizontalItemBorderRadius:H,horizontalItemHoverBg:N}=e;return{[`${r}-${t}, ${r}-${t} > ${r}`]:{color:n,background:a,[`&${r}-root:focus-visible`]:{...Lq(e)},[`${r}-item`]:{"&-group-title, &-extra":{color:s}},[`${r}-submenu-selected > ${r}-submenu-title`]:{color:o},[`${r}-item, ${r}-submenu-title`]:{color:n,[`&:not(${r}-item-disabled):focus-visible`]:{...Lq(e)}},[`${r}-item-disabled, ${r}-submenu-disabled`]:{color:`${E} !important`},[`${r}-item:not(${r}-item-selected):not(${r}-submenu-selected)`]:{[`&:hover, > ${r}-submenu-title:hover`]:{color:b}},[`&:not(${r}-horizontal)`]:{[`${r}-item:not(${r}-item-selected)`]:{"&:hover":{backgroundColor:L},"&:active":{backgroundColor:F}},[`${r}-submenu-title`]:{"&:hover":{backgroundColor:L},"&:active":{backgroundColor:F}}},[`${r}-item-danger`]:{color:R,[`&${r}-item:hover`]:{[`&:not(${r}-item-selected):not(${r}-submenu-selected)`]:{color:T}},[`&${r}-item:active`]:{background:D}},[`${r}-item a`]:{"&, &:hover":{color:"inherit"}},[`${r}-item-selected`]:{color:i,[`&${r}-item-danger`]:{color:M},"a, a:hover":{color:"inherit"}},[`& ${r}-item-selected`]:{backgroundColor:c,[`&${r}-item-danger`]:{backgroundColor:A}},[`&${r}-submenu > ${r}`]:{backgroundColor:O},[`&${r}-popup > ${r}`]:{backgroundColor:I},[`&${r}-submenu-popup > ${r}`]:{backgroundColor:I},[`&${r}-horizontal`]:{...t==="dark"?{borderBottom:0}:{},[`> ${r}-item, > ${r}-submenu`]:{top:h,marginTop:e.calc(h).mul(-1).equal(),marginBottom:0,borderRadius:H,"&::after":{position:"absolute",insetInline:m,bottom:0,borderBottom:`${ae(u)} solid transparent`,transition:`border-color ${p} ${f}`,content:'""'},"&:hover, &-active, &-open":{background:N,"&::after":{borderBottomWidth:u,borderBottomColor:k}},"&-selected":{color:k,backgroundColor:B,"&:hover":{backgroundColor:B},"&::after":{borderBottomWidth:u,borderBottomColor:k}}}},[`&${r}-root`]:{[`&${r}-inline, &${r}-vertical`]:{borderInlineEnd:`${ae(h)} ${S} ${x}`}},[`&${r}-inline`]:{[`${r}-sub${r}-inline`]:{background:l},[`${r}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ae(d)} solid ${i}`,transform:"scaleY(0.0001)",opacity:0,transition:["transform","opacity"].map(z=>`${z} ${y} ${g}`).join(","),content:'""'},[`&${r}-item-danger`]:{"&::after":{borderInlineEndColor:M}}},[`${r}-selected, ${r}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:["transform","opacity"].map(z=>`${z} ${y} ${f}`).join(",")}}}}}},kq=e=>{const{componentCls:t,itemHeight:r,itemMarginInline:n,padding:i,menuArrowSize:o,marginXS:s,itemMarginBlock:a,itemWidth:l,itemPaddingInline:c}=e,u=e.calc(o).add(i).add(s).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:r,lineHeight:ae(r),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:n,marginBlock:a,width:l},[`> ${t}-item, > ${t}-submenu > ${t}-submenu-title`]:{height:r,lineHeight:ae(r)},[`${t}-item-group-list ${t}-submenu-title, ${t}-submenu-title`]:{paddingInlineEnd:u}}},FBe=e=>{const{componentCls:t,iconCls:r,itemHeight:n,colorTextLightSolid:i,dropdownWidth:o,controlHeightLG:s,motionEaseOut:a,paddingXL:l,itemMarginInline:c,fontSizeLG:u,motionDurationFast:d,motionDurationSlow:h,paddingXS:p,boxShadowSecondary:f,collapsedWidth:g,collapsedIconSize:m}=e,y={height:n,lineHeight:ae(n),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":{[`&${t}-root`]:{boxShadow:"none"},...kq(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{...kq(e),boxShadow:f}}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:o,maxHeight:`calc(100vh - ${ae(e.calc(s).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 ${h}`,`background-color ${h}`,`padding ${d} ${a}`].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`]:y,[`& ${t}-item-group-title`]:{paddingInlineStart:l}},[`${t}-item`]:y}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,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% - ${ae(e.calc(m).div(2).equal())} - ${ae(c)})`,textOverflow:"clip",[` ${t}-submenu-arrow, ${t}-submenu-expand-icon `]:{opacity:0},[`${t}-item-icon, ${r}`]:{margin:0,fontSize:m,lineHeight:ae(n),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${r}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${r}`]:{display:"none"},"a, a:hover":{color:i}},[`${t}-item-group-title`]:{...Ps,paddingInline:p}}}]},Oq=e=>{const{componentCls:t,motionDurationSlow:r,motionDurationMid:n,motionEaseInOut:i,motionEaseOut:o,iconCls:s,iconSize:a,iconMarginInlineEnd:l}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${r}`,`background-color ${r}`,`padding calc(${r} + 0.1s) ${i}`].join(","),[`${t}-item-icon, ${s}`]:{minWidth:a,fontSize:a,transition:[`font-size ${n} ${o}`,`margin ${r} ${i}`,`color ${r}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${r} ${i}`,`margin ${r}`,`color ${r}`].join(",")}},[`${t}-item-icon`]:{...Dx()},[`&${t}-item-only-child`]:{[`> ${s}, > ${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"}}}},Nq=e=>{const{componentCls:t,motionDurationSlow:r,motionEaseInOut:n,borderRadius:i,menuArrowSize:o,menuArrowOffset:s}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:o,color:"currentcolor",transform:"translateY(-50%)",transition:["transform","opacity"].map(a=>`${a} ${r}`).join(",")},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(o).mul(.6).equal(),height:e.calc(o).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:i,transition:["background-color","transform","top","color"].map(a=>`${a} ${r} ${n}`).join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${ae(e.calc(s).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${ae(s)})`}}}}},LBe=e=>{const{antCls:t,componentCls:r,fontSize:n,motionDurationSlow:i,motionDurationMid:o,motionEaseInOut:s,paddingXS:a,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:h,subMenuItemBorderRadius:p,menuArrowSize:f,menuArrowOffset:g,lineType:m,groupTitleLineHeight:y,groupTitleFontSize:b}=e;return[{"":{[r]:{...fu(),"&-hidden":{display:"none"}}},[`${r}-submenu-hidden`]:{display:"none"}},{[r]:{...on(e),...fu(),marginBottom:0,paddingInlineStart:0,fontSize:n,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${i} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${r}-item`]:{flex:"none"}},[`${r}-item, ${r}-submenu, ${r}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${r}-item-group-title`]:{padding:`${ae(a)} ${ae(l)}`,fontSize:b,lineHeight:y,transition:`all ${i}`},[`&-horizontal ${r}-submenu`]:{transition:["border-color","background-color"].map(S=>`${S} ${i} ${s}`).join(",")},[`${r}-submenu, ${r}-submenu-inline`]:{transition:[`border-color ${i}`,`background-color ${i}`,`padding ${o}`].map(S=>`${S} ${s}`).join(",")},[`${r}-submenu ${r}-sub`]:{cursor:"initial",transition:["background-color","padding"].map(S=>`${S} ${i} ${s}`).join(",")},[`${r}-title-content`]:{transition:`color ${i}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${r}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${r}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${r}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:m,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}},...Oq(e),[`${r}-item-group`]:{[`${r}-item-group-list`]:{margin:0,padding:0,[`${r}-item, ${r}-submenu-title`]:{paddingInline:`${ae(e.calc(n).mul(2).equal())} ${ae(l)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:h,boxShadow:"none",transformOrigin:"0 0",[`&${r}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${r}`]:{borderRadius:h,...Oq(e),...Nq(e),[`${r}-item, ${r}-submenu > ${r}-submenu-title`]:{borderRadius:p},[`${r}-submenu-title::after`]:{transition:`transform ${i} ${s}`}}},"\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}},...Nq(e),[`&-inline-collapsed ${r}-submenu-arrow, &-inline ${r}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${ae(g)})`},"&::after":{transform:`rotate(45deg) translateX(${ae(e.calc(g).mul(-1).equal())})`}},[`${r}-submenu-open${r}-submenu-inline > ${r}-submenu-title > ${r}-submenu-arrow`]:{transform:`translateY(${ae(e.calc(f).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${ae(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${ae(g)})`}}}},{[`${t}-layout-header`]:{[r]:{lineHeight:"inherit"}}}]},_Be=e=>{const{colorPrimary:t,colorError:r,colorTextDisabled:n,colorErrorBg:i,colorText:o,colorTextDescription:s,colorBgContainer:a,colorFillAlter:l,colorFillContent:c,lineWidth:u,lineWidthBold:d,controlItemBgActive:h,colorBgTextHover:p,controlHeightLG:f,lineHeight:g,colorBgElevated:m,marginXXS:y,padding:b,fontSize:S,controlHeightSM:x,fontSizeLG:E,colorTextLightSolid:R,colorErrorHover:T}=e,M=e.activeBarWidth??0,D=e.activeBarBorderWidth??u,A=e.itemMarginInline??e.marginXXS,I=new cn(R).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:o,itemColor:o,colorItemTextHover:o,itemHoverColor:o,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:s,groupTitleColor:s,colorItemTextSelected:t,itemSelectedColor:t,subMenuItemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:a,itemBg:a,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:c,itemActiveBg:h,colorSubItemBg:l,subMenuItemBg:l,colorItemBgSelected:h,itemSelectedBg:h,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:M,colorActiveBarHeight:d,activeBarHeight:d,colorActiveBarBorderSize:u,activeBarBorderWidth:D,colorItemTextDisabled:n,itemDisabledColor:n,colorDangerItemText:r,dangerItemColor:r,colorDangerItemTextHover:r,dangerItemHoverColor:r,colorDangerItemTextSelected:r,dangerItemSelectedColor:r,colorDangerItemBgActive:i,dangerItemActiveBg:i,colorDangerItemBgSelected:i,dangerItemSelectedBg:i,itemMarginInline:A,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:f,groupTitleLineHeight:g,collapsedWidth:f*2,popupBg:m,itemMarginBlock:y,itemPaddingInline:b,horizontalLineHeight:`${f*1.15}px`,iconSize:S,iconMarginInlineEnd:x-S,collapsedIconSize:E,groupTitleFontSize:S,darkItemDisabledColor:new cn(R).setA(.25).toRgbString(),darkItemColor:I,darkDangerItemColor:r,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:R,darkItemSelectedBg:t,darkDangerItemSelectedBg:r,darkItemHoverBg:"transparent",darkGroupTitleColor:I,darkItemHoverColor:R,darkDangerItemHoverColor:T,darkDangerItemSelectedColor:R,darkDangerItemActiveBg:r,itemWidth:M?`calc(100% + ${D}px)`:`calc(100% - ${A*2}px)`}},kBe=(e,t=e,r=!0)=>zr("Menu",i=>{const{colorBgElevated:o,controlHeightLG:s,fontSize:a,darkItemColor:l,darkDangerItemColor:c,darkItemBg:u,darkSubMenuItemBg:d,darkItemSelectedColor:h,darkItemSelectedBg:p,darkDangerItemSelectedBg:f,darkItemHoverBg:g,darkGroupTitleColor:m,darkItemHoverColor:y,darkItemDisabledColor:b,darkDangerItemHoverColor:S,darkDangerItemSelectedColor:x,darkDangerItemActiveBg:E,popupBg:R,darkPopupBg:T}=i,M=i.calc(a).div(7).mul(5).equal(),D=$r(i,{menuArrowSize:M,menuHorizontalHeight:i.calc(s).mul(1.15).equal(),menuArrowOffset:i.calc(M).mul(.25).equal(),menuSubMenuBg:o,calc:i.calc,popupBg:R}),A=$r(D,{itemColor:l,itemHoverColor:y,groupTitleColor:m,itemSelectedColor:h,subMenuItemSelectedColor:h,itemBg:u,popupBg:T,subMenuItemBg:d,itemActiveBg:"transparent",itemSelectedBg:p,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:g,itemDisabledColor:b,dangerItemColor:c,dangerItemHoverColor:S,dangerItemSelectedColor:x,dangerItemActiveBg:E,dangerItemSelectedBg:f,menuSubMenuBg:d,horizontalItemSelectedColor:h,horizontalItemSelectedBg:p});return[LBe(D),DBe(D),FBe(D),_q(D,"light"),_q(A,"dark"),ABe(D),W4(D),Tp(D,"slide-up"),Tp(D,"slide-down"),Bx(D,"zoom-big")]},_Be,{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:r,unitless:{groupTitleLineHeight:!0}})(e,t),cue=e=>{var g,m,y,b,S,x;const{popupClassName:t,icon:r,title:n,theme:i}=e,o=v.useContext(wM),{prefixCls:s,inlineCollapsed:a,theme:l,classNames:c,styles:u}=o,d=FC();let h;if(!r)h=a&&!d.length&&n&&typeof n=="string"?v.createElement("div",{className:`${s}-inline-collapsed-noicon`},n.charAt(0)):v.createElement("span",{className:`${s}-title-content`},n);else{const E=v.isValidElement(n)&&n.type==="span";h=v.createElement(v.Fragment,null,Ei(r,R=>({className:Z(R.className,`${s}-item-icon`,c==null?void 0:c.itemIcon),style:{...R.style,...u==null?void 0:u.itemIcon}})),E?n:v.createElement("span",{className:`${s}-title-content`},n))}const p=v.useMemo(()=>({...o,firstLevel:!1}),[o]),[f]=Hp("Menu");return v.createElement(wM.Provider,{value:p},v.createElement(tA,{...fn(e,["icon"]),title:h,classNames:{list:(g=c==null?void 0:c.subMenu)==null?void 0:g.list,listTitle:(m=c==null?void 0:c.subMenu)==null?void 0:m.itemTitle},styles:{list:(y=u==null?void 0:u.subMenu)==null?void 0:y.list,listTitle:(b=u==null?void 0:u.subMenu)==null?void 0:b.itemTitle},popupClassName:Z(s,t,(S=c==null?void 0:c.popup)==null?void 0:S.root,`${s}-${i||l}`),popupStyle:{zIndex:f,...e.popupStyle,...(x=u==null?void 0:u.popup)==null?void 0:x.root}}))};function n2(e){return e===null||e===!1}const OBe={item:aue,submenu:cue,divider:sue},NBe=v.forwardRef((e,t)=>{var le;const r=v.useContext(xM),n=r||{},{prefixCls:i,className:o,style:s,theme:a="light",expandIcon:l,_internalDisableMenuItemTitleTooltip:c,tooltip:u,inlineCollapsed:d,siderCollapsed:h,rootClassName:p,mode:f,selectable:g,onClick:m,overflowedIndicatorPopupClassName:y,classNames:b,styles:S,...x}=e,{menu:E}=v.useContext(ir),{getPrefixCls:R,getPopupContainer:T,direction:M,className:D,style:A,classNames:I,styles:L}=Fr("menu"),F=R(),O=fn(x,["collapsedWidth"]);(le=n.validator)==null||le.call(n,{mode:f});const k=Sr((...he)=>{var re;m==null||m(...he),(re=n.onClick)==null||re.call(n)}),B=n.mode||f,H=g??n.selectable,N=d??h,z={...e,mode:B,inlineCollapsed:N,selectable:H,theme:a},[W,V]=Gr([I,b],[L,S],{props:z},{popup:{_default:"root"},subMenu:{_default:"item"}}),$={horizontal:{motionName:`${F}-slide-up`},inline:V4(F),other:{motionName:`${F}-zoom-big`}},K=R("menu",i||n.prefixCls),q=ho(K),[X,Y]=kBe(K,q,!r),oe=Z(`${K}-${a}`,D,o),ee=v.useMemo(()=>{var re;if(typeof l=="function"||n2(l))return l||null;if(typeof n.expandIcon=="function"||n2(n.expandIcon))return n.expandIcon||null;if(typeof(E==null?void 0:E.expandIcon)=="function"||n2(E==null?void 0:E.expandIcon))return(E==null?void 0:E.expandIcon)||null;const he=l??(n==null?void 0:n.expandIcon)??(E==null?void 0:E.expandIcon);return Ei(he,{className:Z(`${K}-submenu-expand-icon`,v.isValidElement(he)?(re=he.props)==null?void 0:re.className:void 0)})},[l,n==null?void 0:n.expandIcon,E==null?void 0:E.expandIcon,K]),ne=v.useMemo(()=>({prefixCls:K,inlineCollapsed:N||!1,direction:M,firstLevel:!0,theme:a,mode:B,disableMenuItemTitleTooltip:c,tooltip:u,classNames:W,styles:V}),[K,N,M,c,a,B,W,V,u]);return v.createElement(xM.Provider,{value:null},v.createElement(wM.Provider,{value:ne},v.createElement(LC,{getPopupContainer:T,overflowedIndicator:v.createElement(wH,null),overflowedIndicatorPopupClassName:Z(K,`${K}-${a}`,y),classNames:{list:W.list,listTitle:W.itemTitle},styles:{list:V.list,listTitle:V.itemTitle},mode:B,selectable:H,onClick:k,...O,inlineCollapsed:N,style:{...V.root,...A,...s},className:oe,prefixCls:K,direction:M,defaultMotions:$,expandIcon:ee,ref:t,rootClassName:Z(p,X,n.rootClassName,Y,q,W.root),_internalComponents:OBe})))}),_C=v.forwardRef((e,t)=>{const r=v.useRef(null),n=v.useContext(oue);return v.useImperativeHandle(t,()=>({menu:r.current,focus:i=>{var o;(o=r.current)==null||o.focus(i)}})),v.createElement(NBe,{ref:r,...e,...n})});_C.Item=aue;_C.SubMenu=cue;_C.Divider=sue;_C.ItemGroup=SH;const BBe=e=>{const{componentCls:t,menuCls:r,colorError:n,colorTextLightSolid:i}=e,o=`${r}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${r} ${o}`]:{[`&${o}-danger:not(${o}-disabled)`]:{color:n,"&:hover":{color:i,backgroundColor:n}}}}}},$Be=e=>{const{componentCls:t,menuCls:r,zIndexPopup:n,dropdownArrowDistance:i,sizePopupArrow:o,antCls:s,iconCls:a,motionDurationMid:l,paddingBlock:c,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:h,fontSizeIcon:p,controlPaddingHorizontal:f,colorBgElevated:g}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:n,display:"block","&::before":{position:"absolute",insetBlock:e.calc(o).div(2).sub(i).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${s}-btn`]:{[`& > ${a}-down, & > ${s}-btn-icon > ${a}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:"relative",[`${s}-btn > ${a}-down`]:{fontSize:p},[`${a}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${a}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${s}-slide-down-enter${s}-slide-down-enter-active${t}-placement-bottomLeft, &${s}-slide-down-appear${s}-slide-down-appear-active${t}-placement-bottomLeft, &${s}-slide-down-enter${s}-slide-down-enter-active${t}-placement-bottom, &${s}-slide-down-appear${s}-slide-down-appear-active${t}-placement-bottom, &${s}-slide-down-enter${s}-slide-down-enter-active${t}-placement-bottomRight, &${s}-slide-down-appear${s}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:U4},[`&${s}-slide-up-enter${s}-slide-up-enter-active${t}-placement-topLeft, &${s}-slide-up-appear${s}-slide-up-appear-active${t}-placement-topLeft, &${s}-slide-up-enter${s}-slide-up-enter-active${t}-placement-top, &${s}-slide-up-appear${s}-slide-up-appear-active${t}-placement-top, &${s}-slide-up-enter${s}-slide-up-enter-active${t}-placement-topRight, &${s}-slide-up-appear${s}-slide-up-appear-active${t}-placement-topRight`]:{animationName:K4},[`&${s}-slide-down-leave${s}-slide-down-leave-active${t}-placement-bottomLeft, &${s}-slide-down-leave${s}-slide-down-leave-active${t}-placement-bottom, &${s}-slide-down-leave${s}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:j4},[`&${s}-slide-up-leave${s}-slide-up-leave-active${t}-placement-topLeft, &${s}-slide-up-leave${s}-slide-up-leave-active${t}-placement-top, &${s}-slide-up-leave${s}-slide-up-leave-active${t}-placement-topRight`]:{animationName:q4}}},pH(e,g,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${r}`]:{position:"relative",margin:0},[`${r}-submenu-popup`]:{position:"absolute",zIndex:n,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{...on(e),[r]:{padding:d,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,...wl(e),"&:empty":{padding:0,boxShadow:"none"},[`${r}-item-group-title`]:{padding:`${ae(c)} ${ae(f)}`,color:e.colorTextDescription,transition:`all ${l}`},[`${r}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${r}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${r}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${l}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${r}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${r}-item, ${r}-submenu-title`]:{display:"flex",margin:0,padding:`${ae(c)} ${ae(f)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...wl(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:h,cursor:"not-allowed","&:hover":{color:h,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ae(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:p,fontStyle:"normal"}}},[`${r}-item-group-list`]:{margin:`0 ${ae(e.marginXS)}`,padding:0,listStyle:"none"},[`${r}-submenu-title`]:{paddingInlineEnd:e.calc(f).add(e.fontSizeSM).equal()},[`${r}-submenu-vertical`]:{position:"relative"},[`${r}-submenu${r}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:h,backgroundColor:g,cursor:"not-allowed"}},[`${r}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}}}},[Tp(e,"slide-up"),Tp(e,"slide-down"),hM(e,"move-up"),hM(e,"move-down"),Bx(e,"zoom-big")]]},GBe=e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...QD({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...hH(e)}),VBe=zr("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:r,paddingXXS:n,componentCls:i}=e,o=$r(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(r).div(2).add(t).equal(),dropdownEdgeChildPadding:n});return[$Be(o),BBe(o)]},GBe,{resetStyle:!1}),Yx=e=>{const{menu:t,arrow:r,prefixCls:n,children:i,trigger:o,disabled:s,dropdownRender:a,popupRender:l,getPopupContainer:c,overlayClassName:u,rootClassName:d,overlayStyle:h,open:p,onOpenChange:f,mouseEnterDelay:g=.15,mouseLeaveDelay:m=.1,autoAdjustOverflow:y=!0,placement:b="",transitionName:S,classNames:x,styles:E,destroyPopupOnHide:R,destroyOnHidden:T}=e,{getPrefixCls:M,direction:D,getPopupContainer:A,className:I,style:L,classNames:F,styles:O}=Fr("dropdown"),k={...e,mouseEnterDelay:g,mouseLeaveDelay:m,autoAdjustOverflow:y},[B,H]=Gr([F,x],[O,E],{props:k}),N={...L,...h,...H.root},z=l||a;MC();const W=v.useMemo(()=>{const De=M();return S!==void 0?S:b.includes("top")?`${De}-slide-down`:`${De}-slide-up`},[M,b,S]),V=v.useMemo(()=>b?b.includes("Center")?b.slice(0,b.indexOf("Center")):b:D==="rtl"?"bottomRight":"bottomLeft",[b,D]),$=M("dropdown",n),K=ho($),[q,X]=VBe($,K),[,Y]=fs(),oe=v.Children.only(sBe(i)?v.createElement("span",null,i):i),ee=Ei(oe,{className:Z(`${$}-trigger`,{[`${$}-rtl`]:D==="rtl"},oe.props.className),disabled:oe.props.disabled??s}),ne=s?[]:o,le=!!(ne!=null&&ne.includes("contextMenu")),[he,re]=An(!1,p),ie=Sr(De=>{f==null||f(De,{source:"trigger"}),re(De)}),de=Z(u,d,q,X,K,I,B.root,{[`${$}-rtl`]:D==="rtl"}),J=Oce({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:y,offset:Y.marginXXS,arrowWidth:r?Y.sizePopupArrow:0,borderRadius:Y.borderRadius}),ue=Sr(()=>{t!=null&&t.selectable&&(t!=null&&t.multiple)||(f==null||f(!1,{source:"menu"}),re(!1))}),ve=()=>{const De=fn(B,["root"]),Ee=fn(H,["root"]);let We;return t!=null&&t.items&&(We=v.createElement(_C,{...t,classNames:{...De,subMenu:{...De}},styles:{...Ee,subMenu:{...Ee}}})),z&&(We=z(We)),We=v.Children.only(typeof We=="string"?v.createElement("span",null,We):We),v.createElement(lue,{prefixCls:`${$}-menu`,rootClassName:Z(X,K),expandIcon:v.createElement("span",{className:`${$}-menu-submenu-arrow`},D==="rtl"?v.createElement(_$,{className:`${$}-menu-submenu-arrow-icon`}):v.createElement(t$,{className:`${$}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:ue,validator:({mode:ze})=>{}},We)},[pe,me]=Hp("Dropdown",N.zIndex);let Oe=v.createElement(jce,{alignPoint:le,...fn(e,["rootClassName","onOpenChange"]),mouseEnterDelay:g,mouseLeaveDelay:m,visible:he,builtinPlacements:J,arrow:!!r,overlayClassName:de,prefixCls:$,getPopupContainer:c||A,transitionName:W,trigger:ne,overlay:ve,placement:V,onVisibleChange:ie,overlayStyle:{...N,zIndex:pe},autoDestroy:T??R},ee);return pe&&(Oe=v.createElement(_x.Provider,{value:me},Oe)),Oe},zBe=rH(Yx,"align",void 0,"dropdown",e=>e),HBe=e=>v.createElement(zBe,{...e},v.createElement("span",null));Yx._InternalPanelDoNotUseOrYouWillBeFired=HBe;const rA=({children:e})=>{const{getPrefixCls:t}=v.useContext(ir),r=t("breadcrumb"),n=v.useContext(gH),{classNames:i,styles:o}=n;return v.createElement("li",{className:Z(`${r}-separator`,i==null?void 0:i.separator),style:o==null?void 0:o.separator,"aria-hidden":"true"},e===""?e:e||"/")};rA.__ANT_BREADCRUMB_SEPARATOR=!0;function WBe(e,t){if(!Tn(e.title))return null;const r=Object.keys(t).join("|");return typeof e.title=="object"?e.title:String(e.title).replace(new RegExp(`:(${r})`,"g"),(n,i)=>t[i]||n)}function uue(e,t,r,n){if(!Tn(r))return null;const{className:i,onClick:o,...s}=t,a={...ei(s,{data:!0,aria:!0}),onClick:o};return n!==void 0?v.createElement("a",{...a,className:Z(`${e}-link`,i),href:n},r):v.createElement("span",{...a,className:Z(`${e}-link`,i)},r)}function UBe(e,t){return(n,i,o,s,a)=>{if(t)return t(n,i,o,s);const l=WBe(n,i);return uue(e,n,l,a)}}const due=e=>{const{prefixCls:t,separator:r="/",children:n,menu:i,dropdownProps:o,href:s,dropdownIcon:a}=e,l=v.useContext(gH),{classNames:c,styles:u}=l,h=(p=>{if(i){const f={...o};if(i){const{items:g,...m}=i||{};f.menu={...m,items:g==null?void 0:g.map(({key:y,title:b,label:S,path:x,...E},R)=>{let T=S??b;return x&&(T=v.createElement("a",{href:`${s}${x}`},T)),{...E,key:y??R,label:T}})}}return v.createElement(Yx,{placement:"bottom",...f},v.createElement("span",{className:`${t}-overlay-link`},p,a))}return p})(n);return Tn(h)?v.createElement(v.Fragment,null,v.createElement("li",{className:Z(`${t}-item`,c==null?void 0:c.item),style:u==null?void 0:u.item},h),r&&v.createElement(rA,null,r)):null},hue=e=>{const{prefixCls:t,children:r,href:n,...i}=e,{getPrefixCls:o}=v.useContext(ir),s=o("breadcrumb",t);return v.createElement(due,{...i,prefixCls:s},uue(s,i,r,n))};hue.__ANT_BREADCRUMB_ITEM=!0;const jBe=e=>{const{componentCls:t,iconCls:r,calc:n}=e;return{[t]:{...on(e),color:e.itemColor,fontSize:e.fontSize,[r]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},[`${t}-item a`]:{color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${ae(e.paddingXXS)}`,borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:n(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover},...wl(e)},[`${t}-item:last-child`]:{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[` > ${r} + span, > ${r} + a `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:`0 ${ae(e.paddingXXS)}`,marginInline:n(e.marginXXS).mul(-1).equal(),[`> ${r}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}}}},KBe=e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}),qBe=zr("Breadcrumb",e=>{const t=$r(e,{});return jBe(t)},KBe);function XBe(e){const{breadcrumbName:t,children:r,...n}=e,i={title:t,...n};return r&&(i.menu={items:r.map(({breadcrumbName:o,...s})=>({...s,title:o}))}),i}function YBe(e,t){return v.useMemo(()=>e||(t?t.map(XBe):null),[e,t])}const ZBe=(e,t)=>{if(t===void 0)return t;let r=(t||"").replace(/^\//,"");return Object.keys(e).forEach(n=>{r=r.replace(`:${n}`,e[n])}),r},QBe=e=>{const{prefixCls:t,separator:r,style:n,className:i,rootClassName:o,routes:s,items:a,children:l,itemRender:c,params:u={},classNames:d,styles:h,dropdownIcon:p,...f}=e,{getPrefixCls:g,direction:m,className:y,style:b,classNames:S,styles:x,separator:E,dropdownIcon:R}=Fr("breadcrumb"),T=r??E??"/",M=p??R??v.createElement(ZD,null);let D;const A=g("breadcrumb",t),[I,L]=qBe(A),F=YBe(a,s),O=v.useMemo(()=>({...e,separator:T}),[e,T]),[k,B]=Gr([S,d],[x,h],{props:O}),H=UBe(A,c);if(F&&F.length>0){const V=[],$=a||s;D=F.map((K,q)=>{const{path:X,key:Y,type:oe,menu:ee,onClick:ne,className:le,style:he,separator:re,dropdownProps:ie}=K,de=ZBe(u,X);de!==void 0&&V.push(de);const J=Y??q;if(oe==="separator")return v.createElement(rA,{key:J},re);const ue={},ve=q===F.length-1;ee&&(ue.menu=ee);let{href:pe}=K;return V.length&&de!==void 0&&(pe=`#/${V.join("/")}`),v.createElement(due,{key:J,...ue,...ei(K,{data:!0,aria:!0}),className:le,style:he,dropdownProps:ie,dropdownIcon:M,href:pe,separator:ve?"":T,onClick:ne,prefixCls:A},H(K,u,$,V,pe))})}else if(l){const V=Li(l).length;D=Li(l).map(($,K)=>{if(!$)return $;const q=K===V-1;return Ei($,{separator:q?"":T,key:K})})}const N=Z(A,y,{[`${A}-rtl`]:m==="rtl"},i,o,k.root,I,L),z={...B.root,...b,...n},W=v.useMemo(()=>({classNames:k,styles:B}),[k,B]);return v.createElement(gH.Provider,{value:W},v.createElement("nav",{className:N,style:z,...f},v.createElement("ol",null,D)))},pue=QBe;pue.Item=hue;pue.Separator=rA;function JBe(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function e$e(e){return JBe(e).join("_")}const fue=v.createContext(void 0),t$e=fue.Provider,gue=v.createContext(void 0),r$e=gue.Provider;function U$(){return U$=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{prefixCls:r="rc-checkbox",className:n,style:i,checked:o,disabled:s,defaultChecked:a=!1,type:l="checkbox",title:c,onChange:u,...d}=e,h=v.useRef(null),p=v.useRef(null),[f,g]=An(a,o);v.useImperativeHandle(t,()=>({focus:b=>{var S;(S=h.current)==null||S.focus(b)},blur:()=>{var b;(b=h.current)==null||b.blur()},input:h.current,nativeElement:p.current}));const m=Z(r,n,{[`${r}-checked`]:f,[`${r}-disabled`]:s}),y=b=>{s||("checked"in e||g(b.target.checked),u==null||u({target:{...e,type:l,checked:b.target.checked},stopPropagation(){b.stopPropagation()},preventDefault(){b.preventDefault()},nativeEvent:b.nativeEvent}))};return v.createElement("span",{className:m,title:c,style:i,ref:p},v.createElement("input",U$({},d,{className:`${r}-input`,ref:h,onChange:y,disabled:s,checked:!!f,type:l})))});function vue(e){const t=Q.useRef(null),r=()=>{Or.cancel(t.current),t.current=null};return[()=>{r(),t.current=Or(()=>{t.current=null})},o=>{t.current&&(o.stopPropagation(),r()),e==null||e(o)}]}const n$e=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-group`;return{[n]:{...on(e),display:"inline-block",fontSize:0,[`&${n}-rtl`]:{direction:"rtl"},[`&${n}-block`]:{display:"flex"},[`${r}-badge ${r}-badge-count`]:{zIndex:1},[`> ${r}-badge:not(:first-child) > ${r}-button-wrapper`]:{borderInlineStart:"none"},"&-vertical":{display:"flex",flexDirection:"column",rowGap:e.marginXS,[`${t}-wrapper`]:{marginInlineEnd:0}}}}},i$e=e=>{const{componentCls:t,wrapperMarginInlineEnd:r,colorPrimary:n,colorPrimaryHover:i,radioSize:o,motionDurationSlow:s,motionDurationMid:a,motionEaseInOutCirc:l,colorBgContainer:c,colorBorder:u,lineWidth:d,colorBgContainerDisabled:h,colorTextDisabled:p,paddingXS:f,dotColorDisabled:g,dotSize:m,lineType:y,radioColor:b,radioBgColor:S}=e;return{[`${t}-wrapper`]:{...on(e),display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:r,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[t]:{...on(e),position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",boxSizing:"border-box",display:"block",width:`calc(${o} * 1px)`,height:`calc(${o} * 1px)`,backgroundColor:c,border:`${ae(d)} ${y} ${u}`,borderRadius:"50%",transition:`all ${a}`,flex:"none","&:after":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%) scale(0)",width:`calc(${m} * 1px)`,height:`calc(${m} * 1px)`,backgroundColor:b,borderRadius:"50%",transformOrigin:"50% 50%",opacity:0,transition:`all ${s} ${l}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:gc(e)},[`&:hover ${t}`]:{borderColor:n},[`&:hover ${t}-checked:not(${t}-disabled)`]:{backgroundColor:i,borderColor:"transparent"},[`${t}-checked`]:{backgroundColor:S,borderColor:n,"&::after":{transform:"translate(-50%, -50%)",opacity:1}},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},background:h,borderColor:u,"&::after":{backgroundColor:g}},[`${t}-disabled + span`]:{color:p,cursor:"not-allowed"},[`span${t} + *`]:{paddingInlineStart:f,paddingInlineEnd:f}}}},o$e=e=>{const{buttonColor:t,controlHeight:r,componentCls:n,lineWidth:i,lineType:o,colorBorder:s,motionDurationMid:a,buttonPaddingInline:l,fontSize:c,buttonBg:u,fontSizeLG:d,controlHeightLG:h,controlHeightSM:p,paddingXS:f,borderRadius:g,borderRadiusSM:m,borderRadiusLG:y,buttonCheckedBg:b,buttonSolidCheckedColor:S,colorTextDisabled:x,colorBgContainerDisabled:E,buttonCheckedBgDisabled:R,buttonCheckedColorDisabled:T,colorPrimary:M,colorPrimaryHover:D,colorPrimaryActive:A,buttonSolidCheckedBg:I,buttonSolidCheckedHoverBg:L,buttonSolidCheckedActiveBg:F,calc:O}=e;return{[`${n}-button-wrapper`]:{position:"relative",display:"inline-block",height:r,margin:0,paddingInline:l,paddingBlock:0,color:t,fontSize:c,lineHeight:ae(O(r).sub(O(i).mul(2)).equal()),background:u,border:`${ae(i)} ${o} ${s}`,borderBlockStartWidth:O(i).add(.02).equal(),borderInlineEndWidth:i,cursor:"pointer",transition:["color","background-color","box-shadow"].map(k=>`${k} ${a}`).join(","),a:{color:t},[`> ${n}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:last-child)":{marginInlineEnd:O(i).mul(-1).equal()},"&:first-child":{borderInlineStart:`${ae(i)} ${o} ${s}`,borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g},[`${n}-group-large &`]:{height:h,fontSize:d,lineHeight:ae(O(h).sub(O(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${n}-group-small &`]:{height:p,paddingInline:O(f).sub(i).equal(),paddingBlock:0,lineHeight:ae(O(p).sub(O(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m}},"&:hover":{position:"relative",color:M},"&:has(:focus-visible)":gc(e),[`${n}, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${n}-button-wrapper-disabled)`]:{zIndex:1,color:M,background:b,borderColor:M,"&::before":{backgroundColor:M},"&:first-child":{borderColor:M},"&:hover":{color:D,borderColor:D,"&::before":{backgroundColor:D}},"&:active":{color:A,borderColor:A,"&::before":{backgroundColor:A}}},[`${n}-group-solid &-checked:not(${n}-button-wrapper-disabled)`]:{color:S,background:I,borderColor:I,"&:hover":{color:S,background:L,borderColor:L},"&:active":{color:S,background:F,borderColor:F}},"&-disabled":{color:x,backgroundColor:E,borderColor:s,cursor:"not-allowed","&:first-child, &:hover":{color:x,backgroundColor:E,borderColor:s}},[`&-disabled${n}-button-wrapper-checked`]:{color:T,backgroundColor:R,borderColor:s,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},s$e=e=>{const{wireframe:t,padding:r,marginXS:n,lineWidth:i,fontSizeLG:o,colorText:s,colorBgContainer:a,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:h,colorPrimaryActive:p,colorWhite:f}=e,g=4,m=o,y=t?m-g*2:m-(g+i)*2;return{radioSize:m,dotSize:y,dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:h,buttonSolidCheckedActiveBg:p,buttonBg:a,buttonCheckedBg:a,buttonColor:s,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:r-i,wrapperMarginInlineEnd:n,radioColor:t?d:f,radioBgColor:t?a:d}},yue=zr("Radio",e=>{const{controlOutline:t,controlOutlineWidth:r}=e,n=`0 0 0 ${ae(r)} ${t}`,o=$r(e,{radioFocusShadow:n,radioButtonFocusShadow:n});return[n$e(o),i$e(o),o$e(o)]},s$e,{unitless:{radioSize:!0,dotSize:!0}}),a$e=(e,t)=>{const r=v.useContext(fue),n=v.useContext(gue),{getPrefixCls:i,direction:o,className:s,style:a,classNames:l,styles:c}=Fr("radio"),u=v.useRef(null),d=Wo(t,u),{isFormItemInput:h}=v.useContext(ua),p=$=>{var K,q;(K=e.onChange)==null||K.call(e,$),(q=r==null?void 0:r.onChange)==null||q.call(r,$)},{prefixCls:f,className:g,rootClassName:m,children:y,style:b,title:S,classNames:x,styles:E,...R}=e,T=i("radio",f),M=((r==null?void 0:r.optionType)||n)==="button",D=M?`${T}-button`:T,A=ho(T),[I,L]=yue(T,A),F={...R},O=v.useContext(hs);let k=F.checked;r&&(F.name=r.name,F.onChange=p,k=e.value===r.value,F.disabled=F.disabled??r.disabled),F.disabled=F.disabled??O;const B={...e,...F,checked:k},[H,N]=Gr([l,x],[c,E],{props:B}),z=Z(`${D}-wrapper`,{[`${D}-wrapper-checked`]:k,[`${D}-wrapper-disabled`]:F.disabled,[`${D}-wrapper-rtl`]:o==="rtl",[`${D}-wrapper-in-form-item`]:h,[`${D}-wrapper-block`]:!!(r!=null&&r.block)},s,g,m,H.root,I,L,A),[W,V]=vue(F.onClick);return v.createElement(Nx,{component:"Radio",disabled:F.disabled},v.createElement("label",{className:z,style:{...N.root,...a,...b},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:S,onClick:W},v.createElement(mue,{...F,checked:k,className:Z(H.icon,{[UD]:!M}),style:N.icon,type:"radio",prefixCls:D,ref:d,onClick:V}),y!==void 0?v.createElement("span",{className:Z(`${D}-label`,H.label),style:N.label},y):null))},EM=v.forwardRef(a$e),l$e=v.forwardRef((e,t)=>{const{getPrefixCls:r,direction:n}=v.useContext(ir),{name:i}=v.useContext(ua),o=xc(e$e(i)),{prefixCls:s,className:a,rootClassName:l,options:c,buttonStyle:u="outline",disabled:d,children:h,size:p,style:f,id:g,optionType:m,name:y=o,defaultValue:b,value:S,block:x=!1,onChange:E,onMouseEnter:R,onMouseLeave:T,onFocus:M,onBlur:D,orientation:A,vertical:I,role:L="radiogroup"}=e,[F,O]=An(b,S),k=v.useCallback(Y=>{const oe=F,ee=Y.target.value;"value"in e||O(ee),ee!==oe&&(E==null||E(Y))},[F,O,E]),B=r("radio",s),H=`${B}-group`,N=ho(B),[z,W]=yue(B,N);let V=h;c&&c.length>0&&(V=c.map(Y=>typeof Y=="string"||typeof Y=="number"?v.createElement(EM,{key:Y.toString(),prefixCls:B,disabled:d,value:Y,checked:F===Y},Y):v.createElement(EM,{key:`radio-group-value-options-${Y.value}`,prefixCls:B,disabled:Y.disabled||d,value:Y.value,checked:F===Y.value,title:Y.title,style:Y.style,className:Y.className,id:Y.id,required:Y.required},Y.label)));const $=Oi(p),[,K]=Lx(A,I),q=Z(H,`${H}-${u}`,{[`${H}-large`]:$==="large",[`${H}-small`]:$==="small",[`${H}-rtl`]:n==="rtl",[`${H}-block`]:x},a,l,z,W,N),X=v.useMemo(()=>({onChange:k,value:F,disabled:d,name:y,optionType:m,block:x}),[k,F,d,y,m,x]);return v.createElement("div",{...ei(e,{aria:!0,data:!0}),role:L,className:Z(q,{[`${B}-group-vertical`]:K}),style:f,onMouseEnter:R,onMouseLeave:T,onFocus:M,onBlur:D,id:g,ref:t},v.createElement(t$e,{value:X},V))}),c$e=v.memo(l$e),u$e=(e,t)=>{const{getPrefixCls:r}=v.useContext(ir),{prefixCls:n,...i}=e,o=r("radio",n);return v.createElement(r$e,{value:"button"},v.createElement(EM,{prefixCls:o,...i,type:"radio",ref:t}))},d$e=v.forwardRef(u$e),Zx=EM;Zx.Button=d$e;Zx.Group=c$e;Zx.__ANT_RADIO=!0;function kC(e){return $r(e,{inputAffixPadding:e.paddingXXS})}const OC=e=>{const{controlHeight:t,fontSize:r,lineHeight:n,lineWidth:i,controlHeightSM:o,controlHeightLG:s,fontSizeLG:a,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:h,colorPrimaryHover:p,colorPrimary:f,controlOutlineWidth:g,controlOutline:m,colorErrorOutline:y,colorWarningOutline:b,colorBgContainer:S,inputFontSize:x,inputFontSizeLG:E,inputFontSizeSM:R}=e,T=x||r,M=R||T,D=E||a,A=Math.round((t-T*n)/2*10)/10-i,I=Math.round((o-M*n)/2*10)/10-i,L=Math.ceil((s-D*l)/2*10)/10-i;return{paddingBlock:Math.max(A,0),paddingBlockSM:Math.max(I,0),paddingBlockLG:Math.max(L,0),paddingInline:c-i,paddingInlineSM:u-i,paddingInlineLG:d-i,addonBg:h,activeBorderColor:f,hoverBorderColor:p,activeShadow:`0 0 0 ${g}px ${m}`,errorActiveShadow:`0 0 0 ${g}px ${y}`,warningActiveShadow:`0 0 0 ${g}px ${b}`,hoverBg:S,activeBg:S,inputFontSize:T,inputFontSizeLG:D,inputFontSizeSM:M}},h$e=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),nA=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])":{...h$e($r(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled}))}}),xH=(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}}),Bq=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...xH(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Cue=(e,t)=>({"&-outlined":{...xH(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...nA(e)},...Bq(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...Bq(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),$q=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),p$e=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...$q(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...$q(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...nA(e)}}}}),bue=(e,t)=>{const{componentCls:r}=e;return{"&-borderless":{background:"transparent",border:"none",paddingBlock:e.calc(e.paddingBlock).add(e.lineWidth).equal(),[`&${r}-sm, &${r}-affix-wrapper-sm`]:{paddingBlock:e.calc(e.paddingBlockSM).add(e.lineWidth).equal()},[`&${r}-lg, &${r}-affix-wrapper-lg`]:{paddingBlock:e.calc(e.paddingBlockLG).add(e.lineWidth).equal()},"&:focus, &:focus-within":{outline:"none"},[`&${r}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${r}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${r}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}},...t}}},Sue=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(t==null?void 0:t.inputColor)??"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),Gq=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...Sue(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),wue=(e,t)=>({"&-filled":{...Sue(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...nA(e)},...Gq(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError}),...Gq(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning}),...t}}),Vq=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),f$e=e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}},...Vq(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...Vq(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:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}}),xue=(e,t)=>({background:e.colorBgContainer,borderWidth:`${ae(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),zq=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...xue(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`}}),Eue=(e,t)=>({"&-underlined":{...xue(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"},...zq(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...zq(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),Tue=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),EH=e=>{const{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:i}=e;return{padding:`${ae(t)} ${ae(i)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},TH=e=>({padding:`${ae(e.paddingBlockSM)} ${ae(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),iA=(e,t={})=>({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${ae(e.paddingBlock)} ${ae(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...Tue(e.colorTextPlaceholder),"&-lg":{...EH(e),...t.largeStyle},"&-sm":{...TH(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:"rtl"}}),g$e=e=>{const{componentCls:t,antCls:r}=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`]:{...EH(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...TH(e)},[`&-lg ${r}-select-single`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single`]:{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 ${ae(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${ae(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${ae(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]:{backgroundColor:"inherit",border:`${ae(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},[`${r}-cascader-picker`]:{margin:`-9px ${ae(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${r}-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}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${r}-select`]:{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,[`${r}-select`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0},"&:not(:first-child)":{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:{display:"block",...fu(),[`${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, & > ${r}-picker-range `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${r}-select, & > ${r}-select-auto-complete ${t}, & > ${r}-cascader-picker ${t}, & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${r}-select-focused`]:{zIndex:1},[`& > ${r}-select > ${r}-select-arrow`]:{zIndex:1},[`& > *:first-child, & > ${r}-select:first-child, & > ${r}-select-auto-complete:first-child ${t}, & > ${r}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, & > ${r}-select:last-child, & > ${r}-cascader-picker:last-child ${t}, & > ${r}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{}}}}},m$e=e=>{const{componentCls:t,controlHeightSM:r,lineWidth:n,calc:i}=e,s=i(r).sub(i(n).mul(2)).sub(16).div(2).equal();return{[t]:{...on(e),...iA(e),...Cue(e),...wue(e),...bue(e),...Eue(e),'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:r,paddingTop:s,paddingBottom:s}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}}}},v$e=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 ${ae(e.inputAffixPadding)}`}}}},y$e=e=>{const{componentCls:t,inputAffixPadding:r,colorTextDescription:n,motionDurationSlow:i,colorIcon:o,colorIconHover:s,iconCls:a}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:{...iA(e),display:"inline-flex","&-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:n,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:r},"&-suffix":{marginInlineStart:r}},...v$e(e),[`${a}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:s}}},[`${t}-underlined`]:{borderRadius:0},[c]:{[`${a}${t}-password-icon`]:{color:o,cursor:"not-allowed","&:hover":{color:o}}}}},C$e=e=>{const{componentCls:t,borderRadiusLG:r,borderRadiusSM:n}=e;return{[`${t}-group`]:{...on(e),...g$e(e),"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:r,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:n}},...p$e(e),...f$e(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}}}}}},b$e=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Rue=zr(["Input","Shared"],e=>{const t=$r(e,kC(e));return[m$e(t),y$e(t)]},OC,{resetFont:!1}),Pue=zr(["Input","Component"],e=>{const t=$r(e,kC(e));return[C$e(t),b$e(t),$x(t,{focus:!0,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},OC,{resetFont:!1});var S$e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};function j$(){return j$=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,j$({},e,{ref:t,icon:S$e})),Mue=v.forwardRef(w$e);var l0={exports:{}},Hq;function x$e(){if(Hq)return l0.exports;Hq=1,l0.exports=n,l0.exports.isMobile=n,l0.exports.default=n;const e=/(android|bb\d+|meego).+mobile|armv7l|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|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,t=/CrOS/,r=/android|ipad|playbook|silk/i;function n(i){i||(i={});let o=i.ua;if(!o&&typeof navigator<"u"&&(o=navigator.userAgent),o&&o.headers&&typeof o.headers["user-agent"]=="string"&&(o=o.headers["user-agent"]),typeof o!="string")return!1;let s=e.test(o)&&!t.test(o)||!!i.tablet&&r.test(o);return!s&&i.tablet&&i.featureDetect&&navigator&&navigator.maxTouchPoints>1&&o.indexOf("Macintosh")!==-1&&o.indexOf("Safari")!==-1&&(s=!0),s}return l0.exports}var E$e=x$e();const T$e=xx(E$e);let i2;const R$e=(()=>(typeof i2>"u"&&(i2=T$e()),i2)),RH=v.createContext(null),P$e=e=>{const{activeTabOffset:t,horizontal:r,rtl:n,indicator:i={}}=e,{size:o,align:s="center"}=i,[a,l]=v.useState(),c=v.useRef(),u=Q.useCallback(h=>typeof o=="function"?o(h):typeof o=="number"?o:h,[o]);function d(){Or.cancel(c.current)}return v.useEffect(()=>{const h={};if(t)if(r){h.width=u(t.width);const p=n?"right":"left";s==="start"&&(h[p]=t[p]),s==="center"&&(h[p]=t[p]+t.width/2,h.transform=n?"translateX(50%)":"translateX(-50%)"),s==="end"&&(h[p]=t[p]+t.width,h.transform="translateX(-100%)")}else h.height=u(t.height),s==="start"&&(h.top=t.top),s==="center"&&(h.top=t.top+t.height/2,h.transform="translateY(-50%)"),s==="end"&&(h.top=t.top+t.height,h.transform="translateY(-100%)");return d(),c.current=Or(()=>{a&&h&&Object.keys(h).every(f=>{const g=h[f],m=a[f];return typeof g=="number"&&typeof m=="number"?Math.round(g)===Math.round(m):g===m})||l(h)}),d},[JSON.stringify(t),r,n,s,u]),{style:a}},Wq={width:0,height:0,left:0,top:0};function M$e(e,t,r){return v.useMemo(()=>{var s,a;const n=new Map,i=t.get((s=e[0])==null?void 0:s.key)||Wq,o=i.left+i.width;for(let l=0;ln.key).join("_"),t,r])}function Uq(e,t){const r=v.useRef(e),[,n]=v.useState({});function i(o){const s=typeof o=="function"?o(r.current):o;s!==r.current&&t(s,r.current),r.current=s,n({})}return[r.current,i]}const I$e=.1,jq=.01,mP=20,Kq=.995**mP;function D$e(e,t){const[r,n]=v.useState(),[i,o]=v.useState(0),[s,a]=v.useState(0),[l,c]=v.useState(),u=v.useRef();function d(y){const{screenX:b,screenY:S}=y.touches[0];n({x:b,y:S}),window.clearInterval(u.current)}function h(y){if(!r)return;const{screenX:b,screenY:S}=y.touches[0];n({x:b,y:S});const x=b-r.x,E=S-r.y;t(x,E);const R=Date.now();o(R),a(R-i),c({x,y:E})}function p(){if(r&&(n(null),c(null),l)){const y=l.x/s,b=l.y/s,S=Math.abs(y),x=Math.abs(b);if(Math.max(S,x){if(Math.abs(E)R?(x=b,f.current="x"):(x=S,f.current="y"),t(-x,-x)&&y.preventDefault()}const m=v.useRef(null);m.current={onTouchStart:d,onTouchMove:h,onTouchEnd:p,onWheel:g},v.useEffect(()=>{function y(E){m.current.onTouchStart(E)}function b(E){m.current.onTouchMove(E)}function S(E){m.current.onTouchEnd(E)}function x(E){m.current.onWheel(E)}return document.addEventListener("touchmove",b,{passive:!1}),document.addEventListener("touchend",S,{passive:!0}),e.current.addEventListener("touchstart",y,{passive:!0}),e.current.addEventListener("wheel",x,{passive:!1}),()=>{document.removeEventListener("touchmove",b),document.removeEventListener("touchend",S)}},[])}function Iue(e){const[t,r]=v.useState(0),n=v.useRef(0),i=v.useRef();return i.current=e,sP(()=>{var o;(o=i.current)==null||o.call(i)},[t]),()=>{n.current===t&&(n.current+=1,r(n.current))}}function A$e(e){const t=v.useRef([]),[,r]=v.useState({}),n=v.useRef(typeof e=="function"?e():e),i=Iue(()=>{let s=n.current;t.current.forEach(a=>{s=a(s)}),t.current=[],n.current=s,r({})});function o(s){t.current.push(s),i()}return[n.current,o]}const qq={width:0,height:0,left:0,top:0,right:0};function F$e(e,t,r,n,i,o,{tabs:s,tabPosition:a,rtl:l}){let c,u,d;return["top","bottom"].includes(a)?(c="width",u=l?"right":"left",d=Math.abs(r)):(c="height",u="top",d=-r),v.useMemo(()=>{if(!s.length)return[0,0];const h=s.length;let p=h;for(let g=0;gMath.floor(d+t)){p=g-1;break}}let f=0;for(let g=h-1;g>=0;g-=1)if((e.get(s[g].key)||qq)[u]p?[0,-1]:[f,p]},[e,t,n,i,o,d,a,s.map(h=>h.key).join("_"),l])}function Xq(e){let t;return e instanceof Map?(t={},e.forEach((r,n)=>{t[n]=r})):t=e,JSON.stringify(t)}const L$e="TABS_DQ";function Due(e){return String(e).replace(/"/g,L$e)}function PH(e,t,r,n){return!(!r||n||e===!1||e===void 0&&(t===!1||t===null))}const Aue=v.forwardRef((e,t)=>{const{prefixCls:r,editable:n,locale:i,style:o}=e;return!n||n.showAdd===!1?null:v.createElement("button",{ref:t,type:"button",className:`${r}-nav-add`,style:o,"aria-label":(i==null?void 0:i.addAriaLabel)||"Add tab",onClick:s=>{n.onEdit("add",{event:s})}},n.addIcon||"+")}),Yq=v.forwardRef((e,t)=>{const{position:r,prefixCls:n,extra:i}=e;if(!i)return null;let o,s={};return typeof i=="object"&&!v.isValidElement(i)?s=i:s.right=i,r==="right"&&(o=s.right),r==="left"&&(o=s.left),o?v.createElement("div",{className:`${n}-extra-content`,ref:t},o):null});function K$(){return K$=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{prefixCls:r,id:n,tabs:i,locale:o,mobile:s,more:a={},style:l,className:c,editable:u,tabBarGutter:d,rtl:h,removeAriaLabel:p,onTabClick:f,getPopupContainer:g,popupClassName:m,popupStyle:y}=e,[b,S]=v.useState(!1),[x,E]=v.useState(null),{icon:R="More"}=a,T=`${n}-more-popup`,M=`${r}-dropdown`,D=x!==null?`${T}-${x}`:null,A=o==null?void 0:o.dropdownAriaLabel;function I(N,z){N.preventDefault(),N.stopPropagation(),u.onEdit("remove",{key:z,event:N})}const L=v.createElement(LC,{onClick:({key:N,domEvent:z})=>{f(N,z),S(!1)},prefixCls:`${M}-menu`,id:T,tabIndex:-1,role:"listbox","aria-activedescendant":D,selectedKeys:[x],"aria-label":A!==void 0?A:"expanded dropdown"},i.map(N=>{const{closable:z,disabled:W,closeIcon:V,key:$,label:K}=N,q=PH(z,V,u,W);return v.createElement(Xx,{key:$,id:`${T}-${$}`,role:"option","aria-controls":n&&`${n}-panel-${$}`,disabled:W},v.createElement("span",null,K),q&&v.createElement("button",{type:"button","aria-label":p||"remove",tabIndex:0,className:`${M}-menu-item-remove`,onClick:X=>{X.stopPropagation(),I(X,$)}},V||u.removeIcon||"×"))}));function F(N){const z=i.filter($=>!$.disabled);let W=z.findIndex($=>$.key===x)||0;const V=z.length;for(let $=0;${const N=document.getElementById(D);N!=null&&N.scrollIntoView&&N.scrollIntoView(!1)},[D,x]),v.useEffect(()=>{b||E(null)},[b]);const k={marginInlineStart:d};i.length||(k.visibility="hidden",k.order=1);const B=Z(m,{[`${M}-rtl`]:h}),H=s?null:v.createElement(jce,K$({prefixCls:M,overlay:L,visible:i.length?b:!1,onVisibleChange:S,overlayClassName:B,overlayStyle:y,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:g},a),v.createElement("button",{type:"button",className:`${r}-nav-more`,style:k,"aria-haspopup":"listbox","aria-controls":T,id:`${n}-more`,"aria-expanded":b,onKeyDown:O},R));return v.createElement("div",{className:Z(`${r}-nav-operations`,c),style:l,ref:t},H,v.createElement(Aue,{prefixCls:r,locale:o,editable:u}))}),k$e=v.memo(_$e,(e,t)=>t.tabMoving),O$e=e=>{const{prefixCls:t,id:r,active:n,focus:i,tab:{key:o,label:s,disabled:a,closeIcon:l,icon:c},closable:u,renderWrapper:d,removeAriaLabel:h,editable:p,onClick:f,onFocus:g,onBlur:m,onKeyDown:y,onMouseDown:b,onMouseUp:S,style:x,className:E,tabCount:R,currentPosition:T}=e,M=`${t}-tab`,D=PH(u,l,p,a);function A(k){a||f(k)}function I(k){k.preventDefault(),k.stopPropagation(),p.onEdit("remove",{key:o,event:k})}const L=v.useMemo(()=>c&&typeof s=="string"?v.createElement("span",null,s):s,[s,c]),F=v.useRef(null);v.useEffect(()=>{i&&F.current&&F.current.focus()},[i]);const O=v.createElement("div",{key:o,"data-node-key":Due(o),className:Z(M,E,{[`${M}-with-remove`]:D,[`${M}-active`]:n,[`${M}-disabled`]:a,[`${M}-focus`]:i}),style:x,onClick:A},v.createElement("div",{ref:F,role:"tab","aria-selected":n,id:r&&`${r}-tab-${o}`,className:`${M}-btn`,"aria-controls":r&&`${r}-panel-${o}`,"aria-disabled":a,tabIndex:a?null:n?0:-1,onClick:k=>{k.stopPropagation(),A(k)},onKeyDown:y,onMouseDown:b,onMouseUp:S,onFocus:g,onBlur:m},i&&v.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`Tab ${T} of ${R}`),c&&v.createElement("span",{className:`${M}-icon`},c),s&&L),D&&v.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:n?0:-1,className:`${M}-remove`,onClick:k=>{k.stopPropagation(),I(k)}},l||p.removeIcon||"×"));return d?d(O):O};function q$(){return q$=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{offsetWidth:r,offsetHeight:n,offsetTop:i,offsetLeft:o}=e,{width:s,height:a,left:l,top:c}=e.getBoundingClientRect();return Math.abs(s-r)<1?[s,a,l-t.left,c-t.top]:[r,n,o,i]},wv=e=>{const{offsetWidth:t=0,offsetHeight:r=0}=e.current||{};if(e.current){const{width:n,height:i}=e.current.getBoundingClientRect();if(Math.abs(n-t)<1)return[n,i]}return[t,r]},dT=(e,t)=>e[t?0:1],Zq=v.forwardRef((e,t)=>{const{className:r,style:n,id:i,animated:o,activeKey:s,rtl:a,extra:l,editable:c,locale:u,tabPosition:d,tabBarGutter:h,children:p,onTabClick:f,onTabScroll:g,indicator:m,classNames:y,styles:b}=e,{prefixCls:S,tabs:x}=v.useContext(RH),E=v.useRef(null),R=v.useRef(null),T=v.useRef(null),M=v.useRef(null),D=v.useRef(null),A=v.useRef(null),I=v.useRef(null),L=d==="top"||d==="bottom",[F,O]=Uq(0,(ke,se)=>{L&&g&&g({direction:ke>se?"left":"right"})}),[k,B]=Uq(0,(ke,se)=>{!L&&g&&g({direction:ke>se?"top":"bottom"})}),[H,N]=v.useState([0,0]),[z,W]=v.useState([0,0]),[V,$]=v.useState([0,0]),[K,q]=v.useState([0,0]),[X,Y]=A$e(new Map),oe=M$e(x,X,z[0]),ee=dT(H,L),ne=dT(z,L),le=dT(V,L),he=dT(K,L),re=Math.floor(ee)ue?ue:ke}const pe=v.useRef(null),[me,Oe]=v.useState();function De(){Oe(Date.now())}function Ee(){pe.current&&clearTimeout(pe.current)}D$e(M,(ke,se)=>{function ce(fe,Te){fe($e=>ve($e+Te))}return re?(L?ce(O,ke):ce(B,se),Ee(),De(),!0):!1}),v.useEffect(()=>(Ee(),me&&(pe.current=setTimeout(()=>{Oe(0)},100)),Ee),[me]);const[We,ze]=F$e(oe,ie,L?F:k,ne,le,he,{...e,tabs:x}),mt=Sr((ke=s)=>{const se=oe.get(ke)||{width:0,height:0,left:0,right:0,top:0};if(L){let ce=F;a?se.rightF+ie&&(ce=se.right+se.width-ie):se.left<-F?ce=-se.left:se.left+se.width>-F+ie&&(ce=-(se.left+se.width-ie)),B(0),O(ve(ce))}else{let ce=k;se.top<-k?ce=-se.top:se.top+se.height>-k+ie&&(ce=-(se.top+se.height-ie)),O(0),B(ve(ce))}}),[Nt,St]=v.useState(),[Ze,Fe]=v.useState(!1),tt=x.filter(ke=>!ke.disabled).map(ke=>ke.key),Ne=ke=>{const se=tt.indexOf(Nt||s),ce=tt.length,fe=(se+ke+ce)%ce,Te=tt[fe];St(Te)},rt=(ke,se)=>{const ce=tt.indexOf(ke),fe=x.find($e=>$e.key===ke);PH(fe==null?void 0:fe.closable,fe==null?void 0:fe.closeIcon,c,fe==null?void 0:fe.disabled)&&(se.preventDefault(),se.stopPropagation(),c.onEdit("remove",{key:ke,event:se}),ce===tt.length-1?Ne(-1):Ne(1))},ot=(ke,se)=>{Fe(!0),se.button===1&&rt(ke,se)},Ye=ke=>{const{code:se}=ke,ce=a&&L,fe=tt[0],Te=tt[tt.length-1];switch(se){case"ArrowLeft":{L&&Ne(ce?1:-1);break}case"ArrowRight":{L&&Ne(ce?-1:1);break}case"ArrowUp":{ke.preventDefault(),L||Ne(-1);break}case"ArrowDown":{ke.preventDefault(),L||Ne(1);break}case"Home":{ke.preventDefault(),St(fe);break}case"End":{ke.preventDefault(),St(Te);break}case"Enter":case"Space":{ke.preventDefault(),f(Nt??s,ke);break}case"Backspace":case"Delete":{rt(Nt,ke);break}}},Ae={};L?Ae.marginInlineStart=h:Ae.marginTop=h;const nt=x.map((ke,se)=>{const{key:ce}=ke;return v.createElement(O$e,{id:i,prefixCls:S,key:ce,tab:ke,className:y==null?void 0:y.item,style:se===0?b==null?void 0:b.item:{...Ae,...b==null?void 0:b.item},closable:ke.closable,editable:c,active:ce===s,focus:ce===Nt,renderWrapper:p,removeAriaLabel:u==null?void 0:u.removeAriaLabel,tabCount:tt.length,currentPosition:se+1,onClick:fe=>{f(ce,fe)},onKeyDown:Ye,onFocus:()=>{Ze||St(ce),mt(ce),De(),M.current&&(a||(M.current.scrollLeft=0),M.current.scrollTop=0)},onBlur:()=>{St(void 0)},onMouseDown:fe=>ot(ce,fe),onMouseUp:()=>{Fe(!1)}})}),Et=()=>Y(()=>{var ce;const ke=new Map,se=(ce=D.current)==null?void 0:ce.getBoundingClientRect();return x.forEach(({key:fe})=>{var $e;const Te=($e=D.current)==null?void 0:$e.querySelector(`[data-node-key="${Due(fe)}"]`);if(Te){const[et,Dt,ct,st]=N$e(Te,se);ke.set(fe,{width:et,height:Dt,left:ct,top:st})}}),ke});v.useEffect(()=>{Et()},[x.map(ke=>ke.key).join("_")]);const Tt=Iue(()=>{const ke=wv(E),se=wv(R),ce=wv(T);N([ke[0]-se[0]-ce[0],ke[1]-se[1]-ce[1]]);const fe=wv(I);$(fe);const Te=wv(A);q(Te);const $e=wv(D);W([$e[0]-fe[0],$e[1]-fe[1]]),Et()}),Ot=x.slice(0,We),Wt=x.slice(ze+1),at=[...Ot,...Wt],lt=oe.get(s),{style:Ut}=P$e({activeTabOffset:lt,horizontal:L,indicator:m,rtl:a});v.useEffect(()=>{mt()},[s,J,ue,Xq(lt),Xq(oe),L]),v.useEffect(()=>{Tt()},[a]);const cr=!!at.length,_e=`${S}-nav-wrap`;let qe,Re,it,Ve;return L?a?(Re=F>0,qe=F!==ue):(qe=F<0,Re=F!==J):(it=k<0,Ve=k!==J),v.createElement(ta,{onResize:Tt},v.createElement("div",{ref:Pu(t,E),role:"tablist","aria-orientation":L?"horizontal":"vertical",className:Z(`${S}-nav`,r,y==null?void 0:y.header),style:{...b==null?void 0:b.header,...n},onKeyDown:()=>{De()}},v.createElement(Yq,{ref:R,position:"left",extra:l,prefixCls:S}),v.createElement(ta,{onResize:Tt},v.createElement("div",{className:Z(_e,{[`${_e}-ping-left`]:qe,[`${_e}-ping-right`]:Re,[`${_e}-ping-top`]:it,[`${_e}-ping-bottom`]:Ve}),ref:M},v.createElement(ta,{onResize:Tt},v.createElement("div",{ref:D,className:`${S}-nav-list`,style:{transform:`translate(${F}px, ${k}px)`,transition:me?"none":void 0}},nt,v.createElement(Aue,{ref:I,prefixCls:S,locale:u,editable:c,style:{...nt.length===0?void 0:Ae,visibility:cr?"hidden":null}}),v.createElement("div",{className:Z(`${S}-ink-bar`,y==null?void 0:y.indicator,{[`${S}-ink-bar-animated`]:o.inkBar}),style:{...Ut,...b==null?void 0:b.indicator}}))))),v.createElement(k$e,q$({},e,{removeAriaLabel:u==null?void 0:u.removeAriaLabel,ref:A,prefixCls:S,tabs:at,className:!cr&&de,popupStyle:b==null?void 0:b.popup,tabMoving:!!me})),v.createElement(Yq,{ref:T,position:"right",extra:l,prefixCls:S})))}),B$e=({renderTabBar:e,...t})=>e?e(t,Zq):v.createElement(Zq,t),$$e=v.forwardRef((e,t)=>{const{prefixCls:r,className:n,style:i,id:o,active:s,tabKey:a,children:l}=e,c=v.Children.count(l)>0;return v.createElement("div",{id:o&&`${o}-panel-${a}`,role:"tabpanel",tabIndex:s&&c?0:-1,"aria-labelledby":o&&`${o}-tab-${a}`,"aria-hidden":!s,style:i,className:Z(r,s&&`${r}-active`,n),ref:t},l)});function TM(){return TM=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{id:t,activeKey:r,animated:n,tabPosition:i,destroyOnHidden:o,contentStyle:s,contentClassName:a}=e,{prefixCls:l,tabs:c}=v.useContext(RH),u=n.tabPane,d=`${l}-tabpane`;return v.createElement("div",{className:Z(`${l}-content-holder`)},v.createElement("div",{className:Z(`${l}-content`,`${l}-content-${i}`,{[`${l}-content-animated`]:u})},c.map(h=>{const{key:p,forceRender:f,style:g,className:m,destroyOnHidden:y,...b}=h,S=p===r;return v.createElement(gu,TM({key:p,visible:S,forceRender:f,removeOnLeave:!!(o??y),leavedClassName:`${d}-hidden`},n.tabPaneMotion),({style:x,className:E},R)=>v.createElement($$e,TM({},b,{prefixCls:d,id:t,tabKey:p,animated:u,active:S,style:{...s,...g,...x},className:Z(a,m,E),ref:R})))})))};function V$e(e={inkBar:!0,tabPane:!1}){let t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t={inkBar:!0,...typeof e=="object"?e:{}},t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}function LS(){return LS=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var oe;const{id:r,prefixCls:n="rc-tabs",className:i,items:o,direction:s,activeKey:a,defaultActiveKey:l,editable:c,animated:u,tabPosition:d="top",tabBarGutter:h,tabBarStyle:p,tabBarExtraContent:f,locale:g,more:m,destroyOnHidden:y,renderTabBar:b,onChange:S,onTabClick:x,onTabScroll:E,getPopupContainer:R,popupClassName:T,indicator:M,classNames:D,styles:A,...I}=e,L=v.useMemo(()=>(o||[]).filter(ee=>ee&&typeof ee=="object"&&"key"in ee),[o]),F=s==="rtl",O=V$e(u),[k,B]=v.useState(!1);v.useEffect(()=>{B(R$e())},[]);const[H,N]=An(l??((oe=L[0])==null?void 0:oe.key),a),[z,W]=v.useState(()=>L.findIndex(ee=>ee.key===H));v.useEffect(()=>{var ne;let ee=L.findIndex(le=>le.key===H);ee===-1&&(ee=Math.max(0,Math.min(z,L.length-1)),N((ne=L[ee])==null?void 0:ne.key)),W(ee)},[L.map(ee=>ee.key).join("_"),H,z]);const[V,$]=An(null,r);v.useEffect(()=>{r||($(`rc-tabs-${Qq}`),Qq+=1)},[]);function K(ee,ne){x==null||x(ee,ne);const le=ee!==H;N(ee),le&&(S==null||S(ee))}const q={id:V,activeKey:H,animated:O,tabPosition:d,rtl:F,mobile:k},X={...q,editable:c,locale:g,more:m,tabBarGutter:h,onTabClick:K,onTabScroll:E,extra:f,style:p,getPopupContainer:R,popupClassName:Z(T,D==null?void 0:D.popup),indicator:M,styles:A,classNames:D},Y=v.useMemo(()=>({tabs:L,prefixCls:n}),[L,n]);return v.createElement(RH.Provider,{value:Y},v.createElement("div",LS({ref:t,id:r,className:Z(n,`${n}-${d}`,{[`${n}-mobile`]:k,[`${n}-editable`]:c,[`${n}-rtl`]:F},i)},I),v.createElement(B$e,LS({},X,{renderTabBar:b})),v.createElement(G$e,LS({destroyOnHidden:y},q,{contentStyle:A==null?void 0:A.content,contentClassName:D==null?void 0:D.content,animated:O}))))}),H$e={motionAppear:!1,motionEnter:!0,motionLeave:!0};function W$e(e,t={inkBar:!0,tabPane:!1}){let r;return t===!1?r={inkBar:!1,tabPane:!1}:t===!0?r={inkBar:!0,tabPane:!0}:r={inkBar:!0,...typeof t=="object"?t:{}},r.tabPane&&(r.tabPaneMotion={...H$e,motionName:mu(e,"switch")}),r}function U$e(e){return e.filter(t=>t)}function j$e(e,t){if(e)return e.map(n=>({...n,destroyOnHidden:n.destroyOnHidden??n.destroyInactiveTabPane}));const r=Li(t).map(n=>{if(v.isValidElement(n)){const{key:i,props:o}=n,{tab:s,...a}=o||{};return{key:String(i),...a,label:s}}return null});return U$e(r)}const K$e=e=>{const{componentCls:t,motionDurationSlow:r}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${r}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${r}`}}}}},[Tp(e,"slide-up"),Tp(e,"slide-down")]]},q$e=e=>{const{componentCls:t,tabsCardPadding:r,cardBg:n,cardGutter:i,colorBorderSecondary:o,itemSelectedColor:s}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:r,background:n,border:`${ae(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:s,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:gc(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:ae(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:ae(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ae(e.borderRadiusLG)} 0 0 ${ae(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},X$e=e=>{const{componentCls:t,itemHoverColor:r,dropdownEdgeChildVerticalPadding:n}=e;return{[`${t}-dropdown`]:{...on(e),position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${ae(n)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":{...Ps,display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${ae(e.paddingXXS)} ${ae(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:r}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}}}}}},Y$e=e=>{const{componentCls:t,margin:r,colorBorderSecondary:n,horizontalMargin:i,verticalItemPadding:o,verticalItemMargin:s,motionDurationSlow:a,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${ae(e.lineWidth)} ${e.lineType} ${n}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:["width","left","right"].map(c=>`${c} ${a}`).join(", ")}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:r,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:s},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:["height","top"].map(c=>`${c} ${a}`).join(", ")}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:ae(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Z$e=e=>{const{componentCls:t,cardPaddingSM:r,cardPaddingLG:n,cardHeightSM:i,cardHeightLG:o,horizontalItemPaddingSM:s,horizontalItemPaddingLG:a}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:i,minHeight:i}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${ae(e.borderRadius)} ${ae(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${ae(e.borderRadius)} ${ae(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ae(e.borderRadius)} ${ae(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ae(e.borderRadius)} 0 0 ${ae(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:o,minHeight:o}}}}}},Q$e=e=>{const{componentCls:t,itemActiveColor:r,itemHoverColor:n,iconCls:i,tabsHorizontalItemMargin:o,horizontalItemPadding:s,itemSelectedColor:a,itemColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:s,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:r}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading},...wl(e)},"&:hover":{color:n},[`&${c}-active ${c}-btn`]:{color:a},[`&${c}-focus ${c}-btn:focus-visible`]:gc(e),[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${i}`]:{margin:0,verticalAlign:"middle"},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:o}}}},J$e=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:r,iconCls:n,cardGutter:i,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:r},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[n]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:ae(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:ae(e.marginXS)},marginLeft:{_skip_check_:!0,value:ae(o(e.marginXXS).mul(-1).equal())},[n]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},eGe=e=>{const{componentCls:t,tabsCardPadding:r,cardHeight:n,cardGutter:i,itemHoverColor:o,itemActiveColor:s,colorBorderSecondary:a}=e;return{[t]:{...on(e),display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:r,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:{minWidth:n,minHeight:n,marginLeft:{_skip_check_:!0,value:i},background:"transparent",border:`${ae(e.lineWidth)} ${e.lineType} ${a}`,borderRadius:`${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:s},...wl(e,-3)}},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"},...Q$e(e),[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{...wl(e),"&-hidden":{display:"none"}}},[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},tGe=e=>{const{cardHeight:t,cardHeightSM:r,cardHeightLG:n,controlHeight:i,controlHeightLG:o}=e,s=t||o,a=r||i,l=n||o+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:s,cardHeightSM:a,cardHeightLG:l,cardPadding:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(a-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(l-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},rGe=zr("Tabs",e=>{const t=$r(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${ae(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${ae(e.horizontalItemGutter)}`});return[Z$e(t),J$e(t),Y$e(t),X$e(t),q$e(t),eGe(t),K$e(t)]},tGe),nGe=()=>null,iGe=v.forwardRef((e,t)=>{var J,ue,ve,pe;const{type:r,className:n,rootClassName:i,size:o,onEdit:s,hideAdd:a,centered:l,addIcon:c,removeIcon:u,moreIcon:d,more:h,popupClassName:p,children:f,items:g,animated:m,style:y,indicatorSize:b,indicator:S,classNames:x,styles:E,destroyInactiveTabPane:R,destroyOnHidden:T,tabPlacement:M,tabPosition:D,...A}=e,{prefixCls:I}=A,{getPrefixCls:L,direction:F,getPopupContainer:O,className:k,style:B,classNames:H,styles:N}=Fr("tabs"),{tabs:z}=v.useContext(ir),W=L("tabs",I),V=ho(W),[$,K]=rGe(W,V),q=v.useRef(null);v.useImperativeHandle(t,()=>({nativeElement:q.current}));let X;r==="editable-card"&&(X={onEdit:(me,{key:Oe,event:De})=>{s==null||s(me==="add"?De:Oe,me)},removeIcon:u??(z==null?void 0:z.removeIcon)??v.createElement(Xd,null),addIcon:(c??(z==null?void 0:z.addIcon))||v.createElement(Mue,null),showAdd:a!==!0});const Y=L(),oe=Oi(o),ee=j$e(g,f),ne=W$e(W,m),le={align:(S==null?void 0:S.align)??((J=z==null?void 0:z.indicator)==null?void 0:J.align),size:(S==null?void 0:S.size)??b??((ue=z==null?void 0:z.indicator)==null?void 0:ue.size)??(z==null?void 0:z.indicatorSize)},he=v.useMemo(()=>{const me=M??D??void 0,Oe=F==="rtl";switch(me){case"start":return Oe?"right":"left";case"end":return Oe?"left":"right";default:return me}},[M,D,F]),re={...e,size:oe,tabPlacement:he,items:ee},[ie,de]=Gr([H,x],[N,E],{props:re},{popup:{_default:"root"}});return v.createElement(z$e,{ref:q,direction:F,getPopupContainer:O,...A,items:ee,className:Z({[`${W}-large`]:oe==="large",[`${W}-small`]:oe==="small",[`${W}-card`]:["card","editable-card"].includes(r),[`${W}-editable-card`]:r==="editable-card",[`${W}-centered`]:l},k,n,i,ie.root,$,K,V),classNames:{...ie,popup:Z(p,$,K,V,(ve=ie.popup)==null?void 0:ve.root)},styles:de,style:{...de.root,...B,...y},editable:X,more:{icon:((pe=z==null?void 0:z.more)==null?void 0:pe.icon)??(z==null?void 0:z.moreIcon)??d??v.createElement(wH,null),transitionName:`${Y}-slide-up`,...h},prefixCls:W,animated:ne,indicator:le,destroyOnHidden:T??R,tabPosition:he})}),Fue=iGe;Fue.TabPane=nGe;const Lue=({prefixCls:e,className:t,hoverable:r=!0,...n})=>{const{getPrefixCls:i}=v.useContext(ir),o=i("card",e),s=Z(`${o}-grid`,t,{[`${o}-grid-hoverable`]:r});return v.createElement("div",{...n,className:s})},oGe=e=>{const{antCls:t,componentCls:r,headerHeight:n,headerPadding:i,tabsMarginBottom:o}=e;return{display:"flex",justifyContent:"center",flexDirection:"column",minHeight:n,marginBottom:-1,padding:`0 ${ae(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)} 0 0`,...fu(),"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":{display:"inline-block",flex:1,...Ps,[` > ${r}-typography, > ${r}-typography-edit-content `]:{insetInlineStart:0,marginTop:0,marginBottom:0}},[`${t}-tabs-top`]:{clear:"both",marginBottom:o,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}}},sGe=e=>{const{cardPaddingBase:t,colorBorderSecondary:r,cardShadow:n,lineWidth:i}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` ${ae(i)} 0 0 0 ${r}, 0 ${ae(i)} 0 0 ${r}, ${ae(i)} ${ae(i)} 0 0 ${r}, ${ae(i)} 0 0 0 ${r} inset, 0 ${ae(i)} 0 0 ${r} inset; `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:n}}},aGe=e=>{const{componentCls:t,iconCls:r,actionsLiMargin:n,cardActionsIconSize:i,colorBorderSecondary:o,actionsBg:s}=e;return{margin:0,padding:0,listStyle:"none",background:s,borderTop:`${ae(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)}`,...fu(),"& > li":{margin:n,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${r}`]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:ae(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${r}`]:{fontSize:i,lineHeight:ae(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${ae(e.lineWidth)} ${e.lineType} ${o}`}}}},lGe=e=>({margin:`${ae(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex",...fu(),"&-avatar":{paddingInlineEnd:e.padding},"&-section":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,...Ps},"&-description":{color:e.colorTextDescription}}),cGe=e=>{const{componentCls:t,colorFillAlter:r,headerPadding:n,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${ae(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${ae(e.padding)} ${ae(i)}`}}},uGe=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},dGe=e=>{const{componentCls:t,cardShadow:r,cardHeadPadding:n,colorBorderSecondary:i,boxShadowTertiary:o,bodyPadding:s,extraColor:a,motionDurationMid:l}=e;return{[t]:{...on(e),position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:o},[`${t}-head`]:oGe(e),[`${t}-extra`]:{marginInlineStart:"auto",color:a,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:s,borderRadius:`0 0 ${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)}`,"&:first-child":{borderStartStartRadius:e.borderRadiusLG,borderStartEndRadius:e.borderRadiusLG},"&:not(:last-child)":{borderEndStartRadius:0,borderEndEndRadius:0}},[`${t}-grid`]:sGe(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:aGe(e),[`${t}-meta`]:lGe(e)},[`${t}-bordered`]:{border:`${ae(e.lineWidth)} ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:["box-shadow","border-color"].map(c=>`${c} ${l}`).join(", "),"&:hover":{borderColor:"transparent",boxShadow:r}},[`${t}-contain-grid`]:{borderRadius:`${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)} 0 0 `,[`&:not(:has(> ${t}-head))`]:{borderRadius:0},[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:n}}},[`${t}-type-inner`]:cGe(e),[`${t}-loading`]:uGe(e),[`${t}-rtl`]:{direction:"rtl"}}},hGe=e=>{const{componentCls:t,bodyPaddingSM:r,headerPaddingSM:n,headerHeightSM:i,headerFontSizeSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${ae(n)}`,fontSize:o,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:r}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},pGe=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:e.bodyPadding??e.paddingLG,headerPadding:e.headerPadding??e.paddingLG}),fGe=zr("Card",e=>{const t=$r(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[dGe(t),hGe(t)]},pGe),gGe=e=>{const{actionClasses:t,actions:r=[],actionStyle:n}=e;return v.createElement("ul",{className:t,style:n},r.map((i,o)=>{const s=`action-${o}`;return v.createElement("li",{style:{width:`${100/r.length}%`},key:s},v.createElement("span",null,i))}))},mGe=v.forwardRef((e,t)=>{const{prefixCls:r,className:n,rootClassName:i,style:o,extra:s,headStyle:a={},bodyStyle:l={},title:c,loading:u,bordered:d,variant:h,size:p,type:f,cover:g,actions:m,tabList:y,children:b,activeTabKey:S,defaultActiveTabKey:x,tabBarExtraContent:E,hoverable:R,tabProps:T={},classNames:M,styles:D,...A}=e,{getPrefixCls:I,direction:L,className:F,style:O,classNames:k,styles:B}=Fr("card"),[H]=Kx("card",h,d),N=Oi(p),z={...e,size:N,variant:H,loading:u},[W,V]=Gr([k,M],[B,D],{props:z}),$=We=>{var ze;(ze=e.onTabChange)==null||ze.call(e,We)},K=v.useMemo(()=>Li(b).some(ze=>v.isValidElement(ze)&&ze.type===Lue),[b]),q=I("card",r),[X,Y]=fGe(q),oe=v.createElement(Up,{loading:!0,active:!0,paragraph:{rows:4},title:!1},b),ee=S!==void 0,ne={...T,[ee?"activeKey":"defaultActiveKey"]:ee?S:x,tabBarExtraContent:E};let le;const he=N!=="small"?"large":N,re=y?v.createElement(Fue,{size:he,...ne,className:`${q}-head-tabs`,onChange:$,items:y.map(({tab:We,...ze})=>({label:We,...ze}))}):null;if(c||s||re){const We=Z(`${q}-head`,W.header),ze=Z(`${q}-head-title`,W.title),mt=Z(`${q}-extra`,W.extra),Nt={...a,...V.header};le=v.createElement("div",{className:We,style:Nt},v.createElement("div",{className:`${q}-head-wrapper`},c&&v.createElement("div",{className:ze,style:V.title},c),s&&v.createElement("div",{className:mt,style:V.extra},s)),re)}const ie=Z(`${q}-cover`,W.cover),de=g?v.createElement("div",{className:ie,style:V.cover},g):null,J=Z(`${q}-body`,W.body),ue={...l,...V.body},ve=v.createElement("div",{className:J,style:ue},u?oe:b),pe=Z(`${q}-actions`,W.actions),me=m!=null&&m.length?v.createElement(gGe,{actionClasses:pe,actionStyle:V.actions,actions:m}):null,Oe=fn(A,["onTabChange"]),De=Z(q,F,{[`${q}-loading`]:u,[`${q}-bordered`]:H!=="borderless",[`${q}-hoverable`]:R,[`${q}-contain-grid`]:K,[`${q}-contain-tabs`]:y==null?void 0:y.length,[`${q}-small`]:N==="small",[`${q}-type-${f}`]:!!f,[`${q}-rtl`]:L==="rtl"},n,i,X,Y,W.root),Ee={...V.root,...O,...o};return v.createElement("div",{ref:t,...Oe,className:De,style:Ee},le,de,ve,me)}),vGe=e=>{const{prefixCls:t,className:r,avatar:n,title:i,description:o,style:s,classNames:a,styles:l,...c}=e,{getPrefixCls:u,className:d,style:h,classNames:p,styles:f}=Fr("cardMeta"),m=`${u("card",t)}-meta`,[y,b]=Gr([p,a],[f,l],{props:e}),S=Z(m,r,d,y.root),x={...h,...b.root,...s},E=Z(`${m}-avatar`,y.avatar),R=Z(`${m}-title`,y.title),T=Z(`${m}-description`,y.description),M=Z(`${m}-section`,y.section),D=n?v.createElement("div",{className:E,style:b.avatar},n):null,A=i?v.createElement("div",{className:R,style:b.title},i):null,I=o?v.createElement("div",{className:T,style:b.description},o):null,L=A||I?v.createElement("div",{className:M,style:b.section},A,I):null;return v.createElement("div",{...c,className:S,style:x},D,L)},_ue=mGe;_ue.Grid=Lue;_ue.Meta=vGe;function yGe(e,t,r){var n=r||{},i=n.noTrailing,o=i===void 0?!1:i,s=n.noLeading,a=s===void 0?!1:s,l=n.debounceMode,c=l===void 0?void 0:l,u,d=!1,h=0;function p(){u&&clearTimeout(u)}function f(m){var y=m||{},b=y.upcomingOnly,S=b===void 0?!1:b;p(),d=!S}function g(){for(var m=arguments.length,y=new Array(m),b=0;be?a?(h=Date.now(),o||(u=setTimeout(c?R:E,e))):E():o!==!0&&(u=setTimeout(c?R:E,c===void 0?e-x:e))}return g.cancel=f,g}function CGe(e,t,r){var n={},i=n.atBegin,o=i===void 0?!1:i;return yGe(e,t,{debounceMode:o!==!1})}function Es(e,t){return e[t]}function kue(e,t){return`${e}-${t}`}function bGe(e){return e&&e.type&&e.type.isTreeNode}function Qx(e,t){return e??t}function jy(e){const{title:t,_title:r,key:n,children:i}=e||{},o=t||"title";return{title:o,_title:r||[o],key:n||"key",children:i||"children"}}function Oue(e){function t(r){return Li(r).map(i=>{if(!bGe(i))return Vn(!i,"Tree/TreeNode can only accept TreeNode as children."),null;const{key:o}=i,{children:s,...a}=i.props,l={key:o,...a},c=t(s);return c.length&&(l.children=c),l}).filter(i=>i)}return t(e)}function o2(e,t,r){const{_title:n,key:i,children:o}=jy(r),s=new Set(t===!0?[]:t),a=[];function l(c,u=null){return c.map((d,h)=>{const p=kue(u?u.pos:"0",h),f=Qx(d[i],p);let g;for(let y=0;yh[o]:typeof o=="function"&&(u=h=>o(h)):u=(h,p)=>Qx(h[a],p);function d(h,p,f,g){const m=h?h[c]:e,y=h?kue(f.pos,p):"0",b=h?[...g,h]:[];if(h){const S=u(h,y),x={node:h,index:p,pos:y,key:S,parentPos:f.node?f.pos:null,level:f.level+1,nodes:b};t(x)}m&&m.forEach((S,x)=>{d(S,x,{node:h,pos:y,level:f?f.level+1:-1},b)})}d(null)}function MH(e,{initWrapper:t,processEntity:r,onProcessFinished:n,externalGetKey:i,childrenPropName:o,fieldNames:s}={},a){const l=i||a,c={},u={};let d={posEntities:c,keyEntities:u};return t&&(d=t(d)||d),SGe(e,h=>{const{node:p,index:f,pos:g,key:m,parentPos:y,level:b,nodes:S}=h,x={node:p,nodes:S,index:f,key:m,pos:g,level:b},E=Qx(m,g);c[g]=x,u[E]=x,x.parent=c[y],x.parent&&(x.parent.children=x.parent.children||[],x.parent.children.push(x)),r&&r(x,d)},{externalGetKey:l,childrenPropName:o,fieldNames:s}),n&&n(d),d}function Nue(e,t,r,n){return e===!1?!1:e||!t&&!r||t&&n&&!r}function _S(e,{expandedKeys:t,selectedKeys:r,loadedKeys:n,loadingKeys:i,checkedKeys:o,halfCheckedKeys:s,dragOverNodeKey:a,dropPosition:l,keyEntities:c}){const u=Es(c,e);return{eventKey:e,expanded:t.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:n.indexOf(e)!==-1,loading:i.indexOf(e)!==-1,checked:o.indexOf(e)!==-1,halfChecked:s.indexOf(e)!==-1,pos:String(u?u.pos:""),dragOver:a===e&&l===0,dragOverGapTop:a===e&&l===-1,dragOverGapBottom:a===e&&l===1}}function Hi(e){const{data:t,expanded:r,selected:n,checked:i,loaded:o,loading:s,halfChecked:a,dragOver:l,dragOverGapTop:c,dragOverGapBottom:u,pos:d,active:h,eventKey:p}=e,f={...t,expanded:r,selected:n,checked:i,loaded:o,loading:s,halfChecked:a,dragOver:l,dragOverGapTop:c,dragOverGapBottom:u,pos:d,active:h,key:p};return"props"in f||Object.defineProperty(f,"props",{get(){return Vn(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),f}function Bue(e,t){const r=new Set;return e.forEach(n=>{t.has(n)||r.add(n)}),r}function wGe(e){const{disabled:t,disableCheckbox:r,checkable:n}=e||{};return!!(t||r)||n===!1}function xGe(e,t,r,n){const i=new Set(e),o=new Set;for(let a=0;a<=r;a+=1)(t.get(a)||new Set).forEach(c=>{const{key:u,node:d,children:h=[]}=c;i.has(u)&&!n(d)&&h.filter(p=>!n(p.node)).forEach(p=>{i.add(p.key)})});const s=new Set;for(let a=r;a>=0;a-=1)(t.get(a)||new Set).forEach(c=>{const{parent:u,node:d}=c;if(n(d)||!c.parent||s.has(c.parent.key))return;if(n(c.parent.node)){s.add(u.key);return}let h=!0,p=!1;(u.children||[]).filter(f=>!n(f.node)).forEach(({key:f})=>{const g=i.has(f);h&&!g&&(h=!1),!p&&(g||o.has(f))&&(p=!0)}),h&&i.add(u.key),p&&o.add(u.key),s.add(u.key)});return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(Bue(o,i))}}function EGe(e,t,r,n,i){const o=new Set(e);let s=new Set(t);for(let l=0;l<=n;l+=1)(r.get(l)||new Set).forEach(u=>{const{key:d,node:h,children:p=[]}=u;!o.has(d)&&!s.has(d)&&!i(h)&&p.filter(f=>!i(f.node)).forEach(f=>{o.delete(f.key)})});s=new Set;const a=new Set;for(let l=n;l>=0;l-=1)(r.get(l)||new Set).forEach(u=>{const{parent:d,node:h}=u;if(i(h)||!u.parent||a.has(u.parent.key))return;if(i(u.parent.node)){a.add(d.key);return}let p=!0,f=!1;(d.children||[]).filter(g=>!i(g.node)).forEach(({key:g})=>{const m=o.has(g);p&&!m&&(p=!1),!f&&(m||s.has(g))&&(f=!0)}),p||o.delete(d.key),f&&s.add(d.key),a.add(d.key)});return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(Bue(s,o))}}function wy(e,t,r,n){const i=[];let o;n?o=n:o=wGe;const s=new Set(e.filter(u=>{const d=!!Es(r,u);return d||i.push(u),d})),a=new Map;let l=0;Object.keys(r).forEach(u=>{const d=r[u],{level:h}=d;let p=a.get(h);p||(p=new Set,a.set(h,p)),p.add(d),l=Math.max(l,h)}),Vn(!i.length,`Tree missing follow keys: ${i.slice(0,100).map(u=>`'${u}'`).join(", ")}`);let c;return t===!0?c=xGe(s,a,l,o):c=EGe(s,t.halfCheckedKeys,a,l,o),c}const TGe=e=>{const{checkboxCls:t,checkboxSize:r,lineWidth:n}=e,i=`${t}-wrapper`;return[{[`${t}-group`]:{...on(e),display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}},[i]:{...on(e),display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${i}`]:{marginInlineStart:0},[`&${i}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}},[t]:{...on(e),position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",boxSizing:"border-box",display:"block",width:r,height:r,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${ae(n)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,flex:"none",...bd(),"&:after":{boxSizing:"border-box",position:"absolute",top:`calc(${r} / 2 - ${n})`,insetInlineStart:`calc(${r} / 4 - ${n})`,display:"table",width:e.calc(r).div(14).mul(5).equal(),height:e.calc(r).div(14).mul(8).equal(),border:`${ae(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`,...bd()},[`${t}-input`]:{position:"absolute",inset:`calc(-1 * (${n}))`,zIndex:1,cursor:"pointer",opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:gc(e),"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}}},{[` ${i}:not(${i}-disabled), ${t}:not(${t}-disabled) `]:{[`&:hover ${t}`]:{borderColor:e.colorPrimary}},[`${i}:not(${i}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled)`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[`${t}-checked`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`,...bd()},[`&:not(${t}-disabled):hover`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'},"&:hover":{backgroundColor:e.colorBgContainer,borderColor:e.colorPrimary}}}},{[`${i}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate::after`]:{background:e.colorTextDisabled}}}]};function $ue(e,t){const r=$r(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return TGe(r)}const Gue=zr("Checkbox",(e,{prefixCls:t})=>[$ue(t,e)]),Vue=Q.createContext(null),RGe=(e,t)=>{const{prefixCls:r,children:n,indeterminate:i=!1,onMouseEnter:o,onMouseLeave:s,skipGroup:a=!1,disabled:l,rootClassName:c,className:u,style:d,classNames:h,styles:p,name:f,value:g,checked:m,defaultChecked:y,onChange:b,...S}=e,{getPrefixCls:x,direction:E,className:R,style:T,classNames:M,styles:D}=Fr("checkbox"),A=v.useContext(Vue),{isFormItemInput:I}=v.useContext(ua),L=v.useContext(hs),F=((A==null?void 0:A.disabled)||l)??L,[O,k]=An(y,m);let B=O;const H=Sr(re=>{k(re.target.checked),b==null||b(re),!a&&(A!=null&&A.toggleOption)&&A.toggleOption({label:n,value:g})});A&&!a&&(B=A.value.includes(g));const N=v.useRef(null),z=Pu(t,N);v.useEffect(()=>{if(!(a||!A))return A.registerValue(g),()=>{A.cancelValue(g)}},[g,a]),v.useEffect(()=>{var re;(re=N.current)!=null&&re.input&&(N.current.input.indeterminate=i)},[i]);const W=x("checkbox",r),V=ho(W),[$,K]=Gue(W,V),q={...S},X={...e,indeterminate:i,disabled:F,checked:B},[Y,oe]=Gr([M,h],[D,p],{props:X}),ee=Z(`${W}-wrapper`,{[`${W}-rtl`]:E==="rtl",[`${W}-wrapper-checked`]:B,[`${W}-wrapper-disabled`]:F,[`${W}-wrapper-in-form-item`]:I},R,u,Y.root,c,K,V,$),ne=Z(Y.icon,{[`${W}-indeterminate`]:i},UD,$),[le,he]=vue(q.onClick);return v.createElement(Nx,{component:"Checkbox",disabled:F},v.createElement("label",{className:ee,style:{...oe.root,...T,...d},onMouseEnter:o,onMouseLeave:s,onClick:le},v.createElement(mue,{...q,name:!a&&A?A.name:f,checked:B,onClick:he,onChange:H,prefixCls:W,className:ne,style:oe.icon,disabled:F,ref:z,value:g}),Tn(n)&&v.createElement("span",{className:Z(`${W}-label`,Y.label),style:oe.label},n)))},zue=v.forwardRef(RGe),PGe=v.forwardRef((e,t)=>{const{defaultValue:r,children:n,options:i=[],prefixCls:o,className:s,rootClassName:a,style:l,onChange:c,role:u="group",...d}=e,{getPrefixCls:h,direction:p}=v.useContext(ir),[f,g]=v.useState(d.value||r||[]),[m,y]=v.useState([]);v.useEffect(()=>{"value"in d&&g(d.value||[])},[d.value]);const b=v.useMemo(()=>i.map(k=>typeof k=="string"||typeof k=="number"?{label:k,value:k}:k),[i]),S=k=>{y(B=>B.filter(H=>H!==k))},x=k=>{y(B=>[].concat(Pr(B),[k]))},E=k=>{const B=f.indexOf(k.value),H=Pr(f);B===-1?H.push(k.value):H.splice(B,1),"value"in d||g(H),c==null||c(H.filter(N=>m.includes(N)).sort((N,z)=>{const W=b.findIndex($=>$.value===N),V=b.findIndex($=>$.value===z);return W-V}))},R=h("checkbox",o),T=`${R}-group`,M=ho(R),[D,A]=Gue(R,M),I=fn(d,["value","disabled"]),L=i.length?b.map(k=>v.createElement(zue,{prefixCls:R,key:k.value.toString(),disabled:"disabled"in k?k.disabled:d.disabled,value:k.value,checked:f.includes(k.value),onChange:k.onChange,className:Z(`${T}-item`,k.className),style:k.style,title:k.title,id:k.id,required:k.required},k.label)):n,F=v.useMemo(()=>({toggleOption:E,value:f,disabled:d.disabled,name:d.name,registerValue:x,cancelValue:S}),[E,f,d.disabled,d.name,x,S]),O=Z(T,{[`${T}-rtl`]:p==="rtl"},s,a,A,M,D);return v.createElement("div",{className:O,style:l,role:u,...I,ref:t},v.createElement(Vue.Provider,{value:F},L))}),Ky=zue;Ky.Group=PGe;Ky.__ANT_CHECKBOX=!0;const Hue=v.createContext({}),MGe=e=>typeof e=="number"&&!Number.isNaN(e);function Jq(e){return e==="auto"?"1 1 auto":MGe(e)?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const IGe=v.forwardRef((e,t)=>{const{getPrefixCls:r,direction:n}=v.useContext(ir),{gutter:i,wrap:o}=v.useContext(Hue),{prefixCls:s,span:a,order:l,offset:c,push:u,pull:d,className:h,children:p,flex:f,style:g,...m}=e,y=r("col",s),b=r(),[S,x]=xke(y),[E]=Jn(b,"col"),R={};let T={};pNe.forEach(A=>{let I={};const L=e[A];typeof L=="number"?I.span=L:typeof L=="object"&&(I=L||{}),delete m[A],T={...T,[`${y}-${A}-${I.span}`]:I.span!==void 0,[`${y}-${A}-order-${I.order}`]:I.order||I.order===0,[`${y}-${A}-offset-${I.offset}`]:I.offset||I.offset===0,[`${y}-${A}-push-${I.push}`]:I.push||I.push===0,[`${y}-${A}-pull-${I.pull}`]:I.pull||I.pull===0,[`${y}-rtl`]:n==="rtl"},I.flex&&(T[`${y}-${A}-flex`]=!0,R[E(`${A}-flex`)]=Jq(I.flex))});const M=Z(y,{[`${y}-${a}`]:a!==void 0,[`${y}-order-${l}`]:l,[`${y}-offset-${c}`]:c,[`${y}-push-${u}`]:u,[`${y}-pull-${d}`]:d},h,T,S,x),D={};if(i!=null&&i[0]){const A=typeof i[0]=="number"?`${i[0]/2}px`:`calc(${i[0]} / 2)`;D.paddingInline=A}return f&&(D.flex=Jq(f),o===!1&&!D.minWidth&&(D.minWidth=0)),v.createElement("div",{...m,style:{...D,...g,...R},className:M,ref:t},p)});function DGe(e,t){const r=[void 0,void 0],n=Array.isArray(e)?e:[e,void 0],i=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0,xxxl:!0};return n.forEach((o,s)=>{if(typeof o=="object"&&o!==null)for(let a=0;a{if(typeof e=="string"&&n(e),typeof e=="object")for(let o=0;o{i()},[JSON.stringify(e),t]),r}const AGe=v.forwardRef((e,t)=>{const{prefixCls:r,justify:n,align:i,className:o,style:s,children:a,gutter:l=0,wrap:c,...u}=e,{getPrefixCls:d,direction:h}=v.useContext(ir),p=qx(!0,null),f=eX(i,p),g=eX(n,p),m=d("row",r),[y,b]=wke(m),S=DGe(l,p),x=Z(m,{[`${m}-no-wrap`]:c===!1,[`${m}-${g}`]:g,[`${m}-${f}`]:f,[`${m}-rtl`]:h==="rtl"},o,y,b),E={};if(S!=null&&S[0]){const D=typeof S[0]=="number"?`${S[0]/-2}px`:`calc(${S[0]} / -2)`;E.marginInline=D}const[R,T]=S;E.rowGap=T;const M=v.useMemo(()=>({gutter:[R,T],wrap:c}),[R,T,c]);return v.createElement(Hue.Provider,{value:M},v.createElement("div",{...u,className:x,style:{...E,...s},ref:t},a))}),FGe=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},LGe=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:r,colorSplit:n,lineWidth:i,textPaddingInline:o,orientationMargin:s,verticalMarginInline:a}=e,l=`${t}-rail`;return{[t]:{...on(e),borderBlockStart:`${ae(i)} solid ${n}`,[l]:{borderBlockStart:`${ae(i)} solid ${n}`},"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:a,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${ae(i)} solid ${n}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${ae(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${ae(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${n}`,[`${l}-start, ${l}-end`]:{width:"50%",borderBlockStartColor:"inherit",borderBlockEnd:0,content:"''"}},[`&-horizontal${t}-with-text-start`]:{[`${l}-start`]:{width:`calc(${s} * 100%)`},[`${l}-end`]:{width:`calc(100% - ${s} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{[`${l}-start`]:{width:`calc(100% - ${s} * 100%)`},[`${l}-end`]:{width:`calc(${s} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:o},"&-dashed":{background:"none",borderColor:n,borderStyle:"dashed",borderWidth:`${ae(i)} 0 0`,[l]:{borderBlockStart:`${ae(i)} dashed ${n}`}},[`&-horizontal${t}-with-text${t}-dashed`]:{[`${l}-start, ${l}-end`]:{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:n,borderStyle:"dotted",borderWidth:`${ae(i)} 0 0`,[l]:{borderBlockStart:`${ae(i)} dotted ${n}`}},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:i,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`]:{[`${l}-start`]:{width:0},[`${l}-end`]:{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:r}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{[`${l}-start`]:{width:"100%"},[`${l}-end`]:{width:0},[`${t}-inner-text`]:{paddingInlineEnd:r}}}}},_Ge=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),kGe=zr("Divider",e=>{const t=$r(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[LGe(t),FGe(t)]},_Ge,{unitless:{orientationMargin:!0}}),OGe=["left","right","center","start","end"],r$t=e=>{const{getPrefixCls:t,direction:r,className:n,style:i,classNames:o,styles:s}=Fr("divider"),{prefixCls:a,type:l,orientation:c,vertical:u,titlePlacement:d,orientationMargin:h,className:p,rootClassName:f,children:g,dashed:m,variant:y="solid",plain:b,style:S,size:x,classNames:E,styles:R,...T}=e,M=t("divider",a),D=`${M}-rail`,[A,I]=kGe(M),L=Oi(x),F=!!g,O=OGe.includes(c||""),k=v.useMemo(()=>{const Y=d??(O?c:"center");return Y==="left"?r==="rtl"?"end":"start":Y==="right"?r==="rtl"?"start":"end":Y},[r,c,d,O]),B=k==="start"&&h!=null,H=k==="end"&&h!=null,[N,z]=Lx(c,u,l),W={...e,orientation:N,titlePlacement:k,size:L},[V,$]=Gr([o,E],[s,R],{props:W}),K=Z(M,n,A,I,`${M}-${N}`,{[`${M}-with-text`]:F,[`${M}-with-text-${k}`]:F,[`${M}-dashed`]:!!m,[`${M}-${y}`]:y!=="solid",[`${M}-plain`]:!!b,[`${M}-rtl`]:r==="rtl",[`${M}-no-default-orientation-margin-start`]:B,[`${M}-no-default-orientation-margin-end`]:H,[`${M}-md`]:L==="medium"||L==="middle",[`${M}-sm`]:L==="small",[D]:!g,[V.rail]:V.rail&&!g},p,f,V.root),q=v.useMemo(()=>typeof h=="number"?h:/^\d+$/.test(h)?Number(h):h,[h]),X={marginInlineStart:B?q:void 0,marginInlineEnd:H?q:void 0};return v.createElement("div",{className:K,style:{...i,...$.root,...g?{}:$.rail,...S},...T,role:"separator"},g&&!z&&v.createElement(v.Fragment,null,v.createElement("div",{className:Z(D,`${D}-start`,V.rail),style:$.rail}),v.createElement("span",{className:Z(`${M}-inner-text`,V.content),style:{...X,...$.content}},g),v.createElement("div",{className:Z(D,`${D}-end`,V.rail),style:$.rail})))};var NGe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"};function X$(){return X$=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,X$({},e,{ref:t,icon:NGe})),$Ge=v.forwardRef(BGe);var GGe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};function Y$(){return Y$=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,Y$({},e,{ref:t,icon:GGe})),zGe=v.forwardRef(VGe);function Z$(){return typeof BigInt=="function"}function Wue(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function kg(e){var t=e.trim(),r=t.startsWith("-");r&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var n=t||"0",i=n.split("."),o=i[0]||"0",s=i[1]||"0";o==="0"&&s==="0"&&(r=!1);var a=r?"-":"";return{negative:r,negativeStr:a,trimStr:n,integerStr:o,decimalStr:s,fullStr:"".concat(a).concat(n)}}function IH(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function bg(e){var t=String(e);if(IH(e)){var r=Number(t.slice(t.indexOf("e-")+2)),n=t.match(/\.(\d+)/);return n!=null&&n[1]&&(r+=n[1].length),r}return t.includes(".")&&DH(t)?t.length-t.indexOf(".")-1:0}function oA(e){var t=String(e);if(IH(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Z$()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":kg("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e})(),WGe=(function(){function e(t){if(Kd(this,e),Bn(this,"origin",""),Bn(this,"number",void 0),Bn(this,"empty",void 0),Wue(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return qd(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(r){if(this.isInvalidate())return new e(r);var n=Number(r);if(Number.isNaN(n))return this;var i=this.number+n;if(i>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(iNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(i0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":oA(this.number):this.origin}}]),e})();function jl(e){return Z$()?new HGe(e):new WGe(e)}function vP(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var i=kg(e),o=i.negativeStr,s=i.integerStr,a=i.decimalStr,l="".concat(t).concat(a),c="".concat(o).concat(s);if(r>=0){var u=Number(a[r]);if(u>=5&&!n){var d=jl(e).add("".concat(o,"0.").concat("0".repeat(r)).concat(10-u));return vP(d.toString(),t,r,n)}return r===0?c:"".concat(c).concat(t).concat(a.padEnd(r,"0").slice(0,r))}return l===".0"?c:"".concat(c).concat(l)}function UGe(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get(r,n){if(t[n])return t[n];const i=r[n];return typeof i=="function"?i.bind(r):i}}):e}function jGe(e,t){const r=v.useRef(null);function n(){try{const{selectionStart:o,selectionEnd:s,value:a}=e,l=a.substring(0,o),c=a.substring(s);r.current={start:o,end:s,value:a,beforeTxt:l,afterTxt:c}}catch{}}function i(){if(e&&r.current&&t)try{const{value:o}=e,{beforeTxt:s,afterTxt:a,start:l}=r.current;let c=o.length;if(o.startsWith(s))c=s.length;else if(o.endsWith(a))c=o.length-r.current.afterTxt.length;else{const u=s[l-1],d=o.indexOf(u,l-1);d!==-1&&(c=d+1)}e.setSelectionRange(c,c)}catch(o){Vn(!1,`Something warning of cursor restore. Please fire issue about this: ${o.message}`)}}return[n,i]}const KGe=200,qGe=600;function tX({prefixCls:e,action:t,children:r,disabled:n,className:i,style:o,onStep:s}){const a=t==="up",l=v.useRef(),c=v.useRef([]),u=()=>{clearTimeout(l.current)},d=g=>{g.preventDefault(),u(),s(a,"handler");function m(){s(a,"handler"),l.current=setTimeout(m,KGe)}l.current=setTimeout(m,qGe)};v.useEffect(()=>()=>{u(),c.current.forEach(g=>{Or.cancel(g)})},[]);const h=`${e}-action`,p=Z(h,`${h}-${t}`,{[`${h}-${t}-disabled`]:n},i),f=()=>c.current.push(Or(u));return v.createElement("span",{unselectable:"on",role:"button",onMouseUp:f,onMouseLeave:f,onMouseDown:g=>{d(g)},"aria-label":a?"Increase Value":"Decrease Value","aria-disabled":n,className:p,style:o},r||v.createElement("span",{unselectable:"on",className:`${e}-action-${t}-inner`}))}function rX(e){const t=typeof e=="number"?oA(e):kg(e).fullStr;return t.includes(".")?kg(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const XGe=(()=>{const e=v.useRef(0),t=()=>{Or.cancel(e.current)};return v.useEffect(()=>t,[]),r=>{t(),e.current=Or(()=>{r()})}});function kS(){return kS=Object.assign?Object.assign.bind():function(e){for(var t=1;te||t.isEmpty()?t.toString():t.toNumber(),iX=e=>{const t=jl(e);return t.isInvalidate()?null:t},YGe=v.forwardRef((e,t)=>{const{mode:r="input",prefixCls:n="rc-input-number",className:i,style:o,classNames:s,styles:a,min:l,max:c,step:u=1,defaultValue:d,value:h,disabled:p,readOnly:f,upHandler:g,downHandler:m,keyboard:y,changeOnWheel:b=!1,controls:S=!0,prefix:x,suffix:E,stringMode:R,parser:T,formatter:M,precision:D,decimalSeparator:A,onChange:I,onInput:L,onPressEnter:F,onStep:O,onMouseDown:k,onClick:B,onMouseUp:H,onMouseLeave:N,onMouseMove:z,onMouseEnter:W,onMouseOut:V,changeOnBlur:$=!0,...K}=e,[q,X]=v.useState(!1),Y=v.useRef(!1),oe=v.useRef(!1),ee=v.useRef(!1),ne=v.useRef(null),le=v.useRef(null);v.useImperativeHandle(t,()=>UGe(le.current,{focus:_e=>{Q4(le.current,_e)},blur:()=>{var _e;(_e=le.current)==null||_e.blur()},nativeElement:ne.current}));const[he,re]=v.useState(()=>jl(h??d));function ie(_e){h===void 0&&re(_e)}const de=v.useCallback((_e,qe)=>{if(!qe)return D>=0?D:Math.max(bg(_e),bg(u))},[D,u]),J=v.useCallback(_e=>{const qe=String(_e);if(T)return T(qe);let Re=qe;return A&&(Re=Re.replace(A,".")),Re.replace(/[^\w.-]+/g,"")},[T,A]),ue=v.useRef(""),ve=v.useCallback((_e,qe)=>{if(M)return M(_e,{userTyping:qe,input:String(ue.current)});let Re=typeof _e=="number"?oA(_e):_e;if(!qe){const it=de(Re,qe);DH(Re)&&(A||it>=0)&&(Re=vP(Re,A||".",it))}return Re},[M,de,A]),[pe,me]=v.useState(()=>{const _e=d??h;return he.isInvalidate()&&["string","number"].includes(typeof _e)?Number.isNaN(_e)?"":_e:ve(he.toString(),!1)});ue.current=pe;function Oe(_e,qe){me(ve(_e.isInvalidate()?_e.toString(!1):_e.toString(!qe),qe))}const De=v.useMemo(()=>iX(c),[c,D]),Ee=v.useMemo(()=>iX(l),[l,D]),We=v.useMemo(()=>!De||!he||he.isInvalidate()?!1:De.lessEquals(he),[De,he]),ze=v.useMemo(()=>!Ee||!he||he.isInvalidate()?!1:he.lessEquals(Ee),[Ee,he]),[mt,Nt]=jGe(le.current,q),St=_e=>De&&!_e.lessEquals(De)?De:Ee&&!Ee.lessEquals(_e)?Ee:null,Ze=_e=>!St(_e),Fe=(_e,qe)=>{let Re=_e,it=Ze(Re)||Re.isEmpty();if(!Re.isEmpty()&&!qe&&(Re=St(Re)||Re,it=!0),!f&&!p&&it){const Ve=Re.toString(),ke=de(Ve,qe);return ke>=0&&(Re=jl(vP(Ve,".",ke)),Ze(Re)||(Re=jl(vP(Ve,".",ke,!0)))),Re.equals(he)||(ie(Re),I==null||I(Re.isEmpty()?null:nX(R,Re)),h===void 0&&Oe(Re,qe)),Re}return he},tt=XGe(),Ne=_e=>{if(mt(),ue.current=_e,me(_e),!oe.current){const qe=J(_e),Re=jl(qe);Re.isNaN()||Fe(Re,!0)}L==null||L(_e),tt(()=>{let qe=_e;T||(qe=_e.replace(/。/g,".")),qe!==_e&&Ne(qe)})},rt=()=>{oe.current=!0},ot=()=>{oe.current=!1,Ne(le.current.value)},Ye=_e=>{Ne(_e.target.value)},Ae=Sr((_e,qe)=>{var ke;if(_e&&We||!_e&&ze)return;Y.current=!1;let Re=jl(ee.current?rX(u):u);_e||(Re=Re.negate());const it=(he||jl(0)).add(Re.toString()),Ve=Fe(it,!1);O==null||O(nX(R,Ve),{offset:ee.current?rX(u):u,type:_e?"up":"down",emitter:qe}),(ke=le.current)==null||ke.focus()}),nt=_e=>{const qe=jl(J(pe));let Re;qe.isNaN()?Re=Fe(he,_e):Re=Fe(qe,_e),h!==void 0?Oe(he,!1):Re.isNaN()||Oe(Re,!1)},Et=()=>{Y.current=!0},Tt=_e=>{const{key:qe,shiftKey:Re}=_e;Y.current=!0,ee.current=Re,qe==="Enter"&&(oe.current||(Y.current=!1),nt(!1),F==null||F(_e)),y!==!1&&!oe.current&&["Up","ArrowUp","Down","ArrowDown"].includes(qe)&&(Ae(qe==="Up"||qe==="ArrowUp","keyboard"),_e.preventDefault())},Ot=()=>{Y.current=!1,ee.current=!1};v.useEffect(()=>{if(b&&q){const _e=Re=>{Ae(Re.deltaY<0,"wheel"),Re.preventDefault()},qe=le.current;if(qe)return qe.addEventListener("wheel",_e,{passive:!1}),()=>qe.removeEventListener("wheel",_e)}});const Wt=()=>{$&&nt(!1),X(!1),Y.current=!1},at=_e=>{le.current&&_e.target!==le.current&&(le.current.focus(),_e.preventDefault()),k==null||k(_e)};sP(()=>{he.isInvalidate()||Oe(he,!1)},[D,M]),sP(()=>{const _e=jl(h);re(_e);const qe=jl(J(pe));(!_e.equals(qe)||!Y.current||M)&&Oe(_e,Y.current)},[h]),sP(()=>{M&&Nt()},[pe]);const lt={prefixCls:n,onStep:Ae,className:s==null?void 0:s.action,style:a==null?void 0:a.action},Ut=v.createElement(tX,kS({},lt,{action:"up",disabled:We}),g),cr=v.createElement(tX,kS({},lt,{action:"down",disabled:ze}),m);return v.createElement("div",{ref:ne,className:Z(n,`${n}-mode-${r}`,i,s==null?void 0:s.root,{[`${n}-focused`]:q,[`${n}-disabled`]:p,[`${n}-readonly`]:f,[`${n}-not-a-number`]:he.isNaN(),[`${n}-out-of-range`]:!he.isInvalidate()&&!Ze(he)}),style:{...a==null?void 0:a.root,...o},onMouseDown:at,onMouseUp:H,onMouseLeave:N,onMouseMove:z,onMouseEnter:W,onMouseOut:V,onClick:B,onFocus:()=>{X(!0)},onBlur:Wt,onKeyDown:Tt,onKeyUp:Ot,onCompositionStart:rt,onCompositionEnd:ot,onBeforeInput:Et},r==="spinner"&&S&&cr,x!==void 0&&v.createElement("div",{className:Z(`${n}-prefix`,s==null?void 0:s.prefix),style:a==null?void 0:a.prefix},x),v.createElement("input",kS({autoComplete:"off",role:"spinbutton","aria-valuemin":l,"aria-valuemax":c,"aria-valuenow":he.isInvalidate()?null:he.toString(),step:u,ref:le,className:Z(`${n}-input`,s==null?void 0:s.input),style:a==null?void 0:a.input,value:pe,onChange:Ye,disabled:p,readOnly:f},K)),E!==void 0&&v.createElement("div",{className:Z(`${n}-suffix`,s==null?void 0:s.suffix),style:a==null?void 0:a.suffix},E),r==="spinner"&&S&&Ut,r==="input"&&S&&v.createElement("div",{className:Z(`${n}-actions`,s==null?void 0:s.actions),style:a==null?void 0:a.actions},Ut,cr))}),ZGe=e=>{const{componentCls:t,borderRadius:r,paddingSM:n,colorBorder:i,paddingXS:o,fontSizeLG:s,fontSizeSM:a,borderRadiusLG:l,borderRadiusSM:c,colorBgContainerDisabled:u,lineWidth:d,antCls:h}=e,[p,f]=Jn(h,"space");return{[t]:[{display:"inline-flex",alignItems:"center",gap:0,paddingInline:n,margin:0,borderWidth:d,borderStyle:"solid",borderRadius:r,"&:hover":{zIndex:0},[`&${t}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:s,borderRadius:l},"&-small":{paddingInline:o,borderRadius:c,fontSize:a},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0},"&-compact-item:not(:first-child)":{borderInlineStartWidth:0}},{[p("addon-border-color")]:i,[p("addon-background")]:u,[p("addon-border-color-outlined")]:i,[p("addon-background-filled")]:u,borderColor:f("addon-border-color"),background:f("addon-background"),"&-variant-outlined":{[p("addon-border-color")]:f("addon-border-color-outlined")},"&-variant-filled":{[p("addon-border-color")]:"transparent",[p("addon-background")]:f("addon-background-filled"),[`&${t}-disabled`]:{[p("addon-border-color")]:i,[p("addon-background")]:u}},"&-variant-borderless":{border:"none",background:"transparent"},"&-variant-underlined":{border:"none",background:"transparent"}},{"&-status-error":{[p("addon-border-color-outlined")]:e.colorError,[p("addon-background-filled")]:e.colorErrorBg,color:e.colorError},"&-status-warning":{[p("addon-border-color-outlined")]:e.colorWarning,[p("addon-background-filled")]:e.colorWarningBg,color:e.colorWarning}}]}},QGe=zr(["Space","Addon"],e=>[ZGe(e),$x(e,{focus:!1})]),Uue=Q.forwardRef((e,t)=>{const{className:r,children:n,style:i,prefixCls:o,variant:s="outlined",disabled:a,status:l,...c}=e,{getPrefixCls:u,direction:d}=Q.useContext(ir),h=u("space-addon",o),[p,f]=QGe(h),{compactItemClassnames:g,compactSize:m}=Wp(h,d),y=Wy(h,l),b=Z(h,p,g,f,`${h}-variant-${s}`,y,{[`${h}-${m}`]:m,[`${h}-disabled`]:a},r);return Q.createElement("div",{ref:t,className:b,style:i,...c},n)}),JGe=e=>{const t=e.handleVisible??"auto",r=e.controlHeightSM-e.lineWidth*2;return{...OC(e),controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:t,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new cn(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:t===!0?1:0,handleVisibleWidth:t===!0?r:0}},eVe=e=>{const{componentCls:t,lineWidth:r,lineType:n,borderRadius:i,inputFontSizeSM:o,inputFontSizeLG:s,colorError:a,paddingInlineSM:l,paddingBlockSM:c,paddingBlockLG:u,paddingInlineLG:d,colorIcon:h,motionDurationMid:p,handleHoverColor:f,handleOpacity:g,paddingInline:m,paddingBlock:y,handleBg:b,handleActiveBg:S,inputAffixPadding:x,borderRadiusSM:E,controlWidth:R,handleBorderColor:T,filledHandleBg:M,lineHeightLG:D,antCls:A}=e,I=`${ae(r)} ${n} ${T}`,[L,F]=Jn(A,"input-number");return[{[t]:{...on(e),...iA(e),[L("input-padding-block")]:ae(y),[L("input-padding-inline")]:ae(m),display:"inline-flex",width:R,margin:0,paddingBlock:0,borderRadius:i,...Cue(e,{[`${t}-actions`]:{background:b,[`${t}-action-down`]:{borderBlockStart:I}}}),...wue(e,{[`${t}-actions`]:{background:M,[`${t}-action-down`]:{borderBlockStart:I}},"&:focus-within":{[`${t}-actions`]:{background:b}}}),...Eue(e,{[`${t}-actions`]:{background:b,[`${t}-action-down`]:{borderBlockStart:I}}}),...bue(e),[`&${t}-borderless`]:{paddingBlock:0,[L("input-padding-block")]:ae(e.calc(y).add(r).equal())},[`&${t}-borderless${t}-sm`]:{paddingBlock:0,[L("input-padding-block")]:ae(e.calc(c).add(r).equal())},[`&${t}-borderless${t}-lg`]:{paddingBlock:0,[L("input-padding-block")]:ae(e.calc(u).add(r).equal())},"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},[`&${t}-out-of-range`]:{[`${t}-input`]:{color:a}},[`${t}-input`]:{...on(e),width:"100%",paddingBlock:F("input-padding-block"),textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${p} linear`,appearance:"textfield",fontSize:"inherit",lineHeight:"inherit",...Tue(e.colorTextPlaceholder),'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&-disabled ${t}-input`]:{cursor:"not-allowed",color:e.colorTextDisabled}}},{[t]:{[` ${t}-action-up-disabled, ${t}-action-down-disabled `]:{cursor:"not-allowed"},[`${t}-action`]:{...Dx(),userSelect:"none",overflow:"hidden",fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",transition:`all ${p} linear`,"&:active":{background:S},"&:hover":{color:f}},"&-mode-input":{overflow:"hidden",[`${t}-actions`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:g,height:"100%",borderRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${p}`,overflow:"hidden",[`${t}-action`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",marginInlineEnd:0,fontSize:e.handleFontSize}},[`&:hover ${t}-actions, &-focused ${t}-actions`]:{width:e.handleWidth,opacity:1},[`${t}-action`]:{color:h,height:"50%",borderInlineStart:I,"&:hover":{height:"60%"}},[`&${t}-disabled, &${t}-readonly`]:{[`${t}-actions`]:{display:"none"}}},[`&${t}-mode-spinner`]:{padding:0,width:"auto",[`${t}-action`]:{flex:"none",paddingInline:F("input-padding-inline"),"&-up":{borderInlineStart:I},"&-down":{borderInlineEnd:I}},[`${t}-input`]:{textAlign:"center",paddingInline:F("input-padding-inline")}}}},{[t]:{"&-lg":{[L("input-padding-block")]:ae(u),[L("input-padding-inline")]:ae(d),paddingBlock:0,fontSize:s,lineHeight:D},"&-sm":{[L("input-padding-block")]:ae(c),[L("input-padding-inline")]:ae(l),paddingBlock:0,fontSize:o,borderRadius:E}}},{[t]:{[`${t}-prefix, ${t}-suffix`]:{display:"flex",flex:"none",alignItems:"center",alignSelf:"center",pointerEvents:"none"},[`${t}-prefix`]:{marginInlineEnd:x},[`${t}-suffix`]:{height:"100%",marginInlineStart:x,transition:`margin ${p}`},[`&:hover:not(${t}-without-controls)`]:{[`${t}-suffix`]:{marginInlineEnd:e.handleWidth}}}}]},tVe=e=>{const{componentCls:t,antCls:r}=e;return{[`${t}-addon`]:{[`&:has(${r}-select)`]:{border:0,padding:0}}}},rVe=zr("InputNumber",e=>{const t=$r(e,kC(e));return[eVe(t),tVe(t),$x(t)]},JGe,{unitless:{handleOpacity:!0},resetFont:!1}),nVe=v.forwardRef((e,t)=>{const r=v.useRef(null);v.useImperativeHandle(t,()=>r.current);const{rootClassName:n,size:i,disabled:o,prefixCls:s,addonBefore:a,addonAfter:l,prefix:c,suffix:u,bordered:d,readOnly:h,status:p,controls:f=!0,variant:g,className:m,style:y,classNames:b,styles:S,mode:x,...E}=e,{direction:R,className:T,style:M,styles:D,classNames:A}=Fr("inputNumber"),I=v.useContext(hs),L=o??I,F=v.useMemo(()=>!f||L||h?!1:f,[f,L,h]),{compactSize:O,compactItemClassnames:k}=Wp(s,R);let B=x==="spinner"?v.createElement(Mue,null):v.createElement(zGe,null),H=x==="spinner"?v.createElement($Ge,null):v.createElement(ZD,null);const N=typeof F=="boolean"?F:void 0;typeof F=="object"&&(B=F.upIcon||B,H=F.downIcon||H);const{hasFeedback:z,isFormItemInput:W,feedbackIcon:V}=v.useContext(ua),$=Oi(ne=>i??O??ne),[K,q]=Kx("inputNumber",g,d),X=z&&v.createElement(v.Fragment,null,V),Y={...e,size:$,disabled:L,controls:F},[oe,ee]=Gr([A,b],[D,S],{props:Y});return v.createElement(YGe,{ref:r,mode:x,disabled:L,className:Z(m,n,oe.root,T,k,Wy(s,p,z),{[`${s}-${K}`]:q,[`${s}-lg`]:$==="large",[`${s}-sm`]:$==="small",[`${s}-rtl`]:R==="rtl",[`${s}-in-form-item`]:W,[`${s}-without-controls`]:!F}),style:{...ee.root,...M,...y},upHandler:B,downHandler:H,prefixCls:s,readOnly:h,controls:N,prefix:c,suffix:X||u,classNames:oe,styles:ee,...E})}),jue=v.forwardRef((e,t)=>{const{addonBefore:r,addonAfter:n,prefixCls:i,className:o,status:s,rootClassName:a,...l}=e,{getPrefixCls:c}=Fr("inputNumber"),u=c("input-number",i),{status:d}=v.useContext(ua),h=jx(d,s),p=ho(u),[f,g]=rVe(u,p),m=r||n,y=v.createElement(nVe,{ref:t,...l,prefixCls:u,status:h,className:Z(g,p,f,o),rootClassName:m?void 0:a});if(m){const b=E=>E?v.createElement(Uue,{className:Z(`${u}-addon`,g,f),variant:e.variant,disabled:e.disabled,status:h},v.createElement(Rp,{form:!0},E)):null,S=b(r),x=b(n);return v.createElement(z4,{rootClassName:a},S,y,x)}return y}),iVe=jue,oVe=e=>v.createElement(Iu,{theme:{components:{InputNumber:{handleVisible:!0}}}},v.createElement(jue,{...e}));iVe._InternalPanelDoNotUseOrYouWillBeFired=oVe;function sVe(e){return!!(e.addonBefore||e.addonAfter)}function aVe(e){return!!(e.prefix||e.suffix||e.allowClear)}function oX(e,t,r){const n=t.cloneNode(!0),i=Object.create(e,{target:{value:n},currentTarget:{value:n}});return n.value=r,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd),n.setSelectionRange=(...o)=>{t.setSelectionRange(...o)},i}function RM(e,t,r,n){if(!r)return;let i=t;if(t.type==="click"){i=oX(t,e,""),r(i);return}if(e.type!=="file"&&n!==void 0){i=oX(t,e,n),r(i);return}r(i)}function Q$(){return Q$=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var z,W,V;const{inputElement:r,children:n,prefixCls:i,prefix:o,suffix:s,addonBefore:a,addonAfter:l,className:c,style:u,disabled:d,readOnly:h,focused:p,triggerFocus:f,allowClear:g,value:m,handleReset:y,hidden:b,classes:S,classNames:x,dataAttrs:E,styles:R,components:T,onClear:M}=e,D=n??r,A=(T==null?void 0:T.affixWrapper)||"span",I=(T==null?void 0:T.groupWrapper)||"span",L=(T==null?void 0:T.wrapper)||"span",F=(T==null?void 0:T.groupAddon)||"span",O=v.useRef(null),k=$=>{var K;(K=O.current)!=null&&K.contains($.target)&&(f==null||f())},B=aVe(e);let H=v.cloneElement(D,{value:m,className:Z((z=D.props)==null?void 0:z.className,!B&&(x==null?void 0:x.variant))||null});const N=v.useRef(null);if(Q.useImperativeHandle(t,()=>({nativeElement:N.current||O.current})),B){let $=null;if(g){const Y=!d&&!h&&m,oe=`${i}-clear-icon`,ee=typeof g=="object"&&(g!=null&&g.clearIcon)?g.clearIcon:"✖";$=Q.createElement("button",{type:"button",tabIndex:-1,onClick:ne=>{y==null||y(ne),M==null||M()},onMouseDown:ne=>ne.preventDefault(),className:Z(oe,{[`${oe}-hidden`]:!Y,[`${oe}-has-suffix`]:!!s})},ee)}const K=`${i}-affix-wrapper`,q=Z(K,{[`${i}-disabled`]:d,[`${K}-disabled`]:d,[`${K}-focused`]:p,[`${K}-readonly`]:h,[`${K}-input-with-clear-btn`]:s&&g&&m},S==null?void 0:S.affixWrapper,x==null?void 0:x.affixWrapper,x==null?void 0:x.variant),X=(s||g)&&Q.createElement("span",{className:Z(`${i}-suffix`,x==null?void 0:x.suffix),style:R==null?void 0:R.suffix},$,s);H=Q.createElement(A,Q$({className:q,style:R==null?void 0:R.affixWrapper,onClick:k},E==null?void 0:E.affixWrapper,{ref:O}),o&&Q.createElement("span",{className:Z(`${i}-prefix`,x==null?void 0:x.prefix),style:R==null?void 0:R.prefix},o),H,X)}if(sVe(e)){const $=`${i}-group`,K=`${$}-addon`,q=`${$}-wrapper`,X=Z(`${i}-wrapper`,$,S==null?void 0:S.wrapper,x==null?void 0:x.wrapper),Y=Z(q,{[`${q}-disabled`]:d},S==null?void 0:S.group,x==null?void 0:x.groupWrapper);H=Q.createElement(I,{className:Y,ref:N},Q.createElement(L,{className:X},a&&Q.createElement(F,{className:K},a),H,l&&Q.createElement(F,{className:K},l)))}return Q.cloneElement(H,{className:Z((W=H.props)==null?void 0:W.className,c)||null,style:{...(V=H.props)==null?void 0:V.style,...u},hidden:b})});function que(e,t){return v.useMemo(()=>{let r={};t&&(r.show=typeof t=="object"&&t.formatter?t.formatter:!!t),r={...r,...e};const{show:n,...i}=r;return{...i,show:!!n,showFormatter:typeof n=="function"?n:void 0,strategy:i.strategy||(o=>o.length)}},[e,t])}function PM(){return PM=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{autoComplete:r,onChange:n,onFocus:i,onBlur:o,onPressEnter:s,onKeyDown:a,onKeyUp:l,prefixCls:c="rc-input",disabled:u,htmlSize:d,className:h,maxLength:p,suffix:f,showCount:g,count:m,type:y="text",classes:b,classNames:S,styles:x,onCompositionStart:E,onCompositionEnd:R,...T}=e,[M,D]=v.useState(!1),A=v.useRef(!1),I=v.useRef(!1),L=v.useRef(null),F=v.useRef(null),O=J=>{L.current&&Q4(L.current,J)},[k,B]=An(e.defaultValue,e.value),H=k==null?"":String(k),[N,z]=v.useState(null),W=que(m,g),V=W.max||p,$=W.strategy(H),K=!!V&&$>V;v.useImperativeHandle(t,()=>{var J;return{focus:O,blur:()=>{var ue;(ue=L.current)==null||ue.blur()},setSelectionRange:(ue,ve,pe)=>{var me;(me=L.current)==null||me.setSelectionRange(ue,ve,pe)},select:()=>{var ue;(ue=L.current)==null||ue.select()},input:L.current,nativeElement:((J=F.current)==null?void 0:J.nativeElement)||L.current}}),v.useEffect(()=>{I.current&&(I.current=!1),D(J=>J&&u?!1:J)},[u]);const q=(J,ue,ve)=>{var me,Oe;let pe=ue;if(!A.current&&W.exceedFormatter&&W.max&&W.strategy(ue)>W.max)pe=W.exceedFormatter(ue,{max:W.max}),ue!==pe&&z([((me=L.current)==null?void 0:me.selectionStart)||0,((Oe=L.current)==null?void 0:Oe.selectionEnd)||0]);else if(ve.source==="compositionEnd")return;B(pe),L.current&&RM(L.current,J,n,pe)};v.useEffect(()=>{var J;N&&((J=L.current)==null||J.setSelectionRange(...N))},[N]);const X=J=>{q(J,J.target.value,{source:"change"})},Y=J=>{A.current=!1,q(J,J.currentTarget.value,{source:"compositionEnd"}),R==null||R(J)},oe=J=>{s&&J.key==="Enter"&&!I.current&&!J.nativeEvent.isComposing&&(I.current=!0,s(J)),a==null||a(J)},ee=J=>{J.key==="Enter"&&(I.current=!1),l==null||l(J)},ne=J=>{D(!0),i==null||i(J)},le=J=>{I.current&&(I.current=!1),D(!1),o==null||o(J)},he=J=>{B(""),O(),L.current&&RM(L.current,J,n)},re=K&&`${c}-out-of-range`,ie=()=>{const J=fn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return Q.createElement("input",PM({autoComplete:r},J,{onChange:X,onFocus:ne,onBlur:le,onKeyDown:oe,onKeyUp:ee,className:Z(c,{[`${c}-disabled`]:u},S==null?void 0:S.input),style:x==null?void 0:x.input,ref:L,size:d,type:y,onCompositionStart:ue=>{A.current=!0,E==null||E(ue)},onCompositionEnd:Y}))},de=()=>{const J=Number(V)>0;if(f||W.show){const ue=W.showFormatter?W.showFormatter({value:H,count:$,maxLength:V}):`${$}${J?` / ${V}`:""}`;return Q.createElement(Q.Fragment,null,W.show&&Q.createElement("span",{className:Z(`${c}-show-count-suffix`,{[`${c}-show-count-has-suffix`]:!!f},S==null?void 0:S.count),style:{...x==null?void 0:x.count}},ue),f)}return null};return Q.createElement(Kue,PM({},T,{prefixCls:c,className:Z(h,re),handleReset:he,value:H,focused:M,triggerFocus:O,suffix:de(),disabled:u,classes:b,classNames:S,styles:x,ref:F}),ie())}),Xue=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:Q.createElement(AC,null)}),t};function Yue(e,t){const r=v.useRef([]),n=()=>{r.current.push(setTimeout(()=>{var i,o,s,a;(i=e.current)!=null&&i.input&&((o=e.current)==null?void 0:o.input.getAttribute("type"))==="password"&&((s=e.current)!=null&&s.input.hasAttribute("value"))&&((a=e.current)==null||a.input.removeAttribute("value"))}))};return v.useEffect(()=>(t&&n(),()=>r.current.forEach(i=>{i&&clearTimeout(i)})),[]),n}function cVe(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}const Jx=v.forwardRef((e,t)=>{const{prefixCls:r,bordered:n=!0,status:i,size:o,disabled:s,onBlur:a,onFocus:l,suffix:c,allowClear:u,addonAfter:d,addonBefore:h,className:p,style:f,styles:g,rootClassName:m,onChange:y,classNames:b,variant:S,...x}=e,{getPrefixCls:E,direction:R,allowClear:T,autoComplete:M,className:D,style:A,classNames:I,styles:L}=Fr("input"),F=E("input",r),O=v.useRef(null),k=ho(F),[B,H]=Rue(F,m);Pue(F,k);const{compactSize:N,compactItemClassnames:z}=Wp(F,R),W=Oi(me=>o??N??me),V=Q.useContext(hs),$=s??V,K={...e,size:W,disabled:$},[q,X]=Gr([I,b],[L,g],{props:K}),{status:Y,hasFeedback:oe,feedbackIcon:ee}=v.useContext(ua),ne=jx(Y,i),le=cVe(e)||!!oe;v.useRef(le);const he=Yue(O,!0),re=me=>{he(),a==null||a(me)},ie=me=>{he(),l==null||l(me)},de=me=>{he(),y==null||y(me)},J=(oe||c)&&Q.createElement(Q.Fragment,null,c,oe&&ee),ue=Xue(u??T),[ve,pe]=Kx("input",S,n);return Q.createElement(lVe,{ref:Wo(t,O),prefixCls:F,autoComplete:M,...x,disabled:$,onBlur:re,onFocus:ie,style:{...X.root,...A,...f},styles:X,suffix:J,allowClear:ue,className:Z(p,m,H,k,z,D,q.root),onChange:de,addonBefore:h&&Q.createElement(Rp,{form:!0,space:!0},h),addonAfter:d&&Q.createElement(Rp,{form:!0,space:!0},d),classNames:{...q,input:Z({[`${F}-sm`]:W==="small",[`${F}-lg`]:W==="large",[`${F}-rtl`]:R==="rtl"},q.input,B),variant:Z({[`${F}-${ve}`]:pe},Wy(F,ne)),affixWrapper:Z({[`${F}-affix-wrapper-sm`]:W==="small",[`${F}-affix-wrapper-lg`]:W==="large",[`${F}-affix-wrapper-rtl`]:R==="rtl"},B),wrapper:Z({[`${F}-group-rtl`]:R==="rtl"},B),groupWrapper:Z({[`${F}-group-wrapper-sm`]:W==="small",[`${F}-group-wrapper-lg`]:W==="large",[`${F}-group-wrapper-rtl`]:R==="rtl",[`${F}-group-wrapper-${ve}`]:pe},Wy(`${F}-group-wrapper`,ne,oe),B)}})}),uVe={xxxl:4,xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},AH=Q.createContext(null),dVe=e=>Li(e).map(t=>({...t==null?void 0:t.props,key:t.key}));function hVe(e,t,r){const n=v.useMemo(()=>t||dVe(r),[t,r]);return v.useMemo(()=>n.map(({span:o,...s})=>o==="filled"?{...s,filled:!0}:{...s,span:typeof o=="number"?o:_ce(e,o)}),[n,e])}function pVe(e,t){let r=[],n=[],i=!1,o=0;return e.filter(s=>s).forEach(s=>{const{filled:a,...l}=s;if(a){n.push(l),r.push(n),n=[],o=0;return}const c=t-o;o+=s.span||1,o>=t?(o>t?(i=!0,n.push({...l,span:c})):n.push(l),r.push(n),n=[],o=0):n.push(l)}),n.length>0&&r.push(n),r=r.map(s=>{const a=s.reduce((l,c)=>l+(c.span||1),0);if(a{const[r,n]=v.useMemo(()=>pVe(t,e),[t,e]);return r},gVe=e=>e.children,s2=e=>{const{itemPrefixCls:t,component:r,span:n,className:i,style:o,labelStyle:s,contentStyle:a,bordered:l,label:c,content:u,colon:d,type:h,styles:p,classNames:f}=e,g=r,{classNames:m,styles:y}=Q.useContext(AH),[b,S]=Gr([m,f],[y,p],{props:e}),x={...s,...S.label},E={...a,...S.content};return l?Q.createElement(g,{colSpan:n,style:o,className:Z(i,{[`${t}-item-${h}`]:h==="label"||h==="content",[b.label]:b.label&&h==="label",[b.content]:b.content&&h==="content"})},Tn(c)&&Q.createElement("span",{style:x},c),Tn(u)&&Q.createElement("span",{style:E},u)):Q.createElement(g,{className:Z(`${t}-item`,i),style:o,colSpan:n},Q.createElement("div",{className:`${t}-item-container`},Tn(c)&&Q.createElement("span",{style:x,className:Z(`${t}-item-label`,b.label,{[`${t}-item-no-colon`]:!d})},c),Tn(u)&&Q.createElement("span",{style:E,className:Z(`${t}-item-content`,b.content)},u)))};function a2(e,{colon:t,prefixCls:r,bordered:n},{component:i,type:o,showLabel:s,showContent:a,labelStyle:l,contentStyle:c,styles:u}){return e.map(({label:d,children:h,prefixCls:p=r,className:f,style:g,labelStyle:m,contentStyle:y,span:b=1,key:S,styles:x,classNames:E},R)=>typeof i=="string"?v.createElement(s2,{key:`${o}-${S||R}`,className:f,style:g,classNames:E,styles:{label:{...l,...u==null?void 0:u.label,...m,...x==null?void 0:x.label},content:{...c,...u==null?void 0:u.content,...y,...x==null?void 0:x.content}},span:b,colon:t,component:i,itemPrefixCls:p,bordered:n,label:s?d:null,content:a?h:null,type:o}):[v.createElement(s2,{key:`label-${S||R}`,className:f,style:{...l,...u==null?void 0:u.label,...g,...m,...x==null?void 0:x.label},span:1,colon:t,component:i[0],itemPrefixCls:p,bordered:n,label:d,type:"label"}),v.createElement(s2,{key:`content-${S||R}`,className:f,style:{...c,...u==null?void 0:u.content,...g,...y,...x==null?void 0:x.content},span:b*2-1,component:i[1],itemPrefixCls:p,bordered:n,content:h,type:"content"})])}const mVe=e=>{const t=v.useContext(AH),{prefixCls:r,vertical:n,row:i,index:o,bordered:s}=e;return n?v.createElement(v.Fragment,null,v.createElement("tr",{key:`label-${o}`,className:`${r}-row`},a2(i,e,{component:"th",type:"label",showLabel:!0,...t})),v.createElement("tr",{key:`content-${o}`,className:`${r}-row`},a2(i,e,{component:"td",type:"content",showContent:!0,...t}))):v.createElement("tr",{key:o,className:`${r}-row`},a2(i,e,{component:s?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0,...t}))},vVe=e=>{const{componentCls:t,labelBg:r}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`${t}-row`]:{borderBottom:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:first-child":{"> th:first-child, > td:first-child":{borderStartStartRadius:e.borderRadiusLG}},"&:last-child":{borderBottom:"none","> th:first-child, > td:first-child":{borderEndStartRadius:e.borderRadiusLG}},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${ae(e.padding)} ${ae(e.paddingLG)}`,borderInlineEnd:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:r,"&::after":{display:"none"}}}},[`&${t}-medium`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${ae(e.paddingSM)} ${ae(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${ae(e.paddingXS)} ${ae(e.padding)}`}}}}}},yVe=e=>{const{componentCls:t,extraColor:r,itemPaddingBottom:n,itemPaddingEnd:i,colonMarginRight:o,colonMarginLeft:s,titleMarginBottom:a}=e;return{[t]:{...on(e),...vVe(e),"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:a},[`${t}-title`]:{...Ps,flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG},[`${t}-extra`]:{marginInlineStart:"auto",color:r,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},[`${t}-row`]:{"> th, > td":{paddingBottom:n,paddingInlineEnd:i},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:"none","> th, > td":{paddingBottom:0}}},[`${t}-item-label`]:{color:e.labelColor,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${ae(s)} ${ae(o)}`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline",minWidth:"1em"}}},"&-medium":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}}}},CVe=e=>({labelBg:e.colorFillAlter,labelColor:e.colorTextTertiary,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,itemPaddingEnd:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText}),bVe=zr("Descriptions",e=>{const t=$r(e,{});return yVe(t)},CVe),SVe=e=>{const{prefixCls:t,title:r,extra:n,column:i,colon:o=!0,bordered:s,layout:a,children:l,className:c,rootClassName:u,style:d,size:h,labelStyle:p,contentStyle:f,styles:g,items:m,classNames:y,...b}=e,{getPrefixCls:S,direction:x,className:E,style:R,classNames:T,styles:M}=Fr("descriptions"),D=S("descriptions",t),A=qx(),I=v.useMemo(()=>typeof i=="number"?i:_ce(A,{...uVe,...i})??3,[A,i]),L=hVe(A,m,l),F=Oi(h),O=fVe(I,L),[k,B]=bVe(D),H={...e,column:I,items:L,size:F},[N,z]=Gr([T,y],[M,g],{props:H}),W=v.useMemo(()=>({labelStyle:p,contentStyle:f,styles:{label:z.label,content:z.content},classNames:{label:N.label,content:N.content}}),[p,f,z.label,z.content,N.label,N.content]);return v.createElement(AH.Provider,{value:W},v.createElement("div",{className:Z(D,E,N.root,{[`${D}-medium`]:F==="medium"||F==="middle",[`${D}-small`]:F==="small",[`${D}-bordered`]:!!s,[`${D}-rtl`]:x==="rtl"},c,u,k,B),style:{...R,...z.root,...d},...b},(r||n)&&v.createElement("div",{className:Z(`${D}-header`,N.header),style:z.header},r&&v.createElement("div",{className:Z(`${D}-title`,N.title),style:z.title},r),n&&v.createElement("div",{className:Z(`${D}-extra`,N.extra),style:z.extra},n)),v.createElement("div",{className:`${D}-view`},v.createElement("table",null,v.createElement("tbody",null,O.map((V,$)=>v.createElement(mVe,{key:$,index:$,colon:o,prefixCls:D,vertical:a==="vertical",bordered:s,row:V})))))))};SVe.Item=gVe;const sX=v.createContext(null),Zue=v.createContext({});function J$(){return J$=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{prefixCls:t,className:r,containerRef:n,...i}=e,{panel:o}=v.useContext(Zue),s=Pu(o,n);return v.createElement("div",J$({className:Z(`${t}-section`,r),role:"dialog",ref:s},ei(e,{aria:!0}),{"aria-modal":"true"},i))};function xVe(e){const{prefixCls:t,direction:r,className:n,style:i,maxSize:o,containerRef:s,currentSize:a,onResize:l,onResizeEnd:c,onResizeStart:u}=e,[d,h]=v.useState(!1),[p,f]=v.useState(0),[g,m]=v.useState(0),y=r==="left"||r==="right",b=Sr(R=>{R.preventDefault(),R.stopPropagation(),h(!0),f(y?R.clientX:R.clientY);let T;if(typeof a=="number")T=a;else if(s!=null&&s.current){const M=s.current.getBoundingClientRect();T=y?M.width:M.height}m(T),u==null||u(T)}),S=Sr(R=>{if(!d)return;let M=(y?R.clientX:R.clientY)-p;(r==="right"||r==="bottom")&&(M=-M);let D=g+M;D<0&&(D=0),o&&D>o&&(D=o),l==null||l(D)}),x=v.useCallback(()=>{if(d&&(h(!1),s!=null&&s.current)){const R=s.current.getBoundingClientRect(),T=y?R.width:R.height;c==null||c(T)}},[d,s,c,y]);return v.useEffect(()=>{if(d)return document.addEventListener("mousemove",S),document.addEventListener("mouseup",x),()=>{document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",x)}},[d,S,x]),{dragElementProps:{className:Z(`${t}-dragger`,`${t}-dragger-${r}`,{[`${t}-dragger-dragging`]:d,[`${t}-dragger-horizontal`]:y,[`${t}-dragger-vertical`]:!y},n),style:i,onMouseDown:b},isDragging:d}}function l2(e){if(typeof e=="string"){const t=Number(e.replace(/px$/i,""));if(parseFloat(e)===t&&Vn(!1,"Invalid value type of `width` or `height` which should be number type instead."),!Number.isNaN(t))return t}return e}function EVe(e,t,r,n,i){const o=n??i!==!1,[s]=zle(t&&o,e);return Q.useEffect(()=>{var a;t&&r===!0&&((a=e())==null||a.focus({preventScroll:!0}))},[t]),s}function sy(){return sy=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{prefixCls:r,open:n,placement:i,inline:o,push:s,forceRender:a,autoFocus:l,focusTrap:c,classNames:u,rootClassName:d,rootStyle:h,zIndex:p,className:f,id:g,style:m,motion:y,width:b,height:S,size:x,maxSize:E,children:R,mask:T,maskClosable:M,maskMotion:D,maskClassName:A,maskStyle:I,afterOpenChange:L,onClose:F,onMouseEnter:O,onMouseOver:k,onMouseLeave:B,onClick:H,onKeyDown:N,onKeyUp:z,styles:W,drawerRender:V,resizable:$,defaultSize:K}=e,q=v.useRef(null);v.useImperativeHandle(t,()=>q.current);const X=EVe(()=>q.current,n,l,c,T),[Y,oe]=v.useState(!1),ee=v.useContext(sX);let ne;typeof s=="boolean"?ne=s?{}:{distance:0}:ne=s||{};const le=(ne==null?void 0:ne.distance)??(ee==null?void 0:ee.pushDistance)??180,he=v.useMemo(()=>({pushDistance:le,push:()=>{oe(!0)},pull:()=>{oe(!1)}}),[le]);v.useEffect(()=>{var Ze,Fe;n?(Ze=ee==null?void 0:ee.push)==null||Ze.call(ee):(Fe=ee==null?void 0:ee.pull)==null||Fe.call(ee)},[n]),v.useEffect(()=>()=>{var Ze;(Ze=ee==null?void 0:ee.pull)==null||Ze.call(ee)},[]);const re=v.createElement(gu,sy({key:"mask"},D,{visible:T&&n}),({className:Ze,style:Fe},tt)=>v.createElement("div",{className:Z(`${r}-mask`,Ze,u==null?void 0:u.mask,A),style:{...Fe,...I,...W==null?void 0:W.mask},onClick:M&&n?F:void 0,ref:tt})),ie=typeof y=="function"?y(i):y,[de,J]=v.useState(),ue=i==="left"||i==="right",ve=v.useMemo(()=>l2(x??(ue?b:S)??de??K??(ue?378:void 0)),[x,b,S,K,ue,de]),pe=v.useMemo(()=>{const Ze={};if(Y&&le)switch(i){case"top":Ze.transform=`translateY(${le}px)`;break;case"bottom":Ze.transform=`translateY(${-le}px)`;break;case"left":Ze.transform=`translateX(${le}px)`;break;default:Ze.transform=`translateX(${-le}px)`;break}return ue?Ze.width=l2(ve):Ze.height=l2(ve),Ze},[Y,le,i,ue,ve]),me=v.useRef(null),Oe=!!$,De=typeof $=="object"&&$||{},Ee=Sr(Ze=>{var Fe;J(Ze),(Fe=De.onResize)==null||Fe.call(De,Ze)}),{dragElementProps:We,isDragging:ze}=xVe({prefixCls:`${r}-resizable`,direction:i,className:u==null?void 0:u.dragger,style:W==null?void 0:W.dragger,maxSize:E,containerRef:me,currentSize:ve,onResize:Ee,onResizeStart:De.onResizeStart,onResizeEnd:De.onResizeEnd}),mt={onMouseEnter:O,onMouseOver:k,onMouseLeave:B,onClick:H,onKeyDown:N,onKeyUp:z,onFocus:Ze=>{X(Ze.target)}},Nt=v.createElement(gu,sy({key:"panel"},ie,{visible:n,forceRender:a,onVisibleChanged:L,removeOnLeave:!1,leavedClassName:`${r}-content-wrapper-hidden`}),({className:Ze,style:Fe},tt)=>{const Ne=v.createElement(wVe,sy({id:g,containerRef:tt,prefixCls:r,className:Z(f,u==null?void 0:u.section),style:{...m,...W==null?void 0:W.section}},ei(e,{aria:!0}),mt),R);return v.createElement("div",sy({ref:me,className:Z(`${r}-content-wrapper`,ze&&`${r}-content-wrapper-dragging`,u==null?void 0:u.wrapper,!ze&&Ze),style:{...Fe,...pe,...W==null?void 0:W.wrapper}},ei(e,{data:!0})),Oe&&v.createElement("div",We),V?V(Ne):Ne)}),St={...h};return p&&(St.zIndex=p),v.createElement(sX.Provider,{value:he},v.createElement("div",{className:Z(r,`${r}-${i}`,d,{[`${r}-open`]:n,[`${r}-inline`]:o}),style:St,tabIndex:-1,ref:q},re,Nt))},RVe=v.forwardRef(TVe),PVe=e=>{const{open:t=!1,prefixCls:r="rc-drawer",placement:n="right",autoFocus:i=!0,keyboard:o=!0,width:s,height:a,size:l,maxSize:c,mask:u=!0,maskClosable:d=!0,getContainer:h,forceRender:p,afterOpenChange:f,destroyOnHidden:g,onMouseEnter:m,onMouseOver:y,onMouseLeave:b,onClick:S,onKeyDown:x,onKeyUp:E,onClose:R,resizable:T,defaultSize:M,focusTriggerAfterClose:D,panelRef:A}=e,[I,L]=v.useState(!1),[F,O]=v.useState(!1);jr(()=>{O(!0)},[]);const k=F?t:!1,B=v.useRef(null),H=v.useRef(null);jr(()=>{k&&(H.current=document.activeElement)},[k]);const N=K=>{var q,X;L(K),f==null||f(K),!K&&D!==!1&&H.current&&!((q=B.current)!=null&&q.contains(H.current))&&((X=H.current)==null||X.focus({preventScroll:!0}))},z=v.useMemo(()=>({panel:A}),[A]);if(!p&&!I&&!k&&g)return null;const V={...e,open:k,prefixCls:r,placement:n,autoFocus:i,keyboard:o,width:s,height:a,size:l,maxSize:c,defaultSize:M,mask:u,maskClosable:d,inline:h===!1,afterOpenChange:N,ref:B,resizable:T,...{onMouseEnter:m,onMouseOver:y,onMouseLeave:b,onClick:S,onKeyDown:x,onKeyUp:E}},$=({top:K,event:q})=>{K&&o&&(q.stopPropagation(),R==null||R(q))};return v.createElement(Zue.Provider,{value:z},v.createElement(kx,{open:k||p||I,autoDestroy:!1,getContainer:h,autoLock:u&&(k||I),onEsc:$},v.createElement(RVe,V)))},Que=e=>{const{prefixCls:t,ariaId:r,title:n,footer:i,extra:o,closable:s,loading:a,onClose:l,headerStyle:c,bodyStyle:u,footerStyle:d,children:h,classNames:p,styles:f}=e,g=Fr("drawer"),{classNames:m,styles:y,closable:b}=g,[S,x]=Gr([m,p],[y,f],{props:{...e,closable:s??b}}),E=v.useMemo(()=>{const I=s??b;if(I!==!1)return typeof I=="object"&&(I==null?void 0:I.placement)==="end"?"end":"start"},[s,b]),R=v.useCallback(I=>v.createElement("button",{type:"button",onClick:l,className:Z(`${t}-close`,{[`${t}-close-${E}`]:E==="end"},S.close),style:x.close},I),[l,t,E,S.close,x.close]),[T,M]=B4(Vy(e),Vy(g),{closable:!0,closeIconRender:R}),D=()=>!n&&!T?null:v.createElement("div",{style:{...x.header,...c},className:Z(`${t}-header`,S.header,{[`${t}-header-close-only`]:T&&!n&&!o})},v.createElement("div",{className:`${t}-header-title`},E==="start"&&M,n&&v.createElement("div",{className:Z(`${t}-title`,S.title),style:x.title,id:r},n)),o&&v.createElement("div",{className:Z(`${t}-extra`,S.extra),style:x.extra},o),E==="end"&&M),A=()=>i?v.createElement("div",{className:Z(`${t}-footer`,S.footer),style:{...x.footer,...d}},i):null;return v.createElement(v.Fragment,null,D(),v.createElement("div",{className:Z(`${t}-body`,S.body),style:{...x.body,...u}},a?v.createElement(Up,{active:!0,title:!1,paragraph:{rows:5},className:`${t}-body-skeleton`}):h),A())},MVe=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},Jue=(e,t)=>({"&-enter, &-appear":{...e,"&-active":t},"&-leave":{...t,"&-active":e}}),ede=(e,t)=>({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}},...Jue({opacity:e},{opacity:1})}),IVe=(e,t)=>[ede(.7,t),Jue({transform:MVe(e)},{transform:"none"})],DVe=e=>{const{componentCls:t,motionDurationSlow:r}=e;return{[t]:{[`${t}-mask-motion`]:ede(0,r),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((n,i)=>({...n,[`&-${i}`]:IVe(i,r)}),{})}}},AVe=e=>{const{borderRadiusSM:t,componentCls:r,zIndexPopup:n,colorBgMask:i,colorBgElevated:o,motionDurationSlow:s,motionDurationMid:a,paddingXS:l,padding:c,paddingLG:u,fontSizeLG:d,lineHeightLG:h,lineWidth:p,lineType:f,colorSplit:g,marginXS:m,colorIcon:y,colorIconHover:b,colorBgTextHover:S,colorBgTextActive:x,colorText:E,fontWeightStrong:R,footerPaddingBlock:T,footerPaddingInline:M,draggerSize:D,calc:A}=e,I=`${r}-content-wrapper`,L=`${r}-resizable-dragger`;return{[r]:{position:"fixed",inset:0,zIndex:n,pointerEvents:"none",color:E,"&-pure":{position:"relative",background:o,display:"flex",flexDirection:"column",pointerEvents:"auto",[`&${r}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${r}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${r}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${r}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${r}-mask`]:{position:"absolute",inset:0,zIndex:n,background:i,pointerEvents:"auto",[`&${r}-mask-blur`]:{backdropFilter:"blur(4px)"}},[I]:{position:"absolute",zIndex:n,maxWidth:"100vw",transition:`all ${s}`,"&-hidden":{display:"none"}},[`&-left > ${I}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${I}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${I}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${I}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${r}-section`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:o,pointerEvents:"auto"},[`${r}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${ae(c)} ${ae(u)}`,fontSize:d,lineHeight:h,borderBottom:`${ae(p)} ${f} ${g}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${r}-extra`]:{flex:"none"},[`${r}-close`]:{display:"inline-flex",width:A(d).add(l).equal(),height:A(d).add(l).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",color:y,fontWeight:R,fontSize:d,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${a}`,textRendering:"auto",[`&${r}-close-end`]:{marginInlineStart:m},[`&:not(${r}-close-end)`]:{marginInlineEnd:m},"&:hover":{color:b,backgroundColor:S,textDecoration:"none"},"&:active":{backgroundColor:x},...wl(e)},[`${r}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:d,lineHeight:h},[`${r}-body`]:{flex:1,minWidth:0,minHeight:0,padding:u,overflow:"auto",[`${r}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${r}-footer`]:{flexShrink:0,padding:`${ae(T)} ${ae(M)}`,borderTop:`${ae(p)} ${f} ${g}`},[L]:{position:"absolute",zIndex:1,backgroundColor:"transparent",userSelect:"none",pointerEvents:"auto","&:hover":{backgroundColor:e.colorPrimary,opacity:.2},"&-dragging":{backgroundColor:e.colorPrimary,opacity:.3}},[`${L}-left`]:{top:0,bottom:0,right:{_skip_check_:!0,value:0},width:D,cursor:"col-resize"},[`${L}-right`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},width:D,cursor:"col-resize"},[`${L}-top`]:{insetInline:0,bottom:0,height:D,cursor:"row-resize"},[`${L}-bottom`]:{insetInline:0,top:0,height:D,cursor:"row-resize"},[`${I}-dragging`]:{userSelect:"none",transition:"none",willChange:"width, height",[`${r}-content`]:{pointerEvents:"none"},[`${r}-section`]:{pointerEvents:"none"}},"&-rtl":{direction:"rtl"}}}},FVe=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding,draggerSize:4}),tde=zr("Drawer",e=>{const t=$r(e,{});return[AVe(t),DVe(t)]},FVe),LVe={distance:180},aX=378,lX={motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},_Ve=e=>{const{rootClassName:t,size:r,defaultSize:n=aX,height:i,width:o,mask:s,push:a=LVe,open:l,afterOpenChange:c,onClose:u,prefixCls:d,getContainer:h,panelRef:p=null,style:f,className:g,resizable:m,"aria-labelledby":y,focusable:b,maskClosable:S,maskStyle:x,drawerStyle:E,contentWrapperStyle:R,destroyOnClose:T,destroyOnHidden:M,...D}=e,{placement:A}=D,I=xc(),L=D.title?I:void 0,{getPopupContainer:F,getPrefixCls:O,direction:k,className:B,style:H,classNames:N,styles:z,mask:W}=Fr("drawer"),V=O("drawer",d),[$,K]=tde(V),q=h===void 0&&F?()=>F(document.body):h,X=v.useMemo(()=>typeof r=="number"?r:r==="large"?736:r==="default"?aX:typeof r=="string"?/^\d+(\.\d+)?$/.test(r)?Number(r):r:!A||A==="left"||A==="right"?o:i,[r,A,o,i]),Y={motionName:mu(V,"mask-motion"),...lX},oe=We=>({motionName:mu(V,`panel-motion-${We}`),...lX}),ee=Qle(),ne=Wo(p,ee),[le,he]=Hp("Drawer",D.zIndex),[re,ie,de]=ele(s,W,V,S),J=Xle(b,q!==!1&&re),{classNames:ue,styles:ve,rootStyle:pe}=D,me={...e,zIndex:le,panelRef:p,mask:re,maskClosable:de,defaultSize:n,push:a,focusable:J},[Oe,De]=Gr([N,ue],[z,ve],{props:me}),Ee=Z({"no-mask":!re,[`${V}-rtl`]:k==="rtl"},t,$,K,Oe.root);return v.createElement(Rp,{form:!0,space:!0},v.createElement(_x.Provider,{value:he},v.createElement(PVe,{prefixCls:V,onClose:u,maskMotion:Y,motion:oe,...D,classNames:{mask:Z(Oe.mask,ie.mask),section:Oe.section,wrapper:Oe.wrapper,dragger:Oe.dragger},styles:{mask:{...De.mask,...x},section:{...De.section,...E},wrapper:{...De.wrapper,...R},dragger:De.dragger},open:l,mask:re,maskClosable:de,push:a,size:X,defaultSize:n,style:{...H,...f},rootStyle:{...pe,...De.root},className:Z(B,g),rootClassName:Ee,getContainer:q,afterOpenChange:c,panelRef:ne,zIndex:le,...m?{resizable:m}:{},"aria-labelledby":y??L,destroyOnHidden:M??T,focusTriggerAfterClose:J.focusTriggerAfterClose,focusTrap:J.trap},v.createElement(Que,{prefixCls:V,size:r,...D,ariaId:L,onClose:u}))))},kVe=e=>{const{prefixCls:t,style:r,className:n,placement:i="right",...o}=e,{getPrefixCls:s}=v.useContext(ir),a=s("drawer",t),[l,c]=tde(a),u=Z(a,`${a}-pure`,`${a}-${i}`,l,c,n);return v.createElement("div",{className:u,style:r},v.createElement(Que,{prefixCls:a,...o}))};_Ve._InternalPanelDoNotUseOrYouWillBeFired=kVe;function MM(e){return["small","middle","medium","large"].includes(e)}function cX(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const rde=Q.createContext({latestIndex:0}),OVe=rde.Provider,NVe=e=>{const{className:t,prefix:r,index:n,children:i,separator:o,style:s,classNames:a,styles:l}=e,{latestIndex:c}=v.useContext(rde);return Tn(i)?v.createElement(v.Fragment,null,v.createElement("div",{className:t,style:s},i),n{const{componentCls:t,antCls:r}=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 > ${r}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},$Ve=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-medium, &-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-medium, &-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},GVe=zr("Space",e=>{const t=$r(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[BVe(t),$Ve(t)]},()=>({}),{resetStyle:!1}),VVe=v.forwardRef((e,t)=>{const{getPrefixCls:r,direction:n,size:i,className:o,style:s,classNames:a,styles:l}=Fr("space"),{size:c=i??"small",align:u,className:d,rootClassName:h,children:p,direction:f,orientation:g,prefixCls:m,split:y,separator:b,style:S,vertical:x,wrap:E=!1,classNames:R,styles:T,...M}=e,[D,A]=Array.isArray(c)?c:[c,c],I=MM(A),L=MM(D),F=cX(A),O=cX(D),k=Li(p,{keepEmpty:!0}),[B,H]=Lx(g,x,f),N=u===void 0&&!H?"center":u,z=b??y,W=r("space",m),[V,$]=GVe(W),K={...e,size:c,orientation:B,align:N},[q,X]=Gr([a,R],[l,T],{props:K}),Y=Z(W,o,V,`${W}-${B}`,{[`${W}-rtl`]:n==="rtl",[`${W}-align-${N}`]:N,[`${W}-gap-row-${A}`]:I,[`${W}-gap-col-${D}`]:L},d,h,$,q.root),oe=Z(`${W}-item`,q.item),ee=k.map((he,re)=>{const ie=(he==null?void 0:he.key)||`${oe}-${re}`;return v.createElement(NVe,{prefix:W,classNames:q,styles:X,className:oe,key:ie,index:re,separator:z,style:X.item},he)}),ne=v.useMemo(()=>({latestIndex:k.reduce((re,ie,de)=>Tn(ie)?de:re,0)}),[k]);if(k.length===0)return null;const le={};return E&&(le.flexWrap="wrap"),!L&&O&&(le.columnGap=D),!I&&F&&(le.rowGap=A),v.createElement("div",{ref:t,className:Y,style:{...le,...X.root,...s,...S},...M},v.createElement(OVe,{value:ne},ee))}),e1=VVe;e1.Compact=z4;e1.Addon=Uue;const nde=e=>{const{getPopupContainer:t,getPrefixCls:r,direction:n}=v.useContext(ir),{prefixCls:i,type:o="default",danger:s,disabled:a,loading:l,onClick:c,htmlType:u,children:d,className:h,menu:p,arrow:f,autoFocus:g,trigger:m,align:y,open:b,onOpenChange:S,placement:x,getPopupContainer:E,href:R,icon:T=v.createElement(wH,null),title:M,buttonsRender:D=le=>le,mouseEnterDelay:A,mouseLeaveDelay:I,overlayClassName:L,overlayStyle:F,destroyOnHidden:O,destroyPopupOnHide:k,dropdownRender:B,popupRender:H,...N}=e,z=r("dropdown",i),W=`${z}-button`,$={menu:p,arrow:f,autoFocus:g,align:y,disabled:a,trigger:a?[]:m,onOpenChange:S,getPopupContainer:E||t,mouseEnterDelay:A,mouseLeaveDelay:I,classNames:{root:L},styles:{root:F},destroyOnHidden:O,popupRender:H||B},{compactSize:K,compactItemClassnames:q}=Wp(z,n),X=Z(W,q,h);"destroyPopupOnHide"in e&&($.destroyPopupOnHide=k),"open"in e&&($.open=b),"placement"in e?$.placement=x:$.placement=n==="rtl"?"bottomLeft":"bottomRight";const Y=v.createElement(ca,{type:o,danger:s,disabled:a,loading:l,onClick:c,htmlType:u,href:R,title:M},d),oe=v.createElement(ca,{type:o,danger:s,icon:T}),[ee,ne]=D([Y,oe]);return v.createElement(e1.Compact,{className:X,size:K,block:!0,...N},ee,v.createElement(Yx,{...$},ne))};nde.__ANT_BUTTON=!0;const FH=Yx;FH.Button=nde;const ide=["wrap","nowrap","wrap-reverse"],ode=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],sde=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],zVe=(e,t)=>{const r=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${r}`]:r&&ide.includes(r)}},HVe=(e,t)=>{const r={};return sde.forEach(n=>{r[`${e}-align-${n}`]=t.align===n}),r[`${e}-align-stretch`]=!t.align&&!!t.vertical,r},WVe=(e,t)=>{const r={};return ode.forEach(n=>{r[`${e}-justify-${n}`]=t.justify===n}),r},UVe=(e,t)=>Z({...zVe(e,t),...HVe(e,t),...WVe(e,t)}),jVe=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},KVe=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-medium, &-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},qVe=e=>{const{componentCls:t}=e,r={};return ide.forEach(n=>{r[`${t}-wrap-${n}`]={flexWrap:n}}),r},XVe=e=>{const{componentCls:t}=e,r={};return sde.forEach(n=>{r[`${t}-align-${n}`]={alignItems:n}}),r},YVe=e=>{const{componentCls:t}=e,r={};return ode.forEach(n=>{r[`${t}-justify-${n}`]={justifyContent:n}}),r},ZVe=()=>({}),QVe=zr("Flex",e=>{const{paddingXS:t,padding:r,paddingLG:n}=e,i=$r(e,{flexGapSM:t,flexGap:r,flexGapLG:n});return[jVe(i),KVe(i),qVe(i),XVe(i),YVe(i)]},ZVe,{resetStyle:!1}),JVe=Q.forwardRef((e,t)=>{const{prefixCls:r,rootClassName:n,className:i,style:o,flex:s,gap:a,vertical:l,orientation:c,component:u="div",children:d,...h}=e,{flex:p,direction:f,getPrefixCls:g}=Q.useContext(ir),m=g("flex",r),[y,b]=QVe(m),[,S]=Lx(c,l??(p==null?void 0:p.vertical)),x=Z(i,n,p==null?void 0:p.className,m,y,b,UVe(m,{...e,vertical:S}),{[`${m}-rtl`]:f==="rtl",[`${m}-gap-${a}`]:MM(a),[`${m}-vertical`]:S}),E={...p==null?void 0:p.style,...o};return Tn(s)&&(E.flex=s),Tn(a)&&!MM(a)&&(E.gap=a),Q.createElement(u,{ref:t,className:x,style:E,...fn(h,["justify","wrap","align"])},d)}),IM=Q.createContext(null);var eze={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};function eG(){return eG=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,eG({},e,{ref:t,icon:eze})),ade=v.forwardRef(tze),rze=(e,t)=>Tn(e)?typeof e=="object"&&!v.isValidElement(e)?{...t,...e}:{...t,title:e}:null,nze=e=>{const{componentCls:t,floatButtonSize:r,iconCls:n,antCls:i,floatButtonIconSize:o}=e,[s,a]=Jn(i,"float-btn"),l=`${t}-badge`,c=Math.SQRT2,u=(c-1)/c,d=e.calc(e.borderRadius).mul(u).equal(),h=e.calc(e.controlHeight).div(2).mul(u).equal();return{[t]:[{[s("size")]:ae(r)},{flexDirection:"column",margin:0,padding:`${ae(e.paddingXXS)} 0`,width:a("size"),minHeight:a("size"),height:"auto",wordBreak:"break-word",whiteSpace:"normal",gap:e.calc(e.paddingXXS).div(2).equal(),"&-rtl":{direction:"rtl"},[`&${t}-individual`]:{position:"fixed",zIndex:e.zIndexPopupBase,insetInlineEnd:e.floatButtonInsetInlineEnd,bottom:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary},[`&${t}-pure`]:{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${t}-icon`]:{lineHeight:1},[`&${t}-icon-only`]:{[n]:{fontSize:o}},[`${t}-content`]:{fontSize:e.fontSizeSM},[l]:{position:"absolute",top:0,insetInlineEnd:0,[`&:not(${l}-dot)`]:{transform:"translate(50%, -50%)"}},[`&-rtl ${l}:not(${l}-dot)`]:{transform:"translate(-50%, -50%)"},"&-square":{[`${l}-dot`]:{marginTop:d,marginInlineEnd:d}},"&-circle":{[l]:{marginTop:h,marginInlineEnd:h}}}]}},ize=e=>{const{componentCls:t,antCls:r,floatButtonSize:n,padding:i}=e,o=`${t}-group`,s=`${o}-list`,[a,l]=Jn(r,"float-btn");return{[o]:[{[a("list-transform-start")]:`translate(0,${ae(n)})`,[a("list-trigger-offset")]:`calc(${ae(n)} + ${ae(i)})`},{...on(e),position:"fixed",zIndex:e.zIndexPopupBase,insetInlineEnd:e.floatButtonInsetInlineEnd,bottom:e.floatButtonInsetBlockEnd,gap:i,"&-rtl":{direction:"rtl"},[`&${t}-pure`]:{position:"relative",inset:"auto"},[t]:{position:"relative",inset:"auto"}},{[`&:not(${o}-individual) ${s}`]:{boxShadow:e.boxShadowSecondary},[`&${o}-individual ${s}`]:{gap:i},[`&-menu-mode ${s}`]:{position:"absolute"},[s]:{borderRadius:e.borderRadiusLG,"&-motion":{transition:`all ${e.motionDurationSlow}`,"&-enter, &-appear":{opacity:0,transform:l("list-transform-start"),"&-active":{opacity:1,transform:"translate(0, 0)"}},"&-leave":{"&-active":{opacity:0,transform:l("list-transform-start")}}}},"&-top":{[s]:{bottom:l("list-trigger-offset")}},"&-bottom":{[s]:{[a("list-transform-start")]:`translate(0, calc(${ae(n)} * -1))`,top:l("list-trigger-offset")}},"&-left":{[s]:{[a("list-transform-start")]:`translate(${ae(n)}, 0)`,right:l("list-trigger-offset")}},"&-right":{[s]:{[a("list-transform-start")]:`translate(calc(${ae(n)} * -1), 0)`,left:l("list-trigger-offset")}}}]}},oze=()=>({}),lde=zr("FloatButton",e=>{const{controlHeightLG:t,marginXXL:r,marginLG:n,fontSizeIcon:i,calc:o}=e,s=$r(e,{floatButtonIconSize:o(i).mul(1.5).equal(),floatButtonSize:t,floatButtonInsetBlockEnd:r,floatButtonInsetInlineEnd:n});return[nze(s),ize(s),qD(e)]},oze,{order:-998}),sA="float-btn",sze=Q.forwardRef((e,t)=>{const{prefixCls:r,className:n,rootClassName:i,style:o,type:s="default",shape:a="circle",icon:l,description:c,content:u,tooltip:d,badge:h={},classNames:p,styles:f,...g}=e,{getPrefixCls:m,direction:y}=Q.useContext(ir),b=Q.useContext(IM),S=m(sA,r),x=ho(S),{shape:E,individual:R,classNames:T,styles:M}=b||{},D=E||a,A=R??!0,I=u??c,L={...e,type:s,shape:D},[F,O]=lde(S,x),k=Q.useMemo(()=>({icon:`${S}-icon`,content:`${S}-content`}),[S]),[B,H]=Gr([k,T,p],[M,f],{props:L}),N=!I&&!l?Q.createElement(ade,null):l,[z]=Hp("FloatButton",o==null?void 0:o.zIndex),W={...o,zIndex:z},V=fn(h,["title","children","status","text"]),$="badge"in e&&Q.createElement(Uce,{...V,className:Z(V.className,`${S}-badge`,{[`${S}-badge-dot`]:V.dot})}),K=rze(d);let q=Q.createElement(ca,{...g,ref:t,className:Z(F,O,x,S,n,i,`${S}-${s}`,`${S}-${D}`,{[`${S}-rtl`]:y==="rtl",[`${S}-individual`]:A,[`${S}-icon-only`]:!I}),classNames:B,styles:H,style:W,shape:D,type:s,size:"large",icon:N,_skipSemantic:!0},I,$);return K&&(q=Q.createElement(El,{...K},q)),q}),NC=sze,aze=Q.createElement(NNe,null),cde=Q.forwardRef((e,t)=>{var A;const{backTopIcon:r}=Fr("floatButton"),{prefixCls:n,className:i,type:o="default",shape:s="circle",visibilityHeight:a=400,icon:l,target:c,onClick:u,duration:d=450,...h}=e,p=l??r??aze,[f,g]=v.useState(a===0),m=Q.useRef(null);Q.useImperativeHandle(t,()=>({nativeElement:m.current}));const y=()=>{var I;return((I=m.current)==null?void 0:I.ownerDocument)||window},b=FIe(I=>{const L=ile(I.target);g(L>=a)});v.useEffect(()=>{const L=(c||y)();return b({target:L}),L==null||L.addEventListener("scroll",b),()=>{b.cancel(),L==null||L.removeEventListener("scroll",b)}},[c]);const S=I=>{ole(0,{getContainer:c||y,duration:d}),u==null||u(I)},{getPrefixCls:x}=v.useContext(ir),E=x(sA,n),R=x(),M=((A=v.useContext(IM))==null?void 0:A.shape)||s,D={prefixCls:E,icon:p,type:o,shape:M,...h};return Q.createElement(Mu,{visible:f,motionName:`${R}-fade`},({className:I},L)=>Q.createElement(NC,{ref:Wo(m,L),...D,onClick:S,className:Z(i,I)}))}),ude=e=>{const{prefixCls:t,className:r,style:n,classNames:i,styles:o,rootClassName:s,shape:a="circle",type:l="default",placement:c,icon:u=Q.createElement(ade,null),closeIcon:d,trigger:h,children:p,onOpenChange:f,open:g,onClick:m,...y}=e,{direction:b,getPrefixCls:S,closeIcon:x,classNames:E,styles:R,className:T,style:M}=Fr("floatButtonGroup"),D=d??x??Q.createElement(Xd,null),A=S(sA,t),I=ho(A),[L,F]=lde(A,I),O=`${A}-group`,k=h&&["click","hover"].includes(h),[B]=Hp("FloatButton",n==null?void 0:n.zIndex),H=Q.useRef(null),N=["top","left","right","bottom"].includes(c)?c:"top",[z,W]=An(!1,g),V=h==="hover",$=h==="click",K=Sr(ue=>{z!==ue&&(W(ue),f==null||f(ue))}),q=()=>{V&&K(!0)},X=()=>{V&&K(!1)},Y=ue=>{$&&K(!z),m==null||m(ue)};Q.useEffect(()=>{if($){const ue=ve=>{var pe;(pe=H.current)!=null&&pe.contains(ve.target)||K(!1)};return document.addEventListener("click",ue,{capture:!0}),()=>document.removeEventListener("click",ue,{capture:!0})}},[$]);const oe=a==="circle",ee={...e,shape:a,type:l,placement:N},[ne,le]=Gr([E,i],[R,o],{props:ee}),he=Q.useMemo(()=>({shape:a,individual:oe,classNames:{root:ne.item,icon:ne.itemIcon,content:ne.itemContent},styles:{root:le.item,icon:le.itemIcon,content:le.itemContent}}),[a,oe,ne,le]),re=Q.useMemo(()=>({...he,individual:!0,classNames:{root:ne.trigger,icon:ne.triggerIcon,content:ne.triggerContent},styles:{root:le.trigger,icon:le.triggerIcon,content:le.triggerContent}}),[he,ne,le]);let ie;const de=`${O}-list`,J=ue=>{const ve=N==="top"||N==="bottom",pe={className:Z(de,ne.list,ue),style:le.list};return oe?ie=Q.createElement(JVe,{vertical:ve,...pe},p):ie=Q.createElement(e1.Compact,{vertical:ve,...pe},p),ie};return Q.createElement(IM.Provider,{value:he},Q.createElement("div",{className:Z(O,L,F,I,T,ne.root,r,s,{[`${O}-rtl`]:b==="rtl",[`${O}-individual`]:oe,[`${O}-${N}`]:k,[`${O}-menu-mode`]:k}),style:{...M,zIndex:B,...le.root,...n},ref:H,onMouseEnter:q,onMouseLeave:X},k?Q.createElement(Mu,{visible:z,motionName:`${de}-motion`},({className:ue})=>J(ue)):J(),k&&Q.createElement(IM.Provider,{value:re},Q.createElement(NC,{type:l,icon:z?D:u,"aria-label":e["aria-label"],className:`${O}-trigger`,onClick:Y,...y}))))},uX=({backTop:e,...t})=>e?v.createElement(cde,{...t,visibilityHeight:0}):v.createElement(NC,{...t}),lze=({className:e,items:t,classNames:r,styles:n,prefixCls:i,...o})=>{const{getPrefixCls:s}=v.useContext(ir),l=`${s(sA,i)}-pure`;return t?v.createElement(ude,{className:Z(e,l),classNames:r,styles:n,...o},t.map((c,u)=>v.createElement(uX,{key:u,...c}))):v.createElement(uX,{className:Z(e,l),classNames:r,styles:n,...o})};NC.BackTop=cde;NC.Group=ude;NC._InternalPanelDoNotUseOrYouWillBeFired=lze;const cze=e=>{const{getPrefixCls:t,direction:r}=v.useContext(ir),{prefixCls:n,className:i}=e,o=t("input-group",n),s=t("input"),[a,l]=Pue(s),c=Z(o,l,{[`${o}-lg`]:e.size==="large",[`${o}-sm`]:e.size==="small",[`${o}-compact`]:e.compact,[`${o}-rtl`]:r==="rtl"},a,i),u=v.useContext(ua),d=v.useMemo(()=>({...u,isFormItemInput:!1}),[u]);return v.createElement(ua.Provider,{value:d},v.createElement(e1.Compact,{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))},uze=e=>{const{componentCls:t,paddingXS:r}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:r,[`${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:e.colorText},[`${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}}}},dze=zr(["Input","OTP"],e=>{const t=$r(e,kC(e));return uze(t)},OC),hze=v.forwardRef((e,t)=>{const{className:r,value:n,onChange:i,onActiveChange:o,index:s,mask:a,onFocus:l,...c}=e,{getPrefixCls:u}=v.useContext(ir),d=u("otp"),h=typeof a=="string"?a:n,p=v.useRef(null);v.useImperativeHandle(t,()=>p.current);const f=b=>{i(s,b.target.value)},g=()=>{Or(()=>{var S;const b=(S=p.current)==null?void 0:S.input;document.activeElement===b&&b&&b.select()})},m=b=>{l==null||l(b),g()},y=b=>{const{key:S,ctrlKey:x,metaKey:E}=b;S==="ArrowLeft"?o(s-1):S==="ArrowRight"?o(s+1):S==="z"&&(x||E)?b.preventDefault():S==="Backspace"&&!n&&o(s-1),g()};return v.createElement("span",{className:`${d}-input-wrapper`,role:"presentation"},a&&n!==""&&n!==void 0&&v.createElement("span",{className:`${d}-mask-icon`,"aria-hidden":"true"},h),v.createElement(Jx,{"aria-label":`OTP Input ${s+1}`,type:a===!0?"password":"text",...c,ref:p,value:n,onInput:f,onFocus:m,onKeyDown:y,onMouseDown:g,onMouseUp:g,className:Z(r,{[`${d}-mask-input`]:a})}))});function hT(e){return(e||"").split("")}const pze=e=>{const{index:t,prefixCls:r,separator:n,className:i,style:o}=e,s=typeof n=="function"?n(t):n;return s?v.createElement("span",{className:Z(`${r}-separator`,i),style:o},s):null},fze=v.forwardRef((e,t)=>{const{prefixCls:r,length:n=6,size:i,defaultValue:o,value:s,onChange:a,formatter:l,separator:c,variant:u,disabled:d,status:h,autoFocus:p,mask:f,type:g,autoComplete:m,onInput:y,onFocus:b,inputMode:S,classNames:x,styles:E,className:R,style:T,...M}=e,{classNames:D,styles:A,getPrefixCls:I,direction:L,style:F,className:O}=Fr("otp"),k=I("otp",r),B={...e,length:n},[H,N]=Gr([D,x],[A,E],{props:B}),z=ei(M,{aria:!0,data:!0,attr:!0}),[W,V]=dze(k),$=Oi(ve=>i??ve),K=v.useContext(ua),q=jx(K.status,h),X=v.useMemo(()=>({...K,status:q,hasFeedback:!1,feedbackIcon:null}),[K,q]),Y=v.useRef(null),oe=v.useRef({});v.useImperativeHandle(t,()=>({focus:()=>{var ve;(ve=oe.current[0])==null||ve.focus()},blur:()=>{var ve;for(let pe=0;pel?l(ve):ve,[ne,le]=v.useState(()=>hT(ee(o||"")));v.useEffect(()=>{s!==void 0&&le(hT(s))},[s]);const he=Sr(ve=>{le(ve),y&&y(ve),a&&ve.length===n&&ve.every(pe=>pe)&&ve.some((pe,me)=>ne[me]!==pe)&&a(ve.join(""))}),re=Sr((ve,pe)=>{let me=Pr(ne);for(let De=0;De=0&&!me[De];De-=1)me.pop();const Oe=ee(me.map(De=>De||" ").join(""));return me=hT(Oe).map((De,Ee)=>De===" "&&!me[Ee]?me[Ee]:De),me}),ie=(ve,pe)=>{var De;const me=re(ve,pe),Oe=Math.min(ve+pe.length,n-1);Oe!==ve&&me[ve]!==void 0&&((De=oe.current[Oe])==null||De.focus()),he(me)},de=ve=>{var pe;(pe=oe.current[ve])==null||pe.focus()},J=(ve,pe)=>{var me,Oe,De;for(let Ee=0;Ee{const me=`otp-${pe}`,Oe=ne[pe]||"";return v.createElement(v.Fragment,{key:me},v.createElement(hze,{ref:De=>{oe.current[pe]=De},index:pe,size:$,htmlSize:1,className:Z(H.input,`${k}-input`),style:N.input,onChange:ie,value:Oe,onActiveChange:de,autoFocus:pe===0&&p,onFocus:De=>J(De,pe),...ue}),pev.createElement(mr,tG({},e,{ref:t,icon:gze})),vze=v.forwardRef(mze);var yze={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"};function rG(){return rG=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,rG({},e,{ref:t,icon:yze})),dde=v.forwardRef(Cze),bze=e=>e?v.createElement(dde,null):v.createElement(vze,null),Sze={click:"onClick",hover:"onMouseOver"},wze=v.forwardRef((e,t)=>{const{disabled:r,action:n="click",visibilityToggle:i=!0,iconRender:o=bze,suffix:s}=e,a=v.useContext(hs),l=r??a,c=typeof i=="object"&&i.visible!==void 0,[u,d]=v.useState(()=>c?i.visible:!1),h=v.useRef(null);v.useEffect(()=>{c&&d(i.visible)},[c,i]);const p=Yue(h),f=()=>{var L;if(l)return;u&&p();const I=!u;d(I),typeof i=="object"&&((L=i.onVisibleChange)==null||L.call(i,I))},g=I=>{const L=Sze[n]||"",F=o(u),O={[L]:f,className:`${I}-icon`,key:"passwordIcon",onMouseDown:k=>{k.preventDefault()},onMouseUp:k=>{k.preventDefault()}};return v.cloneElement(v.isValidElement(F)?F:v.createElement("span",null,F),O)},{className:m,prefixCls:y,inputPrefixCls:b,size:S,...x}=e,{getPrefixCls:E}=v.useContext(ir),R=E("input",b),T=E("input-password",y),M=i&&g(T),D=Z(T,m,{[`${T}-${S}`]:!!S}),A={...fn(x,["suffix","iconRender","visibilityToggle"]),type:u?"text":"password",className:D,prefixCls:R,suffix:v.createElement(v.Fragment,null,M,s)};return S&&(A.size=S),v.createElement(Jx,{ref:Wo(t,h),...A})}),xze=e=>{const{componentCls:t}=e,r=`${t}-btn`;return{[t]:{width:"100%",[r]:{"&-filled":{background:e.colorFillTertiary,"&:not(:disabled)":{"&:hover":{background:e.colorFillSecondary},"&:active":{background:e.colorFill}}}}}}},Eze=zr(["Input","Search"],xze),Tze=v.forwardRef((e,t)=>{const{prefixCls:r,inputPrefixCls:n,className:i,size:o,style:s,enterButton:a=!1,addonAfter:l,loading:c,disabled:u,onSearch:d,onChange:h,onCompositionStart:p,onCompositionEnd:f,variant:g,onPressEnter:m,classNames:y,styles:b,hidden:S,...x}=e,{direction:E,getPrefixCls:R,classNames:T,styles:M}=Fr("inputSearch"),D={...e,enterButton:a},[A,I]=Gr([T,y],[M,b],{props:D},{button:{_default:"root"}}),L=v.useRef(!1),F=R("input-search",r),O=R("input",n),[k,B]=Eze(F),{compactSize:H}=Wp(F,E),N=Oi(J=>o??H??J),z=v.useRef(null),W=J=>{J!=null&&J.target&&J.type==="click"&&d&&d(J.target.value,J,{source:"clear"}),h==null||h(J)},V=J=>{var ue;document.activeElement===((ue=z.current)==null?void 0:ue.input)&&J.preventDefault()},$=J=>{var ue,ve;d&&d((ve=(ue=z.current)==null?void 0:ue.input)==null?void 0:ve.value,J,{source:"input"})},K=J=>{L.current||c||(m==null||m(J),$(J))},q=typeof a=="boolean"?v.createElement(uH,null):null,X=`${F}-btn`,Y=Z(X,{[`${X}-${g}`]:g});let oe;const ee=a||{},ne=ee.type&&ee.type.__ANT_BUTTON===!0;ne||ee.type==="button"?oe=Ei(ee,{onMouseDown:V,onClick:J=>{var ue,ve;(ve=(ue=ee==null?void 0:ee.props)==null?void 0:ue.onClick)==null||ve.call(ue,J),$(J)},key:"enterButton",...ne?{className:Y,size:N}:{}}):oe=v.createElement(ca,{classNames:A.button,styles:I.button,className:Y,color:a?"primary":"default",size:N,disabled:u,key:"enterButton",onMouseDown:V,onClick:$,loading:c,icon:q,variant:g==="borderless"||g==="filled"||g==="underlined"?"text":a?"solid":void 0},a),l&&(oe=[oe,Ei(l,{key:"addonAfter"})]);const le=Z(F,B,{[`${F}-rtl`]:E==="rtl",[`${F}-${N}`]:!!N,[`${F}-with-button`]:!!a},i,k,A.root),he=J=>{L.current=!0,p==null||p(J)},re=J=>{L.current=!1,f==null||f(J)},ie=ei(x,{data:!0}),de=fn({...x,classNames:fn(A,["button","root"]),styles:fn(I,["button","root"]),prefixCls:O,type:"search",size:N,variant:g,onPressEnter:K,onCompositionStart:he,onCompositionEnd:re,onChange:W,disabled:u},Object.keys(ie));return v.createElement(z4,{className:le,style:{...s,...I.root},...ie,hidden:S},v.createElement(Jx,{ref:Wo(z,t),...de}),oe)}),Rze=` 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; `,Pze=["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"],c2={};let Sa;function Mze(e,t=!1){const r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&c2[r])return c2[r];const n=window.getComputedStyle(e),i=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),o=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),s=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),l={sizingStyle:Pze.map(c=>`${c}:${n.getPropertyValue(c)}`).join(";"),paddingSize:o,borderSize:s,boxSizing:i};return t&&r&&(c2[r]=l),l}function Ize(e,t=!1,r=null,n=null){Sa||(Sa=document.createElement("textarea"),Sa.setAttribute("tab-index","-1"),Sa.setAttribute("aria-hidden","true"),Sa.setAttribute("name","hiddenTextarea"),document.body.appendChild(Sa)),e.getAttribute("wrap")?Sa.setAttribute("wrap",e.getAttribute("wrap")):Sa.removeAttribute("wrap");const{paddingSize:i,borderSize:o,boxSizing:s,sizingStyle:a}=Mze(e,t);Sa.setAttribute("style",`${a};${Rze}`),Sa.value=e.value||e.placeholder||"";let l,c,u,d=Sa.scrollHeight;if(s==="border-box"?d+=o:s==="content-box"&&(d-=i),r!==null||n!==null){Sa.value=" ";const p=Sa.scrollHeight-i;r!==null&&(l=p*r,s==="border-box"&&(l=l+i+o),d=Math.max(l,d)),n!==null&&(c=p*n,s==="border-box"&&(c=c+i+o),u=d>c?"":"hidden",d=Math.min(c,d))}const h={height:d,overflowY:u,resize:"none"};return l&&(h.minHeight=l),c&&(h.maxHeight=c),h}function nG(){return nG=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{prefixCls:r,defaultValue:n,value:i,autoSize:o,onResize:s,className:a,style:l,disabled:c,onChange:u,onInternalAutoSize:d,...h}=e,[p,f]=An(n,i),g=p??"",m=k=>{f(k.target.value),u==null||u(k)},y=v.useRef();v.useImperativeHandle(t,()=>({textArea:y.current}));const[b,S]=v.useMemo(()=>o&&typeof o=="object"?[o.minRows,o.maxRows]:[],[o]),x=!!o,[E,R]=v.useState(h2),[T,M]=v.useState(),D=()=>{R(u2)};jr(()=>{x&&D()},[i,b,S,x]),jr(()=>{if(E===u2)R(d2);else if(E===d2){const k=Ize(y.current,!1,b,S);R(h2),M(k)}},[E]);const A=v.useRef(),I=()=>{Or.cancel(A.current)},L=k=>{E===h2&&(s==null||s(k),o&&(I(),A.current=Or(()=>{D()})))};v.useEffect(()=>I,[]);const O={...l,...x?T:null};return(E===u2||E===d2)&&(O.overflowY="hidden",O.overflowX="hidden"),v.createElement(ta,{onResize:L,disabled:!(o||s)},v.createElement("textarea",nG({},h,{ref:y,style:O,className:Z(r,a,{[`${r}-disabled`]:c}),disabled:c,value:g,onChange:m})))});function iG(){return iG=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const[I,L]=An(e,t),F=I==null?"":String(I),[O,k]=Q.useState(!1),B=Q.useRef(!1),[H,N]=Q.useState(null),z=v.useRef(null),W=v.useRef(null),V=()=>{var Ee;return(Ee=W.current)==null?void 0:Ee.textArea},$=()=>{V().focus()};v.useImperativeHandle(A,()=>{var Ee;return{resizableTextArea:W.current,focus:$,blur:()=>{V().blur()},nativeElement:((Ee=z.current)==null?void 0:Ee.nativeElement)||V()}}),v.useEffect(()=>{k(Ee=>!g&&Ee)},[g]);const[K,q]=Q.useState(null);Q.useEffect(()=>{K&&V().setSelectionRange(...K)},[K]);const X=que(h,d),Y=X.max??s,oe=Number(Y)>0,ee=X.strategy(F),ne=!!Y&&ee>Y,le=(Ee,We)=>{let ze=We;!B.current&&X.exceedFormatter&&X.max&&X.strategy(We)>X.max&&(ze=X.exceedFormatter(We,{max:X.max}),We!==ze&&q([V().selectionStart||0,V().selectionEnd||0])),L(ze),RM(Ee.currentTarget,Ee,i,ze)},he=Ee=>{B.current=!0,a==null||a(Ee)},re=Ee=>{B.current=!1,le(Ee,Ee.currentTarget.value),l==null||l(Ee)},ie=Ee=>{le(Ee,Ee.target.value)},de=Ee=>{Ee.key==="Enter"&&E&&!Ee.nativeEvent.isComposing&&E(Ee),M==null||M(Ee)},J=Ee=>{k(!0),r==null||r(Ee)},ue=Ee=>{k(!1),n==null||n(Ee)},ve=Ee=>{L(""),$(),RM(V(),Ee,i)};let pe=c,me;X.show&&(X.showFormatter?me=X.showFormatter({value:F,count:ee,maxLength:Y}):me=`${ee}${oe?` / ${Y}`:""}`,pe=Q.createElement(Q.Fragment,null,pe,Q.createElement("span",{className:Z(`${u}-data-count`,y==null?void 0:y.count),style:b==null?void 0:b.count},me)));const Oe=Ee=>{var We;S==null||S(Ee),(We=V())!=null&&We.style.height&&N(!0)},De=!T&&!d&&!o;return Q.createElement(Kue,{ref:z,value:F,allowClear:o,handleReset:ve,suffix:pe,prefixCls:u,classNames:{...y,affixWrapper:Z(y==null?void 0:y.affixWrapper,{[`${u}-show-count`]:d,[`${u}-textarea-allow-clear`]:o})},disabled:g,focused:O,className:Z(p,ne&&`${u}-out-of-range`),style:{...f,...H&&!De?{height:"auto"}:{}},dataAttrs:{affixWrapper:{"data-count":typeof me=="string"?me:void 0}},hidden:m,readOnly:R,onClear:x},Q.createElement(Dze,iG({},D,{autoSize:T,maxLength:s,onKeyDown:de,onChange:ie,onFocus:J,onBlur:ue,onCompositionStart:he,onCompositionEnd:re,className:Z(y==null?void 0:y.textarea),style:{resize:f==null?void 0:f.resize,...b==null?void 0:b.textarea},disabled:g,prefixCls:u,onResize:Oe,ref:W,readOnly:R})))}),Fze=e=>{const{componentCls:t,paddingLG:r}=e,n=`${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"},[n]:{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${n}-has-feedback ${t} `]:{paddingInlineEnd:r},[`&-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},[`${n}-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}}}}}},Lze=zr(["Input","TextArea"],e=>{const t=$r(e,kC(e));return Fze(t)},OC,{resetFont:!1}),hde=v.forwardRef((e,t)=>{var J;const{prefixCls:r,bordered:n=!0,size:i,disabled:o,status:s,allowClear:a,classNames:l,rootClassName:c,className:u,style:d,styles:h,variant:p,showCount:f,onMouseDown:g,onResize:m,...y}=e,{getPrefixCls:b,direction:S,allowClear:x,autoComplete:E,className:R,style:T,classNames:M,styles:D}=Fr("textArea"),A=v.useContext(hs),I=o??A,{status:L,hasFeedback:F,feedbackIcon:O}=v.useContext(ua),k=jx(L,s),[B,H]=Gr([M,l],[D,h],{props:e}),N=v.useRef(null);v.useImperativeHandle(t,()=>{var ue,ve;return{resizableTextArea:(ue=N.current)==null?void 0:ue.resizableTextArea,focus:pe=>{var me,Oe;Q4((Oe=(me=N.current)==null?void 0:me.resizableTextArea)==null?void 0:Oe.textArea,pe)},blur:()=>{var pe;return(pe=N.current)==null?void 0:pe.blur()},nativeElement:((ve=N.current)==null?void 0:ve.nativeElement)||null}});const z=b("input",r),W=ho(z),[V,$]=Rue(z,c);Lze(z,W);const{compactSize:K,compactItemClassnames:q}=Wp(z,S),X=Oi(ue=>i??K??ue),[Y,oe]=Kx("textArea",p,n),ee=Xue(a??x),[ne,le]=v.useState(!1),[he,re]=v.useState(!1),ie=ue=>{le(!0),g==null||g(ue);const ve=()=>{le(!1),document.removeEventListener("mouseup",ve)};document.addEventListener("mouseup",ve)},de=ue=>{var ve,pe;if(m==null||m(ue),ne&&typeof getComputedStyle=="function"){const me=(pe=(ve=N.current)==null?void 0:ve.nativeElement)==null?void 0:pe.querySelector("textarea");me&&getComputedStyle(me).resize==="both"&&re(!0)}};return v.createElement(Aze,{autoComplete:E,...y,style:{...H.root,...T,...d},styles:H,disabled:I,allowClear:ee,className:Z($,W,u,c,q,R,B.root,{[`${z}-textarea-affix-wrapper-resize-dirty`]:he}),classNames:{...B,textarea:Z({[`${z}-sm`]:X==="small",[`${z}-lg`]:X==="large"},V,B.textarea,ne&&`${z}-mouse-active`),variant:Z({[`${z}-${Y}`]:oe},Wy(z,k)),affixWrapper:Z(`${z}-textarea-affix-wrapper`,{[`${z}-affix-wrapper-rtl`]:S==="rtl",[`${z}-affix-wrapper-sm`]:X==="small",[`${z}-affix-wrapper-lg`]:X==="large",[`${z}-textarea-show-count`]:f||((J=e.count)==null?void 0:J.show)},V)},prefixCls:z,suffix:F&&v.createElement("span",{className:`${z}-textarea-suffix`},O),showCount:f,ref:N,onResize:de,onMouseDown:ie})}),t1=Jx;t1.Group=cze;t1.Search=Tze;t1.TextArea=hde;t1.Password=wze;t1.OTP=fze;var _ze={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};function oG(){return oG=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,oG({},e,{ref:t,icon:_ze})),dX=v.forwardRef(kze);var Oze={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};function sG(){return sG=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,sG({},e,{ref:t,icon:Oze})),hX=v.forwardRef(Nze),Bze={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:"页码"},$ze=[10,20,50,100],Gze=e=>{const{pageSizeOptions:t=$ze,locale:r,changeSize:n,pageSize:i,goButton:o,quickGo:s,rootPrefixCls:a,disabled:l,buildOptionText:c,showSizeChanger:u,sizeChangerRender:d}=e,[h,p]=Q.useState(""),f=Q.useMemo(()=>!h||Number.isNaN(h)?void 0:Number(h),[h]),g=typeof c=="function"?c:M=>`${M} ${r.items_per_page}`,m=M=>{const D=M.target.value;/^\d*$/.test(D)&&p(D)},y=M=>{o||h===""||(p(""),!(M.relatedTarget&&(M.relatedTarget.className.includes(`${a}-item-link`)||M.relatedTarget.className.includes(`${a}-item`)))&&(s==null||s(f)))},b=M=>{h!==""&&(M.keyCode===Zt.ENTER||M.type==="click")&&(p(""),s==null||s(f))},S=()=>t.some(M=>M.toString()===i.toString())?t:t.concat([i]).sort((M,D)=>{const A=Number.isNaN(Number(M))?0:Number(M),I=Number.isNaN(Number(D))?0:Number(D);return A-I}),x=`${a}-options`;if(!u&&!s)return null;let E=null,R=null,T=null;return u&&d&&(E=d({disabled:l,size:i,onSizeChange:M=>{n==null||n(Number(M))},"aria-label":r.page_size,className:`${x}-size-changer`,options:S().map(M=>({label:g(M),value:M}))})),s&&(o&&(T=typeof o=="boolean"?Q.createElement("button",{type:"button",onClick:b,onKeyUp:b,disabled:l,className:`${x}-quick-jumper-button`},r.jump_to_confirm):Q.createElement("span",{onClick:b,onKeyUp:b},o)),R=Q.createElement("div",{className:`${x}-quick-jumper`},r.jump_to,Q.createElement("input",{disabled:l,type:"text",value:h,onChange:m,onKeyUp:b,onBlur:y,"aria-label":r.page}),r.page,T)),Q.createElement("li",{className:x},E,R)},c0=e=>{const{rootPrefixCls:t,page:r,active:n,className:i,style:o,showTitle:s,onClick:a,onKeyPress:l,itemRender:c}=e,u=`${t}-item`,d=Z(u,`${u}-${r}`,{[`${u}-active`]:n,[`${u}-disabled`]:!r},i),h=()=>{a(r)},p=g=>{l(g,a,r)},f=c(r,"page",Q.createElement("a",{rel:"nofollow"},r));return f?Q.createElement("li",{title:s?String(r):null,className:d,style:o,onClick:h,onKeyDown:p,tabIndex:0},f):null};function Gh(){return Gh=Object.assign?Object.assign.bind():function(e){for(var t=1;tr;function pX(){}function fX(e){const t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function bf(e,t,r){const n=typeof e>"u"?t:e;return Math.floor((r-1)/n)+1}const zze=e=>{const{prefixCls:t="rc-pagination",selectPrefixCls:r="rc-select",className:n,classNames:i,styles:o,current:s,defaultCurrent:a=1,total:l=0,pageSize:c,defaultPageSize:u=10,onChange:d=pX,hideOnSinglePage:h,align:p,showPrevNextJumpers:f=!0,showQuickJumper:g,showLessItems:m,showTitle:y=!0,onShowSizeChange:b=pX,locale:S=Bze,style:x,totalBoundaryShowSizeChanger:E=50,disabled:R,simple:T,showTotal:M,showSizeChanger:D=l>E,sizeChangerRender:A,pageSizeOptions:I,itemRender:L=Vze,jumpPrevIcon:F,jumpNextIcon:O,prevIcon:k,nextIcon:B}=e,H=Q.useRef(null),[N,z]=An(u,c),[W,V]=An(a,s),$=Math.max(1,Math.min(W,bf(void 0,N,l))),[K,q]=Q.useState($);v.useEffect(()=>{q($)},[$]);const X=Math.max(1,$-(m?3:5)),Y=Math.min(bf(void 0,N,l),$+(m?3:5));function oe(Re,it){let Ve=Re||Q.createElement("button",{type:"button","aria-label":it,className:`${t}-item-link`});return typeof Re=="function"&&(Ve=Q.createElement(Re,e)),Ve}function ee(Re){const it=Re.target.value,Ve=bf(void 0,N,l);let ke;return it===""?ke=it:Number.isNaN(Number(it))?ke=K:it>=Ve?ke=Ve:ke=Number(it),ke}function ne(Re){return fX(Re)&&Re!==$&&fX(l)&&l>0}const le=l>N?g:!1;function he(Re){(Re.keyCode===Zt.UP||Re.keyCode===Zt.DOWN)&&Re.preventDefault()}function re(Re){const it=ee(Re);switch(it!==K&&q(it),Re.keyCode){case Zt.ENTER:J(it);break;case Zt.UP:J(it-1);break;case Zt.DOWN:J(it+1);break}}function ie(Re){J(ee(Re))}function de(Re){const it=bf(Re,N,l),Ve=$>it&&it!==0?it:$;z(Re),q(Ve),b==null||b($,Re),V(Ve),d==null||d(Ve,Re)}function J(Re){if(ne(Re)&&!R){const it=bf(void 0,N,l);let Ve=Re;return Re>it?Ve=it:Re<1&&(Ve=1),Ve!==K&&q(Ve),V(Ve),d==null||d(Ve,N),Ve}return $}const ue=$>1,ve=$l?l:$*N]));let ot=null;const Ye=bf(void 0,N,l);if(h&&l<=N)return null;const Ae=[],nt={rootPrefixCls:t,onClick:J,onKeyPress:Ee,showTitle:y,itemRender:L,page:-1,className:i==null?void 0:i.item,style:o==null?void 0:o.item},Et=$-1>0?$-1:0,Tt=$+1=Ut*2&&$!==3&&(Ae[0]=Q.cloneElement(Ae[0],{className:Z(`${t}-item-after-jump-prev`,Ae[0].props.className)}),Ae.unshift(tt)),Ye-$>=Ut*2&&$!==Ye-2){const fe=Ae[Ae.length-1];Ae[Ae.length-1]=Q.cloneElement(fe,{className:Z(`${t}-item-before-jump-next`,fe.props.className)}),Ae.push(ot)}se!==1&&Ae.unshift(Q.createElement(c0,Gh({},nt,{key:1,page:1}))),ce!==Ye&&Ae.push(Q.createElement(c0,Gh({},nt,{key:Ye,page:Ye})))}let cr=St(Et);if(cr){const Re=!ue||!Ye;cr=Q.createElement("li",{title:y?S.prev_page:null,onClick:pe,tabIndex:Re?null:0,onKeyDown:We,className:Z(`${t}-prev`,i==null?void 0:i.item,{[`${t}-disabled`]:Re}),style:o==null?void 0:o.item,"aria-disabled":Re},cr)}let _e=Ze(Tt);if(_e){let Re,it;T?(Re=!ve,it=ue?0:null):(Re=!ve||!Ye,it=Re?null:0),_e=Q.createElement("li",{title:y?S.next_page:null,onClick:me,tabIndex:it,onKeyDown:ze,className:Z(`${t}-next`,i==null?void 0:i.item,{[`${t}-disabled`]:Re}),style:o==null?void 0:o.item,"aria-disabled":Re},_e)}const qe=Z(t,n,{[`${t}-start`]:p==="start",[`${t}-center`]:p==="center",[`${t}-end`]:p==="end",[`${t}-simple`]:T,[`${t}-disabled`]:R});return Q.createElement("ul",Gh({className:qe,style:x,ref:H},Ne),rt,cr,T?lt:Ae,_e,Q.createElement(Gze,{locale:S,rootPrefixCls:t,disabled:R,selectPrefixCls:r,changeSize:de,pageSize:N,pageSizeOptions:I,quickGo:le?J:null,goButton:at,showSizeChanger:D,sizeChangerRender:A}))},Hze=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},Wze=e=>{const{componentCls:t}=e;return{[`&${t}-small ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-quick-jumper":{input:{...TH(e),width:e.paginationMiniQuickJumperInputWidth}}}}},Uze=e=>{const{componentCls:t}=e;return{[`&${t}-large ${t}-options`]:{"&-quick-jumper":{input:{...EH(e)}}}}},jze=e=>{const{componentCls:t,antCls:r}=e,[,n]=Jn(r,"pagination");return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:n("item-size-actual"),lineHeight:n("item-size-actual"),verticalAlign:"top",[`${t}-item-link`]:{height:n("item-size-actual"),backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:n("item-size-actual"),lineHeight:n("item-size-actual")}}},[`${t}-simple-pager`]:{display:"inline-flex",alignItems:"center",height:n("item-size-actual"),marginInlineEnd:n("item-spacing-actual"),input:{boxSizing:"border-box",height:"100%",width:e.quickJumperInputWidth,padding:`0 ${ae(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${ae(e.inputOutlineOffset)} 0 ${ae(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}},[`&${t}-small`]:{[`${t}-simple-pager`]:{input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},Kze=e=>{const{componentCls:t,antCls:r}=e,[,n]=Jn(r,"pagination");return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[` ${t}-prev, ${t}-jump-prev, ${t}-jump-next `]:{marginInlineEnd:n("item-spacing-actual")},[` ${t}-prev, ${t}-next, ${t}-jump-prev, ${t}-jump-next `]:{display:"inline-block",minWidth:n("item-size-actual"),height:n("item-size-actual"),color:e.colorText,fontFamily:e.fontFamily,lineHeight:n("item-size-actual"),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${ae(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{width:"auto"},"&-quick-jumper":{display:"inline-block",height:n("item-size-actual"),marginInlineStart:e.marginXS,lineHeight:n("item-size-actual"),verticalAlign:"baseline",input:{...iA(e),...xH(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...nA(e)},width:e.quickJumperInputWidth,height:n("item-size-actual"),boxSizing:"border-box",margin:0,marginInlineStart:n("item-spacing-actual"),marginInlineEnd:n("item-spacing-actual")}}}}},qze=e=>{const{componentCls:t,antCls:r}=e,[,n]=Jn(r,"pagination");return{[`${t}-item`]:{display:"inline-block",minWidth:n("item-size-actual"),height:n("item-size-actual"),marginInlineEnd:n("item-spacing-actual"),fontFamily:e.fontFamily,lineHeight:ae(e.calc(n("item-size-actual")).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${ae(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${ae(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},Xze=e=>{const{componentCls:t,antCls:r}=e,[n,i]=Jn(r,"pagination");return{[t]:{[n("item-size-actual")]:ae(e.itemSize),[n("item-spacing-actual")]:ae(e.marginXS),"&-small":{[n("item-size-actual")]:ae(e.itemSizeSM),[n("item-spacing-actual")]:ae(e.marginXXS)},"&-large":{[n("item-size-actual")]:ae(e.itemSizeLG),[n("item-spacing-actual")]:ae(e.marginSM)},...on(e),display:"flex",alignItems:"center","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:i("item-size-actual"),marginInlineEnd:i("item-spacing-actual"),lineHeight:ae(e.calc(i("item-size-actual")).sub(2).equal()),verticalAlign:"middle"},...qze(e),...Kze(e),...jze(e),...Wze(e),...Uze(e),...Hze(e),[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},Yze=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...wl(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...gc(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:gc(e)}}}},pde=e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemSizeLG:e.controlHeightLG,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0,...OC(e)}),fde=e=>$r(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},kC(e)),Zze=zr("Pagination",e=>{const t=fde(e);return[Xze(t),Yze(t)]},pde),Qze=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},Jze=Ax(["Pagination","bordered"],e=>{const t=fde(e);return Qze(t)},pde);function gX(e){return v.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}const gde=e=>{const{align:t,prefixCls:r,selectPrefixCls:n,className:i,rootClassName:o,style:s,size:a,locale:l,responsive:c,showSizeChanger:u,selectComponentClass:d,pageSizeOptions:h,styles:p,classNames:f,...g}=e,{xs:m}=qx(c),[,y]=fs(),{getPrefixCls:b,direction:S,showSizeChanger:x,className:E,style:R,classNames:T,styles:M,totalBoundaryShowSizeChanger:D}=Fr("pagination"),A=b("pagination",r),[I,L]=Zze(A),F=Oi(a),O=F==="small"||!!(m&&!F&&c),k={...e,size:F},[B,H]=Gr([T,f],[M,p],{props:k}),[N]=Dl("Pagination",Yae),z={...N,...l},[W,V]=gX(u),[$,K]=gX(x),q=W??$,X=V??K,Y=d||vu,oe=v.useMemo(()=>h?h.map(Number):void 0,[h]),ee=ie=>{var We;const{disabled:de,size:J,onSizeChange:ue,"aria-label":ve,className:pe,options:me}=ie,{className:Oe,onChange:De}=X||{},Ee=(We=me.find(ze=>String(ze.value)===String(J)))==null?void 0:We.value;return v.createElement(Y,{disabled:de,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:ze=>ze.parentNode,"aria-label":ve,options:me,...X,value:Ee,onChange:(ze,mt)=>{ue==null||ue(ze),De==null||De(ze,mt)},size:F,className:Z(pe,Oe)})},ne=v.useMemo(()=>{const ie=v.createElement("span",{className:`${A}-item-ellipsis`},"•••"),de=v.createElement("button",{className:`${A}-item-link`,type:"button",tabIndex:-1},S==="rtl"?v.createElement(t$,null):v.createElement(_$,null)),J=v.createElement("button",{className:`${A}-item-link`,type:"button",tabIndex:-1},S==="rtl"?v.createElement(_$,null):v.createElement(t$,null)),ue=v.createElement("a",{className:`${A}-item-link`},v.createElement("div",{className:`${A}-item-container`},S==="rtl"?v.createElement(hX,{className:`${A}-item-link-icon`}):v.createElement(dX,{className:`${A}-item-link-icon`}),ie)),ve=v.createElement("a",{className:`${A}-item-link`},v.createElement("div",{className:`${A}-item-container`},S==="rtl"?v.createElement(dX,{className:`${A}-item-link-icon`}):v.createElement(hX,{className:`${A}-item-link-icon`}),ie));return{prevIcon:de,nextIcon:J,jumpPrevIcon:ue,jumpNextIcon:ve}},[S,A]),le=b("select",n),he=Z({[`${A}-${t}`]:!!t,[`${A}-${F}`]:F,[`${A}-mini`]:O,[`${A}-rtl`]:S==="rtl",[`${A}-bordered`]:y.wireframe},E,i,o,B.root,I,L),re={...H.root,...R,...s};return v.createElement(v.Fragment,null,y.wireframe&&v.createElement(Jze,{prefixCls:A}),v.createElement(zze,{...ne,...g,styles:H,classNames:B,style:re,prefixCls:A,selectPrefixCls:le,className:he,locale:z,pageSizeOptions:oe,showSizeChanger:q,totalBoundaryShowSizeChanger:g.totalBoundaryShowSizeChanger??D,sizeChangerRender:ee}))},DM=100,mde=DM/5,vde=DM/2-mde/2,p2=vde*2*Math.PI,mX=50,vX=e=>{const{dotClassName:t,style:r,hasCircleCls:n}=e;return v.createElement("circle",{className:Z(`${t}-circle`,{[`${t}-circle-bg`]:n}),r:vde,cx:mX,cy:mX,strokeWidth:mde,style:r})},e3e=({percent:e,prefixCls:t})=>{const r=`${t}-dot`,n=`${r}-holder`,i=`${n}-hidden`,[o,s]=v.useState(!1);jr(()=>{e!==0&&s(!0)},[e!==0]);const a=Math.max(Math.min(e,100),0);if(!o)return null;const l={strokeDashoffset:`${p2/4}`,strokeDasharray:`${p2*a/100} ${p2*(100-a)/100}`};return v.createElement("span",{className:Z(n,`${r}-progress`,a<=0&&i)},v.createElement("svg",{viewBox:`0 0 ${DM} ${DM}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":a},v.createElement(vX,{dotClassName:r,hasCircleCls:!0}),v.createElement(vX,{dotClassName:r,style:l})))};function t3e(e){const{prefixCls:t,percent:r=0,className:n,style:i}=e,o=`${t}-dot`,s=`${o}-holder`,a=`${s}-hidden`;return v.createElement(v.Fragment,null,v.createElement("span",{className:Z(s,n,r>0&&a),style:i},v.createElement("span",{className:Z(o,`${t}-dot-spin`)},[1,2,3,4].map(l=>v.createElement("i",{className:`${t}-dot-item`,key:l})))),v.createElement(e3e,{prefixCls:t,percent:r}))}function r3e(e){const{prefixCls:t,indicator:r,percent:n,className:i,style:o}=e,s=`${t}-dot`;return r&&v.isValidElement(r)?Ei(r,a=>({className:Z(a.className,s,i),style:{...a.style,...o},percent:n})):v.createElement(t3e,{prefixCls:t,percent:n,className:i,style:o})}const n3e=new qr("antSpinMove",{to:{opacity:1}}),i3e=new qr("antRotate",{to:{transform:"rotate(405deg)"}}),o3e=e=>{const{componentCls:t}=e,r=`${t}-section`;return{[t]:{...on(e),position:"relative","&-rtl":{direction:"rtl"},[`&${r}, ${r}`]:{display:"flex",alignItems:"center",flexDirection:"column",gap:e.paddingSM,color:e.colorPrimary},[`&${r}`]:{display:"inline-flex"},[r]:{position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)",zIndex:1},[`${t}-description`]:{fontSize:e.fontSize,lineHeight:1},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},"&-spinning":{[`${t}-description`]:{textShadow:`0 0px 5px ${e.colorBgContainer}`},[`${t}-container`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-fullscreen":{position:"fixed",inset:0,backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,opacity:0,pointerEvents:"none",transition:`all ${e.motionDurationMid}`,[`&${t}-spinning`]:{opacity:1,pointerEvents:"auto"},[r]:{color:e.colorWhite,[`${t}-description`]:{color:e.colorTextLightSolid}}}}}},s3e=e=>{const{componentCls:t,antCls:r,motionDurationSlow:n}=e,[i,o]=Jn(r,"spin");return{[t]:{[i("dot-holder-size")]:e.dotSize,[i("dot-item-size")]:`calc((${o("dot-holder-size")} - ${e.marginXXS} / 2) / 2)`,[`${t}-dot`]:{"&-holder":{width:"1em",height:"1em",fontSize:o("dot-holder-size"),display:"inline-block",transition:["transform","opacity"].map(s=>`${s} ${n} ease`).join(", "),transformOrigin:"50% 50%",lineHeight:1,"&-hidden":{transform:"scale(0.3)",opacity:0}},position:"relative",display:"inline-block",fontSize:o("dot-holder-size"),width:"1em",height:"1em","&-spin":{transform:"rotate(45deg)",animationName:i3e,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-item":{position:"absolute",display:"block",width:o("dot-item-size"),height:o("dot-item-size"),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:n3e,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-progress":{position:"absolute",left:"50%",top:0,transform:"translateX(-50%)"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(s=>`${s} ${n} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}}}}},a3e=e=>{const{componentCls:t}=e,[r]=Jn(e.antCls,"spin");return{[t]:{"&-sm":{[r("dot-holder-size")]:e.dotSizeSM},"&-lg":{[r("dot-holder-size")]:e.dotSizeLG}}}},l3e=e=>{const{controlHeightLG:t,controlHeight:r}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:r}},c3e=zr("Spin",e=>{const t=$r(e,{spinDotDefault:e.colorTextDescription});return[o3e(t),s3e(t),a3e(t)]},l3e),u3e=200,yX=[[30,.05],[70,.03],[96,.01]];function d3e(e,t){const[r,n]=v.useState(0),i=v.useRef(null),o=t==="auto";return v.useEffect(()=>(o&&e&&(n(0),i.current=setInterval(()=>{n(s=>{const a=100-s;for(let l=0;l{i.current&&(clearInterval(i.current),i.current=null)}),[o,e]),o?r:t}let yde;function h3e(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const LH=e=>{const{prefixCls:t,spinning:r=!0,delay:n=0,className:i,rootClassName:o,size:s,tip:a,description:l,wrapperClassName:c,style:u,children:d,fullscreen:h=!1,indicator:p,percent:f,classNames:g,styles:m,...y}=e,{getPrefixCls:b,direction:S,indicator:x,className:E,style:R,classNames:T,styles:M}=Fr("spin"),D=b("spin",t),[A,I]=c3e(D),[L,F]=v.useState(()=>r&&!h3e(r,n)),O=d3e(L,f);v.useEffect(()=>{if(r){const q=CGe(n,()=>{F(!0)});return q(),()=>{var X;(X=q==null?void 0:q.cancel)==null||X.call(q)}}F(!1)},[n,r]);const k=Oi(q=>s??q),B=l??a,H={...e,size:k,spinning:L,tip:B,description:B,fullscreen:h,children:d,percent:O},[N,z]=Gr([T,g],[M,m],{props:H}),W=p??x??yde,V=typeof d<"u",$=V||h,K=v.createElement(v.Fragment,null,v.createElement(r3e,{className:Z(N.indicator),style:z.indicator,prefixCls:D,indicator:W,percent:O}),B&&v.createElement("div",{className:Z(`${D}-description`,N.tip,N.description),style:{...z.tip,...z.description}},B));return v.createElement("div",{className:Z(D,{[`${D}-sm`]:k==="small",[`${D}-lg`]:k==="large",[`${D}-spinning`]:L,[`${D}-rtl`]:S==="rtl",[`${D}-fullscreen`]:h},o,N.root,h&&N.mask,$?c:[`${D}-section`,N.section],E,i,A,I),style:{...z.root,...$?{}:z.section,...h?z.mask:{},...R,...u},"aria-live":"polite","aria-busy":L,...y},L&&($?v.createElement("div",{className:Z(`${D}-section`,N.section),style:z.section},K):K),V&&v.createElement("div",{className:Z(`${D}-container`,N.container),style:z.container},d))};LH.setDefaultIndicator=e=>{yde=e};const _H=Q.createContext({});_H.Consumer;const p3e=({prefixCls:e,className:t,avatar:r,title:n,description:i,...o})=>{const{getPrefixCls:s}=v.useContext(ir),a=s("list",e),l=Z(`${a}-item-meta`,t),c=Q.createElement("div",{className:`${a}-item-meta-content`},n&&Q.createElement("h4",{className:`${a}-item-meta-title`},n),i&&Q.createElement("div",{className:`${a}-item-meta-description`},i));return Q.createElement("div",{...o,className:l},r&&Q.createElement("div",{className:`${a}-item-meta-avatar`},r),(n||i)&&c)},f3e=Q.forwardRef((e,t)=>{const{prefixCls:r,children:n,actions:i,extra:o,styles:s,className:a,classNames:l,colStyle:c,...u}=e,{grid:d,itemLayout:h}=v.useContext(_H),{getPrefixCls:p,list:f}=v.useContext(ir),g=T=>{var M,D;return Z((D=(M=f==null?void 0:f.item)==null?void 0:M.classNames)==null?void 0:D[T],l==null?void 0:l[T])},m=T=>{var M,D;return{...(D=(M=f==null?void 0:f.item)==null?void 0:M.styles)==null?void 0:D[T],...s==null?void 0:s[T]}},y=()=>{const T=Li(n);return T.some(D=>typeof D=="string")&&T.length>1},b=()=>h==="vertical"?!!o:!y(),S=p("list",r),x=i&&i.length>0&&Q.createElement("ul",{className:Z(`${S}-item-action`,g("actions")),key:"actions",style:m("actions")},i.map((T,M)=>Q.createElement("li",{key:`${S}-item-action-${M}`},T,M!==i.length-1&&Q.createElement("em",{className:`${S}-item-action-split`})))),E=d?"div":"li",R=Q.createElement(E,{...u,...d?{}:{ref:t},className:Z(`${S}-item`,{[`${S}-item-no-flex`]:!b()},a)},h==="vertical"&&o?[Q.createElement("div",{className:`${S}-item-main`,key:"content"},n,x),Q.createElement("div",{className:Z(`${S}-item-extra`,g("extra")),key:"extra",style:m("extra")},o)]:[n,x,Ei(o,{key:"extra"})]);return d?Q.createElement(IGe,{ref:t,flex:1,style:c},R):R}),Cde=f3e;Cde.Meta=p3e;const g3e=e=>{const{listBorderedCls:t,componentCls:r,paddingLG:n,margin:i,itemPaddingSM:o,itemPaddingLG:s,marginLG:a,borderRadiusLG:l}=e,c=ae(e.calc(l).sub(e.lineWidth).equal());return{[t]:{border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:l,[`${r}-header`]:{borderRadius:`${c} ${c} 0 0`},[`${r}-footer`]:{borderRadius:`0 0 ${c} ${c}`},[`${r}-header,${r}-footer,${r}-item`]:{paddingInline:n},[`${r}-pagination`]:{margin:`${ae(i)} ${ae(a)}`}},[`${t}${r}-sm`]:{[`${r}-item,${r}-header,${r}-footer`]:{padding:o}},[`${t}${r}-lg`]:{[`${r}-item,${r}-header,${r}-footer`]:{padding:s}}}},m3e=e=>{const{componentCls:t,screenSM:r,screenMD:n,marginLG:i,marginSM:o,margin:s}=e;return{[`@media screen and (max-width:${n}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:i}}}},[`@media screen and (max-width: ${r}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${ae(s)}`}}}}}},v3e=e=>{const{componentCls:t,antCls:r,controlHeight:n,minHeight:i,paddingSM:o,marginLG:s,padding:a,itemPadding:l,colorPrimary:c,itemPaddingSM:u,itemPaddingLG:d,paddingXS:h,margin:p,colorText:f,colorTextDescription:g,motionDurationSlow:m,lineWidth:y,headerBg:b,footerBg:S,emptyTextPadding:x,metaMarginBottom:E,avatarMarginRight:R,titleMarginBottom:T,descriptionFontSize:M}=e;return{[t]:{...on(e),position:"relative","--rc-virtual-list-scrollbar-bg":e.colorSplit,"*":{outline:"none"},[`${t}-header`]:{background:b},[`${t}-footer`]:{background:S},[`${t}-header, ${t}-footer`]:{paddingBlock:o},[`${t}-pagination`]:{marginBlockStart:s,[`${r}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:i,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:l,color:f,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:R},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:f},[`${t}-item-meta-title`]:{margin:`0 0 ${ae(e.marginXXS)} 0`,color:f,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:f,transition:`all ${m}`,"&:hover":{color:c}}},[`${t}-item-meta-description`]:{color:g,fontSize:M,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${ae(h)}`,color:g,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:y,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${ae(a)} 0`,color:g,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:x,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}},[`${t}-grid ${r}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:p,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:s},[`${t}-item-meta`]:{marginBlockEnd:E,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:T,color:f,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:a,marginInlineStart:"auto","> li":{padding:`0 ${ae(a)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:n},[`${t}-split${t}-something-after-last-item ${r}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:d},[`${t}-sm ${t}-item`]:{padding:u},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},y3e=e=>({contentWidth:220,itemPadding:`${ae(e.paddingContentVertical)} 0`,itemPaddingSM:`${ae(e.paddingContentVerticalSM)} ${ae(e.paddingContentHorizontal)}`,itemPaddingLG:`${ae(e.paddingContentVerticalLG)} ${ae(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),C3e=zr("List",e=>{const t=$r(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[v3e(t),g3e(t),m3e(t)]},y3e,{extraCssVarPrefixCls:({prefixCls:e})=>[`${e}-container`]}),b3e=(e,t)=>{const{pagination:r=!1,prefixCls:n,bordered:i=!1,split:o=!0,className:s,rootClassName:a,style:l,children:c,itemLayout:u,loadMore:d,grid:h,dataSource:p=[],size:f,header:g,footer:m,loading:y=!1,rowKey:b,renderItem:S,locale:x,...E}=e,R=r&&typeof r=="object"?r:{},[T,M]=v.useState(R.defaultCurrent||1),[D,A]=v.useState(R.defaultPageSize||10),{getPrefixCls:I,direction:L,className:F,style:O}=Fr("list"),{renderEmpty:k}=v.useContext(ir),B={current:1,total:0,position:"bottom"},H=Ee=>(We,ze)=>{var mt;M(We),A(ze),r&&((mt=r==null?void 0:r[Ee])==null||mt.call(r,We,ze))},N=H("onChange"),z=H("onShowSizeChange"),W=(Ee,We)=>{if(!S)return null;let ze;return typeof b=="function"?ze=b(Ee):b?ze=Ee[b]:ze=Ee.key,ze||(ze=`list-item-${We}`),v.createElement(v.Fragment,{key:ze},S(Ee,We))},V=!!(d||r||m),$=I("list",n),[K,q]=C3e($);let X=y;typeof X=="boolean"&&(X={spinning:X});const Y=!!(X!=null&&X.spinning),oe=Oi(f);let ee="";switch(oe){case"large":ee="lg";break;case"small":ee="sm";break}const ne=Z($,{[`${$}-vertical`]:u==="vertical",[`${$}-${ee}`]:ee,[`${$}-split`]:o,[`${$}-bordered`]:i,[`${$}-loading`]:Y,[`${$}-grid`]:!!h,[`${$}-something-after-last-item`]:V,[`${$}-rtl`]:L==="rtl"},F,s,a,K,q),le=`${$}-container`,he=Pw(B,{total:p.length,current:T,pageSize:D},r||{}),re=Math.ceil(he.total/he.pageSize);he.current=Math.min(he.current,re);const ie=r&&v.createElement("div",{className:Z(`${$}-pagination`)},v.createElement(gde,{align:"end",...he,onChange:N,onShowSizeChange:z}));let de=Pr(p);r&&p.length>(he.current-1)*he.pageSize&&(de=Pr(p).splice((he.current-1)*he.pageSize,he.pageSize));const J=Object.keys(h||{}).some(Ee=>su.includes(Ee)),ue=qx(J),ve=v.useMemo(()=>{for(let Ee=0;Ee{if(!h)return;const Ee=ve&&h[ve]?h[ve]:h.column;if(Ee)return{width:`${100/Ee}%`,maxWidth:`${100/Ee}%`}},[JSON.stringify(h),ve]);let me=Y&&v.createElement("div",{style:{minHeight:53}});if(de.length>0){const Ee=de.map(W);me=h?v.createElement(AGe,{className:Z(le,q),gutter:h.gutter},v.Children.map(Ee,We=>v.createElement("div",{key:We==null?void 0:We.key,style:pe},We))):v.createElement("ul",{className:Z(`${$}-items`,le,q)},Ee)}else!c&&!Y&&(me=v.createElement("div",{className:`${$}-empty-text`},(x==null?void 0:x.emptyText)||(k==null?void 0:k("List"))||v.createElement(lH,{componentName:"List"})));const Oe=he.position,De=v.useMemo(()=>({grid:h,itemLayout:u}),[JSON.stringify(h),u]);return v.createElement(_H.Provider,{value:De},v.createElement("div",{ref:t,style:{...O,...l},className:ne,...E},(Oe==="top"||Oe==="both")&&ie,g&&v.createElement("div",{className:`${$}-header`},g),v.createElement(LH,{...X},me,c),m&&v.createElement("div",{className:`${$}-footer`},m),d||(Oe==="bottom"||Oe==="both")&&ie))},S3e=v.forwardRef(b3e),w3e=S3e;w3e.Item=Cde;const bde=(e,t={})=>!Tn(e)&&(t!=null&&t.skipEmpty)?[]:Array.isArray(e)?e:[e],x3e=e=>{const{prefixCls:t,className:r,closeIcon:n,closable:i,type:o,title:s,children:a,footer:l,classNames:c,styles:u,...d}=e,{getPrefixCls:h}=v.useContext(ir),{className:p,style:f,classNames:g,styles:m}=Fr("modal"),y=h(),b=t||h("modal"),S=ho(y),[x,E]=ice(b,S),[R,T]=Gr([g,c],[m,u],{props:e}),M=`${b}-confirm`;let D={};return o?D={closable:i??!1,title:"",footer:"",children:v.createElement(sce,{...e,prefixCls:b,confirmPrefixCls:M,rootPrefixCls:y,content:a})}:D={closable:i??!0,title:s,footer:l!==null&&v.createElement(ece,{...e}),children:a},v.createElement(Hle,{prefixCls:b,className:Z(x,`${b}-pure-panel`,o&&M,o&&`${M}-${o}`,r,p,E,S,R.root),style:{...f,...T.root},...d,closeIcon:Jle(b,n),closable:i,classNames:R,styles:T,...D})},E3e=gce(x3e);function Sde(e){return Wx(uce(e))}const Du=oce;Du.useModal=Oke;Du.info=function(t){return Wx(dce(t))};Du.success=function(t){return Wx(hce(t))};Du.error=function(t){return Wx(pce(t))};Du.warning=Sde;Du.warn=Sde;Du.confirm=function(t){return Wx(fce(t))};Du.destroyAll=function(){for(;Cg.length;){const t=Cg.pop();t&&t()}};Du.config=Lke;Du._InternalPanelDoNotUseOrYouWillBeFired=E3e;const T3e=e=>{const{componentCls:t,iconCls:r,antCls:n,zIndexPopup:i,colorText:o,colorWarning:s,marginXXS:a,marginXS:l,fontSize:c,fontWeightStrong:u,colorTextHeading:d}=e;return{[t]:{zIndex:i,[`&${n}-popover`]:{fontSize:c},[`${t}-message`]:{marginBottom:l,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${r}`]:{color:s,fontSize:c,lineHeight:1,marginInlineEnd:l},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:a,color:o}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:l}}}}},R3e=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},wde=zr("Popconfirm",T3e,R3e,{resetStyle:!1}),xde=e=>{const{prefixCls:t,okButtonProps:r,cancelButtonProps:n,title:i,description:o,cancelText:s,okText:a,okType:l="primary",icon:c=v.createElement(Fx,null),showCancel:u=!0,close:d,onConfirm:h,onCancel:p,onPopupClick:f,classNames:g,styles:m}=e,{getPrefixCls:y}=v.useContext(ir),[b]=Dl("Popconfirm",xl.Popconfirm),S=Uy(i),x=Uy(o);return v.createElement("div",{className:`${t}-inner-content`,onClick:f},v.createElement("div",{className:`${t}-message`},c&&v.createElement("span",{className:`${t}-message-icon`},c),v.createElement("div",{className:`${t}-message-text`},S&&v.createElement("div",{className:Z(`${t}-title`,g==null?void 0:g.title),style:m==null?void 0:m.title},S),x&&v.createElement("div",{className:Z(`${t}-description`,g==null?void 0:g.content),style:m==null?void 0:m.content},x))),v.createElement("div",{className:`${t}-buttons`},u&&v.createElement(ca,{onClick:p,size:"small",...n},s||(b==null?void 0:b.cancelText)),v.createElement(Y4,{buttonProps:{size:"small",...H4(l),...r},actionFn:h,close:d,prefixCls:y("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},a||(b==null?void 0:b.okText))))},P3e=e=>{const{prefixCls:t,placement:r,className:n,style:i,...o}=e,{getPrefixCls:s}=v.useContext(ir),a=s("popconfirm",t);return wde(a),v.createElement(Vce,{placement:r,className:Z(a,n),style:i,content:v.createElement(xde,{prefixCls:a,...o})})},M3e=v.forwardRef((e,t)=>{const{prefixCls:r,placement:n="top",trigger:i,okType:o="primary",icon:s=v.createElement(Fx,null),children:a,overlayClassName:l,onOpenChange:c,overlayStyle:u,styles:d,arrow:h,classNames:p,...f}=e,{getPrefixCls:g,className:m,style:y,classNames:b,styles:S,arrow:x,trigger:E}=Fr("popconfirm"),[R,T]=An(e.defaultOpen??!1,e.open),M=fH(h,x),D=i||E||"click",A=W=>{T(W),c==null||c(W)},I=()=>{A(!1)},L=W=>{var V;return(V=e.onConfirm)==null?void 0:V.call(void 0,W)},F=W=>{var V;A(!1),(V=e.onCancel)==null||V.call(void 0,W)},O=W=>{const{disabled:V=!1}=e;V||A(W)},k=g("popconfirm",r),B={...e,placement:n,trigger:D,okType:o,overlayStyle:u,styles:d,classNames:p},[H,N]=Gr([b,p],[S,d],{props:B}),z=Z(k,m,l,H.root);return wde(k),v.createElement(zce,{arrow:M,...fn(f,["title"]),trigger:D,placement:n,onOpenChange:O,open:R,ref:t,classNames:{root:z,container:H.container,arrow:H.arrow},styles:{root:{...y,...N.root,...u},container:N.container,arrow:N.arrow},content:v.createElement(xde,{okType:o,icon:s,...e,prefixCls:k,close:I,onConfirm:L,onCancel:F,classNames:H,styles:N}),"data-popover-inject":!0},a)}),I3e=M3e;I3e._InternalPanelDoNotUseOrYouWillBeFired=P3e;const D3e={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,railColor:"#D9D9D9",railWidth:1,gapPosition:"bottom",loading:!1},A3e=()=>{const e=v.useRef([]),t=v.useRef(null);return v.useEffect(()=>{const r=Date.now();let n=!1;e.current.forEach(i=>{if(!i)return;n=!0;const o=i.style;o.transitionDuration=".3s, .3s, .3s, .06s",t.current&&r-t.current<100&&(o.transitionDuration="0s, 0s")}),n&&(t.current=Date.now())}),e.current},CX=({bg:e,children:t})=>v.createElement("div",{style:{width:"100%",height:"100%",background:e}},t);function bX(e,t){return Object.keys(e).map(r=>{const n=parseFloat(r),i=`${Math.floor(n*t)}%`;return`${e[r]} ${i}`})}const F3e=v.forwardRef((e,t)=>{const{prefixCls:r,color:n,gradientId:i,radius:o,className:s,style:a,ptg:l,strokeLinecap:c,strokeWidth:u,size:d,gapDegree:h}=e,p=n&&typeof n=="object",f=p?"#FFF":void 0,g=d/2,m=v.createElement("circle",{className:Z(`${r}-circle-path`,s),r:o,cx:g,cy:g,stroke:f,strokeLinecap:c,strokeWidth:u,opacity:l===0?0:1,style:a,ref:t});if(!p)return m;const y=`${i}-conic`,b=h?`${180+h/2}deg`:"0deg",S=bX(n,(360-h)/360),x=bX(n,1),E=`conic-gradient(from ${b}, ${S.join(", ")})`,R=`linear-gradient(to ${h?"bottom":"top"}, ${x.join(", ")})`;return v.createElement(v.Fragment,null,v.createElement("mask",{id:y},m),v.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:`url(#${y})`},v.createElement(CX,{bg:R},v.createElement(CX,{bg:E}))))}),sS=100,f2=(e,t,r,n,i,o,s,a,l,c,u=0)=>{const d=r/100*360*((360-o)/360),h=o===0?0:{bottom:0,top:180,left:90,right:-90}[s];let p=(100-n)/100*t;l==="round"&&n!==100&&(p+=c/2,p>=t&&(p=t-.01));const f=sS/2;return{stroke:typeof a=="string"?a:void 0,strokeDasharray:`${t}px ${e}`,strokeDashoffset:p+u,transform:`rotate(${i+d+h}deg)`,transformOrigin:`${f}px ${f}px`,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},L3e=(({id:e,loading:t})=>{if(!t)return{indeterminateStyleProps:{},indeterminateStyleAnimation:null};const r=`${e}-indeterminate-animate`;return{indeterminateStyleProps:{transform:"rotate(0deg)",animation:`${r} 1s linear infinite`},indeterminateStyleAnimation:Q.createElement("style",null,`@keyframes ${r} { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }`)}});function aG(){return aG=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{id:t,prefixCls:r,classNames:n={},styles:i={},steps:o,strokeWidth:s,railWidth:a,gapDegree:l=0,gapPosition:c,railColor:u,strokeLinecap:d,style:h,className:p,strokeColor:f,percent:g,loading:m,...y}={...D3e,...e},b=sS/2,S=xc(t),x=`${S}-gradient`,E=b-s/2,R=Math.PI*2*E,T=l>0?90+l/2:-90,M=R*((360-l)/360),{count:D,gap:A}=typeof o=="object"?o:{count:o,gap:2},I=SX(g),L=SX(f),F=L.find($=>$&&typeof $=="object"),k=F&&typeof F=="object"?"butt":d,{indeterminateStyleProps:B,indeterminateStyleAnimation:H}=L3e({id:S,loading:m}),N=f2(R,M,0,100,T,l,c,u,k,s),z=A3e(),W=()=>{let $=0;return I.map((K,q)=>{const X=L[q]||L[L.length-1],Y=f2(R,M,$,K,T,l,c,X,k,s);return $+=K,v.createElement(F3e,{key:q,color:X,ptg:K,radius:E,prefixCls:r,gradientId:x,className:n.track,style:{...Y,...B,...i.track},strokeLinecap:k,strokeWidth:s,gapDegree:l,ref:oe=>{z[q]=oe},size:sS})}).reverse()},V=()=>{const $=Math.round(D*(I[0]/100)),K=100/D;let q=0;return new Array(D).fill(null).map((X,Y)=>{const oe=Y<=$-1?L[0]:u,ee=oe&&typeof oe=="object"?`url(#${x})`:void 0,ne=f2(R,M,q,K,T,l,c,oe,"butt",s,A);return q+=(M-ne.strokeDashoffset+A)*100/M,v.createElement("circle",{key:Y,className:Z(`${r}-circle-path`,n.track),r:E,cx:b,cy:b,stroke:ee,strokeWidth:s,opacity:1,style:{...ne,...i.track},ref:le=>{z[Y]=le}})})};return v.createElement("svg",aG({className:Z(`${r}-circle`,n.root,p),viewBox:`0 0 ${sS} ${sS}`,style:{...i.root,...h},id:t,role:"presentation"},y),!D&&v.createElement("circle",{className:Z(`${r}-circle-rail`,n.rail),r:E,cx:b,cy:b,stroke:u,strokeLinecap:k,strokeWidth:a||s,style:{...N,...i.rail}}),D?V():W(),H)};function Og(e){return!e||e<0?0:e>100?100:e}function AM({success:e}){let t;return e&&"percent"in e&&(t=e.percent),t}const k3e=({percent:e,success:t})=>{const r=Og(AM({success:t}));return[r,Og(Og(e)-r)]},O3e=({success:e={},strokeColor:t})=>{const{strokeColor:r}=e;return[r||Cy.green,t||null]},aA=(e,t,r)=>{let n=-1,i=-1;if(t==="step"){const o=r.steps,s=r.strokeWidth;typeof e=="string"||typeof e>"u"?(n=e==="small"?2:14,i=s??8):typeof e=="number"?[n,i]=[e,e]:[n=14,i=8]=Array.isArray(e)?e:[e.width,e.height],n*=o}else if(t==="line"){const o=r==null?void 0:r.strokeWidth;typeof e=="string"||typeof e>"u"?i=o||(e==="small"?6:8):typeof e=="number"?[n,i]=[e,e]:[n=-1,i=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[n,i]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[n,i]=[e,e]:Array.isArray(e)&&(n=e[0]??e[1]??120,i=e[0]??e[1]??120));return[n,i]},N3e=3,B3e=e=>N3e/e*100,wX=["root","body","indicator"],$3e=e=>{const{prefixCls:t,classNames:r,styles:n,railColor:i,trailColor:o,strokeLinecap:s="round",gapPosition:a,gapPlacement:l,gapDegree:c,width:u=120,type:d,children:h,success:p,size:f=u,steps:g}=e,{direction:m}=Fr("progress"),y=i??o,[b,S]=aA(f,"circle");let{strokeWidth:x}=e;x===void 0&&(x=Math.max(B3e(b),6));const E={width:b,height:S,fontSize:b*.15+6},R=v.useMemo(()=>{if(c||c===0)return c;if(d==="dashboard")return 75},[c,d]),T=k3e(e),M=v.useMemo(()=>{const k=(l??a)||d==="dashboard"&&"bottom"||void 0,B=m==="rtl";switch(k){case"start":return B?"right":"left";case"end":return B?"left":"right";default:return k}},[m,l,a,d]),D=Object.prototype.toString.call(e.strokeColor)==="[object Object]",A=O3e({success:p,strokeColor:e.strokeColor}),I=Z(`${t}-body`,{[`${t}-circle-gradient`]:D},r.body),L=v.createElement(_3e,{steps:g,percent:g?T[1]:T,strokeWidth:x,railWidth:x,strokeColor:g?A[1]:A,strokeLinecap:s,railColor:y,prefixCls:t,gapDegree:R,gapPosition:M,classNames:fn(r,wX),styles:fn(n,wX)}),F=b<=20,O=v.createElement("div",{className:I,style:{...E,...n.body}},L,!F&&h);return F?v.createElement(El,{title:h},O):O},lG="--progress-line-stroke-color",G3e=e=>{const t="-100%";return new qr("antProgressLTRActive",{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},V3e=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:{...on(e),display:"inline-flex","&-rtl":{direction:"rtl"},[`${t}-indicator`]:{color:e.colorText,lineHeight:1,whiteSpace:"nowrap",verticalAlign:"middle",wordBreak:"normal",[r]:{fontSize:e.fontSize}},[`&${t}-status-exception`]:{[`${t}-indicator`]:{color:e.colorError}},[`&${t}-status-success`]:{[`${t}-indicator`]:{color:e.colorSuccess}}}}},z3e=e=>{const{componentCls:t}=e;return{[`${t}-line`]:{position:"relative",width:"100%",fontSize:e.fontSize,[`${t}-body`]:{display:"inline-flex",alignItems:"center",width:"100%",gap:e.marginXS},[`${t}-rail`]:{flex:"auto",background:e.remainingColor,borderRadius:e.lineBorderRadius,position:"relative",width:"100%",overflow:"hidden"},[`&${t}-status-active`]:{[`${t}-track:after`]:{content:'""',position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:"inherit",opacity:0,animationName:G3e(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite"}},[`${t}-track`]:{position:"absolute",insetInlineStart:0,insetBlock:0,borderRadius:"inherit",background:e.defaultColor,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,minWidth:"max-content",display:"flex",alignItems:"center","&-success":{background:e.colorSuccess}},[`&${t}-status-exception`]:{[`${t}-track`]:{background:e.colorError}},[`&${t}-status-success`]:{[`${t}-track`]:{background:e.colorSuccess}},[`${t}-indicator-outer`]:{[`&${t}-indicator-start`]:{order:-1}},[`${t}-body-layout-bottom`]:{flexDirection:"column",alignItems:"center",gap:e.marginXXS},[`${t}-indicator${t}-indicator-inner`]:{color:e.colorWhite,paddingInline:e.paddingXXS,width:"100%",display:"flex",justifyContent:"center",[`&${t}-indicator-end`]:{justifyContent:"end"},[`&${t}-indicator-start`]:{justifyContent:"start"},[`&${t}-indicator-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}}},H3e=e=>{const{componentCls:t,iconCls:r}=e;return{[`${t}-circle`]:{[`${t}-circle-rail`]:{stroke:e.remainingColor},[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-body`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`${t}-indicator`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[r]:{fontSize:e.circleIconFontSize}},[`&${t}-status-exception`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}}},[`&${t}-status-success`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},W3e=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-body":{display:"flex",flexDirection:"row",alignItems:"center",gap:e.progressStepMarginInlineEnd,[`${t}-indicator`]:{marginInlineStart:e.marginXS}},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},U3e=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-indicator ${r}`]:{fontSize:e.fontSizeSM}}}},j3e=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),K3e=zr("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),r=$r(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[V3e(r),z3e(r),H3e(r),W3e(r),U3e(r)]},j3e),q3e=e=>{let t=[];return Object.keys(e).forEach(r=>{const n=Number.parseFloat(r.replace(/%/g,""));Number.isNaN(n)||t.push({key:n,value:e[r]})}),t=t.sort((r,n)=>r.key-n.key),t.map(({key:r,value:n})=>`${n} ${r}%`).join(", ")},X3e=(e,t)=>{const{from:r=Cy.blue,to:n=Cy.blue,direction:i=t==="rtl"?"to left":"to right",...o}=e;if(Object.keys(o).length!==0){const a=q3e(o),l=`linear-gradient(${i}, ${a})`;return{background:l,[lG]:l}}const s=`linear-gradient(${i}, ${r}, ${n})`;return{background:s,[lG]:s}},Y3e=e=>{const{prefixCls:t,classNames:r,styles:n,direction:i,percent:o,size:s,strokeWidth:a,strokeColor:l,strokeLinecap:c="round",children:u,railColor:d,trailColor:h,percentPosition:p,success:f}=e,{align:g,type:m}=p,y=d??h,b=c==="square"||c==="butt"?0:void 0,S=s??[-1,a||(s==="small"?6:8)],[x,E]=aA(S,"line",{strokeWidth:a}),R={backgroundColor:y||void 0,borderRadius:b,height:E},T=`${t}-track`,M=l&&typeof l!="string"?X3e(l,i):{[lG]:l,background:l},D={width:`${Og(o)}%`,height:E,borderRadius:b,...M},A=AM(e),I={width:`${Og(A)}%`,height:E,borderRadius:b,backgroundColor:f==null?void 0:f.strokeColor};return v.createElement("div",{className:Z(`${t}-body`,r.body,{[`${t}-body-layout-bottom`]:g==="center"&&m==="outer"}),style:{width:x>0?x:"100%",...n.body}},v.createElement("div",{className:Z(`${t}-rail`,r.rail),style:{...R,...n.rail}},v.createElement("div",{className:Z(T,r.track),style:{...D,...n.track}},m==="inner"&&u),A!==void 0&&v.createElement("div",{className:Z(T,`${T}-success`,r.track),style:{...I,...n.track}})),m==="outer"&&u)},Z3e=e=>{const{classNames:t,styles:r,size:n,steps:i,rounding:o=Math.round,percent:s=0,strokeWidth:a=8,strokeColor:l,railColor:c,trailColor:u,prefixCls:d,children:h}=e,p=o(i*(s/100)),g=n??[n==="small"?2:14,a],[m,y]=aA(g,"step",{steps:i,strokeWidth:a}),b=m/i,S=Array.from({length:i}),x=c??u;for(let E=0;E{const{prefixCls:r,className:n,rootClassName:i,classNames:o,styles:s,steps:a,strokeColor:l,percent:c=0,size:u="medium",showInfo:d=!0,type:h="line",status:p,format:f,style:g,percentPosition:m={},...y}=e,{align:b="end",type:S="outer"}=m,x=Array.isArray(l)?l[0]:l,E=typeof l=="string"||Array.isArray(l)?l:void 0,R=v.useMemo(()=>{if(x){const oe=typeof x=="string"?x:Object.values(x)[0];return new cn(oe).isLight()}return!1},[l]),T=v.useMemo(()=>{var ee,ne;const oe=AM(e);return Number.parseInt(oe!==void 0?(ee=oe??0)==null?void 0:ee.toString():(ne=c??0)==null?void 0:ne.toString(),10)},[c,e.success]),M=v.useMemo(()=>!Q3e.includes(p)&&T>=100?"success":p||"normal",[p,T]),{getPrefixCls:D,direction:A,className:I,style:L,classNames:F,styles:O}=Fr("progress"),k=D("progress",r),[B,H]=K3e(k),N={...e,percent:c,type:h,size:u,showInfo:d,percentPosition:m},[z,W]=Gr([F,o],[O,s],{props:N}),V=h==="line",$=V&&!a,K=v.useMemo(()=>{if(!d)return null;const oe=AM(e);let ee;const ne=f||(he=>`${he}%`),le=V&&R&&S==="inner";return S==="inner"||f||M!=="exception"&&M!=="success"?ee=ne(Og(c),Og(oe)):M==="exception"?ee=V?v.createElement(AC,null):v.createElement(Xd,null):M==="success"&&(ee=V?v.createElement(zD,null):v.createElement(cH,null)),v.createElement("span",{className:Z(`${k}-indicator`,{[`${k}-indicator-bright`]:le,[`${k}-indicator-${b}`]:$,[`${k}-indicator-${S}`]:$},z.indicator),style:W.indicator,title:typeof ee=="string"?ee:void 0},ee)},[d,c,T,M,h,k,f,V,R,S,b,$,z.indicator,W.indicator]),q={...e,classNames:z,styles:W};let X;h==="line"?X=a?v.createElement(Z3e,{...q,strokeColor:E,prefixCls:k,steps:typeof a=="object"?a.count:a},K):v.createElement(Y3e,{...q,strokeColor:x,prefixCls:k,direction:A,percentPosition:{align:b,type:S}},K):(h==="circle"||h==="dashboard")&&(X=v.createElement($3e,{...q,strokeColor:x,prefixCls:k,progressStatus:M},K));const Y=Z(k,`${k}-status-${M}`,{[`${k}-${h==="dashboard"&&"circle"||h}`]:h!=="line",[`${k}-inline-circle`]:h==="circle"&&aA(u,"circle")[0]<=20,[`${k}-line`]:$,[`${k}-line-align-${b}`]:$,[`${k}-line-position-${S}`]:$,[`${k}-steps`]:a,[`${k}-show-info`]:d,[`${k}-small`]:u==="small",[`${k}-rtl`]:A==="rtl"},I,n,i,z.root,B,H);return v.createElement("div",{ref:t,style:{...L,...W.root,...g},className:Y,role:"progressbar","aria-valuenow":T,"aria-valuemin":0,"aria-valuemax":100,...fn(y,["railColor","trailColor","strokeWidth","width","gapDegree","gapPosition","gapPlacement","strokeLinecap","success"])},X)});var e4e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};function cG(){return cG=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,cG({},e,{ref:t,icon:e4e})),n$t=v.forwardRef(t4e);var r4e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"};function uG(){return uG=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,uG({},e,{ref:t,icon:r4e})),i$t=v.forwardRef(n4e);var i4e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"};function dG(){return dG=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,dG({},e,{ref:t,icon:i4e})),s4e=v.forwardRef(o4e),a4e=()=>v.createElement("svg",{width:"252",height:"294"},v.createElement("title",null,"No Found"),v.createElement("g",{fill:"none",fillRule:"evenodd"},v.createElement("circle",{cx:"126.75",cy:"128.1",r:"126",fill:"#E4EBF7"}),v.createElement("circle",{cx:"31.55",cy:"130.8",r:"8.3",fill:"#FFF"}),v.createElement("path",{stroke:"#FFF",d:"m37 134.3 10.5 6m.9 6.2-12.7 10.8",strokeWidth:"2"}),v.createElement("path",{fill:"#FFF",d:"M39.9 159.4a5.7 5.7 0 1 1-11.3-1.2 5.7 5.7 0 0 1 11.3 1.2m17.7-16.2a5.7 5.7 0 1 1-11.4-1.1 5.7 5.7 0 0 1 11.4 1.1M99 27h29.8a4.6 4.6 0 1 0 0-9.2H99a4.6 4.6 0 1 0 0 9.2m11.4 18.3h29.8a4.6 4.6 0 0 0 0-9.2h-29.8a4.6 4.6 0 1 0 0 9.2"}),v.createElement("path",{fill:"#FFF",d:"M112.8 26.9h15.8a4.6 4.6 0 1 0 0 9.1h-15.8a4.6 4.6 0 0 0 0-9.1m71.7 108.8a10 10 0 1 1-19.8-2 10 10 0 0 1 19.8 2"}),v.createElement("path",{stroke:"#FFF",d:"m179.3 141.8 12.6 7.1m1.1 7.6-15.2 13",strokeWidth:"2"}),v.createElement("path",{fill:"#FFF",d:"M184.7 170a6.8 6.8 0 1 1-13.6-1.3 6.8 6.8 0 0 1 13.6 1.4m18.6-16.8a6.9 6.9 0 1 1-13.7-1.4 6.9 6.9 0 0 1 13.7 1.4"}),v.createElement("path",{stroke:"#FFF",d:"M152 192.3a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.4 0zm73.3-76.2a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0zm-9 35a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.5 0zM177 107.6a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm18.4-15.4a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0zm6.8 88.5a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0z",strokeWidth:"2"}),v.createElement("path",{stroke:"#FFF",d:"m214.4 153.3-2 20.2-10.8 6m-28-4.7-6.3 9.8H156l-4.5 6.5m23.5-66v-15.7m46 7.8-13 8-15.2-8V94.4",strokeWidth:"2"}),v.createElement("path",{fill:"#FFF",d:"M166.6 66h-4a4.8 4.8 0 0 1-4.7-4.8 4.8 4.8 0 0 1 4.7-4.7h4a4.8 4.8 0 0 1 4.7 4.7 4.8 4.8 0 0 1-4.7 4.7"}),v.createElement("circle",{cx:"204.3",cy:"30",r:"29.5",fill:"#1677ff"}),v.createElement("path",{fill:"#FFF",d:"M206 38.4c.5.5.7 1.1.7 2s-.2 1.4-.7 1.9a3 3 0 0 1-2 .7c-.8 0-1.5-.3-2-.8s-.8-1.1-.8-1.9.3-1.4.8-2c.5-.4 1.2-.7 2-.7.7 0 1.4.3 2 .8m4.2-19.5c1.5 1.3 2.2 3 2.2 5.2a7.2 7.2 0 0 1-1.5 4.5l-3 2.7a5 5 0 0 0-1.3 1.7 5.2 5.2 0 0 0-.6 2.4v.5h-4v-.5c0-1.4.1-2.5.6-3.5s1.9-2.5 4.2-4.5l.4-.5a4 4 0 0 0 1-2.6c0-1.2-.4-2-1-2.8-.7-.6-1.6-1-2.9-1-1.5 0-2.6.5-3.3 1.5-.4.5-.6 1-.8 1.9a2 2 0 0 1-2 1.6 2 2 0 0 1-2-2.4c.4-1.6 1-2.8 2.1-3.8a8.5 8.5 0 0 1 6.3-2.3c2.3 0 4.2.6 5.6 2"}),v.createElement("path",{fill:"#FFB594",d:"M52 76.1s21.8 5.4 27.3 16c5.6 10.7-6.3 9.2-15.7 5C52.8 92 39 85 52 76"}),v.createElement("path",{fill:"#FFC6A0",d:"m90.5 67.5-.5 2.9c-.7.5-4.7-2.7-4.7-2.7l-1.7.8-1.3-5.7s6.8-4.6 9-5c2.4-.5 9.8 1 10.6 2.3 0 0 1.3.4-2.2.6-3.6.3-5 .5-6.8 3.2l-2.4 3.6"}),v.createElement("path",{fill:"#FFF",d:"M128 111.4a36.7 36.7 0 0 0-8.9-15.5c-3.5-3-9.3-2.2-11.3-4.2-1.3-1.2-3.2-1.2-3.2-1.2L87.7 87c-2.3-.4-2.1-.7-6-1.4-1.6-1.9-3-1.1-3-1.1l-7-1.4c-1-1.5-2.5-1-2.5-1l-2.4-.9C65 91.2 59 95 59 95c1.8 1.1 15.7 8.3 15.7 8.3l5.1 37.1s-3.3 5.7 1.4 9.1c0 0 19.9-3.7 34.9-.3 0 0 3-2.6 1-8.8.5-3 1.4-8.3 1.7-11.6.4.7 2 1.9 3.1 3.4 0 0 9.4-7.3 11-14a17 17 0 0 1-2.2-2.4c-.5-.8-.3-2-.7-2.8-.7-1-1.8-1.3-2-1.6"}),v.createElement("path",{fill:"#CBD1D1",d:"M101 290s4.4 2 7.4 1c2.9-1 4.6.7 7.1 1.2 2.6.5 6.9 1.1 11.7-1.3 0-5.5-6.9-4-12-6.7-2.5-1.4-3.7-4.7-3.5-8.8h-9.5s-1.2 10.6-1 14.6"}),v.createElement("path",{fill:"#2B0849",d:"M101 289.8s2.5 1.3 6.8.7c3-.5 3.7.5 7.4 1 3.8.6 10.8 0 11.9-.9.4 1.1-.4 2-.4 2s-1.5.7-4.8.9c-2 .1-5.8.3-7.6-.5-1.8-1.4-5.2-1.9-5.7-.2-4 1-7.4-.3-7.4-.3l-.1-2.7z"}),v.createElement("path",{fill:"#A4AABA",d:"M108.3 276h3.1s0 6.7 4.6 8.6c-4.7.6-8.6-2.3-7.7-8.6"}),v.createElement("path",{fill:"#CBD1D1",d:"M57.5 272.4s-2 7.4-4.4 12.3c-1.8 3.7-4.3 7.5 5.4 7.5 6.7 0 9-.5 7.4-6.6-1.5-6.1.3-13.2.3-13.2h-8.7z"}),v.createElement("path",{fill:"#2B0849",d:"M51.5 289.8s2 1.2 6.6 1.2c6 0 8.3-1.7 8.3-1.7s.6 1.1-.7 2.2c-1 .8-3.6 1.6-7.4 1.5-4.1 0-5.8-.5-6.7-1.1-.8-.6-.7-1.6-.1-2.1"}),v.createElement("path",{fill:"#A4AABA",d:"M58.4 274.3s0 1.5-.3 3c-.3 1.4-1 3-1.1 4 0 1.2 4.5 1.7 5.1.1.6-1.5 1.3-6.4 2-7.2.6-.9-5-2.2-5.7.1"}),v.createElement("path",{fill:"#7BB2F9",d:"m99.7 278.5 13.3.1s1.3-54.5 1.9-64.4c.5-9.9 3.8-43.4 1-63.1l-12.6-.7-22.8.8-1.2 10c0 .5-.7.8-.7 1.4-.1.5.4 1.3.3 2-2.4 14-6.4 33-8.8 46.6 0 .7-1.2 1-1.4 2.7 0 .3.2 1.5 0 1.8-6.8 18.7-10.9 47.8-14.2 61.9h14.6s2.2-8.6 4-17c2.9-12.9 23.2-85 23.2-85l3-.5 1 46.3s-.2 1.2.4 2c.5.8-.6 1.1-.4 2.3l.4 1.8-1 11.8c-.4 4.8 0 39.2 0 39.2"}),v.createElement("path",{stroke:"#648BD8",d:"M76 221.6c1.2.1 4.1-2 7-5m23.4 8.5s2.7-1 6-3.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),v.createElement("path",{stroke:"#648BD8",d:"M107.3 222.1s2.7-1.1 6-3.9",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{stroke:"#648BD8",d:"M74.7 224.8s2.7-.6 6.5-3.4m4.8-69.8c-.2 3.1.3 8.6-4.3 9.2m22-11s0 14-1.4 15.1a15 15 0 0 1-3 2m.5-16.5s0 13-1.2 24.4m-5 1.1s7.3-1.7 9.5-1.7M74.3 206a212 212 0 0 1-1 4.5s-1.4 1.9-1 3.8c.5 2-1 2-5 15.4A353 353 0 0 0 61 257l-.2 1.2m14.9-60.5a321 321 0 0 1-.9 4.8m7.8-50.4-1.2 10.5s-1.1.1-.5 2.2c.1 1.4-2.7 15.8-5.2 30.5m-19.6 79h13.3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),v.createElement("path",{fill:"#192064",d:"M116.2 148.2s-17-3-35.9.2c.2 2.5 0 4.2 0 4.2s14.7-2.8 35.7-.3c.3-2.4.2-4 .2-4"}),v.createElement("path",{fill:"#FFF",d:"M106.3 151.2v-5a.8.8 0 0 0-.8-.8h-7.8a.8.8 0 0 0-.8.8v5a.8.8 0 0 0 .8.8h7.8a.8.8 0 0 0 .8-.8"}),v.createElement("path",{fill:"#192064",d:"M105.2 150.2v-3a.6.6 0 0 0-.6-.7 94.3 94.3 0 0 0-5.9 0 .7.7 0 0 0-.6.6v3.1a.6.6 0 0 0 .6.7 121.1 121.1 0 0 1 5.8 0c.4 0 .7-.3.7-.7"}),v.createElement("path",{stroke:"#648BD8",d:"M100.3 275.4h12.3m-11.2-4.9.1 6.5m0-12.5a915.8 915.8 0 0 0 0 4.4m-.5-94 .9 44.7s.7 1.6-.2 2.7c-1 1.1 2.4.7.9 2.2-1.6 1.6.9 1.2 0 3.4-.6 1.5-1 21.1-1.1 35.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),v.createElement("path",{fill:"#FFC6A0",d:"M46.9 83.4s-.5 6 7.2 5.6c11.2-.7 9.2-9.4 31.5-21.7-.7-2.7-2.4-4.7-2.4-4.7s-11 3-22.6 8c-6.8 3-13.4 6.4-13.7 12.8m57.6 7.7.9-5.4-8.9-11.4-5 5.3-1.8 7.9a.3.3 0 0 0 .1.3c1 .8 6.5 5 14.4 3.5a.3.3 0 0 0 .3-.2"}),v.createElement("path",{fill:"#FFC6A0",d:"M94 79.4s-4.6-2.9-2.5-6.9c1.6-3 4.5 1.2 4.5 1.2s.5-3.7 3.1-3.7c.6-1 1.6-4.1 1.6-4.1l13.5 3c0 5.3-2.3 19.5-7.8 20-8.9.6-12.5-9.5-12.5-9.5"}),v.createElement("path",{fill:"#520038",d:"M113.9 73.4c2.6-2 3.4-9.7 3.4-9.7s-2.4-.5-6.6-2c-4.7-2.1-12.8-4.8-17.5 1-9.6 3.2-2 19.8-2 19.8l2.7-3s-4-3.3-2-6.3c2-3.5 3.8 1 3.8 1s.7-2.3 3.6-3.3c.4-.7 1-2.6 1.4-3.8a1 1 0 0 1 1.3-.7l11.4 2.6c.5.2.8.7.8 1.2l-.3 3.2z"}),v.createElement("path",{fill:"#552950",d:"M105 76c-.1.7-.6 1.1-1 1-.6 0-.9-.6-.8-1.2.1-.6.6-1 1-1 .6 0 .9.7.8 1.3m7.1 1.6c0 .6-.5 1-1 1-.5-.1-.8-.7-.7-1.3 0-.6.5-1 1-1 .5.1.8.7.7 1.3"}),v.createElement("path",{stroke:"#DB836E",d:"m110.1 74.8-.9 1.7-.3 4.3h-2.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),v.createElement("path",{stroke:"#5C2552",d:"M110.8 74.5s1.8-.7 2.6.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),v.createElement("path",{stroke:"#DB836E",d:"M92.4 74.3s.5-1.1 1.1-.7c.6.4 1.3 1.4.6 2-.8.5.1 1.6.1 1.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),v.createElement("path",{stroke:"#5C2552",d:"M103.3 73s1.8 1 4.1.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),v.createElement("path",{stroke:"#DB836E",d:"M103.7 81.8s2.2 1.2 4.4 1.2m-3.5 1.3s1 .4 1.6.3m-11.5-3.4s2.3 7.4 10.4 7.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),v.createElement("path",{stroke:"#E4EBF7",d:"M81.5 89.4s.4 5.6-5 12.8M69 82.7s-.7 9.2-8.2 14.2m68.6 26s-5.3 7.4-9.4 10.7m-.7-26.3s.5 4.4-2.1 32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),v.createElement("path",{fill:"#F2D7AD",d:"M150 151.2h-49.8a1 1 0 0 1-1-1v-31.7c0-.5.4-1 1-1H150c.6 0 1 .5 1 1v31.7a1 1 0 0 1-1 1"}),v.createElement("path",{fill:"#F4D19D",d:"M150.3 151.2h-19.9v-33.7h20.8v32.8a1 1 0 0 1-1 1"}),v.createElement("path",{fill:"#F2D7AD",d:"M123.6 127.9H92.9a.5.5 0 0 1-.4-.8l6.4-9.1c.2-.3.5-.5.8-.5h31.1l-7.2 10.4z"}),v.createElement("path",{fill:"#CC9B6E",d:"M123.7 128.4H99.2v-.5h24.2l7.2-10.2.4.3z"}),v.createElement("path",{fill:"#F4D19D",d:"M158.3 127.9h-18.7a2 2 0 0 1-1.6-.8l-7.2-9.6h20c.5 0 1 .3 1.2.6l6.7 9a.5.5 0 0 1-.4.8"}),v.createElement("path",{fill:"#CC9B6E",d:"M157.8 128.5h-19.3l-7.9-10.5.4-.3 7.7 10.3h19.1zm-27.2 22.2v-8.2h.4v8.2zm-.1-10.9v-21.4h.4l.1 21.4zm-18.6 1.1-.5-.1 1.5-5.2.5.2zm-3.5.2-2.6-3 2.6-3.4.4.3-2.4 3.1 2.4 2.6zm8.2 0-.4-.4 2.4-2.6-2.4-3 .4-.4 2.7 3.4z"}),v.createElement("path",{fill:"#FFC6A0",d:"m154.3 131.9-3.1-2v3.5l-1 .1a85 85 0 0 1-4.8.3c-1.9 0-2.7 2.2 2.2 2.6l-2.6-.6s-2.2 1.3.5 2.3c0 0-1.6 1.2.6 2.6-.6 3.5 5.2 4 7 3.6a6.1 6.1 0 0 0 4.6-5.2 8 8 0 0 0-3.4-7.2"}),v.createElement("path",{stroke:"#DB836E",d:"M153.7 133.6s-6.5.4-8.4.3c-1.8 0-1.9 2.2 2.4 2.3 3.7.2 5.4 0 5.4 0",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),v.createElement("path",{stroke:"#DB836E",d:"M145.2 135.9c-1.9 1.3.5 2.3.5 2.3s3.5 1 6.8.6m-.6 2.9s-6.3.1-6.7-2.1c-.3-1.4.4-1.4.4-1.4m.5 2.7s-1 3.1 5.5 3.5m-.4-14.5v3.5M52.8 89.3a18 18 0 0 0 13.6-7.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),v.createElement("path",{fill:"#5BA02E",d:"M168.6 248.3a6.6 6.6 0 0 1-6.7-6.6v-66.5a6.6 6.6 0 1 1 13.3 0v66.5a6.6 6.6 0 0 1-6.6 6.6"}),v.createElement("path",{fill:"#92C110",d:"M176.5 247.7a6.6 6.6 0 0 1-6.6-6.7v-33.2a6.6 6.6 0 1 1 13.3 0V241a6.6 6.6 0 0 1-6.7 6.7"}),v.createElement("path",{fill:"#F2D7AD",d:"M186.4 293.6H159a3.2 3.2 0 0 1-3.2-3.2v-46.1a3.2 3.2 0 0 1 3.2-3.2h27.5a3.2 3.2 0 0 1 3.2 3.2v46.1a3.2 3.2 0 0 1-3.2 3.2"}),v.createElement("path",{stroke:"#E4EBF7",d:"M89 89.5s7.8 5.4 16.6 2.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}))),l4e=()=>v.createElement("svg",{width:"254",height:"294"},v.createElement("title",null,"Server Error"),v.createElement("g",{fill:"none",fillRule:"evenodd"},v.createElement("path",{fill:"#E4EBF7",d:"M0 128.1v-2C0 56.5 56.3.2 125.7.2h2.1C197.2.3 253.5 56.6 253.5 126v2.1c0 69.5-56.3 125.7-125.7 125.7h-2.1A125.7 125.7 0 0 1 0 128.1"}),v.createElement("path",{fill:"#FFF",d:"M40 132.1a8.3 8.3 0 1 1-16.6-1.7 8.3 8.3 0 0 1 16.6 1.7"}),v.createElement("path",{stroke:"#FFF",d:"m37.2 135.6 10.5 6m1 6.3-12.8 10.8",strokeWidth:"2"}),v.createElement("path",{fill:"#FFF",d:"M40.1 160.8a5.7 5.7 0 1 1-11.3-1.1 5.7 5.7 0 0 1 11.3 1.1M58 144.6a5.7 5.7 0 1 1-11.4-1.2 5.7 5.7 0 0 1 11.4 1.2M99.7 27.4h30a4.6 4.6 0 1 0 0-9.2h-30a4.6 4.6 0 0 0 0 9.2M111 46h30a4.6 4.6 0 1 0 0-9.3h-30a4.6 4.6 0 1 0 0 9.3m2.5-18.6h16a4.6 4.6 0 1 0 0 9.3h-16a4.6 4.6 0 0 0 0-9.3m36.7 42.7h-4a4.8 4.8 0 0 1-4.8-4.8 4.8 4.8 0 0 1 4.8-4.8h4a4.8 4.8 0 0 1 4.7 4.8 4.8 4.8 0 0 1-4.7 4.8"}),v.createElement("circle",{cx:"201.35",cy:"30.2",r:"29.7",fill:"#FF603B"}),v.createElement("path",{fill:"#FFF",d:"m203.6 19.4-.7 15a1.5 1.5 0 0 1-3 0l-.7-15a2.2 2.2 0 1 1 4.4 0m-.3 19.4c.5.5.8 1.1.8 1.9s-.3 1.4-.8 1.9a3 3 0 0 1-2 .7 2.5 2.5 0 0 1-1.8-.7c-.6-.6-.8-1.2-.8-2 0-.7.2-1.3.8-1.8.5-.5 1.1-.7 1.8-.7.8 0 1.5.2 2 .7"}),v.createElement("path",{fill:"#FFB594",d:"M119.3 133.3c4.4-.6 3.6-1.2 4-4.8.8-5.2-3-17-8.2-25.1-1-10.7-12.6-11.3-12.6-11.3s4.3 5 4.2 16.2c1.4 5.3.8 14.5.8 14.5s5.3 11.4 11.8 10.5"}),v.createElement("path",{fill:"#FFF",d:"M101 91.6s1.4-.6 3.2.6c8 1.4 10.3 6.7 11.3 11.4 1.8 1.2 1.8 2.3 1.8 3.5l1.5 3s-7.2 1.7-11 6.7c-1.3-6.4-6.9-25.2-6.9-25.2"}),v.createElement("path",{fill:"#FFB594",d:"m94 90.5 1-5.8-9.2-11.9-5.2 5.6-2.6 9.9s8.4 5 16 2.2"}),v.createElement("path",{fill:"#FFC6A0",d:"M83 78.2s-4.6-2.9-2.5-6.9c1.6-3 4.5 1.2 4.5 1.2s.5-3.7 3.2-3.7c.5-1 1.5-4.2 1.5-4.2l13.6 3.2c0 5.2-2.3 19.5-7.9 20-8.9.6-12.5-9.6-12.5-9.6"}),v.createElement("path",{fill:"#520038",d:"M103 72.2c2.6-2 3.5-9.7 3.5-9.7s-2.5-.5-6.7-2c-4.7-2.2-12.9-4.9-17.6.9-9.5 4.4-2 20-2 20l2.7-3.1s-4-3.3-2.1-6.3c2.2-3.5 4 1 4 1s.6-2.3 3.5-3.3c.4-.7 1-2.7 1.5-3.8A1 1 0 0 1 91 65l11.5 2.7c.5.1.8.6.8 1.2l-.3 3.2z"}),v.createElement("path",{fill:"#552950",d:"M101.2 76.5c0 .6-.6 1-1 1-.5-.1-.9-.7-.8-1.3.1-.6.6-1 1.1-1 .5.1.8.7.7 1.3m-7-1.4c0 .6-.5 1-1 1-.5-.1-.8-.7-.7-1.3 0-.6.6-1 1-1 .5.1.9.7.8 1.3"}),v.createElement("path",{stroke:"#DB836E",d:"m99.2 73.6-.9 1.7-.3 4.3h-2.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),v.createElement("path",{stroke:"#5C2552",d:"M100 73.3s1.7-.7 2.4.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),v.createElement("path",{stroke:"#DB836E",d:"M81.4 73s.4-1 1-.6c.7.4 1.4 1.4.6 2s.2 1.6.2 1.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),v.createElement("path",{stroke:"#5C2552",d:"M92.3 71.7s1.9 1.1 4.2 1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),v.createElement("path",{stroke:"#DB836E",d:"M92.7 80.6s2.3 1.2 4.4 1.2m-3.4 1.4s1 .4 1.5.3M83.7 80s1.8 6.6 9.2 8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),v.createElement("path",{stroke:"#E4EBF7",d:"M95.5 91.7s-1 2.8-8.2 2c-7.3-.6-10.3-5-10.3-5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),v.createElement("path",{fill:"#FFF",d:"M78.1 87.5s6.6 5 16.5 2.5c0 0 9.6 1 11.5 5.3 5.4 11.8.6 36.8 0 40 3.5 4-.4 8.4-.4 8.4-15.7-3.5-35.8-.6-35.8-.6-4.9-3.5-1.3-9-1.3-9l-6.2-23.8c-2.5-15.2.8-19.8 3.5-20.7 3-1 8-1.3 8-1.3.6 0 1.1 0 1.4-.2 2.4-1.3 2.8-.6 2.8-.6"}),v.createElement("path",{fill:"#FFC6A0",d:"M65.8 89.8s-6.8.5-7.6 8.2c-.4 8.8 3 11 3 11s6.1 22 16.9 22.9c8.4-2.2 4.7-6.7 4.6-11.4-.2-11.3-7-17-7-17s-4.3-13.7-9.9-13.7"}),v.createElement("path",{fill:"#FFC6A0",d:"M71.7 124.2s.9 11.3 9.8 6.5c4.8-2.5 7.6-13.8 9.8-22.6A201 201 0 0 0 94 96l-5-1.7s-2.4 5.6-7.7 12.3c-4.4 5.5-9.2 11.1-9.5 17.7"}),v.createElement("path",{stroke:"#E4EBF7",d:"M108.5 105.2s1.7 2.7-2.4 30.5c2.4 2.2 1 6-.2 7.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),v.createElement("path",{fill:"#FFC6A0",d:"M123.3 131.5s-.5 2.8-11.8 2c-15.2-1-25.3-3.2-25.3-3.2l.9-5.8s.7.2 9.7-.1c11.9-.4 18.7-6 25-1 4 3.2 1.5 8.1 1.5 8.1"}),v.createElement("path",{fill:"#FFF",d:"M70.2 91s-5.6-4.8-11 2.7c-3.3 7.2.5 15.2 2.6 19.5-.3 3.8 2.4 4.3 2.4 4.3s0 1 1.5 2.7c4-7 6.7-9.1 13.7-12.5-.3-.7-1.9-3.3-1.8-3.8.2-1.7-1.3-2.6-1.3-2.6s-.3-.2-1.2-2.8c-.8-2.3-2-5.1-4.9-7.5"}),v.createElement("path",{fill:"#CBD1D1",d:"M90.2 288s4.9 2.3 8.3 1.2c3.2-1 5.2.7 8 1.3a20 20 0 0 0 13.3-1.4c-.2-6.2-7.8-4.5-13.6-7.6-2.9-1.6-4.2-5.3-4-10H91.5s-1.5 12-1.3 16.5"}),v.createElement("path",{fill:"#2B0849",d:"M90.2 287.8s2.8 1.5 7.6.8c3.5-.5 3.3.6 7.5 1.3 4.2.6 13-.2 14.3-1.2.5 1.3-.4 2.4-.4 2.4s-1.7.6-5.4.9c-2.3.1-8.1.3-10.2-.6-2-1.6-4.9-1.5-6-.3-4.5 1.1-7.2-.3-7.2-.3l-.2-3z"}),v.createElement("path",{fill:"#A4AABA",d:"M98.4 272.3h3.5s0 7.5 5.2 9.6c-5.3.7-9.7-2.6-8.7-9.6"}),v.createElement("path",{fill:"#CBD1D1",d:"M44.4 272s-2.2 7.8-4.7 13c-1.9 3.8-4.4 7.8 5.8 7.8 7 0 9.3-.5 7.7-7-1.6-6.3.3-13.8.3-13.8h-9z"}),v.createElement("path",{fill:"#2B0849",d:"M38 290.3s2.3 1.2 7 1.2c6.4 0 8.7-1.7 8.7-1.7s.6 1.1-.7 2.2c-1 1-3.8 1.7-7.7 1.7-4.4 0-6.1-.6-7-1.3-1-.5-.8-1.6-.2-2.1"}),v.createElement("path",{fill:"#A4AABA",d:"M45.3 274s0 1.6-.3 3.1-1.1 3.3-1.2 4.4c0 1.2 4.8 1.6 5.4 0 .7-1.6 1.4-6.8 2-7.6.7-.9-5.1-2.2-5.9.1"}),v.createElement("path",{fill:"#7BB2F9",d:"M89.5 277.6h13.9s1.3-56.6 1.9-66.8c.6-10.3 4-45.1 1-65.6l-13-.7-23.7.8-1.3 10.4c0 .5-.7.9-.8 1.4 0 .6.5 1.4.4 2L59.6 206c-.1.7-1.3 1-1.5 2.8 0 .3.2 1.6.1 1.8-7.1 19.5-12.2 52.6-15.6 67.2h15.1L62 259c3-13.3 24-88.3 24-88.3l3.2-1-.2 48.6s-.2 1.3.4 2.1c.5.8-.6 1.2-.4 2.4l.4 1.8-1 12.4c-.4 4.9 1.2 40.7 1.2 40.7"}),v.createElement("path",{stroke:"#648BD8",d:"M64.6 218.9c1.2 0 4.2-2.1 7.2-5.1m24.2 8.7s3-1.1 6.4-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),v.createElement("path",{stroke:"#648BD8",d:"M97 219.4s2.9-1.2 6.3-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1"}),v.createElement("path",{stroke:"#648BD8",d:"M63.2 222.1s2.7-.6 6.7-3.5m5-72.4c-.3 3.2.3 8.8-4.5 9.4m22.8-11.3s.1 14.6-1.4 15.7c-2.3 1.7-3 2-3 2m.4-17s.3 13-1 25m-4.7.7s6.8-1 9.1-1M46 270l-.9 4.6m1.8-11.3-.8 4.1m16.6-64.9c-.3 1.6 0 2-.4 3.4 0 0-2.8 2-2.3 4s-.3 3.4-4.5 17.2c-1.8 5.8-4.3 19-6.2 28.3l-1.1 5.8m16-67-1 4.9m8.1-52.3-1.2 10.9s-1.2.1-.5 2.3c0 1.4-2.8 16.4-5.4 31.6m-20 82.1h13.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),v.createElement("path",{fill:"#192064",d:"M106.2 142.1c-3-.5-18.8-2.7-36.2.2a.6.6 0 0 0-.6.7v3a.6.6 0 0 0 .8.6c3.3-.5 17-2.4 35.6-.3.4 0 .7-.2.7-.5.2-1.4.2-2.5.2-3a.6.6 0 0 0-.5-.7"}),v.createElement("path",{fill:"#FFF",d:"M96.4 145.3v-5.1a.8.8 0 0 0-.8-.9 114.1 114.1 0 0 0-8.1 0 .8.8 0 0 0-.9.8v5.1c0 .5.4.9.9.9h8a.8.8 0 0 0 .9-.8"}),v.createElement("path",{fill:"#192064",d:"M95.2 144.3v-3.2a.7.7 0 0 0-.6-.7h-6.1a.7.7 0 0 0-.6.7v3.2c0 .4.3.7.6.7h6c.4 0 .7-.3.7-.7"}),v.createElement("path",{stroke:"#648BD8",d:"M90.1 273.5h12.8m-11.7-3.7v6.3m-.3-12.6v4.5m-.5-97.6 1 46.4s.7 1.6-.3 2.8c-.9 1.1 2.6.7 1 2.3-1.7 1.6.9 1.2 0 3.5-.6 1.6-1 22-1.2 36.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),v.createElement("path",{stroke:"#E4EBF7",d:"M73.7 98.7 76 103s2 .8 1.8 2.7l.8 2.2m-14.3 8.7c.2-1 2.2-7.1 12.6-10.5m.7-16s7.7 6 16.5 2.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),v.createElement("path",{fill:"#FFC6A0",d:"M92 87s5.5-.9 7.5-4.6c1.3-.3.8 2.2-.3 3.7l-1 1.5s.2.3.2.9c0 .6-.2.6-.3 1v1l-.4 1c-.1.2 0 .6-.2.9-.2.4-1.6 1.8-2.6 2.8-3.8 3.6-5 1.7-6-.4-1-1.8-.7-5.1-.9-6.9-.3-2.9-2.6-3-2-4.4.4-.7 3 .7 3.4 1.8.7 2 2.9 1.8 2.6 1.7"}),v.createElement("path",{stroke:"#DB836E",d:"M99.8 82.4c-.5.1-.3.3-1 1.3-.6 1-4.8 2.9-6.4 3.2-2.5.5-2.2-1.6-4.2-2.9-1.7-1-3.6-.6-1.4 1.4 1 1 1 1.1 1.4 3.2.3 1.5-.7 3.7.7 5.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),v.createElement("path",{stroke:"#E59788",d:"M79.5 108.7c-2 2.9-4.2 6.1-5.5 8.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),v.createElement("path",{fill:"#FFC6A0",d:"M87.7 124.8s-2-2-5.1-2.8c-3-.7-3.6-.1-5.5.1-2 .3-4-.9-3.7.7.3 1.7 5 1 5.2 2.1.2 1.1-6.3 2.8-8.3 2.2-.8.8.5 1.9 2 2.2.3 1.5 2.3 1.5 2.3 1.5s.7 1 2.6 1.1c2.5 1.3 9-.7 11-1.5 2-.9-.5-5.6-.5-5.6"}),v.createElement("path",{stroke:"#E59788",d:"M73.4 122.8s.7 1.2 3.2 1.4c2.3.3 2.6.6 2.6.6s-2.6 3-9.1 2.3m2.3 2.2s3.8 0 5-.7m-2.4 2.2s2 0 3.3-.6m-1 1.7s1.7 0 2.8-.5m-6.8-9s-.6-1.1 1.3-.5c1.7.5 2.8 0 5.1.1 1.4.1 3-.2 4 .2 1.6.8 3.6 2.2 3.6 2.2s10.6 1.2 19-1.1M79 108s-8.4 2.8-13.2 12.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),v.createElement("path",{stroke:"#E4EBF7",d:"M109.3 112.5s3.4-3.6 7.6-4.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),v.createElement("path",{stroke:"#E59788",d:"M107.4 123s9.7-2.7 11.4-.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),v.createElement("path",{stroke:"#BFCDDD",d:"m194.6 83.7 4-4M187.2 91l3.7-3.6m.9-3-4.5-4.7m11.2 11.5-4.2-4.3m-65 76.3 3.7-3.7M122.3 170l3.5-3.5m.8-2.9-4.3-4.2M133 170l-4-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),v.createElement("path",{fill:"#A3B4C6",d:"M190.2 211.8h-1.6a4 4 0 0 1-4-4v-32.1a4 4 0 0 1 4-4h1.6a4 4 0 0 1 4 4v32a4 4 0 0 1-4 4"}),v.createElement("path",{fill:"#A3B4C6",d:"M237.8 213a4.8 4.8 0 0 1-4.8 4.8h-86.6a4.8 4.8 0 0 1 0-9.6H233a4.8 4.8 0 0 1 4.8 4.8"}),v.createElement("path",{fill:"#A3B4C6",d:"M154.1 190.1h70.5v-84.6h-70.5z"}),v.createElement("path",{fill:"#BFCDDD",d:"M225 190.1h-71.2a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.2v19a3.2 3.2 0 0 1-3.2 3.2m0-59.3h-71.1a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.3v19a3.2 3.2 0 0 1-3.2 3.1"}),v.createElement("path",{fill:"#FFF",d:"M159.6 120.5a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8v-3.2c0-.4.3-.8.8-.8h22.4c.5 0 .8.4.8.8v3.2c0 .5-.3.8-.8.8"}),v.createElement("path",{fill:"#BFCDDD",d:"M225 160.5h-71.2a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.2v19a3.2 3.2 0 0 1-3.2 3.2"}),v.createElement("path",{stroke:"#7C90A5",d:"M173.5 130.8h49.3m-57.8 0h6m-15 0h6.7m11.1 29.8h49.3m-57.7 0h6m-15.8 0h6.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),v.createElement("path",{fill:"#FFF",d:"M159.6 151a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8V147c0-.4.3-.8.8-.8h22.4c.5 0 .8.4.8.8v3.2c0 .5-.3.8-.8.8m-63 29a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.5 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8V176c0-.5.3-.8.8-.8h22.4c.5 0 .8.3.8.8v3.2c0 .4-.3.8-.8.8"}),v.createElement("path",{fill:"#BFCDDD",d:"M203 221.1h-27.3a2.4 2.4 0 0 1-2.4-2.4v-11.4a2.4 2.4 0 0 1 2.4-2.5H203a2.4 2.4 0 0 1 2.4 2.5v11.4a2.4 2.4 0 0 1-2.4 2.4"}),v.createElement("path",{stroke:"#A3B4C6",d:"M177.3 207.2v11.5m23.8-11.5v11.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),v.createElement("path",{fill:"#5BA02E",d:"M162.9 267.9a9.4 9.4 0 0 1-9.4-9.4v-14.8a9.4 9.4 0 0 1 18.8 0v14.8a9.4 9.4 0 0 1-9.4 9.4"}),v.createElement("path",{fill:"#92C110",d:"M171.2 267.8a9.4 9.4 0 0 1-9.4-9.4V255a9.4 9.4 0 0 1 18.8 0v3.4a9.4 9.4 0 0 1-9.4 9.4"}),v.createElement("path",{fill:"#F2D7AD",d:"M181.3 293.7h-27.7a3.2 3.2 0 0 1-3.2-3.2v-20.7a3.2 3.2 0 0 1 3.2-3.2h27.7a3.2 3.2 0 0 1 3.2 3.2v20.7a3.2 3.2 0 0 1-3.2 3.2"}))),c4e=e=>{const{componentCls:t,lineHeightHeading3:r,iconCls:n,padding:i,paddingXL:o,paddingXS:s,paddingLG:a,marginXS:l,lineHeight:c}=e;return{[t]:{padding:`${ae(e.calc(a).mul(2).equal())} ${ae(o)}`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:a,textAlign:"center",[`& > ${n}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:r,marginBlock:l,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:c,textAlign:"center"},[`${t} ${t}-body`]:{marginTop:a,padding:`${ae(a)} ${ae(e.calc(i).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:s,"&:last-child":{marginInlineEnd:0}}}}},u4e=e=>{const{componentCls:t,iconCls:r}=e;return{[`${t}-success ${t}-icon > ${r}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${r}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${r}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${r}`]:{color:e.resultWarningIconColor}}},d4e=e=>[c4e(e),u4e(e)],h4e=e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:e.fontSizeHeading3*3,extraMargin:`${e.paddingLG}px 0 0 0`}),p4e=zr("Result",e=>{const t=e.colorInfo,r=e.colorError,n=e.colorSuccess,i=e.colorWarning,o=$r(e,{resultInfoIconColor:t,resultErrorIconColor:r,resultSuccessIconColor:n,resultWarningIconColor:i,imageWidth:250,imageHeight:295});return d4e(o)},h4e),f4e=()=>v.createElement("svg",{width:"251",height:"294"},v.createElement("title",null,"Unauthorized"),v.createElement("g",{fill:"none",fillRule:"evenodd"},v.createElement("path",{fill:"#E4EBF7",d:"M0 129v-2C0 58.3 55.6 2.7 124.2 2.7h2c68.6 0 124.2 55.6 124.2 124.1v2.1c0 68.6-55.6 124.2-124.1 124.2h-2.1A124.2 124.2 0 0 1 0 129"}),v.createElement("path",{fill:"#FFF",d:"M41.4 133a8.2 8.2 0 1 1-16.4-1.7 8.2 8.2 0 0 1 16.4 1.6"}),v.createElement("path",{stroke:"#FFF",d:"m38.7 136.4 10.4 5.9m.9 6.2-12.6 10.7",strokeWidth:"2"}),v.createElement("path",{fill:"#FFF",d:"M41.5 161.3a5.6 5.6 0 1 1-11.2-1.2 5.6 5.6 0 0 1 11.2 1.2m17.7-16a5.7 5.7 0 1 1-11.3-1.2 5.7 5.7 0 0 1 11.3 1.2m41.2-115.8H130a4.6 4.6 0 1 0 0-9.1h-29.6a4.6 4.6 0 0 0 0 9.1m11.3 18.3h29.7a4.6 4.6 0 1 0 0-9.2h-29.7a4.6 4.6 0 1 0 0 9.2"}),v.createElement("path",{fill:"#FFF",d:"M114 29.5h15.8a4.6 4.6 0 1 0 0 9.1H114a4.6 4.6 0 0 0 0-9.1m71.3 108.2a10 10 0 1 1-19.8-2 10 10 0 0 1 19.8 2"}),v.createElement("path",{stroke:"#FFF",d:"m180.2 143.8 12.5 7.1m1.1 7.5-15.1 13",strokeWidth:"2"}),v.createElement("path",{fill:"#FFF",d:"M185.6 172a6.8 6.8 0 1 1-13.6-1.4 6.8 6.8 0 0 1 13.5 1.3m18.6-16.6a6.8 6.8 0 1 1-13.6-1.4 6.8 6.8 0 0 1 13.6 1.4"}),v.createElement("path",{stroke:"#FFF",d:"M153 194a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm73-75.8a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.4 0zm-9 34.9a2.2 2.2 0 1 1-4.3 0 2.2 2.2 0 0 1 4.4 0zm-39.2-43.3a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm18.3-15.3a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm6.7 88a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0z",strokeWidth:"2"}),v.createElement("path",{stroke:"#FFF",d:"m215.1 155.3-1.9 20-10.8 6m-27.8-4.7-6.3 9.8H157l-4.5 6.4m23.4-65.5v-15.7m45.6 7.8-12.8 7.9-15.2-7.9V96.7",strokeWidth:"2"}),v.createElement("path",{fill:"#A26EF4",d:"M180.7 29.3a29.3 29.3 0 1 1 58.6 0 29.3 29.3 0 0 1-58.6 0"}),v.createElement("path",{fill:"#FFF",d:"m221.4 41.7-21.5-.1a1.7 1.7 0 0 1-1.7-1.8V27.6a1.7 1.7 0 0 1 1.8-1.7h21.5c1 0 1.8.9 1.8 1.8l-.1 12.3a1.7 1.7 0 0 1-1.7 1.7"}),v.createElement("path",{fill:"#FFF",d:"M215.1 29.2c0 2.6-2 4.6-4.5 4.6a4.6 4.6 0 0 1-4.5-4.7v-6.9c0-2.6 2-4.6 4.6-4.6 2.5 0 4.5 2 4.4 4.7v6.9zm-4.5-14a6.9 6.9 0 0 0-7 6.8v7.3a6.9 6.9 0 0 0 13.8.1V22a6.9 6.9 0 0 0-6.8-6.9zm-43 53.2h-4a4.7 4.7 0 0 1-4.7-4.8 4.7 4.7 0 0 1 4.7-4.7h4a4.7 4.7 0 0 1 4.7 4.8 4.7 4.7 0 0 1-4.7 4.7"}),v.createElement("path",{fill:"#5BA02E",d:"M168.2 248.8a6.6 6.6 0 0 1-6.6-6.6v-66a6.6 6.6 0 0 1 13.2 0v66a6.6 6.6 0 0 1-6.6 6.6"}),v.createElement("path",{fill:"#92C110",d:"M176.1 248.2a6.6 6.6 0 0 1-6.6-6.6v-33a6.6 6.6 0 1 1 13.3 0v33a6.6 6.6 0 0 1-6.7 6.6"}),v.createElement("path",{fill:"#F2D7AD",d:"M186 293.9h-27.4a3.2 3.2 0 0 1-3.2-3.2v-45.9a3.2 3.2 0 0 1 3.2-3.1H186a3.2 3.2 0 0 1 3.2 3.1v46a3.2 3.2 0 0 1-3.2 3"}),v.createElement("path",{fill:"#FFF",d:"M82 147.7s6.3-1 17.5-1.3c11.8-.4 17.6 1 17.6 1s3.7-3.8 1-8.3c1.3-12.1 6-32.9.3-48.3-1.1-1.4-3.7-1.5-7.5-.6-1.4.3-7.2-.2-8-.1l-15.3-.4-8-.5c-1.6-.1-4.3-1.7-5.5-.3-.4.4-2.4 5.6-2 16l8.7 35.7s-3.2 3.6 1.2 7"}),v.createElement("path",{fill:"#FFC6A0",d:"m75.8 73.3-1-6.4 12-6.5s7.4-.1 8 1.2c.8 1.3-5.5 1-5.5 1s-1.9 1.4-2.6 2.5c-1.7 2.4-1 6.5-8.4 6-1.7.3-2.5 2.2-2.5 2.2"}),v.createElement("path",{fill:"#FFB594",d:"M52.4 77.7S66.7 87 77.4 92c1 .5-2 16.2-11.9 11.8-7.4-3.3-20.1-8.4-21.5-14.5-.7-3.2 2.6-7.6 8.4-11.7M142 80s-6.7 3-13.9 6.9c-3.9 2.1-10.1 4.7-12.3 8-6.2 9.3 3.5 11.2 13 7.5 6.6-2.7 29-12.1 13.2-22.4"}),v.createElement("path",{fill:"#FFC6A0",d:"m76.2 66.4 3 3.8S76.4 73 73 76c-7 6.2-12.8 14.3-16 16.4-4 2.7-9.7 3.3-12.2 0-3.5-5.1.5-14.7 31.5-26"}),v.createElement("path",{fill:"#FFF",d:"M64.7 85.1s-2.4 8.4-9 14.5c.7.5 18.6 10.5 22.2 10 5.2-.6 6.4-19 1.2-20.5-.8-.2-6-1.3-8.9-2.2-.9-.2-1.6-1.7-3.5-1l-2-.8zm63.7.7s5.3 2 7.3 13.8c-.6.2-17.6 12.3-21.8 7.8-6.6-7-.8-17.4 4.2-18.6 4.7-1.2 5-1.4 10.3-3"}),v.createElement("path",{stroke:"#E4EBF7",d:"M78.2 94.7s.9 7.4-5 13",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),v.createElement("path",{stroke:"#E4EBF7",d:"M87.4 94.7s3.1 2.6 10.3 2.6c7.1 0 9-3.5 9-3.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".9"}),v.createElement("path",{fill:"#FFC6A0",d:"m117.2 68.6-6.8-6.1s-5.4-4.4-9.2-1c-3.9 3.5 4.4 2.2 5.6 4.2 1.2 2.1.9 1.2-2 .5-5.7-1.4-2.1.9 3 5.3 2 1.9 7 1 7 1l2.4-3.9z"}),v.createElement("path",{fill:"#FFB594",d:"m105.3 91.3-.3-11H89l-.5 10.5c0 .4.2.8.6 1 2 1.3 9.3 5 15.8.4.2-.2.4-.5.4-.9"}),v.createElement("path",{fill:"#5C2552",d:"M107.6 74.2c.8-1.1 1-9 1-11.9a1 1 0 0 0-1-1l-4.6-.4c-7.7-1-17 .6-18.3 6.3-5.4 5.9-.4 13.3-.4 13.3s2 3.5 4.3 6.8c.8 1 .4-3.8 3-6a47.9 47.9 0 0 1 16-7"}),v.createElement("path",{fill:"#FFC6A0",d:"M88.4 83.2s2.7 6.2 11.6 6.5c7.8.3 9-7 7.5-17.5l-1-5.5c-6-2.9-15.4.6-15.4.6s-.6 2-.2 5.5c-2.3 2-1.8 5.6-1.8 5.6s-1-2-2-2.3c-.9-.3-2 0-2.3 2-1 4.6 3.6 5.1 3.6 5.1"}),v.createElement("path",{stroke:"#DB836E",d:"m100.8 77.1 1.7-1-1-4.3.7-1.4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),v.createElement("path",{fill:"#552950",d:"M105.5 74c0 .8-.4 1.4-1 1.4-.4 0-.8-.7-.8-1.4s.5-1.2 1-1.2.9.6.8 1.3m-8 .2c0 .8-.4 1.3-.9 1.3s-.9-.6-.9-1.3c0-.7.5-1.3 1-1.3s1 .6.9 1.3"}),v.createElement("path",{stroke:"#DB836E",d:"M91.1 86.8s5.3 5 12.7 2.3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),v.createElement("path",{fill:"#DB836E",d:"M99.8 81.9s-3.6.2-1.5-2.8c1.6-1.5 5-.4 5-.4s1 3.9-3.5 3.2"}),v.createElement("path",{stroke:"#5C2552",d:"M102.9 70.6s2.5.8 3.4.7m-12.4.7s2.5-1.2 4.8-1.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),v.createElement("path",{stroke:"#DB836E",d:"M86.3 77.4s1 .9 1.5 2c-.4.6-1 1.2-.3 1.9m11.8 2.4s2 .2 2.5-.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),v.createElement("path",{stroke:"#E4EBF7",d:"m87.8 115.8 15.7-3m-3.3 3 10-2m-43.7-27s-1.6 8.8-6.7 14M128.3 88s3 4 4 11.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),v.createElement("path",{stroke:"#DB836E",d:"M64 84.8s-6 10-13.5 10",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),v.createElement("path",{fill:"#FFC6A0",d:"m112.4 66-.2 5.2 12 9.2c4.5 3.6 8.9 7.5 11 8.7 4.8 2.8 8.9 3.3 11 1.8 4.1-2.9 4.4-9.9-8.1-15.3-4.3-1.8-16.1-6.3-25.7-9.7"}),v.createElement("path",{stroke:"#DB836E",d:"M130.5 85.5s4.6 5.7 11.7 6.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),v.createElement("path",{stroke:"#E4EBF7",d:"M121.7 105.7s-.4 8.6-1.3 13.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),v.createElement("path",{stroke:"#648BD8",d:"M115.8 161.5s-3.6-1.5-2.7-7.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),v.createElement("path",{fill:"#CBD1D1",d:"M101.5 290.2s4.3 2.1 7.4 1c2.9-.9 4.6.7 7.2 1.3 2.5.5 6.9 1 11.7-1.3 0-5.6-7-4-12-6.8-2.6-1.4-3.8-4.7-3.6-8.8h-9.5s-1.4 10.6-1.2 14.6"}),v.createElement("path",{fill:"#2B0849",d:"M101.5 290s2.4 1.4 6.8.7c3-.4 3.7.5 7.5 1 3.7.6 10.8 0 11.9-.8.4 1-.4 2-.4 2s-1.5.7-4.8.9c-2 .1-5.8.3-7.7-.5-1.8-1.4-5.2-2-5.7-.3-4 1-7.4-.3-7.4-.3l-.2-2.6z"}),v.createElement("path",{fill:"#A4AABA",d:"M108.8 276.2h3.1s0 6.7 4.6 8.6c-4.7.6-8.6-2.3-7.7-8.6"}),v.createElement("path",{fill:"#CBD1D1",d:"M57.6 272.5s-2 7.5-4.5 12.4c-1.8 3.7-4.2 7.6 5.5 7.6 6.7 0 9-.5 7.5-6.7-1.5-6.1.3-13.3.3-13.3h-8.8z"}),v.createElement("path",{fill:"#2B0849",d:"M51.5 290s2.2 1.2 6.7 1.2c6.1 0 8.3-1.6 8.3-1.6s.6 1-.6 2.1c-1 .9-3.6 1.6-7.4 1.6-4.2 0-6-.6-6.8-1.2-.9-.5-.7-1.6-.2-2"}),v.createElement("path",{fill:"#A4AABA",d:"M58.5 274.4s0 1.6-.3 3-1 3.1-1.1 4.2c0 1.1 4.5 1.5 5.2 0 .6-1.6 1.3-6.5 1.9-7.3.6-.8-5-2.1-5.7.1"}),v.createElement("path",{fill:"#7BB2F9",d:"m100.9 277 13.3.1s1.3-54.2 1.8-64c.6-9.9 3.8-43.2 1-62.8l-12.4-.7-22.8.8-1.2 10c0 .4-.6.8-.7 1.3 0 .6.4 1.3.3 2-2.3 14-6.3 32.9-8.7 46.4-.1.6-1.2 1-1.4 2.6 0 .3.2 1.6 0 1.8-6.8 18.7-10.8 47.6-14.1 61.6h14.5s2.2-8.6 4-17a3984 3984 0 0 1 23-84.5l3-.5 1 46.1s-.2 1.2.4 2c.5.8-.6 1.1-.4 2.3l.4 1.7-1 11.9c-.4 4.6 0 39 0 39"}),v.createElement("path",{stroke:"#648BD8",d:"M77.4 220.4c1.2.1 4-2 7-4.9m23.1 8.4s2.8-1 6.1-3.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),v.createElement("path",{stroke:"#648BD8",d:"M108.5 221s2.7-1.2 6-4",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{stroke:"#648BD8",d:"M76.1 223.6s2.6-.6 6.5-3.4m4.7-69.4c-.2 3.1.3 8.5-4.3 9m21.8-10.7s.1 14-1.3 15c-2.2 1.6-3 1.9-3 1.9m.5-16.4s0 12.8-1.2 24.3m-4.9 1s7.2-1.6 9.4-1.6m-28.6 31.5-1 4.5s-1.5 1.8-1 3.7c.4 2-1 2-5 15.3-1.7 5.6-4.4 18.5-6.3 27.5l-4 18.4M77 196.7a313.3 313.3 0 0 1-.8 4.8m7.7-50-1.2 10.3s-1 .2-.5 2.3c.1 1.3-2.6 15.6-5.1 30.2M57.6 273h13.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),v.createElement("path",{fill:"#192064",d:"M117.4 147.4s-17-3-35.7.2v4.2s14.6-2.9 35.5-.4l.2-4"}),v.createElement("path",{fill:"#FFF",d:"M107.5 150.4v-5a.8.8 0 0 0-.8-.7H99a.8.8 0 0 0-.7.8v4.8c0 .5.3.9.8.8a140.8 140.8 0 0 1 7.7 0 .8.8 0 0 0 .8-.7"}),v.createElement("path",{fill:"#192064",d:"M106.4 149.4v-3a.6.6 0 0 0-.6-.7 94.1 94.1 0 0 0-5.8 0 .6.6 0 0 0-.7.7v3c0 .4.3.7.7.7h5.7c.4 0 .7-.3.7-.7"}),v.createElement("path",{stroke:"#648BD8",d:"M101.5 274h12.3m-11.1-5v6.5m0-12.4v4.3m-.5-93.4.9 44.4s.7 1.6-.2 2.7c-1 1.1 2.4.7.9 2.2-1.6 1.6.9 1.1 0 3.4-.6 1.5-1 21-1.1 35",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}))),g4e={success:zD,error:AC,info:Fx,warning:s4e},r1={404:a4e,500:l4e,403:f4e},Ede=Object.keys(r1),m4e=({icon:e,status:t,className:r,style:n})=>{if(Ede.includes(`${t}`)){const o=r1[t];return v.createElement("div",{className:r,style:n},v.createElement(o,null))}const i=v.createElement(g4e[t]);return e===null||e===!1?null:v.createElement("div",{className:r,style:n},e||i)},v4e=({className:e,extra:t,style:r})=>t?v.createElement("div",{className:e,style:r},t):null,kH=e=>{const{prefixCls:t,className:r,rootClassName:n,subTitle:i,title:o,style:s,children:a,status:l="info",icon:c,extra:u,styles:d,classNames:h,...p}=e,{getPrefixCls:f,direction:g,className:m,style:y,classNames:b,styles:S}=Fr("result"),x={...e,status:l},[E,R]=Gr([b,h],[S,d],{props:x}),T=f("result",t),[M,D]=p4e(T),A=Z(T,`${T}-${l}`,r,m,n,{[`${T}-rtl`]:g==="rtl"},M,D,E.root),I=Z(`${T}-title`,E.title),L=Z(`${T}-subtitle`,E.subTitle),F=Z(`${T}-extra`,E.extra),O=Z(`${T}-body`,E.body),k=Z(`${T}-icon`,{[`${T}-image`]:Ede.includes(`${l}`)},E.icon),B={...R.root,...y,...s},H=ei(p,{aria:!0,data:!0});return v.createElement("div",{...H,className:A,style:B},v.createElement(m4e,{className:k,style:R.icon,status:l,icon:c}),v.createElement("div",{className:I,style:R.title},o),i&&v.createElement("div",{className:L,style:R.subTitle},i),v.createElement(v4e,{className:F,extra:u,style:R.extra}),a&&v.createElement("div",{className:O,style:R.body},a))};kH.PRESENTED_IMAGE_403=r1[403];kH.PRESENTED_IMAGE_404=r1[404];kH.PRESENTED_IMAGE_500=r1[500];function hG(){return hG=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const[g,m]=An(n??!1,r);function y(E,R){let T=g;return i||(T=E,m(T),c==null||c(T,R)),T}function b(E){E.which===Zt.LEFT?y(!1,E):E.which===Zt.RIGHT&&y(!0,E),u==null||u(E)}function S(E){const R=y(!g,E);l==null||l(R,E)}const x=Z(e,t,{[`${e}-checked`]:g,[`${e}-disabled`]:i});return v.createElement("button",hG({},p,{type:"button",role:"switch","aria-checked":g,disabled:i,className:x,ref:f,onKeyDown:b,onClick:S}),o,v.createElement("span",{className:`${e}-inner`},v.createElement("span",{className:Z(`${e}-inner-checked`,h==null?void 0:h.content),style:d==null?void 0:d.content},s),v.createElement("span",{className:Z(`${e}-inner-unchecked`,h==null?void 0:h.content),style:d==null?void 0:d.content},a)))});Tde.displayName="Switch";const y4e=e=>{const{componentCls:t,trackHeightSM:r,trackPadding:n,trackMinWidthSM:i,innerMinMarginSM:o,innerMaxMarginSM:s,handleSizeSM:a,calc:l}=e,c=`${t}-inner`,u=ae(l(a).add(l(n).mul(2)).equal()),d=ae(l(s).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:i,height:r,lineHeight:ae(r),[`${t}-inner`]:{paddingInlineStart:s,paddingInlineEnd:o,[`${c}-checked, ${c}-unchecked`]:{minHeight:r},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:l(r).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:a,height:a},[`${t}-loading-icon`]:{top:l(l(a).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:s,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${ae(l(a).add(n).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(e.marginXXS).div(2).equal(),marginInlineEnd:l(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:l(e.marginXXS).div(2).equal()}}}}}}},C4e=e=>{const{componentCls:t,handleSize:r,calc:n}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:n(n(r).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},b4e=e=>{const{componentCls:t,trackPadding:r,handleBg:n,handleShadow:i,handleSize:o,calc:s}=e,a=`${t}-handle`;return{[t]:{[a]:{position:"absolute",top:r,insetInlineStart:r,width:o,height:o,transition:`all ${e.switchDuration} ease-in-out`,...bd(),"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:n,borderRadius:s(o).div(2).equal(),boxShadow:i,transition:`all ${e.switchDuration} ease-in-out`,content:'""',...bd()}},[`&${t}-checked ${a}`]:{insetInlineStart:`calc(100% - ${ae(s(o).add(r).equal())})`},[`&:not(${t}-disabled):active`]:{[`${a}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${a}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},S4e=e=>{const{componentCls:t,trackHeight:r,trackPadding:n,innerMinMargin:i,innerMaxMargin:o,handleSize:s,switchDuration:a,calc:l}=e,c=`${t}-inner`,u=ae(l(s).add(l(n).mul(2)).equal()),d=ae(l(o).mul(2).equal());return{[t]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:o,paddingInlineEnd:i,transition:["padding-inline-start","padding-inline-end"].map(h=>`${h} ${a} ease-in-out`).join(", "),...bd(),[`${c}-checked, ${c}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,pointerEvents:"none",minHeight:r,transition:["margin-inline-start","margin-inline-end"].map(h=>`${h} ${a} ease-in-out`).join(", "),...bd()},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:l(r).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${c}`]:{paddingInlineStart:i,paddingInlineEnd:o,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(n).mul(2).equal(),marginInlineEnd:l(n).mul(-1).mul(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(n).mul(-1).mul(2).equal(),marginInlineEnd:l(n).mul(2).equal()}}}}}},w4e=e=>{const{componentCls:t,trackHeight:r,trackMinWidth:n}=e;return{[t]:{...on(e),position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:n,height:r,lineHeight:ae(r),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",...bd(),[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary},...wl(e),[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}}}},x4e=e=>{const{fontSize:t,lineHeight:r,controlHeight:n,colorWhite:i}=e,o=t*r,s=n/2,a=2,l=o-a*2,c=s-a*2;return{trackHeight:o,trackHeightSM:s,trackMinWidth:l*2+a*4,trackMinWidthSM:c*2+a*2,trackPadding:a,handleBg:i,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new cn("#00230b").setA(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+a+a*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+a+a*2}},E4e=zr("Switch",e=>{const t=$r(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[w4e(t),S4e(t),b4e(t),C4e(t),y4e(t)]},x4e),T4e=v.forwardRef((e,t)=>{const{prefixCls:r,size:n,disabled:i,loading:o,className:s,rootClassName:a,style:l,checked:c,value:u,defaultChecked:d,defaultValue:h,onChange:p,styles:f,classNames:g,...m}=e,[y,b]=An(d??h??!1,c??u),{getPrefixCls:S,direction:x,className:E,style:R,classNames:T,styles:M}=Fr("switch"),D=v.useContext(hs),A=(i??D)||o,I=S("switch",r),[L,F]=E4e(I),O=Oi(n),k={...e,size:O,disabled:A},[B,H]=Gr([T,g],[M,f],{props:k}),N=v.createElement("div",{className:Z(`${I}-handle`,B.indicator),style:H.indicator},o&&v.createElement(rm,{className:`${I}-loading-icon`})),z=Z(E,{[`${I}-small`]:O==="small",[`${I}-loading`]:o,[`${I}-rtl`]:x==="rtl"},s,a,B.root,L,F),W={...H.root,...R,...l},V=(...$)=>{b($[0]),p==null||p(...$)};return v.createElement(Nx,{component:"Switch",disabled:A},v.createElement(Tde,{...m,classNames:B,styles:H,checked:y,onChange:V,prefixCls:I,className:z,style:W,disabled:A,ref:t,loadingIcon:N}))}),R4e=T4e;R4e.__ANT_SWITCH=!0;const Vh={},n1="rc-table-internal-hook";function OH(e){const t=v.createContext(void 0);return{Context:t,Provider:({value:n,children:i})=>{const o=v.useRef(n);o.current=n;const[s]=v.useState(()=>({getValue:()=>o.current,listeners:new Set}));return jr(()=>{$a.unstable_batchedUpdates(()=>{s.listeners.forEach(a=>{a(n)})})},[n]),v.createElement(t.Provider,{value:s},i)},defaultValue:e}}function lo(e,t){const r=Sr(typeof t=="function"?t:l=>{if(t===void 0)return l;if(!Array.isArray(t))return l[t];const c={};return t.forEach(u=>{c[u]=l[u]}),c}),n=v.useContext(e==null?void 0:e.Context),{listeners:i,getValue:o}=n||{},s=v.useRef();s.current=r(n?o():e==null?void 0:e.defaultValue);const[,a]=v.useState({});return jr(()=>{if(!n)return;function l(c){const u=r(c);fc(s.current,u,!0)||a({})}return i.add(l),()=>{i.delete(l)}},[n]),s.current}function OS(){return OS=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const u=s?{ref:c}:{},d=v.useRef(0),h=v.useRef(l);return t()!==null?v.createElement(i,OS({},l,u)):((!o||o(h.current,l))&&(d.current+=1),h.current=l,v.createElement(e.Provider,{value:d.current},v.createElement(i,OS({},l,u))))};return s?v.forwardRef(a):a}function n(i,o){const s=pu(i),a=(l,c)=>{const u=s?{ref:c}:{};return t(),v.createElement(i,OS({},l,u))};return v.memo(s?v.forwardRef(a):a,o)}return{makeImmutable:r,responseImmutable:n,useImmutableMark:t}}const{makeImmutable:Rde,responseImmutable:BC,useImmutableMark:M4e}=P4e(),$o=OH(),Pde=v.createContext({renderWithProps:!1}),I4e="RC_TABLE_KEY";function D4e(e){return e==null?[]:Array.isArray(e)?e:[e]}function lA(e){const t=[],r={};return e.forEach(n=>{const{key:i,dataIndex:o}=n||{};let s=i||D4e(o).join("-")||I4e;for(;r[s];)s=`${s}_next`;r[s]=!0,t.push(s)}),t}function pG(e){return e!=null}function A4e(e){return typeof e=="number"&&!Number.isNaN(e)}function F4e(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!v.isValidElement(e)}function L4e(e,t,r,n,i,o){const s=v.useContext(Pde),a=M4e();return Pm(()=>{if(pG(n))return[n];const c=t==null||t===""?[]:Array.isArray(t)?t:[t],u=Zs(e,c);let d=u,h;if(i){const p=i(u,e,r);F4e(p)?(d=p.children,h=p.props,s.renderWithProps=!0):d=p}return[d,h]},[a,e,n,t,i,r],(c,u)=>{if(o){const[,d]=c,[,h]=u;return o(h,d)}return s.renderWithProps?!0:!fc(c,u,!0)})}function _4e(e,t,r,n){const i=e+t-1;return e<=n&&i>=r}function k4e(e,t){return lo($o,r=>[_4e(e,t||1,r.hoverStartRow,r.hoverEndRow),r.onHover])}function fG(){return fG=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var o,s;let n;const i=e===!0?{showTitle:!0}:e;return i&&(i.showTitle||t==="header")&&(typeof r=="string"||typeof r=="number"?n=r.toString():v.isValidElement(r)&&typeof((o=r.props)==null?void 0:o.children)=="string"&&(n=(s=r.props)==null?void 0:s.children)),n},N4e=e=>{const{component:t,children:r,ellipsis:n,scope:i,prefixCls:o,className:s,style:a,align:l,record:c,render:u,dataIndex:d,renderIndex:h,shouldCellUpdate:p,index:f,rowType:g,colSpan:m,rowSpan:y,fixStart:b,fixEnd:S,fixedStartShadow:x,fixedEndShadow:E,offsetFixedStartShadow:R,offsetFixedEndShadow:T,zIndex:M,zIndexReverse:D,appendNode:A,additionalProps:I={},isSticky:L}=e,F=`${o}-cell`,{allColumnsFixedLeft:O,rowHoverable:k}=lo($o,["allColumnsFixedLeft","rowHoverable"]),[B,H]=L4e(c,d,h,r,u,p),N={},z=typeof b=="number"&&!O,W=typeof S=="number"&&!O,[V,$]=lo($o,({scrollInfo:de})=>{if(!z&&!W)return[!1,!1];const[J,ue]=de,ve=(z&&x&&J)-R>=1,pe=(W&&E&&ue-J)-T>1;return[ve,pe]});z&&(N.insetInlineStart=b,N["--z-offset"]=M,N["--z-offset-reverse"]=D),W&&(N.insetInlineEnd=S,N["--z-offset"]=M,N["--z-offset-reverse"]=D);const K=(H==null?void 0:H.colSpan)??I.colSpan??m??1,q=(H==null?void 0:H.rowSpan)??I.rowSpan??y??1,[X,Y]=k4e(f,q),oe=Sr(de=>{var J;c&&Y(f,f+q-1),(J=I==null?void 0:I.onMouseEnter)==null||J.call(I,de)}),ee=Sr(de=>{var J;c&&Y(-1,-1),(J=I==null?void 0:I.onMouseLeave)==null||J.call(I,de)});if(K===0||q===0)return null;const ne=I.title??O4e({rowType:g,ellipsis:n,children:B}),le=Z(F,s,{[`${F}-fix`]:z||W,[`${F}-fix-start`]:z,[`${F}-fix-end`]:W,[`${F}-fix-start-shadow`]:x,[`${F}-fix-start-shadow-show`]:x&&V,[`${F}-fix-end-shadow`]:E,[`${F}-fix-end-shadow-show`]:E&&$,[`${F}-ellipsis`]:n,[`${F}-with-append`]:A,[`${F}-fix-sticky`]:(z||W)&&L,[`${F}-row-hover`]:!H&&X},I.className,H==null?void 0:H.className),he={};l&&(he.textAlign=l);const re={...H==null?void 0:H.style,...N,...he,...I.style,...a};let ie=B;return typeof ie=="object"&&!Array.isArray(ie)&&!v.isValidElement(ie)&&(ie=null),n&&(x||E)&&(ie=v.createElement("span",{className:`${F}-content`},ie)),v.createElement(t,fG({},H,I,{className:le,style:re,title:ne,scope:i,onMouseEnter:k?oe:void 0,onMouseLeave:k?ee:void 0,colSpan:K!==1?K:null,rowSpan:q!==1?q:null}),A,ie)},$C=v.memo(N4e);function pT(e){return e.fixed==="start"}function fT(e){return e.fixed==="end"}function NH(e,t,r,n){const i=r[e]||{},o=r[t]||{};let s=null,a=null;pT(i)&&pT(o)?s=n.start[e]:fT(o)&&fT(i)&&(a=n.end[t]);let l=!1,c=!1,u=0,d=0;s!==null&&(l=!r[t+1]||!pT(r[t+1]),u=r.length*2-e,d=r.length+e),a!==null&&(c=!r[e-1]||!fT(r[e-1]),u=t,d=r.length-t);let h=0,p=0;if(l)for(let f=0;ft;f-=1)fT(r[f])||(p+=n.widths[f]||0);return{fixStart:s,fixEnd:a,fixedStartShadow:l,fixedEndShadow:c,offsetFixedStartShadow:h,offsetFixedEndShadow:p,isSticky:n.isSticky,zIndex:u,zIndexReverse:d}}const Mde=v.createContext({});function gG(){return gG=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{className:t,index:r,children:n,colSpan:i=1,rowSpan:o,align:s}=e,{prefixCls:a}=lo($o,["prefixCls"]),{scrollColumnIndex:l,stickyOffsets:c,flattenColumns:u}=v.useContext(Mde),h=r+i-1+1===l?i+1:i,p=v.useMemo(()=>NH(r,r+h-1,u,c),[r,h,u,c]);return v.createElement($C,gG({className:t,index:r,component:"td",prefixCls:a,record:null,dataIndex:null,align:s,colSpan:h,rowSpan:o,render:()=>n},p))},$4e=e=>{const{children:t,...r}=e;return v.createElement("tr",r,t)},cA=e=>{const{children:t}=e;return t};cA.Row=$4e;cA.Cell=B4e;const G4e=e=>{const{children:t,stickyOffsets:r,flattenColumns:n}=e,i=lo($o,"prefixCls"),o=n.length-1,s=n[o],a=v.useMemo(()=>({stickyOffsets:r,flattenColumns:n,scrollColumnIndex:s!=null&&s.scrollbar?o:null}),[s,n,o,r]);return v.createElement(Mde.Provider,{value:a},v.createElement("tfoot",{className:`${i}-summary`},t))},gT=BC(G4e),Ide=cA;function V4e(e){return null}function z4e(e){return null}function Dde(e,t,r,n,i,o,s){const a=o(t,s);e.push({record:t,indent:r,index:s,rowKey:a});const l=i==null?void 0:i.has(a);if(t&&Array.isArray(t[n])&&l)for(let c=0;c{if(r!=null&&r.size){const o=[];for(let s=0;s<(e==null?void 0:e.length);s+=1){const a=e[s];Dde(o,a,0,t,r,n,s)}return o}return e==null?void 0:e.map((o,s)=>({record:o,indent:0,index:s,rowKey:n(o,s)}))},[e,t,r,n])}function Fde(e,t,r,n){const i=lo($o,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),{flattenColumns:o,expandableType:s,expandedKeys:a,childrenColumnName:l,onTriggerExpand:c,rowExpandable:u,onRow:d,expandRowByClick:h,rowClassName:p}=i,f=s==="nest",g=s==="row"&&(!u||u(e)),m=g||f,y=a&&a.has(t),b=l&&e&&e[l],S=Sr(c),x=d==null?void 0:d(e,r),E=x==null?void 0:x.onClick,R=(D,...A)=>{h&&m&&c(e,D),E==null||E(D,...A)};let T;typeof p=="string"?T=p:typeof p=="function"&&(T=p(e,r,n));const M=lA(o);return{...i,columnsKey:M,nestExpandable:f,expanded:y,hasNestChildren:b,record:e,onTriggerExpand:S,rowSupportExpand:g,expandable:m,rowProps:{...x,className:Z(T,x==null?void 0:x.className),onClick:R}}}const Lde=e=>{const{prefixCls:t,children:r,component:n,cellComponent:i,className:o,expanded:s,colSpan:a,isEmpty:l,stickyOffset:c=0}=e,{scrollbarSize:u,fixHeader:d,fixColumn:h,componentWidth:p,horizonScroll:f}=lo($o,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]);let g=r;return(l?f&&p:h)&&(g=v.createElement("div",{style:{width:p-c-(d&&!l?u:0),position:"sticky",left:c,overflow:"hidden"},className:`${t}-expanded-row-fixed`},g)),v.createElement(n,{className:o,style:{display:s?null:"none"}},v.createElement($C,{component:i,prefixCls:t,colSpan:a},g))};function H4e({prefixCls:e,record:t,onExpand:r,expanded:n,expandable:i}){const o=`${e}-row-expand-icon`;if(!i)return v.createElement("span",{className:Z(o,`${e}-row-spaced`)});const s=a=>{r(t,a),a.stopPropagation()};return v.createElement("span",{className:Z(o,{[`${e}-row-expanded`]:n,[`${e}-row-collapsed`]:!n}),onClick:s})}function W4e(e,t,r){const n=[];function i(o){(o||[]).forEach((s,a)=>{n.push(t(s,a)),i(s[r])})}return i(e),n}function _de(e,t,r,n){return typeof e=="string"?e:typeof e=="function"?e(t,r,n):""}function FM(){return FM=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{className:t,style:r,classNames:n,styles:i,record:o,index:s,renderIndex:a,rowKey:l,rowKeys:c,indent:u=0,rowComponent:d,cellComponent:h,scopeCellComponent:p,expandedRowInfo:f}=e,g=Fde(o,l,s,u),{prefixCls:m,flattenColumns:y,expandedRowClassName:b,expandedRowRender:S,rowProps:x,expanded:E,rowSupportExpand:R}=g,T=v.useRef(!1);T.current||(T.current=E);const M=_de(b,o,s,u),D=v.createElement(d,FM({},x,{"data-row-key":l,className:Z(t,`${m}-row`,`${m}-row-level-${u}`,x==null?void 0:x.className,n.row,{[M]:u>=1}),style:{...r,...x==null?void 0:x.style,...i.row}}),y.map((I,L)=>{const{render:F,dataIndex:O,className:k}=I,{key:B,fixedInfo:H,appendCellNode:N,additionalCellProps:z}=kde(g,I,L,u,s,c,f==null?void 0:f.offset);return v.createElement($C,FM({className:Z(k,n.cell),style:i.cell,ellipsis:I.ellipsis,align:I.align,scope:I.rowScope,component:I.rowScope?p:h,prefixCls:m,key:B,record:o,index:s,renderIndex:a,dataIndex:O,render:F,shouldCellUpdate:I.shouldCellUpdate},H,{appendNode:N,additionalProps:z}))}));let A;if(R&&(T.current||E)){const I=S(o,s,u+1,E);A=v.createElement(Lde,{expanded:E,className:Z(`${m}-expanded-row`,`${m}-expanded-row-level-${u+1}`,M),prefixCls:m,component:d,cellComponent:h,colSpan:f?f.colSpan:y.length,isEmpty:!1,stickyOffset:f==null?void 0:f.sticky},I)}return v.createElement(v.Fragment,null,D,A)},j4e=BC(U4e),K4e=e=>{const{columnKey:t,onColumnResize:r,title:n}=e,i=v.useRef(null);return jr(()=>{i.current&&r(t,i.current.offsetWidth)},[]),v.createElement(ta,{data:t},v.createElement("td",{ref:i,style:{paddingTop:0,paddingBottom:0,borderTop:0,borderBottom:0,height:0}},v.createElement("div",{style:{height:0,overflow:"hidden",fontWeight:"bold"}},n||" ")))},q4e=({prefixCls:e,columnsKey:t,onColumnResize:r,columns:n})=>{const i=v.useRef(null),{measureRowRender:o}=lo($o,["measureRowRender"]),s=v.createElement("tr",{"aria-hidden":"true",className:`${e}-measure-row`,style:{height:0},ref:i},v.createElement(ta.Collection,{onBatchResize:a=>{HD(i.current)&&a.forEach(({data:l,size:c})=>{r(l,c.offsetWidth)})}},t.map(a=>{const l=n.find(d=>d.key===a),c=l==null?void 0:l.title,u=v.isValidElement(c)?v.cloneElement(c,{ref:null}):c;return v.createElement(K4e,{key:a,columnKey:a,onColumnResize:r,title:u})})));return typeof o=="function"?o(s):s},X4e=e=>{const{data:t,measureColumnWidth:r}=e,{prefixCls:n,getComponent:i,onColumnResize:o,flattenColumns:s,getRowKey:a,expandedKeys:l,childrenColumnName:c,emptyNode:u,classNames:d,styles:h,expandedRowOffset:p=0,colWidths:f}=lo($o,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode","classNames","styles","expandedRowOffset","fixedInfoList","colWidths"]),{body:g={}}=d||{},{body:m={}}=h||{},y=Ade(t,c,l,a),b=v.useMemo(()=>y.map(I=>I.rowKey),[y]),S=v.useRef({renderWithProps:!1}),x=v.useMemo(()=>{const I=s.length-p;let L=0;for(let F=0;F{const{record:F,indent:O,index:k,rowKey:B}=I;return v.createElement(j4e,{classNames:g,styles:m,key:B,rowKey:B,rowKeys:b,record:F,index:L,renderIndex:k,rowComponent:R,cellComponent:T,scopeCellComponent:M,indent:O,expandedRowInfo:x})}):D=v.createElement(Lde,{expanded:!0,className:`${n}-placeholder`,prefixCls:n,component:R,cellComponent:T,colSpan:s.length,isEmpty:!0},u);const A=lA(s);return v.createElement(Pde.Provider,{value:S.current},v.createElement(E,{style:m.wrapper,className:Z(`${n}-tbody`,g.wrapper)},r&&v.createElement(q4e,{prefixCls:n,columnsKey:A,onColumnResize:o,columns:s}),D))},Y4e=BC(X4e),NS="RC_TABLE_INTERNAL_COL_DEFINE";function Z4e(e){const{expandable:t,...r}=e;let n;return"expandable"in e?n={...r,...t}:n=r,n.showExpandColumn===!1&&(n.expandIconColumnIndex=-1),n}function mG(){return mG=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{colWidths:t,columns:r,columCount:n}=e,{tableLayout:i}=lo($o,["tableLayout"]),o=[],s=n||r.length;let a=!1;for(let l=s-1;l>=0;l-=1){const c=t[l],u=r&&r[l];let d,h;if(u&&(d=u[NS],i==="auto"&&(h=u.minWidth)),c||h||d||a){const{columnType:p,...f}=d||{};o.unshift(v.createElement("col",mG({key:l,style:{width:c,minWidth:h}},f))),a=!0}}return o.length>0?v.createElement("colgroup",null,o):null};function Q4e(e,t){return v.useMemo(()=>{const r=[];for(let n=0;n{const{className:r,style:n,noData:i,columns:o,flattenColumns:s,colWidths:a,colGroup:l,columCount:c,stickyOffsets:u,direction:d,fixHeader:h,stickyTopOffset:p,stickyBottomOffset:f,stickyClassName:g,scrollX:m,tableLayout:y="fixed",onScroll:b,maxContentScroll:S,children:x,...E}=e,{prefixCls:R,scrollbarSize:T,isSticky:M,getComponent:D}=lo($o,["prefixCls","scrollbarSize","isSticky","getComponent"]),A=D(["header","table"],"table"),I=M&&!h?0:T,L=v.useRef(null),F=v.useCallback(V=>{iB(t,V),iB(L,V)},[]);v.useEffect(()=>{function V(K){const{currentTarget:q,deltaX:X}=K;if(X){const{scrollLeft:Y,scrollWidth:oe,clientWidth:ee}=q,ne=oe-ee;let le=Y+X;d==="rtl"?(le=Math.max(-ne,le),le=Math.min(0,le)):(le=Math.min(ne,le),le=Math.max(0,le)),b({currentTarget:q,scrollLeft:le}),K.preventDefault()}}const $=L.current;return $==null||$.addEventListener("wheel",V,{passive:!1}),()=>{$==null||$.removeEventListener("wheel",V)}},[]);const O=s[s.length-1],k={fixed:O?O.fixed:null,scrollbar:!0,onHeaderCell:()=>({className:`${R}-cell-scrollbar`})},B=v.useMemo(()=>I?[...o,k]:o,[I,o]),H=v.useMemo(()=>I?[...s,k]:s,[I,s]),N=v.useMemo(()=>{const{start:V,end:$}=u;return{...u,start:V,end:[...$.map(K=>K+I),0],isSticky:M}},[I,u,M]),z=Q4e(a,c),W=v.useMemo(()=>{const V=!z||!z.length||z.every($=>!$);return i||V},[i,z]);return v.createElement("div",{style:{overflow:"hidden",...M?{top:p,bottom:f}:{},...n},ref:F,className:Z(r,{[g]:!!g})},v.createElement(A,{style:{tableLayout:y,minWidth:"100%",width:m}},W?l:v.createElement(Ode,{colWidths:[...z,I],columCount:c+1,columns:H}),x({...E,stickyOffsets:N,columns:B,flattenColumns:H})))}),xX=v.memo(J4e);function LM(){return LM=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{cells:t,stickyOffsets:r,flattenColumns:n,rowComponent:i,cellComponent:o,onHeaderRow:s,index:a,classNames:l,styles:c}=e,{prefixCls:u}=lo($o,["prefixCls"]);let d;s&&(d=s(t.map(p=>p.column),a));const h=lA(t.map(p=>p.column));return v.createElement(i,LM({},d,{className:l.row,style:c.row}),t.map((p,f)=>{var E;const{column:g,colStart:m,colEnd:y,colSpan:b}=p,S=NH(m,y,n,r),x=((E=g==null?void 0:g.onHeaderCell)==null?void 0:E.call(g,g))||{};return v.createElement($C,LM({},p,{scope:g.title?b>1?"colgroup":"col":null,ellipsis:g.ellipsis,align:g.align,component:o,prefixCls:u,key:h[f]},S,{additionalProps:x,rowType:"header"}))}))};function tHe(e,t,r){const n=[];function i(s,a,l=0){n[l]=n[l]||[];let c=a;return s.filter(Boolean).map(d=>{const h={key:d.key,className:Z(d.className,t.cell)||"",style:r.cell,children:d.title,column:d,colStart:c};let p=1;const f=d.children;return f&&f.length>0&&(p=i(f,c,l+1).reduce((g,m)=>g+m,0),h.hasSubColumns=!0),"colSpan"in d&&({colSpan:p}=d),"rowSpan"in d&&(h.rowSpan=d.rowSpan),h.colSpan=p,h.colEnd=h.colStart+p-1,n[l].push(h),c+=p,p})}i(e,0);const o=n.length;for(let s=0;s{!("rowSpan"in a)&&!a.hasSubColumns&&(a.rowSpan=o-s)});return n}const rHe=e=>{const{stickyOffsets:t,columns:r,flattenColumns:n,onHeaderRow:i}=e,{prefixCls:o,getComponent:s,classNames:a,styles:l}=lo($o,["prefixCls","getComponent","classNames","styles"]),{header:c={}}=a||{},{header:u={}}=l||{},d=v.useMemo(()=>tHe(r,c,u),[r,c,u]),h=s(["header","wrapper"],"thead"),p=s(["header","row"],"tr"),f=s(["header","cell"],"th");return v.createElement(h,{className:Z(`${o}-thead`,c.wrapper),style:u.wrapper},d.map((g,m)=>v.createElement(eHe,{classNames:c,styles:u,key:m,flattenColumns:n,cells:g,stickyOffsets:t,rowComponent:p,cellComponent:f,onHeaderRow:i,index:m})))},EX=BC(rHe);function TX(e,t=""){return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function nHe(e,t,r){return v.useMemo(()=>{if(t&&t>0){let n=0,i=0;e.forEach(d=>{const h=TX(t,d.width);h?n+=h:i+=1});const o=Math.max(t,r);let s=Math.max(o-n,i),a=i;const l=s/i;let c=0;const u=e.map(d=>{const h={...d},p=TX(t,h.width);if(p)h.width=p;else{const f=Math.floor(l);h.width=a===1?s:f,s-=f,a-=1}return c+=h.width,h});if(c{const f=Math.floor(h.width*d);h.width=p===u.length-1?s:f,s-=f})}return[u,Math.max(c,o)]}return[e,t]},[e,t,r])}function BH(e){return Li(e).filter(t=>v.isValidElement(t)).map(t=>{const{key:r,props:n}=t,{children:i,...o}=n,s={key:r,...o};return i&&(s.children=BH(i)),s})}function Nde(e){return e.filter(t=>t&&typeof t=="object"&&!t.hidden).map(t=>{const r=t.children;return r&&r.length>0?{...t,children:Nde(r)}:t})}function Bde(e,t="key"){return e.filter(r=>r&&typeof r=="object").reduce((r,n,i)=>{const{fixed:o}=n,s=o===!0||o==="left"?"start":o==="right"?"end":o,a=`${t}-${i}`,l=n.children;return l&&l.length>0?[...r,...Bde(l,a).map(c=>({...c,fixed:c.fixed??s}))]:[...r,{key:a,...n,fixed:s}]},[])}function iHe({prefixCls:e,columns:t,children:r,expandable:n,expandedKeys:i,columnTitle:o,getRowKey:s,onTriggerExpand:a,expandIcon:l,rowExpandable:c,expandIconColumnIndex:u,expandedRowOffset:d=0,direction:h,expandRowByClick:p,columnWidth:f,fixed:g,scrollWidth:m,clientWidth:y},b){const S=v.useMemo(()=>{const D=t||BH(r)||[];return Nde(D.slice())},[t,r]),x=v.useMemo(()=>{if(n){let D=S.slice();if(!D.includes(Vh)){const O=u||0,k=O===0&&(g==="right"||g==="end")?S.length:O;k>=0&&D.splice(k,0,Vh)}const A=D.indexOf(Vh);D=D.filter((O,k)=>O!==Vh||k===A);const I=S[A];let L;g?L=g:L=I?I.fixed:null;const F={[NS]:{className:`${e}-expand-icon-col`,columnType:"EXPAND_COLUMN"},title:o,fixed:L,className:`${e}-row-expand-icon-cell`,width:f,render:(O,k,B)=>{const H=s(k,B),N=i.has(H),z=c?c(k):!0,W=l({prefixCls:e,expanded:N,expandable:z,record:k,onExpand:a});return p?v.createElement("span",{onClick:V=>V.stopPropagation()},W):W}};return D.map((O,k)=>{const B=O===Vh?F:O;return kD!==Vh)},[n,S,s,i,l,h,d]),E=v.useMemo(()=>{let D=x;return b&&(D=b(D)),D.length||(D=[{render:()=>null}]),D},[b,x,h]),R=v.useMemo(()=>Bde(E),[E,h,m]),[T,M]=nHe(R,m,y);return[E,T,M]}function oHe(e,t,r){const n=Z4e(e),{expandIcon:i,expandedRowKeys:o,defaultExpandedRowKeys:s,defaultExpandAllRows:a,expandedRowRender:l,onExpand:c,onExpandedRowsChange:u,childrenColumnName:d}=n,h=i||H4e,p=d||"children",f=v.useMemo(()=>l?"row":e.expandable&&e.internalHooks===n1&&e.expandable.__PARENT_RENDER_ICON__||t.some(S=>S&&typeof S=="object"&&S[p])?"nest":!1,[!!l,t]),[g,m]=v.useState(()=>s||(a?W4e(t,r,p):[])),y=v.useMemo(()=>new Set(o||g||[]),[o,g]),b=v.useCallback(S=>{const x=r(S,t.indexOf(S));let E;const R=y.has(x);R?(y.delete(x),E=[...y]):E=[...y,x],m(E),c&&c(!R,S),u&&u(E)},[r,y,t,c,u]);return[n,f,y,h,p,b]}function sHe(e,t){const r=v.useMemo(()=>e.map((n,i)=>NH(i,i,e,t)),[e,t]);return Pm(()=>r,[r],(n,i)=>!fc(n,i))}function aHe(e){const t=v.useRef(e),[,r]=v.useState({}),n=v.useRef(null),i=v.useRef([]);function o(s){i.current.push(s);const a=Promise.resolve();n.current=a,a.then(()=>{if(n.current===a){const l=i.current,c=t.current;i.current=[],l.forEach(u=>{t.current=u(t.current)}),n.current=null,c!==t.current&&r({})}})}return v.useEffect(()=>()=>{n.current=null},[]),[t.current,o]}function lHe(e){const t=v.useRef(null),r=v.useRef(null);function n(){clearTimeout(r.current)}function i(s){t.current=s,n(),r.current=setTimeout(()=>{t.current=null,r.current=void 0},100)}function o(){return t.current}return v.useEffect(()=>n,[]),[i,o]}function cHe(){const[e,t]=v.useState(-1),[r,n]=v.useState(-1),i=v.useCallback((o,s)=>{t(o),n(s)},[]);return[e,r,i]}const RX=To()?window:null;function uHe(e,t){const{offsetHeader:r=0,offsetSummary:n=0,offsetScroll:i=0,getContainer:o=()=>RX}=typeof e=="object"?e:{},s=o()||RX,a=!!e;return v.useMemo(()=>({isSticky:a,stickyClassName:a?`${t}-sticky-holder`:"",offsetHeader:r,offsetSummary:n,offsetScroll:i,container:s}),[a,i,r,n,t,s])}function dHe(e,t){return v.useMemo(()=>{const n=t.length,i=(a,l,c)=>{const u=[];let d=0;for(let h=a;h!==l;h+=c)u.push(d),t[h].fixed&&(d+=e[h]||0);return u},o=i(0,n,1),s=i(n-1,-1,-1).reverse();return{start:o,end:s,widths:e}},[e,t])}const PX=e=>{const{children:t,className:r,style:n}=e;return v.createElement("div",{className:r,style:n},t)};function MX(e){const r=pc(e).getBoundingClientRect(),n=document.documentElement;return{left:r.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:r.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}const IX="mouseup",DX="mousemove",xv="scroll",AX="resize",hHe=(e,t)=>{var T,M;const{scrollBodyRef:r,onScroll:n,offsetScroll:i,container:o,direction:s}=e,a=lo($o,"prefixCls"),l=((T=r.current)==null?void 0:T.scrollWidth)||0,c=((M=r.current)==null?void 0:M.clientWidth)||0,u=l&&c*(c/l),d=v.useRef(null),[h,p]=aHe({scrollLeft:0,isHiddenScrollBar:!0}),f=v.useRef({delta:0,x:0}),[g,m]=v.useState(!1),y=v.useRef(null);v.useEffect(()=>()=>{Or.cancel(y.current)},[]);const b=()=>{m(!1)},S=D=>{D.persist(),f.current.delta=D.pageX-h.scrollLeft,f.current.x=0,m(!0),D.preventDefault()},x=D=>{const{buttons:A}=D||(window==null?void 0:window.event);if(!g||A===0){g&&m(!1);return}let I=f.current.x+D.pageX-f.current.x-f.current.delta;const L=s==="rtl";I=Math.max(L?u-c:0,Math.min(L?0:c-u,I)),(!L||Math.abs(I)+Math.abs(u){Or.cancel(y.current),y.current=Or(()=>{if(!r.current)return;const D=MX(r.current).top,A=D+r.current.offsetHeight,I=o===window?document.documentElement.scrollTop+window.innerHeight:MX(o).top+o.clientHeight;A-yK()<=I||D>=I-i?p(L=>({...L,isHiddenScrollBar:!0})):p(L=>({...L,isHiddenScrollBar:!1}))})},R=D=>{p(A=>({...A,scrollLeft:D/l*c||0}))};return v.useImperativeHandle(t,()=>({setScrollLeft:R,checkScrollBarVisible:E})),v.useEffect(()=>(document.body.addEventListener(IX,b,!1),document.body.addEventListener(DX,x,!1),E(),()=>{document.body.removeEventListener(IX,b),document.body.removeEventListener(DX,x)}),[u,g]),v.useEffect(()=>{if(r.current){const D=[];let A=pc(r.current);for(;A;)D.push(A),A=A.parentElement;return D.forEach(I=>{I.addEventListener(xv,E,!1)}),window.addEventListener(AX,E,!1),window.addEventListener(xv,E,!1),o.addEventListener(xv,E,!1),()=>{D.forEach(I=>{I.removeEventListener(xv,E)}),window.removeEventListener(AX,E),window.removeEventListener(xv,E),o.removeEventListener(xv,E)}}},[o]),v.useEffect(()=>{h.isHiddenScrollBar||p(D=>{const A=r.current;return A?{...D,scrollLeft:A.scrollLeft/A.scrollWidth*A.clientWidth}:D})},[h.isHiddenScrollBar]),l<=c||!u||h.isHiddenScrollBar?null:v.createElement("div",{style:{height:yK(),width:c,bottom:i},className:`${a}-sticky-scroll`},v.createElement("div",{onMouseDown:S,ref:d,className:Z(`${a}-sticky-scroll-bar`,{[`${a}-sticky-scroll-bar-active`]:g}),style:{width:`${u}px`,transform:`translate3d(${h.scrollLeft}px, 0, 0)`}}))},pHe=v.forwardRef(hHe);function zh(){return zh=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var ri,vr;const r={rowKey:"key",prefixCls:$de,emptyText:mHe,...e},{prefixCls:n,className:i,rowClassName:o,style:s,classNames:a,styles:l,data:c,rowKey:u,scroll:d,tableLayout:h,direction:p,title:f,footer:g,summary:m,caption:y,id:b,showHeader:S,components:x,emptyText:E,onRow:R,onHeaderRow:T,measureRowRender:M,onScroll:D,internalHooks:A,transformColumns:I,internalRefs:L,tailor:F,getContainerWidth:O,sticky:k,rowHoverable:B=!0}=r,H=c||fHe,N=!!H.length,z=A===n1,W=v.useCallback((Ct,yr)=>Zs(x,Ct)||yr,[x]),V=v.useMemo(()=>typeof u=="function"?u:Ct=>Ct&&Ct[u],[u]),$=W(["body"]),[K,q,X]=cHe(),[Y,oe,ee,ne,le,he]=oHe(r,H,V),re=d==null?void 0:d.x,[ie,de]=v.useState(0),[J,ue,ve]=iHe({...r,...Y,expandable:!!Y.expandedRowRender,columnTitle:Y.columnTitle,expandedKeys:ee,getRowKey:V,onTriggerExpand:he,expandIcon:ne,expandIconColumnIndex:Y.expandIconColumnIndex,direction:p,scrollWidth:z&&F&&typeof re=="number"?re:null,clientWidth:ie},z?I:null),pe=ve??re,me=v.useMemo(()=>({columns:J,flattenColumns:ue}),[J,ue]),Oe=v.useRef(null),De=v.useRef(null),Ee=v.useRef(null),We=v.useRef(null);v.useImperativeHandle(t,()=>({nativeElement:Oe.current,scrollTo:Ct=>{var yr,wn;if(Ee.current instanceof HTMLElement){const{index:ni,top:Ni,key:Ha,offset:Uo}=Ct;if(A4e(Ni))(yr=Ee.current)==null||yr.scrollTo({top:Ni});else{const Os=Ha??V(H[ni]),fa=Ee.current.querySelector(`[data-row-key="${Os}"]`);if(fa)if(!Uo)fa.scrollIntoView();else{const Bt=fa.offsetTop;Ee.current.scrollTo({top:Bt+Uo})}}}else(wn=Ee.current)!=null&&wn.scrollTo&&Ee.current.scrollTo(Ct)}}));const ze=v.useRef(null),[mt,Nt]=v.useState(!1),[St,Ze]=v.useState(!1),[Fe,tt]=v.useState(new Map),rt=lA(ue).map(Ct=>Fe.get(Ct)),ot=v.useMemo(()=>rt,[rt.join("_")]),Ye=dHe(ot,ue),Ae=d&&pG(d.y),nt=d&&pG(pe)||!!Y.fixed,Et=nt&&ue.some(({fixed:Ct})=>Ct),Tt=v.useRef(null),{isSticky:Ot,offsetHeader:Wt,offsetSummary:at,offsetScroll:lt,stickyClassName:Ut,container:cr}=uHe(k,n),_e=v.useMemo(()=>m==null?void 0:m(H),[m,H]),qe=(Ae||Ot)&&v.isValidElement(_e)&&_e.type===cA&&_e.props.fixed;let Re,it,Ve;Ae&&(it={overflowY:N?"scroll":"auto",maxHeight:d.y}),nt&&(Re={overflowX:"auto"},Ae||(it={overflowY:"hidden"}),Ve={width:pe===!0?"auto":pe,minWidth:"100%"});const ke=v.useCallback((Ct,yr)=>{tt(wn=>{if(wn.get(Ct)!==yr){const ni=new Map(wn);return ni.set(Ct,yr),ni}return wn})},[]),[se,ce]=lHe();function fe(Ct,yr){yr&&(typeof yr=="function"?yr(Ct):yr.scrollLeft!==Ct&&(yr.scrollLeft=Ct,yr.scrollLeft!==Ct&&setTimeout(()=>{yr.scrollLeft=Ct},0)))}const[Te,$e]=v.useState([0,0]),et=Sr(({currentTarget:Ct,scrollLeft:yr})=>{var Ha;const wn=typeof yr=="number"?yr:Ct.scrollLeft,ni=Ct||gHe;(!ce()||ce()===ni)&&(se(ni),fe(wn,De.current),fe(wn,Ee.current),fe(wn,ze.current),fe(wn,(Ha=Tt.current)==null?void 0:Ha.setScrollLeft));const Ni=Ct||De.current;if(Ni){const Uo=z&&F&&typeof pe=="number"?pe:Ni.scrollWidth,Os=Ni.clientWidth,fa=Math.abs(wn);if($e(Bt=>{const Ur=[fa,Uo-Os];return fc(Bt,Ur)?Bt:Ur}),Uo===Os){Nt(!1),Ze(!1);return}Nt(fa>0),Ze(fa{et(Ct),D==null||D(Ct)}),ct=()=>{var Ct;nt&&Ee.current?et({currentTarget:pc(Ee.current),scrollLeft:(Ct=Ee.current)==null?void 0:Ct.scrollLeft}):(Nt(!1),Ze(!1))},st=Ct=>{var wn,ni;(wn=Tt.current)==null||wn.checkScrollBarVisible();let yr=Ct??((ni=Oe.current)==null?void 0:ni.offsetWidth)??0;z&&O&&Oe.current&&(yr=O(Oe.current,yr)||yr),yr!==ie&&(ct(),de(yr))};jr(()=>{nt&&st()},[nt]);const wt=v.useRef(!1);v.useEffect(()=>{wt.current&&ct()},[nt,c,J.length]),v.useEffect(()=>{wt.current=!0},[]);const[Mt,_t]=v.useState(0);jr(()=>{(!F||!z)&&(Ee.current instanceof Element?_t(KB(Ee.current).width):_t(KB(We.current).width))},[]),v.useEffect(()=>{z&&L&&(L.body.current=Ee.current)});const At=v.useCallback(Ct=>v.createElement(v.Fragment,null,v.createElement(EX,Ct),qe==="top"&&v.createElement(gT,Ct,_e)),[qe,_e]),pt=v.useCallback(Ct=>v.createElement(gT,Ct,_e),[_e]),yt=W(["table"],"table"),It=v.useMemo(()=>h||(Et?pe==="max-content"?"auto":"fixed":Ae||Ot||ue.some(({ellipsis:Ct})=>Ct)?"fixed":"auto"),[Ae,Et,ue,h,Ot]);let Qt;const Ft={colWidths:ot,columCount:ue.length,stickyOffsets:Ye,onHeaderRow:T,fixHeader:Ae,scroll:d},ur=v.useMemo(()=>N?null:typeof E=="function"?E():E,[N,E]),fr=v.createElement(Y4e,{data:H,measureColumnWidth:Ae||nt||Ot}),rr=v.createElement(Ode,{colWidths:ue.map(({width:Ct})=>Ct),columns:ue}),yn=y!=null?v.createElement("caption",{className:`${n}-caption`},y):void 0,dn=ei(r,{data:!0}),hn=ei(r,{aria:!0});if(Ae||Ot){let Ct;typeof $=="function"?(Ct=$(H,{scrollbarSize:Mt,ref:Ee,onScroll:et}),Ft.colWidths=ue.map(({width:wn},ni)=>{const Ni=ni===ue.length-1?wn-Mt:wn;return typeof Ni=="number"&&!Number.isNaN(Ni)?Ni:0})):Ct=v.createElement("div",{style:{...Re,...it},onScroll:Dt,ref:Ee,className:`${n}-body`},v.createElement(yt,zh({style:{...Ve,tableLayout:It}},hn),yn,rr,fr,!qe&&_e&&v.createElement(gT,{stickyOffsets:Ye,flattenColumns:ue},_e)));const yr={noData:!H.length,maxContentScroll:nt&&pe==="max-content",...Ft,...me,direction:p,stickyClassName:Ut,scrollX:pe,tableLayout:It,onScroll:et};Qt=v.createElement(v.Fragment,null,S!==!1&&v.createElement(xX,zh({},yr,{stickyTopOffset:Wt,className:`${n}-header`,ref:De,colGroup:rr}),At),Ct,qe&&qe!=="top"&&v.createElement(xX,zh({},yr,{stickyBottomOffset:at,className:`${n}-summary`,ref:ze,colGroup:rr}),pt),Ot&&Ee.current&&Ee.current instanceof Element&&v.createElement(pHe,{ref:Tt,offsetScroll:lt,scrollBodyRef:Ee,onScroll:et,container:cr,direction:p}))}else Qt=v.createElement("div",{style:{...Re,...it,...l==null?void 0:l.content},className:Z(`${n}-content`,a==null?void 0:a.content),onScroll:et,ref:Ee},v.createElement(yt,zh({style:{...Ve,tableLayout:It}},hn),yn,rr,S!==!1&&v.createElement(EX,zh({},Ft,me)),fr,_e&&v.createElement(gT,{stickyOffsets:Ye,flattenColumns:ue},_e)));const en={...s};Ot&&(en["--columns-count"]=ue.length);let fo=v.createElement("div",zh({className:Z(n,i,{[`${n}-rtl`]:p==="rtl",[`${n}-fix-start-shadow`]:nt,[`${n}-fix-end-shadow`]:nt,[`${n}-fix-start-shadow-show`]:nt&&mt,[`${n}-fix-end-shadow-show`]:nt&&St,[`${n}-layout-fixed`]:h==="fixed",[`${n}-fixed-header`]:Ae,[`${n}-fixed-column`]:Et,[`${n}-scroll-horizontal`]:nt,[`${n}-has-fix-start`]:(ri=ue[0])==null?void 0:ri.fixed,[`${n}-has-fix-end`]:((vr=ue[ue.length-1])==null?void 0:vr.fixed)==="end"}),style:en,id:b,ref:Oe},dn),f&&v.createElement(PX,{className:Z(`${n}-title`,a==null?void 0:a.title),style:l==null?void 0:l.title},f(H)),v.createElement("div",{ref:We,className:Z(`${n}-container`,a==null?void 0:a.section),style:l==null?void 0:l.section},Qt),g&&v.createElement(PX,{className:Z(`${n}-footer`,a==null?void 0:a.footer),style:l==null?void 0:l.footer},g(H)));nt&&(fo=v.createElement(ta,{onResize:({offsetWidth:Ct})=>st(Ct)},fo));const Dr=sHe(ue,Ye),sn=v.useMemo(()=>({scrollX:pe,scrollInfo:Te,classNames:a,styles:l,prefixCls:n,getComponent:W,scrollbarSize:Mt,direction:p,fixedInfoList:Dr,isSticky:Ot,componentWidth:ie,fixHeader:Ae,fixColumn:Et,horizonScroll:nt,tableLayout:It,rowClassName:o,expandedRowClassName:Y.expandedRowClassName,expandIcon:ne,expandableType:oe,expandRowByClick:Y.expandRowByClick,expandedRowRender:Y.expandedRowRender,expandedRowOffset:Y.expandedRowOffset,onTriggerExpand:he,expandIconColumnIndex:Y.expandIconColumnIndex,indentSize:Y.indentSize,allColumnsFixedLeft:ue.every(Ct=>Ct.fixed==="start"),emptyNode:ur,columns:J,flattenColumns:ue,onColumnResize:ke,colWidths:ot,hoverStartRow:K,hoverEndRow:q,onHover:X,rowExpandable:Y.rowExpandable,onRow:R,getRowKey:V,expandedKeys:ee,childrenColumnName:le,rowHoverable:B,measureRowRender:M}),[pe,Te,a,l,n,W,Mt,p,Dr,Ot,ie,Ae,Et,nt,It,o,Y.expandedRowClassName,ne,oe,Y.expandRowByClick,Y.expandedRowRender,Y.expandedRowOffset,he,Y.expandIconColumnIndex,Y.indentSize,ur,J,ue,ke,ot,K,q,X,Y.rowExpandable,R,V,ee,le,B,M]);return v.createElement($o.Provider,{value:sn},fo)},yHe=v.forwardRef(vHe),Gde=e=>Rde(yHe,e),GC=Gde();GC.EXPAND_COLUMN=Vh;GC.INTERNAL_HOOKS=n1;GC.Column=V4e;GC.ColumnGroup=z4e;GC.Summary=Ide;const $H=OH(null),Vde=OH(null);function vG(){return vG=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{rowInfo:t,column:r,colIndex:n,indent:i,index:o,component:s,renderIndex:a,record:l,style:c,className:u,inverse:d,getHeight:h}=e,{render:p,dataIndex:f,className:g,width:m}=r,{columnsOffset:y}=lo(Vde,["columnsOffset"]),{key:b,fixedInfo:S,appendCellNode:x,additionalCellProps:E}=kde(t,r,n,i,o),{style:R,colSpan:T=1,rowSpan:M=1}=E,D=n-1,A=CHe(D,T,y),I=T>1?m-A:0,L={...R,...c,flex:`0 0 ${A}px`,width:`${A}px`,marginRight:I,pointerEvents:"auto"},F=v.useMemo(()=>d?M<=1:T===0||M===0||M>1,[M,T,d]);F?L.visibility="hidden":d&&(L.height=h==null?void 0:h(M));const O=F?()=>null:p,k={};return(M===0||T===0)&&(k.rowSpan=1,k.colSpan=1),v.createElement($C,vG({className:Z(g,u),ellipsis:r.ellipsis,align:r.align,scope:r.rowScope,component:s,prefixCls:t.prefixCls,key:b,record:l,index:o,renderIndex:a,dataIndex:f,render:O,shouldCellUpdate:r.shouldCellUpdate},S,{appendNode:x,additionalProps:{...E,style:L,...k}}))};function yG(){return yG=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{data:r,index:n,className:i,rowKey:o,style:s,extra:a,getHeight:l,...c}=e,{record:u,indent:d,index:h}=r,{scrollX:p,flattenColumns:f,prefixCls:g,fixColumn:m,componentWidth:y}=lo($o,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),{getComponent:b}=lo($H,["getComponent"]),S=Fde(u,o,n,d),x=b(["body","row"],"div"),E=b(["body","cell"],"div"),{rowSupportExpand:R,expanded:T,rowProps:M,expandedRowRender:D,expandedRowClassName:A}=S;let I;if(R&&T){const O=D(u,n,d+1,T),k=_de(A,u,n,d);let B={};m&&(B={style:{"--virtual-width":`${y}px`}});const H=`${g}-expanded-row-cell`;I=v.createElement(x,{className:Z(`${g}-expanded-row`,`${g}-expanded-row-level-${d+1}`,k)},v.createElement($C,{component:E,prefixCls:g,className:Z(H,{[`${H}-fixed`]:m}),additionalProps:B},O))}const L={...s,width:p};a&&(L.position="absolute",L.pointerEvents="none");const F=v.createElement(x,yG({},M,c,{"data-row-key":o,ref:R?null:t,className:Z(i,`${g}-row`,M==null?void 0:M.className,{[`${g}-row-extra`]:a}),style:{...L,...M==null?void 0:M.style}}),f.map((O,k)=>v.createElement(bHe,{key:k,component:E,rowInfo:S,column:O,colIndex:k,indent:d,index:n,renderIndex:h,record:u,inverse:a,getHeight:l})));return R?v.createElement("div",{ref:t},F,I):F}),FX=BC(SHe),wHe=v.forwardRef((e,t)=>{const{data:r,onScroll:n}=e,{flattenColumns:i,onColumnResize:o,getRowKey:s,expandedKeys:a,prefixCls:l,childrenColumnName:c,scrollX:u,direction:d}=lo($o,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),{sticky:h,scrollY:p,listItemHeight:f,getComponent:g,onScroll:m}=lo($H),y=v.useRef(null),b=Ade(r,c,a,s),S=v.useMemo(()=>{let I=0;return i.map(({width:L,minWidth:F,key:O})=>{const k=Math.max(L||0,F||0);return I+=k,[O,k,I]})},[i]),x=v.useMemo(()=>S.map(I=>I[2]),[S]);v.useEffect(()=>{S.forEach(([I,L])=>{o(I,L)})},[S]),v.useImperativeHandle(t,()=>{var L;const I={scrollTo:F=>{var B,H;const{offset:O,...k}=F;O?(B=y.current)==null||B.scrollTo({...k,offset:O,align:"top"}):(H=y.current)==null||H.scrollTo(F)},nativeElement:(L=y.current)==null?void 0:L.nativeElement};return Object.defineProperty(I,"scrollLeft",{get:()=>{var F;return((F=y.current)==null?void 0:F.getScrollInfo().x)||0},set:F=>{var O;(O=y.current)==null||O.scrollTo({left:F})}}),Object.defineProperty(I,"scrollTop",{get:()=>{var F;return((F=y.current)==null?void 0:F.getScrollInfo().y)||0},set:F=>{var O;(O=y.current)==null||O.scrollTo({top:F})}}),I});const E=(I,L)=>{var k;const F=(k=b[L])==null?void 0:k.record,{onCell:O}=I;if(O){const B=O(F,L);return(B==null?void 0:B.rowSpan)??1}return 1},R=I=>{const{start:L,end:F,getSize:O,offsetY:k}=I;if(F<0)return null;let B=i.filter($=>E($,L)===0),H=L;for(let $=L;$>=0;$-=1)if(B=B.filter(K=>E(K,$)===0),!B.length){H=$;break}let N=i.filter($=>E($,F)!==1),z=F;for(let $=F;$E(K,$)!==1),!N.length){z=Math.max($-1,F);break}const W=[];for(let $=H;$<=z;$+=1)b[$]&&i.some(q=>E(q,$)>1)&&W.push($);return W.map($=>{const K=b[$],q=s(K.record,$),X=oe=>{const ee=$+oe-1,ne=b[ee];if(!ne||!ne.record){const re=Math.min(ee,b.length-1),ie=b[re],de=s(ie.record,re),J=O(q,de);return J.bottom-J.top}const le=s(ne.record,ee),he=O(q,le);return he.bottom-he.top},Y=O(q);return v.createElement(FX,{key:$,data:K,rowKey:q,index:$,style:{top:-k+Y.top},extra:!0,getHeight:X})})},T=v.useMemo(()=>({columnsOffset:x}),[x]),M=`${l}-tbody`,D=g(["body","wrapper"]),A={};return h&&(A.position="sticky",A.bottom=0,typeof h=="object"&&h.offsetScroll&&(A.bottom=h.offsetScroll)),v.createElement(Vde.Provider,{value:T},v.createElement(YD,{fullHeight:!1,ref:y,prefixCls:`${M}-virtual`,styles:{horizontalScrollBar:A},className:M,height:p,itemHeight:f||24,data:b,itemKey:I=>s(I.record),component:D,scrollWidth:u,direction:d,onVirtualScroll:({x:I})=>{var L;n({currentTarget:(L=y.current)==null?void 0:L.nativeElement,scrollLeft:I})},onScroll:m,extraRender:R},(I,L,F)=>{const O=s(I.record,L);return v.createElement(FX,{data:I,rowKey:O,index:L,style:F.style})}))}),xHe=BC(wHe);function CG(){return CG=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{ref:r,onScroll:n}=t;return v.createElement(xHe,{ref:r,data:e,onScroll:n})},THe=(e,t)=>{const{data:r,columns:n,scroll:i,sticky:o,prefixCls:s=$de,className:a,listItemHeight:l,components:c,onScroll:u}=e;let{x:d,y:h}=i||{};typeof d!="number"&&(d=1),typeof h!="number"&&(h=500);const p=Sr((m,y)=>Zs(c,m)||y),f=Sr(u),g=v.useMemo(()=>({sticky:o,scrollY:h,listItemHeight:l,getComponent:p,onScroll:f}),[o,h,l,p,f]);return v.createElement($H.Provider,{value:g},v.createElement(GC,CG({},e,{className:Z(a,`${s}-virtual`),scroll:{...i,x:d},components:{...c,body:r!=null&&r.length?EHe:void 0},columns:n,internalHooks:n1,tailor:!0,ref:t})))},RHe=v.forwardRef(THe),zde=e=>Rde(RHe,e);zde();const PHe=e=>null,MHe=e=>null,GH=v.createContext(null),IHe=v.createContext({}),DHe=({prefixCls:e,level:t,isStart:r,isEnd:n})=>{const i=`${e}-indent-unit`,o=[];for(let s=0;s{var St,Ze;const{eventKey:t,className:r,style:n,dragOver:i,dragOverGapTop:o,dragOverGapBottom:s,isLeaf:a,isStart:l,isEnd:c,expanded:u,selected:d,checked:h,halfChecked:p,loading:f,domRef:g,active:m,data:y,onMouseMove:b,selectable:S,treeId:x,...E}=e,R=lle(x,t),T=Q.useContext(GH),{classNames:M,styles:D}=T||{},A=Q.useContext(IHe),I=Q.useRef(null),[L,F]=Q.useState(!1),O=!!(T.disabled||e.disabled||(St=A.nodeDisabled)!=null&&St.call(A,y)),k=Q.useMemo(()=>!T.checkable||e.checkable===!1?!1:T.checkable,[T.checkable,e.checkable]),B=Fe=>{O||T.onNodeSelect(Fe,Hi(e))},H=Fe=>{O||!k||e.disableCheckbox||T.onNodeCheck(Fe,Hi(e),!h)},N=Q.useMemo(()=>typeof S=="boolean"?S:T.selectable,[S,T.selectable]),z=Fe=>{T.onNodeClick(Fe,Hi(e)),N?B(Fe):H(Fe)},W=Fe=>{T.onNodeDoubleClick(Fe,Hi(e))},V=Fe=>{T.onNodeMouseEnter(Fe,Hi(e))},$=Fe=>{T.onNodeMouseLeave(Fe,Hi(e))},K=Fe=>{T.onNodeContextMenu(Fe,Hi(e))},q=Q.useMemo(()=>!!(T.draggable&&(!T.draggable.nodeDraggable||T.draggable.nodeDraggable(y))),[T.draggable,y]),X=Fe=>{Fe.stopPropagation(),F(!0),T.onNodeDragStart(Fe,e);try{Fe.dataTransfer.setData("text/plain","")}catch{}},Y=Fe=>{Fe.preventDefault(),Fe.stopPropagation(),T.onNodeDragEnter(Fe,e)},oe=Fe=>{Fe.preventDefault(),Fe.stopPropagation(),T.onNodeDragOver(Fe,e)},ee=Fe=>{Fe.stopPropagation(),T.onNodeDragLeave(Fe,e)},ne=Fe=>{Fe.stopPropagation(),F(!1),T.onNodeDragEnd(Fe,e)},le=Fe=>{Fe.preventDefault(),Fe.stopPropagation(),F(!1),T.onNodeDrop(Fe,e)},he=Fe=>{f||T.onNodeExpand(Fe,Hi(e))},re=Q.useMemo(()=>{const{children:Fe}=Es(T.keyEntities,t)||{};return!!(Fe||[]).length},[T.keyEntities,t]),ie=Q.useMemo(()=>Nue(a,T.loadData,re,e.loaded),[a,T.loadData,re,e.loaded]);Q.useEffect(()=>{f||typeof T.loadData=="function"&&u&&!ie&&!e.loaded&&T.onNodeLoad(Hi(e))},[f,T.loadData,T.onNodeLoad,u,ie,e]);const de=Q.useMemo(()=>{var Fe;return(Fe=T.draggable)!=null&&Fe.icon?Q.createElement("span",{className:`${T.prefixCls}-draggable-icon`},T.draggable.icon):null},[T.draggable]),J=Fe=>{const tt=e.switcherIcon||T.switcherIcon;return typeof tt=="function"?tt({...e,isLeaf:Fe}):tt},ue=()=>{if(ie){const tt=J(!0);return tt!==!1?Q.createElement("span",{className:Z(`${T.prefixCls}-switcher`,`${T.prefixCls}-switcher-noop`)},tt):null}const Fe=J(!1);return Fe!==!1?Q.createElement("span",{onClick:he,className:Z(`${T.prefixCls}-switcher`,`${T.prefixCls}-switcher_${u?LX:_X}`)},Fe):null},ve=Q.useMemo(()=>{if(!k)return null;const Fe=typeof k!="boolean"?k:null;return Q.createElement("span",{className:Z(`${T.prefixCls}-checkbox`,{[`${T.prefixCls}-checkbox-checked`]:h,[`${T.prefixCls}-checkbox-indeterminate`]:!h&&p,[`${T.prefixCls}-checkbox-disabled`]:O||e.disableCheckbox}),onClick:H,role:"checkbox","aria-checked":p?"mixed":h,"aria-disabled":O||e.disableCheckbox,"aria-labelledby":R},Fe)},[k,h,p,O,e.disableCheckbox,R]),pe=Q.useMemo(()=>ie?null:u?LX:_X,[ie,u]),me=Q.useMemo(()=>Q.createElement("span",{className:Z(M==null?void 0:M.itemIcon,`${T.prefixCls}-iconEle`,`${T.prefixCls}-icon__${pe||"docu"}`,{[`${T.prefixCls}-icon_loading`]:f}),style:D==null?void 0:D.itemIcon}),[T.prefixCls,pe,f]),Oe=Q.useMemo(()=>{const Fe=!!T.draggable;return!e.disabled&&Fe&&T.dragOverNodeKey===t?T.dropIndicatorRender({dropPosition:T.dropPosition,dropLevelOffset:T.dropLevelOffset,indent:T.indent,prefixCls:T.prefixCls,direction:T.direction}):null},[T.dropPosition,T.dropLevelOffset,T.indent,T.prefixCls,T.direction,T.draggable,T.dragOverNodeKey,T.dropIndicatorRender]),De=Q.useMemo(()=>{const{title:Fe=FHe}=e,tt=`${T.prefixCls}-node-content-wrapper`;let Ne;if(T.showIcon){const ot=e.icon||T.icon;Ne=ot?Q.createElement("span",{className:Z(M==null?void 0:M.itemIcon,`${T.prefixCls}-iconEle`,`${T.prefixCls}-icon__customize`),style:D==null?void 0:D.itemIcon},typeof ot=="function"?ot(e):ot):me}else T.loadData&&f&&(Ne=me);let rt;return typeof Fe=="function"?rt=Fe(y):T.titleRender?rt=T.titleRender(y):rt=Fe,Q.createElement("span",{ref:I,title:typeof Fe=="string"?Fe:"",className:Z(tt,`${tt}-${pe||"normal"}`,{[`${T.prefixCls}-node-selected`]:!O&&(d||L)}),onMouseEnter:V,onMouseLeave:$,onContextMenu:K,onClick:z,onDoubleClick:W},Ne,Q.createElement("span",{className:Z(`${T.prefixCls}-title`,M==null?void 0:M.itemTitle),style:D==null?void 0:D.itemTitle},rt),Oe)},[T.prefixCls,T.showIcon,e,T.icon,me,T.titleRender,y,pe,V,$,K,z,W]),Ee=ei(E,{aria:!0,data:!0}),{level:We}=Es(T.keyEntities,t)||{},ze=c[c.length-1],mt=!O&&q,Nt=T.draggingNodeKey===t;return Q.createElement("div",bG({ref:g,role:"treeitem",id:R,"aria-expanded":ie?void 0:u,"aria-selected":N&&!O?d:void 0,"aria-checked":k&&!O?p?"mixed":h:void 0,"aria-disabled":O,className:Z(r,`${T.prefixCls}-treenode`,M==null?void 0:M.item,{[`${T.prefixCls}-treenode-disabled`]:O,[`${T.prefixCls}-treenode-switcher-${u?"open":"close"}`]:!a,[`${T.prefixCls}-treenode-checkbox-checked`]:h,[`${T.prefixCls}-treenode-checkbox-indeterminate`]:p,[`${T.prefixCls}-treenode-selected`]:d,[`${T.prefixCls}-treenode-loading`]:f,[`${T.prefixCls}-treenode-active`]:m,[`${T.prefixCls}-treenode-leaf-last`]:ze,[`${T.prefixCls}-treenode-draggable`]:q,dragging:Nt,"drop-target":T.dropTargetKey===t,"drop-container":T.dropContainerKey===t,"drag-over":!O&&i,"drag-over-gap-top":!O&&o,"drag-over-gap-bottom":!O&&s,"filter-node":(Ze=T.filterTreeNode)==null?void 0:Ze.call(T,Hi(e)),[`${T.prefixCls}-treenode-leaf`]:ie}),style:{...n,...D==null?void 0:D.item},draggable:mt,onDragStart:mt?X:void 0,onDragEnter:q?Y:void 0,onDragOver:q?oe:void 0,onDragLeave:q?ee:void 0,onDrop:q?le:void 0,onDragEnd:q?ne:void 0,onMouseMove:b},Ee),Q.createElement(AHe,{prefixCls:T.prefixCls,level:We,isStart:l,isEnd:c}),de,ue(),ve,De)};Lw.isTreeNode=1;function Wc(e,t){if(!e)return[];const r=e.slice(),n=r.indexOf(t);return n>=0&&r.splice(n,1),r}function ed(e,t){const r=(e||[]).slice();return r.indexOf(t)===-1&&r.push(t),r}function VH(e){return e.split("-")}function LHe(e,t){const r=[],n=Es(t,e);function i(o=[]){o.forEach(({key:s,children:a})=>{r.push(s),i(a)})}return i(n.children),r}function _He(e){if(e.parent){const t=VH(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function kHe(e){const t=VH(e.pos);return Number(t[t.length-1])===0}function kX(e,t,r,n,i,o,s,a,l,c){var A;const{clientX:u,clientY:d}=e,{top:h,height:p}=e.target.getBoundingClientRect(),g=((c==="rtl"?-1:1)*(((i==null?void 0:i.x)||0)-u)-12)/n,m=l.filter(I=>{var L,F;return(F=(L=a[I])==null?void 0:L.children)==null?void 0:F.length});let y=Es(a,r.eventKey);if(dO.key===y.key),L=I<=0?0:I-1,F=s[L].key;y=Es(a,F)}const b=y.key,S=y,x=y.key;let E=0,R=0;if(!m.includes(b))for(let I=0;I-1.5?o({dragNode:T,dropNode:M,dropPosition:1})?E=1:D=!1:o({dragNode:T,dropNode:M,dropPosition:0})?E=0:o({dragNode:T,dropNode:M,dropPosition:1})?E=1:D=!1:o({dragNode:T,dropNode:M,dropPosition:1})?E=1:D=!1,{dropPosition:E,dropLevelOffset:R,dropTargetKey:y.key,dropTargetPos:y.pos,dragOverNodeKey:x,dropContainerKey:E===0?null:((A=y.parent)==null?void 0:A.key)||null,dropAllowed:D}}function OX(e,t){if(!e)return;const{multiple:r}=t;return r?e.slice():e.length?[e[0]]:e}function g2(e){if(!e)return null;let t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(typeof e=="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Vn(!1,"`checkedKeys` is not an array or an object"),null;return t}function SG(e,t){const r=new Set;function n(i){if(r.has(i))return;const o=Es(t,i);if(!o)return;r.add(i);const{parent:s,node:a}=o;a.disabled||s&&n(s.key)}return(e||[]).forEach(i=>{n(i)}),[...r]}const Oh={},wG="SELECT_ALL",xG="SELECT_INVERT",EG="SELECT_NONE",NX=[],Hde=(e,t,r=[])=>((t||[]).forEach(n=>{r.push(n),n&&typeof n=="object"&&e in n&&Hde(e,n[e],r)}),r),OHe=(e,t)=>{const{preserveSelectedRowKeys:r,selectedRowKeys:n,defaultSelectedRowKeys:i,getCheckboxProps:o,getTitleCheckboxProps:s,onChange:a,onSelect:l,onSelectAll:c,onSelectInvert:u,onSelectNone:d,onSelectMultiple:h,columnWidth:p,type:f,selections:g,fixed:m,renderCell:y,hideSelectAll:b,checkStrictly:S=!0}=t||{},{prefixCls:x,data:E,pageData:R,getRecordByKey:T,getRowKey:M,expandType:D,childrenColumnName:A,locale:I,getPopupContainer:L}=e,F=MC(),[O,k]=pFe(re=>re),[B,H]=An(i||NX,n),N=v.useRef(new Map),z=v.useCallback(re=>{if(r){const ie=new Map;re.forEach(de=>{let J=T(de);!J&&N.current.has(de)&&(J=N.current.get(de)),ie.set(de,J)}),N.current=ie}},[T,r]);v.useEffect(()=>{z(B)},[B]);const W=v.useMemo(()=>Hde(A,R),[A,R]),{keyEntities:V}=v.useMemo(()=>{if(S)return{keyEntities:null};let re=E;if(r){const ie=new Set(W.map(M)),de=Array.from(N.current).reduce((J,[ue,ve])=>ie.has(ue)?J:J.concat(ve),[]);re=[].concat(Pr(re),Pr(de))}return MH(re,{externalGetKey:M,childrenPropName:A})},[E,M,S,A,r,W]),$=v.useMemo(()=>{const re=new Map;return W.forEach((ie,de)=>{const J=M(ie,de),ue=(o?o(ie):null)||{};re.set(J,ue)}),re},[W,M,o]),K=v.useCallback(re=>{const ie=M(re);let de;return $.has(ie)?de=$.get(M(re)):de=o?o(re):void 0,!!(de!=null&&de.disabled)},[$,M]),[q,X]=v.useMemo(()=>{if(S)return[B||[],[]];const{checkedKeys:re,halfCheckedKeys:ie}=wy(B,!0,V,K);return[re||[],ie]},[B,S,V,K]),Y=v.useMemo(()=>{const re=f==="radio"?q.slice(0,1):q;return new Set(re)},[q,f]),oe=v.useMemo(()=>f==="radio"?new Set:new Set(X),[X,f]);v.useEffect(()=>{t||H(NX)},[!!t]);const ee=v.useCallback((re,ie)=>{let de,J;z(re),r?(de=re,J=re.map(ue=>N.current.get(ue))):(de=[],J=[],re.forEach(ue=>{const ve=T(ue);ve!==void 0&&(de.push(ue),J.push(ve))})),H(de),a==null||a(de,J,{type:ie})},[H,T,a,r]),ne=v.useCallback((re,ie,de,J)=>{if(l){const ue=de.map(T);l(T(re),ie,ue,J)}ee(de,"single")},[l,T,ee]),le=v.useMemo(()=>!g||b?null:(g===!0?[wG,xG,EG]:g).map(ie=>ie===wG?{key:"all",text:I.selectionAll,onSelect(){ee(E.map((de,J)=>M(de,J)).filter(de=>{const J=$.get(de);return!(J!=null&&J.disabled)||Y.has(de)}),"all")}}:ie===xG?{key:"invert",text:I.selectInvert,onSelect(){const de=new Set(Y);R.forEach((ue,ve)=>{const pe=M(ue,ve),me=$.get(pe);me!=null&&me.disabled||(de.has(pe)?de.delete(pe):de.add(pe))});const J=Array.from(de);u&&(F.deprecated(!1,"onSelectInvert","onChange"),u(J)),ee(J,"invert")}}:ie===EG?{key:"none",text:I.selectNone,onSelect(){d==null||d(),ee(Array.from(Y).filter(de=>{const J=$.get(de);return J==null?void 0:J.disabled}),"none")}}:ie).map(ie=>({...ie,onSelect:(...de)=>{var J;(J=ie.onSelect)==null||J.call(ie,...de),k(null)}})),[g,b,I.selectionAll,I.selectInvert,I.selectNone,$,Y,E,R,M,u,ee]);return[v.useCallback(re=>{var tt;if(!t)return re.filter(Ne=>Ne!==Oh);let ie=Pr(re);const de=new Set(Y),J=W.map(M).filter(Ne=>!$.get(Ne).disabled),ue=J.every(Ne=>de.has(Ne)),ve=J.some(Ne=>de.has(Ne)),pe=()=>{const Ne=[];ue?J.forEach(ot=>{de.delete(ot),Ne.push(ot)}):J.forEach(ot=>{de.has(ot)||(de.add(ot),Ne.push(ot))});const rt=Array.from(de);c==null||c(!ue,rt.map(T),Ne.map(T)),ee(rt,"all"),k(null)};let me,Oe;if(f!=="radio"){let Ne;if(le){const Ot={getPopupContainer:L,items:le.map((Wt,at)=>{const{key:lt,text:Ut,onSelect:cr}=Wt;return{key:lt??at,onClick:()=>{cr==null||cr(J)},label:Ut}})};Ne=v.createElement("div",{className:`${x}-selection-extra`},v.createElement(FH,{menu:Ot,getPopupContainer:L},v.createElement("span",null,v.createElement(ZD,null))))}const rt=W.map((Ot,Wt)=>{const at=M(Ot,Wt),lt=$.get(at)||{};return{checked:de.has(at),...lt}}).filter(({disabled:Ot})=>Ot),ot=!!rt.length&&rt.length===W.length,Ye=ot&&rt.every(({checked:Ot})=>Ot),Ae=ot&&rt.some(({checked:Ot})=>Ot),nt=(s==null?void 0:s())||{},{onChange:Et,disabled:Tt}=nt;Oe=v.createElement(Ky,{"aria-label":Ne?"Custom selection":"Select all",...nt,checked:ot?Ye:!!W.length&&ue,indeterminate:ot?!Ye&&Ae:!ue&&ve,onChange:Ot=>{pe(),Et==null||Et(Ot)},disabled:Tt??(W.length===0||ot),skipGroup:!0}),me=!b&&v.createElement("div",{className:`${x}-selection`},Oe,Ne)}let De;f==="radio"?De=(Ne,rt,ot)=>{const Ye=M(rt,ot),Ae=de.has(Ye),nt=$.get(Ye);return{node:v.createElement(Zx,{...nt,checked:Ae,onClick:Et=>{var Tt;Et.stopPropagation(),(Tt=nt==null?void 0:nt.onClick)==null||Tt.call(nt,Et)},onChange:Et=>{var Tt;de.has(Ye)||ne(Ye,!0,[Ye],Et.nativeEvent),(Tt=nt==null?void 0:nt.onChange)==null||Tt.call(nt,Et)}}),checked:Ae}}:De=(Ne,rt,ot)=>{const Ye=M(rt,ot),Ae=de.has(Ye),nt=oe.has(Ye),Et=$.get(Ye);let Tt;return D==="nest"?Tt=nt:Tt=(Et==null?void 0:Et.indeterminate)??nt,{node:v.createElement(Ky,{...Et,indeterminate:Tt,checked:Ae,skipGroup:!0,onClick:Ot=>{var Wt;Ot.stopPropagation(),(Wt=Et==null?void 0:Et.onClick)==null||Wt.call(Et,Ot)},onChange:Ot=>{var cr;const{nativeEvent:Wt}=Ot,{shiftKey:at}=Wt,lt=J.indexOf(Ye),Ut=q.some(_e=>J.includes(_e));if(at&&S&&Ut){const _e=O(lt,J,de),qe=Array.from(de);h==null||h(!Ae,qe.map(T),_e.map(T)),ee(qe,"multiple")}else{const _e=q;if(S){const qe=Ae?Wc(_e,Ye):ed(_e,Ye);ne(Ye,!Ae,qe,Wt)}else{const qe=wy([].concat(Pr(_e),[Ye]),!0,V,K),{checkedKeys:Re,halfCheckedKeys:it}=qe;let Ve=Re;if(Ae){const ke=new Set(Re);ke.delete(Ye),Ve=wy(Array.from(ke),{halfCheckedKeys:it},V,K).checkedKeys}ne(Ye,!Ae,Ve,Wt)}}k(Ae?null:lt),(cr=Et==null?void 0:Et.onChange)==null||cr.call(Et,Ot)}}),checked:Ae}};const Ee=(Ne,rt,ot)=>{const{node:Ye,checked:Ae}=De(Ne,rt,ot);return y?y(Ae,rt,ot,Ye):Ye};if(!ie.includes(Oh))if(ie.findIndex(Ne=>{var rt;return((rt=Ne[NS])==null?void 0:rt.columnType)==="EXPAND_COLUMN"})===0){const[Ne,...rt]=ie;ie=[Ne,Oh].concat(Pr(rt))}else ie=[Oh].concat(Pr(ie));const We=ie.indexOf(Oh);ie=ie.filter((Ne,rt)=>Ne!==Oh||rt===We);const ze=ie[We-1],mt=ie[We+1];let Nt=m;Nt===void 0&&((mt==null?void 0:mt.fixed)!==void 0?Nt=mt.fixed:(ze==null?void 0:ze.fixed)!==void 0&&(Nt=ze.fixed)),Nt&&ze&&((tt=ze[NS])==null?void 0:tt.columnType)==="EXPAND_COLUMN"&&ze.fixed===void 0&&(ze.fixed=Nt);const St=Z(`${x}-selection-col`,{[`${x}-selection-col-with-dropdown`]:g&&f==="checkbox"}),Ze=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(Oe):t.columnTitle:me,Fe={fixed:Nt,width:p,className:`${x}-selection-column`,title:Ze(),render:Ee,onCell:t.onCell,align:t.align,[NS]:{className:St}};return ie.map(Ne=>Ne===Oh?Fe:Ne)},[M,W,t,q,Y,oe,p,le,D,$,h,ne,K]),Y]};function NHe(e){return t=>{const{prefixCls:r,onExpand:n,record:i,expanded:o,expandable:s}=t,a=`${r}-row-expand-icon`;return v.createElement("button",{type:"button",onClick:l=>{n(i,l),l.stopPropagation()},className:Z(a,{[`${a}-spaced`]:!s,[`${a}-expanded`]:s&&o,[`${a}-collapsed`]:s&&!o}),"aria-label":o?e.collapse:e.expand,"aria-expanded":o})}}function BHe(e){return(r,n)=>{const i=r.querySelector(`.${e}-container`);let o=n;if(i){const s=getComputedStyle(i),a=Number.parseInt(s.borderLeftWidth,10),l=Number.parseInt(s.borderRightWidth,10);o=n-a-l}return o}}const Pp=(e,t)=>"key"in e&&Tn(e.key)?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function VC(e,t){return t?`${t}-${e}`:`${e}`}const uA=(e,t)=>typeof e=="function"?e(t):e,$He=(e,t)=>{const r=uA(e,t);return Object.prototype.toString.call(r)==="[object Object]"?"":r};var GHe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};function TG(){return TG=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,TG({},e,{ref:t,icon:GHe})),zHe=v.forwardRef(VHe),HHe=e=>{const{dropPosition:t,dropLevelOffset:r,indent:n}=e,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:i.top=0,i.left=-r*n;break;case 1:i.bottom=0,i.left=-r*n;break;case 0:i.bottom=0,i.left=n;break}return Q.createElement("div",{style:i})};function WHe(e,t){const[r,n]=v.useState(!1);jr(()=>{if(r)return e(),()=>{t()}},[r]),jr(()=>(n(!0),()=>{n(!1)}),[])}function BS(){return BS=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{className:r,style:n,motion:i,motionNodes:o,motionType:s,onMotionStart:a,onMotionEnd:l,active:c,treeNodeRequiredProps:u,...d}=e,[h,p]=v.useState(!0),{prefixCls:f}=v.useContext(GH),g=o&&s!=="hide";jr(()=>{o&&g!==h&&p(g)},[o]);const m=()=>{o&&a()},y=v.useRef(!1),b=()=>{o&&!y.current&&(y.current=!0,l())};WHe(m,b);const S=x=>{g===x&&b()};return o?v.createElement(gu,BS({ref:t,visible:h},i,{motionAppear:s==="show",onVisibleChanged:S}),({className:x,style:E},R)=>v.createElement("div",{ref:R,className:Z(`${f}-treenode-motion`,x),style:E},o.map(T=>{const{data:{...M},title:D,key:A,isStart:I,isEnd:L}=T;delete M.children;const F=_S(A,u);return v.createElement(Lw,BS({},M,F,{title:D,active:c,data:T.data,key:A,isStart:I,isEnd:L}))}))):v.createElement(Lw,BS({domRef:t,className:r,style:n},d,{active:c}))});function jHe(e=[],t=[]){const r=e.length,n=t.length;if(Math.abs(r-n)!==1)return{add:!1,key:null};function i(o,s){const a=new Map;o.forEach(c=>{a.set(c,!0)});const l=s.filter(c=>!a.has(c));return l.length===1?l[0]:null}return rs.key===r),i=e[n+1],o=t.findIndex(s=>s.key===r);if(i){const s=t.findIndex(a=>a.key===i.key);return t.slice(o+1,s)}return t.slice(o+1)}function _M(){return _M=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{prefixCls:r,data:n,selectable:i,checkable:o,expandedKeys:s,selectedKeys:a,checkedKeys:l,loadedKeys:c,loadingKeys:u,halfCheckedKeys:d,keyEntities:h,disabled:p,dragging:f,dragOverNodeKey:g,dropPosition:m,motion:y,height:b,itemHeight:S,virtual:x,scrollWidth:E,focusable:R,activeItem:T,tabIndex:M,onKeyDown:D,onFocus:A,onBlur:I,onActiveChange:L,onListChangeStart:F,onListChangeEnd:O,...k}=e,B=xc(),H=v.useRef(null),N=v.useRef(null);v.useImperativeHandle(t,()=>({scrollTo:ie=>{H.current.scrollTo(ie)},getIndentWidth:()=>N.current.offsetWidth}));const[z,W]=v.useState(s),[V,$]=v.useState(n),[K,q]=v.useState(n),[X,Y]=v.useState([]),[oe,ee]=v.useState(null),ne=v.useRef(n);ne.current=n;function le(){const ie=ne.current;$(ie),q(ie),Y([]),ee(null),O()}jr(()=>{W(s);const ie=jHe(z,s);if(ie.key!==null)if(ie.add){const de=V.findIndex(({key:ve})=>ve===ie.key),J=GX(BX(V,n,ie.key),x,b,S),ue=V.slice();ue.splice(de+1,0,$X),q(ue),Y(J),ee("show")}else{const de=n.findIndex(({key:ve})=>ve===ie.key),J=GX(BX(n,V,ie.key),x,b,S),ue=n.slice();ue.splice(de+1,0,$X),q(ue),Y(J),ee("hide")}else V!==n&&($(n),q(n))},[s,n]),v.useEffect(()=>{f||le()},[f]);const he=y?K:n,re={expandedKeys:s,selectedKeys:a,loadedKeys:c,loadingKeys:u,checkedKeys:l,halfCheckedKeys:d,dragOverNodeKey:g,dropPosition:m,keyEntities:h};return v.createElement(v.Fragment,null,v.createElement("div",{className:`${r}-treenode`,"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},v.createElement("div",{className:`${r}-indent`},v.createElement("div",{ref:N,className:`${r}-indent-unit`}))),v.createElement(YD,_M({},k,{data:he,itemKey:VX,height:b,fullHeight:!1,virtual:x,itemHeight:S,scrollWidth:E,prefixCls:`${r}-list`,ref:H,role:"tree",tabIndex:R!==!1&&!p?M:void 0,"aria-activedescendant":T?lle(B,T.key):void 0,onKeyDown:D,onFocus:A,onBlur:I,onVisibleChange:ie=>{ie.every(de=>VX(de)!==nm)&&le()}}),ie=>{const{pos:de,data:{...J},title:ue,key:ve,isStart:pe,isEnd:me}=ie,Oe=Qx(ve,de);delete J.key,delete J.children;const De=_S(Oe,re);return v.createElement(UHe,_M({},J,De,{title:ue,active:!!T&&ve===T.key,pos:de,data:ie.data,isStart:pe,isEnd:me,motion:y,motionNodes:ve===nm?X:null,motionType:oe,onMotionStart:F,onMotionEnd:le,treeNodeRequiredProps:re,treeId:B,onMouseMove:()=>{L(null)}}))}))});function PG(){return PG=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{expandedKeys:i,keyEntities:o}=this.state,{onDragStart:s}=this.props,{eventKey:a}=n;this.dragNodeProps=n,this.dragStartMousePosition={x:r.clientX,y:r.clientY};const l=Wc(i,a);this.setState({draggingNodeKey:a,dragChildrenKeys:LHe(a,o),indent:this.listRef.current.getIndentWidth()}),this.setExpandedKeys(l),window.addEventListener("dragend",this.onWindowDragEnd),s==null||s({event:r,node:Hi(n)})});Ie(this,"onNodeDragEnter",(r,n)=>{const{expandedKeys:i,keyEntities:o,dragChildrenKeys:s,flattenNodes:a,indent:l}=this.state,{onDragEnter:c,onExpand:u,allowDrop:d,direction:h}=this.props,{pos:p,eventKey:f}=n;if(this.currentMouseOverDroppableNodeKey!==f&&(this.currentMouseOverDroppableNodeKey=f),!this.dragNodeProps){this.resetDragState();return}const{dropPosition:g,dropLevelOffset:m,dropTargetKey:y,dropContainerKey:b,dropTargetPos:S,dropAllowed:x,dragOverNodeKey:E}=kX(r,this.dragNodeProps,n,l,this.dragStartMousePosition,d,a,o,i,h);if(s.includes(y)||!x){this.resetDragState();return}if(this.delayedDragEnterLogic||(this.delayedDragEnterLogic={}),Object.keys(this.delayedDragEnterLogic).forEach(R=>{clearTimeout(this.delayedDragEnterLogic[R])}),this.dragNodeProps.eventKey!==n.eventKey&&(r.persist(),this.delayedDragEnterLogic[p]=window.setTimeout(()=>{if(this.state.draggingNodeKey===null)return;let R=[...i];const T=Es(o,n.eventKey);T&&(T.children||[]).length&&(R=ed(i,n.eventKey)),this.props.hasOwnProperty("expandedKeys")||this.setExpandedKeys(R),u==null||u(R,{node:Hi(n),expanded:!0,nativeEvent:r.nativeEvent})},800)),this.dragNodeProps.eventKey===y&&m===0){this.resetDragState();return}this.setState({dragOverNodeKey:E,dropPosition:g,dropLevelOffset:m,dropTargetKey:y,dropContainerKey:b,dropTargetPos:S,dropAllowed:x}),c==null||c({event:r,node:Hi(n),expandedKeys:i})});Ie(this,"onNodeDragOver",(r,n)=>{const{dragChildrenKeys:i,flattenNodes:o,keyEntities:s,expandedKeys:a,indent:l}=this.state,{onDragOver:c,allowDrop:u,direction:d}=this.props;if(!this.dragNodeProps)return;const{dropPosition:h,dropLevelOffset:p,dropTargetKey:f,dropContainerKey:g,dropTargetPos:m,dropAllowed:y,dragOverNodeKey:b}=kX(r,this.dragNodeProps,n,l,this.dragStartMousePosition,u,o,s,a,d);i.includes(f)||!y||(this.dragNodeProps.eventKey===f&&p===0?this.state.dropPosition===null&&this.state.dropLevelOffset===null&&this.state.dropTargetKey===null&&this.state.dropContainerKey===null&&this.state.dropTargetPos===null&&this.state.dropAllowed===!1&&this.state.dragOverNodeKey===null||this.resetDragState():h===this.state.dropPosition&&p===this.state.dropLevelOffset&&f===this.state.dropTargetKey&&g===this.state.dropContainerKey&&m===this.state.dropTargetPos&&y===this.state.dropAllowed&&b===this.state.dragOverNodeKey||this.setState({dropPosition:h,dropLevelOffset:p,dropTargetKey:f,dropContainerKey:g,dropTargetPos:m,dropAllowed:y,dragOverNodeKey:b}),c==null||c({event:r,node:Hi(n)}))});Ie(this,"onNodeDragLeave",(r,n)=>{this.currentMouseOverDroppableNodeKey===n.eventKey&&!r.currentTarget.contains(r.relatedTarget)&&(this.resetDragState(),this.currentMouseOverDroppableNodeKey=null);const{onDragLeave:i}=this.props;i==null||i({event:r,node:Hi(n)})});Ie(this,"onWindowDragEnd",r=>{this.onNodeDragEnd(r,null,!0),window.removeEventListener("dragend",this.onWindowDragEnd)});Ie(this,"onNodeDragEnd",(r,n)=>{const{onDragEnd:i}=this.props;this.setState({dragOverNodeKey:null}),this.cleanDragState(),i==null||i({event:r,node:Hi(n)}),this.dragNodeProps=null,window.removeEventListener("dragend",this.onWindowDragEnd)});Ie(this,"onNodeDrop",(r,n,i=!1)=>{var g;const{dragChildrenKeys:o,dropPosition:s,dropTargetKey:a,dropTargetPos:l,dropAllowed:c}=this.state;if(!c)return;const{onDrop:u}=this.props;if(this.setState({dragOverNodeKey:null}),this.cleanDragState(),a===null)return;const d={..._S(a,this.getTreeNodeRequiredProps()),active:((g=this.getActiveItem())==null?void 0:g.key)===a,data:Es(this.state.keyEntities,a).node},h=o.includes(a);Vn(!h,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");const p=VH(l),f={event:r,node:Hi(d),dragNode:this.dragNodeProps?Hi(this.dragNodeProps):null,dragNodesKeys:[this.dragNodeProps.eventKey].concat(o),dropToGap:s!==0,dropPosition:s+Number(p[p.length-1])};i||u==null||u(f),this.dragNodeProps=null});Ie(this,"cleanDragState",()=>{const{draggingNodeKey:r}=this.state;r!==null&&this.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),this.dragStartMousePosition=null,this.currentMouseOverDroppableNodeKey=null});Ie(this,"triggerExpandActionExpand",(r,n)=>{const{expandedKeys:i,flattenNodes:o}=this.state,{expanded:s,key:a,isLeaf:l}=n;if(l||r.shiftKey||r.metaKey||r.ctrlKey)return;const c=o.filter(d=>d.key===a)[0],u=Hi({..._S(a,this.getTreeNodeRequiredProps()),data:c.data});this.setExpandedKeys(s?Wc(i,a):ed(i,a)),this.onNodeExpand(r,u)});Ie(this,"onNodeClick",(r,n)=>{const{onClick:i,expandAction:o}=this.props;o==="click"&&this.triggerExpandActionExpand(r,n),i==null||i(r,n)});Ie(this,"onNodeDoubleClick",(r,n)=>{const{onDoubleClick:i,expandAction:o}=this.props;o==="doubleClick"&&this.triggerExpandActionExpand(r,n),i==null||i(r,n)});Ie(this,"onNodeSelect",(r,n)=>{let{selectedKeys:i}=this.state;const{keyEntities:o,fieldNames:s}=this.state,{onSelect:a,multiple:l}=this.props,{selected:c}=n,u=n[s.key],d=!c;d?l?i=ed(i,u):i=[u]:i=Wc(i,u);const h=i.map(p=>{const f=Es(o,p);return f?f.node:null}).filter(Boolean);this.setUncontrolledState({selectedKeys:i}),a==null||a(i,{event:"select",selected:d,node:n,selectedNodes:h,nativeEvent:r.nativeEvent})});Ie(this,"onNodeCheck",(r,n,i)=>{const{keyEntities:o,checkedKeys:s,halfCheckedKeys:a}=this.state,{checkStrictly:l,onCheck:c}=this.props,{key:u}=n;let d;const h={event:"check",node:n,checked:i,nativeEvent:r.nativeEvent};if(l){const p=i?ed(s,u):Wc(s,u),f=Wc(a,u);d={checked:p,halfChecked:f},h.checkedNodes=p.map(g=>Es(o,g)).filter(Boolean).map(g=>g.node),this.setUncontrolledState({checkedKeys:p})}else{let{checkedKeys:p,halfCheckedKeys:f}=wy([...s,u],!0,o);if(!i){const g=new Set(p);g.delete(u),{checkedKeys:p,halfCheckedKeys:f}=wy(Array.from(g),{halfCheckedKeys:f},o)}d=p,h.checkedNodes=[],h.checkedNodesPositions=[],h.halfCheckedKeys=f,p.forEach(g=>{const m=Es(o,g);if(!m)return;const{node:y,pos:b}=m;h.checkedNodes.push(y),h.checkedNodesPositions.push({node:y,pos:b})}),this.setUncontrolledState({checkedKeys:p},!1,{halfCheckedKeys:f})}c==null||c(d,h)});Ie(this,"onNodeLoad",r=>{var a;const{key:n}=r,{keyEntities:i}=this.state,o=Es(i,n);if((a=o==null?void 0:o.children)!=null&&a.length)return;const s=new Promise((l,c)=>{this.setState(({loadedKeys:u=[],loadingKeys:d=[]})=>{const{loadData:h,onLoad:p}=this.props;return!h||u.includes(n)||d.includes(n)?null:(h(r).then(()=>{const{loadedKeys:g}=this.state,m=ed(g,n);p==null||p(m,{event:"load",node:r}),this.setUncontrolledState({loadedKeys:m}),this.setState(y=>({loadingKeys:Wc(y.loadingKeys,n)})),l()}).catch(g=>{if(this.setState(m=>({loadingKeys:Wc(m.loadingKeys,n)})),this.loadingRetryTimes[n]=(this.loadingRetryTimes[n]||0)+1,this.loadingRetryTimes[n]>=qHe){const{loadedKeys:m}=this.state;Vn(!1,"Retry for `loadData` many times but still failed. No more retry."),this.setUncontrolledState({loadedKeys:ed(m,n)}),l()}c(g)}),{loadingKeys:ed(d,n)})})});return s.catch(()=>{}),s});Ie(this,"onNodeMouseEnter",(r,n)=>{const{onMouseEnter:i}=this.props;i==null||i({event:r,node:n})});Ie(this,"onNodeMouseLeave",(r,n)=>{const{onMouseLeave:i}=this.props;i==null||i({event:r,node:n})});Ie(this,"onNodeContextMenu",(r,n)=>{const{onRightClick:i}=this.props;i&&(r.preventDefault(),i({event:r,node:n}))});Ie(this,"onFocus",(...r)=>{var l;const{onFocus:n,disabled:i}=this.props,{activeKey:o,selectedKeys:s,flattenNodes:a}=this.state;if(!i&&o===null){const c=s.find(u=>a.some(d=>d.key===u));c!==void 0?this.onActiveChange(c):this.onActiveChange(((l=a==null?void 0:a[0])==null?void 0:l.key)||null)}n==null||n(...r)});Ie(this,"onBlur",(...r)=>{const{onBlur:n}=this.props;this.onActiveChange(null),n==null||n(...r)});Ie(this,"getTreeNodeRequiredProps",()=>{const{expandedKeys:r,selectedKeys:n,loadedKeys:i,loadingKeys:o,checkedKeys:s,halfCheckedKeys:a,dragOverNodeKey:l,dropPosition:c,keyEntities:u}=this.state;return{expandedKeys:r||[],selectedKeys:n||[],loadedKeys:i||[],loadingKeys:o||[],checkedKeys:s||[],halfCheckedKeys:a||[],dragOverNodeKey:l,dropPosition:c,keyEntities:u}});Ie(this,"setExpandedKeys",r=>{const{treeData:n,fieldNames:i}=this.state,o=o2(n,r,i);this.setUncontrolledState({expandedKeys:r,flattenNodes:o},!0)});Ie(this,"onNodeExpand",(r,n)=>{let{expandedKeys:i}=this.state;const{listChanging:o,fieldNames:s}=this.state,{onExpand:a,loadData:l}=this.props,{expanded:c}=n,u=n[s.key];if(o)return;const d=i.includes(u),h=!c;if(Vn(c&&d||!c&&!d,"Expand state not sync with index check"),i=h?ed(i,u):Wc(i,u),this.setExpandedKeys(i),a==null||a(i,{node:n,expanded:h,nativeEvent:r.nativeEvent}),h&&l){const p=this.onNodeLoad(n);p&&p.then(()=>{const f=o2(this.state.treeData,i,s);this.setUncontrolledState({flattenNodes:f})}).catch(()=>{const{expandedKeys:f}=this.state,g=Wc(f,u);this.setExpandedKeys(g)})}});Ie(this,"onListChangeStart",()=>{this.setUncontrolledState({listChanging:!0})});Ie(this,"onListChangeEnd",()=>{setTimeout(()=>{this.setUncontrolledState({listChanging:!1})})});Ie(this,"onActiveChange",r=>{const{activeKey:n}=this.state,{onActiveChange:i,itemScrollOffset:o=0}=this.props;n!==r&&(this.setState({activeKey:r}),r!==null&&this.scrollTo({key:r,offset:o}),i==null||i(r))});Ie(this,"getActiveItem",()=>{const{activeKey:r,flattenNodes:n}=this.state;return r===null?null:n.find(({key:i})=>i===r)||null});Ie(this,"offsetActiveKey",r=>{const{flattenNodes:n,activeKey:i}=this.state;let o=n.findIndex(({key:a})=>a===i);o===-1&&r<0&&(o=n.length),o=(o+r+n.length)%n.length;const s=n[o];if(s){const{key:a}=s;this.onActiveChange(a)}else this.onActiveChange(null)});Ie(this,"onKeyDown",r=>{var f,g,m;const{activeKey:n,expandedKeys:i,checkedKeys:o,flattenNodes:s,keyEntities:a}=this.state,{onKeyDown:l,checkable:c,selectable:u,disabled:d,loadData:h}=this.props;if(d)return;switch(r.key){case"ArrowUp":{this.offsetActiveKey(-1),r.preventDefault();break}case"ArrowDown":{this.offsetActiveKey(1),r.preventDefault();break}case"Home":{this.onActiveChange((f=s==null?void 0:s[0])==null?void 0:f.key),r.preventDefault();break}case"End":{this.onActiveChange((g=s==null?void 0:s[s.length-1])==null?void 0:g.key),r.preventDefault();break}}const p=this.getActiveItem();if(p&&p.data){const y=this.getTreeNodeRequiredProps(),b=Hi({..._S(n,y),data:p.data,active:!0}),S=Es(a,n),x=!!((m=S==null?void 0:S.children)!=null&&m.length),E=!Nue(p.data.isLeaf,h,x,b.loaded),R=c&&!b.disabled&&b.checkable!==!1&&!b.disableCheckbox,T=!c&&u&&!b.disabled&&b.selectable!==!1;switch(r.key){case"ArrowLeft":{E&&i.includes(n)?this.onNodeExpand({},b):p.parent&&this.onActiveChange(p.parent.key),r.preventDefault();break}case"ArrowRight":{E&&!i.includes(n)?this.onNodeExpand({},b):p.children&&p.children.length&&this.onActiveChange(p.children[0].key),r.preventDefault();break}case"Enter":{E?(r.preventDefault(),this.onNodeExpand({},b)):R?o.includes(n)||(r.preventDefault(),this.onNodeCheck({},b,!0)):T&&!b.selected&&(r.preventDefault(),this.onNodeSelect({},b));break}case" ":{R?(r.preventDefault(),this.onNodeCheck({},b,!o.includes(n))):T&&(r.preventDefault(),this.onNodeSelect({},b));break}}}l==null||l(r)});Ie(this,"setUncontrolledState",(r,n=!1,i=null)=>{if(!this.destroyed){let o=!1,s=!0;const a={};Object.keys(r).forEach(l=>{if(this.props.hasOwnProperty(l)){s=!1;return}o=!0,a[l]=r[l]}),o&&(!n||s)&&this.setState({...a,...i})}});Ie(this,"scrollTo",r=>{this.listRef.current.scrollTo(r)})}componentDidMount(){this.destroyed=!1,this.onUpdated()}componentDidUpdate(){this.onUpdated()}onUpdated(){const{activeKey:r,itemScrollOffset:n=0}=this.props;r!==void 0&&r!==this.state.activeKey&&(this.setState({activeKey:r}),r!==null&&this.scrollTo({key:r,offset:n}))}componentWillUnmount(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}static getDerivedStateFromProps(r,n){const{prevProps:i}=n,o={prevProps:r};function s(u){return!i&&r.hasOwnProperty(u)||i&&i[u]!==r[u]}let a,{fieldNames:l}=n;if(s("fieldNames")&&(l=jy(r.fieldNames),o.fieldNames=l),s("treeData")?{treeData:a}=r:s("children")&&(Vn(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),a=Oue(r.children)),a){o.treeData=a;const u=MH(a,{fieldNames:l});o.keyEntities={[nm]:Wde,...u.keyEntities}}const c=o.keyEntities||n.keyEntities;if(s("expandedKeys")||i&&s("autoExpandParent"))o.expandedKeys=r.autoExpandParent||!i&&r.defaultExpandParent?SG(r.expandedKeys,c):r.expandedKeys;else if(!i&&r.defaultExpandAll){const u={...c};delete u[nm];const d=[];Object.keys(u).forEach(h=>{const p=u[h];p.children&&p.children.length&&d.push(p.key)}),o.expandedKeys=d}else!i&&r.defaultExpandedKeys&&(o.expandedKeys=r.autoExpandParent||r.defaultExpandParent?SG(r.defaultExpandedKeys,c):r.defaultExpandedKeys);if(o.expandedKeys||delete o.expandedKeys,a||o.expandedKeys){const u=o2(a||n.treeData,o.expandedKeys||n.expandedKeys,l);o.flattenNodes=u}if(r.selectable&&(s("selectedKeys")?o.selectedKeys=OX(r.selectedKeys,r):!i&&r.defaultSelectedKeys&&(o.selectedKeys=OX(r.defaultSelectedKeys,r))),r.checkable){let u;if(s("checkedKeys")?u=g2(r.checkedKeys)||{}:!i&&r.defaultCheckedKeys?u=g2(r.defaultCheckedKeys)||{}:a&&(u=g2(r.checkedKeys)||{checkedKeys:n.checkedKeys,halfCheckedKeys:n.halfCheckedKeys}),u){let{checkedKeys:d=[],halfCheckedKeys:h=[]}=u;r.checkStrictly||({checkedKeys:d,halfCheckedKeys:h}=wy(d,!0,c)),o.checkedKeys=d,o.halfCheckedKeys=h}}return s("loadedKeys")&&(o.loadedKeys=r.loadedKeys),o}resetDragState(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}render(){const{flattenNodes:r,keyEntities:n,draggingNodeKey:i,dropLevelOffset:o,dropContainerKey:s,dropTargetKey:a,dropPosition:l,dragOverNodeKey:c,indent:u}=this.state,{prefixCls:d,className:h,style:p,styles:f,classNames:g,showLine:m,focusable:y,tabIndex:b=0,selectable:S,showIcon:x,icon:E,switcherIcon:R,draggable:T,checkable:M,checkStrictly:D,disabled:A,motion:I,loadData:L,filterTreeNode:F,height:O,itemHeight:k,scrollWidth:B,virtual:H,titleRender:N,dropIndicatorRender:z,onContextMenu:W,onScroll:V,direction:$,rootClassName:K,rootStyle:q}=this.props,X=ei(this.props,{aria:!0,data:!0});let Y;T&&(typeof T=="object"?Y=T:typeof T=="function"?Y={nodeDraggable:T}:Y={});const oe={styles:f,classNames:g,prefixCls:d,selectable:S,showIcon:x,icon:E,switcherIcon:R,draggable:Y,draggingNodeKey:i,checkable:M,checkStrictly:D,disabled:A,keyEntities:n,dropLevelOffset:o,dropContainerKey:s,dropTargetKey:a,dropPosition:l,dragOverNodeKey:c,indent:u,direction:$,dropIndicatorRender:z,loadData:L,filterTreeNode:F,titleRender:N,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return v.createElement(GH.Provider,{value:oe},v.createElement("div",{className:Z(d,h,K,{[`${d}-show-line`]:m}),style:q},v.createElement(KHe,PG({ref:this.listRef,prefixCls:d,style:p,data:r,disabled:A,selectable:S,checkable:!!M,motion:I,dragging:i!==null,height:O,itemHeight:k,virtual:H,focusable:y,tabIndex:b,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:W,onScroll:V,scrollWidth:B},this.getTreeNodeRequiredProps(),X))))}},Ie(tP,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:HHe,allowDrop:()=>!0,expandAction:!1}),Ie(tP,"TreeNode",Lw),tP);var YHe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};function MG(){return MG=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,MG({},e,{ref:t,icon:YHe})),Ude=v.forwardRef(ZHe);var QHe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};function IG(){return IG=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,IG({},e,{ref:t,icon:QHe})),e5e=v.forwardRef(JHe);var t5e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"};function DG(){return DG=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,DG({},e,{ref:t,icon:t5e})),n5e=v.forwardRef(r5e);var i5e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"};function AG(){return AG=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,AG({},e,{ref:t,icon:i5e})),s5e=v.forwardRef(o5e),a5e=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:r,directoryNodeSelectedColor:n,motionDurationMid:i,borderRadius:o,controlItemBgHover:s})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:"static",[`&:has(${e}-drop-indicator)`]:{position:"relative"},[`> *:not(${e}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${i}`,content:'""',borderRadius:o},"&:hover:before":{background:s}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:r,borderRadius:o,[`${e}-switcher, ${e}-draggable-icon`]:{color:n},[`${e}-node-content-wrapper`]:{color:n,background:"transparent","&, &:hover":{color:n},"&:before, &:hover:before":{background:r}}}}}),l5e=new qr("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),c5e=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),u5e=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${ae(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),d5e=(e,t)=>{const{treeCls:r,treeNodeCls:n,treeNodePadding:i,titleHeight:o,indentSize:s,switcherSize:a,motionDurationMid:l,nodeSelectedBg:c,nodeHoverBg:u,colorTextQuaternary:d,controlItemBgActiveDisabled:h}=t;return{[r]:{...on(t),"--rc-virtual-list-scrollbar-bg":t.colorSplit,background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${r}-rtl ${r}-switcher_close ${r}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`${r}-list`]:{"&:focus-visible":{outline:"none",[`${n}-active ${r}-node-content-wrapper`]:{...gc(t)}}},[`${r}-list-holder-inner`]:{alignItems:"flex-start"},[`&${r}-block-node`]:{[`${r}-list-holder-inner`]:{alignItems:"stretch",[`${r}-node-content-wrapper`]:{flex:"auto"},[`${n}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:l5e,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[n]:{display:"flex",alignItems:"flex-start",marginBottom:i,lineHeight:ae(o),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:i},[`&-disabled ${r}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${r}-checkbox-disabled + ${r}-node-selected,&${n}-disabled${n}-selected ${r}-node-content-wrapper`]:{backgroundColor:h},[`${r}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${n}-disabled)`]:{[`${r}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${r}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${n}-disabled).filter-node ${r}-title`]:{color:t.colorPrimary,fontWeight:t.fontWeightStrong},"&-draggable":{cursor:"grab",[`${r}-draggable-icon`]:{flexShrink:0,width:a,textAlign:"center",visibility:"visible",color:d},[`&${n}-disabled ${r}-draggable-icon`]:{visibility:"hidden"}}},[`${r}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:s}},[`${r}-draggable-icon`]:{visibility:"hidden"},[`${r}-switcher, ${r}-checkbox`]:{marginInlineEnd:t.calc(t.calc(a).sub(t.controlInteractiveSize)).div(2).equal()},[`${r}-checkbox`]:{flexShrink:0},[`${r}-switcher`]:{...c5e(e,t),position:"relative",flex:"none",alignSelf:"stretch",width:a,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:a,height:o,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${r}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${r}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(a).div(2).equal()).mul(.8).equal(),height:t.calc(o).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}},[`${r}-node-content-wrapper`]:{position:"relative",minHeight:o,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:[`all ${l}`,"border 0s","line-height 0s","box-shadow 0s"].join(", "),...u5e(e,t),"&:hover":{backgroundColor:u},[`&${r}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:c},[`${r}-iconEle`]:{display:"inline-block",width:a,height:o,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${r}-unselectable ${r}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${r}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${r}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${n}-leaf-last ${r}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${ae(t.calc(o).div(2).equal())} !important`}}}},h5e=(e,t,r=!0)=>{const n=`.${e}`,i=`${n}-treenode`,o=t.calc(t.paddingXS).div(2).equal(),s=$r(t,{treeCls:n,treeNodeCls:i,treeNodePadding:o});return[d5e(e,s),r&&a5e(s)].filter(Boolean)},p5e=e=>{const{controlHeightSM:t,controlItemBgHover:r,controlItemBgActive:n}=e,i=t;return{titleHeight:i,switcherSize:i,indentSize:i,nodeHoverBg:r,nodeHoverColor:e.colorText,nodeSelectedBg:n,nodeSelectedColor:e.colorText}},f5e=e=>{const{colorTextLightSolid:t,colorPrimary:r}=e;return{...p5e(e),directoryNodeSelectedColor:t,directoryNodeSelectedBg:r}},g5e=zr("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:$ue(`${t}-checkbox`,e)},h5e(t,e),W4(e)],f5e),zX=4;function m5e(e){const{dropPosition:t,dropLevelOffset:r,prefixCls:n,indent:i,direction:o="ltr"}=e,s=o==="ltr"?"left":"right",a=o==="ltr"?"right":"left",l={[s]:-r*i+zX,[a]:0};switch(t){case-1:l.top=-3;break;case 1:l.bottom=-3;break;default:l.bottom=-3,l[s]=i+zX;break}return Q.createElement("div",{style:l,className:`${n}-drop-indicator`})}var v5e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"};function FG(){return FG=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,FG({},e,{ref:t,icon:v5e})),C5e=v.forwardRef(y5e);var b5e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};function LG(){return LG=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,LG({},e,{ref:t,icon:b5e})),w5e=v.forwardRef(S5e);var x5e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};function _G(){return _G=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,_G({},e,{ref:t,icon:x5e})),T5e=v.forwardRef(E5e),R5e=e=>{var h,p;const{prefixCls:t,switcherIcon:r,treeNodeProps:n,showLine:i,switcherLoadingIcon:o}=e,{isLeaf:s,expanded:a,loading:l}=n;if(l)return v.isValidElement(o)?o:v.createElement(rm,{className:`${t}-switcher-loading-icon`});let c;if(i&&typeof i=="object"&&(c=i.showLeafIcon),s){if(!i)return null;if(typeof c!="boolean"&&c){const f=typeof c=="function"?c(n):c,g=`${t}-switcher-line-custom-icon`;return v.isValidElement(f)?Ei(f,{className:Z((h=f.props)==null?void 0:h.className,g)}):f}return c?v.createElement(Ude,{className:`${t}-switcher-line-icon`}):v.createElement("span",{className:`${t}-switcher-leaf-line`})}const u=`${t}-switcher-icon`,d=typeof r=="function"?r(n):r;return v.isValidElement(d)?Ei(d,{className:Z((p=d.props)==null?void 0:p.className,u)}):d!==void 0?d:i?a?v.createElement(w5e,{className:`${t}-switcher-line-icon`}):v.createElement(T5e,{className:`${t}-switcher-line-icon`}):v.createElement(C5e,{className:u})},jde=Q.forwardRef((e,t)=>{var X;const{getPrefixCls:r,direction:n,className:i,style:o,classNames:s,styles:a}=Fr("tree"),{virtual:l}=Q.useContext(ir),{prefixCls:c,className:u,showIcon:d=!1,showLine:h,switcherIcon:p,switcherLoadingIcon:f,blockNode:g=!1,children:m,checkable:y=!1,selectable:b=!0,draggable:S,disabled:x,motion:E,style:R,rootClassName:T,classNames:M,styles:D}=e,A=Q.useContext(hs),I=x??A,L=r("tree",c),F=r(),O=E??{...V4(F),motionAppear:!1},k={...e,showIcon:d,blockNode:g,checkable:y,selectable:b,disabled:I,motion:O},[B,H]=Gr([s,M],[a,D],{props:k}),N={...k,showLine:!!h,dropIndicatorRender:m5e},[z,W]=g5e(L),[,V]=fs(),$=V.paddingXS/2+(((X=V.Tree)==null?void 0:X.titleHeight)||V.controlHeightSM),K=Q.useMemo(()=>{if(!S)return!1;let Y={};switch(typeof S){case"function":Y.nodeDraggable=S;break;case"object":Y={...S};break}return Y.icon!==!1&&(Y.icon=Y.icon||Q.createElement(s5e,null)),Y},[S]),q=Y=>Q.createElement(R5e,{prefixCls:L,switcherIcon:p,switcherLoadingIcon:f,treeNodeProps:Y,showLine:h});return Q.createElement(XHe,{itemHeight:$,ref:t,virtual:l,...N,prefixCls:L,className:Z({[`${L}-icon-hide`]:!d,[`${L}-block-node`]:g,[`${L}-unselectable`]:!b,[`${L}-rtl`]:n==="rtl",[`${L}-disabled`]:I},i,u,z,W),style:{...o,...R},rootClassName:Z(B==null?void 0:B.root,T),rootStyle:H==null?void 0:H.root,classNames:B,styles:H,direction:n,checkable:y&&Q.createElement("span",{className:`${L}-checkbox-inner`}),selectable:b,switcherIcon:q,draggable:K},m)}),HX=0,m2=1,WX=2;function zH(e,t,r){const{key:n,children:i}=r;function o(s){const a=s[n],l=s[i];t(a,s)!==!1&&zH(l||[],t,r)}e.forEach(o)}function P5e({treeData:e,expandedKeys:t,startKey:r,endKey:n,fieldNames:i}){const o=[];let s=HX;if(r&&r===n)return[r];if(!r||!n)return[];function a(l){return l===r||l===n}return zH(e,l=>{if(s===WX)return!1;if(a(l)){if(o.push(l),s===HX)s=m2;else if(s===m2)return s=WX,!1}else s===m2&&o.push(l);return t.includes(l)},jy(i)),o}function v2(e,t,r){const n=Pr(t),i=[];return zH(e,(o,s)=>{const a=n.indexOf(o);return a!==-1&&(i.push(s),n.splice(a,1)),!!n.length},jy(r)),i}function M5e(e){const{isLeaf:t,expanded:r}=e;return t?v.createElement(Ude,null):r?v.createElement(e5e,null):v.createElement(n5e,null)}function UX({treeData:e,children:t}){return e||Oue(t)}const I5e=v.forwardRef((e,t)=>{const{defaultExpandAll:r,defaultExpandParent:n,defaultExpandedKeys:i,...o}=e,s=v.useRef(null),a=v.useRef(null),l=()=>{const{keyEntities:M}=MH(UX(o),{fieldNames:o.fieldNames});let D;const A=o.expandedKeys||i||[];return r?D=Object.keys(M):n?D=SG(A,M):D=A,D},[c,u]=v.useState(o.selectedKeys||o.defaultSelectedKeys||[]),[d,h]=v.useState(()=>l());v.useEffect(()=>{"selectedKeys"in o&&u(o.selectedKeys)},[o.selectedKeys]),v.useEffect(()=>{"expandedKeys"in o&&h(o.expandedKeys)},[o.expandedKeys]);const p=(M,D)=>{var A;return"expandedKeys"in o||h(M),(A=o.onExpand)==null?void 0:A.call(o,M,D)},f=(M,D)=>{var W;const{multiple:A,fieldNames:I}=o,{node:L,nativeEvent:F}=D,{key:O=""}=L,k=UX(o),B={...D,selected:!0},H=(F==null?void 0:F.ctrlKey)||(F==null?void 0:F.metaKey),N=F==null?void 0:F.shiftKey;let z;A&&H?(z=M,s.current=O,a.current=z,B.selectedNodes=v2(k,z,I)):A&&N?(z=Array.from(new Set([].concat(Pr(a.current||[]),Pr(P5e({treeData:k,expandedKeys:d,startKey:O,endKey:s.current,fieldNames:I}))))),B.selectedNodes=v2(k,z,I)):(z=[O],s.current=O,a.current=z,B.selectedNodes=v2(k,z,I)),(W=o.onSelect)==null||W.call(o,z,B),"selectedKeys"in o||u(z)},{getPrefixCls:g,direction:m}=v.useContext(ir),{prefixCls:y,className:b,showIcon:S=!0,expandAction:x="click",...E}=o,R=g("tree",y),T=Z(`${R}-directory`,{[`${R}-directory-rtl`]:m==="rtl"},b);return v.createElement(jde,{icon:M5e,ref:t,blockNode:!0,...E,showIcon:S,expandAction:x,prefixCls:R,className:T,expandedKeys:d,selectedKeys:c,onSelect:f,onExpand:p})}),HH=jde;HH.DirectoryTree=I5e;HH.TreeNode=Lw;const Kde=Q.createContext(!1),jX=e=>{const{value:t,filterSearch:r,tablePrefixCls:n,locale:i,onChange:o}=e;return r?v.createElement("div",{className:`${n}-filter-dropdown-search`},v.createElement(Jx,{prefix:v.createElement(uH,null),placeholder:i.filterSearchPlaceholder,onChange:o,value:t,htmlSize:1,className:`${n}-filter-dropdown-search-input`})):null},D5e=e=>{const{keyCode:t}=e;t===Zt.ENTER&&e.stopPropagation()},A5e=v.forwardRef((e,t)=>v.createElement("div",{className:e.className,onClick:r=>r.stopPropagation(),onKeyDown:D5e,ref:t},e.children));function xy(e){let t=[];return(e||[]).forEach(({value:r,children:n})=>{t.push(r),n&&(t=[].concat(Pr(t),Pr(xy(n))))}),t}function F5e(e){return e.some(({children:t})=>t)}function qde(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function Xde({filters:e,prefixCls:t,filteredKeys:r,filterMultiple:n,searchValue:i,filterSearch:o}){return e.map((s,a)=>{const l=String(s.value);if(s.children)return{key:l||a,label:s.text,popupClassName:`${t}-dropdown-submenu`,children:Xde({filters:s.children,prefixCls:t,filteredKeys:r,filterMultiple:n,searchValue:i,filterSearch:o})};const c=n?Ky:Zx,u={key:s.value!==void 0?l:a,label:v.createElement(v.Fragment,null,v.createElement(c,{checked:r.includes(l)}),v.createElement("span",null,s.text))};return i.trim()?typeof o=="function"?o(i,s)?u:null:qde(i,s.text)?u:null:u})}function y2(e){return e||[]}const L5e=e=>{var ve;const{tablePrefixCls:t,prefixCls:r,column:n,dropdownPrefixCls:i,columnKey:o,filterOnClose:s,filterMultiple:a,filterMode:l="menu",filterSearch:c=!1,filterState:u,triggerFilter:d,locale:h,children:p,getPopupContainer:f,rootClassName:g}=e,{filterResetToDefaultFilteredValue:m,defaultFilteredValue:y,filterDropdownProps:b={},filterDropdownOpen:S,onFilterDropdownOpenChange:x}=n,[E,R]=v.useState(!1),T=v.useContext(Kde),M=!!(u&&((ve=u.filteredKeys)!=null&&ve.length||u.forceFiltered)),D=pe=>{var me;R(pe),(me=b.onOpenChange)==null||me.call(b,pe),x==null||x(pe)},A=b.open??S??E,I=u==null?void 0:u.filteredKeys,[L,F]=vFe(y2(I)),O=({selectedKeys:pe})=>{F(pe)},k=(pe,{node:me,checked:Oe})=>{O(a?{selectedKeys:pe}:{selectedKeys:Oe&&me.key?[me.key]:[]})};v.useEffect(()=>{E&&O({selectedKeys:y2(I)})},[I]);const[B,H]=v.useState([]),N=pe=>{H(pe)},[z,W]=v.useState(""),V=pe=>{const{value:me}=pe.target;W(me)};v.useEffect(()=>{E||W("")},[E]);const $=pe=>{const me=pe!=null&&pe.length?pe:null;if(me===null&&(!u||!u.filteredKeys)||fc(me,u==null?void 0:u.filteredKeys,!0))return null;d({column:n,key:o,filteredKeys:me})},K=()=>{D(!1),$(L())},q=({confirm:pe,closeDropdown:me}={confirm:!1,closeDropdown:!1})=>{pe&&$([]),me&&D(!1),W(""),F(m?(y||[]).map(String):[])},X=({closeDropdown:pe}={closeDropdown:!0})=>{pe&&D(!1),$(L())},Y=(pe,me)=>{me.source==="trigger"&&(pe&&I!==void 0&&F(y2(I)),D(pe),!pe&&!n.filterDropdown&&s&&K())},oe=Z({[`${i}-menu-without-submenu`]:!F5e(n.filters||[])}),ee=pe=>{if(pe.target.checked){const me=xy(n==null?void 0:n.filters).map(String);F(me)}else F([])},ne=({filters:pe})=>(pe||[]).map((me,Oe)=>{const De=String(me.value),Ee={title:me.text,key:me.value!==void 0?De:String(Oe)};return me.children&&(Ee.children=ne({filters:me.children})),Ee}),le=pe=>{var me;return{...pe,text:pe.title,value:pe.key,children:((me=pe.children)==null?void 0:me.map(le))||[]}};let he;const{direction:re,renderEmpty:ie}=v.useContext(ir);if(typeof n.filterDropdown=="function")he=n.filterDropdown({prefixCls:`${i}-custom`,setSelectedKeys:pe=>O({selectedKeys:pe}),selectedKeys:L(),confirm:X,clearFilters:q,filters:n.filters,visible:A,close:()=>{D(!1)}});else if(n.filterDropdown)he=n.filterDropdown;else{const pe=L()||[],me=()=>{const De=(ie==null?void 0:ie("Table.filter"))??v.createElement(ad,{image:ad.PRESENTED_IMAGE_SIMPLE,description:h.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((n.filters||[]).length===0)return De;if(l==="tree")return v.createElement(v.Fragment,null,v.createElement(jX,{filterSearch:c,value:z,onChange:V,tablePrefixCls:t,locale:h}),v.createElement("div",{className:`${t}-filter-dropdown-tree`},a?v.createElement(Ky,{checked:pe.length===xy(n.filters).length,indeterminate:pe.length>0&&pe.lengthtypeof c=="function"?c(z,le(ze)):qde(z,ze.title):void 0})));const Ee=Xde({filters:n.filters||[],filterSearch:c,prefixCls:r,filteredKeys:L(),filterMultiple:a,searchValue:z}),We=Ee.every(ze=>ze===null);return v.createElement(v.Fragment,null,v.createElement(jX,{filterSearch:c,value:z,onChange:V,tablePrefixCls:t,locale:h}),We?De:v.createElement(_C,{selectable:!0,multiple:a,prefixCls:`${i}-menu`,className:oe,onSelect:O,onDeselect:O,selectedKeys:pe,getPopupContainer:f,openKeys:B,onOpenChange:N,items:Ee}))},Oe=()=>m?fc((y||[]).map(String),pe,!0):pe.length===0;he=v.createElement(v.Fragment,null,me(),v.createElement("div",{className:`${r}-dropdown-btns`},v.createElement(ca,{type:"link",size:"small",disabled:Oe(),onClick:()=>q()},h.filterReset),v.createElement(ca,{type:"primary",size:"small",onClick:K},h.filterConfirm)))}n.filterDropdown&&(he=v.createElement(lue,{selectable:void 0},he)),he=v.createElement(A5e,{className:`${r}-dropdown`},he);const J=(()=>{let pe;return typeof n.filterIcon=="function"?pe=n.filterIcon(M):n.filterIcon?pe=n.filterIcon:pe=v.createElement(zHe,null),v.createElement("span",{role:"button",tabIndex:-1,className:Z(`${r}-trigger`,{active:M}),onClick:me=>{me.stopPropagation()}},pe)})();if(T)return v.createElement("div",{className:`${r}-column`},v.createElement("span",{className:`${t}-column-title`},p),J);const ue=Pw({trigger:["click"],placement:re==="rtl"?"bottomLeft":"bottomRight",children:J,getPopupContainer:f},{...b,rootClassName:Z(g,b.rootClassName),open:A,onOpenChange:Y,popupRender:()=>typeof(b==null?void 0:b.dropdownRender)=="function"?b.dropdownRender(he):he});return v.createElement("div",{className:`${r}-column`},v.createElement("span",{className:`${t}-column-title`},p),v.createElement(FH,{...ue}))},kG=(e,t,r)=>{let n=[];return(e||[]).forEach((i,o)=>{const s=VC(o,r),a=i.filterDropdown!==void 0;if(i.filters||a||"onFilter"in i)if("filteredValue"in i){let l=i.filteredValue;a||(l=(l==null?void 0:l.map(String))??l),n.push({column:i,key:Pp(i,s),filteredKeys:l,forceFiltered:i.filtered})}else n.push({column:i,key:Pp(i,s),filteredKeys:t&&i.defaultFilteredValue?i.defaultFilteredValue:void 0,forceFiltered:i.filtered});"children"in i&&(n=[].concat(Pr(n),Pr(kG(i.children,t,s))))}),n};function Yde(e,t,r,n,i,o,s,a,l){return r.map((c,u)=>{const d=VC(u,a),{filterOnClose:h=!0,filterMultiple:p=!0,filterMode:f,filterSearch:g}=c;let m=c;if(m.filters||m.filterDropdown){const y=Pp(m,d),b=n.find(({key:S})=>y===S);m={...m,title:S=>v.createElement(L5e,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:m,columnKey:y,filterState:b,filterOnClose:h,filterMultiple:p,filterMode:f,filterSearch:g,triggerFilter:o,locale:i,getPopupContainer:s,rootClassName:l},uA(c.title,S))}}return"children"in m&&(m={...m,children:Yde(e,t,m.children,n,i,o,s,d,l)}),m})}const KX=e=>{const t={};return e.forEach(({key:r,filteredKeys:n,column:i})=>{const o=r,{filters:s,filterDropdown:a}=i;if(a)t[o]=n||null;else if(Array.isArray(n)){const l=xy(s);t[o]=l.filter(c=>n.includes(String(c)))}else t[o]=null}),t},OG=(e,t,r)=>t.reduce((i,o)=>{const{column:{onFilter:s,filters:a},filteredKeys:l}=o;return s&&l&&l.length?i.map(c=>({...c})).filter(c=>l.some(u=>{const d=xy(a),h=d.findIndex(f=>String(f)===String(u)),p=h!==-1?d[h]:u;return c[r]&&(c[r]=OG(c[r],t,r)),s(p,c)})):i},e),Zde=e=>e.flatMap(t=>"children"in t?[t].concat(Pr(Zde(t.children||[]))):[t]),_5e=e=>{const{prefixCls:t,dropdownPrefixCls:r,mergedColumns:n,onFilterChange:i,getPopupContainer:o,locale:s,rootClassName:a}=e;MC();const l=v.useMemo(()=>Zde(n||[]),[n]),[c,u]=v.useState(()=>kG(l,!0)),d=v.useMemo(()=>{const g=kG(l,!1);if(g.length===0)return g;let m=!0;if(g.forEach(({filteredKeys:y})=>{y!==void 0&&(m=!1)}),m){const y=(l||[]).map((b,S)=>Pp(b,VC(S)));return c.filter(({key:b})=>y.includes(b)).map(b=>{const S=l[y.indexOf(b.key)];return{...b,column:{...b.column,...S},forceFiltered:S.filtered}})}return g},[l,c]),h=v.useMemo(()=>KX(d),[d]),p=g=>{const m=d.filter(({key:y})=>y!==g.key);m.push(g),u(m),i(KX(m),m)};return[g=>Yde(t,r,g,d,s,p,o,void 0,a),d,h]},k5e=(e,t,r)=>{const n=v.useRef({});function i(o){var s;if(!n.current||n.current.data!==e||n.current.childrenColumnName!==t||n.current.getRowKey!==r){let l=function(c){c.forEach((u,d)=>{const h=r(u,d);a.set(h,u),u&&typeof u=="object"&&t in u&&l(u[t]||[])})};const a=new Map;l(e),n.current={data:e,childrenColumnName:t,kvMap:a,getRowKey:r}}return(s=n.current.kvMap)==null?void 0:s.get(o)}return[i]},Qde=10;function O5e(e,t){const r={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t=="object"?t:{}).forEach(i=>{const o=e[i];typeof o!="function"&&(r[i]=o)}),r}function N5e(e,t,r){const{total:n=0,...i}=r&&typeof r=="object"?r:{},[o,s]=v.useState(()=>({current:"defaultCurrent"in i?i.defaultCurrent:1,pageSize:"defaultPageSize"in i?i.defaultPageSize:Qde})),a=Pw(o,i,{total:n>0?n:e}),l=Math.ceil((n||e)/a.pageSize);a.current>l&&(a.current=l||1);const c=(d,h)=>{s({current:d??1,pageSize:h||a.pageSize})},u=(d,h)=>{var p;r&&((p=r.onChange)==null||p.call(r,d,h)),c(d,h),t(d,h||(a==null?void 0:a.pageSize))};return r===!1?[{},()=>{}]:[{...a,onChange:u},c]}var B5e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};function NG(){return NG=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,NG({},e,{ref:t,icon:B5e})),G5e=v.forwardRef($5e);var V5e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"};function BG(){return BG=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,BG({},e,{ref:t,icon:V5e})),H5e=v.forwardRef(z5e),yP="ascend",C2="descend",kM=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,qX=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,W5e=(e,t)=>t?e[e.indexOf(t)+1]:e[0],$G=(e,t,r)=>{let n=[];const i=(o,s)=>{n.push({column:o,key:Pp(o,s),multiplePriority:kM(o),sortOrder:o.sortOrder})};return(e||[]).forEach((o,s)=>{const a=VC(s,r);o.children?("sortOrder"in o&&i(o,a),n=[].concat(Pr(n),Pr($G(o.children,t,a)))):o.sorter&&("sortOrder"in o?i(o,a):t&&o.defaultSortOrder&&n.push({column:o,key:Pp(o,a),multiplePriority:kM(o),sortOrder:o.defaultSortOrder}))}),n},Jde=(e,t,r,n,i,o,s,a,l)=>(t||[]).map((u,d)=>{const h=VC(d,a);let p=u;if(p.sorter){const f=p.sortDirections||i,g=p.showSorterTooltip===void 0?s:p.showSorterTooltip,m=Pp(p,h),y=r.find(({key:A})=>A===m),b=y?y.sortOrder:null,S=W5e(f,b);let x;if(u.sortIcon)x=u.sortIcon({sortOrder:b});else{const A=f.includes(yP)&&v.createElement(H5e,{className:Z(`${e}-column-sorter-up`,{active:b===yP})}),I=f.includes(C2)&&v.createElement(G5e,{className:Z(`${e}-column-sorter-down`,{active:b===C2})});x=v.createElement("span",{className:Z(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(A&&I)})},v.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},A,I))}const{cancelSort:E,triggerAsc:R,triggerDesc:T}=o||{};let M=E;S===C2?M=T:S===yP&&(M=R);const D=typeof g=="object"?{title:M,...g}:{title:M};p={...p,className:Z(p.className,{[`${e}-column-sort`]:b}),title:A=>{const I=`${e}-column-sorters`,L=v.createElement("span",{className:`${e}-column-title`},uA(u.title,A)),F=v.createElement("div",{className:I},L,x);return g?typeof g!="boolean"&&(g==null?void 0:g.target)==="sorter-icon"?v.createElement("div",{className:Z(I,`${I}-tooltip-target-sorter`)},L,v.createElement(El,{...D},x)):v.createElement(El,{...D},F):F},onHeaderCell:A=>{var B;const I=((B=u.onHeaderCell)==null?void 0:B.call(u,A))||{},L=I.onClick,F=I.onKeyDown;I.onClick=H=>{n({column:u,key:m,sortOrder:S,multiplePriority:kM(u)}),L==null||L(H)},I.onKeyDown=H=>{H.keyCode===Zt.ENTER&&(n({column:u,key:m,sortOrder:S,multiplePriority:kM(u)}),F==null||F(H))};const O=$He(u.title,{}),k=O==null?void 0:O.toString();return b&&(I["aria-sort"]=b==="ascend"?"ascending":"descending"),I["aria-description"]=l==null?void 0:l.sortable,I["aria-label"]=k||"",I.className=Z(I.className,`${e}-column-has-sorters`),I.tabIndex=0,u.ellipsis&&(I.title=(O??"").toString()),I}}}return"children"in p&&(p={...p,children:Jde(e,p.children,r,n,i,o,s,h,l)}),p}),XX=e=>{const{column:t,sortOrder:r}=e;return{column:t,order:r,field:t.dataIndex,columnKey:t.key}},YX=e=>{const t=e.filter(({sortOrder:r})=>r).map(XX);if(t.length===0&&e.length){const r=e.length-1;return{...XX(e[r]),column:void 0,order:void 0,field:void 0,columnKey:void 0}}return t.length<=1?t[0]||{}:t},GG=(e,t,r)=>{const n=t.slice().sort((s,a)=>a.multiplePriority-s.multiplePriority),i=e.slice(),o=n.filter(({column:{sorter:s},sortOrder:a})=>qX(s)&&a);return o.length?i.sort((s,a)=>{for(let l=0;l{const a=s[r];return a?{...s,[r]:GG(a,t,r)}:s}):i},U5e=e=>{const{prefixCls:t,mergedColumns:r,sortDirections:n,tableLocale:i,showSorterTooltip:o,onSorterChange:s,globalLocale:a}=e,[l,c]=v.useState(()=>$G(r,!0)),u=(m,y)=>{const b=[];return m.forEach((S,x)=>{const E=VC(x,y);if(b.push(Pp(S,E)),Array.isArray(S.children)){const R=u(S.children,E);b.push.apply(b,Pr(R))}}),b},d=v.useMemo(()=>{let m=!0;const y=$G(r,!1);if(!y.length){const E=u(r);return l.filter(({key:R})=>E.includes(R))}const b=[];function S(E){m?b.push(E):b.push({...E,sortOrder:null})}let x=null;return y.forEach(E=>{x===null?(S(E),E.sortOrder&&(E.multiplePriority===!1?m=!1:x=!0)):(x&&E.multiplePriority!==!1||(m=!1),S(E))}),b},[r,l]),h=v.useMemo(()=>{var y,b;const m=d.map(({column:S,sortOrder:x})=>({column:S,order:x}));return{sortColumns:m,sortColumn:(y=m[0])==null?void 0:y.column,sortOrder:(b=m[0])==null?void 0:b.order}},[d]),p=m=>{let y;m.multiplePriority===!1||!d.length||d[0].multiplePriority===!1?y=[m]:y=[].concat(Pr(d.filter(({key:b})=>b!==m.key)),[m]),c(y),s(YX(y),y)};return[m=>Jde(t,m,d,p,n,i,o,void 0,a),d,h,()=>YX(d)]},ehe=(e,t)=>e.map(n=>{const i={...n};return i.title=uA(n.title,t),"children"in i&&(i.children=ehe(i.children,t)),i}),j5e=e=>[v.useCallback(r=>ehe(r,e),[e])],K5e=Gde((e,t)=>{const{_renderTimes:r}=e,{_renderTimes:n}=t;return r!==n}),q5e=zde((e,t)=>{const{_renderTimes:r}=e,{_renderTimes:n}=t;return r!==n}),X5e=e=>{const{componentCls:t,lineWidth:r,lineType:n,tableBorderColor:i,tableHeaderBg:o,tablePaddingVertical:s,tablePaddingHorizontal:a,calc:l}=e,c=`${ae(r)} ${n} ${i}`,u=(d,h,p)=>({[`&${t}-${d}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${ae(l(h).mul(-1).equal())} ${ae(l(l(p).add(r)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:{[`> ${t}-title`]:{border:c,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:c,borderTop:c,[` > ${t}-content, > ${t}-header, > ${t}-body, > ${t}-summary `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:c},"> thead":{"> tr:not(:last-child) > th":{borderBottom:c},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:c}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${ae(l(s).mul(-1).equal())} ${ae(l(l(a).add(r)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:r,bottom:0,borderInlineEnd:c,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[` > tr${t}-expanded-row, > tr${t}-placeholder `]:{"> th, > td":{borderInlineEnd:0}}}}},...u("medium",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle),...u("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall),[`> ${t}-footer`]:{border:c,borderTop:0}},[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${ae(r)} 0 ${ae(r)} ${o}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:c}}}},Y5e=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:{...Ps,wordBreak:"keep-all",[` &${t}-cell-fix-start-shadow, &${t}-cell-fix-end-shadow `]:{overflow:"visible",[`${t}-cell-content`]:{...Ps,display:"block"}},[`${t}-column-title`]:{...Ps,wordBreak:"keep-all"}}}}},Z5e=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},Q5e=e=>{const{componentCls:t,antCls:r,motionDurationSlow:n,lineWidth:i,paddingXS:o,lineType:s,tableBorderColor:a,tableExpandIconBg:l,tableExpandColumnWidth:c,borderRadius:u,tablePaddingVertical:d,tablePaddingHorizontal:h,tableExpandedRowBg:p,paddingXXS:f,expandIconMarginTop:g,expandIconSize:m,expandIconHalfInner:y,expandIconScale:b,calc:S}=e,x=`${ae(i)} ${s} ${a}`,E=S(f).sub(i).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:c},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:{..._4(e),position:"relative",float:"left",width:m,height:m,color:"inherit",lineHeight:ae(m),background:l,border:x,borderRadius:u,transform:`scale(${b})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${n} ease-out`,content:'""'},"&::before":{top:y,insetInlineEnd:E,insetInlineStart:E,height:i},"&::after":{top:E,bottom:E,insetInlineStart:y,width:i,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}},[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:g,marginInlineEnd:o},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:p}},[`${r}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${ae(S(d).mul(-1).equal())} ${ae(S(h).mul(-1).equal())}`,padding:`${ae(d)} ${ae(h)}`}}}},J5e=e=>{const{componentCls:t,antCls:r,iconCls:n,tableFilterDropdownWidth:i,tableFilterDropdownSearchWidth:o,paddingXXS:s,paddingXS:a,colorText:l,lineWidth:c,lineType:u,tableBorderColor:d,headerIconColor:h,fontSizeSM:p,tablePaddingHorizontal:f,borderRadius:g,motionDurationSlow:m,colorIcon:y,colorPrimary:b,tableHeaderFilterActiveBg:S,colorTextDisabled:x,tableFilterDropdownBg:E,tableFilterDropdownHeight:R,controlItemBgHover:T,controlItemBgActive:M,boxShadowSecondary:D,filterDropdownMenuBg:A,calc:I}=e,L=`${r}-dropdown`,F=`${t}-filter-dropdown`,O=`${r}-tree`,k=`${ae(c)} ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:I(s).mul(-1).equal(),marginInline:`${ae(s)} ${ae(I(f).div(2).mul(-1).equal())}`,padding:`0 ${ae(s)}`,color:h,fontSize:p,borderRadius:g,cursor:"pointer",transition:`all ${m}`,"&:hover":{color:y,background:S},"&.active":{color:b}}}},{[`${r}-dropdown`]:{[F]:{...on(e),minWidth:i,backgroundColor:E,borderRadius:g,boxShadow:D,overflow:"hidden",[`${L}-menu`]:{maxHeight:R,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:A,"&:empty::after":{display:"block",padding:`${ae(a)} 0`,color:x,fontSize:p,textAlign:"center",content:'"Not Found"'}},[`${F}-tree`]:{paddingBlock:`${ae(a)} 0`,paddingInline:a,[O]:{padding:0},[`${O}-treenode ${O}-node-content-wrapper:hover`]:{backgroundColor:T},[`${O}-treenode-checkbox-checked ${O}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:M}}},[`${F}-search`]:{padding:a,borderBottom:k,"&-input":{input:{minWidth:o},[n]:{color:x}}},[`${F}-checkall`]:{width:"100%",marginBottom:s,marginInlineStart:s},[`${F}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${ae(I(a).sub(c).equal())} ${ae(a)}`,overflow:"hidden",borderTop:k}}}},{[`${r}-dropdown ${F}, ${F}-submenu`]:{[`${r}-checkbox-wrapper + span`]:{paddingInlineStart:a,color:l},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]};function the({colorSplit:e}){const t={boxShadow:`inset 10px 0 8px -8px ${e}`},r={boxShadow:`inset -10px 0 8px -8px ${e}`};return[t,r]}const e6e=e=>{const{componentCls:t,lineWidth:r,motionDurationSlow:n,zIndexTableFixed:i,tableBg:o,calc:s}=e,a=`${t}-cell`,l=`${a}-fix`,c={position:"absolute",top:0,bottom:s(r).mul(-1).equal(),width:30,transition:`box-shadow ${n}`,content:'""',pointerEvents:"none"},[u,d]=the(e);return{[`${t}-wrapper`]:{[`${a}${l}`]:{position:"sticky"},[l]:{zIndex:`calc(var(--z-offset-reverse) + ${i})`,background:o,"&:after":c,"&-start:after":{insetInlineStart:"100%"},"&-end:after":{insetInlineEnd:"100%"},"&-start-shadow-show:after":u,"&-end-shadow-show:after":d},[`${t}-container`]:{position:"relative","&:before, &:after":{...c,zIndex:`calc(var(--columns-count) * 2 + ${i} + 1)`},"&:before":{insetInlineStart:0},"&:after":{insetInlineEnd:0}},[`${t}-has-fix-start ${t}-container:before`]:{display:"none"},[`${t}-has-fix-end ${t}-container:after`]:{display:"none"},[`${t}-fix-start-shadow-show ${t}-container:before`]:u,[`${t}-fix-end-shadow-show ${t}-container:after`]:d}}},t6e=e=>{const{componentCls:t,antCls:r,margin:n}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${r}-pagination`]:{margin:`${ae(n)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"}}}}},r6e=e=>{const{componentCls:t,tableRadius:r}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${ae(r)} ${ae(r)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:r,borderStartEndRadius:r,"&::before":{borderStartStartRadius:r},"&::after":{borderStartEndRadius:r},[`> ${t}-content`]:{borderStartStartRadius:r,borderStartEndRadius:r},"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:r},"> *:last-child":{borderStartEndRadius:r}}},"&-footer":{borderRadius:`0 0 ${ae(r)} ${ae(r)}`}}}}},n6e=e=>{const{componentCls:t}=e,[r,n]=the(e);return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-cell-fix`]:{"&-start-shadow-show:after":n,"&-end-shadow-show:after":r},[`${t}-container`]:{[`${t}-row-indent`]:{float:"right"}},[`${t}-fix-start-shadow-show ${t}-container:before`]:n,[`${t}-fix-end-shadow-show ${t}-container:after`]:r}}},i6e=e=>{const{componentCls:t,antCls:r,iconCls:n,fontSizeIcon:i,padding:o,paddingXS:s,headerIconColor:a,headerIconHoverColor:l,tableSelectionColumnWidth:c,tableSelectedRowBg:u,tableSelectedRowHoverBg:d,tableRowHoverBg:h,tablePaddingHorizontal:p,calc:f}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:c,[`&${t}-selection-col-with-dropdown`]:{width:f(c).add(i).add(f(o).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:f(c).add(f(s).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:f(c).add(i).add(f(o).div(4)).add(f(s).mul(2)).equal()}},[` table tr th${t}-selection-column, table tr td${t}-selection-column, ${t}-selection-column `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${r}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:f(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:ae(f(p).div(4).equal()),[n]:{color:a,fontSize:i,verticalAlign:"baseline","&:hover":{color:l}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:d}}},[`> ${t}-cell-row-hover`]:{background:h}}}}}},o6e=e=>{const{componentCls:t,tableExpandColumnWidth:r,calc:n}=e,i=(o,s,a,l)=>({[`${t}${t}-${o}`]:{fontSize:l,[` ${t}-title, ${t}-footer, ${t}-cell, ${t}-thead > tr > th, ${t}-tbody > tr > th, ${t}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td `]:{padding:`${ae(s)} ${ae(a)}`},[`${t}-filter-trigger`]:{marginInlineEnd:ae(n(a).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${ae(n(s).mul(-1).equal())} ${ae(n(a).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:ae(n(s).mul(-1).equal()),marginInline:`${ae(n(r).sub(a).equal())} ${ae(n(a).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:ae(n(a).div(4).equal())}}});return{[`${t}-wrapper`]:{...i("medium",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle),...i("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall)}}},s6e=e=>{const{componentCls:t,marginXXS:r,fontSizeIcon:n,headerIconColor:i,headerIconHoverColor:o}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[` &${t}-cell-fix-left:hover, &${t}-cell-fix-right:hover `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:r,color:i,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:n,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:o}}}},a6e=e=>{const{componentCls:t,opacityLoading:r,tableScrollThumbBg:n,tableScrollThumbBgHover:i,tableScrollThumbSize:o,tableScrollBg:s,stickyScrollBarBorderRadius:a,lineWidth:l,lineType:c,tableBorderColor:u,zIndexTableFixed:d}=e,h=`${ae(l)} ${c} ${u}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:`calc(var(--columns-count) * 2 + ${d} + 1)`,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${ae(o)} !important`,zIndex:`calc(var(--columns-count) * 2 + ${d} + 1)`,display:"flex",alignItems:"center",background:s,borderTop:h,opacity:r,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:o,backgroundColor:n,borderRadius:a,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:i}}}}}}},ZX=e=>{const{componentCls:t,lineWidth:r,tableBorderColor:n,calc:i}=e,o=`${ae(r)} ${e.lineType} ${n}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:o}}},[`div${t}-summary`]:{boxShadow:`0 ${ae(i(r).mul(-1).equal())} 0 ${n}`}}}},l6e=e=>{const{componentCls:t,motionDurationMid:r,lineWidth:n,lineType:i,tableBorderColor:o,calc:s}=e,a=`${ae(n)} ${i} ${o}`,l=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[` & > ${t}-row, & > div:not(${t}-row) > ${t}-row `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:a,transition:`background-color ${r}`},[`${t}-expanded-row`]:{[`${l}${l}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${ae(n)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:a,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:a,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:s(n).mul(-1).equal(),borderInlineStart:a}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:a,borderBottom:a}}}}}},c6e=e=>{const{componentCls:t,fontWeightStrong:r,tablePaddingVertical:n,tablePaddingHorizontal:i,tableExpandColumnWidth:o,lineWidth:s,lineType:a,tableBorderColor:l,tableFontSize:c,tableBg:u,tableRadius:d,tableHeaderTextColor:h,motionDurationMid:p,tableHeaderBg:f,tableHeaderCellSplitColor:g,tableFooterTextColor:m,tableFooterBg:y,calc:b}=e,S=`${ae(s)} ${a} ${l}`;return{[`${t}-wrapper`]:{clear:"both",maxWidth:"100%","--rc-virtual-list-scrollbar-bg":e.tableScrollBg,...fu(),[t]:{...on(e),fontSize:c,background:u,borderRadius:`${ae(d)} ${ae(d)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`},table:{width:"100%",textAlign:"start",borderRadius:`${ae(d)} ${ae(d)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` ${t}-cell, ${t}-thead > tr > th, ${t}-tbody > tr > th, ${t}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td `]:{position:"relative",padding:`${ae(n)} ${ae(i)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${ae(n)} ${ae(i)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:h,fontWeight:r,textAlign:"start",background:f,borderBottom:S,transition:`background-color ${p} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:g,transform:"translateY(-50%)",transition:`background-color ${p}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{borderBottom:S,transition:["background-color","border-color"].map(x=>`${x} ${p}`).join(", "),[` > ${t}-wrapper:only-child, > ${t}-expanded-row-fixed > ${t}-wrapper:only-child `]:{[t]:{marginBlock:ae(b(n).mul(-1).equal()),marginInline:`${ae(b(o).sub(i).equal())} ${ae(b(i).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:h,fontWeight:r,textAlign:"start",background:f,borderBottom:S,transition:`background-color ${p} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:"0 !important",borderBlock:"0 !important",[`${t}-measure-cell-content`]:{height:0,overflow:"hidden",pointerEvents:"none"}}}},[`${t}-footer`]:{padding:`${ae(n)} ${ae(i)}`,color:m,background:y}}}},u6e=e=>{const{colorFillAlter:t,colorBgContainer:r,colorTextHeading:n,colorFillSecondary:i,colorFillContent:o,controlItemBgActive:s,controlItemBgActiveHover:a,padding:l,paddingSM:c,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:h,controlHeight:p,colorTextPlaceholder:f,fontSize:g,fontSizeSM:m,lineHeight:y,lineWidth:b,colorIcon:S,colorIconHover:x,opacityLoading:E,controlInteractiveSize:R}=e,T=new cn(i).onBackground(r).toHexString(),M=new cn(o).onBackground(r).toHexString(),D=new cn(t).onBackground(r).toHexString(),A=new cn(S),I=new cn(x),L=R/2-b,F=L*2+b*3;return{headerBg:D,headerColor:n,headerSortActiveBg:T,headerSortHoverBg:M,bodySortBg:D,rowHoverBg:D,rowSelectedBg:s,rowSelectedHoverBg:a,rowExpandedBg:t,cellPaddingBlock:l,cellPaddingInline:l,cellPaddingBlockMD:c,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:h,footerBg:D,footerColor:n,cellFontSize:g,cellFontSizeMD:g,cellFontSizeSM:g,headerSplitColor:d,fixedHeaderSortActiveBg:T,headerFilterHoverBg:o,filterDropdownMenuBg:r,filterDropdownBg:r,expandIconBg:r,selectionColumnWidth:p,stickyScrollBarBg:f,stickyScrollBarBorderRadius:100,expandIconMarginTop:(g*y-b*3)/2-Math.ceil((m*1.4-b*3)/2),headerIconColor:A.clone().setA(A.a*E).toRgbString(),headerIconHoverColor:I.clone().setA(I.a*E).toRgbString(),expandIconHalfInner:L,expandIconSize:F,expandIconScale:R/F}},d6e=2,h6e=zr("Table",e=>{const{colorTextHeading:t,colorSplit:r,colorBgContainer:n,controlInteractiveSize:i,headerBg:o,headerColor:s,headerSortActiveBg:a,headerSortHoverBg:l,bodySortBg:c,rowHoverBg:u,rowSelectedBg:d,rowSelectedHoverBg:h,rowExpandedBg:p,cellPaddingBlock:f,cellPaddingInline:g,cellPaddingBlockMD:m,cellPaddingInlineMD:y,cellPaddingBlockSM:b,cellPaddingInlineSM:S,borderColor:x,footerBg:E,footerColor:R,headerBorderRadius:T,cellFontSize:M,cellFontSizeMD:D,cellFontSizeSM:A,headerSplitColor:I,fixedHeaderSortActiveBg:L,headerFilterHoverBg:F,filterDropdownBg:O,expandIconBg:k,selectionColumnWidth:B,stickyScrollBarBg:H,calc:N}=e,z=$r(e,{tableFontSize:M,tableBg:n,tableRadius:T,tablePaddingVertical:f,tablePaddingHorizontal:g,tablePaddingVerticalMiddle:m,tablePaddingHorizontalMiddle:y,tablePaddingVerticalSmall:b,tablePaddingHorizontalSmall:S,tableBorderColor:x,tableHeaderTextColor:s,tableHeaderBg:o,tableFooterTextColor:R,tableFooterBg:E,tableHeaderCellSplitColor:I,tableHeaderSortBg:a,tableHeaderSortHoverBg:l,tableBodySortBg:c,tableFixedHeaderSortActiveBg:L,tableHeaderFilterActiveBg:F,tableFilterDropdownBg:O,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:h,zIndexTableFixed:d6e,tableFontSizeMiddle:D,tableFontSizeSmall:A,tableSelectionColumnWidth:B,tableExpandIconBg:k,tableExpandColumnWidth:N(i).add(N(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:H,tableScrollThumbBgHover:t,tableScrollBg:r});return[c6e(z),t6e(z),ZX(z),s6e(z),J5e(z),X5e(z),r6e(z),Q5e(z),ZX(z),Z5e(z),i6e(z),e6e(z),a6e(z),Y5e(z),o6e(z),n6e(z),l6e(z)]},u6e,{resetFont:!1,unitless:{expandIconScale:!0}}),QX=[],p6e=(e,t)=>{var Qt;const{prefixCls:r,className:n,rootClassName:i,style:o,classNames:s,styles:a,size:l,bordered:c,dropdownPrefixCls:u,dataSource:d,pagination:h,rowSelection:p,rowKey:f,rowClassName:g,columns:m,children:y,childrenColumnName:b,onChange:S,getPopupContainer:x,loading:E,expandIcon:R,expandable:T,expandedRowRender:M,expandIconColumnIndex:D,indentSize:A,scroll:I,sortDirections:L,locale:F,showSorterTooltip:O={target:"full-header"},virtual:k}=e;MC();const B=v.useMemo(()=>m||BH(y),[m,y]),H=v.useMemo(()=>B.some(Ft=>Ft.responsive),[B]),N=qx(H),z=v.useMemo(()=>{const Ft=new Set(Object.keys(N).filter(ur=>N[ur]));return B.filter(ur=>!ur.responsive||ur.responsive.some(fr=>Ft.has(fr)))},[B,N]),W=fn(e,["className","style","columns"]),{locale:V=xl,table:$}=v.useContext(ir),{getPrefixCls:K,direction:q,renderEmpty:X,getPopupContainer:Y,className:oe,style:ee,classNames:ne,styles:le}=Fr("table"),he=Oi(Ft=>l==="middle"?"medium":l??Ft),re={...e,size:he,bordered:c},[ie,de]=Gr([ne,s],[le,a],{props:re},{pagination:{_default:"root"},header:{_default:"wrapper"},body:{_default:"wrapper"}}),J={...V.Table,...F},[ue]=Dl("global",xl.global),ve=d||QX,pe=K("table",r),me=K("dropdown",u),[,Oe]=fs(),De=ho(pe),[Ee,We]=h6e(pe,De),ze={childrenColumnName:b,expandIconColumnIndex:D,...T,expandIcon:(T==null?void 0:T.expandIcon)??((Qt=$==null?void 0:$.expandable)==null?void 0:Qt.expandIcon)},{childrenColumnName:mt="children"}=ze,Nt=v.useMemo(()=>ve.some(Ft=>Ft==null?void 0:Ft[mt])?"nest":M||T!=null&&T.expandedRowRender?"row":null,[mt,ve]),St={body:v.useRef(null)},Ze=BHe(pe),Fe=v.useRef(null),tt=v.useRef(null);mFe(t,()=>({...tt.current,nativeElement:Fe.current}));const Ne=f||($==null?void 0:$.rowKey)||"key",rt=I??($==null?void 0:$.scroll),ot=v.useMemo(()=>typeof Ne=="function"?Ne:Ft=>Ft==null?void 0:Ft[Ne],[Ne]),[Ye]=k5e(ve,mt,ot),Ae={},nt=(Ft,ur,fr=!1)=>{var yn,dn,hn,en;const rr={...Ae,...Ft};fr&&((yn=Ae.resetPagination)==null||yn.call(Ae),(dn=rr.pagination)!=null&&dn.current&&(rr.pagination.current=1),h&&((en=h.onChange)==null||en.call(h,1,(hn=rr.pagination)==null?void 0:hn.pageSize))),I&&I.scrollToFirstRowOnChange!==!1&&St.body.current&&ole(0,{getContainer:()=>St.body.current}),S==null||S(rr.pagination,rr.filters,rr.sorter,{currentDataSource:OG(GG(ve,rr.sorterStates,mt),rr.filterStates,mt),action:ur})},Et=(Ft,ur)=>{nt({sorter:Ft,sorterStates:ur},"sort",!1)},[Tt,Ot,Wt,at]=U5e({prefixCls:pe,mergedColumns:z,onSorterChange:Et,sortDirections:L||["ascend","descend"],tableLocale:J,showSorterTooltip:O,globalLocale:ue}),lt=v.useMemo(()=>GG(ve,Ot,mt),[mt,ve,Ot]);Ae.sorter=at(),Ae.sorterStates=Ot;const Ut=(Ft,ur)=>{nt({filters:Ft,filterStates:ur},"filter",!0)},[cr,_e,qe]=_5e({prefixCls:pe,locale:J,dropdownPrefixCls:me,mergedColumns:z,onFilterChange:Ut,getPopupContainer:x||Y,rootClassName:Z(i,De)}),Re=OG(lt,_e,mt);Ae.filters=qe,Ae.filterStates=_e;const it=v.useMemo(()=>{const Ft={};return Object.keys(qe).forEach(ur=>{qe[ur]!==null&&(Ft[ur]=qe[ur])}),{...Wt,filters:Ft}},[Wt,qe]),[Ve]=j5e(it),ke=(Ft,ur)=>{nt({pagination:{...Ae.pagination,current:Ft,pageSize:ur}},"paginate")},[se,ce]=N5e(Re.length,ke,h);Ae.pagination=h===!1?{}:O5e(se,h),Ae.resetPagination=ce;const fe=v.useMemo(()=>{if(h===!1||!se.pageSize)return Re;const{current:Ft=1,total:ur,pageSize:fr=Qde}=se;return Re.lengthfr?Re.slice((Ft-1)*fr,Ft*fr):Re:Re.slice((Ft-1)*fr,Ft*fr)},[!!h,Re,se==null?void 0:se.current,se==null?void 0:se.pageSize,se==null?void 0:se.total]),[Te,$e]=OHe({prefixCls:pe,data:Re,pageData:fe,getRowKey:ot,getRecordByKey:Ye,expandType:Nt,childrenColumnName:mt,locale:J,getPopupContainer:x||Y},p),et=(Ft,ur,fr)=>{const rr=typeof g=="function"?g(Ft,ur,fr):g;return Z({[`${pe}-row-selected`]:$e.has(ot(Ft,ur))},rr)};ze.__PARENT_RENDER_ICON__=ze.expandIcon,ze.expandIcon=ze.expandIcon||R||NHe(J),Nt==="nest"&&ze.expandIconColumnIndex===void 0?ze.expandIconColumnIndex=p?1:0:ze.expandIconColumnIndex>0&&p&&(ze.expandIconColumnIndex-=1),typeof ze.indentSize!="number"&&(ze.indentSize=typeof A=="number"?A:15);const Dt=v.useCallback(Ft=>Ve(Te(cr(Tt(Ft)))),[Tt,cr,Te]);let ct,st;if(h!==!1&&(se!=null&&se.total)){let Ft;se.size?Ft=se.size:Ft=he==="small"||he==="medium"?"small":void 0;const ur=(hn="end")=>v.createElement(gde,{...se,classNames:ie.pagination,styles:de.pagination,className:Z(`${pe}-pagination ${pe}-pagination-${hn}`,se.className),size:Ft}),{placement:fr,position:rr}=se,yn=fr??rr,dn=hn=>{const en=hn.toLowerCase();return en.includes("center")?"center":en.includes("left")||en.includes("start")?"start":"end"};if(Array.isArray(yn)){const[hn,en]=["top","bottom"].map(Dr=>yn.find(sn=>sn.includes(Dr))),fo=yn.every(Dr=>`${Dr}`=="none");!hn&&!en&&!fo&&(st=ur()),hn&&(ct=ur(dn(hn))),en&&(st=ur(dn(en)))}else st=ur()}const wt=v.useMemo(()=>typeof E=="boolean"?{spinning:E}:typeof E=="object"&&E!==null?{spinning:!0,...E}:void 0,[E]),Mt=Z(We,De,`${pe}-wrapper`,oe,{[`${pe}-wrapper-rtl`]:q==="rtl"},n,i,ie.root,Ee),_t={...de.root,...ee,...o},At=v.useMemo(()=>wt!=null&&wt.spinning&&ve===QX?null:typeof(F==null?void 0:F.emptyText)<"u"?F.emptyText:(X==null?void 0:X("Table"))||v.createElement(lH,{componentName:"Table"}),[wt==null?void 0:wt.spinning,ve,F==null?void 0:F.emptyText,X]),pt=k?q5e:K5e,yt={},It=v.useMemo(()=>{const{fontSize:Ft,lineHeight:ur,lineWidth:fr,padding:rr,paddingXS:yn,paddingSM:dn}=Oe,hn=Math.floor(Ft*ur);switch(he){case"medium":return dn*2+hn+fr;case"small":return yn*2+hn+fr;default:return rr*2+hn+fr}},[Oe,he]);return k&&(yt.listItemHeight=It),v.createElement("div",{ref:Fe,className:Mt,style:_t},v.createElement(LH,{spinning:!1,...wt},ct,v.createElement(pt,{...yt,...W,scroll:rt,classNames:ie,styles:de,ref:tt,columns:z,direction:q,expandable:ze,prefixCls:pe,className:Z({[`${pe}-medium`]:he==="medium",[`${pe}-small`]:he==="small",[`${pe}-bordered`]:c,[`${pe}-empty`]:ve.length===0},We,De,Ee),data:fe,rowKey:ot,rowClassName:et,emptyText:At,internalHooks:n1,internalRefs:St,transformColumns:Dt,getContainerWidth:Ze,measureRowRender:Ft=>v.createElement(Kde.Provider,{value:!0},v.createElement(Iu,{getPopupContainer:ur=>ur},Ft))}),st))},f6e=v.forwardRef(p6e),g6e=(e,t)=>{const r=v.useRef(0);return r.current+=1,v.createElement(f6e,{...e,ref:t,_renderTimes:r.current})},jp=v.forwardRef(g6e);jp.SELECTION_COLUMN=Oh;jp.EXPAND_COLUMN=Vh;jp.SELECTION_ALL=wG;jp.SELECTION_INVERT=xG;jp.SELECTION_NONE=EG;jp.Column=PHe;jp.ColumnGroup=MHe;jp.Summary=Ide;const m6e=e=>{const{paddingXXS:t,lineWidth:r,tagPaddingHorizontal:n,componentCls:i,calc:o}=e,s=o(n).sub(r).equal(),a=o(t).sub(r).equal();return{[i]:{...on(e),display:"inline-block",height:"auto",paddingInline:s,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",backgroundColor:e.defaultBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${i}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:a,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive},"&-disabled":{cursor:"not-allowed",[`&:not(${i}-checkable-checked)`]:{color:e.colorTextDisabled,"&:hover":{backgroundColor:"transparent"}},[`&${i}-checkable-checked`]:{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled},"&:hover, &:active":{backgroundColor:e.colorBgContainerDisabled,color:e.colorTextDisabled},[`&:not(${i}-checkable-checked):hover`]:{color:e.colorTextDisabled}},"&-group":{display:"flex",flexWrap:"wrap",gap:e.paddingXS}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:s}},[`&${e.componentCls}-solid`]:{borderColor:"transparent",color:e.colorTextLightSolid,backgroundColor:e.colorBgSolid,[`&${i}-default`]:{color:e.solidTextColor}},[`${i}-filled`]:{borderColor:"transparent",backgroundColor:e.tagBorderlessBg},[`&${i}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",backgroundColor:e.colorBgContainerDisabled,a:{cursor:"not-allowed",pointerEvents:"none",color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}},"a&":{"&:hover, &:active":{color:e.colorTextDisabled}},[`&${i}-outlined`]:{borderColor:e.colorBorderDisabled},[`&${i}-solid, &${i}-filled`]:{color:e.colorTextDisabled,[`${i}-close-icon`]:{color:e.colorTextDisabled}},[`${i}-close-icon`]:{cursor:"not-allowed",color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}}}}},WH=e=>{const{lineWidth:t,fontSizeIcon:r,calc:n}=e,i=e.fontSizeSM;return $r(e,{tagFontSize:i,tagLineHeight:ae(n(e.lineHeightSM).mul(i).equal()),tagIconSize:n(r).sub(n(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},UH=e=>{const t=Nle(new pM(e.colorBgSolid),"#fff")?"#000":"#fff";return{defaultBg:new cn(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},jH=zr("Tag",e=>{const t=WH(e);return m6e(t)},UH),rhe=v.forwardRef((e,t)=>{const{prefixCls:r,style:n,className:i,checked:o,children:s,icon:a,onChange:l,onClick:c,disabled:u,...d}=e,{getPrefixCls:h,tag:p}=v.useContext(ir),f=v.useContext(hs),g=u??f,m=E=>{g||(l==null||l(!o),c==null||c(E))},y=h("tag",r),[b,S]=jH(y),x=Z(y,`${y}-checkable`,{[`${y}-checkable-checked`]:o,[`${y}-checkable-disabled`]:g},p==null?void 0:p.className,i,b,S);return v.createElement("span",{...d,ref:t,style:{...n,...p==null?void 0:p.style},className:x,onClick:m},a,v.createElement("span",null,s))}),v6e=Q.forwardRef((e,t)=>{const{id:r,prefixCls:n,rootClassName:i,className:o,style:s,classNames:a,styles:l,disabled:c,options:u,value:d,defaultValue:h,onChange:p,multiple:f,...g}=e,{getPrefixCls:m,direction:y,className:b,style:S,classNames:x,styles:E}=Fr("tag"),R=m("tag",n),T=`${R}-checkable-group`,M=ho(R),[D,A]=jH(R,M),[I,L]=Gr([x,a],[E,l],{props:e}),F=v.useMemo(()=>Array.isArray(u)?u.map(z=>z&&typeof z=="object"?z:{value:z,label:z}):[],[u]),[O,k]=An(h,d),B=(z,W)=>{let V=null;if(f){const $=O||[];V=z?[].concat(Pr($),[W.value]):$.filter(K=>K!==W.value)}else V=z?W.value:null;k(V),p==null||p(V)},H=Q.useRef(null);v.useImperativeHandle(t,()=>({nativeElement:H.current}));const N=ei(g,{aria:!0,data:!0});return Q.createElement("div",{...N,className:Z(T,b,i,{[`${T}-disabled`]:c,[`${T}-rtl`]:y==="rtl"},D,A,o,I.root),style:{...S,...L.root,...s},id:r,ref:H},F.map(z=>Q.createElement(rhe,{key:z.value,className:Z(`${T}-item`,I.item),style:L.item,checked:f?(O||[]).includes(z.value):O===z.value,onChange:W=>B(W,z),disabled:c},z.label)))});function y6e(e,t){const{color:r,variant:n,bordered:i}=e;return v.useMemo(()=>{const o=r==null?void 0:r.endsWith("-inverse");let s;n?s=n:o?s="solid":i===!1?s="filled":s=t||"filled";const a=o?r==null?void 0:r.replace("-inverse",""):r,l=JD(r),c=PNe(r),u={};if(!l&&!c&&a)if(s==="solid")u.backgroundColor=r;else{const d=new cn(a).toHsl();d.l=.95,u.backgroundColor=new cn(d).toHexString(),u.color=r,s==="outlined"&&(u.borderColor=r)}return[s,a,l,c,u]},[r,n,i,t])}const C6e=e=>VD(e,(t,{textColor:r,lightBorderColor:n,lightColor:i,darkColor:o})=>({[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:i,borderColor:n,color:r},[`&${e.componentCls}-solid`]:{backgroundColor:o,borderColor:o,color:e.colorTextLightSolid},[`&${e.componentCls}-filled`]:{backgroundColor:i,color:r}}})),b6e=Ax(["Tag","preset"],e=>{const t=WH(e);return C6e(t)},UH);function S6e(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const mT=(e,t,r)=>{const n=S6e(r);return{[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:e[`color${n}Bg`],borderColor:e[`color${n}Border`],color:e[`color${r}`]},[`&${e.componentCls}-solid`]:{backgroundColor:e[`color${r}`],borderColor:e[`color${r}`]},[`&${e.componentCls}-filled`]:{backgroundColor:e[`color${n}Bg`],color:e[`color${r}`]}}}},w6e=Ax(["Tag","status"],e=>{const t=WH(e);return[mT(t,"success","Success"),mT(t,"processing","Info"),mT(t,"error","Error"),mT(t,"warning","Warning")]},UH),x6e=v.forwardRef((e,t)=>{var ue;const{prefixCls:r,className:n,rootClassName:i,style:o,children:s,icon:a,color:l,variant:c,onClose:u,bordered:d,disabled:h,href:p,target:f,styles:g,classNames:m,...y}=e,{getPrefixCls:b,direction:S,className:x,variant:E,style:R,classNames:T,styles:M}=Fr("tag"),[D,A,I,L,F]=y6e(e,E),O=I||L,k=v.useContext(hs),B=h??k,{tag:H}=v.useContext(ir),[N,z]=v.useState(!0),W=fn(y,["closeIcon","closable"]),V={...e,color:A,variant:D,disabled:B,href:p,target:f,icon:a},[$,K]=Gr([T,m],[M,g],{props:V}),q=v.useMemo(()=>{let ve={...K.root,...R,...o};return B||(ve={...F,...ve}),ve},[K.root,R,o,F,B]),X=b("tag",r),[Y,oe]=jH(X),ee=Z(X,x,$.root,`${X}-${D}`,{[`${X}-${A}`]:O,[`${X}-hidden`]:!N,[`${X}-rtl`]:S==="rtl",[`${X}-disabled`]:B},n,i,Y,oe),ne=ve=>{B||(ve.stopPropagation(),u==null||u(ve),!ve.defaultPrevented&&z(!1))},[,le]=B4(Vy(e),Vy(H),{closable:!1,closeIconRender:ve=>{const pe=v.createElement("span",{className:`${X}-close-icon`,onClick:ne},ve);return Ple(ve,pe,me=>({onClick:Oe=>{var De;(De=me==null?void 0:me.onClick)==null||De.call(me,Oe),ne(Oe)},className:Z(me==null?void 0:me.className,`${X}-close-icon`)}))}}),he=typeof y.onClick=="function"||s&&s.type==="a",re=Ei(a,{className:Z(v.isValidElement(a)?(ue=a.props)==null?void 0:ue.className:void 0,$.icon),style:K.icon}),ie=re?v.createElement(v.Fragment,null,re,s&&v.createElement("span",{className:$.content,style:K.content},s)):s,de=p?"a":"span",J=v.createElement(de,{...W,ref:t,className:ee,style:q,href:B?void 0:p,target:f,onClick:B?void 0:W.onClick,...p&&B?{"aria-disabled":!0}:{}},ie,le,I&&v.createElement(b6e,{key:"preset",prefixCls:X}),L&&v.createElement(w6e,{key:"status",prefixCls:X}));return he?v.createElement(Nx,{component:"Tag"},J):J}),nhe=x6e;nhe.CheckableTag=rhe;nhe.CheckableTagGroup=v6e;var E6e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};function VG(){return VG=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,VG({},e,{ref:t,icon:E6e})),R6e=v.forwardRef(T6e);var P6e={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"};function zG(){return zG=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,zG({},e,{ref:t,icon:P6e})),I6e=v.forwardRef(M6e);var D6e={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"};function HG(){return HG=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,HG({},e,{ref:t,icon:D6e})),F6e=v.forwardRef(A6e),L6e=(e,t,r,n)=>{const{titleMarginBottom:i,fontWeightStrong:o}=n;return{marginBottom:i,color:r,fontWeight:o,fontSize:e,lineHeight:t}},_6e=e=>{const t=[1,2,3,4,5],r={};return t.forEach(n=>{r[` h${n}&, div&-h${n}, div&-h${n} > textarea, h${n} `]=L6e(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)}),r},k6e=e=>{const{componentCls:t}=e;return{[`&${`${t}-link`}`]:{..._4(e),userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}}}},O6e=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:aM[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:e.fontWeightStrong},"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}}),N6e=e=>{const{componentCls:t,paddingSM:r}=e,n=r;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(n).div(-2).add(1).equal(),marginBottom:e.calc(n).div(2).sub(2).equal()},[`${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"}}}},B6e=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),$6e=()=>({"\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"}}),G6e=e=>{const{componentCls:t,titleMarginTop:r}=e;return{[t]:{color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary, &${t}-link${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success, &${t}-link${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning, &${t}-link${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger, &${t}-link${t}-danger`]:{color:e.colorErrorText,[`&${t}-link:active, &${t}-link:focus`]:{color:e.colorErrorTextActive},[`&${t}-link:hover`]:{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"},..._6e(e),[` & + h1${t}, & + h2${t}, & + h3${t}, & + h4${t}, & + h5${t} `]:{marginTop:r},"\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:r}},...O6e(e),...k6e(e),[`${t}-actions`]:{display:"inline"},[` ${t}-expand, ${t}-collapse, ${t}-edit, ${t}-copy `]:{..._4(e),marginInlineStart:e.marginXXS},...N6e(e),...B6e(e),...$6e(),"&-rtl":{direction:"rtl"}}}},V6e=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),ihe=zr("Typography",G6e,V6e),z6e=e=>{const{prefixCls:t,"aria-label":r,className:n,style:i,direction:o,maxLength:s,autoSize:a=!0,value:l,onSave:c,onCancel:u,onEnd:d,component:h,enterIcon:p=v.createElement(F6e,null)}=e,f=v.useRef(null),g=v.useRef(!1),m=v.useRef(null),[y,b]=v.useState(l);v.useEffect(()=>{b(l)},[l]),v.useEffect(()=>{var F;if((F=f.current)!=null&&F.resizableTextArea){const{textArea:O}=f.current.resizableTextArea;O.focus();const{length:k}=O.value;O.setSelectionRange(k,k)}},[]);const S=({target:F})=>{b(F.value.replace(/[\n\r]/g,""))},x=()=>{g.current=!0},E=()=>{g.current=!1},R=({keyCode:F})=>{g.current||(m.current=F)},T=()=>{c(y.trim())},M=({keyCode:F,ctrlKey:O,altKey:k,metaKey:B,shiftKey:H})=>{m.current!==F||g.current||O||k||B||H||(F===Zt.ENTER?(T(),d==null||d()):F===Zt.ESC&&u())},D=()=>{T()},[A,I]=ihe(t),L=Z(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl",[`${t}-${h}`]:!!h},n,A,I);return v.createElement("div",{className:L,style:i},v.createElement(hde,{ref:f,maxLength:s,value:y,onChange:S,onKeyDown:R,onKeyUp:M,onCompositionStart:x,onCompositionEnd:E,onBlur:D,"aria-label":r,rows:1,autoSize:a}),p!==null?Ei(p,{className:`${t}-edit-content-confirm`}):null)},H6e=(e,t)=>{let r=!1;const n=i=>{var o,s,a;i.stopPropagation(),i.preventDefault(),(o=i.clipboardData)==null||o.clearData(),(s=i.clipboardData)==null||s.setData("text/plain",e),t&&((a=i.clipboardData)==null||a.setData("text/html",e)),r=!0};try{return document.addEventListener("copy",n,{capture:!0}),document.execCommand("copy"),r}catch{return!1}finally{document.removeEventListener("copy",n,{capture:!0})}},W6e=async(e,t)=>{try{return t?await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:"text/html"}),"text/plain":new Blob([e],{type:"text/plain"})})]):await navigator.clipboard.writeText(e),!0}catch{return!1}};async function U6e(e,t){if(typeof e!="string")return!1;const r=(t==null?void 0:t.format)==="text/html";return!!(await W6e(e,r)||H6e(e,r))}const j6e=({copyConfig:e,children:t})=>{const[r,n]=v.useState(!1),[i,o]=v.useState(!1),s=v.useRef(null),a=()=>{s.current&&clearTimeout(s.current)},l={};e.format&&(l.format=e.format),v.useEffect(()=>a,[]);const c=Sr(async u=>{var d;u==null||u.preventDefault(),u==null||u.stopPropagation(),o(!0);try{const h=typeof e.text=="function"?await e.text():e.text;await U6e(h||bde(t,{skipEmpty:!0}).join("")||"",l),o(!1),n(!0),a(),s.current=setTimeout(()=>{n(!1)},3e3),(d=e.onCopy)==null||d.call(e,u)}catch(h){throw o(!1),h}});return{copied:r,copyLoading:i,onClick:c}};function b2(e,t){return v.useMemo(()=>{const r=!!e;return[r,{...t,...r&&typeof e=="object"?e:null}]},[e])}const K6e=e=>{const t=v.useRef(void 0);return v.useEffect(()=>{t.current=e}),t.current},q6e=(e,t,r)=>v.useMemo(()=>e===!0?{title:t??r}:v.isValidElement(e)?{title:e}:typeof e=="object"?{title:t??r,...e}:{title:e},[e,t,r]),ohe=v.forwardRef((e,t)=>{const{prefixCls:r,component:n="article",className:i,rootClassName:o,children:s,direction:a,style:l,...c}=e,{getPrefixCls:u,direction:d,className:h,style:p}=Fr("typography"),f=a??d,g=u("typography",r),[m,y]=ihe(g),b=Z(g,h,{[`${g}-rtl`]:f==="rtl"},i,o,m,y),S={...p,...l};return v.createElement(n,{className:b,style:S,ref:t,...c},s)});var X6e={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"};function WG(){return WG=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,WG({},e,{ref:t,icon:X6e})),Z6e=v.forwardRef(Y6e),JX=e=>e===!1?[!1,!1]:bde(e);function S2(e,t,r){return e===!0||e===void 0?t:e||r&&t}function Q6e(e){const t=document.createElement("em");e.appendChild(t);const r=e.getBoundingClientRect(),n=t.getBoundingClientRect();return e.removeChild(t),r.left>n.left||n.right>r.right||r.top>n.top||n.bottom>r.bottom}const KH=e=>["string","number"].includes(typeof e),J6e=e=>{const{prefixCls:t,copied:r,locale:n,iconOnly:i,tooltips:o,icon:s,tabIndex:a,onCopy:l,loading:c}=e,u=JX(o),d=JX(s),{copied:h,copy:p}=n??{},f=r?h:p,g=S2(u[r?1:0],f),m=typeof g=="string"?g:f;return v.createElement(El,{title:g},v.createElement("button",{type:"button",className:Z(`${t}-copy`,{[`${t}-copy-success`]:r,[`${t}-copy-icon-only`]:i}),onClick:l,"aria-label":m,tabIndex:a},r?S2(d[1],v.createElement(cH,null),!0):S2(d[0],c?v.createElement(rm,null):v.createElement(Z6e,null),!0)))},vT=v.forwardRef(({style:e,children:t},r)=>{const n=v.useRef(null);return v.useImperativeHandle(r,()=>({isExceed:()=>{const i=n.current;return i.scrollHeight>i.clientHeight},getHeight:()=>n.current.clientHeight})),v.createElement("span",{"aria-hidden":!0,ref:n,style:{position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)",...e}},t)}),eWe=e=>e.reduce((t,r)=>t+(KH(r)?String(r).length:1),0);function eY(e,t){let r=0;const n=[];for(let i=0;it){const c=t-r;return n.push(String(o).slice(0,c)),n}n.push(o),r=l}return e}const w2=0,x2=1,E2=2,T2=3,tY=4,yT={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function tWe(e){const{enableMeasure:t,width:r,text:n,children:i,rows:o,expanded:s,miscDeps:a,onEllipsis:l}=e,c=v.useMemo(()=>Li(n),[n]),u=v.useMemo(()=>eWe(c),[n]),d=v.useMemo(()=>i(c,!1),[n]),[h,p]=v.useState(null),f=v.useRef(null),g=v.useRef(null),m=v.useRef(null),y=v.useRef(null),b=v.useRef(null),[S,x]=v.useState(!1),[E,R]=v.useState(w2),[T,M]=v.useState(0),[D,A]=v.useState(null);jr(()=>{R(t&&r&&u?x2:w2)},[r,n,o,t,c]),jr(()=>{var O,k,B,H;if(E===x2){R(E2);const N=g.current&&getComputedStyle(g.current).whiteSpace;A(N)}else if(E===E2){const N=!!((O=m.current)!=null&&O.isExceed());R(N?T2:tY),p(N?[0,u]:null),x(N);const z=((k=m.current)==null?void 0:k.getHeight())||0,W=o===1?0:((B=y.current)==null?void 0:B.getHeight())||0,V=((H=b.current)==null?void 0:H.getHeight())||0,$=Math.max(z,W+V);M($+1),l(N)}},[E]);const I=h?Math.ceil((h[0]+h[1])/2):0;jr(()=>{var B;const[O,k]=h||[0,0];if(O!==k){const N=(((B=f.current)==null?void 0:B.getHeight())||0)>T;let z=I;k-O===1&&(z=N?O:k),p(N?[O,z]:[z,k])}},[h,I]);const L=v.useMemo(()=>{if(!t)return i(c,!1);if(E!==T2||!h||h[0]!==h[1]){const O=i(c,!1);return[tY,w2].includes(E)?O:v.createElement("span",{style:{...yT,WebkitLineClamp:o}},O)}return i(s?c:eY(c,h[0]),S)},[s,E,h,c].concat(Pr(a))),F={width:r,margin:0,padding:0,whiteSpace:D==="nowrap"?"normal":"inherit"};return v.createElement(v.Fragment,null,L,E===E2&&v.createElement(v.Fragment,null,v.createElement(vT,{style:{...F,...yT,WebkitLineClamp:o},ref:m},d),v.createElement(vT,{style:{...F,...yT,WebkitLineClamp:o-1},ref:y},d),v.createElement(vT,{style:{...F,...yT,WebkitLineClamp:1},ref:b},i([],!0))),E===T2&&h&&h[0]!==h[1]&&v.createElement(vT,{style:{...F,top:400},ref:f},i(eY(c,I),!0)),E===x2&&v.createElement("span",{style:{whiteSpace:"inherit"},ref:g}))}const rWe=({enableEllipsis:e,isEllipsis:t,open:r,children:n,tooltipProps:i})=>{if(!(i!=null&&i.title)||!e)return n;const o=r&&t;return v.createElement(El,{open:o,...i},n)};function nWe({mark:e,code:t,underline:r,delete:n,strong:i,keyboard:o,italic:s},a){let l=a;function c(u,d){d&&(l=v.createElement(u,{},l))}return c("strong",i),c("u",r),c("del",n),c("code",t),c("mark",e),c("kbd",o),c("i",s),l}const iWe="...",rY=["delete","mark","code","underline","strong","keyboard","italic"],dA=v.forwardRef((e,t)=>{const{prefixCls:r,className:n,style:i,type:o,disabled:s,children:a,ellipsis:l,editable:c,copyable:u,component:d,title:h,onMouseEnter:p,onMouseLeave:f,...g}=e,{getPrefixCls:m,direction:y}=v.useContext(ir),[b]=Dl("Text"),S=v.useRef(null),x=v.useRef(null),E=m("typography",r),R=fn(g,rY),[T,M]=b2(c),[D,A]=An(!1,M.editing),{triggerType:I=["icon"]}=M,L=at=>{var lt;at&&((lt=M.onStart)==null||lt.call(M)),A(at)},F=K6e(D);jr(()=>{var at;!D&&F&&((at=x.current)==null||at.focus())},[D]);const O=at=>{at==null||at.preventDefault(),L(!0)},k=at=>{var lt;(lt=M.onChange)==null||lt.call(M,at),L(!1)},B=()=>{var at;(at=M.onCancel)==null||at.call(M),L(!1)},[H,N]=b2(u),{copied:z,copyLoading:W,onClick:V}=j6e({copyConfig:N,children:a}),[$,K]=v.useState(!1),[q,X]=v.useState(!1),[Y,oe]=v.useState(!1),[ee,ne]=v.useState(!1),[le,he]=v.useState(!0),[re,ie]=b2(l,{expandable:!1,symbol:at=>at?b==null?void 0:b.collapse:b==null?void 0:b.expand}),[de,J]=An(ie.defaultExpanded||!1,ie.expanded),ue=re&&(!de||ie.expandable==="collapsible"),{rows:ve=1}=ie,pe=v.useMemo(()=>ue&&(ie.suffix!==void 0||ie.onEllipsis||ie.expandable||T||H),[ue,ie,T,H]);jr(()=>{re&&!pe&&(K(iq("webkitLineClamp")),X(iq("textOverflow")))},[pe,re]);const[me,Oe]=v.useState(ue),De=v.useMemo(()=>pe?!1:ve===1?q:$,[pe,q,$]);jr(()=>{Oe(De&&ue)},[De,ue]);const Ee=ue&&(me?ee:Y),We=ue&&ve===1&&me,ze=ue&&ve>1&&me,mt=(at,lt)=>{var Ut;J(lt.expanded),(Ut=ie.onExpand)==null||Ut.call(ie,at,lt)},[Nt,St]=v.useState(0),[Ze,Fe]=v.useState(!1),[tt,Ne]=v.useState(!1),rt=({offsetWidth:at})=>{St(at)},ot=at=>{var lt;oe(at),Y!==at&&((lt=ie.onEllipsis)==null||lt.call(ie,at))};v.useEffect(()=>{const at=S.current;if(re&&me&&at){const lt=Q6e(at);ee!==lt&&ne(lt)}},[re,me,a,ze,le,Nt]),v.useEffect(()=>{const at=S.current;if(typeof IntersectionObserver>"u"||!at||!me||!ue)return;const lt=new IntersectionObserver(()=>{he(!!at.offsetParent)});return lt.observe(at),()=>{lt.disconnect()}},[me,ue]);const Ye=q6e(ie.tooltip,M.text,a),Ae=v.useMemo(()=>{if(!(!re||me))return[M.text,a,h,Ye.title].find(KH)},[re,me,h,Ye.title,Ee]);if(D)return v.createElement(z6e,{value:M.text??(typeof a=="string"?a:""),onSave:k,onCancel:B,onEnd:M.onEnd,prefixCls:E,className:n,style:i,direction:y,component:d,maxLength:M.maxLength,autoSize:M.autoSize,enterIcon:M.enterIcon});const nt=()=>{const{expandable:at,symbol:lt}=ie;return at?v.createElement("button",{type:"button",key:"expand",className:`${E}-${de?"collapse":"expand"}`,onClick:Ut=>mt(Ut,{expanded:!de}),"aria-label":de?b.collapse:b==null?void 0:b.expand},typeof lt=="function"?lt(de):lt):null},Et=()=>{if(!T)return;const{icon:at,tooltip:lt,tabIndex:Ut}=M,cr=Li(lt)[0]||(b==null?void 0:b.edit),_e=typeof cr=="string"?cr:"";return I.includes("icon")?v.createElement(El,{key:"edit",title:lt===!1?"":cr},v.createElement("button",{type:"button",ref:x,className:`${E}-edit`,onClick:O,"aria-label":_e,tabIndex:Ut},at||v.createElement(I6e,{role:"button"}))):null},Tt=()=>H?v.createElement(J6e,{key:"copy",...N,prefixCls:E,copied:z,locale:b,onCopy:V,loading:W,iconOnly:!Tn(a)}):null,Ot=at=>{const lt=at&&nt(),Ut=Et(),cr=Tt();return!lt&&!Ut&&!cr?null:v.createElement("span",{key:"operations",className:`${E}-actions`,onMouseEnter:()=>Fe(!0),onMouseLeave:()=>Fe(!1)},lt,Ut,cr)},Wt=at=>[at&&!de&&v.createElement("span",{"aria-hidden":!0,key:"ellipsis"},iWe),ie.suffix,Ot(at)];return v.createElement(ta,{onResize:rt,disabled:!ue},at=>v.createElement(rWe,{tooltipProps:Ye,enableEllipsis:ue,isEllipsis:Ee,open:tt&&!Ze},v.createElement(ohe,{onMouseEnter:lt=>{Ne(!0),p==null||p(lt)},onMouseLeave:lt=>{Ne(!1),f==null||f(lt)},className:Z({[`${E}-${o}`]:o,[`${E}-disabled`]:s,[`${E}-ellipsis`]:re,[`${E}-ellipsis-single-line`]:We,[`${E}-ellipsis-multiple-line`]:ze,[`${E}-link`]:d==="a"},n),prefixCls:r,style:{...i,WebkitLineClamp:ze?ve:void 0},component:d,ref:Wo(at,S,t),direction:y,onClick:I.includes("text")?O:void 0,"aria-label":Ae==null?void 0:Ae.toString(),title:h,...R},v.createElement(tWe,{enableMeasure:ue&&!me,text:a,rows:ve,width:Nt,onEllipsis:ot,expanded:de,miscDeps:[z,de,W,T,H,b].concat(Pr(rY.map(lt=>e[lt])))},(lt,Ut)=>nWe(e,v.createElement(v.Fragment,null,lt.length>0&&Ut&&!de&&Ae?v.createElement("span",{key:"show-content","aria-hidden":!0},lt):lt,Wt(Ut)))))))}),oWe=v.forwardRef((e,t)=>{const{ellipsis:r,rel:n,children:i,navigate:o,...s}=e,a={...s,rel:n===void 0&&s.target==="_blank"?"noopener noreferrer":n};return v.createElement(dA,{...a,ref:t,ellipsis:!!r,component:"a"},i)}),sWe=v.forwardRef((e,t)=>{const{children:r,...n}=e;return v.createElement(dA,{ref:t,...n,component:"div"},r)}),aWe=v.forwardRef((e,t)=>{const{ellipsis:r,children:n,...i}=e,o=v.useMemo(()=>r&&typeof r=="object"?fn(r,["expandable","rows"]):r,[r]);return v.createElement(dA,{ref:t,...i,ellipsis:o,component:"span"},n)}),lWe=[1,2,3,4,5],cWe=v.forwardRef((e,t)=>{const{level:r=1,children:n,...i}=e,o=lWe.includes(r)?`h${r}`:"h1";return v.createElement(dA,{ref:t,...i,component:o},n)}),hA=ohe;hA.Text=aWe;hA.Link=oWe;hA.Title=cWe;hA.Paragraph=sWe;const uWe=((e,t)=>{if(e&&t){const r=Array.isArray(t)?t:t.split(","),n=e.name||"",i=e.type||"",o=i.replace(/\/.*$/,"");return r.some(s=>{const a=s.trim();if(/^\*(\/\*)?$/.test(s))return!0;if(a.charAt(0)==="."){const l=n.toLowerCase(),c=a.toLowerCase();let u=[c];return(c===".jpg"||c===".jpeg")&&(u=[".jpg",".jpeg"]),u.some(d=>l.endsWith(d))}return/\/\*$/.test(a)?o===a.replace(/\/.*$/,""):i===a?!0:/^\w+$/.test(a)?(Vn(!1,`Upload takes an invalidate 'accept' type '${a}'.Skip for check.`),!0):!1})}return!0});function dWe(e,t){const r=`cannot ${e.method} ${e.action} ${t.status}'`,n=new Error(r);return n.status=t.status,n.method=e.method,n.url=e.action,n}function nY(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function iY(e){const t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(o){o.total>0&&(o.percent=o.loaded/o.total*100),e.onProgress(o)});const r=new FormData;e.data&&Object.keys(e.data).forEach(i=>{const o=e.data[i];if(Array.isArray(o)){o.forEach(s=>{r.append(`${i}[]`,s)});return}r.append(i,o)}),e.file instanceof Blob?r.append(e.filename,e.file,e.file.name):r.append(e.filename,e.file),t.onerror=function(o){e.onError(o)},t.onload=function(){return t.status<200||t.status>=300?e.onError(dWe(e,t),nY(t)):e.onSuccess(nY(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const n=e.headers||{};return n["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(n).forEach(i=>{n[i]!==null&&t.setRequestHeader(i,n[i])}),t.send(r),{abort(){t.abort()}}}const hWe=async(e,t)=>{const r=[],n=[];e.forEach(l=>n.push(l.webkitGetAsEntry()));async function i(l){const c=l.createReader(),u=[];for(;;){const d=await new Promise(p=>{c.readEntries(p,()=>p([]))}),h=d.length;if(!h)break;for(let p=0;p{l.file(u=>{t(u)?(l.fullPath&&!u.webkitRelativePath&&(Object.defineProperties(u,{webkitRelativePath:{writable:!0}}),u.webkitRelativePath=l.fullPath.replace(/^\//,""),Object.defineProperties(u,{webkitRelativePath:{writable:!1}})),c(u)):c(null)})})}const s=async(l,c)=>{if(l){if(l.path="",l.isFile){const u=await o(l);u&&r.push(u)}else if(l.isDirectory){const u=await i(l);n.push(...u)}}};let a=0;for(;a{const{accept:i,directory:o}=this.props;let s,a;if(typeof i=="string")a=i;else{const{filter:c,format:u}=i||{};a=u,c==="native"?s=()=>!0:s=c}return(s||(o||n?c=>uWe(c,a):()=>!0))(r)});Ie(this,"onChange",r=>{const{files:n}=r.target,i=[...n].filter(o=>this.filterFile(o));this.uploadFiles(i),this.reset()});Ie(this,"onClick",r=>{const n=this.fileInput;if(!n)return;const i=r.target,{onClick:o}=this.props;i&&i.tagName==="BUTTON"&&(n.parentNode.focus(),i.blur()),n.click(),o&&o(r)});Ie(this,"onKeyDown",r=>{r.key==="Enter"&&this.onClick(r)});Ie(this,"onDataTransferFiles",async(r,n)=>{const{multiple:i,directory:o}=this.props,s=[...r.items||[]];let a=[...r.files||[]];if((a.length>0||s.some(l=>l.kind==="file"))&&(n==null||n()),o)a=await hWe(Array.prototype.slice.call(s),this.filterFile),this.uploadFiles(a);else{let l=[...a].filter(c=>this.filterFile(c,!0));i===!1&&(l=a.slice(0,1)),this.uploadFiles(l)}});Ie(this,"onFilePaste",async r=>{const{pastable:n}=this.props;if(n&&r.type==="paste"){const i=r.clipboardData;return this.onDataTransferFiles(i,()=>{r.preventDefault()})}});Ie(this,"onFileDragOver",r=>{r.preventDefault()});Ie(this,"onFileDrop",async r=>{if(r.preventDefault(),r.type==="drop"){const n=r.dataTransfer;return this.onDataTransferFiles(n)}});Ie(this,"uploadFiles",r=>{const n=[...r],i=n.map(o=>(o.uid=R2(),this.processFile(o,n)));Promise.all(i).then(o=>{const{onBatchStart:s}=this.props;s==null||s(o.map(({origin:a,parsedFile:l})=>({file:a,parsedFile:l}))),o.filter(a=>a.parsedFile!==null).forEach(a=>{this.post(a)})})});Ie(this,"processFile",async(r,n)=>{const{beforeUpload:i}=this.props;let o=r;if(i){try{o=await i(r,n)}catch{o=!1}if(o===!1)return{origin:r,parsedFile:null,action:null,data:null}}const{action:s}=this.props;let a;typeof s=="function"?a=await s(r):a=s;const{data:l}=this.props;let c;typeof l=="function"?c=await l(r):c=l;const u=(typeof o=="object"||typeof o=="string")&&o?o:r;let d;u instanceof File?d=u:d=new File([u],r.name,{type:r.type});const h=d;return h.uid=r.uid,{origin:r,data:c,parsedFile:h,action:a}});Ie(this,"saveFileInput",r=>{this.fileInput=r})}componentDidMount(){this._isMounted=!0;const{pastable:r}=this.props;r&&document.addEventListener("paste",this.onFilePaste)}componentWillUnmount(){this._isMounted=!1,this.abort(),document.removeEventListener("paste",this.onFilePaste)}componentDidUpdate(r){const{pastable:n}=this.props;n&&!r.pastable?document.addEventListener("paste",this.onFilePaste):!n&&r.pastable&&document.removeEventListener("paste",this.onFilePaste)}post({data:r,origin:n,action:i,parsedFile:o}){if(!this._isMounted)return;const{onStart:s,customRequest:a,name:l,headers:c,withCredentials:u,method:d}=this.props,{uid:h}=n,p=a||iY,f={action:i,filename:l,data:r,file:o,headers:c,withCredentials:u,method:d||"post",onProgress:g=>{const{onProgress:m}=this.props;m==null||m(g,o)},onSuccess:(g,m)=>{const{onSuccess:y}=this.props;y==null||y(g,o,m),delete this.reqs[h]},onError:(g,m)=>{const{onError:y}=this.props;y==null||y(g,m,o),delete this.reqs[h]}};s(n),this.reqs[h]=p(f,{defaultRequest:iY})}reset(){this.setState({uid:R2()})}abort(r){const{reqs:n}=this;if(r){const i=r.uid?r.uid:r;n[i]&&n[i].abort&&n[i].abort(),delete n[i]}else Object.keys(n).forEach(i=>{n[i]&&n[i].abort&&n[i].abort(),delete n[i]})}render(){const{component:r,prefixCls:n,className:i,classNames:o={},disabled:s,id:a,name:l,style:c,styles:u={},multiple:d,accept:h,capture:p,children:f,directory:g,openFileDialogOnClick:m,onMouseEnter:y,onMouseLeave:b,hasControlInside:S,...x}=this.props,E=typeof h=="string"?h:h==null?void 0:h.format,R=Z(n,{[`${n}-disabled`]:s,[i]:i}),T=g?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},M=s?{}:{onClick:m?this.onClick:()=>{},onKeyDown:m?this.onKeyDown:()=>{},onMouseEnter:y,onMouseLeave:b,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:S?void 0:"0"};return Q.createElement(r,OM({},M,{className:R,role:S?void 0:"button",style:c}),Q.createElement("input",OM({},ei(x,{aria:!0,data:!0}),{id:a,name:l,disabled:s,type:"file",ref:this.saveFileInput,onClick:D=>D.stopPropagation(),key:this.state.uid,style:{display:"none",...u.input},className:o.input,accept:E},T,{multiple:d,onChange:this.onChange},p!=null?{capture:p}:{})),f)}}function UG(){return UG=Object.assign?Object.assign.bind():function(e){for(var t=1;t{this.uploader=r})}abort(r){this.uploader.abort(r)}render(){return Q.createElement(gWe,UG({},this.props,{ref:this.saveUploader}))}},Ie(XN,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:P2,onError:P2,onSuccess:P2,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1}),XN);const mWe=e=>{const{componentCls:t,iconCls:r}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${ae(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${ae(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` &:not(${t}-disabled):hover, &-hover:not(${t}-disabled) `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[r]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${ae(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${r}, p${t}-text, p${t}-hint `]:{color:e.colorTextDisabled}}}}}},vWe=e=>{const{componentCls:t,iconCls:r,fontSize:n,lineHeight:i,motionDurationSlow:o,calc:s}=e,a=`${t}-list-item`,l=`${a}-actions`,c=`${a}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:{...fu(),lineHeight:e.lineHeight,[a]:{position:"relative",height:s(e.lineHeight).mul(n).equal(),marginTop:e.marginXS,fontSize:n,display:"flex",alignItems:"center",transition:`background-color ${o}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${a}-name`]:{...Ps,padding:`0 ${ae(e.paddingXS)}`,lineHeight:i,flex:"auto",transition:`all ${o}`},[l]:{whiteSpace:"nowrap",[c]:{opacity:0},"@media (hover: none), (pointer: coarse)":{[c]:{opacity:1}},[r]:{color:e.actionsColor,transition:`all ${o}`},[` ${c}:focus-visible, &.picture ${c} `]:{opacity:1}},[`${t}-icon ${r}`]:{color:e.colorIcon,fontSize:n},[`${a}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:s(n).add(e.paddingXS).equal(),fontSize:n,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${a}:hover ${c}`]:{opacity:1},[`${a}-error`]:{color:e.colorError,[`${a}-name, ${t}-icon ${r}`]:{color:e.colorError},[l]:{[`${r}, ${r}:hover`]:{color:e.colorError},[c]:{opacity:1}}},[`${t}-list-item-container`]:{transition:["opacity","height"].map(u=>`${u} ${o}`).join(", "),"&::before":{display:"table",width:0,height:0,content:'""'}}}}}},yWe=e=>{const{componentCls:t}=e,r=new qr("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),n=new qr("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),i=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${i}-appear, ${i}-enter, ${i}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${i}-appear, ${i}-enter`]:{animationName:r},[`${i}-leave`]:{animationName:n}}},{[`${t}-wrapper`]:qD(e)},r,n]},CWe=e=>{const{componentCls:t,iconCls:r,uploadThumbnailSize:n,uploadProgressOffset:i,calc:o}=e,s=`${t}-list`,a=`${s}-item`;return{[`${t}-wrapper`]:{[` ${s}${s}-picture, ${s}${s}-picture-card, ${s}${s}-picture-circle `]:{[a]:{position:"relative",height:o(n).add(o(e.lineWidth).mul(2)).add(o(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${a}-thumbnail`]:{...Ps,width:n,height:n,lineHeight:ae(o(n).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[r]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}},[`${a}-progress`]:{bottom:o(e.fontSize).mul(e.lineHeight).div(2).add(i).equal(),width:`calc(100% - ${ae(o(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:o(n).add(e.paddingXS).equal()}},[`${a}-error`]:{borderColor:e.colorError,[`${a}-thumbnail ${r}`]:{[`svg path[fill='${Gy[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${Gy.primary}']`]:{fill:e.colorError}}},[`${a}-uploading`]:{borderStyle:"dashed",[`${a}-name`]:{marginBottom:i}}},[`${s}${s}-picture-circle ${a}`]:{[`&, &::before, ${a}-thumbnail`]:{borderRadius:"50%"}}}}},bWe=e=>{const{componentCls:t,iconCls:r,fontSizeLG:n,colorTextLightSolid:i,calc:o}=e,s=`${t}-list`,a=`${s}-item`,l=e.uploadPicCardSize;return{[` ${t}-wrapper${t}-picture-card-wrapper, ${t}-wrapper${t}-picture-circle-wrapper `]:{...fu(),display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${ae(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${s}${s}-picture-card, ${s}${s}-picture-circle`]:{display:"flex",flexWrap:"wrap","&:not(:empty)":{minHeight:l},"@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${s}-item-container`]:{display:"inline-block",width:l,height:l,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[a]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${ae(o(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${ae(o(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${a}:hover`]:{[`&::before, ${a}-actions`]:{opacity:1}},[`${a}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[` ${r}-eye, ${r}-download, ${r}-delete `]:{zIndex:10,width:n,margin:`0 ${ae(e.marginXXS)}`,fontSize:n,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:i,"&:hover":{color:i},svg:{verticalAlign:"baseline"}}},[`${a}-thumbnail, ${a}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${a}-name`]:{display:"none",textAlign:"center"},[`${a}-file + ${a}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${ae(o(e.paddingXS).mul(2).equal())})`},[`${a}-uploading`]:{[`&${a}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${r}-eye, ${r}-download, ${r}-delete`]:{display:"none"}},[`${a}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${ae(o(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}},[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},SWe=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},wWe=e=>{const{componentCls:t,colorTextDisabled:r}=e;return{[`${t}-wrapper`]:{...on(e),[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:r,cursor:"not-allowed"}}}},xWe=e=>({actionsColor:e.colorIcon,pictureCardSize:e.controlHeightLG*2.55}),EWe=zr("Upload",e=>{const{fontSizeHeading3:t,marginXS:r,lineWidth:n,pictureCardSize:i,calc:o}=e,s=$r(e,{uploadThumbnailSize:o(t).mul(2).equal(),uploadProgressOffset:o(o(r).div(2)).add(n).equal(),uploadPicCardSize:i});return[wWe(s),mWe(s),CWe(s),bWe(s),vWe(s),yWe(s),SWe(s),W4(s)]},xWe);var TWe={icon:function(t,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:r}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"};function jG(){return jG=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,jG({},e,{ref:t,icon:TWe})),PWe=v.forwardRef(RWe);var MWe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};function KG(){return KG=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,KG({},e,{ref:t,icon:MWe})),DWe=v.forwardRef(IWe);var AWe={icon:function(t,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:r}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:r}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:r}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"};function qG(){return qG=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,qG({},e,{ref:t,icon:AWe})),LWe=v.forwardRef(FWe);function CT(e){return{...e,lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e}}function bT(e,t){const r=Pr(t),n=r.findIndex(({uid:i})=>i===e.uid);return n===-1?r.push(e):r[n]=e,r}function M2(e,t){const r=e.uid!==void 0?"uid":"name";return t.filter(n=>n[r]===e[r])[0]}function _We(e,t){const r=e.uid!==void 0?"uid":"name",n=t.filter(i=>i[r]!==e[r]);return n.length===t.length?null:n}const kWe=(e="")=>{const t=e.split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]},she=e=>e.indexOf("image/")===0,OWe=e=>{if(e.type&&!e.thumbUrl)return she(e.type);const t=e.thumbUrl||e.url||"",r=kWe(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(r)?!0:!(/^data:/.test(t)||r)},Sh=200;function NWe(e){return new Promise(t=>{if(!e.type||!she(e.type)){t("");return}const r=document.createElement("canvas");r.width=Sh,r.height=Sh,r.style.cssText=`position: fixed; left: 0; top: 0; width: ${Sh}px; height: ${Sh}px; z-index: 9999; display: none;`,document.body.appendChild(r);const n=r.getContext("2d"),i=new Image;if(i.onload=()=>{const{width:o,height:s}=i;let a=Sh,l=Sh,c=0,u=0;o>s?(l=s*(Sh/o),u=-(l-a)/2):(a=o*(Sh/s),c=-(a-l)/2),n.drawImage(i,c,u,a,l);const d=r.toDataURL();document.body.removeChild(r),window.URL.revokeObjectURL(i.src),t(d)},i.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const o=new FileReader;o.onload=()=>{o.result&&typeof o.result=="string"&&(i.src=o.result)},o.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const o=new FileReader;o.onload=()=>{o.result&&t(o.result)},o.readAsDataURL(e)}else i.src=window.URL.createObjectURL(e)})}var BWe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};function XG(){return XG=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,XG({},e,{ref:t,icon:BWe})),GWe=v.forwardRef($We),VWe=v.forwardRef(({prefixCls:e,className:t,style:r,classNames:n,styles:i,locale:o,listType:s,file:a,items:l,progress:c,iconRender:u,actionIconRender:d,itemRender:h,isImgUrl:p,showPreviewIcon:f,showRemoveIcon:g,showDownloadIcon:m,previewIcon:y,removeIcon:b,downloadIcon:S,extra:x,onPreview:E,onDownload:R,onClose:T},M)=>{var re,ie;const{status:D}=a,[A,I]=v.useState(D);v.useEffect(()=>{D!=="removed"&&I(D)},[D]);const[L,F]=v.useState(!1);v.useEffect(()=>{const de=setTimeout(()=>{F(!0)},300);return()=>{clearTimeout(de)}},[]);const O=u(a);let k=v.createElement("div",{className:`${e}-icon`},O);if(s==="picture"||s==="picture-card"||s==="picture-circle")if(A==="uploading"||!a.thumbUrl&&!a.url){const de=Z(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:A!=="uploading"});k=v.createElement("div",{className:de},O)}else{const de=p!=null&&p(a)?v.createElement("img",{src:a.thumbUrl||a.url,alt:a.name,className:`${e}-list-item-image`,crossOrigin:a.crossOrigin}):O,J=Z(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:p&&!p(a)});k=v.createElement("a",{className:J,onClick:ue=>E(a,ue),href:a.url||a.thumbUrl,target:"_blank",rel:"noopener noreferrer"},de)}const B=Z(`${e}-list-item`,`${e}-list-item-${A}`,n==null?void 0:n.item),H=typeof a.linkProps=="string"?JSON.parse(a.linkProps):a.linkProps,N=(typeof g=="function"?g(a):g)?d((typeof b=="function"?b(a):b)||v.createElement(R6e,null),()=>T(a),e,o.removeFile,!0):null,z=(typeof m=="function"?m(a):m)&&A==="done"?d((typeof S=="function"?S(a):S)||v.createElement(GWe,null),()=>R(a),e,o.downloadFile):null,W=s!=="picture-card"&&s!=="picture-circle"&&v.createElement("span",{key:"download-delete",className:Z(`${e}-list-item-actions`,{picture:s==="picture"})},z,N),V=typeof x=="function"?x(a):x,$=V&&v.createElement("span",{className:`${e}-list-item-extra`},V),K=Z(`${e}-list-item-name`),q=a.url?v.createElement("a",{key:"view",target:"_blank",rel:"noopener noreferrer",className:K,title:a.name,...H,href:a.url,onClick:de=>E(a,de)},a.name,$):v.createElement("span",{key:"view",className:K,onClick:de=>E(a,de),title:a.name},a.name,$),X=(typeof f=="function"?f(a):f)&&(a.url||a.thumbUrl)?v.createElement("a",{href:a.url||a.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:de=>E(a,de),title:o.previewFile},typeof y=="function"?y(a):y||v.createElement(dde,null)):null,Y=(s==="picture-card"||s==="picture-circle")&&A!=="uploading"&&v.createElement("span",{className:`${e}-list-item-actions`},X,A==="done"&&z,N),{getPrefixCls:oe}=v.useContext(ir),ee=oe(),ne=v.createElement("div",{className:B,style:i==null?void 0:i.item},k,q,W,Y,L&&v.createElement(Mu,{motionName:`${ee}-fade`,visible:A==="uploading",motionDeadline:2e3},({className:de})=>{const J="percent"in a?v.createElement(J3e,{type:"line",percent:a.percent,"aria-label":a["aria-label"],"aria-labelledby":a["aria-labelledby"],...c}):null;return v.createElement("div",{className:Z(`${e}-list-item-progress`,de)},J)})),le=a.response&&typeof a.response=="string"?a.response:((re=a.error)==null?void 0:re.statusText)||((ie=a.error)==null?void 0:ie.message)||o.uploadError,he=A==="error"?v.createElement(El,{title:le,getPopupContainer:de=>de.parentNode},ne):ne;return v.createElement("div",{className:Z(`${e}-list-item-container`,t),style:r,ref:M},h?h(he,a,l,{download:R.bind(null,a),preview:E.bind(null,a),remove:T.bind(null,a)}):he)}),zWe=(e,t)=>{const{listType:r="text",previewFile:n=NWe,onPreview:i,onDownload:o,onRemove:s,locale:a,iconRender:l,isImageUrl:c=OWe,prefixCls:u,items:d=[],showPreviewIcon:h=!0,showRemoveIcon:p=!0,showDownloadIcon:f=!1,removeIcon:g,previewIcon:m,downloadIcon:y,extra:b,progress:S={size:[-1,2],showInfo:!1},appendAction:x,appendActionVisible:E=!0,itemRender:R,disabled:T,classNames:M,styles:D}=e,[,A]=$4(),[I,L]=v.useState(!1),F=["picture-card","picture-circle"].includes(r);v.useEffect(()=>{r.startsWith("picture")&&(d||[]).forEach(X=>{!(X.originFileObj instanceof File||X.originFileObj instanceof Blob)||X.thumbUrl!==void 0||(X.thumbUrl="",n==null||n(X.originFileObj).then(Y=>{X.thumbUrl=Y||"",A()}))})},[r,d,n]),v.useEffect(()=>{L(!0)},[]);const O=(X,Y)=>{if(i)return Y==null||Y.preventDefault(),i(X)},k=X=>{typeof o=="function"?o(X):X.url&&window.open(X.url)},B=X=>{s==null||s(X)},H=X=>{if(l)return l(X,r);const Y=X.status==="uploading";if(r.startsWith("picture")){const oe=r==="picture"?v.createElement(rm,null):a.uploading,ee=c!=null&&c(X)?v.createElement(LWe,null):v.createElement(PWe,null);return Y?oe:ee}return Y?v.createElement(rm,null):v.createElement(DWe,null)},N=(X,Y,oe,ee,ne)=>{const le={type:"text",size:"small",title:ee,onClick:he=>{var re,ie;Y(),v.isValidElement(X)&&((ie=(re=X.props).onClick)==null||ie.call(re,he))},className:`${oe}-list-item-action`,disabled:ne?T:!1};return v.isValidElement(X)?v.createElement(ca,{...le,icon:Ei(X,{...X.props,onClick:()=>{}})}):v.createElement(ca,{...le},v.createElement("span",null,X))};v.useImperativeHandle(t,()=>({handlePreview:O,handleDownload:k}));const{getPrefixCls:z}=v.useContext(ir),W=z("upload",u),V=z(),$=Z(`${W}-list`,`${W}-list-${r}`,M==null?void 0:M.list),K=v.useMemo(()=>fn(V4(V),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[V]),q={...F?{}:K,motionDeadline:2e3,motionName:`${W}-${F?"animate-inline":"animate"}`,keys:Pr(d.map(X=>({key:X.uid,file:X}))),motionAppear:I};return v.createElement("div",{className:$,style:D==null?void 0:D.list},v.createElement(KAe,{...q,component:!1},({key:X,file:Y,className:oe,style:ee})=>v.createElement(VWe,{key:X,locale:a,prefixCls:W,className:oe,style:ee,classNames:M,styles:D,file:Y,items:d,progress:S,listType:r,isImgUrl:c,showPreviewIcon:h,showRemoveIcon:p,showDownloadIcon:f,removeIcon:g,previewIcon:m,downloadIcon:y,extra:b,iconRender:H,actionIconRender:N,itemRender:R,onPreview:O,onDownload:k,onClose:B})),x&&v.createElement(Mu,{...q,visible:E,forceRender:!0},({className:X,style:Y})=>Ei(x,oe=>({className:Z(oe.className,X),style:{...Y,pointerEvents:X?"none":void 0,...oe.style}}))))},HWe=v.forwardRef(zWe),aS=`__LIST_IGNORE_${Date.now()}__`,WWe=(e,t)=>{const r=Fr("upload"),{fileList:n,defaultFileList:i,onRemove:o,showUploadList:s=!0,listType:a="text",onPreview:l,onDownload:c,onChange:u,onDrop:d,previewFile:h,disabled:p,locale:f,iconRender:g,isImageUrl:m,progress:y,prefixCls:b,className:S,type:x="select",children:E,style:R,itemRender:T,maxCount:M,data:D={},multiple:A=!1,hasControlInside:I=!0,action:L="",accept:F="",supportServerRender:O=!0,rootClassName:k,styles:B,classNames:H}=e,N=v.useContext(hs),z=p??N,W=e.customRequest||r.customRequest,[V,$]=An(i,n),K=V||[],[q,X]=v.useState("drop"),Y=v.useRef(null),oe=v.useRef(null);v.useMemo(()=>{const _e=Date.now();(n||[]).forEach((qe,Re)=>{!qe.uid&&!Object.isFrozen(qe)&&(qe.uid=`__AUTO__${_e}_${Re}__`)})},[n]);const ee=(_e,qe,Re)=>{let it=Pr(qe),Ve=!1;M===1?it=it.slice(-1):M&&(Ve=it.length>M,it=it.slice(0,M)),$a.flushSync(()=>{$(it)});const ke={file:_e,fileList:it};Re&&(ke.event=Re),(!Ve||_e.status==="removed"||it.some(se=>se.uid===_e.uid))&&$a.flushSync(()=>{u==null||u(ke)})},ne=async(_e,qe)=>{const{beforeUpload:Re}=e;let it=_e;if(Re){const Ve=await Re(_e,qe);if(Ve===!1)return!1;if(delete _e[aS],Ve===aS)return Object.defineProperty(_e,aS,{value:!0,configurable:!0}),!1;typeof Ve=="object"&&Ve&&(it=Ve)}return it},le=_e=>{const qe=_e.filter(Ve=>!Ve.file[aS]);if(!qe.length)return;const Re=qe.map(Ve=>CT(Ve.file));let it=Pr(K);Re.forEach(Ve=>{it=bT(Ve,it)}),Re.forEach((Ve,ke)=>{let se=Ve;if(qe[ke].parsedFile)Ve.status="uploading";else{const{originFileObj:ce}=Ve;let fe;try{fe=new File([ce],ce.name,{type:ce.type})}catch{fe=new Blob([ce],{type:ce.type}),fe.name=ce.name,fe.lastModifiedDate=new Date,fe.lastModified=new Date().getTime()}fe.uid=Ve.uid,se=fe}ee(se,it)})},he=(_e,qe,Re)=>{try{typeof _e=="string"&&(_e=JSON.parse(_e))}catch{}if(!M2(qe,K))return;const it=CT(qe);it.status="done",it.percent=100,it.response=_e,it.xhr=Re;const Ve=bT(it,K);ee(it,Ve)},re=(_e,qe)=>{if(!M2(qe,K))return;const Re=CT(qe);Re.status="uploading",Re.percent=_e.percent;const it=bT(Re,K);ee(Re,it,_e)},ie=(_e,qe,Re)=>{if(!M2(Re,K))return;const it=CT(Re);it.error=_e,it.response=qe,it.status="error";const Ve=bT(it,K);ee(it,Ve)},de=_e=>{let qe;Promise.resolve(typeof o=="function"?o(_e):o).then(Re=>{var Ve;if(Re===!1)return;const it=_We(_e,K);it&&(qe={..._e,status:"removed"},K==null||K.forEach(ke=>{const se=qe.uid!==void 0?"uid":"name";ke[se]===qe[se]&&!Object.isFrozen(ke)&&(ke.status="removed")}),(Ve=Y.current)==null||Ve.abort(qe),ee(qe,it))})},J=_e=>{X(_e.type),_e.type==="drop"&&(d==null||d(_e))};v.useImperativeHandle(t,()=>({onBatchStart:le,onSuccess:he,onProgress:re,onError:ie,fileList:K,upload:Y.current,nativeElement:oe.current}));const{getPrefixCls:ue,direction:ve,className:pe,style:me,classNames:Oe,styles:De}=Fr("upload"),Ee=ue("upload",b),We={...e,listType:a,showUploadList:s,type:x,multiple:A,hasControlInside:I,supportServerRender:O,disabled:z},[ze,mt]=Gr([Oe,H],[De,B],{props:We}),Nt={onBatchStart:le,onError:ie,onProgress:re,onSuccess:he,...e,customRequest:W,data:D,multiple:A,action:L,accept:F,supportServerRender:O,prefixCls:Ee,disabled:z,beforeUpload:ne,onChange:void 0,hasControlInside:I};delete Nt.className,delete Nt.style,(!E||z)&&delete Nt.id;const St=`${Ee}-wrapper`,[Ze,Fe]=EWe(Ee,St),[tt]=Dl("Upload",xl.Upload),{showRemoveIcon:Ne,showPreviewIcon:rt,showDownloadIcon:ot,removeIcon:Ye,previewIcon:Ae,downloadIcon:nt,extra:Et}=typeof s=="boolean"?{}:s,Tt=typeof Ne>"u"?!z:Ne,Ot=(_e,qe)=>s?v.createElement(HWe,{classNames:ze,styles:mt,prefixCls:Ee,listType:a,items:K,previewFile:h,onPreview:l,onDownload:c,onRemove:de,showRemoveIcon:Tt,showPreviewIcon:rt,showDownloadIcon:ot,removeIcon:Ye,previewIcon:Ae,downloadIcon:nt,iconRender:g,extra:Et,locale:{...tt,...f},isImageUrl:m,progress:y,appendAction:_e,appendActionVisible:qe,itemRender:T,disabled:z}):_e,Wt=Z(St,S,k,Ze,Fe,pe,ze.root,{[`${Ee}-rtl`]:ve==="rtl",[`${Ee}-picture-card-wrapper`]:a==="picture-card",[`${Ee}-picture-circle-wrapper`]:a==="picture-circle"}),at={...mt.root},lt={...me,...R};if(x==="drag"){const _e=Z(Ze,Ee,`${Ee}-drag`,{[`${Ee}-drag-uploading`]:K.some(qe=>qe.status==="uploading"),[`${Ee}-drag-hover`]:q==="dragover",[`${Ee}-disabled`]:z,[`${Ee}-rtl`]:ve==="rtl"},ze.trigger);return v.createElement("span",{className:Wt,ref:oe,style:at},v.createElement("div",{className:_e,style:{...lt,...mt.trigger},onDrop:J,onDragOver:J,onDragLeave:J},v.createElement(oY,{...Nt,ref:Y,className:`${Ee}-btn`},v.createElement("div",{className:`${Ee}-drag-container`},E))),Ot())}const Ut=Z(Ee,`${Ee}-select`,{[`${Ee}-disabled`]:z,[`${Ee}-hidden`]:!E},ze.trigger),cr=v.createElement("div",{className:Ut,style:{...lt,...mt.trigger}},v.createElement(oY,{...Nt,ref:Y}));return a==="picture-card"||a==="picture-circle"?v.createElement("span",{className:Wt,ref:oe,style:at},Ot(cr,!!E)):v.createElement("span",{className:Wt,ref:oe,style:at},cr,Ot())},ahe=v.forwardRef(WWe),UWe=v.forwardRef((e,t)=>{const{style:r,height:n,hasControlInside:i=!1,children:o,...s}=e,a={...r,height:n};return v.createElement(ahe,{ref:t,hasControlInside:i,...s,style:a,type:"drag"},o)}),lhe=ahe;lhe.Dragger=UWe;lhe.LIST_IGNORE=aS;var jWe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"};function YG(){return YG=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,YG({},e,{ref:t,icon:jWe})),a$t=v.forwardRef(KWe);var qWe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};function ZG(){return ZG=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,ZG({},e,{ref:t,icon:qWe})),l$t=v.forwardRef(XWe);var YWe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"};function QG(){return QG=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,QG({},e,{ref:t,icon:YWe})),c$t=v.forwardRef(ZWe);var QWe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z"}}]},name:"bulb",theme:"outlined"};function JG(){return JG=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,JG({},e,{ref:t,icon:QWe})),u$t=v.forwardRef(JWe);var e8e={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 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"};function eV(){return eV=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,eV({},e,{ref:t,icon:e8e})),d$t=v.forwardRef(t8e);var r8e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 128c-212.1 0-384 171.9-384 384v360c0 13.3 10.7 24 24 24h184c35.3 0 64-28.7 64-64V624c0-35.3-28.7-64-64-64H200v-48c0-172.3 139.7-312 312-312s312 139.7 312 312v48H688c-35.3 0-64 28.7-64 64v208c0 35.3 28.7 64 64 64h184c13.3 0 24-10.7 24-24V512c0-212.1-171.9-384-384-384zM328 632v192H200V632h128zm496 192H696V632h128v192z"}}]},name:"customer-service",theme:"outlined"};function tV(){return tV=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,tV({},e,{ref:t,icon:r8e})),h$t=v.forwardRef(n8e);var i8e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"};function rV(){return rV=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,rV({},e,{ref:t,icon:i8e})),p$t=v.forwardRef(o8e);var s8e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311h-.3v428h472.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM112 528v364c0 17.7 14.3 32 32 32h65V496h-65c-17.7 0-32 14.3-32 32z"}}]},name:"like",theme:"filled"};function nV(){return nV=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,nV({},e,{ref:t,icon:s8e})),f$t=v.forwardRef(a8e);var l8e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.3 338.4a447.57 447.57 0 00-96.1-143.3 443.09 443.09 0 00-143-96.3A443.91 443.91 0 00512 64h-2c-60.5.3-119 12.3-174.1 35.9a444.08 444.08 0 00-141.7 96.5 445 445 0 00-95 142.8A449.89 449.89 0 0065 514.1c.3 69.4 16.9 138.3 47.9 199.9v152c0 25.4 20.6 46 45.9 46h151.8a447.72 447.72 0 00199.5 48h2.1c59.8 0 117.7-11.6 172.3-34.3A443.2 443.2 0 00827 830.5c41.2-40.9 73.6-88.7 96.3-142 23.5-55.2 35.5-113.9 35.8-174.5.2-60.9-11.6-120-34.8-175.6zM312.4 560c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.4 48-47.9 48zm199.6 0c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.5 48-47.9 48zm199.6 0c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.5 48-47.9 48z"}}]},name:"message",theme:"filled"};function iV(){return iV=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,iV({},e,{ref:t,icon:l8e})),g$t=v.forwardRef(c8e);var u8e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"}}]},name:"send",theme:"outlined"};function oV(){return oV=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,oV({},e,{ref:t,icon:u8e})),m$t=v.forwardRef(d8e);var h8e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"};function sV(){return sV=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,sV({},e,{ref:t,icon:h8e})),v$t=v.forwardRef(p8e);var f8e={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"};function aV(){return aV=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(mr,aV({},e,{ref:t,icon:f8e})),y$t=v.forwardRef(g8e),m8e=e=>{const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),t},v8e=(e,t=100,r=!1)=>{const n=m8e(e),i=v.useRef(),o=[t,r,n];function s(){i.current&&clearTimeout(i.current),i.current=void 0}v.useEffect(()=>s,o);function a(){i.current=void 0}return v.useCallback(function(){const l=arguments,{current:c}=i;if(c===void 0&&r)return i.current=setTimeout(a,t),n.current.apply(null,l);c&&clearTimeout(c),i.current=setTimeout(()=>{i.current=void 0,n.current.apply(null,l)},t)},o)},C$t=(e,t,r)=>{const n=v.useState(e);return[n[0],v8e(n[1],t,r),n[1]]},y8e="modulepreload",C8e=function(e){return"/"+e},sY={},b8e=function(t,r,n){let i=Promise.resolve();if(r&&r.length>0){let s=function(c){return Promise.all(c.map(u=>Promise.resolve(u).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));i=s(r.map(c=>{if(c=C8e(c),c in sY)return;sY[c]=!0;const u=c.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${d}`))return;const h=document.createElement("link");if(h.rel=u?"stylesheet":y8e,u||(h.as="script"),h.crossOrigin="",h.href=c,l&&h.setAttribute("nonce",l),document.head.appendChild(h),u)return new Promise((p,f)=>{h.addEventListener("load",p),h.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return i.then(s=>{for(const a of s||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})};var $S=(e=>(e.DEV="dev",e.STAGE="stage",e.PROD="prod",e))($S||{});const wa={code:"code",error:"error",state:"state",clientId:"client_id",audience:"audience",prompt:"prompt",redirectUri:"redirect_uri",scope:"scope",responseType:"response_type",codeChallengeMethod:"code_challenge_method",codeChallenge:"code_challenge",phone:"phone"},S8e={consent:"consent"},w8e={code:"code"},x8e={S256:"S256"};function che(e,t){return function(){return e.apply(t,arguments)}}const{toString:E8e}=Object.prototype,{getPrototypeOf:qH}=Object,{iterator:pA,toStringTag:uhe}=Symbol,fA=(e=>t=>{const r=E8e.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Ec=e=>(e=e.toLowerCase(),t=>fA(t)===e),gA=e=>t=>typeof t===e,{isArray:zC}=Array,qy=gA("undefined");function i1(e){return e!==null&&!qy(e)&&e.constructor!==null&&!qy(e.constructor)&&ra(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const dhe=Ec("ArrayBuffer");function T8e(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&dhe(e.buffer),t}const R8e=gA("string"),ra=gA("function"),hhe=gA("number"),o1=e=>e!==null&&typeof e=="object",P8e=e=>e===!0||e===!1,CP=e=>{if(fA(e)!=="object")return!1;const t=qH(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(uhe in e)&&!(pA in e)},M8e=e=>{if(!o1(e)||i1(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},I8e=Ec("Date"),D8e=Ec("File"),A8e=Ec("Blob"),F8e=Ec("FileList"),L8e=e=>o1(e)&&ra(e.pipe),_8e=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ra(e.append)&&((t=fA(e))==="formdata"||t==="object"&&ra(e.toString)&&e.toString()==="[object FormData]"))},k8e=Ec("URLSearchParams"),[O8e,N8e,B8e,$8e]=["ReadableStream","Request","Response","Headers"].map(Ec),G8e=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function s1(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),zC(e))for(n=0,i=e.length;n0;)if(i=r[n],t===i.toLowerCase())return i;return null}const Sg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,fhe=e=>!qy(e)&&e!==Sg;function lV(){const{caseless:e,skipUndefined:t}=fhe(this)&&this||{},r={},n=(i,o)=>{const s=e&&phe(r,o)||o;CP(r[s])&&CP(i)?r[s]=lV(r[s],i):CP(i)?r[s]=lV({},i):zC(i)?r[s]=i.slice():(!t||!qy(i))&&(r[s]=i)};for(let i=0,o=arguments.length;i(s1(t,(i,o)=>{r&&ra(i)?e[o]=che(i,r):e[o]=i},{allOwnKeys:n}),e),z8e=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),H8e=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},W8e=(e,t,r,n)=>{let i,o,s;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!n||n(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=r!==!1&&qH(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},U8e=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},j8e=e=>{if(!e)return null;if(zC(e))return e;let t=e.length;if(!hhe(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},K8e=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&qH(Uint8Array)),q8e=(e,t)=>{const n=(e&&e[pA]).call(e);let i;for(;(i=n.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},X8e=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Y8e=Ec("HTMLFormElement"),Z8e=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),aY=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Q8e=Ec("RegExp"),ghe=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};s1(r,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(n[o]=s||i)}),Object.defineProperties(e,n)},J8e=e=>{ghe(e,(t,r)=>{if(ra(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(ra(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},e7e=(e,t)=>{const r={},n=i=>{i.forEach(o=>{r[o]=!0})};return zC(e)?n(e):n(String(e).split(t)),r},t7e=()=>{},r7e=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function n7e(e){return!!(e&&ra(e.append)&&e[uhe]==="FormData"&&e[pA])}const i7e=e=>{const t=new Array(10),r=(n,i)=>{if(o1(n)){if(t.indexOf(n)>=0)return;if(i1(n))return n;if(!("toJSON"in n)){t[i]=n;const o=zC(n)?[]:{};return s1(n,(s,a)=>{const l=r(s,i+1);!qy(l)&&(o[a]=l)}),t[i]=void 0,o}}return n};return r(e,0)},o7e=Ec("AsyncFunction"),s7e=e=>e&&(o1(e)||ra(e))&&ra(e.then)&&ra(e.catch),mhe=((e,t)=>e?setImmediate:t?((r,n)=>(Sg.addEventListener("message",({source:i,data:o})=>{i===Sg&&o===r&&n.length&&n.shift()()},!1),i=>{n.push(i),Sg.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",ra(Sg.postMessage)),a7e=typeof queueMicrotask<"u"?queueMicrotask.bind(Sg):typeof process<"u"&&process.nextTick||mhe,l7e=e=>e!=null&&ra(e[pA]),Ke={isArray:zC,isArrayBuffer:dhe,isBuffer:i1,isFormData:_8e,isArrayBufferView:T8e,isString:R8e,isNumber:hhe,isBoolean:P8e,isObject:o1,isPlainObject:CP,isEmptyObject:M8e,isReadableStream:O8e,isRequest:N8e,isResponse:B8e,isHeaders:$8e,isUndefined:qy,isDate:I8e,isFile:D8e,isBlob:A8e,isRegExp:Q8e,isFunction:ra,isStream:L8e,isURLSearchParams:k8e,isTypedArray:K8e,isFileList:F8e,forEach:s1,merge:lV,extend:V8e,trim:G8e,stripBOM:z8e,inherits:H8e,toFlatObject:W8e,kindOf:fA,kindOfTest:Ec,endsWith:U8e,toArray:j8e,forEachEntry:q8e,matchAll:X8e,isHTMLForm:Y8e,hasOwnProperty:aY,hasOwnProp:aY,reduceDescriptors:ghe,freezeMethods:J8e,toObjectSet:e7e,toCamelCase:Z8e,noop:t7e,toFiniteNumber:r7e,findKey:phe,global:Sg,isContextDefined:fhe,isSpecCompliantForm:n7e,toJSONObject:i7e,isAsyncFn:o7e,isThenable:s7e,setImmediate:mhe,asap:a7e,isIterable:l7e};function Xr(e,t,r,n,i){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),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}Ke.inherits(Xr,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:Ke.toJSONObject(this.config),code:this.code,status:this.status}}});const vhe=Xr.prototype,yhe={};["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=>{yhe[e]={value:e}});Object.defineProperties(Xr,yhe);Object.defineProperty(vhe,"isAxiosError",{value:!0});Xr.from=(e,t,r,n,i,o)=>{const s=Object.create(vhe);Ke.toFlatObject(e,s,function(u){return u!==Error.prototype},c=>c!=="isAxiosError");const a=e&&e.message?e.message:"Error",l=t==null&&e?e.code:t;return Xr.call(s,a,l,r,n,i),e&&s.cause==null&&Object.defineProperty(s,"cause",{value:e,configurable:!0}),s.name=e&&e.name||"Error",o&&Object.assign(s,o),s};const c7e=null;function cV(e){return Ke.isPlainObject(e)||Ke.isArray(e)}function Che(e){return Ke.endsWith(e,"[]")?e.slice(0,-2):e}function lY(e,t,r){return e?e.concat(t).map(function(i,o){return i=Che(i),!r&&o?"["+i+"]":i}).join(r?".":""):t}function u7e(e){return Ke.isArray(e)&&!e.some(cV)}const d7e=Ke.toFlatObject(Ke,{},null,function(t){return/^is[A-Z]/.test(t)});function mA(e,t,r){if(!Ke.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=Ke.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,m){return!Ke.isUndefined(m[g])});const n=r.metaTokens,i=r.visitor||u,o=r.dots,s=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&Ke.isSpecCompliantForm(t);if(!Ke.isFunction(i))throw new TypeError("visitor must be a function");function c(f){if(f===null)return"";if(Ke.isDate(f))return f.toISOString();if(Ke.isBoolean(f))return f.toString();if(!l&&Ke.isBlob(f))throw new Xr("Blob is not supported. Use a Buffer instead.");return Ke.isArrayBuffer(f)||Ke.isTypedArray(f)?l&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function u(f,g,m){let y=f;if(f&&!m&&typeof f=="object"){if(Ke.endsWith(g,"{}"))g=n?g:g.slice(0,-2),f=JSON.stringify(f);else if(Ke.isArray(f)&&u7e(f)||(Ke.isFileList(f)||Ke.endsWith(g,"[]"))&&(y=Ke.toArray(f)))return g=Che(g),y.forEach(function(S,x){!(Ke.isUndefined(S)||S===null)&&t.append(s===!0?lY([g],x,o):s===null?g:g+"[]",c(S))}),!1}return cV(f)?!0:(t.append(lY(m,g,o),c(f)),!1)}const d=[],h=Object.assign(d7e,{defaultVisitor:u,convertValue:c,isVisitable:cV});function p(f,g){if(!Ke.isUndefined(f)){if(d.indexOf(f)!==-1)throw Error("Circular reference detected in "+g.join("."));d.push(f),Ke.forEach(f,function(y,b){(!(Ke.isUndefined(y)||y===null)&&i.call(t,y,Ke.isString(b)?b.trim():b,g,h))===!0&&p(y,g?g.concat(b):[b])}),d.pop()}}if(!Ke.isObject(e))throw new TypeError("data must be an object");return p(e),t}function cY(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function XH(e,t){this._pairs=[],e&&mA(e,this,t)}const bhe=XH.prototype;bhe.append=function(t,r){this._pairs.push([t,r])};bhe.toString=function(t){const r=t?function(n){return t.call(this,n,cY)}:cY;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function h7e(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function She(e,t,r){if(!t)return e;const n=r&&r.encode||h7e;Ke.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let o;if(i?o=i(t,r):o=Ke.isURLSearchParams(t)?t.toString():new XH(t,r).toString(n),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class uY{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Ke.forEach(this.handlers,function(n){n!==null&&t(n)})}}const whe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},p7e=typeof URLSearchParams<"u"?URLSearchParams:XH,f7e=typeof FormData<"u"?FormData:null,g7e=typeof Blob<"u"?Blob:null,m7e={isBrowser:!0,classes:{URLSearchParams:p7e,FormData:f7e,Blob:g7e},protocols:["http","https","file","blob","url","data"]},YH=typeof window<"u"&&typeof document<"u",uV=typeof navigator=="object"&&navigator||void 0,v7e=YH&&(!uV||["ReactNative","NativeScript","NS"].indexOf(uV.product)<0),y7e=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",C7e=YH&&window.location.href||"http://localhost",b7e=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:YH,hasStandardBrowserEnv:v7e,hasStandardBrowserWebWorkerEnv:y7e,navigator:uV,origin:C7e},Symbol.toStringTag,{value:"Module"})),as={...b7e,...m7e};function S7e(e,t){return mA(e,new as.classes.URLSearchParams,{visitor:function(r,n,i,o){return as.isNode&&Ke.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function w7e(e){return Ke.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function x7e(e){const t={},r=Object.keys(e);let n;const i=r.length;let o;for(n=0;n=r.length;return s=!s&&Ke.isArray(i)?i.length:s,l?(Ke.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!a):((!i[s]||!Ke.isObject(i[s]))&&(i[s]=[]),t(r,n,i[s],o)&&Ke.isArray(i[s])&&(i[s]=x7e(i[s])),!a)}if(Ke.isFormData(e)&&Ke.isFunction(e.entries)){const r={};return Ke.forEachEntry(e,(n,i)=>{t(w7e(n),i,r,0)}),r}return null}function E7e(e,t,r){if(Ke.isString(e))try{return(t||JSON.parse)(e),Ke.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const a1={transitional:whe,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,o=Ke.isObject(t);if(o&&Ke.isHTMLForm(t)&&(t=new FormData(t)),Ke.isFormData(t))return i?JSON.stringify(xhe(t)):t;if(Ke.isArrayBuffer(t)||Ke.isBuffer(t)||Ke.isStream(t)||Ke.isFile(t)||Ke.isBlob(t)||Ke.isReadableStream(t))return t;if(Ke.isArrayBufferView(t))return t.buffer;if(Ke.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return S7e(t,this.formSerializer).toString();if((a=Ke.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return mA(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(r.setContentType("application/json",!1),E7e(t)):t}],transformResponse:[function(t){const r=this.transitional||a1.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if(Ke.isResponse(t)||Ke.isReadableStream(t))return t;if(t&&Ke.isString(t)&&(n&&!this.responseType||i)){const s=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(a){if(s)throw a.name==="SyntaxError"?Xr.from(a,Xr.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:as.classes.FormData,Blob:as.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ke.forEach(["delete","get","head","post","put","patch"],e=>{a1.headers[e]={}});const T7e=Ke.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"]),R7e=e=>{const t={};let r,n,i;return e&&e.split(` `).forEach(function(s){i=s.indexOf(":"),r=s.substring(0,i).trim().toLowerCase(),n=s.substring(i+1).trim(),!(!r||t[r]&&T7e[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},dY=Symbol("internals");function u0(e){return e&&String(e).trim().toLowerCase()}function bP(e){return e===!1||e==null?e:Ke.isArray(e)?e.map(bP):String(e)}function P7e(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const M7e=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function I2(e,t,r,n,i){if(Ke.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!Ke.isString(t)){if(Ke.isString(n))return t.indexOf(n)!==-1;if(Ke.isRegExp(n))return n.test(t)}}function I7e(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function D7e(e,t){const r=Ke.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,o,s){return this[n].call(this,t,i,o,s)},configurable:!0})})}let na=class{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function o(a,l,c){const u=u0(l);if(!u)throw new Error("header name must be a non-empty string");const d=Ke.findKey(i,u);(!d||i[d]===void 0||c===!0||c===void 0&&i[d]!==!1)&&(i[d||l]=bP(a))}const s=(a,l)=>Ke.forEach(a,(c,u)=>o(c,u,l));if(Ke.isPlainObject(t)||t instanceof this.constructor)s(t,r);else if(Ke.isString(t)&&(t=t.trim())&&!M7e(t))s(R7e(t),r);else if(Ke.isObject(t)&&Ke.isIterable(t)){let a={},l,c;for(const u of t){if(!Ke.isArray(u))throw TypeError("Object iterator must return a key-value pair");a[c=u[0]]=(l=a[c])?Ke.isArray(l)?[...l,u[1]]:[l,u[1]]:u[1]}s(a,r)}else t!=null&&o(r,t,n);return this}get(t,r){if(t=u0(t),t){const n=Ke.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return P7e(i);if(Ke.isFunction(r))return r.call(this,i,n);if(Ke.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=u0(t),t){const n=Ke.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||I2(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function o(s){if(s=u0(s),s){const a=Ke.findKey(n,s);a&&(!r||I2(n,n[a],a,r))&&(delete n[a],i=!0)}}return Ke.isArray(t)?t.forEach(o):o(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const o=r[n];(!t||I2(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const r=this,n={};return Ke.forEach(this,(i,o)=>{const s=Ke.findKey(n,o);if(s){r[s]=bP(i),delete r[o];return}const a=t?I7e(o):String(o).trim();a!==o&&delete r[o],r[a]=bP(i),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return Ke.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&Ke.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(` `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(i=>n.set(i)),n}static accessor(t){const n=(this[dY]=this[dY]={accessors:{}}).accessors,i=this.prototype;function o(s){const a=u0(s);n[a]||(D7e(i,s),n[a]=!0)}return Ke.isArray(t)?t.forEach(o):o(t),this}};na.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ke.reduceDescriptors(na.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});Ke.freezeMethods(na);function D2(e,t){const r=this||a1,n=t||r,i=na.from(n.headers);let o=n.data;return Ke.forEach(e,function(a){o=a.call(r,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function Ehe(e){return!!(e&&e.__CANCEL__)}function HC(e,t,r){Xr.call(this,e??"canceled",Xr.ERR_CANCELED,t,r),this.name="CanceledError"}Ke.inherits(HC,Xr,{__CANCEL__:!0});function The(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Xr("Request failed with status code "+r.status,[Xr.ERR_BAD_REQUEST,Xr.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function A7e(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function F7e(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=n[o];s||(s=c),r[i]=l,n[i]=c;let d=o,h=0;for(;d!==i;)h+=r[d++],d=d%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-s{r=u,i=null,o&&(clearTimeout(o),o=null),e(...c)};return[(...c)=>{const u=Date.now(),d=u-r;d>=n?s(c,u):(i=c,o||(o=setTimeout(()=>{o=null,s(i)},n-d)))},()=>i&&s(i)]}const NM=(e,t,r=3)=>{let n=0;const i=F7e(50,250);return L7e(o=>{const s=o.loaded,a=o.lengthComputable?o.total:void 0,l=s-n,c=i(l),u=s<=a;n=s;const d={loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&u?(a-s)/c:void 0,event:o,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(d)},r)},hY=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},pY=e=>(...t)=>Ke.asap(()=>e(...t)),_7e=as.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,as.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(as.origin),as.navigator&&/(msie|trident)/i.test(as.navigator.userAgent)):()=>!0,k7e=as.hasStandardBrowserEnv?{write(e,t,r,n,i,o,s){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];Ke.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),Ke.isString(n)&&a.push(`path=${n}`),Ke.isString(i)&&a.push(`domain=${i}`),o===!0&&a.push("secure"),Ke.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function O7e(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function N7e(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Rhe(e,t,r){let n=!O7e(t);return e&&(n||r==!1)?N7e(e,t):t}const fY=e=>e instanceof na?{...e}:e;function im(e,t){t=t||{};const r={};function n(c,u,d,h){return Ke.isPlainObject(c)&&Ke.isPlainObject(u)?Ke.merge.call({caseless:h},c,u):Ke.isPlainObject(u)?Ke.merge({},u):Ke.isArray(u)?u.slice():u}function i(c,u,d,h){if(Ke.isUndefined(u)){if(!Ke.isUndefined(c))return n(void 0,c,d,h)}else return n(c,u,d,h)}function o(c,u){if(!Ke.isUndefined(u))return n(void 0,u)}function s(c,u){if(Ke.isUndefined(u)){if(!Ke.isUndefined(c))return n(void 0,c)}else return n(void 0,u)}function a(c,u,d){if(d in t)return n(c,u);if(d in e)return n(void 0,c)}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(c,u,d)=>i(fY(c),fY(u),d,!0)};return Ke.forEach(Object.keys({...e,...t}),function(u){const d=l[u]||i,h=d(e[u],t[u],u);Ke.isUndefined(h)&&d!==a||(r[u]=h)}),r}const Phe=e=>{const t=im({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:o,headers:s,auth:a}=t;if(t.headers=s=na.from(s),t.url=She(Rhe(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),Ke.isFormData(r)){if(as.hasStandardBrowserEnv||as.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(Ke.isFunction(r.getHeaders)){const l=r.getHeaders(),c=["content-type","content-length"];Object.entries(l).forEach(([u,d])=>{c.includes(u.toLowerCase())&&s.set(u,d)})}}if(as.hasStandardBrowserEnv&&(n&&Ke.isFunction(n)&&(n=n(t)),n||n!==!1&&_7e(t.url))){const l=i&&o&&k7e.read(o);l&&s.set(i,l)}return t},B7e=typeof XMLHttpRequest<"u",$7e=B7e&&function(e){return new Promise(function(r,n){const i=Phe(e);let o=i.data;const s=na.from(i.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=i,u,d,h,p,f;function g(){p&&p(),f&&f(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let m=new XMLHttpRequest;m.open(i.method.toUpperCase(),i.url,!0),m.timeout=i.timeout;function y(){if(!m)return;const S=na.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),E={data:!a||a==="text"||a==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:S,config:e,request:m};The(function(T){r(T),g()},function(T){n(T),g()},E),m=null}"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(y)},m.onabort=function(){m&&(n(new Xr("Request aborted",Xr.ECONNABORTED,e,m)),m=null)},m.onerror=function(x){const E=x&&x.message?x.message:"Network Error",R=new Xr(E,Xr.ERR_NETWORK,e,m);R.event=x||null,n(R),m=null},m.ontimeout=function(){let x=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const E=i.transitional||whe;i.timeoutErrorMessage&&(x=i.timeoutErrorMessage),n(new Xr(x,E.clarifyTimeoutError?Xr.ETIMEDOUT:Xr.ECONNABORTED,e,m)),m=null},o===void 0&&s.setContentType(null),"setRequestHeader"in m&&Ke.forEach(s.toJSON(),function(x,E){m.setRequestHeader(E,x)}),Ke.isUndefined(i.withCredentials)||(m.withCredentials=!!i.withCredentials),a&&a!=="json"&&(m.responseType=i.responseType),c&&([h,f]=NM(c,!0),m.addEventListener("progress",h)),l&&m.upload&&([d,p]=NM(l),m.upload.addEventListener("progress",d),m.upload.addEventListener("loadend",p)),(i.cancelToken||i.signal)&&(u=S=>{m&&(n(!S||S.type?new HC(null,e,m):S),m.abort(),m=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const b=A7e(i.url);if(b&&as.protocols.indexOf(b)===-1){n(new Xr("Unsupported protocol "+b+":",Xr.ERR_BAD_REQUEST,e));return}m.send(o||null)})},G7e=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,i;const o=function(c){if(!i){i=!0,a();const u=c instanceof Error?c:this.reason;n.abort(u instanceof Xr?u:new HC(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{s=null,o(new Xr(`timeout ${t} of ms exceeded`,Xr.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o));const{signal:l}=n;return l.unsubscribe=()=>Ke.asap(a),l}},V7e=function*(e,t){let r=e.byteLength;if(r{const i=z7e(e,t);let o=0,s,a=l=>{s||(s=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await i.next();if(c){a(),l.close();return}let d=u.byteLength;if(r){let h=o+=d;r(h)}l.enqueue(new Uint8Array(u))}catch(c){throw a(c),c}},cancel(l){return a(l),i.return()}},{highWaterMark:2})},mY=64*1024,{isFunction:ST}=Ke,W7e=(({Request:e,Response:t})=>({Request:e,Response:t}))(Ke.global),{ReadableStream:vY,TextEncoder:yY}=Ke.global,CY=(e,...t)=>{try{return!!e(...t)}catch{return!1}},U7e=e=>{e=Ke.merge.call({skipUndefined:!0},W7e,e);const{fetch:t,Request:r,Response:n}=e,i=t?ST(t):typeof fetch=="function",o=ST(r),s=ST(n);if(!i)return!1;const a=i&&ST(vY),l=i&&(typeof yY=="function"?(f=>g=>f.encode(g))(new yY):async f=>new Uint8Array(await new r(f).arrayBuffer())),c=o&&a&&CY(()=>{let f=!1;const g=new r(as.origin,{body:new vY,method:"POST",get duplex(){return f=!0,"half"}}).headers.has("Content-Type");return f&&!g}),u=s&&a&&CY(()=>Ke.isReadableStream(new n("").body)),d={stream:u&&(f=>f.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(f=>{!d[f]&&(d[f]=(g,m)=>{let y=g&&g[f];if(y)return y.call(g);throw new Xr(`Response type '${f}' is not supported`,Xr.ERR_NOT_SUPPORT,m)})});const h=async f=>{if(f==null)return 0;if(Ke.isBlob(f))return f.size;if(Ke.isSpecCompliantForm(f))return(await new r(as.origin,{method:"POST",body:f}).arrayBuffer()).byteLength;if(Ke.isArrayBufferView(f)||Ke.isArrayBuffer(f))return f.byteLength;if(Ke.isURLSearchParams(f)&&(f=f+""),Ke.isString(f))return(await l(f)).byteLength},p=async(f,g)=>{const m=Ke.toFiniteNumber(f.getContentLength());return m??h(g)};return async f=>{let{url:g,method:m,data:y,signal:b,cancelToken:S,timeout:x,onDownloadProgress:E,onUploadProgress:R,responseType:T,headers:M,withCredentials:D="same-origin",fetchOptions:A}=Phe(f),I=t||fetch;T=T?(T+"").toLowerCase():"text";let L=G7e([b,S&&S.toAbortSignal()],x),F=null;const O=L&&L.unsubscribe&&(()=>{L.unsubscribe()});let k;try{if(R&&c&&m!=="get"&&m!=="head"&&(k=await p(M,y))!==0){let V=new r(g,{method:"POST",body:y,duplex:"half"}),$;if(Ke.isFormData(y)&&($=V.headers.get("content-type"))&&M.setContentType($),V.body){const[K,q]=hY(k,NM(pY(R)));y=gY(V.body,mY,K,q)}}Ke.isString(D)||(D=D?"include":"omit");const B=o&&"credentials"in r.prototype,H={...A,signal:L,method:m.toUpperCase(),headers:M.normalize().toJSON(),body:y,duplex:"half",credentials:B?D:void 0};F=o&&new r(g,H);let N=await(o?I(F,A):I(g,H));const z=u&&(T==="stream"||T==="response");if(u&&(E||z&&O)){const V={};["status","statusText","headers"].forEach(X=>{V[X]=N[X]});const $=Ke.toFiniteNumber(N.headers.get("content-length")),[K,q]=E&&hY($,NM(pY(E),!0))||[];N=new n(gY(N.body,mY,K,()=>{q&&q(),O&&O()}),V)}T=T||"text";let W=await d[Ke.findKey(d,T)||"text"](N,f);return!z&&O&&O(),await new Promise((V,$)=>{The(V,$,{data:W,headers:na.from(N.headers),status:N.status,statusText:N.statusText,config:f,request:F})})}catch(B){throw O&&O(),B&&B.name==="TypeError"&&/Load failed|fetch/i.test(B.message)?Object.assign(new Xr("Network Error",Xr.ERR_NETWORK,f,F),{cause:B.cause||B}):Xr.from(B,B&&B.code,f,F)}}},j7e=new Map,Mhe=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:i}=t,o=[n,i,r];let s=o.length,a=s,l,c,u=j7e;for(;a--;)l=o[a],c=u.get(l),c===void 0&&u.set(l,c=a?new Map:U7e(t)),u=c;return c};Mhe();const ZH={http:c7e,xhr:$7e,fetch:{get:Mhe}};Ke.forEach(ZH,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const bY=e=>`- ${e}`,K7e=e=>Ke.isFunction(e)||e===null||e===!1;function q7e(e,t){e=Ke.isArray(e)?e:[e];const{length:r}=e;let n,i;const o={};for(let s=0;s`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=r?s.length>1?`since : `+s.map(bY).join(` `):" "+bY(s[0]):"as no adapter specified";throw new Xr("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return i}const Ihe={getAdapter:q7e,adapters:ZH};function A2(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new HC(null,e)}function SY(e){return A2(e),e.headers=na.from(e.headers),e.data=D2.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ihe.getAdapter(e.adapter||a1.adapter,e)(e).then(function(n){return A2(e),n.data=D2.call(e,e.transformResponse,n),n.headers=na.from(n.headers),n},function(n){return Ehe(n)||(A2(e),n&&n.response&&(n.response.data=D2.call(e,e.transformResponse,n.response),n.response.headers=na.from(n.response.headers))),Promise.reject(n)})}const Dhe="1.13.2",vA={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{vA[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const wY={};vA.transitional=function(t,r,n){function i(o,s){return"[Axios v"+Dhe+"] Transitional option '"+o+"'"+s+(n?". "+n:"")}return(o,s,a)=>{if(t===!1)throw new Xr(i(s," has been removed"+(r?" in "+r:"")),Xr.ERR_DEPRECATED);return r&&!wY[s]&&(wY[s]=!0,console.warn(i(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,s,a):!0}};vA.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function X7e(e,t,r){if(typeof e!="object")throw new Xr("options must be an object",Xr.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const o=n[i],s=t[o];if(s){const a=e[o],l=a===void 0||s(a,o,e);if(l!==!0)throw new Xr("option "+o+" must be "+l,Xr.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Xr("Unknown option "+o,Xr.ERR_BAD_OPTION)}}const SP={assertOptions:X7e,validators:vA},kc=SP.validators;let Ng=class{constructor(t){this.defaults=t||{},this.interceptors={request:new uY,response:new uY}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?o&&!String(n.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(n.stack+=` `+o):n.stack=o}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=im(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:o}=r;n!==void 0&&SP.assertOptions(n,{silentJSONParsing:kc.transitional(kc.boolean),forcedJSONParsing:kc.transitional(kc.boolean),clarifyTimeoutError:kc.transitional(kc.boolean)},!1),i!=null&&(Ke.isFunction(i)?r.paramsSerializer={serialize:i}:SP.assertOptions(i,{encode:kc.function,serialize:kc.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),SP.assertOptions(r,{baseUrl:kc.spelling("baseURL"),withXsrfToken:kc.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=o&&Ke.merge(o.common,o[r.method]);o&&Ke.forEach(["delete","get","head","post","put","patch","common"],f=>{delete o[f]}),r.headers=na.concat(s,o);const a=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(r)===!1||(l=l&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let u,d=0,h;if(!l){const f=[SY.bind(this),void 0];for(f.unshift(...a),f.push(...c),h=f.length,u=Promise.resolve(r);d{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](i);n._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(a=>{n.subscribe(a),o=a}).then(i);return s.cancel=function(){n.unsubscribe(o)},s},t(function(o,s,a){n.reason||(n.reason=new HC(o,s,a),r(n.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 r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Ahe(function(i){t=i}),cancel:t}}};function Z7e(e){return function(r){return e.apply(null,r)}}function Q7e(e){return Ke.isObject(e)&&e.isAxiosError===!0}const dV={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(dV).forEach(([e,t])=>{dV[t]=e});function Fhe(e){const t=new Ng(e),r=che(Ng.prototype.request,t);return Ke.extend(r,Ng.prototype,t,{allOwnKeys:!0}),Ke.extend(r,t,null,{allOwnKeys:!0}),r.create=function(i){return Fhe(im(e,i))},r}const _i=Fhe(a1);_i.Axios=Ng;_i.CanceledError=HC;_i.CancelToken=Y7e;_i.isCancel=Ehe;_i.VERSION=Dhe;_i.toFormData=mA;_i.AxiosError=Xr;_i.Cancel=_i.CanceledError;_i.all=function(t){return Promise.all(t)};_i.spread=Z7e;_i.isAxiosError=Q7e;_i.mergeConfig=im;_i.AxiosHeaders=na;_i.formToJSON=e=>xhe(Ke.isHTMLForm(e)?new FormData(e):e);_i.getAdapter=Ihe.getAdapter;_i.HttpStatusCode=dV;_i.default=_i;const{Axios:w$t,AxiosError:x$t,CanceledError:E$t,isCancel:T$t,CancelToken:R$t,VERSION:P$t,all:M$t,Cancel:I$t,isAxiosError:D$t,spread:A$t,toFormData:F$t,AxiosHeaders:L$t,HttpStatusCode:_$t,formToJSON:k$t,getAdapter:O$t,mergeConfig:N$t}=_i;class lS extends Error{}lS.prototype.name="InvalidTokenError";function J7e(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function e9e(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return J7e(t)}catch{return atob(t)}}function t9e(e,t){if(typeof e!="string")throw new lS("Invalid token specified: must be a string");t||(t={});const r=t.header===!0?0:1,n=e.split(".")[r];if(typeof n!="string")throw new lS(`Invalid token specified: missing part #${r+1}`);let i;try{i=e9e(n)}catch(o){throw new lS(`Invalid token specified: invalid base64 for part #${r+1} (${o.message})`)}try{return JSON.parse(i)}catch(o){throw new lS(`Invalid token specified: invalid json for part #${r+1} (${o.message})`)}}/*! js-cookie v3.0.5 | MIT */function wT(e){for(var t=1;t"u")){s=wT({},t,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var l in s)s[l]&&(a+="; "+l,s[l]!==!0&&(a+="="+s[l].split(";")[0]));return document.cookie=i+"="+e.write(o,i)+a}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],s={},a=0;an9e.get(e)},i9e="refresh_token",o9e="authorization_code",s9e="wbid-sdk-access-token",_he="wbid-oauth-sdk-access-token",a9e={[$S.DEV]:"https://stage-id.wb.ru",[$S.STAGE]:"https://stage-id.wb.ru",[$S.PROD]:"https://id.wb.ru"};class l9e{constructor(){Ie(this,"_accessToken");Ie(this,"axios");this.axios=_i.create(),this._accessToken="",typeof localStorage<"u"&&(this._accessToken=localStorage.getItem(_he)??"")}async setAccessToken(t){return this._accessToken=t,this}get accessToken(){return this._accessToken}get isAccessTokenExpired(){return this.accessToken?(t9e(this.accessToken).exp||0)crypto.getRandomValues(new Uint8Array(e)).reduce((t,r)=>(r&=63,r<36?t+=r.toString(36):r<62?t+=(r-26).toString(36).toUpperCase():r>62?t+="-":t+="_",t),"");const xY=(e=22)=>c9e(e),u9e=e=>e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/m,""),d9e=async e=>{let t;return crypto.subtle?t=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(e)):t=(await b8e(()=>import("./sha256-CBw6sojz-PkoITTVd.js"),[]).then(n=>n.s)).sha256.create().update(e).arrayBuffer(),u9e(btoa(String.fromCharCode(...new Uint8Array(t))))};var cS=(e=>(e.AUTHORIZATION_REJECTED="AUTHORIZATION_REJECTED",e.INVALID_CALLBACK_PARAMS="INVALID_CALLBACK_PARAMS",e.TOKEN_NOT_RECEIVED="TOKEN_NOT_RECEIVED",e.LOGIN_FAILED="LOGIN_FAILED",e))(cS||{});class B$t extends l9e{constructor(r){super();Ie(this,"params");Ie(this,"_validationKey");this.params={clientId:r.clientId,scope:r.scope,redirectUri:r.redirectUri,debug:r.debug??xT.debug,audience:r.audience??xT.audience,endpoints:{...xT.endpoints??{},...r.endpoints??{}},getCookie:r.getCookie??xT.getCookie,environment:r.environment}}async setAccessToken(r){return await super.setAccessToken(r),typeof localStorage<"u"&&localStorage.setItem(_he,r),this}get validationKey(){return this._validationKey??""}get accessTokenHeader(){return"Authorization"}get accessTokenHeaderValue(){return`Bearer ${this.accessToken}`}get isUserLoggedIn(){return!!this.accessToken}async getCurrentUser(){return this.axios.post(this.params.endpoints.user,{clientId:this.params.clientId}).then(r=>r.data).catch(r=>(this.params.debug&&console.error(r),null))}async initializeWithSSR(){const r=await this.params.getCookie(s9e)??"";return r&&await this.setAccessToken(r),this}async login({prompt:r=S8e.consent,phone:n}={}){if(typeof document>"u"||typeof sessionStorage>"u"||typeof URLSearchParams>"u")return;const i=this.params.endpoints.authorize,o=xY(64),s=await d9e(o),a=xY(32);sessionStorage.setItem(a,o);const l=new URLSearchParams;l.set(wa.clientId,this.params.clientId),l.set(wa.audience,this.params.audience),l.set(wa.prompt,r),l.set(wa.redirectUri,this.params.redirectUri),l.set(wa.scope,this.params.scope),l.set(wa.state,a),l.set(wa.codeChallengeMethod,x8e.S256),l.set(wa.responseType,w8e.code),l.set(wa.codeChallenge,s),n&&l.set(wa.phone,n),document.location=`${i}?${l.toString()}`}async handleCallback(){if(typeof window>"u"||typeof sessionStorage>"u"||typeof URLSearchParams>"u")return null;const r=new URLSearchParams(window.location.search),n=r.get(wa.code),i=r.get(wa.error),o=r.get(wa.state),s=sessionStorage.getItem(o??"");return i==="consent_rejected"?(o&&sessionStorage.removeItem(o),{code:cS.AUTHORIZATION_REJECTED}):!n||!o||!s?(o&&sessionStorage.removeItem(o),{code:cS.INVALID_CALLBACK_PARAMS}):this.axios.post(this.params.endpoints.token,{clientId:this.params.clientId,code:n,grantType:o9e,codeVerifier:s,redirectUri:this.params.redirectUri,state:o}).then(a=>{var l;return(l=a.data)==null?void 0:l.accessToken}).then(a=>a?this.setAccessToken(a).then(()=>null):{code:cS.TOKEN_NOT_RECEIVED}).catch(a=>this.params.debug?(console.error(a),{code:cS.LOGIN_FAILED}):null).finally(()=>{sessionStorage.removeItem(o)})}async logout(){return this.axios.post(this.params.endpoints.revoke,{clientId:this.params.clientId,accessToken:this.accessToken}).then(({status:r})=>{const n=[200,204].includes(r);return n&&this.setAccessToken("").then(()=>n)}).catch(r=>(this.params.debug&&console.error(r),!1))}async refresh(){return this.axios.post(this.params.endpoints.token,{grantType:i9e,clientId:this.params.clientId}).then(r=>{if([200,204].includes(r.status)){const{accessToken:i,validationKey:o}=r.data;return this._validationKey=o,this.setAccessToken(i).then(()=>({accessToken:i,validationKey:o}))}return null}).catch(r=>(this.params.debug&&console.error(r),null))}goToProfile(){const r=this.params.environment??$S.PROD,n=a9e[r];typeof window<"u"&&window.open(n,"_blank")}}function is(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(u){try{c(n.next(u))}catch(d){s(d)}}function l(u){try{c(n.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):i(u.value).then(a,l)}c((n=n.apply(e,[])).next())})}function h9e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var QH={exports:{}},Ey=typeof Reflect=="object"?Reflect:null,EY=Ey&&typeof Ey.apply=="function"?Ey.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},wP;Ey&&typeof Ey.ownKeys=="function"?wP=Ey.ownKeys:Object.getOwnPropertySymbols?wP=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:wP=function(t){return Object.getOwnPropertyNames(t)};function p9e(e){console&&console.warn&&console.warn(e)}var khe=Number.isNaN||function(t){return t!==t};function $n(){$n.init.call(this)}QH.exports=$n;QH.exports.once=v9e;$n.EventEmitter=$n;$n.prototype._events=void 0;$n.prototype._eventsCount=0;$n.prototype._maxListeners=void 0;var TY=10;function yA(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty($n,"defaultMaxListeners",{enumerable:!0,get:function(){return TY},set:function(e){if(typeof e!="number"||e<0||khe(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");TY=e}});$n.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};$n.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||khe(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function Ohe(e){return e._maxListeners===void 0?$n.defaultMaxListeners:e._maxListeners}$n.prototype.getMaxListeners=function(){return Ohe(this)};$n.prototype.emit=function(t){for(var r=[],n=1;n0&&(s=r[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var l=o[t];if(l===void 0)return!1;if(typeof l=="function")EY(l,this,r);else for(var c=l.length,u=Vhe(l,c),n=0;n0&&s.length>i&&!s.warned){s.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=e,a.type=t,a.count=s.length,p9e(a)}return e}$n.prototype.addListener=function(t,r){return Nhe(this,t,r,!1)};$n.prototype.on=$n.prototype.addListener;$n.prototype.prependListener=function(t,r){return Nhe(this,t,r,!0)};function f9e(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Bhe(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=f9e.bind(n);return i.listener=r,n.wrapFn=i,i}$n.prototype.once=function(t,r){return yA(r),this.on(t,Bhe(this,t,r)),this};$n.prototype.prependOnceListener=function(t,r){return yA(r),this.prependListener(t,Bhe(this,t,r)),this};$n.prototype.removeListener=function(t,r){var n,i,o,s,a;if(yA(r),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(o=-1,s=n.length-1;s>=0;s--)if(n[s]===r||n[s].listener===r){a=n[s].listener,o=s;break}if(o<0)return this;o===0?n.shift():g9e(n,o),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,a||r)}return this};$n.prototype.off=$n.prototype.removeListener;$n.prototype.removeAllListeners=function(t){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var o=Object.keys(n),s;for(i=0;i=0;i--)this.removeListener(t,r[i]);return this};function $he(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?m9e(i):Vhe(i,i.length)}$n.prototype.listeners=function(t){return $he(this,t,!0)};$n.prototype.rawListeners=function(t){return $he(this,t,!1)};$n.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):Ghe.call(e,t)};$n.prototype.listenerCount=Ghe;function Ghe(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}$n.prototype.eventNames=function(){return this._eventsCount>0?wP(this._events):[]};function Vhe(e,t){for(var r=new Array(t),n=0;n31&&(e=31);const n=w9e(0,Math.min(r,t*Math.pow(2,e)));return Math.min(r,t+n)}function x9e(e){return"error"in e&&e.error!==null}function VM(e){return Math.min(e*1e3,2147483647)}class E9e extends Hhe{constructor(t,r,n){super(),this._resubscribeTimeout=null,this._refreshTimeout=null,this.channel=r,this.state=bs.Unsubscribed,this._centrifuge=t,this._token="",this._getToken=null,this._data=null,this._getData=null,this._recover=!1,this._offset=null,this._epoch=null,this._id=0,this._recoverable=!1,this._positioned=!1,this._joinLeave=!1,this._minResubscribeDelay=500,this._maxResubscribeDelay=2e4,this._resubscribeTimeout=null,this._resubscribeAttempts=0,this._promises={},this._promiseId=0,this._inflight=!1,this._refreshTimeout=null,this._delta="",this._delta_negotiated=!1,this._tagsFilter=null,this._prevValue=null,this._unsubPromise=Promise.resolve(),this._setOptions(n),this._centrifuge._debugEnabled?(this.on("state",i=>{this._debug("subscription state",r,i.oldState,"->",i.newState)}),this.on("error",i=>{this._debug("subscription error",r,i)})):this.on("error",function(){Function.prototype()})}ready(t){return this.state===bs.Unsubscribed?Promise.reject({code:Zn.subscriptionUnsubscribed,message:this.state}):this.state===bs.Subscribed?Promise.resolve():new Promise((r,n)=>{const i={resolve:r,reject:n};t&&(i.timeout=setTimeout(function(){n({code:Zn.timeout,message:"timeout"})},t)),this._promises[this._nextPromiseId()]=i})}subscribe(){this._isSubscribed()||(this._resubscribeAttempts=0,this._setSubscribing(BM.subscribeCalled,"subscribe called"))}unsubscribe(){this._unsubPromise=this._setUnsubscribed($M.unsubscribeCalled,"unsubscribe called",!0)}publish(t){return is(this,void 0,void 0,function*(){return yield this._methodCall(),this._centrifuge.publish(this.channel,t)})}presence(){return is(this,void 0,void 0,function*(){return yield this._methodCall(),this._centrifuge.presence(this.channel)})}presenceStats(){return is(this,void 0,void 0,function*(){return yield this._methodCall(),this._centrifuge.presenceStats(this.channel)})}history(t){return is(this,void 0,void 0,function*(){return yield this._methodCall(),this._centrifuge.history(this.channel,t)})}setTagsFilter(t){if(t&&this._delta)throw new Error("cannot use delta and tagsFilter together");this._tagsFilter=t}setData(t){this._data=t}_methodCall(){return this._isSubscribed()?Promise.resolve():this._isUnsubscribed()?Promise.reject({code:Zn.subscriptionUnsubscribed,message:this.state}):new Promise((t,r)=>{const n=this._centrifuge._config.timeout,i=setTimeout(()=>{r({code:Zn.timeout,message:"timeout"})},n);this._promises[this._nextPromiseId()]={timeout:i,resolve:t,reject:r}})}_nextPromiseId(){return++this._promiseId}_needRecover(){return this._recover===!0}_isUnsubscribed(){return this.state===bs.Unsubscribed}_isSubscribing(){return this.state===bs.Subscribing}_isSubscribed(){return this.state===bs.Subscribed}_setState(t){if(this.state!==t){const r=this.state;return this.state=t,this.emit("state",{newState:t,oldState:r,channel:this.channel}),!0}return!1}_usesToken(){return this._token!==""||this._getToken!==null}_clearSubscribingState(){this._resubscribeAttempts=0,this._clearResubscribeTimeout()}_clearSubscribedState(){this._clearRefreshTimeout()}_setSubscribed(t){if(!this._isSubscribing())return;this._clearSubscribingState(),t.id&&(this._id=t.id),t.recoverable&&(this._recover=!0,this._offset=t.offset||0,this._epoch=t.epoch||""),t.delta?this._delta_negotiated=!0:this._delta_negotiated=!1,this._setState(bs.Subscribed);const r=this._centrifuge._getSubscribeContext(this.channel,t);this.emit("subscribed",r),this._resolvePromises();const n=t.publications;if(n&&n.length>0)for(const i in n)n.hasOwnProperty(i)&&this._handlePublication(n[i]);t.expires===!0&&(this._refreshTimeout=setTimeout(()=>this._refresh(),VM(t.ttl)))}_setSubscribing(t,r){return is(this,void 0,void 0,function*(){this._isSubscribing()||(this._isSubscribed()&&this._clearSubscribedState(),this._setState(bs.Subscribing)&&this.emit("subscribing",{channel:this.channel,code:t,reason:r}),this._centrifuge._transport&&this._centrifuge._transport.emulation()&&(yield this._unsubPromise),this._isSubscribing()&&this._subscribe())})}_subscribe(){return this._debug("subscribing on",this.channel),this._isTransportOpen()?this._inflight?null:(this._inflight=!0,this._canSubscribeWithoutGettingToken()?this._subscribeWithoutToken():(this._getSubscriptionToken().then(t=>this._handleTokenResponse(t)).catch(t=>this._handleTokenError(t)),null)):(this._debug("delay subscribe on",this.channel,"till connected"),null)}_isTransportOpen(){return this._centrifuge._transportIsOpen}_canSubscribeWithoutGettingToken(){return!this._usesToken()||!!this._token}_subscribeWithoutToken(){return this._getData?(this._getDataAndSubscribe(this._token),null):this._sendSubscribe(this._token)}_getDataAndSubscribe(t){if(!this._getData){this._inflight=!1;return}this._getData({channel:this.channel}).then(r=>{if(!this._isSubscribing()){this._inflight=!1;return}this._data=r,this._sendSubscribe(t)}).catch(r=>this._handleGetDataError(r))}_handleGetDataError(t){if(!this._isSubscribing()){this._inflight=!1;return}if(t instanceof ud){this._inflight=!1,this._failUnauthorized();return}this.emit("error",{type:"subscribeData",channel:this.channel,error:{code:Zn.badConfiguration,message:(t==null?void 0:t.toString())||""}}),this._inflight=!1,this._scheduleResubscribe()}_handleTokenResponse(t){if(!this._isSubscribing()){this._inflight=!1;return}if(!t){this._inflight=!1,this._failUnauthorized();return}this._token=t,this._getData?this._getDataAndSubscribe(t):this._sendSubscribe(t)}_handleTokenError(t){if(!this._isSubscribing()){this._inflight=!1;return}if(t instanceof ud){this._inflight=!1,this._failUnauthorized();return}this.emit("error",{type:"subscribeToken",channel:this.channel,error:{code:Zn.subscriptionSubscribeToken,message:(t==null?void 0:t.toString())||""}}),this._inflight=!1,this._scheduleResubscribe()}_sendSubscribe(t){if(!this._isTransportOpen())return this._inflight=!1,null;const r=this._buildSubscribeCommand(t);return this._centrifuge._call(r).then(n=>{this._inflight=!1;const i=n.reply.subscribe;this._handleSubscribeResponse(i),n.next&&n.next()},n=>{this._inflight=!1,this._handleSubscribeError(n.error),n.next&&n.next()}),r}_buildSubscribeCommand(t){const r={channel:this.channel};if(t&&(r.token=t),this._data&&(r.data=this._data),this._positioned&&(r.positioned=!0),this._recoverable&&(r.recoverable=!0),this._joinLeave&&(r.join_leave=!0),r.flag=pV.channelCompaction,this._needRecover()){r.recover=!0;const n=this._getOffset();n&&(r.offset=n);const i=this._getEpoch();i&&(r.epoch=i)}return this._delta&&(r.delta=this._delta),this._tagsFilter&&(r.tf=this._tagsFilter),{subscribe:r}}_debug(...t){this._centrifuge._debug(...t)}_handleSubscribeError(t){if(this._isSubscribing()){if(t.code===Zn.timeout){this._centrifuge._disconnect(Zh.subscribeTimeout,"subscribe timeout",!0);return}this._subscribeError(t)}}_handleSubscribeResponse(t){this._isSubscribing()&&this._setSubscribed(t)}_setUnsubscribed(t,r,n){if(this._isUnsubscribed())return Promise.resolve();let i=Promise.resolve();return this._isSubscribed()?(n&&(i=this._centrifuge._unsubscribe(this)),this._clearSubscribedState()):this._isSubscribing()&&(this._inflight&&n&&(i=this._centrifuge._unsubscribe(this)),this._clearSubscribingState()),this._inflight=!1,this._setState(bs.Unsubscribed)&&this.emit("unsubscribed",{channel:this.channel,code:t,reason:r}),this._rejectPromises({code:Zn.subscriptionUnsubscribed,message:this.state}),i}_handlePublication(t){if(this._delta&&this._delta_negotiated){const{newData:n,newPrevValue:i}=this._centrifuge._codec.applyDeltaIfNeeded(t,this._prevValue);t.data=n,this._prevValue=i}const r=this._centrifuge._getPublicationContext(this.channel,t);this.emit("publication",r),t.offset&&(this._offset=t.offset)}_handleJoin(t){const r=this._centrifuge._getJoinLeaveContext(t.info);this.emit("join",{channel:this.channel,info:r})}_handleLeave(t){const r=this._centrifuge._getJoinLeaveContext(t.info);this.emit("leave",{channel:this.channel,info:r})}_resolvePromises(){for(const t in this._promises)this._promises.hasOwnProperty(t)&&(this._promises[t].timeout&&clearTimeout(this._promises[t].timeout),this._promises[t].resolve(),delete this._promises[t])}_rejectPromises(t){for(const r in this._promises)this._promises.hasOwnProperty(r)&&(this._promises[r].timeout&&clearTimeout(this._promises[r].timeout),this._promises[r].reject(t),delete this._promises[r])}_scheduleResubscribe(){if(!this._isSubscribing()){this._debug("not in subscribing state, skip resubscribe scheduling",this.channel);return}const t=this,r=this._getResubscribeDelay();this._resubscribeTimeout=setTimeout(function(){t._isSubscribing()&&t._subscribe()},r),this._debug("resubscribe scheduled after "+r,this.channel)}_subscribeError(t){if(this._isSubscribing())if(t.code<100||t.code===109||t.temporary===!0){t.code===109&&(this._token="");const r={channel:this.channel,type:"subscribe",error:t};this._centrifuge.state===Gi.Connected&&this.emit("error",r),this._scheduleResubscribe()}else this._setUnsubscribed(t.code,t.message,!1)}_getResubscribeDelay(){const t=GM(this._resubscribeAttempts,this._minResubscribeDelay,this._maxResubscribeDelay);return this._resubscribeAttempts++,t}_setOptions(t){if(t){if(t.since&&(this._offset=t.since.offset||0,this._epoch=t.since.epoch||"",this._recover=!0),t.data&&(this._data=t.data),t.getData&&(this._getData=t.getData),t.minResubscribeDelay!==void 0&&(this._minResubscribeDelay=t.minResubscribeDelay),t.maxResubscribeDelay!==void 0&&(this._maxResubscribeDelay=t.maxResubscribeDelay),t.token&&(this._token=t.token),t.getToken&&(this._getToken=t.getToken),t.positioned===!0&&(this._positioned=!0),t.recoverable===!0&&(this._recoverable=!0),t.joinLeave===!0&&(this._joinLeave=!0),t.delta){if(t.delta!=="fossil")throw new Error("unsupported delta format");this._delta=t.delta}if(t.tagsFilter&&(this._tagsFilter=t.tagsFilter),this._tagsFilter&&this._delta)throw new Error("cannot use delta and tagsFilter together")}}_getOffset(){const t=this._offset;return t!==null?t:0}_getEpoch(){const t=this._epoch;return t!==null?t:""}_clearRefreshTimeout(){this._refreshTimeout!==null&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null)}_clearResubscribeTimeout(){this._resubscribeTimeout!==null&&(clearTimeout(this._resubscribeTimeout),this._resubscribeTimeout=null)}_getSubscriptionToken(){this._debug("get subscription token for channel",this.channel);const t={channel:this.channel},r=this._getToken;return r===null?(this.emit("error",{type:"configuration",channel:this.channel,error:{code:Zn.badConfiguration,message:"provide a function to get channel subscription token"}}),Promise.reject(new ud(""))):r(t)}_refresh(){this._clearRefreshTimeout();const t=this;this._getSubscriptionToken().then(function(r){if(!t._isSubscribed())return;if(!r){t._failUnauthorized();return}t._token=r;const i={sub_refresh:{channel:t.channel,token:r}};t._centrifuge._call(i).then(o=>{const s=o.reply.sub_refresh;t._refreshResponse(s),o.next&&o.next()},o=>{t._refreshError(o.error),o.next&&o.next()})}).catch(function(r){if(r instanceof ud){t._failUnauthorized();return}t.emit("error",{type:"refreshToken",channel:t.channel,error:{code:Zn.subscriptionRefreshToken,message:r!==void 0?r.toString():""}}),t._refreshTimeout=setTimeout(()=>t._refresh(),t._getRefreshRetryDelay())})}_refreshResponse(t){this._isSubscribed()&&(this._debug("subscription token refreshed, channel",this.channel),this._clearRefreshTimeout(),t.expires===!0&&(this._refreshTimeout=setTimeout(()=>this._refresh(),VM(t.ttl))))}_refreshError(t){this._isSubscribed()&&(t.code<100||t.temporary===!0?(this.emit("error",{type:"refresh",channel:this.channel,error:t}),this._refreshTimeout=setTimeout(()=>this._refresh(),this._getRefreshRetryDelay())):this._setUnsubscribed(t.code,t.message,!0))}_getRefreshRetryDelay(){return GM(0,1e4,2e4)}_failUnauthorized(){this._setUnsubscribed($M.unauthorized,"unauthorized",!0)}}class T9e{constructor(t,r){this.endpoint=t,this.options=r,this._transport=null}name(){return"sockjs"}subName(){return"sockjs-"+this._transport.transport}emulation(){return!1}supported(){return this.options.sockjs!==null}initialize(t,r){this._transport=new this.options.sockjs(this.endpoint,null,this.options.sockjsOptions),this._transport.onopen=()=>{r.onOpen()},this._transport.onerror=n=>{r.onError(n)},this._transport.onclose=n=>{r.onClose(n)},this._transport.onmessage=n=>{r.onMessage(n.data)}}close(){this._transport.close()}send(t){this._transport.send(t)}}class RY{constructor(t,r){this.endpoint=t,this.options=r,this._transport=null}name(){return"websocket"}subName(){return"websocket"}emulation(){return!1}supported(){return this.options.websocket!==void 0&&this.options.websocket!==null}initialize(t,r){let n="";t==="protobuf"&&(n="centrifuge-protobuf"),n!==""?this._transport=new this.options.websocket(this.endpoint,n):this._transport=new this.options.websocket(this.endpoint),t==="protobuf"&&(this._transport.binaryType="arraybuffer"),this._transport.onopen=()=>{r.onOpen()},this._transport.onerror=i=>{r.onError(i)},this._transport.onclose=i=>{r.onClose(i)},this._transport.onmessage=i=>{r.onMessage(i.data)}}close(){this._transport.close()}send(t){this._transport.send(t)}}class R9e{constructor(t,r){this.endpoint=t,this.options=r,this._abortController=null,this._utf8decoder=new TextDecoder,this._protocol="json"}name(){return"http_stream"}subName(){return"http_stream"}emulation(){return!0}_handleErrors(t){if(!t.ok)throw new Error(t.status);return t}_fetchEventTarget(t,r,n){const i=new EventTarget,o=t.options.fetch;return o(r,n).then(t._handleErrors).then(s=>{i.dispatchEvent(new Event("open"));let a="",l=0,c=new Uint8Array;const u=s.body.getReader();return new t.options.readableStream({start(d){function h(){return u.read().then(({done:p,value:f})=>{if(p){i.dispatchEvent(new Event("close")),d.close();return}try{if(t._protocol==="json")for(a+=t._utf8decoder.decode(f);l{i.dispatchEvent(new Event("error",{detail:s})),i.dispatchEvent(new Event("close"))}),i}supported(){return this.options.fetch!==null&&this.options.readableStream!==null&&typeof TextDecoder<"u"&&typeof AbortController<"u"&&typeof EventTarget<"u"&&typeof Event<"u"&&typeof MessageEvent<"u"&&typeof Error<"u"}initialize(t,r,n){this._protocol=t,this._abortController=new AbortController;let i,o;t==="json"?(i={Accept:"application/json","Content-Type":"application/json"},o=n):(i={Accept:"application/octet-stream","Content-Type":"application/octet-stream"},o=n);const s={method:"POST",headers:i,body:o,mode:"cors",credentials:"same-origin",signal:this._abortController.signal},a=this._fetchEventTarget(this,this.endpoint,s);a.addEventListener("open",()=>{r.onOpen()}),a.addEventListener("error",l=>{this._abortController.abort(),r.onError(l)}),a.addEventListener("close",()=>{this._abortController.abort(),r.onClose({code:4,reason:"connection closed"})}),a.addEventListener("message",l=>{r.onMessage(l.data)})}close(){this._abortController.abort()}send(t,r,n){let i,o;const s={session:r,node:n,data:t};this._protocol==="json"?(i={"Content-Type":"application/json"},o=JSON.stringify(s)):(i={"Content-Type":"application/octet-stream"},o=this.options.encoder.encodeEmulationRequest(s));const a=this.options.fetch,l={method:"POST",headers:i,body:o,mode:"cors",credentials:"same-origin"};a(this.options.emulationEndpoint,l)}}class P9e{constructor(t,r){this.endpoint=t,this.options=r,this._protocol="json",this._transport=null,this._onClose=null}name(){return"sse"}subName(){return"sse"}emulation(){return!0}supported(){return this.options.eventsource!==null&&this.options.fetch!==null}initialize(t,r,n){let i;globalThis&&globalThis.document&&globalThis.document.baseURI?i=new URL(this.endpoint,globalThis.document.baseURI):i=new URL(this.endpoint),i.searchParams.append("cf_connect",n);const o={},s=new this.options.eventsource(i.toString(),o);this._transport=s;const a=this;s.onopen=function(){r.onOpen()},s.onerror=function(l){s.close(),r.onError(l),r.onClose({code:4,reason:"connection closed"})},s.onmessage=function(l){r.onMessage(l.data)},a._onClose=function(){r.onClose({code:4,reason:"connection closed"})}}close(){this._transport.close(),this._onClose!==null&&this._onClose()}send(t,r,n){const i={session:r,node:n,data:t},o={"Content-Type":"application/json"},s=JSON.stringify(i),a=this.options.fetch,l={method:"POST",headers:o,body:s,mode:"cors",credentials:"same-origin"};a(this.options.emulationEndpoint,l)}}class M9e{constructor(t,r){this.endpoint=t,this.options=r,this._transport=null,this._stream=null,this._writer=null,this._utf8decoder=new TextDecoder,this._protocol="json"}name(){return"webtransport"}subName(){return"webtransport"}emulation(){return!1}supported(){return this.options.webtransport!==void 0&&this.options.webtransport!==null}initialize(t,r){return is(this,void 0,void 0,function*(){let n;globalThis&&globalThis.document&&globalThis.document.baseURI?n=new URL(this.endpoint,globalThis.document.baseURI):n=new URL(this.endpoint),t==="protobuf"&&n.searchParams.append("cf_protocol","protobuf"),this._protocol=t;const i=new EventTarget;this._transport=new this.options.webtransport(n.toString()),this._transport.closed.then(()=>{r.onClose({code:4,reason:"connection closed"})}).catch(()=>{r.onClose({code:4,reason:"connection closed"})});try{yield this._transport.ready}catch{this.close();return}let o;try{o=yield this._transport.createBidirectionalStream()}catch{this.close();return}this._stream=o,this._writer=this._stream.writable.getWriter(),i.addEventListener("close",()=>{r.onClose({code:4,reason:"connection closed"})}),i.addEventListener("message",s=>{r.onMessage(s.data)}),this._startReading(i),r.onOpen()})}_startReading(t){return is(this,void 0,void 0,function*(){const r=this._stream.readable.getReader();let n="",i=0,o=new Uint8Array;try{for(;;){const{done:s,value:a}=yield r.read();if(a.length>0)if(this._protocol==="json")for(n+=this._utf8decoder.decode(a);ithis.a.length)throw new RangeError("out of bounds");return t}getChar(){return String.fromCharCode(this.getByte())}getInt(){let t=0,r;for(;this.haveBytes()&&(r=I9e[127&this.getByte()])>=0;)t=(t<<6)+r;return this.pos--,t>>>0}}class A9e{constructor(){this.a=[]}toByteArray(t){return Array.isArray(t)?this.a:new Uint8Array(this.a)}putArray(t,r,n){for(let i=r;i=16;)t=t+e[o+0]|0,r=r+e[o+1]|0,n=n+e[o+2]|0,i=i+e[o+3]|0,t=t+e[o+4]|0,r=r+e[o+5]|0,n=n+e[o+6]|0,i=i+e[o+7]|0,t=t+e[o+8]|0,r=r+e[o+9]|0,n=n+e[o+10]|0,i=i+e[o+11]|0,t=t+e[o+12]|0,r=r+e[o+13]|0,n=n+e[o+14]|0,i=i+e[o+15]|0,o+=16,s-=16;for(;s>=4;)t=t+e[o+0]|0,r=r+e[o+1]|0,n=n+e[o+2]|0,i=i+e[o+3]|0,o+=4,s-=4;switch(i=((i+(n<<8)|0)+(r<<16)|0)+(t<<24)|0,s){case 3:i=i+(e[o+2]<<8)|0;case 2:i=i+(e[o+1]<<16)|0;case 1:i=i+(e[o+0]<<24)|0}return i>>>0}function L9e(e,t){let r=0;const n=new D9e(t),i=e.length,o=t.length,s=n.getInt();if(n.getChar()!==` `)throw new Error("size integer not terminated by '\\n'");const a=new A9e;for(;n.haveBytes();){const l=n.getInt();let c;switch(n.getChar()){case"@":if(c=n.getInt(),n.haveBytes()&&n.getChar()!==",")throw new Error("copy command not terminated by ','");if(r+=l,r>s)throw new Error("copy exceeds output file size");if(c+l>i)throw new Error("copy extends past end of input");a.putArray(e,c,c+l);break;case":":if(r+=l,r>s)throw new Error("insert command gives an output larger than predicted");if(l>o)throw new Error("insert count exceeds size of delta");a.putArray(n.a,n.pos,n.pos+l),n.pos+=l;break;case";":{const u=a.toByteArray(e);if(l!==F9e(u))throw new Error("bad checksum");if(r!==s)throw new Error("generated size does not match predicted size");return u}default:throw new Error("unknown delta operator")}}throw new Error("unterminated delta")}class PY{name(){return"json"}encodeCommands(t){return t.map(r=>JSON.stringify(r)).join(` `)}decodeReplies(t){return t.trim().split(` `).map(r=>JSON.parse(r))}applyDeltaIfNeeded(t,r){let n,i;if(t.delta){const o=L9e(r,new TextEncoder().encode(t.data));n=JSON.parse(new TextDecoder().decode(o)),i=o}else n=JSON.parse(t.data),i=new TextEncoder().encode(t.data);return{newData:n,newPrevValue:i}}}const _9e={headers:{},token:"",getToken:null,data:null,getData:null,debug:!1,name:"js",version:"",fetch:null,readableStream:null,websocket:null,eventsource:null,sockjs:null,sockjsOptions:{},emulationEndpoint:"/emulation",minReconnectDelay:500,maxReconnectDelay:2e4,timeout:5e3,maxServerPingDelay:1e4,networkEventTarget:null};class ud extends Error{constructor(t){super(t),this.name=this.constructor.name}}class JH extends Hhe{constructor(t,r){super(),this._reconnectTimeout=null,this._refreshTimeout=null,this._serverPingTimeout=null,this.state=Gi.Disconnected,this._transportIsOpen=!1,this._endpoint=t,this._emulation=!1,this._transports=[],this._currentTransportIndex=0,this._triedAllTransports=!1,this._transportWasOpen=!1,this._transport=null,this._transportId=0,this._deviceWentOffline=!1,this._transportClosed=!0,this._codec=new PY,this._reconnecting=!1,this._reconnectTimeout=null,this._reconnectAttempts=0,this._client=null,this._session="",this._node="",this._subs={},this._serverSubs={},this._commandId=0,this._commands=[],this._batching=!1,this._refreshRequired=!1,this._refreshTimeout=null,this._callbacks={},this._token="",this._data=null,this._dispatchPromise=Promise.resolve(),this._serverPing=0,this._serverPingTimeout=null,this._sendPong=!1,this._promises={},this._promiseId=0,this._debugEnabled=!1,this._networkEventsSet=!1,this._config=Object.assign(Object.assign({},_9e),r),this._configure(),this._debugEnabled?(this.on("state",n=>{this._debug("client state",n.oldState,"->",n.newState)}),this.on("error",n=>{this._debug("client error",n)})):this.on("error",function(){Function.prototype()})}newSubscription(t,r){if(this.getSubscription(t)!==null)throw new Error("Subscription to the channel "+t+" already exists");const n=new E9e(this,t,r);return this._subs[t]=n,n}getSubscription(t){return this._getSub(t)}removeSubscription(t){t&&(t.state!==bs.Unsubscribed&&t.unsubscribe(),this._removeSubscription(t))}subscriptions(){return this._subs}ready(t){return is(this,void 0,void 0,function*(){switch(this.state){case Gi.Disconnected:throw{code:Zn.clientDisconnected,message:"client disconnected"};case Gi.Connected:return;default:return new Promise((r,n)=>{const i={resolve:r,reject:n};t&&(i.timeout=setTimeout(()=>{n({code:Zn.timeout,message:"timeout"})},t)),this._promises[this._nextPromiseId()]=i})}})}connect(){if(this._isConnected()){this._debug("connect called when already connected");return}if(this._isConnecting()){this._debug("connect called when already connecting");return}this._debug("connect called"),this._reconnectAttempts=0,this._startConnecting()}disconnect(){this._disconnect(GS.disconnectCalled,"disconnect called",!1)}setToken(t){this._token=t}setData(t){this._data=t}setHeaders(t){this._config.headers=t}send(t){return is(this,void 0,void 0,function*(){const r={send:{data:t}};if(yield this._methodCall(),!this._transportSendCommands([r]))throw this._createErrorObject(Zn.transportWriteError,"transport write error")})}rpc(t,r){return is(this,void 0,void 0,function*(){const n={rpc:{method:t,data:r}};return yield this._methodCall(),{data:(yield this._callPromise(n,o=>o.rpc)).data}})}publish(t,r){return is(this,void 0,void 0,function*(){const n={publish:{channel:t,data:r}};return yield this._methodCall(),yield this._callPromise(n,()=>({})),{}})}history(t,r){return is(this,void 0,void 0,function*(){const n={history:this._getHistoryRequest(t,r)};yield this._methodCall();const i=yield this._callPromise(n,s=>s.history),o=[];if(i.publications)for(let s=0;so.presence)).presence;for(const o in i)if(Object.prototype.hasOwnProperty.call(i,o)){const s=i[o],a=s.conn_info,l=s.chan_info;a&&(s.connInfo=a),l&&(s.chanInfo=l)}return{clients:i}})}presenceStats(t){return is(this,void 0,void 0,function*(){const r={presence_stats:{channel:t}};yield this._methodCall();const n=yield this._callPromise(r,i=>i.presence_stats);return{numUsers:n.num_users,numClients:n.num_clients}})}startBatching(){this._batching=!0}stopBatching(){const t=this;Promise.resolve().then(function(){Promise.resolve().then(function(){t._batching=!1,t._flush()})})}_debug(...t){this._debugEnabled&&S9e("debug",t)}_codecName(){return this._codec.name()}_formatOverride(){}_configure(){if(!("Promise"in globalThis))throw new Error("Promise polyfill required");if(!this._endpoint)throw new Error("endpoint configuration required");if(this._config.token!==null&&(this._token=this._config.token),this._config.data!==null&&(this._data=this._config.data),this._codec=new PY,this._formatOverride(),(this._config.debug===!0||typeof localStorage<"u"&&typeof localStorage.getItem=="function"&&localStorage.getItem("centrifuge.debug"))&&(this._debugEnabled=!0),this._debug("config",this._config),typeof this._endpoint!="string")if(Array.isArray(this._endpoint)){this._transports=this._endpoint,this._emulation=!0;for(const t in this._transports)if(this._transports.hasOwnProperty(t)){const r=this._transports[t];if(!r.endpoint||!r.transport)throw new Error("malformed transport configuration");const n=r.transport;if(["websocket","http_stream","sse","sockjs","webtransport"].indexOf(n)<0)throw new Error("unsupported transport name: "+n)}}else throw new Error("unsupported url configuration type: only string or array of objects are supported")}_setState(t){if(this.state!==t){this._reconnecting=!1;const r=this.state;return this.state=t,this.emit("state",{newState:t,oldState:r}),!0}return!1}_isDisconnected(){return this.state===Gi.Disconnected}_isConnecting(){return this.state===Gi.Connecting}_isConnected(){return this.state===Gi.Connected}_nextCommandId(){return++this._commandId}_setNetworkEvents(){if(this._networkEventsSet)return;let t=null;this._config.networkEventTarget!==null?t=this._config.networkEventTarget:typeof globalThis.addEventListener<"u"&&(t=globalThis),t&&(t.addEventListener("offline",()=>{this._debug("offline event triggered"),(this.state===Gi.Connected||this.state===Gi.Connecting)&&(this._disconnect(Zh.transportClosed,"transport closed",!0),this._deviceWentOffline=!0)}),t.addEventListener("online",()=>{this._debug("online event triggered"),this.state===Gi.Connecting&&(this._deviceWentOffline&&!this._transportClosed&&(this._deviceWentOffline=!1,this._transportClosed=!0),this._clearReconnectTimeout(),this._startReconnecting())}),this._networkEventsSet=!0)}_getReconnectDelay(){const t=GM(this._reconnectAttempts,this._config.minReconnectDelay,this._config.maxReconnectDelay);return this._reconnectAttempts+=1,t}_clearOutgoingRequests(){for(const t in this._callbacks)if(this._callbacks.hasOwnProperty(t)){const r=this._callbacks[t];clearTimeout(r.timeout);const n=r.errback;if(!n)continue;n({error:this._createErrorObject(Zn.connectionClosed,"connection closed")})}this._callbacks={}}_clearConnectedState(){this._client=null,this._clearServerPingTimeout(),this._clearRefreshTimeout();for(const t in this._subs){if(!this._subs.hasOwnProperty(t))continue;const r=this._subs[t];r.state===bs.Subscribed&&r._setSubscribing(BM.transportClosed,"transport closed")}for(const t in this._serverSubs)this._serverSubs.hasOwnProperty(t)&&this.emit("subscribing",{channel:t})}_handleWriteError(t){for(const r of t){const n=r.id;if(!(n in this._callbacks))continue;const i=this._callbacks[n];clearTimeout(this._callbacks[n].timeout),delete this._callbacks[n];const o=i.errback;o({error:this._createErrorObject(Zn.transportWriteError,"transport write error")})}}_transportSendCommands(t){if(!t.length)return!0;if(!this._transport)return!1;try{this._transport.send(this._codec.encodeCommands(t),this._session,this._node)}catch(r){return this._debug("error writing commands",r),this._handleWriteError(t),!1}return!0}_initializeTransport(){let t;this._config.websocket!==null?t=this._config.websocket:typeof globalThis.WebSocket!="function"&&typeof globalThis.WebSocket!="object"||(t=globalThis.WebSocket);let r=null;this._config.sockjs!==null?r=this._config.sockjs:typeof globalThis.SockJS<"u"&&(r=globalThis.SockJS);let n=null;this._config.eventsource!==null?n=this._config.eventsource:typeof globalThis.EventSource<"u"&&(n=globalThis.EventSource);let i=null;this._config.fetch!==null?i=this._config.fetch:typeof globalThis.fetch<"u"&&(i=globalThis.fetch);let o=null;if(this._config.readableStream!==null?o=this._config.readableStream:typeof globalThis.ReadableStream<"u"&&(o=globalThis.ReadableStream),this._emulation){this._currentTransportIndex>=this._transports.length&&(this._triedAllTransports=!0,this._currentTransportIndex=0);let p=0;for(;;){if(p>=this._transports.length)throw new Error("no supported transport found");const f=this._transports[this._currentTransportIndex],g=f.transport,m=f.endpoint;if(g==="websocket"){if(this._debug("trying websocket transport"),this._transport=new RY(m,{websocket:t}),!this._transport.supported()){this._debug("websocket transport not available"),this._currentTransportIndex++,p++;continue}}else if(g==="webtransport"){if(this._debug("trying webtransport transport"),this._transport=new M9e(m,{webtransport:globalThis.WebTransport,decoder:this._codec,encoder:this._codec}),!this._transport.supported()){this._debug("webtransport transport not available"),this._currentTransportIndex++,p++;continue}}else if(g==="http_stream"){if(this._debug("trying http_stream transport"),this._transport=new R9e(m,{fetch:i,readableStream:o,emulationEndpoint:this._config.emulationEndpoint,decoder:this._codec,encoder:this._codec}),!this._transport.supported()){this._debug("http_stream transport not available"),this._currentTransportIndex++,p++;continue}}else if(g==="sse"){if(this._debug("trying sse transport"),this._transport=new P9e(m,{eventsource:n,fetch:i,emulationEndpoint:this._config.emulationEndpoint}),!this._transport.supported()){this._debug("sse transport not available"),this._currentTransportIndex++,p++;continue}}else if(g==="sockjs"){if(this._debug("trying sockjs"),this._transport=new T9e(m,{sockjs:r,sockjsOptions:this._config.sockjsOptions}),!this._transport.supported()){this._debug("sockjs transport not available"),this._currentTransportIndex++,p++;continue}}else throw new Error("unknown transport "+g);break}}else{if(b9e(this._endpoint,"http"))throw new Error("Provide explicit transport endpoints configuration in case of using HTTP (i.e. using array of TransportEndpoint instead of a single string), or use ws(s):// scheme in an endpoint if you aimed using WebSocket transport");if(this._debug("client will use websocket"),this._transport=new RY(this._endpoint,{websocket:t}),!this._transport.supported())throw new Error("WebSocket constructor not found, make sure it is available globally or passed as a dependency in Centrifuge options")}const s=this,a=this._transport,l=this._nextTransportId();s._debug("id of transport",l);let c=!1;const u=[];if(this._transport.emulation()){const p=s._sendConnect(!0);u.push(p)}this._setNetworkEvents();const d=this._codec.encodeCommands(u);this._transportClosed=!1;let h;h=setTimeout(function(){a.close()},this._config.timeout),this._transport.initialize(this._codecName(),{onOpen:function(){if(h&&(clearTimeout(h),h=null),s._transportId!=l){s._debug("open callback from non-actual transport"),a.close();return}c=!0,s._debug(a.subName(),"transport open"),!a.emulation()&&(s._transportIsOpen=!0,s._transportWasOpen=!0,s.startBatching(),s._sendConnect(!1),s._sendSubscribeCommands(),s.stopBatching(),s.emit("__centrifuge_debug:connect_frame_sent",{}))},onError:function(p){if(s._transportId!=l){s._debug("error callback from non-actual transport");return}s._debug("transport level error",p)},onClose:function(p){if(h&&(clearTimeout(h),h=null),s._transportId!=l){s._debug("close callback from non-actual transport");return}s._debug(a.subName(),"transport closed"),s._transportClosed=!0,s._transportIsOpen=!1;let f="connection closed",g=!0,m=0;if(p&&"code"in p&&p.code&&(m=p.code),p&&p.reason)try{const y=JSON.parse(p.reason);f=y.reason,g=y.reconnect}catch{f=p.reason,(m>=3500&&m<4e3||m>=4500&&m<5e3)&&(g=!1)}m<3e3?(m===1009?(m=GS.messageSizeLimit,f="message size limit exceeded",g=!1):(m=Zh.transportClosed,f="transport closed"),s._emulation&&!s._transportWasOpen&&(s._currentTransportIndex++,s._currentTransportIndex>=s._transports.length&&(s._triedAllTransports=!0,s._currentTransportIndex=0))):s._transportWasOpen=!0,s._isConnecting()&&!c&&s.emit("error",{type:"transport",error:{code:Zn.transportClosed,message:"transport closed"},transport:a.name()}),s._reconnecting=!1,s._disconnect(m,f,g)},onMessage:function(p){s._dataReceived(p)}},d),s.emit("__centrifuge_debug:transport_initialized",{})}_sendConnect(t){const r=this._constructConnectCommand(),n=this;return this._call(r,t).then(i=>{const o=i.reply.connect;n._connectResponse(o),i.next&&i.next()},i=>{n._connectError(i.error),i.next&&i.next()}),r}_startReconnecting(){if(this._debug("start reconnecting"),!this._isConnecting()){this._debug("stop reconnecting: client not in connecting state");return}if(this._reconnecting){this._debug("reconnect already in progress, return from reconnect routine");return}if(this._transportClosed===!1){this._debug("waiting for transport close");return}this._reconnecting=!0;const t=this._token==="";if(!(this._refreshRequired||t&&this._config.getToken!==null)){this._config.getData?this._config.getData().then(i=>{this._isConnecting()&&(this._data=i,this._initializeTransport())}).catch(i=>this._handleGetDataError(i)):this._initializeTransport();return}const n=this;this._getToken().then(function(i){if(n._isConnecting()){if(i==null||i==null){n._failUnauthorized();return}n._token=i,n._debug("connection token refreshed"),n._config.getData?n._config.getData().then(function(o){n._isConnecting()&&(n._data=o,n._initializeTransport())}).catch(o=>n._handleGetDataError(o)):n._initializeTransport()}}).catch(function(i){if(!n._isConnecting())return;if(i instanceof ud){n._failUnauthorized();return}n.emit("error",{type:"connectToken",error:{code:Zn.clientConnectToken,message:i!==void 0?i.toString():""}});const o=n._getReconnectDelay();n._debug("error on getting connection token, reconnect after "+o+" milliseconds",i),n._reconnecting=!1,n._reconnectTimeout=setTimeout(()=>{n._startReconnecting()},o)})}_handleGetDataError(t){if(t instanceof ud){this._failUnauthorized();return}this.emit("error",{type:"connectData",error:{code:Zn.badConfiguration,message:(t==null?void 0:t.toString())||""}});const r=this._getReconnectDelay();this._debug("error on getting connect data, reconnect after "+r+" milliseconds",t),this._reconnecting=!1,this._reconnectTimeout=setTimeout(()=>{this._startReconnecting()},r)}_connectError(t){this.state===Gi.Connecting&&(t.code===109&&(this._refreshRequired=!0),t.code<100||t.temporary===!0||t.code===109?(this.emit("error",{type:"connect",error:t}),this._debug("closing transport due to connect error"),this._disconnect(t.code,t.message,!0)):this._disconnect(t.code,t.message,!1))}_scheduleReconnect(){if(!this._isConnecting())return;let t=!1;this._emulation&&!this._transportWasOpen&&!this._triedAllTransports&&(t=!0);let r=this._getReconnectDelay();t&&(r=0),this._debug("reconnect after "+r+" milliseconds"),this._clearReconnectTimeout(),this._reconnectTimeout=setTimeout(()=>{this._startReconnecting()},r)}_constructConnectCommand(){const t={};this._token&&(t.token=this._token),this._data&&(t.data=this._data),this._config.name&&(t.name=this._config.name),this._config.version&&(t.version=this._config.version),Object.keys(this._config.headers).length>0&&(t.headers=this._config.headers);const r={};let n=!1;for(const i in this._serverSubs)if(this._serverSubs.hasOwnProperty(i)&&this._serverSubs[i].recoverable){n=!0;const o={recover:!0};this._serverSubs[i].offset&&(o.offset=this._serverSubs[i].offset),this._serverSubs[i].epoch&&(o.epoch=this._serverSubs[i].epoch),r[i]=o}return n&&(t.subs=r),{connect:t}}_getHistoryRequest(t,r){const n={channel:t};return r!==void 0&&(r.since&&(n.since={offset:r.since.offset},r.since.epoch&&(n.since.epoch=r.since.epoch)),r.limit!==void 0&&(n.limit=r.limit),r.reverse===!0&&(n.reverse=!0)),n}_methodCall(){return this._isConnected()?Promise.resolve():new Promise((t,r)=>{const n=setTimeout(function(){r({code:Zn.timeout,message:"timeout"})},this._config.timeout);this._promises[this._nextPromiseId()]={timeout:n,resolve:t,reject:r}})}_callPromise(t,r){return new Promise((n,i)=>{this._call(t,!1).then(o=>{var s;const a=r(o.reply);n(a),(s=o.next)===null||s===void 0||s.call(o)},o=>{var s;i(o.error),(s=o.next)===null||s===void 0||s.call(o)})})}_dataReceived(t){this._serverPing>0&&this._waitServerPing();const r=this._codec.decodeReplies(t);this._dispatchPromise=this._dispatchPromise.then(()=>{let n;this._dispatchPromise=new Promise(i=>{n=i}),this._dispatchSynchronized(r,n)})}_dispatchSynchronized(t,r){let n=Promise.resolve();for(const i in t)t.hasOwnProperty(i)&&(n=n.then(()=>this._dispatchReply(t[i])));n=n.then(()=>{r()})}_dispatchReply(t){let r;const n=new Promise(o=>{r=o});if(t==null)return this._debug("dispatch: got undefined or null reply"),r(),n;const i=t.id;return i&&i>0?this._handleReply(t,r):t.push?this._handlePush(t.push,r):this._handleServerPing(r),n}_call(t,r){return new Promise((n,i)=>{t.id=this._nextCommandId(),this._registerCall(t.id,n,i),r||this._addCommand(t)})}_startConnecting(){this._debug("start connecting"),this._setState(Gi.Connecting)&&this.emit("connecting",{code:Zh.connectCalled,reason:"connect called"}),this._client=null,this._startReconnecting()}_disconnect(t,r,n){if(this._isDisconnected())return;this._transportIsOpen=!1;const i=this.state;this._reconnecting=!1;const o={code:t,reason:r};let s=!1;if(n?s=this._setState(Gi.Connecting):(s=this._setState(Gi.Disconnected),this._rejectPromises({code:Zn.clientDisconnected,message:"disconnected"})),this._clearOutgoingRequests(),i===Gi.Connecting&&this._clearReconnectTimeout(),i===Gi.Connected&&this._clearConnectedState(),s&&(this._isConnecting()?this.emit("connecting",o):this.emit("disconnected",o)),this._transport){this._debug("closing existing transport");const a=this._transport;this._transport=null,a.close(),this._transportClosed=!0,this._nextTransportId()}else this._debug("no transport to close");this._scheduleReconnect()}_failUnauthorized(){this._disconnect(GS.unauthorized,"unauthorized",!1)}_getToken(){return this._debug("get connection token"),this._config.getToken?this._config.getToken({}):(this.emit("error",{type:"configuration",error:{code:Zn.badConfiguration,message:"token expired but no getToken function set in the configuration"}}),Promise.reject(new ud("")))}_refresh(){const t=this._client,r=this;this._getToken().then(function(n){if(t!==r._client)return;if(!n){r._failUnauthorized();return}if(r._token=n,r._debug("connection token refreshed"),!r._isConnected())return;const i={refresh:{token:r._token}};r._call(i,!1).then(o=>{const s=o.reply.refresh;r._refreshResponse(s),o.next&&o.next()},o=>{r._refreshError(o.error),o.next&&o.next()})}).catch(function(n){if(r._isConnected()){if(n instanceof ud){r._failUnauthorized();return}r.emit("error",{type:"refreshToken",error:{code:Zn.clientRefreshToken,message:n!==void 0?n.toString():""}}),r._refreshTimeout=setTimeout(()=>r._refresh(),r._getRefreshRetryDelay())}})}_refreshError(t){t.code<100||t.temporary===!0?(this.emit("error",{type:"refresh",error:t}),this._refreshTimeout=setTimeout(()=>this._refresh(),this._getRefreshRetryDelay())):this._disconnect(t.code,t.message,!1)}_getRefreshRetryDelay(){return GM(0,5e3,1e4)}_refreshResponse(t){this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null),t.expires&&(this._client=t.client,this._refreshTimeout=setTimeout(()=>this._refresh(),VM(t.ttl)))}_removeSubscription(t){t!==null&&delete this._subs[t.channel]}_unsubscribe(t){if(!this._transportIsOpen)return Promise.resolve();const n={unsubscribe:{channel:t.channel}},i=this;return new Promise((s,a)=>{this._call(n,!1).then(l=>{s(),l.next&&l.next()},l=>{s(),l.next&&l.next(),i._disconnect(Zh.unsubscribeError,"unsubscribe error",!0)})})}_getSub(t,r){if(r&&r>0){for(const i in this._subs)if(this._subs.hasOwnProperty(i)){const o=this._subs[i];if(o._id===r)return o}return null}const n=this._subs[t];return n||null}_isServerSub(t){return this._serverSubs[t]!==void 0}_sendSubscribeCommands(){const t=[];for(const r in this._subs){if(!this._subs.hasOwnProperty(r))continue;const n=this._subs[r];if(n._inflight!==!0&&n.state===bs.Subscribing){const i=n._subscribe();i&&t.push(i)}}return t}_connectResponse(t){if(this._transportIsOpen=!0,this._transportWasOpen=!0,this._reconnectAttempts=0,this._refreshRequired=!1,this._isConnected())return;this._client=t.client,this._setState(Gi.Connected),this._refreshTimeout&&clearTimeout(this._refreshTimeout),t.expires&&(this._refreshTimeout=setTimeout(()=>this._refresh(),VM(t.ttl))),this._session=t.session,this._node=t.node,this.startBatching(),this._sendSubscribeCommands(),this.stopBatching();const r={client:t.client,transport:this._transport.subName()};t.data&&(r.data=t.data),this.emit("connected",r),this._resolvePromises(),this._processServerSubs(t.subs||{}),t.ping&&t.ping>0?(this._serverPing=t.ping*1e3,this._sendPong=t.pong===!0,this._waitServerPing()):this._serverPing=0}_processServerSubs(t){for(const r in t){if(!t.hasOwnProperty(r))continue;const n=t[r];this._serverSubs[r]={offset:n.offset,epoch:n.epoch,recoverable:n.recoverable||!1};const i=this._getSubscribeContext(r,n);this.emit("subscribed",i)}for(const r in t){if(!t.hasOwnProperty(r))continue;const n=t[r];if(n.recovered){const i=n.publications;if(i&&i.length>0)for(const o in i)i.hasOwnProperty(o)&&this._handlePublication(r,i[o])}}for(const r in this._serverSubs)this._serverSubs.hasOwnProperty(r)&&(t[r]||(this.emit("unsubscribed",{channel:r}),delete this._serverSubs[r]))}_clearRefreshTimeout(){this._refreshTimeout!==null&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null)}_clearReconnectTimeout(){this._reconnectTimeout!==null&&(clearTimeout(this._reconnectTimeout),this._reconnectTimeout=null)}_clearServerPingTimeout(){this._serverPingTimeout!==null&&(clearTimeout(this._serverPingTimeout),this._serverPingTimeout=null)}_waitServerPing(){this._config.maxServerPingDelay!==0&&this._isConnected()&&(this._clearServerPingTimeout(),this._serverPingTimeout=setTimeout(()=>{this._isConnected()&&this._disconnect(Zh.noPing,"no ping",!0)},this._serverPing+this._config.maxServerPingDelay))}_getSubscribeContext(t,r){const n={channel:t,positioned:!1,recoverable:!1,wasRecovering:!1,recovered:!1,hasRecoveredPublications:!1};r.recovered&&(n.recovered=!0),r.positioned&&(n.positioned=!0),r.recoverable&&(n.recoverable=!0),r.was_recovering&&(n.wasRecovering=!0);let i="";"epoch"in r&&(i=r.epoch);let o=0;return"offset"in r&&(o=r.offset),(n.positioned||n.recoverable)&&(n.streamPosition={offset:o,epoch:i}),Array.isArray(r.publications)&&r.publications.length>0&&(n.hasRecoveredPublications=!0),r.data&&(n.data=r.data),n}_handleReply(t,r){const n=t.id;if(!(n in this._callbacks)){r();return}const i=this._callbacks[n];if(clearTimeout(this._callbacks[n].timeout),delete this._callbacks[n],x9e(t)){const o=i.errback;if(!o){r();return}const s={code:t.error.code,message:t.error.message||"",temporary:t.error.temporary||!1};o({error:s,next:r})}else{const o=i.callback;if(!o)return;o({reply:t,next:r})}}_handleJoin(t,r,n){const i=this._getSub(t,n);if(!i&&t){if(this._isServerSub(t)){const o={channel:t,info:this._getJoinLeaveContext(r.info)};this.emit("join",o)}return}i._handleJoin(r)}_handleLeave(t,r,n){const i=this._getSub(t,n);if(!i&&t){if(this._isServerSub(t)){const o={channel:t,info:this._getJoinLeaveContext(r.info)};this.emit("leave",o)}return}i._handleLeave(r)}_handleUnsubscribe(t,r){const n=this._getSub(t,0);if(!n&&t){this._isServerSub(t)&&(delete this._serverSubs[t],this.emit("unsubscribed",{channel:t}));return}r.code<2500?n._setUnsubscribed(r.code,r.reason,!1):n._setSubscribing(r.code,r.reason)}_handleSubscribe(t,r){this._serverSubs[t]={offset:r.offset,epoch:r.epoch,recoverable:r.recoverable||!1},this.emit("subscribed",this._getSubscribeContext(t,r))}_handleDisconnect(t){const r=t.code;let n=!0;(r>=3500&&r<4e3||r>=4500&&r<5e3)&&(n=!1),this._disconnect(r,t.reason,n)}_getPublicationContext(t,r){const n={channel:t,data:r.data};return r.offset&&(n.offset=r.offset),r.info&&(n.info=this._getJoinLeaveContext(r.info)),r.tags&&(n.tags=r.tags),n}_getJoinLeaveContext(t){const r={client:t.client,user:t.user},n=t.conn_info;n&&(r.connInfo=n);const i=t.chan_info;return i&&(r.chanInfo=i),r}_handlePublication(t,r,n){const i=this._getSub(t,n);if(!i&&t){if(this._isServerSub(t)){const o=this._getPublicationContext(t,r);this.emit("publication",o),r.offset!==void 0&&(this._serverSubs[t].offset=r.offset)}return}i._handlePublication(r)}_handleMessage(t){this.emit("message",{data:t.data})}_handleServerPing(t){if(this._sendPong){const r={};this._transportSendCommands([r])}t()}_handlePush(t,r){const n=t.channel,i=t.id;t.pub?this._handlePublication(n,t.pub,i):t.message?this._handleMessage(t.message):t.join?this._handleJoin(n,t.join,i):t.leave?this._handleLeave(n,t.leave,i):t.unsubscribe?this._handleUnsubscribe(n,t.unsubscribe):t.subscribe?this._handleSubscribe(n,t.subscribe):t.disconnect&&this._handleDisconnect(t.disconnect),r()}_flush(){const t=this._commands.slice(0);this._commands=[],this._transportSendCommands(t)}_createErrorObject(t,r,n){const i={code:t,message:r};return n&&(i.temporary=!0),i}_registerCall(t,r,n){this._callbacks[t]={callback:r,errback:n,timeout:null},this._callbacks[t].timeout=setTimeout(()=>{delete this._callbacks[t],Whe(n)&&n({error:this._createErrorObject(Zn.timeout,"timeout")})},this._config.timeout)}_addCommand(t){this._batching?this._commands.push(t):this._transportSendCommands([t])}_nextPromiseId(){return++this._promiseId}_nextTransportId(){return++this._transportId}_resolvePromises(){for(const t in this._promises)this._promises.hasOwnProperty(t)&&(this._promises[t].timeout&&clearTimeout(this._promises[t].timeout),this._promises[t].resolve(),delete this._promises[t])}_rejectPromises(t){for(const r in this._promises)this._promises.hasOwnProperty(r)&&(this._promises[r].timeout&&clearTimeout(this._promises[r].timeout),this._promises[r].reject(t),delete this._promises[r])}}JH.SubscriptionState=bs;JH.State=Gi;JH.UnauthorizedError=ud;/** * React Router v6.30.3 * * 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 */const k9e=v.createContext({outlet:null,matches:[],isDataRoute:!1});function $$t(){let{matches:e}=v.useContext(k9e),t=e[e.length-1];return t?t.params:{}}new Promise(()=>{});var O9e=Object.defineProperty,zM=Object.getOwnPropertySymbols,Uhe=Object.prototype.hasOwnProperty,jhe=Object.prototype.propertyIsEnumerable,MY=(e,t,r)=>t in e?O9e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,fV=(e,t)=>{for(var r in t||(t={}))Uhe.call(t,r)&&MY(e,r,t[r]);if(zM)for(var r of zM(t))jhe.call(t,r)&&MY(e,r,t[r]);return e},gV=(e,t)=>{var r={};for(var n in e)Uhe.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&zM)for(var n of zM(e))t.indexOf(n)<0&&jhe.call(e,n)&&(r[n]=e[n]);return r};/** * @license QR Code generator library (TypeScript) * Copyright (c) Project Nayuki. * SPDX-License-Identifier: MIT */var om;(e=>{const t=class an{constructor(l,c,u,d){if(this.version=l,this.errorCorrectionLevel=c,this.modules=[],this.isFunction=[],lan.MAX_VERSION)throw new RangeError("Version value out of range");if(d<-1||d>7)throw new RangeError("Mask value out of range");this.size=l*4+17;let h=[];for(let f=0;f7)throw new RangeError("Invalid value");let f,g;for(f=u;;f++){const S=an.getNumDataCodewords(f,c)*8,x=s.getTotalBits(l,f);if(x<=S){g=x;break}if(f>=d)throw new RangeError("Data too long")}for(const S of[an.Ecc.MEDIUM,an.Ecc.QUARTILE,an.Ecc.HIGH])p&&g<=an.getNumDataCodewords(f,S)*8&&(c=S);let m=[];for(const S of l){r(S.mode.modeBits,4,m),r(S.numChars,S.mode.numCharCountBits(f),m);for(const x of S.getData())m.push(x)}i(m.length==g);const y=an.getNumDataCodewords(f,c)*8;i(m.length<=y),r(0,Math.min(4,y-m.length),m),r(0,(8-m.length%8)%8,m),i(m.length%8==0);for(let S=236;m.lengthb[x>>>3]|=S<<7-(x&7)),new an(f,c,b,h)}getModule(l,c){return 0<=l&&l>>9)*1335;const d=(c<<10|u)^21522;i(d>>>15==0);for(let h=0;h<=5;h++)this.setFunctionModule(8,h,n(d,h));this.setFunctionModule(8,7,n(d,6)),this.setFunctionModule(8,8,n(d,7)),this.setFunctionModule(7,8,n(d,8));for(let h=9;h<15;h++)this.setFunctionModule(14-h,8,n(d,h));for(let h=0;h<8;h++)this.setFunctionModule(this.size-1-h,8,n(d,h));for(let h=8;h<15;h++)this.setFunctionModule(8,this.size-15+h,n(d,h));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let l=this.version;for(let u=0;u<12;u++)l=l<<1^(l>>>11)*7973;const c=this.version<<12|l;i(c>>>18==0);for(let u=0;u<18;u++){const d=n(c,u),h=this.size-11+u%3,p=Math.floor(u/3);this.setFunctionModule(h,p,d),this.setFunctionModule(p,h,d)}}drawFinderPattern(l,c){for(let u=-4;u<=4;u++)for(let d=-4;d<=4;d++){const h=Math.max(Math.abs(d),Math.abs(u)),p=l+d,f=c+u;0<=p&&p{(S!=g-h||E>=f)&&b.push(x[S])});return i(b.length==p),b}drawCodewords(l){if(l.length!=Math.floor(an.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let c=0;for(let u=this.size-1;u>=1;u-=2){u==6&&(u=5);for(let d=0;d>>3],7-(c&7)),c++)}}i(c==l.length*8)}applyMask(l){if(l<0||l>7)throw new RangeError("Mask value out of range");for(let c=0;c5&&l++):(this.finderPenaltyAddHistory(f,g),p||(l+=this.finderPenaltyCountPatterns(g)*an.PENALTY_N3),p=this.modules[h][m],f=1);l+=this.finderPenaltyTerminateAndCount(p,f,g)*an.PENALTY_N3}for(let h=0;h5&&l++):(this.finderPenaltyAddHistory(f,g),p||(l+=this.finderPenaltyCountPatterns(g)*an.PENALTY_N3),p=this.modules[m][h],f=1);l+=this.finderPenaltyTerminateAndCount(p,f,g)*an.PENALTY_N3}for(let h=0;hp+(f?1:0),c);const u=this.size*this.size,d=Math.ceil(Math.abs(c*20-u*10)/u)-1;return i(0<=d&&d<=9),l+=d*an.PENALTY_N4,i(0<=l&&l<=2568888),l}getAlignmentPatternPositions(){if(this.version==1)return[];{const l=Math.floor(this.version/7)+2,c=this.version==32?26:Math.ceil((this.version*4+4)/(l*2-2))*2;let u=[6];for(let d=this.size-7;u.lengthan.MAX_VERSION)throw new RangeError("Version number out of range");let c=(16*l+128)*l+64;if(l>=2){const u=Math.floor(l/7)+2;c-=(25*u-10)*u-55,l>=7&&(c-=36)}return i(208<=c&&c<=29648),c}static getNumDataCodewords(l,c){return Math.floor(an.getNumRawDataModules(l)/8)-an.ECC_CODEWORDS_PER_BLOCK[c.ordinal][l]*an.NUM_ERROR_CORRECTION_BLOCKS[c.ordinal][l]}static reedSolomonComputeDivisor(l){if(l<1||l>255)throw new RangeError("Degree out of range");let c=[];for(let d=0;d0);for(const d of l){const h=d^u.shift();u.push(0),c.forEach((p,f)=>u[f]^=an.reedSolomonMultiply(p,h))}return u}static reedSolomonMultiply(l,c){if(l>>>8||c>>>8)throw new RangeError("Byte out of range");let u=0;for(let d=7;d>=0;d--)u=u<<1^(u>>>7)*285,u^=(c>>>d&1)*l;return i(u>>>8==0),u}finderPenaltyCountPatterns(l){const c=l[1];i(c<=this.size*3);const u=c>0&&l[2]==c&&l[3]==c*3&&l[4]==c&&l[5]==c;return(u&&l[0]>=c*4&&l[6]>=c?1:0)+(u&&l[6]>=c*4&&l[0]>=c?1:0)}finderPenaltyTerminateAndCount(l,c,u){return l&&(this.finderPenaltyAddHistory(c,u),c=0),c+=this.size,this.finderPenaltyAddHistory(c,u),this.finderPenaltyCountPatterns(u)}finderPenaltyAddHistory(l,c){c[0]==0&&(l+=this.size),c.pop(),c.unshift(l)}};t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function r(a,l,c){if(l<0||l>31||a>>>l)throw new RangeError("Value out of range");for(let u=l-1;u>=0;u--)c.push(a>>>u&1)}function n(a,l){return(a>>>l&1)!=0}function i(a){if(!a)throw new Error("Assertion error")}const o=class mi{constructor(l,c,u){if(this.mode=l,this.numChars=c,this.bitData=u,c<0)throw new RangeError("Invalid argument");this.bitData=u.slice()}static makeBytes(l){let c=[];for(const u of l)r(u,8,c);return new mi(mi.Mode.BYTE,l.length,c)}static makeNumeric(l){if(!mi.isNumeric(l))throw new RangeError("String contains non-numeric characters");let c=[];for(let u=0;u=1<{(t=>{const r=class{constructor(i,o){this.ordinal=i,this.formatBits=o}};r.LOW=new r(0,1),r.MEDIUM=new r(1,0),r.QUARTILE=new r(2,3),r.HIGH=new r(3,2),t.Ecc=r})(e.QrCode||(e.QrCode={}))})(om||(om={}));(e=>{(t=>{const r=class{constructor(i,o){this.modeBits=i,this.numBitsCharCount=o}numCharCountBits(i){return this.numBitsCharCount[Math.floor((i+7)/17)]}};r.NUMERIC=new r(1,[10,12,14]),r.ALPHANUMERIC=new r(2,[9,11,13]),r.BYTE=new r(4,[8,16,16]),r.KANJI=new r(8,[8,10,12]),r.ECI=new r(7,[0,0,0]),t.Mode=r})(e.QrSegment||(e.QrSegment={}))})(om||(om={}));var ay=om;/** * @license qrcode.react * Copyright (c) Paul O'Shannessy * SPDX-License-Identifier: ISC */var N9e={L:ay.QrCode.Ecc.LOW,M:ay.QrCode.Ecc.MEDIUM,Q:ay.QrCode.Ecc.QUARTILE,H:ay.QrCode.Ecc.HIGH},Khe=128,qhe="L",Xhe="#FFFFFF",Yhe="#000000",Zhe=!1,Qhe=1,B9e=4,$9e=0,G9e=.1;function Jhe(e,t=0){const r=[];return e.forEach(function(n,i){let o=null;n.forEach(function(s,a){if(!s&&o!==null){r.push(`M${o+t} ${i+t}h${a-o}v1H${o+t}z`),o=null;return}if(a===n.length-1){if(!s)return;o===null?r.push(`M${a+t},${i+t} h1v1H${a+t}z`):r.push(`M${o+t},${i+t} h${a+1-o}v1H${o+t}z`);return}s&&o===null&&(o=a)})}),r.join("")}function epe(e,t){return e.slice().map((r,n)=>n=t.y+t.h?r:r.map((i,o)=>o=t.x+t.w?i:!1))}function V9e(e,t,r,n){if(n==null)return null;const i=e.length+r*2,o=Math.floor(t*G9e),s=i/t,a=(n.width||o)*s,l=(n.height||o)*s,c=n.x==null?e.length/2-a/2:n.x*s,u=n.y==null?e.length/2-l/2:n.y*s,d=n.opacity==null?1:n.opacity;let h=null;if(n.excavate){let f=Math.floor(c),g=Math.floor(u),m=Math.ceil(a+c-f),y=Math.ceil(l+u-g);h={x:f,y:g,w:m,h:y}}const p=n.crossOrigin;return{x:c,y:u,h:l,w:a,excavation:h,opacity:d,crossOrigin:p}}function z9e(e,t){return t!=null?Math.max(Math.floor(t),0):e?B9e:$9e}function tpe({value:e,level:t,minVersion:r,includeMargin:n,marginSize:i,imageSettings:o,size:s,boostLevel:a}){let l=Q.useMemo(()=>{const f=(Array.isArray(e)?e:[e]).reduce((g,m)=>(g.push(...ay.QrSegment.makeSegments(m)),g),[]);return ay.QrCode.encodeSegments(f,N9e[t],r,void 0,void 0,a)},[e,t,r,a]);const{cells:c,margin:u,numCells:d,calculatedImageSettings:h}=Q.useMemo(()=>{let p=l.getModules();const f=z9e(n,i),g=p.length+f*2,m=V9e(p,s,f,o);return{cells:p,margin:f,numCells:g,calculatedImageSettings:m}},[l,s,o,n,i]);return{qrcode:l,margin:u,cells:c,numCells:d,calculatedImageSettings:h}}var H9e=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),W9e=Q.forwardRef(function(t,r){const n=t,{value:i,size:o=Khe,level:s=qhe,bgColor:a=Xhe,fgColor:l=Yhe,includeMargin:c=Zhe,minVersion:u=Qhe,boostLevel:d,marginSize:h,imageSettings:p}=n,g=gV(n,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:m}=g,y=gV(g,["style"]),b=p==null?void 0:p.src,S=Q.useRef(null),x=Q.useRef(null),E=Q.useCallback(O=>{S.current=O,typeof r=="function"?r(O):r&&(r.current=O)},[r]),[R,T]=Q.useState(!1),{margin:M,cells:D,numCells:A,calculatedImageSettings:I}=tpe({value:i,level:s,minVersion:u,boostLevel:d,includeMargin:c,marginSize:h,imageSettings:p,size:o});Q.useEffect(()=>{if(S.current!=null){const O=S.current,k=O.getContext("2d");if(!k)return;let B=D;const H=x.current,N=I!=null&&H!==null&&H.complete&&H.naturalHeight!==0&&H.naturalWidth!==0;N&&I.excavation!=null&&(B=epe(D,I.excavation));const z=window.devicePixelRatio||1;O.height=O.width=o*z;const W=o/A*z;k.scale(W,W),k.fillStyle=a,k.fillRect(0,0,A,A),k.fillStyle=l,H9e?k.fill(new Path2D(Jhe(B,M))):D.forEach(function(V,$){V.forEach(function(K,q){K&&k.fillRect(q+M,$+M,1,1)})}),I&&(k.globalAlpha=I.opacity),N&&k.drawImage(H,I.x+M,I.y+M,I.w,I.h)}}),Q.useEffect(()=>{T(!1)},[b]);const L=fV({height:o,width:o},m);let F=null;return b!=null&&(F=Q.createElement("img",{src:b,key:b,style:{display:"none"},onLoad:()=>{T(!0)},ref:x,crossOrigin:I==null?void 0:I.crossOrigin})),Q.createElement(Q.Fragment,null,Q.createElement("canvas",fV({style:L,height:o,width:o,ref:E,role:"img"},y)),F)});W9e.displayName="QRCodeCanvas";var U9e=Q.forwardRef(function(t,r){const n=t,{value:i,size:o=Khe,level:s=qhe,bgColor:a=Xhe,fgColor:l=Yhe,includeMargin:c=Zhe,minVersion:u=Qhe,boostLevel:d,title:h,marginSize:p,imageSettings:f}=n,g=gV(n,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:m,cells:y,numCells:b,calculatedImageSettings:S}=tpe({value:i,level:s,minVersion:u,boostLevel:d,includeMargin:c,marginSize:p,imageSettings:f,size:o});let x=y,E=null;f!=null&&S!=null&&(S.excavation!=null&&(x=epe(y,S.excavation)),E=Q.createElement("image",{href:f.src,height:S.h,width:S.w,x:S.x+m,y:S.y+m,preserveAspectRatio:"none",opacity:S.opacity,crossOrigin:S.crossOrigin}));const R=Jhe(x,m);return Q.createElement("svg",fV({height:o,width:o,viewBox:`0 0 ${b} ${b}`,ref:r,role:"img"},g),!!h&&Q.createElement("title",null,h),Q.createElement("path",{fill:a,d:`M0,0 h${b}v${b}H0z`,shapeRendering:"crispEdges"}),Q.createElement("path",{fill:l,d:R,shapeRendering:"crispEdges"}),E)});U9e.displayName="QRCodeSVG";var Kp=class{constructor(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}setFrameworkOverrides(e){this.frameworkOverrides=e}getListeners(e,t,r){const n=t?this.allAsyncListeners:this.allSyncListeners;let i=n.get(e);return!i&&r&&(i=new Set,n.set(e,i)),i}noRegisteredListenersExist(){return this.allSyncListeners.size===0&&this.allAsyncListeners.size===0&&this.globalSyncListeners.size===0&&this.globalAsyncListeners.size===0}addEventListener(e,t,r=!1){this.getListeners(e,r,!0).add(t)}removeEventListener(e,t,r=!1){const n=this.getListeners(e,r,!1);n&&(n.delete(t),n.size===0&&(r?this.allAsyncListeners:this.allSyncListeners).delete(e))}addGlobalListener(e,t=!1){(t?this.globalAsyncListeners:this.globalSyncListeners).add(e)}removeGlobalListener(e,t=!1){(t?this.globalAsyncListeners:this.globalSyncListeners).delete(e)}dispatchEvent(e){const t=e;this.dispatchToListeners(t,!0),this.dispatchToListeners(t,!1),this.firedEvents[t.type]=!0}dispatchEventOnce(e){this.firedEvents[e.type]||this.dispatchEvent(e)}dispatchToListeners(e,t){const r=e.type;if(t&&"event"in e){const a=e.event;a instanceof Event&&(e.eventPath=a.composedPath())}const n=(a,l)=>a.forEach(c=>{if(!l.has(c))return;const u=this.frameworkOverrides?()=>this.frameworkOverrides.wrapIncoming(()=>c(e)):()=>c(e);t?this.dispatchAsync(u):u()}),i=this.getListeners(r,t,!1)??new Set,o=new Set(i);o.size>0&&n(o,i),new Set(t?this.globalAsyncListeners:this.globalSyncListeners).forEach(a=>{const l=this.frameworkOverrides?()=>this.frameworkOverrides.wrapIncoming(()=>a(r,e)):()=>a(r,e);t?this.dispatchAsync(l):l()})}dispatchAsync(e){if(this.asyncFunctionsQueue.push(e),!this.scheduled){const t=()=>{window.setTimeout(this.flushAsyncQueue.bind(this),0)};this.frameworkOverrides?this.frameworkOverrides.wrapIncoming(t):t(),this.scheduled=!0}}flushAsyncQueue(){this.scheduled=!1;const e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],e.forEach(t=>t())}};function j9e(e,t){return t}function e5(e){return(e==null?void 0:e.getLocaleTextFunc())??j9e}function Al(e,t,r){r==null||typeof r=="string"&&r==""?t5(e,t):Fl(e,t,r)}function Fl(e,t,r){e.setAttribute(rpe(t),r.toString())}function t5(e,t){e.removeAttribute(rpe(t))}function rpe(e){return`aria-${e}`}function Un(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function K9e(e){let t;return e==="asc"?t="ascending":e==="desc"?t="descending":e==="mixed"?t="other":t="none",t}function q9e(e){return parseInt(e.getAttribute("aria-posinset"),10)}function X9e(e){return e.getAttribute("aria-label")}function jn(e,t){Al(e,"label",t)}function Mp(e,t){Al(e,"labelledby",t)}function CA(e,t){Al(e,"describedby",t)}function npe(e,t){Al(e,"live",t)}function Y9e(e,t){Al(e,"atomic",t)}function Z9e(e,t){Al(e,"relevant",t)}function l1(e,t){Al(e,"level",t)}function HM(e,t){Al(e,"disabled",t)}function r5(e,t){Al(e,"hidden",t)}function ipe(e,t){Al(e,"activedescendant",t)}function Ds(e,t){Fl(e,"expanded",t)}function ope(e){t5(e,"expanded")}function bA(e,t){Fl(e,"setsize",t)}function SA(e,t){Fl(e,"posinset",t)}function Q9e(e,t){Fl(e,"multiselectable",t)}function spe(e,t){Fl(e,"rowcount",t)}function n5(e,t){Fl(e,"rowindex",t)}function ape(e,t){Fl(e,"colcount",t)}function i5(e,t){Fl(e,"colindex",t)}function lpe(e,t){Fl(e,"colspan",t)}function cpe(e,t){Fl(e,"sort",t)}function upe(e){t5(e,"sort")}function _w(e,t){Al(e,"selected",t)}function dpe(e,t){Fl(e,"checked",t===void 0?"mixed":t)}function o5(e,t){Al(e,"controls",t.id),Mp(t,e.id)}function s5(e,t){return t===void 0?e("ariaIndeterminate","indeterminate"):t===!0?e("ariaChecked","checked"):e("ariaUnchecked","unchecked")}var F2,L2,_2,k2,O2,mV,vV,N2;function Im(){return F2===void 0&&(F2=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),F2}function hpe(){if(L2===void 0){const e=window;L2=!!e.chrome&&(!!e.chrome.webstore||!!e.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return L2}function ppe(){return _2===void 0&&(_2=/(firefox)/i.test(navigator.userAgent)),_2}function fpe(){return k2===void 0&&(k2=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),k2}function fp(){return O2===void 0&&(O2=/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1),O2}function yV(e){if(!e)return null;const t=e.tabIndex,r=e.getAttribute("tabIndex");return t===-1&&(r===null||r===""&&!ppe())?null:t.toString()}function J9e(){if(N2!==void 0)return N2;if(!document.body)return-1;let e=1e6;const t=ppe()?6e6:1e9,r=document.createElement("div");for(document.body.appendChild(r);;){const n=e*2;if(r.style.height=n+"px",n>t||r.clientHeight!==n)break;e=n}return document.body.removeChild(r),N2=e,e}function eUe(){return vV==null&&gpe(),vV}function gpe(){const e=document.body,t=document.createElement("div");t.style.width=t.style.height="100px",t.style.opacity="0",t.style.overflow="scroll",t.style.msOverflowStyle="scrollbar",t.style.position="absolute",e.appendChild(t);let r=t.offsetWidth-t.clientWidth;r===0&&t.clientWidth===0&&(r=null),t.parentNode&&t.parentNode.removeChild(t),r!=null&&(vV=r,mV=r===0)}function mpe(){return mV==null&&gpe(),mV}var ET;function WM(e,t,r){const n=e.parentElement;let i=n&&n.firstChild;for(;i;)t&&i.classList.toggle(t,i===e),r&&i.classList.toggle(r,i!==e),i=i.nextSibling}var tUe="[tabindex], input, select, button, textarea, [href]",vpe="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function a5(e){const t=Element.prototype.matches||Element.prototype.msMatchesSelector,n=t.call(e,"input, select, button, textarea"),i=t.call(e,vpe),o=ps(e);return n&&!i&&o}function Pt(e,t,r={}){const{skipAriaHidden:n}=r;e.classList.toggle("ag-hidden",!t),n||r5(e,!t)}function ype(e,t,r={}){const{skipAriaHidden:n}=r;e.classList.toggle("ag-invisible",!t),n||r5(e,!t)}function cl(e,t){const r="disabled",n=t?i=>i.setAttribute(r,""):i=>i.removeAttribute(r);n(e),Epe(e.querySelectorAll("input"),i=>n(i))}function Bg(e,t,r){let n=0;for(;e;){if(e.classList.contains(t))return!0;if(e=e.parentElement,typeof r=="number"){if(++n>r)break}else if(e===r)break}return!1}function Dm(e){const{height:t,width:r,borderTopWidth:n,borderRightWidth:i,borderBottomWidth:o,borderLeftWidth:s,paddingTop:a,paddingRight:l,paddingBottom:c,paddingLeft:u,marginTop:d,marginRight:h,marginBottom:p,marginLeft:f,boxSizing:g}=window.getComputedStyle(e);return{height:parseFloat(t||"0"),width:parseFloat(r||"0"),borderTopWidth:parseFloat(n||"0"),borderRightWidth:parseFloat(i||"0"),borderBottomWidth:parseFloat(o||"0"),borderLeftWidth:parseFloat(s||"0"),paddingTop:parseFloat(a||"0"),paddingRight:parseFloat(l||"0"),paddingBottom:parseFloat(c||"0"),paddingLeft:parseFloat(u||"0"),marginTop:parseFloat(d||"0"),marginRight:parseFloat(h||"0"),marginBottom:parseFloat(p||"0"),marginLeft:parseFloat(f||"0"),boxSizing:g}}function wA(e){const t=Dm(e);return t.boxSizing==="border-box"?t.height-t.paddingTop-t.paddingBottom:t.height}function Xy(e){const t=Dm(e);return t.boxSizing==="border-box"?t.width-t.paddingLeft-t.paddingRight:t.width}function xA(e){const{height:t,marginBottom:r,marginTop:n}=Dm(e);return Math.floor(t+r+n)}function sm(e){const{width:t,marginLeft:r,marginRight:n}=Dm(e);return Math.floor(t+r+n)}function Cpe(e){const t=e.getBoundingClientRect(),{borderTopWidth:r,borderLeftWidth:n,borderRightWidth:i,borderBottomWidth:o}=Dm(e);return{top:t.top+(r||0),left:t.left+(n||0),right:t.right+(i||0),bottom:t.bottom+(o||0)}}function UM(){if(typeof ET=="boolean")return ET;const e=document.createElement("div");return e.style.direction="rtl",e.style.width="1px",e.style.height="1px",e.style.position="fixed",e.style.top="0px",e.style.overflow="hidden",e.dir="rtl",e.innerHTML=`
`,document.body.appendChild(e),e.scrollLeft=1,ET=Math.floor(e.scrollLeft)===0,document.body.removeChild(e),ET}function jM(e,t){let r=e.scrollLeft;return t&&(r=Math.abs(r),hpe()&&!UM()&&(r=e.scrollWidth-e.getBoundingClientRect().width-r)),r}function KM(e,t,r){r&&(UM()?t*=-1:(Im()||hpe())&&(t=e.scrollWidth-e.getBoundingClientRect().width-t)),e.scrollLeft=t}function Jr(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}function ai(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function bpe(e){return!!e.offsetParent}function ps(e){const t=e;return t.checkVisibility?t.checkVisibility({checkVisibilityCSS:!0}):!(!bpe(e)||window.getComputedStyle(e).visibility!=="visible")}function Ts(e){const t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function Spe(e,t,r){r&&r.nextSibling===t||(r?r.nextSibling?e.insertBefore(t,r.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.insertAdjacentElement("afterbegin",t))}function wpe(e,t){for(let r=0;r`-${t.toLocaleLowerCase()}`)}function xpe(e,t){if(t)for(const[r,n]of Object.entries(t)){if(!r||!r.length||n==null)continue;const i=nUe(r),o=n.toString(),s=o.replace(/\s*!important/g,""),a=s.length!=o.length?"important":void 0;e.style.setProperty(i,s,a)}}function iUe(e){return e.clientWidtht.push(r)),t}function aUe(e,t){if(e)for(let r=0;r{const n=r.getGui();n!=null&&(typeof n=="object"?t.appendChild(n):t.innerHTML=n)})}function Ga(e,t,r){const i=_pe(e).ResizeObserver,o=i?new i(r):null;return o==null||o.observe(t),()=>o==null?void 0:o.disconnect()}function Ai(e){return e==null||e===""?null:e}function Qe(e){return e!=null&&e!==""}function Kr(e){return!Qe(e)}function ia(e){return e!=null&&typeof e.toString=="function"?e.toString():null}function Yy(e,t){const r=e?JSON.stringify(e):null,n=t?JSON.stringify(t):null;return r===n}function xP(e,t,r=!1){const n=e==null,i=t==null;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),n&&i)return 0;if(n)return-1;if(i)return 1;function o(s,a){return s>a?1:sconsole.warn("AG Grid: "+e,...t),e+(t==null?void 0:t.join("")))}function Ty(e,...t){c5(()=>console.error("AG Grid: "+e,...t),e+(t==null?void 0:t.join("")))}var B2=[],$2=!1;function DY(e){B2.push(e),!$2&&($2=!0,window.setTimeout(()=>{const t=B2.slice();B2.length=0,$2=!1,t.forEach(r=>r())},0))}function no(e,t,r){let n;return function(...i){const o=this;window.clearTimeout(n),n=window.setTimeout(function(){e.isAlive()&&t.apply(o,i)},r)}}function AY(e,t){let r=0;return function(...n){const i=this,o=new Date().getTime();o-r{const l=new Date().getTime()-i>r;(e()||l)&&(t(),s=!0,o!=null&&(window.clearInterval(o),o=null))};a(),s||(o=window.setInterval(a,10))}var $t="33.0.4",FY=2e3,LY=100,Mpe="_version_",EP=null,Zy=`${Rpe}/javascript-data-grid`;function lUe(e){EP=e}function cUe(e){Zy=e}function Ipe(e,t,r){return(EP==null?void 0:EP.getConsoleMessage(e,t))??[pUe(e,t,r)]}function u5(e,t,r,n){e(`error #${t}`,...Ipe(t,r,n))}function uUe(e){if(!e)return String(e);const t={};for(const r of Object.keys(e))typeof e[r]!="object"&&typeof e[r]!="function"&&(t[r]=e[r]);return JSON.stringify(t)}function dUe(e){let t=e;return e instanceof Error?t=e.toString():typeof e=="object"&&(t=uUe(e)),t}function XM(e){return e===void 0?"undefined":e===null?"null":e}function CV(e,t){return`${e}?${t.toString()}`}function hUe(e,t,r){const n=Array.from(t.entries()).sort((o,s)=>s[1].length-o[1].length);let i=CV(e,t);for(const[o,s]of n){if(o===Mpe)continue;const a=i.length-r;if(a<=0)break;const l="...",c=a+l.length,u=s.length-c>LY?s.slice(0,s.length-c)+l:s.slice(0,LY)+l;t.set(o,u),i=CV(e,t)}return i}function Dpe(e,t){const r=new URLSearchParams;r.append(Mpe,$t),t&&Object.entries(t).forEach(([o,s])=>{r.append(o,dUe(s))});const n=`${Zy}/errors/${e}`,i=CV(n,r);return i.length<=FY?i:hUe(n,r,FY)}var pUe=(e,t,r)=>{const n=Dpe(e,t);return`${r?r+` `:""}Visit ${n}${r?"":` Alternatively register the ValidationModule to see the full message in the console.`}`};function we(...e){u5(au,e[0],e[1])}function Cr(...e){u5(Ty,e[0],e[1])}function bV(e,t,r){u5(Ty,e,t,r)}function Ape(e,t){const r=t[0];return`error #${r} `+Ipe(r,t[1],e).join(" ")}function yl(...e){return Ape(void 0,e)}function Fpe(...e){return Ape(` `,e)}function Lpe(e,t){return e.get("rowModelType")===t}function En(e,t){return Lpe(e,"clientSide")}function Ro(e,t){return Lpe(e,"serverSide")}function Eo(e,t){return e.get("domLayout")===t}function Fa(e){return eC(e)!==void 0}function d5(e){return typeof e.get("getRowHeight")=="function"}function fUe(e,t){return t?!e.get("enableStrictPivotColumnOrder"):e.get("maintainColumnOrder")}function ls(e,t,r=!1,n){const{gos:i,environment:o}=e;if(n==null&&(n=o.getDefaultRowHeight()),d5(i)){if(r)return{height:n,estimated:!0};const l={node:t,data:t.data},c=i.getCallback("getRowHeight")(l);if(SV(c))return c===0&&we(23),{height:Math.max(1,c),estimated:!1}}if(t.detail&&i.get("masterDetail"))return gUe(i);const s=i.get("rowHeight");return{height:s&&SV(s)?s:n,estimated:!1}}function gUe(e){if(e.get("detailRowAutoHeight"))return{height:1,estimated:!1};const t=e.get("detailRowHeight");return SV(t)?{height:t,estimated:!1}:{height:300,estimated:!1}}function oa(e){const{environment:t,gos:r}=e,n=r.get("rowHeight");if(!n||Kr(n))return t.getDefaultRowHeight();const i=t.refreshRowHeightVariable();return i!==-1?i:(we(24),t.getDefaultRowHeight())}function SV(e){return!isNaN(e)&&typeof e=="number"&&isFinite(e)}function YM(e,t,r){const n=t[e.getDomDataKey()];return n?n[r]:void 0}function am(e,t,r,n){const i=e.getDomDataKey();let o=t[i];Kr(o)&&(o={},t[i]=o),o[r]=n}function pn(e){const{gos:t,eGridDiv:r}=e;let n=null;const i=t.get("getDocument");return i&&Qe(i)?n=i():r&&(n=r.ownerDocument),n&&Qe(n)?n:document}function _pe(e){return pn(e).defaultView||window}function Qy(e){return e.eGridDiv.getRootNode()}function Vr(e){return Qy(e).activeElement}function TA(e){let t=null,r=null;try{t=pn(e).fullscreenElement}catch{}finally{t||(t=Qy(e));const n=t.querySelector("body");n?r=n:t instanceof ShadowRoot?r=t:t instanceof Document?r=t==null?void 0:t.documentElement:r=t}return r}function mUe(e){const t=TA(e);return(t==null?void 0:t.clientWidth)??(window.innerHeight||-1)}function vUe(e){const t=TA(e);return(t==null?void 0:t.clientHeight)??(window.innerHeight||-1)}function wV(e,t,r){const i=e.getBoundingClientRect().height,o=mUe(r)-2,s=vUe(r)-2;if(!e.offsetParent)return;const l=Cpe(e.offsetParent),{clientY:c,clientX:u}=t;let d=c-l.top-i/2,h=u-l.left-10;const p=pn(r),f=p.defaultView||window,g=f.pageYOffset||p.documentElement.scrollTop,m=f.pageXOffset||p.documentElement.scrollLeft;o>0&&h+e.clientWidth>o+m&&(h=o+m-e.clientWidth),h<0&&(h=0),s>0&&d+e.clientHeight>s+g&&(d=s+g-e.clientHeight),d<0&&(d=0),e.style.left=`${h}px`,e.style.top=`${d}px`}function Dp(e){const t=pn(e),r=Vr(e);return r===null||r===t.body}function Ry(e){return e.get("ensureDomOrder")?!1:e.get("animateRows")}function RA(e){return!(e.get("paginateChildRows")||e.get("groupHideOpenParents")||Eo(e,"print"))}function rc(e){const t=e.get("autoGroupColumnDef");return!(t!=null&&t.comparator)&&!e.get("treeData")}function kw(e){const t=e.get("groupAggFiltering");if(typeof t=="function")return e.getCallback("groupAggFiltering");if(t===!0)return()=>!0}function PA(e){return e.get("grandTotalRow")}function Jy(e){const t=e.get("groupTotalRow");return typeof t=="function"?e.getCallback("groupTotalRow"):()=>t??void 0}function h5(e){return e.exists("groupDisplayType")?e.get("groupDisplayType")==="multipleColumns":e.get("groupHideOpenParents")}function MA(e,t){return t?!1:e.get("groupDisplayType")==="groupRows"}function Fd(e){const t=e.getCallback("getRowId");return t===void 0?t:r=>{let n=t(r);return typeof n!="string"&&(we(25,{id:n}),n=String(n)),n}}function yUe(e,t){const r=e.get("groupHideParentOfSingleChild");return!!(r===!0||r==="leafGroupsOnly"&&t.leafGroup||e.get("groupRemoveSingleChildren")||e.get("groupRemoveLowestSingleChildren")&&t.leafGroup)}function kpe(e){const t=e.get("maxConcurrentDatasourceRequests");return t>0?t:void 0}function Ope(e,t){const r=e.get("suppressGroupChangesColumnVisibility");if(r===!0||t&&r==="suppressHideOnGroup"||!t&&r==="suppressShowOnUngroup")return!1;const n=e.get("suppressRowGroupHidesColumns");if(t&&n===!0)return!1;const i=e.get("suppressMakeColumnVisibleAfterUnGroup");return!(!t&&i===!0)}function $g(e){return(e==null?void 0:e.checkboxes)??!0}function TP(e){return(e==null?void 0:e.mode)==="multiRow"&&(e.headerCheckbox??!0)}function ZM(e){if(typeof e=="object")return e.checkboxLocation??"selectionColumn"}function G2(e){return(e==null?void 0:e.hideDisabledCheckboxes)??!1}function p5(e){return typeof e.get("rowSelection")!="string"}function CUe(e){return e.get("cellSelection")!==void 0}function TT(e){const t=e.get("cellSelection");return t!==void 0?typeof t!="boolean"?(t==null?void 0:t.suppressMultiRanges)??!1:!1:e.get("suppressMultiRangeSelection")}function Rs(e){const t=e.get("cellSelection");return t!==void 0?!!t:e.get("enableRangeSelection")}function V2(e){var n;const t=e.get("cellSelection");return t!==void 0?typeof t!="boolean"&&((n=t.handle)==null?void 0:n.mode)==="fill"?t.handle:void 0:{mode:"fill",setFillValue:e.get("fillOperation"),direction:e.get("fillHandleDirection"),suppressClearOnFillReduction:e.get("suppressClearOnFillReduction")}}function Npe(e){const t=e.get("rowSelection")??"single";if(typeof t=="string"){const r=e.get("suppressRowClickSelection"),n=e.get("suppressRowDeselection");return r&&n?!1:r?"enableDeselection":n?"enableSelection":!0}return t.mode==="singleRow"||t.mode==="multiRow"?t.enableClickSelection??!1:!1}function bUe(e){const t=Npe(e);return t===!0||t==="enableSelection"}function _Y(e){const t=Npe(e);return t===!0||t==="enableDeselection"}function xV(e){const t=e.get("rowSelection");return typeof t=="string"?e.get("isRowSelectable"):t==null?void 0:t.isRowSelectable}function eC(e){const t=e.get("rowSelection");if(typeof t=="string")switch(t){case"multiple":return"multiRow";case"single":return"singleRow";default:return}switch(t==null?void 0:t.mode){case"multiRow":case"singleRow":return t.mode;default:return}}function Ap(e){return eC(e)==="multiRow"}function SUe(e){const t=e.get("rowSelection");return typeof t=="string"?e.get("rowMultiSelectWithClick"):(t==null?void 0:t.enableSelectionWithoutKeys)??!1}function QM(e){const t=e.get("rowSelection");if(typeof t=="string"){const r=e.get("groupSelectsChildren"),n=e.get("groupSelectsFiltered");return r&&n?"filteredDescendants":r?"descendants":"self"}return(t==null?void 0:t.mode)==="multiRow"?t.groupSelects:void 0}function Bpe(e,t=!0){const r=e.get("rowSelection");return typeof r!="object"?t?"all":void 0:r.mode==="multiRow"?r.selectAll:"all"}function lm(e){const t=QM(e);return t==="descendants"||t==="filteredDescendants"}function z2(e){return e.isModuleRegistered("SetFilter")&&!e.get("suppressSetFilterByDefault")}function wo(e){return e.get("columnMenu")==="legacy"}function $pe(e){return!wo(e)}function Gpe(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substring(1)}function wUe(e,t,r){typeof e!="object"&&(e={});const n={...e};return r.forEach(i=>{const o=t[i];typeof o<"u"&&(n[i]=o)}),n}function xUe(e,t){if(!e)return;const r={};let n=!1;if(Object.keys(e).forEach(s=>{r[s]=e[s],n=!0}),!n)return;const i={type:"gridOptionsChanged",options:r};t.dispatchEvent(i);const o={type:"componentStateChanged",...r};t.dispatchEvent(o)}var Vpe="__ag_Grid_Stop_Propagation",EUe=["touchstart","touchend","touchmove","touchcancel","scroll"],TUe=["wheel"],H2={};function di(e){e[Vpe]=!0}function Na(e){return e[Vpe]===!0}var zpe=(()=>{const e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return r=>{if(typeof H2[r]=="boolean")return H2[r];const n=document.createElement(e[r]||"div");return r="on"+r,H2[r]=r in n}})();function Hpe(e,t,r){let n=t;for(;n;){const i=YM(e,n,r);if(i)return i;n=n.parentElement}return null}function EV(e,t){return!t||!e?!1:PUe(t).indexOf(e)>=0}function RUe(e){const t=[];let r=e.target;for(;r;)t.push(r),r=r.parentElement;return t}function PUe(e){const t=e;return t.path?t.path:t.composedPath?t.composedPath():RUe(t)}function MUe(e,t,r,n){const i=Wpe(r);let o;i!=null&&(o={passive:i}),e&&e.addEventListener&&e.addEventListener(t,r,n,o)}var Wpe=e=>{const t=EUe.includes(e),r=TUe.includes(e);if(t)return!0;if(r)return!1},xe=class{constructor(){this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.propertyListenerId=0,this.lastChangeSetIdLookup={},this.isAlive=()=>!this.destroyed}preWireBeans(e){this.beans=e,this.stubContext=e.context,this.eventSvc=e.eventSvc,this.gos=e.gos}destroy(){const{destroyFunctions:e}=this;for(let t=0;tnull;e instanceof HTMLElement?MUe(this.beans.frameworkOverrides,e,t,r):e.addEventListener(t,r);const n=()=>(e.removeEventListener(t,r),null);return this.destroyFunctions.push(n),()=>(n(),this.destroyFunctions=this.destroyFunctions.filter(i=>i!==n),null)}setupGridOptionListener(e,t){const{gos:r}=this;r.addPropertyEventListener(e,t);const n=()=>(r.removePropertyEventListener(e,t),null);return this.destroyFunctions.push(n),()=>(n(),this.destroyFunctions=this.destroyFunctions.filter(i=>i!==n),null)}addManagedPropertyListener(e,t){return this.destroyed?()=>null:this.setupGridOptionListener(e,t)}addManagedPropertyListeners(e,t){if(this.destroyed)return;const r=e.join("-")+this.propertyListenerId++,n=i=>{if(i.changeSet){if(i.changeSet&&i.changeSet.id===this.lastChangeSetIdLookup[r])return;this.lastChangeSetIdLookup[r]=i.changeSet.id}const o={type:"gridPropertyChanged",changeSet:i.changeSet,source:i.source};t(o)};e.forEach(i=>this.setupGridOptionListener(i,n))}getLocaleTextFunc(){return e5(this.beans.localeSvc)}addDestroyFunc(e){this.isAlive()?this.destroyFunctions.push(e):e()}createOptionalManagedBean(e,t){return e?this.createManagedBean(e,t):void 0}createManagedBean(e,t){const r=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),r}createBean(e,t,r){return(t||this.stubContext).createBean(e,r)}destroyBean(e,t){return(t||this.stubContext).destroyBean(e)}destroyBeans(e,t){return(t||this.stubContext).destroyBeans(e)}},Upe=new Set(["__proto__","constructor","prototype"]);function IUe(e,t){if(e!=null){if(Array.isArray(e)){for(let r=0;r{if(Upe.has(i))return;let s=e[i];s!==o&&(n&&s==null&&o!=null&&typeof o=="object"&&o.constructor===Object&&(s={},e[i]=s),kY(o)&&kY(s)&&!Array.isArray(s)?Ii(s,o,r,n):(r||o!==void 0)&&(e[i]=o))})}function zS(e,t,r){if(!t||!e)return;if(!r)return e[t];const n=t.split(".");let i=e;for(let o=0;o=0&&!n,this.tooltipFieldContainsDots=Qe(r)&&r.indexOf(".")>=0&&!n}initMinAndMaxWidths(){const e=this.colDef;this.minWidth=e.minWidth??this.beans.environment.getDefaultColumnMinWidth(),this.maxWidth=e.maxWidth??Number.MAX_SAFE_INTEGER}initTooltip(){var e;(e=this.beans.tooltipSvc)==null||e.initCol(this)}resetActualWidth(e){const t=this.calculateColInitialWidth(this.colDef);this.setActualWidth(t,e,!0)}calculateColInitialWidth(e){let t;const r=e.width,n=e.initialWidth;return r!=null?t=r:n!=null?t=n:t=200,Math.max(Math.min(t,this.maxWidth),this.minWidth)}isEmptyGroup(){return!1}isRowGroupDisplayed(e){var t;return((t=this.beans.showRowGroupCols)==null?void 0:t.isRowGroupDisplayed(this,e))??!1}isPrimary(){return this.primary}isFilterAllowed(){return!!this.colDef.filter}isFieldContainsDots(){return this.fieldContainsDots}isTooltipEnabled(){return this.tooltipEnabled}isTooltipFieldContainsDots(){return this.tooltipFieldContainsDots}getHighlighted(){return this.highlighted}addEventListener(e,t){var n,i,o;this.frameworkEventListenerService=(i=(n=this.beans.frameworkOverrides).createLocalEventListenerWrapper)==null?void 0:i.call(n,this.frameworkEventListenerService,this.colEventSvc);const r=((o=this.frameworkEventListenerService)==null?void 0:o.wrap(t))??t;this.colEventSvc.addEventListener(e,r)}removeEventListener(e,t){var n;const r=((n=this.frameworkEventListenerService)==null?void 0:n.unwrap(t))??t;this.colEventSvc.removeEventListener(e,r)}createColumnFunctionCallbackParams(e){return this.gos.addGridCommonParams({node:e,data:e.data,column:this,colDef:this.colDef})}isSuppressNavigable(e){var t;return((t=this.beans.cellNavigation)==null?void 0:t.isSuppressNavigable(this,e))??!1}isCellEditable(e){var t;return((t=this.beans.editSvc)==null?void 0:t.isCellEditable(this,e))??!1}isSuppressFillHandle(){return!!this.colDef.suppressFillHandle}isAutoHeight(){return!!this.colDef.autoHeight}isAutoHeaderHeight(){return!!this.colDef.autoHeaderHeight}isRowDrag(e){return this.isColumnFunc(e,this.colDef.rowDrag)}isDndSource(e){return this.isColumnFunc(e,this.colDef.dndSource)}isCellCheckboxSelection(e){var t;return((t=this.beans.selectionSvc)==null?void 0:t.isCellCheckboxSelection(this,e))??!1}isSuppressPaste(e){var t;return this.isColumnFunc(e,((t=this.colDef)==null?void 0:t.suppressPaste)??null)}isResizable(){return!!this.getColDefValue("resizable")}getColDefValue(e){return this.colDef[e]??DUe[e]}isColumnFunc(e,t){if(typeof t=="boolean")return t;if(typeof t=="function"){const r=this.createColumnFunctionCallbackParams(e);return t(r)}return!1}createColumnEvent(e,t){return this.gos.addGridCommonParams({type:e,column:this,columns:[this],source:t})}isMoving(){return this.moving}getSort(){return this.sort}isSortable(){return!!this.getColDefValue("sortable")}isSortAscending(){return this.sort==="asc"}isSortDescending(){return this.sort==="desc"}isSortNone(){return Kr(this.sort)}isSorting(){return Qe(this.sort)}getSortIndex(){return this.sortIndex}isMenuVisible(){return this.menuVisible}getAggFunc(){return this.aggFunc}getLeft(){return this.left}getOldLeft(){return this.oldLeft}getRight(){return this.left+this.actualWidth}setLeft(e,t){this.oldLeft=this.left,this.left!==e&&(this.left=e,this.dispatchColEvent("leftChanged",t))}isFilterActive(){return this.filterActive}isHovered(){var e;return we(261),!!((e=this.beans.colHover)!=null&&e.isHovered(this))}setFirstRightPinned(e,t){this.firstRightPinned!==e&&(this.firstRightPinned=e,this.dispatchColEvent("firstRightPinnedChanged",t))}setLastLeftPinned(e,t){this.lastLeftPinned!==e&&(this.lastLeftPinned=e,this.dispatchColEvent("lastLeftPinnedChanged",t))}isFirstRightPinned(){return this.firstRightPinned}isLastLeftPinned(){return this.lastLeftPinned}isPinned(){return this.pinned==="left"||this.pinned==="right"}isPinnedLeft(){return this.pinned==="left"}isPinnedRight(){return this.pinned==="right"}getPinned(){return this.pinned}setVisible(e,t){const r=e===!0;this.visible!==r&&(this.visible=r,this.dispatchColEvent("visibleChanged",t)),this.dispatchStateUpdatedEvent("hide")}isVisible(){return this.visible}isSpanHeaderHeight(){return!this.getColDef().suppressSpanHeaderHeight}getColumnGroupPaddingInfo(){let e=this.getParent();if(!e||!e.isPadding())return{numberOfParents:0,isSpanningTotal:!1};const t=e.getPaddingLevel()+1;let r=!0;for(;e;){if(!e.isPadding()){r=!1;break}e=e.getParent()}return{numberOfParents:t,isSpanningTotal:r}}getColDef(){return this.colDef}getDefinition(){return this.colDef}getColumnGroupShow(){return this.colDef.columnGroupShow}getColId(){return this.colId}getId(){return this.colId}getUniqueId(){return this.colId}getActualWidth(){return this.actualWidth}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(e){const t=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,t}createBaseColDefParams(e){return this.gos.addGridCommonParams({node:e,data:e.data,colDef:this.colDef,column:this})}getColSpan(e){if(Kr(this.colDef.colSpan))return 1;const t=this.createBaseColDefParams(e),r=this.colDef.colSpan(t);return Math.max(r,1)}getRowSpan(e){if(Kr(this.colDef.rowSpan))return 1;const t=this.createBaseColDefParams(e),r=this.colDef.rowSpan(t);return Math.max(r,1)}setActualWidth(e,t,r=!1){e=Math.max(e,this.minWidth),e=Math.min(e,this.maxWidth),this.actualWidth!==e&&(this.actualWidth=e,this.flex&&t!=="flex"&&t!=="gridInitializing"&&(this.flex=null),r||this.fireColumnWidthChangedEvent(t)),this.dispatchStateUpdatedEvent("width")}fireColumnWidthChangedEvent(e){this.dispatchColEvent("widthChanged",e)}isGreaterThanMax(e){return e>this.maxWidth}getMinWidth(){return this.minWidth}getMaxWidth(){return this.maxWidth}getFlex(){return this.flex}isRowGroupActive(){return this.rowGroupActive}isPivotActive(){return this.pivotActive}isAnyFunctionActive(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()}isAnyFunctionAllowed(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()}isValueActive(){return this.aggregationActive}isAllowPivot(){return this.colDef.enablePivot===!0}isAllowValue(){return this.colDef.enableValue===!0}isAllowRowGroup(){return this.colDef.enableRowGroup===!0}dispatchColEvent(e,t,r){const n=this.createColumnEvent(e,t);r&&Ii(n,r),this.colEventSvc.dispatchEvent(n)}dispatchStateUpdatedEvent(e){this.colEventSvc.dispatchEvent({type:"columnStateUpdated",key:e})}};function Qn(e){return e instanceof HS}var HS=class extends xe{constructor(e,t,r,n){super(),this.colGroupDef=e,this.groupId=t,this.padding=r,this.level=n,this.isColumn=!1,this.expandable=!1,this.instanceId=jpe(),this.expandableListenerRemoveCallback=null,this.expanded=!!(e!=null&&e.openByDefault)}destroy(){this.expandableListenerRemoveCallback&&this.reset(null,void 0),super.destroy()}reset(e,t){this.colGroupDef=e,this.level=t,this.originalParent=null,this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback(),this.children=void 0,this.expandable=void 0}getInstanceId(){return this.instanceId}getOriginalParent(){return this.originalParent}getLevel(){return this.level}isVisible(){return this.children?this.children.some(e=>e.isVisible()):!1}isPadding(){return this.padding}setExpanded(e){this.expanded=e===void 0?!1:e,this.dispatchLocalEvent({type:"expandedChanged"})}isExpandable(){return this.expandable}isExpanded(){return this.expanded}getGroupId(){return this.groupId}getId(){return this.getGroupId()}setChildren(e){this.children=e}getChildren(){return this.children}getColGroupDef(){return this.colGroupDef}getLeafColumns(){const e=[];return this.addLeafColumns(e),e}addLeafColumns(e){this.children&&this.children.forEach(t=>{yu(t)?e.push(t):Qn(t)&&t.addLeafColumns(e)})}getColumnGroupShow(){const e=this.colGroupDef;if(e)return e.columnGroupShow}setupExpandable(){this.setExpandable(),this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback();const e=this.onColumnVisibilityChanged.bind(this);this.getLeafColumns().forEach(t=>t.addEventListener("visibleChanged",e)),this.expandableListenerRemoveCallback=()=>{this.getLeafColumns().forEach(t=>t.removeEventListener("visibleChanged",e)),this.expandableListenerRemoveCallback=null}}setExpandable(){if(this.isPadding())return;let e=!1,t=!1,r=!1;const n=this.findChildrenRemovingPadding();for(let o=0,s=n.length;o{r.forEach(n=>{Qn(n)&&n.isPadding()?t(n.children):e.push(n)})};return t(this.children),e}onColumnVisibilityChanged(){this.setExpandable()}},FUe={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}},LUe=class{constructor(){this.existingKeys={}}addExistingKeys(e){for(let t=0;tr?r(n,t[i]):t[i]===n)}function _Ue(e){return e.sort((t,r)=>t-r)}function Po(e,t){const r=e.indexOf(t);r>=0&&e.splice(r,1)}function OY(e,t,r){for(let n=0;n=0;n--)e.splice(r,0,t[n])}function Kpe(e,t){const r=[],n=[],i=[];return e.forEach(s=>{const a=s.getColDef().lockPosition;a==="right"?i.push(s):a==="left"||a===!0?r.push(s):n.push(s)}),t.get("enableRtl")?[...i,...n,...r]:[...r,...n,...i]}function qpe(e,t){let r=!0;return wd(null,t,n=>{if(!Qn(n))return;const i=n,o=i.getColGroupDef();if(!(o&&o.marryChildren))return;const a=[];i.getLeafColumns().forEach(h=>{const p=e.indexOf(h);a.push(p)});const l=Math.max.apply(Math,a),c=Math.min.apply(Math,a),u=l-c,d=i.getLeafColumns().length-1;u>d&&(r=!1)}),r}function Xpe(e,t){if(!e||e.length==0)return;const r=t(e[0]);for(let n=1;no.getPinned());e.dispatchEvent({type:"columnPinned",pinned:i??null,columns:t,column:n,source:r})}function kUe(e,t,r){if(!t.length)return;const n=t.length===1?t[0]:null,i=Xpe(t,o=>o.isVisible());e.dispatchEvent({type:"columnVisible",visible:i,columns:t,column:n,source:r})}function Zpe(e,t,r,n){e.dispatchEvent({type:t,columns:r,column:r&&r.length==1?r[0]:null,source:n})}function tC(e,t,r,n,i=null){t!=null&&t.length&&e.dispatchEvent({type:"columnResized",columns:t,column:t.length===1?t[0]:null,flexColumns:i,finished:r,source:n})}function sa(e,t,r){var x;const{colModel:n,rowGroupColsSvc:i,pivotColsSvc:o,autoColSvc:s,selectionColSvc:a,colAnimation:l,visibleCols:c,pivotResultCols:u,environment:d,valueColsSvc:h,eventSvc:p,gos:f}=e,g=n.getColDefCols()||[];if(!(g!=null&&g.length))return!1;if(t!=null&&t.state&&!t.state.forEach)return we(32),!1;const m=(E,R,T,M,D)=>{if(!E)return;const A=GUe(R,t.defaultState),I=A("flex").value1;if(lfe(e,E,A("hide").value1,A("sort").value1,A("sortIndex").value1,A("pinned").value1,I,r),I==null){const L=A("width").value1;if(L!=null){const F=E.getColDef().minWidth??d.getDefaultColumnMinWidth();F!=null&&L>=F&&E.setActualWidth(L,r)}}D||!E.isPrimary()||(h==null||h.syncColumnWithState(E,r,A),i==null||i.syncColumnWithState(E,r,A,T),o==null||o.syncColumnWithState(E,r,A,M))},y=(E,R,T)=>{var W,V;const M=Jpe(e,r),D=R.slice(),A={},I={},L=[],F=[],O=[];let k=0;const B=(i==null?void 0:i.columns.slice())??[],H=(o==null?void 0:o.columns.slice())??[];E.forEach($=>{const K=$.colId;if(K.startsWith(Fp)){L.push($),O.push($);return}if(lu(K)){F.push($),O.push($);return}const X=T(K);X?(m(X,$,A,I,!1),Po(D,X)):(O.push($),k+=1)});const N=$=>m($,null,A,I,!1);D.forEach(N),i==null||i.sortColumns(NY.bind(i,A,B)),o==null||o.sortColumns(NY.bind(o,I,H)),n.refreshCols(!1);const z=($,K,q=[])=>{K.forEach(X=>{const Y=$(X.colId);Po(q,Y),m(Y,X,null,null,!0)}),q.forEach(N)};return z($=>(s==null?void 0:s.getAutoCol($))??null,L,(W=s==null?void 0:s.getAutoCols())==null?void 0:W.slice()),z($=>(a==null?void 0:a.getSelectionCol($))??null,F,(V=a==null?void 0:a.getSelectionCols())==null?void 0:V.slice()),OUe(t,n,f),c.refresh(r),p.dispatchEvent({type:"columnEverythingChanged",source:r}),M(),{unmatchedAndAutoStates:O,unmatchedCount:k}};l==null||l.start();let{unmatchedAndAutoStates:b,unmatchedCount:S}=y(t.state||[],g,E=>n.getColDefCol(E));if(b.length>0||Qe(t.defaultState)){const E=((x=u==null?void 0:u.getPivotResultCols())==null?void 0:x.list)??[];S=y(b,E,R=>(u==null?void 0:u.getPivotResultCol(R))??null).unmatchedCount}return l==null||l.finish(),S===0}function Qpe(e,t){const{colModel:r,autoColSvc:n}=e,i=r.getColDefCols();if(!(i!=null&&i.length))return;const o=r.getColDefColTree(),s=f5(o),a=[];let l=1e3,c=1e3,u=[];const d=n==null?void 0:n.getAutoCols();d&&(u=u.concat(d)),s&&(u=u.concat(s)),u.forEach(h=>{const p=efe(h);Kr(p.rowGroupIndex)&&p.rowGroup&&(p.rowGroupIndex=l++),Kr(p.pivotIndex)&&p.pivot&&(p.pivotIndex=c++),a.push(p)}),sa(e,{state:a,applyOrder:!0},t)}function Jpe(e,t){const{rowGroupColsSvc:r,pivotColsSvc:n,valueColsSvc:i,colModel:o,sortSvc:s,eventSvc:a}=e,l={rowGroupColumns:(r==null?void 0:r.columns.slice())??[],pivotColumns:(n==null?void 0:n.columns.slice())??[],valueColumns:(i==null?void 0:i.columns.slice())??[]},c=Ow(e),u={};return c.forEach(d=>{u[d.colId]=d}),()=>{const d=o.getAllCols(),h=(T,M,D,A)=>{const I=M.map(A),L=D.map(A);if(Oo(I,L))return;const O=new Set(M);D.forEach(B=>{O.delete(B)||O.add(B)});const k=[...O];a.dispatchEvent({type:T,columns:k,column:k.length===1?k[0]:null,source:t})},p=T=>{const M=[];return d.forEach(D=>{const A=u[D.getColId()];A&&T(A,D)&&M.push(D)}),M},f=T=>T.getColId();h("columnRowGroupChanged",l.rowGroupColumns,(r==null?void 0:r.columns)??[],f),h("columnPivotChanged",l.pivotColumns,(n==null?void 0:n.columns)??[],f);const m=p((T,M)=>{const D=T.aggFunc!=null,A=D!=M.isValueActive(),I=D&&T.aggFunc!=M.getAggFunc();return A||I});m.length>0&&Zpe(a,"columnValueChanged",m,t),tC(a,p((T,M)=>T.width!=M.getActualWidth()),!0,t),Ype(a,p((T,M)=>T.pinned!=M.getPinned()),t),kUe(a,p((T,M)=>T.hide==M.isVisible()),t);const E=p((T,M)=>T.sort!=M.getSort()||T.sortIndex!=M.getSortIndex());E.length>0&&(s==null||s.dispatchSortChangedEvents(t,E));const R=Ow(e);BUe(c,R,t,o,a)}}function Ow(e){const{colModel:t,rowGroupColsSvc:r,pivotColsSvc:n}=e,i=t.getColDefCols();if(Kr(i)||!t.isAlive())return[];const o=t.getAllCols(),s=r==null?void 0:r.columns,a=n==null?void 0:n.columns,l=d=>{const h=d.isRowGroupActive()&&s?s.indexOf(d):null,p=d.isPivotActive()&&a?a.indexOf(d):null,f=d.isValueActive()?d.getAggFunc():null,g=d.getSort()!=null?d.getSort():null,m=d.getSortIndex()!=null?d.getSortIndex():null;return{colId:d.getColId(),width:d.getActualWidth(),hide:!d.isVisible(),pinned:d.getPinned(),sort:g,sortIndex:m,aggFunc:f,rowGroup:d.isRowGroupActive(),rowGroupIndex:h,pivot:d.isPivotActive(),pivotIndex:p,flex:d.getFlex()??null}},c=o.map(d=>l(d)),u=new Map(t.getCols().map((d,h)=>[d.getColId(),h]));return c.sort((d,h)=>{const p=u.has(d.colId)?u.get(d.colId):-1,f=u.has(h.colId)?u.get(h.colId):-1;return p-f}),c}function efe(e){const t=(f,g)=>f??g??null,r=e.getColDef(),n=t(r.sort,r.initialSort),i=t(r.sortIndex,r.initialSortIndex),o=t(r.hide,r.initialHide),s=t(r.pinned,r.initialPinned),a=t(r.width,r.initialWidth),l=t(r.flex,r.initialFlex);let c=t(r.rowGroupIndex,r.initialRowGroupIndex),u=t(r.rowGroup,r.initialRowGroup);c==null&&(u==null||u==!1)&&(c=null,u=null);let d=t(r.pivotIndex,r.initialPivotIndex),h=t(r.pivot,r.initialPivot);d==null&&(h==null||h==!1)&&(d=null,h=null);const p=t(r.aggFunc,r.initialAggFunc);return{colId:e.getColId(),sort:n,sortIndex:i,hide:o,pinned:s,width:a,flex:l,rowGroup:u,rowGroupIndex:c,pivot:h,pivotIndex:d,aggFunc:p}}function OUe(e,t,r){if(!e.applyOrder||!e.state)return;const n=[];e.state.forEach(i=>{i.colId!=null&&n.push(i.colId)}),NUe(t.cols,n,t,r)}function NUe(e,t,r,n){if(e==null)return;let i=[];const o={};t.forEach(a=>{if(o[a])return;const l=e.map[a];l&&(i.push(l),o[a]=!0)});let s=0;if(e.list.forEach(a=>{const l=a.getColId();if(o[l]!=null)return;l.startsWith(Fp)?i.splice(s++,0,a):i.push(a)}),i=Kpe(i,n),!qpe(i,r.getColTree())){we(39);return}e.list=i}function BUe(e,t,r,n,i){const o={};t.forEach(u=>o[u.colId]=u);const s={};e.forEach(u=>{o[u.colId]&&(s[u.colId]=!0)});const a=e.filter(u=>s[u.colId]),l=t.filter(u=>s[u.colId]),c=[];l.forEach((u,d)=>{const h=a&&a[d];if(h&&h.colId!==u.colId){const p=n.getCol(h.colId);p&&c.push(p)}}),c.length&&i.dispatchEvent({type:"columnMoved",columns:c,column:c.length===1?c[0]:null,finished:!0,source:r})}var NY=(e,t,r,n)=>{const i=e[r.getId()],o=e[n.getId()],s=i!=null,a=o!=null;if(s&&a)return i-o;if(s)return-1;if(a)return 1;const l=t.indexOf(r),c=t.indexOf(n),u=l>=0,d=c>=0;return u&&d?l-c:u?-1:1},tfe="ag-Grid-SelectionColumn",$Ue=class extends xe{constructor(){super(...arguments),this.beanName="selectionColSvc"}postConstruct(){this.addManagedPropertyListener("rowSelection",e=>{this.onSelectionOptionsChanged(e.currentValue,e.previousValue,Gg(e.source))})}addSelectionCols(e){const t=this.selectionCols;t!=null&&(e.list=t.list.concat(e.list),e.tree=t.tree.concat(e.tree),ofe(e))}createSelectionCols(e,t){var h,p;const r=()=>{var f;Lp(this.beans,(f=this.selectionCols)==null?void 0:f.tree),this.selectionCols=null},n=e.treeDepth,o=(((h=this.selectionCols)==null?void 0:h.treeDepth)??-1)==n,s=this.generateSelectionCols();if(ife(s,((p=this.selectionCols)==null?void 0:p.list)??[])&&o)return;r();const{colGroupSvc:l}=this.beans,c=(l==null?void 0:l.findDepth(e.tree))??0,u=(l==null?void 0:l.balanceTreeForAutoCols(s,c))??[];this.selectionCols={list:s,tree:u,treeDepth:c,map:{}},t(f=>{if(!f)return null;const g=f.filter(m=>!lu(m));return[...s,...g]})}isSelectionColumnEnabled(){var s,a;const{gos:e,beans:t}=this,r=e.get("rowSelection");if(typeof r!="object"||!Fa(e))return!1;const n=(((a=(s=t.autoColSvc)==null?void 0:s.getAutoCols())==null?void 0:a.length)??0)>0;if(r.checkboxLocation==="autoGroupColumn"&&n)return!1;const i=!!$g(r),o=TP(r);return i||o}generateSelectionCols(){if(!this.isSelectionColumnEnabled())return[];const{gos:e,validation:t}=this.beans,r=e.get("selectionColumnDef"),i={width:50,resizable:!1,suppressHeaderMenuButton:!0,sortable:!1,suppressMovable:!0,lockPosition:e.get("enableRtl")?"right":"left",comparator(a,l,c,u){const d=c.isSelected(),h=u.isSelected();return d===h?0:d?1:-1},editable:!1,suppressFillHandle:!0,...r,colId:tfe},o=i.colId;t==null||t.validateColDef(i,o,!0);const s=new IA(i,null,o,!1);return this.createBean(s),[s]}putSelectionColsFirstInList(e,t){if(!t)return null;const r=t.filter(n=>!lu(n));return[...e,...r]}getSelectionCol(e){var t;return((t=this.selectionCols)==null?void 0:t.list.find(r=>g5(r,e)))??null}getSelectionCols(){var e;return((e=this.selectionCols)==null?void 0:e.list)??null}onSelectionOptionsChanged(e,t,r){const n=t&&typeof t!="string"?$g(t):void 0,i=e&&typeof e!="string"?$g(e):void 0,o=n!==i,s=t&&typeof t!="string"?TP(t):void 0,a=e&&typeof e!="string"?TP(e):void 0,l=s!==a,c=ZM(e),u=ZM(t);(o||l||c!==u)&&this.beans.colModel.refreshAll(r)}destroy(){var e;Lp(this.beans,(e=this.selectionCols)==null?void 0:e.tree),super.destroy()}refreshVisibility(e){if(!this.isSelectionColumnEnabled())return;const t=this.beans,r=t.visibleCols.getAllTrees()??[];if(r.length!==0){if(!r.some(rfe)){const n=Ow(t).find(i=>lu(i.colId));n&&sa(t,{state:[{colId:n.colId,hide:!n.hide}]},e)}if(r.length===1){const n=r[0],i=nfe(n);if(!i)return;sa(t,{state:[{colId:i.getColId(),hide:!0}]},e)}}}},rfe=e=>{var t;return e.isColumn?lu(e):((t=e.getChildren())==null?void 0:t.some(rfe))??!1};function nfe(e){if(e.isColumn)return lu(e)?e:null;const t=e.getChildren()??[];for(const r of t){const n=nfe(r);if(n)return n}return null}var Fp="ag-Grid-AutoColumn";function f5(e){const t=[],r=n=>{for(let i=0;it+r.getActualWidth(),0)}function Lp(e,t,r){const n={};if(!t)return;wd(null,t,o=>{n[o.getInstanceId()]=o}),r&&wd(null,r,o=>{n[o.getInstanceId()]=null});const i=Object.values(n).filter(o=>o!=null);e.context.destroyBeans(i)}function DA(e){return e.getId().startsWith(Fp)}function lu(e){const t=typeof e=="string"?e:"getColId"in e?e.getColId():e.colId;return(t==null?void 0:t.startsWith(tfe))??!1}function JM(e){let t=[];return e instanceof Array?t=e:typeof e=="string"&&(t=e.split(",")),t}function ife(e,t){return Oo(e,t,(r,n)=>r.getColId()===n.getColId())}function ofe(e){e.map={},e.list.forEach(t=>e.map[t.getId()]=t)}function Gg(e){return e==="gridOptionsUpdated"?"gridOptionsChanged":e}function g5(e,t){const r=e===t,n=e.getColDef()===t,i=e.getColId()==t;return r||n||i}var GUe=(e,t)=>(r,n)=>{const i={value1:void 0,value2:void 0};let o=!1;return e&&(e[r]!==void 0&&(i.value1=e[r],o=!0),Qe(n)&&e[n]!==void 0&&(i.value2=e[n],o=!0)),!o&&t&&(t[r]!==void 0&&(i.value1=t[r]),Qe(n)&&t[n]!==void 0&&(i.value2=t[n])),i};function sfe(e,t=null,r,n,i){const o=new LUe,{existingCols:s,existingGroups:a,existingColKeys:l}=VUe(n);o.addExistingKeys(l);const c=afe(e,t,0,r,s,o,a,i),{colGroupSvc:u}=e,d=(u==null?void 0:u.findMaxDepth(c,0))??0,h=u?u.balanceColumnTree(c,0,d,o):c;return wd(null,h,(f,g)=>{Qn(f)&&f.setupExpandable(),f.originalParent=g}),{columnTree:h,treeDept:d}}function VUe(e){const t=[],r=[],n=[];return e&&wd(null,e,i=>{if(Qn(i)){const o=i;r.push(o)}else{const o=i;n.push(o.getId()),t.push(o)}}),{existingCols:t,existingGroups:r,existingColKeys:n}}function afe(e,t,r,n,i,o,s,a){if(!t)return[];const{colGroupSvc:l}=e,c=new Array(t.length);for(let u=0;u0))if(r.width!=null)t.setActualWidth(r.width,n);else{const o=t.getActualWidth();t.setActualWidth(o,n)}}function HUe(e,t){if(t)for(let r=0;r{const s=n[o.trim()];s?Ii(r,s,!1,!0):we(36,{t:o})})}function jUe(e){return e.children!==void 0}function wd(e,t,r){if(t)for(let n=0;nthis.refreshAll(Gg(e.source))),this.addManagedPropertyListeners(["defaultColDef","defaultColGroupDef","columnTypes","suppressFieldDotNotation"],e=>this.recreateColumnDefs(Gg(e.source))),this.addManagedPropertyListener("pivotMode",e=>this.setPivotMode(this.gos.get("pivotMode"),Gg(e.source)))}createColsFromColDefs(e){var b,S,x;const{beans:t}=this,{valueCache:r,colAutosize:n,rowGroupColsSvc:i,pivotColsSvc:o,valueColsSvc:s,visibleCols:a,colViewport:l,eventSvc:c}=t,u=this.colDefs?Jpe(t,e):void 0;r==null||r.expire();const d=(b=this.colDefCols)==null?void 0:b.list,h=(S=this.colDefCols)==null?void 0:S.tree,p=sfe(t,this.colDefs,!0,h,e);Lp(t,(x=this.colDefCols)==null?void 0:x.tree,p.columnTree);const f=p.columnTree,g=p.treeDept,m=f5(f),y={};m.forEach(E=>y[E.getId()]=E),this.colDefCols={tree:f,treeDepth:g,list:m,map:y},i==null||i.extractCols(e,d),o==null||o.extractCols(e,d),s==null||s.extractCols(e,d),this.ready=!0,this.refreshCols(!0),a.refresh(e),l.checkViewportColumns(),c.dispatchEvent({type:"columnEverythingChanged",source:e}),u&&(this.changeEventsDispatching=!0,u(),this.changeEventsDispatching=!1),c.dispatchEvent({type:"newColumnsLoaded",source:e}),e==="gridInitializing"&&(n==null||n.applyAutosizeStrategy())}refreshCols(e){var f;if(!this.colDefCols)return;const t=(f=this.cols)==null?void 0:f.tree;this.saveColOrder();const{autoColSvc:r,selectionColSvc:n,quickFilter:i,pivotResultCols:o,showRowGroupCols:s,rowAutoHeight:a,visibleCols:l,colViewport:c,eventSvc:u}=this.beans,d=this.selectCols(o,this.colDefCols);r==null||r.createAutoCols(d,g=>{this.lastOrder=g(this.lastOrder),this.lastPivotOrder=g(this.lastPivotOrder)}),r==null||r.addAutoCols(d),n==null||n.createSelectionCols(d,g=>{this.lastOrder=g(this.lastOrder)??null,this.lastPivotOrder=g(this.lastPivotOrder)??null}),n==null||n.addSelectionCols(d);const h=fUe(this.gos,this.showingPivotResult);(!e||h)&&this.restoreColOrder(d),this.positionLockedCols(d),s==null||s.refresh(),i==null||i.refreshCols(),this.setColSpanActive(),a==null||a.setAutoHeightActive(d),l.clear(),c.clear(),!Oo(t,this.cols.tree)&&u.dispatchEvent({type:"gridColumnsChanged"})}selectCols(e,t){const r=(e==null?void 0:e.getPivotResultCols())??null;this.showingPivotResult=r!=null;const{map:n,list:i,tree:o,treeDepth:s}=r??t;return this.cols={list:i.slice(),map:{...n},tree:o.slice(),treeDepth:s},r&&(r.list.some(l=>{var c;return((c=this.cols)==null?void 0:c.map[l.getColId()])!==void 0})||(this.lastPivotOrder=null)),this.cols}getColsToShow(){var n;if(!this.cols)return[];const e=this.isPivotMode()&&!this.showingPivotResult,t=(n=this.beans.valueColsSvc)==null?void 0:n.columns;return this.cols.list.filter(i=>{const o=DA(i);if(e){const s=t==null?void 0:t.includes(i);return o||s}else return o||i.isVisible()})}refreshAll(e){this.ready&&(this.refreshCols(!1),this.beans.visibleCols.refresh(e))}setColsVisible(e,t=!1,r){sa(this.beans,{state:e.map(n=>({colId:typeof n=="string"?n:n.getColId(),hide:!t}))},r)}restoreColOrder(e){const t=this.showingPivotResult?this.lastPivotOrder:this.lastOrder;if(!t)return;const r=new Map(t.map((c,u)=>[c,u]));if(!e.list.some(c=>r.has(c)))return;const i=new Map(e.list.map(c=>[c,!0])),o=t.filter(c=>i.has(c)),s=new Map(o.map(c=>[c,!0])),a=e.list.filter(c=>!s.has(c)),l=o.slice();a.forEach(c=>{let u=c.getOriginalParent();if(!u){l.push(c);return}const d=[];for(;!d.length&&u;)u.getLeafColumns().forEach(g=>{const m=l.indexOf(g)>=0,y=d.indexOf(g)<0;m&&y&&d.push(g)}),u=u.getOriginalParent();if(!d.length){l.push(c);return}const h=d.map(f=>l.indexOf(f)),p=Math.max(...h);l.splice(p+1,0,c)}),e.list=l}positionLockedCols(e){e.list=Kpe(e.list,this.gos)}saveColOrder(){var e,t;this.showingPivotResult?this.lastPivotOrder=((e=this.cols)==null?void 0:e.list)??null:this.lastOrder=((t=this.cols)==null?void 0:t.list)??null}getColumnDefs(){var e,t;return this.colDefCols?(t=this.beans.colDefFactory)==null?void 0:t.getColumnDefs(this.colDefCols.list,this.showingPivotResult,this.lastOrder,((e=this.cols)==null?void 0:e.list)??[]):void 0}setColSpanActive(){var e;this.colSpanActive=!!((e=this.cols)!=null&&e.list.some(t=>t.getColDef().colSpan!=null))}isPivotMode(){return this.pivotMode}setPivotMode(e,t){if(e===this.pivotMode||(this.pivotMode=e,!this.ready))return;this.refreshCols(!1);const{visibleCols:r,eventSvc:n}=this.beans;r.refresh(t),n.dispatchEvent({type:"columnPivotModeChanged"})}isPivotActive(){var t;const e=(t=this.beans.pivotColsSvc)==null?void 0:t.columns;return this.pivotMode&&!!(e!=null&&e.length)}recreateColumnDefs(e){var t;this.cols&&((t=this.beans.autoColSvc)==null||t.updateAutoCols(e),this.createColsFromColDefs(e))}setColumnDefs(e,t){this.colDefs=e,this.createColsFromColDefs(t)}destroy(){var e;Lp(this.beans,(e=this.colDefCols)==null?void 0:e.tree),super.destroy()}getColTree(){var e;return((e=this.cols)==null?void 0:e.tree)??[]}getColDefColTree(){var e;return((e=this.colDefCols)==null?void 0:e.tree)??[]}getColDefCols(){var e;return((e=this.colDefCols)==null?void 0:e.list)??null}getCols(){var e;return((e=this.cols)==null?void 0:e.list)??[]}getAllCols(){var i,o,s,a;const{pivotResultCols:e,autoColSvc:t,selectionColSvc:r}=this.beans,n=(i=e==null?void 0:e.getPivotResultCols())==null?void 0:i.list;return[((o=this.colDefCols)==null?void 0:o.list)??[],((s=t==null?void 0:t.autoCols)==null?void 0:s.list)??[],((a=r==null?void 0:r.selectionCols)==null?void 0:a.list)??[],n??[]].flat()}getColsForKeys(e){return e?e.map(t=>this.getCol(t)).filter(t=>t!=null):[]}getColDefCol(e){var t;return(t=this.colDefCols)!=null&&t.list?this.getColFromCollection(e,this.colDefCols):null}getCol(e){return e==null?null:this.getColFromCollection(e,this.cols)}getColFromCollection(e,t){var i;if(t==null)return null;const{map:r,list:n}=t;if(typeof e=="string"&&r[e])return r[e];for(let o=0;ol.set(u,d)),t.length=0,Qe(e)&&e.forEach(u=>{const d=this.colModel.getColDefCol(u);d&&t.push(d)}),t.forEach((u,d)=>{const h=l.get(u);if(h===void 0){l.set(u,0);return}n&&h!==d||l.delete(u)}),(this.colModel.getColDefCols()||[]).forEach(u=>{const d=t.indexOf(u)>=0;o(u,d,s)}),i&&this.colModel.refreshCols(!1),this.visibleCols.refresh(s),this.dispatchColumnChangedEvent(this.eventSvc,r,[...l.keys()],s)}updateColList(e=[],t,r,n,i,o,s){if(!e||e.length===0)return;let a=!1;const l=new Set;if(e.forEach(u=>{if(!u)return;const d=this.colModel.getColDefCol(u);if(d){if(l.add(d),r){if(t.indexOf(d)>=0)return;t.push(d)}else{const h=t.indexOf(d);if(h<0)return;for(let p=h+1;p{const f=t.indexOf(p)<0,g=p.getColDef(),m=l(g),y=c(g),b=s(g),S=a(g);let x;m!==void 0?x=m:b!==void 0?b===null?x=!1:x=b>=0:f?y!==void 0?x=y:S!==void 0?x=S!=null&&S>=0:x=!1:x=r.indexOf(p)>=0,x&&((f?b!=null||S!=null:b!=null)?n.push(p):i.push(p))});const d=p=>{const f=s(p.getColDef()),g=a(p.getColDef());return f??g};n.sort((p,f)=>{const g=d(p),m=d(f);return g===m?0:g{i.indexOf(p)>=0&&h.push(p)}),i.forEach(p=>{h.indexOf(p)<0&&h.push(p)}),r.forEach(p=>{h.indexOf(p)<0&&o(p,!1,e)}),h.forEach(p=>{r.indexOf(p)<0&&o(p,!0,e)}),this.columns=h}restoreColumnOrder(e,t){const r=this.columns,n=this.colModel.getColDefCols();if(!r.length||!n)return e;const i=Object.keys(t),o=new Set(i),s=new Set(i),a=new Set(r.map(S=>{const x=S.getColId();return s.delete(x),x}).concat(i)),l=[],c={};let u=0;for(let S=0;S{const x=c[S];for(let E=p;E{const x=S.getColId();if(o.has(x))b(x),t[x][m]=d++;else{const E=S.getColDef();(E[m]===null||E[m]===void 0&&E[y]==null)&&(h||(E[f]||E[f]===void 0&&E[g]?b(x):(s.forEach(M=>{t[M][m]=d+c[M]}),d+=l.length,h=!0)),e[x]||(e[x]={colId:x}),e[x][m]=d++)}}),e}},ufe=class{constructor(){this.existingIds={}}getInstanceIdForKey(e){const t=this.existingIds[e];let r;return typeof t!="number"?r=0:r=t+1,this.existingIds[e]=r,r}},WC=class extends xe{};function c1(e,t,r){return r&&e.addDestroyFunc(()=>t.destroyBean(r)),r??e}var u1=class{constructor(e){this.cssClassStates={},this.getGui=e}addCssClass(e){this.addOrRemoveCssClass(e,!0)}removeCssClass(e){this.addOrRemoveCssClass(e,!1)}containsCssClass(e){const t=this.getGui();return t?t.classList.contains(e):!1}addOrRemoveCssClass(e,t){if(!e)return;if(e.indexOf(" ")>=0){const n=(e||"").split(" ");if(n.length>1){n.forEach(i=>this.addOrRemoveCssClass(i,t));return}}if(this.cssClassStates[e]!==t&&e.length){const n=this.getGui();n&&n.classList.toggle(e,t),this.cssClassStates[e]=t}}},qUe=0,Ce=null,Je=class extends xe{constructor(e,t){super(),this.suppressDataRefValidation=!1,this.displayed=!0,this.visible=!0,this.compId=qUe++,this.cssClassManager=new u1(()=>this.eGui),this.componentSelectors=new Map((t??[]).map(r=>[r.selector,r])),e&&this.setTemplate(e)}preConstruct(){var t,r,n;this.wireTemplate(this.getGui());const e="component-"+((r=(t=Object.getPrototypeOf(this))==null?void 0:t.constructor)==null?void 0:r.name);(n=this.css)==null||n.forEach(i=>this.beans.environment.addGlobalCSS(i,e))}wireTemplate(e,t){e&&this.gos&&(this.applyElementsToComponent(e),this.createChildComponentsFromTags(e,t))}getCompId(){return this.compId}getDataRefAttribute(e){return e.getAttribute?e.getAttribute("data-ref"):null}applyElementsToComponent(e,t,r,n=null){if(t===void 0&&(t=this.getDataRefAttribute(e)),t){const i=this[t];if(i===Ce)this[t]=n??e;else{const o=r&&r[t];if(!this.suppressDataRefValidation&&!o)throw new Error(`data-ref: ${t} on ${this.constructor.name} with ${i}`)}}}createChildComponentsFromTags(e,t){sUe(e.childNodes).forEach(n=>{if(!(n instanceof HTMLElement))return;const i=this.createComponentFromElement(n,o=>{o.getGui()&&this.copyAttributesFromNode(n,o.getGui())},t);if(i){if(i.addItems&&n.children.length){this.createChildComponentsFromTags(n,t);const o=Array.prototype.slice.call(n.children);i.addItems(o)}this.swapComponentForNode(i,e,n)}else n.childNodes&&this.createChildComponentsFromTags(n,t)})}createComponentFromElement(e,t,r){const n=e.nodeName,i=this.getDataRefAttribute(e),o=n.indexOf("AG-")===0,s=o?this.componentSelectors.get(n):null;let a=null;if(s){const l=r&&i?r[i]:void 0;a=new s.component(l),a.setParentComponent(this),this.createBean(a,null,t)}else if(o)throw new Error(`selector: ${n}`);return this.applyElementsToComponent(e,i,r,a),a}copyAttributesFromNode(e,t){aUe(e.attributes,(r,n)=>t.setAttribute(r,n))}swapComponentForNode(e,t,r){const n=e.getGui();t.replaceChild(n,r),t.insertBefore(document.createComment(r.nodeName),n),this.addDestroyFunc(this.destroyBean.bind(this,e))}activateTabIndex(e){const t=this.gos.get("tabIndex");e||(e=[]),e.length||e.push(this.getGui()),e.forEach(r=>r.setAttribute("tabindex",t.toString()))}setTemplate(e,t,r){const n=Ts(e);this.setTemplateFromElement(n,t,r)}setTemplateFromElement(e,t,r,n=!1){if(this.eGui=e,this.suppressDataRefValidation=n,t)for(let i=0;ithis.eGui.removeEventListener(e,t))}addCssClass(e){this.cssClassManager.addCssClass(e)}removeCssClass(e){this.cssClassManager.removeCssClass(e)}containsCssClass(e){return this.cssClassManager.containsCssClass(e)}addOrRemoveCssClass(e,t){this.cssClassManager.addOrRemoveCssClass(e,t)}registerCSS(e){this.css||(this.css=[]),this.css.push(e)}};function XUe(e){return typeof e.then=="function"}var lr=class uS{constructor(t){this.status=0,this.resolution=null,this.waiters=[],t(r=>this.onDone(r),r=>this.onReject(r))}static all(t){return t.length?new uS(r=>{let n=t.length;const i=new Array(n);t.forEach((o,s)=>{o.then(a=>{i[s]=a,n--,n===0&&r(i)})})}):uS.resolve()}static resolve(t=null){return new uS(r=>r(t))}then(t){return new uS(r=>{this.status===1?r(t(this.resolution)):this.waiters.push(n=>r(t(n)))})}onDone(t){this.status=1,this.resolution=t,this.waiters.forEach(r=>r(t))}onReject(t){}};function YUe(e){return e?e.prototype&&"getGui"in e.prototype:!1}function dfe(e,t,r,n){const{name:i}=r;let o,s,a,l,c,u;if(t){const d=t,h=d[i+"Selector"],p=h?h(n):null,f=g=>{typeof g=="string"?o=g:g!=null&&g!==!0&&(e.isFrameworkComponent(g)?a=g:s=g)};p?(f(p.component),l=p.params,c=p.popup,u=p.popupPosition):f(d[i])}return{compName:o,jsComp:s,fwComp:a,paramsFromSelector:l,popupFromSelector:c,popupPositionFromSelector:u}}var ZUe=class extends xe{constructor(){super(...arguments),this.beanName="userCompFactory"}wireBeans(e){this.agCompUtils=e.agCompUtils,this.registry=e.registry,this.frameworkCompWrapper=e.frameworkCompWrapper,this.gridOptions=e.gridOptions}getCompDetailsFromGridOptions(e,t,r,n=!1){return this.getCompDetails(this.gridOptions,e,t,r,n)}getCompDetails(e,t,r,n,i=!1){var b;const{name:o,cellRenderer:s}=t;let{compName:a,jsComp:l,fwComp:c,paramsFromSelector:u,popupFromSelector:d,popupPositionFromSelector:h}=dfe(this.beans.frameworkOverrides,e,t,n),p;const f=S=>{const x=this.registry.getUserComponent(o,S);x&&(l=x.componentFromFramework?void 0:x.component,c=x.componentFromFramework?x.component:void 0,p=x.params)};if(a!=null&&f(a),l==null&&c==null&&r!=null&&f(r),l&&s&&!YUe(l)&&(l=(b=this.agCompUtils)==null?void 0:b.adaptFunction(t,l)),!l&&!c){const{validation:S}=this.beans;i&&(a!==r||!r)?a?S!=null&&S.isProvidedUserComp(a)||Cr(50,{compName:a}):r?S||Cr(260,{...this.gos.getModuleErrorParams(),propName:o,compName:r}):Cr(216,{name:o}):r&&!S&&Cr(146,{comp:r});return}const g=this.mergeParams(e,t,n,u,p),m=l==null,y=l??c;return{componentFromFramework:m,componentClass:y,params:g,type:t,popupFromSelector:d,popupPositionFromSelector:h,newAgStackInstance:()=>this.newAgStackInstance(y,m,g,t)}}newAgStackInstance(e,t,r,n){var a;const i=!t;let o;i?o=new e:o=this.frameworkCompWrapper.wrap(e,n.mandatoryMethods,n.optionalMethods,n),this.createBean(o);const s=(a=o.init)==null?void 0:a.call(o,r);return s==null?lr.resolve(o):s.then(()=>o)}mergeParams(e,t,r,n=null,i){const o=this.gos.getGridCommonParams();Ii(o,r),i&&Ii(o,i);const s=e,a=s&&s[t.name+"Params"];if(typeof a=="function"){const l=a(r);Ii(o,l)}else typeof a=="object"&&Ii(o,a);return Ii(o,n),o}},QUe={name:"dateComponent",mandatoryMethods:["getDate","setDate"],optionalMethods:["afterGuiAttached","setInputPlaceholder","setInputAriaLabel","setDisabled","refresh"]},JUe={name:"dragAndDropImageComponent",mandatoryMethods:["setIcon","setLabel"]},eje={name:"headerComponent",optionalMethods:["refresh"]},tje={name:"innerHeaderComponent"},rje={name:"innerHeaderGroupComponent"},nje={name:"headerGroupComponent"},ije={name:"innerRenderer",cellRenderer:!0,optionalMethods:["afterGuiAttached"]},oje={name:"cellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},sje={name:"cellRenderer",optionalMethods:["refresh","afterGuiAttached"]},aje={name:"loadingCellRenderer",cellRenderer:!0},lje={name:"cellEditor",mandatoryMethods:["getValue"],optionalMethods:["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached","refresh"]},cje={name:"loadingOverlayComponent",optionalMethods:["refresh"]},uje={name:"noRowsOverlayComponent",optionalMethods:["refresh"]},dje={name:"tooltipComponent"},v5={name:"filter",mandatoryMethods:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethods:["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged","refresh"]},hje={name:"floatingFilterComponent",mandatoryMethods:["onParentModelChanged"],optionalMethods:["afterGuiAttached","refresh"]},pje={name:"fullWidthCellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},fje={name:"loadingCellRenderer",cellRenderer:!0},gje={name:"groupRowRenderer",optionalMethods:["afterGuiAttached"],cellRenderer:!0},mje={name:"detailCellRenderer",optionalMethods:["refresh"],cellRenderer:!0};function vje(e,t){return e.getCompDetailsFromGridOptions(JUe,"agDragAndDropImage",t,!0)}function W2(e,t,r){return e.getCompDetails(t,ije,void 0,r)}function yje(e,t,r){return e.getCompDetails(t,eje,"agColumnHeader",r)}function Cje(e,t,r){return e.getCompDetails(t,tje,void 0,r)}function bje(e,t){const r=t.columnGroup.getColGroupDef();return e.getCompDetails(r,nje,"agColumnGroupHeader",t)}function Sje(e,t,r){return e.getCompDetails(t,rje,void 0,r)}function wje(e,t){return e.getCompDetailsFromGridOptions(pje,void 0,t,!0)}function xje(e,t){return e.getCompDetailsFromGridOptions(fje,"agLoadingCellRenderer",t,!0)}function Eje(e,t){return e.getCompDetailsFromGridOptions(gje,"agGroupRowRenderer",t,!0)}function Tje(e,t){return e.getCompDetailsFromGridOptions(mje,"agDetailCellRenderer",t,!0)}function tI(e,t,r){return e.getCompDetails(t,oje,void 0,r)}function hfe(e,t,r){return e.getCompDetails(t,sje,void 0,r)}function Rje(e,t,r){return e.getCompDetails(t,aje,"agSkeletonCellRenderer",r,!0)}function BY(e,t,r){return e.getCompDetails(t,lje,"agCellEditor",r,!0)}function pfe(e,t,r,n){return e.getCompDetails(t,v5,n,r,!0)}function Pje(e,t){return e.getCompDetailsFromGridOptions(QUe,"agDateInput",t,!0)}function Mje(e,t){return e.getCompDetailsFromGridOptions(cje,"agLoadingOverlay",t,!0)}function Ije(e,t){return e.getCompDetailsFromGridOptions(uje,"agNoRowsOverlay",t,!0)}function Dje(e,t){return e.getCompDetails(t.colDef,dje,"agTooltipComponent",t,!0)}function ffe(e,t,r,n){return e.getCompDetails(t,hje,n,r)}function Aje(e,t){return dfe(e,t,v5)}function Fje(e,t,r){return e.mergeParams(t,v5,r)}function cm(e){const t=e;return t!=null&&t.getFrameworkComponentInstance!=null?t.getFrameworkComponentInstance():e}var gfe=new Set,rI={},Vg={},RP,mfe=!1;function Lje(e){const[t,r]=e.version.split(".")||[],[n,i]=RP.split(".")||[];return t===n&&r===i}function _je(e){RP||(RP=e.version);const t=r=>`You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. ${r} Please update all modules to the same version.`;if(e.version?Lje(e)||Ty(t(`'${e.moduleName}' is version ${e.version} but the other modules are version ${RP}.`)):Ty(t(`'${e.moduleName}' is incompatible.`)),e.validate){const r=e.validate();r.isValid||Ty(`${r.message}`)}}function Nw(e,t){_je(e);const r=e.rowModels??["all"];gfe.add(e);let n;t!==void 0?(mfe=!0,Vg[t]===void 0&&(Vg[t]={}),n=Vg[t]):n=rI,r.forEach(i=>{n[i]===void 0&&(n[i]={}),n[i][e.moduleName]=e}),e.dependsOn&&e.dependsOn.forEach(i=>Nw(i,t))}function kje(e){delete Vg[e]}function vfe(e,t,r){const n=i=>{var o,s,a;return!!((o=rI[i])!=null&&o[e])||!!((a=(s=Vg[t])==null?void 0:s[i])!=null&&a[e])};return n(r)||n("all")}function y5(){return mfe}function Oje(e,t){const r=Vg[e]??{};return[...Object.values(rI.all??{}),...Object.values(r.all??{}),...Object.values(rI[t]??{}),...Object.values(r[t]??{})]}function Nje(){return new Set(gfe)}function yfe(e,t){const r=Vg[e]??{};return[...Object.values(r.all??{}),...Object.values(r[t]??{})]}var z$t=class{static register(e){Nw(e,void 0)}static registerModules(e){e.forEach(t=>Nw(t,void 0))}},Bje=class{constructor(e){this.beans={},this.createdBeans=[],this.destroyed=!1,!(!e||!e.beanClasses)&&(this.beanDestroyComparator=e.beanDestroyComparator,this.init(e))}init(e){var t;Object.entries(e.providedBeanInstances).forEach(([r,n])=>{this.beans[r]=n}),e.beanClasses.forEach(r=>{const n=new r;n.beanName?this.beans[n.beanName]=n:console.error(`Bean ${r.name} is missing beanName`),this.createdBeans.push(n)}),(t=e.derivedBeans)==null||t.forEach(r=>{const{beanName:n,bean:i}=r(this);this.beans[n]=i,this.createdBeans.push(i)}),e.beanInitComparator&&this.createdBeans.sort(e.beanInitComparator),this.initBeans(this.createdBeans)}getBeanInstances(){return Object.values(this.beans)}createBean(e,t){if(!e)throw Error("null bean");return this.initBeans([e],t),e}initBeans(e,t){e.forEach(r=>{var n,i;(n=r.preWireBeans)==null||n.call(r,this.beans),(i=r.wireBeans)==null||i.call(r,this.beans)}),e.forEach(r=>{var n;return(n=r.preConstruct)==null?void 0:n.call(r)}),t&&e.forEach(t),e.forEach(r=>{var n;return(n=r.postConstruct)==null?void 0:n.call(r)})}getBeans(){return this.beans}getBean(e){return this.beans[e]}destroy(){if(this.destroyed)return;this.destroyed=!0;const e=this.getBeanInstances();this.beanDestroyComparator&&e.sort(this.beanDestroyComparator),this.destroyBeans(e),this.beans={},this.createdBeans=[]}destroyBean(e){var t;(t=e==null?void 0:e.destroy)==null||t.call(e)}destroyBeans(e){if(e)for(let t=0;t=this.lastScrollTop,n&&e===0){const i=(r==null?void 0:r.getCurrentPage())??0;i!==this.lastPage&&(this.lastPage=i,this.scrollGoingDown=!0)}this.lastScrollTop=e}postConstruct(){this.active=!this.gos.get("suppressAnimationFrame")}verifyAnimationFrameOn(e){this.active===!1&&we(92,{methodName:e})}createTask(e,t,r){this.verifyAnimationFrameOn(r);const n={task:e,index:t,createOrder:++this.taskCount};this.addTaskToList(this[r],n),this.schedule()}cancelTask(e){this.cancelledTasks.add(e)}addTaskToList(e,t){e.list.push(t),e.sorted=!1}sortTaskList(e){if(e.sorted)return;const t=this.scrollGoingDown?1:-1;e.list.sort((r,n)=>r.index!==n.index?t*(n.index-r.index):n.createOrder-r.createOrder),e.sorted=!0}addDestroyTask(e){this.verifyAnimationFrameOn("createTasksP3"),this.destroyTasks.push(e),this.schedule()}executeFrame(e){this.verifyAnimationFrameOn("executeFrame");const t=this.createTasksP1,r=t.list,n=this.createTasksP2,i=n.list,o=this.destroyTasks,s=new Date().getTime();let a=new Date().getTime()-s;const l=e<=0,c=this.beans.ctrlsSvc.getScrollFeature();for(;l||a0||(e.addEventListener("keydown",iI),e.addEventListener("mousedown",iI))}function Uje(e){nI>0||(e.removeEventListener("keydown",iI),e.removeEventListener("mousedown",iI))}function iI(e){const t=TV,r=e.type==="keydown";r&&(e.ctrlKey||e.metaKey||e.altKey)||t!==r&&(TV=r)}function jje(e){const t=pn(e);return Wje(t),nI++,()=>{nI--,Uje(t)}}function AA(){return TV}function wfe(e,t,r){t.addManagedElementListeners(r,{keydown:n=>{if(!n.defaultPrevented&&n.key===ge.TAB){const i=n.shiftKey;No(e,r,!1,i)||Ld(e,i)&&n.preventDefault()}}})}function ac(e,t,r=!1){const n=tUe;let i=vpe;t&&(i+=", "+t),r&&(i+=', [tabindex="-1"]');const o=Array.prototype.slice.apply(e.querySelectorAll(n)).filter(l=>ps(l)),s=Array.prototype.slice.apply(e.querySelectorAll(i));return s.length?((l,c)=>l.filter(u=>c.indexOf(u)===-1))(o,s):o}function co(e,t=!1,r=!1){const n=ac(e,null,r),i=t?er(n):n[0];return i?(i.focus({preventScroll:!0}),!0):!1}function No(e,t,r,n){const i=ac(t,r?':not([tabindex="-1"])':null),o=Vr(e);let s;r?s=i.findIndex(l=>l.contains(o)):s=i.indexOf(o);const a=s+(n?-1:1);return a<0||a>=i.length?null:i[a]}function b5(e,t=5){let r=0;for(;e&&yV(e)===null&&++r<=t;)e=e.parentElement;return yV(e)===null?null:e}function xfe(e,t){return e.ctrlsSvc.get("gridCtrl").focusInnerElement(t)}function Py(e){var t;return e.gos.get("suppressHeaderFocus")||!!((t=e.overlays)!=null&&t.isExclusive())}function Efe(e){var t;return e.gos.get("suppressCellFocus")||!!((t=e.overlays)!=null&&t.isExclusive())}function Ld(e,t,r=!1){const n=e.ctrlsSvc.get("gridCtrl");return!r&&n.focusNextInnerContainer(t)?!0:((r||!t&&!n.isDetailGrid())&&n.forceFocusOutOfContainer(t),!1)}var Kje=/[&<>"']/g,qje={"&":"&","<":"<",">":">",'"':""","'":"'"};function Sn(e,t){if(e==null)return null;const r=e.toString().toString();return t?r:r.replace(Kje,n=>qje[n])}function Xje(e,t=!1){return e===ge.DELETE?!0:!t&&e===ge.BACKSPACE?fpe():!1}var Yje=class extends xe{constructor(e,t,r,n){super(),this.cellCtrl=e,this.rowNode=r,this.rowCtrl=n,this.beans=t}setComp(e){this.eGui=e}onKeyDown(e){const t=e.key;switch(t){case ge.ENTER:this.onEnterKeyDown(e);break;case ge.F2:this.onF2KeyDown(e);break;case ge.ESCAPE:this.onEscapeKeyDown(e);break;case ge.TAB:this.onTabKeyDown(e);break;case ge.BACKSPACE:case ge.DELETE:this.onBackspaceOrDeleteKeyDown(t,e);break;case ge.DOWN:case ge.UP:case ge.RIGHT:case ge.LEFT:this.onNavigationKeyDown(e,t);break}}onNavigationKeyDown(e,t){var r;this.cellCtrl.editing||(e.shiftKey&&this.cellCtrl.isRangeSelectionEnabled()?this.onShiftRangeSelect(e):(r=this.beans.navigation)==null||r.navigateToNextCell(e,t,this.cellCtrl.cellPosition,!0),e.preventDefault())}onShiftRangeSelect(e){const{rangeSvc:t,navigation:r}=this.beans;if(!t)return;const n=t.extendLatestRangeInDirection(e);n&&(r==null||r.ensureCellVisible(n))}onTabKeyDown(e){var t;(t=this.beans.navigation)==null||t.onTabKeyDown(this.cellCtrl,e)}onBackspaceOrDeleteKeyDown(e,t){var l;const{cellCtrl:r,beans:n,rowNode:i}=this,{gos:o,rangeSvc:s,eventSvc:a}=n;if(!r.editing){if(a.dispatchEvent({type:"keyShortcutChangedCellStart"}),Xje(e,o.get("enableCellEditingOnBackspace"))){if(s&&Rs(o))s.clearCellRangeCellValues({dispatchWrapperEvents:!0,wrapperEventSource:"deleteKey"});else if(r.isCellEditable()){const{column:c}=r,u=this.beans.valueSvc.getDeleteValue(c,i);i.setDataValue(c,u,"cellClear")}}else(l=n.editSvc)==null||l.startRowOrCellEdit(r,e,t);a.dispatchEvent({type:"keyShortcutChangedCellEnd"})}}onEnterKeyDown(e){var n,i;const{cellCtrl:t,beans:r}=this;if(t.editing||this.rowCtrl.editing)t.stopEditingAndFocus(!1,e.shiftKey);else if(r.gos.get("enterNavigatesVertically")){const o=e.shiftKey?ge.UP:ge.DOWN;(n=r.navigation)==null||n.navigateToNextCell(null,o,t.cellPosition,!1)}else(i=r.editSvc)==null||i.startRowOrCellEdit(t,ge.ENTER,e),t.editing&&e.preventDefault()}onF2KeyDown(e){var n;const{cellCtrl:t,beans:r}=this;t.editing||(n=r.editSvc)==null||n.startRowOrCellEdit(t,ge.F2,e)}onEscapeKeyDown(e){var n;const{cellCtrl:t,beans:r}=this;t.editing&&((n=r.editSvc)==null||n.stopRowOrCellEdit(t,!0),t.focusCell(!0))}processCharacter(e){var i;if(e.target!==this.eGui||this.cellCtrl.editing)return;const n=e.key;n===ge.SPACE?this.onSpaceKeyDown(e):(i=this.beans.editSvc)!=null&&i.startRowOrCellEdit(this.cellCtrl,n,e)&&e.preventDefault()}onSpaceKeyDown(e){var r;const{gos:t}=this.beans;!this.cellCtrl.editing&&Fa(t)&&((r=this.beans.selectionSvc)==null||r.handleSelectionEvent(e,this.rowNode,"spaceKey")),e.preventDefault()}destroy(){super.destroy()}},Zje=class extends xe{constructor(e,t,r){super(),this.cellCtrl=e,this.column=r,this.beans=t}onMouseEvent(e,t){if(!Na(t))switch(e){case"click":this.onCellClicked(t);break;case"mousedown":case"touchstart":this.onMouseDown(t);break;case"dblclick":this.onCellDoubleClicked(t);break;case"mouseout":this.onMouseOut(t);break;case"mouseover":this.onMouseOver(t);break}}onCellClicked(e){var c;if((c=this.beans.touchSvc)!=null&&c.handleCellDoubleClick(this,e))return;const{eventSvc:t,rangeSvc:r,gos:n,editSvc:i}=this.beans,o=e.ctrlKey||e.metaKey;r&&o&&r.getCellRangeCount(this.cellCtrl.cellPosition)>1&&r.intersectLastRange(!0);const s=this.cellCtrl.createEvent(e,"cellClicked");t.dispatchEvent(s);const a=this.column.getColDef();a.onCellClicked&&window.setTimeout(()=>{this.beans.frameworkOverrides.wrapOutgoing(()=>{a.onCellClicked(s)})},0),(n.get("singleClickEdit")||a.singleClickEdit)&&!n.get("suppressClickEdit")&&!(e.shiftKey&&(r==null?void 0:r.getCellRanges().length)!=0)&&(i==null||i.startRowOrCellEdit(this.cellCtrl))}onCellDoubleClicked(e){const{column:t,beans:r,cellCtrl:n}=this,{eventSvc:i,frameworkOverrides:o,gos:s,editSvc:a}=r,l=t.getColDef(),c=n.createEvent(e,"cellDoubleClicked");i.dispatchEvent(c),typeof l.onCellDoubleClicked=="function"&&window.setTimeout(()=>{o.wrapOutgoing(()=>{l.onCellDoubleClicked(c)})},0),!s.get("singleClickEdit")&&!s.get("suppressClickEdit")&&(a==null||a.startRowOrCellEdit(n,null,e))}onMouseDown(e){const{ctrlKey:t,metaKey:r,shiftKey:n}=e,i=e.target,{cellCtrl:o,beans:s}=this,{eventSvc:a,rangeSvc:l,focusSvc:c,gos:u}=s;if(this.isRightClickInExistingRange(e))return;const d=l&&!l.isEmpty(),h=this.containsWidget(i),{cellPosition:p}=o;if(!n||!d){const g=u.get("enableCellTextSelection")&&e.defaultPrevented,m=(Im()||g)&&!o.editing&&!a5(i)&&!h;o.focusCell(m)}if(n&&d&&!c.isCellFocused(p)){e.preventDefault();const f=c.getFocusedCell();if(f){const{column:g,rowIndex:m,rowPinned:y}=f,b=s.rowRenderer.getRowByPosition({rowIndex:m,rowPinned:y}),S=b==null?void 0:b.getCellCtrl(g);S!=null&&S.editing&&S.stopEditing(),c.setFocusedCell({column:g,rowIndex:m,rowPinned:y,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}}if(!h){if(l)if(n)l.extendLatestRangeToCell(p);else{const f=t||r;l.setRangeToCell(p,f)}a.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseDown"))}}isRightClickInExistingRange(e){const{rangeSvc:t}=this.beans;if(t){const r=t.isCellInAnyRange(this.cellCtrl.cellPosition),n=e.button===2||e.ctrlKey&&this.beans.gos.get("allowContextMenuWithControlKey");if(r&&n)return!0}return!1}containsWidget(e){return Bg(e,"ag-selection-checkbox",3)||Bg(e,"ag-drag-handle",3)}onMouseOut(e){if(this.mouseStayingInsideCell(e))return;const{eventSvc:t,colHover:r}=this.beans;t.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseOut")),r==null||r.clearMouseOver()}onMouseOver(e){if(this.mouseStayingInsideCell(e))return;const{eventSvc:t,colHover:r}=this.beans;t.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseOver")),r==null||r.setMouseOver([this.column])}mouseStayingInsideCell(e){if(!e.target||!e.relatedTarget)return!1;const{eGui:t}=this.cellCtrl,r=t.contains(e.target),n=t.contains(e.relatedTarget);return r&&n}destroy(){super.destroy()}},Qje=class extends xe{constructor(e,t){super(),this.cellCtrl=e,this.beans=t,this.column=e.column,this.rowNode=e.rowNode}setupRowSpan(){this.rowSpan=this.column.getRowSpan(this.rowNode),this.addManagedListeners(this.beans.eventSvc,{newColumnsLoaded:()=>this.onNewColumnsLoaded()})}setComp(e){this.eGui=e,this.setupColSpan(),this.setupRowSpan(),this.onLeftChanged(),this.onWidthChanged(),this.applyRowSpan()}onNewColumnsLoaded(){const e=this.column.getRowSpan(this.rowNode);this.rowSpan!==e&&(this.rowSpan=e,this.applyRowSpan(!0))}onDisplayColumnsChanged(){const e=this.getColSpanningList();Oo(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())}setupColSpan(){this.column.getColDef().colSpan!=null&&(this.colsSpanning=this.getColSpanningList(),this.addManagedListeners(this.beans.eventSvc,{displayedColumnsChanged:this.onDisplayColumnsChanged.bind(this),displayedColumnsWidthChanged:this.onWidthChanged.bind(this)}))}onWidthChanged(){if(!this.eGui)return;const e=this.getCellWidth();this.eGui.style.width=`${e}px`}getCellWidth(){return this.colsSpanning?this.colsSpanning.reduce((e,t)=>e+t.getActualWidth(),0):this.column.getActualWidth()}getColSpanningList(){const{column:e,rowNode:t}=this,r=e.getColSpan(t),n=[];if(r===1)n.push(e);else{let i=e;const o=e.getPinned();for(let s=0;i&&sthis.removeFeatures()),this.onSuppressCellFocusChanged(this.beans.gos.get("suppressCellFocus")),this.onCellFocused(this.focusEventToRestore),this.applyStaticCssClasses(),this.setWrapText(),this.onFirstRightPinnedChanged(),this.onLastLeftPinnedChanged(),this.onColumnHover(),this.setupControlComps(),this.setupAutoHeight(r,o),this.refreshFirstAndLastStyles(),this.refreshAriaColIndex(),(s=this.positionFeature)==null||s.setComp(t),(a=this.customStyleFeature)==null||a.setComp(e),(l=this.tooltipFeature)==null||l.refreshTooltip(),(c=this.keyboardListener)==null||c.setComp(this.eGui),this.rangeFeature&&this.rangeFeature.setComp(e,t),i&&this.isCellEditable()?(u=this.beans.editSvc)==null||u.startEditing(this):this.showValue(),this.onCompAttachedFuncs.length&&(this.onCompAttachedFuncs.forEach(d=>d()),this.onCompAttachedFuncs=[])}setupAutoHeight(e,t){var r;this.isAutoHeight=this.column.isAutoHeight(),!(!this.isAutoHeight||!e)&&((r=this.beans.rowAutoHeight)==null||r.setupCellAutoHeight(this,e,t))}getCellAriaRole(){return this.column.getColDef().cellAriaRole??"gridcell"}isCellRenderer(){const e=this.column.getColDef();return e.cellRenderer!=null||e.cellRendererSelector!=null}getValueToDisplay(){return this.valueFormatted??this.value}showValue(e=!1){var c;const{beans:t,column:r,rowNode:n,rangeFeature:i}=this,{userCompFactory:o}=t,s=this.getValueToDisplay();let a;if(n.stub&&((c=n.groupData)==null?void 0:c[r.getId()])==null){const u=this.createCellRendererParams();a=Rje(o,r.getColDef(),u)}else if(this.isCellRenderer()){const u=this.createCellRendererParams();a=tI(o,r.getColDef(),u)}this.comp.setRenderDetails(a,s,e),i&&Tl(t,()=>i==null?void 0:i.refreshHandle())}setupControlComps(){const e=this.column.getColDef();this.includeSelection=this.isIncludeControl(this.isCheckboxSelection(e)),this.includeRowDrag=this.isIncludeControl(e.rowDrag),this.includeDndSource=this.isIncludeControl(e.dndSource),this.comp.setIncludeSelection(this.includeSelection),this.comp.setIncludeDndSource(this.includeDndSource),this.comp.setIncludeRowDrag(this.includeRowDrag)}isForceWrapper(){return this.beans.gos.get("enableCellTextSelection")||this.column.isAutoHeight()}isIncludeControl(e){return this.rowNode.rowPinned!=null?!1:typeof e=="function"||e===!0}isCheckboxSelection(e){const{rowSelection:t}=this.beans.gridOptions;return e.checkboxSelection||lu(this.column)&&t&&typeof t!="string"&&$g(t)}refreshShouldDestroy(){const e=this.column.getColDef(),t=this.includeSelection!=this.isIncludeControl(this.isCheckboxSelection(e)),r=this.includeRowDrag!=this.isIncludeControl(e.rowDrag),n=this.includeDndSource!=this.isIncludeControl(e.dndSource),i=this.isAutoHeight!=this.column.isAutoHeight();return t||r||n||i}onPopupEditorClosed(){this.editing&&this.stopEditingAndFocus()}stopEditing(e=!1){var t;return((t=this.beans.editSvc)==null?void 0:t.stopEditing(this,e))??!1}createCellRendererParams(){const{value:e,valueFormatted:t,column:r,rowNode:n,comp:i,eGui:o,beans:{valueSvc:s,gos:a}}=this;return a.addGridCommonParams({value:e,valueFormatted:t,getValue:()=>s.getValueForDisplay(r,n),setValue:c=>s.setValue(n,r,c),formatValue:this.formatValue.bind(this),data:n.data,node:n,pinned:r.getPinned(),colDef:r.getColDef(),column:r,refreshCell:this.refreshCell.bind(this),eGridCell:o,eParentOfValue:i.getParentOfValue(),registerRowDragger:(c,u,d,h)=>this.registerRowDragger(c,u,h),setTooltip:(c,u)=>{var d;a.assertModuleRegistered("Tooltip",3),this.tooltipFeature&&this.disableTooltipFeature(),this.enableTooltipFeature(c,u),(d=this.tooltipFeature)==null||d.refreshTooltip()}})}onCellChanged(e){e.column===this.column&&this.refreshCell({})}refreshOrDestroyCell(e){var t;this.refreshShouldDestroy()?(t=this.rowCtrl)==null||t.recreateCell(this):this.refreshCell(e)}refreshCell(e){var c,u,d,h,p,f;if(this.suppressRefreshCell||this.editing)return;const t=this.column.getColDef(),r=e!=null&&!!e.newData,n=e!=null&&!!e.suppressFlash,i=t.field==null&&t.valueGetter==null&&t.showRowGroup==null,o=e&&e.forceRefresh||i||r,s=!!this.comp,a=this.updateAndFormatValue(s),l=o||a;if(s){if(l){this.showValue(r);const g=(c=this.beans.filterManager)==null?void 0:c.isSuppressFlashingCellsBecauseFiltering();!n&&!g&&t.enableCellChangeFlash&&((u=this.beans.cellFlashSvc)==null||u.flashCell(this)),(d=this.customStyleFeature)==null||d.applyUserStyles(),(h=this.customStyleFeature)==null||h.applyClassesFromColDef()}(p=this.tooltipFeature)==null||p.refreshTooltip(),(f=this.customStyleFeature)==null||f.applyCellClassRules()}}stopEditingAndFocus(e=!1,t=!1){var r;(r=this.beans.editSvc)==null||r.stopEditingAndFocus(this,e,t)}isCellEditable(){return this.column.isCellEditable(this.rowNode)}formatValue(e){return this.callValueFormatter(e)??e}callValueFormatter(e){return this.beans.valueSvc.formatValue(this.column,this.rowNode,e)}updateAndFormatValue(e){const t=this.value,r=this.valueFormatted;return this.value=this.beans.valueSvc.getValueForDisplay(this.column,this.rowNode),this.valueFormatted=this.callValueFormatter(this.value),e?!this.valuesAreEqual(t,this.value)||this.valueFormatted!=r:!0}valuesAreEqual(e,t){const r=this.column.getColDef();return r.equals?r.equals(e,t):e===t}addDomData(e){const t=this.eGui;am(this.beans.gos,t,oI,this),e.addDestroyFunc(()=>am(this.beans.gos,t,oI,null))}createEvent(e,t){const{rowNode:r,column:n,value:i}=this;return this.beans.gos.addGridCommonParams({type:t,node:r,data:r.data,value:i,column:n,colDef:n.getColDef(),rowPinned:r.rowPinned,event:e,rowIndex:r.rowIndex})}processCharacter(e){var t;(t=this.keyboardListener)==null||t.processCharacter(e)}onKeyDown(e){var t;(t=this.keyboardListener)==null||t.onKeyDown(e)}onMouseEvent(e,t){var r;(r=this.mouseListener)==null||r.onMouseEvent(e,t)}getColSpanningList(){return this.positionFeature.getColSpanningList()}onLeftChanged(){var e;this.comp&&((e=this.positionFeature)==null||e.onLeftChanged())}onDisplayedColumnsChanged(){this.eGui&&(this.refreshAriaColIndex(),this.refreshFirstAndLastStyles())}refreshFirstAndLastStyles(){const{comp:e,column:t,beans:r}=this;bfe(e,t,r.visibleCols)}refreshAriaColIndex(){const e=this.beans.visibleCols.getAriaColIndex(this.column);i5(this.eGui,e)}onWidthChanged(){var e;return(e=this.positionFeature)==null?void 0:e.onWidthChanged()}getRowPosition(){const{rowIndex:e,rowPinned:t}=this.cellPosition;return{rowIndex:e,rowPinned:t}}updateRangeBordersIfRangeCount(){var e;this.comp&&((e=this.rangeFeature)==null||e.updateRangeBordersIfRangeCount())}onCellSelectionChanged(){var e;this.comp&&((e=this.rangeFeature)==null||e.onCellSelectionChanged())}isRangeSelectionEnabled(){return this.rangeFeature!=null}focusCell(e=!1){this.beans.focusSvc.setFocusedCell({rowIndex:this.cellPosition.rowIndex,column:this.column,rowPinned:this.rowNode.rowPinned,forceBrowserFocus:e})}onRowIndexChanged(){var e;this.createCellPosition(),this.onCellFocused(),(e=this.rangeFeature)==null||e.onCellSelectionChanged()}onSuppressCellFocusChanged(e){this.eGui&&vl(this.eGui,"tabindex",e?void 0:-1)}onFirstRightPinnedChanged(){if(!this.comp)return;const e=this.column.isFirstRightPinned();this.comp.addOrRemoveCssClass(nKe,e)}onLastLeftPinnedChanged(){if(!this.comp)return;const e=this.column.isLastLeftPinned();this.comp.addOrRemoveCssClass(iKe,e)}onCellFocused(e){var i;const{beans:t}=this;if(Efe(t))return;const r=t.focusSvc.isCellFocused(this.cellPosition);if(!this.comp){r&&(e!=null&&e.forceBrowserFocus)&&(this.focusEventToRestore=e);return}if(this.focusEventToRestore=void 0,this.comp.addOrRemoveCssClass(rKe,r),r&&e&&e.forceBrowserFocus){let o=this.comp.getFocusableElement();if(this.editing){const s=ac(o,null,!0);s.length&&(o=s[0])}o.focus({preventScroll:!!e.preventScrollOnBrowserFocus})}const n=t.gos.get("editType")==="fullRow";!r&&!n&&this.editing&&((i=t.editSvc)==null||i.stopRowOrCellEdit(this)),r&&this.rowCtrl.announceDescription()}createCellPosition(){const{rowIndex:e,rowPinned:t}=this.rowNode;this.cellPosition={rowIndex:e,rowPinned:Ai(t),column:this.column}}setInlineEditingCss(){var e;(e=this.beans.editSvc)==null||e.setInlineEditingCss(this.rowCtrl)}applyStaticCssClasses(){const{comp:e}=this;e.addOrRemoveCssClass(Jje,!0),e.addOrRemoveCssClass(oKe,!0);const t=this.column.isAutoHeight()==!0;e.addOrRemoveCssClass(eKe,t),e.addOrRemoveCssClass(tKe,!t)}onColumnHover(){var e;(e=this.beans.colHover)==null||e.onCellColumnHover(this.column,this.comp)}onColDefChanged(){var e;this.comp&&(this.column.isTooltipEnabled()?(this.disableTooltipFeature(),this.enableTooltipFeature()):this.disableTooltipFeature(),this.setWrapText(),this.editing?(e=this.beans.editSvc)==null||e.handleColDefChanged(this):this.refreshOrDestroyCell({forceRefresh:!0,suppressFlash:!0}))}setWrapText(){const e=this.column.getColDef().wrapText==!0;this.comp.addOrRemoveCssClass(sKe,e)}dispatchCellContextMenuEvent(e){const t=this.column.getColDef(),r=this.createEvent(e,"cellContextMenu"),{beans:n}=this;n.eventSvc.dispatchEvent(r),t.onCellContextMenu&&window.setTimeout(()=>{n.frameworkOverrides.wrapOutgoing(()=>{t.onCellContextMenu(r)})},0)}getCellRenderer(){var e;return((e=this.comp)==null?void 0:e.getCellRenderer())??null}destroy(){this.onCompAttachedFuncs=[],this.onEditorAttachedFuncs=[],super.destroy()}createSelectionCheckbox(){var t;const e=(t=this.beans.selectionSvc)==null?void 0:t.createCheckboxSelectionComponent();if(e)return this.beans.context.createBean(e),e.init({rowNode:this.rowNode,column:this.column}),e}createDndSource(){const e=this.beans.registry.createDynamicBean("dndSourceComp",!1,this.rowNode,this.column,this.eGui);return e&&this.beans.context.createBean(e),e}registerRowDragger(e,t,r){if(this.customRowDragComp){this.customRowDragComp.setDragElement(e,t);return}const n=this.createRowDragComp(e,t,r);n&&(this.customRowDragComp=n,this.addDestroyFunc(()=>{this.beans.context.destroyBean(n),this.customRowDragComp=null}))}createRowDragComp(e,t,r){var i;const n=(i=this.beans.rowDragSvc)==null?void 0:i.createRowDragCompForCell(this.rowNode,this.column,()=>this.value,e,t,r);if(n)return this.beans.context.createBean(n),n}cellEditorAttached(){this.onEditorAttachedFuncs.forEach(e=>e()),this.onEditorAttachedFuncs=[]}},Tfe="__ag_grid_instance";function Rfe(e,t){t[Tfe]=e.gridInstanceId}function sI(e,t){return Pfe(e,t.target)}function Pfe(e,t){let r=t;for(;r;){const n=r[Tfe];if(Qe(n))return n===e.gridInstanceId;r=r.parentElement}return!1}function Mfe(e,t){var r;return((r=S5(e,t.target))==null?void 0:r.cellPosition)??null}function WS(e,t){const r=Eo(e.gos,"normal"),n=t;let i,o;if(n.clientX!=null||n.clientY!=null?(i=n.clientX,o=n.clientY):(i=n.x,o=n.y),r){const s=e.ctrlsSvc.getScrollFeature(),a=s.getVScrollPosition(),l=s.getHScrollPosition();i+=l.left,o+=a.top}return{x:i,y:o}}var vc=(e=>(e[e.ToolPanel=0]="ToolPanel",e[e.HeaderCell=1]="HeaderCell",e[e.RowDrag=2]="RowDrag",e[e.ChartPanel=3]="ChartPanel",e[e.AdvancedFilterBuilder=4]="AdvancedFilterBuilder",e))(vc||{}),lKe=class extends xe{constructor(){super(...arguments),this.beanName="dragAndDrop",this.dragSourceAndParamsList=[],this.dropTargets=[]}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.dragSvc=e.dragSvc,this.environment=e.environment,this.userCompFactory=e.userCompFactory}addDragSource(e,t=!1){const r={eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this),onDragCancel:this.onDragCancel.bind(this),includeTouch:t};this.dragSourceAndParamsList.push({params:r,dragSource:e}),this.dragSvc.addDragSource(r)}getDragAndDropImageComponent(){const{dragAndDropImageComp:e}=this;return!e||!e.comp?null:e.comp}removeDragSource(e){const{dragSourceAndParamsList:t,dragSvc:r}=this,n=t.find(i=>i.dragSource===e);n&&(r.removeDragSource(n.params),Po(t,n))}destroy(){const{dragSourceAndParamsList:e,dragSvc:t,dropTargets:r}=this;e.forEach(n=>t.removeDragSource(n.params)),e.length=0,r.length=0,this.clearDragAndDropProperties(),super.destroy()}nudge(){this.dragging&&this.onDragging(this.eventLastTime,!0)}onDragStart(e,t){var r;this.dragging=!0,this.dragSource=e,this.eventLastTime=t,this.dragItem=e.getDragItem(),(r=e.onDragStarted)==null||r.call(e),this.createDragAndDropImageComponent()}onDragStop(e){var r,n;(n=(r=this.dragSource)==null?void 0:r.onDragStopped)==null||n.call(r);const{lastDropTarget:t}=this;if(t!=null&&t.onDragStop){const i=this.createDropTargetEvent(t,e,null,null,!1);t.onDragStop(i)}this.clearDragAndDropProperties()}onDragCancel(){var r;const{dragSource:e,lastDropTarget:t}=this;(r=e==null?void 0:e.onDragCancelled)==null||r.call(e),t!=null&&t.onDragCancel&&t.onDragCancel(this.createDropTargetEvent(t,this.eventLastTime,null,null,!1)),this.clearDragAndDropProperties()}clearDragAndDropProperties(){this.eventLastTime=null,this.dragging=!1,this.lastDropTarget=void 0,this.dragItem=null,this.dragSource=null,this.removeDragAndDropImageComponent()}onDragging(e,t=!1){var u,d;const r=this.getHorizontalDirection(e),n=this.getVerticalDirection(e);this.eventLastTime=e,this.positionDragAndDropImageComp(e);const i=this.dropTargets.filter(h=>this.isMouseOnDropTarget(e,h)),o=this.findCurrentDropTarget(e,i),{lastDropTarget:s,dragSource:a,dragAndDropImageComp:l,dragItem:c}=this;if(o!==s){if(this.leaveLastTargetIfExists(e,r,n,t),s!==null&&o===null&&((u=a==null?void 0:a.onGridExit)==null||u.call(a,c)),s===null&&o!==null&&((d=a==null?void 0:a.onGridEnter)==null||d.call(a,c)),this.enterDragTargetIfExists(o,e,r,n,t),o&&l){const{comp:h,promise:p}=l;h?h.setIcon(o.getIconName?o.getIconName():null,!1):p.then(f=>{f&&f.setIcon(o.getIconName?o.getIconName():null,!1)})}this.lastDropTarget=o}else if(o&&o.onDragging){const h=this.createDropTargetEvent(o,e,r,n,t);o.onDragging(h)}}getAllContainersFromDropTarget(e){const t=e.getSecondaryContainers?e.getSecondaryContainers():null,r=[[e.getContainer()]];return t?r.concat(t):r}isMouseOnDropTarget(e,t){const r=this.getAllContainersFromDropTarget(t);let n=!1;const i=(a,l)=>{for(const c of l){const{width:u,height:d,left:h,right:p,top:f,bottom:g}=c.getBoundingClientRect();if(u===0||d===0)return!1;const m=a.clientX>=h&&a.clientX=f&&a.clientYl).indexOf(o)!==-1)return s;return null}enterDragTargetIfExists(e,t,r,n,i){if(e&&e.onDragEnter){const o=this.createDropTargetEvent(e,t,r,n,i);e.onDragEnter(o)}}leaveLastTargetIfExists(e,t,r,n){const{lastDropTarget:i}=this;if(!i)return;if(i.onDragLeave){const s=this.createDropTargetEvent(i,e,t,r,n);i.onDragLeave(s)}const o=this.getDragAndDropImageComponent();o&&o.setIcon(null,!1)}addDropTarget(e){this.dropTargets.push(e)}removeDropTarget(e){this.dropTargets=this.dropTargets.filter(t=>t.getContainer()!==e.getContainer())}hasExternalDropZones(){return this.dropTargets.some(e=>e.external)}findExternalZone(e){return this.dropTargets.filter(r=>r.external).find(r=>r.getContainer()===e.getContainer())||null}isDropZoneWithinThisGrid(e){const r=this.ctrlsSvc.getGridBodyCtrl().eGridBody,{dropZoneTarget:n}=e;return r.contains(n)}getHorizontalDirection(e){var n;const t=(n=this.eventLastTime)==null?void 0:n.clientX,r=e.clientX;return t===r?null:t>r?"left":"right"}getVerticalDirection(e){var n;const t=(n=this.eventLastTime)==null?void 0:n.clientY,r=e.clientY;return t===r?null:t>r?"up":"down"}createDropTargetEvent(e,t,r,n,i){const o=e.getContainer(),s=o.getBoundingClientRect(),{dragItem:a,dragSource:l,gos:c}=this,u=t.clientX-s.left,d=t.clientY-s.top;return c.addGridCommonParams({event:t,x:u,y:d,vDirection:n,hDirection:r,dragSource:l,fromNudge:i,dragItem:a,dropZoneTarget:o})}positionDragAndDropImageComp(e){const t=this.getDragAndDropImageComponent();t&&wV(t.getGui(),e,this.beans)}removeDragAndDropImageComponent(){var t;const{dragAndDropImageComp:e}=this;if(e){const{comp:r}=e;if(r){const n=r.getGui();(t=this.dragAndDropImageParent)==null||t.removeChild(n),this.destroyBean(r)}}this.dragAndDropImageComp=null}createDragAndDropImageComponent(){const{dragSource:e}=this;if(!e)return;const t=vje(this.userCompFactory,{dragSource:e});if(!t)return;const r=t.newAgStackInstance();this.dragAndDropImageComp={promise:r},r.then(n=>{!n||!this.isAlive()||(this.processDragAndDropImageComponent(n),this.dragAndDropImageComp.comp=n)})}processDragAndDropImageComponent(e){const{dragSource:t,environment:r}=this;if(!t)return;const n=e.getGui();n.style.setProperty("position","absolute"),n.style.setProperty("z-index","9999"),Rfe(this.gos,n),r.applyThemeClasses(n),e.setIcon(null,!1);let{dragItemName:i}=t;typeof i=="function"&&(i=i()),e.setLabel(i||""),n.style.top="20px",n.style.left="20px";const o=TA(this.beans);this.dragAndDropImageParent=o,o?o.appendChild(n):we(54)}registerGridDropTarget(e,t){const r={getContainer:e,isInterestedIn:n=>n===1||n===0,getIconName:()=>"notAllowed"};this.addDropTarget(r),t.addDestroyFunc(()=>this.removeDropTarget(r))}},w5=class{constructor(e){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=e.scrollContainer,this.scrollHorizontally=e.scrollAxis.indexOf("x")!==-1,this.scrollVertically=e.scrollAxis.indexOf("y")!==-1,this.scrollByTick=e.scrollByTick!=null?e.scrollByTick:20,e.onScrollCallback&&(this.onScrollCallback=e.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=e.getVerticalPosition,this.setVerticalPosition=e.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=e.getHorizontalPosition,this.setHorizontalPosition=e.setHorizontalPosition),this.shouldSkipVerticalScroll=e.shouldSkipVerticalScroll||(()=>!1),this.shouldSkipHorizontalScroll=e.shouldSkipHorizontalScroll||(()=>!1)}check(e,t=!1){const r=t||this.shouldSkipVerticalScroll();if(r&&this.shouldSkipHorizontalScroll())return;const n=this.scrollContainer.getBoundingClientRect(),i=this.scrollByTick;this.tickLeft=e.clientXn.right-i,this.tickUp=e.clientYn.bottom-i&&!r,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}ensureTickingStarted(){this.tickingInterval===null&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)}doTick(){this.tickCount++;const e=this.tickCount>20?200:this.tickCount>10?80:40;if(this.scrollVertically){const t=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(t-e),this.tickDown&&this.setVerticalPosition(t+e)}if(this.scrollHorizontally){const t=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(t-e),this.tickRight&&this.setHorizontalPosition(t+e)}this.onScrollCallback&&this.onScrollCallback()}ensureCleared(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)}};function Hh(e){const{rowIndex:t,rowPinned:r,column:n}=e;return`${t}.${r??"null"}.${n.getId()}`}function rC(e,t){const r=e.column===t.column,n=e.rowPinned===t.rowPinned,i=e.rowIndex===t.rowIndex;return r&&n&&i}function Jo(e,t){switch(e.rowPinned){case"top":if(t.rowPinned!=="top")return!0;break;case"bottom":if(t.rowPinned!=="bottom")return!1;break;default:if(Qe(t.rowPinned))return t.rowPinned!=="top";break}return e.rowIndex{const i=n.gridBodyCtrl;this.autoScrollService=new w5({scrollContainer:i.eBodyViewport,scrollAxis:"y",getVerticalPosition:()=>i.scrollFeature.getVScrollPosition().top,setVerticalPosition:o=>i.scrollFeature.setVerticalScrollPosition(o),onScrollCallback:()=>{this.onDragging(this.lastDraggingEvent)}})})}getContainer(){return this.eContainer}isInterestedIn(e){return e===2}getIconName(){return this.gos.get("rowDragManaged")&&this.shouldPreventRowMove()?"notAllowed":"move"}shouldPreventRowMove(){const{rowGroupColsSvc:e,filterManager:t,sortSvc:r}=this.beans;return!!(((e==null?void 0:e.columns)??[]).length||(t==null?void 0:t.isAnyFilterPresent())||(r==null?void 0:r.isSortActive()))}getRowNodes(e){var n;if(!this.isFromThisGrid(e))return e.dragItem.rowNodes||[];const t=e.dragItem.rowNode;if(this.gos.get("rowDragMultiRow")){const i=[...((n=this.beans.selectionSvc)==null?void 0:n.getSelectedNodes())??[]].sort((o,s)=>o.rowIndex==null||s.rowIndex==null?0:this.getRowIndexNumber(o)-this.getRowIndexNumber(s));if(i.indexOf(t)!==-1)return i}return[t]}onDragEnter(e){e.dragItem.rowNodes=this.getRowNodes(e),this.dispatchGridEvent("rowDragEnter",e),this.getRowNodes(e).forEach(t=>{this.setRowNodeDragging(t,!0)}),this.onEnterOrDragging(e)}onDragging(e){this.onEnterOrDragging(e)}isFromThisGrid(e){const{dragSourceDomDataKey:t}=e.dragSource;return t===this.gos.getDomDataKey()}onEnterOrDragging(e){this.dispatchGridEvent("rowDragMove",e),this.lastDraggingEvent=e;const t=WS(this.beans,e).y;this.gos.get("rowDragManaged")&&this.doManagedDrag(e,t),this.autoScrollService.check(e.event)}doManagedDrag(e,t){const{dragAndDrop:r,gos:n}=this.beans,i=this.isFromThisGrid(e),o=n.get("rowDragManaged"),s=e.dragItem.rowNodes;o&&this.shouldPreventRowMove()||(n.get("suppressMoveWhenRowDragging")||!i?r.isDropZoneWithinThisGrid(e)&&this.clientSideRowModel.highlightRowAtPixel(s[0],t):this.moveRows(s,t))}getRowIndexNumber(e){const t=e.getRowIndexString();return parseInt(er(t.split("-")),10)}moveRowAndClearHighlight(e){const t=this.clientSideRowModel,r=t.getLastHighlightedRowNode(),n=r&&r.highlighted==="Below",i=WS(this.beans,e).y,o=e.dragItem.rowNodes;let s=n?1:0;if(this.isFromThisGrid(e))o.forEach(a=>{a.rowTop!t.getRowNode((a==null?void 0:a({data:c.data,level:0,rowPinned:c.rowPinned}))??c.data.id)).map(c=>c.data),addIndex:l})}this.clearRowHighlight()}clearRowHighlight(){this.clientSideRowModel.highlightRowAtPixel(null)}moveRows(e,t,r=0){const n=this.beans.focusSvc,i=n.getFocusedCell(),o=i&&Jc(this.beans,i);this.clientSideRowModel.ensureRowsAtPixel(e,t,r)&&(o?o.focusCell():n.clearFocusedCell())}addRowDropZone(e){if(!e.getContainer()){we(55);return}const t=this.beans.dragAndDrop;if(t.findExternalZone(e)){we(56);return}let r={getContainer:e.getContainer};e.fromGrid?r=e:(e.onDragEnter&&(r.onDragEnter=i=>{e.onDragEnter(this.draggingToRowDragEvent("rowDragEnter",i))}),e.onDragLeave&&(r.onDragLeave=i=>{e.onDragLeave(this.draggingToRowDragEvent("rowDragLeave",i))}),e.onDragging&&(r.onDragging=i=>{e.onDragging(this.draggingToRowDragEvent("rowDragMove",i))}),e.onDragStop&&(r.onDragStop=i=>{e.onDragStop(this.draggingToRowDragEvent("rowDragEnd",i))}),e.onDragCancel&&(r.onDragCancel=i=>{e.onDragCancel(this.draggingToRowDragEvent("rowDragCancel",i))}));const n={isInterestedIn:i=>i===2,getIconName:()=>"move",external:!0,...r};t.addDropTarget(n),this.addDestroyFunc(()=>t.removeDropTarget(n))}getRowDropZone(e){const t=this.getContainer.bind(this),r=this.onDragEnter.bind(this),n=this.onDragLeave.bind(this),i=this.onDragging.bind(this),o=this.onDragStop.bind(this),s=this.onDragCancel.bind(this);let a;return e?a={getContainer:t,onDragEnter:e.onDragEnter?l=>{r(l),e.onDragEnter(this.draggingToRowDragEvent("rowDragEnter",l))}:r,onDragLeave:e.onDragLeave?l=>{n(l),e.onDragLeave(this.draggingToRowDragEvent("rowDragLeave",l))}:n,onDragging:e.onDragging?l=>{i(l),e.onDragging(this.draggingToRowDragEvent("rowDragMove",l))}:i,onDragStop:e.onDragStop?l=>{o(l),e.onDragStop(this.draggingToRowDragEvent("rowDragEnd",l))}:o,onDragCancel:e.onDragCancel?l=>{s(l),e.onDragCancel(this.draggingToRowDragEvent("rowDragCancel",l))}:s,fromGrid:!0}:a={getContainer:t,onDragEnter:r,onDragLeave:n,onDragging:i,onDragStop:o,onDragCancel:s,fromGrid:!0},a}draggingToRowDragEvent(e,t){const r=this.beans,{pageBounds:n,rowModel:i,gos:o}=r,s=WS(r,t).y,a=s>n.getCurrentPageHeight();let l=-1,c;return a||(l=i.getRowIndexAtPixel(s),c=i.getRow(l)),o.addGridCommonParams({type:e,event:t.event,node:t.dragItem.rowNode,nodes:t.dragItem.rowNodes,overIndex:l,overNode:c,y:s,vDirection:t.vDirection})}dispatchGridEvent(e,t){const r=this.draggingToRowDragEvent(e,t);this.eventSvc.dispatchEvent(r)}onDragLeave(e){this.dispatchGridEvent("rowDragLeave",e),this.stopDragging(e),this.gos.get("rowDragManaged")&&this.clearRowHighlight()}onDragStop(e){this.dispatchGridEvent("rowDragEnd",e),this.stopDragging(e);const{dragAndDrop:t,gos:r}=this.beans;r.get("rowDragManaged")&&(r.get("suppressMoveWhenRowDragging")||!this.isFromThisGrid(e))&&t.isDropZoneWithinThisGrid(e)&&this.moveRowAndClearHighlight(e)}onDragCancel(e){this.dispatchGridEvent("rowDragCancel",e),this.stopDragging(e);const{dragAndDrop:t,gos:r}=this.beans;r.get("rowDragManaged")&&(r.get("suppressMoveWhenRowDragging")||!this.isFromThisGrid(e))&&t.isDropZoneWithinThisGrid(e)&&this.clearRowHighlight()}stopDragging(e){this.autoScrollService.ensureCleared(),this.getRowNodes(e).forEach(t=>{this.setRowNodeDragging(t,!1)})}setRowNodeDragging(e,t){e.dragging!==t&&(e.dragging=t,e.dispatchRowEvent("draggingChanged"))}};function Ife(e,t,r){if(r===0)return!1;const n=Math.abs(e.clientX-t.clientX),i=Math.abs(e.clientY-t.clientY);return Math.max(n,i)<=r}var hKe=class extends xe{constructor(){super(...arguments),this.beanName="dragSvc",this.dragEndFunctions=[],this.dragSources=[]}destroy(){const{dragSources:e}=this;e.forEach(this.removeListener.bind(this)),e.length=0,super.destroy()}removeListener(e){const t=e.dragSource.eElement,r=e.mouseDownListener;if(t.removeEventListener("mousedown",r),e.touchEnabled){const n=e.touchStartListener;t.removeEventListener("touchstart",n,{passive:!0})}}removeDragSource(e){const{dragSources:t}=this,r=t.find(n=>n.dragSource===e);r&&(this.removeListener(r),Po(t,r))}addDragSource(e){const t=this.onMouseDown.bind(this,e),{eElement:r,includeTouch:n,stopPropagationForTouch:i}=e;r.addEventListener("mousedown",t);let o=null;const s=this.gos.get("suppressTouch");n&&!s&&(o=a=>{a5(a.target)||(i&&a.stopPropagation(),this.onTouchStart(e,a))},r.addEventListener("touchstart",o,{passive:!1})),this.dragSources.push({dragSource:e,mouseDownListener:t,touchStartListener:o,touchEnabled:!!n})}onTouchStart(e,t){this.currentDragParams=e,this.dragging=!1;const r=t.touches[0];this.touchLastTime=r,this.touchStart=r;const n=l=>this.onTouchMove(l,e.eElement),i=l=>this.onTouchUp(l,e.eElement),o=l=>{l.cancelable&&l.preventDefault()},s=t.target,a=[{target:Qy(this.beans),type:"touchmove",listener:o,options:{passive:!1}},{target:s,type:"touchmove",listener:n,options:{passive:!0}},{target:s,type:"touchend",listener:i,options:{passive:!0}},{target:s,type:"touchcancel",listener:i,options:{passive:!0}}];this.addTemporaryEvents(a),e.dragStartPixels===0&&this.onCommonMove(r,this.touchStart,e.eElement)}onMouseDown(e,t){const r=t;if(e.skipMouseEvent&&e.skipMouseEvent(t)||r._alreadyProcessedByDragService||(r._alreadyProcessedByDragService=!0,t.button!==0))return;this.shouldPreventMouseEvent(t)&&t.preventDefault(),this.currentDragParams=e,this.dragging=!1,this.mouseStartEvent=t,this.startTarget=t.target;const n=c=>this.onMouseMove(c,e.eElement),i=c=>this.onMouseUp(c,e.eElement),o=c=>c.preventDefault(),s=c=>{c.key===ge.ESCAPE&&this.cancelDrag(e.eElement)},a=Qy(this.beans),l=[{target:a,type:"mousemove",listener:n},{target:a,type:"mouseup",listener:i},{target:a,type:"contextmenu",listener:o},{target:a,type:"keydown",listener:s}];this.addTemporaryEvents(l),e.dragStartPixels===0&&this.onMouseMove(t,e.eElement)}addTemporaryEvents(e){e.forEach(t=>{const{target:r,type:n,listener:i,options:o}=t;r.addEventListener(n,i,o)}),this.dragEndFunctions.push(()=>{e.forEach(t=>{const{target:r,type:n,listener:i,options:o}=t;r.removeEventListener(n,i,o)})})}isEventNearStartEvent(e,t){const{dragStartPixels:r}=this.currentDragParams,n=Qe(r)?r:4;return Ife(e,t,n)}getFirstActiveTouch(e){for(let t=0;t{const s=o.target,a=s==null?void 0:s.tagName.toLocaleLowerCase();return!!(a!=null&&a.match("^a$|textarea|input|select|button"))};return r&&n&&e.cancelable&&sI(t,e)&&!i(e)}onTouchUp(e,t){let r=this.getFirstActiveTouch(e.changedTouches);r||(r=this.touchLastTime),this.onUpCommon(r,t)}onMouseUp(e,t){this.onUpCommon(e,t)}onUpCommon(e,t){this.dragging&&(this.dragging=!1,this.currentDragParams.onDragStop(e),this.eventSvc.dispatchEvent({type:"dragStopped",target:t})),this.resetDragProperties()}cancelDrag(e){var t,r;this.eventSvc.dispatchEvent({type:"dragCancelled",target:e}),(r=(t=this.currentDragParams)==null?void 0:t.onDragCancel)==null||r.call(t),this.resetDragProperties()}resetDragProperties(){this.mouseStartEvent=null,this.startTarget=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null;const{dragEndFunctions:e}=this;e.forEach(t=>t()),e.length=0}};function Dfe(e,t){return e+"_"+t}function ui(e){return e instanceof Afe}var Afe=class extends xe{constructor(e,t,r,n){super(),this.providedColumnGroup=e,this.groupId=t,this.partId=r,this.pinned=n,this.isColumn=!1,this.displayedChildren=[],this.autoHeaderHeight=null,this.parent=null}reset(){this.parent=null,this.children=null,this.displayedChildren=null}getParent(){return this.parent}getUniqueId(){return Dfe(this.groupId,this.partId)}isEmptyGroup(){return this.displayedChildren.length===0}isMoving(){const e=this.getProvidedColumnGroup().getLeafColumns();return!e||e.length===0?!1:e.every(t=>t.isMoving())}checkLeft(){if(this.displayedChildren.forEach(e=>{ui(e)&&e.checkLeft()}),this.displayedChildren.length>0)if(this.gos.get("enableRtl")){const t=er(this.displayedChildren).getLeft();this.setLeft(t)}else{const e=this.displayedChildren[0].getLeft();this.setLeft(e)}else this.setLeft(null)}getLeft(){return this.left}getOldLeft(){return this.oldLeft}setLeft(e){this.oldLeft=this.left,this.left!==e&&(this.left=e,this.dispatchLocalEvent({type:"leftChanged"}))}getPinned(){return this.pinned}getGroupId(){return this.groupId}getPartId(){return this.partId}getActualWidth(){var t;let e=0;return(t=this.displayedChildren)==null||t.forEach(r=>{e+=r.getActualWidth()}),e}isResizable(){if(!this.displayedChildren)return!1;let e=!1;return this.displayedChildren.forEach(t=>{t.isResizable()&&(e=!0)}),e}getMinWidth(){let e=0;return this.displayedChildren.forEach(t=>{e+=t.getMinWidth()}),e}addChild(e){this.children||(this.children=[]),this.children.push(e)}getDisplayedChildren(){return this.displayedChildren}getLeafColumns(){const e=[];return this.addLeafColumns(e),e}getDisplayedLeafColumns(){const e=[];return this.addDisplayedLeafColumns(e),e}getDefinition(){return this.providedColumnGroup.getColGroupDef()}getColGroupDef(){return this.providedColumnGroup.getColGroupDef()}isPadding(){return this.providedColumnGroup.isPadding()}isExpandable(){return this.providedColumnGroup.isExpandable()}isExpanded(){return this.providedColumnGroup.isExpanded()}setExpanded(e){this.providedColumnGroup.setExpanded(e)}isAutoHeaderHeight(){var e;return!!((e=this.getColGroupDef())!=null&&e.autoHeaderHeight)}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(e){const t=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,t}addDisplayedLeafColumns(e){this.displayedChildren.forEach(t=>{yu(t)?e.push(t):ui(t)&&t.addDisplayedLeafColumns(e)})}addLeafColumns(e){this.children.forEach(t=>{yu(t)?e.push(t):ui(t)&&t.addLeafColumns(e)})}getChildren(){return this.children}getColumnGroupShow(){return this.providedColumnGroup.getColumnGroupShow()}getProvidedColumnGroup(){return this.providedColumnGroup}getPaddingLevel(){const e=this.getParent();return!this.isPadding()||!e||!e.isPadding()?0:1+e.getPaddingLevel()}calculateDisplayedColumns(){this.displayedChildren=[];let e=this;for(;e!=null&&e.isPadding();)e=e.getParent();if(!(e?e.getProvidedColumnGroup().isExpandable():!1)){this.displayedChildren=this.children,this.dispatchLocalEvent({type:"displayedChildrenChanged"});return}this.children.forEach(r=>{if(ui(r)&&(!r.displayedChildren||!r.displayedChildren.length))return;switch(r.getColumnGroupShow()){case"open":e.getProvidedColumnGroup().isExpanded()&&this.displayedChildren.push(r);break;case"closed":e.getProvidedColumnGroup().isExpanded()||this.displayedChildren.push(r);break;default:this.displayedChildren.push(r);break}}),this.dispatchLocalEvent({type:"displayedChildrenChanged"})}},Bw="row-group-",Ffe="t-",Lfe="b-",pKe=0,da=class{constructor(e){this.master=!1,this.detail=void 0,this.rowIndex=null,this.key=null,this.sourceRowIndex=-1,this.childrenMapped={},this.treeNode=null,this.treeNodeFlags=0,this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=pKe++,this.alreadyRendered=!1,this.highlighted=null,this.hovered=!1,this.__selected=!1,this.beans=e}setData(e){this.setDataCommon(e,!1)}updateData(e){this.setDataCommon(e,!0)}setDataCommon(e,t){var i,o,s;const r=this.data;this.data=e,(i=this.beans.valueCache)==null||i.onDataChanged(),this.updateDataOnDetailNode(),(o=this.beans.selectionSvc)==null||o.updateRowSelectable(this),this.resetQuickFilterAggregateText();const n=this.createDataChangedEvent(e,r,t);(s=this.__localEventService)==null||s.dispatchEvent(n)}updateDataOnDetailNode(){this.detailNode&&(this.detailNode.data=this.data)}createDataChangedEvent(e,t,r){return{type:"dataChanged",node:this,oldData:t,newData:e,update:r}}getRowIndexString(){return this.rowIndex==null?(Cr(13),null):this.rowPinned==="top"?Ffe+this.rowIndex:this.rowPinned==="bottom"?Lfe+this.rowIndex:this.rowIndex.toString()}setDataAndId(e,t){var s,a;const{selectionSvc:r}=this.beans,n=(s=r==null?void 0:r.createDaemonNode)==null?void 0:s.call(r,this),i=this.data;this.data=e,this.updateDataOnDetailNode(),this.setId(t),r&&(r.updateRowSelectable(this),r.syncInRowNode(this,n));const o=this.createDataChangedEvent(e,i,!1);(a=this.__localEventService)==null||a.dispatchEvent(o)}setId(e){var r;const t=Fd(this.beans.gos);if(t)if(this.data){const n=((r=this.parent)==null?void 0:r.getRoute())??[];this.id=t({data:this.data,parentKeys:n.length>0?n:void 0,level:this.level,rowPinned:this.rowPinned}),this.id.startsWith(Bw)&&Cr(14,{groupPrefix:Bw})}else this.id=void 0;else this.id=e}setRowTop(e){this.oldRowTop=this.rowTop,this.rowTop!==e&&(this.rowTop=e,this.dispatchRowEvent("topChanged"),this.setDisplayed(e!==null))}clearRowTopAndRowIndex(){this.oldRowTop=null,this.setRowTop(null),this.setRowIndex(null)}setHovered(e){this.hovered=e}isHovered(){return this.hovered}setRowHeight(e,t=!1){this.rowHeight=e,this.rowHeightEstimated=t,this.dispatchRowEvent("heightChanged")}setExpanded(e,t,r){var n;(n=this.beans.expansionSvc)==null||n.setExpanded(this,e,t,r)}setDataValue(e,t,r){const{colModel:n,valueSvc:i,gos:o,selectionSvc:s}=this.beans,a=typeof e!="string"?e:n.getCol(e)??n.getColDefCol(e);if(!a)return!1;const l=i.getValueForDisplay(a,this);if(o.get("readOnlyEdit")){const{beans:{eventSvc:u},data:d,rowIndex:h,rowPinned:p}=this;return u.dispatchEvent({type:"cellEditRequest",event:null,rowIndex:h,rowPinned:p,column:a,colDef:a.colDef,data:d,node:this,oldValue:l,newValue:t,value:t,source:r}),!1}const c=i.setValue(this,a,t,r);return this.dispatchCellChangedEvent(a,t,l),s==null||s.updateRowSelectable(this),c}updateHasChildren(){let e=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0;const{rowChildrenSvc:t}=this.beans;t&&(e=t.getHasChildrenValue(this)),e!==this.__hasChildren&&(this.__hasChildren=!!e,this.dispatchRowEvent("hasChildrenChanged"))}hasChildren(){return this.__hasChildren==null&&this.updateHasChildren(),this.__hasChildren}dispatchCellChangedEvent(e,t,r){var i;const n={type:"cellChanged",node:this,column:e,newValue:t,oldValue:r};(i=this.__localEventService)==null||i.dispatchEvent(n)}resetQuickFilterAggregateText(){this.quickFilterAggregateText=null}isExpandable(){var e;return((e=this.beans.expansionSvc)==null?void 0:e.isExpandable(this))??!1}isSelected(){return this.footer?this.sibling.isSelected():this.__selected}depthFirstSearch(e){var t;(t=this.childrenAfterGroup)==null||t.forEach(r=>r.depthFirstSearch(e)),e(this)}dispatchRowEvent(e){var t;(t=this.__localEventService)==null||t.dispatchEvent({type:e,node:this})}setSelected(e,t=!1,r="api"){var n;(n=this.beans.selectionSvc)==null||n.setNodesSelected({nodes:[this],newValue:e,clearSelection:t,source:r})}isRowPinned(){return!!this.rowPinned}addEventListener(e,t){var n,i,o,s;(n=this.beans.validation)==null||n.checkRowEvents(e),this.__localEventService||(this.__localEventService=new Kp),this.frameworkEventListenerService=(o=(i=this.beans.frameworkOverrides).createLocalEventListenerWrapper)==null?void 0:o.call(i,this.frameworkEventListenerService,this.__localEventService);const r=((s=this.frameworkEventListenerService)==null?void 0:s.wrap(t))??t;this.__localEventService.addEventListener(e,r)}removeEventListener(e,t){var n;if(!this.__localEventService)return;const r=((n=this.frameworkEventListenerService)==null?void 0:n.unwrap(t))??t;this.__localEventService.removeEventListener(e,r),this.__localEventService.noRegisteredListenersExist()&&(this.__localEventService=null)}isFullWidthCell(){if(we(61),this.detail)return!0;const e=this.beans.gos.getCallback("isFullWidthRow");return e?e({rowNode:this}):!1}getRoute(){if(this.level===-1)return[];if(this.key==null)return;const e=[];let t=this;for(;t&&t.key!=null;)e.push(t.key),t=t.parent;return e.reverse()}setFirstChild(e){this.firstChild!==e&&(this.firstChild=e,this.dispatchRowEvent("firstChildChanged"))}setDisplayed(e){this.displayed!==e&&(this.displayed=e,this.dispatchRowEvent("displayedChanged"))}setRowIndex(e){this.rowIndex!==e&&(this.rowIndex=e,this.dispatchRowEvent("rowIndexChanged"))}setAllChildrenCount(e){this.allChildrenCount!==e&&(this.allChildrenCount=e,this.dispatchRowEvent("allChildrenCountChanged"))}setUiLevel(e){this.uiLevel!==e&&(this.uiLevel=e,this.dispatchRowEvent("uiLevelChanged"))}};function _fe(e,t,r){return t.addGridCommonParams({type:r,node:e,data:e.data,rowIndex:e.rowIndex,rowPinned:e.rowPinned})}var FA=class extends Je{constructor(e,t){super('
'),this.column=e,this.source=t,this.filterWrapper=null}postConstruct(){this.createFilter(!0),this.addManagedEventListeners({filterDestroyed:this.onFilterDestroyed.bind(this)})}hasFilter(){return!!this.filterWrapper}getFilter(){var e;return((e=this.filterWrapper)==null?void 0:e.filterPromise)??null}afterInit(){var e,t;return((t=(e=this.filterWrapper)==null?void 0:e.filterPromise)==null?void 0:t.then(()=>{}))??lr.resolve()}afterGuiAttached(e){var t,r;(r=(t=this.filterWrapper)==null?void 0:t.filterPromise)==null||r.then(n=>{var i;(i=n==null?void 0:n.afterGuiAttached)==null||i.call(n,e)})}afterGuiDetached(){var e,t;(t=(e=this.filterWrapper)==null?void 0:e.filterPromise)==null||t.then(r=>{var n;(n=r==null?void 0:r.afterGuiDetached)==null||n.call(r)})}createFilter(e){var n,i;const{column:t,source:r}=this;this.filterWrapper=((n=this.beans.filterManager)==null?void 0:n.getOrCreateFilterWrapper(t))??null,(i=this.filterWrapper)!=null&&i.filterPromise&&this.filterWrapper.filterPromise.then(o=>{const s=o.getGui();Qe(s)||we(69,{guiFromFilter:s}),this.appendChild(s),e&&this.eventSvc.dispatchEvent({type:"filterOpened",column:t,source:r,eGui:this.getGui()})})}onFilterDestroyed(e){(e.source==="api"||e.source==="paramsUpdated")&&e.column.getId()===this.column.getId()&&this.beans.colModel.getColDefCol(this.column)&&(Jr(this.getGui()),this.createFilter())}destroy(){this.filterWrapper=null,super.destroy()}},kfe="ag-resizer-wrapper",wh=(e,t)=>`
`,fKe=`
${wh("eTopLeft","topLeft")} ${wh("eTop","top")} ${wh("eTopRight","topRight")} ${wh("eRight","right")} ${wh("eBottomRight","bottomRight")} ${wh("eBottom","bottom")} ${wh("eBottomLeft","bottomLeft")} ${wh("eLeft","left")}
`,LA=class extends xe{constructor(e,t){super(),this.element=e,this.dragStartPosition={x:0,y:0},this.position={x:0,y:0},this.lastSize={width:-1,height:-1},this.positioned=!1,this.resizersAdded=!1,this.resizeListeners=[],this.boundaryEl=null,this.isResizing=!1,this.isMoving=!1,this.resizable={},this.movable=!1,this.currentResizer=null,this.config=Object.assign({},{popup:!1},t)}wireBeans(e){this.popupSvc=e.popupSvc,this.dragSvc=e.dragSvc}center(){const{clientHeight:e,clientWidth:t}=this.offsetParent,r=t/2-this.getWidth()/2,n=e/2-this.getHeight()/2;this.offsetElement(r,n)}initialisePosition(){if(this.positioned)return;const{centered:e,forcePopupParentAsOffsetParent:t,minWidth:r,width:n,minHeight:i,height:o,x:s,y:a}=this.config;this.offsetParent||this.setOffsetParent();let l=0,c=0;const u=ps(this.element);if(u){const d=this.findBoundaryElement(),h=window.getComputedStyle(d);if(h.minWidth!=null){const p=d.offsetWidth-this.element.offsetWidth;c=parseInt(h.minWidth,10)-p}if(h.minHeight!=null){const p=d.offsetHeight-this.element.offsetHeight;l=parseInt(h.minHeight,10)-p}}if(this.minHeight=i||l,this.minWidth=r||c,n&&this.setWidth(n),o&&this.setHeight(o),(!n||!o)&&this.refreshSize(),e)this.center();else if(s||a)this.offsetElement(s,a);else if(u&&t){let d=this.boundaryEl,h=!0;if(d||(d=this.findBoundaryElement(),h=!1),d){const p=parseFloat(d.style.top),f=parseFloat(d.style.left);h?this.offsetElement(isNaN(f)?0:f,isNaN(p)?0:p):this.setPosition(f,p)}}this.positioned=!!this.offsetParent}isPositioned(){return this.positioned}getPosition(){return this.position}setMovable(e,t){var n,i;if(!this.config.popup||e===this.movable)return;this.movable=e;const r=this.moveElementDragListener||{eElement:t,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?((n=this.dragSvc)==null||n.addDragSource(r),this.moveElementDragListener=r):((i=this.dragSvc)==null||i.removeDragSource(r),this.moveElementDragListener=void 0)}setResizable(e){if(this.clearResizeListeners(),e?this.addResizers():this.removeResizers(),typeof e=="boolean"){if(e===!1)return;e={topLeft:e,top:e,topRight:e,right:e,bottomRight:e,bottom:e,bottomLeft:e,left:e}}Object.keys(e).forEach(t=>{var s;const n=!!e[t],i=this.getResizerElement(t),o={dragStartPixels:0,eElement:i,onDragStart:a=>this.onResizeStart(a,t),onDragging:this.onResize.bind(this),onDragStop:a=>this.onResizeEnd(a,t)};(n||!this.isAlive()&&!n)&&(n?((s=this.dragSvc)==null||s.addDragSource(o),this.resizeListeners.push(o),i.style.pointerEvents="all"):i.style.pointerEvents="none",this.resizable[t]=n)})}removeSizeFromEl(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")}restoreLastSize(){this.element.style.flex="0 0 auto";const{height:e,width:t}=this.lastSize;t!==-1&&(this.element.style.width=`${t}px`),e!==-1&&(this.element.style.height=`${e}px`)}getHeight(){return this.element.offsetHeight}setHeight(e){const{popup:t}=this.config,r=this.element;let n=!1;if(typeof e=="string"&&e.indexOf("%")!==-1)VS(r,e),e=xA(r),n=!0;else if(e=Math.max(this.minHeight,e),this.positioned){const i=this.getAvailableHeight();i&&e>i&&(e=i)}this.getHeight()!==e&&(n?(r.style.maxHeight="unset",r.style.minHeight="unset"):t?VS(r,e):(r.style.height=`${e}px`,r.style.flex="0 0 auto",this.lastSize.height=typeof e=="number"?e:parseFloat(e)))}getAvailableHeight(){const{popup:e,forcePopupParentAsOffsetParent:t}=this.config;this.positioned||this.initialisePosition();const{clientHeight:r}=this.offsetParent;if(!r)return null;const n=this.element.getBoundingClientRect(),i=this.offsetParent.getBoundingClientRect(),o=e?this.position.y:n.top,s=e?0:i.top;let a=0;if(t){const c=this.element.parentElement;if(c){const{bottom:u}=c.getBoundingClientRect();a=u-n.bottom}}return r+s-o-a}getWidth(){return this.element.offsetWidth}setWidth(e){const t=this.element,{popup:r}=this.config;let n=!1;if(typeof e=="string"&&e.indexOf("%")!==-1)sc(t,e),e=sm(t),n=!0;else if(this.positioned){e=Math.max(this.minWidth,e);const{clientWidth:i}=this.offsetParent,o=r?this.position.x:this.element.getBoundingClientRect().left;i&&e+o>i&&(e=i-o)}this.getWidth()!==e&&(n?(t.style.maxWidth="unset",t.style.minWidth="unset"):this.config.popup?sc(t,e):(t.style.width=`${e}px`,t.style.flex=" unset",this.lastSize.width=typeof e=="number"?e:parseFloat(e)))}offsetElement(e=0,t=0){var i;const{forcePopupParentAsOffsetParent:r}=this.config,n=r?this.boundaryEl:this.element;n&&((i=this.popupSvc)==null||i.positionPopup({ePopup:n,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable(),updatePosition:()=>({x:e,y:t})}),this.setPosition(parseFloat(n.style.left),parseFloat(n.style.top)))}constrainSizeToAvailableHeight(e){var r;if(!this.config.forcePopupParentAsOffsetParent)return;const t=()=>{const n=this.getAvailableHeight();this.element.style.setProperty("max-height",`${n}px`)};e&&this.popupSvc?this.resizeObserverSubscriber=Ga(this.beans,(r=this.popupSvc)==null?void 0:r.getPopupParent(),t):(this.element.style.removeProperty("max-height"),this.resizeObserverSubscriber&&(this.resizeObserverSubscriber(),this.resizeObserverSubscriber=void 0))}setPosition(e,t){this.position.x=e,this.position.y=t}updateDragStartPosition(e,t){this.dragStartPosition={x:e,y:t}}calculateMouseMovement(e){const{e:t,isLeft:r,isTop:n,anywhereWithin:i,topBuffer:o}=e,s=t.clientX-this.dragStartPosition.x,a=t.clientY-this.dragStartPosition.y,l=this.shouldSkipX(t,!!r,!!i,s)?0:s,c=this.shouldSkipY(t,!!n,o,a)?0:a;return{movementX:l,movementY:c}}shouldSkipX(e,t,r,n){const i=this.element.getBoundingClientRect(),o=this.offsetParent.getBoundingClientRect(),s=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.x:i.left;let l=a<=0&&o.left>=e.clientX||o.right<=e.clientX&&o.right<=s.right;return l?!0:(t?l=n<0&&e.clientX>a+o.left||n>0&&e.clientXs.right||n>0&&e.clientXs.right||n>0&&e.clientX=e.clientY||o.bottom<=e.clientY&&o.bottom<=s.bottom;return l?!0:(t?l=n<0&&e.clientY>a+o.top+r||n>0&&e.clientYs.bottom||n>0&&e.clientY!r.classList.contains("ag-hidden")):null}getMinSizeOfSiblings(){const e=this.getSiblings()||[];let t=0,r=0;for(let n=0;ne)}onResize(e){if(!this.isResizing||!this.currentResizer)return;const{popup:t,forcePopupParentAsOffsetParent:r}=this.config,{isTop:n,isRight:i,isBottom:o,isLeft:s}=this.currentResizer,a=i||s,l=o||n,{movementX:c,movementY:u}=this.calculateMouseMovement({e,isLeft:s,isTop:n}),d=this.position.x,h=this.position.y;let p=0,f=0;if(a&&c){const g=s?-1:1,m=this.getWidth(),y=m+c*g;let b=!1;s&&(p=m-y,(d+p<=0||y<=this.minWidth)&&(b=!0,p=0)),b||this.setWidth(y)}if(l&&u){const g=n?-1:1,m=this.getHeight(),y=m+u*g;let b=!1;n?(f=m-y,(h+f<=0||y<=this.minHeight)&&(b=!0,f=0)):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&mthis.element.parentElement.offsetHeight&&(b=!0),b||this.setHeight(y)}this.updateDragStartPosition(e.clientX,e.clientY),((t||r)&&p||f)&&this.offsetElement(d+p,h+f)}onResizeEnd(e,t){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null,this.element.classList.remove("ag-resizing"),this.resizerMap[t].element.classList.remove("ag-active"),this.dispatchLocalEvent({type:"resize"})}refreshSize(){const e=this.element;this.config.popup&&(this.config.width||this.setWidth(e.offsetWidth),this.config.height||this.setHeight(e.offsetHeight))}onMoveStart(e){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,this.element.classList.add("ag-moving"),this.updateDragStartPosition(e.clientX,e.clientY)}onMove(e){if(!this.isMoving)return;const{x:t,y:r}=this.position;let n;this.config.calculateTopBuffer&&(n=this.config.calculateTopBuffer());const{movementX:i,movementY:o}=this.calculateMouseMovement({e,isTop:!0,anywhereWithin:!0,topBuffer:n});this.offsetElement(t+i,r+o),this.updateDragStartPosition(e.clientX,e.clientY)}onMoveEnd(){this.isMoving=!1,this.boundaryEl=null,this.element.classList.remove("ag-moving")}setOffsetParent(){this.config.forcePopupParentAsOffsetParent&&this.popupSvc?this.offsetParent=this.popupSvc.getPopupParent():this.offsetParent=this.element.offsetParent}findBoundaryElement(){let e=this.element;for(;e;){if(window.getComputedStyle(e).position!=="static")return e;e=e.parentElement}return this.element}clearResizeListeners(){var e;for(;this.resizeListeners.length;){const t=this.resizeListeners.pop();(e=this.dragSvc)==null||e.removeDragSource(t)}}destroy(){var e;super.destroy(),this.moveElementDragListener&&((e=this.dragSvc)==null||e.removeDragSource(this.moveElementDragListener)),this.constrainSizeToAvailableHeight(!1),this.clearResizeListeners(),this.removeResizers()}},Ofe="ag-focus-managed",qp=class extends xe{constructor(e,t={}){super(),this.eFocusable=e,this.callbacks=t,this.callbacks={shouldStopEventPropagation:()=>!1,onTabKeyDown:r=>{if(r.defaultPrevented)return;const n=No(this.beans,this.eFocusable,!1,r.shiftKey);n&&(n.focus(),r.preventDefault())},...t}}postConstruct(){const{eFocusable:e,callbacks:{onFocusIn:t,onFocusOut:r}}=this;e.classList.add(Ofe),this.addKeyDownListeners(e),t&&this.addManagedElementListeners(e,{focusin:t}),r&&this.addManagedElementListeners(e,{focusout:r})}addKeyDownListeners(e){this.addManagedElementListeners(e,{keydown:t=>{if(t.defaultPrevented||Na(t))return;const{callbacks:r}=this;if(r.shouldStopEventPropagation(t)){di(t);return}t.key===ge.TAB?r.onTabKeyDown(t):r.handleKeyDown&&r.handleKeyDown(t)}})}},Nfe={applyFilter:"Apply",clearFilter:"Clear",resetFilter:"Reset",cancelFilter:"Cancel",textFilter:"Text Filter",numberFilter:"Number Filter",dateFilter:"Date Filter",setFilter:"Set Filter",filterOoo:"Filter...",empty:"Choose one",equals:"Equals",notEqual:"Does not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"Between",inRangeStart:"From",inRangeEnd:"To",lessThanOrEqual:"Less than or equal to",greaterThanOrEqual:"Greater than or equal to",contains:"Contains",notContains:"Does not contain",startsWith:"Begins with",endsWith:"Ends with",blank:"Blank",notBlank:"Not blank",before:"Before",after:"After",andCondition:"AND",orCondition:"OR",dateFormatOoo:"yyyy-mm-dd"};function x5(e,t){const{debounceMs:r}=e;return aI(e)?(r!=null&&we(71),0):r??t}function aI(e){var t;return(((t=e.buttons)==null?void 0:t.indexOf("apply"))??-1)>=0}var _A=class extends Je{constructor(e){super(),this.filterNameKey=e,this.applyActive=!1,this.hidePopup=null,this.debouncePending=!1,this.appliedModel=null,this.eFilterBody=Ce,this.buttonListeners=[],this.defaultDebounceMs=0}postConstruct(){this.resetTemplate(),this.createManagedBean(new qp(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.positionableFeature=new LA(this.getPositionableElement(),{forcePopupParentAsOffsetParent:!0}),this.createBean(this.positionableFeature)}handleKeyDown(e){}getFilterTitle(){return this.translate(this.filterNameKey)}isFilterActive(){return!!this.appliedModel}resetTemplate(e){let t=this.getGui();t&&t.removeEventListener("submit",this.onFormSubmit);const r=`
${this.createBodyTemplate()}
`;this.setTemplate(r,this.getAgComponents(),e),t=this.getGui(),t==null||t.addEventListener("submit",this.onFormSubmit)}isReadOnly(){return!!this.params.readOnly}init(e){this.setParams(e),this.resetUiToDefaults(!0).then(()=>{this.updateUiVisibility(),this.setupOnBtApplyDebounce()})}setParams(e){this.params=e,this.applyActive=aI(e),this.resetButtonsPanel(e)}updateParams(e){this.params=e,this.applyActive=aI(e),this.resetUiToActiveModel(this.getModel(),()=>{this.updateUiVisibility(),this.setupOnBtApplyDebounce()})}resetButtonsPanel(e,t){const{buttons:r,readOnly:n}=t??{},{buttons:i,readOnly:o}=e;if(n===o&&Yy(r,i))return;const s=i&&i.length>0&&!this.isReadOnly();if(this.eButtonsPanel?(Jr(this.eButtonsPanel),this.buttonListeners.forEach(c=>c()),this.buttonListeners=[]):s&&(this.eButtonsPanel=document.createElement("div"),this.eButtonsPanel.classList.add("ag-filter-apply-panel")),!s){this.eButtonsPanel&&ai(this.eButtonsPanel);return}const a=document.createDocumentFragment(),l=c=>{let u;const d=c?this.translate(`${c}Filter`):void 0;switch(c){case"apply":u=f=>this.onBtApply(!1,!1,f);break;case"clear":u=()=>this.onBtClear();break;case"reset":u=()=>this.onBtReset();break;case"cancel":u=f=>{this.onBtCancel(f)};break;default:we(75);return}const p=Ts(``);this.buttonListeners.push(...this.addManagedElementListeners(p,{click:u})),a.append(p)};i.forEach(c=>l(c)),this.eButtonsPanel.append(a),this.getGui().appendChild(this.eButtonsPanel)}setupOnBtApplyDebounce(){const e=x5(this.params,this.defaultDebounceMs),t=no(this,this.checkApplyDebounce.bind(this),e);this.onBtApplyDebounce=()=>{this.debouncePending=!0,t()}}checkApplyDebounce(){this.debouncePending&&(this.debouncePending=!1,this.onBtApply())}getModel(){return this.appliedModel??null}setModel(e){return(e!=null?this.setModelIntoUi(e):this.resetUiToDefaults()).then(()=>{this.updateUiVisibility(),this.applyModel("api")})}onBtCancel(e){this.resetUiToActiveModel(this.getModel(),()=>{this.handleCancelEnd(e)})}handleCancelEnd(e){this.params.closeOnApply&&this.close(e)}resetUiToActiveModel(e,t){const r=()=>{this.onUiChanged(!1,"prevent"),t==null||t()};e!=null?this.setModelIntoUi(e).then(r):this.resetUiToDefaults().then(r)}onBtClear(){this.resetUiToDefaults().then(()=>this.onUiChanged())}onBtReset(){this.onBtClear(),this.onBtApply()}applyModel(e="api"){const t=this.getModelFromUi();if(!this.isModelValid(t))return!1;const r=this.appliedModel;return this.appliedModel=t,!this.areModelsEqual(r,t)}isModelValid(e){return!0}onFormSubmit(e){e.preventDefault()}onBtApply(e=!1,t=!1,r){r&&r.preventDefault(),this.applyModel(t?"rowDataUpdated":"ui")&&this.params.filterChangedCallback({afterFloatingFilter:e,afterDataChange:t,source:"columnFilter"});const{closeOnApply:n}=this.params;n&&this.applyActive&&!e&&!t&&this.close(r)}onNewRowsLoaded(){}close(e){if(!this.hidePopup)return;const t=e,r=t&&t.key;let n;(r==="Enter"||r==="Space")&&(n={keyboardEvent:t}),this.hidePopup(n),this.hidePopup=null}onUiChanged(e=!1,t){if(this.updateUiVisibility(),this.params.filterModifiedCallback(),this.applyActive&&!this.isReadOnly()){const r=this.isModelValid(this.getModelFromUi()),n=this.queryForHtmlElement('[data-ref="applyFilterButton"]');n&&cl(n,!r)}e&&!t||t==="immediately"?this.onBtApply(e):(!this.applyActive&&!t||t==="debounce")&&this.onBtApplyDebounce()}afterGuiAttached(e){e&&(this.hidePopup=e.hidePopup),this.refreshFilterResizer(e==null?void 0:e.container)}refreshFilterResizer(e){const{positionableFeature:t,gos:r}=this;if(!t||e==="toolPanel")return;e==="floatingFilter"||e==="columnFilter"?(t.restoreLastSize(),t.setResizable(r.get("enableRtl")?{bottom:!0,bottomLeft:!0,left:!0}:{bottom:!0,bottomRight:!0,right:!0})):(t.removeSizeFromEl(),t.setResizable(!1)),t.constrainSizeToAvailableHeight(!0)}afterGuiDetached(){var e;this.checkApplyDebounce(),(e=this.positionableFeature)==null||e.constrainSizeToAvailableHeight(!1)}refresh(e){const t=this.params;return this.params=e,this.resetButtonsPanel(e,t),!0}destroy(){const e=this.getGui();e&&e.removeEventListener("submit",this.onFormSubmit),this.hidePopup=null,this.positionableFeature&&(this.positionableFeature=this.destroyBean(this.positionableFeature)),this.appliedModel=null,super.destroy()}translate(e){return this.getLocaleTextFunc()(e,Nfe[e])}getCellValue(e){return this.params.getValue(e)}getPositionableElement(){return this.eFilterBody}};function Bfe(e,t,r){if(t==null)return null;let n=null;const{compName:i,jsComp:o,fwComp:s}=Aje(e,t);return i?n={agSetColumnFilter:"agSetColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",agGroupColumnFilter:"agGroupColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"}[i]:o==null&&s==null&&t.filter===!0&&(n=r()),n}var tc={AUTO_HEIGHT:"ag-layout-auto-height",NORMAL:"ag-layout-normal",PRINT:"ag-layout-print"},E5=class extends xe{constructor(e){super(),this.view=e}postConstruct(){this.addManagedPropertyListener("domLayout",this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()}updateLayoutClasses(){const e=this.gos.get("domLayout"),t={autoHeight:e==="autoHeight",normal:e==="normal",print:e==="print"},r=t.autoHeight?tc.AUTO_HEIGHT:t.print?tc.PRINT:tc.NORMAL;this.view.updateLayoutClasses(r,t)}},xh="Viewport",$Y="fakeVScrollComp",GY=["fakeHScrollComp","centerHeader","topCenter","bottomCenter","stickyTopCenter","stickyBottomCenter"],gKe=class extends xe{constructor(e){super(),this.lastScrollSource=[null,null],this.scrollLeft=-1,this.nextScrollTop=-1,this.scrollTop=-1,this.lastOffsetHeight=-1,this.lastScrollTop=-1,this.scrollTimer=0,this.needsRefreshedScrollPosition=!0,this.eBodyViewport=e,this.resetLastHScrollDebounced=no(this,()=>this.lastScrollSource[1]=null,500),this.resetLastVScrollDebounced=no(this,()=>this.lastScrollSource[0]=null,500)}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.animationFrameSvc=e.animationFrameSvc,this.visibleCols=e.visibleCols}destroy(){super.destroy(),window.clearTimeout(this.scrollTimer)}postConstruct(){this.enableRtl=this.gos.get("enableRtl");const e=this.requireUpdatedScrollPosition.bind(this);this.addManagedEventListeners({displayedColumnsWidthChanged:this.onDisplayedColumnsWidthChanged.bind(this),gridSizeChanged:e}),this.addManagedElementListeners(this.eBodyViewport,{scroll:e}),this.ctrlsSvc.whenReady(this,t=>{this.centerRowsCtrl=t.center,this.onDisplayedColumnsWidthChanged(),this.addScrollListener()})}requireUpdatedScrollPosition(){this.needsRefreshedScrollPosition=!0}addScrollListener(){this.addHorizontalScrollListeners(),this.addVerticalScrollListeners()}addHorizontalScrollListeners(){this.addManagedElementListeners(this.centerRowsCtrl.eViewport,{scroll:this.onHScroll.bind(this,xh)});for(const e of GY){const t=this.ctrlsSvc.get(e);this.registerScrollPartner(t,this.onHScroll.bind(this,e))}}addVerticalScrollListeners(){const e=this.ctrlsSvc.get("fakeVScrollComp"),t=this.gos.get("debounceVerticalScrollbar"),r=t?no(this,this.onVScroll.bind(this,xh),100):this.onVScroll.bind(this,xh),n=t?no(this,this.onVScroll.bind(this,$Y),100):this.onVScroll.bind(this,$Y);this.addManagedElementListeners(this.eBodyViewport,{scroll:r}),this.registerScrollPartner(e,n)}registerScrollPartner(e,t){e.onScrollCallback(t)}onDisplayedColumnsWidthChanged(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()}horizontallyScrollHeaderCenterAndFloatingCenter(e){this.centerRowsCtrl!=null&&(e===void 0&&(e=this.centerRowsCtrl.getCenterViewportScrollLeft()),this.setScrollLeftForAllContainersExceptCurrent(Math.abs(e)))}setScrollLeftForAllContainersExceptCurrent(e){for(const t of[...GY,xh]){if(this.lastScrollSource[1]===t)continue;const r=this.getViewportForSource(t);KM(r,e,this.enableRtl)}}getViewportForSource(e){return e===xh?this.centerRowsCtrl.eViewport:this.ctrlsSvc.get(e).eViewport}isControllingScroll(e,t){return this.lastScrollSource[t]==null?(t===0?this.lastScrollSource[0]=e:this.lastScrollSource[1]=e,!0):this.lastScrollSource[t]===e}onHScroll(e){if(!this.isControllingScroll(e,1))return;const t=this.centerRowsCtrl.eViewport,{scrollLeft:r}=t;if(this.shouldBlockScrollUpdate(1,r,!0))return;const n=jM(this.getViewportForSource(e),this.enableRtl);this.doHorizontalScroll(n),this.resetLastHScrollDebounced()}onVScroll(e){if(!this.isControllingScroll(e,0))return;let t;if(e===xh?t=this.eBodyViewport.scrollTop:t=this.ctrlsSvc.get("fakeVScrollComp").getScrollPosition(),this.shouldBlockScrollUpdate(0,t,!0))return;const{animationFrameSvc:r}=this;r==null||r.setScrollTop(t),this.nextScrollTop=t,e===xh?this.ctrlsSvc.get("fakeVScrollComp").setScrollPosition(t):this.eBodyViewport.scrollTop=t,!r||this.gos.get("suppressAnimationFrame")?this.scrollGridIfNeeded():r.schedule(),this.resetLastVScrollDebounced()}doHorizontalScroll(e){const t=this.ctrlsSvc.get("fakeHScrollComp").getScrollPosition();this.scrollLeft===e&&e===t||(this.scrollLeft=e,this.fireScrollEvent(1),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.centerRowsCtrl.onHorizontalViewportChanged(!0))}fireScrollEvent(e){const t={type:"bodyScroll",direction:e===1?"horizontal":"vertical",left:this.scrollLeft,top:this.scrollTop};this.eventSvc.dispatchEvent(t),window.clearTimeout(this.scrollTimer),this.scrollTimer=window.setTimeout(()=>{this.scrollTimer=0,this.eventSvc.dispatchEvent({...t,type:"bodyScrollEnd"})},100)}shouldBlockScrollUpdate(e,t,r=!1){return r&&!fp()?!1:e===0?this.shouldBlockVerticalScroll(t):this.shouldBlockHorizontalScroll(t)}shouldBlockVerticalScroll(e){const t=wA(this.eBodyViewport),{scrollHeight:r}=this.eBodyViewport;return e<0||e+t>r}shouldBlockHorizontalScroll(e){const t=this.centerRowsCtrl.getCenterWidth(),{scrollWidth:r}=this.centerRowsCtrl.eViewport;if(this.enableRtl&&UM()){if(e>0)return!0}else if(e<0)return!0;return Math.abs(e)+t>r}redrawRowsAfterScroll(){this.fireScrollEvent(0)}checkScrollLeft(){this.scrollLeft!==this.centerRowsCtrl.getCenterViewportScrollLeft()&&this.onHScroll(xh)}scrollGridIfNeeded(){const e=this.scrollTop!=this.nextScrollTop;return e&&(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()),e}setHorizontalScrollPosition(e,t=!1){const n=this.centerRowsCtrl.eViewport.scrollWidth-this.centerRowsCtrl.getCenterWidth();!t&&this.shouldBlockScrollUpdate(1,e)&&(this.enableRtl&&UM()?e=e>0?0:n:e=Math.min(Math.max(e,0),n)),KM(this.centerRowsCtrl.eViewport,Math.abs(e),this.enableRtl),this.doHorizontalScroll(e)}setVerticalScrollPosition(e){this.eBodyViewport.scrollTop=e}getVScrollPosition(){if(!this.needsRefreshedScrollPosition){const{lastOffsetHeight:r,lastScrollTop:n}=this;return{top:n,bottom:n+r}}this.needsRefreshedScrollPosition=!1;const{scrollTop:e,offsetHeight:t}=this.eBodyViewport;return this.lastScrollTop=e,this.lastOffsetHeight=t,{top:e,bottom:e+t}}getApproximateVScollPosition(){return this.lastScrollTop>=0&&this.lastOffsetHeight>=0?{top:this.scrollTop,bottom:this.scrollTop+this.lastOffsetHeight}:this.getVScrollPosition()}getHScrollPosition(){return this.centerRowsCtrl.getHScrollPosition()}isHorizontalScrollShowing(){return this.centerRowsCtrl.isHorizontalScrollShowing()}scrollHorizontally(e){const t=this.centerRowsCtrl.eViewport.scrollLeft;return this.setHorizontalScrollPosition(t+e),this.centerRowsCtrl.eViewport.scrollLeft-t}scrollToTop(){this.eBodyViewport.scrollTop=0}ensureNodeVisible(e,t=null){const{rowModel:r}=this.beans,n=r.getRowCount();let i=-1;for(let o=0;o=0&&this.ensureIndexVisible(i,t)}ensureIndexVisible(e,t){if(Eo(this.gos,"print"))return;const{rowModel:r}=this.beans,n=r.getRowCount();if(typeof e!="number"||e<0||e>=n){we(88,{index:e});return}const o=this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel"),{frameworkOverrides:s,pagination:a,pageBounds:l,rowContainerHeight:c,rowRenderer:u}=this.beans;s.wrapIncoming(()=>{var m;o||a==null||a.goToPageWithIndex(e);const d=this.ctrlsSvc.getGridBodyCtrl(),h=d.stickyTopHeight,p=d.stickyBottomHeight,f=r.getRow(e);let g;do{const y=f.rowTop,b=f.rowHeight,S=l.getPixelOffset(),x=f.rowTop-S,E=x+f.rowHeight,R=this.getVScrollPosition(),T=c.divStretchOffset,M=R.top+T,D=R.bottom+T,A=D-M,I=c.getScrollPositionForPixel(x),L=c.getScrollPositionForPixel(E-A),F=Math.min((I+L)/2,x),O=M+h>x,k=D-p{var s;o!==null&&this.centerRowsCtrl.setCenterViewportScrollLeft(o),this.centerRowsCtrl.onHorizontalViewportChanged(),(s=this.animationFrameSvc)==null||s.flushAllFrames()})}getPositionedHorizontalScroll(e,t){const{columnBeforeStart:r,columnAfterEnd:n}=this.isColumnOutsideViewport(e),i=this.centerRowsCtrl.getCenterWidth()i:rn;return{columnBeforeStart:s,columnAfterEnd:a}}getColumnBounds(e){const t=this.enableRtl,r=this.visibleCols.bodyWidth,n=e.getActualWidth(),i=e.getLeft(),o=t?-1:1,s=t?r-i:i,a=s+n*o,l=s+n/2*o;return{colLeft:s,colMiddle:l,colRight:a}}getViewportBounds(){const e=this.centerRowsCtrl.getCenterWidth(),t=this.centerRowsCtrl.getCenterViewportScrollLeft(),r=t,n=e+t;return{start:r,end:n,width:e}}},T5=class extends xe{constructor(e,t=!1){super(),this.callback=e,this.addSpacer=t}postConstruct(){const e=this.setWidth.bind(this);this.addManagedPropertyListener("domLayout",e),this.addManagedEventListeners({columnContainerWidthChanged:e,displayedColumnsChanged:e,leftPinnedWidthChanged:e}),this.addSpacer&&this.addManagedEventListeners({rightPinnedWidthChanged:e,scrollVisibilityChanged:e,scrollbarWidthChanged:e}),this.setWidth()}setWidth(){const e=Eo(this.gos,"print"),{visibleCols:t,scrollVisibleSvc:r}=this.beans,n=t.bodyWidth,i=t.getColsLeftWidth(),o=t.getDisplayedColumnsRightWidth();let s;e?s=n+i+o:(s=n,this.addSpacer&&(this.gos.get("enableRtl")?i:o)===0&&r.verticalScrollShowing&&(s+=r.getScrollbarWidth())),this.callback(s)}},mKe=class extends xe{constructor(e){super(),this.centerContainerCtrl=e}wireBeans(e){this.scrollVisibleSvc=e.scrollVisibleSvc}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.gridBodyCtrl=e.gridBodyCtrl,this.listenForResize()}),this.addManagedEventListeners({scrollbarWidthChanged:this.onScrollbarWidthChanged.bind(this)}),this.addManagedPropertyListeners(["alwaysShowHorizontalScroll","alwaysShowVerticalScroll"],()=>{this.checkViewportAndScrolls()})}listenForResize(){const{beans:e,centerContainerCtrl:t,gridBodyCtrl:r}=this,n=()=>{Tl(e,()=>{this.onCenterViewportResized()})};t.registerViewportResizeListener(n),r.registerBodyViewportResizeListener(n)}onScrollbarWidthChanged(){this.checkViewportAndScrolls()}onCenterViewportResized(){if(this.scrollVisibleSvc.updateScrollGap(),this.centerContainerCtrl.isViewportInTheDOMTree()){const{pinnedCols:e,colFlex:t}=this.beans;e==null||e.keepPinnedColumnsNarrowerThanViewport(),this.checkViewportAndScrolls();const r=this.centerContainerCtrl.getCenterWidth();r!==this.centerWidth&&(this.centerWidth=r,t==null||t.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0}checkViewportAndScrolls(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.gridBodyCtrl.scrollFeature.checkScrollLeft()}getBodyHeight(){return this.bodyHeight}checkBodyHeight(){const e=this.gridBodyCtrl.eBodyViewport,t=wA(e);this.bodyHeight!==t&&(this.bodyHeight=t,this.eventSvc.dispatchEvent({type:"bodyHeightChanged"}))}updateScrollVisibleService(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)}updateScrollVisibleServiceImpl(){const e={horizontalScrollShowing:this.centerContainerCtrl.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleSvc.setScrollsVisible(e)}onHorizontalViewportChanged(){const e=this.centerContainerCtrl.getCenterWidth(),t=this.centerContainerCtrl.getViewportScrollLeft();this.beans.colViewport.setScrollPosition(e,t)}};function R5(e,t,r,n,i,o){if(r==null&&t==null)return;const s={},a={},l=(c,u)=>{c.split(" ").forEach(d=>{d.trim()!=""&&u(d)})};if(r){const c=Object.keys(r);for(let u=0;u{p?s[f]=!0:a[f]=!0})}}t&&o&&Object.keys(t).forEach(c=>l(c,u=>{s[u]||(a[u]=!0)})),o&&Object.keys(a).forEach(o),Object.keys(s).forEach(i)}function VY(e){if(e.group)return e.level;const t=e.parent;return t?t.level+1:0}var vKe=class extends xe{constructor(){super(...arguments),this.beanName="rowStyleSvc"}processClassesFromGridOptions(e,t){const r=this.gos,n=s=>{typeof s=="string"?e.push(s):Array.isArray(s)&&s.forEach(a=>e.push(a))},i=r.get("rowClass");i&&n(i);const o=r.getCallback("getRowClass");if(o){const s={data:t.data,node:t,rowIndex:t.rowIndex},a=o(s);n(a)}}preProcessRowClassRules(e,t){this.processRowClassRules(t,r=>{e.push(r)},()=>{})}processRowClassRules(e,t,r){const{gos:n,expressionSvc:i}=this.beans,o=n.addGridCommonParams({data:e.data,node:e,rowIndex:e.rowIndex});R5(i,void 0,n.get("rowClassRules"),o,t,r)}processStylesFromGridOptions(e){const t=this.gos,r=t.get("rowStyle"),n=t.getCallback("getRowStyle");let i;if(n){const o={data:e.data,node:e,rowIndex:e.rowIndex};i=n(o)}if(i||r)return Object.assign({},r,i)}},yKe=0,$w="renderedRow",RV=class extends xe{constructor(e,t,r,n,i){var o;super(),this.rowNode=e,this.useAnimationFrameForCreate=n,this.printLayout=i,this.allRowGuis=[],this.active=!0,this.centerCellCtrls={list:[],map:{}},this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}},this.slideInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},this.fadeInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},this.rowDragComps=[],this.lastMouseDownOnDragger=!1,this.emptyStyle={},this.updateColumnListsPending=!1,this.rowId=null,this.businessKey=null,this.beans=t,this.gos=t.gos,this.paginationPage=((o=t.pagination)==null?void 0:o.getCurrentPage())??0,this.suppressRowTransform=this.gos.get("suppressRowTransform"),this.instanceId=e.id+"-"+yKe++,this.rowId=Sn(e.id),this.initRowBusinessKey(),this.rowFocused=t.focusSvc.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned),this.rowLevel=VY(this.rowNode),this.setRowType(),this.setAnimateFlags(r),this.rowStyles=this.processStylesFromGridOptions(),this.addListeners()}initRowBusinessKey(){this.businessKeyForNodeFunc=this.gos.get("getBusinessKeyForNode"),this.updateRowBusinessKey()}updateRowBusinessKey(){if(typeof this.businessKeyForNodeFunc!="function")return;const e=this.businessKeyForNodeFunc(this.rowNode);this.businessKey=Sn(e)}updateGui(e,t){e==="left"?this.leftGui=t:e==="right"?this.rightGui=t:e==="fullWidth"?this.fullWidthGui=t:this.centerGui=t}setComp(e,t,r,n){n=c1(this,this.beans.context,n);const i={rowComp:e,element:t,containerType:r,compBean:n};this.allRowGuis.push(i),this.updateGui(r,i),this.initialiseRowComp(i),this.rowType!=="FullWidthLoading"&&!this.rowNode.rowPinned&&this.beans.rowRenderer.dispatchFirstDataRenderedEvent()}unsetComp(e){this.allRowGuis=this.allRowGuis.filter(t=>t.containerType!==e),this.updateGui(e,void 0)}isCacheable(){return this.rowType==="FullWidthDetail"&&this.gos.get("keepDetailRows")}setCached(e){const t=e?"none":"";this.allRowGuis.forEach(r=>r.element.style.display=t)}initialiseRowComp(e){var i;const t=this.gos;this.onSuppressCellFocusChanged(this.beans.gos.get("suppressCellFocus")),this.listenOnDomOrder(e),(i=this.beans.rowAutoHeight)==null||i.checkAutoHeights(this.rowNode),this.onRowHeightChanged(e),this.updateRowIndexes(e),this.setFocusedClasses(e),this.setStylesFromGridOptions(!1,e),Fa(t)&&this.rowNode.selectable&&this.onRowSelected(e),this.updateColumnLists(!this.useAnimationFrameForCreate);const r=e.rowComp;this.getInitialRowClasses(e.containerType).forEach(o=>r.addOrRemoveCssClass(o,!0)),this.executeSlideAndFadeAnimations(e),this.rowNode.group&&Ds(e.element,this.rowNode.expanded==!0),this.setRowCompRowId(r),this.setRowCompRowBusinessKey(r),am(t,e.element,$w,this),e.compBean.addDestroyFunc(()=>am(t,e.element,$w,null)),this.useAnimationFrameForCreate?this.beans.animationFrameSvc.createTask(this.addHoverFunctionality.bind(this,e),this.rowNode.rowIndex,"createTasksP2"):this.addHoverFunctionality(e),this.isFullWidth()&&this.setupFullWidth(e),t.get("rowDragEntireRow")&&this.addRowDraggerToRow(e),this.useAnimationFrameForCreate&&this.beans.animationFrameSvc.addDestroyTask(()=>{this.isAlive()&&e.rowComp.addOrRemoveCssClass("ag-after-created",!0)}),this.executeProcessRowPostCreateFunc()}setRowCompRowBusinessKey(e){this.businessKey!=null&&e.setRowBusinessKey(this.businessKey)}setRowCompRowId(e){const t=Sn(this.rowNode.id);this.rowId=t,t!=null&&e.setRowId(t)}executeSlideAndFadeAnimations(e){const{containerType:t}=e;this.slideInAnimation[t]&&(DY(()=>{this.onTopChanged()}),this.slideInAnimation[t]=!1),this.fadeInAnimation[t]&&(DY(()=>{e.rowComp.addOrRemoveCssClass("ag-opacity-zero",!1)}),this.fadeInAnimation[t]=!1)}addRowDraggerToRow(e){var n;const t=(n=this.beans.rowDragSvc)==null?void 0:n.createRowDragCompForRow(this.rowNode,e.element);if(!t)return;const r=this.createBean(t,this.beans.context);this.rowDragComps.push(r),e.compBean.addDestroyFunc(()=>{this.rowDragComps=this.rowDragComps.filter(i=>i!==r),this.destroyBean(r,this.beans.context)})}setupFullWidth(e){const t=this.getPinnedForContainer(e.containerType),r=this.createFullWidthCompDetails(e.element,t);e.rowComp.showFullWidth(r)}getFullWidthCellRenderers(){var e,t;return this.gos.get("embedFullWidthRows")?this.allRowGuis.map(r=>{var n;return(n=r==null?void 0:r.rowComp)==null?void 0:n.getFullWidthCellRenderer()}):[(t=(e=this.fullWidthGui)==null?void 0:e.rowComp)==null?void 0:t.getFullWidthCellRenderer()]}executeProcessRowPostCreateFunc(){const e=this.gos.getCallback("processRowPostCreate");if(!e||!this.areAllContainersReady())return;const t={eRow:this.centerGui.element,ePinnedLeftRow:this.leftGui?this.leftGui.element:void 0,ePinnedRightRow:this.rightGui?this.rightGui.element:void 0,node:this.rowNode,rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this)};e(t)}areAllContainersReady(){const{leftGui:e,centerGui:t,rightGui:r,beans:{visibleCols:n}}=this,i=!!e||!n.isPinningLeft(),o=!!t,s=!!r||!n.isPinningRight();return i&&o&&s}isNodeFullWidthCell(){if(this.rowNode.detail)return!0;const e=this.beans.gos.getCallback("isFullWidthRow");return e?e({rowNode:this.rowNode}):!1}setRowType(){const e=this.rowNode.stub&&!this.gos.get("suppressServerSideFullWidthLoadingRow")&&!this.gos.get("groupHideOpenParents"),t=this.isNodeFullWidthCell(),r=this.gos.get("masterDetail")&&this.rowNode.detail,n=this.beans.colModel.isPivotMode(),o=!!this.rowNode.group&&!this.rowNode.footer&&MA(this.gos,n);e?this.rowType="FullWidthLoading":r?this.rowType="FullWidthDetail":t?this.rowType="FullWidth":o?this.rowType="FullWidthGroup":this.rowType="Normal"}updateColumnLists(e=!1,t=!1){if(this.isFullWidth())return;const{animationFrameSvc:r}=this.beans;if(!r||e||this.gos.get("suppressAnimationFrame")||this.printLayout){this.updateColumnListsImpl(t);return}this.updateColumnListsPending||(r.createTask(()=>{this.active&&this.updateColumnListsImpl(!0)},this.rowNode.rowIndex,"createTasksP1"),this.updateColumnListsPending=!0)}createCellCtrls(e,t,r=null){const n={list:[],map:{}},i=(o,s)=>{n.list.push(s),n.map[o]=s};return t.forEach(o=>{const s=o.getInstanceId();let a=e.map[s];a||(a=new PP(o,this.rowNode,this.beans,this)),i(s,a)}),e.list.forEach(o=>{const s=o.column.getInstanceId();if(n.map[s]!=null)return;if(!this.isCellEligibleToBeRemoved(o,r)){i(s,o);return}o.destroy()}),n}updateColumnListsImpl(e){this.updateColumnListsPending=!1,this.createAllCellCtrls(),this.setCellCtrls(e)}setCellCtrls(e){this.allRowGuis.forEach(t=>{const r=this.getCellCtrlsForContainer(t.containerType);t.rowComp.setCellCtrls(r,e)})}getCellCtrlsForContainer(e){switch(e){case"left":return this.leftCellCtrls.list;case"right":return this.rightCellCtrls.list;case"fullWidth":return[];case"center":return this.centerCellCtrls.list}}createAllCellCtrls(){const e=this.beans.colViewport,t=this.beans.visibleCols;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,t.allCols),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{const r=e.getColsWithinViewport(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,r);const n=t.getLeftColsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,n,"left");const i=t.getRightColsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,i,"right")}}isCellEligibleToBeRemoved(e,t){const{column:i}=e;if(i.getPinned()!=t)return!0;const{editing:o,cellPosition:s}=e,{focusSvc:a,visibleCols:l}=this.beans,c=a.isCellFocused(s);return o||c?!(l.allCols.indexOf(i)>=0):!0}getDomOrder(){return this.gos.get("ensureDomOrder")||Eo(this.gos,"print")}listenOnDomOrder(e){const t=()=>{e.rowComp.setDomOrder(this.getDomOrder())};e.compBean.addManagedPropertyListeners(["domLayout","ensureDomOrder"],t)}setAnimateFlags(e){if(this.rowNode.sticky||!e)return;const t=Qe(this.rowNode.oldRowTop),{visibleCols:r}=this.beans,n=r.isPinningLeft(),i=r.isPinningRight();if(t){const{slideInAnimation:o}=this;if(this.isFullWidth()&&!this.gos.get("embedFullWidthRows")){o.fullWidth=!0;return}o.center=!0,o.left=n,o.right=i}else{const{fadeInAnimation:o}=this;if(this.isFullWidth()&&!this.gos.get("embedFullWidthRows")){o.fullWidth=!0;return}o.center=!0,o.left=n,o.right=i}}isFullWidth(){return this.rowType!=="Normal"}refreshFullWidth(){const e=(s,a)=>s?s.rowComp.refreshFullWidth(()=>this.createFullWidthCompDetails(s.element,a).params):!0,t=e(this.fullWidthGui,null),r=e(this.centerGui,null),n=e(this.leftGui,"left"),i=e(this.rightGui,"right");return t&&r&&n&&i}addListeners(){var e;this.addManagedListeners(this.rowNode,{heightChanged:()=>this.onRowHeightChanged(),rowSelected:()=>this.onRowSelected(),rowIndexChanged:this.onRowIndexChanged.bind(this),topChanged:this.onTopChanged.bind(this),...((e=this.beans.expansionSvc)==null?void 0:e.getRowExpandedListeners(this))??{}}),this.rowNode.detail&&this.addManagedListeners(this.rowNode.parent,{dataChanged:this.onRowNodeDataChanged.bind(this)}),this.addManagedListeners(this.rowNode,{dataChanged:this.onRowNodeDataChanged.bind(this),cellChanged:this.postProcessCss.bind(this),rowHighlightChanged:this.onRowNodeHighlightChanged.bind(this),draggingChanged:this.postProcessRowDragging.bind(this),uiLevelChanged:this.onUiLevelChanged.bind(this)}),this.addManagedListeners(this.beans.eventSvc,{paginationPixelOffsetChanged:this.onPaginationPixelOffsetChanged.bind(this),heightScaleChanged:this.onTopChanged.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),virtualColumnsChanged:this.onVirtualColumnsChanged.bind(this),cellFocused:this.onCellFocusChanged.bind(this),cellFocusCleared:this.onCellFocusChanged.bind(this),paginationChanged:this.onPaginationChanged.bind(this),modelUpdated:this.refreshFirstAndLastRowStyles.bind(this),columnMoved:()=>this.updateColumnLists()}),this.addDestroyFunc(()=>{this.rowDragComps=this.destroyBeans(this.rowDragComps,this.beans.context),this.tooltipFeature=this.destroyBean(this.tooltipFeature,this.beans.context)}),this.addManagedPropertyListeners(["rowStyle","getRowStyle","rowClass","getRowClass","rowClassRules"],this.postProcessCss.bind(this)),this.addManagedPropertyListener("rowDragEntireRow",()=>{if(this.gos.get("rowDragEntireRow")){this.allRowGuis.forEach(r=>{this.addRowDraggerToRow(r)});return}this.rowDragComps=this.destroyBeans(this.rowDragComps,this.beans.context)}),this.addListenersForCellComps()}addListenersForCellComps(){this.addManagedListeners(this.rowNode,{rowIndexChanged:()=>{this.getAllCellCtrls().forEach(e=>e.onRowIndexChanged())},cellChanged:e=>{this.getAllCellCtrls().forEach(t=>t.onCellChanged(e))}})}onRowNodeDataChanged(e){if(this.isFullWidth()!==!!this.isNodeFullWidthCell()){this.beans.rowRenderer.redrawRow(this.rowNode);return}if(this.isFullWidth()){this.refreshFullWidth()||this.beans.rowRenderer.redrawRow(this.rowNode);return}this.getAllCellCtrls().forEach(r=>r.refreshCell({suppressFlash:!e.update,newData:!e.update})),this.allRowGuis.forEach(r=>{this.setRowCompRowId(r.rowComp),this.updateRowBusinessKey(),this.setRowCompRowBusinessKey(r.rowComp)}),this.onRowSelected(),this.postProcessCss()}postProcessCss(){this.setStylesFromGridOptions(!0),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()}onRowNodeHighlightChanged(){const e=this.rowNode.highlighted;this.allRowGuis.forEach(t=>{const r=e==="Above",n=e==="Below";t.rowComp.addOrRemoveCssClass("ag-row-highlight-above",r),t.rowComp.addOrRemoveCssClass("ag-row-highlight-below",n)})}postProcessRowDragging(){const e=this.rowNode.dragging;this.allRowGuis.forEach(t=>t.rowComp.addOrRemoveCssClass("ag-row-dragging",e))}onDisplayedColumnsChanged(){var e;this.updateColumnLists(!0),(e=this.beans.rowAutoHeight)==null||e.checkAutoHeights(this.rowNode)}onVirtualColumnsChanged(){this.updateColumnLists(!1,!0)}getRowPosition(){return{rowPinned:Ai(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}}findFullWidthRowGui(e){return this.allRowGuis.find(t=>t.element.contains(e))}onKeyboardNavigate(e){const t=this.findFullWidthRowGui(e.target);if(!((t?t.element:null)===e.target))return;const i=this.rowNode,{focusSvc:o,navigation:s}=this.beans,a=o.getFocusedCell(),l={rowIndex:i.rowIndex,rowPinned:i.rowPinned,column:(a==null?void 0:a.column)??this.getColumnForFullWidth(t)};s==null||s.navigateToNextCell(e,e.key,l,!0),e.preventDefault()}onTabKeyDown(e){var a;if(e.defaultPrevented||Na(e))return;const t=this.allRowGuis.find(l=>l.element.contains(e.target)),r=t?t.element:null,n=r===e.target,i=Vr(this.beans);let o=!1;r&&i&&(o=r.contains(i)&&i.classList.contains("ag-cell"));let s=null;!n&&!o&&(s=No(this.beans,r,!1,e.shiftKey)),(this.isFullWidth()&&n||!s)&&((a=this.beans.navigation)==null||a.onTabKeyDown(this,e))}getFullWidthElement(){return this.fullWidthGui?this.fullWidthGui.element:null}getRowYPosition(){var t;const e=(t=this.allRowGuis.find(r=>ps(r.element)))==null?void 0:t.element;return e?e.getBoundingClientRect().top:0}onSuppressCellFocusChanged(e){const t=this.isFullWidth()&&e?void 0:-1;this.allRowGuis.forEach(r=>{vl(r.element,"tabindex",t)})}onFullWidthRowFocused(e){var i;const t=this.rowNode,r=e?this.isFullWidth()&&e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned:!1,n=this.fullWidthGui?this.fullWidthGui.element:(i=this.centerGui)==null?void 0:i.element;n&&(n.classList.toggle("ag-full-width-focus",r),r&&(e!=null&&e.forceBrowserFocus)&&n.focus({preventScroll:!0}))}recreateCell(e){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,e),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,e),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,e),e.destroy(),this.updateColumnLists()}removeCellCtrl(e,t){const r={list:[],map:{}};return e.list.forEach(n=>{n!==t&&(r.list.push(n),r.map[n.column.getInstanceId()]=n)}),r}onMouseEvent(e,t){switch(e){case"dblclick":this.onRowDblClick(t);break;case"click":this.onRowClick(t);break;case"touchstart":case"mousedown":this.onRowMouseDown(t);break}}createRowEvent(e,t){const{rowNode:r}=this;return this.gos.addGridCommonParams({type:e,node:r,data:r.data,rowIndex:r.rowIndex,rowPinned:r.rowPinned,event:t})}createRowEventWithSource(e,t){const r=this.createRowEvent(e,t);return r.source=this,r}onRowDblClick(e){Na(e)||this.beans.eventSvc.dispatchEvent(this.createRowEventWithSource("rowDoubleClicked",e))}getColumnForFullWidth(e){const{visibleCols:t}=this.beans;switch(e==null?void 0:e.containerType){case"center":return t.centerCols[0];case"left":return t.leftCols[0];case"right":return t.rightCols[0];default:return t.allCols[0]}}onRowMouseDown(e){if(this.lastMouseDownOnDragger=Bg(e.target,"ag-row-drag",3),!this.isFullWidth())return;const t=this.rowNode,{rangeSvc:r,focusSvc:n}=this.beans;r==null||r.removeAllCellRanges();const i=this.findFullWidthRowGui(e.target),o=i==null?void 0:i.element,s=e.target;let a=!0;o&&o.contains(s)&&a5(s)&&(a=!1),n.setFocusedCell({rowIndex:t.rowIndex,column:this.getColumnForFullWidth(i),rowPinned:t.rowPinned,forceBrowserFocus:a})}onRowClick(e){if(Na(e)||this.lastMouseDownOnDragger)return;const{eventSvc:r,selectionSvc:n}=this.beans;r.dispatchEvent(this.createRowEventWithSource("rowClicked",e)),n==null||n.handleSelectionEvent(e,this.rowNode,"rowClicked")}setupDetailRowAutoHeight(e){var t;this.rowType==="FullWidthDetail"&&((t=this.beans.masterDetailSvc)==null||t.setupDetailRowAutoHeight(this,e))}createFullWidthCompDetails(e,t){const{gos:r,rowNode:n}=this,i=r.addGridCommonParams({fullWidth:!0,data:n.data,node:n,value:n.key,valueFormatted:n.key,eGridCell:e,eParentOfValue:e,pinned:t,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:(s,a,l,c)=>this.addFullWidthRowDragging(s,a,l,c),setTooltip:(s,a)=>{r.assertModuleRegistered("Tooltip",3),this.refreshRowTooltip(s,a)}}),o=this.beans.userCompFactory;switch(this.rowType){case"FullWidthDetail":return Tje(o,i);case"FullWidthGroup":return Eje(o,i);case"FullWidthLoading":return xje(o,i);default:return wje(o,i)}}refreshRowTooltip(e,t){var r;this.fullWidthGui&&(this.tooltipFeature=(r=this.beans.tooltipSvc)==null?void 0:r.refreshRowTooltip(this.tooltipFeature,this,e,t))}addFullWidthRowDragging(e,t,r="",n){const{rowDragSvc:i,context:o}=this.beans;if(!i||!this.isFullWidth())return;const s=i.createRowDragComp(()=>r,this.rowNode,void 0,e,t,n);this.createBean(s,o),this.addDestroyFunc(()=>{this.destroyBean(s,o)})}onUiLevelChanged(){const e=VY(this.rowNode);if(this.rowLevel!=e){const t="ag-row-level-"+e,r="ag-row-level-"+this.rowLevel;this.allRowGuis.forEach(n=>{n.rowComp.addOrRemoveCssClass(t,!0),n.rowComp.addOrRemoveCssClass(r,!1)})}this.rowLevel=e}isFirstRowOnPage(){return this.rowNode.rowIndex===this.beans.pageBounds.getFirstRow()}isLastRowOnPage(){return this.rowNode.rowIndex===this.beans.pageBounds.getLastRow()}refreshFirstAndLastRowStyles(){const e=this.isFirstRowOnPage(),t=this.isLastRowOnPage();this.firstRowOnPage!==e&&(this.firstRowOnPage=e,this.allRowGuis.forEach(r=>r.rowComp.addOrRemoveCssClass("ag-row-first",e))),this.lastRowOnPage!==t&&(this.lastRowOnPage=t,this.allRowGuis.forEach(r=>r.rowComp.addOrRemoveCssClass("ag-row-last",t)))}getAllCellCtrls(){return this.leftCellCtrls.list.length===0&&this.rightCellCtrls.list.length===0?this.centerCellCtrls.list:[...this.centerCellCtrls.list,...this.leftCellCtrls.list,...this.rightCellCtrls.list]}postProcessClassesFromGridOptions(){var t;const e=[];(t=this.beans.rowStyleSvc)==null||t.processClassesFromGridOptions(e,this.rowNode),e.length&&e.forEach(r=>{this.allRowGuis.forEach(n=>n.rowComp.addOrRemoveCssClass(r,!0))})}postProcessRowClassRules(){var e;(e=this.beans.rowStyleSvc)==null||e.processRowClassRules(this.rowNode,t=>{this.allRowGuis.forEach(r=>r.rowComp.addOrRemoveCssClass(t,!0))},t=>{this.allRowGuis.forEach(r=>r.rowComp.addOrRemoveCssClass(t,!1))})}setStylesFromGridOptions(e,t){e&&(this.rowStyles=this.processStylesFromGridOptions()),this.forEachGui(t,r=>r.rowComp.setUserStyles(this.rowStyles))}getPinnedForContainer(e){return e==="left"||e==="right"?e:null}getInitialRowClasses(e){var a;const t=this.getPinnedForContainer(e),r=this.isFullWidth(),{rowNode:n,beans:i}=this,o=[];o.push("ag-row"),o.push(this.rowFocused?"ag-row-focus":"ag-row-no-focus"),this.fadeInAnimation[e]&&o.push("ag-opacity-zero"),o.push(n.rowIndex%2===0?"ag-row-even":"ag-row-odd"),n.isRowPinned()&&o.push("ag-row-pinned"),n.isSelected()&&o.push("ag-row-selected"),n.footer&&o.push("ag-row-footer"),o.push("ag-row-level-"+this.rowLevel),n.stub&&o.push("ag-row-loading"),r&&o.push("ag-full-width-row"),(a=i.expansionSvc)==null||a.addExpandedCss(o,n),n.dragging&&o.push("ag-row-dragging");const{rowStyleSvc:s}=i;return s&&(s.processClassesFromGridOptions(o,n),s.preProcessRowClassRules(o,n)),o.push(this.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),this.isFirstRowOnPage()&&o.push("ag-row-first"),this.isLastRowOnPage()&&o.push("ag-row-last"),r&&(t==="left"&&o.push("ag-cell-last-left-pinned"),t==="right"&&o.push("ag-cell-first-right-pinned")),o}processStylesFromGridOptions(){var e;return((e=this.beans.rowStyleSvc)==null?void 0:e.processStylesFromGridOptions(this.rowNode))??this.emptyStyle}onRowSelected(e){var t;(t=this.beans.selectionSvc)==null||t.onRowCtrlSelected(this,r=>{(r===this.centerGui||r===this.fullWidthGui)&&this.announceDescription()},e)}announceDescription(){var e;(e=this.beans.selectionSvc)==null||e.announceAriaRowSelection(this.rowNode)}addHoverFunctionality(e){if(!this.active)return;const{element:t,compBean:r}=e,{rowNode:n,beans:i,gos:o}=this;r.addManagedListeners(t,{mouseenter:()=>n.dispatchRowEvent("mouseEnter"),mouseleave:()=>n.dispatchRowEvent("mouseLeave")}),r.addManagedListeners(n,{mouseEnter:()=>{var s;!((s=i.dragSvc)!=null&&s.dragging)&&!o.get("suppressRowHoverHighlight")&&(t.classList.add("ag-row-hover"),n.setHovered(!0))},mouseLeave:()=>{t.classList.remove("ag-row-hover"),n.setHovered(!1)}})}roundRowTopToBounds(e){const t=this.beans.ctrlsSvc.getScrollFeature().getApproximateVScollPosition(),r=this.applyPaginationOffset(t.top,!0)-100,n=this.applyPaginationOffset(t.bottom,!0)+100;return Math.min(Math.max(r,e),n)}forEachGui(e,t){e?t(e):this.allRowGuis.forEach(t)}onRowHeightChanged(e){if(this.rowNode.rowHeight==null)return;const t=this.rowNode.rowHeight,r=this.beans.environment.getDefaultRowHeight(),i=d5(this.gos)?ls(this.beans,this.rowNode).height:void 0,o=i?`${Math.min(r,i)-2}px`:void 0;this.forEachGui(e,s=>{s.element.style.height=`${t}px`,o&&s.element.style.setProperty("--ag-line-height",o)})}destroyFirstPass(e=!1){this.active=!1;const{rowNode:t}=this;if(!e&&Ry(this.gos)&&!t.sticky)if(t.rowTop!=null){const i=this.roundRowTopToBounds(t.rowTop);this.setRowTop(i)}else this.allRowGuis.forEach(i=>i.rowComp.addOrRemoveCssClass("ag-opacity-zero",!0));t.setHovered(!1);const r=this.createRowEvent("virtualRowRemoved");this.dispatchLocalEvent(r),this.beans.eventSvc.dispatchEvent(r),super.destroy()}destroySecondPass(){var t;this.allRowGuis.length=0,(t=this.beans.editSvc)==null||t.stopRowEditing(this);const e=r=>(r.list.forEach(n=>n.destroy()),{list:[],map:{}});this.centerCellCtrls=e(this.centerCellCtrls),this.leftCellCtrls=e(this.leftCellCtrls),this.rightCellCtrls=e(this.rightCellCtrls)}setFocusedClasses(e){this.forEachGui(e,t=>{t.rowComp.addOrRemoveCssClass("ag-row-focus",this.rowFocused),t.rowComp.addOrRemoveCssClass("ag-row-no-focus",!this.rowFocused)})}onCellFocusChanged(){const{focusSvc:e,editSvc:t}=this.beans,r=e.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);r!==this.rowFocused&&(this.rowFocused=r,this.setFocusedClasses()),!r&&this.editing&&(t==null||t.stopRowEditing(this,!1))}onPaginationChanged(){var t;const e=((t=this.beans.pagination)==null?void 0:t.getCurrentPage())??0;this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged()),this.refreshFirstAndLastRowStyles()}onTopChanged(){this.setRowTop(this.rowNode.rowTop)}onPaginationPixelOffsetChanged(){this.onTopChanged()}applyPaginationOffset(e,t=!1){if(this.rowNode.isRowPinned()||this.rowNode.sticky)return e;const r=this.beans.pageBounds.getPixelOffset();return e+r*(t?1:-1)}setRowTop(e){if(!this.printLayout&&Qe(e)){const t=this.applyPaginationOffset(e),i=`${this.rowNode.isRowPinned()||this.rowNode.sticky?t:this.beans.rowContainerHeight.getRealPixelPosition(t)}px`;this.setRowTopStyle(i)}}getInitialRowTop(e){return this.suppressRowTransform?this.getInitialRowTopShared(e):void 0}getInitialTransform(e){return this.suppressRowTransform?void 0:`translateY(${this.getInitialRowTopShared(e)})`}getInitialRowTopShared(e){if(this.printLayout)return"";const t=this.rowNode;let r;if(t.sticky)r=t.stickyRowTop;else{const n=this.slideInAnimation[e]?this.roundRowTopToBounds(t.oldRowTop):t.rowTop,i=this.applyPaginationOffset(n);r=t.isRowPinned()?i:this.beans.rowContainerHeight.getRealPixelPosition(i)}return r+"px"}setRowTopStyle(e){this.allRowGuis.forEach(t=>this.suppressRowTransform?t.rowComp.setTop(e):t.rowComp.setTransform(`translateY(${e})`))}getCellCtrl(e,t=!1){let r=null;return this.getAllCellCtrls().forEach(n=>{n.column==e&&(r=n)}),r!=null||t||this.getAllCellCtrls().forEach(n=>{n.getColSpanningList().indexOf(e)>=0&&(r=n)}),r}onRowIndexChanged(){this.rowNode.rowIndex!=null&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())}updateRowIndexes(e){var o,s;const t=this.rowNode.getRowIndexString();if(t===null)return;const r=(((o=this.beans.ctrlsSvc.getHeaderRowContainerCtrl())==null?void 0:o.getRowCount())??0)+(((s=this.beans.filterManager)==null?void 0:s.getHeaderRowCount())??0),n=this.rowNode.rowIndex%2===0,i=r+this.rowNode.rowIndex+1;this.forEachGui(e,a=>{a.rowComp.setRowIndex(t),a.rowComp.addOrRemoveCssClass("ag-row-even",n),a.rowComp.addOrRemoveCssClass("ag-row-odd",!n),n5(a.element,i)})}};function P5(e){var r;return e.altKey||e.ctrlKey||e.metaKey?!1:((r=e.key)==null?void 0:r.length)===1}function PV(e,t,r,n,i){const o=n?n.getColDef().suppressKeyboardEvent:void 0;if(!o)return!1;const s=e.addGridCommonParams({event:t,editing:i,column:n,node:r,data:r.data,colDef:n.getColDef()});return!!(o&&o(s))}var CKe=65,bKe=67,SKe=86,wKe=68,xKe=90,EKe=89;function TKe(e){const{keyCode:t}=e;let r;switch(t){case CKe:r=ge.A;break;case bKe:r=ge.C;break;case SKe:r=ge.V;break;case wKe:r=ge.D;break;case xKe:r=ge.Z;break;case EKe:r=ge.Y;break;default:r=e.code}return r}var RKe=class extends xe{constructor(e){super(),this.element=e}postConstruct(){var e;this.addKeyboardListeners(),this.addMouseListeners(),(e=this.beans.touchSvc)==null||e.mockRowContextMenu(this)}addKeyboardListeners(){const e="keydown",t=this.processKeyboardEvent.bind(this,e);this.addManagedElementListeners(this.element,{[e]:t})}addMouseListeners(){["dblclick","contextmenu","mouseover","mouseout","click",zpe("touchstart")?"touchstart":"mousedown"].forEach(r=>{const n=this.processMouseEvent.bind(this,r);this.addManagedElementListeners(this.element,{[r]:n})})}processMouseEvent(e,t){var i;if(!sI(this.gos,t)||Na(t))return;const{cellCtrl:r,rowCtrl:n}=this.getControlsForEventTarget(t.target);e==="contextmenu"?(r!=null&&r.column&&r.dispatchCellContextMenuEvent(t),(i=this.beans.contextMenuSvc)==null||i.handleContextMenuMouseEvent(t,void 0,n,r)):(r&&r.onMouseEvent(e,t),n&&n.onMouseEvent(e,t))}getControlsForEventTarget(e){const{gos:t}=this;return{cellCtrl:S5(t,e),rowCtrl:Hpe(t,e,$w)}}processKeyboardEvent(e,t){const{cellCtrl:r,rowCtrl:n}=this.getControlsForEventTarget(t.target);t.defaultPrevented||(r?this.processCellKeyboardEvent(r,e,t):n&&n.isFullWidth()&&this.processFullWidthRowKeyboardEvent(n,e,t))}processCellKeyboardEvent(e,t,r){var a;const{rowNode:n,column:i,editing:o}=e;!PV(this.gos,r,n,i,o)&&t==="keydown"&&(!o&&((a=this.beans.navigation)!=null&&a.handlePageScrollingKey(r))||e.onKeyDown(r),this.doGridOperations(r,e.editing),P5(r)&&e.processCharacter(r)),t==="keydown"&&this.eventSvc.dispatchEvent(e.createEvent(r,"cellKeyDown"))}processFullWidthRowKeyboardEvent(e,t,r){const{rowNode:n}=e,{focusSvc:i,navigation:o}=this.beans,s=i.getFocusedCell(),a=s&&s.column;if(!PV(this.gos,r,n,a,!1)){const c=r.key;if(t==="keydown")switch(c){case ge.PAGE_HOME:case ge.PAGE_END:case ge.PAGE_UP:case ge.PAGE_DOWN:o==null||o.handlePageScrollingKey(r,!0);break;case ge.UP:case ge.DOWN:e.onKeyboardNavigate(r);break;case ge.TAB:e.onTabKeyDown(r);break}}t==="keydown"&&this.eventSvc.dispatchEvent(e.createRowEvent("cellKeyDown",r))}doGridOperations(e,t){if(!e.ctrlKey&&!e.metaKey||t||!sI(this.gos,e))return;const r=TKe(e),{clipboardSvc:n,undoRedo:i}=this.beans;if(r===ge.A)return this.onCtrlAndA(e);if(r===ge.C)return this.onCtrlAndC(n,e);if(r===ge.D)return this.onCtrlAndD(n,e);if(r===ge.V)return this.onCtrlAndV(n,e);if(r===ge.X)return this.onCtrlAndX(n,e);if(r===ge.Y)return this.onCtrlAndY(i);if(r===ge.Z)return this.onCtrlAndZ(i,e)}onCtrlAndA(e){const{beans:{pinnedRowModel:t,rowModel:r,visibleCols:n,rangeSvc:i,selectionSvc:o},gos:s}=this;if(i&&Rs(s)&&r.isRowsToRender()){const[a,l]=[(t==null?void 0:t.isEmpty("top"))??!0,(t==null?void 0:t.isEmpty("bottom"))??!0],c=a?null:"top";let u,d;l?(u=null,d=r.getRowCount()-1):(u="bottom",d=(t==null?void 0:t.getPinnedBottomRowCount())??-1);const h=n.allCols;if(!(h!=null&&h.length))return;i.setCellRange({rowStartIndex:0,rowStartPinned:c,rowEndIndex:d,rowEndPinned:u,columnStart:h[0],columnEnd:er(h)})}else o&&(o==null||o.selectAllRowNodes({source:"keyboardSelectAll",selectAll:Bpe(s)}));e.preventDefault()}onCtrlAndC(e,t){if(!e||this.gos.get("enableCellTextSelection"))return;const{cellCtrl:r,rowCtrl:n}=this.getControlsForEventTarget(t.target);r!=null&&r.editing||n!=null&&n.editing||(t.preventDefault(),e.copyToClipboard())}onCtrlAndX(e,t){if(!e||this.gos.get("enableCellTextSelection")||this.gos.get("suppressCutToClipboard"))return;const{cellCtrl:r,rowCtrl:n}=this.getControlsForEventTarget(t.target);r!=null&&r.editing||n!=null&&n.editing||(t.preventDefault(),e.cutToClipboard(void 0,"ui"))}onCtrlAndV(e,t){const{cellCtrl:r,rowCtrl:n}=this.getControlsForEventTarget(t.target);r!=null&&r.editing||n!=null&&n.editing||e&&!this.gos.get("suppressClipboardPaste")&&e.pasteFromClipboard()}onCtrlAndD(e,t){e&&!this.gos.get("suppressClipboardPaste")&&e.copyRangeDown(),t.preventDefault()}onCtrlAndZ(e,t){!this.gos.get("undoRedoCellEditing")||!e||(t.preventDefault(),t.shiftKey?e.redo("ui"):e.undo("ui"))}onCtrlAndY(e){e==null||e.redo("ui")}},$fe=class extends xe{constructor(e,t){super(),this.eContainer=e,this.eViewport=t}postConstruct(){this.addManagedEventListeners({rowContainerHeightChanged:this.onHeightChanged.bind(this,this.beans.rowContainerHeight)})}onHeightChanged(e){const t=e.uiContainerHeight,r=t!=null?`${t}px`:"";this.eContainer.style.height=r,this.eViewport&&(this.eViewport.style.height=r)}},RT=e=>e.topRowCtrls,PT=e=>e.getStickyTopRowCtrls(),MT=e=>e.getStickyBottomRowCtrls(),IT=e=>e.bottomRowCtrls,DT=e=>e.allRowCtrls,PKe={center:{type:"center",container:"ag-center-cols-container",viewport:"ag-center-cols-viewport",getRowCtrls:DT},left:{type:"left",container:"ag-pinned-left-cols-container",pinnedType:"left",getRowCtrls:DT},right:{type:"right",container:"ag-pinned-right-cols-container",pinnedType:"right",getRowCtrls:DT},fullWidth:{type:"fullWidth",container:"ag-full-width-container",fullWidth:!0,getRowCtrls:DT},topCenter:{type:"center",container:"ag-floating-top-container",viewport:"ag-floating-top-viewport",getRowCtrls:RT},topLeft:{type:"left",container:"ag-pinned-left-floating-top",pinnedType:"left",getRowCtrls:RT},topRight:{type:"right",container:"ag-pinned-right-floating-top",pinnedType:"right",getRowCtrls:RT},topFullWidth:{type:"fullWidth",container:"ag-floating-top-full-width-container",fullWidth:!0,getRowCtrls:RT},stickyTopCenter:{type:"center",container:"ag-sticky-top-container",viewport:"ag-sticky-top-viewport",getRowCtrls:PT},stickyTopLeft:{type:"left",container:"ag-pinned-left-sticky-top",pinnedType:"left",getRowCtrls:PT},stickyTopRight:{type:"right",container:"ag-pinned-right-sticky-top",pinnedType:"right",getRowCtrls:PT},stickyTopFullWidth:{type:"fullWidth",container:"ag-sticky-top-full-width-container",fullWidth:!0,getRowCtrls:PT},stickyBottomCenter:{type:"center",container:"ag-sticky-bottom-container",viewport:"ag-sticky-bottom-viewport",getRowCtrls:MT},stickyBottomLeft:{type:"left",container:"ag-pinned-left-sticky-bottom",pinnedType:"left",getRowCtrls:MT},stickyBottomRight:{type:"right",container:"ag-pinned-right-sticky-bottom",pinnedType:"right",getRowCtrls:MT},stickyBottomFullWidth:{type:"fullWidth",container:"ag-sticky-bottom-full-width-container",fullWidth:!0,getRowCtrls:MT},bottomCenter:{type:"center",container:"ag-floating-bottom-container",viewport:"ag-floating-bottom-viewport",getRowCtrls:IT},bottomLeft:{type:"left",container:"ag-pinned-left-floating-bottom",pinnedType:"left",getRowCtrls:IT},bottomRight:{type:"right",container:"ag-pinned-right-floating-bottom",pinnedType:"right",getRowCtrls:IT},bottomFullWidth:{type:"fullWidth",container:"ag-floating-bottom-full-width-container",fullWidth:!0,getRowCtrls:IT}};function wg(e){return PKe[e]}var MKe=["topCenter","topLeft","topRight"],IKe=["bottomCenter","bottomLeft","bottomRight"],DKe=["center","left","right"],AKe=["center","left","right","fullWidth"],FKe=["stickyTopCenter","stickyBottomCenter","center","topCenter","bottomCenter"],LKe=["left","bottomLeft","topLeft","stickyTopLeft","stickyBottomLeft"],_Ke=["right","bottomRight","topRight","stickyTopRight","stickyBottomRight"],Gfe=["stickyTopCenter","stickyTopLeft","stickyTopRight"],Vfe=["stickyBottomCenter","stickyBottomLeft","stickyBottomRight"],kKe=[...Gfe,"stickyTopFullWidth",...Vfe,"stickyBottomFullWidth"],OKe=[...MKe,...IKe,...DKe,...Gfe,...Vfe],zfe=class extends xe{constructor(e){super(),this.name=e,this.visible=!0,this.EMPTY_CTRLS=[],this.options=wg(e)}postConstruct(){this.enableRtl=this.gos.get("enableRtl"),this.forContainers(["center"],()=>{this.viewportSizeFeature=this.createManagedBean(new mKe(this)),this.addManagedEventListeners({stickyTopOffsetChanged:this.onStickyTopOffsetChanged.bind(this)})})}onStickyTopOffsetChanged(e){this.comp.setOffsetTop(`${e.offset}px`)}registerWithCtrlsService(){this.options.fullWidth||this.beans.ctrlsSvc.register(this.name,this)}forContainers(e,t){e.indexOf(this.name)>=0&&t()}setComp(e,t,r){this.comp=e,this.eContainer=t,this.eViewport=r,this.createManagedBean(new RKe(this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder();const{pinnedCols:n,rangeSvc:i}=this.beans,o=()=>this.onPinnedWidthChanged();this.forContainers(LKe,()=>{this.pinnedWidthFeature=this.createOptionalManagedBean(n==null?void 0:n.createPinnedWidthFeature(this.eContainer,!0)),this.addManagedEventListeners({leftPinnedWidthChanged:o})}),this.forContainers(_Ke,()=>{this.pinnedWidthFeature=this.createOptionalManagedBean(n==null?void 0:n.createPinnedWidthFeature(this.eContainer,!1)),this.addManagedEventListeners({rightPinnedWidthChanged:o})}),this.forContainers(AKe,()=>this.createManagedBean(new $fe(this.eContainer,this.name==="center"?r:void 0))),i&&this.forContainers(OKe,()=>this.createManagedBean(i.createDragListenerFeature(this.eContainer))),this.forContainers(FKe,()=>this.createManagedBean(new T5(s=>this.comp.setContainerWidth(`${s}px`)))),this.visible=this.isContainerVisible(),this.addListeners(),this.registerWithCtrlsService()}onScrollCallback(e){this.addManagedElementListeners(this.eViewport,{scroll:e})}addListeners(){this.addManagedEventListeners({displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),displayedColumnsWidthChanged:this.onDisplayedColumnsChanged.bind(this),displayedRowsChanged:e=>this.onDisplayedRowsChanged(e.afterScroll)}),this.onDisplayedColumnsChanged(),this.onDisplayedRowsChanged()}listenOnDomOrder(){if(kKe.indexOf(this.name)>=0){this.comp.setDomOrder(!0);return}const t=()=>{const r=this.gos.get("ensureDomOrder"),n=Eo(this.gos,"print");this.comp.setDomOrder(r||n)};this.addManagedPropertyListener("domLayout",t),t()}onDisplayedColumnsChanged(){this.forContainers(["center"],()=>this.onHorizontalViewportChanged())}addPreventScrollWhileDragging(){const{dragSvc:e}=this.beans;if(!e)return;const t=r=>{e.dragging&&r.cancelable&&r.preventDefault()};this.eContainer.addEventListener("touchmove",t,{passive:!1}),this.addDestroyFunc(()=>this.eContainer.removeEventListener("touchmove",t))}onHorizontalViewportChanged(e=!1){const t=this.getCenterWidth(),r=this.getCenterViewportScrollLeft();this.beans.colViewport.setScrollPosition(t,r,e)}hasHorizontalScrollGap(){return this.eContainer.clientWidth-this.eViewport.clientWidth<0}hasVerticalScrollGap(){return this.eContainer.clientHeight-this.eViewport.clientHeight<0}getCenterWidth(){return Xy(this.eViewport)}getCenterViewportScrollLeft(){return jM(this.eViewport,this.enableRtl)}registerViewportResizeListener(e){const t=Ga(this.beans,this.eViewport,e);this.addDestroyFunc(()=>t())}isViewportInTheDOMTree(){return bpe(this.eViewport)}getViewportScrollLeft(){return jM(this.eViewport,this.enableRtl)}isHorizontalScrollShowing(){return this.gos.get("alwaysShowHorizontalScroll")||iUe(this.eViewport)}setHorizontalScroll(e){this.comp.setHorizontalScroll(e)}getHScrollPosition(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}}setCenterViewportScrollLeft(e){KM(this.eViewport,e,this.enableRtl)}isContainerVisible(){return!(this.options.pinnedType!=null)||!!this.pinnedWidthFeature&&this.pinnedWidthFeature.getWidth()>0}onPinnedWidthChanged(){const e=this.isContainerVisible();this.visible!=e&&(this.visible=e,this.onDisplayedRowsChanged())}onDisplayedRowsChanged(e=!1){const t=this.options.getRowCtrls(this.beans.rowRenderer);if(!this.visible||t.length===0){this.comp.setRowCtrls({rowCtrls:this.EMPTY_CTRLS});return}const r=Eo(this.gos,"print"),i=this.gos.get("embedFullWidthRows")||r,o=t.filter(s=>{const a=s.isFullWidth();return this.options.fullWidth?!i&&a:i||!a});this.comp.setRowCtrls({rowCtrls:o,useFlushSync:e})}},Hfe="ag-force-vertical-scroll",NKe="ag-selectable",BKe="ag-column-moving",Wfe=class extends xe{constructor(){super(...arguments),this.stickyTopHeight=0,this.stickyBottomHeight=0}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.colModel=e.colModel,this.scrollVisibleSvc=e.scrollVisibleSvc,this.pinnedRowModel=e.pinnedRowModel,this.filterManager=e.filterManager,this.rowGroupColsSvc=e.rowGroupColsSvc}setComp(e,t,r,n,i,o,s){var a,l;this.comp=e,this.eGridBody=t,this.eBodyViewport=r,this.eTop=n,this.eBottom=i,this.eStickyTop=o,this.eStickyBottom=s,this.eCenterColsViewport=r.querySelector(`.${wg("center").viewport}`),this.eFullWidthContainer=r.querySelector(`.${wg("fullWidth").container}`),this.eStickyTopFullWidthContainer=o.querySelector(`.${wg("stickyTopFullWidth").container}`),this.eStickyBottomFullWidthContainer=s.querySelector(`.${wg("stickyBottomFullWidth").container}`),this.setCellTextSelection(this.gos.get("enableCellTextSelection")),this.addManagedPropertyListener("enableCellTextSelection",c=>this.setCellTextSelection(c.currentValue)),this.createManagedBean(new E5(this.comp)),this.scrollFeature=this.createManagedBean(new gKe(this.eBodyViewport)),(a=this.beans.rowDragSvc)==null||a.setupRowDrag(this.eBodyViewport,this),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([n,r,i,o,s]),this.setGridRootRole(),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.updateScrollingClasses(),(l=this.filterManager)==null||l.setupAdvFilterHeaderComp(n),this.ctrlsSvc.register("gridBodyCtrl",this)}addEventListeners(){const e=this.setFloatingHeights.bind(this),t=this.setGridRootRole.bind(this);this.addManagedEventListeners({gridColumnsChanged:this.onGridColumnsChanged.bind(this),scrollVisibilityChanged:this.onScrollVisibilityChanged.bind(this),scrollGapChanged:this.updateScrollingClasses.bind(this),pinnedRowDataChanged:e,pinnedHeightChanged:e,headerHeightChanged:this.setStickyTopOffsetTop.bind(this),columnRowGroupChanged:t,columnPivotChanged:t}),this.addManagedPropertyListener("treeData",t)}onGridColumnsChanged(){const e=this.beans.colModel.getCols();this.comp.setColumnCount(e.length)}onScrollVisibilityChanged(){const{scrollVisibleSvc:e}=this,t=e.verticalScrollShowing;this.setVerticalScrollPaddingVisible(t),this.setStickyWidth(t),this.setStickyBottomOffsetBottom();const r=t&&e.getScrollbarWidth()||0,n=mpe()?16:0,i=`calc(100% + ${r+n}px)`;Tl(this.beans,()=>this.comp.setBodyViewportWidth(i)),this.updateScrollingClasses()}setGridRootRole(){const{rowGroupColsSvc:e,colModel:t}=this;let r=this.gos.get("treeData");if(!r){const n=t.isPivotMode();r=(e?e.columns.length:0)>=(n?2:1)}this.comp.setGridRootRole(r?"treegrid":"grid")}addFocusListeners(e){e.forEach(t=>{this.addManagedElementListeners(t,{focusin:r=>{const{target:n}=r,i=Bg(n,"ag-root",t);t.classList.toggle("ag-has-focus",!i)},focusout:r=>{const{target:n,relatedTarget:i}=r,o=t.contains(i),s=Bg(i,"ag-root",t);Bg(n,"ag-root",t)||(!o||s)&&t.classList.remove("ag-has-focus")}})})}setColumnMovingCss(e){this.comp.setColumnMovingCss(BKe,e)}setCellTextSelection(e=!1){this.comp.setCellSelectableCss(NKe,e)}updateScrollingClasses(){const{eGridBody:{classList:e},scrollVisibleSvc:t}=this;e.toggle("ag-body-vertical-content-no-gap",!t.verticalScrollGap),e.toggle("ag-body-horizontal-content-no-gap",!t.horizontalScrollGap)}disableBrowserDragging(){this.addManagedElementListeners(this.eGridBody,{dragstart:e=>{if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1}})}addStopEditingWhenGridLosesFocus(){var e;(e=this.beans.editSvc)==null||e.addStopEditingWhenGridLosesFocus([this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop,this.eStickyBottom])}updateRowCount(){var i,o;const e=(((i=this.ctrlsSvc.getHeaderRowContainerCtrl())==null?void 0:i.getRowCount())??0)+(((o=this.filterManager)==null?void 0:o.getHeaderRowCount())??0),{rowModel:t}=this.beans,r=t.isLastRowIndexKnown()?t.getRowCount():-1,n=r===-1?-1:e+r;this.comp.setRowCount(n)}registerBodyViewportResizeListener(e){this.comp.registerBodyViewportResizeListener(e)}setVerticalScrollPaddingVisible(e){const t=e?"scroll":"hidden";this.comp.setPinnedTopBottomOverflowY(t)}isVerticalScrollShowing(){const e=this.gos.get("alwaysShowVerticalScroll"),t=e?Hfe:null,r=Eo(this.gos,"normal");return this.comp.setAlwaysVerticalScrollClass(t,e),e||r&&oUe(this.eBodyViewport)}setupRowAnimationCssClass(){const{rowContainerHeight:e,environment:t}=this.beans;let r=t.sizesMeasured;const n=()=>{const i=r&&Ry(this.gos)&&!e.stretching,o=i?"ag-row-animation":"ag-row-no-animation";this.comp.setRowAnimationCssOnBodyViewport(o,i)};n(),this.addManagedEventListeners({heightScaleChanged:n}),this.addManagedPropertyListener("animateRows",n),this.addManagedEventListeners({gridStylesChanged:()=>{!r&&t.sizesMeasured&&(r=!0,n())}})}addBodyViewportListener(){const{popupSvc:e,touchSvc:t}=this.beans,r=this.onBodyViewportContextMenu.bind(this);this.addManagedElementListeners(this.eBodyViewport,{contextmenu:r}),t==null||t.mockBodyContextMenu(this,r),this.addManagedElementListeners(this.eBodyViewport,{wheel:this.onBodyViewportWheel.bind(this,e)}),this.addManagedElementListeners(this.eStickyTop,{wheel:this.onStickyWheel.bind(this)}),this.addManagedElementListeners(this.eStickyBottom,{wheel:this.onStickyWheel.bind(this)}),this.addFullWidthContainerWheelListener()}addFullWidthContainerWheelListener(){this.addManagedElementListeners(this.eFullWidthContainer,{wheel:e=>this.onFullWidthContainerWheel(e)})}onFullWidthContainerWheel(e){const{deltaX:t,deltaY:r,shiftKey:n}=e;(n||Math.abs(t)>Math.abs(r))&&sI(this.gos,e)&&this.scrollGridBodyToMatchEvent(e)}onStickyWheel(e){const{deltaX:t,deltaY:r,shiftKey:n}=e,i=n||Math.abs(t)>Math.abs(r),o=e.target;i?(this.eStickyTopFullWidthContainer.contains(o)||this.eStickyBottomFullWidthContainer.contains(o))&&this.scrollGridBodyToMatchEvent(e):(e.preventDefault(),this.scrollVertically(r))}scrollGridBodyToMatchEvent(e){const{deltaX:t,deltaY:r}=e;e.preventDefault(),this.eCenterColsViewport.scrollBy({left:t||r})}onBodyViewportContextMenu(e,t,r){var i;if(!e&&!r)return;this.gos.get("preventDefaultOnContextMenu")&&(e||r).preventDefault();const{target:n}=e||t;(n===this.eBodyViewport||n===this.ctrlsSvc.get("center").eViewport)&&((i=this.beans.contextMenuSvc)==null||i.showContextMenu({mouseEvent:e,touchEvent:r,value:null,anchorToElement:this.eGridBody}))}onBodyViewportWheel(e,t){this.gos.get("suppressScrollWhenPopupsAreOpen")&&e!=null&&e.hasAnchoredPopup()&&t.preventDefault()}scrollVertically(e){const t=this.eBodyViewport.scrollTop;return this.scrollFeature.setVerticalScrollPosition(t+e),this.eBodyViewport.scrollTop-t}setFloatingHeights(){const{pinnedRowModel:e}=this,t=(e==null?void 0:e.getPinnedTopTotalHeight())??0,r=(e==null?void 0:e.getPinnedBottomTotalHeight())??0;this.comp.setTopHeight(t),this.comp.setBottomHeight(r),this.comp.setTopDisplay(t?"inherit":"none"),this.comp.setBottomDisplay(r?"inherit":"none"),this.setStickyTopOffsetTop(),this.setStickyBottomOffsetBottom()}setStickyTopHeight(e=0){this.comp.setStickyTopHeight(`${e}px`),this.stickyTopHeight=e}setStickyBottomHeight(e=0){this.comp.setStickyBottomHeight(`${e}px`),this.stickyBottomHeight=e}setStickyWidth(e){if(!e)this.comp.setStickyTopWidth("100%"),this.comp.setStickyBottomWidth("100%");else{const t=this.scrollVisibleSvc.getScrollbarWidth();this.comp.setStickyTopWidth(`calc(100% - ${t}px)`),this.comp.setStickyBottomWidth(`calc(100% - ${t}px)`)}}setStickyTopOffsetTop(){var i,o;const t=this.ctrlsSvc.get("gridHeaderCtrl").headerHeight+(((i=this.filterManager)==null?void 0:i.getHeaderHeight())??0),r=((o=this.pinnedRowModel)==null?void 0:o.getPinnedTopTotalHeight())??0;let n=0;t>0&&(n+=t),r>0&&(n+=r),n>0&&(n+=1),this.comp.setStickyTopTop(`${n}px`)}setStickyBottomOffsetBottom(){const{pinnedRowModel:e,scrollVisibleSvc:t,comp:r}=this,n=(e==null?void 0:e.getPinnedBottomTotalHeight())??0,o=t.horizontalScrollShowing&&t.getScrollbarWidth()||0,s=n+o;r.setStickyBottomBottom(`${s}px`)}},Ufe=class extends Je{constructor(e,t){super(),this.direction=t,this.eViewport=Ce,this.eContainer=Ce,this.hideTimeout=0,this.setTemplate(e)}postConstruct(){this.addManagedEventListeners({scrollVisibilityChanged:this.onScrollVisibilityChanged.bind(this)}),this.onScrollVisibilityChanged(),this.addOrRemoveCssClass("ag-apple-scrollbar",fpe()||fp())}destroy(){super.destroy(),window.clearTimeout(this.hideTimeout)}initialiseInvisibleScrollbar(){this.invisibleScrollbar===void 0&&(this.invisibleScrollbar=mpe(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles()))}addActiveListenerToggles(){const e=this.getGui(),t=()=>this.addOrRemoveCssClass("ag-scrollbar-active",!0),r=()=>this.addOrRemoveCssClass("ag-scrollbar-active",!1);this.addManagedListeners(e,{mouseenter:t,mousedown:t,touchstart:t,mouseleave:r,touchend:r})}onScrollVisibilityChanged(){this.invisibleScrollbar===void 0&&this.initialiseInvisibleScrollbar(),Tl(this.beans,()=>this.setScrollVisible())}hideAndShowInvisibleScrollAsNeeded(){this.addManagedEventListeners({bodyScroll:e=>{e.direction===this.direction&&(this.hideTimeout&&(window.clearTimeout(this.hideTimeout),this.hideTimeout=0),this.addOrRemoveCssClass("ag-scrollbar-scrolling",!0))},bodyScrollEnd:()=>{this.hideTimeout=window.setTimeout(()=>{this.addOrRemoveCssClass("ag-scrollbar-scrolling",!1),this.hideTimeout=0},400)}})}attemptSettingScrollPosition(e){const t=this.eViewport;Ppe(()=>ps(t),()=>this.setScrollPosition(e),100)}onScrollCallback(e){this.addManagedElementListeners(this.eViewport,{scroll:e})}},jfe=class extends Ufe{constructor(){super(``,"horizontal"),this.eLeftSpacer=Ce,this.eRightSpacer=Ce,this.setScrollVisibleDebounce=0}wireBeans(e){this.visibleCols=e.visibleCols,this.scrollVisibleSvc=e.scrollVisibleSvc}postConstruct(){super.postConstruct();const e=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedEventListeners({displayedColumnsChanged:e,displayedColumnsWidthChanged:e,pinnedRowDataChanged:this.refreshCompBottom.bind(this)}),this.addManagedPropertyListener("domLayout",e),this.beans.ctrlsSvc.register("fakeHScrollComp",this),this.createManagedBean(new T5(t=>this.eContainer.style.width=`${t}px`)),this.addManagedPropertyListeners(["suppressHorizontalScroll"],this.onScrollVisibilityChanged.bind(this))}destroy(){window.clearTimeout(this.setScrollVisibleDebounce),super.destroy()}initialiseInvisibleScrollbar(){this.invisibleScrollbar===void 0&&(this.enableRtl=this.gos.get("enableRtl"),super.initialiseInvisibleScrollbar(),this.invisibleScrollbar&&this.refreshCompBottom())}refreshCompBottom(){var t;if(!this.invisibleScrollbar)return;const e=((t=this.beans.pinnedRowModel)==null?void 0:t.getPinnedBottomTotalHeight())??0;this.getGui().style.bottom=`${e}px`}onScrollVisibilityChanged(){super.onScrollVisibilityChanged(),this.setFakeHScrollSpacerWidths()}setFakeHScrollSpacerWidths(){const e=this.scrollVisibleSvc.verticalScrollShowing;let t=this.visibleCols.getDisplayedColumnsRightWidth();const r=!this.enableRtl&&e,n=this.scrollVisibleSvc.getScrollbarWidth();r&&(t+=n),sc(this.eRightSpacer,t),this.eRightSpacer.classList.toggle("ag-scroller-corner",t<=n);let i=this.visibleCols.getColsLeftWidth();this.enableRtl&&e&&(i+=n),sc(this.eLeftSpacer,i),this.eLeftSpacer.classList.toggle("ag-scroller-corner",i<=n)}setScrollVisible(){const e=this.scrollVisibleSvc.horizontalScrollShowing,t=this.invisibleScrollbar,r=this.gos.get("suppressHorizontalScroll"),n=e&&this.scrollVisibleSvc.getScrollbarWidth()||0,o=r?0:n===0&&t?16:n,s=()=>{this.setScrollVisibleDebounce=0,this.addOrRemoveCssClass("ag-scrollbar-invisible",t),VS(this.getGui(),o),VS(this.eViewport,o),VS(this.eContainer,o),this.setDisplayed(e,{skipAriaHidden:!0})};window.clearTimeout(this.setScrollVisibleDebounce),e?this.setScrollVisibleDebounce=window.setTimeout(s,100):s()}getScrollPosition(){return jM(this.eViewport,this.enableRtl)}setScrollPosition(e){ps(this.eViewport)||this.attemptSettingScrollPosition(e),KM(this.eViewport,e,this.enableRtl)}},$Ke={selector:"AG-FAKE-HORIZONTAL-SCROLL",component:jfe},Kfe=class extends Ufe{constructor(){super(``,"vertical")}postConstruct(){super.postConstruct(),this.createManagedBean(new $fe(this.eContainer));const{ctrlsSvc:e}=this.beans;e.register("fakeVScrollComp",this),this.addManagedEventListeners({rowContainerHeightChanged:this.onRowContainerHeightChanged.bind(this,e)})}setScrollVisible(){const{scrollVisibleSvc:e}=this.beans,t=e.verticalScrollShowing,r=this.invisibleScrollbar,n=t&&e.getScrollbarWidth()||0,i=n===0&&r?16:n;this.addOrRemoveCssClass("ag-scrollbar-invisible",r),sc(this.getGui(),i),sc(this.eViewport,i),sc(this.eContainer,i),this.setDisplayed(t,{skipAriaHidden:!0})}onRowContainerHeightChanged(e){const r=e.getGridBodyCtrl().eBodyViewport,n=this.getScrollPosition(),i=r.scrollTop;n!=i&&this.setScrollPosition(i,!0)}getScrollPosition(){return this.eViewport.scrollTop}setScrollPosition(e,t){!t&&!ps(this.eViewport)&&this.attemptSettingScrollPosition(e),this.eViewport.scrollTop=e}},GKe={selector:"AG-FAKE-VERTICAL-SCROLL",component:Kfe};function qfe(e){return e.cols?e.cols.treeDepth+1:-1}function dd(e){var t;return((t=e.ctrlsSvc.getHeaderRowContainerCtrl())==null?void 0:t.getRowCount())??0}function M5(e){const t=[],r=e.ctrlsSvc.getHeaderRowContainerCtrls();for(const n of r){if(!n)continue;const i=n.getGroupRowCount()||0;for(let o=0;oa)&&(t[o]=l)}}}return t}function VKe(e,t){const r=e.colModel.isPivotMode()?HKe(e):Xfe(e);let n=0;const i=t.getHeaderCtrls();for(const o of i){const{column:s}=o;if(s.isAutoHeaderHeight()){const a=s.getAutoHeaderHeight();a!=null&&a>n&&(n=a)}}return Math.max(r,n)}function I5(e){const t=e.colModel.isPivotMode()?zKe(e):d1(e),n=e.visibleCols.allCols.filter(i=>i.isAutoHeaderHeight()).map(i=>i.getAutoHeaderHeight()||0);return Math.max(t,...n)}function d1(e){return e.gos.get("headerHeight")??e.environment.getDefaultHeaderHeight()}function D5(e){return e.gos.get("floatingFiltersHeight")??d1(e)}function Xfe(e){return e.gos.get("groupHeaderHeight")??d1(e)}function zKe(e){return e.gos.get("pivotHeaderHeight")??d1(e)}function HKe(e){return e.gos.get("pivotGroupHeaderHeight")??Xfe(e)}var Yfe=class extends xe{setComp(e,t,r){this.comp=e,this.eGui=t;const{beans:n}=this,{headerNavigation:i,touchSvc:o,ctrlsSvc:s}=n;i&&this.createManagedBean(new qp(r,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedEventListeners({columnPivotModeChanged:this.onPivotModeChanged.bind(this,n),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this,n)}),this.onPivotModeChanged(n),this.setupHeaderHeight();const a=this.onHeaderContextMenu.bind(this);this.addManagedElementListeners(this.eGui,{contextmenu:a}),o==null||o.mockHeaderContextMenu(this,a),s.register("gridHeaderCtrl",this)}setupHeaderHeight(){const e=this.setHeaderHeight.bind(this);e(),this.addManagedPropertyListeners(["headerHeight","pivotHeaderHeight","groupHeaderHeight","pivotGroupHeaderHeight","floatingFiltersHeight"],e),this.addManagedEventListeners({displayedColumnsChanged:e,columnHeaderHeightChanged:e,columnGroupHeaderHeightChanged:()=>Tl(this.beans,()=>e()),gridStylesChanged:e,advancedFilterEnabledChanged:e})}setHeaderHeight(){var o;const{beans:e}=this;let t=0;const r=M5(e).reduce((s,a)=>s+a,0),n=I5(e);if((o=e.filterManager)!=null&&o.hasFloatingFilters()&&(t+=D5(e)),t+=r,t+=n,this.headerHeight===t)return;this.headerHeight=t;const i=`${t+1}px`;this.comp.setHeightAndMinHeight(i),this.eventSvc.dispatchEvent({type:"headerHeightChanged"})}onPivotModeChanged(e){const t=e.colModel.isPivotMode();this.comp.addOrRemoveCssClass("ag-pivot-on",t),this.comp.addOrRemoveCssClass("ag-pivot-off",!t)}onDisplayedColumnsChanged(e){const r=e.visibleCols.allCols.some(n=>n.isSpanHeaderHeight());this.comp.addOrRemoveCssClass("ag-header-allow-overflow",r)}onTabKeyDown(e){const t=this.gos.get("enableRtl"),r=e.shiftKey,n=r!==t?"LEFT":"RIGHT",{beans:i}=this,{headerNavigation:o,focusSvc:s}=i;(o.navigateHorizontally(n,!0,e)||!r&&s.focusOverlay(!1)||Ld(i,r,!0))&&e.preventDefault()}handleKeyDown(e){let t=null;const{headerNavigation:r}=this.beans;switch(e.key){case ge.LEFT:t="LEFT";case ge.RIGHT:{Qe(t)||(t="RIGHT"),r.navigateHorizontally(t,!1,e)&&e.preventDefault();break}case ge.UP:t="UP";case ge.DOWN:{Qe(t)||(t="DOWN"),r.navigateVertically(t,null,e)&&e.preventDefault();break}default:return}}onFocusOut(e){const{relatedTarget:t}=e,{eGui:r,beans:n}=this;!t&&r.contains(Vr(n))||r.contains(t)||(n.focusSvc.focusedHeader=null)}onHeaderContextMenu(e,t,r){var s;const{menuSvc:n,ctrlsSvc:i}=this.beans;if(!e&&!r||!(n!=null&&n.isHeaderContextMenuEnabled()))return;const{target:o}=e??t;(o===this.eGui||o===((s=i.getHeaderRowContainerCtrl())==null?void 0:s.eViewport))&&n.showHeaderContextMenu(void 0,e,r)}},A5=class extends Je{constructor(e,t){super(e),this.ctrl=t}getCtrl(){return this.ctrl}},WKe=class extends A5{constructor(t){super(`
`,t),this.eResize=Ce,this.eHeaderCompWrapper=Ce,this.headerCompVersion=0}postConstruct(){const t=this.getGui();((o,s)=>{s!=null&&s!=""?t.setAttribute(o,s):t.removeAttribute(o)})("col-id",this.ctrl.column.getColId());const n={setWidth:o=>t.style.width=o,addOrRemoveCssClass:(o,s)=>this.addOrRemoveCssClass(o,s),setAriaSort:o=>o?cpe(t,o):upe(t),setUserCompDetails:o=>this.setUserCompDetails(o),getUserCompInstance:()=>this.headerComp};this.ctrl.setComp(n,this.getGui(),this.eResize,this.eHeaderCompWrapper,void 0);const i=this.ctrl.getSelectAllGui();i&&this.eResize.insertAdjacentElement("afterend",i)}destroy(){this.destroyHeaderComp(),super.destroy()}destroyHeaderComp(){this.headerComp&&(this.eHeaderCompWrapper.removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)}setUserCompDetails(t){this.headerCompVersion++;const r=this.headerCompVersion;t.newAgStackInstance().then(n=>this.afterCompCreated(r,n))}afterCompCreated(t,r){if(t!=this.headerCompVersion||!this.isAlive()){this.destroyBean(r);return}this.destroyHeaderComp(),this.headerComp=r,this.headerCompGui=r.getGui(),this.eHeaderCompWrapper.appendChild(this.headerCompGui),this.ctrl.setDragSource(this.getGui())}},UKe=class extends A5{constructor(t){super(`
`,t),this.eResize=Ce,this.eHeaderCompWrapper=Ce}postConstruct(){const t=this.getGui(),r=(i,o)=>o!=null?t.setAttribute(i,o):t.removeAttribute(i);t.setAttribute("col-id",this.ctrl.column.getUniqueId());const n={addOrRemoveCssClass:(i,o)=>this.addOrRemoveCssClass(i,o),setHeaderWrapperHidden:i=>{i?this.eHeaderCompWrapper.style.setProperty("display","none"):this.eHeaderCompWrapper.style.removeProperty("display")},setHeaderWrapperMaxHeight:i=>{i!=null?this.eHeaderCompWrapper.style.setProperty("max-height",`${i}px`):this.eHeaderCompWrapper.style.removeProperty("max-height"),this.eHeaderCompWrapper.classList.toggle("ag-header-cell-comp-wrapper-limited-height",i!=null)},setResizableDisplayed:i=>Pt(this.eResize,i),setWidth:i=>t.style.width=i,setAriaExpanded:i=>r("aria-expanded",i),setUserCompDetails:i=>this.setUserCompDetails(i),getUserCompInstance:()=>this.headerGroupComp};this.ctrl.setComp(n,t,this.eResize,this.eHeaderCompWrapper,void 0)}setUserCompDetails(t){t.newAgStackInstance().then(r=>this.afterHeaderCompCreated(r))}afterHeaderCompCreated(t){const r=()=>this.destroyBean(t);if(!this.isAlive()){r();return}const n=this.getGui(),i=t.getGui();this.eHeaderCompWrapper.appendChild(i),this.addDestroyFunc(r),this.headerGroupComp=t,this.ctrl.setDragSource(n)}addOrRemoveHeaderWrapperStyle(t,r){const{eHeaderCompWrapper:n}=this;r?n.style.setProperty(t,r):n.style.removeProperty(t)}},jKe=class extends A5{constructor(t){super(`
`,t),this.eFloatingFilterBody=Ce,this.eButtonWrapper=Ce,this.eButtonShowMainFilter=Ce}postConstruct(){const t=this.getGui(),r={addOrRemoveCssClass:(n,i)=>this.addOrRemoveCssClass(n,i),addOrRemoveBodyCssClass:(n,i)=>this.eFloatingFilterBody.classList.toggle(n,i),setButtonWrapperDisplayed:n=>Pt(this.eButtonWrapper,n),setCompDetails:n=>this.setCompDetails(n),getFloatingFilterComp:()=>this.compPromise,setWidth:n=>t.style.width=n,setMenuIcon:n=>this.eButtonShowMainFilter.appendChild(n)};this.ctrl.setComp(r,t,this.eButtonShowMainFilter,this.eFloatingFilterBody,void 0)}setCompDetails(t){if(!t){this.destroyFloatingFilterComp(),this.compPromise=null;return}this.compPromise=t.newAgStackInstance(),this.compPromise.then(r=>this.afterCompCreated(r))}destroy(){this.destroyFloatingFilterComp(),super.destroy()}destroyFloatingFilterComp(){this.floatingFilterComp&&(this.eFloatingFilterBody.removeChild(this.floatingFilterComp.getGui()),this.floatingFilterComp=this.destroyBean(this.floatingFilterComp))}afterCompCreated(t){if(t){if(!this.isAlive()){this.destroyBean(t);return}this.destroyFloatingFilterComp(),this.floatingFilterComp=t,this.eFloatingFilterBody.appendChild(t.getGui()),t.afterGuiAttached&&t.afterGuiAttached()}}},KKe=class extends Je{constructor(t){super(),this.headerComps={},this.ctrl=t,this.setTemplate(`
`)}postConstruct(){n5(this.getGui(),this.ctrl.getAriaRowIndex());const t={setHeight:r=>this.getGui().style.height=r,setTop:r=>this.getGui().style.top=r,setHeaderCtrls:(r,n)=>this.setHeaderCtrls(r,n),setWidth:r=>this.getGui().style.width=r};this.ctrl.setComp(t,void 0)}destroy(){this.setHeaderCtrls([],!1),super.destroy()}setHeaderCtrls(t,r){if(!this.isAlive())return;const n=this.headerComps;if(this.headerComps={},t.forEach(i=>{const o=i.instanceId;let s=n[o];delete n[o],s==null&&(s=this.createHeaderComp(i),this.getGui().appendChild(s.getGui())),this.headerComps[o]=s}),Object.values(n).forEach(i=>{this.getGui().removeChild(i.getGui()),this.destroyBean(i)}),r){const i=Object.values(this.headerComps);i.sort((s,a)=>{const l=s.getCtrl().column.getLeft(),c=a.getCtrl().column.getLeft();return l-c});const o=i.map(s=>s.getGui());wpe(this.getGui(),o)}}createHeaderComp(t){let r;switch(this.ctrl.type){case"group":r=new UKe(t);break;case"filter":r=new jKe(t);break;default:r=new WKe(t);break}return this.createBean(r),r.setParentComponent(this),r}},F5=class extends xe{constructor(e,t,r,n){super(),this.columnOrGroup=e,this.eCell=t,this.colsSpanning=n,this.columnOrGroup=e,this.ariaEl=t.querySelector("[role=columnheader]")||t,this.beans=r}setColsSpanning(e){this.colsSpanning=e,this.onLeftChanged()}getColumnOrGroup(){const{beans:e,colsSpanning:t}=this;return e.gos.get("enableRtl")&&t?er(t):this.columnOrGroup}postConstruct(){const e=this.onLeftChanged.bind(this);this.addManagedListeners(this.columnOrGroup,{leftChanged:e}),this.setLeftFirstTime(),this.addManagedEventListeners({displayedColumnsWidthChanged:e}),this.addManagedPropertyListener("domLayout",e)}setLeftFirstTime(){const{gos:e,colAnimation:t}=this.beans,r=e.get("suppressColumnMoveAnimation"),n=Qe(this.columnOrGroup.getOldLeft());(t==null?void 0:t.isActive())&&n&&!r?this.animateInLeft():this.onLeftChanged()}animateInLeft(){const e=this.getColumnOrGroup(),t=this.modifyLeftForPrintLayout(e,e.getOldLeft()),r=this.modifyLeftForPrintLayout(e,e.getLeft());this.setLeft(t),this.actualLeft=r,this.beans.colAnimation.executeNextVMTurn(()=>{this.actualLeft===r&&this.setLeft(r)})}onLeftChanged(){const e=this.getColumnOrGroup(),t=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,t),this.setLeft(this.actualLeft)}modifyLeftForPrintLayout(e,t){const{gos:r,visibleCols:n}=this.beans;if(!Eo(r,"print")||e.getPinned()==="left")return t;const o=n.getColsLeftWidth();if(e.getPinned()==="right"){const s=n.bodyWidth;return o+s+t}return o+t}setLeft(e){if(Qe(e)&&(this.eCell.style.left=`${e}px`),ui(this.columnOrGroup)){const t=this.columnOrGroup.getLeafColumns();if(!t.length)return;t.length>1&&lpe(this.ariaEl,t.length)}}},qKe=0,Zfe="headerCtrl",L5=class extends xe{constructor(e,t){super(),this.column=e,this.rowCtrl=t,this.resizeToggleTimeout=0,this.resizeMultiplier=1,this.resizeFeature=null,this.lastFocusEvent=null,this.dragSource=null,this.instanceId=e.getUniqueId()+"-"+qKe++}postConstruct(){const e=this.refreshTabIndex.bind(this);this.addManagedPropertyListeners(["suppressHeaderFocus"],e),this.addManagedEventListeners({overlayExclusiveChanged:e})}shouldStopEventPropagation(e){const{headerRowIndex:t,column:r}=this.beans.focusSvc.focusedHeader,n=r.getDefinition(),i=n&&n.suppressHeaderKeyboardEvent;if(!Qe(i))return!1;const o=this.gos.addGridCommonParams({colDef:n,column:r,headerRowIndex:t,event:e});return!!i(o)}getWrapperHasFocus(){return Vr(this.beans)===this.eGui}setGui(e,t){this.eGui=e,this.addDomData(t),t.addManagedListeners(this.beans.eventSvc,{displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this)}),t.addManagedElementListeners(this.eGui,{focus:this.onGuiFocus.bind(this)}),this.onDisplayedColumnsChanged(),this.refreshTabIndex()}onGuiFocus(){this.eventSvc.dispatchEvent({type:"headerFocused",column:this.column})}setupAutoHeight(e){const{wrapperElement:t,checkMeasuringCallback:r,compBean:n}=e,{beans:i}=this,o=d=>{if(!this.isAlive()||!n.isAlive())return;const{paddingTop:h,paddingBottom:p,borderBottomWidth:f,borderTopWidth:g}=Dm(this.eGui),m=h+p+f+g,b=t.offsetHeight+m;if(d<5){const S=pn(i),x=!S||!S.contains(t),E=b==0;if(x||E){Tl(i,()=>o(d+1));return}}this.setColHeaderHeight(this.column,b)};let s=!1,a;const l=()=>{const d=this.column.isAutoHeaderHeight();d&&!s&&c(),!d&&s&&u()},c=()=>{s=!0,o(0),this.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!0),a=Ga(this.beans,t,()=>o(0))},u=()=>{s=!1,a&&a(),this.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!1),a=void 0};l(),n.addDestroyFunc(()=>u()),n.addManagedListeners(this.column,{widthChanged:()=>s&&o(0)}),n.addManagedEventListeners({sortChanged:()=>{s&&window.setTimeout(()=>o(0))}}),r&&r(l)}onDisplayedColumnsChanged(){const{comp:e,column:t,beans:r,eGui:n}=this;!e||!t||!n||(bfe(e,t,r.visibleCols),i5(n,r.visibleCols.getAriaColIndex(t)))}addResizeAndMoveKeyboardListeners(e){e.addManagedListeners(this.eGui,{keydown:this.onGuiKeyDown.bind(this),keyup:this.onGuiKeyUp.bind(this)})}refreshTabIndex(){const e=Py(this.beans);this.eGui&&vl(this.eGui,"tabindex",e?null:"-1")}onGuiKeyDown(e){var o;const t=Vr(this.beans),r=e.key===ge.LEFT||e.key===ge.RIGHT;if(this.isResizing&&(e.preventDefault(),e.stopImmediatePropagation()),t!==this.eGui||!e.shiftKey&&!e.altKey||((this.isResizing||r)&&(e.preventDefault(),e.stopImmediatePropagation()),!r))return;const i=e.key===ge.LEFT!==this.gos.get("enableRtl")?"left":"right";if(e.altKey){this.isResizing=!0,this.resizeMultiplier+=1;const s=this.getViewportAdjustedResizeDiff(e);this.resizeHeader(s,e.shiftKey),(o=this.resizeFeature)==null||o.toggleColumnResizing(!0)}else this.moveHeader(i)}moveHeader(e){var t;(t=this.beans.colMoves)==null||t.moveHeader(e,this.eGui,this.column,this.rowCtrl.pinned,this)}getViewportAdjustedResizeDiff(e){const t=this.getResizeDiff(e),{pinnedCols:r}=this.beans;return r?r.getHeaderResizeDiff(t,this.column):t}getResizeDiff(e){const{gos:t,column:r}=this;let n=e.key===ge.LEFT!==t.get("enableRtl");const i=r.getPinned(),o=t.get("enableRtl");return i&&o!==(i==="right")&&(n=!n),(n?-1:1)*this.resizeMultiplier}onGuiKeyUp(){this.isResizing&&(this.resizeToggleTimeout&&(window.clearTimeout(this.resizeToggleTimeout),this.resizeToggleTimeout=0),this.isResizing=!1,this.resizeMultiplier=1,this.resizeToggleTimeout=window.setTimeout(()=>{var e;(e=this.resizeFeature)==null||e.toggleColumnResizing(!1)},150))}handleKeyDown(e){const t=this.getWrapperHasFocus();switch(e.key){case ge.PAGE_DOWN:case ge.PAGE_UP:case ge.PAGE_HOME:case ge.PAGE_END:t&&e.preventDefault()}}addDomData(e){const t=Zfe,{eGui:r,gos:n}=this;am(n,r,t,this),e.addDestroyFunc(()=>am(n,r,t,null))}focus(e){const{eGui:t}=this;return t?(this.lastFocusEvent=e||null,t.focus(),!0):!1}focusThis(){this.beans.focusSvc.focusedHeader={headerRowIndex:this.rowCtrl.rowIndex,column:this.column}}removeDragSource(){var e;this.dragSource&&((e=this.beans.dragAndDrop)==null||e.removeDragSource(this.dragSource),this.dragSource=null)}handleContextMenuMouseEvent(e,t,r){const n=e??t,{menuSvc:i,gos:o}=this.beans;o.get("preventDefaultOnContextMenu")&&n.preventDefault(),i!=null&&i.isHeaderContextMenuEnabled(r)&&i.showHeaderContextMenu(r,e,t),this.dispatchColumnMouseEvent("columnHeaderContextMenu",r)}dispatchColumnMouseEvent(e,t){this.eventSvc.dispatchEvent({type:e,column:t})}setColHeaderHeight(e,t){if(!e.setAutoHeaderHeight(t))return;const{eventSvc:r}=this;e.isColumn?r.dispatchEvent({type:"columnHeaderHeightChanged",column:e,columns:[e],source:"autosizeColumnHeaderHeight"}):r.dispatchEvent({type:"columnGroupHeaderHeightChanged",columnGroup:e,source:"autosizeColumnGroupHeaderHeight"})}clearComponent(){this.removeDragSource(),this.resizeFeature=null,this.comp=null,this.eGui=null}destroy(){super.destroy(),this.column=null,this.lastFocusEvent=null,this.rowCtrl=null}},XKe=class extends L5{constructor(){super(...arguments),this.refreshFunctions={},this.userHeaderClasses=new Set,this.ariaDescriptionProperties=new Map}setComp(e,t,r,n,i){this.comp=e;const{colResize:o,context:s,colHover:a}=this.beans,l=c1(this,s,i);this.setGui(t,l),this.updateState(),this.setupWidth(l),this.setupMovingCss(l),this.setupMenuClass(l),this.setupSortableClass(l),this.setupWrapTextClass(),this.refreshSpanHeaderHeight(),this.setupAutoHeight({wrapperElement:n,checkMeasuringCallback:u=>this.setRefreshFunction("measuring",u),compBean:l}),this.addColumnHoverListener(l),this.setupFilterClass(l),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(l),this.setupSelectAll(l),this.setupUserComp(),this.refreshAria(),o?this.resizeFeature=l.createManagedBean(o.createResizeFeature(this.rowCtrl.pinned,this.column,r,e,this)):Pt(r,!1),a==null||a.createHoverFeature(l,[this.column],t),l.createManagedBean(new F5(this.column,t,this.beans)),l.createManagedBean(new qp(t,{shouldStopEventPropagation:u=>this.shouldStopEventPropagation(u),onTabKeyDown:()=>null,handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addResizeAndMoveKeyboardListeners(l),l.addManagedPropertyListeners(["suppressMovableColumns","suppressMenuHide","suppressAggFuncInHeader"],()=>this.refresh()),l.addManagedListeners(this.column,{colDefChanged:()=>this.refresh()}),l.addManagedListeners(this.column,{headerHighlightChanged:this.onHeaderHighlightChanged.bind(this)});const c=()=>this.checkDisplayName();l.addManagedEventListeners({columnValueChanged:c,columnRowGroupChanged:c,columnPivotChanged:c,headerHeightChanged:this.onHeaderHeightChanged.bind(this)}),l.addDestroyFunc(()=>{this.refreshFunctions={},this.selectAllFeature=null,this.dragSourceElement=void 0,this.userCompDetails=null,this.userHeaderClasses.clear(),this.ariaDescriptionProperties.clear(),this.clearComponent()})}resizeHeader(e,t){var r;(r=this.beans.colResize)==null||r.resizeHeader(this.column,e,t)}setupUserComp(){const e=this.lookupUserCompDetails();e&&this.setCompDetails(e)}setCompDetails(e){this.userCompDetails=e,this.comp.setUserCompDetails(e)}lookupUserCompDetails(){const e=this.createParams(),t=this.column.getColDef();return yje(this.beans.userCompFactory,t,e)}createParams(){const{menuSvc:e,sortSvc:t,colFilter:r,gos:n}=this.beans;return n.addGridCommonParams({column:this.column,displayName:this.displayName,enableSorting:this.column.isSortable(),enableMenu:this.menuEnabled,enableFilterButton:this.openFilterEnabled&&!!(e!=null&&e.isHeaderFilterButtonEnabled(this.column)),enableFilterIcon:!!r&&(!this.openFilterEnabled||wo(this.gos)),showColumnMenu:o=>{e==null||e.showColumnMenu({column:this.column,buttonElement:o,positionBy:"button"})},showColumnMenuAfterMouseClick:o=>{e==null||e.showColumnMenu({column:this.column,mouseEvent:o,positionBy:"mouse"})},showFilter:o=>{e==null||e.showFilterMenu({column:this.column,buttonElement:o,containerType:"columnFilter",positionBy:"button"})},progressSort:o=>{t==null||t.progressSort(this.column,!!o,"uiColumnSorted")},setSort:(o,s)=>{t==null||t.setSortForColumn(this.column,o,!!s,"uiColumnSorted")},eGridHeader:this.eGui,setTooltip:(o,s)=>{n.assertModuleRegistered("Tooltip",3),this.setupTooltip(o,s)}})}setupSelectAll(e){const{selectionSvc:t}=this.beans;t&&(this.selectAllFeature=e.createManagedBean(t.createSelectAllFeature(this.column)),this.selectAllFeature.setComp(this))}getSelectAllGui(){var e;return(e=this.selectAllFeature)==null?void 0:e.getCheckboxGui()}handleKeyDown(e){var t;super.handleKeyDown(e),e.key===ge.SPACE&&((t=this.selectAllFeature)==null||t.onSpaceKeyDown(e)),e.key===ge.ENTER&&this.onEnterKeyDown(e),e.key===ge.DOWN&&e.altKey&&this.showMenuOnKeyPress(e,!1)}onEnterKeyDown(e){var t;e.ctrlKey||e.metaKey?this.showMenuOnKeyPress(e,!0):this.sortable&&((t=this.beans.sortSvc)==null||t.progressSort(this.column,e.shiftKey,"uiColumnSorted"))}showMenuOnKeyPress(e,t){const r=this.comp.getUserCompInstance();zY(r)&&r.onMenuKeyboardShortcut(t)&&e.preventDefault()}onFocusIn(e){this.eGui.contains(e.relatedTarget)||(this.focusThis(),this.announceAriaDescription()),AA()&&this.setActiveHeader(!0)}onFocusOut(e){this.eGui.contains(e.relatedTarget)||this.setActiveHeader(!1)}setupTooltip(e,t){var r;this.tooltipFeature=(r=this.beans.tooltipSvc)==null?void 0:r.setupHeaderTooltip(this.tooltipFeature,this,e,t)}setupClassesFromColDef(){const e=()=>{const t=this.column.getColDef(),r=C5(t,this.gos,this.column,null),n=this.userHeaderClasses;this.userHeaderClasses=new Set(r),r.forEach(i=>{n.has(i)?n.delete(i):this.comp.addOrRemoveCssClass(i,!0)}),n.forEach(i=>this.comp.addOrRemoveCssClass(i,!1))};this.setRefreshFunction("headerClasses",e),e()}setDragSource(e){var t;this.dragSourceElement=e,this.removeDragSource(),!(!e||!this.draggable)&&(this.dragSource=((t=this.beans.colMoves)==null?void 0:t.setDragSourceForHeader(e,this.column,this.displayName))??null)}updateState(){const{menuSvc:e}=this.beans;this.menuEnabled=!!(e!=null&&e.isColumnMenuInHeaderEnabled(this.column)),this.openFilterEnabled=!!(e!=null&&e.isFilterMenuInHeaderEnabled(this.column)),this.sortable=this.column.isSortable(),this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()}setRefreshFunction(e,t){this.refreshFunctions[e]=t}refresh(){this.updateState(),this.refreshHeaderComp(),this.refreshAria(),Object.values(this.refreshFunctions).forEach(e=>e())}refreshHeaderComp(){const e=this.lookupUserCompDetails();if(!e)return;(this.comp.getUserCompInstance()!=null&&this.userCompDetails.componentClass==e.componentClass?this.attemptHeaderCompRefresh(e.params):!1)?this.setDragSource(this.dragSourceElement):this.setCompDetails(e)}attemptHeaderCompRefresh(e){const t=this.comp.getUserCompInstance();return!t||!t.refresh?!1:t.refresh(e)}calculateDisplayName(){return this.beans.colNames.getDisplayNameForColumn(this.column,"header",!0)}checkDisplayName(){this.displayName!==this.calculateDisplayName()&&this.refresh()}workOutDraggable(){const e=this.column.getColDef();return!!(!this.gos.get("suppressMovableColumns")&&!e.suppressMovable&&!e.lockPosition)||!!e.enableRowGroup||!!e.enablePivot}setupWidth(e){const t=()=>{const r=this.column.getActualWidth();this.comp.setWidth(`${r}px`)};e.addManagedListeners(this.column,{widthChanged:t}),t()}setupMovingCss(e){const t=()=>{this.comp.addOrRemoveCssClass("ag-header-cell-moving",this.column.isMoving())};e.addManagedListeners(this.column,{movingChanged:t}),t()}setupMenuClass(e){const t=()=>{this.comp.addOrRemoveCssClass("ag-column-menu-visible",this.column.isMenuVisible())};e.addManagedListeners(this.column,{menuVisibleChanged:t}),t()}setupSortableClass(e){const t=()=>{this.comp.addOrRemoveCssClass("ag-header-cell-sortable",!!this.sortable)};t(),this.setRefreshFunction("updateSortable",t),e.addManagedEventListeners({sortChanged:this.refreshAriaSort.bind(this)})}setupFilterClass(e){const t=()=>{const r=this.column.isFilterActive();this.comp.addOrRemoveCssClass("ag-header-cell-filtered",r),this.refreshAria()};e.addManagedListeners(this.column,{filterActiveChanged:t}),t()}setupWrapTextClass(){const e=()=>{const t=!!this.column.getColDef().wrapHeaderText;this.comp.addOrRemoveCssClass("ag-header-cell-wrap-text",t)};e(),this.setRefreshFunction("wrapText",e)}onHeaderHighlightChanged(){const e=this.column.getHighlighted(),t=e===0,r=e===1;this.comp.addOrRemoveCssClass("ag-header-highlight-before",t),this.comp.addOrRemoveCssClass("ag-header-highlight-after",r)}onDisplayedColumnsChanged(){super.onDisplayedColumnsChanged(),this.isAlive()&&this.onHeaderHeightChanged()}onHeaderHeightChanged(){this.refreshSpanHeaderHeight()}refreshSpanHeaderHeight(){const{eGui:e,column:t,comp:r,beans:n}=this,i=M5(this.beans),o=i.reduce((u,d)=>u+=d,0)===0;if(r.addOrRemoveCssClass("ag-header-parent-hidden",o),!t.isSpanHeaderHeight()){e.style.removeProperty("top"),e.style.removeProperty("height"),r.addOrRemoveCssClass("ag-header-span-height",!1),r.addOrRemoveCssClass("ag-header-span-total",!1);return}const{numberOfParents:s,isSpanningTotal:a}=this.column.getColumnGroupPaddingInfo();r.addOrRemoveCssClass("ag-header-span-height",s>0);const l=I5(n);if(s===0){r.addOrRemoveCssClass("ag-header-span-total",!1),e.style.setProperty("top","0px"),e.style.setProperty("height",`${l}px`);return}r.addOrRemoveCssClass("ag-header-span-total",a);let c=0;for(let u=0;ur==="filter"?-1:n.charCodeAt(0)-r.charCodeAt(0)).map(r=>this.ariaDescriptionProperties.get(r)).join(". ");(t=this.beans.ariaAnnounce)==null||t.announceValue(e,"columnHeader")}refreshAria(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaFilterButton(),this.refreshAriaFiltered()}addColumnHoverListener(e){var t;(t=this.beans.colHover)==null||t.addHeaderColumnHoverListener(e,this.comp,this.column)}addActiveHeaderMouseListeners(e){const t=i=>this.handleMouseOverChange(i.type==="mouseenter"),r=()=>this.dispatchColumnMouseEvent("columnHeaderClicked",this.column),n=i=>this.handleContextMenuMouseEvent(i,void 0,this.column);e.addManagedListeners(this.eGui,{mouseenter:t,mouseleave:t,click:r,contextmenu:n})}handleMouseOverChange(e){this.setActiveHeader(e),this.eventSvc.dispatchEvent({type:e?"columnHeaderMouseOver":"columnHeaderMouseLeave",column:this.column})}setActiveHeader(e){this.comp.addOrRemoveCssClass("ag-header-active",e)}getAnchorElementForMenu(e){const t=this.comp.getUserCompInstance();return zY(t)?t.getAnchorElementForMenu(e):this.eGui}destroy(){this.tooltipFeature=this.destroyBean(this.tooltipFeature),super.destroy()}};function zY(e){return typeof e.getAnchorElementForMenu=="function"&&typeof e.onMenuKeyboardShortcut=="function"}var YKe=0,U2=class extends xe{constructor(e,t,r){super(),this.rowIndex=e,this.pinned=t,this.type=r,this.instanceId=YKe++;const n=r=="group"?"ag-header-row-column-group":r=="filter"?"ag-header-row-column-filter":"ag-header-row-column";this.headerRowClass=`ag-header-row ${n}`}postConstruct(){this.isPrintLayout=Eo(this.gos,"print"),this.isEnsureDomOrder=this.gos.get("ensureDomOrder")}areCellsRendered(){return this.comp?this.getHeaderCellCtrls().every(e=>e.eGui!=null):!1}setComp(e,t,r=!0){this.comp=e,t=c1(this,this.beans.context,t),r&&(this.onRowHeightChanged(),this.onVirtualColumnsChanged()),this.setWidth(),this.addEventListeners(t)}getAriaRowIndex(){return this.rowIndex+1}addEventListeners(e){const t=this.onRowHeightChanged.bind(this);e.addManagedEventListeners({columnResized:this.setWidth.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),virtualColumnsChanged:r=>this.onVirtualColumnsChanged(r.afterScroll),columnGroupHeaderHeightChanged:t,columnHeaderHeightChanged:t,gridStylesChanged:t,advancedFilterEnabledChanged:t}),e.addManagedPropertyListener("domLayout",this.onDisplayedColumnsChanged.bind(this)),e.addManagedPropertyListener("ensureDomOrder",r=>this.isEnsureDomOrder=r.currentValue),e.addManagedPropertyListeners(["headerHeight","pivotHeaderHeight","groupHeaderHeight","pivotGroupHeaderHeight","floatingFiltersHeight"],t)}getHeaderCellCtrl(e){if(this.headerCellCtrls){for(const t of this.headerCellCtrls.values())if(t.column===e)return t}}onDisplayedColumnsChanged(){this.isPrintLayout=Eo(this.gos,"print"),this.onVirtualColumnsChanged(),this.setWidth(),this.onRowHeightChanged()}setWidth(){const e=this.getWidthForRow();this.comp.setWidth(`${e}px`)}getWidthForRow(){const{visibleCols:e}=this.beans;return this.isPrintLayout?this.pinned!=null?0:e.getContainerWidth("right")+e.getContainerWidth("left")+e.getContainerWidth(null):e.getContainerWidth(this.pinned)}onRowHeightChanged(){const{topOffset:e,rowHeight:t}=this.getTopAndHeight();this.comp.setTop(e+"px"),this.comp.setHeight(t+"px")}getTopAndHeight(){const{filterManager:e}=this.beans,t=[],r=M5(this.beans),n=I5(this.beans);t.push(...r),t.push(n),e!=null&&e.hasFloatingFilters()&&t.push(D5(this.beans));let i=0;for(let s=0;s{const{focusSvc:i,visibleCols:o}=this.beans;return i.isHeaderWrapperFocused(n)?o.isVisible(n.column):!1};if(e)for(const[n,i]of e)r(i)?this.headerCellCtrls.set(n,i):this.destroyBean(i);return this.getHeaderCellCtrls()}getHeaderCellCtrls(){var e;return Array.from(((e=this.headerCellCtrls)==null?void 0:e.values())??[])}recycleAndCreateHeaderCtrls(e,t){if(!this.headerCellCtrls||e.isEmptyGroup())return;const r=e.getUniqueId();let n;if(t&&(n=t.get(r),t.delete(r)),n&&n.column!=e&&(this.destroyBean(n),n=void 0),n==null)switch(this.type){case"filter":{n=this.createBean(this.beans.registry.createDynamicBean("headerFilterCellCtrl",!0,e,this));break}case"group":n=this.createBean(this.beans.registry.createDynamicBean("headerGroupCellCtrl",!0,e,this));break;default:n=this.createBean(new XKe(e,this));break}this.headerCellCtrls.set(r,n)}getColumnsInViewport(){return this.isPrintLayout?this.getColumnsInViewportPrintLayout():this.getColumnsInViewportNormalLayout()}getColumnsInViewportPrintLayout(){if(this.pinned!=null)return[];let e=[];const t=this.getActualDepth(),{colViewport:r}=this.beans;return["left",null,"right"].forEach(n=>{const i=r.getHeadersToRender(n,t);e=e.concat(i)}),e}getActualDepth(){return this.type=="filter"?this.rowIndex-1:this.rowIndex}getColumnsInViewportNormalLayout(){return this.beans.colViewport.getHeadersToRender(this.pinned,this.getActualDepth())}findHeaderCellCtrl(e){if(!this.headerCellCtrls)return;const t=this.getHeaderCellCtrls();let r;return typeof e=="function"?r=t.find(e):r=t.find(n=>n.column==e),r}focusHeader(e,t){const r=this.findHeaderCellCtrl(e);return r?r.focus(t):!1}destroy(){var e;(e=this.headerCellCtrls)==null||e.forEach(t=>{this.destroyBean(t)}),this.headerCellCtrls=void 0,super.destroy()}},Qfe=class extends xe{constructor(e){super(),this.pinned=e,this.hidden=!1,this.includeFloatingFilter=!1,this.groupsRowCtrls=[]}setComp(e,t){this.comp=e,this.eViewport=t;const{pinnedCols:r,ctrlsSvc:n,colModel:i,colMoves:o,filterManager:s}=this.beans;this.setupCenterWidth(),r==null||r.setupHeaderPinnedWidth(this),this.setupDragAndDrop(o,this.eViewport);const a=this.onDisplayedColumnsChanged.bind(this,s);this.addManagedEventListeners({gridColumnsChanged:this.onGridColumnsChanged.bind(this),displayedColumnsChanged:a,advancedFilterEnabledChanged:a});const l=`${typeof this.pinned=="string"?this.pinned:"center"}Header`;n.register(l,this),i.ready&&this.refresh()}getAllCtrls(){const e=[...this.groupsRowCtrls];return this.columnsRowCtrl&&e.push(this.columnsRowCtrl),this.filtersRowCtrl&&e.push(this.filtersRowCtrl),e}refresh(e=!1){const{focusSvc:t,colModel:r,filterManager:n}=this.beans;let i=0;const o=t.getFocusHeaderToUseAfterRefresh(),s=()=>{const u=qfe(r)-1;this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls);for(let d=0;d{const u=i++,d=!this.hidden&&(this.columnsRowCtrl==null||!e||this.columnsRowCtrl.rowIndex!==u);(d||this.hidden)&&(this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl)),d&&(this.columnsRowCtrl=this.createBean(new U2(u,this.pinned,"column")))},l=()=>{this.includeFloatingFilter=!!(n!=null&&n.hasFloatingFilters())&&!this.hidden;const u=()=>{this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl)};if(!this.includeFloatingFilter){u();return}const d=i++;if(this.filtersRowCtrl){const h=this.filtersRowCtrl.rowIndex!==d;(!e||h)&&u()}this.filtersRowCtrl||(this.filtersRowCtrl=this.createBean(new U2(d,this.pinned,"filter")))};s(),a(),l();const c=this.getAllCtrls();this.comp.setCtrls(c),this.restoreFocusOnHeader(t,o)}getHeaderCtrlForColumn(e){var t;if(yu(e))return(t=this.columnsRowCtrl)==null?void 0:t.getHeaderCellCtrl(e);if(this.groupsRowCtrls.length!==0)for(let r=0;rthis.comp.setCenterWidth(`${e}px`),!0))}},ZKe=class extends xe{constructor(){super(...arguments),this.beanName="menuSvc"}postConstruct(){const{enterpriseMenuFactory:e,filterMenuFactory:t}=this.beans;this.activeMenuFactory=e??t}showColumnMenu(e){this.showColumnMenuCommon(this.activeMenuFactory,e,"columnMenu")}showFilterMenu(e){const{enterpriseMenuFactory:t,filterMenuFactory:r}=this.beans,n=t&&wo(this.gos)?t:r;this.showColumnMenuCommon(n,e,e.containerType,!0)}showHeaderContextMenu(e,t,r){var n;(n=this.activeMenuFactory)==null||n.showMenuAfterContextMenuEvent(e,t,r)}hidePopupMenu(){var e,t;(e=this.beans.contextMenuSvc)==null||e.hideActiveMenu(),(t=this.activeMenuFactory)==null||t.hideActiveMenu()}isColumnMenuInHeaderEnabled(e){var r;const{suppressHeaderMenuButton:t}=e.getColDef();return!t&&!!((r=this.activeMenuFactory)!=null&&r.isMenuEnabled(e))&&(wo(this.gos)||!!this.beans.enterpriseMenuFactory)}isFilterMenuInHeaderEnabled(e){var t;return!e.getColDef().suppressHeaderFilterButton&&!!((t=this.beans.filterManager)!=null&&t.isFilterAllowed(e))}isHeaderContextMenuEnabled(e){const t=e&&yu(e)?e.getColDef():e==null?void 0:e.getColGroupDef();return!(t!=null&&t.suppressHeaderContextMenu)&&this.gos.get("columnMenu")==="new"}isHeaderMenuButtonAlwaysShowEnabled(){return this.isSuppressMenuHide()}isHeaderMenuButtonEnabled(){const e=!this.isSuppressMenuHide();return!(fp()&&e)}isHeaderFilterButtonEnabled(e){return this.isFilterMenuInHeaderEnabled(e)&&!wo(this.gos)&&!this.isFloatingFilterButtonDisplayed(e)}isFilterMenuItemEnabled(e){var t;return!!((t=this.beans.filterManager)!=null&&t.isFilterAllowed(e))&&!wo(this.gos)&&!this.isFilterMenuInHeaderEnabled(e)&&!this.isFloatingFilterButtonDisplayed(e)}isFloatingFilterButtonEnabled(e){return!e.getColDef().suppressFloatingFilterButton}isFloatingFilterButtonDisplayed(e){return!!e.getColDef().floatingFilter&&this.isFloatingFilterButtonEnabled(e)}isSuppressMenuHide(){const e=this.gos,t=e.get("suppressMenuHide");return wo(e)?e.exists("suppressMenuHide")?t:!1:t}showColumnMenuCommon(e,t,r,n){const{positionBy:i}=t,o=t.column;if(i==="button"){const{buttonElement:s}=t;e==null||e.showMenuAfterButtonClick(o,s,r,n)}else if(i==="mouse"){const{mouseEvent:s}=t;e==null||e.showMenuAfterMouseEvent(o,s,r,n)}else if(o){const s=this.beans,a=s.ctrlsSvc;a.getScrollFeature().ensureColumnVisible(o,"auto"),Tl(s,()=>{var c;const l=(c=a.getHeaderRowContainerCtrl(o.getPinned()))==null?void 0:c.getHeaderCtrlForColumn(o);l&&(e==null||e.showMenuAfterButtonClick(o,l.getAnchorElementForMenu(n),r,!0))})}}};function lI(e,t,r){e.menuVisible!==t&&(e.menuVisible=t,e.dispatchColEvent("menuVisibleChanged",r))}var Jfe=class extends Je{constructor(){super()}},QKe=class extends Jfe{init(){var t;const e=Ai((t=this.gos.get("overlayLoadingTemplate"))==null?void 0:t.trim());if(this.setTemplate(e??''),!e){const r=this.getLocaleTextFunc();setTimeout(()=>{this.getGui().textContent=r("loadingOoo","Loading...")})}}},JKe=class extends Jfe{init(){var t;const e=Ai((t=this.gos.get("overlayNoRowsTemplate"))==null?void 0:t.trim());if(this.setTemplate(e??''),!e){const r=this.getLocaleTextFunc();setTimeout(()=>{this.getGui().textContent=r("noRowsToShow","No Rows To Show")})}}};function gp(e,t,r){const n=Ht(e,t,r);if(n){const{className:o}=n;if(typeof o=="string"&&o.indexOf("ag-icon")>-1||typeof o=="object"&&o["ag-icon"])return n}const i=document.createElement("span");return i.appendChild(n),i}function Ht(e,t,r){var o;let n=null;e==="smallDown"?we(262):e==="smallLeft"?we(263):e==="smallRight"&&we(264);const i=r&&r.getColDef().icons;if(i&&(n=i[e]),t.gos&&!n){const s=t.gos.get("icons");s&&(n=s[e])}if(n){let s;if(typeof n=="function")s=n();else if(typeof n=="string")s=n;else{we(38,{iconName:e});return}if(typeof s=="string")return Ts(s);if(EA(s))return s;we(133,{iconName:e});return}else{const s=document.createElement("span"),a=t.registry.getIcon(e);a||(o=t.validation)==null||o.validateIcon(e);const l=a??e;return s.setAttribute("class",`ag-icon ag-icon-${l}`),s.setAttribute("unselectable","on"),Un(s,"presentation"),s}}var eqe=".ag-dnd-ghost{align-items:center;background-color:var(--ag-drag-and-drop-image-background-color);border:var(--ag-drag-and-drop-image-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-drag-and-drop-image-shadow);color:var(--ag-text-color);cursor:move;display:flex;font-weight:500;gap:var(--ag-cell-widget-spacing);height:var(--ag-header-height);overflow:hidden;padding-left:var(--ag-cell-horizontal-padding);padding-right:var(--ag-cell-horizontal-padding);text-overflow:ellipsis;transform:translateY(calc(var(--ag-spacing)*2));white-space:nowrap}",tqe=class extends Je{constructor(){super(),this.dragSource=null,this.eIcon=Ce,this.eLabel=Ce,this.registerCSS(eqe)}postConstruct(){const e=t=>gp(t,this.beans,null);this.dropIconMap={pinned:e("columnMovePin"),hide:e("columnMoveHide"),move:e("columnMoveMove"),left:e("columnMoveLeft"),right:e("columnMoveRight"),group:e("columnMoveGroup"),aggregate:e("columnMoveValue"),pivot:e("columnMovePivot"),notAllowed:e("dropNotAllowed")}}init(e){this.dragSource=e.dragSource,this.setTemplate(`
`)}destroy(){this.dragSource=null,super.destroy()}setIcon(e,t){const{eIcon:r,dragSource:n,dropIconMap:i,gos:o}=this;Jr(r);let s=null;e||(e=n!=null&&n.getDefaultIconName?n.getDefaultIconName():"notAllowed"),s=i[e],r.classList.toggle("ag-shake-left-to-right",t),!(s===i.hide&&o.get("suppressDragLeaveHidesColumns"))&&s&&r.appendChild(s)}setLabel(e){this.eLabel.textContent=Sn(e)}},rqe=".ag-label{white-space:nowrap}:where(.ag-ltr) .ag-label{margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-label{margin-left:var(--ag-spacing)}:where(.ag-label-align-right) .ag-label{order:1}:where(.ag-ltr) :where(.ag-label-align-right) .ag-label{margin-left:var(--ag-spacing)}:where(.ag-rtl) :where(.ag-label-align-right) .ag-label{margin-right:var(--ag-spacing)}.ag-label-align-right>*{flex:none}.ag-label-align-top{align-items:flex-start;flex-direction:column;>*{align-self:stretch}}.ag-label-ellipsis{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:where(.ag-label-align-top) .ag-label{margin-bottom:calc(var(--ag-spacing)*.5)}",_5=class extends Je{constructor(e,t,r){super(t,r),this.labelSeparator="",this.labelAlignment="left",this.disabled=!1,this.label="",this.config=e||{},this.registerCSS(rqe)}postConstruct(){this.addCssClass("ag-labeled"),this.eLabel.classList.add("ag-label");const{labelSeparator:e,label:t,labelWidth:r,labelAlignment:n,disabled:i}=this.config;i!=null&&this.setDisabled(i),e!=null&&this.setLabelSeparator(e),t!=null&&this.setLabel(t),r!=null&&this.setLabelWidth(r),this.setLabelAlignment(n||this.labelAlignment),this.refreshLabel()}refreshLabel(){const{label:e,eLabel:t}=this;Jr(t),typeof e=="string"?t.innerText=e+this.labelSeparator:e&&t.appendChild(e),e===""?(Pt(t,!1),Un(t,"presentation")):(Pt(t,!0),Un(t,null))}setLabelSeparator(e){return this.labelSeparator===e?this:(this.labelSeparator=e,this.label!=null&&this.refreshLabel(),this)}getLabelId(){const e=this.eLabel;return e.id=e.id||`ag-${this.getCompId()}-label`,e.id}getLabel(){return this.label}setLabel(e){return this.label===e?this:(this.label=e,this.refreshLabel(),this)}setLabelAlignment(e){const r=this.getGui().classList;return r.toggle("ag-label-align-left",e==="left"),r.toggle("ag-label-align-right",e==="right"),r.toggle("ag-label-align-top",e==="top"),this}setLabelEllipsis(e){return this.eLabel.classList.toggle("ag-label-ellipsis",e),this}setLabelWidth(e){return this.label==null?this:(qM(this.eLabel,e),this)}setDisabled(e){e=!!e;const t=this.getGui();return cl(t,e),t.classList.toggle("ag-disabled",e),this.disabled=e,this}isDisabled(){return!!this.disabled}},ege=class extends _5{constructor(e,t,r,n){super(e,t,r),this.className=n}postConstruct(){super.postConstruct();const{width:e,value:t,onValueChange:r}=this.config;e!=null&&this.setWidth(e),t!=null&&this.setValue(t),r!=null&&this.onValueChange(r),this.className&&this.addCssClass(this.className),this.refreshAriaLabelledBy()}setLabel(e){return super.setLabel(e),this.refreshAriaLabelledBy(),this}refreshAriaLabelledBy(){const e=this.getAriaElement(),t=this.getLabelId(),r=this.getLabel();r==null||r==""||X9e(e)!==null?Mp(e,""):Mp(e,t??"")}setAriaLabel(e){return jn(this.getAriaElement(),e),this.refreshAriaLabelledBy(),this}onValueChange(e){return this.addManagedListeners(this,{fieldValueChanged:()=>e(this.getValue())}),this}getWidth(){return this.getGui().clientWidth}setWidth(e){return sc(this.getGui(),e),this}getPreviousValue(){return this.previousValue}getValue(){return this.value}setValue(e,t){return this.value===e?this:(this.previousValue=this.value,this.value=e,t||this.dispatchLocalEvent({type:"fieldValueChanged"}),this)}},rp=class extends ege{constructor(e,t,r="text",n="input"){super(e,(e==null?void 0:e.template)??`
`,[],t),this.inputType=r,this.displayFieldTag=n,this.eLabel=Ce,this.eWrapper=Ce,this.eInput=Ce}postConstruct(){super.postConstruct(),this.setInputType();const{eLabel:e,eWrapper:t,eInput:r,className:n}=this;e.classList.add(`${n}-label`),t.classList.add(`${n}-input-wrapper`),r.classList.add(`${n}-input`),this.addCssClass("ag-input-field"),r.id=r.id||`ag-${this.getCompId()}-input`;const{inputName:i,inputWidth:o}=this.config;i!=null&&this.setInputName(i),o!=null&&this.setInputWidth(o),this.addInputListeners(),this.activateTabIndex([r])}addInputListeners(){this.addManagedElementListeners(this.eInput,{input:e=>this.setValue(e.target.value)})}setInputType(){this.displayFieldTag==="input"&&this.eInput.setAttribute("type",this.inputType)}getInputElement(){return this.eInput}setInputWidth(e){return qM(this.eWrapper,e),this}setInputName(e){return this.getInputElement().setAttribute("name",e),this}getFocusableElement(){return this.eInput}setMaxLength(e){const t=this.eInput;return t.maxLength=e,this}setInputPlaceholder(e){return vl(this.eInput,"placeholder",e),this}setInputAriaLabel(e){return jn(this.eInput,e),this.refreshAriaLabelledBy(),this}setDisabled(e){return cl(this.eInput,e),super.setDisabled(e)}setAutoComplete(e){if(e===!0)vl(this.eInput,"autocomplete",null);else{const t=typeof e=="string"?e:"off";vl(this.eInput,"autocomplete",t)}return this}},Am=class extends rp{constructor(e,t="ag-checkbox",r="checkbox"){super(e,t,r),this.labelAlignment="right",this.selected=!1,this.readOnly=!1,this.passive=!1}postConstruct(){super.postConstruct();const{readOnly:e,passive:t}=this.config;typeof e=="boolean"&&this.setReadOnly(e),typeof t=="boolean"&&this.setPassive(t)}addInputListeners(){this.addManagedElementListeners(this.eInput,{click:this.onCheckboxClick.bind(this)}),this.addManagedElementListeners(this.eLabel,{click:this.toggle.bind(this)})}getNextValue(){return this.selected===void 0?!0:!this.selected}setPassive(e){this.passive=e}isReadOnly(){return this.readOnly}setReadOnly(e){this.eWrapper.classList.toggle("ag-disabled",e),this.eInput.disabled=e,this.readOnly=e}setDisabled(e){return this.eWrapper.classList.toggle("ag-disabled",e),super.setDisabled(e)}toggle(){if(this.eInput.disabled)return;const e=this.isSelected(),t=this.getNextValue();this.passive?this.dispatchChange(t,e):this.setValue(t)}getValue(){return this.isSelected()}setValue(e,t){return this.refreshSelectedClass(e),this.setSelected(e,t),this}setName(e){const t=this.getInputElement();return t.name=e,this}isSelected(){return this.selected}setSelected(e,t){if(this.isSelected()===e)return;this.previousValue=this.isSelected(),e=this.selected=typeof e=="boolean"?e:void 0;const r=this.eInput;r.checked=e,r.indeterminate=e===void 0,t||this.dispatchChange(this.selected,this.previousValue)}dispatchChange(e,t,r){this.dispatchLocalEvent({type:"fieldValueChanged",selected:e,previousValue:t,event:r});const n=this.getInputElement();this.eventSvc.dispatchEvent({type:"checkboxChanged",id:n.id,name:n.name,selected:e,previousValue:t})}onCheckboxClick(e){if(this.passive||this.eInput.disabled)return;const t=this.isSelected(),r=this.selected=e.target.checked;this.refreshSelectedClass(r),this.dispatchChange(r,t,e)}refreshSelectedClass(e){const t=this.eWrapper.classList;t.toggle("ag-checked",e===!0),t.toggle("ag-indeterminate",e==null)}},Tc={selector:"AG-CHECKBOX",component:Am},nqe=".ag-checkbox-cell{height:100%}",iqe=class extends Je{constructor(){super(` `,[Tc]),this.eCheckbox=Ce,this.registerCSS(nqe)}init(e){this.refresh(e);const{eCheckbox:t,beans:r}=this,n=t.getInputElement();n.setAttribute("tabindex","-1"),npe(n,"polite"),this.addManagedListeners(n,{click:i=>{if(di(i),t.isDisabled())return;const o=t.getValue();this.onCheckboxChanged(o)},dblclick:i=>{di(i)}}),this.addManagedElementListeners(e.eGridCell,{keydown:i=>{if(i.key===ge.SPACE&&!t.isDisabled()){e.eGridCell===Vr(r)&&t.toggle();const o=t.getValue();this.onCheckboxChanged(o),i.preventDefault()}}})}refresh(e){return this.params=e,this.updateCheckbox(e),!0}updateCheckbox(e){let t,r=!0;const{value:n,column:i,node:o}=e;if(o.group&&i)if(typeof n=="boolean")t=n;else{const d=i.getColId();d.startsWith(Fp)?t=n==null||n===""?void 0:n==="true":o.aggData&&o.aggData[d]!==void 0?t=n??void 0:r=!1}else t=n??void 0;const{eCheckbox:s}=this;if(!r){s.setDisplayed(!1);return}s.setValue(t);const a=e.disabled??!(i!=null&&i.isCellEditable(o));s.setDisabled(a);const l=this.getLocaleTextFunc(),c=s5(l,t),u=a?c:`${l("ariaToggleCellValue","Press SPACE to toggle cell value")} (${c})`;s.setInputAriaLabel(u)}onCheckboxChanged(e){const{eventSvc:t,params:r}=this,{column:n,node:i,value:o}=r,s={column:n,colDef:n.getColDef(),data:i.data,node:i,rowIndex:i.rowIndex,rowPinned:i.rowPinned,value:o};t.dispatchEvent({type:"cellEditingStarted",...s});const a=i.setDataValue(n,e,"edit");t.dispatchEvent({type:"cellEditingStopped",...s,oldValue:o,newValue:e,valueChanged:a}),a||this.updateCheckbox(r)}},oqe="ROOT_NODE_ID",tge=class extends xe{constructor(){super(...arguments),this.nextId=0,this.allNodesMap={},this.rootNode=null}get treeData(){return!1}getRowNode(e){return this.allNodesMap[e]}extractRowData(){var e,t;return(t=(e=this.rootNode)==null?void 0:e.allLeafChildren)==null?void 0:t.map(r=>r.data)}activate(e){this.rootNode=e,e.group=!0,e.level=-1,e.id=oqe,e.allLeafChildren=[],e.childrenAfterGroup=[],e.childrenAfterSort=[],e.childrenAfterAggFilter=[],e.childrenAfterFilter=[],this.updateRootSiblingArrays(e)}deactivate(){this.rootNode&&(this.allNodesMap={},this.rootNode=null)}destroy(){super.destroy(),this.allNodesMap={},this.rootNode=null}setNewRowData(e){const t=this.rootNode;t&&(this.dispatchRowDataUpdateStartedEvent(e),t.childrenAfterFilter=null,t.childrenAfterGroup=null,t.childrenAfterAggFilter=null,t.childrenAfterSort=null,t.childrenMapped=null,t.updateHasChildren(),this.allNodesMap={},this.nextId=0,this.loadNewRowData(e),this.updateRootSiblingArrays(t))}updateRootSiblingArrays(e){const t=e.sibling;t&&(t.childrenAfterFilter=e.childrenAfterFilter,t.childrenAfterGroup=e.childrenAfterGroup,t.childrenAfterAggFilter=e.childrenAfterAggFilter,t.childrenAfterSort=e.childrenAfterSort,t.childrenMapped=e.childrenMapped,t.allLeafChildren=e.allLeafChildren)}loadNewRowData(e){this.rootNode.allLeafChildren=(e==null?void 0:e.map((t,r)=>this.createRowNode(t,r)))??[]}setImmutableRowData(e,t){const r=this.createTransactionForRowData(t),n=this.updateRowData(r,e.changedRowNodes);let i=!1;this.gos.get("suppressMaintainUnsortedOrder")||(i=this.updateRowOrderFromRowData(t));const{rowNodeTransaction:o,rowsInserted:s}=n,{add:a,remove:l,update:c}=o;(s||i||a.length||l.length||c.length)&&(e.step="group",e.rowDataUpdated=!0,e.rowNodeTransactions=[o],e.rowNodesOrderChanged=s||i)}updateRowData(e,t){this.dispatchRowDataUpdateStartedEvent(e.add);const r={changedRowNodes:t,rowNodeTransaction:{remove:[],update:[],add:[]},rowsInserted:!1},n=[],i=Fd(this.gos);return this.executeRemove(i,e,r,n),this.executeUpdate(i,e,r,n),this.executeAdd(e,r),this.deselectNodes(n),r}createTransactionForRowData(e){const t=Fd(this.gos),r={...this.allNodesMap},n=[],i=[],o=[];Qe(e)&&e.forEach(s=>{const a=t({data:s,level:0}),l=r[a];l?(l.data!==s&&i.push(s),r[a]=void 0):o.push(s)});for(const s of Object.values(r))s&&n.push(s.data);return{remove:n,update:i,add:o}}updateRowOrderFromRowData(e){var s;const t=(s=this.rootNode)==null?void 0:s.allLeafChildren,r=(t==null?void 0:t.length)??0,n=new Map;let i=-1,o=-1;for(let a=0;a0&&this.gos.get("treeData")&&this.gos.get("getDataPath")))for(let d=0;d{const h=this.lookupRowNode(e,d);h&&(h.isSelected()&&i.push(h),h.clearRowTopAndRowIndex(),s[h.id]=!0,delete this.allNodesMap[h.id],n.remove.push(h),r.remove(h))});const a=this.rootNode;a.allLeafChildren=((c=a.allLeafChildren)==null?void 0:c.filter(d=>!s[d.id]))??null,(u=a.allLeafChildren)==null||u.forEach((d,h)=>{d.sourceRowIndex=h});const l=a.sibling;l&&(l.allLeafChildren=a.allLeafChildren)}executeUpdate(e,t,{changedRowNodes:r,rowNodeTransaction:n},i){const{update:o}=t;o!=null&&o.length&&o.forEach(s=>{const a=this.lookupRowNode(e,s);a&&(a.updateData(s),!a.selectable&&a.isSelected()&&i.push(a),n.update.push(a),r.update(a))})}dispatchRowDataUpdateStartedEvent(e){this.eventSvc.dispatchEvent({type:"rowDataUpdateStarted",firstRowData:e!=null&&e.length?e[0]:null})}deselectNodes(e){var i;const t="rowDataChanged",r=this.beans.selectionSvc,n=e.length>0;n&&(r==null||r.setNodesSelected({newValue:!1,nodes:e,suppressFinishActions:!0,source:t})),(i=r==null?void 0:r.updateGroupsFromChildrenSelections)==null||i.call(r,t),n&&this.eventSvc.dispatchEvent({type:"selectionChanged",source:t})}sanitizeAddIndex(e){var r;const t=((r=this.rootNode.allLeafChildren)==null?void 0:r.length)??0;return e<0||e>=t||Number.isNaN(e)?t:Math.ceil(e)}createRowNode(e,t){const r=new da(this.beans);return r.parent=this.rootNode,r.level=0,r.group=!1,r.expanded=!1,r.sourceRowIndex=t,r.setDataAndId(e,String(this.nextId)),this.allNodesMap[r.id]&&we(2,{nodeId:r.id}),this.allNodesMap[r.id]=r,this.nextId++,r}lookupRowNode(e,t){var n,i;let r;if(e){const o=e({data:t,level:0});if(r=this.allNodesMap[o],!r)return Cr(4,{id:o}),null}else if(r=(i=(n=this.rootNode)==null?void 0:n.allLeafChildren)==null?void 0:i.find(o=>o.data===t),!r)return Cr(5,{data:t}),null;return r||null}},Xc=(e=>(e.Applied="Applied",e.StoreNotFound="StoreNotFound",e.StoreLoading="StoreLoading",e.StoreWaitingToLoad="StoreWaitingToLoad",e.StoreLoadingFailed="StoreLoadingFailed",e.StoreWrongType="StoreWrongType",e.Cancelled="Cancelled",e.StoreNotStarted="StoreNotStarted",e))(Xc||{}),sqe=class extends Je{constructor(){super(` `,[Tc]),this.eCheckbox=Ce}postConstruct(){this.eCheckbox.setPassive(!0)}getCheckboxId(){return this.eCheckbox.getInputElement().id}onDataChanged(){this.onSelectionChanged()}onSelectableChanged(){this.showOrHideSelect()}onSelectionChanged(){const e=this.getLocaleTextFunc(),{rowNode:t,eCheckbox:r}=this,n=t.isSelected(),i=s5(e,n),[o,s]=t.selectable?["ariaRowToggleSelection","Press Space to toggle row selection"]:["ariaRowSelectionDisabled","Row Selection is disabled for this row"],a=e(o,s);r.setValue(n,!0),r.setInputAriaLabel(`${a} (${i})`)}init(e){if(this.rowNode=e.rowNode,this.column=e.column,this.overrides=e.overrides,this.onSelectionChanged(),this.addManagedListeners(this.eCheckbox.getInputElement(),{dblclick:di,click:n=>{var i;di(n),(i=this.beans.selectionSvc)==null||i.handleSelectionEvent(n,this.rowNode,"checkboxSelected")}}),this.addManagedListeners(this.rowNode,{rowSelected:this.onSelectionChanged.bind(this),dataChanged:this.onDataChanged.bind(this),selectableChanged:this.onSelectableChanged.bind(this)}),this.addManagedPropertyListener("rowSelection",({currentValue:n,previousValue:i})=>{const o=typeof n=="object"?G2(n):void 0,s=typeof i=="object"?G2(i):void 0;o!==s&&this.onSelectableChanged()}),xV(this.gos)||typeof this.getIsVisible()=="function"){const n=this.showOrHideSelect.bind(this);this.addManagedEventListeners({displayedColumnsChanged:n}),this.addManagedListeners(this.rowNode,{dataChanged:n,cellChanged:n}),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")}showOrHideSelect(){const{column:e,rowNode:t,overrides:r,gos:n}=this;let i=t.selectable;const o=this.getIsVisible();if(i)if(typeof o=="function"){const l=r==null?void 0:r.callbackParams;if(!e)i=o({...l,node:t,data:t.data});else{const c=e.createColumnFunctionCallbackParams(t);i=o({...l,...c})}}else i=o??!1;const s=n.get("rowSelection");if(s&&typeof s!="string"?!G2(s):e==null?void 0:e.getColDef().showDisabledCheckboxes){this.eCheckbox.setDisabled(!i),this.setVisible(!0),this.setDisplayed(!0);return}if(r!=null&&r.removeHidden){this.setDisplayed(i);return}this.setVisible(i)}getIsVisible(){var r,n;const e=this.overrides;if(e)return e.isVisible;const t=this.gos.get("rowSelection");return t&&typeof t!="string"?$g(t):(n=(r=this.column)==null?void 0:r.getColDef())==null?void 0:n.checkboxSelection}},aqe=class{constructor(e){this.rootId=null,this.endId=null,this.cachedRange=[],this.rowModel=e}reset(){this.rootId=null,this.endId=null,this.cachedRange.length=0}setRoot(e){this.rootId=e.id,this.endId=null,this.cachedRange.length=0}setEndRange(e){this.endId=e.id,this.cachedRange.length=0}getRange(){if(this.cachedRange.length===0){const e=this.getRoot(),t=this.getEnd();if(e==null||t==null)return this.cachedRange;this.cachedRange=this.rowModel.getNodesInRangeForSelection(e,t)??[]}return this.cachedRange}isInRange(e){return this.rootId===null?!1:this.getRange().some(t=>t.id===e.id)}getRoot(){return this.rootId?this.rowModel.getRowNode(this.rootId)??null:null}getEnd(){return this.endId?this.rowModel.getRowNode(this.endId)??null:null}truncate(e){const t=this.getRange();if(t.length===0)return{keep:[],discard:[]};const r=t[0].id===this.rootId,n=t.findIndex(i=>i.id===e.id);if(n>-1){const i=t.slice(0,n),o=t.slice(n+1);return this.setEndRange(e),r?{keep:i,discard:o}:{keep:o,discard:i}}else return{keep:t,discard:[]}}extend(e,t=!1){const r=this.getRoot();if(r==null){const i=this.getRange().slice();return t&&e.depthFirstSearch(o=>!o.group&&i.push(o)),i.push(e),this.setRoot(e),{keep:i,discard:[]}}const n=this.rowModel.getNodesInRangeForSelection(r,e);if(!n)return this.setRoot(e),{keep:[e],discard:[]};if(n.find(i=>i.id===this.endId))return this.setEndRange(e),{keep:this.getRange(),discard:[]};{const i=this.getRange().slice();return this.setEndRange(e),{keep:this.getRange(),discard:i}}}},lqe=class extends xe{constructor(e){super(),this.column=e,this.cbSelectAllVisible=!1,this.processingEventFromCheckbox=!1}onSpaceKeyDown(e){const t=this.cbSelectAll;t.isDisplayed()&&!t.getGui().contains(Vr(this.beans))&&(e.preventDefault(),t.setValue(!t.getValue()))}getCheckboxGui(){return this.cbSelectAll.getGui()}setComp(e){this.headerCellCtrl=e;const t=this.createManagedBean(new Am);this.cbSelectAll=t,t.addCssClass("ag-header-select-all"),Un(t.getGui(),"presentation"),this.showOrHideSelectAll(),this.addManagedEventListeners({newColumnsLoaded:this.showOrHideSelectAll.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),selectionChanged:this.onSelectionChanged.bind(this),paginationChanged:this.onSelectionChanged.bind(this),modelUpdated:this.onModelChanged.bind(this)}),this.addManagedListeners(t,{fieldValueChanged:this.onCbSelectAll.bind(this)}),t.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()}onDisplayedColumnsChanged(){this.isAlive()&&this.showOrHideSelectAll()}showOrHideSelectAll(){const e=this.isCheckboxSelection();this.cbSelectAllVisible=e,this.cbSelectAll.setDisplayed(e),e&&(this.checkRightRowModelType("selectAllCheckbox"),this.checkSelectionType("selectAllCheckbox"),this.updateStateOfCheckbox()),this.refreshSelectAllLabel()}onModelChanged(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()}onSelectionChanged(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()}updateStateOfCheckbox(){if(this.processingEventFromCheckbox)return;this.processingEventFromCheckbox=!0;const e=this.getSelectAllMode(),t=this.beans.selectionSvc,r=this.cbSelectAll,n=t.getSelectAllState(e);r.setValue(n);const i=t.hasNodesToSelect(e);r.setDisabled(!i),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}refreshSelectAllLabel(){const e=this.getLocaleTextFunc(),{headerCellCtrl:t,cbSelectAll:r,cbSelectAllVisible:n}=this,o=r.getValue()?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),s=e("ariaRowSelectAll","Press Space to toggle all rows selection");t.setAriaDescriptionProperty("selectAll",n?`${s} (${o})`:null),r.setInputAriaLabel(e("ariaHeaderSelection","Column with Header Selection")),t.announceAriaDescription()}checkSelectionType(e){return Ap(this.gos)?!0:(we(128,{feature:e}),!1)}checkRightRowModelType(e){const{gos:t,rowModel:r}=this.beans;return En(t)||Ro(t)?!0:(we(129,{feature:e,rowModel:r.getType()}),!1)}onCbSelectAll(){if(this.processingEventFromCheckbox||!this.cbSelectAllVisible)return;const e=this.cbSelectAll.getValue(),t=this.getSelectAllMode();let r="uiSelectAll";t==="currentPage"?r="uiSelectAllCurrentPage":t==="filtered"&&(r="uiSelectAllFiltered");const n={source:r,selectAll:t},i=this.beans.selectionSvc;e?i.selectAllRowNodes(n):i.deselectAllRowNodes(n)}isCheckboxSelection(){var c;const{column:e,gos:t,beans:r}=this,n=t.get("rowSelection"),i=e.getColDef(),{headerCheckboxSelection:o}=i;let s=!1;const a=typeof n=="object";if(a){const u=lu(e),d=DA(e);(ZM(n)==="autoGroupColumn"&&d||u&&((c=r.selectionColSvc)!=null&&c.isSelectionColumnEnabled()))&&(s=TP(n))}else typeof o=="function"?s=o(t.addGridCommonParams({column:e,colDef:i})):s=!!o;const l=a?"headerCheckbox":"headerCheckboxSelection";return s&&this.checkRightRowModelType(l)&&this.checkSelectionType(l)}getSelectAllMode(){const e=Bpe(this.gos,!1);if(e)return e;const{headerCheckboxSelectionCurrentPageOnly:t,headerCheckboxSelectionFilteredOnly:r}=this.column.getColDef();return t?"currentPage":r?"filtered":"all"}},rge=class extends xe{postConstruct(){const{gos:e,beans:t}=this;this.selectionCtx=new aqe(t.rowModel),this.addManagedPropertyListeners(["isRowSelectable","rowSelection"],()=>{const r=xV(e);r!==this.isRowSelectable&&(this.isRowSelectable=r,this.updateSelectable())}),this.isRowSelectable=xV(e)}destroy(){super.destroy(),this.selectionCtx.reset()}createCheckboxSelectionComponent(){return new sqe}createSelectAllFeature(e){return new lqe(e)}isMultiSelect(){return Ap(this.gos)}onRowCtrlSelected(e,t,r){const n=!!e.rowNode.isSelected();e.forEachGui(r,i=>{i.rowComp.addOrRemoveCssClass("ag-row-selected",n);const o=i.element;_w(o,n),o.contains(Vr(this.beans))&&t(i)})}announceAriaRowSelection(e){var i;if(this.isRowSelectionBlocked(e))return;const t=e.isSelected();if(t&&!_Y(this.gos))return;const n=this.getLocaleTextFunc()(t?"ariaRowDeselect":"ariaRowSelect",`Press SPACE to ${t?"deselect":"select"} this row`);(i=this.beans.ariaAnnounce)==null||i.announceValue(n,"rowSelection")}dispatchSelectionChanged(e){this.eventSvc.dispatchEvent({type:"selectionChanged",source:e})}isRowSelectionBlocked(e){return!e.selectable||!!e.rowPinned||!Fa(this.gos)}updateRowSelectable(e,t){var n;const r=((n=this.isRowSelectable)==null?void 0:n.call(this,e))??!0;return this.setRowSelectable(e,r,t),r}setRowSelectable(e,t,r){if(e.selectable!==t){if(e.selectable=t,e.dispatchRowEvent("selectableChanged"),r)return;if(lm(this.gos)){const i=this.calculateSelectedFromChildren(e);this.setNodesSelected({nodes:[e],newValue:i??!1,source:"selectableChanged"});return}e.isSelected()&&!e.selectable&&this.setNodesSelected({nodes:[e],newValue:!1,source:"selectableChanged"})}}calculateSelectedFromChildren(e){var n;let t=!1,r=!1;if(!((n=e.childrenAfterGroup)!=null&&n.length))return e.selectable?e.__selected:null;for(let i=0;i{P5(r)&&r.key&&!e.test(r.key)&&r.preventDefault()};this.addManagedListeners(this.eInput,{keydown:t,paste:r=>{var i;const n=(i=r.clipboardData)==null?void 0:i.getData("text");n&&n.split("").some(o=>!e.test(o))&&r.preventDefault()}})}},Ll={selector:"AG-INPUT-TEXT-FIELD",component:Rc},hqe=class extends rp{constructor(e){super(e,"ag-text-area",null,"textarea")}setValue(e,t){const r=super.setValue(e,t);return this.eInput.value=e,r}setCols(e){return this.eInput.cols=e,this}setRows(e){return this.eInput.rows=e,this}},pqe={selector:"AG-INPUT-TEXT-AREA",component:hqe},kA=class extends Rc{constructor(e){super(e,"ag-number-field","number")}postConstruct(){super.postConstruct();const e=this.eInput;this.addManagedListeners(e,{blur:()=>{const o=parseFloat(e.value),s=isNaN(o)?"":this.normalizeValue(o.toString());this.value!==s&&this.setValue(s)},wheel:this.onWheel.bind(this)}),e.step="any";const{precision:t,min:r,max:n,step:i}=this.config;typeof t=="number"&&this.setPrecision(t),typeof r=="number"&&this.setMin(r),typeof n=="number"&&this.setMax(n),typeof i=="number"&&this.setStep(i)}onWheel(e){Vr(this.beans)===this.eInput&&e.preventDefault()}normalizeValue(e){if(e==="")return"";this.precision!=null&&(e=this.adjustPrecision(e));const t=parseFloat(e),{min:r,max:n}=this;return r!=null&&tn&&(e=n.toString()),e}adjustPrecision(e,t){const r=this.precision;if(r==null)return e;if(t){const i=parseFloat(e).toFixed(r);return parseFloat(i).toString()}const n=String(e).split(".");if(n.length>1){if(n[1].length<=r)return e;if(r>0)return`${n[0]}.${n[1].slice(0,r)}`}return n[0]}setMin(e){return this.min===e?this:(this.min=e,vl(this.eInput,"min",e),this)}setMax(e){return this.max===e?this:(this.max=e,vl(this.eInput,"max",e),this)}setPrecision(e){return this.precision=e,this}setStep(e){return this.step===e?this:(this.step=e,vl(this.eInput,"step",e),this)}setValue(e,t){return this.setValueOrInputValue(r=>super.setValue(r,t),()=>this,e)}setStartValue(e){return this.setValueOrInputValue(t=>super.setValue(t,!0),t=>{this.eInput.value=t},e)}setValueOrInputValue(e,t,r){if(Qe(r)){let n=this.isScientificNotation(r);if(n&&this.eInput.validity.valid)return e(r);if(!n){r=this.adjustPrecision(r);const i=this.normalizeValue(r);n=r!=i}if(n)return t(r)}return e(r)}getValue(){const e=this.eInput;if(!e.validity.valid)return;const t=e.value;return this.isScientificNotation(t)?this.adjustPrecision(t,!0):super.getValue()}isScientificNotation(e){return typeof e=="string"&&e.includes("e")}},OA={selector:"AG-INPUT-NUMBER-FIELD",component:kA};function US(e,t){return e.toString().padStart(t,"0")}function aa(e,t=!0,r="-"){if(!e)return null;let n=[e.getFullYear(),e.getMonth()+1,e.getDate()].map(i=>US(i,2)).join(r);return t&&(n+=" "+[e.getHours(),e.getMinutes(),e.getSeconds()].map(i=>US(i,2)).join(":")),n}var j2=e=>{if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"};function jS(e,t="YYYY-MM-DD"){const r=US(e.getFullYear(),4),n=["January","February","March","April","May","June","July","August","September","October","November","December"],i=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],o={YYYY:()=>r.slice(r.length-4,r.length),YY:()=>r.slice(r.length-2,r.length),Y:()=>`${e.getFullYear()}`,MMMM:()=>n[e.getMonth()],MMM:()=>n[e.getMonth()].slice(0,3),MM:()=>US(e.getMonth()+1,2),Mo:()=>`${e.getMonth()+1}${j2(e.getMonth()+1)}`,M:()=>`${e.getMonth()+1}`,Do:()=>`${e.getDate()}${j2(e.getDate())}`,DD:()=>US(e.getDate(),2),D:()=>`${e.getDate()}`,dddd:()=>i[e.getDay()],ddd:()=>i[e.getDay()].slice(0,3),dd:()=>i[e.getDay()].slice(0,2),do:()=>`${e.getDay()}${j2(e.getDay())}`,d:()=>`${e.getDay()}`},s=new RegExp(Object.keys(o).join("|"),"g");return t.replace(s,a=>a in o?o[a]():a)}function cs(e){if(!e)return null;const[t,r]=e.split(" ");if(!t)return null;const n=t.split("-").map(d=>parseInt(d,10));if(n.filter(d=>!isNaN(d)).length!==3)return null;const[i,o,s]=n,a=new Date(i,o-1,s);if(a.getFullYear()!==i||a.getMonth()!==o-1||a.getDate()!==s)return null;if(!r||r==="00:00:00")return a;const[l,c,u]=r.split(":").map(d=>parseInt(d,10));return l>=0&&l<24&&a.setHours(l),c>=0&&c<60&&a.setMinutes(c),u>=0&&u<60&&a.setSeconds(u),a}var nge=class extends Rc{constructor(e){super(e,"ag-date-field","date")}postConstruct(){super.postConstruct();const e=Im();this.addManagedListeners(this.eInput,{wheel:this.onWheel.bind(this),mousedown:()=>{this.isDisabled()||e||this.eInput.focus()}}),this.eInput.step="any"}onWheel(e){Vr(this.beans)===this.eInput&&e.preventDefault()}setMin(e){const t=e instanceof Date?aa(e??null,!1)??void 0:e;return this.min===t?this:(this.min=t,vl(this.eInput,"min",t),this)}setMax(e){const t=e instanceof Date?aa(e??null,!1)??void 0:e;return this.max===t?this:(this.max=t,vl(this.eInput,"max",t),this)}setStep(e){return this.step===e?this:(this.step=e,vl(this.eInput,"step",e),this)}getDate(){if(this.eInput.validity.valid)return cs(this.getValue())??void 0}setDate(e,t){this.setValue(aa(e??null,!1),t)}},ige={selector:"AG-INPUT-DATE-FIELD",component:nge},fqe=1e3,gqe=1e3,HY=100,WY,AT=!1,mqe=class extends xe{constructor(e,t){super(),this.tooltipCtrl=e,this.getTooltipValue=t,this.interactionEnabled=!1,this.isInteractingWithTooltip=!1,this.state=0,this.tooltipInstanceCount=0,this.tooltipMouseTrack=!1}wireBeans(e){this.popupSvc=e.popupSvc,this.userCompFactory=e.userCompFactory}postConstruct(){this.gos.get("tooltipInteraction")&&(this.interactionEnabled=!0),this.tooltipTrigger=this.getTooltipTrigger(),this.tooltipMouseTrack=this.gos.get("tooltipMouseTrack");const e=this.tooltipCtrl.getGui();this.tooltipTrigger===0&&this.addManagedListeners(e,{mouseenter:this.onMouseEnter.bind(this),mouseleave:this.onMouseLeave.bind(this)}),this.tooltipTrigger===1&&this.addManagedListeners(e,{focusin:this.onFocusIn.bind(this),focusout:this.onFocusOut.bind(this)}),this.addManagedListeners(e,{mousemove:this.onMouseMove.bind(this)}),this.interactionEnabled||this.addManagedListeners(e,{mousedown:this.onMouseDown.bind(this),keydown:this.onKeyDown.bind(this)})}getGridOptionsTooltipDelay(e){const t=this.gos.get(e);return Math.max(200,t)}getTooltipDelay(e){var t,r,n,i;return e==="show"?((r=(t=this.tooltipCtrl).getTooltipShowDelayOverride)==null?void 0:r.call(t))??this.getGridOptionsTooltipDelay("tooltipShowDelay"):((i=(n=this.tooltipCtrl).getTooltipHideDelayOverride)==null?void 0:i.call(n))??this.getGridOptionsTooltipDelay("tooltipHideDelay")}destroy(){this.setToDoNothing(),super.destroy()}getTooltipTrigger(){const e=this.gos.get("tooltipTrigger");return!e||e==="hover"?0:1}onMouseEnter(e){this.interactionEnabled&&this.interactiveTooltipTimeoutId&&(this.unlockService(),this.startHideTimeout()),!fp()&&(AT?this.showTooltipTimeoutId=window.setTimeout(()=>{this.prepareToShowTooltip(e)},HY):this.prepareToShowTooltip(e))}onMouseMove(e){this.lastMouseEvent&&(this.lastMouseEvent=e),this.tooltipMouseTrack&&this.state===2&&this.tooltipComp&&this.positionTooltip()}onMouseDown(){this.setToDoNothing()}onMouseLeave(){this.interactionEnabled?this.lockService():this.setToDoNothing()}onFocusIn(){this.prepareToShowTooltip()}onFocusOut(e){var i;const t=e.relatedTarget,r=this.tooltipCtrl.getGui(),n=(i=this.tooltipComp)==null?void 0:i.getGui();this.isInteractingWithTooltip||r.contains(t)||this.interactionEnabled&&(n!=null&&n.contains(t))||this.setToDoNothing()}onKeyDown(){this.isInteractingWithTooltip&&(this.isInteractingWithTooltip=!1),this.setToDoNothing()}prepareToShowTooltip(e){if(this.state!=0||AT)return;let t=0;e&&(t=this.isLastTooltipHiddenRecently()?200:this.getTooltipDelay("show")),this.lastMouseEvent=e||null,this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),t),this.state=1}isLastTooltipHiddenRecently(){return new Date().getTime()-WYthis.hideTooltip(!0),...((h=t.getAdditionalParams)==null?void 0:h.call(t))??{}};this.state=2,this.tooltipInstanceCount++;const i=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount),o=Dje(this.userCompFactory,n);o==null||o.newAgStackInstance().then(i)}hideTooltip(e){!e&&this.isInteractingWithTooltip||(this.tooltipComp&&(this.destroyTooltipComp(),WY=new Date().getTime()),this.eventSvc.dispatchEvent({type:"tooltipHide",parentGui:this.tooltipCtrl.getGui()}),e&&(this.isInteractingWithTooltip=!1),this.setToDoNothing(!0))}newTooltipComponentCallback(e,t){var s;if(this.state!==2||this.tooltipInstanceCount!==e){this.destroyBean(t);return}const n=t.getGui();this.tooltipComp=t,n.classList.contains("ag-tooltip")||n.classList.add("ag-tooltip-custom"),this.tooltipTrigger===0&&n.classList.add("ag-tooltip-animate"),this.interactionEnabled&&n.classList.add("ag-tooltip-interactive");const i=this.getLocaleTextFunc(),o=(s=this.popupSvc)==null?void 0:s.addPopup({eChild:n,ariaLabel:i("ariaLabelTooltip","Tooltip")});if(o&&(this.tooltipPopupDestroyFunc=o.hideFunc),this.positionTooltip(),this.tooltipTrigger===1){const a=()=>this.setToDoNothing();[this.onBodyScrollEventCallback,this.onColumnMovedEventCallback]=this.addManagedEventListeners({bodyScroll:a,columnMoved:a})}this.interactionEnabled&&([this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener]=this.addManagedElementListeners(n,{mouseenter:this.onTooltipMouseEnter.bind(this),mouseleave:this.onTooltipMouseLeave.bind(this)}),[this.onDocumentKeyDownCallback]=this.addManagedElementListeners(pn(this.beans),{keydown:a=>{n.contains(a==null?void 0:a.target)||this.onKeyDown()}}),this.tooltipTrigger===1&&([this.tooltipFocusInListener,this.tooltipFocusOutListener]=this.addManagedElementListeners(n,{focusin:this.onTooltipFocusIn.bind(this),focusout:this.onTooltipFocusOut.bind(this)}))),this.eventSvc.dispatchEvent({type:"tooltipShow",tooltipGui:n,parentGui:this.tooltipCtrl.getGui()}),this.startHideTimeout()}onTooltipMouseEnter(){this.isInteractingWithTooltip=!0,this.unlockService()}onTooltipMouseLeave(){this.isTooltipFocused()||(this.isInteractingWithTooltip=!1,this.lockService())}onTooltipFocusIn(){this.isInteractingWithTooltip=!0}isTooltipFocused(){var r;const e=(r=this.tooltipComp)==null?void 0:r.getGui(),t=Vr(this.beans);return!!e&&e.contains(t)}onTooltipFocusOut(e){const t=this.tooltipCtrl.getGui();this.isTooltipFocused()||(this.isInteractingWithTooltip=!1,t.contains(e.relatedTarget)?this.startHideTimeout():this.hideTooltip())}positionTooltip(){var t,r;const e={type:"tooltip",ePopup:this.tooltipComp.getGui(),nudgeY:18,skipObserver:this.tooltipMouseTrack};this.lastMouseEvent?(t=this.popupSvc)==null||t.positionPopupUnderMouseEvent({...e,mouseEvent:this.lastMouseEvent}):(r=this.popupSvc)==null||r.positionPopupByComponent({...e,eventSource:this.tooltipCtrl.getGui(),position:"under",keepWithinBounds:!0,nudgeY:5})}destroyTooltipComp(){this.tooltipComp.getGui().classList.add("ag-tooltip-hiding");const e=this.tooltipPopupDestroyFunc,t=this.tooltipComp,r=this.tooltipTrigger===0?gqe:0;window.setTimeout(()=>{e(),this.destroyBean(t)},r),this.clearTooltipListeners(),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0}clearTooltipListeners(){[this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener,this.tooltipFocusInListener,this.tooltipFocusOutListener].forEach(e=>{e&&e()}),this.tooltipMouseEnterListener=this.tooltipMouseLeaveListener=this.tooltipFocusInListener=this.tooltipFocusOutListener=null}lockService(){AT=!0,this.interactiveTooltipTimeoutId=window.setTimeout(()=>{this.unlockService(),this.setToDoNothing()},HY)}unlockService(){AT=!1,this.clearInteractiveTimeout()}startHideTimeout(){this.clearHideTimeout(),this.hideTooltipTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.getTooltipDelay("hide"))}clearShowTimeout(){this.showTooltipTimeoutId&&(window.clearTimeout(this.showTooltipTimeoutId),this.showTooltipTimeoutId=void 0)}clearHideTimeout(){this.hideTooltipTimeoutId&&(window.clearTimeout(this.hideTooltipTimeoutId),this.hideTooltipTimeoutId=void 0)}clearInteractiveTimeout(){this.interactiveTooltipTimeoutId&&(window.clearTimeout(this.interactiveTooltipTimeoutId),this.interactiveTooltipTimeoutId=void 0)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout(),this.clearInteractiveTimeout()}};function KS(e){return e.get("tooltipShowMode")==="whenTruncated"}function NA(e,t){return KS(e)?zg(t):void 0}function zg(e){return()=>{const t=e();return t?t.scrollWidth>t.clientWidth:!0}}var vqe=class extends xe{constructor(e,t){super(),this.ctrl=e,t&&(this.beans=t)}postConstruct(){this.refreshTooltip()}setBrowserTooltip(e){const t="title",r=this.ctrl.getGui();r&&(e!=null&&e!=""?r.setAttribute(t,e):r.removeAttribute(t))}updateTooltipText(){const{getTooltipValue:e}=this.ctrl;e&&(this.tooltip=e())}createTooltipFeatureIfNeeded(){this.tooltipManager==null&&(this.tooltipManager=this.createBean(new mqe(this.ctrl,()=>this.tooltip),this.beans.context))}setTooltipAndRefresh(e){this.tooltip=e,this.refreshTooltip()}refreshTooltip(){this.browserTooltips=this.beans.gos.get("enableBrowserTooltips"),this.updateTooltipText(),this.browserTooltips?(this.setBrowserTooltip(this.tooltip),this.tooltipManager=this.destroyBean(this.tooltipManager,this.beans.context)):(this.setBrowserTooltip(null),this.createTooltipFeatureIfNeeded())}destroy(){this.tooltipManager=this.destroyBean(this.tooltipManager,this.beans.context),super.destroy()}},yqe=class extends Je{constructor(e="default",t=!1){super(`
`),this.cssIdentifier=e,this.unFocusable=t,this.activeClass="ag-active-item",this.options=[],this.itemEls=[]}postConstruct(){const e=this.getGui();this.addManagedElementListeners(e,{mouseleave:()=>this.clearHighlighted()}),!this.unFocusable&&this.addManagedElementListeners(e,{keydown:this.handleKeyDown.bind(this)})}handleKeyDown(e){const t=e.key;switch(t){case ge.ENTER:if(!this.highlightedEl)this.setValue(this.getValue());else{const r=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(r)}break;case ge.DOWN:case ge.UP:e.preventDefault(),this.navigate(t);break;case ge.PAGE_DOWN:case ge.PAGE_UP:case ge.PAGE_HOME:case ge.PAGE_END:e.preventDefault(),this.navigateToPage(t);break}}navigate(e){const t=e===ge.DOWN;let r;const{itemEls:n,highlightedEl:i}=this;if(!i)r=n[t?0:n.length-1];else{let s=n.indexOf(i)+(t?1:-1);s=Math.min(Math.max(s,0),n.length-1),r=n[s]}this.highlightItem(r)}navigateToPage(e){const{itemEls:t,highlightedEl:r}=this;if(!r||t.length===0)return;const n=t.indexOf(r),i=this.options.length-1,o=t[0].clientHeight,s=Math.floor(this.getGui().clientHeight/o);let a=-1;e===ge.PAGE_HOME?a=0:e===ge.PAGE_END?a=i:e===ge.PAGE_DOWN?a=Math.min(n+s,i):e===ge.PAGE_UP&&(a=Math.max(n-s,0)),a!==-1&&this.highlightItem(t[a])}addOptions(e){return e.forEach(t=>this.addOption(t)),this}addOption(e){const{value:t,text:r}=e,n=r||t;return this.options.push({value:t,text:n}),this.renderOption(t,n),this.updateIndices(),this}clearOptions(){this.options=[],this.reset(!0),this.itemEls.forEach(e=>{ai(e)}),this.itemEls=[]}updateIndices(){const e=this.getGui().querySelectorAll(".ag-list-item");e.forEach((t,r)=>{SA(t,r+1),bA(t,e.length)})}renderOption(e,t){const r=pn(this.beans),n=r.createElement("div");Un(n,"option"),n.classList.add("ag-list-item",`ag-${this.cssIdentifier}-list-item`);const i=r.createElement("span");n.appendChild(i),i.textContent=t,this.unFocusable||(n.tabIndex=-1),this.itemEls.push(n),this.addManagedListeners(n,{mouseover:()=>this.highlightItem(n),mousedown:o=>{o.preventDefault(),o.stopPropagation(),this.setValue(e)}}),this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{getTooltipValue:()=>t,getGui:()=>n,getLocation:()=>"UNKNOWN",shouldDisplayTooltip:()=>i.scrollWidth>i.clientWidth})),this.getGui().appendChild(n)}setValue(e,t){if(this.value===e)return this.fireItemSelected(),this;if(e==null)return this.reset(t),this;const r=this.options.findIndex(n=>n.value===e);if(r!==-1){const n=this.options[r];this.value=n.value,this.displayValue=n.text,this.highlightItem(this.itemEls[r]),t||this.fireChangeEvent()}return this}setValueByIndex(e){return this.setValue(this.options[e].value)}getValue(){return this.value}getDisplayValue(){return this.displayValue}refreshHighlighted(){this.clearHighlighted();const e=this.options.findIndex(t=>t.value===this.value);e!==-1&&this.highlightItem(this.itemEls[e])}reset(e){this.value=null,this.displayValue=null,this.clearHighlighted(),e||this.fireChangeEvent()}highlightItem(e){if(!ps(e))return;this.clearHighlighted(),this.highlightedEl=e,e.classList.add(this.activeClass),_w(e,!0);const t=this.getGui(),{scrollTop:r,clientHeight:n}=t,{offsetTop:i,offsetHeight:o}=e;(i+o>r+n||i
`,(e==null?void 0:e.agComponents)||[],e==null?void 0:e.className),this.isPickerDisplayed=!1,this.skipClick=!1,this.pickerGap=4,this.hideCurrentPicker=null,this.eLabel=Ce,this.eWrapper=Ce,this.eDisplayField=Ce,this.eIcon=Ce,this.registerCSS(Cqe),this.ariaRole=e==null?void 0:e.ariaRole,this.onPickerFocusIn=this.onPickerFocusIn.bind(this),this.onPickerFocusOut=this.onPickerFocusOut.bind(this),!e)return;const{pickerGap:t,maxPickerHeight:r,variableWidth:n,minPickerWidth:i,maxPickerWidth:o}=e;t!=null&&(this.pickerGap=t),this.variableWidth=!!n,r!=null&&this.setPickerMaxHeight(r),i!=null&&this.setPickerMinWidth(i),o!=null&&this.setPickerMaxWidth(o)}postConstruct(){super.postConstruct(),this.setupAria();const e=`ag-${this.getCompId()}-display`;this.eDisplayField.setAttribute("id",e);const t=this.getAriaElement();this.addManagedElementListeners(t,{keydown:this.onKeyDown.bind(this)}),this.addManagedElementListeners(this.eLabel,{mousedown:this.onLabelOrWrapperMouseDown.bind(this)}),this.addManagedElementListeners(this.eWrapper,{mousedown:this.onLabelOrWrapperMouseDown.bind(this)});const{pickerIcon:r,inputWidth:n}=this.config;if(r){const i=Ht(r,this.beans);i&&this.eIcon.appendChild(i)}n!=null&&this.setInputWidth(n)}setupAria(){const e=this.getAriaElement();e.setAttribute("tabindex",this.gos.get("tabIndex").toString()),Ds(e,!1),this.ariaRole&&Un(e,this.ariaRole)}onLabelOrWrapperMouseDown(e){if(e){const t=this.getFocusableElement();if(t!==this.eWrapper&&(e==null?void 0:e.target)===t)return;e.preventDefault(),this.getFocusableElement().focus()}if(this.skipClick){this.skipClick=!1;return}this.isDisabled()||(this.isPickerDisplayed?this.hidePicker():this.showPicker())}onKeyDown(e){switch(e.key){case ge.UP:case ge.DOWN:case ge.ENTER:case ge.SPACE:e.preventDefault(),this.onLabelOrWrapperMouseDown();break;case ge.ESCAPE:this.isPickerDisplayed&&(e.preventDefault(),e.stopPropagation(),this.hideCurrentPicker&&this.hideCurrentPicker());break}}showPicker(){this.isPickerDisplayed=!0,this.pickerComponent||(this.pickerComponent=this.createPickerComponent());const e=this.pickerComponent.getGui();e.addEventListener("focusin",this.onPickerFocusIn),e.addEventListener("focusout",this.onPickerFocusOut),this.hideCurrentPicker=this.renderAndPositionPicker(),this.toggleExpandedStyles(!0)}renderAndPositionPicker(){const e=this.pickerComponent.getGui();this.gos.get("suppressScrollWhenPopupsAreOpen")||([this.destroyMouseWheelFunc]=this.addManagedEventListeners({bodyScroll:()=>{this.hidePicker()}}));const t=this.getLocaleTextFunc(),{config:{pickerAriaLabelKey:r,pickerAriaLabelValue:n,modalPicker:i=!0},maxPickerHeight:o,minPickerWidth:s,maxPickerWidth:a,variableWidth:l,beans:c,eWrapper:u}=this,d={modal:i,eChild:e,closeOnEsc:!0,closedCallback:()=>{const g=Dp(c);this.beforeHidePicker(),g&&this.isAlive()&&this.getFocusableElement().focus()},ariaLabel:t(r,n),anchorToElement:u};e.style.position="absolute";const h=c.popupSvc,p=h.addPopup(d);l?(s&&(e.style.minWidth=s),e.style.width=l5(sm(u)),a&&(e.style.maxWidth=a)):qM(e,a??sm(u));const f=o??`${wA(h.getPopupParent())}px`;return e.style.setProperty("max-height",f),this.alignPickerToComponent(),p.hideFunc}alignPickerToComponent(){if(!this.pickerComponent)return;const{pickerGap:e,config:{pickerType:t},beans:{popupSvc:r,gos:n},eWrapper:i,pickerComponent:o}=this,s=n.get("enableRtl")?"right":"left";r.positionPopupByComponent({type:t,eventSource:i,ePopup:o.getGui(),position:"under",alignSide:s,keepWithinBounds:!0,nudgeY:e})}beforeHidePicker(){this.destroyMouseWheelFunc&&(this.destroyMouseWheelFunc(),this.destroyMouseWheelFunc=void 0),this.toggleExpandedStyles(!1);const e=this.pickerComponent.getGui();e.removeEventListener("focusin",this.onPickerFocusIn),e.removeEventListener("focusout",this.onPickerFocusOut),this.isPickerDisplayed=!1,this.pickerComponent=void 0,this.hideCurrentPicker=null}toggleExpandedStyles(e){if(!this.isAlive())return;const t=this.getAriaElement();Ds(t,e);const r=this.eWrapper.classList;r.toggle("ag-picker-expanded",e),r.toggle("ag-picker-collapsed",!e)}onPickerFocusIn(){this.togglePickerHasFocus(!0)}onPickerFocusOut(e){var t;(t=this.pickerComponent)!=null&&t.getGui().contains(e.relatedTarget)||this.togglePickerHasFocus(!1)}togglePickerHasFocus(e){this.pickerComponent&&this.eWrapper.classList.toggle("ag-picker-has-focus",e)}hidePicker(){var e;(e=this.hideCurrentPicker)==null||e.call(this)}setInputWidth(e){return qM(this.eWrapper,e),this}getFocusableElement(){return this.eWrapper}setPickerGap(e){return this.pickerGap=e,this}setPickerMinWidth(e){return typeof e=="number"&&(e=`${e}px`),this.minPickerWidth=e??void 0,this}setPickerMaxWidth(e){return typeof e=="number"&&(e=`${e}px`),this.maxPickerWidth=e??void 0,this}setPickerMaxHeight(e){return typeof e=="number"&&(e=`${e}px`),this.maxPickerHeight=e??void 0,this}destroy(){this.hidePicker(),super.destroy()}},bqe=".ag-select{align-items:center;display:flex;&.ag-disabled{opacity:.5}}:where(.ag-select){.ag-picker-field-wrapper{cursor:default}&.ag-disabled .ag-picker-field-wrapper:focus{box-shadow:none}&:not(.ag-cell-editor,.ag-label-align-top){min-height:var(--ag-list-item-height)}.ag-picker-field-display{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-picker-field-icon{align-items:center;display:flex}}:where(.ag-ltr) :where(.ag-select){.ag-picker-field-wrapper{padding-left:calc(var(--ag-cell-horizontal-padding)/2);padding-right:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-select){.ag-picker-field-wrapper{padding-left:var(--ag-spacing);padding-right:calc(var(--ag-cell-horizontal-padding)/2)}}",Ms=class extends k5{constructor(e){super({pickerAriaLabelKey:"ariaLabelSelectField",pickerAriaLabelValue:"Select Field",pickerType:"ag-list",className:"ag-select",pickerIcon:"selectOpen",ariaRole:"combobox",...e}),this.registerCSS(bqe)}postConstruct(){this.tooltipFeature=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{shouldDisplayTooltip:zg(()=>this.eDisplayField),getGui:()=>this.getGui()})),super.postConstruct(),this.createListComponent(),this.eWrapper.tabIndex=this.gos.get("tabIndex");const{options:e,value:t,placeholder:r}=this.config;e!=null&&this.addOptions(e),t!=null&&this.setValue(t,!0),r&&t==null&&(this.eDisplayField.textContent=r),this.addManagedElementListeners(this.eWrapper,{focusout:this.onWrapperFocusOut.bind(this)})}onWrapperFocusOut(e){this.eWrapper.contains(e.relatedTarget)||this.hidePicker()}createListComponent(){const e=this.createBean(new yqe("select",!0));this.listComponent=e,e.setParentComponent(this);const t=e.getAriaElement(),r=`ag-select-list-${e.getCompId()}`;t.setAttribute("id",r),o5(this.getAriaElement(),t),e.addManagedListeners(e,{selectedItem:()=>{this.hidePicker(),this.dispatchLocalEvent({type:"selectedItem"})}}),e.addManagedListeners(e,{fieldValueChanged:()=>{this.listComponent&&(this.setValue(this.listComponent.getValue(),!1,!0),this.hidePicker())}})}createPickerComponent(){return this.listComponent}onKeyDown(e){var r;const{key:t}=e;switch(t===ge.TAB&&this.hidePicker(),t){case ge.ENTER:case ge.UP:case ge.DOWN:case ge.PAGE_UP:case ge.PAGE_DOWN:case ge.PAGE_HOME:case ge.PAGE_END:e.preventDefault(),this.isPickerDisplayed?(r=this.listComponent)==null||r.handleKeyDown(e):super.onKeyDown(e);break;case ge.ESCAPE:super.onKeyDown(e);break;case ge.SPACE:this.isPickerDisplayed?e.preventDefault():super.onKeyDown(e);break}}showPicker(){const e=this.listComponent;e&&(super.showPicker(),e.refreshHighlighted())}addOptions(e){return e.forEach(t=>this.addOption(t)),this}addOption(e){return this.listComponent.addOption(e),this}clearOptions(){var e;return(e=this.listComponent)==null||e.clearOptions(),this}setValue(e,t,r){const{listComponent:n,config:{placeholder:i},eDisplayField:o,tooltipFeature:s}=this;if(this.value===e||!n)return this;if(r||n.setValue(e,!0),n.getValue()===this.getValue())return this;let l=n.getDisplayValue();return l==null&&i&&(l=i),o.textContent=l,s==null||s.setTooltipAndRefresh(l??null),super.setValue(e,t)}destroy(){this.listComponent=this.destroyBean(this.listComponent),super.destroy()}},h1={selector:"AG-SELECT",component:Ms},Hg={TAB_GUARD:"ag-tab-guard",TAB_GUARD_TOP:"ag-tab-guard-top",TAB_GUARD_BOTTOM:"ag-tab-guard-bottom"},oge=class extends xe{constructor(e){super(),this.skipTabGuardFocus=!1,this.forcingFocusOut=!1,this.allowFocus=!1;const{comp:t,eTopGuard:r,eBottomGuard:n,focusTrapActive:i,forceFocusOutWhenTabGuardsAreEmpty:o,isFocusableContainer:s,focusInnerElement:a,onFocusIn:l,onFocusOut:c,shouldStopEventPropagation:u,onTabKeyDown:d,handleKeyDown:h,eFocusableElement:p}=e;this.comp=t,this.eTopGuard=r,this.eBottomGuard=n,this.providedFocusInnerElement=a,this.eFocusableElement=p,this.focusTrapActive=!!i,this.forceFocusOutWhenTabGuardsAreEmpty=!!o,this.isFocusableContainer=!!s,this.providedFocusIn=l,this.providedFocusOut=c,this.providedShouldStopEventPropagation=u,this.providedOnTabKeyDown=d,this.providedHandleKeyDown=h}postConstruct(){this.createManagedBean(new qp(this.eFocusableElement,{shouldStopEventPropagation:()=>this.shouldStopEventPropagation(),onTabKeyDown:e=>this.onTabKeyDown(e),handleKeyDown:e=>this.handleKeyDown(e),onFocusIn:e=>this.onFocusIn(e),onFocusOut:e=>this.onFocusOut(e)})),this.activateTabGuards(),[this.eTopGuard,this.eBottomGuard].forEach(e=>this.addManagedElementListeners(e,{focus:this.onFocus.bind(this)}))}handleKeyDown(e){this.providedHandleKeyDown&&this.providedHandleKeyDown(e)}tabGuardsAreActive(){return!!this.eTopGuard&&this.eTopGuard.hasAttribute("tabIndex")}shouldStopEventPropagation(){return this.providedShouldStopEventPropagation?this.providedShouldStopEventPropagation():!1}activateTabGuards(){if(this.forcingFocusOut)return;const e=this.gos.get("tabIndex");this.comp.setTabIndex(e.toString())}deactivateTabGuards(){this.comp.setTabIndex()}onFocus(e){if(this.isFocusableContainer&&!this.eFocusableElement.contains(e.relatedTarget)&&!this.allowFocus){this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard);return}if(this.skipTabGuardFocus){this.skipTabGuardFocus=!1;return}if(this.forceFocusOutWhenTabGuardsAreEmpty&&ac(this.eFocusableElement,".ag-tab-guard").length===0){this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard);return}if(this.isFocusableContainer&&this.eFocusableElement.contains(e.relatedTarget))return;const t=e.target===this.eBottomGuard;this.providedFocusInnerElement?this.providedFocusInnerElement(t):this.focusInnerElement(t)}findNextElementOutsideAndFocus(e){var l;const t=pn(this.beans),r=ac(t.body,null,!0),n=r.indexOf(e?this.eTopGuard:this.eBottomGuard);if(n===-1)return;let i,o;e?(i=0,o=n):(i=n+1,o=r.length);const s=r.slice(i,o),a=this.gos.get("tabIndex");s.sort((c,u)=>{const d=parseInt(c.getAttribute("tabindex")||"0"),h=parseInt(u.getAttribute("tabindex")||"0");return h===a?1:d===a?-1:d===0?1:h===0?-1:d-h}),(l=s[e?s.length-1:0])==null||l.focus()}onFocusIn(e){this.focusTrapActive||this.forcingFocusOut||(this.providedFocusIn&&this.providedFocusIn(e),this.isFocusableContainer||this.deactivateTabGuards())}onFocusOut(e){this.focusTrapActive||(this.providedFocusOut&&this.providedFocusOut(e),this.eFocusableElement.contains(e.relatedTarget)||this.activateTabGuards())}onTabKeyDown(e){if(this.providedOnTabKeyDown){this.providedOnTabKeyDown(e);return}if(this.focusTrapActive||e.defaultPrevented)return;const t=this.tabGuardsAreActive();t&&this.deactivateTabGuards();const r=this.getNextFocusableElement(e.shiftKey);t&&setTimeout(()=>this.activateTabGuards(),0),r&&(r.focus(),e.preventDefault())}focusInnerElement(e=!1){const t=ac(this.eFocusableElement);this.tabGuardsAreActive()&&(t.splice(0,1),t.splice(t.length-1,1)),t.length&&t[e?t.length-1:0].focus({preventScroll:!0})}getNextFocusableElement(e){return No(this.beans,this.eFocusableElement,!1,e)}forceFocusOutOfContainer(e=!1){if(this.forcingFocusOut)return;const t=e?this.eTopGuard:this.eBottomGuard;this.activateTabGuards(),this.skipTabGuardFocus=!0,this.forcingFocusOut=!0,t.focus(),window.setTimeout(()=>{this.forcingFocusOut=!1,this.activateTabGuards()})}isTabGuard(e,t){return e===this.eTopGuard&&!t||e===this.eBottomGuard&&(t??!0)}setAllowFocus(e){this.allowFocus=e}},sge=class extends xe{constructor(e){super(),this.comp=e}initialiseTabGuard(e){this.eTopGuard=this.createTabGuard("top"),this.eBottomGuard=this.createTabGuard("bottom"),this.eFocusableElement=this.comp.getFocusableElement();const{eTopGuard:t,eBottomGuard:r,eFocusableElement:n}=this,i=[t,r],o={setTabIndex:g=>{i.forEach(m=>g!=null?m.setAttribute("tabindex",g):m.removeAttribute("tabindex"))}};this.addTabGuards(t,r);const{focusTrapActive:s=!1,onFocusIn:a,onFocusOut:l,focusInnerElement:c,handleKeyDown:u,onTabKeyDown:d,shouldStopEventPropagation:h,forceFocusOutWhenTabGuardsAreEmpty:p,isFocusableContainer:f}=e;this.tabGuardCtrl=this.createManagedBean(new oge({comp:o,focusTrapActive:s,eTopGuard:t,eBottomGuard:r,eFocusableElement:n,onFocusIn:a,onFocusOut:l,focusInnerElement:c,handleKeyDown:u,onTabKeyDown:d,shouldStopEventPropagation:h,forceFocusOutWhenTabGuardsAreEmpty:p,isFocusableContainer:f}))}getTabGuardCtrl(){return this.tabGuardCtrl}createTabGuard(e){const t=pn(this.beans).createElement("div"),r=e==="top"?Hg.TAB_GUARD_TOP:Hg.TAB_GUARD_BOTTOM;return t.classList.add(Hg.TAB_GUARD,r),Un(t,"presentation"),t}addTabGuards(e,t){const r=this.eFocusableElement;r.insertAdjacentElement("afterbegin",e),r.insertAdjacentElement("beforeend",t)}removeAllChildrenExceptTabGuards(){const e=[this.eTopGuard,this.eBottomGuard];Jr(this.comp.getFocusableElement()),this.addTabGuards(...e)}forceFocusOutOfContainer(e=!1){this.tabGuardCtrl.forceFocusOutOfContainer(e)}appendChild(e,t,r){EA(t)||(t=t.getGui());const{eBottomGuard:n}=this;n?n.insertAdjacentElement("beforebegin",t):e(t,r)}},Au=class extends Je{initialiseTabGuard(t){this.tabGuardFeature=this.createManagedBean(new sge(this)),this.tabGuardFeature.initialiseTabGuard(t)}forceFocusOutOfContainer(t=!1){this.tabGuardFeature.forceFocusOutOfContainer(t)}appendChild(t,r){this.tabGuardFeature.appendChild(super.appendChild.bind(this),t,r)}},Xp=class extends Je{isPopup(){return!0}setParentComponent(e){e.addCssClass("ag-has-popup"),super.setParentComponent(e)}destroy(){const e=this.parentComponent;e&&e.isAlive()&&e.getGui().classList.remove("ag-has-popup"),super.destroy()}},Qh=class{constructor(e,t=!1){this.DOUBLE_TAP_MILLIS=500,this.destroyFuncs=[],this.touching=!1,this.localEventService=new Kp,this.preventMouseClick=t;const r=this.onTouchStart.bind(this),n=this.onTouchMove.bind(this),i=this.onTouchEnd.bind(this);e.addEventListener("touchstart",r,{passive:!0}),e.addEventListener("touchmove",n,{passive:!0}),e.addEventListener("touchend",i,{passive:!1}),this.destroyFuncs.push(()=>{e.removeEventListener("touchstart",r,{passive:!0}),e.removeEventListener("touchmove",n,{passive:!0}),e.removeEventListener("touchend",i,{passive:!1})})}getActiveTouch(e){for(let t=0;t{const r=this.touchStart===t;if(this.touching&&r&&!this.moved){this.moved=!0;const n={type:"longTap",touchStart:this.touchStart,touchEvent:e};this.localEventService.dispatchEvent(n)}},500)}onTouchMove(e){if(!this.touching)return;const t=this.getActiveTouch(e.touches);if(!t)return;!Ife(t,this.touchStart,4)&&(this.moved=!0)}onTouchEnd(e){if(this.touching){if(!this.moved){const t={type:"tap",touchStart:this.touchStart};this.localEventService.dispatchEvent(t),this.checkForDoubleTap()}this.preventMouseClick&&e.cancelable&&e.preventDefault(),this.touching=!1}}checkForDoubleTap(){const e=new Date().getTime();if(this.lastTapTime&&this.lastTapTime>0)if(e-this.lastTapTime>this.DOUBLE_TAP_MILLIS){const r={type:"doubleTap",touchStart:this.touchStart};this.localEventService.dispatchEvent(r),this.lastTapTime=null}else this.lastTapTime=e;else this.lastTapTime=e}destroy(){this.destroyFuncs.forEach(e=>e())}},pl=(e=>(e[e.VALUE=0]="VALUE",e[e.DIMENSION=1]="DIMENSION",e))(pl||{}),age=class{constructor(e="javascript"){this.frameworkName=e,this.renderingEngine="vanilla",this.wrapIncoming=t=>t(),this.wrapOutgoing=t=>t(),this.baseDocLink=`${Rpe}/${this.frameworkName}-data-grid`,cUe(this.baseDocLink)}setInterval(e,t){return new lr(r=>{r(window.setInterval(e,t))})}addEventListener(e,t,r,n){let i={};if(typeof n=="object"?i=n:typeof n=="boolean"&&(i={capture:n}),i.passive==null){const o=Wpe(t);o!=null&&(i.passive=o)}e.addEventListener(t,r,i)}frameworkComponent(e){return null}isFrameworkComponent(e){return!1}getDocLink(e){return`${this.baseDocLink}${e?`/${e}`:""}`}};function Sqe(e){return{beanName:"gridApi",bean:e.getBean("apiFunctionSvc").api}}var wqe=["licenseManager","environment","eventSvc","gos","paginationAutoPageSizeSvc","apiFunctionSvc","gridApi","registry","agCompUtils","userCompFactory","rowContainerHeight","horizontalResizeSvc","localeSvc","pinnedRowModel","dragSvc","colGroupSvc","visibleCols","popupSvc","selectionSvc","colFilter","quickFilter","filterManager","colModel","headerNavigation","pageBounds","pagination","pageBoundsListener","stickyRowSvc","rowRenderer","expressionSvc","alignedGridsSvc","navigation","valueCache","valueSvc","autoWidthCalc","filterMenuFactory","dragAndDrop","focusSvc","cellNavigation","cellStyles","scrollVisibleSvc","sortSvc","colHover","colAnimation","autoColSvc","selectionColSvc","changeDetectionSvc","animationFrameSvc","undoRedo","colDefFactory","rowStyleSvc","rowNodeBlockLoader","rowNodeSorter","ctrlsSvc","pinnedCols","dataTypeSvc","syncSvc","overlays","stateSvc","expansionSvc","apiEventSvc","ariaAnnounce","menuSvc","colMoves","colAutosize","colFlex","colResize","pivotColsSvc","valueColsSvc","rowGroupColsSvc","funcColsSvc","colNames","colViewport","pivotResultCols","showRowGroupCols","validation"],UY=Object.fromEntries(wqe.map((e,t)=>[e,t]));function xqe(e,t){const r=(e.beanName?UY[e.beanName]:void 0)??Number.MAX_SAFE_INTEGER,n=(t.beanName?UY[t.beanName]:void 0)??Number.MAX_SAFE_INTEGER;return r-n}function Eqe(e,t){return(e==null?void 0:e.beanName)==="gridDestroySvc"?-1:0}var Tqe='
',Rqe='
',Pqe=``,K2=class extends Je{constructor(t){super(),this.eCenterContainer=Ce,this.headerRowComps={},this.rowCompsList=[],this.pinned=t}postConstruct(){this.selectAndSetTemplate();const t={setDisplayed:n=>this.setDisplayed(n),setCtrls:n=>this.setCtrls(n),setCenterWidth:n=>this.eCenterContainer.style.width=n,setViewportScrollLeft:n=>this.getGui().scrollLeft=n,setPinnedContainerWidth:n=>{const i=this.getGui();i.style.width=n,i.style.maxWidth=n,i.style.minWidth=n}};this.createManagedBean(new Qfe(this.pinned)).setComp(t,this.getGui())}selectAndSetTemplate(){const t=this.pinned=="left",r=this.pinned=="right",n=t?Tqe:r?Rqe:Pqe;this.setTemplate(n),this.eRowContainer=this.eCenterContainer!==Ce?this.eCenterContainer:this.getGui()}destroy(){this.setCtrls([]),super.destroy()}destroyRowComp(t){this.destroyBean(t),this.eRowContainer.removeChild(t.getGui())}setCtrls(t){const r=this.headerRowComps;this.headerRowComps={},this.rowCompsList=[];let n;const i=o=>{const s=o.getGui();s.parentElement!=this.eRowContainer&&this.eRowContainer.appendChild(s),n&&Spe(this.eRowContainer,s,n),n=s};t.forEach(o=>{const s=o.instanceId,a=r[s];delete r[s];const l=a||this.createBean(new KKe(o));this.headerRowComps[s]=l,this.rowCompsList.push(l),i(l)}),Object.values(r).forEach(o=>this.destroyRowComp(o))}},Mqe=class extends Je{constructor(){super('