function rI(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var Ho=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var oI={exports:{}},Pm={},iI={exports:{}},on={};/** * @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 rh=Symbol.for("react.element"),x6=Symbol.for("react.portal"),O6=Symbol.for("react.fragment"),T6=Symbol.for("react.strict_mode"),$6=Symbol.for("react.profiler"),R6=Symbol.for("react.provider"),I6=Symbol.for("react.context"),N6=Symbol.for("react.forward_ref"),M6=Symbol.for("react.suspense"),P6=Symbol.for("react.memo"),A6=Symbol.for("react.lazy"),rx=Symbol.iterator;function L6(e){return e===null||typeof e!="object"?null:(e=rx&&e[rx]||e["@@iterator"],typeof e=="function"?e:null)}var aI={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},lI=Object.assign,sI={};function Uu(e,t,n){this.props=e,this.context=t,this.refs=sI,this.updater=n||aI}Uu.prototype.isReactComponent={};Uu.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};Uu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function cI(){}cI.prototype=Uu.prototype;function X1(e,t,n){this.props=e,this.context=t,this.refs=sI,this.updater=n||aI}var Y1=X1.prototype=new cI;Y1.constructor=X1;lI(Y1,Uu.prototype);Y1.isPureReactComponent=!0;var ox=Array.isArray,uI=Object.prototype.hasOwnProperty,q1={current:null},dI={key:!0,ref:!0,__self:!0,__source:!0};function fI(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)uI.call(t,r)&&!dI.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1>>1,X=A[G];if(0>>1;Go(Z,j))heo(ge,Z)?(A[G]=ge,A[he]=j,G=he):(A[G]=Z,A[te]=j,G=te);else if(heo(ge,j))A[G]=ge,A[he]=j,G=he;else break e}}return U}function o(A,U){var j=A.sortIndex-U.sortIndex;return j!==0?j:A.id-U.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var c=[],d=[],h=1,g=null,p=3,m=!1,v=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,C=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(A){for(var U=n(d);U!==null;){if(U.callback===null)r(d);else if(U.startTime<=A)r(d),U.sortIndex=U.expirationTime,t(c,U);else break;U=n(d)}}function E(A){if(y=!1,S(A),!v)if(n(c)!==null)v=!0,B(O);else{var U=n(d);U!==null&&M(E,U.startTime-A)}}function O(A,U){v=!1,y&&(y=!1,C(R),R=-1),m=!0;var j=p;try{for(S(U),g=n(c);g!==null&&(!(g.expirationTime>U)||A&&!P());){var G=g.callback;if(typeof G=="function"){g.callback=null,p=g.priorityLevel;var X=G(g.expirationTime<=U);U=e.unstable_now(),typeof X=="function"?g.callback=X:g===n(c)&&r(c),S(U)}else r(c);g=n(c)}if(g!==null)var re=!0;else{var te=n(d);te!==null&&M(E,te.startTime-U),re=!1}return re}finally{g=null,p=j,m=!1}}var x=!1,T=null,R=-1,N=5,I=-1;function P(){return!(e.unstable_now()-IA||125G?(A.sortIndex=j,t(d,A),n(c)===null&&A===n(d)&&(y?(C(R),R=-1):y=!0,M(E,j-G))):(A.sortIndex=X,t(c,A),v||m||(v=!0,B(O))),A},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(A){var U=p;return function(){var j=p;p=U;try{return A.apply(this,arguments)}finally{p=j}}}})(mI);pI.exports=mI;var K6=pI.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 vI=u,yi=K6;function Ge(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fb=Object.prototype.hasOwnProperty,G6=/^[: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]*$/,ax={},lx={};function X6(e){return Fb.call(lx,e)?!0:Fb.call(ax,e)?!1:G6.test(e)?lx[e]=!0:(ax[e]=!0,!1)}function Y6(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function q6(e,t,n,r){if(t===null||typeof t>"u"||Y6(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ro(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Gr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Gr[e]=new Ro(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Gr[t]=new Ro(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Gr[e]=new Ro(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Gr[e]=new Ro(e,2,!1,e,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(e){Gr[e]=new Ro(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Gr[e]=new Ro(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Gr[e]=new Ro(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Gr[e]=new Ro(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Gr[e]=new Ro(e,5,!1,e.toLowerCase(),null,!1,!1)});var Z1=/[\-:]([a-z])/g;function J1(e){return e[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(e){var t=e.replace(Z1,J1);Gr[t]=new Ro(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Z1,J1);Gr[t]=new Ro(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Z1,J1);Gr[t]=new Ro(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Gr[e]=new Ro(e,1,!1,e.toLowerCase(),null,!1,!1)});Gr.xlinkHref=new Ro("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Gr[e]=new Ro(e,1,!1,e.toLowerCase(),null,!0,!0)});function eC(e,t,n,r){var o=Gr.hasOwnProperty(t)?Gr[t]:null;(o!==null?o.type!==0:r||!(2l||o[a]!==i[l]){var c=` `+o[a].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=a&&0<=l);break}}}finally{ey=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Zd(e):""}function Q6(e){switch(e.tag){case 5:return Zd(e.type);case 16:return Zd("Lazy");case 13:return Zd("Suspense");case 19:return Zd("SuspenseList");case 0:case 2:case 15:return e=ty(e.type,!1),e;case 11:return e=ty(e.type.render,!1),e;case 1:return e=ty(e.type,!0),e;default:return""}}function Hb(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case au:return"Fragment";case iu:return"Portal";case zb:return"Profiler";case tC:return"StrictMode";case kb:return"Suspense";case jb:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case SI:return(e.displayName||"Context")+".Consumer";case bI:return(e._context.displayName||"Context")+".Provider";case nC:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case rC:return t=e.displayName||null,t!==null?t:Hb(e.type)||"Memo";case ql:t=e._payload,e=e._init;try{return Hb(e(t))}catch{}}return null}function Z6(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Hb(t);case 8:return t===tC?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ps(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function wI(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function J6(e){var t=wI(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function xg(e){e._valueTracker||(e._valueTracker=J6(e))}function _I(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=wI(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Fp(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Wb(e,t){var n=t.checked;return qn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function cx(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ps(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function EI(e,t){t=t.checked,t!=null&&eC(e,"checked",t,!1)}function Ub(e,t){EI(e,t);var n=ps(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Vb(e,t.type,n):t.hasOwnProperty("defaultValue")&&Vb(e,t.type,ps(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ux(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Vb(e,t,n){(t!=="number"||Fp(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Jd=Array.isArray;function wu(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Og.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function xf(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var of={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},e5=["Webkit","ms","Moz","O"];Object.keys(of).forEach(function(e){e5.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),of[t]=of[e]})});function $I(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||of.hasOwnProperty(e)&&of[e]?(""+t).trim():t+"px"}function RI(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=$I(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var t5=qn({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 Xb(e,t){if(t){if(t5[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ge(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ge(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ge(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ge(62))}}function Yb(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 qb=null;function oC(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Qb=null,_u=null,Eu=null;function hx(e){if(e=ah(e)){if(typeof Qb!="function")throw Error(Ge(280));var t=e.stateNode;t&&(t=zm(t),Qb(e.stateNode,e.type,t))}}function II(e){_u?Eu?Eu.push(e):Eu=[e]:_u=e}function NI(){if(_u){var e=_u,t=Eu;if(Eu=_u=null,hx(e),t)for(e=0;e>>=0,e===0?32:31-(f5(e)/h5|0)|0}var Tg=64,$g=4194304;function ef(e){switch(e&-e){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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Hp(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~o;l!==0?r=ef(l):(i&=a,i!==0&&(r=ef(i)))}else a=n&~o,a!==0?r=ef(a):i!==0&&(r=ef(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function oh(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-fa(t),e[t]=n}function v5(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=lf),wx=" ",_x=!1;function QI(e,t){switch(e){case"keyup":return V5.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ZI(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var lu=!1;function G5(e,t){switch(e){case"compositionend":return ZI(t);case"keypress":return t.which!==32?null:(_x=!0,wx);case"textInput":return e=t.data,e===wx&&_x?null:e;default:return null}}function X5(e,t){if(lu)return e==="compositionend"||!fC&&QI(e,t)?(e=YI(),fp=cC=ts=null,lu=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Tx(n)}}function nN(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?nN(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function rN(){for(var e=window,t=Fp();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Fp(e.document)}return t}function hC(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function rj(e){var t=rN(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&nN(n.ownerDocument.documentElement,n)){if(r!==null&&hC(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=$x(n,i);var a=$x(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,su=null,rS=null,cf=null,oS=!1;function Rx(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;oS||su==null||su!==Fp(r)||(r=su,"selectionStart"in r&&hC(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),cf&&Nf(cf,r)||(cf=r,r=Vp(rS,"onSelect"),0du||(e.current=uS[du],uS[du]=null,du--)}function Fn(e,t){du++,uS[du]=e.current,e.current=t}var ms={},fo=Cs(ms),Uo=Cs(!1),sc=ms;function Mu(e,t){var n=e.type.contextTypes;if(!n)return ms;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Vo(e){return e=e.childContextTypes,e!=null}function Gp(){jn(Uo),jn(fo)}function Dx(e,t,n){if(fo.current!==ms)throw Error(Ge(168));Fn(fo,t),Fn(Uo,n)}function fN(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(Ge(108,Z6(e)||"Unknown",o));return qn({},n,r)}function Xp(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ms,sc=fo.current,Fn(fo,e),Fn(Uo,Uo.current),!0}function Bx(e,t,n){var r=e.stateNode;if(!r)throw Error(Ge(169));n?(e=fN(e,t,sc),r.__reactInternalMemoizedMergedChildContext=e,jn(Uo),jn(fo),Fn(fo,e)):jn(Uo),Fn(Uo,n)}var ll=null,km=!1,py=!1;function hN(e){ll===null?ll=[e]:ll.push(e)}function pj(e){km=!0,hN(e)}function ws(){if(!py&&ll!==null){py=!0;var e=0,t=$n;try{var n=ll;for($n=1;e>=a,o-=a,cl=1<<32-fa(t)+o|n<R?(N=T,T=null):N=T.sibling;var I=p(C,T,S[R],E);if(I===null){T===null&&(T=N);break}e&&T&&I.alternate===null&&t(C,T),b=i(I,b,R),x===null?O=I:x.sibling=I,x=I,T=N}if(R===S.length)return n(C,T),Un&&Vs(C,R),O;if(T===null){for(;RR?(N=T,T=null):N=T.sibling;var P=p(C,T,I.value,E);if(P===null){T===null&&(T=N);break}e&&T&&P.alternate===null&&t(C,T),b=i(P,b,R),x===null?O=P:x.sibling=P,x=P,T=N}if(I.done)return n(C,T),Un&&Vs(C,R),O;if(T===null){for(;!I.done;R++,I=S.next())I=g(C,I.value,E),I!==null&&(b=i(I,b,R),x===null?O=I:x.sibling=I,x=I);return Un&&Vs(C,R),O}for(T=r(C,T);!I.done;R++,I=S.next())I=m(T,C,R,I.value,E),I!==null&&(e&&I.alternate!==null&&T.delete(I.key===null?R:I.key),b=i(I,b,R),x===null?O=I:x.sibling=I,x=I);return e&&T.forEach(function(L){return t(C,L)}),Un&&Vs(C,R),O}function w(C,b,S,E){if(typeof S=="object"&&S!==null&&S.type===au&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case Eg:e:{for(var O=S.key,x=b;x!==null;){if(x.key===O){if(O=S.type,O===au){if(x.tag===7){n(C,x.sibling),b=o(x,S.props.children),b.return=C,C=b;break e}}else if(x.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===ql&&Ux(O)===x.type){n(C,x.sibling),b=o(x,S.props),b.ref=Ad(C,x,S),b.return=C,C=b;break e}n(C,x);break}else t(C,x);x=x.sibling}S.type===au?(b=ic(S.props.children,C.mode,E,S.key),b.return=C,C=b):(E=Sp(S.type,S.key,S.props,null,C.mode,E),E.ref=Ad(C,b,S),E.return=C,C=E)}return a(C);case iu:e:{for(x=S.key;b!==null;){if(b.key===x)if(b.tag===4&&b.stateNode.containerInfo===S.containerInfo&&b.stateNode.implementation===S.implementation){n(C,b.sibling),b=o(b,S.children||[]),b.return=C,C=b;break e}else{n(C,b);break}else t(C,b);b=b.sibling}b=_y(S,C.mode,E),b.return=C,C=b}return a(C);case ql:return x=S._init,w(C,b,x(S._payload),E)}if(Jd(S))return v(C,b,S,E);if(Rd(S))return y(C,b,S,E);Lg(C,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,b!==null&&b.tag===6?(n(C,b.sibling),b=o(b,S),b.return=C,C=b):(n(C,b),b=wy(S,C.mode,E),b.return=C,C=b),a(C)):n(C,b)}return w}var Au=CN(!0),wN=CN(!1),lh={},Fa=Cs(lh),Lf=Cs(lh),Df=Cs(lh);function Js(e){if(e===lh)throw Error(Ge(174));return e}function wC(e,t){switch(Fn(Df,t),Fn(Lf,e),Fn(Fa,lh),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Gb(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Gb(t,e)}jn(Fa),Fn(Fa,t)}function Lu(){jn(Fa),jn(Lf),jn(Df)}function _N(e){Js(Df.current);var t=Js(Fa.current),n=Gb(t,e.type);t!==n&&(Fn(Lf,e),Fn(Fa,n))}function _C(e){Lf.current===e&&(jn(Fa),jn(Lf))}var Xn=Cs(0);function em(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var my=[];function EC(){for(var e=0;en?n:4,e(!0);var r=vy.transition;vy.transition={};try{e(!1),t()}finally{$n=n,vy.transition=r}}function zN(){return Ui().memoizedState}function bj(e,t,n){var r=fs(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},kN(e))jN(t,n);else if(n=vN(e,t,n,r),n!==null){var o=Eo();ha(n,e,r,o),HN(n,t,r)}}function Sj(e,t,n){var r=fs(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(kN(e))jN(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,ma(l,a)){var c=t.interleaved;c===null?(o.next=o,SC(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=vN(e,t,o,r),n!==null&&(o=Eo(),ha(n,e,r,o),HN(n,t,r))}}function kN(e){var t=e.alternate;return e===Yn||t!==null&&t===Yn}function jN(e,t){uf=tm=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function HN(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,aC(e,n)}}var nm={readContext:Wi,useCallback:ro,useContext:ro,useEffect:ro,useImperativeHandle:ro,useInsertionEffect:ro,useLayoutEffect:ro,useMemo:ro,useReducer:ro,useRef:ro,useState:ro,useDebugValue:ro,useDeferredValue:ro,useTransition:ro,useMutableSource:ro,useSyncExternalStore:ro,useId:ro,unstable_isNewReconciler:!1},Cj={readContext:Wi,useCallback:function(e,t){return Ma().memoizedState=[e,t===void 0?null:t],e},useContext:Wi,useEffect:Kx,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,mp(4194308,4,AN.bind(null,t,e),n)},useLayoutEffect:function(e,t){return mp(4194308,4,e,t)},useInsertionEffect:function(e,t){return mp(4,2,e,t)},useMemo:function(e,t){var n=Ma();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ma();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=bj.bind(null,Yn,e),[r.memoizedState,e]},useRef:function(e){var t=Ma();return e={current:e},t.memoizedState=e},useState:Vx,useDebugValue:RC,useDeferredValue:function(e){return Ma().memoizedState=e},useTransition:function(){var e=Vx(!1),t=e[0];return e=yj.bind(null,e[1]),Ma().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Yn,o=Ma();if(Un){if(n===void 0)throw Error(Ge(407));n=n()}else{if(n=t(),Lr===null)throw Error(Ge(349));uc&30||ON(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Kx($N.bind(null,r,i,e),[e]),r.flags|=2048,zf(9,TN.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ma(),t=Lr.identifierPrefix;if(Un){var n=ul,r=cl;n=(r&~(1<<32-fa(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Bf++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Pa]=t,e[Af]=r,QN(e,t,!1,!1),t.stateNode=e;e:{switch(a=Yb(n,r),n){case"dialog":kn("cancel",e),kn("close",e),o=r;break;case"iframe":case"object":case"embed":kn("load",e),o=r;break;case"video":case"audio":for(o=0;oBu&&(t.flags|=128,r=!0,Ld(i,!1),t.lanes=4194304)}else{if(!r)if(e=em(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ld(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Un)return oo(t),null}else 2*sr()-i.renderingStartTime>Bu&&n!==1073741824&&(t.flags|=128,r=!0,Ld(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=sr(),t.sibling=null,n=Xn.current,Fn(Xn,r?n&1|2:n&1),t):(oo(t),null);case 22:case 23:return LC(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ui&1073741824&&(oo(t),t.subtreeFlags&6&&(t.flags|=8192)):oo(t),null;case 24:return null;case 25:return null}throw Error(Ge(156,t.tag))}function Rj(e,t){switch(pC(t),t.tag){case 1:return Vo(t.type)&&Gp(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Lu(),jn(Uo),jn(fo),EC(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return _C(t),null;case 13:if(jn(Xn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ge(340));Pu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return jn(Xn),null;case 4:return Lu(),null;case 10:return bC(t.type._context),null;case 22:case 23:return LC(),null;case 24:return null;default:return null}}var Bg=!1,co=!1,Ij=typeof WeakSet=="function"?WeakSet:Set,ut=null;function pu(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){er(e,t,r)}else n.current=null}function wS(e,t,n){try{n()}catch(r){er(e,t,r)}}var tO=!1;function Nj(e,t){if(iS=Wp,e=rN(),hC(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,l=-1,c=-1,d=0,h=0,g=e,p=null;t:for(;;){for(var m;g!==n||o!==0&&g.nodeType!==3||(l=a+o),g!==i||r!==0&&g.nodeType!==3||(c=a+r),g.nodeType===3&&(a+=g.nodeValue.length),(m=g.firstChild)!==null;)p=g,g=m;for(;;){if(g===e)break t;if(p===n&&++d===o&&(l=a),p===i&&++h===r&&(c=a),(m=g.nextSibling)!==null)break;g=p,p=g.parentNode}g=m}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(aS={focusedElem:e,selectionRange:n},Wp=!1,ut=t;ut!==null;)if(t=ut,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ut=e;else for(;ut!==null;){t=ut;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,w=v.memoizedState,C=t.stateNode,b=C.getSnapshotBeforeUpdate(t.elementType===t.type?y:ia(t.type,y),w);C.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ge(163))}}catch(E){er(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,ut=e;break}ut=t.return}return v=tO,tO=!1,v}function df(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&wS(t,n,i)}o=o.next}while(o!==r)}}function Wm(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function _S(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function e2(e){var t=e.alternate;t!==null&&(e.alternate=null,e2(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Pa],delete t[Af],delete t[cS],delete t[hj],delete t[gj])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function t2(e){return e.tag===5||e.tag===3||e.tag===4}function nO(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||t2(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ES(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Kp));else if(r!==4&&(e=e.child,e!==null))for(ES(e,t,n),e=e.sibling;e!==null;)ES(e,t,n),e=e.sibling}function xS(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(xS(e,t,n),e=e.sibling;e!==null;)xS(e,t,n),e=e.sibling}var Hr=null,aa=!1;function kl(e,t,n){for(n=n.child;n!==null;)n2(e,t,n),n=n.sibling}function n2(e,t,n){if(Ba&&typeof Ba.onCommitFiberUnmount=="function")try{Ba.onCommitFiberUnmount(Lm,n)}catch{}switch(n.tag){case 5:co||pu(n,t);case 6:var r=Hr,o=aa;Hr=null,kl(e,t,n),Hr=r,aa=o,Hr!==null&&(aa?(e=Hr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Hr.removeChild(n.stateNode));break;case 18:Hr!==null&&(aa?(e=Hr,n=n.stateNode,e.nodeType===8?gy(e.parentNode,n):e.nodeType===1&&gy(e,n),Rf(e)):gy(Hr,n.stateNode));break;case 4:r=Hr,o=aa,Hr=n.stateNode.containerInfo,aa=!0,kl(e,t,n),Hr=r,aa=o;break;case 0:case 11:case 14:case 15:if(!co&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&wS(n,t,a),o=o.next}while(o!==r)}kl(e,t,n);break;case 1:if(!co&&(pu(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){er(n,t,l)}kl(e,t,n);break;case 21:kl(e,t,n);break;case 22:n.mode&1?(co=(r=co)||n.memoizedState!==null,kl(e,t,n),co=r):kl(e,t,n);break;default:kl(e,t,n)}}function rO(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Ij),t.forEach(function(r){var o=kj.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ji(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=sr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Pj(r/1960))-r,10e?16:e,ns===null)var r=!1;else{if(e=ns,ns=null,im=0,gn&6)throw Error(Ge(331));var o=gn;for(gn|=4,ut=e.current;ut!==null;){var i=ut,a=i.child;if(ut.flags&16){var l=i.deletions;if(l!==null){for(var c=0;csr()-PC?oc(e,0):MC|=n),Ko(e,t)}function u2(e,t){t===0&&(e.mode&1?(t=$g,$g<<=1,!($g&130023424)&&($g=4194304)):t=1);var n=Eo();e=ml(e,t),e!==null&&(oh(e,t,n),Ko(e,n))}function zj(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),u2(e,n)}function kj(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Ge(314))}r!==null&&r.delete(t),u2(e,n)}var d2;d2=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Uo.current)Wo=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Wo=!1,Tj(e,t,n);Wo=!!(e.flags&131072)}else Wo=!1,Un&&t.flags&1048576&&gN(t,qp,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;vp(e,t),e=t.pendingProps;var o=Mu(t,fo.current);Ou(t,n),o=OC(null,t,r,e,o,n);var i=TC();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Vo(r)?(i=!0,Xp(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,CC(t),o.updater=jm,t.stateNode=o,o._reactInternals=t,pS(t,r,e,n),t=yS(null,t,r,!0,i,n)):(t.tag=0,Un&&i&&gC(t),_o(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(vp(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Hj(r),e=ia(r,e),o){case 0:t=vS(null,t,r,e,n);break e;case 1:t=Zx(null,t,r,e,n);break e;case 11:t=qx(null,t,r,e,n);break e;case 14:t=Qx(null,t,r,ia(r.type,e),n);break e}throw Error(Ge(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ia(r,o),vS(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ia(r,o),Zx(e,t,r,o,n);case 3:e:{if(XN(t),e===null)throw Error(Ge(387));r=t.pendingProps,i=t.memoizedState,o=i.element,yN(e,t),Jp(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Du(Error(Ge(423)),t),t=Jx(e,t,r,n,o);break e}else if(r!==o){o=Du(Error(Ge(424)),t),t=Jx(e,t,r,n,o);break e}else for(pi=cs(t.stateNode.containerInfo.firstChild),vi=t,Un=!0,ua=null,n=wN(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Pu(),r===o){t=vl(e,t,n);break e}_o(e,t,r,n)}t=t.child}return t;case 5:return _N(t),e===null&&fS(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,lS(r,o)?a=null:i!==null&&lS(r,i)&&(t.flags|=32),GN(e,t),_o(e,t,a,n),t.child;case 6:return e===null&&fS(t),null;case 13:return YN(e,t,n);case 4:return wC(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Au(t,null,r,n):_o(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ia(r,o),qx(e,t,r,o,n);case 7:return _o(e,t,t.pendingProps,n),t.child;case 8:return _o(e,t,t.pendingProps.children,n),t.child;case 12:return _o(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Fn(Qp,r._currentValue),r._currentValue=a,i!==null)if(ma(i.value,a)){if(i.children===o.children&&!Uo.current){t=vl(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=dl(-1,n&-n),c.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var h=d.pending;h===null?c.next=c:(c.next=h.next,h.next=c),d.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),hS(i.return,n,t),l.lanes|=n;break}c=c.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(Ge(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),hS(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}_o(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ou(t,n),o=Wi(o),r=r(o),t.flags|=1,_o(e,t,r,n),t.child;case 14:return r=t.type,o=ia(r,t.pendingProps),o=ia(r.type,o),Qx(e,t,r,o,n);case 15:return VN(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ia(r,o),vp(e,t),t.tag=1,Vo(r)?(e=!0,Xp(t)):e=!1,Ou(t,n),SN(t,r,o),pS(t,r,o,n),yS(null,t,r,!0,e,n);case 19:return qN(e,t,n);case 22:return KN(e,t,n)}throw Error(Ge(156,t.tag))};function f2(e,t){return FI(e,t)}function jj(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function zi(e,t,n,r){return new jj(e,t,n,r)}function BC(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Hj(e){if(typeof e=="function")return BC(e)?1:0;if(e!=null){if(e=e.$$typeof,e===nC)return 11;if(e===rC)return 14}return 2}function hs(e,t){var n=e.alternate;return n===null?(n=zi(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Sp(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")BC(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case au:return ic(n.children,o,i,t);case tC:a=8,o|=8;break;case zb:return e=zi(12,n,t,o|2),e.elementType=zb,e.lanes=i,e;case kb:return e=zi(13,n,t,o),e.elementType=kb,e.lanes=i,e;case jb:return e=zi(19,n,t,o),e.elementType=jb,e.lanes=i,e;case CI:return Vm(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case bI:a=10;break e;case SI:a=9;break e;case nC:a=11;break e;case rC:a=14;break e;case ql:a=16,r=null;break e}throw Error(Ge(130,e==null?e:typeof e,""))}return t=zi(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function ic(e,t,n,r){return e=zi(7,e,r,t),e.lanes=n,e}function Vm(e,t,n,r){return e=zi(22,e,r,t),e.elementType=CI,e.lanes=n,e.stateNode={isHidden:!1},e}function wy(e,t,n){return e=zi(6,e,null,t),e.lanes=n,e}function _y(e,t,n){return t=zi(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Wj(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ry(0),this.expirationTimes=ry(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ry(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function FC(e,t,n,r,o,i,a,l,c){return e=new Wj(e,t,n,l,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=zi(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},CC(i),e}function Uj(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(m2)}catch(e){console.error(e)}}m2(),gI.exports=Si;var va=gI.exports;const v2=nh(va),Yj=rI({__proto__:null,default:v2},[va]);var y2,dO=va;y2=Bb.createRoot=dO.createRoot,Bb.hydrateRoot=dO.hydrateRoot;var b2={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",a=0;a1&&arguments[1]!==void 0?arguments[1]:{},n=[];return se.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(xo(r)):gf.isFragment(r)&&r.props?n=n.concat(xo(r.props.children,t)):n.push(r))}),n}var IS={},Jj=function(t){};function e8(e,t){}function t8(e,t){}function n8(){IS={}}function w2(e,t,n){!t&&!IS[n]&&(e(!1,n),IS[n]=!0)}function Vn(e,t){w2(e8,e,t)}function r8(e,t){w2(t8,e,t)}Vn.preMessage=Jj;Vn.resetWarned=n8;Vn.noteOnce=r8;function Pt(e){"@babel/helpers - typeof";return Pt=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},Pt(e)}function o8(e,t){if(Pt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Pt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _2(e){var t=o8(e,"string");return Pt(t)=="symbol"?t:t+""}function K(e,t,n){return t=_2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Q(e){for(var t=1;t0},e.prototype.connect_=function(){!MS||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),f8?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!MS||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,o=d8.some(function(i){return!!~r.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),x2=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof Fu(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new C8(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Fu(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new w8(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),T2=typeof WeakMap<"u"?new WeakMap:new E2,$2=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=h8.getInstance(),r=new _8(t,n,this);T2.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){$2.prototype[e]=function(){var t;return(t=T2.get(this))[e].apply(t,arguments)}});var E8=function(){return typeof cm.ResizeObserver<"u"?cm.ResizeObserver:$2}(),rs=new Map;function x8(e){e.forEach(function(t){var n,r=t.target;(n=rs.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var R2=new E8(x8);function O8(e,t){rs.has(e)||(rs.set(e,new Set),R2.observe(e)),rs.get(e).add(t)}function T8(e,t){rs.has(e)&&(rs.get(e).delete(t),rs.get(e).size||(R2.unobserve(e),rs.delete(e)))}function Xr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gO(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:1;pO+=1;var r=pO;function o(i){if(i===0)A2(r),t();else{var a=M2(function(){o(i-1)});GC.set(r,a)}}return o(n),r};bn.cancel=function(e){var t=GC.get(e);return A2(e),P2(t)};function L2(e){if(Array.isArray(e))return e}function L8(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,l=[],c=!0,d=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(h){d=!0,o=h}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw o}}return l}}function D2(){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 de(e,t){return L2(e)||L8(e,t)||KC(e,t)||D2()}function dm(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function ho(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function LS(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var mO="data-rc-order",vO="data-rc-priority",D8="rc-util-key",DS=new Map;function B2(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):D8}function lv(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function B8(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function XC(e){return Array.from((DS.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function F2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ho())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=B8(r),l=a==="prependQueue",c=document.createElement("style");c.setAttribute(mO,a),l&&i&&c.setAttribute(vO,"".concat(i)),n!=null&&n.nonce&&(c.nonce=n==null?void 0:n.nonce),c.innerHTML=e;var d=lv(t),h=d.firstChild;if(r){if(l){var g=(t.styles||XC(d)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(mO)))return!1;var m=Number(p.getAttribute(vO)||0);return i>=m});if(g.length)return d.insertBefore(c,g[g.length-1].nextSibling),c}d.insertBefore(c,h)}else d.appendChild(c);return c}function z2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=lv(t);return(t.styles||XC(n)).find(function(r){return r.getAttribute(B2(t))===e})}function jf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=z2(e,t);if(n){var r=lv(t);r.removeChild(n)}}function F8(e,t){var n=DS.get(e);if(!n||!LS(document,n)){var r=F2("",t),o=r.parentNode;DS.set(e,o),e.removeChild(r)}}function fl(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=lv(n),o=XC(r),i=Q(Q({},n),{},{styles:o});F8(r,i);var a=z2(t,i);if(a){var l,c;if((l=i.csp)!==null&&l!==void 0&&l.nonce&&a.nonce!==((c=i.csp)===null||c===void 0?void 0:c.nonce)){var d;a.nonce=(d=i.csp)===null||d===void 0?void 0:d.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var h=F2(e,i);return h.setAttribute(B2(i),t),h}function z8(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function Mt(e,t){if(e==null)return{};var n=z8(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Hf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=r.has(i);if(Vn(!c,"Warning: There may be circular references"),c)return!1;if(i===a)return!0;if(n&&l>1)return!1;r.add(i);var d=l+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var h=0;h1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(l){if(!a)a=void 0;else{var c;a=(c=a)===null||c===void 0||(c=c.map)===null||c===void 0?void 0:c.get(l)}}),(r=a)!==null&&r!==void 0&&r.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(d,h){var g=de(d,2),p=g[1];return o.internalGet(h)[1]0,void 0),yO+=1}return Yr(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),Ey=new YC;function FS(e){var t=Array.isArray(e)?e:[e];return Ey.has(t)||Ey.set(t,new k2(t)),Ey.get(t)}var U8=new WeakMap,xy={};function V8(e,t){for(var n=U8,r=0;r3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var a=Q(Q({},o),{},(r={},K(r,ku,t),K(r,ga,n),r)),l=Object.keys(a).map(function(c){var d=a[c];return d?"".concat(c,'="').concat(d,'"'):null}).filter(function(c){return c}).join(" ");return"")}var j2=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},K8=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(o){var i=de(o,2),a=i[0],l=i[1];return"".concat(a,":").concat(l,";")}).join(""),"}"):""},H2=function(t,n,r){var o={},i={};return Object.entries(t).forEach(function(a){var l,c,d=de(a,2),h=d[0],g=d[1];if(r!=null&&(l=r.preserve)!==null&&l!==void 0&&l[h])i[h]=g;else if((typeof g=="string"||typeof g=="number")&&!(r!=null&&(c=r.ignore)!==null&&c!==void 0&&c[h])){var p,m=j2(h,r==null?void 0:r.prefix);o[m]=typeof g=="number"&&!(r!=null&&(p=r.unitless)!==null&&p!==void 0&&p[h])?"".concat(g,"px"):String(g),i[h]="var(".concat(m,")")}}),[i,K8(o,n,{scope:r==null?void 0:r.scope})]},CO=ho()?u.useLayoutEffect:u.useEffect,dn=function(t,n){var r=u.useRef(!0);CO(function(){return t(r.current)},n),CO(function(){return r.current=!1,function(){r.current=!0}},[])},kS=function(t,n){dn(function(r){if(!r)return t()},n)},G8=Q({},Am),wO=G8.useInsertionEffect,X8=function(t,n,r){u.useMemo(t,r),dn(function(){return n(!0)},r)},Y8=wO?function(e,t,n){return wO(function(){return e(),t()},n)}:X8,q8=Q({},Am),Q8=q8.useInsertionEffect,Z8=function(t){var n=[],r=!1;function o(i){r||n.push(i)}return u.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(i){return i()})}},t),o},J8=function(){return function(t){t()}},eH=typeof Q8<"u"?Z8:J8;function qC(e,t,n,r,o){var i=u.useContext(sv),a=i.cache,l=[e].concat(Be(t)),c=BS(l),d=eH([c]),h=function(v){a.opUpdate(c,function(y){var w=y||[void 0,void 0],C=de(w,2),b=C[0],S=b===void 0?0:b,E=C[1],O=E,x=O||n(),T=[S,x];return v?v(T):T})};u.useMemo(function(){h()},[c]);var g=a.opGet(c),p=g[1];return Y8(function(){o==null||o(p)},function(m){return h(function(v){var y=de(v,2),w=y[0],C=y[1];return m&&w===0&&(o==null||o(p)),[w+1,C]}),function(){a.opUpdate(c,function(v){var y=v||[],w=de(y,2),C=w[0],b=C===void 0?0:C,S=w[1],E=b-1;return E===0?(d(function(){(m||!a.opGet(c))&&(r==null||r(S,!1))}),null):[b-1,S]})}},[c]),p}var tH={},nH="css",Ys=new Map;function rH(e){Ys.set(e,(Ys.get(e)||0)+1)}function oH(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(ku,'="').concat(e,'"]'));n.forEach(function(r){if(r[os]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var iH=0;function aH(e,t){Ys.set(e,(Ys.get(e)||0)-1);var n=Array.from(Ys.keys()),r=n.filter(function(o){var i=Ys.get(o)||0;return i<=0});n.length-r.length>iH&&r.forEach(function(o){oH(o,t),Ys.delete(o)})}var lH=function(t,n,r,o){var i=r.getDerivativeToken(t),a=Q(Q({},i),n);return o&&(a=o(a)),a},W2="token";function sH(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=u.useContext(sv),o=r.cache.instanceId,i=r.container,a=n.salt,l=a===void 0?"":a,c=n.override,d=c===void 0?tH:c,h=n.formatToken,g=n.getComputedToken,p=n.cssVar,m=V8(function(){return Object.assign.apply(Object,[{}].concat(Be(t)))},t),v=mf(m),y=mf(d),w=p?mf(p):"",C=qC(W2,[l,e.id,v,y,w],function(){var b,S=g?g(m,d,e):lH(m,d,e,h),E=Q({},S),O="";if(p){var x=H2(S,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),T=de(x,2);S=T[0],O=T[1]}var R=SO(S,l);S._tokenKey=R,E._tokenKey=SO(E,l);var N=(b=p==null?void 0:p.key)!==null&&b!==void 0?b:R;S._themeKey=N,rH(N);var I="".concat(nH,"-").concat(dm(R));return S._hashId=I,[S,I,E,O,(p==null?void 0:p.key)||""]},function(b){aH(b[0]._themeKey,o)},function(b){var S=de(b,4),E=S[0],O=S[3];if(p&&O){var x=fl(O,dm("css-variables-".concat(E._themeKey)),{mark:ga,prepend:"queue",attachTo:i,priority:-999});x[os]=o,x.setAttribute(ku,E._themeKey)}});return C}var cH=function(t,n,r){var o=de(t,5),i=o[2],a=o[3],l=o[4],c=r||{},d=c.plain;if(!a)return null;var h=i._tokenKey,g=-999,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(g)},m=fm(a,l,h,p,d);return[g,h,m]},uH={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},U2="comm",V2="rule",K2="decl",dH="@import",fH="@keyframes",hH="@layer",G2=Math.abs,QC=String.fromCharCode;function X2(e){return e.trim()}function Cp(e,t,n){return e.replace(t,n)}function gH(e,t,n){return e.indexOf(t,n)}function Wf(e,t){return e.charCodeAt(t)|0}function Uf(e,t,n){return e.slice(t,n)}function sl(e){return e.length}function pH(e){return e.length}function kg(e,t){return t.push(e),e}var cv=1,ju=1,Y2=0,Vi=0,vr=0,Gu="";function ZC(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:cv,column:ju,length:a,return:"",siblings:l}}function mH(){return vr}function vH(){return vr=Vi>0?Wf(Gu,--Vi):0,ju--,vr===10&&(ju=1,cv--),vr}function pa(){return vr=Vi2||jS(vr)>3?"":" "}function CH(e,t){for(;--t&&pa()&&!(vr<48||vr>102||vr>57&&vr<65||vr>70&&vr<97););return uv(e,wp()+(t<6&&ac()==32&&pa()==32))}function HS(e){for(;pa();)switch(vr){case e:return Vi;case 34:case 39:e!==34&&e!==39&&HS(vr);break;case 40:e===41&&HS(e);break;case 92:pa();break}return Vi}function wH(e,t){for(;pa()&&e+vr!==57;)if(e+vr===84&&ac()===47)break;return"/*"+uv(t,Vi-1)+"*"+QC(e===47?e:pa())}function _H(e){for(;!jS(ac());)pa();return uv(e,Vi)}function EH(e){return bH(_p("",null,null,null,[""],e=yH(e),0,[0],e))}function _p(e,t,n,r,o,i,a,l,c){for(var d=0,h=0,g=a,p=0,m=0,v=0,y=1,w=1,C=1,b=0,S="",E=o,O=i,x=r,T=S;w;)switch(v=b,b=pa()){case 40:if(v!=108&&Wf(T,g-1)==58){gH(T+=Cp(Oy(b),"&","&\f"),"&\f",G2(d?l[d-1]:0))!=-1&&(C=-1);break}case 34:case 39:case 91:T+=Oy(b);break;case 9:case 10:case 13:case 32:T+=SH(v);break;case 92:T+=CH(wp()-1,7);continue;case 47:switch(ac()){case 42:case 47:kg(xH(wH(pa(),wp()),t,n,c),c);break;default:T+="/"}break;case 123*y:l[d++]=sl(T)*C;case 125*y:case 59:case 0:switch(b){case 0:case 125:w=0;case 59+h:C==-1&&(T=Cp(T,/\f/g,"")),m>0&&sl(T)-g&&kg(m>32?EO(T+";",r,n,g-1,c):EO(Cp(T," ","")+";",r,n,g-2,c),c);break;case 59:T+=";";default:if(kg(x=_O(T,t,n,d,h,o,l,S,E=[],O=[],g,i),i),b===123)if(h===0)_p(T,t,x,x,E,i,g,l,O);else switch(p===99&&Wf(T,3)===110?100:p){case 100:case 108:case 109:case 115:_p(e,x,x,r&&kg(_O(e,x,x,0,0,o,l,S,o,E=[],g,O),O),o,O,g,l,r?E:O);break;default:_p(T,x,x,x,[""],O,0,l,O)}}d=h=m=0,y=C=1,S=T="",g=a;break;case 58:g=1+sl(T),m=v;default:if(y<1){if(b==123)--y;else if(b==125&&y++==0&&vH()==125)continue}switch(T+=QC(b),b*y){case 38:C=h>0?1:(T+="\f",-1);break;case 44:l[d++]=(sl(T)-1)*C,C=1;break;case 64:ac()===45&&(T+=Oy(pa())),p=ac(),h=g=sl(S=T+=_H(wp())),b++;break;case 45:v===45&&sl(T)==2&&(y=0)}}return i}function _O(e,t,n,r,o,i,a,l,c,d,h,g){for(var p=o-1,m=o===0?i:[""],v=pH(m),y=0,w=0,C=0;y0?m[b]+" "+S:Cp(S,/&\f/g,m[b])))&&(c[C++]=E);return ZC(e,t,n,o===0?V2:l,c,d,h,g)}function xH(e,t,n,r){return ZC(e,t,n,U2,QC(mH()),Uf(e,2,-2),0,r)}function EO(e,t,n,r,o){return ZC(e,t,n,K2,Uf(e,0,r),Uf(e,r+1,-1),r,o)}function WS(e,t){for(var n="",r=0;r1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,l=n.hashId,c=n.layer;n.path;var d=n.hashPriority,h=n.transformers,g=h===void 0?[]:h;n.linters;var p="",m={};function v(C){var b=C.getName(l);if(!m[b]){var S=e(C.style,n,{root:!1,parentSelectors:a}),E=de(S,1),O=E[0];m[b]="@keyframes ".concat(C.getName(l)).concat(O)}}function y(C){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return C.forEach(function(S){Array.isArray(S)?y(S,b):S&&b.push(S)}),b}var w=y(Array.isArray(t)?t:[t]);return w.forEach(function(C){var b=typeof C=="string"&&!o?{}:C;if(typeof b=="string")p+="".concat(b,` `);else if(b._keyframe)v(b);else{var S=g.reduce(function(E,O){var x;return(O==null||(x=O.visit)===null||x===void 0?void 0:x.call(O,E))||E},b);Object.keys(S).forEach(function(E){var O=S[E];if(Pt(O)==="object"&&O&&(E!=="animationName"||!O._keyframe)&&!NH(O)){var x=!1,T=E.trim(),R=!1;(o||i)&&l?T.startsWith("@")?x=!0:T=MH(E,l,d):o&&!l&&(T==="&"||T==="")&&(T="",R=!0);var N=e(O,n,{root:R,injectHash:x,parentSelectors:[].concat(Be(a),[T])}),I=de(N,2),P=I[0],L=I[1];m=Q(Q({},m),L),p+="".concat(T).concat(P)}else{let W=function(B,M){var A=B.replace(/[A-Z]/g,function(j){return"-".concat(j.toLowerCase())}),U=M;!uH[B]&&typeof U=="number"&&U!==0&&(U="".concat(U,"px")),B==="animationName"&&M!==null&&M!==void 0&&M._keyframe&&(v(M),U=M.getName(l)),p+="".concat(A,":").concat(U,";")};var D,z=(D=O==null?void 0:O.value)!==null&&D!==void 0?D:O;Pt(O)==="object"&&O!==null&&O!==void 0&&O[Z2]&&Array.isArray(z)?z.forEach(function(B){W(E,B)}):W(E,z)}})}}),o?c&&(p="@layer ".concat(c.name," {").concat(p,"}"),c.dependencies&&(m["@layer ".concat(c.name)]=c.dependencies.map(function(C){return"@layer ".concat(C,", ").concat(c.name,";")}).join(` `))):p="{".concat(p,"}"),[p,m]};function J2(e,t){return dm("".concat(e.join("%")).concat(t))}function AH(){return null}var eM="style";function US(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,l=e.clientOnly,c=e.order,d=c===void 0?0:c,h=u.useContext(sv),g=h.autoClear;h.mock;var p=h.defaultCache,m=h.hashPriority,v=h.container,y=h.ssrInline,w=h.transformers,C=h.linters,b=h.cache,S=h.layer,E=n._tokenKey,O=[E];S&&O.push("layer"),O.push.apply(O,Be(r));var x=zS,T=qC(eM,O,function(){var L=O.join("|");if($H(L)){var D=RH(L),z=de(D,2),W=z[0],B=z[1];if(W)return[W,E,B,{},l,d]}var M=t(),A=PH(M,{hashId:o,hashPriority:m,layer:S?i:void 0,path:r.join("-"),transformers:w,linters:C}),U=de(A,2),j=U[0],G=U[1],X=Ep(j),re=J2(O,X);return[X,E,re,G,l,d]},function(L,D){var z=de(L,3),W=z[2];(D||g)&&zS&&jf(W,{mark:ga})},function(L){var D=de(L,4),z=D[0];D[1];var W=D[2],B=D[3];if(x&&z!==q2){var M={mark:ga,prepend:S?!1:"queue",attachTo:v,priority:d},A=typeof a=="function"?a():a;A&&(M.csp={nonce:A});var U=[],j=[];Object.keys(B).forEach(function(X){X.startsWith("@layer")?U.push(X):j.push(X)}),U.forEach(function(X){fl(Ep(B[X]),"_layer-".concat(X),Q(Q({},M),{},{prepend:!0}))});var G=fl(z,W,M);G[os]=b.instanceId,G.setAttribute(ku,E),j.forEach(function(X){fl(Ep(B[X]),"_effect-".concat(X),M)})}}),R=de(T,3),N=R[0],I=R[1],P=R[2];return function(L){var D;if(!y||x||!p)D=u.createElement(AH,null);else{var z;D=u.createElement("style",De({},(z={},K(z,ku,I),K(z,ga,P),z),{dangerouslySetInnerHTML:{__html:N}}))}return u.createElement(u.Fragment,null,D,L)}}var LH=function(t,n,r){var o=de(t,6),i=o[0],a=o[1],l=o[2],c=o[3],d=o[4],h=o[5],g=r||{},p=g.plain;if(d)return null;var m=i,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(h)};return m=fm(i,a,l,v,p),c&&Object.keys(c).forEach(function(y){if(!n[y]){n[y]=!0;var w=Ep(c[y]),C=fm(w,a,"_effect-".concat(y),v,p);y.startsWith("@layer")?m=C+m:m+=C}}),[h,l,m]},tM="cssVar",DH=function(t,n){var r=t.key,o=t.prefix,i=t.unitless,a=t.ignore,l=t.token,c=t.scope,d=c===void 0?"":c,h=u.useContext(sv),g=h.cache.instanceId,p=h.container,m=l._tokenKey,v=[].concat(Be(t.path),[r,d,m]),y=qC(tM,v,function(){var w=n(),C=H2(w,r,{prefix:o,unitless:i,ignore:a,scope:d}),b=de(C,2),S=b[0],E=b[1],O=J2(v,E);return[S,E,O,r]},function(w){var C=de(w,3),b=C[2];zS&&jf(b,{mark:ga})},function(w){var C=de(w,3),b=C[1],S=C[2];if(b){var E=fl(b,S,{mark:ga,prepend:"queue",attachTo:p,priority:-999});E[os]=g,E.setAttribute(ku,r)}});return y},BH=function(t,n,r){var o=de(t,4),i=o[1],a=o[2],l=o[3],c=r||{},d=c.plain;if(!i)return null;var h=-999,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(h)},p=fm(i,l,a,g,d);return[h,a,p]},Bd;Bd={},K(Bd,eM,LH),K(Bd,W2,cH),K(Bd,tM,BH);var en=function(){function e(t,n){Xr(this,e),K(this,"name",void 0),K(this,"style",void 0),K(this,"_keyframe",!0),this.name=t,this.style=n}return Yr(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function Wc(e){return e.notSplit=!0,e}Wc(["borderTop","borderBottom"]),Wc(["borderTop"]),Wc(["borderBottom"]),Wc(["borderLeft","borderRight"]),Wc(["borderLeft"]),Wc(["borderRight"]);var JC=u.createContext({});function nM(e){return L2(e)||N2(e)||KC(e)||D2()}function La(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!La(e,t.slice(0,-1))?e:rM(e,t,n,r)}function FH(e){return Pt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function OO(e){return Array.isArray(e)?[]:{}}var zH=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function vu(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=kH,e},oM=u.createContext(void 0);var HH={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"},WH={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"};const UH={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},iM=UH,VH={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},WH),timePickerLocale:Object.assign({},iM)},TO=VH,ai="${label} is not a valid ${type}",vs={locale:"en",Pagination:HH,DatePicker:TO,TimePicker:iM,Calendar:TO,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:ai,method:ai,array:ai,object:ai,number:ai,date:ai,boolean:ai,integer:ai,float:ai,regexp:ai,email:ai,url:ai,hex:ai},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty"}};let xp=Object.assign({},vs.Modal),Op=[];const $O=()=>Op.reduce((e,t)=>Object.assign(Object.assign({},e),t),vs.Modal);function KH(e){if(e){const t=Object.assign({},e);return Op.push(t),xp=$O(),()=>{Op=Op.filter(n=>n!==t),xp=$O()}}xp=Object.assign({},vs.Modal)}function aM(){return xp}const GH=u.createContext(void 0),ew=GH,Xu=(e,t)=>{const n=u.useContext(ew),r=u.useMemo(()=>{var i;const a=t||vs[e],l=(i=n==null?void 0:n[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),l||{})},[e,t,n]),o=u.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?vs.locale:i},[n]);return[r,o]},XH="internalMark",YH=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;u.useEffect(()=>KH(t&&t.Modal),[t]);const o=u.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return u.createElement(ew.Provider,{value:o},n)},qH=YH;function Ur(e,t){QH(e)&&(e="100%");var n=ZH(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function jg(e){return Math.min(1,Math.max(0,e))}function QH(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function ZH(e){return typeof e=="string"&&e.indexOf("%")!==-1}function lM(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Hg(e){return e<=1?"".concat(Number(e)*100,"%"):e}function ec(e){return e.length===1?"0"+e:String(e)}function JH(e,t,n){return{r:Ur(e,255)*255,g:Ur(t,255)*255,b:Ur(n,255)*255}}function RO(e,t,n){e=Ur(e,255),t=Ur(t,255),n=Ur(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,l=(r+o)/2;if(r===o)a=0,i=0;else{var c=r-o;switch(a=l>.5?c/(2-r-o):c/(r+o),r){case e:i=(t-n)/c+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function eW(e,t,n){var r,o,i;if(e=Ur(e,360),t=Ur(t,100),n=Ur(n,100),t===0)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=Ty(l,a,e+1/3),o=Ty(l,a,e),i=Ty(l,a,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function VS(e,t,n){e=Ur(e,255),t=Ur(t,255),n=Ur(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,l=r-o,c=r===0?0:l/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/l+(t>16,g:(e&65280)>>8,b:e&255}}var GS={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function ru(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,l=!1;return typeof e=="string"&&(e=lW(e)),typeof e=="object"&&(el(e.r)&&el(e.g)&&el(e.b)?(t=JH(e.r,e.g,e.b),a=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):el(e.h)&&el(e.s)&&el(e.v)?(r=Hg(e.s),o=Hg(e.v),t=tW(e.h,r,o),a=!0,l="hsv"):el(e.h)&&el(e.s)&&el(e.l)&&(r=Hg(e.s),i=Hg(e.l),t=eW(e.h,r,i),a=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=lM(n),{ok:a,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var iW="[-\\+]?\\d+%?",aW="[-\\+]?\\d*\\.\\d+%?",is="(?:".concat(aW,")|(?:").concat(iW,")"),$y="[\\s|\\(]+(".concat(is,")[,|\\s]+(").concat(is,")[,|\\s]+(").concat(is,")\\s*\\)?"),Ry="[\\s|\\(]+(".concat(is,")[,|\\s]+(").concat(is,")[,|\\s]+(").concat(is,")[,|\\s]+(").concat(is,")\\s*\\)?"),oa={CSS_UNIT:new RegExp(is),rgb:new RegExp("rgb"+$y),rgba:new RegExp("rgba"+Ry),hsl:new RegExp("hsl"+$y),hsla:new RegExp("hsla"+Ry),hsv:new RegExp("hsv"+$y),hsva:new RegExp("hsva"+Ry),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function lW(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(GS[e])e=GS[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=oa.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=oa.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=oa.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=oa.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=oa.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=oa.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=oa.hex8.exec(e),n?{r:si(n[1]),g:si(n[2]),b:si(n[3]),a:IO(n[4]),format:t?"name":"hex8"}:(n=oa.hex6.exec(e),n?{r:si(n[1]),g:si(n[2]),b:si(n[3]),format:t?"name":"hex"}:(n=oa.hex4.exec(e),n?{r:si(n[1]+n[1]),g:si(n[2]+n[2]),b:si(n[3]+n[3]),a:IO(n[4]+n[4]),format:t?"name":"hex8"}:(n=oa.hex3.exec(e),n?{r:si(n[1]+n[1]),g:si(n[2]+n[2]),b:si(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function el(e){return!!oa.CSS_UNIT.exec(String(e))}var Tr=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=oW(t)),this.originalInput=t;var o=ru(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,i=t.r/255,a=t.g/255,l=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),l<=.03928?o=l/12.92:o=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=lM(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=VS(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=VS(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=RO(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=RO(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),KS(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),nW(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Ur(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(Ur(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+KS(this.r,this.g,this.b,!1),n=0,r=Object.entries(GS);n=0,i=!n&&o&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=jg(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=jg(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=jg(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=jg(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],l=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Wg*t:Math.round(e.h)+Wg*t:r=n?Math.round(e.h)+Wg*t:Math.round(e.h)-Wg*t,r<0?r+=360:r>=360&&(r-=360),r}function AO(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-NO*t:t===cM?r=e.s+NO:r=e.s+sW*t,r>1&&(r=1),n&&t===sM&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function LO(e,t,n){var r;return n?r=e.v+cW*t:r=e.v-uW*t,r>1&&(r=1),Number(r.toFixed(2))}function hc(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=ru(e),o=sM;o>0;o-=1){var i=MO(r),a=Ug(ru({h:PO(i,o,!0),s:AO(i,o,!0),v:LO(i,o,!0)}));n.push(a)}n.push(Ug(r));for(var l=1;l<=cM;l+=1){var c=MO(r),d=Ug(ru({h:PO(c,l),s:AO(c,l),v:LO(c,l)}));n.push(d)}return t.theme==="dark"?dW.map(function(h){var g=h.index,p=h.opacity,m=Ug(fW(ru(t.backgroundColor||"#141414"),ru(n[g]),p*100));return m}):n}var Iy={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"},vf={},Ny={};Object.keys(Iy).forEach(function(e){vf[e]=hc(Iy[e]),vf[e].primary=vf[e][5],Ny[e]=hc(Iy[e],{theme:"dark",backgroundColor:"#141414"}),Ny[e].primary=Ny[e][5]});var hW=vf.gold,gW=vf.blue;const uM={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"},pW=Object.assign(Object.assign({},uM),{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}),Vf=pW;function mW(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:c,colorBgBase:d,colorTextBase:h}=e,g=n(c),p=n(o),m=n(i),v=n(a),y=n(l),w=r(d,h),C=e.colorLink||e.colorInfo,b=n(C);return Object.assign(Object.assign({},w),{colorPrimaryBg:g[1],colorPrimaryBgHover:g[2],colorPrimaryBorder:g[3],colorPrimaryBorderHover:g[4],colorPrimaryHover:g[5],colorPrimary:g[6],colorPrimaryActive:g[7],colorPrimaryTextHover:g[8],colorPrimaryText:g[9],colorPrimaryTextActive:g[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:v[1],colorErrorBgHover:v[2],colorErrorBorder:v[3],colorErrorBorderHover:v[4],colorErrorHover:v[5],colorError:v[6],colorErrorActive:v[7],colorErrorTextHover:v[8],colorErrorText:v[9],colorErrorTextActive:v[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[10],colorInfoBg:y[1],colorInfoBgHover:y[2],colorInfoBorder:y[3],colorInfoBorderHover:y[4],colorInfoHover:y[4],colorInfo:y[6],colorInfoActive:y[7],colorInfoTextHover:y[8],colorInfoText:y[9],colorInfoTextActive:y[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new Tr("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const vW=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};function yW(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},vW(r))}const bW=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function Tp(e){return(e+8)/e}function SW(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,i=e*Math.pow(2.71828,o/5),a=r>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:Tp(n)}))}const CW=e=>{const t=SW(e),n=t.map(h=>h.size),r=t.map(h=>h.lineHeight),o=n[1],i=n[0],a=n[2],l=r[1],c=r[0],d=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:d,lineHeightSM:c,fontHeight:Math.round(l*o),fontHeightLG:Math.round(d*a),fontHeightSM:Math.round(c*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function wW(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const tl=(e,t)=>new Tr(e).setAlpha(t).toRgbString(),Fd=(e,t)=>new Tr(e).darken(t).toHexString(),_W=e=>{const t=hc(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]}},EW=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:tl(r,.88),colorTextSecondary:tl(r,.65),colorTextTertiary:tl(r,.45),colorTextQuaternary:tl(r,.25),colorFill:tl(r,.15),colorFillSecondary:tl(r,.06),colorFillTertiary:tl(r,.04),colorFillQuaternary:tl(r,.02),colorBgLayout:Fd(n,4),colorBgContainer:Fd(n,0),colorBgElevated:Fd(n,0),colorBgSpotlight:tl(r,.85),colorBgBlur:"transparent",colorBorder:Fd(n,15),colorBorderSecondary:Fd(n,6)}};function xW(e){const t=Object.keys(uM).map(n=>{const r=hc(e[n]);return new Array(10).fill(1).reduce((o,i,a)=>(o[`${n}-${a+1}`]=r[a],o[`${n}${a+1}`]=r[a],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),mW(e,{generateColorPalettes:_W,generateNeutralColorPalettes:EW})),CW(e.fontSize)),wW(e)),bW(e)),yW(e))}const dM=FS(xW),XS={token:Vf,override:{override:Vf},hashed:!0},fM=se.createContext(XS),tw="anticon",OW=(e,t)=>t||(e?`ant-${e}`:"ant"),bt=u.createContext({getPrefixCls:OW,iconPrefixCls:tw}),TW=`-ant-${Date.now()}-${Math.random()}`;function $W(e,t){const n={},r=(a,l)=>{let c=a.clone();return c=(l==null?void 0:l(c))||c,c.toRgbString()},o=(a,l)=>{const c=new Tr(a),d=hc(c.toRgbString());n[`${l}-color`]=r(c),n[`${l}-color-disabled`]=d[1],n[`${l}-color-hover`]=d[4],n[`${l}-color-active`]=d[6],n[`${l}-color-outline`]=c.clone().setAlpha(.2).toRgbString(),n[`${l}-color-deprecated-bg`]=d[0],n[`${l}-color-deprecated-border`]=d[2]};if(t.primaryColor){o(t.primaryColor,"primary");const a=new Tr(t.primaryColor),l=hc(a.toRgbString());l.forEach((d,h)=>{n[`primary-${h+1}`]=d}),n["primary-color-deprecated-l-35"]=r(a,d=>d.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,d=>d.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,d=>d.tint(20)),n["primary-color-deprecated-t-50"]=r(a,d=>d.tint(50)),n["primary-color-deprecated-f-12"]=r(a,d=>d.setAlpha(d.getAlpha()*.12));const c=new Tr(l[0]);n["primary-color-active-deprecated-f-30"]=r(c,d=>d.setAlpha(d.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(c,d=>d.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),` :root { ${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(` `)} } `.trim()}function RW(e,t){const n=$W(e,t);ho()&&fl(n,`${TW}-dynamic-theme`)}const YS=u.createContext(!1),nw=e=>{let{children:t,disabled:n}=e;const r=u.useContext(YS);return u.createElement(YS.Provider,{value:n??r},t)},Yu=YS,qS=u.createContext(void 0),IW=e=>{let{children:t,size:n}=e;const r=u.useContext(qS);return u.createElement(qS.Provider,{value:n||r},t)},uh=qS;function NW(){const e=u.useContext(Yu),t=u.useContext(uh);return{componentDisabled:e,componentSize:t}}const hm=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],MW="5.16.2";function My(e){return e>=0&&e<=255}function Vg(e,t){const{r:n,g:r,b:o,a:i}=new Tr(e).toRgb();if(i<1)return e;const{r:a,g:l,b:c}=new Tr(t).toRgb();for(let d=.01;d<=1;d+=.01){const h=Math.round((n-a*(1-d))/d),g=Math.round((r-l*(1-d))/d),p=Math.round((o-c*(1-d))/d);if(My(h)&&My(g)&&My(p))return new Tr({r:h,g,b:p,a:Math.round(d*100)/100}).toRgbString()}return new Tr({r:n,g:r,b:o,a:1}).toRgbString()}var PW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{delete r[p]});const o=Object.assign(Object.assign({},n),r),i=480,a=576,l=768,c=992,d=1200,h=1600;if(o.motion===!1){const p="0s";o.motionDurationFast=p,o.motionDurationMid=p,o.motionDurationSlow=p}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Vg(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:Vg(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Vg(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*4,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Vg(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:` 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:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:c-1,screenLG:c,screenLGMin:c,screenLGMax:d-1,screenXL:d,screenXLMin:d,screenXLMax:h-1,screenXXL:h,screenXXLMin:h,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` 0 1px 2px -2px ${new Tr("rgba(0, 0, 0, 0.16)").toRgbString()}, 0 3px 6px 0 ${new Tr("rgba(0, 0, 0, 0.12)").toRgbString()}, 0 5px 12px 4px ${new Tr("rgba(0, 0, 0, 0.09)").toRgbString()} `,boxShadowDrawerRight:` -6px 0 16px 0 rgba(0, 0, 0, 0.08), -3px 0 6px -4px rgba(0, 0, 0, 0.12), -9px 0 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowDrawerLeft:` 6px 0 16px 0 rgba(0, 0, 0, 0.08), 3px 0 6px -4px rgba(0, 0, 0, 0.12), 9px 0 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowDrawerUp:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowDrawerDown:` 0 -6px 16px 0 rgba(0, 0, 0, 0.08), 0 -3px 6px -4px rgba(0, 0, 0, 0.12), 0 -9px 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var DO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const r=n.getDerivativeToken(e),{override:o}=t,i=DO(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=hM(a),i&&Object.entries(i).forEach(l=>{let[c,d]=l;const{theme:h}=d,g=DO(d,["theme"]);let p=g;h&&(p=mM(Object.assign(Object.assign({},a),g),{override:g},h)),a[c]=p}),a};function Dr(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=se.useContext(fM),i=`${MW}-${t||""}`,a=n||dM,[l,c,d]=sH(a,[Vf,e],{salt:i,override:r,getComputedToken:mM,formatToken:hM,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:gM,ignore:pM,preserve:AW}});return[a,d,t?c:"",l,o]}function vM(e,t,n){return t=zu(t),I2(e,VC()?Reflect.construct(t,n||[],zu(e).constructor):t.apply(e,n))}let LW=Yr(function e(){Xr(this,e)});const yM=LW,bM="CALC_UNIT";function Py(e){return typeof e=="number"?`${e}${bM}`:e}let DW=function(e){function t(n){var r;return Xr(this,t),r=vM(this,t),r.result="",n instanceof t?r.result=`(${n.result})`:typeof n=="number"?r.result=Py(n):typeof n=="string"&&(r.result=n),r}return _l(t,e),Yr(t,[{key:"add",value:function(r){return r instanceof t?this.result=`${this.result} + ${r.getResult()}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} + ${Py(r)}`),this.lowPriority=!0,this}},{key:"sub",value:function(r){return r instanceof t?this.result=`${this.result} - ${r.getResult()}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} - ${Py(r)}`),this.lowPriority=!0,this}},{key:"mul",value:function(r){return this.lowPriority&&(this.result=`(${this.result})`),r instanceof t?this.result=`${this.result} * ${r.getResult(!0)}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} * ${r}`),this.lowPriority=!1,this}},{key:"div",value:function(r){return this.lowPriority&&(this.result=`(${this.result})`),r instanceof t?this.result=`${this.result} / ${r.getResult(!0)}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} / ${r}`),this.lowPriority=!1,this}},{key:"getResult",value:function(r){return this.lowPriority||r?`(${this.result})`:this.result}},{key:"equal",value:function(r){const{unit:o=!0}=r||{},i=new RegExp(`${bM}`,"g");return this.result=this.result.replace(i,o?"px":""),typeof this.lowPriority<"u"?`calc(${this.result})`:this.result}}])}(yM),BW=function(e){function t(n){var r;return Xr(this,t),r=vM(this,t),r.result=0,n instanceof t?r.result=n.result:typeof n=="number"&&(r.result=n),r}return _l(t,e),Yr(t,[{key:"add",value:function(r){return r instanceof t?this.result+=r.result:typeof r=="number"&&(this.result+=r),this}},{key:"sub",value:function(r){return r instanceof t?this.result-=r.result:typeof r=="number"&&(this.result-=r),this}},{key:"mul",value:function(r){return r instanceof t?this.result*=r.result:typeof r=="number"&&(this.result*=r),this}},{key:"div",value:function(r){return r instanceof t?this.result/=r.result:typeof r=="number"&&(this.result/=r),this}},{key:"equal",value:function(){return this.result}}])}(yM);const FW=e=>{const t=e==="css"?DW:BW;return n=>new t(n)};function yr(e){var t=u.useRef();t.current=e;var n=u.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),gc={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},cr=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},dv=()=>({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"}}),ys=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),zW=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,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),kW=(e,t,n)=>{const{fontFamily:r,fontSize:o}=e,i=`[class^="${t}"], [class*=" ${t}"]`;return{[n?`.${n}`:i]:{fontFamily:r,fontSize:o,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[i]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},fv=e=>({outline:`${oe(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),pc=e=>({"&:focus-visible":Object.assign({},fv(e))});function jW(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var t=arguments.length,n=new Array(t),r=0;roe(o)).join(",")})`},min:function(){for(var t=arguments.length,n=new Array(t),r=0;roe(o)).join(",")})`}}}const CM=typeof CSSINJS_STATISTIC<"u";let QS=!0;function pn(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(o).forEach(a=>{Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:()=>o[a]})})}),QS=!0,r}const BO={};function HW(){}const WW=e=>{let t,n=e,r=HW;return CM&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(o,i){return QS&&t.add(i),o[i]}}),r=(o,i)=>{var a;BO[o]={global:Array.from(t),component:Object.assign(Object.assign({},(a=BO[o])===null||a===void 0?void 0:a.component),i)}}),{token:n,keys:t,flush:r}},wM=(e,t)=>{const[n,r]=Dr();return US({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},dv()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},_M=(e,t,n)=>{var r;return typeof n=="function"?n(pn(t,(r=t[e])!==null&&r!==void 0?r:{})):n??{}},EM=(e,t,n,r)=>{const o=Object.assign({},t[e]);if(r!=null&&r.deprecatedTokens){const{deprecatedTokens:a}=r;a.forEach(l=>{let[c,d]=l;var h;(o!=null&&o[c]||o!=null&&o[d])&&((h=o[d])!==null&&h!==void 0||(o[d]=o==null?void 0:o[c]))})}const i=Object.assign(Object.assign({},n),o);return Object.keys(i).forEach(a=>{i[a]===t[a]&&delete i[a]}),i},UW=(e,t)=>`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function rw(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=Array.isArray(e)?e:[e,e],[i]=o,a=o.join("-");return function(l){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l;const[d,h,g,p,m]=Dr(),{getPrefixCls:v,iconPrefixCls:y,csp:w}=u.useContext(bt),C=v(),b=m?"css":"js",S=FW(b),{max:E,min:O}=jW(b),x={theme:d,token:p,hashId:g,nonce:()=>w==null?void 0:w.nonce,clientOnly:r.clientOnly,order:r.order||-999};return US(Object.assign(Object.assign({},x),{clientOnly:!1,path:["Shared",C]}),()=>[{"&":zW(p)}]),wM(y,w),[US(Object.assign(Object.assign({},x),{path:[a,l,y]}),()=>{if(r.injectStyle===!1)return[];const{token:R,flush:N}=WW(p),I=_M(i,h,n),P=`.${l}`,L=EM(i,h,I,{deprecatedTokens:r.deprecatedTokens});m&&Object.keys(I).forEach(W=>{I[W]=`var(${j2(W,UW(i,m.prefix))})`});const D=pn(R,{componentCls:P,prefixCls:l,iconCls:`.${y}`,antCls:`.${C}`,calc:S,max:E,min:O},m?I:L),z=t(D,{hashId:g,prefixCls:l,rootPrefixCls:C,iconPrefixCls:y});return N(i,L),[r.resetStyle===!1?null:kW(D,l,c),z]}),g]}}const hv=(e,t,n,r)=>{const o=rw(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return a=>{let{prefixCls:l,rootCls:c=l}=a;return o(l,c),null}},VW=(e,t,n)=>{function r(d){return`${e}${d.slice(0,1).toUpperCase()}${d.slice(1)}`}const{unitless:o={},injectStyle:i=!0}=n??{},a={[r("zIndexPopup")]:!0};Object.keys(o).forEach(d=>{a[r(d)]=o[d]});const l=d=>{let{rootCls:h,cssVar:g}=d;const[,p]=Dr();return DH({path:[e],prefix:g.prefix,key:g==null?void 0:g.key,unitless:Object.assign(Object.assign({},gM),a),ignore:pM,token:p,scope:h},()=>{const m=_M(e,p,t),v=EM(e,p,m,{deprecatedTokens:n==null?void 0:n.deprecatedTokens});return Object.keys(m).forEach(y=>{v[r(y)]=v[y],delete v[y]}),v}),null};return d=>{const[,,,,h]=Dr();return[g=>i&&h?se.createElement(se.Fragment,null,se.createElement(l,{rootCls:d,cssVar:h,component:e}),g):g,h==null?void 0:h.key]}},Zn=(e,t,n,r)=>{const o=rw(e,t,n,r),i=VW(Array.isArray(e)?e[0]:e,n,r);return function(a){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:a;const[,c]=o(a,l),[d,h]=i(l);return[d,c,h]}};function KW(e,t){return hm.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))},{})}const GW=Object.assign({},Am),{useId:FO}=GW,XW=()=>"",YW=typeof FO>"u"?XW:FO;function qW(e,t,n){var r;ch();const o=e||{},i=o.inherit===!1||!t?Object.assign(Object.assign({},XS),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:XS.hashed,cssVar:t==null?void 0:t.cssVar}):t,a=YW();return sh(()=>{var l,c;if(!e)return t;const d=Object.assign({},i.components);Object.keys(e.components||{}).forEach(p=>{d[p]=Object.assign(Object.assign({},d[p]),e.components[p])});const h=`css-var-${a.replace(/:/g,"")}`,g=((l=o.cssVar)!==null&&l!==void 0?l:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof i.cssVar=="object"?i.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((c=o.cssVar)===null||c===void 0?void 0:c.key)||h});return Object.assign(Object.assign(Object.assign({},i),o),{token:Object.assign(Object.assign({},i.token),o.token),components:d,cssVar:g})},[o,i],(l,c)=>l.some((d,h)=>{const g=c[h];return!Hf(d,g,!0)}))}var QW=["children"],xM=u.createContext({});function ZW(e){var t=e.children,n=Mt(e,QW);return u.createElement(xM.Provider,{value:n},t)}var JW=function(e){_l(n,e);var t=Cc(n);function n(){return Xr(this,n),t.apply(this,arguments)}return Yr(n,[{key:"render",value:function(){return this.props.children}}]),n}(u.Component),Gs="none",Kg="appear",Gg="enter",Xg="leave",zO="none",sa="prepare",yu="start",bu="active",ow="end",OM="prepared";function kO(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function e7(e,t){var n={animationend:kO("Animation","AnimationEnd"),transitionend:kO("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var t7=e7(ho(),typeof window<"u"?window:{}),TM={};if(ho()){var n7=document.createElement("div");TM=n7.style}var Yg={};function $M(e){if(Yg[e])return Yg[e];var t=t7[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o1&&arguments[1]!==void 0?arguments[1]:2;t();var i=bn(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i}return u.useEffect(function(){return function(){t()}},[]),[n,t]};var i7=[sa,yu,bu,ow],a7=[sa,OM],PM=!1,l7=!0;function AM(e){return e===bu||e===ow}const s7=function(e,t,n){var r=gs(zO),o=de(r,2),i=o[0],a=o[1],l=o7(),c=de(l,2),d=c[0],h=c[1];function g(){a(sa,!0)}var p=t?a7:i7;return MM(function(){if(i!==zO&&i!==ow){var m=p.indexOf(i),v=p[m+1],y=n(i);y===PM?a(v,!0):v&&d(function(w){function C(){w.isCanceled()||a(v,!0)}y===!0?C():Promise.resolve(y).then(C)})}},[e,i]),u.useEffect(function(){return function(){h()}},[]),[g,i]};function c7(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,a=r.motionAppear,l=a===void 0?!0:a,c=r.motionLeave,d=c===void 0?!0:c,h=r.motionDeadline,g=r.motionLeaveImmediately,p=r.onAppearPrepare,m=r.onEnterPrepare,v=r.onLeavePrepare,y=r.onAppearStart,w=r.onEnterStart,C=r.onLeaveStart,b=r.onAppearActive,S=r.onEnterActive,E=r.onLeaveActive,O=r.onAppearEnd,x=r.onEnterEnd,T=r.onLeaveEnd,R=r.onVisibleChanged,N=gs(),I=de(N,2),P=I[0],L=I[1],D=gs(Gs),z=de(D,2),W=z[0],B=z[1],M=gs(null),A=de(M,2),U=A[0],j=A[1],G=u.useRef(!1),X=u.useRef(null);function re(){return n()}var te=u.useRef(!1);function Z(){B(Gs,!0),j(null,!0)}function he(me){var ve=re();if(!(me&&!me.deadline&&me.target!==ve)){var xe=te.current,Ae;W===Kg&&xe?Ae=O==null?void 0:O(ve,me):W===Gg&&xe?Ae=x==null?void 0:x(ve,me):W===Xg&&xe&&(Ae=T==null?void 0:T(ve,me)),W!==Gs&&xe&&Ae!==!1&&Z()}}var ge=r7(he),ce=de(ge,1),be=ce[0],pe=function(ve){var xe,Ae,Pe;switch(ve){case Kg:return xe={},K(xe,sa,p),K(xe,yu,y),K(xe,bu,b),xe;case Gg:return Ae={},K(Ae,sa,m),K(Ae,yu,w),K(Ae,bu,S),Ae;case Xg:return Pe={},K(Pe,sa,v),K(Pe,yu,C),K(Pe,bu,E),Pe;default:return{}}},ae=u.useMemo(function(){return pe(W)},[W]),J=s7(W,!e,function(me){if(me===sa){var ve=ae[sa];return ve?ve(re()):PM}if(Ce in ae){var xe;j(((xe=ae[Ce])===null||xe===void 0?void 0:xe.call(ae,re(),null))||null)}return Ce===bu&&(be(re()),h>0&&(clearTimeout(X.current),X.current=setTimeout(function(){he({deadline:!0})},h))),Ce===OM&&Z(),l7}),ue=de(J,2),ie=ue[0],Ce=ue[1],Oe=AM(Ce);te.current=Oe,MM(function(){L(t);var me=G.current;G.current=!0;var ve;!me&&t&&l&&(ve=Kg),me&&t&&i&&(ve=Gg),(me&&!t&&d||!me&&g&&!t&&d)&&(ve=Xg);var xe=pe(ve);ve&&(e||xe[sa])?(B(ve),ie()):B(Gs)},[t]),u.useEffect(function(){(W===Kg&&!l||W===Gg&&!i||W===Xg&&!d)&&B(Gs)},[l,i,d]),u.useEffect(function(){return function(){G.current=!1,clearTimeout(X.current)}},[]);var Te=u.useRef(!1);u.useEffect(function(){P&&(Te.current=!0),P!==void 0&&W===Gs&&((Te.current||P)&&(R==null||R(P)),Te.current=!0)},[P,W]);var Me=U;return ae[sa]&&Ce===yu&&(Me=Q({transition:"none"},Me)),[W,Ce,Me,P??t]}function u7(e){var t=e;Pt(e)==="object"&&(t=e.transitionSupport);function n(o,i){return!!(o.motionName&&t&&i!==!1)}var r=u.forwardRef(function(o,i){var a=o.visible,l=a===void 0?!0:a,c=o.removeOnLeave,d=c===void 0?!0:c,h=o.forceRender,g=o.children,p=o.motionName,m=o.leavedClassName,v=o.eventProps,y=u.useContext(xM),w=y.motion,C=n(o,w),b=u.useRef(),S=u.useRef();function E(){try{return b.current instanceof HTMLElement?b.current:pf(S.current)}catch{return null}}var O=c7(C,l,E,o),x=de(O,4),T=x[0],R=x[1],N=x[2],I=x[3],P=u.useRef(I);I&&(P.current=!0);var L=u.useCallback(function(j){b.current=j,UC(i,j)},[i]),D,z=Q(Q({},v),{},{visible:l});if(!g)D=null;else if(T===Gs)I?D=g(Q({},z),L):!d&&P.current&&m?D=g(Q(Q({},z),{},{className:m}),L):h||!d&&!m?D=g(Q(Q({},z),{},{style:{display:"none"}}),L):D=null;else{var W,B;R===sa?B="prepare":AM(R)?B="active":R===yu&&(B="start");var M=WO(p,"".concat(T,"-").concat(B));D=g(Q(Q({},z),{},{className:ne(WO(p,T),(W={},K(W,M,M&&B),K(W,p,typeof p=="string"),W)),style:N}),L)}if(u.isValidElement(D)&&wl(D)){var A=D,U=A.ref;U||(D=u.cloneElement(D,{ref:L}))}return u.createElement(JW,{ref:S},D)});return r.displayName="CSSMotion",r}const Sa=u7(NM);var ZS="add",JS="keep",e1="remove",Ly="removed";function d7(e){var t;return e&&Pt(e)==="object"&&"key"in e?t=e:t={key:e},Q(Q({},t),{},{key:String(t.key)})}function t1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(d7)}function f7(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,i=t1(e),a=t1(t);i.forEach(function(d){for(var h=!1,g=r;g1});return c.forEach(function(d){n=n.filter(function(h){var g=h.key,p=h.status;return g!==d||p!==e1}),n.forEach(function(h){h.key===d&&(h.status=JS)})}),n}var h7=["component","children","onVisibleChanged","onAllRemoved"],g7=["status"],p7=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function m7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Sa,n=function(r){_l(i,r);var o=Cc(i);function i(){var a;Xr(this,i);for(var l=arguments.length,c=new Array(l),d=0;dnull;var b7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);ot.endsWith("Color"))}const E7=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(gm=t),n!==void 0&&(DM=n),"holderRender"in e&&(FM=o),r&&(_7(r)?RW($p(),r):BM=r)},zM=()=>({getPrefixCls:(e,t)=>t||(e?`${$p()}-${e}`:$p()),getIconPrefixCls:w7,getRootPrefixCls:()=>gm||$p(),getTheme:()=>BM,holderRender:FM}),x7=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:l,componentSize:c,direction:d,space:h,virtual:g,dropdownMatchSelectWidth:p,popupMatchSelectWidth:m,popupOverflow:v,legacyLocale:y,parentContext:w,iconPrefixCls:C,theme:b,componentDisabled:S,segmented:E,statistic:O,spin:x,calendar:T,carousel:R,cascader:N,collapse:I,typography:P,checkbox:L,descriptions:D,divider:z,drawer:W,skeleton:B,steps:M,image:A,layout:U,list:j,mentions:G,modal:X,progress:re,result:te,slider:Z,breadcrumb:he,menu:ge,pagination:ce,input:be,textArea:pe,empty:ae,badge:J,radio:ue,rate:ie,switch:Ce,transfer:Oe,avatar:Te,message:Me,tag:me,table:ve,card:xe,tabs:Ae,timeline:Pe,timePicker:Fe,upload:Ee,notification:Ie,tree:je,colorPicker:Le,datePicker:Ue,rangePicker:Ve,flex:We,wave:Ke,dropdown:Et,warning:ht,tour:At,floatButtonGroup:Kt}=e,He=u.useCallback((Xe,mt)=>{const{prefixCls:Bt}=e;if(mt)return mt;const Ye=Bt||w.getPrefixCls("");return Xe?`${Ye}-${Xe}`:Ye},[w.getPrefixCls,e.prefixCls]),Qe=C||w.iconPrefixCls||tw,It=n||w.csp;wM(Qe,It);const Ht=qW(b,w.theme,{prefixCls:He("")}),sn={csp:It,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:l||y,direction:d,space:h,virtual:g,popupMatchSelectWidth:m??p,popupOverflow:v,getPrefixCls:He,iconPrefixCls:Qe,theme:Ht,segmented:E,statistic:O,spin:x,calendar:T,carousel:R,cascader:N,collapse:I,typography:P,checkbox:L,descriptions:D,divider:z,drawer:W,skeleton:B,steps:M,image:A,input:be,textArea:pe,layout:U,list:j,mentions:G,modal:X,progress:re,result:te,slider:Z,breadcrumb:he,menu:ge,pagination:ce,empty:ae,badge:J,radio:ue,rate:ie,switch:Ce,transfer:Oe,avatar:Te,message:Me,tag:me,table:ve,card:xe,tabs:Ae,timeline:Pe,timePicker:Fe,upload:Ee,notification:Ie,tree:je,colorPicker:Le,datePicker:Ue,rangePicker:Ve,flex:We,wave:Ke,dropdown:Et,warning:ht,tour:At,floatButtonGroup:Kt},vn=Object.assign({},w);Object.keys(sn).forEach(Xe=>{sn[Xe]!==void 0&&(vn[Xe]=sn[Xe])}),S7.forEach(Xe=>{const mt=e[Xe];mt&&(vn[Xe]=mt)});const Vt=sh(()=>vn,vn,(Xe,mt)=>{const Bt=Object.keys(Xe),Ye=Object.keys(mt);return Bt.length!==Ye.length||Bt.some(lt=>Xe[lt]!==mt[lt])}),Lt=u.useMemo(()=>({prefixCls:Qe,csp:It}),[Qe,It]);let rt=u.createElement(u.Fragment,null,u.createElement(y7,{dropdownMatchSelectWidth:p}),t);const xt=u.useMemo(()=>{var Xe,mt,Bt,Ye;return vu(((Xe=vs.Form)===null||Xe===void 0?void 0:Xe.defaultValidateMessages)||{},((Bt=(mt=Vt.locale)===null||mt===void 0?void 0:mt.Form)===null||Bt===void 0?void 0:Bt.defaultValidateMessages)||{},((Ye=Vt.form)===null||Ye===void 0?void 0:Ye.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[Vt,a==null?void 0:a.validateMessages]);Object.keys(xt).length>0&&(rt=u.createElement(oM.Provider,{value:xt},rt)),l&&(rt=u.createElement(qH,{locale:l,_ANT_MARK__:XH},rt)),(Qe||It)&&(rt=u.createElement(JC.Provider,{value:Lt},rt)),c&&(rt=u.createElement(IW,{size:c},rt)),rt=u.createElement(v7,null,rt);const at=u.useMemo(()=>{const Xe=Ht||{},{algorithm:mt,token:Bt,components:Ye,cssVar:lt}=Xe,et=b7(Xe,["algorithm","token","components","cssVar"]),gt=mt&&(!Array.isArray(mt)||mt.length>0)?FS(mt):dM,_t={};Object.entries(Ye||{}).forEach(_n=>{let[mn,Nt]=_n;const Ze=Object.assign({},Nt);"algorithm"in Ze&&(Ze.algorithm===!0?Ze.theme=gt:(Array.isArray(Ze.algorithm)||typeof Ze.algorithm=="function")&&(Ze.theme=FS(Ze.algorithm)),delete Ze.algorithm),_t[mn]=Ze});const vt=Object.assign(Object.assign({},Vf),Bt);return Object.assign(Object.assign({},et),{theme:gt,token:vt,components:_t,override:Object.assign({override:vt},_t),cssVar:lt})},[Ht]);return b&&(rt=u.createElement(fM.Provider,{value:at},rt)),Vt.warning&&(rt=u.createElement(jH.Provider,{value:Vt.warning},rt)),S!==void 0&&(rt=u.createElement(nw,{disabled:S},rt)),u.createElement(bt.Provider,{value:Vt},rt)},qu=e=>{const t=u.useContext(bt),n=u.useContext(ew);return u.createElement(x7,Object.assign({parentContext:t,legacyLocale:n},e))};qu.ConfigContext=bt;qu.SizeContext=uh;qu.config=E7;qu.useConfig=NW;Object.defineProperty(qu,"SizeContext",{get:()=>uh});const dh=qu;var O7={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 T7=O7;function kM(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function $7(e){return kM(e)instanceof ShadowRoot}function pm(e){return $7(e)?kM(e):null}function R7(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function I7(e,t){Vn(e,"[@ant-design/icons] ".concat(t))}function UO(e){return Pt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Pt(e.icon)==="object"||typeof e.icon=="function")}function VO(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[R7(n)]=r}return t},{})}function n1(e,t,n){return n?se.createElement(e.tag,Q(Q({key:t},VO(e.attrs)),n),(e.children||[]).map(function(r,o){return n1(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):se.createElement(e.tag,Q({key:t},VO(e.attrs)),(e.children||[]).map(function(r,o){return n1(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function jM(e){return hc(e)[0]}function HM(e){return e?Array.isArray(e)?e:[e]:[]}var N7=` .anticon { display: inline-flex; alignItems: center; color: inherit; font-style: normal; line-height: 0; text-align: center; text-transform: none; vertical-align: -0.125em; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .anticon > * { line-height: 1; } .anticon svg { display: inline-block; } .anticon::before { display: none; } .anticon .anticon-icon { display: block; } .anticon[tabindex] { cursor: pointer; } .anticon-spin::before, .anticon-spin { display: inline-block; -webkit-animation: loadingCircle 1s infinite linear; animation: loadingCircle 1s infinite linear; } @-webkit-keyframes loadingCircle { 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } @keyframes loadingCircle { 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } `,M7=function(t){var n=u.useContext(JC),r=n.csp,o=n.prefixCls,i=N7;o&&(i=i.replace(/anticon/g,o)),u.useEffect(function(){var a=t.current,l=pm(a);fl(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:l})},[])},P7=["icon","className","onClick","style","primaryColor","secondaryColor"],yf={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function A7(e){var t=e.primaryColor,n=e.secondaryColor;yf.primaryColor=t,yf.secondaryColor=n||jM(t),yf.calculated=!!n}function L7(){return Q({},yf)}var gv=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,l=t.secondaryColor,c=Mt(t,P7),d=u.useRef(),h=yf;if(a&&(h={primaryColor:a,secondaryColor:l||jM(a)}),M7(d),I7(UO(n),"icon should be icon definiton, but got ".concat(n)),!UO(n))return null;var g=n;return g&&typeof g.icon=="function"&&(g=Q(Q({},g),{},{icon:g.icon(h.primaryColor,h.secondaryColor)})),n1(g.icon,"svg-".concat(g.name),Q(Q({className:r,onClick:o,style:i,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:d}))};gv.displayName="IconReact";gv.getTwoToneColors=L7;gv.setTwoToneColors=A7;const iw=gv;function WM(e){var t=HM(e),n=de(t,2),r=n[0],o=n[1];return iw.setTwoToneColors({primaryColor:r,secondaryColor:o})}function D7(){var e=iw.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var B7=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];WM(gW.primary);var pv=u.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,l=e.onClick,c=e.twoToneColor,d=Mt(e,B7),h=u.useContext(JC),g=h.prefixCls,p=g===void 0?"anticon":g,m=h.rootClassName,v=ne(m,p,K(K({},"".concat(p,"-").concat(r.name),!!r.name),"".concat(p,"-spin"),!!o||r.name==="loading"),n),y=a;y===void 0&&l&&(y=-1);var w=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,C=HM(c),b=de(C,2),S=b[0],E=b[1];return u.createElement("span",De({role:"img","aria-label":r.name},d,{ref:t,tabIndex:y,onClick:l,className:v}),u.createElement(iw,{icon:r,primaryColor:S,secondaryColor:E,style:w}))});pv.displayName="AntdIcon";pv.getTwoToneColor=D7;pv.setTwoToneColor=WM;const Sn=pv;var F7=function(t,n){return u.createElement(Sn,De({},t,{ref:n,icon:T7}))},z7=u.forwardRef(F7);const aw=z7;var k7={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"};const j7=k7;var H7=function(t,n){return u.createElement(Sn,De({},t,{ref:n,icon:j7}))},W7=u.forwardRef(H7);const Qu=W7;var U7={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"};const V7=U7;var K7=function(t,n){return u.createElement(Sn,De({},t,{ref:n,icon:V7}))},G7=u.forwardRef(K7);const Zu=G7;var X7={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"};const Y7=X7;var q7=function(t,n){return u.createElement(Sn,De({},t,{ref:n,icon:Y7}))},Q7=u.forwardRef(q7);const lw=Q7;var Z7={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"};const J7=Z7;var eU=function(t,n){return u.createElement(Sn,De({},t,{ref:n,icon:J7}))},tU=u.forwardRef(eU);const UM=tU;var nU=`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`,rU=`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`,oU="".concat(nU," ").concat(rU).split(/[\s\n]+/),iU="aria-",aU="data-";function KO(e,t){return e.indexOf(t)===0}function ya(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=Q({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||KO(o,iU))||n.data&&KO(o,aU)||n.attr&&oU.includes(o))&&(r[o]=e[o])}),r}function VM(e){return e&&se.isValidElement(e)&&e.type===se.Fragment}const lU=(e,t,n)=>se.isValidElement(e)?se.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Oo(e,t){return lU(e,e,t)}const GO=e=>typeof e=="object"&&e!=null&&e.nodeType===1,XO=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Dy=(e,t)=>{if(e.clientHeight{const o=(i=>{if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeightit||i>e&&a=t&&l>=n?i-e-r:a>t&&ln?a-t+o:0,sU=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},YO=(e,t)=>{var n,r,o,i;if(typeof document>"u")return[];const{scrollMode:a,block:l,inline:c,boundary:d,skipOverflowHiddenElements:h}=t,g=typeof d=="function"?d:B=>B!==d;if(!GO(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,m=[];let v=e;for(;GO(v)&&g(v);){if(v=sU(v),v===p){m.push(v);break}v!=null&&v===document.body&&Dy(v)&&!Dy(document.documentElement)||v!=null&&Dy(v,h)&&m.push(v)}const y=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,w=(i=(o=window.visualViewport)==null?void 0:o.height)!=null?i:innerHeight,{scrollX:C,scrollY:b}=window,{height:S,width:E,top:O,right:x,bottom:T,left:R}=e.getBoundingClientRect(),{top:N,right:I,bottom:P,left:L}=(B=>{const M=window.getComputedStyle(B);return{top:parseFloat(M.scrollMarginTop)||0,right:parseFloat(M.scrollMarginRight)||0,bottom:parseFloat(M.scrollMarginBottom)||0,left:parseFloat(M.scrollMarginLeft)||0}})(e);let D=l==="start"||l==="nearest"?O-N:l==="end"?T+P:O+S/2-N+P,z=c==="center"?R+E/2-L+I:c==="end"?x+I:R-L;const W=[];for(let B=0;B=0&&R>=0&&T<=w&&x<=y&&O>=j&&T<=X&&R>=re&&x<=G)return W;const te=getComputedStyle(M),Z=parseInt(te.borderLeftWidth,10),he=parseInt(te.borderTopWidth,10),ge=parseInt(te.borderRightWidth,10),ce=parseInt(te.borderBottomWidth,10);let be=0,pe=0;const ae="offsetWidth"in M?M.offsetWidth-M.clientWidth-Z-ge:0,J="offsetHeight"in M?M.offsetHeight-M.clientHeight-he-ce:0,ue="offsetWidth"in M?M.offsetWidth===0?0:U/M.offsetWidth:0,ie="offsetHeight"in M?M.offsetHeight===0?0:A/M.offsetHeight:0;if(p===M)be=l==="start"?D:l==="end"?D-w:l==="nearest"?qg(b,b+w,w,he,ce,b+D,b+D+S,S):D-w/2,pe=c==="start"?z:c==="center"?z-y/2:c==="end"?z-y:qg(C,C+y,y,Z,ge,C+z,C+z+E,E),be=Math.max(0,be+b),pe=Math.max(0,pe+C);else{be=l==="start"?D-j-he:l==="end"?D-X+ce+J:l==="nearest"?qg(j,X,A,he,ce+J,D,D+S,S):D-(j+A/2)+J/2,pe=c==="start"?z-re-Z:c==="center"?z-(re+U/2)+ae/2:c==="end"?z-G+ge+ae:qg(re,G,U,Z,ge+ae,z,z+E,E);const{scrollLeft:Ce,scrollTop:Oe}=M;be=ie===0?0:Math.max(0,Math.min(Oe+be/ie,M.scrollHeight-A/ie+J)),pe=ue===0?0:Math.max(0,Math.min(Ce+pe/ue,M.scrollWidth-U/ue+ae)),D+=Oe-be,z+=Ce-pe}W.push({el:M,top:be,left:pe})}return W},cU=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function uU(e,t){if(!e.isConnected||!(o=>{let i=o;for(;i&&i.parentNode;){if(i.parentNode===document)return!0;i=i.parentNode instanceof ShadowRoot?i.parentNode.host:i.parentNode}return!1})(e))return;const n=(o=>{const i=window.getComputedStyle(o);return{top:parseFloat(i.scrollMarginTop)||0,right:parseFloat(i.scrollMarginRight)||0,bottom:parseFloat(i.scrollMarginBottom)||0,left:parseFloat(i.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(YO(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:i,left:a}of YO(e,cU(t))){const l=i-n.top+n.bottom,c=a-n.left+n.right;o.scroll({top:l,left:c,behavior:r})}}const Yo=e=>{const[,,,,t]=Dr();return t?`${e}-css-var`:""};var _e={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=_e.F1&&n<=_e.F12)return!1;switch(n){case _e.ALT:case _e.CAPS_LOCK:case _e.CONTEXT_MENU:case _e.CTRL:case _e.DOWN:case _e.END:case _e.ESC:case _e.HOME:case _e.INSERT:case _e.LEFT:case _e.MAC_FF_META:case _e.META:case _e.NUMLOCK:case _e.NUM_CENTER:case _e.PAGE_DOWN:case _e.PAGE_UP:case _e.PAUSE:case _e.PRINT_SCREEN:case _e.RIGHT:case _e.SHIFT:case _e.UP:case _e.WIN_KEY:case _e.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=_e.ZERO&&t<=_e.NINE||t>=_e.NUM_ZERO&&t<=_e.NUM_MULTIPLY||t>=_e.A&&t<=_e.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case _e.SPACE:case _e.QUESTION_MARK:case _e.NUM_PLUS:case _e.NUM_MINUS:case _e.NUM_PERIOD:case _e.NUM_DIVISION:case _e.SEMICOLON:case _e.DASH:case _e.EQUALS:case _e.COMMA:case _e.PERIOD:case _e.SLASH:case _e.APOSTROPHE:case _e.SINGLE_QUOTE:case _e.OPEN_SQUARE_BRACKET:case _e.BACKSLASH:case _e.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},KM=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,i=e.duration,a=i===void 0?4.5:i,l=e.eventKey,c=e.content,d=e.closable,h=e.closeIcon,g=h===void 0?"x":h,p=e.props,m=e.onClick,v=e.onNoticeClose,y=e.times,w=e.hovering,C=u.useState(!1),b=de(C,2),S=b[0],E=b[1],O=w||S,x=function(){v(l)},T=function(L){(L.key==="Enter"||L.code==="Enter"||L.keyCode===_e.ENTER)&&x()};u.useEffect(function(){if(!O&&a>0){var P=setTimeout(function(){x()},a*1e3);return function(){clearTimeout(P)}}},[a,O,y]);var R=u.useMemo(function(){return Pt(d)==="object"&&d!==null?d:d?{closeIcon:g}:{}},[d,g]),N=ya(R,!0),I="".concat(n,"-notice");return u.createElement("div",De({},p,{ref:t,className:ne(I,o,K({},"".concat(I,"-closable"),d)),style:r,onMouseEnter:function(L){var D;E(!0),p==null||(D=p.onMouseEnter)===null||D===void 0||D.call(p,L)},onMouseLeave:function(L){var D;E(!1),p==null||(D=p.onMouseLeave)===null||D===void 0||D.call(p,L)},onClick:m}),u.createElement("div",{className:"".concat(I,"-content")},c),d&&u.createElement("a",De({tabIndex:0,className:"".concat(I,"-close"),onKeyDown:T,"aria-label":"Close"},N,{onClick:function(L){L.preventDefault(),L.stopPropagation(),x()}}),R.closeIcon))}),GM=se.createContext({}),dU=function(t){var n=t.children,r=t.classNames;return se.createElement(GM.Provider,{value:{classNames:r}},n)},qO=8,QO=3,ZO=16,fU=function(t){var n={offset:qO,threshold:QO,gap:ZO};if(t&&Pt(t)==="object"){var r,o,i;n.offset=(r=t.offset)!==null&&r!==void 0?r:qO,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:QO,n.gap=(i=t.gap)!==null&&i!==void 0?i:ZO}return[!!t,n]},hU=["className","style","classNames","styles"],gU=function(t){var n=t.configList,r=t.placement,o=t.prefixCls,i=t.className,a=t.style,l=t.motion,c=t.onAllNoticeRemoved,d=t.onNoticeClose,h=t.stack,g=u.useContext(GM),p=g.classNames,m=u.useRef({}),v=u.useState(null),y=de(v,2),w=y[0],C=y[1],b=u.useState([]),S=de(b,2),E=S[0],O=S[1],x=n.map(function(B){return{config:B,key:String(B.key)}}),T=fU(h),R=de(T,2),N=R[0],I=R[1],P=I.offset,L=I.threshold,D=I.gap,z=N&&(E.length>0||x.length<=L),W=typeof l=="function"?l(r):l;return u.useEffect(function(){N&&E.length>1&&O(function(B){return B.filter(function(M){return x.some(function(A){var U=A.key;return M===U})})})},[E,x,N]),u.useEffect(function(){var B;if(N&&m.current[(B=x[x.length-1])===null||B===void 0?void 0:B.key]){var M;C(m.current[(M=x[x.length-1])===null||M===void 0?void 0:M.key])}},[x,N]),se.createElement(LM,De({key:r,className:ne(o,"".concat(o,"-").concat(r),p==null?void 0:p.list,i,K(K({},"".concat(o,"-stack"),!!N),"".concat(o,"-stack-expanded"),z)),style:a,keys:x,motionAppear:!0},W,{onAllRemoved:function(){c(r)}}),function(B,M){var A=B.config,U=B.className,j=B.style,G=B.index,X=A,re=X.key,te=X.times,Z=String(re),he=A,ge=he.className,ce=he.style,be=he.classNames,pe=he.styles,ae=Mt(he,hU),J=x.findIndex(function(Fe){return Fe.key===Z}),ue={};if(N){var ie=x.length-1-(J>-1?J:G-1),Ce=r==="top"||r==="bottom"?"-50%":"0";if(ie>0){var Oe,Te,Me;ue.height=z?(Oe=m.current[Z])===null||Oe===void 0?void 0:Oe.offsetHeight:w==null?void 0:w.offsetHeight;for(var me=0,ve=0;ve-1?m.current[Z]=Ee:delete m.current[Z]},prefixCls:o,classNames:be,styles:pe,className:ne(ge,p==null?void 0:p.notice),style:ce,times:te,key:re,eventKey:re,onNoticeClose:d,hovering:N&&E.length>0})))})},pU=u.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,i=e.motion,a=e.maxCount,l=e.className,c=e.style,d=e.onAllRemoved,h=e.stack,g=e.renderNotifications,p=u.useState([]),m=de(p,2),v=m[0],y=m[1],w=function(N){var I,P=v.find(function(L){return L.key===N});P==null||(I=P.onClose)===null||I===void 0||I.call(P),y(function(L){return L.filter(function(D){return D.key!==N})})};u.useImperativeHandle(t,function(){return{open:function(N){y(function(I){var P=Be(I),L=P.findIndex(function(W){return W.key===N.key}),D=Q({},N);if(L>=0){var z;D.times=(((z=I[L])===null||z===void 0?void 0:z.times)||0)+1,P[L]=D}else D.times=0,P.push(D);return a>0&&P.length>a&&(P=P.slice(-a)),P})},close:function(N){w(N)},destroy:function(){y([])}}});var C=u.useState({}),b=de(C,2),S=b[0],E=b[1];u.useEffect(function(){var R={};v.forEach(function(N){var I=N.placement,P=I===void 0?"topRight":I;P&&(R[P]=R[P]||[],R[P].push(N))}),Object.keys(S).forEach(function(N){R[N]=R[N]||[]}),E(R)},[v]);var O=function(N){E(function(I){var P=Q({},I),L=P[N]||[];return L.length||delete P[N],P})},x=u.useRef(!1);if(u.useEffect(function(){Object.keys(S).length>0?x.current=!0:x.current&&(d==null||d(),x.current=!1)},[S]),!o)return null;var T=Object.keys(S);return va.createPortal(u.createElement(u.Fragment,null,T.map(function(R){var N=S[R],I=u.createElement(gU,{key:R,configList:N,placement:R,prefixCls:r,className:l==null?void 0:l(R),style:c==null?void 0:c(R),motion:i,onNoticeClose:w,onAllNoticeRemoved:O,stack:h});return g?g(I,{prefixCls:r,key:R}):I})),o)}),mU=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],vU=function(){return document.body},JO=0;function yU(){for(var e={},t=arguments.length,n=new Array(t),r=0;r0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?vU:t,r=e.motion,o=e.prefixCls,i=e.maxCount,a=e.className,l=e.style,c=e.onAllRemoved,d=e.stack,h=e.renderNotifications,g=Mt(e,mU),p=u.useState(),m=de(p,2),v=m[0],y=m[1],w=u.useRef(),C=u.createElement(pU,{container:v,ref:w,prefixCls:o,motion:r,maxCount:i,className:a,style:l,onAllRemoved:c,stack:d,renderNotifications:h}),b=u.useState([]),S=de(b,2),E=S[0],O=S[1],x=u.useMemo(function(){return{open:function(R){var N=yU(g,R);(N.key===null||N.key===void 0)&&(N.key="rc-notification-".concat(JO),JO+=1),O(function(I){return[].concat(Be(I),[{type:"open",config:N}])})},close:function(R){O(function(N){return[].concat(Be(N),[{type:"close",key:R}])})},destroy:function(){O(function(R){return[].concat(Be(R),[{type:"destroy"}])})}}},[]);return u.useEffect(function(){y(n())}),u.useEffect(function(){w.current&&E.length&&(E.forEach(function(T){switch(T.type){case"open":w.current.open(T.config);break;case"close":w.current.close(T.key);break;case"destroy":w.current.destroy();break}}),O(function(T){return T.filter(function(R){return!E.includes(R)})}))},[E]),[x,C]}var SU={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"};const CU=SU;var wU=function(t,n){return u.createElement(Sn,De({},t,{ref:n,icon:CU}))},_U=u.forwardRef(wU);const fh=_U,mv=se.createContext(void 0),Xs=100,EU=10,sw=Xs*EU,XM={Modal:Xs,Drawer:Xs,Popover:Xs,Popconfirm:Xs,Tooltip:Xs,Tour:Xs},xU={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function OU(e){return e in XM}function hh(e,t){const[,n]=Dr(),r=se.useContext(mv),o=OU(e);if(t!==void 0)return[t,t];let i=r??0;return o?(i+=(r?0:n.zIndexPopupBase)+XM[e],i=Math.min(i,n.zIndexPopupBase+sw)):i+=xU[e],[r===void 0?t:i,i]}function TU(){const[e,t]=u.useState([]),n=u.useCallback(r=>(t(o=>[].concat(Be(o),[r])),()=>{t(o=>o.filter(i=>i!==r))}),[]);return[e,n]}function To(){To=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(B,M,A){B[M]=A.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function d(B,M,A){return Object.defineProperty(B,M,{value:A,enumerable:!0,configurable:!0,writable:!0}),B[M]}try{d({},"")}catch{d=function(A,U,j){return A[U]=j}}function h(B,M,A,U){var j=M&&M.prototype instanceof C?M:C,G=Object.create(j.prototype),X=new z(U||[]);return o(G,"_invoke",{value:I(B,A,X)}),G}function g(B,M,A){try{return{type:"normal",arg:B.call(M,A)}}catch(U){return{type:"throw",arg:U}}}t.wrap=h;var p="suspendedStart",m="suspendedYield",v="executing",y="completed",w={};function C(){}function b(){}function S(){}var E={};d(E,a,function(){return this});var O=Object.getPrototypeOf,x=O&&O(O(W([])));x&&x!==n&&r.call(x,a)&&(E=x);var T=S.prototype=C.prototype=Object.create(E);function R(B){["next","throw","return"].forEach(function(M){d(B,M,function(A){return this._invoke(M,A)})})}function N(B,M){function A(j,G,X,re){var te=g(B[j],B,G);if(te.type!=="throw"){var Z=te.arg,he=Z.value;return he&&Pt(he)=="object"&&r.call(he,"__await")?M.resolve(he.__await).then(function(ge){A("next",ge,X,re)},function(ge){A("throw",ge,X,re)}):M.resolve(he).then(function(ge){Z.value=ge,X(Z)},function(ge){return A("throw",ge,X,re)})}re(te.arg)}var U;o(this,"_invoke",{value:function(G,X){function re(){return new M(function(te,Z){A(G,X,te,Z)})}return U=U?U.then(re,re):re()}})}function I(B,M,A){var U=p;return function(j,G){if(U===v)throw Error("Generator is already running");if(U===y){if(j==="throw")throw G;return{value:e,done:!0}}for(A.method=j,A.arg=G;;){var X=A.delegate;if(X){var re=P(X,A);if(re){if(re===w)continue;return re}}if(A.method==="next")A.sent=A._sent=A.arg;else if(A.method==="throw"){if(U===p)throw U=y,A.arg;A.dispatchException(A.arg)}else A.method==="return"&&A.abrupt("return",A.arg);U=v;var te=g(B,M,A);if(te.type==="normal"){if(U=A.done?y:m,te.arg===w)continue;return{value:te.arg,done:A.done}}te.type==="throw"&&(U=y,A.method="throw",A.arg=te.arg)}}}function P(B,M){var A=M.method,U=B.iterator[A];if(U===e)return M.delegate=null,A==="throw"&&B.iterator.return&&(M.method="return",M.arg=e,P(B,M),M.method==="throw")||A!=="return"&&(M.method="throw",M.arg=new TypeError("The iterator does not provide a '"+A+"' method")),w;var j=g(U,B.iterator,M.arg);if(j.type==="throw")return M.method="throw",M.arg=j.arg,M.delegate=null,w;var G=j.arg;return G?G.done?(M[B.resultName]=G.value,M.next=B.nextLoc,M.method!=="return"&&(M.method="next",M.arg=e),M.delegate=null,w):G:(M.method="throw",M.arg=new TypeError("iterator result is not an object"),M.delegate=null,w)}function L(B){var M={tryLoc:B[0]};1 in B&&(M.catchLoc=B[1]),2 in B&&(M.finallyLoc=B[2],M.afterLoc=B[3]),this.tryEntries.push(M)}function D(B){var M=B.completion||{};M.type="normal",delete M.arg,B.completion=M}function z(B){this.tryEntries=[{tryLoc:"root"}],B.forEach(L,this),this.reset(!0)}function W(B){if(B||B===""){var M=B[a];if(M)return M.call(B);if(typeof B.next=="function")return B;if(!isNaN(B.length)){var A=-1,U=function j(){for(;++A=0;--j){var G=this.tryEntries[j],X=G.completion;if(G.tryLoc==="root")return U("end");if(G.tryLoc<=this.prev){var re=r.call(G,"catchLoc"),te=r.call(G,"finallyLoc");if(re&&te){if(this.prev=0;--U){var j=this.tryEntries[U];if(j.tryLoc<=this.prev&&r.call(j,"finallyLoc")&&this.prev=0;--A){var U=this.tryEntries[A];if(U.finallyLoc===M)return this.complete(U.completion,U.afterLoc),D(U),w}},catch:function(M){for(var A=this.tryEntries.length-1;A>=0;--A){var U=this.tryEntries[A];if(U.tryLoc===M){var j=U.completion;if(j.type==="throw"){var G=j.arg;D(U)}return G}}throw Error("illegal catch attempt")},delegateYield:function(M,A,U){return this.delegate={iterator:W(M),resultName:A,nextLoc:U},this.method==="next"&&(this.arg=e),w}},t}function eT(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(d){n(d);return}l.done?t(c):Promise.resolve(c).then(r,o)}function wc(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(c){eT(i,r,o,a,l,"next",c)}function l(c){eT(i,r,o,a,l,"throw",c)}a(void 0)})}}var gh=Q({},Yj),$U=gh.version,RU=gh.render,IU=gh.unmountComponentAtNode,vv;try{var NU=Number(($U||"").split(".")[0]);NU>=18&&(vv=gh.createRoot)}catch{}function tT(e){var t=gh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Pt(t)==="object"&&(t.usingClientEntryPoint=e)}var mm="__rc_react_root__";function MU(e,t){tT(!0);var n=t[mm]||vv(t);tT(!1),n.render(e),t[mm]=n}function PU(e,t){RU(e,t)}function cw(e,t){if(vv){MU(e,t);return}PU(e,t)}function AU(e){return r1.apply(this,arguments)}function r1(){return r1=wc(To().mark(function e(t){return To().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[mm])===null||o===void 0||o.unmount(),delete t[mm]}));case 1:case"end":return r.stop()}},e)})),r1.apply(this,arguments)}function LU(e){IU(e)}function YM(e){return o1.apply(this,arguments)}function o1(){return o1=wc(To().mark(function e(t){return To().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(vv===void 0){r.next=2;break}return r.abrupt("return",AU(t));case 2:LU(t);case 3:case"end":return r.stop()}},e)})),o1.apply(this,arguments)}const By=()=>({height:0,opacity:0}),nT=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},DU=e=>({height:e?e.offsetHeight:0}),Fy=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",BU=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:By,onEnterStart:By,onAppearActive:nT,onEnterActive:nT,onLeaveStart:DU,onLeaveActive:By,onAppearEnd:Fy,onEnterEnd:Fy,onLeaveEnd:Fy,motionDeadline:500}},mc=(e,t,n)=>n!==void 0?n:`${e}-${t}`,vm=BU,yv=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1},FU=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},zU=rw("Wave",e=>[FU(e)]),qM="ant-wave-target";function kU(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function zy(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&kU(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function jU(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return zy(t)?t:zy(n)?n:zy(r)?r:null}function ky(e){return Number.isNaN(e)?0:e}const HU=e=>{const{className:t,target:n,component:r}=e,o=u.useRef(null),[i,a]=u.useState(null),[l,c]=u.useState([]),[d,h]=u.useState(0),[g,p]=u.useState(0),[m,v]=u.useState(0),[y,w]=u.useState(0),[C,b]=u.useState(!1),S={left:d,top:g,width:m,height:y,borderRadius:l.map(x=>`${x}px`).join(" ")};i&&(S["--wave-color"]=i);function E(){const x=getComputedStyle(n);a(jU(n));const T=x.position==="static",{borderLeftWidth:R,borderTopWidth:N}=x;h(T?n.offsetLeft:ky(-parseFloat(R))),p(T?n.offsetTop:ky(-parseFloat(N))),v(n.offsetWidth),w(n.offsetHeight);const{borderTopLeftRadius:I,borderTopRightRadius:P,borderBottomLeftRadius:L,borderBottomRightRadius:D}=x;c([I,P,D,L].map(z=>ky(parseFloat(z))))}if(u.useEffect(()=>{if(n){const x=bn(()=>{E(),b(!0)});let T;return typeof ResizeObserver<"u"&&(T=new ResizeObserver(E),T.observe(n)),()=>{bn.cancel(x),T==null||T.disconnect()}}},[]),!C)return null;const O=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(qM));return u.createElement(Sa,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(x,T)=>{var R;if(T.deadline||T.propertyName==="opacity"){const N=(R=o.current)===null||R===void 0?void 0:R.parentElement;YM(N).then(()=>{N==null||N.remove()})}return!1}},x=>{let{className:T}=x;return u.createElement("div",{ref:o,className:ne(t,{"wave-quick":O},T),style:S})})},WU=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild),cw(u.createElement(HU,Object.assign({},t,{target:e})),o)},UU=WU,VU=(e,t,n)=>{const{wave:r}=u.useContext(bt),[,o,i]=Dr(),a=yr(d=>{const h=e.current;if(r!=null&&r.disabled||!h)return;const g=h.querySelector(`.${qM}`)||h,{showEffect:p}=r||{};(p||UU)(g,{className:t,token:o,component:n,event:d,hashId:i})}),l=u.useRef();return d=>{bn.cancel(l.current),l.current=bn(()=>{a(d)})}},KU=VU,GU=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=u.useContext(bt),i=u.useRef(null),a=o("wave"),[,l]=zU(a),c=KU(i,ne(a,l),r);if(se.useEffect(()=>{const h=i.current;if(!h||h.nodeType!==1||n)return;const g=p=>{!yv(p.target)||!h.getAttribute||h.getAttribute("disabled")||h.disabled||h.className.includes("disabled")||h.className.includes("-leave")||c(p)};return h.addEventListener("click",g,!0),()=>{h.removeEventListener("click",g,!0)}},[n]),!se.isValidElement(t))return t??null;const d=wl(t)?wi(t.ref,i):i;return Oo(t,{ref:d})},XU=GU,ka=e=>{const t=se.useContext(uh);return se.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},YU=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},qU=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},QU=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},QM=Zn("Space",e=>{const t=pn(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[qU(t),QU(t),YU(t)]},()=>({}),{resetStyle:!1});var ZM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const n=u.useContext(bv),r=u.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,l=o==="vertical"?"-vertical-":"-";return ne(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:i,[`${e}-compact${l}last-item`]:a,[`${e}-compact${l}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},Kf=e=>{let{children:t}=e;return u.createElement(bv.Provider,{value:null},t)},ZU=e=>{var{children:t}=e,n=ZM(e,["children"]);return u.createElement(bv.Provider,{value:n},t)},JU=e=>{const{getPrefixCls:t,direction:n}=u.useContext(bt),{size:r,direction:o,block:i,prefixCls:a,className:l,rootClassName:c,children:d}=e,h=ZM(e,["size","direction","block","prefixCls","className","rootClassName","children"]),g=ka(S=>r??S),p=t("space-compact",a),[m,v]=QM(p),y=ne(p,v,{[`${p}-rtl`]:n==="rtl",[`${p}-block`]:i,[`${p}-vertical`]:o==="vertical"},l,c),w=u.useContext(bv),C=xo(d),b=u.useMemo(()=>C.map((S,E)=>{const O=S&&S.key||`${p}-item-${E}`;return u.createElement(ZU,{key:O,compactSize:g,compactDirection:o,isFirstItem:E===0&&(!w||(w==null?void 0:w.isFirstItem)),isLastItem:E===C.length-1&&(!w||(w==null?void 0:w.isLastItem))},S)}),[r,C,w]);return C.length===0?null:m(u.createElement("div",Object.assign({className:y},h),b))};var e9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:n}=u.useContext(bt),{prefixCls:r,size:o,className:i}=e,a=e9(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,c]=Dr();let d="";switch(o){case"large":d="lg";break;case"small":d="sm";break}const h=ne(l,{[`${l}-${d}`]:d,[`${l}-rtl`]:n==="rtl"},i,c);return u.createElement(JM.Provider,{value:o},u.createElement("div",Object.assign({},a,{className:h})))},n9=t9,rT=/^[\u4e00-\u9fa5]{2}$/,i1=rT.test.bind(rT);function eP(e){return e==="danger"?{danger:!0}:{type:e}}function oT(e){return typeof e=="string"}function jy(e){return e==="text"||e==="link"}function r9(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&oT(e.type)&&i1(e.props.children)?Oo(e,{children:e.props.children.split("").join(n)}):oT(e)?i1(e)?se.createElement("span",null,e.split("").join(n)):se.createElement("span",null,e):VM(e)?se.createElement("span",null,e):e}function o9(e,t){let n=!1;const r=[];return se.Children.forEach(e,o=>{const i=typeof o,a=i==="string"||i==="number";if(n&&a){const l=r.length-1,c=r[l];r[l]=`${c}${o}`}else r.push(o);n=a}),se.Children.map(r,o=>r9(o,t))}const i9=u.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=ne(`${i}-icon`,n);return se.createElement("span",{ref:t,className:a,style:r},o)}),tP=i9,iT=u.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:i}=e;const a=ne(`${n}-loading-icon`,r);return se.createElement(tP,{prefixCls:n,className:a,style:o,ref:t},se.createElement(fh,{className:i}))}),Hy=()=>({width:0,opacity:0,transform:"scale(0)"}),Wy=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),a9=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i}=e,a=!!n;return r?se.createElement(iT,{prefixCls:t,className:o,style:i}):se.createElement(Sa,{visible:a,motionName:`${t}-loading-icon-motion`,motionLeave:a,removeOnLeave:!0,onAppearStart:Hy,onAppearActive:Wy,onEnterStart:Hy,onEnterActive:Wy,onLeaveStart:Wy,onLeaveActive:Hy},(l,c)=>{let{className:d,style:h}=l;return se.createElement(iT,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),h),ref:c,iconClassName:d})})},l9=a9,aT=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),s9=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},aT(`${t}-primary`,o),aT(`${t}-danger`,i)]}},nP=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return pn(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},rP=e=>{var t,n,r,o,i,a;const l=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,c=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,d=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,h=(o=e.contentLineHeight)!==null&&o!==void 0?o:Tp(l),g=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:Tp(c),p=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:Tp(d);return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,contentFontSize:l,contentFontSizeSM:c,contentFontSizeLG:d,contentLineHeight:h,contentLineHeightSM:g,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-l*h)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*g)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-d*p)/2-e.lineWidth,0)}},c9=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${oe(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},pc(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${t}-compact-item`]:{flex:"none"}}}},yl=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),u9=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),d9=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),f9=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Gf=(e,t,n,r,o,i,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},yl(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),uw=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},f9(e))}),oP=e=>Object.assign({},uw(e)),ym=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),iP=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},oP(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),yl(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Gf(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},yl(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Gf(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),uw(e))}),h9=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},oP(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),yl(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),Gf(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},yl(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),Gf(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),uw(e))}),g9=e=>Object.assign(Object.assign({},iP(e)),{borderStyle:"dashed"}),p9=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},yl(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),ym(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},yl(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),ym(e))}),m9=e=>Object.assign(Object.assign(Object.assign({},yl(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),ym(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},ym(e)),yl(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBg}))}),v9=e=>{const{componentCls:t}=e;return{[`${t}-default`]:iP(e),[`${t}-primary`]:h9(e),[`${t}-dashed`]:g9(e),[`${t}-link`]:p9(e),[`${t}-text`]:m9(e),[`${t}-ghost`]:Gf(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},dw=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,borderRadius:a,buttonPaddingHorizontal:l,iconCls:c,buttonPaddingVertical:d}=e,h=`${n}-icon-only`;return[{[`${t}`]:{fontSize:o,lineHeight:i,height:r,padding:`${oe(d)} ${oe(l)}`,borderRadius:a,[`&${h}`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[c]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:u9(e)},{[`${n}${n}-round${t}`]:d9(e)}]},y9=e=>{const t=pn(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return dw(t,e.componentCls)},b9=e=>{const t=pn(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return dw(t,`${e.componentCls}-sm`)},S9=e=>{const t=pn(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return dw(t,`${e.componentCls}-lg`)},C9=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},w9=Zn("Button",e=>{const t=nP(e);return[c9(t),y9(t),b9(t),S9(t),C9(t),v9(t),s9(t)]},rP,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function _9(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",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":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function E9(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function fw(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},_9(e,r,t)),E9(n,r,t))}}function x9(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function O9(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 T9(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},x9(e,t)),O9(e.componentCls,t))}}const $9=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${oe(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${oe(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},R9=hv(["Button","compact"],e=>{const t=nP(e);return[fw(t),T9(t),$9(t)]},rP);var I9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const{loading:o=!1,prefixCls:i,type:a,danger:l,shape:c="default",size:d,styles:h,disabled:g,className:p,rootClassName:m,children:v,icon:y,ghost:w=!1,block:C=!1,htmlType:b="button",classNames:S,style:E={}}=e,O=I9(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),x=a||"default",{getPrefixCls:T,autoInsertSpaceInButton:R,direction:N,button:I}=u.useContext(bt),P=T("btn",i),[L,D,z]=w9(P),W=u.useContext(Yu),B=g??W,M=u.useContext(JM),A=u.useMemo(()=>N9(o),[o]),[U,j]=u.useState(A.loading),[G,X]=u.useState(!1),te=wi(t,u.createRef()),Z=u.Children.count(v)===1&&!y&&!jy(x);u.useEffect(()=>{let Ae=null;A.delay>0?Ae=setTimeout(()=>{Ae=null,j(!0)},A.delay):j(A.loading);function Pe(){Ae&&(clearTimeout(Ae),Ae=null)}return Pe},[A]),u.useEffect(()=>{if(!te||!te.current||R===!1)return;const Ae=te.current.textContent;Z&&i1(Ae)?G||X(!0):G&&X(!1)},[te]);const he=Ae=>{const{onClick:Pe}=e;if(U||B){Ae.preventDefault();return}Pe==null||Pe(Ae)},ge=R!==!1,{compactSize:ce,compactItemClassnames:be}=ph(P,N),pe={large:"lg",small:"sm",middle:void 0},ae=ka(Ae=>{var Pe,Fe;return(Fe=(Pe=d??ce)!==null&&Pe!==void 0?Pe:M)!==null&&Fe!==void 0?Fe:Ae}),J=ae&&pe[ae]||"",ue=U?"loading":y,ie=Qn(O,["navigate"]),Ce=ne(P,D,z,{[`${P}-${c}`]:c!=="default"&&c,[`${P}-${x}`]:x,[`${P}-${J}`]:J,[`${P}-icon-only`]:!v&&v!==0&&!!ue,[`${P}-background-ghost`]:w&&!jy(x),[`${P}-loading`]:U,[`${P}-two-chinese-chars`]:G&&ge&&!U,[`${P}-block`]:C,[`${P}-dangerous`]:!!l,[`${P}-rtl`]:N==="rtl"},be,p,m,I==null?void 0:I.className),Oe=Object.assign(Object.assign({},I==null?void 0:I.style),E),Te=ne(S==null?void 0:S.icon,(n=I==null?void 0:I.classNames)===null||n===void 0?void 0:n.icon),Me=Object.assign(Object.assign({},(h==null?void 0:h.icon)||{}),((r=I==null?void 0:I.styles)===null||r===void 0?void 0:r.icon)||{}),me=y&&!U?se.createElement(tP,{prefixCls:P,className:Te,style:Me},y):se.createElement(l9,{existIcon:!!y,prefixCls:P,loading:!!U}),ve=v||v===0?o9(v,Z&&ge):null;if(ie.href!==void 0)return L(se.createElement("a",Object.assign({},ie,{className:ne(Ce,{[`${P}-disabled`]:B}),href:B?void 0:ie.href,style:Oe,onClick:he,ref:te,tabIndex:B?-1:0}),me,ve));let xe=se.createElement("button",Object.assign({},O,{type:b,className:Ce,style:Oe,onClick:he,disabled:B,ref:te}),me,ve,!!be&&se.createElement(R9,{key:"compact",prefixCls:P}));return jy(x)||(xe=se.createElement(XU,{component:"Button",disabled:!!U},xe)),L(xe)}),hw=M9;hw.Group=n9;hw.__ANT_BUTTON=!0;const hi=hw;function lT(e){return!!(e&&e.then)}const P9=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:l,isSilent:c,quitOnNullishReturnValue:d,actionFn:h}=e,g=u.useRef(!1),p=u.useRef(null),[m,v]=gs(!1),y=function(){i==null||i.apply(void 0,arguments)};u.useEffect(()=>{let b=null;return a&&(b=setTimeout(()=>{var S;(S=p.current)===null||S===void 0||S.focus()})),()=>{b&&clearTimeout(b)}},[]);const w=b=>{lT(b)&&(v(!0),b.then(function(){v(!1,!0),y.apply(void 0,arguments),g.current=!1},S=>{if(v(!1,!0),g.current=!1,!(c!=null&&c()))return Promise.reject(S)}))},C=b=>{if(g.current)return;if(g.current=!0,!h){y();return}let S;if(l){if(S=h(b),d&&!lT(S)){g.current=!1,y(b);return}}else if(h.length)S=h(i),g.current=!1;else if(S=h(),!S){y();return}w(S)};return u.createElement(hi,Object.assign({},eP(t),{onClick:C,loading:m,prefixCls:r},o,{ref:p}),n)},aP=P9,mh=se.createContext({}),{Provider:lP}=mh,A9=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:i,close:a,onCancel:l,onConfirm:c}=u.useContext(mh);return o?se.createElement(aP,{isSilent:r,actionFn:l,close:function(){a==null||a.apply(void 0,arguments),c==null||c(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${i}-btn`},n):null},sT=A9,L9=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:i,okType:a,onConfirm:l,onOk:c}=u.useContext(mh);return se.createElement(aP,{isSilent:n,type:a||"primary",actionFn:c,close:function(){t==null||t.apply(void 0,arguments),l==null||l(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${o}-btn`},i)},cT=L9;var sP=u.createContext(null),uT=[];function D9(e,t){var n=u.useState(function(){if(!ho())return null;var v=document.createElement("div");return v}),r=de(n,1),o=r[0],i=u.useRef(!1),a=u.useContext(sP),l=u.useState(uT),c=de(l,2),d=c[0],h=c[1],g=a||(i.current?void 0:function(v){h(function(y){var w=[v].concat(Be(y));return w})});function p(){o.parentElement||document.body.appendChild(o),i.current=!0}function m(){var v;(v=o.parentElement)===null||v===void 0||v.removeChild(o),i.current=!1}return dn(function(){return e?a?a(p):p():m(),m},[e]),dn(function(){d.length&&(d.forEach(function(v){return v()}),h(uT))},[d]),[o,g]}function B9(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var o,i;if(e){var a=getComputedStyle(e);r.scrollbarColor=a.scrollbarColor,r.scrollbarWidth=a.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(l.width,10),d=parseInt(l.height,10);try{var h=c?"width: ".concat(l.width,";"):"",g=d?"height: ".concat(l.height,";"):"";fl(` #`.concat(t,`::-webkit-scrollbar { `).concat(h,` `).concat(g,` }`),t)}catch(v){console.error(v),o=c,i=d}}document.body.appendChild(n);var p=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,m=e&&i&&!isNaN(i)?i:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),jf(t),{width:p,height:m}}function F9(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:B9(e)}function z9(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var k9="rc-util-locker-".concat(Date.now()),dT=0;function j9(e){var t=!!e,n=u.useState(function(){return dT+=1,"".concat(k9,"_").concat(dT)}),r=de(n,1),o=r[0];dn(function(){if(t){var i=F9(document.body).width,a=z9();fl(` html body { overflow-y: hidden; `.concat(a?"width: calc(100% - ".concat(i,"px);"):"",` }`),o)}else jf(o);return function(){jf(o)}},[t,o])}var fT=!1;function H9(e){return typeof e=="boolean"&&(fT=e),fT}var hT=function(t){return t===!1?!1:!ho()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},gw=u.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var i=e.autoDestroy,a=i===void 0?!0:i,l=e.children,c=u.useState(n),d=de(c,2),h=d[0],g=d[1],p=h||n;u.useEffect(function(){(a||n)&&g(n)},[n,a]);var m=u.useState(function(){return hT(o)}),v=de(m,2),y=v[0],w=v[1];u.useEffect(function(){var P=hT(o);w(P??null)});var C=D9(p&&!y),b=de(C,2),S=b[0],E=b[1],O=y??S;j9(r&&n&&ho()&&(O===S||O===document.body));var x=null;if(l&&wl(l)&&t){var T=l;x=T.ref}var R=_s(x,t);if(!p||!ho()||y===void 0)return null;var N=O===!1||H9(),I=l;return t&&(I=u.cloneElement(l,{ref:R})),u.createElement(sP.Provider,{value:E},N?I:va.createPortal(I,O))}),cP=u.createContext({});function W9(){var e=Q({},Am);return e.useId}var gT=0,pT=W9();const uP=pT?function(t){var n=pT();return t||n}:function(t){var n=u.useState("ssr-id"),r=de(n,2),o=r[0],i=r[1];return u.useEffect(function(){var a=gT;gT+=1,i("rc_unique_".concat(a))},[]),t||o};function mT(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function vT(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var o=e.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r])}return n}function U9(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=vT(o),n.top+=vT(o,!0),n}const V9=u.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var yT={width:0,height:0,overflow:"hidden",outline:"none"},K9={outline:"none"},dP=se.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.title,a=e.ariaId,l=e.footer,c=e.closable,d=e.closeIcon,h=e.onClose,g=e.children,p=e.bodyStyle,m=e.bodyProps,v=e.modalRender,y=e.onMouseDown,w=e.onMouseUp,C=e.holderRef,b=e.visible,S=e.forceRender,E=e.width,O=e.height,x=e.classNames,T=e.styles,R=se.useContext(cP),N=R.panel,I=_s(C,N),P=u.useRef(),L=u.useRef(),D=u.useRef();se.useImperativeHandle(t,function(){return{focus:function(){var X;(X=D.current)===null||X===void 0||X.focus()},changeActive:function(X){var re=document,te=re.activeElement;X&&te===L.current?P.current.focus():!X&&te===P.current&&L.current.focus()}}});var z={};E!==void 0&&(z.width=E),O!==void 0&&(z.height=O);var W;l&&(W=se.createElement("div",{className:ne("".concat(n,"-footer"),x==null?void 0:x.footer),style:Q({},T==null?void 0:T.footer)},l));var B;i&&(B=se.createElement("div",{className:ne("".concat(n,"-header"),x==null?void 0:x.header),style:Q({},T==null?void 0:T.header)},se.createElement("div",{className:"".concat(n,"-title"),id:a},i)));var M=u.useMemo(function(){return Pt(c)==="object"&&c!==null?c:c?{closeIcon:d??se.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[c,d]),A=ya(M,!0),U;c&&(U=se.createElement("button",De({type:"button",onClick:h,"aria-label":"Close"},A,{className:"".concat(n,"-close")}),M.closeIcon));var j=se.createElement("div",{className:ne("".concat(n,"-content"),x==null?void 0:x.content),style:T==null?void 0:T.content},U,B,se.createElement("div",De({className:ne("".concat(n,"-body"),x==null?void 0:x.body),style:Q(Q({},p),T==null?void 0:T.body)},m),g),W);return se.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?a:null,"aria-modal":"true",ref:I,style:Q(Q({},o),z),className:ne(n,r),onMouseDown:y,onMouseUp:w},se.createElement("div",{tabIndex:0,ref:P,style:yT,"aria-hidden":"true"}),se.createElement("div",{ref:D,tabIndex:-1,style:K9},se.createElement(V9,{shouldUpdate:b||S},v?v(j):j)),se.createElement("div",{tabIndex:0,ref:L,style:yT,"aria-hidden":"true"}))}),fP=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,i=e.className,a=e.visible,l=e.forceRender,c=e.destroyOnClose,d=e.motionName,h=e.ariaId,g=e.onVisibleChanged,p=e.mousePosition,m=u.useRef(),v=u.useState(),y=de(v,2),w=y[0],C=y[1],b={};w&&(b.transformOrigin=w);function S(){var E=U9(m.current);C(p?"".concat(p.x-E.left,"px ").concat(p.y-E.top,"px"):"")}return u.createElement(Sa,{visible:a,onVisibleChanged:g,onAppearPrepare:S,onEnterPrepare:S,forceRender:l,motionName:d,removeOnLeave:c,ref:m},function(E,O){var x=E.className,T=E.style;return u.createElement(dP,De({},e,{ref:t,title:r,ariaId:h,prefixCls:n,holderRef:O,style:Q(Q(Q({},T),o),b),className:ne(i,x)}))})});fP.displayName="Content";function G9(e){var t=e.prefixCls,n=e.style,r=e.visible,o=e.maskProps,i=e.motionName,a=e.className;return u.createElement(Sa,{key:"mask",visible:r,motionName:i,leavedClassName:"".concat(t,"-mask-hidden")},function(l,c){var d=l.className,h=l.style;return u.createElement("div",De({ref:c,style:Q(Q({},h),n),className:ne("".concat(t,"-mask"),d,a)},o))})}function X9(e){var t=e.prefixCls,n=t===void 0?"rc-dialog":t,r=e.zIndex,o=e.visible,i=o===void 0?!1:o,a=e.keyboard,l=a===void 0?!0:a,c=e.focusTriggerAfterClose,d=c===void 0?!0:c,h=e.wrapStyle,g=e.wrapClassName,p=e.wrapProps,m=e.onClose,v=e.afterOpenChange,y=e.afterClose,w=e.transitionName,C=e.animation,b=e.closable,S=b===void 0?!0:b,E=e.mask,O=E===void 0?!0:E,x=e.maskTransitionName,T=e.maskAnimation,R=e.maskClosable,N=R===void 0?!0:R,I=e.maskStyle,P=e.maskProps,L=e.rootClassName,D=e.classNames,z=e.styles,W=u.useRef(),B=u.useRef(),M=u.useRef(),A=u.useState(i),U=de(A,2),j=U[0],G=U[1],X=uP();function re(){LS(B.current,document.activeElement)||(W.current=document.activeElement)}function te(){if(!LS(B.current,document.activeElement)){var ue;(ue=M.current)===null||ue===void 0||ue.focus()}}function Z(ue){if(ue)te();else{if(G(!1),O&&W.current&&d){try{W.current.focus({preventScroll:!0})}catch{}W.current=null}j&&(y==null||y())}v==null||v(ue)}function he(ue){m==null||m(ue)}var ge=u.useRef(!1),ce=u.useRef(),be=function(){clearTimeout(ce.current),ge.current=!0},pe=function(){ce.current=setTimeout(function(){ge.current=!1})},ae=null;N&&(ae=function(ie){ge.current?ge.current=!1:B.current===ie.target&&he(ie)});function J(ue){if(l&&ue.keyCode===_e.ESC){ue.stopPropagation(),he(ue);return}i&&ue.keyCode===_e.TAB&&M.current.changeActive(!ue.shiftKey)}return u.useEffect(function(){i&&(G(!0),re())},[i]),u.useEffect(function(){return function(){clearTimeout(ce.current)}},[]),u.createElement("div",De({className:ne("".concat(n,"-root"),L)},ya(e,{data:!0})),u.createElement(G9,{prefixCls:n,visible:O&&i,motionName:mT(n,x,T),style:Q(Q({zIndex:r},I),z==null?void 0:z.mask),maskProps:P,className:D==null?void 0:D.mask}),u.createElement("div",De({tabIndex:-1,onKeyDown:J,className:ne("".concat(n,"-wrap"),g,D==null?void 0:D.wrapper),ref:B,onClick:ae,style:Q(Q(Q({zIndex:r},h),z==null?void 0:z.wrapper),{},{display:j?null:"none"})},p),u.createElement(fP,De({},e,{onMouseDown:be,onMouseUp:pe,ref:M,closable:S,ariaId:X,prefixCls:n,visible:i&&j,onClose:he,onVisibleChanged:Z,motionName:mT(n,w,C)}))))}var hP=function(t){var n=t.visible,r=t.getContainer,o=t.forceRender,i=t.destroyOnClose,a=i===void 0?!1:i,l=t.afterClose,c=t.panelRef,d=u.useState(n),h=de(d,2),g=h[0],p=h[1],m=u.useMemo(function(){return{panel:c}},[c]);return u.useEffect(function(){n&&p(!0)},[n]),!o&&a&&!g?null:u.createElement(cP.Provider,{value:m},u.createElement(gw,{open:n||o||g,autoDestroy:!1,getContainer:r,autoLock:n||g},u.createElement(X9,De({},t,{destroyOnClose:a,afterClose:function(){l==null||l(),p(!1)}}))))};hP.displayName="Dialog";function bT(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function ST(e){const{closable:t,closeIcon:n}=e||{};return se.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}function CT(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r{o&&Object.keys(o).forEach(i=>{o[i]!==void 0&&(e[i]=o[i])})}),e}const Y9={};function q9(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Y9;const r=ST(e),o=ST(t),i=se.useMemo(()=>Object.assign({closeIcon:se.createElement(Zu,null)},n),[n]),a=se.useMemo(()=>r===!1?!1:r?CT(i,o,r):o===!1?!1:o?CT(i,o):i.closable?i:!1,[r,o,i]);return se.useMemo(()=>{if(a===!1)return[!1,null];const{closeIconRender:l}=i,{closeIcon:c}=a;let d=c;if(d!=null){l&&(d=l(c));const h=ya(a,!0);Object.keys(h).length&&(d=se.isValidElement(d)?se.cloneElement(d,h):se.createElement("span",Object.assign({},h),d))}return[!0,d]},[a,i])}var gP=function(t){if(ho()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(o){return o in r.style})}return!1},Q9=function(t,n){if(!gP(t))return!1;var r=document.createElement("div"),o=r.style[t];return r.style[t]=n,r.style[t]!==o};function wT(e,t){return!Array.isArray(e)&&t!==void 0?Q9(e,t):gP(e)}const Z9=()=>ho()&&window.document.documentElement;var tc="RC_FORM_INTERNAL_HOOKS",Nn=function(){Vn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},vc=u.createContext({getFieldValue:Nn,getFieldsValue:Nn,getFieldError:Nn,getFieldWarning:Nn,getFieldsError:Nn,isFieldsTouched:Nn,isFieldTouched:Nn,isFieldValidating:Nn,isFieldsValidating:Nn,resetFields:Nn,setFields:Nn,setFieldValue:Nn,setFieldsValue:Nn,validateFields:Nn,submit:Nn,getInternalHooks:function(){return Nn(),{dispatch:Nn,initEntityValue:Nn,registerField:Nn,useSubscribe:Nn,setInitialValues:Nn,destroyForm:Nn,setCallbacks:Nn,registerWatch:Nn,getFields:Nn,setValidateMessages:Nn,setPreserve:Nn,getInitialValue:Nn}}}),Xf=u.createContext(null);function a1(e){return e==null?[]:Array.isArray(e)?e:[e]}function J9(e){return e&&!!e._init}function nc(){return nc=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Rp(e,t,n){return tV()?Rp=Reflect.construct.bind():Rp=function(o,i,a){var l=[null];l.push.apply(l,i);var c=Function.bind.apply(o,l),d=new c;return a&&Yf(d,a.prototype),d},Rp.apply(null,arguments)}function nV(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function s1(e){var t=typeof Map=="function"?new Map:void 0;return s1=function(r){if(r===null||!nV(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return Rp(r,arguments,l1(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Yf(o,r)},s1(e)}var rV=/%[sdj%]/g,oV=function(){};function c1(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function mi(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=i)return l;switch(l){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return l}});return a}return e}function iV(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function $r(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||iV(t)&&typeof e=="string"&&!e)}function aV(e,t,n){var r=[],o=0,i=e.length;function a(l){r.push.apply(r,l||[]),o++,o===i&&n(r)}e.forEach(function(l){t(l,a)})}function _T(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var l=r;r=r+1,l()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},nf={integer:function(t){return nf.number(t)&&parseInt(t,10)===t},float:function(t){return nf.number(t)&&!nf.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 typeof t=="object"&&!nf.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(TT.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(fV())},hex:function(t){return typeof t=="string"&&!!t.match(TT.hex)}},hV=function(t,n,r,o,i){if(t.required&&n===void 0){pP(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;a.indexOf(l)>-1?nf[l](n)||o.push(mi(i.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&o.push(mi(i.messages.types[l],t.fullField,t.type))},gV=function(t,n,r,o,i){var a=typeof t.len=="number",l=typeof t.min=="number",c=typeof t.max=="number",d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,h=n,g=null,p=typeof n=="number",m=typeof n=="string",v=Array.isArray(n);if(p?g="number":m?g="string":v&&(g="array"),!g)return!1;v&&(h=n.length),m&&(h=n.replace(d,"_").length),a?h!==t.len&&o.push(mi(i.messages[g].len,t.fullField,t.len)):l&&!c&&ht.max?o.push(mi(i.messages[g].max,t.fullField,t.max)):l&&c&&(ht.max)&&o.push(mi(i.messages[g].range,t.fullField,t.min,t.max))},Uc="enum",pV=function(t,n,r,o,i){t[Uc]=Array.isArray(t[Uc])?t[Uc]:[],t[Uc].indexOf(n)===-1&&o.push(mi(i.messages[Uc],t.fullField,t[Uc].join(", ")))},mV=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(mi(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||o.push(mi(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},rn={required:pP,whitespace:dV,type:hV,range:gV,enum:pV,pattern:mV},vV=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if($r(n,"string")&&!t.required)return r();rn.required(t,n,o,a,i,"string"),$r(n,"string")||(rn.type(t,n,o,a,i),rn.range(t,n,o,a,i),rn.pattern(t,n,o,a,i),t.whitespace===!0&&rn.whitespace(t,n,o,a,i))}r(a)},yV=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if($r(n)&&!t.required)return r();rn.required(t,n,o,a,i),n!==void 0&&rn.type(t,n,o,a,i)}r(a)},bV=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),$r(n)&&!t.required)return r();rn.required(t,n,o,a,i),n!==void 0&&(rn.type(t,n,o,a,i),rn.range(t,n,o,a,i))}r(a)},SV=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if($r(n)&&!t.required)return r();rn.required(t,n,o,a,i),n!==void 0&&rn.type(t,n,o,a,i)}r(a)},CV=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if($r(n)&&!t.required)return r();rn.required(t,n,o,a,i),$r(n)||rn.type(t,n,o,a,i)}r(a)},wV=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if($r(n)&&!t.required)return r();rn.required(t,n,o,a,i),n!==void 0&&(rn.type(t,n,o,a,i),rn.range(t,n,o,a,i))}r(a)},_V=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if($r(n)&&!t.required)return r();rn.required(t,n,o,a,i),n!==void 0&&(rn.type(t,n,o,a,i),rn.range(t,n,o,a,i))}r(a)},EV=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();rn.required(t,n,o,a,i,"array"),n!=null&&(rn.type(t,n,o,a,i),rn.range(t,n,o,a,i))}r(a)},xV=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if($r(n)&&!t.required)return r();rn.required(t,n,o,a,i),n!==void 0&&rn.type(t,n,o,a,i)}r(a)},OV="enum",TV=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if($r(n)&&!t.required)return r();rn.required(t,n,o,a,i),n!==void 0&&rn[OV](t,n,o,a,i)}r(a)},$V=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if($r(n,"string")&&!t.required)return r();rn.required(t,n,o,a,i),$r(n,"string")||rn.pattern(t,n,o,a,i)}r(a)},RV=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if($r(n,"date")&&!t.required)return r();if(rn.required(t,n,o,a,i),!$r(n,"date")){var c;n instanceof Date?c=n:c=new Date(n),rn.type(t,c,o,a,i),c&&rn.range(t,c.getTime(),o,a,i)}}r(a)},IV=function(t,n,r,o,i){var a=[],l=Array.isArray(n)?"array":typeof n;rn.required(t,n,o,a,i,l),r(a)},Uy=function(t,n,r,o,i){var a=t.type,l=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if($r(n,a)&&!t.required)return r();rn.required(t,n,o,l,i,a),$r(n,a)||rn.type(t,n,o,l,i)}r(l)},NV=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if($r(n)&&!t.required)return r();rn.required(t,n,o,a,i)}r(a)},bf={string:vV,method:yV,number:bV,boolean:SV,regexp:CV,integer:wV,float:_V,array:EV,object:xV,enum:TV,pattern:$V,date:RV,url:Uy,hex:Uy,email:Uy,required:IV,any:NV};function u1(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var d1=u1(),vh=function(){function e(n){this.rules=null,this._messages=d1,this.define(n)}var t=e.prototype;return t.define=function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(i){var a=r[i];o.rules[i]=Array.isArray(a)?a:[a]})},t.messages=function(r){return r&&(this._messages=OT(u1(),r)),this._messages},t.validate=function(r,o,i){var a=this;o===void 0&&(o={}),i===void 0&&(i=function(){});var l=r,c=o,d=i;if(typeof c=="function"&&(d=c,c={}),!this.rules||Object.keys(this.rules).length===0)return d&&d(null,l),Promise.resolve(l);function h(y){var w=[],C={};function b(E){if(Array.isArray(E)){var O;w=(O=w).concat.apply(O,E)}else w.push(E)}for(var S=0;S2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return vP(t,r,n)})}function vP(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,o){return e[o]===r})}function DV(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Pt(e)!=="object"||Pt(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return Be(o).every(function(i){var a=e[i],l=t[i];return typeof a=="function"&&typeof l=="function"?!0:a===l})}function BV(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Pt(t.target)==="object"&&e in t.target?t.target[e]:t}function NT(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(Be(e.slice(0,n)),[o],Be(e.slice(n,t)),Be(e.slice(t+1,r))):i<0?[].concat(Be(e.slice(0,t)),Be(e.slice(t+1,n+1)),[o],Be(e.slice(n+1,r))):e}var FV=["name"],Mi=[];function MT(e,t,n,r,o,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var pw=function(e){_l(n,e);var t=Cc(n);function n(r){var o;if(Xr(this,n),o=t.call(this,r),K(Ne(o),"state",{resetCount:0}),K(Ne(o),"cancelRegisterFunc",null),K(Ne(o),"mounted",!1),K(Ne(o),"touched",!1),K(Ne(o),"dirty",!1),K(Ne(o),"validatePromise",void 0),K(Ne(o),"prevValidating",void 0),K(Ne(o),"errors",Mi),K(Ne(o),"warnings",Mi),K(Ne(o),"cancelRegister",function(){var c=o.props,d=c.preserve,h=c.isListField,g=c.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(h,d,lr(g)),o.cancelRegisterFunc=null}),K(Ne(o),"getNamePath",function(){var c=o.props,d=c.name,h=c.fieldContext,g=h.prefixName,p=g===void 0?[]:g;return d!==void 0?[].concat(Be(p),Be(d)):[]}),K(Ne(o),"getRules",function(){var c=o.props,d=c.rules,h=d===void 0?[]:d,g=c.fieldContext;return h.map(function(p){return typeof p=="function"?p(g):p})}),K(Ne(o),"refresh",function(){o.mounted&&o.setState(function(c){var d=c.resetCount;return{resetCount:d+1}})}),K(Ne(o),"metaCache",null),K(Ne(o),"triggerMetaEvent",function(c){var d=o.props.onMetaChange;if(d){var h=Q(Q({},o.getMeta()),{},{destroy:c});Hf(o.metaCache,h)||d(h),o.metaCache=h}else o.metaCache=null}),K(Ne(o),"onStoreChange",function(c,d,h){var g=o.props,p=g.shouldUpdate,m=g.dependencies,v=m===void 0?[]:m,y=g.onReset,w=h.store,C=o.getNamePath(),b=o.getValue(c),S=o.getValue(w),E=d&&$u(d,C);switch(h.type==="valueUpdate"&&h.source==="external"&&!Hf(b,S)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Mi,o.warnings=Mi,o.triggerMetaEvent()),h.type){case"reset":if(!d||E){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Mi,o.warnings=Mi,o.triggerMetaEvent(),y==null||y(),o.refresh();return}break;case"remove":{if(p){o.reRender();return}break}case"setField":{var O=h.data;if(E){"touched"in O&&(o.touched=O.touched),"validating"in O&&!("originRCField"in O)&&(o.validatePromise=O.validating?Promise.resolve([]):null),"errors"in O&&(o.errors=O.errors||Mi),"warnings"in O&&(o.warnings=O.warnings||Mi),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in O&&$u(d,C,!0)){o.reRender();return}if(p&&!C.length&&MT(p,c,w,b,S,h)){o.reRender();return}break}case"dependenciesUpdate":{var x=v.map(lr);if(x.some(function(T){return $u(h.relatedFields,T)})){o.reRender();return}break}default:if(E||(!v.length||C.length||p)&&MT(p,c,w,b,S,h)){o.reRender();return}break}p===!0&&o.reRender()}),K(Ne(o),"validateRules",function(c){var d=o.getNamePath(),h=o.getValue(),g=c||{},p=g.triggerName,m=g.validateOnly,v=m===void 0?!1:m,y=Promise.resolve().then(wc(To().mark(function w(){var C,b,S,E,O,x,T;return To().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:if(o.mounted){N.next=2;break}return N.abrupt("return",[]);case 2:if(C=o.props,b=C.validateFirst,S=b===void 0?!1:b,E=C.messageVariables,O=C.validateDebounce,x=o.getRules(),p&&(x=x.filter(function(I){return I}).filter(function(I){var P=I.validateTrigger;if(!P)return!0;var L=a1(P);return L.includes(p)})),!(O&&p)){N.next=10;break}return N.next=8,new Promise(function(I){setTimeout(I,O)});case 8:if(o.validatePromise===y){N.next=10;break}return N.abrupt("return",[]);case 10:return T=PV(d,h,x,c,S,E),T.catch(function(I){return I}).then(function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Mi;if(o.validatePromise===y){var P;o.validatePromise=null;var L=[],D=[];(P=I.forEach)===null||P===void 0||P.call(I,function(z){var W=z.rule.warningOnly,B=z.errors,M=B===void 0?Mi:B;W?D.push.apply(D,Be(M)):L.push.apply(L,Be(M))}),o.errors=L,o.warnings=D,o.triggerMetaEvent(),o.reRender()}}),N.abrupt("return",T);case 13:case"end":return N.stop()}},w)})));return v||(o.validatePromise=y,o.dirty=!0,o.errors=Mi,o.warnings=Mi,o.triggerMetaEvent(),o.reRender()),y}),K(Ne(o),"isFieldValidating",function(){return!!o.validatePromise}),K(Ne(o),"isFieldTouched",function(){return o.touched}),K(Ne(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var c=o.props.fieldContext,d=c.getInternalHooks(tc),h=d.getInitialValue;return h(o.getNamePath())!==void 0}),K(Ne(o),"getErrors",function(){return o.errors}),K(Ne(o),"getWarnings",function(){return o.warnings}),K(Ne(o),"isListField",function(){return o.props.isListField}),K(Ne(o),"isList",function(){return o.props.isList}),K(Ne(o),"isPreserve",function(){return o.props.preserve}),K(Ne(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var c={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return c}),K(Ne(o),"getOnlyChild",function(c){if(typeof c=="function"){var d=o.getMeta();return Q(Q({},o.getOnlyChild(c(o.getControlled(),d,o.props.fieldContext))),{},{isFunction:!0})}var h=xo(c);return h.length!==1||!u.isValidElement(h[0])?{child:h,isFunction:!1}:{child:h[0],isFunction:!1}}),K(Ne(o),"getValue",function(c){var d=o.props.fieldContext.getFieldsValue,h=o.getNamePath();return La(c||d(!0),h)}),K(Ne(o),"getControlled",function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=o.props,h=d.name,g=d.trigger,p=d.validateTrigger,m=d.getValueFromEvent,v=d.normalize,y=d.valuePropName,w=d.getValueProps,C=d.fieldContext,b=p!==void 0?p:C.validateTrigger,S=o.getNamePath(),E=C.getInternalHooks,O=C.getFieldsValue,x=E(tc),T=x.dispatch,R=o.getValue(),N=w||function(z){return K({},y,z)},I=c[g],P=h!==void 0?N(R):{},L=Q(Q({},c),P);L[g]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var z,W=arguments.length,B=new Array(W),M=0;M=0&&I<=P.length?(h.keys=[].concat(Be(h.keys.slice(0,I)),[h.id],Be(h.keys.slice(I))),S([].concat(Be(P.slice(0,I)),[N],Be(P.slice(I))))):(h.keys=[].concat(Be(h.keys),[h.id]),S([].concat(Be(P),[N]))),h.id+=1},remove:function(N){var I=O(),P=new Set(Array.isArray(N)?N:[N]);P.size<=0||(h.keys=h.keys.filter(function(L,D){return!P.has(D)}),S(I.filter(function(L,D){return!P.has(D)})))},move:function(N,I){if(N!==I){var P=O();N<0||N>=P.length||I<0||I>=P.length||(h.keys=NT(h.keys,N,I),S(NT(P,N,I)))}}},T=b||[];return Array.isArray(T)||(T=[]),r(T.map(function(R,N){var I=h.keys[N];return I===void 0&&(h.keys[N]=h.id,I=h.keys[N],h.id+=1),{name:N,key:I,isListField:!0}}),x,w)})))}function zV(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,i){e.forEach(function(a,l){a.catch(function(c){return t=!0,c}).then(function(c){n-=1,r[l]=c,!(n>0)&&(t&&i(r),o(r))})})}):Promise.resolve([])}var bP="__@field_split__";function Vy(e){return e.map(function(t){return"".concat(Pt(t),":").concat(t)}).join(bP)}var Vc=function(){function e(){Xr(this,e),K(this,"kvs",new Map)}return Yr(e,[{key:"set",value:function(n,r){this.kvs.set(Vy(n),r)}},{key:"get",value:function(n){return this.kvs.get(Vy(n))}},{key:"update",value:function(n,r){var o=this.get(n),i=r(o);i?this.set(n,i):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(Vy(n))}},{key:"map",value:function(n){return Be(this.kvs.entries()).map(function(r){var o=de(r,2),i=o[0],a=o[1],l=i.split(bP);return n({key:l.map(function(c){var d=c.match(/^([^:]*):(.*)$/),h=de(d,3),g=h[1],p=h[2];return g==="number"?Number(p):p}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,i=r.value;return n[o.join(".")]=i,null}),n}}]),e}(),kV=["name"],jV=Yr(function e(t){var n=this;Xr(this,e),K(this,"formHooked",!1),K(this,"forceRootUpdate",void 0),K(this,"subscribable",!0),K(this,"store",{}),K(this,"fieldEntities",[]),K(this,"initialValues",{}),K(this,"callbacks",{}),K(this,"validateMessages",null),K(this,"preserve",null),K(this,"lastValidatePromise",null),K(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),K(this,"getInternalHooks",function(r){return r===tc?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Vn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),K(this,"useSubscribe",function(r){n.subscribable=r}),K(this,"prevWithoutPreserves",null),K(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var i,a=vu(r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(l){var c=l.key;a=la(a,c,La(r,c))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),K(this,"destroyForm",function(){var r=new Vc;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||r.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=r}),K(this,"getInitialValue",function(r){var o=La(n.initialValues,r);return r.length?vu(o):o}),K(this,"setCallbacks",function(r){n.callbacks=r}),K(this,"setValidateMessages",function(r){n.validateMessages=r}),K(this,"setPreserve",function(r){n.preserve=r}),K(this,"watchList",[]),K(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),K(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),i=n.getFieldsValue(!0);n.watchList.forEach(function(a){a(o,i,r)})}}),K(this,"timeoutId",null),K(this,"warningUnhooked",function(){}),K(this,"updateStore",function(r){n.store=r}),K(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities}),K(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new Vc;return n.getFieldEntities(r).forEach(function(i){var a=i.getNamePath();o.set(a,i)}),o}),K(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(i){var a=lr(i);return o.get(a)||{INVALIDATE_NAME_PATH:lr(i)}})}),K(this,"getFieldsValue",function(r,o){n.warningUnhooked();var i,a,l;if(r===!0||Array.isArray(r)?(i=r,a=o):r&&Pt(r)==="object"&&(l=r.strict,a=r.filter),i===!0&&!a)return n.store;var c=n.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),d=[];return c.forEach(function(h){var g,p,m="INVALIDATE_NAME_PATH"in h?h.INVALIDATE_NAME_PATH:h.getNamePath();if(l){var v,y;if((v=(y=h).isList)!==null&&v!==void 0&&v.call(y))return}else if(!i&&(g=(p=h).isListField)!==null&&g!==void 0&&g.call(p))return;if(!a)d.push(m);else{var w="getMeta"in h?h.getMeta():null;a(w)&&d.push(m)}}),IT(n.store,d.map(lr))}),K(this,"getFieldValue",function(r){n.warningUnhooked();var o=lr(r);return La(n.store,o)}),K(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(i,a){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:lr(r[a]),errors:[],warnings:[]}})}),K(this,"getFieldError",function(r){n.warningUnhooked();var o=lr(r),i=n.getFieldsError([o])[0];return i.errors}),K(this,"getFieldWarning",function(r){n.warningUnhooked();var o=lr(r),i=n.getFieldsError([o])[0];return i.warnings}),K(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),i=0;i0&&arguments[0]!==void 0?arguments[0]:{},o=new Vc,i=n.getFieldEntities(!0);i.forEach(function(c){var d=c.props.initialValue,h=c.getNamePath();if(d!==void 0){var g=o.get(h)||new Set;g.add({entity:c,value:d}),o.set(h,g)}});var a=function(d){d.forEach(function(h){var g=h.props.initialValue;if(g!==void 0){var p=h.getNamePath(),m=n.getInitialValue(p);if(m!==void 0)Vn(!1,"Form already set 'initialValues' with path '".concat(p.join("."),"'. Field can not overwrite it."));else{var v=o.get(p);if(v&&v.size>1)Vn(!1,"Multiple Field with path '".concat(p.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(v){var y=n.getFieldValue(p),w=h.isListField();!w&&(!r.skipExist||y===void 0)&&n.updateStore(la(n.store,p,Be(v)[0].value))}}}})},l;r.entities?l=r.entities:r.namePathList?(l=[],r.namePathList.forEach(function(c){var d=o.get(c);if(d){var h;(h=l).push.apply(h,Be(Be(d).map(function(g){return g.entity})))}})):l=i,a(l)}),K(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(vu(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var i=r.map(lr);i.forEach(function(a){var l=n.getInitialValue(a);n.updateStore(la(n.store,a,l))}),n.resetWithFieldInitialValue({namePathList:i}),n.notifyObservers(o,i,{type:"reset"}),n.notifyWatch(i)}),K(this,"setFields",function(r){n.warningUnhooked();var o=n.store,i=[];r.forEach(function(a){var l=a.name,c=Mt(a,kV),d=lr(l);i.push(d),"value"in c&&n.updateStore(la(n.store,d,c.value)),n.notifyObservers(o,[d],{type:"setField",data:a})}),n.notifyWatch(i)}),K(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(i){var a=i.getNamePath(),l=i.getMeta(),c=Q(Q({},l),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return o}),K(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var i=r.getNamePath(),a=La(n.store,i);a===void 0&&n.updateStore(la(n.store,i,o))}}),K(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),K(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var i=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(i,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,l){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(g){return g!==r}),!n.isMergedPreserve(l)&&(!a||c.length>1)){var d=a?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==d&&n.fieldEntities.every(function(g){return!vP(g.getNamePath(),o)})){var h=n.store;n.updateStore(la(h,o,d,!0)),n.notifyObservers(h,[o],{type:"remove"}),n.triggerDependenciesUpdate(h,o)}}n.notifyWatch([o])}}),K(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,i=r.value;n.updateValue(o,i);break}case"validateField":{var a=r.namePath,l=r.triggerName;n.validateFields([a],{triggerName:l});break}}}),K(this,"notifyObservers",function(r,o,i){if(n.subscribable){var a=Q(Q({},i),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(l){var c=l.onStoreChange;c(r,o,a)})}else n.forceRootUpdate()}),K(this,"triggerDependenciesUpdate",function(r,o){var i=n.getDependencyChildrenFields(o);return i.length&&n.validateFields(i),n.notifyObservers(r,i,{type:"dependenciesUpdate",relatedFields:[o].concat(Be(i))}),i}),K(this,"updateValue",function(r,o){var i=lr(r),a=n.store;n.updateStore(la(n.store,i,o)),n.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]);var l=n.triggerDependenciesUpdate(a,i),c=n.callbacks.onValuesChange;if(c){var d=IT(n.store,[i]);c(d,n.getFieldsValue())}n.triggerOnFieldsChange([i].concat(Be(l)))}),K(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var i=vu(n.store,r);n.updateStore(i)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),K(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o}])}),K(this,"getDependencyChildrenFields",function(r){var o=new Set,i=[],a=new Vc;n.getFieldEntities().forEach(function(c){var d=c.props.dependencies;(d||[]).forEach(function(h){var g=lr(h);a.update(g,function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return p.add(c),p})})});var l=function c(d){var h=a.get(d)||new Set;h.forEach(function(g){if(!o.has(g)){o.add(g);var p=g.getNamePath();g.isFieldDirty()&&p.length&&(i.push(p),c(p))}})};return l(r),i}),K(this,"triggerOnFieldsChange",function(r,o){var i=n.callbacks.onFieldsChange;if(i){var a=n.getFields();if(o){var l=new Vc;o.forEach(function(d){var h=d.name,g=d.errors;l.set(h,g)}),a.forEach(function(d){d.errors=l.get(d.name)||d.errors})}var c=a.filter(function(d){var h=d.name;return $u(r,h)});c.length&&i(c,a)}}),K(this,"validateFields",function(r,o){n.warningUnhooked();var i,a;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(i=r,a=o):a=r;var l=!!i,c=l?i.map(lr):[],d=[],h=String(Date.now()),g=new Set,p=a||{},m=p.recursive,v=p.dirty;n.getFieldEntities(!0).forEach(function(b){if(l||c.push(b.getNamePath()),!(!b.props.rules||!b.props.rules.length)&&!(v&&!b.isFieldDirty())){var S=b.getNamePath();if(g.add(S.join(h)),!l||$u(c,S,m)){var E=b.validateRules(Q({validateMessages:Q(Q({},mP),n.validateMessages)},a));d.push(E.then(function(){return{name:S,errors:[],warnings:[]}}).catch(function(O){var x,T=[],R=[];return(x=O.forEach)===null||x===void 0||x.call(O,function(N){var I=N.rule.warningOnly,P=N.errors;I?R.push.apply(R,Be(P)):T.push.apply(T,Be(P))}),T.length?Promise.reject({name:S,errors:T,warnings:R}):{name:S,errors:T,warnings:R}}))}}});var y=zV(d);n.lastValidatePromise=y,y.catch(function(b){return b}).then(function(b){var S=b.map(function(E){var O=E.name;return O});n.notifyObservers(n.store,S,{type:"validateFinish"}),n.triggerOnFieldsChange(S,b)});var w=y.then(function(){return n.lastValidatePromise===y?Promise.resolve(n.getFieldsValue(c)):Promise.reject([])}).catch(function(b){var S=b.filter(function(E){return E&&E.errors.length});return Promise.reject({values:n.getFieldsValue(c),errorFields:S,outOfDate:n.lastValidatePromise!==y})});w.catch(function(b){return b});var C=c.filter(function(b){return g.has(b.join(h))});return n.triggerOnFieldsChange(C),w}),K(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(i){console.error(i)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function vw(e){var t=u.useRef(),n=u.useState({}),r=de(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},a=new jV(i);t.current=a.getForm()}return[t.current]}var m1=u.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),SP=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=u.useContext(m1),l=u.useRef({});return u.createElement(m1.Provider,{value:Q(Q({},a),{},{validateMessages:Q(Q({},a.validateMessages),n),triggerFormChange:function(d,h){r&&r(d,{changedFields:h,forms:l.current}),a.triggerFormChange(d,h)},triggerFormFinish:function(d,h){o&&o(d,{values:h,forms:l.current}),a.triggerFormFinish(d,h)},registerForm:function(d,h){d&&(l.current=Q(Q({},l.current),{},K({},d,h))),a.registerForm(d,h)},unregisterForm:function(d){var h=Q({},l.current);delete h[d],l.current=h,a.unregisterForm(d)}})},i)},HV=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],WV=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,a=t.form,l=t.preserve,c=t.children,d=t.component,h=d===void 0?"form":d,g=t.validateMessages,p=t.validateTrigger,m=p===void 0?"onChange":p,v=t.onValuesChange,y=t.onFieldsChange,w=t.onFinish,C=t.onFinishFailed,b=Mt(t,HV),S=u.useContext(m1),E=vw(a),O=de(E,1),x=O[0],T=x.getInternalHooks(tc),R=T.useSubscribe,N=T.setInitialValues,I=T.setCallbacks,P=T.setValidateMessages,L=T.setPreserve,D=T.destroyForm;u.useImperativeHandle(n,function(){return x}),u.useEffect(function(){return S.registerForm(r,x),function(){S.unregisterForm(r)}},[S,x,r]),P(Q(Q({},S.validateMessages),g)),I({onValuesChange:v,onFieldsChange:function(X){if(S.triggerFormChange(r,X),y){for(var re=arguments.length,te=new Array(re>1?re-1:0),Z=1;Z{}}),wP=u.createContext(null),_P=e=>{const t=Qn(e,["prefixCls"]);return u.createElement(SP,Object.assign({},t))},yw=u.createContext({prefixCls:""}),bi=u.createContext({}),v1=e=>{let{children:t,status:n,override:r}=e;const o=u.useContext(bi),i=u.useMemo(()=>{const a=Object.assign({},o);return r&&delete a.isFormItemInput,n&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[n,r,o]);return u.createElement(bi.Provider,{value:i},t)},EP=u.createContext(void 0);function AT(){}const VV=u.createContext({add:AT,remove:AT});function KV(e){const t=u.useContext(VV),n=u.useRef();return yr(o=>{if(o){const i=e?o.querySelector(e):o;t.add(i),n.current=i}else t.remove(n.current)})}const GV=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=u.useContext(mh);return se.createElement(hi,Object.assign({onClick:n},e),t)},LT=GV,XV=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=u.useContext(mh);return se.createElement(hi,Object.assign({},eP(n),{loading:e,onClick:o},t),r)},DT=XV;function xP(e,t){return se.createElement("span",{className:`${e}-close-x`},t||se.createElement(Zu,{className:`${e}-close-icon`}))}const OP=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:i,onCancel:a,okButtonProps:l,cancelButtonProps:c,footer:d}=e,[h]=Xu("Modal",aM()),g=t||(h==null?void 0:h.okText),p=r||(h==null?void 0:h.cancelText),m={confirmLoading:o,okButtonProps:l,cancelButtonProps:c,okTextLocale:g,cancelTextLocale:p,okType:n,onOk:i,onCancel:a},v=se.useMemo(()=>m,Be(Object.values(m)));let y;return typeof d=="function"||typeof d>"u"?(y=se.createElement(se.Fragment,null,se.createElement(LT,null),se.createElement(DT,null)),typeof d=="function"&&(y=d(y,{OkBtn:DT,CancelBtn:LT})),y=se.createElement(lP,{value:v},y)):y=d,se.createElement(nw,{disabled:!1},y)},bw=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),YV=e=>({animationDuration:e,animationFillMode:"both"}),qV=e=>({animationDuration:e,animationFillMode:"both"}),Sv=function(e,t,n,r){const i=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` ${i}${e}-enter, ${i}${e}-appear `]:Object.assign(Object.assign({},YV(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},qV(r)),{animationPlayState:"paused"}),[` ${i}${e}-enter${e}-enter-active, ${i}${e}-appear${e}-appear-active `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},QV=new en("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),ZV=new en("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),JV=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[Sv(r,QV,ZV,e.motionDurationMid,t),{[` ${o}${r}-enter, ${o}${r}-appear `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},eK=new en("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),tK=new en("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),nK=new en("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),rK=new en("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),oK=new en("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),iK=new en("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),aK=new en("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),lK=new en("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),sK={"move-up":{inKeyframes:aK,outKeyframes:lK},"move-down":{inKeyframes:eK,outKeyframes:tK},"move-left":{inKeyframes:nK,outKeyframes:rK},"move-right":{inKeyframes:oK,outKeyframes:iK}},bm=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=sK[t];return[Sv(r,o,i,e.motionDurationMid),{[` ${r}-enter, ${r}-appear `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Sw=new en("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Cw=new en("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),ww=new en("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),_w=new en("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),cK=new en("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),uK=new en("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),dK=new en("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),fK=new en("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),hK={"slide-up":{inKeyframes:Sw,outKeyframes:Cw},"slide-down":{inKeyframes:ww,outKeyframes:_w},"slide-left":{inKeyframes:cK,outKeyframes:uK},"slide-right":{inKeyframes:dK,outKeyframes:fK}},bs=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=hK[t];return[Sv(r,o,i,e.motionDurationMid),{[` ${r}-enter, ${r}-appear `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Ew=new en("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),gK=new en("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),BT=new en("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),FT=new en("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),pK=new en("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),mK=new en("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),vK=new en("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),yK=new en("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),bK=new en("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),SK=new en("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),CK=new en("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),wK=new en("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),_K={zoom:{inKeyframes:Ew,outKeyframes:gK},"zoom-big":{inKeyframes:BT,outKeyframes:FT},"zoom-big-fast":{inKeyframes:BT,outKeyframes:FT},"zoom-left":{inKeyframes:vK,outKeyframes:yK},"zoom-right":{inKeyframes:bK,outKeyframes:SK},"zoom-up":{inKeyframes:pK,outKeyframes:mK},"zoom-down":{inKeyframes:CK,outKeyframes:wK}},Cv=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=_K[t];return[Sv(r,o,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` ${r}-enter, ${r}-appear `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function zT(e){return{position:e,inset:0}}const EK=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},zT("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},zT("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:JV(e)}]},xK=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${oe(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},cr(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${oe(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${oe(e.modalCloseBtnSize)}`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},pc(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${oe(e.borderRadiusLG)} ${oe(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}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, ${t}-body, ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},OK=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},TP=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return pn(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},$P=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${oe(e.paddingMD)} ${oe(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${oe(e.padding)} ${oe(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${oe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${oe(e.paddingXS)} ${oe(e.padding)}`:0,footerBorderTop:e.wireframe?`${oe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${oe(e.padding*2)} ${oe(e.padding*2)} ${oe(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),RP=Zn("Modal",e=>{const t=TP(e);return[xK(t),OK(t),EK(t),Cv(t,"zoom")]},$P,{unitless:{titleLineHeight:!0}});var TK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{y1={x:e.pageX,y:e.pageY},setTimeout(()=>{y1=null},100)};Z9()&&document.documentElement.addEventListener("click",$K,!0);const RK=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o,modal:i}=u.useContext(bt),a=j=>{const{onCancel:G}=e;G==null||G(j)},l=j=>{const{onOk:G}=e;G==null||G(j)},{prefixCls:c,className:d,rootClassName:h,open:g,wrapClassName:p,centered:m,getContainer:v,focusTriggerAfterClose:y=!0,style:w,visible:C,width:b=520,footer:S,classNames:E,styles:O}=e,x=TK(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),T=r("modal",c),R=r(),N=Yo(T),[I,P,L]=RP(T,N),D=ne(p,{[`${T}-centered`]:!!m,[`${T}-wrap-rtl`]:o==="rtl"}),z=S!==null&&u.createElement(OP,Object.assign({},e,{onOk:l,onCancel:a})),[W,B]=q9(bT(e),bT(i),{closable:!0,closeIcon:u.createElement(Zu,{className:`${T}-close-icon`}),closeIconRender:j=>xP(T,j)}),M=KV(`.${T}-content`),[A,U]=hh("Modal",x.zIndex);return I(u.createElement(Kf,null,u.createElement(v1,{status:!0,override:!0},u.createElement(mv.Provider,{value:U},u.createElement(hP,Object.assign({width:b},x,{zIndex:A,getContainer:v===void 0?n:v,prefixCls:T,rootClassName:ne(P,h,L,N),footer:z,visible:g??C,mousePosition:(t=x.mousePosition)!==null&&t!==void 0?t:y1,onClose:a,closable:W,closeIcon:B,focusTriggerAfterClose:y,transitionName:mc(R,"zoom",e.transitionName),maskTransitionName:mc(R,"fade",e.maskTransitionName),className:ne(P,d,i==null?void 0:i.className),style:Object.assign(Object.assign({},i==null?void 0:i.style),w),classNames:Object.assign(Object.assign(Object.assign({},i==null?void 0:i.classNames),E),{wrapper:ne(D,E==null?void 0:E.wrapper)}),styles:Object.assign(Object.assign({},i==null?void 0:i.styles),O),panelRef:M}))))))},IP=RK,IK=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:a,modalTitleHeight:l,fontHeight:c,confirmBodyPadding:d}=e,h=`${t}-confirm`;return{[h]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${h}-body-wrapper`]:Object.assign({},ys()),[`&${t} ${t}-body`]:{padding:d},[`${h}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()}},[`${h}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS},[`${e.iconCls} + ${h}-paragraph`]:{maxWidth:`calc(100% - ${oe(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${h}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${h}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${h}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${h}-error ${h}-body > ${e.iconCls}`]:{color:e.colorError},[`${h}-warning ${h}-body > ${e.iconCls}, ${h}-confirm ${h}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${h}-info ${h}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${h}-success ${h}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},NK=hv(["Modal","confirm"],e=>{const t=TP(e);return[IK(t)]},$P,{order:-1e3});var MK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);ob,Be(Object.values(b))),E=u.createElement(u.Fragment,null,u.createElement(sT,null),u.createElement(cT,null)),O=e.title!==void 0&&e.title!==null,x=`${i}-body`;return u.createElement("div",{className:`${i}-body-wrapper`},u.createElement("div",{className:ne(x,{[`${x}-has-title`]:O})},g,u.createElement("div",{className:`${i}-paragraph`},O&&u.createElement("span",{className:`${i}-title`},e.title),u.createElement("div",{className:`${i}-content`},e.content))),c===void 0||typeof c=="function"?u.createElement(lP,{value:S},u.createElement("div",{className:`${i}-btns`},typeof c=="function"?c(E,{OkBtn:cT,CancelBtn:sT}):E)):c,u.createElement(NK,{prefixCls:t}))}const PK=e=>{const{close:t,zIndex:n,afterClose:r,open:o,keyboard:i,centered:a,getContainer:l,maskStyle:c,direction:d,prefixCls:h,wrapClassName:g,rootPrefixCls:p,bodyStyle:m,closable:v=!1,closeIcon:y,modalRender:w,focusTriggerAfterClose:C,onConfirm:b,styles:S}=e,E=`${h}-confirm`,O=e.width||416,x=e.style||{},T=e.mask===void 0?!0:e.mask,R=e.maskClosable===void 0?!1:e.maskClosable,N=ne(E,`${E}-${e.type}`,{[`${E}-rtl`]:d==="rtl"},e.className),[,I]=Dr(),P=u.useMemo(()=>n!==void 0?n:I.zIndexPopupBase+sw,[n,I]);return u.createElement(IP,{prefixCls:h,className:N,wrapClassName:ne({[`${E}-centered`]:!!e.centered},g),onCancel:()=>{t==null||t({triggerCancel:!0}),b==null||b(!1)},open:o,title:"",footer:null,transitionName:mc(p||"","zoom",e.transitionName),maskTransitionName:mc(p||"","fade",e.maskTransitionName),mask:T,maskClosable:R,style:x,styles:Object.assign({body:m,mask:c},S),width:O,zIndex:P,afterClose:r,keyboard:i,centered:a,getContainer:l,closable:v,closeIcon:y,modalRender:w,focusTriggerAfterClose:C},u.createElement(NP,Object.assign({},e,{confirmPrefixCls:E})))},AK=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return u.createElement(dh,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},u.createElement(PK,Object.assign({},e)))},MP=AK,rc=[];let PP="";function AP(){return PP}const LK=e=>{var t,n;const{prefixCls:r,getContainer:o,direction:i}=e,a=aM(),l=u.useContext(bt),c=AP()||l.getPrefixCls(),d=r||`${c}-modal`;let h=o;return h===!1&&(h=void 0),se.createElement(MP,Object.assign({},e,{rootPrefixCls:c,prefixCls:d,iconPrefixCls:l.iconPrefixCls,theme:l.theme,direction:i??l.direction,locale:(n=(t=l.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:a,getContainer:h}))};function yh(e){const t=zM(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:l,open:!0}),o;function i(){for(var d=arguments.length,h=new Array(d),g=0;gm&&m.triggerCancel);e.onCancel&&p&&e.onCancel.apply(e,[()=>{}].concat(Be(h.slice(1))));for(let m=0;m{const h=t.getPrefixCls(void 0,AP()),g=t.getIconPrefixCls(),p=t.getTheme(),m=se.createElement(LK,Object.assign({},d));cw(se.createElement(dh,{prefixCls:h,iconPrefixCls:g,theme:p},t.holderRender?t.holderRender(m):m),n)})}function l(){for(var d=arguments.length,h=new Array(d),g=0;g{typeof e.afterClose=="function"&&e.afterClose(),i.apply(this,h)}}),r.visible&&delete r.visible,a(r)}function c(d){typeof d=="function"?r=d(r):r=Object.assign(Object.assign({},r),d),a(r)}return a(r),rc.push(l),{destroy:l,update:c}}function LP(e){return Object.assign(Object.assign({},e),{type:"warning"})}function DP(e){return Object.assign(Object.assign({},e),{type:"info"})}function BP(e){return Object.assign(Object.assign({},e),{type:"success"})}function FP(e){return Object.assign(Object.assign({},e),{type:"error"})}function zP(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function DK(e){let{rootPrefixCls:t}=e;PP=t}var BK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,{afterClose:r,config:o}=e,i=BK(e,["afterClose","config"]);const[a,l]=u.useState(!0),[c,d]=u.useState(o),{direction:h,getPrefixCls:g}=u.useContext(bt),p=g("modal"),m=g(),v=()=>{var b;r(),(b=c.afterClose)===null||b===void 0||b.call(c)},y=function(){l(!1);for(var b=arguments.length,S=new Array(b),E=0;Ex&&x.triggerCancel);c.onCancel&&O&&c.onCancel.apply(c,[()=>{}].concat(Be(S.slice(1))))};u.useImperativeHandle(t,()=>({destroy:y,update:b=>{d(S=>Object.assign(Object.assign({},S),b))}}));const w=(n=c.okCancel)!==null&&n!==void 0?n:c.type==="confirm",[C]=Xu("Modal",vs.Modal);return u.createElement(MP,Object.assign({prefixCls:p,rootPrefixCls:m},c,{close:y,open:a,afterClose:v,okText:c.okText||(w?C==null?void 0:C.okText:C==null?void 0:C.justOkText),direction:c.direction||h,cancelText:c.cancelText||(C==null?void 0:C.cancelText)},i))},zK=u.forwardRef(FK);let kT=0;const kK=u.memo(u.forwardRef((e,t)=>{const[n,r]=TU();return u.useImperativeHandle(t,()=>({patchElement:r}),[]),u.createElement(u.Fragment,null,n)}));function jK(){const e=u.useRef(null),[t,n]=u.useState([]);u.useEffect(()=>{t.length&&(Be(t).forEach(a=>{a()}),n([]))},[t]);const r=u.useCallback(i=>function(l){var c;kT+=1;const d=u.createRef();let h;const g=new Promise(w=>{h=w});let p=!1,m;const v=u.createElement(zK,{key:`modal-${kT}`,config:i(l),ref:d,afterClose:()=>{m==null||m()},isSilent:()=>p,onConfirm:w=>{h(w)}});return m=(c=e.current)===null||c===void 0?void 0:c.patchElement(v),m&&rc.push(m),{destroy:()=>{function w(){var C;(C=d.current)===null||C===void 0||C.destroy()}d.current?w():n(C=>[].concat(Be(C),[w]))},update:w=>{function C(){var b;(b=d.current)===null||b===void 0||b.update(w)}d.current?C():n(b=>[].concat(Be(b),[C]))},then:w=>(p=!0,g.then(w))}},[]);return[u.useMemo(()=>({info:r(DP),success:r(BP),error:r(FP),warning:r(LP),confirm:r(zP)}),[]),u.createElement(kK,{key:"modal-holder",ref:e})]}const HK=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,i=new en("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new en("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),l=new en("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),c=new en("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:c}}}}},WK=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],UK={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},VK=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[UK[t]]:{value:0,_skip_check_:!0}}}}},KK=e=>{const t={};for(let n=1;n ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},GK=e=>{const t={};for(let n=1;n{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},KK(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},GK(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},WK.map(n=>VK(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},kP=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:l,colorInfo:c,colorWarning:d,colorError:h,colorTextHeading:g,notificationBg:p,notificationPadding:m,notificationMarginEdge:v,fontSize:y,lineHeight:w,width:C,notificationIconSize:b,colorText:S}=e,E=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:p,borderRadius:a,boxShadow:r,[E]:{padding:m,width:C,maxWidth:`calc(100vw - ${oe(e.calc(v).mul(2).equal())})`,overflow:"hidden",lineHeight:w,wordWrap:"break-word"},[`${E}-message`]:{marginBottom:e.marginXS,color:g,fontSize:o,lineHeight:e.lineHeightLG},[`${E}-description`]:{fontSize:y,color:S},[`${E}-closable ${E}-message`]:{paddingInlineEnd:e.paddingLG},[`${E}-with-icon ${E}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(b).equal(),fontSize:o},[`${E}-with-icon ${E}-description`]:{marginInlineStart:e.calc(e.marginSM).add(b).equal(),fontSize:y},[`${E}-icon`]:{position:"absolute",fontSize:b,lineHeight:1,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:c},[`&-warning${t}`]:{color:d},[`&-error${t}`]:{color:h}},[`${E}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},pc(e)),[`${E}-btn`]:{float:"right",marginTop:e.marginSM}}},YK=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:i}=e,a=`${t}-notice`,l=new en("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},cr(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:l,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${a}-btn`]:{float:"left"}}})},{[t]:{[`${a}-wrapper`]:Object.assign({},kP(e))}}]},jP=e=>({zIndexPopup:e.zIndexPopupBase+sw+50,width:384}),HP=e=>{const t=e.paddingMD,n=e.paddingLG;return pn(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${oe(e.paddingMD)} ${oe(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3})},WP=Zn("Notification",e=>{const t=HP(e);return[YK(t),HK(t),XK(t)]},jP),qK=hv(["Notification","PurePanel"],e=>{const t=`${e.componentCls}-notice`,n=HP(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},kP(n)),{width:n.width,maxWidth:`calc(100vw - ${oe(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}},jP);var QK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,icon:n,type:r,message:o,description:i,btn:a,role:l="alert"}=e;let c=null;return n?c=u.createElement("span",{className:`${t}-icon`},n):r&&(c=u.createElement(ZK[r]||null,{className:ne(`${t}-icon`,`${t}-icon-${r}`)})),u.createElement("div",{className:ne({[`${t}-with-icon`]:c}),role:l},c,u.createElement("div",{className:`${t}-message`},o),u.createElement("div",{className:`${t}-description`},i),a&&u.createElement("div",{className:`${t}-btn`},a))},JK=e=>{const{prefixCls:t,className:n,icon:r,type:o,message:i,description:a,btn:l,closable:c=!0,closeIcon:d,className:h}=e,g=QK(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon","className"]),{getPrefixCls:p}=u.useContext(bt),m=t||p("notification"),v=`${m}-notice`,y=Yo(m),[w,C,b]=WP(m,y);return w(u.createElement("div",{className:ne(`${v}-pure-panel`,C,n,b,y)},u.createElement(qK,{prefixCls:m}),u.createElement(KM,Object.assign({},g,{prefixCls:m,eventKey:"pure",duration:null,closable:c,className:ne({notificationClassName:h}),closeIcon:xw(m,d),content:u.createElement(UP,{prefixCls:v,icon:r,type:o,message:i,description:a,btn:l})}))))},eG=JK;function tG(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function nG(e){return{motionName:`${e}-fade`}}var rG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let{children:t,prefixCls:n}=e;const r=Yo(n),[o,i,a]=WP(n,r);return o(se.createElement(dU,{classNames:{list:ne(i,a,r)}},t))},lG=(e,t)=>{let{prefixCls:n,key:r}=t;return se.createElement(aG,{prefixCls:n,key:r},e)},sG=se.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:o,getContainer:i,maxCount:a,rtl:l,onAllRemoved:c,stack:d,duration:h}=e,{getPrefixCls:g,getPopupContainer:p,notification:m,direction:v}=u.useContext(bt),[,y]=Dr(),w=o||g("notification"),C=x=>tG(x,n??jT,r??jT),b=()=>ne({[`${w}-rtl`]:l??v==="rtl"}),S=()=>nG(w),[E,O]=bU({prefixCls:w,style:C,className:b,motion:S,closable:!0,closeIcon:xw(w),duration:h??oG,getContainer:()=>(i==null?void 0:i())||(p==null?void 0:p())||document.body,maxCount:a,onAllRemoved:c,renderNotifications:lG,stack:d===!1?!1:{threshold:typeof d=="object"?d==null?void 0:d.threshold:void 0,offset:8,gap:y.margin}});return se.useImperativeHandle(t,()=>Object.assign(Object.assign({},E),{prefixCls:w,notification:m})),O});function VP(e){const t=se.useRef(null);return ch(),[se.useMemo(()=>{const r=l=>{var c;if(!t.current)return;const{open:d,prefixCls:h,notification:g}=t.current,p=`${h}-notice`,{message:m,description:v,icon:y,type:w,btn:C,className:b,style:S,role:E="alert",closeIcon:O,closable:x}=l,T=rG(l,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),R=xw(p,typeof O<"u"?O:g==null?void 0:g.closeIcon);return d(Object.assign(Object.assign({placement:(c=e==null?void 0:e.placement)!==null&&c!==void 0?c:iG},T),{content:se.createElement(UP,{prefixCls:p,icon:y,type:w,message:m,description:v,btn:C,role:E}),className:ne(w&&`${p}-${w}`,b,g==null?void 0:g.className),style:Object.assign(Object.assign({},g==null?void 0:g.style),S),closeIcon:R,closable:x??!!R}))},i={open:r,destroy:l=>{var c,d;l!==void 0?(c=t.current)===null||c===void 0||c.close(l):(d=t.current)===null||d===void 0||d.destroy()}};return["success","info","warning","error"].forEach(l=>{i[l]=c=>r(Object.assign(Object.assign({},c),{type:l}))}),i},[]),se.createElement(sG,Object.assign({key:"notification-holder"},e,{ref:t}))]}function cG(e){return VP(e)}const uG=se.createContext({});function KP(e){return t=>u.createElement(dh,{theme:{token:{motion:!1,zIndexPopupBase:0}}},u.createElement(e,Object.assign({},t)))}const GP=(e,t,n,r)=>KP(i=>{const{prefixCls:a,style:l}=i,c=u.useRef(null),[d,h]=u.useState(0),[g,p]=u.useState(0),[m,v]=Vr(!1,{value:i.open}),{getPrefixCls:y}=u.useContext(bt),w=y(t||"select",a);u.useEffect(()=>{if(v(!0),typeof ResizeObserver<"u"){const S=new ResizeObserver(O=>{const x=O[0].target;h(x.offsetHeight+8),p(x.offsetWidth)}),E=setInterval(()=>{var O;const x=n?`.${n(w)}`:`.${w}-dropdown`,T=(O=c.current)===null||O===void 0?void 0:O.querySelector(x);T&&(clearInterval(E),S.observe(T))},10);return()=>{clearInterval(E),S.disconnect()}}},[]);let C=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},l),{margin:0}),open:m,visible:m,getPopupContainer:()=>c.current});r&&(C=r(C));const b={paddingBottom:d,position:"relative",minWidth:g};return u.createElement("div",{ref:c,style:b},u.createElement(e,Object.assign({},C)))}),Ow=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var wv=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,i=t.children,a=t.onMouseDown,l=t.onClick,c=typeof r=="function"?r(o):r;return u.createElement("span",{className:n,onMouseDown:function(h){h.preventDefault(),a==null||a(h)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},c!==void 0?c:u.createElement("span",{className:ne(n.split(/\s+/).map(function(d){return"".concat(d,"-icon")}))},i))},dG=function(t,n,r,o,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,l=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,d=se.useMemo(function(){if(Pt(o)==="object")return o.clearIcon;if(i)return i},[o,i]),h=se.useMemo(function(){return!!(!a&&o&&(r.length||l)&&!(c==="combobox"&&l===""))},[o,a,r.length,l,c]);return{allowClear:h,clearIcon:se.createElement(wv,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:d},"×")}},XP=u.createContext(null);function fG(){return u.useContext(XP)}function hG(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=u.useState(!1),n=de(t,2),r=n[0],o=n[1],i=u.useRef(null),a=function(){window.clearTimeout(i.current)};u.useEffect(function(){return a},[]);var l=function(d,h){a(),i.current=window.setTimeout(function(){o(d),h&&h()},e)};return[r,l,a]}function YP(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=u.useRef(null),n=u.useRef(null);u.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function gG(e,t,n,r){var o=u.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},u.useEffect(function(){function i(a){var l;if(!((l=o.current)!==null&&l!==void 0&&l.customizedTrigger)){var c=a.target;c.shadowRoot&&a.composed&&(c=a.composedPath()[0]||c),o.current.open&&e().filter(function(d){return d}).every(function(d){return!d.contains(c)&&d!==c})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[])}function pG(e){return![_e.ESC,_e.SHIFT,_e.BACKSPACE,_e.TAB,_e.WIN_KEY,_e.ALT,_e.META,_e.WIN_KEY_RIGHT,_e.CTRL,_e.SEMICOLON,_e.EQUALS,_e.CAPS_LOCK,_e.CONTEXT_MENU,_e.F1,_e.F2,_e.F3,_e.F4,_e.F5,_e.F6,_e.F7,_e.F8,_e.F9,_e.F10,_e.F11,_e.F12].includes(e)}var mG=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Kc=void 0;function vG(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,l=e.responsiveDisabled,c=e.registerSize,d=e.itemKey,h=e.className,g=e.style,p=e.children,m=e.display,v=e.order,y=e.component,w=y===void 0?"div":y,C=Mt(e,mG),b=a&&!m;function S(R){c(d,R)}u.useEffect(function(){return function(){S(null)}},[]);var E=i&&o!==Kc?i(o):p,O;r||(O={opacity:b?0:1,height:b?0:Kc,overflowY:b?"hidden":Kc,order:a?v:Kc,pointerEvents:b?"none":Kc,position:b?"absolute":Kc});var x={};b&&(x["aria-hidden"]=!0);var T=u.createElement(w,De({className:ne(!r&&n,h),style:Q(Q({},O),g)},x,C,{ref:t}),E);return a&&(T=u.createElement(Hi,{onResize:function(N){var I=N.offsetWidth;S(I)},disabled:l},T)),T}var Sf=u.forwardRef(vG);Sf.displayName="Item";function yG(e){if(typeof MessageChannel>"u")bn(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function bG(){var e=u.useRef(null),t=function(r){e.current||(e.current=[],yG(function(){va.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function zd(e,t){var n=u.useState(t),r=de(n,2),o=r[0],i=r[1],a=yr(function(l){e(function(){i(l)})});return[o,a]}var Sm=se.createContext(null),SG=["component"],CG=["className"],wG=["className"],_G=function(t,n){var r=u.useContext(Sm);if(!r){var o=t.component,i=o===void 0?"div":o,a=Mt(t,SG);return u.createElement(i,De({},a,{ref:n}))}var l=r.className,c=Mt(r,CG),d=t.className,h=Mt(t,wG);return u.createElement(Sm.Provider,{value:null},u.createElement(Sf,De({ref:n,className:ne(l,d)},c,h)))},qP=u.forwardRef(_G);qP.displayName="RawItem";var EG=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],QP="responsive",ZP="invalidate";function xG(e){return"+ ".concat(e.length," ...")}function OG(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,i=o===void 0?[]:o,a=e.renderItem,l=e.renderRawItem,c=e.itemKey,d=e.itemWidth,h=d===void 0?10:d,g=e.ssr,p=e.style,m=e.className,v=e.maxCount,y=e.renderRest,w=e.renderRawRest,C=e.suffix,b=e.component,S=b===void 0?"div":b,E=e.itemComponent,O=e.onVisibleChange,x=Mt(e,EG),T=g==="full",R=bG(),N=zd(R,null),I=de(N,2),P=I[0],L=I[1],D=P||0,z=zd(R,new Map),W=de(z,2),B=W[0],M=W[1],A=zd(R,0),U=de(A,2),j=U[0],G=U[1],X=zd(R,0),re=de(X,2),te=re[0],Z=re[1],he=zd(R,0),ge=de(he,2),ce=ge[0],be=ge[1],pe=u.useState(null),ae=de(pe,2),J=ae[0],ue=ae[1],ie=u.useState(null),Ce=de(ie,2),Oe=Ce[0],Te=Ce[1],Me=u.useMemo(function(){return Oe===null&&T?Number.MAX_SAFE_INTEGER:Oe||0},[Oe,P]),me=u.useState(!1),ve=de(me,2),xe=ve[0],Ae=ve[1],Pe="".concat(r,"-item"),Fe=Math.max(j,te),Ee=v===QP,Ie=i.length&&Ee,je=v===ZP,Le=Ie||typeof v=="number"&&i.length>v,Ue=u.useMemo(function(){var at=i;return Ie?P===null&&T?at=i:at=i.slice(0,Math.min(i.length,D/h)):typeof v=="number"&&(at=i.slice(0,v)),at},[i,h,P,v,Ie]),Ve=u.useMemo(function(){return Ie?i.slice(Me+1):i.slice(Ue.length)},[i,Ue,Ie,Me]),We=u.useCallback(function(at,Xe){var mt;return typeof c=="function"?c(at):(mt=c&&(at==null?void 0:at[c]))!==null&&mt!==void 0?mt:Xe},[c]),Ke=u.useCallback(a||function(at){return at},[a]);function Et(at,Xe,mt){Oe===at&&(Xe===void 0||Xe===J)||(Te(at),mt||(Ae(atD){Et(Bt-1,at-Ye-ce+te);break}}C&&Qe(0)+ce>D&&ue(null)}},[D,B,te,ce,We,Ue]);var It=xe&&!!Ve.length,Ht={};J!==null&&Ie&&(Ht={position:"absolute",left:J,top:0});var sn={prefixCls:Pe,responsive:Ie,component:E,invalidate:je},vn=l?function(at,Xe){var mt=We(at,Xe);return u.createElement(Sm.Provider,{key:mt,value:Q(Q({},sn),{},{order:Xe,item:at,itemKey:mt,registerSize:At,display:Xe<=Me})},l(at,Xe))}:function(at,Xe){var mt=We(at,Xe);return u.createElement(Sf,De({},sn,{order:Xe,key:mt,item:at,renderItem:Ke,itemKey:mt,registerSize:At,display:Xe<=Me}))},Vt,Lt={order:It?Me:Number.MAX_SAFE_INTEGER,className:"".concat(Pe,"-rest"),registerSize:Kt,display:It};if(w)w&&(Vt=u.createElement(Sm.Provider,{value:Q(Q({},sn),Lt)},w(Ve)));else{var rt=y||xG;Vt=u.createElement(Sf,De({},sn,Lt),typeof rt=="function"?rt(Ve):rt)}var xt=u.createElement(S,De({className:ne(!je&&r,m),style:p,ref:t},x),Ue.map(vn),Le?Vt:null,C&&u.createElement(Sf,De({},sn,{responsive:Ee,responsiveDisabled:!Ie,order:Me,className:"".concat(Pe,"-suffix"),registerSize:He,display:!0,style:Ht}),C));return Ee&&(xt=u.createElement(Hi,{onResize:ht,disabled:!Ie},xt)),xt}var za=u.forwardRef(OG);za.displayName="Overflow";za.Item=qP;za.RESPONSIVE=QP;za.INVALIDATE=ZP;var TG=function(t,n){var r,o=t.prefixCls,i=t.id,a=t.inputElement,l=t.disabled,c=t.tabIndex,d=t.autoFocus,h=t.autoComplete,g=t.editable,p=t.activeDescendantId,m=t.value,v=t.maxLength,y=t.onKeyDown,w=t.onMouseDown,C=t.onChange,b=t.onPaste,S=t.onCompositionStart,E=t.onCompositionEnd,O=t.open,x=t.attrs,T=a||u.createElement("input",null),R=T,N=R.ref,I=R.props,P=I.onKeyDown,L=I.onChange,D=I.onMouseDown,z=I.onCompositionStart,W=I.onCompositionEnd,B=I.style;return"maxLength"in T.props,T=u.cloneElement(T,Q(Q(Q({type:"search"},I),{},{id:i,ref:wi(n,N),disabled:l,tabIndex:c,autoComplete:h||"off",autoFocus:d,className:ne("".concat(o,"-selection-search-input"),(r=T)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":O||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":O?p:void 0},x),{},{value:g?m:"",maxLength:v,readOnly:!g,unselectable:g?null:"on",style:Q(Q({},B),{},{opacity:g?null:0}),onKeyDown:function(A){y(A),P&&P(A)},onMouseDown:function(A){w(A),D&&D(A)},onChange:function(A){C(A),L&&L(A)},onCompositionStart:function(A){S(A),z&&z(A)},onCompositionEnd:function(A){E(A),W&&W(A)},onPaste:b})),T},JP=u.forwardRef(TG);function eA(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var $G=typeof window<"u"&&window.document&&window.document.documentElement,RG=$G;function IG(e){return e!=null}function NG(e){return!e&&e!==0}function HT(e){return["string","number"].includes(Pt(e))}function tA(e){var t=void 0;return e&&(HT(e.title)?t=e.title.toString():HT(e.label)&&(t=e.label.toString())),t}function MG(e,t){RG?u.useLayoutEffect(e,t):u.useEffect(e,t)}function PG(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var WT=function(t){t.preventDefault(),t.stopPropagation()},AG=function(t){var n=t.id,r=t.prefixCls,o=t.values,i=t.open,a=t.searchValue,l=t.autoClearSearchValue,c=t.inputRef,d=t.placeholder,h=t.disabled,g=t.mode,p=t.showSearch,m=t.autoFocus,v=t.autoComplete,y=t.activeDescendantId,w=t.tabIndex,C=t.removeIcon,b=t.maxTagCount,S=t.maxTagTextLength,E=t.maxTagPlaceholder,O=E===void 0?function(ue){return"+ ".concat(ue.length," ...")}:E,x=t.tagRender,T=t.onToggleOpen,R=t.onRemove,N=t.onInputChange,I=t.onInputPaste,P=t.onInputKeyDown,L=t.onInputMouseDown,D=t.onInputCompositionStart,z=t.onInputCompositionEnd,W=u.useRef(null),B=u.useState(0),M=de(B,2),A=M[0],U=M[1],j=u.useState(!1),G=de(j,2),X=G[0],re=G[1],te="".concat(r,"-selection"),Z=i||g==="multiple"&&l===!1||g==="tags"?a:"",he=g==="tags"||g==="multiple"&&l===!1||p&&(i||X);MG(function(){U(W.current.scrollWidth)},[Z]);var ge=function(ie,Ce,Oe,Te,Me){return u.createElement("span",{title:tA(ie),className:ne("".concat(te,"-item"),K({},"".concat(te,"-item-disabled"),Oe))},u.createElement("span",{className:"".concat(te,"-item-content")},Ce),Te&&u.createElement(wv,{className:"".concat(te,"-item-remove"),onMouseDown:WT,onClick:Me,customizeIcon:C},"×"))},ce=function(ie,Ce,Oe,Te,Me){var me=function(xe){WT(xe),T(!i)};return u.createElement("span",{onMouseDown:me},x({label:Ce,value:ie,disabled:Oe,closable:Te,onClose:Me}))},be=function(ie){var Ce=ie.disabled,Oe=ie.label,Te=ie.value,Me=!h&&!Ce,me=Oe;if(typeof S=="number"&&(typeof Oe=="string"||typeof Oe=="number")){var ve=String(me);ve.length>S&&(me="".concat(ve.slice(0,S),"..."))}var xe=function(Pe){Pe&&Pe.stopPropagation(),R(ie)};return typeof x=="function"?ce(Te,me,Ce,Me,xe):ge(ie,me,Ce,Me,xe)},pe=function(ie){var Ce=typeof O=="function"?O(ie):O;return ge({title:Ce},Ce,!1)},ae=u.createElement("div",{className:"".concat(te,"-search"),style:{width:A},onFocus:function(){re(!0)},onBlur:function(){re(!1)}},u.createElement(JP,{ref:c,open:i,prefixCls:r,id:n,inputElement:null,disabled:h,autoFocus:m,autoComplete:v,editable:he,activeDescendantId:y,value:Z,onKeyDown:P,onMouseDown:L,onChange:N,onPaste:I,onCompositionStart:D,onCompositionEnd:z,tabIndex:w,attrs:ya(t,!0)}),u.createElement("span",{ref:W,className:"".concat(te,"-search-mirror"),"aria-hidden":!0},Z," ")),J=u.createElement(za,{prefixCls:"".concat(te,"-overflow"),data:o,renderItem:be,renderRest:pe,suffix:ae,itemKey:PG,maxCount:b});return u.createElement(u.Fragment,null,J,!o.length&&!Z&&u.createElement("span",{className:"".concat(te,"-placeholder")},d))},LG=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,i=t.inputRef,a=t.disabled,l=t.autoFocus,c=t.autoComplete,d=t.activeDescendantId,h=t.mode,g=t.open,p=t.values,m=t.placeholder,v=t.tabIndex,y=t.showSearch,w=t.searchValue,C=t.activeValue,b=t.maxLength,S=t.onInputKeyDown,E=t.onInputMouseDown,O=t.onInputChange,x=t.onInputPaste,T=t.onInputCompositionStart,R=t.onInputCompositionEnd,N=t.title,I=u.useState(!1),P=de(I,2),L=P[0],D=P[1],z=h==="combobox",W=z||y,B=p[0],M=w||"";z&&C&&!L&&(M=C),u.useEffect(function(){z&&D(!1)},[z,C]);var A=h!=="combobox"&&!g&&!y?!1:!!M,U=N===void 0?tA(B):N,j=u.useMemo(function(){return B?null:u.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:A?{visibility:"hidden"}:void 0},m)},[B,A,m,r]);return u.createElement(u.Fragment,null,u.createElement("span",{className:"".concat(r,"-selection-search")},u.createElement(JP,{ref:i,prefixCls:r,id:o,open:g,inputElement:n,disabled:a,autoFocus:l,autoComplete:c,editable:W,activeDescendantId:d,value:M,onKeyDown:S,onMouseDown:E,onChange:function(X){D(!0),O(X)},onPaste:x,onCompositionStart:T,onCompositionEnd:R,tabIndex:v,attrs:ya(t,!0),maxLength:z?b:void 0})),!z&&B?u.createElement("span",{className:"".concat(r,"-selection-item"),title:U,style:A?{visibility:"hidden"}:void 0},B.label):null,j)},DG=function(t,n){var r=u.useRef(null),o=u.useRef(!1),i=t.prefixCls,a=t.open,l=t.mode,c=t.showSearch,d=t.tokenWithEnter,h=t.autoClearSearchValue,g=t.onSearch,p=t.onSearchSubmit,m=t.onToggleOpen,v=t.onInputKeyDown,y=t.domRef;u.useImperativeHandle(n,function(){return{focus:function(M){r.current.focus(M)},blur:function(){r.current.blur()}}});var w=YP(0),C=de(w,2),b=C[0],S=C[1],E=function(M){var A=M.which;(A===_e.UP||A===_e.DOWN)&&M.preventDefault(),v&&v(M),A===_e.ENTER&&l==="tags"&&!o.current&&!a&&(p==null||p(M.target.value)),pG(A)&&m(!0)},O=function(){S(!0)},x=u.useRef(null),T=function(M){g(M,!0,o.current)!==!1&&m(!0)},R=function(){o.current=!0},N=function(M){o.current=!1,l!=="combobox"&&T(M.target.value)},I=function(M){var A=M.target.value;if(d&&x.current&&/[\r\n]/.test(x.current)){var U=x.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");A=A.replace(U,x.current)}x.current=null,T(A)},P=function(M){var A=M.clipboardData,U=A==null?void 0:A.getData("text");x.current=U||""},L=function(M){var A=M.target;if(A!==r.current){var U=document.body.style.msTouchAction!==void 0;U?setTimeout(function(){r.current.focus()}):r.current.focus()}},D=function(M){var A=b();M.target!==r.current&&!A&&l!=="combobox"&&M.preventDefault(),(l!=="combobox"&&(!c||!A)||!a)&&(a&&h!==!1&&g("",!0,!1),m())},z={inputRef:r,onInputKeyDown:E,onInputMouseDown:O,onInputChange:I,onInputPaste:P,onInputCompositionStart:R,onInputCompositionEnd:N},W=l==="multiple"||l==="tags"?u.createElement(AG,De({},t,z)):u.createElement(LG,De({},t,z));return u.createElement("div",{ref:y,className:"".concat(i,"-selector"),onClick:L,onMouseDown:D},W)},BG=u.forwardRef(DG);function FG(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,l=i.content,c=o.x,d=c===void 0?0:c,h=o.y,g=h===void 0?0:h,p=u.useRef();if(!n||!n.points)return null;var m={position:"absolute"};if(n.autoArrow!==!1){var v=n.points[0],y=n.points[1],w=v[0],C=v[1],b=y[0],S=y[1];w===b||!["t","b"].includes(w)?m.top=g:w==="t"?m.top=0:m.bottom=0,C===S||!["l","r"].includes(C)?m.left=d:C==="l"?m.left=0:m.right=0}return u.createElement("div",{ref:p,className:ne("".concat(t,"-arrow"),a),style:m},l)}function zG(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?u.createElement(Sa,De({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var l=a.className;return u.createElement("div",{style:{zIndex:r},className:ne("".concat(t,"-mask"),l)})}):null}var kG=u.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),jG=u.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,l=e.onVisibleChanged,c=e.open,d=e.keepDom,h=e.fresh,g=e.onClick,p=e.mask,m=e.arrow,v=e.arrowPos,y=e.align,w=e.motion,C=e.maskMotion,b=e.forceRender,S=e.getPopupContainer,E=e.autoDestroy,O=e.portal,x=e.zIndex,T=e.onMouseEnter,R=e.onMouseLeave,N=e.onPointerEnter,I=e.ready,P=e.offsetX,L=e.offsetY,D=e.offsetR,z=e.offsetB,W=e.onAlign,B=e.onPrepare,M=e.stretch,A=e.targetWidth,U=e.targetHeight,j=typeof n=="function"?n():n,G=c||d,X=(S==null?void 0:S.length)>0,re=u.useState(!S||!X),te=de(re,2),Z=te[0],he=te[1];if(dn(function(){!Z&&X&&a&&he(!0)},[Z,X,a]),!Z)return null;var ge="auto",ce={left:"-1000vw",top:"-1000vh",right:ge,bottom:ge};if(I||!c){var be,pe=y.points,ae=y.dynamicInset||((be=y._experimental)===null||be===void 0?void 0:be.dynamicInset),J=ae&&pe[0][1]==="r",ue=ae&&pe[0][0]==="b";J?(ce.right=D,ce.left=ge):(ce.left=P,ce.right=ge),ue?(ce.bottom=z,ce.top=ge):(ce.top=L,ce.bottom=ge)}var ie={};return M&&(M.includes("height")&&U?ie.height=U:M.includes("minHeight")&&U&&(ie.minHeight=U),M.includes("width")&&A?ie.width=A:M.includes("minWidth")&&A&&(ie.minWidth=A)),c||(ie.pointerEvents="none"),u.createElement(O,{open:b||G,getContainer:S&&function(){return S(a)},autoDestroy:E},u.createElement(zG,{prefixCls:o,open:c,zIndex:x,mask:p,motion:C}),u.createElement(Hi,{onResize:W,disabled:!c},function(Ce){return u.createElement(Sa,De({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(o,"-hidden")},w,{onAppearPrepare:B,onEnterPrepare:B,visible:c,onVisibleChanged:function(Te){var Me;w==null||(Me=w.onVisibleChanged)===null||Me===void 0||Me.call(w,Te),l(Te)}}),function(Oe,Te){var Me=Oe.className,me=Oe.style,ve=ne(o,Me,r);return u.createElement("div",{ref:wi(Ce,t,Te),className:ve,style:Q(Q(Q(Q({"--arrow-x":"".concat(v.x||0,"px"),"--arrow-y":"".concat(v.y||0,"px")},ce),ie),me),{},{boxSizing:"border-box",zIndex:x},i),onMouseEnter:T,onMouseLeave:R,onPointerEnter:N,onClick:g},m&&u.createElement(FG,{prefixCls:o,arrow:m,arrowPos:v,align:y}),u.createElement(kG,{cache:!c&&!h},j))})}))}),HG=u.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=wl(n),i=u.useCallback(function(l){UC(t,r?r(l):l)},[r]),a=_s(i,n.ref);return o?u.cloneElement(n,{ref:a}):n}),UT=u.createContext(null);function VT(e){return e?Array.isArray(e)?e:[e]:[]}function WG(e,t,n,r){return u.useMemo(function(){var o=VT(n??t),i=VT(r??t),a=new Set(o),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]},[e,t,n,r])}function UG(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function VG(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function kd(e){return qf(parseFloat(e),0)}function GT(e,t){var n=Q({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=bh(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,l=o.borderTopWidth,c=o.borderBottomWidth,d=o.borderLeftWidth,h=o.borderRightWidth,g=r.getBoundingClientRect(),p=r.offsetHeight,m=r.clientHeight,v=r.offsetWidth,y=r.clientWidth,w=kd(l),C=kd(c),b=kd(d),S=kd(h),E=qf(Math.round(g.width/v*1e3)/1e3),O=qf(Math.round(g.height/p*1e3)/1e3),x=(v-y-b-S)*E,T=(p-m-w-C)*O,R=w*O,N=C*O,I=b*E,P=S*E,L=0,D=0;if(i==="clip"){var z=kd(a);L=z*E,D=z*O}var W=g.x+I-L,B=g.y+R-D,M=W+g.width+2*L-I-P-x,A=B+g.height+2*D-R-N-T;n.left=Math.max(n.left,W),n.top=Math.max(n.top,B),n.right=Math.min(n.right,M),n.bottom=Math.min(n.bottom,A)}}),n}function XT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function YT(e,t){var n=t||[],r=de(n,2),o=r[0],i=r[1];return[XT(e.width,o),XT(e.height,i)]}function qT(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Gc(e,t){var n=t[0],r=t[1],o,i;return n==="t"?i=e.y:n==="b"?i=e.y+e.height:i=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:i}}function jl(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,o){return o===t?n[r]||"c":r}).join("")}function KG(e,t,n,r,o,i,a){var l=u.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),c=de(l,2),d=c[0],h=c[1],g=u.useRef(0),p=u.useMemo(function(){return t?b1(t):[]},[t]),m=u.useRef({}),v=function(){m.current={}};e||v();var y=yr(function(){if(t&&n&&e){let Nr=function(ja,Zo){var Jo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ve,_a=j.x+ja,Ea=j.y+Zo,Ha=_a+be,Is=Ea+ce,Rl=Math.max(_a,Jo.left),xa=Math.max(Ea,Jo.top),Ns=Math.min(Ha,Jo.right),ot=Math.min(Is,Jo.bottom);return Math.max(0,(Ns-Rl)*(ot-xa))},No=function(){mn=j.y+rt,Nt=mn+ce,Ze=j.x+Lt,Ft=Ze+be};var Xi=Nr,Rs=No,b,S,E=t,O=E.ownerDocument,x=bh(E),T=x.getComputedStyle(E),R=T.width,N=T.height,I=T.position,P=E.style.left,L=E.style.top,D=E.style.right,z=E.style.bottom,W=E.style.overflow,B=Q(Q({},o[r]),i),M=O.createElement("div");(b=E.parentElement)===null||b===void 0||b.appendChild(M),M.style.left="".concat(E.offsetLeft,"px"),M.style.top="".concat(E.offsetTop,"px"),M.style.position=I,M.style.height="".concat(E.offsetHeight,"px"),M.style.width="".concat(E.offsetWidth,"px"),E.style.left="0",E.style.top="0",E.style.right="auto",E.style.bottom="auto",E.style.overflow="hidden";var A;if(Array.isArray(n))A={x:n[0],y:n[1],width:0,height:0};else{var U=n.getBoundingClientRect();A={x:U.x,y:U.y,width:U.width,height:U.height}}var j=E.getBoundingClientRect(),G=O.documentElement,X=G.clientWidth,re=G.clientHeight,te=G.scrollWidth,Z=G.scrollHeight,he=G.scrollTop,ge=G.scrollLeft,ce=j.height,be=j.width,pe=A.height,ae=A.width,J={left:0,top:0,right:X,bottom:re},ue={left:-ge,top:-he,right:te-ge,bottom:Z-he},ie=B.htmlRegion,Ce="visible",Oe="visibleFirst";ie!=="scroll"&&ie!==Oe&&(ie=Ce);var Te=ie===Oe,Me=GT(ue,p),me=GT(J,p),ve=ie===Ce?me:Me,xe=Te?me:ve;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";var Ae=E.getBoundingClientRect();E.style.left=P,E.style.top=L,E.style.right=D,E.style.bottom=z,E.style.overflow=W,(S=E.parentElement)===null||S===void 0||S.removeChild(M);var Pe=qf(Math.round(be/parseFloat(R)*1e3)/1e3),Fe=qf(Math.round(ce/parseFloat(N)*1e3)/1e3);if(Pe===0||Fe===0||sm(n)&&!yv(n))return;var Ee=B.offset,Ie=B.targetOffset,je=YT(j,Ee),Le=de(je,2),Ue=Le[0],Ve=Le[1],We=YT(A,Ie),Ke=de(We,2),Et=Ke[0],ht=Ke[1];A.x-=Et,A.y-=ht;var At=B.points||[],Kt=de(At,2),He=Kt[0],Qe=Kt[1],It=qT(Qe),Ht=qT(He),sn=Gc(A,It),vn=Gc(j,Ht),Vt=Q({},B),Lt=sn.x-vn.x+Ue,rt=sn.y-vn.y+Ve,xt=Nr(Lt,rt),at=Nr(Lt,rt,me),Xe=Gc(A,["t","l"]),mt=Gc(j,["t","l"]),Bt=Gc(A,["b","r"]),Ye=Gc(j,["b","r"]),lt=B.overflow||{},et=lt.adjustX,gt=lt.adjustY,_t=lt.shiftX,vt=lt.shiftY,_n=function(Zo){return typeof Zo=="boolean"?Zo:Zo>=0},mn,Nt,Ze,Ft;No();var Je=_n(gt),st=Ht[0]===It[0];if(Je&&Ht[0]==="t"&&(Nt>xe.bottom||m.current.bt)){var St=rt;st?St-=ce-pe:St=Xe.y-Ye.y-Ve;var Gt=Nr(Lt,St),cn=Nr(Lt,St,me);Gt>xt||Gt===xt&&(!Te||cn>=at)?(m.current.bt=!0,rt=St,Ve=-Ve,Vt.points=[jl(Ht,0),jl(It,0)]):m.current.bt=!1}if(Je&&Ht[0]==="b"&&(mnxt||Tt===xt&&(!Te||dr>=at)?(m.current.tb=!0,rt=ur,Ve=-Ve,Vt.points=[jl(Ht,0),jl(It,0)]):m.current.tb=!1}var qr=_n(et),fr=Ht[1]===It[1];if(qr&&Ht[1]==="l"&&(Ft>xe.right||m.current.rl)){var tr=Lt;fr?tr-=be-ae:tr=Xe.x-Ye.x-Ue;var qo=Nr(tr,rt),Rr=Nr(tr,rt,me);qo>xt||qo===xt&&(!Te||Rr>=at)?(m.current.rl=!0,Lt=tr,Ue=-Ue,Vt.points=[jl(Ht,1),jl(It,1)]):m.current.rl=!1}if(qr&&Ht[1]==="r"&&(Zext||Io===xt&&(!Te||nr>=at)?(m.current.lr=!0,Lt=Qr,Ue=-Ue,Vt.points=[jl(Ht,1),jl(It,1)]):m.current.lr=!1}No();var Sr=_t===!0?0:_t;typeof Sr=="number"&&(Zeme.right&&(Lt-=Ft-me.right-Ue,A.x>me.right-Sr&&(Lt+=A.x-me.right+Sr)));var Ir=vt===!0?0:vt;typeof Ir=="number"&&(mnme.bottom&&(rt-=Nt-me.bottom-Ve,A.y>me.bottom-Ir&&(rt+=A.y-me.bottom+Ir)));var Qo=j.x+Lt,xi=Qo+be,zr=j.y+rt,Zr=zr+ce,Zt=A.x,zt=Zt+ae,tt=A.y,ft=tt+pe,Xt=Math.max(Qo,Zt),En=Math.min(xi,zt),fn=(Xt+En)/2,Bn=fn-Qo,Hn=Math.max(zr,tt),rr=Math.min(Zr,ft),Kn=(Hn+rr)/2,Cr=Kn-zr;a==null||a(t,Vt);var hr=Ae.right-j.x-(Lt+j.width),mo=Ae.bottom-j.y-(rt+j.height);h({ready:!0,offsetX:Lt/Pe,offsetY:rt/Fe,offsetR:hr/Pe,offsetB:mo/Fe,arrowX:Bn/Pe,arrowY:Cr/Fe,scaleX:Pe,scaleY:Fe,align:Vt})}}),w=function(){g.current+=1;var S=g.current;Promise.resolve().then(function(){g.current===S&&y()})},C=function(){h(function(S){return Q(Q({},S),{},{ready:!1})})};return dn(C,[r]),dn(function(){e||C()},[e]),[d.ready,d.offsetX,d.offsetY,d.offsetR,d.offsetB,d.arrowX,d.arrowY,d.scaleX,d.scaleY,d.align,w]}function GG(e,t,n,r,o){dn(function(){if(e&&t&&n){let p=function(){r(),o()};var g=p,i=t,a=n,l=b1(i),c=b1(a),d=bh(a),h=new Set([d].concat(Be(l),Be(c)));return h.forEach(function(m){m.addEventListener("scroll",p,{passive:!0})}),d.addEventListener("resize",p,{passive:!0}),r(),function(){h.forEach(function(m){m.removeEventListener("scroll",p),d.removeEventListener("resize",p)})}}},[e,t,n])}function XG(e,t,n,r,o,i,a,l){var c=u.useRef(e);c.current=e,u.useEffect(function(){if(t&&r&&(!o||i)){var d=function(m){var v=m.target;c.current&&!a(v)&&l(!1)},h=bh(r);h.addEventListener("mousedown",d,!0),h.addEventListener("contextmenu",d,!0);var g=pm(n);return g&&(g.addEventListener("mousedown",d,!0),g.addEventListener("contextmenu",d,!0)),function(){h.removeEventListener("mousedown",d,!0),h.removeEventListener("contextmenu",d,!0),g&&(g.removeEventListener("mousedown",d,!0),g.removeEventListener("contextmenu",d,!0))}}},[t,n,r,o,i])}var YG=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function qG(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gw,t=u.forwardRef(function(n,r){var o=n.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=n.children,l=n.action,c=l===void 0?"hover":l,d=n.showAction,h=n.hideAction,g=n.popupVisible,p=n.defaultPopupVisible,m=n.onPopupVisibleChange,v=n.afterPopupVisibleChange,y=n.mouseEnterDelay,w=n.mouseLeaveDelay,C=w===void 0?.1:w,b=n.focusDelay,S=n.blurDelay,E=n.mask,O=n.maskClosable,x=O===void 0?!0:O,T=n.getPopupContainer,R=n.forceRender,N=n.autoDestroy,I=n.destroyPopupOnHide,P=n.popup,L=n.popupClassName,D=n.popupStyle,z=n.popupPlacement,W=n.builtinPlacements,B=W===void 0?{}:W,M=n.popupAlign,A=n.zIndex,U=n.stretch,j=n.getPopupClassNameFromAlign,G=n.fresh,X=n.alignPoint,re=n.onPopupClick,te=n.onPopupAlign,Z=n.arrow,he=n.popupMotion,ge=n.maskMotion,ce=n.popupTransitionName,be=n.popupAnimation,pe=n.maskTransitionName,ae=n.maskAnimation,J=n.className,ue=n.getTriggerDOMNode,ie=Mt(n,YG),Ce=N||I||!1,Oe=u.useState(!1),Te=de(Oe,2),Me=Te[0],me=Te[1];dn(function(){me(Ow())},[]);var ve=u.useRef({}),xe=u.useContext(UT),Ae=u.useMemo(function(){return{registerSubPopup:function(Ct,In){ve.current[Ct]=In,xe==null||xe.registerSubPopup(Ct,In)}}},[xe]),Pe=uP(),Fe=u.useState(null),Ee=de(Fe,2),Ie=Ee[0],je=Ee[1],Le=u.useRef(null),Ue=yr(function(ot){Le.current=ot,sm(ot)&&Ie!==ot&&je(ot),xe==null||xe.registerSubPopup(Pe,ot)}),Ve=u.useState(null),We=de(Ve,2),Ke=We[0],Et=We[1],ht=u.useRef(null),At=yr(function(ot){sm(ot)&&Ke!==ot&&(Et(ot),ht.current=ot)}),Kt=u.Children.only(a),He=(Kt==null?void 0:Kt.props)||{},Qe={},It=yr(function(ot){var Ct,In,Wn=Ke;return(Wn==null?void 0:Wn.contains(ot))||((Ct=pm(Wn))===null||Ct===void 0?void 0:Ct.host)===ot||ot===Wn||(Ie==null?void 0:Ie.contains(ot))||((In=pm(Ie))===null||In===void 0?void 0:In.host)===ot||ot===Ie||Object.values(ve.current).some(function(xn){return(xn==null?void 0:xn.contains(ot))||ot===xn})}),Ht=KT(i,he,be,ce),sn=KT(i,ge,ae,pe),vn=u.useState(p||!1),Vt=de(vn,2),Lt=Vt[0],rt=Vt[1],xt=g??Lt,at=yr(function(ot){g===void 0&&rt(ot)});dn(function(){rt(g||!1)},[g]);var Xe=u.useRef(xt);Xe.current=xt;var mt=u.useRef([]);mt.current=[];var Bt=yr(function(ot){var Ct;at(ot),((Ct=mt.current[mt.current.length-1])!==null&&Ct!==void 0?Ct:xt)!==ot&&(mt.current.push(ot),m==null||m(ot))}),Ye=u.useRef(),lt=function(){clearTimeout(Ye.current)},et=function(Ct){var In=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;lt(),In===0?Bt(Ct):Ye.current=setTimeout(function(){Bt(Ct)},In*1e3)};u.useEffect(function(){return lt},[]);var gt=u.useState(!1),_t=de(gt,2),vt=_t[0],_n=_t[1];dn(function(ot){(!ot||xt)&&_n(!0)},[xt]);var mn=u.useState(null),Nt=de(mn,2),Ze=Nt[0],Ft=Nt[1],Je=u.useState([0,0]),st=de(Je,2),St=st[0],Gt=st[1],cn=function(Ct){Gt([Ct.clientX,Ct.clientY])},ur=KG(xt,Ie,X?St:Ke,z,B,M,te),Tt=de(ur,11),dr=Tt[0],qr=Tt[1],fr=Tt[2],tr=Tt[3],qo=Tt[4],Rr=Tt[5],Qr=Tt[6],Io=Tt[7],nr=Tt[8],Sr=Tt[9],Ir=Tt[10],Qo=WG(Me,c,d,h),xi=de(Qo,2),zr=xi[0],Zr=xi[1],Zt=zr.has("click"),zt=Zr.has("click")||Zr.has("contextMenu"),tt=yr(function(){vt||Ir()}),ft=function(){Xe.current&&X&&zt&&et(!1)};GG(xt,Ke,Ie,tt,ft),dn(function(){tt()},[St,z]),dn(function(){xt&&!(B!=null&&B[z])&&tt()},[JSON.stringify(M)]);var Xt=u.useMemo(function(){var ot=VG(B,i,Sr,X);return ne(ot,j==null?void 0:j(Sr))},[Sr,j,B,i,X]);u.useImperativeHandle(r,function(){return{nativeElement:ht.current,popupElement:Le.current,forceAlign:tt}});var En=u.useState(0),fn=de(En,2),Bn=fn[0],Hn=fn[1],rr=u.useState(0),Kn=de(rr,2),Cr=Kn[0],hr=Kn[1],mo=function(){if(U&&Ke){var Ct=Ke.getBoundingClientRect();Hn(Ct.width),hr(Ct.height)}},Xi=function(){mo(),tt()},Rs=function(Ct){_n(!1),Ir(),v==null||v(Ct)},Nr=function(){return new Promise(function(Ct){mo(),Ft(function(){return Ct})})};dn(function(){Ze&&(Ir(),Ze(),Ft(null))},[Ze]);function No(ot,Ct,In,Wn){Qe[ot]=function(xn){var Il;Wn==null||Wn(xn),et(Ct,In);for(var Ms=arguments.length,Oc=new Array(Ms>1?Ms-1:0),hn=1;hn1?In-1:0),xn=1;xn1?In-1:0),xn=1;xn1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=nA(n,!1),a=i.label,l=i.value,c=i.options,d=i.groupLabel;function h(g,p){Array.isArray(g)&&g.forEach(function(m){if(p||!(c in m)){var v=m[l];o.push({key:QT(m,o.length),groupOption:p,data:m,label:m[a],value:v})}else{var y=m[d];y===void 0&&r&&(y=m.label),o.push({key:QT(m,o.length),group:!0,data:m,label:y}),h(m[c],!0)}})}return h(e,!1),o}function C1(e){var t=Q({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Vn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var nX=function(t,n,r){if(!n||!n.length)return null;var o=!1,i=function l(c,d){var h=nM(d),g=h[0],p=h.slice(1);if(!g)return[c];var m=c.split(g);return o=o||m.length>1,m.reduce(function(v,y){return[].concat(Be(v),Be(l(y,p)))},[]).filter(Boolean)},a=i(t,n);return o?typeof r<"u"?a.slice(0,r):a:null},Tw=u.createContext(null),rX=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],oX=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],w1=function(t){return t==="tags"||t==="multiple"},iX=u.forwardRef(function(e,t){var n,r=e.id,o=e.prefixCls,i=e.className,a=e.showSearch,l=e.tagRender,c=e.direction,d=e.omitDomProps,h=e.displayValues,g=e.onDisplayValuesChange,p=e.emptyOptions,m=e.notFoundContent,v=m===void 0?"Not Found":m,y=e.onClear,w=e.mode,C=e.disabled,b=e.loading,S=e.getInputElement,E=e.getRawInputElement,O=e.open,x=e.defaultOpen,T=e.onDropdownVisibleChange,R=e.activeValue,N=e.onActiveValueChange,I=e.activeDescendantId,P=e.searchValue,L=e.autoClearSearchValue,D=e.onSearch,z=e.onSearchSplit,W=e.tokenSeparators,B=e.allowClear,M=e.suffixIcon,A=e.clearIcon,U=e.OptionList,j=e.animation,G=e.transitionName,X=e.dropdownStyle,re=e.dropdownClassName,te=e.dropdownMatchSelectWidth,Z=e.dropdownRender,he=e.dropdownAlign,ge=e.placement,ce=e.builtinPlacements,be=e.getPopupContainer,pe=e.showAction,ae=pe===void 0?[]:pe,J=e.onFocus,ue=e.onBlur,ie=e.onKeyUp,Ce=e.onKeyDown,Oe=e.onMouseDown,Te=Mt(e,rX),Me=w1(w),me=(a!==void 0?a:Me)||w==="combobox",ve=Q({},Te);oX.forEach(function(tt){delete ve[tt]}),d==null||d.forEach(function(tt){delete ve[tt]});var xe=u.useState(!1),Ae=de(xe,2),Pe=Ae[0],Fe=Ae[1];u.useEffect(function(){Fe(Ow())},[]);var Ee=u.useRef(null),Ie=u.useRef(null),je=u.useRef(null),Le=u.useRef(null),Ue=u.useRef(null),Ve=u.useRef(!1),We=hG(),Ke=de(We,3),Et=Ke[0],ht=Ke[1],At=Ke[2];u.useImperativeHandle(t,function(){var tt,ft;return{focus:(tt=Le.current)===null||tt===void 0?void 0:tt.focus,blur:(ft=Le.current)===null||ft===void 0?void 0:ft.blur,scrollTo:function(En){var fn;return(fn=Ue.current)===null||fn===void 0?void 0:fn.scrollTo(En)}}});var Kt=u.useMemo(function(){var tt;if(w!=="combobox")return P;var ft=(tt=h[0])===null||tt===void 0?void 0:tt.value;return typeof ft=="string"||typeof ft=="number"?String(ft):""},[P,w,h]),He=w==="combobox"&&typeof S=="function"&&S()||null,Qe=typeof E=="function"&&E(),It=_s(Ie,Qe==null||(n=Qe.props)===null||n===void 0?void 0:n.ref),Ht=u.useState(!1),sn=de(Ht,2),vn=sn[0],Vt=sn[1];dn(function(){Vt(!0)},[]);var Lt=Vr(!1,{defaultValue:x,value:O}),rt=de(Lt,2),xt=rt[0],at=rt[1],Xe=vn?xt:!1,mt=!v&&p;(C||mt&&Xe&&w==="combobox")&&(Xe=!1);var Bt=mt?!1:Xe,Ye=u.useCallback(function(tt){var ft=tt!==void 0?tt:!Xe;C||(at(ft),Xe!==ft&&(T==null||T(ft)))},[C,Xe,at,T]),lt=u.useMemo(function(){return(W||[]).some(function(tt){return[` `,`\r `].includes(tt)})},[W]),et=u.useContext(Tw)||{},gt=et.maxCount,_t=et.rawValues,vt=function(ft,Xt,En){if(!(Me&&S1(gt)&&(_t==null?void 0:_t.size)>=gt)){var fn=!0,Bn=ft;N==null||N(null);var Hn=nX(ft,W,S1(gt)?gt-_t.size:void 0),rr=En?null:Hn;return w!=="combobox"&&rr&&(Bn="",z==null||z(rr),Ye(!1),fn=!1),D&&Kt!==Bn&&D(Bn,{source:Xt?"typing":"effect"}),fn}},_n=function(ft){!ft||!ft.trim()||D(ft,{source:"submit"})};u.useEffect(function(){!Xe&&!Me&&w!=="combobox"&&vt("",!1,!1)},[Xe]),u.useEffect(function(){xt&&C&&at(!1),C&&!Ve.current&&ht(!1)},[C]);var mn=YP(),Nt=de(mn,2),Ze=Nt[0],Ft=Nt[1],Je=function(ft){var Xt=Ze(),En=ft.which;if(En===_e.ENTER&&(w!=="combobox"&&ft.preventDefault(),Xe||Ye(!0)),Ft(!!Kt),En===_e.BACKSPACE&&!Xt&&Me&&!Kt&&h.length){for(var fn=Be(h),Bn=null,Hn=fn.length-1;Hn>=0;Hn-=1){var rr=fn[Hn];if(!rr.disabled){fn.splice(Hn,1),Bn=rr;break}}Bn&&g(fn,{type:"remove",values:[Bn]})}for(var Kn=arguments.length,Cr=new Array(Kn>1?Kn-1:0),hr=1;hr1?Xt-1:0),fn=1;fn1?Hn-1:0),Kn=1;Kn0&&arguments[0]!==void 0?arguments[0]:!1;h();var v=function(){l.current.forEach(function(w,C){if(w&&w.offsetParent){var b=pf(w),S=b.offsetHeight;c.current.get(C)!==S&&c.current.set(C,b.offsetHeight)}}),a(function(w){return w+1})};m?v():d.current=bn(v)}function p(m,v){var y=e(m),w=l.current.get(y);v?(l.current.set(y,v),g()):l.current.delete(y),!w!=!v&&(v?t==null||t(m):n==null||n(m))}return u.useEffect(function(){return h},[]),[p,g,c.current,i]}var uX=10;function dX(e,t,n,r,o,i,a,l){var c=u.useRef(),d=u.useState(null),h=de(d,2),g=h[0],p=h[1];return dn(function(){if(g&&g.times=0;z-=1){var W=o(t[z]),B=n.get(W);if(B===void 0){b=!0;break}if(D-=B,D<=0)break}switch(O){case"top":E=T-w;break;case"bottom":E=R-C+w;break;default:{var M=e.current.scrollTop,A=M+C;TA&&(S="bottom")}}E!==null&&a(E),E!==g.lastTop&&(b=!0)}b&&p(Q(Q({},g),{},{times:g.times+1,targetAlign:S,lastTop:E}))}},[g,e.current]),function(m){if(m==null){l();return}if(bn.cancel(c.current),typeof m=="number")a(m);else if(m&&Pt(m)==="object"){var v,y=m.align;"index"in m?v=m.index:v=t.findIndex(function(b){return o(b)===m.key});var w=m.offset,C=w===void 0?0:w;p({times:0,index:v,offset:C,originAlign:y})}}}function fX(e,t,n){var r=e.length,o=t.length,i,a;if(r===0&&o===0)return null;r"u"?"undefined":Pt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const oA=function(e,t){var n=u.useRef(!1),r=u.useRef(null);function o(){clearTimeout(r.current),n.current=!0,r.current=setTimeout(function(){n.current=!1},50)}var i=u.useRef({top:e,bottom:t});return i.current.top=e,i.current.bottom=t,function(a){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=a<0&&i.current.top||a>0&&i.current.bottom;return l&&c?(clearTimeout(r.current),n.current=!1):(!c||n.current)&&o(),!n.current&&c}};function gX(e,t,n,r,o){var i=u.useRef(0),a=u.useRef(null),l=u.useRef(null),c=u.useRef(!1),d=oA(t,n);function h(w,C){bn.cancel(a.current),i.current+=C,l.current=C,!d(C)&&(e$||w.preventDefault(),a.current=bn(function(){var b=c.current?10:1;o(i.current*b),i.current=0}))}function g(w,C){o(C,!0),e$||w.preventDefault()}var p=u.useRef(null),m=u.useRef(null);function v(w){if(e){bn.cancel(m.current),m.current=bn(function(){p.current=null},2);var C=w.deltaX,b=w.deltaY,S=w.shiftKey,E=C,O=b;(p.current==="sx"||!p.current&&S&&b&&!C)&&(E=b,O=0,p.current="sx");var x=Math.abs(E),T=Math.abs(O);p.current===null&&(p.current=r&&x>T?"x":"y"),p.current==="y"?h(w,O):g(w,E)}}function y(w){e&&(c.current=w.detail===l.current)}return[v,y]}var pX=14/15;function mX(e,t,n){var r=u.useRef(!1),o=u.useRef(0),i=u.useRef(null),a=u.useRef(null),l,c=function(p){if(r.current){var m=Math.ceil(p.touches[0].pageY),v=o.current-m;o.current=m,n(v)&&p.preventDefault(),clearInterval(a.current),a.current=setInterval(function(){v*=pX,(!n(v,!0)||Math.abs(v)<=.1)&&clearInterval(a.current)},16)}},d=function(){r.current=!1,l()},h=function(p){l(),p.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(p.touches[0].pageY),i.current=p.target,i.current.addEventListener("touchmove",c),i.current.addEventListener("touchend",d))};l=function(){i.current&&(i.current.removeEventListener("touchmove",c),i.current.removeEventListener("touchend",d))},dn(function(){return e&&t.current.addEventListener("touchstart",h),function(){var g;(g=t.current)===null||g===void 0||g.removeEventListener("touchstart",h),l(),clearInterval(a.current)}},[e])}var vX=20;function t$(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,vX),Math.floor(n)}function yX(e,t,n,r){var o=u.useMemo(function(){return[new Map,[]]},[e,n.id,r]),i=de(o,2),a=i[0],l=i[1],c=function(h){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h,p=a.get(h),m=a.get(g);if(p===void 0||m===void 0)for(var v=e.length,y=l.length;yi||!!y),P=v==="rtl",L=ne(r,K({},"".concat(r,"-rtl"),P),o),D=h||SX,z=u.useRef(),W=u.useRef(),B=u.useState(0),M=de(B,2),A=M[0],U=M[1],j=u.useState(0),G=de(j,2),X=G[0],re=G[1],te=u.useState(!1),Z=de(te,2),he=Z[0],ge=Z[1],ce=function(){ge(!0)},be=function(){ge(!1)},pe=u.useCallback(function(Je){return typeof p=="function"?p(Je):Je==null?void 0:Je[p]},[p]),ae={getKey:pe};function J(Je){U(function(st){var St;typeof Je=="function"?St=Je(st):St=Je;var Gt=Ht(St);return z.current.scrollTop=Gt,Gt})}var ue=u.useRef({start:0,end:D.length}),ie=u.useRef(),Ce=hX(D,pe),Oe=de(Ce,1),Te=Oe[0];ie.current=Te;var Me=cX(pe,null,null),me=de(Me,4),ve=me[0],xe=me[1],Ae=me[2],Pe=me[3],Fe=u.useMemo(function(){if(!N)return{scrollHeight:void 0,start:0,end:D.length-1,offset:void 0};if(!I){var Je;return{scrollHeight:((Je=W.current)===null||Je===void 0?void 0:Je.offsetHeight)||0,start:0,end:D.length-1,offset:void 0}}for(var st=0,St,Gt,cn,ur=D.length,Tt=0;Tt=A&&St===void 0&&(St=Tt,Gt=st),tr>A+i&&cn===void 0&&(cn=Tt),st=tr}return St===void 0&&(St=0,Gt=0,cn=Math.ceil(i/a)),cn===void 0&&(cn=D.length-1),cn=Math.min(cn+1,D.length-1),{scrollHeight:st,start:St,end:cn,offset:Gt}},[I,N,A,D,Pe,i]),Ee=Fe.scrollHeight,Ie=Fe.start,je=Fe.end,Le=Fe.offset;ue.current.start=Ie,ue.current.end=je;var Ue=u.useState({width:0,height:i}),Ve=de(Ue,2),We=Ve[0],Ke=Ve[1],Et=function(st){Ke({width:st.width||st.offsetWidth,height:st.height||st.offsetHeight})},ht=u.useRef(),At=u.useRef(),Kt=u.useMemo(function(){return t$(We.width,y)},[We.width,y]),He=u.useMemo(function(){return t$(We.height,Ee)},[We.height,Ee]),Qe=Ee-i,It=u.useRef(Qe);It.current=Qe;function Ht(Je){var st=Je;return Number.isNaN(It.current)||(st=Math.min(st,It.current)),st=Math.max(st,0),st}var sn=A<=0,vn=A>=Qe,Vt=oA(sn,vn),Lt=function(){return{x:P?-X:X,y:A}},rt=u.useRef(Lt()),xt=yr(function(){if(S){var Je=Lt();(rt.current.x!==Je.x||rt.current.y!==Je.y)&&(S(Je),rt.current=Je)}});function at(Je,st){var St=Je;st?(va.flushSync(function(){re(St)}),xt()):J(St)}function Xe(Je){var st=Je.currentTarget.scrollTop;st!==A&&J(st),b==null||b(Je),xt()}var mt=function(st){var St=st,Gt=y-We.width;return St=Math.max(St,0),St=Math.min(St,Gt),St},Bt=yr(function(Je,st){st?(va.flushSync(function(){re(function(St){var Gt=St+(P?-Je:Je);return mt(Gt)})}),xt()):J(function(St){var Gt=St+Je;return Gt})}),Ye=gX(N,sn,vn,!!y,Bt),lt=de(Ye,2),et=lt[0],gt=lt[1];mX(N,z,function(Je,st){return Vt(Je,st)?!1:(et({preventDefault:function(){},deltaY:Je}),!0)}),dn(function(){function Je(St){N&&St.preventDefault()}var st=z.current;return st.addEventListener("wheel",et),st.addEventListener("DOMMouseScroll",gt),st.addEventListener("MozMousePixelScroll",Je),function(){st.removeEventListener("wheel",et),st.removeEventListener("DOMMouseScroll",gt),st.removeEventListener("MozMousePixelScroll",Je)}},[N]),dn(function(){y&&re(function(Je){return mt(Je)})},[We.width,y]);var _t=function(){var st,St;(st=ht.current)===null||st===void 0||st.delayHidden(),(St=At.current)===null||St===void 0||St.delayHidden()},vt=dX(z,D,Ae,a,pe,function(){return xe(!0)},J,_t);u.useImperativeHandle(t,function(){return{getScrollInfo:Lt,scrollTo:function(st){function St(Gt){return Gt&&Pt(Gt)==="object"&&("left"in Gt||"top"in Gt)}St(st)?(st.left!==void 0&&re(mt(st.left)),vt(st.top)):vt(st)}}}),dn(function(){if(E){var Je=D.slice(Ie,je+1);E(Je,D)}},[Ie,je,D]);var _n=yX(D,pe,Ae,a),mn=x==null?void 0:x({start:Ie,end:je,virtual:I,offsetX:X,offsetY:Le,rtl:P,getSize:_n}),Nt=lX(D,Ie,je,y,ve,g,ae),Ze=null;i&&(Ze=Q(K({},c?"height":"maxHeight",i),CX),N&&(Ze.overflowY="hidden",y&&(Ze.overflowX="hidden"),he&&(Ze.pointerEvents="none")));var Ft={};return P&&(Ft.dir="rtl"),u.createElement("div",De({style:Q(Q({},d),{},{position:"relative"}),className:L},Ft,R),u.createElement(Hi,{onResize:Et},u.createElement(C,{className:"".concat(r,"-holder"),style:Ze,ref:z,onScroll:Xe,onMouseEnter:_t},u.createElement(rA,{prefixCls:r,height:Ee,offsetX:X,offsetY:Le,scrollWidth:y,onInnerResize:xe,ref:W,innerProps:O,rtl:P,extra:mn},Nt))),I&&Ee>i&&u.createElement(JT,{ref:ht,prefixCls:r,scrollOffset:A,scrollRange:Ee,rtl:P,onScroll:at,onStartMove:ce,onStopMove:be,spinSize:He,containerSize:We.height,style:T==null?void 0:T.verticalScrollBar,thumbStyle:T==null?void 0:T.verticalScrollBarThumb}),I&&y>We.width&&u.createElement(JT,{ref:At,prefixCls:r,scrollOffset:X,scrollRange:y,rtl:P,onScroll:at,onStartMove:ce,onStopMove:be,spinSize:Kt,containerSize:We.width,horizontal:!0,style:T==null?void 0:T.horizontalScrollBar,thumbStyle:T==null?void 0:T.horizontalScrollBarThumb}))}var Iw=u.forwardRef(wX);Iw.displayName="List";function _X(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var EX=["disabled","title","children","style","className"];function n$(e){return typeof e=="string"||typeof e=="number"}var xX=function(t,n){var r=fG(),o=r.prefixCls,i=r.id,a=r.open,l=r.multiple,c=r.mode,d=r.searchValue,h=r.toggleOpen,g=r.notFoundContent,p=r.onPopupScroll,m=u.useContext(Tw),v=m.maxCount,y=m.flattenOptions,w=m.onActiveValue,C=m.defaultActiveFirstOption,b=m.onSelect,S=m.menuItemSelectedIcon,E=m.rawValues,O=m.fieldNames,x=m.virtual,T=m.direction,R=m.listHeight,N=m.listItemHeight,I=m.optionRender,P="".concat(o,"-item"),L=sh(function(){return y},[a,y],function(pe,ae){return ae[0]&&pe[1]!==ae[1]}),D=u.useRef(null),z=u.useMemo(function(){return l&&S1(v)&&(E==null?void 0:E.size)>=v},[l,v,E==null?void 0:E.size]),W=function(ae){ae.preventDefault()},B=function(ae){var J;(J=D.current)===null||J===void 0||J.scrollTo(typeof ae=="number"?{index:ae}:ae)},M=function(ae){for(var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ue=L.length,ie=0;ie1&&arguments[1]!==void 0?arguments[1]:!1;G(ae);var ue={source:J?"keyboard":"mouse"},ie=L[ae];if(!ie){w(null,-1,ue);return}w(ie.value,ae,ue)};u.useEffect(function(){X(C!==!1?M(0):-1)},[L.length,d]);var re=u.useCallback(function(pe){return E.has(pe)&&c!=="combobox"},[c,Be(E).toString(),E.size]);u.useEffect(function(){var pe=setTimeout(function(){if(!l&&a&&E.size===1){var J=Array.from(E)[0],ue=L.findIndex(function(ie){var Ce=ie.data;return Ce.value===J});ue!==-1&&(X(ue),B(ue))}});if(a){var ae;(ae=D.current)===null||ae===void 0||ae.scrollTo(void 0)}return function(){return clearTimeout(pe)}},[a,d]);var te=function(ae){ae!==void 0&&b(ae,{selected:!E.has(ae)}),l||h(!1)};if(u.useImperativeHandle(n,function(){return{onKeyDown:function(ae){var J=ae.which,ue=ae.ctrlKey;switch(J){case _e.N:case _e.P:case _e.UP:case _e.DOWN:{var ie=0;if(J===_e.UP?ie=-1:J===_e.DOWN?ie=1:_X()&&ue&&(J===_e.N?ie=1:J===_e.P&&(ie=-1)),ie!==0){var Ce=M(j+ie,ie);B(Ce),X(Ce,!0)}break}case _e.ENTER:{var Oe,Te=L[j];Te&&!(Te!=null&&(Oe=Te.data)!==null&&Oe!==void 0&&Oe.disabled)&&!z?te(Te.value):te(void 0),a&&ae.preventDefault();break}case _e.ESC:h(!1),a&&ae.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ae){B(ae)}}}),L.length===0)return u.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(P,"-empty"),onMouseDown:W},g);var Z=Object.keys(O).map(function(pe){return O[pe]}),he=function(ae){return ae.label};function ge(pe,ae){var J=pe.group;return{role:J?"presentation":"option",id:"".concat(i,"_list_").concat(ae)}}var ce=function(ae){var J=L[ae];if(!J)return null;var ue=J.data||{},ie=ue.value,Ce=J.group,Oe=ya(ue,!0),Te=he(J);return J?u.createElement("div",De({"aria-label":typeof Te=="string"&&!Ce?Te:null},Oe,{key:ae},ge(J,ae),{"aria-selected":re(ie)}),ie):null},be={role:"listbox",id:"".concat(i,"_list")};return u.createElement(u.Fragment,null,x&&u.createElement("div",De({},be,{style:{height:0,width:0,overflow:"hidden"}}),ce(j-1),ce(j),ce(j+1)),u.createElement(Iw,{itemKey:"key",ref:D,data:L,height:R,itemHeight:N,fullHeight:!1,onMouseDown:W,onScroll:p,virtual:x,direction:T,innerProps:x?null:be},function(pe,ae){var J=pe.group,ue=pe.groupOption,ie=pe.data,Ce=pe.label,Oe=pe.value,Te=ie.key;if(J){var Me,me=(Me=ie.title)!==null&&Me!==void 0?Me:n$(Ce)?Ce.toString():void 0;return u.createElement("div",{className:ne(P,"".concat(P,"-group"),ie.className),title:me},Ce!==void 0?Ce:Te)}var ve=ie.disabled,xe=ie.title;ie.children;var Ae=ie.style,Pe=ie.className,Fe=Mt(ie,EX),Ee=Qn(Fe,Z),Ie=re(Oe),je=ve||!Ie&&z,Le="".concat(P,"-option"),Ue=ne(P,Le,Pe,K(K(K(K({},"".concat(Le,"-grouped"),ue),"".concat(Le,"-active"),j===ae&&!je),"".concat(Le,"-disabled"),je),"".concat(Le,"-selected"),Ie)),Ve=he(pe),We=!S||typeof S=="function"||Ie,Ke=typeof Ve=="number"?Ve:Ve||Oe,Et=n$(Ke)?Ke.toString():void 0;return xe!==void 0&&(Et=xe),u.createElement("div",De({},ya(Ee),x?{}:ge(pe,ae),{"aria-selected":Ie,className:Ue,title:Et,onMouseMove:function(){j===ae||je||X(ae)},onClick:function(){je||te(Oe)},style:Ae}),u.createElement("div",{className:"".concat(Le,"-content")},typeof I=="function"?I(pe,{index:ae}):Ke),u.isValidElement(S)||Ie,We&&u.createElement(wv,{className:"".concat(P,"-option-state"),customizeIcon:S,customizeIconProps:{value:Oe,disabled:je,isSelected:Ie}},Ie?"✓":null))}))},OX=u.forwardRef(xX);const TX=function(e,t){var n=u.useRef({values:new Map,options:new Map}),r=u.useMemo(function(){var i=n.current,a=i.values,l=i.options,c=e.map(function(g){if(g.label===void 0){var p;return Q(Q({},g),{},{label:(p=a.get(g.value))===null||p===void 0?void 0:p.label})}return g}),d=new Map,h=new Map;return c.forEach(function(g){d.set(g.value,g),h.set(g.value,t.get(g.value)||l.get(g.value))}),n.current.values=d,n.current.options=h,c},[e,t]),o=u.useCallback(function(i){return t.get(i)||n.current.options.get(i)},[t]);return[r,o]};function Ky(e,t){return eA(e).join("").toUpperCase().includes(t)}const $X=function(e,t,n,r,o){return u.useMemo(function(){if(!n||r===!1)return e;var i=t.options,a=t.label,l=t.value,c=[],d=typeof r=="function",h=n.toUpperCase(),g=d?r:function(m,v){return o?Ky(v[o],h):v[i]?Ky(v[a!=="children"?a:"label"],h):Ky(v[l],h)},p=d?function(m){return C1(m)}:function(m){return m};return e.forEach(function(m){if(m[i]){var v=g(n,p(m));if(v)c.push(m);else{var y=m[i].filter(function(w){return g(n,p(w))});y.length&&c.push(Q(Q({},m),{},K({},i,y)))}return}g(n,p(m))&&c.push(m)}),c},[e,r,o,n,t])};var r$=0,RX=ho();function IX(){var e;return RX?(e=r$,r$+=1):e="TEST_OR_SSR",e}function NX(e){var t=u.useState(),n=de(t,2),r=n[0],o=n[1];return u.useEffect(function(){o("rc_select_".concat(IX()))},[]),e||r}var MX=["children","value"],PX=["children"];function AX(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value,a=Mt(r,MX);return Q({key:n,value:i!==void 0?i:n,children:o},a)}function iA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return xo(e).map(function(n,r){if(!u.isValidElement(n)||!n.type)return null;var o=n,i=o.type.isSelectOptGroup,a=o.key,l=o.props,c=l.children,d=Mt(l,PX);return t||!i?AX(n):Q(Q({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},d),{},{options:iA(c)})}).filter(function(n){return n})}var LX=function(t,n,r,o,i){return u.useMemo(function(){var a=t,l=!t;l&&(a=iA(n));var c=new Map,d=new Map,h=function(m,v,y){y&&typeof y=="string"&&m.set(v[y],v)},g=function p(m){for(var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,y=0;y2&&arguments[2]!==void 0?arguments[2]:{},gt=et.source,_t=gt===void 0?"keyboard":gt;vn(lt),a&&r==="combobox"&&Ye!==null&&_t==="keyboard"&&Qe(String(Ye))},[a,r]),rt=function(lt,et,gt){var _t=function(){var Gt,cn=Ee(lt);return[U?{label:cn==null?void 0:cn[ge.label],value:lt,key:(Gt=cn==null?void 0:cn.key)!==null&&Gt!==void 0?Gt:lt}:lt,C1(cn)]};if(et&&m){var vt=_t(),_n=de(vt,2),mn=_n[0],Nt=_n[1];m(mn,Nt)}else if(!et&&v&>!=="clear"){var Ze=_t(),Ft=de(Ze,2),Je=Ft[0],st=Ft[1];v(Je,st)}},xt=o$(function(Ye,lt){var et,gt=te?lt.selected:!0;gt?et=te?[].concat(Be(Fe),[Ye]):[Ye]:et=Fe.filter(function(_t){return _t.value!==Ye}),ht(et),rt(Ye,gt),r==="combobox"?Qe(""):(!w1||p)&&(ae(""),Qe(""))}),at=function(lt,et){ht(lt);var gt=et.type,_t=et.values;(gt==="remove"||gt==="clear")&&_t.forEach(function(vt){rt(vt.value,!1,gt)})},Xe=function(lt,et){if(ae(lt),Qe(null),et.source==="submit"){var gt=(lt||"").trim();if(gt){var _t=Array.from(new Set([].concat(Be(je),[gt])));ht(_t),rt(gt,!0),ae("")}return}et.source!=="blur"&&(r==="combobox"&&ht(lt),h==null||h(lt))},mt=function(lt){var et=lt;r!=="tags"&&(et=lt.map(function(_t){var vt=ie.get(_t);return vt==null?void 0:vt.value}).filter(function(_t){return _t!==void 0}));var gt=Array.from(new Set([].concat(Be(je),Be(et))));ht(gt),gt.forEach(function(_t){rt(_t,!0)})},Bt=u.useMemo(function(){var Ye=I!==!1&&w!==!1;return Q(Q({},J),{},{flattenOptions:Et,onActiveValue:Lt,defaultActiveFirstOption:Vt,onSelect:xt,menuItemSelectedIcon:N,rawValues:je,fieldNames:ge,virtual:Ye,direction:P,listHeight:D,listItemHeight:W,childrenAsData:Z,maxCount:G,optionRender:x})},[G,J,Et,Lt,Vt,xt,N,je,ge,I,w,P,D,W,Z,x]);return u.createElement(Tw.Provider,{value:Bt},u.createElement(iX,De({},X,{id:re,prefixCls:i,ref:t,omitDomProps:BX,mode:r,displayValues:Ie,onDisplayValuesChange:at,direction:P,searchValue:pe,onSearch:Xe,autoClearSearchValue:p,onSearchSplit:mt,dropdownMatchSelectWidth:w,OptionList:OX,emptyOptions:!Et.length,activeValue:He,activeDescendantId:"".concat(re,"_list_").concat(sn)})))}),Nw=zX;Nw.Option=Rw;Nw.OptGroup=$w;function Cm(e,t,n){return ne({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Ev=(e,t)=>t||e,kX=()=>{const[,e]=Dr(),n=new Tr(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return u.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},u.createElement("g",{fill:"none",fillRule:"evenodd"},u.createElement("g",{transform:"translate(24 31.67)"},u.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),u.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),u.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),u.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),u.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),u.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),u.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},u.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),u.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},jX=kX,HX=()=>{const[,e]=Dr(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:i,shadowColor:a,contentColor:l}=u.useMemo(()=>({borderColor:new Tr(t).onBackground(o).toHexShortString(),shadowColor:new Tr(n).onBackground(o).toHexShortString(),contentColor:new Tr(r).onBackground(o).toHexShortString()}),[t,n,r,o]);return u.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},u.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},u.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),u.createElement("g",{fillRule:"nonzero",stroke:i},u.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),u.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))},WX=HX,UX=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},VX=Zn("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=pn(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[UX(o)]});var KX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var{className:t,rootClassName:n,prefixCls:r,image:o=aA,description:i,children:a,imageStyle:l,style:c}=e,d=KX(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:h,direction:g,empty:p}=u.useContext(bt),m=h("empty",r),[v,y,w]=VX(m),[C]=Xu("Empty"),b=typeof i<"u"?i:C==null?void 0:C.description,S=typeof b=="string"?b:"empty";let E=null;return typeof o=="string"?E=u.createElement("img",{alt:S,src:o}):E=o,v(u.createElement("div",Object.assign({className:ne(y,w,m,p==null?void 0:p.className,{[`${m}-normal`]:o===lA,[`${m}-rtl`]:g==="rtl"},t,n),style:Object.assign(Object.assign({},p==null?void 0:p.style),c)},d),u.createElement("div",{className:`${m}-image`,style:l},E),b&&u.createElement("div",{className:`${m}-description`},b),a&&u.createElement("div",{className:`${m}-footer`},a)))};Mw.PRESENTED_IMAGE_DEFAULT=aA;Mw.PRESENTED_IMAGE_SIMPLE=lA;const jd=Mw,GX=e=>{const{componentName:t}=e,{getPrefixCls:n}=u.useContext(bt),r=n("empty");switch(t){case"Table":case"List":return se.createElement(jd,{image:jd.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return se.createElement(jd,{image:jd.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return se.createElement(jd,null)}},XX=GX,YX=["outlined","borderless","filled"],Pw=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;const n=u.useContext(EP);let r;typeof e<"u"?r=e:t===!1?r="borderless":r=n??"outlined";const o=YX.includes(r);return[r,o]},qX=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function QX(e,t){return e||qX(t)}const i$=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},ZX=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},cr(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,[` ${o}${l}bottomLeft, ${i}${l}bottomLeft `]:{animationName:Sw},[` ${o}${l}topLeft, ${i}${l}topLeft, ${o}${l}topRight, ${i}${l}topRight `]:{animationName:ww},[`${a}${l}bottomLeft`]:{animationName:Cw},[` ${a}${l}topLeft, ${a}${l}topRight `]:{animationName:_w},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},i$(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},gc),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},i$(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},bs(e,"slide-up"),bs(e,"slide-down"),bm(e,"move-up"),bm(e,"move-down")]},wm=2,JX=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r}=e,o=e.max(e.calc(n).sub(r).equal(),0),i=e.max(e.calc(o).sub(wm).equal(),0);return{basePadding:o,containerPadding:i,itemHeight:oe(t),itemLineHeight:oe(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},eY=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},tY=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:l,colorIcon:c,colorIconHover:d}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:wm,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(wm).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},dv()),{display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:d}})}}}},nY=(e,t)=>{const{componentCls:n}=e,r=`${n}-selection-overflow`,o=e.multipleSelectItemHeight,i=eY(e),a=t?`${n}-${t}`:"",l=JX(e);return{[`${n}-multiple${a}`]:Object.assign(Object.assign({},tY(e)),{[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${oe(wm)} 0`,lineHeight:oe(o),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:oe(l.itemLineHeight)},[`${r}-item + ${r}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${r}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(i).equal(),"\n &-input,\n &-mirror\n ":{height:o,fontFamily:e.fontFamily,lineHeight:oe(o),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function Gy(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[` &${n}-show-arrow ${n}-selector, &${n}-allow-clear ${n}-selector `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[nY(e,t),o]}const rY=e=>{const{componentCls:t}=e,n=pn(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=pn(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Gy(e),Gy(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Gy(r,"lg")]};function Xy(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?`${n}-${t}`:"";return{[`${n}-single${a}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},cr(e,!0)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[` ${n}-selection-item, ${n}-selection-placeholder `]:{padding:0,lineHeight:oe(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${n}-show-arrow ${n}-selection-item, &${n}-show-arrow ${n}-selection-placeholder `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${oe(r)}`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:oe(i)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${oe(r)}`,"&:after":{display:"none"}}}}}}}function oY(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Xy(e),Xy(pn(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${oe(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[` &${t}-show-arrow ${t}-selection-item, &${t}-show-arrow ${t}-selection-placeholder `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Xy(pn(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const iY=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlHeightSM:o,controlHeightLG:i,paddingXXS:a,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:d,fontWeightStrong:h,controlItemBgActive:g,controlItemBgHover:p,colorBgContainer:m,colorFillSecondary:v,colorBgContainerDisabled:y,colorTextDisabled:w}=e,C=r-a*2,b=o-a*2,S=i-a*2;return{zIndexPopup:c+50,optionSelectedColor:d,optionSelectedFontWeight:h,optionSelectedBg:g,optionActiveBg:p,optionPadding:`${(r-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:m,clearBg:m,singleItemHeightLG:i,multipleItemBg:v,multipleItemBorderColor:"transparent",multipleItemHeight:C,multipleItemHeightSM:b,multipleItemHeightLG:S,multipleSelectorBgDisabled:y,multipleItemColorDisabled:w,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25)}},sA=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${oe(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${oe(o)} ${t.activeShadowColor}`,outline:0}}}},a$=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},sA(e,t))}),aY=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},sA(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),a$(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),a$(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${oe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),cA=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${oe(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},l$=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},cA(e,t))}),lY=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},cA(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),l$(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),l$(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${oe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),sY=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${oe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}),cY=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},aY(e)),lY(e)),sY(e))}),uY=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},dY=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},fY=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},cr(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},uY(e)),dY(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},gc),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},gc),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},dv()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-arrow:not(:last-child)`]:{opacity:0}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},hY=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},fY(e),oY(e),rY(e),ZX(e),{[`${t}-rtl`]:{direction:"rtl"}},fw(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},gY=Zn("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=pn(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[hY(r),cY(r)]},iY,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var pY={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"};const mY=pY;var vY=function(t,n){return u.createElement(Sn,De({},t,{ref:n,icon:mY}))},yY=u.forwardRef(vY);const uA=yY;var bY={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"};const SY=bY;var CY=function(t,n){return u.createElement(Sn,De({},t,{ref:n,icon:SY}))},wY=u.forwardRef(CY);const _Y=wY;var EY={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"};const xY=EY;var OY=function(t,n){return u.createElement(Sn,De({},t,{ref:n,icon:xY}))},TY=u.forwardRef(OY);const dA=TY;function $Y(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:l,prefixCls:c,showSuffixIcon:d,feedbackIcon:h,showArrow:g,componentName:p}=e;const m=n??u.createElement(Qu,null),v=b=>t===null&&!l&&!g?null:u.createElement(u.Fragment,null,d!==!1&&b,l&&h);let y=null;if(t!==void 0)y=v(t);else if(i)y=v(u.createElement(fh,{spin:!0}));else{const b=`${c}-suffix`;y=S=>{let{open:E,showSearch:O}=S;return v(E&&O?u.createElement(dA,{className:b}):u.createElement(_Y,{className:b}))}}let w=null;r!==void 0?w=r:a?w=u.createElement(uA,null):w=null;let C=null;return o!==void 0?C=o:C=u.createElement(Zu,null),{clearIcon:m,suffixIcon:y,itemIcon:w,removeIcon:C}}function RY(e,t){return t!==void 0?t:e!==null}var IY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:r,bordered:o,className:i,rootClassName:a,getPopupContainer:l,popupClassName:c,dropdownClassName:d,listHeight:h=256,placement:g,listItemHeight:p,size:m,disabled:v,notFoundContent:y,status:w,builtinPlacements:C,dropdownMatchSelectWidth:b,popupMatchSelectWidth:S,direction:E,style:O,allowClear:x,variant:T,dropdownStyle:R,transitionName:N,tagRender:I,maxCount:P}=e,L=IY(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:D,getPrefixCls:z,renderEmpty:W,direction:B,virtual:M,popupMatchSelectWidth:A,popupOverflow:U,select:j}=u.useContext(bt),[,G]=Dr(),X=p??(G==null?void 0:G.controlHeight),re=z("select",r),te=z(),Z=E??B,{compactSize:he,compactItemClassnames:ge}=ph(re,Z),[ce,be]=Pw(T,o),pe=Yo(re),[ae,J,ue]=gY(re,pe),ie=u.useMemo(()=>{const{mode:He}=e;if(He!=="combobox")return He===fA?"combobox":He},[e.mode]),Ce=ie==="multiple"||ie==="tags",Oe=RY(e.suffixIcon,e.showArrow),Te=(n=S??b)!==null&&n!==void 0?n:A,{status:Me,hasFeedback:me,isFormItemInput:ve,feedbackIcon:xe}=u.useContext(bi),Ae=Ev(Me,w);let Pe;y!==void 0?Pe=y:ie==="combobox"?Pe=null:Pe=(W==null?void 0:W("Select"))||u.createElement(XX,{componentName:"Select"});const{suffixIcon:Fe,itemIcon:Ee,removeIcon:Ie,clearIcon:je}=$Y(Object.assign(Object.assign({},L),{multiple:Ce,hasFeedback:me,feedbackIcon:xe,showSuffixIcon:Oe,prefixCls:re,componentName:"Select"})),Le=x===!0?{clearIcon:je}:x,Ue=Qn(L,["suffixIcon","itemIcon"]),Ve=ne(c||d,{[`${re}-dropdown-${Z}`]:Z==="rtl"},a,ue,pe,J),We=ka(He=>{var Qe;return(Qe=m??he)!==null&&Qe!==void 0?Qe:He}),Ke=u.useContext(Yu),Et=v??Ke,ht=ne({[`${re}-lg`]:We==="large",[`${re}-sm`]:We==="small",[`${re}-rtl`]:Z==="rtl",[`${re}-${ce}`]:be,[`${re}-in-form-item`]:ve},Cm(re,Ae,me),ge,j==null?void 0:j.className,i,a,ue,pe,J),At=u.useMemo(()=>g!==void 0?g:Z==="rtl"?"bottomRight":"bottomLeft",[g,Z]),[Kt]=hh("SelectLike",R==null?void 0:R.zIndex);return ae(u.createElement(Nw,Object.assign({ref:t,virtual:M,showSearch:j==null?void 0:j.showSearch},Ue,{style:Object.assign(Object.assign({},j==null?void 0:j.style),O),dropdownMatchSelectWidth:Te,transitionName:mc(te,"slide-up",N),builtinPlacements:QX(C,U),listHeight:h,listItemHeight:X,mode:ie,prefixCls:re,placement:At,direction:Z,suffixIcon:Fe,menuItemSelectedIcon:Ee,removeIcon:Ie,allowClear:Le,notFoundContent:Pe,className:ht,getPopupContainer:l||D,dropdownClassName:Ve,disabled:Et,dropdownStyle:Object.assign(Object.assign({},R),{zIndex:Kt}),maxCount:Ce?P:void 0,tagRender:Ce?I:void 0})))},ed=u.forwardRef(NY),MY=GP(ed);ed.SECRET_COMBOBOX_MODE_DO_NOT_USE=fA;ed.Option=Rw;ed.OptGroup=$w;ed._InternalPanelDoNotUseOrYouWillBeFired=MY;const s$=ed,Qf=["xxl","xl","lg","md","sm","xs"],PY=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)`}),AY=e=>{const t=e,n=[].concat(Qf).reverse();return n.forEach((r,o)=>{const i=r.toUpperCase(),a=`screen${i}Min`,l=`screen${i}`;if(!(t[a]<=t[l]))throw new Error(`${a}<=${l} fails : !(${t[a]}<=${t[l]})`);if(o{const n=new Map;let r=-1,o={};return{matchHandlers:{},dispatch(i){return o=i,n.forEach(a=>a(o)),n.size>=1},subscribe(i){return n.size||this.register(),r+=1,n.set(r,i),i(o),r},unsubscribe(i){n.delete(i),n.size||this.unregister()},unregister(){Object.keys(t).forEach(i=>{const a=t[i],l=this.matchHandlers[a];l==null||l.mql.removeListener(l==null?void 0:l.listener)}),n.clear()},register(){Object.keys(t).forEach(i=>{const a=t[i],l=d=>{let{matches:h}=d;this.dispatch(Object.assign(Object.assign({},o),{[i]:h}))},c=window.matchMedia(a);c.addListener(l),this.matchHandlers[a]={mql:c,listener:l},l(c)})},responsiveMap:t}},[e])}function hA(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return u.createElement("div",{className:ne("".concat(n,"-content"),i),style:a},u.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var Xc={shiftX:64,adjustY:1},Yc={adjustX:1,shiftY:!0},Pi=[0,0],DY={left:{points:["cr","cl"],overflow:Yc,offset:[-4,0],targetOffset:Pi},right:{points:["cl","cr"],overflow:Yc,offset:[4,0],targetOffset:Pi},top:{points:["bc","tc"],overflow:Xc,offset:[0,-4],targetOffset:Pi},bottom:{points:["tc","bc"],overflow:Xc,offset:[0,4],targetOffset:Pi},topLeft:{points:["bl","tl"],overflow:Xc,offset:[0,-4],targetOffset:Pi},leftTop:{points:["tr","tl"],overflow:Yc,offset:[-4,0],targetOffset:Pi},topRight:{points:["br","tr"],overflow:Xc,offset:[0,-4],targetOffset:Pi},rightTop:{points:["tl","tr"],overflow:Yc,offset:[4,0],targetOffset:Pi},bottomRight:{points:["tr","br"],overflow:Xc,offset:[0,4],targetOffset:Pi},rightBottom:{points:["bl","br"],overflow:Yc,offset:[4,0],targetOffset:Pi},bottomLeft:{points:["tl","bl"],overflow:Xc,offset:[0,4],targetOffset:Pi},leftBottom:{points:["br","bl"],overflow:Yc,offset:[-4,0],targetOffset:Pi}},BY=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],FY=function(t,n){var r=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,l=a===void 0?0:a,c=t.mouseLeaveDelay,d=c===void 0?.1:c,h=t.overlayStyle,g=t.prefixCls,p=g===void 0?"rc-tooltip":g,m=t.children,v=t.onVisibleChange,y=t.afterVisibleChange,w=t.transitionName,C=t.animation,b=t.motion,S=t.placement,E=S===void 0?"right":S,O=t.align,x=O===void 0?{}:O,T=t.destroyTooltipOnHide,R=T===void 0?!1:T,N=t.defaultVisible,I=t.getTooltipContainer,P=t.overlayInnerStyle;t.arrowContent;var L=t.overlay,D=t.id,z=t.showArrow,W=z===void 0?!0:z,B=Mt(t,BY),M=u.useRef(null);u.useImperativeHandle(n,function(){return M.current});var A=Q({},B);"visible"in t&&(A.popupVisible=t.visible);var U=function(){return u.createElement(hA,{key:"content",prefixCls:p,id:D,overlayInnerStyle:P},L)};return u.createElement(_v,De({popupClassName:r,prefixCls:p,popup:U,action:i,builtinPlacements:DY,popupPlacement:E,ref:M,popupAlign:x,getPopupContainer:I,onPopupVisibleChange:v,afterPopupVisibleChange:y,popupTransitionName:w,popupAnimation:C,popupMotion:b,defaultPopupVisible:N,autoDestroy:R,mouseLeaveDelay:d,popupStyle:h,mouseEnterDelay:l,arrow:W},A),m)};const zY=u.forwardRef(FY);function gA(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=0,a=o,l=r*1/Math.sqrt(2),c=o-r*(1-1/Math.sqrt(2)),d=o-n*(1/Math.sqrt(2)),h=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),g=2*o-d,p=h,m=2*o-l,v=c,y=2*o-i,w=a,C=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),b=r*(Math.sqrt(2)-1),S=`polygon(${b}px 100%, 50% ${b}px, ${2*o-b}px 100%, ${b}px 100%)`,E=`path('M ${i} ${a} A ${r} ${r} 0 0 0 ${l} ${c} L ${d} ${h} A ${n} ${n} 0 0 1 ${g} ${p} L ${m} ${v} A ${r} ${r} 0 0 0 ${y} ${w} Z')`;return{arrowShadowWidth:C,arrowPath:E,arrowPolygon:S}}const kY=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:l,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${oe(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},pA=8;function Aw(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?pA:r}}function Zg(e,t){return e?t:{}}function mA(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},kY(e,t,o)),{"&:before":{background:t}})]},Zg(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-topRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}})),Zg(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-bottomRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}})),Zg(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),Zg(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}function jY(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+n,i.shiftX=!0,i.adjustX=!0;break}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const c$={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"]}},HY={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"]}},WY=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function vA(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,c={};return Object.keys(c$).forEach(d=>{const h=r&&HY[d]||c$[d],g=Object.assign(Object.assign({},h),{offset:[0,0],dynamicInset:!0});switch(c[d]=g,WY.has(d)&&(g.autoArrow=!1),d){case"top":case"topLeft":case"topRight":g.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":g.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":g.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":g.offset[0]=l+o;break}const p=Aw({contentRadius:i,limitVerticalRadius:!0});if(r)switch(d){case"topLeft":case"bottomLeft":g.offset[0]=-p.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":g.offset[0]=p.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":g.offset[1]=-p.arrowOffsetHorizontal-l;break;case"leftBottom":case"rightBottom":g.offset[1]=p.arrowOffsetHorizontal+l;break}g.overflow=jY(d,p,t,n),a&&(g.htmlRegion="visibleFirst")}),c}const UY=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:c,paddingSM:d,paddingXS:h}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},cr(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:l,minHeight:l,padding:`${oe(e.calc(d).div(2).equal())} ${oe(h)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,pA)}},[`${t}-content`]:{position:"relative"}}),KW(e,(g,p)=>{let{darkColor:m}=p;return{[`&${t}-${g}`]:{[`${t}-inner`]:{backgroundColor:m},[`${t}-arrow`]:{"--antd-arrow-background-color":m}}}})),{"&-rtl":{direction:"rtl"}})},mA(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},VY=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Aw({contentRadius:e.borderRadius,limitVerticalRadius:!0})),gA(pn(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),yA=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Zn("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:i,colorBgSpotlight:a}=r,l=pn(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a});return[UY(l),Cv(r,"zoom-big-fast")]},VY,{resetStyle:!1,injectStyle:t})(e)},KY=hm.map(e=>`${e}-inverse`);function GY(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Be(KY),Be(hm)).includes(e):hm.includes(e)}function bA(e,t){const n=GY(t),r=ne({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}const XY=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:l}=u.useContext(bt),c=l("tooltip",t),[d,h,g]=yA(c),p=bA(c,i),m=p.arrowStyle,v=Object.assign(Object.assign({},a),p.overlayStyle),y=ne(h,g,c,`${c}-pure`,`${c}-placement-${r}`,n,p.className);return d(u.createElement("div",{className:y,style:m},u.createElement("div",{className:`${c}-arrow`}),u.createElement(hA,Object.assign({},e,{className:h,prefixCls:c,overlayInnerStyle:v}),o)))},YY=XY;var qY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:l,color:c,overlayInnerStyle:d,children:h,afterOpenChange:g,afterVisibleChange:p,destroyTooltipOnHide:m,arrow:v=!0,title:y,overlay:w,builtinPlacements:C,arrowPointAtCenter:b=!1,autoAdjustOverflow:S=!0}=e,E=!!v,[,O]=Dr(),{getPopupContainer:x,getPrefixCls:T,direction:R}=u.useContext(bt),N=ch(),I=u.useRef(null),P=()=>{var Pe;(Pe=I.current)===null||Pe===void 0||Pe.forceAlign()};u.useImperativeHandle(t,()=>({forceAlign:P,forcePopupAlign:()=>{N.deprecated(!1,"forcePopupAlign","forceAlign"),P()}}));const[L,D]=Vr(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),z=!y&&!w&&y!==0,W=Pe=>{var Fe,Ee;D(z?!1:Pe),z||((Fe=e.onOpenChange)===null||Fe===void 0||Fe.call(e,Pe),(Ee=e.onVisibleChange)===null||Ee===void 0||Ee.call(e,Pe))},B=u.useMemo(()=>{var Pe,Fe;let Ee=b;return typeof v=="object"&&(Ee=(Fe=(Pe=v.pointAtCenter)!==null&&Pe!==void 0?Pe:v.arrowPointAtCenter)!==null&&Fe!==void 0?Fe:b),C||vA({arrowPointAtCenter:Ee,autoAdjustOverflow:S,arrowWidth:E?O.sizePopupArrow:0,borderRadius:O.borderRadius,offset:O.marginXXS,visibleFirst:!0})},[b,v,C,O]),M=u.useMemo(()=>y===0?y:w||y||"",[w,y]),A=u.createElement(Kf,null,typeof M=="function"?M():M),{getPopupContainer:U,placement:j="top",mouseEnterDelay:G=.1,mouseLeaveDelay:X=.1,overlayStyle:re,rootClassName:te}=e,Z=qY(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),he=T("tooltip",o),ge=T(),ce=e["data-popover-inject"];let be=L;!("open"in e)&&!("visible"in e)&&z&&(be=!1);const pe=u.isValidElement(h)&&!VM(h)?h:u.createElement("span",null,h),ae=pe.props,J=!ae.className||typeof ae.className=="string"?ne(ae.className,i||`${he}-open`):ae.className,[ue,ie,Ce]=yA(he,!ce),Oe=bA(he,c),Te=Oe.arrowStyle,Me=Object.assign(Object.assign({},d),Oe.overlayStyle),me=ne(l,{[`${he}-rtl`]:R==="rtl"},Oe.className,te,ie,Ce),[ve,xe]=hh("Tooltip",Z.zIndex),Ae=u.createElement(zY,Object.assign({},Z,{zIndex:ve,showArrow:E,placement:j,mouseEnterDelay:G,mouseLeaveDelay:X,prefixCls:he,overlayClassName:me,overlayStyle:Object.assign(Object.assign({},Te),re),getTooltipContainer:U||a||x,ref:I,builtinPlacements:B,overlay:A,visible:be,onVisibleChange:W,afterVisibleChange:g??p,overlayInnerStyle:Me,arrowContent:u.createElement("span",{className:`${he}-arrow-content`}),motion:{motionName:mc(ge,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!m}),be?Oo(pe,{className:J}):pe);return ue(u.createElement(mv.Provider,{value:xe},Ae))}),SA=QY;SA._InternalPanelDoNotUseOrYouWillBeFired=YY;const td=SA;var ZY={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"};const JY=ZY;var eq=function(t,n){return u.createElement(Sn,De({},t,{ref:n,icon:JY}))},tq=u.forwardRef(eq);const _1=tq;var nq=_e.ESC,rq=_e.TAB;function oq(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=u.useRef(!1),l=function(){if(t){var g,p;(g=n.current)===null||g===void 0||(p=g.focus)===null||p===void 0||p.call(g),r==null||r(!1)}},c=function(){var g;return(g=i.current)!==null&&g!==void 0&&g.focus?(i.current.focus(),a.current=!0,!0):!1},d=function(g){switch(g.keyCode){case nq:l();break;case rq:{var p=!1;a.current||(p=c()),p?g.preventDefault():l();break}}};u.useEffect(function(){return t?(window.addEventListener("keydown",d),o&&bn(c,3),function(){window.removeEventListener("keydown",d),a.current=!1}):function(){a.current=!1}},[t])}var iq=u.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=u.useMemo(function(){var l;return typeof n=="function"?l=n():l=n,l},[n]),a=wi(t,i==null?void 0:i.ref);return se.createElement(se.Fragment,null,r&&se.createElement("div",{className:"".concat(o,"-arrow")}),se.cloneElement(i,{ref:wl(i)?a:void 0}))}),qc={adjustX:1,adjustY:1},Qc=[0,0],aq={topLeft:{points:["bl","tl"],overflow:qc,offset:[0,-4],targetOffset:Qc},top:{points:["bc","tc"],overflow:qc,offset:[0,-4],targetOffset:Qc},topRight:{points:["br","tr"],overflow:qc,offset:[0,-4],targetOffset:Qc},bottomLeft:{points:["tl","bl"],overflow:qc,offset:[0,4],targetOffset:Qc},bottom:{points:["tc","bc"],overflow:qc,offset:[0,4],targetOffset:Qc},bottomRight:{points:["tr","br"],overflow:qc,offset:[0,4],targetOffset:Qc}},lq=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function sq(e,t){var n,r=e.arrow,o=r===void 0?!1:r,i=e.prefixCls,a=i===void 0?"rc-dropdown":i,l=e.transitionName,c=e.animation,d=e.align,h=e.placement,g=h===void 0?"bottomLeft":h,p=e.placements,m=p===void 0?aq:p,v=e.getPopupContainer,y=e.showAction,w=e.hideAction,C=e.overlayClassName,b=e.overlayStyle,S=e.visible,E=e.trigger,O=E===void 0?["hover"]:E,x=e.autoFocus,T=e.overlay,R=e.children,N=e.onVisibleChange,I=Mt(e,lq),P=se.useState(),L=de(P,2),D=L[0],z=L[1],W="visible"in e?S:D,B=se.useRef(null),M=se.useRef(null),A=se.useRef(null);se.useImperativeHandle(t,function(){return B.current});var U=function(ce){z(ce),N==null||N(ce)};oq({visible:W,triggerRef:A,onVisibleChange:U,autoFocus:x,overlayRef:M});var j=function(ce){var be=e.onOverlayClick;z(!1),be&&be(ce)},G=function(){return se.createElement(iq,{ref:M,overlay:T,prefixCls:a,arrow:o})},X=function(){return typeof T=="function"?G:G()},re=function(){var ce=e.minOverlayWidthMatchTrigger,be=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?ce:!be},te=function(){var ce=e.openClassName;return ce!==void 0?ce:"".concat(a,"-open")},Z=se.cloneElement(R,{className:ne((n=R.props)===null||n===void 0?void 0:n.className,W&&te()),ref:wl(R)?wi(A,R.ref):void 0}),he=w;return!he&&O.indexOf("contextMenu")!==-1&&(he=["click"]),se.createElement(_v,De({builtinPlacements:m},I,{prefixCls:a,ref:B,popupClassName:ne(C,K({},"".concat(a,"-show-arrow"),o)),popupStyle:b,action:O,showAction:y,hideAction:he,popupPlacement:g,popupAlign:d,popupTransitionName:l,popupAnimation:c,popupVisible:W,stretch:re()?"minWidth":"",popup:X(),onPopupVisibleChange:U,onPopupClick:j,getPopupContainer:v}),Z)}const CA=se.forwardRef(sq);var wA=u.createContext(null);function _A(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function EA(e){var t=u.useContext(wA);return _A(t,e)}var cq=["children","locked"],ba=u.createContext(null);function uq(e,t){var n=Q({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function Zf(e){var t=e.children,n=e.locked,r=Mt(e,cq),o=u.useContext(ba),i=sh(function(){return uq(o,r)},[o,r],function(a,l){return!n&&(a[0]!==l[0]||!Hf(a[1],l[1],!0))});return u.createElement(ba.Provider,{value:i},t)}var dq=[],xA=u.createContext(null);function xv(){return u.useContext(xA)}var OA=u.createContext(dq);function nd(e){var t=u.useContext(OA);return u.useMemo(function(){return e!==void 0?[].concat(Be(t),[e]):t},[t,e])}var TA=u.createContext(null),Lw=u.createContext({});function u$(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(yv(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&a===null&&(a=0),r&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return!1}function fq(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Be(e.querySelectorAll("*")).filter(function(r){return u$(r,t)});return u$(e,t)&&n.unshift(e),n}var E1=_e.LEFT,x1=_e.RIGHT,O1=_e.UP,Ip=_e.DOWN,Np=_e.ENTER,$A=_e.ESC,Hd=_e.HOME,Wd=_e.END,d$=[O1,Ip,E1,x1];function hq(e,t,n,r){var o,i="prev",a="next",l="children",c="parent";if(e==="inline"&&r===Np)return{inlineTrigger:!0};var d=K(K({},O1,i),Ip,a),h=K(K(K(K({},E1,n?a:i),x1,n?i:a),Ip,l),Np,l),g=K(K(K(K(K(K({},O1,i),Ip,a),Np,l),$A,c),E1,n?l:c),x1,n?c:l),p={inline:d,horizontal:h,vertical:g,inlineSub:d,horizontalSub:g,verticalSub:g},m=(o=p["".concat(e).concat(t?"":"Sub")])===null||o===void 0?void 0:o[r];switch(m){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}function gq(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function pq(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function Dw(e,t){var n=fq(e,!0);return n.filter(function(r){return t.has(r)})}function f$(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=Dw(e,t),i=o.length,a=o.findIndex(function(l){return n===l});return r<0?a===-1?a=i-1:a-=1:r>0&&(a+=1),a=(a+i)%i,o[a]}var T1=function(t,n){var r=new Set,o=new Map,i=new Map;return t.forEach(function(a){var l=document.querySelector("[data-menu-id='".concat(_A(n,a),"']"));l&&(r.add(l),i.set(l,a),o.set(a,l))}),{elements:r,key2element:o,element2key:i}};function mq(e,t,n,r,o,i,a,l,c,d){var h=u.useRef(),g=u.useRef();g.current=t;var p=function(){bn.cancel(h.current)};return u.useEffect(function(){return function(){p()}},[]),function(m){var v=m.which;if([].concat(d$,[Np,$A,Hd,Wd]).includes(v)){var y=i(),w=T1(y,r),C=w,b=C.elements,S=C.key2element,E=C.element2key,O=S.get(t),x=pq(O,b),T=E.get(x),R=hq(e,a(T,!0).length===1,n,v);if(!R&&v!==Hd&&v!==Wd)return;(d$.includes(v)||[Hd,Wd].includes(v))&&m.preventDefault();var N=function(M){if(M){var A=M,U=M.querySelector("a");U!=null&&U.getAttribute("href")&&(A=U);var j=E.get(M);l(j),p(),h.current=bn(function(){g.current===j&&A.focus()})}};if([Hd,Wd].includes(v)||R.sibling||!x){var I;!x||e==="inline"?I=o.current:I=gq(x);var P,L=Dw(I,b);v===Hd?P=L[0]:v===Wd?P=L[L.length-1]:P=f$(I,b,x,R.offset),N(P)}else if(R.inlineTrigger)c(T);else if(R.offset>0)c(T,!0),p(),h.current=bn(function(){w=T1(y,r);var B=x.getAttribute("aria-controls"),M=document.getElementById(B),A=f$(M,w.elements);N(A)},5);else if(R.offset<0){var D=a(T,!0),z=D[D.length-2],W=S.get(z);c(z,!1),N(W)}}d==null||d(m)}}function vq(e){Promise.resolve().then(e)}var Bw="__RC_UTIL_PATH_SPLIT__",h$=function(t){return t.join(Bw)},yq=function(t){return t.split(Bw)},$1="rc-menu-more";function bq(){var e=u.useState({}),t=de(e,2),n=t[1],r=u.useRef(new Map),o=u.useRef(new Map),i=u.useState([]),a=de(i,2),l=a[0],c=a[1],d=u.useRef(0),h=u.useRef(!1),g=function(){h.current||n({})},p=u.useCallback(function(S,E){var O=h$(E);o.current.set(O,S),r.current.set(S,O),d.current+=1;var x=d.current;vq(function(){x===d.current&&g()})},[]),m=u.useCallback(function(S,E){var O=h$(E);o.current.delete(O),r.current.delete(S)},[]),v=u.useCallback(function(S){c(S)},[]),y=u.useCallback(function(S,E){var O=r.current.get(S)||"",x=yq(O);return E&&l.includes(x[0])&&x.unshift($1),x},[l]),w=u.useCallback(function(S,E){return S.some(function(O){var x=y(O,!0);return x.includes(E)})},[y]),C=function(){var E=Be(r.current.keys());return l.length&&E.push($1),E},b=u.useCallback(function(S){var E="".concat(r.current.get(S)).concat(Bw),O=new Set;return Be(o.current.keys()).forEach(function(x){x.startsWith(E)&&O.add(o.current.get(x))}),O},[]);return u.useEffect(function(){return function(){h.current=!0}},[]),{registerPath:p,unregisterPath:m,refreshOverflowKeys:v,isSubPathKey:w,getKeyPath:y,getKeys:C,getSubPathKeys:b}}function rf(e){var t=u.useRef(e);t.current=e;var n=u.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a1&&(b.motionAppear=!1);var S=b.onVisibleChanged;return b.onVisibleChanged=function(E){return!p.current&&!E&&w(!0),S==null?void 0:S(E)},y?null:u.createElement(Zf,{mode:i,locked:!p.current},u.createElement(Sa,De({visible:C},b,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(E){var O=E.className,x=E.style;return u.createElement(Fw,{id:t,className:O,style:x},o)}))}var Dq=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Bq=["active"],Fq=function(t){var n=t.style,r=t.className,o=t.title,i=t.eventKey;t.warnKey;var a=t.disabled,l=t.internalPopupClose,c=t.children,d=t.itemIcon,h=t.expandIcon,g=t.popupClassName,p=t.popupOffset,m=t.popupStyle,v=t.onClick,y=t.onMouseEnter,w=t.onMouseLeave,C=t.onTitleClick,b=t.onTitleMouseEnter,S=t.onTitleMouseLeave,E=Mt(t,Dq),O=EA(i),x=u.useContext(ba),T=x.prefixCls,R=x.mode,N=x.openKeys,I=x.disabled,P=x.overflowDisabled,L=x.activeKey,D=x.selectedKeys,z=x.itemIcon,W=x.expandIcon,B=x.onItemClick,M=x.onOpenChange,A=x.onActive,U=u.useContext(Lw),j=U._internalRenderSubMenuItem,G=u.useContext(TA),X=G.isSubPathKey,re=nd(),te="".concat(T,"-submenu"),Z=I||a,he=u.useRef(),ge=u.useRef(),ce=d??z,be=h??W,pe=N.includes(i),ae=!P&&pe,J=X(D,i),ue=RA(i,Z,b,S),ie=ue.active,Ce=Mt(ue,Bq),Oe=u.useState(!1),Te=de(Oe,2),Me=Te[0],me=Te[1],ve=function(At){Z||me(At)},xe=function(At){ve(!0),y==null||y({key:i,domEvent:At})},Ae=function(At){ve(!1),w==null||w({key:i,domEvent:At})},Pe=u.useMemo(function(){return ie||(R!=="inline"?Me||X([L],i):!1)},[R,ie,L,Me,i,X]),Fe=IA(re.length),Ee=function(At){Z||(C==null||C({key:i,domEvent:At}),R==="inline"&&M(i,!pe))},Ie=rf(function(ht){v==null||v(_m(ht)),B(ht)}),je=function(At){R!=="inline"&&M(i,At)},Le=function(){A(i)},Ue=O&&"".concat(O,"-popup"),Ve=u.createElement("div",De({role:"menuitem",style:Fe,className:"".concat(te,"-title"),tabIndex:Z?null:-1,ref:he,title:typeof o=="string"?o:null,"data-menu-id":P&&O?null:O,"aria-expanded":ae,"aria-haspopup":!0,"aria-controls":Ue,"aria-disabled":Z,onClick:Ee,onFocus:Le},Ce),o,u.createElement(NA,{icon:R!=="horizontal"?be:void 0,props:Q(Q({},t),{},{isOpen:ae,isSubMenu:!0})},u.createElement("i",{className:"".concat(te,"-arrow")}))),We=u.useRef(R);if(R!=="inline"&&re.length>1?We.current="vertical":We.current=R,!P){var Ke=We.current;Ve=u.createElement(Aq,{mode:Ke,prefixCls:te,visible:!l&&ae&&R!=="inline",popupClassName:g,popupOffset:p,popupStyle:m,popup:u.createElement(Zf,{mode:Ke==="horizontal"?"vertical":Ke},u.createElement(Fw,{id:Ue,ref:ge},c)),disabled:Z,onVisibleChange:je},Ve)}var Et=u.createElement(za.Item,De({role:"none"},E,{component:"li",style:n,className:ne(te,"".concat(te,"-").concat(R),r,K(K(K(K({},"".concat(te,"-open"),ae),"".concat(te,"-active"),Pe),"".concat(te,"-selected"),J),"".concat(te,"-disabled"),Z)),onMouseEnter:xe,onMouseLeave:Ae}),Ve,!P&&u.createElement(Lq,{id:Ue,open:ae,keyPath:re},c));return j&&(Et=j(Et,t,{selected:J,active:Pe,open:ae,disabled:Z})),u.createElement(Zf,{onItemClick:Ie,mode:R==="horizontal"?"vertical":R,itemIcon:ce,expandIcon:be},Et)};function Ov(e){var t=e.eventKey,n=e.children,r=nd(t),o=zw(n,r),i=xv();u.useEffect(function(){if(i)return i.registerPath(t,r),function(){i.unregisterPath(t,r)}},[r]);var a;return i?a=o:a=u.createElement(Fq,e,o),u.createElement(OA.Provider,{value:r},a)}var zq=["className","title","eventKey","children"],kq=["children"],jq=function(t){var n=t.className,r=t.title;t.eventKey;var o=t.children,i=Mt(t,zq),a=u.useContext(ba),l=a.prefixCls,c="".concat(l,"-item-group");return u.createElement("li",De({role:"presentation"},i,{onClick:function(h){return h.stopPropagation()},className:ne(c,n)}),u.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:typeof r=="string"?r:void 0},r),u.createElement("ul",{role:"group",className:"".concat(c,"-list")},o))};function Tv(e){var t=e.children,n=Mt(e,kq),r=nd(n.eventKey),o=zw(t,r),i=xv();return i?o:u.createElement(jq,Qn(n,["warnKey"]),o)}function kw(e){var t=e.className,n=e.style,r=u.useContext(ba),o=r.prefixCls,i=xv();return i?null:u.createElement("li",{role:"separator",className:ne("".concat(o,"-item-divider"),t),style:n})}var Hq=["label","children","key","type"];function R1(e){return(e||[]).map(function(t,n){if(t&&Pt(t)==="object"){var r=t,o=r.label,i=r.children,a=r.key,l=r.type,c=Mt(r,Hq),d=a??"tmp-".concat(n);return i||l==="group"?l==="group"?u.createElement(Tv,De({key:d},c,{title:o}),R1(i)):u.createElement(Ov,De({key:d},c,{title:o}),R1(i)):l==="divider"?u.createElement(kw,De({key:d},c)):u.createElement(Sh,De({key:d},c),o)}return null}).filter(function(t){return t})}function Wq(e,t,n){var r=e;return t&&(r=R1(t)),zw(r,n)}var Uq=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],Zc=[],Vq=u.forwardRef(function(e,t){var n,r=e,o=r.prefixCls,i=o===void 0?"rc-menu":o,a=r.rootClassName,l=r.style,c=r.className,d=r.tabIndex,h=d===void 0?0:d,g=r.items,p=r.children,m=r.direction,v=r.id,y=r.mode,w=y===void 0?"vertical":y,C=r.inlineCollapsed,b=r.disabled,S=r.disabledOverflow,E=r.subMenuOpenDelay,O=E===void 0?.1:E,x=r.subMenuCloseDelay,T=x===void 0?.1:x,R=r.forceSubMenuRender,N=r.defaultOpenKeys,I=r.openKeys,P=r.activeKey,L=r.defaultActiveFirst,D=r.selectable,z=D===void 0?!0:D,W=r.multiple,B=W===void 0?!1:W,M=r.defaultSelectedKeys,A=r.selectedKeys,U=r.onSelect,j=r.onDeselect,G=r.inlineIndent,X=G===void 0?24:G,re=r.motion,te=r.defaultMotions,Z=r.triggerSubMenuAction,he=Z===void 0?"hover":Z,ge=r.builtinPlacements,ce=r.itemIcon,be=r.expandIcon,pe=r.overflowedIndicator,ae=pe===void 0?"...":pe,J=r.overflowedIndicatorPopupClassName,ue=r.getPopupContainer,ie=r.onClick,Ce=r.onOpenChange,Oe=r.onKeyDown;r.openAnimation,r.openTransitionName;var Te=r._internalRenderMenuItem,Me=r._internalRenderSubMenuItem,me=Mt(r,Uq),ve=u.useMemo(function(){return Wq(p,g,Zc)},[p,g]),xe=u.useState(!1),Ae=de(xe,2),Pe=Ae[0],Fe=Ae[1],Ee=u.useRef(),Ie=Cq(v),je=m==="rtl",Le=Vr(N,{value:I,postState:function(zt){return zt||Zc}}),Ue=de(Le,2),Ve=Ue[0],We=Ue[1],Ke=function(zt){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function ft(){We(zt),Ce==null||Ce(zt)}tt?va.flushSync(ft):ft()},Et=u.useState(Ve),ht=de(Et,2),At=ht[0],Kt=ht[1],He=u.useRef(!1),Qe=u.useMemo(function(){return(w==="inline"||w==="vertical")&&C?["vertical",C]:[w,!1]},[w,C]),It=de(Qe,2),Ht=It[0],sn=It[1],vn=Ht==="inline",Vt=u.useState(Ht),Lt=de(Vt,2),rt=Lt[0],xt=Lt[1],at=u.useState(sn),Xe=de(at,2),mt=Xe[0],Bt=Xe[1];u.useEffect(function(){xt(Ht),Bt(sn),He.current&&(vn?We(At):Ke(Zc))},[Ht,sn]);var Ye=u.useState(0),lt=de(Ye,2),et=lt[0],gt=lt[1],_t=et>=ve.length-1||rt!=="horizontal"||S;u.useEffect(function(){vn&&Kt(Ve)},[Ve]),u.useEffect(function(){return He.current=!0,function(){He.current=!1}},[]);var vt=bq(),_n=vt.registerPath,mn=vt.unregisterPath,Nt=vt.refreshOverflowKeys,Ze=vt.isSubPathKey,Ft=vt.getKeyPath,Je=vt.getKeys,st=vt.getSubPathKeys,St=u.useMemo(function(){return{registerPath:_n,unregisterPath:mn}},[_n,mn]),Gt=u.useMemo(function(){return{isSubPathKey:Ze}},[Ze]);u.useEffect(function(){Nt(_t?Zc:ve.slice(et+1).map(function(Zt){return Zt.key}))},[et,_t]);var cn=Vr(P||L&&((n=ve[0])===null||n===void 0?void 0:n.key),{value:P}),ur=de(cn,2),Tt=ur[0],dr=ur[1],qr=rf(function(Zt){dr(Zt)}),fr=rf(function(){dr(void 0)});u.useImperativeHandle(t,function(){return{list:Ee.current,focus:function(zt){var tt,ft=Je(),Xt=T1(ft,Ie),En=Xt.elements,fn=Xt.key2element,Bn=Xt.element2key,Hn=Dw(Ee.current,En),rr=Tt??(Hn[0]?Bn.get(Hn[0]):(tt=ve.find(function(hr){return!hr.props.disabled}))===null||tt===void 0?void 0:tt.key),Kn=fn.get(rr);if(rr&&Kn){var Cr;Kn==null||(Cr=Kn.focus)===null||Cr===void 0||Cr.call(Kn,zt)}}}});var tr=Vr(M||[],{value:A,postState:function(zt){return Array.isArray(zt)?zt:zt==null?Zc:[zt]}}),qo=de(tr,2),Rr=qo[0],Qr=qo[1],Io=function(zt){if(z){var tt=zt.key,ft=Rr.includes(tt),Xt;B?ft?Xt=Rr.filter(function(fn){return fn!==tt}):Xt=[].concat(Be(Rr),[tt]):Xt=[tt],Qr(Xt);var En=Q(Q({},zt),{},{selectedKeys:Xt});ft?j==null||j(En):U==null||U(En)}!B&&Ve.length&&rt!=="inline"&&Ke(Zc)},nr=rf(function(Zt){ie==null||ie(_m(Zt)),Io(Zt)}),Sr=rf(function(Zt,zt){var tt=Ve.filter(function(Xt){return Xt!==Zt});if(zt)tt.push(Zt);else if(rt!=="inline"){var ft=st(Zt);tt=tt.filter(function(Xt){return!ft.has(Xt)})}Hf(Ve,tt,!0)||Ke(tt,!0)}),Ir=function(zt,tt){var ft=tt??!Ve.includes(zt);Sr(zt,ft)},Qo=mq(rt,Tt,je,Ie,Ee,Je,Ft,dr,Ir,Oe);u.useEffect(function(){Fe(!0)},[]);var xi=u.useMemo(function(){return{_internalRenderMenuItem:Te,_internalRenderSubMenuItem:Me}},[Te,Me]),zr=rt!=="horizontal"||S?ve:ve.map(function(Zt,zt){return u.createElement(Zf,{key:Zt.key,overflowDisabled:zt>et},Zt)}),Zr=u.createElement(za,De({id:v,ref:Ee,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:Sh,className:ne(i,"".concat(i,"-root"),"".concat(i,"-").concat(rt),c,K(K({},"".concat(i,"-inline-collapsed"),mt),"".concat(i,"-rtl"),je),a),dir:m,style:l,role:"menu",tabIndex:h,data:zr,renderRawItem:function(zt){return zt},renderRawRest:function(zt){var tt=zt.length,ft=tt?ve.slice(-tt):null;return u.createElement(Ov,{eventKey:$1,title:ae,disabled:_t,internalPopupClose:tt===0,popupClassName:J},ft)},maxCount:rt!=="horizontal"||S?za.INVALIDATE:za.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(zt){gt(zt)},onKeyDown:Qo},me));return u.createElement(Lw.Provider,{value:xi},u.createElement(wA.Provider,{value:Ie},u.createElement(Zf,{prefixCls:i,rootClassName:a,mode:rt,openKeys:Ve,rtl:je,disabled:b,motion:Pe?re:null,defaultMotions:Pe?te:null,activeKey:Tt,onActive:qr,onInactive:fr,selectedKeys:Rr,inlineIndent:X,subMenuOpenDelay:O,subMenuCloseDelay:T,forceSubMenuRender:R,builtinPlacements:ge,triggerSubMenuAction:he,getPopupContainer:ue,itemIcon:ce,expandIcon:be,onItemClick:nr,onOpenChange:Sr},u.createElement(TA.Provider,{value:Gt},Zr),u.createElement("div",{style:{display:"none"},"aria-hidden":!0},u.createElement(xA.Provider,{value:St},ve)))))}),rd=Vq;rd.Item=Sh;rd.SubMenu=Ov;rd.ItemGroup=Tv;rd.Divider=kw;var Kq={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};const Gq=Kq;var Xq=function(t,n){return u.createElement(Sn,De({},t,{ref:n,icon:Gq}))},Yq=u.forwardRef(Xq);const qq=Yq;var Qq={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"};const Zq=Qq;var Jq=function(t,n){return u.createElement(Sn,De({},t,{ref:n,icon:Zq}))},eQ=u.forwardRef(Jq);const p$=eQ,tQ=e=>!isNaN(parseFloat(e))&&isFinite(e),PA=u.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var nQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),oQ=u.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:o,children:i,defaultCollapsed:a=!1,theme:l="dark",style:c={},collapsible:d=!1,reverseArrow:h=!1,width:g=200,collapsedWidth:p=80,zeroWidthTriggerStyle:m,breakpoint:v,onCollapse:y,onBreakpoint:w}=e,C=nQ(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:b}=u.useContext(PA),[S,E]=u.useState("collapsed"in e?e.collapsed:a),[O,x]=u.useState(!1);u.useEffect(()=>{"collapsed"in e&&E(e.collapsed)},[e.collapsed]);const T=(D,z)=>{"collapsed"in e||E(D),y==null||y(D,z)},R=u.useRef();R.current=D=>{x(D.matches),w==null||w(D.matches),S!==D.matches&&T(D.matches,"responsive")},u.useEffect(()=>{function D(W){return R.current(W)}let z;if(typeof window<"u"){const{matchMedia:W}=window;if(W&&v&&v in m$){z=W(`screen and (max-width: ${m$[v]})`);try{z.addEventListener("change",D)}catch{z.addListener(D)}D(z)}}return()=>{try{z==null||z.removeEventListener("change",D)}catch{z==null||z.removeListener(D)}}},[v]),u.useEffect(()=>{const D=rQ("ant-sider-");return b.addSider(D),()=>b.removeSider(D)},[]);const N=()=>{T(!S,"clickTrigger")},{getPrefixCls:I}=u.useContext(bt),P=()=>{const D=I("layout-sider",n),z=Qn(C,["collapsed"]),W=S?p:g,B=tQ(W)?`${W}px`:String(W),M=parseFloat(String(p||0))===0?u.createElement("span",{onClick:N,className:ne(`${D}-zero-width-trigger`,`${D}-zero-width-trigger-${h?"right":"left"}`),style:m},o||u.createElement(qq,null)):null,j={expanded:h?u.createElement(_1,null):u.createElement(p$,null),collapsed:h?u.createElement(p$,null):u.createElement(_1,null)}[S?"collapsed":"expanded"],G=o!==null?M||u.createElement("div",{className:`${D}-trigger`,onClick:N,style:{width:B}},o||j):null,X=Object.assign(Object.assign({},c),{flex:`0 0 ${B}`,maxWidth:B,minWidth:B,width:B}),re=ne(D,`${D}-${l}`,{[`${D}-collapsed`]:!!S,[`${D}-has-trigger`]:d&&o!==null&&!M,[`${D}-below`]:!!O,[`${D}-zero-width`]:parseFloat(B)===0},r);return u.createElement("aside",Object.assign({className:re},z,{style:X,ref:t}),u.createElement("div",{className:`${D}-children`},i),d||O&&M?G:null)},L=u.useMemo(()=>({siderCollapsed:S}),[S]);return u.createElement($v.Provider,{value:L},P())}),AA=oQ;var iQ={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"};const aQ=iQ;var lQ=function(t,n){return u.createElement(Sn,De({},t,{ref:n,icon:aQ}))},sQ=u.forwardRef(lQ);const jw=sQ;var cQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:n,dashed:r}=e,o=cQ(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=u.useContext(bt),a=i("menu",t),l=ne({[`${a}-item-divider-dashed`]:!!r},n);return u.createElement(kw,Object.assign({className:l},o))},LA=uQ,dQ=u.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Em=dQ,fQ=e=>{var t;const{className:n,children:r,icon:o,title:i,danger:a}=e,{prefixCls:l,firstLevel:c,direction:d,disableMenuItemTitleTooltip:h,inlineCollapsed:g}=u.useContext(Em),p=b=>{const S=u.createElement("span",{className:`${l}-title-content`},r);return(!o||u.isValidElement(r)&&r.type==="span")&&r&&b&&c&&typeof r=="string"?u.createElement("div",{className:`${l}-inline-collapsed-noicon`},r.charAt(0)):S},{siderCollapsed:m}=u.useContext($v);let v=i;typeof i>"u"?v=c?r:"":i===!1&&(v="");const y={title:v};!m&&!g&&(y.title=null,y.open=!1);const w=xo(r).length;let C=u.createElement(Sh,Object.assign({},Qn(e,["title","icon","danger"]),{className:ne({[`${l}-item-danger`]:a,[`${l}-item-only-child`]:(o?w+1:w)===1},n),title:typeof i=="string"?i:void 0}),Oo(o,{className:ne(u.isValidElement(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),p(g));return h||(C=u.createElement(td,Object.assign({},y,{placement:d==="rtl"?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`}),C)),C},DA=fQ,hQ=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,a=u.useContext(Em),{prefixCls:l,inlineCollapsed:c,theme:d}=a,h=nd();let g;if(!r)g=c&&!h.length&&o&&typeof o=="string"?u.createElement("div",{className:`${l}-inline-collapsed-noicon`},o.charAt(0)):u.createElement("span",{className:`${l}-title-content`},o);else{const v=u.isValidElement(o)&&o.type==="span";g=u.createElement(u.Fragment,null,Oo(r,{className:ne(u.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),v?o:u.createElement("span",{className:`${l}-title-content`},o))}const p=u.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]),[m]=hh("Menu");return u.createElement(Em.Provider,{value:p},u.createElement(Ov,Object.assign({},Qn(e,["icon"]),{title:g,popupClassName:ne(l,n,`${l}-${i||d}`),popupStyle:{zIndex:m}})))},BA=hQ;var gQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{if(t&&typeof t=="object"){const r=t,{label:o,children:i,key:a,type:l}=r,c=gQ(r,["label","children","key","type"]),d=a??`tmp-${n}`;return i||l==="group"?l==="group"?u.createElement(Tv,Object.assign({key:d},c,{title:o}),I1(i)):u.createElement(BA,Object.assign({key:d},c,{title:o}),I1(i)):l==="divider"?u.createElement(LA,Object.assign({key:d},c)):u.createElement(DA,Object.assign({key:d},c),o)}return null}).filter(t=>t)}function pQ(e){return u.useMemo(()=>e&&I1(e),[e])}var mQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{children:n}=e,r=mQ(e,["children"]),o=u.useContext(N1),i=u.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),a=i8(n),l=_s(t,a?n.ref:null);return u.createElement(N1.Provider,{value:i},u.createElement(Kf,null,a?u.cloneElement(n,{ref:l}):n))}),v$=N1,yQ=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${oe(i)} ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover, > ${t}-item-active, > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},bQ=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical, ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${oe(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${oe(n)})`}}}}},y$=e=>Object.assign({},fv(e)),b$=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:d,activeBarWidth:h,activeBarBorderWidth:g,motionDurationSlow:p,motionEaseInOut:m,motionEaseOut:v,itemPaddingInline:y,motionDurationMid:w,itemHoverColor:C,lineType:b,colorSplit:S,itemDisabledColor:E,dangerItemColor:O,dangerItemHoverColor:x,dangerItemSelectedColor:T,dangerItemActiveBg:R,dangerItemSelectedBg:N,popupBg:I,itemHoverBg:P,itemActiveBg:L,menuSubMenuBg:D,horizontalItemSelectedColor:z,horizontalItemSelectedBg:W,horizontalItemBorderRadius:B,horizontalItemHoverBg:M}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},y$(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},y$(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${E} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:C}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:P},"&:active":{backgroundColor:L}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:P},"&:active":{backgroundColor:L}}},[`${n}-item-danger`]:{color:O,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:x}},[`&${n}-item:active`]:{background:R}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:T},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:N}},[`&${n}-submenu > ${n}`]:{backgroundColor:D},[`&${n}-popup > ${n}`]:{backgroundColor:I},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:I},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:g,marginTop:e.calc(g).mul(-1).equal(),marginBottom:0,borderRadius:B,"&::after":{position:"absolute",insetInline:y,bottom:0,borderBottom:`${oe(d)} solid transparent`,transition:`border-color ${p} ${m}`,content:'""'},"&:hover, &-active, &-open":{background:M,"&::after":{borderBottomWidth:d,borderBottomColor:z}},"&-selected":{color:z,backgroundColor:W,"&:hover":{backgroundColor:W},"&::after":{borderBottomWidth:d,borderBottomColor:z}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${oe(g)} ${b} ${S}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${oe(h)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${w} ${v}`,`opacity ${w} ${v}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:T}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${w} ${m}`,`opacity ${w} ${m}`].join(",")}}}}}},S$=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:l,itemWidth:c}=e,d=e.calc(i).add(o).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:oe(n),paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:c},[`> ${t}-item, > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:oe(n)},[`${t}-item-group-list ${t}-submenu-title, ${t}-submenu-title`]:{paddingInlineEnd:d}}},SQ=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:l,motionEaseOut:c,paddingXL:d,itemMarginInline:h,fontSizeLG:g,motionDurationSlow:p,paddingXS:m,boxShadowSecondary:v,collapsedWidth:y,collapsedIconSize:w}=e,C={height:r,lineHeight:oe(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},S$(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},S$(e)),{boxShadow:v})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${oe(e.calc(a).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 ${p}`,`background ${p}`,`padding ${l} ${c}`].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`]:C,[`& ${t}-item-group-title`]:{paddingInlineStart:d}},[`${t}-item`]:C}},{[`${t}-inline-collapsed`]:{width:y,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:g,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% - ${oe(e.calc(g).div(2).equal())} - ${oe(h)})`,textOverflow:"clip",[` ${t}-submenu-arrow, ${t}-submenu-expand-icon `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:w,lineHeight:oe(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},gc),{paddingInline:m})}}]},C$=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:l,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},dv()),[`&${t}-item-only-child`]:{[`> ${a}, > ${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"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},w$=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${oe(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${oe(a)})`}}}}},CQ=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:c,colorSplit:d,lineWidth:h,zIndexPopup:g,borderRadiusLG:p,subMenuItemBorderRadius:m,menuArrowSize:v,menuArrowOffset:y,lineType:w,groupTitleLineHeight:C,groupTitleFontSize:b}=e;return[{"":{[`${n}`]:Object.assign(Object.assign({},ys()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},cr(e)),ys()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${oe(l)} ${oe(c)}`,fontSize:b,lineHeight:C,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:d,borderStyle:w,borderWidth:0,borderTopWidth:h,marginBlock:h,padding:0,"&-dashed":{borderStyle:"dashed"}}}),C$(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${oe(e.calc(r).mul(2).equal())} ${oe(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:g,borderRadius:p,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:p},C$(e)),w$(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:m},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})},"\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}}}),w$(e)),{[`&-inline-collapsed ${n}-submenu-arrow, &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${oe(y)})`},"&::after":{transform:`rotate(45deg) translateX(${oe(e.calc(y).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${oe(e.calc(v).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${oe(e.calc(y).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${oe(y)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},wQ=e=>{var t,n,r;const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:l,colorText:c,colorTextDescription:d,colorBgContainer:h,colorFillAlter:g,colorFillContent:p,lineWidth:m,lineWidthBold:v,controlItemBgActive:y,colorBgTextHover:w,controlHeightLG:C,lineHeight:b,colorBgElevated:S,marginXXS:E,padding:O,fontSize:x,controlHeightSM:T,fontSizeLG:R,colorTextLightSolid:N,colorErrorHover:I}=e,P=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,L=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:m,D=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,z=new Tr(N).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:d,groupTitleColor:d,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:h,itemBg:h,colorItemBgHover:w,itemHoverBg:w,colorItemBgActive:p,itemActiveBg:y,colorSubItemBg:g,subMenuItemBg:g,colorItemBgSelected:y,itemSelectedBg:y,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:P,colorActiveBarHeight:v,activeBarHeight:v,colorActiveBarBorderSize:m,activeBarBorderWidth:L,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:D,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:C,groupTitleLineHeight:b,collapsedWidth:C*2,popupBg:S,itemMarginBlock:E,itemPaddingInline:O,horizontalLineHeight:`${C*1.15}px`,iconSize:x,iconMarginInlineEnd:T-x,collapsedIconSize:R,groupTitleFontSize:x,darkItemDisabledColor:new Tr(N).setAlpha(.25).toRgbString(),darkItemColor:z,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:N,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:z,darkItemHoverColor:N,darkDangerItemHoverColor:I,darkDangerItemSelectedColor:N,darkDangerItemActiveBg:i,itemWidth:P?`calc(100% + ${L}px)`:`calc(100% - ${D*2}px)`}},_Q=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return Zn("Menu",o=>{const{colorBgElevated:i,controlHeightLG:a,fontSize:l,darkItemColor:c,darkDangerItemColor:d,darkItemBg:h,darkSubMenuItemBg:g,darkItemSelectedColor:p,darkItemSelectedBg:m,darkDangerItemSelectedBg:v,darkItemHoverBg:y,darkGroupTitleColor:w,darkItemHoverColor:C,darkItemDisabledColor:b,darkDangerItemHoverColor:S,darkDangerItemSelectedColor:E,darkDangerItemActiveBg:O,popupBg:x,darkPopupBg:T}=o,R=o.calc(l).div(7).mul(5).equal(),N=pn(o,{menuArrowSize:R,menuHorizontalHeight:o.calc(a).mul(1.15).equal(),menuArrowOffset:o.calc(R).mul(.25).equal(),menuSubMenuBg:i,calc:o.calc,popupBg:x}),I=pn(N,{itemColor:c,itemHoverColor:C,groupTitleColor:w,itemSelectedColor:p,itemBg:h,popupBg:T,subMenuItemBg:g,itemActiveBg:"transparent",itemSelectedBg:m,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:y,itemDisabledColor:b,dangerItemColor:d,dangerItemHoverColor:S,dangerItemSelectedColor:E,dangerItemActiveBg:O,dangerItemSelectedBg:v,menuSubMenuBg:g,horizontalItemSelectedColor:p,horizontalItemSelectedBg:m});return[CQ(N),yQ(N),SQ(N),b$(N,"light"),b$(I,"dark"),bQ(N),bw(N),bs(N,"slide-up"),bs(N,"slide-down"),Cv(N,"zoom-big")]},wQ,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t)};var EQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n;const r=u.useContext(v$),o=r||{},{getPrefixCls:i,getPopupContainer:a,direction:l,menu:c}=u.useContext(bt),d=i(),{prefixCls:h,className:g,style:p,theme:m="light",expandIcon:v,_internalDisableMenuItemTitleTooltip:y,inlineCollapsed:w,siderCollapsed:C,items:b,children:S,rootClassName:E,mode:O,selectable:x,onClick:T,overflowedIndicatorPopupClassName:R}=e,N=EQ(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),I=Qn(N,["collapsedWidth"]),P=pQ(b)||S;(n=o.validator)===null||n===void 0||n.call(o,{mode:O});const L=yr(function(){var Z;T==null||T.apply(void 0,arguments),(Z=o.onClick)===null||Z===void 0||Z.call(o)}),D=o.mode||O,z=x??o.selectable,W=u.useMemo(()=>C!==void 0?C:w,[w,C]),B={horizontal:{motionName:`${d}-slide-up`},inline:vm(d),other:{motionName:`${d}-zoom-big`}},M=i("menu",h||o.prefixCls),A=Yo(M),[U,j,G]=_Q(M,A,!r),X=ne(`${M}-${m}`,c==null?void 0:c.className,g),re=u.useMemo(()=>{var Z,he;if(typeof v=="function"||Yy(v))return v||null;if(typeof o.expandIcon=="function"||Yy(o.expandIcon))return o.expandIcon||null;if(typeof(c==null?void 0:c.expandIcon)=="function"||Yy(c==null?void 0:c.expandIcon))return(c==null?void 0:c.expandIcon)||null;const ge=(Z=v??(o==null?void 0:o.expandIcon))!==null&&Z!==void 0?Z:c==null?void 0:c.expandIcon;return Oo(ge,{className:ne(`${M}-submenu-expand-icon`,u.isValidElement(ge)?(he=ge.props)===null||he===void 0?void 0:he.className:void 0)})},[v,o==null?void 0:o.expandIcon,c==null?void 0:c.expandIcon,M]),te=u.useMemo(()=>({prefixCls:M,inlineCollapsed:W||!1,direction:l,firstLevel:!0,theme:m,mode:D,disableMenuItemTitleTooltip:y}),[M,W,l,y,m]);return U(u.createElement(v$.Provider,{value:null},u.createElement(Em.Provider,{value:te},u.createElement(rd,Object.assign({getPopupContainer:a,overflowedIndicator:u.createElement(jw,null),overflowedIndicatorPopupClassName:ne(M,`${M}-${m}`,R),mode:D,selectable:z,onClick:L},I,{inlineCollapsed:W,style:Object.assign(Object.assign({},c==null?void 0:c.style),p),className:X,prefixCls:M,direction:l,defaultMotions:B,expandIcon:re,ref:t,rootClassName:ne(E,j,o.rootClassName,G,A)}),P))))}),OQ=xQ,Ch=u.forwardRef((e,t)=>{const n=u.useRef(null),r=u.useContext($v);return u.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var i;(i=n.current)===null||i===void 0||i.focus(o)}})),u.createElement(OQ,Object.assign({ref:n},e,r))});Ch.Item=DA;Ch.SubMenu=BA;Ch.Divider=LA;Ch.ItemGroup=Tv;const FA=Ch,TQ=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},$Q=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:l,motionDurationMid:c,paddingBlock:d,fontSize:h,dropdownEdgeChildPadding:g,colorTextDisabled:p,fontSizeIcon:m,controlPaddingHorizontal:v,colorBgElevated:y}=e;return[{[t]:Object.assign(Object.assign({},cr(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${a}-btn`]:{[`& > ${l}-down, & > ${a}-btn-icon > ${l}-down`]:{fontSize:m}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${l}-down`]:{fontSize:m},[`${l}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft, &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft, &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom, &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom, &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight, &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Sw},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft, &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft, &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top, &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top, &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight, &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:ww},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft, &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom, &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Cw},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft, &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top, &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:_w}})},mA(e,y,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{[n]:Object.assign(Object.assign({padding:g,listStyleType:"none",backgroundColor:y,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},pc(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${oe(d)} ${oe(v)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:h,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${oe(d)} ${oe(v)}`,color:e.colorText,fontWeight:"normal",fontSize:h,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},pc(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:p,cursor:"not-allowed","&:hover":{color:p,backgroundColor:y,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${oe(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.colorTextDescription,fontSize:m,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${oe(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(v).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:p,backgroundColor:y,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[bs(e,"slide-up"),bs(e,"slide-down"),bm(e,"move-up"),bm(e,"move-down"),Cv(e,"zoom-big")]]},RQ=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Aw({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),gA(e)),IQ=Zn("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,i=pn(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[$Q(i),TQ(i)]},RQ),Hw=e=>{const{menu:t,arrow:n,prefixCls:r,children:o,trigger:i,disabled:a,dropdownRender:l,getPopupContainer:c,overlayClassName:d,rootClassName:h,overlayStyle:g,open:p,onOpenChange:m,visible:v,onVisibleChange:y,mouseEnterDelay:w=.15,mouseLeaveDelay:C=.1,autoAdjustOverflow:b=!0,placement:S="",overlay:E,transitionName:O}=e,{getPopupContainer:x,getPrefixCls:T,direction:R,dropdown:N}=u.useContext(bt);ch();const I=u.useMemo(()=>{const J=T();return O!==void 0?O:S.includes("top")?`${J}-slide-down`:`${J}-slide-up`},[T,S,O]),P=u.useMemo(()=>S?S.includes("Center")?S.slice(0,S.indexOf("Center")):S:R==="rtl"?"bottomRight":"bottomLeft",[S,R]),L=T("dropdown",r),D=Yo(L),[z,W,B]=IQ(L,D),[,M]=Dr(),A=u.Children.only(o),U=Oo(A,{className:ne(`${L}-trigger`,{[`${L}-rtl`]:R==="rtl"},A.props.className),disabled:a}),j=a?[]:i;let G;j&&j.includes("contextMenu")&&(G=!0);const[X,re]=Vr(!1,{value:p??v}),te=yr(J=>{m==null||m(J,{source:"trigger"}),y==null||y(J),re(J)}),Z=ne(d,h,W,B,D,N==null?void 0:N.className,{[`${L}-rtl`]:R==="rtl"}),he=vA({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:b,offset:M.marginXXS,arrowWidth:n?M.sizePopupArrow:0,borderRadius:M.borderRadius}),ge=u.useCallback(()=>{t!=null&&t.selectable&&(t!=null&&t.multiple)||(m==null||m(!1,{source:"menu"}),re(!1))},[t==null?void 0:t.selectable,t==null?void 0:t.multiple]),ce=()=>{let J;return t!=null&&t.items?J=u.createElement(FA,Object.assign({},t)):typeof E=="function"?J=E():J=E,l&&(J=l(J)),J=u.Children.only(typeof J=="string"?u.createElement("span",null,J):J),u.createElement(vQ,{prefixCls:`${L}-menu`,rootClassName:ne(B,D),expandIcon:u.createElement("span",{className:`${L}-menu-submenu-arrow`},u.createElement(_1,{className:`${L}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:ge,validator:ue=>{}},J)},[be,pe]=hh("Dropdown",g==null?void 0:g.zIndex);let ae=u.createElement(CA,Object.assign({alignPoint:G},Qn(e,["rootClassName"]),{mouseEnterDelay:w,mouseLeaveDelay:C,visible:X,builtinPlacements:he,arrow:!!n,overlayClassName:Z,prefixCls:L,getPopupContainer:c||x,transitionName:I,trigger:j,overlay:ce,placement:P,onVisibleChange:te,overlayStyle:Object.assign(Object.assign(Object.assign({},N==null?void 0:N.style),g),{zIndex:be})}),U);return be&&(ae=u.createElement(mv.Provider,{value:pe},ae)),z(ae)};function NQ(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const MQ=GP(Hw,"dropdown",e=>e,NQ),PQ=e=>u.createElement(MQ,Object.assign({},e),u.createElement("span",null));Hw._InternalPanelDoNotUseOrYouWillBeFired=PQ;const zA=Hw;function kA(e){return pn(e,{inputAffixPadding:e.paddingXXS})}const jA=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:c,paddingSM:d,controlPaddingHorizontalSM:h,controlPaddingHorizontal:g,colorFillAlter:p,colorPrimaryHover:m,colorPrimary:v,controlOutlineWidth:y,controlOutline:w,colorErrorOutline:C,colorWarningOutline:b,colorBgContainer:S}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((a-l*c)/2*10)/10-o,paddingInline:d-o,paddingInlineSM:h-o,paddingInlineLG:g-o,addonBg:p,activeBorderColor:v,hoverBorderColor:m,activeShadow:`0 0 0 ${y}px ${w}`,errorActiveShadow:`0 0 0 ${y}px ${C}`,warningActiveShadow:`0 0 0 ${y}px ${b}`,hoverBg:S,activeBg:S,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}},AQ=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Ww=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},AQ(pn(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),HA=(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}}),_$=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},HA(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),LQ=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},HA(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Ww(e))}),_$(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),_$(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),E$=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),DQ=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},E$(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),E$(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Ww(e))}})}),BQ=(e,t)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled}},t)}),WA=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),x$=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},WA(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),FQ=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},WA(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Ww(e))}),x$(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),x$(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),O$=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),zQ=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${oe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${oe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},O$(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),O$(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:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),kQ=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),UA=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${oe(t)} ${oe(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},VA=e=>({padding:`${oe(e.paddingBlockSM)} ${oe(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),KA=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${oe(e.paddingBlock)} ${oe(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},kQ(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},UA(e)),"&-sm":Object.assign({},VA(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),jQ=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},UA(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},VA(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${oe(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${oe(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${oe(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${oe(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${oe(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},ys()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` & > ${t}-affix-wrapper, & > ${t}-number-affix-wrapper, & > ${n}-picker-range `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector, & > ${n}-select-auto-complete ${t}, & > ${n}-cascader-picker ${t}, & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child, & > ${n}-select:first-child > ${n}-select-selector, & > ${n}-select-auto-complete:first-child ${t}, & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, & > ${n}-select:last-child > ${n}-select-selector, & > ${n}-cascader-picker:last-child ${t}, & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},HQ=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,a=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},cr(e)),KA(e)),LQ(e)),FQ(e)),BQ(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},WQ=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${oe(e.inputAffixPadding)}`}}}},UQ=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},KA(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),WQ(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}})}},VQ=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},cr(e)),jQ(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},DQ(e)),zQ(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}}})})}},KQ=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal({unit:!1})},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, > ${t}, ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},GQ=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${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}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},XQ=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Uw=Zn("Input",e=>{const t=pn(e,kA(e));return[HQ(t),GQ(t),UQ(t),VQ(t),KQ(t),XQ(t),fw(t)]},jA),YQ=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:i}=e,a=ne({[`${t}-lg`]:o==="large",[`${t}-sm`]:o==="small"}),l=ne({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),c=u.useMemo(()=>typeof o=="number"?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return u.createElement("span",{className:ne(t,a,l,n),style:Object.assign(Object.assign({},c),r)})},Rv=YQ,qQ=new en("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Iv=e=>({height:e,lineHeight:oe(e)}),Ru=e=>Object.assign({width:e},Iv(e)),QQ=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:qQ,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),qy=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Iv(e)),ZQ=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Ru(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Ru(o)),[`${t}${t}-sm`]:Object.assign({},Ru(i))}},JQ=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return{[`${r}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},qy(t,l)),[`${r}-lg`]:Object.assign({},qy(o,l)),[`${r}-sm`]:Object.assign({},qy(i,l))}},T$=e=>Object.assign({width:e},Iv(e)),eZ=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:i}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:o},T$(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},T$(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},Qy=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},Zy=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Iv(e)),tZ=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal()},Zy(r,l))},Qy(e,r,n)),{[`${n}-lg`]:Object.assign({},Zy(o,l))}),Qy(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},Zy(i,l))}),Qy(e,i,`${n}-sm`))},nZ=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:l,controlHeight:c,controlHeightLG:d,controlHeightSM:h,gradientFromColor:g,padding:p,marginSM:m,borderRadius:v,titleHeight:y,blockRadius:w,paragraphLiHeight:C,controlHeightXS:b,paragraphMarginTop:S}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:g},Ru(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Ru(d)),[`${n}-sm`]:Object.assign({},Ru(h))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${r}`]:{width:"100%",height:y,background:g,borderRadius:w,[`+ ${o}`]:{marginBlockStart:h}},[`${o}`]:{padding:0,"> li":{width:"100%",height:C,listStyle:"none",background:g,borderRadius:w,"+ li":{marginBlockStart:b}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:v}}},[`${t}-with-avatar ${t}-content`]:{[`${r}`]:{marginBlockStart:m,[`+ ${o}`]:{marginBlockStart:S}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},tZ(e)),ZQ(e)),JQ(e)),eZ(e)),[`${t}${t}-block`]:{width:"100%",[`${i}`]:{width:"100%"},[`${a}`]:{width:"100%"}},[`${t}${t}-active`]:{[` ${r}, ${o} > li, ${n}, ${i}, ${a}, ${l} `]:Object.assign({},QQ(e))}}},rZ=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,o=n;return{color:r,colorGradientEnd:o,gradientFromColor:r,gradientToColor:o,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},od=Zn("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=pn(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[nZ(r)]},rZ,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),oZ=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:i="circle",size:a="default"}=e,{getPrefixCls:l}=u.useContext(bt),c=l("skeleton",t),[d,h,g]=od(c),p=Qn(e,["prefixCls","className"]),m=ne(c,`${c}-element`,{[`${c}-active`]:o},n,r,h,g);return d(u.createElement("div",{className:m},u.createElement(Rv,Object.assign({prefixCls:`${c}-avatar`,shape:i,size:a},p))))},iZ=oZ,aZ=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i=!1,size:a="default"}=e,{getPrefixCls:l}=u.useContext(bt),c=l("skeleton",t),[d,h,g]=od(c),p=Qn(e,["prefixCls"]),m=ne(c,`${c}-element`,{[`${c}-active`]:o,[`${c}-block`]:i},n,r,h,g);return d(u.createElement("div",{className:m},u.createElement(Rv,Object.assign({prefixCls:`${c}-button`,size:a},p))))},lZ=aZ,sZ="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",cZ=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i}=e,{getPrefixCls:a}=u.useContext(bt),l=a("skeleton",t),[c,d,h]=od(l),g=ne(l,`${l}-element`,{[`${l}-active`]:i},n,r,d,h);return c(u.createElement("div",{className:g},u.createElement("div",{className:ne(`${l}-image`,n),style:o},u.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},u.createElement("path",{d:sZ,className:`${l}-image-path`})))))},uZ=cZ,dZ=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i,size:a="default"}=e,{getPrefixCls:l}=u.useContext(bt),c=l("skeleton",t),[d,h,g]=od(c),p=Qn(e,["prefixCls"]),m=ne(c,`${c}-element`,{[`${c}-active`]:o,[`${c}-block`]:i},n,r,h,g);return d(u.createElement("div",{className:m},u.createElement(Rv,Object.assign({prefixCls:`${c}-input`,size:a},p))))},fZ=dZ;var hZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"};const gZ=hZ;var pZ=function(t,n){return u.createElement(Sn,De({},t,{ref:n,icon:gZ}))},mZ=u.forwardRef(pZ);const vZ=mZ,yZ=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i,children:a}=e,{getPrefixCls:l}=u.useContext(bt),c=l("skeleton",t),[d,h,g]=od(c),p=ne(c,`${c}-element`,{[`${c}-active`]:i},h,n,r,g),m=a??u.createElement(vZ,null);return d(u.createElement("div",{className:p},u.createElement("div",{className:ne(`${c}-image`,n),style:o},m)))},bZ=yZ,SZ=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},CZ=e=>{const{prefixCls:t,className:n,style:r,rows:o}=e,i=Be(Array(o)).map((a,l)=>u.createElement("li",{key:l,style:{width:SZ(l,e)}}));return u.createElement("ul",{className:ne(t,n),style:r},i)},wZ=CZ,_Z=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return u.createElement("h3",{className:ne(t,n),style:Object.assign({width:r},o)})},EZ=_Z;function Jy(e){return e&&typeof e=="object"?e:{}}function xZ(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function OZ(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function TZ(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const id=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:i,children:a,avatar:l=!1,title:c=!0,paragraph:d=!0,active:h,round:g}=e,{getPrefixCls:p,direction:m,skeleton:v}=u.useContext(bt),y=p("skeleton",t),[w,C,b]=od(y);if(n||!("loading"in e)){const S=!!l,E=!!c,O=!!d;let x;if(S){const N=Object.assign(Object.assign({prefixCls:`${y}-avatar`},xZ(E,O)),Jy(l));x=u.createElement("div",{className:`${y}-header`},u.createElement(Rv,Object.assign({},N)))}let T;if(E||O){let N;if(E){const P=Object.assign(Object.assign({prefixCls:`${y}-title`},OZ(S,O)),Jy(c));N=u.createElement(EZ,Object.assign({},P))}let I;if(O){const P=Object.assign(Object.assign({prefixCls:`${y}-paragraph`},TZ(S,E)),Jy(d));I=u.createElement(wZ,Object.assign({},P))}T=u.createElement("div",{className:`${y}-content`},N,I)}const R=ne(y,{[`${y}-with-avatar`]:S,[`${y}-active`]:h,[`${y}-rtl`]:m==="rtl",[`${y}-round`]:g},v==null?void 0:v.className,r,o,C,b);return w(u.createElement("div",{className:R,style:Object.assign(Object.assign({},v==null?void 0:v.style),i)},x,T))}return a??null};id.Button=lZ;id.Avatar=iZ;id.Input=fZ;id.Image=uZ;id.Node=bZ;const $Z=id;var RZ={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"};const IZ=RZ;var NZ=function(t,n){return u.createElement(Sn,De({},t,{ref:n,icon:IZ}))},MZ=u.forwardRef(NZ);const PZ=MZ,Nv=u.createContext(null);var AZ=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,i=t.indicator,a=i===void 0?{}:i,l=a.size,c=a.align,d=c===void 0?"center":c,h=u.useState(),g=de(h,2),p=g[0],m=g[1],v=u.useRef(),y=se.useCallback(function(C){return typeof l=="function"?l(C):typeof l=="number"?l:C},[l]);function w(){bn.cancel(v.current)}return u.useEffect(function(){var C={};if(n)if(r){C.width=y(n.width);var b=o?"right":"left";d==="start"&&(C[b]=n[b]),d==="center"&&(C[b]=n[b]+n.width/2,C.transform=o?"translateX(50%)":"translateX(-50%)"),d==="end"&&(C[b]=n[b]+n.width,C.transform="translateX(-100%)")}else C.height=y(n.height),d==="start"&&(C.top=n.top),d==="center"&&(C.top=n.top+n.height/2,C.transform="translateY(-50%)"),d==="end"&&(C.top=n.top+n.height,C.transform="translateY(-100%)");return w(),v.current=bn(function(){m(C)}),w},[n,r,o,d,y]),{style:p}},$$={width:0,height:0,left:0,top:0};function LZ(e,t,n){return u.useMemo(function(){for(var r,o=new Map,i=t.get((r=e[0])===null||r===void 0?void 0:r.key)||$$,a=i.left+i.width,l=0;lz?(L=I,x.current="x"):(L=P,x.current="y"),t(-L,-L)&&N.preventDefault()}var R=u.useRef(null);R.current={onTouchStart:S,onTouchMove:E,onTouchEnd:O,onWheel:T},u.useEffect(function(){function N(D){R.current.onTouchStart(D)}function I(D){R.current.onTouchMove(D)}function P(D){R.current.onTouchEnd(D)}function L(D){R.current.onWheel(D)}return document.addEventListener("touchmove",I,{passive:!1}),document.addEventListener("touchend",P,{passive:!1}),e.current.addEventListener("touchstart",N,{passive:!1}),e.current.addEventListener("wheel",L),function(){document.removeEventListener("touchmove",I),document.removeEventListener("touchend",P)}},[])}function GA(e){var t=u.useState(0),n=de(t,2),r=n[0],o=n[1],i=u.useRef(0),a=u.useRef();return a.current=e,kS(function(){var l;(l=a.current)===null||l===void 0||l.call(a)},[r]),function(){i.current===r&&(i.current+=1,o(i.current))}}function FZ(e){var t=u.useRef([]),n=u.useState({}),r=de(n,2),o=r[1],i=u.useRef(typeof e=="function"?e():e),a=GA(function(){var c=i.current;t.current.forEach(function(d){c=d(c)}),t.current=[],i.current=c,o({})});function l(c){t.current.push(c),a()}return[i.current,l]}var M$={width:0,height:0,left:0,top:0,right:0};function zZ(e,t,n,r,o,i,a){var l=a.tabs,c=a.tabPosition,d=a.rtl,h,g,p;return["top","bottom"].includes(c)?(h="width",g=d?"right":"left",p=Math.abs(n)):(h="height",g="top",p=-n),u.useMemo(function(){if(!l.length)return[0,0];for(var m=l.length,v=m,y=0;yp+t){v=y-1;break}}for(var C=0,b=m-1;b>=0;b-=1){var S=e.get(l[b].key)||M$;if(S[g]=v?[0,0]:[C,v]},[e,t,r,o,i,p,c,l.map(function(m){return m.key}).join("_"),d])}function P$(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var kZ="TABS_DQ";function XA(e){return String(e).replace(/"/g,kZ)}function YA(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var qA=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return!r||r.showAdd===!1?null:u.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(l){r.onEdit("add",{event:l})}},r.addIcon||"+")}),A$=u.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var i,a={};return Pt(o)==="object"&&!u.isValidElement(o)?a=o:a.right=o,n==="right"&&(i=a.right),n==="left"&&(i=a.left),i?u.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},i):null}),jZ=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,i=e.locale,a=e.mobile,l=e.moreIcon,c=l===void 0?"More":l,d=e.moreTransitionName,h=e.style,g=e.className,p=e.editable,m=e.tabBarGutter,v=e.rtl,y=e.removeAriaLabel,w=e.onTabClick,C=e.getPopupContainer,b=e.popupClassName,S=u.useState(!1),E=de(S,2),O=E[0],x=E[1],T=u.useState(null),R=de(T,2),N=R[0],I=R[1],P="".concat(r,"-more-popup"),L="".concat(n,"-dropdown"),D=N!==null?"".concat(P,"-").concat(N):null,z=i==null?void 0:i.dropdownAriaLabel;function W(X,re){X.preventDefault(),X.stopPropagation(),p.onEdit("remove",{key:re,event:X})}var B=u.createElement(rd,{onClick:function(re){var te=re.key,Z=re.domEvent;w(te,Z),x(!1)},prefixCls:"".concat(L,"-menu"),id:P,tabIndex:-1,role:"listbox","aria-activedescendant":D,selectedKeys:[N],"aria-label":z!==void 0?z:"expanded dropdown"},o.map(function(X){var re=X.closable,te=X.disabled,Z=X.closeIcon,he=X.key,ge=X.label,ce=YA(re,Z,p,te);return u.createElement(Sh,{key:he,id:"".concat(P,"-").concat(he),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(he),disabled:te},u.createElement("span",null,ge),ce&&u.createElement("button",{type:"button","aria-label":y||"remove",tabIndex:0,className:"".concat(L,"-menu-item-remove"),onClick:function(pe){pe.stopPropagation(),W(pe,he)}},Z||p.removeIcon||"×"))}));function M(X){for(var re=o.filter(function(ce){return!ce.disabled}),te=re.findIndex(function(ce){return ce.key===N})||0,Z=re.length,he=0;heZe?"left":"right"})}),D=de(L,2),z=D[0],W=D[1],B=R$(0,function(Nt,Ze){!P&&y&&y({direction:Nt>Ze?"top":"bottom"})}),M=de(B,2),A=M[0],U=M[1],j=u.useState([0,0]),G=de(j,2),X=G[0],re=G[1],te=u.useState([0,0]),Z=de(te,2),he=Z[0],ge=Z[1],ce=u.useState([0,0]),be=de(ce,2),pe=be[0],ae=be[1],J=u.useState([0,0]),ue=de(J,2),ie=ue[0],Ce=ue[1],Oe=FZ(new Map),Te=de(Oe,2),Me=Te[0],me=Te[1],ve=LZ(S,Me,he[0]),xe=Jg(X,P),Ae=Jg(he,P),Pe=Jg(pe,P),Fe=Jg(ie,P),Ee=xeUe?Ue:Nt}var We=u.useRef(null),Ke=u.useState(),Et=de(Ke,2),ht=Et[0],At=Et[1];function Kt(){At(Date.now())}function He(){We.current&&clearTimeout(We.current)}BZ(T,function(Nt,Ze){function Ft(Je,st){Je(function(St){var Gt=Ve(St+st);return Gt})}return Ee?(P?Ft(W,Nt):Ft(U,Ze),He(),Kt(),!0):!1}),u.useEffect(function(){return He(),ht&&(We.current=setTimeout(function(){At(0)},100)),He},[ht]);var Qe=zZ(ve,Ie,P?z:A,Ae,Pe,Fe,Q(Q({},e),{},{tabs:S})),It=de(Qe,2),Ht=It[0],sn=It[1],vn=yr(function(){var Nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a,Ze=ve.get(Nt)||{width:0,height:0,left:0,right:0,top:0};if(P){var Ft=z;l?Ze.rightz+Ie&&(Ft=Ze.right+Ze.width-Ie):Ze.left<-z?Ft=-Ze.left:Ze.left+Ze.width>-z+Ie&&(Ft=-(Ze.left+Ze.width-Ie)),U(0),W(Ve(Ft))}else{var Je=A;Ze.top<-A?Je=-Ze.top:Ze.top+Ze.height>-A+Ie&&(Je=-(Ze.top+Ze.height-Ie)),W(0),U(Ve(Je))}}),Vt={};g==="top"||g==="bottom"?Vt[l?"marginRight":"marginLeft"]=p:Vt.marginTop=p;var Lt=S.map(function(Nt,Ze){var Ft=Nt.key;return u.createElement(WZ,{id:o,prefixCls:b,key:Ft,tab:Nt,style:Ze===0?void 0:Vt,closable:Nt.closable,editable:d,active:Ft===a,renderWrapper:m,removeAriaLabel:h==null?void 0:h.removeAriaLabel,onClick:function(st){v(Ft,st)},onFocus:function(){vn(Ft),Kt(),T.current&&(l||(T.current.scrollLeft=0),T.current.scrollTop=0)}})}),rt=function(){return me(function(){var Ze,Ft=new Map,Je=(Ze=R.current)===null||Ze===void 0?void 0:Ze.getBoundingClientRect();return S.forEach(function(st){var St,Gt=st.key,cn=(St=R.current)===null||St===void 0?void 0:St.querySelector('[data-node-key="'.concat(XA(Gt),'"]'));if(cn){var ur=UZ(cn,Je),Tt=de(ur,4),dr=Tt[0],qr=Tt[1],fr=Tt[2],tr=Tt[3];Ft.set(Gt,{width:dr,height:qr,left:fr,top:tr})}}),Ft})};u.useEffect(function(){rt()},[S.map(function(Nt){return Nt.key}).join("_")]);var xt=GA(function(){var Nt=Jc(E),Ze=Jc(O),Ft=Jc(x);re([Nt[0]-Ze[0]-Ft[0],Nt[1]-Ze[1]-Ft[1]]);var Je=Jc(I);ae(Je);var st=Jc(N);Ce(st);var St=Jc(R);ge([St[0]-Je[0],St[1]-Je[1]]),rt()}),at=S.slice(0,Ht),Xe=S.slice(sn+1),mt=[].concat(Be(at),Be(Xe)),Bt=ve.get(a),Ye=AZ({activeTabOffset:Bt,horizontal:P,indicator:w,rtl:l}),lt=Ye.style;u.useEffect(function(){vn()},[a,Le,Ue,P$(Bt),P$(ve),P]),u.useEffect(function(){xt()},[l]);var et=!!mt.length,gt="".concat(b,"-nav-wrap"),_t,vt,_n,mn;return P?l?(vt=z>0,_t=z!==Ue):(_t=z<0,vt=z!==Le):(_n=A<0,mn=A!==Le),u.createElement(Hi,{onResize:xt},u.createElement("div",{ref:_s(t,E),role:"tablist",className:ne("".concat(b,"-nav"),n),style:r,onKeyDown:function(){Kt()}},u.createElement(A$,{ref:O,position:"left",extra:c,prefixCls:b}),u.createElement(Hi,{onResize:xt},u.createElement("div",{className:ne(gt,K(K(K(K({},"".concat(gt,"-ping-left"),_t),"".concat(gt,"-ping-right"),vt),"".concat(gt,"-ping-top"),_n),"".concat(gt,"-ping-bottom"),mn)),ref:T},u.createElement(Hi,{onResize:xt},u.createElement("div",{ref:R,className:"".concat(b,"-nav-list"),style:{transform:"translate(".concat(z,"px, ").concat(A,"px)"),transition:ht?"none":void 0}},Lt,u.createElement(qA,{ref:I,prefixCls:b,locale:h,editable:d,style:Q(Q({},Lt.length===0?void 0:Vt),{},{visibility:et?"hidden":null})}),u.createElement("div",{className:ne("".concat(b,"-ink-bar"),K({},"".concat(b,"-ink-bar-animated"),i.inkBar)),style:lt}))))),u.createElement(HZ,De({},e,{removeAriaLabel:h==null?void 0:h.removeAriaLabel,ref:N,prefixCls:b,tabs:mt,className:!et&&je,tabMoving:!!ht})),u.createElement(A$,{ref:x,position:"right",extra:c,prefixCls:b})))}),QA=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,a=e.active,l=e.tabKey,c=e.children;return u.createElement("div",{id:i&&"".concat(i,"-panel-").concat(l),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(l),"aria-hidden":!a,style:o,className:ne(n,a&&"".concat(n,"-active"),r),ref:t},c)}),VZ=["renderTabBar"],KZ=["label","key"],GZ=function(t){var n=t.renderTabBar,r=Mt(t,VZ),o=u.useContext(Nv),i=o.tabs;if(n){var a=Q(Q({},r),{},{panes:i.map(function(l){var c=l.label,d=l.key,h=Mt(l,KZ);return u.createElement(QA,De({tab:c,key:d,tabKey:d},h))})});return n(a,L$)}return u.createElement(L$,r)},XZ=["key","forceRender","style","className","destroyInactiveTabPane"],YZ=function(t){var n=t.id,r=t.activeKey,o=t.animated,i=t.tabPosition,a=t.destroyInactiveTabPane,l=u.useContext(Nv),c=l.prefixCls,d=l.tabs,h=o.tabPane,g="".concat(c,"-tabpane");return u.createElement("div",{className:ne("".concat(c,"-content-holder"))},u.createElement("div",{className:ne("".concat(c,"-content"),"".concat(c,"-content-").concat(i),K({},"".concat(c,"-content-animated"),h))},d.map(function(p){var m=p.key,v=p.forceRender,y=p.style,w=p.className,C=p.destroyInactiveTabPane,b=Mt(p,XZ),S=m===r;return u.createElement(Sa,De({key:m,visible:S,forceRender:v,removeOnLeave:!!(a||C),leavedClassName:"".concat(g,"-hidden")},o.tabPaneMotion),function(E,O){var x=E.style,T=E.className;return u.createElement(QA,De({},b,{prefixCls:g,id:n,tabKey:m,animated:h,active:S,style:Q(Q({},y),x),className:ne(w,T),ref:O}))})})))};function qZ(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=Q({inkBar:!0},Pt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var QZ=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],D$=0,ZZ=u.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-tabs":r,i=e.className,a=e.items,l=e.direction,c=e.activeKey,d=e.defaultActiveKey,h=e.editable,g=e.animated,p=e.tabPosition,m=p===void 0?"top":p,v=e.tabBarGutter,y=e.tabBarStyle,w=e.tabBarExtraContent,C=e.locale,b=e.moreIcon,S=e.moreTransitionName,E=e.destroyInactiveTabPane,O=e.renderTabBar,x=e.onChange,T=e.onTabClick,R=e.onTabScroll,N=e.getPopupContainer,I=e.popupClassName,P=e.indicator,L=Mt(e,QZ),D=u.useMemo(function(){return(a||[]).filter(function(Ce){return Ce&&Pt(Ce)==="object"&&"key"in Ce})},[a]),z=l==="rtl",W=qZ(g),B=u.useState(!1),M=de(B,2),A=M[0],U=M[1];u.useEffect(function(){U(Ow())},[]);var j=Vr(function(){var Ce;return(Ce=D[0])===null||Ce===void 0?void 0:Ce.key},{value:c,defaultValue:d}),G=de(j,2),X=G[0],re=G[1],te=u.useState(function(){return D.findIndex(function(Ce){return Ce.key===X})}),Z=de(te,2),he=Z[0],ge=Z[1];u.useEffect(function(){var Ce=D.findIndex(function(Te){return Te.key===X});if(Ce===-1){var Oe;Ce=Math.max(0,Math.min(he,D.length-1)),re((Oe=D[Ce])===null||Oe===void 0?void 0:Oe.key)}ge(Ce)},[D.map(function(Ce){return Ce.key}).join("_"),X,he]);var ce=Vr(null,{value:n}),be=de(ce,2),pe=be[0],ae=be[1];u.useEffect(function(){n||(ae("rc-tabs-".concat(D$)),D$+=1)},[]);function J(Ce,Oe){T==null||T(Ce,Oe);var Te=Ce!==X;re(Ce),Te&&(x==null||x(Ce))}var ue={id:pe,activeKey:X,animated:W,tabPosition:m,rtl:z,mobile:A},ie=Q(Q({},ue),{},{editable:h,locale:C,moreIcon:b,moreTransitionName:S,tabBarGutter:v,onTabClick:J,onTabScroll:R,extra:w,style:y,panes:null,getPopupContainer:N,popupClassName:I,indicator:P});return u.createElement(Nv.Provider,{value:{tabs:D,prefixCls:o}},u.createElement("div",De({ref:t,id:n,className:ne(o,"".concat(o,"-").concat(m),K(K(K({},"".concat(o,"-mobile"),A),"".concat(o,"-editable"),h),"".concat(o,"-rtl"),z),i)},L),u.createElement(GZ,De({},ie,{renderTabBar:O})),u.createElement(YZ,De({destroyInactiveTabPane:E},ue,{animated:W}))))});const JZ={motionAppear:!1,motionEnter:!0,motionLeave:!0};function eJ(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},JZ),{motionName:mc(e,"switch")})),n}var tJ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);ot)}function rJ(e,t){if(e)return e;const n=xo(t).map(r=>{if(u.isValidElement(r)){const{key:o,props:i}=r,a=i||{},{tab:l}=a,c=tJ(a,["tab"]);return Object.assign(Object.assign({key:String(o)},c),{label:l})}return null});return nJ(n)}const oJ=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[bs(e,"slide-up"),bs(e,"slide-down")]]},iJ=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${oe(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:oe(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:oe(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${oe(e.borderRadiusLG)} 0 0 ${oe(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 ${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},aJ=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},cr(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:`${oe(r)} 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":Object.assign(Object.assign({},gc),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${oe(e.paddingXXS)} ${oe(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.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},lJ=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${oe(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, right ${e.motionDurationSlow}`}},[`${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:n,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:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${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 ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${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:oe(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${oe(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:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},sJ=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${oe(e.borderRadius)} ${oe(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${oe(e.borderRadius)} ${oe(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${oe(e.borderRadius)} ${oe(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${oe(e.borderRadius)} 0 0 ${oe(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},cJ=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:c}=e,d=`${t}-tab`;return{[d]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},pc(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${d}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${d}-active ${d}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${d}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${d}-disabled ${d}-btn, &${d}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${d}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${d} + ${d}`]:{margin:{_skip_check_:!0,value:i}}}},uJ=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:oe(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:oe(e.marginXS)},marginLeft:{_skip_check_:!0,value:oe(i(e.marginXXS).mul(-1).equal())},[r]:{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:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},dJ=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},cr(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:n,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`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${oe(e.paddingXS)}`,background:"transparent",border:`${oe(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},pc(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),cJ(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},fJ=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}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}},hJ=Zn("Tabs",e=>{const t=pn(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${oe(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${oe(e.horizontalItemGutter)}`});return[sJ(t),uJ(t),lJ(t),aJ(t),iJ(t),dJ(t),oJ(t)]},fJ),gJ=()=>null,pJ=gJ;var mJ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var t,n,r,o,i,a,l,c;const{type:d,className:h,rootClassName:g,size:p,onEdit:m,hideAdd:v,centered:y,addIcon:w,removeIcon:C,moreIcon:b,popupClassName:S,children:E,items:O,animated:x,style:T,indicatorSize:R,indicator:N}=e,I=mJ(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:P}=I,{direction:L,tabs:D,getPrefixCls:z,getPopupContainer:W}=u.useContext(bt),B=z("tabs",P),M=Yo(B),[A,U,j]=hJ(B,M);let G;d==="editable-card"&&(G={onEdit:(ce,be)=>{let{key:pe,event:ae}=be;m==null||m(ce==="add"?ae:pe,ce)},removeIcon:(t=C??(D==null?void 0:D.removeIcon))!==null&&t!==void 0?t:u.createElement(Zu,null),addIcon:(w??(D==null?void 0:D.addIcon))||u.createElement(PZ,null),showAdd:v!==!0});const X=z(),re=ka(p),te=rJ(O,E),Z=eJ(B,x),he=Object.assign(Object.assign({},D==null?void 0:D.style),T),ge={align:(n=N==null?void 0:N.align)!==null&&n!==void 0?n:(r=D==null?void 0:D.indicator)===null||r===void 0?void 0:r.align,size:(l=(i=(o=N==null?void 0:N.size)!==null&&o!==void 0?o:R)!==null&&i!==void 0?i:(a=D==null?void 0:D.indicator)===null||a===void 0?void 0:a.size)!==null&&l!==void 0?l:D==null?void 0:D.indicatorSize};return A(u.createElement(ZZ,Object.assign({direction:L,getPopupContainer:W,moreTransitionName:`${X}-slide-up`},I,{items:te,className:ne({[`${B}-${re}`]:re,[`${B}-card`]:["card","editable-card"].includes(d),[`${B}-editable-card`]:d==="editable-card",[`${B}-centered`]:y},D==null?void 0:D.className,h,g,U,j,M),popupClassName:ne(S,U,j,M),style:he,editable:G,moreIcon:(c=b??(D==null?void 0:D.moreIcon))!==null&&c!==void 0?c:u.createElement(jw,null),prefixCls:B,animated:Z,indicator:ge})))};ZA.TabPane=pJ;const vJ=ZA;var yJ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var{prefixCls:t,className:n,hoverable:r=!0}=e,o=yJ(e,["prefixCls","className","hoverable"]);const{getPrefixCls:i}=u.useContext(bt),a=i("card",t),l=ne(`${a}-grid`,n,{[`${a}-grid-hoverable`]:r});return u.createElement("div",Object.assign({},o,{className:l}))},JA=bJ,SJ=e=>{const{antCls:t,componentCls:n,headerHeight:r,cardPaddingBase:o,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${oe(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)} 0 0`},ys()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},gc),{[` > ${n}-typography, > ${n}-typography-edit-content `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},CJ=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` ${oe(o)} 0 0 0 ${n}, 0 ${oe(o)} 0 0 ${n}, ${oe(o)} ${oe(o)} 0 0 ${n}, ${oe(o)} 0 0 0 ${n} inset, 0 ${oe(o)} 0 0 ${n} inset; `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},wJ=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:i,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${oe(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)}`},ys()),{"& > li":{margin:r,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), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:oe(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:oe(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${oe(e.lineWidth)} ${e.lineType} ${i}`}}})},_J=e=>Object.assign(Object.assign({margin:`${oe(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},ys()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},gc),"&-description":{color:e.colorTextDescription}}),EJ=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${oe(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${oe(e.padding)} ${oe(n)}`}}},xJ=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},OJ=e=>{const{antCls:t,componentCls:n,cardShadow:r,cardHeadPadding:o,colorBorderSecondary:i,boxShadowTertiary:a,cardPaddingBase:l,extraColor:c}=e;return{[n]:Object.assign(Object.assign({},cr(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${n}-bordered)`]:{boxShadow:a},[`${n}-head`]:SJ(e),[`${n}-extra`]:{marginInlineStart:"auto",color:c,fontWeight:"normal",fontSize:e.fontSize},[`${n}-body`]:Object.assign({padding:l,borderRadius:` 0 0 ${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)}`},ys()),[`${n}-grid`]:CJ(e),[`${n}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${t}-image-mask`]:{borderRadius:`${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)} 0 0`}},[`${n}-actions`]:wJ(e),[`${n}-meta`]:_J(e)}),[`${n}-bordered`]:{border:`${oe(e.lineWidth)} ${e.lineType} ${i}`,[`${n}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${n}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:r}},[`${n}-contain-grid`]:{borderRadius:`${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)} 0 0 `,[`${n}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${n}-loading) ${n}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${n}-contain-tabs`]:{[`> ${n}-head`]:{minHeight:0,[`${n}-head-title, ${n}-extra`]:{paddingTop:o}}},[`${n}-type-inner`]:EJ(e),[`${n}-loading`]:xJ(e),[`${n}-rtl`]:{direction:"rtl"}}},TJ=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${oe(n)}`,fontSize:o,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},$J=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}),RJ=Zn("Card",e=>{const t=pn(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[OJ(t),TJ(t)]},$J);var B$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return u.createElement("ul",{className:t,style:r},n.map((o,i)=>{const a=`action-${i}`;return u.createElement("li",{style:{width:`${100/n.length}%`},key:a},u.createElement("span",null,o))}))},NJ=u.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,extra:a,headStyle:l={},bodyStyle:c={},title:d,loading:h,bordered:g=!0,size:p,type:m,cover:v,actions:y,tabList:w,children:C,activeTabKey:b,defaultActiveTabKey:S,tabBarExtraContent:E,hoverable:O,tabProps:x={},classNames:T,styles:R}=e,N=B$(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:I,direction:P,card:L}=u.useContext(bt),D=Me=>{var me;(me=e.onTabChange)===null||me===void 0||me.call(e,Me)},z=Me=>{var me;return ne((me=L==null?void 0:L.classNames)===null||me===void 0?void 0:me[Me],T==null?void 0:T[Me])},W=Me=>{var me;return Object.assign(Object.assign({},(me=L==null?void 0:L.styles)===null||me===void 0?void 0:me[Me]),R==null?void 0:R[Me])},B=u.useMemo(()=>{let Me=!1;return u.Children.forEach(C,me=>{me&&me.type&&me.type===JA&&(Me=!0)}),Me},[C]),M=I("card",n),[A,U,j]=RJ(M),G=u.createElement($Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},C),X=b!==void 0,re=Object.assign(Object.assign({},x),{[X?"activeKey":"defaultActiveKey"]:X?b:S,tabBarExtraContent:E});let te;const Z=ka(p),he=!Z||Z==="default"?"large":Z,ge=w?u.createElement(vJ,Object.assign({size:he},re,{className:`${M}-head-tabs`,onChange:D,items:w.map(Me=>{var{tab:me}=Me,ve=B$(Me,["tab"]);return Object.assign({label:me},ve)})})):null;if(d||a||ge){const Me=ne(`${M}-head`,z("header")),me=ne(`${M}-head-title`,z("title")),ve=ne(`${M}-extra`,z("extra")),xe=Object.assign(Object.assign({},l),W("header"));te=u.createElement("div",{className:Me,style:xe},u.createElement("div",{className:`${M}-head-wrapper`},d&&u.createElement("div",{className:me,style:W("title")},d),a&&u.createElement("div",{className:ve,style:W("extra")},a)),ge)}const ce=ne(`${M}-cover`,z("cover")),be=v?u.createElement("div",{className:ce,style:W("cover")},v):null,pe=ne(`${M}-body`,z("body")),ae=Object.assign(Object.assign({},c),W("body")),J=u.createElement("div",{className:pe,style:ae},h?G:C),ue=ne(`${M}-actions`,z("actions")),ie=y&&y.length?u.createElement(IJ,{actionClasses:ue,actionStyle:W("actions"),actions:y}):null,Ce=Qn(N,["onTabChange"]),Oe=ne(M,L==null?void 0:L.className,{[`${M}-loading`]:h,[`${M}-bordered`]:g,[`${M}-hoverable`]:O,[`${M}-contain-grid`]:B,[`${M}-contain-tabs`]:w&&w.length,[`${M}-${Z}`]:Z,[`${M}-type-${m}`]:!!m,[`${M}-rtl`]:P==="rtl"},r,o,U,j),Te=Object.assign(Object.assign({},L==null?void 0:L.style),i);return A(u.createElement("div",Object.assign({ref:t},Ce,{className:Oe,style:Te}),te,be,J,ie))}),MJ=NJ;var PJ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:n,avatar:r,title:o,description:i}=e,a=PJ(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:l}=u.useContext(bt),c=l("card",t),d=ne(`${c}-meta`,n),h=r?u.createElement("div",{className:`${c}-meta-avatar`},r):null,g=o?u.createElement("div",{className:`${c}-meta-title`},o):null,p=i?u.createElement("div",{className:`${c}-meta-description`},i):null,m=g||p?u.createElement("div",{className:`${c}-meta-detail`},g,p):null;return u.createElement("div",Object.assign({},a,{className:d}),h,m)},LJ=AJ,Vw=MJ;Vw.Grid=JA;Vw.Meta=LJ;const DJ=Vw;function BJ(e,t,n){var r=n||{},o=r.noTrailing,i=o===void 0?!1:o,a=r.noLeading,l=a===void 0?!1:a,c=r.debounceMode,d=c===void 0?void 0:c,h,g=!1,p=0;function m(){h&&clearTimeout(h)}function v(w){var C=w||{},b=C.upcomingOnly,S=b===void 0?!1:b;m(),g=!S}function y(){for(var w=arguments.length,C=new Array(w),b=0;be?l?(p=Date.now(),i||(h=setTimeout(d?x:O,e))):O():i!==!0&&(h=setTimeout(d?x:O,d===void 0?e-E:e))}return y.cancel=v,y}function FJ(e,t,n){var r=n||{},o=r.atBegin,i=o===void 0?!1:o;return BJ(e,t,{debounceMode:i!==!1})}function gi(e,t){return e[t]}var zJ=["children"];function eL(e,t){return"".concat(e,"-").concat(t)}function kJ(e){return e&&e.type&&e.type.isTreeNode}function wh(e,t){return e??t}function Hu(e){var t=e||{},n=t.title,r=t._title,o=t.key,i=t.children,a=n||"title";return{title:a,_title:r||[a],key:o||"key",children:i||"children"}}function tL(e){function t(n){var r=xo(n);return r.map(function(o){if(!kJ(o))return Vn(!o,"Tree/TreeNode can only accept TreeNode as children."),null;var i=o.key,a=o.props,l=a.children,c=Mt(a,zJ),d=Q({key:i},c),h=t(l);return h.length&&(d.children=h),d}).filter(function(o){return o})}return t(e)}function eb(e,t,n){var r=Hu(n),o=r._title,i=r.key,a=r.children,l=new Set(t===!0?[]:t),c=[];function d(h){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return h.map(function(p,m){for(var v=eL(g?g.pos:"0",m),y=wh(p[i],v),w,C=0;C1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,i=t.externalGetKey,a=t.childrenPropName,l=t.fieldNames,c=arguments.length>2?arguments[2]:void 0,d=i||c,h={},g={},p={posEntities:h,keyEntities:g};return n&&(p=n(p)||p),jJ(e,function(m){var v=m.node,y=m.index,w=m.pos,C=m.key,b=m.parentPos,S=m.level,E=m.nodes,O={node:v,nodes:E,index:y,key:C,pos:w,level:S},x=wh(C,w);h[w]=O,g[x]=O,O.parent=h[b],O.parent&&(O.parent.children=O.parent.children||[],O.parent.children.push(O)),r&&r(O,p)},{externalGetKey:d,childrenPropName:a,fieldNames:l}),o&&o(p),p}function Cf(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,i=t.loadingKeys,a=t.checkedKeys,l=t.halfCheckedKeys,c=t.dragOverNodeKey,d=t.dropPosition,h=t.keyEntities,g=gi(h,e),p={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:o.indexOf(e)!==-1,loading:i.indexOf(e)!==-1,checked:a.indexOf(e)!==-1,halfChecked:l.indexOf(e)!==-1,pos:String(g?g.pos:""),dragOver:c===e&&d===0,dragOverGapTop:c===e&&d===-1,dragOverGapBottom:c===e&&d===1};return p}function mr(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,i=e.loaded,a=e.loading,l=e.halfChecked,c=e.dragOver,d=e.dragOverGapTop,h=e.dragOverGapBottom,g=e.pos,p=e.active,m=e.eventKey,v=Q(Q({},t),{},{expanded:n,selected:r,checked:o,loaded:i,loading:a,halfChecked:l,dragOver:c,dragOverGapTop:d,dragOverGapBottom:h,pos:g,active:p,key:m});return"props"in v||Object.defineProperty(v,"props",{get:function(){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}}),v}function rL(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function HJ(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!!(n||r)||o===!1}function WJ(e,t,n,r){for(var o=new Set(e),i=new Set,a=0;a<=n;a+=1){var l=t.get(a)||new Set;l.forEach(function(g){var p=g.key,m=g.node,v=g.children,y=v===void 0?[]:v;o.has(p)&&!r(m)&&y.filter(function(w){return!r(w.node)}).forEach(function(w){o.add(w.key)})})}for(var c=new Set,d=n;d>=0;d-=1){var h=t.get(d)||new Set;h.forEach(function(g){var p=g.parent,m=g.node;if(!(r(m)||!g.parent||c.has(g.parent.key))){if(r(g.parent.node)){c.add(p.key);return}var v=!0,y=!1;(p.children||[]).filter(function(w){return!r(w.node)}).forEach(function(w){var C=w.key,b=o.has(C);v&&!b&&(v=!1),!y&&(b||i.has(C))&&(y=!0)}),v&&o.add(p.key),y&&i.add(p.key),c.add(p.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(rL(i,o))}}function UJ(e,t,n,r,o){for(var i=new Set(e),a=new Set(t),l=0;l<=r;l+=1){var c=n.get(l)||new Set;c.forEach(function(p){var m=p.key,v=p.node,y=p.children,w=y===void 0?[]:y;!i.has(m)&&!a.has(m)&&!o(v)&&w.filter(function(C){return!o(C.node)}).forEach(function(C){i.delete(C.key)})})}a=new Set;for(var d=new Set,h=r;h>=0;h-=1){var g=n.get(h)||new Set;g.forEach(function(p){var m=p.parent,v=p.node;if(!(o(v)||!p.parent||d.has(p.parent.key))){if(o(p.parent.node)){d.add(m.key);return}var y=!0,w=!1;(m.children||[]).filter(function(C){return!o(C.node)}).forEach(function(C){var b=C.key,S=i.has(b);y&&!S&&(y=!1),!w&&(S||a.has(b))&&(w=!0)}),y||i.delete(m.key),w&&a.add(m.key),d.add(m.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(rL(a,i))}}function tb(e,t,n,r){var o=[],i;r?i=r:i=HJ;var a=new Set(e.filter(function(h){var g=!!gi(n,h);return g||o.push(h),g})),l=new Map,c=0;Object.keys(n).forEach(function(h){var g=n[h],p=g.level,m=l.get(p);m||(m=new Set,l.set(p,m)),m.add(g),c=Math.max(c,p)}),Vn(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(h){return"'".concat(h,"'")}).join(", ")));var d;return t===!0?d=WJ(a,l,c,i):d=UJ(a,t.halfCheckedKeys,l,c,i),d}const VJ=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},cr(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},cr(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},cr(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},fv(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${oe(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}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[` ${n}:not(${n}-disabled), ${t}:not(${t}-disabled) `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{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}`}}},[` ${n}-checked:not(${n}-disabled), ${t}-checked:not(${t}-disabled) `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{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:'""'}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function oL(e,t){const n=pn(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[VJ(n)]}Zn("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[oL(n,e)]});const KJ=u.createContext({}),iL=KJ,GJ=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"}}}},XJ=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},YJ=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,i={};for(let a=o;a>=0;a--)a===0?(i[`${r}${t}-${a}`]={display:"none"},i[`${r}-push-${a}`]={insetInlineStart:"auto"},i[`${r}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${a}`]={marginInlineStart:0},i[`${r}${t}-order-${a}`]={order:0}):(i[`${r}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/o*100}%`,maxWidth:`${a/o*100}%`}],i[`${r}${t}-push-${a}`]={insetInlineStart:`${a/o*100}%`},i[`${r}${t}-pull-${a}`]={insetInlineEnd:`${a/o*100}%`},i[`${r}${t}-offset-${a}`]={marginInlineStart:`${a/o*100}%`},i[`${r}${t}-order-${a}`]={order:a});return i[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i},M1=(e,t)=>YJ(e,t),qJ=(e,t,n)=>({[`@media (min-width: ${oe(t)})`]:Object.assign({},M1(e,n))}),QJ=()=>({}),ZJ=()=>({}),JJ=Zn("Grid",GJ,QJ),eee=Zn("Grid",e=>{const t=pn(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[XJ(t),M1(t,""),M1(t,"-xs"),Object.keys(n).map(r=>qJ(t,n[r],r)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},ZJ);var tee=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n,direction:r}=u.useContext(bt),{gutter:o,wrap:i}=u.useContext(iL),{prefixCls:a,span:l,order:c,offset:d,push:h,pull:g,className:p,children:m,flex:v,style:y}=e,w=tee(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),C=n("col",a),[b,S,E]=eee(C),O={};let x={};nee.forEach(N=>{let I={};const P=e[N];typeof P=="number"?I.span=P:typeof P=="object"&&(I=P||{}),delete w[N],x=Object.assign(Object.assign({},x),{[`${C}-${N}-${I.span}`]:I.span!==void 0,[`${C}-${N}-order-${I.order}`]:I.order||I.order===0,[`${C}-${N}-offset-${I.offset}`]:I.offset||I.offset===0,[`${C}-${N}-push-${I.push}`]:I.push||I.push===0,[`${C}-${N}-pull-${I.pull}`]:I.pull||I.pull===0,[`${C}-rtl`]:r==="rtl"}),I.flex&&(x[`${C}-${N}-flex`]=!0,O[`--${C}-${N}-flex`]=F$(I.flex))});const T=ne(C,{[`${C}-${l}`]:l!==void 0,[`${C}-order-${c}`]:c,[`${C}-offset-${d}`]:d,[`${C}-push-${h}`]:h,[`${C}-pull-${g}`]:g},p,x,S,E),R={};if(o&&o[0]>0){const N=o[0]/2;R.paddingLeft=N,R.paddingRight=N}return v&&(R.flex=F$(v),i===!1&&!R.minWidth&&(R.minWidth=0)),b(u.createElement("div",Object.assign({},w,{style:Object.assign(Object.assign(Object.assign({},R),y),O),className:T,ref:t}),m))}),di=ree;var oee=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{if(typeof e=="string"&&r(e),typeof e=="object")for(let i=0;i{o()},[JSON.stringify(e),t]),n}const iee=u.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:i,style:a,children:l,gutter:c=0,wrap:d}=e,h=oee(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:g,direction:p}=u.useContext(bt),[m,v]=u.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[y,w]=u.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),C=z$(o,y),b=z$(r,y),S=u.useRef(c),E=LY();u.useEffect(()=>{const M=E.subscribe(A=>{w(A);const U=S.current||0;(!Array.isArray(U)&&typeof U=="object"||Array.isArray(U)&&(typeof U[0]=="object"||typeof U[1]=="object"))&&v(A)});return()=>E.unsubscribe(M)},[]);const O=()=>{const M=[void 0,void 0];return(Array.isArray(c)?c:[c,void 0]).forEach((U,j)=>{if(typeof U=="object")for(let G=0;G0?I[0]/-2:void 0;D&&(L.marginLeft=D,L.marginRight=D);const[z,W]=I;L.rowGap=W;const B=u.useMemo(()=>({gutter:[z,W],wrap:d}),[z,W,d]);return T(u.createElement(iL.Provider,{value:B},u.createElement("div",Object.assign({},h,{className:P,style:Object.assign(Object.assign({},L),a),ref:t}),l)))}),Jf=iee,aee=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:i,orientationMargin:a,verticalMarginInline:l}=e;return{[t]:Object.assign(Object.assign({},cr(e)),{borderBlockStart:`${oe(o)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${oe(o)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${oe(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${oe(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${oe(o)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${oe(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},lee=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),see=Zn("Divider",e=>{const t=pn(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[aee(t)]},lee,{unitless:{orientationMargin:!0}});var cee=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:n,divider:r}=u.useContext(bt),{prefixCls:o,type:i="horizontal",orientation:a="center",orientationMargin:l,className:c,rootClassName:d,children:h,dashed:g,plain:p,style:m}=e,v=cee(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),y=t("divider",o),[w,C,b]=see(y),S=a.length>0?`-${a}`:a,E=!!h,O=a==="left"&&l!=null,x=a==="right"&&l!=null,T=ne(y,r==null?void 0:r.className,C,b,`${y}-${i}`,{[`${y}-with-text`]:E,[`${y}-with-text${S}`]:E,[`${y}-dashed`]:!!g,[`${y}-plain`]:!!p,[`${y}-rtl`]:n==="rtl",[`${y}-no-default-orientation-margin-left`]:O,[`${y}-no-default-orientation-margin-right`]:x},c,d),R=u.useMemo(()=>typeof l=="number"?l:/^\d+$/.test(l)?Number(l):l,[l]),N=Object.assign(Object.assign({},O&&{marginLeft:R}),x&&{marginRight:R});return w(u.createElement("div",Object.assign({className:T,style:Object.assign(Object.assign({},r==null?void 0:r.style),m)},v,{role:"separator"}),h&&i!=="vertical"&&u.createElement("span",{className:`${y}-inner-text`,style:N},h)))},nb=uee;function dee(e){return!!(e.addonBefore||e.addonAfter)}function fee(e){return!!(e.prefix||e.suffix||e.allowClear)}function k$(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),o}function xm(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=k$(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=k$(t,e,r),n(o);return}n(o)}}function hee(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var aL=function(t){var n,r,o=t.inputElement,i=t.children,a=t.prefixCls,l=t.prefix,c=t.suffix,d=t.addonBefore,h=t.addonAfter,g=t.className,p=t.style,m=t.disabled,v=t.readOnly,y=t.focused,w=t.triggerFocus,C=t.allowClear,b=t.value,S=t.handleReset,E=t.hidden,O=t.classes,x=t.classNames,T=t.dataAttrs,R=t.styles,N=t.components,I=i??o,P=(N==null?void 0:N.affixWrapper)||"span",L=(N==null?void 0:N.groupWrapper)||"span",D=(N==null?void 0:N.wrapper)||"span",z=(N==null?void 0:N.groupAddon)||"span",W=u.useRef(null),B=function(ie){var Ce;(Ce=W.current)!==null&&Ce!==void 0&&Ce.contains(ie.target)&&(w==null||w())},M=fee(t),A=u.cloneElement(I,{value:b,className:ne(I.props.className,!M&&(x==null?void 0:x.variant))||null});if(M){var U,j=null;if(C){var G,X=!m&&!v&&b,re="".concat(a,"-clear-icon"),te=Pt(C)==="object"&&C!==null&&C!==void 0&&C.clearIcon?C.clearIcon:"✖";j=se.createElement("span",{onClick:S,onMouseDown:function(ie){return ie.preventDefault()},className:ne(re,(G={},K(G,"".concat(re,"-hidden"),!X),K(G,"".concat(re,"-has-suffix"),!!c),G)),role:"button",tabIndex:-1},te)}var Z="".concat(a,"-affix-wrapper"),he=ne(Z,(U={},K(U,"".concat(a,"-disabled"),m),K(U,"".concat(Z,"-disabled"),m),K(U,"".concat(Z,"-focused"),y),K(U,"".concat(Z,"-readonly"),v),K(U,"".concat(Z,"-input-with-clear-btn"),c&&C&&b),U),O==null?void 0:O.affixWrapper,x==null?void 0:x.affixWrapper,x==null?void 0:x.variant),ge=(c||C)&&se.createElement("span",{className:ne("".concat(a,"-suffix"),x==null?void 0:x.suffix),style:R==null?void 0:R.suffix},j,c);A=se.createElement(P,De({className:he,style:R==null?void 0:R.affixWrapper,onClick:B},T==null?void 0:T.affixWrapper,{ref:W}),l&&se.createElement("span",{className:ne("".concat(a,"-prefix"),x==null?void 0:x.prefix),style:R==null?void 0:R.prefix},l),A,ge)}if(dee(t)){var ce="".concat(a,"-group"),be="".concat(ce,"-addon"),pe="".concat(ce,"-wrapper"),ae=ne("".concat(a,"-wrapper"),ce,O==null?void 0:O.wrapper,x==null?void 0:x.wrapper),J=ne(pe,K({},"".concat(pe,"-disabled"),m),O==null?void 0:O.group,x==null?void 0:x.groupWrapper);A=se.createElement(L,{className:J},se.createElement(D,{className:ae},d&&se.createElement(z,{className:be},d),A,h&&se.createElement(z,{className:be},h)))}return se.cloneElement(A,{className:ne((n=A.props)===null||n===void 0?void 0:n.className,g)||null,style:Q(Q({},(r=A.props)===null||r===void 0?void 0:r.style),p),hidden:E})},gee=["show"];function lL(e,t){return u.useMemo(function(){var n={};t&&(n.show=Pt(t)==="object"&&t.formatter?t.formatter:!!t),n=Q(Q({},n),e);var r=n,o=r.show,i=Mt(r,gee);return Q(Q({},i),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:i.strategy||function(a){return a.length}})},[e,t])}var pee=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],mee=u.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,l=e.onKeyDown,c=e.prefixCls,d=c===void 0?"rc-input":c,h=e.disabled,g=e.htmlSize,p=e.className,m=e.maxLength,v=e.suffix,y=e.showCount,w=e.count,C=e.type,b=C===void 0?"text":C,S=e.classes,E=e.classNames,O=e.styles,x=e.onCompositionStart,T=e.onCompositionEnd,R=Mt(e,pee),N=u.useState(!1),I=de(N,2),P=I[0],L=I[1],D=u.useRef(!1),z=u.useRef(null),W=function(ve){z.current&&hee(z.current,ve)},B=Vr(e.defaultValue,{value:e.value}),M=de(B,2),A=M[0],U=M[1],j=A==null?"":String(A),G=u.useState(null),X=de(G,2),re=X[0],te=X[1],Z=lL(w,y),he=Z.max||m,ge=Z.strategy(j),ce=!!he&&ge>he;u.useImperativeHandle(t,function(){return{focus:W,blur:function(){var ve;(ve=z.current)===null||ve===void 0||ve.blur()},setSelectionRange:function(ve,xe,Ae){var Pe;(Pe=z.current)===null||Pe===void 0||Pe.setSelectionRange(ve,xe,Ae)},select:function(){var ve;(ve=z.current)===null||ve===void 0||ve.select()},input:z.current}}),u.useEffect(function(){L(function(me){return me&&h?!1:me})},[h]);var be=function(ve,xe,Ae){var Pe=xe;if(!D.current&&Z.exceedFormatter&&Z.max&&Z.strategy(xe)>Z.max){if(Pe=Z.exceedFormatter(xe,{max:Z.max}),xe!==Pe){var Fe,Ee;te([((Fe=z.current)===null||Fe===void 0?void 0:Fe.selectionStart)||0,((Ee=z.current)===null||Ee===void 0?void 0:Ee.selectionEnd)||0])}}else if(Ae.source==="compositionEnd")return;U(Pe),z.current&&xm(z.current,ve,r,Pe)};u.useEffect(function(){if(re){var me;(me=z.current)===null||me===void 0||me.setSelectionRange.apply(me,Be(re))}},[re]);var pe=function(ve){be(ve,ve.target.value,{source:"change"})},ae=function(ve){D.current=!1,be(ve,ve.currentTarget.value,{source:"compositionEnd"}),T==null||T(ve)},J=function(ve){a&&ve.key==="Enter"&&a(ve),l==null||l(ve)},ue=function(ve){L(!0),o==null||o(ve)},ie=function(ve){L(!1),i==null||i(ve)},Ce=function(ve){U(""),W(),z.current&&xm(z.current,ve,r)},Oe=ce&&"".concat(d,"-out-of-range"),Te=function(){var ve=Qn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]);return se.createElement("input",De({autoComplete:n},ve,{onChange:pe,onFocus:ue,onBlur:ie,onKeyDown:J,className:ne(d,K({},"".concat(d,"-disabled"),h),E==null?void 0:E.input),style:O==null?void 0:O.input,ref:z,size:g,type:b,onCompositionStart:function(Ae){D.current=!0,x==null||x(Ae)},onCompositionEnd:ae}))},Me=function(){var ve=Number(he)>0;if(v||Z.show){var xe=Z.showFormatter?Z.showFormatter({value:j,count:ge,maxLength:he}):"".concat(ge).concat(ve?" / ".concat(he):"");return se.createElement(se.Fragment,null,Z.show&&se.createElement("span",{className:ne("".concat(d,"-show-count-suffix"),K({},"".concat(d,"-show-count-has-suffix"),!!v),E==null?void 0:E.count),style:Q({},O==null?void 0:O.count)},xe),v)}return null};return se.createElement(aL,De({},R,{prefixCls:d,className:ne(p,Oe),handleReset:Ce,value:j,focused:P,triggerFocus:W,suffix:Me(),disabled:h,classes:S,classNames:E,styles:O}),Te())});const vee=e=>{const{getPrefixCls:t,direction:n}=u.useContext(bt),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[l,c]=Uw(a),d=ne(i,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},c,o),h=u.useContext(bi),g=u.useMemo(()=>Object.assign(Object.assign({},h),{isFormItemInput:!1}),[h]);return l(u.createElement("span",{className:d,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},u.createElement(bi.Provider,{value:g},e.children)))},yee=vee,bee=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:se.createElement(Qu,null)}),t},sL=bee;function cL(e,t){const n=u.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,i,a,l;!((o=e.current)===null||o===void 0)&&o.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((l=e.current)===null||l===void 0||l.input.removeAttribute("value"))}))};return u.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function See(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var Cee=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:r,bordered:o=!0,status:i,size:a,disabled:l,onBlur:c,onFocus:d,suffix:h,allowClear:g,addonAfter:p,addonBefore:m,className:v,style:y,styles:w,rootClassName:C,onChange:b,classNames:S,variant:E}=e,O=Cee(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:x,direction:T,input:R}=se.useContext(bt),N=x("input",r),I=u.useRef(null),P=Yo(N),[L,D,z]=Uw(N,P),{compactSize:W,compactItemClassnames:B}=ph(N,T),M=ka(ue=>{var ie;return(ie=a??W)!==null&&ie!==void 0?ie:ue}),A=se.useContext(Yu),U=l??A,{status:j,hasFeedback:G,feedbackIcon:X}=u.useContext(bi),re=Ev(j,i),te=See(e)||!!G;u.useRef(te);const Z=cL(I,!0),he=ue=>{Z(),c==null||c(ue)},ge=ue=>{Z(),d==null||d(ue)},ce=ue=>{Z(),b==null||b(ue)},be=(G||h)&&se.createElement(se.Fragment,null,h,G&&X),pe=sL(g??(R==null?void 0:R.allowClear)),[ae,J]=Pw(E,o);return L(se.createElement(mee,Object.assign({ref:wi(t,I),prefixCls:N,autoComplete:R==null?void 0:R.autoComplete},O,{disabled:U,onBlur:he,onFocus:ge,style:Object.assign(Object.assign({},R==null?void 0:R.style),y),styles:Object.assign(Object.assign({},R==null?void 0:R.styles),w),suffix:be,allowClear:pe,className:ne(v,C,z,P,B,R==null?void 0:R.className),onChange:ce,addonAfter:p&&se.createElement(Kf,null,se.createElement(v1,{override:!0,status:!0},p)),addonBefore:m&&se.createElement(Kf,null,se.createElement(v1,{override:!0,status:!0},m)),classNames:Object.assign(Object.assign(Object.assign({},S),R==null?void 0:R.classNames),{input:ne({[`${N}-sm`]:M==="small",[`${N}-lg`]:M==="large",[`${N}-rtl`]:T==="rtl"},S==null?void 0:S.input,(n=R==null?void 0:R.classNames)===null||n===void 0?void 0:n.input,D),variant:ne({[`${N}-${ae}`]:J},Cm(N,re)),affixWrapper:ne({[`${N}-affix-wrapper-sm`]:M==="small",[`${N}-affix-wrapper-lg`]:M==="large",[`${N}-affix-wrapper-rtl`]:T==="rtl"},D),wrapper:ne({[`${N}-group-rtl`]:T==="rtl"},D),groupWrapper:ne({[`${N}-group-wrapper-sm`]:M==="small",[`${N}-group-wrapper-lg`]:M==="large",[`${N}-group-wrapper-rtl`]:T==="rtl",[`${N}-group-wrapper-${ae}`]:J},Cm(`${N}-group-wrapper`,re,G),D)})})))}),Mv=_ee,Eee=e=>{const{componentCls:t,paddingXS:n}=e;return{[`${t}`]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-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}}}},xee=Zn(["Input","OTP"],e=>{const t=pn(e,kA(e));return[Eee(t)]},jA);var Oee=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{value:n,onChange:r,onActiveChange:o,index:i}=e,a=Oee(e,["value","onChange","onActiveChange","index"]),l=p=>{r(i,p.target.value)},c=u.useRef(null);u.useImperativeHandle(t,()=>c.current);const d=()=>{bn(()=>{var p;const m=(p=c.current)===null||p===void 0?void 0:p.input;document.activeElement===m&&m&&m.select()})},h=p=>{let{key:m}=p;m==="ArrowLeft"?o(i-1):m==="ArrowRight"&&o(i+1),d()},g=p=>{p.key==="Backspace"&&!n&&o(i-1),d()};return u.createElement(Mv,Object.assign({},a,{ref:c,value:n,onInput:l,onFocus:d,onKeyDown:h,onKeyUp:g,onMouseDown:d,onMouseUp:d}))}),$ee=Tee;var Ree=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,length:r=6,size:o,defaultValue:i,value:a,onChange:l,formatter:c,variant:d,disabled:h,status:g,autoFocus:p}=e,m=Ree(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus"]),{getPrefixCls:v,direction:y}=u.useContext(bt),w=v("otp",n),C=ya(m,{aria:!0,data:!0,attr:!0}),b=Yo(w),[S,E,O]=xee(w,b),x=ka(j=>o??j),T=u.useContext(bi),R=Ev(T.status,g),N=u.useMemo(()=>Object.assign(Object.assign({},T),{status:R,hasFeedback:!1,feedbackIcon:null}),[T,R]),I=u.useRef(null),P=u.useRef({});u.useImperativeHandle(t,()=>({focus:()=>{var j;(j=P.current[0])===null||j===void 0||j.focus()},blur:()=>{var j;for(let G=0;Gc?c(j):j,[D,z]=u.useState(ep(L(i||"")));u.useEffect(()=>{a!==void 0&&z(ep(a))},[a]);const W=yr(j=>{z(j),l&&j.length===r&&j.every(G=>G)&&j.some((G,X)=>D[X]!==G)&&l(j.join(""))}),B=yr((j,G)=>{let X=Be(D);for(let te=0;te=0&&!X[te];te-=1)X.pop();const re=L(X.map(te=>te||" ").join(""));return X=ep(re).map((te,Z)=>te===" "&&!X[Z]?X[Z]:te),X}),M=(j,G)=>{var X;const re=B(j,G),te=Math.min(j+G.length,r-1);te!==j&&((X=P.current[te])===null||X===void 0||X.focus()),W(re)},A=j=>{var G;(G=P.current[j])===null||G===void 0||G.focus()},U={variant:d,disabled:h,status:R};return S(u.createElement("div",Object.assign({},C,{ref:I,className:ne(w,{[`${w}-sm`]:x==="small",[`${w}-lg`]:x==="large",[`${w}-rtl`]:y==="rtl"},O,E)}),u.createElement(bi.Provider,{value:N},new Array(r).fill(0).map((j,G)=>{const X=`otp-${G}`,re=D[G]||"";return u.createElement($ee,Object.assign({ref:te=>{P.current[G]=te},key:X,index:G,size:x,htmlSize:1,className:`${w}-input`,onChange:M,value:re,onActiveChange:A,autoFocus:G===0&&p},U))}))))}),Nee=Iee;var Mee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};const Pee=Mee;var Aee=function(t,n){return u.createElement(Sn,De({},t,{ref:n,icon:Pee}))},Lee=u.forwardRef(Aee);const Dee=Lee;var Bee={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"};const Fee=Bee;var zee=function(t,n){return u.createElement(Sn,De({},t,{ref:n,icon:Fee}))},kee=u.forwardRef(zee);const jee=kee;var Hee=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);oe?u.createElement(jee,null):u.createElement(Dee,null),Uee={click:"onClick",hover:"onMouseOver"},Vee=u.forwardRef((e,t)=>{const{visibilityToggle:n=!0}=e,r=typeof n=="object"&&n.visible!==void 0,[o,i]=u.useState(()=>r?n.visible:!1),a=u.useRef(null);u.useEffect(()=>{r&&i(n.visible)},[r,n]);const l=cL(a),c=()=>{const{disabled:O}=e;O||(o&&l(),i(x=>{var T;const R=!x;return typeof n=="object"&&((T=n.onVisibleChange)===null||T===void 0||T.call(n,R)),R}))},d=O=>{const{action:x="click",iconRender:T=Wee}=e,R=Uee[x]||"",N=T(o),I={[R]:c,className:`${O}-icon`,key:"passwordIcon",onMouseDown:P=>{P.preventDefault()},onMouseUp:P=>{P.preventDefault()}};return u.cloneElement(u.isValidElement(N)?N:u.createElement("span",null,N),I)},{className:h,prefixCls:g,inputPrefixCls:p,size:m}=e,v=Hee(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:y}=u.useContext(bt),w=y("input",p),C=y("input-password",g),b=n&&d(C),S=ne(C,h,{[`${C}-${m}`]:!!m}),E=Object.assign(Object.assign({},Qn(v,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:S,prefixCls:w,suffix:b});return m&&(E.size=m),u.createElement(Mv,Object.assign({ref:wi(t,a)},E))}),Kee=Vee;var Gee=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:l=!1,addonAfter:c,loading:d,disabled:h,onSearch:g,onChange:p,onCompositionStart:m,onCompositionEnd:v}=e,y=Gee(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:w,direction:C}=u.useContext(bt),b=u.useRef(!1),S=w("input-search",n),E=w("input",r),{compactSize:O}=ph(S,C),x=ka(j=>{var G;return(G=i??O)!==null&&G!==void 0?G:j}),T=u.useRef(null),R=j=>{j&&j.target&&j.type==="click"&&g&&g(j.target.value,j,{source:"clear"}),p&&p(j)},N=j=>{var G;document.activeElement===((G=T.current)===null||G===void 0?void 0:G.input)&&j.preventDefault()},I=j=>{var G,X;g&&g((X=(G=T.current)===null||G===void 0?void 0:G.input)===null||X===void 0?void 0:X.value,j,{source:"input"})},P=j=>{b.current||d||I(j)},L=typeof l=="boolean"?u.createElement(dA,null):null,D=`${S}-button`;let z;const W=l||{},B=W.type&&W.type.__ANT_BUTTON===!0;B||W.type==="button"?z=Oo(W,Object.assign({onMouseDown:N,onClick:j=>{var G,X;(X=(G=W==null?void 0:W.props)===null||G===void 0?void 0:G.onClick)===null||X===void 0||X.call(G,j),I(j)},key:"enterButton"},B?{className:D,size:x}:{})):z=u.createElement(hi,{className:D,type:l?"primary":void 0,size:x,disabled:h,key:"enterButton",onMouseDown:N,onClick:I,loading:d,icon:L},l),c&&(z=[z,Oo(c,{key:"addonAfter"})]);const M=ne(S,{[`${S}-rtl`]:C==="rtl",[`${S}-${x}`]:!!x,[`${S}-with-button`]:!!l},o),A=j=>{b.current=!0,m==null||m(j)},U=j=>{b.current=!1,v==null||v(j)};return u.createElement(Mv,Object.assign({ref:wi(T,t),onPressEnter:P},y,{size:x,onCompositionStart:A,onCompositionEnd:U,prefixCls:E,addonAfter:z,suffix:a,onChange:R,className:M,disabled:h}))}),Yee=Xee;var qee=` 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; `,Qee=["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"],rb={},Ai;function Zee(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&rb[n])return rb[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=Qee.map(function(d){return"".concat(d,":").concat(r.getPropertyValue(d))}).join(";"),c={sizingStyle:l,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(rb[n]=c),c}function Jee(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Ai||(Ai=document.createElement("textarea"),Ai.setAttribute("tab-index","-1"),Ai.setAttribute("aria-hidden","true"),document.body.appendChild(Ai)),e.getAttribute("wrap")?Ai.setAttribute("wrap",e.getAttribute("wrap")):Ai.removeAttribute("wrap");var o=Zee(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,c=o.sizingStyle;Ai.setAttribute("style","".concat(c,";").concat(qee)),Ai.value=e.value||e.placeholder||"";var d=void 0,h=void 0,g,p=Ai.scrollHeight;if(l==="border-box"?p+=a:l==="content-box"&&(p-=i),n!==null||r!==null){Ai.value=" ";var m=Ai.scrollHeight-i;n!==null&&(d=m*n,l==="border-box"&&(d=d+i+a),p=Math.max(d,p)),r!==null&&(h=m*r,l==="border-box"&&(h=h+i+a),g=p>h?"":"hidden",p=Math.min(h,p))}var v={height:p,overflowY:g,resize:"none"};return d&&(v.minHeight=d),h&&(v.maxHeight=h),v}var ete=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ob=0,ib=1,ab=2,tte=u.forwardRef(function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var o=n.defaultValue,i=n.value,a=n.autoSize,l=n.onResize,c=n.className,d=n.style,h=n.disabled,g=n.onChange;n.onInternalAutoSize;var p=Mt(n,ete),m=Vr(o,{value:i,postState:function(te){return te??""}}),v=de(m,2),y=v[0],w=v[1],C=function(te){w(te.target.value),g==null||g(te)},b=u.useRef();u.useImperativeHandle(t,function(){return{textArea:b.current}});var S=u.useMemo(function(){return a&&Pt(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),E=de(S,2),O=E[0],x=E[1],T=!!a,R=function(){try{if(document.activeElement===b.current){var te=b.current,Z=te.selectionStart,he=te.selectionEnd,ge=te.scrollTop;b.current.setSelectionRange(Z,he),b.current.scrollTop=ge}}catch{}},N=u.useState(ab),I=de(N,2),P=I[0],L=I[1],D=u.useState(),z=de(D,2),W=z[0],B=z[1],M=function(){L(ob)};dn(function(){T&&M()},[i,O,x,T]),dn(function(){if(P===ob)L(ib);else if(P===ib){var re=Jee(b.current,!1,O,x);L(ab),B(re)}else R()},[P]);var A=u.useRef(),U=function(){bn.cancel(A.current)},j=function(te){P===ab&&(l==null||l(te),a&&(U(),A.current=bn(function(){M()})))};u.useEffect(function(){return U},[]);var G=T?W:null,X=Q(Q({},d),G);return(P===ob||P===ib)&&(X.overflowY="hidden",X.overflowX="hidden"),u.createElement(Hi,{onResize:j,disabled:!(a||l)},u.createElement("textarea",De({},p,{ref:b,style:X,className:ne(r,c,K({},"".concat(r,"-disabled"),h)),disabled:h,value:y,onChange:C})))}),nte=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],rte=se.forwardRef(function(e,t){var n,r,o=e.defaultValue,i=e.value,a=e.onFocus,l=e.onBlur,c=e.onChange,d=e.allowClear,h=e.maxLength,g=e.onCompositionStart,p=e.onCompositionEnd,m=e.suffix,v=e.prefixCls,y=v===void 0?"rc-textarea":v,w=e.showCount,C=e.count,b=e.className,S=e.style,E=e.disabled,O=e.hidden,x=e.classNames,T=e.styles,R=e.onResize,N=Mt(e,nte),I=Vr(o,{value:i,defaultValue:o}),P=de(I,2),L=P[0],D=P[1],z=L==null?"":String(L),W=se.useState(!1),B=de(W,2),M=B[0],A=B[1],U=se.useRef(!1),j=se.useState(null),G=de(j,2),X=G[0],re=G[1],te=u.useRef(null),Z=function(){var Ue;return(Ue=te.current)===null||Ue===void 0?void 0:Ue.textArea},he=function(){Z().focus()};u.useImperativeHandle(t,function(){return{resizableTextArea:te.current,focus:he,blur:function(){Z().blur()}}}),u.useEffect(function(){A(function(Le){return!E&&Le})},[E]);var ge=se.useState(null),ce=de(ge,2),be=ce[0],pe=ce[1];se.useEffect(function(){if(be){var Le;(Le=Z()).setSelectionRange.apply(Le,Be(be))}},[be]);var ae=lL(C,w),J=(n=ae.max)!==null&&n!==void 0?n:h,ue=Number(J)>0,ie=ae.strategy(z),Ce=!!J&&ie>J,Oe=function(Ue,Ve){var We=Ve;!U.current&&ae.exceedFormatter&&ae.max&&ae.strategy(Ve)>ae.max&&(We=ae.exceedFormatter(Ve,{max:ae.max}),Ve!==We&&pe([Z().selectionStart||0,Z().selectionEnd||0])),D(We),xm(Ue.currentTarget,Ue,c,We)},Te=function(Ue){U.current=!0,g==null||g(Ue)},Me=function(Ue){U.current=!1,Oe(Ue,Ue.currentTarget.value),p==null||p(Ue)},me=function(Ue){Oe(Ue,Ue.target.value)},ve=function(Ue){var Ve=N.onPressEnter,We=N.onKeyDown;Ue.key==="Enter"&&Ve&&Ve(Ue),We==null||We(Ue)},xe=function(Ue){A(!0),a==null||a(Ue)},Ae=function(Ue){A(!1),l==null||l(Ue)},Pe=function(Ue){D(""),he(),xm(Z(),Ue,c)},Fe=m,Ee;ae.show&&(ae.showFormatter?Ee=ae.showFormatter({value:z,count:ie,maxLength:J}):Ee="".concat(ie).concat(ue?" / ".concat(J):""),Fe=se.createElement(se.Fragment,null,Fe,se.createElement("span",{className:ne("".concat(y,"-data-count"),x==null?void 0:x.count),style:T==null?void 0:T.count},Ee)));var Ie=function(Ue){var Ve;R==null||R(Ue),(Ve=Z())!==null&&Ve!==void 0&&Ve.style.height&&re(!0)},je=!N.autoSize&&!w&&!d;return se.createElement(aL,{value:z,allowClear:d,handleReset:Pe,suffix:Fe,prefixCls:y,classNames:Q(Q({},x),{},{affixWrapper:ne(x==null?void 0:x.affixWrapper,(r={},K(r,"".concat(y,"-show-count"),w),K(r,"".concat(y,"-textarea-allow-clear"),d),r))}),disabled:E,focused:M,className:ne(b,Ce&&"".concat(y,"-out-of-range")),style:Q(Q({},S),X&&!je?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ee=="string"?Ee:void 0}},hidden:O},se.createElement(tte,De({},N,{maxLength:h,onKeyDown:ve,onChange:me,onFocus:xe,onBlur:Ae,onCompositionStart:Te,onCompositionEnd:Me,className:ne(x==null?void 0:x.textarea),style:Q(Q({},T==null?void 0:T.textarea),{},{resize:S==null?void 0:S.resize}),disabled:E,prefixCls:y,onResize:Ie,ref:te})))}),ote=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const{prefixCls:o,bordered:i=!0,size:a,disabled:l,status:c,allowClear:d,classNames:h,rootClassName:g,className:p,style:m,styles:v,variant:y}=e,w=ote(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:C,direction:b,textArea:S}=u.useContext(bt),E=ka(a),O=u.useContext(Yu),x=l??O,{status:T,hasFeedback:R,feedbackIcon:N}=u.useContext(bi),I=Ev(T,c),P=u.useRef(null);u.useImperativeHandle(t,()=>{var j;return{resizableTextArea:(j=P.current)===null||j===void 0?void 0:j.resizableTextArea,focus:G=>{var X,re;wee((re=(X=P.current)===null||X===void 0?void 0:X.resizableTextArea)===null||re===void 0?void 0:re.textArea,G)},blur:()=>{var G;return(G=P.current)===null||G===void 0?void 0:G.blur()}}});const L=C("input",o),D=Yo(L),[z,W,B]=Uw(L,D),[M,A]=Pw(y,i),U=sL(d??(S==null?void 0:S.allowClear));return z(u.createElement(rte,Object.assign({autoComplete:S==null?void 0:S.autoComplete},w,{style:Object.assign(Object.assign({},S==null?void 0:S.style),m),styles:Object.assign(Object.assign({},S==null?void 0:S.styles),v),disabled:x,allowClear:U,className:ne(B,D,p,g,S==null?void 0:S.className),classNames:Object.assign(Object.assign(Object.assign({},h),S==null?void 0:S.classNames),{textarea:ne({[`${L}-sm`]:E==="small",[`${L}-lg`]:E==="large"},W,h==null?void 0:h.textarea,(n=S==null?void 0:S.classNames)===null||n===void 0?void 0:n.textarea),variant:ne({[`${L}-${M}`]:A},Cm(L,I)),affixWrapper:ne(`${L}-textarea-affix-wrapper`,{[`${L}-affix-wrapper-rtl`]:b==="rtl",[`${L}-affix-wrapper-sm`]:E==="small",[`${L}-affix-wrapper-lg`]:E==="large",[`${L}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},W)}),prefixCls:L,suffix:R&&u.createElement("span",{className:`${L}-textarea-suffix`},N),ref:P})))}),Kw=ite,ad=Mv;ad.Group=yee;ad.Search=Yee;ad.TextArea=Kw;ad.Password=Kee;ad.OTP=Nee;const uL=ad;function j$(e){return["small","middle","large"].includes(e)}function H$(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const dL=se.createContext({latestIndex:0}),ate=dL.Provider,lte=e=>{let{className:t,index:n,children:r,split:o,style:i}=e;const{latestIndex:a}=u.useContext(dL);return r==null?null:u.createElement(u.Fragment,null,u.createElement("div",{className:t,style:i},r),n{var n,r;const{getPrefixCls:o,space:i,direction:a}=u.useContext(bt),{size:l=(i==null?void 0:i.size)||"small",align:c,className:d,rootClassName:h,children:g,direction:p="horizontal",prefixCls:m,split:v,style:y,wrap:w=!1,classNames:C,styles:b}=e,S=cte(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[E,O]=Array.isArray(l)?l:[l,l],x=j$(O),T=j$(E),R=H$(O),N=H$(E),I=xo(g,{keepEmpty:!0}),P=c===void 0&&p==="horizontal"?"center":c,L=o("space",m),[D,z,W]=QM(L),B=ne(L,i==null?void 0:i.className,z,`${L}-${p}`,{[`${L}-rtl`]:a==="rtl",[`${L}-align-${P}`]:P,[`${L}-gap-row-${O}`]:x,[`${L}-gap-col-${E}`]:T},d,h,W),M=ne(`${L}-item`,(n=C==null?void 0:C.item)!==null&&n!==void 0?n:(r=i==null?void 0:i.classNames)===null||r===void 0?void 0:r.item);let A=0;const U=I.map((X,re)=>{var te,Z;X!=null&&(A=re);const he=X&&X.key||`${M}-${re}`;return u.createElement(ste,{className:M,key:he,index:re,split:v,style:(te=b==null?void 0:b.item)!==null&&te!==void 0?te:(Z=i==null?void 0:i.styles)===null||Z===void 0?void 0:Z.item},X)}),j=u.useMemo(()=>({latestIndex:A}),[A]);if(I.length===0)return null;const G={};return w&&(G.flexWrap="wrap"),!T&&N&&(G.columnGap=E),!x&&R&&(G.rowGap=O),D(u.createElement("div",Object.assign({ref:t,className:B,style:Object.assign(Object.assign(Object.assign({},G),i==null?void 0:i.style),y)},S),u.createElement(ate,{value:j},U)))}),fL=ute;fL.Compact=JU;const dte=fL;var fte=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPopupContainer:t,getPrefixCls:n,direction:r}=u.useContext(bt),{prefixCls:o,type:i="default",danger:a,disabled:l,loading:c,onClick:d,htmlType:h,children:g,className:p,menu:m,arrow:v,autoFocus:y,overlay:w,trigger:C,align:b,open:S,onOpenChange:E,placement:O,getPopupContainer:x,href:T,icon:R=u.createElement(jw,null),title:N,buttonsRender:I=ce=>ce,mouseEnterDelay:P,mouseLeaveDelay:L,overlayClassName:D,overlayStyle:z,destroyPopupOnHide:W,dropdownRender:B}=e,M=fte(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),A=n("dropdown",o),U=`${A}-button`,j={menu:m,arrow:v,autoFocus:y,align:b,disabled:l,trigger:l?[]:C,onOpenChange:E,getPopupContainer:x||t,mouseEnterDelay:P,mouseLeaveDelay:L,overlayClassName:D,overlayStyle:z,destroyPopupOnHide:W,dropdownRender:B},{compactSize:G,compactItemClassnames:X}=ph(A,r),re=ne(U,X,p);"overlay"in e&&(j.overlay=w),"open"in e&&(j.open=S),"placement"in e?j.placement=O:j.placement=r==="rtl"?"bottomLeft":"bottomRight";const te=u.createElement(hi,{type:i,danger:a,disabled:l,loading:c,onClick:d,htmlType:h,href:T,title:N},g),Z=u.createElement(hi,{type:i,danger:a,icon:R}),[he,ge]=I([te,Z]);return u.createElement(dte.Compact,Object.assign({className:re,size:G,block:!0},M),he,u.createElement(zA,Object.assign({},j),ge))};hL.__ANT_BUTTON=!0;const hte=hL,gL=zA;gL.Button=hte;const lb=gL;function Om(e){const[t,n]=u.useState(e);return u.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const gte=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}, transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},pte=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${oe(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),W$=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},mte=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},cr(e)),pte(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},W$(e,e.controlHeightSM)),"&-large":Object.assign({},W$(e,e.controlHeightLG))})}},vte=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o,labelRequiredMarkColor:i,labelColor:a,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:d,labelColonMarginInlineEnd:h,itemMarginBottom:g}=e;return{[t]:Object.assign(Object.assign({},cr(e)),{marginBottom:g,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, &-hidden.${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:a,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:i,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:d,marginInlineEnd:h},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${o}-col-'"]):not([class*="' ${o}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:Ew,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},yte=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},bte=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${n}-label, > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},ou=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Ste=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:ou(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Cte=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${n}-label, .${r}-col-24${n}-label, .${r}-col-xl-24${n}-label`]:ou(e),[`@media (max-width: ${oe(e.screenXSMax)})`]:[Ste(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:ou(e)}}],[`@media (max-width: ${oe(e.screenSMMax)})`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:ou(e)}},[`@media (max-width: ${oe(e.screenMDMax)})`]:{[t]:{[`.${r}-col-md-24${n}-label`]:ou(e)}},[`@media (max-width: ${oe(e.screenLGMax)})`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:ou(e)}}}},wte=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0}),pL=(e,t)=>pn(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),Gw=Zn("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=pL(e,n);return[mte(r),vte(r),gte(r),yte(r),bte(r),Cte(r),bw(r),Ew]},wte,{order:-1e3}),U$=[];function sb(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const _te=e=>{let{help:t,helpStatus:n,errors:r=U$,warnings:o=U$,className:i,fieldId:a,onVisibleChanged:l}=e;const{prefixCls:c}=u.useContext(yw),d=`${c}-item-explain`,h=Yo(c),[g,p,m]=Gw(c,h),v=u.useMemo(()=>vm(c),[c]),y=Om(r),w=Om(o),C=u.useMemo(()=>t!=null?[sb(t,"help",n)]:[].concat(Be(y.map((S,E)=>sb(S,"error","error",E))),Be(w.map((S,E)=>sb(S,"warning","warning",E)))),[t,n,y,w]),b={};return a&&(b.id=`${a}_help`),g(u.createElement(Sa,{motionDeadline:v.motionDeadline,motionName:`${c}-show-help`,visible:!!C.length,onVisibleChanged:l},S=>{const{className:E,style:O}=S;return u.createElement("div",Object.assign({},b,{className:ne(d,E,m,h,i,p),style:O,role:"alert"}),u.createElement(LM,Object.assign({keys:C},vm(c),{motionName:`${c}-show-help-item`,component:!1}),x=>{const{key:T,error:R,errorStatus:N,className:I,style:P}=x;return u.createElement("div",{key:T,className:ne(I,{[`${d}-${N}`]:N}),style:P},R)}))}))},mL=_te,Ete=["parentNode"],xte="form_item";function wf(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function vL(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:Ete.includes(n)?`${xte}_${n}`:n}function yL(e,t,n,r,o,i){let a=r;return i!==void 0?a=i:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||o&&n.validated)&&(a="success"),a}function V$(e){return wf(e).join("_")}function bL(e){const[t]=vw(),n=u.useRef({}),r=u.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>i=>{const a=V$(o);i?n.current[a]=i:delete n.current[a]}},scrollToField:function(o){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const a=wf(o),l=vL(a,r.__INTERNAL__.name),c=l?document.getElementById(l):null;c&&uU(c,Object.assign({scrollMode:"if-needed",block:"nearest"},i))},getFieldInstance:o=>{const i=V$(o);return n.current[i]}}),[e,t]);return[r]}var Ote=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const n=u.useContext(Yu),{getPrefixCls:r,direction:o,form:i}=u.useContext(bt),{prefixCls:a,className:l,rootClassName:c,size:d,disabled:h=n,form:g,colon:p,labelAlign:m,labelWrap:v,labelCol:y,wrapperCol:w,hideRequiredMark:C,layout:b="horizontal",scrollToFirstError:S,requiredMark:E,onFinishFailed:O,name:x,style:T,feedbackIcons:R,variant:N}=e,I=Ote(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),P=ka(d),L=u.useContext(oM),D=u.useMemo(()=>E!==void 0?E:C?!1:i&&i.requiredMark!==void 0?i.requiredMark:!0,[C,E,i]),z=p??(i==null?void 0:i.colon),W=r("form",a),B=Yo(W),[M,A,U]=Gw(W,B),j=ne(W,`${W}-${b}`,{[`${W}-hide-required-mark`]:D===!1,[`${W}-rtl`]:o==="rtl",[`${W}-${P}`]:P},U,B,A,i==null?void 0:i.className,l,c),[G]=bL(g),{__INTERNAL__:X}=G;X.name=x;const re=u.useMemo(()=>({name:x,labelAlign:m,labelCol:y,labelWrap:v,wrapperCol:w,vertical:b==="vertical",colon:z,requiredMark:D,itemRef:X.itemRef,form:G,feedbackIcons:R}),[x,m,y,w,b,z,D,G,R]);u.useImperativeHandle(t,()=>G);const te=(he,ge)=>{if(he){let ce={block:"nearest"};typeof he=="object"&&(ce=he),G.scrollToField(ge,ce)}},Z=he=>{if(O==null||O(he),he.errorFields.length){const ge=he.errorFields[0].name;if(S!==void 0){te(S,ge);return}i&&i.scrollToFirstError!==void 0&&te(i.scrollToFirstError,ge)}};return M(u.createElement(EP.Provider,{value:N},u.createElement(nw,{disabled:h},u.createElement(uh.Provider,{value:P},u.createElement(_P,{validateMessages:L},u.createElement(bl.Provider,{value:re},u.createElement(Ju,Object.assign({id:x},I,{name:x,onFinishFailed:Z,form:G,style:Object.assign(Object.assign({},i==null?void 0:i.style),T),className:j}))))))))},$te=u.forwardRef(Tte);function Rte(e){if(typeof e=="function")return e;const t=xo(e);return t.length<=1?t[0]:t}const SL=()=>{const{status:e,errors:t=[],warnings:n=[]}=u.useContext(bi);return{status:e,errors:t,warnings:n}};SL.Context=bi;const Ite=SL;function Nte(e){const[t,n]=u.useState(e),r=u.useRef(null),o=u.useRef([]),i=u.useRef(!1);u.useEffect(()=>(i.current=!1,()=>{i.current=!0,bn.cancel(r.current),r.current=null}),[]);function a(l){i.current||(r.current===null&&(o.current=[],r.current=bn(()=>{r.current=null,n(c=>{let d=c;return o.current.forEach(h=>{d=h(d)}),d})})),o.current.push(l))}return[t,a]}function Mte(){const{itemRef:e}=u.useContext(bl),t=u.useRef({});function n(r,o){const i=o&&typeof o=="object"&&o.ref,a=r.join("_");return(t.current.name!==a||t.current.originRef!==i)&&(t.current.name=a,t.current.originRef=i,t.current.ref=wi(e(r),i)),t.current.ref}return n}const Pte=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},Ate=hv(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=pL(e,n);return[Pte(r)]}),Lte=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:o,errors:i,warnings:a,_internalItemRender:l,extra:c,help:d,fieldId:h,marginBottom:g,onErrorVisibleChanged:p}=e,m=`${t}-item`,v=u.useContext(bl),y=r||v.wrapperCol||{},w=ne(`${m}-control`,y.className),C=u.useMemo(()=>Object.assign({},v),[v]);delete C.labelCol,delete C.wrapperCol;const b=u.createElement("div",{className:`${m}-control-input`},u.createElement("div",{className:`${m}-control-input-content`},o)),S=u.useMemo(()=>({prefixCls:t,status:n}),[t,n]),E=g!==null||i.length||a.length?u.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},u.createElement(yw.Provider,{value:S},u.createElement(mL,{fieldId:h,errors:i,warnings:a,help:d,helpStatus:n,className:`${m}-explain-connected`,onVisibleChanged:p})),!!g&&u.createElement("div",{style:{width:0,height:g}})):null,O={};h&&(O.id=`${h}_extra`);const x=c?u.createElement("div",Object.assign({},O,{className:`${m}-extra`}),c):null,T=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:b,errorList:E,extra:x}):u.createElement(u.Fragment,null,b,E,x);return u.createElement(bl.Provider,{value:C},u.createElement(di,Object.assign({},y,{className:w}),T),u.createElement(Ate,{prefixCls:t}))},Dte=Lte;var Bte={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};const Fte=Bte;var zte=function(t,n){return u.createElement(Sn,De({},t,{ref:n,icon:Fte}))},kte=u.forwardRef(zte);const jte=kte;var Hte=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let{prefixCls:t,label:n,htmlFor:r,labelCol:o,labelAlign:i,colon:a,required:l,requiredMark:c,tooltip:d}=e;var h;const[g]=Xu("Form"),{vertical:p,labelAlign:m,labelCol:v,labelWrap:y,colon:w}=u.useContext(bl);if(!n)return null;const C=o||v||{},b=i||m,S=`${t}-item-label`,E=ne(S,b==="left"&&`${S}-left`,C.className,{[`${S}-wrap`]:!!y});let O=n;const x=a===!0||w!==!1&&a!==!1;x&&!p&&typeof n=="string"&&n.trim()!==""&&(O=n.replace(/[:|:]\s*$/,""));const R=Wte(d);if(R){const{icon:L=u.createElement(jte,null)}=R,D=Hte(R,["icon"]),z=u.createElement(td,Object.assign({},D),u.cloneElement(L,{className:`${t}-item-tooltip`,title:"",onClick:W=>{W.preventDefault()},tabIndex:null}));O=u.createElement(u.Fragment,null,O,z)}const N=c==="optional",I=typeof c=="function";I?O=c(O,{required:!!l}):N&&!l&&(O=u.createElement(u.Fragment,null,O,u.createElement("span",{className:`${t}-item-optional`,title:""},(g==null?void 0:g.optional)||((h=vs.Form)===null||h===void 0?void 0:h.optional))));const P=ne({[`${t}-item-required`]:l,[`${t}-item-required-mark-optional`]:N||I,[`${t}-item-no-colon`]:!x});return u.createElement(di,Object.assign({},C,{className:E}),u.createElement("label",{htmlFor:r,className:P,title:typeof n=="string"?n:""},O))},Vte=Ute,Kte={success:aw,warning:lw,error:Qu,validating:fh};function CL(e){let{children:t,errors:n,warnings:r,hasFeedback:o,validateStatus:i,prefixCls:a,meta:l,noStyle:c}=e;const d=`${a}-item`,{feedbackIcons:h}=u.useContext(bl),g=yL(n,r,l,null,!!o,i),{isFormItemInput:p,status:m,hasFeedback:v,feedbackIcon:y}=u.useContext(bi),w=u.useMemo(()=>{var C;let b;if(o){const E=o!==!0&&o.icons||h,O=g&&((C=E==null?void 0:E({status:g,errors:n,warnings:r}))===null||C===void 0?void 0:C[g]),x=g&&Kte[g];b=O!==!1&&x?u.createElement("span",{className:ne(`${d}-feedback-icon`,`${d}-feedback-icon-${g}`)},O||u.createElement(x,null)):null}const S={status:g||"",errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:b,isFormItemInput:!0};return c&&(S.status=(g??m)||"",S.isFormItemInput=p,S.hasFeedback=!!(o??v),S.feedbackIcon=o!==void 0?S.feedbackIcon:y),S},[g,o,c,p,m]);return u.createElement(bi.Provider,{value:w},t)}var Gte=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{if(R&&E.current){const B=getComputedStyle(E.current);P(parseInt(B.marginBottom,10))}},[R,N]);const L=B=>{B||P(null)},z=function(){let B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const M=B?O:d.errors,A=B?x:d.warnings;return yL(M,A,d,"",!!h,c)}(),W=ne(b,n,r,{[`${b}-with-help`]:T||O.length||x.length,[`${b}-has-feedback`]:z&&h,[`${b}-has-success`]:z==="success",[`${b}-has-warning`]:z==="warning",[`${b}-has-error`]:z==="error",[`${b}-is-validating`]:z==="validating",[`${b}-hidden`]:g});return u.createElement("div",{className:W,style:o,ref:E},u.createElement(Jf,Object.assign({className:`${b}-row`},Qn(C,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),u.createElement(Vte,Object.assign({htmlFor:m},e,{requiredMark:S,required:v??y,prefixCls:t})),u.createElement(Dte,Object.assign({},e,d,{errors:O,warnings:x,prefixCls:t,status:z,help:i,marginBottom:I,onErrorVisibleChanged:L}),u.createElement(wP.Provider,{value:w},u.createElement(CL,{prefixCls:t,meta:d,errors:d.errors,warnings:d.warnings,hasFeedback:h,validateStatus:z},p)))),!!I&&u.createElement("div",{className:`${b}-margin-offset`,style:{marginBottom:-I}}))}const Yte="__SPLIT__";function qte(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>{const i=e[o],a=t[o];return i===a||typeof i=="function"||typeof a=="function"})}const Qte=u.memo(e=>{let{children:t}=e;return t},(e,t)=>qte(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function K$(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Zte(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:i,shouldUpdate:a,rules:l,children:c,required:d,label:h,messageVariables:g,trigger:p="onChange",validateTrigger:m,hidden:v,help:y}=e,{getPrefixCls:w}=u.useContext(bt),{name:C}=u.useContext(bl),b=Rte(c),S=typeof b=="function",E=u.useContext(wP),{validateTrigger:O}=u.useContext(vc),x=m!==void 0?m:O,T=t!=null,R=w("form",i),N=Yo(R),[I,P,L]=Gw(R,N);ch();const D=u.useContext(Xf),z=u.useRef(),[W,B]=Nte({}),[M,A]=gs(()=>K$()),U=he=>{const ge=D==null?void 0:D.getKey(he.name);if(A(he.destroy?K$():he,!0),n&&y!==!1&&E){let ce=he.name;if(he.destroy)ce=z.current||ce;else if(ge!==void 0){const[be,pe]=ge;ce=[be].concat(Be(pe)),z.current=ce}E(he,ce)}},j=(he,ge)=>{B(ce=>{const be=Object.assign({},ce),ae=[].concat(Be(he.name.slice(0,-1)),Be(ge)).join(Yte);return he.destroy?delete be[ae]:be[ae]=he,be})},[G,X]=u.useMemo(()=>{const he=Be(M.errors),ge=Be(M.warnings);return Object.values(W).forEach(ce=>{he.push.apply(he,Be(ce.errors||[])),ge.push.apply(ge,Be(ce.warnings||[]))}),[he,ge]},[W,M.errors,M.warnings]),re=Mte();function te(he,ge,ce){return n&&!v?u.createElement(CL,{prefixCls:R,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:M,errors:G,warnings:X,noStyle:!0},he):u.createElement(Xte,Object.assign({key:"row"},e,{className:ne(r,L,N,P),prefixCls:R,fieldId:ge,isRequired:ce,errors:G,warnings:X,meta:M,onSubItemMetaChange:j}),he)}if(!T&&!S&&!o)return I(te(b));let Z={};return typeof h=="string"?Z.label=h:t&&(Z.label=String(t)),g&&(Z=Object.assign(Object.assign({},Z),g)),I(u.createElement(mw,Object.assign({},e,{messageVariables:Z,trigger:p,validateTrigger:x,onMetaChange:U}),(he,ge,ce)=>{const be=wf(t).length&&ge?ge.name:[],pe=vL(be,C),ae=d!==void 0?d:!!(l&&l.some(ie=>{if(ie&&typeof ie=="object"&&ie.required&&!ie.warningOnly)return!0;if(typeof ie=="function"){const Ce=ie(ce);return Ce&&Ce.required&&!Ce.warningOnly}return!1})),J=Object.assign({},he);let ue=null;if(Array.isArray(b)&&T)ue=b;else if(!(S&&(!(a||o)||T))){if(!(o&&!S&&!T))if(u.isValidElement(b)){const ie=Object.assign(Object.assign({},b.props),J);if(ie.id||(ie.id=pe),y||G.length>0||X.length>0||e.extra){const Te=[];(y||G.length>0)&&Te.push(`${pe}_help`),e.extra&&Te.push(`${pe}_extra`),ie["aria-describedby"]=Te.join(" ")}G.length>0&&(ie["aria-invalid"]="true"),ae&&(ie["aria-required"]="true"),wl(b)&&(ie.ref=re(be,b)),new Set([].concat(Be(wf(p)),Be(wf(x)))).forEach(Te=>{ie[Te]=function(){for(var Me,me,ve,xe,Ae,Pe=arguments.length,Fe=new Array(Pe),Ee=0;Ee{var{prefixCls:t,children:n}=e,r=ene(e,["prefixCls","children"]);const{getPrefixCls:o}=u.useContext(bt),i=o("form",t),a=u.useMemo(()=>({prefixCls:i,status:"error"}),[i]);return u.createElement(yP,Object.assign({},r),(l,c,d)=>u.createElement(yw.Provider,{value:a},n(l.map(h=>Object.assign(Object.assign({},h),{fieldKey:h.key})),c,{errors:d.errors,warnings:d.warnings})))},nne=tne;function rne(){const{form:e}=u.useContext(bl);return e}const ki=$te;ki.Item=Jte;ki.List=nne;ki.ErrorList=mL;ki.useForm=bL;ki.useFormInstance=rne;ki.useWatch=CP;ki.Provider=_P;ki.create=()=>{};function one(e,t,n){return typeof n=="boolean"?n:e.length?!0:xo(t).some(o=>o.type===AA)}const ine=e=>{const{componentCls:t,bodyBg:n,lightSiderBg:r,lightTriggerBg:o,lightTriggerColor:i}=e;return{[`${t}-sider-light`]:{background:r,[`${t}-sider-trigger`]:{color:i,background:o},[`${t}-sider-zero-width-trigger`]:{color:i,background:o,border:`1px solid ${n}`,borderInlineStart:0}}}},ane=e=>{const{antCls:t,componentCls:n,colorText:r,triggerColor:o,footerBg:i,triggerBg:a,headerHeight:l,headerPadding:c,headerColor:d,footerPadding:h,triggerHeight:g,zeroTriggerHeight:p,zeroTriggerWidth:m,motionDurationMid:v,motionDurationSlow:y,fontSize:w,borderRadius:C,bodyBg:b,headerBg:S,siderBg:E}=e;return{[n]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:b,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},[`${n}-sider`]:{position:"relative",minWidth:0,background:E,transition:`all ${v}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:g},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:g,color:o,lineHeight:oe(g),textAlign:"center",background:a,cursor:"pointer",transition:`all ${v}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:l,insetInlineEnd:e.calc(m).mul(-1).equal(),zIndex:1,width:m,height:p,color:o,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:E,borderStartStartRadius:0,borderStartEndRadius:C,borderEndEndRadius:C,borderEndStartRadius:0,cursor:"pointer",transition:`background ${y} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${y}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(m).mul(-1).equal(),borderStartStartRadius:C,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:C}}}}},ine(e)),{"&-rtl":{direction:"rtl"}}),[`${n}-header`]:{height:l,padding:c,color:d,lineHeight:oe(l),background:S,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:h,color:r,fontSize:w,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},lne=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:i,marginXXS:a,colorTextLightSolid:l,colorBgContainer:c}=e,d=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${d}px`,headerColor:o,footerPadding:`${i}px ${d}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+a*2,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:o}},_L=Zn("Layout",e=>[ane(e)],lne,{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]});var EL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);ou.forwardRef((a,l)=>u.createElement(o,Object.assign({ref:l,suffixCls:t,tagName:n},a)))}const Xw=u.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:o,tagName:i}=e,a=EL(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:l}=u.useContext(bt),c=l("layout",n),[d,h,g]=_L(c),p=r?`${c}-${r}`:c;return d(u.createElement(i,Object.assign({className:ne(n||p,o,h,g),ref:t},a)))}),sne=u.forwardRef((e,t)=>{const{direction:n}=u.useContext(bt),[r,o]=u.useState([]),{prefixCls:i,className:a,rootClassName:l,children:c,hasSider:d,tagName:h,style:g}=e,p=EL(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),m=Qn(p,["suffixCls"]),{getPrefixCls:v,layout:y}=u.useContext(bt),w=v("layout",i),C=one(r,c,d),[b,S,E]=_L(w),O=ne(w,{[`${w}-has-sider`]:C,[`${w}-rtl`]:n==="rtl"},y==null?void 0:y.className,a,l,S,E),x=u.useMemo(()=>({siderHook:{addSider:T=>{o(R=>[].concat(Be(R),[T]))},removeSider:T=>{o(R=>R.filter(N=>N!==T))}}}),[]);return b(u.createElement(PA.Provider,{value:x},u.createElement(h,Object.assign({ref:t,className:O,style:Object.assign(Object.assign({},y==null?void 0:y.style),g)},m),c)))}),cne=Pv({tagName:"div",displayName:"Layout"})(sne),une=Pv({suffixCls:"header",tagName:"header",displayName:"Header"})(Xw),dne=Pv({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Xw),fne=Pv({suffixCls:"content",tagName:"main",displayName:"Content"})(Xw),hne=cne,ld=hne;ld.Header=une;ld.Footer=dne;ld.Content=fne;ld.Sider=AA;ld._InternalSiderContext=$v;const gne=ld,pne=new en("antSpinMove",{to:{opacity:1}}),mne=new en("antRotate",{to:{transform:"rotate(405deg)"}}),vne=e=>{const{componentCls:t,calc:n}=e;return{[`${t}`]:Object.assign(Object.assign({},cr(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[`${t}-dot ${t}-dot-item`]:{backgroundColor:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${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"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:pne,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"}},"&-spin":{transform:"rotate(45deg)",animationName:mne,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${t}-dot`]:{fontSize:e.dotSizeSM,i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{fontSize:e.dotSizeLG,i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},yne=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},bne=Zn("Spin",e=>{const t=pn(e,{spinDotDefault:e.colorTextDescription});return[vne(t)]},yne);var Sne=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,spinning:n=!0,delay:r=0,className:o,rootClassName:i,size:a="default",tip:l,wrapperClassName:c,style:d,children:h,fullscreen:g=!1}=e,p=Sne(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen"]),{getPrefixCls:m}=u.useContext(bt),v=m("spin",t),[y,w,C]=bne(v),[b,S]=u.useState(()=>n&&!wne(n,r));u.useEffect(()=>{if(n){const L=FJ(r,()=>{S(!0)});return L(),()=>{var D;(D=L==null?void 0:L.cancel)===null||D===void 0||D.call(L)}}S(!1)},[r,n]);const E=u.useMemo(()=>typeof h<"u"&&!g,[h,g]),{direction:O,spin:x}=u.useContext(bt),T=ne(v,x==null?void 0:x.className,{[`${v}-sm`]:a==="small",[`${v}-lg`]:a==="large",[`${v}-spinning`]:b,[`${v}-show-text`]:!!l,[`${v}-fullscreen`]:g,[`${v}-fullscreen-show`]:g&&b,[`${v}-rtl`]:O==="rtl"},o,i,w,C),R=ne(`${v}-container`,{[`${v}-blur`]:b}),N=Qn(p,["indicator"]),I=Object.assign(Object.assign({},x==null?void 0:x.style),d),P=u.createElement("div",Object.assign({},N,{style:I,className:T,"aria-live":"polite","aria-busy":b}),Cne(v,e),l&&(E||g)?u.createElement("div",{className:`${v}-text`},l):null);return y(E?u.createElement("div",Object.assign({},N,{className:ne(`${v}-nested-loading`,c,w,C)}),b&&u.createElement("div",{key:"loading"},P),u.createElement("div",{className:R,key:"container"},h)):P)};xL.setDefaultIndicator=e=>{Pp=e};const OL=xL;var _ne=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:a,children:l,footer:c}=e,d=_ne(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:h}=u.useContext(bt),g=h(),p=t||h("modal"),m=Yo(g),[v,y,w]=RP(p,m),C=`${p}-confirm`;let b={};return i?b={closable:o??!1,title:"",footer:"",children:u.createElement(NP,Object.assign({},e,{prefixCls:p,confirmPrefixCls:C,rootPrefixCls:g,content:l}))}:b={closable:o??!0,title:a,footer:c!==null&&u.createElement(OP,Object.assign({},e)),children:l},v(u.createElement(dP,Object.assign({prefixCls:p,className:ne(y,`${p}-pure-panel`,i&&C,i&&`${C}-${i}`,n,w,m)},d,{closeIcon:xP(p,r),closable:o},b)))},xne=KP(Ene);function TL(e){return yh(LP(e))}const Ca=IP;Ca.useModal=jK;Ca.info=function(t){return yh(DP(t))};Ca.success=function(t){return yh(BP(t))};Ca.error=function(t){return yh(FP(t))};Ca.warning=TL;Ca.warn=TL;Ca.confirm=function(t){return yh(zP(t))};Ca.destroyAll=function(){for(;rc.length;){const t=rc.pop();t&&t()}};Ca.config=DK;Ca._InternalPanelDoNotUseOrYouWillBeFired=xne;const One=Ca;let ca=null,Ap=e=>e(),Tm=[],eh={};function G$(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:o}=eh,i=(e==null?void 0:e())||document.body;return{getContainer:()=>i,rtl:t,maxCount:n,top:r,bottom:o}}const Tne=se.forwardRef((e,t)=>{const{notificationConfig:n,sync:r}=e,{getPrefixCls:o}=u.useContext(bt),i=eh.prefixCls||o("notification"),a=u.useContext(uG),[l,c]=VP(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),a.notification));return se.useEffect(r,[]),se.useImperativeHandle(t,()=>{const d=Object.assign({},l);return Object.keys(d).forEach(h=>{d[h]=function(){return r(),l[h].apply(l,arguments)}}),{instance:d,sync:r}}),c}),$ne=se.forwardRef((e,t)=>{const[n,r]=se.useState(G$),o=()=>{r(G$)};se.useEffect(o,[]);const i=zM(),a=i.getRootPrefixCls(),l=i.getIconPrefixCls(),c=i.getTheme(),d=se.createElement(Tne,{ref:t,sync:o,notificationConfig:n});return se.createElement(dh,{prefixCls:a,iconPrefixCls:l,theme:c},i.holderRender?i.holderRender(d):d)});function Yw(){if(!ca){const e=document.createDocumentFragment(),t={fragment:e};ca=t,Ap(()=>{cw(se.createElement($ne,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,Yw())})}}),e)});return}ca.instance&&(Tm.forEach(e=>{switch(e.type){case"open":{Ap(()=>{ca.instance.open(Object.assign(Object.assign({},eh),e.config))});break}case"destroy":Ap(()=>{ca==null||ca.instance.destroy(e.key)});break}}),Tm=[])}function Rne(e){eh=Object.assign(Object.assign({},eh),e),Ap(()=>{var t;(t=ca==null?void 0:ca.sync)===null||t===void 0||t.call(ca)})}function $L(e){Tm.push({type:"open",config:e}),Yw()}const Ine=e=>{Tm.push({type:"destroy",key:e}),Yw()},Nne=["success","info","warning","error"],Mne={open:$L,destroy:Ine,config:Rne,useNotification:cG,_InternalPanelDoNotUseOrYouWillBeFired:eG},Lp=Mne;Nne.forEach(e=>{Lp[e]=t=>$L(Object.assign(Object.assign({},t),{type:e}))});var qw=u.createContext(null),Pne=function(t){for(var n=t.prefixCls,r=t.level,o=t.isStart,i=t.isEnd,a="".concat(n,"-indent-unit"),l=[],c=0;c=0&&n.splice(r,1),n}function Hl(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function Qw(e){return e.split("-")}function Fne(e,t){var n=[],r=gi(t,e);function o(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];i.forEach(function(a){var l=a.key,c=a.children;n.push(l),o(c)})}return o(r.children),n}function zne(e){if(e.parent){var t=Qw(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function kne(e){var t=Qw(e.pos);return Number(t[t.length-1])===0}function q$(e,t,n,r,o,i,a,l,c,d){var h,g=e.clientX,p=e.clientY,m=e.target.getBoundingClientRect(),v=m.top,y=m.height,w=(d==="rtl"?-1:1)*(((o==null?void 0:o.x)||0)-g),C=(w-12)/r,b=c.filter(function(B){var M;return(M=l[B])===null||M===void 0||(M=M.children)===null||M===void 0?void 0:M.length}),S=gi(l,n.props.eventKey);if(p-1.5?i({dragNode:D,dropNode:z,dropPosition:1})?I=1:W=!1:i({dragNode:D,dropNode:z,dropPosition:0})?I=0:i({dragNode:D,dropNode:z,dropPosition:1})?I=1:W=!1:i({dragNode:D,dropNode:z,dropPosition:1})?I=1:W=!1,{dropPosition:I,dropLevelOffset:P,dropTargetKey:S.key,dropTargetPos:S.pos,dragOverNodeKey:N,dropContainerKey:I===0?null:((h=S.parent)===null||h===void 0?void 0:h.key)||null,dropAllowed:W}}function Q$(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function cb(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(Pt(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 P1(e,t){var n=new Set;function r(o){if(!n.has(o)){var i=gi(t,o);if(i){n.add(o);var a=i.parent,l=i.node;l.disabled||a&&r(a.key)}}}return(e||[]).forEach(function(o){r(o)}),Be(n)}function jne(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:o.top=0,o.left=-n*r;break;case 1:o.bottom=0,o.left=-n*r;break;case 0:o.bottom=0,o.left=r;break}return u.createElement("div",{style:o})}function RL(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function Hne(e,t){var n=u.useState(!1),r=de(n,2),o=r[0],i=r[1];dn(function(){if(o)return e(),function(){t()}},[o]),dn(function(){return i(!0),function(){i(!1)}},[])}var Wne=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],IL=function(t,n){var r=t.className,o=t.style,i=t.motion,a=t.motionNodes,l=t.motionType,c=t.onMotionStart,d=t.onMotionEnd,h=t.active,g=t.treeNodeRequiredProps,p=Mt(t,Wne),m=u.useState(!0),v=de(m,2),y=v[0],w=v[1],C=u.useContext(qw),b=C.prefixCls,S=a&&l!=="hide";dn(function(){a&&S!==y&&w(S)},[a]);var E=function(){a&&c()},O=u.useRef(!1),x=function(){a&&!O.current&&(O.current=!0,d())};Hne(E,x);var T=function(N){S===N&&x()};return a?u.createElement(Sa,De({ref:n,visible:y},i,{motionAppear:l==="show",onVisibleChanged:T}),function(R,N){var I=R.className,P=R.style;return u.createElement("div",{ref:N,className:ne("".concat(b,"-treenode-motion"),I),style:P},a.map(function(L){var D=Object.assign({},(RL(L.data),L.data)),z=L.title,W=L.key,B=L.isStart,M=L.isEnd;delete D.children;var A=Cf(W,g);return u.createElement(Wu,De({},D,A,{title:z,active:h,data:L.data,key:W,isStart:B,isEnd:M}))}))}):u.createElement(Wu,De({domRef:n,className:r,style:o},p,{active:h}))};IL.displayName="MotionTreeNode";var Une=u.forwardRef(IL);function Vne(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function o(i,a){var l=new Map;i.forEach(function(d){l.set(d,!0)});var c=a.filter(function(d){return!l.has(d)});return c.length===1?c[0]:null}return n ").concat(t);return t}var ML=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var o=e.expandedKeys,i=e.selectedKeys,a=e.checkedKeys,l=e.loadedKeys,c=e.loadingKeys,d=e.halfCheckedKeys,h=e.keyEntities,g=e.disabled,p=e.dragging,m=e.dragOverNodeKey,v=e.dropPosition,y=e.motion,w=e.height,C=e.itemHeight,b=e.virtual,S=e.focusable,E=e.activeItem,O=e.focused,x=e.tabIndex,T=e.onKeyDown,R=e.onFocus,N=e.onBlur,I=e.onActiveChange,P=e.onListChangeStart,L=e.onListChangeEnd,D=Mt(e,Kne),z=u.useRef(null),W=u.useRef(null);u.useImperativeHandle(t,function(){return{scrollTo:function(xe){z.current.scrollTo(xe)},getIndentWidth:function(){return W.current.offsetWidth}}});var B=u.useState(o),M=de(B,2),A=M[0],U=M[1],j=u.useState(r),G=de(j,2),X=G[0],re=G[1],te=u.useState(r),Z=de(te,2),he=Z[0],ge=Z[1],ce=u.useState([]),be=de(ce,2),pe=be[0],ae=be[1],J=u.useState(null),ue=de(J,2),ie=ue[0],Ce=ue[1],Oe=u.useRef(r);Oe.current=r;function Te(){var ve=Oe.current;re(ve),ge(ve),ae([]),Ce(null),L()}dn(function(){U(o);var ve=Vne(A,o);if(ve.key!==null)if(ve.add){var xe=X.findIndex(function(je){var Le=je.key;return Le===ve.key}),Ae=tR(Z$(X,r,ve.key),b,w,C),Pe=X.slice();Pe.splice(xe+1,0,eR),ge(Pe),ae(Ae),Ce("show")}else{var Fe=r.findIndex(function(je){var Le=je.key;return Le===ve.key}),Ee=tR(Z$(r,X,ve.key),b,w,C),Ie=r.slice();Ie.splice(Fe+1,0,eR),ge(Ie),ae(Ee),Ce("hide")}else X!==r&&(re(r),ge(r))},[o,r]),u.useEffect(function(){p||Te()},[p]);var Me=y?he:r,me={expandedKeys:o,selectedKeys:i,loadedKeys:l,loadingKeys:c,checkedKeys:a,halfCheckedKeys:d,dragOverNodeKey:m,dropPosition:v,keyEntities:h};return u.createElement(u.Fragment,null,O&&E&&u.createElement("span",{style:J$,"aria-live":"assertive"},Xne(E)),u.createElement("div",null,u.createElement("input",{style:J$,disabled:S===!1||g,tabIndex:S!==!1?x:null,onKeyDown:T,onFocus:R,onBlur:N,value:"",onChange:Gne,"aria-label":"for screen reader"})),u.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},u.createElement("div",{className:"".concat(n,"-indent")},u.createElement("div",{ref:W,className:"".concat(n,"-indent-unit")}))),u.createElement(Iw,De({},D,{data:Me,itemKey:nR,height:w,fullHeight:!1,virtual:b,itemHeight:C,prefixCls:"".concat(n,"-list"),ref:z,onVisibleChange:function(xe,Ae){var Pe=new Set(xe),Fe=Ae.filter(function(Ee){return!Pe.has(Ee)});Fe.some(function(Ee){return nR(Ee)===yc})&&Te()}}),function(ve){var xe=ve.pos,Ae=Object.assign({},(RL(ve.data),ve.data)),Pe=ve.title,Fe=ve.key,Ee=ve.isStart,Ie=ve.isEnd,je=wh(Fe,xe);delete Ae.key,delete Ae.children;var Le=Cf(je,me);return u.createElement(Une,De({},Ae,Le,{title:Pe,active:!!E&&Fe===E.key,pos:xe,data:ve.data,isStart:Ee,isEnd:Ie,motion:y,motionNodes:Fe===yc?pe:null,motionType:ie,onMotionStart:P,onMotionEnd:Te,treeNodeRequiredProps:me,onMouseMove:function(){I(null)}}))}))});ML.displayName="NodeList";var Yne=10,Zw=function(e){_l(n,e);var t=Cc(n);function n(){var r;Xr(this,n);for(var o=arguments.length,i=new Array(o),a=0;a2&&arguments[2]!==void 0?arguments[2]:!1,g=r.state,p=g.dragChildrenKeys,m=g.dropPosition,v=g.dropTargetKey,y=g.dropTargetPos,w=g.dropAllowed;if(w){var C=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),v!==null){var b=Q(Q({},Cf(v,r.getTreeNodeRequiredProps())),{},{active:((d=r.getActiveItem())===null||d===void 0?void 0:d.key)===v,data:gi(r.state.keyEntities,v).node}),S=p.indexOf(v)!==-1;Vn(!S,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var E=Qw(y),O={event:l,node:mr(b),dragNode:r.dragNode?mr(r.dragNode.props):null,dragNodesKeys:[r.dragNode.props.eventKey].concat(p),dropToGap:m!==0,dropPosition:m+Number(E[E.length-1])};h||C==null||C(O),r.dragNode=null}}}),K(Ne(r),"cleanDragState",function(){var l=r.state.draggingNodeKey;l!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),K(Ne(r),"triggerExpandActionExpand",function(l,c){var d=r.state,h=d.expandedKeys,g=d.flattenNodes,p=c.expanded,m=c.key,v=c.isLeaf;if(!(v||l.shiftKey||l.metaKey||l.ctrlKey)){var y=g.filter(function(C){return C.key===m})[0],w=mr(Q(Q({},Cf(m,r.getTreeNodeRequiredProps())),{},{data:y.data}));r.setExpandedKeys(p?nl(h,m):Hl(h,m)),r.onNodeExpand(l,w)}}),K(Ne(r),"onNodeClick",function(l,c){var d=r.props,h=d.onClick,g=d.expandAction;g==="click"&&r.triggerExpandActionExpand(l,c),h==null||h(l,c)}),K(Ne(r),"onNodeDoubleClick",function(l,c){var d=r.props,h=d.onDoubleClick,g=d.expandAction;g==="doubleClick"&&r.triggerExpandActionExpand(l,c),h==null||h(l,c)}),K(Ne(r),"onNodeSelect",function(l,c){var d=r.state.selectedKeys,h=r.state,g=h.keyEntities,p=h.fieldNames,m=r.props,v=m.onSelect,y=m.multiple,w=c.selected,C=c[p.key],b=!w;b?y?d=Hl(d,C):d=[C]:d=nl(d,C);var S=d.map(function(E){var O=gi(g,E);return O?O.node:null}).filter(function(E){return E});r.setUncontrolledState({selectedKeys:d}),v==null||v(d,{event:"select",selected:b,node:c,selectedNodes:S,nativeEvent:l.nativeEvent})}),K(Ne(r),"onNodeCheck",function(l,c,d){var h=r.state,g=h.keyEntities,p=h.checkedKeys,m=h.halfCheckedKeys,v=r.props,y=v.checkStrictly,w=v.onCheck,C=c.key,b,S={event:"check",node:c,checked:d,nativeEvent:l.nativeEvent};if(y){var E=d?Hl(p,C):nl(p,C),O=nl(m,C);b={checked:E,halfChecked:O},S.checkedNodes=E.map(function(P){return gi(g,P)}).filter(function(P){return P}).map(function(P){return P.node}),r.setUncontrolledState({checkedKeys:E})}else{var x=tb([].concat(Be(p),[C]),!0,g),T=x.checkedKeys,R=x.halfCheckedKeys;if(!d){var N=new Set(T);N.delete(C);var I=tb(Array.from(N),{checked:!1,halfCheckedKeys:R},g);T=I.checkedKeys,R=I.halfCheckedKeys}b=T,S.checkedNodes=[],S.checkedNodesPositions=[],S.halfCheckedKeys=R,T.forEach(function(P){var L=gi(g,P);if(L){var D=L.node,z=L.pos;S.checkedNodes.push(D),S.checkedNodesPositions.push({node:D,pos:z})}}),r.setUncontrolledState({checkedKeys:T},!1,{halfCheckedKeys:R})}w==null||w(b,S)}),K(Ne(r),"onNodeLoad",function(l){var c=l.key,d=new Promise(function(h,g){r.setState(function(p){var m=p.loadedKeys,v=m===void 0?[]:m,y=p.loadingKeys,w=y===void 0?[]:y,C=r.props,b=C.loadData,S=C.onLoad;if(!b||v.indexOf(c)!==-1||w.indexOf(c)!==-1)return null;var E=b(l);return E.then(function(){var O=r.state.loadedKeys,x=Hl(O,c);S==null||S(x,{event:"load",node:l}),r.setUncontrolledState({loadedKeys:x}),r.setState(function(T){return{loadingKeys:nl(T.loadingKeys,c)}}),h()}).catch(function(O){if(r.setState(function(T){return{loadingKeys:nl(T.loadingKeys,c)}}),r.loadingRetryTimes[c]=(r.loadingRetryTimes[c]||0)+1,r.loadingRetryTimes[c]>=Yne){var x=r.state.loadedKeys;Vn(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:Hl(x,c)}),h()}g(O)}),{loadingKeys:Hl(w,c)}})});return d.catch(function(){}),d}),K(Ne(r),"onNodeMouseEnter",function(l,c){var d=r.props.onMouseEnter;d==null||d({event:l,node:c})}),K(Ne(r),"onNodeMouseLeave",function(l,c){var d=r.props.onMouseLeave;d==null||d({event:l,node:c})}),K(Ne(r),"onNodeContextMenu",function(l,c){var d=r.props.onRightClick;d&&(l.preventDefault(),d({event:l,node:c}))}),K(Ne(r),"onFocus",function(){var l=r.props.onFocus;r.setState({focused:!0});for(var c=arguments.length,d=new Array(c),h=0;h1&&arguments[1]!==void 0?arguments[1]:!1,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var h=!1,g=!0,p={};Object.keys(l).forEach(function(m){if(m in r.props){g=!1;return}h=!0,p[m]=l[m]}),h&&(!c||g)&&r.setState(Q(Q({},p),d))}}),K(Ne(r),"scrollTo",function(l){r.listRef.current.scrollTo(l)}),r}return Yr(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var o=this.props,i=o.activeKey,a=o.itemScrollOffset,l=a===void 0?0:a;i!==void 0&&i!==this.state.activeKey&&(this.setState({activeKey:i}),i!==null&&this.scrollTo({key:i,offset:l}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var o=this.state,i=o.focused,a=o.flattenNodes,l=o.keyEntities,c=o.draggingNodeKey,d=o.activeKey,h=o.dropLevelOffset,g=o.dropContainerKey,p=o.dropTargetKey,m=o.dropPosition,v=o.dragOverNodeKey,y=o.indent,w=this.props,C=w.prefixCls,b=w.className,S=w.style,E=w.showLine,O=w.focusable,x=w.tabIndex,T=x===void 0?0:x,R=w.selectable,N=w.showIcon,I=w.icon,P=w.switcherIcon,L=w.draggable,D=w.checkable,z=w.checkStrictly,W=w.disabled,B=w.motion,M=w.loadData,A=w.filterTreeNode,U=w.height,j=w.itemHeight,G=w.virtual,X=w.titleRender,re=w.dropIndicatorRender,te=w.onContextMenu,Z=w.onScroll,he=w.direction,ge=w.rootClassName,ce=w.rootStyle,be=ya(this.props,{aria:!0,data:!0}),pe;return L&&(Pt(L)==="object"?pe=L:typeof L=="function"?pe={nodeDraggable:L}:pe={}),u.createElement(qw.Provider,{value:{prefixCls:C,selectable:R,showIcon:N,icon:I,switcherIcon:P,draggable:pe,draggingNodeKey:c,checkable:D,checkStrictly:z,disabled:W,keyEntities:l,dropLevelOffset:h,dropContainerKey:g,dropTargetKey:p,dropPosition:m,dragOverNodeKey:v,indent:y,direction:he,dropIndicatorRender:re,loadData:M,filterTreeNode:A,titleRender:X,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}},u.createElement("div",{role:"tree",className:ne(C,b,ge,K(K(K({},"".concat(C,"-show-line"),E),"".concat(C,"-focused"),i),"".concat(C,"-active-focused"),d!==null)),style:ce},u.createElement(ML,De({ref:this.listRef,prefixCls:C,style:S,data:a,disabled:W,selectable:R,checkable:!!D,motion:B,dragging:c!==null,height:U,itemHeight:j,virtual:G,focusable:O,focused:i,tabIndex:T,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:te,onScroll:Z},this.getTreeNodeRequiredProps(),be))))}}],[{key:"getDerivedStateFromProps",value:function(o,i){var a=i.prevProps,l={prevProps:o};function c(x){return!a&&x in o||a&&a[x]!==o[x]}var d,h=i.fieldNames;if(c("fieldNames")&&(h=Hu(o.fieldNames),l.fieldNames=h),c("treeData")?d=o.treeData:c("children")&&(Vn(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),d=tL(o.children)),d){l.treeData=d;var g=nL(d,{fieldNames:h});l.keyEntities=Q(K({},yc,NL),g.keyEntities)}var p=l.keyEntities||i.keyEntities;if(c("expandedKeys")||a&&c("autoExpandParent"))l.expandedKeys=o.autoExpandParent||!a&&o.defaultExpandParent?P1(o.expandedKeys,p):o.expandedKeys;else if(!a&&o.defaultExpandAll){var m=Q({},p);delete m[yc],l.expandedKeys=Object.keys(m).map(function(x){return m[x].key})}else!a&&o.defaultExpandedKeys&&(l.expandedKeys=o.autoExpandParent||o.defaultExpandParent?P1(o.defaultExpandedKeys,p):o.defaultExpandedKeys);if(l.expandedKeys||delete l.expandedKeys,d||l.expandedKeys){var v=eb(d||i.treeData,l.expandedKeys||i.expandedKeys,h);l.flattenNodes=v}if(o.selectable&&(c("selectedKeys")?l.selectedKeys=Q$(o.selectedKeys,o):!a&&o.defaultSelectedKeys&&(l.selectedKeys=Q$(o.defaultSelectedKeys,o))),o.checkable){var y;if(c("checkedKeys")?y=cb(o.checkedKeys)||{}:!a&&o.defaultCheckedKeys?y=cb(o.defaultCheckedKeys)||{}:d&&(y=cb(o.checkedKeys)||{checkedKeys:i.checkedKeys,halfCheckedKeys:i.halfCheckedKeys}),y){var w=y,C=w.checkedKeys,b=C===void 0?[]:C,S=w.halfCheckedKeys,E=S===void 0?[]:S;if(!o.checkStrictly){var O=tb(b,!0,p);b=O.checkedKeys,E=O.halfCheckedKeys}l.checkedKeys=b,l.halfCheckedKeys=E}}return c("loadedKeys")&&(l.loadedKeys=o.loadedKeys),l}}]),n}(u.Component);K(Zw,"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:jne,allowDrop:function(){return!0},expandAction:!1});K(Zw,"TreeNode",Wu);var qne={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"};const Qne=qne;var Zne=function(t,n){return u.createElement(Sn,De({},t,{ref:n,icon:Qne}))},Jne=u.forwardRef(Zne);const PL=Jne;var ere={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"};const tre=ere;var nre=function(t,n){return u.createElement(Sn,De({},t,{ref:n,icon:tre}))},rre=u.forwardRef(nre);const ore=rre;var ire={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"};const are=ire;var lre=function(t,n){return u.createElement(Sn,De({},t,{ref:n,icon:are}))},sre=u.forwardRef(lre);const cre=sre;var ure={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"};const dre=ure;var fre=function(t,n){return u.createElement(Sn,De({},t,{ref:n,icon:dre}))},hre=u.forwardRef(fre);const gre=hre,pre=new en("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),mre=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),vre=(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:`${oe(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),yre=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:i,nodeSelectedBg:a,nodeHoverBg:l}=t,c=t.paddingXS;return{[n]:Object.assign(Object.assign({},cr(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},fv(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:pre,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${r}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${oe(o)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:i,lineHeight:`${oe(i)}`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${r}:hover &`]:{opacity:.45}},[`&${r}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:i}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:Object.assign(Object.assign({},mre(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,margin:0,lineHeight:`${oe(i)}`,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,borderRadius:t.borderRadius,"&-noop":{cursor:"unset"},[`&:not(${n}-switcher-noop):hover`]:{backgroundColor:t.colorBgTextHover},"&_close":{[`${n}-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(i).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(i).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:c,alignSelf:"flex-start",marginTop:t.marginXXS},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:i,margin:0,padding:`0 ${oe(t.calc(t.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:`${oe(i)}`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:l},[`&${n}-node-selected`]:{backgroundColor:a},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,lineHeight:`${oe(i)}`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:Object.assign({lineHeight:`${oe(i)}`,userSelect:"none"},vre(e,t)),[`${r}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${oe(t.calc(i).div(2).equal())} !important`}}}}})}},bre=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:r,directoryNodeSelectedBg:o,directoryNodeSelectedColor:i}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:i,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:o},[`${t}-switcher`]:{color:i},[`${t}-node-content-wrapper`]:{color:i,background:"transparent"}}}}}},Sre=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,o=t.calc(t.paddingXS).div(2).equal(),i=pn(t,{treeCls:n,treeNodeCls:r,treeNodePadding:o});return[yre(e,i),bre(i)]},Cre=e=>{const{controlHeightSM:t}=e;return{titleHeight:t,nodeHoverBg:e.controlItemBgHover,nodeSelectedBg:e.controlItemBgActive}},wre=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},Cre(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},_re=Zn("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:oL(`${n}-checkbox`,e)},Sre(n,e),bw(e)]},wre),rR=4;function Ere(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:o,direction:i="ltr"}=e,a=i==="ltr"?"left":"right",l=i==="ltr"?"right":"left",c={[a]:-n*o+rR,[l]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[a]=o+rR;break}return se.createElement("div",{style:c,className:`${r}-drop-indicator`})}var xre={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"};const Ore=xre;var Tre=function(t,n){return u.createElement(Sn,De({},t,{ref:n,icon:Ore}))},$re=u.forwardRef(Tre);const Rre=$re;var Ire={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"};const Nre=Ire;var Mre=function(t,n){return u.createElement(Sn,De({},t,{ref:n,icon:Nre}))},Pre=u.forwardRef(Mre);const Are=Pre;var Lre={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"};const Dre=Lre;var Bre=function(t,n){return u.createElement(Sn,De({},t,{ref:n,icon:Dre}))},Fre=u.forwardRef(Bre);const zre=Fre,kre=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:o}=e,{isLeaf:i,expanded:a,loading:l}=r;if(l)return u.createElement(fh,{className:`${t}-switcher-loading-icon`});let c;if(o&&typeof o=="object"&&(c=o.showLeafIcon),i){if(!o)return null;if(typeof c!="boolean"&&c){const g=typeof c=="function"?c(r):c,p=`${t}-switcher-line-custom-icon`;return u.isValidElement(g)?Oo(g,{className:ne(g.props.className||"",p)}):g}return c?u.createElement(PL,{className:`${t}-switcher-line-icon`}):u.createElement("span",{className:`${t}-switcher-leaf-line`})}const d=`${t}-switcher-icon`,h=typeof n=="function"?n(r):n;return u.isValidElement(h)?Oo(h,{className:ne(h.props.className||"",d)}):h!==void 0?h:o?a?u.createElement(Are,{className:`${t}-switcher-line-icon`}):u.createElement(zre,{className:`${t}-switcher-line-icon`}):u.createElement(Rre,{className:d})},jre=kre,Hre=se.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,virtual:i,tree:a}=se.useContext(bt),{prefixCls:l,className:c,showIcon:d=!1,showLine:h,switcherIcon:g,blockNode:p=!1,children:m,checkable:v=!1,selectable:y=!0,draggable:w,motion:C,style:b}=e,S=r("tree",l),E=r(),O=C??Object.assign(Object.assign({},vm(E)),{motionAppear:!1}),x=Object.assign(Object.assign({},e),{checkable:v,selectable:y,showIcon:d,motion:O,blockNode:p,showLine:!!h,dropIndicatorRender:Ere}),[T,R,N]=_re(S),[,I]=Dr(),P=I.paddingXS/2+(((n=I.Tree)===null||n===void 0?void 0:n.titleHeight)||I.controlHeightSM),L=se.useMemo(()=>{if(!w)return!1;let z={};switch(typeof w){case"function":z.nodeDraggable=w;break;case"object":z=Object.assign({},w);break}return z.icon!==!1&&(z.icon=z.icon||se.createElement(gre,null)),z},[w]),D=z=>se.createElement(jre,{prefixCls:S,switcherIcon:g,treeNodeProps:z,showLine:h});return T(se.createElement(Zw,Object.assign({itemHeight:P,ref:t,virtual:i},x,{style:Object.assign(Object.assign({},a==null?void 0:a.style),b),prefixCls:S,className:ne({[`${S}-icon-hide`]:!d,[`${S}-block-node`]:p,[`${S}-unselectable`]:!y,[`${S}-rtl`]:o==="rtl"},a==null?void 0:a.className,c,R,N),direction:o,checkable:v&&se.createElement("span",{className:`${S}-checkbox-inner`}),selectable:y,switcherIcon:D,draggable:L}),m))}),AL=Hre,oR=0,ub=1,iR=2;function Jw(e,t,n){const{key:r,children:o}=n;function i(a){const l=a[r],c=a[o];t(l,a)!==!1&&Jw(c||[],t,n)}e.forEach(i)}function Wre(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:o,fieldNames:i}=e;const a=[];let l=oR;if(r&&r===o)return[r];if(!r||!o)return[];function c(d){return d===r||d===o}return Jw(t,d=>{if(l===iR)return!1;if(c(d)){if(a.push(d),l===oR)l=ub;else if(l===ub)return l=iR,!1}else l===ub&&a.push(d);return n.includes(d)},Hu(i)),a}function db(e,t,n){const r=Be(t),o=[];return Jw(e,(i,a)=>{const l=r.indexOf(i);return l!==-1&&(o.push(a),r.splice(l,1)),!!r.length},Hu(n)),o}var aR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:o}=e,i=aR(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const a=u.useRef(),l=u.useRef(),c=()=>{const{keyEntities:R}=nL(lR(i));let N;return n?N=Object.keys(R):r?N=P1(i.expandedKeys||o||[],R):N=i.expandedKeys||o||[],N},[d,h]=u.useState(i.selectedKeys||i.defaultSelectedKeys||[]),[g,p]=u.useState(()=>c());u.useEffect(()=>{"selectedKeys"in i&&h(i.selectedKeys)},[i.selectedKeys]),u.useEffect(()=>{"expandedKeys"in i&&p(i.expandedKeys)},[i.expandedKeys]);const m=(R,N)=>{var I;return"expandedKeys"in i||p(R),(I=i.onExpand)===null||I===void 0?void 0:I.call(i,R,N)},v=(R,N)=>{var I;const{multiple:P,fieldNames:L}=i,{node:D,nativeEvent:z}=N,{key:W=""}=D,B=lR(i),M=Object.assign(Object.assign({},N),{selected:!0}),A=(z==null?void 0:z.ctrlKey)||(z==null?void 0:z.metaKey),U=z==null?void 0:z.shiftKey;let j;P&&A?(j=R,a.current=W,l.current=j,M.selectedNodes=db(B,j,L)):P&&U?(j=Array.from(new Set([].concat(Be(l.current||[]),Be(Wre({treeData:B,expandedKeys:g,startKey:W,endKey:a.current,fieldNames:L}))))),M.selectedNodes=db(B,j,L)):(j=[W],a.current=W,l.current=j,M.selectedNodes=db(B,j,L)),(I=i.onSelect)===null||I===void 0||I.call(i,j,M),"selectedKeys"in i||h(j)},{getPrefixCls:y,direction:w}=u.useContext(bt),{prefixCls:C,className:b,showIcon:S=!0,expandAction:E="click"}=i,O=aR(i,["prefixCls","className","showIcon","expandAction"]),x=y("tree",C),T=ne(`${x}-directory`,{[`${x}-directory-rtl`]:w==="rtl"},b);return u.createElement(AL,Object.assign({icon:Ure,ref:t,blockNode:!0},O,{showIcon:S,expandAction:E,prefixCls:x,className:T,expandedKeys:g,selectedKeys:d,onSelect:v,onExpand:m}))},Kre=u.forwardRef(Vre),Gre=Kre,e_=AL;e_.DirectoryTree=Gre;e_.TreeNode=Wu;const Xre=e_;var Yre=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const n=d=>{const{keyCode:h}=d;h===_e.ENTER&&d.preventDefault()},r=d=>{const{keyCode:h}=d,{onClick:g}=e;h===_e.ENTER&&g&&g()},{style:o,noStyle:i,disabled:a}=e,l=Yre(e,["style","noStyle","disabled"]);let c={};return i||(c=Object.assign({},qre)),a&&(c.pointerEvents="none"),c=Object.assign(Object.assign({},c),o),u.createElement("div",Object.assign({role:"button",tabIndex:0,ref:t},l,{onKeyDown:n,onKeyUp:r,style:c}))}),LL=Qre;var Zre={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"};const Jre=Zre;var eoe=function(t,n){return u.createElement(Sn,De({},t,{ref:n,icon:Jre}))},toe=u.forwardRef(eoe);const noe=toe;var roe={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"};const ooe=roe;var ioe=function(t,n){return u.createElement(Sn,De({},t,{ref:n,icon:ooe}))},aoe=u.forwardRef(ioe);const loe=aoe,soe=(e,t,n,r)=>{const{titleMarginBottom:o,fontWeightStrong:i}=r;return{marginBottom:o,color:n,fontWeight:i,fontSize:e,lineHeight:t}},coe=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[` h${r}&, div&-h${r}, div&-h${r} > textarea, h${r} `]=soe(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},uoe=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},SM(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},doe=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:hW[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),foe=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${oe(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},hoe=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),goe=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),poe=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},coe(e)),{[` & + h1${t}, & + h2${t}, & + h3${t}, & + h4${t}, & + h5${t} `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),doe(e)),uoe(e)),{[` ${t}-expand, ${t}-collapse, ${t}-edit, ${t}-copy `]:Object.assign(Object.assign({},SM(e)),{marginInlineStart:e.marginXXS})}),foe(e)),hoe(e)),goe()),{"&-rtl":{direction:"rtl"}})}},moe=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),DL=Zn("Typography",e=>[poe(e)],moe),voe=e=>{const{prefixCls:t,"aria-label":n,className:r,style:o,direction:i,maxLength:a,autoSize:l=!0,value:c,onSave:d,onCancel:h,onEnd:g,component:p,enterIcon:m=u.createElement(loe,null)}=e,v=u.useRef(null),y=u.useRef(!1),w=u.useRef(),[C,b]=u.useState(c);u.useEffect(()=>{b(c)},[c]),u.useEffect(()=>{if(v.current&&v.current.resizableTextArea){const{textArea:W}=v.current.resizableTextArea;W.focus();const{length:B}=W.value;W.setSelectionRange(B,B)}},[]);const S=W=>{let{target:B}=W;b(B.value.replace(/[\n\r]/g,""))},E=()=>{y.current=!0},O=()=>{y.current=!1},x=W=>{let{keyCode:B}=W;y.current||(w.current=B)},T=()=>{d(C.trim())},R=W=>{let{keyCode:B,ctrlKey:M,altKey:A,metaKey:U,shiftKey:j}=W;w.current===B&&!y.current&&!M&&!A&&!U&&!j&&(B===_e.ENTER?(T(),g==null||g()):B===_e.ESC&&h())},N=()=>{T()},I=p?`${t}-${p}`:"",[P,L,D]=DL(t),z=ne(t,`${t}-edit-content`,{[`${t}-rtl`]:i==="rtl"},r,I,L,D);return P(u.createElement("div",{className:z,style:o},u.createElement(Kw,{ref:v,maxLength:a,value:C,onChange:S,onKeyDown:x,onKeyUp:R,onCompositionStart:E,onCompositionEnd:O,onBlur:N,"aria-label":n,rows:1,autoSize:l}),m!==null?Oo(m,{className:`${t}-edit-content-confirm`}):null))},yoe=voe;var boe=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var g=sR[t.format]||sR.default;window.clipboardData.setData(g,e)}else h.clipboardData.clearData(),h.clipboardData.setData(t.format,e);t.onCopy&&(h.preventDefault(),t.onCopy(h.clipboardData))}),document.body.appendChild(l),i.selectNodeContents(l),a.addRange(i);var d=document.execCommand("copy");if(!d)throw new Error("copy command was unsuccessful");c=!0}catch(h){n&&console.error("unable to copy using execCommand: ",h),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(g){n&&console.error("unable to copy using clipboardData: ",g),n&&console.error("falling back to prompt"),r=woe("message"in t?t.message:Coe),window.prompt(r,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(i):a.removeAllRanges()),l&&document.body.removeChild(l),o()}return c}var Eoe=_oe;const xoe=nh(Eoe);var Ooe=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(h){try{d(r.next(h))}catch(g){a(g)}}function c(h){try{d(r.throw(h))}catch(g){a(g)}}function d(h){h.done?i(h.value):o(h.value).then(l,c)}d((r=r.apply(e,t||[])).next())})};const Toe=e=>{let{copyConfig:t,children:n}=e;const[r,o]=u.useState(!1),[i,a]=u.useState(!1),l=u.useRef(null),c=()=>{l.current&&clearTimeout(l.current)},d={};t.format&&(d.format=t.format),u.useEffect(()=>c,[]);const h=yr(g=>Ooe(void 0,void 0,void 0,function*(){var p;g==null||g.preventDefault(),g==null||g.stopPropagation(),a(!0);try{const m=typeof t.text=="function"?yield t.text():t.text;xoe(m||String(n)||"",d),a(!1),o(!0),c(),l.current=setTimeout(()=>{o(!1)},3e3),(p=t.onCopy)===null||p===void 0||p.call(t,g)}catch(m){throw a(!1),m}}));return{copied:r,copyLoading:i,onClick:h}};function fb(e,t){return u.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const $oe=(e,t)=>{const n=u.useRef(!1);u.useEffect(()=>{n.current?e():n.current=!0},t)};var Roe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,component:r="article",className:o,rootClassName:i,setContentRef:a,children:l,direction:c,style:d}=e,h=Roe(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:g,direction:p,typography:m}=u.useContext(bt),v=c??p;let y=t;a&&(y=wi(t,a));const w=g("typography",n),[C,b,S]=DL(w),E=ne(w,m==null?void 0:m.className,{[`${w}-rtl`]:v==="rtl"},o,i,b,S),O=Object.assign(Object.assign({},m==null?void 0:m.style),d);return C(u.createElement(r,Object.assign({className:E,style:O,ref:y},h),l))}),BL=Ioe;var Noe={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"};const Moe=Noe;var Poe=function(t,n){return u.createElement(Sn,De({},t,{ref:n,icon:Moe}))},Aoe=u.forwardRef(Poe);const Loe=Aoe;function cR(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function tp(e,t,n){return e===!0||e===void 0?t:e||n&&t}function Doe(e){const{prefixCls:t,copied:n,locale:r={},onCopy:o,iconOnly:i,tooltips:a,icon:l,loading:c}=e,d=cR(a),h=cR(l),{copied:g,copy:p}=r,m=n?tp(d[1],g):tp(d[0],p),y=typeof m=="string"?m:n?g:p;return u.createElement(td,{key:"copy",title:m},u.createElement(LL,{className:ne(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),onClick:o,"aria-label":y},n?tp(h[1],u.createElement(uA,null),!0):tp(h[0],c?u.createElement(fh,null):u.createElement(Loe,null),!0)))}const np=u.forwardRef((e,t)=>{let{style:n,children:r}=e;const o=u.useRef(null);return u.useImperativeHandle(t,()=>({isExceed:()=>{const i=o.current;return i.scrollHeight>i.clientHeight},getHeight:()=>o.current.clientHeight})),u.createElement("span",{"aria-hidden":!0,ref:o,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},n)},r)});function FL(e){const t=typeof e;return t==="string"||t==="number"}function Boe(e){let t=0;return e.forEach(n=>{FL(n)?t+=String(n).length:t+=1}),t}function uR(e,t){let n=0;const r=[];for(let o=0;ot){const d=t-n;return r.push(String(i).slice(0,d)),r}r.push(i),n=c}return e}const hb=0,gb=1,pb=2,dR=3,rp={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function Foe(e){const{enableMeasure:t,width:n,text:r,children:o,rows:i,expanded:a,miscDeps:l,onEllipsis:c}=e,d=u.useMemo(()=>xo(r),[r]),h=u.useMemo(()=>Boe(d),[r]),g=u.useMemo(()=>o(d,!1),[r]),[p,m]=u.useState(null),v=u.useRef(null),y=u.useRef(null),w=u.useRef(null),C=u.useRef(null),[b,S]=u.useState(!1),[E,O]=u.useState(hb),[x,T]=u.useState(0);dn(()=>{O(t&&n&&h?gb:hb)},[n,r,i,t,d]),dn(()=>{var P,L,D,z;if(E===gb){const W=!!(!((P=y.current)===null||P===void 0)&&P.isExceed());O(W?pb:dR),m(W?[0,h]:null),S(W);const B=((L=y.current)===null||L===void 0?void 0:L.getHeight())||0,M=i===1?0:((D=w.current)===null||D===void 0?void 0:D.getHeight())||0,A=((z=C.current)===null||z===void 0?void 0:z.getHeight())||0,U=M+A,j=Math.max(B,U);T(j+1),c(W)}},[E]);const R=p?Math.ceil((p[0]+p[1])/2):0;dn(()=>{var P;const[L,D]=p||[0,0];if(L!==D){const W=(((P=v.current)===null||P===void 0?void 0:P.getHeight())||0)>x;let B=R;D-L===1&&(B=W?L:D),m(W?[L,B]:[B,D])}},[p,R]);const N=u.useMemo(()=>{if(E!==pb||!p||p[0]!==p[1]){const P=o(d,!1);return E!==dR&&E!==hb?u.createElement("span",{style:Object.assign(Object.assign({},rp),{WebkitLineClamp:i})},P):P}return o(a?d:uR(d,p[0]),b)},[a,E,p,d].concat(Be(l))),I={width:n,whiteSpace:"normal",margin:0,padding:0};return u.createElement(u.Fragment,null,N,E===gb&&u.createElement(u.Fragment,null,u.createElement(np,{style:Object.assign(Object.assign(Object.assign({},I),rp),{WebkitLineClamp:i}),ref:y},g),u.createElement(np,{style:Object.assign(Object.assign(Object.assign({},I),rp),{WebkitLineClamp:i-1}),ref:w},g),u.createElement(np,{style:Object.assign(Object.assign(Object.assign({},I),rp),{WebkitLineClamp:1}),ref:C},o([],!0))),E===pb&&p&&p[0]!==p[1]&&u.createElement(np,{style:Object.assign(Object.assign({},I),{top:400}),ref:v},o(uR(d,R),!0)))}const zoe=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:o}=e;return!(o!=null&&o.title)||!t?r:u.createElement(td,Object.assign({open:n?void 0:!1},o),r)},koe=zoe;var joe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r,o;const{prefixCls:i,className:a,style:l,type:c,disabled:d,children:h,ellipsis:g,editable:p,copyable:m,component:v,title:y}=e,w=joe(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:C,direction:b}=u.useContext(bt),[S]=Xu("Text"),E=u.useRef(null),O=u.useRef(null),x=C("typography",i),T=Qn(w,["mark","code","delete","underline","strong","keyboard","italic"]),[R,N]=fb(p),[I,P]=Vr(!1,{value:N.editing}),{triggerType:L=["icon"]}=N,D=He=>{var Qe;He&&((Qe=N.onStart)===null||Qe===void 0||Qe.call(N)),P(He)};$oe(()=>{var He;I||(He=O.current)===null||He===void 0||He.focus()},[I]);const z=He=>{He==null||He.preventDefault(),D(!0)},W=He=>{var Qe;(Qe=N.onChange)===null||Qe===void 0||Qe.call(N,He),D(!1)},B=()=>{var He;(He=N.onCancel)===null||He===void 0||He.call(N),D(!1)},[M,A]=fb(m),{copied:U,copyLoading:j,onClick:G}=Toe({copyConfig:A,children:h}),[X,re]=u.useState(!1),[te,Z]=u.useState(!1),[he,ge]=u.useState(!1),[ce,be]=u.useState(!1),[pe,ae]=u.useState(!0),[J,ue]=fb(g,{expandable:!1,symbol:He=>He?S==null?void 0:S.collapse:S==null?void 0:S.expand}),[ie,Ce]=Vr(ue.defaultExpanded||!1,{value:ue.expanded}),Oe=J&&(!ie||ue.expandable==="collapsible"),{rows:Te=1}=ue,Me=u.useMemo(()=>Oe&&(ue.suffix!==void 0||ue.onEllipsis||ue.expandable||R||M),[Oe,ue,R,M]);dn(()=>{J&&!Me&&(re(wT("webkitLineClamp")),Z(wT("textOverflow")))},[Me,J]);const[me,ve]=u.useState(Oe),xe=u.useMemo(()=>Me?!1:Te===1?te:X,[Me,te,X]);dn(()=>{ve(xe&&Oe)},[xe,Oe]);const Ae=Oe&&(me?ce:he),Pe=Oe&&Te===1&&me,Fe=Oe&&Te>1&&me,Ee=(He,Qe)=>{var It;Ce(Qe.expanded),(It=ue.onExpand)===null||It===void 0||It.call(ue,He,Qe)},[Ie,je]=u.useState(0),Le=He=>{let{offsetWidth:Qe}=He;je(Qe)},Ue=He=>{var Qe;ge(He),he!==He&&((Qe=ue.onEllipsis)===null||Qe===void 0||Qe.call(ue,He))};u.useEffect(()=>{const He=E.current;if(J&&me&&He){const Qe=Fe?He.offsetHeight{const He=E.current;if(typeof IntersectionObserver>"u"||!He||!me||!Oe)return;const Qe=new IntersectionObserver(()=>{ae(!!He.offsetParent)});return Qe.observe(He),()=>{Qe.disconnect()}},[me,Oe]);let Ve={};ue.tooltip===!0?Ve={title:(n=N.text)!==null&&n!==void 0?n:h}:u.isValidElement(ue.tooltip)?Ve={title:ue.tooltip}:typeof ue.tooltip=="object"?Ve=Object.assign({title:(r=N.text)!==null&&r!==void 0?r:h},ue.tooltip):Ve={title:ue.tooltip};const We=u.useMemo(()=>{const He=Qe=>["string","number"].includes(typeof Qe);if(!(!J||me)){if(He(N.text))return N.text;if(He(h))return h;if(He(y))return y;if(He(Ve.title))return Ve.title}},[J,me,y,Ve.title,Ae]);if(I)return u.createElement(yoe,{value:(o=N.text)!==null&&o!==void 0?o:typeof h=="string"?h:"",onSave:W,onCancel:B,onEnd:N.onEnd,prefixCls:x,className:a,style:l,direction:b,component:v,maxLength:N.maxLength,autoSize:N.autoSize,enterIcon:N.enterIcon});const Ke=()=>{const{expandable:He,symbol:Qe}=ue;return!He||ie&&He!=="collapsible"?null:u.createElement("a",{key:"expand",className:`${x}-${ie?"collapse":"expand"}`,onClick:It=>Ee(It,{expanded:!ie}),"aria-label":ie?S.collapse:S==null?void 0:S.expand},typeof Qe=="function"?Qe(ie):Qe)},Et=()=>{if(!R)return;const{icon:He,tooltip:Qe}=N,It=xo(Qe)[0]||(S==null?void 0:S.edit),Ht=typeof It=="string"?It:"";return L.includes("icon")?u.createElement(td,{key:"edit",title:Qe===!1?"":It},u.createElement(LL,{ref:O,className:`${x}-edit`,onClick:z,"aria-label":Ht},He||u.createElement(noe,{role:"button"}))):null},ht=()=>M?u.createElement(Doe,Object.assign({key:"copy"},A,{prefixCls:x,copied:U,locale:S,onCopy:G,loading:j,iconOnly:h==null})):null,At=He=>[He&&Ke(),Et(),ht()],Kt=He=>[He&&!ie&&u.createElement("span",{"aria-hidden":!0,key:"ellipsis"},Woe),ue.suffix,At(He)];return u.createElement(Hi,{onResize:Le,disabled:!Oe},He=>u.createElement(koe,{tooltipProps:Ve,enableEllipsis:Oe,isEllipsis:Ae},u.createElement(BL,Object.assign({className:ne({[`${x}-${c}`]:c,[`${x}-disabled`]:d,[`${x}-ellipsis`]:J,[`${x}-single-line`]:Oe&&Te===1&&!ie,[`${x}-ellipsis-single-line`]:Pe,[`${x}-ellipsis-multiple-line`]:Fe},a),prefixCls:i,style:Object.assign(Object.assign({},l),{WebkitLineClamp:Fe?Te:void 0}),component:v,ref:wi(He,E,t),direction:b,onClick:L.includes("text")?z:void 0,"aria-label":We==null?void 0:We.toString(),title:y},T),u.createElement(Foe,{enableMeasure:Oe&&!me,text:h,rows:Te,width:Ie,onEllipsis:Ue,expanded:ie,miscDeps:[U,ie,j,R,M]},(Qe,It)=>{let Ht=Qe;return Qe.length&&It&&!ie&&We&&(Ht=u.createElement("span",{key:"show-content","aria-hidden":!0},Ht)),Hoe(e,u.createElement(u.Fragment,null,Ht,Kt(It)))}))))}),Av=Uoe;var Voe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var{ellipsis:n,rel:r}=e,o=Voe(e,["ellipsis","rel"]);const i=Object.assign(Object.assign({},o),{rel:r===void 0&&o.target==="_blank"?"noopener noreferrer":r});return delete i.navigate,u.createElement(Av,Object.assign({},i,{ref:t,ellipsis:!!n,component:"a"}))}),Goe=Koe,Xoe=u.forwardRef((e,t)=>u.createElement(Av,Object.assign({ref:t},e,{component:"div"}))),Yoe=Xoe;var qoe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var{ellipsis:n}=e,r=qoe(e,["ellipsis"]);const o=u.useMemo(()=>n&&typeof n=="object"?Qn(n,["expandable","rows"]):n,[n]);return u.createElement(Av,Object.assign({ref:t},r,{ellipsis:o,component:"span"}))},Zoe=u.forwardRef(Qoe);var Joe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{level:n=1}=e,r=Joe(e,["level"]);let o;return eie.includes(n)?o=`h${n}`:o="h1",u.createElement(Av,Object.assign({ref:t},r,{component:o}))}),nie=tie,_h=BL;_h.Text=Zoe;_h.Link=Goe;_h.Title=nie;_h.Paragraph=Yoe;const zL=_h;var da={},Lv={},wa={},Br={};Object.defineProperty(Br,"__esModule",{value:!0});Br.Orientation=void 0;class hl{static flip(t){return t===hl.HORZ?hl.VERT:hl.HORZ}constructor(t){this._name=t}getName(){return this._name}toString(){return this._name}}Br.Orientation=hl;hl.HORZ=new hl("horz");hl.VERT=new hl("vert");var go={};Object.defineProperty(go,"__esModule",{value:!0});go.Rect=void 0;const rie=Br;class Su{static empty(){return new Su(0,0,0,0)}constructor(t,n,r,o){this.x=t,this.y=n,this.width=r,this.height=o}static fromElement(t){let{x:n,y:r,width:o,height:i}=t.getBoundingClientRect();return new Su(n,r,o,i)}clone(){return new Su(this.x,this.y,this.width,this.height)}equals(t){return this.x===(t==null?void 0:t.x)&&this.y===(t==null?void 0:t.y)&&this.width===(t==null?void 0:t.width)&&this.height===(t==null?void 0:t.height)}getBottom(){return this.y+this.height}getRight(){return this.x+this.width}getCenter(){return{x:this.x+this.width/2,y:this.y+this.height/2}}positionElement(t,n){this.styleWithPosition(t.style,n)}styleWithPosition(t,n="absolute"){return t.left=this.x+"px",t.top=this.y+"px",t.width=Math.max(0,this.width)+"px",t.height=Math.max(0,this.height)+"px",t.position=n,t}contains(t,n){return this.x<=t&&t<=this.getRight()&&this.y<=n&&n<=this.getBottom()}removeInsets(t){return new Su(this.x+t.left,this.y+t.top,Math.max(0,this.width-t.left-t.right),Math.max(0,this.height-t.top-t.bottom))}centerInRect(t){this.x=(t.width-this.width)/2,this.y=(t.height-this.height)/2}_getSize(t){let n=this.width;return t===rie.Orientation.VERT&&(n=this.height),n}toString(){return"(Rect: x="+this.x+", y="+this.y+", width="+this.width+", height="+this.height+")"}}go.Rect=Su;Object.defineProperty(wa,"__esModule",{value:!0});wa.DockLocation=void 0;const Eh=Br,Li=go;class un{static getByName(t){return un.values[t]}static getLocation(t,n,r){if(n=(n-t.x)/t.width,r=(r-t.y)/t.height,n>=.25&&n<.75&&r>=.25&&r<.75)return un.CENTER;const o=r>=n,i=r>=1-n;return o?i?un.BOTTOM:un.LEFT:i?un.RIGHT:un.TOP}constructor(t,n,r){this._name=t,this._orientation=n,this._indexPlus=r,un.values[this._name]=this}getName(){return this._name}getOrientation(){return this._orientation}getDockRect(t){return this===un.TOP?new Li.Rect(t.x,t.y,t.width,t.height/2):this===un.BOTTOM?new Li.Rect(t.x,t.getBottom()-t.height/2,t.width,t.height/2):this===un.LEFT?new Li.Rect(t.x,t.y,t.width/2,t.height):this===un.RIGHT?new Li.Rect(t.getRight()-t.width/2,t.y,t.width/2,t.height):t.clone()}split(t,n){if(this===un.TOP){const r=new Li.Rect(t.x,t.y,t.width,n),o=new Li.Rect(t.x,t.y+n,t.width,t.height-n);return{start:r,end:o}}else if(this===un.LEFT){const r=new Li.Rect(t.x,t.y,n,t.height),o=new Li.Rect(t.x+n,t.y,t.width-n,t.height);return{start:r,end:o}}if(this===un.RIGHT){const r=new Li.Rect(t.getRight()-n,t.y,n,t.height),o=new Li.Rect(t.x,t.y,t.width-n,t.height);return{start:r,end:o}}else{const r=new Li.Rect(t.x,t.getBottom()-n,t.width,n),o=new Li.Rect(t.x,t.y,t.width,t.height-n);return{start:r,end:o}}}reflect(){return this===un.TOP?un.BOTTOM:this===un.LEFT?un.RIGHT:this===un.RIGHT?un.LEFT:un.TOP}toString(){return"(DockLocation: name="+this._name+", orientation="+this._orientation+")"}}wa.DockLocation=un;un.values={};un.TOP=new un("top",Eh.Orientation.VERT,0);un.BOTTOM=new un("bottom",Eh.Orientation.VERT,1);un.LEFT=new un("left",Eh.Orientation.HORZ,0);un.RIGHT=new un("right",Eh.Orientation.HORZ,1);un.CENTER=new un("center",Eh.Orientation.VERT,0);var _c={};Object.defineProperty(_c,"__esModule",{value:!0});_c.DragDrop=void 0;const oie=go,iie=!!(typeof window<"u"&&window.document&&window.document.createElement);class L1{constructor(){this._manualGlassManagement=!1,this._startX=0,this._startY=0,this._dragDepth=0,this._glassShowing=!1,this._dragging=!1,this._active=!1,iie&&(this._glass=document.createElement("div"),this._glass.style.zIndex="998",this._glass.style.backgroundColor="transparent",this._glass.style.outline="none"),this._defaultGlassCursor="default",this._onMouseMove=this._onMouseMove.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._onKeyPress=this._onKeyPress.bind(this),this._onDragCancel=this._onDragCancel.bind(this),this._onDragEnter=this._onDragEnter.bind(this),this._onDragLeave=this._onDragLeave.bind(this),this.resizeGlass=this.resizeGlass.bind(this),this._lastClick=0,this._clickX=0,this._clickY=0}addGlass(t){var n;this._glassShowing?this._manualGlassManagement=!0:(this._document||(this._document=window.document),this._rootElement||(this._rootElement=this._document.body),this.resizeGlass(),(n=this._document.defaultView)===null||n===void 0||n.addEventListener("resize",this.resizeGlass),this._document.body.appendChild(this._glass),this._glass.tabIndex=-1,this._glass.focus(),this._glass.addEventListener("keydown",this._onKeyPress),this._glass.addEventListener("dragenter",this._onDragEnter,{passive:!1}),this._glass.addEventListener("dragover",this._onMouseMove,{passive:!1}),this._glass.addEventListener("dragleave",this._onDragLeave,{passive:!1}),this._glassShowing=!0,this._fDragCancel=t,this._manualGlassManagement=!1)}resizeGlass(){oie.Rect.fromElement(this._rootElement).positionElement(this._glass,"fixed")}hideGlass(){var t;this._glassShowing&&(this._document.body.removeChild(this._glass),(t=this._document.defaultView)===null||t===void 0||t.removeEventListener("resize",this.resizeGlass),this._glassShowing=!1,this._document=void 0,this._rootElement=void 0,this.setGlassCursorOverride(void 0))}_updateGlassCursor(){var t;this._glass.style.cursor=(t=this._glassCursorOverride)!==null&&t!==void 0?t:this._defaultGlassCursor}_setDefaultGlassCursor(t){this._defaultGlassCursor=t,this._updateGlassCursor()}setGlassCursorOverride(t){this._glassCursorOverride=t,this._updateGlassCursor()}startDrag(t,n,r,o,i,a,l,c,d){if(t&&this._lastEvent&&this._lastEvent.type.startsWith("touch")&&t.type.startsWith("mouse")&&t.timeStamp-this._lastEvent.timeStamp<500||this._dragging)return;this._lastEvent=t,c?this._document=c:this._document=window.document,d?this._rootElement=d:this._rootElement=this._document.body;const h=this._getLocationEvent(t);this.addGlass(i),t?(this._startX=h.clientX,this._startY=h.clientY,(!window.matchMedia||window.matchMedia("(pointer: fine)").matches)&&this._setDefaultGlassCursor(getComputedStyle(t.target).cursor),this._stopPropagation(t),this._preventDefault(t)):(this._startX=0,this._startY=0,this._setDefaultGlassCursor("default")),this._dragging=!1,this._fDragStart=n,this._fDragMove=r,this._fDragEnd=o,this._fDragCancel=i,this._fClick=a,this._fDblClick=l,this._active=!0,(t==null?void 0:t.type)==="dragenter"?(this._dragDepth=1,this._rootElement.addEventListener("dragenter",this._onDragEnter,{passive:!1}),this._rootElement.addEventListener("dragover",this._onMouseMove,{passive:!1}),this._rootElement.addEventListener("dragleave",this._onDragLeave,{passive:!1}),this._document.addEventListener("dragend",this._onDragCancel,{passive:!1}),this._document.addEventListener("drop",this._onMouseUp,{passive:!1})):(this._document.addEventListener("mouseup",this._onMouseUp,{passive:!1}),this._document.addEventListener("mousemove",this._onMouseMove,{passive:!1}),this._document.addEventListener("touchend",this._onMouseUp,{passive:!1}),this._document.addEventListener("touchmove",this._onMouseMove,{passive:!1}))}isDragging(){return this._dragging}isActive(){return this._active}toString(){return"(DragDrop: startX="+this._startX+", startY="+this._startY+", dragging="+this._dragging+")"}_onKeyPress(t){t.code==="Escape"&&this._onDragCancel()}_onDragCancel(){this._rootElement.removeEventListener("dragenter",this._onDragEnter),this._rootElement.removeEventListener("dragover",this._onMouseMove),this._rootElement.removeEventListener("dragleave",this._onDragLeave),this._document.removeEventListener("dragend",this._onDragCancel),this._document.removeEventListener("drop",this._onMouseUp),this._document.removeEventListener("mousemove",this._onMouseMove),this._document.removeEventListener("mouseup",this._onMouseUp),this._document.removeEventListener("touchend",this._onMouseUp),this._document.removeEventListener("touchmove",this._onMouseMove),this.hideGlass(),this._fDragCancel!==void 0&&this._fDragCancel(this._dragging),this._dragging=!1,this._active=!1}_getLocationEvent(t){let n=t;return t&&t.touches&&(n=t.touches[0]),n}_getLocationEventEnd(t){let n=t;return t.changedTouches&&(n=t.changedTouches[0]),n}_stopPropagation(t){t.stopPropagation&&t.stopPropagation()}_preventDefault(t){return t.preventDefault&&t.cancelable&&t.preventDefault(),t}_onMouseMove(t){this._lastEvent=t;const n=this._getLocationEvent(t);return this._stopPropagation(t),this._preventDefault(t),!this._dragging&&(Math.abs(this._startX-n.clientX)>5||Math.abs(this._startY-n.clientY)>5)&&(this._dragging=!0,this._fDragStart&&(this._setDefaultGlassCursor("move"),this._dragging=this._fDragStart({clientX:this._startX,clientY:this._startY}))),this._dragging&&this._fDragMove&&this._fDragMove(n),!1}_onMouseUp(t){this._lastEvent=t;const n=this._getLocationEventEnd(t);if(this._stopPropagation(t),this._preventDefault(t),this._active=!1,this._rootElement.removeEventListener("dragenter",this._onDragEnter),this._rootElement.removeEventListener("dragover",this._onMouseMove),this._rootElement.removeEventListener("dragleave",this._onDragLeave),this._document.removeEventListener("dragend",this._onDragCancel),this._document.removeEventListener("drop",this._onMouseUp),this._document.removeEventListener("mousemove",this._onMouseMove),this._document.removeEventListener("mouseup",this._onMouseUp),this._document.removeEventListener("touchend",this._onMouseUp),this._document.removeEventListener("touchmove",this._onMouseMove),this._manualGlassManagement||this.hideGlass(),this._dragging)this._dragging=!1,this._fDragEnd&&this._fDragEnd(t);else if(this._fDragCancel&&this._fDragCancel(this._dragging),Math.abs(this._startX-n.clientX)<=5&&Math.abs(this._startY-n.clientY)<=5){let r=!1;const o=new Date().getTime();Math.abs(this._clickX-n.clientX)<=5&&Math.abs(this._clickY-n.clientY)<=5&&o-this._lastClick<500&&this._fDblClick&&(this._fDblClick(t),r=!0),!r&&this._fClick&&this._fClick(t),this._lastClick=o,this._clickX=n.clientX,this._clickY=n.clientY}return!1}_onDragEnter(t){return this._preventDefault(t),this._stopPropagation(t),this._dragDepth++,!1}_onDragLeave(t){return this._preventDefault(t),this._stopPropagation(t),this._dragDepth--,this._dragDepth<=0&&this._onDragCancel(),!1}}_c.DragDrop=L1;L1.instance=new L1;var _i={},xh={};Object.defineProperty(xh,"__esModule",{value:!0});xh.Action=void 0;class aie{constructor(t,n){this.type=t,this.data=n}}xh.Action=aie;Object.defineProperty(_i,"__esModule",{value:!0});_i.Actions=void 0;const Bo=xh;class wn{static addNode(t,n,r,o,i){return new Bo.Action(wn.ADD_NODE,{json:t,toNode:n,location:r.getName(),index:o,select:i})}static moveNode(t,n,r,o,i){return new Bo.Action(wn.MOVE_NODE,{fromNode:t,toNode:n,location:r.getName(),index:o,select:i})}static deleteTab(t){return new Bo.Action(wn.DELETE_TAB,{node:t})}static deleteTabset(t){return new Bo.Action(wn.DELETE_TABSET,{node:t})}static renameTab(t,n){return new Bo.Action(wn.RENAME_TAB,{node:t,text:n})}static selectTab(t){return new Bo.Action(wn.SELECT_TAB,{tabNode:t})}static setActiveTabset(t){return new Bo.Action(wn.SET_ACTIVE_TABSET,{tabsetNode:t})}static adjustSplit(t){const n=t.node1Id,r=t.node2Id;return new Bo.Action(wn.ADJUST_SPLIT,{node1:n,weight1:t.weight1,pixelWidth1:t.pixelWidth1,node2:r,weight2:t.weight2,pixelWidth2:t.pixelWidth2})}static adjustBorderSplit(t,n){return new Bo.Action(wn.ADJUST_BORDER_SPLIT,{node:t,pos:n})}static maximizeToggle(t){return new Bo.Action(wn.MAXIMIZE_TOGGLE,{node:t})}static updateModelAttributes(t){return new Bo.Action(wn.UPDATE_MODEL_ATTRIBUTES,{json:t})}static updateNodeAttributes(t,n){return new Bo.Action(wn.UPDATE_NODE_ATTRIBUTES,{node:t,json:n})}static floatTab(t){return new Bo.Action(wn.FLOAT_TAB,{node:t})}static unFloatTab(t){return new Bo.Action(wn.UNFLOAT_TAB,{node:t})}}_i.Actions=wn;wn.ADD_NODE="FlexLayout_AddNode";wn.MOVE_NODE="FlexLayout_MoveNode";wn.DELETE_TAB="FlexLayout_DeleteTab";wn.DELETE_TABSET="FlexLayout_DeleteTabset";wn.RENAME_TAB="FlexLayout_RenameTab";wn.SELECT_TAB="FlexLayout_SelectTab";wn.SET_ACTIVE_TABSET="FlexLayout_SetActiveTabset";wn.ADJUST_SPLIT="FlexLayout_AdjustSplit";wn.ADJUST_BORDER_SPLIT="FlexLayout_AdjustBorderSplit";wn.MAXIMIZE_TOGGLE="FlexLayout_MaximizeToggle";wn.UPDATE_MODEL_ATTRIBUTES="FlexLayout_UpdateModelAttributes";wn.UPDATE_NODE_ATTRIBUTES="FlexLayout_UpdateNodeAttributes";wn.FLOAT_TAB="FlexLayout_FloatTab";wn.UNFLOAT_TAB="FlexLayout_UnFloatTab";var Ud={},El={};Object.defineProperty(El,"__esModule",{value:!0});El.Attribute=void 0;class Dv{constructor(t,n,r,o){this.name=t,this.modelName=n,this.defaultValue=r,this.alwaysWriteJson=o,this.required=!1,this.fixed=!1,this.type="any"}setType(t){return this.type=t,this}setRequired(){return this.required=!0,this}setFixed(){return this.fixed=!0,this}}El.Attribute=Dv;Dv.NUMBER="number";Dv.STRING="string";Dv.BOOLEAN="boolean";var xl={};Object.defineProperty(xl,"__esModule",{value:!0});xl.AttributeDefinitions=void 0;const lie=El;class sie{constructor(){this.attributes=[],this.nameToAttribute={}}addWithAll(t,n,r,o){const i=new lie.Attribute(t,n,r,o);return this.attributes.push(i),this.nameToAttribute[t]=i,i}addInherited(t,n){return this.addWithAll(t,n,void 0,!1)}add(t,n,r){return this.addWithAll(t,void 0,n,r)}getAttributes(){return this.attributes}getModelName(t){const n=this.nameToAttribute[t];if(n!==void 0)return n.modelName}toJson(t,n){for(const r of this.attributes){const o=n[r.name];(r.alwaysWriteJson||o!==r.defaultValue)&&(t[r.name]=o)}}fromJson(t,n){for(const r of this.attributes){const o=t[r.name];o===void 0?n[r.name]=r.defaultValue:n[r.name]=o}}update(t,n){for(const r of this.attributes)if(t.hasOwnProperty(r.name)){const o=t[r.name];o===void 0?delete n[r.name]:n[r.name]=o}}setDefaults(t){for(const n of this.attributes)t[n.name]=n.defaultValue}toTypescriptInterface(t,n){const r=[],o=this.attributes.sort((i,a)=>i.name.localeCompare(a.name));r.push("export interface I"+t+"Attributes {");for(let i=0;i0?" // "+m:""))}}return r.push("}"),r.join(` `)}}xl.AttributeDefinitions=sie;var Ec={};Object.defineProperty(Ec,"__esModule",{value:!0});Ec.DropInfo=void 0;class cie{constructor(t,n,r,o,i){this.node=t,this.rect=n,this.location=r,this.index=o,this.className=i}}Ec.DropInfo=cie;var Fr={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CLASSES=void 0,function(t){t.FLEXLAYOUT__BORDER="flexlayout__border",t.FLEXLAYOUT__BORDER_="flexlayout__border_",t.FLEXLAYOUT__BORDER_BUTTON="flexlayout__border_button",t.FLEXLAYOUT__BORDER_BUTTON_="flexlayout__border_button_",t.FLEXLAYOUT__BORDER_BUTTON_CONTENT="flexlayout__border_button_content",t.FLEXLAYOUT__BORDER_BUTTON_LEADING="flexlayout__border_button_leading",t.FLEXLAYOUT__BORDER_BUTTON_TRAILING="flexlayout__border_button_trailing",t.FLEXLAYOUT__BORDER_BUTTON__SELECTED="flexlayout__border_button--selected",t.FLEXLAYOUT__BORDER_BUTTON__UNSELECTED="flexlayout__border_button--unselected",t.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON_OVERFLOW="flexlayout__border_toolbar_button_overflow",t.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON_OVERFLOW_="flexlayout__border_toolbar_button_overflow_",t.FLEXLAYOUT__BORDER_INNER="flexlayout__border_inner",t.FLEXLAYOUT__BORDER_INNER_="flexlayout__border_inner_",t.FLEXLAYOUT__BORDER_INNER_TAB_CONTAINER="flexlayout__border_inner_tab_container",t.FLEXLAYOUT__BORDER_INNER_TAB_CONTAINER_="flexlayout__border_inner_tab_container_",t.FLEXLAYOUT__BORDER_TAB_DIVIDER="flexlayout__border_tab_divider",t.FLEXLAYOUT__BORDER_SIZER="flexlayout__border_sizer",t.FLEXLAYOUT__BORDER_TOOLBAR="flexlayout__border_toolbar",t.FLEXLAYOUT__BORDER_TOOLBAR_="flexlayout__border_toolbar_",t.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON="flexlayout__border_toolbar_button",t.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON_FLOAT="flexlayout__border_toolbar_button-float",t.FLEXLAYOUT__DRAG_RECT="flexlayout__drag_rect",t.FLEXLAYOUT__EDGE_RECT="flexlayout__edge_rect",t.FLEXLAYOUT__EDGE_RECT_TOP="flexlayout__edge_rect_top",t.FLEXLAYOUT__EDGE_RECT_LEFT="flexlayout__edge_rect_left",t.FLEXLAYOUT__EDGE_RECT_BOTTOM="flexlayout__edge_rect_bottom",t.FLEXLAYOUT__EDGE_RECT_RIGHT="flexlayout__edge_rect_right",t.FLEXLAYOUT__ERROR_BOUNDARY_CONTAINER="flexlayout__error_boundary_container",t.FLEXLAYOUT__ERROR_BOUNDARY_CONTENT="flexlayout__error_boundary_content",t.FLEXLAYOUT__FLOATING_WINDOW_CONTENT="flexlayout__floating_window_content",t.FLEXLAYOUT__FLOATING_WINDOW_TAB="flexlayout__floating_window_tab",t.FLEXLAYOUT__LAYOUT="flexlayout__layout",t.FLEXLAYOUT__OUTLINE_RECT="flexlayout__outline_rect",t.FLEXLAYOUT__OUTLINE_RECT_EDGE="flexlayout__outline_rect_edge",t.FLEXLAYOUT__SPLITTER="flexlayout__splitter",t.FLEXLAYOUT__SPLITTER_EXTRA="flexlayout__splitter_extra",t.FLEXLAYOUT__SPLITTER_="flexlayout__splitter_",t.FLEXLAYOUT__SPLITTER_BORDER="flexlayout__splitter_border",t.FLEXLAYOUT__SPLITTER_DRAG="flexlayout__splitter_drag",t.FLEXLAYOUT__TAB="flexlayout__tab",t.FLEXLAYOUT__TABSET="flexlayout__tabset",t.FLEXLAYOUT__TABSET_HEADER="flexlayout__tabset_header",t.FLEXLAYOUT__TABSET_HEADER_SIZER="flexlayout__tabset_header_sizer",t.FLEXLAYOUT__TABSET_HEADER_CONTENT="flexlayout__tabset_header_content",t.FLEXLAYOUT__TABSET_MAXIMIZED="flexlayout__tabset-maximized",t.FLEXLAYOUT__TABSET_SELECTED="flexlayout__tabset-selected",t.FLEXLAYOUT__TABSET_SIZER="flexlayout__tabset_sizer",t.FLEXLAYOUT__TABSET_TAB_DIVIDER="flexlayout__tabset_tab_divider",t.FLEXLAYOUT__TABSET_CONTENT="flexlayout__tabset_content",t.FLEXLAYOUT__TABSET_TABBAR_INNER="flexlayout__tabset_tabbar_inner",t.FLEXLAYOUT__TABSET_TABBAR_INNER_="flexlayout__tabset_tabbar_inner_",t.FLEXLAYOUT__TABSET_TABBAR_INNER_TAB_CONTAINER="flexlayout__tabset_tabbar_inner_tab_container",t.FLEXLAYOUT__TABSET_TABBAR_INNER_TAB_CONTAINER_="flexlayout__tabset_tabbar_inner_tab_container_",t.FLEXLAYOUT__TABSET_TABBAR_OUTER="flexlayout__tabset_tabbar_outer",t.FLEXLAYOUT__TABSET_TABBAR_OUTER_="flexlayout__tabset_tabbar_outer_",t.FLEXLAYOUT__TAB_BORDER="flexlayout__tab_border",t.FLEXLAYOUT__TAB_BORDER_="flexlayout__tab_border_",t.FLEXLAYOUT__TAB_BUTTON="flexlayout__tab_button",t.FLEXLAYOUT__TAB_BUTTON_STRETCH="flexlayout__tab_button_stretch",t.FLEXLAYOUT__TAB_BUTTON_CONTENT="flexlayout__tab_button_content",t.FLEXLAYOUT__TAB_BUTTON_LEADING="flexlayout__tab_button_leading",t.FLEXLAYOUT__TAB_BUTTON_OVERFLOW="flexlayout__tab_button_overflow",t.FLEXLAYOUT__TAB_BUTTON_OVERFLOW_COUNT="flexlayout__tab_button_overflow_count",t.FLEXLAYOUT__TAB_BUTTON_TEXTBOX="flexlayout__tab_button_textbox",t.FLEXLAYOUT__TAB_BUTTON_TRAILING="flexlayout__tab_button_trailing",t.FLEXLAYOUT__TAB_BUTTON_STAMP="flexlayout__tab_button_stamp",t.FLEXLAYOUT__TAB_FLOATING="flexlayout__tab_floating",t.FLEXLAYOUT__TAB_FLOATING_INNER="flexlayout__tab_floating_inner",t.FLEXLAYOUT__TAB_TOOLBAR="flexlayout__tab_toolbar",t.FLEXLAYOUT__TAB_TOOLBAR_BUTTON="flexlayout__tab_toolbar_button",t.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_="flexlayout__tab_toolbar_button-",t.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_FLOAT="flexlayout__tab_toolbar_button-float",t.FLEXLAYOUT__TAB_TOOLBAR_STICKY_BUTTONS_CONTAINER="flexlayout__tab_toolbar_sticky_buttons_container",t.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_CLOSE="flexlayout__tab_toolbar_button-close",t.FLEXLAYOUT__POPUP_MENU_CONTAINER="flexlayout__popup_menu_container",t.FLEXLAYOUT__POPUP_MENU_ITEM="flexlayout__popup_menu_item",t.FLEXLAYOUT__POPUP_MENU="flexlayout__popup_menu"}(e.CLASSES||(e.CLASSES={}))})(Fr);var Ol={};Object.defineProperty(Ol,"__esModule",{value:!0});Ol.Node=void 0;const mb=wa,vb=Br,uie=go;class die{constructor(t){this._dirty=!1,this._tempSize=0,this._model=t,this._attributes={},this._children=[],this._fixed=!1,this._rect=uie.Rect.empty(),this._visible=!1,this._listeners={}}getId(){let t=this._attributes.id;return t!==void 0||(t=this._model._nextUniqueId(),this._setId(t)),t}getModel(){return this._model}getType(){return this._attributes.type}getParent(){return this._parent}getChildren(){return this._children}getRect(){return this._rect}isVisible(){return this._visible}getOrientation(){return this._parent===void 0?this._model.isRootOrientationVertical()?vb.Orientation.VERT:vb.Orientation.HORZ:vb.Orientation.flip(this._parent.getOrientation())}setEventListener(t,n){this._listeners[t]=n}removeEventListener(t){delete this._listeners[t]}_setId(t){this._attributes.id=t}_fireEvent(t,n){this._listeners[t]!==void 0&&this._listeners[t](n)}_getAttr(t){let n=this._attributes[t];if(n===void 0){const r=this._getAttributeDefinitions().getModelName(t);r!==void 0&&(n=this._model._getAttribute(r))}return n}_forEachNode(t,n){t(this,n),n++;for(const r of this._children)r._forEachNode(t,n)}_setVisible(t){t!==this._visible&&(this._fireEvent("visibility",{visible:t}),this._visible=t)}_getDrawChildren(){return this._children}_setParent(t){this._parent=t}_setRect(t){this._rect=t}_setWeight(t){this._attributes.weight=t}_setSelected(t){this._attributes.selected=t}_isFixed(){return this._fixed}_layout(t,n){this._rect=t}_findDropTargetNode(t,n,r){let o;if(this._rect.contains(n,r)){if(this._model.getMaximizedTabset()!==void 0)o=this._model.getMaximizedTabset().canDrop(t,n,r);else if(o=this.canDrop(t,n,r),o===void 0&&this._children.length!==0){for(const i of this._children)if(o=i._findDropTargetNode(t,n,r),o!==void 0)break}}return o}canDrop(t,n,r){}_canDockInto(t,n){if(n!=null){if(n.location===mb.DockLocation.CENTER&&n.node.isEnableDrop()===!1||n.location===mb.DockLocation.CENTER&&t.getType()==="tabset"&&t.getName()!==void 0||n.location!==mb.DockLocation.CENTER&&n.node.isEnableDivide()===!1)return!1;if(this._model._getOnAllowDrop())return this._model._getOnAllowDrop()(t,n)}return!0}_removeChild(t){const n=this._children.indexOf(t);return n!==-1&&this._children.splice(n,1),this._dirty=!0,n}_addChild(t,n){return n!=null?this._children.splice(n,0,t):(this._children.push(t),n=this._children.length-1),t._parent=this,this._dirty=!0,n}_removeAll(){this._children=[],this._dirty=!0}_styleWithPosition(t){return t==null&&(t={}),this._rect.styleWithPosition(t)}_getTempSize(){return this._tempSize}_setTempSize(t){this._tempSize=t}isEnableDivide(){return!0}_toAttributeString(){return JSON.stringify(this._attributes,void 0," ")}}Ol.Node=die;var xc={};Object.defineProperty(xc,"__esModule",{value:!0});xc.SplitterNode=void 0;const fie=xl,yb=Br,hie=Ol;class Bv extends hie.Node{constructor(t){super(t),this._fixed=!0,this._attributes.type=Bv.TYPE,t._addNode(this)}getWidth(){return this._model.getSplitterSize()}getMinWidth(){return this.getOrientation()===yb.Orientation.VERT?this._model.getSplitterSize():0}getHeight(){return this._model.getSplitterSize()}getMinHeight(){return this.getOrientation()===yb.Orientation.HORZ?this._model.getSplitterSize():0}getMinSize(t){return t===yb.Orientation.HORZ?this.getMinWidth():this.getMinHeight()}getWeight(){return 0}_setWeight(t){}_getPrefSize(t){return this._model.getSplitterSize()}_updateAttrs(t){}_getAttributeDefinitions(){return new fie.AttributeDefinitions}toJson(){}}xc.SplitterNode=Bv;Bv.TYPE="splitter";var Es={};Object.defineProperty(Es,"__esModule",{value:!0});Es.TabNode=void 0;const Pr=El,gie=xl,pie=Ol;class Di extends pie.Node{static _fromJson(t,n,r=!0){return new Di(n,t,r)}static _createAttributeDefinitions(){const t=new gie.AttributeDefinitions;return t.add("type",Di.TYPE,!0).setType(Pr.Attribute.STRING),t.add("id",void 0).setType(Pr.Attribute.STRING),t.add("name","[Unnamed Tab]").setType(Pr.Attribute.STRING),t.add("altName",void 0).setType(Pr.Attribute.STRING),t.add("helpText",void 0).setType(Pr.Attribute.STRING),t.add("component",void 0).setType(Pr.Attribute.STRING),t.add("config",void 0).setType("any"),t.add("floating",!1).setType(Pr.Attribute.BOOLEAN),t.add("tabsetClassName",void 0).setType(Pr.Attribute.STRING),t.addInherited("enableClose","tabEnableClose").setType(Pr.Attribute.BOOLEAN),t.addInherited("closeType","tabCloseType").setType("ICloseType"),t.addInherited("enableDrag","tabEnableDrag").setType(Pr.Attribute.BOOLEAN),t.addInherited("enableRename","tabEnableRename").setType(Pr.Attribute.BOOLEAN),t.addInherited("className","tabClassName").setType(Pr.Attribute.STRING),t.addInherited("contentClassName","tabContentClassName").setType(Pr.Attribute.STRING),t.addInherited("icon","tabIcon").setType(Pr.Attribute.STRING),t.addInherited("enableRenderOnDemand","tabEnableRenderOnDemand").setType(Pr.Attribute.BOOLEAN),t.addInherited("enableFloat","tabEnableFloat").setType(Pr.Attribute.BOOLEAN),t.addInherited("borderWidth","tabBorderWidth").setType(Pr.Attribute.NUMBER),t.addInherited("borderHeight","tabBorderHeight").setType(Pr.Attribute.NUMBER),t}constructor(t,n,r=!0){super(t),this._extra={},Di._attributeDefinitions.fromJson(n,this._attributes),r===!0&&t._addNode(this)}getWindow(){return this._window}getTabRect(){return this._tabRect}_setTabRect(t){this._tabRect=t}_setRenderedName(t){this._renderedName=t}_getNameForOverflowMenu(){const t=this._getAttr("altName");return t!==void 0?t:this._renderedName}getName(){return this._getAttr("name")}getHelpText(){return this._getAttr("helpText")}getComponent(){return this._getAttr("component")}getConfig(){return this._attributes.config}getExtraData(){return this._extra}isFloating(){return this._getAttr("floating")}getIcon(){return this._getAttr("icon")}isEnableClose(){return this._getAttr("enableClose")}getCloseType(){return this._getAttr("closeType")}isEnableFloat(){return this._getAttr("enableFloat")}isEnableDrag(){return this._getAttr("enableDrag")}isEnableRename(){return this._getAttr("enableRename")}getClassName(){return this._getAttr("className")}getContentClassName(){return this._getAttr("contentClassName")}getTabSetClassName(){return this._getAttr("tabsetClassName")}isEnableRenderOnDemand(){return this._getAttr("enableRenderOnDemand")}_setName(t){this._attributes.name=t,this._window&&this._window.document&&(this._window.document.title=t)}_setFloating(t){this._attributes.floating=t}_layout(t,n){t.equals(this._rect)||this._fireEvent("resize",{rect:t}),this._rect=t}_delete(){this._parent._remove(this),this._fireEvent("close",{})}toJson(){const t={};return Di._attributeDefinitions.toJson(t,this._attributes),t}_updateAttrs(t){Di._attributeDefinitions.update(t,this._attributes)}_getAttributeDefinitions(){return Di._attributeDefinitions}_setWindow(t){this._window=t}_setBorderWidth(t){this._attributes.borderWidth=t}_setBorderHeight(t){this._attributes.borderHeight=t}static getAttributeDefinitions(){return Di._attributeDefinitions}}Es.TabNode=Di;Di.TYPE="tab";Di._attributeDefinitions=Di._createAttributeDefinitions();var ea={},Vd={},Kd={},fR;function t_(){if(fR)return Kd;fR=1,Object.defineProperty(Kd,"__esModule",{value:!0}),Kd.RowNode=void 0;const e=El,t=xl,n=wa,r=Ec,o=Br,i=go,a=Fr,l=Tl(),c=Ol,d=xc,h=xs();let g=class ao extends c.Node{static _fromJson(m,v){const y=new ao(v,m);if(m.children!=null)for(const w of m.children)if(w.type===h.TabSetNode.TYPE){const C=h.TabSetNode._fromJson(w,v);y._addChild(C)}else{const C=ao._fromJson(w,v);y._addChild(C)}return y}static _createAttributeDefinitions(){const m=new t.AttributeDefinitions;return m.add("type",ao.TYPE,!0).setType(e.Attribute.STRING).setFixed(),m.add("id",void 0).setType(e.Attribute.STRING),m.add("weight",100).setType(e.Attribute.NUMBER),m.add("width",void 0).setType(e.Attribute.NUMBER),m.add("height",void 0).setType(e.Attribute.NUMBER),m}constructor(m,v){super(m),this._dirty=!0,this._drawChildren=[],this._minHeight=0,this._minWidth=0,ao._attributeDefinitions.fromJson(v,this._attributes),m._addNode(this)}getWeight(){return this._attributes.weight}getWidth(){return this._getAttr("width")}getHeight(){return this._getAttr("height")}_setWeight(m){this._attributes.weight=m}_layout(m,v){super._layout(m,v);const y=this._rect._getSize(this.getOrientation());let w=0,C=0,b=0,S=0;const E=this._getDrawChildren();for(const I of E){const P=I._getPrefSize(this.getOrientation());I._isFixed()?P!==void 0&&(C+=P):P===void 0?w+=I.getWeight():(b+=P,S+=I.getWeight())}let O=!1,x=y-C-b;x<0&&(x=y-C,O=!0,w+=S);let T=0,R=0;for(const I of E){const P=I._getPrefSize(this.getOrientation());if(I._isFixed())P!==void 0&&I._setTempSize(P);else if(P==null||O){if(w===0)I._setTempSize(0);else{const L=I.getMinSize(this.getOrientation()),D=Math.floor(x*(I.getWeight()/w));I._setTempSize(Math.max(L,D))}R+=I._getTempSize()}else I._setTempSize(P);T+=I._getTempSize()}if(R>0){for(;Ty;){let I=!1;for(const P of E)if(!(P instanceof d.SplitterNode)){const L=P.getMinSize(this.getOrientation());P._getTempSize()>L&&T>y&&(P._setTempSize(P._getTempSize()-1),T--,I=!0)}if(!I)break}for(;T>y;){let I=!1;for(const P of E)P instanceof d.SplitterNode||P._getTempSize()>0&&T>y&&(P._setTempSize(P._getTempSize()-1),T--,I=!0);if(!I)break}}let N=0;for(const I of E)this.getOrientation()===o.Orientation.HORZ?I._layout(new i.Rect(this._rect.x+N,this._rect.y,I._getTempSize(),this._rect.height),v):I._layout(new i.Rect(this._rect.x,this._rect.y+N,this._rect.width,I._getTempSize()),v),N+=I._getTempSize();return!0}_getSplitterBounds(m,v=!1){const y=[0,0],w=this._getDrawChildren(),C=w.indexOf(m),b=w[C-1],S=w[C+1];if(this.getOrientation()===o.Orientation.HORZ){const E=v?b.getMinWidth():0,O=v?S.getMinWidth():0;y[0]=b.getRect().x+E,y[1]=S.getRect().getRight()-m.getWidth()-O}else{const E=v?b.getMinHeight():0,O=v?S.getMinHeight():0;y[0]=b.getRect().y+E,y[1]=S.getRect().getBottom()-m.getHeight()-O}return y}_calculateSplit(m,v){let y;const w=this._getDrawChildren(),C=w.indexOf(m),b=this._getSplitterBounds(m),S=w[C-1].getWeight()+w[C+1].getWeight(),E=Math.max(0,v-b[0]),O=Math.max(0,b[1]-v);if(E+O>0){const x=E*S/(E+O),T=O*S/(E+O);y={node1Id:w[C-1].getId(),weight1:x,pixelWidth1:E,node2Id:w[C+1].getId(),weight2:T,pixelWidth2:O}}return y}_getDrawChildren(){if(this._dirty){this._drawChildren=[];for(let m=0;mS/2-O&&wthis._rect.getRight()-E&&w>S/2-O&&wb/2-O&&Cthis._rect.getBottom()-E&&C>b/2-O&&CO+x.getWeight(),0);S===0&&(S=100),b._setWeight(S/3);const E=!this._model.isRootOrientationVertical();if(E&&w===n.DockLocation.LEFT||!E&&w===n.DockLocation.TOP)this._addChild(b,0);else if(E&&w===n.DockLocation.RIGHT||!E&&w===n.DockLocation.BOTTOM)this._addChild(b);else if(E&&w===n.DockLocation.TOP||!E&&w===n.DockLocation.LEFT){const O=new ao(this._model,{}),x=new ao(this._model,{});x._setWeight(75),b._setWeight(25);for(const T of this._children)x._addChild(T);this._removeAll(),O._addChild(b),O._addChild(x),this._addChild(O)}else if(E&&w===n.DockLocation.BOTTOM||!E&&w===n.DockLocation.RIGHT){const O=new ao(this._model,{}),x=new ao(this._model,{});x._setWeight(75),b._setWeight(25);for(const T of this._children)x._addChild(T);this._removeAll(),O._addChild(x),O._addChild(b),this._addChild(O)}this._model._setActiveTabset(b),this._model._tidy()}toJson(){const m={};ao._attributeDefinitions.toJson(m,this._attributes),m.children=[];for(const v of this._children)m.children.push(v.toJson());return m}isEnableDrop(){return!0}_getPrefSize(m){let v=this.getWidth();return m===o.Orientation.VERT&&(v=this.getHeight()),v}_getAttributeDefinitions(){return ao._attributeDefinitions}_updateAttrs(m){ao._attributeDefinitions.update(m,this._attributes)}static getAttributeDefinitions(){return ao._attributeDefinitions}};return Kd.RowNode=g,g.TYPE="row",g._attributeDefinitions=g._createAttributeDefinitions(),Kd}var hR;function xs(){if(hR)return Vd;hR=1,Object.defineProperty(Vd,"__esModule",{value:!0}),Vd.TabSetNode=void 0;const e=El,t=xl,n=wa,r=Ec,o=Br,i=go,a=Fr,l=Tl(),c=Ol,d=t_(),h=Es,g=n_();let p=class ol extends c.Node{static _fromJson(v,y){const w=new ol(y,v);if(v.children!=null)for(const C of v.children){const b=h.TabNode._fromJson(C,y);w._addChild(b)}return w._children.length===0&&w._setSelected(-1),v.maximized&&v.maximized===!0&&y._setMaximizedTabset(w),v.active&&v.active===!0&&y._setActiveTabset(w),w}static _createAttributeDefinitions(){const v=new t.AttributeDefinitions;return v.add("type",ol.TYPE,!0).setType(e.Attribute.STRING).setFixed(),v.add("id",void 0).setType(e.Attribute.STRING),v.add("weight",100).setType(e.Attribute.NUMBER),v.add("width",void 0).setType(e.Attribute.NUMBER),v.add("height",void 0).setType(e.Attribute.NUMBER),v.add("selected",0).setType(e.Attribute.NUMBER),v.add("name",void 0).setType(e.Attribute.STRING),v.add("config",void 0).setType("any"),v.addInherited("enableDeleteWhenEmpty","tabSetEnableDeleteWhenEmpty"),v.addInherited("enableDrop","tabSetEnableDrop"),v.addInherited("enableDrag","tabSetEnableDrag"),v.addInherited("enableDivide","tabSetEnableDivide"),v.addInherited("enableMaximize","tabSetEnableMaximize"),v.addInherited("enableClose","tabSetEnableClose"),v.addInherited("enableSingleTabStretch","tabSetEnableSingleTabStretch"),v.addInherited("classNameTabStrip","tabSetClassNameTabStrip"),v.addInherited("classNameHeader","tabSetClassNameHeader"),v.addInherited("enableTabStrip","tabSetEnableTabStrip"),v.addInherited("borderInsets","tabSetBorderInsets"),v.addInherited("marginInsets","tabSetMarginInsets"),v.addInherited("minWidth","tabSetMinWidth"),v.addInherited("minHeight","tabSetMinHeight"),v.addInherited("headerHeight","tabSetHeaderHeight"),v.addInherited("tabStripHeight","tabSetTabStripHeight"),v.addInherited("tabLocation","tabSetTabLocation"),v.addInherited("autoSelectTab","tabSetAutoSelectTab").setType(e.Attribute.BOOLEAN),v}constructor(v,y){super(v),ol._attributeDefinitions.fromJson(y,this._attributes),v._addNode(this),this._calculatedTabBarHeight=0,this._calculatedHeaderBarHeight=0}getName(){return this._getAttr("name")}getSelected(){const v=this._attributes.selected;return v!==void 0?v:-1}getSelectedNode(){const v=this.getSelected();if(v!==-1)return this._children[v]}getWeight(){return this._getAttr("weight")}getWidth(){return this._getAttr("width")}getMinWidth(){return this._getAttr("minWidth")}getHeight(){return this._getAttr("height")}getMinHeight(){return this._getAttr("minHeight")}getMinSize(v){return v===o.Orientation.HORZ?this.getMinWidth():this.getMinHeight()}getConfig(){return this._attributes.config}isMaximized(){return this._model.getMaximizedTabset()===this}isActive(){return this._model.getActiveTabset()===this}isEnableDeleteWhenEmpty(){return this._getAttr("enableDeleteWhenEmpty")}isEnableDrop(){return this._getAttr("enableDrop")}isEnableDrag(){return this._getAttr("enableDrag")}isEnableDivide(){return this._getAttr("enableDivide")}isEnableMaximize(){return this._getAttr("enableMaximize")}isEnableClose(){return this._getAttr("enableClose")}isEnableSingleTabStretch(){return this._getAttr("enableSingleTabStretch")}canMaximize(){return this.isEnableMaximize()?this.getModel().getMaximizedTabset()===this?!0:!(this.getParent()===this.getModel().getRoot()&&this.getModel().getRoot().getChildren().length===1):!1}isEnableTabStrip(){return this._getAttr("enableTabStrip")}isAutoSelectTab(){return this._getAttr("autoSelectTab")}getClassNameTabStrip(){return this._getAttr("classNameTabStrip")}getClassNameHeader(){return this._getAttr("classNameHeader")}calculateHeaderBarHeight(v){const y=this._getAttr("headerHeight");y!==0?this._calculatedHeaderBarHeight=y:this._calculatedHeaderBarHeight=v.headerBarSize}calculateTabBarHeight(v){const y=this._getAttr("tabStripHeight");y!==0?this._calculatedTabBarHeight=y:this._calculatedTabBarHeight=v.tabBarSize}getHeaderHeight(){return this._calculatedHeaderBarHeight}getTabStripHeight(){return this._calculatedTabBarHeight}getTabLocation(){return this._getAttr("tabLocation")}_setWeight(v){this._attributes.weight=v}_setSelected(v){this._attributes.selected=v}canDrop(v,y,w){let C;if(v===this){const b=n.DockLocation.CENTER,S=this._tabHeaderRect;C=new r.DropInfo(this,S,b,-1,a.CLASSES.FLEXLAYOUT__OUTLINE_RECT)}else if(this._contentRect.contains(y,w)){let b=n.DockLocation.CENTER;this._model.getMaximizedTabset()===void 0&&(b=n.DockLocation.getLocation(this._contentRect,y,w));const S=b.getDockRect(this._rect);C=new r.DropInfo(this,S,b,-1,a.CLASSES.FLEXLAYOUT__OUTLINE_RECT)}else if(this._tabHeaderRect!=null&&this._tabHeaderRect.contains(y,w)){let b,S,E;if(this._children.length===0)b=this._tabHeaderRect.clone(),S=b.y+3,E=b.height-4,b.width=2;else{let O=this._children[0];b=O.getTabRect(),S=b.y,E=b.height;let x=this._tabHeaderRect.x,T=0;for(let R=0;R=x&&y0&&w--,b===n.DockLocation.CENTER){let O=w;if(O===-1&&(O=this._children.length),v.getType()===h.TabNode.TYPE)this._addChild(v,O),(C||C!==!1&&this.isAutoSelectTab())&&this._setSelected(O);else{for(let x=0;x0&&this._setSelected(0)}this._model._setActiveTabset(this)}else{let O;if(v instanceof h.TabNode){const R=this._model._getOnCreateTabSet();O=new ol(this._model,R?R(v):{}),O._addChild(v),S=O}else O=v;const x=this._parent,T=x.getChildren().indexOf(this);if(x.getOrientation()===b._orientation)O._setWeight(this.getWeight()/2),this._setWeight(this.getWeight()/2),x._addChild(O,T+b._indexPlus);else{const R=new d.RowNode(this._model,{});R._setWeight(this.getWeight()),R._addChild(this),this._setWeight(50),O._setWeight(50),R._addChild(O,b._indexPlus),x._removeChild(this),x._addChild(R,T)}this._model._setActiveTabset(O)}this._model._tidy()}toJson(){const v={};return ol._attributeDefinitions.toJson(v,this._attributes),v.children=this._children.map(y=>y.toJson()),this.isActive()&&(v.active=!0),this.isMaximized()&&(v.maximized=!0),v}_updateAttrs(v){ol._attributeDefinitions.update(v,this._attributes)}_getAttributeDefinitions(){return ol._attributeDefinitions}_getPrefSize(v){let y=this.getWidth();return v===o.Orientation.VERT&&(y=this.getHeight()),y}static getAttributeDefinitions(){return ol._attributeDefinitions}};return Vd.TabSetNode=p,p.TYPE="tabset",p._attributeDefinitions=p._createAttributeDefinitions(),Vd}var gR;function n_(){if(gR)return ea;gR=1,Object.defineProperty(ea,"__esModule",{value:!0}),ea.randomUUID=ea.adjustSelectedIndex=ea.adjustSelectedIndexAfterDock=ea.adjustSelectedIndexAfterFloat=void 0;const e=xs(),t=Tl();function n(a){const l=a.getParent();if(l!==null)if(l instanceof e.TabSetNode){let c=!1,d=0;const h=l.getChildren();for(let g=0;g0?l>=a.getChildren().length&&a._setSelected(a.getChildren().length-1):lc||a._setSelected(-1))}}ea.adjustSelectedIndex=o;function i(){return("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,a=>(a^crypto.getRandomValues(new Uint8Array(1))[0]&15>>a/4).toString(16))}return ea.randomUUID=i,ea}var pR;function Tl(){if(pR)return Ud;pR=1,Object.defineProperty(Ud,"__esModule",{value:!0}),Ud.BorderNode=void 0;const e=El,t=xl,n=wa,r=Ec,o=Br,i=go,a=Fr,l=Ol,c=xc,d=Es,h=n_();let g=class il extends l.Node{static _fromJson(m,v){const y=n.DockLocation.getByName(m.location),w=new il(y,m,v);return m.children&&(w._children=m.children.map(C=>{const b=d.TabNode._fromJson(C,v);return b._setParent(w),b})),w}static _createAttributeDefinitions(){const m=new t.AttributeDefinitions;return m.add("type",il.TYPE,!0).setType(e.Attribute.STRING).setFixed(),m.add("selected",-1).setType(e.Attribute.NUMBER),m.add("show",!0).setType(e.Attribute.BOOLEAN),m.add("config",void 0).setType("any"),m.addInherited("barSize","borderBarSize").setType(e.Attribute.NUMBER),m.addInherited("enableDrop","borderEnableDrop").setType(e.Attribute.BOOLEAN),m.addInherited("className","borderClassName").setType(e.Attribute.STRING),m.addInherited("autoSelectTabWhenOpen","borderAutoSelectTabWhenOpen").setType(e.Attribute.BOOLEAN),m.addInherited("autoSelectTabWhenClosed","borderAutoSelectTabWhenClosed").setType(e.Attribute.BOOLEAN),m.addInherited("size","borderSize").setType(e.Attribute.NUMBER),m.addInherited("minSize","borderMinSize").setType(e.Attribute.NUMBER),m.addInherited("enableAutoHide","borderEnableAutoHide").setType(e.Attribute.BOOLEAN),m}constructor(m,v,y){super(y),this._adjustedSize=0,this._calculatedBorderBarSize=0,this._location=m,this._drawChildren=[],this._attributes.id=`border_${m.getName()}`,il._attributeDefinitions.fromJson(v,this._attributes),y._addNode(this)}getLocation(){return this._location}getTabHeaderRect(){return this._tabHeaderRect}getRect(){return this._tabHeaderRect}getContentRect(){return this._contentRect}isEnableDrop(){return this._getAttr("enableDrop")}isAutoSelectTab(m){return m==null&&(m=this.getSelected()!==-1),m?this._getAttr("autoSelectTabWhenOpen"):this._getAttr("autoSelectTabWhenClosed")}getClassName(){return this._getAttr("className")}calcBorderBarSize(m){const v=this._getAttr("barSize");v!==0?this._calculatedBorderBarSize=v:this._calculatedBorderBarSize=m.borderBarSize}getBorderBarSize(){return this._calculatedBorderBarSize}getSize(){const m=this._getAttr("size"),v=this.getSelected();if(v===-1)return m;{const y=this._children[v],w=this._location._orientation===o.Orientation.HORZ?y._getAttr("borderWidth"):y._getAttr("borderHeight");return w===-1?m:w}}getMinSize(){return this._getAttr("minSize")}getSelected(){return this._attributes.selected}getSelectedNode(){if(this.getSelected()!==-1)return this._children[this.getSelected()]}getOrientation(){return this._location.getOrientation()}getConfig(){return this._attributes.config}isMaximized(){return!1}isShowing(){return this._attributes.show?!(this._model._getShowHiddenBorder()!==this._location&&this.isAutoHide()&&this._children.length===0):!1}isAutoHide(){return this._getAttr("enableAutoHide")}_setSelected(m){this._attributes.selected=m}_setSize(m){const v=this.getSelected();if(v===-1)this._attributes.size=m;else{const y=this._children[v];(this._location._orientation===o.Orientation.HORZ?y._getAttr("borderWidth"):y._getAttr("borderHeight"))===-1?this._attributes.size=m:this._location._orientation===o.Orientation.HORZ?y._setBorderWidth(m):y._setBorderHeight(m)}}_updateAttrs(m){il._attributeDefinitions.update(m,this._attributes)}_getDrawChildren(){return this._drawChildren}_setAdjustedSize(m){this._adjustedSize=m}_getAdjustedSize(){return this._adjustedSize}_layoutBorderOuter(m,v){this.calcBorderBarSize(v);const y=this._location.split(m,this.getBorderBarSize());return this._tabHeaderRect=y.start,y.end}_layoutBorderInner(m,v){this._drawChildren=[];const y=this._location,w=y.split(m,this._adjustedSize+this._model.getSplitterSize()),C=y.reflect().split(w.start,this._model.getSplitterSize());this._contentRect=C.end;for(let b=0;b0){let b=this._children[0],S=b.getTabRect();const E=S.y,O=S.height;let x=this._tabHeaderRect.x,T=0;for(let R=0;R=x&&v0){let b=this._children[0],S=b.getTabRect();const E=S.x,O=S.width;let x=this._tabHeaderRect.y,T=0;for(let R=0;R=x&&y0&&y--;let S=y;S===-1&&(S=this._children.length),m.getType()===d.TabNode.TYPE&&this._addChild(m,S),(w||w!==!1&&this.isAutoSelectTab())&&this._setSelected(S),this._model._tidy()}toJson(){const m={};return il._attributeDefinitions.toJson(m,this._attributes),m.location=this._location.getName(),m.children=this._children.map(v=>v.toJson()),m}_getSplitterBounds(m,v=!1){const y=[0,0],w=v?this.getMinSize():0,C=this._model._getOuterInnerRects().outer,b=this._model._getOuterInnerRects().inner,S=this._model.getRoot();return this._location===n.DockLocation.TOP?(y[0]=C.y+w,y[1]=Math.max(y[0],b.getBottom()-m.getHeight()-S.getMinHeight())):this._location===n.DockLocation.LEFT?(y[0]=C.x+w,y[1]=Math.max(y[0],b.getRight()-m.getWidth()-S.getMinWidth())):this._location===n.DockLocation.BOTTOM?(y[1]=C.getBottom()-m.getHeight()-w,y[0]=Math.min(y[1],b.y+S.getMinHeight())):this._location===n.DockLocation.RIGHT&&(y[1]=C.getRight()-m.getWidth()-w,y[0]=Math.min(y[1],b.x+S.getMinWidth())),y}_calculateSplit(m,v){const y=this._getSplitterBounds(m);return this._location===n.DockLocation.BOTTOM||this._location===n.DockLocation.RIGHT?Math.max(0,y[1]-v):Math.max(0,v-y[0])}_getAttributeDefinitions(){return il._attributeDefinitions}static getAttributeDefinitions(){return il._attributeDefinitions}};return Ud.BorderNode=g,g.TYPE="border",g._attributeDefinitions=g._createAttributeDefinitions(),Ud}var Fv={},zv={},$l={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.I18nLabel=void 0,function(t){t.Close_Tab="Close",t.Close_Tabset="Close tabset",t.Move_Tab="Move: ",t.Move_Tabset="Move tabset",t.Maximize="Maximize tabset",t.Restore="Restore tabset",t.Float_Tab="Show selected tab in floating window",t.Overflow_Menu_Tooltip="Hidden tabs",t.Floating_Window_Message="This panel is shown in a floating window",t.Floating_Window_Show_Window="Show window",t.Floating_Window_Dock_Window="Dock window",t.Error_rendering_component="Error rendering component"}(e.I18nLabel||(e.I18nLabel={}))})($l);var kv={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ICloseType=void 0,function(t){t[t.Visible=1]="Visible",t[t.Always=2]="Always",t[t.Selected=3]="Selected"}(e.ICloseType||(e.ICloseType={}))})(kv);var Go={};Object.defineProperty(Go,"__esModule",{value:!0});Go.isAuxMouseEvent=Go.hideElement=Go.getRenderStateEx=void 0;const mR=u;function mie(e,t,n,r,o){let i=n?n(t):void 0,a=t.getName(),l=t.getName();o===void 0&&(o=0);function c(g){return g.titleContent!==void 0}if(r!==void 0){const g=r(t);g!==void 0&&(typeof g=="string"?(a=g,l=g):c(g)?(a=g.titleContent,l=g.name):a=g)}i===void 0&&t.getIcon()!==void 0&&(o!==0?i=mR.createElement("img",{style:{width:"1em",height:"1em",transform:"rotate("+o+"deg)"},src:t.getIcon(),alt:"leadingContent"}):i=mR.createElement("img",{style:{width:"1em",height:"1em"},src:t.getIcon(),alt:"leadingContent"}));const h={leading:i,content:a,name:l,buttons:[]};return e.customizeTab(t,h),t._setRenderedName(h.name),h}Go.getRenderStateEx=mie;function vie(e,t){t?e.visibility="hidden":e.display="none"}Go.hideElement=vie;function yie(e){let t=!1;return e.nativeEvent instanceof MouseEvent&&(e.nativeEvent.button!==0||e.ctrlKey||e.altKey||e.metaKey||e.shiftKey)&&(t=!0),t}Go.isAuxMouseEvent=yie;Object.defineProperty(zv,"__esModule",{value:!0});zv.BorderButton=void 0;const Wl=u,bie=$l,bb=_i,Sie=go,vR=kv,Ul=Fr,Sb=Go,Cie=e=>{const{layout:t,node:n,selected:r,border:o,iconFactory:i,titleFactory:a,icons:l,path:c}=e,d=Wl.useRef(null),h=Wl.useRef(null),g=L=>{!(0,Sb.isAuxMouseEvent)(L)&&!t.getEditingTab()&&t.dragStart(L,void 0,n,n.isEnableDrag(),v,y)},p=L=>{(0,Sb.isAuxMouseEvent)(L)&&t.auxMouseClick(n,L)},m=L=>{t.showContextMenu(n,L)},v=()=>{t.doAction(bb.Actions.selectTab(n.getId()))},y=L=>{},w=()=>{const L=n.getCloseType();return!!(r||L===vR.ICloseType.Always||L===vR.ICloseType.Visible&&window.matchMedia&&window.matchMedia("(hover: hover) and (pointer: fine)").matches)},C=L=>{w()?t.doAction(bb.Actions.deleteTab(n.getId())):v()},b=L=>{L.stopPropagation()};Wl.useLayoutEffect(()=>{S(),t.getEditingTab()===n&&h.current.select()});const S=()=>{var L;const D=t.getDomRect(),z=(L=d.current)===null||L===void 0?void 0:L.getBoundingClientRect();z&&D&&n._setTabRect(new Sie.Rect(z.left-D.left,z.top-D.top,z.width,z.height))},E=L=>{L.stopPropagation()},O=L=>{L.code==="Escape"?t.setEditingTab(void 0):L.code==="Enter"&&(t.setEditingTab(void 0),t.doAction(bb.Actions.renameTab(n.getId(),L.target.value)))},x=t.getClassName;let T=x(Ul.CLASSES.FLEXLAYOUT__BORDER_BUTTON)+" "+x(Ul.CLASSES.FLEXLAYOUT__BORDER_BUTTON_+o);r?T+=" "+x(Ul.CLASSES.FLEXLAYOUT__BORDER_BUTTON__SELECTED):T+=" "+x(Ul.CLASSES.FLEXLAYOUT__BORDER_BUTTON__UNSELECTED),n.getClassName()!==void 0&&(T+=" "+n.getClassName());let R=0;n.getModel().isEnableRotateBorderIcons()===!1&&(o==="left"?R=90:o==="right"&&(R=-90));const N=(0,Sb.getRenderStateEx)(t,n,i,a,R);let I=N.content?Wl.createElement("div",{className:x(Ul.CLASSES.FLEXLAYOUT__BORDER_BUTTON_CONTENT)},N.content):null;const P=N.leading?Wl.createElement("div",{className:x(Ul.CLASSES.FLEXLAYOUT__BORDER_BUTTON_LEADING)},N.leading):null;if(t.getEditingTab()===n&&(I=Wl.createElement("input",{ref:h,className:x(Ul.CLASSES.FLEXLAYOUT__TAB_BUTTON_TEXTBOX),"data-layout-path":c+"/textbox",type:"text",autoFocus:!0,defaultValue:n.getName(),onKeyDown:O,onMouseDown:E,onTouchStart:E})),n.isEnableClose()){const L=t.i18nName(bie.I18nLabel.Close_Tab);N.buttons.push(Wl.createElement("div",{key:"close","data-layout-path":c+"/button/close",title:L,className:x(Ul.CLASSES.FLEXLAYOUT__BORDER_BUTTON_TRAILING),onMouseDown:b,onClick:C,onTouchStart:b},typeof l.close=="function"?l.close(n):l.close))}return Wl.createElement("div",{ref:d,"data-layout-path":c,className:T,onMouseDown:g,onClick:p,onAuxClick:p,onContextMenu:m,onTouchStart:g,title:n.getHelpText()},P,I,N.buttons)};zv.BorderButton=Cie;var Oh={},Th={};Object.defineProperty(Th,"__esModule",{value:!0});Th.TabButtonStamp=void 0;const op=u,Cb=Fr,wie=Go,_ie=e=>{const{layout:t,node:n,iconFactory:r,titleFactory:o}=e,i=op.useRef(null),a=t.getClassName;let l=a(Cb.CLASSES.FLEXLAYOUT__TAB_BUTTON_STAMP);const c=(0,wie.getRenderStateEx)(t,n,r,o);let d=c.content?op.createElement("div",{className:a(Cb.CLASSES.FLEXLAYOUT__TAB_BUTTON_CONTENT)},c.content):n._getNameForOverflowMenu();const h=c.leading?op.createElement("div",{className:a(Cb.CLASSES.FLEXLAYOUT__TAB_BUTTON_LEADING)},c.leading):null;return op.createElement("div",{ref:i,className:l,title:n.getHelpText()},h,d)};Th.TabButtonStamp=_ie;Object.defineProperty(Oh,"__esModule",{value:!0});Oh.showPopup=void 0;const Dp=u,wb=_c,D1=Fr,Eie=Th;function xie(e,t,n,r,o,i){var a;const l=r.getRootDiv(),c=r.getClassName,d=e.ownerDocument,h=e.getBoundingClientRect(),g=(a=l==null?void 0:l.getBoundingClientRect())!==null&&a!==void 0?a:new DOMRect(0,0,100,100),p=d.createElement("div");p.className=c(D1.CLASSES.FLEXLAYOUT__POPUP_MENU_CONTAINER),h.leftm()),wb.DragDrop.instance.setGlassCursorOverride("default"),l&&l.appendChild(p);const m=()=>{r.hidePortal(),wb.DragDrop.instance.hideGlass(),l&&l.removeChild(p),p.removeEventListener("mousedown",v),d.removeEventListener("mousedown",y)},v=w=>{w.stopPropagation()},y=w=>{m()};p.addEventListener("mousedown",v),d.addEventListener("mousedown",y),r.showPortal(Dp.createElement(Oie,{currentDocument:d,onSelect:n,onHide:m,items:t,classNameMapper:c,layout:r,iconFactory:o,titleFactory:i}),p)}Oh.showPopup=xie;const Oie=e=>{const{items:t,onHide:n,onSelect:r,classNameMapper:o,layout:i,iconFactory:a,titleFactory:l}=e,c=(h,g)=>{r(h),n(),g.stopPropagation()},d=t.map((h,g)=>Dp.createElement("div",{key:h.index,className:o(D1.CLASSES.FLEXLAYOUT__POPUP_MENU_ITEM),"data-layout-path":"/popup-menu/tb"+g,onClick:p=>c(h,p),title:h.node.getHelpText()},h.node.getModel().isLegacyOverflowMenu()?h.node._getNameForOverflowMenu():Dp.createElement(Eie.TabButtonStamp,{node:h.node,layout:i,iconFactory:a,titleFactory:l})));return Dp.createElement("div",{className:o(D1.CLASSES.FLEXLAYOUT__POPUP_MENU),"data-layout-path":"/popup-menu"},d)};var $h={};Object.defineProperty($h,"__esModule",{value:!0});$h.useTabOverflow=void 0;const ta=u,Tie=go,yR=xs(),_b=Br,$ie=(e,t,n,r)=>{const o=ta.useRef(!0),i=ta.useRef(!1),a=ta.useRef(new Tie.Rect(0,0,0,0)),l=ta.useRef(null),[c,d]=ta.useState(0),h=ta.useRef(!1),[g,p]=ta.useState([]),m=ta.useRef(0);ta.useLayoutEffect(()=>{h.current=!1},[e.getSelectedNode(),e.getRect().width,e.getRect().height]),ta.useLayoutEffect(()=>{S()});const v=l.current;ta.useEffect(()=>{if(v)return v.addEventListener("wheel",y,{passive:!1}),()=>{v.removeEventListener("wheel",y)}},[v]);const y=O=>{O.preventDefault()},w=O=>t===_b.Orientation.HORZ?O.x:O.y,C=O=>t===_b.Orientation.HORZ?O.getRight():O.getBottom(),b=O=>t===_b.Orientation.HORZ?O.width:O.height,S=()=>{o.current===!0&&(i.current=!1);const x=e instanceof yR.TabSetNode?e.getRect():e.getTabHeaderRect();let T=e.getChildren()[e.getChildren().length-1];const R=r.current===null?0:b(r.current.getBoundingClientRect());if(o.current===!0||m.current===0&&g.length!==0||x.width!==a.current.width||x.height!==a.current.height){m.current=g.length,a.current=x;const N=e instanceof yR.TabSetNode?e.isEnableTabStrip()===!0:!0;let I=C(x)-R;if(n.current!==null&&(I-=b(n.current.getBoundingClientRect())),N&&e.getChildren().length>0){if(g.length===0&&c===0&&C(T.getTabRect())+2=I-w(x)?P=w(x)-A:(U>I||AI&&(P=I-U))}const D=Math.max(0,I-(C(T.getTabRect())+2+P)),z=Math.min(0,c+P+D),W=z-c,B=[];for(let M=0;MI)&&B.push({node:A,index:M})}B.length>0&&(i.current=!0),o.current=!1,p(B),d(z)}}else o.current=!0};return{selfRef:l,position:c,userControlledLeft:h,hiddenTabs:g,onMouseWheel:O=>{let x=0;Math.abs(O.deltaX)>Math.abs(O.deltaY)?x=-O.deltaX:x=-O.deltaY,O.deltaMode===1&&(x*=40),d(c+x),h.current=!0,O.stopPropagation()},tabsTruncated:i.current}};$h.useTabOverflow=$ie;Object.defineProperty(Fv,"__esModule",{value:!0});Fv.BorderTabSet=void 0;const wo=u,bR=wa,Rie=zv,Iie=Oh,SR=_i,CR=$l,Nie=$h,Mie=Br,io=Fr,Pie=Go,Aie=e=>{const{border:t,layout:n,iconFactory:r,titleFactory:o,icons:i,path:a}=e,l=wo.useRef(null),c=wo.useRef(null),d=wo.useRef(null),{selfRef:h,position:g,userControlledLeft:p,hiddenTabs:m,onMouseWheel:v,tabsTruncated:y}=(0,Nie.useTabOverflow)(t,Mie.Orientation.flip(t.getOrientation()),l,d),w=A=>{(0,Pie.isAuxMouseEvent)(A)&&n.auxMouseClick(t,A)},C=A=>{n.showContextMenu(t,A)},b=A=>{A.stopPropagation()},S=A=>{const U=n.getShowOverflowMenu();if(U!==void 0)U(t,A,m,E);else{const j=c.current;(0,Iie.showPopup)(j,m,E,n,r,o)}A.stopPropagation()},E=A=>{n.doAction(SR.Actions.selectTab(A.node.getId())),p.current=!1},O=A=>{const U=t.getChildren()[t.getSelected()];U!==void 0&&n.doAction(SR.Actions.floatTab(U.getId())),A.stopPropagation()},x=n.getClassName;let T=t.getTabHeaderRect().styleWithPosition({});const R=[],N=A=>{let U=t.getSelected()===A,j=t.getChildren()[A];R.push(wo.createElement(Rie.BorderButton,{layout:n,border:t.getLocation().getName(),node:j,path:a+"/tb"+A,key:j.getId(),selected:U,iconFactory:r,titleFactory:o,icons:i})),A0&&(y?P=[...L,...P]:R.push(wo.createElement("div",{ref:d,key:"sticky_buttons_container",onMouseDown:b,onTouchStart:b,onDragStart:A=>{A.preventDefault()},className:x(io.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_STICKY_BUTTONS_CONTAINER)},L))),m.length>0){const A=n.i18nName(CR.I18nLabel.Overflow_Menu_Tooltip);let U;typeof i.more=="function"?U=i.more(t,m):U=wo.createElement(wo.Fragment,null,i.more,wo.createElement("div",{className:x(io.CLASSES.FLEXLAYOUT__TAB_BUTTON_OVERFLOW_COUNT)},m.length)),P.splice(Math.min(D.overflowPosition,P.length),0,wo.createElement("button",{key:"overflowbutton",ref:c,className:x(io.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON)+" "+x(io.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON_OVERFLOW)+" "+x(io.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON_OVERFLOW_+t.getLocation().getName()),title:A,onClick:S,onMouseDown:b,onTouchStart:b},U))}const z=t.getSelected();if(z!==-1){const A=t.getChildren()[z];if(A!==void 0&&n.isSupportsPopout()&&A.isEnableFloat()&&!A.isFloating()){const U=n.i18nName(CR.I18nLabel.Float_Tab);P.push(wo.createElement("button",{key:"float",title:U,className:x(io.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON)+" "+x(io.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON_FLOAT),onClick:O,onMouseDown:b,onTouchStart:b},typeof i.popout=="function"?i.popout(A):i.popout))}}const W=wo.createElement("div",{key:"toolbar",ref:l,className:x(io.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR)+" "+x(io.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR_+t.getLocation().getName())},P);T=n.styleFont(T);let B={};const M=t.getBorderBarSize()-1;return t.getLocation()===bR.DockLocation.LEFT?B={right:M,height:M,top:g}:t.getLocation()===bR.DockLocation.RIGHT?B={left:M,height:M,top:g}:B={height:M,left:g},wo.createElement("div",{ref:h,dir:"ltr",style:T,className:I,"data-layout-path":a,onClick:w,onAuxClick:w,onContextMenu:C,onWheel:v},wo.createElement("div",{style:{height:M},className:x(io.CLASSES.FLEXLAYOUT__BORDER_INNER)+" "+x(io.CLASSES.FLEXLAYOUT__BORDER_INNER_+t.getLocation().getName())},wo.createElement("div",{style:B,className:x(io.CLASSES.FLEXLAYOUT__BORDER_INNER_TAB_CONTAINER)+" "+x(io.CLASSES.FLEXLAYOUT__BORDER_INNER_TAB_CONTAINER_+t.getLocation().getName())},R)),W)};Fv.BorderTabSet=Aie;var jv={};Object.defineProperty(jv,"__esModule",{value:!0});jv.Splitter=void 0;const Gd=u,wR=_c,_R=_i,ER=Tl(),rl=Br,Xd=Fr,Lie=e=>{const{layout:t,node:n,path:r}=e,o=Gd.useRef([]),i=Gd.useRef(void 0),a=n.getParent(),l=S=>{var E;wR.DragDrop.instance.setGlassCursorOverride(n.getOrientation()===rl.Orientation.HORZ?"ns-resize":"ew-resize"),wR.DragDrop.instance.startDrag(S,d,h,p,c,void 0,void 0,t.getCurrentDocument(),(E=t.getRootDiv())!==null&&E!==void 0?E:void 0),o.current=a._getSplitterBounds(n,!0);const O=t.getRootDiv();i.current=t.getCurrentDocument().createElement("div"),i.current.style.position="absolute",i.current.className=t.getClassName(Xd.CLASSES.FLEXLAYOUT__SPLITTER_DRAG),i.current.style.cursor=n.getOrientation()===rl.Orientation.HORZ?"ns-resize":"ew-resize";const x=n.getRect();n.getOrientation()===rl.Orientation.VERT&&x.width<2?x.width=2:n.getOrientation()===rl.Orientation.HORZ&&x.height<2&&(x.height=2),x.positionElement(i.current),O&&O.appendChild(i.current)},c=S=>{const E=t.getRootDiv();E&&E.removeChild(i.current)},d=()=>!0,h=S=>{const E=t.getDomRect();if(!E)return;const O={x:S.clientX-E.left,y:S.clientY-E.top};i&&(n.getOrientation()===rl.Orientation.HORZ?i.current.style.top=m(O.y-4)+"px":i.current.style.left=m(O.x-4)+"px"),t.isRealtimeResize()&&g()},g=()=>{let S=0;if(i&&(n.getOrientation()===rl.Orientation.HORZ?S=i.current.offsetTop:S=i.current.offsetLeft),a instanceof ER.BorderNode){const E=a._calculateSplit(n,S);t.doAction(_R.Actions.adjustBorderSplit(n.getParent().getId(),E))}else{const E=a._calculateSplit(n,S);E!==void 0&&t.doAction(_R.Actions.adjustSplit(E))}},p=()=>{g();const S=t.getRootDiv();S&&S.removeChild(i.current)},m=S=>{const E=o.current;let O=S;return SE[1]&&(O=E[1]),O},v=t.getClassName;let y=n.getRect();const w=y.styleWithPosition({cursor:n.getOrientation()===rl.Orientation.HORZ?"ns-resize":"ew-resize"});let C=v(Xd.CLASSES.FLEXLAYOUT__SPLITTER)+" "+v(Xd.CLASSES.FLEXLAYOUT__SPLITTER_+n.getOrientation().getName());a instanceof ER.BorderNode?C+=" "+v(Xd.CLASSES.FLEXLAYOUT__SPLITTER_BORDER):n.getModel().getMaximizedTabset()!==void 0&&(w.display="none");const b=n.getModel().getSplitterExtra();if(b===0)return Gd.createElement("div",{style:w,"data-layout-path":r,className:C,onTouchStart:l,onMouseDown:l});{let S=y.clone();S.x=0,S.y=0,n.getOrientation()===rl.Orientation.VERT?S.width+=b:S.height+=b;const E=S.styleWithPosition({cursor:n.getOrientation()===rl.Orientation.HORZ?"ns-resize":"ew-resize"}),O=v(Xd.CLASSES.FLEXLAYOUT__SPLITTER_EXTRA);return Gd.createElement("div",{style:w,"data-layout-path":r,className:C},Gd.createElement("div",{style:E,className:O,onTouchStart:l,onMouseDown:l}))}};jv.Splitter=Lie;var Hv={},Rh={};Object.defineProperty(Rh,"__esModule",{value:!0});Rh.ErrorBoundary=void 0;const Eb=u,xR=Fr;class Die extends Eb.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,n){console.debug(t),console.debug(n)}render(){return this.state.hasError?Eb.createElement("div",{className:xR.CLASSES.FLEXLAYOUT__ERROR_BOUNDARY_CONTAINER},Eb.createElement("div",{className:xR.CLASSES.FLEXLAYOUT__ERROR_BOUNDARY_CONTENT},this.props.message)):this.props.children}}Rh.ErrorBoundary=Die;Object.defineProperty(Hv,"__esModule",{value:!0});Hv.Tab=void 0;const Yd=u,Bie=u,Fie=_i,OR=xs(),xb=Fr,zie=Rh,kie=$l,jie=Tl(),TR=Go,Hie=e=>{const{layout:t,selected:n,node:r,factory:o,path:i}=e,[a,l]=Yd.useState(!e.node.isEnableRenderOnDemand()||e.selected);Yd.useLayoutEffect(()=>{!a&&n&&l(!0)});const c=()=>{const y=r.getParent();y.getType()===OR.TabSetNode.TYPE&&(y.isActive()||t.doAction(Fie.Actions.setActiveTabset(y.getId())))},d=t.getClassName,h=r.getModel().isUseVisibility(),g=r.getParent(),p=r._styleWithPosition();n||(0,TR.hideElement)(p,h),g instanceof OR.TabSetNode&&r.getModel().getMaximizedTabset()!==void 0&&!g.isMaximized()&&(0,TR.hideElement)(p,h);let m;a&&(m=o(r));let v=d(xb.CLASSES.FLEXLAYOUT__TAB);return g instanceof jie.BorderNode&&(v+=" "+d(xb.CLASSES.FLEXLAYOUT__TAB_BORDER),v+=" "+d(xb.CLASSES.FLEXLAYOUT__TAB_BORDER_+g.getLocation().getName())),r.getContentClassName()!==void 0&&(v+=" "+r.getContentClassName()),Yd.createElement("div",{className:v,"data-layout-path":i,onMouseDown:c,onTouchStart:c,style:p},Yd.createElement(zie.ErrorBoundary,{message:e.layout.i18nName(kie.I18nLabel.Error_rendering_component)},Yd.createElement(Bie.Fragment,null,m)))};Hv.Tab=Hie;var Wv={},Uv={};Object.defineProperty(Uv,"__esModule",{value:!0});Uv.TabButton=void 0;const Vl=u,Wie=$l,Ob=_i,Uie=go,$R=kv,eu=Fr,Tb=Go,Vie=e=>{const{layout:t,node:n,selected:r,iconFactory:o,titleFactory:i,icons:a,path:l}=e,c=Vl.useRef(null),d=Vl.useRef(null),h=W=>{!(0,Tb.isAuxMouseEvent)(W)&&!t.getEditingTab()&&t.dragStart(W,void 0,n,n.isEnableDrag(),m,v)},g=W=>{(0,Tb.isAuxMouseEvent)(W)&&t.auxMouseClick(n,W)},p=W=>{t.showContextMenu(n,W)},m=()=>{t.doAction(Ob.Actions.selectTab(n.getId()))},v=W=>{n.isEnableRename()&&y()},y=()=>{t.setEditingTab(n),t.getCurrentDocument().body.addEventListener("mousedown",w),t.getCurrentDocument().body.addEventListener("touchstart",w)},w=W=>{W.target!==d.current&&(t.getCurrentDocument().body.removeEventListener("mousedown",w),t.getCurrentDocument().body.removeEventListener("touchstart",w),t.setEditingTab(void 0))},C=()=>{const W=n.getCloseType();return!!(r||W===$R.ICloseType.Always||W===$R.ICloseType.Visible&&window.matchMedia&&window.matchMedia("(hover: hover) and (pointer: fine)").matches)},b=W=>{C()?t.doAction(Ob.Actions.deleteTab(n.getId())):m()},S=W=>{W.stopPropagation()};Vl.useLayoutEffect(()=>{E(),t.getEditingTab()===n&&d.current.select()});const E=()=>{var W;const B=t.getDomRect(),M=(W=c.current)===null||W===void 0?void 0:W.getBoundingClientRect();M&&B&&n._setTabRect(new Uie.Rect(M.left-B.left,M.top-B.top,M.width,M.height))},O=W=>{W.stopPropagation()},x=W=>{W.code==="Escape"?t.setEditingTab(void 0):W.code==="Enter"&&(t.setEditingTab(void 0),t.doAction(Ob.Actions.renameTab(n.getId(),W.target.value)))},T=t.getClassName,R=n.getParent(),N=R.isEnableSingleTabStretch()&&R.getChildren().length===1;let I=N?eu.CLASSES.FLEXLAYOUT__TAB_BUTTON_STRETCH:eu.CLASSES.FLEXLAYOUT__TAB_BUTTON,P=T(I);P+=" "+T(I+"_"+R.getTabLocation()),N||(r?P+=" "+T(I+"--selected"):P+=" "+T(I+"--unselected")),n.getClassName()!==void 0&&(P+=" "+n.getClassName());const L=(0,Tb.getRenderStateEx)(t,n,o,i);let D=L.content?Vl.createElement("div",{className:T(eu.CLASSES.FLEXLAYOUT__TAB_BUTTON_CONTENT)},L.content):null;const z=L.leading?Vl.createElement("div",{className:T(eu.CLASSES.FLEXLAYOUT__TAB_BUTTON_LEADING)},L.leading):null;if(t.getEditingTab()===n&&(D=Vl.createElement("input",{ref:d,className:T(eu.CLASSES.FLEXLAYOUT__TAB_BUTTON_TEXTBOX),"data-layout-path":l+"/textbox",type:"text",autoFocus:!0,defaultValue:n.getName(),onKeyDown:x,onMouseDown:O,onTouchStart:O})),n.isEnableClose()&&!N){const W=t.i18nName(Wie.I18nLabel.Close_Tab);L.buttons.push(Vl.createElement("div",{key:"close","data-layout-path":l+"/button/close",title:W,className:T(eu.CLASSES.FLEXLAYOUT__TAB_BUTTON_TRAILING),onMouseDown:S,onClick:b,onTouchStart:S},typeof a.close=="function"?a.close(n):a.close))}return Vl.createElement("div",{ref:c,"data-layout-path":l,className:P,onMouseDown:h,onClick:g,onAuxClick:g,onContextMenu:p,onTouchStart:h,title:n.getHelpText()},z,D,L.buttons)};Uv.TabButton=Vie;Object.defineProperty(Wv,"__esModule",{value:!0});Wv.TabSet=void 0;const An=u,Ws=$l,qd=_i,Kie=Oh,Gie=Uv,Xie=$h,Yie=Br,Ln=Fr,$b=Go,qie=e=>{const{node:t,layout:n,iconFactory:r,titleFactory:o,icons:i,path:a}=e,l=An.useRef(null),c=An.useRef(null),d=An.useRef(null),h=An.useRef(null),{selfRef:g,position:p,userControlledLeft:m,hiddenTabs:v,onMouseWheel:y,tabsTruncated:w}=(0,Xie.useTabOverflow)(t,Yie.Orientation.HORZ,l,h),C=J=>{const ue=n.getShowOverflowMenu();if(ue!==void 0)ue(t,J,v,b);else{const ie=c.current;(0,Kie.showPopup)(ie,v,b,n,r,o)}J.stopPropagation()},b=J=>{n.doAction(qd.Actions.selectTab(J.node.getId())),m.current=!1},S=J=>{if(!(0,$b.isAuxMouseEvent)(J)){let ue=t.getName();if(ue===void 0?ue="":ue=": "+ue,n.doAction(qd.Actions.setActiveTabset(t.getId())),!n.getEditingTab()){const ie=n.i18nName(Ws.I18nLabel.Move_Tabset,ue);t.getModel().getMaximizedTabset()!==void 0?n.dragStart(J,ie,t,!1,Ce=>{},P):n.dragStart(J,ie,t,t.isEnableDrag(),Ce=>{},P)}}},E=J=>{(0,$b.isAuxMouseEvent)(J)&&n.auxMouseClick(t,J)},O=J=>{n.showContextMenu(t,J)},x=J=>{J.stopPropagation()},T=J=>{t.canMaximize()&&n.maximize(t),J.stopPropagation()},R=J=>{n.doAction(qd.Actions.deleteTabset(t.getId())),J.stopPropagation()},N=J=>{n.doAction(qd.Actions.deleteTab(t.getChildren()[0].getId())),J.stopPropagation()},I=J=>{D!==void 0&&n.doAction(qd.Actions.floatTab(D.getId())),J.stopPropagation()},P=J=>{t.canMaximize()&&n.maximize(t)},L=n.getClassName;d.current!==null&&d.current.scrollLeft!==0&&(d.current.scrollLeft=0);const D=t.getSelectedNode();let z=t._styleWithPosition();t.getModel().getMaximizedTabset()!==void 0&&!t.isMaximized()&&(0,$b.hideElement)(z,t.getModel().isUseVisibility());const W=[];if(t.isEnableTabStrip())for(let J=0;J0&&(w||X?A=[...M,...A]:W.push(An.createElement("div",{ref:h,key:"sticky_buttons_container",onMouseDown:x,onTouchStart:x,onDragStart:J=>{J.preventDefault()},className:L(Ln.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_STICKY_BUTTONS_CONTAINER)},M))),v.length>0){const J=n.i18nName(Ws.I18nLabel.Overflow_Menu_Tooltip);let ue;typeof i.more=="function"?ue=i.more(t,v):ue=An.createElement(An.Fragment,null,i.more,An.createElement("div",{className:L(Ln.CLASSES.FLEXLAYOUT__TAB_BUTTON_OVERFLOW_COUNT)},v.length)),A.splice(Math.min(j.overflowPosition,A.length),0,An.createElement("button",{key:"overflowbutton","data-layout-path":a+"/button/overflow",ref:c,className:L(Ln.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON)+" "+L(Ln.CLASSES.FLEXLAYOUT__TAB_BUTTON_OVERFLOW),title:J,onClick:C,onMouseDown:x,onTouchStart:x},ue))}if(D!==void 0&&n.isSupportsPopout()&&D.isEnableFloat()&&!D.isFloating()){const J=n.i18nName(Ws.I18nLabel.Float_Tab);A.push(An.createElement("button",{key:"float","data-layout-path":a+"/button/float",title:J,className:L(Ln.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON)+" "+L(Ln.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_FLOAT),onClick:I,onMouseDown:x,onTouchStart:x},typeof i.popout=="function"?i.popout(D):i.popout))}if(t.canMaximize()){const J=n.i18nName(Ws.I18nLabel.Restore),ue=n.i18nName(Ws.I18nLabel.Maximize);(B?U:A).push(An.createElement("button",{key:"max","data-layout-path":a+"/button/max",title:t.isMaximized()?J:ue,className:L(Ln.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON)+" "+L(Ln.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_+(t.isMaximized()?"max":"min")),onClick:T,onMouseDown:x,onTouchStart:x},t.isMaximized()?typeof i.restore=="function"?i.restore(t):i.restore:typeof i.maximize=="function"?i.maximize(t):i.maximize))}if(!t.isMaximized()&&re){const J=X?n.i18nName(Ws.I18nLabel.Close_Tab):n.i18nName(Ws.I18nLabel.Close_Tabset);(B?U:A).push(An.createElement("button",{key:"close","data-layout-path":a+"/button/close",title:J,className:L(Ln.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON)+" "+L(Ln.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_CLOSE),onClick:X?N:R,onMouseDown:x,onTouchStart:x},typeof i.closeTabset=="function"?i.closeTabset(t):i.closeTabset))}const te=An.createElement("div",{key:"toolbar",ref:l,className:L(Ln.CLASSES.FLEXLAYOUT__TAB_TOOLBAR),onMouseDown:x,onTouchStart:x,onDragStart:J=>{J.preventDefault()}},A);let Z,he,ge=L(Ln.CLASSES.FLEXLAYOUT__TABSET_TABBAR_OUTER);if(t.getClassNameTabStrip()!==void 0&&(ge+=" "+t.getClassNameTabStrip()),ge+=" "+Ln.CLASSES.FLEXLAYOUT__TABSET_TABBAR_OUTER_+t.getTabLocation(),t.isActive()&&!B&&(ge+=" "+L(Ln.CLASSES.FLEXLAYOUT__TABSET_SELECTED)),t.isMaximized()&&!B&&(ge+=" "+L(Ln.CLASSES.FLEXLAYOUT__TABSET_MAXIMIZED)),X){const J=t.getChildren()[0];J.getTabSetClassName()!==void 0&&(ge+=" "+J.getTabSetClassName())}if(B){const J=An.createElement("div",{key:"toolbar",ref:l,className:L(Ln.CLASSES.FLEXLAYOUT__TAB_TOOLBAR),onMouseDown:x,onTouchStart:x,onDragStart:ie=>{ie.preventDefault()}},U);let ue=L(Ln.CLASSES.FLEXLAYOUT__TABSET_HEADER);t.isActive()&&(ue+=" "+L(Ln.CLASSES.FLEXLAYOUT__TABSET_SELECTED)),t.isMaximized()&&(ue+=" "+L(Ln.CLASSES.FLEXLAYOUT__TABSET_MAXIMIZED)),t.getClassNameHeader()!==void 0&&(ue+=" "+t.getClassNameHeader()),Z=An.createElement("div",{className:ue,style:{height:t.getHeaderHeight()+"px"},"data-layout-path":a+"/header",onMouseDown:S,onContextMenu:O,onClick:E,onAuxClick:E,onTouchStart:S},An.createElement("div",{className:L(Ln.CLASSES.FLEXLAYOUT__TABSET_HEADER_CONTENT)},G),J)}const ce={height:t.getTabStripHeight()+"px"};he=An.createElement("div",{className:ge,style:ce,"data-layout-path":a+"/tabstrip",onMouseDown:S,onContextMenu:O,onClick:E,onAuxClick:E,onTouchStart:S},An.createElement("div",{ref:d,className:L(Ln.CLASSES.FLEXLAYOUT__TABSET_TABBAR_INNER)+" "+L(Ln.CLASSES.FLEXLAYOUT__TABSET_TABBAR_INNER_+t.getTabLocation())},An.createElement("div",{style:{left:p,width:X?"100%":"10000px"},className:L(Ln.CLASSES.FLEXLAYOUT__TABSET_TABBAR_INNER_TAB_CONTAINER)+" "+L(Ln.CLASSES.FLEXLAYOUT__TABSET_TABBAR_INNER_TAB_CONTAINER_+t.getTabLocation())},W)),te),z=n.styleFont(z);var be=void 0;if(t.getChildren().length===0){const J=n.getTabSetPlaceHolderCallback();J&&(be=J(t))}const pe=An.createElement("div",{className:L(Ln.CLASSES.FLEXLAYOUT__TABSET_CONTENT)},be);var ae;return t.getTabLocation()==="top"?ae=An.createElement(An.Fragment,null,Z,he,pe):ae=An.createElement(An.Fragment,null,Z,pe,he),An.createElement("div",{ref:g,dir:"ltr","data-layout-path":a,style:z,className:L(Ln.CLASSES.FLEXLAYOUT__TABSET),onWheel:y},ae)};Wv.TabSet=qie;var Vv={};Object.defineProperty(Vv,"__esModule",{value:!0});Vv.FloatingWindow=void 0;const ip=u,Qie=va,Zie=go,Jie=Fr,eae=e=>{const{title:t,id:n,url:r,rect:o,onCloseWindow:i,onSetWindow:a,children:l}=e,c=ip.useRef(null),d=ip.useRef(null),[h,g]=ip.useState(void 0);return ip.useLayoutEffect(()=>{d.current&&clearTimeout(d.current);let p=!0;const m=o||new Zie.Rect(0,0,100,100),v=Array.from(window.document.styleSheets).reduce((y,w)=>{let C;try{C=w.cssRules}catch{}try{return[...y,{href:w.href,type:w.type,rules:C?Array.from(C).map(b=>b.cssText):null}]}catch{return y}},[]);return c.current=window.open(r,n,`left=${m.x},top=${m.y},width=${m.width},height=${m.height}`),c.current!==null?(a(n,c.current),window.addEventListener("beforeunload",()=>{c.current&&(c.current.close(),c.current=null)}),c.current.addEventListener("load",()=>{if(p){const y=c.current.document;y.title=t;const w=y.createElement("div");w.className=Jie.CLASSES.FLEXLAYOUT__FLOATING_WINDOW_CONTENT,y.body.appendChild(w),tae(y,v).then(()=>{g(w)}),c.current.addEventListener("beforeunload",()=>{i(n)})}})):(console.warn(`Unable to open window ${r}`),i(n)),()=>{p=!1,d.current=setTimeout(()=>{c.current&&(c.current.close(),c.current=null)},0)}},[]),h!==void 0?(0,Qie.createPortal)(l,h):null};Vv.FloatingWindow=eae;function tae(e,t){const n=e.head,r=[];for(const o of t)if(o.href){const i=e.createElement("link");i.type=o.type,i.rel="stylesheet",i.href=o.href,n.appendChild(i),r.push(new Promise(a=>{i.onload=()=>a(!0)}))}else if(o.rules){const i=e.createElement("style");for(const a of o.rules)i.appendChild(e.createTextNode(a));n.appendChild(i)}return Promise.all(r)}var Kv={};Object.defineProperty(Kv,"__esModule",{value:!0});Kv.FloatingWindowTab=void 0;const Rb=u,nae=Rh,rae=$l,oae=u,iae=Fr,aae=e=>{const{layout:t,node:n,factory:r}=e,o=t.getClassName,i=r(n);return Rb.createElement("div",{className:o(iae.CLASSES.FLEXLAYOUT__FLOATING_WINDOW_TAB)},Rb.createElement(nae.ErrorBoundary,{message:e.layout.i18nName(rae.I18nLabel.Error_rendering_component)},Rb.createElement(oae.Fragment,null,i)))};Kv.FloatingWindowTab=aae;var Gv={};Object.defineProperty(Gv,"__esModule",{value:!0});Gv.TabFloating=void 0;const Kl=u,RR=_i,IR=xs(),Ib=Fr,Nb=$l,NR=Go,lae=e=>{const{layout:t,selected:n,node:r,path:o}=e,i=()=>{r.getWindow()&&r.getWindow().focus()},a=()=>{t.doAction(RR.Actions.unFloatTab(r.getId()))},l=()=>{const C=r.getParent();C.getType()===IR.TabSetNode.TYPE&&(C.isActive()||t.doAction(RR.Actions.setActiveTabset(C.getId())))},c=C=>{C.preventDefault(),i()},d=C=>{C.preventDefault(),a()},h=t.getClassName,g=r.getParent(),p=r._styleWithPosition();n||(0,NR.hideElement)(p,r.getModel().isUseVisibility()),g instanceof IR.TabSetNode&&r.getModel().getMaximizedTabset()!==void 0&&!g.isMaximized()&&(0,NR.hideElement)(p,r.getModel().isUseVisibility());const m=t.i18nName(Nb.I18nLabel.Floating_Window_Message),v=t.i18nName(Nb.I18nLabel.Floating_Window_Show_Window),y=t.i18nName(Nb.I18nLabel.Floating_Window_Dock_Window),w=t.getOnRenderFloatingTabPlaceholder();return w?Kl.createElement("div",{className:h(Ib.CLASSES.FLEXLAYOUT__TAB_FLOATING),onMouseDown:l,onTouchStart:l,style:p},w(a,i)):Kl.createElement("div",{className:h(Ib.CLASSES.FLEXLAYOUT__TAB_FLOATING),"data-layout-path":o,onMouseDown:l,onTouchStart:l,style:p},Kl.createElement("div",{className:h(Ib.CLASSES.FLEXLAYOUT__TAB_FLOATING_INNER)},Kl.createElement("div",null,m),Kl.createElement("div",null,Kl.createElement("a",{href:"#",onClick:c},v)),Kl.createElement("div",null,Kl.createElement("a",{href:"#",onClick:d},y))))};Gv.TabFloating=lae;var jo={};Object.defineProperty(jo,"__esModule",{value:!0});jo.RestoreIcon=jo.PopoutIcon=jo.EdgeIcon=jo.OverflowIcon=jo.MaximizeIcon=jo.CloseIcon=void 0;const Kr=u,Ih={width:"1em",height:"1em",display:"flex",alignItems:"center"},sae=()=>Kr.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:Ih,viewBox:"0 0 24 24"},Kr.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),Kr.createElement("path",{stroke:"var(--color-icon)",fill:"var(--color-icon)",d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}));jo.CloseIcon=sae;const cae=()=>Kr.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:Ih,viewBox:"0 0 24 24",fill:"var(--color-icon)"},Kr.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),Kr.createElement("path",{stroke:"var(--color-icon)",d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"}));jo.MaximizeIcon=cae;const uae=()=>Kr.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:Ih,viewBox:"0 0 24 24",fill:"var(--color-icon)"},Kr.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),Kr.createElement("path",{stroke:"var(--color-icon)",d:"M7 10l5 5 5-5z"}));jo.OverflowIcon=uae;const dae=()=>Kr.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:{display:"block",width:10,height:10},preserveAspectRatio:"none",viewBox:"0 0 100 100"},Kr.createElement("path",{fill:"var(--color-edge-icon)",stroke:"var(--color-edge-icon)",d:"M10 30 L90 30 l-40 40 Z"}));jo.EdgeIcon=dae;const fae=()=>Kr.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:Ih,viewBox:"0 0 20 20",fill:"var(--color-icon)"},Kr.createElement("path",{d:"M11 3a1 1 0 100 2h2.586l-6.293 6.293a1 1 0 101.414 1.414L15 6.414V9a1 1 0 102 0V4a1 1 0 00-1-1h-5z"}),Kr.createElement("path",{d:"M5 5a2 2 0 00-2 2v8a2 2 0 002 2h8a2 2 0 002-2v-3a1 1 0 10-2 0v3H5V7h3a1 1 0 000-2H5z"}));jo.PopoutIcon=fae;const hae=()=>Kr.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:Ih,viewBox:"0 0 24 24",fill:"var(--color-icon)"},Kr.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),Kr.createElement("path",{stroke:"var(--color-icon)",d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"}));jo.RestoreIcon=hae;Object.defineProperty(Lv,"__esModule",{value:!0});Lv.Layout=void 0;const kt=u,gae=va,na=wa,Gl=_c,tu=_i,pae=Tl(),MR=xc,Xl=Es,PR=xs(),ap=go,Fo=Fr,mae=Fv,AR=jv,LR=Hv,vae=Wv,DR=Vv,BR=Kv,FR=Gv,Mb=Br,Us=jo,yae=Th,bae={close:kt.createElement(Us.CloseIcon,null),closeTabset:kt.createElement(Us.CloseIcon,null),popout:kt.createElement(Us.PopoutIcon,null),maximize:kt.createElement(Us.MaximizeIcon,null),restore:kt.createElement(Us.RestoreIcon,null),more:kt.createElement(Us.OverflowIcon,null),edgeArrow:kt.createElement(Us.EdgeIcon,null)},Sae=typeof window<"u"&&(window.document.documentMode||/Edge\//.test(window.navigator.userAgent)),Cae=typeof window<"u"&&window.matchMedia&&window.matchMedia("(hover: hover) and (pointer: fine)").matches,wae=Cae&&!Sae;class _ae extends kt.Component{constructor(t){super(t),this.firstMove=!1,this.dragRectRendered=!0,this.dragDivText=void 0,this.edgeRectLength=100,this.edgeRectWidth=10,this.onModelChange=n=>{this.forceUpdate(),this.props.onModelChange&&this.props.onModelChange(this.props.model,n)},this.updateRect=n=>{if(n||(n=this.getDomRect()),!n)return;const r=new ap.Rect(0,0,n.width,n.height);!r.equals(this.state.rect)&&r.width!==0&&r.height!==0&&this.setState({rect:r})},this.updateLayoutMetrics=()=>{if(this.findHeaderBarSizeRef.current){const n=this.findHeaderBarSizeRef.current.getBoundingClientRect().height;n!==this.state.calculatedHeaderBarSize&&this.setState({calculatedHeaderBarSize:n})}if(this.findTabBarSizeRef.current){const n=this.findTabBarSizeRef.current.getBoundingClientRect().height;n!==this.state.calculatedTabBarSize&&this.setState({calculatedTabBarSize:n})}if(this.findBorderBarSizeRef.current){const n=this.findBorderBarSizeRef.current.getBoundingClientRect().height;n!==this.state.calculatedBorderBarSize&&this.setState({calculatedBorderBarSize:n})}},this.getClassName=n=>this.props.classNameMapper===void 0?n:this.props.classNameMapper(n),this.onCloseWindow=n=>{this.doAction(tu.Actions.unFloatTab(n));try{this.props.model.getNodeById(n)._setWindow(void 0)}catch{}},this.onSetWindow=(n,r)=>{this.props.model.getNodeById(n)._setWindow(r)},this.onCancelAdd=()=>{var n,r;const o=this.selfRef.current;o&&this.dragDiv&&o.removeChild(this.dragDiv),this.dragDiv=void 0,this.hidePortal(),this.fnNewNodeDropped!=null&&(this.fnNewNodeDropped(),this.fnNewNodeDropped=void 0);try{(r=(n=this.customDrop)===null||n===void 0?void 0:n.invalidated)===null||r===void 0||r.call(n)}catch(i){console.error(i)}Gl.DragDrop.instance.hideGlass(),this.newTabJson=void 0,this.customDrop=void 0},this.onCancelDrag=n=>{var r,o;if(n){const i=this.selfRef.current,a=this.outlineDiv;if(i&&a)try{i.removeChild(a)}catch{}const l=this.dragDiv;if(i&&l)try{i.removeChild(l)}catch{}this.dragDiv=void 0,this.hidePortal(),this.setState({showEdges:!1}),this.fnNewNodeDropped!=null&&(this.fnNewNodeDropped(),this.fnNewNodeDropped=void 0);try{(o=(r=this.customDrop)===null||r===void 0?void 0:r.invalidated)===null||o===void 0||o.call(r)}catch(c){console.error(c)}Gl.DragDrop.instance.hideGlass(),this.newTabJson=void 0,this.customDrop=void 0}this.setState({showHiddenBorder:na.DockLocation.CENTER})},this.onDragDivMouseDown=n=>{n.preventDefault(),this.dragStart(n,this.dragDivText,Xl.TabNode._fromJson(this.newTabJson,this.props.model,!1),!0,void 0,void 0)},this.dragStart=(n,r,o,i,a,l)=>{var c,d;i?(this.dragNode=o,this.dragDivText=r,Gl.DragDrop.instance.startDrag(n,this.onDragStart,this.onDragMove,this.onDragEnd,this.onCancelDrag,a,l,this.currentDocument,(d=this.selfRef.current)!==null&&d!==void 0?d:void 0)):Gl.DragDrop.instance.startDrag(n,void 0,void 0,void 0,void 0,a,l,this.currentDocument,(c=this.selfRef.current)!==null&&c!==void 0?c:void 0)},this.dragRectRender=(n,r,o,i)=>{let a;if(n!==void 0?a=kt.createElement("div",{style:{whiteSpace:"pre"}},n.replace("
",` `)):r&&r instanceof Xl.TabNode&&(a=kt.createElement(yae.TabButtonStamp,{node:r,layout:this,iconFactory:this.props.iconFactory,titleFactory:this.props.titleFactory})),this.props.onRenderDragRect!==void 0){const c=this.props.onRenderDragRect(a,r,o);c!==void 0&&(a=c)}this.dragRectRendered=!1;const l=this.dragDiv;l&&(l.style.visibility="hidden",this.showPortal(kt.createElement(Eae,{onRendered:()=>{this.dragRectRendered=!0,i==null||i()}},a),l))},this.showPortal=(n,r)=>{const o=(0,gae.createPortal)(n,r);this.setState({portal:o})},this.hidePortal=()=>{this.setState({portal:void 0})},this.onDragStart=()=>{var n;this.dropInfo=void 0,this.customDrop=void 0;const r=this.selfRef.current;return this.outlineDiv=this.currentDocument.createElement("div"),this.outlineDiv.className=this.getClassName(Fo.CLASSES.FLEXLAYOUT__OUTLINE_RECT),this.outlineDiv.style.visibility="hidden",r&&r.appendChild(this.outlineDiv),this.dragDiv==null&&(this.dragDiv=this.currentDocument.createElement("div"),this.dragDiv.className=this.getClassName(Fo.CLASSES.FLEXLAYOUT__DRAG_RECT),this.dragDiv.setAttribute("data-layout-path","/drag-rectangle"),this.dragRectRender(this.dragDivText,this.dragNode,this.newTabJson),r&&r.appendChild(this.dragDiv)),this.props.model.getMaximizedTabset()===void 0&&this.setState({showEdges:this.props.model.isEnableEdgeDock()}),this.dragNode&&this.outlineDiv&&this.dragNode instanceof Xl.TabNode&&this.dragNode.getTabRect()!==void 0&&((n=this.dragNode.getTabRect())===null||n===void 0||n.positionElement(this.outlineDiv)),this.firstMove=!0,!0},this.onDragMove=n=>{var r,o,i,a,l,c,d;if(this.firstMove===!1){const y=this.props.model._getAttribute("tabDragSpeed");this.outlineDiv&&(this.outlineDiv.style.transition=`top ${y}s, left ${y}s, width ${y}s, height ${y}s`)}this.firstMove=!1;const h=(r=this.selfRef.current)===null||r===void 0?void 0:r.getBoundingClientRect(),g={x:n.clientX-((o=h==null?void 0:h.left)!==null&&o!==void 0?o:0),y:n.clientY-((i=h==null?void 0:h.top)!==null&&i!==void 0?i:0)};this.checkForBorderToShow(g.x,g.y);const p=(l=(a=this.dragDiv)===null||a===void 0?void 0:a.getBoundingClientRect())!==null&&l!==void 0?l:new DOMRect(0,0,100,100);let m=g.x-p.width/2;m+p.width>((c=h==null?void 0:h.width)!==null&&c!==void 0?c:0)&&(m=((d=h==null?void 0:h.width)!==null&&d!==void 0?d:0)-p.width),m=Math.max(0,m),this.dragDiv&&(this.dragDiv.style.left=m+"px",this.dragDiv.style.top=g.y+5+"px",this.dragRectRendered&&this.dragDiv.style.visibility==="hidden"&&(this.dragDiv.style.visibility="visible"));let v=this.props.model._findDropTargetNode(this.dragNode,g.x,g.y);v&&(this.props.onTabDrag?this.handleCustomTabDrag(v,g,n):(this.dropInfo=v,this.outlineDiv&&(this.outlineDiv.className=this.getClassName(v.className),v.rect.positionElement(this.outlineDiv),this.outlineDiv.style.visibility="visible")))},this.onDragEnd=n=>{const r=this.selfRef.current;if(r&&(this.outlineDiv&&r.removeChild(this.outlineDiv),this.dragDiv&&r.removeChild(this.dragDiv)),this.dragDiv=void 0,this.hidePortal(),this.setState({showEdges:!1}),Gl.DragDrop.instance.hideGlass(),this.dropInfo)if(this.customDrop){this.newTabJson=void 0;try{const{callback:o,dragging:i,over:a,x:l,y:c,location:d}=this.customDrop;o(i,a,l,c,d),this.fnNewNodeDropped!=null&&(this.fnNewNodeDropped(),this.fnNewNodeDropped=void 0)}catch(o){console.error(o)}}else if(this.newTabJson!==void 0){const o=this.doAction(tu.Actions.addNode(this.newTabJson,this.dropInfo.node.getId(),this.dropInfo.location,this.dropInfo.index));this.fnNewNodeDropped!=null&&(this.fnNewNodeDropped(o,n),this.fnNewNodeDropped=void 0),this.newTabJson=void 0}else this.dragNode!==void 0&&this.doAction(tu.Actions.moveNode(this.dragNode.getId(),this.dropInfo.node.getId(),this.dropInfo.location,this.dropInfo.index));this.setState({showHiddenBorder:na.DockLocation.CENTER})},this.props.model._setChangeListener(this.onModelChange),this.tabIds=[],this.selfRef=kt.createRef(),this.findHeaderBarSizeRef=kt.createRef(),this.findTabBarSizeRef=kt.createRef(),this.findBorderBarSizeRef=kt.createRef(),this.supportsPopout=t.supportsPopout!==void 0?t.supportsPopout:wae,this.popoutURL=t.popoutURL?t.popoutURL:"popout.html",this.icons=Object.assign(Object.assign({},bae),t.icons),this.state={rect:new ap.Rect(0,0,0,0),calculatedHeaderBarSize:25,calculatedTabBarSize:26,calculatedBorderBarSize:30,editingTab:void 0,showHiddenBorder:na.DockLocation.CENTER,showEdges:!1},this.onDragEnter=this.onDragEnter.bind(this)}styleFont(t){return this.props.font&&(this.selfRef.current&&(this.props.font.size&&this.selfRef.current.style.setProperty("--font-size",this.props.font.size),this.props.font.family&&this.selfRef.current.style.setProperty("--font-family",this.props.font.family)),this.props.font.style&&(t.fontStyle=this.props.font.style),this.props.font.weight&&(t.fontWeight=this.props.font.weight)),t}doAction(t){if(this.props.onAction!==void 0){const n=this.props.onAction(t);return n!==void 0?this.props.model.doAction(n):void 0}else return this.props.model.doAction(t)}componentDidMount(){this.updateRect(),this.updateLayoutMetrics(),this.currentDocument=this.selfRef.current.ownerDocument,this.currentWindow=this.currentDocument.defaultView,this.resizeObserver=new ResizeObserver(n=>{this.updateRect(n[0].contentRect)});const t=this.selfRef.current;t&&this.resizeObserver.observe(t)}componentDidUpdate(){this.updateLayoutMetrics(),this.props.model!==this.previousModel&&(this.previousModel!==void 0&&this.previousModel._setChangeListener(void 0),this.props.model._setChangeListener(this.onModelChange),this.previousModel=this.props.model)}getCurrentDocument(){return this.currentDocument}getDomRect(){var t;return(t=this.selfRef.current)===null||t===void 0?void 0:t.getBoundingClientRect()}getRootDiv(){return this.selfRef.current}isSupportsPopout(){return this.supportsPopout}isRealtimeResize(){var t;return(t=this.props.realtimeResize)!==null&&t!==void 0?t:!1}onTabDrag(...t){var n,r;return(r=(n=this.props).onTabDrag)===null||r===void 0?void 0:r.call(n,...t)}getPopoutURL(){return this.popoutURL}componentWillUnmount(){var t;const n=this.selfRef.current;n&&((t=this.resizeObserver)===null||t===void 0||t.unobserve(n))}setEditingTab(t){this.setState({editingTab:t})}getEditingTab(){return this.state.editingTab}render(){if(!this.selfRef.current)return kt.createElement("div",{ref:this.selfRef,className:this.getClassName(Fo.CLASSES.FLEXLAYOUT__LAYOUT)},this.metricsElements());this.props.model._setPointerFine(window&&window.matchMedia&&window.matchMedia("(pointer: fine)").matches);const t=[],n=[],r=[],o={},i=[],a={headerBarSize:this.state.calculatedHeaderBarSize,tabBarSize:this.state.calculatedTabBarSize,borderBarSize:this.state.calculatedBorderBarSize};this.props.model._setShowHiddenBorder(this.state.showHiddenBorder),this.centerRect=this.props.model._layout(this.state.rect,a),this.renderBorder(this.props.model.getBorderSet(),t,o,r,i),this.renderChildren("",this.props.model.getRoot(),n,o,r,i);const l=[],c={};for(const g of this.tabIds)o[g]&&(l.push(g),c[g]=g);this.tabIds=l;for(const g of Object.keys(o))c[g]||this.tabIds.push(g);const d=[],h=this.icons.edgeArrow;if(this.state.showEdges){const g=this.centerRect,p=this.edgeRectLength,m=this.edgeRectWidth,v=this.edgeRectLength/2,y=this.getClassName(Fo.CLASSES.FLEXLAYOUT__EDGE_RECT),w=50;d.push(kt.createElement("div",{key:"North",style:{top:g.y,left:g.x+g.width/2-v,width:p,height:m,borderBottomLeftRadius:w,borderBottomRightRadius:w},className:y+" "+this.getClassName(Fo.CLASSES.FLEXLAYOUT__EDGE_RECT_TOP)},kt.createElement("div",{style:{transform:"rotate(180deg)"}},h))),d.push(kt.createElement("div",{key:"West",style:{top:g.y+g.height/2-v,left:g.x,width:m,height:p,borderTopRightRadius:w,borderBottomRightRadius:w},className:y+" "+this.getClassName(Fo.CLASSES.FLEXLAYOUT__EDGE_RECT_LEFT)},kt.createElement("div",{style:{transform:"rotate(90deg)"}},h))),d.push(kt.createElement("div",{key:"South",style:{top:g.y+g.height-m,left:g.x+g.width/2-v,width:p,height:m,borderTopLeftRadius:w,borderTopRightRadius:w},className:y+" "+this.getClassName(Fo.CLASSES.FLEXLAYOUT__EDGE_RECT_BOTTOM)},kt.createElement("div",null,h))),d.push(kt.createElement("div",{key:"East",style:{top:g.y+g.height/2-v,left:g.x+g.width-m,width:m,height:p,borderTopLeftRadius:w,borderBottomLeftRadius:w},className:y+" "+this.getClassName(Fo.CLASSES.FLEXLAYOUT__EDGE_RECT_RIGHT)},kt.createElement("div",{style:{transform:"rotate(-90deg)"}},h)))}return kt.createElement("div",{ref:this.selfRef,className:this.getClassName(Fo.CLASSES.FLEXLAYOUT__LAYOUT),onDragEnter:this.props.onExternalDrag?this.onDragEnter:void 0},n,this.tabIds.map(g=>o[g]),t,i,d,r,this.metricsElements(),this.state.portal)}metricsElements(){const t=this.styleFont({visibility:"hidden"});return kt.createElement(kt.Fragment,null,kt.createElement("div",{key:"findHeaderBarSize",ref:this.findHeaderBarSizeRef,style:t,className:this.getClassName(Fo.CLASSES.FLEXLAYOUT__TABSET_HEADER_SIZER)},"FindHeaderBarSize"),kt.createElement("div",{key:"findTabBarSize",ref:this.findTabBarSizeRef,style:t,className:this.getClassName(Fo.CLASSES.FLEXLAYOUT__TABSET_SIZER)},"FindTabBarSize"),kt.createElement("div",{key:"findBorderBarSize",ref:this.findBorderBarSizeRef,style:t,className:this.getClassName(Fo.CLASSES.FLEXLAYOUT__BORDER_SIZER)},"FindBorderBarSize"))}renderBorder(t,n,r,o,i){for(const a of t.getBorders()){const l=`/border/${a.getLocation().getName()}`;if(a.isShowing()){n.push(kt.createElement(mae.BorderTabSet,{key:`border_${a.getLocation().getName()}`,path:l,border:a,layout:this,iconFactory:this.props.iconFactory,titleFactory:this.props.titleFactory,icons:this.icons}));const c=a._getDrawChildren();let d=0,h=0;for(const g of c){if(g instanceof MR.SplitterNode){let p=l+"/s";i.push(kt.createElement(AR.Splitter,{key:g.getId(),layout:this,node:g,path:p}))}else if(g instanceof Xl.TabNode){let p=l+"/t"+h++;if(this.supportsPopout&&g.isFloating()){const m=this._getScreenRect(g),v=g._getAttr("borderWidth"),y=g._getAttr("borderHeight");m&&(v!==-1&&a.getLocation().getOrientation()===Mb.Orientation.HORZ?m.width=v:y!==-1&&a.getLocation().getOrientation()===Mb.Orientation.VERT&&(m.height=y)),o.push(kt.createElement(DR.FloatingWindow,{key:g.getId(),url:this.popoutURL,rect:m,title:g.getName(),id:g.getId(),onSetWindow:this.onSetWindow,onCloseWindow:this.onCloseWindow},kt.createElement(BR.FloatingWindowTab,{layout:this,node:g,factory:this.props.factory}))),r[g.getId()]=kt.createElement(FR.TabFloating,{key:g.getId(),layout:this,path:p,node:g,selected:d===a.getSelected()})}else r[g.getId()]=kt.createElement(LR.Tab,{key:g.getId(),layout:this,path:p,node:g,selected:d===a.getSelected(),factory:this.props.factory})}d++}}}}renderChildren(t,n,r,o,i,a){const l=n._getDrawChildren();let c=0,d=0,h=0;for(const g of l)if(g instanceof MR.SplitterNode){const p=t+"/s"+c++;a.push(kt.createElement(AR.Splitter,{key:g.getId(),layout:this,path:p,node:g}))}else if(g instanceof PR.TabSetNode){const p=t+"/ts"+h++;r.push(kt.createElement(vae.TabSet,{key:g.getId(),layout:this,path:p,node:g,iconFactory:this.props.iconFactory,titleFactory:this.props.titleFactory,icons:this.icons})),this.renderChildren(p,g,r,o,i,a)}else if(g instanceof Xl.TabNode){const p=t+"/t"+d++,m=g.getParent().getChildren()[g.getParent().getSelected()];if(m===void 0&&console.warn("undefined selectedTab should not happen"),this.supportsPopout&&g.isFloating()){const v=this._getScreenRect(g);i.push(kt.createElement(DR.FloatingWindow,{key:g.getId(),url:this.popoutURL,rect:v,title:g.getName(),id:g.getId(),onSetWindow:this.onSetWindow,onCloseWindow:this.onCloseWindow},kt.createElement(BR.FloatingWindowTab,{layout:this,node:g,factory:this.props.factory}))),o[g.getId()]=kt.createElement(FR.TabFloating,{key:g.getId(),layout:this,path:p,node:g,selected:g===m})}else o[g.getId()]=kt.createElement(LR.Tab,{key:g.getId(),layout:this,path:p,node:g,selected:g===m,factory:this.props.factory})}else{const p=t+(g.getOrientation()===Mb.Orientation.HORZ?"/r":"/c")+h++;this.renderChildren(p,g,r,o,i,a)}}_getScreenRect(t){var n;const r=t.getRect().clone(),o=(n=this.selfRef.current)===null||n===void 0?void 0:n.getBoundingClientRect();if(!o)return null;const i=Math.min(80,this.currentWindow.outerHeight-this.currentWindow.innerHeight),a=Math.min(80,this.currentWindow.outerWidth-this.currentWindow.innerWidth);return r.x=r.x+o.x+this.currentWindow.screenX+a,r.y=r.y+o.y+this.currentWindow.screenY+i,r}addTabToTabSet(t,n){if(this.props.model.getNodeById(t)!==void 0)return this.doAction(tu.Actions.addNode(n,t,na.DockLocation.CENTER,-1))}addTabToActiveTabSet(t){const n=this.props.model.getActiveTabset();if(n!==void 0)return this.doAction(tu.Actions.addNode(t,n.getId(),na.DockLocation.CENTER,-1))}addTabWithDragAndDrop(t,n,r){this.fnNewNodeDropped=r,this.newTabJson=n,this.dragStart(void 0,t,Xl.TabNode._fromJson(n,this.props.model,!1),!0,void 0,void 0)}moveTabWithDragAndDrop(t,n){this.dragStart(void 0,n,t,!0,void 0,void 0)}addTabWithDragAndDropIndirect(t,n,r){this.fnNewNodeDropped=r,this.newTabJson=n,Gl.DragDrop.instance.addGlass(this.onCancelAdd),this.dragDivText=t,this.dragDiv=this.currentDocument.createElement("div"),this.dragDiv.className=this.getClassName(Fo.CLASSES.FLEXLAYOUT__DRAG_RECT),this.dragDiv.addEventListener("mousedown",this.onDragDivMouseDown),this.dragDiv.addEventListener("touchstart",this.onDragDivMouseDown,{passive:!1}),this.dragRectRender(this.dragDivText,void 0,this.newTabJson,()=>{if(this.dragDiv){this.dragDiv.style.visibility="visible";const i=this.dragDiv.getBoundingClientRect(),a=new ap.Rect(0,0,i==null?void 0:i.width,i==null?void 0:i.height);a.centerInRect(this.state.rect),this.dragDiv.setAttribute("data-layout-path","/drag-rectangle"),this.dragDiv.style.left=a.x+"px",this.dragDiv.style.top=a.y+"px"}}),this.selfRef.current.appendChild(this.dragDiv)}handleCustomTabDrag(t,n,r){var o,i,a;let l=(o=this.customDrop)===null||o===void 0?void 0:o.invalidated;const c=(i=this.customDrop)===null||i===void 0?void 0:i.callback;this.customDrop=void 0;const d=this.newTabJson||(this.dragNode instanceof Xl.TabNode?this.dragNode:void 0);if(d&&(t.node instanceof PR.TabSetNode||t.node instanceof pae.BorderNode)&&t.index===-1){const h=t.node.getSelectedNode(),g=h==null?void 0:h.getRect();if(h&&(g!=null&&g.contains(n.x,n.y))){let p;try{const m=this.onTabDrag(d,h,n.x-g.x,n.y-g.y,t.location,()=>this.onDragMove(r));m&&(p={rect:new ap.Rect(m.x+g.x,m.y+g.y,m.width,m.height),callback:m.callback,invalidated:m.invalidated,dragging:d,over:h,x:n.x-g.x,y:n.y-g.y,location:t.location,cursor:m.cursor})}catch(m){console.error(m)}(p==null?void 0:p.callback)===c&&(l=void 0),this.customDrop=p}}this.dropInfo=t,this.outlineDiv&&(this.outlineDiv.className=this.getClassName(this.customDrop?Fo.CLASSES.FLEXLAYOUT__OUTLINE_RECT:t.className),this.customDrop?this.customDrop.rect.positionElement(this.outlineDiv):t.rect.positionElement(this.outlineDiv)),Gl.DragDrop.instance.setGlassCursorOverride((a=this.customDrop)===null||a===void 0?void 0:a.cursor),this.outlineDiv&&(this.outlineDiv.style.visibility="visible");try{l==null||l()}catch(h){console.error(h)}}onDragEnter(t){if(Gl.DragDrop.instance.isDragging())return;const n=this.props.onExternalDrag(t);n&&(this.fnNewNodeDropped=n.onDrop,this.newTabJson=n.json,this.dragStart(t,n.dragText,Xl.TabNode._fromJson(n.json,this.props.model,!1),!0,void 0,void 0))}checkForBorderToShow(t,n){const r=this.props.model._getOuterInnerRects().outer,o=r.getCenter(),i=this.edgeRectWidth,a=this.edgeRectLength/2;let l=!1;this.props.model.isEnableEdgeDock()&&this.state.showHiddenBorder===na.DockLocation.CENTER&&(n>o.y-a&&no.x-a&&t=r.getRight()-i?c=na.DockLocation.RIGHT:n<=r.y+i?c=na.DockLocation.TOP:n>=r.getBottom()-i&&(c=na.DockLocation.BOTTOM)),c!==this.state.showHiddenBorder&&this.setState({showHiddenBorder:c})}maximize(t){this.doAction(tu.Actions.maximizeToggle(t.getId()))}customizeTab(t,n){this.props.onRenderTab&&this.props.onRenderTab(t,n)}customizeTabSet(t,n){this.props.onRenderTabSet&&this.props.onRenderTabSet(t,n)}i18nName(t,n){let r;return this.props.i18nMapper&&(r=this.props.i18nMapper(t,n)),r===void 0&&(r=t+(n===void 0?"":n)),r}getOnRenderFloatingTabPlaceholder(){return this.props.onRenderFloatingTabPlaceholder}getShowOverflowMenu(){return this.props.onShowOverflowMenu}getTabSetPlaceHolderCallback(){return this.props.onTabSetPlaceHolder}showContextMenu(t,n){this.props.onContextMenu&&this.props.onContextMenu(t,n)}auxMouseClick(t,n){this.props.onAuxMouseClick&&this.props.onAuxMouseClick(t,n)}}Lv.Layout=_ae;const Eae=e=>(kt.useEffect(()=>{var t;(t=e.onRendered)===null||t===void 0||t.call(e)},[e]),kt.createElement(kt.Fragment,null,e.children));var Nh={};Object.defineProperty(Nh,"__esModule",{value:!0});Nh.BorderSet=void 0;const Pb=Br,xae=Tl();class r_{static _fromJson(t,n){const r=new r_(n);return r._borders=t.map(o=>xae.BorderNode._fromJson(o,n)),r}constructor(t){this._model=t,this._borders=[]}getBorders(){return this._borders}_forEachNode(t){for(const n of this._borders){t(n,0);for(const r of n.getChildren())r._forEachNode(t,1)}}_toJson(){return this._borders.map(t=>t.toJson())}_layoutBorder(t,n){const r=t.outer,o=this._model.getRoot();let i=Math.max(0,r.height-o.getMinHeight()),a=Math.max(0,r.width-o.getMinWidth()),l=0,c=0,d=0,h=0;const g=this._borders.filter(v=>v.isShowing());for(const v of g){v._setAdjustedSize(v.getSize());const y=v.getSelected()!==-1;v.getLocation().getOrientation()===Pb.Orientation.HORZ?(c+=v.getBorderBarSize(),y&&(a-=this._model.getSplitterSize(),c+=v.getSize(),h+=v.getSize())):(l+=v.getBorderBarSize(),y&&(i-=this._model.getSplitterSize(),l+=v.getSize(),d+=v.getSize()))}let p=0,m=!1;for(;c>a&&h>0||l>i&&d>0;){const v=g[p];if(v.getSelected()!==-1){const y=v._getAdjustedSize();c>a&&h>0&&v.getLocation().getOrientation()===Pb.Orientation.HORZ&&y>0&&y>v.getMinSize()?(v._setAdjustedSize(y-1),c--,h--,m=!0):l>i&&d>0&&v.getLocation().getOrientation()===Pb.Orientation.VERT&&y>0&&y>v.getMinSize()&&(v._setAdjustedSize(y-1),l--,d--,m=!0)}if(p=(p+1)%g.length,p===0)if(m)m=!1;else break}for(const v of g)t.outer=v._layoutBorderOuter(t.outer,n);t.inner=t.outer;for(const v of g)t.inner=v._layoutBorderInner(t.inner,n);return t}_findDropTargetNode(t,n,r){for(const o of this._borders)if(o.isShowing()){const i=o.canDrop(t,n,r);if(i!==void 0)return i}}}Nh.BorderSet=r_;var kL={};Object.defineProperty(kL,"__esModule",{value:!0});var jL={};Object.defineProperty(jL,"__esModule",{value:!0});var HL={};Object.defineProperty(HL,"__esModule",{value:!0});var Xv={};Object.defineProperty(Xv,"__esModule",{value:!0});Xv.Model=void 0;const qt=El,Oae=xl,Ab=wa,zR=Br,kR=go,zo=_i,Qd=Tl(),jR=Nh,nu=t_(),Yl=Es,ra=xs(),Lb=n_();class ci{static fromJson(t){const n=new ci;return ci._attributeDefinitions.fromJson(t.global,n._attributes),t.borders&&(n._borders=jR.BorderSet._fromJson(t.borders,n)),n._root=nu.RowNode._fromJson(t.layout,n),n._tidy(),n}static _createAttributeDefinitions(){const t=new Oae.AttributeDefinitions;return t.add("legacyOverflowMenu",!1).setType(qt.Attribute.BOOLEAN),t.add("enableEdgeDock",!0).setType(qt.Attribute.BOOLEAN),t.add("rootOrientationVertical",!1).setType(qt.Attribute.BOOLEAN),t.add("marginInsets",{top:0,right:0,bottom:0,left:0}).setType("IInsets"),t.add("enableUseVisibility",!1).setType(qt.Attribute.BOOLEAN),t.add("enableRotateBorderIcons",!0).setType(qt.Attribute.BOOLEAN),t.add("splitterSize",-1).setType(qt.Attribute.NUMBER),t.add("splitterExtra",0).setType(qt.Attribute.NUMBER),t.add("tabEnableClose",!0).setType(qt.Attribute.BOOLEAN),t.add("tabCloseType",1).setType("ICloseType"),t.add("tabEnableFloat",!1).setType(qt.Attribute.BOOLEAN),t.add("tabEnableDrag",!0).setType(qt.Attribute.BOOLEAN),t.add("tabEnableRename",!0).setType(qt.Attribute.BOOLEAN),t.add("tabContentClassName",void 0).setType(qt.Attribute.STRING),t.add("tabClassName",void 0).setType(qt.Attribute.STRING),t.add("tabIcon",void 0).setType(qt.Attribute.STRING),t.add("tabEnableRenderOnDemand",!0).setType(qt.Attribute.BOOLEAN),t.add("tabDragSpeed",.3).setType(qt.Attribute.NUMBER),t.add("tabBorderWidth",-1).setType(qt.Attribute.NUMBER),t.add("tabBorderHeight",-1).setType(qt.Attribute.NUMBER),t.add("tabSetEnableDeleteWhenEmpty",!0).setType(qt.Attribute.BOOLEAN),t.add("tabSetEnableDrop",!0).setType(qt.Attribute.BOOLEAN),t.add("tabSetEnableDrag",!0).setType(qt.Attribute.BOOLEAN),t.add("tabSetEnableDivide",!0).setType(qt.Attribute.BOOLEAN),t.add("tabSetEnableMaximize",!0).setType(qt.Attribute.BOOLEAN),t.add("tabSetEnableClose",!1).setType(qt.Attribute.BOOLEAN),t.add("tabSetEnableSingleTabStretch",!1).setType(qt.Attribute.BOOLEAN),t.add("tabSetAutoSelectTab",!0).setType(qt.Attribute.BOOLEAN),t.add("tabSetClassNameTabStrip",void 0).setType(qt.Attribute.STRING),t.add("tabSetClassNameHeader",void 0).setType(qt.Attribute.STRING),t.add("tabSetEnableTabStrip",!0).setType(qt.Attribute.BOOLEAN),t.add("tabSetHeaderHeight",0).setType(qt.Attribute.NUMBER),t.add("tabSetTabStripHeight",0).setType(qt.Attribute.NUMBER),t.add("tabSetMarginInsets",{top:0,right:0,bottom:0,left:0}).setType("IInsets"),t.add("tabSetBorderInsets",{top:0,right:0,bottom:0,left:0}).setType("IInsets"),t.add("tabSetTabLocation","top").setType("ITabLocation"),t.add("tabSetMinWidth",0).setType(qt.Attribute.NUMBER),t.add("tabSetMinHeight",0).setType(qt.Attribute.NUMBER),t.add("borderSize",200).setType(qt.Attribute.NUMBER),t.add("borderMinSize",0).setType(qt.Attribute.NUMBER),t.add("borderBarSize",0).setType(qt.Attribute.NUMBER),t.add("borderEnableDrop",!0).setType(qt.Attribute.BOOLEAN),t.add("borderAutoSelectTabWhenOpen",!0).setType(qt.Attribute.BOOLEAN),t.add("borderAutoSelectTabWhenClosed",!1).setType(qt.Attribute.BOOLEAN),t.add("borderClassName",void 0).setType(qt.Attribute.STRING),t.add("borderEnableAutoHide",!1).setType(qt.Attribute.BOOLEAN),t}constructor(){this._borderRects={inner:kR.Rect.empty(),outer:kR.Rect.empty()},this._attributes={},this._idMap={},this._borders=new jR.BorderSet(this),this._pointerFine=!0,this._showHiddenBorder=Ab.DockLocation.CENTER}_setChangeListener(t){this._changeListener=t}getActiveTabset(){if(this._activeTabSet&&this.getNodeById(this._activeTabSet.getId()))return this._activeTabSet}_getShowHiddenBorder(){return this._showHiddenBorder}_setShowHiddenBorder(t){this._showHiddenBorder=t}_setActiveTabset(t){this._activeTabSet=t}getMaximizedTabset(){return this._maximizedTabSet}_setMaximizedTabset(t){this._maximizedTabSet=t}getRoot(){return this._root}isRootOrientationVertical(){return this._attributes.rootOrientationVertical}isUseVisibility(){return this._attributes.enableUseVisibility}isEnableRotateBorderIcons(){return this._attributes.enableRotateBorderIcons}getBorderSet(){return this._borders}_getOuterInnerRects(){return this._borderRects}_getPointerFine(){return this._pointerFine}_setPointerFine(t){this._pointerFine=t}visitNodes(t){this._borders._forEachNode(t),this._root._forEachNode(t,0)}getNodeById(t){return this._idMap[t]}getFirstTabSet(t=this._root){const n=t.getChildren()[0];return n instanceof ra.TabSetNode?n:this.getFirstTabSet(n)}doAction(t){let n;switch(t.type){case zo.Actions.ADD_NODE:{const r=new Yl.TabNode(this,t.data.json,!0),o=this._idMap[t.data.toNode];(o instanceof ra.TabSetNode||o instanceof Qd.BorderNode||o instanceof nu.RowNode)&&(o.drop(r,Ab.DockLocation.getByName(t.data.location),t.data.index,t.data.select),n=r);break}case zo.Actions.MOVE_NODE:{const r=this._idMap[t.data.fromNode];if(r instanceof Yl.TabNode||r instanceof ra.TabSetNode){const o=this._idMap[t.data.toNode];(o instanceof ra.TabSetNode||o instanceof Qd.BorderNode||o instanceof nu.RowNode)&&o.drop(r,Ab.DockLocation.getByName(t.data.location),t.data.index,t.data.select)}break}case zo.Actions.DELETE_TAB:{const r=this._idMap[t.data.node];r instanceof Yl.TabNode&&r._delete();break}case zo.Actions.DELETE_TABSET:{const r=this._idMap[t.data.node];if(r instanceof ra.TabSetNode){const o=[...r.getChildren()];for(let i=0;ithis._idMap[t.getId()]=t)}_adjustSplitSide(t,n,r){t._setWeight(n),t.getWidth()!=null&&t.getOrientation()===zR.Orientation.VERT?t._updateAttrs({width:r}):t.getHeight()!=null&&t.getOrientation()===zR.Orientation.HORZ&&t._updateAttrs({height:r})}toJson(){const t={};return ci._attributeDefinitions.toJson(t,this._attributes),this.visitNodes(n=>{n._fireEvent("save",void 0)}),{global:t,borders:this._borders._toJson(),layout:this._root.toJson()}}getSplitterSize(){let t=this._attributes.splitterSize;return t===-1&&(t=this._pointerFine?8:12),t}isLegacyOverflowMenu(){return this._attributes.legacyOverflowMenu}getSplitterExtra(){return this._attributes.splitterExtra}isEnableEdgeDock(){return this._attributes.enableEdgeDock}_addNode(t){const n=t.getId();if(this._idMap[n]!==void 0)throw new Error(`Error: each node must have a unique id, duplicate id:${t.getId()}`);t.getType()!=="splitter"&&(this._idMap[n]=t)}_layout(t,n){var r;return this._borderRects=this._borders._layoutBorder({outer:t,inner:t},n),t=this._borderRects.inner.removeInsets(this._getAttribute("marginInsets")),(r=this._root)===null||r===void 0||r.calcMinSize(),this._root._layout(t,n),t}_findDropTargetNode(t,n,r){let o=this._root._findDropTargetNode(t,n,r);return o===void 0&&(o=this._borders._findDropTargetNode(t,n,r)),o}_tidy(){this._root._tidy()}_updateAttrs(t){ci._attributeDefinitions.update(t,this._attributes)}_nextUniqueId(){return"#"+(0,Lb.randomUUID)()}_getAttribute(t){return this._attributes[t]}setOnAllowDrop(t){this._onAllowDrop=t}_getOnAllowDrop(){return this._onAllowDrop}setOnCreateTabSet(t){this._onCreateTabSet=t}_getOnCreateTabSet(){return this._onCreateTabSet}static toTypescriptInterfaces(){console.log(ci._attributeDefinitions.toTypescriptInterface("Global",void 0)),console.log(nu.RowNode.getAttributeDefinitions().toTypescriptInterface("Row",ci._attributeDefinitions)),console.log(ra.TabSetNode.getAttributeDefinitions().toTypescriptInterface("TabSet",ci._attributeDefinitions)),console.log(Yl.TabNode.getAttributeDefinitions().toTypescriptInterface("Tab",ci._attributeDefinitions)),console.log(Qd.BorderNode.getAttributeDefinitions().toTypescriptInterface("Border",ci._attributeDefinitions))}toString(){return JSON.stringify(this.toJson())}}Xv.Model=ci;ci._attributeDefinitions=ci._createAttributeDefinitions();(function(e){var t=Ho&&Ho.__createBinding||(Object.create?function(r,o,i,a){a===void 0&&(a=i);var l=Object.getOwnPropertyDescriptor(o,i);(!l||("get"in l?!o.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return o[i]}}),Object.defineProperty(r,a,l)}:function(r,o,i,a){a===void 0&&(a=i),r[a]=o[i]}),n=Ho&&Ho.__exportStar||function(r,o){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i)&&t(o,r,i)};Object.defineProperty(e,"__esModule",{value:!0}),n(Lv,e),n(xh,e),n(_i,e),n(Tl(),e),n(Nh,e),n(kv,e),n(kL,e),n(jL,e),n(HL,e),n(Xv,e),n(Ol,e),n(t_(),e),n(xc,e),n(Es,e),n(xs(),e),n(wa,e),n(_c,e),n(Ec,e),n($l,e),n(Br,e),n(go,e),n(Fr,e)})(da);var Tae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M193 796c0 17.7 14.3 32 32 32h574c17.7 0 32-14.3 32-32V563c0-176.2-142.8-319-319-319S193 386.8 193 563v233zm72-233c0-136.4 110.6-247 247-247s247 110.6 247 247v193H404V585c0-5.5-4.5-10-10-10h-44c-5.5 0-10 4.5-10 10v171h-75V563zm-48.1-252.5l39.6-39.6c3.1-3.1 3.1-8.2 0-11.3l-67.9-67.9a8.03 8.03 0 00-11.3 0l-39.6 39.6a8.03 8.03 0 000 11.3l67.9 67.9c3.1 3.1 8.1 3.1 11.3 0zm669.6-79.2l-39.6-39.6a8.03 8.03 0 00-11.3 0l-67.9 67.9a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l67.9-67.9c3.1-3.2 3.1-8.2 0-11.3zM832 892H192c-17.7 0-32 14.3-32 32v24c0 4.4 3.6 8 8 8h688c4.4 0 8-3.6 8-8v-24c0-17.7-14.3-32-32-32zM484 180h56c4.4 0 8-3.6 8-8V76c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v96c0 4.4 3.6 8 8 8z"}}]},name:"alert",theme:"outlined"};const $ae=Tae;var Rae=function(t,n){return u.createElement(Sn,De({},t,{ref:n,icon:$ae}))},Iae=u.forwardRef(Rae);const Nae=Iae;var Mae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 140H96c-17.7 0-32 14.3-32 32v496c0 17.7 14.3 32 32 32h380v112H304c-8.8 0-16 7.2-16 16v48c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-48c0-8.8-7.2-16-16-16H548V700h380c17.7 0 32-14.3 32-32V172c0-17.7-14.3-32-32-32zm-40 488H136V212h752v416z"}}]},name:"desktop",theme:"outlined"};const Pae=Mae;var Aae=function(t,n){return u.createElement(Sn,De({},t,{ref:n,icon:Pae}))},Lae=u.forwardRef(Aae);const Dae=Lae;var Bae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"mobile",theme:"outlined"};const Fae=Bae;var zae=function(t,n){return u.createElement(Sn,De({},t,{ref:n,icon:Fae}))},kae=u.forwardRef(zae);const jae=kae;function Hae(e,t){if(e){if(typeof e=="string")return HR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return HR(e,t)}}function HR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=Hae(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return n=e[Symbol.iterator](),n.next.bind(n)}var Cu={"marvel-device":"_13C-O",screen:"_2Amsc","top-bar":"_qECU0","bottom-bar":"_F6bPa","middle-bar":"_fA7mw",iphone8:"_1sXT5",home:"_25p7s",sleep:"_2EZnX",volume:"_2FPQW",camera:"_h5ppK",sensor:"_2Ok-6",speaker:"_fUVii",gold:"_11BBn",black:"_jzkBO",landscape:"_1c67x",iphone8plus:"_2PCMV",iphone5s:"_3IA0l",iphone5c:"_Fd4kN",silver:"_smL3H",red:"_lNRoC",yellow:"_2zwSd",green:"_11nfu",blue:"_16rvF",iphone4s:"_1C99G",nexus5:"_3Ff4H",s5:"_3nyHv",lumia920:"_2gvlt",white:"_3YXIg","htc-one":"_Xbf-e",ipad:"_2OuCL",macbook:"_rglbn","iphone-x":"_36eC8",overflow:"_2l71V",shadow:"_3P-q4","shadow--tl":"_3bHFp","shadow--tr":"_2e2kx","shadow--bl":"_3rXur","shadow--br":"_nbUm4","inner-shadow":"_3Gknh",notch:"_1-RqF",note8:"_1gDBY",sensors:"_3iESW","more-sensors":"_O3CEj",inner:"_E-ixb"},Uae=function(t){var n=t.selectedDevice,r=t.selectedColor,o=t.landscape,i=t.children,a=u.useState(""),l=a[0],c=a[1];return u.useEffect(function(){var d=n.colors,h=d.includes(r),g=h?r:"black",p=Cu["marvel-device"]+" "+Cu[n.type]+" "+Cu[g];o&&(p+=" "+Cu.landscape),c(p)},[n,r,o]),se.createElement("div",{className:l},WL(n.style,i))};function WL(e,t){return e.map(function(n,r){return u.createElement("div",{className:Array.isArray(n.className)?Vae(n.className):Cu[n.className],key:"mobileStyle"+r},n.className==="screen"?t:n.children&&WL(n.children,t))})}var Vae=function(t){for(var n="",r=Wae(t),o;!(o=r()).done;){var i=o.value;n+=Cu[i]+" "}return n},Zl={"iphone-x":{type:"iphone-x",readableName:"iPhone X",colors:["black"],style:[{className:"notch",children:[{className:"camera"},{className:"speaker"}]},{className:"top-bar"},{className:"sleep"},{className:"bottom-bar"},{className:"volume"},{className:"overflow",children:[{className:["shadow","shadow--tr"]},{className:["shadow","shadow--tl"]},{className:["shadow","shadow--br"]},{className:["shadow","shadow--bl"]}]},{className:"inner-shadow"},{className:"screen"}]},note8:{type:"note8",readableName:"Note 8",colors:["black"],style:[{className:"inner"},{className:"overflow",children:[{className:"shadow"}]},{className:"speaker"},{className:"sensors"},{className:"more-sensors"},{className:"sleep"},{className:"volume"},{className:"camera"},{className:"screen"}]},iphone8:{type:"iphone8",readableName:"iPhone 8",colors:["black","silver","gold"],style:[{className:"top-bar"},{className:"sleep"},{className:"volume"},{className:"camera"},{className:"sensor"},{className:"speaker"},{className:"screen"},{className:"home"},{className:"bottom-bar"}]},iphone8plus:{type:"iphone8plus",readableName:"iPhone 8 plus",colors:["black","silver","gold"],style:[{className:"top-bar"},{className:"sleep"},{className:"volume"},{className:"camera"},{className:"sensor"},{className:"speaker"},{className:"screen"},{className:"home"},{className:"bottom-bar"}]},iphone5s:{type:"iphone5s",readableName:"iPhone 5s",colors:["black","silver","gold"],style:[{className:"top-bar"},{className:"sleep"},{className:"volume"},{className:"camera"},{className:"sensor"},{className:"speaker"},{className:"screen"},{className:"home"},{className:"bottom-bar"}]},ipad:{type:"ipad",readableName:"iPad mini",colors:["black","silver"],style:[{className:"camera"},{className:"screen"},{className:"home"},{className:"bottom-bar"}]},nexus5:{type:"nexus5",readableName:"Nexus 5",colors:["black"],style:[{className:"top-bar"},{className:"sleep"},{className:"volume"},{className:"camera"},{className:"screen"}]}},WR={dropdown:"_3ZP5s",button:"_1HaoU"},UR=function(t){var n=t.selectedItem,r=t.availableItems,o=t.updateSelectedItem,i=u.useState(!1),a=i[0],l=i[1];return se.createElement("div",{className:WR.dropdown,style:{width:"200px"},onFocus:function(){return l(!1)}},se.createElement("div",{className:WR.button,onClick:function(){return l(!a)}},n),a?se.createElement("ul",null,r.map(function(c,d){return se.createElement("li",{onClick:function(){o(c.type),l(!a)},key:c.type+d},c.readableName)})):null)},Kae={button:"_3a1eO"},Gae=function(t){var n=t.landscape,r=t.updateLandscape,o=t.label;return se.createElement("div",{className:Kae.button},se.createElement("button",{onClick:function(){return r(!n)}},o))},VR=function(t){var n="";return t.length>0&&(n+=t.charAt(0).toUpperCase()),t.length>1&&(n+=t.slice(1)),n},Xae=function(t){var n=t.selectedDevice,r=t.allowedDevices,o=t.landscape,i=t.updateSelectedDevice,a=t.updateLandscape,l=t.selectedColor,c=u.useState(l),d=c[0],h=c[1],g=u.useState(n),p=g[0],m=g[1],v=u.useState(n.colors),y=v[0],w=v[1],C=function(T){h(T),i(p,T)},b=function(T){var R=Zl[T];m(R),w(R.colors),R.colors.includes(d)||h("black"),i(R,d)},S=["iphone-x","note8","iphone8","iphone8plus","iphone5s","ipad","nexus5"],E=(r||S).map(function(x){var T=Zl[x];return{type:T.type,readableName:T.readableName}}),O=y.map(function(x){return{type:x,readableName:VR(x)}});return se.createElement("div",{style:{display:"flex",justifyItems:"center",alignItems:"center"}},se.createElement(UR,{selectedItem:p.readableName,availableItems:E,updateSelectedItem:b}),y&&se.createElement(UR,{selectedItem:VR(d),availableItems:O,updateSelectedItem:C}),se.createElement(Gae,{landscape:o,updateLandscape:a,label:"Rotate"}))},UL=function(t){var n=t.allowedDevices,r=t.preSelectedDevice,o=t.preSelectedColor,i=o===void 0?"black":o,a=t.showMenu,l=a===void 0?!0:a,c=t.preSelectedLandscape,d=c===void 0?!1:c,h=t.children,g=u.useState(),p=g[0],m=g[1],v=u.useState("black"),y=v[0],w=v[1],C=u.useState(d),b=C[0],S=C[1];u.useEffect(function(){E()},[]);var E=function(){var N;r&&n&&n.length>0?N=O(r,n):r?N=Zl[r]:n&&n.length>0?N=Zl[n[0]]:N=Zl["iphone-x"],x(N),m(N||Zl["iphone-x"])},O=function(N,I){return N&&I.includes(N)?Zl[N]:(console.error("The preselected device was not included in the allowedDevices. Defaulting to the first allowed device"),Zl[I[0]])},x=function(N){i&&!N.colors.includes(i)?(console.error("Color "+i+" can't be chosen for device "+N.readableName),w("black")):i&&N.colors.includes(i)?w(i):w("black")},T=function(N,I){m(N),w(I)};return p?se.createElement("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",minWidth:"min-content"}},l&&se.createElement(Xae,{selectedDevice:p,selectedColor:y,allowedDevices:n,landscape:b,updateLandscape:S,updateSelectedDevice:T}),se.createElement(Uae,{selectedDevice:p,selectedColor:y,landscape:b},h)):se.createElement("div",null,"Something strange happened")};const Mh=window.frappe;async function Yae(e){return Mh.call("pilot_station.pilot_station.doctype.layout_data.layout_data.get_tenant_layout",{layoutType:e})}async function qae(e){return Mh.call("pilot_station.pilot_station.doctype.layout_data.layout_data.reset_layout",{layoutType:e})}async function Qae(e,t){return Mh.call("pilot_station.pilot_station.doctype.layout_data.layout_data.clone_layout",{currentLayoutType:e,TargetLayoutType:t})}const Zae=async(e,t)=>Mh.call("pilot_station.pilot_station.doctype.layout_data.layout_data.save_layout",{layoutType:t,layoutJson:e});var $m={exports:{}};$m.exports;(function(e,t){var n=200,r="Expected a function",o="__lodash_hash_undefined__",i=1,a=2,l=1/0,c=9007199254740991,d="[object Arguments]",h="[object Array]",g="[object Boolean]",p="[object Date]",m="[object Error]",v="[object Function]",y="[object GeneratorFunction]",w="[object Map]",C="[object Number]",b="[object Object]",S="[object Promise]",E="[object RegExp]",O="[object Set]",x="[object String]",T="[object Symbol]",R="[object WeakMap]",N="[object ArrayBuffer]",I="[object DataView]",P="[object Float32Array]",L="[object Float64Array]",D="[object Int8Array]",z="[object Int16Array]",W="[object Int32Array]",B="[object Uint8Array]",M="[object Uint8ClampedArray]",A="[object Uint16Array]",U="[object Uint32Array]",j=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,G=/^\w*$/,X=/^\./,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,Z=/\\(\\)?/g,he=/^\[object .+?Constructor\]$/,ge=/^(?:0|[1-9]\d*)$/,ce={};ce[P]=ce[L]=ce[D]=ce[z]=ce[W]=ce[B]=ce[M]=ce[A]=ce[U]=!0,ce[d]=ce[h]=ce[N]=ce[g]=ce[I]=ce[p]=ce[m]=ce[v]=ce[w]=ce[C]=ce[b]=ce[E]=ce[O]=ce[x]=ce[R]=!1;var be=typeof Ho=="object"&&Ho&&Ho.Object===Object&&Ho,pe=typeof self=="object"&&self&&self.Object===Object&&self,ae=be||pe||Function("return this")(),J=t&&!t.nodeType&&t,ue=J&&!0&&e&&!e.nodeType&&e,ie=ue&&ue.exports===J,Ce=ie&&be.process,Oe=function(){try{return Ce&&Ce.binding("util")}catch{}}(),Te=Oe&&Oe.isTypedArray;function Me(k,q,ye,ze){for(var wt=-1,it=k?k.length:0;++wt-1}function ur(k,q){var ye=this.__data__,ze=Zt(ye,k);return ze<0?ye.push([k,q]):ye[ze][1]=q,this}Je.prototype.clear=st,Je.prototype.delete=St,Je.prototype.get=Gt,Je.prototype.has=cn,Je.prototype.set=ur;function Tt(k){var q=-1,ye=k?k.length:0;for(this.clear();++qan))return!1;var gr=it.get(k);if(gr&&it.get(q))return gr==q;var wr=-1,Jr=!0,pr=wt&i?new Rr:void 0;for(it.set(k,q),it.set(q,k);++wr-1&&k%1==0&&k-1&&k%1==0&&k<=c}function Nl(k){var q=typeof k;return!!k&&(q=="object"||q=="function")}function kr(k){return!!k&&typeof k=="object"}function Rc(k){return typeof k=="symbol"||kr(k)&&At.call(k)==T}var Dh=Te?Ae(Te):hr;function Bh(k){return k==null?"":ja(k)}function Fh(k,q,ye){var ze=k==null?void 0:En(k,q);return ze===void 0?ye:ze}function zh(k,q){return k!=null&&In(k,q,Bn)}function Ps(k){return or(k)?Zr(k):Xi(k)}function vo(k){return k}function Zv(k){return xn(k)?ve(Tc(k)):No(k)}e.exports=Qv})($m,$m.exports);var Jae=$m.exports;const ele=nh(Jae);var Rm={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */Rm.exports;(function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",l="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,h="__lodash_placeholder__",g=1,p=2,m=4,v=1,y=2,w=1,C=2,b=4,S=8,E=16,O=32,x=64,T=128,R=256,N=512,I=30,P="...",L=800,D=16,z=1,W=2,B=3,M=1/0,A=9007199254740991,U=17976931348623157e292,j=NaN,G=4294967295,X=G-1,re=G>>>1,te=[["ary",T],["bind",w],["bindKey",C],["curry",S],["curryRight",E],["flip",N],["partial",O],["partialRight",x],["rearg",R]],Z="[object Arguments]",he="[object Array]",ge="[object AsyncFunction]",ce="[object Boolean]",be="[object Date]",pe="[object DOMException]",ae="[object Error]",J="[object Function]",ue="[object GeneratorFunction]",ie="[object Map]",Ce="[object Number]",Oe="[object Null]",Te="[object Object]",Me="[object Promise]",me="[object Proxy]",ve="[object RegExp]",xe="[object Set]",Ae="[object String]",Pe="[object Symbol]",Fe="[object Undefined]",Ee="[object WeakMap]",Ie="[object WeakSet]",je="[object ArrayBuffer]",Le="[object DataView]",Ue="[object Float32Array]",Ve="[object Float64Array]",We="[object Int8Array]",Ke="[object Int16Array]",Et="[object Int32Array]",ht="[object Uint8Array]",At="[object Uint8ClampedArray]",Kt="[object Uint16Array]",He="[object Uint32Array]",Qe=/\b__p \+= '';/g,It=/\b(__p \+=) '' \+/g,Ht=/(__e\(.*?\)|\b__t\)) \+\n'';/g,sn=/&(?:amp|lt|gt|quot|#39);/g,vn=/[&<>"']/g,Vt=RegExp(sn.source),Lt=RegExp(vn.source),rt=/<%-([\s\S]+?)%>/g,xt=/<%([\s\S]+?)%>/g,at=/<%=([\s\S]+?)%>/g,Xe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,mt=/^\w*$/,Bt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ye=/[\\^$.*+?()[\]{}|]/g,lt=RegExp(Ye.source),et=/^\s+/,gt=/\s/,_t=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,vt=/\{\n\/\* \[wrapped with (.+)\] \*/,_n=/,? & /,mn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Nt=/[()=,{}\[\]\/\s]/,Ze=/\\(\\)?/g,Ft=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Je=/\w*$/,st=/^[-+]0x[0-9a-f]+$/i,St=/^0b[01]+$/i,Gt=/^\[object .+?Constructor\]$/,cn=/^0o[0-7]+$/i,ur=/^(?:0|[1-9]\d*)$/,Tt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,dr=/($^)/,qr=/['\n\r\u2028\u2029\\]/g,fr="\\ud800-\\udfff",tr="\\u0300-\\u036f",qo="\\ufe20-\\ufe2f",Rr="\\u20d0-\\u20ff",Qr=tr+qo+Rr,Io="\\u2700-\\u27bf",nr="a-z\\xdf-\\xf6\\xf8-\\xff",Sr="\\xac\\xb1\\xd7\\xf7",Ir="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Qo="\\u2000-\\u206f",xi=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",zr="A-Z\\xc0-\\xd6\\xd8-\\xde",Zr="\\ufe0e\\ufe0f",Zt=Sr+Ir+Qo+xi,zt="['’]",tt="["+fr+"]",ft="["+Zt+"]",Xt="["+Qr+"]",En="\\d+",fn="["+Io+"]",Bn="["+nr+"]",Hn="[^"+fr+Zt+En+Io+nr+zr+"]",rr="\\ud83c[\\udffb-\\udfff]",Kn="(?:"+Xt+"|"+rr+")",Cr="[^"+fr+"]",hr="(?:\\ud83c[\\udde6-\\uddff]){2}",mo="[\\ud800-\\udbff][\\udc00-\\udfff]",Xi="["+zr+"]",Rs="\\u200d",Nr="(?:"+Bn+"|"+Hn+")",No="(?:"+Xi+"|"+Hn+")",ja="(?:"+zt+"(?:d|ll|m|re|s|t|ve))?",Zo="(?:"+zt+"(?:D|LL|M|RE|S|T|VE))?",Jo=Kn+"?",_a="["+Zr+"]?",Ea="(?:"+Rs+"(?:"+[Cr,hr,mo].join("|")+")"+_a+Jo+")*",Ha="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Is="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Rl=_a+Jo+Ea,xa="(?:"+[fn,hr,mo].join("|")+")"+Rl,Ns="(?:"+[Cr+Xt+"?",Xt,hr,mo,tt].join("|")+")",ot=RegExp(zt,"g"),Ct=RegExp(Xt,"g"),In=RegExp(rr+"(?="+rr+")|"+Ns+Rl,"g"),Wn=RegExp([Xi+"?"+Bn+"+"+ja+"(?="+[ft,Xi,"$"].join("|")+")",No+"+"+Zo+"(?="+[ft,Xi+Nr,"$"].join("|")+")",Xi+"?"+Nr+"+"+ja,Xi+"+"+Zo,Is,Ha,En,xa].join("|"),"g"),xn=RegExp("["+Rs+fr+Qr+Zr+"]"),Il=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ms=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Oc=-1,hn={};hn[Ue]=hn[Ve]=hn[We]=hn[Ke]=hn[Et]=hn[ht]=hn[At]=hn[Kt]=hn[He]=!0,hn[Z]=hn[he]=hn[je]=hn[ce]=hn[Le]=hn[be]=hn[ae]=hn[J]=hn[ie]=hn[Ce]=hn[Te]=hn[ve]=hn[xe]=hn[Ae]=hn[Ee]=!1;var On={};On[Z]=On[he]=On[je]=On[Le]=On[ce]=On[be]=On[Ue]=On[Ve]=On[We]=On[Ke]=On[Et]=On[ie]=On[Ce]=On[Te]=On[ve]=On[xe]=On[Ae]=On[Pe]=On[ht]=On[At]=On[Kt]=On[He]=!0,On[ae]=On[J]=On[Ee]=!1;var qv={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Tc={"&":"&","<":"<",">":">",'"':""","'":"'"},Wa={"&":"&","<":"<",">":">",""":'"',"'":"'"},Qv={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ud=parseFloat,Lh=parseInt,dd=typeof Ho=="object"&&Ho&&Ho.Object===Object&&Ho,Oa=typeof self=="object"&&self&&self.Object===Object&&self,or=dd||Oa||Function("return this")(),fd=t&&!t.nodeType&&t,Ta=fd&&!0&&e&&!e.nodeType&&e,$c=Ta&&Ta.exports===fd,Nl=$c&&dd.process,kr=function(){try{var le=Ta&&Ta.require&&Ta.require("util").types;return le||Nl&&Nl.binding&&Nl.binding("util")}catch{}}(),Rc=kr&&kr.isArrayBuffer,Dh=kr&&kr.isDate,Bh=kr&&kr.isMap,Fh=kr&&kr.isRegExp,zh=kr&&kr.isSet,Ps=kr&&kr.isTypedArray;function vo(le,we,Se){switch(Se.length){case 0:return le.call(we);case 1:return le.call(we,Se[0]);case 2:return le.call(we,Se[0],Se[1]);case 3:return le.call(we,Se[0],Se[1],Se[2])}return le.apply(we,Se)}function Zv(le,we,Se,ct){for(var Wt=-1,yn=le==null?0:le.length;++Wt-1}function it(le,we,Se){for(var ct=-1,Wt=le==null?0:le.length;++ct-1;);return Se}function d_(le,we){for(var Se=le.length;Se--&&eo(we,le[Se],0)>-1;);return Se}function rB(le,we){for(var Se=le.length,ct=0;Se--;)le[Se]===we&&++ct;return ct}var oB=Jv(qv),iB=Jv(Tc);function aB(le){return"\\"+Qv[le]}function lB(le,we){return le==null?n:le[we]}function Ic(le){return xn.test(le)}function sB(le){return Il.test(le)}function cB(le){for(var we,Se=[];!(we=le.next()).done;)Se.push(we.value);return Se}function r0(le){var we=-1,Se=Array(le.size);return le.forEach(function(ct,Wt){Se[++we]=[Wt,ct]}),Se}function f_(le,we){return function(Se){return le(we(Se))}}function Pl(le,we){for(var Se=-1,ct=le.length,Wt=0,yn=[];++Se-1}function qB(s,f){var _=this.__data__,$=tg(_,s);return $<0?(++this.size,_.push([s,f])):_[$][1]=f,this}Va.prototype.clear=KB,Va.prototype.delete=GB,Va.prototype.get=XB,Va.prototype.has=YB,Va.prototype.set=qB;function Ka(s){var f=-1,_=s==null?0:s.length;for(this.clear();++f<_;){var $=s[f];this.set($[0],$[1])}}function QB(){this.size=0,this.__data__={hash:new Ds,map:new(md||Va),string:new Ds}}function ZB(s){var f=hg(this,s).delete(s);return this.size-=f?1:0,f}function JB(s){return hg(this,s).get(s)}function eF(s){return hg(this,s).has(s)}function tF(s,f){var _=hg(this,s),$=_.size;return _.set(s,f),this.size+=_.size==$?0:1,this}Ka.prototype.clear=QB,Ka.prototype.delete=ZB,Ka.prototype.get=JB,Ka.prototype.has=eF,Ka.prototype.set=tF;function Bs(s){var f=-1,_=s==null?0:s.length;for(this.__data__=new Ka;++f<_;)this.add(s[f])}function nF(s){return this.__data__.set(s,c),this}function rF(s){return this.__data__.has(s)}Bs.prototype.add=Bs.prototype.push=nF,Bs.prototype.has=rF;function qi(s){var f=this.__data__=new Va(s);this.size=f.size}function oF(){this.__data__=new Va,this.size=0}function iF(s){var f=this.__data__,_=f.delete(s);return this.size=f.size,_}function aF(s){return this.__data__.get(s)}function lF(s){return this.__data__.has(s)}function sF(s,f){var _=this.__data__;if(_ instanceof Va){var $=_.__data__;if(!md||$.length=f?s:f)),s}function $i(s,f,_,$,F,V){var Y,ee=f&g,fe=f&p,$e=f&m;if(_&&(Y=F?_(s,$,F,V):_(s)),Y!==n)return Y;if(!Gn(s))return s;var Re=Ut(s);if(Re){if(Y=e4(s),!ee)return Po(s,Y)}else{var ke=no(s),nt=ke==J||ke==ue;if(zl(s))return X_(s,ee);if(ke==Te||ke==Z||nt&&!F){if(Y=fe||nt?{}:hE(s),!ee)return fe?WF(s,fF(Y,s)):HF(s,E_(Y,s))}else{if(!On[ke])return F?s:{};Y=t4(s,ke,ee)}}V||(V=new qi);var yt=V.get(s);if(yt)return yt;V.set(s,Y),HE(s)?s.forEach(function(Rt){Y.add($i(Rt,f,_,Rt,s,V))}):kE(s)&&s.forEach(function(Rt,tn){Y.set(tn,$i(Rt,f,_,tn,s,V))});var $t=$e?fe?R0:$0:fe?Lo:Mr,Qt=Re?n:$t(s);return k(Qt||s,function(Rt,tn){Qt&&(tn=Rt,Rt=s[tn]),Sd(Y,tn,$i(Rt,f,_,tn,s,V))}),Y}function hF(s){var f=Mr(s);return function(_){return x_(_,s,f)}}function x_(s,f,_){var $=_.length;if(s==null)return!$;for(s=Pn(s);$--;){var F=_[$],V=f[F],Y=s[F];if(Y===n&&!(F in s)||!V(Y))return!1}return!0}function O_(s,f,_){if(typeof s!="function")throw new Oi(a);return Td(function(){s.apply(n,_)},f)}function Cd(s,f,_,$){var F=-1,V=wt,Y=!0,ee=s.length,fe=[],$e=f.length;if(!ee)return fe;_&&(f=pt(f,ti(_))),$?(V=it,Y=!1):f.length>=o&&(V=gd,Y=!1,f=new Bs(f));e:for(;++FF?0:F+_),$=$===n||$>F?F:Yt($),$<0&&($+=F),$=_>$?0:UE($);_<$;)s[_++]=f;return s}function $_(s,f){var _=[];return Ll(s,function($,F,V){f($,F,V)&&_.push($)}),_}function jr(s,f,_,$,F){var V=-1,Y=s.length;for(_||(_=r4),F||(F=[]);++V0&&_(ee)?f>1?jr(ee,f-1,_,$,F):an(F,ee):$||(F[F.length]=ee)}return F}var u0=eE(),R_=eE(!0);function $a(s,f){return s&&u0(s,f,Mr)}function d0(s,f){return s&&R_(s,f,Mr)}function rg(s,f){return ze(f,function(_){return Qa(s[_])})}function zs(s,f){f=Bl(f,s);for(var _=0,$=f.length;s!=null&&_<$;)s=s[Ia(f[_++])];return _&&_==$?s:n}function I_(s,f,_){var $=f(s);return Ut(s)?$:an($,_(s))}function bo(s){return s==null?s===n?Fe:Oe:Ls&&Ls in Pn(s)?QF(s):u4(s)}function f0(s,f){return s>f}function mF(s,f){return s!=null&&Tn.call(s,f)}function vF(s,f){return s!=null&&f in Pn(s)}function yF(s,f,_){return s>=to(f,_)&&s=120&&Re.length>=120)?new Bs(Y&&Re):n}Re=s[0];var ke=-1,nt=ee[0];e:for(;++ke-1;)ee!==s&&Xh.call(ee,fe,1),Xh.call(s,fe,1);return s}function k_(s,f){for(var _=s?f.length:0,$=_-1;_--;){var F=f[_];if(_==$||F!==V){var V=F;qa(F)?Xh.call(s,F,1):C0(s,F)}}return s}function y0(s,f){return s+Qh(S_()*(f-s+1))}function NF(s,f,_,$){for(var F=-1,V=Er(qh((f-s)/(_||1)),0),Y=Se(V);V--;)Y[$?V:++F]=s,s+=_;return Y}function b0(s,f){var _="";if(!s||f<1||f>A)return _;do f%2&&(_+=s),f=Qh(f/2),f&&(s+=s);while(f);return _}function Jt(s,f){return D0(mE(s,f,Do),s+"")}function MF(s){return __(jc(s))}function PF(s,f){var _=jc(s);return gg(_,Fs(f,0,_.length))}function Ed(s,f,_,$){if(!Gn(s))return s;f=Bl(f,s);for(var F=-1,V=f.length,Y=V-1,ee=s;ee!=null&&++FF?0:F+f),_=_>F?F:_,_<0&&(_+=F),F=f>_?0:_-f>>>0,f>>>=0;for(var V=Se(F);++$>>1,Y=s[V];Y!==null&&!ri(Y)&&(_?Y<=f:Y=o){var $e=f?null:GF(s);if($e)return kh($e);Y=!1,F=gd,fe=new Bs}else fe=f?[]:ee;e:for(;++$=$?s:Ri(s,f,_)}var G_=EB||function(s){return or.clearTimeout(s)};function X_(s,f){if(f)return s.slice();var _=s.length,$=p_?p_(_):new s.constructor(_);return s.copy($),$}function x0(s){var f=new s.constructor(s.byteLength);return new Kh(f).set(new Kh(s)),f}function FF(s,f){var _=f?x0(s.buffer):s.buffer;return new s.constructor(_,s.byteOffset,s.byteLength)}function zF(s){var f=new s.constructor(s.source,Je.exec(s));return f.lastIndex=s.lastIndex,f}function kF(s){return bd?Pn(bd.call(s)):{}}function Y_(s,f){var _=f?x0(s.buffer):s.buffer;return new s.constructor(_,s.byteOffset,s.length)}function q_(s,f){if(s!==f){var _=s!==n,$=s===null,F=s===s,V=ri(s),Y=f!==n,ee=f===null,fe=f===f,$e=ri(f);if(!ee&&!$e&&!V&&s>f||V&&Y&&fe&&!ee&&!$e||$&&Y&&fe||!_&&fe||!F)return 1;if(!$&&!V&&!$e&&s=ee)return fe;var $e=_[$];return fe*($e=="desc"?-1:1)}}return s.index-f.index}function Q_(s,f,_,$){for(var F=-1,V=s.length,Y=_.length,ee=-1,fe=f.length,$e=Er(V-Y,0),Re=Se(fe+$e),ke=!$;++ee1?_[F-1]:n,Y=F>2?_[2]:n;for(V=s.length>3&&typeof V=="function"?(F--,V):n,Y&&So(_[0],_[1],Y)&&(V=F<3?n:V,F=1),f=Pn(f);++$-1?F[V?f[Y]:Y]:n}}function rE(s){return Ya(function(f){var _=f.length,$=_,F=Ti.prototype.thru;for(s&&f.reverse();$--;){var V=f[$];if(typeof V!="function")throw new Oi(a);if(F&&!Y&&fg(V)=="wrapper")var Y=new Ti([],!0)}for($=Y?$:_;++$<_;){V=f[$];var ee=fg(V),fe=ee=="wrapper"?I0(V):n;fe&&A0(fe[0])&&fe[1]==(T|S|O|R)&&!fe[4].length&&fe[9]==1?Y=Y[fg(fe[0])].apply(Y,fe[3]):Y=V.length==1&&A0(V)?Y[ee]():Y.thru(V)}return function(){var $e=arguments,Re=$e[0];if(Y&&$e.length==1&&Ut(Re))return Y.plant(Re).value();for(var ke=0,nt=_?f[ke].apply(this,$e):Re;++ke<_;)nt=f[ke].call(this,nt);return nt}})}function sg(s,f,_,$,F,V,Y,ee,fe,$e){var Re=f&T,ke=f&w,nt=f&C,yt=f&(S|E),$t=f&N,Qt=nt?n:xd(s);function Rt(){for(var tn=arguments.length,ln=Se(tn),oi=tn;oi--;)ln[oi]=arguments[oi];if(yt)var Co=zc(Rt),ii=rB(ln,Co);if($&&(ln=Q_(ln,$,F,yt)),V&&(ln=Z_(ln,V,Y,yt)),tn-=ii,yt&&tn<$e){var ar=Pl(ln,Co);return aE(s,f,sg,Rt.placeholder,_,ln,ar,ee,fe,$e-tn)}var Zi=ke?_:this,Ja=nt?Zi[s]:s;return tn=ln.length,ee?ln=d4(ln,ee):$t&&tn>1&&ln.reverse(),Re&&feee))return!1;var $e=V.get(s),Re=V.get(f);if($e&&Re)return $e==f&&Re==s;var ke=-1,nt=!0,yt=_&y?new Bs:n;for(V.set(s,f),V.set(f,s);++ke1?"& ":"")+f[$],f=f.join(_>2?", ":" "),s.replace(_t,`{ /* [wrapped with `+f+`] */ `)}function r4(s){return Ut(s)||Hs(s)||!!(y_&&s&&s[y_])}function qa(s,f){var _=typeof s;return f=f??A,!!f&&(_=="number"||_!="symbol"&&ur.test(s))&&s>-1&&s%1==0&&s0){if(++f>=L)return arguments[0]}else f=0;return s.apply(n,arguments)}}function gg(s,f){var _=-1,$=s.length,F=$-1;for(f=f===n?$:f;++_1?s[f-1]:n;return _=typeof _=="function"?(s.pop(),_):n,$E(s,_)});function RE(s){var f=H(s);return f.__chain__=!0,f}function g3(s,f){return f(s),s}function pg(s,f){return f(s)}var p3=Ya(function(s){var f=s.length,_=f?s[0]:0,$=this.__wrapped__,F=function(V){return c0(V,s)};return f>1||this.__actions__.length||!($ instanceof nn)||!qa(_)?this.thru(F):($=$.slice(_,+_+(f?1:0)),$.__actions__.push({func:pg,args:[F],thisArg:n}),new Ti($,this.__chain__).thru(function(V){return f&&!V.length&&V.push(n),V}))});function m3(){return RE(this)}function v3(){return new Ti(this.value(),this.__chain__)}function y3(){this.__values__===n&&(this.__values__=WE(this.value()));var s=this.__index__>=this.__values__.length,f=s?n:this.__values__[this.__index__++];return{done:s,value:f}}function b3(){return this}function S3(s){for(var f,_=this;_ instanceof eg;){var $=wE(_);$.__index__=0,$.__values__=n,f?F.__wrapped__=$:f=$;var F=$;_=_.__wrapped__}return F.__wrapped__=s,f}function C3(){var s=this.__wrapped__;if(s instanceof nn){var f=s;return this.__actions__.length&&(f=new nn(this)),f=f.reverse(),f.__actions__.push({func:pg,args:[B0],thisArg:n}),new Ti(f,this.__chain__)}return this.thru(B0)}function w3(){return V_(this.__wrapped__,this.__actions__)}var _3=lg(function(s,f,_){Tn.call(s,_)?++s[_]:Ga(s,_,1)});function E3(s,f,_){var $=Ut(s)?ye:gF;return _&&So(s,f,_)&&(f=n),$(s,Ot(f,3))}function x3(s,f){var _=Ut(s)?ze:$_;return _(s,Ot(f,3))}var O3=nE(_E),T3=nE(EE);function $3(s,f){return jr(mg(s,f),1)}function R3(s,f){return jr(mg(s,f),M)}function I3(s,f,_){return _=_===n?1:Yt(_),jr(mg(s,f),_)}function IE(s,f){var _=Ut(s)?k:Ll;return _(s,Ot(f,3))}function NE(s,f){var _=Ut(s)?q:T_;return _(s,Ot(f,3))}var N3=lg(function(s,f,_){Tn.call(s,_)?s[_].push(f):Ga(s,_,[f])});function M3(s,f,_,$){s=Ao(s)?s:jc(s),_=_&&!$?Yt(_):0;var F=s.length;return _<0&&(_=Er(F+_,0)),Cg(s)?_<=F&&s.indexOf(f,_)>-1:!!F&&eo(s,f,_)>-1}var P3=Jt(function(s,f,_){var $=-1,F=typeof f=="function",V=Ao(s)?Se(s.length):[];return Ll(s,function(Y){V[++$]=F?vo(f,Y,_):wd(Y,f,_)}),V}),A3=lg(function(s,f,_){Ga(s,_,f)});function mg(s,f){var _=Ut(s)?pt:A_;return _(s,Ot(f,3))}function L3(s,f,_,$){return s==null?[]:(Ut(f)||(f=f==null?[]:[f]),_=$?n:_,Ut(_)||(_=_==null?[]:[_]),F_(s,f,_))}var D3=lg(function(s,f,_){s[_?0:1].push(f)},function(){return[[],[]]});function B3(s,f,_){var $=Ut(s)?Mn:s_,F=arguments.length<3;return $(s,Ot(f,4),_,F,Ll)}function F3(s,f,_){var $=Ut(s)?gr:s_,F=arguments.length<3;return $(s,Ot(f,4),_,F,T_)}function z3(s,f){var _=Ut(s)?ze:$_;return _(s,bg(Ot(f,3)))}function k3(s){var f=Ut(s)?__:MF;return f(s)}function j3(s,f,_){(_?So(s,f,_):f===n)?f=1:f=Yt(f);var $=Ut(s)?cF:PF;return $(s,f)}function H3(s){var f=Ut(s)?uF:LF;return f(s)}function W3(s){if(s==null)return 0;if(Ao(s))return Cg(s)?Nc(s):s.length;var f=no(s);return f==ie||f==xe?s.size:p0(s).length}function U3(s,f,_){var $=Ut(s)?wr:DF;return _&&So(s,f,_)&&(f=n),$(s,Ot(f,3))}var V3=Jt(function(s,f){if(s==null)return[];var _=f.length;return _>1&&So(s,f[0],f[1])?f=[]:_>2&&So(f[0],f[1],f[2])&&(f=[f[0]]),F_(s,jr(f,1),[])}),vg=xB||function(){return or.Date.now()};function K3(s,f){if(typeof f!="function")throw new Oi(a);return s=Yt(s),function(){if(--s<1)return f.apply(this,arguments)}}function ME(s,f,_){return f=_?n:f,f=s&&f==null?s.length:f,Xa(s,T,n,n,n,n,f)}function PE(s,f){var _;if(typeof f!="function")throw new Oi(a);return s=Yt(s),function(){return--s>0&&(_=f.apply(this,arguments)),s<=1&&(f=n),_}}var z0=Jt(function(s,f,_){var $=w;if(_.length){var F=Pl(_,zc(z0));$|=O}return Xa(s,$,f,_,F)}),AE=Jt(function(s,f,_){var $=w|C;if(_.length){var F=Pl(_,zc(AE));$|=O}return Xa(f,$,s,_,F)});function LE(s,f,_){f=_?n:f;var $=Xa(s,S,n,n,n,n,n,f);return $.placeholder=LE.placeholder,$}function DE(s,f,_){f=_?n:f;var $=Xa(s,E,n,n,n,n,n,f);return $.placeholder=DE.placeholder,$}function BE(s,f,_){var $,F,V,Y,ee,fe,$e=0,Re=!1,ke=!1,nt=!0;if(typeof s!="function")throw new Oi(a);f=Ni(f)||0,Gn(_)&&(Re=!!_.leading,ke="maxWait"in _,V=ke?Er(Ni(_.maxWait)||0,f):V,nt="trailing"in _?!!_.trailing:nt);function yt(ar){var Zi=$,Ja=F;return $=F=n,$e=ar,Y=s.apply(Ja,Zi),Y}function $t(ar){return $e=ar,ee=Td(tn,f),Re?yt(ar):Y}function Qt(ar){var Zi=ar-fe,Ja=ar-$e,nx=f-Zi;return ke?to(nx,V-Ja):nx}function Rt(ar){var Zi=ar-fe,Ja=ar-$e;return fe===n||Zi>=f||Zi<0||ke&&Ja>=V}function tn(){var ar=vg();if(Rt(ar))return ln(ar);ee=Td(tn,Qt(ar))}function ln(ar){return ee=n,nt&&$?yt(ar):($=F=n,Y)}function oi(){ee!==n&&G_(ee),$e=0,$=fe=F=ee=n}function Co(){return ee===n?Y:ln(vg())}function ii(){var ar=vg(),Zi=Rt(ar);if($=arguments,F=this,fe=ar,Zi){if(ee===n)return $t(fe);if(ke)return G_(ee),ee=Td(tn,f),yt(fe)}return ee===n&&(ee=Td(tn,f)),Y}return ii.cancel=oi,ii.flush=Co,ii}var G3=Jt(function(s,f){return O_(s,1,f)}),X3=Jt(function(s,f,_){return O_(s,Ni(f)||0,_)});function Y3(s){return Xa(s,N)}function yg(s,f){if(typeof s!="function"||f!=null&&typeof f!="function")throw new Oi(a);var _=function(){var $=arguments,F=f?f.apply(this,$):$[0],V=_.cache;if(V.has(F))return V.get(F);var Y=s.apply(this,$);return _.cache=V.set(F,Y)||V,Y};return _.cache=new(yg.Cache||Ka),_}yg.Cache=Ka;function bg(s){if(typeof s!="function")throw new Oi(a);return function(){var f=arguments;switch(f.length){case 0:return!s.call(this);case 1:return!s.call(this,f[0]);case 2:return!s.call(this,f[0],f[1]);case 3:return!s.call(this,f[0],f[1],f[2])}return!s.apply(this,f)}}function q3(s){return PE(2,s)}var Q3=BF(function(s,f){f=f.length==1&&Ut(f[0])?pt(f[0],ti(Ot())):pt(jr(f,1),ti(Ot()));var _=f.length;return Jt(function($){for(var F=-1,V=to($.length,_);++F=f}),Hs=N_(function(){return arguments}())?N_:function(s){return Jn(s)&&Tn.call(s,"callee")&&!v_.call(s,"callee")},Ut=Se.isArray,fz=Rc?ti(Rc):SF;function Ao(s){return s!=null&&Sg(s.length)&&!Qa(s)}function ir(s){return Jn(s)&&Ao(s)}function hz(s){return s===!0||s===!1||Jn(s)&&bo(s)==ce}var zl=TB||Q0,gz=Dh?ti(Dh):CF;function pz(s){return Jn(s)&&s.nodeType===1&&!$d(s)}function mz(s){if(s==null)return!0;if(Ao(s)&&(Ut(s)||typeof s=="string"||typeof s.splice=="function"||zl(s)||kc(s)||Hs(s)))return!s.length;var f=no(s);if(f==ie||f==xe)return!s.size;if(Od(s))return!p0(s).length;for(var _ in s)if(Tn.call(s,_))return!1;return!0}function vz(s,f){return _d(s,f)}function yz(s,f,_){_=typeof _=="function"?_:n;var $=_?_(s,f):n;return $===n?_d(s,f,n,_):!!$}function j0(s){if(!Jn(s))return!1;var f=bo(s);return f==ae||f==pe||typeof s.message=="string"&&typeof s.name=="string"&&!$d(s)}function bz(s){return typeof s=="number"&&b_(s)}function Qa(s){if(!Gn(s))return!1;var f=bo(s);return f==J||f==ue||f==ge||f==me}function zE(s){return typeof s=="number"&&s==Yt(s)}function Sg(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=A}function Gn(s){var f=typeof s;return s!=null&&(f=="object"||f=="function")}function Jn(s){return s!=null&&typeof s=="object"}var kE=Bh?ti(Bh):_F;function Sz(s,f){return s===f||g0(s,f,N0(f))}function Cz(s,f,_){return _=typeof _=="function"?_:n,g0(s,f,N0(f),_)}function wz(s){return jE(s)&&s!=+s}function _z(s){if(a4(s))throw new Wt(i);return M_(s)}function Ez(s){return s===null}function xz(s){return s==null}function jE(s){return typeof s=="number"||Jn(s)&&bo(s)==Ce}function $d(s){if(!Jn(s)||bo(s)!=Te)return!1;var f=Gh(s);if(f===null)return!0;var _=Tn.call(f,"constructor")&&f.constructor;return typeof _=="function"&&_ instanceof _&&Wh.call(_)==CB}var H0=Fh?ti(Fh):EF;function Oz(s){return zE(s)&&s>=-A&&s<=A}var HE=zh?ti(zh):xF;function Cg(s){return typeof s=="string"||!Ut(s)&&Jn(s)&&bo(s)==Ae}function ri(s){return typeof s=="symbol"||Jn(s)&&bo(s)==Pe}var kc=Ps?ti(Ps):OF;function Tz(s){return s===n}function $z(s){return Jn(s)&&no(s)==Ee}function Rz(s){return Jn(s)&&bo(s)==Ie}var Iz=dg(m0),Nz=dg(function(s,f){return s<=f});function WE(s){if(!s)return[];if(Ao(s))return Cg(s)?Yi(s):Po(s);if(pd&&s[pd])return cB(s[pd]());var f=no(s),_=f==ie?r0:f==xe?kh:jc;return _(s)}function Za(s){if(!s)return s===0?s:0;if(s=Ni(s),s===M||s===-M){var f=s<0?-1:1;return f*U}return s===s?s:0}function Yt(s){var f=Za(s),_=f%1;return f===f?_?f-_:f:0}function UE(s){return s?Fs(Yt(s),0,G):0}function Ni(s){if(typeof s=="number")return s;if(ri(s))return j;if(Gn(s)){var f=typeof s.valueOf=="function"?s.valueOf():s;s=Gn(f)?f+"":f}if(typeof s!="string")return s===0?s:+s;s=c_(s);var _=St.test(s);return _||cn.test(s)?Lh(s.slice(2),_?2:8):st.test(s)?j:+s}function VE(s){return Ra(s,Lo(s))}function Mz(s){return s?Fs(Yt(s),-A,A):s===0?s:0}function Cn(s){return s==null?"":ni(s)}var Pz=Bc(function(s,f){if(Od(f)||Ao(f)){Ra(f,Mr(f),s);return}for(var _ in f)Tn.call(f,_)&&Sd(s,_,f[_])}),KE=Bc(function(s,f){Ra(f,Lo(f),s)}),wg=Bc(function(s,f,_,$){Ra(f,Lo(f),s,$)}),Az=Bc(function(s,f,_,$){Ra(f,Mr(f),s,$)}),Lz=Ya(c0);function Dz(s,f){var _=Dc(s);return f==null?_:E_(_,f)}var Bz=Jt(function(s,f){s=Pn(s);var _=-1,$=f.length,F=$>2?f[2]:n;for(F&&So(f[0],f[1],F)&&($=1);++_<$;)for(var V=f[_],Y=Lo(V),ee=-1,fe=Y.length;++ee1),V}),Ra(s,R0(s),_),$&&(_=$i(_,g|p|m,XF));for(var F=f.length;F--;)C0(_,f[F]);return _});function tk(s,f){return XE(s,bg(Ot(f)))}var nk=Ya(function(s,f){return s==null?{}:RF(s,f)});function XE(s,f){if(s==null)return{};var _=pt(R0(s),function($){return[$]});return f=Ot(f),z_(s,_,function($,F){return f($,F[0])})}function rk(s,f,_){f=Bl(f,s);var $=-1,F=f.length;for(F||(F=1,s=n);++$f){var $=s;s=f,f=$}if(_||s%1||f%1){var F=S_();return to(s+F*(f-s+ud("1e-"+((F+"").length-1))),f)}return y0(s,f)}var gk=Fc(function(s,f,_){return f=f.toLowerCase(),s+(_?QE(f):f)});function QE(s){return V0(Cn(s).toLowerCase())}function ZE(s){return s=Cn(s),s&&s.replace(Tt,oB).replace(Ct,"")}function pk(s,f,_){s=Cn(s),f=ni(f);var $=s.length;_=_===n?$:Fs(Yt(_),0,$);var F=_;return _-=f.length,_>=0&&s.slice(_,F)==f}function mk(s){return s=Cn(s),s&&Lt.test(s)?s.replace(vn,iB):s}function vk(s){return s=Cn(s),s&<.test(s)?s.replace(Ye,"\\$&"):s}var yk=Fc(function(s,f,_){return s+(_?"-":"")+f.toLowerCase()}),bk=Fc(function(s,f,_){return s+(_?" ":"")+f.toLowerCase()}),Sk=tE("toLowerCase");function Ck(s,f,_){s=Cn(s),f=Yt(f);var $=f?Nc(s):0;if(!f||$>=f)return s;var F=(f-$)/2;return ug(Qh(F),_)+s+ug(qh(F),_)}function wk(s,f,_){s=Cn(s),f=Yt(f);var $=f?Nc(s):0;return f&&$>>0,_?(s=Cn(s),s&&(typeof f=="string"||f!=null&&!H0(f))&&(f=ni(f),!f&&Ic(s))?Fl(Yi(s),0,_):s.split(f,_)):[]}var Rk=Fc(function(s,f,_){return s+(_?" ":"")+V0(f)});function Ik(s,f,_){return s=Cn(s),_=_==null?0:Fs(Yt(_),0,s.length),f=ni(f),s.slice(_,_+f.length)==f}function Nk(s,f,_){var $=H.templateSettings;_&&So(s,f,_)&&(f=n),s=Cn(s),f=wg({},f,$,sE);var F=wg({},f.imports,$.imports,sE),V=Mr(F),Y=n0(F,V),ee,fe,$e=0,Re=f.interpolate||dr,ke="__p += '",nt=o0((f.escape||dr).source+"|"+Re.source+"|"+(Re===at?Ft:dr).source+"|"+(f.evaluate||dr).source+"|$","g"),yt="//# sourceURL="+(Tn.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Oc+"]")+` `;s.replace(nt,function(Rt,tn,ln,oi,Co,ii){return ln||(ln=oi),ke+=s.slice($e,ii).replace(qr,aB),tn&&(ee=!0,ke+=`' + __e(`+tn+`) + '`),Co&&(fe=!0,ke+=`'; `+Co+`; __p += '`),ln&&(ke+=`' + ((__t = (`+ln+`)) == null ? '' : __t) + '`),$e=ii+Rt.length,Rt}),ke+=`'; `;var $t=Tn.call(f,"variable")&&f.variable;if(!$t)ke=`with (obj) { `+ke+` } `;else if(Nt.test($t))throw new Wt(l);ke=(fe?ke.replace(Qe,""):ke).replace(It,"$1").replace(Ht,"$1;"),ke="function("+($t||"obj")+`) { `+($t?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(ee?", __e = _.escape":"")+(fe?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+ke+`return __p }`;var Qt=ex(function(){return yn(V,yt+"return "+ke).apply(n,Y)});if(Qt.source=ke,j0(Qt))throw Qt;return Qt}function Mk(s){return Cn(s).toLowerCase()}function Pk(s){return Cn(s).toUpperCase()}function Ak(s,f,_){if(s=Cn(s),s&&(_||f===n))return c_(s);if(!s||!(f=ni(f)))return s;var $=Yi(s),F=Yi(f),V=u_($,F),Y=d_($,F)+1;return Fl($,V,Y).join("")}function Lk(s,f,_){if(s=Cn(s),s&&(_||f===n))return s.slice(0,h_(s)+1);if(!s||!(f=ni(f)))return s;var $=Yi(s),F=d_($,Yi(f))+1;return Fl($,0,F).join("")}function Dk(s,f,_){if(s=Cn(s),s&&(_||f===n))return s.replace(et,"");if(!s||!(f=ni(f)))return s;var $=Yi(s),F=u_($,Yi(f));return Fl($,F).join("")}function Bk(s,f){var _=I,$=P;if(Gn(f)){var F="separator"in f?f.separator:F;_="length"in f?Yt(f.length):_,$="omission"in f?ni(f.omission):$}s=Cn(s);var V=s.length;if(Ic(s)){var Y=Yi(s);V=Y.length}if(_>=V)return s;var ee=_-Nc($);if(ee<1)return $;var fe=Y?Fl(Y,0,ee).join(""):s.slice(0,ee);if(F===n)return fe+$;if(Y&&(ee+=fe.length-ee),H0(F)){if(s.slice(ee).search(F)){var $e,Re=fe;for(F.global||(F=o0(F.source,Cn(Je.exec(F))+"g")),F.lastIndex=0;$e=F.exec(Re);)var ke=$e.index;fe=fe.slice(0,ke===n?ee:ke)}}else if(s.indexOf(ni(F),ee)!=ee){var nt=fe.lastIndexOf(F);nt>-1&&(fe=fe.slice(0,nt))}return fe+$}function Fk(s){return s=Cn(s),s&&Vt.test(s)?s.replace(sn,hB):s}var zk=Fc(function(s,f,_){return s+(_?" ":"")+f.toUpperCase()}),V0=tE("toUpperCase");function JE(s,f,_){return s=Cn(s),f=_?n:f,f===n?sB(s)?mB(s):Mo(s):s.match(f)||[]}var ex=Jt(function(s,f){try{return vo(s,n,f)}catch(_){return j0(_)?_:new Wt(_)}}),kk=Ya(function(s,f){return k(f,function(_){_=Ia(_),Ga(s,_,z0(s[_],s))}),s});function jk(s){var f=s==null?0:s.length,_=Ot();return s=f?pt(s,function($){if(typeof $[1]!="function")throw new Oi(a);return[_($[0]),$[1]]}):[],Jt(function($){for(var F=-1;++FA)return[];var _=G,$=to(s,G);f=Ot(f),s-=G;for(var F=t0($,f);++_0||f<0)?new nn(_):(s<0?_=_.takeRight(-s):s&&(_=_.drop(s)),f!==n&&(f=Yt(f),_=f<0?_.dropRight(-f):_.take(f-s)),_)},nn.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},nn.prototype.toArray=function(){return this.take(G)},$a(nn.prototype,function(s,f){var _=/^(?:filter|find|map|reject)|While$/.test(f),$=/^(?:head|last)$/.test(f),F=H[$?"take"+(f=="last"?"Right":""):f],V=$||/^find/.test(f);F&&(H.prototype[f]=function(){var Y=this.__wrapped__,ee=$?[1]:arguments,fe=Y instanceof nn,$e=ee[0],Re=fe||Ut(Y),ke=function(tn){var ln=F.apply(H,an([tn],ee));return $&&nt?ln[0]:ln};Re&&_&&typeof $e=="function"&&$e.length!=1&&(fe=Re=!1);var nt=this.__chain__,yt=!!this.__actions__.length,$t=V&&!nt,Qt=fe&&!yt;if(!V&&Re){Y=Qt?Y:new nn(this);var Rt=s.apply(Y,ee);return Rt.__actions__.push({func:pg,args:[ke],thisArg:n}),new Ti(Rt,nt)}return $t&&Qt?s.apply(this,ee):(Rt=this.thru(ke),$t?$?Rt.value()[0]:Rt.value():Rt)})}),k(["pop","push","shift","sort","splice","unshift"],function(s){var f=jh[s],_=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",$=/^(?:pop|shift)$/.test(s);H.prototype[s]=function(){var F=arguments;if($&&!this.__chain__){var V=this.value();return f.apply(Ut(V)?V:[],F)}return this[_](function(Y){return f.apply(Ut(Y)?Y:[],F)})}}),$a(nn.prototype,function(s,f){var _=H[f];if(_){var $=_.name+"";Tn.call(Lc,$)||(Lc[$]=[]),Lc[$].push({name:f,func:_})}}),Lc[sg(n,C).name]=[{name:"wrapper",func:n}],nn.prototype.clone=FB,nn.prototype.reverse=zB,nn.prototype.value=kB,H.prototype.at=p3,H.prototype.chain=m3,H.prototype.commit=v3,H.prototype.next=y3,H.prototype.plant=S3,H.prototype.reverse=C3,H.prototype.toJSON=H.prototype.valueOf=H.prototype.value=w3,H.prototype.first=H.prototype.head,pd&&(H.prototype[pd]=b3),H},Mc=vB();Ta?((Ta.exports=Mc)._=Mc,fd._=Mc):or._=Mc}).call(Ho)})(Rm,Rm.exports);var tle=Rm.exports;const nle=({onChange:e,debounceTimeout:t=200,id:n="search-box",value:r="",visibleIcon:o=!0,style:i})=>{const[a,l]=u.useState(r);u.useEffect(()=>{l(r)},[r]);const c=u.useCallback(g=>{e(g)},[e]),d=u.useMemo(()=>tle.debounce(c,t),[c]),h=g=>{l(g),d(g)};return qe.jsx(uL,{id:n,placeholder:"Search",value:a,style:{width:"100%",...i},onChange:g=>h(g.target.value),suffix:o&&qe.jsx(Qu,{onClick:()=>{h("")},style:{color:"rgba(0,0,0,.45)",visibility:a?"visible":"hidden"}})})};function Sl(e){return Array.isArray?Array.isArray(e):GL(e)==="[object Array]"}const rle=1/0;function ole(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-rle?"-0":t}function ile(e){return e==null?"":ole(e)}function Da(e){return typeof e=="string"}function VL(e){return typeof e=="number"}function ale(e){return e===!0||e===!1||lle(e)&&GL(e)=="[object Boolean]"}function KL(e){return typeof e=="object"}function lle(e){return KL(e)&&e!==null}function fi(e){return e!=null}function Db(e){return!e.trim().length}function GL(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const sle="Incorrect 'index' type",cle=e=>`Invalid value for key ${e}`,ule=e=>`Pattern length exceeds max of ${e}.`,dle=e=>`Missing ${e} property in key`,fle=e=>`Property 'weight' in key '${e}' must be a positive integer`,KR=Object.prototype.hasOwnProperty;class hle{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(r=>{let o=XL(r);this._keys.push(o),this._keyMap[o.id]=o,n+=o.weight}),this._keys.forEach(r=>{r.weight/=n})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function XL(e){let t=null,n=null,r=null,o=1,i=null;if(Da(e)||Sl(e))r=e,t=GR(e),n=B1(e);else{if(!KR.call(e,"name"))throw new Error(dle("name"));const a=e.name;if(r=a,KR.call(e,"weight")&&(o=e.weight,o<=0))throw new Error(fle(a));t=GR(a),n=B1(a),i=e.getFn}return{path:t,id:n,weight:o,src:r,getFn:i}}function GR(e){return Sl(e)?e:e.split(".")}function B1(e){return Sl(e)?e.join("."):e}function gle(e,t){let n=[],r=!1;const o=(i,a,l)=>{if(fi(i))if(!a[l])n.push(i);else{let c=a[l];const d=i[c];if(!fi(d))return;if(l===a.length-1&&(Da(d)||VL(d)||ale(d)))n.push(ile(d));else if(Sl(d)){r=!0;for(let h=0,g=d.length;he.score===t.score?e.idx{this._keysMap[n.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Da(this.docs[0])?this.docs.forEach((t,n)=>{this._addString(t,n)}):this.docs.forEach((t,n)=>{this._addObject(t,n)}),this.norm.clear())}add(t){const n=this.size();Da(t)?this._addString(t,n):this._addObject(t,n)}removeAt(t){this.records.splice(t,1);for(let n=t,r=this.size();n{let a=o.getFn?o.getFn(t):this.getFn(t,o.path);if(fi(a)){if(Sl(a)){let l=[];const c=[{nestedArrIndex:-1,value:a}];for(;c.length;){const{nestedArrIndex:d,value:h}=c.pop();if(fi(h))if(Da(h)&&!Db(h)){let g={v:h,i:d,n:this.norm.get(h)};l.push(g)}else Sl(h)&&h.forEach((g,p)=>{c.push({nestedArrIndex:p,value:g})})}r.$[i]=l}else if(Da(a)&&!Db(a)){let l={v:a,n:this.norm.get(a)};r.$[i]=l}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function YL(e,t,{getFn:n=jt.getFn,fieldNormWeight:r=jt.fieldNormWeight}={}){const o=new o_({getFn:n,fieldNormWeight:r});return o.setKeys(e.map(XL)),o.setSources(t),o.create(),o}function Cle(e,{getFn:t=jt.getFn,fieldNormWeight:n=jt.fieldNormWeight}={}){const{keys:r,records:o}=e,i=new o_({getFn:t,fieldNormWeight:n});return i.setKeys(r),i.setIndexRecords(o),i}function lp(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:o=jt.distance,ignoreLocation:i=jt.ignoreLocation}={}){const a=t/e.length;if(i)return a;const l=Math.abs(r-n);return o?a+l/o:l?1:a}function wle(e=[],t=jt.minMatchCharLength){let n=[],r=-1,o=-1,i=0;for(let a=e.length;i=t&&n.push([r,o]),r=-1)}return e[i-1]&&i-r>=t&&n.push([r,i-1]),n}const qs=32;function _le(e,t,n,{location:r=jt.location,distance:o=jt.distance,threshold:i=jt.threshold,findAllMatches:a=jt.findAllMatches,minMatchCharLength:l=jt.minMatchCharLength,includeMatches:c=jt.includeMatches,ignoreLocation:d=jt.ignoreLocation}={}){if(t.length>qs)throw new Error(ule(qs));const h=t.length,g=e.length,p=Math.max(0,Math.min(r,g));let m=i,v=p;const y=l>1||c,w=y?Array(g):[];let C;for(;(C=e.indexOf(t,v))>-1;){let T=lp(t,{currentLocation:C,expectedLocation:p,distance:o,ignoreLocation:d});if(m=Math.min(T,m),v=C+h,y){let R=0;for(;R=I;z-=1){let W=z-1,B=n[e.charAt(W)];if(y&&(w[W]=+!!B),L[z]=(L[z+1]<<1|1)&B,T&&(L[z]|=(b[z+1]|b[z])<<1|1|b[z+1]),L[z]&O&&(S=lp(t,{errors:T,currentLocation:W,expectedLocation:p,distance:o,ignoreLocation:d}),S<=m)){if(m=S,v=W,v<=p)break;I=Math.max(1,2*p-v)}}if(lp(t,{errors:T+1,currentLocation:p,expectedLocation:p,distance:o,ignoreLocation:d})>m)break;b=L}const x={isMatch:v>=0,score:Math.max(.001,S)};if(y){const T=wle(w,l);T.length?c&&(x.indices=T):x.isMatch=!1}return x}function Ele(e){let t={};for(let n=0,r=e.length;n{this.chunks.push({pattern:p,alphabet:Ele(p),startIndex:m})},g=this.pattern.length;if(g>qs){let p=0;const m=g%qs,v=g-m;for(;p{const{isMatch:C,score:b,indices:S}=_le(t,v,y,{location:o+w,distance:i,threshold:a,findAllMatches:l,minMatchCharLength:c,includeMatches:r,ignoreLocation:d});C&&(p=!0),g+=b,C&&S&&(h=[...h,...S])});let m={isMatch:p,score:p?g/this.chunks.length:1};return p&&r&&(m.indices=h),m}}class Os{constructor(t){this.pattern=t}static isMultiMatch(t){return XR(t,this.multiRegex)}static isSingleMatch(t){return XR(t,this.singleRegex)}search(){}}function XR(e,t){const n=e.match(t);return n?n[1]:null}class xle extends Os{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const n=t===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class Ole extends Os{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const r=t.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}}class Tle extends Os{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const n=t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class $le extends Os{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const n=!t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class Rle extends Os{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const n=t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class Ile extends Os{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const n=!t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class QL extends Os{constructor(t,{location:n=jt.location,threshold:r=jt.threshold,distance:o=jt.distance,includeMatches:i=jt.includeMatches,findAllMatches:a=jt.findAllMatches,minMatchCharLength:l=jt.minMatchCharLength,isCaseSensitive:c=jt.isCaseSensitive,ignoreLocation:d=jt.ignoreLocation}={}){super(t),this._bitapSearch=new qL(t,{location:n,threshold:r,distance:o,includeMatches:i,findAllMatches:a,minMatchCharLength:l,isCaseSensitive:c,ignoreLocation:d})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class ZL extends Os{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let n=0,r;const o=[],i=this.pattern.length;for(;(r=t.indexOf(this.pattern,n))>-1;)n=r+i,o.push([r,n-1]);const a=!!o.length;return{isMatch:a,score:a?0:1,indices:o}}}const F1=[xle,ZL,Tle,$le,Ile,Rle,Ole,QL],YR=F1.length,Nle=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Mle="|";function Ple(e,t={}){return e.split(Mle).map(n=>{let r=n.trim().split(Nle).filter(i=>i&&!!i.trim()),o=[];for(let i=0,a=r.length;i!!(e[Im.AND]||e[Im.OR]),Ble=e=>!!e[j1.PATH],Fle=e=>!Sl(e)&&KL(e)&&!H1(e),qR=e=>({[Im.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function JL(e,t,{auto:n=!0}={}){const r=o=>{let i=Object.keys(o);const a=Ble(o);if(!a&&i.length>1&&!H1(o))return r(qR(o));if(Fle(o)){const c=a?o[j1.PATH]:i[0],d=a?o[j1.PATTERN]:o[c];if(!Da(d))throw new Error(cle(c));const h={keyId:B1(c),pattern:d};return n&&(h.searcher=k1(d,t)),h}let l={children:[],operator:i[0]};return i.forEach(c=>{const d=o[c];Sl(d)&&d.forEach(h=>{l.children.push(r(h))})}),l};return H1(e)||(e=qR(e)),r(e)}function zle(e,{ignoreFieldNorm:t=jt.ignoreFieldNorm}){e.forEach(n=>{let r=1;n.matches.forEach(({key:o,norm:i,score:a})=>{const l=o?o.weight:null;r*=Math.pow(a===0&&l?Number.EPSILON:a,(l||1)*(t?1:i))}),n.score=r})}function kle(e,t){const n=e.matches;t.matches=[],fi(n)&&n.forEach(r=>{if(!fi(r.indices)||!r.indices.length)return;const{indices:o,value:i}=r;let a={indices:o,value:i};r.key&&(a.key=r.key.src),r.idx>-1&&(a.refIndex=r.idx),t.matches.push(a)})}function jle(e,t){t.score=e.score}function Hle(e,t,{includeMatches:n=jt.includeMatches,includeScore:r=jt.includeScore}={}){const o=[];return n&&o.push(kle),r&&o.push(jle),e.map(i=>{const{idx:a}=i,l={item:t[a],refIndex:a};return o.length&&o.forEach(c=>{c(i,l)}),l})}class sd{constructor(t,n={},r){this.options={...jt,...n},this.options.useExtendedSearch,this._keyStore=new hle(this.options.keys),this.setCollection(t,r)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof o_))throw new Error(sle);this._myIndex=n||YL(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){fi(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const n=[];for(let r=0,o=this._docs.length;r-1&&(c=c.slice(0,n)),Hle(c,this._docs,{includeMatches:r,includeScore:o})}_searchStringList(t){const n=k1(t,this.options),{records:r}=this._myIndex,o=[];return r.forEach(({v:i,i:a,n:l})=>{if(!fi(i))return;const{isMatch:c,score:d,indices:h}=n.searchIn(i);c&&o.push({item:i,idx:a,matches:[{score:d,value:i,norm:l,indices:h}]})}),o}_searchLogical(t){const n=JL(t,this.options),r=(l,c,d)=>{if(!l.children){const{keyId:g,searcher:p}=l,m=this._findMatches({key:this._keyStore.get(g),value:this._myIndex.getValueForItemAtKeyId(c,g),searcher:p});return m&&m.length?[{idx:d,item:c,matches:m}]:[]}const h=[];for(let g=0,p=l.children.length;g{if(fi(l)){let d=r(n,l,c);d.length&&(i[c]||(i[c]={idx:c,item:l,matches:[]},a.push(i[c])),d.forEach(({matches:h})=>{i[c].matches.push(...h)}))}}),a}_searchObjectList(t){const n=k1(t,this.options),{keys:r,records:o}=this._myIndex,i=[];return o.forEach(({$:a,i:l})=>{if(!fi(a))return;let c=[];r.forEach((d,h)=>{c.push(...this._findMatches({key:d,value:a[h],searcher:n}))}),c.length&&i.push({idx:l,item:a,matches:c})}),i}_findMatches({key:t,value:n,searcher:r}){if(!fi(n))return[];let o=[];if(Sl(n))n.forEach(({v:i,i:a,n:l})=>{if(!fi(i))return;const{isMatch:c,score:d,indices:h}=r.searchIn(i);c&&o.push({score:d,key:t,value:i,idx:a,norm:l,indices:h})});else{const{v:i,n:a}=n,{isMatch:l,score:c,indices:d}=r.searchIn(i);l&&o.push({score:c,key:t,value:i,norm:a,indices:d})}return o}}sd.version="7.0.0";sd.createIndex=YL;sd.parseIndex=Cle;sd.config=jt;sd.parseQuery=JL;Dle(Lle);const Wle=(e,t={})=>{const[n,r]=u.useState(""),[o,i]=u.useState([]);return u.useEffect(()=>{if(n===""){i(e);return}const l=new sd(e,{threshold:0,distance:0,ignoreLocation:!0,...t}).search(n);i(l.map(c=>c.item))},[n,e]),[r,o,n]};var dt={},W1={exports:{}};(function(e,t){(function(n,r){var o="1.0.37",i="",a="?",l="function",c="undefined",d="object",h="string",g="major",p="model",m="name",v="type",y="vendor",w="version",C="architecture",b="console",S="mobile",E="tablet",O="smarttv",x="wearable",T="embedded",R=500,N="Amazon",I="Apple",P="ASUS",L="BlackBerry",D="Browser",z="Chrome",W="Edge",B="Firefox",M="Google",A="Huawei",U="LG",j="Microsoft",G="Motorola",X="Opera",re="Samsung",te="Sharp",Z="Sony",he="Xiaomi",ge="Zebra",ce="Facebook",be="Chromium OS",pe="Mac OS",ae=function(Ee,Ie){var je={};for(var Le in Ee)Ie[Le]&&Ie[Le].length%2===0?je[Le]=Ie[Le].concat(Ee[Le]):je[Le]=Ee[Le];return je},J=function(Ee){for(var Ie={},je=0;je0?We.length===2?typeof We[1]==l?this[We[0]]=We[1].call(this,Et):this[We[0]]=We[1]:We.length===3?typeof We[1]===l&&!(We[1].exec&&We[1].test)?this[We[0]]=Et?We[1].call(this,Et,We[2]):r:this[We[0]]=Et?Et.replace(We[1],We[2]):r:We.length===4&&(this[We[0]]=Et?We[3].call(this,Et.replace(We[1],We[2])):r):this[We]=Et||r;je+=2}},Me=function(Ee,Ie){for(var je in Ie)if(typeof Ie[je]===d&&Ie[je].length>0){for(var Le=0;Le2&&(Ke[p]="iPad",Ke[v]=E),Ke},this.getEngine=function(){var Ke={};return Ke[m]=r,Ke[w]=r,Te.call(Ke,Le,Ve.engine),Ke},this.getOS=function(){var Ke={};return Ke[m]=r,Ke[w]=r,Te.call(Ke,Le,Ve.os),We&&!Ke[m]&&Ue&&Ue.platform!="Unknown"&&(Ke[m]=Ue.platform.replace(/chrome os/i,be).replace(/macos/i,pe)),Ke},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return Le},this.setUA=function(Ke){return Le=typeof Ke===h&&Ke.length>R?Oe(Ke,R):Ke,this},this.setUA(Le),this};Ae.VERSION=o,Ae.BROWSER=J([m,w,g]),Ae.CPU=J([C]),Ae.DEVICE=J([p,y,v,b,S,O,E,x,T]),Ae.ENGINE=Ae.OS=J([m,w]),e.exports&&(t=e.exports=Ae),t.UAParser=Ae;var Pe=typeof n!==c&&(n.jQuery||n.Zepto);if(Pe&&!Pe.ua){var Fe=new Ae;Pe.ua=Fe.getResult(),Pe.ua.get=function(){return Fe.getUA()},Pe.ua.set=function(Ee){Fe.setUA(Ee);var Ie=Fe.getResult();for(var je in Ie)Pe.ua[je]=Ie[je]}}})(typeof window=="object"?window:Ho)})(W1,W1.exports);var Ule=W1.exports;Object.defineProperty(dt,"__esModule",{value:!0});function Vle(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var uo=u,zn=Vle(uo),eD=Ule,Ts=new eD,po=Ts.getBrowser(),Kle=Ts.getCPU(),Ei=Ts.getDevice(),i_=Ts.getEngine(),$s=Ts.getOS(),Ph=Ts.getUA(),tD=function(t){return Ts.setUA(t)},Ah=function(t){if(!t){console.error("No userAgent string was provided");return}var n=new eD(t);return{UA:n,browser:n.getBrowser(),cpu:n.getCPU(),device:n.getDevice(),engine:n.getEngine(),os:n.getOS(),ua:n.getUA(),setUserAgent:function(o){return n.setUA(o)}}},nD=Object.freeze({ClientUAInstance:Ts,browser:po,cpu:Kle,device:Ei,engine:i_,os:$s,ua:Ph,setUa:tD,parseUserAgent:Ah});function QR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Gle(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function Gi(e,t){if(e==null)return{};var n=Zle(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Bp(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jle(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bp(e)}function ese(e,t){return tse(e)||nse(e,t)||rse(e,t)||ose()}function tse(e){if(Array.isArray(e))return e}function nse(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,a,l;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));o=!0);}catch(c){i=!0,l=c}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw l}}return r}}function rse(e,t){if(e){if(typeof e=="string")return JR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return JR(e,t)}}function JR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:"none";return t||n},a_=function(){return typeof window<"u"&&(window.navigator||navigator)?window.navigator||navigator:!1},l_=function(t){var n=a_();return n&&n.platform&&(n.platform.indexOf(t)!==-1||n.platform==="MacIntel"&&n.maxTouchPoints>1&&!window.MSStream)},sse=function(t,n,r,o,i){return{isBrowser:t,browserMajorVersion:Dt(n.major),browserFullVersion:Dt(n.version),browserName:Dt(n.name),engineName:Dt(r.name),engineVersion:Dt(r.version),osName:Dt(o.name),osVersion:Dt(o.version),userAgent:Dt(i)}},eI=function(t,n,r,o){return Gle({},t,{vendor:Dt(n.vendor),model:Dt(n.model),os:Dt(r.name),osVersion:Dt(r.version),ua:Dt(o)})},cse=function(t,n,r,o){return{isSmartTV:t,engineName:Dt(n.name),engineVersion:Dt(n.version),osName:Dt(r.name),osVersion:Dt(r.version),userAgent:Dt(o)}},use=function(t,n,r,o){return{isConsole:t,engineName:Dt(n.name),engineVersion:Dt(n.version),osName:Dt(r.name),osVersion:Dt(r.version),userAgent:Dt(o)}},dse=function(t,n,r,o){return{isWearable:t,engineName:Dt(n.name),engineVersion:Dt(n.version),osName:Dt(r.name),osVersion:Dt(r.version),userAgent:Dt(o)}},fse=function(t,n,r,o,i){return{isEmbedded:t,vendor:Dt(n.vendor),model:Dt(n.model),engineName:Dt(r.name),engineVersion:Dt(r.version),osName:Dt(o.name),osVersion:Dt(o.version),userAgent:Dt(i)}};function hse(e){var t=e?Ah(e):nD,n=t.device,r=t.browser,o=t.engine,i=t.os,a=t.ua,l=ase(n.type),c=l.isBrowser,d=l.isMobile,h=l.isTablet,g=l.isSmartTV,p=l.isConsole,m=l.isWearable,v=l.isEmbedded;if(c)return sse(c,r,o,i,a);if(g)return cse(g,o,i,a);if(p)return use(p,o,i,a);if(d||h)return eI(l,n,i,a);if(m)return dse(m,o,i,a);if(v)return fse(v,n,o,i,a)}var rD=function(t){var n=t.type;return n===so.Mobile},oD=function(t){var n=t.type;return n===so.Tablet},iD=function(t){var n=t.type;return n===so.Mobile||n===so.Tablet},aD=function(t){var n=t.type;return n===so.SmartTv},Nm=function(t){var n=t.type;return n===so.Browser},lD=function(t){var n=t.type;return n===so.Wearable},sD=function(t){var n=t.type;return n===so.Console},cD=function(t){var n=t.type;return n===so.Embedded},uD=function(t){var n=t.vendor;return Dt(n)},dD=function(t){var n=t.model;return Dt(n)},fD=function(t){var n=t.type;return Dt(n,"browser")},hD=function(t){var n=t.name;return n===cd.Android},gD=function(t){var n=t.name;return n===cd.Windows},pD=function(t){var n=t.name;return n===cd.MAC_OS},mD=function(t){var n=t.name;return n===cd.WindowsPhone},vD=function(t){var n=t.name;return n===cd.IOS},yD=function(t){var n=t.version;return Dt(n)},bD=function(t){var n=t.name;return Dt(n)},SD=function(t){var n=t.name;return n===Xo.Chrome},CD=function(t){var n=t.name;return n===Xo.Firefox},wD=function(t){var n=t.name;return n===Xo.Chromium},Mm=function(t){var n=t.name;return n===Xo.Edge},_D=function(t){var n=t.name;return n===Xo.Yandex},ED=function(t){var n=t.name;return n===Xo.Safari||n===Xo.MobileSafari},xD=function(t){var n=t.name;return n===Xo.MobileSafari},OD=function(t){var n=t.name;return n===Xo.Opera},TD=function(t){var n=t.name;return n===Xo.InternetExplorer||n===Xo.Ie},$D=function(t){var n=t.name;return n===Xo.MIUI},RD=function(t){var n=t.name;return n===Xo.SamsungBrowser},ID=function(t){var n=t.version;return Dt(n)},ND=function(t){var n=t.major;return Dt(n)},MD=function(t){var n=t.name;return Dt(n)},PD=function(t){var n=t.name;return Dt(n)},AD=function(t){var n=t.version;return Dt(n)},LD=function(){var t=a_(),n=t&&t.userAgent&&t.userAgent.toLowerCase();return typeof n=="string"?/electron/.test(n):!1},Iu=function(t){return typeof t=="string"&&t.indexOf("Edg/")!==-1},DD=function(){var t=a_();return t&&(/iPad|iPhone|iPod/.test(t.platform)||t.platform==="MacIntel"&&t.maxTouchPoints>1)&&!window.MSStream},Aa=function(){return l_("iPad")},BD=function(){return l_("iPhone")},FD=function(){return l_("iPod")},zD=function(t){return Dt(t)};function kD(e){var t=e||nD,n=t.device,r=t.browser,o=t.os,i=t.engine,a=t.ua;return{isSmartTV:aD(n),isConsole:sD(n),isWearable:lD(n),isEmbedded:cD(n),isMobileSafari:xD(r)||Aa(),isChromium:wD(r),isMobile:iD(n)||Aa(),isMobileOnly:rD(n),isTablet:oD(n)||Aa(),isBrowser:Nm(n),isDesktop:Nm(n),isAndroid:hD(o),isWinPhone:mD(o),isIOS:vD(o)||Aa(),isChrome:SD(r),isFirefox:CD(r),isSafari:ED(r),isOpera:OD(r),isIE:TD(r),osVersion:yD(o),osName:bD(o),fullBrowserVersion:ID(r),browserVersion:ND(r),browserName:MD(r),mobileVendor:uD(n),mobileModel:dD(n),engineName:PD(i),engineVersion:AD(i),getUA:zD(a),isEdge:Mm(r)||Iu(a),isYandex:_D(r),deviceType:fD(n),isIOS13:DD(),isIPad13:Aa(),isIPhone13:BD(),isIPod13:FD(),isElectron:LD(),isEdgeChromium:Iu(a),isLegacyEdge:Mm(r)&&!Iu(a),isWindows:gD(o),isMacOs:pD(o),isMIUI:$D(r),isSamsungBrowser:RD(r)}}var jD=aD(Ei),HD=sD(Ei),WD=lD(Ei),gse=cD(Ei),pse=xD(po)||Aa(),mse=wD(po),Yv=iD(Ei)||Aa(),UD=rD(Ei),VD=oD(Ei)||Aa(),KD=Nm(Ei),vse=Nm(Ei),GD=hD($s),XD=mD($s),YD=vD($s)||Aa(),yse=SD(po),bse=CD(po),Sse=ED(po),Cse=OD(po),qD=TD(po),wse=yD($s),_se=bD($s),Ese=ID(po),xse=ND(po),Ose=MD(po),Tse=uD(Ei),$se=dD(Ei),Rse=PD(i_),Ise=AD(i_),Nse=zD(Ph),Mse=Mm(po)||Iu(Ph),Pse=_D(po),Ase=fD(Ei),Lse=DD(),Dse=Aa(),Bse=BD(),Fse=FD(),zse=LD(),kse=Iu(Ph),jse=Mm(po)&&!Iu(Ph),Hse=gD($s),Wse=pD($s),Use=$D(po),Vse=RD(po),Kse=function(t){if(!t||typeof t!="string"){console.error("No valid user agent string was provided");return}var n=Ah(t),r=n.device,o=n.browser,i=n.os,a=n.engine,l=n.ua;return kD({device:r,browser:o,os:i,engine:a,ua:l})},Gse=function(t){var n=t.renderWithFragment,r=t.children,o=Gi(t,["renderWithFragment","children"]);return GD?n?zn.createElement(uo.Fragment,null,r):zn.createElement("div",o,r):null},Xse=function(t){var n=t.renderWithFragment,r=t.children,o=Gi(t,["renderWithFragment","children"]);return KD?n?zn.createElement(uo.Fragment,null,r):zn.createElement("div",o,r):null},Yse=function(t){var n=t.renderWithFragment,r=t.children,o=Gi(t,["renderWithFragment","children"]);return qD?n?zn.createElement(uo.Fragment,null,r):zn.createElement("div",o,r):null},qse=function(t){var n=t.renderWithFragment,r=t.children,o=Gi(t,["renderWithFragment","children"]);return YD?n?zn.createElement(uo.Fragment,null,r):zn.createElement("div",o,r):null},Qse=function(t){var n=t.renderWithFragment,r=t.children,o=Gi(t,["renderWithFragment","children"]);return Yv?n?zn.createElement(uo.Fragment,null,r):zn.createElement("div",o,r):null},Zse=function(t){var n=t.renderWithFragment,r=t.children,o=Gi(t,["renderWithFragment","children"]);return VD?n?zn.createElement(uo.Fragment,null,r):zn.createElement("div",o,r):null},Jse=function(t){var n=t.renderWithFragment,r=t.children,o=Gi(t,["renderWithFragment","children"]);return XD?n?zn.createElement(uo.Fragment,null,r):zn.createElement("div",o,r):null},ece=function(t){var n=t.renderWithFragment,r=t.children;t.viewClassName,t.style;var o=Gi(t,["renderWithFragment","children","viewClassName","style"]);return UD?n?zn.createElement(uo.Fragment,null,r):zn.createElement("div",o,r):null},tce=function(t){var n=t.renderWithFragment,r=t.children,o=Gi(t,["renderWithFragment","children"]);return jD?n?zn.createElement(uo.Fragment,null,r):zn.createElement("div",o,r):null},nce=function(t){var n=t.renderWithFragment,r=t.children,o=Gi(t,["renderWithFragment","children"]);return HD?n?zn.createElement(uo.Fragment,null,r):zn.createElement("div",o,r):null},rce=function(t){var n=t.renderWithFragment,r=t.children,o=Gi(t,["renderWithFragment","children"]);return WD?n?zn.createElement(uo.Fragment,null,r):zn.createElement("div",o,r):null},oce=function(t){var n=t.renderWithFragment,r=t.children;t.viewClassName,t.style;var o=t.condition,i=Gi(t,["renderWithFragment","children","viewClassName","style","condition"]);return o?n?zn.createElement(uo.Fragment,null,r):zn.createElement("div",i,r):null};function ice(e){return function(t){Qle(n,t);function n(r){var o;return Xle(this,n),o=Jle(this,V1(n).call(this,r)),o.isEventListenerAdded=!1,o.handleOrientationChange=o.handleOrientationChange.bind(Bp(o)),o.onOrientationChange=o.onOrientationChange.bind(Bp(o)),o.onPageLoad=o.onPageLoad.bind(Bp(o)),o.state={isLandscape:!1,isPortrait:!1},o}return Yle(n,[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var o=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:o===0,isLandscape:o===90})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){(typeof window>"u"?"undefined":_f(window))!==void 0&&Yv&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return zn.createElement(e,U1({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),n}(zn.Component)}function ace(){var e=uo.useState(function(){var i=window.innerWidth>window.innerHeight?90:0;return{isPortrait:i===0,isLandscape:i===90,orientation:i===0?"portrait":"landscape"}}),t=ese(e,2),n=t[0],r=t[1],o=uo.useCallback(function(){var i=window.innerWidth>window.innerHeight?90:0,a={isPortrait:i===0,isLandscape:i===90,orientation:i===0?"portrait":"landscape"};n.orientation!==a.orientation&&r(a)},[n.orientation]);return uo.useEffect(function(){return(typeof window>"u"?"undefined":_f(window))!==void 0&&Yv&&(o(),window.addEventListener("load",o,!1),window.addEventListener("resize",o,!1)),function(){window.removeEventListener("resize",o,!1),window.removeEventListener("load",o,!1)}},[o]),n}function QD(e){var t=e||window.navigator.userAgent;return Ah(t)}function lce(e){var t=e||window.navigator.userAgent,n=QD(t),r=kD(n);return[r,n]}dt.AndroidView=Gse;dt.BrowserTypes=Xo;dt.BrowserView=Xse;dt.ConsoleView=nce;dt.CustomView=oce;dt.IEView=Yse;dt.IOSView=qse;dt.MobileOnlyView=ece;dt.MobileView=Qse;dt.OsTypes=cd;dt.SmartTVView=tce;dt.TabletView=Zse;dt.WearableView=rce;dt.WinPhoneView=Jse;dt.browserName=Ose;dt.browserVersion=xse;dt.deviceDetect=hse;dt.deviceType=Ase;dt.engineName=Rse;dt.engineVersion=Ise;dt.fullBrowserVersion=Ese;dt.getSelectorsByUserAgent=Kse;dt.getUA=Nse;dt.isAndroid=GD;dt.isBrowser=KD;dt.isChrome=yse;dt.isChromium=mse;dt.isConsole=HD;dt.isDesktop=vse;dt.isEdge=Mse;dt.isEdgeChromium=kse;dt.isElectron=zse;dt.isEmbedded=gse;dt.isFirefox=bse;dt.isIE=qD;dt.isIOS=YD;dt.isIOS13=Lse;dt.isIPad13=Dse;dt.isIPhone13=Bse;dt.isIPod13=Fse;dt.isLegacyEdge=jse;dt.isMIUI=Use;dt.isMacOs=Wse;var sce=dt.isMobile=Yv;dt.isMobileOnly=UD;dt.isMobileSafari=pse;dt.isOpera=Cse;dt.isSafari=Sse;dt.isSamsungBrowser=Vse;dt.isSmartTV=jD;dt.isTablet=VD;dt.isWearable=WD;dt.isWinPhone=XD;dt.isWindows=Hse;dt.isYandex=Pse;dt.mobileModel=$se;dt.mobileVendor=Tse;dt.osName=_se;dt.osVersion=wse;dt.parseUserAgent=Ah;dt.setUserAgent=lse;dt.useDeviceData=QD;dt.useDeviceSelectors=lce;dt.useMobileOrientation=ace;dt.withOrientationChange=ice;function th({children:e,...t}){return qe.jsx(td,{...t,title:sce?void 0:t.title,children:e})}var Dn=(e=>(e[e.pilotDesktopLayout=0]="pilotDesktopLayout",e[e.pilotMobileLayout=1]="pilotMobileLayout",e[e.observerDesktopLayout=2]="observerDesktopLayout",e[e.observerMobileLayout=3]="observerMobileLayout",e[e.draftDesktopLayout=4]="draftDesktopLayout",e[e.draftMobileLayout=5]="draftMobileLayout",e))(Dn||{});const G1=e=>e===Dn.pilotMobileLayout||e===Dn.observerMobileLayout||e===Dn.draftMobileLayout,cce=e=>{if(!e)return[];const{model:{layout:t,borders:n}}=e,r=[],o=i=>{i.forEach(a=>{if("children"in a)return o(a.children);"id"in a&&a.id&&r.push(a.id)})};return o(t.children),n&&n.forEach(i=>o(i.children)),r},tI=e=>{if(!e)return"";const[t]=e.split("-");return t},ZD=({plugins:e,selectedKeys:t,onSelect:n,checkable:r=!1,selectedBgPlugins:o,onChange:i,treeSelectHeight:a=350})=>{const[l,c]=u.useState([]),d=u.useMemo(()=>{const m=ele(e==null?void 0:e.filter(w=>!w.isBackgroundPlugin),"libraryName"),v=t.map(w=>{const C=e==null?void 0:e.find(b=>b.id===w);return C==null?void 0:C.name});return Object.keys(m).map((w,C)=>({title:w,key:`parent-${C}`,children:m[w].map(b=>({title:tI(b.version),key:b.id.toString(),disabled:!(t!=null&&t.includes(b.id))&&(v==null?void 0:v.includes(b.name)),selected:t==null?void 0:t.includes(b.id),isSystemPlugin:b.isSystemPlugin,description:b.description,config:b.config}))}))},[e]),h={keys:["title"]},[g,p]=Wle(d,h);return qe.jsx(DJ,{style:{height:"100%"},bodyStyle:{padding:"8px"},children:e?qe.jsxs(qe.Fragment,{children:[qe.jsx(nb,{children:"UI"}),qe.jsx(nle,{onChange:m=>g(m)}),qe.jsx(Xre,{style:{marginTop:20},multiple:!0,height:a,treeData:p,selectedKeys:t.map(m=>m.toString()),expandedKeys:l,onExpand:(m,v)=>(console.log(m),v.node.expanded?c(y=>[...y.filter(w=>w!==v.node.key)]):c(y=>[...y,v.node.key])),checkable:r,onSelect:(m,v)=>{if(console.log(m),v.node.expanded?c(y=>[...y.filter(w=>w!==v.node.key)]):c(y=>[...y,v.node.key]),t.includes(v.node.key)||v.node.key.toString().includes("parent")||o!=null&&o.includes(v.node.key))return!1;n(v.node.key)},titleRender:m=>qe.jsx("div",{children:m.config&&m.config.isUseMenu?qe.jsx(th,{title:"This plugin adds item into the menu",children:qe.jsx(Nae,{})}):qe.jsx("span",{children:m.title})})}),qe.jsx(nb,{}),qe.jsx(nb,{children:"Background Plugins"}),qe.jsx(s$,{id:"bg-plugin-select",mode:"multiple",allowClear:!0,style:{width:"100%"},placeholder:"Subscribe to...",onChange:i,value:o,defaultValue:o,maxTagCount:"responsive",filterOption:(m,v)=>v!=null&&v.children?v.children.props.children.toString().toLowerCase().includes(m.toLowerCase()):!1,children:e?e.filter(m=>m.isBackgroundPlugin).map(m=>qe.jsx(s$.Option,{value:m.id,children:qe.jsx(th,{title:tI(m.version),children:m.libraryName})},m.id)):[]})]}):qe.jsx(OL,{})})},uce=()=>Mh.call("cloud_base_app.service_packages.services.pilot_station_api.get_subscribed_plugins"),dce=()=>{if(typeof window<"u"){const e=new CustomEvent("loading",{detail:{show:!0}});window.dispatchEvent(e)}},nI=()=>{if(typeof window<"u"){const e=new CustomEvent("loading",{detail:{show:!1}});window.dispatchEvent(e)}},fce="_link_button_1q9i3_1",hce={link_button:fce};function JD(e,t,n,r,o){const i=e.ownerDocument,a=e.getBoundingClientRect(),l=i.createElement("div");l.className="popup_menu_container",t{p!==void 0&&o(p),e.removeChild(l),g.unmount(),l.removeEventListener("mousedown",d),i.removeEventListener("mousedown",h)},d=p=>{p.stopPropagation()},h=()=>{c(void 0)};l.addEventListener("mousedown",d),i.addEventListener("mousedown",h);const g=y2(l);g.render(qe.jsx(gce,{currentDocument:i,onHide:c,items:r}))}const gce=e=>{const{items:t,onHide:n}=e,r=(i,a)=>{n(i),a.stopPropagation()},o=t.map(i=>qe.jsx("div",{className:"popup_menu_item",onClick:a=>r(i,a),children:i},i));return qe.jsx("div",{className:"popup_menu",children:o})},sp={model:{global:{tabEnableFloat:!0,tabSetMinWidth:10,tabSetMinHeight:10,tabEnableDrag:!0,borderMinSize:10,tabSetEnableMaximize:!1},layout:{type:"row",children:[]}},backgroundPlugins:[],name:"",pageStyle:""},pce=({layoutMode:e,plugins:t,onCreate:n,onUpdate:r,onDelete:o,pages:i})=>{const[a,l]=u.useState(!1),[c,d]=u.useState(sp),[h,g]=u.useState(null);let p=!1;const[m,v]=u.useState(""),[y]=ki.useForm(),w=()=>{l(!a)},[C,b]=u.useState([]),S=u.useRef(null),E=I=>{const P=t==null?void 0:t.find(L=>L.id===I);S.current.addTabWithDragAndDrop(`Add ${P==null?void 0:P.libraryName}@${P==null?void 0:P.version}
(Drag and drop this box to location)`,{enableClose:!0,enableFloat:!1,enableDrag:!0,component:"plugin",enableRename:!1,id:P==null?void 0:P.id,name:`${P==null?void 0:P.libraryName}`,config:{description:P==null?void 0:P.description,version:P==null?void 0:P.version},altName:`${P==null?void 0:P.libraryName}@${P==null?void 0:P.version}`,helpText:`${P==null?void 0:P.libraryName}@${P==null?void 0:P.version}`},()=>{b([...C,I])})};u.useEffect(()=>{c&&(y.setFieldValue("name",c.name),y.setFieldValue("pageStyle",c.pageStyle||""))},[c]);const O=I=>{if(!t)return;const P=t.filter(D=>I.includes(D.id)),L=c;L.backgroundPlugins=P.map(D=>({id:D.id,name:D.libraryName})),d({...L})},x=u.useCallback(I=>{const P=I.getComponent(),L=parseInt(I.getId());return P==="plugin"&&(C.includes(L)||b([...C,L])),qe.jsx("div",{id:P,children:I.getName()})},[C,c]),T=(I,P)=>{p||(P.preventDefault(),P.stopPropagation(),I instanceof da.TabNode&&JD(S.current.getRootDiv(),P.clientX,P.clientY,["Remove"],()=>{const L=da.Actions.deleteTab(I.getId());S.current.doAction(L),p=!1}),p=!0)},R=()=>qe.jsxs(qe.Fragment,{children:[qe.jsx(da.Layout,{classNameMapper:I=>I.includes("flexlayout__layout")?`${I} flexlayout__layout_newPage`:`${I}`,onContextMenu:T,onModelChange:I=>{let P=c;P={...P,model:I.toJson()},d({...P})},onAction:I=>(I.type===da.Actions.DELETE_TAB&&b([...C.filter(P=>P!==parseInt(I.data.node))]),I),ref:S,factory:x,model:da.Model.fromJson(c.model)}),qe.jsx("style",{children:m})]}),N=u.useMemo(()=>qe.jsx(ki,{id:"create-edit-page-form",layout:"vertical",labelCol:{span:6,style:{textAlign:"left"}},wrapperCol:{span:16},initialValues:{name:c==null?void 0:c.name,pageStyle:(c==null?void 0:c.pageStyle)||".flexlayout__layout_newPage {background-color: trasparent;}"},form:y,onFinish:I=>{h!==null?r(h,{...c,name:I.name,pageStyle:I.pageStyle}):n({...c,name:I.name,pageStyle:I.pageStyle}),w(),d(sp)},children:qe.jsxs(One,{title:h===null?"Create New Page":"Update Page",open:a,onOk:()=>y.submit(),onCancel:()=>{d(sp),w()},forceRender:!1,destroyOnClose:!0,style:{top:0,left:0,bottom:0,right:0,maxWidth:"100%",padding:0},bodyStyle:{height:"calc(100vh - 130px)"},width:"100%",okButtonProps:{disabled:!1},children:[qe.jsxs(Jf,{style:{marginTop:12},justify:"space-between",children:[qe.jsx(di,{span:8,children:qe.jsx(ki.Item,{name:"name",label:"Page Name",rules:[{required:!0,message:"Please type a name!"}],children:qe.jsx(uL,{id:"page-name-input",onChange:I=>{y.setFieldValue("name",I.target.value),d({...c,name:I.target.value})}})})}),qe.jsx(di,{span:8,children:qe.jsxs(ki.Item,{name:"pageStyle",label:"Page Style",children:[qe.jsx(Kw,{id:"page-style-input",rows:2,onChange:I=>{v(I.target.value),y.setFieldValue("pageStyle",I.target.value),d({...c,pageStyle:I.target.value})},defaultValue:(c==null?void 0:c.pageStyle)||".flexlayout__layout_newPage {background-color: trasparent;}"}),qe.jsx(zL.Link,{id:"css-classes-link",href:"https://github.com/caplin/FlexLayout/blob/master/style/gray.scss",target:"_blank",className:hce.link_button,children:"Click to see all the CSS class names that can be updated"})]})}),qe.jsx(di,{span:2,children:h===null?null:qe.jsx(hi,{id:"delete-button",onClick:()=>{o(h),w()},disabled:!1,danger:!0,block:!0,type:"primary",children:"Delete"})})]}),qe.jsxs(Jf,{gutter:[16,16],children:[qe.jsx(di,{span:6,children:qe.jsx(ZD,{plugins:(t==null?void 0:t.filter(I=>typeof JSON.parse(I.config).isUseMenu>"u"||typeof JSON.parse(I.config).isUseMenu<"u"&&!JSON.parse(I.config).isUseMenu))||[],selectedKeys:C,selectedBgPlugins:c==null?void 0:c.backgroundPlugins.map(I=>I.id),onSelect:I=>{E(I)},onChange:I=>{O(I)},treeSelectHeight:150})}),G1(e)?qe.jsx(di,{span:18,children:qe.jsx(UL,{preSelectedDevice:"nexus5",preSelectedColor:"black",allowedDevices:["nexus5"],showMenu:!1,preSelectedLandscape:!0,children:R()})}):qe.jsx(di,{span:18,style:{height:"calc(100vh - 250px)",border:"1px solid #e2e2e2"},children:R()})]})]})}),[c,C,a]);return qe.jsxs(qe.Fragment,{children:[qe.jsx(FA,{mode:"horizontal",style:{lineHeight:"50px",borderBottom:"none"},selectedKeys:[],items:[{label:"Pages",key:"pages",children:i.map((I,P)=>{const L=JSON.parse(I);return{key:P,label:L.name,onClick:()=>{d(L),v(L.pageStyle||""),y.setFieldValue("name",L.name),g(P),w()}}})}]}),qe.jsx(th,{placement:"topLeft",title:"Create New Page",children:qe.jsx(hi,{id:"create-page-button",style:{position:"absolute",right:"8px"},onClick:()=>{w(),d(sp),y.setFieldValue("name",""),y.setFieldValue("pageStyle",""),v(""),b([]),g(null)},disabled:!1,children:"Create Page"})}),N]})};var eB=(e=>(e[e.Unpublished=1]="Unpublished",e[e.Published=2]="Published",e[e.Hidden=3]="Hidden",e))(eB||{});const{Text:mce}=zL,vce=()=>{const[e,t]=u.useState(null),[n,r]=u.useState(null),[o,i]=u.useState(!1);let a=!1;const l=!1,[c,d]=u.useState([]),[h,g]=u.useState(Dn.pilotDesktopLayout),p=u.useRef(null),m=async()=>{await Yae(h).then(async B=>{t(JSON.parse(B.message))})};u.useEffect(()=>{m(),T()},[h]),u.useEffect(()=>{e&&d([...cce(e)])},[e]);const v=B=>{const M=e;M.pages=[...M.pages,B],t({...M}),i(!0)},y=(B,M)=>{const A=e;A.pages[B]=M,t({...A}),i(!0)},w=B=>{const M=e;M.pages.splice(B,1),t({...M}),i(!0)},C=u.useCallback(B=>{const M=B.getComponent();switch(M){case"plugin":return qe.jsx("div",{children:"Plugin"});default:return qe.jsx("div",{id:M,children:B.getName()})}},[h,c,n]),b=B=>{var A;const M=n==null?void 0:n.find(U=>U.id===B);(A=p==null?void 0:p.current)==null||A.addTabWithDragAndDrop(`Add ${M==null?void 0:M.libraryName}@${M==null?void 0:M.version}
(Drag to location)`,{enableClose:!0,enableFloat:!1,enableDrag:!0,component:"plugin",enableRename:!1,id:M==null?void 0:M.id,name:`${M==null?void 0:M.libraryName}`,config:{description:M==null?void 0:M.description,version:M==null?void 0:M.version},altName:`${M==null?void 0:M.libraryName}@${M==null?void 0:M.version}`,helpText:`${M==null?void 0:M.libraryName}@${M==null?void 0:M.version}`},()=>{d([...c,B]),i(!0)})},S=B=>{o?alert("Please save your layout first"):(g(B),d([]))},E={items:[{key:"0",label:"Pilot",disabled:l,onClick:()=>{S(Dn.pilotDesktopLayout)}},{key:"2",label:"Observer",disabled:l,onClick:()=>{S(Dn.observerDesktopLayout)}},{key:"4",label:"Test",onClick:()=>{S(Dn.draftDesktopLayout)}}],selectable:!0,selectedKeys:[h.toString()]},O={selectable:!0,selectedKeys:[h.toString()],items:[{key:"1",label:"Pilot",disabled:l,onClick:()=>{S(Dn.pilotMobileLayout)}},{key:"3",label:"Observer",disabled:l,onClick:()=>{S(Dn.observerMobileLayout)}},{key:"5",label:"Test",onClick:()=>{S(Dn.draftMobileLayout)}}]},x={selectable:!1,items:[{key:"1",label:"Desktop",children:[{label:"Pilot",key:"pilot",disabled:h===Dn.pilotDesktopLayout||l,onClick:()=>{W(Dn.pilotDesktopLayout)}},{label:"Observer",key:"observer",disabled:h===Dn.observerDesktopLayout||l,onClick:()=>{W(Dn.observerDesktopLayout)}},{label:"Test",key:"test",disabled:h===Dn.draftDesktopLayout,onClick:()=>{W(Dn.draftDesktopLayout)}}]},{key:"3",label:"Mobile",children:[{label:"Pilot",key:"pilot",disabled:h===Dn.pilotMobileLayout||l,onClick:()=>{W(Dn.pilotMobileLayout)}},{label:"Observer",key:"observer",disabled:h===Dn.observerMobileLayout||l,onClick:()=>{W(Dn.observerMobileLayout)}},{label:"Test",key:"test",disabled:h===Dn.draftMobileLayout,onClick:()=>{W(Dn.draftMobileLayout)}}]}]},T=async()=>{await uce().then(B=>{r(B.message)}).catch(()=>{r([])})},R=u.useCallback(()=>n?h===Dn.draftDesktopLayout||h===Dn.draftMobileLayout?n:n.filter(B=>B.status!==eB.Unpublished):null,[h,n]),N=(B,M)=>{a||(M.preventDefault(),M.stopPropagation(),B instanceof da.TabNode&&JD(p.current.getRootDiv(),M.clientX,M.clientY,["Remove"],()=>{const A=da.Actions.deleteTab(B.getId());p.current.doAction(A),a=!1}),a=!0)},I=u.useMemo(()=>e?qe.jsxs(qe.Fragment,{children:[qe.jsxs(gne.Header,{className:"dockLayoutHeader",children:[qe.jsx("div",{children:qe.jsx(mce,{className:"logo",children:G1(h)?"GCS":"GCS Pilot Station"})}),qe.jsx(pce,{plugins:R(),layoutMode:h,onCreate:v,onDelete:w,onUpdate:y,pages:e.pages.map(B=>JSON.stringify(B))})]}),qe.jsx(da.Layout,{classNameMapper:B=>`${B}`,onContextMenu:N,onModelChange:B=>{const M={...e,model:B.toJson()};t(M)},ref:p,model:da.Model.fromJson(e.model),factory:C,onAction:B=>(B.type===da.Actions.DELETE_TAB&&d([...c.filter(M=>M!==B.data.node)]),i(!0),B)})]}):qe.jsx(OL,{size:"large"}),[e,c,R]),P=()=>{Zae(JSON.stringify(e),h).then(()=>{Lp.success({message:"The layout is updated."}),i(!1)})},L=B=>{const M=e,A=(n??[]).filter(U=>B.includes(U.id));M.backgroundPlugins=A.map(U=>({...U,name:U.libraryName,config:JSON.stringify({description:U.description,version:U.version})})),t({...M}),i(!0)},D=async()=>{dce(),await qae(h).then(B=>{t(JSON.parse(B.message)),i(!1),Lp.success({message:"The layout is set to its default state."}),nI(),d([])})},z=()=>e?e.backgroundPlugins.map(M=>M.id):[],W=B=>{Qae(h,B).then(M=>{t(JSON.parse(M.message)),i(!1),Lp.success({message:"Layout cloned successfully"}),nI(),d([])})};return qe.jsxs("div",{id:"layout-management",style:{marginBottom:12,position:"relative"},className:"flexLayoutContainer",children:[qe.jsxs(Jf,{gutter:[16,0],children:[qe.jsxs(di,{sm:{offset:4,span:2},md:{offset:4,span:4},lg:{offset:4,span:4},xl:{offset:4,span:3},children:[qe.jsx(lb,{menu:E,placement:"bottomLeft",arrow:!1,trigger:["click"],children:qe.jsx(th,{placement:"topLeft",title:"Desktop",children:qe.jsx(hi,{id:"desktop-button",style:{marginRight:"4px"},type:Dn[h].includes("Desktop")?"primary":"dashed",icon:qe.jsx(Dae,{}),size:"middle"})})}),qe.jsx(lb,{menu:O,placement:"bottomLeft",arrow:!1,trigger:["click"],children:qe.jsx(th,{placement:"topLeft",title:"Mobile",children:qe.jsx(hi,{id:"mobile-button",type:Dn[h].includes("Mobile")?"primary":"dashed",icon:qe.jsx(jae,{}),size:"middle"})})})]}),qe.jsxs(di,{sm:{offset:8,span:4},md:{offset:6,span:10},lg:{offset:6,span:10},xl:{offset:6,span:11},className:"layoutButtonsContainer",children:[qe.jsx(lb,{menu:x,placement:"bottomLeft",disabled:!1,arrow:!1,trigger:["hover"],children:qe.jsx(hi,{id:"clone-button",size:"middle",children:"Clone into"})}),qe.jsx(hi,{id:"reset-button",size:"middle",onClick:D,disabled:!1,children:"Reset"}),qe.jsx(hi,{id:"save-button",type:"primary",size:"middle",disabled:!1,onClick:P,children:"Save"})]})]}),qe.jsxs(Jf,{gutter:[8,0],style:{height:"calc(100% - 52px)",marginTop:8},children:[qe.jsx(di,{span:4,children:qe.jsx(ZD,{plugins:R(),selectedKeys:c,onSelect:B=>{b(B)},onChange:B=>{L(B)},selectedBgPlugins:z()})}),G1(h)?qe.jsx(di,{span:20,style:{height:"calc(100% - 52px)",display:"flex",alignItems:"center",justifyContent:"center"},children:qe.jsx(UL,{preSelectedDevice:"nexus5",preSelectedColor:"black",allowedDevices:["nexus5"],showMenu:!1,preSelectedLandscape:!0,children:I})}):qe.jsx(di,{span:20,children:I})]})]})};function yce(){return qe.jsx(vce,{})}const bce={theme:{token:{colorPrimary:"#1890FF",borderRadius:2}}};Bb.createRoot(document.getElementById("root")).render(qe.jsx(dh,{...bce,children:qe.jsx(yce,{})}));