var A5=Object.create;var kp=Object.defineProperty;var yR=Object.getOwnPropertyDescriptor;var M5=Object.getOwnPropertyNames;var F5=Object.getPrototypeOf,L5=Object.prototype.hasOwnProperty;var U0=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Do=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),q0=(e,t)=>{for(var r in t)kp(e,r,{get:t[r],enumerable:!0})},z5=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of M5(t))!L5.call(e,o)&&o!==r&&kp(e,o,{get:()=>t[o],enumerable:!(n=yR(t,o))||n.enumerable});return e};var E=(e,t,r)=>(r=e!=null?A5(F5(e)):{},z5(t||!e||!e.__esModule?kp(r,"default",{value:e,enumerable:!0}):r,e));var Qt=(e,t,r,n)=>{for(var o=n>1?void 0:n?yR(t,r):t,i=e.length-1,a;i>=0;i--)(a=e[i])&&(o=(n?a(t,r,o):a(o))||o);return n&&o&&kp(t,r,o),o};var RO=Do(Ct=>{"use strict";var bf=Symbol.for("react.element"),E4=Symbol.for("react.portal"),R4=Symbol.for("react.fragment"),O4=Symbol.for("react.strict_mode"),_4=Symbol.for("react.profiler"),P4=Symbol.for("react.provider"),T4=Symbol.for("react.context"),N4=Symbol.for("react.forward_ref"),I4=Symbol.for("react.suspense"),D4=Symbol.for("react.memo"),$4=Symbol.for("react.lazy"),mO=Symbol.iterator;function k4(e){return e===null||typeof e!="object"?null:(e=mO&&e[mO]||e["@@iterator"],typeof e=="function"?e:null)}var vO={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},yO=Object.assign,xO={};function yc(e,t,r){this.props=e,this.context=t,this.refs=xO,this.updater=r||vO}yc.prototype.isReactComponent={};yc.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")};yc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function bO(){}bO.prototype=yc.prototype;function Rx(e,t,r){this.props=e,this.context=t,this.refs=xO,this.updater=r||vO}var Ox=Rx.prototype=new bO;Ox.constructor=Rx;yO(Ox,yc.prototype);Ox.isPureReactComponent=!0;var gO=Array.isArray,SO=Object.prototype.hasOwnProperty,_x={current:null},CO={key:!0,ref:!0,__self:!0,__source:!0};function wO(e,t,r){var n,o={},i=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)SO.call(t,n)&&!CO.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(s===1)o.children=r;else if(1{"use strict";OO.exports=RO()});var MO=Do(Zt=>{"use strict";function Dx(e,t){var r=e.length;e.push(t);e:for(;0>>1,o=e[n];if(0>>1;nSm(s,r))lSm(c,s)?(e[n]=c,e[l]=r,n=l):(e[n]=s,e[a]=r,n=a);else if(lSm(c,r))e[n]=c,e[l]=r,n=l;else break e}}return t}function Sm(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(_O=performance,Zt.unstable_now=function(){return _O.now()}):(Tx=Date,PO=Tx.now(),Zt.unstable_now=function(){return Tx.now()-PO});var _O,Tx,PO,Fi=[],Ja=[],z4=1,Ao=null,En=3,Em=!1,sl=!1,Cf=!1,IO=typeof setTimeout=="function"?setTimeout:null,DO=typeof clearTimeout=="function"?clearTimeout:null,TO=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function $x(e){for(var t=ui(Ja);t!==null;){if(t.callback===null)wm(Ja);else if(t.startTime<=e)wm(Ja),t.sortIndex=t.expirationTime,Dx(Fi,t);else break;t=ui(Ja)}}function kx(e){if(Cf=!1,$x(e),!sl)if(ui(Fi)!==null)sl=!0,Mx(Ax);else{var t=ui(Ja);t!==null&&Fx(kx,t.startTime-e)}}function Ax(e,t){sl=!1,Cf&&(Cf=!1,DO(wf),wf=-1),Em=!0;var r=En;try{for($x(t),Ao=ui(Fi);Ao!==null&&(!(Ao.expirationTime>t)||e&&!AO());){var n=Ao.callback;if(typeof n=="function"){Ao.callback=null,En=Ao.priorityLevel;var o=n(Ao.expirationTime<=t);t=Zt.unstable_now(),typeof o=="function"?Ao.callback=o:Ao===ui(Fi)&&wm(Fi),$x(t)}else wm(Fi);Ao=ui(Fi)}if(Ao!==null)var i=!0;else{var a=ui(Ja);a!==null&&Fx(kx,a.startTime-t),i=!1}return i}finally{Ao=null,En=r,Em=!1}}var Rm=!1,Cm=null,wf=-1,$O=5,kO=-1;function AO(){return!(Zt.unstable_now()-kO<$O)}function Nx(){if(Cm!==null){var e=Zt.unstable_now();kO=e;var t=!0;try{t=Cm(!0,e)}finally{t?Sf():(Rm=!1,Cm=null)}}else Rm=!1}var Sf;typeof TO=="function"?Sf=function(){TO(Nx)}:typeof MessageChannel<"u"?(Ix=new MessageChannel,NO=Ix.port2,Ix.port1.onmessage=Nx,Sf=function(){NO.postMessage(null)}):Sf=function(){IO(Nx,0)};var Ix,NO;function Mx(e){Cm=e,Rm||(Rm=!0,Sf())}function Fx(e,t){wf=IO(function(){e(Zt.unstable_now())},t)}Zt.unstable_IdlePriority=5;Zt.unstable_ImmediatePriority=1;Zt.unstable_LowPriority=4;Zt.unstable_NormalPriority=3;Zt.unstable_Profiling=null;Zt.unstable_UserBlockingPriority=2;Zt.unstable_cancelCallback=function(e){e.callback=null};Zt.unstable_continueExecution=function(){sl||Em||(sl=!0,Mx(Ax))};Zt.unstable_forceFrameRate=function(e){0>e||125n?(e.sortIndex=r,Dx(Ja,e),ui(Fi)===null&&e===ui(Ja)&&(Cf?(DO(wf),wf=-1):Cf=!0,Fx(kx,r-n))):(e.sortIndex=o,Dx(Fi,e),sl||Em||(sl=!0,Mx(Ax))),e};Zt.unstable_shouldYield=AO;Zt.unstable_wrapCallback=function(e){var t=En;return function(){var r=En;En=t;try{return e.apply(this,arguments)}finally{En=r}}}});var LO=Do((OJ,FO)=>{"use strict";FO.exports=MO()});var jT=Do(bo=>{"use strict";var W4=D(),yo=LO();function ge(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ab=Object.prototype.hasOwnProperty,B4=/^[: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]*$/,zO={},WO={};function j4(e){return ab.call(WO,e)?!0:ab.call(zO,e)?!1:B4.test(e)?WO[e]=!0:(zO[e]=!0,!1)}function V4(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function H4(e,t,r,n){if(t===null||typeof t>"u"||V4(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.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 Un(e,t,r,n,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var vn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){vn[e]=new Un(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];vn[t]=new Un(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){vn[e]=new Un(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){vn[e]=new Un(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){vn[e]=new Un(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){vn[e]=new Un(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){vn[e]=new Un(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){vn[e]=new Un(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){vn[e]=new Un(e,5,!1,e.toLowerCase(),null,!1,!1)});var Jb=/[\-:]([a-z])/g;function Zb(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(Jb,Zb);vn[t]=new Un(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(Jb,Zb);vn[t]=new Un(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(Jb,Zb);vn[t]=new Un(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){vn[e]=new Un(e,1,!1,e.toLowerCase(),null,!1,!1)});vn.xlinkHref=new Un("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){vn[e]=new Un(e,1,!1,e.toLowerCase(),null,!0,!0)});function eS(e,t,r,n){var o=vn.hasOwnProperty(t)?vn[t]:null;(o!==null?o.type!==0:n||!(2s||o[a]!==i[s]){var l=` `+o[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{zx=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Df(e):""}function U4(e){switch(e.tag){case 5:return Df(e.type);case 16:return Df("Lazy");case 13:return Df("Suspense");case 19:return Df("SuspenseList");case 0:case 2:case 15:return e=Wx(e.type,!1),e;case 11:return e=Wx(e.type.render,!1),e;case 1:return e=Wx(e.type,!0),e;default:return""}}function ub(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 Cc:return"Fragment";case Sc:return"Portal";case sb:return"Profiler";case tS:return"StrictMode";case lb:return"Suspense";case cb:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case G_:return(e.displayName||"Context")+".Consumer";case q_:return(e._context.displayName||"Context")+".Provider";case rS:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case nS:return t=e.displayName||null,t!==null?t:ub(e.type)||"Memo";case es:t=e._payload,e=e._init;try{return ub(e(t))}catch{}}return null}function q4(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 ub(t);case 8:return t===tS?"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 ms(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function X_(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function G4(e){var t=X_(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function _m(e){e._valueTracker||(e._valueTracker=G4(e))}function Y_(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=X_(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function tg(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 fb(e,t){var r=t.checked;return Er({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function jO(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=ms(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Q_(e,t){t=t.checked,t!=null&&eS(e,"checked",t,!1)}function db(e,t){Q_(e,t);var r=ms(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?pb(e,t.type,r):t.hasOwnProperty("defaultValue")&&pb(e,t.type,ms(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function VO(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function pb(e,t,r){(t!=="number"||tg(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var $f=Array.isArray;function $c(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Pm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function qf(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Mf={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},K4=["Webkit","ms","Moz","O"];Object.keys(Mf).forEach(function(e){K4.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Mf[t]=Mf[e]})});function tP(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Mf.hasOwnProperty(e)&&Mf[e]?(""+t).trim():t+"px"}function rP(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=tP(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var X4=Er({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 hb(e,t){if(t){if(X4[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 vb(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 yb=null;function oS(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var xb=null,kc=null,Ac=null;function qO(e){if(e=ud(e)){if(typeof xb!="function")throw Error(ge(280));var t=e.stateNode;t&&(t=Tg(t),xb(e.stateNode,e.type,t))}}function nP(e){kc?Ac?Ac.push(e):Ac=[e]:kc=e}function oP(){if(kc){var e=kc,t=Ac;if(Ac=kc=null,qO(e),t)for(e=0;e>>=0,e===0?32:31-(a6(e)/s6|0)|0}var Tm=64,Nm=4194304;function kf(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 ig(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var s=a&~o;s!==0?n=kf(s):(i&=a,i!==0&&(n=kf(i)))}else a=r&~o,a!==0?n=kf(a):i!==0&&(n=kf(i));if(n===0)return 0;if(t!==0&&t!==n&&(t&o)===0&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if((n&4)!==0&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function ld(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-gi(t),e[t]=r}function f6(e,t){var r=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 n=e.eventTimes;for(e=e.expirationTimes;0=Lf),t_=" ",r_=!1;function EP(e,t){switch(e){case"keyup":return z6.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function RP(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wc=!1;function B6(e,t){switch(e){case"compositionend":return RP(t);case"keypress":return t.which!==32?null:(r_=!0,t_);case"textInput":return e=t.data,e===t_&&r_?null:e;default:return null}}function j6(e,t){if(wc)return e==="compositionend"||!dS&&EP(e,t)?(e=CP(),qm=cS=os=null,wc=!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:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=i_(r)}}function TP(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?TP(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function NP(){for(var e=window,t=tg();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=tg(e.document)}return t}function pS(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 Q6(e){var t=NP(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&TP(r.ownerDocument.documentElement,r)){if(n!==null&&pS(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=a_(r,i);var a=a_(r,n);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>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Ec=null,Rb=null,Wf=null,Ob=!1;function s_(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Ob||Ec==null||Ec!==tg(n)||(n=Ec,"selectionStart"in n&&pS(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Wf&&Jf(Wf,n)||(Wf=n,n=lg(Rb,"onSelect"),0_c||(e.current=Db[_c],Db[_c]=null,_c--)}function er(e,t){_c++,Db[_c]=e.current,e.current=t}var gs={},Pn=vs(gs),Zn=vs(!1),gl=gs;function Wc(e,t){var r=e.type.contextTypes;if(!r)return gs;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function eo(e){return e=e.childContextTypes,e!=null}function ug(){ir(Zn),ir(Pn)}function h_(e,t,r){if(Pn.current!==gs)throw Error(ge(168));er(Pn,t),er(Zn,r)}function zP(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(ge(108,q4(e)||"Unknown",o));return Er({},r,n)}function fg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||gs,gl=Pn.current,er(Pn,e),er(Zn,Zn.current),!0}function v_(e,t,r){var n=e.stateNode;if(!n)throw Error(ge(169));r?(e=zP(e,t,gl),n.__reactInternalMemoizedMergedChildContext=e,ir(Zn),ir(Pn),er(Pn,e)):ir(Zn),er(Zn,r)}var fa=null,Ng=!1,Qx=!1;function WP(e){fa===null?fa=[e]:fa.push(e)}function sz(e){Ng=!0,WP(e)}function ys(){if(!Qx&&fa!==null){Qx=!0;var e=0,t=jt;try{var r=fa;for(jt=1;e>=a,o-=a,da=1<<32-gi(t)+o|r<R?(P=C,C=null):P=C.sibling;var O=p(m,C,x[R],b);if(O===null){C===null&&(C=P);break}e&&C&&O.alternate===null&&t(m,C),d=i(O,d,R),w===null?S=O:w.sibling=O,w=O,C=P}if(R===x.length)return r(m,C),yr&&ll(m,R),S;if(C===null){for(;RR?(P=C,C=null):P=C.sibling;var A=p(m,C,O.value,b);if(A===null){C===null&&(C=P);break}e&&C&&A.alternate===null&&t(m,C),d=i(A,d,R),w===null?S=A:w.sibling=A,w=A,C=P}if(O.done)return r(m,C),yr&&ll(m,R),S;if(C===null){for(;!O.done;R++,O=x.next())O=f(m,O.value,b),O!==null&&(d=i(O,d,R),w===null?S=O:w.sibling=O,w=O);return yr&&ll(m,R),S}for(C=n(m,C);!O.done;R++,O=x.next())O=g(C,m,R,O.value,b),O!==null&&(e&&O.alternate!==null&&C.delete(O.key===null?R:O.key),d=i(O,d,R),w===null?S=O:w.sibling=O,w=O);return e&&C.forEach(function(M){return t(m,M)}),yr&&ll(m,R),S}function y(m,d,x,b){if(typeof x=="object"&&x!==null&&x.type===Cc&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Om:e:{for(var S=x.key,w=d;w!==null;){if(w.key===S){if(S=x.type,S===Cc){if(w.tag===7){r(m,w.sibling),d=o(w,x.props.children),d.return=m,m=d;break e}}else if(w.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===es&&b_(S)===w.type){r(m,w.sibling),d=o(w,x.props),d.ref=Pf(m,w,x),d.return=m,m=d;break e}r(m,w);break}else t(m,w);w=w.sibling}x.type===Cc?(d=ml(x.props.children,m.mode,b,x.key),d.return=m,m=d):(b=eg(x.type,x.key,x.props,null,m.mode,b),b.ref=Pf(m,d,x),b.return=m,m=b)}return a(m);case Sc:e:{for(w=x.key;d!==null;){if(d.key===w)if(d.tag===4&&d.stateNode.containerInfo===x.containerInfo&&d.stateNode.implementation===x.implementation){r(m,d.sibling),d=o(d,x.children||[]),d.return=m,m=d;break e}else{r(m,d);break}else t(m,d);d=d.sibling}d=ib(x,m.mode,b),d.return=m,m=d}return a(m);case es:return w=x._init,y(m,d,w(x._payload),b)}if($f(x))return h(m,d,x,b);if(Ef(x))return v(m,d,x,b);Bm(m,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,d!==null&&d.tag===6?(r(m,d.sibling),d=o(d,x),d.return=m,m=d):(r(m,d),d=ob(x,m.mode,b),d.return=m,m=d),a(m)):r(m,d)}return y}var jc=HP(!0),UP=HP(!1),mg=vs(null),gg=null,Nc=null,vS=null;function yS(){vS=Nc=gg=null}function xS(e){var t=mg.current;ir(mg),e._currentValue=t}function Ab(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Fc(e,t){gg=e,vS=Nc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Jn=!0),e.firstContext=null)}function Wo(e){var t=e._currentValue;if(vS!==e)if(e={context:e,memoizedValue:t,next:null},Nc===null){if(gg===null)throw Error(ge(308));Nc=e,gg.dependencies={lanes:0,firstContext:e}}else Nc=Nc.next=e;return t}var fl=null;function bS(e){fl===null?fl=[e]:fl.push(e)}function qP(e,t,r,n){var o=t.interleaved;return o===null?(r.next=r,bS(t)):(r.next=o.next,o.next=r),t.interleaved=r,va(e,n)}function va(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var ts=!1;function SS(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function GP(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ma(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function us(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,($t&2)!==0){var o=n.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),n.pending=t,va(e,r)}return o=n.interleaved,o===null?(t.next=t,bS(n)):(t.next=o.next,o.next=t),n.interleaved=t,va(e,r)}function Km(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,aS(e,r)}}function S_(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var o=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?o=i=a:i=i.next=a,r=r.next}while(r!==null);i===null?o=i=t:i=i.next=t}else o=i=t;r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function hg(e,t,r,n){var o=e.updateQueue;ts=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?i=c:a.next=c,a=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==a&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(i!==null){var f=o.baseState;a=0,u=c=l=null,s=i;do{var p=s.lane,g=s.eventTime;if((n&p)===p){u!==null&&(u=u.next={eventTime:g,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,v=s;switch(p=t,g=r,v.tag){case 1:if(h=v.payload,typeof h=="function"){f=h.call(g,f,p);break e}f=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=v.payload,p=typeof h=="function"?h.call(g,f,p):h,p==null)break e;f=Er({},f,p);break e;case 2:ts=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[s]:p.push(s))}else g={eventTime:g,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=g,l=f):u=u.next=g,a|=p;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;p=s,s=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(u===null&&(l=f),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);yl|=a,e.lanes=a,e.memoizedState=f}}function C_(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=Zx.transition;Zx.transition={};try{e(!1),t()}finally{jt=r,Zx.transition=n}}function uT(){return Bo().memoizedState}function fz(e,t,r){var n=ds(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},fT(e))dT(t,r);else if(r=qP(e,t,r,n),r!==null){var o=Hn();hi(r,e,n,o),pT(r,t,n)}}function dz(e,t,r){var n=ds(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(fT(e))dT(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,s=i(a,r);if(o.hasEagerState=!0,o.eagerState=s,vi(s,a)){var l=t.interleaved;l===null?(o.next=o,bS(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}r=qP(e,t,o,n),r!==null&&(o=Hn(),hi(r,e,n,o),pT(r,t,n))}}function fT(e){var t=e.alternate;return e===wr||t!==null&&t===wr}function dT(e,t){Bf=yg=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function pT(e,t,r){if((r&4194240)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,aS(e,r)}}var xg={readContext:Wo,useCallback:Rn,useContext:Rn,useEffect:Rn,useImperativeHandle:Rn,useInsertionEffect:Rn,useLayoutEffect:Rn,useMemo:Rn,useReducer:Rn,useRef:Rn,useState:Rn,useDebugValue:Rn,useDeferredValue:Rn,useTransition:Rn,useMutableSource:Rn,useSyncExternalStore:Rn,useId:Rn,unstable_isNewReconciler:!1},pz={readContext:Wo,useCallback:function(e,t){return zi().memoizedState=[e,t===void 0?null:t],e},useContext:Wo,useEffect:E_,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Ym(4194308,4,iT.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Ym(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ym(4,2,e,t)},useMemo:function(e,t){var r=zi();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=zi();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=fz.bind(null,wr,e),[n.memoizedState,e]},useRef:function(e){var t=zi();return e={current:e},t.memoizedState=e},useState:w_,useDebugValue:TS,useDeferredValue:function(e){return zi().memoizedState=e},useTransition:function(){var e=w_(!1),t=e[0];return e=uz.bind(null,e[1]),zi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=wr,o=zi();if(yr){if(r===void 0)throw Error(ge(407));r=r()}else{if(r=t(),ln===null)throw Error(ge(349));(vl&30)!==0||QP(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,E_(ZP.bind(null,n,i,e),[e]),n.flags|=2048,ad(9,JP.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=zi(),t=ln.identifierPrefix;if(yr){var r=pa,n=da;r=(n&~(1<<32-gi(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=od++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[Wi]=t,e[td]=n,wT(e,t,!1,!1),t.stateNode=e;e:{switch(a=vb(r,n),r){case"dialog":or("cancel",e),or("close",e),o=n;break;case"iframe":case"object":case"embed":or("load",e),o=n;break;case"video":case"audio":for(o=0;oUc&&(t.flags|=128,n=!0,Tf(i,!1),t.lanes=4194304)}else{if(!n)if(e=vg(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Tf(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!yr)return On(t),null}else 2*Lr()-i.renderingStartTime>Uc&&r!==1073741824&&(t.flags|=128,n=!0,Tf(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Lr(),t.sibling=null,r=Cr.current,er(Cr,n?r&1|2:r&1),t):(On(t),null);case 22:case 23:return AS(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(go&1073741824)!==0&&(On(t),t.subtreeFlags&6&&(t.flags|=8192)):On(t),null;case 24:return null;case 25:return null}throw Error(ge(156,t.tag))}function Sz(e,t){switch(gS(t),t.tag){case 1:return eo(t.type)&&ug(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vc(),ir(Zn),ir(Pn),ES(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return wS(t),null;case 13:if(ir(Cr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ge(340));Bc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ir(Cr),null;case 4:return Vc(),null;case 10:return xS(t.type._context),null;case 22:case 23:return AS(),null;case 24:return null;default:return null}}var Vm=!1,_n=!1,Cz=typeof WeakSet=="function"?WeakSet:Set,qe=null;function Ic(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Ir(e,t,n)}else r.current=null}function Hb(e,t,r){try{r()}catch(n){Ir(e,t,n)}}var A_=!1;function wz(e,t){if(_b=ag,e=NP(),pS(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,s=-1,l=-1,c=0,u=0,f=e,p=null;t:for(;;){for(var g;f!==r||o!==0&&f.nodeType!==3||(s=a+o),f!==i||n!==0&&f.nodeType!==3||(l=a+n),f.nodeType===3&&(a+=f.nodeValue.length),(g=f.firstChild)!==null;)p=f,f=g;for(;;){if(f===e)break t;if(p===r&&++c===o&&(s=a),p===i&&++u===n&&(l=a),(g=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=g}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Pb={focusedElem:e,selectionRange:r},ag=!1,qe=t;qe!==null;)if(t=qe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,qe=e;else for(;qe!==null;){t=qe;try{var h=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var v=h.memoizedProps,y=h.memoizedState,m=t.stateNode,d=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:di(t.type,v),y);m.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ge(163))}}catch(b){Ir(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,qe=e;break}qe=t.return}return h=A_,A_=!1,h}function jf(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Hb(t,r,i)}o=o.next}while(o!==n)}}function $g(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Ub(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function OT(e){var t=e.alternate;t!==null&&(e.alternate=null,OT(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Wi],delete t[td],delete t[Ib],delete t[iz],delete t[az])),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 _T(e){return e.tag===5||e.tag===3||e.tag===4}function M_(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_T(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 qb(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=cg));else if(n!==4&&(e=e.child,e!==null))for(qb(e,t,r),e=e.sibling;e!==null;)qb(e,t,r),e=e.sibling}function Gb(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Gb(e,t,r),e=e.sibling;e!==null;)Gb(e,t,r),e=e.sibling}var gn=null,pi=!1;function Za(e,t,r){for(r=r.child;r!==null;)PT(e,t,r),r=r.sibling}function PT(e,t,r){if(Bi&&typeof Bi.onCommitFiberUnmount=="function")try{Bi.onCommitFiberUnmount(Rg,r)}catch{}switch(r.tag){case 5:_n||Ic(r,t);case 6:var n=gn,o=pi;gn=null,Za(e,t,r),gn=n,pi=o,gn!==null&&(pi?(e=gn,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):gn.removeChild(r.stateNode));break;case 18:gn!==null&&(pi?(e=gn,r=r.stateNode,e.nodeType===8?Yx(e.parentNode,r):e.nodeType===1&&Yx(e,r),Yf(e)):Yx(gn,r.stateNode));break;case 4:n=gn,o=pi,gn=r.stateNode.containerInfo,pi=!0,Za(e,t,r),gn=n,pi=o;break;case 0:case 11:case 14:case 15:if(!_n&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&((i&2)!==0||(i&4)!==0)&&Hb(r,t,a),o=o.next}while(o!==n)}Za(e,t,r);break;case 1:if(!_n&&(Ic(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Ir(r,t,s)}Za(e,t,r);break;case 21:Za(e,t,r);break;case 22:r.mode&1?(_n=(n=_n)||r.memoizedState!==null,Za(e,t,r),_n=n):Za(e,t,r);break;default:Za(e,t,r)}}function F_(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Cz),t.forEach(function(n){var o=Dz.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function fi(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=a),n&=~i}if(n=o,n=Lr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Rz(n/1960))-n,10e?16:e,is===null)var n=!1;else{if(e=is,is=null,Cg=0,($t&6)!==0)throw Error(ge(331));var o=$t;for($t|=4,qe=e.current;qe!==null;){var i=qe,a=i.child;if((qe.flags&16)!==0){var s=i.deletions;if(s!==null){for(var l=0;lLr()-$S?pl(e,0):DS|=r),to(e,t)}function MT(e,t){t===0&&((e.mode&1)===0?t=1:(t=Nm,Nm<<=1,(Nm&130023424)===0&&(Nm=4194304)));var r=Hn();e=va(e,t),e!==null&&(ld(e,t,r),to(e,r))}function Iz(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),MT(e,r)}function Dz(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(ge(314))}n!==null&&n.delete(t),MT(e,r)}var FT;FT=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Zn.current)Jn=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return Jn=!1,xz(e,t,r);Jn=(e.flags&131072)!==0}else Jn=!1,yr&&(t.flags&1048576)!==0&&BP(t,pg,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Qm(e,t),e=t.pendingProps;var o=Wc(t,Pn.current);Fc(t,r),o=OS(null,t,n,e,o,r);var i=_S();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,eo(n)?(i=!0,fg(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,SS(t),o.updater=Dg,t.stateNode=o,o._reactInternals=t,Fb(t,n,e,r),t=Wb(null,t,n,!0,i,r)):(t.tag=0,yr&&i&&mS(t),Vn(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Qm(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=kz(n),e=di(n,e),o){case 0:t=zb(null,t,n,e,r);break e;case 1:t=D_(null,t,n,e,r);break e;case 11:t=N_(null,t,n,e,r);break e;case 14:t=I_(null,t,n,di(n.type,e),r);break e}throw Error(ge(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:di(n,o),zb(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:di(n,o),D_(e,t,n,o,r);case 3:e:{if(bT(t),e===null)throw Error(ge(387));n=t.pendingProps,i=t.memoizedState,o=i.element,GP(e,t),hg(t,n,null,r);var a=t.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Hc(Error(ge(423)),t),t=$_(e,t,n,r,o);break e}else if(n!==o){o=Hc(Error(ge(424)),t),t=$_(e,t,n,r,o);break e}else for(ho=cs(t.stateNode.containerInfo.firstChild),vo=t,yr=!0,mi=null,r=UP(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Bc(),n===o){t=ya(e,t,r);break e}Vn(e,t,n,r)}t=t.child}return t;case 5:return KP(t),e===null&&kb(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Tb(n,o)?a=null:i!==null&&Tb(n,i)&&(t.flags|=32),xT(e,t),Vn(e,t,a,r),t.child;case 6:return e===null&&kb(t),null;case 13:return ST(e,t,r);case 4:return CS(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=jc(t,null,n,r):Vn(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:di(n,o),N_(e,t,n,o,r);case 7:return Vn(e,t,t.pendingProps,r),t.child;case 8:return Vn(e,t,t.pendingProps.children,r),t.child;case 12:return Vn(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,er(mg,n._currentValue),n._currentValue=a,i!==null)if(vi(i.value,a)){if(i.children===o.children&&!Zn.current){t=ya(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(i.tag===1){l=ma(-1,r&-r),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),Ab(i.return,r,t),s.lanes|=r;break}l=l.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|=r,s=a.alternate,s!==null&&(s.lanes|=r),Ab(a,r,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}Vn(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Fc(t,r),o=Wo(o),n=n(o),t.flags|=1,Vn(e,t,n,r),t.child;case 14:return n=t.type,o=di(n,t.pendingProps),o=di(n.type,o),I_(e,t,n,o,r);case 15:return vT(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:di(n,o),Qm(e,t),t.tag=1,eo(n)?(e=!0,fg(t)):e=!1,Fc(t,r),mT(t,n,o),Fb(t,n,o,r),Wb(null,t,n,!0,e,r);case 19:return CT(e,t,r);case 22:return yT(e,t,r)}throw Error(ge(156,t.tag))};function LT(e,t){return fP(e,t)}function $z(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Lo(e,t,r,n){return new $z(e,t,r,n)}function FS(e){return e=e.prototype,!(!e||!e.isReactComponent)}function kz(e){if(typeof e=="function")return FS(e)?1:0;if(e!=null){if(e=e.$$typeof,e===rS)return 11;if(e===nS)return 14}return 2}function ps(e,t){var r=e.alternate;return r===null?(r=Lo(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function eg(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")FS(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Cc:return ml(r.children,o,i,t);case tS:a=8,o|=8;break;case sb:return e=Lo(12,r,t,o|2),e.elementType=sb,e.lanes=i,e;case lb:return e=Lo(13,r,t,o),e.elementType=lb,e.lanes=i,e;case cb:return e=Lo(19,r,t,o),e.elementType=cb,e.lanes=i,e;case K_:return Ag(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case q_:a=10;break e;case G_:a=9;break e;case rS:a=11;break e;case nS:a=14;break e;case es:a=16,n=null;break e}throw Error(ge(130,e==null?e:typeof e,""))}return t=Lo(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function ml(e,t,r,n){return e=Lo(7,e,n,t),e.lanes=r,e}function Ag(e,t,r,n){return e=Lo(22,e,n,t),e.elementType=K_,e.lanes=r,e.stateNode={isHidden:!1},e}function ob(e,t,r){return e=Lo(6,e,null,t),e.lanes=r,e}function ib(e,t,r){return t=Lo(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Az(e,t,r,n,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=jx(0),this.expirationTimes=jx(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jx(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function LS(e,t,r,n,o,i,a,s,l){return e=new Az(e,t,r,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Lo(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},SS(i),e}function Mz(e,t,r){var n=3{"use strict";function VT(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(VT)}catch(e){console.error(e)}}VT(),HT.exports=jT()});var qT=Do(jS=>{"use strict";var UT=Vi();jS.createRoot=UT.createRoot,jS.hydrateRoot=UT.hydrateRoot;var TJ});var Ne=Do((DJ,Wg)=>{"use strict";(function(){"use strict";var e={}.hasOwnProperty;function t(){for(var o="",i=0;i{"use strict";var US=Symbol.for("react.element"),qS=Symbol.for("react.portal"),Vg=Symbol.for("react.fragment"),Hg=Symbol.for("react.strict_mode"),Ug=Symbol.for("react.profiler"),qg=Symbol.for("react.provider"),Gg=Symbol.for("react.context"),Xz=Symbol.for("react.server_context"),Kg=Symbol.for("react.forward_ref"),Xg=Symbol.for("react.suspense"),Yg=Symbol.for("react.suspense_list"),Qg=Symbol.for("react.memo"),Jg=Symbol.for("react.lazy"),Yz=Symbol.for("react.offscreen"),tN;tN=Symbol.for("react.module.reference");function jo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case US:switch(e=e.type,e){case Vg:case Ug:case Hg:case Xg:case Yg:return e;default:switch(e=e&&e.$$typeof,e){case Xz:case Gg:case Kg:case Jg:case Qg:case qg:return e;default:return t}}case qS:return t}}}Ht.ContextConsumer=Gg;Ht.ContextProvider=qg;Ht.Element=US;Ht.ForwardRef=Kg;Ht.Fragment=Vg;Ht.Lazy=Jg;Ht.Memo=Qg;Ht.Portal=qS;Ht.Profiler=Ug;Ht.StrictMode=Hg;Ht.Suspense=Xg;Ht.SuspenseList=Yg;Ht.isAsyncMode=function(){return!1};Ht.isConcurrentMode=function(){return!1};Ht.isContextConsumer=function(e){return jo(e)===Gg};Ht.isContextProvider=function(e){return jo(e)===qg};Ht.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===US};Ht.isForwardRef=function(e){return jo(e)===Kg};Ht.isFragment=function(e){return jo(e)===Vg};Ht.isLazy=function(e){return jo(e)===Jg};Ht.isMemo=function(e){return jo(e)===Qg};Ht.isPortal=function(e){return jo(e)===qS};Ht.isProfiler=function(e){return jo(e)===Ug};Ht.isStrictMode=function(e){return jo(e)===Hg};Ht.isSuspense=function(e){return jo(e)===Xg};Ht.isSuspenseList=function(e){return jo(e)===Yg};Ht.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Vg||e===Ug||e===Hg||e===Xg||e===Yg||e===Yz||typeof e=="object"&&e!==null&&(e.$$typeof===Jg||e.$$typeof===Qg||e.$$typeof===qg||e.$$typeof===Gg||e.$$typeof===Kg||e.$$typeof===tN||e.getModuleId!==void 0)};Ht.typeOf=jo});var oN=Do((JJ,nN)=>{"use strict";nN.exports=rN()});var y3=Do(_0=>{"use strict";var wG=D(),EG=Symbol.for("react.element"),RG=Symbol.for("react.fragment"),OG=Object.prototype.hasOwnProperty,_G=wG.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,PG={key:!0,ref:!0,__self:!0,__source:!0};function v3(e,t,r){var n,o={},i=null,a=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(n in t)OG.call(t,n)&&!PG.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)o[n]===void 0&&(o[n]=t[n]);return{$$typeof:EG,type:e,key:i,ref:a,props:o,_owner:_G.current}}_0.Fragment=RG;_0.jsx=v3;_0.jsxs=v3});var Or=Do((QAe,x3)=>{"use strict";x3.exports=y3()});var G0={"SDPPP Get Document":"Get Document","SDPPP Get Layer By ID":"Get Layer","SDPPP Get Linked Layers":"Get Linked Layers","SDPPP Get Layers In Group":"Get Layers In Group","SDPPP Get Text From Layer":"Get Text From Layer","SDPPP Parse Layer Info":"Parse Layer Info","SDPPP Get Selection":"Get Selection","SDPPP Get Image From Photoshop":"Get Image From Photoshop","SDPPP Send Images To Photoshop":"Send Images To Photoshop","SDPPP Select Layer And Run PS Action":"Select Layer And Run PS Action"};var K0={"### Active Document ###":"### \u5F53\u524D\u6587\u6863 ###","### The Canvas ###":"### \u6574\u4E2A\u753B\u5E03 ###","### New Layer ###":"### \u65B0\u56FE\u5C42 ###","### Selected Layer ###":"### \u6240\u9009\u56FE\u5C42 ###","### Keep Size or Fit Canvas ###":"### \u4FDD\u6301\u5C3A\u5BF8\u6216\u9002\u5E94\u753B\u5E03 ###",_SDPPP_PSD_:"_SDPPP_PSD_","Save and run immediately":"\u4FDD\u5B58\u5E76\u7ACB\u5373\u6267\u884C",Close:"\u5173\u95ED","Select a {0}":"\u9009\u62E9\u4E00\u4E2A {0}","How to use .ccx file":"\u5982\u4F55\u4F7F\u7528 .ccx \u6587\u4EF6","1. If you have installed Adobe Creative Cloud":"1. \u5982\u679C\u4F60\u5DF2\u7ECF\u5B89\u88C5\u4E86 Adobe Creative Cloud","Just double click the .ccx file, it will install the plugin automatically":"\u53CC\u51FB .ccx \u6587\u4EF6\uFF0C\u5B83\u4F1A\u81EA\u52A8\u5B89\u88C5","2. If you don't have Adobe Creative Cloud":"2. \u5982\u679C\u4F60\u6CA1\u6709 Adobe Creative Cloud","Rename .ccx to .zip and extract it into ":"\u5C06 .ccx \u91CD\u547D\u540D\u4E3A .zip \u5E76\u89E3\u538B\u5230",or:"\u6216","Photoshop directory":"Photoshop \u5B89\u88C5\u76EE\u5F55","Cannot connect multiple different document widgets with same value":"\u4E0D\u80FD\u8FDE\u63A5\u591A\u4E2A\u5177\u6709\u76F8\u540C\u503C\u7684\u6587\u6863\u5C0F\u90E8\u4EF6","You can only have one SDPPP Settings node in a workflow":"\u4E00\u4E2A\u5DE5\u4F5C\u6D41\u4E2D\u53EA\u80FD\u6709\u4E00\u4E2A SDPPP Settings \u8282\u70B9","convert widget {0} failed:":"\u63A7\u4EF6{0}\u8F6C\u6362\u5931\u8D25\uFF1A","hidden webview load failed: {0}, please select a browser page to continue":"\u5185\u7F6E webview \u52A0\u8F7D\u5931\u8D25: {0}\uFF0C\u8BF7\u9009\u62E9\u4E00\u4E2A\u6D4F\u89C8\u5668\u9875\u9762\u7EE7\u7EED","SDPPP Get Document":"\u83B7\u53D6\u6587\u6863(GetDocument)","SDPPP Get Layer By ID":"\u83B7\u53D6\u56FE\u5C42(GetLayer)","SDPPP Get Linked Layers":"\u83B7\u53D6\u94FE\u63A5\u56FE\u5C42(GetLinkedLayers)","SDPPP Get Layers In Group":"\u83B7\u53D6\u7EC4\u4E2D\u56FE\u5C42(GetLayersInGroup)","SDPPP Get Text From Layer":"\u83B7\u53D6\u56FE\u5C42\u6587\u672C(GetTextFromLayer)","SDPPP Parse Layer Info":"\u89E3\u6790\u56FE\u5C42\u4FE1\u606F(ParseLayerInfo)","SDPPP Get Selection":"\u83B7\u53D6\u9009\u533A(GetSelection)","SDPPP Get Image From Photoshop":"\u4ECEPS\u83B7\u53D6\u56FE\u50CF(GetImageFromPhotoshop)","SDPPP Send Images To Photoshop":"\u53D1\u9001\u56FE\u50CF\u5230PS(SendImagesToPhotoshop)","SDPPP Send Text To Layer":"\u53D1\u9001\u6587\u672C\u5230\u56FE\u5C42(SendTextToLayer)","SDPPP Select Layer And Run PS Action":"\u9009\u4E2D\u56FE\u5C42\u5E76\u8FD0\u884CPS Action(RunPhotoshopAction)","download PS plugin (.ccx)":"\u4E0B\u8F7D Photoshop \u63D2\u4EF6 (.ccx)","current ComfyUI pageid: {0}":"\u5F53\u524D ComfyUI \u9875\u9762ID: {0}","current A1111 pageid: {0}":"\u5F53\u524D A1111 \u9875\u9762ID: {0}","document linked":"\u6587\u6863\u53C2\u6570\u5DF2\u94FE\u63A5","layer linked":"\u56FE\u5C42\u53C2\u6570\u5DF2\u94FE\u63A5","bound linked":"\u8303\u56F4\u53C2\u6570\u5DF2\u94FE\u63A5",document:"\u6587\u6863",Document:"\u6587\u6863",DOCUMENT:"\u6587\u6863",document_name:"\u6587\u6863\u540D\u5B57id",layer_nameid:"\u56FE\u5C42\u540D\u5B57id",layer_name:"\u56FE\u5C42\u540D\u5B57",layer_info:"\u56FE\u5C42\u4FE1\u606F",bound_top:"\u8303\u56F4\u4E0A\u8FB9\u8DDD",bound_left:"\u8303\u56F4\u5DE6\u8FB9\u8DDD",bound_width:"\u8303\u56F4\u5BBD\u5EA6",bound_height:"\u8303\u56F4\u9AD8\u5EA6",center_x:"\u4E2D\u5FC3\u70B9x",center_y:"\u4E2D\u5FC3\u70B9y",opacity:"\u900F\u660E\u5EA6",layer:"\u56FE\u5C42",layer_or_group:"\u56FE\u5C42(\u6216\u7EC4)",Layer_or_group:"\u56FE\u5C42(\u6216\u7EC4)",bound:"\u8303\u56F4",bounds:"\u8303\u56F4","bounds [optional]":"\u8303\u56F4[\u53EF\u9009]",boundary:"\u8303\u56F4",Boundary:"\u8303\u56F4",canvas_boundary:"\u753B\u5E03\u8303\u56F4",canvas_bound:"\u753B\u5E03\u8303\u56F4",layer_boundary:"\u56FE\u5C42\u8303\u56F4",layer_bound:"\u56FE\u5C42\u8303\u56F4","Photoshop Disconnected!":"Photoshop \u672A\u8FDE\u63A5\uFF01",rgb_out:"RGB\u8F93\u51FA",alpha_out:"Alpha\u8F93\u51FA",images:"\u56FE\u50CF",text:"\u6587\u672C",ID_mode:"\u7CBE\u786EID\u6A21\u5F0F",name_mode:"\u540D\u5B57\u5339\u914D\u6A21\u5F0F",select:"\u9009\u62E9","document boundary":"\u6587\u6863\u8303\u56F4","layer boundary":"\u56FE\u5C42\u8303\u56F4","selection boundary":"\u9009\u4E2D\u8303\u56F4","save .psd to this workflow":"\u4FDD\u5B58.psd\u5230\u8FD9\u4E2A\u5DE5\u4F5C\u6D41","extract saved .psd to Photoshop":"\u63D0\u53D6\u4FDD\u5B58\u7684.psd\u5230Photoshop","sample .psd":"\u793A\u4F8B.psd",mask:"\u906E\u7F69",name:"\u540D\u79F0",quality:"\u56FE\u50CF\u8D28\u91CF",action_set:"\u52A8\u4F5C\u7EC4",action:"\u52A8\u4F5C",Runner:"\u8FD0\u884C\u8F7D\u4F53","PS Webview":"PS \u5185\u7F6E\u7F51\u9875","Browser {0}":"\u6D4F\u89C8\u5668\u9875\u9762 {0}",timeout:"\u8D85\u65F6","Loading...":"\u52A0\u8F7D\u4E2D...","--multi-user Not Login!":"--multi-user\u5DF2\u6FC0\u6D3B\uFF0C\u4F46\u672A\u767B\u5F55\uFF01",Logout:"\u767B\u51FA","User: ":"\u7528\u6237: ",connect:"\u8FDE\u63A5",connected:"\u5DF2\u8FDE\u63A5",disconnect:"\u65AD\u5F00",disconnected:"\u5DF2\u65AD\u5F00\u8FDE\u63A5","reconnecting...":"\u91CD\u8FDE\u4E2D...",connecting:"\u8FDE\u63A5\u4E2D",webpages:"\u7F51\u9875\u5217\u8868",workflows:"\u5DE5\u4F5C\u6D41",workflow:"\u5DE5\u4F5C\u6D41","auto run page [{0}] after change..":"\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C\u9875\u9762 {0}..","auto run workflow [{0}] after change..":"\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C\u5DE5\u4F5C\u6D41 {0}..","auto run workflow after change..":"\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C\u5DE5\u4F5C\u6D41..",selection_only:"\u4EC5\u9009\u533A","Queue:":"\u961F\u5217:","Set As:":"\u8BBE\u7F6E\u4E3A:","Error {0}... please contact me via Discord/Github":"\u51FA\u73B0\u9519\u8BEF {0}...\uFF0C\u8BF7\u901A\u8FC7 QQ/Github \u8054\u7CFB\u6211","Webview initialize failed. Please report to me via Discord/Github with your ComfyURL, Operate System":"Webview \u521D\u59CB\u5316\u5931\u8D25\uFF0C\u8BF7\u901A\u8FC7 QQ/Github \u8054\u7CFB\u6211\u5E76\u9644\u4E0A\u4F60\u7684Comfy\u5730\u5740\u3001\u64CD\u4F5C\u7CFB\u7EDF","ComfyUI with --multi-user is only available for sponsors":'\u5E26"--multi-user"\u7684ComfyUI\u4EC5\u5BF9\u8D5E\u52A9\u8005\u5F00\u653E',"Workflow Runner is loading...":"\u8FD0\u884C\u8F7D\u4F53\u5C1A\u5728\u52A0\u8F7D...","(Page ID: {0})Queue: {1}":"(\u9875\u9762ID: {0}) \u961F\u5217\u957F\u5EA6 {1}","no suitable node to control in this workflow":"\u8FD9\u4E2A\u5DE5\u4F5C\u6D41\u4E2D\u6CA1\u6709\u80FD\u63A7\u5236\u7684\u8282\u70B9",Save:"\u4FDD\u5B58",Edit:"\u7F16\u8F91","Edit in ComfyUI":"\u5728 ComfyUI \u4E2D\u7F16\u8F91","using browser page [{0}] for workflow running":"\u6B63\u63A5\u7BA1\u7F51\u9875 [{0}] \u8FD0\u884C\u5DE5\u4F5C\u6D41","workflow running by hidden webview":"\u5DE5\u4F5C\u6D41\u5728\u9690\u85CF\u7684webview\u4E2D\u8FD0\u884C","Lock Image":"\u9501\u5B9A\u56FE\u50CF","Unlock Image":"\u89E3\u9501\u56FE\u50CF","search...":"\u641C\u7D22...","disabled when running in browser page":"\u63A5\u7BA1\u7F51\u9875\u65F6\u4E0D\u53EF\u7528","only supported in Photoshop":"\u4EC5\u5728 Photoshop \u4E2D\u652F\u6301",Login:"\u767B\u5F55","Invitation Code":"\u9080\u8BF7\u7801",Username:"\u7528\u6237\u540D",Password:"\u5BC6\u7801","Please input invitation code":"\u8BF7\u8F93\u5165\u9080\u8BF7\u7801","Please input username":"\u8BF7\u8F93\u5165\u7528\u6237\u540D","Please input password":"\u8BF7\u8F93\u5165\u5BC6\u7801","Open more ComfyUI pages to see more options here":"\u6253\u5F00\u66F4\u591A ComfyUI \u9875\u9762\u4EE5\u67E5\u770B\u66F4\u591A\u9009\u9879","Comfy multi-user: ":"Comfy \u591A\u7528\u6237: ","Not Login":"\u672A\u767B\u5F55","Comfy API-Key: ":"Comfy API-Key: ","Login/Auth":"\u767B\u5F55/\u8BA4\u8BC1","Logged in by email/password":"\u5DF2\u901A\u8FC7\u90AE\u7BB1/\u5BC6\u7801\u767B\u5F55","Set API Key":"\u8BBE\u7F6E API Key","Please input API key (will reload Runner)":"\u8BF7\u8F93\u5165 API Key (\u4F1A\u91CD\u542F\u8FD0\u884C\u8F7D\u4F53)","### Active Workflow ###":"### \u5F53\u524D\u5DE5\u4F5C\u6D41 ###","### Example SDXL ###":"### \u793A\u4F8BSDXL\u5DE5\u4F5C\u6D41 ###","Open ComfyUI in the browser to see more options":"\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00 ComfyUI \u4EE5\u5F97\u5230\u66F4\u591A\u9009\u9879","Webview load timeout, please switch to a different runner":"Webview \u52A0\u8F7D\u8D85\u65F6\uFF0C\u8BF7\u5207\u6362\u5230\u5176\u4ED6\u8FD0\u884C\u8F7D\u4F53","Save workflow to ComfyUI":"\u4FDD\u5B58\u5DE5\u4F5C\u6D41\u5230 ComfyUI","Reload workflow":"\u91CD\u65B0\u52A0\u8F7D\u5DE5\u4F5C\u6D41","Stop and cancel all":"\u505C\u6B62\u5E76\u53D6\u6D88\u6240\u6709","Start auto running after change":"\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C","Stop auto run":"\u505C\u6B62\u81EA\u52A8\u8FD0\u884C","Run workflow":"\u8FD0\u884C\u5DE5\u4F5C\u6D41","Run workflow xN":"\u8FD0\u884C\u5DE5\u4F5C\u6D41N\u6B21","Back to workflow list":"\u8FD4\u56DE\u5DE5\u4F5C\u6D41\u5217\u8868","502: Maybe the server is not running":"502: \u670D\u52A1\u5668\u53EF\u80FD\u672A\u8FD0\u884C","404: Maybe SDPPP is not installed or failed to run in ComfyUI":"404: \u53EF\u80FD\u5728ComfyUI\u4E2DSDPPP\u672A\u5B89\u88C5\u6216\u8FD0\u884C\u5931\u8D25","{0}. reconnecting...":"{0}. \u91CD\u8FDE\u4E2D...","disconnected to {0} failed {1}":"\u65AD\u5F00\u8FDE\u63A5 {0} \u9519\u8BEF {1}","version mismatch, please reinstall PS plugin":"\u7248\u672C\u4E0D\u5339\u914D\uFF0C\u8BF7\u91CD\u65B0\u5B89\u88C5 PS \u63D2\u4EF6","instance type not recognized":"\u672A\u8BC6\u522B\u7684\u8F6F\u4EF6\u7C7B\u578B","Error: {0}":"\u9519\u8BEF: {0}","Verification Error":"\u9A8C\u8BC1\u9519\u8BEF","document {0} not found":"\u627E\u4E0D\u5230\u6587\u6863: {0}",'only layer kind "TEXT" is supported, invalid layer: {0}':"\u4E0D\u652F\u6301\u975E\u6587\u672C\u56FE\u5C42: {0}","create layer failed":"\u521B\u5EFA\u56FE\u5C42\u5931\u8D25","layer not found {0}":"\u627E\u4E0D\u5230\u56FE\u5C42: {0}","no linked layer for {0}":"\u6CA1\u6709\u94FE\u63A5\u56FE\u5C42: {0}","layer {0} is not a group":"\u56FE\u5C42 {0} \u4E0D\u662F\u4E00\u4E2A\u7EC4","no layer in group {0}":"\u7EC4 {0} \u4E2D\u6CA1\u6709\u56FE\u5C42","layer not found: {0}":"\u627E\u4E0D\u5230\u56FE\u5C42: {0}","No upload_name":"\u4E0A\u4F20\u63A5\u53E3\u8FD4\u56DE\u4E86\u5931\u8D25","get pixel of {0} failed":"\u83B7\u53D6\u50CF\u7D20\u5931\u8D25: {0}","merge group failed":"\u5408\u5E76\u7EC4\u5931\u8D25","invalid name: {0}":"\u975E\u6CD5\u7684\u540D\u79F0: {0}","get_layer_info: layer_identify required":"get_layer_info: \u9700\u8981 layer_identify","invalid action: {0}":"\u65E0\u6548\u7684\u64CD\u4F5C: {0}","create document failed":"\u521B\u5EFA\u6587\u6863\u5931\u8D25","create document for preview":"\u521B\u5EFA\u9884\u89C8\u6587\u6863","resize document for preview":"\u8C03\u6574\u9884\u89C8\u6587\u6863\u5C3A\u5BF8","no first related layer in {0}":"\u7EC4 {0} \u4E2D\u6CA1\u6709\u7B2C\u4E00\u4E2A\u76F8\u5173\u56FE\u5C42","imageDataError: data length is not multiple of width * height":"\u56FE\u50CF\u6570\u636E\u6709\u8BEF: \u6570\u636E\u957F\u5EA6\u4E0D\u662F\u5BBD\u5EA6 * \u9AD8\u5EA6\u7684\u500D\u6570","imageDataError: originComponents must be 1 or 3":"\u56FE\u50CF\u6570\u636E\u6709\u8BEF: originComponents \u5FC5\u987B\u662F 1 \u6216 3","unexpected connection lost, please try to reconnect":"\u610F\u5916\u65AD\u5F00\u8FDE\u63A5\uFF0C\u8BF7\u5C1D\u8BD5\u91CD\u65B0\u8FDE\u63A5","Workflow list is empty, please save a workflow by Comfy's lastest UI":"\u5DE5\u4F5C\u6D41\u5217\u8868\u4E3A\u7A7A\uFF0C\u8BF7\u5728Comfy\u7684\u65B0\u7248UI\u4E2D\u4FDD\u5B58\u4E00\u4E2A\u5DE5\u4F5C\u6D41","No opened ComfyUI pages":"\u6CA1\u6709\u5DF2\u6253\u5F00\u7684ComfyUI\u9875\u9762","comfyAPI is not initialized, maybe comfyUI is too old":"\u65E0\u6CD5\u83B7\u53D6 ComfyAPI\uFF0C\u53EF\u80FD ComfyUI \u7248\u672C\u592A\u65E7","unsupported channel counts: {0}":"\u4E0D\u652F\u6301\u7684\u901A\u9053\u6570: {0}","Timeout, Maybe the URL is wrong":"\u8D85\u65F6\uFF0C\u53EF\u80FD comfy\u5730\u5740 \u586B\u5199\u9519\u8BEF","Workflow list loading failed: {0}":"\u5DE5\u4F5C\u6D41\u5217\u8868\u52A0\u8F7D\u5931\u8D25: {0}","Please register a user in ComfyUI":"\u8BF7\u5728 ComfyUI \u4E2D\u6CE8\u518C\u4E00\u4E2A\u7528\u6237","GetSelection need Photoshop version 25+":"GetSelection \u9700\u8981 Photoshop 25+ \u7248\u672C","Action {0} not found":"Action {0} \u672A\u627E\u5230","Action set {0} not found":"ActionSet {0} \u672A\u627E\u5230","{0} cannot be used in Photoshop Action Node":"{0} \u4E0D\u80FD\u5728 Photoshop Action \u8282\u70B9\u4E2D\u4F7F\u7528","Group layers":"\u56FE\u5C42\u7EC4","Show All Groups":"\u663E\u793A\u6240\u6709\u7EC4","create document for sent images":"\u7ED9\u53D1\u9001\u7684\u56FE\u7247\u521B\u5EFA\u6587\u6863","show sent images":"\u663E\u793A\u53D1\u9001\u7684\u56FE\u7247","fallback show sent images":"\u53D6\u6D88\u663E\u793A\u53D1\u9001\u7684\u56FE\u7247","get content of layer {0}":"\u83B7\u53D6\u56FE\u5C42 {0} \u7684\u5185\u5BB9","fallback get content of layer {0}":"\u53D6\u6D88\u83B7\u53D6\u56FE\u5C42 {0} \u7684\u5185\u5BB9","get layer info":"\u83B7\u53D6\u56FE\u5C42\u4FE1\u606F","sdppp extract PSD":"sdppp \u5BFC\u5165 PSD","sdppp get PSD":"sdppp \u83B7\u53D6 PSD","set text to layer":"\u8BBE\u7F6E\u56FE\u5C42\u7684\u6587\u672C","run Photoshop Action":"sdppp \u8FD0\u884C Photoshop Action","select layer":"sdppp \u9009\u4E2D\u56FE\u5C42","{0} wants to extract a PSD file to Photoshop, are you sure?":"{0} \u60F3\u8981\u91CA\u653E\u4E00\u4E2A.psd\u6587\u4EF6\u5230Photoshop\uFF0C\u786E\u5B9A\u5417\uFF1F","should sdppp refuse extracting PSD to Photoshop in this session anymore?":"\u662F\u5426\u8981\u8BA9 sdppp \u62D2\u7EDD\u672C\u6B21PS\u4F1A\u8BDD\u518D\u6B21\u63A5\u53D7.psd\u91CA\u653E\u8BF7\u6C42\uFF1F","Wide Mode":"\u5BBD\u5C4F\u6A21\u5F0F","Quick Set":"\u5FEB\u901F\u8BBE\u7F6E","Selected Layer":"\u9009\u4E2D\u56FE\u5C42","Selected Layer (invert)":"\u9009\u4E2D\u56FE\u5C42(\u53CD\u5411)",Canvas:"\u753B\u5E03",Selection:"\u9009\u533A",Manual:"\u624B\u52A8\u6A21\u5F0F",Auto:"\u81EA\u52A8\u6A21\u5F0F","This plugin is based on sd-ppp":"\u672C\u63D2\u4EF6\u57FA\u4E8Esd-ppp\u5F00\u53D1","And follows its open source license:":"\u5E76\u9075\u5FAA\u5176\u5F00\u6E90\u534F\u8BAE\uFF1A",Cloud:"\u4E91\u7AEF\u63A8\u8350",Sponsors:"\u8D5E\u52A9","waiting...":"\u865A\u4F4D\u4EE5\u5F85",Links:"\u53CB\u60C5\u94FE\u63A5",Community:"\u793E\u533A","LICENSE:":"\u8BB8\u53EF\u8BC1\uFF1A","Official Site":"\u5B98\u65B9\u7F51\u7AD9",upload:"\u4E0A\u4F20","Simplify Workflow":"\u7B80\u5316\u5DE5\u4F5C\u6D41",Photoshop:"Photoshop","Photoshop plugin settings":"Photoshop \u63D2\u4EF6\u8BBE\u7F6E","Photoshop plugin":"Photoshop \u63D2\u4EF6","SDPPP Settings/Misc":"SDPPP \u8BBE\u7F6E/\u6742\u9879","Sample .PSD for this workflow:":"\u793A\u4F8B.PSD","Download Example .PSD":"\u4E0B\u8F7D\u793A\u4F8B.PSD","Maximum Image Size (px):":"\u6700\u5927\u56FE\u50CF\u5C3A\u5BF8(px)",Download:"\u4E0B\u8F7D",Upload:"\u4E0A\u4F20",Reset:"\u91CD\u7F6E",Refresh:"\u5237\u65B0","Comfy URL (You can copy it to connect ComfyUI in the plugin):":"Comfy\u5730\u5740(\u4F60\u53EF\u4EE5\u590D\u5236\u5B83\u5230\u63D2\u4EF6\u4E2D\u8FDE\u63A5ComfyUI):","use slider for number widget:":"\u6570\u5B57\u63A7\u4EF6\u4F7F\u7528\u6ED1\u5757","Photoshop is not connected":"Photoshop \u672A\u8FDE\u63A5","select...":"\u8BF7\u9009\u62E9","click to edit":"\u70B9\u51FB\u7F16\u8F91","ComfyManager not found, cannot reboot":"Comfy Manager\u672A\u5B89\u88C5\uFF0C\u65E0\u6CD5\u91CD\u542F","Failed to reboot ComfyUI":"\u91CD\u542FComfyUI\u5931\u8D25"};var xR=typeof U0<"u"?U0:void 0,X0="en";typeof navigator<"u"&&navigator.language?X0=navigator.language=="zh-CN"?"zhcn":"en":xR&&(X0=xR("uxp").host.uiLocale.startsWith("zh")?"zhcn":"en");function me(e,...t){let r=X0=="zhcn"?K0[e]:e in G0?G0[e]:e;if(!r)throw new Error(`i18n key not found: ${e}`);return r.replace(/{(\d+)}/g,function(n,o){return typeof t[o]<"u"?t[o]:n})}function el(e,t){return e==t||K0[e]==t}var Xt=class e{static SPECIAL_DOCUMENT_CURRENT="### Active Document ###";static is_SPECIAL_DOCUMENT_CURRENT(t){return el(this.SPECIAL_DOCUMENT_CURRENT,t)}static get_SPECIAL_DOCUMENT_CURRENT(){return me(this.SPECIAL_DOCUMENT_CURRENT)}static SPECIAL_LAYER_KEEP_SIZE="### Keep Size or Fit Canvas ###";static is_SPECIAL_LAYER_FIT(t){return el(this.SPECIAL_LAYER_KEEP_SIZE,t)}static get_SPECIAL_LAYER_FIT(){return me(this.SPECIAL_LAYER_KEEP_SIZE)}static SPECIAL_LAYER_USE_CANVAS="### The Canvas ###";static is_SPECIAL_LAYER_USE_CANVAS(t){return el(this.SPECIAL_LAYER_USE_CANVAS,t)}static get_SPECIAL_LAYER_USE_CANVAS(){return me(this.SPECIAL_LAYER_USE_CANVAS)}static SPECIAL_LAYER_NEW_LAYER="### New Layer ###";static is_SPECIAL_LAYER_NEW_LAYER(t){return el(this.SPECIAL_LAYER_NEW_LAYER,t)}static get_SPECIAL_LAYER_NEW_LAYER(){return me(this.SPECIAL_LAYER_NEW_LAYER)}static SPECIAL_LAYER_SELECTED_LAYER="### Selected Layer ###";static is_SPECIAL_LAYER_SELECTED_LAYER(t){return el(this.SPECIAL_LAYER_SELECTED_LAYER,t)}static get_SPECIAL_LAYER_SELECTED_LAYER(){return me(this.SPECIAL_LAYER_SELECTED_LAYER)}static SPECIAL_LAYER_PREVIEW_DOCUMENT="_SDPPP_PSD_";static is_SPECIAL_LAYER_PREVIEW_DOCUMENT(t){return el(this.SPECIAL_LAYER_PREVIEW_DOCUMENT,t)}static get_SPECIAL_LAYER_PREVIEW_DOCUMENT(){return me(this.SPECIAL_LAYER_PREVIEW_DOCUMENT)}static getSpecialDocumentCurrent(){return me(e.SPECIAL_DOCUMENT_CURRENT)}static getSpecialLayerForGet(){return[me(e.SPECIAL_LAYER_USE_CANVAS),me(e.SPECIAL_LAYER_SELECTED_LAYER)]}static getSpecialLayerForSend(){return[me(e.SPECIAL_LAYER_NEW_LAYER),me(e.SPECIAL_LAYER_SELECTED_LAYER)]}static getSpecialDocumentForPreview(){return me(e.SPECIAL_LAYER_PREVIEW_DOCUMENT)}static fixI18n(t){return this.is_SPECIAL_DOCUMENT_CURRENT(t)?this.SPECIAL_DOCUMENT_CURRENT:this.is_SPECIAL_LAYER_NEW_LAYER(t)?this.SPECIAL_LAYER_NEW_LAYER:this.is_SPECIAL_LAYER_PREVIEW_DOCUMENT(t)?this.SPECIAL_LAYER_PREVIEW_DOCUMENT:this.is_SPECIAL_LAYER_USE_CANVAS(t)?this.SPECIAL_LAYER_USE_CANVAS:this.is_SPECIAL_LAYER_SELECTED_LAYER(t)?this.SPECIAL_LAYER_SELECTED_LAYER:t}};var Y0={};q0(Y0,{JsonPatchError:()=>Nr,_areEquals:()=>of,applyOperation:()=>tl,applyPatch:()=>lc,applyReducer:()=>H5,deepClone:()=>j5,getValueByPointer:()=>rl,validate:()=>SR,validator:()=>zp});var W5=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n[i]=o[i])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),B5=Object.prototype.hasOwnProperty;function Mp(e,t){return B5.call(e,t)}function Fp(e){if(Array.isArray(e)){for(var t=new Array(e.length),r=0;r=48&&n<=57){t++;continue}return!1}return!0}function ki(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function rf(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Ap(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,r=e.length;t0&&l[u-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(r&&p===void 0&&(c[g]===void 0?p=l.slice(0,u).join("/"):u==f-1&&(p=t.path),p!==void 0&&h(t,0,e,p)),u++,Array.isArray(c)){if(g==="-")g=c.length;else{if(r&&!Lp(g))throw new Nr("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",i,t,e);Lp(g)&&(g=~~g)}if(u>=f){if(r&&t.op==="add"&&g>c.length)throw new Nr("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",i,t,e);var a=V5[t.op].call(t,c,g,e);if(a.test===!1)throw new Nr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}}else if(u>=f){var a=sc[t.op].call(t,c,g,e);if(a.test===!1)throw new Nr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}if(c=c[g],r&&u0)throw new Nr('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,r);if((e.op==="move"||e.op==="copy")&&typeof e.from!="string")throw new Nr("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,r);if((e.op==="add"||e.op==="replace"||e.op==="test")&&e.value===void 0)throw new Nr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,r);if((e.op==="add"||e.op==="replace"||e.op==="test")&&Ap(e.value))throw new Nr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,r);if(r){if(e.op=="add"){var o=e.path.split("/").length,i=n.split("/").length;if(o!==i+1&&o!==i)throw new Nr("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,r)}else if(e.op==="replace"||e.op==="remove"||e.op==="_get"){if(e.path!==n)throw new Nr("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,r)}else if(e.op==="move"||e.op==="copy"){var a={op:"_get",path:e.from,value:void 0},s=SR([a],r);if(s&&s.name==="OPERATION_PATH_UNRESOLVABLE")throw new Nr("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}}else throw new Nr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,r)}function SR(e,t,r){try{if(!Array.isArray(e))throw new Nr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)lc(Tr(t),Tr(e),r||!0);else{r=r||zp;for(var n=0;nWp,generate:()=>Q0,observe:()=>Q5,unobserve:()=>Y5});var J0=new WeakMap,U5=function(){function e(t){this.observers=new Map,this.obj=t}return e}(),q5=function(){function e(t,r){this.callback=t,this.observer=r}return e}();function G5(e){return J0.get(e)}function K5(e,t){return e.observers.get(t)}function X5(e,t){e.observers.delete(t.callback)}function Y5(e,t){t.unobserve()}function Q5(e,t){var r=[],n,o=G5(e);if(!o)o=new U5(e),J0.set(e,o);else{var i=K5(o,t);n=i&&i.observer}if(n)return n;if(n={},o.value=Tr(e),t){n.callback=t,n.next=null;var a=function(){Q0(n)},s=function(){clearTimeout(n.next),n.next=setTimeout(a)};typeof window<"u"&&(window.addEventListener("mouseup",s),window.addEventListener("keyup",s),window.addEventListener("mousedown",s),window.addEventListener("keydown",s),window.addEventListener("change",s))}return n.patches=r,n.object=e,n.unobserve=function(){Q0(n),clearTimeout(n.next),X5(o,n),typeof window<"u"&&(window.removeEventListener("mouseup",s),window.removeEventListener("keyup",s),window.removeEventListener("mousedown",s),window.removeEventListener("keydown",s),window.removeEventListener("change",s))},o.observers.set(t,new q5(t,n)),n}function Q0(e,t){t===void 0&&(t=!1);var r=J0.get(e.object);Z0(r.value,e.object,e.patches,"",t),e.patches.length&&lc(r.value,e.patches);var n=e.patches;return n.length>0&&(e.patches=[],e.callback&&e.callback(n)),n}function Z0(e,t,r,n,o){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var i=Fp(t),a=Fp(e),s=!1,l=!1,c=a.length-1;c>=0;c--){var u=a[c],f=e[u];if(Mp(t,u)&&!(t[u]===void 0&&f!==void 0&&Array.isArray(t)===!1)){var p=t[u];typeof f=="object"&&f!=null&&typeof p=="object"&&p!=null&&Array.isArray(f)===Array.isArray(p)?Z0(f,p,r,n+"/"+ki(u),o):f!==p&&(s=!0,o&&r.push({op:"test",path:n+"/"+ki(u),value:Tr(f)}),r.push({op:"replace",path:n+"/"+ki(u),value:Tr(p)}))}else Array.isArray(e)===Array.isArray(t)?(o&&r.push({op:"test",path:n+"/"+ki(u),value:Tr(f)}),r.push({op:"remove",path:n+"/"+ki(u)}),l=!0):(o&&r.push({op:"test",path:n,value:e}),r.push({op:"replace",path:n,value:t}),s=!0)}if(!(!l&&i.length==a.length))for(var c=0;cn!=t)}dispatch(t,r){let n=new Map;t.forEach(o=>{this.subscribers.forEach(([i,a])=>{o.path.startsWith(i)&&!n.has(i)&&n.set(i,JSON.stringify(i==="/"?r:rl(r,i)))})}),n.forEach((o,i)=>{let a=i==="/"?this._data:rl(this._data,i);o!==JSON.stringify(a)&&this.subscribers.filter(([s,l])=>s===i).forEach(([s,l])=>{let c={};try{c=l(a,JSON.parse(o||{}))}catch(u){console.error(u.stack||u.message||u)}c instanceof Promise&&c.catch(u=>{console.error(u.stack||u.message||u)})})})}};function nr(e,t,r){return e.constructor[Bp]||(e.constructor[Bp]=[]),e.constructor[Bp].push(t),{value:function(...n){let o=Tr(this._data);r.value.apply(this,n);let i=Wp(o,this._data);i.length!=0&&(this._mutationRecords.push(...i),this._version+=i.length,this.dispatch(i,o))}}}var nl=class extends tx{constructor(t){super(Object.assign({sid:"",ssid:""},t||{}))}setSID(t){this._data.sid=t,this._data.ssid=t.slice(0,4)}};Qt([nr],nl.prototype,"setSID",1);var on=class extends nl{constructor(t,r){super(t||{title:"",webviewFromSid:location.search.match(/webview_fromsid=([^&]+)/)?.[1]||"",progress:0,lastError:"",queueSize:0,executingNodeTitle:"",widgetTableStructure:{widgetTablePath:"",widgetTablePersisted:!1,widgetTableID:"",nodes:{},groups:{},nodeIndexes:[],extraOptions:{}},widgetTableValue:{},widgetTableErrors:{},useSliderForNumberWidget:!1,hasPSDNodes:!1,comfyUserToken:"",comfyOrgLoggedIn:!1,comfyOrgAPIKey:""}),this._version=r||0}setWebviewFromSid(t){this._data.webviewFromSid=t}setTitle(t){this._data.title=t}setProgress(t){this._data.progress=t}setLastError(t){this._data.lastError=t}setQueueSize(t){this._data.queueSize=t}setExecutingNodeTitle(t){this._data.executingNodeTitle=t}setWidgetTableStructure(t){this._data.widgetTableStructure=JSON.parse(JSON.stringify(t))}setWidgetTableValue(t){this._data.widgetTableValue=JSON.parse(JSON.stringify(t))}setWidgetTableErrors(t){this._data.widgetTableErrors=JSON.parse(JSON.stringify(t))}setHasPSDNodes(t){this._data.hasPSDNodes=t}setComfyUserToken(t){this._data.comfyUserToken=t}setComfyOrgLoggedIn(t){this._data.comfyOrgLoggedIn=t}setComfyOrgAPIKey(t){this._data.comfyOrgAPIKey=t}setUseSliderForNumberWidget(t){this._data.useSliderForNumberWidget=t}};Qt([nr],on.prototype,"setWebviewFromSid",1),Qt([nr],on.prototype,"setTitle",1),Qt([nr],on.prototype,"setProgress",1),Qt([nr],on.prototype,"setLastError",1),Qt([nr],on.prototype,"setQueueSize",1),Qt([nr],on.prototype,"setExecutingNodeTitle",1),Qt([nr],on.prototype,"setWidgetTableStructure",1),Qt([nr],on.prototype,"setWidgetTableValue",1),Qt([nr],on.prototype,"setWidgetTableErrors",1),Qt([nr],on.prototype,"setHasPSDNodes",1),Qt([nr],on.prototype,"setComfyUserToken",1),Qt([nr],on.prototype,"setComfyOrgLoggedIn",1),Qt([nr],on.prototype,"setComfyOrgAPIKey",1),Qt([nr],on.prototype,"setUseSliderForNumberWidget",1);var $o=class extends nl{constructor(t,r){super(t||{uname:"",comfyUserToken:"",isLocal:!1,activeDocumentID:0,documents:{},actions:[],canvasStateID:0,selectionStateID:"",historyStateID:0}),this._version=r||0}setIsLocal(t){this._data.isLocal=t}setUName(t){this._data.uname="PS_"+t}setDocument(t,r){this._data.activeDocumentID=t,this._data.documents=r}setCanvasStateID(t){this._data.canvasStateID=t}setSelectionStateID(t){this._data.selectionStateID=t}setHistoryStateID(t){this._data.historyStateID=t}setComfyUserToken(t){this._data.comfyUserToken=t}setActions(t){this._data.actions=t}};Qt([nr],$o.prototype,"setIsLocal",1),Qt([nr],$o.prototype,"setUName",1),Qt([nr],$o.prototype,"setDocument",1),Qt([nr],$o.prototype,"setCanvasStateID",1),Qt([nr],$o.prototype,"setSelectionStateID",1),Qt([nr],$o.prototype,"setHistoryStateID",1),Qt([nr],$o.prototype,"setComfyUserToken",1),Qt([nr],$o.prototype,"setActions",1);var jp=class{storeMap=new Map;storeCount(){return this.storeMap.size}getStore(t){return this.storeMap.get(t)}getAllStore(){return Object.fromEntries(this.storeMap.entries())}subscribers=[];subscribersWithoutKey=new WeakMap;subscribe(t,r){this.subscribers.push([t,r]);let n={};this.subscribersWithoutKey.set(r,n),this.storeMap.forEach((o,i)=>{n[i]=r.bind(this,i),o.subscribe(t,n[i])})}unsubscribe(t){this.subscribers=this.subscribers.filter(([n,o])=>o!=t);let r=this.subscribersWithoutKey.get(t);r&&this.storeMap.forEach((n,o)=>{n.unsubscribe(r[o])})}addStore(t,r,n){let o=this.createStore(r,n);this.storeMap.set(t,o),this.subscribers.forEach(([i,a])=>{let s=this.subscribersWithoutKey.get(a);s||(s={},this.subscribersWithoutKey.set(a,s)),s[t]=a.bind(this,t),o.subscribe(i,s[t]),i=="/"&&a(t,r,null)})}removeStore(t){let r=this.storeMap.get(t);r&&(this.subscribers.forEach(([n,o])=>{let i=this.subscribersWithoutKey.get(o);i&&(r.unsubscribe(i[t]),n=="/"&&o(t,null,r.data))}),this.storeMap.delete(t))}sync(t){if(t instanceof Array){let r=Array.from(this.storeMap.keys()),n=t.filter(i=>!r.includes(i)),o=r.filter(i=>!t.includes(i));n.forEach(i=>this.addStore(i,{},0)),o.forEach(i=>this.removeStore(i))}else{Array.from(this.storeMap.keys()).filter(n=>!Object.keys(t).includes(n)).forEach(n=>this.removeStore(n));for(let n in t){let{data:o,version:i}=t[n];this.storeMap.has(n)?this.storeMap.get(n)?.sync(o,i):this.addStore(n,o,i)}}}};var mt=window.comfyAPI.app.app,$K=window.comfyAPI.ui.$el,an=window.comfyAPI.api.api;var rx=class extends jp{createStore(t,r){return new $o(t,r)}getStoreByName(t){for(let r of this.storeMap.values())if(r.data.uname===t)return r}getAllPhotoshopDocumentData(){let t={};return this.storeMap.forEach(r=>{t[r.data.uname]={sid:r.data.sid,activeDocumentID:r.data.activeDocumentID,documents:r.data.documents}}),t}},zn=new rx,Xe=new on;if(window.uxpHost){let e=t=>{if(t.data.action!=="webview-connect"||!t.data.payload.webviewFromSid)return console.log(t);t.data.payload.webviewFromSid=t.data.payload.webviewFromSid,Xe.setWebviewFromSid(t.data.payload.webviewFromSid),window.removeEventListener("message",e)};window.addEventListener("message",e),window.uxpHost.postMessage({from:"sdppp-webview",action:"webview-connect"},"*")}function wR(){document.title!==Xe.data.title&&Xe.setTitle(document.title),"user"in mt.extensionManager&&Xe.setComfyOrgLoggedIn(mt.extensionManager.user.isLoggedIn),requestAnimationFrame(wR)}requestAnimationFrame(wR);var CR=!1;async function ER(){if(CR)return Promise.resolve();an.user&&Xe.setComfyUserToken(an.user);let e=await an.getSetting("sdppp.useSliderForNumberWidget");e&&Xe.setUseSliderForNumberWidget(e),CR=!0}function J5(e){let t=e.split(" (id:");return{name:t[0],id:parseInt(t[1].slice(0,-1))}}function Vp(e){return J5(e)}globalThis.sdpppX=globalThis.sdpppX||{};var ia=globalThis.sdpppX;var Ai=class{static makeDocumentDataOptions(t){let r=t.data,n=[`${Xt.getSpecialDocumentCurrent()}`];return Object.keys(r.documents).forEach(o=>{let i=r.documents[o];n.push(i.identify)}),n}static findDocumentData(t,r){let n=Xt.is_SPECIAL_DOCUMENT_CURRENT(r)?t.data.activeDocumentID:Vp(r).id;return t.data.documents[n]}static makeLayerOptions(t,r){return r.concat(t.layers.map(o=>o.identify))}static getLayerDirtyID(t,r){return t.layers.find(o=>o.identify===r)?.dirtyID||0}static getCanvasDirtyID(t){return t.canvasDirtyID||0}static getSelectionDirtyID(t){return t.selectionDirtyID||0}};function nx(){let e=zn.getAllStore(),t=[];return Object.values(e).forEach(r=>{if(an.user&&an.user!=r.data.comfyUserToken)return;let n=Ai.makeDocumentDataOptions(r).map(o=>ox(o,r.data.uname));t.push(...n)}),t}function RR(e,t){let r=[""],n=cc(e);if(!n)return[];let o=Ai.makeLayerOptions(n.documentData,t);return r.push(...o),r}function OR(){return an.user?Object.values(zn.getAllStore()).filter(e=>an.user==e.data.comfyUserToken).length>0:zn.storeCount()}function ox(e,t){return`${t}/${e}`}function cc(e){if(!e||!e.split||e.indexOf("/")==-1)return null;let t=zn.getAllPhotoshopDocumentData(),[r,n]=e.split("/");if(n||(n=r,r=Object.keys(t)[0]),!t[r])return null;let o=Xt.is_SPECIAL_DOCUMENT_CURRENT(n)?t[r].activeDocumentID:Vp(n).id;if(t[r]?.documents[o]){let i=t[r].documents[o];return{instance_id:t[r].sid,identify:n,documentData:i}}return null}var Z5=function(e){let t=mt.graph.links;return Array.isArray(t)?t.find(n=>n&&n.origin_id==e):t.get(e)};function ix(e){let t=mt.graph.nodes,r=t.find(i=>e.id==i.id);if(!r)return null;let n=[];if(o(r,n),n.length>2){let i=n[0].widgets[0].value;if(!n.map(a=>a.widgets[0].value).every(a=>a==i))throw new Error(me("Cannot connect multiple different document widgets with same value"))}return n?.[0]||null;function o(i,a){if(i.type=="SDPPP Get Document")return a.push(i),i;if(i.inputs.length==0)return null;for(let s of i.inputs)if(s.link){let l=Z5(s.link);if(!l)continue;let c=t.find(f=>f.id==l.origin_id);if(!c)continue;let u=o(c,a);if(u)return u}return null}}ia.findDocumentNodeRecursive=ix;var Hp=class{flushing=Promise.resolve();newFlushPending=!1;constructor(t){this.doFlush=t,this.pause()}doFlush;runFlush(){this.newFlushPending||(this.newFlushPending=!0,this.flushing=this.flushing.then(async()=>{await new Promise(t=>requestAnimationFrame(t)),this.newFlushPending=!1,await this.doFlush()}))}pause(){this.flushing=this.flushing.then(t=>new Promise(r=>{this.resume=r})).then(()=>{this.resume=()=>{}})}resume=()=>{}};function _R(e,t){return function(r){return class extends r{constructor(n){super(n),this.socket.on("store_request",(i,a)=>{a({data:e.data,version:e.version})});let o=new Hp(async()=>{let{operations:i,fromVersion:a,toVersion:s}=e.flush();await new Promise(l=>{let c=!1;setTimeout(()=>{c||(console.warn("flush timeout"),l())},5e3),this.socket.emit("store_flush",{operations:i,fromVersion:a},u=>{c=!0,l(),u?.error?console.error("flush error",u.error):e.flushDone(s)})})});e.subscribe("/",()=>{o.runFlush()}),this.socket.on("disconnect",()=>{o.pause()}),this.socket.on("connect",()=>{e.setSID(this.socket.id||""),requestAnimationFrame(()=>{this.socket.emit("sdppp_init",{type:t,data:e.data,version:e.version})})}),this.socket.on("sdppp_inited",i=>{o.resume()})}}}}function PR(e,t){return function(r){return class extends r{constructor(n){super(n),this.socket.on("store_flush",o=>{if(o.type!==t)return;let i=e.getStore(o.sid);if(i)i.patchVersionAcceptable(o.fromVersion)?i.patchData(o.operations):(console.warn("patch version not acceptable from",o.fromVersion,"current version is",i.version),this.socket.emit("store_request",{type:t},a=>{e.sync(a)}));else return this.socket.emit("store_request",{sid:o.sid},a=>{e.addStore(a.sid,a.data,a.version)})}),this.socket.on("store_remove",o=>{e.removeStore(o.sid)}),this.socket.on("sdppp_inited",o=>{this.socket.emit("store_request",{type:t},i=>{e.sync(i)})})}}}}var ci=Object.create(null);ci.open="0";ci.close="1";ci.ping="2";ci.pong="3";ci.message="4";ci.upgrade="5";ci.noop="6";var af=Object.create(null);Object.keys(ci).forEach(e=>{af[ci[e]]=e});var sf={type:"error",data:"parser error"};var IR=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",DR=typeof ArrayBuffer=="function",$R=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,lf=({type:e,data:t},r,n)=>IR&&t instanceof Blob?r?n(t):TR(t,n):DR&&(t instanceof ArrayBuffer||$R(t))?r?n(t):TR(new Blob([t]),n):n(ci[e]+(t||"")),TR=(e,t)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];t("b"+(n||""))},r.readAsDataURL(e)};function NR(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var ax;function kR(e,t){if(IR&&e.data instanceof Blob)return e.data.arrayBuffer().then(NR).then(t);if(DR&&(e.data instanceof ArrayBuffer||$R(e.data)))return t(NR(e.data));lf(e,!1,r=>{ax||(ax=new TextEncoder),t(ax.encode(r))})}var AR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",cf=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,r=e.length,n,o=0,i,a,s,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);let c=new ArrayBuffer(t),u=new Uint8Array(c);for(n=0;n>4,u[o++]=(a&15)<<4|s>>2,u[o++]=(s&3)<<6|l&63;return c};var e4=typeof ArrayBuffer=="function",uf=(e,t)=>{if(typeof e!="string")return{type:"message",data:FR(e,t)};let r=e.charAt(0);return r==="b"?{type:"message",data:t4(e.substring(1),t)}:af[r]?e.length>1?{type:af[r],data:e.substring(1)}:{type:af[r]}:sf},t4=(e,t)=>{if(e4){let r=MR(e);return FR(r,t)}else return{base64:!0,data:e}},FR=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}};var LR="",zR=(e,t)=>{let r=e.length,n=new Array(r),o=0;e.forEach((i,a)=>{lf(i,!1,s=>{n[a]=s,++o===r&&t(n.join(LR))})})},WR=(e,t)=>{let r=e.split(LR),n=[];for(let o=0;o{let n=r.length,o;if(n<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,n);else if(n<65536){o=new Uint8Array(3);let i=new DataView(o.buffer);i.setUint8(0,126),i.setUint16(1,n)}else{o=new Uint8Array(9);let i=new DataView(o.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(n))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(r)})}})}var sx;function Up(e){return e.reduce((t,r)=>t+r.length,0)}function qp(e,t){if(e[0].length===t)return e.shift();let r=new Uint8Array(t),n=0;for(let o=0;oMath.pow(2,21)-1){s.enqueue(sf);break}o=u*Math.pow(2,32)+c.getUint32(4),n=3}else{if(Up(r)e){s.enqueue(sf);break}}}})}var lx=4;function Jt(e){if(e)return r4(e)}function r4(e){for(var t in Jt.prototype)e[t]=Jt.prototype[t];return e}Jt.prototype.on=Jt.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Jt.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};Jt.prototype.off=Jt.prototype.removeListener=Jt.prototype.removeAllListeners=Jt.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var n,o=0;oPromise.resolve().then(t):(t,r)=>r(t,0),Wn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),VR="arraybuffer";function Gp(e,...t){return t.reduce((r,n)=>(e.hasOwnProperty(n)&&(r[n]=e[n]),r),{})}var n4=Wn.setTimeout,o4=Wn.clearTimeout;function sa(e,t){t.useNativeTimers?(e.setTimeoutFn=n4.bind(Wn),e.clearTimeoutFn=o4.bind(Wn)):(e.setTimeoutFn=Wn.setTimeout.bind(Wn),e.clearTimeoutFn=Wn.clearTimeout.bind(Wn))}var i4=1.33;function HR(e){return typeof e=="string"?a4(e):Math.ceil((e.byteLength||e.size)*i4)}function a4(e){let t=0,r=0;for(let n=0,o=e.length;n=57344?r+=3:(n++,r+=4);return r}function Kp(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function UR(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function qR(e){let t={},r=e.split("&");for(let n=0,o=r.length;n{this.readyState="paused",t()};if(this._polling||!this.writable){let n=0;this._polling&&(n++,this.once("pollComplete",function(){--n||r()})),this.writable||(n++,this.once("drain",function(){--n||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){let r=n=>{if(this.readyState==="opening"&&n.type==="open"&&this.onOpen(),n.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(n)};WR(t,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){let t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,zR(t,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=Kp()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(t,r)}};var GR=!1;try{GR=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var KR=GR;function s4(){}var cx=class extends ff{constructor(t){if(super(t),typeof location<"u"){let r=location.protocol==="https:",n=location.port;n||(n=r?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||n!==t.port}}doWrite(t,r){let n=this.request({method:"POST",data:t});n.on("success",r),n.on("error",(o,i)=>{this.onError("xhr post error",o,i)})}doPoll(){let t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(r,n)=>{this.onError("xhr poll error",r,n)}),this.pollXhr=t}},Ga=class e extends Jt{constructor(t,r,n){super(),this.createRequest=t,sa(this,n),this._opts=n,this._method=n.method||"GET",this._uri=r,this._data=n.data!==void 0?n.data:null,this._create()}_create(){var t;let r=Gp(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;let n=this._xhr=this.createRequest(r);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&n.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var o;n.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(n.getResponseHeader("set-cookie"))),n.readyState===4&&(n.status===200||n.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof n.status=="number"?n.status:0)},0))},n.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=e.requestsCount++,e.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=s4,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete e.requests[this._index],this._xhr=null}}_onLoad(){let t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};Ga.requestsCount=0;Ga.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",XR);else if(typeof addEventListener=="function"){let e="onpagehide"in Wn?"pagehide":"unload";addEventListener(e,XR,!1)}}function XR(){for(let e in Ga.requests)Ga.requests.hasOwnProperty(e)&&Ga.requests[e].abort()}var l4=function(){let e=YR({xdomain:!1});return e&&e.responseType!==null}(),Ka=class extends cx{constructor(t){super(t);let r=t&&t.forceBase64;this.supportsBinary=l4&&!r}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Ga(YR,this.uri(),t)}};function YR(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||KR))return new XMLHttpRequest}catch{}if(!t)try{return new Wn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var QR=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",fx=class extends la{get name(){return"websocket"}doOpen(){let t=this.uri(),r=this.opts.protocols,n=QR?{}:Gp(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,r,n)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let r=0;r{try{this.doWrite(n,i)}catch{}o&&aa(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let t=this.opts.secure?"wss":"ws",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=Kp()),this.supportsBinary||(r.b64=1),this.createUri(t,r)}},ux=Wn.WebSocket||Wn.MozWebSocket,Xa=class extends fx{createSocket(t,r,n){return QR?new ux(t,r,n):r?new ux(t,r):new ux(t)}doWrite(t,r){this.ws.send(r)}};var uc=class extends la{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{let r=jR(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=t.readable.pipeThrough(r).getReader(),o=BR();o.readable.pipeTo(t.writable),this._writer=o.writable.getWriter();let i=()=>{n.read().then(({done:s,value:l})=>{s||(this.onPacket(l),i())}).catch(s=>{})};i();let a={type:"open"};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this._writer.write(a).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let r=0;r{o&&aa(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}};var dx={websocket:Xa,webtransport:uc,polling:Ka};var c4=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,u4=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function fc(e){if(e.length>8e3)throw"URI too long";let t=e,r=e.indexOf("["),n=e.indexOf("]");r!=-1&&n!=-1&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let o=c4.exec(e||""),i={},a=14;for(;a--;)i[u4[a]]=o[a]||"";return r!=-1&&n!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=f4(i,i.path),i.queryKey=d4(i,i.query),i}function f4(e,t){let r=/\/{2,9}/g,n=t.replace(r,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&n.splice(0,1),t.slice(-1)=="/"&&n.splice(n.length-1,1),n}function d4(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,i){o&&(r[o]=i)}),r}var px=typeof addEventListener=="function"&&typeof removeEventListener=="function",Yp=[];px&&addEventListener("offline",()=>{Yp.forEach(e=>e())},!1);var ol=class e extends Jt{constructor(t,r){if(super(),this.binaryType=VR,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(r=t,t=null),t){let n=fc(t);r.hostname=n.host,r.secure=n.protocol==="https"||n.protocol==="wss",r.port=n.port,n.query&&(r.query=n.query)}else r.host&&(r.hostname=fc(r.host).host);sa(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(n=>{let o=n.prototype.name;this.transports.push(o),this._transportsByName[o]=n}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=qR(this.opts.query)),px&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Yp.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let r=Object.assign({},this.opts.query);r.EIO=lx,r.transport=t,this.id&&(r.sid=this.id);let n=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let t=this.opts.rememberUpgrade&&e.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let r=this.createTransport(t);r.open(),this.setTransport(r)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",e.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let r=new Error("server error");r.code=t.data,this._onError(r);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let n=0;n0&&r>this._maxPayload)return this.writeBuffer.slice(0,n);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,aa(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,r,n){return this._sendPacket("message",t,r,n),this}send(t,r,n){return this._sendPacket("message",t,r,n),this}_sendPacket(t,r,n,o){if(typeof r=="function"&&(o=r,r=void 0),typeof n=="function"&&(o=n,n=null),this.readyState==="closing"||this.readyState==="closed")return;n=n||{},n.compress=n.compress!==!1;let i={type:t,data:r,options:n};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),o&&this.once("flush",o),this.flush()}close(){let t=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),t()},n=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():t()}):this.upgrading?n():t()),this}_onError(t){if(e.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),px&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=Yp.indexOf(this._offlineEventListener);n!==-1&&Yp.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this._prevBufferLen=0}}};ol.protocol=lx;var Qp=class extends ol{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t{n||(r.send([{type:"ping",data:"probe"}]),r.once("packet",f=>{if(!n)if(f.type==="pong"&&f.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;ol.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{n||this.readyState!=="closed"&&(u(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{let p=new Error("probe error");p.transport=r.name,this.emitReserved("upgradeError",p)}}))};function i(){n||(n=!0,u(),r.close(),r=null)}let a=f=>{let p=new Error("probe error: "+f);p.transport=r.name,i(),this.emitReserved("upgradeError",p)};function s(){a("transport closed")}function l(){a("socket closed")}function c(f){r&&f.name!==r.name&&i()}let u=()=>{r.removeListener("open",o),r.removeListener("error",a),r.removeListener("close",s),this.off("close",l),this.off("upgrading",c)};r.once("open",o),r.once("error",a),r.once("close",s),this.once("close",l),this.once("upgrading",c),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{n||r.open()},200):r.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){let r=[];for(let n=0;ndx[o]).filter(o=>!!o)),super(t,n)}};var uY=dc.protocol;function JR(e,t="",r){let n=e;r=r||typeof location<"u"&&location,e==null&&(e=r.protocol+"//"+r.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=r.protocol+e:e=r.host+e),/^(https?|wss?):\/\//.test(e)||(typeof r<"u"?e=r.protocol+"//"+e:e="https://"+e),n=fc(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";let i=n.host.indexOf(":")!==-1?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+i+":"+n.port+t,n.href=n.protocol+"://"+i+(r&&r.port===n.port?"":":"+n.port),n}var xx={};q0(xx,{Decoder:()=>vx,Encoder:()=>hx,PacketType:()=>Rt,protocol:()=>nO});var m4=typeof ArrayBuffer=="function",g4=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,ZR=Object.prototype.toString,h4=typeof Blob=="function"||typeof Blob<"u"&&ZR.call(Blob)==="[object BlobConstructor]",v4=typeof File=="function"||typeof File<"u"&&ZR.call(File)==="[object FileConstructor]";function pf(e){return m4&&(e instanceof ArrayBuffer||g4(e))||h4&&e instanceof Blob||v4&&e instanceof File}function df(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,n=e.length;r=0&&e.num{delete this.acks[t];for(let s=0;s{this.io.clearTimeoutFn(i),r.apply(this,s)};a.withError=!0,this.acks[t]=a}emitWithAck(t,...r){return new Promise((n,o)=>{let i=(a,s)=>a?o(a):n(s);i.withError=!0,r.push(i),this.emit(t,...r)})}_addToQueue(t){let r;typeof t[t.length-1]=="function"&&(r=t.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...i)=>n!==this._queue[0]?void 0:(o!==null?n.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(o)):(this._queue.shift(),r&&r(null,...i)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;let r=this._queue[0];r.pending&&!t||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Rt.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(n=>String(n.id)===t)){let n=this.acks[t];delete this.acks[t],n.withError&&n.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Rt.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Rt.EVENT:case Rt.BINARY_EVENT:this.onevent(t);break;case Rt.ACK:case Rt.BINARY_ACK:this.onack(t);break;case Rt.DISCONNECT:this.ondisconnect();break;case Rt.CONNECT_ERROR:this.destroy();let n=new Error(t.data.message);n.data=t.data.data,this.emitReserved("connect_error",n);break}}onevent(t){let r=t.data||[];t.id!=null&&r.push(this.ack(t.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){let r=this._anyListeners.slice();for(let n of r)n.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){let r=this,n=!1;return function(...o){n||(n=!0,r.packet({type:Rt.ACK,id:t,data:o}))}}onack(t){let r=this.acks[t.id];typeof r=="function"&&(delete this.acks[t.id],r.withError&&t.data.unshift(null),r.apply(this,t.data))}onconnect(t,r){this.id=t,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Rt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){let r=this._anyListeners;for(let n=0;n0&&e.jitter<=1?e.jitter:0,this.attempts=0}il.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-r:e+r}return Math.min(e,this.max)|0};il.prototype.reset=function(){this.attempts=0};il.prototype.setMin=function(e){this.ms=e};il.prototype.setMax=function(e){this.max=e};il.prototype.setJitter=function(e){this.jitter=e};var mc=class extends Jt{constructor(t,r){var n;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(r=t,t=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,sa(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((n=r.randomizationFactor)!==null&&n!==void 0?n:.5),this.backoff=new il({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=t;let o=r.parser||xx;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var r;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(r=this.backoff)===null||r===void 0||r.setMin(t),this)}randomizationFactor(t){var r;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(r=this.backoff)===null||r===void 0||r.setJitter(t),this)}reconnectionDelayMax(t){var r;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(r=this.backoff)===null||r===void 0||r.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new dc(this.uri,this.opts);let r=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;let o=mo(r,"open",function(){n.onopen(),t&&t()}),i=s=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",s),t?t(s):this.maybeReconnectOnOpen()},a=mo(r,"error",i);if(this._timeout!==!1){let s=this._timeout,l=this.setTimeoutFn(()=>{o(),i(new Error("timeout")),r.close()},s);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(o),this.subs.push(a),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let t=this.engine;this.subs.push(mo(t,"ping",this.onping.bind(this)),mo(t,"data",this.ondata.bind(this)),mo(t,"error",this.onerror.bind(this)),mo(t,"close",this.onclose.bind(this)),mo(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(r){this.onclose("parse error",r)}}ondecoded(t){aa(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,r){let n=this.nsps[t];return n?this._autoConnect&&!n.active&&n.connect():(n=new pc(this,t,r),this.nsps[t]=n),n}_destroy(t){let r=Object.keys(this.nsps);for(let n of r)if(this.nsps[n].active)return;this._close()}_packet(t){let r=this.encoder.encode(t);for(let n=0;nt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,r){var n;this.cleanup(),(n=this.engine)===null||n===void 0||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let r=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},r);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}};var mf={};function gf(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};let r=JR(e,t.path||"/socket.io"),n=r.source,o=r.id,i=r.path,a=mf[o]&&i in mf[o].nsps,s=t.forceNew||t["force new connection"]||t.multiplex===!1||a,l;return s?l=new mc(n,t):(mf[o]||(mf[o]=new mc(n,t)),l=mf[o]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(gf,{Manager:mc,Socket:pc,io:gf,connect:gf});var oO="507";var Jp=oO.trim();var bx=class{socket;constructor(t){let r="/"+[t.split("/").slice(3).filter(n=>n).join("/"),"sd-ppp/"].filter(n=>n).join("/");t=t.split("/").slice(0,3).join("/"),this.socket=gf(t,{transports:["websocket"],path:r,query:{api_level:Jp},rejectUnauthorized:!1,autoConnect:!1}),this.socket.on("connect",()=>{this.socket.io.engine.binaryType="blob"})}get id(){return this.socket.id}connect(){this.socket.connect()}close(){this.socket.close()}};function iO(...e){return e.reduce((t,r)=>r(t),bx)}function aO(e){return class extends e{constructor(t){super(t),this.socket.on("F_photoshop",(r,n)=>{try{r.action=="extractPSD"&&mt.graph.nodes.forEach(o=>{o.type=="SDPPP Get Document"&&this.extractPSD(o,r.params.from_sid,"")}),n({})}catch(o){n({error:o instanceof Error?o.message:o?.toString()||"unknown error"})}})}async importPSDDataURLFromPhotoshop(t,r,n){let o=await new Promise((a,s)=>{this.socket.emit("B_photoshop",{action:"psd",sid:t,params:{action:"get",fromSSID:n,document_identify:r}},l=>{a(l.data)})});var i=new FileReader;return i.readAsDataURL(o),new Promise(a=>{i.onloadend=function(){var s=i.result;a(s)}})}async exportPSDDataURLToPhotoshop(t,r,n,o){let i=await fetch(n).then(a=>a.arrayBuffer());await new Promise((a,s)=>{this.socket.emit("B_photoshop",{action:"psd",sid:t,params:{action:"extract",fromSSID:o,document_identify:r,data:i}},l=>{a(l)})})}async sendImage(t,r){return new Promise((n,o)=>{this.socket.emit("B_photoshop",{action:"sendImages",sid:t,params:r},i=>{i&&i.error?o(new Error(i.error)):n(i)})})}async getSpecialIdentifierValue(t,r){return new Promise((n,o)=>{this.socket.emit("B_photoshop",{action:"getSpecialIdentifierValue",sid:t,params:r},i=>{i&&i.error?o(new Error(i.error)):n(i)})})}async extractPSD(t,r,n){t.properties.psd&&await this.exportPSDDataURLToPhotoshop(r,n,t.properties.psd,this.socket.id||"??").then(async()=>{await new Promise(o=>setTimeout(o,300)),globalThis.app.canvas.draw(!0,!0)}).catch(console.error)}}}var sO={last_node_id:0,last_link_id:0,nodes:[],links:[],groups:[],config:{},extra:{},version:.4};var Ya=[];ia.widgetable=ia.widgetable||{};ia.widgetable.add=function(e,t){typeof t=="function"?Ya.push([e,{formatter:t,setter:null}]):Ya.push([e,t])};function em(e,t,r){let n=Ya.find(([s])=>s=="__DEFAULT__"),o=Ya.find(([s])=>Sx(s,e.type))||n,i=!1;if(o){let s=o[1].setter;s&&(i=!!s(e,t,r))}i||(e.widgets[t].value=r,e.widgets[t].callback?.(r)),(mt.workflowManager||mt.extensionManager.workflow).activeWorkflow?.changeTracker.checkState()}function hf(e){let t={},r=Ya.find(([n])=>n=="__DEFAULT__");return e.nodes.forEach(n=>{if(!n.widgets||n.widgets.length==0)return;let o=Ya.find(([i])=>Sx(i,n.type))||r;if(o)try{let i=o[1].formatter(n);i&&(t[n.id]=i.widgets.map(a=>a.value))}catch{t[n.id]=[]}}),t}function tm(e,t){if(!e)return{widgetTableID:"",widgetTablePath:"",widgetTablePersisted:!1,groups:{},nodes:{},nodeIndexes:[],extraOptions:{useSliderForNumberWidget:Xe.data.useSliderForNumberWidget}};let r=e.groups.map(o=>(o.recomputeInsideNodes(),{id:o.id,name:o.title,color:o.color,nodeIDs:o.nodes.map(i=>i.id)})),n=e.nodes.map(o=>{if(o.mode!=0)return;let i=Zp(o);if(!i||i.startsWith(".")||!o.widgets||o.widgets.length==0)return;let a=Ya.find(([u])=>Sx(u,o.type));if(a)try{let u=a[1].formatter(o);if(u)return u.id=o.id,u.uiWeightSum=u.widgets.reduce((f,p)=>f+(p.uiWeight||12),0),u}catch(u){return{id:o.id,title:i,uiWeightSum:12,widgets:[{outputType:"error",value:me("convert widget {0} failed:",a[0])+(u.message||u||"")+(u?.stack||"")}]}}if(!i.startsWith("#"))return null;let s=o.widgets,l=Ya.find(([u])=>u=="__DEFAULT__");if(l){let u=l[1].formatter(o);if(u)return Object.assign(u,{uiWeightSum:u.widgets.reduce((f,p)=>f+(p.uiWeight||12),0)})}let c={id:o.id,title:i,widgets:s.map(u=>({name:u.label||u.name,outputType:u.type||"string",value:u.value,options:u.options}))};return Object.assign(c,{uiWeightSum:c.widgets.reduce((u,f)=>u+(f.uiWeight||12),0)})}).filter(Boolean).sort((o,i)=>{let a=Zp(o),s=Zp(i);return a=a.startsWith("#")?a.slice(1).trim():a.trim(),s=s.startsWith("#")?s.slice(1).trim():s.trim(),a.localeCompare(s)});return{widgetTablePath:t.activeState.extra.sdppp_workflow_alias||t.path,widgetTablePersisted:t.isPersisted,widgetTableID:t.activeState.id,groups:r,nodes:n.reduce((o,i)=>(o[i.id]=i,o),{}),nodeIndexes:n.map(o=>o.id),extraOptions:{useSliderForNumberWidget:Xe.data.useSliderForNumberWidget}}}function Sx(e,t){let r=e.replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*").replace(/\?/g,".");return new RegExp(`^${r}$`).test(t)}function Zp(e,t=""){let r=t||e.title||"";return e.setProperty&&(r.startsWith("#")||r.startsWith("."))?e.setProperty("sdppp_widgetable_title",r):r=e.properties?.sdppp_widgetable_title||r,r}ia.getNodeTitle=Zp;var S4=new Map,al=S4;function cO(e){return class extends e{workflowManager;constructor(t){super(t),this.workflowManager=mt.workflowManager||mt.extensionManager.workflow,this.socket.on("F_workflow",async(r,n)=>{if(r.action=="open"||r.action=="save"||r.action=="list"||r.action=="setWidgetValue"||r.action=="run"||r.action=="setNodeTitle"||r.action=="logout"||r.action=="interrupt"||r.action=="clearQueue"||r.action=="reboot"||r.action=="setComfyOrgAPIKey")try{let o=await this[r.action](r.params);n(o||{})}catch(o){n({error:o.stack||o.message||o})}else n({error:"Invalid action"})})}async logout(){this.socket.disconnect(),document.querySelector(".pi-sign-out").parentElement.click()}async run(t){Cx||C4();let r=t.size,n=!1,o="",i={};try{rm=[];let s=await mt.queuePrompt(1,r);rm.forEach(l=>{if(!n)if(l.error)n=!0,i=a(l.error.response.node_errors),Object.assign(i,{"-1":l.error.response.error.message});else{let c=l.result.prompt_id;al.set(c,t.from_sid)}})}catch(s){n=!0,i={"-1":s.message||s.stack||s.toString()}}n&&(o?Xe.setLastError(o):Xe.setWidgetTableErrors(i));function a(s){let l={};return Object.keys(s).forEach(c=>{let u=c.split(":")[0],f=mt.graph.nodes.find(p=>p.id==u);l[u]=`[${f?.title||u}]`+s[c].errors.map(JSON.stringify).join(` `)}),l}}async list(t){let n=this.workflowManager.workflows.map(o=>o.path.replace("workflows/",""));try{let o=new Headers,i=localStorage.getItem("Comfy.userId");i&&o.set("comfy-user",i);let a=await fetch("./api/userdata/workflows%2F.index.json",{headers:o}),s=[];a.ok&&(s=(await a.json()).favorites.map(c=>c.replace("workflows/",""))),n.sort((l,c)=>{let u=s.includes(l),f=s.includes(c);return u&&!f?-1:!u&&f?1:l.localeCompare(c)})}catch(o){console.warn("Error fetching favorites, returning unsorted workflows:",o)}return{workflows:n,error:""}}setWidgetValue(t){t.values.forEach(({nodeID:r,widgetIndex:n,value:o})=>{let i=mt.graph.nodes.find(a=>a.id==r);!i||o==i.widgets[n].value||em(i,n,o)})}async open(t){let{workflow_path:r}=t;try{Xe.setLastError(""),Xe.setWidgetTableErrors({}),r.startsWith("sdppp://")?await this.openSDPPPWorkflow(t):await this.openComfyWorkflow(t)}catch(n){throw n}}async openSDPPPWorkflow(t){let r=t.workflow_path.replace("sdppp://",""),n=await fetch("/sd-ppp-static/sdppp-workflows/"+r).then(o=>o.json());n.extra.sdppp_workflow_alias=t.workflow_path,await mt.loadGraphData(n)}async openComfyWorkflow(t){let{workflow_path:r,from_sid:n,reset:o}=t,i=this.workflowManager.workflows.find(a=>a.fullFilename===r||a.path===r||a.path==="workflows/"+r);(i.isOpen||this.workflowManager.isOpen?.(i))&&!o||(this.workflowManager.openWorkflows.length===1?await mt.loadGraphData(sO):await lO(this.workflowManager,this.workflowManager.openWorkflows[0]==i?this.workflowManager.openWorkflows[1]:this.workflowManager.openWorkflows[0]),await this.workflowManager.closeWorkflow(i,!1),await new Promise(a=>requestAnimationFrame(a)),await lO(this.workflowManager,i),await new Promise(a=>setTimeout(a,500)),Xe.data.widgetTableStructure&&await this.socket.emit("B_workflow",{action:"getStoredWidgetValue",sid:n,params:{widgetTableID:Xe.data.widgetTableStructure.widgetTableID,widgetTablePath:Xe.data.widgetTableStructure.widgetTablePath,widgetTablePersisted:Xe.data.widgetTableStructure.widgetTablePersisted}},a=>{this.setWidgetValue(a)}))}async save(t){let{workflow_path:r,from_sid:n}=t,o=this.workflowManager.workflows.find(i=>i.fullFilename===r||i.path===r||i.path==="workflows/"+r);if(!o)throw new Error("Workflow not found");this.workflowManager.activeWorkflow?.id!=o.id&&this.open({workflow_path:r,from_sid:n,reset:!1}),o.changeTracker.checkState(),await this.workflowManager.saveWorkflow(o)}setNodeTitle(t){let{node_id:r,title:n}=t,o=mt.graph.nodes.find(i=>i.id==r);if(!o)throw new Error("Node not found");o.title=n,o.setProperty("sdppp_widgetable_title",n)}async interrupt(t){await mt.api.interrupt()}async clearQueue(t){await mt.api.clearItems("queue")}async reboot(t){let r=await fetch("./api/manager/reboot");return r.status==404?{error:me("ComfyManager not found, cannot reboot"),success:!1}:r.status==200?{success:!0}:{error:me("Failed to reboot ComfyUI")+r.statusText,success:!1}}async setComfyOrgAPIKey(t){let{api_key:r}=t;localStorage.setItem("comfy_api_key",r),location.reload()}}}async function lO(e,t){mt.workflowManager==e?await t.load():(await e.openWorkflow(t),await mt.loadGraphData(JSON.parse(JSON.stringify(t.activeState)),!0,!0,t,{}))}var Cx=!1,rm=[];function C4(){if(Cx)return;let e=an.queuePrompt;an.queuePrompt=async(...t)=>{try{let r=await e.call(an,...t);return rm.push({error:null,result:r}),r}catch(r){throw rm.push({error:r,result:null}),r}},Cx=!0}var Bn=class e extends iO(_R(Xe,"comfy"),PR(zn,"photoshop"),aO,cO){static instance;constructor(){super(location.href.split("?")[0].split("#")[0]),e.instance=this}};function nm(e){return e.replace(/^workflows\//,"").replace(/\.json$/,"").split("://").pop()}var om=class{widget;node;originLabel="";indexInNode=0;constructor(t,r){this.widget=r,this.node=t,this.indexInNode=t.widgets.indexOf(r);let n=this;r.callback=function(...o){n.widget!=this&&(n.widget=n.node.widgets[n.indexInNode]=this),n._callbacks.forEach(i=>i(...o))},this.originLabel=r.label}_callbacks=[];onChange(t){this._callbacks.push(t)}removeOnChange(t){this._callbacks.splice(this._callbacks.indexOf(t),1)}},im=class extends om{lockMode(t,r){if(t){if(this.widget.type=="button")return;this.widget.type="button",this.widget.value="",this.widget.label=r}else{if(this.widget.type=="combo")return;this.widget.type="combo",this.widget.value="",this.widget.label=this.originLabel}}},Qa=class e extends im{getPSStore(){if(!this.widget.value||this.widget.value.indexOf("/")==-1)return null;let[t]=this.widget.value.split("/");return zn.getStoreByName(t)?.data||null}static create(t,r){let n=nx(),o=t.size.slice(0),i=t.addWidget("combo",r,n[0]||"",()=>{},{forceInput:!0,values:nx});return i.serializeValue=async()=>{let a=cc(i.value);if(!a)return JSON.stringify({instance_id:me("document {0} not found",i.value),identify:"",canvasDirtyID:0,selectionDirtyID:0});if(i.type=="button")return JSON.stringify({instance_id:"",identify:"",canvasDirtyID:0,selectionDirtyID:0});let s=a.identify;return Xt.is_SPECIAL_DOCUMENT_CURRENT(s)&&(s=(await Bn.instance.getSpecialIdentifierValue(a.instance_id,{identifier:s})).value),JSON.stringify({instance_id:a.instance_id,identify:s,canvasDirtyID:a.documentData.canvasDirtyID,selectionDirtyID:a.documentData.selectionDirtyID})},t.size=[o[0],Math.max(o[1],t.size[1])],new e(t,i)}static link(t,r){if(r.type=="combo")return new e(t,r);let n=e.create(t,r.name),o=t.widgets.indexOf(r);return t.widgets[o]=t.widgets.pop(),n}constructor(t,r){super(t,r),this.onChange(n=>{if(!isNaN(+n))r.value=Object.keys(r.options.values)[+n];else if(typeof n=="string"){let o=n.split("/");Xt.is_SPECIAL_DOCUMENT_CURRENT(o[1])&&(r.value=o[0]+"/"+Xt.getSpecialDocumentCurrent())}})}update(){fO(this.widget,this.widget.options.values,!0)}selectConcreteDocument(){if(Xt.is_SPECIAL_DOCUMENT_CURRENT(this.widget.value)){let[t]=this.widget.value.split("/"),r=zn.getStoreByName(t);if(!r)return console.warn(`store ${t} not found`);this.widget.value=ox(r.data.documents[r.data.activeDocumentID].identify,t)}}},gc=class e extends im{documentWidgetByLinked=null;extraOptions;constructor(t,r,n){super(t,r),this.extraOptions=n.extraOptions,this.update=this.update.bind(this),this.onChange(o=>{this.node.setProperty("layerWidgetDetail"+this.indexInNode,this.currentOptionsDetail[Object.values(this.currentOptions).indexOf(this.widget.value)]),typeof o=="string"&&(o=Xt.fixI18n(o))}),r.serializeValue=async()=>{if(r.type=="button")return JSON.stringify({identify:r.value,dirtyID:0});let o=this.documentWidgetByLinked;if(!o)return JSON.stringify({identify:r.value,dirtyID:0});let i=cc(o.widget.value);if(!i)return JSON.stringify({identify:r.value,dirtyID:0});let a=r.value;Xt.is_SPECIAL_LAYER_SELECTED_LAYER(a)&&(a=(await Bn.instance.getSpecialIdentifierValue(i.instance_id,{identifier:a})).value);let s=0;return Xt.is_SPECIAL_LAYER_NEW_LAYER(a)||Xt.is_SPECIAL_LAYER_USE_CANVAS(a)?s=Ai.getCanvasDirtyID(i.documentData):s=Ai.getLayerDirtyID(i.documentData,a),JSON.stringify({identify:a,dirtyID:s})}}static link(t,r,n){if(r.type=="combo")return new e(t,r,n);let o=e.create(t,r.name,n),i=t.widgets.indexOf(r);return t.widgets[i]=t.widgets.pop(),o}linkDocumentWidget(t){this.documentWidgetByLinked&&t?.removeOnChange(this.update),this.documentWidgetByLinked=t,this.documentWidgetByLinked&&this.documentWidgetByLinked.onChange(this.update)}update(){let t=this.documentWidgetByLinked;this.updateOptions(t)}currentOptions=[];currentOptionsDetail=[];updateOptions(t){if(this.currentOptions=this.extraOptions.slice(0),this.currentOptionsDetail=new Array(this.currentOptions.length).fill({id:0,name:"",identify:"",level:0,fullPath:""}),t&&t.widget.value){let r=cc(t.widget.value);if(!r)return;r.documentData.layers.map(n=>{this.currentOptions.push(n.identify),this.currentOptionsDetail.push(n)})}if(this.widget.options.values=this.currentOptions,Object.values(this.currentOptions).indexOf(this.widget.value)==-1){let r=this.node.properties["layerWidgetDetail"+this.indexInNode];if(r){let n=this.currentOptionsDetail.findIndex(o=>o.fullPath==r.fullPath);if(n!=-1){this.widget.value=this.currentOptions[n];return}}}}static create(t,r,n){let o=t.size.slice(0),i=t.addWidget("combo",r,n.extraOptions[0]||"",()=>{},{forceInput:!0,values:n.extraOptions});return t.size=[o[0],Math.max(o[1],t.size[1])],new e(t,i,{extraOptions:n.extraOptions})}},w4={extraOptions:[],documentWidgetInNode:null},vf=class e extends gc{documentWidgetInNode;constructor(t,r,n=w4){super(t,r,n),this.documentWidgetInNode=n.documentWidgetInNode,this.onChange(()=>{(this.documentWidgetInNode||this.documentWidgetByLinked)?.selectConcreteDocument()}),r.serializeValue=async()=>{let o=this.documentWidgetInNode||this.documentWidgetByLinked;if(!o)return JSON.stringify({identify:r.value,dirtyID:0});let i=cc(o.widget.value);if(!i)return JSON.stringify({identify:r.value,dirtyID:0});let a=r.value;Xt.is_SPECIAL_LAYER_SELECTED_LAYER(a)&&(a=(await Bn.instance.getSpecialIdentifierValue(i.instance_id,{identifier:a})).value);let s=0;return Xt.is_SPECIAL_LAYER_NEW_LAYER(a)||Xt.is_SPECIAL_LAYER_USE_CANVAS(a)?s=Ai.getCanvasDirtyID(i.documentData):s=Ai.getLayerDirtyID(i.documentData,a),JSON.stringify({identify:a,dirtyID:s})},this.documentWidgetInNode?.onChange(this.update)}update(){let t=this.documentWidgetInNode||this.documentWidgetByLinked;t?.widget.value&&(this.widget.options.values=RR(t.widget.value,this.extraOptions),fO(this.widget,this.widget.options.values))}static create(t,r,n){let o=t.size.slice(0),i=t.addWidget("combo",r,n.extraOptions[0]||"",()=>{},{forceInput:!0,values:n.extraOptions});return t.size=[o[0],Math.max(o[1],t.size[1])],new e(t,i,{documentWidgetInNode:n.documentWidgetInNode,extraOptions:n.extraOptions})}},uO=0,hc=class extends om{constructor(t,r){if(!r){let n=t.size.slice(0);r=t.addWidget("button","sdppp","",()=>{}),t.size=[n[0],Math.max(n[1],t.size[1])],r.serializeValue=async()=>{let o={lastOpenedWorkflow:t.properties.sdppp_send_prefix||nm(Xe.data.widgetTableStructure.widgetTablePath)},i=ix(t);if(i?.widgets[0]){let a=await i.widgets[0].serializeValue();try{o.document=JSON.parse(a),o.isLocal=zn.getStore(o.document.instance_id)?.data.isLocal||!1}catch{return""}}return JSON.stringify(o)}}super(t,r),this.onChange(()=>{zn.storeCount()==0&&Date.now()-uO>3e3&&(uO=Date.now(),location.href="/sd-ppp-static/sd-ppp_PS.ccx?_="+Date.now(),setTimeout(()=>{app.ui.dialog.show(`

${me("How to use .ccx file")}

${me("1. If you have installed Adobe Creative Cloud")}

${me("Just double click the .ccx file, it will install the plugin automatically")}

${me("2. If you don't have Adobe Creative Cloud")}

${me("Rename .ccx to .zip and extract it into ")}[${me("Photoshop directory")}]/Plug-ins ${me("or")} [${me("Photoshop directory")}]/Plug-ins/Generator

`)},300))})}update(){this.widget.label=zn.storeCount()>0&&Bn.instance.id?me("current ComfyUI pageid: {0}",Bn.instance.id.slice(0,4)):me("download PS plugin (.ccx)")}documentWidgetByLinked=null;linkDocumentWidget(t){this.documentWidgetByLinked=t}};function fO(e,t,r=!1){t instanceof Function&&(t=t()),e.value||(e.value=t[0]),t.indexOf(e.value)==-1&&r&&(e.value=t[0])}var ca=class e{static nodeMap=new WeakMap;static registerNodeType(t,r,n){n.prehandleNodeType&&n.prehandleNodeType(t.nodeData||r);let o=t.prototype.onAdded,i=t.prototype.onRemoved;t.prototype.onAdded=async function(...s){o&&await o.call(this,...s);let l=new n(this);e.nodeMap.set(this,l),await l.update()},t.prototype.onRemoved=async function(...s){i&&await i.call(this,...s);let l=e.nodeMap.get(this);e.nodeMap.delete(this),l?.onDestroy()},t.prototype.onDrawForeground=async function(s){let l=e.nodeMap.get(this);l?.onDrawForeground(s),await l?.update()},t.prototype.onConfigure=async function(...s){let l=e.nodeMap.get(this);l?.onConfigure(s[0]),await l?.update()};let a=t.prototype.onConnectionsChange;t.prototype.onConnectionsChange=async function(s,l,c,u){let f=e.nodeMap.get(this);return s==1&&(f?.inputConnectionChange(l,c&&u),await f?.update()),s==2&&f?.outputConnectionChange(l,c),a?.apply(this,arguments)}}node;constructor(t){this.node=t}inputConnectionChange(t,r){}outputConnectionChange(t,r){}onDrawForeground(t){}onDestroy(){}onConfigure(t){this.node.setProperty("sdppp-version",Jp)}};var Mi=class extends ca{downloadWidget;constructor(t){super(t),this.downloadWidget||(this.downloadWidget=new hc(this.node))}onConfigure(t){super.onConfigure(t)}onDrawForeground(t){this.node.flags.collapsed||OR()||(t.save(),t.fillStyle="rgba(255, 0, 0, 0.2)",t.fillRect(0,0,this.node.size[0],this.node.size[1]),t.fillStyle="white",t.textAlign="center",t.fillText(me("Photoshop Disconnected!"),this.node.size[0]/2,5),t.restore())}async update(){this.downloadWidget?.update()}};var am=class{node;inputIndex;get index(){return this.inputIndex}constructor(t,r){this.node=t,this.inputIndex=r}update(){}connected=!1},yf=class extends am{get documentWidget(){return dO(this.node,this.node.inputs[this.inputIndex])?.documentWidget||null}},xf=class extends am{get documentWidget(){return dO(this.node,this.node.inputs[this.inputIndex])?.documentWidget||null}};function dO(e,t){if(!e.graph.links[t.link])return null;let r=e.graph.links[t.link].origin_id,n=e.graph.getNodeById(r);for(;n.type=="Reroute";)r=e.graph.links[n.inputs[0].link].origin_id,n=e.graph.getNodeById(r);return ca.nodeMap.get(n)}var ko=class extends Mi{get documentWidget(){let t=this.inputs.find(r=>r.connected&&(r instanceof yf||r instanceof xf));return t?t.documentWidget:this.sdpppWidgets.find(r=>r instanceof Qa)}inputs=[];sdpppWidgets=[];constructor(t){super(t);let r=null;for(let n=0;n{if(!t.label)try{t.label=me(t.name)}catch{t.label=t.name}}),this.sdpppWidgets?.forEach(t=>{t.update()}),this.inputs?.forEach(t=>{t.update()}),super.update()}inputConnectionChange(t,r){super.inputConnectionChange(t,r),this.inputs.forEach(n=>{if(n.index==t){n.connected=r;let o=this.documentWidget;this.downloadWidget&&this.downloadWidget.linkDocumentWidget(o),this.sdpppWidgets.forEach(i=>{(i instanceof gc||i instanceof hc)&&i.linkDocumentWidget(o)})}})}};var sm=class extends ko{get documentWidget(){return this.inputs[0]?.documentWidget}async update(){super.update(),this.node.inputs.forEach(t=>t.label=me(t.name)),this.node.outputs.forEach(t=>t.label=me(t.name))}},vc=class extends ko{async update(){super.update(),this.node.inputs.forEach(t=>t.label=me(t.name)),this.node.outputs.forEach(t=>t.label=me(t.name))}},lm=class extends ko{async update(){super.update(),this.node.inputs.forEach(t=>t.label=me(t.name)),this.node.outputs.forEach(t=>t.label=me(t.name))}},cm=class extends ko{get documentWidget(){return this.inputs[0]?.documentWidget}async update(){super.update(),this.node.inputs.forEach(t=>t.label=me(t.name)),this.node.outputs.forEach(t=>t.label=me(t.name)),this.node.widgets[0].label=me(this.node.widgets[0].name)}},um=class extends ko{get documentWidget(){return this.inputs[0]?.documentWidget}async update(){super.update(),this.node.inputs.forEach(t=>t.label=me(t.name)),this.node.outputs.forEach(t=>t.label=me(t.name)),this.node.widgets[0].label=me(this.node.widgets[0].name)}},fm=class extends Mi{async update(){super.update(),this.node.inputs[0].label=me(this.node.inputs[0].name),this.node.inputs[1].label=me(this.node.inputs[1].name),this.node.outputs[0]&&(this.node.outputs[0].label=me(this.node.outputs[0].name))}},dm=class extends Mi{static prehandleNodeType(t){t.input.optional.document&&delete t.input.optional.document}async update(){super.update(),this.node.inputs[0].label=me(this.node.inputs[0].name),this.node.outputs[0]&&(this.node.outputs[0].label=me(this.node.outputs[0].name))}},pm=class extends ko{get documentWidget(){return this.sdpppWidgets[0]}psdWidget;extractPSD(t,r){this.node.properties.psd&&Bn.instance.exportPSDDataURLToPhotoshop(t,r,this.node.properties.psd,Xe.data.ssid).then(async()=>{await new Promise(n=>setTimeout(n,300)),globalThis.app.canvas.draw(!0,!0)}).catch(console.error)}constructor(t){super(t),this.psdWidget=t.addWidget("button","","",()=>{if(!this.documentWidget.widget.value)return;let r=zn.getAllPhotoshopDocumentData(),[n,o]=this.documentWidget.widget.value.split("/");this.node.properties.psd?this.extractPSD(r[n].sid,o):Bn.instance.importPSDDataURLFromPhotoshop(r[n].sid,o,Xe.data.ssid).then(i=>{this.node.setProperty("psd",i)})},{})}async update(){super.update(),this.node.outputs.forEach(t=>t.label=me(t.name)),this.node.properties.psd?(Xe.setHasPSDNodes(!0),this.psdWidget.label=me("extract saved .psd to Photoshop")):(Xe.setHasPSDNodes(!1),this.psdWidget.label=me("save .psd to this workflow"))}},mm=class extends ko{async update(){super.update(),this.node.inputs.forEach(r=>r.label=me(r.name)),this.node.outputs.forEach(r=>r.label=me(r.name));let t=[];if(this.documentWidget){let r=this.documentWidget.getPSStore();r&&(t=r.actions)}this.node.widgets[0].options.values=t,this.node.constructor.nodeData.input.required.action[0]=t}};var gm=class extends Mi{static prehandleNodeType(t){t.input.optional.document&&delete t.input.optional.document}documentWidget;layerWidget;constructor(t){let r=Qa.create(t,"document"),n=vf.create(t,"layer_or_group",{documentWidgetInNode:r,extraOptions:Xt.getSpecialLayerForGet()});super(t),this.documentWidget=r,this.layerWidget=n,this.node.widgets[0].name=="quality"?(this.node.widgets[1]=r.widget,this.node.widgets[2]=n.widget):(this.node.widgets[0]=r.widget,this.node.widgets[1]=n.widget)}onConfigure(t){if(t.properties["sdppp-version"])if(+t.properties["sdppp-version"]<=410){if(this.node.widgets[0].value===!0||this.node.widgets[0].value==="true"){let r=comfyAPI.app.app.addNodeOnGraph(vm["SDPPP Get Selection"],{pos:this.node.pos});new vc(r),this.node.outputs[0].links?.length?comfyAPI.app.app.addNodeOnGraph(vm.JoinImageWithAlpha,{pos:[this.node.pos[0]+r.size[0]+10,this.node.pos[1]-20]}):r.size=this.node.size,comfyAPI.app.app.graph.remove(this.node)}this.node.widgets[0].value=t.widgets_values[1],this.node.widgets[1].value=t.widgets_values[2]}else+t.properties["sdppp-version"]<504&&this.node.widgets[0].name=="quality"&&(this.node.widgets[0].value=100,this.node.widgets[1].value=t.widgets_values[0],this.node.widgets[2].value=t.widgets_values[1]);super.onConfigure(t)}async update(){this.documentWidget.lockMode(this.layerLinked,me("document linked")),this.layerWidget.lockMode(this.layerLinked,me("layer linked")),this.documentWidget.update(),this.layerWidget.update(),super.update(),this.node.widgets.forEach(t=>{if(!t.label)try{t.label=me(t.name)}catch{}}),this.node.inputs.forEach(t=>{if(!t.label)try{t.label=me(t.name)}catch{}}),this.node.outputs.forEach(t=>{if(!t.label)try{t.label=me(t.name)}catch{}})}layerLinked=!1;inputConnectionChange(t,r){super.inputConnectionChange(t,r),t==0&&(this.layerLinked=r)}},hm=class extends Mi{static prehandleNodeType(t){t.input.optional.document&&delete t.input.optional.document}documentWidget;layerWidget;constructor(t){let r=Qa.create(t,"document"),n=vf.create(t,"layer_or_group",{documentWidgetInNode:r,extraOptions:Xt.getSpecialLayerForSend()});super(t),this.documentWidget=r,this.layerWidget=n}async update(){this.documentWidget?.lockMode(this.layerLinked,me("document linked")),this.layerWidget?.lockMode(this.layerLinked,me("layer linked")),this.documentWidget.update(),this.layerWidget.update(),super.update(),this.node.widgets[0].label||(this.node.widgets[0].label=me(this.node.widgets[0].name)),this.node.widgets[1].label||(this.node.widgets[1].label=me(this.node.widgets[1].name)),this.node.inputs[0].label=me(this.node.inputs[0].name),this.node.inputs[1].label=me(this.node.inputs[1].name),this.node.inputs[2].label=me(this.node.inputs[2].name),this.node.outputs[0].label=me(this.node.outputs[0].name)}layerLinked=!1;inputConnectionChange(t,r){super.inputConnectionChange(t,r),t==1&&(this.layerLinked=r)}onConfigure(t){"sdppp_send_prefix"in t.properties||this.node.setProperty("sdppp_send_prefix",""),super.onConfigure(t)}};var wx={"Get Image From Photoshop Layer":gm,"Send Images To Photoshop":hm,"SDPPP Send Text To Layer":fm,"SDPPP Get Text From Layer":dm,"SDPPP Parse Layer Info":lm,"SDPPP Get Linked Layers":um,"SDPPP Get Layers In Group":cm,"SDPPP Get Layer By ID":sm,"SDPPP Get Document":pm,"SDPPP Get Selection":vc,"SDPPP Select Layer And Run PS Action":mm},vm={};function pO(e,t){let r=e.comfyClass||t.name;if(vm[r]=t,r in wx)e.title=me(t.display_name),t.display_name=me(t.display_name),ca.registerNodeType(e,t,wx[r]);else if(r.startsWith("workflow")&&comfyAPI.groupNode.GroupNodeHandler.getGroupData(e)){let n=comfyAPI.groupNode.GroupNodeHandler.getGroupData(e),o=!1;n.nodeData.nodes.forEach((i,a)=>{i.type in wx&&(o=!0)}),o&&ca.registerNodeType(e,t,ko)}else return}var dR=E(qT(),1),pR=E(D(),1);var GT=`#sdppp-popup-root { width: 100%; height: 100%; position: absolute; top: 0; left: 0; padding: 16px; background: var(--bg-color); align-items: stretch; justify-content: stretch; z-index: 100; } .sdppp-menu-container { box-sizing: content-box; overflow-y: hidden; display: flex; flex-direction: column; align-items: stretch; min-width: 0; flex: 1; } .sdppp-menu-header { display: flex; flex-direction: row; gap: 10px; color: var(--fg-color); padding-bottom: 5px; border-bottom: 2px solid rgba(127, 127, 127, .4); align-items: center; justify-content: space-between; } .sdppp-menu-header button { text-align: center; background: var(--comfy-input-bg); border: none; box-shadow: none; } .sdppp-menu-header button:hover { background-color: var(--border-color); } .sdppp-menu-header button.active { background-color: var(--primary-bg); } .sdppp-menu-header button.active:hover { background-color: var(--primary-hover-bg); } .sdppp-menu-content { gap: 10px; flex: 1; min-height: 0; width: 100%; min-width: 0; overflow-x: hidden; } .sdppp-close-button { height: 30px; width: 30px; top: 10px; right: 10px; position: absolute; overflow: hidden; } .settings-container { padding: 10px; color: white; } .settings-section { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; margin-bottom: 15px; } .settings-section label { text-align: left; padding-right: 10px; } .settings-section input[type="number"] { width: 100%; padding: 5px; border-radius: 4px; border: 1px solid #666; background: var(--comfy-input-bg); color: var(--fg-color); } .settings-section .download-button { width: auto; padding: 5px 10px; border-radius: 4px; border: 1px solid #666; background: var(--comfy-input-bg); color: var(--fg-color); cursor: pointer; margin-right: 5px; } .settings-section .download-button:last-child { margin-right: 0; } .settings-section div:has(.download-button) { display: flex; justify-content: flex-start; gap: 5px; } .settings-section p { grid-column: 1 / -1; margin: 0; } .settings-container h2 { margin-top: 0; margin-bottom: 20px; } .settings-control { display: flex; gap: 5px; align-items: center; } .settings-control input[type="number"] { width: 100%; min-width: 80px; } .settings-label { display: flex; align-items: center; } .sdppp-menu-workflow-edit-wrap { font-size: 12px; width: 100%; height: 100%; } .sdppp-menu-workflow-edit-wrap p { margin: 0; padding: 0; color: var(--descrip-text) } .workflow-edit-content { display: flex; flex-direction: column; gap: 10px; } .workflow-edit-field { color: var(--fg-color); display: flex; flex-direction: row; flex-wrap: wrap; gap: 5px; width: 100%; } .workflow-edit-field > * { max-width: 100%; box-sizing: border-box; } @media (min-width: 639px) { .workflow-edit-content { flex-wrap: wrap; height: 100%; overflow-y: hidden; overflow-x: scroll; } .workflow-edit-field { max-width: 320px; } } .workflow-edit-field-title { color: var(--fg-color); font-size: 14px; border-left: 4px solid rgba(127, 127, 127, .4); padding: 2px 2px 2px 5px; margin: 3px 0; display: inline-flex; } .sdppp-side-icon { width: 64px; height: 64px; mask-image: url("./sd-ppp-static/sdppp-icon.svg"); mask-size: 36px; mask-position: center; mask-repeat: no-repeat; background-color: currentColor; } .sdppp-side-container { display: flex; width: 100%; height: 100%; flex-direction: column; position: relative; padding-top: 32px; } .sdppp-side-container .sdppp-side-header { position: absolute; top: 0; width: 100%; display: flex; flex-direction: row; gap: 10px; align-items: center; justify-content: flex-end; } .sdppp-side-container .sdppp-side-header button { width: 32px; height: 32px; border: 1px solid var(--border-color); cursor: pointer; } .sdppp-photoshop-icon { background-image: url("https://upload.wikimedia.org/wikipedia/commons/a/af/Adobe_Photoshop_CC_icon.svg"); } .sdppp-premiere-icon { background-image: url("https://upload.wikimedia.org/wikipedia/commons/4/40/Adobe_Premiere_Pro_CC_icon.svg"); } /* GroupFilter component styles */ .sdppp-side-container .group-filter { display: flex; flex-wrap: wrap; padding: 4px 0; } .sdppp-side-container .group-filter-item { padding: 2px 8px; border-radius: 4px; cursor: pointer; white-space: nowrap; flex-shrink: 0; } .sdppp-side-container .group-filter-item:not(:first-child) { margin-left: 8px; } /* end of GroupFilter component styles */`;var tf=E(D(),1);var b3=E(D(),1);function fe(){return fe=Object.assign?Object.assign.bind():function(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{},r=[];return KT.default.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(yi(n)):dd(n)&&n.props?r=r.concat(yi(n.props.children,t)):r.push(n))}),r}var VS={},Uz=[],qz=function(t){Uz.push(t)};function pd(e,t){if(0)var r}function Gz(e,t){if(0)var r}function XT(){VS={}}function YT(e,t,r){!t&&!VS[r]&&(e(!1,r),VS[r]=!0)}function Bg(e,t){YT(pd,e,t)}function QT(e,t){YT(Gz,e,t)}Bg.preMessage=qz;Bg.resetWarned=XT;Bg.noteOnce=QT;var Vt=Bg;function JT(e,t){if(ue(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ue(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jg(e){var t=JT(e,"string");return ue(t)=="symbol"?t:t+""}function _(e,t,r){return(t=jg(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function T(e){for(var t=1;t=19)return!0;var o=(0,md.isMemo)(t)?t.type.type:t.type;return!(typeof o=="function"&&!((r=o.prototype)!==null&&r!==void 0&&r.render)&&o.$$typeof!==md.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==md.ForwardRef)};function aN(e){return(0,Zg.isValidElement)(e)&&!dd(e)}var xs=function(t){if(t&&aN(t)){var r=t;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null};var Wr=E(D());var Si=E(D()),eh=Si.createContext(null);function sN(e){var t=e.children,r=e.onBatchResize,n=Si.useRef(0),o=Si.useRef([]),i=Si.useContext(eh),a=Si.useCallback(function(s,l,c){n.current+=1;var u=n.current;o.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===n.current&&(r?.(o.current),o.current=[])}),i?.(s,l,c)},[r,i]);return Si.createElement(eh.Provider,{value:a},t)}var cN=function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(o,i){return o[0]===r?(n=i,!0):!1}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(r,n){var o=e(this.__entries__,r);~o?this.__entries__[o][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,o=e(n,r);~o&&n.splice(o,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var o=0,i=this.__entries__;o0},e.prototype.connect_=function(){!GS||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),nW?(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(){!GS||!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 r=t.propertyName,n=r===void 0?"":r,o=rW.some(function(i){return!!~n.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),uN=function(e,t){for(var r=0,n=Object.keys(t);r"u"||!(Element instanceof Object))){if(!(t instanceof Kc(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new dW(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 Kc(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.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(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new pW(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),dN=typeof WeakMap<"u"?new WeakMap:new cN,pN=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 r=oW.getInstance(),n=new mW(t,r,this);dN.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){pN.prototype[e]=function(){var t;return(t=dN.get(this))[e].apply(t,arguments)}});var gW=function(){return typeof th.ResizeObserver<"u"?th.ResizeObserver:pN}(),mN=gW;var bs=new Map;function hW(e){e.forEach(function(t){var r,n=t.target;(r=bs.get(n))===null||r===void 0||r.forEach(function(o){return o(n)})})}var gN=new mN(hW);function hN(e,t){bs.has(e)||(bs.set(e,new Set),gN.observe(e)),bs.get(e).add(t)}function vN(e,t){bs.has(e)&&(bs.get(e).delete(t),bs.get(e).size||(gN.unobserve(e),bs.delete(e)))}function it(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yN(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=Array(t);r1&&arguments[1]!==void 0?arguments[1]:1;ON+=1;var n=ON;function o(i){if(i===0)TN(n),t();else{var a=_N(function(){o(i-1)});KS.set(n,a)}}return o(r),n};NN.cancel=function(e){var t=KS.get(e);return TN(e),PN(t)};var dt=NN;var lr=E(D());function ah(e){if(Array.isArray(e))return e}function IN(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function sh(){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 V(e,t){return ah(e)||IN(e,t)||Xc(e,t)||sh()}function SW(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Cs=SW;function Yt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function XS(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var DN="data-rc-order",$N="data-rc-priority",CW="rc-util-key",YS=new Map;function kN(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):CW}function lh(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function wW(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function QS(e){return Array.from((YS.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function AN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Yt())return null;var r=t.csp,n=t.prepend,o=t.priority,i=o===void 0?0:o,a=wW(n),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(DN,a),s&&i&&l.setAttribute($N,"".concat(i)),r!=null&&r.nonce&&(l.nonce=r?.nonce),l.innerHTML=e;var c=lh(t),u=c.firstChild;if(n){if(s){var f=(t.styles||QS(c)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(DN)))return!1;var g=Number(p.getAttribute($N)||0);return i>=g});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function MN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=lh(t);return(t.styles||QS(r)).find(function(n){return n.getAttribute(kN(t))===e})}function Ui(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=MN(e,t);if(r){var n=lh(t);n.removeChild(r)}}function EW(e,t){var r=YS.get(e);if(!r||!XS(document,r)){var n=AN("",t),o=n.parentNode;YS.set(e,o),e.removeChild(n)}}function yn(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=lh(r),o=QS(n),i=T(T({},r),{},{styles:o});EW(n,i);var a=MN(t,i);if(a){var s,l;if((s=i.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=i.csp)===null||l===void 0?void 0:l.nonce)){var c;a.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var u=AN(e,i);return u.setAttribute(kN(i),t),u}var XN=E(D());function FN(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Ve(e,t){if(e==null)return{};var r,n,o=FN(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function o(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=n.has(i);if(Vt(!l,"Warning: There may be circular references"),l)return!1;if(i===a)return!0;if(r&&s>1)return!1;n.add(i);var c=s+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var u=0;u1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return r.forEach(function(s){if(!a)a=void 0;else{var l;a=(l=a)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(n=a)!==null&&n!==void 0&&n.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===null||o===void 0?void 0:o.value}},{key:"get",value:function(r){var n;return(n=this.internalGet(r,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,n){var o=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(c,u){var f=V(c,2),p=f[1];return o.internalGet(u)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),WN+=1}return at(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,o){return o(r,n)},void 0)}}]),e}();var JS=new yd;function Es(e){var t=Array.isArray(e)?e:[e];return JS.has(t)||JS.set(t,new Yc(t)),JS.get(t)}var $W=new WeakMap,ZS={};function jN(e,t){for(var r=$W,n=0;n3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var a=T(T({},o),{},(n={},_(n,qi,t),_(n,Tn,r),n)),s=Object.keys(a).map(function(l){var c=a[l];return c?"".concat(l,'="').concat(c,'"'):null}).filter(function(l){return l}).join(" ");return"")}var Jc=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(r?"".concat(r,"-"):"").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()},kW=function(t,r,n){return Object.keys(t).length?".".concat(r).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(t).map(function(o){var i=V(o,2),a=i[0],s=i[1];return"".concat(a,":").concat(s,";")}).join(""),"}"):""},fh=function(t,r,n){var o={},i={};return Object.entries(t).forEach(function(a){var s,l,c=V(a,2),u=c[0],f=c[1];if(n!=null&&(s=n.preserve)!==null&&s!==void 0&&s[u])i[u]=f;else if((typeof f=="string"||typeof f=="number")&&!(n!=null&&(l=n.ignore)!==null&&l!==void 0&&l[u])){var p,g=Jc(u,n?.prefix);o[g]=typeof f=="number"&&!(n!=null&&(p=n.unitless)!==null&&p!==void 0&&p[u])?"".concat(f,"px"):String(f),i[u]="var(".concat(g,")")}}),[i,kW(o,r,{scope:n?.scope})]};var dh=E(D());var Zc=E(D());var VN=Yt()?Zc.useLayoutEffect:Zc.useEffect,HN=function(t,r){var n=Zc.useRef(!0);VN(function(){return t(n.current)},r),VN(function(){return n.current=!1,function(){n.current=!0}},[])},Rl=function(t,r){HN(function(n){if(!n)return t()},r)},vt=HN;var tC=E(D()),AW=T({},tC),UN=AW.useInsertionEffect,MW=function(t,r,n){tC.useMemo(t,n),vt(function(){return r(!0)},n)},FW=UN?function(e,t,r){return UN(function(){return e(),t()},r)}:MW,qN=FW;var rC=E(D()),LW=T({},rC),zW=LW.useInsertionEffect,WW=function(t){var r=[],n=!1;function o(i){n||r.push(i)}return rC.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(i){return i()})}},t),o},BW=function(){return function(t){t()}},jW=typeof zW<"u"?WW:BW,GN=jW;function VW(){return!1}var KN=VW;function Ol(e,t,r,n,o){var i=dh.useContext(wi),a=i.cache,s=[e].concat(te(t)),l=ch(s),c=GN([l]),u=KN(),f=function(v){a.opUpdate(l,function(y){var m=y||[void 0,void 0],d=V(m,2),x=d[0],b=x===void 0?0:x,S=d[1],w=S,C=w||r(),R=[b,C];return v?v(R):R})};dh.useMemo(function(){f()},[l]);var p=a.opGet(l),g=p[1];return qN(function(){o?.(g)},function(h){return f(function(v){var y=V(v,2),m=y[0],d=y[1];return h&&m===0&&o?.(g),[m+1,d]}),function(){a.opUpdate(l,function(v){var y=v||[],m=V(y,2),d=m[0],x=d===void 0?0:d,b=m[1],S=x-1;return S===0?(c(function(){(h||!a.opGet(l))&&n?.(b,!1)}),null):[x-1,b]})}},[l]),g}var HW={},UW="css",_l=new Map;function qW(e){_l.set(e,(_l.get(e)||0)+1)}function GW(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(qi,'="').concat(e,'"]'));r.forEach(function(n){if(n[Ci]===t){var o;(o=n.parentNode)===null||o===void 0||o.removeChild(n)}})}}var KW=0;function XW(e,t){_l.set(e,(_l.get(e)||0)-1);var r=Array.from(_l.keys()),n=r.filter(function(o){var i=_l.get(o)||0;return i<=0});r.length-n.length>KW&&n.forEach(function(o){GW(o,t),_l.delete(o)})}var YN=function(t,r,n,o){var i=n.getDerivativeToken(t),a=T(T({},i),r);return o&&(a=o(a)),a},nC="token";function ph(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=(0,XN.useContext)(wi),o=n.cache.instanceId,i=n.container,a=r.salt,s=a===void 0?"":a,l=r.override,c=l===void 0?HW:l,u=r.formatToken,f=r.getComputedToken,p=r.cssVar,g=jN(function(){return Object.assign.apply(Object,[{}].concat(te(t)))},t),h=Qc(g),v=Qc(c),y=p?Qc(p):"",m=Ol(nC,[s,e.id,h,v,y],function(){var d,x=f?f(g,c,e):YN(g,c,e,u),b=T({},x),S="";if(p){var w=fh(x,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),C=V(w,2);x=C[0],S=C[1]}var R=eC(x,s);x._tokenKey=R,b._tokenKey=eC(b,s);var P=(d=p?.key)!==null&&d!==void 0?d:R;x._themeKey=P,qW(P);var O="".concat(UW,"-").concat(Cs(R));return x._hashId=O,[x,O,b,S,p?.key||""]},function(d){XW(d[0]._themeKey,o)},function(d){var x=V(d,4),b=x[0],S=x[3];if(p&&S){var w=yn(S,Cs("css-variables-".concat(b._themeKey)),{mark:Tn,prepend:"queue",attachTo:i,priority:-999});w[Ci]=o,w.setAttribute(qi,b._themeKey)}});return m}var QN=function(t,r,n){var o=V(t,5),i=o[2],a=o[3],s=o[4],l=n||{},c=l.plain;if(!a)return null;var u=i._tokenKey,f=-999,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},g=Rs(a,s,u,p,c);return[f,u,g]};var wI=E(D());var Ps=E(D());var YW={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},oC=YW;var mh="comm",gh="rule",hh="decl";var JN="@import";var ZN="@namespace",eI="@keyframes";var tI="@layer";var iC=Math.abs,bd=String.fromCharCode;function vh(e){return e.trim()}function Sd(e,t,r){return e.replace(t,r)}function rI(e,t,r){return e.indexOf(t,r)}function Os(e,t){return e.charCodeAt(t)|0}function _s(e,t,r){return e.slice(t,r)}function So(e){return e.length}function nI(e){return e.length}function eu(e,t){return t.push(e),e}var yh=1,tu=1,oI=0,Vo=0,Ur=0,nu="";function xh(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:yh,column:tu,length:a,return:"",siblings:s}}function iI(){return Ur}function aI(){return Ur=Vo>0?Os(nu,--Vo):0,tu--,Ur===10&&(tu=1,yh--),Ur}function Ho(){return Ur=Vo2||ru(Ur)>3?"":" "}function uI(e,t){for(;--t&&Ho()&&!(Ur<48||Ur>102||Ur>57&&Ur<65||Ur>70&&Ur<97););return bh(e,Cd()+(t<6&&ba()==32&&Ho()==32))}function aC(e){for(;Ho();)switch(Ur){case e:return Vo;case 34:case 39:e!==34&&e!==39&&aC(Ur);break;case 40:e===41&&aC(e);break;case 92:Ho();break}return Vo}function fI(e,t){for(;Ho()&&e+Ur!==57;)if(e+Ur===84&&ba()===47)break;return"/*"+bh(t,Vo-1)+"*"+bd(e===47?e:Ho())}function dI(e){for(;!ru(ba());)Ho();return bh(e,Vo)}function gI(e){return lI(Ch("",null,null,null,[""],e=sI(e),0,[0],e))}function Ch(e,t,r,n,o,i,a,s,l){for(var c=0,u=0,f=a,p=0,g=0,h=0,v=1,y=1,m=1,d=0,x="",b=o,S=i,w=n,C=x;y;)switch(h=d,d=Ho()){case 40:if(h!=108&&Os(C,f-1)==58){rI(C+=Sd(Sh(d),"&","&\f"),"&\f",iC(c?s[c-1]:0))!=-1&&(m=-1);break}case 34:case 39:case 91:C+=Sh(d);break;case 9:case 10:case 13:case 32:C+=cI(h);break;case 92:C+=uI(Cd()-1,7);continue;case 47:switch(ba()){case 42:case 47:eu(QW(fI(Ho(),Cd()),t,r,l),l),(ru(h||1)==5||ru(ba()||1)==5)&&So(C)&&_s(C,-1,void 0)!==" "&&(C+=" ");break;default:C+="/"}break;case 123*v:s[c++]=So(C)*m;case 125*v:case 59:case 0:switch(d){case 0:case 125:y=0;case 59+u:m==-1&&(C=Sd(C,/\f/g,"")),g>0&&(So(C)-f||v===0&&h===47)&&eu(g>32?mI(C+";",n,r,f-1,l):mI(Sd(C," ","")+";",n,r,f-2,l),l);break;case 59:C+=";";default:if(eu(w=pI(C,t,r,c,u,o,s,x,b=[],S=[],f,i),i),d===123)if(u===0)Ch(C,t,w,w,b,i,f,s,S);else{switch(p){case 99:if(Os(C,3)===110)break;case 108:if(Os(C,2)===97)break;default:u=0;case 100:case 109:case 115:}u?Ch(e,w,w,n&&eu(pI(e,w,w,0,0,o,s,x,o,b=[],f,S),S),o,S,f,s,n?b:S):Ch(C,w,w,w,[""],S,0,s,S)}}c=u=g=0,v=m=1,x=C="",f=a;break;case 58:f=1+So(C),g=h;default:if(v<1){if(d==123)--v;else if(d==125&&v++==0&&aI()==125)continue}switch(C+=bd(d),d*v){case 38:m=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(So(C)-1)*m,m=1;break;case 64:ba()===45&&(C+=Sh(Ho())),p=ba(),u=f=So(x=C+=dI(Cd())),d++;break;case 45:h===45&&So(C)==2&&(v=0)}}return i}function pI(e,t,r,n,o,i,a,s,l,c,u,f){for(var p=o-1,g=o===0?i:[""],h=nI(g),v=0,y=0,m=0;v0?g[d]+" "+x:Sd(x,/&\f/g,g[d])))&&(l[m++]=b);return xh(e,t,r,o===0?gh:s,l,c,u,f)}function QW(e,t,r,n){return xh(e,t,r,mh,bd(iI()),_s(e,2,-2),0,n)}function mI(e,t,r,n,o){return xh(e,t,r,hh,_s(e,0,n),_s(e,n+1,-1),n,o)}function wh(e,t){for(var r="",n=0;n1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=n.root,i=n.injectHash,a=n.parentSelectors,s=r.hashId,l=r.layer,c=r.path,u=r.hashPriority,f=r.transformers,p=f===void 0?[]:f,g=r.linters,h=g===void 0?[]:g,v="",y={};function m(b){var S=b.getName(s);if(!y[S]){var w=e(b.style,r,{root:!1,parentSelectors:a}),C=V(w,1),R=C[0];y[S]="@keyframes ".concat(b.getName(s)).concat(R)}}function d(b){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return b.forEach(function(w){Array.isArray(w)?d(w,S):w&&S.push(w)}),S}var x=d(Array.isArray(t)?t:[t]);return x.forEach(function(b){var S=typeof b=="string"&&!o?{}:b;if(typeof S=="string")v+="".concat(S,` `);else if(S._keyframe)m(S);else{var w=p.reduce(function(C,R){var P;return(R==null||(P=R.visit)===null||P===void 0?void 0:P.call(R,C))||C},S);Object.keys(w).forEach(function(C){var R=w[C];if(ue(R)==="object"&&R&&(C!=="animationName"||!R._keyframe)&&!oB(R)){var P=!1,O=C.trim(),A=!1;(o||i)&&s?O.startsWith("@")?P=!0:O==="&"?O=bI("",s,u):O=bI(C,s,u):o&&!s&&(O==="&"||O==="")&&(O="",A=!0);var M=e(R,r,{root:A,injectHash:P,parentSelectors:[].concat(te(a),[O])}),F=V(M,2),H=F[0],j=F[1];y=T(T({},y),j),v+="".concat(O).concat(H)}else{let U=function(W,B){var q=W.replace(/[A-Z]/g,function(k){return"-".concat(k.toLowerCase())}),L=B;!oC[W]&&typeof L=="number"&&L!==0&&(L="".concat(L,"px")),W==="animationName"&&B!==null&&B!==void 0&&B._keyframe&&(m(B),L=B.getName(s)),v+="".concat(q,":").concat(L,";")};var $=U,I,N=(I=R?.value)!==null&&I!==void 0?I:R;ue(R)==="object"&&R!==null&&R!==void 0&&R[SI]&&Array.isArray(N)?N.forEach(function(W){U(C,W)}):U(C,N)}})}}),o?l&&(v&&(v="@layer ".concat(l.name," {").concat(v,"}")),l.dependencies&&(y["@layer ".concat(l.name)]=l.dependencies.map(function(b){return"@layer ".concat(b,", ").concat(l.name,";")}).join(` `))):v="{".concat(v,"}"),[v,y]};function cC(e,t){return Cs("".concat(e.join("%")).concat(t))}function aB(){return null}var uC="style";function Ts(e,t){var r=e.token,n=e.path,o=e.hashId,i=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=Ps.useContext(wi),f=u.autoClear,p=u.mock,g=u.defaultCache,h=u.hashPriority,v=u.container,y=u.ssrInline,m=u.transformers,d=u.linters,x=u.cache,b=u.layer,S=r._tokenKey,w=[S];b&&w.push("layer"),w.push.apply(w,te(n));var C=xd,R=Ol(uC,w,function(){var F=w.join("|");if(yI(F)){var H=xI(F),j=V(H,2),I=j[0],N=j[1];if(I)return[I,S,N,{},s,c]}var $=t(),U=iB($,{hashId:o,hashPriority:h,layer:b?i:void 0,path:n.join("-"),transformers:m,linters:d}),W=V(U,2),B=W[0],q=W[1],L=Eh(B),k=cC(w,L);return[L,S,k,q,s,c]},function(F,H){var j=V(F,3),I=j[2];(H||f)&&xd&&Ui(I,{mark:Tn})},function(F){var H=V(F,4),j=H[0],I=H[1],N=H[2],$=H[3];if(C&&j!==lC){var U={mark:Tn,prepend:b?!1:"queue",attachTo:v,priority:c},W=typeof a=="function"?a():a;W&&(U.csp={nonce:W});var B=[],q=[];Object.keys($).forEach(function(k){k.startsWith("@layer")?B.push(k):q.push(k)}),B.forEach(function(k){yn(Eh($[k]),"_layer-".concat(k),T(T({},U),{},{prepend:!0}))});var L=yn(j,N,U);L[Ci]=x.instanceId,L.setAttribute(qi,S),q.forEach(function(k){yn(Eh($[k]),"_effect-".concat(k),U)})}}),P=V(R,3),O=P[0],A=P[1],M=P[2];return function(F){var H;if(!y||C||!g)H=Ps.createElement(aB,null);else{var j;H=Ps.createElement("style",fe({},(j={},_(j,qi,A),_(j,Tn,M),j),{dangerouslySetInnerHTML:{__html:O}}))}return Ps.createElement(Ps.Fragment,null,H,F)}}var CI=function(t,r,n){var o=V(t,6),i=o[0],a=o[1],s=o[2],l=o[3],c=o[4],u=o[5],f=n||{},p=f.plain;if(c)return null;var g=i,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return g=Rs(i,a,s,h,p),l&&Object.keys(l).forEach(function(v){if(!r[v]){r[v]=!0;var y=Eh(l[v]),m=Rs(y,a,"_effect-".concat(v),h,p);v.startsWith("@layer")?g=m+g:g+=m}}),[u,s,g]};var fC="cssVar",sB=function(t,r){var n=t.key,o=t.prefix,i=t.unitless,a=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=(0,wI.useContext)(wi),f=u.cache.instanceId,p=u.container,g=s._tokenKey,h=[].concat(te(t.path),[n,c,g]),v=Ol(fC,h,function(){var y=r(),m=fh(y,n,{prefix:o,unitless:i,ignore:a,scope:c}),d=V(m,2),x=d[0],b=d[1],S=cC(h,b);return[x,b,S,n]},function(y){var m=V(y,3),d=m[2];xd&&Ui(d,{mark:Tn})},function(y){var m=V(y,3),d=m[1],x=m[2];if(d){var b=yn(d,x,{mark:Tn,prepend:"queue",attachTo:p,priority:-999});b[Ci]=f,b.setAttribute(qi,n)}});return v},EI=function(t,r,n){var o=V(t,4),i=o[1],a=o[2],s=o[3],l=n||{},c=l.plain;if(!i)return null;var u=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},p=Rs(i,s,a,f,c);return[u,a,p]},dC=sB;var Ed,kne=(Ed={},_(Ed,uC,CI),_(Ed,nC,QN),_(Ed,fC,EI),Ed);var lB=function(){function e(t,r){it(this,e),_(this,"name",void 0),_(this,"style",void 0),_(this,"_keyframe",!0),this.name=t,this.style=r}return at(e,[{key:"getName",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r?"".concat(r,"-").concat(this.name):this.name}}]),e}(),yt=lB;function ou(e){return e.notSplit=!0,e}var Bne={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:ou(["borderTop","borderBottom"]),borderBlockStart:ou(["borderTop"]),borderBlockEnd:ou(["borderBottom"]),borderInline:ou(["borderLeft","borderRight"]),borderInlineStart:ou(["borderLeft"]),borderInlineEnd:ou(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};var RI=E(D()),cB=(0,RI.createContext)({}),iu=cB;function Rh(e){return ah(e)||ih(e)||Xc(e)||sh()}function xn(e,t){for(var r=e,n=0;n3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!xn(e,t.slice(0,-1))?e:_I(e,t,r,n)}function uB(e){return ue(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function OI(e){return Array.isArray(e)?[]:{}}var fB=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Sa(){for(var e=arguments.length,t=new Array(e),r=0;r{let e=()=>{};return e.deprecated=dB,e};var TI=E(D()),NI=(0,TI.createContext)(void 0);var su=E(D());var pB={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"},II=pB;var DI={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};var mB=T(T({},DI),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),$I=mB;var gB={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},_h=gB;var hB={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"]},$I),timePickerLocale:Object.assign({},_h)},Ph=hB;var kI=Ph;var Co="${label} is not a valid ${type}",vB={locale:"en",Pagination:II,DatePicker:Ph,TimePicker:_h,Calendar:kI,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Co,method:Co,array:Co,object:Co,number:Co,date:Co,boolean:Co,integer:Co,float:Co,regexp:Co,email:Co,url:Co,hex:Co},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}},Ei=vB;var mC=Object.assign({},Ei.Modal),Th=[],AI=()=>Th.reduce((e,t)=>Object.assign(Object.assign({},e),t),Ei.Modal);function MI(e){if(e){let t=Object.assign({},e);return Th.push(t),mC=AI(),()=>{Th=Th.filter(r=>r!==t),mC=AI()}}mC=Object.assign({},Ei.Modal)}var FI=E(D()),yB=(0,FI.createContext)(void 0),au=yB;var Rd=E(D());var xB=(e,t)=>{let r=Rd.useContext(au),n=Rd.useMemo(()=>{var i;let a=t||Ei[e],s=(i=r?.[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,r]),o=Rd.useMemo(()=>{let i=r?.locale;return r?.exist&&!i?Ei.locale:i},[r]);return[n,o]},Ca=xB;var LI="internalMark",bB=e=>{let{locale:t={},children:r,_ANT_MARK__:n}=e;su.useEffect(()=>MI(t?.Modal),[t]);let o=su.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return su.createElement(au.Provider,{value:o},r)},zI=bB;var f2=E(D());var gC={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"},SB=Object.assign(Object.assign({},gC),{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}),wa=SB;var cn=Math.round;function hC(e,t){let r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)n[o]=t(n[o]||0,r[o]||"",o);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}var WI=(e,t,r)=>r===0?e:e/100;function Od(e,t){let r=t||255;return e>r?r:e<0?0:e}var gt=class e{constructor(t){_(this,"isValid",!0),_(this,"r",0),_(this,"g",0),_(this,"b",0),_(this,"a",1),_(this,"_h",void 0),_(this,"_s",void 0),_(this,"_l",void 0),_(this,"_v",void 0),_(this,"_max",void 0),_(this,"_min",void 0),_(this,"_brightness",void 0);function r(o){return o[0]in t&&o[1]in t&&o[2]in t}if(t)if(typeof t=="string"){let i=function(a){return o.startsWith(a)};var n=i;let o=t.trim();/^#?[A-F\d]{3,8}$/i.test(o)?this.fromHexString(o):i("rgb")?this.fromRgbString(o):i("hsl")?this.fromHslString(o):(i("hsv")||i("hsb"))&&this.fromHsvString(o)}else if(t instanceof e)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(r("rgb"))this.r=Od(t.r),this.g=Od(t.g),this.b=Od(t.b),this.a=typeof t.a=="number"?Od(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){let r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(i){let a=i/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}let r=t(this.r),n=t(this.g),o=t(this.b);return .2126*r+.7152*n+.0722*o}getHue(){if(typeof this._h>"u"){let t=this.getMax()-this.getMin();t===0?this._h=0:this._h=cn(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g"u"){let t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){let r=this.getHue(),n=this.getSaturation(),o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:r,s:n,l:o,a:this.a})}lighten(t=10){let r=this.getHue(),n=this.getSaturation(),o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:r,s:n,l:o,a:this.a})}mix(t,r=50){let n=this._c(t),o=r/100,i=s=>(n[s]-this[s])*o+this[s],a={r:cn(i("r")),g:cn(i("g")),b:cn(i("b")),a:cn(i("a")*100)/100};return this._c(a)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){let r=this._c(t),n=this.a+r.a*(1-this.a),o=i=>cn((this[i]*this.a+r[i]*r.a*(1-this.a))/n);return this._c({r:o("r"),g:o("g"),b:o("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#",r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;let n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;let o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){let i=cn(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){let t=this.getHue(),r=cn(this.getSaturation()*100),n=cn(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${n}%,${this.a})`:`hsl(${t},${r}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,r,n){let o=this.clone();return o[t]=Od(r,n),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){let r=t.replace("#","");function n(o,i){return parseInt(r[o]+r[i||o],16)}r.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=r[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=r[6]?n(6,7)/255:1)}fromHsl({h:t,s:r,l:n,a:o}){if(this._h=t%360,this._s=r,this._l=n,this.a=typeof o=="number"?o:1,r<=0){let p=cn(n*255);this.r=p,this.g=p,this.b=p}let i=0,a=0,s=0,l=t/60,c=(1-Math.abs(2*n-1))*r,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(i=c,a=u):l>=1&&l<2?(i=u,a=c):l>=2&&l<3?(a=c,s=u):l>=3&&l<4?(a=u,s=c):l>=4&&l<5?(i=u,s=c):l>=5&&l<6&&(i=c,s=u);let f=n-c/2;this.r=cn((i+f)*255),this.g=cn((a+f)*255),this.b=cn((s+f)*255)}fromHsv({h:t,s:r,v:n,a:o}){this._h=t%360,this._s=r,this._v=n,this.a=typeof o=="number"?o:1;let i=cn(n*255);if(this.r=i,this.g=i,this.b=i,r<=0)return;let a=t/60,s=Math.floor(a),l=a-s,c=cn(n*(1-r)*255),u=cn(n*(1-r*l)*255),f=cn(n*(1-r*(1-l))*255);switch(s){case 0:this.g=f,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=f;break;case 3:this.r=c,this.g=u;break;case 4:this.r=f,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){let r=hC(t,WI);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){let r=hC(t,WI);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){let r=hC(t,(n,o)=>o.includes("%")?cn(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}};var Nh=2,BI=.16,CB=.05,wB=.05,EB=.15,UI=5,qI=4,RB=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function jI(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-Nh*t:Math.round(e.h)+Nh*t:n=r?Math.round(e.h)+Nh*t:Math.round(e.h)-Nh*t,n<0?n+=360:n>=360&&(n-=360),n}function VI(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-BI*t:t===qI?n=e.s+BI:n=e.s+CB*t,n>1&&(n=1),r&&t===UI&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function HI(e,t,r){var n;return r?n=e.v+wB*t:n=e.v-EB*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function Ri(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=new gt(e),o=n.toHsv(),i=UI;i>0;i-=1){var a=new gt({h:jI(o,i,!0),s:VI(o,i,!0),v:HI(o,i,!0)});r.push(a)}r.push(n);for(var s=1;s<=qI;s+=1){var l=new gt({h:jI(o,s),s:VI(o,s),v:HI(o,s)});r.push(l)}return t.theme==="dark"?RB.map(function(c){var u=c.index,f=c.amount;return new gt(t.backgroundColor||"#141414").mix(r[u],f).toHexString()}):r.map(function(c){return c.toHexString()})}var Ea={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"},vC=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];vC.primary=vC[5];var yC=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];yC.primary=yC[5];var xC=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];xC.primary=xC[5];var bC=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];bC.primary=bC[5];var SC=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];SC.primary=SC[5];var CC=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];CC.primary=CC[5];var wC=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];wC.primary=wC[5];var EC=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];EC.primary=EC[5];var Ns=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Ns.primary=Ns[5];var RC=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];RC.primary=RC[5];var OC=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];OC.primary=OC[5];var _C=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];_C.primary=_C[5];var PC=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];PC.primary=PC[5];var Ih={red:vC,volcano:yC,orange:xC,gold:bC,yellow:SC,lime:CC,green:wC,cyan:EC,blue:Ns,geekblue:RC,purple:OC,magenta:_C,grey:PC},GI=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];GI.primary=GI[5];var KI=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];KI.primary=KI[5];var XI=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];XI.primary=XI[5];var YI=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];YI.primary=YI[5];var QI=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];QI.primary=QI[5];var JI=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];JI.primary=JI[5];var ZI=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];ZI.primary=ZI[5];var e2=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];e2.primary=e2[5];var t2=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];t2.primary=t2[5];var r2=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];r2.primary=r2[5];var n2=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];n2.primary=n2[5];var o2=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];o2.primary=o2[5];var i2=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];i2.primary=i2[5];function TC(e,{generateColorPalettes:t,generateNeutralColorPalettes:r}){let{colorSuccess:n,colorWarning:o,colorError:i,colorInfo:a,colorPrimary:s,colorBgBase:l,colorTextBase:c}=e,u=t(s),f=t(n),p=t(o),g=t(i),h=t(a),v=r(l,c),y=e.colorLink||e.colorInfo,m=t(y),d=new gt(g[1]).mix(new gt(g[3]),50).toHexString();return Object.assign(Object.assign({},v),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBgFilledHover:d,colorErrorBgActive:g[3],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorLinkHover:m[4],colorLink:m[6],colorLinkActive:m[7],colorBgMask:new gt("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}var OB=e=>{let t=e,r=e,n=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?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:o}},a2=OB;function NC(e){let{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:o+1},a2(n))}var _B=e=>{let{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},s2=_B;function lu(e){return(e+8)/e}function IC(e){let t=Array.from({length:10}).map((r,n)=>{let o=n-1,i=e*Math.pow(Math.E,o/5),a=n>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:lu(r)}))}var PB=e=>{let t=IC(e),r=t.map(u=>u.size),n=t.map(u=>u.lineHeight),o=r[1],i=r[0],a=r[2],s=n[1],l=n[0],c=n[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*o),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},l2=PB;function DC(e){let{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}var wo=(e,t)=>new gt(e).setA(t).toRgbString(),cu=(e,t)=>new gt(e).darken(t).toHexString();var c2=e=>{let t=Ri(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]}},u2=(e,t)=>{let r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:wo(n,.88),colorTextSecondary:wo(n,.65),colorTextTertiary:wo(n,.45),colorTextQuaternary:wo(n,.25),colorFill:wo(n,.15),colorFillSecondary:wo(n,.06),colorFillTertiary:wo(n,.04),colorFillQuaternary:wo(n,.02),colorBgSolid:wo(n,1),colorBgSolidHover:wo(n,.75),colorBgSolidActive:wo(n,.95),colorBgLayout:cu(r,4),colorBgContainer:cu(r,0),colorBgElevated:cu(r,0),colorBgSpotlight:wo(n,.85),colorBgBlur:"transparent",colorBorder:cu(r,15),colorBorderSecondary:cu(r,6)}};function $C(e){Ea.pink=Ea.magenta,Ih.pink=Ih.magenta;let t=Object.keys(gC).map(r=>{let n=e[r]===Ea[r]?Ih[r]:Ri(e[r]);return Array.from({length:10},()=>1).reduce((o,i,a)=>(o[`${r}-${a+1}`]=n[a],o[`${r}${a+1}`]=n[a],o),{})}).reduce((r,n)=>(r=Object.assign(Object.assign({},r),n),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),TC(e,{generateColorPalettes:c2,generateNeutralColorPalettes:u2})),l2(e.fontSize)),DC(e)),s2(e)),NC(e))}var TB=Es($C),_d=TB;var Pd={token:wa,override:{override:wa},hashed:!0},Td=f2.default.createContext(Pd);var Dh=E(D()),Is="ant",Nd="anticon",kC=["outlined","borderless","filled","underlined"],NB=(e,t)=>t||(e?`${Is}-${e}`:Is),rt=Dh.createContext({getPrefixCls:NB,iconPrefixCls:Nd}),{Consumer:IB}=rt,d2={};function no(e){let t=Dh.useContext(rt),{getPrefixCls:r,direction:n,getPopupContainer:o}=t,i=t[e];return Object.assign(Object.assign({classNames:d2,styles:d2},i),{getPrefixCls:r,direction:n,getPopupContainer:o})}var DB=`-ant-${Date.now()}-${Math.random()}`;function $B(e,t){let r={},n=(a,s)=>{let l=a.clone();return l=s?.(l)||l,l.toRgbString()},o=(a,s)=>{let l=new gt(a),c=Ri(l.toRgbString());r[`${s}-color`]=n(l),r[`${s}-color-disabled`]=c[1],r[`${s}-color-hover`]=c[4],r[`${s}-color-active`]=c[6],r[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),r[`${s}-color-deprecated-bg`]=c[0],r[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){o(t.primaryColor,"primary");let a=new gt(t.primaryColor),s=Ri(a.toRgbString());s.forEach((c,u)=>{r[`primary-${u+1}`]=c}),r["primary-color-deprecated-l-35"]=n(a,c=>c.lighten(35)),r["primary-color-deprecated-l-20"]=n(a,c=>c.lighten(20)),r["primary-color-deprecated-t-20"]=n(a,c=>c.tint(20)),r["primary-color-deprecated-t-50"]=n(a,c=>c.tint(50)),r["primary-color-deprecated-f-12"]=n(a,c=>c.setA(c.a*.12));let l=new gt(s[0]);r["primary-color-active-deprecated-f-30"]=n(l,c=>c.setA(c.a*.3)),r["primary-color-active-deprecated-d-02"]=n(l,c=>c.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(r).map(a=>`--${e}-${a}: ${r[a]};`).join(` `)} } `.trim()}function p2(e,t){let r=$B(e,t);Yt()&&yn(r,`${DB}-dynamic-theme`)}var uu=E(D()),AC=uu.createContext(!1),m2=({children:e,disabled:t})=>{let r=uu.useContext(AC);return uu.createElement(AC.Provider,{value:t??r},e)},qr=AC;var FC=E(D());var fu=E(D()),MC=fu.createContext(void 0),g2=({children:e,size:t})=>{let r=fu.useContext(MC);return fu.createElement(MC.Provider,{value:t||r},e)},Tl=MC;function kB(){let e=(0,FC.useContext)(qr),t=(0,FC.useContext)(Tl);return{componentDisabled:e,componentSize:t}}var h2=kB;var Lh=E(D());var AB=at(function e(){it(this,e)}),$h=AB;var v2="CALC_UNIT",MB=new RegExp(v2,"g");function LC(e){return typeof e=="number"?"".concat(e).concat(v2):e}var y2=function(e){Dr(r,e);var t=$r(r);function r(n,o){var i;it(this,r),i=t.call(this),_(Ye(i),"result",""),_(Ye(i),"unitlessCssVar",void 0),_(Ye(i),"lowPriority",void 0);var a=ue(n);return i.unitlessCssVar=o,n instanceof r?i.result="(".concat(n.result,")"):a==="number"?i.result=LC(n):a==="string"&&(i.result=n),i}return at(r,[{key:"add",value:function(o){return o instanceof r?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat(LC(o))),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof r?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat(LC(o))),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof r?this.result="".concat(this.result," * ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," * ").concat(o)),this.lowPriority=!1,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof r?this.result="".concat(this.result," / ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," / ").concat(o)),this.lowPriority=!1,this}},{key:"getResult",value:function(o){return this.lowPriority||o?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(o){var i=this,a=o||{},s=a.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return i.result.includes(c)})&&(l=!1),this.result=this.result.replace(MB,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r}($h);var FB=function(e){Dr(r,e);var t=$r(r);function r(n){var o;return it(this,r),o=t.call(this),_(Ye(o),"result",0),n instanceof r?o.result=n.result:typeof n=="number"&&(o.result=n),o}return at(r,[{key:"add",value:function(o){return o instanceof r?this.result+=o.result:typeof o=="number"&&(this.result+=o),this}},{key:"sub",value:function(o){return o instanceof r?this.result-=o.result:typeof o=="number"&&(this.result-=o),this}},{key:"mul",value:function(o){return o instanceof r?this.result*=o.result:typeof o=="number"&&(this.result*=o),this}},{key:"div",value:function(o){return o instanceof r?this.result/=o.result:typeof o=="number"&&(this.result/=o),this}},{key:"equal",value:function(){return this.result}}]),r}($h),x2=FB;var LB=function(t,r){var n=t==="css"?y2:x2;return function(o){return new n(o,r)}},kh=LB;var zB=function(t,r){return"".concat([r,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))},zC=zB;var Ah=E(D());function wt(e){var t=Ah.useRef();t.current=e;var r=Ah.useCallback(function(){for(var n,o=arguments.length,i=new Array(o),a=0;a1e4){var n=Date.now();this.lastAccessBeat.forEach(function(o,i){n-o>UB&&(r.map.delete(i),r.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e}(),C2=new qB;function GB(e,t){return w2.default.useMemo(function(){var r=C2.get(t);if(r)return r;var n=e();return C2.set(t,n),n},t)}var E2=GB;var KB=function(){return{}},R2=KB;function XB(e){var t=e.useCSP,r=t===void 0?R2:t,n=e.useToken,o=e.usePrefix,i=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function l(p,g,h,v){var y=Array.isArray(p)?p[0]:p;function m(R){return"".concat(String(y)).concat(R.slice(0,1).toUpperCase()).concat(R.slice(1))}var d=v?.unitless||{},x=typeof s=="function"?s(p):{},b=T(T({},x),{},_({},m("zIndexPopup"),!0));Object.keys(d).forEach(function(R){b[m(R)]=d[R]});var S=T(T({},v),{},{unitless:b,prefixToken:m}),w=u(p,g,h,S),C=c(y,h,S);return function(R){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:R,O=w(R,P),A=V(O,2),M=A[1],F=C(P),H=V(F,2),j=H[0],I=H[1];return[j,M,I]}}function c(p,g,h){var v=h.unitless,y=h.injectStyle,m=y===void 0?!0:y,d=h.prefixToken,x=h.ignore,b=function(C){var R=C.rootCls,P=C.cssVar,O=P===void 0?{}:P,A=n(),M=A.realToken;return dC({path:[p],prefix:O.prefix,key:O.key,unitless:v,ignore:x,token:M,scope:R},function(){var F=VC(p,M,g),H=BC(p,M,F,{deprecatedTokens:h?.deprecatedTokens});return Object.keys(F).forEach(function(j){H[d(j)]=H[j],delete H[j]}),H}),null},S=function(C){var R=n(),P=R.cssVar;return[function(O){return m&&P?Lh.default.createElement(Lh.default.Fragment,null,Lh.default.createElement(b,{rootCls:C,cssVar:P,component:p}),O):O},P?.key]};return S}function u(p,g,h){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=Array.isArray(p)?p:[p,p],m=V(y,1),d=m[0],x=y.join("-"),b=e.layer||{name:"antd"};return function(S){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S,C=n(),R=C.theme,P=C.realToken,O=C.hashId,A=C.token,M=C.cssVar,F=o(),H=F.rootPrefixCls,j=F.iconPrefixCls,I=r(),N=M?"css":"js",$=E2(function(){var k=new Set;return M&&Object.keys(v.unitless||{}).forEach(function(z){k.add(Jc(z,M.prefix)),k.add(Jc(z,zC(d,M.prefix)))}),kh(N,k)},[N,d,M?.prefix]),U=S2(N),W=U.max,B=U.min,q={theme:R,token:A,hashId:O,nonce:function(){return I.nonce},clientOnly:v.clientOnly,layer:b,order:v.order||-999};typeof i=="function"&&Ts(T(T({},q),{},{clientOnly:!1,path:["Shared",H]}),function(){return i(A,{prefix:{rootPrefixCls:H,iconPrefixCls:j},csp:I})});var L=Ts(T(T({},q),{},{path:[x,S,j]}),function(){if(v.injectStyle===!1)return[];var k=Fh(A),z=k.token,G=k.flush,J=VC(d,P,h),Y=".".concat(S),X=BC(d,P,J,{deprecatedTokens:v.deprecatedTokens});M&&J&&ue(J)==="object"&&Object.keys(J).forEach(function(Q){J[Q]="var(".concat(Jc(Q,zC(d,M.prefix)),")")});var ae=ut(z,{componentCls:Y,prefixCls:S,iconCls:".".concat(j),antCls:".".concat(H),calc:$,max:W,min:B},M?J:X),Z=g(ae,{hashId:O,prefixCls:S,rootPrefixCls:H,iconPrefixCls:j});G(d,X);var K=typeof a=="function"?a(ae,S,w,v.resetFont):null;return[v.resetStyle===!1?null:K,Z]});return[L,O]}}function f(p,g,h){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=u(p,g,h,T({resetStyle:!1,order:-998},v)),m=function(x){var b=x.prefixCls,S=x.rootCls,w=S===void 0?b:S;return y(b,w),null};return m}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:u}}var HC=XB;var Eo=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var T2=E(D());var O2="5.26.0";var _2=O2;function UC(e){return e>=0&&e<=255}function YB(e,t){let{r,g:n,b:o,a:i}=new gt(e).toRgb();if(i<1)return e;let{r:a,g:s,b:l}=new gt(t).toRgb();for(let c=.01;c<=1;c+=.01){let u=Math.round((r-a*(1-c))/c),f=Math.round((n-s*(1-c))/c),p=Math.round((o-l*(1-c))/c);if(UC(u)&&UC(f)&&UC(p))return new gt({r:u,g:f,b:p,a:Math.round(c*100)/100}).toRgbString()}return new gt({r,g:n,b:o,a:1}).toRgbString()}var Nl=YB;var QB=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{delete n[p]});let o=Object.assign(Object.assign({},r),n),i=480,a=576,s=768,l=992,c=1200,u=1600;if(o.motion===!1){let 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:Nl(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:Nl(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Nl(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,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:Nl(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:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` 0 1px 2px -2px ${new gt("rgba(0, 0, 0, 0.16)").toRgbString()}, 0 3px 6px 0 ${new gt("rgba(0, 0, 0, 0.12)").toRgbString()}, 0 5px 12px 4px ${new gt("rgba(0, 0, 0, 0.09)").toRgbString()} `,boxShadowDrawerRight:` -6px 0 16px 0 rgba(0, 0, 0, 0.08), -3px 0 6px -4px rgba(0, 0, 0, 0.12), -9px 0 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowDrawerLeft:` 6px 0 16px 0 rgba(0, 0, 0, 0.08), 3px 0 6px -4px rgba(0, 0, 0, 0.12), 9px 0 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowDrawerUp:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowDrawerDown:` 0 -6px 16px 0 rgba(0, 0, 0, 0.08), 0 -3px 6px -4px rgba(0, 0, 0, 0.12), 0 -9px 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),n)}var P2=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let n=r.getDerivativeToken(e),{override:o}=t,i=P2(t,["override"]),a=Object.assign(Object.assign({},n),{override:o});return a=zh(a),i&&Object.entries(i).forEach(([s,l])=>{let{theme:c}=l,u=P2(l,["theme"]),f=u;c&&(f=N2(Object.assign(Object.assign({},a),u),{override:u},c)),a[s]=f}),a};function xr(){let{token:e,hashed:t,theme:r,override:n,cssVar:o}=T2.default.useContext(Td),i=`${_2}-${t||""}`,a=r||_d,[s,l,c]=ph(a,[wa,e],{salt:i,override:n,getComputedToken:N2,formatToken:zh,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:qC,ignore:JB,preserve:ZB}});return[a,c,t?l:"",s,o]}var KC=E(D());var Oa={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},sr=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),_a=()=>({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"}}),pu=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),I2=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),D2=(e,t,r,n)=>{let o=`[class^="${t}"], [class*=" ${t}"]`,i=r?`.${r}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},s={};return n!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),a),{[o]:a})}},GC=(e,t)=>({outline:`${oe(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),$2=(e,t)=>({"&:focus-visible":Object.assign({},GC(e,t))}),Wh=e=>({[`.${e}`]:Object.assign(Object.assign({},_a()),{[`.${e} .${e}-icon`]:{display:"block"}})});var{genStyleHooks:Gt,genComponentStyleHook:XC,genSubStyleComponent:YC}=HC({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:t}=(0,KC.useContext)(rt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{let[e,t,r,n,o]=xr();return{theme:e,realToken:t,hashId:r,token:n,cssVar:o}},useCSP:()=>{let{csp:e}=(0,KC.useContext)(rt);return e??{}},getResetStyles:(e,t)=>{var r;let n=I2(e);return[n,{"&":n},Wh((r=t?.prefix.iconPrefixCls)!==null&&r!==void 0?r:Nd)]},getCommonStyle:D2,getCompUnitless:()=>qC});function Bh(e,t){return Eo.reduce((r,n)=>{let o=e[`${n}1`],i=e[`${n}3`],a=e[`${n}6`],s=e[`${n}7`];return Object.assign(Object.assign({},r),t(n,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))},{})}var ej=(e,t)=>{let[r,n]=xr();return Ts({theme:r,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>[Wh(e)])},jh=ej;var tj=E(D()),rj=Object.assign({},tj),{useId:k2}=rj,nj=()=>"",oj=typeof k2>"u"?nj:k2,A2=oj;function QC(e,t,r){var n,o;let i=Oh("ConfigProvider"),a=e||{},s=a.inherit===!1||!t?Object.assign(Object.assign({},Pd),{hashed:(n=t?.hashed)!==null&&n!==void 0?n:Pd.hashed,cssVar:t?.cssVar}):t,l=A2();return Hi(()=>{var c,u;if(!e)return t;let f=Object.assign({},s.components);Object.keys(e.components||{}).forEach(h=>{f[h]=Object.assign(Object.assign({},f[h]),e.components[h])});let p=`css-var-${l.replace(/:/g,"")}`,g=((c=a.cssVar)!==null&&c!==void 0?c:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:r?.prefixCls},typeof s.cssVar=="object"?s.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((u=a.cssVar)===null||u===void 0?void 0:u.key)||p});return Object.assign(Object.assign(Object.assign({},s),a),{token:Object.assign(Object.assign({},s.token),a.token),components:f,cssVar:g})},[a,s],(c,u)=>c.some((f,p)=>{let g=u[p];return!ws(f,g,!0)}))}var Na=E(D());var Q2=E(Ne());var io=E(D()),aw=E(D());var Vh=E(D()),ij=["children"],JC=Vh.createContext({});function Hh(e){var t=e.children,r=Ve(e,ij);return Vh.createElement(JC.Provider,{value:r},t)}var M2=E(D()),aj=function(e){Dr(r,e);var t=$r(r);function r(){return it(this,r),t.apply(this,arguments)}return at(r,[{key:"render",value:function(){return this.props.children}}]),r}(M2.Component),F2=aj;var Uh=E(D());function ZC(e){var t=Uh.useReducer(function(s){return s+1},0),r=V(t,2),n=r[1],o=Uh.useRef(e),i=wt(function(){return o.current}),a=wt(function(s){o.current=typeof s=="function"?s(o.current):s,n()});return[i,a]}var ev=E(D()),Ta=E(D());var Gi="none",Id="appear",Dd="enter",$d="leave",ew="none",oo="prepare",Pa="start",Ds="active",qh="end",Gh="prepared";var H2=E(D()),U2=E(D());function L2(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function sj(e,t){var r={animationend:L2("Animation","AnimationEnd"),transitionend:L2("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var lj=sj(Yt(),typeof window<"u"?window:{}),W2={};Yt()&&(z2=document.createElement("div"),W2=z2.style);var z2,Kh={};function B2(e){if(Kh[e])return Kh[e];var t=lj[e];if(t)for(var r=Object.keys(t),n=r.length,o=0;o1&&arguments[1]!==void 0?arguments[1]:2;t();var i=dt(function(){o<=1?n({isCanceled:function(){return i!==e.current}}):r(n,o-1)});e.current=i}return Jh.useEffect(function(){return function(){t()}},[]),[r,t]};var uj=[oo,Pa,Ds,qh],fj=[oo,Gh],ow=!1,X2=!0;function Zh(e){return e===Ds||e===qh}var Y2=function(e,t,r){var n=Ra(ew),o=V(n,2),i=o[0],a=o[1],s=G2(),l=V(s,2),c=l[0],u=l[1];function f(){a(oo,!0)}var p=t?fj:uj;return Qh(function(){if(i!==ew&&i!==qh){var g=p.indexOf(i),h=p[g+1],v=r(i);v===ow?a(h,!0):h&&c(function(y){function m(){y.isCanceled()||a(h,!0)}v===!0?m():Promise.resolve(v).then(m)})}},[e,i]),K2.useEffect(function(){return function(){u()}},[]),[f,i]};function iw(e,t,r,n){var o=n.motionEnter,i=o===void 0?!0:o,a=n.motionAppear,s=a===void 0?!0:a,l=n.motionLeave,c=l===void 0?!0:l,u=n.motionDeadline,f=n.motionLeaveImmediately,p=n.onAppearPrepare,g=n.onEnterPrepare,h=n.onLeavePrepare,v=n.onAppearStart,y=n.onEnterStart,m=n.onLeaveStart,d=n.onAppearActive,x=n.onEnterActive,b=n.onLeaveActive,S=n.onAppearEnd,w=n.onEnterEnd,C=n.onLeaveEnd,R=n.onVisibleChanged,P=Ra(),O=V(P,2),A=O[0],M=O[1],F=ZC(Gi),H=V(F,2),j=H[0],I=H[1],N=Ra(null),$=V(N,2),U=$[0],W=$[1],B=j(),q=(0,Ta.useRef)(!1),L=(0,Ta.useRef)(null);function k(){return r()}var z=(0,Ta.useRef)(!1);function G(){I(Gi),W(null,!0)}var J=wt(function(Ce){var $e=j();if($e!==Gi){var ce=k();if(!(Ce&&!Ce.deadline&&Ce.target!==ce)){var ie=z.current,Re;$e===Id&&ie?Re=S?.(ce,Ce):$e===Dd&&ie?Re=w?.(ce,Ce):$e===$d&&ie&&(Re=C?.(ce,Ce)),ie&&Re!==!1&&G()}}}),Y=q2(J),X=V(Y,1),ae=X[0],Z=function($e){switch($e){case Id:return _(_(_({},oo,p),Pa,v),Ds,d);case Dd:return _(_(_({},oo,g),Pa,y),Ds,x);case $d:return _(_(_({},oo,h),Pa,m),Ds,b);default:return{}}},K=ev.useMemo(function(){return Z(B)},[B]),Q=Y2(B,!e,function(Ce){if(Ce===oo){var $e=K[oo];return $e?$e(k()):ow}if(ne in K){var ce;W(((ce=K[ne])===null||ce===void 0?void 0:ce.call(K,k(),null))||null)}return ne===Ds&&B!==Gi&&(ae(k()),u>0&&(clearTimeout(L.current),L.current=setTimeout(function(){J({deadline:!0})},u))),ne===Gh&&G(),X2}),re=V(Q,2),ee=re[0],ne=re[1],de=Zh(ne);z.current=de;var le=(0,Ta.useRef)(null);Qh(function(){if(!(q.current&&le.current===t)){M(t);var Ce=q.current;q.current=!0;var $e;!Ce&&t&&s&&($e=Id),Ce&&t&&i&&($e=Dd),(Ce&&!t&&c||!Ce&&f&&!t&&c)&&($e=$d);var ce=Z($e);$e&&(e||ce[oo])?(I($e),ee()):I(Gi),le.current=t}},[t]),(0,Ta.useEffect)(function(){(B===Id&&!s||B===Dd&&!i||B===$d&&!c)&&I(Gi)},[s,i,c]),(0,Ta.useEffect)(function(){return function(){q.current=!1,clearTimeout(L.current)}},[]);var pe=ev.useRef(!1);(0,Ta.useEffect)(function(){A&&(pe.current=!0),A!==void 0&&B===Gi&&((pe.current||A)&&R?.(A),pe.current=!0)},[A,B]);var Oe=U;return K[oo]&&ne===Pa&&(Oe=T({transition:"none"},Oe)),[B,ne,Oe,A??t]}function dj(e){var t=e;ue(e)==="object"&&(t=e.transitionSupport);function r(o,i){return!!(o.motionName&&t&&i!==!1)}var n=io.forwardRef(function(o,i){var a=o.visible,s=a===void 0?!0:a,l=o.removeOnLeave,c=l===void 0?!0:l,u=o.forceRender,f=o.children,p=o.motionName,g=o.leavedClassName,h=o.eventProps,v=io.useContext(JC),y=v.motion,m=r(o,y),d=(0,aw.useRef)(),x=(0,aw.useRef)();function b(){try{return d.current instanceof HTMLElement?d.current:wl(x.current)}catch{return null}}var S=iw(m,s,b,o),w=V(S,4),C=w[0],R=w[1],P=w[2],O=w[3],A=io.useRef(O);O&&(A.current=!0);var M=io.useCallback(function($){d.current=$,gd(i,$)},[i]),F,H=T(T({},h),{},{visible:s});if(!f)F=null;else if(C===Gi)O?F=f(T({},H),M):!c&&A.current&&g?F=f(T(T({},H),{},{className:g}),M):u||!c&&!g?F=f(T(T({},H),{},{style:{display:"none"}}),M):F=null;else{var j;R===oo?j="prepare":Zh(R)?j="active":R===Pa&&(j="start");var I=nw(p,"".concat(C,"-").concat(j));F=f(T(T({},H),{},{className:(0,Q2.default)(nw(p,C),_(_({},I,I&&j),p,typeof p=="string")),style:P}),M)}if(io.isValidElement(F)&&bi(F)){var N=xs(F);N||(F=io.cloneElement(F,{ref:M}))}return io.createElement(F2,{ref:x},F)});return n.displayName="CSSMotion",n}var tv=dj(Xh);var Il=E(D());var rv="add",nv="keep",ov="remove",av="removed";function pj(e){var t;return e&&ue(e)==="object"&&"key"in e?t=e:t={key:e},T(T({},t),{},{key:String(t.key)})}function iv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(pj)}function J2(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,o=t.length,i=iv(e),a=iv(t);i.forEach(function(c){for(var u=!1,f=n;f1});return l.forEach(function(c){r=r.filter(function(u){var f=u.key,p=u.status;return f!==c||p!==ov}),r.forEach(function(u){u.key===c&&(u.status=nv)})}),r}var mj=["component","children","onVisibleChanged","onAllRemoved"],gj=["status"],hj=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function vj(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:tv,r=function(n){Dr(i,n);var o=$r(i);function i(){var a;it(this,i);for(var s=arguments.length,l=new Array(s),c=0;cnull;var xj=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);ot.endsWith("Color"))}var Oj=e=>{let{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:o}=e;t!==void 0&&(tD=t),r!==void 0&&(Sj=r),"holderRender"in e&&(wj=o),n&&(Rj(n)?p2(Ej(),n):Cj=n)};var _j=e=>{let{children:t,csp:r,autoInsertSpaceInButton:n,alert:o,anchor:i,form:a,locale:s,componentSize:l,direction:c,space:u,splitter:f,virtual:p,dropdownMatchSelectWidth:g,popupMatchSelectWidth:h,popupOverflow:v,legacyLocale:y,parentContext:m,iconPrefixCls:d,theme:x,componentDisabled:b,segmented:S,statistic:w,spin:C,calendar:R,carousel:P,cascader:O,collapse:A,typography:M,checkbox:F,descriptions:H,divider:j,drawer:I,skeleton:N,steps:$,image:U,layout:W,list:B,mentions:q,modal:L,progress:k,result:z,slider:G,breadcrumb:J,menu:Y,pagination:X,input:ae,textArea:Z,empty:K,badge:Q,radio:re,rate:ee,switch:ne,transfer:de,avatar:le,message:pe,tag:Oe,table:Ce,card:$e,tabs:ce,timeline:ie,timePicker:Re,upload:Le,notification:Ge,tree:Me,colorPicker:Ie,datePicker:je,rangePicker:We,flex:He,wave:ye,dropdown:se,warning:xe,tour:_e,tooltip:he,popover:Ze,popconfirm:lt,floatButtonGroup:Et,variant:Tt,inputNumber:pt,treeSelect:ke}=e,we=lr.useCallback((ze,tt)=>{let{prefixCls:At}=e;if(tt)return tt;let Nt=At||m.getPrefixCls("");return ze?`${Nt}-${ze}`:Nt},[m.getPrefixCls,e.prefixCls]),et=d||m.iconPrefixCls||Nd,Pe=r||m.csp;jh(et,Pe);let De=QC(x,m.theme,{prefixCls:we("")}),Ee={csp:Pe,autoInsertSpaceInButton:n,alert:o,anchor:i,locale:s||y,direction:c,space:u,splitter:f,virtual:p,popupMatchSelectWidth:h??g,popupOverflow:v,getPrefixCls:we,iconPrefixCls:et,theme:De,segmented:S,statistic:w,spin:C,calendar:R,carousel:P,cascader:O,collapse:A,typography:M,checkbox:F,descriptions:H,divider:j,drawer:I,skeleton:N,steps:$,image:U,input:ae,textArea:Z,layout:W,list:B,mentions:q,modal:L,progress:k,result:z,slider:G,breadcrumb:J,menu:Y,pagination:X,empty:K,badge:Q,radio:re,rate:ee,switch:ne,transfer:de,avatar:le,message:pe,tag:Oe,table:Ce,card:$e,tabs:ce,timeline:ie,timePicker:Re,upload:Le,notification:Ge,tree:Me,colorPicker:Ie,datePicker:je,rangePicker:We,flex:He,wave:ye,dropdown:se,warning:xe,tour:_e,tooltip:he,popover:Ze,popconfirm:lt,floatButtonGroup:Et,variant:Tt,inputNumber:pt,treeSelect:ke},be=Object.assign({},m);Object.keys(Ee).forEach(ze=>{Ee[ze]!==void 0&&(be[ze]=Ee[ze])}),bj.forEach(ze=>{let tt=e[ze];tt&&(be[ze]=tt)}),typeof n<"u"&&(be.button=Object.assign({autoInsertSpace:n},be.button));let ht=Hi(()=>be,be,(ze,tt)=>{let At=Object.keys(ze),Nt=Object.keys(tt);return At.length!==Nt.length||At.some(tr=>ze[tr]!==tt[tr])}),{layer:Mt}=lr.useContext(wi),Fe=lr.useMemo(()=>({prefixCls:et,csp:Pe,layer:Mt?"antd":void 0}),[et,Pe,Mt]),Se=lr.createElement(lr.Fragment,null,lr.createElement(eD,{dropdownMatchSelectWidth:g}),t),Ke=lr.useMemo(()=>{var ze,tt,At,Nt;return Sa(((ze=Ei.Form)===null||ze===void 0?void 0:ze.defaultValidateMessages)||{},((At=(tt=ht.locale)===null||tt===void 0?void 0:tt.Form)===null||At===void 0?void 0:At.defaultValidateMessages)||{},((Nt=ht.form)===null||Nt===void 0?void 0:Nt.validateMessages)||{},a?.validateMessages||{})},[ht,a?.validateMessages]);Object.keys(Ke).length>0&&(Se=lr.createElement(NI.Provider,{value:Ke},Se)),s&&(Se=lr.createElement(zI,{locale:s,_ANT_MARK__:LI},Se)),(et||Pe)&&(Se=lr.createElement(iu.Provider,{value:Fe},Se)),l&&(Se=lr.createElement(g2,{size:l},Se)),Se=lr.createElement(lw,null,Se);let Be=lr.useMemo(()=>{let ze=De||{},{algorithm:tt,token:At,components:Nt,cssVar:tr}=ze,Ft=xj(ze,["algorithm","token","components","cssVar"]),rr=tt&&(!Array.isArray(tt)||tt.length>0)?Es(tt):_d,pr={};Object.entries(Nt||{}).forEach(([An,gr])=>{let Lt=Object.assign({},gr);"algorithm"in Lt&&(Lt.algorithm===!0?Lt.theme=rr:(Array.isArray(Lt.algorithm)||typeof Lt.algorithm=="function")&&(Lt.theme=Es(Lt.algorithm)),delete Lt.algorithm),pr[An]=Lt});let mr=Object.assign(Object.assign({},wa),At);return Object.assign(Object.assign({},Ft),{theme:rr,token:mr,components:pr,override:Object.assign({override:mr},pr),cssVar:tr})},[De]);return x&&(Se=lr.createElement(Td.Provider,{value:Be},Se)),ht.warning&&(Se=lr.createElement(PI.Provider,{value:ht.warning},Se)),b!==void 0&&(Se=lr.createElement(m2,{disabled:b},Se)),lr.createElement(rt.Provider,{value:ht},Se)},mu=e=>{let t=lr.useContext(rt),r=lr.useContext(au);return lr.createElement(_j,Object.assign({parentContext:t,legacyLocale:r},e))};mu.ConfigContext=rt;mu.SizeContext=Tl;mu.config=Oj;mu.useConfig=h2;Object.defineProperty(mu,"SizeContext",{get:()=>Tl});var Ia=mu;var fv=E(D());var Pj={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"},rD=Pj;var kl=E(D()),cD=E(Ne());var sD=E(D());function nD(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Tj(e){return nD(e)instanceof ShadowRoot}function Dl(e){return Tj(e)?nD(e):null}var $l=E(D());function Nj(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function iD(e,t){Vt(e,"[@ant-design/icons] ".concat(t))}function cw(e){return ue(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ue(e.icon)==="object"||typeof e.icon=="function")}function oD(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[Nj(r)]=n}return t},{})}function sv(e,t,r){return r?$l.default.createElement(e.tag,T(T({key:t},oD(e.attrs)),r),(e.children||[]).map(function(n,o){return sv(n,"".concat(t,"-").concat(e.tag,"-").concat(o))})):$l.default.createElement(e.tag,T({key:t},oD(e.attrs)),(e.children||[]).map(function(n,o){return sv(n,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function uw(e){return Ri(e)[0]}function lv(e){return e?Array.isArray(e)?e:[e]:[]}var Ij=` .anticon { display: inline-flex; align-items: center; color: inherit; font-style: normal; line-height: 0; text-align: center; text-transform: none; vertical-align: -0.125em; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .anticon > * { line-height: 1; } .anticon svg { display: inline-block; } .anticon::before { display: none; } .anticon .anticon-icon { display: block; } .anticon[tabindex] { cursor: pointer; } .anticon-spin::before, .anticon-spin { display: inline-block; -webkit-animation: loadingCircle 1s infinite linear; animation: loadingCircle 1s infinite linear; } @-webkit-keyframes loadingCircle { 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } @keyframes loadingCircle { 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } `,aD=function(t){var r=(0,$l.useContext)(iu),n=r.csp,o=r.prefixCls,i=r.layer,a=Ij;o&&(a=a.replace(/anticon/g,o)),i&&(a="@layer ".concat(i,` { `).concat(a,` }`)),(0,$l.useEffect)(function(){var s=t.current,l=Dl(s);yn(a,"@ant-design-icons",{prepend:!i,csp:n,attachTo:l})},[])};var Dj=["icon","className","onClick","style","primaryColor","secondaryColor"],kd={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function $j(e){var t=e.primaryColor,r=e.secondaryColor;kd.primaryColor=t,kd.secondaryColor=r||uw(t),kd.calculated=!!r}function kj(){return T({},kd)}var cv=function(t){var r=t.icon,n=t.className,o=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=Ve(t,Dj),c=sD.useRef(),u=kd;if(a&&(u={primaryColor:a,secondaryColor:s||uw(a)}),aD(c),iD(cw(r),"icon should be icon definiton, but got ".concat(r)),!cw(r))return null;var f=r;return f&&typeof f.icon=="function"&&(f=T(T({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),sv(f.icon,"svg-".concat(f.name),T(T({className:n,onClick:o,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};cv.displayName="IconReact";cv.getTwoToneColors=kj;cv.setTwoToneColors=$j;var Ad=cv;function fw(e){var t=lv(e),r=V(t,2),n=r[0],o=r[1];return Ad.setTwoToneColors({primaryColor:n,secondaryColor:o})}function lD(){var e=Ad.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Aj=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];fw(Ns.primary);var uv=kl.forwardRef(function(e,t){var r=e.className,n=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=Ve(e,Aj),u=kl.useContext(iu),f=u.prefixCls,p=f===void 0?"anticon":f,g=u.rootClassName,h=(0,cD.default)(g,p,_(_({},"".concat(p,"-").concat(n.name),!!n.name),"".concat(p,"-spin"),!!o||n.name==="loading"),r),v=a;v===void 0&&s&&(v=-1);var y=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,m=lv(l),d=V(m,2),x=d[0],b=d[1];return kl.createElement("span",fe({role:"img","aria-label":n.name},c,{ref:t,tabIndex:v,onClick:s,className:h}),kl.createElement(Ad,{icon:n,primaryColor:x,secondaryColor:b,style:y}))});uv.displayName="AntdIcon";uv.getTwoToneColor=lD;uv.setTwoToneColor=fw;var zt=uv;var Mj=function(t,r){return fv.createElement(zt,fe({},t,{ref:r,icon:rD}))},Fj=fv.forwardRef(Mj),uD=Fj;var dv=E(D());var Lj={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"},fD=Lj;var zj=function(t,r){return dv.createElement(zt,fe({},t,{ref:r,icon:fD}))},Wj=dv.forwardRef(zj),gu=Wj;var mv=E(D());var Bj={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"},pv=Bj;var jj=function(t,r){return mv.createElement(zt,fe({},t,{ref:r,icon:pv}))},Vj=mv.forwardRef(jj),gv=Vj;var Hj=`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`,Uj=`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`,qj="".concat(Hj," ").concat(Uj).split(/[\s\n]+/),Gj="aria-",Kj="data-";function dD(e,t){return e.indexOf(t)===0}function qo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r;t===!1?r={aria:!0,data:!0,attr:!0}:t===!0?r={aria:!0}:r=T({},t);var n={};return Object.keys(e).forEach(function(o){(r.aria&&(o==="role"||dD(o,Gj))||r.data&&dD(o,Kj)||r.attr&&qj.includes(o))&&(n[o]=e[o])}),n}var Md=E(D());function hv(e){return e&&Md.default.isValidElement(e)&&e.type===Md.default.Fragment}var Xj=(e,t,r)=>Md.default.isValidElement(e)?Md.default.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function Go(e,t){return Xj(e,e,t)}var Yj=e=>{let[,,,,t]=xr();return t?`${e}-css-var`:""},Ko=Yj;var st={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 r=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||r>=st.F1&&r<=st.F12)return!1;switch(r){case st.ALT:case st.CAPS_LOCK:case st.CONTEXT_MENU:case st.CTRL:case st.DOWN:case st.END:case st.ESC:case st.HOME:case st.INSERT:case st.LEFT:case st.MAC_FF_META:case st.META:case st.NUMLOCK:case st.NUM_CENTER:case st.PAGE_DOWN:case st.PAGE_UP:case st.PAUSE:case st.PRINT_SCREEN:case st.RIGHT:case st.SHIFT:case st.UP:case st.WIN_KEY:case st.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=st.ZERO&&t<=st.NINE||t>=st.NUM_ZERO&&t<=st.NUM_MULTIPLY||t>=st.A&&t<=st.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case st.SPACE:case st.QUESTION_MARK:case st.NUM_PLUS:case st.NUM_MINUS:case st.NUM_PERIOD:case st.NUM_DIVISION:case st.SEMICOLON:case st.DASH:case st.EQUALS:case st.COMMA:case st.PERIOD:case st.SLASH:case st.APOSTROPHE:case st.SINGLE_QUOTE:case st.OPEN_SQUARE_BRACKET:case st.BACKSLASH:case st.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Qe=st;var vv=E(D());var Qj={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"},pD=Qj;var Jj=function(t,r){return vv.createElement(zt,fe({},t,{ref:r,icon:pD}))},Zj=vv.forwardRef(Jj),Al=Zj;var gD=E(D());var mD=E(D()),e8=mD.default.createContext(void 0),yv=e8;var Da=100,t8=10,r8=Da*t8,lfe=r8+Da,hD={Modal:Da,Drawer:Da,Popover:Da,Popconfirm:Da,Tooltip:Da,Tour:Da,FloatButton:Da},n8={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function o8(e){return e in hD}var xv=(e,t)=>{let[,r]=xr(),n=gD.default.useContext(yv),o=o8(e),i;if(t!==void 0)i=[t,t];else{let a=n??0;o?a+=(n?0:r.zIndexPopupBase)+hD[e]:a+=n8[e],i=[n===void 0?t:a,a]}return i};var d8=E(D()),yfe=E(Vi());function Ot(){"use strict";Ot=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(I,N,$){I[N]=$.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(I,N,$){return Object.defineProperty(I,N,{value:$,enumerable:!0,configurable:!0,writable:!0}),I[N]}try{c({},"")}catch{c=function($,U,W){return $[U]=W}}function u(I,N,$,U){var W=N&&N.prototype instanceof m?N:m,B=Object.create(W.prototype),q=new H(U||[]);return o(B,"_invoke",{value:O(I,$,q)}),B}function f(I,N,$){try{return{type:"normal",arg:I.call(N,$)}}catch(U){return{type:"throw",arg:U}}}t.wrap=u;var p="suspendedStart",g="suspendedYield",h="executing",v="completed",y={};function m(){}function d(){}function x(){}var b={};c(b,a,function(){return this});var S=Object.getPrototypeOf,w=S&&S(S(j([])));w&&w!==r&&n.call(w,a)&&(b=w);var C=x.prototype=m.prototype=Object.create(b);function R(I){["next","throw","return"].forEach(function(N){c(I,N,function($){return this._invoke(N,$)})})}function P(I,N){function $(W,B,q,L){var k=f(I[W],I,B);if(k.type!=="throw"){var z=k.arg,G=z.value;return G&&ue(G)=="object"&&n.call(G,"__await")?N.resolve(G.__await).then(function(J){$("next",J,q,L)},function(J){$("throw",J,q,L)}):N.resolve(G).then(function(J){z.value=J,q(z)},function(J){return $("throw",J,q,L)})}L(k.arg)}var U;o(this,"_invoke",{value:function(B,q){function L(){return new N(function(k,z){$(B,q,k,z)})}return U=U?U.then(L,L):L()}})}function O(I,N,$){var U=p;return function(W,B){if(U===h)throw Error("Generator is already running");if(U===v){if(W==="throw")throw B;return{value:e,done:!0}}for($.method=W,$.arg=B;;){var q=$.delegate;if(q){var L=A(q,$);if(L){if(L===y)continue;return L}}if($.method==="next")$.sent=$._sent=$.arg;else if($.method==="throw"){if(U===p)throw U=v,$.arg;$.dispatchException($.arg)}else $.method==="return"&&$.abrupt("return",$.arg);U=h;var k=f(I,N,$);if(k.type==="normal"){if(U=$.done?v:g,k.arg===y)continue;return{value:k.arg,done:$.done}}k.type==="throw"&&(U=v,$.method="throw",$.arg=k.arg)}}}function A(I,N){var $=N.method,U=I.iterator[$];if(U===e)return N.delegate=null,$==="throw"&&I.iterator.return&&(N.method="return",N.arg=e,A(I,N),N.method==="throw")||$!=="return"&&(N.method="throw",N.arg=new TypeError("The iterator does not provide a '"+$+"' method")),y;var W=f(U,I.iterator,N.arg);if(W.type==="throw")return N.method="throw",N.arg=W.arg,N.delegate=null,y;var B=W.arg;return B?B.done?(N[I.resultName]=B.value,N.next=I.nextLoc,N.method!=="return"&&(N.method="next",N.arg=e),N.delegate=null,y):B:(N.method="throw",N.arg=new TypeError("iterator result is not an object"),N.delegate=null,y)}function M(I){var N={tryLoc:I[0]};1 in I&&(N.catchLoc=I[1]),2 in I&&(N.finallyLoc=I[2],N.afterLoc=I[3]),this.tryEntries.push(N)}function F(I){var N=I.completion||{};N.type="normal",delete N.arg,I.completion=N}function H(I){this.tryEntries=[{tryLoc:"root"}],I.forEach(M,this),this.reset(!0)}function j(I){if(I||I===""){var N=I[a];if(N)return N.call(I);if(typeof I.next=="function")return I;if(!isNaN(I.length)){var $=-1,U=function W(){for(;++$=0;--W){var B=this.tryEntries[W],q=B.completion;if(B.tryLoc==="root")return U("end");if(B.tryLoc<=this.prev){var L=n.call(B,"catchLoc"),k=n.call(B,"finallyLoc");if(L&&k){if(this.prev=0;--U){var W=this.tryEntries[U];if(W.tryLoc<=this.prev&&n.call(W,"finallyLoc")&&this.prev=0;--$){var U=this.tryEntries[$];if(U.finallyLoc===N)return this.complete(U.completion,U.afterLoc),F(U),y}},catch:function(N){for(var $=this.tryEntries.length-1;$>=0;--$){var U=this.tryEntries[$];if(U.tryLoc===N){var W=U.completion;if(W.type==="throw"){var B=W.arg;F(U)}return B}}throw Error("illegal catch attempt")},delegateYield:function(N,$,U){return this.delegate={iterator:j(N),resultName:$,nextLoc:U},this.method==="next"&&(this.arg=e),y}},t}function vD(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(n,o)}function Gr(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(l){vD(i,n,o,a,s,"next",l)}function s(l){vD(i,n,o,a,s,"throw",l)}a(void 0)})}}var i8=E(Vi()),Fd=T({},i8),a8=Fd.version,dw=Fd.render,s8=Fd.unmountComponentAtNode,Sv;try{yD=Number((a8||"").split(".")[0]),yD>=18&&(Sv=Fd.createRoot)}catch{}var yD;function xD(e){var t=Fd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&ue(t)==="object"&&(t.usingClientEntryPoint=e)}var bv="__rc_react_root__";function l8(e,t){xD(!0);var r=t[bv]||Sv(t);xD(!1),r.render(e),t[bv]=r}function c8(e,t){dw?.(e,t)}function bD(e,t){if(Sv){l8(e,t);return}c8(e,t)}function u8(e){return pw.apply(this,arguments)}function pw(){return pw=Gr(Ot().mark(function e(t){return Ot().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var o;(o=t[bv])===null||o===void 0||o.unmount(),delete t[bv]}));case 1:case"end":return n.stop()}},e)})),pw.apply(this,arguments)}function f8(e){s8(e)}function SD(e){return mw.apply(this,arguments)}function mw(){return mw=Gr(Ot().mark(function e(t){return Ot().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(Sv===void 0){n.next=2;break}return n.abrupt("return",u8(t));case 2:f8(t);case 3:case"end":return n.stop()}},e)})),mw.apply(this,arguments)}var p8=(e,t)=>(bD(e,t),()=>SD(t)),CD=p8;function wD(e){return e&&(CD=e),CD}var gw=()=>({height:0,opacity:0}),ED=e=>{let{scrollHeight:t}=e;return{height:t,opacity:1}},m8=e=>({height:e?e.offsetHeight:0}),hw=(e,t)=>t?.deadline===!0||t.propertyName==="height",g8=(e=Is)=>({motionName:`${e}-motion-collapse`,onAppearStart:gw,onEnterStart:gw,onAppearActive:ED,onEnterActive:ED,onLeaveStart:m8,onLeaveActive:gw,onAppearEnd:hw,onEnterEnd:hw,onLeaveEnd:hw,motionDeadline:500});var Cv=(e,t,r)=>r!==void 0?r:`${e}-${t}`;var RD=g8;var Wt=E(D()),Vv=E(Ne());function Kr(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}var Ml=E(D()),ID=E(Ne());var wv=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1};var h8=e=>{let{componentCls:t,colorPrimary:r}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,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(",")}}}}},OD=XC("Wave",e=>[h8(e)]);var Ev=E(D());var hu=`${Is}-wave-target`;var un=E(D()),PD=E(Ne());function vw(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function _D(e){let{borderTopColor:t,borderColor:r,backgroundColor:n}=getComputedStyle(e);return vw(t)?t:vw(r)?r:vw(n)?n:null}function yw(e){return Number.isNaN(e)?0:e}var v8=e=>{let{className:t,target:r,component:n,registerUnmount:o}=e,i=un.useRef(null),a=un.useRef(null);un.useEffect(()=>{a.current=o()},[]);let[s,l]=un.useState(null),[c,u]=un.useState([]),[f,p]=un.useState(0),[g,h]=un.useState(0),[v,y]=un.useState(0),[m,d]=un.useState(0),[x,b]=un.useState(!1),S={left:f,top:g,width:v,height:m,borderRadius:c.map(R=>`${R}px`).join(" ")};s&&(S["--wave-color"]=s);function w(){let R=getComputedStyle(r);l(_D(r));let P=R.position==="static",{borderLeftWidth:O,borderTopWidth:A}=R;p(P?r.offsetLeft:yw(-parseFloat(O))),h(P?r.offsetTop:yw(-parseFloat(A))),y(r.offsetWidth),d(r.offsetHeight);let{borderTopLeftRadius:M,borderTopRightRadius:F,borderBottomLeftRadius:H,borderBottomRightRadius:j}=R;u([M,F,j,H].map(I=>yw(parseFloat(I))))}if(un.useEffect(()=>{if(r){let R=dt(()=>{w(),b(!0)}),P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(w),P.observe(r)),()=>{dt.cancel(R),P?.disconnect()}}},[]),!x)return null;let C=(n==="Checkbox"||n==="Radio")&&r?.classList.contains(hu);return un.createElement(Uo,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(R,P)=>{var O,A;if(P.deadline||P.propertyName==="opacity"){let M=(O=i.current)===null||O===void 0?void 0:O.parentElement;(A=a.current)===null||A===void 0||A.call(a).then(()=>{M?.remove()})}return!1}},({className:R},P)=>un.createElement("div",{ref:zr(i,P),className:(0,PD.default)(t,R,{"wave-quick":C}),style:S}))},y8=(e,t)=>{var r;let{component:n}=t;if(n==="Checkbox"&&!(!((r=e.querySelector("input"))===null||r===void 0)&&r.checked))return;let o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e?.insertBefore(o,e?.firstChild);let i=wD(),a=null;function s(){return a}a=i(un.createElement(v8,Object.assign({},t,{target:e,registerUnmount:s})),o)},TD=y8;var x8=(e,t,r)=>{let{wave:n}=Ev.useContext(rt),[,o,i]=xr(),a=wt(c=>{let u=e.current;if(n?.disabled||!u)return;let f=u.querySelector(`.${hu}`)||u,{showEffect:p}=n||{};(p||TD)(f,{className:t,token:o,component:r,event:c,hashId:i})}),s=Ev.useRef(null);return c=>{dt.cancel(s.current),s.current=dt(()=>{a(c)})}},ND=x8;var b8=e=>{let{children:t,disabled:r,component:n}=e,{getPrefixCls:o}=(0,Ml.useContext)(rt),i=(0,Ml.useRef)(null),a=o("wave"),[,s]=OD(a),l=ND(i,(0,ID.default)(a,s),n);if(Ml.default.useEffect(()=>{let u=i.current;if(!u||u.nodeType!==1||r)return;let f=p=>{!wv(p.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(p)};return u.addEventListener("click",f,!0),()=>{u.removeEventListener("click",f,!0)}},[r]),!Ml.default.isValidElement(t))return t??null;let c=bi(t)?zr(xs(t),i):i;return Go(t,{ref:c})},Rv=b8;var xw=E(D());var S8=e=>{let t=xw.default.useContext(Tl);return xw.default.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},ao=S8;var $s=E(D()),DD=E(Ne());var $D=$s.createContext(null),Xo=(e,t)=>{let r=$s.useContext($D),n=$s.useMemo(()=>{if(!r)return"";let{compactDirection:o,isFirstItem:i,isLastItem:a}=r,s=o==="vertical"?"-vertical-":"-";return(0,DD.default)(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:i,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,r]);return{compactSize:r?.compactSize,compactDirection:r?.compactDirection,compactItemClassnames:n}},kD=e=>{let{children:t}=e;return $s.createElement($D.Provider,{value:null},t)};var $a=E(D()),AD=E(Ne());var C8=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let{getPrefixCls:t,direction:r}=$a.useContext(rt),{prefixCls:n,size:o,className:i}=e,a=C8(e,["prefixCls","size","className"]),s=t("btn-group",n),[,,l]=xr(),c=$a.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]),u=(0,AD.default)(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:r==="rtl"},i,l);return $a.createElement(bw.Provider,{value:o},$a.createElement("div",Object.assign({},a,{className:u})))},MD=w8;var vu=E(D());var FD=/^[\u4E00-\u9FA5]{2}$/,Ov=FD.test.bind(FD);function LD(e){return typeof e=="string"}function _v(e){return e==="text"||e==="link"}function E8(e,t){if(e==null)return;let r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&LD(e.type)&&Ov(e.props.children)?Go(e,{children:e.props.children.split("").join(r)}):LD(e)?Ov(e)?vu.default.createElement("span",null,e.split("").join(r)):vu.default.createElement("span",null,e):hv(e)?vu.default.createElement("span",null,e):e}function zD(e,t){let r=!1,n=[];return vu.default.Children.forEach(e,o=>{let i=typeof o,a=i==="string"||i==="number";if(r&&a){let s=n.length-1,l=n[s];n[s]=`${l}${o}`}else n.push(o);r=a}),vu.default.Children.map(n,o=>E8(o,t))}var sde=["default","primary","danger"].concat(te(Eo));var ks=E(D());var ww=E(Ne());var Pv=E(D()),WD=E(Ne()),R8=(0,Pv.forwardRef)((e,t)=>{let{className:r,style:n,children:o,prefixCls:i}=e,a=(0,WD.default)(`${i}-icon`,r);return Pv.default.createElement("span",{ref:t,className:a,style:n},o)}),Ld=R8;var BD=(0,ks.forwardRef)((e,t)=>{let{prefixCls:r,className:n,style:o,iconClassName:i}=e,a=(0,ww.default)(`${r}-loading-icon`,n);return ks.default.createElement(Ld,{prefixCls:r,className:a,style:o,ref:t},ks.default.createElement(Al,{className:i}))}),Sw=()=>({width:0,opacity:0,transform:"scale(0)"}),Cw=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),O8=e=>{let{prefixCls:t,loading:r,existIcon:n,className:o,style:i,mount:a}=e,s=!!r;return n?ks.default.createElement(BD,{prefixCls:t,className:o,style:i}):ks.default.createElement(Uo,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:!0,onAppearStart:Sw,onAppearActive:Cw,onEnterStart:Sw,onEnterActive:Cw,onLeaveStart:Cw,onLeaveActive:Sw},({className:l,style:c},u)=>{let f=Object.assign(Object.assign({},i),c);return ks.default.createElement(BD,{prefixCls:t,className:(0,ww.default)(o,l),style:f,ref:u})})},jD=O8;var VD=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),_8=e=>{let{componentCls:t,fontSize:r,lineWidth:n,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(n).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:r}},VD(`${t}-primary`,o),VD(`${t}-danger`,i)]}},HD=_8;var _w=E(D());var P8=["b"],T8=["v"],Ew=function(t){return Math.round(Number(t||0))},N8=function(t){if(t instanceof gt)return t;if(t&&ue(t)==="object"&&"h"in t&&"b"in t){var r=t,n=r.b,o=Ve(r,P8);return T(T({},o),{},{v:n})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Yo=function(e){Dr(r,e);var t=$r(r);function r(n){return it(this,r),t.call(this,N8(n))}return at(r,[{key:"toHsbString",value:function(){var o=this.toHsb(),i=Ew(o.s*100),a=Ew(o.b*100),s=Ew(o.h),l=o.a,c="hsb(".concat(s,", ").concat(i,"%, ").concat(a,"%)"),u="hsba(".concat(s,", ").concat(i,"%, ").concat(a,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var o=this.toHsv(),i=o.v,a=Ve(o,T8);return T(T({},a),{},{b:i,a:this.a})}}]),r}(gt);var Rw=function(t){return t instanceof Yo?t:new Yo(t)},I8=Rw("#1677ff");var q8=E(Ne());var D8=E(Ne()),$8=E(D());var qD=E(D());var Ow=E(D());var k8=E(Ne()),A8=E(D());var M8=E(D());var UD=E(D());var V8=E(D());var U8=E(D());var KD=E(D());var H8=E(Ne());var GD=E(D());var G8=(e,t)=>e?.replace(/[^\w/]/g,"").slice(0,t?8:6)||"",K8=(e,t)=>e?G8(e,t):"",YD=function(){function e(t){it(this,e);var r;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(r=t.colors)===null||r===void 0?void 0:r.map(o=>({color:new e(o.color),percent:o.percent})),this.cleared=t.cleared;return}let n=Array.isArray(t);n&&t.length?(this.colors=t.map(({color:o,percent:i})=>({color:new e(o),percent:i})),this.metaColor=new Yo(this.colors[0].color.metaColor)):this.metaColor=new Yo(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return at(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return K8(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){let{colors:r}=this;return r?`linear-gradient(90deg, ${r.map(o=>`${o.color.toRgbString()} ${o.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(r){return!r||this.isGradient()!==r.isGradient()?!1:this.isGradient()?this.colors.length===r.colors.length&&this.colors.every((n,o)=>{let i=r.colors[o];return n.percent===i.percent&&n.color.equals(i.color)}):this.toHexString()===r.toHexString()}}])}();var S$=E(D());var tV=E(Ne());var X8=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`}}}),Pw=X8;var Y8=e=>({animationDuration:e,animationFillMode:"both"}),Q8=e=>({animationDuration:e,animationFillMode:"both"}),As=(e,t,r,n,o=!1)=>{let i=o?"&":"";return{[` ${i}${e}-enter, ${i}${e}-appear `]:Object.assign(Object.assign({},Y8(n)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},Q8(n)),{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:r,animationPlayState:"running",pointerEvents:"none"}}};var QD=new yt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),JD=new yt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Tw=(e,t=!1)=>{let{antCls:r}=e,n=`${r}-fade`,o=t?"&":"";return[As(n,QD,JD,e.motionDurationMid,t),{[` ${o}${n}-enter, ${o}${n}-appear `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${n}-leave`]:{animationTimingFunction:"linear"}}]};var ZD=new yt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),e$=new yt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),t$=new yt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),r$=new yt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),n$=new yt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),o$=new yt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),i$=new yt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),a$=new yt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),J8={"move-up":{inKeyframes:i$,outKeyframes:a$},"move-down":{inKeyframes:ZD,outKeyframes:e$},"move-left":{inKeyframes:t$,outKeyframes:r$},"move-right":{inKeyframes:n$,outKeyframes:o$}},Tv=(e,t)=>{let{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:o,outKeyframes:i}=J8[t];return[As(n,o,i,e.motionDurationMid),{[` ${n}-enter, ${n}-appear `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var Nv=new yt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Iv=new yt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Dv=new yt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),$v=new yt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),s$=new yt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),l$=new yt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),c$=new yt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),u$=new yt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Z8={"slide-up":{inKeyframes:Nv,outKeyframes:Iv},"slide-down":{inKeyframes:Dv,outKeyframes:$v},"slide-left":{inKeyframes:s$,outKeyframes:l$},"slide-right":{inKeyframes:c$,outKeyframes:u$}},kv=(e,t)=>{let{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:o,outKeyframes:i}=Z8[t];return[As(n,o,i,e.motionDurationMid),{[` ${n}-enter, ${n}-appear `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]};var f$=new yt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),d$=new yt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Nw=new yt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Iw=new yt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),p$=new yt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),m$=new yt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),g$=new yt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),h$=new yt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),v$=new yt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),y$=new yt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),x$=new yt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),b$=new yt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),eV={zoom:{inKeyframes:f$,outKeyframes:d$},"zoom-big":{inKeyframes:Nw,outKeyframes:Iw},"zoom-big-fast":{inKeyframes:Nw,outKeyframes:Iw},"zoom-left":{inKeyframes:g$,outKeyframes:h$},"zoom-right":{inKeyframes:v$,outKeyframes:y$},"zoom-up":{inKeyframes:p$,outKeyframes:m$},"zoom-down":{inKeyframes:x$,outKeyframes:b$}},Dw=(e,t)=>{let{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:o,outKeyframes:i}=eV[t];return[As(n,o,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` ${n}-enter, ${n}-appear `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var C$=(e,t)=>{let{r,g:n,b:o,a:i}=e.toRgb(),a=new Yo(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:r*.299+n*.587+o*.114>192};var Av=e=>{let{paddingInline:t,onlyIconSize:r}=e;return ut(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:r})},Mv=e=>{var t,r,n,o,i,a;let s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(r=e.contentFontSizeSM)!==null&&r!==void 0?r:e.fontSize,c=(n=e.contentFontSizeLG)!==null&&n!==void 0?n:e.fontSizeLG,u=(o=e.contentLineHeight)!==null&&o!==void 0?o:lu(s),f=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:lu(l),p=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:lu(c),g=C$(new YD(e.colorBgSolid),"#fff")?"#000":"#fff",h=Eo.reduce((v,y)=>Object.assign(Object.assign({},v),{[`${y}ShadowColor`]:`0 ${oe(e.controlOutlineWidth)} 0 ${Nl(e[`${y}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},h),{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:g,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:f,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*p)/2-e.lineWidth,0)})};var rV=e=>{let{componentCls:t,iconCls:r,fontWeight:n,opacityLoading:o,motionDurationSlow:i,motionEaseInOut:a,marginXS:s,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:n,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"},[`${t}-icon > svg`]:_a(),"> a":{color:"currentColor"},"&:not(:disabled)":$2(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${r})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${i} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},w$=(e,t,r)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":r}}),nV=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),oV=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),iV=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Fv=(e,t,r,n,o,i,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:r||void 0,background:t,borderColor:n||void 0,boxShadow:"none"},w$(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),aV=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},iV(e))}),sV=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Lv=(e,t,r,n)=>{let i=n&&["link","text"].includes(n)?sV:aV;return Object.assign(Object.assign({},i(e)),w$(e.componentCls,t,r))},zv=(e,t,r,n,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:r},Lv(e,n,o))}),Wv=(e,t,r,n,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:r},Lv(e,n,o))}),Bv=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),jv=(e,t,r,n)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},Lv(e,r,n))}),Ki=(e,t,r,n,o)=>({[`&${e.componentCls}-variant-${r}`]:Object.assign({color:t,boxShadow:"none"},Lv(e,n,o,r))}),lV=e=>{let{componentCls:t}=e;return Eo.reduce((r,n)=>{let o=e[`${n}6`],i=e[`${n}1`],a=e[`${n}5`],s=e[`${n}2`],l=e[`${n}3`],c=e[`${n}7`];return Object.assign(Object.assign({},r),{[`&${t}-color-${n}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:e[`${n}ShadowColor`]},zv(e,e.colorTextLightSolid,o,{background:a},{background:c})),Wv(e,o,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),Bv(e)),jv(e,i,{background:s},{background:l})),Ki(e,o,"link",{color:a},{color:c})),Ki(e,o,"text",{color:a,background:i},{color:c,background:l}))})},{})},cV=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},zv(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),Bv(e)),jv(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),Fv(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Ki(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),uV=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},Wv(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Bv(e)),jv(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),Ki(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Ki(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),Fv(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),fV=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},zv(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),Wv(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Bv(e)),jv(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),Ki(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Ki(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Fv(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),dV=e=>Object.assign(Object.assign({},Ki(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),Fv(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),pV=e=>{let{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:cV(e),[`${t}-color-primary`]:uV(e),[`${t}-color-dangerous`]:fV(e),[`${t}-color-link`]:dV(e)},lV(e))},mV=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Wv(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Ki(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),zv(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Ki(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),$w=(e,t="")=>{let{componentCls:r,controlHeight:n,fontSize:o,borderRadius:i,buttonPaddingHorizontal:a,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:o,height:n,padding:`${oe(l)} ${oe(a)}`,borderRadius:i,[`&${r}-icon-only`]:{width:n,[s]:{fontSize:c}}}},{[`${r}${r}-circle${t}`]:nV(e)},{[`${r}${r}-round${t}`]:oV(e)}]},gV=e=>{let t=ut(e,{fontSize:e.contentFontSize});return $w(t,e.componentCls)},hV=e=>{let t=ut(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return $w(t,`${e.componentCls}-sm`)},vV=e=>{let t=ut(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return $w(t,`${e.componentCls}-lg`)},yV=e=>{let{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},E$=Gt("Button",e=>{let t=Av(e);return[rV(t),gV(t),hV(t),vV(t),yV(t),pV(t),mV(t),HD(t)]},Mv,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function xV(e,t,r){let{focusElCls:n,focus:o,borderElCls:i}=r,a=i?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},n?{[`&${n}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function bV(e,t,r){let{borderElCls:n}=r,o=n?`> ${n}`:"";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 Ms(e,t={focus:!0}){let{componentCls:r}=e,n=`${r}-compact`;return{[n]:Object.assign(Object.assign({},xV(e,n,t)),bV(r,n,t))}}function SV(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 CV(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 R$(e){let t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},SV(e,t)),CV(e.componentCls,t))}}var wV=e=>{let{componentCls:t,colorPrimaryHover:r,lineWidth:n,calc:o}=e,i=o(n).mul(-1).equal(),a=s=>{let l=`${t}-compact${s?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${l} + ${l}::before`]:{position:"absolute",top:s?i:0,insetInlineStart:s?0:i,backgroundColor:r,content:'""',width:s?"100%":n,height:s?n:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))},O$=YC(["Button","compact"],e=>{let t=Av(e);return[Ms(t),R$(t),wV(t)]},Mv);var EV=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var r,n;let{loading:o=!1,prefixCls:i,color:a,variant:s,type:l,danger:c=!1,shape:u="default",size:f,styles:p,disabled:g,className:h,rootClassName:v,children:y,icon:m,iconPosition:d="start",ghost:x=!1,block:b=!1,htmlType:S="button",classNames:w,style:C={},autoInsertSpace:R,autoFocus:P}=e,O=EV(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),A=l||"default",{button:M}=Wt.default.useContext(rt),[F,H]=(0,Wt.useMemo)(()=>{if(a&&s)return[a,s];if(l||c){let _e=OV[A]||[];return c?["danger",_e[1]]:_e}return M?.color&&M?.variant?[M.color,M.variant]:["default","outlined"]},[l,a,s,c,M?.variant,M?.color]),I=F==="danger"?"dangerous":F,{getPrefixCls:N,direction:$,autoInsertSpace:U,className:W,style:B,classNames:q,styles:L}=no("button"),k=(r=R??U)!==null&&r!==void 0?r:!0,z=N("btn",i),[G,J,Y]=E$(z),X=(0,Wt.useContext)(qr),ae=g??X,Z=(0,Wt.useContext)(bw),K=(0,Wt.useMemo)(()=>RV(o),[o]),[Q,re]=(0,Wt.useState)(K.loading),[ee,ne]=(0,Wt.useState)(!1),de=(0,Wt.useRef)(null),le=xi(t,de),pe=Wt.Children.count(y)===1&&!m&&!_v(H),Oe=(0,Wt.useRef)(!0);Wt.default.useEffect(()=>(Oe.current=!1,()=>{Oe.current=!0}),[]),(0,Wt.useEffect)(()=>{let _e=null;K.delay>0?_e=setTimeout(()=>{_e=null,re(!0)},K.delay):re(K.loading);function he(){_e&&(clearTimeout(_e),_e=null)}return he},[K]),(0,Wt.useEffect)(()=>{if(!de.current||!k)return;let _e=de.current.textContent||"";pe&&Ov(_e)?ee||ne(!0):ee&&ne(!1)}),(0,Wt.useEffect)(()=>{P&&de.current&&de.current.focus()},[]);let Ce=Wt.default.useCallback(_e=>{var he;if(Q||ae){_e.preventDefault();return}(he=e.onClick)===null||he===void 0||he.call(e,("href"in e,_e))},[e.onClick,Q,ae]),{compactSize:$e,compactItemClassnames:ce}=Xo(z,$),ie={large:"lg",small:"sm",middle:void 0},Re=ao(_e=>{var he,Ze;return(Ze=(he=f??$e)!==null&&he!==void 0?he:Z)!==null&&Ze!==void 0?Ze:_e}),Le=Re&&(n=ie[Re])!==null&&n!==void 0?n:"",Ge=Q?"loading":m,Me=Kr(O,["navigate"]),Ie=(0,Vv.default)(z,J,Y,{[`${z}-${u}`]:u!=="default"&&u,[`${z}-${A}`]:A,[`${z}-dangerous`]:c,[`${z}-color-${I}`]:I,[`${z}-variant-${H}`]:H,[`${z}-${Le}`]:Le,[`${z}-icon-only`]:!y&&y!==0&&!!Ge,[`${z}-background-ghost`]:x&&!_v(H),[`${z}-loading`]:Q,[`${z}-two-chinese-chars`]:ee&&k&&!Q,[`${z}-block`]:b,[`${z}-rtl`]:$==="rtl",[`${z}-icon-end`]:d==="end"},ce,h,v,W),je=Object.assign(Object.assign({},B),C),We=(0,Vv.default)(w?.icon,q.icon),He=Object.assign(Object.assign({},p?.icon||{}),L.icon||{}),ye=m&&!Q?Wt.default.createElement(Ld,{prefixCls:z,className:We,style:He},m):o&&typeof o=="object"&&o.icon?Wt.default.createElement(Ld,{prefixCls:z,className:We,style:He},o.icon):Wt.default.createElement(jD,{existIcon:!!m,prefixCls:z,loading:Q,mount:Oe.current}),se=y||y===0?zD(y,pe&&k):null;if(Me.href!==void 0)return G(Wt.default.createElement("a",Object.assign({},Me,{className:(0,Vv.default)(Ie,{[`${z}-disabled`]:ae}),href:ae?void 0:Me.href,style:je,onClick:Ce,ref:le,tabIndex:ae?-1:0}),ye,se));let xe=Wt.default.createElement("button",Object.assign({},O,{type:S,className:Ie,style:je,onClick:Ce,disabled:ae,ref:le}),ye,se,ce&&Wt.default.createElement(O$,{prefixCls:z}));return _v(H)||(xe=Wt.default.createElement(Rv,{component:"Button",disabled:Q},xe)),G(xe)}),kw=_V;kw.Group=MD;kw.__ANT_BUTTON=!0;var _$=kw;var zd=_$;var Qo=E(D()),M$=E(Vi());var P$=E(D()),PV=P$.createContext(null),Hv=PV;var Fl=E(D());var T$=[];function Aw(e,t){var r=Fl.useState(function(){if(!Yt())return null;var h=document.createElement("div");return h}),n=V(r,1),o=n[0],i=Fl.useRef(!1),a=Fl.useContext(Hv),s=Fl.useState(T$),l=V(s,2),c=l[0],u=l[1],f=a||(i.current?void 0:function(h){u(function(v){var y=[h].concat(te(v));return y})});function p(){o.parentElement||document.body.appendChild(o),i.current=!0}function g(){var h;(h=o.parentElement)===null||h===void 0||h.removeChild(o),i.current=!1}return vt(function(){return e?a?a(p):p():g(),g},[e]),vt(function(){c.length&&(c.forEach(function(h){return h()}),u(T$))},[c]),[o,f]}var $$=E(D());function TV(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),r=document.createElement("div");r.id=t;var n=r.style;n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll";var o,i;if(e){var a=getComputedStyle(e);n.scrollbarColor=a.scrollbarColor,n.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",f=c?"height: ".concat(s.height,";"):"";yn(` #`.concat(t,`::-webkit-scrollbar { `).concat(u,` `).concat(f,` }`),t)}catch(h){console.error(h),o=l,i=c}}document.body.appendChild(r);var p=e&&o&&!isNaN(o)?o:r.offsetWidth-r.clientWidth,g=e&&i&&!isNaN(i)?i:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),Ui(t),{width:p,height:g}}function N$(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:TV(e)}function I$(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var NV="rc-util-locker-".concat(Date.now()),D$=0;function Mw(e){var t=!!e,r=$$.useState(function(){return D$+=1,"".concat(NV,"_").concat(D$)}),n=V(r,1),o=n[0];vt(function(){if(t){var i=N$(document.body).width,a=I$();yn(` html body { overflow-y: hidden; `.concat(a?"width: calc(100% - ".concat(i,"px);"):"",` }`),o)}else Ui(o);return function(){Ui(o)}},[t,o])}var k$=!1;function Fw(e){return typeof e=="boolean"&&(k$=e),k$}var A$=function(t){return t===!1?!1:!Yt()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},IV=Qo.forwardRef(function(e,t){var r=e.open,n=e.autoLock,o=e.getContainer,i=e.debug,a=e.autoDestroy,s=a===void 0?!0:a,l=e.children,c=Qo.useState(r),u=V(c,2),f=u[0],p=u[1],g=f||r;Qo.useEffect(function(){(s||r)&&p(r)},[r,s]);var h=Qo.useState(function(){return A$(o)}),v=V(h,2),y=v[0],m=v[1];Qo.useEffect(function(){var M=A$(o);m(M??null)});var d=Aw(g&&!y,i),x=V(d,2),b=x[0],S=x[1],w=y??b;Mw(n&&r&&Yt()&&(w===b||w===document.body));var C=null;if(l&&bi(l)&&t){var R=l;C=R.ref}var P=xi(C,t);if(!g||!Yt()||y===void 0)return null;var O=w===!1||Fw(),A=l;return t&&(A=Qo.cloneElement(l,{ref:P})),Qo.createElement(Hv.Provider,{value:S},O?A:(0,M$.createPortal)(A,w))}),F$=IV;var Lw=F$;var Wd=E(D());function DV(){var e=T({},Wd);return e.useId}var L$=0;var z$=DV(),Uv=z$?function(t){var r=z$();return t||r}:function(t){var r=Wd.useState("ssr-id"),n=V(r,2),o=n[0],i=n[1];return Wd.useEffect(function(){var a=L$;L$+=1,i("rc_unique_".concat(a))},[]),t||o};var Zw=E(D());var ka=E(D());var Tk=E(D());var Gn=E(D());var W$=E(D()),Oi="RC_FORM_INTERNAL_HOOKS",Kt=function(){Vt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},$V=W$.createContext({getFieldValue:Kt,getFieldsValue:Kt,getFieldError:Kt,getFieldWarning:Kt,getFieldsError:Kt,isFieldsTouched:Kt,isFieldTouched:Kt,isFieldValidating:Kt,isFieldsValidating:Kt,resetFields:Kt,setFields:Kt,setFieldValue:Kt,setFieldsValue:Kt,validateFields:Kt,submit:Kt,getInternalHooks:function(){return Kt(),{dispatch:Kt,initEntityValue:Kt,registerField:Kt,useSubscribe:Kt,setInitialValues:Kt,destroyForm:Kt,setCallbacks:Kt,registerWatch:Kt,getFields:Kt,setValidateMessages:Kt,setPreserve:Kt,getInitialValue:Kt}}}),_i=$V;var B$=E(D()),kV=B$.createContext(null),Fs=kV;function Bd(e){return e==null?[]:Array.isArray(e)?e:[e]}function j$(e){return e&&!!e._init}function qv(){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 Gv=qv();function V$(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function H$(e,t,r){if(hd())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&Ss(o,r.prototype),o}function Kv(e){var t=typeof Map=="function"?new Map:void 0;return Kv=function(n){if(n===null||!V$(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,o)}function o(){return H$(n,arguments,El(this).constructor)}return o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Ss(o,n)},Kv(e)}var AV=/%[sdj%]/g,G$=function(){};typeof process<"u"&&process.env;function Xv(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function Xr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n=i)return s;switch(s){case"%s":return String(r[o++]);case"%d":return Number(r[o++]);case"%j":try{return JSON.stringify(r[o++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function MV(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function kt(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||MV(t)&&typeof e=="string"&&!e)}function FV(e,t,r){var n=[],o=0,i=e.length;function a(s){n.push.apply(n,te(s||[])),o++,o===i&&r(n)}e.forEach(function(s){t(s,a)})}function U$(e,t,r){var n=0,o=e.length;function i(a){if(a&&a.length){r(a);return}var s=n;n=n+1,st.max?o.push(Xr(i.messages[f].max,t.fullField,t.max)):s&&l&&(ut.max)&&o.push(Xr(i.messages[f].range,t.fullField,t.min,t.max))},Q$=VV;var HV=function(t,r,n,o,i,a){t.required&&(!n.hasOwnProperty(t.field)||kt(r,a||t.type))&&o.push(Xr(i.messages.required,t.fullField))},Yv=HV;var Qv,J$=function(){if(Qv)return Qv;var e="[a-fA-F\\d:]",t=function(w){return w&&w.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",o=["(?:".concat(n,":){7}(?:").concat(n,"|:)"),"(?:".concat(n,":){6}(?:").concat(r,"|:").concat(n,"|:)"),"(?:".concat(n,":){5}(?::").concat(r,"|(?::").concat(n,"){1,2}|:)"),"(?:".concat(n,":){4}(?:(?::").concat(n,"){0,1}:").concat(r,"|(?::").concat(n,"){1,3}|:)"),"(?:".concat(n,":){3}(?:(?::").concat(n,"){0,2}:").concat(r,"|(?::").concat(n,"){1,4}|:)"),"(?:".concat(n,":){2}(?:(?::").concat(n,"){0,3}:").concat(r,"|(?::").concat(n,"){1,5}|:)"),"(?:".concat(n,":){1}(?:(?::").concat(n,"){0,4}:").concat(r,"|(?::").concat(n,"){1,6}|:)"),"(?::(?:(?::".concat(n,"){0,5}:").concat(r,"|(?::").concat(n,"){1,7}|:))")],i="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(o.join("|"),")").concat(i),s=new RegExp("(?:^".concat(r,"$)|(?:^").concat(a,"$)")),l=new RegExp("^".concat(r,"$")),c=new RegExp("^".concat(a,"$")),u=function(w){return w&&w.exact?s:new RegExp("(?:".concat(t(w)).concat(r).concat(t(w),")|(?:").concat(t(w)).concat(a).concat(t(w),")"),"g")};u.v4=function(S){return S&&S.exact?l:new RegExp("".concat(t(S)).concat(r).concat(t(S)),"g")},u.v6=function(S){return S&&S.exact?c:new RegExp("".concat(t(S)).concat(a).concat(t(S)),"g")};var f="(?:(?:[a-z]+:)?//)",p="(?:\\S+(?::\\S*)?@)?",g=u.v4().source,h=u.v6().source,v="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",y="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",m="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",d="(?::\\d{2,5})?",x='(?:[/?#][^\\s"]*)?',b="(?:".concat(f,"|www\\.)").concat(p,"(?:localhost|").concat(g,"|").concat(h,"|").concat(v).concat(y).concat(m,")").concat(d).concat(x);return Qv=new RegExp("(?:^".concat(b,"$)"),"i"),Qv};var Z$={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},jd={integer:function(t){return jd.number(t)&&parseInt(t,10)===t},float:function(t){return jd.number(t)&&!jd.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 ue(t)==="object"&&!jd.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Z$.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(J$())},hex:function(t){return typeof t=="string"&&!!t.match(Z$.hex)}},UV=function(t,r,n,o,i){if(t.required&&r===void 0){Yv(t,r,n,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?jd[s](r)||o.push(Xr(i.messages.types[s],t.fullField,t.type)):s&&ue(r)!==t.type&&o.push(Xr(i.messages.types[s],t.fullField,t.type))},ek=UV;var qV=function(t,r,n,o,i){(/^\s+$/.test(r)||r==="")&&o.push(Xr(i.messages.whitespace,t.fullField))},tk=qV;var ot={required:Yv,whitespace:tk,type:ek,range:Q$,enum:X$,pattern:Y$};var GV=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(kt(r)&&!t.required)return n();ot.required(t,r,o,a,i)}n(a)},rk=GV;var KV=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();ot.required(t,r,o,a,i,"array"),r!=null&&(ot.type(t,r,o,a,i),ot.range(t,r,o,a,i))}n(a)},nk=KV;var XV=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(kt(r)&&!t.required)return n();ot.required(t,r,o,a,i),r!==void 0&&ot.type(t,r,o,a,i)}n(a)},ok=XV;var YV=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(kt(r,"date")&&!t.required)return n();if(ot.required(t,r,o,a,i),!kt(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),ot.type(t,l,o,a,i),l&&ot.range(t,l.getTime(),o,a,i)}}n(a)},ik=YV;var QV="enum",JV=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(kt(r)&&!t.required)return n();ot.required(t,r,o,a,i),r!==void 0&&ot[QV](t,r,o,a,i)}n(a)},ak=JV;var ZV=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(kt(r)&&!t.required)return n();ot.required(t,r,o,a,i),r!==void 0&&(ot.type(t,r,o,a,i),ot.range(t,r,o,a,i))}n(a)},sk=ZV;var eH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(kt(r)&&!t.required)return n();ot.required(t,r,o,a,i),r!==void 0&&(ot.type(t,r,o,a,i),ot.range(t,r,o,a,i))}n(a)},lk=eH;var tH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(kt(r)&&!t.required)return n();ot.required(t,r,o,a,i),r!==void 0&&ot.type(t,r,o,a,i)}n(a)},ck=tH;var rH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),kt(r)&&!t.required)return n();ot.required(t,r,o,a,i),r!==void 0&&(ot.type(t,r,o,a,i),ot.range(t,r,o,a,i))}n(a)},uk=rH;var nH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(kt(r)&&!t.required)return n();ot.required(t,r,o,a,i),r!==void 0&&ot.type(t,r,o,a,i)}n(a)},fk=nH;var oH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(kt(r,"string")&&!t.required)return n();ot.required(t,r,o,a,i),kt(r,"string")||ot.pattern(t,r,o,a,i)}n(a)},dk=oH;var iH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(kt(r)&&!t.required)return n();ot.required(t,r,o,a,i),kt(r)||ot.type(t,r,o,a,i)}n(a)},pk=iH;var aH=function(t,r,n,o,i){var a=[],s=Array.isArray(r)?"array":ue(r);ot.required(t,r,o,a,i,s),n(a)},mk=aH;var sH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(kt(r,"string")&&!t.required)return n();ot.required(t,r,o,a,i,"string"),kt(r,"string")||(ot.type(t,r,o,a,i),ot.range(t,r,o,a,i),ot.pattern(t,r,o,a,i),t.whitespace===!0&&ot.whitespace(t,r,o,a,i))}n(a)},gk=sH;var lH=function(t,r,n,o,i){var a=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(kt(r,a)&&!t.required)return n();ot.required(t,r,o,s,i,a),kt(r,a)||ot.type(t,r,o,s,i)}n(s)},Jv=lH;var xu={string:gk,method:ck,number:uk,boolean:ok,regexp:pk,integer:lk,float:sk,array:nk,object:fk,enum:ak,pattern:dk,date:ik,url:Jv,hex:Jv,email:Jv,required:mk,any:rk};var Vd=function(){function e(t){it(this,e),_(this,"rules",null),_(this,"_messages",Gv),this.define(t)}return at(e,[{key:"define",value:function(r){var n=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(ue(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(o){var i=r[o];n.rules[o]=Array.isArray(i)?i:[i]})}},{key:"messages",value:function(r){return r&&(this._messages=Ww(qv(),r)),this._messages}},{key:"validate",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=r,s=o,l=i;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,a),Promise.resolve(a);function c(h){var v=[],y={};function m(x){if(Array.isArray(x)){var b;v=(b=v).concat.apply(b,te(x))}else v.push(x)}for(var d=0;d0&&arguments[0]!==void 0?arguments[0]:[],R=Array.isArray(C)?C:[C];!s.suppressWarning&&R.length&&e.warning("async-validator:",R),R.length&&y.message!==void 0&&(R=[].concat(y.message));var P=R.map(zw(y,a));if(s.first&&P.length)return g[y.field]=1,v(P);if(!m)v(P);else{if(y.required&&!h.value)return y.message!==void 0?P=[].concat(y.message).map(zw(y,a)):s.error&&(P=[s.error(y,Xr(s.messages.required,y.field))]),v(P);var O={};y.defaultField&&Object.keys(h.value).map(function(F){O[F]=y.defaultField}),O=T(T({},O),h.rule.fields);var A={};Object.keys(O).forEach(function(F){var H=O[F],j=Array.isArray(H)?H:[H];A[F]=j.map(d.bind(null,F))});var M=new e(A);M.messages(s.messages),h.rule.options&&(h.rule.options.messages=s.messages,h.rule.options.error=s.error),M.validate(h.value,h.rule.options||s,function(F){var H=[];P&&P.length&&H.push.apply(H,te(P)),F&&F.length&&H.push.apply(H,te(F)),v(H.length?H:null)})}}var b;if(y.asyncValidator)b=y.asyncValidator(y,h.value,x,h.source,s);else if(y.validator){try{b=y.validator(y,h.value,x,h.source,s)}catch(C){var S,w;(S=(w=console).error)===null||S===void 0||S.call(w,C),s.suppressValidatorError||setTimeout(function(){throw C},0),x(C.message)}b===!0?x():b===!1?x(typeof y.message=="function"?y.message(y.fullField||y.field):y.message||"".concat(y.fullField||y.field," fails")):b instanceof Array?x(b):b instanceof Error&&x(b.message)}b&&b.then&&b.then(function(){return x()},function(C){return x(C)})},function(h){c(h)},a)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!xu.hasOwnProperty(r.type))throw new Error(Xr("Unknown rule type %s",r.type));return r.type||"string"}},{key:"getValidationMethod",value:function(r){if(typeof r.validator=="function")return r.validator;var n=Object.keys(r),o=n.indexOf("message");return o!==-1&&n.splice(o,1),n.length===1&&n[0]==="required"?xu.required:xu[this.getType(r)]||void 0}}]),e}();_(Vd,"register",function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");xu[t]=r});_(Vd,"warning",G$);_(Vd,"messages",Gv);_(Vd,"validators",xu);var hk=Vd;var ey=E(D());var Ro="'${name}' is not a valid ${type}",Zv={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Ro,method:Ro,array:Ro,object:Ro,number:Ro,date:Ro,boolean:Ro,integer:Ro,float:Ro,regexp:Ro,email:Ro,url:Ro,hex:Ro},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}};var vk=hk;function cH(e,t){return e.replace(/\\?\$\{\w+\}/g,function(r){if(r.startsWith("\\"))return r.slice(1);var n=r.slice(2,-1);return t[n]})}var yk="CODE_LOGIC_ERROR";function Bw(e,t,r,n,o){return jw.apply(this,arguments)}function jw(){return jw=Gr(Ot().mark(function e(t,r,n,o,i){var a,s,l,c,u,f,p,g,h;return Ot().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return a=T({},n),delete a.ruleIndex,vk.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(m){return console.error(m),Promise.reject(yk)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new vk(_({},t,[a])),u=Sa(Zv,o.validateMessages),c.messages(u),f=[],y.prev=10,y.next=13,Promise.resolve(c.validate(_({},t,r),T({},o)));case 13:y.next=18;break;case 15:y.prev=15,y.t0=y.catch(10),y.t0.errors&&(f=y.t0.errors.map(function(m,d){var x=m.message,b=x===yk?u.default:x;return ey.isValidElement(b)?ey.cloneElement(b,{key:"error_".concat(d)}):b}));case 18:if(!(!f.length&&l)){y.next=23;break}return y.next=21,Promise.all(r.map(function(m,d){return Bw("".concat(t,".").concat(d),m,l,o,i)}));case 21:return p=y.sent,y.abrupt("return",p.reduce(function(m,d){return[].concat(te(m),te(d))},[]));case 23:return g=T(T({},n),{},{name:t,enum:(n.enum||[]).join(", ")},i),h=f.map(function(m){return typeof m=="string"?cH(m,g):m}),y.abrupt("return",h);case 26:case"end":return y.stop()}},e,null,[[10,15]])})),jw.apply(this,arguments)}function xk(e,t,r,n,o,i){var a=e.join("."),s=r.map(function(u,f){var p=u.validator,g=T(T({},u),{},{ruleIndex:f});return p&&(g.validator=function(h,v,y){var m=!1,d=function(){for(var S=arguments.length,w=new Array(S),C=0;C2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return qw(t,n,r)})}function qw(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!r&&e.length!==t.length?!1:t.every(function(n,o){return e[o]===n})}function bk(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||ue(e)!=="object"||ue(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),o=new Set([].concat(r,n));return te(o).every(function(i){var a=e[i],s=t[i];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function Sk(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&ue(t.target)==="object"&&e in t.target?t.target[e]:t}function Gw(e,t,r){var n=e.length;if(t<0||t>=n||r<0||r>=n)return e;var o=e[t],i=t-r;return i>0?[].concat(te(e.slice(0,r)),[o],te(e.slice(r,t)),te(e.slice(t+1,n))):i<0?[].concat(te(e.slice(0,t)),te(e.slice(t+1,r+1)),[o],te(e.slice(r+1,n))):e}var dH=["name"],Jo=[];function Kw(e,t,r,n,o,i){return typeof e=="function"?e(t,r,"source"in i?{source:i.source}:{}):n!==o}var Xw=function(e){Dr(r,e);var t=$r(r);function r(n){var o;if(it(this,r),o=t.call(this,n),_(Ye(o),"state",{resetCount:0}),_(Ye(o),"cancelRegisterFunc",null),_(Ye(o),"mounted",!1),_(Ye(o),"touched",!1),_(Ye(o),"dirty",!1),_(Ye(o),"validatePromise",void 0),_(Ye(o),"prevValidating",void 0),_(Ye(o),"errors",Jo),_(Ye(o),"warnings",Jo),_(Ye(o),"cancelRegister",function(){var l=o.props,c=l.preserve,u=l.isListField,f=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,c,cr(f)),o.cancelRegisterFunc=null}),_(Ye(o),"getNamePath",function(){var l=o.props,c=l.name,u=l.fieldContext,f=u.prefixName,p=f===void 0?[]:f;return c!==void 0?[].concat(te(p),te(c)):[]}),_(Ye(o),"getRules",function(){var l=o.props,c=l.rules,u=c===void 0?[]:c,f=l.fieldContext;return u.map(function(p){return typeof p=="function"?p(f):p})}),_(Ye(o),"refresh",function(){o.mounted&&o.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),_(Ye(o),"metaCache",null),_(Ye(o),"triggerMetaEvent",function(l){var c=o.props.onMetaChange;if(c){var u=T(T({},o.getMeta()),{},{destroy:l});ws(o.metaCache,u)||c(u),o.metaCache=u}else o.metaCache=null}),_(Ye(o),"onStoreChange",function(l,c,u){var f=o.props,p=f.shouldUpdate,g=f.dependencies,h=g===void 0?[]:g,v=f.onReset,y=u.store,m=o.getNamePath(),d=o.getValue(l),x=o.getValue(y),b=c&&Ls(c,m);switch(u.type==="valueUpdate"&&u.source==="external"&&!ws(d,x)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Jo,o.warnings=Jo,o.triggerMetaEvent()),u.type){case"reset":if(!c||b){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Jo,o.warnings=Jo,o.triggerMetaEvent(),v?.(),o.refresh();return}break;case"remove":{if(p&&Kw(p,l,y,d,x,u)){o.reRender();return}break}case"setField":{var S=u.data;if(b){"touched"in S&&(o.touched=S.touched),"validating"in S&&!("originRCField"in S)&&(o.validatePromise=S.validating?Promise.resolve([]):null),"errors"in S&&(o.errors=S.errors||Jo),"warnings"in S&&(o.warnings=S.warnings||Jo),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in S&&Ls(c,m,!0)){o.reRender();return}if(p&&!m.length&&Kw(p,l,y,d,x,u)){o.reRender();return}break}case"dependenciesUpdate":{var w=h.map(cr);if(w.some(function(C){return Ls(u.relatedFields,C)})){o.reRender();return}break}default:if(b||(!h.length||m.length||p)&&Kw(p,l,y,d,x,u)){o.reRender();return}break}p===!0&&o.reRender()}),_(Ye(o),"validateRules",function(l){var c=o.getNamePath(),u=o.getValue(),f=l||{},p=f.triggerName,g=f.validateOnly,h=g===void 0?!1:g,v=Promise.resolve().then(Gr(Ot().mark(function y(){var m,d,x,b,S,w,C;return Ot().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(o.mounted){P.next=2;break}return P.abrupt("return",[]);case 2:if(m=o.props,d=m.validateFirst,x=d===void 0?!1:d,b=m.messageVariables,S=m.validateDebounce,w=o.getRules(),p&&(w=w.filter(function(O){return O}).filter(function(O){var A=O.validateTrigger;if(!A)return!0;var M=Bd(A);return M.includes(p)})),!(S&&p)){P.next=10;break}return P.next=8,new Promise(function(O){setTimeout(O,S)});case 8:if(o.validatePromise===v){P.next=10;break}return P.abrupt("return",[]);case 10:return C=xk(c,u,w,l,x,b),C.catch(function(O){return O}).then(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Jo;if(o.validatePromise===v){var A;o.validatePromise=null;var M=[],F=[];(A=O.forEach)===null||A===void 0||A.call(O,function(H){var j=H.rule.warningOnly,I=H.errors,N=I===void 0?Jo:I;j?F.push.apply(F,te(N)):M.push.apply(M,te(N))}),o.errors=M,o.warnings=F,o.triggerMetaEvent(),o.reRender()}}),P.abrupt("return",C);case 13:case"end":return P.stop()}},y)})));return h||(o.validatePromise=v,o.dirty=!0,o.errors=Jo,o.warnings=Jo,o.triggerMetaEvent(),o.reRender()),v}),_(Ye(o),"isFieldValidating",function(){return!!o.validatePromise}),_(Ye(o),"isFieldTouched",function(){return o.touched}),_(Ye(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var l=o.props.fieldContext,c=l.getInternalHooks(Oi),u=c.getInitialValue;return u(o.getNamePath())!==void 0}),_(Ye(o),"getErrors",function(){return o.errors}),_(Ye(o),"getWarnings",function(){return o.warnings}),_(Ye(o),"isListField",function(){return o.props.isListField}),_(Ye(o),"isList",function(){return o.props.isList}),_(Ye(o),"isPreserve",function(){return o.props.preserve}),_(Ye(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var l={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return l}),_(Ye(o),"getOnlyChild",function(l){if(typeof l=="function"){var c=o.getMeta();return T(T({},o.getOnlyChild(l(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var u=yi(l);return u.length!==1||!Gn.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),_(Ye(o),"getValue",function(l){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return xn(l||c(!0),u)}),_(Ye(o),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,u=c.name,f=c.trigger,p=c.validateTrigger,g=c.getValueFromEvent,h=c.normalize,v=c.valuePropName,y=c.getValueProps,m=c.fieldContext,d=p!==void 0?p:m.validateTrigger,x=o.getNamePath(),b=m.getInternalHooks,S=m.getFieldsValue,w=b(Oi),C=w.dispatch,R=o.getValue(),P=y||function(H){return _({},v,H)},O=l[f],A=u!==void 0?P(R):{},M=T(T({},l),A);M[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var H,j=arguments.length,I=new Array(j),N=0;N=0&&O<=A.length?(u.keys=[].concat(te(u.keys.slice(0,O)),[u.id],te(u.keys.slice(O))),x([].concat(te(A.slice(0,O)),[P],te(A.slice(O))))):(u.keys=[].concat(te(u.keys),[u.id]),x([].concat(te(A),[P]))),u.id+=1},remove:function(P){var O=S(),A=new Set(Array.isArray(P)?P:[P]);A.size<=0||(u.keys=u.keys.filter(function(M,F){return!A.has(F)}),x(O.filter(function(M,F){return!A.has(F)})))},move:function(P,O){if(P!==O){var A=S();P<0||P>=A.length||O<0||O>=A.length||(u.keys=Gw(u.keys,P,O),x(Gw(A,P,O)))}}},C=d||[];return Array.isArray(C)||(C=[]),n(C.map(function(R,P){var O=u.keys[P];return O===void 0&&(u.keys[P]=u.id,O=u.keys[P],u.id+=1),{name:P,key:O,isListField:!0}}),w,y)})))}var Ck=mH;var ry=E(D());function wk(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(o,i){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){r-=1,n[s]=l,!(r>0)&&(t&&i(n),o(n))})})}):Promise.resolve([])}var Ek="__@field_split__";function Yw(e){return e.map(function(t){return"".concat(ue(t),":").concat(t)}).join(Ek)}var gH=function(){function e(){it(this,e),_(this,"kvs",new Map)}return at(e,[{key:"set",value:function(r,n){this.kvs.set(Yw(r),n)}},{key:"get",value:function(r){return this.kvs.get(Yw(r))}},{key:"update",value:function(r,n){var o=this.get(r),i=n(o);i?this.set(r,i):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(Yw(r))}},{key:"map",value:function(r){return te(this.kvs.entries()).map(function(n){var o=V(n,2),i=o[0],a=o[1],s=i.split(Ek);return r({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=V(c,3),f=u[1],p=u[2];return f==="number"?Number(p):p}),value:a})})}},{key:"toJSON",value:function(){var r={};return this.map(function(n){var o=n.key,i=n.value;return r[o.join(".")]=i,null}),r}}]),e}(),Ll=gH;var hH=["name"],vH=at(function e(t){var r=this;it(this,e),_(this,"formHooked",!1),_(this,"forceRootUpdate",void 0),_(this,"subscribable",!0),_(this,"store",{}),_(this,"fieldEntities",[]),_(this,"initialValues",{}),_(this,"callbacks",{}),_(this,"validateMessages",null),_(this,"preserve",null),_(this,"lastValidatePromise",null),_(this,"getForm",function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}}),_(this,"getInternalHooks",function(n){return n===Oi?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(Vt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),_(this,"useSubscribe",function(n){r.subscribable=n}),_(this,"prevWithoutPreserves",null),_(this,"setInitialValues",function(n,o){if(r.initialValues=n||{},o){var i,a=Sa(n,r.store);(i=r.prevWithoutPreserves)===null||i===void 0||i.map(function(s){var l=s.key;a=qn(a,l,xn(n,l))}),r.prevWithoutPreserves=null,r.updateStore(a)}}),_(this,"destroyForm",function(n){if(n)r.updateStore({});else{var o=new Ll;r.getFieldEntities(!0).forEach(function(i){r.isMergedPreserve(i.isPreserve())||o.set(i.getNamePath(),!0)}),r.prevWithoutPreserves=o}}),_(this,"getInitialValue",function(n){var o=xn(r.initialValues,n);return n.length?Sa(o):o}),_(this,"setCallbacks",function(n){r.callbacks=n}),_(this,"setValidateMessages",function(n){r.validateMessages=n}),_(this,"setPreserve",function(n){r.preserve=n}),_(this,"watchList",[]),_(this,"registerWatch",function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(o){return o!==n})}}),_(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var o=r.getFieldsValue(),i=r.getFieldsValue(!0);r.watchList.forEach(function(a){a(o,i,n)})}}),_(this,"timeoutId",null),_(this,"warningUnhooked",function(){}),_(this,"updateStore",function(n){r.store=n}),_(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(o){return o.getNamePath().length}):r.fieldEntities}),_(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new Ll;return r.getFieldEntities(n).forEach(function(i){var a=i.getNamePath();o.set(a,i)}),o}),_(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return r.getFieldEntities(!0);var o=r.getFieldsMap(!0);return n.map(function(i){var a=cr(i);return o.get(a)||{INVALIDATE_NAME_PATH:cr(i)}})}),_(this,"getFieldsValue",function(n,o){r.warningUnhooked();var i,a,s;if(n===!0||Array.isArray(n)?(i=n,a=o):n&&ue(n)==="object"&&(s=n.strict,a=n.filter),i===!0&&!a)return r.store;var l=r.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),c=[];return l.forEach(function(u){var f,p,g="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var h,v;if((h=(v=u).isList)!==null&&h!==void 0&&h.call(v))return}else if(!i&&(f=(p=u).isListField)!==null&&f!==void 0&&f.call(p))return;if(!a)c.push(g);else{var y="getMeta"in u?u.getMeta():null;a(y)&&c.push(g)}}),Uw(r.store,c.map(cr))}),_(this,"getFieldValue",function(n){r.warningUnhooked();var o=cr(n);return xn(r.store,o)}),_(this,"getFieldsError",function(n){r.warningUnhooked();var o=r.getFieldEntitiesForNamePathList(n);return o.map(function(i,a){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:cr(n[a]),errors:[],warnings:[]}})}),_(this,"getFieldError",function(n){r.warningUnhooked();var o=cr(n),i=r.getFieldsError([o])[0];return i.errors}),_(this,"getFieldWarning",function(n){r.warningUnhooked();var o=cr(n),i=r.getFieldsError([o])[0];return i.warnings}),_(this,"isFieldsTouched",function(){r.warningUnhooked();for(var n=arguments.length,o=new Array(n),i=0;i0&&arguments[0]!==void 0?arguments[0]:{},o=new Ll,i=r.getFieldEntities(!0);i.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var f=o.get(u)||new Set;f.add({entity:l,value:c}),o.set(u,f)}});var a=function(c){c.forEach(function(u){var f=u.props.initialValue;if(f!==void 0){var p=u.getNamePath(),g=r.getInitialValue(p);if(g!==void 0)Vt(!1,"Form already set 'initialValues' with path '".concat(p.join("."),"'. Field can not overwrite it."));else{var h=o.get(p);if(h&&h.size>1)Vt(!1,"Multiple Field with path '".concat(p.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var v=r.getFieldValue(p),y=u.isListField();!y&&(!n.skipExist||v===void 0)&&r.updateStore(qn(r.store,p,te(h)[0].value))}}}})},s;n.entities?s=n.entities:n.namePathList?(s=[],n.namePathList.forEach(function(l){var c=o.get(l);if(c){var u;(u=s).push.apply(u,te(te(c).map(function(f){return f.entity})))}})):s=i,a(s)}),_(this,"resetFields",function(n){r.warningUnhooked();var o=r.store;if(!n){r.updateStore(Sa(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(o,null,{type:"reset"}),r.notifyWatch();return}var i=n.map(cr);i.forEach(function(a){var s=r.getInitialValue(a);r.updateStore(qn(r.store,a,s))}),r.resetWithFieldInitialValue({namePathList:i}),r.notifyObservers(o,i,{type:"reset"}),r.notifyWatch(i)}),_(this,"setFields",function(n){r.warningUnhooked();var o=r.store,i=[];n.forEach(function(a){var s=a.name,l=Ve(a,hH),c=cr(s);i.push(c),"value"in l&&r.updateStore(qn(r.store,c,l.value)),r.notifyObservers(o,[c],{type:"setField",data:a})}),r.notifyWatch(i)}),_(this,"getFields",function(){var n=r.getFieldEntities(!0),o=n.map(function(i){var a=i.getNamePath(),s=i.getMeta(),l=T(T({},s),{},{name:a,value:r.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return o}),_(this,"initEntityValue",function(n){var o=n.props.initialValue;if(o!==void 0){var i=n.getNamePath(),a=xn(r.store,i);a===void 0&&r.updateStore(qn(r.store,i,o))}}),_(this,"isMergedPreserve",function(n){var o=n!==void 0?n:r.preserve;return o??!0}),_(this,"registerField",function(n){r.fieldEntities.push(n);var o=n.getNamePath();if(r.notifyWatch([o]),n.props.initialValue!==void 0){var i=r.store;r.resetWithFieldInitialValue({entities:[n],skipExist:!0}),r.notifyObservers(i,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(f){return f!==n}),!r.isMergedPreserve(s)&&(!a||l.length>1)){var c=a?void 0:r.getInitialValue(o);if(o.length&&r.getFieldValue(o)!==c&&r.fieldEntities.every(function(f){return!qw(f.getNamePath(),o)})){var u=r.store;r.updateStore(qn(u,o,c,!0)),r.notifyObservers(u,[o],{type:"remove"}),r.triggerDependenciesUpdate(u,o)}}r.notifyWatch([o])}}),_(this,"dispatch",function(n){switch(n.type){case"updateValue":{var o=n.namePath,i=n.value;r.updateValue(o,i);break}case"validateField":{var a=n.namePath,s=n.triggerName;r.validateFields([a],{triggerName:s});break}default:}}),_(this,"notifyObservers",function(n,o,i){if(r.subscribable){var a=T(T({},i),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(n,o,a)})}else r.forceRootUpdate()}),_(this,"triggerDependenciesUpdate",function(n,o){var i=r.getDependencyChildrenFields(o);return i.length&&r.validateFields(i),r.notifyObservers(n,i,{type:"dependenciesUpdate",relatedFields:[o].concat(te(i))}),i}),_(this,"updateValue",function(n,o){var i=cr(n),a=r.store;r.updateStore(qn(r.store,i,o)),r.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),r.notifyWatch([i]);var s=r.triggerDependenciesUpdate(a,i),l=r.callbacks.onValuesChange;if(l){var c=Uw(r.store,[i]);l(c,r.getFieldsValue())}r.triggerOnFieldsChange([i].concat(te(s)))}),_(this,"setFieldsValue",function(n){r.warningUnhooked();var o=r.store;if(n){var i=Sa(r.store,n);r.updateStore(i)}r.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),_(this,"setFieldValue",function(n,o){r.setFields([{name:n,value:o,errors:[],warnings:[]}])}),_(this,"getDependencyChildrenFields",function(n){var o=new Set,i=[],a=new Ll;r.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var f=cr(u);a.update(f,function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return p.add(l),p})})});var s=function l(c){var u=a.get(c)||new Set;u.forEach(function(f){if(!o.has(f)){o.add(f);var p=f.getNamePath();f.isFieldDirty()&&p.length&&(i.push(p),l(p))}})};return s(n),i}),_(this,"triggerOnFieldsChange",function(n,o){var i=r.callbacks.onFieldsChange;if(i){var a=r.getFields();if(o){var s=new Ll;o.forEach(function(c){var u=c.name,f=c.errors;s.set(u,f)}),a.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=a.filter(function(c){var u=c.name;return Ls(n,u)});l.length&&i(l,a)}}),_(this,"validateFields",function(n,o){r.warningUnhooked();var i,a;Array.isArray(n)||typeof n=="string"||typeof o=="string"?(i=n,a=o):a=n;var s=!!i,l=s?i.map(cr):[],c=[],u=String(Date.now()),f=new Set,p=a||{},g=p.recursive,h=p.dirty;r.getFieldEntities(!0).forEach(function(d){if(s||l.push(d.getNamePath()),!(!d.props.rules||!d.props.rules.length)&&!(h&&!d.isFieldDirty())){var x=d.getNamePath();if(f.add(x.join(u)),!s||Ls(l,x,g)){var b=d.validateRules(T({validateMessages:T(T({},Zv),r.validateMessages)},a));c.push(b.then(function(){return{name:x,errors:[],warnings:[]}}).catch(function(S){var w,C=[],R=[];return(w=S.forEach)===null||w===void 0||w.call(S,function(P){var O=P.rule.warningOnly,A=P.errors;O?R.push.apply(R,te(A)):C.push.apply(C,te(A))}),C.length?Promise.reject({name:x,errors:C,warnings:R}):{name:x,errors:C,warnings:R}}))}}});var v=wk(c);r.lastValidatePromise=v,v.catch(function(d){return d}).then(function(d){var x=d.map(function(b){var S=b.name;return S});r.notifyObservers(r.store,x,{type:"validateFinish"}),r.triggerOnFieldsChange(x,d)});var y=v.then(function(){return r.lastValidatePromise===v?Promise.resolve(r.getFieldsValue(l)):Promise.reject([])}).catch(function(d){var x=d.filter(function(b){return b&&b.errors.length});return Promise.reject({values:r.getFieldsValue(l),errorFields:x,outOfDate:r.lastValidatePromise!==v})});y.catch(function(d){return d});var m=l.filter(function(d){return f.has(d.join(u))});return r.triggerOnFieldsChange(m),y}),_(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(n){var o=r.callbacks.onFinish;if(o)try{o(n)}catch(i){console.error(i)}}).catch(function(n){var o=r.callbacks.onFinishFailed;o&&o(n)})}),this.forceRootUpdate=t});function yH(e){var t=ry.useRef(),r=ry.useState({}),n=V(r,2),o=n[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},a=new vH(i);t.current=a.getForm()}return[t.current]}var ny=yH;var fn=E(D());var zs=E(D()),Qw=zs.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Jw=function(t){var r=t.validateMessages,n=t.onFormChange,o=t.onFormFinish,i=t.children,a=zs.useContext(Qw),s=zs.useRef({});return zs.createElement(Qw.Provider,{value:T(T({},a),{},{validateMessages:T(T({},a.validateMessages),r),triggerFormChange:function(c,u){n&&n(c,{changedFields:u,forms:s.current}),a.triggerFormChange(c,u)},triggerFormFinish:function(c,u){o&&o(c,{values:u,forms:s.current}),a.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=T(T({},s.current),{},_({},c,u))),a.registerForm(c,u)},unregisterForm:function(c){var u=T({},s.current);delete u[c],s.current=u,a.unregisterForm(c)}})},i)};var Rk=Qw;var xH=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],bH=function(t,r){var n=t.name,o=t.initialValues,i=t.fields,a=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,f=t.validateMessages,p=t.validateTrigger,g=p===void 0?"onChange":p,h=t.onValuesChange,v=t.onFieldsChange,y=t.onFinish,m=t.onFinishFailed,d=t.clearOnDestroy,x=Ve(t,xH),b=fn.useRef(null),S=fn.useContext(Rk),w=ny(a),C=V(w,1),R=C[0],P=R.getInternalHooks(Oi),O=P.useSubscribe,A=P.setInitialValues,M=P.setCallbacks,F=P.setValidateMessages,H=P.setPreserve,j=P.destroyForm;fn.useImperativeHandle(r,function(){return T(T({},R),{},{nativeElement:b.current})}),fn.useEffect(function(){return S.registerForm(n,R),function(){S.unregisterForm(n)}},[S,R,n]),F(T(T({},S.validateMessages),f)),M({onValuesChange:h,onFieldsChange:function(k){if(S.triggerFormChange(n,k),v){for(var z=arguments.length,G=new Array(z>1?z-1:0),J=1;J{let n=ka.useContext(dn),o=ka.useMemo(()=>{let i=Object.assign({},n);return r&&delete i.isFormItemInput,t&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[t,r,n]);return ka.createElement(dn.Provider,{value:o},e)},Ik=ka.createContext(void 0);var EH=e=>{let{space:t,form:r,children:n}=e;if(n==null)return null;let o=n;return r&&(o=Zw.default.createElement(Nk,{override:!0,status:!0},o)),t&&(o=Zw.default.createElement(kD,null,o)),o},Ws=EH;var so=E(D());function RH(e){return t=>so.createElement(Ia,{theme:{token:{motion:!1,zIndexPopupBase:0}}},so.createElement(e,Object.assign({},t)))}var OH=(e,t,r,n,o)=>RH(a=>{let{prefixCls:s,style:l}=a,c=so.useRef(null),[u,f]=so.useState(0),[p,g]=so.useState(0),[h,v]=ar(!1,{value:a.open}),{getPrefixCls:y}=so.useContext(rt),m=y(n||"select",s);so.useEffect(()=>{if(v(!0),typeof ResizeObserver<"u"){let b=new ResizeObserver(w=>{let C=w[0].target;f(C.offsetHeight+8),g(C.offsetWidth)}),S=setInterval(()=>{var w;let C=o?`.${o(m)}`:`.${m}-dropdown`,R=(w=c.current)===null||w===void 0?void 0:w.querySelector(C);R&&(clearInterval(S),b.observe(R))},10);return()=>{clearInterval(S),b.disconnect()}}},[]);let d=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},l),{margin:0}),open:h,visible:h,getPopupContainer:()=>c.current});return r&&(d=r(d)),t&&Object.assign(d,{[t]:{overflow:{adjustX:!1,adjustY:!1}}}),so.createElement("div",{ref:c,style:{paddingBottom:u,position:"relative",minWidth:p}},so.createElement(e,Object.assign({},d)))}),Dk=OH;var ni=E(D()),U1=E(Ne());var fr=E(D());var x1=E(Ne());var bu=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?.substr(0,4))};var bt=E(D());var e1=E(D()),$k=E(Ne()),_H=function(t){var r=t.className,n=t.customizeIcon,o=t.customizeIconProps,i=t.children,a=t.onMouseDown,s=t.onClick,l=typeof n=="function"?n(o):n;return e1.createElement("span",{className:r,onMouseDown:function(u){u.preventDefault(),a?.(u)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},l!==void 0?l:e1.createElement("span",{className:(0,$k.default)(r.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},i))},Bs=_H;var oy=E(D()),kk=function(t,r,n,o,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=oy.default.useMemo(function(){if(ue(o)==="object")return o.clearIcon;if(i)return i},[o,i]),u=oy.default.useMemo(function(){return!!(!a&&o&&(n.length||s)&&!(l==="combobox"&&s===""))},[o,a,n.length,s,l]);return{allowClear:u,clearIcon:oy.default.createElement(Bs,{className:"".concat(t,"-clear"),onMouseDown:r,customizeIcon:c},"\xD7")}};var iy=E(D()),t1=iy.createContext(null);function ay(){return iy.useContext(t1)}var Su=E(D());function r1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=Su.useState(!1),r=V(t,2),n=r[0],o=r[1],i=Su.useRef(null),a=function(){window.clearTimeout(i.current)};Su.useEffect(function(){return a},[]);var s=function(c,u){a(),i.current=window.setTimeout(function(){o(c),u&&u()},e)};return[n,s,a]}var Ud=E(D());function qd(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=Ud.useRef(null),r=Ud.useRef(null);Ud.useEffect(function(){return function(){window.clearTimeout(r.current)}},[]);function n(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(r.current),r.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},n]}var sy=E(D());function n1(e,t,r,n){var o=sy.useRef(null);o.current={open:t,triggerOpen:r,customizedTrigger:n},sy.useEffect(function(){function i(a){var s;if(!((s=o.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=a.target;l.shadowRoot&&a.composed&&(l=a.composedPath()[0]||l),o.current.open&&e().filter(function(c){return c}).every(function(c){return!c.contains(l)&&c!==l})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[])}var Aa=E(D()),dy=E(D());function Ak(e){return e&&![Qe.ESC,Qe.SHIFT,Qe.BACKSPACE,Qe.TAB,Qe.WIN_KEY,Qe.ALT,Qe.META,Qe.WIN_KEY_RIGHT,Qe.CTRL,Qe.SEMICOLON,Qe.EQUALS,Qe.CAPS_LOCK,Qe.CONTEXT_MENU,Qe.F1,Qe.F2,Qe.F3,Qe.F4,Qe.F5,Qe.F6,Qe.F7,Qe.F8,Qe.F9,Qe.F10,Qe.F11,Qe.F12].includes(e)}var _o=E(D()),a1=E(D()),rA=E(Ne());var Zo=E(D()),Xi=E(D()),Hk=E(Ne());var zl=E(D()),Mk=E(Ne());var PH=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Cu=void 0;function TH(e,t){var r=e.prefixCls,n=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,f=e.style,p=e.children,g=e.display,h=e.order,v=e.component,y=v===void 0?"div":v,m=Ve(e,PH),d=a&&!g;function x(R){l(c,R)}zl.useEffect(function(){return function(){x(null)}},[]);var b=i&&o!==Cu?i(o,{index:h}):p,S;n||(S={opacity:d?0:1,height:d?0:Cu,overflowY:d?"hidden":Cu,order:a?h:Cu,pointerEvents:d?"none":Cu,position:d?"absolute":Cu});var w={};d&&(w["aria-hidden"]=!0);var C=zl.createElement(y,fe({className:(0,Mk.default)(!n&&r,u),style:T(T({},S),f)},w,m,{ref:t}),b);return a&&(C=zl.createElement(ro,{onResize:function(P){var O=P.offsetWidth;x(O)},disabled:s},C)),C}var Fk=zl.forwardRef(TH);Fk.displayName="Item";var wu=Fk;var ly=E(D()),Lk=E(Vi());function o1(e){if(typeof MessageChannel>"u")dt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function zk(){var e=ly.useRef(null),t=function(n){e.current||(e.current=[],o1(function(){(0,Lk.unstable_batchedUpdates)(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(n)};return t}function Wl(e,t){var r=ly.useState(t),n=V(r,2),o=n[0],i=n[1],a=wt(function(s){e(function(){i(s)})});return[o,a]}var js=E(D()),Bk=E(Ne());var Wk=E(D()),Bl=Wk.default.createContext(null);var NH=["component"],IH=["className"],DH=["className"],$H=function(t,r){var n=js.useContext(Bl);if(!n){var o=t.component,i=o===void 0?"div":o,a=Ve(t,NH);return js.createElement(i,fe({},a,{ref:r}))}var s=n.className,l=Ve(n,IH),c=t.className,u=Ve(t,DH);return js.createElement(Bl.Provider,{value:null},js.createElement(wu,fe({ref:r,className:(0,Bk.default)(s,c)},l,u)))},jk=js.forwardRef($H);jk.displayName="RawItem";var Vk=jk;var kH=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Uk="responsive",qk="invalidate";function AH(e){return"+ ".concat(e.length," ...")}function MH(e,t){var r=e.prefixCls,n=r===void 0?"rc-overflow":r,o=e.data,i=o===void 0?[]:o,a=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,f=e.ssr,p=e.style,g=e.className,h=e.maxCount,v=e.renderRest,y=e.renderRawRest,m=e.suffix,d=e.component,x=d===void 0?"div":d,b=e.itemComponent,S=e.onVisibleChange,w=Ve(e,kH),C=f==="full",R=zk(),P=Wl(R,null),O=V(P,2),A=O[0],M=O[1],F=A||0,H=Wl(R,new Map),j=V(H,2),I=j[0],N=j[1],$=Wl(R,0),U=V($,2),W=U[0],B=U[1],q=Wl(R,0),L=V(q,2),k=L[0],z=L[1],G=Wl(R,0),J=V(G,2),Y=J[0],X=J[1],ae=(0,Xi.useState)(null),Z=V(ae,2),K=Z[0],Q=Z[1],re=(0,Xi.useState)(null),ee=V(re,2),ne=ee[0],de=ee[1],le=Zo.useMemo(function(){return ne===null&&C?Number.MAX_SAFE_INTEGER:ne||0},[ne,A]),pe=(0,Xi.useState)(!1),Oe=V(pe,2),Ce=Oe[0],$e=Oe[1],ce="".concat(n,"-item"),ie=Math.max(W,k),Re=h===Uk,Le=i.length&&Re,Ge=h===qk,Me=Le||typeof h=="number"&&i.length>h,Ie=(0,Xi.useMemo)(function(){var De=i;return Le?A===null&&C?De=i:De=i.slice(0,Math.min(i.length,F/u)):typeof h=="number"&&(De=i.slice(0,h)),De},[i,u,A,h,Le]),je=(0,Xi.useMemo)(function(){return Le?i.slice(le+1):i.slice(Ie.length)},[i,Ie,Le,le]),We=(0,Xi.useCallback)(function(De,Ee){var be;return typeof l=="function"?l(De):(be=l&&De?.[l])!==null&&be!==void 0?be:Ee},[l]),He=(0,Xi.useCallback)(a||function(De){return De},[a]);function ye(De,Ee,be){ne===De&&(Ee===void 0||Ee===K)||(de(De),be||($e(DeF){ye(ht-1,De-Mt-Y+k);break}}m&&Ze(0)+Y>F&&Q(null)}},[F,I,k,Y,We,Ie]);var lt=Ce&&!!je.length,Et={};K!==null&&Le&&(Et={position:"absolute",left:K,top:0});var Tt={prefixCls:ce,responsive:Le,component:b,invalidate:Ge},pt=s?function(De,Ee){var be=We(De,Ee);return Zo.createElement(Bl.Provider,{key:be,value:T(T({},Tt),{},{order:Ee,item:De,itemKey:be,registerSize:xe,display:Ee<=le})},s(De,Ee))}:function(De,Ee){var be=We(De,Ee);return Zo.createElement(wu,fe({},Tt,{order:Ee,key:be,item:De,renderItem:He,itemKey:be,registerSize:xe,display:Ee<=le}))},ke={order:lt?le:Number.MAX_SAFE_INTEGER,className:"".concat(ce,"-rest"),registerSize:_e,display:lt},we=v||AH,et=y?Zo.createElement(Bl.Provider,{value:T(T({},Tt),ke)},y(je)):Zo.createElement(wu,fe({},Tt,ke),typeof we=="function"?we(je):we),Pe=Zo.createElement(x,fe({className:(0,Hk.default)(!Ge&&n,g),style:p,ref:t},w),Ie.map(pt),Me?et:null,m&&Zo.createElement(wu,fe({},Tt,{responsive:Re,responsiveDisabled:!Le,order:le,className:"".concat(ce,"-suffix"),registerSize:he,display:!0,style:Et}),m));return Re?Zo.createElement(ro,{onResize:se,disabled:!Le},Pe):Pe}var Gd=Zo.forwardRef(MH);Gd.displayName="Overflow";Gd.Item=Vk;Gd.RESPONSIVE=Uk;Gd.INVALIDATE=qk;var Gk=Gd;var Kk=Gk;var Eu=E(D()),Yk=E(Ne());function FH(e,t,r){var n=T(T({},e),r?t:{});return Object.keys(t).forEach(function(o){var i=t[o];typeof i=="function"&&(n[o]=function(){for(var a,s=arguments.length,l=new Array(s),c=0;cx&&(Oe="".concat(Ce.slice(0,x),"..."))}var $e=function(ie){ie&&ie.stopPropagation(),R(ee)};return typeof w=="function"?X(le,Oe,ne,pe,$e):Y(ee,Oe,ne,pe,$e)},Z=function(ee){if(!o.length)return null;var ne=typeof S=="function"?S(ee):S;return typeof w=="function"?X(void 0,ne,!1,!1,void 0,!0):Y({title:ne},ne,!1)},K=_o.createElement("div",{className:"".concat(z,"-search"),style:{width:U},onFocus:function(){k(!0)},onBlur:function(){k(!1)}},_o.createElement(cy,{ref:l,open:i,prefixCls:n,id:r,inputElement:null,disabled:u,autoFocus:g,autoComplete:h,editable:J,activeDescendantId:v,value:G,onKeyDown:A,onMouseDown:M,onChange:P,onPaste:O,onCompositionStart:F,onCompositionEnd:H,onBlur:j,tabIndex:y,attrs:qo(t,!0)}),_o.createElement("span",{ref:I,className:"".concat(z,"-search-mirror"),"aria-hidden":!0},G,"\xA0")),Q=_o.createElement(Kk,{prefixCls:"".concat(z,"-overflow"),data:o,renderItem:ae,renderRest:Z,suffix:K,itemKey:jH,maxCount:d});return _o.createElement("span",{className:"".concat(z,"-wrap")},Q,!o.length&&!G&&_o.createElement("span",{className:"".concat(z,"-placeholder")},c))},nA=VH;var ei=E(D());var HH=function(t){var r=t.inputElement,n=t.prefixCls,o=t.id,i=t.inputRef,a=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,u=t.mode,f=t.open,p=t.values,g=t.placeholder,h=t.tabIndex,v=t.showSearch,y=t.searchValue,m=t.activeValue,d=t.maxLength,x=t.onInputKeyDown,b=t.onInputMouseDown,S=t.onInputChange,w=t.onInputPaste,C=t.onInputCompositionStart,R=t.onInputCompositionEnd,P=t.onInputBlur,O=t.title,A=ei.useState(!1),M=V(A,2),F=M[0],H=M[1],j=u==="combobox",I=j||v,N=p[0],$=y||"";j&&m&&!F&&($=m),ei.useEffect(function(){j&&H(!1)},[j,m]);var U=u!=="combobox"&&!f&&!v?!1:!!$,W=O===void 0?uy(N):O,B=ei.useMemo(function(){return N?null:ei.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:U?{visibility:"hidden"}:void 0},g)},[N,U,g,n]);return ei.createElement("span",{className:"".concat(n,"-selection-wrap")},ei.createElement("span",{className:"".concat(n,"-selection-search")},ei.createElement(cy,{ref:i,prefixCls:n,id:o,open:f,inputElement:r,disabled:a,autoFocus:s,autoComplete:l,editable:I,activeDescendantId:c,value:$,onKeyDown:x,onMouseDown:b,onChange:function(L){H(!0),S(L)},onPaste:w,onCompositionStart:C,onCompositionEnd:R,onBlur:P,tabIndex:h,attrs:qo(t,!0),maxLength:j?d:void 0})),!j&&N?ei.createElement("span",{className:"".concat(n,"-selection-item"),title:W,style:U?{visibility:"hidden"}:void 0},N.label):null,B)},oA=HH;var UH=function(t,r){var n=(0,dy.useRef)(null),o=(0,dy.useRef)(!1),i=t.prefixCls,a=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,u=t.disabled,f=t.prefix,p=t.autoClearSearchValue,g=t.onSearch,h=t.onSearchSubmit,v=t.onToggleOpen,y=t.onInputKeyDown,m=t.onInputBlur,d=t.domRef;Aa.useImperativeHandle(r,function(){return{focus:function(W){n.current.focus(W)},blur:function(){n.current.blur()}}});var x=qd(0),b=V(x,2),S=b[0],w=b[1],C=function(W){var B=W.which,q=n.current instanceof HTMLTextAreaElement;!q&&a&&(B===Qe.UP||B===Qe.DOWN)&&W.preventDefault(),y&&y(W),B===Qe.ENTER&&s==="tags"&&!o.current&&!a&&h?.(W.target.value),!(q&&!a&&~[Qe.UP,Qe.DOWN,Qe.LEFT,Qe.RIGHT].indexOf(B))&&Ak(B)&&v(!0)},R=function(){w(!0)},P=(0,dy.useRef)(null),O=function(W){g(W,!0,o.current)!==!1&&v(!0)},A=function(){o.current=!0},M=function(W){o.current=!1,s!=="combobox"&&O(W.target.value)},F=function(W){var B=W.target.value;if(c&&P.current&&/[\r\n]/.test(P.current)){var q=P.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");B=B.replace(q,P.current)}P.current=null,O(B)},H=function(W){var B=W.clipboardData,q=B?.getData("text");P.current=q||""},j=function(W){var B=W.target;if(B!==n.current){var q=document.body.style.msTouchAction!==void 0;q?setTimeout(function(){n.current.focus()}):n.current.focus()}},I=function(W){var B=S();W.target!==n.current&&!B&&!(s==="combobox"&&u)&&W.preventDefault(),(s!=="combobox"&&(!l||!B)||!a)&&(a&&p!==!1&&g("",!0,!1),v())},N={inputRef:n,onInputKeyDown:C,onInputMouseDown:R,onInputChange:F,onInputPaste:H,onInputCompositionStart:A,onInputCompositionEnd:M,onInputBlur:m},$=s==="multiple"||s==="tags"?Aa.createElement(nA,fe({},t,N)):Aa.createElement(oA,fe({},t,N));return Aa.createElement("div",{ref:d,className:"".concat(i,"-selector"),onClick:j,onMouseDown:I},f&&Aa.createElement("div",{className:"".concat(i,"-prefix")},f),$)},qH=Aa.forwardRef(UH),iA=qH;var my=E(Ne());var xt=E(D());var uA=E(Ne());var ti=E(D());var aA=E(Ne()),py=E(D());function s1(e){var t=e.prefixCls,r=e.align,n=e.arrow,o=e.arrowPos,i=n||{},a=i.className,s=i.content,l=o.x,c=l===void 0?0:l,u=o.y,f=u===void 0?0:u,p=py.useRef();if(!r||!r.points)return null;var g={position:"absolute"};if(r.autoArrow!==!1){var h=r.points[0],v=r.points[1],y=h[0],m=h[1],d=v[0],x=v[1];y===d||!["t","b"].includes(y)?g.top=f:y==="t"?g.top=0:g.bottom=0,m===x||!["l","r"].includes(m)?g.left=c:m==="l"?g.left=0:g.right=0}return py.createElement("div",{ref:p,className:(0,aA.default)("".concat(t,"-arrow"),a),style:g},s)}var sA=E(Ne());var l1=E(D());function c1(e){var t=e.prefixCls,r=e.open,n=e.zIndex,o=e.mask,i=e.motion;return o?l1.createElement(Uo,fe({},i,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(a){var s=a.className;return l1.createElement("div",{style:{zIndex:n},className:(0,sA.default)("".concat(t,"-mask"),s)})}):null}var lA=E(D()),GH=lA.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),cA=GH;var KH=ti.forwardRef(function(e,t){var r=e.popup,n=e.className,o=e.prefixCls,i=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,f=e.onClick,p=e.mask,g=e.arrow,h=e.arrowPos,v=e.align,y=e.motion,m=e.maskMotion,d=e.forceRender,x=e.getPopupContainer,b=e.autoDestroy,S=e.portal,w=e.zIndex,C=e.onMouseEnter,R=e.onMouseLeave,P=e.onPointerEnter,O=e.onPointerDownCapture,A=e.ready,M=e.offsetX,F=e.offsetY,H=e.offsetR,j=e.offsetB,I=e.onAlign,N=e.onPrepare,$=e.stretch,U=e.targetWidth,W=e.targetHeight,B=typeof r=="function"?r():r,q=l||c,L=x?.length>0,k=ti.useState(!x||!L),z=V(k,2),G=z[0],J=z[1];if(vt(function(){!G&&L&&a&&J(!0)},[G,L,a]),!G)return null;var Y="auto",X={left:"-1000vw",top:"-1000vh",right:Y,bottom:Y};if(A||!l){var ae,Z=v.points,K=v.dynamicInset||((ae=v._experimental)===null||ae===void 0?void 0:ae.dynamicInset),Q=K&&Z[0][1]==="r",re=K&&Z[0][0]==="b";Q?(X.right=H,X.left=Y):(X.left=M,X.right=Y),re?(X.bottom=j,X.top=Y):(X.top=F,X.bottom=Y)}var ee={};return $&&($.includes("height")&&W?ee.height=W:$.includes("minHeight")&&W&&(ee.minHeight=W),$.includes("width")&&U?ee.width=U:$.includes("minWidth")&&U&&(ee.minWidth=U)),l||(ee.pointerEvents="none"),ti.createElement(S,{open:d||q,getContainer:x&&function(){return x(a)},autoDestroy:b},ti.createElement(c1,{prefixCls:o,open:l,zIndex:w,mask:p,motion:m}),ti.createElement(ro,{onResize:I,disabled:!l},function(ne){return ti.createElement(Uo,fe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:d,leavedClassName:"".concat(o,"-hidden")},y,{onAppearPrepare:N,onEnterPrepare:N,visible:l,onVisibleChanged:function(le){var pe;y==null||(pe=y.onVisibleChanged)===null||pe===void 0||pe.call(y,le),s(le)}}),function(de,le){var pe=de.className,Oe=de.style,Ce=(0,uA.default)(o,pe,n);return ti.createElement("div",{ref:zr(ne,t,le),className:Ce,style:T(T(T(T({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},X),ee),Oe),{},{boxSizing:"border-box",zIndex:w},i),onMouseEnter:C,onMouseLeave:R,onPointerEnter:P,onClick:f,onPointerDownCapture:O},g&&ti.createElement(s1,{prefixCls:o,arrow:g,arrowPos:h,align:v}),ti.createElement(cA,{cache:!l&&!u},B))})}))}),fA=KH;var Ru=E(D()),XH=Ru.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,o=bi(r),i=Ru.useCallback(function(s){gd(t,n?n(s):s)},[n]),a=xi(i,xs(r));return o?Ru.cloneElement(r,{ref:a}):r}),dA=XH;var pA=E(D()),YH=pA.createContext(null),u1=YH;var gA=E(D());function mA(e){return e?Array.isArray(e)?e:[e]:[]}function f1(e,t,r,n){return gA.useMemo(function(){var o=mA(r??t),i=mA(n??t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,r,n])}var jl=E(D());function QH(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function hA(e,t,r,n){for(var o=r.points,i=Object.keys(e),a=0;a1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Xd(e){return Ou(parseFloat(e),0)}function p1(e,t){var r=T({},e);return(t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var o=Vs(n).getComputedStyle(n),i=o.overflow,a=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,f=n.getBoundingClientRect(),p=n.offsetHeight,g=n.clientHeight,h=n.offsetWidth,v=n.clientWidth,y=Xd(s),m=Xd(l),d=Xd(c),x=Xd(u),b=Ou(Math.round(f.width/h*1e3)/1e3),S=Ou(Math.round(f.height/p*1e3)/1e3),w=(h-v-d-x)*b,C=(p-g-y-m)*S,R=y*S,P=m*S,O=d*b,A=x*b,M=0,F=0;if(i==="clip"){var H=Xd(a);M=H*b,F=H*S}var j=f.x+O-M,I=f.y+R-F,N=j+f.width+2*M-O-A-w,$=I+f.height+2*F-R-P-C;r.left=Math.max(r.left,j),r.top=Math.max(r.top,I),r.right=Math.min(r.right,N),r.bottom=Math.min(r.bottom,$)}}),r}function vA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r="".concat(t),n=r.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(r)}function yA(e,t){var r=t||[],n=V(r,2),o=n[0],i=n[1];return[vA(e.width,o),vA(e.height,i)]}function xA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function _u(e,t){var r=t[0],n=t[1],o,i;return r==="t"?i=e.y:r==="b"?i=e.y+e.height:i=e.y+e.height/2,n==="l"?o=e.x:n==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:i}}function Hs(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,o){return o===t?r[n]||"c":n}).join("")}function m1(e,t,r,n,o,i,a){var s=jl.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[n]||{}}),l=V(s,2),c=l[0],u=l[1],f=jl.useRef(0),p=jl.useMemo(function(){return t?Yd(t):[]},[t]),g=jl.useRef({}),h=function(){g.current={}};e||h();var v=wt(function(){if(t&&r&&e){let Ln=function(ic,qa){var ac=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ie,Np=k.x+ic,Ip=k.y+qa,V0=Np+Q,Je=Ip+K,ct=Math.max(Np,ac.left),hr=Math.max(Ip,ac.top),Fr=Math.min(V0,ac.right),vr=Math.min(Je,ac.bottom);return Math.max(0,(Fr-ct)*(vr-hr))},oc=function(){rr=k.y+be,pr=rr+K,mr=k.x+Ee,An=mr+Q};var gR=Ln,hR=oc,d,x,b,S,w=t,C=w.ownerDocument,R=Vs(w),P=R.getComputedStyle(w),O=P.width,A=P.height,M=P.position,F=w.style.left,H=w.style.top,j=w.style.right,I=w.style.bottom,N=w.style.overflow,$=T(T({},o[n]),i),U=C.createElement("div");(d=w.parentElement)===null||d===void 0||d.appendChild(U),U.style.left="".concat(w.offsetLeft,"px"),U.style.top="".concat(w.offsetTop,"px"),U.style.position=M,U.style.height="".concat(w.offsetHeight,"px"),U.style.width="".concat(w.offsetWidth,"px"),w.style.left="0",w.style.top="0",w.style.right="auto",w.style.bottom="auto",w.style.overflow="hidden";var W;if(Array.isArray(r))W={x:r[0],y:r[1],width:0,height:0};else{var B,q,L=r.getBoundingClientRect();L.x=(B=L.x)!==null&&B!==void 0?B:L.left,L.y=(q=L.y)!==null&&q!==void 0?q:L.top,W={x:L.x,y:L.y,width:L.width,height:L.height}}var k=w.getBoundingClientRect();k.x=(x=k.x)!==null&&x!==void 0?x:k.left,k.y=(b=k.y)!==null&&b!==void 0?b:k.top;var z=C.documentElement,G=z.clientWidth,J=z.clientHeight,Y=z.scrollWidth,X=z.scrollHeight,ae=z.scrollTop,Z=z.scrollLeft,K=k.height,Q=k.width,re=W.height,ee=W.width,ne={left:0,top:0,right:G,bottom:J},de={left:-Z,top:-ae,right:Y-Z,bottom:X-ae},le=$.htmlRegion,pe="visible",Oe="visibleFirst";le!=="scroll"&&le!==Oe&&(le=pe);var Ce=le===Oe,$e=p1(de,p),ce=p1(ne,p),ie=le===pe?ce:$e,Re=Ce?ce:ie;w.style.left="auto",w.style.top="auto",w.style.right="0",w.style.bottom="0";var Le=w.getBoundingClientRect();w.style.left=F,w.style.top=H,w.style.right=j,w.style.bottom=I,w.style.overflow=N,(S=w.parentElement)===null||S===void 0||S.removeChild(U);var Ge=Ou(Math.round(Q/parseFloat(O)*1e3)/1e3),Me=Ou(Math.round(K/parseFloat(A)*1e3)/1e3);if(Ge===0||Me===0||Cl(r)&&!wv(r))return;var Ie=$.offset,je=$.targetOffset,We=yA(k,Ie),He=V(We,2),ye=He[0],se=He[1],xe=yA(W,je),_e=V(xe,2),he=_e[0],Ze=_e[1];W.x-=he,W.y-=Ze;var lt=$.points||[],Et=V(lt,2),Tt=Et[0],pt=Et[1],ke=xA(pt),we=xA(Tt),et=_u(W,ke),Pe=_u(k,we),De=T({},$),Ee=et.x-Pe.x+ye,be=et.y-Pe.y+se,ht=Ln(Ee,be),Mt=Ln(Ee,be,ce),Fe=_u(W,["t","l"]),Se=_u(k,["t","l"]),Ke=_u(W,["b","r"]),Be=_u(k,["b","r"]),ze=$.overflow||{},tt=ze.adjustX,At=ze.adjustY,Nt=ze.shiftX,tr=ze.shiftY,Ft=function(qa){return typeof qa=="boolean"?qa:qa>=0},rr,pr,mr,An;oc();var gr=Ft(At),Lt=we[0]===ke[0];if(gr&&we[0]==="t"&&(pr>Re.bottom||g.current.bt)){var Te=be;Lt?Te-=K-re:Te=Fe.y-Be.y-se;var Ue=Ln(Ee,Te),Ae=Ln(Ee,Te,ce);Ue>ht||Ue===ht&&(!Ce||Ae>=Mt)?(g.current.bt=!0,be=Te,se=-se,De.points=[Hs(we,0),Hs(ke,0)]):g.current.bt=!1}if(gr&&we[0]==="b"&&(rrht||nt===ht&&(!Ce||It>=Mt)?(g.current.tb=!0,be=ve,se=-se,De.points=[Hs(we,0),Hs(ke,0)]):g.current.tb=!1}var Dt=Ft(tt),mn=we[1]===ke[1];if(Dt&&we[1]==="l"&&(An>Re.right||g.current.rl)){var Ar=Ee;mn?Ar-=Q-ee:Ar=Fe.x-Be.x-ye;var jr=Ln(Ar,be),Pr=Ln(Ar,be,ce);jr>ht||jr===ht&&(!Ce||Pr>=Mt)?(g.current.rl=!0,Ee=Ar,ye=-ye,De.points=[Hs(we,1),Hs(ke,1)]):g.current.rl=!1}if(Dt&&we[1]==="r"&&(mrht||Xn===ht&&(!Ce||Mn>=Mt)?(g.current.lr=!0,Ee=Vr,ye=-ye,De.points=[Hs(we,1),Hs(ke,1)]):g.current.lr=!1}oc();var tn=Nt===!0?0:Nt;typeof tn=="number"&&(mrce.right&&(Ee-=An-ce.right-ye,W.x>ce.right-tn&&(Ee+=W.x-ce.right+tn)));var wn=tr===!0?0:tr;typeof wn=="number"&&(rrce.bottom&&(be-=pr-ce.bottom-se,W.y>ce.bottom-wn&&(be+=W.y-ce.bottom+wn)));var Va=k.x+Ee,Ha=Va+Q,No=k.y+be,nc=No+K,Ua=W.x,St=Ua+ee,ft=W.y,rn=ft+re,nn=Math.max(Va,Ua),Sr=Math.min(Ha,St),Mr=(nn+Sr)/2,po=Mr-Va,Yn=Math.max(No,ft),Io=Math.min(nc,rn),Di=(Yn+Io)/2,li=Di-No;a?.(t,De);var $i=Le.right-k.x-(Ee+k.width),Fn=Le.bottom-k.y-(be+k.height);Ge===1&&(Ee=Math.round(Ee),$i=Math.round($i)),Me===1&&(be=Math.round(be),Fn=Math.round(Fn));var j0={ready:!0,offsetX:Ee/Ge,offsetY:be/Me,offsetR:$i/Ge,offsetB:Fn/Me,arrowX:po/Ge,arrowY:li/Me,scaleX:Ge,scaleY:Me,align:De};u(j0)}}),y=function(){f.current+=1;var x=f.current;Promise.resolve().then(function(){f.current===x&&v()})},m=function(){u(function(x){return T(T({},x),{},{ready:!1})})};return vt(m,[n]),vt(function(){e||m()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,y]}function g1(e,t,r,n,o){vt(function(){if(e&&t&&r){let p=function(){n(),o()};var f=p,i=t,a=r,s=Yd(i),l=Yd(a),c=Vs(a),u=new Set([c].concat(te(s),te(l)));return u.forEach(function(g){g.addEventListener("scroll",p,{passive:!0})}),c.addEventListener("resize",p,{passive:!0}),n(),function(){u.forEach(function(g){g.removeEventListener("scroll",p),c.removeEventListener("resize",p)})}}},[e,t,r])}var Qd=E(D());function h1(e,t,r,n,o,i,a,s){var l=Qd.useRef(e);l.current=e;var c=Qd.useRef(!1);Qd.useEffect(function(){if(t&&n&&(!o||i)){var f=function(){c.current=!1},p=function(b){var S;l.current&&!a(((S=b.composedPath)===null||S===void 0||(S=S.call(b))===null||S===void 0?void 0:S[0])||b.target)&&!c.current&&s(!1)},g=Vs(n);g.addEventListener("pointerdown",f,!0),g.addEventListener("mousedown",p,!0),g.addEventListener("contextmenu",p,!0);var h=Dl(r);if(h&&(h.addEventListener("mousedown",p,!0),h.addEventListener("contextmenu",p,!0)),0)var v,y,m,d;return function(){g.removeEventListener("pointerdown",f,!0),g.removeEventListener("mousedown",p,!0),g.removeEventListener("contextmenu",p,!0),h&&(h.removeEventListener("mousedown",p,!0),h.removeEventListener("contextmenu",p,!0))}}},[t,r,n,o,i]);function u(){c.current=!0}return u}var JH=["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 ZH(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Lw,t=xt.forwardRef(function(r,n){var o=r.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=r.children,s=r.action,l=s===void 0?"hover":s,c=r.showAction,u=r.hideAction,f=r.popupVisible,p=r.defaultPopupVisible,g=r.onPopupVisibleChange,h=r.afterPopupVisibleChange,v=r.mouseEnterDelay,y=r.mouseLeaveDelay,m=y===void 0?.1:y,d=r.focusDelay,x=r.blurDelay,b=r.mask,S=r.maskClosable,w=S===void 0?!0:S,C=r.getPopupContainer,R=r.forceRender,P=r.autoDestroy,O=r.destroyPopupOnHide,A=r.popup,M=r.popupClassName,F=r.popupStyle,H=r.popupPlacement,j=r.builtinPlacements,I=j===void 0?{}:j,N=r.popupAlign,$=r.zIndex,U=r.stretch,W=r.getPopupClassNameFromAlign,B=r.fresh,q=r.alignPoint,L=r.onPopupClick,k=r.onPopupAlign,z=r.arrow,G=r.popupMotion,J=r.maskMotion,Y=r.popupTransitionName,X=r.popupAnimation,ae=r.maskTransitionName,Z=r.maskAnimation,K=r.className,Q=r.getTriggerDOMNode,re=Ve(r,JH),ee=P||O||!1,ne=xt.useState(!1),de=V(ne,2),le=de[0],pe=de[1];vt(function(){pe(bu())},[]);var Oe=xt.useRef({}),Ce=xt.useContext(u1),$e=xt.useMemo(function(){return{registerSubPopup:function(ct,hr){Oe.current[ct]=hr,Ce?.registerSubPopup(ct,hr)}}},[Ce]),ce=Uv(),ie=xt.useState(null),Re=V(ie,2),Le=Re[0],Ge=Re[1],Me=xt.useRef(null),Ie=wt(function(Je){Me.current=Je,Cl(Je)&&Le!==Je&&Ge(Je),Ce?.registerSubPopup(ce,Je)}),je=xt.useState(null),We=V(je,2),He=We[0],ye=We[1],se=xt.useRef(null),xe=wt(function(Je){Cl(Je)&&He!==Je&&(ye(Je),se.current=Je)}),_e=xt.Children.only(a),he=_e?.props||{},Ze={},lt=wt(function(Je){var ct,hr,Fr=He;return Fr?.contains(Je)||((ct=Dl(Fr))===null||ct===void 0?void 0:ct.host)===Je||Je===Fr||Le?.contains(Je)||((hr=Dl(Le))===null||hr===void 0?void 0:hr.host)===Je||Je===Le||Object.values(Oe.current).some(function(vr){return vr?.contains(Je)||Je===vr})}),Et=d1(i,G,X,Y),Tt=d1(i,J,Z,ae),pt=xt.useState(p||!1),ke=V(pt,2),we=ke[0],et=ke[1],Pe=f??we,De=wt(function(Je){f===void 0&&et(Je)});vt(function(){et(f||!1)},[f]);var Ee=xt.useRef(Pe);Ee.current=Pe;var be=xt.useRef([]);be.current=[];var ht=wt(function(Je){var ct;De(Je),((ct=be.current[be.current.length-1])!==null&&ct!==void 0?ct:Pe)!==Je&&(be.current.push(Je),g?.(Je))}),Mt=xt.useRef(),Fe=function(){clearTimeout(Mt.current)},Se=function(ct){var hr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Fe(),hr===0?ht(ct):Mt.current=setTimeout(function(){ht(ct)},hr*1e3)};xt.useEffect(function(){return Fe},[]);var Ke=xt.useState(!1),Be=V(Ke,2),ze=Be[0],tt=Be[1];vt(function(Je){(!Je||Pe)&&tt(!0)},[Pe]);var At=xt.useState(null),Nt=V(At,2),tr=Nt[0],Ft=Nt[1],rr=xt.useState(null),pr=V(rr,2),mr=pr[0],An=pr[1],gr=function(ct){An([ct.clientX,ct.clientY])},Lt=m1(Pe,Le,q&&mr!==null?mr:He,H,I,N,k),Te=V(Lt,11),Ue=Te[0],Ae=Te[1],ve=Te[2],nt=Te[3],It=Te[4],Dt=Te[5],mn=Te[6],Ar=Te[7],jr=Te[8],Pr=Te[9],Vr=Te[10],Xn=f1(le,l,c,u),Mn=V(Xn,2),tn=Mn[0],wn=Mn[1],Va=tn.has("click"),Ha=wn.has("click")||wn.has("contextMenu"),No=wt(function(){ze||Vr()}),nc=function(){Ee.current&&q&&Ha&&Se(!1)};g1(Pe,He,Le,No,nc),vt(function(){No()},[mr,H]),vt(function(){Pe&&!(I!=null&&I[H])&&No()},[JSON.stringify(N)]);var Ua=xt.useMemo(function(){var Je=hA(I,i,Pr,q);return(0,my.default)(Je,W?.(Pr))},[Pr,W,I,i,q]);xt.useImperativeHandle(n,function(){return{nativeElement:se.current,popupElement:Me.current,forceAlign:No}});var St=xt.useState(0),ft=V(St,2),rn=ft[0],nn=ft[1],Sr=xt.useState(0),Mr=V(Sr,2),po=Mr[0],Yn=Mr[1],Io=function(){if(U&&He){var ct=He.getBoundingClientRect();nn(ct.width),Yn(ct.height)}},Di=function(){Io(),No()},li=function(ct){tt(!1),Vr(),h?.(ct)},$i=function(){return new Promise(function(ct){Io(),Ft(function(){return ct})})};vt(function(){tr&&(Vr(),tr(),Ft(null))},[tr]);function Fn(Je,ct,hr,Fr){Ze[Je]=function(vr){var Dp;Fr?.(vr),Se(ct,hr);for(var H0=arguments.length,vR=new Array(H0>1?H0-1:0),$p=1;$p1?hr-1:0),vr=1;vr1?hr-1:0),vr=1;vr1&&arguments[1]!==void 0?arguments[1]:{},r=t.fieldNames,n=t.childrenAsData,o=[],i=v1(r,!1),a=i.label,s=i.value,l=i.options,c=i.groupLabel;function u(f,p){Array.isArray(f)&&f.forEach(function(g){if(p||!(l in g)){var h=g[s];o.push({key:CA(g,o.length),groupOption:p,data:g,label:g[a],value:h})}else{var v=g[c];v===void 0&&n&&(v=g.label),o.push({key:CA(g,o.length),group:!0,data:g,label:v}),u(g[l],!0)}})}return u(e,!1),o}function Zd(e){var t=T({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Vt(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var EA=function(t,r,n){if(!r||!r.length)return null;var o=!1,i=function s(l,c){var u=Rh(c),f=u[0],p=u.slice(1);if(!f)return[l];var g=l.split(f);return o=o||g.length>1,g.reduce(function(h,v){return[].concat(te(h),te(s(v,p)))},[]).filter(Boolean)},a=i(t,r);return o?typeof n<"u"?a.slice(0,n):a:null};var RA=E(D()),o9=RA.createContext(null),Pu=o9;var OA=E(D());function y1(e){var t=e.visible,r=e.values;if(!t)return null;var n=50;return OA.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(r.slice(0,n).map(function(o){var i=o.label,a=o.value;return["number","string"].includes(ue(i))?i:a}).join(", ")),r.length>n?", ...":null)}var i9=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],a9=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],ep=function(t){return t==="tags"||t==="multiple"},s9=bt.forwardRef(function(e,t){var r,n=e.id,o=e.prefixCls,i=e.className,a=e.showSearch,s=e.tagRender,l=e.direction,c=e.omitDomProps,u=e.displayValues,f=e.onDisplayValuesChange,p=e.emptyOptions,g=e.notFoundContent,h=g===void 0?"Not Found":g,v=e.onClear,y=e.mode,m=e.disabled,d=e.loading,x=e.getInputElement,b=e.getRawInputElement,S=e.open,w=e.defaultOpen,C=e.onDropdownVisibleChange,R=e.activeValue,P=e.onActiveValueChange,O=e.activeDescendantId,A=e.searchValue,M=e.autoClearSearchValue,F=e.onSearch,H=e.onSearchSplit,j=e.tokenSeparators,I=e.allowClear,N=e.prefix,$=e.suffixIcon,U=e.clearIcon,W=e.OptionList,B=e.animation,q=e.transitionName,L=e.dropdownStyle,k=e.dropdownClassName,z=e.dropdownMatchSelectWidth,G=e.dropdownRender,J=e.dropdownAlign,Y=e.placement,X=e.builtinPlacements,ae=e.getPopupContainer,Z=e.showAction,K=Z===void 0?[]:Z,Q=e.onFocus,re=e.onBlur,ee=e.onKeyUp,ne=e.onKeyDown,de=e.onMouseDown,le=Ve(e,i9),pe=ep(y),Oe=(a!==void 0?a:pe)||y==="combobox",Ce=T({},le);a9.forEach(function(St){delete Ce[St]}),c?.forEach(function(St){delete Ce[St]});var $e=bt.useState(!1),ce=V($e,2),ie=ce[0],Re=ce[1];bt.useEffect(function(){Re(bu())},[]);var Le=bt.useRef(null),Ge=bt.useRef(null),Me=bt.useRef(null),Ie=bt.useRef(null),je=bt.useRef(null),We=bt.useRef(!1),He=r1(),ye=V(He,3),se=ye[0],xe=ye[1],_e=ye[2];bt.useImperativeHandle(t,function(){var St,ft;return{focus:(St=Ie.current)===null||St===void 0?void 0:St.focus,blur:(ft=Ie.current)===null||ft===void 0?void 0:ft.blur,scrollTo:function(nn){var Sr;return(Sr=je.current)===null||Sr===void 0?void 0:Sr.scrollTo(nn)},nativeElement:Le.current||Ge.current}});var he=bt.useMemo(function(){var St;if(y!=="combobox")return A;var ft=(St=u[0])===null||St===void 0?void 0:St.value;return typeof ft=="string"||typeof ft=="number"?String(ft):""},[A,y,u]),Ze=y==="combobox"&&typeof x=="function"&&x()||null,lt=typeof b=="function"&&b(),Et=xi(Ge,lt==null||(r=lt.props)===null||r===void 0?void 0:r.ref),Tt=bt.useState(!1),pt=V(Tt,2),ke=pt[0],we=pt[1];vt(function(){we(!0)},[]);var et=ar(!1,{defaultValue:w,value:S}),Pe=V(et,2),De=Pe[0],Ee=Pe[1],be=ke?De:!1,ht=!h&&p;(m||ht&&be&&y==="combobox")&&(be=!1);var Mt=ht?!1:be,Fe=bt.useCallback(function(St){var ft=St!==void 0?St:!be;m||(Ee(ft),be!==ft&&C?.(ft))},[m,be,Ee,C]),Se=bt.useMemo(function(){return(j||[]).some(function(St){return[` `,`\r `].includes(St)})},[j]),Ke=bt.useContext(Pu)||{},Be=Ke.maxCount,ze=Ke.rawValues,tt=function(ft,rn,nn){if(!(pe&&Jd(Be)&&ze?.size>=Be)){var Sr=!0,Mr=ft;P?.(null);var po=EA(ft,j,Jd(Be)?Be-ze.size:void 0),Yn=nn?null:po;return y!=="combobox"&&Yn&&(Mr="",H?.(Yn),Fe(!1),Sr=!1),F&&he!==Mr&&F(Mr,{source:rn?"typing":"effect"}),Sr}},At=function(ft){!ft||!ft.trim()||F(ft,{source:"submit"})};bt.useEffect(function(){!be&&!pe&&y!=="combobox"&&tt("",!1,!1)},[be]),bt.useEffect(function(){De&&m&&Ee(!1),m&&!We.current&&xe(!1)},[m]);var Nt=qd(),tr=V(Nt,2),Ft=tr[0],rr=tr[1],pr=bt.useRef(!1),mr=function(ft){var rn=Ft(),nn=ft.key,Sr=nn==="Enter";if(Sr&&(y!=="combobox"&&ft.preventDefault(),be||Fe(!0)),rr(!!he),nn==="Backspace"&&!rn&&pe&&!he&&u.length){for(var Mr=te(u),po=null,Yn=Mr.length-1;Yn>=0;Yn-=1){var Io=Mr[Yn];if(!Io.disabled){Mr.splice(Yn,1),po=Io;break}}po&&f(Mr,{type:"remove",values:[po]})}for(var Di=arguments.length,li=new Array(Di>1?Di-1:0),$i=1;$i1?rn-1:0),Sr=1;Sr1?po-1:0),Io=1;Io"u"?"undefined":ue(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),w1=l9;var vy=E(D()),yy=function(e,t,r,n){var o=(0,vy.useRef)(!1),i=(0,vy.useRef)(null);function a(){clearTimeout(i.current),o.current=!0,i.current=setTimeout(function(){o.current=!1},50)}var s=(0,vy.useRef)({top:e,bottom:t,left:r,right:n});return s.current.top=e,s.current.bottom=t,s.current.left=r,s.current.right=n,function(l,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=l?c<0&&s.current.left||c>0&&s.current.right:c<0&&s.current.top||c>0&&s.current.bottom;return u&&f?(clearTimeout(i.current),o.current=!1):(!f||o.current)&&a(),!o.current&&f}};function E1(e,t,r,n,o,i,a){var s=(0,Vl.useRef)(0),l=(0,Vl.useRef)(null),c=(0,Vl.useRef)(null),u=(0,Vl.useRef)(!1),f=yy(t,r,n,o);function p(d,x){if(dt.cancel(l.current),!f(!1,x)){var b=d;if(!b._virtualHandled)b._virtualHandled=!0;else return;s.current+=x,c.current=x,w1||b.preventDefault(),l.current=dt(function(){var S=u.current?10:1;a(s.current*S,!1),s.current=0})}}function g(d,x){a(x,!0),w1||d.preventDefault()}var h=(0,Vl.useRef)(null),v=(0,Vl.useRef)(null);function y(d){if(e){dt.cancel(v.current),v.current=dt(function(){h.current=null},2);var x=d.deltaX,b=d.deltaY,S=d.shiftKey,w=x,C=b;(h.current==="sx"||!h.current&&S&&b&&!x)&&(w=b,C=0,h.current="sx");var R=Math.abs(w),P=Math.abs(C);h.current===null&&(h.current=i&&R>P?"x":"y"),h.current==="y"?p(d,C):g(d,w)}}function m(d){e&&(u.current=d.detail===c.current)}return[y,m]}var AA=E(D());function MA(e,t,r,n){var o=AA.useMemo(function(){return[new Map,[]]},[e,r.id,n]),i=V(o,2),a=i[0],s=i[1],l=function(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,p=a.get(u),g=a.get(f);if(p===void 0||g===void 0)for(var h=e.length,v=s.length;v0&&arguments[0]!==void 0?arguments[0]:!1;u();var h=function(){var m=!1;s.current.forEach(function(d,x){if(d&&d.offsetParent){var b=d.offsetHeight,S=getComputedStyle(d),w=S.marginTop,C=S.marginBottom,R=LA(w),P=LA(C),O=b+R+P;l.current.get(x)!==O&&(l.current.set(x,O),m=!0)}}),m&&a(function(d){return d+1})};if(g)h();else{c.current+=1;var v=c.current;Promise.resolve().then(function(){v===c.current&&h()})}}function p(g,h){var v=e(g),y=s.current.get(v);h?(s.current.set(v,h),f()):s.current.delete(v),!y!=!h&&(h?t?.(g):r?.(g))}return(0,Nu.useEffect)(function(){return u},[]),[p,f,l.current,i]}var Iu=E(D()),WA=14/15;function O1(e,t,r){var n=(0,Iu.useRef)(!1),o=(0,Iu.useRef)(0),i=(0,Iu.useRef)(0),a=(0,Iu.useRef)(null),s=(0,Iu.useRef)(null),l,c=function(g){if(n.current){var h=Math.ceil(g.touches[0].pageX),v=Math.ceil(g.touches[0].pageY),y=o.current-h,m=i.current-v,d=Math.abs(y)>Math.abs(m);d?o.current=h:i.current=v;var x=r(d,d?y:m,!1,g);x&&g.preventDefault(),clearInterval(s.current),x&&(s.current=setInterval(function(){d?y*=WA:m*=WA;var b=Math.floor(d?y:m);(!r(d,b,!0)||Math.abs(b)<=.1)&&clearInterval(s.current)},16))}},u=function(){n.current=!1,l()},f=function(g){l(),g.touches.length===1&&!n.current&&(n.current=!0,o.current=Math.ceil(g.touches[0].pageX),i.current=Math.ceil(g.touches[0].pageY),a.current=g.target,a.current.addEventListener("touchmove",c,{passive:!1}),a.current.addEventListener("touchend",u,{passive:!0}))};l=function(){a.current&&(a.current.removeEventListener("touchmove",c),a.current.removeEventListener("touchend",u))},vt(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var p;(p=t.current)===null||p===void 0||p.removeEventListener("touchstart",f),l(),clearInterval(s.current)}},[e])}var jA=E(D());function BA(e){return Math.floor(Math.pow(e,.5))}function xy(e,t){var r="touches"in e?e.touches[0]:e;return r[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function _1(e,t,r){jA.useEffect(function(){var n=t.current;if(e&&n){var o=!1,i,a,s=function(){dt.cancel(i)},l=function p(){s(),i=dt(function(){r(a),p()})},c=function(g){if(!(g.target.draggable||g.button!==0)){var h=g;h._virtualHandled||(h._virtualHandled=!0,o=!0)}},u=function(){o=!1,s()},f=function(g){if(o){var h=xy(g,!1),v=n.getBoundingClientRect(),y=v.top,m=v.bottom;if(h<=y){var d=y-h;a=-BA(d),l()}else if(h>=m){var x=h-m;a=BA(x),l()}else s()}};return n.addEventListener("mousedown",c),n.ownerDocument.addEventListener("mouseup",u),n.ownerDocument.addEventListener("mousemove",f),function(){n.removeEventListener("mousedown",c),n.ownerDocument.removeEventListener("mouseup",u),n.ownerDocument.removeEventListener("mousemove",f),s()}}},[e])}var by=E(D());var u9=10;function P1(e,t,r,n,o,i,a,s){var l=by.useRef(),c=by.useState(null),u=V(c,2),f=u[0],p=u[1];return vt(function(){if(f&&f.times=0;H-=1){var j=o(t[H]),I=r.get(j);if(I===void 0){d=!0;break}if(F-=I,F<=0)break}switch(S){case"top":b=C-y;break;case"bottom":b=R-m+y;break;default:{var N=e.current.scrollTop,$=N+m;C$&&(x="bottom")}}b!==null&&a(b),b!==f.lastTop&&(d=!0)}d&&p(T(T({},f),{},{times:f.times+1,targetAlign:x,lastTop:b}))}},[f,e.current]),function(g){if(g==null){s();return}if(dt.cancel(l.current),typeof g=="number")a(g);else if(g&&ue(g)==="object"){var h,v=g.align;"index"in g?h=g.index:h=t.findIndex(function(d){return o(d)===g.key});var y=g.offset,m=y===void 0?0:y;p({times:0,index:h,offset:m,originAlign:v})}}}var T1=E(Ne());var ur=E(D());var f9=ur.forwardRef(function(e,t){var r=e.prefixCls,n=e.rtl,o=e.scrollOffset,i=e.scrollRange,a=e.onStartMove,s=e.onStopMove,l=e.onScroll,c=e.horizontal,u=e.spinSize,f=e.containerSize,p=e.style,g=e.thumbStyle,h=e.showScrollBar,v=ur.useState(!1),y=V(v,2),m=y[0],d=y[1],x=ur.useState(null),b=V(x,2),S=b[0],w=b[1],C=ur.useState(null),R=V(C,2),P=R[0],O=R[1],A=!n,M=ur.useRef(),F=ur.useRef(),H=ur.useState(h),j=V(H,2),I=j[0],N=j[1],$=ur.useRef(),U=function(){h===!0||h===!1||(clearTimeout($.current),N(!0),$.current=setTimeout(function(){N(!1)},3e3))},W=i-f||0,B=f-u||0,q=ur.useMemo(function(){if(o===0||W===0)return 0;var Z=o/W;return Z*B},[o,W,B]),L=function(K){K.stopPropagation(),K.preventDefault()},k=ur.useRef({top:q,dragging:m,pageY:S,startTop:P});k.current={top:q,dragging:m,pageY:S,startTop:P};var z=function(K){d(!0),w(xy(K,c)),O(k.current.top),a(),K.stopPropagation(),K.preventDefault()};ur.useEffect(function(){var Z=function(ee){ee.preventDefault()},K=M.current,Q=F.current;return K.addEventListener("touchstart",Z,{passive:!1}),Q.addEventListener("touchstart",z,{passive:!1}),function(){K.removeEventListener("touchstart",Z),Q.removeEventListener("touchstart",z)}},[]);var G=ur.useRef();G.current=W;var J=ur.useRef();J.current=B,ur.useEffect(function(){if(m){var Z,K=function(ee){var ne=k.current,de=ne.dragging,le=ne.pageY,pe=ne.startTop;dt.cancel(Z);var Oe=M.current.getBoundingClientRect(),Ce=f/(c?Oe.width:Oe.height);if(de){var $e=(xy(ee,c)-le)*Ce,ce=pe;!A&&c?ce-=$e:ce+=$e;var ie=G.current,Re=J.current,Le=Re?ce/Re:0,Ge=Math.ceil(Le*ie);Ge=Math.max(Ge,0),Ge=Math.min(Ge,ie),Z=dt(function(){l(Ge,c)})}},Q=function(){d(!1),s()};return window.addEventListener("mousemove",K,{passive:!0}),window.addEventListener("touchmove",K,{passive:!0}),window.addEventListener("mouseup",Q,{passive:!0}),window.addEventListener("touchend",Q,{passive:!0}),function(){window.removeEventListener("mousemove",K),window.removeEventListener("touchmove",K),window.removeEventListener("mouseup",Q),window.removeEventListener("touchend",Q),dt.cancel(Z)}}},[m]),ur.useEffect(function(){return U(),function(){clearTimeout($.current)}},[o]),ur.useImperativeHandle(t,function(){return{delayHidden:U}});var Y="".concat(r,"-scrollbar"),X={position:"absolute",visibility:I?null:"hidden"},ae={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return c?(X.height=8,X.left=0,X.right=0,X.bottom=0,ae.height="100%",ae.width=u,A?ae.left=q:ae.right=q):(X.width=8,X.top=0,X.bottom=0,A?X.right=0:X.left=0,ae.width="100%",ae.height=u,ae.top=q),ur.createElement("div",{ref:M,className:(0,T1.default)(Y,_(_(_({},"".concat(Y,"-horizontal"),c),"".concat(Y,"-vertical"),!c),"".concat(Y,"-visible"),I)),style:T(T({},X),p),onMouseDown:L,onMouseMove:U},ur.createElement("div",{ref:F,className:(0,T1.default)("".concat(Y,"-thumb"),_({},"".concat(Y,"-thumb-moving"),m)),style:T(T({},ae),g),onMouseDown:z}))}),N1=f9;var d9=20;function I1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=e/t*e;return isNaN(r)&&(r=0),r=Math.max(r,d9),Math.floor(r)}var p9=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],m9=[],g9={overflowY:"auto",overflowAnchor:"none"};function h9(e,t){var r=e.prefixCls,n=r===void 0?"rc-virtual-list":r,o=e.className,i=e.height,a=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,c=e.style,u=e.data,f=e.children,p=e.itemKey,g=e.virtual,h=e.direction,v=e.scrollWidth,y=e.component,m=y===void 0?"div":y,d=e.onScroll,x=e.onVirtualScroll,b=e.onVisibleChange,S=e.innerProps,w=e.extraRender,C=e.styles,R=e.showScrollBar,P=R===void 0?"optional":R,O=Ve(e,p9),A=kr.useCallback(function(Te){return typeof p=="function"?p(Te):Te?.[p]},[p]),M=R1(A,null,null),F=V(M,4),H=F[0],j=F[1],I=F[2],N=F[3],$=!!(g!==!1&&i&&a),U=kr.useMemo(function(){return Object.values(I.maps).reduce(function(Te,Ue){return Te+Ue},0)},[I.id,I.maps]),W=$&&u&&(Math.max(a*u.length,U)>i||!!v),B=h==="rtl",q=(0,VA.default)(n,_({},"".concat(n,"-rtl"),B),o),L=u||m9,k=(0,lo.useRef)(),z=(0,lo.useRef)(),G=(0,lo.useRef)(),J=(0,lo.useState)(0),Y=V(J,2),X=Y[0],ae=Y[1],Z=(0,lo.useState)(0),K=V(Z,2),Q=K[0],re=K[1],ee=(0,lo.useState)(!1),ne=V(ee,2),de=ne[0],le=ne[1],pe=function(){le(!0)},Oe=function(){le(!1)},Ce={getKey:A};function $e(Te){ae(function(Ue){var Ae;typeof Te=="function"?Ae=Te(Ue):Ae=Te;var ve=we(Ae);return k.current.scrollTop=ve,ve})}var ce=(0,lo.useRef)({start:0,end:L.length}),ie=(0,lo.useRef)(),Re=C1(L,A),Le=V(Re,1),Ge=Le[0];ie.current=Ge;var Me=kr.useMemo(function(){if(!$)return{scrollHeight:void 0,start:0,end:L.length-1,offset:void 0};if(!W){var Te;return{scrollHeight:((Te=z.current)===null||Te===void 0?void 0:Te.offsetHeight)||0,start:0,end:L.length-1,offset:void 0}}for(var Ue=0,Ae,ve,nt,It=L.length,Dt=0;Dt=X&&Ae===void 0&&(Ae=Dt,ve=Ue),Pr>X+i&&nt===void 0&&(nt=Dt),Ue=Pr}return Ae===void 0&&(Ae=0,ve=0,nt=Math.ceil(i/a)),nt===void 0&&(nt=L.length-1),nt=Math.min(nt+1,L.length-1),{scrollHeight:Ue,start:Ae,end:nt,offset:ve}},[W,$,X,L,N,i]),Ie=Me.scrollHeight,je=Me.start,We=Me.end,He=Me.offset;ce.current.start=je,ce.current.end=We,kr.useLayoutEffect(function(){var Te=I.getRecord();if(Te.size===1){var Ue=Array.from(Te)[0],Ae=L[je];if(Ae){var ve=A(Ae);if(ve===Ue){var nt=I.get(Ue),It=nt-a;$e(function(Dt){return Dt+It})}}}I.resetRecord()},[Ie]);var ye=kr.useState({width:0,height:i}),se=V(ye,2),xe=se[0],_e=se[1],he=function(Ue){_e({width:Ue.offsetWidth,height:Ue.offsetHeight})},Ze=(0,lo.useRef)(),lt=(0,lo.useRef)(),Et=kr.useMemo(function(){return I1(xe.width,v)},[xe.width,v]),Tt=kr.useMemo(function(){return I1(xe.height,Ie)},[xe.height,Ie]),pt=Ie-i,ke=(0,lo.useRef)(pt);ke.current=pt;function we(Te){var Ue=Te;return Number.isNaN(ke.current)||(Ue=Math.min(Ue,ke.current)),Ue=Math.max(Ue,0),Ue}var et=X<=0,Pe=X>=pt,De=Q<=0,Ee=Q>=v,be=yy(et,Pe,De,Ee),ht=function(){return{x:B?-Q:Q,y:X}},Mt=(0,lo.useRef)(ht()),Fe=wt(function(Te){if(x){var Ue=T(T({},ht()),Te);(Mt.current.x!==Ue.x||Mt.current.y!==Ue.y)&&(x(Ue),Mt.current=Ue)}});function Se(Te,Ue){var Ae=Te;Ue?((0,D1.flushSync)(function(){re(Ae)}),Fe()):$e(Ae)}function Ke(Te){var Ue=Te.currentTarget.scrollTop;Ue!==X&&$e(Ue),d?.(Te),Fe()}var Be=function(Ue){var Ae=Ue,ve=v?v-xe.width:0;return Ae=Math.max(Ae,0),Ae=Math.min(Ae,ve),Ae},ze=wt(function(Te,Ue){Ue?((0,D1.flushSync)(function(){re(function(Ae){var ve=Ae+(B?-Te:Te);return Be(ve)})}),Fe()):$e(function(Ae){var ve=Ae+Te;return ve})}),tt=E1($,et,Pe,De,Ee,!!v,ze),At=V(tt,2),Nt=At[0],tr=At[1];O1($,k,function(Te,Ue,Ae,ve){var nt=ve;return be(Te,Ue,Ae)?!1:!nt||!nt._virtualHandled?(nt&&(nt._virtualHandled=!0),Nt({preventDefault:function(){},deltaX:Te?Ue:0,deltaY:Te?0:Ue}),!0):!1}),_1(W,k,function(Te){$e(function(Ue){return Ue+Te})}),vt(function(){function Te(Ae){var ve=et&&Ae.detail<0,nt=Pe&&Ae.detail>0;$&&!ve&&!nt&&Ae.preventDefault()}var Ue=k.current;return Ue.addEventListener("wheel",Nt,{passive:!1}),Ue.addEventListener("DOMMouseScroll",tr,{passive:!0}),Ue.addEventListener("MozMousePixelScroll",Te,{passive:!1}),function(){Ue.removeEventListener("wheel",Nt),Ue.removeEventListener("DOMMouseScroll",tr),Ue.removeEventListener("MozMousePixelScroll",Te)}},[$,et,Pe]),vt(function(){if(v){var Te=Be(Q);re(Te),Fe({x:Te})}},[xe.width,v]);var Ft=function(){var Ue,Ae;(Ue=Ze.current)===null||Ue===void 0||Ue.delayHidden(),(Ae=lt.current)===null||Ae===void 0||Ae.delayHidden()},rr=P1(k,L,I,a,A,function(){return j(!0)},$e,Ft);kr.useImperativeHandle(t,function(){return{nativeElement:G.current,getScrollInfo:ht,scrollTo:function(Ue){function Ae(ve){return ve&&ue(ve)==="object"&&("left"in ve||"top"in ve)}Ae(Ue)?(Ue.left!==void 0&&re(Be(Ue.left)),rr(Ue.top)):rr(Ue)}}}),vt(function(){if(b){var Te=L.slice(je,We+1);b(Te,L)}},[je,We,L]);var pr=MA(L,A,I,a),mr=w?.({start:je,end:We,virtual:W,offsetX:Q,offsetY:He,rtl:B,getSize:pr}),An=S1(L,je,We,v,Q,H,f,Ce),gr=null;i&&(gr=T(_({},l?"height":"maxHeight",i),g9),$&&(gr.overflowY="hidden",v&&(gr.overflowX="hidden"),de&&(gr.pointerEvents="none")));var Lt={};return B&&(Lt.dir="rtl"),kr.createElement("div",fe({ref:G,style:T(T({},c),{},{position:"relative"}),className:q},Lt,O),kr.createElement(ro,{onResize:he},kr.createElement(m,{className:"".concat(n,"-holder"),style:gr,ref:k,onScroll:Ke,onMouseEnter:Ft},kr.createElement(IA,{prefixCls:n,height:Ie,offsetX:Q,offsetY:He,scrollWidth:v,onInnerResize:j,ref:z,innerProps:S,rtl:B,extra:mr},An))),W&&Ie>i&&kr.createElement(N1,{ref:Ze,prefixCls:n,scrollOffset:X,scrollRange:Ie,rtl:B,onScroll:Se,onStartMove:pe,onStopMove:Oe,spinSize:Tt,containerSize:xe.height,style:C?.verticalScrollBar,thumbStyle:C?.verticalScrollBarThumb,showScrollBar:P}),W&&v>xe.width&&kr.createElement(N1,{ref:lt,prefixCls:n,scrollOffset:Q,scrollRange:v,rtl:B,onScroll:Se,onStartMove:pe,onStopMove:Oe,spinSize:Et,containerSize:xe.width,horizontal:!0,style:C?.horizontalScrollBar,thumbStyle:C?.horizontalScrollBarThumb,showScrollBar:P}))}var HA=kr.forwardRef(h9);HA.displayName="List";var UA=HA;var qA=UA;var Ut=E(D()),k1=E(D());function GA(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var v9=["disabled","title","children","style","className"];function KA(e){return typeof e=="string"||typeof e=="number"}var y9=function(t,r){var n=ay(),o=n.prefixCls,i=n.id,a=n.open,s=n.multiple,l=n.mode,c=n.searchValue,u=n.toggleOpen,f=n.notFoundContent,p=n.onPopupScroll,g=Ut.useContext(Pu),h=g.maxCount,v=g.flattenOptions,y=g.onActiveValue,m=g.defaultActiveFirstOption,d=g.onSelect,x=g.menuItemSelectedIcon,b=g.rawValues,S=g.fieldNames,w=g.virtual,C=g.direction,R=g.listHeight,P=g.listItemHeight,O=g.optionRender,A="".concat(o,"-item"),M=Hi(function(){return v},[a,v],function(Z,K){return K[0]&&Z[1]!==K[1]}),F=Ut.useRef(null),H=Ut.useMemo(function(){return s&&Jd(h)&&b?.size>=h},[s,h,b?.size]),j=function(K){K.preventDefault()},I=function(K){var Q;(Q=F.current)===null||Q===void 0||Q.scrollTo(typeof K=="number"?{index:K}:K)},N=Ut.useCallback(function(Z){return l==="combobox"?!1:b.has(Z)},[l,te(b).toString(),b.size]),$=function(K){for(var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,re=M.length,ee=0;ee1&&arguments[1]!==void 0?arguments[1]:!1;q(K);var re={source:Q?"keyboard":"mouse"},ee=M[K];if(!ee){y(null,-1,re);return}y(ee.value,K,re)};(0,k1.useEffect)(function(){L(m!==!1?$(0):-1)},[M.length,c]);var k=Ut.useCallback(function(Z){return l==="combobox"?String(Z).toLowerCase()===c.toLowerCase():b.has(Z)},[l,c,te(b).toString(),b.size]);(0,k1.useEffect)(function(){var Z=setTimeout(function(){if(!s&&a&&b.size===1){var Q=Array.from(b)[0],re=M.findIndex(function(ee){var ne=ee.data;return c?String(ne.value).startsWith(c):ne.value===Q});re!==-1&&(L(re),I(re))}});if(a){var K;(K=F.current)===null||K===void 0||K.scrollTo(void 0)}return function(){return clearTimeout(Z)}},[a,c]);var z=function(K){K!==void 0&&d(K,{selected:!b.has(K)}),s||u(!1)};if(Ut.useImperativeHandle(r,function(){return{onKeyDown:function(K){var Q=K.which,re=K.ctrlKey;switch(Q){case Qe.N:case Qe.P:case Qe.UP:case Qe.DOWN:{var ee=0;if(Q===Qe.UP?ee=-1:Q===Qe.DOWN?ee=1:GA()&&re&&(Q===Qe.N?ee=1:Q===Qe.P&&(ee=-1)),ee!==0){var ne=$(B+ee,ee);I(ne),L(ne,!0)}break}case Qe.TAB:case Qe.ENTER:{var de,le=M[B];le&&!(le!=null&&(de=le.data)!==null&&de!==void 0&&de.disabled)&&!H?z(le.value):z(void 0),a&&K.preventDefault();break}case Qe.ESC:u(!1),a&&K.stopPropagation()}},onKeyUp:function(){},scrollTo:function(K){I(K)}}}),M.length===0)return Ut.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(A,"-empty"),onMouseDown:j},f);var G=Object.keys(S).map(function(Z){return S[Z]}),J=function(K){return K.label};function Y(Z,K){var Q=Z.group;return{role:Q?"presentation":"option",id:"".concat(i,"_list_").concat(K)}}var X=function(K){var Q=M[K];if(!Q)return null;var re=Q.data||{},ee=re.value,ne=Q.group,de=qo(re,!0),le=J(Q);return Q?Ut.createElement("div",fe({"aria-label":typeof le=="string"&&!ne?le:null},de,{key:K},Y(Q,K),{"aria-selected":k(ee)}),ee):null},ae={role:"listbox",id:"".concat(i,"_list")};return Ut.createElement(Ut.Fragment,null,w&&Ut.createElement("div",fe({},ae,{style:{height:0,width:0,overflow:"hidden"}}),X(B-1),X(B),X(B+1)),Ut.createElement(qA,{itemKey:"key",ref:F,data:M,height:R,itemHeight:P,fullHeight:!1,onMouseDown:j,onScroll:p,virtual:w,direction:C,innerProps:w?null:ae},function(Z,K){var Q=Z.group,re=Z.groupOption,ee=Z.data,ne=Z.label,de=Z.value,le=ee.key;if(Q){var pe,Oe=(pe=ee.title)!==null&&pe!==void 0?pe:KA(ne)?ne.toString():void 0;return Ut.createElement("div",{className:(0,$1.default)(A,"".concat(A,"-group"),ee.className),title:Oe},ne!==void 0?ne:le)}var Ce=ee.disabled,$e=ee.title,ce=ee.children,ie=ee.style,Re=ee.className,Le=Ve(ee,v9),Ge=Kr(Le,G),Me=N(de),Ie=Ce||!Me&&H,je="".concat(A,"-option"),We=(0,$1.default)(A,je,Re,_(_(_(_({},"".concat(je,"-grouped"),re),"".concat(je,"-active"),B===K&&!Ie),"".concat(je,"-disabled"),Ie),"".concat(je,"-selected"),Me)),He=J(Z),ye=!x||typeof x=="function"||Me,se=typeof He=="number"?He:He||de,xe=KA(se)?se.toString():void 0;return $e!==void 0&&(xe=$e),Ut.createElement("div",fe({},qo(Ge),w?{}:Y(Z,K),{"aria-selected":k(de),className:We,title:xe,onMouseMove:function(){B===K||Ie||L(K)},onClick:function(){Ie||z(de)},style:ie}),Ut.createElement("div",{className:"".concat(je,"-content")},typeof O=="function"?O(Z,{index:K}):se),Ut.isValidElement(x)||Me,ye&&Ut.createElement(Bs,{className:"".concat(A,"-option-state"),customizeIcon:x,customizeIconProps:{value:de,disabled:Ie,isSelected:Me}},Me?"\u2713":null))}))},x9=Ut.forwardRef(y9),XA=x9;var Du=E(D()),YA=function(e,t){var r=Du.useRef({values:new Map,options:new Map}),n=Du.useMemo(function(){var i=r.current,a=i.values,s=i.options,l=e.map(function(f){if(f.label===void 0){var p;return T(T({},f),{},{label:(p=a.get(f.value))===null||p===void 0?void 0:p.label})}return f}),c=new Map,u=new Map;return l.forEach(function(f){c.set(f.value,f),u.set(f.value,t.get(f.value)||s.get(f.value))}),r.current.values=c,r.current.options=u,l},[e,t]),o=Du.useCallback(function(i){return t.get(i)||r.current.options.get(i)},[t]);return[n,o]};var QA=E(D());function A1(e,t){return Kd(e).join("").toUpperCase().includes(t)}var JA=function(e,t,r,n,o){return QA.useMemo(function(){if(!r||n===!1)return e;var i=t.options,a=t.label,s=t.value,l=[],c=typeof n=="function",u=r.toUpperCase(),f=c?n:function(g,h){return o?A1(h[o],u):h[i]?A1(h[a!=="children"?a:"label"],u):A1(h[s],u)},p=c?function(g){return Zd(g)}:function(g){return g};return e.forEach(function(g){if(g[i]){var h=f(r,p(g));if(h)l.push(g);else{var v=g[i].filter(function(y){return f(r,p(y))});v.length&&l.push(T(T({},g),{},_({},i,v)))}return}f(r,p(g))&&l.push(g)}),l},[e,n,o,r,t])};var Sy=E(D());var ZA=0,b9=Yt();function S9(){var e;return b9?(e=ZA,ZA+=1):e="TEST_OR_SSR",e}function M1(e){var t=Sy.useState(),r=V(t,2),n=r[0],o=r[1];return Sy.useEffect(function(){o("rc_select_".concat(S9()))},[]),e||n}var tM=E(D());var eM=E(D());var C9=["children","value"],w9=["children"];function E9(e){var t=e,r=t.key,n=t.props,o=n.children,i=n.value,a=Ve(n,C9);return T({key:r,value:i!==void 0?i:r,children:o},a)}function Cy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return yi(e).map(function(r,n){if(!eM.isValidElement(r)||!r.type)return null;var o=r,i=o.type.isSelectOptGroup,a=o.key,s=o.props,l=s.children,c=Ve(s,w9);return t||!i?E9(r):T(T({key:"__RC_SELECT_GRP__".concat(a===null?n:a,"__"),label:a},c),{},{options:Cy(l)})}).filter(function(r){return r})}var R9=function(t,r,n,o,i){return tM.useMemo(function(){var a=t,s=!t;s&&(a=Cy(r));var l=new Map,c=new Map,u=function(g,h,v){v&&typeof v=="string"&&g.set(h[v],h)},f=function p(g){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=0;v0?Fe(Be.options):Be.options}):Be})},ye=fr.useMemo(function(){return d?He(We):We},[We,d,ae]),se=fr.useMemo(function(){return wA(ye,{fieldNames:J,childrenAsData:z})},[ye,J,z]),xe=function(Se){var Ke=ne(Se);if(Oe(Ke),W&&(Ke.length!==ie.length||Ke.some(function(tt,At){var Nt;return((Nt=ie[At])===null||Nt===void 0?void 0:Nt.value)!==tt?.value}))){var Be=U?Ke:Ke.map(function(tt){return tt.value}),ze=Ke.map(function(tt){return Zd(Re(tt.value))});W(k?Be:Be[0],k?ze:ze[0])}},_e=fr.useState(null),he=V(_e,2),Ze=he[0],lt=he[1],Et=fr.useState(0),Tt=V(Et,2),pt=Tt[0],ke=Tt[1],we=R!==void 0?R:n!=="combobox",et=fr.useCallback(function(Fe,Se){var Ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Be=Ke.source,ze=Be===void 0?"keyboard":Be;ke(Se),a&&n==="combobox"&&Fe!==null&&ze==="keyboard"&<(String(Fe))},[a,n]),Pe=function(Se,Ke,Be){var ze=function(){var gr,Lt=Re(Se);return[U?{label:Lt?.[J.label],value:Se,key:(gr=Lt?.key)!==null&&gr!==void 0?gr:Se}:Se,Zd(Lt)]};if(Ke&&g){var tt=ze(),At=V(tt,2),Nt=At[0],tr=At[1];g(Nt,tr)}else if(!Ke&&h&&Be!=="clear"){var Ft=ze(),rr=V(Ft,2),pr=rr[0],mr=rr[1];h(pr,mr)}},De=Ey(function(Fe,Se){var Ke,Be=k?Se.selected:!0;Be?Ke=k?[].concat(te(ie),[Fe]):[Fe]:Ke=ie.filter(function(ze){return ze.value!==Fe}),xe(Ke),Pe(Fe,Be),n==="combobox"?lt(""):(!ep||p)&&(Z(""),lt(""))}),Ee=function(Se,Ke){xe(Se);var Be=Ke.type,ze=Ke.values;(Be==="remove"||Be==="clear")&&ze.forEach(function(tt){Pe(tt.value,!1,Be)})},be=function(Se,Ke){if(Z(Se),lt(null),Ke.source==="submit"){var Be=(Se||"").trim();if(Be){var ze=Array.from(new Set([].concat(te(Ge),[Be])));xe(ze),Pe(Be,!0),Z("")}return}Ke.source!=="blur"&&(n==="combobox"&&xe(Se),u?.(Se))},ht=function(Se){var Ke=Se;n!=="tags"&&(Ke=Se.map(function(ze){var tt=re.get(ze);return tt?.value}).filter(function(ze){return ze!==void 0}));var Be=Array.from(new Set([].concat(te(Ge),te(Ke))));xe(Be),Be.forEach(function(ze){Pe(ze,!0)})},Mt=fr.useMemo(function(){var Fe=O!==!1&&y!==!1;return T(T({},K),{},{flattenOptions:se,onActiveValue:et,defaultActiveFirstOption:we,onSelect:De,menuItemSelectedIcon:P,rawValues:Ge,fieldNames:J,virtual:Fe,direction:A,listHeight:F,listItemHeight:j,childrenAsData:z,maxCount:B,optionRender:w})},[B,K,se,et,we,De,P,Ge,J,O,y,A,F,j,z,w]);return fr.createElement(Pu.Provider,{value:Mt},fr.createElement(b1,fe({},q,{id:L,prefixCls:i,ref:t,omitDomProps:P9,mode:n,displayValues:Le,onDisplayValuesChange:Ee,direction:A,searchValue:ae,onSearch:be,autoClearSearchValue:p,onSearchSplit:ht,dropdownMatchSelectWidth:y,OptionList:XA,emptyOptions:!se.length,activeValue:Ze,activeDescendantId:"".concat(L,"_list_").concat(pt)})))}),F1=N9;F1.Option=rp;F1.OptGroup=tp;var nM=F1;var oM=nM;var iM=E(Ne());function Yi(e,t,r){return(0,iM.default)({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:r})}var Qi=(e,t)=>t||e;var ku=E(D());var qs=E(D()),op=E(Ne());var co=E(D());var I9=()=>{let[,e]=xr(),[t]=Ca("Empty"),n=new gt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return co.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},co.createElement("title",null,t?.description||"Empty"),co.createElement("g",{fill:"none",fillRule:"evenodd"},co.createElement("g",{transform:"translate(24 31.67)"},co.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),co.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"}),co.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)"}),co.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"}),co.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"})),co.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"}),co.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},co.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),co.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},aM=I9;var Us=E(D()),sM=E(D());var D9=()=>{let[,e]=xr(),[t]=Ca("Empty"),{colorFill:r,colorFillTertiary:n,colorFillQuaternary:o,colorBgContainer:i}=e,{borderColor:a,shadowColor:s,contentColor:l}=(0,sM.useMemo)(()=>({borderColor:new gt(r).onBackground(i).toHexString(),shadowColor:new gt(n).onBackground(i).toHexString(),contentColor:new gt(o).onBackground(i).toHexString()}),[r,n,o,i]);return Us.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},Us.createElement("title",null,t?.description||"Empty"),Us.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},Us.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),Us.createElement("g",{fillRule:"nonzero",stroke:a},Us.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"}),Us.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}))))},lM=D9;var $9=e=>{let{componentCls:t,margin:r,marginXS:n,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:n,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:n,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:r},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:n,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},cM=Gt("Empty",e=>{let{componentCls:t,controlHeightLG:r,calc:n}=e,o=ut(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n(r).mul(2.5).equal(),emptyImgHeightMD:r,emptyImgHeightSM:n(r).mul(.875).equal()});return[$9(o)]});var k9=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let{className:t,rootClassName:r,prefixCls:n,image:o=uM,description:i,children:a,imageStyle:s,style:l,classNames:c,styles:u}=e,f=k9(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:p,direction:g,className:h,style:v,classNames:y,styles:m}=no("empty"),d=p("empty",n),[x,b,S]=cM(d),[w]=Ca("Empty"),C=typeof i<"u"?i:w?.description,R=typeof C=="string"?C:"empty",P=null;return typeof o=="string"?P=qs.createElement("img",{alt:R,src:o}):P=o,x(qs.createElement("div",Object.assign({className:(0,op.default)(b,S,d,h,{[`${d}-normal`]:o===fM,[`${d}-rtl`]:g==="rtl"},t,r,y.root,c?.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},m.root),v),u?.root),l)},f),qs.createElement("div",{className:(0,op.default)(`${d}-image`,y.image,c?.image),style:Object.assign(Object.assign(Object.assign({},s),m.image),u?.image)},P),C&&qs.createElement("div",{className:(0,op.default)(`${d}-description`,y.description,c?.description),style:Object.assign(Object.assign({},m.description),u?.description)},C),a&&qs.createElement("div",{className:(0,op.default)(`${d}-footer`,y.footer,c?.footer),style:Object.assign(Object.assign({},m.footer),u?.footer)},a)))};L1.PRESENTED_IMAGE_DEFAULT=uM;L1.PRESENTED_IMAGE_SIMPLE=fM;var $u=L1;var A9=e=>{let{componentName:t}=e,{getPrefixCls:r}=(0,ku.useContext)(rt),n=r("empty");switch(t){case"Table":case"List":return ku.default.createElement($u,{image:$u.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ku.default.createElement($u,{image:$u.PRESENTED_IMAGE_SIMPLE,className:`${n}-small`});case"Table.filter":return null;default:return ku.default.createElement($u,null)}},dM=A9;var z1=E(D());var M9=(e,t,r=void 0)=>{var n,o;let{variant:i,[e]:a}=z1.useContext(rt),s=z1.useContext(Ik),l=a?.variant,c;typeof t<"u"?c=t:r===!1?c="borderless":c=(o=(n=s??l)!==null&&n!==void 0?n:i)!==null&&o!==void 0?o:"outlined";let u=kC.includes(c);return[c,u]},Gs=M9;var F9=e=>{let r={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},r),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},r),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},r),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},r),{points:["br","tr"],offset:[0,-4]})}};function L9(e,t){return e||F9(t)}var pM=L9;var mM=e=>{let{optionHeight:t,optionFontSize:r,optionLineHeight:n,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:r,lineHeight:n,boxSizing:"border-box"}},z9=e=>{let{antCls:t,componentCls:r}=e,n=`${r}-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`,s=`${r}-dropdown-placement-`,l=`${n}-option-selected`;return[{[`${r}-dropdown`]:Object.assign(Object.assign({},sr(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}${s}bottomLeft, ${i}${s}bottomLeft `]:{animationName:Nv},[` ${o}${s}topLeft, ${i}${s}topLeft, ${o}${s}topRight, ${i}${s}topRight `]:{animationName:Dv},[`${a}${s}bottomLeft`]:{animationName:Iv},[` ${a}${s}topLeft, ${a}${s}topRight `]:{animationName:$v},"&-hidden":{display:"none"},[n]:Object.assign(Object.assign({},mM(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"},Oa),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${n}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${n}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${n}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${n}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},mM(e)),{color:e.colorTextDisabled})}),[`${l}:has(+ ${l})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},kv(e,"slide-up"),kv(e,"slide-down"),Tv(e,"move-up"),Tv(e,"move-down")]},gM=z9;var W9=e=>{let{multipleSelectItemHeight:t,paddingXXS:r,lineWidth:n,INTERNAL_FIXED_ITEM_MARGIN:o}=e,i=e.max(e.calc(r).sub(n).equal(),0),a=e.max(e.calc(i).sub(o).equal(),0);return{basePadding:i,containerPadding:a,itemHeight:oe(t),itemLineHeight:oe(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},B9=e=>{let{multipleSelectItemHeight:t,selectHeight:r,lineWidth:n}=e;return e.calc(r).sub(t).div(2).sub(n).equal()},j9=e=>{let{componentCls:t,iconCls:r,borderRadiusSM:n,motionDurationSlow:o,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:s,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=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:u,borderRadius:n,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:s,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({},_a()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},V9=(e,t)=>{let{componentCls:r,INTERNAL_FIXED_ITEM_MARGIN:n}=e,o=`${r}-selection-overflow`,i=e.multipleSelectItemHeight,a=B9(e),s=t?`${r}-${t}`:"",l=W9(e);return{[`${r}-multiple${s}`]:Object.assign(Object.assign({},j9(e)),{[`${r}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,[`${r}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${oe(n)} 0`,lineHeight:oe(i),visibility:"hidden",content:'"\\a0"'}},[`${r}-selection-item`]:{height:l.itemHeight,lineHeight:oe(l.itemLineHeight)},[`${r}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:oe(i),marginBlock:n}},[`${r}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal()},[`${o}-item + ${o}-item, ${r}-prefix + ${r}-selection-wrap `]:{[`${r}-selection-search`]:{marginInlineStart:0},[`${r}-selection-placeholder`]:{insetInlineStart:0}},[`${o}-item-suffix`]:{minHeight:l.itemHeight,marginBlock:n},[`${r}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:oe(i),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"}},[`${r}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function W1(e,t){let{componentCls:r}=e,n=t?`${r}-${t}`:"",o={[`${r}-multiple${n}`]:{fontSize:e.fontSize,[`${r}-selector`]:{[`${r}-show-search&`]:{cursor:"text"}},[` &${r}-show-arrow ${r}-selector, &${r}-allow-clear ${r}-selector `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[V9(e,t),o]}var H9=e=>{let{componentCls:t}=e,r=ut(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),n=ut(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[W1(e),W1(r,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},W1(n,"lg")]},hM=H9;function B1(e,t){let{componentCls:r,inputPaddingHorizontalBase:n,borderRadius:o}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?`${r}-${t}`:"";return{[`${r}-single${a}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${r}-selector`]:Object.assign(Object.assign({},sr(e,!0)),{display:"flex",borderRadius:o,flex:"1 1 auto",[`${r}-selection-wrap:after`]:{lineHeight:oe(i)},[`${r}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[` ${r}-selection-item, ${r}-selection-placeholder `]:{display:"block",padding:0,lineHeight:oe(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${r}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${r}-selection-item:empty:after`,`${r}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${r}-show-arrow ${r}-selection-item, &${r}-show-arrow ${r}-selection-search, &${r}-show-arrow ${r}-selection-placeholder `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${r}-open ${r}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${r}-customize-input)`]:{[`${r}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${oe(n)}`,[`${r}-selection-search-input`]:{height:i,fontSize:e.fontSize},"&:after":{lineHeight:oe(i)}}},[`&${r}-customize-input`]:{[`${r}-selector`]:{"&:after":{display:"none"},[`${r}-selection-search`]:{position:"static",width:"100%"},[`${r}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${oe(n)}`,"&:after":{display:"none"}}}}}}}function j1(e){let{componentCls:t}=e,r=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[B1(e),B1(ut(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${oe(r)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(r).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()}}}},B1(ut(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}var vM=e=>{let{fontSize:t,lineHeight:r,lineWidth:n,controlHeight:o,controlHeightSM:i,controlHeightLG:a,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:f,controlItemBgActive:p,controlItemBgHover:g,colorBgContainer:h,colorFillSecondary:v,colorBgContainerDisabled:y,colorTextDisabled:m,colorPrimaryHover:d,colorPrimary:x,controlOutline:b}=e,S=s*2,w=n*2,C=Math.min(o-S,o-w),R=Math.min(i-S,i-w),P=Math.min(a-S,a-w);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:f,optionSelectedBg:p,optionActiveBg:g,optionPadding:`${(o-t*r)/2}px ${l}px`,optionFontSize:t,optionLineHeight:r,optionHeight:o,selectorBg:h,clearBg:h,singleItemHeightLG:a,multipleItemBg:v,multipleItemBorderColor:"transparent",multipleItemHeight:C,multipleItemHeightSM:R,multipleItemHeightLG:P,multipleSelectorBgDisabled:y,multipleItemColorDisabled:m,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:d,activeBorderColor:x,activeOutlineColor:b,selectAffixPadding:s}};var SM=(e,t)=>{let{componentCls:r,antCls:n,controlOutlineWidth:o}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{border:`${oe(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${r}-disabled):not(${r}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{borderColor:t.hoverBorderHover},[`${r}-focused& ${r}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${oe(o)} ${t.activeOutlineColor}`,outline:0},[`${r}-prefix`]:{color:t.color}}}},yM=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},SM(e,t))}),U9=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},SM(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),yM(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),yM(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${oe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),CM=(e,t)=>{let{componentCls:r,antCls:n}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{background:t.bg,border:`${oe(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${r}-disabled):not(${r}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{background:t.hoverBg},[`${r}-focused& ${r}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},xM=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},CM(e,t))}),q9=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},CM(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),xM(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),xM(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}`}})}),G9=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${oe(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${oe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),wM=(e,t)=>{let{componentCls:r,antCls:n}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{borderWidth:`0 0 ${oe(e.lineWidth)} 0`,borderStyle:`none none ${e.lineType} none`,borderColor:t.borderColor,background:e.selectorBg,borderRadius:0},[`&:not(${r}-disabled):not(${r}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{borderColor:t.hoverBorderHover},[`${r}-focused& ${r}-selector`]:{borderColor:t.activeBorderColor,outline:0},[`${r}-prefix`]:{color:t.color}}}},bM=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},wM(e,t))}),K9=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},wM(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),bM(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),bM(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${oe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),X9=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},U9(e)),q9(e)),G9(e)),K9(e))}),EM=X9;var Y9=e=>{let{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"}}}},Q9=e=>{let{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},J9=e=>{let{antCls:t,componentCls:r,inputPaddingHorizontalBase:n,iconCls:o}=e,i={[`${r}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[r]:Object.assign(Object.assign({},sr(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${r}-customize-input) ${r}-selector`]:Object.assign(Object.assign({},Y9(e)),Q9(e)),[`${r}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Oa),{[`> ${t}-typography`]:{display:"inline"}}),[`${r}-selection-placeholder`]:Object.assign(Object.assign({},Oa),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${r}-arrow`]:Object.assign(Object.assign({},_a()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,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(${r}-suffix)`]:{pointerEvents:"auto"}},[`${r}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${r}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${r}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${r}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":i,"&:hover":i}),[`${r}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${r}-has-feedback`]:{[`${r}-clear`]:{insetInlineEnd:e.calc(n).add(e.fontSize).add(e.paddingXS).equal()}}}}}},Z9=e=>{let{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},J9(e),j1(e),hM(e),gM(e),{[`${t}-rtl`]:{direction:"rtl"}},Ms(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},RM=Gt("Select",(e,{rootPrefixCls:t})=>{let r=ut(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Z9(r),EM(r)]},vM,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var Ji=E(D());var Ry=E(D());var e7={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"},OM=e7;var t7=function(t,r){return Ry.createElement(zt,fe({},t,{ref:r,icon:OM}))},r7=Ry.forwardRef(t7),Oy=r7;var _y=E(D());var n7={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"},_M=n7;var o7=function(t,r){return _y.createElement(zt,fe({},t,{ref:r,icon:_M}))},i7=_y.forwardRef(o7),Py=i7;var Ty=E(D());var a7={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"},PM=a7;var s7=function(t,r){return Ty.createElement(zt,fe({},t,{ref:r,icon:PM}))},l7=Ty.forwardRef(s7),Ny=l7;function V1({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:r,removeIcon:n,loading:o,multiple:i,hasFeedback:a,prefixCls:s,showSuffixIcon:l,feedbackIcon:c,showArrow:u,componentName:f}){let p=t??Ji.createElement(gu,null),g=m=>e===null&&!a&&!u?null:Ji.createElement(Ji.Fragment,null,l!==!1&&m,a&&c),h=null;if(e!==void 0)h=g(e);else if(o)h=g(Ji.createElement(Al,{spin:!0}));else{let m=`${s}-suffix`;h=({open:d,showSearch:x})=>g(d&&x?Ji.createElement(Ny,{className:m}):Ji.createElement(Py,{className:m}))}let v=null;r!==void 0?v=r:i?v=Ji.createElement(Oy,null):v=null;let y=null;return n!==void 0?y=n:y=Ji.createElement(gv,null),{clearIcon:p,suffixIcon:h,itemIcon:v,removeIcon:y}}function H1(e,t){return t!==void 0?t:e!==null}var c7=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var r,n,o,i,a;let{prefixCls:s,bordered:l,className:c,rootClassName:u,getPopupContainer:f,popupClassName:p,dropdownClassName:g,listHeight:h=256,placement:v,listItemHeight:y,size:m,disabled:d,notFoundContent:x,status:b,builtinPlacements:S,dropdownMatchSelectWidth:w,popupMatchSelectWidth:C,direction:R,style:P,allowClear:O,variant:A,dropdownStyle:M,transitionName:F,tagRender:H,maxCount:j,prefix:I,dropdownRender:N,popupRender:$,onDropdownVisibleChange:U,onOpenChange:W,styles:B,classNames:q}=e,L=c7(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","styles","classNames"]),{getPopupContainer:k,getPrefixCls:z,renderEmpty:G,direction:J,virtual:Y,popupMatchSelectWidth:X,popupOverflow:ae}=ni.useContext(rt),{showSearch:Z,style:K,styles:Q,className:re,classNames:ee}=no("select"),[,ne]=xr(),de=y??ne?.controlHeight,le=z("select",s),pe=z(),Oe=R??J,{compactSize:Ce,compactItemClassnames:$e}=Xo(le,Oe),[ce,ie]=Gs("select",A,l),Re=Ko(le),[Le,Ge,Me]=RM(le,Re),Ie=ni.useMemo(()=>{let{mode:Be}=e;if(Be!=="combobox")return Be===TM?"combobox":Be},[e.mode]),je=Ie==="multiple"||Ie==="tags",We=H1(e.suffixIcon,e.showArrow),He=(r=C??w)!==null&&r!==void 0?r:X,ye=((n=B?.popup)===null||n===void 0?void 0:n.root)||((o=Q.popup)===null||o===void 0?void 0:o.root)||M,se=$||N,xe=W||U,{status:_e,hasFeedback:he,isFormItemInput:Ze,feedbackIcon:lt}=ni.useContext(dn),Et=Qi(_e,b),Tt;x!==void 0?Tt=x:Ie==="combobox"?Tt=null:Tt=G?.("Select")||ni.createElement(dM,{componentName:"Select"});let{suffixIcon:pt,itemIcon:ke,removeIcon:we,clearIcon:et}=V1(Object.assign(Object.assign({},L),{multiple:je,hasFeedback:he,feedbackIcon:lt,showSuffixIcon:We,prefixCls:le,componentName:"Select"})),Pe=O===!0?{clearIcon:et}:O,De=Kr(L,["suffixIcon","itemIcon"]),Ee=(0,U1.default)(((i=q?.popup)===null||i===void 0?void 0:i.root)||((a=ee?.popup)===null||a===void 0?void 0:a.root)||p||g,{[`${le}-dropdown-${Oe}`]:Oe==="rtl"},u,ee.root,q?.root,Me,Re,Ge),be=ao(Be=>{var ze;return(ze=m??Ce)!==null&&ze!==void 0?ze:Be}),ht=ni.useContext(qr),Mt=d??ht,Fe=(0,U1.default)({[`${le}-lg`]:be==="large",[`${le}-sm`]:be==="small",[`${le}-rtl`]:Oe==="rtl",[`${le}-${ce}`]:ie,[`${le}-in-form-item`]:Ze},Yi(le,Et,he),$e,re,c,ee.root,q?.root,u,Me,Re,Ge),Se=ni.useMemo(()=>v!==void 0?v:Oe==="rtl"?"bottomRight":"bottomLeft",[v,Oe]),[Ke]=xv("SelectLike",ye?.zIndex);return Le(ni.createElement(oM,Object.assign({ref:t,virtual:Y,showSearch:Z},De,{style:Object.assign(Object.assign(Object.assign(Object.assign({},Q.root),B?.root),K),P),dropdownMatchSelectWidth:He,transitionName:Cv(pe,"slide-up",F),builtinPlacements:pM(S,ae),listHeight:h,listItemHeight:de,mode:Ie,prefixCls:le,placement:Se,direction:Oe,prefix:I,suffixIcon:pt,menuItemSelectedIcon:ke,removeIcon:we,allowClear:Pe,notFoundContent:Tt,className:Fe,getPopupContainer:f||k,dropdownClassName:Ee,disabled:Mt,dropdownStyle:Object.assign(Object.assign({},ye),{zIndex:Ke}),maxCount:je?j:void 0,tagRender:je?H:void 0,dropdownRender:se,onDropdownVisibleChange:xe})))},Au=ni.forwardRef(u7),f7=Dk(Au,"dropdownAlign");Au.SECRET_COMBOBOX_MODE_DO_NOT_USE=TM;Au.Option=rp;Au.OptGroup=tp;Au._InternalPanelDoNotUseOrYouWillBeFired=f7;var ip=Au;var NM=E(D());function q1(){let[,e]=NM.useReducer(t=>t+1,0);return e}var bn=E(D()),Ay=E(Ne());var G1=E(Ne()),K1=E(D());function Mu(e){var t=e.children,r=e.prefixCls,n=e.id,o=e.overlayInnerStyle,i=e.bodyClassName,a=e.className,s=e.style;return K1.createElement("div",{className:(0,G1.default)("".concat(r,"-content"),a),style:s},K1.createElement("div",{className:(0,G1.default)("".concat(r,"-inner"),i),id:n,role:"tooltip",style:o},typeof t=="function"?t():t))}var DM=E(Ne()),Hl=E(D()),zu=E(D());var Fu={shiftX:64,adjustY:1},Lu={adjustX:1,shiftY:!0},oi=[0,0],IM={left:{points:["cr","cl"],overflow:Lu,offset:[-4,0],targetOffset:oi},right:{points:["cl","cr"],overflow:Lu,offset:[4,0],targetOffset:oi},top:{points:["bc","tc"],overflow:Fu,offset:[0,-4],targetOffset:oi},bottom:{points:["tc","bc"],overflow:Fu,offset:[0,4],targetOffset:oi},topLeft:{points:["bl","tl"],overflow:Fu,offset:[0,-4],targetOffset:oi},leftTop:{points:["tr","tl"],overflow:Lu,offset:[-4,0],targetOffset:oi},topRight:{points:["br","tr"],overflow:Fu,offset:[0,-4],targetOffset:oi},rightTop:{points:["tl","tr"],overflow:Lu,offset:[4,0],targetOffset:oi},bottomRight:{points:["tr","br"],overflow:Fu,offset:[0,4],targetOffset:oi},rightBottom:{points:["bl","br"],overflow:Lu,offset:[4,0],targetOffset:oi},bottomLeft:{points:["tl","bl"],overflow:Fu,offset:[0,4],targetOffset:oi},leftBottom:{points:["br","bl"],overflow:Lu,offset:[-4,0],targetOffset:oi}};var d7=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],p7=function(t,r){var n=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,s=a===void 0?0:a,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,f=t.prefixCls,p=f===void 0?"rc-tooltip":f,g=t.children,h=t.onVisibleChange,v=t.afterVisibleChange,y=t.transitionName,m=t.animation,d=t.motion,x=t.placement,b=x===void 0?"right":x,S=t.align,w=S===void 0?{}:S,C=t.destroyTooltipOnHide,R=C===void 0?!1:C,P=t.defaultVisible,O=t.getTooltipContainer,A=t.overlayInnerStyle,M=t.arrowContent,F=t.overlay,H=t.id,j=t.showArrow,I=j===void 0?!0:j,N=t.classNames,$=t.styles,U=Ve(t,d7),W=Uv(H),B=(0,zu.useRef)(null);(0,zu.useImperativeHandle)(r,function(){return B.current});var q=T({},U);"visible"in t&&(q.popupVisible=t.visible);var L=function(){return Hl.createElement(Mu,{key:"content",prefixCls:p,id:W,bodyClassName:N?.body,overlayInnerStyle:T(T({},A),$?.body)},F)},k=function(){var G=Hl.Children.only(g),J=G?.props||{},Y=T(T({},J),{},{"aria-describedby":F?W:null});return Hl.cloneElement(g,Y)};return Hl.createElement(gy,fe({popupClassName:(0,DM.default)(n,N?.root),prefixCls:p,popup:L,action:i,builtinPlacements:IM,popupPlacement:b,ref:B,popupAlign:w,getPopupContainer:O,onPopupVisibleChange:h,afterPopupVisibleChange:v,popupTransitionName:y,popupAnimation:m,popupMotion:d,defaultPopupVisible:P,autoDestroy:R,mouseLeaveDelay:c,popupStyle:T(T({},u),$?.root),mouseEnterDelay:s,arrow:I},q),k())},$M=(0,zu.forwardRef)(p7);var kM=$M;function AM(e){let{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,o=t/2,i=0,a=o,s=n*1/Math.sqrt(2),l=o-n*(1-1/Math.sqrt(2)),c=o-r*(1/Math.sqrt(2)),u=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),f=2*o-c,p=u,g=2*o-s,h=l,v=2*o-i,y=a,m=o*Math.sqrt(2)+n*(Math.sqrt(2)-2),d=n*(Math.sqrt(2)-1),x=`polygon(${d}px 100%, 50% ${d}px, ${2*o-d}px 100%, ${d}px 100%)`,b=`path('M ${i} ${a} A ${n} ${n} 0 0 0 ${s} ${l} L ${c} ${u} A ${r} ${r} 0 0 1 ${f} ${p} L ${g} ${h} A ${n} ${n} 0 0 0 ${v} ${y} Z')`;return{arrowShadowWidth:m,arrowPath:b,arrowPolygon:x}}var MM=(e,t,r)=>{let{sizePopupArrow:n,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:l(n).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[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(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}};var X1=8;function Dy(e){let{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?X1:n}}function Iy(e,t){return e?t:{}}function Y1(e,t,r){let{componentCls:n,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}=r||{};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},MM(e,t,o)),{"&:before":{background:t}})]},Iy(!!l.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${oe(a)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Iy(!!l.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${oe(a)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Iy(!!l.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:i},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:i}})),Iy(!!l.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:i},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:i}}))}}function m7(e,t,r,n){if(n===!1)return{adjustX:!1,adjustY:!1};let o=n&&typeof n=="object"?n:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+r,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+r,i.shiftX=!0,i.adjustX=!0;break}let a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}var FM={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"]}},g7={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"]}},h7=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Q1(e){let{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:o,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(FM).forEach(c=>{let u=n&&g7[c]||FM[c],f=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=f,h7.has(c)&&(f.autoArrow=!1),c){case"top":case"topLeft":case"topRight":f.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+o;break}let p=Dy({contentRadius:i,limitVerticalRadius:!0});if(n)switch(c){case"topLeft":case"bottomLeft":f.offset[0]=-p.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":f.offset[0]=p.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":f.offset[1]=-p.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":f.offset[1]=p.arrowOffsetHorizontal*2-s;break}f.overflow=m7(c,p,t,r),a&&(f.htmlRegion="visibleFirst")}),l}var Wu=E(D()),WM=E(Ne());var v7=e=>{let{calc:t,componentCls:r,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:f,arrowOffsetHorizontal:p,sizePopupArrow:g}=e,h=t(a).add(g).add(p).equal(),v=t(a).mul(2).add(g).equal();return[{[r]:Object.assign(Object.assign(Object.assign(Object.assign({},sr(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${r}-inner`]:{minWidth:v,minHeight:l,padding:`${oe(e.calc(u).div(2).equal())} ${oe(f)}`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:h},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${r}-inner`]:{borderRadius:e.min(a,X1)}},[`${r}-content`]:{position:"relative"}}),Bh(e,(y,{darkColor:m})=>({[`&${r}-${y}`]:{[`${r}-inner`]:{backgroundColor:m},[`${r}-arrow`]:{"--antd-arrow-background-color":m}}}))),{"&-rtl":{direction:"rtl"}})},Y1(e,"var(--antd-arrow-background-color)"),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},y7=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Dy({contentRadius:e.borderRadius,limitVerticalRadius:!0})),AM(ut(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),$y=(e,t=!0)=>Gt("Tooltip",n=>{let{borderRadius:o,colorTextLightSolid:i,colorBgSpotlight:a}=n,s=ut(n,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a});return[v7(s),Dw(n,"zoom-big-fast")]},y7,{resetStyle:!1,injectStyle:t})(e);var zM=E(Ne());var x7=Eo.map(e=>`${e}-inverse`);function LM(e,t=!0){return t?[].concat(te(x7),te(Eo)).includes(e):Eo.includes(e)}function ky(e,t){let r=LM(t),n=(0,zM.default)({[`${e}-${t}`]:t&&r}),o={},i={};return t&&!r&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:n,overlayStyle:o,arrowStyle:i}}var b7=e=>{let{prefixCls:t,className:r,placement:n="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=Wu.useContext(rt),l=s("tooltip",t),[c,u,f]=$y(l),p=ky(l,i),g=p.arrowStyle,h=Object.assign(Object.assign({},a),p.overlayStyle),v=(0,WM.default)(u,f,l,`${l}-pure`,`${l}-placement-${n}`,r,p.className);return c(Wu.createElement("div",{className:v,style:g},Wu.createElement("div",{className:`${l}-arrow`}),Wu.createElement(Mu,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:h}),o)))},BM=b7;var S7=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var r,n;let{prefixCls:o,openClassName:i,getTooltipContainer:a,color:s,overlayInnerStyle:l,children:c,afterOpenChange:u,afterVisibleChange:f,destroyTooltipOnHide:p,destroyOnHidden:g,arrow:h=!0,title:v,overlay:y,builtinPlacements:m,arrowPointAtCenter:d=!1,autoAdjustOverflow:x=!0,motion:b,getPopupContainer:S,placement:w="top",mouseEnterDelay:C=.1,mouseLeaveDelay:R=.1,overlayStyle:P,rootClassName:O,overlayClassName:A,styles:M,classNames:F}=e,H=S7(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),j=!!h,[,I]=xr(),{getPopupContainer:N,getPrefixCls:$,direction:U,className:W,style:B,classNames:q,styles:L}=no("tooltip"),k=Oh("Tooltip"),z=bn.useRef(null),G=()=>{var We;(We=z.current)===null||We===void 0||We.forceAlign()};bn.useImperativeHandle(t,()=>{var We,He;return{forceAlign:G,forcePopupAlign:()=>{k.deprecated(!1,"forcePopupAlign","forceAlign"),G()},nativeElement:(We=z.current)===null||We===void 0?void 0:We.nativeElement,popupElement:(He=z.current)===null||He===void 0?void 0:He.popupElement}});let[J,Y]=ar(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),X=!v&&!y&&v!==0,ae=We=>{var He,ye;Y(X?!1:We),X||((He=e.onOpenChange)===null||He===void 0||He.call(e,We),(ye=e.onVisibleChange)===null||ye===void 0||ye.call(e,We))},Z=bn.useMemo(()=>{var We,He;let ye=d;return typeof h=="object"&&(ye=(He=(We=h.pointAtCenter)!==null&&We!==void 0?We:h.arrowPointAtCenter)!==null&&He!==void 0?He:d),m||Q1({arrowPointAtCenter:ye,autoAdjustOverflow:x,arrowWidth:j?I.sizePopupArrow:0,borderRadius:I.borderRadius,offset:I.marginXXS,visibleFirst:!0})},[d,h,m,I]),K=bn.useMemo(()=>v===0?v:y||v||"",[y,v]),Q=bn.createElement(Ws,{space:!0},typeof K=="function"?K():K),re=$("tooltip",o),ee=$(),ne=e["data-popover-inject"],de=J;!("open"in e)&&!("visible"in e)&&X&&(de=!1);let le=bn.isValidElement(c)&&!hv(c)?c:bn.createElement("span",null,c),pe=le.props,Oe=!pe.className||typeof pe.className=="string"?(0,Ay.default)(pe.className,i||`${re}-open`):pe.className,[Ce,$e,ce]=$y(re,!ne),ie=ky(re,s),Re=ie.arrowStyle,Le=(0,Ay.default)(A,{[`${re}-rtl`]:U==="rtl"},ie.className,O,$e,ce,W,q.root,F?.root),Ge=(0,Ay.default)(q.body,F?.body),[Me,Ie]=xv("Tooltip",H.zIndex),je=bn.createElement(kM,Object.assign({},H,{zIndex:Me,showArrow:j,placement:w,mouseEnterDelay:C,mouseLeaveDelay:R,prefixCls:re,classNames:{root:Le,body:Ge},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Re),L.root),B),P),M?.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},L.body),l),M?.body),ie.overlayStyle)},getTooltipContainer:S||a||N,ref:z,builtinPlacements:Z,overlay:Q,visible:de,onVisibleChange:ae,afterVisibleChange:u??f,arrowContent:bn.createElement("span",{className:`${re}-arrow-content`}),motion:{motionName:Cv(ee,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:g??!!p}),de?Go(le,{className:Oe}):le);return Ce(bn.createElement(yv.Provider,{value:Ie},je))}),jM=C7;jM._InternalPanelDoNotUseOrYouWillBeFired=BM;var Ma=jM;var VM=E(Ne());var My=E(D()),Ul=E(D()),w7=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],E7=(0,Ul.forwardRef)(function(e,t){var r=e.prefixCls,n=r===void 0?"rc-checkbox":r,o=e.className,i=e.style,a=e.checked,s=e.disabled,l=e.defaultChecked,c=l===void 0?!1:l,u=e.type,f=u===void 0?"checkbox":u,p=e.title,g=e.onChange,h=Ve(e,w7),v=(0,Ul.useRef)(null),y=(0,Ul.useRef)(null),m=ar(c,{value:a}),d=V(m,2),x=d[0],b=d[1];(0,Ul.useImperativeHandle)(t,function(){return{focus:function(R){var P;(P=v.current)===null||P===void 0||P.focus(R)},blur:function(){var R;(R=v.current)===null||R===void 0||R.blur()},input:v.current,nativeElement:y.current}});var S=(0,VM.default)(n,o,_(_({},"".concat(n,"-checked"),x),"".concat(n,"-disabled"),s)),w=function(R){s||("checked"in e||b(R.target.checked),g?.({target:T(T({},e),{},{type:f,checked:R.target.checked}),stopPropagation:function(){R.stopPropagation()},preventDefault:function(){R.preventDefault()},nativeEvent:R.nativeEvent}))};return My.createElement("span",{className:S,title:p,style:i,ref:y},My.createElement("input",fe({},h,{className:"".concat(n,"-input"),ref:v,onChange:w,disabled:s,checked:!!x,type:f})),My.createElement("span",{className:"".concat(n,"-inner")}))}),HM=E7;var UM=E(D());function J1(e){let t=UM.default.useRef(null),r=()=>{dt.cancel(t.current),t.current=null};return[()=>{r(),t.current=dt(()=>{t.current=null})},i=>{t.current&&(i.stopPropagation(),r()),e?.(i)}]}function Fa(e){return ut(e,{inputAffixPadding:e.paddingXXS})}var La=e=>{let{controlHeight:t,fontSize:r,lineHeight:n,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:f,colorFillAlter:p,colorPrimaryHover:g,colorPrimary:h,controlOutlineWidth:v,controlOutline:y,colorErrorOutline:m,colorWarningOutline:d,colorBgContainer:x,inputFontSize:b,inputFontSizeLG:S,inputFontSizeSM:w}=e,C=b||r,R=w||C,P=S||s,O=Math.round((t-C*n)/2*10)/10-o,A=Math.round((i-R*n)/2*10)/10-o,M=Math.ceil((a-P*l)/2*10)/10-o;return{paddingBlock:Math.max(O,0),paddingBlockSM:Math.max(A,0),paddingBlockLG:Math.max(M,0),paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:f-o,addonBg:p,activeBorderColor:h,hoverBorderColor:g,activeShadow:`0 0 0 ${v}px ${y}`,errorActiveShadow:`0 0 0 ${v}px ${m}`,warningActiveShadow:`0 0 0 ${v}px ${d}`,hoverBg:x,activeBg:x,inputFontSize:C,inputFontSizeLG:P,inputFontSizeSM:R}};var R7=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Z1=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},R7(ut(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),QM=(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}}),qM=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},QM(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Fy=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},QM(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Z1(e))}),qM(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),qM(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),GM=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Ly=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}}},GM(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),GM(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Z1(e))}})}),zy=(e,t)=>{let{componentCls:r}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${r}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${r}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${r}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},JM=(e,t)=>{var r;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(r=t?.inputColor)!==null&&r!==void 0?r:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},KM=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},JM(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Wy=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},JM(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Z1(e))}),KM(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),KM(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),XM=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),By=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},XM(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),XM(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}`}}}})}),ZM=(e,t)=>({background:e.colorBgContainer,borderWidth:`${oe(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.borderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),YM=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},ZM(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),jy=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ZM(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),YM(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),YM(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)});var eE=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}});var eF=e=>{let{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:o}=e;return{padding:`${oe(t)} ${oe(o)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},tF=e=>({padding:`${oe(e.paddingBlockSM)} ${oe(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),ap=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}`},eE(e.colorTextPlaceholder)),{"&-lg":Object.assign({},eF(e)),"&-sm":Object.assign({},tF(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),tE=e=>{let{componentCls:t,antCls:r}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},eF(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},tF(e)),[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-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,[`${r}-select`]:{margin:`${oe(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${oe(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${oe(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${r}-cascader-picker`]:{margin:`-9px ${oe(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${r}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${r}-select ${r}-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,[`${r}-select ${r}-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"},pu()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[` & > ${t}-affix-wrapper, & > ${t}-number-affix-wrapper, & > ${r}-picker-range `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${r}-select > ${r}-select-selector, & > ${r}-select-auto-complete ${t}, & > ${r}-cascader-picker ${t}, & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${r}-select-focused`]:{zIndex:1},[`& > ${r}-select > ${r}-select-arrow`]:{zIndex:1},[`& > *:first-child, & > ${r}-select:first-child > ${r}-select-selector, & > ${r}-select-auto-complete:first-child ${t}, & > ${r}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, & > ${r}-select:last-child > ${r}-select-selector, & > ${r}-cascader-picker:last-child ${t}, & > ${r}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{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}}}})}},O7=e=>{let{componentCls:t,controlHeightSM:r,lineWidth:n,calc:o}=e,a=o(r).sub(o(n).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},sr(e)),ap(e)),Fy(e)),Wy(e)),zy(e)),jy(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:r,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},_7=e=>{let{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${oe(e.inputAffixPadding)}`}}}},P7=e=>{let{componentCls:t,inputAffixPadding:r,colorTextDescription:n,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},ap(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:n,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:r},"&-suffix":{marginInlineStart:r}}}),_7(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),[`${t}-underlined`]:{borderRadius:0},[c]:{[`${s}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},T7=e=>{let{componentCls:t,borderRadiusLG:r,borderRadiusSM:n}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},sr(e)),tE(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:r,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:n}}},Ly(e)),By(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},N7=e=>{let{componentCls:t,antCls:r}=e,n=`${t}-search`;return{[n]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${n}-button:not(${r}-btn-color-primary):not(${r}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${n}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${n}-button:not(${r}-btn-color-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${r}-btn-loading::before`]:{inset:0}}}},[`${n}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${n}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${n}-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}}}}},I7=e=>{let{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Vy=Gt(["Input","Shared"],e=>{let t=ut(e,Fa(e));return[O7(t),P7(t)]},La,{resetFont:!1}),Hy=Gt(["Input","Component"],e=>{let t=ut(e,Fa(e));return[T7(t),N7(t),I7(t),Ms(t)]},La,{resetFont:!1});var D7=e=>{let{checkboxCls:t}=e,r=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},sr(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[r]:Object.assign(Object.assign({},sr(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${r}`]:{marginInlineStart:0},[`&${r}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},sr(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({},GC(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}})},{[` ${r}:not(${r}-disabled), ${t}:not(${t}-disabled) `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${r}:not(${r}-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}`}}},[` ${r}-checked:not(${r}-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:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorPrimary}`}}}}},{[`${r}-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 $7(e,t){let r=ut(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[D7(r)]}var Uy=Gt("Checkbox",(e,{prefixCls:t})=>[$7(t,e)]);var Jr=E(D()),rE=E(Ne());var rF=E(D()),k7=rF.default.createContext(null),qy=k7;var A7=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var r;let{prefixCls:n,className:o,rootClassName:i,children:a,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:f=!1,disabled:p}=e,g=A7(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:h,direction:v,checkbox:y}=Jr.useContext(rt),m=Jr.useContext(qy),{isFormItemInput:d}=Jr.useContext(dn),x=Jr.useContext(qr),b=(r=m?.disabled||p)!==null&&r!==void 0?r:x,S=Jr.useRef(g.value),w=Jr.useRef(null),C=zr(t,w);Jr.useEffect(()=>{m?.registerValue(g.value)},[]),Jr.useEffect(()=>{if(!f)return g.value!==S.current&&(m?.cancelValue(S.current),m?.registerValue(g.value),S.current=g.value),()=>m?.cancelValue(g.value)},[g.value]),Jr.useEffect(()=>{var $;!(($=w.current)===null||$===void 0)&&$.input&&(w.current.input.indeterminate=s)},[s]);let R=h("checkbox",n),P=Ko(R),[O,A,M]=Uy(R,P),F=Object.assign({},g);m&&!f&&(F.onChange=(...$)=>{g.onChange&&g.onChange.apply(g,$),m.toggleOption&&m.toggleOption({label:a,value:g.value})},F.name=m.name,F.checked=m.value.includes(g.value));let H=(0,rE.default)(`${R}-wrapper`,{[`${R}-rtl`]:v==="rtl",[`${R}-wrapper-checked`]:F.checked,[`${R}-wrapper-disabled`]:b,[`${R}-wrapper-in-form-item`]:d},y?.className,o,i,M,P,A),j=(0,rE.default)({[`${R}-indeterminate`]:s},hu,A),[I,N]=J1(F.onClick);return O(Jr.createElement(Rv,{component:"Checkbox",disabled:b},Jr.createElement("label",{className:H,style:Object.assign(Object.assign({},y?.style),l),onMouseEnter:c,onMouseLeave:u,onClick:I},Jr.createElement(HM,Object.assign({},F,{onClick:N,prefixCls:R,className:j,disabled:b,ref:C})),a!=null&&Jr.createElement("span",{className:`${R}-label`},a))))},F7=Jr.forwardRef(M7),Gy=F7;var Nn=E(D()),nE=E(Ne());var L7=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let{defaultValue:r,children:n,options:o=[],prefixCls:i,className:a,rootClassName:s,style:l,onChange:c}=e,u=L7(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:p}=Nn.useContext(rt),[g,h]=Nn.useState(u.value||r||[]),[v,y]=Nn.useState([]);Nn.useEffect(()=>{"value"in u&&h(u.value||[])},[u.value]);let m=Nn.useMemo(()=>o.map(j=>typeof j=="string"||typeof j=="number"?{label:j,value:j}:j),[o]),d=j=>{y(I=>I.filter(N=>N!==j))},x=j=>{y(I=>[].concat(te(I),[j]))},b=j=>{let I=g.indexOf(j.value),N=te(g);I===-1?N.push(j.value):N.splice(I,1),"value"in u||h(N),c?.(N.filter($=>v.includes($)).sort(($,U)=>{let W=m.findIndex(q=>q.value===$),B=m.findIndex(q=>q.value===U);return W-B}))},S=f("checkbox",i),w=`${S}-group`,C=Ko(S),[R,P,O]=Uy(S,C),A=Kr(u,["value","disabled"]),M=o.length?m.map(j=>Nn.createElement(Gy,{prefixCls:S,key:j.value.toString(),disabled:"disabled"in j?j.disabled:u.disabled,value:j.value,checked:g.includes(j.value),onChange:j.onChange,className:(0,nE.default)(`${w}-item`,j.className),style:j.style,title:j.title,id:j.id,required:j.required},j.label)):n,F=Nn.useMemo(()=>({toggleOption:b,value:g,disabled:u.disabled,name:u.name,registerValue:x,cancelValue:d}),[b,g,u.disabled,u.name,x,d]),H=(0,nE.default)(w,{[`${w}-rtl`]:p==="rtl"},a,s,O,C,P);return R(Nn.createElement("div",Object.assign({className:H,style:l},A,{ref:t}),Nn.createElement(qy.Provider,{value:F},M)))});var nF=z7;var oE=Gy;oE.Group=nF;oE.__ANT_CHECKBOX=!0;var sp=oE;var Rr=E(D());var Ky=E(D());var W7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},oF=W7;var B7=function(t,r){return Ky.createElement(zt,fe({},t,{ref:r,icon:oF}))},j7=Ky.forwardRef(B7),iF=j7;var Kl=E(Ne());function lp(){return typeof BigInt=="function"}function Xy(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function Ti(e){var t=e.trim(),r=t.startsWith("-");r&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var n=t||"0",o=n.split("."),i=o[0]||"0",a=o[1]||"0";i==="0"&&a==="0"&&(r=!1);var s=r?"-":"";return{negative:r,negativeStr:s,trimStr:n,integerStr:i,decimalStr:a,fullStr:"".concat(s).concat(n)}}function Yy(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function Zi(e){var t=String(e);if(Yy(e)){var r=Number(t.slice(t.indexOf("e-")+2)),n=t.match(/\.(\d+)/);return n!=null&&n[1]&&(r+=n[1].length),r}return t.includes(".")&&Bu(t)?t.length-t.indexOf(".")-1:0}function za(e){var t=String(e);if(Yy(e)){if(e>Number.MAX_SAFE_INTEGER)return String(lp()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":Ti("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();var sF=function(){function e(t){if(it(this,e),_(this,"origin",""),_(this,"number",void 0),_(this,"empty",void 0),Xy(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return at(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(r){if(this.isInvalidate())return new e(r);var n=Number(r);if(Number.isNaN(n))return this;var o=this.number+n;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(oNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":za(this.number):this.origin}}]),e}();function Qy(e){return lp()?new aF(e):new sF(e)}function cp(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var o=Ti(e),i=o.negativeStr,a=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),c="".concat(i).concat(a);if(r>=0){var u=Number(s[r]);if(u>=5&&!n){var f=Qy(e).add("".concat(i,"0.").concat("0".repeat(r)).concat(10-u));return cp(f.toString(),t,r,n)}return r===0?c:"".concat(c).concat(t).concat(s.padEnd(r,"0").slice(0,r))}return l===".0"?c:"".concat(c).concat(l)}var Ni=Qy;var bF=E(Ne());var Wa=E(Ne()),Sn=E(D());function cF(e){return!!(e.addonBefore||e.addonAfter)}function uF(e){return!!(e.prefix||e.suffix||e.allowClear)}function lF(e,t,r){var n=t.cloneNode(!0),o=Object.create(e,{target:{value:n},currentTarget:{value:n}});return n.value=r,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd),n.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function ju(e,t,r,n){if(r){var o=t;if(t.type==="click"){o=lF(t,e,""),r(o);return}if(e.type!=="file"&&n!==void 0){o=lF(t,e,n),r(o);return}r(o)}}function ql(e,t){if(e){e.focus(t);var r=t||{},n=r.cursor;if(n){var o=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var V7=Sn.default.forwardRef(function(e,t){var r,n,o,i=e.inputElement,a=e.children,s=e.prefixCls,l=e.prefix,c=e.suffix,u=e.addonBefore,f=e.addonAfter,p=e.className,g=e.style,h=e.disabled,v=e.readOnly,y=e.focused,m=e.triggerFocus,d=e.allowClear,x=e.value,b=e.handleReset,S=e.hidden,w=e.classes,C=e.classNames,R=e.dataAttrs,P=e.styles,O=e.components,A=e.onClear,M=a??i,F=O?.affixWrapper||"span",H=O?.groupWrapper||"span",j=O?.wrapper||"span",I=O?.groupAddon||"span",N=(0,Sn.useRef)(null),$=function(ee){var ne;(ne=N.current)!==null&&ne!==void 0&&ne.contains(ee.target)&&m?.()},U=uF(e),W=(0,Sn.cloneElement)(M,{value:x,className:(0,Wa.default)((r=M.props)===null||r===void 0?void 0:r.className,!U&&C?.variant)||null}),B=(0,Sn.useRef)(null);if(Sn.default.useImperativeHandle(t,function(){return{nativeElement:B.current||N.current}}),U){var q=null;if(d){var L=!h&&!v&&x,k="".concat(s,"-clear-icon"),z=ue(d)==="object"&&d!==null&&d!==void 0&&d.clearIcon?d.clearIcon:"\u2716";q=Sn.default.createElement("button",{type:"button",tabIndex:-1,onClick:function(ee){b?.(ee),A?.()},onMouseDown:function(ee){return ee.preventDefault()},className:(0,Wa.default)(k,_(_({},"".concat(k,"-hidden"),!L),"".concat(k,"-has-suffix"),!!c))},z)}var G="".concat(s,"-affix-wrapper"),J=(0,Wa.default)(G,_(_(_(_(_({},"".concat(s,"-disabled"),h),"".concat(G,"-disabled"),h),"".concat(G,"-focused"),y),"".concat(G,"-readonly"),v),"".concat(G,"-input-with-clear-btn"),c&&d&&x),w?.affixWrapper,C?.affixWrapper,C?.variant),Y=(c||d)&&Sn.default.createElement("span",{className:(0,Wa.default)("".concat(s,"-suffix"),C?.suffix),style:P?.suffix},q,c);W=Sn.default.createElement(F,fe({className:J,style:P?.affixWrapper,onClick:$},R?.affixWrapper,{ref:N}),l&&Sn.default.createElement("span",{className:(0,Wa.default)("".concat(s,"-prefix"),C?.prefix),style:P?.prefix},l),W,Y)}if(cF(e)){var X="".concat(s,"-group"),ae="".concat(X,"-addon"),Z="".concat(X,"-wrapper"),K=(0,Wa.default)("".concat(s,"-wrapper"),X,w?.wrapper,C?.wrapper),Q=(0,Wa.default)(Z,_({},"".concat(Z,"-disabled"),h),w?.group,C?.groupWrapper);W=Sn.default.createElement(H,{className:Q,ref:B},Sn.default.createElement(j,{className:K},u&&Sn.default.createElement(I,{className:ae},u),W,f&&Sn.default.createElement(I,{className:ae},f)))}return Sn.default.cloneElement(W,{className:(0,Wa.default)((n=W.props)===null||n===void 0?void 0:n.className,p)||null,style:T(T({},(o=W.props)===null||o===void 0?void 0:o.style),g),hidden:S})}),Gl=V7;var Jy=E(Ne());var Br=E(D());var fF=E(D()),H7=["show"];function up(e,t){return fF.useMemo(function(){var r={};t&&(r.show=ue(t)==="object"&&t.formatter?t.formatter:!!t),r=T(T({},r),e);var n=r,o=n.show,i=Ve(n,H7);return T(T({},i),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:i.strategy||function(a){return a.length}})},[e,t])}var U7=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],q7=(0,Br.forwardRef)(function(e,t){var r=e.autoComplete,n=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,c=e.prefixCls,u=c===void 0?"rc-input":c,f=e.disabled,p=e.htmlSize,g=e.className,h=e.maxLength,v=e.suffix,y=e.showCount,m=e.count,d=e.type,x=d===void 0?"text":d,b=e.classes,S=e.classNames,w=e.styles,C=e.onCompositionStart,R=e.onCompositionEnd,P=Ve(e,U7),O=(0,Br.useState)(!1),A=V(O,2),M=A[0],F=A[1],H=(0,Br.useRef)(!1),j=(0,Br.useRef)(!1),I=(0,Br.useRef)(null),N=(0,Br.useRef)(null),$=function(ie){I.current&&ql(I.current,ie)},U=ar(e.defaultValue,{value:e.value}),W=V(U,2),B=W[0],q=W[1],L=B==null?"":String(B),k=(0,Br.useState)(null),z=V(k,2),G=z[0],J=z[1],Y=up(m,y),X=Y.max||h,ae=Y.strategy(L),Z=!!X&&ae>X;(0,Br.useImperativeHandle)(t,function(){var ce;return{focus:$,blur:function(){var Re;(Re=I.current)===null||Re===void 0||Re.blur()},setSelectionRange:function(Re,Le,Ge){var Me;(Me=I.current)===null||Me===void 0||Me.setSelectionRange(Re,Le,Ge)},select:function(){var Re;(Re=I.current)===null||Re===void 0||Re.select()},input:I.current,nativeElement:((ce=N.current)===null||ce===void 0?void 0:ce.nativeElement)||I.current}}),(0,Br.useEffect)(function(){j.current&&(j.current=!1),F(function(ce){return ce&&f?!1:ce})},[f]);var K=function(ie,Re,Le){var Ge=Re;if(!H.current&&Y.exceedFormatter&&Y.max&&Y.strategy(Re)>Y.max){if(Ge=Y.exceedFormatter(Re,{max:Y.max}),Re!==Ge){var Me,Ie;J([((Me=I.current)===null||Me===void 0?void 0:Me.selectionStart)||0,((Ie=I.current)===null||Ie===void 0?void 0:Ie.selectionEnd)||0])}}else if(Le.source==="compositionEnd")return;q(Ge),I.current&&ju(I.current,ie,n,Ge)};(0,Br.useEffect)(function(){if(G){var ce;(ce=I.current)===null||ce===void 0||ce.setSelectionRange.apply(ce,te(G))}},[G]);var Q=function(ie){K(ie,ie.target.value,{source:"change"})},re=function(ie){H.current=!1,K(ie,ie.currentTarget.value,{source:"compositionEnd"}),R?.(ie)},ee=function(ie){a&&ie.key==="Enter"&&!j.current&&(j.current=!0,a(ie)),s?.(ie)},ne=function(ie){ie.key==="Enter"&&(j.current=!1),l?.(ie)},de=function(ie){F(!0),o?.(ie)},le=function(ie){j.current&&(j.current=!1),F(!1),i?.(ie)},pe=function(ie){q(""),$(),I.current&&ju(I.current,ie,n)},Oe=Z&&"".concat(u,"-out-of-range"),Ce=function(){var ie=Kr(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return Br.default.createElement("input",fe({autoComplete:r},ie,{onChange:Q,onFocus:de,onBlur:le,onKeyDown:ee,onKeyUp:ne,className:(0,Jy.default)(u,_({},"".concat(u,"-disabled"),f),S?.input),style:w?.input,ref:I,size:p,type:x,onCompositionStart:function(Le){H.current=!0,C?.(Le)},onCompositionEnd:re}))},$e=function(){var ie=Number(X)>0;if(v||Y.show){var Re=Y.showFormatter?Y.showFormatter({value:L,count:ae,maxLength:X}):"".concat(ae).concat(ie?" / ".concat(X):"");return Br.default.createElement(Br.default.Fragment,null,Y.show&&Br.default.createElement("span",{className:(0,Jy.default)("".concat(u,"-show-count-suffix"),_({},"".concat(u,"-show-count-has-suffix"),!!v),S?.count),style:T({},w?.count)},Re),v)}return null};return Br.default.createElement(Gl,fe({},P,{prefixCls:u,className:(0,Jy.default)(g,Oe),handleReset:pe,value:L,focused:M,triggerFocus:$,suffix:$e(),disabled:f,classes:b,classNames:S,styles:w,ref:N}),Ce())}),dF=q7;var pF=dF;function iE(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(n,o){if(t[o])return t[o];var i=n[o];return typeof i=="function"?i.bind(n):i}}):e}var _t=E(D());var mF=E(D());function aE(e,t){var r=(0,mF.useRef)(null);function n(){try{var i=e.selectionStart,a=e.selectionEnd,s=e.value,l=s.substring(0,i),c=s.substring(a);r.current={start:i,end:a,value:s,beforeTxt:l,afterTxt:c}}catch{}}function o(){if(e&&r.current&&t)try{var i=e.value,a=r.current,s=a.beforeTxt,l=a.afterTxt,c=a.start,u=i.length;if(i.startsWith(s))u=s.length;else if(i.endsWith(l))u=i.length-r.current.afterTxt.length;else{var f=s[c-1],p=i.indexOf(f,c-1);p!==-1&&(u=p+1)}e.setSelectionRange(u,u)}catch(g){Vt(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(g.message))}}return[n,o]}var ii=E(D()),sE=E(Ne());var gF=E(D());var G7=function(){var t=(0,gF.useState)(!1),r=V(t,2),n=r[0],o=r[1];return vt(function(){o(bu())},[]),n},hF=G7;var K7=200,X7=600;function lE(e){var t=e.prefixCls,r=e.upNode,n=e.downNode,o=e.upDisabled,i=e.downDisabled,a=e.onStep,s=ii.useRef(),l=ii.useRef([]),c=ii.useRef();c.current=a;var u=function(){clearTimeout(s.current)},f=function(x,b){x.preventDefault(),u(),c.current(b);function S(){c.current(b),s.current=setTimeout(S,K7)}s.current=setTimeout(S,X7)};ii.useEffect(function(){return function(){u(),l.current.forEach(function(d){return dt.cancel(d)})}},[]);var p=hF();if(p)return null;var g="".concat(t,"-handler"),h=(0,sE.default)(g,"".concat(g,"-up"),_({},"".concat(g,"-up-disabled"),o)),v=(0,sE.default)(g,"".concat(g,"-down"),_({},"".concat(g,"-down-disabled"),i)),y=function(){return l.current.push(dt(u))},m={unselectable:"on",role:"button",onMouseUp:y,onMouseLeave:y};return ii.createElement("div",{className:"".concat(g,"-wrap")},ii.createElement("span",fe({},m,{onMouseDown:function(x){f(x,!0)},"aria-label":"Increase Value","aria-disabled":o,className:h}),r||ii.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),ii.createElement("span",fe({},m,{onMouseDown:function(x){f(x,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:v}),n||ii.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function cE(e){var t=typeof e=="number"?za(e):Ti(e).fullStr,r=t.includes(".");return r?Ti(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var Zy=E(D());var vF=function(){var e=(0,Zy.useRef)(0),t=function(){dt.cancel(e.current)};return(0,Zy.useEffect)(function(){return t},[]),function(r){t(),e.current=dt(function(){r()})}};var Y7=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],Q7=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],yF=function(t,r){return t||r.isEmpty()?r.toString():r.toNumber()},xF=function(t){var r=Ni(t);return r.isInvalidate()?null:r},J7=_t.forwardRef(function(e,t){var r=e.prefixCls,n=e.className,o=e.style,i=e.min,a=e.max,s=e.step,l=s===void 0?1:s,c=e.defaultValue,u=e.value,f=e.disabled,p=e.readOnly,g=e.upHandler,h=e.downHandler,v=e.keyboard,y=e.changeOnWheel,m=y===void 0?!1:y,d=e.controls,x=d===void 0?!0:d,b=e.classNames,S=e.stringMode,w=e.parser,C=e.formatter,R=e.precision,P=e.decimalSeparator,O=e.onChange,A=e.onInput,M=e.onPressEnter,F=e.onStep,H=e.changeOnBlur,j=H===void 0?!0:H,I=e.domRef,N=Ve(e,Y7),$="".concat(r,"-input"),U=_t.useRef(null),W=_t.useState(!1),B=V(W,2),q=B[0],L=B[1],k=_t.useRef(!1),z=_t.useRef(!1),G=_t.useRef(!1),J=_t.useState(function(){return Ni(u??c)}),Y=V(J,2),X=Y[0],ae=Y[1];function Z(ke){u===void 0&&ae(ke)}var K=_t.useCallback(function(ke,we){if(!we)return R>=0?R:Math.max(Zi(ke),Zi(l))},[R,l]),Q=_t.useCallback(function(ke){var we=String(ke);if(w)return w(we);var et=we;return P&&(et=et.replace(P,".")),et.replace(/[^\w.-]+/g,"")},[w,P]),re=_t.useRef(""),ee=_t.useCallback(function(ke,we){if(C)return C(ke,{userTyping:we,input:String(re.current)});var et=typeof ke=="number"?za(ke):ke;if(!we){var Pe=K(et,we);if(Bu(et)&&(P||Pe>=0)){var De=P||".";et=cp(et,De,Pe)}}return et},[C,K,P]),ne=_t.useState(function(){var ke=c??u;return X.isInvalidate()&&["string","number"].includes(ue(ke))?Number.isNaN(ke)?"":ke:ee(X.toString(),!1)}),de=V(ne,2),le=de[0],pe=de[1];re.current=le;function Oe(ke,we){pe(ee(ke.isInvalidate()?ke.toString(!1):ke.toString(!we),we))}var Ce=_t.useMemo(function(){return xF(a)},[a,R]),$e=_t.useMemo(function(){return xF(i)},[i,R]),ce=_t.useMemo(function(){return!Ce||!X||X.isInvalidate()?!1:Ce.lessEquals(X)},[Ce,X]),ie=_t.useMemo(function(){return!$e||!X||X.isInvalidate()?!1:X.lessEquals($e)},[$e,X]),Re=aE(U.current,q),Le=V(Re,2),Ge=Le[0],Me=Le[1],Ie=function(we){return Ce&&!we.lessEquals(Ce)?Ce:$e&&!$e.lessEquals(we)?$e:null},je=function(we){return!Ie(we)},We=function(we,et){var Pe=we,De=je(Pe)||Pe.isEmpty();if(!Pe.isEmpty()&&!et&&(Pe=Ie(Pe)||Pe,De=!0),!p&&!f&&De){var Ee=Pe.toString(),be=K(Ee,et);return be>=0&&(Pe=Ni(cp(Ee,".",be)),je(Pe)||(Pe=Ni(cp(Ee,".",be,!0)))),Pe.equals(X)||(Z(Pe),O?.(Pe.isEmpty()?null:yF(S,Pe)),u===void 0&&Oe(Pe,et)),Pe}return X},He=vF(),ye=function ke(we){if(Ge(),re.current=we,pe(we),!z.current){var et=Q(we),Pe=Ni(et);Pe.isNaN()||We(Pe,!0)}A?.(we),He(function(){var De=we;w||(De=we.replace(/。/g,".")),De!==we&&ke(De)})},se=function(){z.current=!0},xe=function(){z.current=!1,ye(U.current.value)},_e=function(we){ye(we.target.value)},he=function(we){var et;if(!(we&&ce||!we&&ie)){k.current=!1;var Pe=Ni(G.current?cE(l):l);we||(Pe=Pe.negate());var De=(X||Ni(0)).add(Pe.toString()),Ee=We(De,!1);F?.(yF(S,Ee),{offset:G.current?cE(l):l,type:we?"up":"down"}),(et=U.current)===null||et===void 0||et.focus()}},Ze=function(we){var et=Ni(Q(le)),Pe;et.isNaN()?Pe=We(X,we):Pe=We(et,we),u!==void 0?Oe(X,!1):Pe.isNaN()||Oe(Pe,!1)},lt=function(){k.current=!0},Et=function(we){var et=we.key,Pe=we.shiftKey;k.current=!0,G.current=Pe,et==="Enter"&&(z.current||(k.current=!1),Ze(!1),M?.(we)),v!==!1&&!z.current&&["Up","ArrowUp","Down","ArrowDown"].includes(et)&&(he(et==="Up"||et==="ArrowUp"),we.preventDefault())},Tt=function(){k.current=!1,G.current=!1};_t.useEffect(function(){if(m&&q){var ke=function(Pe){he(Pe.deltaY<0),Pe.preventDefault()},we=U.current;if(we)return we.addEventListener("wheel",ke,{passive:!1}),function(){return we.removeEventListener("wheel",ke)}}});var pt=function(){j&&Ze(!1),L(!1),k.current=!1};return Rl(function(){X.isInvalidate()||Oe(X,!1)},[R,C]),Rl(function(){var ke=Ni(u);ae(ke);var we=Ni(Q(le));(!ke.equals(we)||!k.current||C)&&Oe(ke,k.current)},[u]),Rl(function(){C&&Me()},[le]),_t.createElement("div",{ref:I,className:(0,bF.default)(r,n,_(_(_(_(_({},"".concat(r,"-focused"),q),"".concat(r,"-disabled"),f),"".concat(r,"-readonly"),p),"".concat(r,"-not-a-number"),X.isNaN()),"".concat(r,"-out-of-range"),!X.isInvalidate()&&!je(X))),style:o,onFocus:function(){L(!0)},onBlur:pt,onKeyDown:Et,onKeyUp:Tt,onCompositionStart:se,onCompositionEnd:xe,onBeforeInput:lt},x&&_t.createElement(lE,{prefixCls:r,upNode:g,downNode:h,upDisabled:ce,downDisabled:ie,onStep:he}),_t.createElement("div",{className:"".concat($,"-wrap")},_t.createElement("input",fe({autoComplete:"off",role:"spinbutton","aria-valuemin":i,"aria-valuemax":a,"aria-valuenow":X.isInvalidate()?null:X.toString(),step:l},N,{ref:zr(U,t),className:$,value:le,onChange:_e,disabled:f,readOnly:p}))))}),Z7=_t.forwardRef(function(e,t){var r=e.disabled,n=e.style,o=e.prefixCls,i=o===void 0?"rc-input-number":o,a=e.value,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,f=e.className,p=e.classNames,g=Ve(e,Q7),h=_t.useRef(null),v=_t.useRef(null),y=_t.useRef(null),m=function(x){y.current&&ql(y.current,x)};return _t.useImperativeHandle(t,function(){return iE(y.current,{focus:m,nativeElement:h.current.nativeElement||v.current})}),_t.createElement(Gl,{className:f,triggerFocus:m,prefixCls:i,value:a,disabled:r,style:n,prefix:s,suffix:l,addonAfter:u,addonBefore:c,classNames:p,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:h},_t.createElement(J7,fe({prefixCls:i,disabled:r,ref:y,domRef:v,className:p?.input},g)))}),SF=Z7;var CF=SF;var wF=e=>{var t;let r=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",n=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},La(e)),{controlWidth:90,handleWidth:n,handleFontSize:e.fontSize/2,handleVisible:r,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new gt(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:r===!0?1:0,handleVisibleWidth:r===!0?n:0})};var EF=({componentCls:e,borderRadiusSM:t,borderRadiusLG:r},n)=>{let o=n==="lg"?r:t;return{[`&-${n}`]:{[`${e}-handler-wrap`]:{borderStartEndRadius:o,borderEndEndRadius:o},[`${e}-handler-up`]:{borderStartEndRadius:o},[`${e}-handler-down`]:{borderEndEndRadius:o}}}},eU=e=>{let{componentCls:t,lineWidth:r,lineType:n,borderRadius:o,inputFontSizeSM:i,inputFontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,paddingBlockSM:f,paddingBlockLG:p,paddingInlineLG:g,colorIcon:h,motionDurationMid:v,handleHoverColor:y,handleOpacity:m,paddingInline:d,paddingBlock:x,handleBg:b,handleActiveBg:S,colorTextDisabled:w,borderRadiusSM:C,borderRadiusLG:R,controlWidth:P,handleBorderColor:O,filledHandleBg:A,lineHeightLG:M,calc:F}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},sr(e)),ap(e)),{display:"inline-block",width:P,margin:0,padding:0,borderRadius:o}),Fy(e,{[`${t}-handler-wrap`]:{background:b,[`${t}-handler-down`]:{borderBlockStart:`${oe(r)} ${n} ${O}`}}})),Wy(e,{[`${t}-handler-wrap`]:{background:A,[`${t}-handler-down`]:{borderBlockStart:`${oe(r)} ${n} ${O}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:b}}})),jy(e,{[`${t}-handler-wrap`]:{background:b,[`${t}-handler-down`]:{borderBlockStart:`${oe(r)} ${n} ${O}`}}})),zy(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:M,borderRadius:R,[`input${t}-input`]:{height:F(s).sub(F(r).mul(2)).equal(),padding:`${oe(p)} ${oe(g)}`}},"&-sm":{padding:0,fontSize:i,borderRadius:C,[`input${t}-input`]:{height:F(l).sub(F(r).mul(2)).equal(),padding:`${oe(f)} ${oe(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},sr(e)),tE(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:R,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:C}}},Ly(e)),By(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}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},sr(e)),{width:"100%",padding:`${oe(x)} ${oe(d)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${v} linear`,appearance:"textfield",fontSize:"inherit"}),eE(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:m,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${v}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${t}-handler-up-inner, ${t}-handler-down-inner `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:h,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${oe(r)} ${n} ${O}`,transition:`all ${v} linear`,"&:active":{background:S},"&:hover":{height:"60%",[` ${t}-handler-up-inner, ${t}-handler-down-inner `]:{color:y}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},_a()),{color:h,transition:`all ${v} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderEndEndRadius:o}},EF(e,"lg")),EF(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[` ${t}-handler-up-disabled, ${t}-handler-down-disabled `]:{cursor:"not-allowed"},[` ${t}-handler-up-disabled:hover &-handler-up-inner, ${t}-handler-down-disabled:hover &-handler-down-inner `]:{color:w}})}]},tU=e=>{let{componentCls:t,paddingBlock:r,paddingInline:n,inputAffixPadding:o,controlWidth:i,borderRadiusLG:a,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:f,motionDurationMid:p}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${oe(r)} 0`}},ap(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:i,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:a,paddingInlineStart:l,[`input${t}-input`]:{padding:`${oe(u)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${oe(f)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:n,marginInlineStart:o,transition:`margin ${p}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(n).equal()}})}},RF=Gt("InputNumber",e=>{let t=ut(e,Fa(e));return[eU(t),tU(t),Ms(t)]},wF,{unitless:{handleOpacity:!0}});var rU=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let{getPrefixCls:r,direction:n}=Rr.useContext(rt),o=Rr.useRef(null);Rr.useImperativeHandle(t,()=>o.current);let{className:i,rootClassName:a,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:f,prefix:p,suffix:g,bordered:h,readOnly:v,status:y,controls:m,variant:d}=e,x=rU(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),b=r("input-number",c),S=Ko(b),[w,C,R]=RF(b,S),{compactSize:P,compactItemClassnames:O}=Xo(b,n),A=Rr.createElement(iF,{className:`${b}-handler-up-inner`}),M=Rr.createElement(Py,{className:`${b}-handler-down-inner`}),F=typeof m=="boolean"?m:void 0;typeof m=="object"&&(A=typeof m.upIcon>"u"?A:Rr.createElement("span",{className:`${b}-handler-up-inner`},m.upIcon),M=typeof m.downIcon>"u"?M:Rr.createElement("span",{className:`${b}-handler-down-inner`},m.downIcon));let{hasFeedback:H,status:j,isFormItemInput:I,feedbackIcon:N}=Rr.useContext(dn),$=Qi(j,y),U=ao(Y=>{var X;return(X=s??P)!==null&&X!==void 0?X:Y}),W=Rr.useContext(qr),B=l??W,[q,L]=Gs("inputNumber",d,h),k=H&&Rr.createElement(Rr.Fragment,null,N),z=(0,Kl.default)({[`${b}-lg`]:U==="large",[`${b}-sm`]:U==="small",[`${b}-rtl`]:n==="rtl",[`${b}-in-form-item`]:I},C),G=`${b}-group`,J=Rr.createElement(CF,Object.assign({ref:o,disabled:B,className:(0,Kl.default)(R,S,i,a,O),upHandler:A,downHandler:M,prefixCls:b,readOnly:v,controls:F,prefix:p,suffix:k||g,addonBefore:u&&Rr.createElement(Ws,{form:!0,space:!0},u),addonAfter:f&&Rr.createElement(Ws,{form:!0,space:!0},f),classNames:{input:z,variant:(0,Kl.default)({[`${b}-${q}`]:L},Yi(b,$,H)),affixWrapper:(0,Kl.default)({[`${b}-affix-wrapper-sm`]:U==="small",[`${b}-affix-wrapper-lg`]:U==="large",[`${b}-affix-wrapper-rtl`]:n==="rtl",[`${b}-affix-wrapper-without-controls`]:m===!1||B},C),wrapper:(0,Kl.default)({[`${G}-rtl`]:n==="rtl"},C),groupWrapper:(0,Kl.default)({[`${b}-group-wrapper-sm`]:U==="small",[`${b}-group-wrapper-lg`]:U==="large",[`${b}-group-wrapper-rtl`]:n==="rtl",[`${b}-group-wrapper-${q}`]:L},Yi(`${b}-group-wrapper`,$,H),C)}},x));return w(J)}),_F=OF,nU=e=>Rr.createElement(Ia,{theme:{components:{InputNumber:{handleVisible:!0}}}},Rr.createElement(OF,Object.assign({},e)));_F._InternalPanelDoNotUseOrYouWillBeFired=nU;var e0=_F;var uo=E(D()),Xl=E(Ne());var PF=E(D());var oU=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:PF.default.createElement(gu,null)}),t},t0=oU;var r0=E(D());function fp(e,t){let r=(0,r0.useRef)([]),n=()=>{r.current.push(setTimeout(()=>{var o,i,a,s;!((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"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return(0,r0.useEffect)(()=>(t&&n(),()=>r.current.forEach(o=>{o&&clearTimeout(o)})),[]),n}function TF(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var iU=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let{prefixCls:r,bordered:n=!0,status:o,size:i,disabled:a,onBlur:s,onFocus:l,suffix:c,allowClear:u,addonAfter:f,addonBefore:p,className:g,style:h,styles:v,rootClassName:y,onChange:m,classNames:d,variant:x}=e,b=iU(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:S,direction:w,allowClear:C,autoComplete:R,className:P,style:O,classNames:A,styles:M}=no("input"),F=S("input",r),H=(0,uo.useRef)(null),j=Ko(F),[I,N,$]=Vy(F,y),[U]=Hy(F,j),{compactSize:W,compactItemClassnames:B}=Xo(F,w),q=ao(pe=>{var Oe;return(Oe=i??W)!==null&&Oe!==void 0?Oe:pe}),L=uo.default.useContext(qr),k=a??L,{status:z,hasFeedback:G,feedbackIcon:J}=(0,uo.useContext)(dn),Y=Qi(z,o),X=TF(e)||!!G,ae=(0,uo.useRef)(X),Z=fp(H,!0),K=pe=>{Z(),s?.(pe)},Q=pe=>{Z(),l?.(pe)},re=pe=>{Z(),m?.(pe)},ee=(G||c)&&uo.default.createElement(uo.default.Fragment,null,c,G&&J),ne=t0(u??C),[de,le]=Gs("input",x,n);return I(U(uo.default.createElement(pF,Object.assign({ref:zr(t,H),prefixCls:F,autoComplete:R},b,{disabled:k,onBlur:K,onFocus:Q,style:Object.assign(Object.assign({},O),h),styles:Object.assign(Object.assign({},M),v),suffix:ee,allowClear:ne,className:(0,Xl.default)(g,y,$,j,B,P),onChange:re,addonBefore:p&&uo.default.createElement(Ws,{form:!0,space:!0},p),addonAfter:f&&uo.default.createElement(Ws,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},d),A),{input:(0,Xl.default)({[`${F}-sm`]:q==="small",[`${F}-lg`]:q==="large",[`${F}-rtl`]:w==="rtl"},d?.input,A.input,N),variant:(0,Xl.default)({[`${F}-${de}`]:le},Yi(F,Y)),affixWrapper:(0,Xl.default)({[`${F}-affix-wrapper-sm`]:q==="small",[`${F}-affix-wrapper-lg`]:q==="large",[`${F}-affix-wrapper-rtl`]:w==="rtl"},N),wrapper:(0,Xl.default)({[`${F}-group-rtl`]:w==="rtl"},N),groupWrapper:(0,Xl.default)({[`${F}-group-wrapper-sm`]:q==="small",[`${F}-group-wrapper-lg`]:q==="large",[`${F}-group-wrapper-rtl`]:w==="rtl",[`${F}-group-wrapper-${de}`]:le},Yi(`${F}-group-wrapper`,Y,G),N)})}))))}),Ks=aU;var vE=E(Ne());var Pt=E(D());var Kn=E(D()),IF=E(Vi());function n0(e,t,r){return(e-t)/(r-t)}function Vu(e,t,r,n){var o=n0(t,r,n),i={};switch(e){case"rtl":i.right="".concat(o*100,"%"),i.transform="translateX(50%)";break;case"btt":i.bottom="".concat(o*100,"%"),i.transform="translateY(50%)";break;case"ttb":i.top="".concat(o*100,"%"),i.transform="translateY(-50%)";break;default:i.left="".concat(o*100,"%"),i.transform="translateX(-50%)";break}return i}function ea(e,t){return Array.isArray(e)?e[t]:e}var NF=E(Ne());var Hu=E(D());var uE=E(D()),sU=uE.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),fo=sU,fE=uE.createContext({});var lU=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],cU=Hu.forwardRef(function(e,t){var r=e.prefixCls,n=e.value,o=e.valueIndex,i=e.onStartMove,a=e.onDelete,s=e.style,l=e.render,c=e.dragging,u=e.draggingDelete,f=e.onOffsetChange,p=e.onChangeComplete,g=e.onFocus,h=e.onMouseEnter,v=Ve(e,lU),y=Hu.useContext(fo),m=y.min,d=y.max,x=y.direction,b=y.disabled,S=y.keyboard,w=y.range,C=y.tabIndex,R=y.ariaLabelForHandle,P=y.ariaLabelledByForHandle,O=y.ariaRequired,A=y.ariaValueTextFormatterForHandle,M=y.styles,F=y.classNames,H="".concat(r,"-handle"),j=function(z){b||i(z,o)},I=function(z){g?.(z,o)},N=function(z){h(z,o)},$=function(z){if(!b&&S){var G=null;switch(z.which||z.keyCode){case Qe.LEFT:G=x==="ltr"||x==="btt"?-1:1;break;case Qe.RIGHT:G=x==="ltr"||x==="btt"?1:-1;break;case Qe.UP:G=x!=="ttb"?1:-1;break;case Qe.DOWN:G=x!=="ttb"?-1:1;break;case Qe.HOME:G="min";break;case Qe.END:G="max";break;case Qe.PAGE_UP:G=2;break;case Qe.PAGE_DOWN:G=-2;break;case Qe.BACKSPACE:case Qe.DELETE:a(o);break}G!==null&&(z.preventDefault(),f(G,o))}},U=function(z){switch(z.which||z.keyCode){case Qe.LEFT:case Qe.RIGHT:case Qe.UP:case Qe.DOWN:case Qe.HOME:case Qe.END:case Qe.PAGE_UP:case Qe.PAGE_DOWN:p?.();break}},W=Vu(x,n,m,d),B={};if(o!==null){var q;B={tabIndex:b?null:ea(C,o),role:"slider","aria-valuemin":m,"aria-valuemax":d,"aria-valuenow":n,"aria-disabled":b,"aria-label":ea(R,o),"aria-labelledby":ea(P,o),"aria-required":ea(O,o),"aria-valuetext":(q=ea(A,o))===null||q===void 0?void 0:q(n),"aria-orientation":x==="ltr"||x==="rtl"?"horizontal":"vertical",onMouseDown:j,onTouchStart:j,onFocus:I,onMouseEnter:N,onKeyDown:$,onKeyUp:U}}var L=Hu.createElement("div",fe({ref:t,className:(0,NF.default)(H,_(_(_({},"".concat(H,"-").concat(o+1),o!==null&&w),"".concat(H,"-dragging"),c),"".concat(H,"-dragging-delete"),u),F.handle),style:T(T(T({},W),s),M.handle)},B,v));return l&&(L=l(L,{index:o,prefixCls:r,value:n,dragging:c,draggingDelete:u})),L}),dE=cU;var uU=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],fU=Kn.forwardRef(function(e,t){var r=e.prefixCls,n=e.style,o=e.onStartMove,i=e.onOffsetChange,a=e.values,s=e.handleRender,l=e.activeHandleRender,c=e.draggingIndex,u=e.draggingDelete,f=e.onFocus,p=Ve(e,uU),g=Kn.useRef({}),h=Kn.useState(!1),v=V(h,2),y=v[0],m=v[1],d=Kn.useState(-1),x=V(d,2),b=x[0],S=x[1],w=function(A){S(A),m(!0)},C=function(A,M){w(M),f?.(A)},R=function(A,M){w(M)};Kn.useImperativeHandle(t,function(){return{focus:function(A){var M;(M=g.current[A])===null||M===void 0||M.focus()},hideHelp:function(){(0,IF.flushSync)(function(){m(!1)})}}});var P=T({prefixCls:r,onStartMove:o,onOffsetChange:i,render:s,onFocus:C,onMouseEnter:R},p);return Kn.createElement(Kn.Fragment,null,a.map(function(O,A){var M=c===A;return Kn.createElement(dE,fe({ref:function(H){H?g.current[A]=H:delete g.current[A]},dragging:M,draggingDelete:M&&u,style:ea(n,A),key:A,value:O,valueIndex:A},P))}),l&&y&&Kn.createElement(dE,fe({key:"a11y"},P,{value:a[b],valueIndex:null,dragging:c!==-1,draggingDelete:u,render:l,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),DF=fU;var pE=E(D());var $F=E(Ne()),o0=E(D());var dU=function(t){var r=t.prefixCls,n=t.style,o=t.children,i=t.value,a=t.onClick,s=o0.useContext(fo),l=s.min,c=s.max,u=s.direction,f=s.includedStart,p=s.includedEnd,g=s.included,h="".concat(r,"-text"),v=Vu(u,i,l,c);return o0.createElement("span",{className:(0,$F.default)(h,_({},"".concat(h,"-active"),g&&f<=i&&i<=p)),style:T(T({},v),n),onMouseDown:function(m){m.stopPropagation()},onClick:function(){a(i)}},o)},kF=dU;var pU=function(t){var r=t.prefixCls,n=t.marks,o=t.onClick,i="".concat(r,"-mark");return n.length?pE.createElement("div",{className:i},n.map(function(a){var s=a.value,l=a.style,c=a.label;return pE.createElement(kF,{key:s,prefixCls:i,style:l,value:s,onClick:o},c)})):null},AF=pU;var Yl=E(D());var MF=E(Ne()),i0=E(D());var mU=function(t){var r=t.prefixCls,n=t.value,o=t.style,i=t.activeStyle,a=i0.useContext(fo),s=a.min,l=a.max,c=a.direction,u=a.included,f=a.includedStart,p=a.includedEnd,g="".concat(r,"-dot"),h=u&&f<=n&&n<=p,v=T(T({},Vu(c,n,s,l)),typeof o=="function"?o(n):o);return h&&(v=T(T({},v),typeof i=="function"?i(n):i)),i0.createElement("span",{className:(0,MF.default)(g,_({},"".concat(g,"-active"),h)),style:v})},FF=mU;var gU=function(t){var r=t.prefixCls,n=t.marks,o=t.dots,i=t.style,a=t.activeStyle,s=Yl.useContext(fo),l=s.min,c=s.max,u=s.step,f=Yl.useMemo(function(){var p=new Set;if(n.forEach(function(h){p.add(h.value)}),o&&u!==null)for(var g=l;g<=c;)p.add(g),g+=u;return Array.from(p)},[l,c,u,o,n]);return Yl.createElement("div",{className:"".concat(r,"-step")},f.map(function(p){return Yl.createElement(FF,{prefixCls:r,key:p,value:p,style:i,activeStyle:a})}))},LF=gU;var WF=E(Ne()),ta=E(D());var zF=E(Ne()),a0=E(D());var hU=function(t){var r=t.prefixCls,n=t.style,o=t.start,i=t.end,a=t.index,s=t.onStartMove,l=t.replaceCls,c=a0.useContext(fo),u=c.direction,f=c.min,p=c.max,g=c.disabled,h=c.range,v=c.classNames,y="".concat(r,"-track"),m=n0(o,f,p),d=n0(i,f,p),x=function(C){!g&&s&&s(C,-1)},b={};switch(u){case"rtl":b.right="".concat(m*100,"%"),b.width="".concat(d*100-m*100,"%");break;case"btt":b.bottom="".concat(m*100,"%"),b.height="".concat(d*100-m*100,"%");break;case"ttb":b.top="".concat(m*100,"%"),b.height="".concat(d*100-m*100,"%");break;default:b.left="".concat(m*100,"%"),b.width="".concat(d*100-m*100,"%")}var S=l||(0,zF.default)(y,_(_({},"".concat(y,"-").concat(a+1),a!==null&&h),"".concat(r,"-track-draggable"),s),v.track);return a0.createElement("div",{className:S,style:T(T({},b),n),onMouseDown:x,onTouchStart:x})},mE=hU;var vU=function(t){var r=t.prefixCls,n=t.style,o=t.values,i=t.startPoint,a=t.onStartMove,s=ta.useContext(fo),l=s.included,c=s.range,u=s.min,f=s.styles,p=s.classNames,g=ta.useMemo(function(){if(!c){if(o.length===0)return[];var v=i??u,y=o[0];return[{start:Math.min(v,y),end:Math.max(v,y)}]}for(var m=[],d=0;dyU&&u3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof v=="number"){var d,x=h[y],b=x+v,S=[];n.forEach(function(O){S.push(O.value)}),S.push(e,t),S.push(s(x));var w=v>0?1:-1;m==="unit"?S.push(s(x+w*r)):S.push(s(b)),S=S.filter(function(O){return O!==null}).filter(function(O){return v<0?O<=x:O>=x}),m==="unit"&&(S=S.filter(function(O){return O!==x}));var C=m==="unit"?x:b;d=S[0];var R=Math.abs(d-C);if(S.forEach(function(O){var A=Math.abs(O-C);A1){var P=te(h);return P[y]=d,g(P,v-w,y,m)}return d}else{if(v==="min")return e;if(v==="max")return t}},u=function(h,v,y){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",d=h[y],x=c(h,v,y,m);return{value:x,changed:x!==d}},f=function(h){return i===null&&h===0||typeof i=="number"&&h3&&arguments[3]!==void 0?arguments[3]:"unit",d=h.map(l),x=d[y],b=c(d,v,y,m);if(d[y]=b,o===!1){var S=i||0;y>0&&d[y-1]!==x&&(d[y]=Math.max(d[y],d[y-1]+S)),y0;P-=1)for(var O=!0;f(d[P]-d[P-1])&&O;){var A=u(d,-1,P-1);d[P-1]=A.value,O=A.changed}for(var M=d.length-1;M>0;M-=1)for(var F=!0;f(d[M]-d[M-1])&&F;){var H=u(d,-1,M-1);d[M-1]=H.value,F=H.changed}for(var j=0;j=0?N:!1},[N,We]),ye=Pt.useMemo(function(){return Object.keys(Y||{}).map(function(Ae){var ve=Y[Ae],nt={value:Number(Ae)};return ve&&ue(ve)==="object"&&!Pt.isValidElement(ve)&&("label"in ve||"style"in ve)?(nt.style=ve.style,nt.label=ve.label):nt.label=ve,nt}).filter(function(Ae){var ve=Ae.label;return ve||typeof ve=="number"}).sort(function(Ae,ve){return Ae.value-ve.value})},[Y]),se=gE(Ie,je,We,ye,j,He),xe=V(se,2),_e=xe[0],he=xe[1],Ze=ar(C,{value:w}),lt=V(Ze,2),Et=lt[0],Tt=lt[1],pt=Pt.useMemo(function(){var Ae=Et==null?[]:Array.isArray(Et)?Et:[Et],ve=V(Ae,1),nt=ve[0],It=nt===void 0?Ie:nt,Dt=Et===null?[]:[It];if(ie){if(Dt=te(Ae),P||Et===void 0){var mn=P>=0?P+1:2;for(Dt=Dt.slice(0,mn);Dt.length=0&&pe.current.focus(Ae)}Nt(null)},[At]);var Ft=Pt.useMemo(function(){return Le&&We===null?!1:Le},[Le,We]),rr=wt(function(Ae,ve){Se(Ae,ve),A?.(ke(pt))}),pr=be!==-1;Pt.useEffect(function(){if(!pr){var Ae=pt.lastIndexOf(ht);pe.current.focus(Ae)}},[pr]);var mr=Pt.useMemo(function(){return te(Fe).sort(function(Ae,ve){return Ae-ve})},[Fe]),An=Pt.useMemo(function(){return ie?[mr[0],mr[mr.length-1]]:[Ie,mr[0]]},[mr,ie,Ie]),gr=V(An,2),Lt=gr[0],Te=gr[1];Pt.useImperativeHandle(t,function(){return{focus:function(){pe.current.focus(0)},blur:function(){var ve,nt=document,It=nt.activeElement;(ve=Oe.current)!==null&&ve!==void 0&&ve.contains(It)&&It?.blur()}}}),Pt.useEffect(function(){g&&pe.current.focus(0)},[]);var Ue=Pt.useMemo(function(){return{min:Ie,max:je,direction:Ce,disabled:u,keyboard:p,step:We,included:B,includedStart:Lt,includedEnd:Te,range:ie,tabIndex:re,ariaLabelForHandle:ee,ariaLabelledByForHandle:ne,ariaRequired:de,ariaValueTextFormatterForHandle:le,styles:s||{},classNames:a||{}}},[Ie,je,Ce,u,p,We,B,Lt,Te,ie,re,ee,ne,de,le,s,a]);return Pt.createElement(fo.Provider,{value:Ue},Pt.createElement("div",{ref:Oe,className:(0,vE.default)(n,o,_(_(_(_({},"".concat(n,"-disabled"),u),"".concat(n,"-vertical"),U),"".concat(n,"-horizontal"),!U),"".concat(n,"-with-marks"),ye.length)),style:i,onMouseDown:Be,id:l},Pt.createElement("div",{className:(0,vE.default)("".concat(n,"-rail"),a?.rail),style:T(T({},z),s?.rail)}),K!==!1&&Pt.createElement(BF,{prefixCls:n,style:L,values:pt,startPoint:q,onStartMove:Ft?rr:void 0}),Pt.createElement(LF,{prefixCls:n,marks:ye,dots:X,style:G,activeStyle:J}),Pt.createElement(DF,{ref:pe,prefixCls:n,style:k,values:Fe,draggingIndex:be,draggingDelete:Mt,onStartMove:rr,onOffsetChange:tr,onFocus:h,onBlur:v,handleRender:ae,activeHandleRender:Z,onChangeComplete:et,onDelete:Re?Pe:void 0}),Pt.createElement(AF,{prefixCls:n,marks:ye,onClick:Ke})))}),UF=bU;var qF=UF;var ra=E(D()),Gu=E(Ne());var GF=E(D()),SU=(0,GF.createContext)({}),KF=SU;var Uu=E(D()),yE=E(D());var CU=Uu.forwardRef((e,t)=>{let{open:r,draggingDelete:n,value:o}=e,i=(0,yE.useRef)(null),a=r&&!n,s=(0,yE.useRef)(null);function l(){dt.cancel(s.current),s.current=null}function c(){s.current=dt(()=>{var u;(u=i.current)===null||u===void 0||u.forceAlign(),s.current=null})}return Uu.useEffect(()=>(a?c():l(),l),[a,e.title,o]),Uu.createElement(Ma,Object.assign({ref:zr(i,t)},e,{open:a}))}),xE=CU;var wU=e=>{let{componentCls:t,antCls:r,controlSize:n,dotSize:o,marginFull:i,marginPart:a,colorFillContentHover:s,handleColorDisabled:l,calc:c,handleSize:u,handleSizeHover:f,handleActiveColor:p,handleActiveOutlineColor:g,handleLineWidth:h,handleLineWidthHover:v,motionDurationMid:y}=e;return{[t]:Object.assign(Object.assign({},sr(e)),{position:"relative",height:n,margin:`${oe(a)} ${oe(i)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${oe(i)} ${oe(a)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${y}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${y}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${oe(h)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:u,height:u,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:c(h).mul(-1).equal(),insetBlockStart:c(h).mul(-1).equal(),width:c(u).add(c(h).mul(2)).equal(),height:c(u).add(c(h).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:u,height:u,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${oe(h)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:` inset-inline-start ${y}, inset-block-start ${y}, width ${y}, height ${y}, box-shadow ${y}, outline ${y} `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:c(f).sub(u).div(2).add(v).mul(-1).equal(),insetBlockStart:c(f).sub(u).div(2).add(v).mul(-1).equal(),width:c(f).add(c(v).mul(2)).equal(),height:c(f).add(c(v).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${oe(v)} ${p}`,outline:`6px solid ${g}`,width:f,height:f,insetInlineStart:e.calc(u).sub(f).div(2).equal(),insetBlockStart:e.calc(u).sub(f).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${oe(h)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[` ${t}-dot `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:u,height:u,boxShadow:`0 0 0 ${oe(h)} ${l}`,insetInlineStart:0,insetBlockStart:0},[` ${t}-mark-text, ${t}-dot `]:{cursor:"not-allowed !important"}},[`&-tooltip ${r}-tooltip-inner`]:{minWidth:"unset"}})}},XF=(e,t)=>{let{componentCls:r,railSize:n,handleSize:o,dotSize:i,marginFull:a,calc:s}=e,l=t?"paddingBlock":"paddingInline",c=t?"width":"height",u=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",p=t?"top":"insetInlineStart",g=s(n).mul(3).sub(o).div(2).equal(),h=s(o).sub(n).div(2).equal(),v=t?{borderWidth:`${oe(h)} 0`,transform:`translateY(${oe(s(h).mul(-1).equal())})`}:{borderWidth:`0 ${oe(h)}`,transform:`translateX(${oe(e.calc(h).mul(-1).equal())})`};return{[l]:n,[u]:s(n).mul(3).equal(),[`${r}-rail`]:{[c]:"100%",[u]:n},[`${r}-track,${r}-tracks`]:{[u]:n},[`${r}-track-draggable`]:Object.assign({},v),[`${r}-handle`]:{[f]:g},[`${r}-mark`]:{insetInlineStart:0,top:0,[p]:s(n).mul(3).add(t?0:a).equal(),[c]:"100%"},[`${r}-step`]:{insetInlineStart:0,top:0,[p]:n,[c]:"100%",[u]:n},[`${r}-dot`]:{position:"absolute",[f]:s(n).sub(i).div(2).equal()}}},EU=e=>{let{componentCls:t,marginPartWithMark:r}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},XF(e,!0)),{[`&${t}-with-marks`]:{marginBottom:r}})}},RU=e=>{let{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},XF(e,!1)),{height:"100%"})}},OU=e=>{let r=e.controlHeightLG/4,n=e.controlHeightSM/2,o=e.lineWidth+1,i=e.lineWidth+1*1.5,a=e.colorPrimary,s=new gt(a).setA(.2).toRgbString();return{controlSize:r,railSize:4,handleSize:r,handleSizeHover:n,dotSize:8,handleLineWidth:o,handleLineWidthHover:i,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:a,handleActiveOutlineColor:s,handleColorDisabled:new gt(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},YF=Gt("Slider",e=>{let t=ut(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[wU(t),EU(t),RU(t)]},OU);var qu=E(D());function dp(){let[e,t]=qu.useState(!1),r=qu.useRef(null),n=()=>{dt.cancel(r.current)},o=i=>{n(),i?t(i):r.current=dt(()=>{t(i)})};return qu.useEffect(()=>n,[]),[e,o]}var _U=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);otypeof r=="number"?r.toString():""}var TU=ra.default.forwardRef((e,t)=>{let{prefixCls:r,range:n,className:o,rootClassName:i,style:a,disabled:s,tooltipPrefixCls:l,tipFormatter:c,tooltipVisible:u,getTooltipPopupContainer:f,tooltipPlacement:p,tooltip:g={},onChangeComplete:h,classNames:v,styles:y}=e,m=_U(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:d}=e,{getPrefixCls:x,direction:b,className:S,style:w,classNames:C,styles:R,getPopupContainer:P}=no("slider"),O=ra.default.useContext(qr),A=s??O,{handleRender:M,direction:F}=ra.default.useContext(KF),j=(F||b)==="rtl",[I,N]=dp(),[$,U]=dp(),W=Object.assign({},g),{open:B,placement:q,getPopupContainer:L,prefixCls:k,formatter:z}=W,G=B??u,J=(I||$)&&G!==!1,Y=PU(z,c),[X,ae]=dp(),Z=ie=>{h?.(ie),ae(!1)},K=(ie,Re)=>ie||(Re?j?"left":"right":"top"),Q=x("slider",r),[re,ee,ne]=YF(Q),de=(0,Gu.default)(o,S,C.root,v?.root,i,{[`${Q}-rtl`]:j,[`${Q}-lock`]:X},ee,ne);j&&!m.vertical&&(m.reverse=!m.reverse),ra.default.useEffect(()=>{let ie=()=>{dt(()=>{U(!1)},1)};return document.addEventListener("mouseup",ie),()=>{document.removeEventListener("mouseup",ie)}},[]);let le=n&&!G,pe=M||((ie,Re)=>{let{index:Le}=Re,Ge=ie.props;function Me(He,ye,se){var xe,_e,he,Ze;se&&((_e=(xe=m)[He])===null||_e===void 0||_e.call(xe,ye)),(Ze=(he=Ge)[He])===null||Ze===void 0||Ze.call(he,ye)}let Ie=Object.assign(Object.assign({},Ge),{onMouseEnter:He=>{N(!0),Me("onMouseEnter",He)},onMouseLeave:He=>{N(!1),Me("onMouseLeave",He)},onMouseDown:He=>{U(!0),ae(!0),Me("onMouseDown",He)},onFocus:He=>{var ye;U(!0),(ye=m.onFocus)===null||ye===void 0||ye.call(m,He),Me("onFocus",He,!0)},onBlur:He=>{var ye;U(!1),(ye=m.onBlur)===null||ye===void 0||ye.call(m,He),Me("onBlur",He,!0)}}),je=ra.default.cloneElement(ie,Ie),We=(!!G||J)&&Y!==null;return le?je:ra.default.createElement(xE,Object.assign({},W,{prefixCls:x("tooltip",k??l),title:Y?Y(Re.value):"",value:Re.value,open:We,placement:K(q??p,d),key:Le,classNames:{root:`${Q}-tooltip`},getPopupContainer:L||f||P}),je)}),Oe=le?(ie,Re)=>{let Le=ra.default.cloneElement(ie,{style:Object.assign(Object.assign({},ie.props.style),{visibility:"hidden"})});return ra.default.createElement(xE,Object.assign({},W,{prefixCls:x("tooltip",k??l),title:Y?Y(Re.value):"",open:Y!==null&&J,placement:K(q??p,d),key:"tooltip",classNames:{root:`${Q}-tooltip`},getPopupContainer:L||f||P,draggingDelete:Re.draggingDelete}),Le)}:void 0,Ce=Object.assign(Object.assign(Object.assign(Object.assign({},R.root),w),y?.root),a),$e=Object.assign(Object.assign({},R.tracks),y?.tracks),ce=(0,Gu.default)(C.tracks,v?.tracks);return re(ra.default.createElement(qF,Object.assign({},m,{classNames:Object.assign({handle:(0,Gu.default)(C.handle,v?.handle),rail:(0,Gu.default)(C.rail,v?.rail),track:(0,Gu.default)(C.track,v?.track)},ce?{tracks:ce}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},R.handle),y?.handle),rail:Object.assign(Object.assign({},R.rail),y?.rail),track:Object.assign(Object.assign({},R.track),y?.track)},Object.keys($e).length?{tracks:$e}:{}),step:m.step,range:n,className:de,style:Ce,disabled:A,ref:t,prefixCls:Q,handleRender:pe,activeHandleRender:Oe,onChangeComplete:Z})))}),bE=TU;function SE(e){return["small","middle","large"].includes(e)}var l0=E(D()),eL=E(Ne());var QF=E(Ne()),CE=["wrap","nowrap","wrap-reverse"],wE=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],EE=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],NU=(e,t)=>{let r=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${r}`]:r&&CE.includes(r)}},IU=(e,t)=>{let r={};return EE.forEach(n=>{r[`${e}-align-${n}`]=t.align===n}),r[`${e}-align-stretch`]=!t.align&&!!t.vertical,r},DU=(e,t)=>{let r={};return wE.forEach(n=>{r[`${e}-justify-${n}`]=t.justify===n}),r};function $U(e,t){return(0,QF.default)(Object.assign(Object.assign(Object.assign({},NU(e,t)),IU(e,t)),DU(e,t)))}var JF=$U;var kU=e=>{let{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},AU=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},MU=e=>{let{componentCls:t}=e,r={};return CE.forEach(n=>{r[`${t}-wrap-${n}`]={flexWrap:n}}),r},FU=e=>{let{componentCls:t}=e,r={};return EE.forEach(n=>{r[`${t}-align-${n}`]={alignItems:n}}),r},LU=e=>{let{componentCls:t}=e,r={};return wE.forEach(n=>{r[`${t}-justify-${n}`]={justifyContent:n}}),r},zU=()=>({}),ZF=Gt("Flex",e=>{let{paddingXS:t,padding:r,paddingLG:n}=e,o=ut(e,{flexGapSM:t,flexGap:r,flexGapLG:n});return[kU(o),AU(o),MU(o),FU(o),LU(o)]},zU,{resetStyle:!1});var WU=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let{prefixCls:r,rootClassName:n,className:o,style:i,flex:a,gap:s,children:l,vertical:c=!1,component:u="div"}=e,f=WU(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:p,direction:g,getPrefixCls:h}=l0.default.useContext(rt),v=h("flex",r),[y,m,d]=ZF(v),x=c??p?.vertical,b=(0,eL.default)(o,n,p?.className,v,m,d,JF(v,e),{[`${v}-rtl`]:g==="rtl",[`${v}-gap-${s}`]:SE(s),[`${v}-vertical`]:x}),S=Object.assign(Object.assign({},p?.style),i);return a&&(S.flex=a),s&&!SE(s)&&(S.gap=s),y(l0.default.createElement(u,Object.assign({ref:t,className:b,style:S},Kr(f,["justify","wrap","align"])),l))}),Ba=BU;var c0=E(D());var jU={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"},tL=jU;var VU=function(t,r){return c0.createElement(zt,fe({},t,{ref:r,icon:tL}))},HU=c0.forwardRef(VU),u0=HU;var RE=E(D()),pp=E(D()),rL=E(Ne());var UU=e=>{let{getPrefixCls:t,direction:r}=(0,pp.useContext)(rt),{prefixCls:n,className:o}=e,i=t("input-group",n),a=t("input"),[s,l,c]=Hy(a),u=(0,rL.default)(i,c,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:r==="rtl"},l,o),f=(0,pp.useContext)(dn),p=(0,pp.useMemo)(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return s(RE.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},RE.createElement(dn.Provider,{value:p},e.children)))},nL=UU;var dr=E(D()),sL=E(Ne());var qU=e=>{let{componentCls:t,paddingXS:r}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:r,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:"var(--ant-color-text)"},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},oL=Gt(["Input","OTP"],e=>{let t=ut(e,Fa(e));return[qU(t)]},La);var ai=E(D()),iL=E(Ne());var GU=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let{className:r,value:n,onChange:o,onActiveChange:i,index:a,mask:s}=e,l=GU(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:c}=ai.useContext(rt),u=c("otp"),f=typeof s=="string"?s:n,p=ai.useRef(null);ai.useImperativeHandle(t,()=>p.current);let g=m=>{o(a,m.target.value)},h=()=>{dt(()=>{var m;let d=(m=p.current)===null||m===void 0?void 0:m.input;document.activeElement===d&&d&&d.select()})},v=m=>{let{key:d,ctrlKey:x,metaKey:b}=m;d==="ArrowLeft"?i(a-1):d==="ArrowRight"?i(a+1):d==="z"&&(x||b)&&m.preventDefault(),h()},y=m=>{m.key==="Backspace"&&!n&&i(a-1),h()};return ai.createElement("span",{className:`${u}-input-wrapper`,role:"presentation"},s&&n!==""&&n!==void 0&&ai.createElement("span",{className:`${u}-mask-icon`,"aria-hidden":"true"},f),ai.createElement(Ks,Object.assign({"aria-label":`OTP Input ${a+1}`,type:s===!0?"password":"text"},l,{ref:p,value:n,onInput:g,onFocus:h,onKeyDown:v,onKeyUp:y,onMouseDown:h,onMouseUp:h,className:(0,iL.default)(r,{[`${u}-mask-input`]:s})})))}),aL=KU;var XU=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let{index:t,prefixCls:r,separator:n}=e,o=typeof n=="function"?n(t):n;return o?dr.createElement("span",{className:`${r}-separator`},o):null},QU=dr.forwardRef((e,t)=>{let{prefixCls:r,length:n=6,size:o,defaultValue:i,value:a,onChange:s,formatter:l,separator:c,variant:u,disabled:f,status:p,autoFocus:g,mask:h,type:v,onInput:y,inputMode:m}=e,d=XU(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:x,direction:b}=dr.useContext(rt),S=x("otp",r),w=qo(d,{aria:!0,data:!0,attr:!0}),[C,R,P]=oL(S),O=ao(k=>o??k),A=dr.useContext(dn),M=Qi(A.status,p),F=dr.useMemo(()=>Object.assign(Object.assign({},A),{status:M,hasFeedback:!1,feedbackIcon:null}),[A,M]),H=dr.useRef(null),j=dr.useRef({});dr.useImperativeHandle(t,()=>({focus:()=>{var k;(k=j.current[0])===null||k===void 0||k.focus()},blur:()=>{var k;for(let z=0;zl?l(k):k,[N,$]=dr.useState(()=>f0(I(i||"")));dr.useEffect(()=>{a!==void 0&&$(f0(a))},[a]);let U=wt(k=>{$(k),y&&y(k),s&&k.length===n&&k.every(z=>z)&&k.some((z,G)=>N[G]!==z)&&s(k.join(""))}),W=wt((k,z)=>{let G=te(N);for(let Y=0;Y=0&&!G[Y];Y-=1)G.pop();let J=I(G.map(Y=>Y||" ").join(""));return G=f0(J).map((Y,X)=>Y===" "&&!G[X]?G[X]:Y),G}),B=(k,z)=>{var G;let J=W(k,z),Y=Math.min(k+z.length,n-1);Y!==k&&J[k]!==void 0&&((G=j.current[Y])===null||G===void 0||G.focus()),U(J)},q=k=>{var z;(z=j.current[k])===null||z===void 0||z.focus()},L={variant:u,disabled:f,status:M,mask:h,type:v,inputMode:m};return C(dr.createElement("div",Object.assign({},w,{ref:H,className:(0,sL.default)(S,{[`${S}-sm`]:O==="small",[`${S}-lg`]:O==="large",[`${S}-rtl`]:b==="rtl"},P,R),role:"group"}),dr.createElement(dn.Provider,{value:F},Array.from({length:n}).map((k,z)=>{let G=`otp-${z}`,J=N[z]||"";return dr.createElement(dr.Fragment,{key:G},dr.createElement(aL,Object.assign({ref:Y=>{j.current[z]=Y},index:z,size:O,htmlSize:1,className:`${S}-input`,onChange:B,value:J,onActiveChange:q,autoFocus:z===0&&g},L)),ze?Dn.createElement(u0,null):Dn.createElement(uL,null),nq={click:"onClick",hover:"onMouseOver"},oq=Dn.forwardRef((e,t)=>{let{disabled:r,action:n="click",visibilityToggle:o=!0,iconRender:i=rq}=e,a=Dn.useContext(qr),s=r??a,l=typeof o=="object"&&o.visible!==void 0,[c,u]=(0,p0.useState)(()=>l?o.visible:!1),f=(0,p0.useRef)(null);Dn.useEffect(()=>{l&&u(o.visible)},[l,o]);let p=fp(f),g=()=>{var O;if(s)return;c&&p();let A=!c;u(A),typeof o=="object"&&((O=o.onVisibleChange)===null||O===void 0||O.call(o,A))},h=O=>{let A=nq[n]||"",M=i(c),F={[A]:g,className:`${O}-icon`,key:"passwordIcon",onMouseDown:H=>{H.preventDefault()},onMouseUp:H=>{H.preventDefault()}};return Dn.cloneElement(Dn.isValidElement(M)?M:Dn.createElement("span",null,M),F)},{className:v,prefixCls:y,inputPrefixCls:m,size:d}=e,x=tq(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:b}=Dn.useContext(rt),S=b("input",m),w=b("input-password",y),C=o&&h(w),R=(0,fL.default)(w,v,{[`${w}-${d}`]:!!d}),P=Object.assign(Object.assign({},Kr(x,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:R,prefixCls:S,suffix:C});return d&&(P.size=d),Dn.createElement(Ks,Object.assign({ref:zr(t,f)},P))}),dL=oq;var Ii=E(D());var pL=E(Ne());var iq=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let{prefixCls:r,inputPrefixCls:n,className:o,size:i,suffix:a,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:f,onChange:p,onCompositionStart:g,onCompositionEnd:h,variant:v,onPressEnter:y}=e,m=iq(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:d,direction:x}=Ii.useContext(rt),b=Ii.useRef(!1),S=d("input-search",r),w=d("input",n),{compactSize:C}=Xo(S,x),R=ao(L=>{var k;return(k=i??C)!==null&&k!==void 0?k:L}),P=Ii.useRef(null),O=L=>{L?.target&&L.type==="click"&&f&&f(L.target.value,L,{source:"clear"}),p?.(L)},A=L=>{var k;document.activeElement===((k=P.current)===null||k===void 0?void 0:k.input)&&L.preventDefault()},M=L=>{var k,z;f&&f((z=(k=P.current)===null||k===void 0?void 0:k.input)===null||z===void 0?void 0:z.value,L,{source:"input"})},F=L=>{b.current||c||(y?.(L),M(L))},H=typeof s=="boolean"?Ii.createElement(Ny,null):null,j=`${S}-button`,I,N=s||{},$=N.type&&N.type.__ANT_BUTTON===!0;$||N.type==="button"?I=Go(N,Object.assign({onMouseDown:A,onClick:L=>{var k,z;(z=(k=N?.props)===null||k===void 0?void 0:k.onClick)===null||z===void 0||z.call(k,L),M(L)},key:"enterButton"},$?{className:j,size:R}:{})):I=Ii.createElement(zd,{className:j,color:s?"primary":"default",size:R,disabled:u,key:"enterButton",onMouseDown:A,onClick:M,loading:c,icon:H,variant:v==="borderless"||v==="filled"||v==="underlined"?"text":s?"solid":void 0},s),l&&(I=[I,Go(l,{key:"addonAfter"})]);let U=(0,pL.default)(S,{[`${S}-rtl`]:x==="rtl",[`${S}-${R}`]:!!R,[`${S}-with-button`]:!!s},o),W=L=>{b.current=!0,g?.(L)},B=L=>{b.current=!1,h?.(L)},q=Object.assign(Object.assign({},m),{className:U,prefixCls:w,type:"search",size:R,variant:v,onPressEnter:F,onCompositionStart:W,onCompositionEnd:B,addonAfter:I,suffix:a,onChange:O,disabled:u});return Ii.createElement(Ks,Object.assign({ref:zr(P,t)},q))}),mL=aq;var To=E(D()),xL=E(D()),gp=E(Ne());var mp=E(Ne());var Zr=E(D());var gL=E(Ne());var Cn=E(D());var sq=` 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; `,lq=["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"],OE={},Po;function cq(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&OE[r])return OE[r];var n=window.getComputedStyle(e),o=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),i=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),a=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),s=lq.map(function(c){return"".concat(c,":").concat(n.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:a,boxSizing:o};return t&&r&&(OE[r]=l),l}function _E(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Po||(Po=document.createElement("textarea"),Po.setAttribute("tab-index","-1"),Po.setAttribute("aria-hidden","true"),Po.setAttribute("name","hiddenTextarea"),document.body.appendChild(Po)),e.getAttribute("wrap")?Po.setAttribute("wrap",e.getAttribute("wrap")):Po.removeAttribute("wrap");var o=cq(e,t),i=o.paddingSize,a=o.borderSize,s=o.boxSizing,l=o.sizingStyle;Po.setAttribute("style","".concat(l,";").concat(sq)),Po.value=e.value||e.placeholder||"";var c=void 0,u=void 0,f,p=Po.scrollHeight;if(s==="border-box"?p+=a:s==="content-box"&&(p-=i),r!==null||n!==null){Po.value=" ";var g=Po.scrollHeight-i;r!==null&&(c=g*r,s==="border-box"&&(c=c+i+a),p=Math.max(c,p)),n!==null&&(u=g*n,s==="border-box"&&(u=u+i+a),f=p>u?"":"hidden",p=Math.min(u,p))}var h={height:p,overflowY:f,resize:"none"};return c&&(h.minHeight=c),u&&(h.maxHeight=u),h}var uq=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],PE=0,TE=1,NE=2,fq=Cn.forwardRef(function(e,t){var r=e,n=r.prefixCls,o=r.defaultValue,i=r.value,a=r.autoSize,s=r.onResize,l=r.className,c=r.style,u=r.disabled,f=r.onChange,p=r.onInternalAutoSize,g=Ve(r,uq),h=ar(o,{value:i,postState:function(z){return z??""}}),v=V(h,2),y=v[0],m=v[1],d=function(z){m(z.target.value),f?.(z)},x=Cn.useRef();Cn.useImperativeHandle(t,function(){return{textArea:x.current}});var b=Cn.useMemo(function(){return a&&ue(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),S=V(b,2),w=S[0],C=S[1],R=!!a,P=function(){try{if(document.activeElement===x.current){var z=x.current,G=z.selectionStart,J=z.selectionEnd,Y=z.scrollTop;x.current.setSelectionRange(G,J),x.current.scrollTop=Y}}catch{}},O=Cn.useState(NE),A=V(O,2),M=A[0],F=A[1],H=Cn.useState(),j=V(H,2),I=j[0],N=j[1],$=function(){F(PE)};vt(function(){R&&$()},[i,w,C,R]),vt(function(){if(M===PE)F(TE);else if(M===TE){var k=_E(x.current,!1,w,C);F(NE),N(k)}else P()},[M]);var U=Cn.useRef(),W=function(){dt.cancel(U.current)},B=function(z){M===NE&&(s?.(z),a&&(W(),U.current=dt(function(){$()})))};Cn.useEffect(function(){return W},[]);var q=R?I:null,L=T(T({},c),q);return(M===PE||M===TE)&&(L.overflowY="hidden",L.overflowX="hidden"),Cn.createElement(ro,{onResize:B,disabled:!(a||s)},Cn.createElement("textarea",fe({},g,{ref:x,style:L,className:(0,gL.default)(n,l,_({},"".concat(n,"-disabled"),u)),disabled:u,value:y,onChange:d})))}),IE=fq;var dq=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],pq=Zr.default.forwardRef(function(e,t){var r,n=e.defaultValue,o=e.value,i=e.onFocus,a=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,f=e.onCompositionEnd,p=e.suffix,g=e.prefixCls,h=g===void 0?"rc-textarea":g,v=e.showCount,y=e.count,m=e.className,d=e.style,x=e.disabled,b=e.hidden,S=e.classNames,w=e.styles,C=e.onResize,R=e.onClear,P=e.onPressEnter,O=e.readOnly,A=e.autoSize,M=e.onKeyDown,F=Ve(e,dq),H=ar(n,{value:o,defaultValue:n}),j=V(H,2),I=j[0],N=j[1],$=I==null?"":String(I),U=Zr.default.useState(!1),W=V(U,2),B=W[0],q=W[1],L=Zr.default.useRef(!1),k=Zr.default.useState(null),z=V(k,2),G=z[0],J=z[1],Y=(0,Zr.useRef)(null),X=(0,Zr.useRef)(null),ae=function(){var se;return(se=X.current)===null||se===void 0?void 0:se.textArea},Z=function(){ae().focus()};(0,Zr.useImperativeHandle)(t,function(){var ye;return{resizableTextArea:X.current,focus:Z,blur:function(){ae().blur()},nativeElement:((ye=Y.current)===null||ye===void 0?void 0:ye.nativeElement)||ae()}}),(0,Zr.useEffect)(function(){q(function(ye){return!x&&ye})},[x]);var K=Zr.default.useState(null),Q=V(K,2),re=Q[0],ee=Q[1];Zr.default.useEffect(function(){if(re){var ye;(ye=ae()).setSelectionRange.apply(ye,te(re))}},[re]);var ne=up(y,v),de=(r=ne.max)!==null&&r!==void 0?r:c,le=Number(de)>0,pe=ne.strategy($),Oe=!!de&&pe>de,Ce=function(se,xe){var _e=xe;!L.current&&ne.exceedFormatter&&ne.max&&ne.strategy(xe)>ne.max&&(_e=ne.exceedFormatter(xe,{max:ne.max}),xe!==_e&&ee([ae().selectionStart||0,ae().selectionEnd||0])),N(_e),ju(se.currentTarget,se,s,_e)},$e=function(se){L.current=!0,u?.(se)},ce=function(se){L.current=!1,Ce(se,se.currentTarget.value),f?.(se)},ie=function(se){Ce(se,se.target.value)},Re=function(se){se.key==="Enter"&&P&&P(se),M?.(se)},Le=function(se){q(!0),i?.(se)},Ge=function(se){q(!1),a?.(se)},Me=function(se){N(""),Z(),ju(ae(),se,s)},Ie=p,je;ne.show&&(ne.showFormatter?je=ne.showFormatter({value:$,count:pe,maxLength:de}):je="".concat(pe).concat(le?" / ".concat(de):""),Ie=Zr.default.createElement(Zr.default.Fragment,null,Ie,Zr.default.createElement("span",{className:(0,mp.default)("".concat(h,"-data-count"),S?.count),style:w?.count},je)));var We=function(se){var xe;C?.(se),(xe=ae())!==null&&xe!==void 0&&xe.style.height&&J(!0)},He=!A&&!v&&!l;return Zr.default.createElement(Gl,{ref:Y,value:$,allowClear:l,handleReset:Me,suffix:Ie,prefixCls:h,classNames:T(T({},S),{},{affixWrapper:(0,mp.default)(S?.affixWrapper,_(_({},"".concat(h,"-show-count"),v),"".concat(h,"-textarea-allow-clear"),l))}),disabled:x,focused:B,className:(0,mp.default)(m,Oe&&"".concat(h,"-out-of-range")),style:T(T({},d),G&&!He?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof je=="string"?je:void 0}},hidden:b,readOnly:O,onClear:R},Zr.default.createElement(IE,fe({},F,{autoSize:A,maxLength:c,onKeyDown:Re,onChange:ie,onFocus:Le,onBlur:Ge,onCompositionStart:$e,onCompositionEnd:ce,className:(0,mp.default)(S?.textarea),style:T(T({},w?.textarea),{},{resize:d?.resize}),disabled:x,prefixCls:h,onResize:We,ref:X,readOnly:O})))}),hL=pq;var vL=hL;var mq=e=>{let{componentCls:t,paddingLG:r}=e,n=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[n]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[` &-allow-clear > ${t}, &-affix-wrapper${n}-has-feedback ${t} `]:{paddingInlineEnd:r},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${n}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},yL=Gt(["Input","TextArea"],e=>{let t=ut(e,Fa(e));return[mq(t)]},La,{resetFont:!1});var gq=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var r;let{prefixCls:n,bordered:o=!0,size:i,disabled:a,status:s,allowClear:l,classNames:c,rootClassName:u,className:f,style:p,styles:g,variant:h,showCount:v,onMouseDown:y,onResize:m}=e,d=gq(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:x,direction:b,allowClear:S,autoComplete:w,className:C,style:R,classNames:P,styles:O}=no("textArea"),A=To.useContext(qr),M=a??A,{status:F,hasFeedback:H,feedbackIcon:j}=To.useContext(dn),I=Qi(F,s),N=To.useRef(null);To.useImperativeHandle(t,()=>{var ne;return{resizableTextArea:(ne=N.current)===null||ne===void 0?void 0:ne.resizableTextArea,focus:de=>{var le,pe;ql((pe=(le=N.current)===null||le===void 0?void 0:le.resizableTextArea)===null||pe===void 0?void 0:pe.textArea,de)},blur:()=>{var de;return(de=N.current)===null||de===void 0?void 0:de.blur()}}});let $=x("input",n),U=Ko($),[W,B,q]=Vy($,u),[L]=yL($,U),{compactSize:k,compactItemClassnames:z}=Xo($,b),G=ao(ne=>{var de;return(de=i??k)!==null&&de!==void 0?de:ne}),[J,Y]=Gs("textArea",h,o),X=t0(l??S),[ae,Z]=To.useState(!1),[K,Q]=To.useState(!1),re=ne=>{Z(!0),y?.(ne);let de=()=>{Z(!1),document.removeEventListener("mouseup",de)};document.addEventListener("mouseup",de)},ee=ne=>{var de,le;if(m?.(ne),ae&&typeof getComputedStyle=="function"){let pe=(le=(de=N.current)===null||de===void 0?void 0:de.nativeElement)===null||le===void 0?void 0:le.querySelector("textarea");pe&&getComputedStyle(pe).resize==="both"&&Q(!0)}};return W(L(To.createElement(vL,Object.assign({autoComplete:w},d,{style:Object.assign(Object.assign({},R),p),styles:Object.assign(Object.assign({},O),g),disabled:M,allowClear:X,className:(0,gp.default)(q,U,f,u,z,C,K&&`${$}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},c),P),{textarea:(0,gp.default)({[`${$}-sm`]:G==="small",[`${$}-lg`]:G==="large"},B,c?.textarea,P.textarea,ae&&`${$}-mouse-active`),variant:(0,gp.default)({[`${$}-${J}`]:Y},Yi($,I)),affixWrapper:(0,gp.default)(`${$}-textarea-affix-wrapper`,{[`${$}-affix-wrapper-rtl`]:b==="rtl",[`${$}-affix-wrapper-sm`]:G==="small",[`${$}-affix-wrapper-lg`]:G==="large",[`${$}-textarea-show-count`]:v||((r=e.count)===null||r===void 0?void 0:r.show)},B)}),prefixCls:$,suffix:H&&To.createElement("span",{className:`${$}-textarea-suffix`},j),showCount:v,ref:N,onResize:ee,onMouseDown:re}))))}),bL=hq;var Ku=Ks;Ku.Group=nL;Ku.Search=mL;Ku.TextArea=bL;Ku.Password=dL;Ku.OTP=lL;var hp=Ku;var en=E(D());var FE=E(Ne());var Qu=E(D()),NL=E(Ne());var vq=E(D()),yq=E(Ne());var vp=E(D()),DE={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},$E=function(){var t=(0,vp.useRef)([]),r=(0,vp.useRef)(null);return(0,vp.useEffect)(function(){var n=Date.now(),o=!1;t.current.forEach(function(i){if(i){o=!0;var a=i.style;a.transitionDuration=".3s, .3s, .3s, .06s",r.current&&n-r.current<100&&(a.transitionDuration="0s, 0s")}}),o&&(r.current=Date.now())}),t.current};var yp=E(D()),_L=E(Ne());var m0=E(D());var SL=0,xq=Yt();function bq(){var e;return xq?(e=SL,SL+=1):e="TEST_OR_SSR",e}var CL=function(e){var t=m0.useState(),r=V(t,2),n=r[0],o=r[1];return m0.useEffect(function(){o("rc_progress_".concat(bq()))},[]),e||n};var si=E(D()),wL=function(t){var r=t.bg,n=t.children;return si.createElement("div",{style:{width:"100%",height:"100%",background:r}},n)};function EL(e,t){return Object.keys(e).map(function(r){var n=parseFloat(r),o="".concat(Math.floor(n*t),"%");return"".concat(e[r]," ").concat(o)})}var Sq=si.forwardRef(function(e,t){var r=e.prefixCls,n=e.color,o=e.gradientId,i=e.radius,a=e.style,s=e.ptg,l=e.strokeLinecap,c=e.strokeWidth,u=e.size,f=e.gapDegree,p=n&&ue(n)==="object",g=p?"#FFF":void 0,h=u/2,v=si.createElement("circle",{className:"".concat(r,"-circle-path"),r:i,cx:h,cy:h,stroke:g,strokeLinecap:l,strokeWidth:c,opacity:s===0?0:1,style:a,ref:t});if(!p)return v;var y="".concat(o,"-conic"),m=f?"".concat(180+f/2,"deg"):"0deg",d=EL(n,(360-f)/360),x=EL(n,1),b="conic-gradient(from ".concat(m,", ").concat(d.join(", "),")"),S="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(x.join(", "),")");return si.createElement(si.Fragment,null,si.createElement("mask",{id:y},v),si.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:"url(#".concat(y,")")},si.createElement(wL,{bg:S},si.createElement(wL,{bg:b}))))}),RL=Sq;var Xu=100,g0=function(t,r,n,o,i,a,s,l,c,u){var f=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,p=n/100*360*((360-a)/360),g=a===0?0:{bottom:0,top:180,left:90,right:-90}[s],h=(100-o)/100*r;c==="round"&&o!==100&&(h+=u/2,h>=r&&(h=r-.01));var v=Xu/2;return{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(r,"px ").concat(t),strokeDashoffset:h+f,transform:"rotate(".concat(i+p+g,"deg)"),transformOrigin:"".concat(v,"px ").concat(v,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}};var Cq=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function OL(e){var t=e??[];return Array.isArray(t)?t:[t]}var wq=function(t){var r=T(T({},DE),t),n=r.id,o=r.prefixCls,i=r.steps,a=r.strokeWidth,s=r.trailWidth,l=r.gapDegree,c=l===void 0?0:l,u=r.gapPosition,f=r.trailColor,p=r.strokeLinecap,g=r.style,h=r.className,v=r.strokeColor,y=r.percent,m=Ve(r,Cq),d=Xu/2,x=CL(n),b="".concat(x,"-gradient"),S=d-a/2,w=Math.PI*2*S,C=c>0?90+c/2:-90,R=w*((360-c)/360),P=ue(i)==="object"?i:{count:i,gap:2},O=P.count,A=P.gap,M=OL(y),F=OL(v),H=F.find(function(B){return B&&ue(B)==="object"}),j=H&&ue(H)==="object",I=j?"butt":p,N=g0(w,R,0,100,C,c,u,f,I,a),$=$E(),U=function(){var q=0;return M.map(function(L,k){var z=F[k]||F[F.length-1],G=g0(w,R,q,L,C,c,u,z,I,a);return q+=L,yp.createElement(RL,{key:k,color:z,ptg:L,radius:S,prefixCls:o,gradientId:b,style:G,strokeLinecap:I,strokeWidth:a,gapDegree:c,ref:function(Y){$[k]=Y},size:Xu})}).reverse()},W=function(){var q=Math.round(O*(M[0]/100)),L=100/O,k=0;return new Array(O).fill(null).map(function(z,G){var J=G<=q-1?F[0]:f,Y=J&&ue(J)==="object"?"url(#".concat(b,")"):void 0,X=g0(w,R,k,L,C,c,u,J,"butt",a,A);return k+=(R-X.strokeDashoffset+A)*100/R,yp.createElement("circle",{key:G,className:"".concat(o,"-circle-path"),r:S,cx:d,cy:d,stroke:Y,strokeWidth:a,opacity:1,style:X,ref:function(Z){$[G]=Z}})})};return yp.createElement("svg",fe({className:(0,_L.default)("".concat(o,"-circle"),h),viewBox:"0 0 ".concat(Xu," ").concat(Xu),style:g,id:n,role:"presentation"},m),!O&&yp.createElement("circle",{className:"".concat(o,"-circle-trail"),r:S,cx:d,cy:d,stroke:f,strokeLinecap:I,strokeWidth:s||a,style:N}),O?W():U())},kE=wq;function na(e){return!e||e<0?0:e>100?100:e}function Yu({success:e,successPercent:t}){let r=t;return e&&"progress"in e&&(r=e.progress),e&&"percent"in e&&(r=e.percent),r}var PL=({percent:e,success:t,successPercent:r})=>{let n=na(Yu({success:t,successPercent:r}));return[n,na(na(e)-n)]},TL=({success:e={},strokeColor:t})=>{let{strokeColor:r}=e;return[r||Ea.green,t||null]},Xs=(e,t,r)=>{var n,o,i,a;let s=-1,l=-1;if(t==="step"){let c=r.steps,u=r.strokeWidth;typeof e=="string"||typeof e>"u"?(s=e==="small"?2:14,l=u??8):typeof e=="number"?[s,l]=[e,e]:[s=14,l=8]=Array.isArray(e)?e:[e.width,e.height],s*=c}else if(t==="line"){let c=r?.strokeWidth;typeof e=="string"||typeof e>"u"?l=c||(e==="small"?6:8):typeof e=="number"?[s,l]=[e,e]:[s=-1,l=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[s,l]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,l]=[e,e]:Array.isArray(e)&&(s=(o=(n=e[0])!==null&&n!==void 0?n:e[1])!==null&&o!==void 0?o:120,l=(a=(i=e[0])!==null&&i!==void 0?i:e[1])!==null&&a!==void 0?a:120));return[s,l]};var Eq=3,Rq=e=>Eq/e*100,Oq=e=>{let{prefixCls:t,trailColor:r=null,strokeLinecap:n="round",gapPosition:o,gapDegree:i,width:a=120,type:s,children:l,success:c,size:u=a,steps:f}=e,[p,g]=Xs(u,"circle"),{strokeWidth:h}=e;h===void 0&&(h=Math.max(Rq(p),6));let v={width:p,height:g,fontSize:p*.15+6},y=Qu.useMemo(()=>{if(i||i===0)return i;if(s==="dashboard")return 75},[i,s]),m=PL(e),d=o||s==="dashboard"&&"bottom"||void 0,x=Object.prototype.toString.call(e.strokeColor)==="[object Object]",b=TL({success:c,strokeColor:e.strokeColor}),S=(0,NL.default)(`${t}-inner`,{[`${t}-circle-gradient`]:x}),w=Qu.createElement(kE,{steps:f,percent:f?m[1]:m,strokeWidth:h,trailWidth:h,strokeColor:f?b[1]:b,strokeLinecap:n,trailColor:r,prefixCls:t,gapDegree:y,gapPosition:d}),C=p<=20,R=Qu.createElement("div",{className:S,style:v},w,!C&&l);return C?Qu.createElement(Ma,{title:l},R):R},IL=Oq;var Ju=E(D());var kL=E(Ne());var xp="--progress-line-stroke-color",AE="--progress-percent",DL=e=>{let t=e?"100%":"-100%";return new yt(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},_q=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},sr(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${xp})`]},height:"100%",width:`calc(1 / var(${AE}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[r]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${oe(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:DL(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:DL(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},Pq=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[r]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},Tq=e=>{let{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},Nq=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${r}`]:{fontSize:e.fontSizeSM}}}},Iq=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),$L=Gt("Progress",e=>{let t=e.calc(e.marginXXS).div(2).equal(),r=ut(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[_q(r),Pq(r),Tq(r),Nq(r)]},Iq);var Dq=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let t=[];return Object.keys(e).forEach(r=>{let n=parseFloat(r.replace(/%/g,""));Number.isNaN(n)||t.push({key:n,value:e[r]})}),t=t.sort((r,n)=>r.key-n.key),t.map(({key:r,value:n})=>`${n} ${r}%`).join(", ")},kq=(e,t)=>{let{from:r=Ea.blue,to:n=Ea.blue,direction:o=t==="rtl"?"to left":"to right"}=e,i=Dq(e,["from","to","direction"]);if(Object.keys(i).length!==0){let s=$q(i),l=`linear-gradient(${o}, ${s})`;return{background:l,[xp]:l}}let a=`linear-gradient(${o}, ${r}, ${n})`;return{background:a,[xp]:a}},Aq=e=>{let{prefixCls:t,direction:r,percent:n,size:o,strokeWidth:i,strokeColor:a,strokeLinecap:s="round",children:l,trailColor:c=null,percentPosition:u,success:f}=e,{align:p,type:g}=u,h=a&&typeof a!="string"?kq(a,r):{[xp]:a,background:a},v=s==="square"||s==="butt"?0:void 0,y=o??[-1,i||(o==="small"?6:8)],[m,d]=Xs(y,"line",{strokeWidth:i}),x={backgroundColor:c||void 0,borderRadius:v},b=Object.assign(Object.assign({width:`${na(n)}%`,height:d,borderRadius:v},h),{[AE]:na(n)/100}),S=Yu(e),w={width:`${na(S)}%`,height:d,borderRadius:v,backgroundColor:f?.strokeColor},C={width:m<0?"100%":m},R=Ju.createElement("div",{className:`${t}-inner`,style:x},Ju.createElement("div",{className:(0,kL.default)(`${t}-bg`,`${t}-bg-${g}`),style:b},g==="inner"&&l),S!==void 0&&Ju.createElement("div",{className:`${t}-success-bg`,style:w})),P=g==="outer"&&p==="start",O=g==="outer"&&p==="end";return g==="outer"&&p==="center"?Ju.createElement("div",{className:`${t}-layout-bottom`},R,l):Ju.createElement("div",{className:`${t}-outer`,style:C},P&&l,R,O&&l)},AL=Aq;var ME=E(D()),ML=E(Ne());var Mq=e=>{let{size:t,steps:r,rounding:n=Math.round,percent:o=0,strokeWidth:i=8,strokeColor:a,trailColor:s=null,prefixCls:l,children:c}=e,u=n(r*(o/100)),p=t??[t==="small"?2:14,i],[g,h]=Xs(p,"step",{steps:r,strokeWidth:i}),v=g/r,y=Array.from({length:r});for(let m=0;m{let{prefixCls:r,className:n,rootClassName:o,steps:i,strokeColor:a,percent:s=0,size:l="default",showInfo:c=!0,type:u="line",status:f,format:p,style:g,percentPosition:h={}}=e,v=Fq(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:y="end",type:m="outer"}=h,d=Array.isArray(a)?a[0]:a,x=typeof a=="string"||Array.isArray(a)?a:void 0,b=en.useMemo(()=>{if(d){let U=typeof d=="string"?d:Object.values(d)[0];return new gt(U).isLight()}return!1},[a]),S=en.useMemo(()=>{var U,W;let B=Yu(e);return parseInt(B!==void 0?(U=B??0)===null||U===void 0?void 0:U.toString():(W=s??0)===null||W===void 0?void 0:W.toString(),10)},[s,e.success,e.successPercent]),w=en.useMemo(()=>!Lq.includes(f)&&S>=100?"success":f||"normal",[f,S]),{getPrefixCls:C,direction:R,progress:P}=en.useContext(rt),O=C("progress",r),[A,M,F]=$L(O),H=u==="line",j=H&&!i,I=en.useMemo(()=>{if(!c)return null;let U=Yu(e),W,B=p||(L=>`${L}%`),q=H&&b&&m==="inner";return m==="inner"||p||w!=="exception"&&w!=="success"?W=B(na(s),na(U)):w==="exception"?W=H?en.createElement(gu,null):en.createElement(gv,null):w==="success"&&(W=H?en.createElement(uD,null):en.createElement(Oy,null)),en.createElement("span",{className:(0,FE.default)(`${O}-text`,{[`${O}-text-bright`]:q,[`${O}-text-${y}`]:j,[`${O}-text-${m}`]:j}),title:typeof W=="string"?W:void 0},W)},[c,s,S,w,u,O,p]),N;u==="line"?N=i?en.createElement(FL,Object.assign({},e,{strokeColor:x,prefixCls:O,steps:typeof i=="object"?i.count:i}),I):en.createElement(AL,Object.assign({},e,{strokeColor:d,prefixCls:O,direction:R,percentPosition:{align:y,type:m}}),I):(u==="circle"||u==="dashboard")&&(N=en.createElement(IL,Object.assign({},e,{strokeColor:d,prefixCls:O,progressStatus:w}),I));let $=(0,FE.default)(O,`${O}-status-${w}`,{[`${O}-${u==="dashboard"&&"circle"||u}`]:u!=="line",[`${O}-inline-circle`]:u==="circle"&&Xs(l,"circle")[0]<=20,[`${O}-line`]:j,[`${O}-line-align-${y}`]:j,[`${O}-line-position-${m}`]:j,[`${O}-steps`]:i,[`${O}-show-info`]:c,[`${O}-${l}`]:typeof l=="string",[`${O}-rtl`]:R==="rtl"},P?.className,n,o,M,F);return A(en.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},P?.style),g),className:$,role:"progressbar","aria-valuenow":S,"aria-valuemin":0,"aria-valuemax":100},Kr(v,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),N))}),LL=zq;var zL=LL;var h0=E(D());var Wq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},WL=Wq;var Bq=function(t,r){return h0.createElement(zt,fe({},t,{ref:r,icon:WL}))},jq=h0.forwardRef(Bq),BL=jq;var v0=E(D());var Vq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},jL=Vq;var Hq=function(t,r){return v0.createElement(zt,fe({},t,{ref:r,icon:jL}))},Uq=v0.forwardRef(Hq),VL=Uq;var y0=E(D());var qq={icon:function(t,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:r}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},HL=qq;var Gq=function(t,r){return y0.createElement(zt,fe({},t,{ref:r,icon:HL}))},Kq=y0.forwardRef(Gq),UL=Kq;var x0=E(D());var Xq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},qL=Xq;var Yq=function(t,r){return x0.createElement(zt,fe({},t,{ref:r,icon:qL}))},Qq=x0.forwardRef(Yq),GL=Qq;var b0=E(D());var Jq={icon:function(t,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:r}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:r}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:r}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},KL=Jq;var Zq=function(t,r){return b0.createElement(zt,fe({},t,{ref:r,icon:KL}))},eG=b0.forwardRef(Zq),XL=eG;var tG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},YL=tG;var O0=E(D());var br=E(D()),jE=E(Vi()),E0=E(Ne());var C0=E(D());var ZL=E(Ne());var Sp=E(D());var S0=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),n=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return r.some(function(a){var s=a.trim();if(/^\*(\/\*)?$/.test(a))return!0;if(s.charAt(0)==="."){var l=n.toLowerCase(),c=s.toLowerCase(),u=[c];return(c===".jpg"||c===".jpeg")&&(u=[".jpg",".jpeg"]),u.some(function(f){return l.endsWith(f)})}return/\/\*$/.test(s)?i===s.replace(/\/.*$/,""):o===s?!0:/^\w+$/.test(s)?(Vt(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0};function rG(e,t){var r="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),n=new Error(r);return n.status=t.status,n.method=e.method,n.url=e.action,n}function QL(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function LE(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(i){i.total>0&&(i.percent=i.loaded/i.total*100),e.onProgress(i)});var r=new FormData;e.data&&Object.keys(e.data).forEach(function(o){var i=e.data[o];if(Array.isArray(i)){i.forEach(function(a){r.append("".concat(o,"[]"),a)});return}r.append(o,i)}),e.file instanceof Blob?r.append(e.filename,e.file,e.file.name):r.append(e.filename,e.file),t.onerror=function(i){e.onError(i)},t.onload=function(){return t.status<200||t.status>=300?e.onError(rG(e,t),QL(t)):e.onSuccess(QL(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var n=e.headers||{};return n["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(n).forEach(function(o){n[o]!==null&&t.setRequestHeader(o,n[o])}),t.send(r),{abort:function(){t.abort()}}}var nG=function(){var e=Gr(Ot().mark(function t(r,n){var o,i,a,s,l,c,u,f;return Ot().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:c=function(){return c=Gr(Ot().mark(function v(y){return Ot().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",new Promise(function(x){y.file(function(b){n(b)?(y.fullPath&&!b.webkitRelativePath&&(Object.defineProperties(b,{webkitRelativePath:{writable:!0}}),b.webkitRelativePath=y.fullPath.replace(/^\//,""),Object.defineProperties(b,{webkitRelativePath:{writable:!1}})),x(b)):x(null)})}));case 1:case"end":return d.stop()}},v)})),c.apply(this,arguments)},l=function(v){return c.apply(this,arguments)},s=function(){return s=Gr(Ot().mark(function v(y){var m,d,x,b,S;return Ot().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:m=y.createReader(),d=[];case 2:return C.next=5,new Promise(function(R){m.readEntries(R,function(){return R([])})});case 5:if(x=C.sent,b=x.length,b){C.next=9;break}return C.abrupt("break",12);case 9:for(S=0;S0||v.some(function(b){return b.kind==="file"}))&&u?.(),!h){x.next=11;break}return x.next=7,JL(Array.prototype.slice.call(v),function(b){return S0(b,n.props.accept)});case 7:y=x.sent,n.uploadFiles(y),x.next=14;break;case 11:m=te(y).filter(function(b){return S0(b,g)}),p===!1&&(m=y.slice(0,1)),n.uploadFiles(m);case 14:case"end":return x.stop()}},l)}));return function(l,c){return s.apply(this,arguments)}}()),_(Ye(n),"onFilePaste",function(){var s=Gr(Ot().mark(function l(c){var u,f;return Ot().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(u=n.props.pastable,u){g.next=3;break}return g.abrupt("return");case 3:if(c.type!=="paste"){g.next=6;break}return f=c.clipboardData,g.abrupt("return",n.onDataTransferFiles(f,function(){c.preventDefault()}));case 6:case"end":return g.stop()}},l)}));return function(l){return s.apply(this,arguments)}}()),_(Ye(n),"onFileDragOver",function(s){s.preventDefault()}),_(Ye(n),"onFileDrop",function(){var s=Gr(Ot().mark(function l(c){var u;return Ot().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(c.preventDefault(),c.type!=="drop"){p.next=4;break}return u=c.dataTransfer,p.abrupt("return",n.onDataTransferFiles(u));case 4:case"end":return p.stop()}},l)}));return function(l){return s.apply(this,arguments)}}()),_(Ye(n),"uploadFiles",function(s){var l=te(s),c=l.map(function(u){return u.uid=bp(),n.processFile(u,l)});Promise.all(c).then(function(u){var f=n.props.onBatchStart;f?.(u.map(function(p){var g=p.origin,h=p.parsedFile;return{file:g,parsedFile:h}})),u.filter(function(p){return p.parsedFile!==null}).forEach(function(p){n.post(p)})})}),_(Ye(n),"processFile",function(){var s=Gr(Ot().mark(function l(c,u){var f,p,g,h,v,y,m,d,x;return Ot().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:if(f=n.props.beforeUpload,p=c,!f){S.next=14;break}return S.prev=3,S.next=6,f(c,u);case 6:p=S.sent,S.next=12;break;case 9:S.prev=9,S.t0=S.catch(3),p=!1;case 12:if(p!==!1){S.next=14;break}return S.abrupt("return",{origin:c,parsedFile:null,action:null,data:null});case 14:if(g=n.props.action,typeof g!="function"){S.next=21;break}return S.next=18,g(c);case 18:h=S.sent,S.next=22;break;case 21:h=g;case 22:if(v=n.props.data,typeof v!="function"){S.next=29;break}return S.next=26,v(c);case 26:y=S.sent,S.next=30;break;case 29:y=v;case 30:return m=(ue(p)==="object"||typeof p=="string")&&p?p:c,m instanceof File?d=m:d=new File([m],c.name,{type:c.type}),x=d,x.uid=c.uid,S.abrupt("return",{origin:c,data:y,parsedFile:x,action:h});case 35:case"end":return S.stop()}},l,null,[[3,9]])}));return function(l,c){return s.apply(this,arguments)}}()),_(Ye(n),"saveFileInput",function(s){n.fileInput=s}),n}return at(r,[{key:"componentDidMount",value:function(){this._isMounted=!0;var o=this.props.pastable;o&&document.addEventListener("paste",this.onFilePaste)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort(),document.removeEventListener("paste",this.onFilePaste)}},{key:"componentDidUpdate",value:function(o){var i=this.props.pastable;i&&!o.pastable?document.addEventListener("paste",this.onFilePaste):!i&&o.pastable&&document.removeEventListener("paste",this.onFilePaste)}},{key:"post",value:function(o){var i=this,a=o.data,s=o.origin,l=o.action,c=o.parsedFile;if(this._isMounted){var u=this.props,f=u.onStart,p=u.customRequest,g=u.name,h=u.headers,v=u.withCredentials,y=u.method,m=s.uid,d=p||LE,x={action:l,filename:g,data:a,file:c,headers:h,withCredentials:v,method:y||"post",onProgress:function(S){var w=i.props.onProgress;w?.(S,c)},onSuccess:function(S,w){var C=i.props.onSuccess;C?.(S,c,w),delete i.reqs[m]},onError:function(S,w){var C=i.props.onError;C?.(S,w,c),delete i.reqs[m]}};f(s),this.reqs[m]=d(x)}}},{key:"reset",value:function(){this.setState({uid:bp()})}},{key:"abort",value:function(o){var i=this.reqs;if(o){var a=o.uid?o.uid:o;i[a]&&i[a].abort&&i[a].abort(),delete i[a]}else Object.keys(i).forEach(function(s){i[s]&&i[s].abort&&i[s].abort(),delete i[s]})}},{key:"render",value:function(){var o=this.props,i=o.component,a=o.prefixCls,s=o.className,l=o.classNames,c=l===void 0?{}:l,u=o.disabled,f=o.id,p=o.name,g=o.style,h=o.styles,v=h===void 0?{}:h,y=o.multiple,m=o.accept,d=o.capture,x=o.children,b=o.directory,S=o.openFileDialogOnClick,w=o.onMouseEnter,C=o.onMouseLeave,R=o.hasControlInside,P=Ve(o,aG),O=(0,ZL.default)(_(_(_({},a,!0),"".concat(a,"-disabled"),u),s,s)),A=b?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},M=u?{}:{onClick:S?this.onClick:function(){},onKeyDown:S?this.onKeyDown:function(){},onMouseEnter:w,onMouseLeave:C,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:R?void 0:"0"};return Sp.default.createElement(i,fe({},M,{className:O,role:R?void 0:"button",style:g}),Sp.default.createElement("input",fe({},qo(P,{aria:!0,data:!0}),{id:f,name:p,disabled:u,type:"file",ref:this.saveFileInput,onClick:function(H){return H.stopPropagation()},key:this.state.uid,style:T({display:"none"},v.input),className:c.input,accept:m},A,{multiple:y,onChange:this.onChange},d!=null?{capture:d}:{})),x)}}]),r}(Sp.Component),e3=sG;function zE(){}var t3=function(e){Dr(r,e);var t=$r(r);function r(){var n;it(this,r);for(var o=arguments.length,i=new Array(o),a=0;a{let{componentCls:t,iconCls:r}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${oe(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${oe(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` &:not(${t}-disabled):hover, &-hover:not(${t}-disabled) `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[r]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${oe(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${r}, p${t}-text, p${t}-hint `]:{color:e.colorTextDisabled}}}}}},n3=lG;var cG=e=>{let{componentCls:t,iconCls:r,fontSize:n,lineHeight:o,calc:i}=e,a=`${t}-list-item`,s=`${a}-actions`,l=`${a}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},pu()),{lineHeight:e.lineHeight,[a]:{position:"relative",height:i(e.lineHeight).mul(n).equal(),marginTop:e.marginXS,fontSize:n,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${a}-name`]:Object.assign(Object.assign({},Oa),{padding:`0 ${oe(e.paddingXS)}`,lineHeight:o,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{whiteSpace:"nowrap",[l]:{opacity:0},[r]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[` ${l}:focus-visible, &.picture ${l} `]:{opacity:1}},[`${t}-icon ${r}`]:{color:e.colorIcon,fontSize:n},[`${a}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:i(n).add(e.paddingXS).equal(),fontSize:n,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${a}:hover ${l}`]:{opacity:1},[`${a}-error`]:{color:e.colorError,[`${a}-name, ${t}-icon ${r}`]:{color:e.colorError},[s]:{[`${r}, ${r}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},o3=cG;var uG=e=>{let{componentCls:t}=e,r=new yt("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),n=new yt("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),o=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${o}-appear, ${o}-enter, ${o}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${o}-appear, ${o}-enter`]:{animationName:r},[`${o}-leave`]:{animationName:n}}},{[`${t}-wrapper`]:Tw(e)},r,n]},i3=uG;var a3=e=>{let{componentCls:t,iconCls:r,uploadThumbnailSize:n,uploadProgressOffset:o,calc:i}=e,a=`${t}-list`,s=`${a}-item`;return{[`${t}-wrapper`]:{[` ${a}${a}-picture, ${a}${a}-picture-card, ${a}${a}-picture-circle `]:{[s]:{position:"relative",height:i(n).add(i(e.lineWidth).mul(2)).add(i(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},Oa),{width:n,height:n,lineHeight:oe(i(n).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[r]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${s}-progress`]:{bottom:o,width:`calc(100% - ${oe(i(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:i(n).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${r}`]:{[`svg path[fill='${Ns[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${Ns.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:o}}},[`${a}${a}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},s3=e=>{let{componentCls:t,iconCls:r,fontSizeLG:n,colorTextLightSolid:o,calc:i}=e,a=`${t}-list`,s=`${a}-item`,l=e.uploadPicCardSize;return{[` ${t}-wrapper${t}-picture-card-wrapper, ${t}-wrapper${t}-picture-circle-wrapper `]:Object.assign(Object.assign({},pu()),{display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${oe(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${a}-item-container`]:{display:"inline-block",width:l,height:l,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${oe(i(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${oe(i(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[` ${r}-eye, ${r}-download, ${r}-delete `]:{zIndex:10,width:n,margin:`0 ${oe(e.marginXXS)}`,fontSize:n,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:o,"&:hover":{color:o},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${oe(i(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${r}-eye, ${r}-download, ${r}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${oe(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}};var fG=e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},l3=fG;var dG=e=>{let{componentCls:t,colorTextDisabled:r}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},sr(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:r,cursor:"not-allowed"}})}},pG=e=>({actionsColor:e.colorIcon}),c3=Gt("Upload",e=>{let{fontSizeHeading3:t,fontHeight:r,lineWidth:n,controlHeightLG:o,calc:i}=e,a=ut(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(r).div(2)).add(n).equal(),uploadPicCardSize:i(o).mul(2.55).equal()});return[dG(a),n3(a),a3(a),s3(a),o3(a),i3(a),l3(a),Pw(a)]},pG);var qt=E(D());var BE=E(Ne());function Cp(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function wp(e,t){let r=te(t),n=r.findIndex(({uid:o})=>o===e.uid);return n===-1?r.push(e):r[n]=e,r}function w0(e,t){let r=e.uid!==void 0?"uid":"name";return t.filter(n=>n[r]===e[r])[0]}function u3(e,t){let r=e.uid!==void 0?"uid":"name",n=t.filter(o=>o[r]!==e[r]);return n.length===t.length?null:n}var mG=(e="")=>{let t=e.split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]},f3=e=>e.indexOf("image/")===0,d3=e=>{if(e.type&&!e.thumbUrl)return f3(e.type);let t=e.thumbUrl||e.url||"",r=mG(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(r)?!0:!(/^data:/.test(t)||r)},Ys=200;function p3(e){return new Promise(t=>{if(!e.type||!f3(e.type)){t("");return}let r=document.createElement("canvas");r.width=Ys,r.height=Ys,r.style.cssText=`position: fixed; left: 0; top: 0; width: ${Ys}px; height: ${Ys}px; z-index: 9999; display: none;`,document.body.appendChild(r);let n=r.getContext("2d"),o=new Image;if(o.onload=()=>{let{width:i,height:a}=o,s=Ys,l=Ys,c=0,u=0;i>a?(l=a*(Ys/i),u=-(l-s)/2):(s=i*(Ys/a),c=-(s-l)/2),n.drawImage(o,c,u,s,l);let f=r.toDataURL();document.body.removeChild(r),window.URL.revokeObjectURL(o.src),t(f)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){let i=new FileReader;i.onload=()=>{i.result&&typeof i.result=="string"&&(o.src=i.result)},i.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){let i=new FileReader;i.onload=()=>{i.result&&t(i.result)},i.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}var Bt=E(D());var Qs=E(Ne());var gG=Bt.forwardRef(({prefixCls:e,className:t,style:r,locale:n,listType:o,file:i,items:a,progress:s,iconRender:l,actionIconRender:c,itemRender:u,isImgUrl:f,showPreviewIcon:p,showRemoveIcon:g,showDownloadIcon:h,previewIcon:v,removeIcon:y,downloadIcon:m,extra:d,onPreview:x,onDownload:b,onClose:S},w)=>{var C,R;let{status:P}=i,[O,A]=Bt.useState(P);Bt.useEffect(()=>{P!=="removed"&&A(P)},[P]);let[M,F]=Bt.useState(!1);Bt.useEffect(()=>{let K=setTimeout(()=>{F(!0)},300);return()=>{clearTimeout(K)}},[]);let H=l(i),j=Bt.createElement("div",{className:`${e}-icon`},H);if(o==="picture"||o==="picture-card"||o==="picture-circle")if(O==="uploading"||!i.thumbUrl&&!i.url){let K=(0,Qs.default)(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:O!=="uploading"});j=Bt.createElement("div",{className:K},H)}else{let K=f?.(i)?Bt.createElement("img",{src:i.thumbUrl||i.url,alt:i.name,className:`${e}-list-item-image`,crossOrigin:i.crossOrigin}):H,Q=(0,Qs.default)(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:f&&!f(i)});j=Bt.createElement("a",{className:Q,onClick:re=>x(i,re),href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer"},K)}let I=(0,Qs.default)(`${e}-list-item`,`${e}-list-item-${O}`),N=typeof i.linkProps=="string"?JSON.parse(i.linkProps):i.linkProps,$=(typeof g=="function"?g(i):g)?c((typeof y=="function"?y(i):y)||Bt.createElement(BL,null),()=>S(i),e,n.removeFile,!0):null,U=(typeof h=="function"?h(i):h)&&O==="done"?c((typeof m=="function"?m(i):m)||Bt.createElement(VL,null),()=>b(i),e,n.downloadFile):null,W=o!=="picture-card"&&o!=="picture-circle"&&Bt.createElement("span",{key:"download-delete",className:(0,Qs.default)(`${e}-list-item-actions`,{picture:o==="picture"})},U,$),B=typeof d=="function"?d(i):d,q=B&&Bt.createElement("span",{className:`${e}-list-item-extra`},B),L=(0,Qs.default)(`${e}-list-item-name`),k=i.url?Bt.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:L,title:i.name},N,{href:i.url,onClick:K=>x(i,K)}),i.name,q):Bt.createElement("span",{key:"view",className:L,onClick:K=>x(i,K),title:i.name},i.name,q),z=(typeof p=="function"?p(i):p)&&(i.url||i.thumbUrl)?Bt.createElement("a",{href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:K=>x(i,K),title:n.previewFile},typeof v=="function"?v(i):v||Bt.createElement(u0,null)):null,G=(o==="picture-card"||o==="picture-circle")&&O!=="uploading"&&Bt.createElement("span",{className:`${e}-list-item-actions`},z,O==="done"&&U,$),{getPrefixCls:J}=Bt.useContext(rt),Y=J(),X=Bt.createElement("div",{className:I},j,k,W,G,M&&Bt.createElement(Uo,{motionName:`${Y}-fade`,visible:O==="uploading",motionDeadline:2e3},({className:K})=>{let Q="percent"in i?Bt.createElement(zL,Object.assign({type:"line",percent:i.percent,"aria-label":i["aria-label"],"aria-labelledby":i["aria-labelledby"]},s)):null;return Bt.createElement("div",{className:(0,Qs.default)(`${e}-list-item-progress`,K)},Q)})),ae=i.response&&typeof i.response=="string"?i.response:((C=i.error)===null||C===void 0?void 0:C.statusText)||((R=i.error)===null||R===void 0?void 0:R.message)||n.uploadError,Z=O==="error"?Bt.createElement(Ma,{title:ae,getPopupContainer:K=>K.parentNode},X):X;return Bt.createElement("div",{className:(0,Qs.default)(`${e}-list-item-container`,t),style:r,ref:w},u?u(Z,i,a,{download:b.bind(null,i),preview:x.bind(null,i),remove:S.bind(null,i)}):Z)}),m3=gG;var hG=(e,t)=>{let{listType:r="text",previewFile:n=p3,onPreview:o,onDownload:i,onRemove:a,locale:s,iconRender:l,isImageUrl:c=d3,prefixCls:u,items:f=[],showPreviewIcon:p=!0,showRemoveIcon:g=!0,showDownloadIcon:h=!1,removeIcon:v,previewIcon:y,downloadIcon:m,extra:d,progress:x={size:[-1,2],showInfo:!1},appendAction:b,appendActionVisible:S=!0,itemRender:w,disabled:C}=e,R=q1(),[P,O]=qt.useState(!1),A=["picture-card","picture-circle"].includes(r);qt.useEffect(()=>{r.startsWith("picture")&&(f||[]).forEach(L=>{!(L.originFileObj instanceof File||L.originFileObj instanceof Blob)||L.thumbUrl!==void 0||(L.thumbUrl="",n?.(L.originFileObj).then(k=>{L.thumbUrl=k||"",R()}))})},[r,f,n]),qt.useEffect(()=>{O(!0)},[]);let M=(L,k)=>{if(o)return k?.preventDefault(),o(L)},F=L=>{typeof i=="function"?i(L):L.url&&window.open(L.url)},H=L=>{a?.(L)},j=L=>{if(l)return l(L,r);let k=L.status==="uploading";if(r.startsWith("picture")){let z=r==="picture"?qt.createElement(Al,null):s.uploading,G=c?.(L)?qt.createElement(XL,null):qt.createElement(UL,null);return k?z:G}return k?qt.createElement(Al,null):qt.createElement(GL,null)},I=(L,k,z,G,J)=>{let Y={type:"text",size:"small",title:G,onClick:X=>{var ae,Z;k(),qt.isValidElement(L)&&((Z=(ae=L.props).onClick)===null||Z===void 0||Z.call(ae,X))},className:`${z}-list-item-action`,disabled:J?C:!1};return qt.isValidElement(L)?qt.createElement(zd,Object.assign({},Y,{icon:Go(L,Object.assign(Object.assign({},L.props),{onClick:()=>{}}))})):qt.createElement(zd,Object.assign({},Y),qt.createElement("span",null,L))};qt.useImperativeHandle(t,()=>({handlePreview:M,handleDownload:F}));let{getPrefixCls:N}=qt.useContext(rt),$=N("upload",u),U=N(),W=(0,BE.default)(`${$}-list`,`${$}-list-${r}`),B=qt.useMemo(()=>Kr(RD(U),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[U]),q=Object.assign(Object.assign({},A?{}:B),{motionDeadline:2e3,motionName:`${$}-${A?"animate-inline":"animate"}`,keys:te(f.map(L=>({key:L.uid,file:L}))),motionAppear:P});return qt.createElement("div",{className:W},qt.createElement(sw,Object.assign({},q,{component:!1}),({key:L,file:k,className:z,style:G})=>qt.createElement(m3,{key:L,locale:s,prefixCls:$,className:z,style:G,file:k,items:f,progress:x,listType:r,isImgUrl:c,showPreviewIcon:p,showRemoveIcon:g,showDownloadIcon:h,removeIcon:v,previewIcon:y,downloadIcon:m,extra:d,iconRender:j,actionIconRender:I,itemRender:w,onPreview:M,onDownload:F,onClose:H})),b&&qt.createElement(Uo,Object.assign({},q,{visible:S,forceRender:!0}),({className:L,style:k})=>Go(b,z=>({className:(0,BE.default)(z.className,L),style:Object.assign(Object.assign(Object.assign({},k),{pointerEvents:L?"none":void 0}),z.style)}))))},vG=qt.forwardRef(hG),g3=vG;var yG=function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{c(n.next(u))}catch(f){a(f)}}function l(u){try{c(n.throw(u))}catch(f){a(f)}}function c(u){u.done?i(u.value):o(u.value).then(s,l)}c((n=n.apply(e,t||[])).next())})},Zu=`__LIST_IGNORE_${Date.now()}__`,xG=(e,t)=>{let{fileList:r,defaultFileList:n,onRemove:o,showUploadList:i=!0,listType:a="text",onPreview:s,onDownload:l,onChange:c,onDrop:u,previewFile:f,disabled:p,locale:g,iconRender:h,isImageUrl:v,progress:y,prefixCls:m,className:d,type:x="select",children:b,style:S,itemRender:w,maxCount:C,data:R={},multiple:P=!1,hasControlInside:O=!0,action:A="",accept:M="",supportServerRender:F=!0,rootClassName:H}=e,j=br.useContext(qr),I=p??j,[N,$]=ar(n||[],{value:r,postState:se=>se??[]}),[U,W]=br.useState("drop"),B=br.useRef(null),q=br.useRef(null);br.useMemo(()=>{let se=Date.now();(r||[]).forEach((xe,_e)=>{!xe.uid&&!Object.isFrozen(xe)&&(xe.uid=`__AUTO__${se}_${_e}__`)})},[r]);let L=(se,xe,_e)=>{let he=te(xe),Ze=!1;C===1?he=he.slice(-1):C&&(Ze=he.length>C,he=he.slice(0,C)),(0,jE.flushSync)(()=>{$(he)});let lt={file:se,fileList:he};_e&&(lt.event=_e),(!Ze||se.status==="removed"||he.some(Et=>Et.uid===se.uid))&&(0,jE.flushSync)(()=>{c?.(lt)})},k=(se,xe)=>yG(void 0,void 0,void 0,function*(){let{beforeUpload:_e,transformFile:he}=e,Ze=se;if(_e){let lt=yield _e(se,xe);if(lt===!1)return!1;if(delete se[Zu],lt===Zu)return Object.defineProperty(se,Zu,{value:!0,configurable:!0}),!1;typeof lt=="object"&<&&(Ze=lt)}return he&&(Ze=yield he(Ze)),Ze}),z=se=>{let xe=se.filter(Ze=>!Ze.file[Zu]);if(!xe.length)return;let _e=xe.map(Ze=>Cp(Ze.file)),he=te(N);_e.forEach(Ze=>{he=wp(Ze,he)}),_e.forEach((Ze,lt)=>{let Et=Ze;if(xe[lt].parsedFile)Ze.status="uploading";else{let{originFileObj:Tt}=Ze,pt;try{pt=new File([Tt],Tt.name,{type:Tt.type})}catch{pt=new Blob([Tt],{type:Tt.type}),pt.name=Tt.name,pt.lastModifiedDate=new Date,pt.lastModified=new Date().getTime()}pt.uid=Ze.uid,Et=pt}L(Et,he)})},G=(se,xe,_e)=>{try{typeof se=="string"&&(se=JSON.parse(se))}catch{}if(!w0(xe,N))return;let he=Cp(xe);he.status="done",he.percent=100,he.response=se,he.xhr=_e;let Ze=wp(he,N);L(he,Ze)},J=(se,xe)=>{if(!w0(xe,N))return;let _e=Cp(xe);_e.status="uploading",_e.percent=se.percent;let he=wp(_e,N);L(_e,he,se)},Y=(se,xe,_e)=>{if(!w0(_e,N))return;let he=Cp(_e);he.error=se,he.response=xe,he.status="error";let Ze=wp(he,N);L(he,Ze)},X=se=>{let xe;Promise.resolve(typeof o=="function"?o(se):o).then(_e=>{var he;if(_e===!1)return;let Ze=u3(se,N);Ze&&(xe=Object.assign(Object.assign({},se),{status:"removed"}),N?.forEach(lt=>{let Et=xe.uid!==void 0?"uid":"name";lt[Et]===xe[Et]&&!Object.isFrozen(lt)&&(lt.status="removed")}),(he=B.current)===null||he===void 0||he.abort(xe),L(xe,Ze))})},ae=se=>{W(se.type),se.type==="drop"&&u?.(se)};br.useImperativeHandle(t,()=>({onBatchStart:z,onSuccess:G,onProgress:J,onError:Y,fileList:N,upload:B.current,nativeElement:q.current}));let{getPrefixCls:Z,direction:K,upload:Q}=br.useContext(rt),re=Z("upload",m),ee=Object.assign(Object.assign({onBatchStart:z,onError:Y,onProgress:J,onSuccess:G},e),{data:R,multiple:P,action:A,accept:M,supportServerRender:F,prefixCls:re,disabled:I,beforeUpload:k,onChange:void 0,hasControlInside:O});delete ee.className,delete ee.style,(!b||I)&&delete ee.id;let ne=`${re}-wrapper`,[de,le,pe]=c3(re,ne),[Oe]=Ca("Upload",Ei.Upload),{showRemoveIcon:Ce,showPreviewIcon:$e,showDownloadIcon:ce,removeIcon:ie,previewIcon:Re,downloadIcon:Le,extra:Ge}=typeof i=="boolean"?{}:i,Me=typeof Ce>"u"?!I:Ce,Ie=(se,xe)=>i?br.createElement(g3,{prefixCls:re,listType:a,items:N,previewFile:f,onPreview:s,onDownload:l,onRemove:X,showRemoveIcon:Me,showPreviewIcon:$e,showDownloadIcon:ce,removeIcon:ie,previewIcon:Re,downloadIcon:Le,iconRender:h,extra:Ge,locale:Object.assign(Object.assign({},Oe),g),isImageUrl:v,progress:y,appendAction:se,appendActionVisible:xe,itemRender:w,disabled:I}):se,je=(0,E0.default)(ne,d,H,le,pe,Q?.className,{[`${re}-rtl`]:K==="rtl",[`${re}-picture-card-wrapper`]:a==="picture-card",[`${re}-picture-circle-wrapper`]:a==="picture-circle"}),We=Object.assign(Object.assign({},Q?.style),S);if(x==="drag"){let se=(0,E0.default)(le,re,`${re}-drag`,{[`${re}-drag-uploading`]:N.some(xe=>xe.status==="uploading"),[`${re}-drag-hover`]:U==="dragover",[`${re}-disabled`]:I,[`${re}-rtl`]:K==="rtl"});return de(br.createElement("span",{className:je,ref:q},br.createElement("div",{className:se,style:We,onDrop:ae,onDragOver:ae,onDragLeave:ae},br.createElement(WE,Object.assign({},ee,{ref:B,className:`${re}-btn`}),br.createElement("div",{className:`${re}-drag-container`},b))),Ie()))}let He=(0,E0.default)(re,`${re}-select`,{[`${re}-disabled`]:I,[`${re}-hidden`]:!b}),ye=br.createElement("div",{className:He,style:We},br.createElement(WE,Object.assign({},ee,{ref:B})));return de(a==="picture-card"||a==="picture-circle"?br.createElement("span",{className:je,ref:q},Ie(ye,!!b)):br.createElement("span",{className:je,ref:q},ye,Ie()))},bG=br.forwardRef(xG),R0=bG;var SG=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var{style:r,height:n,hasControlInside:o=!1}=e,i=SG(e,["style","height","hasControlInside"]);return O0.createElement(R0,Object.assign({ref:t,hasControlInside:o},i,{type:"drag",style:Object.assign(Object.assign({},r),{height:n})}))}),h3=CG;var VE=R0;VE.Dragger=h3;VE.LIST_IGNORE=Zu;var HE=VE;var _r=E(Or(),1),TG=()=>{let[e,t]=(0,b3.useState)(Xe.data.useSliderForNumberWidget),r=()=>{location.href="/sd-ppp-static/sd-ppp_PS.ccx?_="+Date.now()},n=()=>{location.href="https://gitee.com/zombieyang/sd-ppp/raw/main/static/sd-ppp2_PS.ccx?_="+Date.now()};return(0,_r.jsxs)("div",{className:"settings-container",children:[(0,_r.jsx)("h2",{children:me("SDPPP Settings/Misc")}),(0,_r.jsxs)("div",{className:"settings-section",children:[(0,_r.jsx)("div",{className:"settings-label",children:(0,_r.jsx)("label",{children:me("Comfy URL (You can copy it to connect ComfyUI in the plugin):")})}),(0,_r.jsx)("div",{className:"settings-control",children:location.href.split("?")[0].split("#")[0]})]}),(0,_r.jsxs)("div",{className:"settings-section settings-row",children:[(0,_r.jsx)("div",{className:"settings-label",children:(0,_r.jsx)("label",{children:me("Photoshop plugin")})}),(0,_r.jsx)("div",{className:"settings-control",children:(0,_r.jsx)("button",{onClick:r,className:"download-button",children:me("Download")})})]}),(0,_r.jsxs)("div",{className:"settings-section settings-row",children:[(0,_r.jsx)("div",{className:"settings-label",children:(0,_r.jsxs)("label",{children:[me("Photoshop plugin")," 2.0 Beta(CHN only)"]})}),(0,_r.jsx)("div",{className:"settings-control",children:(0,_r.jsx)("button",{onClick:n,className:"download-button",children:me("Download")})})]}),(0,_r.jsxs)("div",{className:"settings-section settings-row",children:[(0,_r.jsx)("div",{className:"settings-label",children:(0,_r.jsx)("label",{htmlFor:"maxImageSize",children:me("use slider for number widget:")})}),(0,_r.jsx)("div",{className:"settings-control",children:(0,_r.jsx)(sp,{id:"useSliderForNumberWidget",checked:e,onChange:o=>{t(o.target.checked),Xe.setUseSliderForNumberWidget(o.target.checked),an.storeSetting("sdppp.useSliderForNumberWidget",o.target.checked)}})})]})]})},S3=TG;var _5=E(D(),1);var Ql=E(D(),1);var C3=E(D(),1);function P0(e){return e=e||12,{flex:`${e} 0 calc(${e/12*100}% - 10px)`,maxWidth:"100%"}}var $n=E(Or(),1);function qE({widgetTableStructure:e,widgetTableValue:t,widgetTableErrors:r,onWidgetRender:n,onWidgetChange:o,onTitleRender:i}){let[a,s]=(0,Ql.useState)(0),l=(0,Ql.useMemo)(()=>e.nodeIndexes.map(p=>{let g=e.nodes[p],h=(d,x,b)=>d.keepRender?x.outputType==="error"?(d.result.push((0,$n.jsx)("span",{className:"list-error-label",children:t[g.id][b]})),d):(n?.(d,g,x,b),d):d,v=Object.values(e.groups).find(d=>d.nodeIDs.includes(g.id)),y=v?.color||"rgba(127, 127, 127, .4)";if(a&&v?.id!==a)return null;let m=g.uiWeightSum<=8&&g.widgets.length==1&&(g.widgets[0].outputType!=="number"||!e.extraOptions?.useSliderForNumberWidget);return(0,$n.jsxs)("div",{className:"workflow-edit-field",children:[(0,$n.jsx)("div",{className:"workflow-edit-field-title",title:g.title,style:{...P0(m?4:12),borderColor:y},children:i?i(g.title,g):(0,$n.jsx)("span",{children:g.title})}),g.widgets.reduce(h,{keepRender:!0,result:[]}).result.map((d,x)=>(0,$n.jsx)(UE,{children:d},x)),r[g.id]?(0,$n.jsx)("span",{className:"list-error-label",children:r[g.id]}):""]},g.id)}).filter(Boolean),[e,t,r,n,o,i,a]),[c,u]=(0,Ql.useMemo)(()=>[Object.keys(r).filter(p=>e.nodes[parseInt(p)]),Object.keys(r).filter(p=>!e.nodes[parseInt(p)])],[r,e]),f=null;return u.length>0?f=(0,$n.jsx)("span",{className:"list-error-label",children:r[+u[0]]}):c.length>0&&(f=(0,$n.jsx)("span",{className:"list-error-label",children:r[+c[0]]})),(0,$n.jsxs)($n.Fragment,{children:[f,Object.keys(e.nodes).length?"":(0,$n.jsx)("span",{className:"list-error-label",children:me("no suitable node to control in this workflow")}),(0,$n.jsx)("div",{className:"workflow-edit-content",children:l})]})}var UE=class extends Ql.default.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}componentDidCatch(t,r){this.setState({hasError:!0,error:t})}render(){return this.state.hasError?(0,$n.jsx)("span",{className:"list-error-label",children:this.state.error?.stack||this.state.error?.message||this.state.error?.toString()}):this.props.children}};var Jl=E(D(),1);var w3=E(D(),1);function Js(e){return(0,w3.useMemo)(()=>P0(e),[e])}var Zs=E(Or(),1),E3=({inputMin:e,inputMax:t,inputStep:r,name:n,value:o=0,uiWeight:i=1,extraOptions:a,onValueChange:s})=>{let l=Js(i||12),[c,u]=(0,Jl.useState)(+o.toFixed(3));(0,Jl.useEffect)(()=>{u(+o.toFixed(3))},[o]);let f=(0,Jl.useCallback)(h=>{if(h!==null){let v=+h.toFixed(3);u(v)}},[]),p=(0,Jl.useCallback)(()=>{s(c)},[c,s]);return!((t-e)/r>1e3)&&i>=1&&a?.useSliderForNumberWidget?(0,Zs.jsxs)(Ba,{style:{width:"100%",...l},align:"center",children:[(0,Zs.jsx)(bE,{style:{flex:1},min:e,max:t,step:r,value:c,onChange:f,onChangeComplete:p}),(0,Zs.jsx)(e0,{style:{width:80},min:e,max:t,step:r,value:c,onChange:f,onBlur:p,controls:!1})]}):(0,Zs.jsxs)(Ba,{style:{width:"100%",...l},align:"center",children:[n&&(0,Zs.jsx)("span",{style:{flex:1},children:n}),(0,Zs.jsx)(e0,{style:{width:"100%",flex:2},min:e,max:t,step:r,value:c,onChange:f,onBlur:p,controls:!1})]})};var Ep=E(Or(),1),R3=({onSelectUpdate:e,options:t,value:r,name:n,uiWeight:o})=>{let i=s=>{let l=t.indexOf(s);e(s,l)},a=Js(o||12);return(0,Ep.jsxs)(Ba,{style:{width:"100%",...a},align:"center",children:[n&&(0,Ep.jsx)("span",{style:{flex:1},children:n}),(0,Ep.jsx)(ip,{value:r,options:t.map(s=>({value:s,label:s})),style:{flex:2,minWidth:"100%"},onSelect:i,placeholder:me("select..."),showSearch:!0,filterOption:(s,l)=>(l?.label??"").toLowerCase().includes(s.toLowerCase())})]})};var _3=E(Or(),1),O3=({value:e,name:t,onValueChange:r,uiWeight:n})=>{let o=a=>{r(a.target.checked)},i=Js(n||12);return(0,_3.jsx)(sp,{checked:!!e,onChange:o,style:{...i},children:t||""})};var GE=E(Or(),1),{TextArea:NG}=hp,P3=({value:e="",onValueChange:t,uiWeight:r})=>{let n=Js(r||12);return(0,GE.jsx)("div",{className:"widget-container",style:n,children:(0,GE.jsx)(NG,{value:e,onChange:i=>{t(i.target.value)},autoSize:{minRows:1}})})};var Rp=E(D(),1);var T0=E(Or(),1);function T3({title:e,onTitleChange:t}){let[r,n]=(0,Rp.useState)(!1),[o,i]=(0,Rp.useState)(e);(0,Rp.useEffect)(()=>{i(e)},[e]);let a=()=>{n(!0)};return r?(0,T0.jsx)(hp,{autoFocus:!0,value:o,onChange:u=>{i(u.target.value)},onBlur:()=>{n(!1),o!==e&&t&&t(o)},onKeyDown:u=>{u.key==="Enter"?(n(!1),o!==e&&t&&t(o)):u.key==="Escape"&&(n(!1),i(e))},size:"small",className:"workflow-edit-field-title-input"}):(0,T0.jsx)(Ma,{title:me("click to edit"),children:(0,T0.jsx)("span",{onClick:a,style:{cursor:"pointer"},children:o})})}var N3=E(D()),IG=(0,N3.createContext)({}),N0=IG;var tc=E(D()),E5=E(Ne());var I3={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"};var pn=Math.round;function KE(e,t){let r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)n[o]=t(n[o]||0,r[o]||"",o);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}var D3=(e,t,r)=>r===0?e:e/100;function Op(e,t){let r=t||255;return e>r?r:e<0?0:e}var Zl=class e{isValid=!0;r=0;g=0;b=0;a=1;_h;_s;_l;_v;_max;_min;_brightness;constructor(t){function r(o){return o[0]in t&&o[1]in t&&o[2]in t}if(t)if(typeof t=="string"){let i=function(a){return o.startsWith(a)};var n=i;let o=t.trim();if(/^#?[A-F\d]{3,8}$/i.test(o))this.fromHexString(o);else if(i("rgb"))this.fromRgbString(o);else if(i("hsl"))this.fromHslString(o);else if(i("hsv")||i("hsb"))this.fromHsvString(o);else{let a=I3[o.toLowerCase()];a&&this.fromHexString(parseInt(a,36).toString(16).padStart(6,"0"))}}else if(t instanceof e)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(r("rgb"))this.r=Op(t.r),this.g=Op(t.g),this.b=Op(t.b),this.a=typeof t.a=="number"?Op(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){let r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(i){let a=i/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}let r=t(this.r),n=t(this.g),o=t(this.b);return .2126*r+.7152*n+.0722*o}getHue(){if(typeof this._h>"u"){let t=this.getMax()-this.getMin();t===0?this._h=0:this._h=pn(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g"u"){let t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){let r=this.getHue(),n=this.getSaturation(),o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:r,s:n,l:o,a:this.a})}lighten(t=10){let r=this.getHue(),n=this.getSaturation(),o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:r,s:n,l:o,a:this.a})}mix(t,r=50){let n=this._c(t),o=r/100,i=s=>(n[s]-this[s])*o+this[s],a={r:pn(i("r")),g:pn(i("g")),b:pn(i("b")),a:pn(i("a")*100)/100};return this._c(a)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){let r=this._c(t),n=this.a+r.a*(1-this.a),o=i=>pn((this[i]*this.a+r[i]*r.a*(1-this.a))/n);return this._c({r:o("r"),g:o("g"),b:o("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#",r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;let n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;let o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){let i=pn(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){let t=this.getHue(),r=pn(this.getSaturation()*100),n=pn(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${n}%,${this.a})`:`hsl(${t},${r}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,r,n){let o=this.clone();return o[t]=Op(r,n),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){let r=t.replace("#","");function n(o,i){return parseInt(r[o]+r[i||o],16)}r.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=r[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=r[6]?n(6,7)/255:1)}fromHsl({h:t,s:r,l:n,a:o}){if(this._h=t%360,this._s=r,this._l=n,this.a=typeof o=="number"?o:1,r<=0){let p=pn(n*255);this.r=p,this.g=p,this.b=p}let i=0,a=0,s=0,l=t/60,c=(1-Math.abs(2*n-1))*r,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(i=c,a=u):l>=1&&l<2?(i=u,a=c):l>=2&&l<3?(a=c,s=u):l>=3&&l<4?(a=u,s=c):l>=4&&l<5?(i=u,s=c):l>=5&&l<6&&(i=c,s=u);let f=n-c/2;this.r=pn((i+f)*255),this.g=pn((a+f)*255),this.b=pn((s+f)*255)}fromHsv({h:t,s:r,v:n,a:o}){this._h=t%360,this._s=r,this._v=n,this.a=typeof o=="number"?o:1;let i=pn(n*255);if(this.r=i,this.g=i,this.b=i,r<=0)return;let a=t/60,s=Math.floor(a),l=a-s,c=pn(n*(1-r)*255),u=pn(n*(1-r*l)*255),f=pn(n*(1-r*(1-l))*255);switch(s){case 0:this.g=f,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=f;break;case 3:this.r=c,this.g=u;break;case 4:this.r=f,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){let r=KE(t,D3);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){let r=KE(t,D3);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){let r=KE(t,(n,o)=>o.includes("%")?pn(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}};var I0=2,$3=.16,DG=.05,$G=.05,kG=.15,F3=5,L3=4,AG=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function k3(e,t,r){let n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-I0*t:Math.round(e.h)+I0*t:n=r?Math.round(e.h)+I0*t:Math.round(e.h)-I0*t,n<0?n+=360:n>=360&&(n-=360),n}function A3(e,t,r){if(e.h===0&&e.s===0)return e.s;let n;return r?n=e.s-$3*t:t===L3?n=e.s+$3:n=e.s+DG*t,n>1&&(n=1),r&&t===F3&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function M3(e,t,r){let n;return r?n=e.v+$G*t:n=e.v-kG*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function D0(e,t={}){let r=[],n=new Zl(e),o=n.toHsv();for(let i=F3;i>0;i-=1){let a=new Zl({h:k3(o,i,!0),s:A3(o,i,!0),v:M3(o,i,!0)});r.push(a)}r.push(n);for(let i=1;i<=L3;i+=1){let a=new Zl({h:k3(o,i),s:A3(o,i),v:M3(o,i)});r.push(a)}return t.theme==="dark"?AG.map(({index:i,amount:a})=>new Zl(t.backgroundColor||"#141414").mix(r[i],a).toHexString()):r.map(i=>i.toHexString())}var z3=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];z3.primary=z3[5];var W3=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];W3.primary=W3[5];var B3=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];B3.primary=B3[5];var j3=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];j3.primary=j3[5];var V3=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];V3.primary=V3[5];var H3=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];H3.primary=H3[5];var U3=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];U3.primary=U3[5];var q3=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];q3.primary=q3[5];var $0=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];$0.primary=$0[5];var G3=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];G3.primary=G3[5];var K3=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];K3.primary=K3[5];var X3=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];X3.primary=X3[5];var Y3=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Y3.primary=Y3[5];var Q3=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];Q3.primary=Q3[5];var J3=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];J3.primary=J3[5];var Z3=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];Z3.primary=Z3[5];var e5=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];e5.primary=e5[5];var t5=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];t5.primary=t5[5];var r5=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];r5.primary=r5[5];var n5=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];n5.primary=n5[5];var o5=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];o5.primary=o5[5];var i5=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];i5.primary=i5[5];var a5=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];a5.primary=a5[5];var s5=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];s5.primary=s5[5];var l5=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];l5.primary=l5[5];var c5=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];c5.primary=c5[5];var C5=E(D());function XE(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function YE(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let r=t;for(;r;){if(r===e)return!0;r=r.parentNode}return!1}var u5="data-rc-order",f5="data-rc-priority",MG="rc-util-key",QE=new Map;function d5({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:MG}function JE(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function FG(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function ZE(e){return Array.from((QE.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function p5(e,t={}){if(!XE())return null;let{csp:r,prepend:n,priority:o=0}=t,i=FG(n),a=i==="prependQueue",s=document.createElement("style");s.setAttribute(u5,i),a&&o&&s.setAttribute(f5,`${o}`),r?.nonce&&(s.nonce=r?.nonce),s.innerHTML=e;let l=JE(t),{firstChild:c}=l;if(n){if(a){let u=(t.styles||ZE(l)).filter(f=>{if(!["prepend","prependQueue"].includes(f.getAttribute(u5)))return!1;let p=Number(f.getAttribute(f5)||0);return o>=p});if(u.length)return l.insertBefore(s,u[u.length-1].nextSibling),s}l.insertBefore(s,c)}else l.appendChild(s);return s}function LG(e,t={}){let{styles:r}=t;return r||=ZE(JE(t)),r.find(n=>n.getAttribute(d5(t))===e)}function zG(e,t){let r=QE.get(e);if(!r||!YE(document,r)){let n=p5("",t),{parentNode:o}=n;QE.set(e,o),e.removeChild(n)}}function m5(e,t,r={}){let n=JE(r),o=ZE(n),i={...r,styles:o};zG(n,i);let a=LG(t,i);if(a)return i.csp?.nonce&&a.nonce!==i.csp?.nonce&&(a.nonce=i.csp?.nonce),a.innerHTML!==e&&(a.innerHTML=e),a;let s=p5(e,i);return s.setAttribute(d5(i),t),s}function g5(e){return e?.getRootNode?.()}function WG(e){return g5(e)instanceof ShadowRoot}function h5(e){return WG(e)?g5(e):null}var eR={},BG=[],jG=e=>{BG.push(e)};function VG(e,t){}function HG(e,t){}function UG(){eR={}}function v5(e,t,r){!t&&!eR[r]&&(e(!1,r),eR[r]=!0)}function k0(e,t){v5(VG,e,t)}function qG(e,t){v5(HG,e,t)}k0.preMessage=jG;k0.resetWarned=UG;k0.noteOnce=qG;var y5=k0;var ec=E(D());function GG(e){return e.replace(/-(.)/g,(t,r)=>r.toUpperCase())}function b5(e,t){y5(e,`[@ant-design/icons] ${t}`)}function tR(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function x5(e={}){return Object.keys(e).reduce((t,r)=>{let n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[GG(r)]=n}return t},{})}function A0(e,t,r){return r?ec.default.createElement(e.tag,{key:t,...x5(e.attrs),...r},(e.children||[]).map((n,o)=>A0(n,`${t}-${e.tag}-${o}`))):ec.default.createElement(e.tag,{key:t,...x5(e.attrs)},(e.children||[]).map((n,o)=>A0(n,`${t}-${e.tag}-${o}`)))}function rR(e){return D0(e)[0]}function M0(e){return e?Array.isArray(e)?e:[e]:[]}var KG=` .anticon { display: inline-flex; align-items: center; color: inherit; font-style: normal; line-height: 0; text-align: center; text-transform: none; vertical-align: -0.125em; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .anticon > * { line-height: 1; } .anticon svg { display: inline-block; } .anticon::before { display: none; } .anticon .anticon-icon { display: block; } .anticon[tabindex] { cursor: pointer; } .anticon-spin::before, .anticon-spin { display: inline-block; -webkit-animation: loadingCircle 1s infinite linear; animation: loadingCircle 1s infinite linear; } @-webkit-keyframes loadingCircle { 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } @keyframes loadingCircle { 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } `,S5=e=>{let{csp:t,prefixCls:r,layer:n}=(0,ec.useContext)(N0),o=KG;r&&(o=o.replace(/anticon/g,r)),n&&(o=`@layer ${n} { ${o} }`),(0,ec.useEffect)(()=>{let i=e.current,a=h5(i);m5(o,"@ant-design-icons",{prepend:!n,csp:t,attachTo:a})},[])};var _p={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function XG({primaryColor:e,secondaryColor:t}){_p.primaryColor=e,_p.secondaryColor=t||rR(e),_p.calculated=!!t}function YG(){return{..._p}}var F0=e=>{let{icon:t,className:r,onClick:n,style:o,primaryColor:i,secondaryColor:a,...s}=e,l=C5.useRef(),c=_p;if(i&&(c={primaryColor:i,secondaryColor:a||rR(i)}),S5(l),b5(tR(t),`icon should be icon definiton, but got ${t}`),!tR(t))return null;let u=t;return u&&typeof u.icon=="function"&&(u={...u,icon:u.icon(c.primaryColor,c.secondaryColor)}),A0(u.icon,`svg-${u.name}`,{className:r,onClick:n,style:o,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...s,ref:l})};F0.displayName="IconReact";F0.getTwoToneColors=YG;F0.setTwoToneColors=XG;var Pp=F0;function nR(e){let[t,r]=M0(e);return Pp.setTwoToneColors({primaryColor:t,secondaryColor:r})}function w5(){let e=Pp.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}function oR(){return oR=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{className:r,icon:n,spin:o,rotate:i,tabIndex:a,onClick:s,twoToneColor:l,...c}=e,{prefixCls:u="anticon",rootClassName:f}=tc.useContext(N0),p=(0,E5.default)(f,u,{[`${u}-${n.name}`]:!!n.name,[`${u}-spin`]:!!o||n.name==="loading"},r),g=a;g===void 0&&s&&(g=-1);let h=i?{msTransform:`rotate(${i}deg)`,transform:`rotate(${i}deg)`}:void 0,[v,y]=M0(l);return tc.createElement("span",oR({role:"img","aria-label":n.name},c,{ref:t,tabIndex:g,onClick:s,className:p}),tc.createElement(Pp,{icon:n,primaryColor:v,secondaryColor:y,style:h}))});L0.displayName="AntdIcon";L0.getTwoToneColor=w5;L0.setTwoToneColor=nR;var z0=L0;var W0=E(D());function iR(){return iR=Object.assign?Object.assign.bind():function(e){for(var t=1;tW0.createElement(z0,iR({},e,{ref:t,icon:pv})),JG=W0.forwardRef(QG),aR=JG;var B0=E(D());function sR(){return sR=Object.assign?Object.assign.bind():function(e){for(var t=1;tB0.createElement(z0,sR({},e,{ref:t,icon:YL})),eK=B0.forwardRef(ZG),lR=eK;var ja=E(Or(),1),R5=({value:e,onValueChange:t,options:r,nodeID:n})=>{let o=a=>{if(a.file.status==="done"){let s=a.file.response.name;t?.(s)}},i=mt.graph.nodes.find(a=>a.id===e);return(0,ja.jsxs)(Ba,{gap:5,align:"stretch",vertical:!0,children:[(0,ja.jsxs)(Ba,{gap:5,vertical:!0,children:[(0,ja.jsx)(ip,{style:{flex:1},value:e,onChange:a=>{t?.(a)},options:r.map(a=>({label:a.split("/").pop(),value:a}))}),(0,ja.jsx)(HE,{action:"./api/upload/image",onChange:o,showUploadList:!1,data:a=>({image:a}),children:(0,ja.jsxs)("button",{type:"button",className:"ant-btn",children:[(0,ja.jsx)(lR,{})," ",me("upload")]})})]}),e&&(0,ja.jsx)("img",{src:`./api/view?filename=${e}&type=input&subfolder=${e.startsWith("clipspace/")?"clipspace/":""}&rand=`+Math.random(),width:"100%",style:{aspectRatio:"1/1",objectFit:"contain",cursor:"pointer"},onClick:a=>{mt.constructor.copyToClipspace(mt.graph.nodes.find(s=>s.id===n)),mt.constructor.clipspace_return_node=mt.graph.nodes.find(s=>s.id===n),mt.constructor.open_maskeditor()}})]})};var oa=E(Or(),1),O5=window.comfyAPI.api.api,ef=class extends _5.default.Component{state={comfyStatus:{sid:"",ssid:"",progress:0,queueSize:0,lastError:"",executingNodeTitle:""},widgetTableStructure:Xe.data.widgetTableStructure,widgetTableValue:Xe.data.widgetTableValue,widgetTableErrors:Xe.data.widgetTableErrors};eventListeners=[];unsubscribes=[];constructor(t){super(t);let r=(a,s)=>{O5.addEventListener(a,s),this.eventListeners.push({event:a,handler:s})};r("progress",({detail:a})=>{if(!a||isNaN(a.value/a.max))return;let s=Math.round(a.value/a.max*100);this.setState({comfyStatus:{...this.state.comfyStatus,progress:s}})}),r("status",a=>{a.detail?.exec_info&&this.setState({comfyStatus:{...this.state.comfyStatus,queueSize:a.detail.exec_info.queue_remaining}})}),r("execution_error",({detail:a})=>{this.setState({comfyStatus:{...this.state.comfyStatus,lastError:a.exception_message,executingNodeTitle:""}})}),r("execution_start",()=>{this.setState({comfyStatus:{...this.state.comfyStatus,lastError:"",progress:0,executingNodeTitle:""}})}),r("executing",a=>{let s=a.detail,l=app.graph.nodes.find(c=>c.id==s);l&&this.setState({comfyStatus:{...this.state.comfyStatus,executingNodeTitle:l.title}})}),r("execution_success",()=>{this.setState({comfyStatus:{...this.state.comfyStatus,progress:0,executingNodeTitle:""}})}),r("execution_interrupted",()=>{this.setState({comfyStatus:{...this.state.comfyStatus,progress:0,executingNodeTitle:""}})});let n=a=>{this.setState({widgetTableStructure:a})};Xe.subscribe("/widgetTableStructure",n);let o=a=>{this.setState({widgetTableValue:a})};Xe.subscribe("/widgetTableValue",o);let i=a=>{this.setState({widgetTableErrors:a})};Xe.subscribe("/widgetTableErrors",i),this.unsubscribes.push(()=>{Xe.unsubscribe(n),Xe.unsubscribe(o),Xe.unsubscribe(i)})}componentWillUnmount(){this.eventListeners.forEach(({event:t,handler:r})=>{O5.removeEventListener(t,r)}),this.unsubscribes.forEach(t=>t())}render(){let t={widgetTableStructure:this.state.widgetTableStructure,widgetTableValue:this.state.widgetTableValue,widgetTableErrors:this.state.widgetTableErrors,onWidgetChange:async(n,o,i,a)=>{let s=app.graph.nodes.find(l=>l.id==n);s&&em(s,o,i)},onWidgetRender:(n,o,i,a)=>{if(i.outputType==="number"){let s=i.options?.min??0,l=i.options?.max??100,c=i.options?.step??1;return n.result.push((0,oa.jsx)(E3,{uiWeight:i.uiWeight||12,inputMin:s,inputMax:l,inputStep:c,name:i.name,value:parseFloat(this.state.widgetTableValue[o.id][a]),onValueChange:u=>{t.onWidgetChange(o.id,a,u,o)},extraOptions:this.state.widgetTableStructure.extraOptions},a)),!0}else{if(i.outputType==="combo")return n.result.push((0,oa.jsx)(R3,{uiWeight:i.uiWeight||12,options:i.options?.values||[],name:i.name,onSelectUpdate:s=>{t.onWidgetChange(o.id,a,s,o)},value:this.state.widgetTableValue[o.id][a],extraOptions:this.state.widgetTableStructure.extraOptions},a)),!0;if(i.outputType==="toggle")return n.result.push((0,oa.jsx)(O3,{uiWeight:i.uiWeight||12,name:i.name,value:this.state.widgetTableValue[o.id][a],onValueChange:s=>{t.onWidgetChange(o.id,a,s,o)},extraOptions:this.state.widgetTableStructure.extraOptions},a)),!0;if(i.outputType==="string"||i.outputType==="customtext"||i.outputType==="text")return n.result.push((0,oa.jsx)(P3,{uiWeight:i.uiWeight||12,value:this.state.widgetTableValue[o.id][a],onValueChange:s=>{t.onWidgetChange(o.id,a,s,o)},extraOptions:this.state.widgetTableStructure.extraOptions},a)),!0;if(i.outputType==="PS_LAYER"||i.outputType==="PS_DOCUMENT")return n.result.push((0,oa.jsx)("p",{children:me("only supported in Photoshop")})),!0;if(i.outputType=="IMAGE_PATH"||i.outputType=="MASK_PATH")return n.result.push((0,oa.jsx)(R5,{uiWeight:i.uiWeight||12,value:this.state.widgetTableValue[o.id][a],options:i.options?.values||[],onValueChange:async s=>{t.onWidgetChange(o.id,a,s,o)},nodeID:o.id,extraOptions:this.state.widgetTableStructure.extraOptions},a)),!0}return!0},onTitleRender:(n,o)=>(0,oa.jsx)(T3,{title:n,onTitleChange:i=>{Bn.instance.setNodeTitle({node_id:o.id,title:i})}})},r=12;return(0,oa.jsx)(Ia,{theme:{components:{Input:{fontSize:r,colorBgContainer:"var(--p-form-field-background)",colorText:"var(--p-form-field-color)",colorBorder:"var(--p-form-field-border-color)"},Select:{fontSize:r,colorBgContainer:"var(--p-form-field-background)",colorText:"var(--p-form-field-color)",colorBorder:"var(--p-form-field-border-color)",colorBgElevated:"var(--p-form-field-background)",colorTextDescription:"var(--p-form-field-color)",controlItemBgActive:"var(--p-form-field-background)",controlItemBgHover:"var(--p-form-field-border-color)"},Checkbox:{fontSize:r,colorText:"var(--p-form-field-color)"},Radio:{fontSize:r},Slider:{fontSize:r},Switch:{fontSize:r,colorBgContainer:"var(--p-form-field-background)",colorText:"var(--p-form-field-color)"},InputNumber:{fontSize:r,colorBgContainer:"var(--p-form-field-background)",colorText:"var(--p-form-field-color)",colorBorder:"var(--p-form-field-border-color)"}}},children:(0,oa.jsx)(qE,{...t})})}};var kn=E(Or(),1),P5=document.createElement("style");P5.innerHTML=GT;document.head.appendChild(P5);function cR({onClose:e,tab:t}){let[r,n]=(0,tf.useState)("1"),[o,i]=(0,tf.useState)(0);return(0,tf.useEffect)(()=>{n(t)},[t]),(0,tf.useEffect)(()=>{let a=document.getElementById("graph-canvas"),s=0,l,c=()=>{if(s++,s%3===0&&a){let u=document.querySelector(".side-bar-panel");u&&u.style.display!=="none"?i(u.clientWidth):i(0)}l=requestAnimationFrame(c)};return l=requestAnimationFrame(c),()=>{cancelAnimationFrame(l)}},[]),(0,kn.jsx)(Ia,{theme:{token:{colorText:"var(--fg-color)",colorBgContainer:"var(--comfy-input-bg)",colorBgElevated:"var(--comfy-input-bg)",colorFillSecondary:"var(--comfy-input-bg)",controlItemBgHover:"var(--comfy-input-bg)",colorBgTextHover:"var(--comfy-input-bg)",colorBorder:"var(--p-inputtext-border-color)"}},children:(0,kn.jsxs)("div",{className:"sdppp-menu-container",style:{paddingLeft:o},children:[(0,kn.jsxs)("div",{className:"sdppp-menu-header",children:[(0,kn.jsxs)("div",{className:"sdppp-menu-header-left",children:[(0,kn.jsx)("button",{onClick:()=>n("1"),className:r==="1"?"active":"",children:me("Simplify Workflow")}),(0,kn.jsx)("button",{onClick:()=>n("2"),className:r==="2"?"active":"",children:me("Photoshop")})]}),(0,kn.jsx)("span",{children:"Powered by SDPPP"}),(0,kn.jsx)("button",{className:"sdppp-menu-close-button",onClick:e,children:(0,kn.jsx)(aR,{})})]}),(0,kn.jsxs)("div",{className:"sdppp-menu-content",children:[(0,kn.jsx)("div",{className:"sdppp-menu-workflow-edit-wrap",style:{display:r==="1"?"block":"none"},children:(0,kn.jsx)(ef,{})}),(0,kn.jsx)("div",{className:"sdppp-menu-settings-wrap",style:{display:r==="2"?"block":"none"},children:(0,kn.jsx)(S3,{})})]})]})})}var rc=E(Or(),1);function uR({onMaximize:e,onPhotoshop:t}){return(0,rc.jsxs)("div",{className:"sdppp-side-container",children:[(0,rc.jsxs)("div",{className:"sdppp-side-header",children:[(0,rc.jsx)("button",{className:"sdppp-photoshop-icon",onClick:t}),(0,rc.jsx)("button",{className:"pi pi-window-maximize",onClick:e})]}),(0,rc.jsx)(ef,{})]})}var T5=null,tK=null,fR=null;async function mR(e){if(!T5){let t=document.createElement("div");t.id="sdppp-popup-root",t.style.display="none",document.getElementById("graph-canvas-container")?.prepend(t),e.extensionManager.registerSidebarTab({id:"sdppp",title:"SD-PPP",tooltip:"SD-PPP Workflow UI",icon:"sdppp-side-icon",type:"custom",render:r=>{tK||(r.style.width="100%",r.style.height="auto",r.style.padding="8px",(0,dR.createRoot)(r).render((0,pR.createElement)(uR,{onMaximize:()=>{n("1")},onPhotoshop:()=>{n("2")}}))),t.style.display="none";function n(o){T5?fR.props.tab=o:(fR=(0,pR.createElement)(cR,{onClose:()=>{t.style.display="none"},tab:o}),(0,dR.createRoot)(t).render(fR)),t.style.display="flex",document.querySelector(".sdppp-side-icon")?.parentElement?.click()}}})}}an.addEventListener("graphChanged",e=>{let r=(mt.workflowManager||mt.extensionManager.workflow).activeWorkflow;if(e.detail.id!==r.activeState.id)return;let n=Xe.data.widgetTableStructure,o=tm(mt.graph,r);k5(o,n)&&Xe.setWidgetTableStructure(o),Xe.setWidgetTableValue(hf(mt.graph))});an.addEventListener("executed",()=>{Xe.setWidgetTableValue(hf(mt.graph))});var N5=0,I5=!0,D5="";function $5(){requestAnimationFrame($5);let e=mt.workflowManager||mt.extensionManager.workflow,t=e.activeWorkflow,r=t?.id||0,n=t?.path||"",o=t?.isPersisted||!0;if(r===N5&&n===D5&&o===I5)return;N5=r,D5=n,I5=o;let i=tm(mt.graph,t),a=hf(mt.graph);Xe.setWidgetTableStructure(i),Xe.setWidgetTableValue(a),setTimeout(()=>{if(t!==e.activeWorkflow)return;let s=tm(mt.graph,t),l=hf(mt.graph);k5(s,i)&&Xe.setWidgetTableStructure(s),Xe.setWidgetTableValue(l)},800)}requestAnimationFrame($5);function k5(e,t){return e.nodeIndexes.length!==t.nodeIndexes.length||JSON.stringify(e.nodeIndexes)!==JSON.stringify(t.nodeIndexes)||JSON.stringify(e.groups)!==JSON.stringify(t.groups)||JSON.stringify(e.nodes)!==JSON.stringify(t.nodes)}async function rK(e,t,r){t.addEventListener("progress",({detail:s})=>{if(!s||isNaN(s.value/s.max))return;let l=Math.round(s.value/s.max*100);Xe.setProgress(l)}),t.addEventListener("status",s=>{s.detail?.exec_info&&Xe.setQueueSize(s.detail.exec_info.queue_remaining)}),t.addEventListener("execution_error",({detail:s})=>{if(Xe.setExecutingNodeTitle(""),Xe.setLastError(s.exception_message),s.node_id){let l=e.graph.nodes.find(c=>c.id==s.node_id);Xe.setWidgetTableErrors({[s.node_id]:`[${l?.title||s.node_id}]`+s.exception_message})}});let n=[];t.addEventListener("execution_start",({detail:s})=>{if(Xe.setLastError(""),Xe.setWidgetTableErrors({}),Xe.setProgress(0),Xe.setExecutingNodeTitle(""),n.length){let l=n.shift();l&&o.set(s.prompt_id,l)}}),t.addEventListener("executing",s=>{let l=s.detail,c=graph.nodes.find(u=>u.id==l);c&&Xe.setExecutingNodeTitle(c.title)}),t.addEventListener("execution_success",s=>{Xe.setProgress(0),Xe.setExecutingNodeTitle(""),al.get(s.detail.prompt_id)&&al.delete(s.detail.prompt_id)}),t.addEventListener("execution_interrupted",()=>{Xe.setProgress(0),Xe.setExecutingNodeTitle("")});let o=new Map;t.addEventListener("executed",s=>{if(s.detail.output&&Array.isArray(s.detail.output.images)&&s.detail.output.images.length>0){let l=null;if(al.get(s.detail.prompt_id)?l=al.get(s.detail.prompt_id):l=location.search.match(/webview_fromsid=([^&]+)/)?.[1]||"",!l)return;e.graph.nodes.filter(c=>c.type=="Send Images To Photoshop").filter(c=>c.mode==0).length||i?.sendImage(l,{document_identify:Xt.getSpecialDocumentForPreview(),layer_identifies:s.detail.output.images.map(()=>Xt.getSpecialLayerForSend()[0]),boundaries:s.detail.output.images.map(()=>""),image_urls:s.detail.output.images.map(c=>location.origin+"/api/view?type="+c.type+"&filename="+c.filename),new_layer_name:nm(Xe.data.widgetTableStructure.widgetTablePath)})}}),mR(e);var i=new Bn;i.connect(),e.registerExtension({name:"Comfy.SD-PPP",async setup(){},async beforeRegisterNodeDef(s,l,c){try{pO(s,l)}catch(u){Tp.push(u.stack||u.message||u)}}})}var Tp=[];(async function(){if(!(typeof gradioApp<"u")){try{let e=window.comfyAPI?.app?.app,t=window.comfyAPI?.ui?.$el,r=window.comfyAPI?.api?.api;if(!e||!r||!t)throw new Error("comfyAPI is not initialized, maybe comfyUI is too old");await ER(),await rK(e,r,t),import("./sdppp-custom.js").then(n=>{n.default(ia)})}catch(e){Tp.push(e.stack||e.message||e)}await new Promise(e=>setTimeout(e,2e3)),Tp.length&&(console.error(Tp[0]),alert(`sd-ppp init failed: `+Tp.join(` `)))}})(); /*! Bundled license information: react/cjs/react.production.min.js: (** * @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. *) scheduler/cjs/scheduler.production.min.js: (** * @license React * scheduler.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. *) react-dom/cjs/react-dom.production.min.js: (** * @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. *) classnames/index.js: (*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames *) react-is/cjs/react-is.production.min.js: (** * @license React * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) react/cjs/react-jsx-runtime.production.min.js: (** * @license React * react-jsx-runtime.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. *) fast-json-patch/module/helpers.mjs: (*! * https://github.com/Starcounter-Jack/JSON-Patch * (c) 2017-2022 Joachim Wester * MIT licensed *) fast-json-patch/module/duplex.mjs: (*! * https://github.com/Starcounter-Jack/JSON-Patch * (c) 2017-2021 Joachim Wester * MIT license *) @babel/runtime/helpers/esm/regeneratorRuntime.js: (*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE *) */