diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/assets/index-4dx-UT8Z.js b/assets/index-4dx-UT8Z.js new file mode 100644 index 0000000..10864fa --- /dev/null +++ b/assets/index-4dx-UT8Z.js @@ -0,0 +1,271 @@ +var Z2=Object.defineProperty;var J2=(e,t,n)=>t in e?Z2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var od=(e,t,n)=>(J2(e,typeof t!="symbol"?t+"":t,n),n);function rw(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function ef(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ow={exports:{}},tf={},iw={exports:{}},et={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var As=Symbol.for("react.element"),e$=Symbol.for("react.portal"),t$=Symbol.for("react.fragment"),n$=Symbol.for("react.strict_mode"),r$=Symbol.for("react.profiler"),o$=Symbol.for("react.provider"),i$=Symbol.for("react.context"),a$=Symbol.for("react.forward_ref"),l$=Symbol.for("react.suspense"),s$=Symbol.for("react.memo"),u$=Symbol.for("react.lazy"),yv=Symbol.iterator;function c$(e){return e===null||typeof e!="object"?null:(e=yv&&e[yv]||e["@@iterator"],typeof e=="function"?e:null)}var aw={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},lw=Object.assign,sw={};function Ya(e,t,n){this.props=e,this.context=t,this.refs=sw,this.updater=n||aw}Ya.prototype.isReactComponent={};Ya.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")};Ya.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function uw(){}uw.prototype=Ya.prototype;function Cp(e,t,n){this.props=e,this.context=t,this.refs=sw,this.updater=n||aw}var Ep=Cp.prototype=new uw;Ep.constructor=Cp;lw(Ep,Ya.prototype);Ep.isPureReactComponent=!0;var wv=Array.isArray,cw=Object.prototype.hasOwnProperty,$p={current:null},fw={key:!0,ref:!0,__self:!0,__source:!0};function dw(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)cw.call(t,r)&&!fw.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1>>1,D=$[k];if(0>>1;ko(W,T))Uo(Y,W)?($[k]=Y,$[U]=T,k=U):($[k]=W,$[V]=T,k=V);else if(Uo(Y,T))$[k]=Y,$[U]=T,k=U;else break e}}return M}function o($,M){var T=$.sortIndex-M.sortIndex;return T!==0?T:$.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],u=[],c=1,d=null,h=3,p=!1,w=!1,v=!1,b=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y($){for(var M=n(u);M!==null;){if(M.callback===null)r(u);else if(M.startTime<=$)r(u),M.sortIndex=M.expirationTime,t(s,M);else break;M=n(u)}}function S($){if(v=!1,y($),!w)if(n(s)!==null)w=!0,I(C);else{var M=n(u);M!==null&&O(S,M.startTime-$)}}function C($,M){w=!1,v&&(v=!1,m(R),R=-1),p=!0;var T=h;try{for(y(M),d=n(s);d!==null&&(!(d.expirationTime>M)||$&&!F());){var k=d.callback;if(typeof k=="function"){d.callback=null,h=d.priorityLevel;var D=k(d.expirationTime<=M);M=e.unstable_now(),typeof D=="function"?d.callback=D:d===n(s)&&r(s),y(M)}else r(s);d=n(s)}if(d!==null)var B=!0;else{var V=n(u);V!==null&&O(S,V.startTime-M),B=!1}return B}finally{d=null,h=T,p=!1}}var E=!1,x=null,R=-1,N=5,P=-1;function F(){return!(e.unstable_now()-P$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function($){switch(h){case 1:case 2:case 3:var M=3;break;default:M=h}var T=h;h=M;try{return $()}finally{h=T}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,M){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var T=h;h=$;try{return M()}finally{h=T}},e.unstable_scheduleCallback=function($,M,T){var k=e.unstable_now();switch(typeof T=="object"&&T!==null?(T=T.delay,T=typeof T=="number"&&0k?($.sortIndex=T,t(u,$),n(s)===null&&$===n(u)&&(v?(m(R),R=-1):v=!0,O(S,T-k))):($.sortIndex=D,t(s,$),w||p||(w=!0,I(C))),$},e.unstable_shouldYield=F,e.unstable_wrapCallback=function($){var M=h;return function(){var T=h;h=M;try{return $.apply(this,arguments)}finally{h=T}}}})(gw);pw.exports=gw;var b$=pw.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var vw=f,Wn=b$;function le(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Eh=Object.prototype.hasOwnProperty,x$=/^[: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]*$/,bv={},xv={};function C$(e){return Eh.call(xv,e)?!0:Eh.call(bv,e)?!1:x$.test(e)?xv[e]=!0:(bv[e]=!0,!1)}function E$(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function $$(e,t,n,r){if(t===null||typeof t>"u"||E$(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function En(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var fn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){fn[e]=new En(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];fn[t]=new En(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){fn[e]=new En(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){fn[e]=new En(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){fn[e]=new En(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){fn[e]=new En(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){fn[e]=new En(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){fn[e]=new En(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){fn[e]=new En(e,5,!1,e.toLowerCase(),null,!1,!1)});var Rp=/[\-:]([a-z])/g;function Ip(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(Rp,Ip);fn[t]=new En(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(Rp,Ip);fn[t]=new En(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(Rp,Ip);fn[t]=new En(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){fn[e]=new En(e,1,!1,e.toLowerCase(),null,!1,!1)});fn.xlinkHref=new En("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){fn[e]=new En(e,1,!1,e.toLowerCase(),null,!0,!0)});function Op(e,t,n,r){var o=fn.hasOwnProperty(t)?fn[t]:null;(o!==null?o.type!==0:r||!(2l||o[a]!==i[l]){var s=` +`+o[a].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{ld=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ol(e):""}function _$(e){switch(e.tag){case 5:return Ol(e.type);case 16:return Ol("Lazy");case 13:return Ol("Suspense");case 19:return Ol("SuspenseList");case 0:case 2:case 15:return e=sd(e.type,!1),e;case 11:return e=sd(e.type.render,!1),e;case 1:return e=sd(e.type,!0),e;default:return""}}function Ih(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 la:return"Fragment";case aa:return"Portal";case $h:return"Profiler";case Mp:return"StrictMode";case _h:return"Suspense";case Rh:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Sw:return(e.displayName||"Context")+".Consumer";case ww:return(e._context.displayName||"Context")+".Provider";case Np:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Pp:return t=e.displayName||null,t!==null?t:Ih(e.type)||"Memo";case Oo:t=e._payload,e=e._init;try{return Ih(e(t))}catch{}}return null}function R$(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 Ih(t);case 8:return t===Mp?"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 Yo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function xw(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function I$(e){var t=xw(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function eu(e){e._valueTracker||(e._valueTracker=I$(e))}function Cw(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=xw(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function lc(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 Oh(e,t){var n=t.checked;return kt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ev(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Yo(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Ew(e,t){t=t.checked,t!=null&&Op(e,"checked",t,!1)}function Mh(e,t){Ew(e,t);var n=Yo(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Nh(e,t.type,n):t.hasOwnProperty("defaultValue")&&Nh(e,t.type,Yo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function $v(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Nh(e,t,n){(t!=="number"||lc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ml=Array.isArray;function xa(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=tu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function es(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var zl={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},O$=["Webkit","ms","Moz","O"];Object.keys(zl).forEach(function(e){O$.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),zl[t]=zl[e]})});function Iw(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||zl.hasOwnProperty(e)&&zl[e]?(""+t).trim():t+"px"}function Ow(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Iw(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var M$=kt({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 Ah(e,t){if(t){if(M$[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(le(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(le(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(le(61))}if(t.style!=null&&typeof t.style!="object")throw Error(le(62))}}function kh(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 Fh=null;function Tp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var zh=null,Ca=null,Ea=null;function Iv(e){if(e=Ls(e)){if(typeof zh!="function")throw Error(le(280));var t=e.stateNode;t&&(t=lf(t),zh(e.stateNode,e.type,t))}}function Mw(e){Ca?Ea?Ea.push(e):Ea=[e]:Ca=e}function Nw(){if(Ca){var e=Ca,t=Ea;if(Ea=Ca=null,Iv(e),t)for(e=0;e>>=0,e===0?32:31-(H$(e)/B$|0)|0}var nu=64,ru=4194304;function Nl(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 fc(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~o;l!==0?r=Nl(l):(i&=a,i!==0&&(r=Nl(i)))}else a=n&~o,a!==0?r=Nl(a):i!==0&&(r=Nl(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Fs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Er(t),e[t]=n}function K$(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Dl),zv=" ",Lv=!1;function Qw(e,t){switch(e){case"keyup":return S_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Zw(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var sa=!1;function x_(e,t){switch(e){case"compositionend":return Zw(t);case"keypress":return t.which!==32?null:(Lv=!0,zv);case"textInput":return e=t.data,e===zv&&Lv?null:e;default:return null}}function C_(e,t){if(sa)return e==="compositionend"||!Hp&&Qw(e,t)?(e=qw(),Bu=Lp=Fo=null,sa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Bv(n)}}function nS(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?nS(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function rS(){for(var e=window,t=lc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=lc(e.document)}return t}function Bp(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 P_(e){var t=rS(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&nS(n.ownerDocument.documentElement,n)){if(r!==null&&Bp(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Vv(n,i);var a=Vv(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ua=null,Vh=null,Hl=null,Wh=!1;function Wv(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Wh||ua==null||ua!==lc(r)||(r=ua,"selectionStart"in r&&Bp(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Hl&&as(Hl,r)||(Hl=r,r=mc(Vh,"onSelect"),0da||(e.current=Yh[da],Yh[da]=null,da--)}function vt(e,t){da++,Yh[da]=e.current,e.current=t}var Qo={},gn=ti(Qo),On=ti(!1),_i=Qo;function Aa(e,t){var n=e.type.contextTypes;if(!n)return Qo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Mn(e){return e=e.childContextTypes,e!=null}function gc(){Ct(On),Ct(gn)}function Qv(e,t,n){if(gn.current!==Qo)throw Error(le(168));vt(gn,t),vt(On,n)}function dS(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(le(108,R$(e)||"Unknown",o));return kt({},n,r)}function vc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Qo,_i=gn.current,vt(gn,e),vt(On,On.current),!0}function Zv(e,t,n){var r=e.stateNode;if(!r)throw Error(le(169));n?(e=dS(e,t,_i),r.__reactInternalMemoizedMergedChildContext=e,Ct(On),Ct(gn),vt(gn,e)):Ct(On),vt(On,n)}var eo=null,sf=!1,xd=!1;function hS(e){eo===null?eo=[e]:eo.push(e)}function W_(e){sf=!0,hS(e)}function ni(){if(!xd&&eo!==null){xd=!0;var e=0,t=ut;try{var n=eo;for(ut=1;e>=a,o-=a,no=1<<32-Er(t)+o|n<R?(N=x,x=null):N=x.sibling;var P=h(m,x,y[R],S);if(P===null){x===null&&(x=N);break}e&&x&&P.alternate===null&&t(m,x),g=i(P,g,R),E===null?C=P:E.sibling=P,E=P,x=N}if(R===y.length)return n(m,x),It&&ii(m,R),C;if(x===null){for(;RR?(N=x,x=null):N=x.sibling;var F=h(m,x,P.value,S);if(F===null){x===null&&(x=N);break}e&&x&&F.alternate===null&&t(m,x),g=i(F,g,R),E===null?C=F:E.sibling=F,E=F,x=N}if(P.done)return n(m,x),It&&ii(m,R),C;if(x===null){for(;!P.done;R++,P=y.next())P=d(m,P.value,S),P!==null&&(g=i(P,g,R),E===null?C=P:E.sibling=P,E=P);return It&&ii(m,R),C}for(x=r(m,x);!P.done;R++,P=y.next())P=p(x,m,R,P.value,S),P!==null&&(e&&P.alternate!==null&&x.delete(P.key===null?R:P.key),g=i(P,g,R),E===null?C=P:E.sibling=P,E=P);return e&&x.forEach(function(L){return t(m,L)}),It&&ii(m,R),C}function b(m,g,y,S){if(typeof y=="object"&&y!==null&&y.type===la&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Js:e:{for(var C=y.key,E=g;E!==null;){if(E.key===C){if(C=y.type,C===la){if(E.tag===7){n(m,E.sibling),g=o(E,y.props.children),g.return=m,m=g;break e}}else if(E.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Oo&&i0(C)===E.type){n(m,E.sibling),g=o(E,y.props),g.ref=gl(m,E,y),g.return=m,m=g;break e}n(m,E);break}else t(m,E);E=E.sibling}y.type===la?(g=Si(y.props.children,m.mode,S,y.key),g.return=m,m=g):(S=Yu(y.type,y.key,y.props,null,m.mode,S),S.ref=gl(m,g,y),S.return=m,m=S)}return a(m);case aa:e:{for(E=y.key;g!==null;){if(g.key===E)if(g.tag===4&&g.stateNode.containerInfo===y.containerInfo&&g.stateNode.implementation===y.implementation){n(m,g.sibling),g=o(g,y.children||[]),g.return=m,m=g;break e}else{n(m,g);break}else t(m,g);g=g.sibling}g=Md(y,m.mode,S),g.return=m,m=g}return a(m);case Oo:return E=y._init,b(m,g,E(y._payload),S)}if(Ml(y))return w(m,g,y,S);if(fl(y))return v(m,g,y,S);cu(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,g!==null&&g.tag===6?(n(m,g.sibling),g=o(g,y),g.return=m,m=g):(n(m,g),g=Od(y,m.mode,S),g.return=m,m=g),a(m)):n(m,g)}return b}var Fa=bS(!0),xS=bS(!1),Ds={},Hr=ti(Ds),cs=ti(Ds),fs=ti(Ds);function hi(e){if(e===Ds)throw Error(le(174));return e}function Qp(e,t){switch(vt(fs,t),vt(cs,e),vt(Hr,Ds),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Th(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Th(t,e)}Ct(Hr),vt(Hr,t)}function za(){Ct(Hr),Ct(cs),Ct(fs)}function CS(e){hi(fs.current);var t=hi(Hr.current),n=Th(t,e.type);t!==n&&(vt(cs,e),vt(Hr,n))}function Zp(e){cs.current===e&&(Ct(Hr),Ct(cs))}var Tt=ti(0);function Cc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Cd=[];function Jp(){for(var e=0;en?n:4,e(!0);var r=Ed.transition;Ed.transition={};try{e(!1),t()}finally{ut=n,Ed.transition=r}}function DS(){return sr().memoizedState}function X_(e,t,n){var r=Go(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},jS(e))HS(t,n);else if(n=vS(e,t,n,r),n!==null){var o=Sn();$r(n,e,r,o),BS(n,t,r)}}function q_(e,t,n){var r=Go(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(jS(e))HS(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,Or(l,a)){var s=t.interleaved;s===null?(o.next=o,qp(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=vS(e,t,o,r),n!==null&&(o=Sn(),$r(n,e,r,o),BS(n,t,r))}}function jS(e){var t=e.alternate;return e===At||t!==null&&t===At}function HS(e,t){Bl=Ec=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function BS(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,kp(e,n)}}var $c={readContext:lr,useCallback:hn,useContext:hn,useEffect:hn,useImperativeHandle:hn,useInsertionEffect:hn,useLayoutEffect:hn,useMemo:hn,useReducer:hn,useRef:hn,useState:hn,useDebugValue:hn,useDeferredValue:hn,useTransition:hn,useMutableSource:hn,useSyncExternalStore:hn,useId:hn,unstable_isNewReconciler:!1},Y_={readContext:lr,useCallback:function(e,t){return zr().memoizedState=[e,t===void 0?null:t],e},useContext:lr,useEffect:l0,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ku(4194308,4,AS.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ku(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ku(4,2,e,t)},useMemo:function(e,t){var n=zr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=zr();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=X_.bind(null,At,e),[r.memoizedState,e]},useRef:function(e){var t=zr();return e={current:e},t.memoizedState=e},useState:a0,useDebugValue:og,useDeferredValue:function(e){return zr().memoizedState=e},useTransition:function(){var e=a0(!1),t=e[0];return e=G_.bind(null,e[1]),zr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=At,o=zr();if(It){if(n===void 0)throw Error(le(407));n=n()}else{if(n=t(),on===null)throw Error(le(349));Ii&30||_S(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,l0(IS.bind(null,r,i,e),[e]),r.flags|=2048,ms(9,RS.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=zr(),t=on.identifierPrefix;if(It){var n=ro,r=no;n=(r&~(1<<32-Er(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ds++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Lr]=t,e[us]=r,QS(e,t,!1,!1),t.stateNode=e;e:{switch(a=kh(n,r),n){case"dialog":bt("cancel",e),bt("close",e),o=r;break;case"iframe":case"object":case"embed":bt("load",e),o=r;break;case"video":case"audio":for(o=0;oDa&&(t.flags|=128,r=!0,vl(i,!1),t.lanes=4194304)}else{if(!r)if(e=Cc(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),vl(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!It)return mn(t),null}else 2*Vt()-i.renderingStartTime>Da&&n!==1073741824&&(t.flags|=128,r=!0,vl(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Vt(),t.sibling=null,n=Tt.current,vt(Tt,r?n&1|2:n&1),t):(mn(t),null);case 22:case 23:return cg(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Dn&1073741824&&(mn(t),t.subtreeFlags&6&&(t.flags|=8192)):mn(t),null;case 24:return null;case 25:return null}throw Error(le(156,t.tag))}function oR(e,t){switch(Wp(t),t.tag){case 1:return Mn(t.type)&&gc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return za(),Ct(On),Ct(gn),Jp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Zp(t),null;case 13:if(Ct(Tt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(le(340));ka()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ct(Tt),null;case 4:return za(),null;case 10:return Xp(t.type._context),null;case 22:case 23:return cg(),null;case 24:return null;default:return null}}var du=!1,pn=!1,iR=typeof WeakSet=="function"?WeakSet:Set,Ee=null;function ga(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Lt(e,t,r)}else n.current=null}function sm(e,t,n){try{n()}catch(r){Lt(e,t,r)}}var g0=!1;function aR(e,t){if(Uh=dc,e=rS(),Bp(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,l=-1,s=-1,u=0,c=0,d=e,h=null;t:for(;;){for(var p;d!==n||o!==0&&d.nodeType!==3||(l=a+o),d!==i||r!==0&&d.nodeType!==3||(s=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(p=d.firstChild)!==null;)h=d,d=p;for(;;){if(d===e)break t;if(h===n&&++u===o&&(l=a),h===i&&++c===r&&(s=a),(p=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=p}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Kh={focusedElem:e,selectionRange:n},dc=!1,Ee=t;Ee!==null;)if(t=Ee,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ee=e;else for(;Ee!==null;){t=Ee;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var v=w.memoizedProps,b=w.memoizedState,m=t.stateNode,g=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:gr(t.type,v),b);m.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(le(163))}}catch(S){Lt(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,Ee=e;break}Ee=t.return}return w=g0,g0=!1,w}function Vl(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&sm(t,n,i)}o=o.next}while(o!==r)}}function ff(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function um(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function eb(e){var t=e.alternate;t!==null&&(e.alternate=null,eb(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Lr],delete t[us],delete t[qh],delete t[B_],delete t[V_])),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 tb(e){return e.tag===5||e.tag===3||e.tag===4}function v0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||tb(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 cm(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=pc));else if(r!==4&&(e=e.child,e!==null))for(cm(e,t,n),e=e.sibling;e!==null;)cm(e,t,n),e=e.sibling}function fm(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(fm(e,t,n),e=e.sibling;e!==null;)fm(e,t,n),e=e.sibling}var sn=null,vr=!1;function _o(e,t,n){for(n=n.child;n!==null;)nb(e,t,n),n=n.sibling}function nb(e,t,n){if(jr&&typeof jr.onCommitFiberUnmount=="function")try{jr.onCommitFiberUnmount(nf,n)}catch{}switch(n.tag){case 5:pn||ga(n,t);case 6:var r=sn,o=vr;sn=null,_o(e,t,n),sn=r,vr=o,sn!==null&&(vr?(e=sn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):sn.removeChild(n.stateNode));break;case 18:sn!==null&&(vr?(e=sn,n=n.stateNode,e.nodeType===8?bd(e.parentNode,n):e.nodeType===1&&bd(e,n),os(e)):bd(sn,n.stateNode));break;case 4:r=sn,o=vr,sn=n.stateNode.containerInfo,vr=!0,_o(e,t,n),sn=r,vr=o;break;case 0:case 11:case 14:case 15:if(!pn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&sm(n,t,a),o=o.next}while(o!==r)}_o(e,t,n);break;case 1:if(!pn&&(ga(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Lt(n,t,l)}_o(e,t,n);break;case 21:_o(e,t,n);break;case 22:n.mode&1?(pn=(r=pn)||n.memoizedState!==null,_o(e,t,n),pn=r):_o(e,t,n);break;default:_o(e,t,n)}}function y0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new iR),t.forEach(function(r){var o=pR.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function mr(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=Vt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*sR(r/1960))-r,10e?16:e,zo===null)var r=!1;else{if(e=zo,zo=null,Ic=0,at&6)throw Error(le(331));var o=at;for(at|=4,Ee=e.current;Ee!==null;){var i=Ee,a=i.child;if(Ee.flags&16){var l=i.deletions;if(l!==null){for(var s=0;sVt()-sg?wi(e,0):lg|=n),Nn(e,t)}function cb(e,t){t===0&&(e.mode&1?(t=ru,ru<<=1,!(ru&130023424)&&(ru=4194304)):t=1);var n=Sn();e=uo(e,t),e!==null&&(Fs(e,t,n),Nn(e,n))}function mR(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),cb(e,n)}function pR(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(le(314))}r!==null&&r.delete(t),cb(e,n)}var fb;fb=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||On.current)Rn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Rn=!1,nR(e,t,n);Rn=!!(e.flags&131072)}else Rn=!1,It&&t.flags&1048576&&mS(t,wc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Gu(e,t),e=t.pendingProps;var o=Aa(t,gn.current);_a(t,n),o=tg(null,t,r,e,o,n);var i=ng();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,Mn(r)?(i=!0,vc(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Yp(t),o.updater=uf,t.stateNode=o,o._reactInternals=t,tm(t,r,e,n),t=om(null,t,r,!0,i,n)):(t.tag=0,It&&i&&Vp(t),wn(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Gu(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=vR(r),e=gr(r,e),o){case 0:t=rm(null,t,r,e,n);break e;case 1:t=h0(null,t,r,e,n);break e;case 11:t=f0(null,t,r,e,n);break e;case 14:t=d0(null,t,r,gr(r.type,e),n);break e}throw Error(le(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gr(r,o),rm(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gr(r,o),h0(e,t,r,o,n);case 3:e:{if(XS(t),e===null)throw Error(le(387));r=t.pendingProps,i=t.memoizedState,o=i.element,yS(e,t),xc(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=La(Error(le(423)),t),t=m0(e,t,r,n,o);break e}else if(r!==o){o=La(Error(le(424)),t),t=m0(e,t,r,n,o);break e}else for(Hn=Wo(t.stateNode.containerInfo.firstChild),Vn=t,It=!0,br=null,n=xS(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ka(),r===o){t=co(e,t,n);break e}wn(e,t,r,n)}t=t.child}return t;case 5:return CS(t),e===null&&Zh(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Gh(r,o)?a=null:i!==null&&Gh(r,i)&&(t.flags|=32),GS(e,t),wn(e,t,a,n),t.child;case 6:return e===null&&Zh(t),null;case 13:return qS(e,t,n);case 4:return Qp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Fa(t,null,r,n):wn(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gr(r,o),f0(e,t,r,o,n);case 7:return wn(e,t,t.pendingProps,n),t.child;case 8:return wn(e,t,t.pendingProps.children,n),t.child;case 12:return wn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,vt(Sc,r._currentValue),r._currentValue=a,i!==null)if(Or(i.value,a)){if(i.children===o.children&&!On.current){t=co(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=io(-1,n&-n),s.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Jh(i.return,n,t),l.lanes|=n;break}s=s.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(le(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Jh(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}wn(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,_a(t,n),o=lr(o),r=r(o),t.flags|=1,wn(e,t,r,n),t.child;case 14:return r=t.type,o=gr(r,t.pendingProps),o=gr(r.type,o),d0(e,t,r,o,n);case 15:return US(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gr(r,o),Gu(e,t),t.tag=1,Mn(r)?(e=!0,vc(t)):e=!1,_a(t,n),SS(t,r,o),tm(t,r,o,n),om(null,t,r,!0,e,n);case 19:return YS(e,t,n);case 22:return KS(e,t,n)}throw Error(le(156,t.tag))};function db(e,t){return Lw(e,t)}function gR(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function or(e,t,n,r){return new gR(e,t,n,r)}function dg(e){return e=e.prototype,!(!e||!e.isReactComponent)}function vR(e){if(typeof e=="function")return dg(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Np)return 11;if(e===Pp)return 14}return 2}function Xo(e,t){var n=e.alternate;return n===null?(n=or(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Yu(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")dg(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case la:return Si(n.children,o,i,t);case Mp:a=8,o|=8;break;case $h:return e=or(12,n,t,o|2),e.elementType=$h,e.lanes=i,e;case _h:return e=or(13,n,t,o),e.elementType=_h,e.lanes=i,e;case Rh:return e=or(19,n,t,o),e.elementType=Rh,e.lanes=i,e;case bw:return hf(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ww:a=10;break e;case Sw:a=9;break e;case Np:a=11;break e;case Pp:a=14;break e;case Oo:a=16,r=null;break e}throw Error(le(130,e==null?e:typeof e,""))}return t=or(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Si(e,t,n,r){return e=or(7,e,r,t),e.lanes=n,e}function hf(e,t,n,r){return e=or(22,e,r,t),e.elementType=bw,e.lanes=n,e.stateNode={isHidden:!1},e}function Od(e,t,n){return e=or(6,e,null,t),e.lanes=n,e}function Md(e,t,n){return t=or(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function yR(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=cd(0),this.expirationTimes=cd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=cd(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function hg(e,t,n,r,o,i,a,l,s){return e=new yR(e,t,n,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=or(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Yp(i),e}function wR(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(gb)}catch(e){console.error(e)}}gb(),mw.exports=Kn;var Zo=mw.exports;const vb=ef(Zo),ER=rw({__proto__:null,default:vb},[Zo]);var _0=Zo;Ch.createRoot=_0.createRoot,Ch.hydrateRoot=_0.hydrateRoot;function dn(e){if(typeof e=="string"||typeof e=="number")return""+e;let t="";if(Array.isArray(e))for(let n=0,r;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?PR:NR;bb.useSyncExternalStore=ja.useSyncExternalStore!==void 0?ja.useSyncExternalStore:TR;Sb.exports=bb;var AR=Sb.exports;/** + * @license React + * use-sync-external-store-shim/with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var yf=f,kR=AR;function FR(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var zR=typeof Object.is=="function"?Object.is:FR,LR=kR.useSyncExternalStore,DR=yf.useRef,jR=yf.useEffect,HR=yf.useMemo,BR=yf.useDebugValue;wb.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=DR(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=HR(function(){function s(p){if(!u){if(u=!0,c=p,p=r(p),o!==void 0&&a.hasValue){var w=a.value;if(o(w,p))return d=w}return d=p}if(w=d,zR(c,p))return w;var v=r(p);return o!==void 0&&o(w,v)?w:(c=p,d=v)}var u=!1,c,d,h=n===void 0?null:n;return[function(){return s(t())},h===null?void 0:function(){return s(h())}]},[t,n,r,o]);var l=LR(e,i[0],i[1]);return jR(function(){a.hasValue=!0,a.value=l},[l]),BR(l),l};yb.exports=wb;var VR=yb.exports;const WR=ef(VR);var UR={BASE_URL:"/demo-flow/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const R0=e=>{let t;const n=new Set,r=(s,u)=>{const c=typeof s=="function"?s(t):s;if(!Object.is(c,t)){const d=t;t=u??(typeof c!="object"||c===null)?c:Object.assign({},t,c),n.forEach(h=>h(t,d))}},o=()=>t,l={setState:r,getState:o,subscribe:s=>(n.add(s),()=>n.delete(s)),destroy:()=>{(UR?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,o,l),l},KR=e=>e?R0(e):R0,{useDebugValue:GR}=j,{useSyncExternalStoreWithSelector:XR}=WR;function xb(e,t=e.getState,n){const r=XR(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return GR(r),r}const I0=(e,t)=>{const n=KR(e),r=(o,i=t)=>xb(n,o,i);return Object.assign(r,n),r},qR=(e,t)=>e?I0(e,t):I0;function an(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,o]of e)if(!Object.is(o,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r{}};function wf(){for(var e=0,t=arguments.length,n={},r;e=0&&(r=n.slice(o+1),n=n.slice(0,o)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Qu.prototype=wf.prototype={constructor:Qu,on:function(e,t){var n=this._,r=QR(e+"",n),o,i=-1,a=r.length;if(arguments.length<2){for(;++i0)for(var n=new Array(o),r=0,o,i;r=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),M0.hasOwnProperty(t)?{space:M0[t],local:e}:e}function JR(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===gm&&t.documentElement.namespaceURI===gm?t.createElement(e):t.createElementNS(n,e)}}function eI(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Cb(e){var t=Sf(e);return(t.local?eI:JR)(t)}function tI(){}function vg(e){return e==null?tI:function(){return this.querySelector(e)}}function nI(e){typeof e!="function"&&(e=vg(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o=y&&(y=g+1);!(C=b[y])&&++y=0;)(a=r[o])&&(i&&a.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(a,i),i=a);return this}function RI(e){e||(e=II);function t(d,h){return d&&h?e(d.__data__,h.__data__):!d-!h}for(var n=this._groups,r=n.length,o=new Array(r),i=0;it?1:e>=t?0:NaN}function OI(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function MI(){return Array.from(this)}function NI(){for(var e=this._groups,t=0,n=e.length;t1?this.each((t==null?BI:typeof t=="function"?WI:VI)(e,t,n??"")):Ha(this.node(),e)}function Ha(e,t){return e.style.getPropertyValue(t)||Ib(e).getComputedStyle(e,null).getPropertyValue(t)}function KI(e){return function(){delete this[e]}}function GI(e,t){return function(){this[e]=t}}function XI(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function qI(e,t){return arguments.length>1?this.each((t==null?KI:typeof t=="function"?XI:GI)(e,t)):this.node()[e]}function Ob(e){return e.trim().split(/^|\s+/)}function yg(e){return e.classList||new Mb(e)}function Mb(e){this._node=e,this._names=Ob(e.getAttribute("class")||"")}Mb.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Nb(e,t){for(var n=yg(e),r=-1,o=t.length;++r=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function CO(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,o=t.length,i;n()=>e;function vm(e,{sourceEvent:t,subject:n,target:r,identifier:o,active:i,x:a,y:l,dx:s,dy:u,dispatch:c}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:i,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:l,enumerable:!0,configurable:!0},dx:{value:s,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:c}})}vm.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function TO(e){return!e.ctrlKey&&!e.button}function AO(){return this.parentNode}function kO(e,t){return t??{x:e.x,y:e.y}}function FO(){return navigator.maxTouchPoints||"ontouchstart"in this}function zO(){var e=TO,t=AO,n=kO,r=FO,o={},i=wf("start","drag","end"),a=0,l,s,u,c,d=0;function h(S){S.on("mousedown.drag",p).filter(r).on("touchstart.drag",b).on("touchmove.drag",m,PO).on("touchend.drag touchcancel.drag",g).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(S,C){if(!(c||!e.call(this,S,C))){var E=y(this,t.call(this,S,C),S,C,"mouse");E&&(rr(S.view).on("mousemove.drag",w,gs).on("mouseup.drag",v,gs),kb(S.view),Pd(S),u=!1,l=S.clientX,s=S.clientY,E("start",S))}}function w(S){if(Ia(S),!u){var C=S.clientX-l,E=S.clientY-s;u=C*C+E*E>d}o.mouse("drag",S)}function v(S){rr(S.view).on("mousemove.drag mouseup.drag",null),Fb(S.view,u),Ia(S),o.mouse("end",S)}function b(S,C){if(e.call(this,S,C)){var E=S.changedTouches,x=t.call(this,S,C),R=E.length,N,P;for(N=0;N>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?gu(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?gu(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=DO.exec(e))?new In(t[1],t[2],t[3],1):(t=jO.exec(e))?new In(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=HO.exec(e))?gu(t[1],t[2],t[3],t[4]):(t=BO.exec(e))?gu(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=VO.exec(e))?z0(t[1],t[2]/100,t[3]/100,1):(t=WO.exec(e))?z0(t[1],t[2]/100,t[3]/100,t[4]):N0.hasOwnProperty(e)?A0(N0[e]):e==="transparent"?new In(NaN,NaN,NaN,0):null}function A0(e){return new In(e>>16&255,e>>8&255,e&255,1)}function gu(e,t,n,r){return r<=0&&(e=t=n=NaN),new In(e,t,n,r)}function GO(e){return e instanceof Hs||(e=ws(e)),e?(e=e.rgb(),new In(e.r,e.g,e.b,e.opacity)):new In}function ym(e,t,n,r){return arguments.length===1?GO(e):new In(e,t,n,r??1)}function In(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}wg(In,ym,zb(Hs,{brighter(e){return e=e==null?Pc:Math.pow(Pc,e),new In(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?vs:Math.pow(vs,e),new In(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new In(bi(this.r),bi(this.g),bi(this.b),Tc(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:k0,formatHex:k0,formatHex8:XO,formatRgb:F0,toString:F0}));function k0(){return`#${mi(this.r)}${mi(this.g)}${mi(this.b)}`}function XO(){return`#${mi(this.r)}${mi(this.g)}${mi(this.b)}${mi((isNaN(this.opacity)?1:this.opacity)*255)}`}function F0(){const e=Tc(this.opacity);return`${e===1?"rgb(":"rgba("}${bi(this.r)}, ${bi(this.g)}, ${bi(this.b)}${e===1?")":`, ${e})`}`}function Tc(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function bi(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function mi(e){return e=bi(e),(e<16?"0":"")+e.toString(16)}function z0(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new xr(e,t,n,r)}function Lb(e){if(e instanceof xr)return new xr(e.h,e.s,e.l,e.opacity);if(e instanceof Hs||(e=ws(e)),!e)return new xr;if(e instanceof xr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(t===i?a=(n-r)/l+(n0&&s<1?0:a,new xr(a,l,s,e.opacity)}function qO(e,t,n,r){return arguments.length===1?Lb(e):new xr(e,t,n,r??1)}function xr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}wg(xr,qO,zb(Hs,{brighter(e){return e=e==null?Pc:Math.pow(Pc,e),new xr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?vs:Math.pow(vs,e),new xr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new In(Td(e>=240?e-240:e+120,o,r),Td(e,o,r),Td(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new xr(L0(this.h),vu(this.s),vu(this.l),Tc(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Tc(this.opacity);return`${e===1?"hsl(":"hsla("}${L0(this.h)}, ${vu(this.s)*100}%, ${vu(this.l)*100}%${e===1?")":`, ${e})`}`}}));function L0(e){return e=(e||0)%360,e<0?e+360:e}function vu(e){return Math.max(0,Math.min(1,e||0))}function Td(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Db=e=>()=>e;function YO(e,t){return function(n){return e+n*t}}function QO(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function ZO(e){return(e=+e)==1?jb:function(t,n){return n-t?QO(t,n,e):Db(isNaN(t)?n:t)}}function jb(e,t){var n=t-e;return n?YO(e,n):Db(isNaN(e)?t:e)}const D0=function e(t){var n=ZO(t);function r(o,i){var a=n((o=ym(o)).r,(i=ym(i)).r),l=n(o.g,i.g),s=n(o.b,i.b),u=jb(o.opacity,i.opacity);return function(c){return o.r=a(c),o.g=l(c),o.b=s(c),o.opacity=u(c),o+""}}return r.gamma=e,r}(1);function No(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var wm=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ad=new RegExp(wm.source,"g");function JO(e){return function(){return e}}function eM(e){return function(t){return e(t)+""}}function tM(e,t){var n=wm.lastIndex=Ad.lastIndex=0,r,o,i,a=-1,l=[],s=[];for(e=e+"",t=t+"";(r=wm.exec(e))&&(o=Ad.exec(t));)(i=o.index)>n&&(i=t.slice(n,i),l[a]?l[a]+=i:l[++a]=i),(r=r[0])===(o=o[0])?l[a]?l[a]+=o:l[++a]=o:(l[++a]=null,s.push({i:a,x:No(r,o)})),n=Ad.lastIndex;return n180?c+=360:c-u>180&&(u+=360),h.push({i:d.push(o(d)+"rotate(",null,r)-2,x:No(u,c)})):c&&d.push(o(d)+"rotate("+c+r)}function l(u,c,d,h){u!==c?h.push({i:d.push(o(d)+"skewX(",null,r)-2,x:No(u,c)}):c&&d.push(o(d)+"skewX("+c+r)}function s(u,c,d,h,p,w){if(u!==d||c!==h){var v=p.push(o(p)+"scale(",null,",",null,")");w.push({i:v-4,x:No(u,d)},{i:v-2,x:No(c,h)})}else(d!==1||h!==1)&&p.push(o(p)+"scale("+d+","+h+")")}return function(u,c){var d=[],h=[];return u=e(u),c=e(c),i(u.translateX,u.translateY,c.translateX,c.translateY,d,h),a(u.rotate,c.rotate,d,h),l(u.skewX,c.skewX,d,h),s(u.scaleX,u.scaleY,c.scaleX,c.scaleY,d,h),u=c=null,function(p){for(var w=-1,v=h.length,b;++w=0&&e._call.call(void 0,t),e=e._next;--Ba}function B0(){Ni=(kc=Ss.now())+bf,Ba=Tl=0;try{fM()}finally{Ba=0,hM(),Ni=0}}function dM(){var e=Ss.now(),t=e-kc;t>Vb&&(bf-=t,kc=e)}function hM(){for(var e,t=Ac,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Ac=n);Al=e,bm(r)}function bm(e){if(!Ba){Tl&&(Tl=clearTimeout(Tl));var t=e-Ni;t>24?(e<1/0&&(Tl=setTimeout(B0,e-Ss.now()-bf)),wl&&(wl=clearInterval(wl))):(wl||(kc=Ss.now(),wl=setInterval(dM,Vb)),Ba=1,Wb(B0))}}function V0(e,t,n){var r=new Fc;return t=t==null?0:+t,r.restart(o=>{r.stop(),e(o+t)},t,n),r}var mM=wf("start","end","cancel","interrupt"),pM=[],Kb=0,W0=1,xm=2,Zu=3,U0=4,Cm=5,Ju=6;function xf(e,t,n,r,o,i){var a=e.__transition;if(!a)e.__transition={};else if(n in a)return;gM(e,n,{name:t,index:r,group:o,on:mM,tween:pM,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:Kb})}function bg(e,t){var n=Nr(e,t);if(n.state>Kb)throw new Error("too late; already scheduled");return n}function Wr(e,t){var n=Nr(e,t);if(n.state>Zu)throw new Error("too late; already running");return n}function Nr(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function gM(e,t,n){var r=e.__transition,o;r[t]=n,n.timer=Ub(i,0,n.time);function i(u){n.state=W0,n.timer.restart(a,n.delay,n.time),n.delay<=u&&a(u-n.delay)}function a(u){var c,d,h,p;if(n.state!==W0)return s();for(c in r)if(p=r[c],p.name===n.name){if(p.state===Zu)return V0(a);p.state===U0?(p.state=Ju,p.timer.stop(),p.on.call("interrupt",e,e.__data__,p.index,p.group),delete r[c]):+cxm&&r.state=0&&(t=t.slice(0,n)),!t||t==="start"})}function KM(e,t,n){var r,o,i=UM(t)?bg:Wr;return function(){var a=i(this,e),l=a.on;l!==r&&(o=(r=l).copy()).on(t,n),a.on=o}}function GM(e,t){var n=this._id;return arguments.length<2?Nr(this.node(),n).on.on(e):this.each(KM(n,e,t))}function XM(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function qM(){return this.on("end.remove",XM(this._id))}function YM(e){var t=this._name,n=this._id;typeof e!="function"&&(e=vg(e));for(var r=this._groups,o=r.length,i=new Array(o),a=0;a()=>e;function bN(e,{sourceEvent:t,target:n,transform:r,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:o}})}function oo(e,t,n){this.k=e,this.x=t,this.y=n}oo.prototype={constructor:oo,scale:function(e){return e===1?this:new oo(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new oo(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var ao=new oo(1,0,0);oo.prototype;function kd(e){e.stopImmediatePropagation()}function Sl(e){e.preventDefault(),e.stopImmediatePropagation()}function xN(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function CN(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function K0(){return this.__zoom||ao}function EN(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function $N(){return navigator.maxTouchPoints||"ontouchstart"in this}function _N(e,t,n){var r=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],i=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(o>r?(r+o)/2:Math.min(0,r)||Math.max(0,o),a>i?(i+a)/2:Math.min(0,i)||Math.max(0,a))}function Yb(){var e=xN,t=CN,n=_N,r=EN,o=$N,i=[0,1/0],a=[[-1/0,-1/0],[1/0,1/0]],l=250,s=uM,u=wf("start","zoom","end"),c,d,h,p=500,w=150,v=0,b=10;function m(_){_.property("__zoom",K0).on("wheel.zoom",R,{passive:!1}).on("mousedown.zoom",N).on("dblclick.zoom",P).filter(o).on("touchstart.zoom",F).on("touchmove.zoom",L).on("touchend.zoom touchcancel.zoom",A).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}m.transform=function(_,z,I,O){var $=_.selection?_.selection():_;$.property("__zoom",K0),_!==$?C(_,z,I,O):$.interrupt().each(function(){E(this,arguments).event(O).start().zoom(null,typeof z=="function"?z.apply(this,arguments):z).end()})},m.scaleBy=function(_,z,I,O){m.scaleTo(_,function(){var $=this.__zoom.k,M=typeof z=="function"?z.apply(this,arguments):z;return $*M},I,O)},m.scaleTo=function(_,z,I,O){m.transform(_,function(){var $=t.apply(this,arguments),M=this.__zoom,T=I==null?S($):typeof I=="function"?I.apply(this,arguments):I,k=M.invert(T),D=typeof z=="function"?z.apply(this,arguments):z;return n(y(g(M,D),T,k),$,a)},I,O)},m.translateBy=function(_,z,I,O){m.transform(_,function(){return n(this.__zoom.translate(typeof z=="function"?z.apply(this,arguments):z,typeof I=="function"?I.apply(this,arguments):I),t.apply(this,arguments),a)},null,O)},m.translateTo=function(_,z,I,O,$){m.transform(_,function(){var M=t.apply(this,arguments),T=this.__zoom,k=O==null?S(M):typeof O=="function"?O.apply(this,arguments):O;return n(ao.translate(k[0],k[1]).scale(T.k).translate(typeof z=="function"?-z.apply(this,arguments):-z,typeof I=="function"?-I.apply(this,arguments):-I),M,a)},O,$)};function g(_,z){return z=Math.max(i[0],Math.min(i[1],z)),z===_.k?_:new oo(z,_.x,_.y)}function y(_,z,I){var O=z[0]-I[0]*_.k,$=z[1]-I[1]*_.k;return O===_.x&&$===_.y?_:new oo(_.k,O,$)}function S(_){return[(+_[0][0]+ +_[1][0])/2,(+_[0][1]+ +_[1][1])/2]}function C(_,z,I,O){_.on("start.zoom",function(){E(this,arguments).event(O).start()}).on("interrupt.zoom end.zoom",function(){E(this,arguments).event(O).end()}).tween("zoom",function(){var $=this,M=arguments,T=E($,M).event(O),k=t.apply($,M),D=I==null?S(k):typeof I=="function"?I.apply($,M):I,B=Math.max(k[1][0]-k[0][0],k[1][1]-k[0][1]),V=$.__zoom,W=typeof z=="function"?z.apply($,M):z,U=s(V.invert(D).concat(B/V.k),W.invert(D).concat(B/W.k));return function(Y){if(Y===1)Y=W;else{var X=U(Y),K=B/X[2];Y=new oo(K,D[0]-X[0]*K,D[1]-X[1]*K)}T.zoom(null,Y)}})}function E(_,z,I){return!I&&_.__zooming||new x(_,z)}function x(_,z){this.that=_,this.args=z,this.active=0,this.sourceEvent=null,this.extent=t.apply(_,z),this.taps=0}x.prototype={event:function(_){return _&&(this.sourceEvent=_),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(_,z){return this.mouse&&_!=="mouse"&&(this.mouse[1]=z.invert(this.mouse[0])),this.touch0&&_!=="touch"&&(this.touch0[1]=z.invert(this.touch0[0])),this.touch1&&_!=="touch"&&(this.touch1[1]=z.invert(this.touch1[0])),this.that.__zoom=z,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(_){var z=rr(this.that).datum();u.call(_,this.that,new bN(_,{sourceEvent:this.sourceEvent,target:m,type:_,transform:this.that.__zoom,dispatch:u}),z)}};function R(_,...z){if(!e.apply(this,arguments))return;var I=E(this,z).event(_),O=this.__zoom,$=Math.max(i[0],Math.min(i[1],O.k*Math.pow(2,r.apply(this,arguments)))),M=yr(_);if(I.wheel)(I.mouse[0][0]!==M[0]||I.mouse[0][1]!==M[1])&&(I.mouse[1]=O.invert(I.mouse[0]=M)),clearTimeout(I.wheel);else{if(O.k===$)return;I.mouse=[M,O.invert(M)],ec(this),I.start()}Sl(_),I.wheel=setTimeout(T,w),I.zoom("mouse",n(y(g(O,$),I.mouse[0],I.mouse[1]),I.extent,a));function T(){I.wheel=null,I.end()}}function N(_,...z){if(h||!e.apply(this,arguments))return;var I=_.currentTarget,O=E(this,z,!0).event(_),$=rr(_.view).on("mousemove.zoom",D,!0).on("mouseup.zoom",B,!0),M=yr(_,I),T=_.clientX,k=_.clientY;kb(_.view),kd(_),O.mouse=[M,this.__zoom.invert(M)],ec(this),O.start();function D(V){if(Sl(V),!O.moved){var W=V.clientX-T,U=V.clientY-k;O.moved=W*W+U*U>v}O.event(V).zoom("mouse",n(y(O.that.__zoom,O.mouse[0]=yr(V,I),O.mouse[1]),O.extent,a))}function B(V){$.on("mousemove.zoom mouseup.zoom",null),Fb(V.view,O.moved),Sl(V),O.event(V).end()}}function P(_,...z){if(e.apply(this,arguments)){var I=this.__zoom,O=yr(_.changedTouches?_.changedTouches[0]:_,this),$=I.invert(O),M=I.k*(_.shiftKey?.5:2),T=n(y(g(I,M),O,$),t.apply(this,z),a);Sl(_),l>0?rr(this).transition().duration(l).call(C,T,O,_):rr(this).call(m.transform,T,O,_)}}function F(_,...z){if(e.apply(this,arguments)){var I=_.touches,O=I.length,$=E(this,z,_.changedTouches.length===O).event(_),M,T,k,D;for(kd(_),T=0;T"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,t)=>`Couldn't create edge for ${e?"target":"source"} handle id: "${e?t.targetHandle:t.sourceHandle}", edge id: ${t.id}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`},Qb=ho.error001();function pt(e,t){const n=f.useContext(Cf);if(n===null)throw new Error(Qb);return xb(n,e,t)}const Zt=()=>{const e=f.useContext(Cf);if(e===null)throw new Error(Qb);return f.useMemo(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe,destroy:e.destroy}),[e])},IN=e=>e.userSelectionActive?"none":"all";function Cg({position:e,children:t,className:n,style:r,...o}){const i=pt(IN),a=`${e}`.split("-");return j.createElement("div",{className:dn(["react-flow__panel",n,...a]),style:{...r,pointerEvents:i},...o},t)}function ON({proOptions:e,position:t="bottom-right"}){return e!=null&&e.hideAttribution?null:j.createElement(Cg,{position:t,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://reactflow.dev/pro"},j.createElement("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution"},"React Flow"))}const MN=({x:e,y:t,label:n,labelStyle:r={},labelShowBg:o=!0,labelBgStyle:i={},labelBgPadding:a=[2,4],labelBgBorderRadius:l=2,children:s,className:u,...c})=>{const d=f.useRef(null),[h,p]=f.useState({x:0,y:0,width:0,height:0}),w=dn(["react-flow__edge-textwrapper",u]);return f.useEffect(()=>{if(d.current){const v=d.current.getBBox();p({x:v.x,y:v.y,width:v.width,height:v.height})}},[n]),typeof n>"u"||!n?null:j.createElement("g",{transform:`translate(${e-h.width/2} ${t-h.height/2})`,className:w,visibility:h.width?"visible":"hidden",...c},o&&j.createElement("rect",{width:h.width+2*a[0],x:-a[0],y:-a[1],height:h.height+2*a[1],className:"react-flow__edge-textbg",style:i,rx:l,ry:l}),j.createElement("text",{className:"react-flow__edge-text",y:h.height/2,dy:"0.3em",ref:d,style:r},n),s)};var NN=f.memo(MN);const Eg=e=>({width:e.offsetWidth,height:e.offsetHeight}),Va=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),$g=(e={x:0,y:0},t)=>({x:Va(e.x,t[0][0],t[1][0]),y:Va(e.y,t[0][1],t[1][1])}),G0=(e,t,n)=>en?-Va(Math.abs(e-n),1,50)/50:0,Zb=(e,t)=>{const n=G0(e.x,35,t.width-35)*20,r=G0(e.y,35,t.height-35)*20;return[n,r]},Jb=e=>{var t;return((t=e.getRootNode)==null?void 0:t.call(e))||(window==null?void 0:window.document)},ex=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),bs=({x:e,y:t,width:n,height:r})=>({x:e,y:t,x2:e+n,y2:t+r}),tx=({x:e,y:t,x2:n,y2:r})=>({x:e,y:t,width:n-e,height:r-t}),X0=e=>({...e.positionAbsolute||{x:0,y:0},width:e.width||0,height:e.height||0}),PN=(e,t)=>tx(ex(bs(e),bs(t))),Em=(e,t)=>{const n=Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x)),r=Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y));return Math.ceil(n*r)},TN=e=>ir(e.width)&&ir(e.height)&&ir(e.x)&&ir(e.y),ir=e=>!isNaN(e)&&isFinite(e),Yt=Symbol.for("internals"),nx=["Enter"," ","Escape"],AN=(e,t)=>{},kN=e=>"nativeEvent"in e;function $m(e){var o,i;const t=kN(e)?e.nativeEvent:e,n=((i=(o=t.composedPath)==null?void 0:o.call(t))==null?void 0:i[0])||e.target;return["INPUT","SELECT","TEXTAREA"].includes(n==null?void 0:n.nodeName)||(n==null?void 0:n.hasAttribute("contenteditable"))||!!(n!=null&&n.closest(".nokey"))}const rx=e=>"clientX"in e,qo=(e,t)=>{var i,a;const n=rx(e),r=n?e.clientX:(i=e.touches)==null?void 0:i[0].clientX,o=n?e.clientY:(a=e.touches)==null?void 0:a[0].clientY;return{x:r-((t==null?void 0:t.left)??0),y:o-((t==null?void 0:t.top)??0)}},zc=()=>{var e;return typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)==null?void 0:e.indexOf("Mac"))>=0},Ja=({id:e,path:t,labelX:n,labelY:r,label:o,labelStyle:i,labelShowBg:a,labelBgStyle:l,labelBgPadding:s,labelBgBorderRadius:u,style:c,markerEnd:d,markerStart:h,interactionWidth:p=20})=>j.createElement(j.Fragment,null,j.createElement("path",{id:e,style:c,d:t,fill:"none",className:"react-flow__edge-path",markerEnd:d,markerStart:h}),p&&j.createElement("path",{d:t,fill:"none",strokeOpacity:0,strokeWidth:p,className:"react-flow__edge-interaction"}),o&&ir(n)&&ir(r)?j.createElement(NN,{x:n,y:r,label:o,labelStyle:i,labelShowBg:a,labelBgStyle:l,labelBgPadding:s,labelBgBorderRadius:u}):null);Ja.displayName="BaseEdge";function bl(e,t,n){return n===void 0?n:r=>{const o=t().edges.find(i=>i.id===e);o&&n(r,{...o})}}function ox({sourceX:e,sourceY:t,targetX:n,targetY:r}){const o=Math.abs(n-e)/2,i=n{const[b,m,g]=ax({sourceX:e,sourceY:t,sourcePosition:o,targetX:n,targetY:r,targetPosition:i});return j.createElement(Ja,{path:b,labelX:m,labelY:g,label:a,labelStyle:l,labelShowBg:s,labelBgStyle:u,labelBgPadding:c,labelBgBorderRadius:d,style:h,markerEnd:p,markerStart:w,interactionWidth:v})});_g.displayName="SimpleBezierEdge";const Y0={[Ie.Left]:{x:-1,y:0},[Ie.Right]:{x:1,y:0},[Ie.Top]:{x:0,y:-1},[Ie.Bottom]:{x:0,y:1}},FN=({source:e,sourcePosition:t=Ie.Bottom,target:n})=>t===Ie.Left||t===Ie.Right?e.xMath.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function zN({source:e,sourcePosition:t=Ie.Bottom,target:n,targetPosition:r=Ie.Top,center:o,offset:i}){const a=Y0[t],l=Y0[r],s={x:e.x+a.x*i,y:e.y+a.y*i},u={x:n.x+l.x*i,y:n.y+l.y*i},c=FN({source:s,sourcePosition:t,target:u}),d=c.x!==0?"x":"y",h=c[d];let p=[],w,v;const b={x:0,y:0},m={x:0,y:0},[g,y,S,C]=ox({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(a[d]*l[d]===-1){w=o.x||g,v=o.y||y;const x=[{x:w,y:s.y},{x:w,y:u.y}],R=[{x:s.x,y:v},{x:u.x,y:v}];a[d]===h?p=d==="x"?x:R:p=d==="x"?R:x}else{const x=[{x:s.x,y:u.y}],R=[{x:u.x,y:s.y}];if(d==="x"?p=a.x===h?R:x:p=a.y===h?x:R,t===r){const A=Math.abs(e[d]-n[d]);if(A<=i){const _=Math.min(i-1,i-A);a[d]===h?b[d]=(s[d]>e[d]?-1:1)*_:m[d]=(u[d]>n[d]?-1:1)*_}}if(t!==r){const A=d==="x"?"y":"x",_=a[d]===l[A],z=s[A]>u[A],I=s[A]=L?(w=(N.x+P.x)/2,v=p[0].y):(w=p[0].x,v=(N.y+P.y)/2)}return[[e,{x:s.x+b.x,y:s.y+b.y},...p,{x:u.x+m.x,y:u.y+m.y},n],w,v,S,C]}function LN(e,t,n,r){const o=Math.min(Q0(e,t)/2,Q0(t,n)/2,r),{x:i,y:a}=t;if(e.x===i&&i===n.x||e.y===a&&a===n.y)return`L${i} ${a}`;if(e.y===a){const u=e.x{let y="";return g>0&&g{const[m,g,y]=_m({sourceX:e,sourceY:t,sourcePosition:d,targetX:n,targetY:r,targetPosition:h,borderRadius:v==null?void 0:v.borderRadius,offset:v==null?void 0:v.offset});return j.createElement(Ja,{path:m,labelX:g,labelY:y,label:o,labelStyle:i,labelShowBg:a,labelBgStyle:l,labelBgPadding:s,labelBgBorderRadius:u,style:c,markerEnd:p,markerStart:w,interactionWidth:b})});Ef.displayName="SmoothStepEdge";const Rg=f.memo(e=>{var t;return j.createElement(Ef,{...e,pathOptions:f.useMemo(()=>{var n;return{borderRadius:0,offset:(n=e.pathOptions)==null?void 0:n.offset}},[(t=e.pathOptions)==null?void 0:t.offset])})});Rg.displayName="StepEdge";function lx({sourceX:e,sourceY:t,targetX:n,targetY:r}){const[o,i,a,l]=ox({sourceX:e,sourceY:t,targetX:n,targetY:r});return[`M ${e},${t}L ${n},${r}`,o,i,a,l]}const Ig=f.memo(({sourceX:e,sourceY:t,targetX:n,targetY:r,label:o,labelStyle:i,labelShowBg:a,labelBgStyle:l,labelBgPadding:s,labelBgBorderRadius:u,style:c,markerEnd:d,markerStart:h,interactionWidth:p})=>{const[w,v,b]=lx({sourceX:e,sourceY:t,targetX:n,targetY:r});return j.createElement(Ja,{path:w,labelX:v,labelY:b,label:o,labelStyle:i,labelShowBg:a,labelBgStyle:l,labelBgPadding:s,labelBgBorderRadius:u,style:c,markerEnd:d,markerStart:h,interactionWidth:p})});Ig.displayName="StraightEdge";function Su(e,t){return e>=0?.5*e:t*25*Math.sqrt(-e)}function Z0({pos:e,x1:t,y1:n,x2:r,y2:o,c:i}){switch(e){case Ie.Left:return[t-Su(t-r,i),n];case Ie.Right:return[t+Su(r-t,i),n];case Ie.Top:return[t,n-Su(n-o,i)];case Ie.Bottom:return[t,n+Su(o-n,i)]}}function sx({sourceX:e,sourceY:t,sourcePosition:n=Ie.Bottom,targetX:r,targetY:o,targetPosition:i=Ie.Top,curvature:a=.25}){const[l,s]=Z0({pos:n,x1:e,y1:t,x2:r,y2:o,c:a}),[u,c]=Z0({pos:i,x1:r,y1:o,x2:e,y2:t,c:a}),[d,h,p,w]=ix({sourceX:e,sourceY:t,targetX:r,targetY:o,sourceControlX:l,sourceControlY:s,targetControlX:u,targetControlY:c});return[`M${e},${t} C${l},${s} ${u},${c} ${r},${o}`,d,h,p,w]}const Dc=f.memo(({sourceX:e,sourceY:t,targetX:n,targetY:r,sourcePosition:o=Ie.Bottom,targetPosition:i=Ie.Top,label:a,labelStyle:l,labelShowBg:s,labelBgStyle:u,labelBgPadding:c,labelBgBorderRadius:d,style:h,markerEnd:p,markerStart:w,pathOptions:v,interactionWidth:b})=>{const[m,g,y]=sx({sourceX:e,sourceY:t,sourcePosition:o,targetX:n,targetY:r,targetPosition:i,curvature:v==null?void 0:v.curvature});return j.createElement(Ja,{path:m,labelX:g,labelY:y,label:a,labelStyle:l,labelShowBg:s,labelBgStyle:u,labelBgPadding:c,labelBgBorderRadius:d,style:h,markerEnd:p,markerStart:w,interactionWidth:b})});Dc.displayName="BezierEdge";const Og=f.createContext(null),DN=Og.Provider;Og.Consumer;const jN=()=>f.useContext(Og),HN=e=>"id"in e&&"source"in e&&"target"in e,BN=({source:e,sourceHandle:t,target:n,targetHandle:r})=>`reactflow__edge-${e}${t||""}-${n}${r||""}`,Rm=(e,t)=>typeof e>"u"?"":typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(r=>`${r}=${e[r]}`).join("&")}`,VN=(e,t)=>t.some(n=>n.source===e.source&&n.target===e.target&&(n.sourceHandle===e.sourceHandle||!n.sourceHandle&&!e.sourceHandle)&&(n.targetHandle===e.targetHandle||!n.targetHandle&&!e.targetHandle)),ux=(e,t)=>{if(!e.source||!e.target)return t;let n;return HN(e)?n={...e}:n={...e,id:BN(e)},VN(n,t)?t:t.concat(n)},Im=({x:e,y:t},[n,r,o],i,[a,l])=>{const s={x:(e-n)/o,y:(t-r)/o};return i?{x:a*Math.round(s.x/a),y:l*Math.round(s.y/l)}:s},cx=({x:e,y:t},[n,r,o])=>({x:e*o+n,y:t*o+r}),xi=(e,t=[0,0])=>{if(!e)return{x:0,y:0,positionAbsolute:{x:0,y:0}};const n=(e.width??0)*t[0],r=(e.height??0)*t[1],o={x:e.position.x-n,y:e.position.y-r};return{...o,positionAbsolute:e.positionAbsolute?{x:e.positionAbsolute.x-n,y:e.positionAbsolute.y-r}:o}},$f=(e,t=[0,0])=>{if(e.length===0)return{x:0,y:0,width:0,height:0};const n=e.reduce((r,o)=>{const{x:i,y:a}=xi(o,t).positionAbsolute;return ex(r,bs({x:i,y:a,width:o.width||0,height:o.height||0}))},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return tx(n)},fx=(e,t,[n,r,o]=[0,0,1],i=!1,a=!1,l=[0,0])=>{const s={x:(t.x-n)/o,y:(t.y-r)/o,width:t.width/o,height:t.height/o},u=[];return e.forEach(c=>{const{width:d,height:h,selectable:p=!0,hidden:w=!1}=c;if(a&&!p||w)return!1;const{positionAbsolute:v}=xi(c,l),b={x:v.x,y:v.y,width:d||0,height:h||0},m=Em(s,b),g=typeof d>"u"||typeof h>"u"||d===null||h===null,y=i&&m>0,S=(d||0)*(h||0);(g||y||m>=S||c.dragging)&&u.push(c)}),u},dx=(e,t)=>{const n=e.map(r=>r.id);return t.filter(r=>n.includes(r.source)||n.includes(r.target))},hx=(e,t,n,r,o,i=.1)=>{const a=t/(e.width*(1+i)),l=n/(e.height*(1+i)),s=Math.min(a,l),u=Va(s,r,o),c=e.x+e.width/2,d=e.y+e.height/2,h=t/2-c*u,p=n/2-d*u;return{x:h,y:p,zoom:u}},li=(e,t=0)=>e.transition().duration(t);function J0(e,t,n,r){return(t[n]||[]).reduce((o,i)=>{var a,l;return`${e.id}-${i.id}-${n}`!==r&&o.push({id:i.id||null,type:n,nodeId:e.id,x:(((a=e.positionAbsolute)==null?void 0:a.x)??0)+i.x+i.width/2,y:(((l=e.positionAbsolute)==null?void 0:l.y)??0)+i.y+i.height/2}),o},[])}function WN(e,t,n,r,o,i){const{x:a,y:l}=qo(e),u=t.elementsFromPoint(a,l).find(w=>w.classList.contains("react-flow__handle"));if(u){const w=u.getAttribute("data-nodeid");if(w){const v=Mg(void 0,u),b=u.getAttribute("data-handleid"),m=i({nodeId:w,id:b,type:v});if(m){const g=o.find(y=>y.nodeId===w&&y.type===v&&y.id===b);return{handle:{id:b,type:v,nodeId:w,x:(g==null?void 0:g.x)||n.x,y:(g==null?void 0:g.y)||n.y},validHandleResult:m}}}}let c=[],d=1/0;if(o.forEach(w=>{const v=Math.sqrt((w.x-n.x)**2+(w.y-n.y)**2);if(v<=r){const b=i(w);v<=d&&(vw.isValid),p=c.some(({handle:w})=>w.type==="target");return c.find(({handle:w,validHandleResult:v})=>p?w.type==="target":h?v.isValid:!0)||c[0]}const UN={source:null,target:null,sourceHandle:null,targetHandle:null},mx=()=>({handleDomNode:null,isValid:!1,connection:UN,endHandle:null});function px(e,t,n,r,o,i,a){const l=o==="target",s=a.querySelector(`.react-flow__handle[data-id="${e==null?void 0:e.nodeId}-${e==null?void 0:e.id}-${e==null?void 0:e.type}"]`),u={...mx(),handleDomNode:s};if(s){const c=Mg(void 0,s),d=s.getAttribute("data-nodeid"),h=s.getAttribute("data-handleid"),p=s.classList.contains("connectable"),w=s.classList.contains("connectableend"),v={source:l?d:n,sourceHandle:l?h:r,target:l?n:d,targetHandle:l?r:h};u.connection=v,p&&w&&(t===Pi.Strict?l&&c==="source"||!l&&c==="target":d!==n||h!==r)&&(u.endHandle={nodeId:d,handleId:h,type:c},u.isValid=i(v))}return u}function KN({nodes:e,nodeId:t,handleId:n,handleType:r}){return e.reduce((o,i)=>{if(i[Yt]){const{handleBounds:a}=i[Yt];let l=[],s=[];a&&(l=J0(i,a,"source",`${t}-${n}-${r}`),s=J0(i,a,"target",`${t}-${n}-${r}`)),o.push(...l,...s)}return o},[])}function Mg(e,t){return e||(t!=null&&t.classList.contains("target")?"target":t!=null&&t.classList.contains("source")?"source":null)}function Fd(e){e==null||e.classList.remove("valid","connecting","react-flow__handle-valid","react-flow__handle-connecting")}function GN(e,t){let n=null;return t?n="valid":e&&!t&&(n="invalid"),n}function gx({event:e,handleId:t,nodeId:n,onConnect:r,isTarget:o,getState:i,setState:a,isValidConnection:l,edgeUpdaterType:s,onEdgeUpdateEnd:u}){const c=Jb(e.target),{connectionMode:d,domNode:h,autoPanOnConnect:p,connectionRadius:w,onConnectStart:v,panBy:b,getNodes:m,cancelConnection:g}=i();let y=0,S;const{x:C,y:E}=qo(e),x=c==null?void 0:c.elementFromPoint(C,E),R=Mg(s,x),N=h==null?void 0:h.getBoundingClientRect();if(!N||!R)return;let P,F=qo(e,N),L=!1,A=null,_=!1,z=null;const I=KN({nodes:m(),nodeId:n,handleId:t,handleType:R}),O=()=>{if(!p)return;const[T,k]=Zb(F,N);b({x:T,y:k}),y=requestAnimationFrame(O)};a({connectionPosition:F,connectionStatus:null,connectionNodeId:n,connectionHandleId:t,connectionHandleType:R,connectionStartHandle:{nodeId:n,handleId:t,type:R},connectionEndHandle:null}),v==null||v(e,{nodeId:n,handleId:t,handleType:R});function $(T){const{transform:k}=i();F=qo(T,N);const{handle:D,validHandleResult:B}=WN(T,c,Im(F,k,!1,[1,1]),w,I,V=>px(V,d,n,t,o?"target":"source",l,c));if(S=D,L||(O(),L=!0),z=B.handleDomNode,A=B.connection,_=B.isValid,a({connectionPosition:S&&_?cx({x:S.x,y:S.y},k):F,connectionStatus:GN(!!S,_),connectionEndHandle:B.endHandle}),!S&&!_&&!z)return Fd(P);A.source!==A.target&&z&&(Fd(P),P=z,z.classList.add("connecting","react-flow__handle-connecting"),z.classList.toggle("valid",_),z.classList.toggle("react-flow__handle-valid",_))}function M(T){var k,D;(S||z)&&A&&_&&(r==null||r(A)),(D=(k=i()).onConnectEnd)==null||D.call(k,T),s&&(u==null||u(T)),Fd(P),g(),cancelAnimationFrame(y),L=!1,_=!1,A=null,z=null,c.removeEventListener("mousemove",$),c.removeEventListener("mouseup",M),c.removeEventListener("touchmove",$),c.removeEventListener("touchend",M)}c.addEventListener("mousemove",$),c.addEventListener("mouseup",M),c.addEventListener("touchmove",$),c.addEventListener("touchend",M)}const ey=()=>!0,XN=e=>({connectionStartHandle:e.connectionStartHandle,connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName}),qN=(e,t,n)=>r=>{const{connectionStartHandle:o,connectionEndHandle:i,connectionClickStartHandle:a}=r;return{connecting:(o==null?void 0:o.nodeId)===e&&(o==null?void 0:o.handleId)===t&&(o==null?void 0:o.type)===n||(i==null?void 0:i.nodeId)===e&&(i==null?void 0:i.handleId)===t&&(i==null?void 0:i.type)===n,clickConnecting:(a==null?void 0:a.nodeId)===e&&(a==null?void 0:a.handleId)===t&&(a==null?void 0:a.type)===n}},vx=f.forwardRef(({type:e="source",position:t=Ie.Top,isValidConnection:n,isConnectable:r=!0,isConnectableStart:o=!0,isConnectableEnd:i=!0,id:a,onConnect:l,children:s,className:u,onMouseDown:c,onTouchStart:d,...h},p)=>{var N,P;const w=a||null,v=e==="target",b=Zt(),m=jN(),{connectOnClick:g,noPanClassName:y}=pt(XN,an),{connecting:S,clickConnecting:C}=pt(qN(m,w,e),an);m||(P=(N=b.getState()).onError)==null||P.call(N,"010",ho.error010());const E=F=>{const{defaultEdgeOptions:L,onConnect:A,hasDefaultEdges:_}=b.getState(),z={...L,...F};if(_){const{edges:I,setEdges:O}=b.getState();O(ux(z,I))}A==null||A(z),l==null||l(z)},x=F=>{if(!m)return;const L=rx(F);o&&(L&&F.button===0||!L)&&gx({event:F,handleId:w,nodeId:m,onConnect:E,isTarget:v,getState:b.getState,setState:b.setState,isValidConnection:n||b.getState().isValidConnection||ey}),L?c==null||c(F):d==null||d(F)},R=F=>{const{onClickConnectStart:L,onClickConnectEnd:A,connectionClickStartHandle:_,connectionMode:z,isValidConnection:I}=b.getState();if(!m||!_&&!o)return;if(!_){L==null||L(F,{nodeId:m,handleId:w,handleType:e}),b.setState({connectionClickStartHandle:{nodeId:m,type:e,handleId:w}});return}const O=Jb(F.target),$=n||I||ey,{connection:M,isValid:T}=px({nodeId:m,id:w,type:e},z,_.nodeId,_.handleId||null,_.type,$,O);T&&E(M),A==null||A(F),b.setState({connectionClickStartHandle:null})};return j.createElement("div",{"data-handleid":w,"data-nodeid":m,"data-handlepos":t,"data-id":`${m}-${w}-${e}`,className:dn(["react-flow__handle",`react-flow__handle-${t}`,"nodrag",y,u,{source:!v,target:v,connectable:r,connectablestart:o,connectableend:i,connecting:C,connectionindicator:r&&(o&&!S||i&&S)}]),onMouseDown:x,onTouchStart:x,onClick:g?R:void 0,ref:p,...h},s)});vx.displayName="Handle";var Cr=f.memo(vx);const yx=({data:e,isConnectable:t,targetPosition:n=Ie.Top,sourcePosition:r=Ie.Bottom})=>j.createElement(j.Fragment,null,j.createElement(Cr,{type:"target",position:n,isConnectable:t}),e==null?void 0:e.label,j.createElement(Cr,{type:"source",position:r,isConnectable:t}));yx.displayName="DefaultNode";var Om=f.memo(yx);const wx=({data:e,isConnectable:t,sourcePosition:n=Ie.Bottom})=>j.createElement(j.Fragment,null,e==null?void 0:e.label,j.createElement(Cr,{type:"source",position:n,isConnectable:t}));wx.displayName="InputNode";var Sx=f.memo(wx);const bx=({data:e,isConnectable:t,targetPosition:n=Ie.Top})=>j.createElement(j.Fragment,null,j.createElement(Cr,{type:"target",position:n,isConnectable:t}),e==null?void 0:e.label);bx.displayName="OutputNode";var xx=f.memo(bx);const Ng=()=>null;Ng.displayName="GroupNode";const YN=e=>({selectedNodes:e.getNodes().filter(t=>t.selected),selectedEdges:e.edges.filter(t=>t.selected)}),bu=e=>e.id;function QN(e,t){return an(e.selectedNodes.map(bu),t.selectedNodes.map(bu))&&an(e.selectedEdges.map(bu),t.selectedEdges.map(bu))}const Cx=f.memo(({onSelectionChange:e})=>{const t=Zt(),{selectedNodes:n,selectedEdges:r}=pt(YN,QN);return f.useEffect(()=>{const o={nodes:n,edges:r};e==null||e(o),t.getState().onSelectionChange.forEach(i=>i(o))},[n,r,e]),null});Cx.displayName="SelectionListener";const ZN=e=>!!e.onSelectionChange;function JN({onSelectionChange:e}){const t=pt(ZN);return e||t?j.createElement(Cx,{onSelectionChange:e}):null}const eP=e=>({setNodes:e.setNodes,setEdges:e.setEdges,setDefaultNodesAndEdges:e.setDefaultNodesAndEdges,setMinZoom:e.setMinZoom,setMaxZoom:e.setMaxZoom,setTranslateExtent:e.setTranslateExtent,setNodeExtent:e.setNodeExtent,reset:e.reset});function Ui(e,t){f.useEffect(()=>{typeof e<"u"&&t(e)},[e])}function Xe(e,t,n){f.useEffect(()=>{typeof t<"u"&&n({[e]:t})},[t])}const tP=({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,onConnect:o,onConnectStart:i,onConnectEnd:a,onClickConnectStart:l,onClickConnectEnd:s,nodesDraggable:u,nodesConnectable:c,nodesFocusable:d,edgesFocusable:h,edgesUpdatable:p,elevateNodesOnSelect:w,minZoom:v,maxZoom:b,nodeExtent:m,onNodesChange:g,onEdgesChange:y,elementsSelectable:S,connectionMode:C,snapGrid:E,snapToGrid:x,translateExtent:R,connectOnClick:N,defaultEdgeOptions:P,fitView:F,fitViewOptions:L,onNodesDelete:A,onEdgesDelete:_,onNodeDrag:z,onNodeDragStart:I,onNodeDragStop:O,onSelectionDrag:$,onSelectionDragStart:M,onSelectionDragStop:T,noPanClassName:k,nodeOrigin:D,rfId:B,autoPanOnConnect:V,autoPanOnNodeDrag:W,onError:U,connectionRadius:Y,isValidConnection:X,nodeDragThreshold:K})=>{const{setNodes:q,setEdges:te,setDefaultNodesAndEdges:ne,setMinZoom:ee,setMaxZoom:Z,setTranslateExtent:ae,setNodeExtent:pe,reset:de}=pt(eP,an),oe=Zt();return f.useEffect(()=>{const J=r==null?void 0:r.map(re=>({...re,...P}));return ne(n,J),()=>{de()}},[]),Xe("defaultEdgeOptions",P,oe.setState),Xe("connectionMode",C,oe.setState),Xe("onConnect",o,oe.setState),Xe("onConnectStart",i,oe.setState),Xe("onConnectEnd",a,oe.setState),Xe("onClickConnectStart",l,oe.setState),Xe("onClickConnectEnd",s,oe.setState),Xe("nodesDraggable",u,oe.setState),Xe("nodesConnectable",c,oe.setState),Xe("nodesFocusable",d,oe.setState),Xe("edgesFocusable",h,oe.setState),Xe("edgesUpdatable",p,oe.setState),Xe("elementsSelectable",S,oe.setState),Xe("elevateNodesOnSelect",w,oe.setState),Xe("snapToGrid",x,oe.setState),Xe("snapGrid",E,oe.setState),Xe("onNodesChange",g,oe.setState),Xe("onEdgesChange",y,oe.setState),Xe("connectOnClick",N,oe.setState),Xe("fitViewOnInit",F,oe.setState),Xe("fitViewOnInitOptions",L,oe.setState),Xe("onNodesDelete",A,oe.setState),Xe("onEdgesDelete",_,oe.setState),Xe("onNodeDrag",z,oe.setState),Xe("onNodeDragStart",I,oe.setState),Xe("onNodeDragStop",O,oe.setState),Xe("onSelectionDrag",$,oe.setState),Xe("onSelectionDragStart",M,oe.setState),Xe("onSelectionDragStop",T,oe.setState),Xe("noPanClassName",k,oe.setState),Xe("nodeOrigin",D,oe.setState),Xe("rfId",B,oe.setState),Xe("autoPanOnConnect",V,oe.setState),Xe("autoPanOnNodeDrag",W,oe.setState),Xe("onError",U,oe.setState),Xe("connectionRadius",Y,oe.setState),Xe("isValidConnection",X,oe.setState),Xe("nodeDragThreshold",K,oe.setState),Ui(e,q),Ui(t,te),Ui(v,ee),Ui(b,Z),Ui(R,ae),Ui(m,pe),null},ty={display:"none"},nP={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},Ex="react-flow__node-desc",$x="react-flow__edge-desc",rP="react-flow__aria-live",oP=e=>e.ariaLiveMessage;function iP({rfId:e}){const t=pt(oP);return j.createElement("div",{id:`${rP}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:nP},t)}function aP({rfId:e,disableKeyboardA11y:t}){return j.createElement(j.Fragment,null,j.createElement("div",{id:`${Ex}-${e}`,style:ty},"Press enter or space to select a node.",!t&&"You can then use the arrow keys to move the node around."," Press delete to remove it and escape to cancel."," "),j.createElement("div",{id:`${$x}-${e}`,style:ty},"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel."),!t&&j.createElement(iP,{rfId:e}))}var Cs=(e=null,t={actInsideInputWithModifier:!0})=>{const[n,r]=f.useState(!1),o=f.useRef(!1),i=f.useRef(new Set([])),[a,l]=f.useMemo(()=>{if(e!==null){const u=(Array.isArray(e)?e:[e]).filter(d=>typeof d=="string").map(d=>d.split("+")),c=u.reduce((d,h)=>d.concat(...h),[]);return[u,c]}return[[],[]]},[e]);return f.useEffect(()=>{const s=typeof document<"u"?document:null,u=(t==null?void 0:t.target)||s;if(e!==null){const c=p=>{if(o.current=p.ctrlKey||p.metaKey||p.shiftKey,(!o.current||o.current&&!t.actInsideInputWithModifier)&&$m(p))return!1;const v=ry(p.code,l);i.current.add(p[v]),ny(a,i.current,!1)&&(p.preventDefault(),r(!0))},d=p=>{if((!o.current||o.current&&!t.actInsideInputWithModifier)&&$m(p))return!1;const v=ry(p.code,l);ny(a,i.current,!0)?(r(!1),i.current.clear()):i.current.delete(p[v]),p.key==="Meta"&&i.current.clear(),o.current=!1},h=()=>{i.current.clear(),r(!1)};return u==null||u.addEventListener("keydown",c),u==null||u.addEventListener("keyup",d),window.addEventListener("blur",h),()=>{u==null||u.removeEventListener("keydown",c),u==null||u.removeEventListener("keyup",d),window.removeEventListener("blur",h)}}},[e,r]),n};function ny(e,t,n){return e.filter(r=>n||r.length===t.size).some(r=>r.every(o=>t.has(o)))}function ry(e,t){return t.includes(e)?"code":"key"}function _x(e,t,n,r){var a,l;if(!e.parentNode)return n;const o=t.get(e.parentNode),i=xi(o,r);return _x(o,t,{x:(n.x??0)+i.x,y:(n.y??0)+i.y,z:(((a=o[Yt])==null?void 0:a.z)??0)>(n.z??0)?((l=o[Yt])==null?void 0:l.z)??0:n.z??0},r)}function Rx(e,t,n){e.forEach(r=>{var o;if(r.parentNode&&!e.has(r.parentNode))throw new Error(`Parent node ${r.parentNode} not found`);if(r.parentNode||n!=null&&n[r.id]){const{x:i,y:a,z:l}=_x(r,e,{...r.position,z:((o=r[Yt])==null?void 0:o.z)??0},t);r.positionAbsolute={x:i,y:a},r[Yt].z=l,n!=null&&n[r.id]&&(r[Yt].isParent=!0)}})}function zd(e,t,n,r){const o=new Map,i={},a=r?1e3:0;return e.forEach(l=>{var d;const s=(ir(l.zIndex)?l.zIndex:0)+(l.selected?a:0),u=t.get(l.id),c={width:u==null?void 0:u.width,height:u==null?void 0:u.height,...l,positionAbsolute:{x:l.position.x,y:l.position.y}};l.parentNode&&(c.parentNode=l.parentNode,i[l.parentNode]=!0),Object.defineProperty(c,Yt,{enumerable:!1,value:{handleBounds:(d=u==null?void 0:u[Yt])==null?void 0:d.handleBounds,z:s}}),o.set(l.id,c)}),Rx(o,n,i),o}function Ix(e,t={}){const{getNodes:n,width:r,height:o,minZoom:i,maxZoom:a,d3Zoom:l,d3Selection:s,fitViewOnInitDone:u,fitViewOnInit:c,nodeOrigin:d}=e(),h=t.initial&&!u&&c;if(l&&s&&(h||!t.initial)){const w=n().filter(b=>{var g;const m=t.includeHiddenNodes?b.width&&b.height:!b.hidden;return(g=t.nodes)!=null&&g.length?m&&t.nodes.some(y=>y.id===b.id):m}),v=w.every(b=>b.width&&b.height);if(w.length>0&&v){const b=$f(w,d),{x:m,y:g,zoom:y}=hx(b,r,o,t.minZoom??i,t.maxZoom??a,t.padding??.1),S=ao.translate(m,g).scale(y);return typeof t.duration=="number"&&t.duration>0?l.transform(li(s,t.duration),S):l.transform(s,S),!0}}return!1}function lP(e,t){return e.forEach(n=>{const r=t.get(n.id);r&&t.set(r.id,{...r,[Yt]:r[Yt],selected:n.selected})}),new Map(t)}function sP(e,t){return t.map(n=>{const r=e.find(o=>o.id===n.id);return r&&(n.selected=r.selected),n})}function xu({changedNodes:e,changedEdges:t,get:n,set:r}){const{nodeInternals:o,edges:i,onNodesChange:a,onEdgesChange:l,hasDefaultNodes:s,hasDefaultEdges:u}=n();e!=null&&e.length&&(s&&r({nodeInternals:lP(e,o)}),a==null||a(e)),t!=null&&t.length&&(u&&r({edges:sP(t,i)}),l==null||l(t))}const Ki=()=>{},uP={zoomIn:Ki,zoomOut:Ki,zoomTo:Ki,getZoom:()=>1,setViewport:Ki,getViewport:()=>({x:0,y:0,zoom:1}),fitView:()=>!1,setCenter:Ki,fitBounds:Ki,project:e=>e,screenToFlowPosition:e=>e,flowToScreenPosition:e=>e,viewportInitialized:!1},cP=e=>({d3Zoom:e.d3Zoom,d3Selection:e.d3Selection}),fP=()=>{const e=Zt(),{d3Zoom:t,d3Selection:n}=pt(cP,an);return f.useMemo(()=>n&&t?{zoomIn:o=>t.scaleBy(li(n,o==null?void 0:o.duration),1.2),zoomOut:o=>t.scaleBy(li(n,o==null?void 0:o.duration),1/1.2),zoomTo:(o,i)=>t.scaleTo(li(n,i==null?void 0:i.duration),o),getZoom:()=>e.getState().transform[2],setViewport:(o,i)=>{const[a,l,s]=e.getState().transform,u=ao.translate(o.x??a,o.y??l).scale(o.zoom??s);t.transform(li(n,i==null?void 0:i.duration),u)},getViewport:()=>{const[o,i,a]=e.getState().transform;return{x:o,y:i,zoom:a}},fitView:o=>Ix(e.getState,o),setCenter:(o,i,a)=>{const{width:l,height:s,maxZoom:u}=e.getState(),c=typeof(a==null?void 0:a.zoom)<"u"?a.zoom:u,d=l/2-o*c,h=s/2-i*c,p=ao.translate(d,h).scale(c);t.transform(li(n,a==null?void 0:a.duration),p)},fitBounds:(o,i)=>{const{width:a,height:l,minZoom:s,maxZoom:u}=e.getState(),{x:c,y:d,zoom:h}=hx(o,a,l,s,u,(i==null?void 0:i.padding)??.1),p=ao.translate(c,d).scale(h);t.transform(li(n,i==null?void 0:i.duration),p)},project:o=>{const{transform:i,snapToGrid:a,snapGrid:l}=e.getState();return console.warn("[DEPRECATED] `project` is deprecated. Instead use `screenToFlowPosition`. There is no need to subtract the react flow bounds anymore! https://reactflow.dev/api-reference/types/react-flow-instance#screen-to-flow-position"),Im(o,i,a,l)},screenToFlowPosition:o=>{const{transform:i,snapToGrid:a,snapGrid:l,domNode:s}=e.getState();if(!s)return o;const{x:u,y:c}=s.getBoundingClientRect(),d={x:o.x-u,y:o.y-c};return Im(d,i,a,l)},flowToScreenPosition:o=>{const{transform:i,domNode:a}=e.getState();if(!a)return o;const{x:l,y:s}=a.getBoundingClientRect(),u=cx(o,i);return{x:u.x+l,y:u.y+s}},viewportInitialized:!0}:uP,[t,n])};function _f(){const e=fP(),t=Zt(),n=f.useCallback(()=>t.getState().getNodes().map(v=>({...v})),[]),r=f.useCallback(v=>t.getState().nodeInternals.get(v),[]),o=f.useCallback(()=>{const{edges:v=[]}=t.getState();return v.map(b=>({...b}))},[]),i=f.useCallback(v=>{const{edges:b=[]}=t.getState();return b.find(m=>m.id===v)},[]),a=f.useCallback(v=>{const{getNodes:b,setNodes:m,hasDefaultNodes:g,onNodesChange:y}=t.getState(),S=b(),C=typeof v=="function"?v(S):v;if(g)m(C);else if(y){const E=C.length===0?S.map(x=>({type:"remove",id:x.id})):C.map(x=>({item:x,type:"reset"}));y(E)}},[]),l=f.useCallback(v=>{const{edges:b=[],setEdges:m,hasDefaultEdges:g,onEdgesChange:y}=t.getState(),S=typeof v=="function"?v(b):v;if(g)m(S);else if(y){const C=S.length===0?b.map(E=>({type:"remove",id:E.id})):S.map(E=>({item:E,type:"reset"}));y(C)}},[]),s=f.useCallback(v=>{const b=Array.isArray(v)?v:[v],{getNodes:m,setNodes:g,hasDefaultNodes:y,onNodesChange:S}=t.getState();if(y){const E=[...m(),...b];g(E)}else if(S){const C=b.map(E=>({item:E,type:"add"}));S(C)}},[]),u=f.useCallback(v=>{const b=Array.isArray(v)?v:[v],{edges:m=[],setEdges:g,hasDefaultEdges:y,onEdgesChange:S}=t.getState();if(y)g([...m,...b]);else if(S){const C=b.map(E=>({item:E,type:"add"}));S(C)}},[]),c=f.useCallback(()=>{const{getNodes:v,edges:b=[],transform:m}=t.getState(),[g,y,S]=m;return{nodes:v().map(C=>({...C})),edges:b.map(C=>({...C})),viewport:{x:g,y,zoom:S}}},[]),d=f.useCallback(({nodes:v,edges:b})=>{const{nodeInternals:m,getNodes:g,edges:y,hasDefaultNodes:S,hasDefaultEdges:C,onNodesDelete:E,onEdgesDelete:x,onNodesChange:R,onEdgesChange:N}=t.getState(),P=(v||[]).map(z=>z.id),F=(b||[]).map(z=>z.id),L=g().reduce((z,I)=>{const O=!P.includes(I.id)&&I.parentNode&&z.find(M=>M.id===I.parentNode);return(typeof I.deletable=="boolean"?I.deletable:!0)&&(P.includes(I.id)||O)&&z.push(I),z},[]),A=y.filter(z=>typeof z.deletable=="boolean"?z.deletable:!0),_=A.filter(z=>F.includes(z.id));if(L||_){const z=dx(L,A),I=[..._,...z],O=I.reduce(($,M)=>($.includes(M.id)||$.push(M.id),$),[]);if((C||S)&&(C&&t.setState({edges:y.filter($=>!O.includes($.id))}),S&&(L.forEach($=>{m.delete($.id)}),t.setState({nodeInternals:new Map(m)}))),O.length>0&&(x==null||x(I),N&&N(O.map($=>({id:$,type:"remove"})))),L.length>0&&(E==null||E(L),R)){const $=L.map(M=>({id:M.id,type:"remove"}));R($)}}},[]),h=f.useCallback(v=>{const b=TN(v),m=b?null:t.getState().nodeInternals.get(v.id);return[b?v:X0(m),m,b]},[]),p=f.useCallback((v,b=!0,m)=>{const[g,y,S]=h(v);return g?(m||t.getState().getNodes()).filter(C=>{if(!S&&(C.id===y.id||!C.positionAbsolute))return!1;const E=X0(C),x=Em(E,g);return b&&x>0||x>=g.width*g.height}):[]},[]),w=f.useCallback((v,b,m=!0)=>{const[g]=h(v);if(!g)return!1;const y=Em(g,b);return m&&y>0||y>=g.width*g.height},[]);return f.useMemo(()=>({...e,getNodes:n,getNode:r,getEdges:o,getEdge:i,setNodes:a,setEdges:l,addNodes:s,addEdges:u,toObject:c,deleteElements:d,getIntersectingNodes:p,isNodeIntersecting:w}),[e,n,r,o,i,a,l,s,u,c,d,p,w])}const dP={actInsideInputWithModifier:!1};var hP=({deleteKeyCode:e,multiSelectionKeyCode:t})=>{const n=Zt(),{deleteElements:r}=_f(),o=Cs(e,dP),i=Cs(t);f.useEffect(()=>{if(o){const{edges:a,getNodes:l}=n.getState(),s=l().filter(c=>c.selected),u=a.filter(c=>c.selected);r({nodes:s,edges:u}),n.setState({nodesSelectionActive:!1})}},[o]),f.useEffect(()=>{n.setState({multiSelectionActive:i})},[i])};function mP(e){const t=Zt();f.useEffect(()=>{let n;const r=()=>{var i,a;if(!e.current)return;const o=Eg(e.current);(o.height===0||o.width===0)&&((a=(i=t.getState()).onError)==null||a.call(i,"004",ho.error004())),t.setState({width:o.width||500,height:o.height||500})};return r(),window.addEventListener("resize",r),e.current&&(n=new ResizeObserver(()=>r()),n.observe(e.current)),()=>{window.removeEventListener("resize",r),n&&e.current&&n.unobserve(e.current)}},[])}const Pg={position:"absolute",width:"100%",height:"100%",top:0,left:0},pP=(e,t)=>e.x!==t.x||e.y!==t.y||e.zoom!==t.k,Cu=e=>({x:e.x,y:e.y,zoom:e.k}),Gi=(e,t)=>e.target.closest(`.${t}`),oy=(e,t)=>t===2&&Array.isArray(e)&&e.includes(2),iy=e=>{const t=e.ctrlKey&&zc()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t},gP=e=>({d3Zoom:e.d3Zoom,d3Selection:e.d3Selection,d3ZoomHandler:e.d3ZoomHandler,userSelectionActive:e.userSelectionActive}),vP=({onMove:e,onMoveStart:t,onMoveEnd:n,onPaneContextMenu:r,zoomOnScroll:o=!0,zoomOnPinch:i=!0,panOnScroll:a=!1,panOnScrollSpeed:l=.5,panOnScrollMode:s=pi.Free,zoomOnDoubleClick:u=!0,elementsSelectable:c,panOnDrag:d=!0,defaultViewport:h,translateExtent:p,minZoom:w,maxZoom:v,zoomActivationKeyCode:b,preventScrolling:m=!0,children:g,noWheelClassName:y,noPanClassName:S})=>{const C=f.useRef(),E=Zt(),x=f.useRef(!1),R=f.useRef(!1),N=f.useRef(null),P=f.useRef({x:0,y:0,zoom:0}),{d3Zoom:F,d3Selection:L,d3ZoomHandler:A,userSelectionActive:_}=pt(gP,an),z=Cs(b),I=f.useRef(0),O=f.useRef(!1),$=f.useRef();return mP(N),f.useEffect(()=>{if(N.current){const M=N.current.getBoundingClientRect(),T=Yb().scaleExtent([w,v]).translateExtent(p),k=rr(N.current).call(T),D=ao.translate(h.x,h.y).scale(Va(h.zoom,w,v)),B=[[0,0],[M.width,M.height]],V=T.constrain()(D,B,p);T.transform(k,V),T.wheelDelta(iy),E.setState({d3Zoom:T,d3Selection:k,d3ZoomHandler:k.on("wheel.zoom"),transform:[V.x,V.y,V.k],domNode:N.current.closest(".react-flow")})}},[]),f.useEffect(()=>{L&&F&&(a&&!z&&!_?L.on("wheel.zoom",M=>{if(Gi(M,y))return!1;M.preventDefault(),M.stopImmediatePropagation();const T=L.property("__zoom").k||1,k=zc();if(M.ctrlKey&&i&&k){const K=yr(M),q=iy(M),te=T*Math.pow(2,q);F.scaleTo(L,te,K,M);return}const D=M.deltaMode===1?20:1;let B=s===pi.Vertical?0:M.deltaX*D,V=s===pi.Horizontal?0:M.deltaY*D;!k&&M.shiftKey&&s!==pi.Vertical&&(B=M.deltaY*D,V=0),F.translateBy(L,-(B/T)*l,-(V/T)*l,{internal:!0});const W=Cu(L.property("__zoom")),{onViewportChangeStart:U,onViewportChange:Y,onViewportChangeEnd:X}=E.getState();clearTimeout($.current),O.current||(O.current=!0,t==null||t(M,W),U==null||U(W)),O.current&&(e==null||e(M,W),Y==null||Y(W),$.current=setTimeout(()=>{n==null||n(M,W),X==null||X(W),O.current=!1},150))},{passive:!1}):typeof A<"u"&&L.on("wheel.zoom",function(M,T){if(!m||Gi(M,y))return null;M.preventDefault(),A.call(this,M,T)},{passive:!1}))},[_,a,s,L,F,A,z,i,m,y,t,e,n]),f.useEffect(()=>{F&&F.on("start",M=>{var D,B;if(!M.sourceEvent||M.sourceEvent.internal)return null;I.current=(D=M.sourceEvent)==null?void 0:D.button;const{onViewportChangeStart:T}=E.getState(),k=Cu(M.transform);x.current=!0,P.current=k,((B=M.sourceEvent)==null?void 0:B.type)==="mousedown"&&E.setState({paneDragging:!0}),T==null||T(k),t==null||t(M.sourceEvent,k)})},[F,t]),f.useEffect(()=>{F&&(_&&!x.current?F.on("zoom",null):_||F.on("zoom",M=>{var k;const{onViewportChange:T}=E.getState();if(E.setState({transform:[M.transform.x,M.transform.y,M.transform.k]}),R.current=!!(r&&oy(d,I.current??0)),(e||T)&&!((k=M.sourceEvent)!=null&&k.internal)){const D=Cu(M.transform);T==null||T(D),e==null||e(M.sourceEvent,D)}}))},[_,F,e,d,r]),f.useEffect(()=>{F&&F.on("end",M=>{if(!M.sourceEvent||M.sourceEvent.internal)return null;const{onViewportChangeEnd:T}=E.getState();if(x.current=!1,E.setState({paneDragging:!1}),r&&oy(d,I.current??0)&&!R.current&&r(M.sourceEvent),R.current=!1,(n||T)&&pP(P.current,M.transform)){const k=Cu(M.transform);P.current=k,clearTimeout(C.current),C.current=setTimeout(()=>{T==null||T(k),n==null||n(M.sourceEvent,k)},a?150:0)}})},[F,a,d,n,r]),f.useEffect(()=>{F&&F.filter(M=>{const T=z||o,k=i&&M.ctrlKey;if((d===!0||Array.isArray(d)&&d.includes(1))&&M.button===1&&M.type==="mousedown"&&(Gi(M,"react-flow__node")||Gi(M,"react-flow__edge")))return!0;if(!d&&!T&&!a&&!u&&!i||_||!u&&M.type==="dblclick"||Gi(M,y)&&M.type==="wheel"||Gi(M,S)&&(M.type!=="wheel"||a&&M.type==="wheel"&&!z)||!i&&M.ctrlKey&&M.type==="wheel"||!T&&!a&&!k&&M.type==="wheel"||!d&&(M.type==="mousedown"||M.type==="touchstart")||Array.isArray(d)&&!d.includes(M.button)&&(M.type==="mousedown"||M.type==="touchstart"))return!1;const D=Array.isArray(d)&&d.includes(M.button)||!M.button||M.button<=1;return(!M.ctrlKey||M.type==="wheel")&&D})},[_,F,o,i,a,u,d,c,z]),j.createElement("div",{className:"react-flow__renderer",ref:N,style:Pg},g)},yP=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function wP(){const{userSelectionActive:e,userSelectionRect:t}=pt(yP,an);return e&&t?j.createElement("div",{className:"react-flow__selection react-flow__container",style:{width:t.width,height:t.height,transform:`translate(${t.x}px, ${t.y}px)`}}):null}function ay(e,t){const n=e.find(r=>r.id===t.parentNode);if(n){const r=t.position.x+t.width-n.width,o=t.position.y+t.height-n.height;if(r>0||o>0||t.position.x<0||t.position.y<0){if(n.style={...n.style},n.style.width=n.style.width??n.width,n.style.height=n.style.height??n.height,r>0&&(n.style.width+=r),o>0&&(n.style.height+=o),t.position.x<0){const i=Math.abs(t.position.x);n.position.x=n.position.x-i,n.style.width+=i,t.position.x=0}if(t.position.y<0){const i=Math.abs(t.position.y);n.position.y=n.position.y-i,n.style.height+=i,t.position.y=0}n.width=n.style.width,n.height=n.style.height}}}function Ox(e,t){if(e.some(r=>r.type==="reset"))return e.filter(r=>r.type==="reset").map(r=>r.item);const n=e.filter(r=>r.type==="add").map(r=>r.item);return t.reduce((r,o)=>{const i=e.filter(l=>l.id===o.id);if(i.length===0)return r.push(o),r;const a={...o};for(const l of i)if(l)switch(l.type){case"select":{a.selected=l.selected;break}case"position":{typeof l.position<"u"&&(a.position=l.position),typeof l.positionAbsolute<"u"&&(a.positionAbsolute=l.positionAbsolute),typeof l.dragging<"u"&&(a.dragging=l.dragging),a.expandParent&&ay(r,a);break}case"dimensions":{typeof l.dimensions<"u"&&(a.width=l.dimensions.width,a.height=l.dimensions.height),typeof l.updateStyle<"u"&&(a.style={...a.style||{},...l.dimensions}),typeof l.resizing=="boolean"&&(a.resizing=l.resizing),a.expandParent&&ay(r,a);break}case"remove":return r}return r.push(a),r},n)}function Mx(e,t){return Ox(e,t)}function SP(e,t){return Ox(e,t)}const Po=(e,t)=>({id:e,type:"select",selected:t});function ya(e,t){return e.reduce((n,r)=>{const o=t.includes(r.id);return!r.selected&&o?(r.selected=!0,n.push(Po(r.id,!0))):r.selected&&!o&&(r.selected=!1,n.push(Po(r.id,!1))),n},[])}const Ld=(e,t)=>n=>{n.target===t.current&&(e==null||e(n))},bP=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,dragging:e.paneDragging}),Nx=f.memo(({isSelecting:e,selectionMode:t=xs.Full,panOnDrag:n,onSelectionStart:r,onSelectionEnd:o,onPaneClick:i,onPaneContextMenu:a,onPaneScroll:l,onPaneMouseEnter:s,onPaneMouseMove:u,onPaneMouseLeave:c,children:d})=>{const h=f.useRef(null),p=Zt(),w=f.useRef(0),v=f.useRef(0),b=f.useRef(),{userSelectionActive:m,elementsSelectable:g,dragging:y}=pt(bP,an),S=()=>{p.setState({userSelectionActive:!1,userSelectionRect:null}),w.current=0,v.current=0},C=A=>{i==null||i(A),p.getState().resetSelectedElements(),p.setState({nodesSelectionActive:!1})},E=A=>{if(Array.isArray(n)&&(n!=null&&n.includes(2))){A.preventDefault();return}a==null||a(A)},x=l?A=>l(A):void 0,R=A=>{const{resetSelectedElements:_,domNode:z}=p.getState();if(b.current=z==null?void 0:z.getBoundingClientRect(),!g||!e||A.button!==0||A.target!==h.current||!b.current)return;const{x:I,y:O}=qo(A,b.current);_(),p.setState({userSelectionRect:{width:0,height:0,startX:I,startY:O,x:I,y:O}}),r==null||r(A)},N=A=>{const{userSelectionRect:_,nodeInternals:z,edges:I,transform:O,onNodesChange:$,onEdgesChange:M,nodeOrigin:T,getNodes:k}=p.getState();if(!e||!b.current||!_)return;p.setState({userSelectionActive:!0,nodesSelectionActive:!1});const D=qo(A,b.current),B=_.startX??0,V=_.startY??0,W={..._,x:D.xq.id),K=Y.map(q=>q.id);if(w.current!==K.length){w.current=K.length;const q=ya(U,K);q.length&&($==null||$(q))}if(v.current!==X.length){v.current=X.length;const q=ya(I,X);q.length&&(M==null||M(q))}p.setState({userSelectionRect:W})},P=A=>{if(A.button!==0)return;const{userSelectionRect:_}=p.getState();!m&&_&&A.target===h.current&&(C==null||C(A)),p.setState({nodesSelectionActive:w.current>0}),S(),o==null||o(A)},F=A=>{m&&(p.setState({nodesSelectionActive:w.current>0}),o==null||o(A)),S()},L=g&&(e||m);return j.createElement("div",{className:dn(["react-flow__pane",{dragging:y,selection:e}]),onClick:L?void 0:Ld(C,h),onContextMenu:Ld(E,h),onWheel:Ld(x,h),onMouseEnter:L?void 0:s,onMouseDown:L?R:void 0,onMouseMove:L?N:u,onMouseUp:L?P:void 0,onMouseLeave:L?F:c,ref:h,style:Pg},d,j.createElement(wP,null))});Nx.displayName="Pane";function Px(e,t){if(!e.parentNode)return!1;const n=t.get(e.parentNode);return n?n.selected?!0:Px(n,t):!1}function ly(e,t,n){let r=e;do{if(r!=null&&r.matches(t))return!0;if(r===n.current)return!1;r=r.parentElement}while(r);return!1}function xP(e,t,n,r){return Array.from(e.values()).filter(o=>(o.selected||o.id===r)&&(!o.parentNode||!Px(o,e))&&(o.draggable||t&&typeof o.draggable>"u")).map(o=>{var i,a;return{id:o.id,position:o.position||{x:0,y:0},positionAbsolute:o.positionAbsolute||{x:0,y:0},distance:{x:n.x-(((i=o.positionAbsolute)==null?void 0:i.x)??0),y:n.y-(((a=o.positionAbsolute)==null?void 0:a.y)??0)},delta:{x:0,y:0},extent:o.extent,parentNode:o.parentNode,width:o.width,height:o.height,expandParent:o.expandParent}})}function CP(e,t){return!t||t==="parent"?t:[t[0],[t[1][0]-(e.width||0),t[1][1]-(e.height||0)]]}function Tx(e,t,n,r,o=[0,0],i){const a=CP(e,e.extent||r);let l=a;if(e.extent==="parent"&&!e.expandParent)if(e.parentNode&&e.width&&e.height){const c=n.get(e.parentNode),{x:d,y:h}=xi(c,o).positionAbsolute;l=c&&ir(d)&&ir(h)&&ir(c.width)&&ir(c.height)?[[d+e.width*o[0],h+e.height*o[1]],[d+c.width-e.width+e.width*o[0],h+c.height-e.height+e.height*o[1]]]:l}else i==null||i("005",ho.error005()),l=a;else if(e.extent&&e.parentNode&&e.extent!=="parent"){const c=n.get(e.parentNode),{x:d,y:h}=xi(c,o).positionAbsolute;l=[[e.extent[0][0]+d,e.extent[0][1]+h],[e.extent[1][0]+d,e.extent[1][1]+h]]}let s={x:0,y:0};if(e.parentNode){const c=n.get(e.parentNode);s=xi(c,o).positionAbsolute}const u=l&&l!=="parent"?$g(t,l):t;return{position:{x:u.x-s.x,y:u.y-s.y},positionAbsolute:u}}function Dd({nodeId:e,dragItems:t,nodeInternals:n}){const r=t.map(o=>({...n.get(o.id),position:o.position,positionAbsolute:o.positionAbsolute}));return[e?r.find(o=>o.id===e):r[0],r]}const sy=(e,t,n,r)=>{const o=t.querySelectorAll(e);if(!o||!o.length)return null;const i=Array.from(o),a=t.getBoundingClientRect(),l={x:a.width*r[0],y:a.height*r[1]};return i.map(s=>{const u=s.getBoundingClientRect();return{id:s.getAttribute("data-handleid"),position:s.getAttribute("data-handlepos"),x:(u.left-a.left-l.x)/n,y:(u.top-a.top-l.y)/n,...Eg(s)}})};function xl(e,t,n){return n===void 0?n:r=>{const o=t().nodeInternals.get(e);o&&n(r,{...o})}}function Mm({id:e,store:t,unselect:n=!1,nodeRef:r}){const{addSelectedNodes:o,unselectNodesAndEdges:i,multiSelectionActive:a,nodeInternals:l,onError:s}=t.getState(),u=l.get(e);if(!u){s==null||s("012",ho.error012(e));return}t.setState({nodesSelectionActive:!1}),u.selected?(n||u.selected&&a)&&(i({nodes:[u],edges:[]}),requestAnimationFrame(()=>{var c;return(c=r==null?void 0:r.current)==null?void 0:c.blur()})):o([e])}function EP(){const e=Zt();return f.useCallback(({sourceEvent:n})=>{const{transform:r,snapGrid:o,snapToGrid:i}=e.getState(),a=n.touches?n.touches[0].clientX:n.clientX,l=n.touches?n.touches[0].clientY:n.clientY,s={x:(a-r[0])/r[2],y:(l-r[1])/r[2]};return{xSnapped:i?o[0]*Math.round(s.x/o[0]):s.x,ySnapped:i?o[1]*Math.round(s.y/o[1]):s.y,...s}},[])}function jd(e){return(t,n,r)=>e==null?void 0:e(t,r)}function Ax({nodeRef:e,disabled:t=!1,noDragClassName:n,handleSelector:r,nodeId:o,isSelectable:i,selectNodesOnDrag:a}){const l=Zt(),[s,u]=f.useState(!1),c=f.useRef([]),d=f.useRef({x:null,y:null}),h=f.useRef(0),p=f.useRef(null),w=f.useRef({x:0,y:0}),v=f.useRef(null),b=f.useRef(!1),m=f.useRef(!1),g=EP();return f.useEffect(()=>{if(e!=null&&e.current){const y=rr(e.current),S=({x,y:R})=>{const{nodeInternals:N,onNodeDrag:P,onSelectionDrag:F,updateNodePositions:L,nodeExtent:A,snapGrid:_,snapToGrid:z,nodeOrigin:I,onError:O}=l.getState();d.current={x,y:R};let $=!1,M={x:0,y:0,x2:0,y2:0};if(c.current.length>1&&A){const k=$f(c.current,I);M=bs(k)}if(c.current=c.current.map(k=>{const D={x:x-k.distance.x,y:R-k.distance.y};z&&(D.x=_[0]*Math.round(D.x/_[0]),D.y=_[1]*Math.round(D.y/_[1]));const B=[[A[0][0],A[0][1]],[A[1][0],A[1][1]]];c.current.length>1&&A&&!k.extent&&(B[0][0]=k.positionAbsolute.x-M.x+A[0][0],B[1][0]=k.positionAbsolute.x+(k.width??0)-M.x2+A[1][0],B[0][1]=k.positionAbsolute.y-M.y+A[0][1],B[1][1]=k.positionAbsolute.y+(k.height??0)-M.y2+A[1][1]);const V=Tx(k,D,N,B,I,O);return $=$||k.position.x!==V.position.x||k.position.y!==V.position.y,k.position=V.position,k.positionAbsolute=V.positionAbsolute,k}),!$)return;L(c.current,!0,!0),u(!0);const T=o?P:jd(F);if(T&&v.current){const[k,D]=Dd({nodeId:o,dragItems:c.current,nodeInternals:N});T(v.current,k,D)}},C=()=>{if(!p.current)return;const[x,R]=Zb(w.current,p.current);if(x!==0||R!==0){const{transform:N,panBy:P}=l.getState();d.current.x=(d.current.x??0)-x/N[2],d.current.y=(d.current.y??0)-R/N[2],P({x,y:R})&&S(d.current)}h.current=requestAnimationFrame(C)},E=x=>{var I;const{nodeInternals:R,multiSelectionActive:N,nodesDraggable:P,unselectNodesAndEdges:F,onNodeDragStart:L,onSelectionDragStart:A}=l.getState();m.current=!0;const _=o?L:jd(A);(!a||!i)&&!N&&o&&((I=R.get(o))!=null&&I.selected||F()),o&&i&&a&&Mm({id:o,store:l,nodeRef:e});const z=g(x);if(d.current=z,c.current=xP(R,P,z,o),_&&c.current){const[O,$]=Dd({nodeId:o,dragItems:c.current,nodeInternals:R});_(x.sourceEvent,O,$)}};if(t)y.on(".drag",null);else{const x=zO().on("start",R=>{const{domNode:N,nodeDragThreshold:P}=l.getState();P===0&&E(R);const F=g(R);d.current=F,p.current=(N==null?void 0:N.getBoundingClientRect())||null,w.current=qo(R.sourceEvent,p.current)}).on("drag",R=>{var L,A;const N=g(R),{autoPanOnNodeDrag:P,nodeDragThreshold:F}=l.getState();if(!b.current&&m.current&&P&&(b.current=!0,C()),!m.current){const _=N.xSnapped-(((L=d==null?void 0:d.current)==null?void 0:L.x)??0),z=N.ySnapped-(((A=d==null?void 0:d.current)==null?void 0:A.y)??0);Math.sqrt(_*_+z*z)>F&&E(R)}(d.current.x!==N.xSnapped||d.current.y!==N.ySnapped)&&c.current&&m.current&&(v.current=R.sourceEvent,w.current=qo(R.sourceEvent,p.current),S(N))}).on("end",R=>{if(m.current&&(u(!1),b.current=!1,m.current=!1,cancelAnimationFrame(h.current),c.current)){const{updateNodePositions:N,nodeInternals:P,onNodeDragStop:F,onSelectionDragStop:L}=l.getState(),A=o?F:jd(L);if(N(c.current,!1,!1),A){const[_,z]=Dd({nodeId:o,dragItems:c.current,nodeInternals:P});A(R.sourceEvent,_,z)}}}).filter(R=>{const N=R.target;return!R.button&&(!n||!ly(N,`.${n}`,e))&&(!r||ly(N,r,e))});return y.call(x),()=>{y.on(".drag",null)}}}},[e,t,n,r,i,l,o,a,g]),s}function kx(){const e=Zt();return f.useCallback(n=>{const{nodeInternals:r,nodeExtent:o,updateNodePositions:i,getNodes:a,snapToGrid:l,snapGrid:s,onError:u,nodesDraggable:c}=e.getState(),d=a().filter(g=>g.selected&&(g.draggable||c&&typeof g.draggable>"u")),h=l?s[0]:5,p=l?s[1]:5,w=n.isShiftPressed?4:1,v=n.x*h*w,b=n.y*p*w,m=d.map(g=>{if(g.positionAbsolute){const y={x:g.positionAbsolute.x+v,y:g.positionAbsolute.y+b};l&&(y.x=s[0]*Math.round(y.x/s[0]),y.y=s[1]*Math.round(y.y/s[1]));const{positionAbsolute:S,position:C}=Tx(g,y,r,o,void 0,u);g.position=C,g.positionAbsolute=S}return g});i(m,!0,!1)},[])}const Ma={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}};var Cl=e=>{const t=({id:n,type:r,data:o,xPos:i,yPos:a,xPosOrigin:l,yPosOrigin:s,selected:u,onClick:c,onMouseEnter:d,onMouseMove:h,onMouseLeave:p,onContextMenu:w,onDoubleClick:v,style:b,className:m,isDraggable:g,isSelectable:y,isConnectable:S,isFocusable:C,selectNodesOnDrag:E,sourcePosition:x,targetPosition:R,hidden:N,resizeObserver:P,dragHandle:F,zIndex:L,isParent:A,noDragClassName:_,noPanClassName:z,initialized:I,disableKeyboardA11y:O,ariaLabel:$,rfId:M})=>{const T=Zt(),k=f.useRef(null),D=f.useRef(x),B=f.useRef(R),V=f.useRef(r),W=y||g||c||d||h||p,U=kx(),Y=xl(n,T.getState,d),X=xl(n,T.getState,h),K=xl(n,T.getState,p),q=xl(n,T.getState,w),te=xl(n,T.getState,v),ne=ae=>{const{nodeDragThreshold:pe}=T.getState();if(y&&(!E||!g||pe>0)&&Mm({id:n,store:T,nodeRef:k}),c){const de=T.getState().nodeInternals.get(n);de&&c(ae,{...de})}},ee=ae=>{if(!$m(ae))if(nx.includes(ae.key)&&y){const pe=ae.key==="Escape";Mm({id:n,store:T,unselect:pe,nodeRef:k})}else!O&&g&&u&&Object.prototype.hasOwnProperty.call(Ma,ae.key)&&(T.setState({ariaLiveMessage:`Moved selected node ${ae.key.replace("Arrow","").toLowerCase()}. New position, x: ${~~i}, y: ${~~a}`}),U({x:Ma[ae.key].x,y:Ma[ae.key].y,isShiftPressed:ae.shiftKey}))};f.useEffect(()=>{if(k.current&&!N){const ae=k.current;return P==null||P.observe(ae),()=>P==null?void 0:P.unobserve(ae)}},[N]),f.useEffect(()=>{const ae=V.current!==r,pe=D.current!==x,de=B.current!==R;k.current&&(ae||pe||de)&&(ae&&(V.current=r),pe&&(D.current=x),de&&(B.current=R),T.getState().updateNodeDimensions([{id:n,nodeElement:k.current,forceUpdate:!0}]))},[n,r,x,R]);const Z=Ax({nodeRef:k,disabled:N||!g,noDragClassName:_,handleSelector:F,nodeId:n,isSelectable:y,selectNodesOnDrag:E});return N?null:j.createElement("div",{className:dn(["react-flow__node",`react-flow__node-${r}`,{[z]:g},m,{selected:u,selectable:y,parent:A,dragging:Z}]),ref:k,style:{zIndex:L,transform:`translate(${l}px,${s}px)`,pointerEvents:W?"all":"none",visibility:I?"visible":"hidden",...b},"data-id":n,"data-testid":`rf__node-${n}`,onMouseEnter:Y,onMouseMove:X,onMouseLeave:K,onContextMenu:q,onClick:ne,onDoubleClick:te,onKeyDown:C?ee:void 0,tabIndex:C?0:void 0,role:C?"button":void 0,"aria-describedby":O?void 0:`${Ex}-${M}`,"aria-label":$},j.createElement(DN,{value:n},j.createElement(e,{id:n,data:o,type:r,xPos:i,yPos:a,selected:u,isConnectable:S,sourcePosition:x,targetPosition:R,dragging:Z,dragHandle:F,zIndex:L})))};return t.displayName="NodeWrapper",f.memo(t)};const $P=e=>{const t=e.getNodes().filter(n=>n.selected);return{...$f(t,e.nodeOrigin),transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`,userSelectionActive:e.userSelectionActive}};function _P({onSelectionContextMenu:e,noPanClassName:t,disableKeyboardA11y:n}){const r=Zt(),{width:o,height:i,x:a,y:l,transformString:s,userSelectionActive:u}=pt($P,an),c=kx(),d=f.useRef(null);if(f.useEffect(()=>{var w;n||(w=d.current)==null||w.focus({preventScroll:!0})},[n]),Ax({nodeRef:d}),u||!o||!i)return null;const h=e?w=>{const v=r.getState().getNodes().filter(b=>b.selected);e(w,v)}:void 0,p=w=>{Object.prototype.hasOwnProperty.call(Ma,w.key)&&c({x:Ma[w.key].x,y:Ma[w.key].y,isShiftPressed:w.shiftKey})};return j.createElement("div",{className:dn(["react-flow__nodesselection","react-flow__container",t]),style:{transform:s}},j.createElement("div",{ref:d,className:"react-flow__nodesselection-rect",onContextMenu:h,tabIndex:n?void 0:-1,onKeyDown:n?void 0:p,style:{width:o,height:i,top:l,left:a}}))}var RP=f.memo(_P);const IP=e=>e.nodesSelectionActive,Fx=({children:e,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:o,onPaneContextMenu:i,onPaneScroll:a,deleteKeyCode:l,onMove:s,onMoveStart:u,onMoveEnd:c,selectionKeyCode:d,selectionOnDrag:h,selectionMode:p,onSelectionStart:w,onSelectionEnd:v,multiSelectionKeyCode:b,panActivationKeyCode:m,zoomActivationKeyCode:g,elementsSelectable:y,zoomOnScroll:S,zoomOnPinch:C,panOnScroll:E,panOnScrollSpeed:x,panOnScrollMode:R,zoomOnDoubleClick:N,panOnDrag:P,defaultViewport:F,translateExtent:L,minZoom:A,maxZoom:_,preventScrolling:z,onSelectionContextMenu:I,noWheelClassName:O,noPanClassName:$,disableKeyboardA11y:M})=>{const T=pt(IP),k=Cs(d),D=Cs(m),B=D||P,V=D||E,W=k||h&&B!==!0;return hP({deleteKeyCode:l,multiSelectionKeyCode:b}),j.createElement(vP,{onMove:s,onMoveStart:u,onMoveEnd:c,onPaneContextMenu:i,elementsSelectable:y,zoomOnScroll:S,zoomOnPinch:C,panOnScroll:V,panOnScrollSpeed:x,panOnScrollMode:R,zoomOnDoubleClick:N,panOnDrag:!k&&B,defaultViewport:F,translateExtent:L,minZoom:A,maxZoom:_,zoomActivationKeyCode:g,preventScrolling:z,noWheelClassName:O,noPanClassName:$},j.createElement(Nx,{onSelectionStart:w,onSelectionEnd:v,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:o,onPaneContextMenu:i,onPaneScroll:a,panOnDrag:B,isSelecting:!!W,selectionMode:p},e,T&&j.createElement(RP,{onSelectionContextMenu:I,noPanClassName:$,disableKeyboardA11y:M})))};Fx.displayName="FlowRenderer";var OP=f.memo(Fx);function MP(e){return pt(f.useCallback(n=>e?fx(n.nodeInternals,{x:0,y:0,width:n.width,height:n.height},n.transform,!0):n.getNodes(),[e]))}function NP(e){const t={input:Cl(e.input||Sx),default:Cl(e.default||Om),output:Cl(e.output||xx),group:Cl(e.group||Ng)},n={},r=Object.keys(e).filter(o=>!["input","default","output","group"].includes(o)).reduce((o,i)=>(o[i]=Cl(e[i]||Om),o),n);return{...t,...r}}const PP=({x:e,y:t,width:n,height:r,origin:o})=>!n||!r?{x:e,y:t}:o[0]<0||o[1]<0||o[0]>1||o[1]>1?{x:e,y:t}:{x:e-n*o[0],y:t-r*o[1]},TP=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,updateNodeDimensions:e.updateNodeDimensions,onError:e.onError}),zx=e=>{const{nodesDraggable:t,nodesConnectable:n,nodesFocusable:r,elementsSelectable:o,updateNodeDimensions:i,onError:a}=pt(TP,an),l=MP(e.onlyRenderVisibleElements),s=f.useRef(),u=f.useMemo(()=>{if(typeof ResizeObserver>"u")return null;const c=new ResizeObserver(d=>{const h=d.map(p=>({id:p.target.getAttribute("data-id"),nodeElement:p.target,forceUpdate:!0}));i(h)});return s.current=c,c},[]);return f.useEffect(()=>()=>{var c;(c=s==null?void 0:s.current)==null||c.disconnect()},[]),j.createElement("div",{className:"react-flow__nodes",style:Pg},l.map(c=>{var C,E;let d=c.type||"default";e.nodeTypes[d]||(a==null||a("003",ho.error003(d)),d="default");const h=e.nodeTypes[d]||e.nodeTypes.default,p=!!(c.draggable||t&&typeof c.draggable>"u"),w=!!(c.selectable||o&&typeof c.selectable>"u"),v=!!(c.connectable||n&&typeof c.connectable>"u"),b=!!(c.focusable||r&&typeof c.focusable>"u"),m=e.nodeExtent?$g(c.positionAbsolute,e.nodeExtent):c.positionAbsolute,g=(m==null?void 0:m.x)??0,y=(m==null?void 0:m.y)??0,S=PP({x:g,y,width:c.width??0,height:c.height??0,origin:e.nodeOrigin});return j.createElement(h,{key:c.id,id:c.id,className:c.className,style:c.style,type:d,data:c.data,sourcePosition:c.sourcePosition||Ie.Bottom,targetPosition:c.targetPosition||Ie.Top,hidden:c.hidden,xPos:g,yPos:y,xPosOrigin:S.x,yPosOrigin:S.y,selectNodesOnDrag:e.selectNodesOnDrag,onClick:e.onNodeClick,onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e.onNodeContextMenu,onDoubleClick:e.onNodeDoubleClick,selected:!!c.selected,isDraggable:p,isSelectable:w,isConnectable:v,isFocusable:b,resizeObserver:u,dragHandle:c.dragHandle,zIndex:((C=c[Yt])==null?void 0:C.z)??0,isParent:!!((E=c[Yt])!=null&&E.isParent),noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,initialized:!!c.width&&!!c.height,rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,ariaLabel:c.ariaLabel})}))};zx.displayName="NodeRenderer";var AP=f.memo(zx);const kP=(e,t,n)=>n===Ie.Left?e-t:n===Ie.Right?e+t:e,FP=(e,t,n)=>n===Ie.Top?e-t:n===Ie.Bottom?e+t:e,uy="react-flow__edgeupdater",cy=({position:e,centerX:t,centerY:n,radius:r=10,onMouseDown:o,onMouseEnter:i,onMouseOut:a,type:l})=>j.createElement("circle",{onMouseDown:o,onMouseEnter:i,onMouseOut:a,className:dn([uy,`${uy}-${l}`]),cx:kP(t,r,e),cy:FP(n,r,e),r,stroke:"transparent",fill:"transparent"}),zP=()=>!0;var Xi=e=>{const t=({id:n,className:r,type:o,data:i,onClick:a,onEdgeDoubleClick:l,selected:s,animated:u,label:c,labelStyle:d,labelShowBg:h,labelBgStyle:p,labelBgPadding:w,labelBgBorderRadius:v,style:b,source:m,target:g,sourceX:y,sourceY:S,targetX:C,targetY:E,sourcePosition:x,targetPosition:R,elementsSelectable:N,hidden:P,sourceHandleId:F,targetHandleId:L,onContextMenu:A,onMouseEnter:_,onMouseMove:z,onMouseLeave:I,edgeUpdaterRadius:O,onEdgeUpdate:$,onEdgeUpdateStart:M,onEdgeUpdateEnd:T,markerEnd:k,markerStart:D,rfId:B,ariaLabel:V,isFocusable:W,isUpdatable:U,pathOptions:Y,interactionWidth:X})=>{const K=f.useRef(null),[q,te]=f.useState(!1),[ne,ee]=f.useState(!1),Z=Zt(),ae=f.useMemo(()=>`url(#${Rm(D,B)})`,[D,B]),pe=f.useMemo(()=>`url(#${Rm(k,B)})`,[k,B]);if(P)return null;const de=ve=>{var We;const{edges:fe,addSelectedEdges:je,unselectNodesAndEdges:Ze,multiSelectionActive:yt}=Z.getState(),nt=fe.find(rt=>rt.id===n);nt&&(N&&(Z.setState({nodesSelectionActive:!1}),nt.selected&&yt?(Ze({nodes:[],edges:[nt]}),(We=K.current)==null||We.blur()):je([n])),a&&a(ve,nt))},oe=bl(n,Z.getState,l),J=bl(n,Z.getState,A),re=bl(n,Z.getState,_),ue=bl(n,Z.getState,z),ce=bl(n,Z.getState,I),ge=(ve,fe)=>{if(ve.button!==0)return;const{edges:je,isValidConnection:Ze}=Z.getState(),yt=fe?g:m,nt=(fe?L:F)||null,We=fe?"target":"source",rt=Ze||zP,wt=fe,Ge=je.find(Ve=>Ve.id===n);ee(!0),M==null||M(ve,Ge,We);const ot=Ve=>{ee(!1),T==null||T(Ve,Ge,We)};gx({event:ve,handleId:nt,nodeId:yt,onConnect:Ve=>$==null?void 0:$(Ge,Ve),isTarget:wt,getState:Z.getState,setState:Z.setState,isValidConnection:rt,edgeUpdaterType:We,onEdgeUpdateEnd:ot})},Pe=ve=>ge(ve,!0),Oe=ve=>ge(ve,!1),Ce=()=>te(!0),tt=()=>te(!1),Qe=!N&&!a,ze=ve=>{var fe;if(nx.includes(ve.key)&&N){const{unselectNodesAndEdges:je,addSelectedEdges:Ze,edges:yt}=Z.getState();ve.key==="Escape"?((fe=K.current)==null||fe.blur(),je({edges:[yt.find(We=>We.id===n)]})):Ze([n])}};return j.createElement("g",{className:dn(["react-flow__edge",`react-flow__edge-${o}`,r,{selected:s,animated:u,inactive:Qe,updating:q}]),onClick:de,onDoubleClick:oe,onContextMenu:J,onMouseEnter:re,onMouseMove:ue,onMouseLeave:ce,onKeyDown:W?ze:void 0,tabIndex:W?0:void 0,role:W?"button":"img","data-testid":`rf__edge-${n}`,"aria-label":V===null?void 0:V||`Edge from ${m} to ${g}`,"aria-describedby":W?`${$x}-${B}`:void 0,ref:K},!ne&&j.createElement(e,{id:n,source:m,target:g,selected:s,animated:u,label:c,labelStyle:d,labelShowBg:h,labelBgStyle:p,labelBgPadding:w,labelBgBorderRadius:v,data:i,style:b,sourceX:y,sourceY:S,targetX:C,targetY:E,sourcePosition:x,targetPosition:R,sourceHandleId:F,targetHandleId:L,markerStart:ae,markerEnd:pe,pathOptions:Y,interactionWidth:X}),U&&j.createElement(j.Fragment,null,(U==="source"||U===!0)&&j.createElement(cy,{position:x,centerX:y,centerY:S,radius:O,onMouseDown:Pe,onMouseEnter:Ce,onMouseOut:tt,type:"source"}),(U==="target"||U===!0)&&j.createElement(cy,{position:R,centerX:C,centerY:E,radius:O,onMouseDown:Oe,onMouseEnter:Ce,onMouseOut:tt,type:"target"})))};return t.displayName="EdgeWrapper",f.memo(t)};function LP(e){const t={default:Xi(e.default||Dc),straight:Xi(e.bezier||Ig),step:Xi(e.step||Rg),smoothstep:Xi(e.step||Ef),simplebezier:Xi(e.simplebezier||_g)},n={},r=Object.keys(e).filter(o=>!["default","bezier"].includes(o)).reduce((o,i)=>(o[i]=Xi(e[i]||Dc),o),n);return{...t,...r}}function fy(e,t,n=null){const r=((n==null?void 0:n.x)||0)+t.x,o=((n==null?void 0:n.y)||0)+t.y,i=(n==null?void 0:n.width)||t.width,a=(n==null?void 0:n.height)||t.height;switch(e){case Ie.Top:return{x:r+i/2,y:o};case Ie.Right:return{x:r+i,y:o+a/2};case Ie.Bottom:return{x:r+i/2,y:o+a};case Ie.Left:return{x:r,y:o+a/2}}}function dy(e,t){return e?e.length===1||!t?e[0]:t&&e.find(n=>n.id===t)||null:null}const DP=(e,t,n,r,o,i)=>{const a=fy(n,e,t),l=fy(i,r,o);return{sourceX:a.x,sourceY:a.y,targetX:l.x,targetY:l.y}};function jP({sourcePos:e,targetPos:t,sourceWidth:n,sourceHeight:r,targetWidth:o,targetHeight:i,width:a,height:l,transform:s}){const u={x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x+n,t.x+o),y2:Math.max(e.y+r,t.y+i)};u.x===u.x2&&(u.x2+=1),u.y===u.y2&&(u.y2+=1);const c=bs({x:(0-s[0])/s[2],y:(0-s[1])/s[2],width:a/s[2],height:l/s[2]}),d=Math.max(0,Math.min(c.x2,u.x2)-Math.max(c.x,u.x)),h=Math.max(0,Math.min(c.y2,u.y2)-Math.max(c.y,u.y));return Math.ceil(d*h)>0}function hy(e){var r,o,i,a,l;const t=((r=e==null?void 0:e[Yt])==null?void 0:r.handleBounds)||null,n=t&&(e==null?void 0:e.width)&&(e==null?void 0:e.height)&&typeof((o=e==null?void 0:e.positionAbsolute)==null?void 0:o.x)<"u"&&typeof((i=e==null?void 0:e.positionAbsolute)==null?void 0:i.y)<"u";return[{x:((a=e==null?void 0:e.positionAbsolute)==null?void 0:a.x)||0,y:((l=e==null?void 0:e.positionAbsolute)==null?void 0:l.y)||0,width:(e==null?void 0:e.width)||0,height:(e==null?void 0:e.height)||0},t,!!n]}const HP=[{level:0,isMaxLevel:!0,edges:[]}];function BP(e,t,n=!1){let r=-1;const o=e.reduce((a,l)=>{var c,d;const s=ir(l.zIndex);let u=s?l.zIndex:0;if(n){const h=t.get(l.target),p=t.get(l.source),w=l.selected||(h==null?void 0:h.selected)||(p==null?void 0:p.selected),v=Math.max(((c=p==null?void 0:p[Yt])==null?void 0:c.z)||0,((d=h==null?void 0:h[Yt])==null?void 0:d.z)||0,1e3);u=(s?l.zIndex:0)+(w?v:0)}return a[u]?a[u].push(l):a[u]=[l],r=u>r?u:r,a},{}),i=Object.entries(o).map(([a,l])=>{const s=+a;return{edges:l,level:s,isMaxLevel:s===r}});return i.length===0?HP:i}function VP(e,t,n){const r=pt(f.useCallback(o=>e?o.edges.filter(i=>{const a=t.get(i.source),l=t.get(i.target);return(a==null?void 0:a.width)&&(a==null?void 0:a.height)&&(l==null?void 0:l.width)&&(l==null?void 0:l.height)&&jP({sourcePos:a.positionAbsolute||{x:0,y:0},targetPos:l.positionAbsolute||{x:0,y:0},sourceWidth:a.width,sourceHeight:a.height,targetWidth:l.width,targetHeight:l.height,width:o.width,height:o.height,transform:o.transform})}):o.edges,[e,t]));return BP(r,t,n)}const WP=({color:e="none",strokeWidth:t=1})=>j.createElement("polyline",{style:{stroke:e,strokeWidth:t},strokeLinecap:"round",strokeLinejoin:"round",fill:"none",points:"-5,-4 0,0 -5,4"}),UP=({color:e="none",strokeWidth:t=1})=>j.createElement("polyline",{style:{stroke:e,fill:e,strokeWidth:t},strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"}),my={[Lc.Arrow]:WP,[Lc.ArrowClosed]:UP};function KP(e){const t=Zt();return f.useMemo(()=>{var o,i;return Object.prototype.hasOwnProperty.call(my,e)?my[e]:((i=(o=t.getState()).onError)==null||i.call(o,"009",ho.error009(e)),null)},[e])}const GP=({id:e,type:t,color:n,width:r=12.5,height:o=12.5,markerUnits:i="strokeWidth",strokeWidth:a,orient:l="auto-start-reverse"})=>{const s=KP(t);return s?j.createElement("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${r}`,markerHeight:`${o}`,viewBox:"-10 -10 20 20",markerUnits:i,orient:l,refX:"0",refY:"0"},j.createElement(s,{color:n,strokeWidth:a})):null},XP=({defaultColor:e,rfId:t})=>n=>{const r=[];return n.edges.reduce((o,i)=>([i.markerStart,i.markerEnd].forEach(a=>{if(a&&typeof a=="object"){const l=Rm(a,t);r.includes(l)||(o.push({id:l,color:a.color||e,...a}),r.push(l))}}),o),[]).sort((o,i)=>o.id.localeCompare(i.id))},Lx=({defaultColor:e,rfId:t})=>{const n=pt(f.useCallback(XP({defaultColor:e,rfId:t}),[e,t]),(r,o)=>!(r.length!==o.length||r.some((i,a)=>i.id!==o[a].id)));return j.createElement("defs",null,n.map(r=>j.createElement(GP,{id:r.id,key:r.id,type:r.type,color:r.color,width:r.width,height:r.height,markerUnits:r.markerUnits,strokeWidth:r.strokeWidth,orient:r.orient})))};Lx.displayName="MarkerDefinitions";var qP=f.memo(Lx);const YP=e=>({nodesConnectable:e.nodesConnectable,edgesFocusable:e.edgesFocusable,edgesUpdatable:e.edgesUpdatable,elementsSelectable:e.elementsSelectable,width:e.width,height:e.height,connectionMode:e.connectionMode,nodeInternals:e.nodeInternals,onError:e.onError}),Dx=({defaultMarkerColor:e,onlyRenderVisibleElements:t,elevateEdgesOnSelect:n,rfId:r,edgeTypes:o,noPanClassName:i,onEdgeUpdate:a,onEdgeContextMenu:l,onEdgeMouseEnter:s,onEdgeMouseMove:u,onEdgeMouseLeave:c,onEdgeClick:d,edgeUpdaterRadius:h,onEdgeDoubleClick:p,onEdgeUpdateStart:w,onEdgeUpdateEnd:v,children:b})=>{const{edgesFocusable:m,edgesUpdatable:g,elementsSelectable:y,width:S,height:C,connectionMode:E,nodeInternals:x,onError:R}=pt(YP,an),N=VP(t,x,n);return S?j.createElement(j.Fragment,null,N.map(({level:P,edges:F,isMaxLevel:L})=>j.createElement("svg",{key:P,style:{zIndex:P},width:S,height:C,className:"react-flow__edges react-flow__container"},L&&j.createElement(qP,{defaultColor:e,rfId:r}),j.createElement("g",null,F.map(A=>{const[_,z,I]=hy(x.get(A.source)),[O,$,M]=hy(x.get(A.target));if(!I||!M)return null;let T=A.type||"default";o[T]||(R==null||R("011",ho.error011(T)),T="default");const k=o[T]||o.default,D=E===Pi.Strict?$.target:($.target??[]).concat($.source??[]),B=dy(z.source,A.sourceHandle),V=dy(D,A.targetHandle),W=(B==null?void 0:B.position)||Ie.Bottom,U=(V==null?void 0:V.position)||Ie.Top,Y=!!(A.focusable||m&&typeof A.focusable>"u"),X=typeof a<"u"&&(A.updatable||g&&typeof A.updatable>"u");if(!B||!V)return R==null||R("008",ho.error008(B,A)),null;const{sourceX:K,sourceY:q,targetX:te,targetY:ne}=DP(_,B,W,O,V,U);return j.createElement(k,{key:A.id,id:A.id,className:dn([A.className,i]),type:T,data:A.data,selected:!!A.selected,animated:!!A.animated,hidden:!!A.hidden,label:A.label,labelStyle:A.labelStyle,labelShowBg:A.labelShowBg,labelBgStyle:A.labelBgStyle,labelBgPadding:A.labelBgPadding,labelBgBorderRadius:A.labelBgBorderRadius,style:A.style,source:A.source,target:A.target,sourceHandleId:A.sourceHandle,targetHandleId:A.targetHandle,markerEnd:A.markerEnd,markerStart:A.markerStart,sourceX:K,sourceY:q,targetX:te,targetY:ne,sourcePosition:W,targetPosition:U,elementsSelectable:y,onEdgeUpdate:a,onContextMenu:l,onMouseEnter:s,onMouseMove:u,onMouseLeave:c,onClick:d,edgeUpdaterRadius:h,onEdgeDoubleClick:p,onEdgeUpdateStart:w,onEdgeUpdateEnd:v,rfId:r,ariaLabel:A.ariaLabel,isFocusable:Y,isUpdatable:X,pathOptions:"pathOptions"in A?A.pathOptions:void 0,interactionWidth:A.interactionWidth})})))),b):null};Dx.displayName="EdgeRenderer";var QP=f.memo(Dx);const ZP=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function JP({children:e}){const t=pt(ZP);return j.createElement("div",{className:"react-flow__viewport react-flow__container",style:{transform:t}},e)}function eT(e){const t=_f(),n=f.useRef(!1);f.useEffect(()=>{!n.current&&t.viewportInitialized&&e&&(setTimeout(()=>e(t),1),n.current=!0)},[e,t.viewportInitialized])}const tT={[Ie.Left]:Ie.Right,[Ie.Right]:Ie.Left,[Ie.Top]:Ie.Bottom,[Ie.Bottom]:Ie.Top},jx=({nodeId:e,handleType:t,style:n,type:r=ko.Bezier,CustomComponent:o,connectionStatus:i})=>{var E,x,R;const{fromNode:a,handleId:l,toX:s,toY:u,connectionMode:c}=pt(f.useCallback(N=>({fromNode:N.nodeInternals.get(e),handleId:N.connectionHandleId,toX:(N.connectionPosition.x-N.transform[0])/N.transform[2],toY:(N.connectionPosition.y-N.transform[1])/N.transform[2],connectionMode:N.connectionMode}),[e]),an),d=(E=a==null?void 0:a[Yt])==null?void 0:E.handleBounds;let h=d==null?void 0:d[t];if(c===Pi.Loose&&(h=h||(d==null?void 0:d[t==="source"?"target":"source"])),!a||!h)return null;const p=l?h.find(N=>N.id===l):h[0],w=p?p.x+p.width/2:(a.width??0)/2,v=p?p.y+p.height/2:a.height??0,b=(((x=a.positionAbsolute)==null?void 0:x.x)??0)+w,m=(((R=a.positionAbsolute)==null?void 0:R.y)??0)+v,g=p==null?void 0:p.position,y=g?tT[g]:null;if(!g||!y)return null;if(o)return j.createElement(o,{connectionLineType:r,connectionLineStyle:n,fromNode:a,fromHandle:p,fromX:b,fromY:m,toX:s,toY:u,fromPosition:g,toPosition:y,connectionStatus:i});let S="";const C={sourceX:b,sourceY:m,sourcePosition:g,targetX:s,targetY:u,targetPosition:y};return r===ko.Bezier?[S]=sx(C):r===ko.Step?[S]=_m({...C,borderRadius:0}):r===ko.SmoothStep?[S]=_m(C):r===ko.SimpleBezier?[S]=ax(C):S=`M${b},${m} ${s},${u}`,j.createElement("path",{d:S,fill:"none",className:"react-flow__connection-path",style:n})};jx.displayName="ConnectionLine";const nT=e=>({nodeId:e.connectionNodeId,handleType:e.connectionHandleType,nodesConnectable:e.nodesConnectable,connectionStatus:e.connectionStatus,width:e.width,height:e.height});function rT({containerStyle:e,style:t,type:n,component:r}){const{nodeId:o,handleType:i,nodesConnectable:a,width:l,height:s,connectionStatus:u}=pt(nT,an);return!(o&&i&&l&&a)?null:j.createElement("svg",{style:e,width:l,height:s,className:"react-flow__edges react-flow__connectionline react-flow__container"},j.createElement("g",{className:dn(["react-flow__connection",u])},j.createElement(jx,{nodeId:o,handleType:i,style:t,type:n,CustomComponent:r,connectionStatus:u})))}function py(e,t){return f.useRef(null),Zt(),f.useMemo(()=>t(e),[e])}const Hx=({nodeTypes:e,edgeTypes:t,onMove:n,onMoveStart:r,onMoveEnd:o,onInit:i,onNodeClick:a,onEdgeClick:l,onNodeDoubleClick:s,onEdgeDoubleClick:u,onNodeMouseEnter:c,onNodeMouseMove:d,onNodeMouseLeave:h,onNodeContextMenu:p,onSelectionContextMenu:w,onSelectionStart:v,onSelectionEnd:b,connectionLineType:m,connectionLineStyle:g,connectionLineComponent:y,connectionLineContainerStyle:S,selectionKeyCode:C,selectionOnDrag:E,selectionMode:x,multiSelectionKeyCode:R,panActivationKeyCode:N,zoomActivationKeyCode:P,deleteKeyCode:F,onlyRenderVisibleElements:L,elementsSelectable:A,selectNodesOnDrag:_,defaultViewport:z,translateExtent:I,minZoom:O,maxZoom:$,preventScrolling:M,defaultMarkerColor:T,zoomOnScroll:k,zoomOnPinch:D,panOnScroll:B,panOnScrollSpeed:V,panOnScrollMode:W,zoomOnDoubleClick:U,panOnDrag:Y,onPaneClick:X,onPaneMouseEnter:K,onPaneMouseMove:q,onPaneMouseLeave:te,onPaneScroll:ne,onPaneContextMenu:ee,onEdgeUpdate:Z,onEdgeContextMenu:ae,onEdgeMouseEnter:pe,onEdgeMouseMove:de,onEdgeMouseLeave:oe,edgeUpdaterRadius:J,onEdgeUpdateStart:re,onEdgeUpdateEnd:ue,noDragClassName:ce,noWheelClassName:ge,noPanClassName:Pe,elevateEdgesOnSelect:Oe,disableKeyboardA11y:Ce,nodeOrigin:tt,nodeExtent:Qe,rfId:ze})=>{const ve=py(e,NP),fe=py(t,LP);return eT(i),j.createElement(OP,{onPaneClick:X,onPaneMouseEnter:K,onPaneMouseMove:q,onPaneMouseLeave:te,onPaneContextMenu:ee,onPaneScroll:ne,deleteKeyCode:F,selectionKeyCode:C,selectionOnDrag:E,selectionMode:x,onSelectionStart:v,onSelectionEnd:b,multiSelectionKeyCode:R,panActivationKeyCode:N,zoomActivationKeyCode:P,elementsSelectable:A,onMove:n,onMoveStart:r,onMoveEnd:o,zoomOnScroll:k,zoomOnPinch:D,zoomOnDoubleClick:U,panOnScroll:B,panOnScrollSpeed:V,panOnScrollMode:W,panOnDrag:Y,defaultViewport:z,translateExtent:I,minZoom:O,maxZoom:$,onSelectionContextMenu:w,preventScrolling:M,noDragClassName:ce,noWheelClassName:ge,noPanClassName:Pe,disableKeyboardA11y:Ce},j.createElement(JP,null,j.createElement(QP,{edgeTypes:fe,onEdgeClick:l,onEdgeDoubleClick:u,onEdgeUpdate:Z,onlyRenderVisibleElements:L,onEdgeContextMenu:ae,onEdgeMouseEnter:pe,onEdgeMouseMove:de,onEdgeMouseLeave:oe,onEdgeUpdateStart:re,onEdgeUpdateEnd:ue,edgeUpdaterRadius:J,defaultMarkerColor:T,noPanClassName:Pe,elevateEdgesOnSelect:!!Oe,disableKeyboardA11y:Ce,rfId:ze},j.createElement(rT,{style:g,type:m,component:y,containerStyle:S})),j.createElement("div",{className:"react-flow__edgelabel-renderer"}),j.createElement(AP,{nodeTypes:ve,onNodeClick:a,onNodeDoubleClick:s,onNodeMouseEnter:c,onNodeMouseMove:d,onNodeMouseLeave:h,onNodeContextMenu:p,selectNodesOnDrag:_,onlyRenderVisibleElements:L,noPanClassName:Pe,noDragClassName:ce,disableKeyboardA11y:Ce,nodeOrigin:tt,nodeExtent:Qe,rfId:ze})))};Hx.displayName="GraphView";var oT=f.memo(Hx);const Nm=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],Ro={rfId:"1",width:0,height:0,transform:[0,0,1],nodeInternals:new Map,edges:[],onNodesChange:null,onEdgesChange:null,hasDefaultNodes:!1,hasDefaultEdges:!1,d3Zoom:null,d3Selection:null,d3ZoomHandler:void 0,minZoom:.5,maxZoom:2,translateExtent:Nm,nodeExtent:Nm,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionNodeId:null,connectionHandleId:null,connectionHandleType:"source",connectionPosition:{x:0,y:0},connectionStatus:null,connectionMode:Pi.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:[0,0],nodeDragThreshold:0,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesUpdatable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,fitViewOnInit:!1,fitViewOnInitDone:!1,fitViewOnInitOptions:void 0,onSelectionChange:[],multiSelectionActive:!1,connectionStartHandle:null,connectionEndHandle:null,connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,connectionRadius:20,onError:AN,isValidConnection:void 0},iT=()=>qR((e,t)=>({...Ro,setNodes:n=>{const{nodeInternals:r,nodeOrigin:o,elevateNodesOnSelect:i}=t();e({nodeInternals:zd(n,r,o,i)})},getNodes:()=>Array.from(t().nodeInternals.values()),setEdges:n=>{const{defaultEdgeOptions:r={}}=t();e({edges:n.map(o=>({...r,...o}))})},setDefaultNodesAndEdges:(n,r)=>{const o=typeof n<"u",i=typeof r<"u",a=o?zd(n,new Map,t().nodeOrigin,t().elevateNodesOnSelect):new Map;e({nodeInternals:a,edges:i?r:[],hasDefaultNodes:o,hasDefaultEdges:i})},updateNodeDimensions:n=>{const{onNodesChange:r,nodeInternals:o,fitViewOnInit:i,fitViewOnInitDone:a,fitViewOnInitOptions:l,domNode:s,nodeOrigin:u}=t(),c=s==null?void 0:s.querySelector(".react-flow__viewport");if(!c)return;const d=window.getComputedStyle(c),{m22:h}=new window.DOMMatrixReadOnly(d.transform),p=n.reduce((v,b)=>{const m=o.get(b.id);if(m){const g=Eg(b.nodeElement);!!(g.width&&g.height&&(m.width!==g.width||m.height!==g.height||b.forceUpdate))&&(o.set(m.id,{...m,[Yt]:{...m[Yt],handleBounds:{source:sy(".source",b.nodeElement,h,u),target:sy(".target",b.nodeElement,h,u)}},...g}),v.push({id:m.id,type:"dimensions",dimensions:g}))}return v},[]);Rx(o,u);const w=a||i&&!a&&Ix(t,{initial:!0,...l});e({nodeInternals:new Map(o),fitViewOnInitDone:w}),(p==null?void 0:p.length)>0&&(r==null||r(p))},updateNodePositions:(n,r=!0,o=!1)=>{const{triggerNodeChanges:i}=t(),a=n.map(l=>{const s={id:l.id,type:"position",dragging:o};return r&&(s.positionAbsolute=l.positionAbsolute,s.position=l.position),s});i(a)},triggerNodeChanges:n=>{const{onNodesChange:r,nodeInternals:o,hasDefaultNodes:i,nodeOrigin:a,getNodes:l,elevateNodesOnSelect:s}=t();if(n!=null&&n.length){if(i){const u=Mx(n,l()),c=zd(u,o,a,s);e({nodeInternals:c})}r==null||r(n)}},addSelectedNodes:n=>{const{multiSelectionActive:r,edges:o,getNodes:i}=t();let a,l=null;r?a=n.map(s=>Po(s,!0)):(a=ya(i(),n),l=ya(o,[])),xu({changedNodes:a,changedEdges:l,get:t,set:e})},addSelectedEdges:n=>{const{multiSelectionActive:r,edges:o,getNodes:i}=t();let a,l=null;r?a=n.map(s=>Po(s,!0)):(a=ya(o,n),l=ya(i(),[])),xu({changedNodes:l,changedEdges:a,get:t,set:e})},unselectNodesAndEdges:({nodes:n,edges:r}={})=>{const{edges:o,getNodes:i}=t(),a=n||i(),l=r||o,s=a.map(c=>(c.selected=!1,Po(c.id,!1))),u=l.map(c=>Po(c.id,!1));xu({changedNodes:s,changedEdges:u,get:t,set:e})},setMinZoom:n=>{const{d3Zoom:r,maxZoom:o}=t();r==null||r.scaleExtent([n,o]),e({minZoom:n})},setMaxZoom:n=>{const{d3Zoom:r,minZoom:o}=t();r==null||r.scaleExtent([o,n]),e({maxZoom:n})},setTranslateExtent:n=>{var r;(r=t().d3Zoom)==null||r.translateExtent(n),e({translateExtent:n})},resetSelectedElements:()=>{const{edges:n,getNodes:r}=t(),i=r().filter(l=>l.selected).map(l=>Po(l.id,!1)),a=n.filter(l=>l.selected).map(l=>Po(l.id,!1));xu({changedNodes:i,changedEdges:a,get:t,set:e})},setNodeExtent:n=>{const{nodeInternals:r}=t();r.forEach(o=>{o.positionAbsolute=$g(o.position,n)}),e({nodeExtent:n,nodeInternals:new Map(r)})},panBy:n=>{const{transform:r,width:o,height:i,d3Zoom:a,d3Selection:l,translateExtent:s}=t();if(!a||!l||!n.x&&!n.y)return!1;const u=ao.translate(r[0]+n.x,r[1]+n.y).scale(r[2]),c=[[0,0],[o,i]],d=a==null?void 0:a.constrain()(u,c,s);return a.transform(l,d),r[0]!==d.x||r[1]!==d.y||r[2]!==d.k},cancelConnection:()=>e({connectionNodeId:Ro.connectionNodeId,connectionHandleId:Ro.connectionHandleId,connectionHandleType:Ro.connectionHandleType,connectionStatus:Ro.connectionStatus,connectionStartHandle:Ro.connectionStartHandle,connectionEndHandle:Ro.connectionEndHandle}),reset:()=>e({...Ro})}),Object.is),Bx=({children:e})=>{const t=f.useRef(null);return t.current||(t.current=iT()),j.createElement(RN,{value:t.current},e)};Bx.displayName="ReactFlowProvider";const Vx=({children:e})=>f.useContext(Cf)?j.createElement(j.Fragment,null,e):j.createElement(Bx,null,e);Vx.displayName="ReactFlowWrapper";const aT={input:Sx,default:Om,output:xx,group:Ng},lT={default:Dc,straight:Ig,step:Rg,smoothstep:Ef,simplebezier:_g},sT=[0,0],uT=[15,15],cT={x:0,y:0,zoom:1},fT={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0},Wx=f.forwardRef(({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,className:o,nodeTypes:i=aT,edgeTypes:a=lT,onNodeClick:l,onEdgeClick:s,onInit:u,onMove:c,onMoveStart:d,onMoveEnd:h,onConnect:p,onConnectStart:w,onConnectEnd:v,onClickConnectStart:b,onClickConnectEnd:m,onNodeMouseEnter:g,onNodeMouseMove:y,onNodeMouseLeave:S,onNodeContextMenu:C,onNodeDoubleClick:E,onNodeDragStart:x,onNodeDrag:R,onNodeDragStop:N,onNodesDelete:P,onEdgesDelete:F,onSelectionChange:L,onSelectionDragStart:A,onSelectionDrag:_,onSelectionDragStop:z,onSelectionContextMenu:I,onSelectionStart:O,onSelectionEnd:$,connectionMode:M=Pi.Strict,connectionLineType:T=ko.Bezier,connectionLineStyle:k,connectionLineComponent:D,connectionLineContainerStyle:B,deleteKeyCode:V="Backspace",selectionKeyCode:W="Shift",selectionOnDrag:U=!1,selectionMode:Y=xs.Full,panActivationKeyCode:X="Space",multiSelectionKeyCode:K=zc()?"Meta":"Control",zoomActivationKeyCode:q=zc()?"Meta":"Control",snapToGrid:te=!1,snapGrid:ne=uT,onlyRenderVisibleElements:ee=!1,selectNodesOnDrag:Z=!0,nodesDraggable:ae,nodesConnectable:pe,nodesFocusable:de,nodeOrigin:oe=sT,edgesFocusable:J,edgesUpdatable:re,elementsSelectable:ue,defaultViewport:ce=cT,minZoom:ge=.5,maxZoom:Pe=2,translateExtent:Oe=Nm,preventScrolling:Ce=!0,nodeExtent:tt,defaultMarkerColor:Qe="#b1b1b7",zoomOnScroll:ze=!0,zoomOnPinch:ve=!0,panOnScroll:fe=!1,panOnScrollSpeed:je=.5,panOnScrollMode:Ze=pi.Free,zoomOnDoubleClick:yt=!0,panOnDrag:nt=!0,onPaneClick:We,onPaneMouseEnter:rt,onPaneMouseMove:wt,onPaneMouseLeave:Ge,onPaneScroll:ot,onPaneContextMenu:Mt,children:Ve,onEdgeUpdate:gt,onEdgeContextMenu:qe,onEdgeDoubleClick:$e,onEdgeMouseEnter:Be,onEdgeMouseMove:ye,onEdgeMouseLeave:Me,onEdgeUpdateStart:ie,onEdgeUpdateEnd:xe,edgeUpdaterRadius:Se=10,onNodesChange:we,onEdgesChange:Ue,noDragClassName:Ye="nodrag",noWheelClassName:Nt="nowheel",noPanClassName:_t="nopan",fitView:ht=!1,fitViewOptions:lt,connectOnClick:Dt=!0,attributionPosition:Wt,proOptions:vn,defaultEdgeOptions:Ne,elevateNodesOnSelect:Re=!0,elevateEdgesOnSelect:Te=!1,disableKeyboardA11y:st=!1,autoPanOnConnect:jt=!0,autoPanOnNodeDrag:Pt=!0,connectionRadius:$n=20,isValidConnection:Ur,onError:Tr,style:fr,id:ln,nodeDragThreshold:bo,...xo},Xn)=>{const Ar=ln||"1";return j.createElement("div",{...xo,style:{...fr,...fT},ref:Xn,className:dn(["react-flow",o]),"data-testid":"rf__wrapper",id:ln},j.createElement(Vx,null,j.createElement(oT,{onInit:u,onMove:c,onMoveStart:d,onMoveEnd:h,onNodeClick:l,onEdgeClick:s,onNodeMouseEnter:g,onNodeMouseMove:y,onNodeMouseLeave:S,onNodeContextMenu:C,onNodeDoubleClick:E,nodeTypes:i,edgeTypes:a,connectionLineType:T,connectionLineStyle:k,connectionLineComponent:D,connectionLineContainerStyle:B,selectionKeyCode:W,selectionOnDrag:U,selectionMode:Y,deleteKeyCode:V,multiSelectionKeyCode:K,panActivationKeyCode:X,zoomActivationKeyCode:q,onlyRenderVisibleElements:ee,selectNodesOnDrag:Z,defaultViewport:ce,translateExtent:Oe,minZoom:ge,maxZoom:Pe,preventScrolling:Ce,zoomOnScroll:ze,zoomOnPinch:ve,zoomOnDoubleClick:yt,panOnScroll:fe,panOnScrollSpeed:je,panOnScrollMode:Ze,panOnDrag:nt,onPaneClick:We,onPaneMouseEnter:rt,onPaneMouseMove:wt,onPaneMouseLeave:Ge,onPaneScroll:ot,onPaneContextMenu:Mt,onSelectionContextMenu:I,onSelectionStart:O,onSelectionEnd:$,onEdgeUpdate:gt,onEdgeContextMenu:qe,onEdgeDoubleClick:$e,onEdgeMouseEnter:Be,onEdgeMouseMove:ye,onEdgeMouseLeave:Me,onEdgeUpdateStart:ie,onEdgeUpdateEnd:xe,edgeUpdaterRadius:Se,defaultMarkerColor:Qe,noDragClassName:Ye,noWheelClassName:Nt,noPanClassName:_t,elevateEdgesOnSelect:Te,rfId:Ar,disableKeyboardA11y:st,nodeOrigin:oe,nodeExtent:tt}),j.createElement(tP,{nodes:e,edges:t,defaultNodes:n,defaultEdges:r,onConnect:p,onConnectStart:w,onConnectEnd:v,onClickConnectStart:b,onClickConnectEnd:m,nodesDraggable:ae,nodesConnectable:pe,nodesFocusable:de,edgesFocusable:J,edgesUpdatable:re,elementsSelectable:ue,elevateNodesOnSelect:Re,minZoom:ge,maxZoom:Pe,nodeExtent:tt,onNodesChange:we,onEdgesChange:Ue,snapToGrid:te,snapGrid:ne,connectionMode:M,translateExtent:Oe,connectOnClick:Dt,defaultEdgeOptions:Ne,fitView:ht,fitViewOptions:lt,onNodesDelete:P,onEdgesDelete:F,onNodeDragStart:x,onNodeDrag:R,onNodeDragStop:N,onSelectionDrag:_,onSelectionDragStart:A,onSelectionDragStop:z,noPanClassName:_t,nodeOrigin:oe,rfId:Ar,autoPanOnConnect:jt,autoPanOnNodeDrag:Pt,onError:Tr,connectionRadius:$n,isValidConnection:Ur,nodeDragThreshold:bo}),j.createElement(JN,{onSelectionChange:L}),Ve,j.createElement(ON,{proOptions:vn,position:Wt}),j.createElement(aP,{rfId:Ar,disableKeyboardA11y:st})))});Wx.displayName="ReactFlow";const dT=e=>{var t;return(t=e.domNode)==null?void 0:t.querySelector(".react-flow__edgelabel-renderer")};function hT({children:e}){const t=pt(dT);return t?Zo.createPortal(e,t):null}function Ux(e){return t=>{const[n,r]=f.useState(t),o=f.useCallback(i=>r(a=>e(i,a)),[]);return[n,r,o]}}const mT=Ux(Mx),pT=Ux(SP),Kx=({id:e,x:t,y:n,width:r,height:o,style:i,color:a,strokeColor:l,strokeWidth:s,className:u,borderRadius:c,shapeRendering:d,onClick:h,selected:p})=>{const{background:w,backgroundColor:v}=i||{},b=a||w||v;return j.createElement("rect",{className:dn(["react-flow__minimap-node",{selected:p},u]),x:t,y:n,rx:c,ry:c,width:r,height:o,fill:b,stroke:l,strokeWidth:s,shapeRendering:d,onClick:h?m=>h(m,e):void 0})};Kx.displayName="MiniMapNode";var gT=f.memo(Kx);const vT=e=>e.nodeOrigin,yT=e=>e.getNodes().filter(t=>!t.hidden&&t.width&&t.height),Hd=e=>e instanceof Function?e:()=>e;function wT({nodeStrokeColor:e="transparent",nodeColor:t="#e2e2e2",nodeClassName:n="",nodeBorderRadius:r=5,nodeStrokeWidth:o=2,nodeComponent:i=gT,onClick:a}){const l=pt(yT,an),s=pt(vT),u=Hd(t),c=Hd(e),d=Hd(n),h=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return j.createElement(j.Fragment,null,l.map(p=>{const{x:w,y:v}=xi(p,s).positionAbsolute;return j.createElement(i,{key:p.id,x:w,y:v,width:p.width,height:p.height,style:p.style,selected:p.selected,className:d(p),color:u(p),borderRadius:r,strokeColor:c(p),strokeWidth:o,shapeRendering:h,onClick:a,id:p.id})}))}var ST=f.memo(wT);const bT=200,xT=150,CT=e=>{const t=e.getNodes(),n={x:-e.transform[0]/e.transform[2],y:-e.transform[1]/e.transform[2],width:e.width/e.transform[2],height:e.height/e.transform[2]};return{viewBB:n,boundingRect:t.length>0?PN($f(t,e.nodeOrigin),n):n,rfId:e.rfId}},ET="react-flow__minimap-desc";function Gx({style:e,className:t,nodeStrokeColor:n="transparent",nodeColor:r="#e2e2e2",nodeClassName:o="",nodeBorderRadius:i=5,nodeStrokeWidth:a=2,nodeComponent:l,maskColor:s="rgb(240, 240, 240, 0.6)",maskStrokeColor:u="none",maskStrokeWidth:c=1,position:d="bottom-right",onClick:h,onNodeClick:p,pannable:w=!1,zoomable:v=!1,ariaLabel:b="React Flow mini map",inversePan:m=!1,zoomStep:g=10,offsetScale:y=5}){const S=Zt(),C=f.useRef(null),{boundingRect:E,viewBB:x,rfId:R}=pt(CT,an),N=(e==null?void 0:e.width)??bT,P=(e==null?void 0:e.height)??xT,F=E.width/N,L=E.height/P,A=Math.max(F,L),_=A*N,z=A*P,I=y*A,O=E.x-(_-E.width)/2-I,$=E.y-(z-E.height)/2-I,M=_+I*2,T=z+I*2,k=`${ET}-${R}`,D=f.useRef(0);D.current=A,f.useEffect(()=>{if(C.current){const W=rr(C.current),U=K=>{const{transform:q,d3Selection:te,d3Zoom:ne}=S.getState();if(K.sourceEvent.type!=="wheel"||!te||!ne)return;const ee=-K.sourceEvent.deltaY*(K.sourceEvent.deltaMode===1?.05:K.sourceEvent.deltaMode?1:.002)*g,Z=q[2]*Math.pow(2,ee);ne.scaleTo(te,Z)},Y=K=>{const{transform:q,d3Selection:te,d3Zoom:ne,translateExtent:ee,width:Z,height:ae}=S.getState();if(K.sourceEvent.type!=="mousemove"||!te||!ne)return;const pe=D.current*Math.max(1,q[2])*(m?-1:1),de={x:q[0]-K.sourceEvent.movementX*pe,y:q[1]-K.sourceEvent.movementY*pe},oe=[[0,0],[Z,ae]],J=ao.translate(de.x,de.y).scale(q[2]),re=ne.constrain()(J,oe,ee);ne.transform(te,re)},X=Yb().on("zoom",w?Y:null).on("zoom.wheel",v?U:null);return W.call(X),()=>{W.on("zoom",null)}}},[w,v,m,g]);const B=h?W=>{const U=yr(W);h(W,{x:U[0],y:U[1]})}:void 0,V=p?(W,U)=>{const Y=S.getState().nodeInternals.get(U);p(W,Y)}:void 0;return j.createElement(Cg,{position:d,style:e,className:dn(["react-flow__minimap",t]),"data-testid":"rf__minimap"},j.createElement("svg",{width:N,height:P,viewBox:`${O} ${$} ${M} ${T}`,role:"img","aria-labelledby":k,ref:C,onClick:B},b&&j.createElement("title",{id:k},b),j.createElement(ST,{onClick:V,nodeColor:r,nodeStrokeColor:n,nodeBorderRadius:i,nodeClassName:o,nodeStrokeWidth:a,nodeComponent:l}),j.createElement("path",{className:"react-flow__minimap-mask",d:`M${O-I},${$-I}h${M+I*2}v${T+I*2}h${-M-I*2}z + M${x.x},${x.y}h${x.width}v${x.height}h${-x.width}z`,fill:s,fillRule:"evenodd",stroke:u,strokeWidth:c,pointerEvents:"none"})))}Gx.displayName="MiniMap";var $T=f.memo(Gx);function _T(){return j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},j.createElement("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"}))}function RT(){return j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5"},j.createElement("path",{d:"M0 0h32v4.2H0z"}))}function IT(){return j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30"},j.createElement("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"}))}function OT(){return j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},j.createElement("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"}))}function MT(){return j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},j.createElement("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"}))}const kl=({children:e,className:t,...n})=>j.createElement("button",{type:"button",className:dn(["react-flow__controls-button",t]),...n},e);kl.displayName="ControlButton";const NT=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom}),Xx=({style:e,showZoom:t=!0,showFitView:n=!0,showInteractive:r=!0,fitViewOptions:o,onZoomIn:i,onZoomOut:a,onFitView:l,onInteractiveChange:s,className:u,children:c,position:d="bottom-left"})=>{const h=Zt(),[p,w]=f.useState(!1),{isInteractive:v,minZoomReached:b,maxZoomReached:m}=pt(NT,an),{zoomIn:g,zoomOut:y,fitView:S}=_f();if(f.useEffect(()=>{w(!0)},[]),!p)return null;const C=()=>{g(),i==null||i()},E=()=>{y(),a==null||a()},x=()=>{S(o),l==null||l()},R=()=>{h.setState({nodesDraggable:!v,nodesConnectable:!v,elementsSelectable:!v}),s==null||s(!v)};return j.createElement(Cg,{className:dn(["react-flow__controls",u]),position:d,style:e,"data-testid":"rf__controls"},t&&j.createElement(j.Fragment,null,j.createElement(kl,{onClick:C,className:"react-flow__controls-zoomin",title:"zoom in","aria-label":"zoom in",disabled:m},j.createElement(_T,null)),j.createElement(kl,{onClick:E,className:"react-flow__controls-zoomout",title:"zoom out","aria-label":"zoom out",disabled:b},j.createElement(RT,null))),n&&j.createElement(kl,{className:"react-flow__controls-fitview",onClick:x,title:"fit view","aria-label":"fit view"},j.createElement(IT,null)),r&&j.createElement(kl,{className:"react-flow__controls-interactive",onClick:R,title:"toggle interactivity","aria-label":"toggle interactivity"},v?j.createElement(MT,null):j.createElement(OT,null)),c)};Xx.displayName="Controls";var PT=f.memo(Xx),_r;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(_r||(_r={}));function TT({color:e,dimensions:t,lineWidth:n}){return j.createElement("path",{stroke:e,strokeWidth:n,d:`M${t[0]/2} 0 V${t[1]} M0 ${t[1]/2} H${t[0]}`})}function AT({color:e,radius:t}){return j.createElement("circle",{cx:t,cy:t,r:t,fill:e})}const kT={[_r.Dots]:"#91919a",[_r.Lines]:"#eee",[_r.Cross]:"#e2e2e2"},FT={[_r.Dots]:1,[_r.Lines]:1,[_r.Cross]:6},zT=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function qx({id:e,variant:t=_r.Dots,gap:n=20,size:r,lineWidth:o=1,offset:i=2,color:a,style:l,className:s}){const u=f.useRef(null),{transform:c,patternId:d}=pt(zT,an),h=a||kT[t],p=r||FT[t],w=t===_r.Dots,v=t===_r.Cross,b=Array.isArray(n)?n:[n,n],m=[b[0]*c[2]||1,b[1]*c[2]||1],g=p*c[2],y=v?[g,g]:m,S=w?[g/i,g/i]:[y[0]/i,y[1]/i];return j.createElement("svg",{className:dn(["react-flow__background",s]),style:{...l,position:"absolute",width:"100%",height:"100%",top:0,left:0},ref:u,"data-testid":"rf__background"},j.createElement("pattern",{id:d+e,x:c[0]%m[0],y:c[1]%m[1],width:m[0],height:m[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${S[0]},-${S[1]})`},w?j.createElement(AT,{color:h,radius:g/i}):j.createElement(TT,{dimensions:y,color:h,lineWidth:o})),j.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${d+e})`}))}qx.displayName="Background";var LT=f.memo(qx);const DT="layout_Wr6HbJU3n-",jT="layout-side-menu_YfQi81E0kI",HT="layout-wrapper_bnpOxN59pu",BT="item_m3Wt2Z4DW8",Eu={layout:DT,layoutSideMenu:jT,layoutWrapper:HT,item:BT},VT="custom-node_fnS-IOSBQJ",WT="custom-node-label_hztvK3jLu-",gy={customNode:VT,customNodeLabel:WT},UT={left:10};function KT({data:e,isConnectable:t}){const n=f.useCallback(r=>{console.log(r.target.value)},[]);return me.jsxs("div",{className:gy.customNode,children:[me.jsx(Cr,{type:"target",position:Ie.Top,isConnectable:t}),me.jsxs("div",{children:[me.jsx("label",{className:gy.customNodeLabel,htmlFor:"text",children:"Text:"}),me.jsx("input",{id:"text",name:"text",onChange:n,className:"nodrag"})]}),me.jsx(Cr,{type:"source",position:Ie.Bottom,id:"a",style:UT,isConnectable:t}),me.jsx(Cr,{type:"source",position:Ie.Bottom,id:"b",isConnectable:t})]})}const GT="custom-node_wf308wXFnl",XT="custom-node-wrapper_fwu7aspI3z",qT="custom-node-row_rydSIN72eM",YT="form_RjNil11vT3",QT="form-row_guqy8-dviZ",ZT="form-row-left-wrapper_gf1xFSXqq4",JT="form-row-right-wrapper_-0dDpbua8-",e3="row_iyFgPvRmTj",t3="row-col_mpLswaMbKp",St={customNode:GT,customNodeWrapper:XT,customNodeRow:qT,form:YT,formRow:QT,formRowLeftWrapper:ZT,formRowRightWrapper:JT,row:e3,rowCol:t3};var Yx={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",a=0;a1&&arguments[1]!==void 0?arguments[1]:{},n=[];return j.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Wa(r)):Jx.isFragment(r)&&r.props?n=n.concat(Wa(r.props.children,t)):n.push(r))}),n}var Pm={},i3=function(t){};function a3(e,t){}function l3(e,t){}function s3(){Pm={}}function eC(e,t,n){!t&&!Pm[n]&&(e(!1,n),Pm[n]=!0)}function Pn(e,t){eC(a3,e,t)}function u3(e,t){eC(l3,e,t)}Pn.preMessage=i3;Pn.resetWarned=s3;Pn.noteOnce=u3;function Ke(e){"@babel/helpers - typeof";return Ke=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ke(e)}function c3(e,t){if(Ke(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ke(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tC(e){var t=c3(e,"string");return Ke(t)=="symbol"?t:String(t)}function H(e,t,n){return t=tC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function G(e){for(var t=1;t0},e.prototype.connect_=function(){!Am||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),v3?(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(){!Am||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,o=g3.some(function(i){return!!~r.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),rC=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof Ua(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new _3(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 Ua(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new R3(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),iC=typeof WeakMap<"u"?new WeakMap:new nC,aC=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=y3.getInstance(),r=new I3(t,n,this);iC.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){aC.prototype[e]=function(){var t;return(t=iC.get(this))[e].apply(t,arguments)}});var O3=function(){return typeof Hc.ResizeObserver<"u"?Hc.ResizeObserver:aC}(),Lo=new Map;function M3(e){e.forEach(function(t){var n,r=t.target;(n=Lo.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var lC=new O3(M3);function N3(e,t){Lo.has(e)||(Lo.set(e,new Set),lC.observe(e)),Lo.get(e).add(t)}function P3(e,t){Lo.has(e)&&(Lo.get(e).delete(t),Lo.get(e).size||(lC.unobserve(e),Lo.delete(e)))}function An(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wy(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function it(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A3(e,t){if(t&&(Ke(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return it(e)}function nl(e){var t=T3();return function(){var r=Vc(e),o;if(t){var i=Vc(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return A3(this,o)}}var k3=function(e){tl(n,e);var t=nl(n);function n(){return An(this,n),t.apply(this,arguments)}return kn(n,[{key:"render",value:function(){return this.props.children}}]),n}(f.Component);function F3(e,t){var n=e.children,r=e.disabled,o=f.useRef(null),i=f.useRef(null),a=f.useContext(Tm),l=typeof n=="function",s=l?n(o):n,u=f.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),c=!l&&f.isValidElement(s)&&el(s),d=c?s.ref:null,h=Lf(d,o),p=function(){var m;return Kl(o.current)||(o.current&&Ke(o.current)==="object"?Kl((m=o.current)===null||m===void 0?void 0:m.nativeElement):null)||Kl(i.current)};f.useImperativeHandle(t,function(){return p()});var w=f.useRef(e);w.current=e;var v=f.useCallback(function(b){var m=w.current,g=m.onResize,y=m.data,S=b.getBoundingClientRect(),C=S.width,E=S.height,x=b.offsetWidth,R=b.offsetHeight,N=Math.floor(C),P=Math.floor(E);if(u.current.width!==N||u.current.height!==P||u.current.offsetWidth!==x||u.current.offsetHeight!==R){var F={width:N,height:P,offsetWidth:x,offsetHeight:R};u.current=F;var L=x===Math.round(C)?C:x,A=R===Math.round(E)?E:R,_=G(G({},F),{},{offsetWidth:L,offsetHeight:A});a==null||a(_,b,y),g&&Promise.resolve().then(function(){g(_,b)})}},[]);return f.useEffect(function(){var b=p();return b&&!r&&N3(b,v),function(){return P3(b,v)}},[o.current,r]),f.createElement(k3,{ref:i},c?f.cloneElement(s,{ref:h}):s)}var z3=f.forwardRef(F3),L3="rc-observer-key";function D3(e,t){var n=e.children,r=typeof n=="function"?[n]:Wa(n);return r.map(function(o,i){var a=(o==null?void 0:o.key)||"".concat(L3,"-").concat(i);return f.createElement(z3,De({},e,{key:a,ref:i===0?t:void 0}),o)})}var ri=f.forwardRef(D3);ri.Collection=f3;function Li(e,t){var n=G({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}function Fm(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:1;Sy+=1;var r=Sy;function o(i){if(i===0)fC(r),t();else{var a=uC(function(){o(i-1)});zg.set(r,a)}}return o(n),r};Ot.cancel=function(e){var t=zg.get(e);return fC(e),cC(t)};function dC(e){if(Array.isArray(e))return e}function B3(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,o=c}finally{try{if(!s&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}function hC(){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 Q(e,t){return dC(e)||B3(e,t)||Fg(e,t)||hC()}function Wc(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function bn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function V3(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var by="data-rc-order",xy="data-rc-priority",W3="rc-util-key",zm=new Map;function mC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):W3}function jf(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function U3(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function pC(e){return Array.from((zm.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function gC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!bn())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=U3(r),l=a==="prependQueue",s=document.createElement("style");s.setAttribute(by,a),l&&i&&s.setAttribute(xy,"".concat(i)),n!=null&&n.nonce&&(s.nonce=n==null?void 0:n.nonce),s.innerHTML=e;var u=jf(t),c=u.firstChild;if(r){if(l){var d=pC(u).filter(function(h){if(!["prepend","prependQueue"].includes(h.getAttribute(by)))return!1;var p=Number(h.getAttribute(xy)||0);return i>=p});if(d.length)return u.insertBefore(s,d[d.length-1].nextSibling),s}u.insertBefore(s,c)}else u.appendChild(s);return s}function vC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=jf(t);return pC(n).find(function(r){return r.getAttribute(mC(t))===e})}function Es(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=vC(e,t);if(n){var r=jf(t);r.removeChild(n)}}function K3(e,t){var n=zm.get(e);if(!n||!V3(document,n)){var r=gC("",t),o=r.parentNode;zm.set(e,o),e.removeChild(r)}}function Jo(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=jf(n);K3(r,n);var o=vC(t,n);if(o){var i,a;if((i=n.csp)!==null&&i!==void 0&&i.nonce&&o.nonce!==((a=n.csp)===null||a===void 0?void 0:a.nonce)){var l;o.nonce=(l=n.csp)===null||l===void 0?void 0:l.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var s=gC(e,n);return s.setAttribute(mC(n),t),s}function G3(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function mt(e,t){if(e==null)return{};var n=G3(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yC(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=r.has(i);if(Pn(!s,"Warning: There may be circular references"),s)return!1;if(i===a)return!0;if(n&&l>1)return!1;r.add(i);var u=l+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var c=0;c1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(l){if(!a)a=void 0;else{var s;a=(s=a)===null||s===void 0||(s=s.map)===null||s===void 0?void 0:s.get(l)}}),(r=a)!==null&&r!==void 0&&r.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(u,c){var d=Q(u,2),h=d[1];return o.internalGet(c)[1]0,void 0),Ey+=1}return kn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),Bd=new Lg;function Lm(e){var t=Array.isArray(e)?e:[e];return Bd.has(t)||Bd.set(t,new wC(t)),Bd.get(t)}var Z3=new WeakMap,Vd={};function J3(e,t){for(var n=Z3,r=0;r3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var a=G(G({},o),{},(r={},H(r,Ka,t),H(r,Rr,n),r)),l=Object.keys(a).map(function(s){var u=a[s];return u?"".concat(s,'="').concat(u,'"'):null}).filter(function(s){return s}).join(" ");return"")}var bC=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},n4=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(o){var i=Q(o,2),a=i[0],l=i[1];return"".concat(a,":").concat(l,";")}).join(""),"}"):""},xC=function(t,n,r){var o={},i={};return Object.entries(t).forEach(function(a){var l,s,u=Q(a,2),c=u[0],d=u[1];if(r!=null&&(l=r.preserve)!==null&&l!==void 0&&l[c])i[c]=d;else if((typeof d=="string"||typeof d=="number")&&!(r!=null&&(s=r.ignore)!==null&&s!==void 0&&s[c])){var h,p=bC(c,r==null?void 0:r.prefix);o[p]=typeof d=="number"&&!(r!=null&&(h=r.unitless)!==null&&h!==void 0&&h[c])?"".concat(d,"px"):String(d),i[c]="var(".concat(p,")")}}),[i,n4(o,n,{scope:r==null?void 0:r.scope})]},Ry=bn()?f.useLayoutEffect:f.useEffect,xt=function(t,n){var r=f.useRef(!0);Ry(function(){return t(r.current)},n),Ry(function(){return r.current=!1,function(){r.current=!0}},[])},Iy=function(t,n){xt(function(r){if(!r)return t()},n)},r4=G({},ks),Oy=r4.useInsertionEffect,o4=function(t,n,r){f.useMemo(t,r),xt(function(){return n(!0)},r)},i4=Oy?function(e,t,n){return Oy(function(){return e(),t()},n)}:o4;const a4=i4;var l4=G({},ks),s4=l4.useInsertionEffect,u4=function(t){var n=[],r=!1;function o(i){r||n.push(i)}return f.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(i){return i()})}},t),o},c4=function(){return function(t){t()}},f4=typeof s4<"u"?u4:c4;const d4=f4;function Dg(e,t,n,r,o){var i=f.useContext(Hf),a=i.cache,l=[e].concat(be(t)),s=l.join("_"),u=d4([s]),c=function(w){a.update(l,function(v){var b=v||[void 0,void 0],m=Q(b,2),g=m[0],y=g===void 0?0:g,S=m[1],C=S,E=C||n(),x=[y,E];return w?w(x):x})};f.useMemo(function(){c()},[s]);var d=a.get(l),h=d[1];return a4(function(){o==null||o(h)},function(p){return c(function(w){var v=Q(w,2),b=v[0],m=v[1];return p&&b===0&&(o==null||o(h)),[b+1,m]}),function(){a.update(l,function(w){var v=w||[],b=Q(v,2),m=b[0],g=m===void 0?0:m,y=b[1],S=g-1;return S===0?(u(function(){(p||!a.get(l))&&(r==null||r(y,!1))}),null):[g-1,y]})}},[s]),h}var h4={},m4="css",ci=new Map;function p4(e){ci.set(e,(ci.get(e)||0)+1)}function g4(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Ka,'="').concat(e,'"]'));n.forEach(function(r){if(r[Do]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var v4=0;function y4(e,t){ci.set(e,(ci.get(e)||0)-1);var n=Array.from(ci.keys()),r=n.filter(function(o){var i=ci.get(o)||0;return i<=0});n.length-r.length>v4&&r.forEach(function(o){g4(o,t),ci.delete(o)})}var w4=function(t,n,r,o){var i=r.getDerivativeToken(t),a=G(G({},i),n);return o&&(a=o(a)),a},CC="token";function S4(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=f.useContext(Hf),o=r.cache.instanceId,i=r.container,a=n.salt,l=a===void 0?"":a,s=n.override,u=s===void 0?h4:s,c=n.formatToken,d=n.getComputedToken,h=n.cssVar,p=J3(function(){return Object.assign.apply(Object,[{}].concat(be(t)))},t),w=Gl(p),v=Gl(u),b=h?Gl(h):"",m=Dg(CC,[l,e.id,w,v,b],function(){var g,y=d?d(p,u,e):w4(p,u,e,c),S=G({},y),C="";if(h){var E=xC(y,h.key,{prefix:h.prefix,ignore:h.ignore,unitless:h.unitless,preserve:h.preserve}),x=Q(E,2);y=x[0],C=x[1]}var R=_y(y,l);y._tokenKey=R,S._tokenKey=_y(S,l);var N=(g=h==null?void 0:h.key)!==null&&g!==void 0?g:R;y._themeKey=N,p4(N);var P="".concat(m4,"-").concat(Wc(R));return y._hashId=P,[y,P,S,C,(h==null?void 0:h.key)||""]},function(g){y4(g[0]._themeKey,o)},function(g){var y=Q(g,4),S=y[0],C=y[3];if(h&&C){var E=Jo(C,Wc("css-variables-".concat(S._themeKey)),{mark:Rr,prepend:"queue",attachTo:i,priority:-999});E[Do]=o,E.setAttribute(Ka,S._themeKey)}});return m}var b4=function(t,n,r){var o=Q(t,5),i=o[2],a=o[3],l=o[4],s=r||{},u=s.plain;if(!a)return null;var c=i._tokenKey,d=-999,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},p=Uc(a,l,c,h,u);return[d,c,p]},x4={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},EC="comm",$C="rule",_C="decl",C4="@import",E4="@keyframes",$4="@layer",RC=Math.abs,jg=String.fromCharCode;function IC(e){return e.trim()}function tc(e,t,n){return e.replace(t,n)}function _4(e,t,n){return e.indexOf(t,n)}function $s(e,t){return e.charCodeAt(t)|0}function _s(e,t,n){return e.slice(t,n)}function to(e){return e.length}function R4(e){return e.length}function $u(e,t){return t.push(e),e}var Bf=1,Ga=1,OC=0,ur=0,Ut=0,rl="";function Hg(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Bf,column:Ga,length:a,return:"",siblings:l}}function I4(){return Ut}function O4(){return Ut=ur>0?$s(rl,--ur):0,Ga--,Ut===10&&(Ga=1,Bf--),Ut}function Ir(){return Ut=ur2||jm(Ut)>3?"":" "}function T4(e,t){for(;--t&&Ir()&&!(Ut<48||Ut>102||Ut>57&&Ut<65||Ut>70&&Ut<97););return Vf(e,nc()+(t<6&&Ci()==32&&Ir()==32))}function Hm(e){for(;Ir();)switch(Ut){case e:return ur;case 34:case 39:e!==34&&e!==39&&Hm(Ut);break;case 40:e===41&&Hm(e);break;case 92:Ir();break}return ur}function A4(e,t){for(;Ir()&&e+Ut!==57;)if(e+Ut===84&&Ci()===47)break;return"/*"+Vf(t,ur-1)+"*"+jg(e===47?e:Ir())}function k4(e){for(;!jm(Ci());)Ir();return Vf(e,ur)}function F4(e){return N4(rc("",null,null,null,[""],e=M4(e),0,[0],e))}function rc(e,t,n,r,o,i,a,l,s){for(var u=0,c=0,d=a,h=0,p=0,w=0,v=1,b=1,m=1,g=0,y="",S=o,C=i,E=r,x=y;b;)switch(w=g,g=Ir()){case 40:if(w!=108&&$s(x,d-1)==58){_4(x+=tc(Ud(g),"&","&\f"),"&\f",RC(u?l[u-1]:0))!=-1&&(m=-1);break}case 34:case 39:case 91:x+=Ud(g);break;case 9:case 10:case 13:case 32:x+=P4(w);break;case 92:x+=T4(nc()-1,7);continue;case 47:switch(Ci()){case 42:case 47:$u(z4(A4(Ir(),nc()),t,n,s),s);break;default:x+="/"}break;case 123*v:l[u++]=to(x)*m;case 125*v:case 59:case 0:switch(g){case 0:case 125:b=0;case 59+c:m==-1&&(x=tc(x,/\f/g,"")),p>0&&to(x)-d&&$u(p>32?Ny(x+";",r,n,d-1,s):Ny(tc(x," ","")+";",r,n,d-2,s),s);break;case 59:x+=";";default:if($u(E=My(x,t,n,u,c,o,l,y,S=[],C=[],d,i),i),g===123)if(c===0)rc(x,t,E,E,S,i,d,l,C);else switch(h===99&&$s(x,3)===110?100:h){case 100:case 108:case 109:case 115:rc(e,E,E,r&&$u(My(e,E,E,0,0,o,l,y,o,S=[],d,C),C),o,C,d,l,r?S:C);break;default:rc(x,E,E,E,[""],C,0,l,C)}}u=c=p=0,v=m=1,y=x="",d=a;break;case 58:d=1+to(x),p=w;default:if(v<1){if(g==123)--v;else if(g==125&&v++==0&&O4()==125)continue}switch(x+=jg(g),g*v){case 38:m=c>0?1:(x+="\f",-1);break;case 44:l[u++]=(to(x)-1)*m,m=1;break;case 64:Ci()===45&&(x+=Ud(Ir())),h=Ci(),c=d=to(y=x+=k4(nc())),g++;break;case 45:w===45&&to(x)==2&&(v=0)}}return i}function My(e,t,n,r,o,i,a,l,s,u,c,d){for(var h=o-1,p=o===0?i:[""],w=R4(p),v=0,b=0,m=0;v0?p[g]+" "+y:tc(y,/&\f/g,p[g])))&&(s[m++]=S);return Hg(e,t,n,o===0?$C:l,s,u,c,d)}function z4(e,t,n,r){return Hg(e,t,n,EC,jg(I4()),_s(e,2,-2),0,r)}function Ny(e,t,n,r,o){return Hg(e,t,n,_C,_s(e,0,r),_s(e,r+1,-1),r,o)}function Bm(e,t){for(var n="",r=0;r1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,l=n.hashId,s=n.layer;n.path;var u=n.hashPriority,c=n.transformers,d=c===void 0?[]:c;n.linters;var h="",p={};function w(y){var S=y.getName(l);if(!p[S]){var C=e(y.style,n,{root:!1,parentSelectors:a}),E=Q(C,1),x=E[0];p[S]="@keyframes ".concat(y.getName(l)).concat(x)}}function v(y){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return y.forEach(function(C){Array.isArray(C)?v(C,S):C&&S.push(C)}),S}var b=v(Array.isArray(t)?t:[t]);if(b.forEach(function(y){var S=typeof y=="string"&&!o?{}:y;if(typeof S=="string")h+="".concat(S,` +`);else if(S._keyframe)w(S);else{var C=d.reduce(function(E,x){var R;return(x==null||(R=x.visit)===null||R===void 0?void 0:R.call(x,E))||E},S);Object.keys(C).forEach(function(E){var x=C[E];if(Ke(x)==="object"&&x&&(E!=="animationName"||!x._keyframe)&&!V4(x)){var R=!1,N=E.trim(),P=!1;(o||i)&&l?N.startsWith("@")?R=!0:N=W4(E,l,u):o&&!l&&(N==="&"||N==="")&&(N="",P=!0);var F=e(x,n,{root:P,injectHash:R,parentSelectors:[].concat(be(a),[N])}),L=Q(F,2),A=L[0],_=L[1];p=G(G({},p),_),h+="".concat(N).concat(A)}else{let O=function($,M){var T=$.replace(/[A-Z]/g,function(D){return"-".concat(D.toLowerCase())}),k=M;!x4[$]&&typeof k=="number"&&k!==0&&(k="".concat(k,"px")),$==="animationName"&&M!==null&&M!==void 0&&M._keyframe&&(w(M),k=M.getName(l)),h+="".concat(T,":").concat(k,";")};var z,I=(z=x==null?void 0:x.value)!==null&&z!==void 0?z:x;Ke(x)==="object"&&x!==null&&x!==void 0&&x[PC]&&Array.isArray(I)?I.forEach(function($){O(E,$)}):O(E,I)}})}}),!o)h="{".concat(h,"}");else if(s&&t4()){var m=s.split(","),g=m[m.length-1].trim();h="@layer ".concat(g," {").concat(h,"}"),m.length>1&&(h="@layer ".concat(s,"{%%%:%}").concat(h))}return[h,p]};function TC(e,t){return Wc("".concat(e.join("%")).concat(t))}function K4(){return null}var AC="style";function Wm(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,l=e.clientOnly,s=e.order,u=s===void 0?0:s,c=f.useContext(Hf),d=c.autoClear;c.mock;var h=c.defaultCache,p=c.hashPriority,w=c.container,v=c.ssrInline,b=c.transformers,m=c.linters,g=c.cache,y=n._tokenKey,S=[y].concat(be(r)),C=Dm,E=Dg(AC,S,function(){var F=S.join("|");if(j4(F)){var L=H4(F),A=Q(L,2),_=A[0],z=A[1];if(_)return[_,y,z,{},l,u]}var I=t(),O=U4(I,{hashId:o,hashPriority:p,layer:i,path:r.join("-"),transformers:b,linters:m}),$=Q(O,2),M=$[0],T=$[1],k=Vm(M),D=TC(S,k);return[k,y,D,T,l,u]},function(F,L){var A=Q(F,3),_=A[2];(L||d)&&Dm&&Es(_,{mark:Rr})},function(F){var L=Q(F,4),A=L[0];L[1];var _=L[2],z=L[3];if(C&&A!==MC){var I={mark:Rr,prepend:"queue",attachTo:w,priority:u},O=typeof a=="function"?a():a;O&&(I.csp={nonce:O});var $=Jo(A,_,I);$[Do]=g.instanceId,$.setAttribute(Ka,y),Object.keys(z).forEach(function(M){Jo(Vm(z[M]),"_effect-".concat(M),I)})}}),x=Q(E,3),R=x[0],N=x[1],P=x[2];return function(F){var L;if(!v||C||!h)L=f.createElement(K4,null);else{var A;L=f.createElement("style",De({},(A={},H(A,Ka,N),H(A,Rr,P),A),{dangerouslySetInnerHTML:{__html:R}}))}return f.createElement(f.Fragment,null,L,F)}}var G4=function(t,n,r){var o=Q(t,6),i=o[0],a=o[1],l=o[2],s=o[3],u=o[4],c=o[5],d=r||{},h=d.plain;if(u)return null;var p=i,w={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)};return p=Uc(i,a,l,w,h),s&&Object.keys(s).forEach(function(v){if(!n[v]){n[v]=!0;var b=Vm(s[v]);p+=Uc(b,a,"_effect-".concat(v),w,h)}}),[c,l,p]},kC="cssVar",X4=function(t,n){var r=t.key,o=t.prefix,i=t.unitless,a=t.ignore,l=t.token,s=t.scope,u=s===void 0?"":s,c=f.useContext(Hf),d=c.cache.instanceId,h=c.container,p=l._tokenKey,w=[].concat(be(t.path),[r,u,p]),v=Dg(kC,w,function(){var b=n(),m=xC(b,r,{prefix:o,unitless:i,ignore:a,scope:u}),g=Q(m,2),y=g[0],S=g[1],C=TC(w,S);return[y,S,C,r]},function(b){var m=Q(b,3),g=m[2];Dm&&Es(g,{mark:Rr})},function(b){var m=Q(b,3),g=m[1],y=m[2];if(g){var S=Jo(g,y,{mark:Rr,prepend:"queue",attachTo:h,priority:-999});S[Do]=d,S.setAttribute(Ka,r)}});return v},q4=function(t,n,r){var o=Q(t,4),i=o[1],a=o[2],l=o[3],s=r||{},u=s.plain;if(!i)return null;var c=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)},h=Uc(i,l,a,d,u);return[c,a,h]},El;El={},H(El,AC,G4),H(El,CC,b4),H(El,kC,q4);var dt=function(){function e(t,n){An(this,e),H(this,"name",void 0),H(this,"style",void 0),H(this,"_keyframe",!0),this.name=t,this.style=n}return kn(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function qi(e){return e.notSplit=!0,e}qi(["borderTop","borderBottom"]),qi(["borderTop"]),qi(["borderBottom"]),qi(["borderLeft","borderRight"]),qi(["borderLeft"]),qi(["borderRight"]);var Y4=f.createContext({});const Bg=Y4;function FC(e){return dC(e)||sC(e)||Fg(e)||hC()}function Dr(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Dr(e,t.slice(0,-1))?e:zC(e,t,n,r)}function Q4(e){return Ke(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Ty(e){return Array.isArray(e)?[]:{}}var Z4=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function wa(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=J4,e},LC=f.createContext(void 0);var tA={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"},nA={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"};const rA={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},DC=rA,oA={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"]},nA),timePickerLocale:Object.assign({},DC)},Ay=oA,Fn="${label} is not a valid ${type}",Ti={locale:"en",Pagination:tA,DatePicker:Ay,TimePicker:DC,Calendar:Ay,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},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:Fn,method:Fn,array:Fn,object:Fn,number:Fn,date:Fn,boolean:Fn,integer:Fn,float:Fn,regexp:Fn,email:Fn,url:Fn,hex:Fn},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"},ColorPicker:{presetEmpty:"Empty"}};Object.assign({},Ti.Modal);let oc=[];const ky=()=>oc.reduce((e,t)=>Object.assign(Object.assign({},e),t),Ti.Modal);function iA(e){if(e){const t=Object.assign({},e);return oc.push(t),ky(),()=>{oc=oc.filter(n=>n!==t),ky()}}Object.assign({},Ti.Modal)}const aA=f.createContext(void 0),Wg=aA,jC=(e,t)=>{const n=f.useContext(Wg),r=f.useMemo(()=>{var i;const a=t||Ti[e],l=(i=n==null?void 0:n[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),l||{})},[e,t,n]),o=f.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?Ti.locale:i},[n]);return[r,o]},lA="internalMark",sA=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;f.useEffect(()=>iA(t&&t.Modal),[t]);const o=f.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return f.createElement(Wg.Provider,{value:o},n)},uA=sA;function cn(e,t){cA(e)&&(e="100%");var n=fA(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function _u(e){return Math.min(1,Math.max(0,e))}function cA(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function fA(e){return typeof e=="string"&&e.indexOf("%")!==-1}function HC(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ru(e){return e<=1?"".concat(Number(e)*100,"%"):e}function gi(e){return e.length===1?"0"+e:String(e)}function dA(e,t,n){return{r:cn(e,255)*255,g:cn(t,255)*255,b:cn(n,255)*255}}function Fy(e,t,n){e=cn(e,255),t=cn(t,255),n=cn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,l=(r+o)/2;if(r===o)a=0,i=0;else{var s=r-o;switch(a=l>.5?s/(2-r-o):s/(r+o),r){case e:i=(t-n)/s+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function hA(e,t,n){var r,o,i;if(e=cn(e,360),t=cn(t,100),n=cn(n,100),t===0)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=Kd(l,a,e+1/3),o=Kd(l,a,e),i=Kd(l,a,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function Um(e,t,n){e=cn(e,255),t=cn(t,255),n=cn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,l=r-o,s=r===0?0:l/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/l+(t>16,g:(e&65280)>>8,b:e&255}}var Gm={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function oa(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,l=!1;return typeof e=="string"&&(e=SA(e)),typeof e=="object"&&(Qr(e.r)&&Qr(e.g)&&Qr(e.b)?(t=dA(e.r,e.g,e.b),a=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Qr(e.h)&&Qr(e.s)&&Qr(e.v)?(r=Ru(e.s),o=Ru(e.v),t=mA(e.h,r,o),a=!0,l="hsv"):Qr(e.h)&&Qr(e.s)&&Qr(e.l)&&(r=Ru(e.s),i=Ru(e.l),t=hA(e.h,r,i),a=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=HC(n),{ok:a,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var yA="[-\\+]?\\d+%?",wA="[-\\+]?\\d*\\.\\d+%?",jo="(?:".concat(wA,")|(?:").concat(yA,")"),Gd="[\\s|\\(]+(".concat(jo,")[,|\\s]+(").concat(jo,")[,|\\s]+(").concat(jo,")\\s*\\)?"),Xd="[\\s|\\(]+(".concat(jo,")[,|\\s]+(").concat(jo,")[,|\\s]+(").concat(jo,")[,|\\s]+(").concat(jo,")\\s*\\)?"),pr={CSS_UNIT:new RegExp(jo),rgb:new RegExp("rgb"+Gd),rgba:new RegExp("rgba"+Xd),hsl:new RegExp("hsl"+Gd),hsla:new RegExp("hsla"+Xd),hsv:new RegExp("hsv"+Gd),hsva:new RegExp("hsva"+Xd),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function SA(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Gm[e])e=Gm[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=pr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=pr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=pr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=pr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=pr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=pr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=pr.hex8.exec(e),n?{r:Ln(n[1]),g:Ln(n[2]),b:Ln(n[3]),a:zy(n[4]),format:t?"name":"hex8"}:(n=pr.hex6.exec(e),n?{r:Ln(n[1]),g:Ln(n[2]),b:Ln(n[3]),format:t?"name":"hex"}:(n=pr.hex4.exec(e),n?{r:Ln(n[1]+n[1]),g:Ln(n[2]+n[2]),b:Ln(n[3]+n[3]),a:zy(n[4]+n[4]),format:t?"name":"hex8"}:(n=pr.hex3.exec(e),n?{r:Ln(n[1]+n[1]),g:Ln(n[2]+n[2]),b:Ln(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Qr(e){return!!pr.CSS_UNIT.exec(String(e))}var rn=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=vA(t)),this.originalInput=t;var o=oa(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,i=t.r/255,a=t.g/255,l=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),l<=.03928?o=l/12.92:o=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=HC(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Um(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Um(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Fy(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Fy(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Km(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),pA(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(cn(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(cn(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Km(this.r,this.g,this.b,!1),n=0,r=Object.entries(Gm);n=0,i=!n&&o&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=_u(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=_u(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=_u(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=_u(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],l=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Iu*t:Math.round(e.h)+Iu*t:r=n?Math.round(e.h)+Iu*t:Math.round(e.h)-Iu*t,r<0?r+=360:r>=360&&(r-=360),r}function Hy(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Ly*t:t===VC?r=e.s+Ly:r=e.s+bA*t,r>1&&(r=1),n&&t===BC&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function By(e,t,n){var r;return n?r=e.v+xA*t:r=e.v-CA*t,r>1&&(r=1),Number(r.toFixed(2))}function Ai(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=oa(e),o=BC;o>0;o-=1){var i=Dy(r),a=Ou(oa({h:jy(i,o,!0),s:Hy(i,o,!0),v:By(i,o,!0)}));n.push(a)}n.push(Ou(r));for(var l=1;l<=VC;l+=1){var s=Dy(r),u=Ou(oa({h:jy(s,l),s:Hy(s,l),v:By(s,l)}));n.push(u)}return t.theme==="dark"?EA.map(function(c){var d=c.index,h=c.opacity,p=Ou($A(oa(t.backgroundColor||"#141414"),oa(n[d]),h*100));return p}):n}var qd={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"},ic={},Yd={};Object.keys(qd).forEach(function(e){ic[e]=Ai(qd[e]),ic[e].primary=ic[e][5],Yd[e]=Ai(qd[e],{theme:"dark",backgroundColor:"#141414"}),Yd[e].primary=Yd[e][5]});var _A=ic.blue;const RA=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function IA(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const WC={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"},OA=Object.assign(Object.assign({},WC),{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}),Rs=OA;function MA(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:s,colorBgBase:u,colorTextBase:c}=e,d=n(s),h=n(o),p=n(i),w=n(a),v=n(l),b=r(u,c),m=e.colorLink||e.colorInfo,g=n(m);return Object.assign(Object.assign({},b),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:h[1],colorSuccessBgHover:h[2],colorSuccessBorder:h[3],colorSuccessBorderHover:h[4],colorSuccessHover:h[4],colorSuccess:h[6],colorSuccessActive:h[7],colorSuccessTextHover:h[8],colorSuccessText:h[9],colorSuccessTextActive:h[10],colorErrorBg:w[1],colorErrorBgHover:w[2],colorErrorBorder:w[3],colorErrorBorderHover:w[4],colorErrorHover:w[5],colorError:w[6],colorErrorActive:w[7],colorErrorTextHover:w[8],colorErrorText:w[9],colorErrorTextActive:w[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorLinkHover:g[4],colorLink:g[6],colorLinkActive:g[7],colorBgMask:new rn("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const NA=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};function PA(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},NA(r))}const Zr=(e,t)=>new rn(e).setAlpha(t).toRgbString(),$l=(e,t)=>new rn(e).darken(t).toHexString(),TA=e=>{const t=Ai(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]}},AA=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Zr(r,.88),colorTextSecondary:Zr(r,.65),colorTextTertiary:Zr(r,.45),colorTextQuaternary:Zr(r,.25),colorFill:Zr(r,.15),colorFillSecondary:Zr(r,.06),colorFillTertiary:Zr(r,.04),colorFillQuaternary:Zr(r,.02),colorBgLayout:$l(n,4),colorBgContainer:$l(n,0),colorBgElevated:$l(n,0),colorBgSpotlight:Zr(r,.85),colorBgBlur:"transparent",colorBorder:$l(n,15),colorBorderSecondary:$l(n,6)}};function kA(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,i=e*Math.pow(2.71828,o/5),a=r>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>{const r=n+8;return{size:n,lineHeight:r/n}})}const FA=e=>{const t=kA(e),n=t.map(c=>c.size),r=t.map(c=>c.lineHeight),o=n[1],i=n[0],a=n[2],l=r[1],s=r[0],u=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:u,lineHeightSM:s,fontHeight:Math.round(l*o),fontHeightLG:Math.round(u*a),fontHeightSM:Math.round(s*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function zA(e){const t=Object.keys(WC).map(n=>{const r=Ai(e[n]);return new Array(10).fill(1).reduce((o,i,a)=>(o[`${n}-${a+1}`]=r[a],o[`${n}${a+1}`]=r[a],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),MA(e,{generateColorPalettes:TA,generateNeutralColorPalettes:AA})),FA(e.fontSize)),IA(e)),RA(e)),PA(e))}const UC=Lm(zA),KC={token:Rs,override:{override:Rs},hashed:!0},GC=j.createContext(KC),XC="anticon",LA=(e,t)=>t||(e?`ant-${e}`:"ant"),$t=f.createContext({getPrefixCls:LA,iconPrefixCls:XC}),DA=`-ant-${Date.now()}-${Math.random()}`;function jA(e,t){const n={},r=(a,l)=>{let s=a.clone();return s=(l==null?void 0:l(s))||s,s.toRgbString()},o=(a,l)=>{const s=new rn(a),u=Ai(s.toRgbString());n[`${l}-color`]=r(s),n[`${l}-color-disabled`]=u[1],n[`${l}-color-hover`]=u[4],n[`${l}-color-active`]=u[6],n[`${l}-color-outline`]=s.clone().setAlpha(.2).toRgbString(),n[`${l}-color-deprecated-bg`]=u[0],n[`${l}-color-deprecated-border`]=u[2]};if(t.primaryColor){o(t.primaryColor,"primary");const a=new rn(t.primaryColor),l=Ai(a.toRgbString());l.forEach((u,c)=>{n[`primary-${c+1}`]=u}),n["primary-color-deprecated-l-35"]=r(a,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=r(a,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=r(a,u=>u.setAlpha(u.getAlpha()*.12));const s=new rn(l[0]);n["primary-color-active-deprecated-f-30"]=r(s,u=>u.setAlpha(u.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(s,u=>u.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),` + :root { + ${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(` +`)} + } + `.trim()}function HA(e,t){const n=jA(e,t);bn()&&Jo(n,`${DA}-dynamic-theme`)}const Xm=f.createContext(!1),qC=e=>{let{children:t,disabled:n}=e;const r=f.useContext(Xm);return f.createElement(Xm.Provider,{value:n??r},t)},Di=Xm,qm=f.createContext(void 0),BA=e=>{let{children:t,size:n}=e;const r=f.useContext(qm);return f.createElement(qm.Provider,{value:n||r},t)},Bs=qm;function VA(){const e=f.useContext(Di),t=f.useContext(Bs);return{componentDisabled:e,componentSize:t}}const Kc=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],WA="5.12.8";function Qd(e){return e>=0&&e<=255}function Mu(e,t){const{r:n,g:r,b:o,a:i}=new rn(e).toRgb();if(i<1)return e;const{r:a,g:l,b:s}=new rn(t).toRgb();for(let u=.01;u<=1;u+=.01){const c=Math.round((n-a*(1-u))/u),d=Math.round((r-l*(1-u))/u),h=Math.round((o-s*(1-u))/u);if(Qd(c)&&Qd(d)&&Qd(h))return new rn({r:c,g:d,b:h,a:Math.round(u*100)/100}).toRgbString()}return new rn({r:n,g:r,b:o,a:1}).toRgbString()}var UA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{delete r[h]});const o=Object.assign(Object.assign({},n),r),i=480,a=576,l=768,s=992,u=1200,c=1600;if(o.motion===!1){const h="0s";o.motionDurationFast=h,o.motionDurationMid=h,o.motionDurationSlow=h}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Mu(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:Mu(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Mu(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*4,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Mu(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowSecondary:` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowTertiary:` + 0 1px 2px 0 rgba(0, 0, 0, 0.03), + 0 1px 6px -1px rgba(0, 0, 0, 0.02), + 0 2px 4px 0 rgba(0, 0, 0, 0.02) + `,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:s-1,screenLG:s,screenLGMin:s,screenLGMax:u-1,screenXL:u,screenXLMin:u,screenXLMax:c-1,screenXXL:c,screenXXLMin:c,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` + 0 1px 2px -2px ${new rn("rgba(0, 0, 0, 0.16)").toRgbString()}, + 0 3px 6px 0 ${new rn("rgba(0, 0, 0, 0.12)").toRgbString()}, + 0 5px 12px 4px ${new rn("rgba(0, 0, 0, 0.09)").toRgbString()} + `,boxShadowDrawerRight:` + -6px 0 16px 0 rgba(0, 0, 0, 0.08), + -3px 0 6px -4px rgba(0, 0, 0, 0.12), + -9px 0 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerLeft:` + 6px 0 16px 0 rgba(0, 0, 0, 0.08), + 3px 0 6px -4px rgba(0, 0, 0, 0.12), + 9px 0 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerUp:` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerDown:` + 0 -6px 16px 0 rgba(0, 0, 0, 0.08), + 0 -3px 6px -4px rgba(0, 0, 0, 0.12), + 0 -9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var Vy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const r=n.getDerivativeToken(e),{override:o}=t,i=Vy(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=YC(a),i&&Object.entries(i).forEach(l=>{let[s,u]=l;const{theme:c}=u,d=Vy(u,["theme"]);let h=d;c&&(h=JC(Object.assign(Object.assign({},a),d),{override:d},c)),a[s]=h}),a};function Tn(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=j.useContext(GC),i=`${WA}-${t||""}`,a=n||UC,[l,s,u]=S4(a,[Rs,e],{salt:i,override:r,getComputedToken:JC,formatToken:YC,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:QC,ignore:ZC,preserve:KA}});return[a,u,t?s:"",l,o]}function jn(e){var t=f.useRef();t.current=e;var n=f.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},Ug=()=>({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"}}),GA=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),XA=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),qA=(e,t)=>{const{fontFamily:n,fontSize:r}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return{[o]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},YA=e=>({outline:`${Ae(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),eE=e=>({"&:focus-visible":Object.assign({},YA(e))});let QA=kn(function e(){An(this,e)});const tE=QA;let ZA=function(e){tl(n,e);var t=nl(n);function n(r){var o;return An(this,n),o=t.call(this),o.result=0,r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return kn(n,[{key:"add",value:function(o){return o instanceof n?this.result+=o.result:typeof o=="number"&&(this.result+=o),this}},{key:"sub",value:function(o){return o instanceof n?this.result-=o.result:typeof o=="number"&&(this.result-=o),this}},{key:"mul",value:function(o){return o instanceof n?this.result*=o.result:typeof o=="number"&&(this.result*=o),this}},{key:"div",value:function(o){return o instanceof n?this.result/=o.result:typeof o=="number"&&(this.result/=o),this}},{key:"equal",value:function(){return this.result}}]),n}(tE);const nE="CALC_UNIT";function Jd(e){return typeof e=="number"?`${e}${nE}`:e}let JA=function(e){tl(n,e);var t=nl(n);function n(r){var o;return An(this,n),o=t.call(this),o.result="",r instanceof n?o.result=`(${r.result})`:typeof r=="number"?o.result=Jd(r):typeof r=="string"&&(o.result=r),o}return kn(n,[{key:"add",value:function(o){return o instanceof n?this.result=`${this.result} + ${o.getResult()}`:(typeof o=="number"||typeof o=="string")&&(this.result=`${this.result} + ${Jd(o)}`),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof n?this.result=`${this.result} - ${o.getResult()}`:(typeof o=="number"||typeof o=="string")&&(this.result=`${this.result} - ${Jd(o)}`),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result=`(${this.result})`),o instanceof n?this.result=`${this.result} * ${o.getResult(!0)}`:(typeof o=="number"||typeof o=="string")&&(this.result=`${this.result} * ${o}`),this.lowPriority=!1,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result=`(${this.result})`),o instanceof n?this.result=`${this.result} / ${o.getResult(!0)}`:(typeof o=="number"||typeof o=="string")&&(this.result=`${this.result} / ${o}`),this.lowPriority=!1,this}},{key:"getResult",value:function(o){return this.lowPriority||o?`(${this.result})`:this.result}},{key:"equal",value:function(o){const{unit:i=!0}=o||{},a=new RegExp(`${nE}`,"g");return this.result=this.result.replace(a,i?"px":""),typeof this.lowPriority<"u"?`calc(${this.result})`:this.result}}]),n}(tE);const e5=e=>{const t=e==="css"?JA:ZA;return n=>new t(n)};function t5(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var t=arguments.length,n=new Array(t),r=0;rAe(o)).join(",")})`},min:function(){for(var t=arguments.length,n=new Array(t),r=0;rAe(o)).join(",")})`}}}const rE=typeof CSSINJS_STATISTIC<"u";let Qm=!0;function Et(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(o).forEach(a=>{Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:()=>o[a]})})}),Qm=!0,r}const Wy={};function n5(){}const r5=e=>{let t,n=e,r=n5;return rE&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(o,i){return Qm&&t.add(i),o[i]}}),r=(o,i)=>{var a;Wy[o]={global:Array.from(t),component:Object.assign(Object.assign({},(a=Wy[o])===null||a===void 0?void 0:a.component),i)}}),{token:n,keys:t,flush:r}},oE=(e,t)=>{const[n,r]=Tn();return Wm({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},Ug()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},iE=(e,t,n)=>{var r;return typeof n=="function"?n(Et(t,(r=t[e])!==null&&r!==void 0?r:{})):n??{}},aE=(e,t,n,r)=>{const o=Object.assign({},t[e]);if(r!=null&&r.deprecatedTokens){const{deprecatedTokens:a}=r;a.forEach(l=>{let[s,u]=l;var c;(o!=null&&o[s]||o!=null&&o[u])&&((c=o[u])!==null&&c!==void 0||(o[u]=o==null?void 0:o[s]))})}let i=Object.assign(Object.assign({},n),o);return r!=null&&r.format&&(i=r.format(i)),Object.keys(i).forEach(a=>{i[a]===t[a]&&delete i[a]}),i},o5=(e,t)=>`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function Kg(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=Array.isArray(e)?e:[e,e],[i]=o,a=o.join("-");return l=>{const[s,u,c,d,h]=Tn(),{getPrefixCls:p,iconPrefixCls:w,csp:v}=f.useContext($t),b=p(),m=h?"css":"js",g=e5(m),{max:y,min:S}=t5(m),C={theme:s,token:d,hashId:c,nonce:()=>v==null?void 0:v.nonce,clientOnly:r.clientOnly,order:r.order||-999};return Wm(Object.assign(Object.assign({},C),{clientOnly:!1,path:["Shared",b]}),()=>[{"&":XA(d)}]),oE(w,v),[Wm(Object.assign(Object.assign({},C),{path:[a,l,w]}),()=>{if(r.injectStyle===!1)return[];const{token:x,flush:R}=r5(d),N=iE(i,u,n),P=`.${l}`,F=aE(i,u,N,{deprecatedTokens:r.deprecatedTokens,format:r.format});h&&Object.keys(N).forEach(_=>{N[_]=`var(${bC(_,o5(i,h.prefix))})`});const L=Et(x,{componentCls:P,prefixCls:l,iconCls:`.${w}`,antCls:`.${b}`,calc:g,max:y,min:S},h?N:F),A=t(L,{hashId:c,prefixCls:l,rootPrefixCls:b,iconPrefixCls:w});return R(i,F),[r.resetStyle===!1?null:qA(L,l),A]}),c]}}const lE=(e,t,n,r)=>{const o=Kg(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return a=>{let{prefixCls:l}=a;return o(l),null}},i5=(e,t,n)=>{function r(u){return`${e}${u.slice(0,1).toUpperCase()}${u.slice(1)}`}const{unitless:o={},injectStyle:i=!0}=n??{},a={[r("zIndexPopup")]:!0};Object.keys(o).forEach(u=>{a[r(u)]=o[u]});const l=u=>{let{rootCls:c,cssVar:d}=u;const[,h]=Tn();return X4({path:[e],prefix:d.prefix,key:d==null?void 0:d.key,unitless:Object.assign(Object.assign({},QC),a),ignore:ZC,token:h,scope:c},()=>{const p=iE(e,h,t),w=aE(e,h,p,{format:n==null?void 0:n.format,deprecatedTokens:n==null?void 0:n.deprecatedTokens});return Object.keys(p).forEach(v=>{w[r(v)]=w[v],delete w[v]}),w}),null};return u=>{const[,,,,c]=Tn();return[d=>i&&c?j.createElement(j.Fragment,null,j.createElement(l,{rootCls:u,cssVar:c,component:e}),d):d,c==null?void 0:c.key]}},wo=(e,t,n,r)=>{const o=Kg(e,t,n,r),i=i5(Array.isArray(e)?e[0]:e,n,r);return function(a){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:a;const[,s]=o(a),[u,c]=i(l);return[u,s,c]}};function a5(e,t){return Kc.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))},{})}const l5=Object.assign({},ks),{useId:Uy}=l5,s5=()=>"",u5=typeof Uy>"u"?s5:Uy;function c5(e,t){Vg();const n=e||{},r=n.inherit===!1||!t?KC:t,o=u5();return zf(()=>{var i,a;if(!e)return t;const l=Object.assign({},r.components);Object.keys(e.components||{}).forEach(c=>{l[c]=Object.assign(Object.assign({},l[c]),e.components[c])});const s=`css-var-${o.replace(/:/g,"")}`,u=((i=n.cssVar)!==null&&i!==void 0?i:r.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:"ant"},typeof r.cssVar=="object"?r.cssVar:{}),typeof n.cssVar=="object"?n.cssVar:{}),{key:typeof n.cssVar=="object"&&((a=n.cssVar)===null||a===void 0?void 0:a.key)||s});return Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:l,cssVar:u})},[n,r],(i,a)=>i.some((l,s)=>{const u=a[s];return!yC(l,u,!0)}))}var f5=["children"],sE=f.createContext({});function d5(e){var t=e.children,n=mt(e,f5);return f.createElement(sE.Provider,{value:n},t)}var h5=function(e){tl(n,e);var t=nl(n);function n(){return An(this,n),t.apply(this,arguments)}return kn(n,[{key:"render",value:function(){return this.props.children}}]),n}(f.Component),si="none",Nu="appear",Pu="enter",Tu="leave",Ky="none",Sr="prepare",Sa="start",ba="active",Gg="end",uE="prepared";function Gy(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function m5(e,t){var n={animationend:Gy("Animation","AnimationEnd"),transitionend:Gy("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var p5=m5(bn(),typeof window<"u"?window:{}),cE={};if(bn()){var g5=document.createElement("div");cE=g5.style}var Au={};function fE(e){if(Au[e])return Au[e];var t=p5[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o1&&arguments[1]!==void 0?arguments[1]:2;t();var i=Ot(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i}return f.useEffect(function(){return function(){t()}},[]),[n,t]};var w5=[Sr,Sa,ba,Gg],S5=[Sr,uE],gE=!1,b5=!0;function vE(e){return e===ba||e===Gg}const x5=function(e,t,n){var r=$i(Ky),o=Q(r,2),i=o[0],a=o[1],l=y5(),s=Q(l,2),u=s[0],c=s[1];function d(){a(Sr,!0)}var h=t?S5:w5;return pE(function(){if(i!==Ky&&i!==Gg){var p=h.indexOf(i),w=h[p+1],v=n(i);v===gE?a(w,!0):w&&u(function(b){function m(){b.isCanceled()||a(w,!0)}v===!0?m():Promise.resolve(v).then(m)})}},[e,i]),f.useEffect(function(){return function(){c()}},[]),[d,i]};function C5(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,a=r.motionAppear,l=a===void 0?!0:a,s=r.motionLeave,u=s===void 0?!0:s,c=r.motionDeadline,d=r.motionLeaveImmediately,h=r.onAppearPrepare,p=r.onEnterPrepare,w=r.onLeavePrepare,v=r.onAppearStart,b=r.onEnterStart,m=r.onLeaveStart,g=r.onAppearActive,y=r.onEnterActive,S=r.onLeaveActive,C=r.onAppearEnd,E=r.onEnterEnd,x=r.onLeaveEnd,R=r.onVisibleChanged,N=$i(),P=Q(N,2),F=P[0],L=P[1],A=$i(si),_=Q(A,2),z=_[0],I=_[1],O=$i(null),$=Q(O,2),M=$[0],T=$[1],k=f.useRef(!1),D=f.useRef(null);function B(){return n()}var V=f.useRef(!1);function W(){I(si,!0),T(null,!0)}function U(J){var re=B();if(!(J&&!J.deadline&&J.target!==re)){var ue=V.current,ce;z===Nu&&ue?ce=C==null?void 0:C(re,J):z===Pu&&ue?ce=E==null?void 0:E(re,J):z===Tu&&ue&&(ce=x==null?void 0:x(re,J)),z!==si&&ue&&ce!==!1&&W()}}var Y=v5(U),X=Q(Y,1),K=X[0],q=function(re){var ue,ce,ge;switch(re){case Nu:return ue={},H(ue,Sr,h),H(ue,Sa,v),H(ue,ba,g),ue;case Pu:return ce={},H(ce,Sr,p),H(ce,Sa,b),H(ce,ba,y),ce;case Tu:return ge={},H(ge,Sr,w),H(ge,Sa,m),H(ge,ba,S),ge;default:return{}}},te=f.useMemo(function(){return q(z)},[z]),ne=x5(z,!e,function(J){if(J===Sr){var re=te[Sr];return re?re(B()):gE}if(ae in te){var ue;T(((ue=te[ae])===null||ue===void 0?void 0:ue.call(te,B(),null))||null)}return ae===ba&&(K(B()),c>0&&(clearTimeout(D.current),D.current=setTimeout(function(){U({deadline:!0})},c))),ae===uE&&W(),b5}),ee=Q(ne,2),Z=ee[0],ae=ee[1],pe=vE(ae);V.current=pe,pE(function(){L(t);var J=k.current;k.current=!0;var re;!J&&t&&l&&(re=Nu),J&&t&&i&&(re=Pu),(J&&!t&&u||!J&&d&&!t&&u)&&(re=Tu);var ue=q(re);re&&(e||ue[Sr])?(I(re),Z()):I(si)},[t]),f.useEffect(function(){(z===Nu&&!l||z===Pu&&!i||z===Tu&&!u)&&I(si)},[l,i,u]),f.useEffect(function(){return function(){k.current=!1,clearTimeout(D.current)}},[]);var de=f.useRef(!1);f.useEffect(function(){F&&(de.current=!0),F!==void 0&&z===si&&((de.current||F)&&(R==null||R(F)),de.current=!0)},[F,z]);var oe=M;return te[Sr]&&ae===Sa&&(oe=G({transition:"none"},oe)),[z,ae,oe,F??t]}function E5(e){var t=e;Ke(e)==="object"&&(t=e.transitionSupport);function n(o,i){return!!(o.motionName&&t&&i!==!1)}var r=f.forwardRef(function(o,i){var a=o.visible,l=a===void 0?!0:a,s=o.removeOnLeave,u=s===void 0?!0:s,c=o.forceRender,d=o.children,h=o.motionName,p=o.leavedClassName,w=o.eventProps,v=f.useContext(sE),b=v.motion,m=n(o,b),g=f.useRef(),y=f.useRef();function S(){try{return g.current instanceof HTMLElement?g.current:Kl(y.current)}catch{return null}}var C=C5(m,l,S,o),E=Q(C,4),x=E[0],R=E[1],N=E[2],P=E[3],F=f.useRef(P);P&&(F.current=!0);var L=f.useCallback(function(T){g.current=T,kg(i,T)},[i]),A,_=G(G({},w),{},{visible:l});if(!d)A=null;else if(x===si)P?A=d(G({},_),L):!u&&F.current&&p?A=d(G(G({},_),{},{className:p}),L):c||!u&&!p?A=d(G(G({},_),{},{style:{display:"none"}}),L):A=null;else{var z,I;R===Sr?I="prepare":vE(R)?I="active":R===Sa&&(I="start");var O=Yy(h,"".concat(x,"-").concat(I));A=d(G(G({},_),{},{className:he(Yy(h,x),(z={},H(z,O,O&&I),H(z,h,typeof h=="string"),z)),style:N}),L)}if(f.isValidElement(A)&&el(A)){var $=A,M=$.ref;M||(A=f.cloneElement(A,{ref:L}))}return f.createElement(h5,{ref:y},A)});return r.displayName="CSSMotion",r}const ol=E5(mE);var Zm="add",Jm="keep",ep="remove",eh="removed";function $5(e){var t;return e&&Ke(e)==="object"&&"key"in e?t=e:t={key:e},G(G({},t),{},{key:String(t.key)})}function tp(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map($5)}function _5(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,i=tp(e),a=tp(t);i.forEach(function(u){for(var c=!1,d=r;d1});return s.forEach(function(u){n=n.filter(function(c){var d=c.key,h=c.status;return d!==u||h!==ep}),n.forEach(function(c){c.key===u&&(c.status=Jm)})}),n}var R5=["component","children","onVisibleChanged","onAllRemoved"],I5=["status"],O5=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function M5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ol,n=function(r){tl(i,r);var o=nl(i);function i(){var a;An(this,i);for(var l=arguments.length,s=new Array(l),u=0;unull;var A5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);ot.endsWith("Color"))}const D5=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;t!==void 0&&(yE=t),r&&L5(r)&&HA(z5(),r)},j5=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:l,componentSize:s,direction:u,space:c,virtual:d,dropdownMatchSelectWidth:h,popupMatchSelectWidth:p,popupOverflow:w,legacyLocale:v,parentContext:b,iconPrefixCls:m,theme:g,componentDisabled:y,segmented:S,statistic:C,spin:E,calendar:x,carousel:R,cascader:N,collapse:P,typography:F,checkbox:L,descriptions:A,divider:_,drawer:z,skeleton:I,steps:O,image:$,layout:M,list:T,mentions:k,modal:D,progress:B,result:V,slider:W,breadcrumb:U,menu:Y,pagination:X,input:K,empty:q,badge:te,radio:ne,rate:ee,switch:Z,transfer:ae,avatar:pe,message:de,tag:oe,table:J,card:re,tabs:ue,timeline:ce,timePicker:ge,upload:Pe,notification:Oe,tree:Ce,colorPicker:tt,datePicker:Qe,rangePicker:ze,flex:ve,wave:fe,dropdown:je,warning:Ze}=e,yt=f.useCallback(($e,Be)=>{const{prefixCls:ye}=e;if(Be)return Be;const Me=ye||b.getPrefixCls("");return $e?`${Me}-${$e}`:Me},[b.getPrefixCls,e.prefixCls]),nt=m||b.iconPrefixCls||XC,We=n||b.csp;oE(nt,We);const rt=c5(g,b.theme),wt={csp:We,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:l||v,direction:u,space:c,virtual:d,popupMatchSelectWidth:p??h,popupOverflow:w,getPrefixCls:yt,iconPrefixCls:nt,theme:rt,segmented:S,statistic:C,spin:E,calendar:x,carousel:R,cascader:N,collapse:P,typography:F,checkbox:L,descriptions:A,divider:_,drawer:z,skeleton:I,steps:O,image:$,input:K,layout:M,list:T,mentions:k,modal:D,progress:B,result:V,slider:W,breadcrumb:U,menu:Y,pagination:X,empty:q,badge:te,radio:ne,rate:ee,switch:Z,transfer:ae,avatar:pe,message:de,tag:oe,table:J,card:re,tabs:ue,timeline:ce,timePicker:ge,upload:Pe,notification:Oe,tree:Ce,colorPicker:tt,datePicker:Qe,rangePicker:ze,flex:ve,wave:fe,dropdown:je,warning:Ze},Ge=Object.assign({},b);Object.keys(wt).forEach($e=>{wt[$e]!==void 0&&(Ge[$e]=wt[$e])}),k5.forEach($e=>{const Be=e[$e];Be&&(Ge[$e]=Be)});const ot=zf(()=>Ge,Ge,($e,Be)=>{const ye=Object.keys($e),Me=Object.keys(Be);return ye.length!==Me.length||ye.some(ie=>$e[ie]!==Be[ie])}),Mt=f.useMemo(()=>({prefixCls:nt,csp:We}),[nt,We]);let Ve=f.createElement(f.Fragment,null,f.createElement(T5,{dropdownMatchSelectWidth:h}),t);const gt=f.useMemo(()=>{var $e,Be,ye,Me;return wa((($e=Ti.Form)===null||$e===void 0?void 0:$e.defaultValidateMessages)||{},((ye=(Be=ot.locale)===null||Be===void 0?void 0:Be.Form)===null||ye===void 0?void 0:ye.defaultValidateMessages)||{},((Me=ot.form)===null||Me===void 0?void 0:Me.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[ot,a==null?void 0:a.validateMessages]);Object.keys(gt).length>0&&(Ve=f.createElement(LC.Provider,{value:gt},Ve)),l&&(Ve=f.createElement(uA,{locale:l,_ANT_MARK__:lA},Ve)),(nt||We)&&(Ve=f.createElement(Bg.Provider,{value:Mt},Ve)),s&&(Ve=f.createElement(BA,{size:s},Ve)),Ve=f.createElement(P5,null,Ve);const qe=f.useMemo(()=>{const $e=rt||{},{algorithm:Be,token:ye,components:Me,cssVar:ie}=$e,xe=A5($e,["algorithm","token","components","cssVar"]),Se=Be&&(!Array.isArray(Be)||Be.length>0)?Lm(Be):UC,we={};Object.entries(Me||{}).forEach(Ye=>{let[Nt,_t]=Ye;const ht=Object.assign({},_t);"algorithm"in ht&&(ht.algorithm===!0?ht.theme=Se:(Array.isArray(ht.algorithm)||typeof ht.algorithm=="function")&&(ht.theme=Lm(ht.algorithm)),delete ht.algorithm),we[Nt]=ht});const Ue=Object.assign(Object.assign({},Rs),ye);return Object.assign(Object.assign({},xe),{theme:Se,token:Ue,components:we,override:Object.assign({override:Ue},we),cssVar:ie})},[rt]);return g&&(Ve=f.createElement(GC.Provider,{value:qe},Ve)),ot.warning&&(Ve=f.createElement(eA.Provider,{value:ot.warning},Ve)),y!==void 0&&(Ve=f.createElement(qC,{disabled:y},Ve)),f.createElement($t.Provider,{value:ot},Ve)},il=e=>{const t=f.useContext($t),n=f.useContext(Wg);return f.createElement(j5,Object.assign({parentContext:t,legacyLocale:n},e))};il.ConfigContext=$t;il.SizeContext=Bs;il.config=D5;il.useConfig=VA;Object.defineProperty(il,"SizeContext",{get:()=>Bs});var H5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};const B5=H5;function wE(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function V5(e){return wE(e)instanceof ShadowRoot}function Gc(e){return V5(e)?wE(e):null}function W5(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function U5(e,t){Pn(e,"[@ant-design/icons] ".concat(t))}function Qy(e){return Ke(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Ke(e.icon)==="object"||typeof e.icon=="function")}function Zy(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[W5(n)]=r}return t},{})}function np(e,t,n){return n?j.createElement(e.tag,G(G({key:t},Zy(e.attrs)),n),(e.children||[]).map(function(r,o){return np(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):j.createElement(e.tag,G({key:t},Zy(e.attrs)),(e.children||[]).map(function(r,o){return np(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function SE(e){return Ai(e)[0]}function bE(e){return e?Array.isArray(e)?e:[e]:[]}var K5=` +.anticon { + display: inline-block; + 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); + } +} +`,G5=function(t){var n=f.useContext(Bg),r=n.csp,o=n.prefixCls,i=K5;o&&(i=i.replace(/anticon/g,o)),f.useEffect(function(){var a=t.current,l=Gc(a);Jo(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:l})},[])},X5=["icon","className","onClick","style","primaryColor","secondaryColor"],ql={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function q5(e){var t=e.primaryColor,n=e.secondaryColor;ql.primaryColor=t,ql.secondaryColor=n||SE(t),ql.calculated=!!n}function Y5(){return G({},ql)}var Wf=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,l=t.secondaryColor,s=mt(t,X5),u=f.useRef(),c=ql;if(a&&(c={primaryColor:a,secondaryColor:l||SE(a)}),G5(u),U5(Qy(n),"icon should be icon definiton, but got ".concat(n)),!Qy(n))return null;var d=n;return d&&typeof d.icon=="function"&&(d=G(G({},d),{},{icon:d.icon(c.primaryColor,c.secondaryColor)})),np(d.icon,"svg-".concat(d.name),G(G({className:r,onClick:o,style:i,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{},{ref:u}))};Wf.displayName="IconReact";Wf.getTwoToneColors=Y5;Wf.setTwoToneColors=q5;const Xg=Wf;function xE(e){var t=bE(e),n=Q(t,2),r=n[0],o=n[1];return Xg.setTwoToneColors({primaryColor:r,secondaryColor:o})}function Q5(){var e=Xg.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Z5=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];xE(_A.primary);var Uf=f.forwardRef(function(e,t){var n,r=e.className,o=e.icon,i=e.spin,a=e.rotate,l=e.tabIndex,s=e.onClick,u=e.twoToneColor,c=mt(e,Z5),d=f.useContext(Bg),h=d.prefixCls,p=h===void 0?"anticon":h,w=d.rootClassName,v=he(w,p,(n={},H(n,"".concat(p,"-").concat(o.name),!!o.name),H(n,"".concat(p,"-spin"),!!i||o.name==="loading"),n),r),b=l;b===void 0&&s&&(b=-1);var m=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,g=bE(u),y=Q(g,2),S=y[0],C=y[1];return f.createElement("span",De({role:"img","aria-label":o.name},c,{ref:t,tabIndex:b,onClick:s,className:v}),f.createElement(Xg,{icon:o,primaryColor:S,secondaryColor:C,style:m}))});Uf.displayName="AntdIcon";Uf.getTwoToneColor=Q5;Uf.setTwoToneColor=xE;const Pr=Uf;var J5=function(t,n){return f.createElement(Pr,De({},t,{ref:n,icon:B5}))};const ek=f.forwardRef(J5);var tk={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};const nk=tk;var rk=function(t,n){return f.createElement(Pr,De({},t,{ref:n,icon:nk}))};const Kf=f.forwardRef(rk);var ok={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const ik=ok;var ak=function(t,n){return f.createElement(Pr,De({},t,{ref:n,icon:ik}))};const lk=f.forwardRef(ak);var sk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};const uk=sk;var ck=function(t,n){return f.createElement(Pr,De({},t,{ref:n,icon:uk}))};const fk=f.forwardRef(ck);var dk=`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`,hk=`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`,mk="".concat(dk," ").concat(hk).split(/[\s\n]+/),pk="aria-",gk="data-";function Jy(e,t){return e.indexOf(t)===0}function Xc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=G({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||Jy(o,pk))||n.data&&Jy(o,gk)||n.attr&&mk.includes(o))&&(r[o]=e[o])}),r}const{isValidElement:Gf}=ks;function CE(e){return e&&Gf(e)&&e.type===f.Fragment}function vk(e,t,n){return Gf(e)?f.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function Xa(e,t){return vk(e,e,t)}const e1=e=>typeof e=="object"&&e!=null&&e.nodeType===1,t1=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",th=(e,t)=>{if(e.clientHeight{const o=(i=>{if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeightit||i>e&&a=t&&l>=n?i-e-r:a>t&&ln?a-t+o:0,yk=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},n1=(e,t)=>{var n,r,o,i;if(typeof document>"u")return[];const{scrollMode:a,block:l,inline:s,boundary:u,skipOverflowHiddenElements:c}=t,d=typeof u=="function"?u:I=>I!==u;if(!e1(e))throw new TypeError("Invalid target");const h=document.scrollingElement||document.documentElement,p=[];let w=e;for(;e1(w)&&d(w);){if(w=yk(w),w===h){p.push(w);break}w!=null&&w===document.body&&th(w)&&!th(document.documentElement)||w!=null&&th(w,c)&&p.push(w)}const v=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,b=(i=(o=window.visualViewport)==null?void 0:o.height)!=null?i:innerHeight,{scrollX:m,scrollY:g}=window,{height:y,width:S,top:C,right:E,bottom:x,left:R}=e.getBoundingClientRect(),{top:N,right:P,bottom:F,left:L}=(I=>{const O=window.getComputedStyle(I);return{top:parseFloat(O.scrollMarginTop)||0,right:parseFloat(O.scrollMarginRight)||0,bottom:parseFloat(O.scrollMarginBottom)||0,left:parseFloat(O.scrollMarginLeft)||0}})(e);let A=l==="start"||l==="nearest"?C-N:l==="end"?x+F:C+y/2-N+F,_=s==="center"?R+S/2-L+P:s==="end"?E+P:R-L;const z=[];for(let I=0;I=0&&R>=0&&x<=b&&E<=v&&C>=T&&x<=D&&R>=B&&E<=k)return z;const V=getComputedStyle(O),W=parseInt(V.borderLeftWidth,10),U=parseInt(V.borderTopWidth,10),Y=parseInt(V.borderRightWidth,10),X=parseInt(V.borderBottomWidth,10);let K=0,q=0;const te="offsetWidth"in O?O.offsetWidth-O.clientWidth-W-Y:0,ne="offsetHeight"in O?O.offsetHeight-O.clientHeight-U-X:0,ee="offsetWidth"in O?O.offsetWidth===0?0:M/O.offsetWidth:0,Z="offsetHeight"in O?O.offsetHeight===0?0:$/O.offsetHeight:0;if(h===O)K=l==="start"?A:l==="end"?A-b:l==="nearest"?ku(g,g+b,b,U,X,g+A,g+A+y,y):A-b/2,q=s==="start"?_:s==="center"?_-v/2:s==="end"?_-v:ku(m,m+v,v,W,Y,m+_,m+_+S,S),K=Math.max(0,K+g),q=Math.max(0,q+m);else{K=l==="start"?A-T-U:l==="end"?A-D+X+ne:l==="nearest"?ku(T,D,$,U,X+ne,A,A+y,y):A-(T+$/2)+ne/2,q=s==="start"?_-B-W:s==="center"?_-(B+M/2)+te/2:s==="end"?_-k+Y+te:ku(B,k,M,W,Y+te,_,_+S,S);const{scrollLeft:ae,scrollTop:pe}=O;K=Z===0?0:Math.max(0,Math.min(pe+K/Z,O.scrollHeight-$/Z+ne)),q=ee===0?0:Math.max(0,Math.min(ae+q/ee,O.scrollWidth-M/ee+te)),A+=pe-K,_+=ae-q}z.push({el:O,top:K,left:q})}return z},wk=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function Sk(e,t){if(!e.isConnected||!(o=>{let i=o;for(;i&&i.parentNode;){if(i.parentNode===document)return!0;i=i.parentNode instanceof ShadowRoot?i.parentNode.host:i.parentNode}return!1})(e))return;const n=(o=>{const i=window.getComputedStyle(o);return{top:parseFloat(i.scrollMarginTop)||0,right:parseFloat(i.scrollMarginRight)||0,bottom:parseFloat(i.scrollMarginBottom)||0,left:parseFloat(i.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(n1(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:i,left:a}of n1(e,wk(t))){const l=i-n.top+n.bottom,s=a-n.left+n.right;o.scroll({top:l,left:s,behavior:r})}}const al=e=>{const[,,,,t]=Tn();return t?`${e}-css-var`:""};var se={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=se.F1&&n<=se.F12)return!1;switch(n){case se.ALT:case se.CAPS_LOCK:case se.CONTEXT_MENU:case se.CTRL:case se.DOWN:case se.END:case se.ESC:case se.HOME:case se.INSERT:case se.LEFT:case se.MAC_FF_META:case se.META:case se.NUMLOCK:case se.NUM_CENTER:case se.PAGE_DOWN:case se.PAGE_UP:case se.PAUSE:case se.PRINT_SCREEN:case se.RIGHT:case se.SHIFT:case se.UP:case se.WIN_KEY:case se.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=se.ZERO&&t<=se.NINE||t>=se.NUM_ZERO&&t<=se.NUM_MULTIPLY||t>=se.A&&t<=se.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case se.SPACE:case se.QUESTION_MARK:case se.NUM_PLUS:case se.NUM_MINUS:case se.NUM_PERIOD:case se.NUM_DIVISION:case se.SEMICOLON:case se.DASH:case se.EQUALS:case se.COMMA:case se.PERIOD:case se.SLASH:case se.APOSTROPHE:case se.SINGLE_QUOTE:case se.OPEN_SQUARE_BRACKET:case se.BACKSLASH:case se.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},bk={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const xk=bk;var Ck=function(t,n){return f.createElement(Pr,De({},t,{ref:n,icon:xk}))};const Xf=f.forwardRef(Ck),Ek=j.createContext(void 0),EE=Ek,ui=100,$k=10,_k=ui*$k,$E={Modal:ui,Drawer:ui,Popover:ui,Popconfirm:ui,Tooltip:ui,Tour:ui},Rk={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Ik(e){return e in $E}function _E(e,t){const[,n]=Tn(),r=j.useContext(EE),o=Ik(e);if(t!==void 0)return[t,t];let i=r??0;return o?(i+=(r?0:n.zIndexPopupBase)+$E[e],i=Math.min(i,n.zIndexPopupBase+_k)):i+=Rk[e],[r===void 0?t:i,i]}function xn(){xn=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(I,O,$){I[O]=$.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(I,O,$){return Object.defineProperty(I,O,{value:$,enumerable:!0,configurable:!0,writable:!0}),I[O]}try{u({},"")}catch{u=function($,M,T){return $[M]=T}}function c(I,O,$,M){var T=O&&O.prototype instanceof m?O:m,k=Object.create(T.prototype),D=new _(M||[]);return o(k,"_invoke",{value:P(I,$,D)}),k}function d(I,O,$){try{return{type:"normal",arg:I.call(O,$)}}catch(M){return{type:"throw",arg:M}}}t.wrap=c;var h="suspendedStart",p="suspendedYield",w="executing",v="completed",b={};function m(){}function g(){}function y(){}var S={};u(S,a,function(){return this});var C=Object.getPrototypeOf,E=C&&C(C(z([])));E&&E!==n&&r.call(E,a)&&(S=E);var x=y.prototype=m.prototype=Object.create(S);function R(I){["next","throw","return"].forEach(function(O){u(I,O,function($){return this._invoke(O,$)})})}function N(I,O){function $(T,k,D,B){var V=d(I[T],I,k);if(V.type!=="throw"){var W=V.arg,U=W.value;return U&&Ke(U)=="object"&&r.call(U,"__await")?O.resolve(U.__await).then(function(Y){$("next",Y,D,B)},function(Y){$("throw",Y,D,B)}):O.resolve(U).then(function(Y){W.value=Y,D(W)},function(Y){return $("throw",Y,D,B)})}B(V.arg)}var M;o(this,"_invoke",{value:function(k,D){function B(){return new O(function(V,W){$(k,D,V,W)})}return M=M?M.then(B,B):B()}})}function P(I,O,$){var M=h;return function(T,k){if(M===w)throw new Error("Generator is already running");if(M===v){if(T==="throw")throw k;return{value:e,done:!0}}for($.method=T,$.arg=k;;){var D=$.delegate;if(D){var B=F(D,$);if(B){if(B===b)continue;return B}}if($.method==="next")$.sent=$._sent=$.arg;else if($.method==="throw"){if(M===h)throw M=v,$.arg;$.dispatchException($.arg)}else $.method==="return"&&$.abrupt("return",$.arg);M=w;var V=d(I,O,$);if(V.type==="normal"){if(M=$.done?v:p,V.arg===b)continue;return{value:V.arg,done:$.done}}V.type==="throw"&&(M=v,$.method="throw",$.arg=V.arg)}}}function F(I,O){var $=O.method,M=I.iterator[$];if(M===e)return O.delegate=null,$==="throw"&&I.iterator.return&&(O.method="return",O.arg=e,F(I,O),O.method==="throw")||$!=="return"&&(O.method="throw",O.arg=new TypeError("The iterator does not provide a '"+$+"' method")),b;var T=d(M,I.iterator,O.arg);if(T.type==="throw")return O.method="throw",O.arg=T.arg,O.delegate=null,b;var k=T.arg;return k?k.done?(O[I.resultName]=k.value,O.next=I.nextLoc,O.method!=="return"&&(O.method="next",O.arg=e),O.delegate=null,b):k:(O.method="throw",O.arg=new TypeError("iterator result is not an object"),O.delegate=null,b)}function L(I){var O={tryLoc:I[0]};1 in I&&(O.catchLoc=I[1]),2 in I&&(O.finallyLoc=I[2],O.afterLoc=I[3]),this.tryEntries.push(O)}function A(I){var O=I.completion||{};O.type="normal",delete O.arg,I.completion=O}function _(I){this.tryEntries=[{tryLoc:"root"}],I.forEach(L,this),this.reset(!0)}function z(I){if(I||I===""){var O=I[a];if(O)return O.call(I);if(typeof I.next=="function")return I;if(!isNaN(I.length)){var $=-1,M=function T(){for(;++$=0;--T){var k=this.tryEntries[T],D=k.completion;if(k.tryLoc==="root")return M("end");if(k.tryLoc<=this.prev){var B=r.call(k,"catchLoc"),V=r.call(k,"finallyLoc");if(B&&V){if(this.prev=0;--M){var T=this.tryEntries[M];if(T.tryLoc<=this.prev&&r.call(T,"finallyLoc")&&this.prev=0;--$){var M=this.tryEntries[$];if(M.finallyLoc===O)return this.complete(M.completion,M.afterLoc),A(M),b}},catch:function(O){for(var $=this.tryEntries.length-1;$>=0;--$){var M=this.tryEntries[$];if(M.tryLoc===O){var T=M.completion;if(T.type==="throw"){var k=T.arg;A(M)}return k}}throw new Error("illegal catch attempt")},delegateYield:function(O,$,M){return this.delegate={iterator:z(O),resultName:$,nextLoc:M},this.method==="next"&&(this.arg=e),b}},t}function r1(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(u){n(u);return}l.done?t(s):Promise.resolve(s).then(r,o)}function ji(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(s){r1(i,r,o,a,l,"next",s)}function l(s){r1(i,r,o,a,l,"throw",s)}a(void 0)})}}var Vs=G({},ER),Ok=Vs.version,Mk=Vs.render,Nk=Vs.unmountComponentAtNode,qf;try{var Pk=Number((Ok||"").split(".")[0]);Pk>=18&&(qf=Vs.createRoot)}catch{}function o1(e){var t=Vs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Ke(t)==="object"&&(t.usingClientEntryPoint=e)}var qc="__rc_react_root__";function Tk(e,t){o1(!0);var n=t[qc]||qf(t);o1(!1),n.render(e),t[qc]=n}function Ak(e,t){Mk(e,t)}function kk(e,t){if(qf){Tk(e,t);return}Ak(e,t)}function Fk(e){return rp.apply(this,arguments)}function rp(){return rp=ji(xn().mark(function e(t){return xn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[qc])===null||o===void 0||o.unmount(),delete t[qc]}));case 1:case"end":return r.stop()}},e)})),rp.apply(this,arguments)}function zk(e){Nk(e)}function Lk(e){return op.apply(this,arguments)}function op(){return op=ji(xn().mark(function e(t){return xn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(qf===void 0){r.next=2;break}return r.abrupt("return",Fk(t));case 2:zk(t);case 3:case"end":return r.stop()}},e)})),op.apply(this,arguments)}const nh=()=>({height:0,opacity:0}),i1=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Dk=e=>({height:e?e.offsetHeight:0}),rh=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",a1=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:nh,onEnterStart:nh,onAppearActive:i1,onEnterActive:i1,onLeaveStart:Dk,onLeaveActive:nh,onAppearEnd:rh,onEnterEnd:rh,onLeaveEnd:rh,motionDeadline:500}},RE=(e,t,n)=>n!==void 0?n:`${e}-${t}`,qg=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1},jk=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${e.motionEaseInOut}`,`opacity 0.35s ${e.motionEaseInOut}`].join(",")}}}}},Hk=Kg("Wave",e=>[jk(e)]);function Bk(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function oh(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&Bk(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function Vk(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return oh(t)?t:oh(n)?n:oh(r)?r:null}const IE="ant-wave-target";function ih(e){return Number.isNaN(e)?0:e}const Wk=e=>{const{className:t,target:n,component:r}=e,o=f.useRef(null),[i,a]=f.useState(null),[l,s]=f.useState([]),[u,c]=f.useState(0),[d,h]=f.useState(0),[p,w]=f.useState(0),[v,b]=f.useState(0),[m,g]=f.useState(!1),y={left:u,top:d,width:p,height:v,borderRadius:l.map(E=>`${E}px`).join(" ")};i&&(y["--wave-color"]=i);function S(){const E=getComputedStyle(n);a(Vk(n));const x=E.position==="static",{borderLeftWidth:R,borderTopWidth:N}=E;c(x?n.offsetLeft:ih(-parseFloat(R))),h(x?n.offsetTop:ih(-parseFloat(N))),w(n.offsetWidth),b(n.offsetHeight);const{borderTopLeftRadius:P,borderTopRightRadius:F,borderBottomLeftRadius:L,borderBottomRightRadius:A}=E;s([P,F,A,L].map(_=>ih(parseFloat(_))))}if(f.useEffect(()=>{if(n){const E=Ot(()=>{S(),g(!0)});let x;return typeof ResizeObserver<"u"&&(x=new ResizeObserver(S),x.observe(n)),()=>{Ot.cancel(E),x==null||x.disconnect()}}},[]),!m)return null;const C=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(IE));return f.createElement(ol,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(E,x)=>{var R;if(x.deadline||x.propertyName==="opacity"){const N=(R=o.current)===null||R===void 0?void 0:R.parentElement;Lk(N).then(()=>{N==null||N.remove()})}return!1}},E=>{let{className:x}=E;return f.createElement("div",{ref:o,className:he(t,{"wave-quick":C},x),style:y})})},Uk=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild),kk(f.createElement(Wk,Object.assign({},t,{target:e})),o)},Kk=Uk;function Gk(e,t,n){const{wave:r}=f.useContext($t),[,o,i]=Tn(),a=jn(u=>{const c=e.current;if(r!=null&&r.disabled||!c)return;const d=c.querySelector(`.${IE}`)||c,{showEffect:h}=r||{};(h||Kk)(d,{className:t,token:o,component:n,event:u,hashId:i})}),l=f.useRef();return u=>{Ot.cancel(l.current),l.current=Ot(()=>{a(u)})}}const Xk=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=f.useContext($t),i=f.useRef(null),a=o("wave"),[,l]=Hk(a),s=Gk(i,he(a,l),r);if(j.useEffect(()=>{const c=i.current;if(!c||c.nodeType!==1||n)return;const d=h=>{!qg(h.target)||!c.getAttribute||c.getAttribute("disabled")||c.disabled||c.className.includes("disabled")||c.className.includes("-leave")||s(h)};return c.addEventListener("click",d,!0),()=>{c.removeEventListener("click",d,!0)}},[n]),!j.isValidElement(t))return t??null;const u=el(t)?vo(t.ref,i):i;return Xa(t,{ref:u})},OE=Xk,Hi=e=>{const t=j.useContext(Bs);return j.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},ME=f.createContext(null),Yf=(e,t)=>{const n=f.useContext(ME),r=f.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,l=o==="vertical"?"-vertical-":"-";return he(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:i,[`${e}-compact${l}last-item`]:a,[`${e}-compact${l}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},ip=e=>{let{children:t}=e;return f.createElement(ME.Provider,{value:null},t)};var qk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:n}=f.useContext($t),{prefixCls:r,size:o,className:i}=e,a=qk(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,s]=Tn();let u="";switch(o){case"large":u="lg";break;case"small":u="sm";break}const c=he(l,{[`${l}-${u}`]:u,[`${l}-rtl`]:n==="rtl"},i,s);return f.createElement(NE.Provider,{value:o},f.createElement("div",Object.assign({},a,{className:c})))},Qk=Yk,l1=/^[\u4e00-\u9fa5]{2}$/,ap=l1.test.bind(l1);function s1(e){return typeof e=="string"}function ah(e){return e==="text"||e==="link"}function Zk(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&s1(e.type)&&ap(e.props.children)?Xa(e,{children:e.props.children.split("").join(n)}):s1(e)?ap(e)?j.createElement("span",null,e.split("").join(n)):j.createElement("span",null,e):CE(e)?j.createElement("span",null,e):e}function Jk(e,t){let n=!1;const r=[];return j.Children.forEach(e,o=>{const i=typeof o,a=i==="string"||i==="number";if(n&&a){const l=r.length-1,s=r[l];r[l]=`${s}${o}`}else r.push(o);n=a}),j.Children.map(r,o=>Zk(o,t))}const eF=f.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=he(`${i}-icon`,n);return j.createElement("span",{ref:t,className:a,style:r},o)}),PE=eF,u1=f.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:i}=e;const a=he(`${n}-loading-icon`,r);return j.createElement(PE,{prefixCls:n,className:a,style:o,ref:t},j.createElement(Xf,{className:i}))}),lh=()=>({width:0,opacity:0,transform:"scale(0)"}),sh=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),tF=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i}=e,a=!!n;return r?j.createElement(u1,{prefixCls:t,className:o,style:i}):j.createElement(ol,{visible:a,motionName:`${t}-loading-icon-motion`,motionLeave:a,removeOnLeave:!0,onAppearStart:lh,onAppearActive:sh,onEnterStart:lh,onEnterActive:sh,onLeaveStart:sh,onLeaveActive:lh},(l,s)=>{let{className:u,style:c}=l;return j.createElement(u1,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),c),ref:s,iconClassName:u})})},nF=tF,c1=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),rF=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},c1(`${t}-primary`,o),c1(`${t}-danger`,i)]}},oF=rF,iF=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Ae(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},eE(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${t}-compact-item`]:{flex:"none"}}}},mo=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),aF=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),lF=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),sF=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Is=(e,t,n,r,o,i,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},mo(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),Yg=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},sF(e))}),TE=e=>Object.assign({},Yg(e)),Yc=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),AE=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},TE(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),mo(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Is(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},mo(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Is(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Yg(e))}),uF=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},TE(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),mo(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),Is(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},mo(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),Is(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Yg(e))}),cF=e=>Object.assign(Object.assign({},AE(e)),{borderStyle:"dashed"}),fF=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},mo(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Yc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},mo(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),Yc(e))}),dF=e=>Object.assign(Object.assign(Object.assign({},mo(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),Yc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Yc(e)),mo(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBg}))}),hF=e=>{const{componentCls:t}=e;return{[`${t}-default`]:AE(e),[`${t}-primary`]:uF(e),[`${t}-dashed`]:cF(e),[`${t}-link`]:fF(e),[`${t}-text`]:dF(e),[`${t}-ghost`]:Is(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},Qg=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:i,buttonPaddingHorizontal:a,iconCls:l,buttonPaddingVertical:s}=e,u=`${n}-icon-only`;return[{[`${n}${t}`]:{fontSize:o,height:r,padding:`${Ae(s)} ${Ae(a)}`,borderRadius:i,[`&${u}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[l]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:aF(e)},{[`${n}${n}-round${t}`]:lF(e)}]},mF=e=>Qg(Et(e,{fontSize:e.contentFontSize})),pF=e=>{const t=Et(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Qg(t,`${e.componentCls}-sm`)},gF=e=>{const t=Et(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Qg(t,`${e.componentCls}-lg`)},vF=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},kE=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return Et(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},FE=e=>{const t=e.fontSize,n=e.fontSize,r=e.fontSizeLG;return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,paddingBlock:Math.max((e.controlHeight-t*e.lineHeight)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-n*e.lineHeight)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-r*e.lineHeight)/2-e.lineWidth,0),onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,contentFontSize:t,contentFontSizeSM:n,contentFontSizeLG:r}},yF=wo("Button",e=>{const t=kE(e);return[iF(t),pF(t),mF(t),gF(t),vF(t),hF(t),oF(t)]},FE,{unitless:{fontWeight:!0}});function wF(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(s=>`&:${s} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function SF(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Zg(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},wF(e,r,t)),SF(n,r,t))}}function bF(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 xF(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 CF(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},bF(e,t)),xF(e.componentCls,t))}}const EF=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${Ae(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${Ae(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},$F=lE(["Button","compact"],e=>{const t=kE(e);return[Zg(t),CF(t),EF(t)]},FE);var _F=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const{loading:o=!1,prefixCls:i,type:a="default",danger:l,shape:s="default",size:u,styles:c,disabled:d,className:h,rootClassName:p,children:w,icon:v,ghost:b=!1,block:m=!1,htmlType:g="button",classNames:y,style:S={}}=e,C=_F(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:E,autoInsertSpaceInButton:x,direction:R,button:N}=f.useContext($t),P=E("btn",i),[F,L,A]=yF(P),_=f.useContext(Di),z=d??_,I=f.useContext(NE),O=f.useMemo(()=>RF(o),[o]),[$,M]=f.useState(O.loading),[T,k]=f.useState(!1),B=vo(t,f.createRef()),V=f.Children.count(w)===1&&!v&&!ah(a);f.useEffect(()=>{let ue=null;O.delay>0?ue=setTimeout(()=>{ue=null,M(!0)},O.delay):M(O.loading);function ce(){ue&&(clearTimeout(ue),ue=null)}return ce},[O]),f.useEffect(()=>{if(!B||!B.current||x===!1)return;const ue=B.current.textContent;V&&ap(ue)?T||k(!0):T&&k(!1)},[B]);const W=ue=>{const{onClick:ce}=e;if($||z){ue.preventDefault();return}ce==null||ce(ue)},U=x!==!1,{compactSize:Y,compactItemClassnames:X}=Yf(P,R),K={large:"lg",small:"sm",middle:void 0},q=Hi(ue=>{var ce,ge;return(ge=(ce=u??Y)!==null&&ce!==void 0?ce:I)!==null&&ge!==void 0?ge:ue}),te=q&&K[q]||"",ne=$?"loading":v,ee=Li(C,["navigate"]),Z=he(P,L,A,{[`${P}-${s}`]:s!=="default"&&s,[`${P}-${a}`]:a,[`${P}-${te}`]:te,[`${P}-icon-only`]:!w&&w!==0&&!!ne,[`${P}-background-ghost`]:b&&!ah(a),[`${P}-loading`]:$,[`${P}-two-chinese-chars`]:T&&U&&!$,[`${P}-block`]:m,[`${P}-dangerous`]:!!l,[`${P}-rtl`]:R==="rtl"},X,h,p,N==null?void 0:N.className),ae=Object.assign(Object.assign({},N==null?void 0:N.style),S),pe=he(y==null?void 0:y.icon,(n=N==null?void 0:N.classNames)===null||n===void 0?void 0:n.icon),de=Object.assign(Object.assign({},(c==null?void 0:c.icon)||{}),((r=N==null?void 0:N.styles)===null||r===void 0?void 0:r.icon)||{}),oe=v&&!$?j.createElement(PE,{prefixCls:P,className:pe,style:de},v):j.createElement(nF,{existIcon:!!v,prefixCls:P,loading:!!$}),J=w||w===0?Jk(w,V&&U):null;if(ee.href!==void 0)return F(j.createElement("a",Object.assign({},ee,{className:he(Z,{[`${P}-disabled`]:z}),href:z?void 0:ee.href,style:ae,onClick:W,ref:B,tabIndex:z?-1:0}),oe,J));let re=j.createElement("button",Object.assign({},C,{type:g,className:Z,style:ae,onClick:W,disabled:z,ref:B}),oe,J,X&&j.createElement($F,{key:"compact",prefixCls:P}));return ah(a)||(re=j.createElement(OE,{component:"Button",disabled:!!$},re)),F(re)},Jg=f.forwardRef(IF);Jg.Group=Qk;Jg.__ANT_BUTTON=!0;const zE=Jg;var LE=f.createContext(null),f1=[];function OF(e,t){var n=f.useState(function(){if(!bn())return null;var w=document.createElement("div");return w}),r=Q(n,1),o=r[0],i=f.useRef(!1),a=f.useContext(LE),l=f.useState(f1),s=Q(l,2),u=s[0],c=s[1],d=a||(i.current?void 0:function(w){c(function(v){var b=[w].concat(be(v));return b})});function h(){o.parentElement||document.body.appendChild(o),i.current=!0}function p(){var w;(w=o.parentElement)===null||w===void 0||w.removeChild(o),i.current=!1}return xt(function(){return e?a?a(h):h():p(),p},[e]),xt(function(){u.length&&(u.forEach(function(w){return w()}),c(f1))},[u]),[o,d]}var uh;function MF(e){if(typeof document>"u")return 0;if(e||uh===void 0){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var o=t.offsetWidth;n.style.overflow="scroll";var i=t.offsetWidth;o===i&&(i=n.clientWidth),document.body.removeChild(n),uh=o-i}return uh}function d1(e){var t=e.match(/^(.*)px$/),n=Number(t==null?void 0:t[1]);return Number.isNaN(n)?MF():n}function NF(e){if(typeof document>"u"||!e||!(e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.width,r=t.height;return{width:d1(n),height:d1(r)}}function PF(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var TF="rc-util-locker-".concat(Date.now()),h1=0;function AF(e){var t=!!e,n=f.useState(function(){return h1+=1,"".concat(TF,"_").concat(h1)}),r=Q(n,1),o=r[0];xt(function(){if(t){var i=NF(document.body).width,a=PF();Jo(` +html body { + overflow-y: hidden; + `.concat(a?"width: calc(100% - ".concat(i,"px);"):"",` +}`),o)}else Es(o);return function(){Es(o)}},[t,o])}var m1=!1;function kF(e){return typeof e=="boolean"&&(m1=e),m1}var p1=function(t){return t===!1?!1:!bn()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},DE=f.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var i=e.autoDestroy,a=i===void 0?!0:i,l=e.children,s=f.useState(n),u=Q(s,2),c=u[0],d=u[1],h=c||n;f.useEffect(function(){(a||n)&&d(n)},[n,a]);var p=f.useState(function(){return p1(o)}),w=Q(p,2),v=w[0],b=w[1];f.useEffect(function(){var F=p1(o);b(F??null)});var m=OF(h&&!v),g=Q(m,2),y=g[0],S=g[1],C=v??y;AF(r&&n&&bn()&&(C===y||C===document.body));var E=null;if(l&&el(l)&&t){var x=l;E=x.ref}var R=Lf(E,t);if(!h||!bn()||v===void 0)return null;var N=C===!1||kF(),P=l;return t&&(P=f.cloneElement(l,{ref:R})),f.createElement(LE.Provider,{value:S},N?P:Zo.createPortal(P,C))});function FF(){var e=G({},ks);return e.useId}var g1=0,v1=FF();const zF=v1?function(t){var n=v1();return t||n}:function(t){var n=f.useState("ssr-id"),r=Q(n,2),o=r[0],i=r[1];return f.useEffect(function(){var a=g1;g1+=1,i("rc_unique_".concat(a))},[]),t||o};var vi="RC_FORM_INTERNAL_HOOKS",ft=function(){Pn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},ki=f.createContext({getFieldValue:ft,getFieldsValue:ft,getFieldError:ft,getFieldWarning:ft,getFieldsError:ft,isFieldsTouched:ft,isFieldTouched:ft,isFieldValidating:ft,isFieldsValidating:ft,resetFields:ft,setFields:ft,setFieldValue:ft,setFieldsValue:ft,validateFields:ft,submit:ft,getInternalHooks:function(){return ft(),{dispatch:ft,initEntityValue:ft,registerField:ft,useSubscribe:ft,setInitialValues:ft,destroyForm:ft,setCallbacks:ft,registerWatch:ft,getFields:ft,setValidateMessages:ft,setPreserve:ft,getInitialValue:ft}}}),Os=f.createContext(null);function lp(e){return e==null?[]:Array.isArray(e)?e:[e]}function LF(e){return e&&!!e._init}function yi(){return yi=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ac(e,t,n){return jF()?ac=Reflect.construct.bind():ac=function(o,i,a){var l=[null];l.push.apply(l,i);var s=Function.bind.apply(o,l),u=new s;return a&&Ms(u,a.prototype),u},ac.apply(null,arguments)}function HF(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function up(e){var t=typeof Map=="function"?new Map:void 0;return up=function(r){if(r===null||!HF(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return ac(r,arguments,sp(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Ms(o,r)},up(e)}var BF=/%[sdj%]/g,VF=function(){};function cp(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Bn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=i)return l;switch(l){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return l}});return a}return e}function WF(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Qt(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||WF(t)&&typeof e=="string"&&!e)}function UF(e,t,n){var r=[],o=0,i=e.length;function a(l){r.push.apply(r,l||[]),o++,o===i&&n(r)}e.forEach(function(l){t(l,a)})}function y1(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var l=r;r=r+1,l()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Fl={integer:function(t){return Fl.number(t)&&parseInt(t,10)===t},float:function(t){return Fl.number(t)&&!Fl.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Fl.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(x1.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(QF())},hex:function(t){return typeof t=="string"&&!!t.match(x1.hex)}},ZF=function(t,n,r,o,i){if(t.required&&n===void 0){jE(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;a.indexOf(l)>-1?Fl[l](n)||o.push(Bn(i.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&o.push(Bn(i.messages.types[l],t.fullField,t.type))},JF=function(t,n,r,o,i){var a=typeof t.len=="number",l=typeof t.min=="number",s=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=n,d=null,h=typeof n=="number",p=typeof n=="string",w=Array.isArray(n);if(h?d="number":p?d="string":w&&(d="array"),!d)return!1;w&&(c=n.length),p&&(c=n.replace(u,"_").length),a?c!==t.len&&o.push(Bn(i.messages[d].len,t.fullField,t.len)):l&&!s&&ct.max?o.push(Bn(i.messages[d].max,t.fullField,t.max)):l&&s&&(ct.max)&&o.push(Bn(i.messages[d].range,t.fullField,t.min,t.max))},Yi="enum",ez=function(t,n,r,o,i){t[Yi]=Array.isArray(t[Yi])?t[Yi]:[],t[Yi].indexOf(n)===-1&&o.push(Bn(i.messages[Yi],t.fullField,t[Yi].join(", ")))},tz=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Bn(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||o.push(Bn(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Je={required:jE,whitespace:YF,type:ZF,range:JF,enum:ez,pattern:tz},nz=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Qt(n,"string")&&!t.required)return r();Je.required(t,n,o,a,i,"string"),Qt(n,"string")||(Je.type(t,n,o,a,i),Je.range(t,n,o,a,i),Je.pattern(t,n,o,a,i),t.whitespace===!0&&Je.whitespace(t,n,o,a,i))}r(a)},rz=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Qt(n)&&!t.required)return r();Je.required(t,n,o,a,i),n!==void 0&&Je.type(t,n,o,a,i)}r(a)},oz=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),Qt(n)&&!t.required)return r();Je.required(t,n,o,a,i),n!==void 0&&(Je.type(t,n,o,a,i),Je.range(t,n,o,a,i))}r(a)},iz=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Qt(n)&&!t.required)return r();Je.required(t,n,o,a,i),n!==void 0&&Je.type(t,n,o,a,i)}r(a)},az=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Qt(n)&&!t.required)return r();Je.required(t,n,o,a,i),Qt(n)||Je.type(t,n,o,a,i)}r(a)},lz=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Qt(n)&&!t.required)return r();Je.required(t,n,o,a,i),n!==void 0&&(Je.type(t,n,o,a,i),Je.range(t,n,o,a,i))}r(a)},sz=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Qt(n)&&!t.required)return r();Je.required(t,n,o,a,i),n!==void 0&&(Je.type(t,n,o,a,i),Je.range(t,n,o,a,i))}r(a)},uz=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();Je.required(t,n,o,a,i,"array"),n!=null&&(Je.type(t,n,o,a,i),Je.range(t,n,o,a,i))}r(a)},cz=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Qt(n)&&!t.required)return r();Je.required(t,n,o,a,i),n!==void 0&&Je.type(t,n,o,a,i)}r(a)},fz="enum",dz=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Qt(n)&&!t.required)return r();Je.required(t,n,o,a,i),n!==void 0&&Je[fz](t,n,o,a,i)}r(a)},hz=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Qt(n,"string")&&!t.required)return r();Je.required(t,n,o,a,i),Qt(n,"string")||Je.pattern(t,n,o,a,i)}r(a)},mz=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Qt(n,"date")&&!t.required)return r();if(Je.required(t,n,o,a,i),!Qt(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),Je.type(t,s,o,a,i),s&&Je.range(t,s.getTime(),o,a,i)}}r(a)},pz=function(t,n,r,o,i){var a=[],l=Array.isArray(n)?"array":typeof n;Je.required(t,n,o,a,i,l),r(a)},ch=function(t,n,r,o,i){var a=t.type,l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Qt(n,a)&&!t.required)return r();Je.required(t,n,o,l,i,a),Qt(n,a)||Je.type(t,n,o,l,i)}r(l)},gz=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Qt(n)&&!t.required)return r();Je.required(t,n,o,a,i)}r(a)},Yl={string:nz,method:rz,number:oz,boolean:iz,regexp:az,integer:lz,float:sz,array:uz,object:cz,enum:dz,pattern:hz,date:mz,url:ch,hex:ch,email:ch,required:pz,any:gz};function fp(){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 dp=fp(),Ws=function(){function e(n){this.rules=null,this._messages=dp,this.define(n)}var t=e.prototype;return t.define=function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(i){var a=r[i];o.rules[i]=Array.isArray(a)?a:[a]})},t.messages=function(r){return r&&(this._messages=b1(fp(),r)),this._messages},t.validate=function(r,o,i){var a=this;o===void 0&&(o={}),i===void 0&&(i=function(){});var l=r,s=o,u=i;if(typeof s=="function"&&(u=s,s={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,l),Promise.resolve(l);function c(v){var b=[],m={};function g(S){if(Array.isArray(S)){var C;b=(C=b).concat.apply(C,S)}else b.push(S)}for(var y=0;y2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return BE(t,r,n)})}function BE(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,o){return e[o]===r})}function bz(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Ke(e)!=="object"||Ke(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return be(o).every(function(i){var a=e[i],l=t[i];return typeof a=="function"&&typeof l=="function"?!0:a===l})}function xz(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Ke(t.target)==="object"&&e in t.target?t.target[e]:t}function _1(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(be(e.slice(0,n)),[o],be(e.slice(n,t)),be(e.slice(t+1,r))):i<0?[].concat(be(e.slice(0,t)),be(e.slice(t+1,n+1)),[o],be(e.slice(n+1,r))):e}var Cz=["name"],Zn=[];function R1(e,t,n,r,o,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var ev=function(e){tl(n,e);var t=nl(n);function n(r){var o;if(An(this,n),o=t.call(this,r),H(it(o),"state",{resetCount:0}),H(it(o),"cancelRegisterFunc",null),H(it(o),"mounted",!1),H(it(o),"touched",!1),H(it(o),"dirty",!1),H(it(o),"validatePromise",void 0),H(it(o),"prevValidating",void 0),H(it(o),"errors",Zn),H(it(o),"warnings",Zn),H(it(o),"cancelRegister",function(){var s=o.props,u=s.preserve,c=s.isListField,d=s.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(c,u,Bt(d)),o.cancelRegisterFunc=null}),H(it(o),"getNamePath",function(){var s=o.props,u=s.name,c=s.fieldContext,d=c.prefixName,h=d===void 0?[]:d;return u!==void 0?[].concat(be(h),be(u)):[]}),H(it(o),"getRules",function(){var s=o.props,u=s.rules,c=u===void 0?[]:u,d=s.fieldContext;return c.map(function(h){return typeof h=="function"?h(d):h})}),H(it(o),"refresh",function(){o.mounted&&o.setState(function(s){var u=s.resetCount;return{resetCount:u+1}})}),H(it(o),"metaCache",null),H(it(o),"triggerMetaEvent",function(s){var u=o.props.onMetaChange;if(u){var c=G(G({},o.getMeta()),{},{destroy:s});yC(o.metaCache,c)||u(c),o.metaCache=c}else o.metaCache=null}),H(it(o),"onStoreChange",function(s,u,c){var d=o.props,h=d.shouldUpdate,p=d.dependencies,w=p===void 0?[]:p,v=d.onReset,b=c.store,m=o.getNamePath(),g=o.getValue(s),y=o.getValue(b),S=u&&Na(u,m);switch(c.type==="valueUpdate"&&c.source==="external"&&g!==y&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Zn,o.warnings=Zn,o.triggerMetaEvent()),c.type){case"reset":if(!u||S){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Zn,o.warnings=Zn,o.triggerMetaEvent(),v==null||v(),o.refresh();return}break;case"remove":{if(h){o.reRender();return}break}case"setField":{var C=c.data;if(S){"touched"in C&&(o.touched=C.touched),"validating"in C&&!("originRCField"in C)&&(o.validatePromise=C.validating?Promise.resolve([]):null),"errors"in C&&(o.errors=C.errors||Zn),"warnings"in C&&(o.warnings=C.warnings||Zn),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in C&&Na(u,m,!0)){o.reRender();return}if(h&&!m.length&&R1(h,s,b,g,y,c)){o.reRender();return}break}case"dependenciesUpdate":{var E=w.map(Bt);if(E.some(function(x){return Na(c.relatedFields,x)})){o.reRender();return}break}default:if(S||(!w.length||m.length||h)&&R1(h,s,b,g,y,c)){o.reRender();return}break}h===!0&&o.reRender()}),H(it(o),"validateRules",function(s){var u=o.getNamePath(),c=o.getValue(),d=s||{},h=d.triggerName,p=d.validateOnly,w=p===void 0?!1:p,v=Promise.resolve().then(ji(xn().mark(function b(){var m,g,y,S,C,E,x;return xn().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:if(o.mounted){N.next=2;break}return N.abrupt("return",[]);case 2:if(m=o.props,g=m.validateFirst,y=g===void 0?!1:g,S=m.messageVariables,C=m.validateDebounce,E=o.getRules(),h&&(E=E.filter(function(P){return P}).filter(function(P){var F=P.validateTrigger;if(!F)return!0;var L=lp(F);return L.includes(h)})),!(C&&h)){N.next=10;break}return N.next=8,new Promise(function(P){setTimeout(P,C)});case 8:if(o.validatePromise===v){N.next=10;break}return N.abrupt("return",[]);case 10:return x=yz(u,c,E,s,y,S),x.catch(function(P){return P}).then(function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Zn;if(o.validatePromise===v){var F;o.validatePromise=null;var L=[],A=[];(F=P.forEach)===null||F===void 0||F.call(P,function(_){var z=_.rule.warningOnly,I=_.errors,O=I===void 0?Zn:I;z?A.push.apply(A,be(O)):L.push.apply(L,be(O))}),o.errors=L,o.warnings=A,o.triggerMetaEvent(),o.reRender()}}),N.abrupt("return",x);case 13:case"end":return N.stop()}},b)})));return w||(o.validatePromise=v,o.dirty=!0,o.errors=Zn,o.warnings=Zn,o.triggerMetaEvent(),o.reRender()),v}),H(it(o),"isFieldValidating",function(){return!!o.validatePromise}),H(it(o),"isFieldTouched",function(){return o.touched}),H(it(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var s=o.props.fieldContext,u=s.getInternalHooks(vi),c=u.getInitialValue;return c(o.getNamePath())!==void 0}),H(it(o),"getErrors",function(){return o.errors}),H(it(o),"getWarnings",function(){return o.warnings}),H(it(o),"isListField",function(){return o.props.isListField}),H(it(o),"isList",function(){return o.props.isList}),H(it(o),"isPreserve",function(){return o.props.preserve}),H(it(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var s={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return s}),H(it(o),"getOnlyChild",function(s){if(typeof s=="function"){var u=o.getMeta();return G(G({},o.getOnlyChild(s(o.getControlled(),u,o.props.fieldContext))),{},{isFunction:!0})}var c=Wa(s);return c.length!==1||!f.isValidElement(c[0])?{child:c,isFunction:!1}:{child:c[0],isFunction:!1}}),H(it(o),"getValue",function(s){var u=o.props.fieldContext.getFieldsValue,c=o.getNamePath();return Dr(s||u(!0),c)}),H(it(o),"getControlled",function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=o.props,c=u.trigger,d=u.validateTrigger,h=u.getValueFromEvent,p=u.normalize,w=u.valuePropName,v=u.getValueProps,b=u.fieldContext,m=d!==void 0?d:b.validateTrigger,g=o.getNamePath(),y=b.getInternalHooks,S=b.getFieldsValue,C=y(vi),E=C.dispatch,x=o.getValue(),R=v||function(L){return H({},w,L)},N=s[c],P=G(G({},s),R(x));P[c]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var L,A=arguments.length,_=new Array(A),z=0;z=0&&P<=F.length?(c.keys=[].concat(be(c.keys.slice(0,P)),[c.id],be(c.keys.slice(P))),y([].concat(be(F.slice(0,P)),[N],be(F.slice(P))))):(c.keys=[].concat(be(c.keys),[c.id]),y([].concat(be(F),[N]))),c.id+=1},remove:function(N){var P=C(),F=new Set(Array.isArray(N)?N:[N]);F.size<=0||(c.keys=c.keys.filter(function(L,A){return!F.has(A)}),y(P.filter(function(L,A){return!F.has(A)})))},move:function(N,P){if(N!==P){var F=C();N<0||N>=F.length||P<0||P>=F.length||(c.keys=_1(c.keys,N,P),y(_1(F,N,P)))}}},x=g||[];return Array.isArray(x)||(x=[]),r(x.map(function(R,N){var P=c.keys[N];return P===void 0&&(c.keys[N]=c.id,P=c.keys[N],c.id+=1),{name:N,key:P,isListField:!0}}),E,b)})))}function Ez(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,i){e.forEach(function(a,l){a.catch(function(s){return t=!0,s}).then(function(s){n-=1,r[l]=s,!(n>0)&&(t&&i(r),o(r))})})}):Promise.resolve([])}var WE="__@field_split__";function fh(e){return e.map(function(t){return"".concat(Ke(t),":").concat(t)}).join(WE)}var Qi=function(){function e(){An(this,e),H(this,"kvs",new Map)}return kn(e,[{key:"set",value:function(n,r){this.kvs.set(fh(n),r)}},{key:"get",value:function(n){return this.kvs.get(fh(n))}},{key:"update",value:function(n,r){var o=this.get(n),i=r(o);i?this.set(n,i):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(fh(n))}},{key:"map",value:function(n){return be(this.kvs.entries()).map(function(r){var o=Q(r,2),i=o[0],a=o[1],l=i.split(WE);return n({key:l.map(function(s){var u=s.match(/^([^:]*):(.*)$/),c=Q(u,3),d=c[1],h=c[2];return d==="number"?Number(h):h}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,i=r.value;return n[o.join(".")]=i,null}),n}}]),e}(),$z=["name"],_z=kn(function e(t){var n=this;An(this,e),H(this,"formHooked",!1),H(this,"forceRootUpdate",void 0),H(this,"subscribable",!0),H(this,"store",{}),H(this,"fieldEntities",[]),H(this,"initialValues",{}),H(this,"callbacks",{}),H(this,"validateMessages",null),H(this,"preserve",null),H(this,"lastValidatePromise",null),H(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),H(this,"getInternalHooks",function(r){return r===vi?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Pn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),H(this,"useSubscribe",function(r){n.subscribable=r}),H(this,"prevWithoutPreserves",null),H(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var i,a=wa(r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(l){var s=l.key;a=wr(a,s,Dr(r,s))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),H(this,"destroyForm",function(){var r=new Qi;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||r.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=r}),H(this,"getInitialValue",function(r){var o=Dr(n.initialValues,r);return r.length?wa(o):o}),H(this,"setCallbacks",function(r){n.callbacks=r}),H(this,"setValidateMessages",function(r){n.validateMessages=r}),H(this,"setPreserve",function(r){n.preserve=r}),H(this,"watchList",[]),H(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),H(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),i=n.getFieldsValue(!0);n.watchList.forEach(function(a){a(o,i,r)})}}),H(this,"timeoutId",null),H(this,"warningUnhooked",function(){}),H(this,"updateStore",function(r){n.store=r}),H(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities}),H(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new Qi;return n.getFieldEntities(r).forEach(function(i){var a=i.getNamePath();o.set(a,i)}),o}),H(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(i){var a=Bt(i);return o.get(a)||{INVALIDATE_NAME_PATH:Bt(i)}})}),H(this,"getFieldsValue",function(r,o){n.warningUnhooked();var i,a,l;if(r===!0||Array.isArray(r)?(i=r,a=o):r&&Ke(r)==="object"&&(l=r.strict,a=r.filter),i===!0&&!a)return n.store;var s=n.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),u=[];return s.forEach(function(c){var d,h,p="INVALIDATE_NAME_PATH"in c?c.INVALIDATE_NAME_PATH:c.getNamePath();if(l){var w,v;if((w=(v=c).isList)!==null&&w!==void 0&&w.call(v))return}else if(!i&&(d=(h=c).isListField)!==null&&d!==void 0&&d.call(h))return;if(!a)u.push(p);else{var b="getMeta"in c?c.getMeta():null;a(b)&&u.push(p)}}),$1(n.store,u.map(Bt))}),H(this,"getFieldValue",function(r){n.warningUnhooked();var o=Bt(r);return Dr(n.store,o)}),H(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(i,a){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:Bt(r[a]),errors:[],warnings:[]}})}),H(this,"getFieldError",function(r){n.warningUnhooked();var o=Bt(r),i=n.getFieldsError([o])[0];return i.errors}),H(this,"getFieldWarning",function(r){n.warningUnhooked();var o=Bt(r),i=n.getFieldsError([o])[0];return i.warnings}),H(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),i=0;i0&&arguments[0]!==void 0?arguments[0]:{},o=new Qi,i=n.getFieldEntities(!0);i.forEach(function(s){var u=s.props.initialValue,c=s.getNamePath();if(u!==void 0){var d=o.get(c)||new Set;d.add({entity:s,value:u}),o.set(c,d)}});var a=function(u){u.forEach(function(c){var d=c.props.initialValue;if(d!==void 0){var h=c.getNamePath(),p=n.getInitialValue(h);if(p!==void 0)Pn(!1,"Form already set 'initialValues' with path '".concat(h.join("."),"'. Field can not overwrite it."));else{var w=o.get(h);if(w&&w.size>1)Pn(!1,"Multiple Field with path '".concat(h.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(w){var v=n.getFieldValue(h),b=c.isListField();!b&&(!r.skipExist||v===void 0)&&n.updateStore(wr(n.store,h,be(w)[0].value))}}}})},l;r.entities?l=r.entities:r.namePathList?(l=[],r.namePathList.forEach(function(s){var u=o.get(s);if(u){var c;(c=l).push.apply(c,be(be(u).map(function(d){return d.entity})))}})):l=i,a(l)}),H(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(wa(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var i=r.map(Bt);i.forEach(function(a){var l=n.getInitialValue(a);n.updateStore(wr(n.store,a,l))}),n.resetWithFieldInitialValue({namePathList:i}),n.notifyObservers(o,i,{type:"reset"}),n.notifyWatch(i)}),H(this,"setFields",function(r){n.warningUnhooked();var o=n.store,i=[];r.forEach(function(a){var l=a.name,s=mt(a,$z),u=Bt(l);i.push(u),"value"in s&&n.updateStore(wr(n.store,u,s.value)),n.notifyObservers(o,[u],{type:"setField",data:a})}),n.notifyWatch(i)}),H(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(i){var a=i.getNamePath(),l=i.getMeta(),s=G(G({},l),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(s,"originRCField",{value:!0}),s});return o}),H(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var i=r.getNamePath(),a=Dr(n.store,i);a===void 0&&n.updateStore(wr(n.store,i,o))}}),H(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),H(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var i=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(i,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,l){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(d){return d!==r}),!n.isMergedPreserve(l)&&(!a||s.length>1)){var u=a?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==u&&n.fieldEntities.every(function(d){return!BE(d.getNamePath(),o)})){var c=n.store;n.updateStore(wr(c,o,u,!0)),n.notifyObservers(c,[o],{type:"remove"}),n.triggerDependenciesUpdate(c,o)}}n.notifyWatch([o])}}),H(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,i=r.value;n.updateValue(o,i);break}case"validateField":{var a=r.namePath,l=r.triggerName;n.validateFields([a],{triggerName:l});break}}}),H(this,"notifyObservers",function(r,o,i){if(n.subscribable){var a=G(G({},i),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(l){var s=l.onStoreChange;s(r,o,a)})}else n.forceRootUpdate()}),H(this,"triggerDependenciesUpdate",function(r,o){var i=n.getDependencyChildrenFields(o);return i.length&&n.validateFields(i),n.notifyObservers(r,i,{type:"dependenciesUpdate",relatedFields:[o].concat(be(i))}),i}),H(this,"updateValue",function(r,o){var i=Bt(r),a=n.store;n.updateStore(wr(n.store,i,o)),n.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]);var l=n.triggerDependenciesUpdate(a,i),s=n.callbacks.onValuesChange;if(s){var u=$1(n.store,[i]);s(u,n.getFieldsValue())}n.triggerOnFieldsChange([i].concat(be(l)))}),H(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var i=wa(n.store,r);n.updateStore(i)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),H(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o}])}),H(this,"getDependencyChildrenFields",function(r){var o=new Set,i=[],a=new Qi;n.getFieldEntities().forEach(function(s){var u=s.props.dependencies;(u||[]).forEach(function(c){var d=Bt(c);a.update(d,function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return h.add(s),h})})});var l=function s(u){var c=a.get(u)||new Set;c.forEach(function(d){if(!o.has(d)){o.add(d);var h=d.getNamePath();d.isFieldDirty()&&h.length&&(i.push(h),s(h))}})};return l(r),i}),H(this,"triggerOnFieldsChange",function(r,o){var i=n.callbacks.onFieldsChange;if(i){var a=n.getFields();if(o){var l=new Qi;o.forEach(function(u){var c=u.name,d=u.errors;l.set(c,d)}),a.forEach(function(u){u.errors=l.get(u.name)||u.errors})}var s=a.filter(function(u){var c=u.name;return Na(r,c)});s.length&&i(s,a)}}),H(this,"validateFields",function(r,o){n.warningUnhooked();var i,a;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(i=r,a=o):a=r;var l=!!i,s=l?i.map(Bt):[],u=[],c=String(Date.now()),d=new Set,h=a||{},p=h.recursive,w=h.dirty;n.getFieldEntities(!0).forEach(function(g){if(l||s.push(g.getNamePath()),!(!g.props.rules||!g.props.rules.length)&&!(w&&!g.isFieldDirty())){var y=g.getNamePath();if(d.add(y.join(c)),!l||Na(s,y,p)){var S=g.validateRules(G({validateMessages:G(G({},HE),n.validateMessages)},a));u.push(S.then(function(){return{name:y,errors:[],warnings:[]}}).catch(function(C){var E,x=[],R=[];return(E=C.forEach)===null||E===void 0||E.call(C,function(N){var P=N.rule.warningOnly,F=N.errors;P?R.push.apply(R,be(F)):x.push.apply(x,be(F))}),x.length?Promise.reject({name:y,errors:x,warnings:R}):{name:y,errors:x,warnings:R}}))}}});var v=Ez(u);n.lastValidatePromise=v,v.catch(function(g){return g}).then(function(g){var y=g.map(function(S){var C=S.name;return C});n.notifyObservers(n.store,y,{type:"validateFinish"}),n.triggerOnFieldsChange(y,g)});var b=v.then(function(){return n.lastValidatePromise===v?Promise.resolve(n.getFieldsValue(s)):Promise.reject([])}).catch(function(g){var y=g.filter(function(S){return S&&S.errors.length});return Promise.reject({values:n.getFieldsValue(s),errorFields:y,outOfDate:n.lastValidatePromise!==v})});b.catch(function(g){return g});var m=s.filter(function(g){return d.has(g.join(c))});return n.triggerOnFieldsChange(m),b}),H(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(i){console.error(i)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function nv(e){var t=f.useRef(),n=f.useState({}),r=Q(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},a=new _z(i);t.current=a.getForm()}return[t.current]}var vp=f.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),UE=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=f.useContext(vp),l=f.useRef({});return f.createElement(vp.Provider,{value:G(G({},a),{},{validateMessages:G(G({},a.validateMessages),n),triggerFormChange:function(u,c){r&&r(u,{changedFields:c,forms:l.current}),a.triggerFormChange(u,c)},triggerFormFinish:function(u,c){o&&o(u,{values:c,forms:l.current}),a.triggerFormFinish(u,c)},registerForm:function(u,c){u&&(l.current=G(G({},l.current),{},H({},u,c))),a.registerForm(u,c)},unregisterForm:function(u){var c=G({},l.current);delete c[u],l.current=c,a.unregisterForm(u)}})},i)},Rz=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],Iz=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,a=t.form,l=t.preserve,s=t.children,u=t.component,c=u===void 0?"form":u,d=t.validateMessages,h=t.validateTrigger,p=h===void 0?"onChange":h,w=t.onValuesChange,v=t.onFieldsChange,b=t.onFinish,m=t.onFinishFailed,g=mt(t,Rz),y=f.useContext(vp),S=nv(a),C=Q(S,1),E=C[0],x=E.getInternalHooks(vi),R=x.useSubscribe,N=x.setInitialValues,P=x.setCallbacks,F=x.setValidateMessages,L=x.setPreserve,A=x.destroyForm;f.useImperativeHandle(n,function(){return E}),f.useEffect(function(){return y.registerForm(r,E),function(){y.unregisterForm(r)}},[y,E,r]),F(G(G({},y.validateMessages),d)),P({onValuesChange:w,onFieldsChange:function(D){if(y.triggerFormChange(r,D),v){for(var B=arguments.length,V=new Array(B>1?B-1:0),W=1;W{}}),GE=f.createContext(null),XE=e=>{const t=Li(e,["prefixCls"]);return f.createElement(UE,Object.assign({},t))},rv=f.createContext({prefixCls:""}),Mr=f.createContext({}),O1=e=>{let{children:t,status:n,override:r}=e;const o=f.useContext(Mr),i=f.useMemo(()=>{const a=Object.assign({},o);return r&&delete a.isFormItemInput,n&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[n,r,o]);return f.createElement(Mr.Provider,{value:i},t)},Mz=e=>({animationDuration:e,animationFillMode:"both"}),Nz=e=>({animationDuration:e,animationFillMode:"both"}),ov=function(e,t,n,r){const i=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` + ${i}${e}-enter, + ${i}${e}-appear + `]:Object.assign(Object.assign({},Mz(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},Nz(r)),{animationPlayState:"paused"}),[` + ${i}${e}-enter${e}-enter-active, + ${i}${e}-appear${e}-appear-active + `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Pz=new dt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Tz=new dt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Az=new dt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),kz=new dt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Fz=new dt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),zz=new dt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Lz=new dt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Dz=new dt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),jz={"move-up":{inKeyframes:Lz,outKeyframes:Dz},"move-down":{inKeyframes:Pz,outKeyframes:Tz},"move-left":{inKeyframes:Az,outKeyframes:kz},"move-right":{inKeyframes:Fz,outKeyframes:zz}},M1=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=jz[t];return[ov(r,o,i,e.motionDurationMid),{[` + ${r}-enter, + ${r}-appear + `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},qE=new dt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),YE=new dt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),QE=new dt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),ZE=new dt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Hz=new dt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Bz=new dt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Vz=new dt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Wz=new dt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Uz={"slide-up":{inKeyframes:qE,outKeyframes:YE},"slide-down":{inKeyframes:QE,outKeyframes:ZE},"slide-left":{inKeyframes:Hz,outKeyframes:Bz},"slide-right":{inKeyframes:Vz,outKeyframes:Wz}},N1=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Uz[t];return[ov(r,o,i,e.motionDurationMid),{[` + ${r}-enter, + ${r}-appear + `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},iv=new dt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Kz=new dt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),P1=new dt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),T1=new dt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Gz=new dt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Xz=new dt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),qz=new dt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Yz=new dt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Qz=new dt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Zz=new dt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Jz=new dt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),eL=new dt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),tL={zoom:{inKeyframes:iv,outKeyframes:Kz},"zoom-big":{inKeyframes:P1,outKeyframes:T1},"zoom-big-fast":{inKeyframes:P1,outKeyframes:T1},"zoom-left":{inKeyframes:qz,outKeyframes:Yz},"zoom-right":{inKeyframes:Qz,outKeyframes:Zz},"zoom-up":{inKeyframes:Gz,outKeyframes:Xz},"zoom-down":{inKeyframes:Jz,outKeyframes:eL}},nL=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=tL[t];return[ov(r,o,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` + ${r}-enter, + ${r}-appear + `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},rL=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`}}}),oL=rL;function iL(e){return t=>f.createElement(il,{theme:{token:{motion:!1,zIndexPopupBase:0}}},f.createElement(e,Object.assign({},t)))}const aL=(e,t,n,r)=>iL(i=>{const{prefixCls:a,style:l}=i,s=f.useRef(null),[u,c]=f.useState(0),[d,h]=f.useState(0),[p,w]=Vr(!1,{value:i.open}),{getPrefixCls:v}=f.useContext($t),b=v(t||"select",a);f.useEffect(()=>{if(w(!0),typeof ResizeObserver<"u"){const y=new ResizeObserver(C=>{const E=C[0].target;c(E.offsetHeight+8),h(E.offsetWidth)}),S=setInterval(()=>{var C;const E=n?`.${n(b)}`:`.${b}-dropdown`,x=(C=s.current)===null||C===void 0?void 0:C.querySelector(E);x&&(clearInterval(S),y.observe(x))},10);return()=>{clearInterval(S),y.disconnect()}}},[]);let m=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},l),{margin:0}),open:p,visible:p,getPopupContainer:()=>s.current});r&&(m=r(m));const g={paddingBottom:u,position:"relative",minWidth:d};return f.createElement("div",{ref:s,style:g},f.createElement(e,Object.assign({},m)))}),JE=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var Qf=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,i=t.onMouseDown,a=t.onClick,l=t.children,s;return typeof r=="function"?s=r(o):s=r,f.createElement("span",{className:n,onMouseDown:function(c){c.preventDefault(),i&&i(c)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},s!==void 0?s:f.createElement("span",{className:he(n.split(/\s+/).map(function(u){return"".concat(u,"-icon")}))},l))};function lL(e,t,n,r,o){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,a=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,s=j.useMemo(function(){if(Ke(r)==="object")return r.clearIcon;if(o)return o},[r,o]),u=j.useMemo(function(){return!!(!i&&r&&(n.length||a)&&!(l==="combobox"&&a===""))},[r,i,n.length,a,l]);return{allowClear:u,clearIcon:j.createElement(Qf,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:s},"×")}}var e2=f.createContext(null);function sL(){return f.useContext(e2)}function uL(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=f.useState(!1),n=Q(t,2),r=n[0],o=n[1],i=f.useRef(null),a=function(){window.clearTimeout(i.current)};f.useEffect(function(){return a},[]);var l=function(u,c){a(),i.current=window.setTimeout(function(){o(u),c&&c()},e)};return[r,l,a]}function t2(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=f.useRef(null),n=f.useRef(null);f.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function cL(e,t,n,r){var o=f.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},f.useEffect(function(){function i(a){var l;if(!((l=o.current)!==null&&l!==void 0&&l.customizedTrigger)){var s=a.target;s.shadowRoot&&a.composed&&(s=a.composedPath()[0]||s),o.current.open&&e().filter(function(u){return u}).every(function(u){return!u.contains(s)&&u!==s})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[])}var fL=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Zi=void 0;function dL(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,l=e.responsiveDisabled,s=e.registerSize,u=e.itemKey,c=e.className,d=e.style,h=e.children,p=e.display,w=e.order,v=e.component,b=v===void 0?"div":v,m=mt(e,fL),g=a&&!p;function y(R){s(u,R)}f.useEffect(function(){return function(){y(null)}},[]);var S=i&&o!==Zi?i(o):h,C;r||(C={opacity:g?0:1,height:g?0:Zi,overflowY:g?"hidden":Zi,order:a?w:Zi,pointerEvents:g?"none":Zi,position:g?"absolute":Zi});var E={};g&&(E["aria-hidden"]=!0);var x=f.createElement(b,De({className:he(!r&&n,c),style:G(G({},C),d)},E,m,{ref:t}),S);return a&&(x=f.createElement(ri,{onResize:function(N){var P=N.offsetWidth;y(P)},disabled:l},x)),x}var Ql=f.forwardRef(dL);Ql.displayName="Item";function hL(e){if(typeof MessageChannel>"u")Ot(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function mL(){var e=f.useRef(null),t=function(r){e.current||(e.current=[],hL(function(){Zo.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function _l(e,t){var n=f.useState(t),r=Q(n,2),o=r[0],i=r[1],a=jn(function(l){e(function(){i(l)})});return[o,a]}var Qc=j.createContext(null),pL=["component"],gL=["className"],vL=["className"],yL=function(t,n){var r=f.useContext(Qc);if(!r){var o=t.component,i=o===void 0?"div":o,a=mt(t,pL);return f.createElement(i,De({},a,{ref:n}))}var l=r.className,s=mt(r,gL),u=t.className,c=mt(t,vL);return f.createElement(Qc.Provider,{value:null},f.createElement(Ql,De({ref:n,className:he(l,u)},s,c)))},n2=f.forwardRef(yL);n2.displayName="RawItem";var wL=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],r2="responsive",o2="invalidate";function SL(e){return"+ ".concat(e.length," ...")}function bL(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,i=o===void 0?[]:o,a=e.renderItem,l=e.renderRawItem,s=e.itemKey,u=e.itemWidth,c=u===void 0?10:u,d=e.ssr,h=e.style,p=e.className,w=e.maxCount,v=e.renderRest,b=e.renderRawRest,m=e.suffix,g=e.component,y=g===void 0?"div":g,S=e.itemComponent,C=e.onVisibleChange,E=mt(e,wL),x=d==="full",R=mL(),N=_l(R,null),P=Q(N,2),F=P[0],L=P[1],A=F||0,_=_l(R,new Map),z=Q(_,2),I=z[0],O=z[1],$=_l(R,0),M=Q($,2),T=M[0],k=M[1],D=_l(R,0),B=Q(D,2),V=B[0],W=B[1],U=_l(R,0),Y=Q(U,2),X=Y[0],K=Y[1],q=f.useState(null),te=Q(q,2),ne=te[0],ee=te[1],Z=f.useState(null),ae=Q(Z,2),pe=ae[0],de=ae[1],oe=f.useMemo(function(){return pe===null&&x?Number.MAX_SAFE_INTEGER:pe||0},[pe,F]),J=f.useState(!1),re=Q(J,2),ue=re[0],ce=re[1],ge="".concat(r,"-item"),Pe=Math.max(T,V),Oe=w===r2,Ce=i.length&&Oe,tt=w===o2,Qe=Ce||typeof w=="number"&&i.length>w,ze=f.useMemo(function(){var ye=i;return Ce?F===null&&x?ye=i:ye=i.slice(0,Math.min(i.length,A/c)):typeof w=="number"&&(ye=i.slice(0,w)),ye},[i,c,F,w,Ce]),ve=f.useMemo(function(){return Ce?i.slice(oe+1):i.slice(ze.length)},[i,ze,Ce,oe]),fe=f.useCallback(function(ye,Me){var ie;return typeof s=="function"?s(ye):(ie=s&&(ye==null?void 0:ye[s]))!==null&&ie!==void 0?ie:Me},[s]),je=f.useCallback(a||function(ye){return ye},[a]);function Ze(ye,Me,ie){pe===ye&&(Me===void 0||Me===ne)||(de(ye),ie||(ce(yeA){Ze(xe-1,ye-Se-X+V);break}}m&&wt(0)+X>A&&ee(null)}},[A,I,V,X,fe,ze]);var Ge=ue&&!!ve.length,ot={};ne!==null&&Ce&&(ot={position:"absolute",left:ne,top:0});var Mt={prefixCls:ge,responsive:Ce,component:S,invalidate:tt},Ve=l?function(ye,Me){var ie=fe(ye,Me);return f.createElement(Qc.Provider,{key:ie,value:G(G({},Mt),{},{order:Me,item:ye,itemKey:ie,registerSize:nt,display:Me<=oe})},l(ye,Me))}:function(ye,Me){var ie=fe(ye,Me);return f.createElement(Ql,De({},Mt,{order:Me,key:ie,item:ye,renderItem:je,itemKey:ie,registerSize:nt,display:Me<=oe}))},gt,qe={order:Ge?oe:Number.MAX_SAFE_INTEGER,className:"".concat(ge,"-rest"),registerSize:We,display:Ge};if(b)b&&(gt=f.createElement(Qc.Provider,{value:G(G({},Mt),qe)},b(ve)));else{var $e=v||SL;gt=f.createElement(Ql,De({},Mt,qe),typeof $e=="function"?$e(ve):$e)}var Be=f.createElement(y,De({className:he(!tt&&r,p),style:h,ref:t},E),ze.map(Ve),Qe?gt:null,m&&f.createElement(Ql,De({},Mt,{responsive:Oe,responsiveDisabled:!Ce,order:oe,className:"".concat(ge,"-suffix"),registerSize:rt,display:!0,style:ot}),m));return Oe&&(Be=f.createElement(ri,{onResize:yt,disabled:!Ce},Be)),Be}var Us=f.forwardRef(bL);Us.displayName="Overflow";Us.Item=n2;Us.RESPONSIVE=r2;Us.INVALIDATE=o2;var xL=function(t,n){var r,o=t.prefixCls,i=t.id,a=t.inputElement,l=t.disabled,s=t.tabIndex,u=t.autoFocus,c=t.autoComplete,d=t.editable,h=t.activeDescendantId,p=t.value,w=t.maxLength,v=t.onKeyDown,b=t.onMouseDown,m=t.onChange,g=t.onPaste,y=t.onCompositionStart,S=t.onCompositionEnd,C=t.open,E=t.attrs,x=a||f.createElement("input",null),R=x,N=R.ref,P=R.props,F=P.onKeyDown,L=P.onChange,A=P.onMouseDown,_=P.onCompositionStart,z=P.onCompositionEnd,I=P.style;return"maxLength"in x.props,x=f.cloneElement(x,G(G(G({type:"search"},P),{},{id:i,ref:vo(n,N),disabled:l,tabIndex:s,autoComplete:c||"off",autoFocus:u,className:he("".concat(o,"-selection-search-input"),(r=x)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":C||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":C?h:void 0},E),{},{value:d?p:"",maxLength:w,readOnly:!d,unselectable:d?null:"on",style:G(G({},I),{},{opacity:d?null:0}),onKeyDown:function($){v($),F&&F($)},onMouseDown:function($){b($),A&&A($)},onChange:function($){m($),L&&L($)},onCompositionStart:function($){y($),_&&_($)},onCompositionEnd:function($){S($),z&&z($)},onPaste:g})),x},av=f.forwardRef(xL);av.displayName="Input";function i2(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var CL=typeof window<"u"&&window.document&&window.document.documentElement,EL=CL;function $L(e){return e!=null}function _L(e){return!e&&e!==0}function A1(e){return["string","number"].includes(Ke(e))}function a2(e){var t=void 0;return e&&(A1(e.title)?t=e.title.toString():A1(e.label)&&(t=e.label.toString())),t}function RL(e,t){EL?f.useLayoutEffect(e,t):f.useEffect(e,t)}function IL(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var k1=function(t){t.preventDefault(),t.stopPropagation()},OL=function(t){var n=t.id,r=t.prefixCls,o=t.values,i=t.open,a=t.searchValue,l=t.autoClearSearchValue,s=t.inputRef,u=t.placeholder,c=t.disabled,d=t.mode,h=t.showSearch,p=t.autoFocus,w=t.autoComplete,v=t.activeDescendantId,b=t.tabIndex,m=t.removeIcon,g=t.maxTagCount,y=t.maxTagTextLength,S=t.maxTagPlaceholder,C=S===void 0?function(ee){return"+ ".concat(ee.length," ...")}:S,E=t.tagRender,x=t.onToggleOpen,R=t.onRemove,N=t.onInputChange,P=t.onInputPaste,F=t.onInputKeyDown,L=t.onInputMouseDown,A=t.onInputCompositionStart,_=t.onInputCompositionEnd,z=f.useRef(null),I=f.useState(0),O=Q(I,2),$=O[0],M=O[1],T=f.useState(!1),k=Q(T,2),D=k[0],B=k[1],V="".concat(r,"-selection"),W=i||d==="multiple"&&l===!1||d==="tags"?a:"",U=d==="tags"||d==="multiple"&&l===!1||h&&(i||D);RL(function(){M(z.current.scrollWidth)},[W]);function Y(ee,Z,ae,pe,de){return f.createElement("span",{className:he("".concat(V,"-item"),H({},"".concat(V,"-item-disabled"),ae)),title:a2(ee)},f.createElement("span",{className:"".concat(V,"-item-content")},Z),pe&&f.createElement(Qf,{className:"".concat(V,"-item-remove"),onMouseDown:k1,onClick:de,customizeIcon:m},"×"))}function X(ee,Z,ae,pe,de){var oe=function(re){k1(re),x(!i)};return f.createElement("span",{onMouseDown:oe},E({label:Z,value:ee,disabled:ae,closable:pe,onClose:de}))}function K(ee){var Z=ee.disabled,ae=ee.label,pe=ee.value,de=!c&&!Z,oe=ae;if(typeof y=="number"&&(typeof ae=="string"||typeof ae=="number")){var J=String(oe);J.length>y&&(oe="".concat(J.slice(0,y),"..."))}var re=function(ce){ce&&ce.stopPropagation(),R(ee)};return typeof E=="function"?X(pe,oe,Z,de,re):Y(ee,oe,Z,de,re)}function q(ee){var Z=typeof C=="function"?C(ee):C;return Y({title:Z},Z,!1)}var te=f.createElement("div",{className:"".concat(V,"-search"),style:{width:$},onFocus:function(){B(!0)},onBlur:function(){B(!1)}},f.createElement(av,{ref:s,open:i,prefixCls:r,id:n,inputElement:null,disabled:c,autoFocus:p,autoComplete:w,editable:U,activeDescendantId:v,value:W,onKeyDown:F,onMouseDown:L,onChange:N,onPaste:P,onCompositionStart:A,onCompositionEnd:_,tabIndex:b,attrs:Xc(t,!0)}),f.createElement("span",{ref:z,className:"".concat(V,"-search-mirror"),"aria-hidden":!0},W," ")),ne=f.createElement(Us,{prefixCls:"".concat(V,"-overflow"),data:o,renderItem:K,renderRest:q,suffix:te,itemKey:IL,maxCount:g});return f.createElement(f.Fragment,null,ne,!o.length&&!W&&f.createElement("span",{className:"".concat(V,"-placeholder")},u))},ML=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,i=t.inputRef,a=t.disabled,l=t.autoFocus,s=t.autoComplete,u=t.activeDescendantId,c=t.mode,d=t.open,h=t.values,p=t.placeholder,w=t.tabIndex,v=t.showSearch,b=t.searchValue,m=t.activeValue,g=t.maxLength,y=t.onInputKeyDown,S=t.onInputMouseDown,C=t.onInputChange,E=t.onInputPaste,x=t.onInputCompositionStart,R=t.onInputCompositionEnd,N=t.title,P=f.useState(!1),F=Q(P,2),L=F[0],A=F[1],_=c==="combobox",z=_||v,I=h[0],O=b||"";_&&m&&!L&&(O=m),f.useEffect(function(){_&&A(!1)},[_,m]);var $=c!=="combobox"&&!d&&!v?!1:!!O,M=N===void 0?a2(I):N,T=function(){if(I)return null;var D=$?{visibility:"hidden"}:void 0;return f.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:D},p)};return f.createElement(f.Fragment,null,f.createElement("span",{className:"".concat(r,"-selection-search")},f.createElement(av,{ref:i,prefixCls:r,id:o,open:d,inputElement:n,disabled:a,autoFocus:l,autoComplete:s,editable:z,activeDescendantId:u,value:O,onKeyDown:y,onMouseDown:S,onChange:function(D){A(!0),C(D)},onPaste:E,onCompositionStart:x,onCompositionEnd:R,tabIndex:w,attrs:Xc(t,!0),maxLength:_?g:void 0})),!_&&I?f.createElement("span",{className:"".concat(r,"-selection-item"),title:M,style:$?{visibility:"hidden"}:void 0},I.label):null,T())};function NL(e){return![se.ESC,se.SHIFT,se.BACKSPACE,se.TAB,se.WIN_KEY,se.ALT,se.META,se.WIN_KEY_RIGHT,se.CTRL,se.SEMICOLON,se.EQUALS,se.CAPS_LOCK,se.CONTEXT_MENU,se.F1,se.F2,se.F3,se.F4,se.F5,se.F6,se.F7,se.F8,se.F9,se.F10,se.F11,se.F12].includes(e)}var PL=function(t,n){var r=f.useRef(null),o=f.useRef(!1),i=t.prefixCls,a=t.open,l=t.mode,s=t.showSearch,u=t.tokenWithEnter,c=t.autoClearSearchValue,d=t.onSearch,h=t.onSearchSubmit,p=t.onToggleOpen,w=t.onInputKeyDown,v=t.domRef;f.useImperativeHandle(n,function(){return{focus:function(){r.current.focus()},blur:function(){r.current.blur()}}});var b=t2(0),m=Q(b,2),g=m[0],y=m[1],S=function(O){var $=O.which;($===se.UP||$===se.DOWN)&&O.preventDefault(),w&&w(O),$===se.ENTER&&l==="tags"&&!o.current&&!a&&(h==null||h(O.target.value)),NL($)&&p(!0)},C=function(){y(!0)},E=f.useRef(null),x=function(O){d(O,!0,o.current)!==!1&&p(!0)},R=function(){o.current=!0},N=function(O){o.current=!1,l!=="combobox"&&x(O.target.value)},P=function(O){var $=O.target.value;if(u&&E.current&&/[\r\n]/.test(E.current)){var M=E.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");$=$.replace(M,E.current)}E.current=null,x($)},F=function(O){var $=O.clipboardData,M=$.getData("text");E.current=M},L=function(O){var $=O.target;if($!==r.current){var M=document.body.style.msTouchAction!==void 0;M?setTimeout(function(){r.current.focus()}):r.current.focus()}},A=function(O){var $=g();O.target!==r.current&&!$&&l!=="combobox"&&O.preventDefault(),(l!=="combobox"&&(!s||!$)||!a)&&(a&&c!==!1&&d("",!0,!1),p())},_={inputRef:r,onInputKeyDown:S,onInputMouseDown:C,onInputChange:P,onInputPaste:F,onInputCompositionStart:R,onInputCompositionEnd:N},z=l==="multiple"||l==="tags"?f.createElement(OL,De({},t,_)):f.createElement(ML,De({},t,_));return f.createElement("div",{ref:v,className:"".concat(i,"-selector"),onClick:L,onMouseDown:A},z)},l2=f.forwardRef(PL);l2.displayName="Selector";function TL(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,l=i.content,s=o.x,u=s===void 0?0:s,c=o.y,d=c===void 0?0:c,h=f.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(n.autoArrow!==!1){var w=n.points[0],v=n.points[1],b=w[0],m=w[1],g=v[0],y=v[1];b===g||!["t","b"].includes(b)?p.top=d:b==="t"?p.top=0:p.bottom=0,m===y||!["l","r"].includes(m)?p.left=u:m==="l"?p.left=0:p.right=0}return f.createElement("div",{ref:h,className:he("".concat(t,"-arrow"),a),style:p},l)}function AL(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?f.createElement(ol,De({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var l=a.className;return f.createElement("div",{style:{zIndex:r},className:he("".concat(t,"-mask"),l)})}):null}var kL=f.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),FL=f.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,l=e.onVisibleChanged,s=e.open,u=e.keepDom,c=e.fresh,d=e.onClick,h=e.mask,p=e.arrow,w=e.arrowPos,v=e.align,b=e.motion,m=e.maskMotion,g=e.forceRender,y=e.getPopupContainer,S=e.autoDestroy,C=e.portal,E=e.zIndex,x=e.onMouseEnter,R=e.onMouseLeave,N=e.onPointerEnter,P=e.ready,F=e.offsetX,L=e.offsetY,A=e.offsetR,_=e.offsetB,z=e.onAlign,I=e.onPrepare,O=e.stretch,$=e.targetWidth,M=e.targetHeight,T=typeof n=="function"?n():n,k=s||u,D=(y==null?void 0:y.length)>0,B=f.useState(!y||!D),V=Q(B,2),W=V[0],U=V[1];if(xt(function(){!W&&D&&a&&U(!0)},[W,D,a]),!W)return null;var Y="auto",X={left:"-1000vw",top:"-1000vh",right:Y,bottom:Y};if(P||!s){var K,q=v.points,te=v.dynamicInset||((K=v._experimental)===null||K===void 0?void 0:K.dynamicInset),ne=te&&q[0][1]==="r",ee=te&&q[0][0]==="b";ne?(X.right=A,X.left=Y):(X.left=F,X.right=Y),ee?(X.bottom=_,X.top=Y):(X.top=L,X.bottom=Y)}var Z={};return O&&(O.includes("height")&&M?Z.height=M:O.includes("minHeight")&&M&&(Z.minHeight=M),O.includes("width")&&$?Z.width=$:O.includes("minWidth")&&$&&(Z.minWidth=$)),s||(Z.pointerEvents="none"),f.createElement(C,{open:g||k,getContainer:y&&function(){return y(a)},autoDestroy:S},f.createElement(AL,{prefixCls:o,open:s,zIndex:E,mask:h,motion:m}),f.createElement(ri,{onResize:z,disabled:!s},function(ae){return f.createElement(ol,De({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:g,leavedClassName:"".concat(o,"-hidden")},b,{onAppearPrepare:I,onEnterPrepare:I,visible:s,onVisibleChanged:function(de){var oe;b==null||(oe=b.onVisibleChanged)===null||oe===void 0||oe.call(b,de),l(de)}}),function(pe,de){var oe=pe.className,J=pe.style,re=he(o,oe,r);return f.createElement("div",{ref:vo(ae,t,de),className:re,style:G(G(G(G({"--arrow-x":"".concat(w.x||0,"px"),"--arrow-y":"".concat(w.y||0,"px")},X),Z),J),{},{boxSizing:"border-box",zIndex:E},i),onMouseEnter:x,onMouseLeave:R,onPointerEnter:N,onClick:d},p&&f.createElement(TL,{prefixCls:o,arrow:p,arrowPos:w,align:v}),f.createElement(kL,{cache:!s&&!c},T))})}))}),zL=f.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=el(n),i=f.useCallback(function(l){kg(t,r?r(l):l)},[r]),a=Lf(i,n.ref);return o?f.cloneElement(n,{ref:a}):n}),F1=f.createContext(null);function z1(e){return e?Array.isArray(e)?e:[e]:[]}function LL(e,t,n,r){return f.useMemo(function(){var o=z1(n??t),i=z1(r??t),a=new Set(o),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]},[e,t,n,r])}function DL(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function jL(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Rl(e){return Ns(parseFloat(e),0)}function D1(e,t){var n=G({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=Ks(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,l=o.borderTopWidth,s=o.borderBottomWidth,u=o.borderLeftWidth,c=o.borderRightWidth,d=r.getBoundingClientRect(),h=r.offsetHeight,p=r.clientHeight,w=r.offsetWidth,v=r.clientWidth,b=Rl(l),m=Rl(s),g=Rl(u),y=Rl(c),S=Ns(Math.round(d.width/w*1e3)/1e3),C=Ns(Math.round(d.height/h*1e3)/1e3),E=(w-v-g-y)*S,x=(h-p-b-m)*C,R=b*C,N=m*C,P=g*S,F=y*S,L=0,A=0;if(i==="clip"){var _=Rl(a);L=_*S,A=_*C}var z=d.x+P-L,I=d.y+R-A,O=z+d.width+2*L-P-F-E,$=I+d.height+2*A-R-N-x;n.left=Math.max(n.left,z),n.top=Math.max(n.top,I),n.right=Math.min(n.right,O),n.bottom=Math.min(n.bottom,$)}}),n}function j1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function H1(e,t){var n=t||[],r=Q(n,2),o=r[0],i=r[1];return[j1(e.width,o),j1(e.height,i)]}function B1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Ji(e,t){var n=t[0],r=t[1],o,i;return n==="t"?i=e.y:n==="b"?i=e.y+e.height:i=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:i}}function Io(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,o){return o===t?n[r]||"c":r}).join("")}function HL(e,t,n,r,o,i,a){var l=f.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),s=Q(l,2),u=s[0],c=s[1],d=f.useRef(0),h=f.useMemo(function(){return t?yp(t):[]},[t]),p=f.useRef({}),w=function(){p.current={}};e||w();var v=jn(function(){if(t&&n&&e){let tn=function(qs,qr){var oi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:re,Vi=T.x+qs,cl=T.y+qr,Jf=Vi+K,ed=cl+X,td=Math.max(Vi,oi.left),nd=Math.max(cl,oi.top),_e=Math.min(Jf,oi.right),Le=Math.min(ed,oi.bottom);return Math.max(0,(_e-td)*(Le-nd))},ul=function(){lt=T.y+$e,Dt=lt+X,Wt=T.x+qe,vn=Wt+K};var pv=tn,gv=ul,g,y,S=t,C=S.ownerDocument,E=Ks(S),x=E.getComputedStyle(S),R=x.width,N=x.height,P=x.position,F=S.style.left,L=S.style.top,A=S.style.right,_=S.style.bottom,z=S.style.overflow,I=G(G({},o[r]),i),O=C.createElement("div");(g=S.parentElement)===null||g===void 0||g.appendChild(O),O.style.left="".concat(S.offsetLeft,"px"),O.style.top="".concat(S.offsetTop,"px"),O.style.position=P,O.style.height="".concat(S.offsetHeight,"px"),O.style.width="".concat(S.offsetWidth,"px"),S.style.left="0",S.style.top="0",S.style.right="auto",S.style.bottom="auto",S.style.overflow="hidden";var $;if(Array.isArray(n))$={x:n[0],y:n[1],width:0,height:0};else{var M=n.getBoundingClientRect();$={x:M.x,y:M.y,width:M.width,height:M.height}}var T=S.getBoundingClientRect(),k=C.documentElement,D=k.clientWidth,B=k.clientHeight,V=k.scrollWidth,W=k.scrollHeight,U=k.scrollTop,Y=k.scrollLeft,X=T.height,K=T.width,q=$.height,te=$.width,ne={left:0,top:0,right:D,bottom:B},ee={left:-Y,top:-U,right:V-Y,bottom:W-U},Z=I.htmlRegion,ae="visible",pe="visibleFirst";Z!=="scroll"&&Z!==pe&&(Z=ae);var de=Z===pe,oe=D1(ee,h),J=D1(ne,h),re=Z===ae?J:oe,ue=de?J:re;S.style.left="auto",S.style.top="auto",S.style.right="0",S.style.bottom="0";var ce=S.getBoundingClientRect();S.style.left=F,S.style.top=L,S.style.right=A,S.style.bottom=_,S.style.overflow=z,(y=S.parentElement)===null||y===void 0||y.removeChild(O);var ge=Ns(Math.round(K/parseFloat(R)*1e3)/1e3),Pe=Ns(Math.round(X/parseFloat(N)*1e3)/1e3);if(ge===0||Pe===0||jc(n)&&!qg(n))return;var Oe=I.offset,Ce=I.targetOffset,tt=H1(T,Oe),Qe=Q(tt,2),ze=Qe[0],ve=Qe[1],fe=H1($,Ce),je=Q(fe,2),Ze=je[0],yt=je[1];$.x-=Ze,$.y-=yt;var nt=I.points||[],We=Q(nt,2),rt=We[0],wt=We[1],Ge=B1(wt),ot=B1(rt),Mt=Ji($,Ge),Ve=Ji(T,ot),gt=G({},I),qe=Mt.x-Ve.x+ze,$e=Mt.y-Ve.y+ve,Be=tn(qe,$e),ye=tn(qe,$e,J),Me=Ji($,["t","l"]),ie=Ji(T,["t","l"]),xe=Ji($,["b","r"]),Se=Ji(T,["b","r"]),we=I.overflow||{},Ue=we.adjustX,Ye=we.adjustY,Nt=we.shiftX,_t=we.shiftY,ht=function(qr){return typeof qr=="boolean"?qr:qr>=0},lt,Dt,Wt,vn;ul();var Ne=ht(Ye),Re=ot[0]===Ge[0];if(Ne&&ot[0]==="t"&&(Dt>ue.bottom||p.current.bt)){var Te=$e;Re?Te-=X-q:Te=Me.y-Se.y-ve;var st=tn(qe,Te),jt=tn(qe,Te,J);st>Be||st===Be&&(!de||jt>=ye)?(p.current.bt=!0,$e=Te,ve=-ve,gt.points=[Io(ot,0),Io(Ge,0)]):p.current.bt=!1}if(Ne&&ot[0]==="b"&&(ltBe||$n===Be&&(!de||Ur>=ye)?(p.current.tb=!0,$e=Pt,ve=-ve,gt.points=[Io(ot,0),Io(Ge,0)]):p.current.tb=!1}var Tr=ht(Ue),fr=ot[1]===Ge[1];if(Tr&&ot[1]==="l"&&(vn>ue.right||p.current.rl)){var ln=qe;fr?ln-=K-te:ln=Me.x-Se.x-ze;var bo=tn(ln,$e),xo=tn(ln,$e,J);bo>Be||bo===Be&&(!de||xo>=ye)?(p.current.rl=!0,qe=ln,ze=-ze,gt.points=[Io(ot,1),Io(Ge,1)]):p.current.rl=!1}if(Tr&&ot[1]==="r"&&(WtBe||Ar===Be&&(!de||Kr>=ye)?(p.current.lr=!0,qe=Xn,ze=-ze,gt.points=[Io(ot,1),Io(Ge,1)]):p.current.lr=!1}ul();var dr=Nt===!0?0:Nt;typeof dr=="number"&&(WtJ.right&&(qe-=vn-J.right-ze,$.x>J.right-dr&&(qe+=$.x-J.right+dr)));var Gr=_t===!0?0:_t;typeof Gr=="number"&&(ltJ.bottom&&($e-=Dt-J.bottom-ve,$.y>J.bottom-Gr&&($e+=$.y-J.bottom+Gr)));var Co=T.x+qe,Eo=Co+K,qn=T.y+$e,$o=qn+X,He=$.x,ke=He+te,Ht=$.y,Jt=Ht+q,Rt=Math.max(Co,He),en=Math.min(Eo,ke),yn=(Rt+en)/2,Xr=yn-Co,Yn=Math.max(qn,Ht),hr=Math.min($o,Jt),Qn=(Yn+hr)/2,Bi=Qn-qn;a==null||a(t,gt);var Xs=ce.right-T.x-(qe+T.width),Zf=ce.bottom-T.y-($e+T.height);c({ready:!0,offsetX:qe/ge,offsetY:$e/Pe,offsetR:Xs/ge,offsetB:Zf/Pe,arrowX:Xr/ge,arrowY:Bi/Pe,scaleX:ge,scaleY:Pe,align:gt})}}),b=function(){d.current+=1;var y=d.current;Promise.resolve().then(function(){d.current===y&&v()})},m=function(){c(function(y){return G(G({},y),{},{ready:!1})})};return xt(m,[r]),xt(function(){e||m()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,b]}function BL(e,t,n,r,o){xt(function(){if(e&&t&&n){let h=function(){r(),o()};var d=h,i=t,a=n,l=yp(i),s=yp(a),u=Ks(a),c=new Set([u].concat(be(l),be(s)));return c.forEach(function(p){p.addEventListener("scroll",h,{passive:!0})}),u.addEventListener("resize",h,{passive:!0}),r(),function(){c.forEach(function(p){p.removeEventListener("scroll",h),u.removeEventListener("resize",h)})}}},[e,t,n])}function VL(e,t,n,r,o,i,a,l){var s=f.useRef(e),u=f.useRef(!1);s.current!==e&&(u.current=!0,s.current=e),f.useEffect(function(){var c=Ot(function(){u.current=!1});return function(){Ot.cancel(c)}},[e]),f.useEffect(function(){if(t&&r&&(!o||i)){var c=function(){var E=!1,x=function(P){var F=P.target;E=a(F)},R=function(P){var F=P.target;!u.current&&s.current&&!E&&!a(F)&&l(!1)};return[x,R]},d=c(),h=Q(d,2),p=h[0],w=h[1],v=c(),b=Q(v,2),m=b[0],g=b[1],y=Ks(r);y.addEventListener("mousedown",p,!0),y.addEventListener("click",w,!0),y.addEventListener("contextmenu",w,!0);var S=Gc(n);return S&&(S.addEventListener("mousedown",m,!0),S.addEventListener("click",g,!0),S.addEventListener("contextmenu",g,!0)),function(){y.removeEventListener("mousedown",p,!0),y.removeEventListener("click",w,!0),y.removeEventListener("contextmenu",w,!0),S&&(S.removeEventListener("mousedown",m,!0),S.removeEventListener("click",g,!0),S.removeEventListener("contextmenu",g,!0))}}},[t,n,r,o,i])}var WL=["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 UL(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:DE,t=f.forwardRef(function(n,r){var o=n.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=n.children,l=n.action,s=l===void 0?"hover":l,u=n.showAction,c=n.hideAction,d=n.popupVisible,h=n.defaultPopupVisible,p=n.onPopupVisibleChange,w=n.afterPopupVisibleChange,v=n.mouseEnterDelay,b=n.mouseLeaveDelay,m=b===void 0?.1:b,g=n.focusDelay,y=n.blurDelay,S=n.mask,C=n.maskClosable,E=C===void 0?!0:C,x=n.getPopupContainer,R=n.forceRender,N=n.autoDestroy,P=n.destroyPopupOnHide,F=n.popup,L=n.popupClassName,A=n.popupStyle,_=n.popupPlacement,z=n.builtinPlacements,I=z===void 0?{}:z,O=n.popupAlign,$=n.zIndex,M=n.stretch,T=n.getPopupClassNameFromAlign,k=n.fresh,D=n.alignPoint,B=n.onPopupClick,V=n.onPopupAlign,W=n.arrow,U=n.popupMotion,Y=n.maskMotion,X=n.popupTransitionName,K=n.popupAnimation,q=n.maskTransitionName,te=n.maskAnimation,ne=n.className,ee=n.getTriggerDOMNode,Z=mt(n,WL),ae=N||P||!1,pe=f.useState(!1),de=Q(pe,2),oe=de[0],J=de[1];xt(function(){J(JE())},[]);var re=f.useRef({}),ue=f.useContext(F1),ce=f.useMemo(function(){return{registerSubPopup:function(Le,Ft){re.current[Le]=Ft,ue==null||ue.registerSubPopup(Le,Ft)}}},[ue]),ge=zF(),Pe=f.useState(null),Oe=Q(Pe,2),Ce=Oe[0],tt=Oe[1],Qe=jn(function(_e){jc(_e)&&Ce!==_e&&tt(_e),ue==null||ue.registerSubPopup(ge,_e)}),ze=f.useState(null),ve=Q(ze,2),fe=ve[0],je=ve[1],Ze=f.useRef(null),yt=jn(function(_e){jc(_e)&&fe!==_e&&(je(_e),Ze.current=_e)}),nt=f.Children.only(a),We=(nt==null?void 0:nt.props)||{},rt={},wt=jn(function(_e){var Le,Ft,Gt=fe;return(Gt==null?void 0:Gt.contains(_e))||((Le=Gc(Gt))===null||Le===void 0?void 0:Le.host)===_e||_e===Gt||(Ce==null?void 0:Ce.contains(_e))||((Ft=Gc(Ce))===null||Ft===void 0?void 0:Ft.host)===_e||_e===Ce||Object.values(re.current).some(function(zt){return(zt==null?void 0:zt.contains(_e))||_e===zt})}),Ge=L1(i,U,K,X),ot=L1(i,Y,te,q),Mt=f.useState(h||!1),Ve=Q(Mt,2),gt=Ve[0],qe=Ve[1],$e=d??gt,Be=jn(function(_e){d===void 0&&qe(_e)});xt(function(){qe(d||!1)},[d]);var ye=f.useRef($e);ye.current=$e;var Me=f.useRef([]);Me.current=[];var ie=jn(function(_e){var Le;Be(_e),((Le=Me.current[Me.current.length-1])!==null&&Le!==void 0?Le:$e)!==_e&&(Me.current.push(_e),p==null||p(_e))}),xe=f.useRef(),Se=function(){clearTimeout(xe.current)},we=function(Le){var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Se(),Ft===0?ie(Le):xe.current=setTimeout(function(){ie(Le)},Ft*1e3)};f.useEffect(function(){return Se},[]);var Ue=f.useState(!1),Ye=Q(Ue,2),Nt=Ye[0],_t=Ye[1];xt(function(_e){(!_e||$e)&&_t(!0)},[$e]);var ht=f.useState(null),lt=Q(ht,2),Dt=lt[0],Wt=lt[1],vn=f.useState([0,0]),Ne=Q(vn,2),Re=Ne[0],Te=Ne[1],st=function(Le){Te([Le.clientX,Le.clientY])},jt=HL($e,Ce,D?Re:fe,_,I,O,V),Pt=Q(jt,11),$n=Pt[0],Ur=Pt[1],Tr=Pt[2],fr=Pt[3],ln=Pt[4],bo=Pt[5],xo=Pt[6],Xn=Pt[7],Ar=Pt[8],Kr=Pt[9],dr=Pt[10],Gr=LL(oe,s,u,c),Co=Q(Gr,2),Eo=Co[0],qn=Co[1],$o=Eo.has("click"),He=qn.has("click")||qn.has("contextMenu"),ke=jn(function(){Nt||dr()}),Ht=function(){ye.current&&D&&He&&we(!1)};BL($e,fe,Ce,ke,Ht),xt(function(){ke()},[Re,_]),xt(function(){$e&&!(I!=null&&I[_])&&ke()},[JSON.stringify(O)]);var Jt=f.useMemo(function(){var _e=jL(I,i,Kr,D);return he(_e,T==null?void 0:T(Kr))},[Kr,T,I,i,D]);f.useImperativeHandle(r,function(){return{nativeElement:Ze.current,forceAlign:ke}});var Rt=f.useState(0),en=Q(Rt,2),yn=en[0],Xr=en[1],Yn=f.useState(0),hr=Q(Yn,2),Qn=hr[0],Bi=hr[1],Xs=function(){if(M&&fe){var Le=fe.getBoundingClientRect();Xr(Le.width),Bi(Le.height)}},Zf=function(){Xs(),ke()},pv=function(Le){_t(!1),dr(),w==null||w(Le)},gv=function(){return new Promise(function(Le){Xs(),Wt(function(){return Le})})};xt(function(){Dt&&(dr(),Dt(),Wt(null))},[Dt]);function tn(_e,Le,Ft,Gt){rt[_e]=function(zt){var Ys;Gt==null||Gt(zt),we(Le,Ft);for(var rd=arguments.length,vv=new Array(rd>1?rd-1:0),Qs=1;Qs1?Ft-1:0),zt=1;zt1?Ft-1:0),zt=1;zt1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=c2(n,!1),a=i.label,l=i.value,s=i.options,u=i.groupLabel;function c(d,h){d.forEach(function(p){if(h||!(s in p)){var w=p[l];o.push({key:V1(p,o.length),groupOption:h,data:p,label:p[a],value:w})}else{var v=p[u];v===void 0&&r&&(v=p.label),o.push({key:V1(p,o.length),group:!0,data:p,label:v}),c(p[s],!0)}})}return c(e,!1),o}function wp(e){var t=G({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Pn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function YL(e,t){if(!t||!t.length)return null;var n=!1;function r(i,a){var l=FC(a),s=l[0],u=l.slice(1);if(!s)return[i];var c=i.split(s);return n=n||c.length>1,c.reduce(function(d,h){return[].concat(be(d),be(r(h,u)))},[]).filter(function(d){return d})}var o=r(e,t);return n?o:null}var QL=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],ZL=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Sp(e){return e==="tags"||e==="multiple"}var JL=f.forwardRef(function(e,t){var n,r,o=e.id,i=e.prefixCls,a=e.className,l=e.showSearch,s=e.tagRender,u=e.direction,c=e.omitDomProps,d=e.displayValues,h=e.onDisplayValuesChange,p=e.emptyOptions,w=e.notFoundContent,v=w===void 0?"Not Found":w,b=e.onClear,m=e.mode,g=e.disabled,y=e.loading,S=e.getInputElement,C=e.getRawInputElement,E=e.open,x=e.defaultOpen,R=e.onDropdownVisibleChange,N=e.activeValue,P=e.onActiveValueChange,F=e.activeDescendantId,L=e.searchValue,A=e.autoClearSearchValue,_=e.onSearch,z=e.onSearchSplit,I=e.tokenSeparators,O=e.allowClear,$=e.suffixIcon,M=e.clearIcon,T=e.OptionList,k=e.animation,D=e.transitionName,B=e.dropdownStyle,V=e.dropdownClassName,W=e.dropdownMatchSelectWidth,U=e.dropdownRender,Y=e.dropdownAlign,X=e.placement,K=e.builtinPlacements,q=e.getPopupContainer,te=e.showAction,ne=te===void 0?[]:te,ee=e.onFocus,Z=e.onBlur,ae=e.onKeyUp,pe=e.onKeyDown,de=e.onMouseDown,oe=mt(e,QL),J=Sp(m),re=(l!==void 0?l:J)||m==="combobox",ue=G({},oe);ZL.forEach(function(He){delete ue[He]}),c==null||c.forEach(function(He){delete ue[He]});var ce=f.useState(!1),ge=Q(ce,2),Pe=ge[0],Oe=ge[1];f.useEffect(function(){Oe(JE())},[]);var Ce=f.useRef(null),tt=f.useRef(null),Qe=f.useRef(null),ze=f.useRef(null),ve=f.useRef(null),fe=f.useRef(!1),je=uL(),Ze=Q(je,3),yt=Ze[0],nt=Ze[1],We=Ze[2];f.useImperativeHandle(t,function(){var He,ke;return{focus:(He=ze.current)===null||He===void 0?void 0:He.focus,blur:(ke=ze.current)===null||ke===void 0?void 0:ke.blur,scrollTo:function(Jt){var Rt;return(Rt=ve.current)===null||Rt===void 0?void 0:Rt.scrollTo(Jt)}}});var rt=f.useMemo(function(){var He;if(m!=="combobox")return L;var ke=(He=d[0])===null||He===void 0?void 0:He.value;return typeof ke=="string"||typeof ke=="number"?String(ke):""},[L,m,d]),wt=m==="combobox"&&typeof S=="function"&&S()||null,Ge=typeof C=="function"&&C(),ot=Lf(tt,Ge==null||(n=Ge.props)===null||n===void 0?void 0:n.ref),Mt=f.useState(!1),Ve=Q(Mt,2),gt=Ve[0],qe=Ve[1];xt(function(){qe(!0)},[]);var $e=Vr(!1,{defaultValue:x,value:E}),Be=Q($e,2),ye=Be[0],Me=Be[1],ie=gt?ye:!1,xe=!v&&p;(g||xe&&ie&&m==="combobox")&&(ie=!1);var Se=xe?!1:ie,we=f.useCallback(function(He){var ke=He!==void 0?He:!ie;g||(Me(ke),ie!==ke&&(R==null||R(ke)))},[g,ie,Me,R]),Ue=f.useMemo(function(){return(I||[]).some(function(He){return[` +`,`\r +`].includes(He)})},[I]),Ye=function(ke,Ht,Jt){var Rt=!0,en=ke;P==null||P(null);var yn=Jt?null:YL(ke,I);return m!=="combobox"&&yn&&(en="",z==null||z(yn),we(!1),Rt=!1),_&&rt!==en&&_(en,{source:Ht?"typing":"effect"}),Rt},Nt=function(ke){!ke||!ke.trim()||_(ke,{source:"submit"})};f.useEffect(function(){!ie&&!J&&m!=="combobox"&&Ye("",!1,!1)},[ie]),f.useEffect(function(){ye&&g&&Me(!1),g&&!fe.current&&nt(!1)},[g]);var _t=t2(),ht=Q(_t,2),lt=ht[0],Dt=ht[1],Wt=function(ke){var Ht=lt(),Jt=ke.which;if(Jt===se.ENTER&&(m!=="combobox"&&ke.preventDefault(),ie||we(!0)),Dt(!!rt),Jt===se.BACKSPACE&&!Ht&&J&&!rt&&d.length){for(var Rt=be(d),en=null,yn=Rt.length-1;yn>=0;yn-=1){var Xr=Rt[yn];if(!Xr.disabled){Rt.splice(yn,1),en=Xr;break}}en&&h(Rt,{type:"remove",values:[en]})}for(var Yn=arguments.length,hr=new Array(Yn>1?Yn-1:0),Qn=1;Qn1?Ht-1:0),Rt=1;Rt1?yn-1:0),Yn=1;Yn0,B=f.useMemo(function(){if(i===0||T===0)return 0;var ne=i/T;return ne*k},[i,T,k]),V=function(ee){ee.stopPropagation(),ee.preventDefault()},W=f.useRef({top:B,dragging:m,pageY:C,startTop:N});W.current={top:B,dragging:m,pageY:C,startTop:N};var U=function(ee){g(!0),E(W1(ee,c)),P(W.current.top),l(),ee.stopPropagation(),ee.preventDefault()};f.useEffect(function(){var ne=function(pe){pe.preventDefault()},ee=L.current,Z=A.current;return ee.addEventListener("touchstart",ne),Z.addEventListener("touchstart",U),function(){ee.removeEventListener("touchstart",ne),Z.removeEventListener("touchstart",U)}},[]);var Y=f.useRef();Y.current=T;var X=f.useRef();X.current=k,f.useEffect(function(){if(m){var ne,ee=function(pe){var de=W.current,oe=de.dragging,J=de.pageY,re=de.startTop;if(Ot.cancel(ne),oe){var ue=W1(pe,c)-J,ce=re;!F&&c?ce-=ue:ce+=ue;var ge=Y.current,Pe=X.current,Oe=Pe?ce/Pe:0,Ce=Math.ceil(Oe*ge);Ce=Math.max(Ce,0),Ce=Math.min(Ce,ge),ne=Ot(function(){u(Ce,c)})}},Z=function(){g(!1),s()};return window.addEventListener("mousemove",ee),window.addEventListener("touchmove",ee),window.addEventListener("mouseup",Z),window.addEventListener("touchend",Z),function(){window.removeEventListener("mousemove",ee),window.removeEventListener("touchmove",ee),window.removeEventListener("mouseup",Z),window.removeEventListener("touchend",Z),Ot.cancel(ne)}}},[m]),f.useEffect(function(){M()},[i]),f.useImperativeHandle(t,function(){return{delayHidden:M}});var K="".concat(r,"-scrollbar"),q={position:"absolute",visibility:I&&D?null:"hidden"},te={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return c?(q.height=8,q.left=0,q.right=0,q.bottom=0,te.height="100%",te.width=d,F?te.left=B:te.right=B):(q.width=8,q.top=0,q.bottom=0,F?q.right=0:q.left=0,te.width="100%",te.height=d,te.top=B),f.createElement("div",{ref:L,className:he(K,(n={},H(n,"".concat(K,"-horizontal"),c),H(n,"".concat(K,"-vertical"),!c),H(n,"".concat(K,"-visible"),I),n)),style:G(G({},q),p),onMouseDown:V,onMouseMove:M},f.createElement("div",{ref:A,className:he("".concat(K,"-thumb"),H({},"".concat(K,"-thumb-moving"),m)),style:G(G({},te),w),onMouseDown:U}))});function e6(e){var t=e.children,n=e.setRef,r=f.useCallback(function(o){n(o)},[]);return f.cloneElement(t,{ref:r})}function t6(e,t,n,r,o,i,a){var l=a.getKey;return e.slice(t,n+1).map(function(s,u){var c=t+u,d=i(s,c,{style:{width:r}}),h=l(s);return f.createElement(e6,{key:h,setRef:function(w){return o(s,w)}},d)})}var n6=function(){function e(){An(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return kn(e,[{key:"set",value:function(n,r){this.maps[n]=r,this.id+=1}},{key:"get",value:function(n){return this.maps[n]}}]),e}();function r6(e,t,n){var r=f.useState(0),o=Q(r,2),i=o[0],a=o[1],l=f.useRef(new Map),s=f.useRef(new n6),u=f.useRef();function c(){Ot.cancel(u.current)}function d(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;c();var w=function(){l.current.forEach(function(b,m){if(b&&b.offsetParent){var g=Kl(b),y=g.offsetHeight;s.current.get(m)!==y&&s.current.set(m,g.offsetHeight)}}),a(function(b){return b+1})};p?w():u.current=Ot(w)}function h(p,w){var v=e(p),b=l.current.get(v);w?(l.current.set(v,w),d()):l.current.delete(v),!b!=!w&&(w?t==null||t(p):n==null||n(p))}return f.useEffect(function(){return c},[]),[h,d,s.current,i]}var o6=10;function i6(e,t,n,r,o,i,a,l){var s=f.useRef(),u=f.useState(null),c=Q(u,2),d=c[0],h=c[1];return xt(function(){if(d&&d.times=0;_-=1){var z=o(t[_]),I=n.get(z);if(I===void 0){g=!0;break}if(A-=I,A<=0)break}switch(C){case"top":S=x-b;break;case"bottom":S=R-m+b;break;default:{var O=e.current.scrollTop,$=O+m;x$&&(y="bottom")}}S!==null&&a(S),S!==d.lastTop&&(g=!0)}g&&h(G(G({},d),{},{times:d.times+1,targetAlign:y,lastTop:S}))}},[d,e.current]),function(p){if(p==null){l();return}if(Ot.cancel(s.current),typeof p=="number")a(p);else if(p&&Ke(p)==="object"){var w,v=p.align;"index"in p?w=p.index:w=t.findIndex(function(g){return o(g)===p.key});var b=p.offset,m=b===void 0?0:b;h({times:0,index:w,offset:m,originAlign:v})}}}function a6(e,t,n){var r=e.length,o=t.length,i,a;if(r===0&&o===0)return null;r"u"?"undefined":Ke(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const d2=function(e,t){var n=f.useRef(!1),r=f.useRef(null);function o(){clearTimeout(r.current),n.current=!0,r.current=setTimeout(function(){n.current=!1},50)}var i=f.useRef({top:e,bottom:t});return i.current.top=e,i.current.bottom=t,function(a){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=a<0&&i.current.top||a>0&&i.current.bottom;return l&&s?(clearTimeout(r.current),n.current=!1):(!s||n.current)&&o(),!n.current&&s}};function s6(e,t,n,r,o){var i=f.useRef(0),a=f.useRef(null),l=f.useRef(null),s=f.useRef(!1),u=d2(t,n);function c(b,m){Ot.cancel(a.current),i.current+=m,l.current=m,!u(m)&&(K1||b.preventDefault(),a.current=Ot(function(){var g=s.current?10:1;o(i.current*g),i.current=0}))}function d(b,m){o(m,!0),K1||b.preventDefault()}var h=f.useRef(null),p=f.useRef(null);function w(b){if(e){Ot.cancel(p.current),p.current=Ot(function(){h.current=null},2);var m=b.deltaX,g=b.deltaY,y=b.shiftKey,S=m,C=g;(h.current==="sx"||!h.current&&y&&g&&!m)&&(S=g,C=0,h.current="sx");var E=Math.abs(S),x=Math.abs(C);h.current===null&&(h.current=r&&E>x?"x":"y"),h.current==="y"?c(b,C):d(b,S)}}function v(b){e&&(s.current=b.detail===l.current)}return[w,v]}var u6=14/15;function c6(e,t,n){var r=f.useRef(!1),o=f.useRef(0),i=f.useRef(null),a=f.useRef(null),l,s=function(h){if(r.current){var p=Math.ceil(h.touches[0].pageY),w=o.current-p;o.current=p,n(w)&&h.preventDefault(),clearInterval(a.current),a.current=setInterval(function(){w*=u6,(!n(w,!0)||Math.abs(w)<=.1)&&clearInterval(a.current)},16)}},u=function(){r.current=!1,l()},c=function(h){l(),h.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(h.touches[0].pageY),i.current=h.target,i.current.addEventListener("touchmove",s),i.current.addEventListener("touchend",u))};l=function(){i.current&&(i.current.removeEventListener("touchmove",s),i.current.removeEventListener("touchend",u))},xt(function(){return e&&t.current.addEventListener("touchstart",c),function(){var d;(d=t.current)===null||d===void 0||d.removeEventListener("touchstart",c),l(),clearInterval(a.current)}},[e])}var f6=20;function G1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*100;return isNaN(n)&&(n=0),n=Math.max(n,f6),n=Math.min(n,e/2),Math.floor(n)}function d6(e,t,n,r){var o=f.useMemo(function(){return[new Map,[]]},[e,n.id,r]),i=Q(o,2),a=i[0],l=i[1],s=function(c){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:c,h=a.get(c),p=a.get(d);if(h===void 0||p===void 0)for(var w=e.length,v=l.length;vi||!!v),F=w==="rtl",L=he(r,H({},"".concat(r,"-rtl"),F),o),A=c||m6,_=f.useRef(),z=f.useRef(),I=f.useState(0),O=Q(I,2),$=O[0],M=O[1],T=f.useState(0),k=Q(T,2),D=k[0],B=k[1],V=f.useState(!1),W=Q(V,2),U=W[0],Y=W[1],X=function(){Y(!0)},K=function(){Y(!1)},q=f.useCallback(function(Ne){return typeof h=="function"?h(Ne):Ne==null?void 0:Ne[h]},[h]),te={getKey:q};function ne(Ne){M(function(Re){var Te;typeof Ne=="function"?Te=Ne(Re):Te=Ne;var st=ot(Te);return _.current.scrollTop=st,st})}var ee=f.useRef({start:0,end:A.length}),Z=f.useRef(),ae=l6(A,q),pe=Q(ae,1),de=pe[0];Z.current=de;var oe=r6(q,null,null),J=Q(oe,4),re=J[0],ue=J[1],ce=J[2],ge=J[3],Pe=f.useMemo(function(){if(!N)return{scrollHeight:void 0,start:0,end:A.length-1,offset:void 0};if(!P){var Ne;return{scrollHeight:((Ne=z.current)===null||Ne===void 0?void 0:Ne.offsetHeight)||0,start:0,end:A.length-1,offset:void 0}}for(var Re=0,Te,st,jt,Pt=A.length,$n=0;$n=$&&Te===void 0&&(Te=$n,st=Re),ln>$+i&&jt===void 0&&(jt=$n),Re=ln}return Te===void 0&&(Te=0,st=0,jt=Math.ceil(i/a)),jt===void 0&&(jt=A.length-1),jt=Math.min(jt+1,A.length-1),{scrollHeight:Re,start:Te,end:jt,offset:st}},[P,N,$,A,ge,i]),Oe=Pe.scrollHeight,Ce=Pe.start,tt=Pe.end,Qe=Pe.offset;ee.current.start=Ce,ee.current.end=tt;var ze=f.useState({width:0,height:i}),ve=Q(ze,2),fe=ve[0],je=ve[1],Ze=function(Re){je({width:Re.width||Re.offsetWidth,height:Re.height||Re.offsetHeight})},yt=f.useRef(),nt=f.useRef(),We=f.useMemo(function(){return G1(fe.width,v)},[fe.width,v]),rt=f.useMemo(function(){return G1(fe.height,Oe)},[fe.height,Oe]),wt=Oe-i,Ge=f.useRef(wt);Ge.current=wt;function ot(Ne){var Re=Ne;return Number.isNaN(Ge.current)||(Re=Math.min(Re,Ge.current)),Re=Math.max(Re,0),Re}var Mt=$<=0,Ve=$>=wt,gt=d2(Mt,Ve),qe=function(){return{x:F?-D:D,y:$}},$e=f.useRef(qe()),Be=jn(function(){if(y){var Ne=qe();($e.current.x!==Ne.x||$e.current.y!==Ne.y)&&(y(Ne),$e.current=Ne)}});function ye(Ne,Re){var Te=Ne;Re?(Zo.flushSync(function(){B(Te)}),Be()):ne(Te)}function Me(Ne){var Re=Ne.currentTarget.scrollTop;Re!==$&&ne(Re),g==null||g(Ne),Be()}var ie=function(Re){var Te=Re,st=v-fe.width;return Te=Math.max(Te,0),Te=Math.min(Te,st),Te},xe=jn(function(Ne,Re){Re?(Zo.flushSync(function(){B(function(Te){var st=Te+(F?-Ne:Ne);return ie(st)})}),Be()):ne(function(Te){var st=Te+Ne;return st})}),Se=s6(N,Mt,Ve,!!v,xe),we=Q(Se,2),Ue=we[0],Ye=we[1];c6(N,_,function(Ne,Re){return gt(Ne,Re)?!1:(Ue({preventDefault:function(){},deltaY:Ne}),!0)}),xt(function(){function Ne(Te){N&&Te.preventDefault()}var Re=_.current;return Re.addEventListener("wheel",Ue),Re.addEventListener("DOMMouseScroll",Ye),Re.addEventListener("MozMousePixelScroll",Ne),function(){Re.removeEventListener("wheel",Ue),Re.removeEventListener("DOMMouseScroll",Ye),Re.removeEventListener("MozMousePixelScroll",Ne)}},[N]),xt(function(){v&&B(function(Ne){return ie(Ne)})},[fe.width,v]);var Nt=function(){var Re,Te;(Re=yt.current)===null||Re===void 0||Re.delayHidden(),(Te=nt.current)===null||Te===void 0||Te.delayHidden()},_t=i6(_,A,ce,a,q,function(){return ue(!0)},ne,Nt);f.useImperativeHandle(t,function(){return{getScrollInfo:qe,scrollTo:function(Re){function Te(st){return st&&Ke(st)==="object"&&("left"in st||"top"in st)}Te(Re)?(Re.left!==void 0&&B(ie(Re.left)),_t(Re.top)):_t(Re)}}}),xt(function(){if(S){var Ne=A.slice(Ce,tt+1);S(Ne,A)}},[Ce,tt,A]);var ht=d6(A,q,ce,a),lt=E==null?void 0:E({start:Ce,end:tt,virtual:P,offsetX:D,offsetY:Qe,rtl:F,getSize:ht}),Dt=t6(A,Ce,tt,v,re,d,te),Wt=null;i&&(Wt=G(H({},s?"height":"maxHeight",i),p6),N&&(Wt.overflowY="hidden",v&&(Wt.overflowX="hidden"),U&&(Wt.pointerEvents="none")));var vn={};return F&&(vn.dir="rtl"),f.createElement("div",De({style:G(G({},u),{},{position:"relative"}),className:L},vn,R),f.createElement(ri,{onResize:Ze},f.createElement(m,{className:"".concat(r,"-holder"),style:Wt,ref:_,onScroll:Me,onMouseEnter:Nt},f.createElement(f2,{prefixCls:r,height:Oe,offsetX:D,offsetY:Qe,scrollWidth:v,onInnerResize:ue,ref:z,innerProps:C,rtl:F,extra:lt},Dt))),P&&Oe>i&&f.createElement(U1,{ref:yt,prefixCls:r,scrollOffset:$,scrollRange:Oe,rtl:F,onScroll:ye,onStartMove:X,onStopMove:K,spinSize:rt,containerSize:fe.height,style:x==null?void 0:x.verticalScrollBar,thumbStyle:x==null?void 0:x.verticalScrollBarThumb}),P&&v&&f.createElement(U1,{ref:nt,prefixCls:r,scrollOffset:D,scrollRange:v,rtl:F,onScroll:ye,onStartMove:X,onStopMove:K,spinSize:We,containerSize:fe.width,horizontal:!0,style:x==null?void 0:x.horizontalScrollBar,thumbStyle:x==null?void 0:x.horizontalScrollBarThumb}))}var h2=f.forwardRef(g6);h2.displayName="List";var m2=f.createContext(null);function v6(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var y6=["disabled","title","children","style","className"];function X1(e){return typeof e=="string"||typeof e=="number"}var w6=function(t,n){var r=sL(),o=r.prefixCls,i=r.id,a=r.open,l=r.multiple,s=r.mode,u=r.searchValue,c=r.toggleOpen,d=r.notFoundContent,h=r.onPopupScroll,p=f.useContext(m2),w=p.flattenOptions,v=p.onActiveValue,b=p.defaultActiveFirstOption,m=p.onSelect,g=p.menuItemSelectedIcon,y=p.rawValues,S=p.fieldNames,C=p.virtual,E=p.direction,x=p.listHeight,R=p.listItemHeight,N=p.optionRender,P="".concat(o,"-item"),F=zf(function(){return w},[a,w],function(X,K){return K[0]&&X[1]!==K[1]}),L=f.useRef(null),A=function(K){K.preventDefault()},_=function(K){L.current&&L.current.scrollTo(typeof K=="number"?{index:K}:K)},z=function(K){for(var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,te=F.length,ne=0;ne1&&arguments[1]!==void 0?arguments[1]:!1;M(K);var te={source:q?"keyboard":"mouse"},ne=F[K];if(!ne){v(null,-1,te);return}v(ne.value,K,te)};f.useEffect(function(){T(b!==!1?z(0):-1)},[F.length,u]);var k=f.useCallback(function(X){return y.has(X)&&s!=="combobox"},[s,be(y).toString(),y.size]);f.useEffect(function(){var X=setTimeout(function(){if(!l&&a&&y.size===1){var q=Array.from(y)[0],te=F.findIndex(function(ne){var ee=ne.data;return ee.value===q});te!==-1&&(T(te),_(te))}});if(a){var K;(K=L.current)===null||K===void 0||K.scrollTo(void 0)}return function(){return clearTimeout(X)}},[a,u]);var D=function(K){K!==void 0&&m(K,{selected:!y.has(K)}),l||c(!1)};if(f.useImperativeHandle(n,function(){return{onKeyDown:function(K){var q=K.which,te=K.ctrlKey;switch(q){case se.N:case se.P:case se.UP:case se.DOWN:{var ne=0;if(q===se.UP?ne=-1:q===se.DOWN?ne=1:v6()&&te&&(q===se.N?ne=1:q===se.P&&(ne=-1)),ne!==0){var ee=z($+ne,ne);_(ee),T(ee,!0)}break}case se.ENTER:{var Z=F[$];Z&&!Z.data.disabled?D(Z.value):D(void 0),a&&K.preventDefault();break}case se.ESC:c(!1),a&&K.stopPropagation()}},onKeyUp:function(){},scrollTo:function(K){_(K)}}}),F.length===0)return f.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(P,"-empty"),onMouseDown:A},d);var B=Object.keys(S).map(function(X){return S[X]}),V=function(K){return K.label};function W(X,K){var q=X.group;return{role:q?"presentation":"option",id:"".concat(i,"_list_").concat(K)}}var U=function(K){var q=F[K];if(!q)return null;var te=q.data||{},ne=te.value,ee=q.group,Z=Xc(te,!0),ae=V(q);return q?f.createElement("div",De({"aria-label":typeof ae=="string"&&!ee?ae:null},Z,{key:K},W(q,K),{"aria-selected":k(ne)}),ne):null},Y={role:"listbox",id:"".concat(i,"_list")};return f.createElement(f.Fragment,null,C&&f.createElement("div",De({},Y,{style:{height:0,width:0,overflow:"hidden"}}),U($-1),U($),U($+1)),f.createElement(h2,{itemKey:"key",ref:L,data:F,height:x,itemHeight:R,fullHeight:!1,onMouseDown:A,onScroll:h,virtual:C,direction:E,innerProps:C?null:Y},function(X,K){var q,te=X.group,ne=X.groupOption,ee=X.data,Z=X.label,ae=X.value,pe=ee.key;if(te){var de,oe=(de=ee.title)!==null&&de!==void 0?de:X1(Z)?Z.toString():void 0;return f.createElement("div",{className:he(P,"".concat(P,"-group")),title:oe},Z!==void 0?Z:pe)}var J=ee.disabled,re=ee.title;ee.children;var ue=ee.style,ce=ee.className,ge=mt(ee,y6),Pe=Li(ge,B),Oe=k(ae),Ce="".concat(P,"-option"),tt=he(P,Ce,ce,(q={},H(q,"".concat(Ce,"-grouped"),ne),H(q,"".concat(Ce,"-active"),$===K&&!J),H(q,"".concat(Ce,"-disabled"),J),H(q,"".concat(Ce,"-selected"),Oe),q)),Qe=V(X),ze=!g||typeof g=="function"||Oe,ve=typeof Qe=="number"?Qe:Qe||ae,fe=X1(ve)?ve.toString():void 0;return re!==void 0&&(fe=re),f.createElement("div",De({},Xc(Pe),C?{}:W(X,K),{"aria-selected":Oe,className:tt,title:fe,onMouseMove:function(){$===K||J||T(K)},onClick:function(){J||D(ae)},style:ue}),f.createElement("div",{className:"".concat(Ce,"-content")},typeof N=="function"?N(X,{index:K}):ve),f.isValidElement(g)||Oe,ze&&f.createElement(Qf,{className:"".concat(P,"-option-state"),customizeIcon:g,customizeIconProps:{value:ae,disabled:J,isSelected:Oe}},Oe?"✓":null))}))},p2=f.forwardRef(w6);p2.displayName="OptionList";const S6=function(e,t){var n=f.useRef({values:new Map,options:new Map}),r=f.useMemo(function(){var i=n.current,a=i.values,l=i.options,s=e.map(function(d){if(d.label===void 0){var h;return G(G({},d),{},{label:(h=a.get(d.value))===null||h===void 0?void 0:h.label})}return d}),u=new Map,c=new Map;return s.forEach(function(d){u.set(d.value,d),c.set(d.value,t.get(d.value)||l.get(d.value))}),n.current.values=u,n.current.options=c,s},[e,t]),o=f.useCallback(function(i){return t.get(i)||n.current.options.get(i)},[t]);return[r,o]};function dh(e,t){return i2(e).join("").toUpperCase().includes(t)}const b6=function(e,t,n,r,o){return f.useMemo(function(){if(!n||r===!1)return e;var i=t.options,a=t.label,l=t.value,s=[],u=typeof r=="function",c=n.toUpperCase(),d=u?r:function(p,w){return o?dh(w[o],c):w[i]?dh(w[a!=="children"?a:"label"],c):dh(w[l],c)},h=u?function(p){return wp(p)}:function(p){return p};return e.forEach(function(p){if(p[i]){var w=d(n,h(p));if(w)s.push(p);else{var v=p[i].filter(function(b){return d(n,h(b))});v.length&&s.push(G(G({},p),{},H({},i,v)))}return}d(n,h(p))&&s.push(p)}),s},[e,r,o,n,t])};var q1=0,x6=bn();function C6(){var e;return x6?(e=q1,q1+=1):e="TEST_OR_SSR",e}function E6(e){var t=f.useState(),n=Q(t,2),r=n[0],o=n[1];return f.useEffect(function(){o("rc_select_".concat(C6()))},[]),e||r}var $6=["children","value"],_6=["children"];function R6(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value,a=mt(r,$6);return G({key:n,value:i!==void 0?i:n,children:o},a)}function g2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Wa(e).map(function(n,r){if(!f.isValidElement(n)||!n.type)return null;var o=n,i=o.type.isSelectOptGroup,a=o.key,l=o.props,s=l.children,u=mt(l,_6);return t||!i?R6(n):G(G({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},u),{},{options:g2(s)})}).filter(function(n){return n})}function I6(e,t,n,r,o){return f.useMemo(function(){var i=e,a=!e;a&&(i=g2(t));var l=new Map,s=new Map,u=function(h,p,w){w&&typeof w=="string"&&h.set(p[w],p)};function c(d){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,p=0;p2&&arguments[2]!==void 0?arguments[2]:{},we=Se.source,Ue=we===void 0?"keyboard":we;ot(xe),a&&r==="combobox"&&ie!==null&&Ue==="keyboard"&&We(String(ie))},[a,r]),gt=function(xe,Se,we){var Ue=function(){var Re,Te=ge(xe);return[$?{label:Te==null?void 0:Te[W.label],value:xe,key:(Re=Te==null?void 0:Te.key)!==null&&Re!==void 0?Re:xe}:xe,wp(Te)]};if(Se&&p){var Ye=Ue(),Nt=Q(Ye,2),_t=Nt[0],ht=Nt[1];p(_t,ht)}else if(!Se&&w&&we!=="clear"){var lt=Ue(),Dt=Q(lt,2),Wt=Dt[0],vn=Dt[1];w(Wt,vn)}},qe=Y1(function(ie,xe){var Se,we=D?xe.selected:!0;we?Se=D?[].concat(be(ce),[ie]):[ie]:Se=ce.filter(function(Ue){return Ue.value!==ie}),je(Se),gt(ie,we),r==="combobox"?We(""):(!Sp||h)&&(K(""),We(""))}),$e=function(xe,Se){je(xe);var we=Se.type,Ue=Se.values;(we==="remove"||we==="clear")&&Ue.forEach(function(Ye){gt(Ye.value,!1,we)})},Be=function(xe,Se){if(K(xe),We(null),Se.source==="submit"){var we=(xe||"").trim();if(we){var Ue=Array.from(new Set([].concat(be(Oe),[we])));je(Ue),gt(we,!0),K("")}return}Se.source!=="blur"&&(r==="combobox"&&je(xe),c==null||c(xe))},ye=function(xe){var Se=xe;r!=="tags"&&(Se=xe.map(function(Ue){var Ye=ne.get(Ue);return Ye==null?void 0:Ye.value}).filter(function(Ue){return Ue!==void 0}));var we=Array.from(new Set([].concat(be(Oe),be(Se))));je(we),we.forEach(function(Ue){gt(Ue,!0)})},Me=f.useMemo(function(){var ie=P!==!1&&b!==!1;return G(G({},q),{},{flattenOptions:fe,onActiveValue:Ve,defaultActiveFirstOption:Mt,onSelect:qe,menuItemSelectedIcon:N,rawValues:Oe,fieldNames:W,virtual:ie,direction:F,listHeight:A,listItemHeight:z,childrenAsData:B,optionRender:E})},[q,fe,Ve,Mt,qe,N,Oe,W,P,b,A,z,B,E]);return f.createElement(m2.Provider,{value:Me},f.createElement(JL,De({},T,{id:k,prefixCls:i,ref:t,omitDomProps:M6,mode:r,displayValues:Pe,onDisplayValuesChange:$e,direction:F,searchValue:X,onSearch:Be,autoClearSearchValue:h,onSearchSplit:ye,dropdownMatchSelectWidth:b,OptionList:p2,emptyOptions:!fe.length,activeValue:nt,activeDescendantId:"".concat(k,"_list_").concat(Ge)})))}),uv=P6;uv.Option=sv;uv.OptGroup=lv;function Pa(e,t,n){return he({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const cv=(e,t)=>t||e,T6=()=>{const[,e]=Tn(),n=new rn(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return f.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},f.createElement("g",{fill:"none",fillRule:"evenodd"},f.createElement("g",{transform:"translate(24 31.67)"},f.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),f.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),f.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),f.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),f.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),f.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),f.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},f.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),f.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},A6=T6,k6=()=>{const[,e]=Tn(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:i,shadowColor:a,contentColor:l}=f.useMemo(()=>({borderColor:new rn(t).onBackground(o).toHexShortString(),shadowColor:new rn(n).onBackground(o).toHexShortString(),contentColor:new rn(r).onBackground(o).toHexShortString()}),[t,n,r,o]);return f.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},f.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},f.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),f.createElement("g",{fillRule:"nonzero",stroke:i},f.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),f.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))},F6=k6,z6=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},L6=wo("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=Et(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[z6(o)]});var D6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var{className:t,rootClassName:n,prefixCls:r,image:o=v2,description:i,children:a,imageStyle:l,style:s}=e,u=D6(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:c,direction:d,empty:h}=f.useContext($t),p=c("empty",r),[w,v,b]=L6(p),[m]=jC("Empty"),g=typeof i<"u"?i:m==null?void 0:m.description,y=typeof g=="string"?g:"empty";let S=null;return typeof o=="string"?S=f.createElement("img",{alt:y,src:o}):S=o,w(f.createElement("div",Object.assign({className:he(v,b,p,h==null?void 0:h.className,{[`${p}-normal`]:o===y2,[`${p}-rtl`]:d==="rtl"},t,n),style:Object.assign(Object.assign({},h==null?void 0:h.style),s)},u),f.createElement("div",{className:`${p}-image`,style:l},S),g&&f.createElement("div",{className:`${p}-description`},g),a&&f.createElement("div",{className:`${p}-footer`},a)))};fv.PRESENTED_IMAGE_DEFAULT=v2;fv.PRESENTED_IMAGE_SIMPLE=y2;const Il=fv,j6=e=>{const{componentName:t}=e,{getPrefixCls:n}=f.useContext($t),r=n("empty");switch(t){case"Table":case"List":return j.createElement(Il,{image:Il.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return j.createElement(Il,{image:Il.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return j.createElement(Il,null)}},H6=j6,B6=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function V6(e,t){return e||B6(t)}const W6=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},U6=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},yo(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` + ${o}${l}bottomLeft, + ${i}${l}bottomLeft + `]:{animationName:qE},[` + ${o}${l}topLeft, + ${i}${l}topLeft, + ${o}${l}topRight, + ${i}${l}topRight + `]:{animationName:QE},[`${a}${l}bottomLeft`]:{animationName:YE},[` + ${a}${l}topLeft, + ${a}${l}topRight + `]:{animationName:ZE},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},W6(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"},Ym),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}}}),"&-rtl":{direction:"rtl"}})},N1(e,"slide-up"),N1(e,"slide-down"),M1(e,"move-up"),M1(e,"move-down")]},ea=2,K6=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()};function hh(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,a=K6(e),l=t?`${n}-${t}`:"";return{[`${n}-multiple${l}`]:{fontSize:e.fontSize,[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:e.calc(ea).mul(2).equal(),paddingBlock:e.calc(a).sub(ea).equal(),borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Ae(ea)} 0`,lineHeight:Ae(i),visibility:"hidden",content:'"\\a0"'}},[` + &${n}-show-arrow ${n}-selector, + &${n}-allow-clear ${n}-selector + `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()},[`${n}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:i,marginTop:ea,marginBottom:ea,lineHeight:Ae(e.calc(i).sub(e.calc(e.lineWidth).mul(2)).equal()),background:e.multipleItemBg,border:`${Ae(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,marginInlineEnd:e.calc(ea).mul(2).equal(),paddingInlineStart:e.paddingXS,paddingInlineEnd:e.calc(e.paddingXS).div(2).equal(),[`${n}-disabled&`]:{color:e.multipleItemColorDisabled,borderColor:e.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(e.paddingXS).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},Ug()),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${o}-item-suffix`]:{height:"100%"},[`${n}-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:Ae(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"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}const G6=e=>{const{componentCls:t}=e,n=Et(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Et(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[hh(e),hh(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},hh(r,"lg")]};function mh(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?`${n}-${t}`:"";return{[`${n}-single${a}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},yo(e,!0)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[` + ${n}-selection-item, + ${n}-selection-placeholder + `]:{padding:0,lineHeight:Ae(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` + &${n}-show-arrow ${n}-selection-item, + &${n}-show-arrow ${n}-selection-placeholder + `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${Ae(r)}`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:Ae(i)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Ae(r)}`,"&:after":{display:"none"}}}}}}}function X6(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[mh(e),mh(Et(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${Ae(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[` + &${t}-show-arrow ${t}-selection-item, + &${t}-show-arrow ${t}-selection-placeholder + `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},mh(Et(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const q6=e=>{const{componentCls:t,selectorBg:n}=e;return{position:"relative",backgroundColor:n,border:`${Ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},ph=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:r,borderHoverColor:o,antCls:i,borderActiveColor:a,outlineColor:l,controlOutlineWidth:s}=t,u=n?{[`${r}-selector`]:{borderColor:a}}:{};return{[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${i}-pagination-size-changer)`]:Object.assign(Object.assign({},u),{[`&:hover ${r}-selector`]:{borderColor:o},[`${r}-focused& ${r}-selector`]:{borderColor:a,boxShadow:`0 0 0 ${Ae(s)} ${l}`,outline:0}})}}},Y6=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},Q6=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},yo(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},q6(e)),Y6(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Ym),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Ym),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},Ug()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.clearBg,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},Z6=e=>{const{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},Q6(e),X6(e),G6(e),U6(e),{[`${t}-rtl`]:{direction:"rtl"}},ph(t,Et(e,{borderHoverColor:e.colorPrimaryHover,borderActiveColor:e.colorPrimary,outlineColor:e.controlOutline})),ph(`${t}-status-error`,Et(e,{borderHoverColor:e.colorErrorHover,borderActiveColor:e.colorError,outlineColor:e.colorErrorOutline}),!0),ph(`${t}-status-warning`,Et(e,{borderHoverColor:e.colorWarningHover,borderActiveColor:e.colorWarning,outlineColor:e.colorWarningOutline}),!0),Zg(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},J6=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlPaddingHorizontal:o,zIndexPopupBase:i,colorText:a,fontWeightStrong:l,controlItemBgActive:s,controlItemBgHover:u,colorBgContainer:c,colorFillSecondary:d,controlHeightLG:h,controlHeightSM:p,colorBgContainerDisabled:w,colorTextDisabled:v}=e;return{zIndexPopup:i+50,optionSelectedColor:a,optionSelectedFontWeight:l,optionSelectedBg:s,optionActiveBg:u,optionPadding:`${(r-t*n)/2}px ${o}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:c,clearBg:c,singleItemHeightLG:h,multipleItemBg:d,multipleItemBorderColor:"transparent",multipleItemHeight:p,multipleItemHeightLG:r,multipleSelectorBgDisabled:w,multipleItemColorDisabled:v,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25)}},e8=wo("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=Et(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Z6(r)]},J6,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var t8={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};const n8=t8;var r8=function(t,n){return f.createElement(Pr,De({},t,{ref:n,icon:n8}))};const o8=f.forwardRef(r8);var i8={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const a8=i8;var l8=function(t,n){return f.createElement(Pr,De({},t,{ref:n,icon:a8}))};const s8=f.forwardRef(l8);var u8={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};const c8=u8;var f8=function(t,n){return f.createElement(Pr,De({},t,{ref:n,icon:c8}))};const w2=f.forwardRef(f8);function d8(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:l,prefixCls:s,showSuffixIcon:u,feedbackIcon:c,showArrow:d,componentName:h}=e;const p=n??f.createElement(Kf,null),w=g=>t===null&&!l&&!d?null:f.createElement(f.Fragment,null,u!==!1&&g,l&&c);let v=null;if(t!==void 0)v=w(t);else if(i)v=w(f.createElement(Xf,{spin:!0}));else{const g=`${s}-suffix`;v=y=>{let{open:S,showSearch:C}=y;return w(S&&C?f.createElement(w2,{className:g}):f.createElement(s8,{className:g}))}}let b=null;r!==void 0?b=r:a?b=f.createElement(o8,null):b=null;let m=null;return o!==void 0?m=o:m=f.createElement(lk,null),{clearIcon:p,suffixIcon:v,itemIcon:b,removeIcon:m}}function h8(e,t){return t!==void 0?t:e!==null}var m8=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r,{prefixCls:o,bordered:i=!0,className:a,rootClassName:l,getPopupContainer:s,popupClassName:u,dropdownClassName:c,listHeight:d=256,placement:h,listItemHeight:p,size:w,disabled:v,notFoundContent:b,status:m,builtinPlacements:g,dropdownMatchSelectWidth:y,popupMatchSelectWidth:S,direction:C,style:E,allowClear:x}=e,R=m8(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:N,getPrefixCls:P,renderEmpty:F,direction:L,virtual:A,popupMatchSelectWidth:_,popupOverflow:z,select:I}=f.useContext($t),[,O]=Tn(),$=p??(O==null?void 0:O.controlHeight),M=P("select",o),T=P(),k=C??L,{compactSize:D,compactItemClassnames:B}=Yf(M,k),V=al(M),[W,U,Y]=e8(M,V),X=f.useMemo(()=>{const{mode:fe}=R;if(fe!=="combobox")return fe===S2?"combobox":fe},[R.mode]),K=X==="multiple"||X==="tags",q=h8(R.suffixIcon,R.showArrow),te=(n=S??y)!==null&&n!==void 0?n:_,{status:ne,hasFeedback:ee,isFormItemInput:Z,feedbackIcon:ae}=f.useContext(Mr),pe=cv(ne,m);let de;b!==void 0?de=b:X==="combobox"?de=null:de=(F==null?void 0:F("Select"))||f.createElement(H6,{componentName:"Select"});const{suffixIcon:oe,itemIcon:J,removeIcon:re,clearIcon:ue}=d8(Object.assign(Object.assign({},R),{multiple:K,hasFeedback:ee,feedbackIcon:ae,showSuffixIcon:q,prefixCls:M,showArrow:R.showArrow,componentName:"Select"})),ce=x===!0?{clearIcon:ue}:x,ge=Li(R,["suffixIcon","itemIcon"]),Pe=he(u||c,{[`${M}-dropdown-${k}`]:k==="rtl"},l,Y,V,U),Oe=Hi(fe=>{var je;return(je=w??D)!==null&&je!==void 0?je:fe}),Ce=f.useContext(Di),tt=v??Ce,Qe=he({[`${M}-lg`]:Oe==="large",[`${M}-sm`]:Oe==="small",[`${M}-rtl`]:k==="rtl",[`${M}-borderless`]:!i,[`${M}-in-form-item`]:Z},Pa(M,pe,ee),B,I==null?void 0:I.className,a,l,Y,V,U),ze=f.useMemo(()=>h!==void 0?h:k==="rtl"?"bottomRight":"bottomLeft",[h,k]),[ve]=_E("SelectLike",(r=R.dropdownStyle)===null||r===void 0?void 0:r.zIndex);return W(f.createElement(uv,Object.assign({ref:t,virtual:A,showSearch:I==null?void 0:I.showSearch},ge,{style:Object.assign(Object.assign({},I==null?void 0:I.style),E),dropdownMatchSelectWidth:te,builtinPlacements:V6(g,z),transitionName:RE(T,"slide-up",R.transitionName),listHeight:d,listItemHeight:$,mode:X,prefixCls:M,placement:ze,direction:k,suffixIcon:oe,menuItemSelectedIcon:J,removeIcon:re,allowClear:ce,notFoundContent:de,className:Qe,getPopupContainer:s||N,dropdownClassName:Pe,disabled:tt,dropdownStyle:Object.assign(Object.assign({},R==null?void 0:R.dropdownStyle),{zIndex:ve})})))},sl=f.forwardRef(p8),g8=aL(sl);sl.SECRET_COMBOBOX_MODE_DO_NOT_USE=S2;sl.Option=sv;sl.OptGroup=lv;sl._InternalPanelDoNotUseOrYouWillBeFired=g8;const b2=sl,Ps=["xxl","xl","lg","md","sm","xs"],v8=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),y8=e=>{const t=e,n=[].concat(Ps).reverse();return n.forEach((r,o)=>{const i=r.toUpperCase(),a=`screen${i}Min`,l=`screen${i}`;if(!(t[a]<=t[l]))throw new Error(`${a}<=${l} fails : !(${t[a]}<=${t[l]})`);if(o{const n=new Map;let r=-1,o={};return{matchHandlers:{},dispatch(i){return o=i,n.forEach(a=>a(o)),n.size>=1},subscribe(i){return n.size||this.register(),r+=1,n.set(r,i),i(o),r},unsubscribe(i){n.delete(i),n.size||this.unregister()},unregister(){Object.keys(t).forEach(i=>{const a=t[i],l=this.matchHandlers[a];l==null||l.mql.removeListener(l==null?void 0:l.listener)}),n.clear()},register(){Object.keys(t).forEach(i=>{const a=t[i],l=u=>{let{matches:c}=u;this.dispatch(Object.assign(Object.assign({},o),{[i]:c}))},s=window.matchMedia(a);s.addListener(l),this.matchHandlers[a]={mql:s,listener:l},l(s)})},responsiveMap:t}},[e])}function x2(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return f.createElement("div",{className:he("".concat(n,"-content"),i),style:a},f.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var ta={shiftX:64,adjustY:1},na={adjustX:1,shiftY:!0},Jn=[0,0],S8={left:{points:["cr","cl"],overflow:na,offset:[-4,0],targetOffset:Jn},right:{points:["cl","cr"],overflow:na,offset:[4,0],targetOffset:Jn},top:{points:["bc","tc"],overflow:ta,offset:[0,-4],targetOffset:Jn},bottom:{points:["tc","bc"],overflow:ta,offset:[0,4],targetOffset:Jn},topLeft:{points:["bl","tl"],overflow:ta,offset:[0,-4],targetOffset:Jn},leftTop:{points:["tr","tl"],overflow:na,offset:[-4,0],targetOffset:Jn},topRight:{points:["br","tr"],overflow:ta,offset:[0,-4],targetOffset:Jn},rightTop:{points:["tl","tr"],overflow:na,offset:[4,0],targetOffset:Jn},bottomRight:{points:["tr","br"],overflow:ta,offset:[0,4],targetOffset:Jn},rightBottom:{points:["bl","br"],overflow:na,offset:[4,0],targetOffset:Jn},bottomLeft:{points:["tl","bl"],overflow:ta,offset:[0,4],targetOffset:Jn},leftBottom:{points:["br","bl"],overflow:na,offset:[-4,0],targetOffset:Jn}},b8=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],x8=function(t,n){var r=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,l=a===void 0?0:a,s=t.mouseLeaveDelay,u=s===void 0?.1:s,c=t.overlayStyle,d=t.prefixCls,h=d===void 0?"rc-tooltip":d,p=t.children,w=t.onVisibleChange,v=t.afterVisibleChange,b=t.transitionName,m=t.animation,g=t.motion,y=t.placement,S=y===void 0?"right":y,C=t.align,E=C===void 0?{}:C,x=t.destroyTooltipOnHide,R=x===void 0?!1:x,N=t.defaultVisible,P=t.getTooltipContainer,F=t.overlayInnerStyle;t.arrowContent;var L=t.overlay,A=t.id,_=t.showArrow,z=_===void 0?!0:_,I=mt(t,b8),O=f.useRef(null);f.useImperativeHandle(n,function(){return O.current});var $=G({},I);"visible"in t&&($.popupVisible=t.visible);var M=function(){return f.createElement(x2,{key:"content",prefixCls:h,id:A,overlayInnerStyle:F},L)};return f.createElement(s2,De({popupClassName:r,prefixCls:h,popup:M,action:i,builtinPlacements:S8,popupPlacement:S,ref:O,popupAlign:E,getPopupContainer:P,onPopupVisibleChange:w,afterPopupVisibleChange:v,popupTransitionName:b,popupAnimation:m,popupMotion:g,defaultPopupVisible:N,autoDestroy:R,mouseLeaveDelay:u,popupStyle:c,mouseEnterDelay:l,arrow:z},$),p)};const C8=f.forwardRef(x8);function E8(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=0,a=o,l=r*1/Math.sqrt(2),s=o-r*(1-1/Math.sqrt(2)),u=o-n*(1/Math.sqrt(2)),c=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),d=2*o-u,h=c,p=2*o-l,w=s,v=2*o-i,b=a,m=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),g=r*(Math.sqrt(2)-1),y=`polygon(${g}px 100%, 50% ${g}px, ${2*o-g}px 100%, ${g}px 100%)`,S=`path('M ${i} ${a} A ${r} ${r} 0 0 0 ${l} ${s} L ${u} ${c} A ${n} ${n} 0 0 1 ${d} ${h} L ${p} ${w} A ${r} ${r} 0 0 0 ${v} ${b} Z')`;return{arrowShadowWidth:m,arrowPath:S,arrowPolygon:y}}const $8=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:l,calc:s}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:s(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Ae(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},C2=8;function E2(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?C2:r}}function zu(e,t){return e?t:{}}function _8(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:s={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},$8(e,t,o)),{"&:before":{background:t}})]},zu(!!s.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-topRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}})),zu(!!s.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-bottomRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}})),zu(!!s.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),zu(!!s.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}function R8(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+n,i.shiftX=!0,i.adjustX=!0;break}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const Q1={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"]}},I8={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"]}},O8=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function M8(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,s={};return Object.keys(Q1).forEach(u=>{const c=r&&I8[u]||Q1[u],d=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(s[u]=d,O8.has(u)&&(d.autoArrow=!1),u){case"top":case"topLeft":case"topRight":d.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":d.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":d.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":d.offset[0]=l+o;break}const h=E2({contentRadius:i,limitVerticalRadius:!0});if(r)switch(u){case"topLeft":case"bottomLeft":d.offset[0]=-h.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":d.offset[0]=h.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":d.offset[1]=-h.arrowOffsetHorizontal-l;break;case"leftBottom":case"rightBottom":d.offset[1]=h.arrowOffsetHorizontal+l;break}d.overflow=R8(u,h,t,n),a&&(d.htmlRegion="visibleFirst")}),s}const N8=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:s,paddingSM:u,paddingXS:c}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},yo(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:l,minHeight:l,padding:`${Ae(e.calc(u).div(2).equal())} ${Ae(c)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:s,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,C2)}},[`${t}-content`]:{position:"relative"}}),a5(e,(d,h)=>{let{darkColor:p}=h;return{[`&${t}-${d}`]:{[`${t}-inner`]:{backgroundColor:p},[`${t}-arrow`]:{"--antd-arrow-background-color":p}}}})),{"&-rtl":{direction:"rtl"}})},_8(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},P8=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},E2({contentRadius:e.borderRadius,limitVerticalRadius:!0})),E8(Et(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),$2=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return wo("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:i,colorBgSpotlight:a}=r,l=Et(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a});return[N8(l),nL(r,"zoom-big-fast")]},P8,{resetStyle:!1,injectStyle:t})(e)},T8=Kc.map(e=>`${e}-inverse`);function A8(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(be(T8),be(Kc)).includes(e):Kc.includes(e)}function _2(e,t){const n=A8(t),r=he({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}const k8=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:l}=f.useContext($t),s=l("tooltip",t),[u,c,d]=$2(s),h=_2(s,i),p=h.arrowStyle,w=Object.assign(Object.assign({},a),h.overlayStyle),v=he(c,d,s,`${s}-pure`,`${s}-placement-${r}`,n,h.className);return u(f.createElement("div",{className:v,style:p},f.createElement("div",{className:`${s}-arrow`}),f.createElement(x2,Object.assign({},e,{className:c,prefixCls:s,overlayInnerStyle:w}),o)))},F8=k8;var z8=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:l,color:s,overlayInnerStyle:u,children:c,afterOpenChange:d,afterVisibleChange:h,destroyTooltipOnHide:p,arrow:w=!0,title:v,overlay:b,builtinPlacements:m,arrowPointAtCenter:g=!1,autoAdjustOverflow:y=!0}=e,S=!!w,[,C]=Tn(),{getPopupContainer:E,getPrefixCls:x,direction:R}=f.useContext($t),N=Vg(),P=f.useRef(null),F=()=>{var ge;(ge=P.current)===null||ge===void 0||ge.forceAlign()};f.useImperativeHandle(t,()=>({forceAlign:F,forcePopupAlign:()=>{N.deprecated(!1,"forcePopupAlign","forceAlign"),F()}}));const[L,A]=Vr(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),_=!v&&!b&&v!==0,z=ge=>{var Pe,Oe;A(_?!1:ge),_||((Pe=e.onOpenChange)===null||Pe===void 0||Pe.call(e,ge),(Oe=e.onVisibleChange)===null||Oe===void 0||Oe.call(e,ge))},I=f.useMemo(()=>{var ge,Pe;let Oe=g;return typeof w=="object"&&(Oe=(Pe=(ge=w.pointAtCenter)!==null&&ge!==void 0?ge:w.arrowPointAtCenter)!==null&&Pe!==void 0?Pe:g),m||M8({arrowPointAtCenter:Oe,autoAdjustOverflow:y,arrowWidth:S?C.sizePopupArrow:0,borderRadius:C.borderRadius,offset:C.marginXXS,visibleFirst:!0})},[g,w,m,C]),O=f.useMemo(()=>v===0?v:b||v||"",[b,v]),$=f.createElement(ip,null,typeof O=="function"?O():O),{getPopupContainer:M,placement:T="top",mouseEnterDelay:k=.1,mouseLeaveDelay:D=.1,overlayStyle:B,rootClassName:V}=e,W=z8(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),U=x("tooltip",o),Y=x(),X=e["data-popover-inject"];let K=L;!("open"in e)&&!("visible"in e)&&_&&(K=!1);const q=Gf(c)&&!CE(c)?c:f.createElement("span",null,c),te=q.props,ne=!te.className||typeof te.className=="string"?he(te.className,i||`${U}-open`):te.className,[ee,Z,ae]=$2(U,!X),pe=_2(U,s),de=pe.arrowStyle,oe=Object.assign(Object.assign({},u),pe.overlayStyle),J=he(l,{[`${U}-rtl`]:R==="rtl"},pe.className,V,Z,ae),[re,ue]=_E("Tooltip",W.zIndex),ce=f.createElement(C8,Object.assign({},W,{zIndex:re,showArrow:S,placement:T,mouseEnterDelay:k,mouseLeaveDelay:D,prefixCls:U,overlayClassName:J,overlayStyle:Object.assign(Object.assign({},de),B),getTooltipContainer:M||a||E,ref:P,builtinPlacements:I,overlay:$,visible:K,onVisibleChange:z,afterVisibleChange:d??h,overlayInnerStyle:oe,arrowContent:f.createElement("span",{className:`${U}-arrow-content`}),motion:{motionName:RE(Y,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!p}),K?Xa(q,{className:ne}):q);return ee(f.createElement(EE.Provider,{value:ue},ce))});R2._InternalPanelDoNotUseOrYouWillBeFired=F8;const L8=R2,D8=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),I2=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),bp=e=>({borderColor:e.activeBorderColor,boxShadow:e.activeShadow,outline:0,backgroundColor:e.activeBg}),O2=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover:not([disabled])":Object.assign({},I2(Et(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),M2=e=>{const{paddingBlockLG:t,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:o,paddingInlineLG:i}=e;return{padding:`${Ae(t)} ${Ae(i)}`,fontSize:n,lineHeight:r,borderRadius:o}},N2=e=>({padding:`${Ae(e.paddingBlockSM)} ${Ae(e.paddingInlineSM)}`,borderRadius:e.borderRadiusSM}),P2=(e,t)=>{const{componentCls:n,colorError:r,colorWarning:o,errorActiveShadow:i,warningActiveShadow:a,colorErrorBorderHover:l,colorWarningBorderHover:s}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:l},"&:focus, &:focus-within":Object.assign({},bp(Et(e,{activeBorderColor:r,activeShadow:i}))),[`${n}-prefix, ${n}-suffix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:s},"&:focus, &:focus-within":Object.assign({},bp(Et(e,{activeBorderColor:o,activeShadow:a}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},T2=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Ae(e.paddingBlock)} ${Ae(e.paddingInline)}`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},D8(e.colorTextPlaceholder)),{"&:hover":Object.assign({},I2(e)),"&:focus, &:focus-within":Object.assign({},bp(e)),"&-disabled, &[disabled]":Object.assign({},O2(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},M2(e)),"&-sm":Object.assign({},N2(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),j8=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},M2(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},N2(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Ae(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.addonBg,border:`${Ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Ae(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Ae(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${Ae(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${Ae(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},GA()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` + & > ${t}-affix-wrapper, + & > ${t}-number-affix-wrapper, + & > ${n}-picker-range + `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector, + & > ${n}-select-auto-complete ${t}, + & > ${n}-cascader-picker ${t}, + & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child, + & > ${n}-select:first-child > ${n}-select-selector, + & > ${n}-select-auto-complete:first-child ${t}, + & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, + & > ${n}-select:last-child > ${n}-select-selector, + & > ${n}-cascader-picker:last-child ${t}, + & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},H8=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,a=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},yo(e)),T2(e)),P2(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},B8=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Ae(e.inputAffixPadding)}`}}}},V8=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},T2(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),B8(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),P2(e,`${t}-affix-wrapper`))}},W8=e=>{const{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:i}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},yo(e)),j8(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:i}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon`]:{color:r,borderColor:r}},"&-disabled":{[`${t}-group-addon`]:Object.assign({},O2(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}}}})}},U8=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal({unit:!1})},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, + > ${t}, + ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},K8=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},G8=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};function X8(e){return Et(e,{inputAffixPadding:e.paddingXXS})}const q8=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:s,paddingSM:u,controlPaddingHorizontalSM:c,controlPaddingHorizontal:d,colorFillAlter:h,colorPrimaryHover:p,colorPrimary:w,controlOutlineWidth:v,controlOutline:b,colorErrorOutline:m,colorWarningOutline:g}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((a-l*s)/2*10)/10-o,paddingInline:u-o,paddingInlineSM:c-o,paddingInlineLG:d-o,addonBg:h,activeBorderColor:w,hoverBorderColor:p,activeShadow:`0 0 0 ${v}px ${b}`,errorActiveShadow:`0 0 0 ${v}px ${m}`,warningActiveShadow:`0 0 0 ${v}px ${g}`,hoverBg:"",activeBg:""}},dv=wo("Input",e=>{const t=Et(e,X8(e));return[H8(t),K8(t),V8(t),W8(t),U8(t),G8(t),Zg(t)]},q8),Y8=f.createContext({}),A2=Y8,Q8=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},Z8=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},J8=(e,t)=>{const{componentCls:n,gridColumns:r}=e,o={};for(let i=r;i>=0;i--)i===0?(o[`${n}${t}-${i}`]={display:"none"},o[`${n}-push-${i}`]={insetInlineStart:"auto"},o[`${n}-pull-${i}`]={insetInlineEnd:"auto"},o[`${n}${t}-push-${i}`]={insetInlineStart:"auto"},o[`${n}${t}-pull-${i}`]={insetInlineEnd:"auto"},o[`${n}${t}-offset-${i}`]={marginInlineStart:0},o[`${n}${t}-order-${i}`]={order:0}):(o[`${n}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/r*100}%`,maxWidth:`${i/r*100}%`}],o[`${n}${t}-push-${i}`]={insetInlineStart:`${i/r*100}%`},o[`${n}${t}-pull-${i}`]={insetInlineEnd:`${i/r*100}%`},o[`${n}${t}-offset-${i}`]={marginInlineStart:`${i/r*100}%`},o[`${n}${t}-order-${i}`]={order:i});return o},xp=(e,t)=>J8(e,t),eD=(e,t,n)=>({[`@media (min-width: ${Ae(t)})`]:Object.assign({},xp(e,n))}),tD=()=>({}),nD=()=>({}),rD=wo("Grid",Q8,tD),oD=wo("Grid",e=>{const t=Et(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[Z8(t),xp(t,""),xp(t,"-xs"),Object.keys(n).map(r=>eD(t,n[r],r)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},nD);var iD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n,direction:r}=f.useContext($t),{gutter:o,wrap:i}=f.useContext(A2),{prefixCls:a,span:l,order:s,offset:u,push:c,pull:d,className:h,children:p,flex:w,style:v}=e,b=iD(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),m=n("col",a),[g,y,S]=oD(m);let C={};lD.forEach(R=>{let N={};const P=e[R];typeof P=="number"?N.span=P:typeof P=="object"&&(N=P||{}),delete b[R],C=Object.assign(Object.assign({},C),{[`${m}-${R}-${N.span}`]:N.span!==void 0,[`${m}-${R}-order-${N.order}`]:N.order||N.order===0,[`${m}-${R}-offset-${N.offset}`]:N.offset||N.offset===0,[`${m}-${R}-push-${N.push}`]:N.push||N.push===0,[`${m}-${R}-pull-${N.pull}`]:N.pull||N.pull===0,[`${m}-${R}-flex-${N.flex}`]:N.flex||N.flex==="auto",[`${m}-rtl`]:r==="rtl"})});const E=he(m,{[`${m}-${l}`]:l!==void 0,[`${m}-order-${s}`]:s,[`${m}-offset-${u}`]:u,[`${m}-push-${c}`]:c,[`${m}-pull-${d}`]:d},h,C,y,S),x={};if(o&&o[0]>0){const R=o[0]/2;x.paddingLeft=R,x.paddingRight=R}return w&&(x.flex=aD(w),i===!1&&!x.minWidth&&(x.minWidth=0)),g(f.createElement("div",Object.assign({},b,{style:Object.assign(Object.assign({},x),v),className:E,ref:t}),p))}),k2=sD;var uD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{if(typeof e=="string"&&r(e),typeof e=="object")for(let i=0;i{o()},[JSON.stringify(e),t]),n}const cD=f.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:i,style:a,children:l,gutter:s=0,wrap:u}=e,c=uD(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:d,direction:h}=f.useContext($t),[p,w]=f.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[v,b]=f.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),m=Z1(o,v),g=Z1(r,v),y=f.useRef(s),S=w8();f.useEffect(()=>{const O=S.subscribe($=>{b($);const M=y.current||0;(!Array.isArray(M)&&typeof M=="object"||Array.isArray(M)&&(typeof M[0]=="object"||typeof M[1]=="object"))&&w($)});return()=>S.unsubscribe(O)},[]);const C=()=>{const O=[void 0,void 0];return(Array.isArray(s)?s:[s,void 0]).forEach((M,T)=>{if(typeof M=="object")for(let k=0;k0?P[0]/-2:void 0;A&&(L.marginLeft=A,L.marginRight=A),[,L.rowGap]=P;const[_,z]=P,I=f.useMemo(()=>({gutter:[_,z],wrap:u}),[_,z,u]);return x(f.createElement(A2.Provider,{value:I},f.createElement("div",Object.assign({},c,{className:F,style:Object.assign(Object.assign({},L),a),ref:t}),l)))}),fD=cD;function ra(e){return!!(e.addonBefore||e.addonAfter)}function gh(e){return!!(e.prefix||e.suffix||e.allowClear)}function Zc(e,t,n,r){if(n){var o=t;if(t.type==="click"){var i=e.cloneNode(!0);o=Object.create(t,{target:{value:i},currentTarget:{value:i}}),i.value="",n(o);return}if(r!==void 0){var a=e.cloneNode(!0);o=Object.create(t,{target:{value:a},currentTarget:{value:a}}),a.type!=="file"&&(a.value=r),n(o);return}n(o)}}function dD(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var F2=function(t){var n,r,o=t.inputElement,i=t.prefixCls,a=t.prefix,l=t.suffix,s=t.addonBefore,u=t.addonAfter,c=t.className,d=t.style,h=t.disabled,p=t.readOnly,w=t.focused,v=t.triggerFocus,b=t.allowClear,m=t.value,g=t.handleReset,y=t.hidden,S=t.classes,C=t.classNames,E=t.dataAttrs,x=t.styles,R=t.components,N=(R==null?void 0:R.affixWrapper)||"span",P=(R==null?void 0:R.groupWrapper)||"span",F=(R==null?void 0:R.wrapper)||"span",L=(R==null?void 0:R.groupAddon)||"span",A=f.useRef(null),_=function(U){var Y;(Y=A.current)!==null&&Y!==void 0&&Y.contains(U.target)&&(v==null||v())},z=function(){var U;if(!b)return null;var Y=!h&&!p&&m,X="".concat(i,"-clear-icon"),K=Ke(b)==="object"&&b!==null&&b!==void 0&&b.clearIcon?b.clearIcon:"✖";return j.createElement("span",{onClick:g,onMouseDown:function(te){return te.preventDefault()},className:he(X,(U={},H(U,"".concat(X,"-hidden"),!Y),H(U,"".concat(X,"-has-suffix"),!!l),U)),role:"button",tabIndex:-1},K)},I=f.cloneElement(o,{value:m,hidden:y,className:he((n=o.props)===null||n===void 0?void 0:n.className,!gh(t)&&!ra(t)&&c)||null,style:G(G({},(r=o.props)===null||r===void 0?void 0:r.style),!gh(t)&&!ra(t)?d:{})});if(gh(t)){var O,$="".concat(i,"-affix-wrapper"),M=he($,(O={},H(O,"".concat($,"-disabled"),h),H(O,"".concat($,"-focused"),w),H(O,"".concat($,"-readonly"),p),H(O,"".concat($,"-input-with-clear-btn"),l&&b&&m),O),!ra(t)&&c,S==null?void 0:S.affixWrapper,C==null?void 0:C.affixWrapper),T=(l||b)&&j.createElement("span",{className:he("".concat(i,"-suffix"),C==null?void 0:C.suffix),style:x==null?void 0:x.suffix},z(),l);I=j.createElement(N,De({className:M,style:G(G({},ra(t)?void 0:d),x==null?void 0:x.affixWrapper),hidden:!ra(t)&&y,onClick:_},E==null?void 0:E.affixWrapper,{ref:A}),a&&j.createElement("span",{className:he("".concat(i,"-prefix"),C==null?void 0:C.prefix),style:x==null?void 0:x.prefix},a),f.cloneElement(o,{value:m,hidden:null}),T)}if(ra(t)){var k="".concat(i,"-group"),D="".concat(k,"-addon"),B=he("".concat(i,"-wrapper"),k,S==null?void 0:S.wrapper),V=he("".concat(i,"-group-wrapper"),c,S==null?void 0:S.group);return j.createElement(P,{className:V,style:d,hidden:y},j.createElement(F,{className:B},s&&j.createElement(L,{className:D},s),f.cloneElement(I,{hidden:null}),u&&j.createElement(L,{className:D},u)))}return I},hD=["show"];function z2(e,t){return f.useMemo(function(){var n={};t&&(n.show=Ke(t)==="object"&&t.formatter?t.formatter:!!t),n=G(G({},n),e);var r=n,o=r.show,i=mt(r,hD);return G(G({},i),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:i.strategy||function(a){return a.length}})},[e,t])}var mD=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],pD=f.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,l=e.onKeyDown,s=e.prefixCls,u=s===void 0?"rc-input":s,c=e.disabled,d=e.htmlSize,h=e.className,p=e.maxLength,w=e.suffix,v=e.showCount,b=e.count,m=e.type,g=m===void 0?"text":m,y=e.classes,S=e.classNames,C=e.styles,E=e.onCompositionStart,x=e.onCompositionEnd,R=mt(e,mD),N=f.useState(!1),P=Q(N,2),F=P[0],L=P[1],A=j.useRef(!1),_=f.useRef(null),z=function(re){_.current&&dD(_.current,re)},I=Vr(e.defaultValue,{value:e.value}),O=Q(I,2),$=O[0],M=O[1],T=$==null?"":String($),k=j.useState(null),D=Q(k,2),B=D[0],V=D[1],W=z2(b,v),U=W.max||p,Y=W.strategy(T),X=!!U&&Y>U;f.useImperativeHandle(t,function(){return{focus:z,blur:function(){var re;(re=_.current)===null||re===void 0||re.blur()},setSelectionRange:function(re,ue,ce){var ge;(ge=_.current)===null||ge===void 0||ge.setSelectionRange(re,ue,ce)},select:function(){var re;(re=_.current)===null||re===void 0||re.select()},input:_.current}}),f.useEffect(function(){L(function(J){return J&&c?!1:J})},[c]);var K=function(re,ue){var ce=ue;if(!A.current&&W.exceedFormatter&&W.max&&W.strategy(ue)>W.max&&(ce=W.exceedFormatter(ue,{max:W.max}),ue!==ce)){var ge,Pe;V([((ge=_.current)===null||ge===void 0?void 0:ge.selectionStart)||0,((Pe=_.current)===null||Pe===void 0?void 0:Pe.selectionEnd)||0])}M(ce),_.current&&Zc(_.current,re,r,ce)};j.useEffect(function(){if(B){var J;(J=_.current)===null||J===void 0||J.setSelectionRange.apply(J,be(B))}},[B]);var q=function(re){K(re,re.target.value)},te=function(re){A.current=!1,K(re,re.currentTarget.value),x==null||x(re)},ne=function(re){a&&re.key==="Enter"&&a(re),l==null||l(re)},ee=function(re){L(!0),o==null||o(re)},Z=function(re){L(!1),i==null||i(re)},ae=function(re){M(""),z(),_.current&&Zc(_.current,re,r)},pe=X&&"".concat(u,"-out-of-range"),de=function(){var re=Li(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]);return j.createElement("input",De({autoComplete:n},re,{onChange:q,onFocus:ee,onBlur:Z,onKeyDown:ne,className:he(u,H({},"".concat(u,"-disabled"),c),S==null?void 0:S.input),style:C==null?void 0:C.input,ref:_,size:d,type:g,onCompositionStart:function(ce){A.current=!0,E==null||E(ce)},onCompositionEnd:te}))},oe=function(){var re=Number(U)>0;if(w||W.show){var ue=W.showFormatter?W.showFormatter({value:T,count:Y,maxLength:U}):"".concat(Y).concat(re?" / ".concat(U):"");return j.createElement(j.Fragment,null,W.show&&j.createElement("span",{className:he("".concat(u,"-show-count-suffix"),H({},"".concat(u,"-show-count-has-suffix"),!!w),S==null?void 0:S.count),style:G({},C==null?void 0:C.count)},ue),w)}return null};return j.createElement(F2,De({},R,{prefixCls:u,className:he(h,pe),inputElement:de(),handleReset:ae,value:T,focused:F,triggerFocus:z,suffix:oe(),disabled:c,classes:y,classNames:S,styles:C}))});const gD=e=>{const{getPrefixCls:t,direction:n}=f.useContext($t),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[l,s]=dv(a),u=he(i,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},s,o),c=f.useContext(Mr),d=f.useMemo(()=>Object.assign(Object.assign({},c),{isFormItemInput:!1}),[c]);return l(f.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},f.createElement(Mr.Provider,{value:d},e.children)))},vD=gD;function L2(e,t){const n=f.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,i,a,l;!((o=e.current)===null||o===void 0)&&o.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((l=e.current)===null||l===void 0||l.input.removeAttribute("value"))}))};return f.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function yD(e){return!!(e.prefix||e.suffix||e.allowClear)}var wD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:r,bordered:o=!0,status:i,size:a,disabled:l,onBlur:s,onFocus:u,suffix:c,allowClear:d,addonAfter:h,addonBefore:p,className:w,style:v,styles:b,rootClassName:m,onChange:g,classNames:y}=e,S=wD(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:C,direction:E,input:x}=j.useContext($t),R=C("input",r),N=f.useRef(null),P=al(R),[F,L,A]=dv(R,P),{compactSize:_,compactItemClassnames:z}=Yf(R,E),I=Hi(q=>{var te;return(te=a??_)!==null&&te!==void 0?te:q}),O=j.useContext(Di),$=l??O,{status:M,hasFeedback:T,feedbackIcon:k}=f.useContext(Mr),D=cv(M,i),B=yD(e)||!!T;f.useRef(B);const V=L2(N,!0),W=q=>{V(),s==null||s(q)},U=q=>{V(),u==null||u(q)},Y=q=>{V(),g==null||g(q)},X=(T||c)&&j.createElement(j.Fragment,null,c,T&&k);let K;return typeof d=="object"&&(d!=null&&d.clearIcon)?K=d:d&&(K={clearIcon:j.createElement(Kf,null)}),F(j.createElement(pD,Object.assign({ref:vo(t,N),prefixCls:R,autoComplete:x==null?void 0:x.autoComplete},S,{disabled:$,onBlur:W,onFocus:U,style:Object.assign(Object.assign({},x==null?void 0:x.style),v),styles:Object.assign(Object.assign({},x==null?void 0:x.styles),b),suffix:X,allowClear:K,className:he(w,m,A,P,L,z,x==null?void 0:x.className),onChange:Y,addonAfter:h&&j.createElement(ip,null,j.createElement(O1,{override:!0,status:!0},h)),addonBefore:p&&j.createElement(ip,null,j.createElement(O1,{override:!0,status:!0},p)),classNames:Object.assign(Object.assign(Object.assign({},y),x==null?void 0:x.classNames),{input:he({[`${R}-sm`]:I==="small",[`${R}-lg`]:I==="large",[`${R}-rtl`]:E==="rtl",[`${R}-borderless`]:!o},!B&&Pa(R,D),y==null?void 0:y.input,(n=x==null?void 0:x.classNames)===null||n===void 0?void 0:n.input,L)}),classes:{affixWrapper:he({[`${R}-affix-wrapper-sm`]:I==="small",[`${R}-affix-wrapper-lg`]:I==="large",[`${R}-affix-wrapper-rtl`]:E==="rtl",[`${R}-affix-wrapper-borderless`]:!o},Pa(`${R}-affix-wrapper`,D,T),L),wrapper:he({[`${R}-group-rtl`]:E==="rtl"},L),group:he({[`${R}-group-wrapper-sm`]:I==="small",[`${R}-group-wrapper-lg`]:I==="large",[`${R}-group-wrapper-rtl`]:E==="rtl",[`${R}-group-wrapper-disabled`]:$},Pa(`${R}-group-wrapper`,D,T),L)}})))}),hv=bD;var xD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};const CD=xD;var ED=function(t,n){return f.createElement(Pr,De({},t,{ref:n,icon:CD}))};const $D=f.forwardRef(ED);var _D={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};const RD=_D;var ID=function(t,n){return f.createElement(Pr,De({},t,{ref:n,icon:RD}))};const OD=f.forwardRef(ID);var MD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);oe?f.createElement(OD,null):f.createElement($D,null),PD={click:"onClick",hover:"onMouseOver"},TD=f.forwardRef((e,t)=>{const{visibilityToggle:n=!0}=e,r=typeof n=="object"&&n.visible!==void 0,[o,i]=f.useState(()=>r?n.visible:!1),a=f.useRef(null);f.useEffect(()=>{r&&i(n.visible)},[r,n]);const l=L2(a),s=()=>{const{disabled:C}=e;C||(o&&l(),i(E=>{var x;const R=!E;return typeof n=="object"&&((x=n.onVisibleChange)===null||x===void 0||x.call(n,R)),R}))},u=C=>{const{action:E="click",iconRender:x=ND}=e,R=PD[E]||"",N=x(o),P={[R]:s,className:`${C}-icon`,key:"passwordIcon",onMouseDown:F=>{F.preventDefault()},onMouseUp:F=>{F.preventDefault()}};return f.cloneElement(f.isValidElement(N)?N:f.createElement("span",null,N),P)},{className:c,prefixCls:d,inputPrefixCls:h,size:p}=e,w=MD(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:v}=f.useContext($t),b=v("input",h),m=v("input-password",d),g=n&&u(m),y=he(m,c,{[`${m}-${p}`]:!!p}),S=Object.assign(Object.assign({},Li(w,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:y,prefixCls:b,suffix:g});return p&&(S.size=p),f.createElement(hv,Object.assign({ref:vo(t,a)},S))}),AD=TD;var kD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:l=!1,addonAfter:s,loading:u,disabled:c,onSearch:d,onChange:h,onCompositionStart:p,onCompositionEnd:w}=e,v=kD(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:b,direction:m}=f.useContext($t),g=f.useRef(!1),y=b("input-search",n),S=b("input",r),{compactSize:C}=Yf(y,m),E=Hi(T=>{var k;return(k=i??C)!==null&&k!==void 0?k:T}),x=f.useRef(null),R=T=>{T&&T.target&&T.type==="click"&&d&&d(T.target.value,T,{source:"clear"}),h&&h(T)},N=T=>{var k;document.activeElement===((k=x.current)===null||k===void 0?void 0:k.input)&&T.preventDefault()},P=T=>{var k,D;d&&d((D=(k=x.current)===null||k===void 0?void 0:k.input)===null||D===void 0?void 0:D.value,T,{source:"input"})},F=T=>{g.current||u||P(T)},L=typeof l=="boolean"?f.createElement(w2,null):null,A=`${y}-button`;let _;const z=l||{},I=z.type&&z.type.__ANT_BUTTON===!0;I||z.type==="button"?_=Xa(z,Object.assign({onMouseDown:N,onClick:T=>{var k,D;(D=(k=z==null?void 0:z.props)===null||k===void 0?void 0:k.onClick)===null||D===void 0||D.call(k,T),P(T)},key:"enterButton"},I?{className:A,size:E}:{})):_=f.createElement(zE,{className:A,type:l?"primary":void 0,size:E,disabled:c,key:"enterButton",onMouseDown:N,onClick:P,loading:u,icon:L},l),s&&(_=[_,Xa(s,{key:"addonAfter"})]);const O=he(y,{[`${y}-rtl`]:m==="rtl",[`${y}-${E}`]:!!E,[`${y}-with-button`]:!!l},o),$=T=>{g.current=!0,p==null||p(T)},M=T=>{g.current=!1,w==null||w(T)};return f.createElement(hv,Object.assign({ref:vo(x,t),onPressEnter:F},v,{size:E,onCompositionStart:$,onCompositionEnd:M,prefixCls:S,addonAfter:_,suffix:a,onChange:R,className:O,disabled:c}))}),zD=FD;var LD=` + 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; +`,DD=["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"],vh={},er;function jD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&vh[n])return vh[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=DD.map(function(u){return"".concat(u,":").concat(r.getPropertyValue(u))}).join(";"),s={sizingStyle:l,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(vh[n]=s),s}function HD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;er||(er=document.createElement("textarea"),er.setAttribute("tab-index","-1"),er.setAttribute("aria-hidden","true"),document.body.appendChild(er)),e.getAttribute("wrap")?er.setAttribute("wrap",e.getAttribute("wrap")):er.removeAttribute("wrap");var o=jD(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,s=o.sizingStyle;er.setAttribute("style","".concat(s,";").concat(LD)),er.value=e.value||e.placeholder||"";var u=void 0,c=void 0,d,h=er.scrollHeight;if(l==="border-box"?h+=a:l==="content-box"&&(h-=i),n!==null||r!==null){er.value=" ";var p=er.scrollHeight-i;n!==null&&(u=p*n,l==="border-box"&&(u=u+i+a),h=Math.max(u,h)),r!==null&&(c=p*r,l==="border-box"&&(c=c+i+a),d=h>c?"":"hidden",h=Math.min(c,h))}var w={height:h,overflowY:d,resize:"none"};return u&&(w.minHeight=u),c&&(w.maxHeight=c),w}var BD=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],yh=0,wh=1,Sh=2,VD=f.forwardRef(function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var o=n.defaultValue,i=n.value,a=n.autoSize,l=n.onResize,s=n.className,u=n.style,c=n.disabled,d=n.onChange;n.onInternalAutoSize;var h=mt(n,BD),p=Vr(o,{value:i,postState:function(V){return V??""}}),w=Q(p,2),v=w[0],b=w[1],m=function(V){b(V.target.value),d==null||d(V)},g=f.useRef();f.useImperativeHandle(t,function(){return{textArea:g.current}});var y=f.useMemo(function(){return a&&Ke(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),S=Q(y,2),C=S[0],E=S[1],x=!!a,R=function(){try{if(document.activeElement===g.current){var V=g.current,W=V.selectionStart,U=V.selectionEnd,Y=V.scrollTop;g.current.setSelectionRange(W,U),g.current.scrollTop=Y}}catch{}},N=f.useState(Sh),P=Q(N,2),F=P[0],L=P[1],A=f.useState(),_=Q(A,2),z=_[0],I=_[1],O=function(){L(yh)};xt(function(){x&&O()},[i,C,E,x]),xt(function(){if(F===yh)L(wh);else if(F===wh){var B=HD(g.current,!1,C,E);L(Sh),I(B)}else R()},[F]);var $=f.useRef(),M=function(){Ot.cancel($.current)},T=function(V){F===Sh&&(l==null||l(V),a&&(M(),$.current=Ot(function(){O()})))};f.useEffect(function(){return M},[]);var k=x?z:null,D=G(G({},u),k);return(F===yh||F===wh)&&(D.overflowY="hidden",D.overflowX="hidden"),f.createElement(ri,{onResize:T,disabled:!(a||l)},f.createElement("textarea",De({},h,{ref:g,style:D,className:he(r,s,H({},"".concat(r,"-disabled"),c)),disabled:c,value:v,onChange:m})))}),WD=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],UD=j.forwardRef(function(e,t){var n,r,o=e.defaultValue,i=e.value,a=e.onFocus,l=e.onBlur,s=e.onChange,u=e.allowClear,c=e.maxLength,d=e.onCompositionStart,h=e.onCompositionEnd,p=e.suffix,w=e.prefixCls,v=w===void 0?"rc-textarea":w,b=e.classes,m=e.showCount,g=e.count,y=e.className,S=e.style,C=e.disabled,E=e.hidden,x=e.classNames,R=e.styles,N=e.onResize,P=mt(e,WD),F=Vr(o,{value:i,defaultValue:o}),L=Q(F,2),A=L[0],_=L[1],z=A==null?"":String(A),I=j.useState(!1),O=Q(I,2),$=O[0],M=O[1],T=j.useRef(!1),k=j.useState(null),D=Q(k,2),B=D[0],V=D[1],W=f.useRef(null),U=function(){var fe;return(fe=W.current)===null||fe===void 0?void 0:fe.textArea},Y=function(){U().focus()};f.useImperativeHandle(t,function(){return{resizableTextArea:W.current,focus:Y,blur:function(){U().blur()}}}),f.useEffect(function(){M(function(ve){return!C&&ve})},[C]);var X=j.useState(null),K=Q(X,2),q=K[0],te=K[1];j.useEffect(function(){if(q){var ve;(ve=U()).setSelectionRange.apply(ve,be(q))}},[q]);var ne=z2(g,m),ee=(n=ne.max)!==null&&n!==void 0?n:c,Z=Number(ee)>0,ae=ne.strategy(z),pe=!!ee&&ae>ee,de=function(fe,je){var Ze=je;!T.current&&ne.exceedFormatter&&ne.max&&ne.strategy(je)>ne.max&&(Ze=ne.exceedFormatter(je,{max:ne.max}),je!==Ze&&te([U().selectionStart||0,U().selectionEnd||0])),_(Ze),Zc(fe.currentTarget,fe,s,Ze)},oe=function(fe){T.current=!0,d==null||d(fe)},J=function(fe){T.current=!1,de(fe,fe.currentTarget.value),h==null||h(fe)},re=function(fe){de(fe,fe.target.value)},ue=function(fe){var je=P.onPressEnter,Ze=P.onKeyDown;fe.key==="Enter"&&je&&je(fe),Ze==null||Ze(fe)},ce=function(fe){M(!0),a==null||a(fe)},ge=function(fe){M(!1),l==null||l(fe)},Pe=function(fe){_(""),Y(),Zc(U(),fe,s)},Oe=p,Ce;ne.show&&(ne.showFormatter?Ce=ne.showFormatter({value:z,count:ae,maxLength:ee}):Ce="".concat(ae).concat(Z?" / ".concat(ee):""),Oe=j.createElement(j.Fragment,null,Oe,j.createElement("span",{className:he("".concat(v,"-data-count"),x==null?void 0:x.count),style:R==null?void 0:R.count},Ce)));var tt=function(fe){var je;N==null||N(fe),(je=U())!==null&&je!==void 0&&je.style.height&&V(!0)},Qe=!P.autoSize&&!m&&!u,ze=j.createElement(F2,{value:z,allowClear:u,handleReset:Pe,suffix:Oe,prefixCls:v,classes:{affixWrapper:he(b==null?void 0:b.affixWrapper,(r={},H(r,"".concat(v,"-show-count"),m),H(r,"".concat(v,"-textarea-allow-clear"),u),r))},disabled:C,focused:$,className:he(y,pe&&"".concat(v,"-out-of-range")),style:G(G({},S),B&&!Qe?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ce=="string"?Ce:void 0}},hidden:E,inputElement:j.createElement(VD,De({},P,{maxLength:c,onKeyDown:ue,onChange:re,onFocus:ce,onBlur:ge,onCompositionStart:oe,onCompositionEnd:J,className:he(x==null?void 0:x.textarea),style:G(G({},R==null?void 0:R.textarea),{},{resize:S==null?void 0:S.resize}),disabled:C,prefixCls:v,onResize:tt,ref:W}))});return ze}),KD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:r,bordered:o=!0,size:i,disabled:a,status:l,allowClear:s,classNames:u,rootClassName:c,className:d}=e,h=KD(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className"]),{getPrefixCls:p,direction:w}=f.useContext($t),v=Hi(i),b=f.useContext(Di),m=a??b,{status:g,hasFeedback:y,feedbackIcon:S}=f.useContext(Mr),C=cv(g,l),E=f.useRef(null);f.useImperativeHandle(t,()=>{var A;return{resizableTextArea:(A=E.current)===null||A===void 0?void 0:A.resizableTextArea,focus:_=>{var z,I;SD((I=(z=E.current)===null||z===void 0?void 0:z.resizableTextArea)===null||I===void 0?void 0:I.textArea,_)},blur:()=>{var _;return(_=E.current)===null||_===void 0?void 0:_.blur()}}});const x=p("input",r);let R;typeof s=="object"&&(s!=null&&s.clearIcon)?R=s:s&&(R={clearIcon:f.createElement(Kf,null)});const N=al(x),[P,F,L]=dv(x,N);return P(f.createElement(UD,Object.assign({},h,{disabled:m,allowClear:R,className:he(L,N,d,c),classes:{affixWrapper:he(`${x}-textarea-affix-wrapper`,{[`${x}-affix-wrapper-rtl`]:w==="rtl",[`${x}-affix-wrapper-borderless`]:!o,[`${x}-affix-wrapper-sm`]:v==="small",[`${x}-affix-wrapper-lg`]:v==="large",[`${x}-textarea-show-count`]:e.showCount||((n=e.count)===null||n===void 0?void 0:n.show)},Pa(`${x}-affix-wrapper`,C),F)},classNames:Object.assign(Object.assign({},u),{textarea:he({[`${x}-borderless`]:!o,[`${x}-sm`]:v==="small",[`${x}-lg`]:v==="large"},Pa(x,C),F,u==null?void 0:u.textarea)}),prefixCls:x,suffix:y&&f.createElement("span",{className:`${x}-textarea-suffix`},S),ref:E})))}),XD=GD,Gs=hv;Gs.Group=vD;Gs.Search=zD;Gs.TextArea=XD;Gs.Password=AD;const Lu=Gs;function Jc(e){const[t,n]=f.useState(e);return f.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const qD=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut}, + opacity ${e.motionDurationSlow} ${e.motionEaseInOut}, + transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},YD=qD,QD=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},label:{fontSize:e.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${Ae(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),J1=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},ZD=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},yo(e)),QD(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},J1(e,e.controlHeightSM)),"&-large":Object.assign({},J1(e,e.controlHeightLG))})}},JD=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o,labelRequiredMarkColor:i,labelColor:a,labelFontSize:l,labelHeight:s,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:c,itemMarginBottom:d}=e;return{[t]:Object.assign(Object.assign({},yo(e)),{marginBottom:d,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, + &-hidden.${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:s,color:a,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:i,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:u,marginInlineEnd:c},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${o}-col-'"]):not([class*="' ${o}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:iv,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},ej=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},tj=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${n}-label, + > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},ia=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),nj=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:ia(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},rj=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${n}-label, + .${r}-col-24${n}-label, + .${r}-col-xl-24${n}-label`]:ia(e),[`@media (max-width: ${Ae(e.screenXSMax)})`]:[nj(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:ia(e)}}],[`@media (max-width: ${Ae(e.screenSMMax)})`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:ia(e)}},[`@media (max-width: ${Ae(e.screenMDMax)})`]:{[t]:{[`.${r}-col-md-24${n}-label`]:ia(e)}},[`@media (max-width: ${Ae(e.screenLGMax)})`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:ia(e)}}}},oj=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0}),D2=(e,t)=>Et(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),mv=wo("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=D2(e,n);return[ZD(r),JD(r),YD(r),ej(r),tj(r),rj(r),oL(r),iv]},oj,{order:-1e3}),ew=[];function bh(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const ij=e=>{let{help:t,helpStatus:n,errors:r=ew,warnings:o=ew,className:i,fieldId:a,onVisibleChanged:l}=e;const{prefixCls:s}=f.useContext(rv),u=`${s}-item-explain`,c=al(s),[d,h,p]=mv(s,c),w=f.useMemo(()=>a1(s),[s]),v=Jc(r),b=Jc(o),m=f.useMemo(()=>t!=null?[bh(t,"help",n)]:[].concat(be(v.map((y,S)=>bh(y,"error","error",S))),be(b.map((y,S)=>bh(y,"warning","warning",S)))),[t,n,v,b]),g={};return a&&(g.id=`${a}_help`),d(f.createElement(ol,{motionDeadline:w.motionDeadline,motionName:`${s}-show-help`,visible:!!m.length,onVisibleChanged:l},y=>{const{className:S,style:C}=y;return f.createElement("div",Object.assign({},g,{className:he(u,S,p,c,i,h),style:C,role:"alert"}),f.createElement(N5,Object.assign({keys:m},a1(s),{motionName:`${s}-show-help-item`,component:!1}),E=>{const{key:x,error:R,errorStatus:N,className:P,style:F}=E;return f.createElement("div",{key:x,className:he(P,{[`${u}-${N}`]:N}),style:F},R)}))}))},j2=ij,aj=["parentNode"],lj="form_item";function Zl(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function H2(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:aj.includes(n)?`${lj}_${n}`:n}function B2(e,t,n,r,o,i){let a=r;return i!==void 0?a=i:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||o&&n.validated)&&(a="success"),a}function tw(e){return Zl(e).join("_")}function V2(e){const[t]=nv(),n=f.useRef({}),r=f.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>i=>{const a=tw(o);i?n.current[a]=i:delete n.current[a]}},scrollToField:function(o){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const a=Zl(o),l=H2(a,r.__INTERNAL__.name),s=l?document.getElementById(l):null;s&&Sk(s,Object.assign({scrollMode:"if-needed",block:"nearest"},i))},getFieldInstance:o=>{const i=tw(o);return n.current[i]}}),[e,t]);return[r]}var sj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const n=f.useContext(Di),{getPrefixCls:r,direction:o,form:i}=f.useContext($t),{prefixCls:a,className:l,rootClassName:s,size:u,disabled:c=n,form:d,colon:h,labelAlign:p,labelWrap:w,labelCol:v,wrapperCol:b,hideRequiredMark:m,layout:g="horizontal",scrollToFirstError:y,requiredMark:S,onFinishFailed:C,name:E,style:x,feedbackIcons:R}=e,N=sj(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),P=Hi(u),F=f.useContext(LC),L=f.useMemo(()=>S!==void 0?S:m?!1:i&&i.requiredMark!==void 0?i.requiredMark:!0,[m,S,i]),A=h??(i==null?void 0:i.colon),_=r("form",a),z=al(_),[I,O,$]=mv(_,z),M=he(_,`${_}-${g}`,{[`${_}-hide-required-mark`]:L===!1,[`${_}-rtl`]:o==="rtl",[`${_}-${P}`]:P},$,z,O,i==null?void 0:i.className,l,s),[T]=V2(d),{__INTERNAL__:k}=T;k.name=E;const D=f.useMemo(()=>({name:E,labelAlign:p,labelCol:v,labelWrap:w,wrapperCol:b,vertical:g==="vertical",colon:A,requiredMark:L,itemRef:k.itemRef,form:T,feedbackIcons:R}),[E,p,v,b,g,A,L,T,R]);f.useImperativeHandle(t,()=>T);const B=(W,U)=>{if(W){let Y={block:"nearest"};typeof W=="object"&&(Y=W),T.scrollToField(U,Y)}},V=W=>{if(C==null||C(W),W.errorFields.length){const U=W.errorFields[0].name;if(y!==void 0){B(y,U);return}i&&i.scrollToFirstError!==void 0&&B(i.scrollToFirstError,U)}};return I(f.createElement(qC,{disabled:c},f.createElement(Bs.Provider,{value:P},f.createElement(XE,{validateMessages:F},f.createElement(po.Provider,{value:D},f.createElement(ll,Object.assign({id:E},N,{name:E,onFinishFailed:V,form:T,style:Object.assign(Object.assign({},i==null?void 0:i.style),x),className:M})))))))},cj=f.forwardRef(uj),fj=cj;function dj(e){if(typeof e=="function")return e;const t=Wa(e);return t.length<=1?t[0]:t}const W2=()=>{const{status:e,errors:t=[],warnings:n=[]}=f.useContext(Mr);return{status:e,errors:t,warnings:n}};W2.Context=Mr;const hj=W2;function mj(e){const[t,n]=f.useState(e),r=f.useRef(null),o=f.useRef([]),i=f.useRef(!1);f.useEffect(()=>(i.current=!1,()=>{i.current=!0,Ot.cancel(r.current),r.current=null}),[]);function a(l){i.current||(r.current===null&&(o.current=[],r.current=Ot(()=>{r.current=null,n(s=>{let u=s;return o.current.forEach(c=>{u=c(u)}),u})})),o.current.push(l))}return[t,a]}function pj(){const{itemRef:e}=f.useContext(po),t=f.useRef({});function n(r,o){const i=o&&typeof o=="object"&&o.ref,a=r.join("_");return(t.current.name!==a||t.current.originRef!==i)&&(t.current.name=a,t.current.originRef=i,t.current.ref=vo(e(r),i)),t.current.ref}return n}const gj=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},vj=lE(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=D2(e,n);return[gj(r)]}),yj=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:o,errors:i,warnings:a,_internalItemRender:l,extra:s,help:u,fieldId:c,marginBottom:d,onErrorVisibleChanged:h}=e,p=`${t}-item`,w=f.useContext(po),v=r||w.wrapperCol||{},b=he(`${p}-control`,v.className),m=f.useMemo(()=>Object.assign({},w),[w]);delete m.labelCol,delete m.wrapperCol;const g=f.createElement("div",{className:`${p}-control-input`},f.createElement("div",{className:`${p}-control-input-content`},o)),y=f.useMemo(()=>({prefixCls:t,status:n}),[t,n]),S=d!==null||i.length||a.length?f.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},f.createElement(rv.Provider,{value:y},f.createElement(j2,{fieldId:c,errors:i,warnings:a,help:u,helpStatus:n,className:`${p}-explain-connected`,onVisibleChanged:h})),!!d&&f.createElement("div",{style:{width:0,height:d}})):null,C={};c&&(C.id=`${c}_extra`);const E=s?f.createElement("div",Object.assign({},C,{className:`${p}-extra`}),s):null,x=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:g,errorList:S,extra:E}):f.createElement(f.Fragment,null,g,S,E);return f.createElement(po.Provider,{value:m},f.createElement(k2,Object.assign({},v,{className:b}),x),f.createElement(vj,{prefixCls:t}))},wj=yj;var Sj={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};const bj=Sj;var xj=function(t,n){return f.createElement(Pr,De({},t,{ref:n,icon:bj}))};const Cj=f.forwardRef(xj);var Ej=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let{prefixCls:t,label:n,htmlFor:r,labelCol:o,labelAlign:i,colon:a,required:l,requiredMark:s,tooltip:u}=e;var c;const[d]=jC("Form"),{vertical:h,labelAlign:p,labelCol:w,labelWrap:v,colon:b}=f.useContext(po);if(!n)return null;const m=o||w||{},g=i||p,y=`${t}-item-label`,S=he(y,g==="left"&&`${y}-left`,m.className,{[`${y}-wrap`]:!!v});let C=n;const E=a===!0||b!==!1&&a!==!1;E&&!h&&typeof n=="string"&&n.trim()!==""&&(C=n.replace(/[:|:]\s*$/,""));const R=$j(u);if(R){const{icon:L=f.createElement(Cj,null)}=R,A=Ej(R,["icon"]),_=f.createElement(L8,Object.assign({},A),f.cloneElement(L,{className:`${t}-item-tooltip`,title:"",onClick:z=>{z.preventDefault()},tabIndex:null}));C=f.createElement(f.Fragment,null,C,_)}const N=s==="optional",P=typeof s=="function";P?C=s(C,{required:!!l}):N&&!l&&(C=f.createElement(f.Fragment,null,C,f.createElement("span",{className:`${t}-item-optional`,title:""},(d==null?void 0:d.optional)||((c=Ti.Form)===null||c===void 0?void 0:c.optional))));const F=he({[`${t}-item-required`]:l,[`${t}-item-required-mark-optional`]:N||P,[`${t}-item-no-colon`]:!E});return f.createElement(k2,Object.assign({},m,{className:S}),f.createElement("label",{htmlFor:r,className:F,title:typeof n=="string"?n:""},C))},Rj=_j,Ij={success:ek,warning:fk,error:Kf,validating:Xf};function U2(e){let{children:t,errors:n,warnings:r,hasFeedback:o,validateStatus:i,prefixCls:a,meta:l,noStyle:s}=e;const u=`${a}-item`,{feedbackIcons:c}=f.useContext(po),d=B2(n,r,l,null,!!o,i),{isFormItemInput:h,status:p,hasFeedback:w,feedbackIcon:v}=f.useContext(Mr),b=f.useMemo(()=>{var m;let g;if(o){const S=o!==!0&&o.icons||c,C=d&&((m=S==null?void 0:S({status:d,errors:n,warnings:r}))===null||m===void 0?void 0:m[d]),E=d&&Ij[d];g=C!==!1&&E?f.createElement("span",{className:he(`${u}-feedback-icon`,`${u}-feedback-icon-${d}`)},C||f.createElement(E,null)):null}const y={status:d||"",errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:g,isFormItemInput:!0};return s&&(y.status=(d??p)||"",y.isFormItemInput=h,y.hasFeedback=!!(o??w),y.feedbackIcon=o!==void 0?y.feedbackIcon:v),y},[d,o,s,h,p]);return f.createElement(Mr.Provider,{value:b},t)}var Oj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{if(R&&S.current){const I=getComputedStyle(S.current);F(parseInt(I.marginBottom,10))}},[R,N]);const L=I=>{I||F(null)},_=function(){let I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const O=I?C:u.errors,$=I?E:u.warnings;return B2(O,$,u,"",!!c,s)}(),z=he(g,n,r,{[`${g}-with-help`]:x||C.length||E.length,[`${g}-has-feedback`]:_&&c,[`${g}-has-success`]:_==="success",[`${g}-has-warning`]:_==="warning",[`${g}-has-error`]:_==="error",[`${g}-is-validating`]:_==="validating",[`${g}-hidden`]:d});return f.createElement("div",{className:z,style:o,ref:S},f.createElement(fD,Object.assign({className:`${g}-row`},Li(m,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),f.createElement(Rj,Object.assign({htmlFor:p},e,{requiredMark:y,required:w??v,prefixCls:t})),f.createElement(wj,Object.assign({},e,u,{errors:C,warnings:E,prefixCls:t,status:_,help:i,marginBottom:P,onErrorVisibleChanged:L}),f.createElement(GE.Provider,{value:b},f.createElement(U2,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:c,validateStatus:_},h)))),!!P&&f.createElement("div",{className:`${g}-margin-offset`,style:{marginBottom:-P}}))}const Nj="__SPLIT__";function Pj(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>{const i=e[o],a=t[o];return i===a||typeof i=="function"||typeof a=="function"})}const Tj=f.memo(e=>{let{children:t}=e;return t},(e,t)=>Pj(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function nw(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Aj(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:i,shouldUpdate:a,rules:l,children:s,required:u,label:c,messageVariables:d,trigger:h="onChange",validateTrigger:p,hidden:w,help:v}=e,{getPrefixCls:b}=f.useContext($t),{name:m}=f.useContext(po),g=dj(s),y=typeof g=="function",S=f.useContext(GE),{validateTrigger:C}=f.useContext(ki),E=p!==void 0?p:C,x=t!=null,R=b("form",i),N=al(R),[P,F,L]=mv(R,N);Vg();const A=f.useContext(Os),_=f.useRef(),[z,I]=mj({}),[O,$]=$i(()=>nw()),M=U=>{const Y=A==null?void 0:A.getKey(U.name);if($(U.destroy?nw():U,!0),n&&v!==!1&&S){let X=U.name;if(U.destroy)X=_.current||X;else if(Y!==void 0){const[K,q]=Y;X=[K].concat(be(q)),_.current=X}S(U,X)}},T=(U,Y)=>{I(X=>{const K=Object.assign({},X),te=[].concat(be(U.name.slice(0,-1)),be(Y)).join(Nj);return U.destroy?delete K[te]:K[te]=U,K})},[k,D]=f.useMemo(()=>{const U=be(O.errors),Y=be(O.warnings);return Object.values(z).forEach(X=>{U.push.apply(U,be(X.errors||[])),Y.push.apply(Y,be(X.warnings||[]))}),[U,Y]},[z,O.errors,O.warnings]),B=pj();function V(U,Y,X){return n&&!w?f.createElement(U2,{prefixCls:R,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:O,errors:k,warnings:D,noStyle:!0},U):f.createElement(Mj,Object.assign({key:"row"},e,{className:he(r,L,N,F),prefixCls:R,fieldId:Y,isRequired:X,errors:k,warnings:D,meta:O,onSubItemMetaChange:T}),U)}if(!x&&!y&&!o)return P(V(g));let W={};return typeof c=="string"?W.label=c:t&&(W.label=String(t)),d&&(W=Object.assign(Object.assign({},W),d)),P(f.createElement(tv,Object.assign({},e,{messageVariables:W,trigger:h,validateTrigger:E,onMetaChange:M}),(U,Y,X)=>{const K=Zl(t).length&&Y?Y.name:[],q=H2(K,m),te=u!==void 0?u:!!(l&&l.some(Z=>{if(Z&&typeof Z=="object"&&Z.required&&!Z.warningOnly)return!0;if(typeof Z=="function"){const ae=Z(X);return ae&&ae.required&&!ae.warningOnly}return!1})),ne=Object.assign({},U);let ee=null;if(Array.isArray(g)&&x)ee=g;else if(!(y&&(!(a||o)||x))){if(!(o&&!y&&!x))if(Gf(g)){const Z=Object.assign(Object.assign({},g.props),ne);if(Z.id||(Z.id=q),v||k.length>0||D.length>0||e.extra){const de=[];(v||k.length>0)&&de.push(`${q}_help`),e.extra&&de.push(`${q}_extra`),Z["aria-describedby"]=de.join(" ")}k.length>0&&(Z["aria-invalid"]="true"),te&&(Z["aria-required"]="true"),el(g)&&(Z.ref=B(K,g)),new Set([].concat(be(Zl(h)),be(Zl(E)))).forEach(de=>{Z[de]=function(){for(var oe,J,re,ue,ce,ge=arguments.length,Pe=new Array(ge),Oe=0;Oe{var{prefixCls:t,children:n}=e,r=Fj(e,["prefixCls","children"]);const{getPrefixCls:o}=f.useContext($t),i=o("form",t),a=f.useMemo(()=>({prefixCls:i,status:"error"}),[i]);return f.createElement(VE,Object.assign({},r),(l,s,u)=>f.createElement(rv.Provider,{value:a},n(l.map(c=>Object.assign(Object.assign({},c),{fieldKey:c.key})),s,{errors:u.errors,warnings:u.warnings})))},Lj=zj;function Dj(){const{form:e}=f.useContext(po);return e}const So=fj;So.Item=kj;So.List=Lj;So.ErrorList=j2;So.useForm=V2;So.useFormInstance=Dj;So.useWatch=KE;So.Provider=XE;So.create=()=>{};const Fr=So;var jj=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],G2=f.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-switch":r,i=e.className,a=e.checked,l=e.defaultChecked,s=e.disabled,u=e.loadingIcon,c=e.checkedChildren,d=e.unCheckedChildren,h=e.onClick,p=e.onChange,w=e.onKeyDown,v=mt(e,jj),b=Vr(!1,{value:a,defaultValue:l}),m=Q(b,2),g=m[0],y=m[1];function S(R,N){var P=g;return s||(P=R,y(P),p==null||p(P,N)),P}function C(R){R.which===se.LEFT?S(!1,R):R.which===se.RIGHT&&S(!0,R),w==null||w(R)}function E(R){var N=S(!g,R);h==null||h(N,R)}var x=he(o,i,(n={},H(n,"".concat(o,"-checked"),g),H(n,"".concat(o,"-disabled"),s),n));return f.createElement("button",De({},v,{type:"button",role:"switch","aria-checked":g,disabled:s,className:x,ref:t,onKeyDown:C,onClick:E}),u,f.createElement("span",{className:"".concat(o,"-inner")},f.createElement("span",{className:"".concat(o,"-inner-checked")},c),f.createElement("span",{className:"".concat(o,"-inner-unchecked")},d)))});G2.displayName="Switch";const Hj=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:l,calc:s}=e,u=`${t}-inner`,c=Ae(s(l).add(s(r).mul(2)).equal()),d=Ae(s(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:Ae(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${u}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${d})`,marginInlineEnd:`calc(100% - ${c} + ${d})`},[`${u}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:s(s(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${u}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${u}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${d})`,marginInlineEnd:`calc(-100% + ${c} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${Ae(s(l).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${u}`]:{[`${u}-unchecked`]:{marginInlineStart:s(e.marginXXS).div(2).equal(),marginInlineEnd:s(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${u}`]:{[`${u}-checked`]:{marginInlineStart:s(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:s(e.marginXXS).div(2).equal()}}}}}}},Bj=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},Vj=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:i,calc:a}=e,l=`${t}-handle`;return{[t]:{[l]:{position:"absolute",top:n,insetInlineStart:n,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:a(i).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${Ae(a(i).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},Wj=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:i,handleSize:a,calc:l}=e,s=`${t}-inner`,u=Ae(l(a).add(l(r).mul(2)).equal()),c=Ae(l(i).mul(2).equal());return{[t]:{[s]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${s}-checked, ${s}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${c})`,marginInlineEnd:`calc(100% - ${u} + ${c})`},[`${s}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${s}`]:{paddingInlineStart:o,paddingInlineEnd:i,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${c})`,marginInlineEnd:`calc(-100% + ${u} - ${c})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:l(r).mul(2).equal(),marginInlineEnd:l(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:l(r).mul(-1).mul(2).equal(),marginInlineEnd:l(r).mul(2).equal()}}}}}},Uj=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},yo(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:`${Ae(n)}`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),eE(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},Kj=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,i=t*n,a=r/2,l=2,s=i-l*2,u=a-l*2;return{trackHeight:i,trackHeightSM:a,trackMinWidth:s*2+l*4,trackMinWidthSM:u*2+l*2,trackPadding:l,handleBg:o,handleSize:s,handleSizeSM:u,handleShadow:`0 2px 4px 0 ${new rn("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+l+l*2,innerMinMarginSM:u/2,innerMaxMarginSM:u+l+l*2}},Gj=wo("Switch",e=>{const t=Et(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Uj(t),Wj(t),Vj(t),Bj(t),Hj(t)]},Kj);var Xj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,size:r,disabled:o,loading:i,className:a,rootClassName:l,style:s,checked:u,value:c,defaultChecked:d,defaultValue:h,onChange:p}=e,w=Xj(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[v,b]=Vr(!1,{value:u??c,defaultValue:d??h}),{getPrefixCls:m,direction:g,switch:y}=f.useContext($t),S=f.useContext(Di),C=(o??S)||i,E=m("switch",n),x=f.createElement("div",{className:`${E}-handle`},i&&f.createElement(Xf,{className:`${E}-loading-icon`})),[R,N,P]=Gj(E),F=Hi(r),L=he(y==null?void 0:y.className,{[`${E}-small`]:F==="small",[`${E}-loading`]:i,[`${E}-rtl`]:g==="rtl"},a,l,N,P),A=Object.assign(Object.assign({},y==null?void 0:y.style),s),_=function(){b(arguments.length<=0?void 0:arguments[0]),p==null||p.apply(void 0,arguments)};return R(f.createElement(OE,{component:"Switch"},f.createElement(G2,Object.assign({},w,{checked:v,onChange:_,prefixCls:E,className:L,style:A,disabled:C,ref:t,loadingIcon:x}))))});X2.__ANT_SWITCH=!0;const xh=X2;function q2(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t(e.TINYINT="TINYINT",e.SMALLINT="SMALLINT",e.MEDIUMINT="MEDIUMINT",e.INT="INT",e.BIGINT="BIGINT",e.FLOAT="FLOAT",e.DOUBLE="DOUBLE",e.DECIMAL="DECIMAL",e.CHAR="CHAR",e.VARCHAR="VARCHAR",e.TEXT="TEXT",e.TINYTEXT="TINYTEXT",e.MEDIUMTEXT="MEDIUMTEXT",e.LONGTEXT="LONGTEXT",e.BINARY="BINARY",e.VARBINARY="VARBINARY",e.BLOB="BLOB",e.TINYBLOB="TINYBLOB",e.MEDIUMBLOB="MEDIUMBLOB",e.LONGBLOB="LONGBLOB",e.BOOL="BOOL",e.ENUM="ENUM",e.SET="SET",e.JSON="JSON",e))(Fe||{});const Q2=[{label:Fe.TINYINT,key:Fe.TINYINT},{label:Fe.SMALLINT,key:Fe.SMALLINT},{label:Fe.MEDIUMINT,key:Fe.MEDIUMINT},{label:Fe.INT,key:Fe.INT},{label:Fe.BIGINT,key:Fe.BIGINT},{label:Fe.FLOAT,key:Fe.FLOAT},{label:Fe.DOUBLE,key:Fe.DOUBLE},{label:Fe.DECIMAL,key:Fe.DECIMAL},{label:Fe.CHAR,key:Fe.CHAR},{label:Fe.VARCHAR,key:Fe.VARCHAR},{label:Fe.TEXT,key:Fe.TEXT},{label:Fe.TINYTEXT,key:Fe.TINYTEXT},{label:Fe.MEDIUMTEXT,key:Fe.MEDIUMTEXT},{label:Fe.LONGTEXT,key:Fe.LONGTEXT},{label:Fe.BINARY,key:Fe.BINARY},{label:Fe.VARBINARY,key:Fe.VARBINARY},{label:Fe.BLOB,key:Fe.BLOB},{label:Fe.TINYBLOB,key:Fe.TINYBLOB},{label:Fe.MEDIUMBLOB,key:Fe.MEDIUMBLOB},{label:Fe.LONGBLOB,key:Fe.LONGBLOB},{label:Fe.BOOL,key:Fe.BOOL},{label:Fe.ENUM,key:Fe.ENUM},{label:Fe.SET,key:Fe.SET},{label:Fe.JSON,key:Fe.JSON}];function qj({data:e,isConnectable:t}){const n=f.useRef({});return f.useCallback(r=>{console.log(r.target.value)},[]),me.jsxs("div",{className:St.customNode,ref:n,children:[me.jsx("div",{className:St.customNodeWrapper,children:"数据库表A"}),me.jsx("div",{className:St.customNodeRow,children:me.jsxs(Fr,{layout:"vertical",size:"small",children:[me.jsxs("div",{className:St.row,children:[me.jsx("div",{className:St.rowCol,style:{width:80},children:"字段名"}),me.jsx("div",{className:St.rowCol,style:{width:92},children:"数据类型"}),me.jsx("div",{className:St.rowCol,style:{width:70},children:"长度/范围"}),me.jsx("div",{className:St.rowCol,style:{width:40},children:"为空"}),me.jsx("div",{className:St.rowCol,style:{width:100},children:"默认值"}),me.jsx("div",{className:St.rowCol,style:{width:40},children:"索引"}),me.jsx("div",{className:St.rowCol,style:{width:40},children:"唯一"}),me.jsx("div",{className:St.rowCol,style:{width:100},children:"描述"})]}),me.jsx(Fr.List,{name:"data",children:(r,{add:o,remove:i,move:a})=>me.jsxs("div",{className:St.form,children:[r.map(l=>me.jsxs("div",{className:Y2(St.row,St.formRow),children:[me.jsxs("div",{className:St.formRowLeftWrapper,children:[me.jsx(Cr,{id:`${l.name}_custom_point_a`,type:"target",position:Ie.Left,isConnectable:t}),me.jsx(Cr,{id:`${l.name}_custom_point_b`,type:"source",position:Ie.Left,isConnectable:t})]}),me.jsx("div",{className:St.rowCol,style:{width:80},children:me.jsx(Fr.Item,{name:[l.name,"columnName"],children:me.jsx(Lu,{placeholder:"字段名"})})}),me.jsx("div",{className:St.rowCol,style:{width:92},children:me.jsx(Fr.Item,{name:[l.name,"dataType"],children:me.jsx(b2,{getPopupContainer:()=>n.current,placeholder:"数据类型",options:Q2})})}),me.jsx("div",{className:St.rowCol,style:{width:70},children:me.jsx(Fr.Item,{name:[l.name,"length"],children:me.jsx(Lu,{placeholder:"长度/范围"})})}),me.jsx("div",{className:St.rowCol,style:{width:40},children:me.jsx(Fr.Item,{name:[l.name,"nullable"],children:me.jsx(xh,{})})}),me.jsx("div",{className:St.rowCol,style:{width:100},children:me.jsx(Fr.Item,{name:[l.name,"defaultValue"],children:me.jsx(Lu,{placeholder:"默认值"})})}),me.jsx("div",{className:St.rowCol,style:{width:40},children:me.jsx(Fr.Item,{noStyle:!0,name:[l.name,"index"],valuePropName:"checked",children:me.jsx(xh,{})})}),me.jsx("div",{className:St.rowCol,style:{width:40},children:me.jsx(Fr.Item,{name:[l.name,"unique"],valuePropName:"checked",children:me.jsx(xh,{})})}),me.jsx("div",{className:St.rowCol,style:{width:100},children:me.jsx(Fr.Item,{name:[l.name,"description"],children:me.jsx(Lu,{placeholder:"描述"})})}),me.jsxs("div",{className:St.formRowRightWrapper,children:[me.jsx(Cr,{id:`${l.name}_custom_point_c`,type:"target",position:Ie.Right,isConnectable:t}),me.jsx(Cr,{id:`${l.name}_custom_point_d`,type:"source",position:Ie.Right,isConnectable:t})]})]})),me.jsx(zE,{onClick:()=>o(),children:"添加"})]})})]})})]})}function Yj(e){const{id:t,sourceX:n,sourceY:r,targetX:o,targetY:i,selected:a}=e,{setEdges:l}=_f();console.log("- props -",e);const[s,u,c]=lx({sourceX:n,sourceY:r,targetX:o,targetY:i});return me.jsxs(me.Fragment,{children:[me.jsx(Ja,{id:t,path:s}),a&&me.jsx(hT,{children:me.jsx("button",{style:{position:"absolute",transform:`translate(-50%, -50%) translate(${u}px,${c}px)`,pointerEvents:"all"},onClick:()=>l(d=>d.filter(h=>h.id!==t)),children:"delete"})})]})}const Qj=(e=0,t=100)=>Math.floor(Math.random()*(t-e+1))+e,Zj=(e=64,t="default")=>{const n={default:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",number:"0123456789",lowerCase:"abcdefghijklmnopqrstuvwxyz",upperCase:"ABCDEFGHIJKLMNOPQRSTUVWXYZ"};let r="";const o=n[t];for(;e--;)r+=o[Qj(0,o.length-1)];return r};class Jj{constructor(){od(this,"edges",{});od(this,"nodes",{})}registerNode(t){this.nodes[t.type]=t}registerEdge(t){this.edges[t.type]=t}getNode(t){return this.nodes[t]}getEdge(t){return this.edges[t]}getAllNodes(){return Object.values(this.nodes)}}const qa=new Jj;window.manager=qa;const eH=[{id:"1",position:{x:0,y:0},data:{label:"1"}},{id:"2",position:{x:0,y:100},data:{label:"2"}},{id:"3",position:{x:200,y:200},data:{label:"2"},type:"customNode"},{id:"4",position:{x:300,y:500},data:{label:"2"},type:"nodeA"},{id:"5",position:{x:700,y:500},data:{label:"2"},type:"NodeB"}],tH=[{id:"1->2",source:"1",target:"2",type:"edgeA"},{id:"e1-3",source:"a-2",target:"2"}],nH={edgeA:Yj};function rH(){const e=f.useMemo(()=>{const v=qa.getAllNodes().reduce((b,m)=>(b[m.type]=m.component,b),{});return{customNode:KT,nodeA:qj,...v}},[]),t=f.useRef({}),[n,r]=f.useState({}),[o,i,a]=mT(eH),[l,s,u]=pT(tH),c=f.useCallback(v=>{console.log("____",v),s(b=>ux(v,b))},[s]),d=f.useCallback((v,b)=>{v.dataTransfer.setData("application/reactflow",b),v.dataTransfer.effectAllowed="move"},[]),h=f.useCallback(v=>{v.preventDefault(),v.dataTransfer.dropEffect="move"},[]),p=f.useCallback(v=>{v.preventDefault();const b=t.current.getBoundingClientRect(),m=v==null?void 0:v.dataTransfer.getData("application/reactflow");if(typeof m>"u"||!m)return;const g=n==null?void 0:n.project({x:v.clientX-b.left,y:v.clientY-b.top});if(g){let y={id:Zj(12),type:m,position:g,data:{label:`${m} node`}};i(S=>S.concat(y))}},[n]),w=f.useMemo(()=>qa.getAllNodes(),[]);return me.jsxs("div",{className:Eu.layout,children:[me.jsxs("div",{className:Eu.layoutSideMenu,children:[w.map(v=>{const b=v.component;return me.jsxs("div",{className:Y2(Eu.item,"dndnode","input"),onDragStart:m=>d(m,v.type),draggable:!0,children:[me.jsx("div",{children:me.jsx(b,{})}),v.title]},v.type)}),me.jsx(b2,{placeholder:"数据类型",options:Q2})]}),me.jsx("div",{ref:t,className:Eu.layoutWrapper,children:me.jsxs(Wx,{nodes:o,edges:l,onNodesChange:a,onEdgesChange:u,onDrop:p,onInit:r,onDragOver:h,onConnect:c,nodeTypes:e,edgeTypes:nH,children:[me.jsx(PT,{}),me.jsx($T,{}),me.jsx(LT,{gap:12,size:1})]})})]})}const oH="node_iQTZmnSIbl",iH={node:oH},aH=f.forwardRef((e,t)=>(f.useImperativeHandle(t,()=>({})),me.jsx("div",{className:iH.node,children:"NodeA"})));var Ts;(e=>{(t=>{t.NodeA="NodeA",t.NodeB="NodeB",t.NodeC="NodeC"})(e.NodeType||(e.NodeType={}))})(Ts||(Ts={}));const lH=()=>{qa.registerNode({type:Ts.NodeType.NodeA,title:"NodeA",component:aH})},sH="node_BVrz-UV11G",uH={node:sH},cH=f.forwardRef((e,t)=>(f.useImperativeHandle(t,()=>({})),me.jsx("div",{className:uH.node,children:"NodeB"}))),fH=()=>{qa.registerNode({type:Ts.NodeType.NodeB,title:"NodeB",component:cH})},dH="node_RJmSLJOP9P",hH={node:dH},mH=f.forwardRef((e,t)=>(f.useImperativeHandle(t,()=>({})),me.jsx("div",{className:hH.node,children:"NodeC"}))),pH=()=>{qa.registerNode({type:Ts.NodeType.NodeC,title:"NodeC",component:mH})},gH=()=>{lH(),fH(),pH()};gH();function vH(){return me.jsx("div",{children:me.jsx(rH,{})})}function yH(){Ch.createRoot(document.getElementById("root")).render(me.jsx(vH,{}))}yH(); diff --git a/assets/style-Mmn-9Z8p.css b/assets/style-Mmn-9Z8p.css new file mode 100644 index 0000000..fd05832 --- /dev/null +++ b/assets/style-Mmn-9Z8p.css @@ -0,0 +1 @@ +input::-ms-clear,input::-ms-reveal{display:none}*,*:before,*:after{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0)}@-ms-viewport{width:device-width}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:500}p{margin-top:0;margin-bottom:1em}abbr[title],abbr[data-original-title]{-webkit-text-decoration:underline dotted;text-decoration:underline;text-decoration:underline dotted;border-bottom:0;cursor:help}address{margin-bottom:1em;font-style:normal;line-height:inherit}input[type=text],input[type=password],input[type=number],textarea{-webkit-appearance:none}ol,ul,dl{margin-top:0;margin-bottom:1em}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}pre,code,kbd,samp{font-size:1em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}pre{margin-top:0;margin-bottom:1em;overflow:auto}figure{margin:0 0 1em}img{vertical-align:middle;border-style:none}a,area,button,[role=button],input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{padding-top:.75em;padding-bottom:.3em;text-align:left;caption-side:bottom}input,button,select,optgroup,textarea{margin:0;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{padding:0;border-style:none}input[type=radio],input[type=checkbox]{box-sizing:border-box;padding:0}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;margin:0;padding:0;border:0}legend{display:block;width:100%;max-width:100%;margin-bottom:.5em;padding:0;color:inherit;font-size:1.5em;line-height:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}mark{padding:.2em;background-color:#feffe6}[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1;cursor:-webkit-grab;cursor:grab}.react-flow__pane.selection{cursor:pointer}.react-flow__pane.dragging{cursor:-webkit-grabbing;cursor:grabbing}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow .react-flow__edges{pointer-events:none;overflow:visible}.react-flow__edge-path,.react-flow__connection-path{stroke:#b1b1b7;stroke-width:1;fill:none}.react-flow__edge{pointer-events:visibleStroke;cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;-webkit-animation:dashdraw .5s linear infinite;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;-webkit-animation:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge:focus .react-flow__edge-path,.react-flow__edge:focus-visible .react-flow__edge-path{stroke:#555}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge-textbg{fill:#fff}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;-webkit-animation:dashdraw .5s linear infinite;animation:dashdraw .5s linear infinite}.react-flow__connectionline{z-index:1001}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:-webkit-grab;cursor:grab}.react-flow__node.dragging{cursor:-webkit-grabbing;cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:-webkit-grab;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background:#1a192b;border:1px solid white;border-radius:100%}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:-4px;transform:translate(-50%)}.react-flow__handle-top{left:50%;top:-4px;transform:translate(-50%)}.react-flow__handle-left{top:50%;left:-4px;transform:translateY(-50%)}.react-flow__handle-right{right:-4px;top:50%;transform:translateY(-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.center{left:50%;transform:translate(-50%)}.react-flow__attribution{font-size:10px;background:#ffffff80;padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@-webkit-keyframes dashdraw{0%{stroke-dashoffset:10}}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-default,.react-flow__node-input,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:3px;width:150px;font-size:12px;color:#222;text-align:center;border-width:1px;border-style:solid;border-color:#1a192b;background-color:#fff}.react-flow__node-default.selectable:hover,.react-flow__node-input.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:0 1px 4px 1px #00000014}.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:0 0 0 .5px #1a192b}.react-flow__node-group{background-color:#f0f0f040}.react-flow__nodesselection-rect,.react-flow__selection{background:#0059dc14;border:1px dotted rgba(0,89,220,.8)}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls{box-shadow:0 0 2px 1px #00000014}.react-flow__controls-button{border:none;background:#fefefe;border-bottom:1px solid #eee;box-sizing:content-box;display:flex;justify-content:center;align-items:center;width:16px;height:16px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:5px}.react-flow__controls-button:hover{background:#f4f4f4}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__minimap{background-color:#fff}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:4px;height:4px;border:1px solid #fff;border-radius:1px;background-color:#3367d9;transform:translate(-50%,-50%)}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:#3367d9;border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.layout_Wr6HbJU3n-{width:100%;height:100vh;display:flex}.layout-side-menu_YfQi81E0kI{width:230px;height:100%;flex:none;border-right:1px solid #f0f0f0}.layout-wrapper_bnpOxN59pu{flex:auto;width:100px;height:100%}.item_m3Wt2Z4DW8{width:50px;height:50px;border-radius:6px;margin:10px auto}.custom-node_fnS-IOSBQJ{height:50px;border:1px solid #EEEEEE;padding:5px;border-radius:5px;background:#fff}.custom-node-label_hztvK3jLu-{display:block;color:#777;font-size:12px}.custom-node_wf308wXFnl{height:fit-content;border:1px solid #EEEEEE;padding:5px;border-radius:5px;background:#fff}.custom-node-wrapper_fwu7aspI3z{padding:10px}.custom-node-row_rydSIN72eM{width:100%}.form_RjNil11vT3{display:flex;flex-direction:column;gap:10px}.form-row_guqy8-dviZ{width:520px;display:flex;position:relative;align-items:center;padding:0 10px;font-size:12px}.form-row_guqy8-dviZ .ant-form-item{margin:0}.form-row-left-wrapper_gf1xFSXqq4,.form-row-right-wrapper_-0dDpbua8-{width:1px;height:1px;position:absolute;left:0;top:50%;background:pink;z-index:10;display:flex;flex-direction:column}.form-row-left-wrapper_gf1xFSXqq4{transform:translate(-5px,-50%)}.form-row-right-wrapper_-0dDpbua8-{right:0;left:auto;transform:translate(5px,-50%)}.row_iyFgPvRmTj{width:100%;display:flex;align-items:center;gap:6px;padding:0 10px}.row-col_mpLswaMbKp{display:flex;align-items:center}.node_iQTZmnSIbl{width:40px;height:40px;background-color:pink}.node_BVrz-UV11G{width:40px;height:40px;background-color:orange}.node_RJmSLJOP9P{width:40px;height:40px;background-color:#00bfff}*{padding:0;margin:0;box-sizing:border-box}html,body{width:100%;height:100%} diff --git a/index.html b/index.html new file mode 100644 index 0000000..985f27a --- /dev/null +++ b/index.html @@ -0,0 +1,17 @@ + + + + + + demo/flow + + + + + +
+ +