From cd2cf55c015b3928d120d1cad18ec8bd3a29cea7 Mon Sep 17 00:00:00 2001 From: kampiu Date: Sun, 14 Jan 2024 16:57:52 +0000 Subject: [PATCH] deploy: 47399e9d3b5074d2090337f5117e7f3dc96db7ec --- .nojekyll | 0 assets/index-ol_R9vm0.js | 271 ++++++++++++++++++++++++++++++++++++++ assets/style-2hu82lIe.css | 1 + index.html | 17 +++ 4 files changed, 289 insertions(+) create mode 100644 .nojekyll create mode 100644 assets/index-ol_R9vm0.js create mode 100644 assets/style-2hu82lIe.css create mode 100644 index.html diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/assets/index-ol_R9vm0.js b/assets/index-ol_R9vm0.js new file mode 100644 index 0000000..b795af3 --- /dev/null +++ b/assets/index-ol_R9vm0.js @@ -0,0 +1,271 @@ +var Z$=Object.defineProperty;var J$=(e,t,n)=>t in e?Z$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Id=(e,t,n)=>(J$(e,typeof t!="symbol"?t+"":t,n),n);function Yw(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function xf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qw={exports:{}},Cf={},Zw={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 qs=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"),c_=Symbol.for("react.lazy"),n0=Symbol.iterator;function u_(e){return e===null||typeof e!="object"?null:(e=n0&&e[n0]||e["@@iterator"],typeof e=="function"?e:null)}var Jw={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},eS=Object.assign,tS={};function il(e,t,n){this.props=e,this.context=t,this.refs=tS,this.updater=n||Jw}il.prototype.isReactComponent={};il.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")};il.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function nS(){}nS.prototype=il.prototype;function og(e,t,n){this.props=e,this.context=t,this.refs=tS,this.updater=n||Jw}var ig=og.prototype=new nS;ig.constructor=og;eS(ig,il.prototype);ig.isPureReactComponent=!0;var r0=Array.isArray,rS=Object.prototype.hasOwnProperty,ag={current:null},oS={key:!0,ref:!0,__self:!0,__source:!0};function iS(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)rS.call(t,r)&&!oS.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=[],c=[],u=1,d=null,h=3,p=!1,w=!1,v=!1,b=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,m=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(c);M!==null;){if(M.callback===null)r(c);else if(M.startTime<=$)r(c),M.sortIndex=M.expirationTime,t(s,M);else break;M=n(c)}}function S($){if(v=!1,y($),!w)if(n(s)!==null)w=!0,O(C);else{var M=n(c);M!==null&&I(S,M.startTime-$)}}function C($,M){w=!1,v&&(v=!1,g(R),R=-1),p=!0;var T=h;try{for(y(M),d=n(s);d!==null&&(!(d.expirationTime>M)||$&&!z());){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(c);V!==null&&I(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 z(){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(c,$),n(s)===null&&$===n(c)&&(v?(g(R),R=-1):v=!0,I(S,T-k))):($.sortIndex=D,t(s,$),w||p||(w=!0,O(C))),$},e.unstable_shouldYield=z,e.unstable_wrapCallback=function($){var M=h;return function(){var T=h;h=M;try{return $.apply(this,arguments)}finally{h=T}}}})(cS);sS.exports=cS;var ou=sS.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 uS=f,Un=ou;function se(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"),Qh=Object.prototype.hasOwnProperty,b_=/^[: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]*$/,i0={},a0={};function x_(e){return Qh.call(a0,e)?!0:Qh.call(i0,e)?!1:b_.test(e)?a0[e]=!0:(i0[e]=!0,!1)}function C_(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_(e,t,n,r){if(t===null||typeof t>"u"||C_(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 $n(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 dn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){dn[e]=new $n(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];dn[t]=new $n(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){dn[e]=new $n(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){dn[e]=new $n(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){dn[e]=new $n(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){dn[e]=new $n(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){dn[e]=new $n(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){dn[e]=new $n(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){dn[e]=new $n(e,5,!1,e.toLowerCase(),null,!1,!1)});var sg=/[\-:]([a-z])/g;function cg(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(sg,cg);dn[t]=new $n(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(sg,cg);dn[t]=new $n(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(sg,cg);dn[t]=new $n(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){dn[e]=new $n(e,1,!1,e.toLowerCase(),null,!1,!1)});dn.xlinkHref=new $n("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){dn[e]=new $n(e,1,!1,e.toLowerCase(),null,!0,!0)});function ug(e,t,n,r){var o=dn.hasOwnProperty(t)?dn[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{Pd=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Dl(e):""}function $_(e){switch(e.tag){case 5:return Dl(e.type);case 16:return Dl("Lazy");case 13:return Dl("Suspense");case 19:return Dl("SuspenseList");case 0:case 2:case 15:return e=Td(e.type,!1),e;case 11:return e=Td(e.type.render,!1),e;case 1:return e=Td(e.type,!0),e;default:return""}}function tm(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 ma:return"Fragment";case ha:return"Portal";case Zh:return"Profiler";case fg:return"StrictMode";case Jh:return"Suspense";case em:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case hS:return(e.displayName||"Context")+".Consumer";case dS:return(e._context.displayName||"Context")+".Provider";case dg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case hg:return t=e.displayName||null,t!==null?t:tm(e.type)||"Memo";case To:t=e._payload,e=e._init;try{return tm(e(t))}catch{}}return null}function __(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 tm(t);case 8:return t===fg?"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 ei(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function pS(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function R_(e){var t=pS(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 pc(e){e._valueTracker||(e._valueTracker=R_(e))}function gS(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=pS(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function _u(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 nm(e,t){var n=t.checked;return kt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function s0(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ei(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 vS(e,t){t=t.checked,t!=null&&ug(e,"checked",t,!1)}function rm(e,t){vS(e,t);var n=ei(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")?om(e,t.type,n):t.hasOwnProperty("defaultValue")&&om(e,t.type,ei(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function c0(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 om(e,t,n){(t!=="number"||_u(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var jl=Array.isArray;function Ia(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=gc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function fs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Gl={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(Gl).forEach(function(e){O_.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Gl[t]=Gl[e]})});function bS(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Gl.hasOwnProperty(e)&&Gl[e]?(""+t).trim():t+"px"}function xS(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=bS(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var I_=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 lm(e,t){if(t){if(I_[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(se(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(se(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(se(61))}if(t.style!=null&&typeof t.style!="object")throw Error(se(62))}}function sm(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 cm=null;function mg(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var um=null,Ma=null,Na=null;function d0(e){if(e=Js(e)){if(typeof um!="function")throw Error(se(280));var t=e.stateNode;t&&(t=Of(t),um(e.stateNode,e.type,t))}}function CS(e){Ma?Na?Na.push(e):Na=[e]:Ma=e}function ES(){if(Ma){var e=Ma,t=Na;if(Na=Ma=null,d0(e),t)for(e=0;e>>=0,e===0?32:31-(j_(e)/H_|0)|0}var vc=64,yc=4194304;function Hl(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 Mu(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=Hl(l):(i&=a,i!==0&&(r=Hl(i)))}else a=n&~o,a!==0?r=Hl(a):i!==0&&(r=Hl(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 Qs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Rr(t),e[t]=n}function U_(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=ql),b0=" ",x0=!1;function WS(e,t){switch(e){case"keyup":return wR.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function US(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var pa=!1;function bR(e,t){switch(e){case"compositionend":return US(t);case"keypress":return t.which!==32?null:(x0=!0,b0);case"textInput":return e=t.data,e===b0&&x0?null:e;default:return null}}function xR(e,t){if(pa)return e==="compositionend"||!xg&&WS(e,t)?(e=BS(),au=wg=jo=null,pa=!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=_0(n)}}function qS(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qS(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function YS(){for(var e=window,t=_u();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=_u(e.document)}return t}function Cg(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 NR(e){var t=YS(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&qS(n.ownerDocument.documentElement,n)){if(r!==null&&Cg(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=R0(n,i);var a=R0(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,ga=null,gm=null,Ql=null,vm=!1;function O0(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;vm||ga==null||ga!==_u(r)||(r=ga,"selectionStart"in r&&Cg(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}),Ql&&vs(Ql,r)||(Ql=r,r=Tu(gm,"onSelect"),0wa||(e.current=Cm[wa],Cm[wa]=null,wa--)}function vt(e,t){wa++,Cm[wa]=e.current,e.current=t}var ti={},vn=oi(ti),Mn=oi(!1),Ni=ti;function Ha(e,t){var n=e.type.contextTypes;if(!n)return ti;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 Nn(e){return e=e.childContextTypes,e!=null}function ku(){Ct(Mn),Ct(vn)}function k0(e,t,n){if(vn.current!==ti)throw Error(se(168));vt(vn,t),vt(Mn,n)}function ib(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(se(108,__(e)||"Unknown",o));return kt({},n,r)}function zu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ti,Ni=vn.current,vt(vn,e),vt(Mn,Mn.current),!0}function z0(e,t,n){var r=e.stateNode;if(!r)throw Error(se(169));n?(e=ib(e,t,Ni),r.__reactInternalMemoizedMergedChildContext=e,Ct(Mn),Ct(vn),vt(vn,e)):Ct(Mn),vt(Mn,n)}var ro=null,If=!1,Gd=!1;function ab(e){ro===null?ro=[e]:ro.push(e)}function VR(e){If=!0,ab(e)}function ii(){if(!Gd&&ro!==null){Gd=!0;var e=0,t=ct;try{var n=ro;for(ct=1;e>=a,o-=a,io=1<<32-Rr(t)+o|n<R?(N=x,x=null):N=x.sibling;var P=h(g,x,y[R],S);if(P===null){x===null&&(x=N);break}e&&x&&P.alternate===null&&t(g,x),m=i(P,m,R),E===null?C=P:E.sibling=P,E=P,x=N}if(R===y.length)return n(g,x),Ot&&ci(g,R),C;if(x===null){for(;RR?(N=x,x=null):N=x.sibling;var z=h(g,x,P.value,S);if(z===null){x===null&&(x=N);break}e&&x&&z.alternate===null&&t(g,x),m=i(z,m,R),E===null?C=z:E.sibling=z,E=z,x=N}if(P.done)return n(g,x),Ot&&ci(g,R),C;if(x===null){for(;!P.done;R++,P=y.next())P=d(g,P.value,S),P!==null&&(m=i(P,m,R),E===null?C=P:E.sibling=P,E=P);return Ot&&ci(g,R),C}for(x=r(g,x);!P.done;R++,P=y.next())P=p(x,g,R,P.value,S),P!==null&&(e&&P.alternate!==null&&x.delete(P.key===null?R:P.key),m=i(P,m,R),E===null?C=P:E.sibling=P,E=P);return e&&x.forEach(function(L){return t(g,L)}),Ot&&ci(g,R),C}function b(g,m,y,S){if(typeof y=="object"&&y!==null&&y.type===ma&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case mc:e:{for(var C=y.key,E=m;E!==null;){if(E.key===C){if(C=y.type,C===ma){if(E.tag===7){n(g,E.sibling),m=o(E,y.props.children),m.return=g,g=m;break e}}else if(E.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===To&&V0(C)===E.type){n(g,E.sibling),m=o(E,y.props),m.ref=$l(g,E,y),m.return=g,g=m;break e}n(g,E);break}else t(g,E);E=E.sibling}y.type===ma?(m=$i(y.props.children,g.mode,S,y.key),m.return=g,g=m):(S=mu(y.type,y.key,y.props,null,g.mode,S),S.ref=$l(g,m,y),S.return=g,g=S)}return a(g);case ha:e:{for(E=y.key;m!==null;){if(m.key===E)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){n(g,m.sibling),m=o(m,y.children||[]),m.return=g,g=m;break e}else{n(g,m);break}else t(g,m);m=m.sibling}m=th(y,g.mode,S),m.return=g,g=m}return a(g);case To:return E=y._init,b(g,m,E(y._payload),S)}if(jl(y))return w(g,m,y,S);if(Sl(y))return v(g,m,y,S);$c(g,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,m!==null&&m.tag===6?(n(g,m.sibling),m=o(m,y),m.return=g,g=m):(n(g,m),m=eh(y,g.mode,S),m.return=g,g=m),a(g)):n(g,m)}return b}var Va=mb(!0),pb=mb(!1),ec={},Wr=oi(ec),bs=oi(ec),xs=oi(ec);function yi(e){if(e===ec)throw Error(se(174));return e}function Pg(e,t){switch(vt(xs,t),vt(bs,e),vt(Wr,ec),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:am(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=am(t,e)}Ct(Wr),vt(Wr,t)}function Wa(){Ct(Wr),Ct(bs),Ct(xs)}function gb(e){yi(xs.current);var t=yi(Wr.current),n=am(t,e.type);t!==n&&(vt(bs,e),vt(Wr,n))}function Tg(e){bs.current===e&&(Ct(Wr),Ct(bs))}var Tt=oi(0);function Bu(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 Xd=[];function Ag(){for(var e=0;en?n:4,e(!0);var r=qd.transition;qd.transition={};try{e(!1),t()}finally{ct=n,qd.transition=r}}function Pb(){return fr().memoizedState}function GR(e,t,n){var r=Qo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Tb(e))Ab(t,n);else if(n=ub(e,t,n,r),n!==null){var o=bn();Or(n,e,r,o),kb(n,t,r)}}function XR(e,t,n){var r=Qo(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Tb(e))Ab(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,Pr(l,a)){var s=t.interleaved;s===null?(o.next=o,Mg(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=ub(e,t,o,r),n!==null&&(o=bn(),Or(n,e,r,o),kb(n,t,r))}}function Tb(e){var t=e.alternate;return e===At||t!==null&&t===At}function Ab(e,t){Zl=Vu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function kb(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,gg(e,n)}}var Wu={readContext:ur,useCallback:mn,useContext:mn,useEffect:mn,useImperativeHandle:mn,useInsertionEffect:mn,useLayoutEffect:mn,useMemo:mn,useReducer:mn,useRef:mn,useState:mn,useDebugValue:mn,useDeferredValue:mn,useTransition:mn,useMutableSource:mn,useSyncExternalStore:mn,useId:mn,unstable_isNewReconciler:!1},qR={readContext:ur,useCallback:function(e,t){return jr().memoizedState=[e,t===void 0?null:t],e},useContext:ur,useEffect:U0,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,uu(4194308,4,Rb.bind(null,t,e),n)},useLayoutEffect:function(e,t){return uu(4194308,4,e,t)},useInsertionEffect:function(e,t){return uu(4,2,e,t)},useMemo:function(e,t){var n=jr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=jr();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=GR.bind(null,At,e),[r.memoizedState,e]},useRef:function(e){var t=jr();return e={current:e},t.memoizedState=e},useState:W0,useDebugValue:Dg,useDeferredValue:function(e){return jr().memoizedState=e},useTransition:function(){var e=W0(!1),t=e[0];return e=KR.bind(null,e[1]),jr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=At,o=jr();if(Ot){if(n===void 0)throw Error(se(407));n=n()}else{if(n=t(),on===null)throw Error(se(349));Ti&30||wb(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,U0(bb.bind(null,r,i,e),[e]),r.flags|=2048,$s(9,Sb.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=jr(),t=on.identifierPrefix;if(Ot){var n=ao,r=io;n=(r&~(1<<32-Rr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Cs++,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[Hr]=t,e[Ss]=r,Wb(e,t,!1,!1),t.stateNode=e;e:{switch(a=sm(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;oKa&&(t.flags|=128,r=!0,_l(i,!1),t.lanes=4194304)}else{if(!r)if(e=Bu(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),_l(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Ot)return pn(t),null}else 2*Vt()-i.renderingStartTime>Ka&&n!==1073741824&&(t.flags|=128,r=!0,_l(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):(pn(t),null);case 22:case 23:return Ug(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?jn&1073741824&&(pn(t),t.subtreeFlags&6&&(t.flags|=8192)):pn(t),null;case 24:return null;case 25:return null}throw Error(se(156,t.tag))}function rO(e,t){switch($g(t),t.tag){case 1:return Nn(t.type)&&ku(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wa(),Ct(Mn),Ct(vn),Ag(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Tg(t),null;case 13:if(Ct(Tt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(se(340));Ba()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ct(Tt),null;case 4:return Wa(),null;case 10:return Ig(t.type._context),null;case 22:case 23:return Ug(),null;case 24:return null;default:return null}}var Rc=!1,gn=!1,oO=typeof WeakSet=="function"?WeakSet:Set,$e=null;function Ca(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 km(e,t,n){try{n()}catch(r){Lt(e,t,r)}}var ey=!1;function iO(e,t){if(ym=Nu,e=YS(),Cg(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,c=0,u=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&&++c===o&&(l=a),h===i&&++u===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(wm={focusedElem:e,selectionRange:n},Nu=!1,$e=t;$e!==null;)if(t=$e,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$e=e;else for(;$e!==null;){t=$e;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,g=t.stateNode,m=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:wr(t.type,v),b);g.__reactInternalSnapshotBeforeUpdate=m}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(se(163))}}catch(S){Lt(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,$e=e;break}$e=t.return}return w=ey,ey=!1,w}function Jl(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&&km(t,n,i)}o=o.next}while(o!==r)}}function Pf(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 zm(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 Gb(e){var t=e.alternate;t!==null&&(e.alternate=null,Gb(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Hr],delete t[Ss],delete t[xm],delete t[HR],delete t[BR])),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 Xb(e){return e.tag===5||e.tag===3||e.tag===4}function ty(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Xb(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 Fm(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=Au));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}function Lm(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(Lm(e,t,n),e=e.sibling;e!==null;)Lm(e,t,n),e=e.sibling}var sn=null,Sr=!1;function Mo(e,t,n){for(n=n.child;n!==null;)qb(e,t,n),n=n.sibling}function qb(e,t,n){if(Vr&&typeof Vr.onCommitFiberUnmount=="function")try{Vr.onCommitFiberUnmount(Ef,n)}catch{}switch(n.tag){case 5:gn||Ca(n,t);case 6:var r=sn,o=Sr;sn=null,Mo(e,t,n),sn=r,Sr=o,sn!==null&&(Sr?(e=sn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):sn.removeChild(n.stateNode));break;case 18:sn!==null&&(Sr?(e=sn,n=n.stateNode,e.nodeType===8?Kd(e.parentNode,n):e.nodeType===1&&Kd(e,n),ps(e)):Kd(sn,n.stateNode));break;case 4:r=sn,o=Sr,sn=n.stateNode.containerInfo,Sr=!0,Mo(e,t,n),sn=r,Sr=o;break;case 0:case 11:case 14:case 15:if(!gn&&(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)&&km(n,t,a),o=o.next}while(o!==r)}Mo(e,t,n);break;case 1:if(!gn&&(Ca(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)}Mo(e,t,n);break;case 21:Mo(e,t,n);break;case 22:n.mode&1?(gn=(r=gn)||n.memoizedState!==null,Mo(e,t,n),gn=r):Mo(e,t,n);break;default:Mo(e,t,n)}}function ny(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new oO),t.forEach(function(r){var o=mO.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function vr(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*lO(r/1960))-r,10e?16:e,Ho===null)var r=!1;else{if(e=Ho,Ho=null,Gu=0,at&6)throw Error(se(331));var o=at;for(at|=4,$e=e.current;$e!==null;){var i=$e,a=i.child;if($e.flags&16){var l=i.deletions;if(l!==null){for(var s=0;sVt()-Vg?Ei(e,0):Bg|=n),Pn(e,t)}function rx(e,t){t===0&&(e.mode&1?(t=yc,yc<<=1,!(yc&130023424)&&(yc=4194304)):t=1);var n=bn();e=ho(e,t),e!==null&&(Qs(e,t,n),Pn(e,n))}function hO(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),rx(e,n)}function mO(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(se(314))}r!==null&&r.delete(t),rx(e,n)}var ox;ox=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Mn.current)On=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return On=!1,tO(e,t,n);On=!!(e.flags&131072)}else On=!1,Ot&&t.flags&1048576&&lb(t,Lu,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;fu(e,t),e=t.pendingProps;var o=Ha(t,vn.current);Ta(t,n),o=zg(null,t,r,e,o,n);var i=Fg();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,Nn(r)?(i=!0,zu(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Ng(t),o.updater=Mf,t.stateNode=o,o._reactInternals=t,Om(t,r,e,n),t=Nm(null,t,r,!0,i,n)):(t.tag=0,Ot&&i&&Eg(t),Sn(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(fu(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=gO(r),e=wr(r,e),o){case 0:t=Mm(null,t,r,e,n);break e;case 1:t=Q0(null,t,r,e,n);break e;case 11:t=q0(null,t,r,e,n);break e;case 14:t=Y0(null,t,r,wr(r.type,e),n);break e}throw Error(se(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:wr(r,o),Mm(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:wr(r,o),Q0(e,t,r,o,n);case 3:e:{if(Hb(t),e===null)throw Error(se(387));r=t.pendingProps,i=t.memoizedState,o=i.element,fb(e,t),Hu(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=Ua(Error(se(423)),t),t=Z0(e,t,r,n,o);break e}else if(r!==o){o=Ua(Error(se(424)),t),t=Z0(e,t,r,n,o);break e}else for(Bn=Xo(t.stateNode.containerInfo.firstChild),Wn=t,Ot=!0,Er=null,n=pb(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ba(),r===o){t=mo(e,t,n);break e}Sn(e,t,r,n)}t=t.child}return t;case 5:return gb(t),e===null&&$m(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Sm(r,o)?a=null:i!==null&&Sm(r,i)&&(t.flags|=32),jb(e,t),Sn(e,t,a,n),t.child;case 6:return e===null&&$m(t),null;case 13:return Bb(e,t,n);case 4:return Pg(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Va(t,null,r,n):Sn(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:wr(r,o),q0(e,t,r,o,n);case 7:return Sn(e,t,t.pendingProps,n),t.child;case 8:return Sn(e,t,t.pendingProps.children,n),t.child;case 12:return Sn(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(Du,r._currentValue),r._currentValue=a,i!==null)if(Pr(i.value,a)){if(i.children===o.children&&!Mn.current){t=mo(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=so(-1,n&-n),s.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?s.next=s:(s.next=u.next,u.next=s),c.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),_m(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(se(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),_m(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}Sn(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ta(t,n),o=ur(o),r=r(o),t.flags|=1,Sn(e,t,r,n),t.child;case 14:return r=t.type,o=wr(r,t.pendingProps),o=wr(r.type,o),Y0(e,t,r,o,n);case 15:return Lb(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:wr(r,o),fu(e,t),t.tag=1,Nn(r)?(e=!0,zu(t)):e=!1,Ta(t,n),hb(t,r,o),Om(t,r,o,n),Nm(null,t,r,!0,e,n);case 19:return Vb(e,t,n);case 22:return Db(e,t,n)}throw Error(se(156,t.tag))};function ix(e,t){return NS(e,t)}function pO(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 lr(e,t,n,r){return new pO(e,t,n,r)}function Gg(e){return e=e.prototype,!(!e||!e.isReactComponent)}function gO(e){if(typeof e=="function")return Gg(e)?1:0;if(e!=null){if(e=e.$$typeof,e===dg)return 11;if(e===hg)return 14}return 2}function Zo(e,t){var n=e.alternate;return n===null?(n=lr(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 mu(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")Gg(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ma:return $i(n.children,o,i,t);case fg:a=8,o|=8;break;case Zh:return e=lr(12,n,t,o|2),e.elementType=Zh,e.lanes=i,e;case Jh:return e=lr(13,n,t,o),e.elementType=Jh,e.lanes=i,e;case em:return e=lr(19,n,t,o),e.elementType=em,e.lanes=i,e;case mS:return Af(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case dS:a=10;break e;case hS:a=9;break e;case dg:a=11;break e;case hg:a=14;break e;case To:a=16,r=null;break e}throw Error(se(130,e==null?e:typeof e,""))}return t=lr(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function $i(e,t,n,r){return e=lr(7,e,r,t),e.lanes=n,e}function Af(e,t,n,r){return e=lr(22,e,r,t),e.elementType=mS,e.lanes=n,e.stateNode={isHidden:!1},e}function eh(e,t,n){return e=lr(6,e,null,t),e.lanes=n,e}function th(e,t,n){return t=lr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function vO(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=kd(0),this.expirationTimes=kd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=kd(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Xg(e,t,n,r,o,i,a,l,s){return e=new vO(e,t,n,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=lr(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ng(i),e}function yO(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(cx)}catch(e){console.error(e)}}cx(),lS.exports=qn;var po=lS.exports;const ux=xf(po),CO=Yw({__proto__:null,default:ux},[po]);var uy=po;Yh.createRoot=uy.createRoot,Yh.hydrateRoot=uy.hydrateRoot;function hn(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"?NO:MO;mx.useSyncExternalStore=Ga.useSyncExternalStore!==void 0?Ga.useSyncExternalStore:PO;hx.exports=mx;var TO=hx.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 Df=f,AO=TO;function kO(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var zO=typeof Object.is=="function"?Object.is:kO,FO=AO.useSyncExternalStore,LO=Df.useRef,DO=Df.useEffect,jO=Df.useMemo,HO=Df.useDebugValue;dx.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=LO(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=jO(function(){function s(p){if(!c){if(c=!0,u=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,zO(u,p))return w;var v=r(p);return o!==void 0&&o(w,v)?w:(u=p,d=v)}var c=!1,u,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=FO(e,i[0],i[1]);return DO(function(){a.hasValue=!0,a.value=l},[l]),HO(l),l};fx.exports=dx;var BO=fx.exports;const VO=xf(BO);var WO={BASE_URL:"/demo-flow/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const fy=e=>{let t;const n=new Set,r=(s,c)=>{const u=typeof s=="function"?s(t):s;if(!Object.is(u,t)){const d=t;t=c??(typeof u!="object"||u===null)?u:Object.assign({},t,u),n.forEach(h=>h(t,d))}},o=()=>t,l={setState:r,getState:o,subscribe:s=>(n.add(s),()=>n.delete(s)),destroy:()=>{(WO?"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},UO=e=>e?fy(e):fy,{useDebugValue:KO}=j,{useSyncExternalStoreWithSelector:GO}=VO;function px(e,t=e.getState,n){const r=GO(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return KO(r),r}const dy=(e,t)=>{const n=UO(e),r=(o,i=t)=>px(n,o,i);return Object.assign(r,n),r},XO=(e,t)=>e?dy(e,t):dy;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 jf(){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}})}pu.prototype=jf.prototype={constructor:pu,on:function(e,t){var n=this._,r=YO(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)),my.hasOwnProperty(t)?{space:my[t],local:e}:e}function ZO(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Vm&&t.documentElement.namespaceURI===Vm?t.createElement(e):t.createElementNS(n,e)}}function JO(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function gx(e){var t=Hf(e);return(t.local?JO:ZO)(t)}function eI(){}function Zg(e){return e==null?eI:function(){return this.querySelector(e)}}function tI(e){typeof e!="function"&&(e=Zg(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o=y&&(y=m+1);!(C=b[y])&&++y=0;)(a=r[o])&&(i&&a.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(a,i),i=a);return this}function _I(e){e||(e=RI);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 II(){return Array.from(this)}function MI(){for(var e=this._groups,t=0,n=e.length;t1?this.each((t==null?HI:typeof t=="function"?VI:BI)(e,t,n??"")):Xa(this.node(),e)}function Xa(e,t){return e.style.getPropertyValue(t)||bx(e).getComputedStyle(e,null).getPropertyValue(t)}function UI(e){return function(){delete this[e]}}function KI(e,t){return function(){this[e]=t}}function GI(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function XI(e,t){return arguments.length>1?this.each((t==null?UI:typeof t=="function"?GI:KI)(e,t)):this.node()[e]}function xx(e){return e.trim().split(/^|\s+/)}function Jg(e){return e.classList||new Cx(e)}function Cx(e){this._node=e,this._names=xx(e.getAttribute("class")||"")}Cx.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 Ex(e,t){for(var n=Jg(e),r=-1,o=t.length;++r=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function xM(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,o=t.length,i;n()=>e;function Wm(e,{sourceEvent:t,subject:n,target:r,identifier:o,active:i,x:a,y:l,dx:s,dy:c,dispatch:u}){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:c,enumerable:!0,configurable:!0},_:{value:u}})}Wm.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function PM(e){return!e.ctrlKey&&!e.button}function TM(){return this.parentNode}function AM(e,t){return t??{x:e.x,y:e.y}}function kM(){return navigator.maxTouchPoints||"ontouchstart"in this}function zM(){var e=PM,t=TM,n=AM,r=kM,o={},i=jf("start","drag","end"),a=0,l,s,c,u,d=0;function h(S){S.on("mousedown.drag",p).filter(r).on("touchstart.drag",b).on("touchmove.drag",g,NM).on("touchend.drag touchcancel.drag",m).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(S,C){if(!(u||!e.call(this,S,C))){var E=y(this,t.call(this,S,C),S,C,"mouse");E&&(ar(S.view).on("mousemove.drag",w,Rs).on("mouseup.drag",v,Rs),Ox(S.view),rh(S),c=!1,l=S.clientX,s=S.clientY,E("start",S))}}function w(S){if(ka(S),!c){var C=S.clientX-l,E=S.clientY-s;c=C*C+E*E>d}o.mouse("drag",S)}function v(S){ar(S.view).on("mousemove.drag mouseup.drag",null),Ix(S.view,c),ka(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?Nc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Nc(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=LM.exec(e))?new In(t[1],t[2],t[3],1):(t=DM.exec(e))?new In(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=jM.exec(e))?Nc(t[1],t[2],t[3],t[4]):(t=HM.exec(e))?Nc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=BM.exec(e))?by(t[1],t[2]/100,t[3]/100,1):(t=VM.exec(e))?by(t[1],t[2]/100,t[3]/100,t[4]):py.hasOwnProperty(e)?yy(py[e]):e==="transparent"?new In(NaN,NaN,NaN,0):null}function yy(e){return new In(e>>16&255,e>>8&255,e&255,1)}function Nc(e,t,n,r){return r<=0&&(e=t=n=NaN),new In(e,t,n,r)}function KM(e){return e instanceof nc||(e=Ms(e)),e?(e=e.rgb(),new In(e.r,e.g,e.b,e.opacity)):new In}function Um(e,t,n,r){return arguments.length===1?KM(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}ev(In,Um,Mx(nc,{brighter(e){return e=e==null?Qu:Math.pow(Qu,e),new In(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Os:Math.pow(Os,e),new In(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new In(_i(this.r),_i(this.g),_i(this.b),Zu(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:wy,formatHex:wy,formatHex8:GM,formatRgb:Sy,toString:Sy}));function wy(){return`#${wi(this.r)}${wi(this.g)}${wi(this.b)}`}function GM(){return`#${wi(this.r)}${wi(this.g)}${wi(this.b)}${wi((isNaN(this.opacity)?1:this.opacity)*255)}`}function Sy(){const e=Zu(this.opacity);return`${e===1?"rgb(":"rgba("}${_i(this.r)}, ${_i(this.g)}, ${_i(this.b)}${e===1?")":`, ${e})`}`}function Zu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function _i(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function wi(e){return e=_i(e),(e<16?"0":"")+e.toString(16)}function by(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new $r(e,t,n,r)}function Nx(e){if(e instanceof $r)return new $r(e.h,e.s,e.l,e.opacity);if(e instanceof nc||(e=Ms(e)),!e)return new $r;if(e instanceof $r)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 $r(a,l,s,e.opacity)}function XM(e,t,n,r){return arguments.length===1?Nx(e):new $r(e,t,n,r??1)}function $r(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}ev($r,XM,Mx(nc,{brighter(e){return e=e==null?Qu:Math.pow(Qu,e),new $r(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Os:Math.pow(Os,e),new $r(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(oh(e>=240?e-240:e+120,o,r),oh(e,o,r),oh(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new $r(xy(this.h),Pc(this.s),Pc(this.l),Zu(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=Zu(this.opacity);return`${e===1?"hsl(":"hsla("}${xy(this.h)}, ${Pc(this.s)*100}%, ${Pc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function xy(e){return e=(e||0)%360,e<0?e+360:e}function Pc(e){return Math.max(0,Math.min(1,e||0))}function oh(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 Px=e=>()=>e;function qM(e,t){return function(n){return e+n*t}}function YM(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 QM(e){return(e=+e)==1?Tx:function(t,n){return n-t?YM(t,n,e):Px(isNaN(t)?n:t)}}function Tx(e,t){var n=t-e;return n?qM(e,n):Px(isNaN(e)?t:e)}const Cy=function e(t){var n=QM(t);function r(o,i){var a=n((o=Um(o)).r,(i=Um(i)).r),l=n(o.g,i.g),s=n(o.b,i.b),c=Tx(o.opacity,i.opacity);return function(u){return o.r=a(u),o.g=l(u),o.b=s(u),o.opacity=c(u),o+""}}return r.gamma=e,r}(1);function ko(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Km=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ih=new RegExp(Km.source,"g");function ZM(e){return function(){return e}}function JM(e){return function(t){return e(t)+""}}function eN(e,t){var n=Km.lastIndex=ih.lastIndex=0,r,o,i,a=-1,l=[],s=[];for(e=e+"",t=t+"";(r=Km.exec(e))&&(o=ih.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:ko(r,o)})),n=ih.lastIndex;return n180?u+=360:u-c>180&&(c+=360),h.push({i:d.push(o(d)+"rotate(",null,r)-2,x:ko(c,u)})):u&&d.push(o(d)+"rotate("+u+r)}function l(c,u,d,h){c!==u?h.push({i:d.push(o(d)+"skewX(",null,r)-2,x:ko(c,u)}):u&&d.push(o(d)+"skewX("+u+r)}function s(c,u,d,h,p,w){if(c!==d||u!==h){var v=p.push(o(p)+"scale(",null,",",null,")");w.push({i:v-4,x:ko(c,d)},{i:v-2,x:ko(u,h)})}else(d!==1||h!==1)&&p.push(o(p)+"scale("+d+","+h+")")}return function(c,u){var d=[],h=[];return c=e(c),u=e(u),i(c.translateX,c.translateY,u.translateX,u.translateY,d,h),a(c.rotate,u.rotate,d,h),l(c.skewX,u.skewX,d,h),s(c.scaleX,c.scaleY,u.scaleX,u.scaleY,d,h),c=u=null,function(p){for(var w=-1,v=h.length,b;++w=0&&e._call.call(void 0,t),e=e._next;--qa}function _y(){zi=(ef=Ns.now())+Bf,qa=Vl=0;try{uN()}finally{qa=0,dN(),zi=0}}function fN(){var e=Ns.now(),t=e-ef;t>zx&&(Bf-=t,ef=e)}function dN(){for(var e,t=Ju,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:Ju=n);Wl=e,Xm(r)}function Xm(e){if(!qa){Vl&&(Vl=clearTimeout(Vl));var t=e-zi;t>24?(e<1/0&&(Vl=setTimeout(_y,e-Ns.now()-Bf)),Ol&&(Ol=clearInterval(Ol))):(Ol||(ef=Ns.now(),Ol=setInterval(fN,zx)),qa=1,Fx(_y))}}function Ry(e,t,n){var r=new tf;return t=t==null?0:+t,r.restart(o=>{r.stop(),e(o+t)},t,n),r}var hN=jf("start","end","cancel","interrupt"),mN=[],Dx=0,Oy=1,qm=2,gu=3,Iy=4,Ym=5,vu=6;function Vf(e,t,n,r,o,i){var a=e.__transition;if(!a)e.__transition={};else if(n in a)return;pN(e,n,{name:t,index:r,group:o,on:hN,tween:mN,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:Dx})}function nv(e,t){var n=Ar(e,t);if(n.state>Dx)throw new Error("too late; already scheduled");return n}function Gr(e,t){var n=Ar(e,t);if(n.state>gu)throw new Error("too late; already running");return n}function Ar(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function pN(e,t,n){var r=e.__transition,o;r[t]=n,n.timer=Lx(i,0,n.time);function i(c){n.state=Oy,n.timer.restart(a,n.delay,n.time),n.delay<=c&&a(c-n.delay)}function a(c){var u,d,h,p;if(n.state!==Oy)return s();for(u in r)if(p=r[u],p.name===n.name){if(p.state===gu)return Ry(a);p.state===Iy?(p.state=vu,p.timer.stop(),p.on.call("interrupt",e,e.__data__,p.index,p.group),delete r[u]):+uqm&&r.state=0&&(t=t.slice(0,n)),!t||t==="start"})}function UN(e,t,n){var r,o,i=WN(t)?nv:Gr;return function(){var a=i(this,e),l=a.on;l!==r&&(o=(r=l).copy()).on(t,n),a.on=o}}function KN(e,t){var n=this._id;return arguments.length<2?Ar(this.node(),n).on.on(e):this.each(UN(n,e,t))}function GN(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function XN(){return this.on("end.remove",GN(this._id))}function qN(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Zg(e));for(var r=this._groups,o=r.length,i=new Array(o),a=0;a()=>e;function SP(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 lo(e,t,n){this.k=e,this.x=t,this.y=n}lo.prototype={constructor:lo,scale:function(e){return e===1?this:new lo(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new lo(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 co=new lo(1,0,0);lo.prototype;function ah(e){e.stopImmediatePropagation()}function Il(e){e.preventDefault(),e.stopImmediatePropagation()}function bP(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function xP(){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 My(){return this.__zoom||co}function CP(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function EP(){return navigator.maxTouchPoints||"ontouchstart"in this}function $P(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 Vx(){var e=bP,t=xP,n=$P,r=CP,o=EP,i=[0,1/0],a=[[-1/0,-1/0],[1/0,1/0]],l=250,s=sN,c=jf("start","zoom","end"),u,d,h,p=500,w=150,v=0,b=10;function g(_){_.property("__zoom",My).on("wheel.zoom",R,{passive:!1}).on("mousedown.zoom",N).on("dblclick.zoom",P).filter(o).on("touchstart.zoom",z).on("touchmove.zoom",L).on("touchend.zoom touchcancel.zoom",A).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}g.transform=function(_,F,O,I){var $=_.selection?_.selection():_;$.property("__zoom",My),_!==$?C(_,F,O,I):$.interrupt().each(function(){E(this,arguments).event(I).start().zoom(null,typeof F=="function"?F.apply(this,arguments):F).end()})},g.scaleBy=function(_,F,O,I){g.scaleTo(_,function(){var $=this.__zoom.k,M=typeof F=="function"?F.apply(this,arguments):F;return $*M},O,I)},g.scaleTo=function(_,F,O,I){g.transform(_,function(){var $=t.apply(this,arguments),M=this.__zoom,T=O==null?S($):typeof O=="function"?O.apply(this,arguments):O,k=M.invert(T),D=typeof F=="function"?F.apply(this,arguments):F;return n(y(m(M,D),T,k),$,a)},O,I)},g.translateBy=function(_,F,O,I){g.transform(_,function(){return n(this.__zoom.translate(typeof F=="function"?F.apply(this,arguments):F,typeof O=="function"?O.apply(this,arguments):O),t.apply(this,arguments),a)},null,I)},g.translateTo=function(_,F,O,I,$){g.transform(_,function(){var M=t.apply(this,arguments),T=this.__zoom,k=I==null?S(M):typeof I=="function"?I.apply(this,arguments):I;return n(co.translate(k[0],k[1]).scale(T.k).translate(typeof F=="function"?-F.apply(this,arguments):-F,typeof O=="function"?-O.apply(this,arguments):-O),M,a)},I,$)};function m(_,F){return F=Math.max(i[0],Math.min(i[1],F)),F===_.k?_:new lo(F,_.x,_.y)}function y(_,F,O){var I=F[0]-O[0]*_.k,$=F[1]-O[1]*_.k;return I===_.x&&$===_.y?_:new lo(_.k,I,$)}function S(_){return[(+_[0][0]+ +_[1][0])/2,(+_[0][1]+ +_[1][1])/2]}function C(_,F,O,I){_.on("start.zoom",function(){E(this,arguments).event(I).start()}).on("interrupt.zoom end.zoom",function(){E(this,arguments).event(I).end()}).tween("zoom",function(){var $=this,M=arguments,T=E($,M).event(I),k=t.apply($,M),D=O==null?S(k):typeof O=="function"?O.apply($,M):O,B=Math.max(k[1][0]-k[0][0],k[1][1]-k[0][1]),V=$.__zoom,W=typeof F=="function"?F.apply($,M):F,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 lo(K,D[0]-X[0]*K,D[1]-X[1]*K)}T.zoom(null,Y)}})}function E(_,F,O){return!O&&_.__zooming||new x(_,F)}function x(_,F){this.that=_,this.args=F,this.active=0,this.sourceEvent=null,this.extent=t.apply(_,F),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(_,F){return this.mouse&&_!=="mouse"&&(this.mouse[1]=F.invert(this.mouse[0])),this.touch0&&_!=="touch"&&(this.touch0[1]=F.invert(this.touch0[0])),this.touch1&&_!=="touch"&&(this.touch1[1]=F.invert(this.touch1[0])),this.that.__zoom=F,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(_){var F=ar(this.that).datum();c.call(_,this.that,new SP(_,{sourceEvent:this.sourceEvent,target:g,type:_,transform:this.that.__zoom,dispatch:c}),F)}};function R(_,...F){if(!e.apply(this,arguments))return;var O=E(this,F).event(_),I=this.__zoom,$=Math.max(i[0],Math.min(i[1],I.k*Math.pow(2,r.apply(this,arguments)))),M=br(_);if(O.wheel)(O.mouse[0][0]!==M[0]||O.mouse[0][1]!==M[1])&&(O.mouse[1]=I.invert(O.mouse[0]=M)),clearTimeout(O.wheel);else{if(I.k===$)return;O.mouse=[M,I.invert(M)],yu(this),O.start()}Il(_),O.wheel=setTimeout(T,w),O.zoom("mouse",n(y(m(I,$),O.mouse[0],O.mouse[1]),O.extent,a));function T(){O.wheel=null,O.end()}}function N(_,...F){if(h||!e.apply(this,arguments))return;var O=_.currentTarget,I=E(this,F,!0).event(_),$=ar(_.view).on("mousemove.zoom",D,!0).on("mouseup.zoom",B,!0),M=br(_,O),T=_.clientX,k=_.clientY;Ox(_.view),ah(_),I.mouse=[M,this.__zoom.invert(M)],yu(this),I.start();function D(V){if(Il(V),!I.moved){var W=V.clientX-T,U=V.clientY-k;I.moved=W*W+U*U>v}I.event(V).zoom("mouse",n(y(I.that.__zoom,I.mouse[0]=br(V,O),I.mouse[1]),I.extent,a))}function B(V){$.on("mousemove.zoom mouseup.zoom",null),Ix(V.view,I.moved),Il(V),I.event(V).end()}}function P(_,...F){if(e.apply(this,arguments)){var O=this.__zoom,I=br(_.changedTouches?_.changedTouches[0]:_,this),$=O.invert(I),M=O.k*(_.shiftKey?.5:2),T=n(y(m(O,M),I,$),t.apply(this,F),a);Il(_),l>0?ar(this).transition().duration(l).call(C,T,I,_):ar(this).call(g.transform,T,I,_)}}function z(_,...F){if(e.apply(this,arguments)){var O=_.touches,I=O.length,$=E(this,F,_.changedTouches.length===I).event(_),M,T,k,D;for(ah(_),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.`},Wx=vo.error001();function dt(e,t){const n=f.useContext(Wf);if(n===null)throw new Error(Wx);return px(n,e,t)}const Zt=()=>{const e=f.useContext(Wf);if(e===null)throw new Error(Wx);return f.useMemo(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe,destroy:e.destroy}),[e])},RP=e=>e.userSelectionActive?"none":"all";function ov({position:e,children:t,className:n,style:r,...o}){const i=dt(RP),a=`${e}`.split("-");return j.createElement("div",{className:hn(["react-flow__panel",n,...a]),style:{...r,pointerEvents:i},...o},t)}function OP({proOptions:e,position:t="bottom-right"}){return e!=null&&e.hideAttribution?null:j.createElement(ov,{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 IP=({x:e,y:t,label:n,labelStyle:r={},labelShowBg:o=!0,labelBgStyle:i={},labelBgPadding:a=[2,4],labelBgBorderRadius:l=2,children:s,className:c,...u})=>{const d=f.useRef(null),[h,p]=f.useState({x:0,y:0,width:0,height:0}),w=hn(["react-flow__edge-textwrapper",c]);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",...u},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 MP=f.memo(IP);const iv=e=>({width:e.offsetWidth,height:e.offsetHeight}),Ya=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),av=(e={x:0,y:0},t)=>({x:Ya(e.x,t[0][0],t[1][0]),y:Ya(e.y,t[0][1],t[1][1])}),Ny=(e,t,n)=>en?-Ya(Math.abs(e-n),1,50)/50:0,Ux=(e,t)=>{const n=Ny(e.x,35,t.width-35)*20,r=Ny(e.y,35,t.height-35)*20;return[n,r]},Kx=e=>{var t;return((t=e.getRootNode)==null?void 0:t.call(e))||(window==null?void 0:window.document)},Gx=(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)}),Ps=({x:e,y:t,width:n,height:r})=>({x:e,y:t,x2:e+n,y2:t+r}),Xx=({x:e,y:t,x2:n,y2:r})=>({x:e,y:t,width:n-e,height:r-t}),Py=e=>({...e.positionAbsolute||{x:0,y:0},width:e.width||0,height:e.height||0}),NP=(e,t)=>Xx(Gx(Ps(e),Ps(t))),Qm=(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)},PP=e=>sr(e.width)&&sr(e.height)&&sr(e.x)&&sr(e.y),sr=e=>!isNaN(e)&&isFinite(e),Yt=Symbol.for("internals"),qx=["Enter"," ","Escape"],TP=(e,t)=>{},AP=e=>"nativeEvent"in e;function Zm(e){var o,i;const t=AP(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 Yx=e=>"clientX"in e,Jo=(e,t)=>{var i,a;const n=Yx(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)}},nf=()=>{var e;return typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)==null?void 0:e.indexOf("Mac"))>=0},sl=({id:e,path:t,labelX:n,labelY:r,label:o,labelStyle:i,labelShowBg:a,labelBgStyle:l,labelBgPadding:s,labelBgBorderRadius:c,style:u,markerEnd:d,markerStart:h,interactionWidth:p=20})=>j.createElement(j.Fragment,null,j.createElement("path",{id:e,style:u,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&&sr(n)&&sr(r)?j.createElement(MP,{x:n,y:r,label:o,labelStyle:i,labelShowBg:a,labelBgStyle:l,labelBgPadding:s,labelBgBorderRadius:c}):null);sl.displayName="BaseEdge";function Ml(e,t,n){return n===void 0?n:r=>{const o=t().edges.find(i=>i.id===e);o&&n(r,{...o})}}function Qx({sourceX:e,sourceY:t,targetX:n,targetY:r}){const o=Math.abs(n-e)/2,i=n{const[b,g,m]=Jx({sourceX:e,sourceY:t,sourcePosition:o,targetX:n,targetY:r,targetPosition:i});return j.createElement(sl,{path:b,labelX:g,labelY:m,label:a,labelStyle:l,labelShowBg:s,labelBgStyle:c,labelBgPadding:u,labelBgBorderRadius:d,style:h,markerEnd:p,markerStart:w,interactionWidth:v})});lv.displayName="SimpleBezierEdge";const Ay={[xe.Left]:{x:-1,y:0},[xe.Right]:{x:1,y:0},[xe.Top]:{x:0,y:-1},[xe.Bottom]:{x:0,y:1}},kP=({source:e,sourcePosition:t=xe.Bottom,target:n})=>t===xe.Left||t===xe.Right?e.xMath.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function zP({source:e,sourcePosition:t=xe.Bottom,target:n,targetPosition:r=xe.Top,center:o,offset:i}){const a=Ay[t],l=Ay[r],s={x:e.x+a.x*i,y:e.y+a.y*i},c={x:n.x+l.x*i,y:n.y+l.y*i},u=kP({source:s,sourcePosition:t,target:c}),d=u.x!==0?"x":"y",h=u[d];let p=[],w,v;const b={x:0,y:0},g={x:0,y:0},[m,y,S,C]=Qx({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(a[d]*l[d]===-1){w=o.x||m,v=o.y||y;const x=[{x:w,y:s.y},{x:w,y:c.y}],R=[{x:s.x,y:v},{x:c.x,y:v}];a[d]===h?p=d==="x"?x:R:p=d==="x"?R:x}else{const x=[{x:s.x,y:c.y}],R=[{x:c.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)*_:g[d]=(c[d]>n[d]?-1:1)*_}}if(t!==r){const A=d==="x"?"y":"x",_=a[d]===l[A],F=s[A]>c[A],O=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:c.x+g.x,y:c.y+g.y},n],w,v,S,C]}function FP(e,t,n,r){const o=Math.min(ky(e,t)/2,ky(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 c=e.x{let y="";return m>0&&m{const[g,m,y]=Jm({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(sl,{path:g,labelX:m,labelY:y,label:o,labelStyle:i,labelShowBg:a,labelBgStyle:l,labelBgPadding:s,labelBgBorderRadius:c,style:u,markerEnd:p,markerStart:w,interactionWidth:b})});Uf.displayName="SmoothStepEdge";const sv=f.memo(e=>{var t;return j.createElement(Uf,{...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])})});sv.displayName="StepEdge";function eC({sourceX:e,sourceY:t,targetX:n,targetY:r}){const[o,i,a,l]=Qx({sourceX:e,sourceY:t,targetX:n,targetY:r});return[`M ${e},${t}L ${n},${r}`,o,i,a,l]}const cv=f.memo(({sourceX:e,sourceY:t,targetX:n,targetY:r,label:o,labelStyle:i,labelShowBg:a,labelBgStyle:l,labelBgPadding:s,labelBgBorderRadius:c,style:u,markerEnd:d,markerStart:h,interactionWidth:p})=>{const[w,v,b]=eC({sourceX:e,sourceY:t,targetX:n,targetY:r});return j.createElement(sl,{path:w,labelX:v,labelY:b,label:o,labelStyle:i,labelShowBg:a,labelBgStyle:l,labelBgPadding:s,labelBgBorderRadius:c,style:u,markerEnd:d,markerStart:h,interactionWidth:p})});cv.displayName="StraightEdge";function kc(e,t){return e>=0?.5*e:t*25*Math.sqrt(-e)}function zy({pos:e,x1:t,y1:n,x2:r,y2:o,c:i}){switch(e){case xe.Left:return[t-kc(t-r,i),n];case xe.Right:return[t+kc(r-t,i),n];case xe.Top:return[t,n-kc(n-o,i)];case xe.Bottom:return[t,n+kc(o-n,i)]}}function tC({sourceX:e,sourceY:t,sourcePosition:n=xe.Bottom,targetX:r,targetY:o,targetPosition:i=xe.Top,curvature:a=.25}){const[l,s]=zy({pos:n,x1:e,y1:t,x2:r,y2:o,c:a}),[c,u]=zy({pos:i,x1:r,y1:o,x2:e,y2:t,c:a}),[d,h,p,w]=Zx({sourceX:e,sourceY:t,targetX:r,targetY:o,sourceControlX:l,sourceControlY:s,targetControlX:c,targetControlY:u});return[`M${e},${t} C${l},${s} ${c},${u} ${r},${o}`,d,h,p,w]}const of=f.memo(({sourceX:e,sourceY:t,targetX:n,targetY:r,sourcePosition:o=xe.Bottom,targetPosition:i=xe.Top,label:a,labelStyle:l,labelShowBg:s,labelBgStyle:c,labelBgPadding:u,labelBgBorderRadius:d,style:h,markerEnd:p,markerStart:w,pathOptions:v,interactionWidth:b})=>{const[g,m,y]=tC({sourceX:e,sourceY:t,sourcePosition:o,targetX:n,targetY:r,targetPosition:i,curvature:v==null?void 0:v.curvature});return j.createElement(sl,{path:g,labelX:m,labelY:y,label:a,labelStyle:l,labelShowBg:s,labelBgStyle:c,labelBgPadding:u,labelBgBorderRadius:d,style:h,markerEnd:p,markerStart:w,interactionWidth:b})});of.displayName="BezierEdge";const uv=f.createContext(null),LP=uv.Provider;uv.Consumer;const DP=()=>f.useContext(uv),jP=e=>"id"in e&&"source"in e&&"target"in e,HP=({source:e,sourceHandle:t,target:n,targetHandle:r})=>`reactflow__edge-${e}${t||""}-${n}${r||""}`,ep=(e,t)=>typeof e>"u"?"":typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(r=>`${r}=${e[r]}`).join("&")}`,BP=(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)),nC=(e,t)=>{if(!e.source||!e.target)return t;let n;return jP(e)?n={...e}:n={...e,id:HP(e)},BP(n,t)?t:t.concat(n)},tp=({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},rC=({x:e,y:t},[n,r,o])=>({x:e*o+n,y:t*o+r}),Ri=(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}},Kf=(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}=Ri(o,t).positionAbsolute;return Gx(r,Ps({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 Xx(n)},oC=(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},c=[];return e.forEach(u=>{const{width:d,height:h,selectable:p=!0,hidden:w=!1}=u;if(a&&!p||w)return!1;const{positionAbsolute:v}=Ri(u,l),b={x:v.x,y:v.y,width:d||0,height:h||0},g=Qm(s,b),m=typeof d>"u"||typeof h>"u"||d===null||h===null,y=i&&g>0,S=(d||0)*(h||0);(m||y||g>=S||u.dragging)&&c.push(u)}),c},iC=(e,t)=>{const n=e.map(r=>r.id);return t.filter(r=>n.includes(r.source)||n.includes(r.target))},aC=(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),c=Ya(s,r,o),u=e.x+e.width/2,d=e.y+e.height/2,h=t/2-u*c,p=n/2-d*c;return{x:h,y:p,zoom:c}},fi=(e,t=0)=>e.transition().duration(t);function Fy(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 VP(e,t,n,r,o,i){const{x:a,y:l}=Jo(e),c=t.elementsFromPoint(a,l).find(w=>w.classList.contains("react-flow__handle"));if(c){const w=c.getAttribute("data-nodeid");if(w){const v=fv(void 0,c),b=c.getAttribute("data-handleid"),g=i({nodeId:w,id:b,type:v});if(g){const m=o.find(y=>y.nodeId===w&&y.type===v&&y.id===b);return{handle:{id:b,type:v,nodeId:w,x:(m==null?void 0:m.x)||n.x,y:(m==null?void 0:m.y)||n.y},validHandleResult:g}}}}let u=[],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=u.some(({handle:w})=>w.type==="target");return u.find(({handle:w,validHandleResult:v})=>p?w.type==="target":h?v.isValid:!0)||u[0]}const WP={source:null,target:null,sourceHandle:null,targetHandle:null},lC=()=>({handleDomNode:null,isValid:!1,connection:WP,endHandle:null});function sC(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}"]`),c={...lC(),handleDomNode:s};if(s){const u=fv(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};c.connection=v,p&&w&&(t===Fi.Strict?l&&u==="source"||!l&&u==="target":d!==n||h!==r)&&(c.endHandle={nodeId:d,handleId:h,type:u},c.isValid=i(v))}return c}function UP({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=Fy(i,a,"source",`${t}-${n}-${r}`),s=Fy(i,a,"target",`${t}-${n}-${r}`)),o.push(...l,...s)}return o},[])}function fv(e,t){return e||(t!=null&&t.classList.contains("target")?"target":t!=null&&t.classList.contains("source")?"source":null)}function lh(e){e==null||e.classList.remove("valid","connecting","react-flow__handle-valid","react-flow__handle-connecting")}function KP(e,t){let n=null;return t?n="valid":e&&!t&&(n="invalid"),n}function cC({event:e,handleId:t,nodeId:n,onConnect:r,isTarget:o,getState:i,setState:a,isValidConnection:l,edgeUpdaterType:s,onEdgeUpdateEnd:c}){const u=Kx(e.target),{connectionMode:d,domNode:h,autoPanOnConnect:p,connectionRadius:w,onConnectStart:v,panBy:b,getNodes:g,cancelConnection:m}=i();let y=0,S;const{x:C,y:E}=Jo(e),x=u==null?void 0:u.elementFromPoint(C,E),R=fv(s,x),N=h==null?void 0:h.getBoundingClientRect();if(!N||!R)return;let P,z=Jo(e,N),L=!1,A=null,_=!1,F=null;const O=UP({nodes:g(),nodeId:n,handleId:t,handleType:R}),I=()=>{if(!p)return;const[T,k]=Ux(z,N);b({x:T,y:k}),y=requestAnimationFrame(I)};a({connectionPosition:z,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();z=Jo(T,N);const{handle:D,validHandleResult:B}=VP(T,u,tp(z,k,!1,[1,1]),w,O,V=>sC(V,d,n,t,o?"target":"source",l,u));if(S=D,L||(I(),L=!0),F=B.handleDomNode,A=B.connection,_=B.isValid,a({connectionPosition:S&&_?rC({x:S.x,y:S.y},k):z,connectionStatus:KP(!!S,_),connectionEndHandle:B.endHandle}),!S&&!_&&!F)return lh(P);A.source!==A.target&&F&&(lh(P),P=F,F.classList.add("connecting","react-flow__handle-connecting"),F.classList.toggle("valid",_),F.classList.toggle("react-flow__handle-valid",_))}function M(T){var k,D;(S||F)&&A&&_&&(r==null||r(A)),(D=(k=i()).onConnectEnd)==null||D.call(k,T),s&&(c==null||c(T)),lh(P),m(),cancelAnimationFrame(y),L=!1,_=!1,A=null,F=null,u.removeEventListener("mousemove",$),u.removeEventListener("mouseup",M),u.removeEventListener("touchmove",$),u.removeEventListener("touchend",M)}u.addEventListener("mousemove",$),u.addEventListener("mouseup",M),u.addEventListener("touchmove",$),u.addEventListener("touchend",M)}const Ly=()=>!0,GP=e=>({connectionStartHandle:e.connectionStartHandle,connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName}),XP=(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}},uC=f.forwardRef(({type:e="source",position:t=xe.Top,isValidConnection:n,isConnectable:r=!0,isConnectableStart:o=!0,isConnectableEnd:i=!0,id:a,onConnect:l,children:s,className:c,onMouseDown:u,onTouchStart:d,...h},p)=>{var N,P;const w=a||null,v=e==="target",b=Zt(),g=DP(),{connectOnClick:m,noPanClassName:y}=dt(GP,an),{connecting:S,clickConnecting:C}=dt(XP(g,w,e),an);g||(P=(N=b.getState()).onError)==null||P.call(N,"010",vo.error010());const E=z=>{const{defaultEdgeOptions:L,onConnect:A,hasDefaultEdges:_}=b.getState(),F={...L,...z};if(_){const{edges:O,setEdges:I}=b.getState();I(nC(F,O))}A==null||A(F),l==null||l(F)},x=z=>{if(!g)return;const L=Yx(z);o&&(L&&z.button===0||!L)&&cC({event:z,handleId:w,nodeId:g,onConnect:E,isTarget:v,getState:b.getState,setState:b.setState,isValidConnection:n||b.getState().isValidConnection||Ly}),L?u==null||u(z):d==null||d(z)},R=z=>{const{onClickConnectStart:L,onClickConnectEnd:A,connectionClickStartHandle:_,connectionMode:F,isValidConnection:O}=b.getState();if(!g||!_&&!o)return;if(!_){L==null||L(z,{nodeId:g,handleId:w,handleType:e}),b.setState({connectionClickStartHandle:{nodeId:g,type:e,handleId:w}});return}const I=Kx(z.target),$=n||O||Ly,{connection:M,isValid:T}=sC({nodeId:g,id:w,type:e},F,_.nodeId,_.handleId||null,_.type,$,I);T&&E(M),A==null||A(z),b.setState({connectionClickStartHandle:null})};return j.createElement("div",{"data-handleid":w,"data-nodeid":g,"data-handlepos":t,"data-id":`${g}-${w}-${e}`,className:hn(["react-flow__handle",`react-flow__handle-${t}`,"nodrag",y,c,{source:!v,target:v,connectable:r,connectablestart:o,connectableend:i,connecting:C,connectionindicator:r&&(o&&!S||i&&S)}]),onMouseDown:x,onTouchStart:x,onClick:m?R:void 0,ref:p,...h},s)});uC.displayName="Handle";var cn=f.memo(uC);const fC=({data:e,isConnectable:t,targetPosition:n=xe.Top,sourcePosition:r=xe.Bottom})=>j.createElement(j.Fragment,null,j.createElement(cn,{type:"target",position:n,isConnectable:t}),e==null?void 0:e.label,j.createElement(cn,{type:"source",position:r,isConnectable:t}));fC.displayName="DefaultNode";var np=f.memo(fC);const dC=({data:e,isConnectable:t,sourcePosition:n=xe.Bottom})=>j.createElement(j.Fragment,null,e==null?void 0:e.label,j.createElement(cn,{type:"source",position:n,isConnectable:t}));dC.displayName="InputNode";var hC=f.memo(dC);const mC=({data:e,isConnectable:t,targetPosition:n=xe.Top})=>j.createElement(j.Fragment,null,j.createElement(cn,{type:"target",position:n,isConnectable:t}),e==null?void 0:e.label);mC.displayName="OutputNode";var pC=f.memo(mC);const dv=()=>null;dv.displayName="GroupNode";const qP=e=>({selectedNodes:e.getNodes().filter(t=>t.selected),selectedEdges:e.edges.filter(t=>t.selected)}),zc=e=>e.id;function YP(e,t){return an(e.selectedNodes.map(zc),t.selectedNodes.map(zc))&&an(e.selectedEdges.map(zc),t.selectedEdges.map(zc))}const gC=f.memo(({onSelectionChange:e})=>{const t=Zt(),{selectedNodes:n,selectedEdges:r}=dt(qP,YP);return f.useEffect(()=>{const o={nodes:n,edges:r};e==null||e(o),t.getState().onSelectionChange.forEach(i=>i(o))},[n,r,e]),null});gC.displayName="SelectionListener";const QP=e=>!!e.onSelectionChange;function ZP({onSelectionChange:e}){const t=dt(QP);return e||t?j.createElement(gC,{onSelectionChange:e}):null}const JP=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 Zi(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 eT=({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,onConnect:o,onConnectStart:i,onConnectEnd:a,onClickConnectStart:l,onClickConnectEnd:s,nodesDraggable:c,nodesConnectable:u,nodesFocusable:d,edgesFocusable:h,edgesUpdatable:p,elevateNodesOnSelect:w,minZoom:v,maxZoom:b,nodeExtent:g,onNodesChange:m,onEdgesChange:y,elementsSelectable:S,connectionMode:C,snapGrid:E,snapToGrid:x,translateExtent:R,connectOnClick:N,defaultEdgeOptions:P,fitView:z,fitViewOptions:L,onNodesDelete:A,onEdgesDelete:_,onNodeDrag:F,onNodeDragStart:O,onNodeDragStop:I,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:he}=dt(JP,an),oe=Zt();return f.useEffect(()=>{const J=r==null?void 0:r.map(re=>({...re,...P}));return ne(n,J),()=>{he()}},[]),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",c,oe.setState),Xe("nodesConnectable",u,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",m,oe.setState),Xe("onEdgesChange",y,oe.setState),Xe("connectOnClick",N,oe.setState),Xe("fitViewOnInit",z,oe.setState),Xe("fitViewOnInitOptions",L,oe.setState),Xe("onNodesDelete",A,oe.setState),Xe("onEdgesDelete",_,oe.setState),Xe("onNodeDrag",F,oe.setState),Xe("onNodeDragStart",O,oe.setState),Xe("onNodeDragStop",I,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),Zi(e,q),Zi(t,te),Zi(v,ee),Zi(b,Z),Zi(R,ae),Zi(g,pe),null},Dy={display:"none"},tT={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},vC="react-flow__node-desc",yC="react-flow__edge-desc",nT="react-flow__aria-live",rT=e=>e.ariaLiveMessage;function oT({rfId:e}){const t=dt(rT);return j.createElement("div",{id:`${nT}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:tT},t)}function iT({rfId:e,disableKeyboardA11y:t}){return j.createElement(j.Fragment,null,j.createElement("div",{id:`${vC}-${e}`,style:Dy},"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:`${yC}-${e}`,style:Dy},"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel."),!t&&j.createElement(oT,{rfId:e}))}var As=(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 c=(Array.isArray(e)?e:[e]).filter(d=>typeof d=="string").map(d=>d.split("+")),u=c.reduce((d,h)=>d.concat(...h),[]);return[c,u]}return[[],[]]},[e]);return f.useEffect(()=>{const s=typeof document<"u"?document:null,c=(t==null?void 0:t.target)||s;if(e!==null){const u=p=>{if(o.current=p.ctrlKey||p.metaKey||p.shiftKey,(!o.current||o.current&&!t.actInsideInputWithModifier)&&Zm(p))return!1;const v=Hy(p.code,l);i.current.add(p[v]),jy(a,i.current,!1)&&(p.preventDefault(),r(!0))},d=p=>{if((!o.current||o.current&&!t.actInsideInputWithModifier)&&Zm(p))return!1;const v=Hy(p.code,l);jy(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 c==null||c.addEventListener("keydown",u),c==null||c.addEventListener("keyup",d),window.addEventListener("blur",h),()=>{c==null||c.removeEventListener("keydown",u),c==null||c.removeEventListener("keyup",d),window.removeEventListener("blur",h)}}},[e,r]),n};function jy(e,t,n){return e.filter(r=>n||r.length===t.size).some(r=>r.every(o=>t.has(o)))}function Hy(e,t){return t.includes(e)?"code":"key"}function wC(e,t,n,r){var a,l;if(!e.parentNode)return n;const o=t.get(e.parentNode),i=Ri(o,r);return wC(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 SC(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}=wC(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 sh(e,t,n,r){const o=new Map,i={},a=r?1e3:0;return e.forEach(l=>{var d;const s=(sr(l.zIndex)?l.zIndex:0)+(l.selected?a:0),c=t.get(l.id),u={width:c==null?void 0:c.width,height:c==null?void 0:c.height,...l,positionAbsolute:{x:l.position.x,y:l.position.y}};l.parentNode&&(u.parentNode=l.parentNode,i[l.parentNode]=!0),Object.defineProperty(u,Yt,{enumerable:!1,value:{handleBounds:(d=c==null?void 0:c[Yt])==null?void 0:d.handleBounds,z:s}}),o.set(l.id,u)}),SC(o,n,i),o}function bC(e,t={}){const{getNodes:n,width:r,height:o,minZoom:i,maxZoom:a,d3Zoom:l,d3Selection:s,fitViewOnInitDone:c,fitViewOnInit:u,nodeOrigin:d}=e(),h=t.initial&&!c&&u;if(l&&s&&(h||!t.initial)){const w=n().filter(b=>{var m;const g=t.includeHiddenNodes?b.width&&b.height:!b.hidden;return(m=t.nodes)!=null&&m.length?g&&t.nodes.some(y=>y.id===b.id):g}),v=w.every(b=>b.width&&b.height);if(w.length>0&&v){const b=Kf(w,d),{x:g,y:m,zoom:y}=aC(b,r,o,t.minZoom??i,t.maxZoom??a,t.padding??.1),S=co.translate(g,m).scale(y);return typeof t.duration=="number"&&t.duration>0?l.transform(fi(s,t.duration),S):l.transform(s,S),!0}}return!1}function aT(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 lT(e,t){return t.map(n=>{const r=e.find(o=>o.id===n.id);return r&&(n.selected=r.selected),n})}function Fc({changedNodes:e,changedEdges:t,get:n,set:r}){const{nodeInternals:o,edges:i,onNodesChange:a,onEdgesChange:l,hasDefaultNodes:s,hasDefaultEdges:c}=n();e!=null&&e.length&&(s&&r({nodeInternals:aT(e,o)}),a==null||a(e)),t!=null&&t.length&&(c&&r({edges:lT(t,i)}),l==null||l(t))}const Ji=()=>{},sT={zoomIn:Ji,zoomOut:Ji,zoomTo:Ji,getZoom:()=>1,setViewport:Ji,getViewport:()=>({x:0,y:0,zoom:1}),fitView:()=>!1,setCenter:Ji,fitBounds:Ji,project:e=>e,screenToFlowPosition:e=>e,flowToScreenPosition:e=>e,viewportInitialized:!1},cT=e=>({d3Zoom:e.d3Zoom,d3Selection:e.d3Selection}),uT=()=>{const e=Zt(),{d3Zoom:t,d3Selection:n}=dt(cT,an);return f.useMemo(()=>n&&t?{zoomIn:o=>t.scaleBy(fi(n,o==null?void 0:o.duration),1.2),zoomOut:o=>t.scaleBy(fi(n,o==null?void 0:o.duration),1/1.2),zoomTo:(o,i)=>t.scaleTo(fi(n,i==null?void 0:i.duration),o),getZoom:()=>e.getState().transform[2],setViewport:(o,i)=>{const[a,l,s]=e.getState().transform,c=co.translate(o.x??a,o.y??l).scale(o.zoom??s);t.transform(fi(n,i==null?void 0:i.duration),c)},getViewport:()=>{const[o,i,a]=e.getState().transform;return{x:o,y:i,zoom:a}},fitView:o=>bC(e.getState,o),setCenter:(o,i,a)=>{const{width:l,height:s,maxZoom:c}=e.getState(),u=typeof(a==null?void 0:a.zoom)<"u"?a.zoom:c,d=l/2-o*u,h=s/2-i*u,p=co.translate(d,h).scale(u);t.transform(fi(n,a==null?void 0:a.duration),p)},fitBounds:(o,i)=>{const{width:a,height:l,minZoom:s,maxZoom:c}=e.getState(),{x:u,y:d,zoom:h}=aC(o,a,l,s,c,(i==null?void 0:i.padding)??.1),p=co.translate(u,d).scale(h);t.transform(fi(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"),tp(o,i,a,l)},screenToFlowPosition:o=>{const{transform:i,snapToGrid:a,snapGrid:l,domNode:s}=e.getState();if(!s)return o;const{x:c,y:u}=s.getBoundingClientRect(),d={x:o.x-c,y:o.y-u};return tp(d,i,a,l)},flowToScreenPosition:o=>{const{transform:i,domNode:a}=e.getState();if(!a)return o;const{x:l,y:s}=a.getBoundingClientRect(),c=rC(o,i);return{x:c.x+l,y:c.y+s}},viewportInitialized:!0}:sT,[t,n])};function Gf(){const e=uT(),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(g=>g.id===v)},[]),a=f.useCallback(v=>{const{getNodes:b,setNodes:g,hasDefaultNodes:m,onNodesChange:y}=t.getState(),S=b(),C=typeof v=="function"?v(S):v;if(m)g(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:g,hasDefaultEdges:m,onEdgesChange:y}=t.getState(),S=typeof v=="function"?v(b):v;if(m)g(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:g,setNodes:m,hasDefaultNodes:y,onNodesChange:S}=t.getState();if(y){const E=[...g(),...b];m(E)}else if(S){const C=b.map(E=>({item:E,type:"add"}));S(C)}},[]),c=f.useCallback(v=>{const b=Array.isArray(v)?v:[v],{edges:g=[],setEdges:m,hasDefaultEdges:y,onEdgesChange:S}=t.getState();if(y)m([...g,...b]);else if(S){const C=b.map(E=>({item:E,type:"add"}));S(C)}},[]),u=f.useCallback(()=>{const{getNodes:v,edges:b=[],transform:g}=t.getState(),[m,y,S]=g;return{nodes:v().map(C=>({...C})),edges:b.map(C=>({...C})),viewport:{x:m,y,zoom:S}}},[]),d=f.useCallback(({nodes:v,edges:b})=>{const{nodeInternals:g,getNodes:m,edges:y,hasDefaultNodes:S,hasDefaultEdges:C,onNodesDelete:E,onEdgesDelete:x,onNodesChange:R,onEdgesChange:N}=t.getState(),P=(v||[]).map(F=>F.id),z=(b||[]).map(F=>F.id),L=m().reduce((F,O)=>{const I=!P.includes(O.id)&&O.parentNode&&F.find(M=>M.id===O.parentNode);return(typeof O.deletable=="boolean"?O.deletable:!0)&&(P.includes(O.id)||I)&&F.push(O),F},[]),A=y.filter(F=>typeof F.deletable=="boolean"?F.deletable:!0),_=A.filter(F=>z.includes(F.id));if(L||_){const F=iC(L,A),O=[..._,...F],I=O.reduce(($,M)=>($.includes(M.id)||$.push(M.id),$),[]);if((C||S)&&(C&&t.setState({edges:y.filter($=>!I.includes($.id))}),S&&(L.forEach($=>{g.delete($.id)}),t.setState({nodeInternals:new Map(g)}))),I.length>0&&(x==null||x(O),N&&N(I.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=PP(v),g=b?null:t.getState().nodeInternals.get(v.id);return[b?v:Py(g),g,b]},[]),p=f.useCallback((v,b=!0,g)=>{const[m,y,S]=h(v);return m?(g||t.getState().getNodes()).filter(C=>{if(!S&&(C.id===y.id||!C.positionAbsolute))return!1;const E=Py(C),x=Qm(E,m);return b&&x>0||x>=m.width*m.height}):[]},[]),w=f.useCallback((v,b,g=!0)=>{const[m]=h(v);if(!m)return!1;const y=Qm(m,b);return g&&y>0||y>=m.width*m.height},[]);return f.useMemo(()=>({...e,getNodes:n,getNode:r,getEdges:o,getEdge:i,setNodes:a,setEdges:l,addNodes:s,addEdges:c,toObject:u,deleteElements:d,getIntersectingNodes:p,isNodeIntersecting:w}),[e,n,r,o,i,a,l,s,c,u,d,p,w])}const fT={actInsideInputWithModifier:!1};var dT=({deleteKeyCode:e,multiSelectionKeyCode:t})=>{const n=Zt(),{deleteElements:r}=Gf(),o=As(e,fT),i=As(t);f.useEffect(()=>{if(o){const{edges:a,getNodes:l}=n.getState(),s=l().filter(u=>u.selected),c=a.filter(u=>u.selected);r({nodes:s,edges:c}),n.setState({nodesSelectionActive:!1})}},[o]),f.useEffect(()=>{n.setState({multiSelectionActive:i})},[i])};function hT(e){const t=Zt();f.useEffect(()=>{let n;const r=()=>{var i,a;if(!e.current)return;const o=iv(e.current);(o.height===0||o.width===0)&&((a=(i=t.getState()).onError)==null||a.call(i,"004",vo.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 hv={position:"absolute",width:"100%",height:"100%",top:0,left:0},mT=(e,t)=>e.x!==t.x||e.y!==t.y||e.zoom!==t.k,Lc=e=>({x:e.x,y:e.y,zoom:e.k}),ea=(e,t)=>e.target.closest(`.${t}`),By=(e,t)=>t===2&&Array.isArray(e)&&e.includes(2),Vy=e=>{const t=e.ctrlKey&&nf()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t},pT=e=>({d3Zoom:e.d3Zoom,d3Selection:e.d3Selection,d3ZoomHandler:e.d3ZoomHandler,userSelectionActive:e.userSelectionActive}),gT=({onMove:e,onMoveStart:t,onMoveEnd:n,onPaneContextMenu:r,zoomOnScroll:o=!0,zoomOnPinch:i=!0,panOnScroll:a=!1,panOnScrollSpeed:l=.5,panOnScrollMode:s=Si.Free,zoomOnDoubleClick:c=!0,elementsSelectable:u,panOnDrag:d=!0,defaultViewport:h,translateExtent:p,minZoom:w,maxZoom:v,zoomActivationKeyCode:b,preventScrolling:g=!0,children:m,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:z,d3Selection:L,d3ZoomHandler:A,userSelectionActive:_}=dt(pT,an),F=As(b),O=f.useRef(0),I=f.useRef(!1),$=f.useRef();return hT(N),f.useEffect(()=>{if(N.current){const M=N.current.getBoundingClientRect(),T=Vx().scaleExtent([w,v]).translateExtent(p),k=ar(N.current).call(T),D=co.translate(h.x,h.y).scale(Ya(h.zoom,w,v)),B=[[0,0],[M.width,M.height]],V=T.constrain()(D,B,p);T.transform(k,V),T.wheelDelta(Vy),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&&z&&(a&&!F&&!_?L.on("wheel.zoom",M=>{if(ea(M,y))return!1;M.preventDefault(),M.stopImmediatePropagation();const T=L.property("__zoom").k||1,k=nf();if(M.ctrlKey&&i&&k){const K=br(M),q=Vy(M),te=T*Math.pow(2,q);z.scaleTo(L,te,K,M);return}const D=M.deltaMode===1?20:1;let B=s===Si.Vertical?0:M.deltaX*D,V=s===Si.Horizontal?0:M.deltaY*D;!k&&M.shiftKey&&s!==Si.Vertical&&(B=M.deltaY*D,V=0),z.translateBy(L,-(B/T)*l,-(V/T)*l,{internal:!0});const W=Lc(L.property("__zoom")),{onViewportChangeStart:U,onViewportChange:Y,onViewportChangeEnd:X}=E.getState();clearTimeout($.current),I.current||(I.current=!0,t==null||t(M,W),U==null||U(W)),I.current&&(e==null||e(M,W),Y==null||Y(W),$.current=setTimeout(()=>{n==null||n(M,W),X==null||X(W),I.current=!1},150))},{passive:!1}):typeof A<"u"&&L.on("wheel.zoom",function(M,T){if(!g||ea(M,y))return null;M.preventDefault(),A.call(this,M,T)},{passive:!1}))},[_,a,s,L,z,A,F,i,g,y,t,e,n]),f.useEffect(()=>{z&&z.on("start",M=>{var D,B;if(!M.sourceEvent||M.sourceEvent.internal)return null;O.current=(D=M.sourceEvent)==null?void 0:D.button;const{onViewportChangeStart:T}=E.getState(),k=Lc(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)})},[z,t]),f.useEffect(()=>{z&&(_&&!x.current?z.on("zoom",null):_||z.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&&By(d,O.current??0)),(e||T)&&!((k=M.sourceEvent)!=null&&k.internal)){const D=Lc(M.transform);T==null||T(D),e==null||e(M.sourceEvent,D)}}))},[_,z,e,d,r]),f.useEffect(()=>{z&&z.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&&By(d,O.current??0)&&!R.current&&r(M.sourceEvent),R.current=!1,(n||T)&&mT(P.current,M.transform)){const k=Lc(M.transform);P.current=k,clearTimeout(C.current),C.current=setTimeout(()=>{T==null||T(k),n==null||n(M.sourceEvent,k)},a?150:0)}})},[z,a,d,n,r]),f.useEffect(()=>{z&&z.filter(M=>{const T=F||o,k=i&&M.ctrlKey;if((d===!0||Array.isArray(d)&&d.includes(1))&&M.button===1&&M.type==="mousedown"&&(ea(M,"react-flow__node")||ea(M,"react-flow__edge")))return!0;if(!d&&!T&&!a&&!c&&!i||_||!c&&M.type==="dblclick"||ea(M,y)&&M.type==="wheel"||ea(M,S)&&(M.type!=="wheel"||a&&M.type==="wheel"&&!F)||!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})},[_,z,o,i,a,c,d,u,F]),j.createElement("div",{className:"react-flow__renderer",ref:N,style:hv},m)},vT=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function yT(){const{userSelectionActive:e,userSelectionRect:t}=dt(vT,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 Wy(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 xC(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&&Wy(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&&Wy(r,a);break}case"remove":return r}return r.push(a),r},n)}function CC(e,t){return xC(e,t)}function wT(e,t){return xC(e,t)}const zo=(e,t)=>({id:e,type:"select",selected:t});function $a(e,t){return e.reduce((n,r)=>{const o=t.includes(r.id);return!r.selected&&o?(r.selected=!0,n.push(zo(r.id,!0))):r.selected&&!o&&(r.selected=!1,n.push(zo(r.id,!1))),n},[])}const ch=(e,t)=>n=>{n.target===t.current&&(e==null||e(n))},ST=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,dragging:e.paneDragging}),EC=f.memo(({isSelecting:e,selectionMode:t=Ts.Full,panOnDrag:n,onSelectionStart:r,onSelectionEnd:o,onPaneClick:i,onPaneContextMenu:a,onPaneScroll:l,onPaneMouseEnter:s,onPaneMouseMove:c,onPaneMouseLeave:u,children:d})=>{const h=f.useRef(null),p=Zt(),w=f.useRef(0),v=f.useRef(0),b=f.useRef(),{userSelectionActive:g,elementsSelectable:m,dragging:y}=dt(ST,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:F}=p.getState();if(b.current=F==null?void 0:F.getBoundingClientRect(),!m||!e||A.button!==0||A.target!==h.current||!b.current)return;const{x:O,y:I}=Jo(A,b.current);_(),p.setState({userSelectionRect:{width:0,height:0,startX:O,startY:I,x:O,y:I}}),r==null||r(A)},N=A=>{const{userSelectionRect:_,nodeInternals:F,edges:O,transform:I,onNodesChange:$,onEdgesChange:M,nodeOrigin:T,getNodes:k}=p.getState();if(!e||!b.current||!_)return;p.setState({userSelectionActive:!0,nodesSelectionActive:!1});const D=Jo(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=$a(U,K);q.length&&($==null||$(q))}if(v.current!==X.length){v.current=X.length;const q=$a(O,X);q.length&&(M==null||M(q))}p.setState({userSelectionRect:W})},P=A=>{if(A.button!==0)return;const{userSelectionRect:_}=p.getState();!g&&_&&A.target===h.current&&(C==null||C(A)),p.setState({nodesSelectionActive:w.current>0}),S(),o==null||o(A)},z=A=>{g&&(p.setState({nodesSelectionActive:w.current>0}),o==null||o(A)),S()},L=m&&(e||g);return j.createElement("div",{className:hn(["react-flow__pane",{dragging:y,selection:e}]),onClick:L?void 0:ch(C,h),onContextMenu:ch(E,h),onWheel:ch(x,h),onMouseEnter:L?void 0:s,onMouseDown:L?R:void 0,onMouseMove:L?N:c,onMouseUp:L?P:void 0,onMouseLeave:L?z:u,ref:h,style:hv},d,j.createElement(yT,null))});EC.displayName="Pane";function $C(e,t){if(!e.parentNode)return!1;const n=t.get(e.parentNode);return n?n.selected?!0:$C(n,t):!1}function Uy(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 bT(e,t,n,r){return Array.from(e.values()).filter(o=>(o.selected||o.id===r)&&(!o.parentNode||!$C(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 xT(e,t){return!t||t==="parent"?t:[t[0],[t[1][0]-(e.width||0),t[1][1]-(e.height||0)]]}function _C(e,t,n,r,o=[0,0],i){const a=xT(e,e.extent||r);let l=a;if(e.extent==="parent"&&!e.expandParent)if(e.parentNode&&e.width&&e.height){const u=n.get(e.parentNode),{x:d,y:h}=Ri(u,o).positionAbsolute;l=u&&sr(d)&&sr(h)&&sr(u.width)&&sr(u.height)?[[d+e.width*o[0],h+e.height*o[1]],[d+u.width-e.width+e.width*o[0],h+u.height-e.height+e.height*o[1]]]:l}else i==null||i("005",vo.error005()),l=a;else if(e.extent&&e.parentNode&&e.extent!=="parent"){const u=n.get(e.parentNode),{x:d,y:h}=Ri(u,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 u=n.get(e.parentNode);s=Ri(u,o).positionAbsolute}const c=l&&l!=="parent"?av(t,l):t;return{position:{x:c.x-s.x,y:c.y-s.y},positionAbsolute:c}}function uh({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 Ky=(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 c=s.getBoundingClientRect();return{id:s.getAttribute("data-handleid"),position:s.getAttribute("data-handlepos"),x:(c.left-a.left-l.x)/n,y:(c.top-a.top-l.y)/n,...iv(s)}})};function Nl(e,t,n){return n===void 0?n:r=>{const o=t().nodeInternals.get(e);o&&n(r,{...o})}}function rp({id:e,store:t,unselect:n=!1,nodeRef:r}){const{addSelectedNodes:o,unselectNodesAndEdges:i,multiSelectionActive:a,nodeInternals:l,onError:s}=t.getState(),c=l.get(e);if(!c){s==null||s("012",vo.error012(e));return}t.setState({nodesSelectionActive:!1}),c.selected?(n||c.selected&&a)&&(i({nodes:[c],edges:[]}),requestAnimationFrame(()=>{var u;return(u=r==null?void 0:r.current)==null?void 0:u.blur()})):o([e])}function CT(){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 fh(e){return(t,n,r)=>e==null?void 0:e(t,r)}function RC({nodeRef:e,disabled:t=!1,noDragClassName:n,handleSelector:r,nodeId:o,isSelectable:i,selectNodesOnDrag:a}){const l=Zt(),[s,c]=f.useState(!1),u=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),g=f.useRef(!1),m=CT();return f.useEffect(()=>{if(e!=null&&e.current){const y=ar(e.current),S=({x,y:R})=>{const{nodeInternals:N,onNodeDrag:P,onSelectionDrag:z,updateNodePositions:L,nodeExtent:A,snapGrid:_,snapToGrid:F,nodeOrigin:O,onError:I}=l.getState();d.current={x,y:R};let $=!1,M={x:0,y:0,x2:0,y2:0};if(u.current.length>1&&A){const k=Kf(u.current,O);M=Ps(k)}if(u.current=u.current.map(k=>{const D={x:x-k.distance.x,y:R-k.distance.y};F&&(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]]];u.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=_C(k,D,N,B,O,I);return $=$||k.position.x!==V.position.x||k.position.y!==V.position.y,k.position=V.position,k.positionAbsolute=V.positionAbsolute,k}),!$)return;L(u.current,!0,!0),c(!0);const T=o?P:fh(z);if(T&&v.current){const[k,D]=uh({nodeId:o,dragItems:u.current,nodeInternals:N});T(v.current,k,D)}},C=()=>{if(!p.current)return;const[x,R]=Ux(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 O;const{nodeInternals:R,multiSelectionActive:N,nodesDraggable:P,unselectNodesAndEdges:z,onNodeDragStart:L,onSelectionDragStart:A}=l.getState();g.current=!0;const _=o?L:fh(A);(!a||!i)&&!N&&o&&((O=R.get(o))!=null&&O.selected||z()),o&&i&&a&&rp({id:o,store:l,nodeRef:e});const F=m(x);if(d.current=F,u.current=bT(R,P,F,o),_&&u.current){const[I,$]=uh({nodeId:o,dragItems:u.current,nodeInternals:R});_(x.sourceEvent,I,$)}};if(t)y.on(".drag",null);else{const x=zM().on("start",R=>{const{domNode:N,nodeDragThreshold:P}=l.getState();P===0&&E(R);const z=m(R);d.current=z,p.current=(N==null?void 0:N.getBoundingClientRect())||null,w.current=Jo(R.sourceEvent,p.current)}).on("drag",R=>{var L,A;const N=m(R),{autoPanOnNodeDrag:P,nodeDragThreshold:z}=l.getState();if(!b.current&&g.current&&P&&(b.current=!0,C()),!g.current){const _=N.xSnapped-(((L=d==null?void 0:d.current)==null?void 0:L.x)??0),F=N.ySnapped-(((A=d==null?void 0:d.current)==null?void 0:A.y)??0);Math.sqrt(_*_+F*F)>z&&E(R)}(d.current.x!==N.xSnapped||d.current.y!==N.ySnapped)&&u.current&&g.current&&(v.current=R.sourceEvent,w.current=Jo(R.sourceEvent,p.current),S(N))}).on("end",R=>{if(g.current&&(c(!1),b.current=!1,g.current=!1,cancelAnimationFrame(h.current),u.current)){const{updateNodePositions:N,nodeInternals:P,onNodeDragStop:z,onSelectionDragStop:L}=l.getState(),A=o?z:fh(L);if(N(u.current,!1,!1),A){const[_,F]=uh({nodeId:o,dragItems:u.current,nodeInternals:P});A(R.sourceEvent,_,F)}}}).filter(R=>{const N=R.target;return!R.button&&(!n||!Uy(N,`.${n}`,e))&&(!r||Uy(N,r,e))});return y.call(x),()=>{y.on(".drag",null)}}}},[e,t,n,r,i,l,o,a,m]),s}function OC(){const e=Zt();return f.useCallback(n=>{const{nodeInternals:r,nodeExtent:o,updateNodePositions:i,getNodes:a,snapToGrid:l,snapGrid:s,onError:c,nodesDraggable:u}=e.getState(),d=a().filter(m=>m.selected&&(m.draggable||u&&typeof m.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,g=d.map(m=>{if(m.positionAbsolute){const y={x:m.positionAbsolute.x+v,y:m.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}=_C(m,y,r,o,void 0,c);m.position=C,m.positionAbsolute=S}return m});i(g,!0,!1)},[])}const Fa={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}};var Pl=e=>{const t=({id:n,type:r,data:o,xPos:i,yPos:a,xPosOrigin:l,yPosOrigin:s,selected:c,onClick:u,onMouseEnter:d,onMouseMove:h,onMouseLeave:p,onContextMenu:w,onDoubleClick:v,style:b,className:g,isDraggable:m,isSelectable:y,isConnectable:S,isFocusable:C,selectNodesOnDrag:E,sourcePosition:x,targetPosition:R,hidden:N,resizeObserver:P,dragHandle:z,zIndex:L,isParent:A,noDragClassName:_,noPanClassName:F,initialized:O,disableKeyboardA11y:I,ariaLabel:$,rfId:M})=>{const T=Zt(),k=f.useRef(null),D=f.useRef(x),B=f.useRef(R),V=f.useRef(r),W=y||m||u||d||h||p,U=OC(),Y=Nl(n,T.getState,d),X=Nl(n,T.getState,h),K=Nl(n,T.getState,p),q=Nl(n,T.getState,w),te=Nl(n,T.getState,v),ne=ae=>{const{nodeDragThreshold:pe}=T.getState();if(y&&(!E||!m||pe>0)&&rp({id:n,store:T,nodeRef:k}),u){const he=T.getState().nodeInternals.get(n);he&&u(ae,{...he})}},ee=ae=>{if(!Zm(ae))if(qx.includes(ae.key)&&y){const pe=ae.key==="Escape";rp({id:n,store:T,unselect:pe,nodeRef:k})}else!I&&m&&c&&Object.prototype.hasOwnProperty.call(Fa,ae.key)&&(T.setState({ariaLiveMessage:`Moved selected node ${ae.key.replace("Arrow","").toLowerCase()}. New position, x: ${~~i}, y: ${~~a}`}),U({x:Fa[ae.key].x,y:Fa[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,he=B.current!==R;k.current&&(ae||pe||he)&&(ae&&(V.current=r),pe&&(D.current=x),he&&(B.current=R),T.getState().updateNodeDimensions([{id:n,nodeElement:k.current,forceUpdate:!0}]))},[n,r,x,R]);const Z=RC({nodeRef:k,disabled:N||!m,noDragClassName:_,handleSelector:z,nodeId:n,isSelectable:y,selectNodesOnDrag:E});return N?null:j.createElement("div",{className:hn(["react-flow__node",`react-flow__node-${r}`,{[F]:m},g,{selected:c,selectable:y,parent:A,dragging:Z}]),ref:k,style:{zIndex:L,transform:`translate(${l}px,${s}px)`,pointerEvents:W?"all":"none",visibility:O?"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":I?void 0:`${vC}-${M}`,"aria-label":$},j.createElement(LP,{value:n},j.createElement(e,{id:n,data:o,type:r,xPos:i,yPos:a,selected:c,isConnectable:S,sourcePosition:x,targetPosition:R,dragging:Z,dragHandle:z,zIndex:L})))};return t.displayName="NodeWrapper",f.memo(t)};const ET=e=>{const t=e.getNodes().filter(n=>n.selected);return{...Kf(t,e.nodeOrigin),transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`,userSelectionActive:e.userSelectionActive}};function $T({onSelectionContextMenu:e,noPanClassName:t,disableKeyboardA11y:n}){const r=Zt(),{width:o,height:i,x:a,y:l,transformString:s,userSelectionActive:c}=dt(ET,an),u=OC(),d=f.useRef(null);if(f.useEffect(()=>{var w;n||(w=d.current)==null||w.focus({preventScroll:!0})},[n]),RC({nodeRef:d}),c||!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(Fa,w.key)&&u({x:Fa[w.key].x,y:Fa[w.key].y,isShiftPressed:w.shiftKey})};return j.createElement("div",{className:hn(["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 _T=f.memo($T);const RT=e=>e.nodesSelectionActive,IC=({children:e,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:o,onPaneContextMenu:i,onPaneScroll:a,deleteKeyCode:l,onMove:s,onMoveStart:c,onMoveEnd:u,selectionKeyCode:d,selectionOnDrag:h,selectionMode:p,onSelectionStart:w,onSelectionEnd:v,multiSelectionKeyCode:b,panActivationKeyCode:g,zoomActivationKeyCode:m,elementsSelectable:y,zoomOnScroll:S,zoomOnPinch:C,panOnScroll:E,panOnScrollSpeed:x,panOnScrollMode:R,zoomOnDoubleClick:N,panOnDrag:P,defaultViewport:z,translateExtent:L,minZoom:A,maxZoom:_,preventScrolling:F,onSelectionContextMenu:O,noWheelClassName:I,noPanClassName:$,disableKeyboardA11y:M})=>{const T=dt(RT),k=As(d),D=As(g),B=D||P,V=D||E,W=k||h&&B!==!0;return dT({deleteKeyCode:l,multiSelectionKeyCode:b}),j.createElement(gT,{onMove:s,onMoveStart:c,onMoveEnd:u,onPaneContextMenu:i,elementsSelectable:y,zoomOnScroll:S,zoomOnPinch:C,panOnScroll:V,panOnScrollSpeed:x,panOnScrollMode:R,zoomOnDoubleClick:N,panOnDrag:!k&&B,defaultViewport:z,translateExtent:L,minZoom:A,maxZoom:_,zoomActivationKeyCode:m,preventScrolling:F,noWheelClassName:I,noPanClassName:$},j.createElement(EC,{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(_T,{onSelectionContextMenu:O,noPanClassName:$,disableKeyboardA11y:M})))};IC.displayName="FlowRenderer";var OT=f.memo(IC);function IT(e){return dt(f.useCallback(n=>e?oC(n.nodeInternals,{x:0,y:0,width:n.width,height:n.height},n.transform,!0):n.getNodes(),[e]))}function MT(e){const t={input:Pl(e.input||hC),default:Pl(e.default||np),output:Pl(e.output||pC),group:Pl(e.group||dv)},n={},r=Object.keys(e).filter(o=>!["input","default","output","group"].includes(o)).reduce((o,i)=>(o[i]=Pl(e[i]||np),o),n);return{...t,...r}}const NT=({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]},PT=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,updateNodeDimensions:e.updateNodeDimensions,onError:e.onError}),MC=e=>{const{nodesDraggable:t,nodesConnectable:n,nodesFocusable:r,elementsSelectable:o,updateNodeDimensions:i,onError:a}=dt(PT,an),l=IT(e.onlyRenderVisibleElements),s=f.useRef(),c=f.useMemo(()=>{if(typeof ResizeObserver>"u")return null;const u=new ResizeObserver(d=>{const h=d.map(p=>({id:p.target.getAttribute("data-id"),nodeElement:p.target,forceUpdate:!0}));i(h)});return s.current=u,u},[]);return f.useEffect(()=>()=>{var u;(u=s==null?void 0:s.current)==null||u.disconnect()},[]),j.createElement("div",{className:"react-flow__nodes",style:hv},l.map(u=>{var C,E;let d=u.type||"default";e.nodeTypes[d]||(a==null||a("003",vo.error003(d)),d="default");const h=e.nodeTypes[d]||e.nodeTypes.default,p=!!(u.draggable||t&&typeof u.draggable>"u"),w=!!(u.selectable||o&&typeof u.selectable>"u"),v=!!(u.connectable||n&&typeof u.connectable>"u"),b=!!(u.focusable||r&&typeof u.focusable>"u"),g=e.nodeExtent?av(u.positionAbsolute,e.nodeExtent):u.positionAbsolute,m=(g==null?void 0:g.x)??0,y=(g==null?void 0:g.y)??0,S=NT({x:m,y,width:u.width??0,height:u.height??0,origin:e.nodeOrigin});return j.createElement(h,{key:u.id,id:u.id,className:u.className,style:u.style,type:d,data:u.data,sourcePosition:u.sourcePosition||xe.Bottom,targetPosition:u.targetPosition||xe.Top,hidden:u.hidden,xPos:m,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:!!u.selected,isDraggable:p,isSelectable:w,isConnectable:v,isFocusable:b,resizeObserver:c,dragHandle:u.dragHandle,zIndex:((C=u[Yt])==null?void 0:C.z)??0,isParent:!!((E=u[Yt])!=null&&E.isParent),noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,initialized:!!u.width&&!!u.height,rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,ariaLabel:u.ariaLabel})}))};MC.displayName="NodeRenderer";var TT=f.memo(MC);const AT=(e,t,n)=>n===xe.Left?e-t:n===xe.Right?e+t:e,kT=(e,t,n)=>n===xe.Top?e-t:n===xe.Bottom?e+t:e,Gy="react-flow__edgeupdater",Xy=({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:hn([Gy,`${Gy}-${l}`]),cx:AT(t,r,e),cy:kT(n,r,e),r,stroke:"transparent",fill:"transparent"}),zT=()=>!0;var ta=e=>{const t=({id:n,className:r,type:o,data:i,onClick:a,onEdgeDoubleClick:l,selected:s,animated:c,label:u,labelStyle:d,labelShowBg:h,labelBgStyle:p,labelBgPadding:w,labelBgBorderRadius:v,style:b,source:g,target:m,sourceX:y,sourceY:S,targetX:C,targetY:E,sourcePosition:x,targetPosition:R,elementsSelectable:N,hidden:P,sourceHandleId:z,targetHandleId:L,onContextMenu:A,onMouseEnter:_,onMouseMove:F,onMouseLeave:O,edgeUpdaterRadius:I,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(#${ep(D,B)})`,[D,B]),pe=f.useMemo(()=>`url(#${ep(k,B)})`,[k,B]);if(P)return null;const he=ve=>{var We;const{edges:de,addSelectedEdges:je,unselectNodesAndEdges:Ze,multiSelectionActive:yt}=Z.getState(),nt=de.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=Ml(n,Z.getState,l),J=Ml(n,Z.getState,A),re=Ml(n,Z.getState,_),ue=Ml(n,Z.getState,F),fe=Ml(n,Z.getState,O),ge=(ve,de)=>{if(ve.button!==0)return;const{edges:je,isValidConnection:Ze}=Z.getState(),yt=de?m:g,nt=(de?L:z)||null,We=de?"target":"source",rt=Ze||zT,wt=de,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)};cC({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),Ie=ve=>ge(ve,!1),Ee=()=>te(!0),tt=()=>te(!1),Qe=!N&&!a,Fe=ve=>{var de;if(qx.includes(ve.key)&&N){const{unselectNodesAndEdges:je,addSelectedEdges:Ze,edges:yt}=Z.getState();ve.key==="Escape"?((de=K.current)==null||de.blur(),je({edges:[yt.find(We=>We.id===n)]})):Ze([n])}};return j.createElement("g",{className:hn(["react-flow__edge",`react-flow__edge-${o}`,r,{selected:s,animated:c,inactive:Qe,updating:q}]),onClick:he,onDoubleClick:oe,onContextMenu:J,onMouseEnter:re,onMouseMove:ue,onMouseLeave:fe,onKeyDown:W?Fe: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 ${g} to ${m}`,"aria-describedby":W?`${yC}-${B}`:void 0,ref:K},!ne&&j.createElement(e,{id:n,source:g,target:m,selected:s,animated:c,label:u,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:z,targetHandleId:L,markerStart:ae,markerEnd:pe,pathOptions:Y,interactionWidth:X}),U&&j.createElement(j.Fragment,null,(U==="source"||U===!0)&&j.createElement(Xy,{position:x,centerX:y,centerY:S,radius:I,onMouseDown:Pe,onMouseEnter:Ee,onMouseOut:tt,type:"source"}),(U==="target"||U===!0)&&j.createElement(Xy,{position:R,centerX:C,centerY:E,radius:I,onMouseDown:Ie,onMouseEnter:Ee,onMouseOut:tt,type:"target"})))};return t.displayName="EdgeWrapper",f.memo(t)};function FT(e){const t={default:ta(e.default||of),straight:ta(e.bezier||cv),step:ta(e.step||sv),smoothstep:ta(e.step||Uf),simplebezier:ta(e.simplebezier||lv)},n={},r=Object.keys(e).filter(o=>!["default","bezier"].includes(o)).reduce((o,i)=>(o[i]=ta(e[i]||of),o),n);return{...t,...r}}function qy(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 xe.Top:return{x:r+i/2,y:o};case xe.Right:return{x:r+i,y:o+a/2};case xe.Bottom:return{x:r+i/2,y:o+a};case xe.Left:return{x:r,y:o+a/2}}}function Yy(e,t){return e?e.length===1||!t?e[0]:t&&e.find(n=>n.id===t)||null:null}const LT=(e,t,n,r,o,i)=>{const a=qy(n,e,t),l=qy(i,r,o);return{sourceX:a.x,sourceY:a.y,targetX:l.x,targetY:l.y}};function DT({sourcePos:e,targetPos:t,sourceWidth:n,sourceHeight:r,targetWidth:o,targetHeight:i,width:a,height:l,transform:s}){const c={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)};c.x===c.x2&&(c.x2+=1),c.y===c.y2&&(c.y2+=1);const u=Ps({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(u.x2,c.x2)-Math.max(u.x,c.x)),h=Math.max(0,Math.min(u.y2,c.y2)-Math.max(u.y,c.y));return Math.ceil(d*h)>0}function Qy(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 jT=[{level:0,isMaxLevel:!0,edges:[]}];function HT(e,t,n=!1){let r=-1;const o=e.reduce((a,l)=>{var u,d;const s=sr(l.zIndex);let c=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(((u=p==null?void 0:p[Yt])==null?void 0:u.z)||0,((d=h==null?void 0:h[Yt])==null?void 0:d.z)||0,1e3);c=(s?l.zIndex:0)+(w?v:0)}return a[c]?a[c].push(l):a[c]=[l],r=c>r?c:r,a},{}),i=Object.entries(o).map(([a,l])=>{const s=+a;return{edges:l,level:s,isMaxLevel:s===r}});return i.length===0?jT:i}function BT(e,t,n){const r=dt(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)&&DT({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 HT(r,t,n)}const VT=({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"}),WT=({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"}),Zy={[rf.Arrow]:VT,[rf.ArrowClosed]:WT};function UT(e){const t=Zt();return f.useMemo(()=>{var o,i;return Object.prototype.hasOwnProperty.call(Zy,e)?Zy[e]:((i=(o=t.getState()).onError)==null||i.call(o,"009",vo.error009(e)),null)},[e])}const KT=({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=UT(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},GT=({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=ep(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))},NC=({defaultColor:e,rfId:t})=>{const n=dt(f.useCallback(GT({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(KT,{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})))};NC.displayName="MarkerDefinitions";var XT=f.memo(NC);const qT=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}),PC=({defaultMarkerColor:e,onlyRenderVisibleElements:t,elevateEdgesOnSelect:n,rfId:r,edgeTypes:o,noPanClassName:i,onEdgeUpdate:a,onEdgeContextMenu:l,onEdgeMouseEnter:s,onEdgeMouseMove:c,onEdgeMouseLeave:u,onEdgeClick:d,edgeUpdaterRadius:h,onEdgeDoubleClick:p,onEdgeUpdateStart:w,onEdgeUpdateEnd:v,children:b})=>{const{edgesFocusable:g,edgesUpdatable:m,elementsSelectable:y,width:S,height:C,connectionMode:E,nodeInternals:x,onError:R}=dt(qT,an),N=BT(t,x,n);return S?j.createElement(j.Fragment,null,N.map(({level:P,edges:z,isMaxLevel:L})=>j.createElement("svg",{key:P,style:{zIndex:P},width:S,height:C,className:"react-flow__edges react-flow__container"},L&&j.createElement(XT,{defaultColor:e,rfId:r}),j.createElement("g",null,z.map(A=>{const[_,F,O]=Qy(x.get(A.source)),[I,$,M]=Qy(x.get(A.target));if(!O||!M)return null;let T=A.type||"default";o[T]||(R==null||R("011",vo.error011(T)),T="default");const k=o[T]||o.default,D=E===Fi.Strict?$.target:($.target??[]).concat($.source??[]),B=Yy(F.source,A.sourceHandle),V=Yy(D,A.targetHandle),W=(B==null?void 0:B.position)||xe.Bottom,U=(V==null?void 0:V.position)||xe.Top,Y=!!(A.focusable||g&&typeof A.focusable>"u"),X=typeof a<"u"&&(A.updatable||m&&typeof A.updatable>"u");if(!B||!V)return R==null||R("008",vo.error008(B,A)),null;const{sourceX:K,sourceY:q,targetX:te,targetY:ne}=LT(_,B,W,I,V,U);return j.createElement(k,{key:A.id,id:A.id,className:hn([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:c,onMouseLeave:u,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};PC.displayName="EdgeRenderer";var YT=f.memo(PC);const QT=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function ZT({children:e}){const t=dt(QT);return j.createElement("div",{className:"react-flow__viewport react-flow__container",style:{transform:t}},e)}function JT(e){const t=Gf(),n=f.useRef(!1);f.useEffect(()=>{!n.current&&t.viewportInitialized&&e&&(setTimeout(()=>e(t),1),n.current=!0)},[e,t.viewportInitialized])}const e3={[xe.Left]:xe.Right,[xe.Right]:xe.Left,[xe.Top]:xe.Bottom,[xe.Bottom]:xe.Top},TC=({nodeId:e,handleType:t,style:n,type:r=Do.Bezier,CustomComponent:o,connectionStatus:i})=>{var E,x,R;const{fromNode:a,handleId:l,toX:s,toY:c,connectionMode:u}=dt(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(u===Fi.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,g=(((R=a.positionAbsolute)==null?void 0:R.y)??0)+v,m=p==null?void 0:p.position,y=m?e3[m]:null;if(!m||!y)return null;if(o)return j.createElement(o,{connectionLineType:r,connectionLineStyle:n,fromNode:a,fromHandle:p,fromX:b,fromY:g,toX:s,toY:c,fromPosition:m,toPosition:y,connectionStatus:i});let S="";const C={sourceX:b,sourceY:g,sourcePosition:m,targetX:s,targetY:c,targetPosition:y};return r===Do.Bezier?[S]=tC(C):r===Do.Step?[S]=Jm({...C,borderRadius:0}):r===Do.SmoothStep?[S]=Jm(C):r===Do.SimpleBezier?[S]=Jx(C):S=`M${b},${g} ${s},${c}`,j.createElement("path",{d:S,fill:"none",className:"react-flow__connection-path",style:n})};TC.displayName="ConnectionLine";const t3=e=>({nodeId:e.connectionNodeId,handleType:e.connectionHandleType,nodesConnectable:e.nodesConnectable,connectionStatus:e.connectionStatus,width:e.width,height:e.height});function n3({containerStyle:e,style:t,type:n,component:r}){const{nodeId:o,handleType:i,nodesConnectable:a,width:l,height:s,connectionStatus:c}=dt(t3,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:hn(["react-flow__connection",c])},j.createElement(TC,{nodeId:o,handleType:i,style:t,type:n,CustomComponent:r,connectionStatus:c})))}function Jy(e,t){return f.useRef(null),Zt(),f.useMemo(()=>t(e),[e])}const AC=({nodeTypes:e,edgeTypes:t,onMove:n,onMoveStart:r,onMoveEnd:o,onInit:i,onNodeClick:a,onEdgeClick:l,onNodeDoubleClick:s,onEdgeDoubleClick:c,onNodeMouseEnter:u,onNodeMouseMove:d,onNodeMouseLeave:h,onNodeContextMenu:p,onSelectionContextMenu:w,onSelectionStart:v,onSelectionEnd:b,connectionLineType:g,connectionLineStyle:m,connectionLineComponent:y,connectionLineContainerStyle:S,selectionKeyCode:C,selectionOnDrag:E,selectionMode:x,multiSelectionKeyCode:R,panActivationKeyCode:N,zoomActivationKeyCode:P,deleteKeyCode:z,onlyRenderVisibleElements:L,elementsSelectable:A,selectNodesOnDrag:_,defaultViewport:F,translateExtent:O,minZoom:I,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:he,onEdgeMouseLeave:oe,edgeUpdaterRadius:J,onEdgeUpdateStart:re,onEdgeUpdateEnd:ue,noDragClassName:fe,noWheelClassName:ge,noPanClassName:Pe,elevateEdgesOnSelect:Ie,disableKeyboardA11y:Ee,nodeOrigin:tt,nodeExtent:Qe,rfId:Fe})=>{const ve=Jy(e,MT),de=Jy(t,FT);return JT(i),j.createElement(OT,{onPaneClick:X,onPaneMouseEnter:K,onPaneMouseMove:q,onPaneMouseLeave:te,onPaneContextMenu:ee,onPaneScroll:ne,deleteKeyCode:z,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:F,translateExtent:O,minZoom:I,maxZoom:$,onSelectionContextMenu:w,preventScrolling:M,noDragClassName:fe,noWheelClassName:ge,noPanClassName:Pe,disableKeyboardA11y:Ee},j.createElement(ZT,null,j.createElement(YT,{edgeTypes:de,onEdgeClick:l,onEdgeDoubleClick:c,onEdgeUpdate:Z,onlyRenderVisibleElements:L,onEdgeContextMenu:ae,onEdgeMouseEnter:pe,onEdgeMouseMove:he,onEdgeMouseLeave:oe,onEdgeUpdateStart:re,onEdgeUpdateEnd:ue,edgeUpdaterRadius:J,defaultMarkerColor:T,noPanClassName:Pe,elevateEdgesOnSelect:!!Ie,disableKeyboardA11y:Ee,rfId:Fe},j.createElement(n3,{style:m,type:g,component:y,containerStyle:S})),j.createElement("div",{className:"react-flow__edgelabel-renderer"}),j.createElement(TT,{nodeTypes:ve,onNodeClick:a,onNodeDoubleClick:s,onNodeMouseEnter:u,onNodeMouseMove:d,onNodeMouseLeave:h,onNodeContextMenu:p,selectNodesOnDrag:_,onlyRenderVisibleElements:L,noPanClassName:Pe,noDragClassName:fe,disableKeyboardA11y:Ee,nodeOrigin:tt,nodeExtent:Qe,rfId:Fe})))};AC.displayName="GraphView";var r3=f.memo(AC);const op=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],No={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:op,nodeExtent:op,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionNodeId:null,connectionHandleId:null,connectionHandleType:"source",connectionPosition:{x:0,y:0},connectionStatus:null,connectionMode:Fi.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:TP,isValidConnection:void 0},o3=()=>XO((e,t)=>({...No,setNodes:n=>{const{nodeInternals:r,nodeOrigin:o,elevateNodesOnSelect:i}=t();e({nodeInternals:sh(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?sh(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:c}=t(),u=s==null?void 0:s.querySelector(".react-flow__viewport");if(!u)return;const d=window.getComputedStyle(u),{m22:h}=new window.DOMMatrixReadOnly(d.transform),p=n.reduce((v,b)=>{const g=o.get(b.id);if(g){const m=iv(b.nodeElement);!!(m.width&&m.height&&(g.width!==m.width||g.height!==m.height||b.forceUpdate))&&(o.set(g.id,{...g,[Yt]:{...g[Yt],handleBounds:{source:Ky(".source",b.nodeElement,h,c),target:Ky(".target",b.nodeElement,h,c)}},...m}),v.push({id:g.id,type:"dimensions",dimensions:m}))}return v},[]);SC(o,c);const w=a||i&&!a&&bC(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 c=CC(n,l()),u=sh(c,o,a,s);e({nodeInternals:u})}r==null||r(n)}},addSelectedNodes:n=>{const{multiSelectionActive:r,edges:o,getNodes:i}=t();let a,l=null;r?a=n.map(s=>zo(s,!0)):(a=$a(i(),n),l=$a(o,[])),Fc({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=>zo(s,!0)):(a=$a(o,n),l=$a(i(),[])),Fc({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(u=>(u.selected=!1,zo(u.id,!1))),c=l.map(u=>zo(u.id,!1));Fc({changedNodes:s,changedEdges:c,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=>zo(l.id,!1)),a=n.filter(l=>l.selected).map(l=>zo(l.id,!1));Fc({changedNodes:i,changedEdges:a,get:t,set:e})},setNodeExtent:n=>{const{nodeInternals:r}=t();r.forEach(o=>{o.positionAbsolute=av(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 c=co.translate(r[0]+n.x,r[1]+n.y).scale(r[2]),u=[[0,0],[o,i]],d=a==null?void 0:a.constrain()(c,u,s);return a.transform(l,d),r[0]!==d.x||r[1]!==d.y||r[2]!==d.k},cancelConnection:()=>e({connectionNodeId:No.connectionNodeId,connectionHandleId:No.connectionHandleId,connectionHandleType:No.connectionHandleType,connectionStatus:No.connectionStatus,connectionStartHandle:No.connectionStartHandle,connectionEndHandle:No.connectionEndHandle}),reset:()=>e({...No})}),Object.is),mv=({children:e})=>{const t=f.useRef(null);return t.current||(t.current=o3()),j.createElement(_P,{value:t.current},e)};mv.displayName="ReactFlowProvider";const kC=({children:e})=>f.useContext(Wf)?j.createElement(j.Fragment,null,e):j.createElement(mv,null,e);kC.displayName="ReactFlowWrapper";const i3={input:hC,default:np,output:pC,group:dv},a3={default:of,straight:cv,step:sv,smoothstep:Uf,simplebezier:lv},l3=[0,0],s3=[15,15],c3={x:0,y:0,zoom:1},u3={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0},zC=f.forwardRef(({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,className:o,nodeTypes:i=i3,edgeTypes:a=a3,onNodeClick:l,onEdgeClick:s,onInit:c,onMove:u,onMoveStart:d,onMoveEnd:h,onConnect:p,onConnectStart:w,onConnectEnd:v,onClickConnectStart:b,onClickConnectEnd:g,onNodeMouseEnter:m,onNodeMouseMove:y,onNodeMouseLeave:S,onNodeContextMenu:C,onNodeDoubleClick:E,onNodeDragStart:x,onNodeDrag:R,onNodeDragStop:N,onNodesDelete:P,onEdgesDelete:z,onSelectionChange:L,onSelectionDragStart:A,onSelectionDrag:_,onSelectionDragStop:F,onSelectionContextMenu:O,onSelectionStart:I,onSelectionEnd:$,connectionMode:M=Fi.Strict,connectionLineType:T=Do.Bezier,connectionLineStyle:k,connectionLineComponent:D,connectionLineContainerStyle:B,deleteKeyCode:V="Backspace",selectionKeyCode:W="Shift",selectionOnDrag:U=!1,selectionMode:Y=Ts.Full,panActivationKeyCode:X="Space",multiSelectionKeyCode:K=nf()?"Meta":"Control",zoomActivationKeyCode:q=nf()?"Meta":"Control",snapToGrid:te=!1,snapGrid:ne=s3,onlyRenderVisibleElements:ee=!1,selectNodesOnDrag:Z=!0,nodesDraggable:ae,nodesConnectable:pe,nodesFocusable:he,nodeOrigin:oe=l3,edgesFocusable:J,edgesUpdatable:re,elementsSelectable:ue,defaultViewport:fe=c3,minZoom:ge=.5,maxZoom:Pe=2,translateExtent:Ie=op,preventScrolling:Ee=!0,nodeExtent:tt,defaultMarkerColor:Qe="#b1b1b7",zoomOnScroll:Fe=!0,zoomOnPinch:ve=!0,panOnScroll:de=!1,panOnScrollSpeed:je=.5,panOnScrollMode:Ze=Si.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:Ce,edgeUpdaterRadius:Se=10,onNodesChange:we,onEdgesChange:Ue,noDragClassName:Ye="nodrag",noWheelClassName:Nt="nowheel",noPanClassName:_t="nopan",fitView:mt=!1,fitViewOptions:lt,connectOnClick:Dt=!0,attributionPosition:Wt,proOptions:yn,defaultEdgeOptions:Ne,elevateNodesOnSelect:Oe=!0,elevateEdgesOnSelect:Te=!1,disableKeyboardA11y:st=!1,autoPanOnConnect:jt=!0,autoPanOnNodeDrag:Pt=!0,connectionRadius:_n=20,isValidConnection:Xr,onError:zr,style:mr,id:ln,nodeDragThreshold:$o,..._o},Qn)=>{const Fr=ln||"1";return j.createElement("div",{..._o,style:{...mr,...u3},ref:Qn,className:hn(["react-flow",o]),"data-testid":"rf__wrapper",id:ln},j.createElement(kC,null,j.createElement(r3,{onInit:c,onMove:u,onMoveStart:d,onMoveEnd:h,onNodeClick:l,onEdgeClick:s,onNodeMouseEnter:m,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:fe,translateExtent:Ie,minZoom:ge,maxZoom:Pe,preventScrolling:Ee,zoomOnScroll:Fe,zoomOnPinch:ve,zoomOnDoubleClick:yt,panOnScroll:de,panOnScrollSpeed:je,panOnScrollMode:Ze,panOnDrag:nt,onPaneClick:We,onPaneMouseEnter:rt,onPaneMouseMove:wt,onPaneMouseLeave:Ge,onPaneScroll:ot,onPaneContextMenu:Mt,onSelectionContextMenu:O,onSelectionStart:I,onSelectionEnd:$,onEdgeUpdate:gt,onEdgeContextMenu:qe,onEdgeDoubleClick:_e,onEdgeMouseEnter:Be,onEdgeMouseMove:ye,onEdgeMouseLeave:Me,onEdgeUpdateStart:ie,onEdgeUpdateEnd:Ce,edgeUpdaterRadius:Se,defaultMarkerColor:Qe,noDragClassName:Ye,noWheelClassName:Nt,noPanClassName:_t,elevateEdgesOnSelect:Te,rfId:Fr,disableKeyboardA11y:st,nodeOrigin:oe,nodeExtent:tt}),j.createElement(eT,{nodes:e,edges:t,defaultNodes:n,defaultEdges:r,onConnect:p,onConnectStart:w,onConnectEnd:v,onClickConnectStart:b,onClickConnectEnd:g,nodesDraggable:ae,nodesConnectable:pe,nodesFocusable:he,edgesFocusable:J,edgesUpdatable:re,elementsSelectable:ue,elevateNodesOnSelect:Oe,minZoom:ge,maxZoom:Pe,nodeExtent:tt,onNodesChange:we,onEdgesChange:Ue,snapToGrid:te,snapGrid:ne,connectionMode:M,translateExtent:Ie,connectOnClick:Dt,defaultEdgeOptions:Ne,fitView:mt,fitViewOptions:lt,onNodesDelete:P,onEdgesDelete:z,onNodeDragStart:x,onNodeDrag:R,onNodeDragStop:N,onSelectionDrag:_,onSelectionDragStart:A,onSelectionDragStop:F,noPanClassName:_t,nodeOrigin:oe,rfId:Fr,autoPanOnConnect:jt,autoPanOnNodeDrag:Pt,onError:zr,connectionRadius:_n,isValidConnection:Xr,nodeDragThreshold:$o}),j.createElement(ZP,{onSelectionChange:L}),Ve,j.createElement(OP,{proOptions:yn,position:Wt}),j.createElement(iT,{rfId:Fr,disableKeyboardA11y:st})))});zC.displayName="ReactFlow";const f3=e=>{var t;return(t=e.domNode)==null?void 0:t.querySelector(".react-flow__edgelabel-renderer")};function d3({children:e}){const t=dt(f3);return t?po.createPortal(e,t):null}function FC(e){return t=>{const[n,r]=f.useState(t),o=f.useCallback(i=>r(a=>e(i,a)),[]);return[n,r,o]}}const h3=FC(CC),m3=FC(wT),LC=({id:e,x:t,y:n,width:r,height:o,style:i,color:a,strokeColor:l,strokeWidth:s,className:c,borderRadius:u,shapeRendering:d,onClick:h,selected:p})=>{const{background:w,backgroundColor:v}=i||{},b=a||w||v;return j.createElement("rect",{className:hn(["react-flow__minimap-node",{selected:p},c]),x:t,y:n,rx:u,ry:u,width:r,height:o,fill:b,stroke:l,strokeWidth:s,shapeRendering:d,onClick:h?g=>h(g,e):void 0})};LC.displayName="MiniMapNode";var p3=f.memo(LC);const g3=e=>e.nodeOrigin,v3=e=>e.getNodes().filter(t=>!t.hidden&&t.width&&t.height),dh=e=>e instanceof Function?e:()=>e;function y3({nodeStrokeColor:e="transparent",nodeColor:t="#e2e2e2",nodeClassName:n="",nodeBorderRadius:r=5,nodeStrokeWidth:o=2,nodeComponent:i=p3,onClick:a}){const l=dt(v3,an),s=dt(g3),c=dh(t),u=dh(e),d=dh(n),h=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return j.createElement(j.Fragment,null,l.map(p=>{const{x:w,y:v}=Ri(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:c(p),borderRadius:r,strokeColor:u(p),strokeWidth:o,shapeRendering:h,onClick:a,id:p.id})}))}var w3=f.memo(y3);const S3=200,b3=150,x3=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?NP(Kf(t,e.nodeOrigin),n):n,rfId:e.rfId}},C3="react-flow__minimap-desc";function DC({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:c="none",maskStrokeWidth:u=1,position:d="bottom-right",onClick:h,onNodeClick:p,pannable:w=!1,zoomable:v=!1,ariaLabel:b="React Flow mini map",inversePan:g=!1,zoomStep:m=10,offsetScale:y=5}){const S=Zt(),C=f.useRef(null),{boundingRect:E,viewBB:x,rfId:R}=dt(x3,an),N=(e==null?void 0:e.width)??S3,P=(e==null?void 0:e.height)??b3,z=E.width/N,L=E.height/P,A=Math.max(z,L),_=A*N,F=A*P,O=y*A,I=E.x-(_-E.width)/2-O,$=E.y-(F-E.height)/2-O,M=_+O*2,T=F+O*2,k=`${C3}-${R}`,D=f.useRef(0);D.current=A,f.useEffect(()=>{if(C.current){const W=ar(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)*m,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])*(g?-1:1),he={x:q[0]-K.sourceEvent.movementX*pe,y:q[1]-K.sourceEvent.movementY*pe},oe=[[0,0],[Z,ae]],J=co.translate(he.x,he.y).scale(q[2]),re=ne.constrain()(J,oe,ee);ne.transform(te,re)},X=Vx().on("zoom",w?Y:null).on("zoom.wheel",v?U:null);return W.call(X),()=>{W.on("zoom",null)}}},[w,v,g,m]);const B=h?W=>{const U=br(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(ov,{position:d,style:e,className:hn(["react-flow__minimap",t]),"data-testid":"rf__minimap"},j.createElement("svg",{width:N,height:P,viewBox:`${I} ${$} ${M} ${T}`,role:"img","aria-labelledby":k,ref:C,onClick:B},b&&j.createElement("title",{id:k},b),j.createElement(w3,{onClick:V,nodeColor:r,nodeStrokeColor:n,nodeBorderRadius:i,nodeClassName:o,nodeStrokeWidth:a,nodeComponent:l}),j.createElement("path",{className:"react-flow__minimap-mask",d:`M${I-O},${$-O}h${M+O*2}v${T+O*2}h${-M-O*2}z + M${x.x},${x.y}h${x.width}v${x.height}h${-x.width}z`,fill:s,fillRule:"evenodd",stroke:c,strokeWidth:u,pointerEvents:"none"})))}DC.displayName="MiniMap";var E3=f.memo(DC);function $3(){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 _3(){return j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5"},j.createElement("path",{d:"M0 0h32v4.2H0z"}))}function R3(){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 O3(){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 I3(){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 Ul=({children:e,className:t,...n})=>j.createElement("button",{type:"button",className:hn(["react-flow__controls-button",t]),...n},e);Ul.displayName="ControlButton";const M3=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom}),jC=({style:e,showZoom:t=!0,showFitView:n=!0,showInteractive:r=!0,fitViewOptions:o,onZoomIn:i,onZoomOut:a,onFitView:l,onInteractiveChange:s,className:c,children:u,position:d="bottom-left"})=>{const h=Zt(),[p,w]=f.useState(!1),{isInteractive:v,minZoomReached:b,maxZoomReached:g}=dt(M3,an),{zoomIn:m,zoomOut:y,fitView:S}=Gf();if(f.useEffect(()=>{w(!0)},[]),!p)return null;const C=()=>{m(),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(ov,{className:hn(["react-flow__controls",c]),position:d,style:e,"data-testid":"rf__controls"},t&&j.createElement(j.Fragment,null,j.createElement(Ul,{onClick:C,className:"react-flow__controls-zoomin",title:"zoom in","aria-label":"zoom in",disabled:g},j.createElement($3,null)),j.createElement(Ul,{onClick:E,className:"react-flow__controls-zoomout",title:"zoom out","aria-label":"zoom out",disabled:b},j.createElement(_3,null))),n&&j.createElement(Ul,{className:"react-flow__controls-fitview",onClick:x,title:"fit view","aria-label":"fit view"},j.createElement(R3,null)),r&&j.createElement(Ul,{className:"react-flow__controls-interactive",onClick:R,title:"toggle interactivity","aria-label":"toggle interactivity"},v?j.createElement(I3,null):j.createElement(O3,null)),u)};jC.displayName="Controls";var N3=f.memo(jC),Ir;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(Ir||(Ir={}));function P3({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 T3({color:e,radius:t}){return j.createElement("circle",{cx:t,cy:t,r:t,fill:e})}const A3={[Ir.Dots]:"#91919a",[Ir.Lines]:"#eee",[Ir.Cross]:"#e2e2e2"},k3={[Ir.Dots]:1,[Ir.Lines]:1,[Ir.Cross]:6},z3=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function HC({id:e,variant:t=Ir.Dots,gap:n=20,size:r,lineWidth:o=1,offset:i=2,color:a,style:l,className:s}){const c=f.useRef(null),{transform:u,patternId:d}=dt(z3,an),h=a||A3[t],p=r||k3[t],w=t===Ir.Dots,v=t===Ir.Cross,b=Array.isArray(n)?n:[n,n],g=[b[0]*u[2]||1,b[1]*u[2]||1],m=p*u[2],y=v?[m,m]:g,S=w?[m/i,m/i]:[y[0]/i,y[1]/i];return j.createElement("svg",{className:hn(["react-flow__background",s]),style:{...l,position:"absolute",width:"100%",height:"100%",top:0,left:0},ref:c,"data-testid":"rf__background"},j.createElement("pattern",{id:d+e,x:u[0]%g[0],y:u[1]%g[1],width:g[0],height:g[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${S[0]},-${S[1]})`},w?j.createElement(T3,{color:h,radius:m/i}):j.createElement(P3,{dimensions:y,color:h,lineWidth:o})),j.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${d+e})`}))}HC.displayName="Background";var F3=f.memo(HC);const L3="layout_Wr6HbJU3n-",D3="layout-side-menu_YfQi81E0kI",j3="layout-side-menu-wrapper_EE-YTbnnOD",H3="layout-wrapper_bnpOxN59pu",B3="item_m3Wt2Z4DW8",V3="item-icon_4MaXoWuQ3K",W3="item-text_tbmSlvWb-l",si={layout:L3,layoutSideMenu:D3,layoutSideMenuWrapper:j3,layoutWrapper:H3,item:B3,itemIcon:V3,itemText:W3},U3="custom-node_fnS-IOSBQJ",K3="custom-node-label_hztvK3jLu-",e1={customNode:U3,customNodeLabel:K3},G3={left:10};function X3({data:e,isConnectable:t}){const n=f.useCallback(r=>{console.log(r.target.value)},[]);return le.jsxs("div",{className:e1.customNode,children:[le.jsx(cn,{type:"target",position:xe.Top,isConnectable:t}),le.jsxs("div",{children:[le.jsx("label",{className:e1.customNodeLabel,htmlFor:"text",children:"Text:"}),le.jsx("input",{id:"text",name:"text",onChange:n,className:"nodrag"})]}),le.jsx(cn,{type:"source",position:xe.Bottom,id:"a",style:G3,isConnectable:t}),le.jsx(cn,{type:"source",position:xe.Bottom,id:"b",isConnectable:t})]})}const q3="custom-node_wf308wXFnl",Y3="custom-node-wrapper_fwu7aspI3z",Q3="custom-node-row_rydSIN72eM",Z3="form_RjNil11vT3",J3="form-row_guqy8-dviZ",e4="form-row-left-wrapper_gf1xFSXqq4",t4="form-row-right-wrapper_-0dDpbua8-",n4="row_iyFgPvRmTj",r4="row-col_mpLswaMbKp",St={customNode:q3,customNodeWrapper:Y3,customNodeRow:Q3,form:Z3,formRow:J3,formRowLeftWrapper:e4,formRowRightWrapper:t4,row:n4,rowCol:r4};var BC={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(Qa(r)):UC.isFragment(r)&&r.props?n=n.concat(Qa(r.props.children,t)):n.push(r))}),n}var ip={},l4=function(t){};function s4(e,t){}function c4(e,t){}function u4(){ip={}}function KC(e,t,n){!t&&!ip[n]&&(e(!1,n),ip[n]=!0)}function Tn(e,t){KC(s4,e,t)}function f4(e,t){KC(c4,e,t)}Tn.preMessage=l4;Tn.resetWarned=u4;Tn.noteOnce=f4;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 d4(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 GC(e){var t=d4(e,"string");return Ke(t)=="symbol"?t:String(t)}function H(e,t,n){return t=GC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t1(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(){!lp||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),w4?(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(){!lp||!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=y4.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}(),qC=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof Za(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new O4(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 Za(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 I4(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}(),QC=typeof WeakMap<"u"?new WeakMap:new XC,ZC=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=S4.getInstance(),r=new M4(t,n,this);QC.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){ZC.prototype[e]=function(){var t;return(t=QC.get(this))[e].apply(t,arguments)}});var N4=function(){return typeof lf.ResizeObserver<"u"?lf.ResizeObserver:ZC}(),Bo=new Map;function P4(e){e.forEach(function(t){var n,r=t.target;(n=Bo.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var JC=new N4(P4);function T4(e,t){Bo.has(e)||(Bo.set(e,new Set),JC.observe(e)),Bo.get(e).add(t)}function A4(e,t){Bo.has(e)&&(Bo.get(e).delete(t),Bo.get(e).size||(JC.unobserve(e),Bo.delete(e)))}function kn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r1(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 z4(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 fl(e){var t=k4();return function(){var r=cf(e),o;if(t){var i=cf(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return z4(this,o)}}var F4=function(e){ul(n,e);var t=fl(n);function n(){return kn(this,n),t.apply(this,arguments)}return zn(n,[{key:"render",value:function(){return this.props.children}}]),n}(f.Component);function L4(e,t){var n=e.children,r=e.disabled,o=f.useRef(null),i=f.useRef(null),a=f.useContext(ap),l=typeof n=="function",s=l?n(o):n,c=f.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!l&&f.isValidElement(s)&&cl(s),d=u?s.ref:null,h=id(d,o),p=function(){var g;return ns(o.current)||(o.current&&Ke(o.current)==="object"?ns((g=o.current)===null||g===void 0?void 0:g.nativeElement):null)||ns(i.current)};f.useImperativeHandle(t,function(){return p()});var w=f.useRef(e);w.current=e;var v=f.useCallback(function(b){var g=w.current,m=g.onResize,y=g.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(c.current.width!==N||c.current.height!==P||c.current.offsetWidth!==x||c.current.offsetHeight!==R){var z={width:N,height:P,offsetWidth:x,offsetHeight:R};c.current=z;var L=x===Math.round(C)?C:x,A=R===Math.round(E)?E:R,_=G(G({},z),{},{offsetWidth:L,offsetHeight:A});a==null||a(_,b,y),m&&Promise.resolve().then(function(){m(_,b)})}},[]);return f.useEffect(function(){var b=p();return b&&!r&&T4(b,v),function(){return A4(b,v)}},[o.current,r]),f.createElement(F4,{ref:i},u?f.cloneElement(s,{ref:h}):s)}var D4=f.forwardRef(L4),j4="rc-observer-key";function H4(e,t){var n=e.children,r=typeof n=="function"?[n]:Qa(n);return r.map(function(o,i){var a=(o==null?void 0:o.key)||"".concat(j4,"-").concat(i);return f.createElement(D4,De({},e,{key:a,ref:i===0?t:void 0}),o)})}var ai=f.forwardRef(H4);ai.Collection=h4;function Ui(e,t){var n=G({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}function cp(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;o1+=1;var r=o1;function o(i){if(i===0)rE(r),t();else{var a=tE(function(){o(i-1)});wv.set(r,a)}}return o(n),r};It.cancel=function(e){var t=wv.get(e);return rE(e),nE(t)};function oE(e){if(Array.isArray(e))return e}function W4(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,c=!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(u){c=!0,o=u}finally{try{if(!s&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}function iE(){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 oE(e)||W4(e,t)||yv(e,t)||iE()}function uf(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 xn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function U4(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 i1="data-rc-order",a1="data-rc-priority",K4="rc-util-key",up=new Map;function aE(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):K4}function ld(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function G4(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function lE(e){return Array.from((up.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function sE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!xn())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=G4(r),l=a==="prependQueue",s=document.createElement("style");s.setAttribute(i1,a),l&&i&&s.setAttribute(a1,"".concat(i)),n!=null&&n.nonce&&(s.nonce=n==null?void 0:n.nonce),s.innerHTML=e;var c=ld(t),u=c.firstChild;if(r){if(l){var d=lE(c).filter(function(h){if(!["prepend","prependQueue"].includes(h.getAttribute(i1)))return!1;var p=Number(h.getAttribute(a1)||0);return i>=p});if(d.length)return c.insertBefore(s,d[d.length-1].nextSibling),s}c.insertBefore(s,u)}else c.appendChild(s);return s}function cE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=ld(t);return lE(n).find(function(r){return r.getAttribute(aE(t))===e})}function ks(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=cE(e,t);if(n){var r=ld(t);r.removeChild(n)}}function X4(e,t){var n=up.get(e);if(!n||!U4(document,n)){var r=sE("",t),o=r.parentNode;up.set(e,o),e.removeChild(r)}}function ni(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=ld(n);X4(r,n);var o=cE(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=sE(e,n);return s.setAttribute(aE(n),t),s}function q4(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 pt(e,t){if(e==null)return{};var n=q4(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 uE(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(Tn(!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 c=l+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var u=0;u1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return 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(c,u){var d=Q(c,2),h=d[1];return o.internalGet(u)[1]0,void 0),s1+=1}return zn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),hh=new Sv;function fp(e){var t=Array.isArray(e)?e:[e];return hh.has(t)||hh.set(t,new fE(t)),hh.get(t)}var J4=new WeakMap,mh={};function eA(e,t){for(var n=J4,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,Ja,t),H(r,Mr,n),r)),l=Object.keys(a).map(function(s){var c=a[s];return c?"".concat(s,'="').concat(c,'"'):null}).filter(function(s){return s}).join(" ");return"")}var hE=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()},rA=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(""),"}"):""},mE=function(t,n,r){var o={},i={};return Object.entries(t).forEach(function(a){var l,s,c=Q(a,2),u=c[0],d=c[1];if(r!=null&&(l=r.preserve)!==null&&l!==void 0&&l[u])i[u]=d;else if((typeof d=="string"||typeof d=="number")&&!(r!=null&&(s=r.ignore)!==null&&s!==void 0&&s[u])){var h,p=hE(u,r==null?void 0:r.prefix);o[p]=typeof d=="number"&&!(r!=null&&(h=r.unitless)!==null&&h!==void 0&&h[u])?"".concat(d,"px"):String(d),i[u]="var(".concat(p,")")}}),[i,rA(o,n,{scope:r==null?void 0:r.scope})]},f1=xn()?f.useLayoutEffect:f.useEffect,xt=function(t,n){var r=f.useRef(!0);f1(function(){return t(r.current)},n),f1(function(){return r.current=!1,function(){r.current=!0}},[])},d1=function(t,n){xt(function(r){if(!r)return t()},n)},oA=G({},Ys),h1=oA.useInsertionEffect,iA=function(t,n,r){f.useMemo(t,r),xt(function(){return n(!0)},r)},aA=h1?function(e,t,n){return h1(function(){return e(),t()},n)}:iA,lA=G({},Ys),sA=lA.useInsertionEffect,cA=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},uA=function(){return function(t){t()}},fA=typeof sA<"u"?cA:uA;function bv(e,t,n,r,o){var i=f.useContext(sd),a=i.cache,l=[e].concat(be(t)),s=l.join("_"),c=fA([s]),u=function(w){a.update(l,function(v){var b=v||[void 0,void 0],g=Q(b,2),m=g[0],y=m===void 0?0:m,S=g[1],C=S,E=C||n(),x=[y,E];return w?w(x):x})};f.useMemo(function(){u()},[s]);var d=a.get(l),h=d[1];return aA(function(){o==null||o(h)},function(p){return u(function(w){var v=Q(w,2),b=v[0],g=v[1];return p&&b===0&&(o==null||o(h)),[b+1,g]}),function(){a.update(l,function(w){var v=w||[],b=Q(v,2),g=b[0],m=g===void 0?0:g,y=b[1],S=m-1;return S===0?(c(function(){(p||!a.get(l))&&(r==null||r(y,!1))}),null):[m-1,y]})}},[s]),h}var dA={},hA="css",pi=new Map;function mA(e){pi.set(e,(pi.get(e)||0)+1)}function pA(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Ja,'="').concat(e,'"]'));n.forEach(function(r){if(r[Vo]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var gA=0;function vA(e,t){pi.set(e,(pi.get(e)||0)-1);var n=Array.from(pi.keys()),r=n.filter(function(o){var i=pi.get(o)||0;return i<=0});n.length-r.length>gA&&r.forEach(function(o){pA(o,t),pi.delete(o)})}var yA=function(t,n,r,o){var i=r.getDerivativeToken(t),a=G(G({},i),n);return o&&(a=o(a)),a},pE="token";function wA(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=f.useContext(sd),o=r.cache.instanceId,i=r.container,a=n.salt,l=a===void 0?"":a,s=n.override,c=s===void 0?dA:s,u=n.formatToken,d=n.getComputedToken,h=n.cssVar,p=eA(function(){return Object.assign.apply(Object,[{}].concat(be(t)))},t),w=rs(p),v=rs(c),b=h?rs(h):"",g=bv(pE,[l,e.id,w,v,b],function(){var m,y=d?d(p,c,e):yA(p,c,e,u),S=G({},y),C="";if(h){var E=mE(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=u1(y,l);y._tokenKey=R,S._tokenKey=u1(S,l);var N=(m=h==null?void 0:h.key)!==null&&m!==void 0?m:R;y._themeKey=N,mA(N);var P="".concat(hA,"-").concat(uf(R));return y._hashId=P,[y,P,S,C,(h==null?void 0:h.key)||""]},function(m){vA(m[0]._themeKey,o)},function(m){var y=Q(m,4),S=y[0],C=y[3];if(h&&C){var E=ni(C,uf("css-variables-".concat(S._themeKey)),{mark:Mr,prepend:"queue",attachTo:i,priority:-999});E[Vo]=o,E.setAttribute(Ja,S._themeKey)}});return g}var SA=function(t,n,r){var o=Q(t,5),i=o[2],a=o[3],l=o[4],s=r||{},c=s.plain;if(!a)return null;var u=i._tokenKey,d=-999,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},p=ff(a,l,u,h,c);return[d,u,p]},bA={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},gE="comm",vE="rule",yE="decl",xA="@import",CA="@keyframes",EA="@layer",wE=Math.abs,xv=String.fromCharCode;function SE(e){return e.trim()}function wu(e,t,n){return e.replace(t,n)}function $A(e,t,n){return e.indexOf(t,n)}function zs(e,t){return e.charCodeAt(t)|0}function Fs(e,t,n){return e.slice(t,n)}function oo(e){return e.length}function _A(e){return e.length}function Dc(e,t){return t.push(e),e}var cd=1,el=1,bE=0,dr=0,Ut=0,dl="";function Cv(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:cd,column:el,length:a,return:"",siblings:l}}function RA(){return Ut}function OA(){return Ut=dr>0?zs(dl,--dr):0,el--,Ut===10&&(el=1,cd--),Ut}function Nr(){return Ut=dr2||hp(Ut)>3?"":" "}function PA(e,t){for(;--t&&Nr()&&!(Ut<48||Ut>102||Ut>57&&Ut<65||Ut>70&&Ut<97););return ud(e,Su()+(t<6&&Oi()==32&&Nr()==32))}function mp(e){for(;Nr();)switch(Ut){case e:return dr;case 34:case 39:e!==34&&e!==39&&mp(Ut);break;case 40:e===41&&mp(e);break;case 92:Nr();break}return dr}function TA(e,t){for(;Nr()&&e+Ut!==57;)if(e+Ut===84&&Oi()===47)break;return"/*"+ud(t,dr-1)+"*"+xv(e===47?e:Nr())}function AA(e){for(;!hp(Oi());)Nr();return ud(e,dr)}function kA(e){return MA(bu("",null,null,null,[""],e=IA(e),0,[0],e))}function bu(e,t,n,r,o,i,a,l,s){for(var c=0,u=0,d=a,h=0,p=0,w=0,v=1,b=1,g=1,m=0,y="",S=o,C=i,E=r,x=y;b;)switch(w=m,m=Nr()){case 40:if(w!=108&&zs(x,d-1)==58){$A(x+=wu(gh(m),"&","&\f"),"&\f",wE(c?l[c-1]:0))!=-1&&(g=-1);break}case 34:case 39:case 91:x+=gh(m);break;case 9:case 10:case 13:case 32:x+=NA(w);break;case 92:x+=PA(Su()-1,7);continue;case 47:switch(Oi()){case 42:case 47:Dc(zA(TA(Nr(),Su()),t,n,s),s);break;default:x+="/"}break;case 123*v:l[c++]=oo(x)*g;case 125*v:case 59:case 0:switch(m){case 0:case 125:b=0;case 59+u:g==-1&&(x=wu(x,/\f/g,"")),p>0&&oo(x)-d&&Dc(p>32?p1(x+";",r,n,d-1,s):p1(wu(x," ","")+";",r,n,d-2,s),s);break;case 59:x+=";";default:if(Dc(E=m1(x,t,n,c,u,o,l,y,S=[],C=[],d,i),i),m===123)if(u===0)bu(x,t,E,E,S,i,d,l,C);else switch(h===99&&zs(x,3)===110?100:h){case 100:case 108:case 109:case 115:bu(e,E,E,r&&Dc(m1(e,E,E,0,0,o,l,y,o,S=[],d,C),C),o,C,d,l,r?S:C);break;default:bu(x,E,E,E,[""],C,0,l,C)}}c=u=p=0,v=g=1,y=x="",d=a;break;case 58:d=1+oo(x),p=w;default:if(v<1){if(m==123)--v;else if(m==125&&v++==0&&OA()==125)continue}switch(x+=xv(m),m*v){case 38:g=u>0?1:(x+="\f",-1);break;case 44:l[c++]=(oo(x)-1)*g,g=1;break;case 64:Oi()===45&&(x+=gh(Nr())),h=Oi(),u=d=oo(y=x+=AA(Su())),m++;break;case 45:w===45&&oo(x)==2&&(v=0)}}return i}function m1(e,t,n,r,o,i,a,l,s,c,u,d){for(var h=o-1,p=o===0?i:[""],w=_A(p),v=0,b=0,g=0;v0?p[m]+" "+y:wu(y,/&\f/g,p[m])))&&(s[g++]=S);return Cv(e,t,n,o===0?vE:l,s,c,u,d)}function zA(e,t,n,r){return Cv(e,t,n,gE,xv(RA()),Fs(e,2,-2),0,r)}function p1(e,t,n,r,o){return Cv(e,t,n,yE,Fs(e,0,r),Fs(e,r+1,-1),r,o)}function pp(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 c=n.hashPriority,u=n.transformers,d=u===void 0?[]:u;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)&&!BA(x)){var R=!1,N=E.trim(),P=!1;(o||i)&&l?N.startsWith("@")?R=!0:N=VA(E,l,c):o&&!l&&(N==="&"||N==="")&&(N="",P=!0);var z=e(x,n,{root:P,injectHash:R,parentSelectors:[].concat(be(a),[N])}),L=Q(z,2),A=L[0],_=L[1];p=G(G({},p),_),h+="".concat(N).concat(A)}else{let I=function($,M){var T=$.replace(/[A-Z]/g,function(D){return"-".concat(D.toLowerCase())}),k=M;!bA[$]&&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 F,O=(F=x==null?void 0:x.value)!==null&&F!==void 0?F:x;Ke(x)==="object"&&x!==null&&x!==void 0&&x[EE]&&Array.isArray(O)?O.forEach(function($){I(E,$)}):I(E,O)}})}}),!o)h="{".concat(h,"}");else if(s&&nA()){var g=s.split(","),m=g[g.length-1].trim();h="@layer ".concat(m," {").concat(h,"}"),g.length>1&&(h="@layer ".concat(s,"{%%%:%}").concat(h))}return[h,p]};function $E(e,t){return uf("".concat(e.join("%")).concat(t))}function UA(){return null}var _E="style";function vp(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,l=e.clientOnly,s=e.order,c=s===void 0?0:s,u=f.useContext(sd),d=u.autoClear;u.mock;var h=u.defaultCache,p=u.hashPriority,w=u.container,v=u.ssrInline,b=u.transformers,g=u.linters,m=u.cache,y=n._tokenKey,S=[y].concat(be(r)),C=dp,E=bv(_E,S,function(){var z=S.join("|");if(DA(z)){var L=jA(z),A=Q(L,2),_=A[0],F=A[1];if(_)return[_,y,F,{},l,c]}var O=t(),I=WA(O,{hashId:o,hashPriority:p,layer:i,path:r.join("-"),transformers:b,linters:g}),$=Q(I,2),M=$[0],T=$[1],k=gp(M),D=$E(S,k);return[k,y,D,T,l,c]},function(z,L){var A=Q(z,3),_=A[2];(L||d)&&dp&&ks(_,{mark:Mr})},function(z){var L=Q(z,4),A=L[0];L[1];var _=L[2],F=L[3];if(C&&A!==xE){var O={mark:Mr,prepend:"queue",attachTo:w,priority:c},I=typeof a=="function"?a():a;I&&(O.csp={nonce:I});var $=ni(A,_,O);$[Vo]=m.instanceId,$.setAttribute(Ja,y),Object.keys(F).forEach(function(M){ni(gp(F[M]),"_effect-".concat(M),O)})}}),x=Q(E,3),R=x[0],N=x[1],P=x[2];return function(z){var L;if(!v||C||!h)L=f.createElement(UA,null);else{var A;L=f.createElement("style",De({},(A={},H(A,Ja,N),H(A,Mr,P),A),{dangerouslySetInnerHTML:{__html:R}}))}return f.createElement(f.Fragment,null,L,z)}}var KA=function(t,n,r){var o=Q(t,6),i=o[0],a=o[1],l=o[2],s=o[3],c=o[4],u=o[5],d=r||{},h=d.plain;if(c)return null;var p=i,w={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return p=ff(i,a,l,w,h),s&&Object.keys(s).forEach(function(v){if(!n[v]){n[v]=!0;var b=gp(s[v]);p+=ff(b,a,"_effect-".concat(v),w,h)}}),[u,l,p]},RE="cssVar",GA=function(t,n){var r=t.key,o=t.prefix,i=t.unitless,a=t.ignore,l=t.token,s=t.scope,c=s===void 0?"":s,u=f.useContext(sd),d=u.cache.instanceId,h=u.container,p=l._tokenKey,w=[].concat(be(t.path),[r,c,p]),v=bv(RE,w,function(){var b=n(),g=mE(b,r,{prefix:o,unitless:i,ignore:a,scope:c}),m=Q(g,2),y=m[0],S=m[1],C=$E(w,S);return[y,S,C,r]},function(b){var g=Q(b,3),m=g[2];dp&&ks(m,{mark:Mr})},function(b){var g=Q(b,3),m=g[1],y=g[2];if(m){var S=ni(m,y,{mark:Mr,prepend:"queue",attachTo:h,priority:-999});S[Vo]=d,S.setAttribute(Ja,r)}});return v},XA=function(t,n,r){var o=Q(t,4),i=o[1],a=o[2],l=o[3],s=r||{},c=s.plain;if(!i)return null;var u=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},h=ff(i,l,a,d,c);return[u,a,h]},Tl;Tl={},H(Tl,_E,KA),H(Tl,pE,SA),H(Tl,RE,XA);var ht=function(){function e(t,n){kn(this,e),H(this,"name",void 0),H(this,"style",void 0),H(this,"_keyframe",!0),this.name=t,this.style=n}return zn(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 na(e){return e.notSplit=!0,e}na(["borderTop","borderBottom"]),na(["borderTop"]),na(["borderBottom"]),na(["borderLeft","borderRight"]),na(["borderLeft"]),na(["borderRight"]);var qA=f.createContext({});const Ev=qA;function OE(e){return oE(e)||eE(e)||yv(e)||iE()}function Br(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Br(e,t.slice(0,-1))?e:IE(e,t,n,r)}function YA(e){return Ke(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function v1(e){return Array.isArray(e)?[]:{}}var QA=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function _a(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=ZA,e},ME=f.createContext(void 0);var ek={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"},tk={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 nk={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},NE=nk,rk={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"]},tk),timePickerLocale:Object.assign({},NE)},y1=rk,Fn="${label} is not a valid ${type}",Li={locale:"en",Pagination:ek,DatePicker:y1,TimePicker:NE,Calendar:y1,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({},Li.Modal);let xu=[];const w1=()=>xu.reduce((e,t)=>Object.assign(Object.assign({},e),t),Li.Modal);function ok(e){if(e){const t=Object.assign({},e);return xu.push(t),w1(),()=>{xu=xu.filter(n=>n!==t),w1()}}Object.assign({},Li.Modal)}const ik=f.createContext(void 0),_v=ik,PE=(e,t)=>{const n=f.useContext(_v),r=f.useMemo(()=>{var i;const a=t||Li[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?Li.locale:i},[n]);return[r,o]},ak="internalMark",lk=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;f.useEffect(()=>ok(t&&t.Modal),[t]);const o=f.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return f.createElement(_v.Provider,{value:o},n)},sk=lk;function fn(e,t){ck(e)&&(e="100%");var n=uk(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 jc(e){return Math.min(1,Math.max(0,e))}function ck(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function uk(e){return typeof e=="string"&&e.indexOf("%")!==-1}function TE(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Hc(e){return e<=1?"".concat(Number(e)*100,"%"):e}function bi(e){return e.length===1?"0"+e:String(e)}function fk(e,t,n){return{r:fn(e,255)*255,g:fn(t,255)*255,b:fn(n,255)*255}}function S1(e,t,n){e=fn(e,255),t=fn(t,255),n=fn(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 dk(e,t,n){var r,o,i;if(e=fn(e,360),t=fn(t,100),n=fn(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=vh(l,a,e+1/3),o=vh(l,a,e),i=vh(l,a,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function yp(e,t,n){e=fn(e,255),t=fn(t,255),n=fn(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 Sp={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 fa(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=wk(e)),typeof e=="object"&&(eo(e.r)&&eo(e.g)&&eo(e.b)?(t=fk(e.r,e.g,e.b),a=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):eo(e.h)&&eo(e.s)&&eo(e.v)?(r=Hc(e.s),o=Hc(e.v),t=hk(e.h,r,o),a=!0,l="hsv"):eo(e.h)&&eo(e.s)&&eo(e.l)&&(r=Hc(e.s),i=Hc(e.l),t=dk(e.h,r,i),a=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=TE(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 vk="[-\\+]?\\d+%?",yk="[-\\+]?\\d*\\.\\d+%?",Wo="(?:".concat(yk,")|(?:").concat(vk,")"),yh="[\\s|\\(]+(".concat(Wo,")[,|\\s]+(").concat(Wo,")[,|\\s]+(").concat(Wo,")\\s*\\)?"),wh="[\\s|\\(]+(".concat(Wo,")[,|\\s]+(").concat(Wo,")[,|\\s]+(").concat(Wo,")[,|\\s]+(").concat(Wo,")\\s*\\)?"),yr={CSS_UNIT:new RegExp(Wo),rgb:new RegExp("rgb"+yh),rgba:new RegExp("rgba"+wh),hsl:new RegExp("hsl"+yh),hsla:new RegExp("hsla"+wh),hsv:new RegExp("hsv"+yh),hsva:new RegExp("hsva"+wh),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 wk(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Sp[e])e=Sp[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=yr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=yr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=yr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=yr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=yr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=yr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=yr.hex8.exec(e),n?{r:Dn(n[1]),g:Dn(n[2]),b:Dn(n[3]),a:b1(n[4]),format:t?"name":"hex8"}:(n=yr.hex6.exec(e),n?{r:Dn(n[1]),g:Dn(n[2]),b:Dn(n[3]),format:t?"name":"hex"}:(n=yr.hex4.exec(e),n?{r:Dn(n[1]+n[1]),g:Dn(n[2]+n[2]),b:Dn(n[3]+n[3]),a:b1(n[4]+n[4]),format:t?"name":"hex8"}:(n=yr.hex3.exec(e),n?{r:Dn(n[1]+n[1]),g:Dn(n[2]+n[2]),b:Dn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function eo(e){return!!yr.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=gk(t)),this.originalInput=t;var o=fa(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=TE(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=yp(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=yp(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=S1(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=S1(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),wp(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),mk(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(fn(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(fn(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="#"+wp(this.r,this.g,this.b,!1),n=0,r=Object.entries(Sp);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=jc(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=jc(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=jc(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=jc(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)-Bc*t:Math.round(e.h)+Bc*t:r=n?Math.round(e.h)+Bc*t:Math.round(e.h)-Bc*t,r<0?r+=360:r>=360&&(r-=360),r}function $1(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-x1*t:t===kE?r=e.s+x1:r=e.s+Sk*t,r>1&&(r=1),n&&t===AE&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function _1(e,t,n){var r;return n?r=e.v+bk*t:r=e.v-xk*t,r>1&&(r=1),Number(r.toFixed(2))}function Di(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=fa(e),o=AE;o>0;o-=1){var i=C1(r),a=Vc(fa({h:E1(i,o,!0),s:$1(i,o,!0),v:_1(i,o,!0)}));n.push(a)}n.push(Vc(r));for(var l=1;l<=kE;l+=1){var s=C1(r),c=Vc(fa({h:E1(s,l),s:$1(s,l),v:_1(s,l)}));n.push(c)}return t.theme==="dark"?Ck.map(function(u){var d=u.index,h=u.opacity,p=Vc(Ek(fa(t.backgroundColor||"#141414"),fa(n[d]),h*100));return p}):n}var Sh={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"},Cu={},bh={};Object.keys(Sh).forEach(function(e){Cu[e]=Di(Sh[e]),Cu[e].primary=Cu[e][5],bh[e]=Di(Sh[e],{theme:"dark",backgroundColor:"#141414"}),bh[e].primary=bh[e][5]});var $k=Cu.blue;const _k=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function Rk(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 zE={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"},Ok=Object.assign(Object.assign({},zE),{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}),Ls=Ok;function Ik(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:s,colorBgBase:c,colorTextBase:u}=e,d=n(s),h=n(o),p=n(i),w=n(a),v=n(l),b=r(c,u),g=e.colorLink||e.colorInfo,m=n(g);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:m[4],colorLink:m[6],colorLinkActive:m[7],colorBgMask:new rn("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const Mk=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 Nk(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},Mk(r))}const to=(e,t)=>new rn(e).setAlpha(t).toRgbString(),Al=(e,t)=>new rn(e).darken(t).toHexString(),Pk=e=>{const t=Di(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]}},Tk=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:to(r,.88),colorTextSecondary:to(r,.65),colorTextTertiary:to(r,.45),colorTextQuaternary:to(r,.25),colorFill:to(r,.15),colorFillSecondary:to(r,.06),colorFillTertiary:to(r,.04),colorFillQuaternary:to(r,.02),colorBgLayout:Al(n,4),colorBgContainer:Al(n,0),colorBgElevated:Al(n,0),colorBgSpotlight:to(r,.85),colorBgBlur:"transparent",colorBorder:Al(n,15),colorBorderSecondary:Al(n,6)}};function Ak(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 kk=e=>{const t=Ak(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),o=n[1],i=n[0],a=n[2],l=r[1],s=r[0],c=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:c,lineHeightSM:s,fontHeight:Math.round(l*o),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(s*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function zk(e){const t=Object.keys(zE).map(n=>{const r=Di(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),Ik(e,{generateColorPalettes:Pk,generateNeutralColorPalettes:Tk})),kk(e.fontSize)),Rk(e)),_k(e)),Nk(e))}const FE=fp(zk),LE={token:Ls,override:{override:Ls},hashed:!0},DE=j.createContext(LE),jE="anticon",Fk=(e,t)=>t||(e?`ant-${e}`:"ant"),$t=f.createContext({getPrefixCls:Fk,iconPrefixCls:jE}),Lk=`-ant-${Date.now()}-${Math.random()}`;function Dk(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),c=Di(s.toRgbString());n[`${l}-color`]=r(s),n[`${l}-color-disabled`]=c[1],n[`${l}-color-hover`]=c[4],n[`${l}-color-active`]=c[6],n[`${l}-color-outline`]=s.clone().setAlpha(.2).toRgbString(),n[`${l}-color-deprecated-bg`]=c[0],n[`${l}-color-deprecated-border`]=c[2]};if(t.primaryColor){o(t.primaryColor,"primary");const a=new rn(t.primaryColor),l=Di(a.toRgbString());l.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=r(a,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(a,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(a,c=>c.setAlpha(c.getAlpha()*.12));const s=new rn(l[0]);n["primary-color-active-deprecated-f-30"]=r(s,c=>c.setAlpha(c.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(s,c=>c.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),` + :root { + ${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(` +`)} + } + `.trim()}function jk(e,t){const n=Dk(e,t);xn()&&ni(n,`${Lk}-dynamic-theme`)}const bp=f.createContext(!1),HE=e=>{let{children:t,disabled:n}=e;const r=f.useContext(bp);return f.createElement(bp.Provider,{value:n??r},t)},Ki=bp,xp=f.createContext(void 0),Hk=e=>{let{children:t,size:n}=e;const r=f.useContext(xp);return f.createElement(xp.Provider,{value:n||r},t)},rc=xp;function Bk(){const e=f.useContext(Ki),t=f.useContext(rc);return{componentDisabled:e,componentSize:t}}const df=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Vk="5.12.8";function xh(e){return e>=0&&e<=255}function Wc(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 c=.01;c<=1;c+=.01){const u=Math.round((n-a*(1-c))/c),d=Math.round((r-l*(1-c))/c),h=Math.round((o-s*(1-c))/c);if(xh(u)&&xh(d)&&xh(h))return new rn({r:u,g:d,b:h,a:Math.round(c*100)/100}).toRgbString()}return new rn({r:n,g:r,b:o,a:1}).toRgbString()}var Wk=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,c=1200,u=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:Wc(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:Wc(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Wc(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:Wc(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:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` + 0 1px 2px -2px ${new 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 R1=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=R1(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=BE(a),i&&Object.entries(i).forEach(l=>{let[s,c]=l;const{theme:u}=c,d=R1(c,["theme"]);let h=d;u&&(h=UE(Object.assign(Object.assign({},a),d),{override:d},u)),a[s]=h}),a};function An(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=j.useContext(DE),i=`${Vk}-${t||""}`,a=n||FE,[l,s,c]=wA(a,[Ls,e],{salt:i,override:r,getComputedToken:UE,formatToken:BE,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:VE,ignore:WE,preserve:Uk}});return[a,c,t?s:"",l,o]}function Hn(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}},Rv=()=>({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"}}),Kk=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Gk=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"}}}),Xk=(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"}}}}},qk=e=>({outline:`${Ae(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),KE=e=>({"&:focus-visible":Object.assign({},qk(e))});let Yk=zn(function e(){kn(this,e)});const GE=Yk;let Qk=function(e){ul(n,e);var t=fl(n);function n(r){var o;return kn(this,n),o=t.call(this),o.result=0,r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return zn(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}(GE);const XE="CALC_UNIT";function Eh(e){return typeof e=="number"?`${e}${XE}`:e}let Zk=function(e){ul(n,e);var t=fl(n);function n(r){var o;return kn(this,n),o=t.call(this),o.result="",r instanceof n?o.result=`(${r.result})`:typeof r=="number"?o.result=Eh(r):typeof r=="string"&&(o.result=r),o}return zn(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} + ${Eh(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} - ${Eh(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(`${XE}`,"g");return this.result=this.result.replace(a,i?"px":""),typeof this.lowPriority<"u"?`calc(${this.result})`:this.result}}]),n}(GE);const Jk=e=>{const t=e==="css"?Zk:Qk;return n=>new t(n)};function e5(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 qE=typeof CSSINJS_STATISTIC<"u";let Ep=!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]})})}),Ep=!0,r}const O1={};function t5(){}const n5=e=>{let t,n=e,r=t5;return qE&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(o,i){return Ep&&t.add(i),o[i]}}),r=(o,i)=>{var a;O1[o]={global:Array.from(t),component:Object.assign(Object.assign({},(a=O1[o])===null||a===void 0?void 0:a.component),i)}}),{token:n,keys:t,flush:r}},YE=(e,t)=>{const[n,r]=An();return vp({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},Rv()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},QE=(e,t,n)=>{var r;return typeof n=="function"?n(Et(t,(r=t[e])!==null&&r!==void 0?r:{})):n??{}},ZE=(e,t,n,r)=>{const o=Object.assign({},t[e]);if(r!=null&&r.deprecatedTokens){const{deprecatedTokens:a}=r;a.forEach(l=>{let[s,c]=l;var u;(o!=null&&o[s]||o!=null&&o[c])&&((u=o[c])!==null&&u!==void 0||(o[c]=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},r5=(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 Ov(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,c,u,d,h]=An(),{getPrefixCls:p,iconPrefixCls:w,csp:v}=f.useContext($t),b=p(),g=h?"css":"js",m=Jk(g),{max:y,min:S}=e5(g),C={theme:s,token:d,hashId:u,nonce:()=>v==null?void 0:v.nonce,clientOnly:r.clientOnly,order:r.order||-999};return vp(Object.assign(Object.assign({},C),{clientOnly:!1,path:["Shared",b]}),()=>[{"&":Gk(d)}]),YE(w,v),[vp(Object.assign(Object.assign({},C),{path:[a,l,w]}),()=>{if(r.injectStyle===!1)return[];const{token:x,flush:R}=n5(d),N=QE(i,c,n),P=`.${l}`,z=ZE(i,c,N,{deprecatedTokens:r.deprecatedTokens,format:r.format});h&&Object.keys(N).forEach(_=>{N[_]=`var(${hE(_,r5(i,h.prefix))})`});const L=Et(x,{componentCls:P,prefixCls:l,iconCls:`.${w}`,antCls:`.${b}`,calc:m,max:y,min:S},h?N:z),A=t(L,{hashId:u,prefixCls:l,rootPrefixCls:b,iconPrefixCls:w});return R(i,z),[r.resetStyle===!1?null:Xk(L,l),A]}),u]}}const JE=(e,t,n,r)=>{const o=Ov(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return a=>{let{prefixCls:l}=a;return o(l),null}},o5=(e,t,n)=>{function r(c){return`${e}${c.slice(0,1).toUpperCase()}${c.slice(1)}`}const{unitless:o={},injectStyle:i=!0}=n??{},a={[r("zIndexPopup")]:!0};Object.keys(o).forEach(c=>{a[r(c)]=o[c]});const l=c=>{let{rootCls:u,cssVar:d}=c;const[,h]=An();return GA({path:[e],prefix:d.prefix,key:d==null?void 0:d.key,unitless:Object.assign(Object.assign({},VE),a),ignore:WE,token:h,scope:u},()=>{const p=QE(e,h,t),w=ZE(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 c=>{const[,,,,u]=An();return[d=>i&&u?j.createElement(j.Fragment,null,j.createElement(l,{rootCls:c,cssVar:u,component:e}),d):d,u==null?void 0:u.key]}},Co=(e,t,n,r)=>{const o=Ov(e,t,n,r),i=o5(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),[c,u]=i(l);return[c,s,u]}};function i5(e,t){return df.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 a5=Object.assign({},Ys),{useId:I1}=a5,l5=()=>"",s5=typeof I1>"u"?l5:I1;function c5(e,t){$v();const n=e||{},r=n.inherit===!1||!t?LE:t,o=s5();return od(()=>{var i,a;if(!e)return t;const l=Object.assign({},r.components);Object.keys(e.components||{}).forEach(u=>{l[u]=Object.assign(Object.assign({},l[u]),e.components[u])});const s=`css-var-${o.replace(/:/g,"")}`,c=((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:c})},[n,r],(i,a)=>i.some((l,s)=>{const c=a[s];return!uE(l,c,!0)}))}var u5=["children"],e2=f.createContext({});function f5(e){var t=e.children,n=pt(e,u5);return f.createElement(e2.Provider,{value:n},t)}var d5=function(e){ul(n,e);var t=fl(n);function n(){return kn(this,n),t.apply(this,arguments)}return zn(n,[{key:"render",value:function(){return this.props.children}}]),n}(f.Component),di="none",Uc="appear",Kc="enter",Gc="leave",M1="none",Cr="prepare",Ra="start",Oa="active",Iv="end",t2="prepared";function N1(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 h5(e,t){var n={animationend:N1("Animation","AnimationEnd"),transitionend:N1("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var m5=h5(xn(),typeof window<"u"?window:{}),n2={};if(xn()){var p5=document.createElement("div");n2=p5.style}var Xc={};function r2(e){if(Xc[e])return Xc[e];var t=m5[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=It(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 y5=[Cr,Ra,Oa,Iv],w5=[Cr,t2],s2=!1,S5=!0;function c2(e){return e===Oa||e===Iv}const b5=function(e,t,n){var r=Mi(M1),o=Q(r,2),i=o[0],a=o[1],l=v5(),s=Q(l,2),c=s[0],u=s[1];function d(){a(Cr,!0)}var h=t?w5:y5;return l2(function(){if(i!==M1&&i!==Iv){var p=h.indexOf(i),w=h[p+1],v=n(i);v===s2?a(w,!0):w&&c(function(b){function g(){b.isCanceled()||a(w,!0)}v===!0?g():Promise.resolve(v).then(g)})}},[e,i]),f.useEffect(function(){return function(){u()}},[]),[d,i]};function x5(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,c=s===void 0?!0:s,u=r.motionDeadline,d=r.motionLeaveImmediately,h=r.onAppearPrepare,p=r.onEnterPrepare,w=r.onLeavePrepare,v=r.onAppearStart,b=r.onEnterStart,g=r.onLeaveStart,m=r.onAppearActive,y=r.onEnterActive,S=r.onLeaveActive,C=r.onAppearEnd,E=r.onEnterEnd,x=r.onLeaveEnd,R=r.onVisibleChanged,N=Mi(),P=Q(N,2),z=P[0],L=P[1],A=Mi(di),_=Q(A,2),F=_[0],O=_[1],I=Mi(null),$=Q(I,2),M=$[0],T=$[1],k=f.useRef(!1),D=f.useRef(null);function B(){return n()}var V=f.useRef(!1);function W(){O(di,!0),T(null,!0)}function U(J){var re=B();if(!(J&&!J.deadline&&J.target!==re)){var ue=V.current,fe;F===Uc&&ue?fe=C==null?void 0:C(re,J):F===Kc&&ue?fe=E==null?void 0:E(re,J):F===Gc&&ue&&(fe=x==null?void 0:x(re,J)),F!==di&&ue&&fe!==!1&&W()}}var Y=g5(U),X=Q(Y,1),K=X[0],q=function(re){var ue,fe,ge;switch(re){case Uc:return ue={},H(ue,Cr,h),H(ue,Ra,v),H(ue,Oa,m),ue;case Kc:return fe={},H(fe,Cr,p),H(fe,Ra,b),H(fe,Oa,y),fe;case Gc:return ge={},H(ge,Cr,w),H(ge,Ra,g),H(ge,Oa,S),ge;default:return{}}},te=f.useMemo(function(){return q(F)},[F]),ne=b5(F,!e,function(J){if(J===Cr){var re=te[Cr];return re?re(B()):s2}if(ae in te){var ue;T(((ue=te[ae])===null||ue===void 0?void 0:ue.call(te,B(),null))||null)}return ae===Oa&&(K(B()),u>0&&(clearTimeout(D.current),D.current=setTimeout(function(){U({deadline:!0})},u))),ae===t2&&W(),S5}),ee=Q(ne,2),Z=ee[0],ae=ee[1],pe=c2(ae);V.current=pe,l2(function(){L(t);var J=k.current;k.current=!0;var re;!J&&t&&l&&(re=Uc),J&&t&&i&&(re=Kc),(J&&!t&&c||!J&&d&&!t&&c)&&(re=Gc);var ue=q(re);re&&(e||ue[Cr])?(O(re),Z()):O(di)},[t]),f.useEffect(function(){(F===Uc&&!l||F===Kc&&!i||F===Gc&&!c)&&O(di)},[l,i,c]),f.useEffect(function(){return function(){k.current=!1,clearTimeout(D.current)}},[]);var he=f.useRef(!1);f.useEffect(function(){z&&(he.current=!0),z!==void 0&&F===di&&((he.current||z)&&(R==null||R(z)),he.current=!0)},[z,F]);var oe=M;return te[Cr]&&ae===Ra&&(oe=G({transition:"none"},oe)),[F,ae,oe,z??t]}function C5(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,c=s===void 0?!0:s,u=o.forceRender,d=o.children,h=o.motionName,p=o.leavedClassName,w=o.eventProps,v=f.useContext(e2),b=v.motion,g=n(o,b),m=f.useRef(),y=f.useRef();function S(){try{return m.current instanceof HTMLElement?m.current:ns(y.current)}catch{return null}}var C=x5(g,l,S,o),E=Q(C,4),x=E[0],R=E[1],N=E[2],P=E[3],z=f.useRef(P);P&&(z.current=!0);var L=f.useCallback(function(T){m.current=T,vv(i,T)},[i]),A,_=G(G({},w),{},{visible:l});if(!d)A=null;else if(x===di)P?A=d(G({},_),L):!c&&z.current&&p?A=d(G(G({},_),{},{className:p}),L):u||!c&&!p?A=d(G(G({},_),{},{style:{display:"none"}}),L):A=null;else{var F,O;R===Cr?O="prepare":c2(R)?O="active":R===Ra&&(O="start");var I=A1(h,"".concat(x,"-").concat(O));A=d(G(G({},_),{},{className:me(A1(h,x),(F={},H(F,I,I&&O),H(F,h,typeof h=="string"),F)),style:N}),L)}if(f.isValidElement(A)&&cl(A)){var $=A,M=$.ref;M||(A=f.cloneElement(A,{ref:L}))}return f.createElement(d5,{ref:y},A)});return r.displayName="CSSMotion",r}const hl=C5(a2);var $p="add",_p="keep",Rp="remove",$h="removed";function E5(e){var t;return e&&Ke(e)==="object"&&"key"in e?t=e:t={key:e},G(G({},t),{},{key:String(t.key)})}function Op(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(E5)}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=Op(e),a=Op(t);i.forEach(function(c){for(var u=!1,d=r;d1});return s.forEach(function(c){n=n.filter(function(u){var d=u.key,h=u.status;return d!==c||h!==Rp}),n.forEach(function(u){u.key===c&&(u.status=_p)})}),n}var _5=["component","children","onVisibleChanged","onAllRemoved"],R5=["status"],O5=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function I5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:hl,n=function(r){ul(i,r);var o=fl(i);function i(){var a;kn(this,i);for(var l=arguments.length,s=new Array(l),c=0;cnull;var T5=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 L5=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;t!==void 0&&(u2=t),r&&F5(r)&&jk(z5(),r)},D5=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:l,componentSize:s,direction:c,space:u,virtual:d,dropdownMatchSelectWidth:h,popupMatchSelectWidth:p,popupOverflow:w,legacyLocale:v,parentContext:b,iconPrefixCls:g,theme:m,componentDisabled:y,segmented:S,statistic:C,spin:E,calendar:x,carousel:R,cascader:N,collapse:P,typography:z,checkbox:L,descriptions:A,divider:_,drawer:F,skeleton:O,steps:I,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:he,tag:oe,table:J,card:re,tabs:ue,timeline:fe,timePicker:ge,upload:Pe,notification:Ie,tree:Ee,colorPicker:tt,datePicker:Qe,rangePicker:Fe,flex:ve,wave:de,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=g||b.iconPrefixCls||jE,We=n||b.csp;YE(nt,We);const rt=c5(m,b.theme),wt={csp:We,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:l||v,direction:c,space:u,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:z,checkbox:L,descriptions:A,divider:_,drawer:F,skeleton:O,steps:I,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:he,tag:oe,table:J,card:re,tabs:ue,timeline:fe,timePicker:ge,upload:Pe,notification:Ie,tree:Ee,colorPicker:tt,datePicker:Qe,rangePicker:Fe,flex:ve,wave:de,dropdown:je,warning:Ze},Ge=Object.assign({},b);Object.keys(wt).forEach(_e=>{wt[_e]!==void 0&&(Ge[_e]=wt[_e])}),A5.forEach(_e=>{const Be=e[_e];Be&&(Ge[_e]=Be)});const ot=od(()=>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(P5,{dropdownMatchSelectWidth:h}),t);const gt=f.useMemo(()=>{var _e,Be,ye,Me;return _a(((_e=Li.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(ME.Provider,{value:gt},Ve)),l&&(Ve=f.createElement(sk,{locale:l,_ANT_MARK__:ak},Ve)),(nt||We)&&(Ve=f.createElement(Ev.Provider,{value:Mt},Ve)),s&&(Ve=f.createElement(Hk,{size:s},Ve)),Ve=f.createElement(N5,null,Ve);const qe=f.useMemo(()=>{const _e=rt||{},{algorithm:Be,token:ye,components:Me,cssVar:ie}=_e,Ce=T5(_e,["algorithm","token","components","cssVar"]),Se=Be&&(!Array.isArray(Be)||Be.length>0)?fp(Be):FE,we={};Object.entries(Me||{}).forEach(Ye=>{let[Nt,_t]=Ye;const mt=Object.assign({},_t);"algorithm"in mt&&(mt.algorithm===!0?mt.theme=Se:(Array.isArray(mt.algorithm)||typeof mt.algorithm=="function")&&(mt.theme=fp(mt.algorithm)),delete mt.algorithm),we[Nt]=mt});const Ue=Object.assign(Object.assign({},Ls),ye);return Object.assign(Object.assign({},Ce),{theme:Se,token:Ue,components:we,override:Object.assign({override:Ue},we),cssVar:ie})},[rt]);return m&&(Ve=f.createElement(DE.Provider,{value:qe},Ve)),ot.warning&&(Ve=f.createElement(JA.Provider,{value:ot.warning},Ve)),y!==void 0&&(Ve=f.createElement(HE,{disabled:y},Ve)),f.createElement($t.Provider,{value:ot},Ve)},ml=e=>{const t=f.useContext($t),n=f.useContext(_v);return f.createElement(D5,Object.assign({parentContext:t,legacyLocale:n},e))};ml.ConfigContext=$t;ml.SizeContext=rc;ml.config=L5;ml.useConfig=Bk;Object.defineProperty(ml,"SizeContext",{get:()=>rc});var j5={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 H5=j5;function f2(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function B5(e){return f2(e)instanceof ShadowRoot}function hf(e){return B5(e)?f2(e):null}function V5(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function W5(e,t){Tn(e,"[@ant-design/icons] ".concat(t))}function k1(e){return Ke(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Ke(e.icon)==="object"||typeof e.icon=="function")}function z1(){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[V5(n)]=r}return t},{})}function Ip(e,t,n){return n?j.createElement(e.tag,G(G({key:t},z1(e.attrs)),n),(e.children||[]).map(function(r,o){return Ip(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):j.createElement(e.tag,G({key:t},z1(e.attrs)),(e.children||[]).map(function(r,o){return Ip(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function d2(e){return Di(e)[0]}function h2(e){return e?Array.isArray(e)?e:[e]:[]}var U5=` +.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); + } +} +`,K5=function(t){var n=f.useContext(Ev),r=n.csp,o=n.prefixCls,i=U5;o&&(i=i.replace(/anticon/g,o)),f.useEffect(function(){var a=t.current,l=hf(a);ni(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:l})},[])},G5=["icon","className","onClick","style","primaryColor","secondaryColor"],is={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function X5(e){var t=e.primaryColor,n=e.secondaryColor;is.primaryColor=t,is.secondaryColor=n||d2(t),is.calculated=!!n}function q5(){return G({},is)}var fd=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,l=t.secondaryColor,s=pt(t,G5),c=f.useRef(),u=is;if(a&&(u={primaryColor:a,secondaryColor:l||d2(a)}),K5(c),W5(k1(n),"icon should be icon definiton, but got ".concat(n)),!k1(n))return null;var d=n;return d&&typeof d.icon=="function"&&(d=G(G({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),Ip(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:c}))};fd.displayName="IconReact";fd.getTwoToneColors=q5;fd.setTwoToneColors=X5;const Mv=fd;function m2(e){var t=h2(e),n=Q(t,2),r=n[0],o=n[1];return Mv.setTwoToneColors({primaryColor:r,secondaryColor:o})}function Y5(){var e=Mv.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Q5=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];m2($k.primary);var dd=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,c=e.twoToneColor,u=pt(e,Q5),d=f.useContext(Ev),h=d.prefixCls,p=h===void 0?"anticon":h,w=d.rootClassName,v=me(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 g=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,m=h2(c),y=Q(m,2),S=y[0],C=y[1];return f.createElement("span",De({role:"img","aria-label":o.name},u,{ref:t,tabIndex:b,onClick:s,className:v}),f.createElement(Mv,{icon:o,primaryColor:S,secondaryColor:C,style:g}))});dd.displayName="AntdIcon";dd.getTwoToneColor=Y5;dd.setTwoToneColor=m2;const kr=dd;var Z5=function(t,n){return f.createElement(kr,De({},t,{ref:n,icon:H5}))};const J5=f.forwardRef(Z5);var ez={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 tz=ez;var nz=function(t,n){return f.createElement(kr,De({},t,{ref:n,icon:tz}))};const hd=f.forwardRef(nz);var rz={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 oz=rz;var iz=function(t,n){return f.createElement(kr,De({},t,{ref:n,icon:oz}))};const az=f.forwardRef(iz);var lz={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 sz=lz;var cz=function(t,n){return f.createElement(kr,De({},t,{ref:n,icon:sz}))};const uz=f.forwardRef(cz);var fz=`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`,dz=`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`,hz="".concat(fz," ").concat(dz).split(/[\s\n]+/),mz="aria-",pz="data-";function F1(e,t){return e.indexOf(t)===0}function mf(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"||F1(o,mz))||n.data&&F1(o,pz)||n.attr&&hz.includes(o))&&(r[o]=e[o])}),r}const{isValidElement:md}=Ys;function p2(e){return e&&md(e)&&e.type===f.Fragment}function gz(e,t,n){return md(e)?f.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function tl(e,t){return gz(e,e,t)}const L1=e=>typeof e=="object"&&e!=null&&e.nodeType===1,D1=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",_h=(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,vz=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},j1=(e,t)=>{var n,r,o,i;if(typeof document>"u")return[];const{scrollMode:a,block:l,inline:s,boundary:c,skipOverflowHiddenElements:u}=t,d=typeof c=="function"?c:O=>O!==c;if(!L1(e))throw new TypeError("Invalid target");const h=document.scrollingElement||document.documentElement,p=[];let w=e;for(;L1(w)&&d(w);){if(w=vz(w),w===h){p.push(w);break}w!=null&&w===document.body&&_h(w)&&!_h(document.documentElement)||w!=null&&_h(w,u)&&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:g,scrollY:m}=window,{height:y,width:S,top:C,right:E,bottom:x,left:R}=e.getBoundingClientRect(),{top:N,right:P,bottom:z,left:L}=(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);let A=l==="start"||l==="nearest"?C-N:l==="end"?x+z:C+y/2-N+z,_=s==="center"?R+S/2-L+P:s==="end"?E+P:R-L;const F=[];for(let O=0;O=0&&R>=0&&x<=b&&E<=v&&C>=T&&x<=D&&R>=B&&E<=k)return F;const V=getComputedStyle(I),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 I?I.offsetWidth-I.clientWidth-W-Y:0,ne="offsetHeight"in I?I.offsetHeight-I.clientHeight-U-X:0,ee="offsetWidth"in I?I.offsetWidth===0?0:M/I.offsetWidth:0,Z="offsetHeight"in I?I.offsetHeight===0?0:$/I.offsetHeight:0;if(h===I)K=l==="start"?A:l==="end"?A-b:l==="nearest"?qc(m,m+b,b,U,X,m+A,m+A+y,y):A-b/2,q=s==="start"?_:s==="center"?_-v/2:s==="end"?_-v:qc(g,g+v,v,W,Y,g+_,g+_+S,S),K=Math.max(0,K+m),q=Math.max(0,q+g);else{K=l==="start"?A-T-U:l==="end"?A-D+X+ne:l==="nearest"?qc(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:qc(B,k,M,W,Y+te,_,_+S,S);const{scrollLeft:ae,scrollTop:pe}=I;K=Z===0?0:Math.max(0,Math.min(pe+K/Z,I.scrollHeight-$/Z+ne)),q=ee===0?0:Math.max(0,Math.min(ae+q/ee,I.scrollWidth-M/ee+te)),A+=pe-K,_+=ae-q}F.push({el:I,top:K,left:q})}return F},yz=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function wz(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(j1(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:i,left:a}of j1(e,yz(t))){const l=i-n.top+n.bottom,s=a-n.left+n.right;o.scroll({top:l,left:s,behavior:r})}}const pl=e=>{const[,,,,t]=An();return t?`${e}-css-var`:""};var ce={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>=ce.F1&&n<=ce.F12)return!1;switch(n){case ce.ALT:case ce.CAPS_LOCK:case ce.CONTEXT_MENU:case ce.CTRL:case ce.DOWN:case ce.END:case ce.ESC:case ce.HOME:case ce.INSERT:case ce.LEFT:case ce.MAC_FF_META:case ce.META:case ce.NUMLOCK:case ce.NUM_CENTER:case ce.PAGE_DOWN:case ce.PAGE_UP:case ce.PAUSE:case ce.PRINT_SCREEN:case ce.RIGHT:case ce.SHIFT:case ce.UP:case ce.WIN_KEY:case ce.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=ce.ZERO&&t<=ce.NINE||t>=ce.NUM_ZERO&&t<=ce.NUM_MULTIPLY||t>=ce.A&&t<=ce.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case ce.SPACE:case ce.QUESTION_MARK:case ce.NUM_PLUS:case ce.NUM_MINUS:case ce.NUM_PERIOD:case ce.NUM_DIVISION:case ce.SEMICOLON:case ce.DASH:case ce.EQUALS:case ce.COMMA:case ce.PERIOD:case ce.SLASH:case ce.APOSTROPHE:case ce.SINGLE_QUOTE:case ce.OPEN_SQUARE_BRACKET:case ce.BACKSLASH:case ce.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Sz={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 bz=Sz;var xz=function(t,n){return f.createElement(kr,De({},t,{ref:n,icon:bz}))};const pd=f.forwardRef(xz),Cz=j.createContext(void 0),g2=Cz,hi=100,Ez=10,$z=hi*Ez,v2={Modal:hi,Drawer:hi,Popover:hi,Popconfirm:hi,Tooltip:hi,Tour:hi},_z={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Rz(e){return e in v2}function y2(e,t){const[,n]=An(),r=j.useContext(g2),o=Rz(e);if(t!==void 0)return[t,t];let i=r??0;return o?(i+=(r?0:n.zIndexPopupBase)+v2[e],i=Math.min(i,n.zIndexPopupBase+$z)):i+=_z[e],[r===void 0?t:i,i]}function Cn(){Cn=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(O,I,$){O[I]=$.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(O,I,$){return Object.defineProperty(O,I,{value:$,enumerable:!0,configurable:!0,writable:!0}),O[I]}try{c({},"")}catch{c=function($,M,T){return $[M]=T}}function u(O,I,$,M){var T=I&&I.prototype instanceof g?I:g,k=Object.create(T.prototype),D=new _(M||[]);return o(k,"_invoke",{value:P(O,$,D)}),k}function d(O,I,$){try{return{type:"normal",arg:O.call(I,$)}}catch(M){return{type:"throw",arg:M}}}t.wrap=u;var h="suspendedStart",p="suspendedYield",w="executing",v="completed",b={};function g(){}function m(){}function y(){}var S={};c(S,a,function(){return this});var C=Object.getPrototypeOf,E=C&&C(C(F([])));E&&E!==n&&r.call(E,a)&&(S=E);var x=y.prototype=g.prototype=Object.create(S);function R(O){["next","throw","return"].forEach(function(I){c(O,I,function($){return this._invoke(I,$)})})}function N(O,I){function $(T,k,D,B){var V=d(O[T],O,k);if(V.type!=="throw"){var W=V.arg,U=W.value;return U&&Ke(U)=="object"&&r.call(U,"__await")?I.resolve(U.__await).then(function(Y){$("next",Y,D,B)},function(Y){$("throw",Y,D,B)}):I.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 I(function(V,W){$(k,D,V,W)})}return M=M?M.then(B,B):B()}})}function P(O,I,$){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=z(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(O,I,$);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 z(O,I){var $=I.method,M=O.iterator[$];if(M===e)return I.delegate=null,$==="throw"&&O.iterator.return&&(I.method="return",I.arg=e,z(O,I),I.method==="throw")||$!=="return"&&(I.method="throw",I.arg=new TypeError("The iterator does not provide a '"+$+"' method")),b;var T=d(M,O.iterator,I.arg);if(T.type==="throw")return I.method="throw",I.arg=T.arg,I.delegate=null,b;var k=T.arg;return k?k.done?(I[O.resultName]=k.value,I.next=O.nextLoc,I.method!=="return"&&(I.method="next",I.arg=e),I.delegate=null,b):k:(I.method="throw",I.arg=new TypeError("iterator result is not an object"),I.delegate=null,b)}function L(O){var I={tryLoc:O[0]};1 in O&&(I.catchLoc=O[1]),2 in O&&(I.finallyLoc=O[2],I.afterLoc=O[3]),this.tryEntries.push(I)}function A(O){var I=O.completion||{};I.type="normal",delete I.arg,O.completion=I}function _(O){this.tryEntries=[{tryLoc:"root"}],O.forEach(L,this),this.reset(!0)}function F(O){if(O||O===""){var I=O[a];if(I)return I.call(O);if(typeof O.next=="function")return O;if(!isNaN(O.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===I)return this.complete(M.completion,M.afterLoc),A(M),b}},catch:function(I){for(var $=this.tryEntries.length-1;$>=0;--$){var M=this.tryEntries[$];if(M.tryLoc===I){var T=M.completion;if(T.type==="throw"){var k=T.arg;A(M)}return k}}throw new Error("illegal catch attempt")},delegateYield:function(I,$,M){return this.delegate={iterator:F(I),resultName:$,nextLoc:M},this.method==="next"&&(this.arg=e),b}},t}function H1(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(c){n(c);return}l.done?t(s):Promise.resolve(s).then(r,o)}function Gi(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(s){H1(i,r,o,a,l,"next",s)}function l(s){H1(i,r,o,a,l,"throw",s)}a(void 0)})}}var oc=G({},CO),Oz=oc.version,Iz=oc.render,Mz=oc.unmountComponentAtNode,gd;try{var Nz=Number((Oz||"").split(".")[0]);Nz>=18&&(gd=oc.createRoot)}catch{}function B1(e){var t=oc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Ke(t)==="object"&&(t.usingClientEntryPoint=e)}var pf="__rc_react_root__";function Pz(e,t){B1(!0);var n=t[pf]||gd(t);B1(!1),n.render(e),t[pf]=n}function Tz(e,t){Iz(e,t)}function Az(e,t){if(gd){Pz(e,t);return}Tz(e,t)}function kz(e){return Mp.apply(this,arguments)}function Mp(){return Mp=Gi(Cn().mark(function e(t){return Cn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[pf])===null||o===void 0||o.unmount(),delete t[pf]}));case 1:case"end":return r.stop()}},e)})),Mp.apply(this,arguments)}function zz(e){Mz(e)}function Fz(e){return Np.apply(this,arguments)}function Np(){return Np=Gi(Cn().mark(function e(t){return Cn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(gd===void 0){r.next=2;break}return r.abrupt("return",kz(t));case 2:zz(t);case 3:case"end":return r.stop()}},e)})),Np.apply(this,arguments)}const Rh=()=>({height:0,opacity:0}),V1=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Lz=e=>({height:e?e.offsetHeight:0}),Oh=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Dz=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:Rh,onEnterStart:Rh,onAppearActive:V1,onEnterActive:V1,onLeaveStart:Lz,onLeaveActive:Rh,onAppearEnd:Oh,onEnterEnd:Oh,onLeaveEnd:Oh,motionDeadline:500}},w2=(e,t,n)=>n!==void 0?n:`${e}-${t}`,W1=Dz,Nv=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},jz=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(",")}}}}},Hz=Ov("Wave",e=>[jz(e)]);function Bz(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 Ih(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&Bz(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function Vz(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Ih(t)?t:Ih(n)?n:Ih(r)?r:null}const S2="ant-wave-target";function Mh(e){return Number.isNaN(e)?0:e}const Wz=e=>{const{className:t,target:n,component:r}=e,o=f.useRef(null),[i,a]=f.useState(null),[l,s]=f.useState([]),[c,u]=f.useState(0),[d,h]=f.useState(0),[p,w]=f.useState(0),[v,b]=f.useState(0),[g,m]=f.useState(!1),y={left:c,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(Vz(n));const x=E.position==="static",{borderLeftWidth:R,borderTopWidth:N}=E;u(x?n.offsetLeft:Mh(-parseFloat(R))),h(x?n.offsetTop:Mh(-parseFloat(N))),w(n.offsetWidth),b(n.offsetHeight);const{borderTopLeftRadius:P,borderTopRightRadius:z,borderBottomLeftRadius:L,borderBottomRightRadius:A}=E;s([P,z,A,L].map(_=>Mh(parseFloat(_))))}if(f.useEffect(()=>{if(n){const E=It(()=>{S(),m(!0)});let x;return typeof ResizeObserver<"u"&&(x=new ResizeObserver(S),x.observe(n)),()=>{It.cancel(E),x==null||x.disconnect()}}},[]),!g)return null;const C=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(S2));return f.createElement(hl,{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;Fz(N).then(()=>{N==null||N.remove()})}return!1}},E=>{let{className:x}=E;return f.createElement("div",{ref:o,className:me(t,{"wave-quick":C},x),style:y})})},Uz=(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),Az(f.createElement(Wz,Object.assign({},t,{target:e})),o)},Kz=Uz;function Gz(e,t,n){const{wave:r}=f.useContext($t),[,o,i]=An(),a=Hn(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const d=u.querySelector(`.${S2}`)||u,{showEffect:h}=r||{};(h||Kz)(d,{className:t,token:o,component:n,event:c,hashId:i})}),l=f.useRef();return c=>{It.cancel(l.current),l.current=It(()=>{a(c)})}}const Xz=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=f.useContext($t),i=f.useRef(null),a=o("wave"),[,l]=Hz(a),s=Gz(i,me(a,l),r);if(j.useEffect(()=>{const u=i.current;if(!u||u.nodeType!==1||n)return;const d=h=>{!Nv(h.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||s(h)};return u.addEventListener("click",d,!0),()=>{u.removeEventListener("click",d,!0)}},[n]),!j.isValidElement(t))return t??null;const c=cl(t)?bo(t.ref,i):i;return tl(t,{ref:c})},b2=Xz,Xi=e=>{const t=j.useContext(rc);return j.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},x2=f.createContext(null),vd=(e,t)=>{const n=f.useContext(x2),r=f.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,l=o==="vertical"?"-vertical-":"-";return me(`${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}},Pp=e=>{let{children:t}=e;return f.createElement(x2.Provider,{value:null},t)};var qz=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=qz(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,s]=An();let c="";switch(o){case"large":c="lg";break;case"small":c="sm";break}const u=me(l,{[`${l}-${c}`]:c,[`${l}-rtl`]:n==="rtl"},i,s);return f.createElement(C2.Provider,{value:o},f.createElement("div",Object.assign({},a,{className:u})))},Qz=Yz,U1=/^[\u4e00-\u9fa5]{2}$/,Tp=U1.test.bind(U1);function K1(e){return typeof e=="string"}function Nh(e){return e==="text"||e==="link"}function Zz(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&K1(e.type)&&Tp(e.props.children)?tl(e,{children:e.props.children.split("").join(n)}):K1(e)?Tp(e)?j.createElement("span",null,e.split("").join(n)):j.createElement("span",null,e):p2(e)?j.createElement("span",null,e):e}function Jz(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=>Zz(o,t))}const eF=f.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=me(`${i}-icon`,n);return j.createElement("span",{ref:t,className:a,style:r},o)}),E2=eF,G1=f.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:i}=e;const a=me(`${n}-loading-icon`,r);return j.createElement(E2,{prefixCls:n,className:a,style:o,ref:t},j.createElement(pd,{className:i}))}),Ph=()=>({width:0,opacity:0,transform:"scale(0)"}),Th=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(G1,{prefixCls:t,className:o,style:i}):j.createElement(hl,{visible:a,motionName:`${t}-loading-icon-motion`,motionLeave:a,removeOnLeave:!0,onAppearStart:Ph,onAppearActive:Th,onEnterStart:Ph,onEnterActive:Th,onLeaveStart:Th,onLeaveActive:Ph},(l,s)=>{let{className:c,style:u}=l;return j.createElement(G1,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),u),ref:s,iconClassName:c})})},nF=tF,X1=(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}},X1(`${t}-primary`,o),X1(`${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({},KE(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"}}}},yo=(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"}),Ds=(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"},yo(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),Pv=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},sF(e))}),$2=e=>Object.assign({},Pv(e)),gf=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),_2=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$2(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),yo(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Ds(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},yo(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Ds(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Pv(e))}),cF=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$2(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),yo(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),Ds(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},yo(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),Ds(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Pv(e))}),uF=e=>Object.assign(Object.assign({},_2(e)),{borderStyle:"dashed"}),fF=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},yo(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),gf(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},yo(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),gf(e))}),dF=e=>Object.assign(Object.assign(Object.assign({},yo(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),gf(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},gf(e)),yo(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBg}))}),hF=e=>{const{componentCls:t}=e;return{[`${t}-default`]:_2(e),[`${t}-primary`]:cF(e),[`${t}-dashed`]:uF(e),[`${t}-link`]:fF(e),[`${t}-text`]:dF(e),[`${t}-ghost`]:Ds(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},Tv=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,c=`${n}-icon-only`;return[{[`${n}${t}`]:{fontSize:o,height:r,padding:`${Ae(s)} ${Ae(a)}`,borderRadius:i,[`&${c}`]:{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=>Tv(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 Tv(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 Tv(t,`${e.componentCls}-lg`)},vF=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},R2=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return Et(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},O2=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=Co("Button",e=>{const t=R2(e);return[iF(t),pF(t),mF(t),gF(t),vF(t),hF(t),oF(t)]},O2,{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 Av(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=JE(["Button","compact"],e=>{const t=R2(e);return[Av(t),CF(t),EF(t)]},O2);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:c,styles:u,disabled:d,className:h,rootClassName:p,children:w,icon:v,ghost:b=!1,block:g=!1,htmlType:m="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),[z,L,A]=yF(P),_=f.useContext(Ki),F=d??_,O=f.useContext(C2),I=f.useMemo(()=>RF(o),[o]),[$,M]=f.useState(I.loading),[T,k]=f.useState(!1),B=bo(t,f.createRef()),V=f.Children.count(w)===1&&!v&&!Nh(a);f.useEffect(()=>{let ue=null;I.delay>0?ue=setTimeout(()=>{ue=null,M(!0)},I.delay):M(I.loading);function fe(){ue&&(clearTimeout(ue),ue=null)}return fe},[I]),f.useEffect(()=>{if(!B||!B.current||x===!1)return;const ue=B.current.textContent;V&&Tp(ue)?T||k(!0):T&&k(!1)},[B]);const W=ue=>{const{onClick:fe}=e;if($||F){ue.preventDefault();return}fe==null||fe(ue)},U=x!==!1,{compactSize:Y,compactItemClassnames:X}=vd(P,R),K={large:"lg",small:"sm",middle:void 0},q=Xi(ue=>{var fe,ge;return(ge=(fe=c??Y)!==null&&fe!==void 0?fe:O)!==null&&ge!==void 0?ge:ue}),te=q&&K[q]||"",ne=$?"loading":v,ee=Ui(C,["navigate"]),Z=me(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&&!Nh(a),[`${P}-loading`]:$,[`${P}-two-chinese-chars`]:T&&U&&!$,[`${P}-block`]:g,[`${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=me(y==null?void 0:y.icon,(n=N==null?void 0:N.classNames)===null||n===void 0?void 0:n.icon),he=Object.assign(Object.assign({},(u==null?void 0:u.icon)||{}),((r=N==null?void 0:N.styles)===null||r===void 0?void 0:r.icon)||{}),oe=v&&!$?j.createElement(E2,{prefixCls:P,className:pe,style:he},v):j.createElement(nF,{existIcon:!!v,prefixCls:P,loading:!!$}),J=w||w===0?Jz(w,V&&U):null;if(ee.href!==void 0)return z(j.createElement("a",Object.assign({},ee,{className:me(Z,{[`${P}-disabled`]:F}),href:F?void 0:ee.href,style:ae,onClick:W,ref:B,tabIndex:F?-1:0}),oe,J));let re=j.createElement("button",Object.assign({},C,{type:m,className:Z,style:ae,onClick:W,disabled:F,ref:B}),oe,J,X&&j.createElement($F,{key:"compact",prefixCls:P}));return Nh(a)||(re=j.createElement(b2,{component:"Button",disabled:!!$},re)),z(re)},kv=f.forwardRef(OF);kv.Group=Qz;kv.__ANT_BUTTON=!0;const I2=kv;var M2=f.createContext(null),q1=[];function IF(e,t){var n=f.useState(function(){if(!xn())return null;var w=document.createElement("div");return w}),r=Q(n,1),o=r[0],i=f.useRef(!1),a=f.useContext(M2),l=f.useState(q1),s=Q(l,2),c=s[0],u=s[1],d=a||(i.current?void 0:function(w){u(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(){c.length&&(c.forEach(function(w){return w()}),u(q1))},[c]),[o,d]}var Ah;function MF(e){if(typeof document>"u")return 0;if(e||Ah===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),Ah=o-i}return Ah}function Y1(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:Y1(n),height:Y1(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()),Q1=0;function AF(e){var t=!!e,n=f.useState(function(){return Q1+=1,"".concat(TF,"_").concat(Q1)}),r=Q(n,1),o=r[0];xt(function(){if(t){var i=NF(document.body).width,a=PF();ni(` +html body { + overflow-y: hidden; + `.concat(a?"width: calc(100% - ".concat(i,"px);"):"",` +}`),o)}else ks(o);return function(){ks(o)}},[t,o])}var Z1=!1;function kF(e){return typeof e=="boolean"&&(Z1=e),Z1}var J1=function(t){return t===!1?!1:!xn()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},N2=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),c=Q(s,2),u=c[0],d=c[1],h=u||n;f.useEffect(function(){(a||n)&&d(n)},[n,a]);var p=f.useState(function(){return J1(o)}),w=Q(p,2),v=w[0],b=w[1];f.useEffect(function(){var z=J1(o);b(z??null)});var g=IF(h&&!v),m=Q(g,2),y=m[0],S=m[1],C=v??y;AF(r&&n&&xn()&&(C===y||C===document.body));var E=null;if(l&&cl(l)&&t){var x=l;E=x.ref}var R=id(E,t);if(!h||!xn()||v===void 0)return null;var N=C===!1||kF(),P=l;return t&&(P=f.cloneElement(l,{ref:R})),f.createElement(M2.Provider,{value:S},N?P:po.createPortal(P,C))});function zF(){var e=G({},Ys);return e.useId}var ew=0,tw=zF();const FF=tw?function(t){var n=tw();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=ew;ew+=1,i("rc_unique_".concat(a))},[]),t||o};var xi="RC_FORM_INTERNAL_HOOKS",ft=function(){Tn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},ji=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}}}),js=f.createContext(null);function Ap(e){return e==null?[]:Array.isArray(e)?e:[e]}function LF(e){return e&&!!e._init}function Ci(){return Ci=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 Eu(e,t,n){return jF()?Eu=Reflect.construct.bind():Eu=function(o,i,a){var l=[null];l.push.apply(l,i);var s=Function.bind.apply(o,l),c=new s;return a&&Hs(c,a.prototype),c},Eu.apply(null,arguments)}function HF(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function zp(e){var t=typeof Map=="function"?new Map:void 0;return zp=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 Eu(r,arguments,kp(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Hs(o,r)},zp(e)}var BF=/%[sdj%]/g,VF=function(){};function Fp(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 Vn(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 nw(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},Kl={integer:function(t){return Kl.number(t)&&parseInt(t,10)===t},float:function(t){return Kl.number(t)&&!Kl.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"&&!Kl.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(aw.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(QF())},hex:function(t){return typeof t=="string"&&!!t.match(aw.hex)}},ZF=function(t,n,r,o,i){if(t.required&&n===void 0){P2(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?Kl[l](n)||o.push(Vn(i.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&o.push(Vn(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",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=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&&(u=n.length),p&&(u=n.replace(c,"_").length),a?u!==t.len&&o.push(Vn(i.messages[d].len,t.fullField,t.len)):l&&!s&&ut.max?o.push(Vn(i.messages[d].max,t.fullField,t.max)):l&&s&&(ut.max)&&o.push(Vn(i.messages[d].range,t.fullField,t.min,t.max))},ra="enum",eL=function(t,n,r,o,i){t[ra]=Array.isArray(t[ra])?t[ra]:[],t[ra].indexOf(n)===-1&&o.push(Vn(i.messages[ra],t.fullField,t[ra].join(", ")))},tL=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Vn(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(Vn(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Je={required:P2,whitespace:YF,type:ZF,range:JF,enum:eL,pattern:tL},nL=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)},rL=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)},oL=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)},iL=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)},aL=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)},lL=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)},sL=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)},cL=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)},uL=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)},fL="enum",dL=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[fL](t,n,o,a,i)}r(a)},hL=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)},mL=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)},pL=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)},kh=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)},gL=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)},as={string:nL,method:rL,number:oL,boolean:iL,regexp:aL,integer:lL,float:sL,array:cL,object:uL,enum:dL,pattern:hL,date:mL,url:kh,hex:kh,email:kh,required:pL,any:gL};function Lp(){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=Lp(),ic=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=iw(Lp(),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,c=i;if(typeof s=="function"&&(c=s,s={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,l),Promise.resolve(l);function u(v){var b=[],g={};function m(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 A2(t,r,n)})}function A2(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 bL(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 xL(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 uw(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 CL=["name"],tr=[];function fw(e,t,n,r,o,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var zv=function(e){ul(n,e);var t=fl(n);function n(r){var o;if(kn(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",tr),H(it(o),"warnings",tr),H(it(o),"cancelRegister",function(){var s=o.props,c=s.preserve,u=s.isListField,d=s.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,c,Bt(d)),o.cancelRegisterFunc=null}),H(it(o),"getNamePath",function(){var s=o.props,c=s.name,u=s.fieldContext,d=u.prefixName,h=d===void 0?[]:d;return c!==void 0?[].concat(be(h),be(c)):[]}),H(it(o),"getRules",function(){var s=o.props,c=s.rules,u=c===void 0?[]:c,d=s.fieldContext;return u.map(function(h){return typeof h=="function"?h(d):h})}),H(it(o),"refresh",function(){o.mounted&&o.setState(function(s){var c=s.resetCount;return{resetCount:c+1}})}),H(it(o),"metaCache",null),H(it(o),"triggerMetaEvent",function(s){var c=o.props.onMetaChange;if(c){var u=G(G({},o.getMeta()),{},{destroy:s});uE(o.metaCache,u)||c(u),o.metaCache=u}else o.metaCache=null}),H(it(o),"onStoreChange",function(s,c,u){var d=o.props,h=d.shouldUpdate,p=d.dependencies,w=p===void 0?[]:p,v=d.onReset,b=u.store,g=o.getNamePath(),m=o.getValue(s),y=o.getValue(b),S=c&&La(c,g);switch(u.type==="valueUpdate"&&u.source==="external"&&m!==y&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=tr,o.warnings=tr,o.triggerMetaEvent()),u.type){case"reset":if(!c||S){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=tr,o.warnings=tr,o.triggerMetaEvent(),v==null||v(),o.refresh();return}break;case"remove":{if(h){o.reRender();return}break}case"setField":{var C=u.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||tr),"warnings"in C&&(o.warnings=C.warnings||tr),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in C&&La(c,g,!0)){o.reRender();return}if(h&&!g.length&&fw(h,s,b,m,y,u)){o.reRender();return}break}case"dependenciesUpdate":{var E=w.map(Bt);if(E.some(function(x){return La(u.relatedFields,x)})){o.reRender();return}break}default:if(S||(!w.length||g.length||h)&&fw(h,s,b,m,y,u)){o.reRender();return}break}h===!0&&o.reRender()}),H(it(o),"validateRules",function(s){var c=o.getNamePath(),u=o.getValue(),d=s||{},h=d.triggerName,p=d.validateOnly,w=p===void 0?!1:p,v=Promise.resolve().then(Gi(Cn().mark(function b(){var g,m,y,S,C,E,x;return Cn().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(g=o.props,m=g.validateFirst,y=m===void 0?!1:m,S=g.messageVariables,C=g.validateDebounce,E=o.getRules(),h&&(E=E.filter(function(P){return P}).filter(function(P){var z=P.validateTrigger;if(!z)return!0;var L=Ap(z);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=yL(c,u,E,s,y,S),x.catch(function(P){return P}).then(function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:tr;if(o.validatePromise===v){var z;o.validatePromise=null;var L=[],A=[];(z=P.forEach)===null||z===void 0||z.call(P,function(_){var F=_.rule.warningOnly,O=_.errors,I=O===void 0?tr:O;F?A.push.apply(A,be(I)):L.push.apply(L,be(I))}),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=tr,o.warnings=tr,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,c=s.getInternalHooks(xi),u=c.getInitialValue;return u(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 c=o.getMeta();return G(G({},o.getOnlyChild(s(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var u=Qa(s);return u.length!==1||!f.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),H(it(o),"getValue",function(s){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return Br(s||c(!0),u)}),H(it(o),"getControlled",function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,u=c.trigger,d=c.validateTrigger,h=c.getValueFromEvent,p=c.normalize,w=c.valuePropName,v=c.getValueProps,b=c.fieldContext,g=d!==void 0?d:b.validateTrigger,m=o.getNamePath(),y=b.getInternalHooks,S=b.getFieldsValue,C=y(xi),E=C.dispatch,x=o.getValue(),R=v||function(L){return H({},w,L)},N=s[u],P=G(G({},s),R(x));P[u]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var L,A=arguments.length,_=new Array(A),F=0;F=0&&P<=z.length?(u.keys=[].concat(be(u.keys.slice(0,P)),[u.id],be(u.keys.slice(P))),y([].concat(be(z.slice(0,P)),[N],be(z.slice(P))))):(u.keys=[].concat(be(u.keys),[u.id]),y([].concat(be(z),[N]))),u.id+=1},remove:function(N){var P=C(),z=new Set(Array.isArray(N)?N:[N]);z.size<=0||(u.keys=u.keys.filter(function(L,A){return!z.has(A)}),y(P.filter(function(L,A){return!z.has(A)})))},move:function(N,P){if(N!==P){var z=C();N<0||N>=z.length||P<0||P>=z.length||(u.keys=uw(u.keys,N,P),y(uw(z,N,P)))}}},x=m||[];return Array.isArray(x)||(x=[]),r(x.map(function(R,N){var P=u.keys[N];return P===void 0&&(u.keys[N]=u.id,P=u.keys[N],u.id+=1),{name:N,key:P,isListField:!0}}),E,b)})))}function EL(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 z2="__@field_split__";function zh(e){return e.map(function(t){return"".concat(Ke(t),":").concat(t)}).join(z2)}var oa=function(){function e(){kn(this,e),H(this,"kvs",new Map)}return zn(e,[{key:"set",value:function(n,r){this.kvs.set(zh(n),r)}},{key:"get",value:function(n){return this.kvs.get(zh(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(zh(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(z2);return n({key:l.map(function(s){var c=s.match(/^([^:]*):(.*)$/),u=Q(c,3),d=u[1],h=u[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}(),$L=["name"],_L=zn(function e(t){var n=this;kn(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===xi?(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}):(Tn(!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=_a(r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(l){var s=l.key;a=xr(a,s,Br(r,s))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),H(this,"destroyForm",function(){var r=new oa;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=Br(n.initialValues,r);return r.length?_a(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 oa;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),c=[];return s.forEach(function(u){var d,h,p="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(l){var w,v;if((w=(v=u).isList)!==null&&w!==void 0&&w.call(v))return}else if(!i&&(d=(h=u).isListField)!==null&&d!==void 0&&d.call(h))return;if(!a)c.push(p);else{var b="getMeta"in u?u.getMeta():null;a(b)&&c.push(p)}}),cw(n.store,c.map(Bt))}),H(this,"getFieldValue",function(r){n.warningUnhooked();var o=Bt(r);return Br(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 oa,i=n.getFieldEntities(!0);i.forEach(function(s){var c=s.props.initialValue,u=s.getNamePath();if(c!==void 0){var d=o.get(u)||new Set;d.add({entity:s,value:c}),o.set(u,d)}});var a=function(c){c.forEach(function(u){var d=u.props.initialValue;if(d!==void 0){var h=u.getNamePath(),p=n.getInitialValue(h);if(p!==void 0)Tn(!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)Tn(!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=u.isListField();!b&&(!r.skipExist||v===void 0)&&n.updateStore(xr(n.store,h,be(w)[0].value))}}}})},l;r.entities?l=r.entities:r.namePathList?(l=[],r.namePathList.forEach(function(s){var c=o.get(s);if(c){var u;(u=l).push.apply(u,be(be(c).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(_a(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(xr(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=pt(a,$L),c=Bt(l);i.push(c),"value"in s&&n.updateStore(xr(n.store,c,s.value)),n.notifyObservers(o,[c],{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=Br(n.store,i);a===void 0&&n.updateStore(xr(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 c=a?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==c&&n.fieldEntities.every(function(d){return!A2(d.getNamePath(),o)})){var u=n.store;n.updateStore(xr(u,o,c,!0)),n.notifyObservers(u,[o],{type:"remove"}),n.triggerDependenciesUpdate(u,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(xr(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 c=cw(n.store,[i]);s(c,n.getFieldsValue())}n.triggerOnFieldsChange([i].concat(be(l)))}),H(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var i=_a(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 oa;n.getFieldEntities().forEach(function(s){var c=s.props.dependencies;(c||[]).forEach(function(u){var d=Bt(u);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(c){var u=a.get(c)||new Set;u.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 oa;o.forEach(function(c){var u=c.name,d=c.errors;l.set(u,d)}),a.forEach(function(c){c.errors=l.get(c.name)||c.errors})}var s=a.filter(function(c){var u=c.name;return La(r,u)});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):[],c=[],u=String(Date.now()),d=new Set,h=a||{},p=h.recursive,w=h.dirty;n.getFieldEntities(!0).forEach(function(m){if(l||s.push(m.getNamePath()),!(!m.props.rules||!m.props.rules.length)&&!(w&&!m.isFieldDirty())){var y=m.getNamePath();if(d.add(y.join(u)),!l||La(s,y,p)){var S=m.validateRules(G({validateMessages:G(G({},T2),n.validateMessages)},a));c.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,z=N.errors;P?R.push.apply(R,be(z)):x.push.apply(x,be(z))}),x.length?Promise.reject({name:y,errors:x,warnings:R}):{name:y,errors:x,warnings:R}}))}}});var v=EL(c);n.lastValidatePromise=v,v.catch(function(m){return m}).then(function(m){var y=m.map(function(S){var C=S.name;return C});n.notifyObservers(n.store,y,{type:"validateFinish"}),n.triggerOnFieldsChange(y,m)});var b=v.then(function(){return n.lastValidatePromise===v?Promise.resolve(n.getFieldsValue(s)):Promise.reject([])}).catch(function(m){var y=m.filter(function(S){return S&&S.errors.length});return Promise.reject({values:n.getFieldsValue(s),errorFields:y,outOfDate:n.lastValidatePromise!==v})});b.catch(function(m){return m});var g=s.filter(function(m){return d.has(m.join(u))});return n.triggerOnFieldsChange(g),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 Lv(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 _L(i);t.current=a.getForm()}return[t.current]}var Wp=f.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),F2=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=f.useContext(Wp),l=f.useRef({});return f.createElement(Wp.Provider,{value:G(G({},a),{},{validateMessages:G(G({},a.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:l.current}),a.triggerFormChange(c,u)},triggerFormFinish:function(c,u){o&&o(c,{values:u,forms:l.current}),a.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(l.current=G(G({},l.current),{},H({},c,u))),a.registerForm(c,u)},unregisterForm:function(c){var u=G({},l.current);delete u[c],l.current=u,a.unregisterForm(c)}})},i)},RL=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],OL=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,a=t.form,l=t.preserve,s=t.children,c=t.component,u=c===void 0?"form":c,d=t.validateMessages,h=t.validateTrigger,p=h===void 0?"onChange":h,w=t.onValuesChange,v=t.onFieldsChange,b=t.onFinish,g=t.onFinishFailed,m=pt(t,RL),y=f.useContext(Wp),S=Lv(a),C=Q(S,1),E=C[0],x=E.getInternalHooks(xi),R=x.useSubscribe,N=x.setInitialValues,P=x.setCallbacks,z=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]),z(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{}}),D2=f.createContext(null),j2=e=>{const t=Ui(e,["prefixCls"]);return f.createElement(F2,Object.assign({},t))},Dv=f.createContext({prefixCls:""}),Tr=f.createContext({}),hw=e=>{let{children:t,status:n,override:r}=e;const o=f.useContext(Tr),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(Tr.Provider,{value:i},t)},ML=e=>({animationDuration:e,animationFillMode:"both"}),NL=e=>({animationDuration:e,animationFillMode:"both"}),jv=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({},ML(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},NL(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"}}},PL=new ht("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),TL=new ht("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),AL=new ht("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),kL=new ht("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),zL=new ht("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),FL=new ht("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),LL=new ht("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),DL=new ht("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),jL={"move-up":{inKeyframes:LL,outKeyframes:DL},"move-down":{inKeyframes:PL,outKeyframes:TL},"move-left":{inKeyframes:AL,outKeyframes:kL},"move-right":{inKeyframes:zL,outKeyframes:FL}},mw=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=jL[t];return[jv(r,o,i,e.motionDurationMid),{[` + ${r}-enter, + ${r}-appear + `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},H2=new ht("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),B2=new ht("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),V2=new ht("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),W2=new ht("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),HL=new ht("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),BL=new ht("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),VL=new ht("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),WL=new ht("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),UL={"slide-up":{inKeyframes:H2,outKeyframes:B2},"slide-down":{inKeyframes:V2,outKeyframes:W2},"slide-left":{inKeyframes:HL,outKeyframes:BL},"slide-right":{inKeyframes:VL,outKeyframes:WL}},pw=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=UL[t];return[jv(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}}]},Hv=new ht("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),KL=new ht("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),gw=new ht("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),vw=new ht("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),GL=new ht("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),XL=new ht("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),qL=new ht("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),YL=new ht("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),QL=new ht("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),ZL=new ht("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),JL=new ht("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),e6=new ht("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),t6={zoom:{inKeyframes:Hv,outKeyframes:KL},"zoom-big":{inKeyframes:gw,outKeyframes:vw},"zoom-big-fast":{inKeyframes:gw,outKeyframes:vw},"zoom-left":{inKeyframes:qL,outKeyframes:YL},"zoom-right":{inKeyframes:QL,outKeyframes:ZL},"zoom-up":{inKeyframes:GL,outKeyframes:XL},"zoom-down":{inKeyframes:JL,outKeyframes:e6}},n6=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=t6[t];return[jv(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}}]},r6=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`}}}),o6=r6;function i6(e){return t=>f.createElement(ml,{theme:{token:{motion:!1,zIndexPopupBase:0}}},f.createElement(e,Object.assign({},t)))}const a6=(e,t,n,r)=>i6(i=>{const{prefixCls:a,style:l}=i,s=f.useRef(null),[c,u]=f.useState(0),[d,h]=f.useState(0),[p,w]=Kr(!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;u(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 g=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},l),{margin:0}),open:p,visible:p,getPopupContainer:()=>s.current});r&&(g=r(g));const m={paddingBottom:c,position:"relative",minWidth:d};return f.createElement("div",{ref:s,style:m},f.createElement(e,Object.assign({},g)))}),U2=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 yd=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(u){u.preventDefault(),i&&i(u)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},s!==void 0?s:f.createElement("span",{className:me(n.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},l))};function l6(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]),c=j.useMemo(function(){return!!(!i&&r&&(n.length||a)&&!(l==="combobox"&&a===""))},[r,i,n.length,a,l]);return{allowClear:c,clearIcon:j.createElement(yd,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:s},"×")}}var K2=f.createContext(null);function s6(){return f.useContext(K2)}function c6(){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(c,u){a(),i.current=window.setTimeout(function(){o(c),u&&u()},e)};return[r,l,a]}function G2(){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 u6(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(c){return c}).every(function(c){return!c.contains(s)&&c!==s})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[])}var f6=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],ia=void 0;function d6(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,l=e.responsiveDisabled,s=e.registerSize,c=e.itemKey,u=e.className,d=e.style,h=e.children,p=e.display,w=e.order,v=e.component,b=v===void 0?"div":v,g=pt(e,f6),m=a&&!p;function y(R){s(c,R)}f.useEffect(function(){return function(){y(null)}},[]);var S=i&&o!==ia?i(o):h,C;r||(C={opacity:m?0:1,height:m?0:ia,overflowY:m?"hidden":ia,order:a?w:ia,pointerEvents:m?"none":ia,position:m?"absolute":ia});var E={};m&&(E["aria-hidden"]=!0);var x=f.createElement(b,De({className:me(!r&&n,u),style:G(G({},C),d)},E,g,{ref:t}),S);return a&&(x=f.createElement(ai,{onResize:function(N){var P=N.offsetWidth;y(P)},disabled:l},x)),x}var ls=f.forwardRef(d6);ls.displayName="Item";function h6(e){if(typeof MessageChannel>"u")It(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function m6(){var e=f.useRef(null),t=function(r){e.current||(e.current=[],h6(function(){po.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function kl(e,t){var n=f.useState(t),r=Q(n,2),o=r[0],i=r[1],a=Hn(function(l){e(function(){i(l)})});return[o,a]}var vf=j.createContext(null),p6=["component"],g6=["className"],v6=["className"],y6=function(t,n){var r=f.useContext(vf);if(!r){var o=t.component,i=o===void 0?"div":o,a=pt(t,p6);return f.createElement(i,De({},a,{ref:n}))}var l=r.className,s=pt(r,g6),c=t.className,u=pt(t,v6);return f.createElement(vf.Provider,{value:null},f.createElement(ls,De({ref:n,className:me(l,c)},s,u)))},X2=f.forwardRef(y6);X2.displayName="RawItem";var w6=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],q2="responsive",Y2="invalidate";function S6(e){return"+ ".concat(e.length," ...")}function b6(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,c=e.itemWidth,u=c===void 0?10:c,d=e.ssr,h=e.style,p=e.className,w=e.maxCount,v=e.renderRest,b=e.renderRawRest,g=e.suffix,m=e.component,y=m===void 0?"div":m,S=e.itemComponent,C=e.onVisibleChange,E=pt(e,w6),x=d==="full",R=m6(),N=kl(R,null),P=Q(N,2),z=P[0],L=P[1],A=z||0,_=kl(R,new Map),F=Q(_,2),O=F[0],I=F[1],$=kl(R,0),M=Q($,2),T=M[0],k=M[1],D=kl(R,0),B=Q(D,2),V=B[0],W=B[1],U=kl(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],he=ae[1],oe=f.useMemo(function(){return pe===null&&x?Number.MAX_SAFE_INTEGER:pe||0},[pe,z]),J=f.useState(!1),re=Q(J,2),ue=re[0],fe=re[1],ge="".concat(r,"-item"),Pe=Math.max(T,V),Ie=w===q2,Ee=i.length&&Ie,tt=w===Y2,Qe=Ee||typeof w=="number"&&i.length>w,Fe=f.useMemo(function(){var ye=i;return Ee?z===null&&x?ye=i:ye=i.slice(0,Math.min(i.length,A/u)):typeof w=="number"&&(ye=i.slice(0,w)),ye},[i,u,z,w,Ee]),ve=f.useMemo(function(){return Ee?i.slice(oe+1):i.slice(Fe.length)},[i,Fe,Ee,oe]),de=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)||(he(ye),ie||(fe(yeA){Ze(Ce-1,ye-Se-X+V);break}}g&&wt(0)+X>A&&ee(null)}},[A,O,V,X,de,Fe]);var Ge=ue&&!!ve.length,ot={};ne!==null&&Ee&&(ot={position:"absolute",left:ne,top:0});var Mt={prefixCls:ge,responsive:Ee,component:S,invalidate:tt},Ve=l?function(ye,Me){var ie=de(ye,Me);return f.createElement(vf.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=de(ye,Me);return f.createElement(ls,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(vf.Provider,{value:G(G({},Mt),qe)},b(ve)));else{var _e=v||S6;gt=f.createElement(ls,De({},Mt,qe),typeof _e=="function"?_e(ve):_e)}var Be=f.createElement(y,De({className:me(!tt&&r,p),style:h,ref:t},E),Fe.map(Ve),Qe?gt:null,g&&f.createElement(ls,De({},Mt,{responsive:Ie,responsiveDisabled:!Ee,order:oe,className:"".concat(ge,"-suffix"),registerSize:rt,display:!0,style:ot}),g));return Ie&&(Be=f.createElement(ai,{onResize:yt,disabled:!Ee},Be)),Be}var ac=f.forwardRef(b6);ac.displayName="Overflow";ac.Item=X2;ac.RESPONSIVE=q2;ac.INVALIDATE=Y2;var x6=function(t,n){var r,o=t.prefixCls,i=t.id,a=t.inputElement,l=t.disabled,s=t.tabIndex,c=t.autoFocus,u=t.autoComplete,d=t.editable,h=t.activeDescendantId,p=t.value,w=t.maxLength,v=t.onKeyDown,b=t.onMouseDown,g=t.onChange,m=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,z=P.onKeyDown,L=P.onChange,A=P.onMouseDown,_=P.onCompositionStart,F=P.onCompositionEnd,O=P.style;return"maxLength"in x.props,x=f.cloneElement(x,G(G(G({type:"search"},P),{},{id:i,ref:bo(n,N),disabled:l,tabIndex:s,autoComplete:u||"off",autoFocus:c,className:me("".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({},O),{},{opacity:d?null:0}),onKeyDown:function($){v($),z&&z($)},onMouseDown:function($){b($),A&&A($)},onChange:function($){g($),L&&L($)},onCompositionStart:function($){y($),_&&_($)},onCompositionEnd:function($){S($),F&&F($)},onPaste:m})),x},Bv=f.forwardRef(x6);Bv.displayName="Input";function Q2(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var C6=typeof window<"u"&&window.document&&window.document.documentElement,E6=C6;function $6(e){return e!=null}function _6(e){return!e&&e!==0}function yw(e){return["string","number"].includes(Ke(e))}function Z2(e){var t=void 0;return e&&(yw(e.title)?t=e.title.toString():yw(e.label)&&(t=e.label.toString())),t}function R6(e,t){E6?f.useLayoutEffect(e,t):f.useEffect(e,t)}function O6(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var ww=function(t){t.preventDefault(),t.stopPropagation()},I6=function(t){var n=t.id,r=t.prefixCls,o=t.values,i=t.open,a=t.searchValue,l=t.autoClearSearchValue,s=t.inputRef,c=t.placeholder,u=t.disabled,d=t.mode,h=t.showSearch,p=t.autoFocus,w=t.autoComplete,v=t.activeDescendantId,b=t.tabIndex,g=t.removeIcon,m=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,z=t.onInputKeyDown,L=t.onInputMouseDown,A=t.onInputCompositionStart,_=t.onInputCompositionEnd,F=f.useRef(null),O=f.useState(0),I=Q(O,2),$=I[0],M=I[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);R6(function(){M(F.current.scrollWidth)},[W]);function Y(ee,Z,ae,pe,he){return f.createElement("span",{className:me("".concat(V,"-item"),H({},"".concat(V,"-item-disabled"),ae)),title:Z2(ee)},f.createElement("span",{className:"".concat(V,"-item-content")},Z),pe&&f.createElement(yd,{className:"".concat(V,"-item-remove"),onMouseDown:ww,onClick:he,customizeIcon:g},"×"))}function X(ee,Z,ae,pe,he){var oe=function(re){ww(re),x(!i)};return f.createElement("span",{onMouseDown:oe},E({label:Z,value:ee,disabled:ae,closable:pe,onClose:he}))}function K(ee){var Z=ee.disabled,ae=ee.label,pe=ee.value,he=!u&&!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(fe){fe&&fe.stopPropagation(),R(ee)};return typeof E=="function"?X(pe,oe,Z,he,re):Y(ee,oe,Z,he,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(Bv,{ref:s,open:i,prefixCls:r,id:n,inputElement:null,disabled:u,autoFocus:p,autoComplete:w,editable:U,activeDescendantId:v,value:W,onKeyDown:z,onMouseDown:L,onChange:N,onPaste:P,onCompositionStart:A,onCompositionEnd:_,tabIndex:b,attrs:mf(t,!0)}),f.createElement("span",{ref:F,className:"".concat(V,"-search-mirror"),"aria-hidden":!0},W," ")),ne=f.createElement(ac,{prefixCls:"".concat(V,"-overflow"),data:o,renderItem:K,renderRest:q,suffix:te,itemKey:O6,maxCount:m});return f.createElement(f.Fragment,null,ne,!o.length&&!W&&f.createElement("span",{className:"".concat(V,"-placeholder")},c))},M6=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,i=t.inputRef,a=t.disabled,l=t.autoFocus,s=t.autoComplete,c=t.activeDescendantId,u=t.mode,d=t.open,h=t.values,p=t.placeholder,w=t.tabIndex,v=t.showSearch,b=t.searchValue,g=t.activeValue,m=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),z=Q(P,2),L=z[0],A=z[1],_=u==="combobox",F=_||v,O=h[0],I=b||"";_&&g&&!L&&(I=g),f.useEffect(function(){_&&A(!1)},[_,g]);var $=u!=="combobox"&&!d&&!v?!1:!!I,M=N===void 0?Z2(O):N,T=function(){if(O)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(Bv,{ref:i,prefixCls:r,id:o,open:d,inputElement:n,disabled:a,autoFocus:l,autoComplete:s,editable:F,activeDescendantId:c,value:I,onKeyDown:y,onMouseDown:S,onChange:function(D){A(!0),C(D)},onPaste:E,onCompositionStart:x,onCompositionEnd:R,tabIndex:w,attrs:mf(t,!0),maxLength:_?m:void 0})),!_&&O?f.createElement("span",{className:"".concat(r,"-selection-item"),title:M,style:$?{visibility:"hidden"}:void 0},O.label):null,T())};function N6(e){return![ce.ESC,ce.SHIFT,ce.BACKSPACE,ce.TAB,ce.WIN_KEY,ce.ALT,ce.META,ce.WIN_KEY_RIGHT,ce.CTRL,ce.SEMICOLON,ce.EQUALS,ce.CAPS_LOCK,ce.CONTEXT_MENU,ce.F1,ce.F2,ce.F3,ce.F4,ce.F5,ce.F6,ce.F7,ce.F8,ce.F9,ce.F10,ce.F11,ce.F12].includes(e)}var P6=function(t,n){var r=f.useRef(null),o=f.useRef(!1),i=t.prefixCls,a=t.open,l=t.mode,s=t.showSearch,c=t.tokenWithEnter,u=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=G2(0),g=Q(b,2),m=g[0],y=g[1],S=function(I){var $=I.which;($===ce.UP||$===ce.DOWN)&&I.preventDefault(),w&&w(I),$===ce.ENTER&&l==="tags"&&!o.current&&!a&&(h==null||h(I.target.value)),N6($)&&p(!0)},C=function(){y(!0)},E=f.useRef(null),x=function(I){d(I,!0,o.current)!==!1&&p(!0)},R=function(){o.current=!0},N=function(I){o.current=!1,l!=="combobox"&&x(I.target.value)},P=function(I){var $=I.target.value;if(c&&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($)},z=function(I){var $=I.clipboardData,M=$.getData("text");E.current=M},L=function(I){var $=I.target;if($!==r.current){var M=document.body.style.msTouchAction!==void 0;M?setTimeout(function(){r.current.focus()}):r.current.focus()}},A=function(I){var $=m();I.target!==r.current&&!$&&l!=="combobox"&&I.preventDefault(),(l!=="combobox"&&(!s||!$)||!a)&&(a&&u!==!1&&d("",!0,!1),p())},_={inputRef:r,onInputKeyDown:S,onInputMouseDown:C,onInputChange:P,onInputPaste:z,onInputCompositionStart:R,onInputCompositionEnd:N},F=l==="multiple"||l==="tags"?f.createElement(I6,De({},t,_)):f.createElement(M6,De({},t,_));return f.createElement("div",{ref:v,className:"".concat(i,"-selector"),onClick:L,onMouseDown:A},F)},J2=f.forwardRef(P6);J2.displayName="Selector";function T6(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,c=s===void 0?0:s,u=o.y,d=u===void 0?0:u,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],g=w[1],m=v[0],y=v[1];b===m||!["t","b"].includes(b)?p.top=d:b==="t"?p.top=0:p.bottom=0,g===y||!["l","r"].includes(g)?p.left=c:g==="l"?p.left=0:p.right=0}return f.createElement("div",{ref:h,className:me("".concat(t,"-arrow"),a),style:p},l)}function A6(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?f.createElement(hl,De({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var l=a.className;return f.createElement("div",{style:{zIndex:r},className:me("".concat(t,"-mask"),l)})}):null}var k6=f.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),z6=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,c=e.keepDom,u=e.fresh,d=e.onClick,h=e.mask,p=e.arrow,w=e.arrowPos,v=e.align,b=e.motion,g=e.maskMotion,m=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,z=e.offsetX,L=e.offsetY,A=e.offsetR,_=e.offsetB,F=e.onAlign,O=e.onPrepare,I=e.stretch,$=e.targetWidth,M=e.targetHeight,T=typeof n=="function"?n():n,k=s||c,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=z,X.right=Y),ee?(X.bottom=_,X.top=Y):(X.top=L,X.bottom=Y)}var Z={};return I&&(I.includes("height")&&M?Z.height=M:I.includes("minHeight")&&M&&(Z.minHeight=M),I.includes("width")&&$?Z.width=$:I.includes("minWidth")&&$&&(Z.minWidth=$)),s||(Z.pointerEvents="none"),f.createElement(C,{open:m||k,getContainer:y&&function(){return y(a)},autoDestroy:S},f.createElement(A6,{prefixCls:o,open:s,zIndex:E,mask:h,motion:g}),f.createElement(ai,{onResize:F,disabled:!s},function(ae){return f.createElement(hl,De({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:m,leavedClassName:"".concat(o,"-hidden")},b,{onAppearPrepare:O,onEnterPrepare:O,visible:s,onVisibleChanged:function(he){var oe;b==null||(oe=b.onVisibleChanged)===null||oe===void 0||oe.call(b,he),l(he)}}),function(pe,he){var oe=pe.className,J=pe.style,re=me(o,oe,r);return f.createElement("div",{ref:bo(ae,t,he),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(T6,{prefixCls:o,arrow:p,arrowPos:w,align:v}),f.createElement(k6,{cache:!s&&!u},T))})}))}),F6=f.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=cl(n),i=f.useCallback(function(l){vv(t,r?r(l):l)},[r]),a=id(i,n.ref);return o?f.cloneElement(n,{ref:a}):n}),Sw=f.createContext(null);function bw(e){return e?Array.isArray(e)?e:[e]:[]}function L6(e,t,n,r){return f.useMemo(function(){var o=bw(n??t),i=bw(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 D6(){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 j6(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 zl(e){return Bs(parseFloat(e),0)}function Cw(e,t){var n=G({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=lc(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,l=o.borderTopWidth,s=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,d=r.getBoundingClientRect(),h=r.offsetHeight,p=r.clientHeight,w=r.offsetWidth,v=r.clientWidth,b=zl(l),g=zl(s),m=zl(c),y=zl(u),S=Bs(Math.round(d.width/w*1e3)/1e3),C=Bs(Math.round(d.height/h*1e3)/1e3),E=(w-v-m-y)*S,x=(h-p-b-g)*C,R=b*C,N=g*C,P=m*S,z=y*S,L=0,A=0;if(i==="clip"){var _=zl(a);L=_*S,A=_*C}var F=d.x+P-L,O=d.y+R-A,I=F+d.width+2*L-P-z-E,$=O+d.height+2*A-R-N-x;n.left=Math.max(n.left,F),n.top=Math.max(n.top,O),n.right=Math.min(n.right,I),n.bottom=Math.min(n.bottom,$)}}),n}function Ew(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 $w(e,t){var n=t||[],r=Q(n,2),o=r[0],i=r[1];return[Ew(e.width,o),Ew(e.height,i)]}function _w(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function aa(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 Po(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 H6(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),c=s[0],u=s[1],d=f.useRef(0),h=f.useMemo(function(){return t?Up(t):[]},[t]),p=f.useRef({}),w=function(){p.current={}};e||w();var v=Hn(function(){if(t&&n&&e){let tn=function(uc,Zr){var li=arguments.length>2&&arguments[2]!==void 0?arguments[2]:re,Yi=T.x+uc,wl=T.y+Zr,Ed=Yi+K,$d=wl+X,_d=Math.max(Yi,li.left),Rd=Math.max(wl,li.top),Re=Math.min(Ed,li.right),Le=Math.min($d,li.bottom);return Math.max(0,(Re-_d)*(Le-Rd))},yl=function(){lt=T.y+_e,Dt=lt+X,Wt=T.x+qe,yn=Wt+K};var Jv=tn,e0=yl,m,y,S=t,C=S.ownerDocument,E=lc(S),x=E.getComputedStyle(S),R=x.width,N=x.height,P=x.position,z=S.style.left,L=S.style.top,A=S.style.right,_=S.style.bottom,F=S.style.overflow,O=G(G({},o[r]),i),I=C.createElement("div");(m=S.parentElement)===null||m===void 0||m.appendChild(I),I.style.left="".concat(S.offsetLeft,"px"),I.style.top="".concat(S.offsetTop,"px"),I.style.position=P,I.style.height="".concat(S.offsetHeight,"px"),I.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=O.htmlRegion,ae="visible",pe="visibleFirst";Z!=="scroll"&&Z!==pe&&(Z=ae);var he=Z===pe,oe=Cw(ee,h),J=Cw(ne,h),re=Z===ae?J:oe,ue=he?J:re;S.style.left="auto",S.style.top="auto",S.style.right="0",S.style.bottom="0";var fe=S.getBoundingClientRect();S.style.left=z,S.style.top=L,S.style.right=A,S.style.bottom=_,S.style.overflow=F,(y=S.parentElement)===null||y===void 0||y.removeChild(I);var ge=Bs(Math.round(K/parseFloat(R)*1e3)/1e3),Pe=Bs(Math.round(X/parseFloat(N)*1e3)/1e3);if(ge===0||Pe===0||af(n)&&!Nv(n))return;var Ie=O.offset,Ee=O.targetOffset,tt=$w(T,Ie),Qe=Q(tt,2),Fe=Qe[0],ve=Qe[1],de=$w($,Ee),je=Q(de,2),Ze=je[0],yt=je[1];$.x-=Ze,$.y-=yt;var nt=O.points||[],We=Q(nt,2),rt=We[0],wt=We[1],Ge=_w(wt),ot=_w(rt),Mt=aa($,Ge),Ve=aa(T,ot),gt=G({},O),qe=Mt.x-Ve.x+Fe,_e=Mt.y-Ve.y+ve,Be=tn(qe,_e),ye=tn(qe,_e,J),Me=aa($,["t","l"]),ie=aa(T,["t","l"]),Ce=aa($,["b","r"]),Se=aa(T,["b","r"]),we=O.overflow||{},Ue=we.adjustX,Ye=we.adjustY,Nt=we.shiftX,_t=we.shiftY,mt=function(Zr){return typeof Zr=="boolean"?Zr:Zr>=0},lt,Dt,Wt,yn;yl();var Ne=mt(Ye),Oe=ot[0]===Ge[0];if(Ne&&ot[0]==="t"&&(Dt>ue.bottom||p.current.bt)){var Te=_e;Oe?Te-=X-q:Te=Me.y-Se.y-ve;var st=tn(qe,Te),jt=tn(qe,Te,J);st>Be||st===Be&&(!he||jt>=ye)?(p.current.bt=!0,_e=Te,ve=-ve,gt.points=[Po(ot,0),Po(Ge,0)]):p.current.bt=!1}if(Ne&&ot[0]==="b"&&(ltBe||_n===Be&&(!he||Xr>=ye)?(p.current.tb=!0,_e=Pt,ve=-ve,gt.points=[Po(ot,0),Po(Ge,0)]):p.current.tb=!1}var zr=mt(Ue),mr=ot[1]===Ge[1];if(zr&&ot[1]==="l"&&(yn>ue.right||p.current.rl)){var ln=qe;mr?ln-=K-te:ln=Me.x-Se.x-Fe;var $o=tn(ln,_e),_o=tn(ln,_e,J);$o>Be||$o===Be&&(!he||_o>=ye)?(p.current.rl=!0,qe=ln,Fe=-Fe,gt.points=[Po(ot,1),Po(Ge,1)]):p.current.rl=!1}if(zr&&ot[1]==="r"&&(WtBe||Fr===Be&&(!he||qr>=ye)?(p.current.lr=!0,qe=Qn,Fe=-Fe,gt.points=[Po(ot,1),Po(Ge,1)]):p.current.lr=!1}yl();var pr=Nt===!0?0:Nt;typeof pr=="number"&&(WtJ.right&&(qe-=yn-J.right-Fe,$.x>J.right-pr&&(qe+=$.x-J.right+pr)));var Yr=_t===!0?0:_t;typeof Yr=="number"&&(ltJ.bottom&&(_e-=Dt-J.bottom-ve,$.y>J.bottom-Yr&&(_e+=$.y-J.bottom+Yr)));var Ro=T.x+qe,Oo=Ro+K,Zn=T.y+_e,Io=Zn+X,He=$.x,ke=He+te,Ht=$.y,Jt=Ht+q,Rt=Math.max(Ro,He),en=Math.min(Oo,ke),wn=(Rt+en)/2,Qr=wn-Ro,Jn=Math.max(Zn,Ht),gr=Math.min(Io,Jt),er=(Jn+gr)/2,qi=er-Zn;a==null||a(t,gt);var cc=fe.right-T.x-(qe+T.width),Cd=fe.bottom-T.y-(_e+T.height);u({ready:!0,offsetX:qe/ge,offsetY:_e/Pe,offsetR:cc/ge,offsetB:Cd/Pe,arrowX:Qr/ge,arrowY:qi/Pe,scaleX:ge,scaleY:Pe,align:gt})}}),b=function(){d.current+=1;var y=d.current;Promise.resolve().then(function(){d.current===y&&v()})},g=function(){u(function(y){return G(G({},y),{},{ready:!1})})};return xt(g,[r]),xt(function(){e||g()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,b]}function B6(e,t,n,r,o){xt(function(){if(e&&t&&n){let h=function(){r(),o()};var d=h,i=t,a=n,l=Up(i),s=Up(a),c=lc(a),u=new Set([c].concat(be(l),be(s)));return u.forEach(function(p){p.addEventListener("scroll",h,{passive:!0})}),c.addEventListener("resize",h,{passive:!0}),r(),function(){u.forEach(function(p){p.removeEventListener("scroll",h),c.removeEventListener("resize",h)})}}},[e,t,n])}function V6(e,t,n,r,o,i,a,l){var s=f.useRef(e),c=f.useRef(!1);s.current!==e&&(c.current=!0,s.current=e),f.useEffect(function(){var u=It(function(){c.current=!1});return function(){It.cancel(u)}},[e]),f.useEffect(function(){if(t&&r&&(!o||i)){var u=function(){var E=!1,x=function(P){var z=P.target;E=a(z)},R=function(P){var z=P.target;!c.current&&s.current&&!E&&!a(z)&&l(!1)};return[x,R]},d=u(),h=Q(d,2),p=h[0],w=h[1],v=u(),b=Q(v,2),g=b[0],m=b[1],y=lc(r);y.addEventListener("mousedown",p,!0),y.addEventListener("click",w,!0),y.addEventListener("contextmenu",w,!0);var S=hf(n);return S&&(S.addEventListener("mousedown",g,!0),S.addEventListener("click",m,!0),S.addEventListener("contextmenu",m,!0)),function(){y.removeEventListener("mousedown",p,!0),y.removeEventListener("click",w,!0),y.removeEventListener("contextmenu",w,!0),S&&(S.removeEventListener("mousedown",g,!0),S.removeEventListener("click",m,!0),S.removeEventListener("contextmenu",m,!0))}}},[t,n,r,o,i])}var W6=["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 U6(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:N2,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,c=n.showAction,u=n.hideAction,d=n.popupVisible,h=n.defaultPopupVisible,p=n.onPopupVisibleChange,w=n.afterPopupVisibleChange,v=n.mouseEnterDelay,b=n.mouseLeaveDelay,g=b===void 0?.1:b,m=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,z=n.popup,L=n.popupClassName,A=n.popupStyle,_=n.popupPlacement,F=n.builtinPlacements,O=F===void 0?{}:F,I=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=pt(n,W6),ae=N||P||!1,pe=f.useState(!1),he=Q(pe,2),oe=he[0],J=he[1];xt(function(){J(U2())},[]);var re=f.useRef({}),ue=f.useContext(Sw),fe=f.useMemo(function(){return{registerSubPopup:function(Le,zt){re.current[Le]=zt,ue==null||ue.registerSubPopup(Le,zt)}}},[ue]),ge=FF(),Pe=f.useState(null),Ie=Q(Pe,2),Ee=Ie[0],tt=Ie[1],Qe=Hn(function(Re){af(Re)&&Ee!==Re&&tt(Re),ue==null||ue.registerSubPopup(ge,Re)}),Fe=f.useState(null),ve=Q(Fe,2),de=ve[0],je=ve[1],Ze=f.useRef(null),yt=Hn(function(Re){af(Re)&&de!==Re&&(je(Re),Ze.current=Re)}),nt=f.Children.only(a),We=(nt==null?void 0:nt.props)||{},rt={},wt=Hn(function(Re){var Le,zt,Gt=de;return(Gt==null?void 0:Gt.contains(Re))||((Le=hf(Gt))===null||Le===void 0?void 0:Le.host)===Re||Re===Gt||(Ee==null?void 0:Ee.contains(Re))||((zt=hf(Ee))===null||zt===void 0?void 0:zt.host)===Re||Re===Ee||Object.values(re.current).some(function(Ft){return(Ft==null?void 0:Ft.contains(Re))||Re===Ft})}),Ge=xw(i,U,K,X),ot=xw(i,Y,te,q),Mt=f.useState(h||!1),Ve=Q(Mt,2),gt=Ve[0],qe=Ve[1],_e=d??gt,Be=Hn(function(Re){d===void 0&&qe(Re)});xt(function(){qe(d||!1)},[d]);var ye=f.useRef(_e);ye.current=_e;var Me=f.useRef([]);Me.current=[];var ie=Hn(function(Re){var Le;Be(Re),((Le=Me.current[Me.current.length-1])!==null&&Le!==void 0?Le:_e)!==Re&&(Me.current.push(Re),p==null||p(Re))}),Ce=f.useRef(),Se=function(){clearTimeout(Ce.current)},we=function(Le){var zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Se(),zt===0?ie(Le):Ce.current=setTimeout(function(){ie(Le)},zt*1e3)};f.useEffect(function(){return Se},[]);var Ue=f.useState(!1),Ye=Q(Ue,2),Nt=Ye[0],_t=Ye[1];xt(function(Re){(!Re||_e)&&_t(!0)},[_e]);var mt=f.useState(null),lt=Q(mt,2),Dt=lt[0],Wt=lt[1],yn=f.useState([0,0]),Ne=Q(yn,2),Oe=Ne[0],Te=Ne[1],st=function(Le){Te([Le.clientX,Le.clientY])},jt=H6(_e,Ee,D?Oe:de,_,O,I,V),Pt=Q(jt,11),_n=Pt[0],Xr=Pt[1],zr=Pt[2],mr=Pt[3],ln=Pt[4],$o=Pt[5],_o=Pt[6],Qn=Pt[7],Fr=Pt[8],qr=Pt[9],pr=Pt[10],Yr=L6(oe,s,c,u),Ro=Q(Yr,2),Oo=Ro[0],Zn=Ro[1],Io=Oo.has("click"),He=Zn.has("click")||Zn.has("contextMenu"),ke=Hn(function(){Nt||pr()}),Ht=function(){ye.current&&D&&He&&we(!1)};B6(_e,de,Ee,ke,Ht),xt(function(){ke()},[Oe,_]),xt(function(){_e&&!(O!=null&&O[_])&&ke()},[JSON.stringify(I)]);var Jt=f.useMemo(function(){var Re=j6(O,i,qr,D);return me(Re,T==null?void 0:T(qr))},[qr,T,O,i,D]);f.useImperativeHandle(r,function(){return{nativeElement:Ze.current,forceAlign:ke}});var Rt=f.useState(0),en=Q(Rt,2),wn=en[0],Qr=en[1],Jn=f.useState(0),gr=Q(Jn,2),er=gr[0],qi=gr[1],cc=function(){if(M&&de){var Le=de.getBoundingClientRect();Qr(Le.width),qi(Le.height)}},Cd=function(){cc(),ke()},Jv=function(Le){_t(!1),pr(),w==null||w(Le)},e0=function(){return new Promise(function(Le){cc(),Wt(function(){return Le})})};xt(function(){Dt&&(pr(),Dt(),Wt(null))},[Dt]);function tn(Re,Le,zt,Gt){rt[Re]=function(Ft){var fc;Gt==null||Gt(Ft),we(Le,zt);for(var Od=arguments.length,t0=new Array(Od>1?Od-1:0),dc=1;dc1?zt-1:0),Ft=1;Ft1?zt-1:0),Ft=1;Ft1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=n$(n,!1),a=i.label,l=i.value,s=i.options,c=i.groupLabel;function u(d,h){d.forEach(function(p){if(h||!(s in p)){var w=p[l];o.push({key:Rw(p,o.length),groupOption:h,data:p,label:p[a],value:w})}else{var v=p[c];v===void 0&&r&&(v=p.label),o.push({key:Rw(p,o.length),group:!0,data:p,label:v}),u(p[s],!0)}})}return u(e,!1),o}function Kp(e){var t=G({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Tn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function Y6(e,t){if(!t||!t.length)return null;var n=!1;function r(i,a){var l=OE(a),s=l[0],c=l.slice(1);if(!s)return[i];var u=i.split(s);return n=n||u.length>1,u.reduce(function(d,h){return[].concat(be(d),be(r(h,c)))},[]).filter(function(d){return d})}var o=r(e,t);return n?o:null}var Q6=["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"],Z6=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Gp(e){return e==="tags"||e==="multiple"}var J6=f.forwardRef(function(e,t){var n,r,o=e.id,i=e.prefixCls,a=e.className,l=e.showSearch,s=e.tagRender,c=e.direction,u=e.omitDomProps,d=e.displayValues,h=e.onDisplayValuesChange,p=e.emptyOptions,w=e.notFoundContent,v=w===void 0?"Not Found":w,b=e.onClear,g=e.mode,m=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,z=e.activeDescendantId,L=e.searchValue,A=e.autoClearSearchValue,_=e.onSearch,F=e.onSearchSplit,O=e.tokenSeparators,I=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,he=e.onMouseDown,oe=pt(e,Q6),J=Gp(g),re=(l!==void 0?l:J)||g==="combobox",ue=G({},oe);Z6.forEach(function(He){delete ue[He]}),u==null||u.forEach(function(He){delete ue[He]});var fe=f.useState(!1),ge=Q(fe,2),Pe=ge[0],Ie=ge[1];f.useEffect(function(){Ie(U2())},[]);var Ee=f.useRef(null),tt=f.useRef(null),Qe=f.useRef(null),Fe=f.useRef(null),ve=f.useRef(null),de=f.useRef(!1),je=c6(),Ze=Q(je,3),yt=Ze[0],nt=Ze[1],We=Ze[2];f.useImperativeHandle(t,function(){var He,ke;return{focus:(He=Fe.current)===null||He===void 0?void 0:He.focus,blur:(ke=Fe.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(g!=="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,g,d]),wt=g==="combobox"&&typeof S=="function"&&S()||null,Ge=typeof C=="function"&&C(),ot=id(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=Kr(!1,{defaultValue:x,value:E}),Be=Q(_e,2),ye=Be[0],Me=Be[1],ie=gt?ye:!1,Ce=!v&&p;(m||Ce&&ie&&g==="combobox")&&(ie=!1);var Se=Ce?!1:ie,we=f.useCallback(function(He){var ke=He!==void 0?He:!ie;m||(Me(ke),ie!==ke&&(R==null||R(ke)))},[m,ie,Me,R]),Ue=f.useMemo(function(){return(O||[]).some(function(He){return[` +`,`\r +`].includes(He)})},[O]),Ye=function(ke,Ht,Jt){var Rt=!0,en=ke;P==null||P(null);var wn=Jt?null:Y6(ke,O);return g!=="combobox"&&wn&&(en="",F==null||F(wn),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&&g!=="combobox"&&Ye("",!1,!1)},[ie]),f.useEffect(function(){ye&&m&&Me(!1),m&&!de.current&&nt(!1)},[m]);var _t=G2(),mt=Q(_t,2),lt=mt[0],Dt=mt[1],Wt=function(ke){var Ht=lt(),Jt=ke.which;if(Jt===ce.ENTER&&(g!=="combobox"&&ke.preventDefault(),ie||we(!0)),Dt(!!rt),Jt===ce.BACKSPACE&&!Ht&&J&&!rt&&d.length){for(var Rt=be(d),en=null,wn=Rt.length-1;wn>=0;wn-=1){var Qr=Rt[wn];if(!Qr.disabled){Rt.splice(wn,1),en=Qr;break}}en&&h(Rt,{type:"remove",values:[en]})}for(var Jn=arguments.length,gr=new Array(Jn>1?Jn-1:0),er=1;er1?Ht-1:0),Rt=1;Rt1?wn-1:0),Jn=1;Jn0,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:g,pageY:C,startTop:N});W.current={top:B,dragging:g,pageY:C,startTop:N};var U=function(ee){m(!0),E(Ow(ee,u)),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(g){var ne,ee=function(pe){var he=W.current,oe=he.dragging,J=he.pageY,re=he.startTop;if(It.cancel(ne),oe){var ue=Ow(pe,u)-J,fe=re;!z&&u?fe-=ue:fe+=ue;var ge=Y.current,Pe=X.current,Ie=Pe?fe/Pe:0,Ee=Math.ceil(Ie*ge);Ee=Math.max(Ee,0),Ee=Math.min(Ee,ge),ne=It(function(){c(Ee,u)})}},Z=function(){m(!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),It.cancel(ne)}}},[g]),f.useEffect(function(){M()},[i]),f.useImperativeHandle(t,function(){return{delayHidden:M}});var K="".concat(r,"-scrollbar"),q={position:"absolute",visibility:O&&D?null:"hidden"},te={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(q.height=8,q.left=0,q.right=0,q.bottom=0,te.height="100%",te.width=d,z?te.left=B:te.right=B):(q.width=8,q.top=0,q.bottom=0,z?q.right=0:q.left=0,te.width="100%",te.height=d,te.top=B),f.createElement("div",{ref:L,className:me(K,(n={},H(n,"".concat(K,"-horizontal"),u),H(n,"".concat(K,"-vertical"),!u),H(n,"".concat(K,"-visible"),O),n)),style:G(G({},q),p),onMouseDown:V,onMouseMove:M},f.createElement("div",{ref:A,className:me("".concat(K,"-thumb"),H({},"".concat(K,"-thumb-moving"),g)),style:G(G({},te),w),onMouseDown:U}))});function eD(e){var t=e.children,n=e.setRef,r=f.useCallback(function(o){n(o)},[]);return f.cloneElement(t,{ref:r})}function tD(e,t,n,r,o,i,a){var l=a.getKey;return e.slice(t,n+1).map(function(s,c){var u=t+c,d=i(s,u,{style:{width:r}}),h=l(s);return f.createElement(eD,{key:h,setRef:function(w){return o(s,w)}},d)})}var nD=function(){function e(){kn(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return zn(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 rD(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 nD),c=f.useRef();function u(){It.cancel(c.current)}function d(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;u();var w=function(){l.current.forEach(function(b,g){if(b&&b.offsetParent){var m=ns(b),y=m.offsetHeight;s.current.get(g)!==y&&s.current.set(g,m.offsetHeight)}}),a(function(b){return b+1})};p?w():c.current=It(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 u},[]),[h,d,s.current,i]}var oD=10;function iD(e,t,n,r,o,i,a,l){var s=f.useRef(),c=f.useState(null),u=Q(c,2),d=u[0],h=u[1];return xt(function(){if(d&&d.times=0;_-=1){var F=o(t[_]),O=n.get(F);if(O===void 0){m=!0;break}if(A-=O,A<=0)break}switch(C){case"top":S=x-b;break;case"bottom":S=R-g+b;break;default:{var I=e.current.scrollTop,$=I+g;x$&&(y="bottom")}}S!==null&&a(S),S!==d.lastTop&&(m=!0)}m&&h(G(G({},d),{},{times:d.times+1,targetAlign:y,lastTop:S}))}},[d,e.current]),function(p){if(p==null){l();return}if(It.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(m){return o(m)===p.key});var b=p.offset,g=b===void 0?0:b;h({times:0,index:w,offset:g,originAlign:v})}}}function aD(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 o$=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 sD(e,t,n,r,o){var i=f.useRef(0),a=f.useRef(null),l=f.useRef(null),s=f.useRef(!1),c=o$(t,n);function u(b,g){It.cancel(a.current),i.current+=g,l.current=g,!c(g)&&(Mw||b.preventDefault(),a.current=It(function(){var m=s.current?10:1;o(i.current*m),i.current=0}))}function d(b,g){o(g,!0),Mw||b.preventDefault()}var h=f.useRef(null),p=f.useRef(null);function w(b){if(e){It.cancel(p.current),p.current=It(function(){h.current=null},2);var g=b.deltaX,m=b.deltaY,y=b.shiftKey,S=g,C=m;(h.current==="sx"||!h.current&&y&&m&&!g)&&(S=m,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"?u(b,C):d(b,S)}}function v(b){e&&(s.current=b.detail===l.current)}return[w,v]}var cD=14/15;function uD(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*=cD,(!n(w,!0)||Math.abs(w)<=.1)&&clearInterval(a.current)},16)}},c=function(){r.current=!1,l()},u=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",c))};l=function(){i.current&&(i.current.removeEventListener("touchmove",s),i.current.removeEventListener("touchend",c))},xt(function(){return e&&t.current.addEventListener("touchstart",u),function(){var d;(d=t.current)===null||d===void 0||d.removeEventListener("touchstart",u),l(),clearInterval(a.current)}},[e])}var fD=20;function Nw(){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,fD),n=Math.min(n,e/2),Math.floor(n)}function dD(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(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,h=a.get(u),p=a.get(d);if(h===void 0||p===void 0)for(var w=e.length,v=l.length;vi||!!v),z=w==="rtl",L=me(r,H({},"".concat(r,"-rtl"),z),o),A=u||mD,_=f.useRef(),F=f.useRef(),O=f.useState(0),I=Q(O,2),$=I[0],M=I[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(Oe){var Te;typeof Ne=="function"?Te=Ne(Oe):Te=Ne;var st=ot(Te);return _.current.scrollTop=st,st})}var ee=f.useRef({start:0,end:A.length}),Z=f.useRef(),ae=lD(A,q),pe=Q(ae,1),he=pe[0];Z.current=he;var oe=rD(q,null,null),J=Q(oe,4),re=J[0],ue=J[1],fe=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=F.current)===null||Ne===void 0?void 0:Ne.offsetHeight)||0,start:0,end:A.length-1,offset:void 0}}for(var Oe=0,Te,st,jt,Pt=A.length,_n=0;_n=$&&Te===void 0&&(Te=_n,st=Oe),ln>$+i&&jt===void 0&&(jt=_n),Oe=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:Oe,start:Te,end:jt,offset:st}},[P,N,$,A,ge,i]),Ie=Pe.scrollHeight,Ee=Pe.start,tt=Pe.end,Qe=Pe.offset;ee.current.start=Ee,ee.current.end=tt;var Fe=f.useState({width:0,height:i}),ve=Q(Fe,2),de=ve[0],je=ve[1],Ze=function(Oe){je({width:Oe.width||Oe.offsetWidth,height:Oe.height||Oe.offsetHeight})},yt=f.useRef(),nt=f.useRef(),We=f.useMemo(function(){return Nw(de.width,v)},[de.width,v]),rt=f.useMemo(function(){return Nw(de.height,Ie)},[de.height,Ie]),wt=Ie-i,Ge=f.useRef(wt);Ge.current=wt;function ot(Ne){var Oe=Ne;return Number.isNaN(Ge.current)||(Oe=Math.min(Oe,Ge.current)),Oe=Math.max(Oe,0),Oe}var Mt=$<=0,Ve=$>=wt,gt=o$(Mt,Ve),qe=function(){return{x:z?-D:D,y:$}},_e=f.useRef(qe()),Be=Hn(function(){if(y){var Ne=qe();(_e.current.x!==Ne.x||_e.current.y!==Ne.y)&&(y(Ne),_e.current=Ne)}});function ye(Ne,Oe){var Te=Ne;Oe?(po.flushSync(function(){B(Te)}),Be()):ne(Te)}function Me(Ne){var Oe=Ne.currentTarget.scrollTop;Oe!==$&&ne(Oe),m==null||m(Ne),Be()}var ie=function(Oe){var Te=Oe,st=v-de.width;return Te=Math.max(Te,0),Te=Math.min(Te,st),Te},Ce=Hn(function(Ne,Oe){Oe?(po.flushSync(function(){B(function(Te){var st=Te+(z?-Ne:Ne);return ie(st)})}),Be()):ne(function(Te){var st=Te+Ne;return st})}),Se=sD(N,Mt,Ve,!!v,Ce),we=Q(Se,2),Ue=we[0],Ye=we[1];uD(N,_,function(Ne,Oe){return gt(Ne,Oe)?!1:(Ue({preventDefault:function(){},deltaY:Ne}),!0)}),xt(function(){function Ne(Te){N&&Te.preventDefault()}var Oe=_.current;return Oe.addEventListener("wheel",Ue),Oe.addEventListener("DOMMouseScroll",Ye),Oe.addEventListener("MozMousePixelScroll",Ne),function(){Oe.removeEventListener("wheel",Ue),Oe.removeEventListener("DOMMouseScroll",Ye),Oe.removeEventListener("MozMousePixelScroll",Ne)}},[N]),xt(function(){v&&B(function(Ne){return ie(Ne)})},[de.width,v]);var Nt=function(){var Oe,Te;(Oe=yt.current)===null||Oe===void 0||Oe.delayHidden(),(Te=nt.current)===null||Te===void 0||Te.delayHidden()},_t=iD(_,A,fe,a,q,function(){return ue(!0)},ne,Nt);f.useImperativeHandle(t,function(){return{getScrollInfo:qe,scrollTo:function(Oe){function Te(st){return st&&Ke(st)==="object"&&("left"in st||"top"in st)}Te(Oe)?(Oe.left!==void 0&&B(ie(Oe.left)),_t(Oe.top)):_t(Oe)}}}),xt(function(){if(S){var Ne=A.slice(Ee,tt+1);S(Ne,A)}},[Ee,tt,A]);var mt=dD(A,q,fe,a),lt=E==null?void 0:E({start:Ee,end:tt,virtual:P,offsetX:D,offsetY:Qe,rtl:z,getSize:mt}),Dt=tD(A,Ee,tt,v,re,d,te),Wt=null;i&&(Wt=G(H({},s?"height":"maxHeight",i),pD),N&&(Wt.overflowY="hidden",v&&(Wt.overflowX="hidden"),U&&(Wt.pointerEvents="none")));var yn={};return z&&(yn.dir="rtl"),f.createElement("div",De({style:G(G({},c),{},{position:"relative"}),className:L},yn,R),f.createElement(ai,{onResize:Ze},f.createElement(g,{className:"".concat(r,"-holder"),style:Wt,ref:_,onScroll:Me,onMouseEnter:Nt},f.createElement(r$,{prefixCls:r,height:Ie,offsetX:D,offsetY:Qe,scrollWidth:v,onInnerResize:ue,ref:F,innerProps:C,rtl:z,extra:lt},Dt))),P&&Ie>i&&f.createElement(Iw,{ref:yt,prefixCls:r,scrollOffset:$,scrollRange:Ie,rtl:z,onScroll:ye,onStartMove:X,onStopMove:K,spinSize:rt,containerSize:de.height,style:x==null?void 0:x.verticalScrollBar,thumbStyle:x==null?void 0:x.verticalScrollBarThumb}),P&&v&&f.createElement(Iw,{ref:nt,prefixCls:r,scrollOffset:D,scrollRange:v,rtl:z,onScroll:ye,onStartMove:X,onStopMove:K,spinSize:We,containerSize:de.width,horizontal:!0,style:x==null?void 0:x.horizontalScrollBar,thumbStyle:x==null?void 0:x.horizontalScrollBarThumb}))}var i$=f.forwardRef(gD);i$.displayName="List";var a$=f.createContext(null);function vD(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var yD=["disabled","title","children","style","className"];function Pw(e){return typeof e=="string"||typeof e=="number"}var wD=function(t,n){var r=s6(),o=r.prefixCls,i=r.id,a=r.open,l=r.multiple,s=r.mode,c=r.searchValue,u=r.toggleOpen,d=r.notFoundContent,h=r.onPopupScroll,p=f.useContext(a$),w=p.flattenOptions,v=p.onActiveValue,b=p.defaultActiveFirstOption,g=p.onSelect,m=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"),z=od(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)},F=function(K){for(var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,te=z.length,ne=0;ne1&&arguments[1]!==void 0?arguments[1]:!1;M(K);var te={source:q?"keyboard":"mouse"},ne=z[K];if(!ne){v(null,-1,te);return}v(ne.value,K,te)};f.useEffect(function(){T(b!==!1?F(0):-1)},[z.length,c]);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=z.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,c]);var D=function(K){K!==void 0&&g(K,{selected:!y.has(K)}),l||u(!1)};if(f.useImperativeHandle(n,function(){return{onKeyDown:function(K){var q=K.which,te=K.ctrlKey;switch(q){case ce.N:case ce.P:case ce.UP:case ce.DOWN:{var ne=0;if(q===ce.UP?ne=-1:q===ce.DOWN?ne=1:vD()&&te&&(q===ce.N?ne=1:q===ce.P&&(ne=-1)),ne!==0){var ee=F($+ne,ne);_(ee),T(ee,!0)}break}case ce.ENTER:{var Z=z[$];Z&&!Z.data.disabled?D(Z.value):D(void 0),a&&K.preventDefault();break}case ce.ESC:u(!1),a&&K.stopPropagation()}},onKeyUp:function(){},scrollTo:function(K){_(K)}}}),z.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=z[K];if(!q)return null;var te=q.data||{},ne=te.value,ee=q.group,Z=mf(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(i$,{itemKey:"key",ref:L,data:z,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 he,oe=(he=ee.title)!==null&&he!==void 0?he:Pw(Z)?Z.toString():void 0;return f.createElement("div",{className:me(P,"".concat(P,"-group")),title:oe},Z!==void 0?Z:pe)}var J=ee.disabled,re=ee.title;ee.children;var ue=ee.style,fe=ee.className,ge=pt(ee,yD),Pe=Ui(ge,B),Ie=k(ae),Ee="".concat(P,"-option"),tt=me(P,Ee,fe,(q={},H(q,"".concat(Ee,"-grouped"),ne),H(q,"".concat(Ee,"-active"),$===K&&!J),H(q,"".concat(Ee,"-disabled"),J),H(q,"".concat(Ee,"-selected"),Ie),q)),Qe=V(X),Fe=!m||typeof m=="function"||Ie,ve=typeof Qe=="number"?Qe:Qe||ae,de=Pw(ve)?ve.toString():void 0;return re!==void 0&&(de=re),f.createElement("div",De({},mf(Pe),C?{}:W(X,K),{"aria-selected":Ie,className:tt,title:de,onMouseMove:function(){$===K||J||T(K)},onClick:function(){J||D(ae)},style:ue}),f.createElement("div",{className:"".concat(Ee,"-content")},typeof N=="function"?N(X,{index:K}):ve),f.isValidElement(m)||Ie,Fe&&f.createElement(yd,{className:"".concat(P,"-option-state"),customizeIcon:m,customizeIconProps:{value:ae,disabled:J,isSelected:Ie}},Ie?"✓":null))}))},l$=f.forwardRef(wD);l$.displayName="OptionList";const SD=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}),c=new Map,u=new Map;return s.forEach(function(d){c.set(d.value,d),u.set(d.value,t.get(d.value)||l.get(d.value))}),n.current.values=c,n.current.options=u,s},[e,t]),o=f.useCallback(function(i){return t.get(i)||n.current.options.get(i)},[t]);return[r,o]};function Fh(e,t){return Q2(e).join("").toUpperCase().includes(t)}const bD=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=[],c=typeof r=="function",u=n.toUpperCase(),d=c?r:function(p,w){return o?Fh(w[o],u):w[i]?Fh(w[a!=="children"?a:"label"],u):Fh(w[l],u)},h=c?function(p){return Kp(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 Tw=0,xD=xn();function CD(){var e;return xD?(e=Tw,Tw+=1):e="TEST_OR_SSR",e}function ED(e){var t=f.useState(),n=Q(t,2),r=n[0],o=n[1];return f.useEffect(function(){o("rc_select_".concat(CD()))},[]),e||r}var $D=["children","value"],_D=["children"];function RD(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value,a=pt(r,$D);return G({key:n,value:i!==void 0?i:n,children:o},a)}function s$(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Qa(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,c=pt(l,_D);return t||!i?RD(n):G(G({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},c),{},{options:s$(s)})}).filter(function(n){return n})}function OD(e,t,n,r,o){return f.useMemo(function(){var i=e,a=!e;a&&(i=s$(t));var l=new Map,s=new Map,c=function(h,p,w){w&&typeof w=="string"&&h.set(p[w],p)};function u(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(Ce),a&&r==="combobox"&&ie!==null&&Ue==="keyboard"&&We(String(ie))},[a,r]),gt=function(Ce,Se,we){var Ue=function(){var Oe,Te=ge(Ce);return[$?{label:Te==null?void 0:Te[W.label],value:Ce,key:(Oe=Te==null?void 0:Te.key)!==null&&Oe!==void 0?Oe:Ce}:Ce,Kp(Te)]};if(Se&&p){var Ye=Ue(),Nt=Q(Ye,2),_t=Nt[0],mt=Nt[1];p(_t,mt)}else if(!Se&&w&&we!=="clear"){var lt=Ue(),Dt=Q(lt,2),Wt=Dt[0],yn=Dt[1];w(Wt,yn)}},qe=Aw(function(ie,Ce){var Se,we=D?Ce.selected:!0;we?Se=D?[].concat(be(fe),[ie]):[ie]:Se=fe.filter(function(Ue){return Ue.value!==ie}),je(Se),gt(ie,we),r==="combobox"?We(""):(!Gp||h)&&(K(""),We(""))}),_e=function(Ce,Se){je(Ce);var we=Se.type,Ue=Se.values;(we==="remove"||we==="clear")&&Ue.forEach(function(Ye){gt(Ye.value,!1,we)})},Be=function(Ce,Se){if(K(Ce),We(null),Se.source==="submit"){var we=(Ce||"").trim();if(we){var Ue=Array.from(new Set([].concat(be(Ie),[we])));je(Ue),gt(we,!0),K("")}return}Se.source!=="blur"&&(r==="combobox"&&je(Ce),u==null||u(Ce))},ye=function(Ce){var Se=Ce;r!=="tags"&&(Se=Ce.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(Ie),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:de,onActiveValue:Ve,defaultActiveFirstOption:Mt,onSelect:qe,menuItemSelectedIcon:N,rawValues:Ie,fieldNames:W,virtual:ie,direction:z,listHeight:A,listItemHeight:F,childrenAsData:B,optionRender:E})},[q,de,Ve,Mt,qe,N,Ie,W,P,b,A,F,B,E]);return f.createElement(a$.Provider,{value:Me},f.createElement(J6,De({},T,{id:k,prefixCls:i,ref:t,omitDomProps:MD,mode:r,displayValues:Pe,onDisplayValuesChange:_e,direction:z,searchValue:X,onSearch:Be,autoClearSearchValue:h,onSearchSplit:ye,dropdownMatchSelectWidth:b,OptionList:l$,emptyOptions:!de.length,activeValue:nt,activeDescendantId:"".concat(k,"_list_").concat(Ge)})))}),Uv=PD;Uv.Option=Wv;Uv.OptGroup=Vv;function Da(e,t,n){return me({[`${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 Kv=(e,t)=>t||e,TD=()=>{const[,e]=An(),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"}))))},AD=TD,kD=()=>{const[,e]=An(),{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}))))},zD=kD,FD=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}}}}},LD=Co("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[FD(o)]});var DD=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=c$,description:i,children:a,imageStyle:l,style:s}=e,c=DD(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:u,direction:d,empty:h}=f.useContext($t),p=u("empty",r),[w,v,b]=LD(p),[g]=PE("Empty"),m=typeof i<"u"?i:g==null?void 0:g.description,y=typeof m=="string"?m:"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:me(v,b,p,h==null?void 0:h.className,{[`${p}-normal`]:o===u$,[`${p}-rtl`]:d==="rtl"},t,n),style:Object.assign(Object.assign({},h==null?void 0:h.style),s)},c),f.createElement("div",{className:`${p}-image`,style:l},S),m&&f.createElement("div",{className:`${p}-description`},m),a&&f.createElement("div",{className:`${p}-footer`},a)))};Gv.PRESENTED_IMAGE_DEFAULT=c$;Gv.PRESENTED_IMAGE_SIMPLE=u$;const Fl=Gv,jD=e=>{const{componentName:t}=e,{getPrefixCls:n}=f.useContext($t),r=n("empty");switch(t){case"Table":case"List":return j.createElement(Fl,{image:Fl.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return j.createElement(Fl,{image:Fl.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return j.createElement(Fl,null)}},HD=jD,BD=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 VD(e,t){return e||BD(t)}const WD=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"}},UD=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({},xo(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:H2},[` + ${o}${l}topLeft, + ${i}${l}topLeft, + ${o}${l}topRight, + ${i}${l}topRight + `]:{animationName:V2},[`${a}${l}bottomLeft`]:{animationName:B2},[` + ${a}${l}topLeft, + ${a}${l}topRight + `]:{animationName:W2},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},WD(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"},Cp),"&-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"}})},pw(e,"slide-up"),pw(e,"slide-down"),mw(e,"move-up"),mw(e,"move-down")]},la=2,KD=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()};function Lh(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,a=KD(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(la).mul(2).equal(),paddingBlock:e.calc(a).sub(la).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(la)} 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:la,marginBottom:la,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(la).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({},Rv()),{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 GD=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[Lh(e),Lh(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Lh(r,"lg")]};function Dh(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({},xo(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 XD(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Dh(e),Dh(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()}}}},Dh(Et(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const qD=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"}}}},jh=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,c=n?{[`${r}-selector`]:{borderColor:a}}:{};return{[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${i}-pagination-size-changer)`]:Object.assign(Object.assign({},c),{[`&:hover ${r}-selector`]:{borderColor:o},[`${r}-focused& ${r}-selector`]:{borderColor:a,boxShadow:`0 0 0 ${Ae(s)} ${l}`,outline:0}})}}},YD=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"}}}},QD=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},xo(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},qD(e)),YD(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Cp),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Cp),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},Rv()),{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()}}}},ZD=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%"}}},QD(e),XD(e),GD(e),UD(e),{[`${t}-rtl`]:{direction:"rtl"}},jh(t,Et(e,{borderHoverColor:e.colorPrimaryHover,borderActiveColor:e.colorPrimary,outlineColor:e.controlOutline})),jh(`${t}-status-error`,Et(e,{borderHoverColor:e.colorErrorHover,borderActiveColor:e.colorError,outlineColor:e.colorErrorOutline}),!0),jh(`${t}-status-warning`,Et(e,{borderHoverColor:e.colorWarningHover,borderActiveColor:e.colorWarning,outlineColor:e.colorWarningOutline}),!0),Av(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},JD=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlPaddingHorizontal:o,zIndexPopupBase:i,colorText:a,fontWeightStrong:l,controlItemBgActive:s,controlItemBgHover:c,colorBgContainer:u,colorFillSecondary:d,controlHeightLG:h,controlHeightSM:p,colorBgContainerDisabled:w,colorTextDisabled:v}=e;return{zIndexPopup:i+50,optionSelectedColor:a,optionSelectedFontWeight:l,optionSelectedBg:s,optionActiveBg:c,optionPadding:`${(r-t*n)/2}px ${o}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:u,clearBg:u,singleItemHeightLG:h,multipleItemBg:d,multipleItemBorderColor:"transparent",multipleItemHeight:p,multipleItemHeightLG:r,multipleSelectorBgDisabled:w,multipleItemColorDisabled:v,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25)}},e8=Co("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[ZD(r)]},JD,{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(kr,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(kr,De({},t,{ref:n,icon:a8}))};const s8=f.forwardRef(l8);var c8={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 u8=c8;var f8=function(t,n){return f.createElement(kr,De({},t,{ref:n,icon:u8}))};const f$=f.forwardRef(f8);function d8(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:l,prefixCls:s,showSuffixIcon:c,feedbackIcon:u,showArrow:d,componentName:h}=e;const p=n??f.createElement(hd,null),w=m=>t===null&&!l&&!d?null:f.createElement(f.Fragment,null,c!==!1&&m,l&&u);let v=null;if(t!==void 0)v=w(t);else if(i)v=w(f.createElement(pd,{spin:!0}));else{const m=`${s}-suffix`;v=y=>{let{open:S,showSearch:C}=y;return w(S&&C?f.createElement(f$,{className:m}):f.createElement(s8,{className:m}))}}let b=null;r!==void 0?b=r:a?b=f.createElement(o8,null):b=null;let g=null;return o!==void 0?g=o:g=f.createElement(az,null),{clearIcon:p,suffixIcon:v,itemIcon:b,removeIcon:g}}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:c,dropdownClassName:u,listHeight:d=256,placement:h,listItemHeight:p,size:w,disabled:v,notFoundContent:b,status:g,builtinPlacements:m,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:z,direction:L,virtual:A,popupMatchSelectWidth:_,popupOverflow:F,select:O}=f.useContext($t),[,I]=An(),$=p??(I==null?void 0:I.controlHeight),M=P("select",o),T=P(),k=C??L,{compactSize:D,compactItemClassnames:B}=vd(M,k),V=pl(M),[W,U,Y]=e8(M,V),X=f.useMemo(()=>{const{mode:de}=R;if(de!=="combobox")return de===d$?"combobox":de},[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(Tr),pe=Kv(ne,g);let he;b!==void 0?he=b:X==="combobox"?he=null:he=(z==null?void 0:z("Select"))||f.createElement(HD,{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"})),fe=x===!0?{clearIcon:ue}:x,ge=Ui(R,["suffixIcon","itemIcon"]),Pe=me(c||u,{[`${M}-dropdown-${k}`]:k==="rtl"},l,Y,V,U),Ie=Xi(de=>{var je;return(je=w??D)!==null&&je!==void 0?je:de}),Ee=f.useContext(Ki),tt=v??Ee,Qe=me({[`${M}-lg`]:Ie==="large",[`${M}-sm`]:Ie==="small",[`${M}-rtl`]:k==="rtl",[`${M}-borderless`]:!i,[`${M}-in-form-item`]:Z},Da(M,pe,ee),B,O==null?void 0:O.className,a,l,Y,V,U),Fe=f.useMemo(()=>h!==void 0?h:k==="rtl"?"bottomRight":"bottomLeft",[h,k]),[ve]=y2("SelectLike",(r=R.dropdownStyle)===null||r===void 0?void 0:r.zIndex);return W(f.createElement(Uv,Object.assign({ref:t,virtual:A,showSearch:O==null?void 0:O.showSearch},ge,{style:Object.assign(Object.assign({},O==null?void 0:O.style),E),dropdownMatchSelectWidth:te,builtinPlacements:VD(m,F),transitionName:w2(T,"slide-up",R.transitionName),listHeight:d,listItemHeight:$,mode:X,prefixCls:M,placement:Fe,direction:k,suffixIcon:oe,menuItemSelectedIcon:J,removeIcon:re,allowClear:fe,notFoundContent:he,className:Qe,getPopupContainer:s||N,dropdownClassName:Pe,disabled:tt,dropdownStyle:Object.assign(Object.assign({},R==null?void 0:R.dropdownStyle),{zIndex:ve})})))},vl=f.forwardRef(p8),g8=a6(vl);vl.SECRET_COMBOBOX_MODE_DO_NOT_USE=d$;vl.Option=Wv;vl.OptGroup=Vv;vl._InternalPanelDoNotUseOrYouWillBeFired=g8;const v8=vl,Vs=["xxl","xl","lg","md","sm","xs"],y8=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)`}),w8=e=>{const t=e,n=[].concat(Vs).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=c=>{let{matches:u}=c;this.dispatch(Object.assign(Object.assign({},o),{[i]:u}))},s=window.matchMedia(a);s.addListener(l),this.matchHandlers[a]={mql:s,listener:l},l(s)})},responsiveMap:t}},[e])}function h$(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:me("".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 sa={shiftX:64,adjustY:1},ca={adjustX:1,shiftY:!0},nr=[0,0],b8={left:{points:["cr","cl"],overflow:ca,offset:[-4,0],targetOffset:nr},right:{points:["cl","cr"],overflow:ca,offset:[4,0],targetOffset:nr},top:{points:["bc","tc"],overflow:sa,offset:[0,-4],targetOffset:nr},bottom:{points:["tc","bc"],overflow:sa,offset:[0,4],targetOffset:nr},topLeft:{points:["bl","tl"],overflow:sa,offset:[0,-4],targetOffset:nr},leftTop:{points:["tr","tl"],overflow:ca,offset:[-4,0],targetOffset:nr},topRight:{points:["br","tr"],overflow:sa,offset:[0,-4],targetOffset:nr},rightTop:{points:["tl","tr"],overflow:ca,offset:[4,0],targetOffset:nr},bottomRight:{points:["tr","br"],overflow:sa,offset:[0,4],targetOffset:nr},rightBottom:{points:["bl","br"],overflow:ca,offset:[4,0],targetOffset:nr},bottomLeft:{points:["tl","bl"],overflow:sa,offset:[0,4],targetOffset:nr},leftBottom:{points:["br","bl"],overflow:ca,offset:[-4,0],targetOffset:nr}},x8=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],C8=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,c=s===void 0?.1:s,u=t.overlayStyle,d=t.prefixCls,h=d===void 0?"rc-tooltip":d,p=t.children,w=t.onVisibleChange,v=t.afterVisibleChange,b=t.transitionName,g=t.animation,m=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,z=t.overlayInnerStyle;t.arrowContent;var L=t.overlay,A=t.id,_=t.showArrow,F=_===void 0?!0:_,O=pt(t,x8),I=f.useRef(null);f.useImperativeHandle(n,function(){return I.current});var $=G({},O);"visible"in t&&($.popupVisible=t.visible);var M=function(){return f.createElement(h$,{key:"content",prefixCls:h,id:A,overlayInnerStyle:z},L)};return f.createElement(e$,De({popupClassName:r,prefixCls:h,popup:M,action:i,builtinPlacements:b8,popupPlacement:S,ref:I,popupAlign:E,getPopupContainer:P,onPopupVisibleChange:w,afterPopupVisibleChange:v,popupTransitionName:b,popupAnimation:g,popupMotion:m,defaultPopupVisible:N,autoDestroy:R,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:l,arrow:F},$),p)};const E8=f.forwardRef(C8);function $8(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)),c=o-n*(1/Math.sqrt(2)),u=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),d=2*o-c,h=u,p=2*o-l,w=s,v=2*o-i,b=a,g=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),m=r*(Math.sqrt(2)-1),y=`polygon(${m}px 100%, 50% ${m}px, ${2*o-m}px 100%, ${m}px 100%)`,S=`path('M ${i} ${a} A ${r} ${r} 0 0 0 ${l} ${s} L ${c} ${u} A ${n} ${n} 0 0 1 ${d} ${h} L ${p} ${w} A ${r} ${r} 0 0 0 ${v} ${b} Z')`;return{arrowShadowWidth:g,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"}}},m$=8;function p$(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?m$:r}}function Qc(e,t){return e?t:{}}function R8(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}})]},Qc(!!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}}})),Qc(!!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}}})),Qc(!!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}})),Qc(!!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 O8(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 kw={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"]}},M8=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function N8(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,s={};return Object.keys(kw).forEach(c=>{const u=r&&I8[c]||kw[c],d=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(s[c]=d,M8.has(c)&&(d.autoArrow=!1),c){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=p$({contentRadius:i,limitVerticalRadius:!0});if(r)switch(c){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=O8(c,h,t,n),a&&(d.htmlRegion="visibleFirst")}),s}const P8=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:s,paddingSM:c,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},xo(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(c).div(2).equal())} ${Ae(u)}`,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,m$)}},[`${t}-content`]:{position:"relative"}}),i5(e,(d,h)=>{let{darkColor:p}=h;return{[`&${t}-${d}`]:{[`${t}-inner`]:{backgroundColor:p},[`${t}-arrow`]:{"--antd-arrow-background-color":p}}}})),{"&-rtl":{direction:"rtl"}})},R8(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},T8=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},p$({contentRadius:e.borderRadius,limitVerticalRadius:!0})),$8(Et(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),g$=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Co("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:i,colorBgSpotlight:a}=r,l=Et(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a});return[P8(l),n6(r,"zoom-big-fast")]},T8,{resetStyle:!1,injectStyle:t})(e)},A8=df.map(e=>`${e}-inverse`);function k8(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(be(A8),be(df)).includes(e):df.includes(e)}function v$(e,t){const n=k8(t),r=me({[`${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 z8=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),[c,u,d]=g$(s),h=v$(s,i),p=h.arrowStyle,w=Object.assign(Object.assign({},a),h.overlayStyle),v=me(u,d,s,`${s}-pure`,`${s}-placement-${r}`,n,h.className);return c(f.createElement("div",{className:v,style:p},f.createElement("div",{className:`${s}-arrow`}),f.createElement(h$,Object.assign({},e,{className:u,prefixCls:s,overlayInnerStyle:w}),o)))},F8=z8;var L8=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:c,children:u,afterOpenChange:d,afterVisibleChange:h,destroyTooltipOnHide:p,arrow:w=!0,title:v,overlay:b,builtinPlacements:g,arrowPointAtCenter:m=!1,autoAdjustOverflow:y=!0}=e,S=!!w,[,C]=An(),{getPopupContainer:E,getPrefixCls:x,direction:R}=f.useContext($t),N=$v(),P=f.useRef(null),z=()=>{var ge;(ge=P.current)===null||ge===void 0||ge.forceAlign()};f.useImperativeHandle(t,()=>({forceAlign:z,forcePopupAlign:()=>{N.deprecated(!1,"forcePopupAlign","forceAlign"),z()}}));const[L,A]=Kr(!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,F=ge=>{var Pe,Ie;A(_?!1:ge),_||((Pe=e.onOpenChange)===null||Pe===void 0||Pe.call(e,ge),(Ie=e.onVisibleChange)===null||Ie===void 0||Ie.call(e,ge))},O=f.useMemo(()=>{var ge,Pe;let Ie=m;return typeof w=="object"&&(Ie=(Pe=(ge=w.pointAtCenter)!==null&&ge!==void 0?ge:w.arrowPointAtCenter)!==null&&Pe!==void 0?Pe:m),g||N8({arrowPointAtCenter:Ie,autoAdjustOverflow:y,arrowWidth:S?C.sizePopupArrow:0,borderRadius:C.borderRadius,offset:C.marginXXS,visibleFirst:!0})},[m,w,g,C]),I=f.useMemo(()=>v===0?v:b||v||"",[b,v]),$=f.createElement(Pp,null,typeof I=="function"?I():I),{getPopupContainer:M,placement:T="top",mouseEnterDelay:k=.1,mouseLeaveDelay:D=.1,overlayStyle:B,rootClassName:V}=e,W=L8(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=md(u)&&!p2(u)?u:f.createElement("span",null,u),te=q.props,ne=!te.className||typeof te.className=="string"?me(te.className,i||`${U}-open`):te.className,[ee,Z,ae]=g$(U,!X),pe=v$(U,s),he=pe.arrowStyle,oe=Object.assign(Object.assign({},c),pe.overlayStyle),J=me(l,{[`${U}-rtl`]:R==="rtl"},pe.className,V,Z,ae),[re,ue]=y2("Tooltip",W.zIndex),fe=f.createElement(E8,Object.assign({},W,{zIndex:re,showArrow:S,placement:T,mouseEnterDelay:k,mouseLeaveDelay:D,prefixCls:U,overlayClassName:J,overlayStyle:Object.assign(Object.assign({},he),B),getTooltipContainer:M||a||E,ref:P,builtinPlacements:O,overlay:$,visible:K,onVisibleChange:F,afterVisibleChange:d??h,overlayInnerStyle:oe,arrowContent:f.createElement("span",{className:`${U}-arrow-content`}),motion:{motionName:w2(Y,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!p}),K?tl(q,{className:ne}):q);return ee(f.createElement(g2.Provider,{value:ue},fe))});y$._InternalPanelDoNotUseOrYouWillBeFired=F8;const D8=y$,j8=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),w$=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Xp=e=>({borderColor:e.activeBorderColor,boxShadow:e.activeShadow,outline:0,backgroundColor:e.activeBg}),S$=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover:not([disabled])":Object.assign({},w$(Et(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),b$=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}},x$=e=>({padding:`${Ae(e.paddingBlockSM)} ${Ae(e.paddingInlineSM)}`,borderRadius:e.borderRadiusSM}),C$=(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({},Xp(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({},Xp(Et(e,{activeBorderColor:o,activeShadow:a}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},E$=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}`},j8(e.colorTextPlaceholder)),{"&:hover":Object.assign({},w$(e)),"&:focus, &:focus-within":Object.assign({},Xp(e)),"&-disabled, &[disabled]":Object.assign({},S$(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({},b$(e)),"&-sm":Object.assign({},x$(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),H8=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({},b$(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},x$(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"},Kk()),{[`${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}}}})}},B8=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({},xo(e)),E$(e)),C$(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"}})}},V8=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)}`}}}},W8=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({},E$(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}}}),V8(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),C$(e,`${t}-affix-wrapper`))}},U8=e=>{const{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:i}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},xo(e)),H8(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({},S$(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}}}})}},K8=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}}}}},G8=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"}}}}}},X8=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};function q8(e){return Et(e,{inputAffixPadding:e.paddingXXS})}const Y8=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:s,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:h,colorPrimaryHover:p,colorPrimary:w,controlOutlineWidth:v,controlOutline:b,colorErrorOutline:g,colorWarningOutline:m}=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:c-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:h,activeBorderColor:w,hoverBorderColor:p,activeShadow:`0 0 0 ${v}px ${b}`,errorActiveShadow:`0 0 0 ${v}px ${g}`,warningActiveShadow:`0 0 0 ${v}px ${m}`,hoverBg:"",activeBg:""}},Xv=Co("Input",e=>{const t=Et(e,q8(e));return[B8(t),G8(t),W8(t),U8(t),K8(t),X8(t),Av(t)]},Y8),Q8=f.createContext({}),$$=Q8,Z8=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"}}}},J8=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},ej=(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},qp=(e,t)=>ej(e,t),tj=(e,t,n)=>({[`@media (min-width: ${Ae(t)})`]:Object.assign({},qp(e,n))}),nj=()=>({}),rj=()=>({}),oj=Co("Grid",Z8,nj),ij=Co("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[J8(t),qp(t,""),qp(t,"-xs"),Object.keys(n).map(r=>tj(t,n[r],r)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},rj);var aj=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($$),{prefixCls:a,span:l,order:s,offset:c,push:u,pull:d,className:h,children:p,flex:w,style:v}=e,b=aj(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),g=n("col",a),[m,y,S]=ij(g);let C={};sj.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),{[`${g}-${R}-${N.span}`]:N.span!==void 0,[`${g}-${R}-order-${N.order}`]:N.order||N.order===0,[`${g}-${R}-offset-${N.offset}`]:N.offset||N.offset===0,[`${g}-${R}-push-${N.push}`]:N.push||N.push===0,[`${g}-${R}-pull-${N.pull}`]:N.pull||N.pull===0,[`${g}-${R}-flex-${N.flex}`]:N.flex||N.flex==="auto",[`${g}-rtl`]:r==="rtl"})});const E=me(g,{[`${g}-${l}`]:l!==void 0,[`${g}-order-${s}`]:s,[`${g}-offset-${c}`]:c,[`${g}-push-${u}`]:u,[`${g}-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=lj(w),i===!1&&!x.minWidth&&(x.minWidth=0)),m(f.createElement("div",Object.assign({},b,{style:Object.assign(Object.assign({},x),v),className:E,ref:t}),p))}),_$=cj;var uj=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 fj=f.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:i,style:a,children:l,gutter:s=0,wrap:c}=e,u=uj(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}),g=zw(o,v),m=zw(r,v),y=f.useRef(s),S=S8();f.useEffect(()=>{const I=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(I)},[]);const C=()=>{const I=[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[_,F]=P,O=f.useMemo(()=>({gutter:[_,F],wrap:c}),[_,F,c]);return x(f.createElement($$.Provider,{value:O},f.createElement("div",Object.assign({},u,{className:z,style:Object.assign(Object.assign({},L),a),ref:t}),l)))}),dj=fj;function ua(e){return!!(e.addonBefore||e.addonAfter)}function Hh(e){return!!(e.prefix||e.suffix||e.allowClear)}function yf(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 hj(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 R$=function(t){var n,r,o=t.inputElement,i=t.prefixCls,a=t.prefix,l=t.suffix,s=t.addonBefore,c=t.addonAfter,u=t.className,d=t.style,h=t.disabled,p=t.readOnly,w=t.focused,v=t.triggerFocus,b=t.allowClear,g=t.value,m=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",z=(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())},F=function(){var U;if(!b)return null;var Y=!h&&!p&&g,X="".concat(i,"-clear-icon"),K=Ke(b)==="object"&&b!==null&&b!==void 0&&b.clearIcon?b.clearIcon:"✖";return j.createElement("span",{onClick:m,onMouseDown:function(te){return te.preventDefault()},className:me(X,(U={},H(U,"".concat(X,"-hidden"),!Y),H(U,"".concat(X,"-has-suffix"),!!l),U)),role:"button",tabIndex:-1},K)},O=f.cloneElement(o,{value:g,hidden:y,className:me((n=o.props)===null||n===void 0?void 0:n.className,!Hh(t)&&!ua(t)&&u)||null,style:G(G({},(r=o.props)===null||r===void 0?void 0:r.style),!Hh(t)&&!ua(t)?d:{})});if(Hh(t)){var I,$="".concat(i,"-affix-wrapper"),M=me($,(I={},H(I,"".concat($,"-disabled"),h),H(I,"".concat($,"-focused"),w),H(I,"".concat($,"-readonly"),p),H(I,"".concat($,"-input-with-clear-btn"),l&&b&&g),I),!ua(t)&&u,S==null?void 0:S.affixWrapper,C==null?void 0:C.affixWrapper),T=(l||b)&&j.createElement("span",{className:me("".concat(i,"-suffix"),C==null?void 0:C.suffix),style:x==null?void 0:x.suffix},F(),l);O=j.createElement(N,De({className:M,style:G(G({},ua(t)?void 0:d),x==null?void 0:x.affixWrapper),hidden:!ua(t)&&y,onClick:_},E==null?void 0:E.affixWrapper,{ref:A}),a&&j.createElement("span",{className:me("".concat(i,"-prefix"),C==null?void 0:C.prefix),style:x==null?void 0:x.prefix},a),f.cloneElement(o,{value:g,hidden:null}),T)}if(ua(t)){var k="".concat(i,"-group"),D="".concat(k,"-addon"),B=me("".concat(i,"-wrapper"),k,S==null?void 0:S.wrapper),V=me("".concat(i,"-group-wrapper"),u,S==null?void 0:S.group);return j.createElement(P,{className:V,style:d,hidden:y},j.createElement(z,{className:B},s&&j.createElement(L,{className:D},s),f.cloneElement(O,{hidden:null}),c&&j.createElement(L,{className:D},c)))}return O},mj=["show"];function O$(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=pt(r,mj);return G(G({},i),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:i.strategy||function(a){return a.length}})},[e,t])}var pj=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],gj=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,c=s===void 0?"rc-input":s,u=e.disabled,d=e.htmlSize,h=e.className,p=e.maxLength,w=e.suffix,v=e.showCount,b=e.count,g=e.type,m=g===void 0?"text":g,y=e.classes,S=e.classNames,C=e.styles,E=e.onCompositionStart,x=e.onCompositionEnd,R=pt(e,pj),N=f.useState(!1),P=Q(N,2),z=P[0],L=P[1],A=j.useRef(!1),_=f.useRef(null),F=function(re){_.current&&hj(_.current,re)},O=Kr(e.defaultValue,{value:e.value}),I=Q(O,2),$=I[0],M=I[1],T=$==null?"":String($),k=j.useState(null),D=Q(k,2),B=D[0],V=D[1],W=O$(b,v),U=W.max||p,Y=W.strategy(T),X=!!U&&Y>U;f.useImperativeHandle(t,function(){return{focus:F,blur:function(){var re;(re=_.current)===null||re===void 0||re.blur()},setSelectionRange:function(re,ue,fe){var ge;(ge=_.current)===null||ge===void 0||ge.setSelectionRange(re,ue,fe)},select:function(){var re;(re=_.current)===null||re===void 0||re.select()},input:_.current}}),f.useEffect(function(){L(function(J){return J&&u?!1:J})},[u]);var K=function(re,ue){var fe=ue;if(!A.current&&W.exceedFormatter&&W.max&&W.strategy(ue)>W.max&&(fe=W.exceedFormatter(ue,{max:W.max}),ue!==fe)){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(fe),_.current&&yf(_.current,re,r,fe)};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(""),F(),_.current&&yf(_.current,re,r)},pe=X&&"".concat(c,"-out-of-range"),he=function(){var re=Ui(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:me(c,H({},"".concat(c,"-disabled"),u),S==null?void 0:S.input),style:C==null?void 0:C.input,ref:_,size:d,type:m,onCompositionStart:function(fe){A.current=!0,E==null||E(fe)},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:me("".concat(c,"-show-count-suffix"),H({},"".concat(c,"-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(R$,De({},R,{prefixCls:c,className:me(h,pe),inputElement:he(),handleReset:ae,value:T,focused:z,triggerFocus:F,suffix:oe(),disabled:u,classes:y,classNames:S,styles:C}))});const vj=e=>{const{getPrefixCls:t,direction:n}=f.useContext($t),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[l,s]=Xv(a),c=me(i,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},s,o),u=f.useContext(Tr),d=f.useMemo(()=>Object.assign(Object.assign({},u),{isFormItemInput:!1}),[u]);return l(f.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},f.createElement(Tr.Provider,{value:d},e.children)))},yj=vj;function I$(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 wj(e){return!!(e.prefix||e.suffix||e.allowClear)}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{var n;const{prefixCls:r,bordered:o=!0,status:i,size:a,disabled:l,onBlur:s,onFocus:c,suffix:u,allowClear:d,addonAfter:h,addonBefore:p,className:w,style:v,styles:b,rootClassName:g,onChange:m,classNames:y}=e,S=Sj(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=pl(R),[z,L,A]=Xv(R,P),{compactSize:_,compactItemClassnames:F}=vd(R,E),O=Xi(q=>{var te;return(te=a??_)!==null&&te!==void 0?te:q}),I=j.useContext(Ki),$=l??I,{status:M,hasFeedback:T,feedbackIcon:k}=f.useContext(Tr),D=Kv(M,i),B=wj(e)||!!T;f.useRef(B);const V=I$(N,!0),W=q=>{V(),s==null||s(q)},U=q=>{V(),c==null||c(q)},Y=q=>{V(),m==null||m(q)},X=(T||u)&&j.createElement(j.Fragment,null,u,T&&k);let K;return typeof d=="object"&&(d!=null&&d.clearIcon)?K=d:d&&(K={clearIcon:j.createElement(hd,null)}),z(j.createElement(gj,Object.assign({ref:bo(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:me(w,g,A,P,L,F,x==null?void 0:x.className),onChange:Y,addonAfter:h&&j.createElement(Pp,null,j.createElement(hw,{override:!0,status:!0},h)),addonBefore:p&&j.createElement(Pp,null,j.createElement(hw,{override:!0,status:!0},p)),classNames:Object.assign(Object.assign(Object.assign({},y),x==null?void 0:x.classNames),{input:me({[`${R}-sm`]:O==="small",[`${R}-lg`]:O==="large",[`${R}-rtl`]:E==="rtl",[`${R}-borderless`]:!o},!B&&Da(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:me({[`${R}-affix-wrapper-sm`]:O==="small",[`${R}-affix-wrapper-lg`]:O==="large",[`${R}-affix-wrapper-rtl`]:E==="rtl",[`${R}-affix-wrapper-borderless`]:!o},Da(`${R}-affix-wrapper`,D,T),L),wrapper:me({[`${R}-group-rtl`]:E==="rtl"},L),group:me({[`${R}-group-wrapper-sm`]:O==="small",[`${R}-group-wrapper-lg`]:O==="large",[`${R}-group-wrapper-rtl`]:E==="rtl",[`${R}-group-wrapper-disabled`]:$},Da(`${R}-group-wrapper`,D,T),L)}})))}),qv=xj;var Cj={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 Ej=Cj;var $j=function(t,n){return f.createElement(kr,De({},t,{ref:n,icon:Ej}))};const _j=f.forwardRef($j);var Rj={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 Oj=Rj;var Ij=function(t,n){return f.createElement(kr,De({},t,{ref:n,icon:Oj}))};const Mj=f.forwardRef(Ij);var Nj=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(Mj,null):f.createElement(_j,null),Tj={click:"onClick",hover:"onMouseOver"},Aj=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=I$(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}))},c=C=>{const{action:E="click",iconRender:x=Pj}=e,R=Tj[E]||"",N=x(o),P={[R]:s,className:`${C}-icon`,key:"passwordIcon",onMouseDown:z=>{z.preventDefault()},onMouseUp:z=>{z.preventDefault()}};return f.cloneElement(f.isValidElement(N)?N:f.createElement("span",null,N),P)},{className:u,prefixCls:d,inputPrefixCls:h,size:p}=e,w=Nj(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:v}=f.useContext($t),b=v("input",h),g=v("input-password",d),m=n&&c(g),y=me(g,u,{[`${g}-${p}`]:!!p}),S=Object.assign(Object.assign({},Ui(w,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:y,prefixCls:b,suffix:m});return p&&(S.size=p),f.createElement(qv,Object.assign({ref:bo(t,a)},S))}),kj=Aj;var zj=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:c,disabled:u,onSearch:d,onChange:h,onCompositionStart:p,onCompositionEnd:w}=e,v=zj(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:b,direction:g}=f.useContext($t),m=f.useRef(!1),y=b("input-search",n),S=b("input",r),{compactSize:C}=vd(y,g),E=Xi(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"})},z=T=>{m.current||c||P(T)},L=typeof l=="boolean"?f.createElement(f$,null):null,A=`${y}-button`;let _;const F=l||{},O=F.type&&F.type.__ANT_BUTTON===!0;O||F.type==="button"?_=tl(F,Object.assign({onMouseDown:N,onClick:T=>{var k,D;(D=(k=F==null?void 0:F.props)===null||k===void 0?void 0:k.onClick)===null||D===void 0||D.call(k,T),P(T)},key:"enterButton"},O?{className:A,size:E}:{})):_=f.createElement(I2,{className:A,type:l?"primary":void 0,size:E,disabled:u,key:"enterButton",onMouseDown:N,onClick:P,loading:c,icon:L},l),s&&(_=[_,tl(s,{key:"addonAfter"})]);const I=me(y,{[`${y}-rtl`]:g==="rtl",[`${y}-${E}`]:!!E,[`${y}-with-button`]:!!l},o),$=T=>{m.current=!0,p==null||p(T)},M=T=>{m.current=!1,w==null||w(T)};return f.createElement(qv,Object.assign({ref:bo(x,t),onPressEnter:z},v,{size:E,onCompositionStart:$,onCompositionEnd:M,prefixCls:S,addonAfter:_,suffix:a,onChange:R,className:I,disabled:u}))}),Lj=Fj;var Dj=` + 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; +`,jj=["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"],Bh={},rr;function Hj(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&&Bh[n])return Bh[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=jj.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),s={sizingStyle:l,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(Bh[n]=s),s}function Bj(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;rr||(rr=document.createElement("textarea"),rr.setAttribute("tab-index","-1"),rr.setAttribute("aria-hidden","true"),document.body.appendChild(rr)),e.getAttribute("wrap")?rr.setAttribute("wrap",e.getAttribute("wrap")):rr.removeAttribute("wrap");var o=Hj(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,s=o.sizingStyle;rr.setAttribute("style","".concat(s,";").concat(Dj)),rr.value=e.value||e.placeholder||"";var c=void 0,u=void 0,d,h=rr.scrollHeight;if(l==="border-box"?h+=a:l==="content-box"&&(h-=i),n!==null||r!==null){rr.value=" ";var p=rr.scrollHeight-i;n!==null&&(c=p*n,l==="border-box"&&(c=c+i+a),h=Math.max(c,h)),r!==null&&(u=p*r,l==="border-box"&&(u=u+i+a),d=h>u?"":"hidden",h=Math.min(u,h))}var w={height:h,overflowY:d,resize:"none"};return c&&(w.minHeight=c),u&&(w.maxHeight=u),w}var Vj=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Vh=0,Wh=1,Uh=2,Wj=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,c=n.style,u=n.disabled,d=n.onChange;n.onInternalAutoSize;var h=pt(n,Vj),p=Kr(o,{value:i,postState:function(V){return V??""}}),w=Q(p,2),v=w[0],b=w[1],g=function(V){b(V.target.value),d==null||d(V)},m=f.useRef();f.useImperativeHandle(t,function(){return{textArea:m.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===m.current){var V=m.current,W=V.selectionStart,U=V.selectionEnd,Y=V.scrollTop;m.current.setSelectionRange(W,U),m.current.scrollTop=Y}}catch{}},N=f.useState(Uh),P=Q(N,2),z=P[0],L=P[1],A=f.useState(),_=Q(A,2),F=_[0],O=_[1],I=function(){L(Vh)};xt(function(){x&&I()},[i,C,E,x]),xt(function(){if(z===Vh)L(Wh);else if(z===Wh){var B=Bj(m.current,!1,C,E);L(Uh),O(B)}else R()},[z]);var $=f.useRef(),M=function(){It.cancel($.current)},T=function(V){z===Uh&&(l==null||l(V),a&&(M(),$.current=It(function(){I()})))};f.useEffect(function(){return M},[]);var k=x?F:null,D=G(G({},c),k);return(z===Vh||z===Wh)&&(D.overflowY="hidden",D.overflowX="hidden"),f.createElement(ai,{onResize:T,disabled:!(a||l)},f.createElement("textarea",De({},h,{ref:m,style:D,className:me(r,s,H({},"".concat(r,"-disabled"),u)),disabled:u,value:v,onChange:g})))}),Uj=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],Kj=j.forwardRef(function(e,t){var n,r,o=e.defaultValue,i=e.value,a=e.onFocus,l=e.onBlur,s=e.onChange,c=e.allowClear,u=e.maxLength,d=e.onCompositionStart,h=e.onCompositionEnd,p=e.suffix,w=e.prefixCls,v=w===void 0?"rc-textarea":w,b=e.classes,g=e.showCount,m=e.count,y=e.className,S=e.style,C=e.disabled,E=e.hidden,x=e.classNames,R=e.styles,N=e.onResize,P=pt(e,Uj),z=Kr(o,{value:i,defaultValue:o}),L=Q(z,2),A=L[0],_=L[1],F=A==null?"":String(A),O=j.useState(!1),I=Q(O,2),$=I[0],M=I[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 de;return(de=W.current)===null||de===void 0?void 0:de.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=O$(m,g),ee=(n=ne.max)!==null&&n!==void 0?n:u,Z=Number(ee)>0,ae=ne.strategy(F),pe=!!ee&&ae>ee,he=function(de,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),yf(de.currentTarget,de,s,Ze)},oe=function(de){T.current=!0,d==null||d(de)},J=function(de){T.current=!1,he(de,de.currentTarget.value),h==null||h(de)},re=function(de){he(de,de.target.value)},ue=function(de){var je=P.onPressEnter,Ze=P.onKeyDown;de.key==="Enter"&&je&&je(de),Ze==null||Ze(de)},fe=function(de){M(!0),a==null||a(de)},ge=function(de){M(!1),l==null||l(de)},Pe=function(de){_(""),Y(),yf(U(),de,s)},Ie=p,Ee;ne.show&&(ne.showFormatter?Ee=ne.showFormatter({value:F,count:ae,maxLength:ee}):Ee="".concat(ae).concat(Z?" / ".concat(ee):""),Ie=j.createElement(j.Fragment,null,Ie,j.createElement("span",{className:me("".concat(v,"-data-count"),x==null?void 0:x.count),style:R==null?void 0:R.count},Ee)));var tt=function(de){var je;N==null||N(de),(je=U())!==null&&je!==void 0&&je.style.height&&V(!0)},Qe=!P.autoSize&&!g&&!c,Fe=j.createElement(R$,{value:F,allowClear:c,handleReset:Pe,suffix:Ie,prefixCls:v,classes:{affixWrapper:me(b==null?void 0:b.affixWrapper,(r={},H(r,"".concat(v,"-show-count"),g),H(r,"".concat(v,"-textarea-allow-clear"),c),r))},disabled:C,focused:$,className:me(y,pe&&"".concat(v,"-out-of-range")),style:G(G({},S),B&&!Qe?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ee=="string"?Ee:void 0}},hidden:E,inputElement:j.createElement(Wj,De({},P,{maxLength:u,onKeyDown:ue,onChange:re,onFocus:fe,onBlur:ge,onCompositionStart:oe,onCompositionEnd:J,className:me(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 Fe}),Gj=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:c,rootClassName:u,className:d}=e,h=Gj(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className"]),{getPrefixCls:p,direction:w}=f.useContext($t),v=Xi(i),b=f.useContext(Ki),g=a??b,{status:m,hasFeedback:y,feedbackIcon:S}=f.useContext(Tr),C=Kv(m,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 F,O;bj((O=(F=E.current)===null||F===void 0?void 0:F.resizableTextArea)===null||O===void 0?void 0:O.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(hd,null)});const N=pl(x),[P,z,L]=Xv(x,N);return P(f.createElement(Kj,Object.assign({},h,{disabled:g,allowClear:R,className:me(L,N,d,u),classes:{affixWrapper:me(`${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)},Da(`${x}-affix-wrapper`,C),z)},classNames:Object.assign(Object.assign({},c),{textarea:me({[`${x}-borderless`]:!o,[`${x}-sm`]:v==="small",[`${x}-lg`]:v==="large"},Da(x,C),z,c==null?void 0:c.textarea)}),prefixCls:x,suffix:y&&f.createElement("span",{className:`${x}-textarea-suffix`},S),ref:E})))}),qj=Xj,sc=qv;sc.Group=yj;sc.Search=Lj;sc.TextArea=qj;sc.Password=kj;const Zc=sc;function wf(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 Yj=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)"}}}}},Qj=Yj,Zj=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}}),Fw=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},Jj=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},xo(e)),Zj(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},Fw(e,e.controlHeightSM)),"&-large":Object.assign({},Fw(e,e.controlHeightLG))})}},eH=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o,labelRequiredMarkColor:i,labelColor:a,labelFontSize:l,labelHeight:s,labelColonMarginInlineStart:c,labelColonMarginInlineEnd:u,itemMarginBottom:d}=e;return{[t]:Object.assign(Object.assign({},xo(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:c,marginInlineEnd:u},[`&${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:Hv,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},tH=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"}}}}},nH=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"}}}}},da=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),rH=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:da(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},oH=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`]:da(e),[`@media (max-width: ${Ae(e.screenXSMax)})`]:[rH(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:da(e)}}],[`@media (max-width: ${Ae(e.screenSMMax)})`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:da(e)}},[`@media (max-width: ${Ae(e.screenMDMax)})`]:{[t]:{[`.${r}-col-md-24${n}-label`]:da(e)}},[`@media (max-width: ${Ae(e.screenLGMax)})`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:da(e)}}}},iH=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}),M$=(e,t)=>Et(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),Yv=Co("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=M$(e,n);return[Jj(r),eH(r),Qj(r),tH(r),nH(r),oH(r),o6(r),Hv]},iH,{order:-1e3}),Lw=[];function Kh(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 aH=e=>{let{help:t,helpStatus:n,errors:r=Lw,warnings:o=Lw,className:i,fieldId:a,onVisibleChanged:l}=e;const{prefixCls:s}=f.useContext(Dv),c=`${s}-item-explain`,u=pl(s),[d,h,p]=Yv(s,u),w=f.useMemo(()=>W1(s),[s]),v=wf(r),b=wf(o),g=f.useMemo(()=>t!=null?[Kh(t,"help",n)]:[].concat(be(v.map((y,S)=>Kh(y,"error","error",S))),be(b.map((y,S)=>Kh(y,"warning","warning",S)))),[t,n,v,b]),m={};return a&&(m.id=`${a}_help`),d(f.createElement(hl,{motionDeadline:w.motionDeadline,motionName:`${s}-show-help`,visible:!!g.length,onVisibleChanged:l},y=>{const{className:S,style:C}=y;return f.createElement("div",Object.assign({},m,{className:me(c,S,p,u,i,h),style:C,role:"alert"}),f.createElement(M5,Object.assign({keys:g},W1(s),{motionName:`${s}-show-help-item`,component:!1}),E=>{const{key:x,error:R,errorStatus:N,className:P,style:z}=E;return f.createElement("div",{key:x,className:me(P,{[`${c}-${N}`]:N}),style:z},R)}))}))},N$=aH,lH=["parentNode"],sH="form_item";function ss(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function P$(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:lH.includes(n)?`${sH}_${n}`:n}function T$(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 Dw(e){return ss(e).join("_")}function A$(e){const[t]=Lv(),n=f.useRef({}),r=f.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>i=>{const a=Dw(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=ss(o),l=P$(a,r.__INTERNAL__.name),s=l?document.getElementById(l):null;s&&wz(s,Object.assign({scrollMode:"if-needed",block:"nearest"},i))},getFieldInstance:o=>{const i=Dw(o);return n.current[i]}}),[e,t]);return[r]}var cH=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(Ki),{getPrefixCls:r,direction:o,form:i}=f.useContext($t),{prefixCls:a,className:l,rootClassName:s,size:c,disabled:u=n,form:d,colon:h,labelAlign:p,labelWrap:w,labelCol:v,wrapperCol:b,hideRequiredMark:g,layout:m="horizontal",scrollToFirstError:y,requiredMark:S,onFinishFailed:C,name:E,style:x,feedbackIcons:R}=e,N=cH(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),P=Xi(c),z=f.useContext(ME),L=f.useMemo(()=>S!==void 0?S:g?!1:i&&i.requiredMark!==void 0?i.requiredMark:!0,[g,S,i]),A=h??(i==null?void 0:i.colon),_=r("form",a),F=pl(_),[O,I,$]=Yv(_,F),M=me(_,`${_}-${m}`,{[`${_}-hide-required-mark`]:L===!1,[`${_}-rtl`]:o==="rtl",[`${_}-${P}`]:P},$,F,I,i==null?void 0:i.className,l,s),[T]=A$(d),{__INTERNAL__:k}=T;k.name=E;const D=f.useMemo(()=>({name:E,labelAlign:p,labelCol:v,labelWrap:w,wrapperCol:b,vertical:m==="vertical",colon:A,requiredMark:L,itemRef:k.itemRef,form:T,feedbackIcons:R}),[E,p,v,b,m,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 O(f.createElement(HE,{disabled:u},f.createElement(rc.Provider,{value:P},f.createElement(j2,{validateMessages:z},f.createElement(wo.Provider,{value:D},f.createElement(gl,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})))))))},fH=f.forwardRef(uH),dH=fH;function hH(e){if(typeof e=="function")return e;const t=Qa(e);return t.length<=1?t[0]:t}const k$=()=>{const{status:e,errors:t=[],warnings:n=[]}=f.useContext(Tr);return{status:e,errors:t,warnings:n}};k$.Context=Tr;const mH=k$;function pH(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,It.cancel(r.current),r.current=null}),[]);function a(l){i.current||(r.current===null&&(o.current=[],r.current=It(()=>{r.current=null,n(s=>{let c=s;return o.current.forEach(u=>{c=u(c)}),c})})),o.current.push(l))}return[t,a]}function gH(){const{itemRef:e}=f.useContext(wo),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=bo(e(r),i)),t.current.ref}return n}const vH=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},yH=JE(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=M$(e,n);return[vH(r)]}),wH=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:o,errors:i,warnings:a,_internalItemRender:l,extra:s,help:c,fieldId:u,marginBottom:d,onErrorVisibleChanged:h}=e,p=`${t}-item`,w=f.useContext(wo),v=r||w.wrapperCol||{},b=me(`${p}-control`,v.className),g=f.useMemo(()=>Object.assign({},w),[w]);delete g.labelCol,delete g.wrapperCol;const m=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(Dv.Provider,{value:y},f.createElement(N$,{fieldId:u,errors:i,warnings:a,help:c,helpStatus:n,className:`${p}-explain-connected`,onVisibleChanged:h})),!!d&&f.createElement("div",{style:{width:0,height:d}})):null,C={};u&&(C.id=`${u}_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:m,errorList:S,extra:E}):f.createElement(f.Fragment,null,m,S,E);return f.createElement(wo.Provider,{value:g},f.createElement(_$,Object.assign({},v,{className:b}),x),f.createElement(yH,{prefixCls:t}))},SH=wH;var bH={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 xH=bH;var CH=function(t,n){return f.createElement(kr,De({},t,{ref:n,icon:xH}))};const EH=f.forwardRef(CH);var $H=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:c}=e;var u;const[d]=PE("Form"),{vertical:h,labelAlign:p,labelCol:w,labelWrap:v,colon:b}=f.useContext(wo);if(!n)return null;const g=o||w||{},m=i||p,y=`${t}-item-label`,S=me(y,m==="left"&&`${y}-left`,g.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=_H(c);if(R){const{icon:L=f.createElement(EH,null)}=R,A=$H(R,["icon"]),_=f.createElement(D8,Object.assign({},A),f.cloneElement(L,{className:`${t}-item-tooltip`,title:"",onClick:F=>{F.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)||((u=Li.Form)===null||u===void 0?void 0:u.optional))));const z=me({[`${t}-item-required`]:l,[`${t}-item-required-mark-optional`]:N||P,[`${t}-item-no-colon`]:!E});return f.createElement(_$,Object.assign({},g,{className:S}),f.createElement("label",{htmlFor:r,className:z,title:typeof n=="string"?n:""},C))},OH=RH,IH={success:J5,warning:uz,error:hd,validating:pd};function z$(e){let{children:t,errors:n,warnings:r,hasFeedback:o,validateStatus:i,prefixCls:a,meta:l,noStyle:s}=e;const c=`${a}-item`,{feedbackIcons:u}=f.useContext(wo),d=T$(n,r,l,null,!!o,i),{isFormItemInput:h,status:p,hasFeedback:w,feedbackIcon:v}=f.useContext(Tr),b=f.useMemo(()=>{var g;let m;if(o){const S=o!==!0&&o.icons||u,C=d&&((g=S==null?void 0:S({status:d,errors:n,warnings:r}))===null||g===void 0?void 0:g[d]),E=d&&IH[d];m=C!==!1&&E?f.createElement("span",{className:me(`${c}-feedback-icon`,`${c}-feedback-icon-${d}`)},C||f.createElement(E,null)):null}const y={status:d||"",errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:m,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(Tr.Provider,{value:b},t)}var MH=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 O=getComputedStyle(S.current);z(parseInt(O.marginBottom,10))}},[R,N]);const L=O=>{O||z(null)},_=function(){let O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const I=O?C:c.errors,$=O?E:c.warnings;return T$(I,$,c,"",!!u,s)}(),F=me(m,n,r,{[`${m}-with-help`]:x||C.length||E.length,[`${m}-has-feedback`]:_&&u,[`${m}-has-success`]:_==="success",[`${m}-has-warning`]:_==="warning",[`${m}-has-error`]:_==="error",[`${m}-is-validating`]:_==="validating",[`${m}-hidden`]:d});return f.createElement("div",{className:F,style:o,ref:S},f.createElement(dj,Object.assign({className:`${m}-row`},Ui(g,["_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(OH,Object.assign({htmlFor:p},e,{requiredMark:y,required:w??v,prefixCls:t})),f.createElement(SH,Object.assign({},e,c,{errors:C,warnings:E,prefixCls:t,status:_,help:i,marginBottom:P,onErrorVisibleChanged:L}),f.createElement(D2.Provider,{value:b},f.createElement(z$,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:_},h)))),!!P&&f.createElement("div",{className:`${m}-margin-offset`,style:{marginBottom:-P}}))}const PH="__SPLIT__";function TH(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 AH=f.memo(e=>{let{children:t}=e;return t},(e,t)=>TH(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function jw(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function kH(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:i,shouldUpdate:a,rules:l,children:s,required:c,label:u,messageVariables:d,trigger:h="onChange",validateTrigger:p,hidden:w,help:v}=e,{getPrefixCls:b}=f.useContext($t),{name:g}=f.useContext(wo),m=hH(s),y=typeof m=="function",S=f.useContext(D2),{validateTrigger:C}=f.useContext(ji),E=p!==void 0?p:C,x=t!=null,R=b("form",i),N=pl(R),[P,z,L]=Yv(R,N);$v();const A=f.useContext(js),_=f.useRef(),[F,O]=pH({}),[I,$]=Mi(()=>jw()),M=U=>{const Y=A==null?void 0:A.getKey(U.name);if($(U.destroy?jw():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)=>{O(X=>{const K=Object.assign({},X),te=[].concat(be(U.name.slice(0,-1)),be(Y)).join(PH);return U.destroy?delete K[te]:K[te]=U,K})},[k,D]=f.useMemo(()=>{const U=be(I.errors),Y=be(I.warnings);return Object.values(F).forEach(X=>{U.push.apply(U,be(X.errors||[])),Y.push.apply(Y,be(X.warnings||[]))}),[U,Y]},[F,I.errors,I.warnings]),B=gH();function V(U,Y,X){return n&&!w?f.createElement(z$,{prefixCls:R,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:I,errors:k,warnings:D,noStyle:!0},U):f.createElement(NH,Object.assign({key:"row"},e,{className:me(r,L,N,z),prefixCls:R,fieldId:Y,isRequired:X,errors:k,warnings:D,meta:I,onSubItemMetaChange:T}),U)}if(!x&&!y&&!o)return P(V(m));let W={};return typeof u=="string"?W.label=u:t&&(W.label=String(t)),d&&(W=Object.assign(Object.assign({},W),d)),P(f.createElement(Fv,Object.assign({},e,{messageVariables:W,trigger:h,validateTrigger:E,onMetaChange:M}),(U,Y,X)=>{const K=ss(t).length&&Y?Y.name:[],q=P$(K,g),te=c!==void 0?c:!!(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(m)&&x)ee=m;else if(!(y&&(!(a||o)||x))){if(!(o&&!y&&!x))if(md(m)){const Z=Object.assign(Object.assign({},m.props),ne);if(Z.id||(Z.id=q),v||k.length>0||D.length>0||e.extra){const he=[];(v||k.length>0)&&he.push(`${q}_help`),e.extra&&he.push(`${q}_extra`),Z["aria-describedby"]=he.join(" ")}k.length>0&&(Z["aria-invalid"]="true"),te&&(Z["aria-required"]="true"),cl(m)&&(Z.ref=B(K,m)),new Set([].concat(be(ss(h)),be(ss(E)))).forEach(he=>{Z[he]=function(){for(var oe,J,re,ue,fe,ge=arguments.length,Pe=new Array(ge),Ie=0;Ie{var{prefixCls:t,children:n}=e,r=FH(e,["prefixCls","children"]);const{getPrefixCls:o}=f.useContext($t),i=o("form",t),a=f.useMemo(()=>({prefixCls:i,status:"error"}),[i]);return f.createElement(k2,Object.assign({},r),(l,s,c)=>f.createElement(Dv.Provider,{value:a},n(l.map(u=>Object.assign(Object.assign({},u),{fieldKey:u.key})),s,{errors:c.errors,warnings:c.warnings})))},DH=LH;function jH(){const{form:e}=f.useContext(wo);return e}const Eo=dH;Eo.Item=zH;Eo.List=DH;Eo.ErrorList=N$;Eo.useForm=A$;Eo.useFormInstance=jH;Eo.useWatch=L2;Eo.Provider=j2;Eo.create=()=>{};const Dr=Eo;var HH=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],L$=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,c=e.loadingIcon,u=e.checkedChildren,d=e.unCheckedChildren,h=e.onClick,p=e.onChange,w=e.onKeyDown,v=pt(e,HH),b=Kr(!1,{value:a,defaultValue:l}),g=Q(b,2),m=g[0],y=g[1];function S(R,N){var P=m;return s||(P=R,y(P),p==null||p(P,N)),P}function C(R){R.which===ce.LEFT?S(!1,R):R.which===ce.RIGHT&&S(!0,R),w==null||w(R)}function E(R){var N=S(!m,R);h==null||h(N,R)}var x=me(o,i,(n={},H(n,"".concat(o,"-checked"),m),H(n,"".concat(o,"-disabled"),s),n));return f.createElement("button",De({},v,{type:"button",role:"switch","aria-checked":m,disabled:s,className:x,ref:t,onKeyDown:C,onClick:E}),c,f.createElement("span",{className:"".concat(o,"-inner")},f.createElement("span",{className:"".concat(o,"-inner-checked")},u),f.createElement("span",{className:"".concat(o,"-inner-unchecked")},d)))});L$.displayName="Switch";const BH=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:l,calc:s}=e,c=`${t}-inner`,u=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,[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-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,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${Ae(s(l).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:s(e.marginXXS).div(2).equal(),marginInlineEnd:s(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:s(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:s(e.marginXXS).div(2).equal()}}}}}}},VH=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}}}},WH=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}}}}},UH=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:i,handleSize:a,calc:l}=e,s=`${t}-inner`,c=Ae(l(a).add(l(r).mul(2)).equal()),u=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% + ${c} - ${u})`,marginInlineEnd:`calc(100% - ${c} + ${u})`},[`${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% - ${c} + ${u})`,marginInlineEnd:`calc(-100% + ${c} - ${u})`}},[`&: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()}}}}}},KH=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},xo(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}}),KE(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"}})}},GH=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,i=t*n,a=r/2,l=2,s=i-l*2,c=a-l*2;return{trackHeight:i,trackHeightSM:a,trackMinWidth:s*2+l*4,trackMinWidthSM:c*2+l*2,trackPadding:l,handleBg:o,handleSize:s,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new rn("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+l+l*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+l+l*2}},XH=Co("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[KH(t),UH(t),WH(t),VH(t),BH(t)]},GH);var qH=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:c,value:u,defaultChecked:d,defaultValue:h,onChange:p}=e,w=qH(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[v,b]=Kr(!1,{value:c??u,defaultValue:d??h}),{getPrefixCls:g,direction:m,switch:y}=f.useContext($t),S=f.useContext(Ki),C=(o??S)||i,E=g("switch",n),x=f.createElement("div",{className:`${E}-handle`},i&&f.createElement(pd,{className:`${E}-loading-icon`})),[R,N,P]=XH(E),z=Xi(r),L=me(y==null?void 0:y.className,{[`${E}-small`]:z==="small",[`${E}-loading`]:i,[`${E}-rtl`]:m==="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(b2,{component:"Switch"},f.createElement(L$,Object.assign({},w,{checked:v,onChange:_,prefixCls:E,className:L,style:A,disabled:C,ref:t,loadingIcon:x}))))});D$.__ANT_SWITCH=!0;const Gh=D$;function j$(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))(ze||{});const YH=[{label:ze.TINYINT,key:ze.TINYINT},{label:ze.SMALLINT,key:ze.SMALLINT},{label:ze.MEDIUMINT,key:ze.MEDIUMINT},{label:ze.INT,key:ze.INT},{label:ze.BIGINT,key:ze.BIGINT},{label:ze.FLOAT,key:ze.FLOAT},{label:ze.DOUBLE,key:ze.DOUBLE},{label:ze.DECIMAL,key:ze.DECIMAL},{label:ze.CHAR,key:ze.CHAR},{label:ze.VARCHAR,key:ze.VARCHAR},{label:ze.TEXT,key:ze.TEXT},{label:ze.TINYTEXT,key:ze.TINYTEXT},{label:ze.MEDIUMTEXT,key:ze.MEDIUMTEXT},{label:ze.LONGTEXT,key:ze.LONGTEXT},{label:ze.BINARY,key:ze.BINARY},{label:ze.VARBINARY,key:ze.VARBINARY},{label:ze.BLOB,key:ze.BLOB},{label:ze.TINYBLOB,key:ze.TINYBLOB},{label:ze.MEDIUMBLOB,key:ze.MEDIUMBLOB},{label:ze.LONGBLOB,key:ze.LONGBLOB},{label:ze.BOOL,key:ze.BOOL},{label:ze.ENUM,key:ze.ENUM},{label:ze.SET,key:ze.SET},{label:ze.JSON,key:ze.JSON}];function QH({data:e,isConnectable:t}){const n=f.useRef({});return f.useCallback(r=>{console.log(r.target.value)},[]),le.jsxs("div",{className:St.customNode,ref:n,children:[le.jsx("div",{className:St.customNodeWrapper,children:"数据库表A"}),le.jsx("div",{className:St.customNodeRow,children:le.jsxs(Dr,{layout:"vertical",size:"small",children:[le.jsxs("div",{className:St.row,children:[le.jsx("div",{className:St.rowCol,style:{width:80},children:"字段名"}),le.jsx("div",{className:St.rowCol,style:{width:92},children:"数据类型"}),le.jsx("div",{className:St.rowCol,style:{width:70},children:"长度/范围"}),le.jsx("div",{className:St.rowCol,style:{width:40},children:"为空"}),le.jsx("div",{className:St.rowCol,style:{width:100},children:"默认值"}),le.jsx("div",{className:St.rowCol,style:{width:40},children:"索引"}),le.jsx("div",{className:St.rowCol,style:{width:40},children:"唯一"}),le.jsx("div",{className:St.rowCol,style:{width:100},children:"描述"})]}),le.jsx(Dr.List,{name:"data",children:(r,{add:o,remove:i,move:a})=>le.jsxs("div",{className:St.form,children:[r.map(l=>le.jsxs("div",{className:H$(St.row,St.formRow),children:[le.jsxs("div",{className:St.formRowLeftWrapper,children:[le.jsx(cn,{id:`${l.name}_custom_point_a`,type:"target",position:xe.Left,isConnectable:t}),le.jsx(cn,{id:`${l.name}_custom_point_b`,type:"source",position:xe.Left,isConnectable:t})]}),le.jsx("div",{className:St.rowCol,style:{width:80},children:le.jsx(Dr.Item,{name:[l.name,"columnName"],children:le.jsx(Zc,{placeholder:"字段名"})})}),le.jsx("div",{className:St.rowCol,style:{width:92},children:le.jsx(Dr.Item,{name:[l.name,"dataType"],children:le.jsx(v8,{getPopupContainer:()=>n.current,placeholder:"数据类型",options:YH})})}),le.jsx("div",{className:St.rowCol,style:{width:70},children:le.jsx(Dr.Item,{name:[l.name,"length"],children:le.jsx(Zc,{placeholder:"长度/范围"})})}),le.jsx("div",{className:St.rowCol,style:{width:40},children:le.jsx(Dr.Item,{name:[l.name,"nullable"],children:le.jsx(Gh,{})})}),le.jsx("div",{className:St.rowCol,style:{width:100},children:le.jsx(Dr.Item,{name:[l.name,"defaultValue"],children:le.jsx(Zc,{placeholder:"默认值"})})}),le.jsx("div",{className:St.rowCol,style:{width:40},children:le.jsx(Dr.Item,{noStyle:!0,name:[l.name,"index"],valuePropName:"checked",children:le.jsx(Gh,{})})}),le.jsx("div",{className:St.rowCol,style:{width:40},children:le.jsx(Dr.Item,{name:[l.name,"unique"],valuePropName:"checked",children:le.jsx(Gh,{})})}),le.jsx("div",{className:St.rowCol,style:{width:100},children:le.jsx(Dr.Item,{name:[l.name,"description"],children:le.jsx(Zc,{placeholder:"描述"})})}),le.jsxs("div",{className:St.formRowRightWrapper,children:[le.jsx(cn,{id:`${l.name}_custom_point_c`,type:"target",position:xe.Right,isConnectable:t}),le.jsx(cn,{id:`${l.name}_custom_point_d`,type:"source",position:xe.Right,isConnectable:t})]})]})),le.jsx(I2,{onClick:()=>o(),children:"添加"})]})})]})})]})}function ZH(e){const{id:t,sourceX:n,sourceY:r,targetX:o,targetY:i,selected:a}=e,{setEdges:l}=Gf();console.log("- props -",e);const[s,c,u]=eC({sourceX:n,sourceY:r,targetX:o,targetY:i});return le.jsxs(le.Fragment,{children:[le.jsx(sl,{id:t,path:s}),a&&le.jsx(d3,{children:le.jsx("button",{style:{position:"absolute",transform:`translate(-50%, -50%) translate(${c}px,${u}px)`,pointerEvents:"all"},onClick:()=>l(d=>d.filter(h=>h.id!==t)),children:"delete"})})]})}const JH=(e=0,t=100)=>Math.floor(Math.random()*(t-e+1))+e,eB=(e=64,t="default")=>{const n={default:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",number:"0123456789",lowerCase:"abcdefghijklmnopqrstuvwxyz",upperCase:"ABCDEFGHIJKLMNOPQRSTUVWXYZ"};let r="";const o=n[t];for(;e--;)r+=o[JH(0,o.length-1)];return r};class tB{constructor(){Id(this,"edges",{});Id(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 nl=new tB;window.manager=nl;var B$=Symbol.for("immer-nothing"),Hw=Symbol.for("immer-draftable"),Gn=Symbol.for("immer-state");function _r(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var rl=Object.getPrototypeOf;function ol(e){return!!e&&!!e[Gn]}function Hi(e){var t;return e?V$(e)||Array.isArray(e)||!!e[Hw]||!!((t=e.constructor)!=null&&t[Hw])||Sd(e)||bd(e):!1}var nB=Object.prototype.constructor.toString();function V$(e){if(!e||typeof e!="object")return!1;const t=rl(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===nB}function Ws(e,t){wd(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function wd(e){const t=e[Gn];return t?t.type_:Array.isArray(e)?1:Sd(e)?2:bd(e)?3:0}function Yp(e,t){return wd(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function W$(e,t,n){const r=wd(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function rB(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Sd(e){return e instanceof Map}function bd(e){return e instanceof Set}function mi(e){return e.copy_||e.base_}function Qp(e,t){if(Sd(e))return new Map(e);if(bd(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&V$(e))return rl(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Gn];let r=Reflect.ownKeys(n);for(let o=0;o1&&(e.set=e.add=e.clear=e.delete=oB),Object.freeze(e),t&&Ws(e,(n,r)=>Us(r,!0))),e}function oB(){_r(2)}function xd(e){return Object.isFrozen(e)}var iB={};function Bi(e){const t=iB[e];return t||_r(0,e),t}var Ks;function U$(){return Ks}function aB(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Bw(e,t){t&&(Bi("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Zp(e){Jp(e),e.drafts_.forEach(lB),e.drafts_=null}function Jp(e){e===Ks&&(Ks=e.parent_)}function Vw(e){return Ks=aB(Ks,e)}function lB(e){const t=e[Gn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Ww(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Gn].modified_&&(Zp(t),_r(4)),Hi(e)&&(e=Sf(t,e),t.parent_||bf(t,e)),t.patches_&&Bi("Patches").generateReplacementPatches_(n[Gn].base_,e,t.patches_,t.inversePatches_)):e=Sf(t,n,[]),Zp(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==B$?e:void 0}function Sf(e,t,n){if(xd(t))return t;const r=t[Gn];if(!r)return Ws(t,(o,i)=>Uw(e,r,t,o,i,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return bf(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let i=o,a=!1;r.type_===3&&(i=new Set(o),o.clear(),a=!0),Ws(i,(l,s)=>Uw(e,r,o,l,s,n,a)),bf(e,o,!1),n&&e.patches_&&Bi("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Uw(e,t,n,r,o,i,a){if(ol(o)){const l=i&&t&&t.type_!==3&&!Yp(t.assigned_,r)?i.concat(r):void 0,s=Sf(e,o,l);if(W$(n,r,s),ol(s))e.canAutoFreeze_=!1;else return}else a&&n.add(o);if(Hi(o)&&!xd(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Sf(e,o),(!t||!t.scope_.parent_)&&bf(e,o)}}function bf(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Us(t,n)}function sB(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:U$(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=Qv;n&&(o=[r],i=Gs);const{revoke:a,proxy:l}=Proxy.revocable(o,i);return r.draft_=l,r.revoke_=a,l}var Qv={get(e,t){if(t===Gn)return e;const n=mi(e);if(!Yp(n,t))return cB(e,n,t);const r=n[t];return e.finalized_||!Hi(r)?r:r===Xh(e.base_,t)?(qh(e),e.copy_[t]=tg(r,e)):r},has(e,t){return t in mi(e)},ownKeys(e){return Reflect.ownKeys(mi(e))},set(e,t,n){const r=K$(mi(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=Xh(mi(e),t),i=o==null?void 0:o[Gn];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(rB(n,o)&&(n!==void 0||Yp(e.base_,t)))return!0;qh(e),eg(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Xh(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,qh(e),eg(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=mi(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){_r(11)},getPrototypeOf(e){return rl(e.base_)},setPrototypeOf(){_r(12)}},Gs={};Ws(Qv,(e,t)=>{Gs[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Gs.deleteProperty=function(e,t){return Gs.set.call(this,e,t,void 0)};Gs.set=function(e,t,n){return Qv.set.call(this,e[0],t,n,e[0])};function Xh(e,t){const n=e[Gn];return(n?mi(n):e)[t]}function cB(e,t,n){var o;const r=K$(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function K$(e,t){if(!(t in e))return;let n=rl(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=rl(n)}}function eg(e){e.modified_||(e.modified_=!0,e.parent_&&eg(e.parent_))}function qh(e){e.copy_||(e.copy_=Qp(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var uB=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const a=this;return function(s=i,...c){return a.produce(s,u=>n.call(this,u,...c))}}typeof n!="function"&&_r(6),r!==void 0&&typeof r!="function"&&_r(7);let o;if(Hi(t)){const i=Vw(this),a=tg(t,void 0);let l=!0;try{o=n(a),l=!1}finally{l?Zp(i):Jp(i)}return Bw(i,r),Ww(o,i)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===B$&&(o=void 0),this.autoFreeze_&&Us(o,!0),r){const i=[],a=[];Bi("Patches").generateReplacementPatches_(t,o,i,a),r(i,a)}return o}else _r(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...l)=>this.produceWithPatches(a,s=>t(s,...l));let r,o;return[this.produce(t,n,(a,l)=>{r=a,o=l}),r,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Hi(e)||_r(8),ol(e)&&(e=fB(e));const t=Vw(this),n=tg(e,void 0);return n[Gn].isManual_=!0,Jp(t),n}finishDraft(e,t){const n=e&&e[Gn];(!n||!n.isManual_)&&_r(9);const{scope_:r}=n;return Bw(r,t),Ww(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=Bi("Patches").applyPatches_;return ol(e)?r(e,t):this.produce(e,o=>r(o,t))}};function tg(e,t){const n=Sd(e)?Bi("MapSet").proxyMap_(e,t):bd(e)?Bi("MapSet").proxySet_(e,t):sB(e,t);return(t?t.scope_:U$()).drafts_.push(n),n}function fB(e){return ol(e)||_r(10,e),G$(e)}function G$(e){if(!Hi(e)||xd(e))return e;const t=e[Gn];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Qp(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Qp(e,!0);return Ws(n,(r,o)=>{W$(n,r,G$(o))}),t&&(t.finalized_=!1),n}var Xn=new uB,dB=Xn.produce;Xn.produceWithPatches.bind(Xn);Xn.setAutoFreeze.bind(Xn);Xn.setUseStrictShallowCopy.bind(Xn);Xn.applyPatches.bind(Xn);Xn.createDraft.bind(Xn);Xn.finishDraft.bind(Xn);function hB(e){var t=f.useState(function(){return Us(typeof e=="function"?e():e,!0)}),n=t[1];return[t[0],f.useCallback(function(r){n(typeof r=="function"?dB(r):Us(r))},[])]}const cs=Symbol(),mB=Symbol(),X$=typeof window>"u"||/ServerSideRendering/.test(window.navigator&&window.navigator.userAgent)?f.useEffect:f.useLayoutEffect,pB=ou.unstable_runWithPriority?e=>ou.unstable_runWithPriority(ou.unstable_NormalPriority,e):e=>e();function gB(e){const t=f.createContext({[cs]:{v:{current:e},n:{current:-1},l:new Set,u:r=>r()}});var n;return t[mB]=t.Provider,t.Provider=(n=t.Provider,({value:r,children:o})=>{const i=f.useRef(r),a=f.useRef(0),[l,s]=f.useState(null);l&&(l(r),s(null));const c=f.useRef();if(!c.current){const u=new Set,d=(h,p)=>{po.unstable_batchedUpdates(()=>{a.current+=1;const w={n:a.current};p!=null&&p.suspense&&(w.n*=-1,w.p=new Promise(v=>{s(()=>b=>{w.v=b,delete w.p,v(b)})})),u.forEach(v=>v(w)),h()})};c.current={[cs]:{v:i,n:a,l:u,u:d}}}return X$(()=>{i.current=r,a.current+=1,pB(()=>{c.current[cs].l.forEach(u=>{u({n:a.current,v:r})})})},[r]),f.createElement(n,{value:c.current},o)}),delete t.Consumer,t}function vB(e,t){const n=f.useContext(e)[cs],{v:{current:r},n:{current:o},l:i}=n,a=t(r),[l,s]=f.useReducer((c,u)=>{if(!u)return[r,a];if("p"in u)throw u.p;if(u.n===o)return Object.is(c[1],a)?c:[r,a];try{if("v"in u){if(Object.is(c[0],u.v))return c;const d=t(u.v);return Object.is(c[1],d)?c:[u.v,d]}}catch{}return[...c]},[r,a]);return Object.is(l[1],a)||s(),X$(()=>(i.add(s),()=>{i.delete(s)}),[i]),l[1]}function yB(e){const t=f.useContext(e)[cs],{u:n}=t;return n}const wB=Symbol(),q$=Symbol(),Ll="a",$u="w";let SB=(e,t)=>new Proxy(e,t);const ng=Object.getPrototypeOf,Kw=new WeakMap,bB=e=>e&&(Kw.has(e)?Kw.get(e):ng(e)===Object.prototype||ng(e)===Array.prototype),Gw=e=>typeof e=="object"&&e!==null,Xw=new WeakMap,Y$=e=>e[q$]||e,Q$=(e,t,n)=>{if(!bB(e))return e;const r=Y$(e),o=(a=>Object.isFrozen(a)||Object.values(Object.getOwnPropertyDescriptors(a)).some(l=>!l.writable))(r);let i=n&&n.get(r);return i&&i[1].f===o||(i=((a,l)=>{const s={f:l};let c=!1;const u=(h,p)=>{if(!c){let w=s[Ll].get(a);if(w||(w={},s[Ll].set(a,w)),h===$u)w[$u]=!0;else{let v=w[h];v||(v=new Set,w[h]=v),v.add(p)}}},d={get:(h,p)=>p===q$?a:(u("k",p),Q$(Reflect.get(h,p),s[Ll],s.c)),has:(h,p)=>p===wB?(c=!0,s[Ll].delete(a),!0):(u("h",p),Reflect.has(h,p)),getOwnPropertyDescriptor:(h,p)=>(u("o",p),Reflect.getOwnPropertyDescriptor(h,p)),ownKeys:h=>(u($u),Reflect.ownKeys(h))};return l&&(d.set=d.deleteProperty=()=>!1),[d,s]})(r,o),i[1].p=SB(o?(a=>{let l=Xw.get(a);if(!l){if(Array.isArray(a))l=Array.from(a);else{const s=Object.getOwnPropertyDescriptors(a);Object.values(s).forEach(c=>{c.configurable=!0}),l=Object.create(ng(a),s)}Xw.set(a,l)}return l})(r):r,i[0]),n&&n.set(r,i)),i[1][Ll]=t,i[1].c=n,i[1].p},rg=(e,t,n,r)=>{if(Object.is(e,t))return!1;if(!Gw(e)||!Gw(t))return!0;const o=n.get(Y$(e));if(!o)return!0;if(r){const a=r.get(e);if(a&&a.n===t)return a.g;r.set(e,{n:t,g:!1})}let i=null;try{for(const a of o.h||[])if(i=Reflect.has(e,a)!==Reflect.has(t,a),i)return i;if(o[$u]===!0){if(i=((a,l)=>{const s=Reflect.ownKeys(a),c=Reflect.ownKeys(l);return s.length!==c.length||s.some((u,d)=>u!==c[d])})(e,t),i)return i}else for(const a of o.o||[])if(i=!!Reflect.getOwnPropertyDescriptor(e,a)!=!!Reflect.getOwnPropertyDescriptor(t,a),i)return i;for(const a of o.k||[])if(i=rg(e[a],t[a],n,r),i)return i;return i===null&&(i=!0),i}finally{r&&r.set(e,{n:t,g:i})}};const xB=e=>()=>{const[,n]=f.useReducer(u=>u+1,0),r=new WeakMap,o=f.useRef(),i=f.useRef(),a=f.useRef();f.useEffect(()=>{o.current=r,i.current!==a.current&&rg(i.current,a.current,r,new WeakMap)&&(i.current=a.current,n())});const l=f.useCallback(u=>(a.current=u,i.current&&i.current!==u&&o.current&&!rg(i.current,u,o.current,new WeakMap)?i.current:(i.current=u,u)),[]),s=e(l),c=f.useMemo(()=>new WeakMap,[]);return Q$(s,r,c)},CB=(e,t)=>{var n,r;typeof t=="boolean"&&(console.warn("boolean option is deprecated, please specify { concurrentMode: true }"),t={concurrentMode:t});const{stateContextName:o="StateContainer",updateContextName:i="UpdateContainer",concurrentMode:a}=t||{},l=gB((n=t)==null?void 0:n.defaultState),s=f.createContext((r=t)==null?void 0:r.defaultUpdate);l.displayName=o,s.displayName=i;const c=w=>{const[v,b]=e(w);return f.createElement(s.Provider,{value:b},f.createElement(l.Provider,{value:v},w.children))},u=w=>{const v=vB(l,w);return f.useDebugValue(v),v},d=xB(u),h=a?()=>{const w=yB(l),v=f.useContext(s);return f.useCallback((...b)=>{let g;return w(()=>{g=v(...b)}),g},[w,v])}:()=>f.useContext(s);return{Provider:c,useTrackedState:d,useTracked:()=>[d(),h()],useUpdate:h,useSelector:u}},EB=()=>hB({activeNode:null}),{Provider:$B,useSelector:Zv,useUpdate:_B}=CB(EB),RB=()=>{const e=_B();return f.useCallback(t=>{e(n=>{n.activeNode=t})},[e])},OB={edgeA:ZH};function IB(){const e=dt(m=>m.connectionNodeId),t=RB(),n=f.useMemo(()=>{const m=nl.getAllNodes().reduce((y,S)=>(y[S.type]=S.component,y),{});return{customNode:X3,nodeA:QH,...m}},[]),r=f.useRef({});f.useEffect(()=>{t(e)},[e]);const[o,i]=f.useState({}),[a,l,s]=h3([]),[c,u,d]=m3([]),h=f.useRef({x:0,y:0}),p=f.useCallback(m=>{u(y=>nC(m,y))},[u]),w=f.useCallback((m,y)=>{var C;m.dataTransfer.setData("application/reactflow",y),m.dataTransfer.effectAllowed="move";const S=(C=m.target)==null?void 0:C.getBoundingClientRect();h.current={x:m.clientX-S.left,y:m.clientY-S.top}},[]),v=f.useCallback(m=>{m.preventDefault(),m.dataTransfer.dropEffect="move"},[]),b=f.useCallback(m=>{m.preventDefault();const y=r.current.getBoundingClientRect(),S=m==null?void 0:m.dataTransfer.getData("application/reactflow");if(typeof S>"u"||!S)return;const C=o==null?void 0:o.project({x:m.clientX-y.left-h.current.y,y:m.clientY-y.top-h.current.y});if(console.log("______",C,m,y),C){let E={id:eB(12),type:S,position:C,data:{label:`${S} node`}};l(x=>x.concat(E))}},[o]),g=f.useMemo(()=>nl.getAllNodes(),[]);return le.jsxs("div",{className:si.layout,children:[le.jsx("div",{className:si.layoutSideMenu,children:le.jsx("div",{className:si.layoutSideMenuWrapper,children:g.map(m=>{const y=m.component;return le.jsxs("div",{className:H$(si.item,"dndnode","input"),children:[le.jsx("div",{className:si.itemIcon,onDragStart:S=>w(S,m.type),draggable:!0,children:le.jsx(y,{isMenu:!0})}),le.jsx("span",{className:si.itemText,children:m.title})]},m.type)})})}),le.jsx("div",{ref:r,className:si.layoutWrapper,children:le.jsxs(zC,{nodes:a,edges:c,onNodesChange:s,onEdgesChange:d,onDrop:b,onInit:i,onDragOver:v,onConnect:p,nodeTypes:n,edgeTypes:OB,children:[le.jsx(N3,{}),le.jsx(E3,{}),le.jsx(F3,{gap:12,size:1})]})})]})}const MB=f.memo(()=>le.jsx($B,{children:le.jsx(mv,{children:le.jsx(IB,{})})})),NB="node_iQTZmnSIbl",PB="node-text_X9ZqNOYdTy",TB="node-handle_HuvCcG4aVH",Jc={node:NB,nodeText:PB,nodeHandle:TB},qw=[xe.Top,xe.Left,xe.Right,xe.Bottom],AB=f.forwardRef((e,t)=>{const{isMenu:n,isConnectable:r}=e,o=Zv(i=>i.activeNode);return f.useEffect(()=>{},[o]),f.useImperativeHandle(t,()=>({})),le.jsx("div",{className:Jc.node,children:!n&&le.jsxs(le.Fragment,{children:[qw.map(i=>le.jsx(cn,{type:"source",className:Jc.nodeHandle,style:{zIndex:o===null?100:-1},position:i,isConnectable:r},i)),qw.map(i=>le.jsx(cn,{type:"target",className:Jc.nodeHandle,style:{zIndex:!e.id&&o!==e.id?100:-1},position:i,isConnectable:r},i)),le.jsx("span",{className:Jc.nodeText,children:"NodeA"})]})})});var Xs;(e=>{(t=>{t.NodeA="NodeA",t.NodeB="NodeB",t.NodeC="NodeC"})(e.NodeType||(e.NodeType={}))})(Xs||(Xs={}));const kB=()=>{nl.registerNode({type:Xs.NodeType.NodeA,title:"NodeA",component:AB,rules:[{sourceNodeType:"",targetNodeType:""}]})},zB="node_BVrz-UV11G",FB="node-text_u-8jRQ4A6-",LB="node-handle_bGQfUpa4S5",eu={node:zB,nodeText:FB,nodeHandle:LB},DB=f.forwardRef((e,t)=>{const{isMenu:n,isConnectable:r}=e,o=Zv(i=>i.activeNode);return f.useImperativeHandle(t,()=>({})),le.jsx("div",{className:eu.node,children:!n&&le.jsxs(le.Fragment,{children:[le.jsx(cn,{type:"source",className:eu.nodeHandle,style:{zIndex:o===null?100:-1},position:xe.Left,isConnectable:r}),le.jsx(cn,{type:"target",className:eu.nodeHandle,style:{zIndex:!e.id&&o!==e.id?100:-1},position:xe.Right,isConnectable:r}),le.jsx("span",{className:eu.nodeText,children:"NodeB"})]})})}),jB=()=>{nl.registerNode({type:Xs.NodeType.NodeB,title:"NodeB",component:DB})},HB="node_RJmSLJOP9P",BB="node-text_SBgrMwK-MC",VB="node-handle_8yJQfqQ8S4",tu={node:HB,nodeText:BB,nodeHandle:VB},WB=f.forwardRef((e,t)=>{const{isMenu:n,isConnectable:r}=e,o=Zv(i=>i.activeNode);return f.useImperativeHandle(t,()=>({})),le.jsx("div",{className:tu.node,children:!n&&le.jsxs(le.Fragment,{children:[le.jsx(cn,{type:"source",className:tu.nodeHandle,style:{zIndex:o===null?100:-1},position:xe.Left,isConnectable:r}),le.jsx(cn,{type:"target",className:tu.nodeHandle,style:{zIndex:!e.id&&o!==e.id?100:-1},position:xe.Right,isConnectable:r}),le.jsx("span",{className:tu.nodeText,children:"NodeC"})]})})}),UB=()=>{nl.registerNode({type:Xs.NodeType.NodeC,title:"NodeC",component:WB})},KB=()=>{kB(),jB(),UB()};KB();function GB(){return le.jsx("div",{children:le.jsx(MB,{})})}function XB(){Yh.createRoot(document.getElementById("root")).render(le.jsx(GB,{}))}XB(); diff --git a/assets/style-2hu82lIe.css b/assets/style-2hu82lIe.css new file mode 100644 index 0000000..f2a8231 --- /dev/null +++ b/assets/style-2hu82lIe.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:fit-content;height:100%;flex:none;border-right:1px solid #f0f0f0}.layout-side-menu-wrapper_EE-YTbnnOD{width:100%;height:fit-content;display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:6px}.layout-wrapper_bnpOxN59pu{flex:auto;width:100px;height:100%}.item_m3Wt2Z4DW8{width:60px;height:fit-content;border-radius:6px;padding:6px;float:left;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;transition:background-color linear .2s}.item_m3Wt2Z4DW8:hover{background-color:#f0f0f0}.item-icon_4MaXoWuQ3K{width:40px;height:40px;flex:none}.item-text_tbmSlvWb-l{font-size:12px;margin-top:6px;text-align:center}.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;position:relative}.node_iQTZmnSIbl:hover .node-text_X9ZqNOYdTy{opacity:1}.node-text_X9ZqNOYdTy{position:absolute;width:100%;height:20px;text-align:center;bottom:-20px;left:0;font-size:12px;line-height:20px;color:#333;opacity:0}.node_iQTZmnSIbl .node-handle_HuvCcG4aVH{width:100%;height:100%;left:0;top:0;transform:translate(0);opacity:0;border-radius:0}.node_BVrz-UV11G{width:40px;height:40px;background-color:orange}.node_BVrz-UV11G:hover .node-text_u-8jRQ4A6-{opacity:1}.node-text_u-8jRQ4A6-{position:absolute;width:100%;height:20px;text-align:center;bottom:-20px;left:0;font-size:12px;line-height:20px;color:#333;opacity:0}.node_BVrz-UV11G .node-handle_bGQfUpa4S5{width:100%;height:100%;left:0;top:0;transform:translate(0);opacity:0;border-radius:0}.node_RJmSLJOP9P{width:40px;height:40px;background-color:#00bfff}.node_RJmSLJOP9P:hover .node-text_SBgrMwK-MC{opacity:1}.node-text_SBgrMwK-MC{position:absolute;width:100%;height:20px;text-align:center;bottom:-20px;left:0;font-size:12px;line-height:20px;color:#333;opacity:0}.node_RJmSLJOP9P .node-handle_8yJQfqQ8S4{width:100%;height:100%;left:0;top:0;transform:translate(0);opacity:0;border-radius:0}*{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..1d748c4 --- /dev/null +++ b/index.html @@ -0,0 +1,17 @@ + + + + + + demo/flow + + + + + +
+ +