var V5=Object.create;var Lp=Object.defineProperty;var RR=Object.getOwnPropertyDescriptor;var H5=Object.getOwnPropertyNames;var U5=Object.getPrototypeOf,q5=Object.prototype.hasOwnProperty;var J0=(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),Z0=(e,t)=>{for(var r in t)Lp(e,r,{get:t[r],enumerable:!0})},G5=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of H5(t))!q5.call(e,o)&&o!==r&&Lp(e,o,{get:()=>t[o],enumerable:!(n=RR(t,o))||n.enumerable});return e};var E=(e,t,r)=>(r=e!=null?V5(U5(e)):{},G5(t||!e||!e.__esModule?Lp(r,"default",{value:e,enumerable:!0}):r,e));var Jt=(e,t,r,n)=>{for(var o=n>1?void 0:n?RR(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&&Lp(t,r,o),o};var DO=Do(Ct=>{"use strict";var Cf=Symbol.for("react.element"),D4=Symbol.for("react.portal"),$4=Symbol.for("react.fragment"),A4=Symbol.for("react.strict_mode"),k4=Symbol.for("react.profiler"),M4=Symbol.for("react.provider"),F4=Symbol.for("react.context"),L4=Symbol.for("react.forward_ref"),z4=Symbol.for("react.suspense"),W4=Symbol.for("react.memo"),B4=Symbol.for("react.lazy"),SO=Symbol.iterator;function j4(e){return e===null||typeof e!="object"?null:(e=SO&&e[SO]||e["@@iterator"],typeof e=="function"?e:null)}var EO={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},RO=Object.assign,OO={};function yc(e,t,r){this.props=e,this.context=t,this.refs=OO,this.updater=r||EO}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 _O(){}_O.prototype=yc.prototype;function Dx(e,t,r){this.props=e,this.context=t,this.refs=OO,this.updater=r||EO}var $x=Dx.prototype=new _O;$x.constructor=Dx;RO($x,yc.prototype);$x.isPureReactComponent=!0;var CO=Array.isArray,PO=Object.prototype.hasOwnProperty,Ax={current:null},TO={key:!0,ref:!0,__self:!0,__source:!0};function NO(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)PO.call(t,n)&&!TO.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(s===1)o.children=r;else if(1{"use strict";$O.exports=DO()});var VO=Do(er=>{"use strict";function zx(e,t){var r=e.length;e.push(t);e:for(;0>>1,o=e[n];if(0>>1;nRm(s,r))lRm(c,s)?(e[n]=c,e[l]=r,n=l):(e[n]=s,e[a]=r,n=a);else if(lRm(c,r))e[n]=c,e[l]=r,n=l;else break e}}return t}function Rm(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(AO=performance,er.unstable_now=function(){return AO.now()}):(Mx=Date,kO=Mx.now(),er.unstable_now=function(){return Mx.now()-kO});var AO,Mx,kO,zi=[],Ja=[],G4=1,ko=null,_n=3,Pm=!1,cl=!1,Ef=!1,LO=typeof setTimeout=="function"?setTimeout:null,zO=typeof clearTimeout=="function"?clearTimeout:null,MO=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Wx(e){for(var t=ui(Ja);t!==null;){if(t.callback===null)_m(Ja);else if(t.startTime<=e)_m(Ja),t.sortIndex=t.expirationTime,zx(zi,t);else break;t=ui(Ja)}}function Bx(e){if(Ef=!1,Wx(e),!cl)if(ui(zi)!==null)cl=!0,Vx(jx);else{var t=ui(Ja);t!==null&&Hx(Bx,t.startTime-e)}}function jx(e,t){cl=!1,Ef&&(Ef=!1,zO(Rf),Rf=-1),Pm=!0;var r=_n;try{for(Wx(t),ko=ui(zi);ko!==null&&(!(ko.expirationTime>t)||e&&!jO());){var n=ko.callback;if(typeof n=="function"){ko.callback=null,_n=ko.priorityLevel;var o=n(ko.expirationTime<=t);t=er.unstable_now(),typeof o=="function"?ko.callback=o:ko===ui(zi)&&_m(zi),Wx(t)}else _m(zi);ko=ui(zi)}if(ko!==null)var i=!0;else{var a=ui(Ja);a!==null&&Hx(Bx,a.startTime-t),i=!1}return i}finally{ko=null,_n=r,Pm=!1}}var Tm=!1,Om=null,Rf=-1,WO=5,BO=-1;function jO(){return!(er.unstable_now()-BOe||125n?(e.sortIndex=r,zx(Ja,e),ui(zi)===null&&e===ui(Ja)&&(Ef?(zO(Rf),Rf=-1):Ef=!0,Hx(Bx,r-n))):(e.sortIndex=o,zx(zi,e),cl||Pm||(cl=!0,Vx(jx))),e};er.unstable_shouldYield=jO;er.unstable_wrapCallback=function(e){var t=_n;return function(){var r=_n;_n=t;try{return e.apply(this,arguments)}finally{_n=r}}}});var UO=Do((AJ,HO)=>{"use strict";HO.exports=VO()});var XT=Do(So=>{"use strict";var K4=N(),xo=UO();function me(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"),pb=Object.prototype.hasOwnProperty,X4=/^[: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]*$/,qO={},GO={};function Y4(e){return pb.call(GO,e)?!0:pb.call(qO,e)?!1:X4.test(e)?GO[e]=!0:(qO[e]=!0,!1)}function Q4(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 J4(e,t,r,n){if(t===null||typeof t>"u"||Q4(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 iS=/[\-:]([a-z])/g;function aS(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(iS,aS);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(iS,aS);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(iS,aS);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 sS(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{qx=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Af(e):""}function Z4(e){switch(e.tag){case 5:return Af(e.type);case 16:return Af("Lazy");case 13:return Af("Suspense");case 19:return Af("SuspenseList");case 0:case 2:case 15:return e=Gx(e.type,!1),e;case 11:return e=Gx(e.type.render,!1),e;case 1:return e=Gx(e.type,!0),e;default:return""}}function vb(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 mb:return"Profiler";case lS:return"StrictMode";case gb:return"Suspense";case hb:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case eP:return(e.displayName||"Context")+".Consumer";case Z_:return(e._context.displayName||"Context")+".Provider";case cS:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case uS:return t=e.displayName||null,t!==null?t:vb(e.type)||"Memo";case es:t=e._payload,e=e._init;try{return vb(e(t))}catch{}}return null}function e6(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 vb(t);case 8:return t===lS?"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 rP(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function t6(e){var t=rP(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 Im(e){e._valueTracker||(e._valueTracker=t6(e))}function nP(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=rP(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function ig(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 yb(e,t){var r=t.checked;return Rr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function XO(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 oP(e,t){t=t.checked,t!=null&&sS(e,"checked",t,!1)}function xb(e,t){oP(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")?bb(e,t.type,r):t.hasOwnProperty("defaultValue")&&bb(e,t.type,ms(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function YO(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 bb(e,t,r){(t!=="number"||ig(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var kf=Array.isArray;function $c(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Dm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Kf(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Lf={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},r6=["Webkit","ms","Moz","O"];Object.keys(Lf).forEach(function(e){r6.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Lf[t]=Lf[e]})});function lP(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Lf.hasOwnProperty(e)&&Lf[e]?(""+t).trim():t+"px"}function cP(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=lP(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var n6=Rr({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 wb(e,t){if(t){if(n6[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(me(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(me(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(me(61))}if(t.style!=null&&typeof t.style!="object")throw Error(me(62))}}function Eb(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 Rb=null;function fS(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ob=null,Ac=null,kc=null;function ZO(e){if(e=dd(e)){if(typeof Ob!="function")throw Error(me(280));var t=e.stateNode;t&&(t=$g(t),Ob(e.stateNode,e.type,t))}}function uP(e){Ac?kc?kc.push(e):kc=[e]:Ac=e}function fP(){if(Ac){var e=Ac,t=kc;if(kc=Ac=null,ZO(e),t)for(e=0;e>>=0,e===0?32:31-(m6(e)/g6|0)|0}var $m=64,Am=4194304;function Mf(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 cg(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=Mf(s):(i&=a,i!==0&&(n=Mf(i)))}else a=r&~o,a!==0?n=Mf(a):i!==0&&(n=Mf(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 ud(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 x6(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=Wf),l_=" ",c_=!1;function IP(e,t){switch(e){case"keyup":return G6.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function DP(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wc=!1;function X6(e,t){switch(e){case"compositionend":return DP(t);case"keypress":return t.which!==32?null:(c_=!0,l_);case"textInput":return e=t.data,e===l_&&c_?null:e;default:return null}}function Y6(e,t){if(wc)return e==="compositionend"||!xS&&IP(e,t)?(e=TP(),Ym=hS=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=d_(r)}}function MP(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?MP(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function FP(){for(var e=window,t=ig();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=ig(e.document)}return t}function bS(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 iz(e){var t=FP(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&MP(r.ownerDocument.documentElement,r)){if(n!==null&&bS(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=p_(r,i);var a=p_(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,Db=null,jf=null,$b=!1;function m_(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;$b||Ec==null||Ec!==ig(n)||(n=Ec,"selectionStart"in n&&bS(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}),jf&&ed(jf,n)||(jf=n,n=dg(Db,"onSelect"),0_c||(e.current=zb[_c],zb[_c]=null,_c--)}function tr(e,t){_c++,zb[_c]=e.current,e.current=t}var gs={},In=vs(gs),eo=vs(!1),vl=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 to(e){return e=e.childContextTypes,e!=null}function mg(){ar(eo),ar(In)}function w_(e,t,r){if(In.current!==gs)throw Error(me(168));tr(In,t),tr(eo,r)}function qP(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(me(108,e6(e)||"Unknown",o));return Rr({},r,n)}function gg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||gs,vl=In.current,tr(In,e),tr(eo,eo.current),!0}function E_(e,t,r){var n=e.stateNode;if(!n)throw Error(me(169));r?(e=qP(e,t,vl),n.__reactInternalMemoizedMergedChildContext=e,ar(eo),ar(In),tr(In,e)):ar(eo),tr(eo,r)}var pa=null,Ag=!1,ob=!1;function GP(e){pa===null?pa=[e]:pa.push(e)}function gz(e){Ag=!0,GP(e)}function ys(){if(!ob&&pa!==null){ob=!0;var e=0,t=jt;try{var r=pa;for(jt=1;e>=a,o-=a,ma=1<<32-gi(t)+o|r<R?(P=C,C=null):P=C.sibling;var O=d(g,C,x[R],b);if(O===null){C===null&&(C=P);break}e&&C&&O.alternate===null&&t(g,C),p=i(O,p,R),w===null?S=O:w.sibling=O,w=O,C=P}if(R===x.length)return r(g,C),hr&&ul(g,R),S;if(C===null){for(;RR?(P=C,C=null):P=C.sibling;var I=d(g,C,O.value,b);if(I===null){C===null&&(C=P);break}e&&C&&I.alternate===null&&t(g,C),p=i(I,p,R),w===null?S=I:w.sibling=I,w=I,C=P}if(O.done)return r(g,C),hr&&ul(g,R),S;if(C===null){for(;!O.done;R++,O=x.next())O=f(g,O.value,b),O!==null&&(p=i(O,p,R),w===null?S=O:w.sibling=O,w=O);return hr&&ul(g,R),S}for(C=n(g,C);!O.done;R++,O=x.next())O=m(C,g,R,O.value,b),O!==null&&(e&&O.alternate!==null&&C.delete(O.key===null?R:O.key),p=i(O,p,R),w===null?S=O:w.sibling=O,w=O);return e&&C.forEach(function(D){return t(g,D)}),hr&&ul(g,R),S}function y(g,p,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 Nm:e:{for(var S=x.key,w=p;w!==null;){if(w.key===S){if(S=x.type,S===Cc){if(w.tag===7){r(g,w.sibling),p=o(w,x.props.children),p.return=g,g=p;break e}}else if(w.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===es&&__(S)===w.type){r(g,w.sibling),p=o(w,x.props),p.ref=Nf(g,w,x),p.return=g,g=p;break e}r(g,w);break}else t(g,w);w=w.sibling}x.type===Cc?(p=hl(x.props.children,g.mode,b,x.key),p.return=g,g=p):(b=og(x.type,x.key,x.props,null,g.mode,b),b.ref=Nf(g,p,x),b.return=g,g=b)}return a(g);case Sc:e:{for(w=x.key;p!==null;){if(p.key===w)if(p.tag===4&&p.stateNode.containerInfo===x.containerInfo&&p.stateNode.implementation===x.implementation){r(g,p.sibling),p=o(p,x.children||[]),p.return=g,g=p;break e}else{r(g,p);break}else t(g,p);p=p.sibling}p=db(x,g.mode,b),p.return=g,g=p}return a(g);case es:return w=x._init,y(g,p,w(x._payload),b)}if(kf(x))return h(g,p,x,b);if(Of(x))return v(g,p,x,b);Um(g,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,p!==null&&p.tag===6?(r(g,p.sibling),p=o(p,x),p.return=g,g=p):(r(g,p),p=fb(x,g.mode,b),p.return=g,g=p),a(g)):r(g,p)}return y}var jc=QP(!0),JP=QP(!1),yg=vs(null),xg=null,Nc=null,ES=null;function RS(){ES=Nc=xg=null}function OS(e){var t=yg.current;ar(yg),e._currentValue=t}function jb(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){xg=e,ES=Nc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Zn=!0),e.firstContext=null)}function Wo(e){var t=e._currentValue;if(ES!==e)if(e={context:e,memoizedValue:t,next:null},Nc===null){if(xg===null)throw Error(me(308));Nc=e,xg.dependencies={lanes:0,firstContext:e}}else Nc=Nc.next=e;return t}var pl=null;function _S(e){pl===null?pl=[e]:pl.push(e)}function ZP(e,t,r,n){var o=t.interleaved;return o===null?(r.next=r,_S(t)):(r.next=o.next,o.next=r),t.interleaved=r,xa(e,n)}function xa(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 PS(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function eT(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 ha(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,xa(e,r)}return o=n.interleaved,o===null?(t.next=t,_S(n)):(t.next=o.next,o.next=t),n.interleaved=t,xa(e,r)}function Jm(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,pS(e,r)}}function P_(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 bg(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 d=s.lane,m=s.eventTime;if((n&d)===d){u!==null&&(u=u.next={eventTime:m,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,v=s;switch(d=t,m=r,v.tag){case 1:if(h=v.payload,typeof h=="function"){f=h.call(m,f,d);break e}f=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=v.payload,d=typeof h=="function"?h.call(m,f,d):h,d==null)break e;f=Rr({},f,d);break e;case 2:ts=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,d=o.effects,d===null?o.effects=[s]:d.push(s))}else m={eventTime:m,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=m,l=f):u=u.next=m,a|=d;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;d=s,s=d.next,d.next=null,o.lastBaseUpdate=d,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);bl|=a,e.lanes=a,e.memoizedState=f}}function T_(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=ab.transition;ab.transition={};try{e(!1),t()}finally{jt=r,ab.transition=n}}function vT(){return Bo().memoizedState}function xz(e,t,r){var n=ds(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},yT(e))xT(t,r);else if(r=ZP(e,t,r,n),r!==null){var o=Hn();hi(r,e,n,o),bT(r,t,n)}}function bz(e,t,r){var n=ds(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(yT(e))xT(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,_S(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}r=ZP(e,t,o,n),r!==null&&(o=Hn(),hi(r,e,n,o),bT(r,t,n))}}function yT(e){var t=e.alternate;return e===Er||t!==null&&t===Er}function xT(e,t){Vf=Cg=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function bT(e,t,r){if((r&4194240)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,pS(e,r)}}var wg={readContext:Wo,useCallback:Pn,useContext:Pn,useEffect:Pn,useImperativeHandle:Pn,useInsertionEffect:Pn,useLayoutEffect:Pn,useMemo:Pn,useReducer:Pn,useRef:Pn,useState:Pn,useDebugValue:Pn,useDeferredValue:Pn,useTransition:Pn,useMutableSource:Pn,useSyncExternalStore:Pn,useId:Pn,unstable_isNewReconciler:!1},Sz={readContext:Wo,useCallback:function(e,t){return Bi().memoizedState=[e,t===void 0?null:t],e},useContext:Wo,useEffect:I_,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,eg(4194308,4,dT.bind(null,t,e),r)},useLayoutEffect:function(e,t){return eg(4194308,4,e,t)},useInsertionEffect:function(e,t){return eg(4,2,e,t)},useMemo:function(e,t){var r=Bi();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Bi();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=xz.bind(null,Er,e),[n.memoizedState,e]},useRef:function(e){var t=Bi();return e={current:e},t.memoizedState=e},useState:N_,useDebugValue:MS,useDeferredValue:function(e){return Bi().memoizedState=e},useTransition:function(){var e=N_(!1),t=e[0];return e=yz.bind(null,e[1]),Bi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Er,o=Bi();if(hr){if(r===void 0)throw Error(me(407));r=r()}else{if(r=t(),an===null)throw Error(me(349));(xl&30)!==0||oT(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,I_(aT.bind(null,n,i,e),[e]),n.flags|=2048,ld(9,iT.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=Bi(),t=an.identifierPrefix;if(hr){var r=ga,n=ma;r=(n&~(1<<32-gi(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=ad++,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[ji]=t,e[nd]=n,NT(e,t,!1,!1),t.stateNode=e;e:{switch(a=Eb(r,n),r){case"dialog":ir("cancel",e),ir("close",e),o=n;break;case"iframe":case"object":case"embed":ir("load",e),o=n;break;case"video":case"audio":for(o=0;oUc&&(t.flags|=128,n=!0,If(i,!1),t.lanes=4194304)}else{if(!n)if(e=Sg(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),If(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!hr)return Tn(t),null}else 2*Lr()-i.renderingStartTime>Uc&&r!==1073741824&&(t.flags|=128,n=!0,If(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=wr.current,tr(wr,n?r&1|2:r&1),t):(Tn(t),null);case 22:case 23:return jS(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(ho&1073741824)!==0&&(Tn(t),t.subtreeFlags&6&&(t.flags|=8192)):Tn(t),null;case 24:return null;case 25:return null}throw Error(me(156,t.tag))}function Tz(e,t){switch(CS(t),t.tag){case 1:return to(t.type)&&mg(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vc(),ar(eo),ar(In),IS(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return NS(t),null;case 13:if(ar(wr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(me(340));Bc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ar(wr),null;case 4:return Vc(),null;case 10:return OS(t.type._context),null;case 22:case 23:return jS(),null;case 24:return null;default:return null}}var Gm=!1,Nn=!1,Nz=typeof WeakSet=="function"?WeakSet:Set,Ge=null;function Ic(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Dr(e,t,n)}else r.current=null}function Qb(e,t,r){try{r()}catch(n){Dr(e,t,n)}}var j_=!1;function Iz(e,t){if(Ab=ug,e=FP(),bS(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,d=null;t:for(;;){for(var m;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),(m=f.firstChild)!==null;)d=f,f=m;for(;;){if(f===e)break t;if(d===r&&++c===o&&(s=a),d===i&&++u===n&&(l=a),(m=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=m}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(kb={focusedElem:e,selectionRange:r},ug=!1,Ge=t;Ge!==null;)if(t=Ge,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ge=e;else for(;Ge!==null;){t=Ge;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,g=t.stateNode,p=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:di(t.type,v),y);g.__reactInternalSnapshotBeforeUpdate=p}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(me(163))}}catch(b){Dr(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,Ge=e;break}Ge=t.return}return h=j_,j_=!1,h}function Hf(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&&Qb(t,r,i)}o=o.next}while(o!==n)}}function Fg(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 Jb(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 $T(e){var t=e.alternate;t!==null&&(e.alternate=null,$T(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ji],delete t[nd],delete t[Lb],delete t[pz],delete t[mz])),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 AT(e){return e.tag===5||e.tag===3||e.tag===4}function V_(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||AT(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 Zb(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=pg));else if(n!==4&&(e=e.child,e!==null))for(Zb(e,t,r),e=e.sibling;e!==null;)Zb(e,t,r),e=e.sibling}function eS(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(eS(e,t,r),e=e.sibling;e!==null;)eS(e,t,r),e=e.sibling}var gn=null,pi=!1;function Za(e,t,r){for(r=r.child;r!==null;)kT(e,t,r),r=r.sibling}function kT(e,t,r){if(Vi&&typeof Vi.onCommitFiberUnmount=="function")try{Vi.onCommitFiberUnmount(Tg,r)}catch{}switch(r.tag){case 5:Nn||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?nb(e.parentNode,r):e.nodeType===1&&nb(e,r),Jf(e)):nb(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(!Nn&&(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)&&Qb(r,t,a),o=o.next}while(o!==n)}Za(e,t,r);break;case 1:if(!Nn&&(Ic(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Dr(r,t,s)}Za(e,t,r);break;case 21:Za(e,t,r);break;case 22:r.mode&1?(Nn=(n=Nn)||r.memoizedState!==null,Za(e,t,r),Nn=n):Za(e,t,r);break;default:Za(e,t,r)}}function H_(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Nz),t.forEach(function(n){var o=Wz.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*$z(n/1960))-n,10e?16:e,is===null)var n=!1;else{if(e=is,is=null,Og=0,($t&6)!==0)throw Error(me(331));var o=$t;for($t|=4,Ge=e.current;Ge!==null;){var i=Ge,a=i.child;if((Ge.flags&16)!==0){var s=i.deletions;if(s!==null){for(var l=0;lLr()-WS?gl(e,0):zS|=r),ro(e,t)}function VT(e,t){t===0&&((e.mode&1)===0?t=1:(t=Am,Am<<=1,(Am&130023424)===0&&(Am=4194304)));var r=Hn();e=xa(e,t),e!==null&&(ud(e,t,r),ro(e,r))}function zz(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),VT(e,r)}function Wz(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(me(314))}n!==null&&n.delete(t),VT(e,r)}var HT;HT=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||eo.current)Zn=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return Zn=!1,_z(e,t,r);Zn=(e.flags&131072)!==0}else Zn=!1,hr&&(t.flags&1048576)!==0&&KP(t,vg,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;tg(e,t),e=t.pendingProps;var o=Wc(t,In.current);Fc(t,r),o=$S(null,t,n,e,o,r);var i=AS();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,to(n)?(i=!0,gg(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,PS(t),o.updater=Mg,t.stateNode=o,o._reactInternals=t,Hb(t,n,e,r),t=Gb(null,t,n,!0,i,r)):(t.tag=0,hr&&i&&SS(t),Vn(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(tg(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=jz(n),e=di(n,e),o){case 0:t=qb(null,t,n,e,r);break e;case 1:t=z_(null,t,n,e,r);break e;case 11:t=F_(null,t,n,e,r);break e;case 14:t=L_(null,t,n,di(n.type,e),r);break e}throw Error(me(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:di(n,o),qb(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:di(n,o),z_(e,t,n,o,r);case 3:e:{if(_T(t),e===null)throw Error(me(387));n=t.pendingProps,i=t.memoizedState,o=i.element,eT(e,t),bg(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(me(423)),t),t=W_(e,t,n,r,o);break e}else if(n!==o){o=Hc(Error(me(424)),t),t=W_(e,t,n,r,o);break e}else for(vo=cs(t.stateNode.containerInfo.firstChild),yo=t,hr=!0,mi=null,r=JP(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Bc(),n===o){t=ba(e,t,r);break e}Vn(e,t,n,r)}t=t.child}return t;case 5:return tT(t),e===null&&Bb(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Mb(n,o)?a=null:i!==null&&Mb(n,i)&&(t.flags|=32),OT(e,t),Vn(e,t,a,r),t.child;case 6:return e===null&&Bb(t),null;case 13:return PT(e,t,r);case 4:return TS(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),F_(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,tr(yg,n._currentValue),n._currentValue=a,i!==null)if(vi(i.value,a)){if(i.children===o.children&&!eo.current){t=ba(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=ha(-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),jb(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(me(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),jb(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),L_(e,t,n,o,r);case 15:return ET(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:di(n,o),tg(e,t),t.tag=1,to(n)?(e=!0,gg(t)):e=!1,Fc(t,r),ST(t,n,o),Hb(t,n,o,r),Gb(null,t,n,!0,e,r);case 19:return TT(e,t,r);case 22:return RT(e,t,r)}throw Error(me(156,t.tag))};function UT(e,t){return yP(e,t)}function Bz(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 Bz(e,t,r,n)}function HS(e){return e=e.prototype,!(!e||!e.isReactComponent)}function jz(e){if(typeof e=="function")return HS(e)?1:0;if(e!=null){if(e=e.$$typeof,e===cS)return 11;if(e===uS)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 og(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")HS(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Cc:return hl(r.children,o,i,t);case lS:a=8,o|=8;break;case mb:return e=Lo(12,r,t,o|2),e.elementType=mb,e.lanes=i,e;case gb:return e=Lo(13,r,t,o),e.elementType=gb,e.lanes=i,e;case hb:return e=Lo(19,r,t,o),e.elementType=hb,e.lanes=i,e;case tP:return zg(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Z_:a=10;break e;case eP:a=9;break e;case cS:a=11;break e;case uS:a=14;break e;case es:a=16,n=null;break e}throw Error(me(130,e==null?e:typeof e,""))}return t=Lo(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function hl(e,t,r,n){return e=Lo(7,e,n,t),e.lanes=r,e}function zg(e,t,r,n){return e=Lo(22,e,n,t),e.elementType=tP,e.lanes=r,e.stateNode={isHidden:!1},e}function fb(e,t,r){return e=Lo(6,e,null,t),e.lanes=r,e}function db(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 Vz(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=Xx(0),this.expirationTimes=Xx(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xx(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function US(e,t,r,n,o,i,a,s,l){return e=new Vz(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},PS(i),e}function Hz(e,t,r){var n=3{"use strict";function YT(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(YT)}catch(e){console.error(e)}}YT(),QT.exports=XT()});var ZT=Do(XS=>{"use strict";var JT=Ui();XS.createRoot=JT.createRoot,XS.hydrateRoot=JT.hydrateRoot;var FJ});var Ne=Do((WJ,Hg)=>{"use strict";(function(){"use strict";var e={}.hasOwnProperty;function t(){for(var o="",i=0;i{"use strict";var JS=Symbol.for("react.element"),ZS=Symbol.for("react.portal"),Gg=Symbol.for("react.fragment"),Kg=Symbol.for("react.strict_mode"),Xg=Symbol.for("react.profiler"),Yg=Symbol.for("react.provider"),Qg=Symbol.for("react.context"),nW=Symbol.for("react.server_context"),Jg=Symbol.for("react.forward_ref"),Zg=Symbol.for("react.suspense"),eh=Symbol.for("react.suspense_list"),th=Symbol.for("react.memo"),rh=Symbol.for("react.lazy"),oW=Symbol.for("react.offscreen"),lN;lN=Symbol.for("react.module.reference");function jo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case JS:switch(e=e.type,e){case Gg:case Xg:case Kg:case Zg:case eh:return e;default:switch(e=e&&e.$$typeof,e){case nW:case Qg:case Jg:case rh:case th:case Yg:return e;default:return t}}case ZS:return t}}}Ht.ContextConsumer=Qg;Ht.ContextProvider=Yg;Ht.Element=JS;Ht.ForwardRef=Jg;Ht.Fragment=Gg;Ht.Lazy=rh;Ht.Memo=th;Ht.Portal=ZS;Ht.Profiler=Xg;Ht.StrictMode=Kg;Ht.Suspense=Zg;Ht.SuspenseList=eh;Ht.isAsyncMode=function(){return!1};Ht.isConcurrentMode=function(){return!1};Ht.isContextConsumer=function(e){return jo(e)===Qg};Ht.isContextProvider=function(e){return jo(e)===Yg};Ht.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===JS};Ht.isForwardRef=function(e){return jo(e)===Jg};Ht.isFragment=function(e){return jo(e)===Gg};Ht.isLazy=function(e){return jo(e)===rh};Ht.isMemo=function(e){return jo(e)===th};Ht.isPortal=function(e){return jo(e)===ZS};Ht.isProfiler=function(e){return jo(e)===Xg};Ht.isStrictMode=function(e){return jo(e)===Kg};Ht.isSuspense=function(e){return jo(e)===Zg};Ht.isSuspenseList=function(e){return jo(e)===eh};Ht.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Gg||e===Xg||e===Kg||e===Zg||e===eh||e===oW||typeof e=="object"&&e!==null&&(e.$$typeof===rh||e.$$typeof===th||e.$$typeof===Yg||e.$$typeof===Qg||e.$$typeof===Jg||e.$$typeof===lN||e.getModuleId!==void 0)};Ht.typeOf=jo});var fN=Do((aZ,uN)=>{"use strict";uN.exports=cN()});var O3=Do(A0=>{"use strict";var IG=N(),DG=Symbol.for("react.element"),$G=Symbol.for("react.fragment"),AG=Object.prototype.hasOwnProperty,kG=IG.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,MG={key:!0,ref:!0,__self:!0,__source:!0};function R3(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)AG.call(t,n)&&!MG.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:DG,type:e,key:i,ref:a,props:o,_owner:kG.current}}A0.Fragment=$G;A0.jsx=R3;A0.jsxs=R3});var _r=Do((OMe,_3)=>{"use strict";_3.exports=O3()});var ex={"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 tx={"### 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 OR=typeof J0<"u"?J0:void 0,rx="en";typeof navigator<"u"&&navigator.language?rx=navigator.language=="zh-CN"?"zhcn":"en":OR&&(rx=OR("uxp").host.uiLocale.startsWith("zh")?"zhcn":"en");function pe(e,...t){let r=rx=="zhcn"?tx[e]:e in ex?ex[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 rl(e,t){return e==t||tx[e]==t}var Xt=class e{static SPECIAL_DOCUMENT_CURRENT="### Active Document ###";static is_SPECIAL_DOCUMENT_CURRENT(t){return rl(this.SPECIAL_DOCUMENT_CURRENT,t)}static get_SPECIAL_DOCUMENT_CURRENT(){return pe(this.SPECIAL_DOCUMENT_CURRENT)}static SPECIAL_LAYER_KEEP_SIZE="### Keep Size or Fit Canvas ###";static is_SPECIAL_LAYER_FIT(t){return rl(this.SPECIAL_LAYER_KEEP_SIZE,t)}static get_SPECIAL_LAYER_FIT(){return pe(this.SPECIAL_LAYER_KEEP_SIZE)}static SPECIAL_LAYER_USE_CANVAS="### The Canvas ###";static is_SPECIAL_LAYER_USE_CANVAS(t){return rl(this.SPECIAL_LAYER_USE_CANVAS,t)}static get_SPECIAL_LAYER_USE_CANVAS(){return pe(this.SPECIAL_LAYER_USE_CANVAS)}static SPECIAL_LAYER_NEW_LAYER="### New Layer ###";static is_SPECIAL_LAYER_NEW_LAYER(t){return rl(this.SPECIAL_LAYER_NEW_LAYER,t)}static get_SPECIAL_LAYER_NEW_LAYER(){return pe(this.SPECIAL_LAYER_NEW_LAYER)}static SPECIAL_LAYER_SELECTED_LAYER="### Selected Layer ###";static is_SPECIAL_LAYER_SELECTED_LAYER(t){return rl(this.SPECIAL_LAYER_SELECTED_LAYER,t)}static get_SPECIAL_LAYER_SELECTED_LAYER(){return pe(this.SPECIAL_LAYER_SELECTED_LAYER)}static SPECIAL_LAYER_PREVIEW_DOCUMENT="_SDPPP_PSD_";static is_SPECIAL_LAYER_PREVIEW_DOCUMENT(t){return rl(this.SPECIAL_LAYER_PREVIEW_DOCUMENT,t)}static get_SPECIAL_LAYER_PREVIEW_DOCUMENT(){return pe(this.SPECIAL_LAYER_PREVIEW_DOCUMENT)}static getSpecialDocumentCurrent(){return pe(e.SPECIAL_DOCUMENT_CURRENT)}static getSpecialLayerForGet(){return[pe(e.SPECIAL_LAYER_USE_CANVAS),pe(e.SPECIAL_LAYER_SELECTED_LAYER)]}static getSpecialLayerForSend(){return[pe(e.SPECIAL_LAYER_NEW_LAYER),pe(e.SPECIAL_LAYER_SELECTED_LAYER)]}static getSpecialDocumentForPreview(){return pe(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 nx={};Z0(nx,{JsonPatchError:()=>Ir,_areEquals:()=>sf,applyOperation:()=>nl,applyPatch:()=>lc,applyReducer:()=>J5,deepClone:()=>Y5,getValueByPointer:()=>ol,validate:()=>PR,validator:()=>Vp});var K5=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)}}(),X5=Object.prototype.hasOwnProperty;function Wp(e,t){return X5.call(e,t)}function Bp(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 Mi(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function of(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function zp(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&&d===void 0&&(c[m]===void 0?d=l.slice(0,u).join("/"):u==f-1&&(d=t.path),d!==void 0&&h(t,0,e,d)),u++,Array.isArray(c)){if(m==="-")m=c.length;else{if(r&&!jp(m))throw new Ir("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);jp(m)&&(m=~~m)}if(u>=f){if(r&&t.op==="add"&&m>c.length)throw new Ir("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=Q5[t.op].call(t,c,m,e);if(a.test===!1)throw new Ir("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}}else if(u>=f){var a=sc[t.op].call(t,c,m,e);if(a.test===!1)throw new Ir("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}if(c=c[m],r&&u0)throw new Ir('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 Ir("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 Ir("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")&&zp(e.value))throw new Ir("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 Ir("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 Ir("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=PR([a],r);if(s&&s.name==="OPERATION_PATH_UNRESOLVABLE")throw new Ir("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}}else throw new Ir("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,r)}function PR(e,t,r){try{if(!Array.isArray(e))throw new Ir("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)lc(Nr(t),Nr(e),r||!0);else{r=r||Vp;for(var n=0;nHp,generate:()=>ox,observe:()=>i4,unobserve:()=>o4});var ix=new WeakMap,Z5=function(){function e(t){this.observers=new Map,this.obj=t}return e}(),e4=function(){function e(t,r){this.callback=t,this.observer=r}return e}();function t4(e){return ix.get(e)}function r4(e,t){return e.observers.get(t)}function n4(e,t){e.observers.delete(t.callback)}function o4(e,t){t.unobserve()}function i4(e,t){var r=[],n,o=t4(e);if(!o)o=new Z5(e),ix.set(e,o);else{var i=r4(o,t);n=i&&i.observer}if(n)return n;if(n={},o.value=Nr(e),t){n.callback=t,n.next=null;var a=function(){ox(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(){ox(n),clearTimeout(n.next),n4(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 e4(t,n)),n}function ox(e,t){t===void 0&&(t=!1);var r=ix.get(e.object);ax(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 ax(e,t,r,n,o){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var i=Bp(t),a=Bp(e),s=!1,l=!1,c=a.length-1;c>=0;c--){var u=a[c],f=e[u];if(Wp(t,u)&&!(t[u]===void 0&&f!==void 0&&Array.isArray(t)===!1)){var d=t[u];typeof f=="object"&&f!=null&&typeof d=="object"&&d!=null&&Array.isArray(f)===Array.isArray(d)?ax(f,d,r,n+"/"+Mi(u),o):f!==d&&(s=!0,o&&r.push({op:"test",path:n+"/"+Mi(u),value:Nr(f)}),r.push({op:"replace",path:n+"/"+Mi(u),value:Nr(d)}))}else Array.isArray(e)===Array.isArray(t)?(o&&r.push({op:"test",path:n+"/"+Mi(u),value:Nr(f)}),r.push({op:"remove",path:n+"/"+Mi(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:ol(r,i)))})}),n.forEach((o,i)=>{let a=i==="/"?this._data:ol(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 or(e,t,r){return e.constructor[Up]||(e.constructor[Up]=[]),e.constructor[Up].push(t),{value:function(...n){let o=Nr(this._data);r.value.apply(this,n);let i=Hp(o,this._data);i.length!=0&&(this._mutationRecords.push(...i),this._version+=i.length,this.dispatch(i,o))}}}var il=class extends lx{constructor(t){super(Object.assign({sid:"",ssid:""},t||{}))}setSID(t){this._data.sid=t,this._data.ssid=t.slice(0,4)}};Jt([or],il.prototype,"setSID",1);var rn=class extends il{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}};Jt([or],rn.prototype,"setWebviewFromSid",1),Jt([or],rn.prototype,"setTitle",1),Jt([or],rn.prototype,"setProgress",1),Jt([or],rn.prototype,"setLastError",1),Jt([or],rn.prototype,"setQueueSize",1),Jt([or],rn.prototype,"setExecutingNodeTitle",1),Jt([or],rn.prototype,"setWidgetTableStructure",1),Jt([or],rn.prototype,"setWidgetTableValue",1),Jt([or],rn.prototype,"setWidgetTableErrors",1),Jt([or],rn.prototype,"setHasPSDNodes",1),Jt([or],rn.prototype,"setComfyUserToken",1),Jt([or],rn.prototype,"setComfyOrgLoggedIn",1),Jt([or],rn.prototype,"setComfyOrgAPIKey",1),Jt([or],rn.prototype,"setUseSliderForNumberWidget",1);var $o=class extends il{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}};Jt([or],$o.prototype,"setIsLocal",1),Jt([or],$o.prototype,"setUName",1),Jt([or],$o.prototype,"setDocument",1),Jt([or],$o.prototype,"setCanvasStateID",1),Jt([or],$o.prototype,"setSelectionStateID",1),Jt([or],$o.prototype,"setHistoryStateID",1),Jt([or],$o.prototype,"setComfyUserToken",1),Jt([or],$o.prototype,"setActions",1);var qp=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 gt=window.comfyAPI.app.app,BK=window.comfyAPI.ui.$el,nn=window.comfyAPI.api.api;var cx=class extends qp{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 cx,Xe=new rn;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 NR(){document.title!==Xe.data.title&&Xe.setTitle(document.title),"user"in gt.extensionManager&&Xe.setComfyOrgLoggedIn(gt.extensionManager.user.isLoggedIn),requestAnimationFrame(NR)}requestAnimationFrame(NR);var TR=!1;async function IR(){if(TR)return Promise.resolve();nn.user&&Xe.setComfyUserToken(nn.user);let e=await nn.getSetting("sdppp.useSliderForNumberWidget");e&&Xe.setUseSliderForNumberWidget(e),TR=!0}function a4(e){let t=e.split(" (id:");return{name:t[0],id:parseInt(t[1].slice(0,-1))}}function Gp(e){return a4(e)}globalThis.sdpppX=globalThis.sdpppX||{};var sa=globalThis.sdpppX;var Fi=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:Gp(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 ux(){let e=zn.getAllStore(),t=[];return Object.values(e).forEach(r=>{if(nn.user&&nn.user!=r.data.comfyUserToken)return;let n=Fi.makeDocumentDataOptions(r).map(o=>fx(o,r.data.uname));t.push(...n)}),t}function DR(e,t){let r=[""],n=cc(e);if(!n)return[];let o=Fi.makeLayerOptions(n.documentData,t);return r.push(...o),r}function $R(){return nn.user?Object.values(zn.getAllStore()).filter(e=>nn.user==e.data.comfyUserToken).length>0:zn.storeCount()}function fx(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:Gp(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 s4=function(e){let t=gt.graph.links;return Array.isArray(t)?t.find(n=>n&&n.origin_id==e):t.get(e)};function dx(e){let t=gt.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(pe("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=s4(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}}sa.findDocumentNodeRecursive=dx;var Kp=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 AR(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 Kp(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 kR(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 lf=Object.create(null);Object.keys(ci).forEach(e=>{lf[ci[e]]=e});var cf={type:"error",data:"parser error"};var LR=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",zR=typeof ArrayBuffer=="function",WR=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,uf=({type:e,data:t},r,n)=>LR&&t instanceof Blob?r?n(t):MR(t,n):zR&&(t instanceof ArrayBuffer||WR(t))?r?n(t):MR(new Blob([t]),n):n(ci[e]+(t||"")),MR=(e,t)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];t("b"+(n||""))},r.readAsDataURL(e)};function FR(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var px;function BR(e,t){if(LR&&e.data instanceof Blob)return e.data.arrayBuffer().then(FR).then(t);if(zR&&(e.data instanceof ArrayBuffer||WR(e.data)))return t(FR(e.data));uf(e,!1,r=>{px||(px=new TextEncoder),t(px.encode(r))})}var jR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ff=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 l4=typeof ArrayBuffer=="function",df=(e,t)=>{if(typeof e!="string")return{type:"message",data:HR(e,t)};let r=e.charAt(0);return r==="b"?{type:"message",data:c4(e.substring(1),t)}:lf[r]?e.length>1?{type:lf[r],data:e.substring(1)}:{type:lf[r]}:cf},c4=(e,t)=>{if(l4){let r=VR(e);return HR(r,t)}else return{base64:!0,data:e}},HR=(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 UR="",qR=(e,t)=>{let r=e.length,n=new Array(r),o=0;e.forEach((i,a)=>{uf(i,!1,s=>{n[a]=s,++o===r&&t(n.join(UR))})})},GR=(e,t)=>{let r=e.split(UR),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 mx;function Xp(e){return e.reduce((t,r)=>t+r.length,0)}function Yp(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(cf);break}o=u*Math.pow(2,32)+c.getUint32(4),n=3}else{if(Xp(r)e){s.enqueue(cf);break}}}})}var gx=4;function Zt(e){if(e)return u4(e)}function u4(e){for(var t in Zt.prototype)e[t]=Zt.prototype[t];return e}Zt.prototype.on=Zt.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Zt.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};Zt.prototype.off=Zt.prototype.removeListener=Zt.prototype.removeAllListeners=Zt.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")(),YR="arraybuffer";function Qp(e,...t){return t.reduce((r,n)=>(e.hasOwnProperty(n)&&(r[n]=e[n]),r),{})}var f4=Wn.setTimeout,d4=Wn.clearTimeout;function ca(e,t){t.useNativeTimers?(e.setTimeoutFn=f4.bind(Wn),e.clearTimeoutFn=d4.bind(Wn)):(e.setTimeoutFn=Wn.setTimeout.bind(Wn),e.clearTimeoutFn=Wn.clearTimeout.bind(Wn))}var p4=1.33;function QR(e){return typeof e=="string"?m4(e):Math.ceil((e.byteLength||e.size)*p4)}function m4(e){let t=0,r=0;for(let n=0,o=e.length;n=57344?r+=3:(n++,r+=4);return r}function Jp(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function JR(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function ZR(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)};GR(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,qR(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]=Jp()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(t,r)}};var eO=!1;try{eO=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var tO=eO;function g4(){}var hx=class extends pf{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 Zt{constructor(t,r,n){super(),this.createRequest=t,ca(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=Qp(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=g4,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",rO);else if(typeof addEventListener=="function"){let e="onpagehide"in Wn?"pagehide":"unload";addEventListener(e,rO,!1)}}function rO(){for(let e in Ga.requests)Ga.requests.hasOwnProperty(e)&&Ga.requests[e].abort()}var h4=function(){let e=nO({xdomain:!1});return e&&e.responseType!==null}(),Ka=class extends hx{constructor(t){super(t);let r=t&&t.forceBase64;this.supportsBinary=h4&&!r}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Ga(nO,this.uri(),t)}};function nO(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||tO))return new XMLHttpRequest}catch{}if(!t)try{return new Wn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var oO=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",yx=class extends ua{get name(){return"websocket"}doOpen(){let t=this.uri(),r=this.opts.protocols,n=oO?{}:Qp(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&&la(()=>{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]=Jp()),this.supportsBinary||(r.b64=1),this.createUri(t,r)}},vx=Wn.WebSocket||Wn.MozWebSocket,Xa=class extends yx{createSocket(t,r,n){return oO?new vx(t,r,n):r?new vx(t,r):new vx(t)}doWrite(t,r){this.ws.send(r)}};var uc=class extends ua{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=XR(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=t.readable.pipeThrough(r).getReader(),o=KR();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&&la(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}};var xx={websocket:Xa,webtransport:uc,polling:Ka};var v4=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,y4=["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=v4.exec(e||""),i={},a=14;for(;a--;)i[y4[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=x4(i,i.path),i.queryKey=b4(i,i.query),i}function x4(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 b4(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,i){o&&(r[o]=i)}),r}var bx=typeof addEventListener=="function"&&typeof removeEventListener=="function",em=[];bx&&addEventListener("offline",()=>{em.forEach(e=>e())},!1);var al=class e extends Zt{constructor(t,r){if(super(),this.binaryType=YR,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);ca(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=ZR(this.opts.query)),bx&&(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"})},em.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let r=Object.assign({},this.opts.query);r.EIO=gx,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,la(()=>{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(),bx&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=em.indexOf(this._offlineEventListener);n!==-1&&em.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this._prevBufferLen=0}}};al.protocol=gx;var tm=class extends al{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;al.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 d=new Error("probe error");d.transport=r.name,this.emitReserved("upgradeError",d)}}))};function i(){n||(n=!0,u(),r.close(),r=null)}let a=f=>{let d=new Error("probe error: "+f);d.transport=r.name,i(),this.emitReserved("upgradeError",d)};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;nxx[o]).filter(o=>!!o)),super(t,n)}};var yY=dc.protocol;function iO(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 Ox={};Z0(Ox,{Decoder:()=>Ex,Encoder:()=>wx,PacketType:()=>Rt,protocol:()=>uO});var C4=typeof ArrayBuffer=="function",w4=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,aO=Object.prototype.toString,E4=typeof Blob=="function"||typeof Blob<"u"&&aO.call(Blob)==="[object BlobConstructor]",R4=typeof File=="function"||typeof File<"u"&&aO.call(File)==="[object FileConstructor]";function gf(e){return C4&&(e instanceof ArrayBuffer||w4(e))||E4&&e instanceof Blob||R4&&e instanceof File}function mf(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}sl.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};sl.prototype.reset=function(){this.attempts=0};sl.prototype.setMin=function(e){this.ms=e};sl.prototype.setMax=function(e){this.max=e};sl.prototype.setJitter=function(e){this.jitter=e};var mc=class extends Zt{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,ca(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 sl({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||Ox;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=go(r,"open",function(){n.onopen(),t&&t()}),i=s=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",s),t?t(s):this.maybeReconnectOnOpen()},a=go(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(go(t,"ping",this.onping.bind(this)),go(t,"data",this.ondata.bind(this)),go(t,"error",this.onerror.bind(this)),go(t,"close",this.onclose.bind(this)),go(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){la(()=>{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 hf={};function vf(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};let r=iO(e,t.path||"/socket.io"),n=r.source,o=r.id,i=r.path,a=hf[o]&&i in hf[o].nsps,s=t.forceNew||t["force new connection"]||t.multiplex===!1||a,l;return s?l=new mc(n,t):(hf[o]||(hf[o]=new mc(n,t)),l=hf[o]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(vf,{Manager:mc,Socket:pc,io:vf,connect:vf});var fO="507";var rm=fO.trim();var _x=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=vf(t,{transports:["websocket"],path:r,query:{api_level:rm},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 dO(...e){return e.reduce((t,r)=>r(t),_x)}function pO(e){return class extends e{constructor(t){super(t),this.socket.on("F_photoshop",(r,n)=>{try{r.action=="extractPSD"&>.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 mO={last_node_id:0,last_link_id:0,nodes:[],links:[],groups:[],config:{},extra:{},version:.4};var Ya=[];sa.widgetable=sa.widgetable||{};sa.widgetable.add=function(e,t){typeof t=="function"?Ya.push([e,{formatter:t,setter:null}]):Ya.push([e,t])};function om(e,t,r){let n=Ya.find(([s])=>s=="__DEFAULT__"),o=Ya.find(([s])=>Px(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)),(gt.workflowManager||gt.extensionManager.workflow).activeWorkflow?.changeTracker.checkState()}function yf(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])=>Px(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 im(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=nm(o);if(!i||i.startsWith(".")||!o.widgets||o.widgets.length==0)return;let a=Ya.find(([u])=>Px(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,d)=>f+(d.uiWeight||12),0),u}catch(u){return{id:o.id,title:i,uiWeightSum:12,widgets:[{outputType:"error",value:pe("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,d)=>f+(d.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=nm(o),s=nm(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 Px(e,t){let r=e.replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*").replace(/\?/g,".");return new RegExp(`^${r}$`).test(t)}function nm(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}sa.getNodeTitle=nm;var T4=new Map,ll=T4;function hO(e){return class extends e{workflowManager;constructor(t){super(t),this.workflowManager=gt.workflowManager||gt.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){Tx||N4();let r=t.size,n=!1,o="",i={};try{am=[];let s=await gt.queuePrompt(1,r);am.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;ll.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=gt.graph.nodes.find(d=>d.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=gt.graph.nodes.find(a=>a.id==r);!i||o==i.widgets[n].value||om(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 gt.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 gt.loadGraphData(mO):await gO(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 gO(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=gt.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 gt.api.interrupt()}async clearQueue(t){await gt.api.clearItems("queue")}async reboot(t){let r=await fetch("./api/manager/reboot");return r.status==404?{error:pe("ComfyManager not found, cannot reboot"),success:!1}:r.status==200?{success:!0}:{error:pe("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 gO(e,t){gt.workflowManager==e?await t.load():(await e.openWorkflow(t),await gt.loadGraphData(JSON.parse(JSON.stringify(t.activeState)),!0,!0,t,{}))}var Tx=!1,am=[];function N4(){if(Tx)return;let e=nn.queuePrompt;nn.queuePrompt=async(...t)=>{try{let r=await e.call(nn,...t);return am.push({error:null,result:r}),r}catch(r){throw am.push({error:r,result:null}),r}},Tx=!0}var Bn=class e extends dO(AR(Xe,"comfy"),kR(zn,"photoshop"),pO,hO){static instance;constructor(){super(location.href.split("?")[0].split("#")[0]),e.instance=this}};function sm(e){return e.replace(/^workflows\//,"").replace(/\.json$/,"").split("://").pop()}var lm=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)}},cm=class extends lm{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 cm{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=ux(),o=t.size.slice(0),i=t.addWidget("combo",r,n[0]||"",()=>{},{forceInput:!0,values:ux});return i.serializeValue=async()=>{let a=cc(i.value);if(!a)return JSON.stringify({instance_id:pe("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(){yO(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=fx(r.data.documents[r.data.activeDocumentID].identify,t)}}},gc=class e extends cm{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=Fi.getCanvasDirtyID(i.documentData):s=Fi.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})}},I4={extraOptions:[],documentWidgetInNode:null},xf=class e extends gc{documentWidgetInNode;constructor(t,r,n=I4){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=Fi.getCanvasDirtyID(i.documentData):s=Fi.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=DR(t.widget.value,this.extraOptions),yO(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})}},vO=0,hc=class extends lm{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||sm(Xe.data.widgetTableStructure.widgetTablePath)},i=dx(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()-vO>3e3&&(vO=Date.now(),location.href="/sd-ppp-static/sd-ppp_PS.ccx?_="+Date.now(),setTimeout(()=>{app.ui.dialog.show(`

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

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

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

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

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

`)},300))})}update(){this.widget.label=zn.storeCount()>0&&Bn.instance.id?pe("current ComfyUI pageid: {0}",Bn.instance.id.slice(0,4)):pe("download PS plugin (.ccx)")}documentWidgetByLinked=null;linkDocumentWidget(t){this.documentWidgetByLinked=t}};function yO(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 fa=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",rm)}};var Li=class extends fa{downloadWidget;constructor(t){super(t),this.downloadWidget||(this.downloadWidget=new hc(this.node))}onConfigure(t){super.onConfigure(t)}onDrawForeground(t){this.node.flags.collapsed||$R()||(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(pe("Photoshop Disconnected!"),this.node.size[0]/2,5),t.restore())}async update(){this.downloadWidget?.update()}};var um=class{node;inputIndex;get index(){return this.inputIndex}constructor(t,r){this.node=t,this.inputIndex=r}update(){}connected=!1},bf=class extends um{get documentWidget(){return xO(this.node,this.node.inputs[this.inputIndex])?.documentWidget||null}},Sf=class extends um{get documentWidget(){return xO(this.node,this.node.inputs[this.inputIndex])?.documentWidget||null}};function xO(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 fa.nodeMap.get(n)}var Ao=class extends Li{get documentWidget(){let t=this.inputs.find(r=>r.connected&&(r instanceof bf||r instanceof Sf));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=pe(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 fm=class extends Ao{get documentWidget(){return this.inputs[0]?.documentWidget}async update(){super.update(),this.node.inputs.forEach(t=>t.label=pe(t.name)),this.node.outputs.forEach(t=>t.label=pe(t.name))}},vc=class extends Ao{async update(){super.update(),this.node.inputs.forEach(t=>t.label=pe(t.name)),this.node.outputs.forEach(t=>t.label=pe(t.name))}},dm=class extends Ao{async update(){super.update(),this.node.inputs.forEach(t=>t.label=pe(t.name)),this.node.outputs.forEach(t=>t.label=pe(t.name))}},pm=class extends Ao{get documentWidget(){return this.inputs[0]?.documentWidget}async update(){super.update(),this.node.inputs.forEach(t=>t.label=pe(t.name)),this.node.outputs.forEach(t=>t.label=pe(t.name)),this.node.widgets[0].label=pe(this.node.widgets[0].name)}},mm=class extends Ao{get documentWidget(){return this.inputs[0]?.documentWidget}async update(){super.update(),this.node.inputs.forEach(t=>t.label=pe(t.name)),this.node.outputs.forEach(t=>t.label=pe(t.name)),this.node.widgets[0].label=pe(this.node.widgets[0].name)}},gm=class extends Li{async update(){super.update(),this.node.inputs[0].label=pe(this.node.inputs[0].name),this.node.inputs[1].label=pe(this.node.inputs[1].name),this.node.outputs[0]&&(this.node.outputs[0].label=pe(this.node.outputs[0].name))}},hm=class extends Li{static prehandleNodeType(t){t.input.optional.document&&delete t.input.optional.document}async update(){super.update(),this.node.inputs[0].label=pe(this.node.inputs[0].name),this.node.outputs[0]&&(this.node.outputs[0].label=pe(this.node.outputs[0].name))}},vm=class extends Ao{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=pe(t.name)),this.node.properties.psd?(Xe.setHasPSDNodes(!0),this.psdWidget.label=pe("extract saved .psd to Photoshop")):(Xe.setHasPSDNodes(!1),this.psdWidget.label=pe("save .psd to this workflow"))}},ym=class extends Ao{async update(){super.update(),this.node.inputs.forEach(r=>r.label=pe(r.name)),this.node.outputs.forEach(r=>r.label=pe(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 xm=class extends Li{static prehandleNodeType(t){t.input.optional.document&&delete t.input.optional.document}documentWidget;layerWidget;constructor(t){let r=Qa.create(t,"document"),n=xf.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(Sm["SDPPP Get Selection"],{pos:this.node.pos});new vc(r),this.node.outputs[0].links?.length?comfyAPI.app.app.addNodeOnGraph(Sm.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,pe("document linked")),this.layerWidget.lockMode(this.layerLinked,pe("layer linked")),this.documentWidget.update(),this.layerWidget.update(),super.update(),this.node.widgets.forEach(t=>{if(!t.label)try{t.label=pe(t.name)}catch{}}),this.node.inputs.forEach(t=>{if(!t.label)try{t.label=pe(t.name)}catch{}}),this.node.outputs.forEach(t=>{if(!t.label)try{t.label=pe(t.name)}catch{}})}layerLinked=!1;inputConnectionChange(t,r){super.inputConnectionChange(t,r),t==0&&(this.layerLinked=r)}},bm=class extends Li{static prehandleNodeType(t){t.input.optional.document&&delete t.input.optional.document}documentWidget;layerWidget;constructor(t){let r=Qa.create(t,"document"),n=xf.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,pe("document linked")),this.layerWidget?.lockMode(this.layerLinked,pe("layer linked")),this.documentWidget.update(),this.layerWidget.update(),super.update(),this.node.widgets[0].label||(this.node.widgets[0].label=pe(this.node.widgets[0].name)),this.node.widgets[1].label||(this.node.widgets[1].label=pe(this.node.widgets[1].name)),this.node.inputs[0].label=pe(this.node.inputs[0].name),this.node.inputs[1].label=pe(this.node.inputs[1].name),this.node.inputs[2].label=pe(this.node.inputs[2].name),this.node.outputs[0].label=pe(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 Nx={"Get Image From Photoshop Layer":xm,"Send Images To Photoshop":bm,"SDPPP Send Text To Layer":gm,"SDPPP Get Text From Layer":hm,"SDPPP Parse Layer Info":dm,"SDPPP Get Linked Layers":mm,"SDPPP Get Layers In Group":pm,"SDPPP Get Layer By ID":fm,"SDPPP Get Document":vm,"SDPPP Get Selection":vc,"SDPPP Select Layer And Run PS Action":ym},Sm={};function bO(e,t){let r=e.comfyClass||t.name;if(Sm[r]=t,r in Nx)e.title=pe(t.display_name),t.display_name=pe(t.display_name),fa.registerNodeType(e,t,Nx[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 Nx&&(o=!0)}),o&&fa.registerNodeType(e,t,Ao)}else return}var bR=E(ZT(),1),SR=E(N(),1);var eN=`#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 rf=E(N(),1);var P3=E(N(),1);function le(){return le=Object.assign?Object.assign.bind():function(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{},r=[];return tN.default.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(yi(n)):md(n)&&n.props?r=r.concat(yi(n.props.children,t)):r.push(n))}),r}var YS={},Zz=[],eW=function(t){Zz.push(t)};function gd(e,t){if(0)var r}function tW(e,t){if(0)var r}function rN(){YS={}}function nN(e,t,r){!t&&!YS[r]&&(e(!1,r),YS[r]=!0)}function Ug(e,t){nN(gd,e,t)}function oN(e,t){nN(tW,e,t)}Ug.preMessage=eW;Ug.resetWarned=rN;Ug.noteOnce=oN;var Vt=Ug;function iN(e,t){if(ce(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ce(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qg(e){var t=iN(e,"string");return ce(t)=="symbol"?t:t+""}function _(e,t,r){return(t=qg(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aN(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,hd.isMemo)(t)?t.type.type:t.type;return!(typeof o=="function"&&!((r=o.prototype)!==null&&r!==void 0&&r.render)&&o.$$typeof!==hd.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==hd.ForwardRef)};function pN(e){return(0,nh.isValidElement)(e)&&!md(e)}var xs=function(t){if(t&&pN(t)){var r=t;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null};var Wr=E(N());var Si=E(N()),oh=Si.createContext(null);function mN(e){var t=e.children,r=e.onBatchResize,n=Si.useRef(0),o=Si.useRef([]),i=Si.useContext(oh),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(oh.Provider,{value:a},t)}var hN=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(){!eC||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),fW?(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(){!eC||!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=uW.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}(),vN=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 bW(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 SW(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}(),xN=typeof WeakMap<"u"?new WeakMap:new hN,bN=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=dW.getInstance(),n=new CW(t,r,this);xN.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){bN.prototype[e]=function(){var t;return(t=xN.get(this))[e].apply(t,arguments)}});var wW=function(){return typeof ih.ResizeObserver<"u"?ih.ResizeObserver:bN}(),SN=wW;var bs=new Map;function EW(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 CN=new SN(EW);function wN(e,t){bs.has(e)||(bs.set(e,new Set),CN.observe(e)),bs.get(e).add(t)}function EN(e,t){bs.has(e)&&(bs.get(e).delete(t),bs.get(e).size||(CN.unobserve(e),bs.delete(e)))}function at(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RN(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;$N+=1;var n=$N;function o(i){if(i===0)MN(n),t();else{var a=AN(function(){o(i-1)});tC.set(n,a)}}return o(r),n};FN.cancel=function(e){var t=tC.get(e);return MN(e),kN(t)};var dt=FN;var cr=E(N());function uh(e){if(Array.isArray(e))return e}function LN(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 fh(){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 F(e,t){return uh(e)||LN(e,t)||Xc(e,t)||fh()}function TW(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=TW;function Yt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function rC(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 zN="data-rc-order",WN="data-rc-priority",NW="rc-util-key",nC=new Map;function BN(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):NW}function dh(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function IW(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function oC(e){return Array.from((nC.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function jN(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=IW(n),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(zN,a),s&&i&&l.setAttribute(WN,"".concat(i)),r!=null&&r.nonce&&(l.nonce=r?.nonce),l.innerHTML=e;var c=dh(t),u=c.firstChild;if(n){if(s){var f=(t.styles||oC(c)).filter(function(d){if(!["prepend","prependQueue"].includes(d.getAttribute(zN)))return!1;var m=Number(d.getAttribute(WN)||0);return i>=m});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function VN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=dh(t);return(t.styles||oC(r)).find(function(n){return n.getAttribute(BN(t))===e})}function Gi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=VN(e,t);if(r){var n=dh(t);n.removeChild(r)}}function DW(e,t){var r=nC.get(e);if(!r||!rC(document,r)){var n=jN("",t),o=n.parentNode;nC.set(e,o),e.removeChild(n)}}function yn(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=dh(r),o=oC(n),i=T(T({},r),{},{styles:o});DW(n,i);var a=VN(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=jN(e,i);return u.setAttribute(BN(i),t),u}var rI=E(N());function HN(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 He(e,t){if(e==null)return{};var r,n,o=HN(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=F(c,2),d=f[1];return o.internalGet(u)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),GN+=1}return st(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,o){return o(r,n)},void 0)}}]),e}();var iC=new bd;function Es(e){var t=Array.isArray(e)?e:[e];return iC.has(t)||iC.set(t,new Yc(t)),iC.get(t)}var BW=new WeakMap,aC={};function XN(e,t){for(var r=BW,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,Ki,t),_(n,Dn,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()},jW=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=F(o,2),a=i[0],s=i[1];return"".concat(a,":").concat(s,";")}).join(""),"}"):""},gh=function(t,r,n){var o={},i={};return Object.entries(t).forEach(function(a){var s,l,c=F(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 d,m=Jc(u,n?.prefix);o[m]=typeof f=="number"&&!(n!=null&&(d=n.unitless)!==null&&d!==void 0&&d[u])?"".concat(f,"px"):String(f),i[u]="var(".concat(m,")")}}),[i,jW(o,r,{scope:n?.scope})]};var hh=E(N());var Zc=E(N());var YN=Yt()?Zc.useLayoutEffect:Zc.useEffect,QN=function(t,r){var n=Zc.useRef(!0);YN(function(){return t(n.current)},r),YN(function(){return n.current=!1,function(){n.current=!0}},[])},_l=function(t,r){QN(function(n){if(!n)return t()},r)},yt=QN;var lC=E(N()),VW=T({},lC),JN=VW.useInsertionEffect,HW=function(t,r,n){lC.useMemo(t,n),yt(function(){return r(!0)},n)},UW=JN?function(e,t,r){return JN(function(){return e(),t()},r)}:HW,ZN=UW;var cC=E(N()),qW=T({},cC),GW=qW.useInsertionEffect,KW=function(t){var r=[],n=!1;function o(i){n||r.push(i)}return cC.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(i){return i()})}},t),o},XW=function(){return function(t){t()}},YW=typeof GW<"u"?KW:XW,eI=YW;function QW(){return!1}var tI=QW;function Pl(e,t,r,n,o){var i=hh.useContext(wi),a=i.cache,s=[e].concat(ne(t)),l=ph(s),c=eI([l]),u=tI(),f=function(v){a.opUpdate(l,function(y){var g=y||[void 0,void 0],p=F(g,2),x=p[0],b=x===void 0?0:x,S=p[1],w=S,C=w||r(),R=[b,C];return v?v(R):R})};hh.useMemo(function(){f()},[l]);var d=a.opGet(l),m=d[1];return ZN(function(){o?.(m)},function(h){return f(function(v){var y=F(v,2),g=y[0],p=y[1];return h&&g===0&&o?.(m),[g+1,p]}),function(){a.opUpdate(l,function(v){var y=v||[],g=F(y,2),p=g[0],x=p===void 0?0:p,b=g[1],S=x-1;return S===0?(c(function(){(h||!a.opGet(l))&&n?.(b,!1)}),null):[x-1,b]})}},[l]),m}var JW={},ZW="css",Tl=new Map;function eB(e){Tl.set(e,(Tl.get(e)||0)+1)}function tB(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(Ki,'="').concat(e,'"]'));r.forEach(function(n){if(n[Ci]===t){var o;(o=n.parentNode)===null||o===void 0||o.removeChild(n)}})}}var rB=0;function nB(e,t){Tl.set(e,(Tl.get(e)||0)-1);var r=Array.from(Tl.keys()),n=r.filter(function(o){var i=Tl.get(o)||0;return i<=0});r.length-n.length>rB&&n.forEach(function(o){tB(o,t),Tl.delete(o)})}var nI=function(t,r,n,o){var i=n.getDerivativeToken(t),a=T(T({},i),r);return o&&(a=o(a)),a},uC="token";function vh(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=(0,rI.useContext)(wi),o=n.cache.instanceId,i=n.container,a=r.salt,s=a===void 0?"":a,l=r.override,c=l===void 0?JW:l,u=r.formatToken,f=r.getComputedToken,d=r.cssVar,m=XN(function(){return Object.assign.apply(Object,[{}].concat(ne(t)))},t),h=Qc(m),v=Qc(c),y=d?Qc(d):"",g=Pl(uC,[s,e.id,h,v,y],function(){var p,x=f?f(m,c,e):nI(m,c,e,u),b=T({},x),S="";if(d){var w=gh(x,d.key,{prefix:d.prefix,ignore:d.ignore,unitless:d.unitless,preserve:d.preserve}),C=F(w,2);x=C[0],S=C[1]}var R=sC(x,s);x._tokenKey=R,b._tokenKey=sC(b,s);var P=(p=d?.key)!==null&&p!==void 0?p:R;x._themeKey=P,eB(P);var O="".concat(ZW,"-").concat(Cs(R));return x._hashId=O,[x,O,b,S,d?.key||""]},function(p){nB(p[0]._themeKey,o)},function(p){var x=F(p,4),b=x[0],S=x[3];if(d&&S){var w=yn(S,Cs("css-variables-".concat(b._themeKey)),{mark:Dn,prepend:"queue",attachTo:i,priority:-999});w[Ci]=o,w.setAttribute(Ki,b._themeKey)}});return g}var oI=function(t,r,n){var o=F(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,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},m=Rs(a,s,u,d,c);return[f,u,m]};var NI=E(N());var Ps=E(N());var oB={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},fC=oB;var yh="comm",xh="rule",bh="decl";var iI="@import";var aI="@namespace",sI="@keyframes";var lI="@layer";var dC=Math.abs,Cd=String.fromCharCode;function Sh(e){return e.trim()}function wd(e,t,r){return e.replace(t,r)}function cI(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 Co(e){return e.length}function uI(e){return e.length}function eu(e,t){return t.push(e),e}var Ch=1,tu=1,fI=0,Vo=0,Vr=0,nu="";function wh(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Ch,column:tu,length:a,return:"",siblings:s}}function dI(){return Vr}function pI(){return Vr=Vo>0?Os(nu,--Vo):0,tu--,Vr===10&&(tu=1,Ch--),Vr}function Ho(){return Vr=Vo2||ru(Vr)>3?"":" "}function vI(e,t){for(;--t&&Ho()&&!(Vr<48||Vr>102||Vr>57&&Vr<65||Vr>70&&Vr<97););return Eh(e,Ed()+(t<6&&Ca()==32&&Ho()==32))}function pC(e){for(;Ho();)switch(Vr){case e:return Vo;case 34:case 39:e!==34&&e!==39&&pC(Vr);break;case 40:e===41&&pC(e);break;case 92:Ho();break}return Vo}function yI(e,t){for(;Ho()&&e+Vr!==57;)if(e+Vr===84&&Ca()===47)break;return"/*"+Eh(t,Vo-1)+"*"+Cd(e===47?e:Ho())}function xI(e){for(;!ru(Ca());)Ho();return Eh(e,Vo)}function CI(e){return gI(Oh("",null,null,null,[""],e=mI(e),0,[0],e))}function Oh(e,t,r,n,o,i,a,s,l){for(var c=0,u=0,f=a,d=0,m=0,h=0,v=1,y=1,g=1,p=0,x="",b=o,S=i,w=n,C=x;y;)switch(h=p,p=Ho()){case 40:if(h!=108&&Os(C,f-1)==58){cI(C+=wd(Rh(p),"&","&\f"),"&\f",dC(c?s[c-1]:0))!=-1&&(g=-1);break}case 34:case 39:case 91:C+=Rh(p);break;case 9:case 10:case 13:case 32:C+=hI(h);break;case 92:C+=vI(Ed()-1,7);continue;case 47:switch(Ca()){case 42:case 47:eu(iB(yI(Ho(),Ed()),t,r,l),l),(ru(h||1)==5||ru(Ca()||1)==5)&&Co(C)&&_s(C,-1,void 0)!==" "&&(C+=" ");break;default:C+="/"}break;case 123*v:s[c++]=Co(C)*g;case 125*v:case 59:case 0:switch(p){case 0:case 125:y=0;case 59+u:g==-1&&(C=wd(C,/\f/g,"")),m>0&&(Co(C)-f||v===0&&h===47)&&eu(m>32?SI(C+";",n,r,f-1,l):SI(wd(C," ","")+";",n,r,f-2,l),l);break;case 59:C+=";";default:if(eu(w=bI(C,t,r,c,u,o,s,x,b=[],S=[],f,i),i),p===123)if(u===0)Oh(C,t,w,w,b,i,f,s,S);else{switch(d){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?Oh(e,w,w,n&&eu(bI(e,w,w,0,0,o,s,x,o,b=[],f,S),S),o,S,f,s,n?b:S):Oh(C,w,w,w,[""],S,0,s,S)}}c=u=m=0,v=g=1,x=C="",f=a;break;case 58:f=1+Co(C),m=h;default:if(v<1){if(p==123)--v;else if(p==125&&v++==0&&pI()==125)continue}switch(C+=Cd(p),p*v){case 38:g=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(Co(C)-1)*g,g=1;break;case 64:Ca()===45&&(C+=Rh(Ho())),d=Ca(),u=f=Co(x=C+=xI(Ed())),p++;break;case 45:h===45&&Co(C)==2&&(v=0)}}return i}function bI(e,t,r,n,o,i,a,s,l,c,u,f){for(var d=o-1,m=o===0?i:[""],h=uI(m),v=0,y=0,g=0;v0?m[p]+" "+x:wd(x,/&\f/g,m[p])))&&(l[g++]=b);return wh(e,t,r,o===0?xh:s,l,c,u,f)}function iB(e,t,r,n){return wh(e,t,r,yh,Cd(dI()),_s(e,2,-2),0,n)}function SI(e,t,r,n,o){return wh(e,t,r,bh,_s(e,0,n),_s(e,n+1,-1),n,o)}function _h(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,d=f===void 0?[]:f,m=r.linters,h=m===void 0?[]:m,v="",y={};function g(b){var S=b.getName(s);if(!y[S]){var w=e(b.style,r,{root:!1,parentSelectors:a}),C=F(w,1),R=C[0];y[S]="@keyframes ".concat(b.getName(s)).concat(R)}}function p(b){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return b.forEach(function(w){Array.isArray(w)?p(w,S):w&&S.push(w)}),S}var x=p(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)g(S);else{var w=d.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(ce(R)==="object"&&R&&(C!=="animationName"||!R._keyframe)&&!dB(R)){var P=!1,O=C.trim(),I=!1;(o||i)&&s?O.startsWith("@")?P=!0:O==="&"?O=_I("",s,u):O=_I(C,s,u):o&&!s&&(O==="&"||O==="")&&(O="",I=!0);var D=e(R,r,{root:I,injectHash:P,parentSelectors:[].concat(ne(a),[O])}),$=F(D,2),L=$[0],A=$[1];y=T(T({},y),A),v+="".concat(O).concat(L)}else{let K=function(G,V){var H=G.replace(/[A-Z]/g,function(k){return"-".concat(k.toLowerCase())}),j=V;!fC[G]&&typeof j=="number"&&j!==0&&(j="".concat(j,"px")),G==="animationName"&&V!==null&&V!==void 0&&V._keyframe&&(g(V),j=V.getName(s)),v+="".concat(H,":").concat(j,";")};var B=K,M,W=(M=R?.value)!==null&&M!==void 0?M:R;ce(R)==="object"&&R!==null&&R!==void 0&&R[PI]&&Array.isArray(W)?W.forEach(function(G){K(C,G)}):K(C,W)}})}}),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 hC(e,t){return Cs("".concat(e.join("%")).concat(t))}function mB(){return null}var vC="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,d=u.mock,m=u.defaultCache,h=u.hashPriority,v=u.container,y=u.ssrInline,g=u.transformers,p=u.linters,x=u.cache,b=u.layer,S=r._tokenKey,w=[S];b&&w.push("layer"),w.push.apply(w,ne(n));var C=Sd,R=Pl(vC,w,function(){var $=w.join("|");if(RI($)){var L=OI($),A=F(L,2),M=A[0],W=A[1];if(M)return[M,S,W,{},s,c]}var B=t(),K=pB(B,{hashId:o,hashPriority:h,layer:b?i:void 0,path:n.join("-"),transformers:g,linters:p}),G=F(K,2),V=G[0],H=G[1],j=Ph(V),k=hC(w,j);return[j,S,k,H,s,c]},function($,L){var A=F($,3),M=A[2];(L||f)&&Sd&&Gi(M,{mark:Dn})},function($){var L=F($,4),A=L[0],M=L[1],W=L[2],B=L[3];if(C&&A!==gC){var K={mark:Dn,prepend:b?!1:"queue",attachTo:v,priority:c},G=typeof a=="function"?a():a;G&&(K.csp={nonce:G});var V=[],H=[];Object.keys(B).forEach(function(k){k.startsWith("@layer")?V.push(k):H.push(k)}),V.forEach(function(k){yn(Ph(B[k]),"_layer-".concat(k),T(T({},K),{},{prepend:!0}))});var j=yn(A,W,K);j[Ci]=x.instanceId,j.setAttribute(Ki,S),H.forEach(function(k){yn(Ph(B[k]),"_effect-".concat(k),K)})}}),P=F(R,3),O=P[0],I=P[1],D=P[2];return function($){var L;if(!y||C||!m)L=Ps.createElement(mB,null);else{var A;L=Ps.createElement("style",le({},(A={},_(A,Ki,I),_(A,Dn,D),A),{dangerouslySetInnerHTML:{__html:O}}))}return Ps.createElement(Ps.Fragment,null,L,$)}}var TI=function(t,r,n){var o=F(t,6),i=o[0],a=o[1],s=o[2],l=o[3],c=o[4],u=o[5],f=n||{},d=f.plain;if(c)return null;var m=i,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return m=Rs(i,a,s,h,d),l&&Object.keys(l).forEach(function(v){if(!r[v]){r[v]=!0;var y=Ph(l[v]),g=Rs(y,a,"_effect-".concat(v),h,d);v.startsWith("@layer")?m=g+m:m+=g}}),[u,s,m]};var yC="cssVar",gB=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,NI.useContext)(wi),f=u.cache.instanceId,d=u.container,m=s._tokenKey,h=[].concat(ne(t.path),[n,c,m]),v=Pl(yC,h,function(){var y=r(),g=gh(y,n,{prefix:o,unitless:i,ignore:a,scope:c}),p=F(g,2),x=p[0],b=p[1],S=hC(h,b);return[x,b,S,n]},function(y){var g=F(y,3),p=g[2];Sd&&Gi(p,{mark:Dn})},function(y){var g=F(y,3),p=g[1],x=g[2];if(p){var b=yn(p,x,{mark:Dn,prepend:"queue",attachTo:d,priority:-999});b[Ci]=f,b.setAttribute(Ki,n)}});return v},II=function(t,r,n){var o=F(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)},d=Rs(i,s,a,f,c);return[u,a,d]},xC=gB;var Od,jne=(Od={},_(Od,vC,TI),_(Od,uC,oI),_(Od,yC,II),Od);var hB=function(){function e(t,r){at(this,e),_(this,"name",void 0),_(this,"style",void 0),_(this,"_keyframe",!0),this.name=t,this.style=r}return st(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}(),xt=hB;function ou(e){return e.notSplit=!0,e}var Xne={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 DI=E(N()),vB=(0,DI.createContext)({}),iu=vB;function Th(e){return uh(e)||ch(e)||Xc(e)||fh()}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:AI(e,t,r,n)}function yB(e){return ce(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function $I(e){return Array.isArray(e)?[]:{}}var xB=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function wa(){for(var e=arguments.length,t=new Array(e),r=0;r{let e=()=>{};return e.deprecated=bB,e};var MI=E(N()),FI=(0,MI.createContext)(void 0);var su=E(N());var SB={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"},LI=SB;var zI={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};var CB=T(T({},zI),{},{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"}),WI=CB;var wB={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Ih=wB;var EB={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"]},WI),timePickerLocale:Object.assign({},Ih)},Dh=EB;var BI=Dh;var wo="${label} is not a valid ${type}",RB={locale:"en",Pagination:LI,DatePicker:Dh,TimePicker:Ih,Calendar:BI,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:wo,method:wo,array:wo,object:wo,number:wo,date:wo,boolean:wo,integer:wo,float:wo,regexp:wo,email:wo,url:wo,hex:wo},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=RB;var SC=Object.assign({},Ei.Modal),$h=[],jI=()=>$h.reduce((e,t)=>Object.assign(Object.assign({},e),t),Ei.Modal);function VI(e){if(e){let t=Object.assign({},e);return $h.push(t),SC=jI(),()=>{$h=$h.filter(r=>r!==t),SC=jI()}}SC=Object.assign({},Ei.Modal)}var HI=E(N()),OB=(0,HI.createContext)(void 0),au=OB;var _d=E(N());var _B=(e,t)=>{let r=_d.useContext(au),n=_d.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=_d.useMemo(()=>{let i=r?.locale;return r?.exist&&!i?Ei.locale:i},[r]);return[n,o]},Ea=_B;var UI="internalMark",PB=e=>{let{locale:t={},children:r,_ANT_MARK__:n}=e;su.useEffect(()=>VI(t?.Modal),[t]);let o=su.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return su.createElement(au.Provider,{value:o},r)},qI=PB;var y2=E(N());var CC={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"},TB=Object.assign(Object.assign({},CC),{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}),Ra=TB;var sn=Math.round;function wC(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 GI=(e,t,r)=>r===0?e:e/100;function Pd(e,t){let r=t||255;return e>r?r:e<0?0:e}var ht=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=Pd(t.r),this.g=Pd(t.g),this.b=Pd(t.b),this.a=typeof t.a=="number"?Pd(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=sn(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:sn(i("r")),g:sn(i("g")),b:sn(i("b")),a:sn(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=>sn((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=sn(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=sn(this.getSaturation()*100),n=sn(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]=Pd(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 d=sn(n*255);this.r=d,this.g=d,this.b=d}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=sn((i+f)*255),this.g=sn((a+f)*255),this.b=sn((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=sn(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=sn(n*(1-r)*255),u=sn(n*(1-r*l)*255),f=sn(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=wC(t,GI);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){let r=wC(t,GI);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){let r=wC(t,(n,o)=>o.includes("%")?sn(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}};var Ah=2,KI=.16,NB=.05,IB=.05,DB=.15,JI=5,ZI=4,$B=[{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 XI(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-Ah*t:Math.round(e.h)+Ah*t:n=r?Math.round(e.h)+Ah*t:Math.round(e.h)-Ah*t,n<0?n+=360:n>=360&&(n-=360),n}function YI(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-KI*t:t===ZI?n=e.s+KI:n=e.s+NB*t,n>1&&(n=1),r&&t===JI&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function QI(e,t,r){var n;return r?n=e.v+IB*t:n=e.v-DB*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 ht(e),o=n.toHsv(),i=JI;i>0;i-=1){var a=new ht({h:XI(o,i,!0),s:YI(o,i,!0),v:QI(o,i,!0)});r.push(a)}r.push(n);for(var s=1;s<=ZI;s+=1){var l=new ht({h:XI(o,s),s:YI(o,s),v:QI(o,s)});r.push(l)}return t.theme==="dark"?$B.map(function(c){var u=c.index,f=c.amount;return new ht(t.backgroundColor||"#141414").mix(r[u],f).toHexString()}):r.map(function(c){return c.toHexString()})}var Oa={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"},EC=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];EC.primary=EC[5];var RC=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];RC.primary=RC[5];var OC=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];OC.primary=OC[5];var _C=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];_C.primary=_C[5];var PC=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];PC.primary=PC[5];var TC=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];TC.primary=TC[5];var NC=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];NC.primary=NC[5];var IC=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];IC.primary=IC[5];var Ns=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Ns.primary=Ns[5];var DC=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];DC.primary=DC[5];var $C=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];$C.primary=$C[5];var AC=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];AC.primary=AC[5];var kC=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];kC.primary=kC[5];var kh={red:EC,volcano:RC,orange:OC,gold:_C,yellow:PC,lime:TC,green:NC,cyan:IC,blue:Ns,geekblue:DC,purple:$C,magenta:AC,grey:kC},e2=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];e2.primary=e2[5];var t2=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];t2.primary=t2[5];var r2=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];r2.primary=r2[5];var n2=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];n2.primary=n2[5];var o2=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];o2.primary=o2[5];var i2=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];i2.primary=i2[5];var a2=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];a2.primary=a2[5];var s2=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];s2.primary=s2[5];var l2=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];l2.primary=l2[5];var c2=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];c2.primary=c2[5];var u2=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];u2.primary=u2[5];var f2=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];f2.primary=f2[5];var d2=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];d2.primary=d2[5];function MC(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),d=t(o),m=t(i),h=t(a),v=r(l,c),y=e.colorLink||e.colorInfo,g=t(y),p=new ht(m[1]).mix(new ht(m[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:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:p,colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:d[1],colorWarningBgHover:d[2],colorWarningBorder:d[3],colorWarningBorderHover:d[4],colorWarningHover:d[4],colorWarning:d[6],colorWarningActive:d[7],colorWarningTextHover:d[8],colorWarningText:d[9],colorWarningTextActive:d[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:g[4],colorLink:g[6],colorLinkActive:g[7],colorBgMask:new ht("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}var AB=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}},p2=AB;function FC(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},p2(n))}var kB=e=>{let{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},m2=kB;function lu(e){return(e+8)/e}function LC(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 MB=e=>{let t=LC(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]}},g2=MB;function zC(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 Eo=(e,t)=>new ht(e).setA(t).toRgbString(),cu=(e,t)=>new ht(e).darken(t).toHexString();var h2=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]}},v2=(e,t)=>{let r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:Eo(n,.88),colorTextSecondary:Eo(n,.65),colorTextTertiary:Eo(n,.45),colorTextQuaternary:Eo(n,.25),colorFill:Eo(n,.15),colorFillSecondary:Eo(n,.06),colorFillTertiary:Eo(n,.04),colorFillQuaternary:Eo(n,.02),colorBgSolid:Eo(n,1),colorBgSolidHover:Eo(n,.75),colorBgSolidActive:Eo(n,.95),colorBgLayout:cu(r,4),colorBgContainer:cu(r,0),colorBgElevated:cu(r,0),colorBgSpotlight:Eo(n,.85),colorBgBlur:"transparent",colorBorder:cu(r,15),colorBorderSecondary:cu(r,6)}};function WC(e){Oa.pink=Oa.magenta,kh.pink=kh.magenta;let t=Object.keys(CC).map(r=>{let n=e[r]===Oa[r]?kh[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),MC(e,{generateColorPalettes:h2,generateNeutralColorPalettes:v2})),g2(e.fontSize)),zC(e)),m2(e)),FC(e))}var FB=Es(WC),Td=FB;var Nd={token:Ra,override:{override:Ra},hashed:!0},Id=y2.default.createContext(Nd);var Mh=E(N()),Is="ant",Dd="anticon",BC=["outlined","borderless","filled","underlined"],LB=(e,t)=>t||(e?`${Is}-${e}`:Is),ot=Mh.createContext({getPrefixCls:LB,iconPrefixCls:Dd}),{Consumer:zB}=ot,x2={};function oo(e){let t=Mh.useContext(ot),{getPrefixCls:r,direction:n,getPopupContainer:o}=t,i=t[e];return Object.assign(Object.assign({classNames:x2,styles:x2},i),{getPrefixCls:r,direction:n,getPopupContainer:o})}var WB=`-ant-${Date.now()}-${Math.random()}`;function BB(e,t){let r={},n=(a,s)=>{let l=a.clone();return l=s?.(l)||l,l.toRgbString()},o=(a,s)=>{let l=new ht(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 ht(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 ht(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 b2(e,t){let r=BB(e,t);Yt()&&yn(r,`${WB}-dynamic-theme`)}var uu=E(N()),jC=uu.createContext(!1),S2=({children:e,disabled:t})=>{let r=uu.useContext(jC);return uu.createElement(jC.Provider,{value:t??r},e)},Hr=jC;var HC=E(N());var fu=E(N()),VC=fu.createContext(void 0),C2=({children:e,size:t})=>{let r=fu.useContext(VC);return fu.createElement(VC.Provider,{value:t||r},e)},Il=VC;function jB(){let e=(0,HC.useContext)(Hr),t=(0,HC.useContext)(Il);return{componentDisabled:e,componentSize:t}}var w2=jB;var jh=E(N());var VB=st(function e(){at(this,e)}),Fh=VB;var E2="CALC_UNIT",HB=new RegExp(E2,"g");function UC(e){return typeof e=="number"?"".concat(e).concat(E2):e}var R2=function(e){$r(r,e);var t=Ar(r);function r(n,o){var i;at(this,r),i=t.call(this),_(Ye(i),"result",""),_(Ye(i),"unitlessCssVar",void 0),_(Ye(i),"lowPriority",void 0);var a=ce(n);return i.unitlessCssVar=o,n instanceof r?i.result="(".concat(n.result,")"):a==="number"?i.result=UC(n):a==="string"&&(i.result=n),i}return st(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(UC(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(UC(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(HB,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r}(Fh);var UB=function(e){$r(r,e);var t=Ar(r);function r(n){var o;return at(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 st(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}(Fh),O2=UB;var qB=function(t,r){var n=t==="css"?R2:O2;return function(o){return new n(o,r)}},Lh=qB;var GB=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("-"))},qC=GB;var zh=E(N());function wt(e){var t=zh.useRef();t.current=e;var r=zh.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>ZB&&(r.map.delete(i),r.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e}(),T2=new ej;function tj(e,t){return N2.default.useMemo(function(){var r=T2.get(t);if(r)return r;var n=e();return T2.set(t,n),n},t)}var I2=tj;var rj=function(){return{}},D2=rj;function nj(e){var t=e.useCSP,r=t===void 0?D2:t,n=e.useToken,o=e.usePrefix,i=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function l(d,m,h,v){var y=Array.isArray(d)?d[0]:d;function g(R){return"".concat(String(y)).concat(R.slice(0,1).toUpperCase()).concat(R.slice(1))}var p=v?.unitless||{},x=typeof s=="function"?s(d):{},b=T(T({},x),{},_({},g("zIndexPopup"),!0));Object.keys(p).forEach(function(R){b[g(R)]=p[R]});var S=T(T({},v),{},{unitless:b,prefixToken:g}),w=u(d,m,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),I=F(O,2),D=I[1],$=C(P),L=F($,2),A=L[0],M=L[1];return[A,D,M]}}function c(d,m,h){var v=h.unitless,y=h.injectStyle,g=y===void 0?!0:y,p=h.prefixToken,x=h.ignore,b=function(C){var R=C.rootCls,P=C.cssVar,O=P===void 0?{}:P,I=n(),D=I.realToken;return xC({path:[d],prefix:O.prefix,key:O.key,unitless:v,ignore:x,token:D,scope:R},function(){var $=YC(d,D,m),L=KC(d,D,$,{deprecatedTokens:h?.deprecatedTokens});return Object.keys($).forEach(function(A){L[p(A)]=L[A],delete L[A]}),L}),null},S=function(C){var R=n(),P=R.cssVar;return[function(O){return g&&P?jh.default.createElement(jh.default.Fragment,null,jh.default.createElement(b,{rootCls:C,cssVar:P,component:d}),O):O},P?.key]};return S}function u(d,m,h){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=Array.isArray(d)?d:[d,d],g=F(y,1),p=g[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,I=C.token,D=C.cssVar,$=o(),L=$.rootPrefixCls,A=$.iconPrefixCls,M=r(),W=D?"css":"js",B=I2(function(){var k=new Set;return D&&Object.keys(v.unitless||{}).forEach(function(z){k.add(Jc(z,D.prefix)),k.add(Jc(z,qC(p,D.prefix)))}),Lh(W,k)},[W,p,D?.prefix]),K=P2(W),G=K.max,V=K.min,H={theme:R,token:I,hashId:O,nonce:function(){return M.nonce},clientOnly:v.clientOnly,layer:b,order:v.order||-999};typeof i=="function"&&Ts(T(T({},H),{},{clientOnly:!1,path:["Shared",L]}),function(){return i(I,{prefix:{rootPrefixCls:L,iconPrefixCls:A},csp:M})});var j=Ts(T(T({},H),{},{path:[x,S,A]}),function(){if(v.injectStyle===!1)return[];var k=Bh(I),z=k.token,U=k.flush,oe=YC(p,P,h),Q=".".concat(S),X=KC(p,P,oe,{deprecatedTokens:v.deprecatedTokens});D&&oe&&ce(oe)==="object"&&Object.keys(oe).forEach(function(J){oe[J]="var(".concat(Jc(J,qC(p,D.prefix)),")")});var se=ft(z,{componentCls:Q,prefixCls:S,iconCls:".".concat(A),antCls:".".concat(L),calc:B,max:G,min:V},D?oe:X),Z=m(se,{hashId:O,prefixCls:S,rootPrefixCls:L,iconPrefixCls:A});U(p,X);var q=typeof a=="function"?a(se,S,w,v.resetFont):null;return[v.resetStyle===!1?null:q,Z]});return[j,O]}}function f(d,m,h){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=u(d,m,h,T({resetStyle:!1,order:-998},v)),g=function(x){var b=x.prefixCls,S=x.rootCls,w=S===void 0?b:S;return y(b,w),null};return g}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:u}}var QC=nj;var Ro=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var M2=E(N());var $2="5.25.4";var A2=$2;function JC(e){return e>=0&&e<=255}function oj(e,t){let{r,g:n,b:o,a:i}=new ht(e).toRgb();if(i<1)return e;let{r:a,g:s,b:l}=new ht(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),d=Math.round((o-l*(1-c))/c);if(JC(u)&&JC(f)&&JC(d))return new ht({r:u,g:f,b:d,a:Math.round(c*100)/100}).toRgbString()}return new ht({r,g:n,b:o,a:1}).toRgbString()}var Dl=oj;var ij=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[d]});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 d="0s";o.motionDurationFast=d,o.motionDurationMid=d,o.motionDurationSlow=d}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Dl(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:Dl(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Dl(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:Dl(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 ht("rgba(0, 0, 0, 0.16)").toRgbString()}, 0 3px 6px 0 ${new ht("rgba(0, 0, 0, 0.12)").toRgbString()}, 0 5px 12px 4px ${new ht("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 k2=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=k2(t,["override"]),a=Object.assign(Object.assign({},n),{override:o});return a=Vh(a),i&&Object.entries(i).forEach(([s,l])=>{let{theme:c}=l,u=k2(l,["theme"]),f=u;c&&(f=F2(Object.assign(Object.assign({},a),u),{override:u},c)),a[s]=f}),a};function vr(){let{token:e,hashed:t,theme:r,override:n,cssVar:o}=M2.default.useContext(Id),i=`${A2}-${t||""}`,a=r||Td,[s,l,c]=vh(a,[Ra,e],{salt:i,override:n,getComputedToken:F2,formatToken:Vh,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:ZC,ignore:aj,preserve:sj}});return[a,c,t?l:"",s,o]}var tw=E(N());var Pa={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},lr=(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}),Ta=()=>({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:'""'}}),L2=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"}}}),z2=(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})}},ew=(e,t)=>({outline:`${ie(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),W2=(e,t)=>({"&:focus-visible":Object.assign({},ew(e,t))}),Hh=e=>({[`.${e}`]:Object.assign(Object.assign({},Ta()),{[`.${e} .${e}-icon`]:{display:"block"}})});var{genStyleHooks:Gt,genComponentStyleHook:rw,genSubStyleComponent:nw}=QC({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:t}=(0,tw.useContext)(ot);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{let[e,t,r,n,o]=vr();return{theme:e,realToken:t,hashId:r,token:n,cssVar:o}},useCSP:()=>{let{csp:e}=(0,tw.useContext)(ot);return e??{}},getResetStyles:(e,t)=>{var r;let n=L2(e);return[n,{"&":n},Hh((r=t?.prefix.iconPrefixCls)!==null&&r!==void 0?r:Dd)]},getCommonStyle:z2,getCompUnitless:()=>ZC});function Uh(e,t){return Ro.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 lj=(e,t)=>{let[r,n]=vr();return Ts({theme:r,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>[Hh(e)])},qh=lj;var cj=E(N()),uj=Object.assign({},cj),{useId:B2}=uj,fj=()=>"",dj=typeof B2>"u"?fj:B2,j2=dj;function ow(e,t,r){var n,o;let i=Nh("ConfigProvider"),a=e||{},s=a.inherit===!1||!t?Object.assign(Object.assign({},Nd),{hashed:(n=t?.hashed)!==null&&n!==void 0?n:Nd.hashed,cssVar:t?.cssVar}):t,l=j2();return qi(()=>{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 d=`css-var-${l.replace(/:/g,"")}`,m=((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)||d});return Object.assign(Object.assign(Object.assign({},s),a),{token:Object.assign(Object.assign({},s.token),a.token),components:f,cssVar:m})},[a,s],(c,u)=>c.some((f,d)=>{let m=u[d];return!ws(f,m,!0)}))}var fv=E(N());var oD=E(Ne());var ao=E(N()),pw=E(N());var Gh=E(N()),pj=["children"],iw=Gh.createContext({});function Kh(e){var t=e.children,r=He(e,pj);return Gh.createElement(iw.Provider,{value:r},t)}var V2=E(N()),mj=function(e){$r(r,e);var t=Ar(r);function r(){return at(this,r),t.apply(this,arguments)}return st(r,[{key:"render",value:function(){return this.props.children}}]),r}(V2.Component),H2=mj;var Xh=E(N());function aw(e){var t=Xh.useReducer(function(s){return s+1},0),r=F(t,2),n=r[1],o=Xh.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 ov=E(N()),Ia=E(N());var Xi="none",$d="appear",Ad="enter",kd="leave",sw="none",io="prepare",Na="start",Ds="active",Yh="end",Qh="prepared";var Q2=E(N()),J2=E(N());function U2(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 gj(e,t){var r={animationend:U2("Animation","AnimationEnd"),transitionend:U2("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var hj=gj(Yt(),typeof window<"u"?window:{}),G2={};Yt()&&(q2=document.createElement("div"),G2=q2.style);var q2,Jh={};function K2(e){if(Jh[e])return Jh[e];var t=hj[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 rv.useEffect(function(){return function(){t()}},[]),[r,t]};var yj=[io,Na,Ds,Yh],xj=[io,Qh],fw=!1,rD=!0;function nv(e){return e===Ds||e===Yh}var nD=function(e,t,r){var n=_a(sw),o=F(n,2),i=o[0],a=o[1],s=eD(),l=F(s,2),c=l[0],u=l[1];function f(){a(io,!0)}var d=t?xj:yj;return tv(function(){if(i!==sw&&i!==Yh){var m=d.indexOf(i),h=d[m+1],v=r(i);v===fw?a(h,!0):h&&c(function(y){function g(){y.isCanceled()||a(h,!0)}v===!0?g():Promise.resolve(v).then(g)})}},[e,i]),tD.useEffect(function(){return function(){u()}},[]),[f,i]};function dw(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,d=n.onAppearPrepare,m=n.onEnterPrepare,h=n.onLeavePrepare,v=n.onAppearStart,y=n.onEnterStart,g=n.onLeaveStart,p=n.onAppearActive,x=n.onEnterActive,b=n.onLeaveActive,S=n.onAppearEnd,w=n.onEnterEnd,C=n.onLeaveEnd,R=n.onVisibleChanged,P=_a(),O=F(P,2),I=O[0],D=O[1],$=aw(Xi),L=F($,2),A=L[0],M=L[1],W=_a(null),B=F(W,2),K=B[0],G=B[1],V=A(),H=(0,Ia.useRef)(!1),j=(0,Ia.useRef)(null);function k(){return r()}var z=(0,Ia.useRef)(!1);function U(){M(Xi),G(null,!0)}var oe=wt(function(we){var _e=A();if(_e!==Xi){var ve=k();if(!(we&&!we.deadline&&we.target!==ve)){var Y=z.current,Ee;_e===$d&&Y?Ee=S?.(ve,we):_e===Ad&&Y?Ee=w?.(ve,we):_e===kd&&Y&&(Ee=C?.(ve,we)),Y&&Ee!==!1&&U()}}}),Q=Z2(oe),X=F(Q,1),se=X[0],Z=function(_e){switch(_e){case $d:return _(_(_({},io,d),Na,v),Ds,p);case Ad:return _(_(_({},io,m),Na,y),Ds,x);case kd:return _(_(_({},io,h),Na,g),Ds,b);default:return{}}},q=ov.useMemo(function(){return Z(V)},[V]),J=nD(V,!e,function(we){if(we===io){var _e=q[io];return _e?_e(k()):fw}if(te in q){var ve;G(((ve=q[te])===null||ve===void 0?void 0:ve.call(q,k(),null))||null)}return te===Ds&&V!==Xi&&(se(k()),u>0&&(clearTimeout(j.current),j.current=setTimeout(function(){oe({deadline:!0})},u))),te===Qh&&U(),rD}),re=F(J,2),ee=re[0],te=re[1],de=nv(te);z.current=de;var fe=(0,Ia.useRef)(null);tv(function(){if(!(H.current&&fe.current===t)){D(t);var we=H.current;H.current=!0;var _e;!we&&t&&s&&(_e=$d),we&&t&&i&&(_e=Ad),(we&&!t&&c||!we&&f&&!t&&c)&&(_e=kd);var ve=Z(_e);_e&&(e||ve[io])?(M(_e),ee()):M(Xi),fe.current=t}},[t]),(0,Ia.useEffect)(function(){(V===$d&&!s||V===Ad&&!i||V===kd&&!c)&&M(Xi)},[s,i,c]),(0,Ia.useEffect)(function(){return function(){H.current=!1,clearTimeout(j.current)}},[]);var ue=ov.useRef(!1);(0,Ia.useEffect)(function(){I&&(ue.current=!0),I!==void 0&&V===Xi&&((ue.current||I)&&R?.(I),ue.current=!0)},[I,V]);var Ce=K;return q[io]&&te===Na&&(Ce=T({transition:"none"},Ce)),[V,te,Ce,I??t]}function bj(e){var t=e;ce(e)==="object"&&(t=e.transitionSupport);function r(o,i){return!!(o.motionName&&t&&i!==!1)}var n=ao.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,d=o.motionName,m=o.leavedClassName,h=o.eventProps,v=ao.useContext(iw),y=v.motion,g=r(o,y),p=(0,pw.useRef)(),x=(0,pw.useRef)();function b(){try{return p.current instanceof HTMLElement?p.current:Rl(x.current)}catch{return null}}var S=dw(g,s,b,o),w=F(S,4),C=w[0],R=w[1],P=w[2],O=w[3],I=ao.useRef(O);O&&(I.current=!0);var D=ao.useCallback(function(B){p.current=B,vd(i,B)},[i]),$,L=T(T({},h),{},{visible:s});if(!f)$=null;else if(C===Xi)O?$=f(T({},L),D):!c&&I.current&&m?$=f(T(T({},L),{},{className:m}),D):u||!c&&!m?$=f(T(T({},L),{},{style:{display:"none"}}),D):$=null;else{var A;R===io?A="prepare":nv(R)?A="active":R===Na&&(A="start");var M=uw(d,"".concat(C,"-").concat(A));$=f(T(T({},L),{},{className:(0,oD.default)(uw(d,C),_(_({},M,M&&A),d,typeof d=="string")),style:P}),D)}if(ao.isValidElement($)&&bi($)){var W=xs($);W||($=ao.cloneElement($,{ref:D}))}return ao.createElement(H2,{ref:x},$)});return n.displayName="CSSMotion",n}var iv=bj(Zh);var $l=E(N());var av="add",sv="keep",lv="remove",uv="removed";function Sj(e){var t;return e&&ce(e)==="object"&&"key"in e?t=e:t={key:e},T(T({},t),{},{key:String(t.key)})}function cv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(Sj)}function iD(){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=cv(e),a=cv(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,d=u.status;return f!==c||d!==lv}),r.forEach(function(u){u.key===c&&(u.status=sv)})}),r}var Cj=["component","children","onVisibleChanged","onAllRemoved"],wj=["status"],Ej=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Rj(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:iv,r=function(n){$r(i,n);var o=Ar(i);function i(){var a;at(this,i);for(var s=arguments.length,l=new Array(s),c=0;cnull;var _j=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 Aj=e=>{let{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:o}=e;t!==void 0&&(sD=t),r!==void 0&&(Tj=r),"holderRender"in e&&(Ij=o),n&&($j(n)?b2(Dj(),n):Nj=n)};var kj=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:d,dropdownMatchSelectWidth:m,popupMatchSelectWidth:h,popupOverflow:v,legacyLocale:y,parentContext:g,iconPrefixCls:p,theme:x,componentDisabled:b,segmented:S,statistic:w,spin:C,calendar:R,carousel:P,cascader:O,collapse:I,typography:D,checkbox:$,descriptions:L,divider:A,drawer:M,skeleton:W,steps:B,image:K,layout:G,list:V,mentions:H,modal:j,progress:k,result:z,slider:U,breadcrumb:oe,menu:Q,pagination:X,input:se,textArea:Z,empty:q,badge:J,radio:re,rate:ee,switch:te,transfer:de,avatar:fe,message:ue,tag:Ce,table:we,card:_e,tabs:ve,timeline:Y,timePicker:Ee,upload:$e,notification:et,tree:ke,colorPicker:Se,datePicker:Be,rangePicker:Fe,flex:Ue,wave:Re,dropdown:ae,warning:ge,tour:Te,tooltip:he,popover:Ze,popconfirm:ct,floatButtonGroup:_t,variant:Pt,inputNumber:mt,treeSelect:je}=e,Pe=cr.useCallback((ze,tt)=>{let{prefixCls:kt}=e;if(tt)return tt;let Dt=kt||g.getPrefixCls("");return ze?`${Dt}-${ze}`:Dt},[g.getPrefixCls,e.prefixCls]),qe=p||g.iconPrefixCls||Dd,Oe=r||g.csp;qh(qe,Oe);let Me=ow(x,g.theme,{prefixCls:Pe("")}),Ve={csp:Oe,autoInsertSpaceInButton:n,alert:o,anchor:i,locale:s||y,direction:c,space:u,splitter:f,virtual:d,popupMatchSelectWidth:h??m,popupOverflow:v,getPrefixCls:Pe,iconPrefixCls:qe,theme:Me,segmented:S,statistic:w,spin:C,calendar:R,carousel:P,cascader:O,collapse:I,typography:D,checkbox:$,descriptions:L,divider:A,drawer:M,skeleton:W,steps:B,image:K,input:se,textArea:Z,layout:G,list:V,mentions:H,modal:j,progress:k,result:z,slider:U,breadcrumb:oe,menu:Q,pagination:X,empty:q,badge:J,radio:re,rate:ee,switch:te,transfer:de,avatar:fe,message:ue,tag:Ce,table:we,card:_e,tabs:ve,timeline:Y,timePicker:Ee,upload:$e,notification:et,tree:ke,colorPicker:Se,datePicker:Be,rangePicker:Fe,flex:Ue,wave:Re,dropdown:ae,warning:ge,tour:Te,tooltip:he,popover:Ze,popconfirm:ct,floatButtonGroup:_t,variant:Pt,inputNumber:mt,treeSelect:je},xe=Object.assign({},g);Object.keys(Ve).forEach(ze=>{Ve[ze]!==void 0&&(xe[ze]=Ve[ze])}),Pj.forEach(ze=>{let tt=e[ze];tt&&(xe[ze]=tt)}),typeof n<"u"&&(xe.button=Object.assign({autoInsertSpace:n},xe.button));let nt=qi(()=>xe,xe,(ze,tt)=>{let kt=Object.keys(ze),Dt=Object.keys(tt);return kt.length!==Dt.length||kt.some(rr=>ze[rr]!==tt[rr])}),{layer:Tt}=cr.useContext(wi),Ie=cr.useMemo(()=>({prefixCls:qe,csp:Oe,layer:Tt?"antd":void 0}),[qe,Oe,Tt]),be=cr.createElement(cr.Fragment,null,cr.createElement(aD,{dropdownMatchSelectWidth:m}),t),Ke=cr.useMemo(()=>{var ze,tt,kt,Dt;return wa(((ze=Ei.Form)===null||ze===void 0?void 0:ze.defaultValidateMessages)||{},((kt=(tt=nt.locale)===null||tt===void 0?void 0:tt.Form)===null||kt===void 0?void 0:kt.defaultValidateMessages)||{},((Dt=nt.form)===null||Dt===void 0?void 0:Dt.validateMessages)||{},a?.validateMessages||{})},[nt,a?.validateMessages]);Object.keys(Ke).length>0&&(be=cr.createElement(FI.Provider,{value:Ke},be)),s&&(be=cr.createElement(qI,{locale:s,_ANT_MARK__:UI},be)),(qe||Oe)&&(be=cr.createElement(iu.Provider,{value:Ie},be)),l&&(be=cr.createElement(C2,{size:l},be)),be=cr.createElement(gw,null,be);let Le=cr.useMemo(()=>{let ze=Me||{},{algorithm:tt,token:kt,components:Dt,cssVar:rr}=ze,Ft=_j(ze,["algorithm","token","components","cssVar"]),Tr=tt&&(!Array.isArray(tt)||tt.length>0)?Es(tt):Td,nr={};Object.entries(Dt||{}).forEach(([wn,Qt])=>{let Lt=Object.assign({},Qt);"algorithm"in Lt&&(Lt.algorithm===!0?Lt.theme=Tr:(Array.isArray(Lt.algorithm)||typeof Lt.algorithm=="function")&&(Lt.theme=Es(Lt.algorithm)),delete Lt.algorithm),nr[wn]=Lt});let xr=Object.assign(Object.assign({},Ra),kt);return Object.assign(Object.assign({},Ft),{theme:Tr,token:xr,components:nr,override:Object.assign({override:xr},nr),cssVar:rr})},[Me]);return x&&(be=cr.createElement(Id.Provider,{value:Le},be)),nt.warning&&(be=cr.createElement(kI.Provider,{value:nt.warning},be)),b!==void 0&&(be=cr.createElement(S2,{disabled:b},be)),cr.createElement(ot.Provider,{value:nt},be)},mu=e=>{let t=cr.useContext(ot),r=cr.useContext(au);return cr.createElement(kj,Object.assign({parentContext:t,legacyLocale:r},e))};mu.ConfigContext=ot;mu.SizeContext=Il;mu.config=Aj;mu.useConfig=w2;Object.defineProperty(mu,"SizeContext",{get:()=>Il});var Da=mu;var hv=E(N());var Mj={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"},lD=Mj;var Ml=E(N()),gD=E(Ne());var pD=E(N());function cD(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Fj(e){return cD(e)instanceof ShadowRoot}function Al(e){return Fj(e)?cD(e):null}var kl=E(N());function Lj(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function fD(e,t){Vt(e,"[@ant-design/icons] ".concat(t))}function hw(e){return ce(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ce(e.icon)==="object"||typeof e.icon=="function")}function uD(){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[Lj(r)]=n}return t},{})}function dv(e,t,r){return r?kl.default.createElement(e.tag,T(T({key:t},uD(e.attrs)),r),(e.children||[]).map(function(n,o){return dv(n,"".concat(t,"-").concat(e.tag,"-").concat(o))})):kl.default.createElement(e.tag,T({key:t},uD(e.attrs)),(e.children||[]).map(function(n,o){return dv(n,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function vw(e){return Ri(e)[0]}function pv(e){return e?Array.isArray(e)?e:[e]:[]}var zj=` .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); } } `,dD=function(t){var r=(0,kl.useContext)(iu),n=r.csp,o=r.prefixCls,i=r.layer,a=zj;o&&(a=a.replace(/anticon/g,o)),i&&(a="@layer ".concat(i,` { `).concat(a,` }`)),(0,kl.useEffect)(function(){var s=t.current,l=Al(s);yn(a,"@ant-design-icons",{prepend:!i,csp:n,attachTo:l})},[])};var Wj=["icon","className","onClick","style","primaryColor","secondaryColor"],Md={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Bj(e){var t=e.primaryColor,r=e.secondaryColor;Md.primaryColor=t,Md.secondaryColor=r||vw(t),Md.calculated=!!r}function jj(){return T({},Md)}var mv=function(t){var r=t.icon,n=t.className,o=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=He(t,Wj),c=pD.useRef(),u=Md;if(a&&(u={primaryColor:a,secondaryColor:s||vw(a)}),dD(c),fD(hw(r),"icon should be icon definiton, but got ".concat(r)),!hw(r))return null;var f=r;return f&&typeof f.icon=="function"&&(f=T(T({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),dv(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}))};mv.displayName="IconReact";mv.getTwoToneColors=jj;mv.setTwoToneColors=Bj;var Fd=mv;function yw(e){var t=pv(e),r=F(t,2),n=r[0],o=r[1];return Fd.setTwoToneColors({primaryColor:n,secondaryColor:o})}function mD(){var e=Fd.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Vj=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];yw(Ns.primary);var gv=Ml.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=He(e,Vj),u=Ml.useContext(iu),f=u.prefixCls,d=f===void 0?"anticon":f,m=u.rootClassName,h=(0,gD.default)(m,d,_(_({},"".concat(d,"-").concat(n.name),!!n.name),"".concat(d,"-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,g=pv(l),p=F(g,2),x=p[0],b=p[1];return Ml.createElement("span",le({role:"img","aria-label":n.name},c,{ref:t,tabIndex:v,onClick:s,className:h}),Ml.createElement(Fd,{icon:n,primaryColor:x,secondaryColor:b,style:y}))});gv.displayName="AntdIcon";gv.getTwoToneColor=mD;gv.setTwoToneColor=yw;var zt=gv;var Hj=function(t,r){return hv.createElement(zt,le({},t,{ref:r,icon:lD}))},Uj=hv.forwardRef(Hj),hD=Uj;var vv=E(N());var qj={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"},vD=qj;var Gj=function(t,r){return vv.createElement(zt,le({},t,{ref:r,icon:vD}))},Kj=vv.forwardRef(Gj),gu=Kj;var xv=E(N());var Xj={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"},yv=Xj;var Yj=function(t,r){return xv.createElement(zt,le({},t,{ref:r,icon:yv}))},Qj=xv.forwardRef(Yj),bv=Qj;var Jj=`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`,Zj=`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`,e8="".concat(Jj," ").concat(Zj).split(/[\s\n]+/),t8="aria-",r8="data-";function yD(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"||yD(o,t8))||r.data&&yD(o,r8)||r.attr&&e8.includes(o))&&(n[o]=e[o])}),n}var Ld=E(N());function Sv(e){return e&&Ld.default.isValidElement(e)&&e.type===Ld.default.Fragment}var n8=(e,t,r)=>Ld.default.isValidElement(e)?Ld.default.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function Go(e,t){return n8(e,e,t)}var o8=e=>{let[,,,,t]=vr();return t?`${e}-css-var`:""},Ko=o8;var lt={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>=lt.F1&&r<=lt.F12)return!1;switch(r){case lt.ALT:case lt.CAPS_LOCK:case lt.CONTEXT_MENU:case lt.CTRL:case lt.DOWN:case lt.END:case lt.ESC:case lt.HOME:case lt.INSERT:case lt.LEFT:case lt.MAC_FF_META:case lt.META:case lt.NUMLOCK:case lt.NUM_CENTER:case lt.PAGE_DOWN:case lt.PAGE_UP:case lt.PAUSE:case lt.PRINT_SCREEN:case lt.RIGHT:case lt.SHIFT:case lt.UP:case lt.WIN_KEY:case lt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=lt.ZERO&&t<=lt.NINE||t>=lt.NUM_ZERO&&t<=lt.NUM_MULTIPLY||t>=lt.A&&t<=lt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case lt.SPACE:case lt.QUESTION_MARK:case lt.NUM_PLUS:case lt.NUM_MINUS:case lt.NUM_PERIOD:case lt.NUM_DIVISION:case lt.SEMICOLON:case lt.DASH:case lt.EQUALS:case lt.COMMA:case lt.PERIOD:case lt.SLASH:case lt.APOSTROPHE:case lt.SINGLE_QUOTE:case lt.OPEN_SQUARE_BRACKET:case lt.BACKSLASH:case lt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Qe=lt;var Cv=E(N());var i8={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"},xD=i8;var a8=function(t,r){return Cv.createElement(zt,le({},t,{ref:r,icon:xD}))},s8=Cv.forwardRef(a8),Fl=s8;var SD=E(N());var bD=E(N()),l8=bD.default.createContext(void 0),wv=l8;var $a=100,c8=10,u8=$a*c8,hfe=u8+$a,CD={Modal:$a,Drawer:$a,Popover:$a,Popconfirm:$a,Tooltip:$a,Tour:$a,FloatButton:$a},f8={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function d8(e){return e in CD}var Ev=(e,t)=>{let[,r]=vr(),n=SD.default.useContext(wv),o=d8(e),i;if(t!==void 0)i=[t,t];else{let a=n??0;o?a+=(n?0:r.zIndexPopupBase)+CD[e]:a+=f8[e],i=[n===void 0?t:a,a]}return i};var b8=E(N()),Gfe=E(Ui());function Rv(e,t){this.v=e,this.k=t}function ln(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}ln=function(a,s,l,c){if(s)o?o(a,s,{value:l,enumerable:!c,configurable:!c,writable:!c}):a[s]=l;else{var u=function(d,m){ln(a,d,function(h){return this._invoke(d,m,h)})};u("next",0),u("throw",1),u("return",2)}},ln(e,t,r,n)}function zd(){var e,t,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(m,h,v,y){var g=h&&h.prototype instanceof s?h:s,p=Object.create(g.prototype);return ln(p,"_invoke",function(x,b,S){var w,C,R,P=0,O=S||[],I=!1,D={p:0,n:0,v:e,a:$,f:$.bind(e,4),d:function(A,M){return w=A,C=0,R=e,D.n=M,a}};function $(L,A){for(C=L,R=A,t=0;!I&&P&&!M&&t3?(M=K===A)&&(R=W[(C=W[4])?5:(C=3,3)],W[4]=W[5]=e):W[0]<=B&&((M=L<2&&BA||A>K)&&(W[4]=L,W[5]=A,D.n=K,C=0))}if(M||L>1)return a;throw I=!0,A}return function(L,A,M){if(P>1)throw TypeError("Generator is already running");for(I&&A===1&&$(A,M),C=A,R=M;(t=C<2?e:R)||!I;){w||(C?C<3?(C>1&&(D.n=-1),$(C,R)):D.n=R:D.v=R);try{if(P=2,w){if(C||(L="next"),t=w[L]){if(!(t=t.call(w,R)))throw TypeError("iterator result is not an object");if(!t.done)return t;R=t.value,C<2&&(C=0)}else C===1&&(t=w.return)&&t.call(w),C<2&&(R=TypeError("The iterator does not provide a '"+L+"' method"),C=1);w=e}else if((t=(I=D.n<0)?R:x.call(b,D))!==a)break}catch(W){w=e,C=1,R=W}finally{P=1}}return{value:t,done:I}}}(m,v,y),!0),p}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(ln(t={},n,function(){return this}),t),f=c.prototype=s.prototype=Object.create(u);function d(m){return Object.setPrototypeOf?Object.setPrototypeOf(m,c):(m.__proto__=c,ln(m,o,"GeneratorFunction")),m.prototype=Object.create(f),m}return l.prototype=c,ln(f,"constructor",c),ln(c,"constructor",l),l.displayName="GeneratorFunction",ln(c,o,"GeneratorFunction"),ln(f),ln(f,o,"Generator"),ln(f,n,function(){return this}),ln(f,"toString",function(){return"[object Generator]"}),(zd=function(){return{w:i,m:d}})()}function hu(e,t){function r(o,i,a,s){try{var l=e[o](i),c=l.value;return c instanceof Rv?t.resolve(c.v).then(function(u){r("next",u,a,s)},function(u){r("throw",u,a,s)}):t.resolve(c).then(function(u){l.value=u,a(l)},function(u){return r("throw",u,a,s)})}catch(u){s(u)}}var n;this.next||(ln(hu.prototype),ln(hu.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),ln(this,"_invoke",function(o,i,a){function s(){return new t(function(l,c){r(o,a,l,c)})}return n=n?n.then(s,s):s()},!0)}function Ov(e,t,r,n,o){return new hu(zd().w(e,t,r,n),o||Promise)}function wD(e,t,r,n,o){var i=Ov(e,t,r,n,o);return i.next().then(function(a){return a.done?a.value:i.next()})}function ED(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function o(){for(;r.length;)if((n=r.pop())in t)return o.value=n,o.done=!1,o;return o.done=!0,o}}function xw(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(ce(e)+" is not iterable")}function Et(){"use strict";var e=zd(),t=e.m(Et),r=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function n(a){var s=typeof a=="function"&&a.constructor;return!!s&&(s===r||(s.displayName||s.name)==="GeneratorFunction")}var o={throw:1,return:2,break:3,continue:3};function i(a){var s,l;return function(c){s||(s={stop:function(){return l(c.a,2)},catch:function(){return c.v},abrupt:function(f,d){return l(c.a,o[f],d)},delegateYield:function(f,d,m){return s.resultName=d,l(c.d,xw(f),m)},finish:function(f){return l(c.f,f)}},l=function(f,d,m){c.p=s.prev,c.n=s.next;try{return f(d,m)}finally{s.next=c.n}}),s.resultName&&(s[s.resultName]=c.v,s.resultName=void 0),s.sent=c.v,s.next=c.n;try{return a.call(this,s)}finally{c.p=s.prev,c.n=s.next}}}return(Et=function(){return{wrap:function(l,c,u,f){return e.w(i(l),c,u,f&&f.reverse())},isGeneratorFunction:n,mark:e.m,awrap:function(l,c){return new Rv(l,c)},AsyncIterator:hu,async:function(l,c,u,f,d){return(n(c)?Ov:wD)(i(l),c,u,f,d)},keys:ED,values:xw}})()}function RD(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 Ur(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(l){RD(i,n,o,a,s,"next",l)}function s(l){RD(i,n,o,a,s,"throw",l)}a(void 0)})}}var p8=E(Ui()),Wd=T({},p8),m8=Wd.version,bw=Wd.render,g8=Wd.unmountComponentAtNode,Pv;try{OD=Number((m8||"").split(".")[0]),OD>=18&&(Pv=Wd.createRoot)}catch{}var OD;function _D(e){var t=Wd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&ce(t)==="object"&&(t.usingClientEntryPoint=e)}var _v="__rc_react_root__";function h8(e,t){_D(!0);var r=t[_v]||Pv(t);_D(!1),r.render(e),t[_v]=r}function v8(e,t){bw?.(e,t)}function PD(e,t){if(Pv){h8(e,t);return}v8(e,t)}function y8(e){return Sw.apply(this,arguments)}function Sw(){return Sw=Ur(Et().mark(function e(t){return Et().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var o;(o=t[_v])===null||o===void 0||o.unmount(),delete t[_v]}));case 1:case"end":return n.stop()}},e)})),Sw.apply(this,arguments)}function x8(e){g8(e)}function TD(e){return Cw.apply(this,arguments)}function Cw(){return Cw=Ur(Et().mark(function e(t){return Et().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(Pv===void 0){n.next=2;break}return n.abrupt("return",y8(t));case 2:x8(t);case 3:case"end":return n.stop()}},e)})),Cw.apply(this,arguments)}var S8=(e,t)=>(PD(e,t),()=>TD(t)),ND=S8;function ID(e){return e&&(ND=e),ND}var ww=()=>({height:0,opacity:0}),DD=e=>{let{scrollHeight:t}=e;return{height:t,opacity:1}},C8=e=>({height:e?e.offsetHeight:0}),Ew=(e,t)=>t?.deadline===!0||t.propertyName==="height",w8=(e=Is)=>({motionName:`${e}-motion-collapse`,onAppearStart:ww,onEnterStart:ww,onAppearActive:DD,onEnterActive:DD,onLeaveStart:C8,onLeaveActive:ww,onAppearEnd:Ew,onEnterEnd:Ew,onLeaveEnd:Ew,motionDeadline:500});var Tv=(e,t,r)=>r!==void 0?r:`${e}-${t}`;var $D=w8;var Wt=E(N()),Yv=E(Ne());function qr(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}var Ll=E(N()),zD=E(Ne());var Nv=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 E8=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(",")}}}}},AD=rw("Wave",e=>[E8(e)]);var Iv=E(N());var vu=`${Is}-wave-target`;var cn=E(N()),MD=E(Ne());function Rw(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 kD(e){let{borderTopColor:t,borderColor:r,backgroundColor:n}=getComputedStyle(e);return Rw(t)?t:Rw(r)?r:Rw(n)?n:null}function Ow(e){return Number.isNaN(e)?0:e}var R8=e=>{let{className:t,target:r,component:n,registerUnmount:o}=e,i=cn.useRef(null),a=cn.useRef(null);cn.useEffect(()=>{a.current=o()},[]);let[s,l]=cn.useState(null),[c,u]=cn.useState([]),[f,d]=cn.useState(0),[m,h]=cn.useState(0),[v,y]=cn.useState(0),[g,p]=cn.useState(0),[x,b]=cn.useState(!1),S={left:f,top:m,width:v,height:g,borderRadius:c.map(R=>`${R}px`).join(" ")};s&&(S["--wave-color"]=s);function w(){let R=getComputedStyle(r);l(kD(r));let P=R.position==="static",{borderLeftWidth:O,borderTopWidth:I}=R;d(P?r.offsetLeft:Ow(-parseFloat(O))),h(P?r.offsetTop:Ow(-parseFloat(I))),y(r.offsetWidth),p(r.offsetHeight);let{borderTopLeftRadius:D,borderTopRightRadius:$,borderBottomLeftRadius:L,borderBottomRightRadius:A}=R;u([D,$,A,L].map(M=>Ow(parseFloat(M))))}if(cn.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(vu);return cn.createElement(Uo,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(R,P)=>{var O,I;if(P.deadline||P.propertyName==="opacity"){let D=(O=i.current)===null||O===void 0?void 0:O.parentElement;(I=a.current)===null||I===void 0||I.call(a).then(()=>{D?.remove()})}return!1}},({className:R},P)=>cn.createElement("div",{ref:zr(i,P),className:(0,MD.default)(t,R,{"wave-quick":C}),style:S}))},O8=(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=ID(),a=null;function s(){return a}a=i(cn.createElement(R8,Object.assign({},t,{target:e,registerUnmount:s})),o)},FD=O8;var _8=(e,t,r)=>{let{wave:n}=Iv.useContext(ot),[,o,i]=vr(),a=wt(c=>{let u=e.current;if(n?.disabled||!u)return;let f=u.querySelector(`.${vu}`)||u,{showEffect:d}=n||{};(d||FD)(f,{className:t,token:o,component:r,event:c,hashId:i})}),s=Iv.useRef(null);return c=>{dt.cancel(s.current),s.current=dt(()=>{a(c)})}},LD=_8;var P8=e=>{let{children:t,disabled:r,component:n}=e,{getPrefixCls:o}=(0,Ll.useContext)(ot),i=(0,Ll.useRef)(null),a=o("wave"),[,s]=AD(a),l=LD(i,(0,zD.default)(a,s),n);if(Ll.default.useEffect(()=>{let u=i.current;if(!u||u.nodeType!==1||r)return;let f=d=>{!Nv(d.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(d)};return u.addEventListener("click",f,!0),()=>{u.removeEventListener("click",f,!0)}},[r]),!Ll.default.isValidElement(t))return t??null;let c=bi(t)?zr(xs(t),i):i;return Go(t,{ref:c})},Dv=P8;var _w=E(N());var T8=e=>{let t=_w.default.useContext(Il);return _w.default.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},so=T8;var $s=E(N()),WD=E(Ne());var BD=$s.createContext(null),Xo=(e,t)=>{let r=$s.useContext(BD),n=$s.useMemo(()=>{if(!r)return"";let{compactDirection:o,isFirstItem:i,isLastItem:a}=r,s=o==="vertical"?"-vertical-":"-";return(0,WD.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}},jD=e=>{let{children:t}=e;return $s.createElement(BD.Provider,{value:null},t)};var Aa=E(N()),VD=E(Ne());var N8=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}=Aa.useContext(ot),{prefixCls:n,size:o,className:i}=e,a=N8(e,["prefixCls","size","className"]),s=t("btn-group",n),[,,l]=vr(),c=Aa.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]),u=(0,VD.default)(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:r==="rtl"},i,l);return Aa.createElement(Pw.Provider,{value:o},Aa.createElement("div",Object.assign({},a,{className:u})))},HD=I8;var yu=E(N());var UD=/^[\u4E00-\u9FA5]{2}$/,$v=UD.test.bind(UD);function qD(e){return typeof e=="string"}function Av(e){return e==="text"||e==="link"}function D8(e,t){if(e==null)return;let r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&qD(e.type)&&$v(e.props.children)?Go(e,{children:e.props.children.split("").join(r)}):qD(e)?$v(e)?yu.default.createElement("span",null,e.split("").join(r)):yu.default.createElement("span",null,e):Sv(e)?yu.default.createElement("span",null,e):e}function GD(e,t){let r=!1,n=[];return yu.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}),yu.default.Children.map(n,o=>D8(o,t))}var Mde=["default","primary","danger"].concat(ne(Ro));var As=E(N());var Iw=E(Ne());var kv=E(N()),KD=E(Ne()),$8=(0,kv.forwardRef)((e,t)=>{let{className:r,style:n,children:o,prefixCls:i}=e,a=(0,KD.default)(`${i}-icon`,r);return kv.default.createElement("span",{ref:t,className:a,style:n},o)}),Bd=$8;var XD=(0,As.forwardRef)((e,t)=>{let{prefixCls:r,className:n,style:o,iconClassName:i}=e,a=(0,Iw.default)(`${r}-loading-icon`,n);return As.default.createElement(Bd,{prefixCls:r,className:a,style:o,ref:t},As.default.createElement(Fl,{className:i}))}),Tw=()=>({width:0,opacity:0,transform:"scale(0)"}),Nw=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),A8=e=>{let{prefixCls:t,loading:r,existIcon:n,className:o,style:i,mount:a}=e,s=!!r;return n?As.default.createElement(XD,{prefixCls:t,className:o,style:i}):As.default.createElement(Uo,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:!0,onAppearStart:Tw,onAppearActive:Nw,onEnterStart:Tw,onEnterActive:Nw,onLeaveStart:Nw,onLeaveActive:Tw},({className:l,style:c},u)=>{let f=Object.assign(Object.assign({},i),c);return As.default.createElement(XD,{prefixCls:t,className:(0,Iw.default)(o,l),style:f,ref:u})})},YD=A8;var QD=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),k8=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}},QD(`${t}-primary`,o),QD(`${t}-danger`,i)]}},JD=k8;var kw=E(N());var M8=["b"],F8=["v"],Dw=function(t){return Math.round(Number(t||0))},L8=function(t){if(t instanceof ht)return t;if(t&&ce(t)==="object"&&"h"in t&&"b"in t){var r=t,n=r.b,o=He(r,M8);return T(T({},o),{},{v:n})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Yo=function(e){$r(r,e);var t=Ar(r);function r(n){return at(this,r),t.call(this,L8(n))}return st(r,[{key:"toHsbString",value:function(){var o=this.toHsb(),i=Dw(o.s*100),a=Dw(o.b*100),s=Dw(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=He(o,F8);return T(T({},a),{},{b:i,a:this.a})}}]),r}(ht);var $w=function(t){return t instanceof Yo?t:new Yo(t)},z8=$w("#1677ff");var eV=E(Ne());var W8=E(Ne()),B8=E(N());var e$=E(N());var Aw=E(N());var j8=E(Ne()),V8=E(N());var H8=E(N());var ZD=E(N());var Q8=E(N());var Z8=E(N());var r$=E(N());var J8=E(Ne());var t$=E(N());var tV=(e,t)=>e?.replace(/[^\w/]/g,"").slice(0,t?8:6)||"",rV=(e,t)=>e?tV(e,t):"",o$=function(){function e(t){at(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 st(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return rV(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 T$=E(N());var cV=E(Ne());var nV=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`}}}),Mw=nV;var oV=e=>({animationDuration:e,animationFillMode:"both"}),iV=e=>({animationDuration:e,animationFillMode:"both"}),ks=(e,t,r,n,o=!1)=>{let i=o?"&":"";return{[` ${i}${e}-enter, ${i}${e}-appear `]:Object.assign(Object.assign({},oV(n)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},iV(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 i$=new xt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),a$=new xt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Fw=(e,t=!1)=>{let{antCls:r}=e,n=`${r}-fade`,o=t?"&":"";return[ks(n,i$,a$,e.motionDurationMid,t),{[` ${o}${n}-enter, ${o}${n}-appear `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${n}-leave`]:{animationTimingFunction:"linear"}}]};var s$=new xt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),l$=new xt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),c$=new xt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),u$=new xt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),f$=new xt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),d$=new xt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),p$=new xt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),m$=new xt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),aV={"move-up":{inKeyframes:p$,outKeyframes:m$},"move-down":{inKeyframes:s$,outKeyframes:l$},"move-left":{inKeyframes:c$,outKeyframes:u$},"move-right":{inKeyframes:f$,outKeyframes:d$}},Mv=(e,t)=>{let{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:o,outKeyframes:i}=aV[t];return[ks(n,o,i,e.motionDurationMid),{[` ${n}-enter, ${n}-appear `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var Fv=new xt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Lv=new xt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),zv=new xt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Wv=new xt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),g$=new xt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),h$=new xt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),v$=new xt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),y$=new xt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),sV={"slide-up":{inKeyframes:Fv,outKeyframes:Lv},"slide-down":{inKeyframes:zv,outKeyframes:Wv},"slide-left":{inKeyframes:g$,outKeyframes:h$},"slide-right":{inKeyframes:v$,outKeyframes:y$}},Bv=(e,t)=>{let{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:o,outKeyframes:i}=sV[t];return[ks(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 x$=new xt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),b$=new xt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Lw=new xt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),zw=new xt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),S$=new xt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),C$=new xt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),w$=new xt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),E$=new xt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),R$=new xt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),O$=new xt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),_$=new xt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),P$=new xt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),lV={zoom:{inKeyframes:x$,outKeyframes:b$},"zoom-big":{inKeyframes:Lw,outKeyframes:zw},"zoom-big-fast":{inKeyframes:Lw,outKeyframes:zw},"zoom-left":{inKeyframes:w$,outKeyframes:E$},"zoom-right":{inKeyframes:R$,outKeyframes:O$},"zoom-up":{inKeyframes:S$,outKeyframes:C$},"zoom-down":{inKeyframes:_$,outKeyframes:P$}},Ww=(e,t)=>{let{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:o,outKeyframes:i}=lV[t];return[ks(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 N$=(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 jv=e=>{let{paddingInline:t,onlyIconSize:r}=e;return ft(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:r})},Vv=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),d=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:lu(c),m=N$(new o$(e.colorBgSolid),"#fff")?"#000":"#fff",h=Ro.reduce((v,y)=>Object.assign(Object.assign({},v),{[`${y}ShadowColor`]:`0 ${ie(e.controlOutlineWidth)} 0 ${Dl(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:m,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:f,contentLineHeightLG:d,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*d)/2-e.lineWidth,0)})};var uV=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:`${ie(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`]:Ta(),"> a":{color:"currentColor"},"&:not(:disabled)":W2(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()}}}}}},I$=(e,t,r)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":r}}),fV=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),dV=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),pV=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Hv=(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"},I$(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),mV=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},pV(e))}),gV=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Uv=(e,t,r,n)=>{let i=n&&["link","text"].includes(n)?gV:mV;return Object.assign(Object.assign({},i(e)),I$(e.componentCls,t,r))},qv=(e,t,r,n,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:r},Uv(e,n,o))}),Gv=(e,t,r,n,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:r},Uv(e,n,o))}),Kv=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Xv=(e,t,r,n)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},Uv(e,r,n))}),Yi=(e,t,r,n,o)=>({[`&${e.componentCls}-variant-${r}`]:Object.assign({color:t,boxShadow:"none"},Uv(e,n,o,r))}),hV=e=>{let{componentCls:t}=e;return Ro.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`]},qv(e,e.colorTextLightSolid,o,{background:a},{background:c})),Gv(e,o,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),Kv(e)),Xv(e,i,{background:s},{background:l})),Yi(e,o,"link",{color:a},{color:c})),Yi(e,o,"text",{color:a,background:i},{color:c,background:l}))})},{})},vV=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},qv(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),Kv(e)),Xv(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),Hv(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Yi(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),yV=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},Gv(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Kv(e)),Xv(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),Yi(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Yi(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),Hv(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),xV=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},qv(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),Gv(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Kv(e)),Xv(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),Yi(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Yi(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Hv(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),bV=e=>Object.assign(Object.assign({},Yi(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),Hv(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),SV=e=>{let{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:vV(e),[`${t}-color-primary`]:yV(e),[`${t}-color-dangerous`]:xV(e),[`${t}-color-link`]:bV(e)},hV(e))},CV=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Gv(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Yi(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),qv(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Yi(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Bw=(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:`${ie(l)} ${ie(a)}`,borderRadius:i,[`&${r}-icon-only`]:{width:n,[s]:{fontSize:c}}}},{[`${r}${r}-circle${t}`]:fV(e)},{[`${r}${r}-round${t}`]:dV(e)}]},wV=e=>{let t=ft(e,{fontSize:e.contentFontSize});return Bw(t,e.componentCls)},EV=e=>{let t=ft(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Bw(t,`${e.componentCls}-sm`)},RV=e=>{let t=ft(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Bw(t,`${e.componentCls}-lg`)},OV=e=>{let{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},D$=Gt("Button",e=>{let t=jv(e);return[uV(t),wV(t),EV(t),RV(t),OV(t),SV(t),CV(t),JD(t)]},Vv,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function _V(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 PV(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({},_V(e,n,t)),PV(r,n,t))}}function TV(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 NV(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 $$(e){let t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},TV(e,t)),NV(e.componentCls,t))}}var IV=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))},A$=nw(["Button","compact"],e=>{let t=jv(e);return[Ms(t),$$(t),IV(t)]},Vv);var DV=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:d,disabled:m,className:h,rootClassName:v,children:y,icon:g,iconPosition:p="start",ghost:x=!1,block:b=!1,htmlType:S="button",classNames:w,style:C={},autoInsertSpace:R,autoFocus:P}=e,O=DV(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),I=l||"default",{button:D}=Wt.default.useContext(ot),[$,L]=(0,Wt.useMemo)(()=>{if(a&&s)return[a,s];if(l||c){let Te=AV[I]||[];return c?["danger",Te[1]]:Te}return D?.color&&D?.variant?[D.color,D.variant]:["default","outlined"]},[l,a,s,c,D?.variant,D?.color]),M=$==="danger"?"dangerous":$,{getPrefixCls:W,direction:B,autoInsertSpace:K,className:G,style:V,classNames:H,styles:j}=oo("button"),k=(r=R??K)!==null&&r!==void 0?r:!0,z=W("btn",i),[U,oe,Q]=D$(z),X=(0,Wt.useContext)(Hr),se=m??X,Z=(0,Wt.useContext)(Pw),q=(0,Wt.useMemo)(()=>$V(o),[o]),[J,re]=(0,Wt.useState)(q.loading),[ee,te]=(0,Wt.useState)(!1),de=(0,Wt.useRef)(null),fe=xi(t,de),ue=Wt.Children.count(y)===1&&!g&&!Av(L),Ce=(0,Wt.useRef)(!0);Wt.default.useEffect(()=>(Ce.current=!1,()=>{Ce.current=!0}),[]),(0,Wt.useEffect)(()=>{let Te=null;q.delay>0?Te=setTimeout(()=>{Te=null,re(!0)},q.delay):re(q.loading);function he(){Te&&(clearTimeout(Te),Te=null)}return he},[q]),(0,Wt.useEffect)(()=>{if(!de.current||!k)return;let Te=de.current.textContent||"";ue&&$v(Te)?ee||te(!0):ee&&te(!1)}),(0,Wt.useEffect)(()=>{P&&de.current&&de.current.focus()},[]);let we=Wt.default.useCallback(Te=>{var he;if(J||se){Te.preventDefault();return}(he=e.onClick)===null||he===void 0||he.call(e,("href"in e,Te))},[e.onClick,J,se]),{compactSize:_e,compactItemClassnames:ve}=Xo(z,B),Y={large:"lg",small:"sm",middle:void 0},Ee=so(Te=>{var he,Ze;return(Ze=(he=f??_e)!==null&&he!==void 0?he:Z)!==null&&Ze!==void 0?Ze:Te}),$e=Ee&&(n=Y[Ee])!==null&&n!==void 0?n:"",et=J?"loading":g,ke=qr(O,["navigate"]),Se=(0,Yv.default)(z,oe,Q,{[`${z}-${u}`]:u!=="default"&&u,[`${z}-${I}`]:I,[`${z}-dangerous`]:c,[`${z}-color-${M}`]:M,[`${z}-variant-${L}`]:L,[`${z}-${$e}`]:$e,[`${z}-icon-only`]:!y&&y!==0&&!!et,[`${z}-background-ghost`]:x&&!Av(L),[`${z}-loading`]:J,[`${z}-two-chinese-chars`]:ee&&k&&!J,[`${z}-block`]:b,[`${z}-rtl`]:B==="rtl",[`${z}-icon-end`]:p==="end"},ve,h,v,G),Be=Object.assign(Object.assign({},V),C),Fe=(0,Yv.default)(w?.icon,H.icon),Ue=Object.assign(Object.assign({},d?.icon||{}),j.icon||{}),Re=g&&!J?Wt.default.createElement(Bd,{prefixCls:z,className:Fe,style:Ue},g):o&&typeof o=="object"&&o.icon?Wt.default.createElement(Bd,{prefixCls:z,className:Fe,style:Ue},o.icon):Wt.default.createElement(YD,{existIcon:!!g,prefixCls:z,loading:J,mount:Ce.current}),ae=y||y===0?GD(y,ue&&k):null;if(ke.href!==void 0)return U(Wt.default.createElement("a",Object.assign({},ke,{className:(0,Yv.default)(Se,{[`${z}-disabled`]:se}),href:se?void 0:ke.href,style:Be,onClick:we,ref:fe,tabIndex:se?-1:0}),Re,ae));let ge=Wt.default.createElement("button",Object.assign({},O,{type:S,className:Se,style:Be,onClick:we,disabled:se,ref:fe}),Re,ae,ve&&Wt.default.createElement(A$,{prefixCls:z}));return Av(L)||(ge=Wt.default.createElement(Dv,{component:"Button",disabled:J},ge)),U(ge)}),jw=kV;jw.Group=HD;jw.__ANT_BUTTON=!0;var k$=jw;var jd=k$;var Qo=E(N()),H$=E(Ui());var M$=E(N()),MV=M$.createContext(null),Qv=MV;var zl=E(N());var F$=[];function Vw(e,t){var r=zl.useState(function(){if(!Yt())return null;var h=document.createElement("div");return h}),n=F(r,1),o=n[0],i=zl.useRef(!1),a=zl.useContext(Qv),s=zl.useState(F$),l=F(s,2),c=l[0],u=l[1],f=a||(i.current?void 0:function(h){u(function(v){var y=[h].concat(ne(v));return y})});function d(){o.parentElement||document.body.appendChild(o),i.current=!0}function m(){var h;(h=o.parentElement)===null||h===void 0||h.removeChild(o),i.current=!1}return yt(function(){return e?a?a(d):d():m(),m},[e]),yt(function(){c.length&&(c.forEach(function(h){return h()}),u(F$))},[c]),[o,f]}var B$=E(N());function FV(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 d=e&&o&&!isNaN(o)?o:r.offsetWidth-r.clientWidth,m=e&&i&&!isNaN(i)?i:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),Gi(t),{width:d,height:m}}function L$(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:FV(e)}function z$(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var LV="rc-util-locker-".concat(Date.now()),W$=0;function Hw(e){var t=!!e,r=B$.useState(function(){return W$+=1,"".concat(LV,"_").concat(W$)}),n=F(r,1),o=n[0];yt(function(){if(t){var i=L$(document.body).width,a=z$();yn(` html body { overflow-y: hidden; `.concat(a?"width: calc(100% - ".concat(i,"px);"):"",` }`),o)}else Gi(o);return function(){Gi(o)}},[t,o])}var j$=!1;function Uw(e){return typeof e=="boolean"&&(j$=e),j$}var V$=function(t){return t===!1?!1:!Yt()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},zV=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=F(c,2),f=u[0],d=u[1],m=f||r;Qo.useEffect(function(){(s||r)&&d(r)},[r,s]);var h=Qo.useState(function(){return V$(o)}),v=F(h,2),y=v[0],g=v[1];Qo.useEffect(function(){var D=V$(o);g(D??null)});var p=Vw(m&&!y,i),x=F(p,2),b=x[0],S=x[1],w=y??b;Hw(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(!m||!Yt()||y===void 0)return null;var O=w===!1||Uw(),I=l;return t&&(I=Qo.cloneElement(l,{ref:P})),Qo.createElement(Qv.Provider,{value:S},O?I:(0,H$.createPortal)(I,w))}),U$=zV;var qw=U$;var Vd=E(N());function WV(){var e=T({},Vd);return e.useId}var q$=0;var G$=WV(),Jv=G$?function(t){var r=G$();return t||r}:function(t){var r=Vd.useState("ssr-id"),n=F(r,2),o=n[0],i=n[1];return Vd.useEffect(function(){var a=q$;q$+=1,i("rc_unique_".concat(a))},[]),t||o};var s1=E(N());var ka=E(N());var FA=E(N());var Gn=E(N());var K$=E(N()),Oi="RC_FORM_INTERNAL_HOOKS",Kt=function(){Vt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},BV=K$.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=BV;var X$=E(N()),jV=X$.createContext(null),Fs=jV;function Hd(e){return e==null?[]:Array.isArray(e)?e:[e]}function Y$(e){return e&&!!e._init}function Zv(){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 ey=Zv();function Q$(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function J$(e,t,r){if(yd())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 ty(e){var t=typeof Map=="function"?new Map:void 0;return ty=function(n){if(n===null||!Q$(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 J$(n,arguments,Ol(this).constructor)}return o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Ss(o,n)},ty(e)}var VV=/%[sdj%]/g,tA=function(){};typeof process<"u"&&process.env;function ry(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 Gr(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 HV(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function At(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||HV(t)&&typeof e=="string"&&!e)}function UV(e,t,r){var n=[],o=0,i=e.length;function a(s){n.push.apply(n,ne(s||[])),o++,o===i&&r(n)}e.forEach(function(s){t(s,a)})}function Z$(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(Gr(i.messages[f].max,t.fullField,t.max)):s&&l&&(ut.max)&&o.push(Gr(i.messages[f].range,t.fullField,t.min,t.max))},iA=QV;var JV=function(t,r,n,o,i,a){t.required&&(!n.hasOwnProperty(t.field)||At(r,a||t.type))&&o.push(Gr(i.messages.required,t.fullField))},ny=JV;var oy,aA=function(){if(oy)return oy;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]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",m=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]+)*",g="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",p="(?::\\d{2,5})?",x='(?:[/?#][^\\s"]*)?',b="(?:".concat(f,"|www\\.)").concat(d,"(?:localhost|").concat(m,"|").concat(h,"|").concat(v).concat(y).concat(g,")").concat(p).concat(x);return oy=new RegExp("(?:^".concat(b,"$)"),"i"),oy};var sA={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},Ud={integer:function(t){return Ud.number(t)&&parseInt(t,10)===t},float:function(t){return Ud.number(t)&&!Ud.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 ce(t)==="object"&&!Ud.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(sA.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(aA())},hex:function(t){return typeof t=="string"&&!!t.match(sA.hex)}},ZV=function(t,r,n,o,i){if(t.required&&r===void 0){ny(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?Ud[s](r)||o.push(Gr(i.messages.types[s],t.fullField,t.type)):s&&ce(r)!==t.type&&o.push(Gr(i.messages.types[s],t.fullField,t.type))},lA=ZV;var eH=function(t,r,n,o,i){(/^\s+$/.test(r)||r==="")&&o.push(Gr(i.messages.whitespace,t.fullField))},cA=eH;var it={required:ny,whitespace:cA,type:lA,range:iA,enum:nA,pattern:oA};var tH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(At(r)&&!t.required)return n();it.required(t,r,o,a,i)}n(a)},uA=tH;var rH=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();it.required(t,r,o,a,i,"array"),r!=null&&(it.type(t,r,o,a,i),it.range(t,r,o,a,i))}n(a)},fA=rH;var nH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(At(r)&&!t.required)return n();it.required(t,r,o,a,i),r!==void 0&&it.type(t,r,o,a,i)}n(a)},dA=nH;var oH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(At(r,"date")&&!t.required)return n();if(it.required(t,r,o,a,i),!At(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),it.type(t,l,o,a,i),l&&it.range(t,l.getTime(),o,a,i)}}n(a)},pA=oH;var iH="enum",aH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(At(r)&&!t.required)return n();it.required(t,r,o,a,i),r!==void 0&&it[iH](t,r,o,a,i)}n(a)},mA=aH;var sH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(At(r)&&!t.required)return n();it.required(t,r,o,a,i),r!==void 0&&(it.type(t,r,o,a,i),it.range(t,r,o,a,i))}n(a)},gA=sH;var lH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(At(r)&&!t.required)return n();it.required(t,r,o,a,i),r!==void 0&&(it.type(t,r,o,a,i),it.range(t,r,o,a,i))}n(a)},hA=lH;var cH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(At(r)&&!t.required)return n();it.required(t,r,o,a,i),r!==void 0&&it.type(t,r,o,a,i)}n(a)},vA=cH;var uH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),At(r)&&!t.required)return n();it.required(t,r,o,a,i),r!==void 0&&(it.type(t,r,o,a,i),it.range(t,r,o,a,i))}n(a)},yA=uH;var fH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(At(r)&&!t.required)return n();it.required(t,r,o,a,i),r!==void 0&&it.type(t,r,o,a,i)}n(a)},xA=fH;var dH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(At(r,"string")&&!t.required)return n();it.required(t,r,o,a,i),At(r,"string")||it.pattern(t,r,o,a,i)}n(a)},bA=dH;var pH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(At(r)&&!t.required)return n();it.required(t,r,o,a,i),At(r)||it.type(t,r,o,a,i)}n(a)},SA=pH;var mH=function(t,r,n,o,i){var a=[],s=Array.isArray(r)?"array":ce(r);it.required(t,r,o,a,i,s),n(a)},CA=mH;var gH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(At(r,"string")&&!t.required)return n();it.required(t,r,o,a,i,"string"),At(r,"string")||(it.type(t,r,o,a,i),it.range(t,r,o,a,i),it.pattern(t,r,o,a,i),t.whitespace===!0&&it.whitespace(t,r,o,a,i))}n(a)},wA=gH;var hH=function(t,r,n,o,i){var a=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(At(r,a)&&!t.required)return n();it.required(t,r,o,s,i,a),At(r,a)||it.type(t,r,o,s,i)}n(s)},iy=hH;var bu={string:wA,method:vA,number:yA,boolean:dA,regexp:SA,integer:hA,float:gA,array:fA,object:xA,enum:mA,pattern:bA,date:pA,url:iy,hex:iy,email:iy,required:CA,any:uA};var qd=function(){function e(t){at(this,e),_(this,"rules",null),_(this,"_messages",ey),this.define(t)}return st(e,[{key:"define",value:function(r){var n=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(ce(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=Kw(Zv(),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 g(x){if(Array.isArray(x)){var b;v=(b=v).concat.apply(b,ne(x))}else v.push(x)}for(var p=0;p0&&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(Gw(y,a));if(s.first&&P.length)return m[y.field]=1,v(P);if(!g)v(P);else{if(y.required&&!h.value)return y.message!==void 0?P=[].concat(y.message).map(Gw(y,a)):s.error&&(P=[s.error(y,Gr(s.messages.required,y.field))]),v(P);var O={};y.defaultField&&Object.keys(h.value).map(function($){O[$]=y.defaultField}),O=T(T({},O),h.rule.fields);var I={};Object.keys(O).forEach(function($){var L=O[$],A=Array.isArray(L)?L:[L];I[$]=A.map(p.bind(null,$))});var D=new e(I);D.messages(s.messages),h.rule.options&&(h.rule.options.messages=s.messages,h.rule.options.error=s.error),D.validate(h.value,h.rule.options||s,function($){var L=[];P&&P.length&&L.push.apply(L,ne(P)),$&&$.length&&L.push.apply(L,ne($)),v(L.length?L: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&&!bu.hasOwnProperty(r.type))throw new Error(Gr("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"?bu.required:bu[this.getType(r)]||void 0}}]),e}();_(qd,"register",function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");bu[t]=r});_(qd,"warning",tA);_(qd,"messages",ey);_(qd,"validators",bu);var EA=qd;var sy=E(N());var Oo="'${name}' is not a valid ${type}",ay={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:Oo,method:Oo,array:Oo,object:Oo,number:Oo,date:Oo,boolean:Oo,integer:Oo,float:Oo,regexp:Oo,email:Oo,url:Oo,hex:Oo},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 RA=EA;function vH(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 OA="CODE_LOGIC_ERROR";function Xw(e,t,r,n,o){return Yw.apply(this,arguments)}function Yw(){return Yw=Ur(Et().mark(function e(t,r,n,o,i){var a,s,l,c,u,f,d,m,h;return Et().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return a=T({},n),delete a.ruleIndex,RA.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(g){return console.error(g),Promise.reject(OA)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new RA(_({},t,[a])),u=wa(ay,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(g,p){var x=g.message,b=x===OA?u.default:x;return sy.isValidElement(b)?sy.cloneElement(b,{key:"error_".concat(p)}):b}));case 18:if(!(!f.length&&l)){y.next=23;break}return y.next=21,Promise.all(r.map(function(g,p){return Xw("".concat(t,".").concat(p),g,l,o,i)}));case 21:return d=y.sent,y.abrupt("return",d.reduce(function(g,p){return[].concat(ne(g),ne(p))},[]));case 23:return m=T(T({},n),{},{name:t,enum:(n.enum||[]).join(", ")},i),h=f.map(function(g){return typeof g=="string"?vH(g,m):g}),y.abrupt("return",h);case 26:case"end":return y.stop()}},e,null,[[10,15]])})),Yw.apply(this,arguments)}function _A(e,t,r,n,o,i){var a=e.join("."),s=r.map(function(u,f){var d=u.validator,m=T(T({},u),{},{ruleIndex:f});return d&&(m.validator=function(h,v,y){var g=!1,p=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 e1(t,n,r)})}function e1(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 PA(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||ce(e)!=="object"||ce(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),o=new Set([].concat(r,n));return ne(o).every(function(i){var a=e[i],s=t[i];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function TA(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&ce(t.target)==="object"&&e in t.target?t.target[e]:t}function t1(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(ne(e.slice(0,r)),[o],ne(e.slice(r,t)),ne(e.slice(t+1,n))):i<0?[].concat(ne(e.slice(0,t)),ne(e.slice(t+1,r+1)),[o],ne(e.slice(r+1,n))):e}var bH=["name"],Jo=[];function r1(e,t,r,n,o,i){return typeof e=="function"?e(t,r,"source"in i?{source:i.source}:{}):n!==o}var n1=function(e){$r(r,e);var t=Ar(r);function r(n){var o;if(at(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,ur(f)),o.cancelRegisterFunc=null}),_(Ye(o),"getNamePath",function(){var l=o.props,c=l.name,u=l.fieldContext,f=u.prefixName,d=f===void 0?[]:f;return c!==void 0?[].concat(ne(d),ne(c)):[]}),_(Ye(o),"getRules",function(){var l=o.props,c=l.rules,u=c===void 0?[]:c,f=l.fieldContext;return u.map(function(d){return typeof d=="function"?d(f):d})}),_(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,d=f.shouldUpdate,m=f.dependencies,h=m===void 0?[]:m,v=f.onReset,y=u.store,g=o.getNamePath(),p=o.getValue(l),x=o.getValue(y),b=c&&Ls(c,g);switch(u.type==="valueUpdate"&&u.source==="external"&&!ws(p,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(d&&r1(d,l,y,p,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,g,!0)){o.reRender();return}if(d&&!g.length&&r1(d,l,y,p,x,u)){o.reRender();return}break}case"dependenciesUpdate":{var w=h.map(ur);if(w.some(function(C){return Ls(u.relatedFields,C)})){o.reRender();return}break}default:if(b||(!h.length||g.length||d)&&r1(d,l,y,p,x,u)){o.reRender();return}break}d===!0&&o.reRender()}),_(Ye(o),"validateRules",function(l){var c=o.getNamePath(),u=o.getValue(),f=l||{},d=f.triggerName,m=f.validateOnly,h=m===void 0?!1:m,v=Promise.resolve().then(Ur(Et().mark(function y(){var g,p,x,b,S,w,C;return Et().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(g=o.props,p=g.validateFirst,x=p===void 0?!1:p,b=g.messageVariables,S=g.validateDebounce,w=o.getRules(),d&&(w=w.filter(function(O){return O}).filter(function(O){var I=O.validateTrigger;if(!I)return!0;var D=Hd(I);return D.includes(d)})),!(S&&d)){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=_A(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 I;o.validatePromise=null;var D=[],$=[];(I=O.forEach)===null||I===void 0||I.call(O,function(L){var A=L.rule.warningOnly,M=L.errors,W=M===void 0?Jo:M;A?$.push.apply($,ne(W)):D.push.apply(D,ne(W))}),o.errors=D,o.warnings=$,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,d=c.validateTrigger,m=c.getValueFromEvent,h=c.normalize,v=c.valuePropName,y=c.getValueProps,g=c.fieldContext,p=d!==void 0?d:g.validateTrigger,x=o.getNamePath(),b=g.getInternalHooks,S=g.getFieldsValue,w=b(Oi),C=w.dispatch,R=o.getValue(),P=y||function(L){return _({},v,L)},O=l[f],I=u!==void 0?P(R):{},D=T(T({},l),I);D[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var L,A=arguments.length,M=new Array(A),W=0;W=0&&O<=I.length?(u.keys=[].concat(ne(u.keys.slice(0,O)),[u.id],ne(u.keys.slice(O))),x([].concat(ne(I.slice(0,O)),[P],ne(I.slice(O))))):(u.keys=[].concat(ne(u.keys),[u.id]),x([].concat(ne(I),[P]))),u.id+=1},remove:function(P){var O=S(),I=new Set(Array.isArray(P)?P:[P]);I.size<=0||(u.keys=u.keys.filter(function(D,$){return!I.has($)}),x(O.filter(function(D,$){return!I.has($)})))},move:function(P,O){if(P!==O){var I=S();P<0||P>=I.length||O<0||O>=I.length||(u.keys=t1(u.keys,P,O),x(t1(I,P,O)))}}},C=p||[];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 NA=CH;var cy=E(N());function IA(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 DA="__@field_split__";function o1(e){return e.map(function(t){return"".concat(ce(t),":").concat(t)}).join(DA)}var wH=function(){function e(){at(this,e),_(this,"kvs",new Map)}return st(e,[{key:"set",value:function(r,n){this.kvs.set(o1(r),n)}},{key:"get",value:function(r){return this.kvs.get(o1(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(o1(r))}},{key:"map",value:function(r){return ne(this.kvs.entries()).map(function(n){var o=F(n,2),i=o[0],a=o[1],s=i.split(DA);return r({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=F(c,3),f=u[1],d=u[2];return f==="number"?Number(d):d}),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}(),Wl=wH;var EH=["name"],RH=st(function e(t){var r=this;at(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=wa(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 Wl;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?wa(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 Wl;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=ur(i);return o.get(a)||{INVALIDATE_NAME_PATH:ur(i)}})}),_(this,"getFieldsValue",function(n,o){r.warningUnhooked();var i,a,s;if(n===!0||Array.isArray(n)?(i=n,a=o):n&&ce(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,d,m="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=(d=u).isListField)!==null&&f!==void 0&&f.call(d))return;if(!a)c.push(m);else{var y="getMeta"in u?u.getMeta():null;a(y)&&c.push(m)}}),Zw(r.store,c.map(ur))}),_(this,"getFieldValue",function(n){r.warningUnhooked();var o=ur(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:ur(n[a]),errors:[],warnings:[]}})}),_(this,"getFieldError",function(n){r.warningUnhooked();var o=ur(n),i=r.getFieldsError([o])[0];return i.errors}),_(this,"getFieldWarning",function(n){r.warningUnhooked();var o=ur(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 Wl,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 d=u.getNamePath(),m=r.getInitialValue(d);if(m!==void 0)Vt(!1,"Form already set 'initialValues' with path '".concat(d.join("."),"'. Field can not overwrite it."));else{var h=o.get(d);if(h&&h.size>1)Vt(!1,"Multiple Field with path '".concat(d.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var v=r.getFieldValue(d),y=u.isListField();!y&&(!n.skipExist||v===void 0)&&r.updateStore(qn(r.store,d,ne(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,ne(ne(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(wa(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(o,null,{type:"reset"}),r.notifyWatch();return}var i=n.map(ur);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=He(a,EH),c=ur(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!e1(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(ne(i))}),i}),_(this,"updateValue",function(n,o){var i=ur(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=Zw(r.store,[i]);l(c,r.getFieldsValue())}r.triggerOnFieldsChange([i].concat(ne(s)))}),_(this,"setFieldsValue",function(n){r.warningUnhooked();var o=r.store;if(n){var i=wa(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 Wl;r.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var f=ur(u);a.update(f,function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return d.add(l),d})})});var s=function l(c){var u=a.get(c)||new Set;u.forEach(function(f){if(!o.has(f)){o.add(f);var d=f.getNamePath();f.isFieldDirty()&&d.length&&(i.push(d),l(d))}})};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 Wl;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(ur):[],c=[],u=String(Date.now()),f=new Set,d=a||{},m=d.recursive,h=d.dirty;r.getFieldEntities(!0).forEach(function(p){if(s||l.push(p.getNamePath()),!(!p.props.rules||!p.props.rules.length)&&!(h&&!p.isFieldDirty())){var x=p.getNamePath();if(f.add(x.join(u)),!s||Ls(l,x,m)){var b=p.validateRules(T({validateMessages:T(T({},ay),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,I=P.errors;O?R.push.apply(R,ne(I)):C.push.apply(C,ne(I))}),C.length?Promise.reject({name:x,errors:C,warnings:R}):{name:x,errors:C,warnings:R}}))}}});var v=IA(c);r.lastValidatePromise=v,v.catch(function(p){return p}).then(function(p){var x=p.map(function(b){var S=b.name;return S});r.notifyObservers(r.store,x,{type:"validateFinish"}),r.triggerOnFieldsChange(x,p)});var y=v.then(function(){return r.lastValidatePromise===v?Promise.resolve(r.getFieldsValue(l)):Promise.reject([])}).catch(function(p){var x=p.filter(function(b){return b&&b.errors.length});return Promise.reject({values:r.getFieldsValue(l),errorFields:x,outOfDate:r.lastValidatePromise!==v})});y.catch(function(p){return p});var g=l.filter(function(p){return f.has(p.join(u))});return r.triggerOnFieldsChange(g),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 OH(e){var t=cy.useRef(),r=cy.useState({}),n=F(r,2),o=n[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},a=new RH(i);t.current=a.getForm()}return[t.current]}var uy=OH;var un=E(N());var zs=E(N()),i1=zs.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),a1=function(t){var r=t.validateMessages,n=t.onFormChange,o=t.onFormFinish,i=t.children,a=zs.useContext(i1),s=zs.useRef({});return zs.createElement(i1.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 $A=i1;var _H=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],PH=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,d=t.validateTrigger,m=d===void 0?"onChange":d,h=t.onValuesChange,v=t.onFieldsChange,y=t.onFinish,g=t.onFinishFailed,p=t.clearOnDestroy,x=He(t,_H),b=un.useRef(null),S=un.useContext($A),w=uy(a),C=F(w,1),R=C[0],P=R.getInternalHooks(Oi),O=P.useSubscribe,I=P.setInitialValues,D=P.setCallbacks,$=P.setValidateMessages,L=P.setPreserve,A=P.destroyForm;un.useImperativeHandle(r,function(){return T(T({},R),{},{nativeElement:b.current})}),un.useEffect(function(){return S.registerForm(n,R),function(){S.unregisterForm(n)}},[S,R,n]),$(T(T({},S.validateMessages),f)),D({onValuesChange:h,onFieldsChange:function(k){if(S.triggerFormChange(n,k),v){for(var z=arguments.length,U=new Array(z>1?z-1:0),oe=1;oe{let n=ka.useContext(fn),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(fn.Provider,{value:o},e)},zA=ka.createContext(void 0);var DH=e=>{let{space:t,form:r,children:n}=e;if(n==null)return null;let o=n;return r&&(o=s1.default.createElement(LA,{override:!0,status:!0},o)),t&&(o=s1.default.createElement(jD,null,o)),o},Ws=DH;var lo=E(N());function $H(e){return t=>lo.createElement(Da,{theme:{token:{motion:!1,zIndexPopupBase:0}}},lo.createElement(e,Object.assign({},t)))}var AH=(e,t,r,n,o)=>$H(a=>{let{prefixCls:s,style:l}=a,c=lo.useRef(null),[u,f]=lo.useState(0),[d,m]=lo.useState(0),[h,v]=sr(!1,{value:a.open}),{getPrefixCls:y}=lo.useContext(ot),g=y(n||"select",s);lo.useEffect(()=>{if(v(!0),typeof ResizeObserver<"u"){let b=new ResizeObserver(w=>{let C=w[0].target;f(C.offsetHeight+8),m(C.offsetWidth)}),S=setInterval(()=>{var w;let C=o?`.${o(g)}`:`.${g}-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 p=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},l),{margin:0}),open:h,visible:h,getPopupContainer:()=>c.current});return r&&(p=r(p)),t&&Object.assign(p,{[t]:{overflow:{adjustX:!1,adjustY:!1}}}),lo.createElement("div",{ref:c,style:{paddingBottom:u,position:"relative",minWidth:d}},lo.createElement(e,Object.assign({},p)))}),WA=AH;var ni=E(N()),Z1=E(Ne());var dr=E(N());var _1=E(Ne());var Su=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(N());var l1=E(N()),BA=E(Ne()),kH=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 l1.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:l1.createElement("span",{className:(0,BA.default)(r.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},i))},Bs=kH;var fy=E(N()),jA=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=fy.default.useMemo(function(){if(ce(o)==="object")return o.clearIcon;if(i)return i},[o,i]),u=fy.default.useMemo(function(){return!!(!a&&o&&(n.length||s)&&!(l==="combobox"&&s===""))},[o,a,n.length,s,l]);return{allowClear:u,clearIcon:fy.default.createElement(Bs,{className:"".concat(t,"-clear"),onMouseDown:r,customizeIcon:c},"\xD7")}};var dy=E(N()),c1=dy.createContext(null);function py(){return dy.useContext(c1)}var Cu=E(N());function u1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=Cu.useState(!1),r=F(t,2),n=r[0],o=r[1],i=Cu.useRef(null),a=function(){window.clearTimeout(i.current)};Cu.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 Kd=E(N());function Xd(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=Kd.useRef(null),r=Kd.useRef(null);Kd.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 my=E(N());function f1(e,t,r,n){var o=my.useRef(null);o.current={open:t,triggerOpen:r,customizedTrigger:n},my.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 Ma=E(N()),xy=E(N());function VA(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 Po=E(N()),m1=E(N()),uk=E(Ne());var Zo=E(N()),Qi=E(N()),JA=E(Ne());var Bl=E(N()),HA=E(Ne());var MH=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],wu=void 0;function FH(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,d=e.children,m=e.display,h=e.order,v=e.component,y=v===void 0?"div":v,g=He(e,MH),p=a&&!m;function x(R){l(c,R)}Bl.useEffect(function(){return function(){x(null)}},[]);var b=i&&o!==wu?i(o,{index:h}):d,S;n||(S={opacity:p?0:1,height:p?0:wu,overflowY:p?"hidden":wu,order:a?h:wu,pointerEvents:p?"none":wu,position:p?"absolute":wu});var w={};p&&(w["aria-hidden"]=!0);var C=Bl.createElement(y,le({className:(0,HA.default)(!n&&r,u),style:T(T({},S),f)},w,g,{ref:t}),b);return a&&(C=Bl.createElement(no,{onResize:function(P){var O=P.offsetWidth;x(O)},disabled:s},C)),C}var UA=Bl.forwardRef(FH);UA.displayName="Item";var Eu=UA;var gy=E(N()),qA=E(Ui());function d1(e){if(typeof MessageChannel>"u")dt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function GA(){var e=gy.useRef(null),t=function(n){e.current||(e.current=[],d1(function(){(0,qA.unstable_batchedUpdates)(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(n)};return t}function jl(e,t){var r=gy.useState(t),n=F(r,2),o=n[0],i=n[1],a=wt(function(s){e(function(){i(s)})});return[o,a]}var js=E(N()),XA=E(Ne());var KA=E(N()),Vl=KA.default.createContext(null);var LH=["component"],zH=["className"],WH=["className"],BH=function(t,r){var n=js.useContext(Vl);if(!n){var o=t.component,i=o===void 0?"div":o,a=He(t,LH);return js.createElement(i,le({},a,{ref:r}))}var s=n.className,l=He(n,zH),c=t.className,u=He(t,WH);return js.createElement(Vl.Provider,{value:null},js.createElement(Eu,le({ref:r,className:(0,XA.default)(s,c)},l,u)))},YA=js.forwardRef(BH);YA.displayName="RawItem";var QA=YA;var jH=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],ZA="responsive",ek="invalidate";function VH(e){return"+ ".concat(e.length," ...")}function HH(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,d=e.style,m=e.className,h=e.maxCount,v=e.renderRest,y=e.renderRawRest,g=e.suffix,p=e.component,x=p===void 0?"div":p,b=e.itemComponent,S=e.onVisibleChange,w=He(e,jH),C=f==="full",R=GA(),P=jl(R,null),O=F(P,2),I=O[0],D=O[1],$=I||0,L=jl(R,new Map),A=F(L,2),M=A[0],W=A[1],B=jl(R,0),K=F(B,2),G=K[0],V=K[1],H=jl(R,0),j=F(H,2),k=j[0],z=j[1],U=jl(R,0),oe=F(U,2),Q=oe[0],X=oe[1],se=(0,Qi.useState)(null),Z=F(se,2),q=Z[0],J=Z[1],re=(0,Qi.useState)(null),ee=F(re,2),te=ee[0],de=ee[1],fe=Zo.useMemo(function(){return te===null&&C?Number.MAX_SAFE_INTEGER:te||0},[te,I]),ue=(0,Qi.useState)(!1),Ce=F(ue,2),we=Ce[0],_e=Ce[1],ve="".concat(n,"-item"),Y=Math.max(G,k),Ee=h===ZA,$e=i.length&&Ee,et=h===ek,ke=$e||typeof h=="number"&&i.length>h,Se=(0,Qi.useMemo)(function(){var Me=i;return $e?I===null&&C?Me=i:Me=i.slice(0,Math.min(i.length,$/u)):typeof h=="number"&&(Me=i.slice(0,h)),Me},[i,u,I,h,$e]),Be=(0,Qi.useMemo)(function(){return $e?i.slice(fe+1):i.slice(Se.length)},[i,Se,$e,fe]),Fe=(0,Qi.useCallback)(function(Me,Ve){var xe;return typeof l=="function"?l(Me):(xe=l&&Me?.[l])!==null&&xe!==void 0?xe:Ve},[l]),Ue=(0,Qi.useCallback)(a||function(Me){return Me},[a]);function Re(Me,Ve,xe){te===Me&&(Ve===void 0||Ve===q)||(de(Me),xe||(_e(Me$){Re(nt-1,Me-Tt-Q+k);break}}g&&Ze(0)+Q>$&&J(null)}},[$,M,k,Q,Fe,Se]);var ct=we&&!!Be.length,_t={};q!==null&&$e&&(_t={position:"absolute",left:q,top:0});var Pt={prefixCls:ve,responsive:$e,component:b,invalidate:et},mt=s?function(Me,Ve){var xe=Fe(Me,Ve);return Zo.createElement(Vl.Provider,{key:xe,value:T(T({},Pt),{},{order:Ve,item:Me,itemKey:xe,registerSize:ge,display:Ve<=fe})},s(Me,Ve))}:function(Me,Ve){var xe=Fe(Me,Ve);return Zo.createElement(Eu,le({},Pt,{order:Ve,key:xe,item:Me,renderItem:Ue,itemKey:xe,registerSize:ge,display:Ve<=fe}))},je={order:ct?fe:Number.MAX_SAFE_INTEGER,className:"".concat(ve,"-rest"),registerSize:Te,display:ct},Pe=v||VH,qe=y?Zo.createElement(Vl.Provider,{value:T(T({},Pt),je)},y(Be)):Zo.createElement(Eu,le({},Pt,je),typeof Pe=="function"?Pe(Be):Pe),Oe=Zo.createElement(x,le({className:(0,JA.default)(!et&&n,m),style:d,ref:t},w),Se.map(mt),ke?qe:null,g&&Zo.createElement(Eu,le({},Pt,{responsive:Ee,responsiveDisabled:!$e,order:fe,className:"".concat(ve,"-suffix"),registerSize:he,display:!0,style:_t}),g));return Ee?Zo.createElement(no,{onResize:ae,disabled:!$e},Oe):Oe}var Yd=Zo.forwardRef(HH);Yd.displayName="Overflow";Yd.Item=QA;Yd.RESPONSIVE=ZA;Yd.INVALIDATE=ek;var tk=Yd;var rk=tk;var Ru=E(N()),ok=E(Ne());function UH(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&&(Ce="".concat(we.slice(0,x),"..."))}var _e=function(Y){Y&&Y.stopPropagation(),R(ee)};return typeof w=="function"?X(fe,Ce,te,ue,_e):Q(ee,Ce,te,ue,_e)},Z=function(ee){if(!o.length)return null;var te=typeof S=="function"?S(ee):S;return typeof w=="function"?X(void 0,te,!1,!1,void 0,!0):Q({title:te},te,!1)},q=Po.createElement("div",{className:"".concat(z,"-search"),style:{width:K},onFocus:function(){k(!0)},onBlur:function(){k(!1)}},Po.createElement(hy,{ref:l,open:i,prefixCls:n,id:r,inputElement:null,disabled:u,autoFocus:m,autoComplete:h,editable:oe,activeDescendantId:v,value:U,onKeyDown:I,onMouseDown:D,onChange:P,onPaste:O,onCompositionStart:$,onCompositionEnd:L,onBlur:A,tabIndex:y,attrs:qo(t,!0)}),Po.createElement("span",{ref:M,className:"".concat(z,"-search-mirror"),"aria-hidden":!0},U,"\xA0")),J=Po.createElement(rk,{prefixCls:"".concat(z,"-overflow"),data:o,renderItem:se,renderRest:Z,suffix:q,itemKey:YH,maxCount:p});return Po.createElement("span",{className:"".concat(z,"-wrap")},J,!o.length&&!U&&Po.createElement("span",{className:"".concat(z,"-placeholder")},c))},fk=QH;var ei=E(N());var JH=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,d=t.values,m=t.placeholder,h=t.tabIndex,v=t.showSearch,y=t.searchValue,g=t.activeValue,p=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,I=ei.useState(!1),D=F(I,2),$=D[0],L=D[1],A=u==="combobox",M=A||v,W=d[0],B=y||"";A&&g&&!$&&(B=g),ei.useEffect(function(){A&&L(!1)},[A,g]);var K=u!=="combobox"&&!f&&!v?!1:!!B,G=O===void 0?vy(W):O,V=ei.useMemo(function(){return W?null:ei.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:K?{visibility:"hidden"}:void 0},m)},[W,K,m,n]);return ei.createElement("span",{className:"".concat(n,"-selection-wrap")},ei.createElement("span",{className:"".concat(n,"-selection-search")},ei.createElement(hy,{ref:i,prefixCls:n,id:o,open:f,inputElement:r,disabled:a,autoFocus:s,autoComplete:l,editable:M,activeDescendantId:c,value:B,onKeyDown:x,onMouseDown:b,onChange:function(j){L(!0),S(j)},onPaste:w,onCompositionStart:C,onCompositionEnd:R,onBlur:P,tabIndex:h,attrs:qo(t,!0),maxLength:A?p:void 0})),!A&&W?ei.createElement("span",{className:"".concat(n,"-selection-item"),title:G,style:K?{visibility:"hidden"}:void 0},W.label):null,V)},dk=JH;var ZH=function(t,r){var n=(0,xy.useRef)(null),o=(0,xy.useRef)(!1),i=t.prefixCls,a=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,u=t.disabled,f=t.prefix,d=t.autoClearSearchValue,m=t.onSearch,h=t.onSearchSubmit,v=t.onToggleOpen,y=t.onInputKeyDown,g=t.onInputBlur,p=t.domRef;Ma.useImperativeHandle(r,function(){return{focus:function(G){n.current.focus(G)},blur:function(){n.current.blur()}}});var x=Xd(0),b=F(x,2),S=b[0],w=b[1],C=function(G){var V=G.which,H=n.current instanceof HTMLTextAreaElement;!H&&a&&(V===Qe.UP||V===Qe.DOWN)&&G.preventDefault(),y&&y(G),V===Qe.ENTER&&s==="tags"&&!o.current&&!a&&h?.(G.target.value),!(H&&!a&&~[Qe.UP,Qe.DOWN,Qe.LEFT,Qe.RIGHT].indexOf(V))&&VA(V)&&v(!0)},R=function(){w(!0)},P=(0,xy.useRef)(null),O=function(G){m(G,!0,o.current)!==!1&&v(!0)},I=function(){o.current=!0},D=function(G){o.current=!1,s!=="combobox"&&O(G.target.value)},$=function(G){var V=G.target.value;if(c&&P.current&&/[\r\n]/.test(P.current)){var H=P.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");V=V.replace(H,P.current)}P.current=null,O(V)},L=function(G){var V=G.clipboardData,H=V?.getData("text");P.current=H||""},A=function(G){var V=G.target;if(V!==n.current){var H=document.body.style.msTouchAction!==void 0;H?setTimeout(function(){n.current.focus()}):n.current.focus()}},M=function(G){var V=S();G.target!==n.current&&!V&&!(s==="combobox"&&u)&&G.preventDefault(),(s!=="combobox"&&(!l||!V)||!a)&&(a&&d!==!1&&m("",!0,!1),v())},W={inputRef:n,onInputKeyDown:C,onInputMouseDown:R,onInputChange:$,onInputPaste:L,onInputCompositionStart:I,onInputCompositionEnd:D,onInputBlur:g},B=s==="multiple"||s==="tags"?Ma.createElement(fk,le({},t,W)):Ma.createElement(dk,le({},t,W));return Ma.createElement("div",{ref:p,className:"".concat(i,"-selector"),onClick:A,onMouseDown:M},f&&Ma.createElement("div",{className:"".concat(i,"-prefix")},f),B)},e9=Ma.forwardRef(ZH),pk=e9;var Sy=E(Ne());var vt=E(N());var yk=E(Ne());var ti=E(N());var mk=E(Ne()),by=E(N());function g1(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,d=by.useRef();if(!r||!r.points)return null;var m={position:"absolute"};if(r.autoArrow!==!1){var h=r.points[0],v=r.points[1],y=h[0],g=h[1],p=v[0],x=v[1];y===p||!["t","b"].includes(y)?m.top=f:y==="t"?m.top=0:m.bottom=0,g===x||!["l","r"].includes(g)?m.left=c:g==="l"?m.left=0:m.right=0}return by.createElement("div",{ref:d,className:(0,mk.default)("".concat(t,"-arrow"),a),style:m},s)}var gk=E(Ne());var h1=E(N());function v1(e){var t=e.prefixCls,r=e.open,n=e.zIndex,o=e.mask,i=e.motion;return o?h1.createElement(Uo,le({},i,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(a){var s=a.className;return h1.createElement("div",{style:{zIndex:n},className:(0,gk.default)("".concat(t,"-mask"),s)})}):null}var hk=E(N()),t9=hk.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),vk=t9;var r9=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,d=e.mask,m=e.arrow,h=e.arrowPos,v=e.align,y=e.motion,g=e.maskMotion,p=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,I=e.ready,D=e.offsetX,$=e.offsetY,L=e.offsetR,A=e.offsetB,M=e.onAlign,W=e.onPrepare,B=e.stretch,K=e.targetWidth,G=e.targetHeight,V=typeof r=="function"?r():r,H=l||c,j=x?.length>0,k=ti.useState(!x||!j),z=F(k,2),U=z[0],oe=z[1];if(yt(function(){!U&&j&&a&&oe(!0)},[U,j,a]),!U)return null;var Q="auto",X={left:"-1000vw",top:"-1000vh",right:Q,bottom:Q};if(I||!l){var se,Z=v.points,q=v.dynamicInset||((se=v._experimental)===null||se===void 0?void 0:se.dynamicInset),J=q&&Z[0][1]==="r",re=q&&Z[0][0]==="b";J?(X.right=L,X.left=Q):(X.left=D,X.right=Q),re?(X.bottom=A,X.top=Q):(X.top=$,X.bottom=Q)}var ee={};return B&&(B.includes("height")&&G?ee.height=G:B.includes("minHeight")&&G&&(ee.minHeight=G),B.includes("width")&&K?ee.width=K:B.includes("minWidth")&&K&&(ee.minWidth=K)),l||(ee.pointerEvents="none"),ti.createElement(S,{open:p||H,getContainer:x&&function(){return x(a)},autoDestroy:b},ti.createElement(v1,{prefixCls:o,open:l,zIndex:w,mask:d,motion:g}),ti.createElement(no,{onResize:M,disabled:!l},function(te){return ti.createElement(Uo,le({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:p,leavedClassName:"".concat(o,"-hidden")},y,{onAppearPrepare:W,onEnterPrepare:W,visible:l,onVisibleChanged:function(fe){var ue;y==null||(ue=y.onVisibleChanged)===null||ue===void 0||ue.call(y,fe),s(fe)}}),function(de,fe){var ue=de.className,Ce=de.style,we=(0,yk.default)(o,ue,n);return ti.createElement("div",{ref:zr(te,t,fe),className:we,style:T(T(T(T({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},X),ee),Ce),{},{boxSizing:"border-box",zIndex:w},i),onMouseEnter:C,onMouseLeave:R,onPointerEnter:P,onClick:f,onPointerDownCapture:O},m&&ti.createElement(g1,{prefixCls:o,arrow:m,arrowPos:h,align:v}),ti.createElement(vk,{cache:!l&&!u},V))})}))}),xk=r9;var Ou=E(N()),n9=Ou.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,o=bi(r),i=Ou.useCallback(function(s){vd(t,n?n(s):s)},[n]),a=xi(i,xs(r));return o?Ou.cloneElement(r,{ref:a}):r}),bk=n9;var Sk=E(N()),o9=Sk.createContext(null),y1=o9;var wk=E(N());function Ck(e){return e?Array.isArray(e)?e:[e]:[]}function x1(e,t,r,n){return wk.useMemo(function(){var o=Ck(r??t),i=Ck(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 Hl=E(N());function i9(){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 Ek(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 Jd(e){return _u(parseFloat(e),0)}function S1(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(),d=n.offsetHeight,m=n.clientHeight,h=n.offsetWidth,v=n.clientWidth,y=Jd(s),g=Jd(l),p=Jd(c),x=Jd(u),b=_u(Math.round(f.width/h*1e3)/1e3),S=_u(Math.round(f.height/d*1e3)/1e3),w=(h-v-p-x)*b,C=(d-m-y-g)*S,R=y*S,P=g*S,O=p*b,I=x*b,D=0,$=0;if(i==="clip"){var L=Jd(a);D=L*b,$=L*S}var A=f.x+O-D,M=f.y+R-$,W=A+f.width+2*D-O-I-w,B=M+f.height+2*$-R-P-C;r.left=Math.max(r.left,A),r.top=Math.max(r.top,M),r.right=Math.min(r.right,W),r.bottom=Math.min(r.bottom,B)}}),r}function Rk(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 Ok(e,t){var r=t||[],n=F(r,2),o=n[0],i=n[1];return[Rk(e.width,o),Rk(e.height,i)]}function _k(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Pu(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 C1(e,t,r,n,o,i,a){var s=Hl.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[n]||{}}),l=F(s,2),c=l[0],u=l[1],f=Hl.useRef(0),d=Hl.useMemo(function(){return t?Zd(t):[]},[t]),m=Hl.useRef({}),h=function(){m.current={}};e||h();var v=wt(function(){if(t&&r&&e){let Qn=function(ic,qa){var ac=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ee,Ap=H.x+ic,kp=H.y+qa,Y0=Ap+re,Je=kp+J,ut=Math.max(Ap,ac.left),mr=Math.max(kp,ac.top),Fr=Math.min(Y0,ac.right),gr=Math.min(Je,ac.bottom);return Math.max(0,(Fr-ut)*(gr-mr))},tl=function(){nr=H.y+nt,xr=nr+J,wn=H.x+xe,Qt=wn+re};var wR=Qn,$p=tl,p,x,b,S,w=t,C=w.ownerDocument,R=Vs(w),P=R.getComputedStyle(w),O=P.position,I=w.style.left,D=w.style.top,$=w.style.right,L=w.style.bottom,A=w.style.overflow,M=T(T({},o[n]),i),W=C.createElement("div");(p=w.parentElement)===null||p===void 0||p.appendChild(W),W.style.left="".concat(w.offsetLeft,"px"),W.style.top="".concat(w.offsetTop,"px"),W.style.position=O,W.style.height="".concat(w.offsetHeight,"px"),W.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 B;if(Array.isArray(r))B={x:r[0],y:r[1],width:0,height:0};else{var K,G,V=r.getBoundingClientRect();V.x=(K=V.x)!==null&&K!==void 0?K:V.left,V.y=(G=V.y)!==null&&G!==void 0?G:V.top,B={x:V.x,y:V.y,width:V.width,height:V.height}}var H=w.getBoundingClientRect(),j=R.getComputedStyle(w),k=j.height,z=j.width;H.x=(x=H.x)!==null&&x!==void 0?x:H.left,H.y=(b=H.y)!==null&&b!==void 0?b:H.top;var U=C.documentElement,oe=U.clientWidth,Q=U.clientHeight,X=U.scrollWidth,se=U.scrollHeight,Z=U.scrollTop,q=U.scrollLeft,J=H.height,re=H.width,ee=B.height,te=B.width,de={left:0,top:0,right:oe,bottom:Q},fe={left:-q,top:-Z,right:X-q,bottom:se-Z},ue=M.htmlRegion,Ce="visible",we="visibleFirst";ue!=="scroll"&&ue!==we&&(ue=Ce);var _e=ue===we,ve=S1(fe,d),Y=S1(de,d),Ee=ue===Ce?Y:ve,$e=_e?Y:Ee;w.style.left="auto",w.style.top="auto",w.style.right="0",w.style.bottom="0";var et=w.getBoundingClientRect();w.style.left=I,w.style.top=D,w.style.right=$,w.style.bottom=L,w.style.overflow=A,(S=w.parentElement)===null||S===void 0||S.removeChild(W);var ke=_u(Math.round(re/parseFloat(z)*1e3)/1e3),Se=_u(Math.round(J/parseFloat(k)*1e3)/1e3);if(ke===0||Se===0||El(r)&&!Nv(r))return;var Be=M.offset,Fe=M.targetOffset,Ue=Ok(H,Be),Re=F(Ue,2),ae=Re[0],ge=Re[1],Te=Ok(B,Fe),he=F(Te,2),Ze=he[0],ct=he[1];B.x-=Ze,B.y-=ct;var _t=M.points||[],Pt=F(_t,2),mt=Pt[0],je=Pt[1],Pe=_k(je),qe=_k(mt),Oe=Pu(B,Pe),Me=Pu(H,qe),Ve=T({},M),xe=Oe.x-Me.x+ae,nt=Oe.y-Me.y+ge,Tt=Qn(xe,nt),Ie=Qn(xe,nt,Y),be=Pu(B,["t","l"]),Ke=Pu(H,["t","l"]),Le=Pu(B,["b","r"]),ze=Pu(H,["b","r"]),tt=M.overflow||{},kt=tt.adjustX,Dt=tt.adjustY,rr=tt.shiftX,Ft=tt.shiftY,Tr=function(qa){return typeof qa=="boolean"?qa:qa>=0},nr,xr,wn,Qt;tl();var Lt=Tr(Dt),Ae=qe[0]===Pe[0];if(Lt&&qe[0]==="t"&&(xr>$e.bottom||m.current.bt)){var We=nt;Ae?We-=J-ee:We=be.y-ze.y-ge;var De=Qn(xe,We),ye=Qn(xe,We,Y);De>Tt||De===Tt&&(!_e||ye>=Ie)?(m.current.bt=!0,nt=We,ge=-ge,Ve.points=[Hs(qe,0),Hs(Pe,0)]):m.current.bt=!1}if(Lt&&qe[0]==="b"&&(nr<$e.top||m.current.tb)){var rt=nt;Ae?rt+=J-ee:rt=Le.y-Ke.y-ge;var Nt=Qn(xe,rt),Mt=Qn(xe,rt,Y);Nt>Tt||Nt===Tt&&(!_e||Mt>=Ie)?(m.current.tb=!0,nt=rt,ge=-ge,Ve.points=[Hs(qe,0),Hs(Pe,0)]):m.current.tb=!1}var pn=Tr(kt),en=qe[1]===Pe[1];if(pn&&qe[1]==="l"&&(Qt>$e.right||m.current.rl)){var br=xe;en?br-=re-te:br=be.x-ze.x-ae;var Sr=Qn(br,nt),En=Qn(br,nt,Y);Sr>Tt||Sr===Tt&&(!_e||En>=Ie)?(m.current.rl=!0,xe=br,ae=-ae,Ve.points=[Hs(qe,1),Hs(Pe,1)]):m.current.rl=!1}if(pn&&qe[1]==="r"&&(wn<$e.left||m.current.lr)){var mn=xe;en?mn+=re-te:mn=Le.x-Ke.x-ae;var Rn=Qn(mn,nt),Xn=Qn(mn,nt,Y);Rn>Tt||Rn===Tt&&(!_e||Xn>=Ie)?(m.current.lr=!0,xe=mn,ae=-ae,Ve.points=[Hs(qe,1),Hs(Pe,1)]):m.current.lr=!1}tl();var On=rr===!0?0:rr;typeof On=="number"&&(wnY.right&&(xe-=Qt-Y.right-ae,B.x>Y.right-On&&(xe+=B.x-Y.right+On)));var Di=Ft===!0?0:Ft;typeof Di=="number"&&(nrY.bottom&&(nt-=xr-Y.bottom-ge,B.y>Y.bottom-Di&&(nt+=B.y-Y.bottom+Di)));var $i=H.x+xe,Ai=$i+re,Ha=H.y+nt,el=Ha+J,St=B.x,pt=St+te,Kr=B.y,tn=Kr+ee,Cr=Math.max($i,St),Mr=Math.min(Ai,pt),mo=(Cr+Mr)/2,Yn=mo-$i,Io=Math.max(Ha,Kr),ki=Math.min(el,tn),li=(Io+ki)/2,Ua=li-Ha;a?.(t,Ve);var Ln=et.right-H.x-(xe+H.width),nf=et.bottom-H.y-(nt+H.height);ke===1&&(xe=Math.round(xe),Ln=Math.round(Ln)),Se===1&&(nt=Math.round(nt),nf=Math.round(nf));var X0={ready:!0,offsetX:xe/ke,offsetY:nt/Se,offsetR:Ln/ke,offsetB:nf/Se,arrowX:Yn/ke,arrowY:Ua/Se,scaleX:ke,scaleY:Se,align:Ve};u(X0)}}),y=function(){f.current+=1;var x=f.current;Promise.resolve().then(function(){f.current===x&&v()})},g=function(){u(function(x){return T(T({},x),{},{ready:!1})})};return yt(g,[n]),yt(function(){e||g()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,y]}function w1(e,t,r,n,o){yt(function(){if(e&&t&&r){let d=function(){n(),o()};var f=d,i=t,a=r,s=Zd(i),l=Zd(a),c=Vs(a),u=new Set([c].concat(ne(s),ne(l)));return u.forEach(function(m){m.addEventListener("scroll",d,{passive:!0})}),c.addEventListener("resize",d,{passive:!0}),n(),function(){u.forEach(function(m){m.removeEventListener("scroll",d),c.removeEventListener("resize",d)})}}},[e,t,r])}var ep=E(N());function E1(e,t,r,n,o,i,a,s){var l=ep.useRef(e);l.current=e;var c=ep.useRef(!1);ep.useEffect(function(){if(t&&n&&(!o||i)){var f=function(){c.current=!1},d=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)},m=Vs(n);m.addEventListener("pointerdown",f,!0),m.addEventListener("mousedown",d,!0),m.addEventListener("contextmenu",d,!0);var h=Al(r);if(h&&(h.addEventListener("mousedown",d,!0),h.addEventListener("contextmenu",d,!0)),0)var v,y,g,p;return function(){m.removeEventListener("pointerdown",f,!0),m.removeEventListener("mousedown",d,!0),m.removeEventListener("contextmenu",d,!0),h&&(h.removeEventListener("mousedown",d,!0),h.removeEventListener("contextmenu",d,!0))}}},[t,r,n,o,i]);function u(){c.current=!0}return u}var a9=["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 s9(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:qw,t=vt.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,d=r.defaultPopupVisible,m=r.onPopupVisibleChange,h=r.afterPopupVisibleChange,v=r.mouseEnterDelay,y=r.mouseLeaveDelay,g=y===void 0?.1:y,p=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,I=r.popup,D=r.popupClassName,$=r.popupStyle,L=r.popupPlacement,A=r.builtinPlacements,M=A===void 0?{}:A,W=r.popupAlign,B=r.zIndex,K=r.stretch,G=r.getPopupClassNameFromAlign,V=r.fresh,H=r.alignPoint,j=r.onPopupClick,k=r.onPopupAlign,z=r.arrow,U=r.popupMotion,oe=r.maskMotion,Q=r.popupTransitionName,X=r.popupAnimation,se=r.maskTransitionName,Z=r.maskAnimation,q=r.className,J=r.getTriggerDOMNode,re=He(r,a9),ee=P||O||!1,te=vt.useState(!1),de=F(te,2),fe=de[0],ue=de[1];yt(function(){ue(Su())},[]);var Ce=vt.useRef({}),we=vt.useContext(y1),_e=vt.useMemo(function(){return{registerSubPopup:function(ut,mr){Ce.current[ut]=mr,we?.registerSubPopup(ut,mr)}}},[we]),ve=Jv(),Y=vt.useState(null),Ee=F(Y,2),$e=Ee[0],et=Ee[1],ke=vt.useRef(null),Se=wt(function(Je){ke.current=Je,El(Je)&&$e!==Je&&et(Je),we?.registerSubPopup(ve,Je)}),Be=vt.useState(null),Fe=F(Be,2),Ue=Fe[0],Re=Fe[1],ae=vt.useRef(null),ge=wt(function(Je){El(Je)&&Ue!==Je&&(Re(Je),ae.current=Je)}),Te=vt.Children.only(a),he=Te?.props||{},Ze={},ct=wt(function(Je){var ut,mr,Fr=Ue;return Fr?.contains(Je)||((ut=Al(Fr))===null||ut===void 0?void 0:ut.host)===Je||Je===Fr||$e?.contains(Je)||((mr=Al($e))===null||mr===void 0?void 0:mr.host)===Je||Je===$e||Object.values(Ce.current).some(function(gr){return gr?.contains(Je)||Je===gr})}),_t=b1(i,U,X,Q),Pt=b1(i,oe,Z,se),mt=vt.useState(d||!1),je=F(mt,2),Pe=je[0],qe=je[1],Oe=f??Pe,Me=wt(function(Je){f===void 0&&qe(Je)});yt(function(){qe(f||!1)},[f]);var Ve=vt.useRef(Oe);Ve.current=Oe;var xe=vt.useRef([]);xe.current=[];var nt=wt(function(Je){var ut;Me(Je),((ut=xe.current[xe.current.length-1])!==null&&ut!==void 0?ut:Oe)!==Je&&(xe.current.push(Je),m?.(Je))}),Tt=vt.useRef(),Ie=function(){clearTimeout(Tt.current)},be=function(ut){var mr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ie(),mr===0?nt(ut):Tt.current=setTimeout(function(){nt(ut)},mr*1e3)};vt.useEffect(function(){return Ie},[]);var Ke=vt.useState(!1),Le=F(Ke,2),ze=Le[0],tt=Le[1];yt(function(Je){(!Je||Oe)&&tt(!0)},[Oe]);var kt=vt.useState(null),Dt=F(kt,2),rr=Dt[0],Ft=Dt[1],Tr=vt.useState(null),nr=F(Tr,2),xr=nr[0],wn=nr[1],Qt=function(ut){wn([ut.clientX,ut.clientY])},Lt=C1(Oe,$e,H&&xr!==null?xr:Ue,L,M,W,k),Ae=F(Lt,11),We=Ae[0],De=Ae[1],ye=Ae[2],rt=Ae[3],Nt=Ae[4],Mt=Ae[5],pn=Ae[6],en=Ae[7],br=Ae[8],Sr=Ae[9],En=Ae[10],mn=x1(fe,l,c,u),Rn=F(mn,2),Xn=Rn[0],On=Rn[1],Di=Xn.has("click"),$i=On.has("click")||On.has("contextMenu"),Ai=wt(function(){ze||En()}),Ha=function(){Ve.current&&H&&$i&&be(!1)};w1(Oe,Ue,$e,Ai,Ha),yt(function(){Ai()},[xr,L]),yt(function(){Oe&&!(M!=null&&M[L])&&Ai()},[JSON.stringify(W)]);var el=vt.useMemo(function(){var Je=Ek(M,i,Sr,H);return(0,Sy.default)(Je,G?.(Sr))},[Sr,G,M,i,H]);vt.useImperativeHandle(n,function(){return{nativeElement:ae.current,popupElement:ke.current,forceAlign:Ai}});var St=vt.useState(0),pt=F(St,2),Kr=pt[0],tn=pt[1],Cr=vt.useState(0),Mr=F(Cr,2),mo=Mr[0],Yn=Mr[1],Io=function(){if(K&&Ue){var ut=Ue.getBoundingClientRect();tn(ut.width),Yn(ut.height)}},ki=function(){Io(),Ai()},li=function(ut){tt(!1),En(),h?.(ut)},Ua=function(){return new Promise(function(ut){Io(),Ft(function(){return ut})})};yt(function(){rr&&(En(),rr(),Ft(null))},[rr]);function Ln(Je,ut,mr,Fr){Ze[Je]=function(gr){var Mp;Fr?.(gr),be(ut,mr);for(var Q0=arguments.length,ER=new Array(Q0>1?Q0-1:0),Fp=1;Fp1?mr-1:0),gr=1;gr1?mr-1:0),gr=1;gr1&&arguments[1]!==void 0?arguments[1]:{},r=t.fieldNames,n=t.childrenAsData,o=[],i=R1(r,!1),a=i.label,s=i.value,l=i.options,c=i.groupLabel;function u(f,d){Array.isArray(f)&&f.forEach(function(m){if(d||!(l in m)){var h=m[s];o.push({key:Nk(m,o.length),groupOption:d,data:m,label:m[a],value:h})}else{var v=m[c];v===void 0&&n&&(v=m.label),o.push({key:Nk(m,o.length),group:!0,data:m,label:v}),u(m[l],!0)}})}return u(e,!1),o}function rp(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 Dk=function(t,r,n){if(!r||!r.length)return null;var o=!1,i=function s(l,c){var u=Th(c),f=u[0],d=u.slice(1);if(!f)return[l];var m=l.split(f);return o=o||m.length>1,m.reduce(function(h,v){return[].concat(ne(h),ne(s(v,d)))},[]).filter(Boolean)},a=i(t,r);return o?typeof n<"u"?a.slice(0,n):a:null};var $k=E(N()),d9=$k.createContext(null),Tu=d9;var Ak=E(N());function O1(e){var t=e.visible,r=e.values;if(!t)return null;var n=50;return Ak.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(ce(i))?i:a}).join(", ")),r.length>n?", ...":null)}var p9=["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"],m9=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],np=function(t){return t==="tags"||t==="multiple"},g9=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,d=e.emptyOptions,m=e.notFoundContent,h=m===void 0?"Not Found":m,v=e.onClear,y=e.mode,g=e.disabled,p=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,I=e.searchValue,D=e.autoClearSearchValue,$=e.onSearch,L=e.onSearchSplit,A=e.tokenSeparators,M=e.allowClear,W=e.prefix,B=e.suffixIcon,K=e.clearIcon,G=e.OptionList,V=e.animation,H=e.transitionName,j=e.dropdownStyle,k=e.dropdownClassName,z=e.dropdownMatchSelectWidth,U=e.dropdownRender,oe=e.dropdownAlign,Q=e.placement,X=e.builtinPlacements,se=e.getPopupContainer,Z=e.showAction,q=Z===void 0?[]:Z,J=e.onFocus,re=e.onBlur,ee=e.onKeyUp,te=e.onKeyDown,de=e.onMouseDown,fe=He(e,p9),ue=np(y),Ce=(a!==void 0?a:ue)||y==="combobox",we=T({},fe);m9.forEach(function(St){delete we[St]}),c?.forEach(function(St){delete we[St]});var _e=bt.useState(!1),ve=F(_e,2),Y=ve[0],Ee=ve[1];bt.useEffect(function(){Ee(Su())},[]);var $e=bt.useRef(null),et=bt.useRef(null),ke=bt.useRef(null),Se=bt.useRef(null),Be=bt.useRef(null),Fe=bt.useRef(!1),Ue=u1(),Re=F(Ue,3),ae=Re[0],ge=Re[1],Te=Re[2];bt.useImperativeHandle(t,function(){var St,pt;return{focus:(St=Se.current)===null||St===void 0?void 0:St.focus,blur:(pt=Se.current)===null||pt===void 0?void 0:pt.blur,scrollTo:function(tn){var Cr;return(Cr=Be.current)===null||Cr===void 0?void 0:Cr.scrollTo(tn)},nativeElement:$e.current||et.current}});var he=bt.useMemo(function(){var St;if(y!=="combobox")return I;var pt=(St=u[0])===null||St===void 0?void 0:St.value;return typeof pt=="string"||typeof pt=="number"?String(pt):""},[I,y,u]),Ze=y==="combobox"&&typeof x=="function"&&x()||null,ct=typeof b=="function"&&b(),_t=xi(et,ct==null||(r=ct.props)===null||r===void 0?void 0:r.ref),Pt=bt.useState(!1),mt=F(Pt,2),je=mt[0],Pe=mt[1];yt(function(){Pe(!0)},[]);var qe=sr(!1,{defaultValue:w,value:S}),Oe=F(qe,2),Me=Oe[0],Ve=Oe[1],xe=je?Me:!1,nt=!h&&d;(g||nt&&xe&&y==="combobox")&&(xe=!1);var Tt=nt?!1:xe,Ie=bt.useCallback(function(St){var pt=St!==void 0?St:!xe;g||(Ve(pt),xe!==pt&&C?.(pt))},[g,xe,Ve,C]),be=bt.useMemo(function(){return(A||[]).some(function(St){return[` `,`\r `].includes(St)})},[A]),Ke=bt.useContext(Tu)||{},Le=Ke.maxCount,ze=Ke.rawValues,tt=function(pt,Kr,tn){if(!(ue&&tp(Le)&&ze?.size>=Le)){var Cr=!0,Mr=pt;P?.(null);var mo=Dk(pt,A,tp(Le)?Le-ze.size:void 0),Yn=tn?null:mo;return y!=="combobox"&&Yn&&(Mr="",L?.(Yn),Ie(!1),Cr=!1),$&&he!==Mr&&$(Mr,{source:Kr?"typing":"effect"}),Cr}},kt=function(pt){!pt||!pt.trim()||$(pt,{source:"submit"})};bt.useEffect(function(){!xe&&!ue&&y!=="combobox"&&tt("",!1,!1)},[xe]),bt.useEffect(function(){Me&&g&&Ve(!1),g&&!Fe.current&&ge(!1)},[g]);var Dt=Xd(),rr=F(Dt,2),Ft=rr[0],Tr=rr[1],nr=bt.useRef(!1),xr=function(pt){var Kr=Ft(),tn=pt.key,Cr=tn==="Enter";if(Cr&&(y!=="combobox"&&pt.preventDefault(),xe||Ie(!0)),Tr(!!he),tn==="Backspace"&&!Kr&&ue&&!he&&u.length){for(var Mr=ne(u),mo=null,Yn=Mr.length-1;Yn>=0;Yn-=1){var Io=Mr[Yn];if(!Io.disabled){Mr.splice(Yn,1),mo=Io;break}}mo&&f(Mr,{type:"remove",values:[mo]})}for(var ki=arguments.length,li=new Array(ki>1?ki-1:0),Ua=1;Ua1?Kr-1:0),Cr=1;Cr1?mo-1:0),Io=1;Io"u"?"undefined":ce(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),I1=h9;var Ey=E(N()),Ry=function(e,t,r,n){var o=(0,Ey.useRef)(!1),i=(0,Ey.useRef)(null);function a(){clearTimeout(i.current),o.current=!0,i.current=setTimeout(function(){o.current=!1},50)}var s=(0,Ey.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 D1(e,t,r,n,o,i,a){var s=(0,Ul.useRef)(0),l=(0,Ul.useRef)(null),c=(0,Ul.useRef)(null),u=(0,Ul.useRef)(!1),f=Ry(t,r,n,o);function d(p,x){if(dt.cancel(l.current),!f(!1,x)){var b=p;if(!b._virtualHandled)b._virtualHandled=!0;else return;s.current+=x,c.current=x,I1||b.preventDefault(),l.current=dt(function(){var S=u.current?10:1;a(s.current*S,!1),s.current=0})}}function m(p,x){a(x,!0),I1||p.preventDefault()}var h=(0,Ul.useRef)(null),v=(0,Ul.useRef)(null);function y(p){if(e){dt.cancel(v.current),v.current=dt(function(){h.current=null},2);var x=p.deltaX,b=p.deltaY,S=p.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"?d(p,C):m(p,w)}}function g(p){e&&(u.current=p.detail===c.current)}return[y,g]}var Vk=E(N());function Hk(e,t,r,n){var o=Vk.useMemo(function(){return[new Map,[]]},[e,r.id,n]),i=F(o,2),a=i[0],s=i[1],l=function(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,d=a.get(u),m=a.get(f);if(d===void 0||m===void 0)for(var h=e.length,v=s.length;v0&&arguments[0]!==void 0?arguments[0]:!1;u();var h=function(){var g=!1;s.current.forEach(function(p,x){if(p&&p.offsetParent){var b=p.offsetHeight,S=getComputedStyle(p),w=S.marginTop,C=S.marginBottom,R=qk(w),P=qk(C),O=b+R+P;l.current.get(x)!==O&&(l.current.set(x,O),g=!0)}}),g&&a(function(p){return p+1})};if(m)h();else{c.current+=1;var v=c.current;Promise.resolve().then(function(){v===c.current&&h()})}}function d(m,h){var v=e(m),y=s.current.get(v);h?(s.current.set(v,h),f()):s.current.delete(v),!y!=!h&&(h?t?.(m):r?.(m))}return(0,Iu.useEffect)(function(){return u},[]),[d,f,l.current,i]}var Du=E(N()),Kk=14/15;function A1(e,t,r){var n=(0,Du.useRef)(!1),o=(0,Du.useRef)(0),i=(0,Du.useRef)(0),a=(0,Du.useRef)(null),s=(0,Du.useRef)(null),l,c=function(m){if(n.current){var h=Math.ceil(m.touches[0].pageX),v=Math.ceil(m.touches[0].pageY),y=o.current-h,g=i.current-v,p=Math.abs(y)>Math.abs(g);p?o.current=h:i.current=v;var x=r(p,p?y:g,!1,m);x&&m.preventDefault(),clearInterval(s.current),x&&(s.current=setInterval(function(){p?y*=Kk:g*=Kk;var b=Math.floor(p?y:g);(!r(p,b,!0)||Math.abs(b)<=.1)&&clearInterval(s.current)},16))}},u=function(){n.current=!1,l()},f=function(m){l(),m.touches.length===1&&!n.current&&(n.current=!0,o.current=Math.ceil(m.touches[0].pageX),i.current=Math.ceil(m.touches[0].pageY),a.current=m.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))},yt(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var d;(d=t.current)===null||d===void 0||d.removeEventListener("touchstart",f),l(),clearInterval(s.current)}},[e])}var Yk=E(N());function Xk(e){return Math.floor(Math.pow(e,.5))}function Oy(e,t){var r="touches"in e?e.touches[0]:e;return r[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function k1(e,t,r){Yk.useEffect(function(){var n=t.current;if(e&&n){var o=!1,i,a,s=function(){dt.cancel(i)},l=function d(){s(),i=dt(function(){r(a),d()})},c=function(m){if(!(m.target.draggable||m.button!==0)){var h=m;h._virtualHandled||(h._virtualHandled=!0,o=!0)}},u=function(){o=!1,s()},f=function(m){if(o){var h=Oy(m,!1),v=n.getBoundingClientRect(),y=v.top,g=v.bottom;if(h<=y){var p=y-h;a=-Xk(p),l()}else if(h>=g){var x=h-g;a=Xk(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 _y=E(N());var y9=10;function M1(e,t,r,n,o,i,a,s){var l=_y.useRef(),c=_y.useState(null),u=F(c,2),f=u[0],d=u[1];return yt(function(){if(f&&f.times=0;L-=1){var A=o(t[L]),M=r.get(A);if(M===void 0){p=!0;break}if($-=M,$<=0)break}switch(S){case"top":b=C-y;break;case"bottom":b=R-g+y;break;default:{var W=e.current.scrollTop,B=W+g;CB&&(x="bottom")}}b!==null&&a(b),b!==f.lastTop&&(p=!0)}p&&d(T(T({},f),{},{times:f.times+1,targetAlign:x,lastTop:b}))}},[f,e.current]),function(m){if(m==null){s();return}if(dt.cancel(l.current),typeof m=="number")a(m);else if(m&&ce(m)==="object"){var h,v=m.align;"index"in m?h=m.index:h=t.findIndex(function(p){return o(p)===m.key});var y=m.offset,g=y===void 0?0:y;d({times:0,index:h,offset:g,originAlign:v})}}}var F1=E(Ne());var fr=E(N());var x9=fr.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,d=e.style,m=e.thumbStyle,h=e.showScrollBar,v=fr.useState(!1),y=F(v,2),g=y[0],p=y[1],x=fr.useState(null),b=F(x,2),S=b[0],w=b[1],C=fr.useState(null),R=F(C,2),P=R[0],O=R[1],I=!n,D=fr.useRef(),$=fr.useRef(),L=fr.useState(h),A=F(L,2),M=A[0],W=A[1],B=fr.useRef(),K=function(){h===!0||h===!1||(clearTimeout(B.current),W(!0),B.current=setTimeout(function(){W(!1)},3e3))},G=i-f||0,V=f-u||0,H=fr.useMemo(function(){if(o===0||G===0)return 0;var Z=o/G;return Z*V},[o,G,V]),j=function(q){q.stopPropagation(),q.preventDefault()},k=fr.useRef({top:H,dragging:g,pageY:S,startTop:P});k.current={top:H,dragging:g,pageY:S,startTop:P};var z=function(q){p(!0),w(Oy(q,c)),O(k.current.top),a(),q.stopPropagation(),q.preventDefault()};fr.useEffect(function(){var Z=function(ee){ee.preventDefault()},q=D.current,J=$.current;return q.addEventListener("touchstart",Z,{passive:!1}),J.addEventListener("touchstart",z,{passive:!1}),function(){q.removeEventListener("touchstart",Z),J.removeEventListener("touchstart",z)}},[]);var U=fr.useRef();U.current=G;var oe=fr.useRef();oe.current=V,fr.useEffect(function(){if(g){var Z,q=function(ee){var te=k.current,de=te.dragging,fe=te.pageY,ue=te.startTop;dt.cancel(Z);var Ce=D.current.getBoundingClientRect(),we=f/(c?Ce.width:Ce.height);if(de){var _e=(Oy(ee,c)-fe)*we,ve=ue;!I&&c?ve-=_e:ve+=_e;var Y=U.current,Ee=oe.current,$e=Ee?ve/Ee:0,et=Math.ceil($e*Y);et=Math.max(et,0),et=Math.min(et,Y),Z=dt(function(){l(et,c)})}},J=function(){p(!1),s()};return window.addEventListener("mousemove",q,{passive:!0}),window.addEventListener("touchmove",q,{passive:!0}),window.addEventListener("mouseup",J,{passive:!0}),window.addEventListener("touchend",J,{passive:!0}),function(){window.removeEventListener("mousemove",q),window.removeEventListener("touchmove",q),window.removeEventListener("mouseup",J),window.removeEventListener("touchend",J),dt.cancel(Z)}}},[g]),fr.useEffect(function(){return K(),function(){clearTimeout(B.current)}},[o]),fr.useImperativeHandle(t,function(){return{delayHidden:K}});var Q="".concat(r,"-scrollbar"),X={position:"absolute",visibility:M?null:"hidden"},se={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,se.height="100%",se.width=u,I?se.left=H:se.right=H):(X.width=8,X.top=0,X.bottom=0,I?X.right=0:X.left=0,se.width="100%",se.height=u,se.top=H),fr.createElement("div",{ref:D,className:(0,F1.default)(Q,_(_(_({},"".concat(Q,"-horizontal"),c),"".concat(Q,"-vertical"),!c),"".concat(Q,"-visible"),M)),style:T(T({},X),d),onMouseDown:j,onMouseMove:K},fr.createElement("div",{ref:$,className:(0,F1.default)("".concat(Q,"-thumb"),_({},"".concat(Q,"-thumb-moving"),g)),style:T(T({},se),m),onMouseDown:z}))}),L1=x9;var b9=20;function z1(){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,b9),Math.floor(r)}var S9=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],C9=[],w9={overflowY:"auto",overflowAnchor:"none"};function E9(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,d=e.itemKey,m=e.virtual,h=e.direction,v=e.scrollWidth,y=e.component,g=y===void 0?"div":y,p=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=He(e,S9),I=kr.useCallback(function(Ae){return typeof d=="function"?d(Ae):Ae?.[d]},[d]),D=$1(I,null,null),$=F(D,4),L=$[0],A=$[1],M=$[2],W=$[3],B=!!(m!==!1&&i&&a),K=kr.useMemo(function(){return Object.values(M.maps).reduce(function(Ae,We){return Ae+We},0)},[M.id,M.maps]),G=B&&u&&(Math.max(a*u.length,K)>i||!!v),V=h==="rtl",H=(0,Qk.default)(n,_({},"".concat(n,"-rtl"),V),o),j=u||C9,k=(0,co.useRef)(),z=(0,co.useRef)(),U=(0,co.useRef)(),oe=(0,co.useState)(0),Q=F(oe,2),X=Q[0],se=Q[1],Z=(0,co.useState)(0),q=F(Z,2),J=q[0],re=q[1],ee=(0,co.useState)(!1),te=F(ee,2),de=te[0],fe=te[1],ue=function(){fe(!0)},Ce=function(){fe(!1)},we={getKey:I};function _e(Ae){se(function(We){var De;typeof Ae=="function"?De=Ae(We):De=Ae;var ye=Pe(De);return k.current.scrollTop=ye,ye})}var ve=(0,co.useRef)({start:0,end:j.length}),Y=(0,co.useRef)(),Ee=N1(j,I),$e=F(Ee,1),et=$e[0];Y.current=et;var ke=kr.useMemo(function(){if(!B)return{scrollHeight:void 0,start:0,end:j.length-1,offset:void 0};if(!G){var Ae;return{scrollHeight:((Ae=z.current)===null||Ae===void 0?void 0:Ae.offsetHeight)||0,start:0,end:j.length-1,offset:void 0}}for(var We=0,De,ye,rt,Nt=j.length,Mt=0;Mt=X&&De===void 0&&(De=Mt,ye=We),Sr>X+i&&rt===void 0&&(rt=Mt),We=Sr}return De===void 0&&(De=0,ye=0,rt=Math.ceil(i/a)),rt===void 0&&(rt=j.length-1),rt=Math.min(rt+1,j.length-1),{scrollHeight:We,start:De,end:rt,offset:ye}},[G,B,X,j,W,i]),Se=ke.scrollHeight,Be=ke.start,Fe=ke.end,Ue=ke.offset;ve.current.start=Be,ve.current.end=Fe,kr.useLayoutEffect(function(){var Ae=M.getRecord();if(Ae.size===1){var We=Array.from(Ae)[0],De=j[Be];if(De){var ye=I(De);if(ye===We){var rt=M.get(We),Nt=rt-a;_e(function(Mt){return Mt+Nt})}}}M.resetRecord()},[Se]);var Re=kr.useState({width:0,height:i}),ae=F(Re,2),ge=ae[0],Te=ae[1],he=function(We){Te({width:We.offsetWidth,height:We.offsetHeight})},Ze=(0,co.useRef)(),ct=(0,co.useRef)(),_t=kr.useMemo(function(){return z1(ge.width,v)},[ge.width,v]),Pt=kr.useMemo(function(){return z1(ge.height,Se)},[ge.height,Se]),mt=Se-i,je=(0,co.useRef)(mt);je.current=mt;function Pe(Ae){var We=Ae;return Number.isNaN(je.current)||(We=Math.min(We,je.current)),We=Math.max(We,0),We}var qe=X<=0,Oe=X>=mt,Me=J<=0,Ve=J>=v,xe=Ry(qe,Oe,Me,Ve),nt=function(){return{x:V?-J:J,y:X}},Tt=(0,co.useRef)(nt()),Ie=wt(function(Ae){if(x){var We=T(T({},nt()),Ae);(Tt.current.x!==We.x||Tt.current.y!==We.y)&&(x(We),Tt.current=We)}});function be(Ae,We){var De=Ae;We?((0,W1.flushSync)(function(){re(De)}),Ie()):_e(De)}function Ke(Ae){var We=Ae.currentTarget.scrollTop;We!==X&&_e(We),p?.(Ae),Ie()}var Le=function(We){var De=We,ye=v?v-ge.width:0;return De=Math.max(De,0),De=Math.min(De,ye),De},ze=wt(function(Ae,We){We?((0,W1.flushSync)(function(){re(function(De){var ye=De+(V?-Ae:Ae);return Le(ye)})}),Ie()):_e(function(De){var ye=De+Ae;return ye})}),tt=D1(B,qe,Oe,Me,Ve,!!v,ze),kt=F(tt,2),Dt=kt[0],rr=kt[1];A1(B,k,function(Ae,We,De,ye){var rt=ye;return xe(Ae,We,De)?!1:!rt||!rt._virtualHandled?(rt&&(rt._virtualHandled=!0),Dt({preventDefault:function(){},deltaX:Ae?We:0,deltaY:Ae?0:We}),!0):!1}),k1(G,k,function(Ae){_e(function(We){return We+Ae})}),yt(function(){function Ae(De){var ye=qe&&De.detail<0,rt=Oe&&De.detail>0;B&&!ye&&!rt&&De.preventDefault()}var We=k.current;return We.addEventListener("wheel",Dt,{passive:!1}),We.addEventListener("DOMMouseScroll",rr,{passive:!0}),We.addEventListener("MozMousePixelScroll",Ae,{passive:!1}),function(){We.removeEventListener("wheel",Dt),We.removeEventListener("DOMMouseScroll",rr),We.removeEventListener("MozMousePixelScroll",Ae)}},[B,qe,Oe]),yt(function(){if(v){var Ae=Le(J);re(Ae),Ie({x:Ae})}},[ge.width,v]);var Ft=function(){var We,De;(We=Ze.current)===null||We===void 0||We.delayHidden(),(De=ct.current)===null||De===void 0||De.delayHidden()},Tr=M1(k,j,M,a,I,function(){return A(!0)},_e,Ft);kr.useImperativeHandle(t,function(){return{nativeElement:U.current,getScrollInfo:nt,scrollTo:function(We){function De(ye){return ye&&ce(ye)==="object"&&("left"in ye||"top"in ye)}De(We)?(We.left!==void 0&&re(Le(We.left)),Tr(We.top)):Tr(We)}}}),yt(function(){if(b){var Ae=j.slice(Be,Fe+1);b(Ae,j)}},[Be,Fe,j]);var nr=Hk(j,I,M,a),xr=w?.({start:Be,end:Fe,virtual:G,offsetX:J,offsetY:Ue,rtl:V,getSize:nr}),wn=T1(j,Be,Fe,v,J,L,f,we),Qt=null;i&&(Qt=T(_({},l?"height":"maxHeight",i),w9),B&&(Qt.overflowY="hidden",v&&(Qt.overflowX="hidden"),de&&(Qt.pointerEvents="none")));var Lt={};return V&&(Lt.dir="rtl"),kr.createElement("div",le({ref:U,style:T(T({},c),{},{position:"relative"}),className:H},Lt,O),kr.createElement(no,{onResize:he},kr.createElement(g,{className:"".concat(n,"-holder"),style:Qt,ref:k,onScroll:Ke,onMouseEnter:Ft},kr.createElement(zk,{prefixCls:n,height:Se,offsetX:J,offsetY:Ue,scrollWidth:v,onInnerResize:A,ref:z,innerProps:S,rtl:V,extra:xr},wn))),G&&Se>i&&kr.createElement(L1,{ref:Ze,prefixCls:n,scrollOffset:X,scrollRange:Se,rtl:V,onScroll:be,onStartMove:ue,onStopMove:Ce,spinSize:Pt,containerSize:ge.height,style:C?.verticalScrollBar,thumbStyle:C?.verticalScrollBarThumb,showScrollBar:P}),G&&v>ge.width&&kr.createElement(L1,{ref:ct,prefixCls:n,scrollOffset:J,scrollRange:v,rtl:V,onScroll:be,onStartMove:ue,onStopMove:Ce,spinSize:_t,containerSize:ge.width,horizontal:!0,style:C?.horizontalScrollBar,thumbStyle:C?.horizontalScrollBarThumb,showScrollBar:P}))}var Jk=kr.forwardRef(E9);Jk.displayName="List";var Zk=Jk;var eM=Zk;var Ut=E(N()),j1=E(N());function tM(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var R9=["disabled","title","children","style","className"];function rM(e){return typeof e=="string"||typeof e=="number"}var O9=function(t,r){var n=py(),o=n.prefixCls,i=n.id,a=n.open,s=n.multiple,l=n.mode,c=n.searchValue,u=n.toggleOpen,f=n.notFoundContent,d=n.onPopupScroll,m=Ut.useContext(Tu),h=m.maxCount,v=m.flattenOptions,y=m.onActiveValue,g=m.defaultActiveFirstOption,p=m.onSelect,x=m.menuItemSelectedIcon,b=m.rawValues,S=m.fieldNames,w=m.virtual,C=m.direction,R=m.listHeight,P=m.listItemHeight,O=m.optionRender,I="".concat(o,"-item"),D=qi(function(){return v},[a,v],function(Z,q){return q[0]&&Z[1]!==q[1]}),$=Ut.useRef(null),L=Ut.useMemo(function(){return s&&tp(h)&&b?.size>=h},[s,h,b?.size]),A=function(q){q.preventDefault()},M=function(q){var J;(J=$.current)===null||J===void 0||J.scrollTo(typeof q=="number"?{index:q}:q)},W=Ut.useCallback(function(Z){return l==="combobox"?!1:b.has(Z)},[l,ne(b).toString(),b.size]),B=function(q){for(var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,re=D.length,ee=0;ee1&&arguments[1]!==void 0?arguments[1]:!1;H(q);var re={source:J?"keyboard":"mouse"},ee=D[q];if(!ee){y(null,-1,re);return}y(ee.value,q,re)};(0,j1.useEffect)(function(){j(g!==!1?B(0):-1)},[D.length,c]);var k=Ut.useCallback(function(Z){return l==="combobox"?String(Z).toLowerCase()===c.toLowerCase():b.has(Z)},[l,c,ne(b).toString(),b.size]);(0,j1.useEffect)(function(){var Z=setTimeout(function(){if(!s&&a&&b.size===1){var J=Array.from(b)[0],re=D.findIndex(function(ee){var te=ee.data;return c?String(te.value).startsWith(c):te.value===J});re!==-1&&(j(re),M(re))}});if(a){var q;(q=$.current)===null||q===void 0||q.scrollTo(void 0)}return function(){return clearTimeout(Z)}},[a,c]);var z=function(q){q!==void 0&&p(q,{selected:!b.has(q)}),s||u(!1)};if(Ut.useImperativeHandle(r,function(){return{onKeyDown:function(q){var J=q.which,re=q.ctrlKey;switch(J){case Qe.N:case Qe.P:case Qe.UP:case Qe.DOWN:{var ee=0;if(J===Qe.UP?ee=-1:J===Qe.DOWN?ee=1:tM()&&re&&(J===Qe.N?ee=1:J===Qe.P&&(ee=-1)),ee!==0){var te=B(V+ee,ee);M(te),j(te,!0)}break}case Qe.TAB:case Qe.ENTER:{var de,fe=D[V];fe&&!(fe!=null&&(de=fe.data)!==null&&de!==void 0&&de.disabled)&&!L?z(fe.value):z(void 0),a&&q.preventDefault();break}case Qe.ESC:u(!1),a&&q.stopPropagation()}},onKeyUp:function(){},scrollTo:function(q){M(q)}}}),D.length===0)return Ut.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(I,"-empty"),onMouseDown:A},f);var U=Object.keys(S).map(function(Z){return S[Z]}),oe=function(q){return q.label};function Q(Z,q){var J=Z.group;return{role:J?"presentation":"option",id:"".concat(i,"_list_").concat(q)}}var X=function(q){var J=D[q];if(!J)return null;var re=J.data||{},ee=re.value,te=J.group,de=qo(re,!0),fe=oe(J);return J?Ut.createElement("div",le({"aria-label":typeof fe=="string"&&!te?fe:null},de,{key:q},Q(J,q),{"aria-selected":k(ee)}),ee):null},se={role:"listbox",id:"".concat(i,"_list")};return Ut.createElement(Ut.Fragment,null,w&&Ut.createElement("div",le({},se,{style:{height:0,width:0,overflow:"hidden"}}),X(V-1),X(V),X(V+1)),Ut.createElement(eM,{itemKey:"key",ref:$,data:D,height:R,itemHeight:P,fullHeight:!1,onMouseDown:A,onScroll:d,virtual:w,direction:C,innerProps:w?null:se},function(Z,q){var J=Z.group,re=Z.groupOption,ee=Z.data,te=Z.label,de=Z.value,fe=ee.key;if(J){var ue,Ce=(ue=ee.title)!==null&&ue!==void 0?ue:rM(te)?te.toString():void 0;return Ut.createElement("div",{className:(0,B1.default)(I,"".concat(I,"-group"),ee.className),title:Ce},te!==void 0?te:fe)}var we=ee.disabled,_e=ee.title,ve=ee.children,Y=ee.style,Ee=ee.className,$e=He(ee,R9),et=qr($e,U),ke=W(de),Se=we||!ke&&L,Be="".concat(I,"-option"),Fe=(0,B1.default)(I,Be,Ee,_(_(_(_({},"".concat(Be,"-grouped"),re),"".concat(Be,"-active"),V===q&&!Se),"".concat(Be,"-disabled"),Se),"".concat(Be,"-selected"),ke)),Ue=oe(Z),Re=!x||typeof x=="function"||ke,ae=typeof Ue=="number"?Ue:Ue||de,ge=rM(ae)?ae.toString():void 0;return _e!==void 0&&(ge=_e),Ut.createElement("div",le({},qo(et),w?{}:Q(Z,q),{"aria-selected":k(de),className:Fe,title:ge,onMouseMove:function(){V===q||Se||j(q)},onClick:function(){Se||z(de)},style:Y}),Ut.createElement("div",{className:"".concat(Be,"-content")},typeof O=="function"?O(Z,{index:q}):ae),Ut.isValidElement(x)||ke,Re&&Ut.createElement(Bs,{className:"".concat(I,"-option-state"),customizeIcon:x,customizeIconProps:{value:de,disabled:Se,isSelected:ke}},ke?"\u2713":null))}))},_9=Ut.forwardRef(O9),nM=_9;var $u=E(N()),oM=function(e,t){var r=$u.useRef({values:new Map,options:new Map}),n=$u.useMemo(function(){var i=r.current,a=i.values,s=i.options,l=e.map(function(f){if(f.label===void 0){var d;return T(T({},f),{},{label:(d=a.get(f.value))===null||d===void 0?void 0:d.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=$u.useCallback(function(i){return t.get(i)||r.current.options.get(i)},[t]);return[n,o]};var iM=E(N());function V1(e,t){return Qd(e).join("").toUpperCase().includes(t)}var aM=function(e,t,r,n,o){return iM.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(m,h){return o?V1(h[o],u):h[i]?V1(h[a!=="children"?a:"label"],u):V1(h[s],u)},d=c?function(m){return rp(m)}:function(m){return m};return e.forEach(function(m){if(m[i]){var h=f(r,d(m));if(h)l.push(m);else{var v=m[i].filter(function(y){return f(r,d(y))});v.length&&l.push(T(T({},m),{},_({},i,v)))}return}f(r,d(m))&&l.push(m)}),l},[e,n,o,r,t])};var Py=E(N());var sM=0,P9=Yt();function T9(){var e;return P9?(e=sM,sM+=1):e="TEST_OR_SSR",e}function H1(e){var t=Py.useState(),r=F(t,2),n=r[0],o=r[1];return Py.useEffect(function(){o("rc_select_".concat(T9()))},[]),e||n}var cM=E(N());var lM=E(N());var N9=["children","value"],I9=["children"];function D9(e){var t=e,r=t.key,n=t.props,o=n.children,i=n.value,a=He(n,N9);return T({key:r,value:i!==void 0?i:r,children:o},a)}function Ty(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return yi(e).map(function(r,n){if(!lM.isValidElement(r)||!r.type)return null;var o=r,i=o.type.isSelectOptGroup,a=o.key,s=o.props,l=s.children,c=He(s,I9);return t||!i?D9(r):T(T({key:"__RC_SELECT_GRP__".concat(a===null?n:a,"__"),label:a},c),{},{options:Ty(l)})}).filter(function(r){return r})}var $9=function(t,r,n,o,i){return cM.useMemo(function(){var a=t,s=!t;s&&(a=Ty(r));var l=new Map,c=new Map,u=function(m,h,v){v&&typeof v=="string"&&m.set(h[v],h)},f=function d(m){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=0;v0?Ie(Le.options):Le.options}):Le})},Re=dr.useMemo(function(){return p?Ue(Fe):Fe},[Fe,p,se]),ae=dr.useMemo(function(){return Ik(Re,{fieldNames:oe,childrenAsData:z})},[Re,oe,z]),ge=function(be){var Ke=te(be);if(Ce(Ke),G&&(Ke.length!==Y.length||Ke.some(function(tt,kt){var Dt;return((Dt=Y[kt])===null||Dt===void 0?void 0:Dt.value)!==tt?.value}))){var Le=K?Ke:Ke.map(function(tt){return tt.value}),ze=Ke.map(function(tt){return rp(Ee(tt.value))});G(k?Le:Le[0],k?ze:ze[0])}},Te=dr.useState(null),he=F(Te,2),Ze=he[0],ct=he[1],_t=dr.useState(0),Pt=F(_t,2),mt=Pt[0],je=Pt[1],Pe=R!==void 0?R:n!=="combobox",qe=dr.useCallback(function(Ie,be){var Ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Le=Ke.source,ze=Le===void 0?"keyboard":Le;je(be),a&&n==="combobox"&&Ie!==null&&ze==="keyboard"&&ct(String(Ie))},[a,n]),Oe=function(be,Ke,Le){var ze=function(){var Qt,Lt=Ee(be);return[K?{label:Lt?.[oe.label],value:be,key:(Qt=Lt?.key)!==null&&Qt!==void 0?Qt:be}:be,rp(Lt)]};if(Ke&&m){var tt=ze(),kt=F(tt,2),Dt=kt[0],rr=kt[1];m(Dt,rr)}else if(!Ke&&h&&Le!=="clear"){var Ft=ze(),Tr=F(Ft,2),nr=Tr[0],xr=Tr[1];h(nr,xr)}},Me=Iy(function(Ie,be){var Ke,Le=k?be.selected:!0;Le?Ke=k?[].concat(ne(Y),[Ie]):[Ie]:Ke=Y.filter(function(ze){return ze.value!==Ie}),ge(Ke),Oe(Ie,Le),n==="combobox"?ct(""):(!np||d)&&(Z(""),ct(""))}),Ve=function(be,Ke){ge(be);var Le=Ke.type,ze=Ke.values;(Le==="remove"||Le==="clear")&&ze.forEach(function(tt){Oe(tt.value,!1,Le)})},xe=function(be,Ke){if(Z(be),ct(null),Ke.source==="submit"){var Le=(be||"").trim();if(Le){var ze=Array.from(new Set([].concat(ne(et),[Le])));ge(ze),Oe(Le,!0),Z("")}return}Ke.source!=="blur"&&(n==="combobox"&&ge(be),u?.(be))},nt=function(be){var Ke=be;n!=="tags"&&(Ke=be.map(function(ze){var tt=re.get(ze);return tt?.value}).filter(function(ze){return ze!==void 0}));var Le=Array.from(new Set([].concat(ne(et),ne(Ke))));ge(Le),Le.forEach(function(ze){Oe(ze,!0)})},Tt=dr.useMemo(function(){var Ie=O!==!1&&y!==!1;return T(T({},q),{},{flattenOptions:ae,onActiveValue:qe,defaultActiveFirstOption:Pe,onSelect:Me,menuItemSelectedIcon:P,rawValues:et,fieldNames:oe,virtual:Ie,direction:I,listHeight:$,listItemHeight:A,childrenAsData:z,maxCount:V,optionRender:w})},[V,q,ae,qe,Pe,Me,P,et,oe,O,y,I,$,A,z,w]);return dr.createElement(Tu.Provider,{value:Tt},dr.createElement(P1,le({},H,{id:j,prefixCls:i,ref:t,omitDomProps:M9,mode:n,displayValues:$e,onDisplayValuesChange:Ve,direction:I,searchValue:se,onSearch:xe,autoClearSearchValue:d,onSearchSplit:nt,dropdownMatchSelectWidth:y,OptionList:nM,emptyOptions:!ae.length,activeValue:Ze,activeDescendantId:"".concat(j,"_list_").concat(mt)})))}),U1=L9;U1.Option=ip;U1.OptGroup=op;var fM=U1;var dM=fM;var pM=E(Ne());function Ji(e,t,r){return(0,pM.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 Zi=(e,t)=>t||e;var ku=E(N());var qs=E(N()),sp=E(Ne());var uo=E(N());var z9=()=>{let[,e]=vr(),[t]=Ea("Empty"),n=new ht(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return uo.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},uo.createElement("title",null,t?.description||"Empty"),uo.createElement("g",{fill:"none",fillRule:"evenodd"},uo.createElement("g",{transform:"translate(24 31.67)"},uo.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),uo.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"}),uo.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)"}),uo.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"}),uo.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"})),uo.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"}),uo.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},uo.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),uo.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},mM=z9;var Us=E(N()),gM=E(N());var W9=()=>{let[,e]=vr(),[t]=Ea("Empty"),{colorFill:r,colorFillTertiary:n,colorFillQuaternary:o,colorBgContainer:i}=e,{borderColor:a,shadowColor:s,contentColor:l}=(0,gM.useMemo)(()=>({borderColor:new ht(r).onBackground(i).toHexString(),shadowColor:new ht(n).onBackground(i).toHexString(),contentColor:new ht(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}))))},hM=W9;var B9=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}}}}},vM=Gt("Empty",e=>{let{componentCls:t,controlHeightLG:r,calc:n}=e,o=ft(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n(r).mul(2.5).equal(),emptyImgHeightMD:r,emptyImgHeightSM:n(r).mul(.875).equal()});return[B9(o)]});var j9=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=yM,description:i,children:a,imageStyle:s,style:l,classNames:c,styles:u}=e,f=j9(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:d,direction:m,className:h,style:v,classNames:y,styles:g}=oo("empty"),p=d("empty",n),[x,b,S]=vM(p),[w]=Ea("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,sp.default)(b,S,p,h,{[`${p}-normal`]:o===xM,[`${p}-rtl`]:m==="rtl"},t,r,y.root,c?.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},g.root),v),u?.root),l)},f),qs.createElement("div",{className:(0,sp.default)(`${p}-image`,y.image,c?.image),style:Object.assign(Object.assign(Object.assign({},s),g.image),u?.image)},P),C&&qs.createElement("div",{className:(0,sp.default)(`${p}-description`,y.description,c?.description),style:Object.assign(Object.assign({},g.description),u?.description)},C),a&&qs.createElement("div",{className:(0,sp.default)(`${p}-footer`,y.footer,c?.footer),style:Object.assign(Object.assign({},g.footer),u?.footer)},a)))};q1.PRESENTED_IMAGE_DEFAULT=yM;q1.PRESENTED_IMAGE_SIMPLE=xM;var Au=q1;var V9=e=>{let{componentName:t}=e,{getPrefixCls:r}=(0,ku.useContext)(ot),n=r("empty");switch(t){case"Table":case"List":return ku.default.createElement(Au,{image:Au.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ku.default.createElement(Au,{image:Au.PRESENTED_IMAGE_SIMPLE,className:`${n}-small`});case"Table.filter":return null;default:return ku.default.createElement(Au,null)}},bM=V9;var G1=E(N());var H9=(e,t,r=void 0)=>{var n,o;let{variant:i,[e]:a}=G1.useContext(ot),s=G1.useContext(zA),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=BC.includes(c);return[c,u]},Gs=H9;var U9=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 q9(e,t){return e||U9(t)}var SM=q9;var CM=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"}},G9=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({},lr(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:Fv},[` ${o}${s}topLeft, ${i}${s}topLeft, ${o}${s}topRight, ${i}${s}topRight `]:{animationName:zv},[`${a}${s}bottomLeft`]:{animationName:Lv},[` ${a}${s}topLeft, ${a}${s}topRight `]:{animationName:Wv},"&-hidden":{display:"none"},[n]:Object.assign(Object.assign({},CM(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"},Pa),"&-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({},CM(e)),{color:e.colorTextDisabled})}),[`${l}:has(+ ${l})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Bv(e,"slide-up"),Bv(e,"slide-down"),Mv(e,"move-up"),Mv(e,"move-down")]},wM=G9;var K9=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:ie(t),itemLineHeight:ie(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},X9=e=>{let{multipleSelectItemHeight:t,selectHeight:r,lineWidth:n}=e;return e.calc(r).sub(t).div(2).sub(n).equal()},Y9=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({},Ta()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},Q9=(e,t)=>{let{componentCls:r,INTERNAL_FIXED_ITEM_MARGIN:n}=e,o=`${r}-selection-overflow`,i=e.multipleSelectItemHeight,a=X9(e),s=t?`${r}-${t}`:"",l=K9(e);return{[`${r}-multiple${s}`]:Object.assign(Object.assign({},Y9(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:`${ie(n)} 0`,lineHeight:ie(i),visibility:"hidden",content:'"\\a0"'}},[`${r}-selection-item`]:{height:l.itemHeight,lineHeight:ie(l.itemLineHeight)},[`${r}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:ie(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:ie(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 K1(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[Q9(e,t),o]}var J9=e=>{let{componentCls:t}=e,r=ft(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),n=ft(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[K1(e),K1(r,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},K1(n,"lg")]},EM=J9;function X1(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({},lr(e,!0)),{display:"flex",borderRadius:o,flex:"1 1 auto",[`${r}-selection-wrap:after`]:{lineHeight:ie(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:ie(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 ${ie(n)}`,[`${r}-selection-search-input`]:{height:i,fontSize:e.fontSize},"&:after":{lineHeight:ie(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 ${ie(n)}`,"&:after":{display:"none"}}}}}}}function Y1(e){let{componentCls:t}=e,r=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[X1(e),X1(ft(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${ie(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()}}}},X1(ft(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}var RM=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:d,controlItemBgHover:m,colorBgContainer:h,colorFillSecondary:v,colorBgContainerDisabled:y,colorTextDisabled:g,colorPrimaryHover:p,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:d,optionActiveBg:m,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:g,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:p,activeBorderColor:x,activeOutlineColor:b,selectAffixPadding:s}};var TM=(e,t)=>{let{componentCls:r,antCls:n,controlOutlineWidth:o}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{border:`${ie(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 ${ie(o)} ${t.activeOutlineColor}`,outline:0},[`${r}-prefix`]:{color:t.color}}}},OM=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},TM(e,t))}),Z9=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},TM(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),OM(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),OM(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:`${ie(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),NM=(e,t)=>{let{componentCls:r,antCls:n}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{background:t.bg,border:`${ie(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}}}},_M=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},NM(e,t))}),e7=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},NM(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),_M(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),_M(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:`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),t7=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${ie(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:`${ie(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}}}}),IM=(e,t)=>{let{componentCls:r,antCls:n}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{borderWidth:`0 0 ${ie(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}}}},PM=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},IM(e,t))}),r7=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},IM(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),PM(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),PM(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:`${ie(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),n7=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},Z9(e)),e7(e)),t7(e)),r7(e))}),DM=n7;var o7=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"}}}},i7=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"}}}},a7=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({},lr(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${r}-customize-input) ${r}-selector`]:Object.assign(Object.assign({},o7(e)),i7(e)),[`${r}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Pa),{[`> ${t}-typography`]:{display:"inline"}}),[`${r}-selection-placeholder`]:Object.assign(Object.assign({},Pa),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${r}-arrow`]:Object.assign(Object.assign({},Ta()),{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()}}}}}},s7=e=>{let{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},a7(e),Y1(e),EM(e),wM(e),{[`${t}-rtl`]:{direction:"rtl"}},Ms(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},$M=Gt("Select",(e,{rootPrefixCls:t})=>{let r=ft(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[s7(r),DM(r)]},RM,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var ea=E(N());var Dy=E(N());var l7={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"},AM=l7;var c7=function(t,r){return Dy.createElement(zt,le({},t,{ref:r,icon:AM}))},u7=Dy.forwardRef(c7),$y=u7;var Ay=E(N());var f7={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"},kM=f7;var d7=function(t,r){return Ay.createElement(zt,le({},t,{ref:r,icon:kM}))},p7=Ay.forwardRef(d7),ky=p7;var My=E(N());var m7={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"},MM=m7;var g7=function(t,r){return My.createElement(zt,le({},t,{ref:r,icon:MM}))},h7=My.forwardRef(g7),Fy=h7;function Q1({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 d=t??ea.createElement(gu,null),m=g=>e===null&&!a&&!u?null:ea.createElement(ea.Fragment,null,l!==!1&&g,a&&c),h=null;if(e!==void 0)h=m(e);else if(o)h=m(ea.createElement(Fl,{spin:!0}));else{let g=`${s}-suffix`;h=({open:p,showSearch:x})=>m(p&&x?ea.createElement(Fy,{className:g}):ea.createElement(ky,{className:g}))}let v=null;r!==void 0?v=r:i?v=ea.createElement($y,null):v=null;let y=null;return n!==void 0?y=n:y=ea.createElement(bv,null),{clearIcon:d,suffixIcon:h,itemIcon:v,removeIcon:y}}function J1(e,t){return t!==void 0?t:e!==null}var v7=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:d,dropdownClassName:m,listHeight:h=256,placement:v,listItemHeight:y,size:g,disabled:p,notFoundContent:x,status:b,builtinPlacements:S,dropdownMatchSelectWidth:w,popupMatchSelectWidth:C,direction:R,style:P,allowClear:O,variant:I,dropdownStyle:D,transitionName:$,tagRender:L,maxCount:A,prefix:M,dropdownRender:W,popupRender:B,onDropdownVisibleChange:K,onOpenChange:G,styles:V,classNames:H}=e,j=v7(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:U,direction:oe,virtual:Q,popupMatchSelectWidth:X,popupOverflow:se}=ni.useContext(ot),{showSearch:Z,style:q,styles:J,className:re,classNames:ee}=oo("select"),[,te]=vr(),de=y??te?.controlHeight,fe=z("select",s),ue=z(),Ce=R??oe,{compactSize:we,compactItemClassnames:_e}=Xo(fe,Ce),[ve,Y]=Gs("select",I,l),Ee=Ko(fe),[$e,et,ke]=$M(fe,Ee),Se=ni.useMemo(()=>{let{mode:Le}=e;if(Le!=="combobox")return Le===FM?"combobox":Le},[e.mode]),Be=Se==="multiple"||Se==="tags",Fe=J1(e.suffixIcon,e.showArrow),Ue=(r=C??w)!==null&&r!==void 0?r:X,Re=((n=V?.popup)===null||n===void 0?void 0:n.root)||((o=J.popup)===null||o===void 0?void 0:o.root)||D,ae=B||W,ge=G||K,{status:Te,hasFeedback:he,isFormItemInput:Ze,feedbackIcon:ct}=ni.useContext(fn),_t=Zi(Te,b),Pt;x!==void 0?Pt=x:Se==="combobox"?Pt=null:Pt=U?.("Select")||ni.createElement(bM,{componentName:"Select"});let{suffixIcon:mt,itemIcon:je,removeIcon:Pe,clearIcon:qe}=Q1(Object.assign(Object.assign({},j),{multiple:Be,hasFeedback:he,feedbackIcon:ct,showSuffixIcon:Fe,prefixCls:fe,componentName:"Select"})),Oe=O===!0?{clearIcon:qe}:O,Me=qr(j,["suffixIcon","itemIcon"]),Ve=(0,Z1.default)(((i=H?.popup)===null||i===void 0?void 0:i.root)||((a=ee?.popup)===null||a===void 0?void 0:a.root)||d||m,{[`${fe}-dropdown-${Ce}`]:Ce==="rtl"},u,ee.root,H?.root,ke,Ee,et),xe=so(Le=>{var ze;return(ze=g??we)!==null&&ze!==void 0?ze:Le}),nt=ni.useContext(Hr),Tt=p??nt,Ie=(0,Z1.default)({[`${fe}-lg`]:xe==="large",[`${fe}-sm`]:xe==="small",[`${fe}-rtl`]:Ce==="rtl",[`${fe}-${ve}`]:Y,[`${fe}-in-form-item`]:Ze},Ji(fe,_t,he),_e,re,c,ee.root,H?.root,u,ke,Ee,et),be=ni.useMemo(()=>v!==void 0?v:Ce==="rtl"?"bottomRight":"bottomLeft",[v,Ce]),[Ke]=Ev("SelectLike",Re?.zIndex);return $e(ni.createElement(dM,Object.assign({ref:t,virtual:Q,showSearch:Z},Me,{style:Object.assign(Object.assign(Object.assign(Object.assign({},J.root),V?.root),q),P),dropdownMatchSelectWidth:Ue,transitionName:Tv(ue,"slide-up",$),builtinPlacements:SM(S,se),listHeight:h,listItemHeight:de,mode:Se,prefixCls:fe,placement:be,direction:Ce,prefix:M,suffixIcon:mt,menuItemSelectedIcon:je,removeIcon:Pe,allowClear:Oe,notFoundContent:Pt,className:Ie,getPopupContainer:f||k,dropdownClassName:Ve,disabled:Tt,dropdownStyle:Object.assign(Object.assign({},Re),{zIndex:Ke}),maxCount:Be?A:void 0,tagRender:Be?L:void 0,dropdownRender:ae,onDropdownVisibleChange:ge})))},Mu=ni.forwardRef(y7),x7=WA(Mu,"dropdownAlign");Mu.SECRET_COMBOBOX_MODE_DO_NOT_USE=FM;Mu.Option=ip;Mu.OptGroup=op;Mu._InternalPanelDoNotUseOrYouWillBeFired=x7;var lp=Mu;var LM=E(N());function eE(){let[,e]=LM.useReducer(t=>t+1,0);return e}var bn=E(N()),jy=E(Ne());var tE=E(Ne()),rE=E(N());function Fu(e){var t=e.children,r=e.prefixCls,n=e.id,o=e.overlayInnerStyle,i=e.bodyClassName,a=e.className,s=e.style;return rE.createElement("div",{className:(0,tE.default)("".concat(r,"-content"),a),style:s},rE.createElement("div",{className:(0,tE.default)("".concat(r,"-inner"),i),id:n,role:"tooltip",style:o},typeof t=="function"?t():t))}var WM=E(Ne()),ql=E(N()),Wu=E(N());var Lu={shiftX:64,adjustY:1},zu={adjustX:1,shiftY:!0},oi=[0,0],zM={left:{points:["cr","cl"],overflow:zu,offset:[-4,0],targetOffset:oi},right:{points:["cl","cr"],overflow:zu,offset:[4,0],targetOffset:oi},top:{points:["bc","tc"],overflow:Lu,offset:[0,-4],targetOffset:oi},bottom:{points:["tc","bc"],overflow:Lu,offset:[0,4],targetOffset:oi},topLeft:{points:["bl","tl"],overflow:Lu,offset:[0,-4],targetOffset:oi},leftTop:{points:["tr","tl"],overflow:zu,offset:[-4,0],targetOffset:oi},topRight:{points:["br","tr"],overflow:Lu,offset:[0,-4],targetOffset:oi},rightTop:{points:["tl","tr"],overflow:zu,offset:[4,0],targetOffset:oi},bottomRight:{points:["tr","br"],overflow:Lu,offset:[0,4],targetOffset:oi},rightBottom:{points:["bl","br"],overflow:zu,offset:[4,0],targetOffset:oi},bottomLeft:{points:["tl","bl"],overflow:Lu,offset:[0,4],targetOffset:oi},leftBottom:{points:["br","bl"],overflow:zu,offset:[-4,0],targetOffset:oi}};var b7=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],S7=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,d=f===void 0?"rc-tooltip":f,m=t.children,h=t.onVisibleChange,v=t.afterVisibleChange,y=t.transitionName,g=t.animation,p=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,I=t.overlayInnerStyle,D=t.arrowContent,$=t.overlay,L=t.id,A=t.showArrow,M=A===void 0?!0:A,W=t.classNames,B=t.styles,K=He(t,b7),G=Jv(L),V=(0,Wu.useRef)(null);(0,Wu.useImperativeHandle)(r,function(){return V.current});var H=T({},K);"visible"in t&&(H.popupVisible=t.visible);var j=function(){return ql.createElement(Fu,{key:"content",prefixCls:d,id:G,bodyClassName:W?.body,overlayInnerStyle:T(T({},I),B?.body)},$)},k=function(){var U=ql.Children.only(m),oe=U?.props||{},Q=T(T({},oe),{},{"aria-describedby":$?G:null});return ql.cloneElement(m,Q)};return ql.createElement(Cy,le({popupClassName:(0,WM.default)(n,W?.root),prefixCls:d,popup:j,action:i,builtinPlacements:zM,popupPlacement:b,ref:V,popupAlign:w,getPopupContainer:O,onPopupVisibleChange:h,afterPopupVisibleChange:v,popupTransitionName:y,popupAnimation:g,popupMotion:p,defaultPopupVisible:P,autoDestroy:R,mouseLeaveDelay:c,popupStyle:T(T({},u),B?.root),mouseEnterDelay:s,arrow:M},H),k())},BM=(0,Wu.forwardRef)(S7);var jM=BM;function VM(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,d=u,m=2*o-s,h=l,v=2*o-i,y=a,g=o*Math.sqrt(2)+n*(Math.sqrt(2)-2),p=n*(Math.sqrt(2)-1),x=`polygon(${p}px 100%, 50% ${p}px, ${2*o-p}px 100%, ${p}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} ${d} L ${m} ${h} A ${n} ${n} 0 0 0 ${v} ${y} Z')`;return{arrowShadowWidth:g,arrowPath:b,arrowPolygon:x}}var HM=(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 ${ie(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}};var nE=8;function zy(e){let{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?nE:n}}function Ly(e,t){return e?t:{}}function oE(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"},HM(e,t,o)),{"&:before":{background:t}})]},Ly(!!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% - ${ie(a)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Ly(!!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% - ${ie(a)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Ly(!!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}})),Ly(!!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 C7(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 UM={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"]}},w7={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"]}},E7=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function iE(e){let{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:o,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(UM).forEach(c=>{let u=n&&w7[c]||UM[c],f=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=f,E7.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 d=zy({contentRadius:i,limitVerticalRadius:!0});if(n)switch(c){case"topLeft":case"bottomLeft":f.offset[0]=-d.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":f.offset[0]=d.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":f.offset[1]=-d.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":f.offset[1]=d.arrowOffsetHorizontal*2-s;break}f.overflow=C7(c,d,t,r),a&&(f.htmlRegion="visibleFirst")}),l}var Bu=E(N()),KM=E(Ne());var R7=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:d,sizePopupArrow:m}=e,h=t(a).add(m).add(d).equal(),v=t(a).mul(2).add(m).equal();return[{[r]:Object.assign(Object.assign(Object.assign(Object.assign({},lr(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:`${ie(e.calc(u).div(2).equal())} ${ie(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,nE)}},[`${r}-content`]:{position:"relative"}}),Uh(e,(y,{darkColor:g})=>({[`&${r}-${y}`]:{[`${r}-inner`]:{backgroundColor:g},[`${r}-arrow`]:{"--antd-arrow-background-color":g}}}))),{"&-rtl":{direction:"rtl"}})},oE(e,"var(--antd-arrow-background-color)"),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},O7=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},zy({contentRadius:e.borderRadius,limitVerticalRadius:!0})),VM(ft(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Wy=(e,t=!0)=>Gt("Tooltip",n=>{let{borderRadius:o,colorTextLightSolid:i,colorBgSpotlight:a}=n,s=ft(n,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a});return[R7(s),Ww(n,"zoom-big-fast")]},O7,{resetStyle:!1,injectStyle:t})(e);var GM=E(Ne());var _7=Ro.map(e=>`${e}-inverse`);function qM(e,t=!0){return t?[].concat(ne(_7),ne(Ro)).includes(e):Ro.includes(e)}function By(e,t){let r=qM(t),n=(0,GM.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 P7=e=>{let{prefixCls:t,className:r,placement:n="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=Bu.useContext(ot),l=s("tooltip",t),[c,u,f]=Wy(l),d=By(l,i),m=d.arrowStyle,h=Object.assign(Object.assign({},a),d.overlayStyle),v=(0,KM.default)(u,f,l,`${l}-pure`,`${l}-placement-${n}`,r,d.className);return c(Bu.createElement("div",{className:v,style:m},Bu.createElement("div",{className:`${l}-arrow`}),Bu.createElement(Fu,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:h}),o)))},XM=P7;var T7=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:d,destroyOnHidden:m,arrow:h=!0,title:v,overlay:y,builtinPlacements:g,arrowPointAtCenter:p=!1,autoAdjustOverflow:x=!0,motion:b,getPopupContainer:S,placement:w="top",mouseEnterDelay:C=.1,mouseLeaveDelay:R=.1,overlayStyle:P,rootClassName:O,overlayClassName:I,styles:D,classNames:$}=e,L=T7(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"]),A=!!h,[,M]=vr(),{getPopupContainer:W,getPrefixCls:B,direction:K,className:G,style:V,classNames:H,styles:j}=oo("tooltip"),k=Nh("Tooltip"),z=bn.useRef(null),U=()=>{var Fe;(Fe=z.current)===null||Fe===void 0||Fe.forceAlign()};bn.useImperativeHandle(t,()=>{var Fe,Ue;return{forceAlign:U,forcePopupAlign:()=>{k.deprecated(!1,"forcePopupAlign","forceAlign"),U()},nativeElement:(Fe=z.current)===null||Fe===void 0?void 0:Fe.nativeElement,popupElement:(Ue=z.current)===null||Ue===void 0?void 0:Ue.popupElement}});let[oe,Q]=sr(!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,se=Fe=>{var Ue,Re;Q(X?!1:Fe),X||((Ue=e.onOpenChange)===null||Ue===void 0||Ue.call(e,Fe),(Re=e.onVisibleChange)===null||Re===void 0||Re.call(e,Fe))},Z=bn.useMemo(()=>{var Fe,Ue;let Re=p;return typeof h=="object"&&(Re=(Ue=(Fe=h.pointAtCenter)!==null&&Fe!==void 0?Fe:h.arrowPointAtCenter)!==null&&Ue!==void 0?Ue:p),g||iE({arrowPointAtCenter:Re,autoAdjustOverflow:x,arrowWidth:A?M.sizePopupArrow:0,borderRadius:M.borderRadius,offset:M.marginXXS,visibleFirst:!0})},[p,h,g,M]),q=bn.useMemo(()=>v===0?v:y||v||"",[y,v]),J=bn.createElement(Ws,{space:!0},typeof q=="function"?q():q),re=B("tooltip",o),ee=B(),te=e["data-popover-inject"],de=oe;!("open"in e)&&!("visible"in e)&&X&&(de=!1);let fe=bn.isValidElement(c)&&!Sv(c)?c:bn.createElement("span",null,c),ue=fe.props,Ce=!ue.className||typeof ue.className=="string"?(0,jy.default)(ue.className,i||`${re}-open`):ue.className,[we,_e,ve]=Wy(re,!te),Y=By(re,s),Ee=Y.arrowStyle,$e=(0,jy.default)(I,{[`${re}-rtl`]:K==="rtl"},Y.className,O,_e,ve,G,H.root,$?.root),et=(0,jy.default)(H.body,$?.body),[ke,Se]=Ev("Tooltip",L.zIndex),Be=bn.createElement(jM,Object.assign({},L,{zIndex:ke,showArrow:A,placement:w,mouseEnterDelay:C,mouseLeaveDelay:R,prefixCls:re,classNames:{root:$e,body:et},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ee),j.root),V),P),D?.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},j.body),l),D?.body),Y.overlayStyle)},getTooltipContainer:S||a||W,ref:z,builtinPlacements:Z,overlay:J,visible:de,onVisibleChange:se,afterVisibleChange:u??f,arrowContent:bn.createElement("span",{className:`${re}-arrow-content`}),motion:{motionName:Tv(ee,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:m??!!d}),de?Go(fe,{className:Ce}):fe);return we(bn.createElement(wv.Provider,{value:Se},Be))}),YM=N7;YM._InternalPanelDoNotUseOrYouWillBeFired=XM;var Fa=YM;var QM=E(Ne());var Vy=E(N()),Gl=E(N()),I7=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],D7=(0,Gl.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,d=e.title,m=e.onChange,h=He(e,I7),v=(0,Gl.useRef)(null),y=(0,Gl.useRef)(null),g=sr(c,{value:a}),p=F(g,2),x=p[0],b=p[1];(0,Gl.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,QM.default)(n,o,_(_({},"".concat(n,"-checked"),x),"".concat(n,"-disabled"),s)),w=function(R){s||("checked"in e||b(R.target.checked),m?.({target:T(T({},e),{},{type:f,checked:R.target.checked}),stopPropagation:function(){R.stopPropagation()},preventDefault:function(){R.preventDefault()},nativeEvent:R.nativeEvent}))};return Vy.createElement("span",{className:S,title:d,style:i,ref:y},Vy.createElement("input",le({},h,{className:"".concat(n,"-input"),ref:v,onChange:w,disabled:s,checked:!!x,type:f})),Vy.createElement("span",{className:"".concat(n,"-inner")}))}),JM=D7;var ZM=E(N());function aE(e){let t=ZM.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 La(e){return ft(e,{inputAffixPadding:e.paddingXXS})}var za=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:d,colorPrimaryHover:m,colorPrimary:h,controlOutlineWidth:v,controlOutline:y,colorErrorOutline:g,colorWarningOutline:p,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,I=Math.round((i-R*n)/2*10)/10-o,D=Math.ceil((a-P*l)/2*10)/10-o;return{paddingBlock:Math.max(O,0),paddingBlockSM:Math.max(I,0),paddingBlockLG:Math.max(D,0),paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:f-o,addonBg:d,activeBorderColor:h,hoverBorderColor:m,activeShadow:`0 0 0 ${v}px ${y}`,errorActiveShadow:`0 0 0 ${v}px ${g}`,warningActiveShadow:`0 0 0 ${v}px ${p}`,hoverBg:x,activeBg:x,inputFontSize:C,inputFontSizeLG:P,inputFontSizeSM:R}};var $7=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),sE=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({},$7(ft(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),iF=(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}}),eF=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},iF(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Hy=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},iF(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},sE(e))}),eF(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),eF(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),tF=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Uy=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},tF(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),tF(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},sE(e))}})}),qy=(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)}},aF=(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}}},rF=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},aF(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Gy=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},aF(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},sE(e))}),rF(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),rF(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),nF=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Ky=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},nF(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),nF(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:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),sF=(e,t)=>({background:e.colorBgContainer,borderWidth:`${ie(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}}),oF=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},sF(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`}}),Xy=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},sF(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"}}),oF(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),oF(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)});var lE=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}});var lF=e=>{let{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:o}=e;return{padding:`${ie(t)} ${ie(o)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},cF=e=>({padding:`${ie(e.paddingBlockSM)} ${ie(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),cp=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${ie(e.paddingBlock)} ${ie(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},lE(e.colorTextPlaceholder)),{"&-lg":Object.assign({},lF(e)),"&-sm":Object.assign({},cF(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),cE=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({},lF(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},cF(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 ${ie(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${ie(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${ie(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:`${ie(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${r}-cascader-picker`]:{margin:`-9px ${ie(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}}}})}},A7=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({},lr(e)),cp(e)),Hy(e)),Gy(e)),qy(e)),Xy(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"}})}},k7=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 ${ie(e.inputAffixPadding)}`}}}},M7=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({},cp(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}}}),k7(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}}}}},F7=e=>{let{componentCls:t,borderRadiusLG:r,borderRadiusSM:n}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},lr(e)),cE(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}}},Uy(e)),Ky(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}}})})}},L7=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}}}}},z7=e=>{let{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Yy=Gt(["Input","Shared"],e=>{let t=ft(e,La(e));return[A7(t),M7(t)]},za,{resetFont:!1}),Qy=Gt(["Input","Component"],e=>{let t=ft(e,La(e));return[F7(t),L7(t),z7(t),Ms(t)]},za,{resetFont:!1});var W7=e=>{let{checkboxCls:t}=e,r=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},lr(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[r]:Object.assign(Object.assign({},lr(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({},lr(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({},ew(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${ie(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:`${ie(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 B7(e,t){let r=ft(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[W7(r)]}var Jy=Gt("Checkbox",(e,{prefixCls:t})=>[B7(t,e)]);var Qr=E(N()),uE=E(Ne());var uF=E(N()),j7=uF.default.createContext(null),Zy=j7;var V7=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:d}=e,m=V7(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:h,direction:v,checkbox:y}=Qr.useContext(ot),g=Qr.useContext(Zy),{isFormItemInput:p}=Qr.useContext(fn),x=Qr.useContext(Hr),b=(r=g?.disabled||d)!==null&&r!==void 0?r:x,S=Qr.useRef(m.value),w=Qr.useRef(null),C=zr(t,w);Qr.useEffect(()=>{g?.registerValue(m.value)},[]),Qr.useEffect(()=>{if(!f)return m.value!==S.current&&(g?.cancelValue(S.current),g?.registerValue(m.value),S.current=m.value),()=>g?.cancelValue(m.value)},[m.value]),Qr.useEffect(()=>{var B;!((B=w.current)===null||B===void 0)&&B.input&&(w.current.input.indeterminate=s)},[s]);let R=h("checkbox",n),P=Ko(R),[O,I,D]=Jy(R,P),$=Object.assign({},m);g&&!f&&($.onChange=(...B)=>{m.onChange&&m.onChange.apply(m,B),g.toggleOption&&g.toggleOption({label:a,value:m.value})},$.name=g.name,$.checked=g.value.includes(m.value));let L=(0,uE.default)(`${R}-wrapper`,{[`${R}-rtl`]:v==="rtl",[`${R}-wrapper-checked`]:$.checked,[`${R}-wrapper-disabled`]:b,[`${R}-wrapper-in-form-item`]:p},y?.className,o,i,D,P,I),A=(0,uE.default)({[`${R}-indeterminate`]:s},vu,I),[M,W]=aE($.onClick);return O(Qr.createElement(Dv,{component:"Checkbox",disabled:b},Qr.createElement("label",{className:L,style:Object.assign(Object.assign({},y?.style),l),onMouseEnter:c,onMouseLeave:u,onClick:M},Qr.createElement(JM,Object.assign({},$,{onClick:W,prefixCls:R,className:A,disabled:b,ref:C})),a!=null&&Qr.createElement("span",{className:`${R}-label`},a))))},U7=Qr.forwardRef(H7),e0=U7;var $n=E(N()),fE=E(Ne());var q7=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=q7(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:d}=$n.useContext(ot),[m,h]=$n.useState(u.value||r||[]),[v,y]=$n.useState([]);$n.useEffect(()=>{"value"in u&&h(u.value||[])},[u.value]);let g=$n.useMemo(()=>o.map(A=>typeof A=="string"||typeof A=="number"?{label:A,value:A}:A),[o]),p=A=>{y(M=>M.filter(W=>W!==A))},x=A=>{y(M=>[].concat(ne(M),[A]))},b=A=>{let M=m.indexOf(A.value),W=ne(m);M===-1?W.push(A.value):W.splice(M,1),"value"in u||h(W),c?.(W.filter(B=>v.includes(B)).sort((B,K)=>{let G=g.findIndex(H=>H.value===B),V=g.findIndex(H=>H.value===K);return G-V}))},S=f("checkbox",i),w=`${S}-group`,C=Ko(S),[R,P,O]=Jy(S,C),I=qr(u,["value","disabled"]),D=o.length?g.map(A=>$n.createElement(e0,{prefixCls:S,key:A.value.toString(),disabled:"disabled"in A?A.disabled:u.disabled,value:A.value,checked:m.includes(A.value),onChange:A.onChange,className:(0,fE.default)(`${w}-item`,A.className),style:A.style,title:A.title,id:A.id,required:A.required},A.label)):n,$=$n.useMemo(()=>({toggleOption:b,value:m,disabled:u.disabled,name:u.name,registerValue:x,cancelValue:p}),[b,m,u.disabled,u.name,x,p]),L=(0,fE.default)(w,{[`${w}-rtl`]:d==="rtl"},a,s,O,C,P);return R($n.createElement("div",Object.assign({className:L,style:l},I,{ref:t}),$n.createElement(Zy.Provider,{value:$},D)))});var fF=G7;var dE=e0;dE.Group=fF;dE.__ANT_CHECKBOX=!0;var up=dE;var Or=E(N());var t0=E(N());var K7={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"},dF=K7;var X7=function(t,r){return t0.createElement(zt,le({},t,{ref:r,icon:dF}))},Y7=t0.forwardRef(X7),pF=Y7;var Yl=E(Ne());function fp(){return typeof BigInt=="function"}function r0(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 n0(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function ta(e){var t=String(e);if(n0(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(".")&&ju(t)?t.length-t.indexOf(".")-1:0}function Wa(e){var t=String(e);if(n0(e)){if(e>Number.MAX_SAFE_INTEGER)return String(fp()?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 gF=function(){function e(t){if(at(this,e),_(this,"origin",""),_(this,"number",void 0),_(this,"empty",void 0),r0(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return st(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()?"":Wa(this.number):this.origin}}]),e}();function o0(e){return fp()?new mF(e):new gF(e)}function dp(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=o0(e).add("".concat(i,"0.").concat("0".repeat(r)).concat(10-u));return dp(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=o0;var PF=E(Ne());var Ba=E(Ne()),Sn=E(N());function vF(e){return!!(e.addonBefore||e.addonAfter)}function yF(e){return!!(e.prefix||e.suffix||e.allowClear)}function hF(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 Vu(e,t,r,n){if(r){var o=t;if(t.type==="click"){o=hF(t,e,""),r(o);return}if(e.type!=="file"&&n!==void 0){o=hF(t,e,n),r(o);return}r(o)}}function Kl(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 Q7=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,d=e.className,m=e.style,h=e.disabled,v=e.readOnly,y=e.focused,g=e.triggerFocus,p=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,I=e.onClear,D=a??i,$=O?.affixWrapper||"span",L=O?.groupWrapper||"span",A=O?.wrapper||"span",M=O?.groupAddon||"span",W=(0,Sn.useRef)(null),B=function(ee){var te;(te=W.current)!==null&&te!==void 0&&te.contains(ee.target)&&g?.()},K=yF(e),G=(0,Sn.cloneElement)(D,{value:x,className:(0,Ba.default)((r=D.props)===null||r===void 0?void 0:r.className,!K&&C?.variant)||null}),V=(0,Sn.useRef)(null);if(Sn.default.useImperativeHandle(t,function(){return{nativeElement:V.current||W.current}}),K){var H=null;if(p){var j=!h&&!v&&x,k="".concat(s,"-clear-icon"),z=ce(p)==="object"&&p!==null&&p!==void 0&&p.clearIcon?p.clearIcon:"\u2716";H=Sn.default.createElement("button",{type:"button",tabIndex:-1,onClick:function(ee){b?.(ee),I?.()},onMouseDown:function(ee){return ee.preventDefault()},className:(0,Ba.default)(k,_(_({},"".concat(k,"-hidden"),!j),"".concat(k,"-has-suffix"),!!c))},z)}var U="".concat(s,"-affix-wrapper"),oe=(0,Ba.default)(U,_(_(_(_(_({},"".concat(s,"-disabled"),h),"".concat(U,"-disabled"),h),"".concat(U,"-focused"),y),"".concat(U,"-readonly"),v),"".concat(U,"-input-with-clear-btn"),c&&p&&x),w?.affixWrapper,C?.affixWrapper,C?.variant),Q=(c||p)&&Sn.default.createElement("span",{className:(0,Ba.default)("".concat(s,"-suffix"),C?.suffix),style:P?.suffix},H,c);G=Sn.default.createElement($,le({className:oe,style:P?.affixWrapper,onClick:B},R?.affixWrapper,{ref:W}),l&&Sn.default.createElement("span",{className:(0,Ba.default)("".concat(s,"-prefix"),C?.prefix),style:P?.prefix},l),G,Q)}if(vF(e)){var X="".concat(s,"-group"),se="".concat(X,"-addon"),Z="".concat(X,"-wrapper"),q=(0,Ba.default)("".concat(s,"-wrapper"),X,w?.wrapper,C?.wrapper),J=(0,Ba.default)(Z,_({},"".concat(Z,"-disabled"),h),w?.group,C?.groupWrapper);G=Sn.default.createElement(L,{className:J,ref:V},Sn.default.createElement(A,{className:q},u&&Sn.default.createElement(M,{className:se},u),G,f&&Sn.default.createElement(M,{className:se},f)))}return Sn.default.cloneElement(G,{className:(0,Ba.default)((n=G.props)===null||n===void 0?void 0:n.className,d)||null,style:T(T({},(o=G.props)===null||o===void 0?void 0:o.style),m),hidden:S})}),Xl=Q7;var i0=E(Ne());var Br=E(N());var xF=E(N()),J7=["show"];function pp(e,t){return xF.useMemo(function(){var r={};t&&(r.show=ce(t)==="object"&&t.formatter?t.formatter:!!t),r=T(T({},r),e);var n=r,o=n.show,i=He(n,J7);return T(T({},i),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:i.strategy||function(a){return a.length}})},[e,t])}var Z7=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],eU=(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,d=e.htmlSize,m=e.className,h=e.maxLength,v=e.suffix,y=e.showCount,g=e.count,p=e.type,x=p===void 0?"text":p,b=e.classes,S=e.classNames,w=e.styles,C=e.onCompositionStart,R=e.onCompositionEnd,P=He(e,Z7),O=(0,Br.useState)(!1),I=F(O,2),D=I[0],$=I[1],L=(0,Br.useRef)(!1),A=(0,Br.useRef)(!1),M=(0,Br.useRef)(null),W=(0,Br.useRef)(null),B=function(Y){M.current&&Kl(M.current,Y)},K=sr(e.defaultValue,{value:e.value}),G=F(K,2),V=G[0],H=G[1],j=V==null?"":String(V),k=(0,Br.useState)(null),z=F(k,2),U=z[0],oe=z[1],Q=pp(g,y),X=Q.max||h,se=Q.strategy(j),Z=!!X&&se>X;(0,Br.useImperativeHandle)(t,function(){var ve;return{focus:B,blur:function(){var Ee;(Ee=M.current)===null||Ee===void 0||Ee.blur()},setSelectionRange:function(Ee,$e,et){var ke;(ke=M.current)===null||ke===void 0||ke.setSelectionRange(Ee,$e,et)},select:function(){var Ee;(Ee=M.current)===null||Ee===void 0||Ee.select()},input:M.current,nativeElement:((ve=W.current)===null||ve===void 0?void 0:ve.nativeElement)||M.current}}),(0,Br.useEffect)(function(){A.current&&(A.current=!1),$(function(ve){return ve&&f?!1:ve})},[f]);var q=function(Y,Ee,$e){var et=Ee;if(!L.current&&Q.exceedFormatter&&Q.max&&Q.strategy(Ee)>Q.max){if(et=Q.exceedFormatter(Ee,{max:Q.max}),Ee!==et){var ke,Se;oe([((ke=M.current)===null||ke===void 0?void 0:ke.selectionStart)||0,((Se=M.current)===null||Se===void 0?void 0:Se.selectionEnd)||0])}}else if($e.source==="compositionEnd")return;H(et),M.current&&Vu(M.current,Y,n,et)};(0,Br.useEffect)(function(){if(U){var ve;(ve=M.current)===null||ve===void 0||ve.setSelectionRange.apply(ve,ne(U))}},[U]);var J=function(Y){q(Y,Y.target.value,{source:"change"})},re=function(Y){L.current=!1,q(Y,Y.currentTarget.value,{source:"compositionEnd"}),R?.(Y)},ee=function(Y){a&&Y.key==="Enter"&&!A.current&&(A.current=!0,a(Y)),s?.(Y)},te=function(Y){Y.key==="Enter"&&(A.current=!1),l?.(Y)},de=function(Y){$(!0),o?.(Y)},fe=function(Y){A.current&&(A.current=!1),$(!1),i?.(Y)},ue=function(Y){H(""),B(),M.current&&Vu(M.current,Y,n)},Ce=Z&&"".concat(u,"-out-of-range"),we=function(){var Y=qr(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return Br.default.createElement("input",le({autoComplete:r},Y,{onChange:J,onFocus:de,onBlur:fe,onKeyDown:ee,onKeyUp:te,className:(0,i0.default)(u,_({},"".concat(u,"-disabled"),f),S?.input),style:w?.input,ref:M,size:d,type:x,onCompositionStart:function($e){L.current=!0,C?.($e)},onCompositionEnd:re}))},_e=function(){var Y=Number(X)>0;if(v||Q.show){var Ee=Q.showFormatter?Q.showFormatter({value:j,count:se,maxLength:X}):"".concat(se).concat(Y?" / ".concat(X):"");return Br.default.createElement(Br.default.Fragment,null,Q.show&&Br.default.createElement("span",{className:(0,i0.default)("".concat(u,"-show-count-suffix"),_({},"".concat(u,"-show-count-has-suffix"),!!v),S?.count),style:T({},w?.count)},Ee),v)}return null};return Br.default.createElement(Xl,le({},P,{prefixCls:u,className:(0,i0.default)(m,Ce),handleReset:ue,value:j,focused:D,triggerFocus:B,suffix:_e(),disabled:f,classes:b,classNames:S,styles:w,ref:W}),we())}),bF=eU;var SF=bF;function pE(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 Ot=E(N());var CF=E(N());function mE(e,t){var r=(0,CF.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],d=i.indexOf(f,c-1);d!==-1&&(u=d+1)}e.setSelectionRange(u,u)}catch(m){Vt(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(m.message))}}return[n,o]}var ii=E(N()),gE=E(Ne());var wF=E(N());var tU=function(){var t=(0,wF.useState)(!1),r=F(t,2),n=r[0],o=r[1];return yt(function(){o(Su())},[]),n},EF=tU;var rU=200,nU=600;function hE(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,rU)}s.current=setTimeout(S,nU)};ii.useEffect(function(){return function(){u(),l.current.forEach(function(p){return dt.cancel(p)})}},[]);var d=EF();if(d)return null;var m="".concat(t,"-handler"),h=(0,gE.default)(m,"".concat(m,"-up"),_({},"".concat(m,"-up-disabled"),o)),v=(0,gE.default)(m,"".concat(m,"-down"),_({},"".concat(m,"-down-disabled"),i)),y=function(){return l.current.push(dt(u))},g={unselectable:"on",role:"button",onMouseUp:y,onMouseLeave:y};return ii.createElement("div",{className:"".concat(m,"-wrap")},ii.createElement("span",le({},g,{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",le({},g,{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 vE(e){var t=typeof e=="number"?Wa(e):Ti(e).fullStr,r=t.includes(".");return r?Ti(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var a0=E(N());var RF=function(){var e=(0,a0.useRef)(0),t=function(){dt.cancel(e.current)};return(0,a0.useEffect)(function(){return t},[]),function(r){t(),e.current=dt(function(){r()})}};var oU=["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"],iU=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],OF=function(t,r){return t||r.isEmpty()?r.toString():r.toNumber()},_F=function(t){var r=Ni(t);return r.isInvalidate()?null:r},aU=Ot.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,d=e.readOnly,m=e.upHandler,h=e.downHandler,v=e.keyboard,y=e.changeOnWheel,g=y===void 0?!1:y,p=e.controls,x=p===void 0?!0:p,b=e.classNames,S=e.stringMode,w=e.parser,C=e.formatter,R=e.precision,P=e.decimalSeparator,O=e.onChange,I=e.onInput,D=e.onPressEnter,$=e.onStep,L=e.changeOnBlur,A=L===void 0?!0:L,M=e.domRef,W=He(e,oU),B="".concat(r,"-input"),K=Ot.useRef(null),G=Ot.useState(!1),V=F(G,2),H=V[0],j=V[1],k=Ot.useRef(!1),z=Ot.useRef(!1),U=Ot.useRef(!1),oe=Ot.useState(function(){return Ni(u??c)}),Q=F(oe,2),X=Q[0],se=Q[1];function Z(je){u===void 0&&se(je)}var q=Ot.useCallback(function(je,Pe){if(!Pe)return R>=0?R:Math.max(ta(je),ta(l))},[R,l]),J=Ot.useCallback(function(je){var Pe=String(je);if(w)return w(Pe);var qe=Pe;return P&&(qe=qe.replace(P,".")),qe.replace(/[^\w.-]+/g,"")},[w,P]),re=Ot.useRef(""),ee=Ot.useCallback(function(je,Pe){if(C)return C(je,{userTyping:Pe,input:String(re.current)});var qe=typeof je=="number"?Wa(je):je;if(!Pe){var Oe=q(qe,Pe);if(ju(qe)&&(P||Oe>=0)){var Me=P||".";qe=dp(qe,Me,Oe)}}return qe},[C,q,P]),te=Ot.useState(function(){var je=c??u;return X.isInvalidate()&&["string","number"].includes(ce(je))?Number.isNaN(je)?"":je:ee(X.toString(),!1)}),de=F(te,2),fe=de[0],ue=de[1];re.current=fe;function Ce(je,Pe){ue(ee(je.isInvalidate()?je.toString(!1):je.toString(!Pe),Pe))}var we=Ot.useMemo(function(){return _F(a)},[a,R]),_e=Ot.useMemo(function(){return _F(i)},[i,R]),ve=Ot.useMemo(function(){return!we||!X||X.isInvalidate()?!1:we.lessEquals(X)},[we,X]),Y=Ot.useMemo(function(){return!_e||!X||X.isInvalidate()?!1:X.lessEquals(_e)},[_e,X]),Ee=mE(K.current,H),$e=F(Ee,2),et=$e[0],ke=$e[1],Se=function(Pe){return we&&!Pe.lessEquals(we)?we:_e&&!_e.lessEquals(Pe)?_e:null},Be=function(Pe){return!Se(Pe)},Fe=function(Pe,qe){var Oe=Pe,Me=Be(Oe)||Oe.isEmpty();if(!Oe.isEmpty()&&!qe&&(Oe=Se(Oe)||Oe,Me=!0),!d&&!f&&Me){var Ve=Oe.toString(),xe=q(Ve,qe);return xe>=0&&(Oe=Ni(dp(Ve,".",xe)),Be(Oe)||(Oe=Ni(dp(Ve,".",xe,!0)))),Oe.equals(X)||(Z(Oe),O?.(Oe.isEmpty()?null:OF(S,Oe)),u===void 0&&Ce(Oe,qe)),Oe}return X},Ue=RF(),Re=function je(Pe){if(et(),re.current=Pe,ue(Pe),!z.current){var qe=J(Pe),Oe=Ni(qe);Oe.isNaN()||Fe(Oe,!0)}I?.(Pe),Ue(function(){var Me=Pe;w||(Me=Pe.replace(/。/g,".")),Me!==Pe&&je(Me)})},ae=function(){z.current=!0},ge=function(){z.current=!1,Re(K.current.value)},Te=function(Pe){Re(Pe.target.value)},he=function(Pe){var qe;if(!(Pe&&ve||!Pe&&Y)){k.current=!1;var Oe=Ni(U.current?vE(l):l);Pe||(Oe=Oe.negate());var Me=(X||Ni(0)).add(Oe.toString()),Ve=Fe(Me,!1);$?.(OF(S,Ve),{offset:U.current?vE(l):l,type:Pe?"up":"down"}),(qe=K.current)===null||qe===void 0||qe.focus()}},Ze=function(Pe){var qe=Ni(J(fe)),Oe;qe.isNaN()?Oe=Fe(X,Pe):Oe=Fe(qe,Pe),u!==void 0?Ce(X,!1):Oe.isNaN()||Ce(Oe,!1)},ct=function(){k.current=!0},_t=function(Pe){var qe=Pe.key,Oe=Pe.shiftKey;k.current=!0,U.current=Oe,qe==="Enter"&&(z.current||(k.current=!1),Ze(!1),D?.(Pe)),v!==!1&&!z.current&&["Up","ArrowUp","Down","ArrowDown"].includes(qe)&&(he(qe==="Up"||qe==="ArrowUp"),Pe.preventDefault())},Pt=function(){k.current=!1,U.current=!1};Ot.useEffect(function(){if(g&&H){var je=function(Oe){he(Oe.deltaY<0),Oe.preventDefault()},Pe=K.current;if(Pe)return Pe.addEventListener("wheel",je,{passive:!1}),function(){return Pe.removeEventListener("wheel",je)}}});var mt=function(){A&&Ze(!1),j(!1),k.current=!1};return _l(function(){X.isInvalidate()||Ce(X,!1)},[R,C]),_l(function(){var je=Ni(u);se(je);var Pe=Ni(J(fe));(!je.equals(Pe)||!k.current||C)&&Ce(je,k.current)},[u]),_l(function(){C&&ke()},[fe]),Ot.createElement("div",{ref:M,className:(0,PF.default)(r,n,_(_(_(_(_({},"".concat(r,"-focused"),H),"".concat(r,"-disabled"),f),"".concat(r,"-readonly"),d),"".concat(r,"-not-a-number"),X.isNaN()),"".concat(r,"-out-of-range"),!X.isInvalidate()&&!Be(X))),style:o,onFocus:function(){j(!0)},onBlur:mt,onKeyDown:_t,onKeyUp:Pt,onCompositionStart:ae,onCompositionEnd:ge,onBeforeInput:ct},x&&Ot.createElement(hE,{prefixCls:r,upNode:m,downNode:h,upDisabled:ve,downDisabled:Y,onStep:he}),Ot.createElement("div",{className:"".concat(B,"-wrap")},Ot.createElement("input",le({autoComplete:"off",role:"spinbutton","aria-valuemin":i,"aria-valuemax":a,"aria-valuenow":X.isInvalidate()?null:X.toString(),step:l},W,{ref:zr(K,t),className:B,value:fe,onChange:Te,disabled:f,readOnly:d}))))}),sU=Ot.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,d=e.classNames,m=He(e,iU),h=Ot.useRef(null),v=Ot.useRef(null),y=Ot.useRef(null),g=function(x){y.current&&Kl(y.current,x)};return Ot.useImperativeHandle(t,function(){return pE(y.current,{focus:g,nativeElement:h.current.nativeElement||v.current})}),Ot.createElement(Xl,{className:f,triggerFocus:g,prefixCls:i,value:a,disabled:r,style:n,prefix:s,suffix:l,addonAfter:u,addonBefore:c,classNames:d,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:h},Ot.createElement(aU,le({prefixCls:i,disabled:r,ref:y,domRef:v,className:d?.input},m)))}),TF=sU;var NF=TF;var IF=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({},za(e)),{controlWidth:90,handleWidth:n,handleFontSize:e.fontSize/2,handleVisible:r,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new ht(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:r===!0?1:0,handleVisibleWidth:r===!0?n:0})};var DF=({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}}}},lU=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:d,paddingInlineLG:m,colorIcon:h,motionDurationMid:v,handleHoverColor:y,handleOpacity:g,paddingInline:p,paddingBlock:x,handleBg:b,handleActiveBg:S,colorTextDisabled:w,borderRadiusSM:C,borderRadiusLG:R,controlWidth:P,handleBorderColor:O,filledHandleBg:I,lineHeightLG:D,calc:$}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},lr(e)),cp(e)),{display:"inline-block",width:P,margin:0,padding:0,borderRadius:o}),Hy(e,{[`${t}-handler-wrap`]:{background:b,[`${t}-handler-down`]:{borderBlockStart:`${ie(r)} ${n} ${O}`}}})),Gy(e,{[`${t}-handler-wrap`]:{background:I,[`${t}-handler-down`]:{borderBlockStart:`${ie(r)} ${n} ${O}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:b}}})),Xy(e,{[`${t}-handler-wrap`]:{background:b,[`${t}-handler-down`]:{borderBlockStart:`${ie(r)} ${n} ${O}`}}})),qy(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:D,borderRadius:R,[`input${t}-input`]:{height:$(s).sub($(r).mul(2)).equal(),padding:`${ie(d)} ${ie(m)}`}},"&-sm":{padding:0,fontSize:i,borderRadius:C,[`input${t}-input`]:{height:$(l).sub($(r).mul(2)).equal(),padding:`${ie(f)} ${ie(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},lr(e)),cE(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}}},Uy(e)),Ky(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({},lr(e)),{width:"100%",padding:`${ie(x)} ${ie(p)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${v} linear`,appearance:"textfield",fontSize:"inherit"}),lE(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:g,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:`${ie(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({},Ta()),{color:h,transition:`all ${v} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderEndEndRadius:o}},DF(e,"lg")),DF(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}})}]},cU=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:d}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${ie(r)} 0`}},cp(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:i,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:a,paddingInlineStart:l,[`input${t}-input`]:{padding:`${ie(u)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${ie(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 ${d}`}},[`&: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()}})}},$F=Gt("InputNumber",e=>{let t=ft(e,La(e));return[lU(t),cU(t),Ms(t)]},IF,{unitless:{handleOpacity:!0}});var uU=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}=Or.useContext(ot),o=Or.useRef(null);Or.useImperativeHandle(t,()=>o.current);let{className:i,rootClassName:a,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:f,prefix:d,suffix:m,bordered:h,readOnly:v,status:y,controls:g,variant:p}=e,x=uU(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]=$F(b,S),{compactSize:P,compactItemClassnames:O}=Xo(b,n),I=Or.createElement(pF,{className:`${b}-handler-up-inner`}),D=Or.createElement(ky,{className:`${b}-handler-down-inner`}),$=typeof g=="boolean"?g:void 0;typeof g=="object"&&(I=typeof g.upIcon>"u"?I:Or.createElement("span",{className:`${b}-handler-up-inner`},g.upIcon),D=typeof g.downIcon>"u"?D:Or.createElement("span",{className:`${b}-handler-down-inner`},g.downIcon));let{hasFeedback:L,status:A,isFormItemInput:M,feedbackIcon:W}=Or.useContext(fn),B=Zi(A,y),K=so(Q=>{var X;return(X=s??P)!==null&&X!==void 0?X:Q}),G=Or.useContext(Hr),V=l??G,[H,j]=Gs("inputNumber",p,h),k=L&&Or.createElement(Or.Fragment,null,W),z=(0,Yl.default)({[`${b}-lg`]:K==="large",[`${b}-sm`]:K==="small",[`${b}-rtl`]:n==="rtl",[`${b}-in-form-item`]:M},C),U=`${b}-group`,oe=Or.createElement(NF,Object.assign({ref:o,disabled:V,className:(0,Yl.default)(R,S,i,a,O),upHandler:I,downHandler:D,prefixCls:b,readOnly:v,controls:$,prefix:d,suffix:k||m,addonBefore:u&&Or.createElement(Ws,{form:!0,space:!0},u),addonAfter:f&&Or.createElement(Ws,{form:!0,space:!0},f),classNames:{input:z,variant:(0,Yl.default)({[`${b}-${H}`]:j},Ji(b,B,L)),affixWrapper:(0,Yl.default)({[`${b}-affix-wrapper-sm`]:K==="small",[`${b}-affix-wrapper-lg`]:K==="large",[`${b}-affix-wrapper-rtl`]:n==="rtl",[`${b}-affix-wrapper-without-controls`]:g===!1||V},C),wrapper:(0,Yl.default)({[`${U}-rtl`]:n==="rtl"},C),groupWrapper:(0,Yl.default)({[`${b}-group-wrapper-sm`]:K==="small",[`${b}-group-wrapper-lg`]:K==="large",[`${b}-group-wrapper-rtl`]:n==="rtl",[`${b}-group-wrapper-${H}`]:j},Ji(`${b}-group-wrapper`,B,L),C)}},x));return w(oe)}),kF=AF,fU=e=>Or.createElement(Da,{theme:{components:{InputNumber:{handleVisible:!0}}}},Or.createElement(AF,Object.assign({},e)));kF._InternalPanelDoNotUseOrYouWillBeFired=fU;var s0=kF;var fo=E(N()),Ql=E(Ne());var MF=E(N());var dU=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:MF.default.createElement(gu,null)}),t},l0=dU;var c0=E(N());function mp(e,t){let r=(0,c0.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,c0.useEffect)(()=>(t&&n(),()=>r.current.forEach(o=>{o&&clearTimeout(o)})),[]),n}function FF(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var pU=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:d,className:m,style:h,styles:v,rootClassName:y,onChange:g,classNames:p,variant:x}=e,b=pU(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:I,styles:D}=oo("input"),$=S("input",r),L=(0,fo.useRef)(null),A=Ko($),[M,W,B]=Yy($,y),[K]=Qy($,A),{compactSize:G,compactItemClassnames:V}=Xo($,w),H=so(ue=>{var Ce;return(Ce=i??G)!==null&&Ce!==void 0?Ce:ue}),j=fo.default.useContext(Hr),k=a??j,{status:z,hasFeedback:U,feedbackIcon:oe}=(0,fo.useContext)(fn),Q=Zi(z,o),X=FF(e)||!!U,se=(0,fo.useRef)(X),Z=mp(L,!0),q=ue=>{Z(),s?.(ue)},J=ue=>{Z(),l?.(ue)},re=ue=>{Z(),g?.(ue)},ee=(U||c)&&fo.default.createElement(fo.default.Fragment,null,c,U&&oe),te=l0(u??C),[de,fe]=Gs("input",x,n);return M(K(fo.default.createElement(SF,Object.assign({ref:zr(t,L),prefixCls:$,autoComplete:R},b,{disabled:k,onBlur:q,onFocus:J,style:Object.assign(Object.assign({},O),h),styles:Object.assign(Object.assign({},D),v),suffix:ee,allowClear:te,className:(0,Ql.default)(m,y,B,A,V,P),onChange:re,addonBefore:d&&fo.default.createElement(Ws,{form:!0,space:!0},d),addonAfter:f&&fo.default.createElement(Ws,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},p),I),{input:(0,Ql.default)({[`${$}-sm`]:H==="small",[`${$}-lg`]:H==="large",[`${$}-rtl`]:w==="rtl"},p?.input,I.input,W),variant:(0,Ql.default)({[`${$}-${de}`]:fe},Ji($,Q)),affixWrapper:(0,Ql.default)({[`${$}-affix-wrapper-sm`]:H==="small",[`${$}-affix-wrapper-lg`]:H==="large",[`${$}-affix-wrapper-rtl`]:w==="rtl"},W),wrapper:(0,Ql.default)({[`${$}-group-rtl`]:w==="rtl"},W),groupWrapper:(0,Ql.default)({[`${$}-group-wrapper-sm`]:H==="small",[`${$}-group-wrapper-lg`]:H==="large",[`${$}-group-wrapper-rtl`]:w==="rtl",[`${$}-group-wrapper-${de}`]:fe},Ji(`${$}-group-wrapper`,Q,U),W)})}))))}),Ks=mU;var RE=E(Ne());var It=E(N());var Kn=E(N()),zF=E(Ui());function u0(e,t,r){return(e-t)/(r-t)}function Hu(e,t,r,n){var o=u0(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 ra(e,t){return Array.isArray(e)?e[t]:e}var LF=E(Ne());var Uu=E(N());var yE=E(N()),gU=yE.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),po=gU,xE=yE.createContext({});var hU=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],vU=Uu.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,d=e.onChangeComplete,m=e.onFocus,h=e.onMouseEnter,v=He(e,hU),y=Uu.useContext(po),g=y.min,p=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,I=y.ariaValueTextFormatterForHandle,D=y.styles,$=y.classNames,L="".concat(r,"-handle"),A=function(z){b||i(z,o)},M=function(z){m?.(z,o)},W=function(z){h(z,o)},B=function(z){if(!b&&S){var U=null;switch(z.which||z.keyCode){case Qe.LEFT:U=x==="ltr"||x==="btt"?-1:1;break;case Qe.RIGHT:U=x==="ltr"||x==="btt"?1:-1;break;case Qe.UP:U=x!=="ttb"?1:-1;break;case Qe.DOWN:U=x!=="ttb"?-1:1;break;case Qe.HOME:U="min";break;case Qe.END:U="max";break;case Qe.PAGE_UP:U=2;break;case Qe.PAGE_DOWN:U=-2;break;case Qe.BACKSPACE:case Qe.DELETE:a(o);break}U!==null&&(z.preventDefault(),f(U,o))}},K=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:d?.();break}},G=Hu(x,n,g,p),V={};if(o!==null){var H;V={tabIndex:b?null:ra(C,o),role:"slider","aria-valuemin":g,"aria-valuemax":p,"aria-valuenow":n,"aria-disabled":b,"aria-label":ra(R,o),"aria-labelledby":ra(P,o),"aria-required":ra(O,o),"aria-valuetext":(H=ra(I,o))===null||H===void 0?void 0:H(n),"aria-orientation":x==="ltr"||x==="rtl"?"horizontal":"vertical",onMouseDown:A,onTouchStart:A,onFocus:M,onMouseEnter:W,onKeyDown:B,onKeyUp:K}}var j=Uu.createElement("div",le({ref:t,className:(0,LF.default)(L,_(_(_({},"".concat(L,"-").concat(o+1),o!==null&&w),"".concat(L,"-dragging"),c),"".concat(L,"-dragging-delete"),u),$.handle),style:T(T(T({},G),s),D.handle)},V,v));return l&&(j=l(j,{index:o,prefixCls:r,value:n,dragging:c,draggingDelete:u})),j}),bE=vU;var yU=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],xU=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,d=He(e,yU),m=Kn.useRef({}),h=Kn.useState(!1),v=F(h,2),y=v[0],g=v[1],p=Kn.useState(-1),x=F(p,2),b=x[0],S=x[1],w=function(I){S(I),g(!0)},C=function(I,D){w(D),f?.(I)},R=function(I,D){w(D)};Kn.useImperativeHandle(t,function(){return{focus:function(I){var D;(D=m.current[I])===null||D===void 0||D.focus()},hideHelp:function(){(0,zF.flushSync)(function(){g(!1)})}}});var P=T({prefixCls:r,onStartMove:o,onOffsetChange:i,render:s,onFocus:C,onMouseEnter:R},d);return Kn.createElement(Kn.Fragment,null,a.map(function(O,I){var D=c===I;return Kn.createElement(bE,le({ref:function(L){L?m.current[I]=L:delete m.current[I]},dragging:D,draggingDelete:D&&u,style:ra(n,I),key:I,value:O,valueIndex:I},P))}),l&&y&&Kn.createElement(bE,le({key:"a11y"},P,{value:a[b],valueIndex:null,dragging:c!==-1,draggingDelete:u,render:l,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),WF=xU;var SE=E(N());var BF=E(Ne()),f0=E(N());var bU=function(t){var r=t.prefixCls,n=t.style,o=t.children,i=t.value,a=t.onClick,s=f0.useContext(po),l=s.min,c=s.max,u=s.direction,f=s.includedStart,d=s.includedEnd,m=s.included,h="".concat(r,"-text"),v=Hu(u,i,l,c);return f0.createElement("span",{className:(0,BF.default)(h,_({},"".concat(h,"-active"),m&&f<=i&&i<=d)),style:T(T({},v),n),onMouseDown:function(g){g.stopPropagation()},onClick:function(){a(i)}},o)},jF=bU;var SU=function(t){var r=t.prefixCls,n=t.marks,o=t.onClick,i="".concat(r,"-mark");return n.length?SE.createElement("div",{className:i},n.map(function(a){var s=a.value,l=a.style,c=a.label;return SE.createElement(jF,{key:s,prefixCls:i,style:l,value:s,onClick:o},c)})):null},VF=SU;var Jl=E(N());var HF=E(Ne()),d0=E(N());var CU=function(t){var r=t.prefixCls,n=t.value,o=t.style,i=t.activeStyle,a=d0.useContext(po),s=a.min,l=a.max,c=a.direction,u=a.included,f=a.includedStart,d=a.includedEnd,m="".concat(r,"-dot"),h=u&&f<=n&&n<=d,v=T(T({},Hu(c,n,s,l)),typeof o=="function"?o(n):o);return h&&(v=T(T({},v),typeof i=="function"?i(n):i)),d0.createElement("span",{className:(0,HF.default)(m,_({},"".concat(m,"-active"),h)),style:v})},UF=CU;var wU=function(t){var r=t.prefixCls,n=t.marks,o=t.dots,i=t.style,a=t.activeStyle,s=Jl.useContext(po),l=s.min,c=s.max,u=s.step,f=Jl.useMemo(function(){var d=new Set;if(n.forEach(function(h){d.add(h.value)}),o&&u!==null)for(var m=l;m<=c;)d.add(m),m+=u;return Array.from(d)},[l,c,u,o,n]);return Jl.createElement("div",{className:"".concat(r,"-step")},f.map(function(d){return Jl.createElement(UF,{prefixCls:r,key:d,value:d,style:i,activeStyle:a})}))},qF=wU;var KF=E(Ne()),na=E(N());var GF=E(Ne()),p0=E(N());var EU=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=p0.useContext(po),u=c.direction,f=c.min,d=c.max,m=c.disabled,h=c.range,v=c.classNames,y="".concat(r,"-track"),g=u0(o,f,d),p=u0(i,f,d),x=function(C){!m&&s&&s(C,-1)},b={};switch(u){case"rtl":b.right="".concat(g*100,"%"),b.width="".concat(p*100-g*100,"%");break;case"btt":b.bottom="".concat(g*100,"%"),b.height="".concat(p*100-g*100,"%");break;case"ttb":b.top="".concat(g*100,"%"),b.height="".concat(p*100-g*100,"%");break;default:b.left="".concat(g*100,"%"),b.width="".concat(p*100-g*100,"%")}var S=l||(0,GF.default)(y,_(_({},"".concat(y,"-").concat(a+1),a!==null&&h),"".concat(r,"-track-draggable"),s),v.track);return p0.createElement("div",{className:S,style:T(T({},b),n),onMouseDown:x,onTouchStart:x})},CE=EU;var RU=function(t){var r=t.prefixCls,n=t.style,o=t.values,i=t.startPoint,a=t.onStartMove,s=na.useContext(po),l=s.included,c=s.range,u=s.min,f=s.styles,d=s.classNames,m=na.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 g=[],p=0;pOU&&u3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof v=="number"){var p,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;g==="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}),g==="unit"&&(S=S.filter(function(O){return O!==x}));var C=g==="unit"?x:b;p=S[0];var R=Math.abs(p-C);if(S.forEach(function(O){var I=Math.abs(O-C);I1){var P=ne(h);return P[y]=p,m(P,v-w,y,g)}return p}else{if(v==="min")return e;if(v==="max")return t}},u=function(h,v,y){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",p=h[y],x=c(h,v,y,g);return{value:x,changed:x!==p}},f=function(h){return i===null&&h===0||typeof i=="number"&&h3&&arguments[3]!==void 0?arguments[3]:"unit",p=h.map(l),x=p[y],b=c(p,v,y,g);if(p[y]=b,o===!1){var S=i||0;y>0&&p[y-1]!==x&&(p[y]=Math.max(p[y],p[y-1]+S)),y0;P-=1)for(var O=!0;f(p[P]-p[P-1])&&O;){var I=u(p,-1,P-1);p[P-1]=I.value,O=I.changed}for(var D=p.length-1;D>0;D-=1)for(var $=!0;f(p[D]-p[D-1])&&$;){var L=u(p,-1,D-1);p[D-1]=L.value,$=L.changed}for(var A=0;A=0?W:!1},[W,Fe]),Re=It.useMemo(function(){return Object.keys(Q||{}).map(function(De){var ye=Q[De],rt={value:Number(De)};return ye&&ce(ye)==="object"&&!It.isValidElement(ye)&&("label"in ye||"style"in ye)?(rt.style=ye.style,rt.label=ye.label):rt.label=ye,rt}).filter(function(De){var ye=De.label;return ye||typeof ye=="number"}).sort(function(De,ye){return De.value-ye.value})},[Q]),ae=wE(Se,Be,Fe,Re,A,Ue),ge=F(ae,2),Te=ge[0],he=ge[1],Ze=sr(C,{value:w}),ct=F(Ze,2),_t=ct[0],Pt=ct[1],mt=It.useMemo(function(){var De=_t==null?[]:Array.isArray(_t)?_t:[_t],ye=F(De,1),rt=ye[0],Nt=rt===void 0?Se:rt,Mt=_t===null?[]:[Nt];if(Y){if(Mt=ne(De),P||_t===void 0){var pn=P>=0?P+1:2;for(Mt=Mt.slice(0,pn);Mt.length=0&&ue.current.focus(De)}Dt(null)},[kt]);var Ft=It.useMemo(function(){return $e&&Fe===null?!1:$e},[$e,Fe]),Tr=wt(function(De,ye){be(De,ye),I?.(je(mt))}),nr=xe!==-1;It.useEffect(function(){if(!nr){var De=mt.lastIndexOf(nt);ue.current.focus(De)}},[nr]);var xr=It.useMemo(function(){return ne(Ie).sort(function(De,ye){return De-ye})},[Ie]),wn=It.useMemo(function(){return Y?[xr[0],xr[xr.length-1]]:[Se,xr[0]]},[xr,Y,Se]),Qt=F(wn,2),Lt=Qt[0],Ae=Qt[1];It.useImperativeHandle(t,function(){return{focus:function(){ue.current.focus(0)},blur:function(){var ye,rt=document,Nt=rt.activeElement;(ye=Ce.current)!==null&&ye!==void 0&&ye.contains(Nt)&&Nt?.blur()}}}),It.useEffect(function(){m&&ue.current.focus(0)},[]);var We=It.useMemo(function(){return{min:Se,max:Be,direction:we,disabled:u,keyboard:d,step:Fe,included:V,includedStart:Lt,includedEnd:Ae,range:Y,tabIndex:re,ariaLabelForHandle:ee,ariaLabelledByForHandle:te,ariaRequired:de,ariaValueTextFormatterForHandle:fe,styles:s||{},classNames:a||{}}},[Se,Be,we,u,d,Fe,V,Lt,Ae,Y,re,ee,te,de,fe,s,a]);return It.createElement(po.Provider,{value:We},It.createElement("div",{ref:Ce,className:(0,RE.default)(n,o,_(_(_(_({},"".concat(n,"-disabled"),u),"".concat(n,"-vertical"),K),"".concat(n,"-horizontal"),!K),"".concat(n,"-with-marks"),Re.length)),style:i,onMouseDown:Le,id:l},It.createElement("div",{className:(0,RE.default)("".concat(n,"-rail"),a?.rail),style:T(T({},z),s?.rail)}),q!==!1&&It.createElement(XF,{prefixCls:n,style:j,values:mt,startPoint:H,onStartMove:Ft?Tr:void 0}),It.createElement(qF,{prefixCls:n,marks:Re,dots:X,style:U,activeStyle:oe}),It.createElement(WF,{ref:ue,prefixCls:n,style:k,values:Ie,draggingIndex:xe,draggingDelete:Tt,onStartMove:Tr,onOffsetChange:rr,onFocus:h,onBlur:v,handleRender:se,activeHandleRender:Z,onChangeComplete:qe,onDelete:Ee?Oe:void 0}),It.createElement(VF,{prefixCls:n,marks:Re,onClick:Ke})))}),ZF=PU;var eL=ZF;var oa=E(N()),Ku=E(Ne());var tL=E(N()),TU=(0,tL.createContext)({}),rL=TU;var qu=E(N()),OE=E(N());var NU=qu.forwardRef((e,t)=>{let{open:r,draggingDelete:n,value:o}=e,i=(0,OE.useRef)(null),a=r&&!n,s=(0,OE.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 qu.useEffect(()=>(a?c():l(),l),[a,e.title,o]),qu.createElement(Fa,Object.assign({ref:zr(i,t)},e,{open:a}))}),_E=NU;var IU=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:d,handleActiveOutlineColor:m,handleLineWidth:h,handleLineWidthHover:v,motionDurationMid:y}=e;return{[t]:Object.assign(Object.assign({},lr(e)),{position:"relative",height:n,margin:`${ie(a)} ${ie(i)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${ie(i)} ${ie(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 ${ie(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 ${ie(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 ${ie(v)} ${d}`,outline:`6px solid ${m}`,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:`${ie(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 ${ie(h)} ${l}`,insetInlineStart:0,insetBlockStart:0},[` ${t}-mark-text, ${t}-dot `]:{cursor:"not-allowed !important"}},[`&-tooltip ${r}-tooltip-inner`]:{minWidth:"unset"}})}},nL=(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",d=t?"top":"insetInlineStart",m=s(n).mul(3).sub(o).div(2).equal(),h=s(o).sub(n).div(2).equal(),v=t?{borderWidth:`${ie(h)} 0`,transform:`translateY(${ie(s(h).mul(-1).equal())})`}:{borderWidth:`0 ${ie(h)}`,transform:`translateX(${ie(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]:m},[`${r}-mark`]:{insetInlineStart:0,top:0,[d]:s(n).mul(3).add(t?0:a).equal(),[c]:"100%"},[`${r}-step`]:{insetInlineStart:0,top:0,[d]:n,[c]:"100%",[u]:n},[`${r}-dot`]:{position:"absolute",[f]:s(n).sub(i).div(2).equal()}}},DU=e=>{let{componentCls:t,marginPartWithMark:r}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},nL(e,!0)),{[`&${t}-with-marks`]:{marginBottom:r}})}},$U=e=>{let{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},nL(e,!1)),{height:"100%"})}},AU=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 ht(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 ht(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},oL=Gt("Slider",e=>{let t=ft(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[IU(t),DU(t),$U(t)]},AU);var Gu=E(N());function gp(){let[e,t]=Gu.useState(!1),r=Gu.useRef(null),n=()=>{dt.cancel(r.current)},o=i=>{n(),i?t(i):r.current=dt(()=>{t(i)})};return Gu.useEffect(()=>n,[]),[e,o]}var kU=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 FU=oa.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:d,tooltip:m={},onChangeComplete:h,classNames:v,styles:y}=e,g=kU(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:p}=e,{getPrefixCls:x,direction:b,className:S,style:w,classNames:C,styles:R,getPopupContainer:P}=oo("slider"),O=oa.default.useContext(Hr),I=s??O,{handleRender:D,direction:$}=oa.default.useContext(rL),A=($||b)==="rtl",[M,W]=gp(),[B,K]=gp(),G=Object.assign({},m),{open:V,placement:H,getPopupContainer:j,prefixCls:k,formatter:z}=G,U=V??u,oe=(M||B)&&U!==!1,Q=MU(z,c),[X,se]=gp(),Z=Y=>{h?.(Y),se(!1)},q=(Y,Ee)=>Y||(Ee?A?"left":"right":"top"),J=x("slider",r),[re,ee,te]=oL(J),de=(0,Ku.default)(o,S,C.root,v?.root,i,{[`${J}-rtl`]:A,[`${J}-lock`]:X},ee,te);A&&!g.vertical&&(g.reverse=!g.reverse),oa.default.useEffect(()=>{let Y=()=>{dt(()=>{K(!1)},1)};return document.addEventListener("mouseup",Y),()=>{document.removeEventListener("mouseup",Y)}},[]);let fe=n&&!U,ue=D||((Y,Ee)=>{let{index:$e}=Ee,et=Y.props;function ke(Ue,Re,ae){var ge,Te,he,Ze;ae&&((Te=(ge=g)[Ue])===null||Te===void 0||Te.call(ge,Re)),(Ze=(he=et)[Ue])===null||Ze===void 0||Ze.call(he,Re)}let Se=Object.assign(Object.assign({},et),{onMouseEnter:Ue=>{W(!0),ke("onMouseEnter",Ue)},onMouseLeave:Ue=>{W(!1),ke("onMouseLeave",Ue)},onMouseDown:Ue=>{K(!0),se(!0),ke("onMouseDown",Ue)},onFocus:Ue=>{var Re;K(!0),(Re=g.onFocus)===null||Re===void 0||Re.call(g,Ue),ke("onFocus",Ue,!0)},onBlur:Ue=>{var Re;K(!1),(Re=g.onBlur)===null||Re===void 0||Re.call(g,Ue),ke("onBlur",Ue,!0)}}),Be=oa.default.cloneElement(Y,Se),Fe=(!!U||oe)&&Q!==null;return fe?Be:oa.default.createElement(_E,Object.assign({},G,{prefixCls:x("tooltip",k??l),title:Q?Q(Ee.value):"",value:Ee.value,open:Fe,placement:q(H??d,p),key:$e,classNames:{root:`${J}-tooltip`},getPopupContainer:j||f||P}),Be)}),Ce=fe?(Y,Ee)=>{let $e=oa.default.cloneElement(Y,{style:Object.assign(Object.assign({},Y.props.style),{visibility:"hidden"})});return oa.default.createElement(_E,Object.assign({},G,{prefixCls:x("tooltip",k??l),title:Q?Q(Ee.value):"",open:Q!==null&&oe,placement:q(H??d,p),key:"tooltip",classNames:{root:`${J}-tooltip`},getPopupContainer:j||f||P,draggingDelete:Ee.draggingDelete}),$e)}:void 0,we=Object.assign(Object.assign(Object.assign(Object.assign({},R.root),w),y?.root),a),_e=Object.assign(Object.assign({},R.tracks),y?.tracks),ve=(0,Ku.default)(C.tracks,v?.tracks);return re(oa.default.createElement(eL,Object.assign({},g,{classNames:Object.assign({handle:(0,Ku.default)(C.handle,v?.handle),rail:(0,Ku.default)(C.rail,v?.rail),track:(0,Ku.default)(C.track,v?.track)},ve?{tracks:ve}:{}),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:g.step,range:n,className:de,style:we,disabled:I,ref:t,prefixCls:J,handleRender:ue,activeHandleRender:Ce,onChangeComplete:Z})))}),PE=FU;function TE(e){return["small","middle","large"].includes(e)}var g0=E(N()),lL=E(Ne());var iL=E(Ne()),NE=["wrap","nowrap","wrap-reverse"],IE=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],DE=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],LU=(e,t)=>{let r=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${r}`]:r&&NE.includes(r)}},zU=(e,t)=>{let r={};return DE.forEach(n=>{r[`${e}-align-${n}`]=t.align===n}),r[`${e}-align-stretch`]=!t.align&&!!t.vertical,r},WU=(e,t)=>{let r={};return IE.forEach(n=>{r[`${e}-justify-${n}`]=t.justify===n}),r};function BU(e,t){return(0,iL.default)(Object.assign(Object.assign(Object.assign({},LU(e,t)),zU(e,t)),WU(e,t)))}var aL=BU;var jU=e=>{let{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},VU=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},HU=e=>{let{componentCls:t}=e,r={};return NE.forEach(n=>{r[`${t}-wrap-${n}`]={flexWrap:n}}),r},UU=e=>{let{componentCls:t}=e,r={};return DE.forEach(n=>{r[`${t}-align-${n}`]={alignItems:n}}),r},qU=e=>{let{componentCls:t}=e,r={};return IE.forEach(n=>{r[`${t}-justify-${n}`]={justifyContent:n}}),r},GU=()=>({}),sL=Gt("Flex",e=>{let{paddingXS:t,padding:r,paddingLG:n}=e,o=ft(e,{flexGapSM:t,flexGap:r,flexGapLG:n});return[jU(o),VU(o),HU(o),UU(o),qU(o)]},GU,{resetStyle:!1});var KU=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=KU(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:d,direction:m,getPrefixCls:h}=g0.default.useContext(ot),v=h("flex",r),[y,g,p]=sL(v),x=c??d?.vertical,b=(0,lL.default)(o,n,d?.className,v,g,p,aL(v,e),{[`${v}-rtl`]:m==="rtl",[`${v}-gap-${s}`]:TE(s),[`${v}-vertical`]:x}),S=Object.assign(Object.assign({},d?.style),i);return a&&(S.flex=a),s&&!TE(s)&&(S.gap=s),y(g0.default.createElement(u,Object.assign({ref:t,className:b,style:S},qr(f,["justify","wrap","align"])),l))}),ja=XU;var h0=E(N());var YU={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"},cL=YU;var QU=function(t,r){return h0.createElement(zt,le({},t,{ref:r,icon:cL}))},JU=h0.forwardRef(QU),v0=JU;var $E=E(N()),hp=E(N()),uL=E(Ne());var ZU=e=>{let{getPrefixCls:t,direction:r}=(0,hp.useContext)(ot),{prefixCls:n,className:o}=e,i=t("input-group",n),a=t("input"),[s,l,c]=Qy(a),u=(0,uL.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,hp.useContext)(fn),d=(0,hp.useMemo)(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return s($E.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},$E.createElement(fn.Provider,{value:d},e.children)))},fL=ZU;var pr=E(N()),gL=E(Ne());var eq=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}}}},dL=Gt(["Input","OTP"],e=>{let t=ft(e,La(e));return[eq(t)]},za);var ai=E(N()),pL=E(Ne());var tq=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=tq(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:c}=ai.useContext(ot),u=c("otp"),f=typeof s=="string"?s:n,d=ai.useRef(null);ai.useImperativeHandle(t,()=>d.current);let m=g=>{o(a,g.target.value)},h=()=>{dt(()=>{var g;let p=(g=d.current)===null||g===void 0?void 0:g.input;document.activeElement===p&&p&&p.select()})},v=g=>{let{key:p,ctrlKey:x,metaKey:b}=g;p==="ArrowLeft"?i(a-1):p==="ArrowRight"?i(a+1):p==="z"&&(x||b)&&g.preventDefault(),h()},y=g=>{g.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:d,value:n,onInput:m,onFocus:h,onKeyDown:v,onKeyUp:y,onMouseDown:h,onMouseUp:h,className:(0,pL.default)(r,{[`${u}-mask-input`]:s})})))}),mL=rq;var nq=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?pr.createElement("span",{className:`${r}-separator`},o):null},iq=pr.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:d,autoFocus:m,mask:h,type:v,onInput:y,inputMode:g}=e,p=nq(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:x,direction:b}=pr.useContext(ot),S=x("otp",r),w=qo(p,{aria:!0,data:!0,attr:!0}),[C,R,P]=dL(S),O=so(k=>o??k),I=pr.useContext(fn),D=Zi(I.status,d),$=pr.useMemo(()=>Object.assign(Object.assign({},I),{status:D,hasFeedback:!1,feedbackIcon:null}),[I,D]),L=pr.useRef(null),A=pr.useRef({});pr.useImperativeHandle(t,()=>({focus:()=>{var k;(k=A.current[0])===null||k===void 0||k.focus()},blur:()=>{var k;for(let z=0;zl?l(k):k,[W,B]=pr.useState(()=>y0(M(i||"")));pr.useEffect(()=>{a!==void 0&&B(y0(a))},[a]);let K=wt(k=>{B(k),y&&y(k),s&&k.length===n&&k.every(z=>z)&&k.some((z,U)=>W[U]!==z)&&s(k.join(""))}),G=wt((k,z)=>{let U=ne(W);for(let Q=0;Q=0&&!U[Q];Q-=1)U.pop();let oe=M(U.map(Q=>Q||" ").join(""));return U=y0(oe).map((Q,X)=>Q===" "&&!U[X]?U[X]:Q),U}),V=(k,z)=>{var U;let oe=G(k,z),Q=Math.min(k+z.length,n-1);Q!==k&&oe[k]!==void 0&&((U=A.current[Q])===null||U===void 0||U.focus()),K(oe)},H=k=>{var z;(z=A.current[k])===null||z===void 0||z.focus()},j={variant:u,disabled:f,status:D,mask:h,type:v,inputMode:g};return C(pr.createElement("div",Object.assign({},w,{ref:L,className:(0,gL.default)(S,{[`${S}-sm`]:O==="small",[`${S}-lg`]:O==="large",[`${S}-rtl`]:b==="rtl"},P,R),role:"group"}),pr.createElement(fn.Provider,{value:$},Array.from({length:n}).map((k,z)=>{let U=`otp-${z}`,oe=W[z]||"";return pr.createElement(pr.Fragment,{key:U},pr.createElement(mL,Object.assign({ref:Q=>{A.current[z]=Q},index:z,size:O,htmlSize:1,className:`${S}-input`,onChange:V,value:oe,onActiveChange:H,autoFocus:z===0&&m},j)),ze?kn.createElement(v0,null):kn.createElement(yL,null),fq={click:"onClick",hover:"onMouseOver"},dq=kn.forwardRef((e,t)=>{let{disabled:r,action:n="click",visibilityToggle:o=!0,iconRender:i=uq}=e,a=kn.useContext(Hr),s=r??a,l=typeof o=="object"&&o.visible!==void 0,[c,u]=(0,b0.useState)(()=>l?o.visible:!1),f=(0,b0.useRef)(null);kn.useEffect(()=>{l&&u(o.visible)},[l,o]);let d=mp(f),m=()=>{var O;if(s)return;c&&d();let I=!c;u(I),typeof o=="object"&&((O=o.onVisibleChange)===null||O===void 0||O.call(o,I))},h=O=>{let I=fq[n]||"",D=i(c),$={[I]:m,className:`${O}-icon`,key:"passwordIcon",onMouseDown:L=>{L.preventDefault()},onMouseUp:L=>{L.preventDefault()}};return kn.cloneElement(kn.isValidElement(D)?D:kn.createElement("span",null,D),$)},{className:v,prefixCls:y,inputPrefixCls:g,size:p}=e,x=cq(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:b}=kn.useContext(ot),S=b("input",g),w=b("input-password",y),C=o&&h(w),R=(0,xL.default)(w,v,{[`${w}-${p}`]:!!p}),P=Object.assign(Object.assign({},qr(x,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:R,prefixCls:S,suffix:C});return p&&(P.size=p),kn.createElement(Ks,Object.assign({ref:zr(t,f)},P))}),bL=dq;var Ii=E(N());var SL=E(Ne());var pq=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:d,onCompositionStart:m,onCompositionEnd:h,variant:v,onPressEnter:y}=e,g=pq(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:p,direction:x}=Ii.useContext(ot),b=Ii.useRef(!1),S=p("input-search",r),w=p("input",n),{compactSize:C}=Xo(S,x),R=so(j=>{var k;return(k=i??C)!==null&&k!==void 0?k:j}),P=Ii.useRef(null),O=j=>{j?.target&&j.type==="click"&&f&&f(j.target.value,j,{source:"clear"}),d?.(j)},I=j=>{var k;document.activeElement===((k=P.current)===null||k===void 0?void 0:k.input)&&j.preventDefault()},D=j=>{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,j,{source:"input"})},$=j=>{b.current||c||(y?.(j),D(j))},L=typeof s=="boolean"?Ii.createElement(Fy,null):null,A=`${S}-button`,M,W=s||{},B=W.type&&W.type.__ANT_BUTTON===!0;B||W.type==="button"?M=Go(W,Object.assign({onMouseDown:I,onClick:j=>{var k,z;(z=(k=W?.props)===null||k===void 0?void 0:k.onClick)===null||z===void 0||z.call(k,j),D(j)},key:"enterButton"},B?{className:A,size:R}:{})):M=Ii.createElement(jd,{className:A,color:s?"primary":"default",size:R,disabled:u,key:"enterButton",onMouseDown:I,onClick:D,loading:c,icon:L,variant:v==="borderless"||v==="filled"||v==="underlined"?"text":s?"solid":void 0},s),l&&(M=[M,Go(l,{key:"addonAfter"})]);let K=(0,SL.default)(S,{[`${S}-rtl`]:x==="rtl",[`${S}-${R}`]:!!R,[`${S}-with-button`]:!!s},o),G=j=>{b.current=!0,m?.(j)},V=j=>{b.current=!1,h?.(j)},H=Object.assign(Object.assign({},g),{className:K,prefixCls:w,type:"search",size:R,variant:v,onPressEnter:$,onCompositionStart:G,onCompositionEnd:V,addonAfter:M,suffix:a,onChange:O,disabled:u});return Ii.createElement(Ks,Object.assign({ref:zr(P,t)},H))}),CL=mq;var No=E(N()),_L=E(N()),yp=E(Ne());var vp=E(Ne());var Jr=E(N());var wL=E(Ne());var Cn=E(N());var gq=` 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; `,hq=["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"],AE={},To;function vq(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&&AE[r])return AE[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=hq.map(function(c){return"".concat(c,":").concat(n.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:a,boxSizing:o};return t&&r&&(AE[r]=l),l}function kE(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;To||(To=document.createElement("textarea"),To.setAttribute("tab-index","-1"),To.setAttribute("aria-hidden","true"),To.setAttribute("name","hiddenTextarea"),document.body.appendChild(To)),e.getAttribute("wrap")?To.setAttribute("wrap",e.getAttribute("wrap")):To.removeAttribute("wrap");var o=vq(e,t),i=o.paddingSize,a=o.borderSize,s=o.boxSizing,l=o.sizingStyle;To.setAttribute("style","".concat(l,";").concat(gq)),To.value=e.value||e.placeholder||"";var c=void 0,u=void 0,f,d=To.scrollHeight;if(s==="border-box"?d+=a:s==="content-box"&&(d-=i),r!==null||n!==null){To.value=" ";var m=To.scrollHeight-i;r!==null&&(c=m*r,s==="border-box"&&(c=c+i+a),d=Math.max(c,d)),n!==null&&(u=m*n,s==="border-box"&&(u=u+i+a),f=d>u?"":"hidden",d=Math.min(u,d))}var h={height:d,overflowY:f,resize:"none"};return c&&(h.minHeight=c),u&&(h.maxHeight=u),h}var yq=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ME=0,FE=1,LE=2,xq=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,d=r.onInternalAutoSize,m=He(r,yq),h=sr(o,{value:i,postState:function(z){return z??""}}),v=F(h,2),y=v[0],g=v[1],p=function(z){g(z.target.value),f?.(z)},x=Cn.useRef();Cn.useImperativeHandle(t,function(){return{textArea:x.current}});var b=Cn.useMemo(function(){return a&&ce(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),S=F(b,2),w=S[0],C=S[1],R=!!a,P=function(){try{if(document.activeElement===x.current){var z=x.current,U=z.selectionStart,oe=z.selectionEnd,Q=z.scrollTop;x.current.setSelectionRange(U,oe),x.current.scrollTop=Q}}catch{}},O=Cn.useState(LE),I=F(O,2),D=I[0],$=I[1],L=Cn.useState(),A=F(L,2),M=A[0],W=A[1],B=function(){$(ME)};yt(function(){R&&B()},[i,w,C,R]),yt(function(){if(D===ME)$(FE);else if(D===FE){var k=kE(x.current,!1,w,C);$(LE),W(k)}else P()},[D]);var K=Cn.useRef(),G=function(){dt.cancel(K.current)},V=function(z){D===LE&&(s?.(z),a&&(G(),K.current=dt(function(){B()})))};Cn.useEffect(function(){return G},[]);var H=R?M:null,j=T(T({},c),H);return(D===ME||D===FE)&&(j.overflowY="hidden",j.overflowX="hidden"),Cn.createElement(no,{onResize:V,disabled:!(a||s)},Cn.createElement("textarea",le({},m,{ref:x,style:j,className:(0,wL.default)(n,l,_({},"".concat(n,"-disabled"),u)),disabled:u,value:y,onChange:p})))}),zE=xq;var bq=["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"],Sq=Jr.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,d=e.suffix,m=e.prefixCls,h=m===void 0?"rc-textarea":m,v=e.showCount,y=e.count,g=e.className,p=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,I=e.autoSize,D=e.onKeyDown,$=He(e,bq),L=sr(n,{value:o,defaultValue:n}),A=F(L,2),M=A[0],W=A[1],B=M==null?"":String(M),K=Jr.default.useState(!1),G=F(K,2),V=G[0],H=G[1],j=Jr.default.useRef(!1),k=Jr.default.useState(null),z=F(k,2),U=z[0],oe=z[1],Q=(0,Jr.useRef)(null),X=(0,Jr.useRef)(null),se=function(){var ae;return(ae=X.current)===null||ae===void 0?void 0:ae.textArea},Z=function(){se().focus()};(0,Jr.useImperativeHandle)(t,function(){var Re;return{resizableTextArea:X.current,focus:Z,blur:function(){se().blur()},nativeElement:((Re=Q.current)===null||Re===void 0?void 0:Re.nativeElement)||se()}}),(0,Jr.useEffect)(function(){H(function(Re){return!x&&Re})},[x]);var q=Jr.default.useState(null),J=F(q,2),re=J[0],ee=J[1];Jr.default.useEffect(function(){if(re){var Re;(Re=se()).setSelectionRange.apply(Re,ne(re))}},[re]);var te=pp(y,v),de=(r=te.max)!==null&&r!==void 0?r:c,fe=Number(de)>0,ue=te.strategy(B),Ce=!!de&&ue>de,we=function(ae,ge){var Te=ge;!j.current&&te.exceedFormatter&&te.max&&te.strategy(ge)>te.max&&(Te=te.exceedFormatter(ge,{max:te.max}),ge!==Te&&ee([se().selectionStart||0,se().selectionEnd||0])),W(Te),Vu(ae.currentTarget,ae,s,Te)},_e=function(ae){j.current=!0,u?.(ae)},ve=function(ae){j.current=!1,we(ae,ae.currentTarget.value),f?.(ae)},Y=function(ae){we(ae,ae.target.value)},Ee=function(ae){ae.key==="Enter"&&P&&P(ae),D?.(ae)},$e=function(ae){H(!0),i?.(ae)},et=function(ae){H(!1),a?.(ae)},ke=function(ae){W(""),Z(),Vu(se(),ae,s)},Se=d,Be;te.show&&(te.showFormatter?Be=te.showFormatter({value:B,count:ue,maxLength:de}):Be="".concat(ue).concat(fe?" / ".concat(de):""),Se=Jr.default.createElement(Jr.default.Fragment,null,Se,Jr.default.createElement("span",{className:(0,vp.default)("".concat(h,"-data-count"),S?.count),style:w?.count},Be)));var Fe=function(ae){var ge;C?.(ae),(ge=se())!==null&&ge!==void 0&&ge.style.height&&oe(!0)},Ue=!I&&!v&&!l;return Jr.default.createElement(Xl,{ref:Q,value:B,allowClear:l,handleReset:ke,suffix:Se,prefixCls:h,classNames:T(T({},S),{},{affixWrapper:(0,vp.default)(S?.affixWrapper,_(_({},"".concat(h,"-show-count"),v),"".concat(h,"-textarea-allow-clear"),l))}),disabled:x,focused:V,className:(0,vp.default)(g,Ce&&"".concat(h,"-out-of-range")),style:T(T({},p),U&&!Ue?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Be=="string"?Be:void 0}},hidden:b,readOnly:O,onClear:R},Jr.default.createElement(zE,le({},$,{autoSize:I,maxLength:c,onKeyDown:Ee,onChange:Y,onFocus:$e,onBlur:et,onCompositionStart:_e,onCompositionEnd:ve,className:(0,vp.default)(S?.textarea),style:T(T({},w?.textarea),{},{resize:p?.resize}),disabled:x,prefixCls:h,onResize:Fe,ref:X,readOnly:O})))}),EL=Sq;var RL=EL;var Cq=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}}}}}},OL=Gt(["Input","TextArea"],e=>{let t=ft(e,La(e));return[Cq(t)]},za,{resetFont:!1});var wq=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:d,styles:m,variant:h,showCount:v,onMouseDown:y,onResize:g}=e,p=wq(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}=oo("textArea"),I=No.useContext(Hr),D=a??I,{status:$,hasFeedback:L,feedbackIcon:A}=No.useContext(fn),M=Zi($,s),W=No.useRef(null);No.useImperativeHandle(t,()=>{var te;return{resizableTextArea:(te=W.current)===null||te===void 0?void 0:te.resizableTextArea,focus:de=>{var fe,ue;Kl((ue=(fe=W.current)===null||fe===void 0?void 0:fe.resizableTextArea)===null||ue===void 0?void 0:ue.textArea,de)},blur:()=>{var de;return(de=W.current)===null||de===void 0?void 0:de.blur()}}});let B=x("input",n),K=Ko(B),[G,V,H]=Yy(B,u),[j]=OL(B,K),{compactSize:k,compactItemClassnames:z}=Xo(B,b),U=so(te=>{var de;return(de=i??k)!==null&&de!==void 0?de:te}),[oe,Q]=Gs("textArea",h,o),X=l0(l??S),[se,Z]=No.useState(!1),[q,J]=No.useState(!1),re=te=>{Z(!0),y?.(te);let de=()=>{Z(!1),document.removeEventListener("mouseup",de)};document.addEventListener("mouseup",de)},ee=te=>{var de,fe;if(g?.(te),se&&typeof getComputedStyle=="function"){let ue=(fe=(de=W.current)===null||de===void 0?void 0:de.nativeElement)===null||fe===void 0?void 0:fe.querySelector("textarea");ue&&getComputedStyle(ue).resize==="both"&&J(!0)}};return G(j(No.createElement(RL,Object.assign({autoComplete:w},p,{style:Object.assign(Object.assign({},R),d),styles:Object.assign(Object.assign({},O),m),disabled:D,allowClear:X,className:(0,yp.default)(H,K,f,u,z,C,q&&`${B}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},c),P),{textarea:(0,yp.default)({[`${B}-sm`]:U==="small",[`${B}-lg`]:U==="large"},V,c?.textarea,P.textarea,se&&`${B}-mouse-active`),variant:(0,yp.default)({[`${B}-${oe}`]:Q},Ji(B,M)),affixWrapper:(0,yp.default)(`${B}-textarea-affix-wrapper`,{[`${B}-affix-wrapper-rtl`]:b==="rtl",[`${B}-affix-wrapper-sm`]:U==="small",[`${B}-affix-wrapper-lg`]:U==="large",[`${B}-textarea-show-count`]:v||((r=e.count)===null||r===void 0?void 0:r.show)},V)}),prefixCls:B,suffix:L&&No.createElement("span",{className:`${B}-textarea-suffix`},A),showCount:v,ref:W,onResize:ee,onMouseDown:re}))))}),PL=Eq;var Xu=Ks;Xu.Group=fL;Xu.Search=CL;Xu.TextArea=PL;Xu.Password=bL;Xu.OTP=hL;var xp=Xu;var Zr=E(N());var UE=E(Ne());var Ju=E(N()),LL=E(Ne());var Rq=E(N()),Oq=E(Ne());var bp=E(N()),WE={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},BE=function(){var t=(0,bp.useRef)([]),r=(0,bp.useRef)(null);return(0,bp.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 Sp=E(N()),kL=E(Ne());var S0=E(N());var TL=0,_q=Yt();function Pq(){var e;return _q?(e=TL,TL+=1):e="TEST_OR_SSR",e}var NL=function(e){var t=S0.useState(),r=F(t,2),n=r[0],o=r[1];return S0.useEffect(function(){o("rc_progress_".concat(Pq()))},[]),e||n};var si=E(N()),IL=function(t){var r=t.bg,n=t.children;return si.createElement("div",{style:{width:"100%",height:"100%",background:r}},n)};function DL(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 Tq=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,d=n&&ce(n)==="object",m=d?"#FFF":void 0,h=u/2,v=si.createElement("circle",{className:"".concat(r,"-circle-path"),r:i,cx:h,cy:h,stroke:m,strokeLinecap:l,strokeWidth:c,opacity:s===0?0:1,style:a,ref:t});if(!d)return v;var y="".concat(o,"-conic"),g=f?"".concat(180+f/2,"deg"):"0deg",p=DL(n,(360-f)/360),x=DL(n,1),b="conic-gradient(from ".concat(g,", ").concat(p.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(IL,{bg:S},si.createElement(IL,{bg:b}))))}),$L=Tq;var Yu=100,C0=function(t,r,n,o,i,a,s,l,c,u){var f=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,d=n/100*360*((360-a)/360),m=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=Yu/2;return{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(r,"px ").concat(t),strokeDashoffset:h+f,transform:"rotate(".concat(i+d+m,"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 Nq=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function AL(e){var t=e??[];return Array.isArray(t)?t:[t]}var Iq=function(t){var r=T(T({},WE),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,d=r.strokeLinecap,m=r.style,h=r.className,v=r.strokeColor,y=r.percent,g=He(r,Nq),p=Yu/2,x=NL(n),b="".concat(x,"-gradient"),S=p-a/2,w=Math.PI*2*S,C=c>0?90+c/2:-90,R=w*((360-c)/360),P=ce(i)==="object"?i:{count:i,gap:2},O=P.count,I=P.gap,D=AL(y),$=AL(v),L=$.find(function(V){return V&&ce(V)==="object"}),A=L&&ce(L)==="object",M=A?"butt":d,W=C0(w,R,0,100,C,c,u,f,M,a),B=BE(),K=function(){var H=0;return D.map(function(j,k){var z=$[k]||$[$.length-1],U=C0(w,R,H,j,C,c,u,z,M,a);return H+=j,Sp.createElement($L,{key:k,color:z,ptg:j,radius:S,prefixCls:o,gradientId:b,style:U,strokeLinecap:M,strokeWidth:a,gapDegree:c,ref:function(Q){B[k]=Q},size:Yu})}).reverse()},G=function(){var H=Math.round(O*(D[0]/100)),j=100/O,k=0;return new Array(O).fill(null).map(function(z,U){var oe=U<=H-1?$[0]:f,Q=oe&&ce(oe)==="object"?"url(#".concat(b,")"):void 0,X=C0(w,R,k,j,C,c,u,oe,"butt",a,I);return k+=(R-X.strokeDashoffset+I)*100/R,Sp.createElement("circle",{key:U,className:"".concat(o,"-circle-path"),r:S,cx:p,cy:p,stroke:Q,strokeWidth:a,opacity:1,style:X,ref:function(Z){B[U]=Z}})})};return Sp.createElement("svg",le({className:(0,kL.default)("".concat(o,"-circle"),h),viewBox:"0 0 ".concat(Yu," ").concat(Yu),style:m,id:n,role:"presentation"},g),!O&&Sp.createElement("circle",{className:"".concat(o,"-circle-trail"),r:S,cx:p,cy:p,stroke:f,strokeLinecap:M,strokeWidth:s||a,style:W}),O?G():K())},jE=Iq;function ia(e){return!e||e<0?0:e>100?100:e}function Qu({success:e,successPercent:t}){let r=t;return e&&"progress"in e&&(r=e.progress),e&&"percent"in e&&(r=e.percent),r}var ML=({percent:e,success:t,successPercent:r})=>{let n=ia(Qu({success:t,successPercent:r}));return[n,ia(ia(e)-n)]},FL=({success:e={},strokeColor:t})=>{let{strokeColor:r}=e;return[r||Oa.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 Dq=3,$q=e=>Dq/e*100,Aq=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,[d,m]=Xs(u,"circle"),{strokeWidth:h}=e;h===void 0&&(h=Math.max($q(d),6));let v={width:d,height:m,fontSize:d*.15+6},y=Ju.useMemo(()=>{if(i||i===0)return i;if(s==="dashboard")return 75},[i,s]),g=ML(e),p=o||s==="dashboard"&&"bottom"||void 0,x=Object.prototype.toString.call(e.strokeColor)==="[object Object]",b=FL({success:c,strokeColor:e.strokeColor}),S=(0,LL.default)(`${t}-inner`,{[`${t}-circle-gradient`]:x}),w=Ju.createElement(jE,{steps:f,percent:f?g[1]:g,strokeWidth:h,trailWidth:h,strokeColor:f?b[1]:b,strokeLinecap:n,trailColor:r,prefixCls:t,gapDegree:y,gapPosition:p}),C=d<=20,R=Ju.createElement("div",{className:S,style:v},w,!C&&l);return C?Ju.createElement(Fa,{title:l},R):R},zL=Aq;var Zu=E(N());var jL=E(Ne());var Cp="--progress-line-stroke-color",VE="--progress-percent",WL=e=>{let t=e?"100%":"-100%";return new xt(`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}})},kq=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},lr(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(${Cp})`]},height:"100%",width:`calc(1 / var(${VE}) * 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 ${ie(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:WL(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:WL(!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}}})}},Mq=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"}}}},Fq=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}}}}}},Lq=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${r}`]:{fontSize:e.fontSizeSM}}}},zq=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),BL=Gt("Progress",e=>{let t=e.calc(e.marginXXS).div(2).equal(),r=ft(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[kq(r),Mq(r),Fq(r),Lq(r)]},zq);var Wq=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(", ")},jq=(e,t)=>{let{from:r=Oa.blue,to:n=Oa.blue,direction:o=t==="rtl"?"to left":"to right"}=e,i=Wq(e,["from","to","direction"]);if(Object.keys(i).length!==0){let s=Bq(i),l=`linear-gradient(${o}, ${s})`;return{background:l,[Cp]:l}}let a=`linear-gradient(${o}, ${r}, ${n})`;return{background:a,[Cp]:a}},Vq=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:d,type:m}=u,h=a&&typeof a!="string"?jq(a,r):{[Cp]:a,background:a},v=s==="square"||s==="butt"?0:void 0,y=o??[-1,i||(o==="small"?6:8)],[g,p]=Xs(y,"line",{strokeWidth:i}),x={backgroundColor:c||void 0,borderRadius:v},b=Object.assign(Object.assign({width:`${ia(n)}%`,height:p,borderRadius:v},h),{[VE]:ia(n)/100}),S=Qu(e),w={width:`${ia(S)}%`,height:p,borderRadius:v,backgroundColor:f?.strokeColor},C={width:g<0?"100%":g},R=Zu.createElement("div",{className:`${t}-inner`,style:x},Zu.createElement("div",{className:(0,jL.default)(`${t}-bg`,`${t}-bg-${m}`),style:b},m==="inner"&&l),S!==void 0&&Zu.createElement("div",{className:`${t}-success-bg`,style:w})),P=m==="outer"&&d==="start",O=m==="outer"&&d==="end";return m==="outer"&&d==="center"?Zu.createElement("div",{className:`${t}-layout-bottom`},R,l):Zu.createElement("div",{className:`${t}-outer`,style:C},P&&l,R,O&&l)},VL=Vq;var HE=E(N()),HL=E(Ne());var Hq=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)),d=t??[t==="small"?2:14,i],[m,h]=Xs(d,"step",{steps:r,strokeWidth:i}),v=m/r,y=Array.from({length:r});for(let g=0;g{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:d,style:m,percentPosition:h={}}=e,v=Uq(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:y="end",type:g="outer"}=h,p=Array.isArray(a)?a[0]:a,x=typeof a=="string"||Array.isArray(a)?a:void 0,b=Zr.useMemo(()=>{if(p){let K=typeof p=="string"?p:Object.values(p)[0];return new ht(K).isLight()}return!1},[a]),S=Zr.useMemo(()=>{var K,G;let V=Qu(e);return parseInt(V!==void 0?(K=V??0)===null||K===void 0?void 0:K.toString():(G=s??0)===null||G===void 0?void 0:G.toString(),10)},[s,e.success,e.successPercent]),w=Zr.useMemo(()=>!qq.includes(f)&&S>=100?"success":f||"normal",[f,S]),{getPrefixCls:C,direction:R,progress:P}=Zr.useContext(ot),O=C("progress",r),[I,D,$]=BL(O),L=u==="line",A=L&&!i,M=Zr.useMemo(()=>{if(!c)return null;let K=Qu(e),G,V=d||(j=>`${j}%`),H=L&&b&&g==="inner";return g==="inner"||d||w!=="exception"&&w!=="success"?G=V(ia(s),ia(K)):w==="exception"?G=L?Zr.createElement(gu,null):Zr.createElement(bv,null):w==="success"&&(G=L?Zr.createElement(hD,null):Zr.createElement($y,null)),Zr.createElement("span",{className:(0,UE.default)(`${O}-text`,{[`${O}-text-bright`]:H,[`${O}-text-${y}`]:A,[`${O}-text-${g}`]:A}),title:typeof G=="string"?G:void 0},G)},[c,s,S,w,u,O,d]),W;u==="line"?W=i?Zr.createElement(UL,Object.assign({},e,{strokeColor:x,prefixCls:O,steps:typeof i=="object"?i.count:i}),M):Zr.createElement(VL,Object.assign({},e,{strokeColor:p,prefixCls:O,direction:R,percentPosition:{align:y,type:g}}),M):(u==="circle"||u==="dashboard")&&(W=Zr.createElement(zL,Object.assign({},e,{strokeColor:p,prefixCls:O,progressStatus:w}),M));let B=(0,UE.default)(O,`${O}-status-${w}`,{[`${O}-${u==="dashboard"&&"circle"||u}`]:u!=="line",[`${O}-inline-circle`]:u==="circle"&&Xs(l,"circle")[0]<=20,[`${O}-line`]:A,[`${O}-line-align-${y}`]:A,[`${O}-line-position-${g}`]:A,[`${O}-steps`]:i,[`${O}-show-info`]:c,[`${O}-${l}`]:typeof l=="string",[`${O}-rtl`]:R==="rtl"},P?.className,n,o,D,$);return I(Zr.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},P?.style),m),className:B,role:"progressbar","aria-valuenow":S,"aria-valuemin":0,"aria-valuemax":100},qr(v,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),W))}),qL=Gq;var GL=qL;var w0=E(N());var Kq={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"},KL=Kq;var Xq=function(t,r){return w0.createElement(zt,le({},t,{ref:r,icon:KL}))},Yq=w0.forwardRef(Xq),XL=Yq;var E0=E(N());var Qq={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"},YL=Qq;var Jq=function(t,r){return E0.createElement(zt,le({},t,{ref:r,icon:YL}))},Zq=E0.forwardRef(Jq),QL=Zq;var R0=E(N());var eG={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"},JL=eG;var tG=function(t,r){return R0.createElement(zt,le({},t,{ref:r,icon:JL}))},rG=R0.forwardRef(tG),ZL=rG;var O0=E(N());var nG={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"},e3=nG;var oG=function(t,r){return O0.createElement(zt,le({},t,{ref:r,icon:e3}))},iG=O0.forwardRef(oG),t3=iG;var _0=E(N());var aG={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"},r3=aG;var sG=function(t,r){return _0.createElement(zt,le({},t,{ref:r,icon:r3}))},lG=_0.forwardRef(sG),n3=lG;var cG={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"},o3=cG;var $0=E(N());var yr=E(N()),YE=E(Ui()),I0=E(Ne());var T0=E(N());var s3=E(Ne());var Ep=E(N());var P0=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 uG(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 i3(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function qE(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(uG(e,t),i3(t)):e.onSuccess(i3(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 fG=function(){var e=Ur(Et().mark(function t(r,n){var o,i,a,s,l,c,u,f;return Et().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:c=function(){return c=Ur(Et().mark(function v(y){return Et().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.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 p.stop()}},v)})),c.apply(this,arguments)},l=function(v){return c.apply(this,arguments)},s=function(){return s=Ur(Et().mark(function v(y){var g,p,x,b,S;return Et().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:g=y.createReader(),p=[];case 2:return C.next=5,new Promise(function(R){g.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,a3(Array.prototype.slice.call(v),function(b){return P0(b,n.props.accept)});case 7:y=x.sent,n.uploadFiles(y),x.next=14;break;case 11:g=ne(y).filter(function(b){return P0(b,m)}),d===!1&&(g=y.slice(0,1)),n.uploadFiles(g);case 14:case"end":return x.stop()}},l)}));return function(l,c){return s.apply(this,arguments)}}()),_(Ye(n),"onFilePaste",function(){var s=Ur(Et().mark(function l(c){var u,f;return Et().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(u=n.props.pastable,u){m.next=3;break}return m.abrupt("return");case 3:if(c.type!=="paste"){m.next=6;break}return f=c.clipboardData,m.abrupt("return",n.onDataTransferFiles(f,function(){c.preventDefault()}));case 6:case"end":return m.stop()}},l)}));return function(l){return s.apply(this,arguments)}}()),_(Ye(n),"onFileDragOver",function(s){s.preventDefault()}),_(Ye(n),"onFileDrop",function(){var s=Ur(Et().mark(function l(c){var u;return Et().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(c.preventDefault(),c.type!=="drop"){d.next=4;break}return u=c.dataTransfer,d.abrupt("return",n.onDataTransferFiles(u));case 4:case"end":return d.stop()}},l)}));return function(l){return s.apply(this,arguments)}}()),_(Ye(n),"uploadFiles",function(s){var l=ne(s),c=l.map(function(u){return u.uid=wp(),n.processFile(u,l)});Promise.all(c).then(function(u){var f=n.props.onBatchStart;f?.(u.map(function(d){var m=d.origin,h=d.parsedFile;return{file:m,parsedFile:h}})),u.filter(function(d){return d.parsedFile!==null}).forEach(function(d){n.post(d)})})}),_(Ye(n),"processFile",function(){var s=Ur(Et().mark(function l(c,u){var f,d,m,h,v,y,g,p,x;return Et().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:if(f=n.props.beforeUpload,d=c,!f){S.next=14;break}return S.prev=3,S.next=6,f(c,u);case 6:d=S.sent,S.next=12;break;case 9:S.prev=9,S.t0=S.catch(3),d=!1;case 12:if(d!==!1){S.next=14;break}return S.abrupt("return",{origin:c,parsedFile:null,action:null,data:null});case 14:if(m=n.props.action,typeof m!="function"){S.next=21;break}return S.next=18,m(c);case 18:h=S.sent,S.next=22;break;case 21:h=m;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 g=(ce(d)==="object"||typeof d=="string")&&d?d:c,g instanceof File?p=g:p=new File([g],c.name,{type:c.type}),x=p,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 st(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,d=u.customRequest,m=u.name,h=u.headers,v=u.withCredentials,y=u.method,g=s.uid,p=d||qE,x={action:l,filename:m,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[g]},onError:function(S,w){var C=i.props.onError;C?.(S,w,c),delete i.reqs[g]}};f(s),this.reqs[g]=p(x)}}},{key:"reset",value:function(){this.setState({uid:wp()})}},{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,d=o.name,m=o.style,h=o.styles,v=h===void 0?{}:h,y=o.multiple,g=o.accept,p=o.capture,x=o.children,b=o.directory,S=o.openFileDialogOnClick,w=o.onMouseEnter,C=o.onMouseLeave,R=o.hasControlInside,P=He(o,mG),O=(0,s3.default)(_(_(_({},a,!0),"".concat(a,"-disabled"),u),s,s)),I=b?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},D=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 Ep.default.createElement(i,le({},D,{className:O,role:R?void 0:"button",style:m}),Ep.default.createElement("input",le({},qo(P,{aria:!0,data:!0}),{id:f,name:d,disabled:u,type:"file",ref:this.saveFileInput,onClick:function(L){return L.stopPropagation()},key:this.state.uid,style:T({display:"none"},v.input),className:c.input,accept:g},I,{multiple:y,onChange:this.onChange},p!=null?{capture:p}:{})),x)}}]),r}(Ep.Component),l3=gG;function GE(){}var c3=function(e){$r(r,e);var t=Ar(r);function r(){var n;at(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:`${ie(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:`${ie(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 ${ie(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}}}}}},f3=hG;var vG=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({},Pa),{padding:`0 ${ie(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:'""'}}})}}},d3=vG;var yG=e=>{let{componentCls:t}=e,r=new xt("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),n=new xt("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`]:Fw(e)},r,n]},p3=yG;var m3=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:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},Pa),{width:n,height:n,lineHeight:ie(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% - ${ie(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%"}}}}},g3=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:`${ie(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% - ${ie(i(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${ie(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 ${ie(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% - ${ie(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% - ${ie(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}};var xG=e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},h3=xG;var bG=e=>{let{componentCls:t,colorTextDisabled:r}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},lr(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"}})}},SG=e=>({actionsColor:e.colorIcon}),v3=Gt("Upload",e=>{let{fontSizeHeading3:t,fontHeight:r,lineWidth:n,controlHeightLG:o,calc:i}=e,a=ft(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(r).div(2)).add(n).equal(),uploadPicCardSize:i(o).mul(2.55).equal()});return[bG(a),f3(a),m3(a),g3(a),d3(a),p3(a),h3(a),Mw(a)]},SG);var qt=E(N());var XE=E(Ne());function Rp(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 Op(e,t){let r=ne(t),n=r.findIndex(({uid:o})=>o===e.uid);return n===-1?r.push(e):r[n]=e,r}function N0(e,t){let r=e.uid!==void 0?"uid":"name";return t.filter(n=>n[r]===e[r])[0]}function y3(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 CG=(e="")=>{let t=e.split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]},x3=e=>e.indexOf("image/")===0,b3=e=>{if(e.type&&!e.thumbUrl)return x3(e.type);let t=e.thumbUrl||e.url||"",r=CG(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 S3(e){return new Promise(t=>{if(!e.type||!x3(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(N());var Qs=E(Ne());var wG=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:d,showRemoveIcon:m,showDownloadIcon:h,previewIcon:v,removeIcon:y,downloadIcon:g,extra:p,onPreview:x,onDownload:b,onClose:S},w)=>{var C,R;let{status:P}=i,[O,I]=Bt.useState(P);Bt.useEffect(()=>{P!=="removed"&&I(P)},[P]);let[D,$]=Bt.useState(!1);Bt.useEffect(()=>{let q=setTimeout(()=>{$(!0)},300);return()=>{clearTimeout(q)}},[]);let L=l(i),A=Bt.createElement("div",{className:`${e}-icon`},L);if(o==="picture"||o==="picture-card"||o==="picture-circle")if(O==="uploading"||!i.thumbUrl&&!i.url){let q=(0,Qs.default)(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:O!=="uploading"});A=Bt.createElement("div",{className:q},L)}else{let q=f?.(i)?Bt.createElement("img",{src:i.thumbUrl||i.url,alt:i.name,className:`${e}-list-item-image`,crossOrigin:i.crossOrigin}):L,J=(0,Qs.default)(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:f&&!f(i)});A=Bt.createElement("a",{className:J,onClick:re=>x(i,re),href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer"},q)}let M=(0,Qs.default)(`${e}-list-item`,`${e}-list-item-${O}`),W=typeof i.linkProps=="string"?JSON.parse(i.linkProps):i.linkProps,B=(typeof m=="function"?m(i):m)?c((typeof y=="function"?y(i):y)||Bt.createElement(XL,null),()=>S(i),e,n.removeFile,!0):null,K=(typeof h=="function"?h(i):h)&&O==="done"?c((typeof g=="function"?g(i):g)||Bt.createElement(QL,null),()=>b(i),e,n.downloadFile):null,G=o!=="picture-card"&&o!=="picture-circle"&&Bt.createElement("span",{key:"download-delete",className:(0,Qs.default)(`${e}-list-item-actions`,{picture:o==="picture"})},K,B),V=typeof p=="function"?p(i):p,H=V&&Bt.createElement("span",{className:`${e}-list-item-extra`},V),j=(0,Qs.default)(`${e}-list-item-name`),k=i.url?Bt.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:j,title:i.name},W,{href:i.url,onClick:q=>x(i,q)}),i.name,H):Bt.createElement("span",{key:"view",className:j,onClick:q=>x(i,q),title:i.name},i.name,H),z=(typeof d=="function"?d(i):d)&&(i.url||i.thumbUrl)?Bt.createElement("a",{href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:q=>x(i,q),title:n.previewFile},typeof v=="function"?v(i):v||Bt.createElement(v0,null)):null,U=(o==="picture-card"||o==="picture-circle")&&O!=="uploading"&&Bt.createElement("span",{className:`${e}-list-item-actions`},z,O==="done"&&K,B),{getPrefixCls:oe}=Bt.useContext(ot),Q=oe(),X=Bt.createElement("div",{className:M},A,k,G,U,D&&Bt.createElement(Uo,{motionName:`${Q}-fade`,visible:O==="uploading",motionDeadline:2e3},({className:q})=>{let J="percent"in i?Bt.createElement(GL,Object.assign({},s,{type:"line",percent:i.percent,"aria-label":i["aria-label"],"aria-labelledby":i["aria-labelledby"]})):null;return Bt.createElement("div",{className:(0,Qs.default)(`${e}-list-item-progress`,q)},J)})),se=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(Fa,{title:se,getPopupContainer:q=>q.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)}),C3=wG;var EG=(e,t)=>{let{listType:r="text",previewFile:n=S3,onPreview:o,onDownload:i,onRemove:a,locale:s,iconRender:l,isImageUrl:c=b3,prefixCls:u,items:f=[],showPreviewIcon:d=!0,showRemoveIcon:m=!0,showDownloadIcon:h=!1,removeIcon:v,previewIcon:y,downloadIcon:g,extra:p,progress:x={size:[-1,2],showInfo:!1},appendAction:b,appendActionVisible:S=!0,itemRender:w,disabled:C}=e,R=eE(),[P,O]=qt.useState(!1),I=["picture-card","picture-circle"].includes(r);qt.useEffect(()=>{r.startsWith("picture")&&(f||[]).forEach(j=>{!(j.originFileObj instanceof File||j.originFileObj instanceof Blob)||j.thumbUrl!==void 0||(j.thumbUrl="",n?.(j.originFileObj).then(k=>{j.thumbUrl=k||"",R()}))})},[r,f,n]),qt.useEffect(()=>{O(!0)},[]);let D=(j,k)=>{if(o)return k?.preventDefault(),o(j)},$=j=>{typeof i=="function"?i(j):j.url&&window.open(j.url)},L=j=>{a?.(j)},A=j=>{if(l)return l(j,r);let k=j.status==="uploading";if(r.startsWith("picture")){let z=r==="picture"?qt.createElement(Fl,null):s.uploading,U=c?.(j)?qt.createElement(n3,null):qt.createElement(ZL,null);return k?z:U}return k?qt.createElement(Fl,null):qt.createElement(t3,null)},M=(j,k,z,U,oe)=>{let Q={type:"text",size:"small",title:U,onClick:X=>{var se,Z;k(),qt.isValidElement(j)&&((Z=(se=j.props).onClick)===null||Z===void 0||Z.call(se,X))},className:`${z}-list-item-action`,disabled:oe?C:!1};return qt.isValidElement(j)?qt.createElement(jd,Object.assign({},Q,{icon:Go(j,Object.assign(Object.assign({},j.props),{onClick:()=>{}}))})):qt.createElement(jd,Object.assign({},Q),qt.createElement("span",null,j))};qt.useImperativeHandle(t,()=>({handlePreview:D,handleDownload:$}));let{getPrefixCls:W}=qt.useContext(ot),B=W("upload",u),K=W(),G=(0,XE.default)(`${B}-list`,`${B}-list-${r}`),V=qt.useMemo(()=>qr($D(K),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[K]),H=Object.assign(Object.assign({},I?{}:V),{motionDeadline:2e3,motionName:`${B}-${I?"animate-inline":"animate"}`,keys:ne(f.map(j=>({key:j.uid,file:j}))),motionAppear:P});return qt.createElement("div",{className:G},qt.createElement(mw,Object.assign({},H,{component:!1}),({key:j,file:k,className:z,style:U})=>qt.createElement(C3,{key:j,locale:s,prefixCls:B,className:z,style:U,file:k,items:f,progress:x,listType:r,isImgUrl:c,showPreviewIcon:d,showRemoveIcon:m,showDownloadIcon:h,removeIcon:v,previewIcon:y,downloadIcon:g,extra:p,iconRender:A,actionIconRender:M,itemRender:w,onPreview:D,onDownload:$,onClose:L})),b&&qt.createElement(Uo,Object.assign({},H,{visible:S,forceRender:!0}),({className:j,style:k})=>Go(b,z=>({className:(0,XE.default)(z.className,j),style:Object.assign(Object.assign(Object.assign({},k),{pointerEvents:j?"none":void 0}),z.style)}))))},RG=qt.forwardRef(EG),w3=RG;var OG=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())})},ef=`__LIST_IGNORE_${Date.now()}__`,_G=(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:d,locale:m,iconRender:h,isImageUrl:v,progress:y,prefixCls:g,className:p,type:x="select",children:b,style:S,itemRender:w,maxCount:C,data:R={},multiple:P=!1,hasControlInside:O=!0,action:I="",accept:D="",supportServerRender:$=!0,rootClassName:L}=e,A=yr.useContext(Hr),M=d??A,[W,B]=sr(n||[],{value:r,postState:ae=>ae??[]}),[K,G]=yr.useState("drop"),V=yr.useRef(null),H=yr.useRef(null);yr.useMemo(()=>{let ae=Date.now();(r||[]).forEach((ge,Te)=>{!ge.uid&&!Object.isFrozen(ge)&&(ge.uid=`__AUTO__${ae}_${Te}__`)})},[r]);let j=(ae,ge,Te)=>{let he=ne(ge),Ze=!1;C===1?he=he.slice(-1):C&&(Ze=he.length>C,he=he.slice(0,C)),(0,YE.flushSync)(()=>{B(he)});let ct={file:ae,fileList:he};Te&&(ct.event=Te),(!Ze||ae.status==="removed"||he.some(_t=>_t.uid===ae.uid))&&(0,YE.flushSync)(()=>{c?.(ct)})},k=(ae,ge)=>OG(void 0,void 0,void 0,function*(){let{beforeUpload:Te,transformFile:he}=e,Ze=ae;if(Te){let ct=yield Te(ae,ge);if(ct===!1)return!1;if(delete ae[ef],ct===ef)return Object.defineProperty(ae,ef,{value:!0,configurable:!0}),!1;typeof ct=="object"&&ct&&(Ze=ct)}return he&&(Ze=yield he(Ze)),Ze}),z=ae=>{let ge=ae.filter(Ze=>!Ze.file[ef]);if(!ge.length)return;let Te=ge.map(Ze=>Rp(Ze.file)),he=ne(W);Te.forEach(Ze=>{he=Op(Ze,he)}),Te.forEach((Ze,ct)=>{let _t=Ze;if(ge[ct].parsedFile)Ze.status="uploading";else{let{originFileObj:Pt}=Ze,mt;try{mt=new File([Pt],Pt.name,{type:Pt.type})}catch{mt=new Blob([Pt],{type:Pt.type}),mt.name=Pt.name,mt.lastModifiedDate=new Date,mt.lastModified=new Date().getTime()}mt.uid=Ze.uid,_t=mt}j(_t,he)})},U=(ae,ge,Te)=>{try{typeof ae=="string"&&(ae=JSON.parse(ae))}catch{}if(!N0(ge,W))return;let he=Rp(ge);he.status="done",he.percent=100,he.response=ae,he.xhr=Te;let Ze=Op(he,W);j(he,Ze)},oe=(ae,ge)=>{if(!N0(ge,W))return;let Te=Rp(ge);Te.status="uploading",Te.percent=ae.percent;let he=Op(Te,W);j(Te,he,ae)},Q=(ae,ge,Te)=>{if(!N0(Te,W))return;let he=Rp(Te);he.error=ae,he.response=ge,he.status="error";let Ze=Op(he,W);j(he,Ze)},X=ae=>{let ge;Promise.resolve(typeof o=="function"?o(ae):o).then(Te=>{var he;if(Te===!1)return;let Ze=y3(ae,W);Ze&&(ge=Object.assign(Object.assign({},ae),{status:"removed"}),W?.forEach(ct=>{let _t=ge.uid!==void 0?"uid":"name";ct[_t]===ge[_t]&&!Object.isFrozen(ct)&&(ct.status="removed")}),(he=V.current)===null||he===void 0||he.abort(ge),j(ge,Ze))})},se=ae=>{G(ae.type),ae.type==="drop"&&u?.(ae)};yr.useImperativeHandle(t,()=>({onBatchStart:z,onSuccess:U,onProgress:oe,onError:Q,fileList:W,upload:V.current,nativeElement:H.current}));let{getPrefixCls:Z,direction:q,upload:J}=yr.useContext(ot),re=Z("upload",g),ee=Object.assign(Object.assign({onBatchStart:z,onError:Q,onProgress:oe,onSuccess:U},e),{data:R,multiple:P,action:I,accept:D,supportServerRender:$,prefixCls:re,disabled:M,beforeUpload:k,onChange:void 0,hasControlInside:O});delete ee.className,delete ee.style,(!b||M)&&delete ee.id;let te=`${re}-wrapper`,[de,fe,ue]=v3(re,te),[Ce]=Ea("Upload",Ei.Upload),{showRemoveIcon:we,showPreviewIcon:_e,showDownloadIcon:ve,removeIcon:Y,previewIcon:Ee,downloadIcon:$e,extra:et}=typeof i=="boolean"?{}:i,ke=typeof we>"u"?!M:we,Se=(ae,ge)=>i?yr.createElement(w3,{prefixCls:re,listType:a,items:W,previewFile:f,onPreview:s,onDownload:l,onRemove:X,showRemoveIcon:ke,showPreviewIcon:_e,showDownloadIcon:ve,removeIcon:Y,previewIcon:Ee,downloadIcon:$e,iconRender:h,extra:et,locale:Object.assign(Object.assign({},Ce),m),isImageUrl:v,progress:y,appendAction:ae,appendActionVisible:ge,itemRender:w,disabled:M}):ae,Be=(0,I0.default)(te,p,L,fe,ue,J?.className,{[`${re}-rtl`]:q==="rtl",[`${re}-picture-card-wrapper`]:a==="picture-card",[`${re}-picture-circle-wrapper`]:a==="picture-circle"}),Fe=Object.assign(Object.assign({},J?.style),S);if(x==="drag"){let ae=(0,I0.default)(fe,re,`${re}-drag`,{[`${re}-drag-uploading`]:W.some(ge=>ge.status==="uploading"),[`${re}-drag-hover`]:K==="dragover",[`${re}-disabled`]:M,[`${re}-rtl`]:q==="rtl"});return de(yr.createElement("span",{className:Be,ref:H},yr.createElement("div",{className:ae,style:Fe,onDrop:se,onDragOver:se,onDragLeave:se},yr.createElement(KE,Object.assign({},ee,{ref:V,className:`${re}-btn`}),yr.createElement("div",{className:`${re}-drag-container`},b))),Se()))}let Ue=(0,I0.default)(re,`${re}-select`,{[`${re}-disabled`]:M,[`${re}-hidden`]:!b}),Re=yr.createElement("div",{className:Ue,style:Fe},yr.createElement(KE,Object.assign({},ee,{ref:V})));return de(a==="picture-card"||a==="picture-circle"?yr.createElement("span",{className:Be,ref:H},Se(Re,!!b)):yr.createElement("span",{className:Be,ref:H},Re,Se()))},PG=yr.forwardRef(_G),D0=PG;var TG=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=TG(e,["style","height","hasControlInside"]);return $0.createElement(D0,Object.assign({ref:t,hasControlInside:o},i,{type:"drag",style:Object.assign(Object.assign({},r),{height:n})}))}),E3=NG;var QE=D0;QE.Dragger=E3;QE.LIST_IGNORE=ef;var JE=QE;var Pr=E(_r(),1),FG=()=>{let[e,t]=(0,P3.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,Pr.jsxs)("div",{className:"settings-container",children:[(0,Pr.jsx)("h2",{children:pe("SDPPP Settings/Misc")}),(0,Pr.jsxs)("div",{className:"settings-section",children:[(0,Pr.jsx)("div",{className:"settings-label",children:(0,Pr.jsx)("label",{children:pe("Comfy URL (You can copy it to connect ComfyUI in the plugin):")})}),(0,Pr.jsx)("div",{className:"settings-control",children:location.href.split("?")[0].split("#")[0]})]}),(0,Pr.jsxs)("div",{className:"settings-section settings-row",children:[(0,Pr.jsx)("div",{className:"settings-label",children:(0,Pr.jsx)("label",{children:pe("Photoshop plugin")})}),(0,Pr.jsx)("div",{className:"settings-control",children:(0,Pr.jsx)("button",{onClick:r,className:"download-button",children:pe("Download")})})]}),(0,Pr.jsxs)("div",{className:"settings-section settings-row",children:[(0,Pr.jsx)("div",{className:"settings-label",children:(0,Pr.jsxs)("label",{children:[pe("Photoshop plugin")," 2.0 Beta(CHN only)"]})}),(0,Pr.jsx)("div",{className:"settings-control",children:(0,Pr.jsx)("button",{onClick:n,className:"download-button",children:pe("Download")})})]}),(0,Pr.jsxs)("div",{className:"settings-section settings-row",children:[(0,Pr.jsx)("div",{className:"settings-label",children:(0,Pr.jsx)("label",{htmlFor:"maxImageSize",children:pe("use slider for number widget:")})}),(0,Pr.jsx)("div",{className:"settings-control",children:(0,Pr.jsx)(up,{id:"useSliderForNumberWidget",checked:e,onChange:o=>{t(o.target.checked),Xe.setUseSliderForNumberWidget(o.target.checked),nn.storeSetting("sdppp.useSliderForNumberWidget",o.target.checked)}})})]})]})},T3=FG;var k5=E(N(),1);var Zl=E(N(),1);var N3=E(N(),1);function k0(e){return e=e||12,{flex:`${e} 0 calc(${e/12*100}% - 10px)`,maxWidth:"100%"}}var Mn=E(_r(),1);function eR({widgetTableStructure:e,widgetTableValue:t,widgetTableErrors:r,onWidgetRender:n,onWidgetChange:o,onTitleRender:i}){let[a,s]=(0,Zl.useState)(0),l=(0,Zl.useMemo)(()=>e.nodeIndexes.map(d=>{let m=e.nodes[d],h=(p,x,b)=>p.keepRender?x.outputType==="error"?(p.result.push((0,Mn.jsx)("span",{className:"list-error-label",children:t[m.id][b]})),p):(n?.(p,m,x,b),p):p,v=Object.values(e.groups).find(p=>p.nodeIDs.includes(m.id)),y=v?.color||"rgba(127, 127, 127, .4)";if(a&&v?.id!==a)return null;let g=m.uiWeightSum<=8&&m.widgets.length==1&&(m.widgets[0].outputType!=="number"||!e.extraOptions?.useSliderForNumberWidget);return(0,Mn.jsxs)("div",{className:"workflow-edit-field",children:[(0,Mn.jsx)("div",{className:"workflow-edit-field-title",title:m.title,style:{...k0(g?4:12),borderColor:y},children:i?i(m.title,m):(0,Mn.jsx)("span",{children:m.title})}),m.widgets.reduce(h,{keepRender:!0,result:[]}).result.map((p,x)=>(0,Mn.jsx)(ZE,{children:p},x)),r[m.id]?(0,Mn.jsx)("span",{className:"list-error-label",children:r[m.id]}):""]},m.id)}).filter(Boolean),[e,t,r,n,o,i,a]),[c,u]=(0,Zl.useMemo)(()=>[Object.keys(r).filter(d=>e.nodes[parseInt(d)]),Object.keys(r).filter(d=>!e.nodes[parseInt(d)])],[r,e]),f=null;return u.length>0?f=(0,Mn.jsx)("span",{className:"list-error-label",children:r[+u[0]]}):c.length>0&&(f=(0,Mn.jsx)("span",{className:"list-error-label",children:r[+c[0]]})),(0,Mn.jsxs)(Mn.Fragment,{children:[f,Object.keys(e.nodes).length?"":(0,Mn.jsx)("span",{className:"list-error-label",children:pe("no suitable node to control in this workflow")}),(0,Mn.jsx)("div",{className:"workflow-edit-content",children:l})]})}var ZE=class extends Zl.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,Mn.jsx)("span",{className:"list-error-label",children:this.state.error?.stack||this.state.error?.message||this.state.error?.toString()}):this.props.children}};var ec=E(N(),1);var I3=E(N(),1);function Js(e){return(0,I3.useMemo)(()=>k0(e),[e])}var Zs=E(_r(),1),D3=({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,ec.useState)(+o.toFixed(3));(0,ec.useEffect)(()=>{u(+o.toFixed(3))},[o]);let f=(0,ec.useCallback)(h=>{if(h!==null){let v=+h.toFixed(3);u(v)}},[]),d=(0,ec.useCallback)(()=>{s(c)},[c,s]);return!((t-e)/r>1e3)&&i>=1&&a?.useSliderForNumberWidget?(0,Zs.jsxs)(ja,{style:{width:"100%",...l},align:"center",children:[(0,Zs.jsx)(PE,{style:{flex:1},min:e,max:t,step:r,value:c,onChange:f,onChangeComplete:d}),(0,Zs.jsx)(s0,{style:{width:80},min:e,max:t,step:r,value:c,onChange:f,onBlur:d,controls:!1})]}):(0,Zs.jsxs)(ja,{style:{width:"100%",...l},align:"center",children:[n&&(0,Zs.jsx)("span",{style:{flex:1},children:n}),(0,Zs.jsx)(s0,{style:{width:"100%",flex:2},min:e,max:t,step:r,value:c,onChange:f,onBlur:d,controls:!1})]})};var _p=E(_r(),1),$3=({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,_p.jsxs)(ja,{style:{width:"100%",...a},align:"center",children:[n&&(0,_p.jsx)("span",{style:{flex:1},children:n}),(0,_p.jsx)(lp,{value:r,options:t.map(s=>({value:s,label:s})),style:{flex:2,minWidth:"100%"},onSelect:i,placeholder:pe("select..."),showSearch:!0,filterOption:(s,l)=>(l?.label??"").toLowerCase().includes(s.toLowerCase())})]})};var k3=E(_r(),1),A3=({value:e,name:t,onValueChange:r,uiWeight:n})=>{let o=a=>{r(a.target.checked)},i=Js(n||12);return(0,k3.jsx)(up,{checked:!!e,onChange:o,style:{...i},children:t||""})};var tR=E(_r(),1),{TextArea:LG}=xp,M3=({value:e="",onValueChange:t,uiWeight:r})=>{let n=Js(r||12);return(0,tR.jsx)("div",{className:"widget-container",style:n,children:(0,tR.jsx)(LG,{value:e,onChange:i=>{t(i.target.value)},autoSize:{minRows:1}})})};var Pp=E(N(),1);var M0=E(_r(),1);function F3({title:e,onTitleChange:t}){let[r,n]=(0,Pp.useState)(!1),[o,i]=(0,Pp.useState)(e);(0,Pp.useEffect)(()=>{i(e)},[e]);let a=()=>{n(!0)};return r?(0,M0.jsx)(xp,{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,M0.jsx)(Fa,{title:pe("click to edit"),children:(0,M0.jsx)("span",{onClick:a,style:{cursor:"pointer"},children:o})})}var L3=E(N()),zG=(0,L3.createContext)({}),F0=zG;var nc=E(N()),D5=E(Ne());var z3={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 dn=Math.round;function rR(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 W3=(e,t,r)=>r===0?e:e/100;function Tp(e,t){let r=t||255;return e>r?r:e<0?0:e}var tc=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=z3[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=Tp(t.r),this.g=Tp(t.g),this.b=Tp(t.b),this.a=typeof t.a=="number"?Tp(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=dn(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:dn(i("r")),g:dn(i("g")),b:dn(i("b")),a:dn(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=>dn((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=dn(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=dn(this.getSaturation()*100),n=dn(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]=Tp(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 d=dn(n*255);this.r=d,this.g=d,this.b=d}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=dn((i+f)*255),this.g=dn((a+f)*255),this.b=dn((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=dn(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=dn(n*(1-r)*255),u=dn(n*(1-r*l)*255),f=dn(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=rR(t,W3);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){let r=rR(t,W3);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){let r=rR(t,(n,o)=>o.includes("%")?dn(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}};var L0=2,B3=.16,WG=.05,BG=.05,jG=.15,U3=5,q3=4,VG=[{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 j3(e,t,r){let n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-L0*t:Math.round(e.h)+L0*t:n=r?Math.round(e.h)+L0*t:Math.round(e.h)-L0*t,n<0?n+=360:n>=360&&(n-=360),n}function V3(e,t,r){if(e.h===0&&e.s===0)return e.s;let n;return r?n=e.s-B3*t:t===q3?n=e.s+B3:n=e.s+WG*t,n>1&&(n=1),r&&t===U3&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function H3(e,t,r){let n;return r?n=e.v+BG*t:n=e.v-jG*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function z0(e,t={}){let r=[],n=new tc(e),o=n.toHsv();for(let i=U3;i>0;i-=1){let a=new tc({h:j3(o,i,!0),s:V3(o,i,!0),v:H3(o,i,!0)});r.push(a)}r.push(n);for(let i=1;i<=q3;i+=1){let a=new tc({h:j3(o,i),s:V3(o,i),v:H3(o,i)});r.push(a)}return t.theme==="dark"?VG.map(({index:i,amount:a})=>new tc(t.backgroundColor||"#141414").mix(r[i],a).toHexString()):r.map(i=>i.toHexString())}var G3=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];G3.primary=G3[5];var K3=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];K3.primary=K3[5];var X3=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];X3.primary=X3[5];var Y3=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Y3.primary=Y3[5];var Q3=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Q3.primary=Q3[5];var J3=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];J3.primary=J3[5];var Z3=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Z3.primary=Z3[5];var e5=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];e5.primary=e5[5];var W0=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];W0.primary=W0[5];var t5=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];t5.primary=t5[5];var r5=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];r5.primary=r5[5];var n5=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];n5.primary=n5[5];var o5=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];o5.primary=o5[5];var i5=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];i5.primary=i5[5];var a5=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];a5.primary=a5[5];var s5=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];s5.primary=s5[5];var l5=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];l5.primary=l5[5];var c5=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];c5.primary=c5[5];var u5=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];u5.primary=u5[5];var f5=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];f5.primary=f5[5];var d5=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];d5.primary=d5[5];var p5=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];p5.primary=p5[5];var m5=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];m5.primary=m5[5];var g5=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];g5.primary=g5[5];var h5=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];h5.primary=h5[5];var v5=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];v5.primary=v5[5];var N5=E(N());function nR(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function oR(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 y5="data-rc-order",x5="data-rc-priority",HG="rc-util-key",iR=new Map;function b5({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:HG}function aR(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function UG(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function sR(e){return Array.from((iR.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function S5(e,t={}){if(!nR())return null;let{csp:r,prepend:n,priority:o=0}=t,i=UG(n),a=i==="prependQueue",s=document.createElement("style");s.setAttribute(y5,i),a&&o&&s.setAttribute(x5,`${o}`),r?.nonce&&(s.nonce=r?.nonce),s.innerHTML=e;let l=aR(t),{firstChild:c}=l;if(n){if(a){let u=(t.styles||sR(l)).filter(f=>{if(!["prepend","prependQueue"].includes(f.getAttribute(y5)))return!1;let d=Number(f.getAttribute(x5)||0);return o>=d});if(u.length)return l.insertBefore(s,u[u.length-1].nextSibling),s}l.insertBefore(s,c)}else l.appendChild(s);return s}function qG(e,t={}){let{styles:r}=t;return r||=sR(aR(t)),r.find(n=>n.getAttribute(b5(t))===e)}function GG(e,t){let r=iR.get(e);if(!r||!oR(document,r)){let n=S5("",t),{parentNode:o}=n;iR.set(e,o),e.removeChild(n)}}function C5(e,t,r={}){let n=aR(r),o=sR(n),i={...r,styles:o};GG(n,i);let a=qG(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=S5(e,i);return s.setAttribute(b5(i),t),s}function w5(e){return e?.getRootNode?.()}function KG(e){return w5(e)instanceof ShadowRoot}function E5(e){return KG(e)?w5(e):null}var lR={},XG=[],YG=e=>{XG.push(e)};function QG(e,t){}function JG(e,t){}function ZG(){lR={}}function R5(e,t,r){!t&&!lR[r]&&(e(!1,r),lR[r]=!0)}function B0(e,t){R5(QG,e,t)}function eK(e,t){R5(JG,e,t)}B0.preMessage=YG;B0.resetWarned=ZG;B0.noteOnce=eK;var O5=B0;var rc=E(N());function tK(e){return e.replace(/-(.)/g,(t,r)=>r.toUpperCase())}function P5(e,t){O5(e,`[@ant-design/icons] ${t}`)}function cR(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function _5(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[tK(r)]=n}return t},{})}function j0(e,t,r){return r?rc.default.createElement(e.tag,{key:t,..._5(e.attrs),...r},(e.children||[]).map((n,o)=>j0(n,`${t}-${e.tag}-${o}`))):rc.default.createElement(e.tag,{key:t,..._5(e.attrs)},(e.children||[]).map((n,o)=>j0(n,`${t}-${e.tag}-${o}`)))}function uR(e){return z0(e)[0]}function V0(e){return e?Array.isArray(e)?e:[e]:[]}var rK=` .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); } } `,T5=e=>{let{csp:t,prefixCls:r,layer:n}=(0,rc.useContext)(F0),o=rK;r&&(o=o.replace(/anticon/g,r)),n&&(o=`@layer ${n} { ${o} }`),(0,rc.useEffect)(()=>{let i=e.current,a=E5(i);C5(o,"@ant-design-icons",{prepend:!n,csp:t,attachTo:a})},[])};var Np={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function nK({primaryColor:e,secondaryColor:t}){Np.primaryColor=e,Np.secondaryColor=t||uR(e),Np.calculated=!!t}function oK(){return{...Np}}var H0=e=>{let{icon:t,className:r,onClick:n,style:o,primaryColor:i,secondaryColor:a,...s}=e,l=N5.useRef(),c=Np;if(i&&(c={primaryColor:i,secondaryColor:a||uR(i)}),T5(l),P5(cR(t),`icon should be icon definiton, but got ${t}`),!cR(t))return null;let u=t;return u&&typeof u.icon=="function"&&(u={...u,icon:u.icon(c.primaryColor,c.secondaryColor)}),j0(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})};H0.displayName="IconReact";H0.getTwoToneColors=oK;H0.setTwoToneColors=nK;var Ip=H0;function fR(e){let[t,r]=V0(e);return Ip.setTwoToneColors({primaryColor:t,secondaryColor:r})}function I5(){let e=Ip.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}function dR(){return dR=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}=nc.useContext(F0),d=(0,D5.default)(f,u,{[`${u}-${n.name}`]:!!n.name,[`${u}-spin`]:!!o||n.name==="loading"},r),m=a;m===void 0&&s&&(m=-1);let h=i?{msTransform:`rotate(${i}deg)`,transform:`rotate(${i}deg)`}:void 0,[v,y]=V0(l);return nc.createElement("span",dR({role:"img","aria-label":n.name},c,{ref:t,tabIndex:m,onClick:s,className:d}),nc.createElement(Ip,{icon:n,primaryColor:v,secondaryColor:y,style:h}))});U0.displayName="AntdIcon";U0.getTwoToneColor=I5;U0.setTwoToneColor=fR;var q0=U0;var G0=E(N());function pR(){return pR=Object.assign?Object.assign.bind():function(e){for(var t=1;tG0.createElement(q0,pR({},e,{ref:t,icon:yv})),aK=G0.forwardRef(iK),mR=aK;var K0=E(N());function gR(){return gR=Object.assign?Object.assign.bind():function(e){for(var t=1;tK0.createElement(q0,gR({},e,{ref:t,icon:o3})),lK=K0.forwardRef(sK),hR=lK;var Va=E(_r(),1),$5=({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=gt.graph.nodes.find(a=>a.id===e);return(0,Va.jsxs)(ja,{gap:5,align:"stretch",vertical:!0,children:[(0,Va.jsxs)(ja,{gap:5,vertical:!0,children:[(0,Va.jsx)(lp,{style:{flex:1},value:e,onChange:a=>{t?.(a)},options:r.map(a=>({label:a.split("/").pop(),value:a}))}),(0,Va.jsx)(JE,{action:"./api/upload/image",onChange:o,showUploadList:!1,data:a=>({image:a}),children:(0,Va.jsxs)("button",{type:"button",className:"ant-btn",children:[(0,Va.jsx)(hR,{})," ",pe("upload")]})})]}),e&&(0,Va.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=>{gt.constructor.copyToClipspace(gt.graph.nodes.find(s=>s.id===n)),gt.constructor.clipspace_return_node=gt.graph.nodes.find(s=>s.id===n),gt.constructor.open_maskeditor()}})]})};var aa=E(_r(),1),A5=window.comfyAPI.api.api,tf=class extends k5.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)=>{A5.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})=>{A5.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&&om(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,aa.jsx)(D3,{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,aa.jsx)($3,{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,aa.jsx)(A3,{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,aa.jsx)(M3,{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,aa.jsx)("p",{children:pe("only supported in Photoshop")})),!0;if(i.outputType=="IMAGE_PATH"||i.outputType=="MASK_PATH")return n.result.push((0,aa.jsx)($5,{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,aa.jsx)(F3,{title:n,onTitleChange:i=>{Bn.instance.setNodeTitle({node_id:o.id,title:i})}})},r=12;return(0,aa.jsx)(Da,{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,aa.jsx)(eR,{...t})})}};var Fn=E(_r(),1),M5=document.createElement("style");M5.innerHTML=eN;document.head.appendChild(M5);function vR({onClose:e,tab:t}){let[r,n]=(0,rf.useState)("1"),[o,i]=(0,rf.useState)(0);return(0,rf.useEffect)(()=>{n(t)},[t]),(0,rf.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,Fn.jsx)(Da,{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,Fn.jsxs)("div",{className:"sdppp-menu-container",style:{paddingLeft:o},children:[(0,Fn.jsxs)("div",{className:"sdppp-menu-header",children:[(0,Fn.jsxs)("div",{className:"sdppp-menu-header-left",children:[(0,Fn.jsx)("button",{onClick:()=>n("1"),className:r==="1"?"active":"",children:pe("Simplify Workflow")}),(0,Fn.jsx)("button",{onClick:()=>n("2"),className:r==="2"?"active":"",children:pe("Photoshop")})]}),(0,Fn.jsx)("span",{children:"Powered by SDPPP"}),(0,Fn.jsx)("button",{className:"sdppp-menu-close-button",onClick:e,children:(0,Fn.jsx)(mR,{})})]}),(0,Fn.jsxs)("div",{className:"sdppp-menu-content",children:[(0,Fn.jsx)("div",{className:"sdppp-menu-workflow-edit-wrap",style:{display:r==="1"?"block":"none"},children:(0,Fn.jsx)(tf,{})}),(0,Fn.jsx)("div",{className:"sdppp-menu-settings-wrap",style:{display:r==="2"?"block":"none"},children:(0,Fn.jsx)(T3,{})})]})]})})}var oc=E(_r(),1);function yR({onMaximize:e,onPhotoshop:t}){return(0,oc.jsxs)("div",{className:"sdppp-side-container",children:[(0,oc.jsxs)("div",{className:"sdppp-side-header",children:[(0,oc.jsx)("button",{className:"sdppp-photoshop-icon",onClick:t}),(0,oc.jsx)("button",{className:"pi pi-window-maximize",onClick:e})]}),(0,oc.jsx)(tf,{})]})}var F5=null,cK=null,xR=null;async function CR(e){if(!F5){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=>{cK||(r.style.width="100%",r.style.height="auto",r.style.padding="8px",(0,bR.createRoot)(r).render((0,SR.createElement)(yR,{onMaximize:()=>{n("1")},onPhotoshop:()=>{n("2")}}))),t.style.display="none";function n(o){F5?xR.props.tab=o:(xR=(0,SR.createElement)(vR,{onClose:()=>{t.style.display="none"},tab:o}),(0,bR.createRoot)(t).render(xR)),t.style.display="flex",document.querySelector(".sdppp-side-icon")?.parentElement?.click()}}})}}nn.addEventListener("graphChanged",e=>{let r=(gt.workflowManager||gt.extensionManager.workflow).activeWorkflow;if(e.detail.id!==r.activeState.id)return;let n=Xe.data.widgetTableStructure,o=im(gt.graph,r);j5(o,n)&&Xe.setWidgetTableStructure(o),Xe.setWidgetTableValue(yf(gt.graph))});nn.addEventListener("executed",()=>{Xe.setWidgetTableValue(yf(gt.graph))});var L5=0,z5=!0,W5="";function B5(){requestAnimationFrame(B5);let e=gt.workflowManager||gt.extensionManager.workflow,t=e.activeWorkflow,r=t?.id||0,n=t?.path||"",o=t?.isPersisted||!0;if(r===L5&&n===W5&&o===z5)return;L5=r,W5=n,z5=o;let i=im(gt.graph,t),a=yf(gt.graph);Xe.setWidgetTableStructure(i),Xe.setWidgetTableValue(a),setTimeout(()=>{if(t!==e.activeWorkflow)return;let s=im(gt.graph,t),l=yf(gt.graph);j5(s,i)&&Xe.setWidgetTableStructure(s),Xe.setWidgetTableValue(l)},800)}requestAnimationFrame(B5);function j5(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 uK(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(""),ll.get(s.detail.prompt_id)&&ll.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(ll.get(s.detail.prompt_id)?l=ll.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:sm(Xe.data.widgetTableStructure.widgetTablePath)})}}),CR(e);var i=new Bn;i.connect(),e.registerExtension({name:"Comfy.SD-PPP",async setup(){},async beforeRegisterNodeDef(s,l,c){try{bO(s,l)}catch(u){Dp.push(u.stack||u.message||u)}}})}var Dp=[];(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 IR(),await uK(e,r,t),import("./sdppp-custom.js").then(n=>{n.default(sa)})}catch(e){Dp.push(e.stack||e.message||e)}await new Promise(e=>setTimeout(e,2e3)),Dp.length&&(console.error(Dp[0]),alert(`sd-ppp init failed: `+Dp.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/regenerator.js: (*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE *) */