function M5(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var wt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var k5={exports:{}},L1={},D5={exports:{}},zn={};/** * @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 sg=Symbol.for("react.element"),HK=Symbol.for("react.portal"),UK=Symbol.for("react.fragment"),WK=Symbol.for("react.strict_mode"),VK=Symbol.for("react.profiler"),KK=Symbol.for("react.provider"),GK=Symbol.for("react.context"),YK=Symbol.for("react.forward_ref"),qK=Symbol.for("react.suspense"),XK=Symbol.for("react.memo"),QK=Symbol.for("react.lazy"),rR=Symbol.iterator;function ZK(e){return e===null||typeof e!="object"?null:(e=rR&&e[rR]||e["@@iterator"],typeof e=="function"?e:null)}var A5={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L5=Object.assign,F5={};function gh(e,t,n){this.props=e,this.context=t,this.refs=F5,this.updater=n||A5}gh.prototype.isReactComponent={};gh.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")};gh.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function z5(){}z5.prototype=gh.prototype;function o$(e,t,n){this.props=e,this.context=t,this.refs=F5,this.updater=n||A5}var i$=o$.prototype=new z5;i$.constructor=o$;L5(i$,gh.prototype);i$.isPureReactComponent=!0;var oR=Array.isArray,B5=Object.prototype.hasOwnProperty,a$={current:null},H5={key:!0,ref:!0,__self:!0,__source:!0};function U5(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)B5.call(t,r)&&!H5.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1>>1,G=H[K];if(0>>1;Ko(fe,V))seo(oe,fe)?(H[K]=oe,H[se]=V,K=se):(H[K]=fe,H[Q]=V,K=Q);else if(seo(oe,V))H[K]=oe,H[se]=V,K=se;else break e}}return W}function o(H,W){var V=H.sortIndex-W.sortIndex;return V!==0?V:H.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var c=[],u=[],d=1,f=null,p=3,g=!1,v=!1,y=!1,S=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(H){for(var W=n(u);W!==null;){if(W.callback===null)r(u);else if(W.startTime<=H)r(u),W.sortIndex=W.expirationTime,t(c,W);else break;W=n(u)}}function E(H){if(y=!1,C(H),!v)if(n(c)!==null)v=!0,B($);else{var W=n(u);W!==null&&F(E,W.startTime-H)}}function $(H,W){v=!1,y&&(y=!1,b(N),N=-1),g=!0;var V=p;try{for(C(W),f=n(c);f!==null&&(!(f.expirationTime>W)||H&&!D());){var K=f.callback;if(typeof K=="function"){f.callback=null,p=f.priorityLevel;var G=K(f.expirationTime<=W);W=e.unstable_now(),typeof G=="function"?f.callback=G:f===n(c)&&r(c),C(W)}else r(c);f=n(c)}if(f!==null)var re=!0;else{var Q=n(u);Q!==null&&F(E,Q.startTime-W),re=!1}return re}finally{f=null,p=V,g=!1}}var O=!1,I=null,N=-1,_=5,T=-1;function D(){return!(e.unstable_now()-T<_)}function j(){if(I!==null){var H=e.unstable_now();T=H;var W=!0;try{W=I(!0,H)}finally{W?P():(O=!1,I=null)}}else O=!1}var P;if(typeof x=="function")P=function(){x(j)};else if(typeof MessageChannel<"u"){var M=new MessageChannel,A=M.port2;M.port1.onmessage=j,P=function(){A.postMessage(null)}}else P=function(){S(j,0)};function B(H){I=H,O||(O=!0,P())}function F(H,W){N=S(function(){H(e.unstable_now())},W)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(H){H.callback=null},e.unstable_continueExecution=function(){v||g||(v=!0,B($))},e.unstable_forceFrameRate=function(H){0>H||125K?(H.sortIndex=V,t(u,H),n(c)===null&&H===n(u)&&(y?(b(N),N=-1):y=!0,F(E,V-K))):(H.sortIndex=G,t(c,H),v||g||(v=!0,B($))),H},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(H){var W=p;return function(){var V=p;p=W;try{return H.apply(this,arguments)}finally{p=V}}}})(G5);K5.exports=G5;var cG=K5.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 Y5=l,Oa=cG;function bt(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"),hC=Object.prototype.hasOwnProperty,uG=/^[: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]*$/,aR={},sR={};function dG(e){return hC.call(sR,e)?!0:hC.call(aR,e)?!1:uG.test(e)?sR[e]=!0:(aR[e]=!0,!1)}function fG(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 hG(e,t,n,r){if(t===null||typeof t>"u"||fG(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 Fi(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 si={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){si[e]=new Fi(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];si[t]=new Fi(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){si[e]=new Fi(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){si[e]=new Fi(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){si[e]=new Fi(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){si[e]=new Fi(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){si[e]=new Fi(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){si[e]=new Fi(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){si[e]=new Fi(e,5,!1,e.toLowerCase(),null,!1,!1)});var l$=/[\-:]([a-z])/g;function c$(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(l$,c$);si[t]=new Fi(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(l$,c$);si[t]=new Fi(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(l$,c$);si[t]=new Fi(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){si[e]=new Fi(e,1,!1,e.toLowerCase(),null,!1,!1)});si.xlinkHref=new Fi("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){si[e]=new Fi(e,1,!1,e.toLowerCase(),null,!0,!0)});function u$(e,t,n,r){var o=si.hasOwnProperty(t)?si[t]:null;(o!==null?o.type!==0:r||!(2s||o[a]!==i[s]){var c=` `+o[a].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=a&&0<=s);break}}}finally{Nw=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Hp(e):""}function pG(e){switch(e.tag){case 5:return Hp(e.type);case 16:return Hp("Lazy");case 13:return Hp("Suspense");case 19:return Hp("SuspenseList");case 0:case 2:case 15:return e=_w(e.type,!1),e;case 11:return e=_w(e.type.render,!1),e;case 1:return e=_w(e.type,!0),e;default:return""}}function vC(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 uf:return"Fragment";case cf:return"Portal";case pC:return"Profiler";case d$:return"StrictMode";case mC:return"Suspense";case gC:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Q5:return(e.displayName||"Context")+".Consumer";case X5:return(e._context.displayName||"Context")+".Provider";case f$:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case h$:return t=e.displayName||null,t!==null?t:vC(e.type)||"Memo";case Fc:t=e._payload,e=e._init;try{return vC(e(t))}catch{}}return null}function mG(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 vC(t);case 8:return t===d$?"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 au(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function J5(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function gG(e){var t=J5(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 zv(e){e._valueTracker||(e._valueTracker=gG(e))}function eP(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=J5(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function wy(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 yC(e,t){var n=t.checked;return Zr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function cR(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=au(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 tP(e,t){t=t.checked,t!=null&&u$(e,"checked",t,!1)}function bC(e,t){tP(e,t);var n=au(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")?xC(e,t.type,n):t.hasOwnProperty("defaultValue")&&xC(e,t.type,au(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function uR(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 xC(e,t,n){(t!=="number"||wy(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Up=Array.isArray;function Pf(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Bv.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Cm(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Zp={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},vG=["Webkit","ms","Moz","O"];Object.keys(Zp).forEach(function(e){vG.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zp[t]=Zp[e]})});function iP(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Zp.hasOwnProperty(e)&&Zp[e]?(""+t).trim():t+"px"}function aP(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=iP(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var yG=Zr({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 CC(e,t){if(t){if(yG[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(bt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(bt(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(bt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(bt(62))}}function EC(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 $C=null;function p$(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var OC=null,jf=null,Mf=null;function hR(e){if(e=dg(e)){if(typeof OC!="function")throw Error(bt(280));var t=e.stateNode;t&&(t=U1(t),OC(e.stateNode,e.type,t))}}function sP(e){jf?Mf?Mf.push(e):Mf=[e]:jf=e}function lP(){if(jf){var e=jf,t=Mf;if(Mf=jf=null,hR(e),t)for(e=0;e>>=0,e===0?32:31-(NG(e)/_G|0)|0}var Hv=64,Uv=4194304;function Wp(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 $y(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 s=a&~o;s!==0?r=Wp(s):(i&=a,i!==0&&(r=Wp(i)))}else a=n&~o,a!==0?r=Wp(a):i!==0&&(r=Wp(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 cg(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ds(t),e[t]=n}function MG(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=em),SR=String.fromCharCode(32),CR=!1;function RP(e,t){switch(e){case"keyup":return lY.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function NP(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var df=!1;function uY(e,t){switch(e){case"compositionend":return NP(t);case"keypress":return t.which!==32?null:(CR=!0,SR);case"textInput":return e=t.data,e===SR&&CR?null:e;default:return null}}function dY(e,t){if(df)return e==="compositionend"||!S$&&RP(e,t)?(e=OP(),H0=b$=Wc=null,df=!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=IR(n)}}function jP(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jP(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function MP(){for(var e=window,t=wy();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=wy(e.document)}return t}function C$(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 xY(e){var t=MP(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&jP(n.ownerDocument.documentElement,n)){if(r!==null&&C$(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=RR(n,i);var a=RR(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,ff=null,PC=null,nm=null,jC=!1;function NR(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;jC||ff==null||ff!==wy(r)||(r=ff,"selectionStart"in r&&C$(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}),nm&&Nm(nm,r)||(nm=r,r=Ry(PC,"onSelect"),0mf||(e.current=FC[mf],FC[mf]=null,mf--)}function Tr(e,t){mf++,FC[mf]=e.current,e.current=t}var su={},vi=hu(su),oa=hu(!1),nd=su;function Yf(e,t){var n=e.type.contextTypes;if(!n)return su;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 ia(e){return e=e.childContextTypes,e!=null}function _y(){Ar(oa),Ar(vi)}function DR(e,t,n){if(vi.current!==su)throw Error(bt(168));Tr(vi,t),Tr(oa,n)}function UP(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(bt(108,mG(e)||"Unknown",o));return Zr({},n,r)}function Ty(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||su,nd=vi.current,Tr(vi,e),Tr(oa,oa.current),!0}function AR(e,t,n){var r=e.stateNode;if(!r)throw Error(bt(169));n?(e=UP(e,t,nd),r.__reactInternalMemoizedMergedChildContext=e,Ar(oa),Ar(vi),Tr(vi,e)):Ar(oa),Tr(oa,n)}var Ul=null,W1=!1,Ww=!1;function WP(e){Ul===null?Ul=[e]:Ul.push(e)}function PY(e){W1=!0,WP(e)}function pu(){if(!Ww&&Ul!==null){Ww=!0;var e=0,t=gr;try{var n=Ul;for(gr=1;e>=a,o-=a,Gl=1<<32-Ds(t)+o|n<N?(_=I,I=null):_=I.sibling;var T=p(b,I,C[N],E);if(T===null){I===null&&(I=_);break}e&&I&&T.alternate===null&&t(b,I),x=i(T,x,N),O===null?$=T:O.sibling=T,O=T,I=_}if(N===C.length)return n(b,I),Wr&&_u(b,N),$;if(I===null){for(;NN?(_=I,I=null):_=I.sibling;var D=p(b,I,T.value,E);if(D===null){I===null&&(I=_);break}e&&I&&D.alternate===null&&t(b,I),x=i(D,x,N),O===null?$=D:O.sibling=D,O=D,I=_}if(T.done)return n(b,I),Wr&&_u(b,N),$;if(I===null){for(;!T.done;N++,T=C.next())T=f(b,T.value,E),T!==null&&(x=i(T,x,N),O===null?$=T:O.sibling=T,O=T);return Wr&&_u(b,N),$}for(I=r(b,I);!T.done;N++,T=C.next())T=g(I,b,N,T.value,E),T!==null&&(e&&T.alternate!==null&&I.delete(T.key===null?N:T.key),x=i(T,x,N),O===null?$=T:O.sibling=T,O=T);return e&&I.forEach(function(j){return t(b,j)}),Wr&&_u(b,N),$}function S(b,x,C,E){if(typeof C=="object"&&C!==null&&C.type===uf&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case Fv:e:{for(var $=C.key,O=x;O!==null;){if(O.key===$){if($=C.type,$===uf){if(O.tag===7){n(b,O.sibling),x=o(O,C.props.children),x.return=b,b=x;break e}}else if(O.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===Fc&&WR($)===O.type){n(b,O.sibling),x=o(O,C.props),x.ref=wp(b,O,C),x.return=b,b=x;break e}n(b,O);break}else t(b,O);O=O.sibling}C.type===uf?(x=qu(C.props.children,b.mode,E,C.key),x.return=b,b=x):(E=X0(C.type,C.key,C.props,null,b.mode,E),E.ref=wp(b,x,C),E.return=b,b=E)}return a(b);case cf:e:{for(O=C.key;x!==null;){if(x.key===O)if(x.tag===4&&x.stateNode.containerInfo===C.containerInfo&&x.stateNode.implementation===C.implementation){n(b,x.sibling),x=o(x,C.children||[]),x.return=b,b=x;break e}else{n(b,x);break}else t(b,x);x=x.sibling}x=Zw(C,b.mode,E),x.return=b,b=x}return a(b);case Fc:return O=C._init,S(b,x,O(C._payload),E)}if(Up(C))return v(b,x,C,E);if(gp(C))return y(b,x,C,E);Xv(b,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,x!==null&&x.tag===6?(n(b,x.sibling),x=o(x,C),x.return=b,b=x):(n(b,x),x=Qw(C,b.mode,E),x.return=b,b=x),a(b)):n(b,x)}return S}var Xf=ZP(!0),JP=ZP(!1),fg={},ml=hu(fg),jm=hu(fg),Mm=hu(fg);function Bu(e){if(e===fg)throw Error(bt(174));return e}function P$(e,t){switch(Tr(Mm,t),Tr(jm,e),Tr(ml,fg),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:SC(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=SC(t,e)}Ar(ml),Tr(ml,t)}function Qf(){Ar(ml),Ar(jm),Ar(Mm)}function ej(e){Bu(Mm.current);var t=Bu(ml.current),n=SC(t,e.type);t!==n&&(Tr(jm,e),Tr(ml,n))}function j$(e){jm.current===e&&(Ar(ml),Ar(jm))}var qr=hu(0);function Ay(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 Vw=[];function M$(){for(var e=0;en?n:4,e(!0);var r=Kw.transition;Kw.transition={};try{e(!1),t()}finally{gr=n,Kw.transition=r}}function gj(){return rs().memoizedState}function DY(e,t,n){var r=nu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},vj(e))yj(t,n);else if(n=YP(e,t,n,r),n!==null){var o=Mi();As(n,e,r,o),bj(n,t,r)}}function AY(e,t,n){var r=nu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(vj(e))yj(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,zs(s,a)){var c=t.interleaved;c===null?(o.next=o,_$(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=YP(e,t,o,r),n!==null&&(o=Mi(),As(n,e,r,o),bj(n,t,r))}}function vj(e){var t=e.alternate;return e===Qr||t!==null&&t===Qr}function yj(e,t){rm=Ly=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function bj(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,g$(e,n)}}var Fy={readContext:ns,useCallback:di,useContext:di,useEffect:di,useImperativeHandle:di,useInsertionEffect:di,useLayoutEffect:di,useMemo:di,useReducer:di,useRef:di,useState:di,useDebugValue:di,useDeferredValue:di,useTransition:di,useMutableSource:di,useSyncExternalStore:di,useId:di,unstable_isNewReconciler:!1},LY={readContext:ns,useCallback:function(e,t){return sl().memoizedState=[e,t===void 0?null:t],e},useContext:ns,useEffect:KR,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,K0(4194308,4,dj.bind(null,t,e),n)},useLayoutEffect:function(e,t){return K0(4194308,4,e,t)},useInsertionEffect:function(e,t){return K0(4,2,e,t)},useMemo:function(e,t){var n=sl();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=sl();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=DY.bind(null,Qr,e),[r.memoizedState,e]},useRef:function(e){var t=sl();return e={current:e},t.memoizedState=e},useState:VR,useDebugValue:F$,useDeferredValue:function(e){return sl().memoizedState=e},useTransition:function(){var e=VR(!1),t=e[0];return e=kY.bind(null,e[1]),sl().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Qr,o=sl();if(Wr){if(n===void 0)throw Error(bt(407));n=n()}else{if(n=t(),Xo===null)throw Error(bt(349));od&30||rj(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,KR(ij.bind(null,r,i,e),[e]),r.flags|=2048,Am(9,oj.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=sl(),t=Xo.identifierPrefix;if(Wr){var n=Yl,r=Gl;n=(r&~(1<<32-Ds(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=km++,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[cl]=t,e[Pm]=r,Rj(e,t,!1,!1),t.stateNode=e;e:{switch(a=EC(n,r),n){case"dialog":kr("cancel",e),kr("close",e),o=r;break;case"iframe":case"object":case"embed":kr("load",e),o=r;break;case"video":case"audio":for(o=0;oJf&&(t.flags|=128,r=!0,Sp(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ay(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Sp(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Wr)return fi(t),null}else 2*mo()-i.renderingStartTime>Jf&&n!==1073741824&&(t.flags|=128,r=!0,Sp(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=mo(),t.sibling=null,n=qr.current,Tr(qr,r?n&1|2:n&1),t):(fi(t),null);case 22:case 23:return V$(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ba&1073741824&&(fi(t),t.subtreeFlags&6&&(t.flags|=8192)):fi(t),null;case 24:return null;case 25:return null}throw Error(bt(156,t.tag))}function KY(e,t){switch($$(t),t.tag){case 1:return ia(t.type)&&_y(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Qf(),Ar(oa),Ar(vi),M$(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return j$(t),null;case 13:if(Ar(qr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(bt(340));qf()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ar(qr),null;case 4:return Qf(),null;case 10:return N$(t.type._context),null;case 22:case 23:return V$(),null;case 24:return null;default:return null}}var Zv=!1,mi=!1,GY=typeof WeakSet=="function"?WeakSet:Set,Bt=null;function bf(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){oo(e,t,r)}else n.current=null}function QC(e,t,n){try{n()}catch(r){oo(e,t,r)}}var tN=!1;function YY(e,t){if(MC=Oy,e=MP(),C$(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,s=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var g;f!==n||o!==0&&f.nodeType!==3||(s=a+o),f!==i||r!==0&&f.nodeType!==3||(c=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(g=f.firstChild)!==null;)p=f,f=g;for(;;){if(f===e)break t;if(p===n&&++u===o&&(s=a),p===i&&++d===r&&(c=a),(g=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=g}n=s===-1||c===-1?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(kC={focusedElem:e,selectionRange:n},Oy=!1,Bt=t;Bt!==null;)if(t=Bt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Bt=e;else for(;Bt!==null;){t=Bt;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,S=v.memoizedState,b=t.stateNode,x=b.getSnapshotBeforeUpdate(t.elementType===t.type?y:Is(t.type,y),S);b.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(bt(163))}}catch(E){oo(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,Bt=e;break}Bt=t.return}return v=tN,tN=!1,v}function om(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&&QC(t,n,i)}o=o.next}while(o!==r)}}function G1(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 ZC(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 Tj(e){var t=e.alternate;t!==null&&(e.alternate=null,Tj(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[cl],delete t[Pm],delete t[LC],delete t[_Y],delete t[TY])),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 Pj(e){return e.tag===5||e.tag===3||e.tag===4}function nN(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Pj(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 JC(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=Ny));else if(r!==4&&(e=e.child,e!==null))for(JC(e,t,n),e=e.sibling;e!==null;)JC(e,t,n),e=e.sibling}function e2(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(e2(e,t,n),e=e.sibling;e!==null;)e2(e,t,n),e=e.sibling}var ni=null,Rs=!1;function Rc(e,t,n){for(n=n.child;n!==null;)jj(e,t,n),n=n.sibling}function jj(e,t,n){if(pl&&typeof pl.onCommitFiberUnmount=="function")try{pl.onCommitFiberUnmount(F1,n)}catch{}switch(n.tag){case 5:mi||bf(n,t);case 6:var r=ni,o=Rs;ni=null,Rc(e,t,n),ni=r,Rs=o,ni!==null&&(Rs?(e=ni,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ni.removeChild(n.stateNode));break;case 18:ni!==null&&(Rs?(e=ni,n=n.stateNode,e.nodeType===8?Uw(e.parentNode,n):e.nodeType===1&&Uw(e,n),Im(e)):Uw(ni,n.stateNode));break;case 4:r=ni,o=Rs,ni=n.stateNode.containerInfo,Rs=!0,Rc(e,t,n),ni=r,Rs=o;break;case 0:case 11:case 14:case 15:if(!mi&&(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)&&QC(n,t,a),o=o.next}while(o!==r)}Rc(e,t,n);break;case 1:if(!mi&&(bf(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){oo(n,t,s)}Rc(e,t,n);break;case 21:Rc(e,t,n);break;case 22:n.mode&1?(mi=(r=mi)||n.memoizedState!==null,Rc(e,t,n),mi=r):Rc(e,t,n);break;default:Rc(e,t,n)}}function rN(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new GY),t.forEach(function(r){var o=rq.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ss(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=mo()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*XY(r/1960))-r,10e?16:e,Vc===null)var r=!1;else{if(e=Vc,Vc=null,Hy=0,qn&6)throw Error(bt(331));var o=qn;for(qn|=4,Bt=e.current;Bt!==null;){var i=Bt,a=i.child;if(Bt.flags&16){var s=i.deletions;if(s!==null){for(var c=0;cmo()-U$?Yu(e,0):H$|=n),aa(e,t)}function Bj(e,t){t===0&&(e.mode&1?(t=Uv,Uv<<=1,!(Uv&130023424)&&(Uv=4194304)):t=1);var n=Mi();e=oc(e,t),e!==null&&(cg(e,t,n),aa(e,n))}function nq(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Bj(e,n)}function rq(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(bt(314))}r!==null&&r.delete(t),Bj(e,n)}var Hj;Hj=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||oa.current)ta=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ta=!1,WY(e,t,n);ta=!!(e.flags&131072)}else ta=!1,Wr&&t.flags&1048576&&VP(t,jy,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;G0(e,t),e=t.pendingProps;var o=Yf(t,vi.current);Df(t,n),o=D$(null,t,r,e,o,n);var i=A$();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,ia(r)?(i=!0,Ty(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,T$(t),o.updater=V1,t.stateNode=o,o._reactInternals=t,WC(t,r,e,n),t=GC(null,t,r,!0,i,n)):(t.tag=0,Wr&&i&&E$(t),Ri(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(G0(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=iq(r),e=Is(r,e),o){case 0:t=KC(null,t,r,e,n);break e;case 1:t=ZR(null,t,r,e,n);break e;case 11:t=XR(null,t,r,e,n);break e;case 14:t=QR(null,t,r,Is(r.type,e),n);break e}throw Error(bt(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Is(r,o),KC(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Is(r,o),ZR(e,t,r,o,n);case 3:e:{if($j(t),e===null)throw Error(bt(387));r=t.pendingProps,i=t.memoizedState,o=i.element,qP(e,t),Dy(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=Zf(Error(bt(423)),t),t=JR(e,t,r,n,o);break e}else if(r!==o){o=Zf(Error(bt(424)),t),t=JR(e,t,r,n,o);break e}else for(Sa=Jc(t.stateNode.containerInfo.firstChild),$a=t,Wr=!0,js=null,n=JP(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(qf(),r===o){t=ic(e,t,n);break e}Ri(e,t,r,n)}t=t.child}return t;case 5:return ej(t),e===null&&BC(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,DC(r,o)?a=null:i!==null&&DC(r,i)&&(t.flags|=32),Ej(e,t),Ri(e,t,a,n),t.child;case 6:return e===null&&BC(t),null;case 13:return Oj(e,t,n);case 4:return P$(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Xf(t,null,r,n):Ri(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Is(r,o),XR(e,t,r,o,n);case 7:return Ri(e,t,t.pendingProps,n),t.child;case 8:return Ri(e,t,t.pendingProps.children,n),t.child;case 12:return Ri(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,Tr(My,r._currentValue),r._currentValue=a,i!==null)if(zs(i.value,a)){if(i.children===o.children&&!oa.current){t=ic(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var c=s.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=Zl(-1,n&-n),c.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),HC(i.return,n,t),s.lanes|=n;break}c=c.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(bt(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),HC(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}Ri(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Df(t,n),o=ns(o),r=r(o),t.flags|=1,Ri(e,t,r,n),t.child;case 14:return r=t.type,o=Is(r,t.pendingProps),o=Is(r.type,o),QR(e,t,r,o,n);case 15:return Sj(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Is(r,o),G0(e,t),t.tag=1,ia(r)?(e=!0,Ty(t)):e=!1,Df(t,n),QP(t,r,o),WC(t,r,o,n),GC(null,t,r,!0,e,n);case 19:return Ij(e,t,n);case 22:return Cj(e,t,n)}throw Error(bt(156,t.tag))};function Uj(e,t){return mP(e,t)}function oq(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 Qa(e,t,n,r){return new oq(e,t,n,r)}function G$(e){return e=e.prototype,!(!e||!e.isReactComponent)}function iq(e){if(typeof e=="function")return G$(e)?1:0;if(e!=null){if(e=e.$$typeof,e===f$)return 11;if(e===h$)return 14}return 2}function ru(e,t){var n=e.alternate;return n===null?(n=Qa(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 X0(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")G$(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case uf:return qu(n.children,o,i,t);case d$:a=8,o|=8;break;case pC:return e=Qa(12,n,t,o|2),e.elementType=pC,e.lanes=i,e;case mC:return e=Qa(13,n,t,o),e.elementType=mC,e.lanes=i,e;case gC:return e=Qa(19,n,t,o),e.elementType=gC,e.lanes=i,e;case Z5:return q1(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case X5:a=10;break e;case Q5:a=9;break e;case f$:a=11;break e;case h$:a=14;break e;case Fc:a=16,r=null;break e}throw Error(bt(130,e==null?e:typeof e,""))}return t=Qa(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function qu(e,t,n,r){return e=Qa(7,e,r,t),e.lanes=n,e}function q1(e,t,n,r){return e=Qa(22,e,r,t),e.elementType=Z5,e.lanes=n,e.stateNode={isHidden:!1},e}function Qw(e,t,n){return e=Qa(6,e,null,t),e.lanes=n,e}function Zw(e,t,n){return t=Qa(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function aq(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=Pw(0),this.expirationTimes=Pw(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pw(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Y$(e,t,n,r,o,i,a,s,c){return e=new aq(e,t,n,s,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Qa(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},T$(i),e}function sq(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Gj)}catch(e){console.error(e)}}Gj(),V5.exports=_a;var Bs=V5.exports;const Vy=Vo(Bs),fq=M5({__proto__:null,default:Vy},[Bs]);var dN=Bs;fC.createRoot=dN.createRoot,fC.hydrateRoot=dN.hydrateRoot;function vo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wt(e){"@babel/helpers - typeof";return Wt=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},Wt(e)}function hq(e,t){if(Wt(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Wt(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Yj(e){var t=hq(e,"string");return Wt(t)==="symbol"?t:String(t)}function fN(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 $o(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mq(e,t){if(t&&(Wt(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $o(e)}function ls(e){var t=pq();return function(){var r=Gy(e),o;if(t){var i=Gy(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return mq(this,o)}}var qj={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 r=[],o=0;o1&&arguments[1]!==void 0?arguments[1]:{},n=[];return Ne.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(zo(r)):t4.isFragment(r)&&r.props?n=n.concat(zo(r.props.children,t)):n.push(r))}),n}var i2={},Sq=function(t){};function Cq(e,t){}function Eq(e,t){}function $q(){i2={}}function Zj(e,t,n){!t&&!i2[n]&&(e(!1,n),i2[n]=!0)}function dr(e,t){Zj(Cq,e,t)}function Jj(e,t){Zj(Eq,e,t)}dr.preMessage=Sq;dr.resetWarned=$q;dr.noteOnce=Jj;function ae(e,t,n){return t=Yj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hN(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 le(e){for(var t=1;t0},e.prototype.connect_=function(){!a2||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Pq?(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(){!a2||!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=Tq.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}(),tM=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof eh(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new Bq(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 eh(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 Hq(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}(),rM=typeof WeakMap<"u"?new WeakMap:new eM,oM=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=jq.getInstance(),r=new Uq(t,n,this);rM.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){oM.prototype[e]=function(){var t;return(t=rM.get(this))[e].apply(t,arguments)}});var Wq=function(){return typeof Xy.ResizeObserver<"u"?Xy.ResizeObserver:oM}(),Kc=new Map;function Vq(e){e.forEach(function(t){var n,r=t.target;(n=Kc.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var iM=new Wq(Vq);function Kq(e,t){Kc.has(e)||(Kc.set(e,new Set),iM.observe(e)),Kc.get(e).add(t)}function Gq(e,t){Kc.has(e)&&(Kc.get(e).delete(t),Kc.get(e).size||(iM.unobserve(e),Kc.delete(e)))}var Yq=function(e){ss(n,e);var t=ls(n);function n(){return vo(this,n),t.apply(this,arguments)}return yo(n,[{key:"render",value:function(){return this.props.children}}]),n}(l.Component),s2=l.createContext(null);function qq(e){var t=e.children,n=e.onBatchResize,r=l.useRef(0),o=l.useRef([]),i=l.useContext(s2),a=l.useCallback(function(s,c,u){r.current+=1;var d=r.current;o.current.push({size:s,element:c,data:u}),Promise.resolve().then(function(){d===r.current&&(n?.(o.current),o.current=[])}),i?.(s,c,u)},[n,i]);return l.createElement(s2.Provider,{value:a},t)}function Xq(e,t){var n=e.children,r=e.disabled,o=l.useRef(null),i=l.useRef(null),a=l.useContext(s2),s=typeof n=="function",c=s?n(o):n,u=l.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!s&&l.isValidElement(c)&&Ks(c),f=d?c.ref:null,p=l.useMemo(function(){return li(f,o)},[f,o]),g=function(){return qy(o.current)||qy(i.current)};l.useImperativeHandle(t,function(){return g()});var v=l.useRef(e);v.current=e;var y=l.useCallback(function(S){var b=v.current,x=b.onResize,C=b.data,E=S.getBoundingClientRect(),$=E.width,O=E.height,I=S.offsetWidth,N=S.offsetHeight,_=Math.floor($),T=Math.floor(O);if(u.current.width!==_||u.current.height!==T||u.current.offsetWidth!==I||u.current.offsetHeight!==N){var D={width:_,height:T,offsetWidth:I,offsetHeight:N};u.current=D;var j=I===Math.round($)?$:I,P=N===Math.round(O)?O:N,M=le(le({},D),{},{offsetWidth:j,offsetHeight:P});a?.(M,S,C),x&&Promise.resolve().then(function(){x(M,S)})}},[]);return l.useEffect(function(){var S=g();return S&&!r&&Kq(S,y),function(){return Gq(S,y)}},[o.current,r]),l.createElement(Yq,{ref:i},d?l.cloneElement(c,{ref:p}):c)}var Qq=l.forwardRef(Xq),Zq="rc-observer-key";function Jq(e,t){var n=e.children,r=typeof n=="function"?[n]:zo(n);return r.map(function(o,i){var a=o?.key||"".concat(Zq,"-").concat(i);return l.createElement(Qq,Re({},e,{key:a,ref:i===0?t:void 0}),o)})}var ki=l.forwardRef(Jq);ki.Collection=qq;function vr(e,t){var n=le({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}function l2(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;mN+=1;var r=mN;function o(i){if(i===0)cM(r),t();else{var a=sM(function(){o(i-1)});r4.set(r,a)}}return o(n),r};yn.cancel=function(e){var t=r4.get(e);return cM(t),lM(t)};function o4(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 nX(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 Ft(e,t){if(e==null)return{};var n=nX(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 os(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=r.has(i);if(dr(!c,"Warning: There may be circular references"),c)return!1;if(i===a)return!0;if(n&&s>1)return!1;r.add(i);var u=s+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var d=0;d0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):iX}function db(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function aX(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function dM(e){return Array.from((d2.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function fM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Bo())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=aX(r),s=a==="prependQueue",c=document.createElement("style");c.setAttribute(vN,a),s&&i&&c.setAttribute(yN,"".concat(i)),n!=null&&n.nonce&&(c.nonce=n?.nonce),c.innerHTML=e;var u=db(t),d=u.firstChild;if(r){if(s){var f=dM(u).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(vN)))return!1;var g=Number(p.getAttribute(yN)||0);return i>=g});if(f.length)return u.insertBefore(c,f[f.length-1].nextSibling),c}u.insertBefore(c,d)}else u.appendChild(c);return c}function hM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=db(t);return dM(n).find(function(r){return r.getAttribute(uM(t))===e})}function Zy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=hM(e,t);if(n){var r=db(t);r.removeChild(n)}}function sX(e,t){var n=d2.get(e);if(!n||!u2(document,n)){var r=fM("",t),o=r.parentNode;d2.set(e,o),e.removeChild(r)}}function th(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=db(n);sX(r,n);var o=hM(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 s;o.nonce=(s=n.csp)===null||s===void 0?void 0:s.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var c=fM(e,n);return c.setAttribute(uM(n),t),c}function pM(e){if(Array.isArray(e))return e}function lX(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function mM(){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 me(e,t){return pM(e)||lX(e,t)||n4(e,t)||mM()}function cX(e,t){if(e.length!==t.length)return!1;for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(s){if(!a)a=void 0;else{var c,u;a=(c=a)===null||c===void 0||(u=c.map)===null||u===void 0?void 0:u.get(s)}}),(r=a)!==null&&r!==void 0&&r.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(u,d){var f=me(u,2),p=f[1];return o.internalGet(d)[1]0,void 0),bN+=1}return yo(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),Jw=new a4;function zm(e){var t=Array.isArray(e)?e:[e];return Jw.has(t)||Jw.set(t,new gM(t)),Jw.get(t)}var xN=new WeakMap;function Jy(e){var t=xN.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof gM?t+=r.id:r&&Wt(r)==="object"?t+=Jy(r):t+=r}),xN.set(e,t)),t}function uX(e,t){return o4("".concat(t,"_").concat(Jy(e)))}var sm="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),vM="_bAmBoO_";function dX(e,t,n){if(Bo()){var r,o;th(e,sm);var i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",t?.(i),document.body.appendChild(i);var a=n?n(i):(r=getComputedStyle(i).content)===null||r===void 0?void 0:r.includes(vM);return(o=i.parentNode)===null||o===void 0||o.removeChild(i),Zy(sm),a}return!1}var eS=void 0;function fX(){return eS===void 0&&(eS=dX("@layer ".concat(sm," { .").concat(sm,' { content: "').concat(vM,'"!important; } }'),function(e){e.className=sm})),eS}var wN=Bo()?l.useLayoutEffect:l.useEffect,Wn=function(t,n){var r=l.useRef(!0);wN(function(){return t(r.current)},n),wN(function(){return r.current=!1,function(){r.current=!0}},[])},Lf=function(t,n){Wn(function(r){if(!r)return t()},n)},hX=le({},lg),SN=hX.useInsertionEffect,pX=function(t,n,r){l.useMemo(t,r),Wn(function(){return n(!0)},r)},mX=SN?function(e,t,n){return SN(function(){return e(),t()},n)}:pX,gX=le({},lg),vX=gX.useInsertionEffect,yX=function(t){var n=[],r=!1;function o(i){r||n.push(i)}return l.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(i){return i()})}},t),o},bX=function(){return function(t){t()}},xX=typeof vX<"u"?yX:bX;function yM(e,t,n,r,o){var i=l.useContext(i4),a=i.cache,s=[e].concat(Ze(t)),c=s.join("_"),u=xX([c]),d=function(v){a.update(s,function(y){var S=y||[],b=me(S,2),x=b[0],C=x===void 0?0:x,E=b[1],$=E,O=$||n(),I=[C,O];return v?v(I):I})};l.useMemo(function(){d()},[c]);var f=a.get(s),p=f[1];return mX(function(){o?.(p)},function(g){return d(function(v){var y=me(v,2),S=y[0],b=y[1];return g&&S===0&&o?.(p),[S+1,b]}),function(){a.update(s,function(v){var y=v||[],S=me(y,2),b=S[0],x=b===void 0?0:b,C=S[1],E=x-1;return E===0?(u(function(){return r?.(C,!1)}),null):[x-1,C]})}},[c]),p}var wX={},SX="css",Au=new Map;function CX(e){Au.set(e,(Au.get(e)||0)+1)}function EX(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(c2,'="').concat(e,'"]'));n.forEach(function(r){if(r[wf]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var $X=0;function OX(e,t){Au.set(e,(Au.get(e)||0)-1);var n=Array.from(Au.keys()),r=n.filter(function(o){var i=Au.get(o)||0;return i<=0});n.length-r.length>$X&&r.forEach(function(o){EX(o,t),Au.delete(o)})}var bM=function(t,n,r,o){var i=r.getDerivativeToken(t),a=le(le({},i),n);return o&&(a=o(a)),a};function IX(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=l.useContext(i4),o=r.cache.instanceId,i=n.salt,a=i===void 0?"":i,s=n.override,c=s===void 0?wX:s,u=n.formatToken,d=n.getComputedToken,f=l.useMemo(function(){return Object.assign.apply(Object,[{}].concat(Ze(t)))},[t]),p=l.useMemo(function(){return Jy(f)},[f]),g=l.useMemo(function(){return Jy(c)},[c]),v=yM("token",[a,e.id,p,g],function(){var y=d?d(f,c,e):bM(f,c,e,u),S=uX(y,a);y._tokenKey=S,CX(S);var b="".concat(SX,"-").concat(o4(S));return y._hashId=b,[y,b]},function(y){OX(y[0]._tokenKey,o)});return v}var RX={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},xM="comm",wM="rule",SM="decl",NX="@import",_X="@keyframes",TX="@layer",PX=Math.abs,s4=String.fromCharCode;function CM(e){return e.trim()}function Q0(e,t,n){return e.replace(t,n)}function jX(e,t){return e.indexOf(t)}function Bm(e,t){return e.charCodeAt(t)|0}function Hm(e,t,n){return e.slice(t,n)}function Wl(e){return e.length}function MX(e){return e.length}function t0(e,t){return t.push(e),e}var fb=1,nh=1,EM=0,is=0,Oo=0,bh="";function l4(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:fb,column:nh,length:a,return:"",siblings:s}}function kX(){return Oo}function DX(){return Oo=is>0?Bm(bh,--is):0,nh--,Oo===10&&(nh=1,fb--),Oo}function Ls(){return Oo=is2||f2(Oo)>3?"":" "}function zX(e,t){for(;--t&&Ls()&&!(Oo<48||Oo>102||Oo>57&&Oo<65||Oo>70&&Oo<97););return hb(e,Z0()+(t<6&&Qu()==32&&Ls()==32))}function h2(e){for(;Ls();)switch(Oo){case e:return is;case 34:case 39:e!==34&&e!==39&&h2(Oo);break;case 40:e===41&&h2(e);break;case 92:Ls();break}return is}function BX(e,t){for(;Ls()&&e+Oo!==47+10;)if(e+Oo===42+42&&Qu()===47)break;return"/*"+hb(t,is-1)+"*"+s4(e===47?e:Ls())}function HX(e){for(;!f2(Qu());)Ls();return hb(e,is)}function UX(e){return LX(J0("",null,null,null,[""],e=AX(e),0,[0],e))}function J0(e,t,n,r,o,i,a,s,c){for(var u=0,d=0,f=a,p=0,g=0,v=0,y=1,S=1,b=1,x=0,C="",E=o,$=i,O=r,I=C;S;)switch(v=x,x=Ls()){case 40:if(v!=108&&Bm(I,f-1)==58){jX(I+=Q0(tS(x),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:I+=tS(x);break;case 9:case 10:case 13:case 32:I+=FX(v);break;case 92:I+=zX(Z0()-1,7);continue;case 47:switch(Qu()){case 42:case 47:t0(WX(BX(Ls(),Z0()),t,n,c),c);break;default:I+="/"}break;case 123*y:s[u++]=Wl(I)*b;case 125*y:case 59:case 0:switch(x){case 0:case 125:S=0;case 59+d:b==-1&&(I=Q0(I,/\f/g,"")),g>0&&Wl(I)-f&&t0(g>32?EN(I+";",r,n,f-1,c):EN(Q0(I," ","")+";",r,n,f-2,c),c);break;case 59:I+=";";default:if(t0(O=CN(I,t,n,u,d,o,s,C,E=[],$=[],f,i),i),x===123)if(d===0)J0(I,t,O,O,E,i,f,s,$);else switch(p===99&&Bm(I,3)===110?100:p){case 100:case 108:case 109:case 115:J0(e,O,O,r&&t0(CN(e,O,O,0,0,o,s,C,o,E=[],f,$),$),o,$,f,s,r?E:$);break;default:J0(I,O,O,O,[""],$,0,s,$)}}u=d=g=0,y=b=1,C=I="",f=a;break;case 58:f=1+Wl(I),g=v;default:if(y<1){if(x==123)--y;else if(x==125&&y++==0&&DX()==125)continue}switch(I+=s4(x),x*y){case 38:b=d>0?1:(I+="\f",-1);break;case 44:s[u++]=(Wl(I)-1)*b,b=1;break;case 64:Qu()===45&&(I+=tS(Ls())),p=Qu(),d=f=Wl(C=I+=HX(Z0())),x++;break;case 45:v===45&&Wl(I)==2&&(y=0)}}return i}function CN(e,t,n,r,o,i,a,s,c,u,d,f){for(var p=o-1,g=o===0?i:[""],v=MX(g),y=0,S=0,b=0;y0?g[x]+" "+C:Q0(C,/&\f/g,g[x])))&&(c[b++]=E);return l4(e,t,n,o===0?wM:s,c,u,d,f)}function WX(e,t,n,r){return l4(e,t,n,xM,s4(kX()),Hm(e,2,-2),0,r)}function EN(e,t,n,r,o){return l4(e,t,n,SM,Hm(e,0,r),Hm(e,r+1,-1),r,o)}function p2(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,s=n.hashId,c=n.layer;n.path;var u=n.hashPriority,d=n.transformers,f=d===void 0?[]:d;n.linters;var p="",g={};function v(C){var E=C.getName(s);if(!g[E]){var $=e(C.style,n,{root:!1,parentSelectors:a}),O=me($,1),I=O[0];g[E]="@keyframes ".concat(C.getName(s)).concat(I)}}function y(C){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return C.forEach(function($){Array.isArray($)?y($,E):$&&E.push($)}),E}var S=y(Array.isArray(t)?t:[t]);if(S.forEach(function(C){var E=typeof C=="string"&&!o?{}:C;if(typeof E=="string")p+="".concat(E,` `);else if(E._keyframe)v(E);else{var $=f.reduce(function(O,I){var N;return(I==null||(N=I.visit)===null||N===void 0?void 0:N.call(I,O))||O},E);Object.keys($).forEach(function(O){var I=$[O];if(Wt(I)==="object"&&I&&(O!=="animationName"||!I._keyframe)&&!XX(I)){var N=!1,_=O.trim(),T=!1;(o||i)&&s?_.startsWith("@")?N=!0:_=QX(O,s,u):o&&!s&&(_==="&"||_==="")&&(_="",T=!0);var D=e(I,n,{root:T,injectHash:N,parentSelectors:[].concat(Ze(a),[_])}),j=me(D,2),P=j[0],M=j[1];g=le(le({},g),M),p+="".concat(_).concat(P)}else{let F=function(H,W){var V=H.replace(/[A-Z]/g,function(G){return"-".concat(G.toLowerCase())}),K=W;!RX[H]&&typeof K=="number"&&K!==0&&(K="".concat(K,"px")),H==="animationName"&&W!==null&&W!==void 0&&W._keyframe&&(v(W),K=W.getName(s)),p+="".concat(V,":").concat(K,";")};var A,B=(A=I?.value)!==null&&A!==void 0?A:I;Wt(I)==="object"&&I!==null&&I!==void 0&&I[IM]&&Array.isArray(B)?B.forEach(function(H){F(O,H)}):F(O,B)}})}}),!o)p="{".concat(p,"}");else if(c&&fX()){var b=c.split(","),x=b[b.length-1].trim();p="@layer ".concat(x," {").concat(p,"}"),b.length>1&&(p="@layer ".concat(c,"{%%%:%}").concat(p))}return[p,g]};function JX(e,t){return o4("".concat(e.join("%")).concat(t))}function eQ(){return null}function m2(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,s=e.clientOnly,c=e.order,u=c===void 0?0:c,d=l.useContext(i4),f=d.autoClear;d.mock;var p=d.defaultCache,g=d.hashPriority,v=d.container,y=d.ssrInline,S=d.transformers,b=d.linters,x=d.cache,C=n._tokenKey,E=[C].concat(Ze(r)),$=ON,O=yM("style",E,function(){var D=E.join("|");if(GX(D)){var j=YX(D),P=me(j,2),M=P[0],A=P[1];if(M)return[M,C,A,{},s,u]}var B=t(),F=ZX(B,{hashId:o,hashPriority:g,layer:i,path:r.join("-"),transformers:S,linters:b}),H=me(F,2),W=H[0],V=H[1],K=IN(W),G=JX(E,K);return[K,C,G,V,s,u]},function(D,j){var P=me(D,3),M=P[2];(j||f)&&ON&&Zy(M,{mark:Xu})},function(D){var j=me(D,4),P=j[0];j[1];var M=j[2],A=j[3];if($&&P!==$M){var B={mark:Xu,prepend:"queue",attachTo:v,priority:u},F=typeof a=="function"?a():a;F&&(B.csp={nonce:F});var H=th(P,M,B);H[wf]=x.instanceId,H.setAttribute(c2,C),Object.keys(A).forEach(function(W){th(IN(A[W]),"_effect-".concat(W),B)})}}),I=me(O,3),N=I[0],_=I[1],T=I[2];return function(D){var j;if(!y||$||!p)j=l.createElement(eQ,null);else{var P;j=l.createElement("style",Re({},(P={},ae(P,c2,_),ae(P,Xu,T),P),{dangerouslySetInnerHTML:{__html:N}}))}return l.createElement(l.Fragment,null,j,D)}}var vn=function(){function e(t,n){vo(this,e),ae(this,"name",void 0),ae(this,"style",void 0),ae(this,"_keyframe",!0),this.name=t,this.style=n}return yo(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 Ad(e){return e.notSplit=!0,e}Ad(["borderTop","borderBottom"]),Ad(["borderTop"]),Ad(["borderBottom"]),Ad(["borderLeft","borderRight"]),Ad(["borderLeft"]),Ad(["borderRight"]);var tQ=l.createContext({});const c4=tQ;function RM(e){return pM(e)||aM(e)||n4(e)||mM()}function Ca(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Ca(e,t.slice(0,-1))?e:NM(e,t,n,r)}function nQ(e){return Wt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function RN(e){return Array.isArray(e)?[]:{}}var rQ=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Sf(){for(var e=arguments.length,t=new Array(e),n=0;nty.reduce((e,t)=>Object.assign(Object.assign({},e),t),Hs.Modal);function lQ(e){if(e){const t=Object.assign({},e);return ty.push(t),ey=NN(),()=>{ty=ty.filter(n=>n!==t),ey=NN()}}ey=Object.assign({},Hs.Modal)}function jM(){return ey}const cQ=l.createContext(void 0),u4=cQ,uQ=(e,t)=>{const n=l.useContext(u4),r=l.useMemo(()=>{var i;const a=t||Hs[e],s=(i=n?.[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,n]),o=l.useMemo(()=>{const i=n?.locale;return n?.exist&&!i?Hs.locale:i},[n]);return[r,o]},pc=uQ,dQ="internalMark",fQ=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;l.useEffect(()=>lQ(t&&t.Modal),[t]);const o=l.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return l.createElement(u4.Provider,{value:o},n)},hQ=fQ,t1=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],pQ="5.8.5";function ai(e,t){mQ(e)&&(e="100%");var n=gQ(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 n0(e){return Math.min(1,Math.max(0,e))}function mQ(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function gQ(e){return typeof e=="string"&&e.indexOf("%")!==-1}function MM(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function r0(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Hu(e){return e.length===1?"0"+e:String(e)}function vQ(e,t,n){return{r:ai(e,255)*255,g:ai(t,255)*255,b:ai(n,255)*255}}function _N(e,t,n){e=ai(e,255),t=ai(t,255),n=ai(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,s=(r+o)/2;if(r===o)a=0,i=0;else{var c=r-o;switch(a=s>.5?c/(2-r-o):c/(r+o),r){case e:i=(t-n)/c+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function yQ(e,t,n){var r,o,i;if(e=ai(e,360),t=ai(t,100),n=ai(n,100),t===0)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=nS(s,a,e+1/3),o=nS(s,a,e),i=nS(s,a,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function g2(e,t,n){e=ai(e,255),t=ai(t,255),n=ai(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,s=r-o,c=r===0?0:s/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/s+(t>16,g:(e&65280)>>8,b:e&255}}var y2={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 of(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,s=!1;return typeof e=="string"&&(e=$Q(e)),typeof e=="object"&&(jl(e.r)&&jl(e.g)&&jl(e.b)?(t=vQ(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):jl(e.h)&&jl(e.s)&&jl(e.v)?(r=r0(e.s),o=r0(e.v),t=bQ(e.h,r,o),a=!0,s="hsv"):jl(e.h)&&jl(e.s)&&jl(e.l)&&(r=r0(e.s),i=r0(e.l),t=yQ(e.h,r,i),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=MM(n),{ok:a,format:e.format||s,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 CQ="[-\\+]?\\d+%?",EQ="[-\\+]?\\d*\\.\\d+%?",Gc="(?:".concat(EQ,")|(?:").concat(CQ,")"),rS="[\\s|\\(]+(".concat(Gc,")[,|\\s]+(").concat(Gc,")[,|\\s]+(").concat(Gc,")\\s*\\)?"),oS="[\\s|\\(]+(".concat(Gc,")[,|\\s]+(").concat(Gc,")[,|\\s]+(").concat(Gc,")[,|\\s]+(").concat(Gc,")\\s*\\)?"),$s={CSS_UNIT:new RegExp(Gc),rgb:new RegExp("rgb"+rS),rgba:new RegExp("rgba"+oS),hsl:new RegExp("hsl"+rS),hsla:new RegExp("hsla"+oS),hsv:new RegExp("hsv"+rS),hsva:new RegExp("hsva"+oS),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 $Q(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(y2[e])e=y2[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=$s.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=$s.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=$s.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=$s.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=$s.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=$s.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=$s.hex8.exec(e),n?{r:ya(n[1]),g:ya(n[2]),b:ya(n[3]),a:TN(n[4]),format:t?"name":"hex8"}:(n=$s.hex6.exec(e),n?{r:ya(n[1]),g:ya(n[2]),b:ya(n[3]),format:t?"name":"hex"}:(n=$s.hex4.exec(e),n?{r:ya(n[1]+n[1]),g:ya(n[2]+n[2]),b:ya(n[3]+n[3]),a:TN(n[4]+n[4]),format:t?"name":"hex8"}:(n=$s.hex3.exec(e),n?{r:ya(n[1]+n[1]),g:ya(n[2]+n[2]),b:ya(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function jl(e){return!!$s.CSS_UNIT.exec(String(e))}var kn=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=SQ(t)),this.originalInput=t;var o=of(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,s=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),s<=.03928?o=s/12.92:o=Math.pow((s+.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=MM(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=g2(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=g2(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=_N(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=_N(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),v2(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),xQ(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(ai(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(ai(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="#"+v2(this.r,this.g,this.b,!1),n=0,r=Object.entries(y2);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=n0(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=n0(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=n0(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=n0(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=[],s=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+s)%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)-o0*t:Math.round(e.h)+o0*t:r=n?Math.round(e.h)+o0*t:Math.round(e.h)-o0*t,r<0?r+=360:r>=360&&(r-=360),r}function kN(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-PN*t:t===DM?r=e.s+PN:r=e.s+OQ*t,r>1&&(r=1),n&&t===kM&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function DN(e,t,n){var r;return n?r=e.v+IQ*t:r=e.v-RQ*t,r>1&&(r=1),Number(r.toFixed(2))}function ac(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=of(e),o=kM;o>0;o-=1){var i=jN(r),a=i0(of({h:MN(i,o,!0),s:kN(i,o,!0),v:DN(i,o,!0)}));n.push(a)}n.push(i0(r));for(var s=1;s<=DM;s+=1){var c=jN(r),u=i0(of({h:MN(c,s),s:kN(c,s),v:DN(c,s)}));n.push(u)}return t.theme==="dark"?NQ.map(function(d){var f=d.index,p=d.opacity,g=i0(_Q(of(t.backgroundColor||"#141414"),of(n[f]),p*100));return g}):n}var Ff={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"},lm={},iS={};Object.keys(Ff).forEach(function(e){lm[e]=ac(Ff[e]),lm[e].primary=lm[e][5],iS[e]=ac(Ff[e],{theme:"dark",backgroundColor:"#141414"}),iS[e].primary=iS[e][5]});var TQ=lm.gold,PQ=lm.blue;const jQ=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},AM=jQ;function MQ(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 d4={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"},pg=Object.assign(Object.assign({},d4),{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});function LM(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:c,colorBgBase:u,colorTextBase:d}=e,f=n(c),p=n(o),g=n(i),v=n(a),y=n(s),S=r(u,d),b=e.colorLink||e.colorInfo,x=n(b);return Object.assign(Object.assign({},S),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:v[1],colorErrorBgHover:v[2],colorErrorBorder:v[3],colorErrorBorderHover:v[4],colorErrorHover:v[5],colorError:v[6],colorErrorActive:v[7],colorErrorTextHover:v[8],colorErrorText:v[9],colorErrorTextActive:v[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:y[1],colorInfoBgHover:y[2],colorInfoBorder:y[3],colorInfoBorderHover:y[4],colorInfoHover:y[4],colorInfo:y[6],colorInfoActive:y[7],colorInfoTextHover:y[8],colorInfoText:y[9],colorInfoTextActive:y[10],colorLinkHover:x[4],colorLink:x[6],colorLinkActive:x[7],colorBgMask:new kn("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const kQ=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>16?16:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}},DQ=kQ;function AQ(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},DQ(r))}const Ml=(e,t)=>new kn(e).setAlpha(t).toRgbString(),Ep=(e,t)=>new kn(e).darken(t).toHexString(),LQ=e=>{const t=ac(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]}},FQ=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Ml(r,.88),colorTextSecondary:Ml(r,.65),colorTextTertiary:Ml(r,.45),colorTextQuaternary:Ml(r,.25),colorFill:Ml(r,.15),colorFillSecondary:Ml(r,.06),colorFillTertiary:Ml(r,.04),colorFillQuaternary:Ml(r,.02),colorBgLayout:Ep(n,4),colorBgContainer:Ep(n,0),colorBgElevated:Ep(n,0),colorBgSpotlight:Ml(r,.85),colorBorder:Ep(n,15),colorBorderSecondary:Ep(n,6)}};function zQ(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 BQ=e=>{const t=zQ(e),n=t.map(o=>o.size),r=t.map(o=>o.lineHeight);return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:r[1],lineHeightLG:r[2],lineHeightSM:r[0],lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}},FM=BQ;function mg(e){const t=Object.keys(d4).map(n=>{const r=ac(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),LM(e,{generateColorPalettes:LQ,generateNeutralColorPalettes:FQ})),FM(e.fontSize)),MQ(e)),AM(e)),AQ(e))}const zM=zm(mg),n1={token:pg,hashed:!0},BM=Ne.createContext(n1);function aS(e){return e>=0&&e<=255}function a0(e,t){const{r:n,g:r,b:o,a:i}=new kn(e).toRgb();if(i<1)return e;const{r:a,g:s,b:c}=new kn(t).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((n-a*(1-u))/u),f=Math.round((r-s*(1-u))/u),p=Math.round((o-c*(1-u))/u);if(aS(d)&&aS(f)&&aS(p))return new kn({r:d,g:f,b:p,a:Math.round(u*100)/100}).toRgbString()}return new kn({r:n,g:r,b:o,a:1}).toRgbString()}var HQ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{delete r[p]});const o=Object.assign(Object.assign({},n),r),i=480,a=576,s=768,c=992,u=1200,d=1600;if(o.motion===!1){const p="0s";o.motionDurationFast=p,o.motionDurationMid=p,o.motionDurationSlow=p}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:a0(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:a0(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:a0(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:a0(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowSecondary:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowTertiary:` 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02) `,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:c-1,screenLG:c,screenLGMin:c,screenLGMax:u-1,screenXL:u,screenXLMin:u,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` 0 1px 2px -2px ${new kn("rgba(0, 0, 0, 0.16)").toRgbString()}, 0 3px 6px 0 ${new kn("rgba(0, 0, 0, 0.12)").toRgbString()}, 0 5px 12px 4px ${new kn("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 AN=globalThis&&globalThis.__rest||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=AN(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=f4(a),i&&Object.entries(i).forEach(s=>{let[c,u]=s;const{theme:d}=u,f=AN(u,["theme"]);let p=f;d&&(p=HM(Object.assign(Object.assign({},a),f),{override:f},d)),a[c]=p}),a};function mc(){const{token:e,hashed:t,theme:n,components:r}=Ne.useContext(BM),o=`${pQ}-${t||""}`,i=n||zM,[a,s]=IX(i,[pg,e],{salt:o,override:Object.assign({override:e},r),getComputedToken:HM,formatToken:f4});return[i,a,t?s:""]}function Lo(e){var t=l.useRef();t.current=e;var n=l.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;at||(e?`ant-${e}`:"ant"),St=l.createContext({getPrefixCls:UQ,iconPrefixCls:h4}),p4=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),UM=(e,t,n,r,o)=>{const i=e/2,a=0,s=i,c=n*1/Math.sqrt(2),u=i-n*(1-1/Math.sqrt(2)),d=i-t*(1/Math.sqrt(2)),f=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),p=2*i-d,g=f,v=2*i-c,y=u,S=2*i-a,b=s,x=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),C=n*(Math.sqrt(2)-1);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:r,clipPath:{_multi_value_:!0,value:[`polygon(${C}px 100%, 50% ${C}px, ${2*i-C}px 100%, ${C}px 100%)`,`path('M ${a} ${s} A ${n} ${n} 0 0 0 ${c} ${u} L ${d} ${f} A ${t} ${t} 0 0 1 ${p} ${g} L ${v} ${y} A ${n} ${n} 0 0 0 ${S} ${b} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:x,height:x,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:o,zIndex:0,background:"transparent"}}},Us={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},En=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),xh=()=>({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"}}),sc=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),WQ=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"}}}),VQ=(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"}}}}},vl=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),lu=e=>({"&:focus-visible":Object.assign({},vl(e))}),WM=typeof CSSINJS_STATISTIC<"u";let b2=!0;function sn(){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]})})}),b2=!0,r}const LN={};function KQ(){}function GQ(e){let t,n=e,r=KQ;return WM&&(t=new Set,n=new Proxy(e,{get(o,i){return b2&&t.add(i),o[i]}}),r=(o,i)=>{var a;LN[o]={global:Array.from(t),component:Object.assign(Object.assign({},(a=LN[o])===null||a===void 0?void 0:a.component),i)}}),{token:n,keys:t,flush:r}}const YQ=(e,t)=>{const[n,r]=mc();return m2({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},xh()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},VM=YQ;function Pn(e,t,n,r){const o=Array.isArray(e)?e:[e,e],[i]=o,a=o.join("-");return s=>{const[c,u,d]=mc(),{getPrefixCls:f,iconPrefixCls:p,csp:g}=l.useContext(St),v=f(),y={theme:c,token:u,hashId:d,nonce:()=>g?.nonce,clientOnly:r?.clientOnly,order:-999};return m2(Object.assign(Object.assign({},y),{clientOnly:!1,path:["Shared",v]}),()=>[{"&":WQ(u)}]),VM(p),[m2(Object.assign(Object.assign({},y),{path:[a,s,p]}),()=>{const{token:S,flush:b}=GQ(u),x=Object.assign({},u[i]);if(r?.deprecatedTokens){const{deprecatedTokens:N}=r;N.forEach(_=>{let[T,D]=_;var j;(x?.[T]||x?.[D])&&((j=x[D])!==null&&j!==void 0||(x[D]=x?.[T]))})}const C=typeof n=="function"?n(sn(S,x??{})):n,E=Object.assign(Object.assign({},C),x),$=`.${s}`,O=sn(S,{componentCls:$,prefixCls:s,iconCls:`.${p}`,antCls:`.${v}`},E),I=t(O,{hashId:d,prefixCls:s,rootPrefixCls:v,iconPrefixCls:p,overrideComponentToken:x});return b(i,E),[r?.resetStyle===!1?null:VQ(u,s),I]}),d]}}function pb(e,t){return t1.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))},{})}const qQ=`-ant-${Date.now()}-${Math.random()}`;function XQ(e,t){const n={},r=(a,s)=>{let c=a.clone();return c=s?.(c)||c,c.toRgbString()},o=(a,s)=>{const c=new kn(a),u=ac(c.toRgbString());n[`${s}-color`]=r(c),n[`${s}-color-disabled`]=u[1],n[`${s}-color-hover`]=u[4],n[`${s}-color-active`]=u[6],n[`${s}-color-outline`]=c.clone().setAlpha(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=u[0],n[`${s}-color-deprecated-border`]=u[2]};if(t.primaryColor){o(t.primaryColor,"primary");const a=new kn(t.primaryColor),s=ac(a.toRgbString());s.forEach((u,d)=>{n[`primary-${d+1}`]=u}),n["primary-color-deprecated-l-35"]=r(a,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=r(a,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=r(a,u=>u.setAlpha(u.getAlpha()*.12));const c=new kn(s[0]);n["primary-color-active-deprecated-f-30"]=r(c,u=>u.setAlpha(u.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(c,u=>u.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),` :root { ${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(` `)} } `.trim()}function QQ(e,t){const n=XQ(e,t);Bo()&&th(n,`${qQ}-dynamic-theme`)}const x2=l.createContext(!1),m4=e=>{let{children:t,disabled:n}=e;const r=l.useContext(x2);return l.createElement(x2.Provider,{value:n??r},t)},cs=x2,w2=l.createContext(void 0),KM=e=>{let{children:t,size:n}=e;const r=l.useContext(w2);return l.createElement(w2.Provider,{value:n||r},t)},mb=w2;function ZQ(){const e=l.useContext(cs),t=l.useContext(mb);return{componentDisabled:e,componentSize:t}}function JQ(e,t){const n=e||{},r=n.inherit===!1||!t?n1:t;return hc(()=>{if(!e)return t;const o=Object.assign({},r.components);return Object.keys(e.components||{}).forEach(i=>{o[i]=Object.assign(Object.assign({},o[i]),e.components[i])}),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:o})},[n,r],(o,i)=>o.some((a,s)=>{const c=i[s];return!os(a,c,!0)}))}var eZ=["children"],GM=l.createContext({});function tZ(e){var t=e.children,n=Ft(e,eZ);return l.createElement(GM.Provider,{value:n},t)}var nZ=function(e){ss(n,e);var t=ls(n);function n(){return vo(this,n),t.apply(this,arguments)}return yo(n,[{key:"render",value:function(){return this.props.children}}]),n}(l.Component),Pu="none",s0="appear",l0="enter",c0="leave",FN="none",_s="prepare",Cf="start",Ef="active",g4="end",YM="prepared";function zN(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 rZ(e,t){var n={animationend:zN("Animation","AnimationEnd"),transitionend:zN("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var oZ=rZ(Bo(),typeof window<"u"?window:{}),qM={};if(Bo()){var iZ=document.createElement("div");qM=iZ.style}var u0={};function XM(e){if(u0[e])return u0[e];var t=oZ[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=yn(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i}return l.useEffect(function(){return function(){t()}},[]),[n,t]};var lZ=[_s,Cf,Ef,g4],cZ=[_s,YM],tk=!1,uZ=!0;function nk(e){return e===Ef||e===g4}const dZ=function(e,t,n){var r=ou(FN),o=me(r,2),i=o[0],a=o[1],s=sZ(),c=me(s,2),u=c[0],d=c[1];function f(){a(_s,!0)}var p=t?cZ:lZ;return ek(function(){if(i!==FN&&i!==g4){var g=p.indexOf(i),v=p[g+1],y=n(i);y===tk?a(v,!0):v&&u(function(S){function b(){S.isCanceled()||a(v,!0)}y===!0?b():Promise.resolve(y).then(b)})}},[e,i]),l.useEffect(function(){return function(){d()}},[]),[f,i]};function fZ(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,a=r.motionAppear,s=a===void 0?!0:a,c=r.motionLeave,u=c===void 0?!0:c,d=r.motionDeadline,f=r.motionLeaveImmediately,p=r.onAppearPrepare,g=r.onEnterPrepare,v=r.onLeavePrepare,y=r.onAppearStart,S=r.onEnterStart,b=r.onLeaveStart,x=r.onAppearActive,C=r.onEnterActive,E=r.onLeaveActive,$=r.onAppearEnd,O=r.onEnterEnd,I=r.onLeaveEnd,N=r.onVisibleChanged,_=ou(),T=me(_,2),D=T[0],j=T[1],P=ou(Pu),M=me(P,2),A=M[0],B=M[1],F=ou(null),H=me(F,2),W=H[0],V=H[1],K=l.useRef(!1),G=l.useRef(null);function re(){return n()}var Q=l.useRef(!1);function fe(){B(Pu,!0),V(null,!0)}function se(Me){var Ie=re();if(!(Me&&!Me.deadline&&Me.target!==Ie)){var Fe=Q.current,Ge;A===s0&&Fe?Ge=$?.(Ie,Me):A===l0&&Fe?Ge=O?.(Ie,Me):A===c0&&Fe&&(Ge=I?.(Ie,Me)),A!==Pu&&Fe&&Ge!==!1&&fe()}}var oe=aZ(se),ie=me(oe,1),ge=ie[0],ve=function(Ie){var Fe,Ge,ft;switch(Ie){case s0:return Fe={},ae(Fe,_s,p),ae(Fe,Cf,y),ae(Fe,Ef,x),Fe;case l0:return Ge={},ae(Ge,_s,g),ae(Ge,Cf,S),ae(Ge,Ef,C),Ge;case c0:return ft={},ae(ft,_s,v),ae(ft,Cf,b),ae(ft,Ef,E),ft;default:return{}}},he=l.useMemo(function(){return ve(A)},[A]),be=dZ(A,!e,function(Me){if(Me===_s){var Ie=he[_s];return Ie?Ie(re()):tk}if(Ee in he){var Fe;V(((Fe=he[Ee])===null||Fe===void 0?void 0:Fe.call(he,re(),null))||null)}return Ee===Ef&&(ge(re()),d>0&&(clearTimeout(G.current),G.current=setTimeout(function(){se({deadline:!0})},d))),Ee===YM&&fe(),uZ}),ye=me(be,2),Ce=ye[0],Ee=ye[1],je=nk(Ee);Q.current=je,ek(function(){j(t);var Me=K.current;K.current=!0;var Ie;!Me&&t&&s&&(Ie=s0),Me&&t&&i&&(Ie=l0),(Me&&!t&&u||!Me&&f&&!t&&u)&&(Ie=c0);var Fe=ve(Ie);Ie&&(e||Fe[_s])?(B(Ie),Ce()):B(Pu)},[t]),l.useEffect(function(){(A===s0&&!s||A===l0&&!i||A===c0&&!u)&&B(Pu)},[s,i,u]),l.useEffect(function(){return function(){K.current=!1,clearTimeout(G.current)}},[]);var De=l.useRef(!1);l.useEffect(function(){D&&(De.current=!0),D!==void 0&&A===Pu&&((De.current||D)&&N?.(D),De.current=!0)},[D,A]);var _e=W;return he[_s]&&Ee===Cf&&(_e=le({transition:"none"},_e)),[A,Ee,_e,D??t]}function hZ(e){var t=e;Wt(e)==="object"&&(t=e.transitionSupport);function n(o,i){return!!(o.motionName&&t&&i!==!1)}var r=l.forwardRef(function(o,i){var a=o.visible,s=a===void 0?!0:a,c=o.removeOnLeave,u=c===void 0?!0:c,d=o.forceRender,f=o.children,p=o.motionName,g=o.leavedClassName,v=o.eventProps,y=l.useContext(GM),S=y.motion,b=n(o,S),x=l.useRef(),C=l.useRef();function E(){try{return x.current instanceof HTMLElement?x.current:qy(C.current)}catch{return null}}var $=fZ(b,s,E,o),O=me($,4),I=O[0],N=O[1],_=O[2],T=O[3],D=l.useRef(T);T&&(D.current=!0);var j=l.useCallback(function(V){x.current=V,Fm(i,V)},[i]),P,M=le(le({},v),{},{visible:s});if(!f)P=null;else if(I===Pu)T?P=f(le({},M),j):!u&&D.current&&g?P=f(le(le({},M),{},{className:g}),j):d||!u&&!g?P=f(le(le({},M),{},{style:{display:"none"}}),j):P=null;else{var A,B;N===_s?B="prepare":nk(N)?B="active":N===Cf&&(B="start");var F=UN(p,"".concat(I,"-").concat(B));P=f(le(le({},M),{},{className:ne(UN(p,I),(A={},ae(A,F,F&&B),ae(A,p,typeof p=="string"),A)),style:_}),j)}if(l.isValidElement(P)&&Ks(P)){var H=P,W=H.ref;W||(P=l.cloneElement(P,{ref:j}))}return l.createElement(nZ,{ref:C},P)});return r.displayName="CSSMotion",r}const zi=hZ(JM);var S2="add",C2="keep",E2="remove",lS="removed";function pZ(e){var t;return e&&Wt(e)==="object"&&"key"in e?t=e:t={key:e},le(le({},t),{},{key:String(t.key)})}function $2(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(pZ)}function mZ(){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=$2(e),a=$2(t);i.forEach(function(u){for(var d=!1,f=r;f1});return c.forEach(function(u){n=n.filter(function(d){var f=d.key,p=d.status;return f!==u||p!==E2}),n.forEach(function(d){d.key===u&&(d.status=C2)})}),n}var gZ=["component","children","onVisibleChanged","onAllRemoved"],vZ=["status"],yZ=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function bZ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:zi,n=function(r){ss(i,r);var o=ls(i);function i(){var a;vo(this,i);for(var s=arguments.length,c=new Array(s),u=0;ut.endsWith("Color"))}const OZ=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;t!==void 0&&(r1=t),n!==void 0&&(ok=n),r&&($Z(r)?QQ(ny(),r):ik=r)},v4=()=>({getPrefixCls:(e,t)=>t||(e?`${ny()}-${e}`:ny()),getIconPrefixCls:EZ,getRootPrefixCls:()=>r1||ny(),getTheme:()=>ik}),IZ=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:s,componentSize:c,direction:u,space:d,virtual:f,dropdownMatchSelectWidth:p,popupMatchSelectWidth:g,popupOverflow:v,legacyLocale:y,parentContext:S,iconPrefixCls:b,theme:x,componentDisabled:C,segmented:E,statistic:$,spin:O,calendar:I,carousel:N,cascader:_,collapse:T,typography:D,checkbox:j,descriptions:P,divider:M,drawer:A,skeleton:B,steps:F,image:H,layout:W,list:V,mentions:K,modal:G,progress:re,result:Q,slider:fe,breadcrumb:se,menu:oe,pagination:ie,input:ge,empty:ve,badge:he,radio:be,rate:ye,switch:Ce,transfer:Ee,avatar:je,message:De,tag:_e,table:Me,card:Ie,tabs:Fe,timeline:Ge,timePicker:ft,upload:it,notification:qe,tree:at,colorPicker:U,datePicker:k,wave:L}=e,X=l.useCallback((ke,et)=>{const{prefixCls:mt}=e;if(et)return et;const Ve=mt||S.getPrefixCls("");return ke?`${Ve}-${ke}`:Ve},[S.getPrefixCls,e.prefixCls]),ee=b||S.iconPrefixCls||h4,$e=ee!==S.iconPrefixCls,we=n||S.csp,de=VM(ee,we),Se=JQ(x,S.theme),Ae={csp:we,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:s||y,direction:u,space:d,virtual:f,popupMatchSelectWidth:g??p,popupOverflow:v,getPrefixCls:X,iconPrefixCls:ee,theme:Se,segmented:E,statistic:$,spin:O,calendar:I,carousel:N,cascader:_,collapse:T,typography:D,checkbox:j,descriptions:P,divider:M,drawer:A,skeleton:B,steps:F,image:H,input:ge,layout:W,list:V,mentions:K,modal:G,progress:re,result:Q,slider:fe,breadcrumb:se,menu:oe,pagination:ie,empty:ve,badge:he,radio:be,rate:ye,switch:Ce,transfer:Ee,avatar:je,message:De,tag:_e,table:Me,card:Ie,tabs:Fe,timeline:Ge,timePicker:ft,upload:it,notification:qe,tree:at,colorPicker:U,datePicker:k,wave:L},We=Object.assign({},S);Object.keys(Ae).forEach(ke=>{Ae[ke]!==void 0&&(We[ke]=Ae[ke])}),SZ.forEach(ke=>{const et=e[ke];et&&(We[ke]=et)});const Ke=hc(()=>We,We,(ke,et)=>{const mt=Object.keys(ke),Ve=Object.keys(et);return mt.length!==Ve.length||mt.some(rt=>ke[rt]!==et[rt])}),tt=l.useMemo(()=>({prefixCls:ee,csp:we}),[ee,we]);let pe=$e?de(t):t;const Te=l.useMemo(()=>{var ke,et,mt,Ve;return Sf(((ke=Hs.Form)===null||ke===void 0?void 0:ke.defaultValidateMessages)||{},((mt=(et=Ke.locale)===null||et===void 0?void 0:et.Form)===null||mt===void 0?void 0:mt.defaultValidateMessages)||{},((Ve=Ke.form)===null||Ve===void 0?void 0:Ve.validateMessages)||{},a?.validateMessages||{})},[Ke,a?.validateMessages]);Object.keys(Te).length>0&&(pe=l.createElement(_M.Provider,{value:Te},t)),s&&(pe=l.createElement(hQ,{locale:s,_ANT_MARK__:dQ},pe)),(ee||we)&&(pe=l.createElement(c4.Provider,{value:tt},pe)),c&&(pe=l.createElement(KM,{size:c},pe)),pe=l.createElement(xZ,null,pe);const ze=l.useMemo(()=>{const ke=Se||{},{algorithm:et,token:mt,components:Ve}=ke,rt=wZ(ke,["algorithm","token","components"]),Ue=et&&(!Array.isArray(et)||et.length>0)?zm(et):zM,Je={};return Object.entries(Ve||{}).forEach(ht=>{let[gt,It]=ht;const Et=Object.assign({},It);"algorithm"in Et&&(Et.algorithm===!0?Et.theme=Ue:(Array.isArray(Et.algorithm)||typeof Et.algorithm=="function")&&(Et.theme=zm(Et.algorithm)),delete Et.algorithm),Je[gt]=Et}),Object.assign(Object.assign({},rt),{theme:Ue,token:Object.assign(Object.assign({},pg),mt),components:Je})},[Se]);return x&&(pe=l.createElement(BM.Provider,{value:ze},pe)),C!==void 0&&(pe=l.createElement(m4,{disabled:C},pe)),l.createElement(St.Provider,{value:Ke},pe)},wh=e=>{const t=l.useContext(St),n=l.useContext(u4);return l.createElement(IZ,Object.assign({parentContext:t,legacyLocale:n},e))};wh.ConfigContext=St;wh.SizeContext=mb;wh.config=OZ;wh.useConfig=ZQ;Object.defineProperty(wh,"SizeContext",{get:()=>mb});const Sh=wh;var RZ={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 NZ=RZ;var _Z=1/0,TZ="[object Symbol]",PZ=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,jZ=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,gb="\\ud800-\\udfff",ak="\\u0300-\\u036f\\ufe20-\\ufe23",sk="\\u20d0-\\u20f0",lk="\\u2700-\\u27bf",ck="a-z\\xdf-\\xf6\\xf8-\\xff",MZ="\\xac\\xb1\\xd7\\xf7",kZ="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",DZ="\\u2000-\\u206f",AZ=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",uk="A-Z\\xc0-\\xd6\\xd8-\\xde",dk="\\ufe0e\\ufe0f",fk=MZ+kZ+DZ+AZ,y4="['’]",LZ="["+gb+"]",WN="["+fk+"]",o1="["+ak+sk+"]",hk="\\d+",FZ="["+lk+"]",pk="["+ck+"]",mk="[^"+gb+fk+hk+lk+ck+uk+"]",O2="\\ud83c[\\udffb-\\udfff]",zZ="(?:"+o1+"|"+O2+")",gk="[^"+gb+"]",b4="(?:\\ud83c[\\udde6-\\uddff]){2}",x4="[\\ud800-\\udbff][\\udc00-\\udfff]",af="["+uk+"]",vk="\\u200d",VN="(?:"+pk+"|"+mk+")",BZ="(?:"+af+"|"+mk+")",KN="(?:"+y4+"(?:d|ll|m|re|s|t|ve))?",GN="(?:"+y4+"(?:D|LL|M|RE|S|T|VE))?",yk=zZ+"?",bk="["+dk+"]?",HZ="(?:"+vk+"(?:"+[gk,b4,x4].join("|")+")"+bk+yk+")*",xk=bk+yk+HZ,UZ="(?:"+[FZ,b4,x4].join("|")+")"+xk,WZ="(?:"+[gk+o1+"?",o1,b4,x4,LZ].join("|")+")",VZ=RegExp(y4,"g"),KZ=RegExp(o1,"g"),GZ=RegExp(O2+"(?="+O2+")|"+WZ+xk,"g"),YZ=RegExp([af+"?"+pk+"+"+KN+"(?="+[WN,af,"$"].join("|")+")",BZ+"+"+GN+"(?="+[WN,af+VN,"$"].join("|")+")",af+"?"+VN+"+"+KN,af+"+"+GN,hk,UZ].join("|"),"g"),qZ=RegExp("["+vk+gb+ak+sk+dk+"]"),XZ=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,QZ={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"},ZZ=typeof wt=="object"&&wt&&wt.Object===Object&&wt,JZ=typeof self=="object"&&self&&self.Object===Object&&self,eJ=ZZ||JZ||Function("return this")();function tJ(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++oo?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r=r?e:fJ(e,t,n)}function mJ(e){return function(t){t=vb(t);var n=wk(t)?sJ(t):void 0,r=n?n[0]:t.charAt(0),o=n?pJ(n,1).join(""):t.slice(1);return r[e]()+o}}function gJ(e){return function(t){return tJ(CJ(wJ(t).replace(VZ,"")),e,"")}}function vJ(e){return!!e&&typeof e=="object"}function yJ(e){return typeof e=="symbol"||vJ(e)&&dJ.call(e)==TZ}function vb(e){return e==null?"":hJ(e)}var bJ=gJ(function(e,t,n){return t=t.toLowerCase(),e+(n?xJ(t):t)});function xJ(e){return SJ(vb(e).toLowerCase())}function wJ(e){return e=vb(e),e&&e.replace(jZ,iJ).replace(KZ,"")}var SJ=mJ("toUpperCase");function CJ(e,t,n){return e=vb(e),t=n?void 0:t,t===void 0?aJ(e)?cJ(e):rJ(e):e.match(t)||[]}var EJ=bJ;const $J=Vo(EJ);function Sk(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function OJ(e){return Sk(e)instanceof ShadowRoot}function i1(e){return OJ(e)?Sk(e):null}function IJ(e,t){dr(e,"[@ant-design/icons] ".concat(t))}function QN(e){return Wt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Wt(e.icon)==="object"||typeof e.icon=="function")}function ZN(){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[$J(n)]=r}return t},{})}function I2(e,t,n){return n?Ne.createElement(e.tag,le(le({key:t},ZN(e.attrs)),n),(e.children||[]).map(function(r,o){return I2(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):Ne.createElement(e.tag,le({key:t},ZN(e.attrs)),(e.children||[]).map(function(r,o){return I2(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function Ck(e){return ac(e)[0]}function Ek(e){return e?Array.isArray(e)?e:[e]:[]}var RJ=` .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); } } `,NJ=function(t){var n=l.useContext(c4),r=n.csp,o=n.prefixCls,i=RJ;o&&(i=i.replace(/anticon/g,o)),l.useEffect(function(){var a=t.current,s=i1(a);th(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s})},[])},_J=["icon","className","onClick","style","primaryColor","secondaryColor"],cm={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function TJ(e){var t=e.primaryColor,n=e.secondaryColor;cm.primaryColor=t,cm.secondaryColor=n||Ck(t),cm.calculated=!!n}function PJ(){return le({},cm)}var yb=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,c=Ft(t,_J),u=l.useRef(),d=cm;if(a&&(d={primaryColor:a,secondaryColor:s||Ck(a)}),NJ(u),IJ(QN(n),"icon should be icon definiton, but got ".concat(n)),!QN(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=le(le({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),I2(f.icon,"svg-".concat(f.name),le(le({className:r,onClick:o,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};yb.displayName="IconReact";yb.getTwoToneColors=PJ;yb.setTwoToneColors=TJ;const w4=yb;function $k(e){var t=Ek(e),n=me(t,2),r=n[0],o=n[1];return w4.setTwoToneColors({primaryColor:r,secondaryColor:o})}function jJ(){var e=w4.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var MJ=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];$k(PQ.primary);var bb=l.forwardRef(function(e,t){var n,r=e.className,o=e.icon,i=e.spin,a=e.rotate,s=e.tabIndex,c=e.onClick,u=e.twoToneColor,d=Ft(e,MJ),f=l.useContext(c4),p=f.prefixCls,g=p===void 0?"anticon":p,v=f.rootClassName,y=ne(v,g,(n={},ae(n,"".concat(g,"-").concat(o.name),!!o.name),ae(n,"".concat(g,"-spin"),!!i||o.name==="loading"),n),r),S=s;S===void 0&&c&&(S=-1);var b=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,x=Ek(u),C=me(x,2),E=C[0],$=C[1];return l.createElement("span",Re({role:"img","aria-label":o.name},d,{ref:t,tabIndex:S,onClick:c,className:y}),l.createElement(w4,{icon:o,primaryColor:E,secondaryColor:$,style:b}))});bb.displayName="AntdIcon";bb.getTwoToneColor=jJ;bb.setTwoToneColor=$k;const Gt=bb;var kJ=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:NZ}))};const Ch=l.forwardRef(kJ);var DJ={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 AJ=DJ;var LJ=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:AJ}))};const Gs=l.forwardRef(LJ);var FJ={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 zJ=FJ;var BJ=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:zJ}))};const No=l.forwardRef(BJ);var HJ={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 UJ=HJ;var WJ=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:UJ}))};const lc=l.forwardRef(WJ);var VJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};const KJ=VJ;var GJ=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:KJ}))};const S4=l.forwardRef(GJ);var YJ=`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`,qJ=`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`,XJ="".concat(YJ," ").concat(qJ).split(/[\s\n]+/),QJ="aria-",ZJ="data-";function JN(e,t){return e.indexOf(t)===0}function sa(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=le({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||JN(o,QJ))||n.data&&JN(o,ZJ)||n.attr&&XJ.includes(o))&&(r[o]=e[o])}),r}const{isValidElement:Di}=lg;function Ok(e){return e&&Di(e)&&e.type===l.Fragment}function Ik(e,t,n){return Di(e)?l.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function go(e,t){return Ik(e,e,t)}const d0=(e,t,n,r,o)=>({backgroundColor:e,border:`${r.lineWidth}px ${r.lineType} ${t}`,[`${o}-icon`]:{color:n}}),JJ=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:o,fontSize:i,fontSizeLG:a,lineHeight:s,borderRadiusLG:c,motionEaseInOutCirc:u,alertIconSizeLG:d,colorText:f,paddingContentVerticalSM:p,alertPaddingHorizontal:g,paddingMD:v,paddingContentHorizontalLG:y,colorTextHeading:S}=e;return{[t]:Object.assign(Object.assign({},En(e)),{position:"relative",display:"flex",alignItems:"center",padding:`${p}px ${g}px`,wordWrap:"break-word",borderRadius:c,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:s},"&-message":{color:f},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${u}, opacity ${n} ${u}, padding-top ${n} ${u}, padding-bottom ${n} ${u}, margin-bottom ${n} ${u}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",paddingInline:y,paddingBlock:v,[`${t}-icon`]:{marginInlineEnd:o,fontSize:d,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:S,fontSize:a},[`${t}-description`]:{display:"block"}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},eee=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:o,colorWarning:i,colorWarningBorder:a,colorWarningBg:s,colorError:c,colorErrorBorder:u,colorErrorBg:d,colorInfo:f,colorInfoBorder:p,colorInfoBg:g}=e;return{[t]:{"&-success":d0(o,r,n,e,t),"&-info":d0(g,p,f,e,t),"&-warning":d0(s,a,i,e,t),"&-error":Object.assign(Object.assign({},d0(d,u,c,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},tee=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:o,fontSizeIcon:i,colorIcon:a,colorIconHover:s}=e;return{[t]:{"&-action":{marginInlineStart:o},[`${t}-close-icon`]:{marginInlineStart:o,padding:0,overflow:"hidden",fontSize:i,lineHeight:`${i}px`,backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:a,transition:`color ${r}`,"&:hover":{color:s}}},"&-close-text":{color:a,transition:`color ${r}`,"&:hover":{color:s}}}}},nee=e=>[JJ(e),eee(e),tee(e)],ree=Pn("Alert",e=>{const{fontSizeHeading3:t}=e,n=sn(e,{alertIconSizeLG:t,alertPaddingHorizontal:12});return[nee(n)]});var oee=globalThis&&globalThis.__rest||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{icon:t,prefixCls:n,type:r}=e,o=iee[r]||null;return t?Ik(t,l.createElement("span",{className:`${n}-icon`},t),()=>({className:ne(`${n}-icon`,{[t.props.className]:t.props.className})})):l.createElement(o,{className:`${n}-icon`})},see=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:o}=e,i=r===!0||r===void 0?l.createElement(No,null):r;return t?l.createElement("button",{type:"button",onClick:o,className:`${n}-close-icon`,tabIndex:0},i):null},lee=e=>{const{description:t,prefixCls:n,message:r,banner:o,className:i,rootClassName:a,style:s,onMouseEnter:c,onMouseLeave:u,onClick:d,afterClose:f,showIcon:p,closable:g,closeText:v,closeIcon:y,action:S}=e,b=oee(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action"]),[x,C]=l.useState(!1),E=l.useRef(null),{getPrefixCls:$,direction:O,alert:I}=l.useContext(St),N=$("alert",n),[_,T]=ree(N),D=F=>{var H;C(!0),(H=e.onClose)===null||H===void 0||H.call(e,F)},j=l.useMemo(()=>e.type!==void 0?e.type:o?"warning":"info",[e.type,o]),P=l.useMemo(()=>v?!0:typeof g=="boolean"?g:y!==!1&&y!==null&&y!==void 0,[v,y,g]),M=o&&p===void 0?!0:p,A=ne(N,`${N}-${j}`,{[`${N}-with-description`]:!!t,[`${N}-no-icon`]:!M,[`${N}-banner`]:!!o,[`${N}-rtl`]:O==="rtl"},I?.className,i,a,T),B=sa(b,{aria:!0,data:!0});return _(l.createElement(zi,{visible:!x,motionName:`${N}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:F=>({maxHeight:F.offsetHeight}),onLeaveEnd:f},F=>{let{className:H,style:W}=F;return l.createElement("div",Object.assign({ref:E,"data-show":!x,className:ne(A,H),style:Object.assign(Object.assign(Object.assign({},I?.style),s),W),onMouseEnter:c,onMouseLeave:u,onClick:d,role:"alert"},B),M?l.createElement(aee,{description:t,icon:e.icon,prefixCls:N,type:j}):null,l.createElement("div",{className:`${N}-content`},r?l.createElement("div",{className:`${N}-message`},r):null,t?l.createElement("div",{className:`${N}-description`},t):null),S?l.createElement("div",{className:`${N}-action`},S):null,l.createElement(see,{isClosable:P,prefixCls:N,closeIcon:v||y,handleClose:D}))}))},Rk=lee;let cee=function(e){ss(n,e);var t=ls(n);function n(){var r;return vo(this,n),r=t.apply(this,arguments),r.state={error:void 0,info:{componentStack:""}},r}return yo(n,[{key:"componentDidCatch",value:function(o,i){this.setState({error:o,info:i})}},{key:"render",value:function(){const{message:o,description:i,children:a}=this.props,{error:s,info:c}=this.state,u=c&&c.componentStack?c.componentStack:null,d=typeof o>"u"?(s||"").toString():o,f=typeof i>"u"?u:i;return s?l.createElement(Rk,{type:"error",message:d,description:l.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},f)}):a}}]),n}(l.Component);const uee=cee,Nk=Rk;Nk.ErrorBoundary=uee;const cu=Nk;let e_=e=>typeof e=="object"&&e!=null&&e.nodeType===1,t_=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",cS=(e,t)=>{if(e.clientHeight{let 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&&s>=n?i-e-r:a>t&&sn?a-t+o:0,dee=e=>{let t=e.parentElement;return t??(e.getRootNode().host||null)};var n_=(e,t)=>{var n,r,o,i,a,s;if(typeof document>"u")return[];let{scrollMode:c,block:u,inline:d,boundary:f,skipOverflowHiddenElements:p}=t,g=typeof f=="function"?f:M=>M!==f;if(!e_(e))throw new TypeError("Invalid target");let v=document.scrollingElement||document.documentElement,y=[],S=e;for(;e_(S)&&g(S);){if(S=dee(S),S===v){y.push(S);break}S!=null&&S===document.body&&cS(S)&&!cS(document.documentElement)||S!=null&&cS(S,p)&&y.push(S)}let b=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,x=(i=(o=window.visualViewport)==null?void 0:o.height)!=null?i:innerHeight,C=(a=window.scrollX)!=null?a:pageXOffset,E=(s=window.scrollY)!=null?s:pageYOffset,{height:$,width:O,top:I,right:N,bottom:_,left:T}=e.getBoundingClientRect(),D=u==="start"||u==="nearest"?I:u==="end"?_:I+$/2,j=d==="center"?T+O/2:d==="end"?N:T,P=[];for(let M=0;M=0&&T>=0&&_<=x&&N<=b&&I>=H&&_<=V&&T>=K&&N<=W)return P;let G=getComputedStyle(A),re=parseInt(G.borderLeftWidth,10),Q=parseInt(G.borderTopWidth,10),fe=parseInt(G.borderRightWidth,10),se=parseInt(G.borderBottomWidth,10),oe=0,ie=0,ge="offsetWidth"in A?A.offsetWidth-A.clientWidth-re-fe:0,ve="offsetHeight"in A?A.offsetHeight-A.clientHeight-Q-se:0,he="offsetWidth"in A?A.offsetWidth===0?0:F/A.offsetWidth:0,be="offsetHeight"in A?A.offsetHeight===0?0:B/A.offsetHeight:0;if(v===A)oe=u==="start"?D:u==="end"?D-x:u==="nearest"?f0(E,E+x,x,Q,se,E+D,E+D+$,$):D-x/2,ie=d==="start"?j:d==="center"?j-b/2:d==="end"?j-b:f0(C,C+b,b,re,fe,C+j,C+j+O,O),oe=Math.max(0,oe+E),ie=Math.max(0,ie+C);else{oe=u==="start"?D-H-Q:u==="end"?D-V+se+ve:u==="nearest"?f0(H,V,B,Q,se+ve,D,D+$,$):D-(H+B/2)+ve/2,ie=d==="start"?j-K-re:d==="center"?j-(K+F/2)+ge/2:d==="end"?j-W+fe+ge:f0(K,W,F,re,fe+ge,j,j+O,O);let{scrollLeft:ye,scrollTop:Ce}=A;oe=Math.max(0,Math.min(Ce+oe/be,A.scrollHeight-B/be+ve)),ie=Math.max(0,Math.min(ye+ie/he,A.scrollWidth-F/he+ge)),D+=Ce-oe,j+=ye-ie}P.push({el:A,top:oe,left:ie})}return P};let fee=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function hee(e,t){let n=e.isConnected||e.ownerDocument.documentElement.contains(e);if((a=>typeof a=="object"&&typeof a.behavior=="function")(t))return t.behavior(n?n_(e,t):[]);if(!n)return;let r=fee(t),o=n_(e,r),i="scrollBehavior"in document.body.style;o.forEach(a=>{let{el:s,top:c,left:u}=a;s.scroll&&i?s.scroll({top:c,left:u,behavior:r.behavior}):(s.scrollTop=c,s.scrollLeft=u)})}function R2(e){return e!=null&&e===e.window}function pee(e,t){var n,r;if(typeof window>"u")return 0;const o=t?"scrollTop":"scrollLeft";let i=0;return R2(e)?i=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?i=e.documentElement[o]:(e instanceof HTMLElement||e)&&(i=e[o]),e&&!R2(e)&&typeof i!="number"&&(i=(r=((n=e.ownerDocument)!==null&&n!==void 0?n:e).documentElement)===null||r===void 0?void 0:r[o]),i}function mee(e,t,n,r){const o=n-t;return e/=r/2,e<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}function gee(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:o=450}=t,i=n(),a=pee(i,!0),s=Date.now(),c=()=>{const d=Date.now()-s,f=mee(d>o?o:d,a,e,o);R2(i)?i.scrollTo(window.pageXOffset,f):i instanceof Document||i.constructor.name==="HTMLDocument"?i.documentElement.scrollTop=f:i.scrollTop=f,d=He.F1&&n<=He.F12)return!1;switch(n){case He.ALT:case He.CAPS_LOCK:case He.CONTEXT_MENU:case He.CTRL:case He.DOWN:case He.END:case He.ESC:case He.HOME:case He.INSERT:case He.LEFT:case He.MAC_FF_META:case He.META:case He.NUMLOCK:case He.NUM_CENTER:case He.PAGE_DOWN:case He.PAGE_UP:case He.PAUSE:case He.PRINT_SCREEN:case He.RIGHT:case He.SHIFT:case He.UP:case He.WIN_KEY:case He.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=He.ZERO&&t<=He.NINE||t>=He.NUM_ZERO&&t<=He.NUM_MULTIPLY||t>=He.A&&t<=He.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case He.SPACE:case He.QUESTION_MARK:case He.NUM_PLUS:case He.NUM_MINUS:case He.NUM_PERIOD:case He.NUM_DIVISION:case He.SEMICOLON:case He.DASH:case He.EQUALS:case He.COMMA:case He.PERIOD:case He.SLASH:case He.APOSTROPHE:case He.SINGLE_QUOTE:case He.OPEN_SQUARE_BRACKET:case He.BACKSLASH:case He.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},_k=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,i=e.duration,a=i===void 0?4.5:i,s=e.eventKey,c=e.content,u=e.closable,d=e.closeIcon,f=d===void 0?"x":d,p=e.props,g=e.onClick,v=e.onNoticeClose,y=e.times,S=l.useState(!1),b=me(S,2),x=b[0],C=b[1],E=function(){v(s)},$=function(N){(N.key==="Enter"||N.code==="Enter"||N.keyCode===He.ENTER)&&E()};l.useEffect(function(){if(!x&&a>0){var I=setTimeout(function(){E()},a*1e3);return function(){clearTimeout(I)}}},[a,x,y]);var O="".concat(n,"-notice");return l.createElement("div",Re({},p,{ref:t,className:ne(O,o,ae({},"".concat(O,"-closable"),u)),style:r,onMouseEnter:function(){C(!0)},onMouseLeave:function(){C(!1)},onClick:g}),l.createElement("div",{className:"".concat(O,"-content")},c),u&&l.createElement("a",{tabIndex:0,className:"".concat(O,"-close"),onKeyDown:$,onClick:function(N){N.preventDefault(),N.stopPropagation(),E()}},f))}),vee=l.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,i=e.motion,a=e.maxCount,s=e.className,c=e.style,u=e.onAllRemoved,d=l.useState([]),f=me(d,2),p=f[0],g=f[1],v=function(I){var N,_=p.find(function(T){return T.key===I});_==null||(N=_.onClose)===null||N===void 0||N.call(_),g(function(T){return T.filter(function(D){return D.key!==I})})};l.useImperativeHandle(t,function(){return{open:function(I){g(function(N){var _=Ze(N),T=_.findIndex(function(P){return P.key===I.key}),D=le({},I);if(T>=0){var j;D.times=(((j=N[T])===null||j===void 0?void 0:j.times)||0)+1,_[T]=D}else D.times=0,_.push(D);return a>0&&_.length>a&&(_=_.slice(-a)),_})},close:function(I){v(I)},destroy:function(){g([])}}});var y=l.useState({}),S=me(y,2),b=S[0],x=S[1];l.useEffect(function(){var O={};p.forEach(function(I){var N=I.placement,_=N===void 0?"topRight":N;_&&(O[_]=O[_]||[],O[_].push(I))}),Object.keys(b).forEach(function(I){O[I]=O[I]||[]}),x(O)},[p]);var C=function(I){x(function(N){var _=le({},N),T=_[I]||[];return T.length||delete _[I],_})},E=l.useRef(!1);if(l.useEffect(function(){Object.keys(b).length>0?E.current=!0:E.current&&(u?.(),E.current=!1)},[b]),!o)return null;var $=Object.keys(b);return Bs.createPortal(l.createElement(l.Fragment,null,$.map(function(O){var I=b[O],N=I.map(function(T){return{config:T,key:T.key}}),_=typeof i=="function"?i(O):i;return l.createElement(rk,Re({key:O,className:ne(r,"".concat(r,"-").concat(O),s?.(O)),style:c?.(O),keys:N,motionAppear:!0},_,{onAllRemoved:function(){C(O)}}),function(T,D){var j=T.config,P=T.className,M=T.style,A=j.key,B=j.times,F=j.className,H=j.style;return l.createElement(_k,Re({},j,{ref:D,prefixCls:r,className:ne(P,F),style:le(le({},M),H),times:B,key:A,eventKey:A,onNoticeClose:v}))})})),o)}),yee=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved"],bee=function(){return document.body},r_=0;function xee(){for(var e={},t=arguments.length,n=new Array(t),r=0;r0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?bee:t,r=e.motion,o=e.prefixCls,i=e.maxCount,a=e.className,s=e.style,c=e.onAllRemoved,u=Ft(e,yee),d=l.useState(),f=me(d,2),p=f[0],g=f[1],v=l.useRef(),y=l.createElement(vee,{container:p,ref:v,prefixCls:o,motion:r,maxCount:i,className:a,style:s,onAllRemoved:c}),S=l.useState([]),b=me(S,2),x=b[0],C=b[1],E=l.useMemo(function(){return{open:function(O){var I=xee(u,O);(I.key===null||I.key===void 0)&&(I.key="rc-notification-".concat(r_),r_+=1),C(function(N){return[].concat(Ze(N),[{type:"open",config:I}])})},close:function(O){C(function(I){return[].concat(Ze(I),[{type:"close",key:O}])})},destroy:function(){C(function(O){return[].concat(Ze(O),[{type:"destroy"}])})}}},[]);return l.useEffect(function(){g(n())}),l.useEffect(function(){v.current&&x.length&&(x.forEach(function($){switch($.type){case"open":v.current.open($.config);break;case"close":v.current.close($.key);break;case"destroy":v.current.destroy();break}}),C([]))},[x]),[E,y]}var See={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 Cee=See;var Eee=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:Cee}))};const mu=l.forwardRef(Eee);function $ee(){const[e,t]=l.useState([]),n=l.useCallback(r=>(t(o=>[].concat(Ze(o),[r])),()=>{t(o=>o.filter(i=>i!==r))}),[]);return[e,n]}function Ia(){Ia=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(j,P,M){j[P]=M.value},o=typeof Symbol=="function"?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(j,P,M){return Object.defineProperty(j,P,{value:M,enumerable:!0,configurable:!0,writable:!0}),j[P]}try{c({},"")}catch{c=function(M,A,B){return M[A]=B}}function u(j,P,M,A){var B=P&&P.prototype instanceof p?P:p,F=Object.create(B.prototype),H=new _(A||[]);return r(F,"_invoke",{value:$(j,M,H)}),F}function d(j,P,M){try{return{type:"normal",arg:j.call(P,M)}}catch(A){return{type:"throw",arg:A}}}e.wrap=u;var f={};function p(){}function g(){}function v(){}var y={};c(y,i,function(){return this});var S=Object.getPrototypeOf,b=S&&S(S(T([])));b&&b!==t&&n.call(b,i)&&(y=b);var x=v.prototype=p.prototype=Object.create(y);function C(j){["next","throw","return"].forEach(function(P){c(j,P,function(M){return this._invoke(P,M)})})}function E(j,P){function M(B,F,H,W){var V=d(j[B],j,F);if(V.type!=="throw"){var K=V.arg,G=K.value;return G&&Wt(G)=="object"&&n.call(G,"__await")?P.resolve(G.__await).then(function(re){M("next",re,H,W)},function(re){M("throw",re,H,W)}):P.resolve(G).then(function(re){K.value=re,H(K)},function(re){return M("throw",re,H,W)})}W(V.arg)}var A;r(this,"_invoke",{value:function(F,H){function W(){return new P(function(V,K){M(F,H,V,K)})}return A=A?A.then(W,W):W()}})}function $(j,P,M){var A="suspendedStart";return function(B,F){if(A==="executing")throw new Error("Generator is already running");if(A==="completed"){if(B==="throw")throw F;return D()}for(M.method=B,M.arg=F;;){var H=M.delegate;if(H){var W=O(H,M);if(W){if(W===f)continue;return W}}if(M.method==="next")M.sent=M._sent=M.arg;else if(M.method==="throw"){if(A==="suspendedStart")throw A="completed",M.arg;M.dispatchException(M.arg)}else M.method==="return"&&M.abrupt("return",M.arg);A="executing";var V=d(j,P,M);if(V.type==="normal"){if(A=M.done?"completed":"suspendedYield",V.arg===f)continue;return{value:V.arg,done:M.done}}V.type==="throw"&&(A="completed",M.method="throw",M.arg=V.arg)}}}function O(j,P){var M=P.method,A=j.iterator[M];if(A===void 0)return P.delegate=null,M==="throw"&&j.iterator.return&&(P.method="return",P.arg=void 0,O(j,P),P.method==="throw")||M!=="return"&&(P.method="throw",P.arg=new TypeError("The iterator does not provide a '"+M+"' method")),f;var B=d(A,j.iterator,P.arg);if(B.type==="throw")return P.method="throw",P.arg=B.arg,P.delegate=null,f;var F=B.arg;return F?F.done?(P[j.resultName]=F.value,P.next=j.nextLoc,P.method!=="return"&&(P.method="next",P.arg=void 0),P.delegate=null,f):F:(P.method="throw",P.arg=new TypeError("iterator result is not an object"),P.delegate=null,f)}function I(j){var P={tryLoc:j[0]};1 in j&&(P.catchLoc=j[1]),2 in j&&(P.finallyLoc=j[2],P.afterLoc=j[3]),this.tryEntries.push(P)}function N(j){var P=j.completion||{};P.type="normal",delete P.arg,j.completion=P}function _(j){this.tryEntries=[{tryLoc:"root"}],j.forEach(I,this),this.reset(!0)}function T(j){if(j){var P=j[i];if(P)return P.call(j);if(typeof j.next=="function")return j;if(!isNaN(j.length)){var M=-1,A=function B(){for(;++M=0;--B){var F=this.tryEntries[B],H=F.completion;if(F.tryLoc==="root")return A("end");if(F.tryLoc<=this.prev){var W=n.call(F,"catchLoc"),V=n.call(F,"finallyLoc");if(W&&V){if(this.prev=0;--A){var B=this.tryEntries[A];if(B.tryLoc<=this.prev&&n.call(B,"finallyLoc")&&this.prev=0;--M){var A=this.tryEntries[M];if(A.finallyLoc===P)return this.complete(A.completion,A.afterLoc),N(A),f}},catch:function(P){for(var M=this.tryEntries.length-1;M>=0;--M){var A=this.tryEntries[M];if(A.tryLoc===P){var B=A.completion;if(B.type==="throw"){var F=B.arg;N(A)}return F}}throw new Error("illegal catch attempt")},delegateYield:function(P,M,A){return this.delegate={iterator:T(P),resultName:M,nextLoc:A},this.method==="next"&&(this.arg=void 0),f}},e}function o_(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(u){n(u);return}s.done?t(c):Promise.resolve(c).then(r,o)}function Eh(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(c){o_(i,r,o,a,s,"next",c)}function s(c){o_(i,r,o,a,s,"throw",c)}a(void 0)})}}var gg=le({},fq),Oee=gg.version,Iee=gg.render,Ree=gg.unmountComponentAtNode,xb;try{var Nee=Number((Oee||"").split(".")[0]);Nee>=18&&(xb=gg.createRoot)}catch{}function i_(e){var t=gg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Wt(t)==="object"&&(t.usingClientEntryPoint=e)}var a1="__rc_react_root__";function _ee(e,t){i_(!0);var n=t[a1]||xb(t);i_(!1),n.render(e),t[a1]=n}function Tee(e,t){Iee(e,t)}function C4(e,t){if(xb){_ee(e,t);return}Tee(e,t)}function Pee(e){return N2.apply(this,arguments)}function N2(){return N2=Eh(Ia().mark(function e(t){return Ia().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[a1])===null||o===void 0||o.unmount(),delete t[a1]}));case 1:case"end":return r.stop()}},e)})),N2.apply(this,arguments)}function jee(e){Ree(e)}function Tk(e){return _2.apply(this,arguments)}function _2(){return _2=Eh(Ia().mark(function e(t){return Ia().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(xb===void 0){r.next=2;break}return r.abrupt("return",Pee(t));case 2:jee(t);case 3:case"end":return r.stop()}},e)})),_2.apply(this,arguments)}const $h=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},Mee=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(",")}}}}},kee=Pn("Wave",e=>[Mee(e)]);function Dee(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 uS(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&Dee(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function Aee(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return uS(t)?t:uS(n)?n:uS(r)?r:null}const wb="ant-wave-target";function dS(e){return Number.isNaN(e)?0:e}const Lee=e=>{const{className:t,target:n,component:r}=e,o=l.useRef(null),[i,a]=l.useState(null),[s,c]=l.useState([]),[u,d]=l.useState(0),[f,p]=l.useState(0),[g,v]=l.useState(0),[y,S]=l.useState(0),[b,x]=l.useState(!1),C={left:u,top:f,width:g,height:y,borderRadius:s.map(O=>`${O}px`).join(" ")};i&&(C["--wave-color"]=i);function E(){const O=getComputedStyle(n);a(Aee(n));const I=O.position==="static",{borderLeftWidth:N,borderTopWidth:_}=O;d(I?n.offsetLeft:dS(-parseFloat(N))),p(I?n.offsetTop:dS(-parseFloat(_))),v(n.offsetWidth),S(n.offsetHeight);const{borderTopLeftRadius:T,borderTopRightRadius:D,borderBottomLeftRadius:j,borderBottomRightRadius:P}=O;c([T,D,P,j].map(M=>dS(parseFloat(M))))}if(l.useEffect(()=>{if(n){const O=yn(()=>{E(),x(!0)});let I;return typeof ResizeObserver<"u"&&(I=new ResizeObserver(E),I.observe(n)),()=>{yn.cancel(O),I?.disconnect()}}},[]),!b)return null;const $=(r==="Checkbox"||r==="Radio")&&n?.classList.contains(wb);return l.createElement(zi,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(O,I)=>{var N;if(I.deadline||I.propertyName==="opacity"){const _=(N=o.current)===null||N===void 0?void 0:N.parentElement;Tk(_).then(()=>{_?.remove()})}return!1}},O=>{let{className:I}=O;return l.createElement("div",{ref:o,className:ne(t,{"wave-quick":$},I),style:C})})},Fee=(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?.insertBefore(o,e?.firstChild),C4(l.createElement(Lee,Object.assign({},t,{target:e})),o)},zee=Fee;function Bee(e,t,n){const{wave:r}=l.useContext(St),[,o,i]=mc(),a=Lo(u=>{const d=e.current;if(r?.disabled||!d)return;const f=d.querySelector(`.${wb}`)||d,{showEffect:p}=r||{};(p||zee)(f,{className:t,token:o,component:n,event:u,hashId:i})}),s=l.useRef();return u=>{yn.cancel(s.current),s.current=yn(()=>{a(u)})}}const Hee=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=l.useContext(St),i=l.useRef(null),a=o("wave"),[,s]=kee(a),c=Bee(i,ne(a,s),r);if(Ne.useEffect(()=>{const d=i.current;if(!d||d.nodeType!==1||n)return;const f=p=>{!$h(p.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")||d.className.includes("-leave")||c(p)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[n]),!Ne.isValidElement(t))return t??null;const u=Ks(t)?li(t.ref,i):i;return go(t,{ref:u})},vg=Hee,Uee=e=>{const t=Ne.useContext(mb);return Ne.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},Zo=Uee,Wee=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},Vee=Wee,Kee=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"}}}},Pk=Pn("Space",e=>[Kee(e),Vee(e)],()=>({}),{resetStyle:!1});var jk=globalThis&&globalThis.__rest||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=l.useContext(Sb),r=l.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,s=o==="vertical"?"-vertical-":"-";return ne(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:i,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n?.compactSize,compactDirection:n?.compactDirection,compactItemClassnames:r}},sd=e=>{let{children:t}=e;return l.createElement(Sb.Provider,{value:null},t)},Gee=e=>{var{children:t}=e,n=jk(e,["children"]);return l.createElement(Sb.Provider,{value:n},t)},Yee=e=>{const{getPrefixCls:t,direction:n}=l.useContext(St),{size:r,direction:o,block:i,prefixCls:a,className:s,rootClassName:c,children:u}=e,d=jk(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=Zo(C=>r??C),p=t("space-compact",a),[g,v]=Pk(p),y=ne(p,v,{[`${p}-rtl`]:n==="rtl",[`${p}-block`]:i,[`${p}-vertical`]:o==="vertical"},s,c),S=l.useContext(Sb),b=zo(u),x=l.useMemo(()=>b.map((C,E)=>{const $=C&&C.key||`${p}-item-${E}`;return l.createElement(Gee,{key:$,compactSize:f,compactDirection:o,isFirstItem:E===0&&(!S||S?.isFirstItem),isLastItem:E===b.length-1&&(!S||S?.isLastItem)},C)}),[r,b,S]);return b.length===0?null:g(l.createElement("div",Object.assign({className:y},d),x))},qee=Yee,Xee=l.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=ne(`${i}-icon`,n);return Ne.createElement("span",{ref:t,className:a,style:r},o)}),Mk=Xee,a_=l.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:i}=e;const a=ne(`${n}-loading-icon`,r);return Ne.createElement(Mk,{prefixCls:n,className:a,style:o,ref:t},Ne.createElement(mu,{className:i}))}),fS=()=>({width:0,opacity:0,transform:"scale(0)"}),hS=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Qee=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i}=e,a=!!n;return r?Ne.createElement(a_,{prefixCls:t,className:o,style:i}):Ne.createElement(zi,{visible:a,motionName:`${t}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:fS,onAppearActive:hS,onEnterStart:fS,onEnterActive:hS,onLeaveStart:hS,onLeaveActive:fS},(s,c)=>{let{className:u,style:d}=s;return Ne.createElement(a_,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),d),ref:c,iconClassName:u})})},Zee=Qee;var Jee=globalThis&&globalThis.__rest||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}=l.useContext(St),{prefixCls:r,size:o,className:i}=e,a=Jee(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,c]=mc();let u="";switch(o){case"large":u="lg";break;case"small":u="sm";break}const d=ne(s,{[`${s}-${u}`]:u,[`${s}-rtl`]:n==="rtl"},i,c);return l.createElement(kk.Provider,{value:o},l.createElement("div",Object.assign({},a,{className:d})))},tte=ete,s_=/^[\u4e00-\u9fa5]{2}$/,T2=s_.test.bind(s_);function l_(e){return typeof e=="string"}function pS(e){return e==="text"||e==="link"}function nte(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&l_(e.type)&&T2(e.props.children)?go(e,{children:e.props.children.split("").join(n)}):l_(e)?T2(e)?Ne.createElement("span",null,e.split("").join(n)):Ne.createElement("span",null,e):Ok(e)?Ne.createElement("span",null,e):e}function rte(e,t){let n=!1;const r=[];return Ne.Children.forEach(e,o=>{const i=typeof o,a=i==="string"||i==="number";if(n&&a){const s=r.length-1,c=r[s];r[s]=`${c}${o}`}else r.push(o);n=a}),Ne.Children.map(r,o=>nte(o,t))}function ote(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function ite(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 yg(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({},ote(e,r,t)),ite(n,r,t))}}function ate(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function ste(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 lte(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},ate(e,t)),ste(e.componentCls,t))}}const c_=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),cte=e=>{const{componentCls:t,fontSize:n,lineWidth:r,colorPrimaryHover: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:-r,[`&, & > ${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}},c_(`${t}-primary`,o),c_(`${t}-danger`,i)]}},ute=cte,dte=e=>{const{componentCls:t,iconCls:n,buttonFontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${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({},lu(e)),[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${e.lineWidth*2}px)`,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:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${e.lineWidth*2}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},cc=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),fte=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),hte=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),pte=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),Um=(e,t,n,r,o,i,a)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:t||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},cc(e,Object.assign({backgroundColor:"transparent"},i),Object.assign({backgroundColor:"transparent"},a))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:o||void 0}})}),E4=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},pte(e))}),Dk=e=>Object.assign({},E4(e)),s1=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Ak=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Dk(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),cc(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Um(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},cc(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Um(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),E4(e))}),mte=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Dk(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),cc(e.componentCls,{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),Um(e.componentCls,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({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},cc(e.componentCls,{backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),Um(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),E4(e))}),gte=e=>Object.assign(Object.assign({},Ak(e)),{borderStyle:"dashed"}),vte=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},cc(e.componentCls,{color:e.colorLinkHover},{color:e.colorLinkActive})),s1(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},cc(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),s1(e))}),yte=e=>Object.assign(Object.assign(Object.assign({},cc(e.componentCls,{color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),s1(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},s1(e)),cc(e.componentCls,{color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),bte=e=>{const{componentCls:t}=e;return{[`${t}-default`]:Ak(e),[`${t}-primary`]:mte(e),[`${t}-dashed`]:gte(e),[`${t}-link`]:vte(e),[`${t}-text`]:yte(e),[`${t}-ghost`]:Um(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},$4=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,lineWidth:a,borderRadius:s,buttonPaddingHorizontal:c,iconCls:u}=e,d=Math.max(0,(r-o*i)/2-a),f=c-a,p=`${n}-icon-only`;return[{[`${n}${t}`]:{fontSize:o,height:r,padding:`${d}px ${f}px`,borderRadius:s,[`&${p}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[u]:{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}`]:fte(e)},{[`${n}${n}-round${t}`]:hte(e)}]},xte=e=>$4(e),wte=e=>{const t=sn(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.fontSizeLG-2});return $4(t,`${e.componentCls}-sm`)},Ste=e=>{const t=sn(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.fontSizeLG+2});return $4(t,`${e.componentCls}-lg`)},Cte=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Ete=Pn("Button",e=>{const{controlTmpOutline:t,paddingContentHorizontal:n}=e,r=sn(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n,buttonIconOnlyFontSize:e.fontSizeLG,buttonFontWeight:400});return[dte(r),wte(r),xte(r),Ste(r),Cte(r),bte(r),ute(r),yg(e),lte(e)]});var $te=globalThis&&globalThis.__rest||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:s,shape:c="default",size:u,styles:d,disabled:f,className:p,rootClassName:g,children:v,icon:y,ghost:S=!1,block:b=!1,htmlType:x="button",classNames:C,style:E={}}=e,$=$te(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:O,autoInsertSpaceInButton:I,direction:N,button:_}=l.useContext(St),T=O("btn",i),[D,j]=Ete(T),P=l.useContext(cs),M=f??P,A=l.useContext(kk),B=l.useMemo(()=>Ote(o),[o]),[F,H]=l.useState(B.loading),[W,V]=l.useState(!1),G=li(t,l.createRef()),re=l.Children.count(v)===1&&!y&&!pS(a);l.useEffect(()=>{let Ie=null;B.delay>0?Ie=setTimeout(()=>{Ie=null,H(!0)},B.delay):H(B.loading);function Fe(){Ie&&(clearTimeout(Ie),Ie=null)}return Fe},[B]),l.useEffect(()=>{if(!G||!G.current||I===!1)return;const Ie=G.current.textContent;re&&T2(Ie)?W||V(!0):W&&V(!1)},[G]);const Q=Ie=>{const{onClick:Fe}=e;if(F||M){Ie.preventDefault();return}Fe?.(Ie)},fe=I!==!1,{compactSize:se,compactItemClassnames:oe}=gu(T,N),ie={large:"lg",small:"sm",middle:void 0},ge=Zo(Ie=>{var Fe,Ge;return(Ge=(Fe=u??se)!==null&&Fe!==void 0?Fe:A)!==null&&Ge!==void 0?Ge:Ie}),ve=ge&&ie[ge]||"",he=F?"loading":y,be=vr($,["navigate"]),ye=ne(T,j,{[`${T}-${c}`]:c!=="default"&&c,[`${T}-${a}`]:a,[`${T}-${ve}`]:ve,[`${T}-icon-only`]:!v&&v!==0&&!!he,[`${T}-background-ghost`]:S&&!pS(a),[`${T}-loading`]:F,[`${T}-two-chinese-chars`]:W&&fe&&!F,[`${T}-block`]:b,[`${T}-dangerous`]:!!s,[`${T}-rtl`]:N==="rtl"},oe,p,g,_?.className),Ce=Object.assign(Object.assign({},_?.style),E),Ee=ne(C?.icon,(n=_?.classNames)===null||n===void 0?void 0:n.icon),je=Object.assign(Object.assign({},d?.icon||{}),((r=_?.styles)===null||r===void 0?void 0:r.icon)||{}),De=y&&!F?Ne.createElement(Mk,{prefixCls:T,className:Ee,style:je},y):Ne.createElement(Zee,{existIcon:!!y,prefixCls:T,loading:!!F}),_e=v||v===0?rte(v,re&&fe):null;if(be.href!==void 0)return D(Ne.createElement("a",Object.assign({},be,{className:ne(ye,{[`${T}-disabled`]:M}),style:Ce,onClick:Q,ref:G}),De,_e));let Me=Ne.createElement("button",Object.assign({},$,{type:x,className:ye,style:Ce,onClick:Q,disabled:M,ref:G}),De,_e);return pS(a)||(Me=Ne.createElement(vg,{component:"Button",disabled:!!F},Me)),D(Me)},O4=l.forwardRef(Ite);O4.Group=tte;O4.__ANT_BUTTON=!0;const ut=O4;function u_(e){return!!(e&&e.then)}const Rte=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:s,isSilent:c,quitOnNullishReturnValue:u,actionFn:d}=e,f=l.useRef(!1),p=l.useRef(null),[g,v]=ou(!1),y=function(){i?.apply(void 0,arguments)};l.useEffect(()=>{let x=null;return a&&(x=setTimeout(()=>{var C;(C=p.current)===null||C===void 0||C.focus()})),()=>{x&&clearTimeout(x)}},[]);const S=x=>{u_(x)&&(v(!0),x.then(function(){v(!1,!0),y.apply(void 0,arguments),f.current=!1},C=>{if(v(!1,!0),f.current=!1,!c?.())return Promise.reject(C)}))},b=x=>{if(f.current)return;if(f.current=!0,!d){y();return}let C;if(s){if(C=d(x),u&&!u_(C)){f.current=!1,y(x);return}}else if(d.length)C=d(i),f.current=!1;else if(C=d(),!C){y();return}S(C)};return l.createElement(ut,Object.assign({},Lk(t),{onClick:b,loading:g,prefixCls:r},o,{ref:p}),n)},d_=Rte,mS=()=>({height:0,opacity:0}),f_=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Nte=e=>({height:e?e.offsetHeight:0}),gS=(e,t)=>t?.deadline===!0||t.propertyName==="height",_te=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:mS,onEnterStart:mS,onAppearActive:f_,onEnterActive:f_,onLeaveStart:Nte,onLeaveActive:mS,onAppearEnd:gS,onEnterEnd:gS,onLeaveEnd:gS,motionDeadline:500}},Ws=(e,t,n)=>n!==void 0?n:`${e}-${t}`,Wm=_te;var Fk=l.createContext(null),h_=[];function Tte(e,t){var n=l.useState(function(){if(!Bo())return null;var v=document.createElement("div");return v}),r=me(n,1),o=r[0],i=l.useRef(!1),a=l.useContext(Fk),s=l.useState(h_),c=me(s,2),u=c[0],d=c[1],f=a||(i.current?void 0:function(v){d(function(y){var S=[v].concat(Ze(y));return S})});function p(){o.parentElement||document.body.appendChild(o),i.current=!0}function g(){var v;(v=o.parentElement)===null||v===void 0||v.removeChild(o),i.current=!1}return Wn(function(){return e?a?a(p):p():g(),g},[e]),Wn(function(){u.length&&(u.forEach(function(v){return v()}),d(h_))},[u]),[o,f]}var vS;function l1(e){if(typeof document>"u")return 0;if(e||vS===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),vS=o-i}return vS}function p_(e){var t=e.match(/^(.*)px$/),n=Number(t?.[1]);return Number.isNaN(n)?l1():n}function m_(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:p_(n),height:p_(r)}}function Pte(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var jte="rc-util-locker-".concat(Date.now()),g_=0;function Mte(e){var t=!!e,n=l.useState(function(){return g_+=1,"".concat(jte,"_").concat(g_)}),r=me(n,1),o=r[0];Wn(function(){if(t){var i=l1(),a=Pte();th(` html body { overflow-y: hidden; `.concat(a?"width: calc(100% - ".concat(i,"px);"):"",` }`),o)}else Zy(o);return function(){Zy(o)}},[t,o])}var v_=!1;function kte(e){return typeof e=="boolean"&&(v_=e),v_}var y_=function(t){return t===!1?!1:!Bo()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Cb=l.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,s=e.children,c=l.useState(n),u=me(c,2),d=u[0],f=u[1],p=d||n;l.useEffect(function(){(a||n)&&f(n)},[n,a]);var g=l.useState(function(){return y_(o)}),v=me(g,2),y=v[0],S=v[1];l.useEffect(function(){var D=y_(o);S(D??null)});var b=Tte(p&&!y),x=me(b,2),C=x[0],E=x[1],$=y??C;Mte(r&&n&&Bo()&&($===C||$===document.body));var O=null;if(s&&Ks(s)&&t){var I=s;O=I.ref}var N=hg(O,t);if(!p||!Bo()||y===void 0)return null;var _=$===!1||kte(),T=s;return t&&(T=l.cloneElement(s,{ref:N})),l.createElement(Fk.Provider,{value:E},_?T:Bs.createPortal(T,$))});function Dte(){var e=le({},lg);return e.useId}var b_=0;function zk(e){var t=l.useState("ssr-id"),n=me(t,2),r=n[0],o=n[1],i=Dte(),a=i?.();return l.useEffect(function(){if(!i){var s=b_;b_+=1,o("rc_unique_".concat(s))}},[]),e||a||r}function x_(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function w_(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var o=e.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r])}return n}function Ate(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=w_(o),n.top+=w_(o,!0),n}const Lte=l.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var S_={width:0,height:0,overflow:"hidden",outline:"none"},Bk=Ne.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.title,a=e.ariaId,s=e.footer,c=e.closable,u=e.closeIcon,d=e.onClose,f=e.children,p=e.bodyStyle,g=e.bodyProps,v=e.modalRender,y=e.onMouseDown,S=e.onMouseUp,b=e.holderRef,x=e.visible,C=e.forceRender,E=e.width,$=e.height,O=l.useRef(),I=l.useRef();Ne.useImperativeHandle(t,function(){return{focus:function(){var M;(M=O.current)===null||M===void 0||M.focus()},changeActive:function(M){var A=document,B=A.activeElement;M&&B===I.current?O.current.focus():!M&&B===O.current&&I.current.focus()}}});var N={};E!==void 0&&(N.width=E),$!==void 0&&(N.height=$);var _;s&&(_=Ne.createElement("div",{className:"".concat(n,"-footer")},s));var T;i&&(T=Ne.createElement("div",{className:"".concat(n,"-header")},Ne.createElement("div",{className:"".concat(n,"-title"),id:a},i)));var D;c&&(D=Ne.createElement("button",{type:"button",onClick:d,"aria-label":"Close",className:"".concat(n,"-close")},u||Ne.createElement("span",{className:"".concat(n,"-close-x")})));var j=Ne.createElement("div",{className:"".concat(n,"-content")},D,T,Ne.createElement("div",Re({className:"".concat(n,"-body"),style:p},g),f),_);return Ne.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?a:null,"aria-modal":"true",ref:b,style:le(le({},o),N),className:ne(n,r),onMouseDown:y,onMouseUp:S},Ne.createElement("div",{tabIndex:0,ref:O,style:S_,"aria-hidden":"true"}),Ne.createElement(Lte,{shouldUpdate:x||C},v?v(j):j),Ne.createElement("div",{tabIndex:0,ref:I,style:S_,"aria-hidden":"true"}))}),Hk=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,i=e.className,a=e.visible,s=e.forceRender,c=e.destroyOnClose,u=e.motionName,d=e.ariaId,f=e.onVisibleChanged,p=e.mousePosition,g=l.useRef(),v=l.useState(),y=me(v,2),S=y[0],b=y[1],x={};S&&(x.transformOrigin=S);function C(){var E=Ate(g.current);b(p?"".concat(p.x-E.left,"px ").concat(p.y-E.top,"px"):"")}return l.createElement(zi,{visible:a,onVisibleChanged:f,onAppearPrepare:C,onEnterPrepare:C,forceRender:s,motionName:u,removeOnLeave:c,ref:g},function(E,$){var O=E.className,I=E.style;return l.createElement(Bk,Re({},e,{ref:t,title:r,ariaId:d,prefixCls:n,holderRef:$,style:le(le(le({},I),o),x),className:ne(i,O)}))})});Hk.displayName="Content";function Fte(e){var t=e.prefixCls,n=e.style,r=e.visible,o=e.maskProps,i=e.motionName;return l.createElement(zi,{key:"mask",visible:r,motionName:i,leavedClassName:"".concat(t,"-mask-hidden")},function(a,s){var c=a.className,u=a.style;return l.createElement("div",Re({ref:s,style:le(le({},u),n),className:ne("".concat(t,"-mask"),c)},o))})}function zte(e){var t=e.prefixCls,n=t===void 0?"rc-dialog":t,r=e.zIndex,o=e.visible,i=o===void 0?!1:o,a=e.keyboard,s=a===void 0?!0:a,c=e.focusTriggerAfterClose,u=c===void 0?!0:c,d=e.wrapStyle,f=e.wrapClassName,p=e.wrapProps,g=e.onClose,v=e.afterOpenChange,y=e.afterClose,S=e.transitionName,b=e.animation,x=e.closable,C=x===void 0?!0:x,E=e.mask,$=E===void 0?!0:E,O=e.maskTransitionName,I=e.maskAnimation,N=e.maskClosable,_=N===void 0?!0:N,T=e.maskStyle,D=e.maskProps,j=e.rootClassName,P=l.useRef(),M=l.useRef(),A=l.useRef(),B=l.useState(i),F=me(B,2),H=F[0],W=F[1],V=zk();function K(){u2(M.current,document.activeElement)||(P.current=document.activeElement)}function G(){if(!u2(M.current,document.activeElement)){var he;(he=A.current)===null||he===void 0||he.focus()}}function re(he){if(he)G();else{if(W(!1),$&&P.current&&u){try{P.current.focus({preventScroll:!0})}catch{}P.current=null}H&&y?.()}v?.(he)}function Q(he){g?.(he)}var fe=l.useRef(!1),se=l.useRef(),oe=function(){clearTimeout(se.current),fe.current=!0},ie=function(){se.current=setTimeout(function(){fe.current=!1})},ge=null;_&&(ge=function(be){fe.current?fe.current=!1:M.current===be.target&&Q(be)});function ve(he){if(s&&he.keyCode===He.ESC){he.stopPropagation(),Q(he);return}i&&he.keyCode===He.TAB&&A.current.changeActive(!he.shiftKey)}return l.useEffect(function(){i&&(W(!0),K())},[i]),l.useEffect(function(){return function(){clearTimeout(se.current)}},[]),l.createElement("div",Re({className:ne("".concat(n,"-root"),j)},sa(e,{data:!0})),l.createElement(Fte,{prefixCls:n,visible:$&&i,motionName:x_(n,O,I),style:le({zIndex:r},T),maskProps:D}),l.createElement("div",Re({tabIndex:-1,onKeyDown:ve,className:ne("".concat(n,"-wrap"),f),ref:M,onClick:ge,style:le(le({zIndex:r},d),{},{display:H?null:"none"})},p),l.createElement(Hk,Re({},e,{onMouseDown:oe,onMouseUp:ie,ref:A,closable:C,ariaId:V,prefixCls:n,visible:i&&H,onClose:Q,onVisibleChanged:re,motionName:x_(n,S,b)}))))}var I4=function(t){var n=t.visible,r=t.getContainer,o=t.forceRender,i=t.destroyOnClose,a=i===void 0?!1:i,s=t.afterClose,c=l.useState(n),u=me(c,2),d=u[0],f=u[1];return l.useEffect(function(){n&&f(!0)},[n]),!o&&a&&!d?null:l.createElement(Cb,{open:n||o||d,autoDestroy:!1,getContainer:r,autoLock:n||d},l.createElement(zte,Re({},t,{destroyOnClose:a,afterClose:function(){s?.(),f(!1)}})))};I4.displayName="Dialog";function Bte(e,t,n){return typeof e=="boolean"?e:t===void 0?!!n:t!==!1&&t!==null}function Uk(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Ne.createElement(No,null),o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!Bte(e,t,o))return[!1,null];const a=typeof t=="boolean"||t===void 0||t===null?r:t;return[!0,n?n(a):a]}var Wk=function(t){if(Bo()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(o){return o in r.style})}return!1},Hte=function(t,n){if(!Wk(t))return!1;var r=document.createElement("div"),o=r.style[t];return r.style[t]=n,r.style[t]!==o};function P2(e,t){return!Array.isArray(e)&&t!==void 0?Hte(e,t):Wk(e)}const Vk=()=>Bo()&&window.document.documentElement;let h0;const Ute=()=>{if(!Vk())return!1;if(h0!==void 0)return h0;const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div"));const t=document.createElement("div");return t.style.position="absolute",t.style.zIndex="-9999",t.appendChild(e),document.body.appendChild(t),h0=e.scrollHeight===1,document.body.removeChild(t),h0};var Uu="RC_FORM_INTERNAL_HOOKS",wr=function(){dr(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},ld=l.createContext({getFieldValue:wr,getFieldsValue:wr,getFieldError:wr,getFieldWarning:wr,getFieldsError:wr,isFieldsTouched:wr,isFieldTouched:wr,isFieldValidating:wr,isFieldsValidating:wr,resetFields:wr,setFields:wr,setFieldValue:wr,setFieldsValue:wr,validateFields:wr,submit:wr,getInternalHooks:function(){return wr(),{dispatch:wr,initEntityValue:wr,registerField:wr,useSubscribe:wr,setInitialValues:wr,destroyForm:wr,setCallbacks:wr,registerWatch:wr,getFields:wr,setValidateMessages:wr,setPreserve:wr,getInitialValue:wr}}}),Vm=l.createContext(null);function j2(e){return e==null?[]:Array.isArray(e)?e:[e]}function Wte(e){return e&&!!e._init}function Wu(){return Wu=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 ry(e,t,n){return Kte()?ry=Reflect.construct.bind():ry=function(o,i,a){var s=[null];s.push.apply(s,i);var c=Function.bind.apply(o,s),u=new c;return a&&Km(u,a.prototype),u},ry.apply(null,arguments)}function Gte(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function k2(e){var t=typeof Map=="function"?new Map:void 0;return k2=function(r){if(r===null||!Gte(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 ry(r,arguments,M2(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Km(o,r)},k2(e)}var Yte=/%[sdj%]/g,qte=function(){};typeof process<"u"&&process.env;function D2(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 Ea(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=i)return s;switch(s){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 s}});return a}return e}function Xte(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Ho(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Xte(t)&&typeof e=="string"&&!e)}function Qte(e,t,n){var r=[],o=0,i=e.length;function a(s){r.push.apply(r,s||[]),o++,o===i&&n(r)}e.forEach(function(s){t(s,a)})}function C_(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var s=r;r=r+1,s()\[\]\\.,;:\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},Kp={integer:function(t){return Kp.number(t)&&parseInt(t,10)===t},float:function(t){return Kp.number(t)&&!Kp.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"&&!Kp.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(I_.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(rne())},hex:function(t){return typeof t=="string"&&!!t.match(I_.hex)}},one=function(t,n,r,o,i){if(t.required&&n===void 0){Kk(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?Kp[s](n)||o.push(Ea(i.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&o.push(Ea(i.messages.types[s],t.fullField,t.type))},ine=function(t,n,r,o,i){var a=typeof t.len=="number",s=typeof t.min=="number",c=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,p=typeof n=="number",g=typeof n=="string",v=Array.isArray(n);if(p?f="number":g?f="string":v&&(f="array"),!f)return!1;v&&(d=n.length),g&&(d=n.replace(u,"_").length),a?d!==t.len&&o.push(Ea(i.messages[f].len,t.fullField,t.len)):s&&!c&&dt.max?o.push(Ea(i.messages[f].max,t.fullField,t.max)):s&&c&&(dt.max)&&o.push(Ea(i.messages[f].range,t.fullField,t.min,t.max))},Ld="enum",ane=function(t,n,r,o,i){t[Ld]=Array.isArray(t[Ld])?t[Ld]:[],t[Ld].indexOf(n)===-1&&o.push(Ea(i.messages[Ld],t.fullField,t[Ld].join(", ")))},sne=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Ea(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(Ea(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Fn={required:Kk,whitespace:nne,type:one,range:ine,enum:ane,pattern:sne},lne=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ho(n,"string")&&!t.required)return r();Fn.required(t,n,o,a,i,"string"),Ho(n,"string")||(Fn.type(t,n,o,a,i),Fn.range(t,n,o,a,i),Fn.pattern(t,n,o,a,i),t.whitespace===!0&&Fn.whitespace(t,n,o,a,i))}r(a)},cne=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ho(n)&&!t.required)return r();Fn.required(t,n,o,a,i),n!==void 0&&Fn.type(t,n,o,a,i)}r(a)},une=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),Ho(n)&&!t.required)return r();Fn.required(t,n,o,a,i),n!==void 0&&(Fn.type(t,n,o,a,i),Fn.range(t,n,o,a,i))}r(a)},dne=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ho(n)&&!t.required)return r();Fn.required(t,n,o,a,i),n!==void 0&&Fn.type(t,n,o,a,i)}r(a)},fne=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ho(n)&&!t.required)return r();Fn.required(t,n,o,a,i),Ho(n)||Fn.type(t,n,o,a,i)}r(a)},hne=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ho(n)&&!t.required)return r();Fn.required(t,n,o,a,i),n!==void 0&&(Fn.type(t,n,o,a,i),Fn.range(t,n,o,a,i))}r(a)},pne=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ho(n)&&!t.required)return r();Fn.required(t,n,o,a,i),n!==void 0&&(Fn.type(t,n,o,a,i),Fn.range(t,n,o,a,i))}r(a)},mne=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();Fn.required(t,n,o,a,i,"array"),n!=null&&(Fn.type(t,n,o,a,i),Fn.range(t,n,o,a,i))}r(a)},gne=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ho(n)&&!t.required)return r();Fn.required(t,n,o,a,i),n!==void 0&&Fn.type(t,n,o,a,i)}r(a)},vne="enum",yne=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ho(n)&&!t.required)return r();Fn.required(t,n,o,a,i),n!==void 0&&Fn[vne](t,n,o,a,i)}r(a)},bne=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ho(n,"string")&&!t.required)return r();Fn.required(t,n,o,a,i),Ho(n,"string")||Fn.pattern(t,n,o,a,i)}r(a)},xne=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ho(n,"date")&&!t.required)return r();if(Fn.required(t,n,o,a,i),!Ho(n,"date")){var c;n instanceof Date?c=n:c=new Date(n),Fn.type(t,c,o,a,i),c&&Fn.range(t,c.getTime(),o,a,i)}}r(a)},wne=function(t,n,r,o,i){var a=[],s=Array.isArray(n)?"array":typeof n;Fn.required(t,n,o,a,i,s),r(a)},yS=function(t,n,r,o,i){var a=t.type,s=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if(Ho(n,a)&&!t.required)return r();Fn.required(t,n,o,s,i,a),Ho(n,a)||Fn.type(t,n,o,s,i)}r(s)},Sne=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ho(n)&&!t.required)return r();Fn.required(t,n,o,a,i)}r(a)},um={string:lne,method:cne,number:une,boolean:dne,regexp:fne,integer:hne,float:pne,array:mne,object:gne,enum:yne,pattern:bne,date:xne,url:yS,hex:yS,email:yS,required:wne,any:Sne};function A2(){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 L2=A2(),bg=function(){function e(n){this.rules=null,this._messages=L2,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=O_(A2(),r)),this._messages},t.validate=function(r,o,i){var a=this;o===void 0&&(o={}),i===void 0&&(i=function(){});var s=r,c=o,u=i;if(typeof c=="function"&&(u=c,c={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,s),Promise.resolve(s);function d(y){var S=[],b={};function x(E){if(Array.isArray(E)){var $;S=($=S).concat.apply($,E)}else S.push(E)}for(var C=0;C=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(Ze(e.slice(0,n)),[o],Ze(e.slice(n,t)),Ze(e.slice(t+1,r))):i<0?[].concat(Ze(e.slice(0,t)),Ze(e.slice(t+1,n+1)),[o],Ze(e.slice(n+1,r))):e}var Nne=["name"],za=[];function P_(e,t,n,r,o,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var R4=function(e){ss(n,e);var t=ls(n);function n(r){var o;if(vo(this,n),o=t.call(this,r),o.state={resetCount:0},o.cancelRegisterFunc=null,o.mounted=!1,o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.prevValidating=void 0,o.errors=za,o.warnings=za,o.cancelRegister=function(){var c=o.props,u=c.preserve,d=c.isListField,f=c.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(d,u,fo(f)),o.cancelRegisterFunc=null},o.getNamePath=function(){var c=o.props,u=c.name,d=c.fieldContext,f=d.prefixName,p=f===void 0?[]:f;return u!==void 0?[].concat(Ze(p),Ze(u)):[]},o.getRules=function(){var c=o.props,u=c.rules,d=u===void 0?[]:u,f=c.fieldContext;return d.map(function(p){return typeof p=="function"?p(f):p})},o.refresh=function(){o.mounted&&o.setState(function(c){var u=c.resetCount;return{resetCount:u+1}})},o.metaCache=null,o.triggerMetaEvent=function(c){var u=o.props.onMetaChange;if(u){var d=le(le({},o.getMeta()),{},{destroy:c});os(o.metaCache,d)||u(d),o.metaCache=d}else o.metaCache=null},o.onStoreChange=function(c,u,d){var f=o.props,p=f.shouldUpdate,g=f.dependencies,v=g===void 0?[]:g,y=f.onReset,S=d.store,b=o.getNamePath(),x=o.getValue(c),C=o.getValue(S),E=u&&dm(u,b);switch(d.type==="valueUpdate"&&d.source==="external"&&x!==C&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=za,o.warnings=za,o.triggerMetaEvent()),d.type){case"reset":if(!u||E){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=za,o.warnings=za,o.triggerMetaEvent(),y?.(),o.refresh();return}break;case"remove":{if(p){o.reRender();return}break}case"setField":{if(E){var $=d.data;"touched"in $&&(o.touched=$.touched),"validating"in $&&!("originRCField"in $)&&(o.validatePromise=$.validating?Promise.resolve([]):null),"errors"in $&&(o.errors=$.errors||za),"warnings"in $&&(o.warnings=$.warnings||za),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}if(p&&!b.length&&P_(p,c,S,x,C,d)){o.reRender();return}break}case"dependenciesUpdate":{var O=v.map(fo);if(O.some(function(I){return dm(d.relatedFields,I)})){o.reRender();return}break}default:if(E||(!v.length||b.length||p)&&P_(p,c,S,x,C,d)){o.reRender();return}break}p===!0&&o.reRender()},o.validateRules=function(c){var u=o.getNamePath(),d=o.getValue(),f=c||{},p=f.triggerName,g=f.validateOnly,v=g===void 0?!1:g,y=Promise.resolve().then(function(){if(!o.mounted)return[];var S=o.props,b=S.validateFirst,x=b===void 0?!1:b,C=S.messageVariables,E=o.getRules();p&&(E=E.filter(function(O){return O}).filter(function(O){var I=O.validateTrigger;if(!I)return!0;var N=j2(I);return N.includes(p)}));var $=Ene(u,d,E,c,x,C);return $.catch(function(O){return O}).then(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:za;if(o.validatePromise===y){var I;o.validatePromise=null;var N=[],_=[];(I=O.forEach)===null||I===void 0||I.call(O,function(T){var D=T.rule.warningOnly,j=T.errors,P=j===void 0?za:j;D?_.push.apply(_,Ze(P)):N.push.apply(N,Ze(P))}),o.errors=N,o.warnings=_,o.triggerMetaEvent(),o.reRender()}}),$});return v||(o.validatePromise=y,o.dirty=!0,o.errors=za,o.warnings=za,o.triggerMetaEvent(),o.reRender()),y},o.isFieldValidating=function(){return!!o.validatePromise},o.isFieldTouched=function(){return o.touched},o.isFieldDirty=function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var c=o.props.fieldContext,u=c.getInternalHooks(Uu),d=u.getInitialValue;return d(o.getNamePath())!==void 0},o.getErrors=function(){return o.errors},o.getWarnings=function(){return o.warnings},o.isListField=function(){return o.props.isListField},o.isList=function(){return o.props.isList},o.isPreserve=function(){return o.props.preserve},o.getMeta=function(){o.prevValidating=o.isFieldValidating();var c={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return c},o.getOnlyChild=function(c){if(typeof c=="function"){var u=o.getMeta();return le(le({},o.getOnlyChild(c(o.getControlled(),u,o.props.fieldContext))),{},{isFunction:!0})}var d=zo(c);return d.length!==1||!l.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}},o.getValue=function(c){var u=o.props.fieldContext.getFieldsValue,d=o.getNamePath();return Ca(c||u(!0),d)},o.getControlled=function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=o.props,d=u.trigger,f=u.validateTrigger,p=u.getValueFromEvent,g=u.normalize,v=u.valuePropName,y=u.getValueProps,S=u.fieldContext,b=f!==void 0?f:S.validateTrigger,x=o.getNamePath(),C=S.getInternalHooks,E=S.getFieldsValue,$=C(Uu),O=$.dispatch,I=o.getValue(),N=y||function(j){return ae({},v,j)},_=c[d],T=le(le({},c),N(I));T[d]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var j,P=arguments.length,M=new Array(P),A=0;A=0&&T<=D.length?(d.keys=[].concat(Ze(d.keys.slice(0,T)),[d.id],Ze(d.keys.slice(T))),C([].concat(Ze(D.slice(0,T)),[_],Ze(D.slice(T))))):(d.keys=[].concat(Ze(d.keys),[d.id]),C([].concat(Ze(D),[_]))),d.id+=1},remove:function(_){var T=$(),D=new Set(Array.isArray(_)?_:[_]);D.size<=0||(d.keys=d.keys.filter(function(j,P){return!D.has(P)}),C(T.filter(function(j,P){return!D.has(P)})))},move:function(_,T){if(_!==T){var D=$();_<0||_>=D.length||T<0||T>=D.length||(d.keys=T_(d.keys,_,T),C(T_(D,_,T)))}}},I=x||[];return Array.isArray(I)||(I=[]),r(I.map(function(N,_){var T=d.keys[_];return T===void 0&&(d.keys[_]=d.id,T=d.keys[_],d.id+=1),{name:_,key:T,isListField:!0}}),O,S)})))}function _ne(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,i){e.forEach(function(a,s){a.catch(function(c){return t=!0,c}).then(function(c){n-=1,r[s]=c,!(n>0)&&(t&&i(r),o(r))})})}):Promise.resolve([])}var Xk="__@field_split__";function bS(e){return e.map(function(t){return"".concat(Wt(t),":").concat(t)}).join(Xk)}var Fd=function(){function e(){vo(this,e),this.kvs=new Map}return yo(e,[{key:"set",value:function(n,r){this.kvs.set(bS(n),r)}},{key:"get",value:function(n){return this.kvs.get(bS(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(bS(n))}},{key:"map",value:function(n){return Ze(this.kvs.entries()).map(function(r){var o=me(r,2),i=o[0],a=o[1],s=i.split(Xk);return n({key:s.map(function(c){var u=c.match(/^([^:]*):(.*)$/),d=me(u,3),f=d[1],p=d[2];return f==="number"?Number(p):p}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,i=r.value;return n[o.join(".")]=i,null}),n}}]),e}(),Tne=["name"],Pne=yo(function e(t){var n=this;vo(this,e),this.formHooked=!1,this.forceRootUpdate=void 0,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return{getFieldValue: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}},this.getInternalHooks=function(r){return r===Uu?(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}):(dr(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(r){n.subscribable=r},this.prevWithoutPreserves=null,this.setInitialValues=function(r,o){if(n.initialValues=r||{},o){var i,a=Sf(r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(s){var c=s.key;a=Ns(a,c,Ca(r,c))}),n.prevWithoutPreserves=null,n.updateStore(a)}},this.destroyForm=function(){var r=new Fd;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||r.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=r},this.getInitialValue=function(r){var o=Ca(n.initialValues,r);return r.length?Sf(o):o},this.setCallbacks=function(r){n.callbacks=r},this.setValidateMessages=function(r){n.validateMessages=r},this.setPreserve=function(r){n.preserve=r},this.watchList=[],this.registerWatch=function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}},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)})}},this.timeoutId=null,this.warningUnhooked=function(){},this.updateStore=function(r){n.store=r},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},this.getFieldsMap=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new Fd;return n.getFieldEntities(r).forEach(function(i){var a=i.getNamePath();o.set(a,i)}),o},this.getFieldEntitiesForNamePathList=function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(i){var a=fo(i);return o.get(a)||{INVALIDATE_NAME_PATH:fo(i)}})},this.getFieldsValue=function(r,o){n.warningUnhooked();var i,a,s;if(r===!0||Array.isArray(r)?(i=r,a=o):r&&Wt(r)==="object"&&(s=r.strict,a=r.filter),i===!0&&!a)return n.store;var c=n.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),u=[];return c.forEach(function(d){var f,p="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(s){var g;if(!((g=d.isList)===null||g===void 0)&&g.call(d))return}else if(!i&&(!((f=d.isListField)===null||f===void 0)&&f.call(d)))return;if(!a)u.push(p);else{var v="getMeta"in d?d.getMeta():null;a(v)&&u.push(p)}}),__(n.store,u.map(fo))},this.getFieldValue=function(r){n.warningUnhooked();var o=fo(r);return Ca(n.store,o)},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:fo(r[a]),errors:[],warnings:[]}})},this.getFieldError=function(r){n.warningUnhooked();var o=fo(r),i=n.getFieldsError([o])[0];return i.errors},this.getFieldWarning=function(r){n.warningUnhooked();var o=fo(r),i=n.getFieldsError([o])[0];return i.warnings},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 Fd,i=n.getFieldEntities(!0);i.forEach(function(c){var u=c.props.initialValue,d=c.getNamePath();if(u!==void 0){var f=o.get(d)||new Set;f.add({entity:c,value:u}),o.set(d,f)}});var a=function(u){u.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var p=d.getNamePath(),g=n.getInitialValue(p);if(g!==void 0)dr(!1,"Form already set 'initialValues' with path '".concat(p.join("."),"'. Field can not overwrite it."));else{var v=o.get(p);if(v&&v.size>1)dr(!1,"Multiple Field with path '".concat(p.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(v){var y=n.getFieldValue(p);(!r.skipExist||y===void 0)&&n.updateStore(Ns(n.store,p,Ze(v)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(c){var u=o.get(c);if(u){var d;(d=s).push.apply(d,Ze(Ze(u).map(function(f){return f.entity})))}})):s=i,a(s)},this.resetFields=function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(Sf(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var i=r.map(fo);i.forEach(function(a){var s=n.getInitialValue(a);n.updateStore(Ns(n.store,a,s))}),n.resetWithFieldInitialValue({namePathList:i}),n.notifyObservers(o,i,{type:"reset"}),n.notifyWatch(i)},this.setFields=function(r){n.warningUnhooked();var o=n.store,i=[];r.forEach(function(a){var s=a.name,c=Ft(a,Tne),u=fo(s);i.push(u),"value"in c&&n.updateStore(Ns(n.store,u,c.value)),n.notifyObservers(o,[u],{type:"setField",data:a})}),n.notifyWatch(i)},this.getFields=function(){var r=n.getFieldEntities(!0),o=r.map(function(i){var a=i.getNamePath(),s=i.getMeta(),c=le(le({},s),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return o},this.initEntityValue=function(r){var o=r.props.initialValue;if(o!==void 0){var i=r.getNamePath(),a=Ca(n.store,i);a===void 0&&n.updateStore(Ns(n.store,i,o))}},this.isMergedPreserve=function(r){var o=r!==void 0?r:n.preserve;return o??!0},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,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(s)&&(!a||c.length>1)){var u=a?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==u&&n.fieldEntities.every(function(f){return!Yk(f.getNamePath(),o)})){var d=n.store;n.updateStore(Ns(d,o,u,!0)),n.notifyObservers(d,[o],{type:"remove"}),n.triggerDependenciesUpdate(d,o)}}n.notifyWatch([o])}},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,s=r.triggerName;n.validateFields([a],{triggerName:s});break}}},this.notifyObservers=function(r,o,i){if(n.subscribable){var a=le(le({},i),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var c=s.onStoreChange;c(r,o,a)})}else n.forceRootUpdate()},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(Ze(i))}),i},this.updateValue=function(r,o){var i=fo(r),a=n.store;n.updateStore(Ns(n.store,i,o)),n.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]);var s=n.triggerDependenciesUpdate(a,i),c=n.callbacks.onValuesChange;if(c){var u=__(n.store,[i]);c(u,n.getFieldsValue())}n.triggerOnFieldsChange([i].concat(Ze(s)))},this.setFieldsValue=function(r){n.warningUnhooked();var o=n.store;if(r){var i=Sf(n.store,r);n.updateStore(i)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()},this.setFieldValue=function(r,o){n.setFields([{name:r,value:o}])},this.getDependencyChildrenFields=function(r){var o=new Set,i=[],a=new Fd;n.getFieldEntities().forEach(function(c){var u=c.props.dependencies;(u||[]).forEach(function(d){var f=fo(d);a.update(f,function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return p.add(c),p})})});var s=function c(u){var d=a.get(u)||new Set;d.forEach(function(f){if(!o.has(f)){o.add(f);var p=f.getNamePath();f.isFieldDirty()&&p.length&&(i.push(p),c(p))}})};return s(r),i},this.triggerOnFieldsChange=function(r,o){var i=n.callbacks.onFieldsChange;if(i){var a=n.getFields();if(o){var s=new Fd;o.forEach(function(u){var d=u.name,f=u.errors;s.set(d,f)}),a.forEach(function(u){u.errors=s.get(u.name)||u.errors})}var c=a.filter(function(u){var d=u.name;return dm(r,d)});c.length&&i(c,a)}},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 s=!!i,c=s?i.map(fo):[],u=[],d=String(Date.now()),f=new Set;n.getFieldEntities(!0).forEach(function(y){var S;if(s||c.push(y.getNamePath()),!((S=a)===null||S===void 0)&&S.recursive&&s){var b=y.getNamePath();b.every(function(E,$){return i[$]===E||i[$]===void 0})&&c.push(b)}if(!(!y.props.rules||!y.props.rules.length)){var x=y.getNamePath();if(f.add(x.join(d)),!s||dm(c,x)){var C=y.validateRules(le({validateMessages:le(le({},Gk),n.validateMessages)},a));u.push(C.then(function(){return{name:x,errors:[],warnings:[]}}).catch(function(E){var $,O=[],I=[];return($=E.forEach)===null||$===void 0||$.call(E,function(N){var _=N.rule.warningOnly,T=N.errors;_?I.push.apply(I,Ze(T)):O.push.apply(O,Ze(T))}),O.length?Promise.reject({name:x,errors:O,warnings:I}):{name:x,errors:O,warnings:I}}))}}});var p=_ne(u);n.lastValidatePromise=p,p.catch(function(y){return y}).then(function(y){var S=y.map(function(b){var x=b.name;return x});n.notifyObservers(n.store,S,{type:"validateFinish"}),n.triggerOnFieldsChange(S,y)});var g=p.then(function(){return n.lastValidatePromise===p?Promise.resolve(n.getFieldsValue(c)):Promise.reject([])}).catch(function(y){var S=y.filter(function(b){return b&&b.errors.length});return Promise.reject({values:n.getFieldsValue(c),errorFields:S,outOfDate:n.lastValidatePromise!==p})});g.catch(function(y){return y});var v=c.filter(function(y){return f.has(y.join(d))});return n.triggerOnFieldsChange(v),g},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 _4(e){var t=l.useRef(),n=l.useState({}),r=me(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},a=new Pne(i);t.current=a.getForm()}return[t.current]}var U2=l.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Qk=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=l.useContext(U2),s=l.useRef({});return l.createElement(U2.Provider,{value:le(le({},a),{},{validateMessages:le(le({},a.validateMessages),n),triggerFormChange:function(u,d){r&&r(u,{changedFields:d,forms:s.current}),a.triggerFormChange(u,d)},triggerFormFinish:function(u,d){o&&o(u,{values:d,forms:s.current}),a.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(s.current=le(le({},s.current),{},ae({},u,d))),a.registerForm(u,d)},unregisterForm:function(u){var d=le({},s.current);delete d[u],s.current=d,a.unregisterForm(u)}})},i)},jne=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],Mne=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,a=t.form,s=t.preserve,c=t.children,u=t.component,d=u===void 0?"form":u,f=t.validateMessages,p=t.validateTrigger,g=p===void 0?"onChange":p,v=t.onValuesChange,y=t.onFieldsChange,S=t.onFinish,b=t.onFinishFailed,x=Ft(t,jne),C=l.useContext(U2),E=_4(a),$=me(E,1),O=$[0],I=O.getInternalHooks(Uu),N=I.useSubscribe,_=I.setInitialValues,T=I.setCallbacks,D=I.setValidateMessages,j=I.setPreserve,P=I.destroyForm;l.useImperativeHandle(n,function(){return O}),l.useEffect(function(){return C.registerForm(r,O),function(){C.unregisterForm(r)}},[C,O,r]),D(le(le({},C.validateMessages),f)),T({onValuesChange:v,onFieldsChange:function(G){if(C.triggerFormChange(r,G),y){for(var re=arguments.length,Q=new Array(re>1?re-1:0),fe=1;fe{}}),Jk=l.createContext(null),eD=e=>{const t=vr(e,["prefixCls"]);return l.createElement(Qk,Object.assign({},t))},T4=l.createContext({prefixCls:""}),Ai=l.createContext({}),Gm=e=>{let{children:t,status:n,override:r}=e;const o=l.useContext(Ai),i=l.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 l.createElement(Ai.Provider,{value:i},t)};function tD(e,t){return Ne.createElement("span",{className:`${e}-close-x`},t||Ne.createElement(No,{className:`${e}-close-icon`}))}const nD=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:i,onCancel:a,okButtonProps:s,cancelButtonProps:c}=e,[u]=pc("Modal",jM());return Ne.createElement(m4,{disabled:!1},Ne.createElement(ut,Object.assign({onClick:a},c),r||u?.cancelText),Ne.createElement(ut,Object.assign({},Lk(n),{loading:o,onClick:i},s),t||u?.okText))},Dne=e=>({animationDuration:e,animationFillMode:"both"}),Ane=e=>({animationDuration:e,animationFillMode:"both"}),Eb=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({},Dne(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},Ane(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"}}},Lne=new vn("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Fne=new vn("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),rD=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[Eb(r,Lne,Fne,e.motionDurationMid,t),{[` ${o}${r}-enter, ${o}${r}-appear `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},zne=new vn("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Bne=new vn("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Hne=new vn("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Une=new vn("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Wne=new vn("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Vne=new vn("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Kne=new vn("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Gne=new vn("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),Yne={"move-up":{inKeyframes:Kne,outKeyframes:Gne},"move-down":{inKeyframes:zne,outKeyframes:Bne},"move-left":{inKeyframes:Hne,outKeyframes:Une},"move-right":{inKeyframes:Wne,outKeyframes:Vne}},rh=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Yne[t];return[Eb(r,o,i,e.motionDurationMid),{[` ${r}-enter, ${r}-appear `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},$b=new vn("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Ob=new vn("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Ib=new vn("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Rb=new vn("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),qne=new vn("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Xne=new vn("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Qne=new vn("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Zne=new vn("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Jne={"slide-up":{inKeyframes:$b,outKeyframes:Ob},"slide-down":{inKeyframes:Ib,outKeyframes:Rb},"slide-left":{inKeyframes:qne,outKeyframes:Xne},"slide-right":{inKeyframes:Qne,outKeyframes:Zne}},yl=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Jne[t];return[Eb(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}}]},P4=new vn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),ere=new vn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),M_=new vn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),k_=new vn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),tre=new vn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),nre=new vn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),rre=new vn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),ore=new vn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),ire=new vn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),are=new vn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),sre=new vn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),lre=new vn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),cre={zoom:{inKeyframes:P4,outKeyframes:ere},"zoom-big":{inKeyframes:M_,outKeyframes:k_},"zoom-big-fast":{inKeyframes:M_,outKeyframes:k_},"zoom-left":{inKeyframes:rre,outKeyframes:ore},"zoom-right":{inKeyframes:ire,outKeyframes:are},"zoom-up":{inKeyframes:tre,outKeyframes:nre},"zoom-down":{inKeyframes:sre,outKeyframes:lre}},xg=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=cre[t];return[Eb(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}}]},ure=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`}}}),Nb=ure;function D_(e){return{position:e,inset:0}}const oD=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},D_("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},D_("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch",[`&:has(${t}${n}-zoom-enter), &:has(${t}${n}-zoom-appear)`]:{pointerEvents:"none"}})}},{[`${t}-root`]:rD(e)}]},dre=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax})`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},En(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${e.margin*2}px)`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${t}-close`]:Object.assign({position:"absolute",top:(e.modalHeaderHeight-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderHeight-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${e.modalCloseBtnSize}px`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},lu(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, ${t}-body, ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},fre=e=>{const{componentCls:t}=e,n=`${t}-confirm`;return{[n]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${n}-body-wrapper`]:Object.assign({},sc()),[`${n}-body`]:{display:"flex",flexWrap:"wrap",alignItems:"center",[`${n}-title`]:{flex:"0 0 100%",display:"block",overflow:"hidden",color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,[`+ ${n}-content`]:{marginBlockStart:e.marginXS,flexBasis:"100%",maxWidth:`calc(100% - ${e.modalConfirmIconSize+e.marginSM}px)`}},[`${n}-content`]:{color:e.colorText,fontSize:e.fontSize},[`> ${e.iconCls}`]:{flex:"none",marginInlineEnd:e.marginSM,fontSize:e.modalConfirmIconSize,[`+ ${n}-title`]:{flex:1},[`+ ${n}-title + ${n}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.marginSM}}},[`${n}-btns`]:{textAlign:"end",marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${n}-error ${n}-body > ${e.iconCls}`]:{color:e.colorError},[`${n}-warning ${n}-body > ${e.iconCls}, ${n}-confirm ${n}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${n}-info ${n}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${n}-success ${n}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},hre=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},pre=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-confirm`;return{[t]:{[`${t}-content`]:{padding:0},[`${t}-header`]:{padding:e.modalHeaderPadding,borderBottom:`${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`,marginBottom:0},[`${t}-body`]:{padding:e.modalBodyPadding},[`${t}-footer`]:{padding:`${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`,borderTop:`${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`,marginTop:0}},[r]:{[`${n}-modal-body`]:{padding:`${e.padding*2}px ${e.padding*2}px ${e.paddingLG}px`},[`${r}-body`]:{[`> ${e.iconCls}`]:{marginInlineEnd:e.margin,[`+ ${r}-title + ${r}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.margin}}},[`${r}-btns`]:{marginTop:e.marginLG}}}},iD=Pn("Modal",e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5,o=sn(e,{modalBodyPadding:e.paddingLG,modalHeaderPadding:`${t}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderHeight:r*n+t*2,modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalIconHoverColor:e.colorIconHover,modalCloseIconColor:e.colorIcon,modalCloseBtnSize:e.fontSize*e.lineHeight,modalConfirmIconSize:e.fontSize*e.lineHeight});return[dre(o),fre(o),hre(o),oD(o),e.wireframe&&pre(o),xg(o,"zoom")]},e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading}));var mre=globalThis&&globalThis.__rest||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{W2={x:e.pageX,y:e.pageY},setTimeout(()=>{W2=null},100)};Vk()&&document.documentElement.addEventListener("click",gre,!0);const vre=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o,modal:i}=l.useContext(St),a=A=>{const{onCancel:B}=e;B?.(A)},s=A=>{const{onOk:B}=e;B?.(A)},{prefixCls:c,className:u,rootClassName:d,open:f,wrapClassName:p,centered:g,getContainer:v,closeIcon:y,closable:S,focusTriggerAfterClose:b=!0,style:x,visible:C,width:E=520,footer:$}=e,O=mre(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer"]),I=r("modal",c),N=r(),[_,T]=iD(I),D=ne(p,{[`${I}-centered`]:!!g,[`${I}-wrap-rtl`]:o==="rtl"}),j=$===void 0?l.createElement(nD,Object.assign({},e,{onOk:s,onCancel:a})):$,[P,M]=Uk(S,y,A=>tD(I,A),l.createElement(No,{className:`${I}-close-icon`}),!0);return _(l.createElement(sd,null,l.createElement(Gm,{status:!0,override:!0},l.createElement(I4,Object.assign({width:E},O,{getContainer:v===void 0?n:v,prefixCls:I,rootClassName:ne(T,d),wrapClassName:D,footer:j,visible:f??C,mousePosition:(t=O.mousePosition)!==null&&t!==void 0?t:W2,onClose:a,closable:P,closeIcon:M,focusTriggerAfterClose:b,transitionName:Ws(N,"zoom",e.transitionName),maskTransitionName:Ws(N,"fade",e.maskTransitionName),className:ne(T,u,i?.className),style:Object.assign(Object.assign({},i?.style),x)})))))},aD=vre;function sD(e){const{icon:t,onCancel:n,onOk:r,close:o,onConfirm:i,isSilent:a,okText:s,okButtonProps:c,cancelText:u,cancelButtonProps:d,confirmPrefixCls:f,rootPrefixCls:p,type:g,okCancel:v,footer:y,locale:S}=e;let b=t;if(!t&&t!==null)switch(g){case"info":b=l.createElement(S4,null);break;case"success":b=l.createElement(Ch,null);break;case"error":b=l.createElement(Gs,null);break;default:b=l.createElement(lc,null)}const x=e.okType||"primary",C=v??g==="confirm",E=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[$]=pc("Modal"),O=S||$,I=C&&l.createElement(d_,{isSilent:a,actionFn:n,close:function(){o?.apply(void 0,arguments),i?.(!1)},autoFocus:E==="cancel",buttonProps:d,prefixCls:`${p}-btn`},u||O?.cancelText);return l.createElement("div",{className:`${f}-body-wrapper`},l.createElement("div",{className:`${f}-body`},b,e.title===void 0?null:l.createElement("span",{className:`${f}-title`},e.title),l.createElement("div",{className:`${f}-content`},e.content)),y===void 0?l.createElement("div",{className:`${f}-btns`},I,l.createElement(d_,{isSilent:a,type:x,actionFn:r,close:function(){o?.apply(void 0,arguments),i?.(!0)},autoFocus:E==="ok",buttonProps:c,prefixCls:`${p}-btn`},s||(C?O?.okText:O?.justOkText))):y)}const yre=e=>{const{close:t,zIndex:n,afterClose:r,visible:o,open:i,keyboard:a,centered:s,getContainer:c,maskStyle:u,direction:d,prefixCls:f,wrapClassName:p,rootPrefixCls:g,iconPrefixCls:v,theme:y,bodyStyle:S,closable:b=!1,closeIcon:x,modalRender:C,focusTriggerAfterClose:E}=e,$=`${f}-confirm`,O=e.width||416,I=e.style||{},N=e.mask===void 0?!0:e.mask,_=e.maskClosable===void 0?!1:e.maskClosable,T=ne($,`${$}-${e.type}`,{[`${$}-rtl`]:d==="rtl"},e.className);return l.createElement(Sh,{prefixCls:g,iconPrefixCls:v,direction:d,theme:y},l.createElement(aD,{prefixCls:f,className:T,wrapClassName:ne({[`${$}-centered`]:!!e.centered},p),onCancel:()=>t?.({triggerCancel:!0}),open:i,title:"",footer:null,transitionName:Ws(g,"zoom",e.transitionName),maskTransitionName:Ws(g,"fade",e.maskTransitionName),mask:N,maskClosable:_,maskStyle:u,style:I,bodyStyle:S,width:O,zIndex:n,afterClose:r,keyboard:a,centered:s,getContainer:c,closable:b,closeIcon:x,modalRender:C,focusTriggerAfterClose:E},l.createElement(sD,Object.assign({},e,{confirmPrefixCls:$}))))},lD=yre,bre=[],Vu=bre;var xre=globalThis&&globalThis.__rest||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);op&&p.triggerCancel);e.onCancel&&f&&e.onCancel.apply(e,[()=>{}].concat(Ze(u.slice(1))));for(let p=0;p{const v=jM(),{getPrefixCls:y,getIconPrefixCls:S,getTheme:b}=v4(),x=y(void 0,wre()),C=f||`${x}-modal`,E=S(),$=b();let O=p;O===!1&&(O=void 0),C4(l.createElement(lD,Object.assign({},g,{getContainer:O,prefixCls:C,rootPrefixCls:x,iconPrefixCls:E,okText:u,locale:v,theme:$,cancelText:d||v.cancelText})),t)})}function a(){for(var c=arguments.length,u=new Array(c),d=0;d{typeof e.afterClose=="function"&&e.afterClose(),o.apply(this,u)}}),n.visible&&delete n.visible,i(n)}function s(c){typeof c=="function"?n=c(n):n=Object.assign(Object.assign({},n),c),i(n)}return i(n),Vu.push(a),{destroy:a,update:s}}function uD(e){return Object.assign(Object.assign({},e),{type:"warning"})}function dD(e){return Object.assign(Object.assign({},e),{type:"info"})}function fD(e){return Object.assign(Object.assign({},e),{type:"success"})}function hD(e){return Object.assign(Object.assign({},e),{type:"error"})}function pD(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function Sre(e){let{rootPrefixCls:t}=e;cD=t}var Cre=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,{afterClose:r,config:o}=e,i=Cre(e,["afterClose","config"]);const[a,s]=l.useState(!0),[c,u]=l.useState(o),{direction:d,getPrefixCls:f}=l.useContext(St),p=f("modal"),g=f(),v=()=>{var x;r(),(x=c.afterClose)===null||x===void 0||x.call(c)},y=function(){s(!1);for(var x=arguments.length,C=new Array(x),E=0;EO&&O.triggerCancel);c.onCancel&&$&&c.onCancel.apply(c,[()=>{}].concat(Ze(C.slice(1))))};l.useImperativeHandle(t,()=>({destroy:y,update:x=>{u(C=>Object.assign(Object.assign({},C),x))}}));const S=(n=c.okCancel)!==null&&n!==void 0?n:c.type==="confirm",[b]=pc("Modal",Hs.Modal);return l.createElement(lD,Object.assign({prefixCls:p,rootPrefixCls:g},c,{close:y,open:a,afterClose:v,okText:c.okText||(S?b?.okText:b?.justOkText),direction:c.direction||d,cancelText:c.cancelText||b?.cancelText},i))},$re=l.forwardRef(Ere);let A_=0;const Ore=l.memo(l.forwardRef((e,t)=>{const[n,r]=$ee();return l.useImperativeHandle(t,()=>({patchElement:r}),[]),l.createElement(l.Fragment,null,n)}));function Ire(){const e=l.useRef(null),[t,n]=l.useState([]);l.useEffect(()=>{t.length&&(Ze(t).forEach(a=>{a()}),n([]))},[t]);const r=l.useCallback(i=>function(s){var c;A_+=1;const u=l.createRef();let d;const f=new Promise(S=>{d=S});let p=!1,g;const v=l.createElement($re,{key:`modal-${A_}`,config:i(s),ref:u,afterClose:()=>{g?.()},isSilent:()=>p,onConfirm:S=>{d(S)}});return g=(c=e.current)===null||c===void 0?void 0:c.patchElement(v),g&&Vu.push(g),{destroy:()=>{function S(){var b;(b=u.current)===null||b===void 0||b.destroy()}u.current?S():n(b=>[].concat(Ze(b),[S]))},update:S=>{function b(){var x;(x=u.current)===null||x===void 0||x.update(S)}u.current?b():n(x=>[].concat(Ze(x),[b]))},then:S=>(p=!0,f.then(S))}},[]);return[l.useMemo(()=>({info:r(dD),success:r(fD),error:r(hD),warning:r(uD),confirm:r(pD)}),[]),l.createElement(Ore,{key:"modal-holder",ref:e})]}const Rre=e=>{const{componentCls:t,width:n,notificationMarginEdge:r}=e,o=new vn("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}}),i=new vn("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}}),a=new vn("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:n},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}});return{[`&${t}-top, &${t}-bottom`]:{marginInline:0},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:o}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:r,[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}}}},Nre=Rre,_re=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:s,colorInfo:c,colorWarning:u,colorError:d,colorTextHeading:f,notificationBg:p,notificationPadding:g,notificationMarginEdge:v,motionDurationMid:y,motionEaseInOut:S,fontSize:b,lineHeight:x,width:C,notificationIconSize:E,colorText:$}=e,O=`${n}-notice`,I=new vn("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:C},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),N=new vn("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:i,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}}),_={position:"relative",width:C,maxWidth:`calc(100vw - ${v*2}px)`,marginBottom:i,marginInlineStart:"auto",padding:g,overflow:"hidden",lineHeight:x,wordWrap:"break-word",background:p,borderRadius:a,boxShadow:r,[`${n}-close-icon`]:{fontSize:b,cursor:"pointer"},[`${O}-message`]:{marginBottom:e.marginXS,color:f,fontSize:o,lineHeight:e.lineHeightLG},[`${O}-description`]:{fontSize:b,color:$},[`&${O}-closable ${O}-message`]:{paddingInlineEnd:e.paddingLG},[`${O}-with-icon ${O}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+E,fontSize:o},[`${O}-with-icon ${O}-description`]:{marginInlineStart:e.marginSM+E,fontSize:b},[`${O}-icon`]:{position:"absolute",fontSize:E,lineHeight:0,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:c},[`&-warning${t}`]:{color:u},[`&-error${t}`]:{color:d}},[`${O}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${O}-btn`]:{float:"right",marginTop:e.marginSM}};return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},En(e)),{position:"fixed",zIndex:e.zIndexPopup,marginInlineEnd:v,[`${n}-hook-holder`]:{position:"relative"},[`&${n}-top, &${n}-bottom`]:{[O]:{marginInline:"auto auto"}},[`&${n}-topLeft, &${n}-bottomLeft`]:{[O]:{marginInlineEnd:"auto",marginInlineStart:0}},[`${n}-fade-enter, ${n}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:S,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${n}-fade-leave`]:{animationTimingFunction:S,animationFillMode:"both",animationDuration:y,animationPlayState:"paused"},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:I,animationPlayState:"running"},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:N,animationPlayState:"running"}}),Nre(e)),{"&-rtl":{direction:"rtl",[`${O}-btn`]:{float:"left"}}})},{[n]:{[O]:Object.assign({},_)}},{[`${O}-pure-panel`]:Object.assign(Object.assign({},_),{margin:0})}]},mD=Pn("Notification",e=>{const t=e.paddingMD,n=e.paddingLG,r=sn(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.fontSizeLG*e.lineHeightLG,notificationCloseButtonSize:e.controlHeightLG*.55,notificationMarginBottom:e.margin,notificationPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`,notificationMarginEdge:e.marginLG,animationMaxHeight:150});return[_re(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50,width:384}),{clientOnly:!0});var Tre=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,icon:n,type:r,message:o,description:i,btn:a,role:s="alert"}=e;let c=null;return n?c=l.createElement("span",{className:`${t}-icon`},n):r&&(c=l.createElement(Pre[r]||null,{className:ne(`${t}-icon`,`${t}-icon-${r}`)})),l.createElement("div",{className:ne({[`${t}-with-icon`]:c}),role:s},c,l.createElement("div",{className:`${t}-message`},o),l.createElement("div",{className:`${t}-description`},i),a&&l.createElement("div",{className:`${t}-btn`},a))},jre=e=>{const{prefixCls:t,className:n,icon:r,type:o,message:i,description:a,btn:s,closable:c=!0,closeIcon:u}=e,d=Tre(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon"]),{getPrefixCls:f}=l.useContext(St),p=t||f("notification"),g=`${p}-notice`,[,v]=mD(p);return l.createElement(_k,Object.assign({},d,{prefixCls:p,className:ne(n,v,`${g}-pure-panel`),eventKey:"pure",duration:null,closable:c,closeIcon:j4(p,u),content:l.createElement(gD,{prefixCls:g,icon:r,type:o,message:i,description:a,btn:s})}))},Mre=jre;function kre(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function Dre(e){return{motionName:`${e}-fade`}}var Are=globalThis&&globalThis.__rest||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{top:n,bottom:r,prefixCls:o,getContainer:i,maxCount:a,rtl:s,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:d,notification:f}=l.useContext(St),p=o||u("notification"),g=C=>kre(C,n??L_,r??L_),[,v]=mD(p),y=()=>ne(v,{[`${p}-rtl`]:s}),S=()=>Dre(p),[b,x]=wee({prefixCls:p,style:g,className:y,motion:S,closable:!0,closeIcon:j4(p),duration:Lre,getContainer:()=>i?.()||d?.()||document.body,maxCount:a,onAllRemoved:c});return l.useImperativeHandle(t,()=>Object.assign(Object.assign({},b),{prefixCls:p,hashId:v,notification:f})),x});function vD(e){const t=l.useRef(null);return[l.useMemo(()=>{const r=s=>{var c;if(!t.current)return;const{open:u,prefixCls:d,hashId:f,notification:p}=t.current,g=`${d}-notice`,{message:v,description:y,icon:S,type:b,btn:x,className:C,style:E,role:$="alert",closeIcon:O}=s,I=Are(s,["message","description","icon","type","btn","className","style","role","closeIcon"]),N=j4(g,O);return u(Object.assign(Object.assign({placement:(c=e?.placement)!==null&&c!==void 0?c:Fre},I),{content:l.createElement(gD,{prefixCls:g,icon:S,type:b,message:v,description:y,btn:x,role:$}),className:ne(b&&`${g}-${b}`,f,C,p?.className),style:Object.assign(Object.assign({},p?.style),E),closeIcon:N,closable:!!N}))},i={open:r,destroy:s=>{var c,u;s!==void 0?(c=t.current)===null||c===void 0||c.close(s):(u=t.current)===null||u===void 0||u.destroy()}};return["success","info","warning","error"].forEach(s=>{i[s]=c=>r(Object.assign(Object.assign({},c),{type:s}))}),i},[]),l.createElement(zre,Object.assign({key:"notification-holder"},e,{ref:t}))]}function Bre(e){return vD(e)}function yD(e){return function(n){return l.createElement(Sh,{theme:{token:{motion:!1,zIndexPopupBase:0}}},l.createElement(e,Object.assign({},n)))}}function Sg(e,t,n,r){function o(i){const{prefixCls:a,style:s}=i,c=l.useRef(null),[u,d]=l.useState(0),[f,p]=l.useState(0),[g,v]=Vn(!1,{value:i.open}),{getPrefixCls:y}=l.useContext(St),S=y(t||"select",a);l.useEffect(()=>{if(v(!0),typeof ResizeObserver<"u"){const x=new ResizeObserver(E=>{const $=E[0].target;d($.offsetHeight+8),p($.offsetWidth)}),C=setInterval(()=>{var E;const $=n?`.${n(S)}`:`.${S}-dropdown`,O=(E=c.current)===null||E===void 0?void 0:E.querySelector($);O&&(clearInterval(C),x.observe(O))},10);return()=>{clearInterval(C),x.disconnect()}}},[]);let b=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},s),{margin:0}),open:g,visible:g,getPopupContainer:()=>c.current});return r&&(b=r(b)),l.createElement("div",{ref:c,style:{paddingBottom:u,position:"relative",minWidth:f}},l.createElement(e,Object.assign({},b)))}return yD(o)}const _b=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e?.substr(0,4))};var bD=l.createContext(null);function Hre(){return l.useContext(bD)}function Ure(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=l.useState(!1),n=me(t,2),r=n[0],o=n[1],i=l.useRef(null),a=function(){window.clearTimeout(i.current)};l.useEffect(function(){return a},[]);var s=function(u,d){a(),i.current=window.setTimeout(function(){o(u),d&&d()},e)};return[r,s,a]}function xD(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=l.useRef(null),n=l.useRef(null);l.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 Wre(e,t,n,r){var o=l.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},l.useEffect(function(){function i(a){var s;if(!((s=o.current)!==null&&s!==void 0&&s.customizedTrigger)){var c=a.target;c.shadowRoot&&a.composed&&(c=a.composedPath()[0]||c),o.current.open&&e().filter(function(u){return u}).every(function(u){return!u.contains(c)&&u!==c})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[])}var Vre=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],zd=void 0;function Kre(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,s=e.responsiveDisabled,c=e.registerSize,u=e.itemKey,d=e.className,f=e.style,p=e.children,g=e.display,v=e.order,y=e.component,S=y===void 0?"div":y,b=Ft(e,Vre),x=a&&!g;function C(N){c(u,N)}l.useEffect(function(){return function(){C(null)}},[]);var E=i&&o!==zd?i(o):p,$;r||($={opacity:x?0:1,height:x?0:zd,overflowY:x?"hidden":zd,order:a?v:zd,pointerEvents:x?"none":zd,position:x?"absolute":zd});var O={};x&&(O["aria-hidden"]=!0);var I=l.createElement(S,Re({className:ne(!r&&n,d),style:le(le({},$),f)},O,b,{ref:t}),E);return a&&(I=l.createElement(ki,{onResize:function(_){var T=_.offsetWidth;C(T)},disabled:s},I)),I}var fm=l.forwardRef(Kre);fm.displayName="Item";function Gre(e){if(typeof MessageChannel>"u")yn(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function Yre(){var e=l.useRef(null),t=function(r){e.current||(e.current=[],Gre(function(){Bs.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function $p(e,t){var n=l.useState(t),r=me(n,2),o=r[0],i=r[1],a=Lo(function(s){e(function(){i(s)})});return[o,a]}var c1=Ne.createContext(null),qre=["component"],Xre=["className"],Qre=["className"],Zre=function(t,n){var r=l.useContext(c1);if(!r){var o=t.component,i=o===void 0?"div":o,a=Ft(t,qre);return l.createElement(i,Re({},a,{ref:n}))}var s=r.className,c=Ft(r,Xre),u=t.className,d=Ft(t,Qre);return l.createElement(c1.Provider,{value:null},l.createElement(fm,Re({ref:n,className:ne(s,u)},c,d)))},wD=l.forwardRef(Zre);wD.displayName="RawItem";var Jre=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],SD="responsive",CD="invalidate";function eoe(e){return"+ ".concat(e.length," ...")}function toe(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,i=o===void 0?[]:o,a=e.renderItem,s=e.renderRawItem,c=e.itemKey,u=e.itemWidth,d=u===void 0?10:u,f=e.ssr,p=e.style,g=e.className,v=e.maxCount,y=e.renderRest,S=e.renderRawRest,b=e.suffix,x=e.component,C=x===void 0?"div":x,E=e.itemComponent,$=e.onVisibleChange,O=Ft(e,Jre),I=f==="full",N=Yre(),_=$p(N,null),T=me(_,2),D=T[0],j=T[1],P=D||0,M=$p(N,new Map),A=me(M,2),B=A[0],F=A[1],H=$p(N,0),W=me(H,2),V=W[0],K=W[1],G=$p(N,0),re=me(G,2),Q=re[0],fe=re[1],se=$p(N,0),oe=me(se,2),ie=oe[0],ge=oe[1],ve=l.useState(null),he=me(ve,2),be=he[0],ye=he[1],Ce=l.useState(null),Ee=me(Ce,2),je=Ee[0],De=Ee[1],_e=l.useMemo(function(){return je===null&&I?Number.MAX_SAFE_INTEGER:je||0},[je,D]),Me=l.useState(!1),Ie=me(Me,2),Fe=Ie[0],Ge=Ie[1],ft="".concat(r,"-item"),it=Math.max(V,Q),qe=v===SD,at=i.length&&qe,U=v===CD,k=at||typeof v=="number"&&i.length>v,L=l.useMemo(function(){var rt=i;return at?D===null&&I?rt=i:rt=i.slice(0,Math.min(i.length,P/d)):typeof v=="number"&&(rt=i.slice(0,v)),rt},[i,d,D,v,at]),X=l.useMemo(function(){return at?i.slice(_e+1):i.slice(L.length)},[i,L,at,_e]),ee=l.useCallback(function(rt,Ue){var Je;return typeof c=="function"?c(rt):(Je=c&&rt?.[c])!==null&&Je!==void 0?Je:Ue},[c]),$e=l.useCallback(a||function(rt){return rt},[a]);function we(rt,Ue,Je){je===rt&&(Ue===void 0||Ue===be)||(De(rt),Je||(Ge(rtP){we(ht-1,rt-gt-ie+Q);break}}b&&Ke(0)+ie>P&&ye(null)}},[P,B,Q,ie,ee,L]);var tt=Fe&&!!X.length,pe={};be!==null&&at&&(pe={position:"absolute",left:be,top:0});var Te={prefixCls:ft,responsive:at,component:E,invalidate:U},ze=s?function(rt,Ue){var Je=ee(rt,Ue);return l.createElement(c1.Provider,{key:Je,value:le(le({},Te),{},{order:Ue,item:rt,itemKey:Je,registerSize:Se,display:Ue<=_e})},s(rt,Ue))}:function(rt,Ue){var Je=ee(rt,Ue);return l.createElement(fm,Re({},Te,{order:Ue,key:Je,item:rt,renderItem:$e,itemKey:Je,registerSize:Se,display:Ue<=_e}))},ke,et={order:tt?_e:Number.MAX_SAFE_INTEGER,className:"".concat(ft,"-rest"),registerSize:Ae,display:tt};if(S)S&&(ke=l.createElement(c1.Provider,{value:le(le({},Te),et)},S(X)));else{var mt=y||eoe;ke=l.createElement(fm,Re({},Te,et),typeof mt=="function"?mt(X):mt)}var Ve=l.createElement(C,Re({className:ne(!U&&r,g),style:p,ref:t},O),L.map(ze),k?ke:null,b&&l.createElement(fm,Re({},Te,{responsive:qe,responsiveDisabled:!at,order:_e,className:"".concat(ft,"-suffix"),registerSize:We,display:!0,style:pe}),b));return qe&&(Ve=l.createElement(ki,{onResize:de,disabled:!at},Ve)),Ve}var gl=l.forwardRef(toe);gl.displayName="Overflow";gl.Item=wD;gl.RESPONSIVE=SD;gl.INVALIDATE=CD;var Tb=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,i=t.onMouseDown,a=t.onClick,s=t.children,c;return typeof r=="function"?c=r(o):c=r,l.createElement("span",{className:n,onMouseDown:function(d){d.preventDefault(),i&&i(d)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},c!==void 0?c:l.createElement("span",{className:ne(n.split(/\s+/).map(function(u){return"".concat(u,"-icon")}))},s))},noe=function(t,n){var r,o,i=t.prefixCls,a=t.id,s=t.inputElement,c=t.disabled,u=t.tabIndex,d=t.autoFocus,f=t.autoComplete,p=t.editable,g=t.activeDescendantId,v=t.value,y=t.maxLength,S=t.onKeyDown,b=t.onMouseDown,x=t.onChange,C=t.onPaste,E=t.onCompositionStart,$=t.onCompositionEnd,O=t.open,I=t.attrs,N=s||l.createElement("input",null),_=N,T=_.ref,D=_.props,j=D.onKeyDown,P=D.onChange,M=D.onMouseDown,A=D.onCompositionStart,B=D.onCompositionEnd,F=D.style;return"maxLength"in N.props,N=l.cloneElement(N,le(le(le({type:"search"},D),{},{id:a,ref:li(n,T),disabled:c,tabIndex:u,autoComplete:f||"off",autoFocus:d,className:ne("".concat(i,"-selection-search-input"),(r=N)===null||r===void 0||(o=r.props)===null||o===void 0?void 0:o.className),role:"combobox","aria-label":"Search","aria-expanded":O,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":O?g:void 0},I),{},{value:p?v:"",maxLength:y,readOnly:!p,unselectable:p?null:"on",style:le(le({},F),{},{opacity:p?null:0}),onKeyDown:function(W){S(W),j&&j(W)},onMouseDown:function(W){b(W),M&&M(W)},onChange:function(W){x(W),P&&P(W)},onCompositionStart:function(W){E(W),A&&A(W)},onCompositionEnd:function(W){$(W),B&&B(W)},onPaste:C})),N},M4=l.forwardRef(noe);M4.displayName="Input";function ED(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var roe=typeof window<"u"&&window.document&&window.document.documentElement,ooe=roe;function ioe(e){return e!=null}function aoe(e){return!e&&e!==0}function F_(e){return["string","number"].includes(Wt(e))}function $D(e){var t=void 0;return e&&(F_(e.title)?t=e.title.toString():F_(e.label)&&(t=e.label.toString())),t}function soe(e,t){ooe?l.useLayoutEffect(e,t):l.useEffect(e,t)}function loe(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var z_=function(t){t.preventDefault(),t.stopPropagation()},coe=function(t){var n=t.id,r=t.prefixCls,o=t.values,i=t.open,a=t.searchValue,s=t.autoClearSearchValue,c=t.inputRef,u=t.placeholder,d=t.disabled,f=t.mode,p=t.showSearch,g=t.autoFocus,v=t.autoComplete,y=t.activeDescendantId,S=t.tabIndex,b=t.removeIcon,x=t.maxTagCount,C=t.maxTagTextLength,E=t.maxTagPlaceholder,$=E===void 0?function(ye){return"+ ".concat(ye.length," ...")}:E,O=t.tagRender,I=t.onToggleOpen,N=t.onRemove,_=t.onInputChange,T=t.onInputPaste,D=t.onInputKeyDown,j=t.onInputMouseDown,P=t.onInputCompositionStart,M=t.onInputCompositionEnd,A=l.useRef(null),B=l.useState(0),F=me(B,2),H=F[0],W=F[1],V=l.useState(!1),K=me(V,2),G=K[0],re=K[1],Q="".concat(r,"-selection"),fe=i||f==="multiple"&&s===!1||f==="tags"?a:"",se=f==="tags"||f==="multiple"&&s===!1||p&&(i||G);soe(function(){W(A.current.scrollWidth)},[fe]);function oe(ye,Ce,Ee,je,De){return l.createElement("span",{className:ne("".concat(Q,"-item"),ae({},"".concat(Q,"-item-disabled"),Ee)),title:$D(ye)},l.createElement("span",{className:"".concat(Q,"-item-content")},Ce),je&&l.createElement(Tb,{className:"".concat(Q,"-item-remove"),onMouseDown:z_,onClick:De,customizeIcon:b},"×"))}function ie(ye,Ce,Ee,je,De){var _e=function(Ie){z_(Ie),I(!i)};return l.createElement("span",{onMouseDown:_e},O({label:Ce,value:ye,disabled:Ee,closable:je,onClose:De}))}function ge(ye){var Ce=ye.disabled,Ee=ye.label,je=ye.value,De=!d&&!Ce,_e=Ee;if(typeof C=="number"&&(typeof Ee=="string"||typeof Ee=="number")){var Me=String(_e);Me.length>C&&(_e="".concat(Me.slice(0,C),"..."))}var Ie=function(Ge){Ge&&Ge.stopPropagation(),N(ye)};return typeof O=="function"?ie(je,_e,Ce,De,Ie):oe(ye,_e,Ce,De,Ie)}function ve(ye){var Ce=typeof $=="function"?$(ye):$;return oe({title:Ce},Ce,!1)}var he=l.createElement("div",{className:"".concat(Q,"-search"),style:{width:H},onFocus:function(){re(!0)},onBlur:function(){re(!1)}},l.createElement(M4,{ref:c,open:i,prefixCls:r,id:n,inputElement:null,disabled:d,autoFocus:g,autoComplete:v,editable:se,activeDescendantId:y,value:fe,onKeyDown:D,onMouseDown:j,onChange:_,onPaste:T,onCompositionStart:P,onCompositionEnd:M,tabIndex:S,attrs:sa(t,!0)}),l.createElement("span",{ref:A,className:"".concat(Q,"-search-mirror"),"aria-hidden":!0},fe," ")),be=l.createElement(gl,{prefixCls:"".concat(Q,"-overflow"),data:o,renderItem:ge,renderRest:ve,suffix:he,itemKey:loe,maxCount:x});return l.createElement(l.Fragment,null,be,!o.length&&!fe&&l.createElement("span",{className:"".concat(Q,"-placeholder")},u))},uoe=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,i=t.inputRef,a=t.disabled,s=t.autoFocus,c=t.autoComplete,u=t.activeDescendantId,d=t.mode,f=t.open,p=t.values,g=t.placeholder,v=t.tabIndex,y=t.showSearch,S=t.searchValue,b=t.activeValue,x=t.maxLength,C=t.onInputKeyDown,E=t.onInputMouseDown,$=t.onInputChange,O=t.onInputPaste,I=t.onInputCompositionStart,N=t.onInputCompositionEnd,_=t.title,T=l.useState(!1),D=me(T,2),j=D[0],P=D[1],M=d==="combobox",A=M||y,B=p[0],F=S||"";M&&b&&!j&&(F=b),l.useEffect(function(){M&&P(!1)},[M,b]);var H=d!=="combobox"&&!f&&!y?!1:!!F,W=_===void 0?$D(B):_,V=function(){if(B)return null;var G=H?{visibility:"hidden"}:void 0;return l.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:G},g)};return l.createElement(l.Fragment,null,l.createElement("span",{className:"".concat(r,"-selection-search")},l.createElement(M4,{ref:i,prefixCls:r,id:o,open:f,inputElement:n,disabled:a,autoFocus:s,autoComplete:c,editable:A,activeDescendantId:u,value:F,onKeyDown:C,onMouseDown:E,onChange:function(G){P(!0),$(G)},onPaste:O,onCompositionStart:I,onCompositionEnd:N,tabIndex:v,attrs:sa(t,!0),maxLength:M?x:void 0})),!M&&B?l.createElement("span",{className:"".concat(r,"-selection-item"),title:W,style:H?{visibility:"hidden"}:void 0},B.label):null,V())};function doe(e){return![He.ESC,He.SHIFT,He.BACKSPACE,He.TAB,He.WIN_KEY,He.ALT,He.META,He.WIN_KEY_RIGHT,He.CTRL,He.SEMICOLON,He.EQUALS,He.CAPS_LOCK,He.CONTEXT_MENU,He.F1,He.F2,He.F3,He.F4,He.F5,He.F6,He.F7,He.F8,He.F9,He.F10,He.F11,He.F12].includes(e)}var foe=function(t,n){var r=l.useRef(null),o=l.useRef(!1),i=t.prefixCls,a=t.open,s=t.mode,c=t.showSearch,u=t.tokenWithEnter,d=t.autoClearSearchValue,f=t.onSearch,p=t.onSearchSubmit,g=t.onToggleOpen,v=t.onInputKeyDown,y=t.domRef;l.useImperativeHandle(n,function(){return{focus:function(){r.current.focus()},blur:function(){r.current.blur()}}});var S=xD(0),b=me(S,2),x=b[0],C=b[1],E=function(F){var H=F.which;(H===He.UP||H===He.DOWN)&&F.preventDefault(),v&&v(F),H===He.ENTER&&s==="tags"&&!o.current&&!a&&p?.(F.target.value),doe(H)&&g(!0)},$=function(){C(!0)},O=l.useRef(null),I=function(F){f(F,!0,o.current)!==!1&&g(!0)},N=function(){o.current=!0},_=function(F){o.current=!1,s!=="combobox"&&I(F.target.value)},T=function(F){var H=F.target.value;if(u&&O.current&&/[\r\n]/.test(O.current)){var W=O.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");H=H.replace(W,O.current)}O.current=null,I(H)},D=function(F){var H=F.clipboardData,W=H.getData("text");O.current=W},j=function(F){var H=F.target;if(H!==r.current){var W=document.body.style.msTouchAction!==void 0;W?setTimeout(function(){r.current.focus()}):r.current.focus()}},P=function(F){var H=x();F.target!==r.current&&!H&&s!=="combobox"&&F.preventDefault(),(s!=="combobox"&&(!c||!H)||!a)&&(a&&d!==!1&&f("",!0,!1),g())},M={inputRef:r,onInputKeyDown:E,onInputMouseDown:$,onInputChange:T,onInputPaste:D,onInputCompositionStart:N,onInputCompositionEnd:_},A=s==="multiple"||s==="tags"?l.createElement(coe,Re({},t,M)):l.createElement(uoe,Re({},t,M));return l.createElement("div",{ref:y,className:"".concat(i,"-selector"),onClick:j,onMouseDown:P},A)},OD=l.forwardRef(foe);OD.displayName="Selector";var B_=l.createContext(null);function H_(e){return e?Array.isArray(e)?e:[e]:[]}function hoe(e,t,n,r){return l.useMemo(function(){var o=H_(n??t),i=H_(r??t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,n,r])}function poe(){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 moe(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 Op(e){return Ym(parseFloat(e),0)}function W_(e,t){var n=le({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=Cg(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,s=o.borderTopWidth,c=o.borderBottomWidth,u=o.borderLeftWidth,d=o.borderRightWidth,f=r.getBoundingClientRect(),p=r.offsetHeight,g=r.clientHeight,v=r.offsetWidth,y=r.clientWidth,S=Op(s),b=Op(c),x=Op(u),C=Op(d),E=Ym(Math.round(f.width/v*1e3)/1e3),$=Ym(Math.round(f.height/p*1e3)/1e3),O=(v-y-x-C)*E,I=(p-g-S-b)*$,N=S*$,_=b*$,T=x*E,D=C*E,j=0,P=0;if(i==="clip"){var M=Op(a);j=M*E,P=M*$}var A=f.x+T-j,B=f.y+N-P,F=A+f.width+2*j-T-D-O,H=B+f.height+2*P-N-_-I;n.left=Math.max(n.left,A),n.top=Math.max(n.top,B),n.right=Math.min(n.right,F),n.bottom=Math.min(n.bottom,H)}}),n}function V_(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 K_(e,t){var n=t||[],r=me(n,2),o=r[0],i=r[1];return[V_(e.width,o),V_(e.height,i)]}function G_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Bd(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 Nc(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 goe(e,t,n,r,o,i,a){var s=l.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),c=me(s,2),u=c[0],d=c[1],f=l.useRef(0),p=l.useMemo(function(){return t?V2(t):[]},[t]),g=l.useRef({}),v=function(){g.current={}};e||v();var y=Lo(function(){if(t&&n&&e){let Sn=function(Bi,so){var wi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Me,Jo=W.x+Bi,ca=W.y+so,ds=Jo+ie,ja=ca+oe,Si=Math.max(Jo,wi.left),fs=Math.max(ca,wi.top),Lt=Math.min(ds,wi.right),an=Math.min(ja,wi.bottom);return Math.max(0,(Lt-Si)*(an-fs))},wo=function(){Pt=W.y+et,_t=Pt+oe,Ot=W.x+ke,gn=Ot+ie};var x,C,E=t,$=E.ownerDocument,O=Cg(E),I=O.getComputedStyle(E),N=I.width,_=I.height,T=I.position,D=E.style.left,j=E.style.top,P=E.style.right,M=E.style.bottom,A=le(le({},o[r]),i),B=$.createElement("div");(x=E.parentElement)===null||x===void 0||x.appendChild(B),B.style.left="".concat(E.offsetLeft,"px"),B.style.top="".concat(E.offsetTop,"px"),B.style.position=T,B.style.height="".concat(E.offsetHeight,"px"),B.style.width="".concat(E.offsetWidth,"px"),E.style.left="0",E.style.top="0",E.style.right="auto",E.style.bottom="auto";var F;if(Array.isArray(n))F={x:n[0],y:n[1],width:0,height:0};else{var H=n.getBoundingClientRect();F={x:H.x,y:H.y,width:H.width,height:H.height}}var W=E.getBoundingClientRect(),V=$.documentElement,K=V.clientWidth,G=V.clientHeight,re=V.scrollWidth,Q=V.scrollHeight,fe=V.scrollTop,se=V.scrollLeft,oe=W.height,ie=W.width,ge=F.height,ve=F.width,he={left:0,top:0,right:K,bottom:G},be={left:-se,top:-fe,right:re-se,bottom:Q-fe},ye=A.htmlRegion,Ce="visible",Ee="visibleFirst";ye!=="scroll"&&ye!==Ee&&(ye=Ce);var je=ye===Ee,De=W_(be,p),_e=W_(he,p),Me=ye===Ce?_e:De,Ie=je?_e:Me;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";var Fe=E.getBoundingClientRect();E.style.left=D,E.style.top=j,E.style.right=P,E.style.bottom=M,(C=E.parentElement)===null||C===void 0||C.removeChild(B);var Ge=Ym(Math.round(ie/parseFloat(N)*1e3)/1e3),ft=Ym(Math.round(oe/parseFloat(_)*1e3)/1e3);if(Ge===0||ft===0||Yy(n)&&!$h(n))return;var it=A.offset,qe=A.targetOffset,at=K_(W,it),U=me(at,2),k=U[0],L=U[1],X=K_(F,qe),ee=me(X,2),$e=ee[0],we=ee[1];F.x-=$e,F.y-=we;var de=A.points||[],Se=me(de,2),Ae=Se[0],We=Se[1],Ke=G_(We),tt=G_(Ae),pe=Bd(F,Ke),Te=Bd(W,tt),ze=le({},A),ke=pe.x-Te.x+k,et=pe.y-Te.y+L,mt=Sn(ke,et),Ve=Sn(ke,et,_e),rt=Bd(F,["t","l"]),Ue=Bd(W,["t","l"]),Je=Bd(F,["b","r"]),ht=Bd(W,["b","r"]),gt=A.overflow||{},It=gt.adjustX,Et=gt.adjustY,xt=gt.shiftX,pt=gt.shiftY,Nt=function(so){return typeof so=="boolean"?so:so>=0},Pt,_t,Ot,gn;wo();var Mt=Nt(Et),yt=tt[0]===Ke[0];if(Mt&&tt[0]==="t"&&(_t>Ie.bottom||g.current.bt)){var st=et;yt?st-=oe-ge:st=rt.y-ht.y-L;var nt=Sn(ke,st),Xt=Sn(ke,st,_e);nt>mt||nt===mt&&(!je||Xt>=Ve)?(g.current.bt=!0,et=st,L=-L,ze.points=[Nc(tt,0),Nc(Ke,0)]):g.current.bt=!1}if(Mt&&tt[0]==="b"&&(Ptmt||$n===mt&&(!je||Kn>=Ve)?(g.current.tb=!0,et=nn,L=-L,ze.points=[Nc(tt,0),Nc(Ke,0)]):g.current.tb=!1}var Xn=Nt(It),Pr=tt[1]===Ke[1];if(Xn&&tt[1]==="l"&&(gn>Ie.right||g.current.rl)){var Gn=ke;Pr?Gn-=ie-ve:Gn=rt.x-ht.x-k;var Vr=Sn(Gn,et),_o=Sn(Gn,et,_e);Vr>mt||Vr===mt&&(!je||_o>=Ve)?(g.current.rl=!0,ke=Gn,k=-k,ze.points=[Nc(tt,1),Nc(Ke,1)]):g.current.rl=!1}if(Xn&&tt[1]==="r"&&(Otmt||rn===mt&&(!je||Tt>=Ve)?(g.current.lr=!0,ke=Qn,k=-k,ze.points=[Nc(tt,1),Nc(Ke,1)]):g.current.lr=!1}wo();var On=xt===!0?0:xt;typeof On=="number"&&(Ot<_e.left&&(ke-=Ot-_e.left-k,F.x+ve<_e.left+On&&(ke+=F.x-_e.left+ve-On)),gn>_e.right&&(ke-=gn-_e.right-k,F.x>_e.right-On&&(ke+=F.x-_e.right+On)));var Nn=pt===!0?0:pt;typeof Nn=="number"&&(Pt<_e.top&&(et-=Pt-_e.top-L,F.y+ge<_e.top+Nn&&(et+=F.y-_e.top+ge-Nn)),_t>_e.bottom&&(et-=_t-_e.bottom-L,F.y>_e.bottom-Nn&&(et+=F.y-_e.bottom+Nn)));var Fr=W.x+ke,bo=Fr+ie,Jr=W.y+et,fr=Jr+oe,eo=F.x,To=eo+ve,wn=F.y,hn=wn+ge,$t=Math.max(Fr,eo),jt=Math.min(bo,To),Rt=($t+jt)/2,Ht=Rt-Fr,on=Math.max(Jr,wn),_n=Math.min(fr,hn),Bn=(on+_n)/2,xo=Bn-Jr;a?.(t,ze);var zr=Fe.right-W.x-(ke+W.width),jr=Fe.bottom-W.y-(et+W.height);d({ready:!0,offsetX:ke/Ge,offsetY:et/ft,offsetR:zr/Ge,offsetB:jr/ft,arrowX:Ht/Ge,arrowY:xo/ft,scaleX:Ge,scaleY:ft,align:ze})}}),S=function(){f.current+=1;var C=f.current;Promise.resolve().then(function(){f.current===C&&y()})},b=function(){d(function(C){return le(le({},C),{},{ready:!1})})};return Wn(b,[r]),Wn(function(){e||b()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,S]}function voe(e,t,n,r,o){Wn(function(){if(e&&t&&n){let f=function(){r(),o()};var i=t,a=n,s=V2(i),c=V2(a),u=Cg(a),d=new Set([u].concat(Ze(s),Ze(c)));return d.forEach(function(p){p.addEventListener("scroll",f,{passive:!0})}),u.addEventListener("resize",f,{passive:!0}),r(),function(){d.forEach(function(p){p.removeEventListener("scroll",f),u.removeEventListener("resize",f)})}}},[e,t,n])}function yoe(e,t,n,r,o,i,a,s){var c=l.useRef(e),u=l.useRef(!1);c.current!==e&&(u.current=!0,c.current=e),l.useEffect(function(){var d=yn(function(){u.current=!1});return function(){yn.cancel(d)}},[e]),l.useEffect(function(){if(t&&r&&(!o||i)){var d=function(){var O=!1,I=function(T){var D=T.target;O=a(D)},N=function(T){var D=T.target;!u.current&&c.current&&!O&&!a(D)&&s(!1)};return[I,N]},f=d(),p=me(f,2),g=p[0],v=p[1],y=d(),S=me(y,2),b=S[0],x=S[1],C=Cg(r);C.addEventListener("mousedown",g,!0),C.addEventListener("click",v,!0),C.addEventListener("contextmenu",v,!0);var E=i1(n);return E&&(E.addEventListener("mousedown",b,!0),E.addEventListener("click",x,!0),E.addEventListener("contextmenu",x,!0)),function(){C.removeEventListener("mousedown",g,!0),C.removeEventListener("click",v,!0),C.removeEventListener("contextmenu",v,!0),E&&(E.removeEventListener("mousedown",b,!0),E.removeEventListener("click",x,!0),E.removeEventListener("contextmenu",x,!0))}}},[t,n,r,o,i])}function boe(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,s=i.content,c=o.x,u=c===void 0?0:c,d=o.y,f=d===void 0?0:d,p=l.useRef();if(!n||!n.points)return null;var g={position:"absolute"};if(n.autoArrow!==!1){var v=n.points[0],y=n.points[1],S=v[0],b=v[1],x=y[0],C=y[1];S===x||!["t","b"].includes(S)?g.top=f:S==="t"?g.top=0:g.bottom=0,b===C||!["l","r"].includes(b)?g.left=u:b==="l"?g.left=0:g.right=0}return l.createElement("div",{ref:p,className:ne("".concat(t,"-arrow"),a),style:g},s)}function xoe(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?l.createElement(zi,Re({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var s=a.className;return l.createElement("div",{style:{zIndex:r},className:ne("".concat(t,"-mask"),s)})}):null}var woe=l.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),Soe=l.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,s=e.onVisibleChanged,c=e.open,u=e.keepDom,d=e.onClick,f=e.mask,p=e.arrow,g=e.arrowPos,v=e.align,y=e.motion,S=e.maskMotion,b=e.forceRender,x=e.getPopupContainer,C=e.autoDestroy,E=e.portal,$=e.zIndex,O=e.onMouseEnter,I=e.onMouseLeave,N=e.onPointerEnter,_=e.ready,T=e.offsetX,D=e.offsetY,j=e.offsetR,P=e.offsetB,M=e.onAlign,A=e.onPrepare,B=e.stretch,F=e.targetWidth,H=e.targetHeight,W=typeof n=="function"?n():n,V=c||u,K=x?.length>0,G=l.useState(!x||!K),re=me(G,2),Q=re[0],fe=re[1];if(Wn(function(){!Q&&K&&a&&fe(!0)},[Q,K,a]),!Q)return null;var se="auto",oe={left:"-1000vw",top:"-1000vh",right:se,bottom:se};if(_||!c){var ie=v.points,ge=v._experimental,ve=ge?.dynamicInset,he=ve&&ie[0][1]==="r",be=ve&&ie[0][0]==="b";he?(oe.right=j,oe.left=se):(oe.left=T,oe.right=se),be?(oe.bottom=P,oe.top=se):(oe.top=D,oe.bottom=se)}var ye={};return B&&(B.includes("height")&&H?ye.height=H:B.includes("minHeight")&&H&&(ye.minHeight=H),B.includes("width")&&F?ye.width=F:B.includes("minWidth")&&F&&(ye.minWidth=F)),c||(ye.pointerEvents="none"),l.createElement(E,{open:b||V,getContainer:x&&function(){return x(a)},autoDestroy:C},l.createElement(xoe,{prefixCls:o,open:c,zIndex:$,mask:f,motion:S}),l.createElement(ki,{onResize:M,disabled:!c},function(Ce){return l.createElement(zi,Re({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(o,"-hidden")},y,{onAppearPrepare:A,onEnterPrepare:A,visible:c,onVisibleChanged:function(je){var De;y==null||(De=y.onVisibleChanged)===null||De===void 0||De.call(y,je),s(je)}}),function(Ee,je){var De=Ee.className,_e=Ee.style,Me=ne(o,De,r);return l.createElement("div",{ref:li(Ce,t,je),className:Me,style:le(le(le(le({"--arrow-x":"".concat(g.x||0,"px"),"--arrow-y":"".concat(g.y||0,"px")},oe),ye),_e),{},{boxSizing:"border-box",zIndex:$},i),onMouseEnter:O,onMouseLeave:I,onPointerEnter:N,onClick:d},p&&l.createElement(boe,{prefixCls:o,arrow:p,arrowPos:g,align:v}),l.createElement(woe,{cache:!c},W))})}))}),Coe=l.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Ks(n),i=l.useCallback(function(s){Fm(t,r?r(s):s)},[r]),a=hg(i,n.ref);return o?l.cloneElement(n,{ref:a}):n}),Eoe=["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","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function $oe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Cb,t=l.forwardRef(function(n,r){var o=n.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=n.children,s=n.action,c=s===void 0?"hover":s,u=n.showAction,d=n.hideAction,f=n.popupVisible,p=n.defaultPopupVisible,g=n.onPopupVisibleChange,v=n.afterPopupVisibleChange,y=n.mouseEnterDelay,S=n.mouseLeaveDelay,b=S===void 0?.1:S,x=n.focusDelay,C=n.blurDelay,E=n.mask,$=n.maskClosable,O=$===void 0?!0:$,I=n.getPopupContainer,N=n.forceRender,_=n.autoDestroy,T=n.destroyPopupOnHide,D=n.popup,j=n.popupClassName,P=n.popupStyle,M=n.popupPlacement,A=n.builtinPlacements,B=A===void 0?{}:A,F=n.popupAlign,H=n.zIndex,W=n.stretch,V=n.getPopupClassNameFromAlign,K=n.alignPoint,G=n.onPopupClick,re=n.onPopupAlign,Q=n.arrow,fe=n.popupMotion,se=n.maskMotion,oe=n.popupTransitionName,ie=n.popupAnimation,ge=n.maskTransitionName,ve=n.maskAnimation,he=n.className,be=n.getTriggerDOMNode,ye=Ft(n,Eoe),Ce=_||T||!1,Ee=l.useState(!1),je=me(Ee,2),De=je[0],_e=je[1];Wn(function(){_e(_b())},[]);var Me=l.useRef({}),Ie=l.useContext(B_),Fe=l.useMemo(function(){return{registerSubPopup:function(an,sr){Me.current[an]=sr,Ie?.registerSubPopup(an,sr)}}},[Ie]),Ge=zk(),ft=l.useState(null),it=me(ft,2),qe=it[0],at=it[1],U=Lo(function(Lt){Yy(Lt)&&qe!==Lt&&at(Lt),Ie?.registerSubPopup(Ge,Lt)}),k=l.useState(null),L=me(k,2),X=L[0],ee=L[1],$e=Lo(function(Lt){Yy(Lt)&&X!==Lt&&ee(Lt)}),we=l.Children.only(a),de=we?.props||{},Se={},Ae=Lo(function(Lt){var an,sr,Or=X;return Or?.contains(Lt)||((an=i1(Or))===null||an===void 0?void 0:an.host)===Lt||Lt===Or||qe?.contains(Lt)||((sr=i1(qe))===null||sr===void 0?void 0:sr.host)===Lt||Lt===qe||Object.values(Me.current).some(function(tr){return tr?.contains(Lt)||Lt===tr})}),We=U_(i,fe,ie,oe),Ke=U_(i,se,ve,ge),tt=l.useState(p||!1),pe=me(tt,2),Te=pe[0],ze=pe[1],ke=f??Te,et=Lo(function(Lt){f===void 0&&ze(Lt)});Wn(function(){ze(f||!1)},[f]);var mt=l.useRef(ke);mt.current=ke;var Ve=Lo(function(Lt){Bs.flushSync(function(){ke!==Lt&&(et(Lt),g?.(Lt))})}),rt=l.useRef(),Ue=function(){clearTimeout(rt.current)},Je=function(an){var sr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ue(),sr===0?Ve(an):rt.current=setTimeout(function(){Ve(an)},sr*1e3)};l.useEffect(function(){return Ue},[]);var ht=l.useState(!1),gt=me(ht,2),It=gt[0],Et=gt[1];Wn(function(Lt){(!Lt||ke)&&Et(!0)},[ke]);var xt=l.useState(null),pt=me(xt,2),Nt=pt[0],Pt=pt[1],_t=l.useState([0,0]),Ot=me(_t,2),gn=Ot[0],Mt=Ot[1],yt=function(an){Mt([an.clientX,an.clientY])},st=goe(ke,qe,K?gn:X,M,B,F,re),nt=me(st,11),Xt=nt[0],nn=nt[1],$n=nt[2],Kn=nt[3],Xn=nt[4],Pr=nt[5],Gn=nt[6],Vr=nt[7],_o=nt[8],Qn=nt[9],rn=nt[10],Tt=hoe(De,c,u,d),On=me(Tt,2),Nn=On[0],Fr=On[1],bo=Nn.has("click"),Jr=Fr.has("click")||Fr.has("contextMenu"),fr=Lo(function(){It||rn()}),eo=function(){mt.current&&K&&Jr&&Je(!1)};voe(ke,X,qe,fr,eo),Wn(function(){fr()},[gn,M]),Wn(function(){ke&&!(B!=null&&B[M])&&fr()},[JSON.stringify(F)]);var To=l.useMemo(function(){var Lt=moe(B,i,Qn,K);return ne(Lt,V?.(Qn))},[Qn,V,B,i,K]);l.useImperativeHandle(r,function(){return{forceAlign:fr}});var wn=l.useState(0),hn=me(wn,2),$t=hn[0],jt=hn[1],Rt=l.useState(0),Ht=me(Rt,2),on=Ht[0],_n=Ht[1],Bn=function(){if(W&&X){var an=X.getBoundingClientRect();jt(an.width),_n(an.height)}},xo=function(){Bn(),fr()},zr=function(an){Et(!1),rn(),v?.(an)},jr=function(){return new Promise(function(an){Bn(),Pt(function(){return an})})};Wn(function(){Nt&&(rn(),Nt(),Pt(null))},[Nt]);function Sn(Lt,an,sr,Or){Se[Lt]=function(tr){var hs;Or?.(tr),Je(an,sr);for(var Hi=arguments.length,Sl=new Array(Hi>1?Hi-1:0),ps=1;ps1?sr-1:0),tr=1;tr1?sr-1:0),tr=1;tr1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=RD(n,!1),a=i.label,s=i.value,c=i.options,u=i.groupLabel;function d(f,p){f.forEach(function(g){if(p||!(c in g)){var v=g[s];o.push({key:Y_(g,o.length),groupOption:p,data:g,label:g[a],value:v})}else{var y=g[u];y===void 0&&r&&(y=g.label),o.push({key:Y_(g,o.length),group:!0,data:g,label:y}),d(g[c],!0)}})}return d(e,!1),o}function K2(e){var t=le({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return dr(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function _oe(e,t){if(!t||!t.length)return null;var n=!1;function r(i,a){var s=RM(a),c=s[0],u=s.slice(1);if(!c)return[i];var d=i.split(c);return n=n||d.length>1,d.reduce(function(f,p){return[].concat(Ze(f),Ze(r(p,u)))},[]).filter(function(f){return f})}var o=r(e,t);return n?o:null}function Toe(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,s=arguments.length>7?arguments[7]:void 0,c=Ne.useMemo(function(){if(Wt(r)==="object")return r.clearIcon;if(o)return o},[r,o]),u=Ne.useMemo(function(){return!!(!i&&r&&(n.length||a)&&!(s==="combobox"&&a===""))},[r,i,n.length,a,s]);return{allowClear:u,clearIcon:Ne.createElement(Tb,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:c},"×")}}var Poe=["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"],joe=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function G2(e){return e==="tags"||e==="multiple"}var Moe=l.forwardRef(function(e,t){var n,r,o=e.id,i=e.prefixCls,a=e.className,s=e.showSearch,c=e.tagRender,u=e.direction,d=e.omitDomProps,f=e.displayValues,p=e.onDisplayValuesChange,g=e.emptyOptions,v=e.notFoundContent,y=v===void 0?"Not Found":v,S=e.onClear,b=e.mode,x=e.disabled,C=e.loading,E=e.getInputElement,$=e.getRawInputElement,O=e.open,I=e.defaultOpen,N=e.onDropdownVisibleChange,_=e.activeValue,T=e.onActiveValueChange,D=e.activeDescendantId,j=e.searchValue,P=e.autoClearSearchValue,M=e.onSearch,A=e.onSearchSplit,B=e.tokenSeparators,F=e.allowClear,H=e.suffixIcon,W=e.clearIcon,V=e.OptionList,K=e.animation,G=e.transitionName,re=e.dropdownStyle,Q=e.dropdownClassName,fe=e.dropdownMatchSelectWidth,se=e.dropdownRender,oe=e.dropdownAlign,ie=e.placement,ge=e.builtinPlacements,ve=e.getPopupContainer,he=e.showAction,be=he===void 0?[]:he,ye=e.onFocus,Ce=e.onBlur,Ee=e.onKeyUp,je=e.onKeyDown,De=e.onMouseDown,_e=Ft(e,Poe),Me=G2(b),Ie=(s!==void 0?s:Me)||b==="combobox",Fe=le({},_e);joe.forEach(function($t){delete Fe[$t]}),d?.forEach(function($t){delete Fe[$t]});var Ge=l.useState(!1),ft=me(Ge,2),it=ft[0],qe=ft[1];l.useEffect(function(){qe(_b())},[]);var at=l.useRef(null),U=l.useRef(null),k=l.useRef(null),L=l.useRef(null),X=l.useRef(null),ee=Ure(),$e=me(ee,3),we=$e[0],de=$e[1],Se=$e[2];l.useImperativeHandle(t,function(){var $t,jt;return{focus:($t=L.current)===null||$t===void 0?void 0:$t.focus,blur:(jt=L.current)===null||jt===void 0?void 0:jt.blur,scrollTo:function(Ht){var on;return(on=X.current)===null||on===void 0?void 0:on.scrollTo(Ht)}}});var Ae=l.useMemo(function(){var $t;if(b!=="combobox")return j;var jt=($t=f[0])===null||$t===void 0?void 0:$t.value;return typeof jt=="string"||typeof jt=="number"?String(jt):""},[j,b,f]),We=b==="combobox"&&typeof E=="function"&&E()||null,Ke=typeof $=="function"&&$(),tt=hg(U,Ke==null||(n=Ke.props)===null||n===void 0?void 0:n.ref),pe=l.useState(!1),Te=me(pe,2),ze=Te[0],ke=Te[1];Wn(function(){ke(!0)},[]);var et=Vn(!1,{defaultValue:I,value:O}),mt=me(et,2),Ve=mt[0],rt=mt[1],Ue=ze?Ve:!1,Je=!y&&g;(x||Je&&Ue&&b==="combobox")&&(Ue=!1);var ht=Je?!1:Ue,gt=l.useCallback(function($t){var jt=$t!==void 0?$t:!Ue;x||(rt(jt),Ue!==jt&&N?.(jt))},[x,Ue,rt,N]),It=l.useMemo(function(){return(B||[]).some(function($t){return[` `,`\r `].includes($t)})},[B]),Et=function(jt,Rt,Ht){var on=!0,_n=jt;T?.(null);var Bn=Ht?null:_oe(jt,B);return b!=="combobox"&&Bn&&(_n="",A?.(Bn),gt(!1),on=!1),M&&Ae!==_n&&M(_n,{source:Rt?"typing":"effect"}),on},xt=function(jt){!jt||!jt.trim()||M(jt,{source:"submit"})};l.useEffect(function(){!Ue&&!Me&&b!=="combobox"&&Et("",!1,!1)},[Ue]),l.useEffect(function(){Ve&&x&&rt(!1),x&&de(!1)},[x]);var pt=xD(),Nt=me(pt,2),Pt=Nt[0],_t=Nt[1],Ot=function(jt){var Rt=Pt(),Ht=jt.which;if(Ht===He.ENTER&&(b!=="combobox"&&jt.preventDefault(),Ue||gt(!0)),_t(!!Ae),Ht===He.BACKSPACE&&!Rt&&Me&&!Ae&&f.length){for(var on=Ze(f),_n=null,Bn=on.length-1;Bn>=0;Bn-=1){var xo=on[Bn];if(!xo.disabled){on.splice(Bn,1),_n=xo;break}}_n&&p(on,{type:"remove",values:[_n]})}for(var zr=arguments.length,jr=new Array(zr>1?zr-1:0),Sn=1;Sn1?Rt-1:0),on=1;on1?Bn-1:0),zr=1;zr1&&arguments[1]!==void 0?arguments[1]:!1;return zo(e).map(function(n,r){if(!l.isValidElement(n)||!n.type)return null;var o=n,i=o.type.isSelectOptGroup,a=o.key,s=o.props,c=s.children,u=Ft(s,Boe);return t||!i?Hoe(n):le(le({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},u),{},{options:ND(c)})}).filter(function(n){return n})}function Uoe(e,t,n,r,o){return l.useMemo(function(){var i=e,a=!e;a&&(i=ND(t));var s=new Map,c=new Map,u=function(p,g,v){v&&typeof v=="string"&&p.set(g[v],g)};function d(f){for(var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g=0;g0,K=l.useMemo(function(){if(i===0||H===0)return 0;var ve=i/H;return ve*W},[i,H,W]),G=function(he){he.stopPropagation(),he.preventDefault()},re=l.useRef({top:K,dragging:y,pageY:C,startTop:I});re.current={top:K,dragging:y,pageY:C,startTop:I};var Q=function(he){S(!0),E(Q_(he,d)),N(re.current.top),s(),he.stopPropagation(),he.preventDefault()};l.useEffect(function(){var ve=function(Ce){Ce.preventDefault()},he=T.current,be=D.current;return he.addEventListener("touchstart",ve),be.addEventListener("touchstart",Q),function(){he.removeEventListener("touchstart",ve),be.removeEventListener("touchstart",Q)}},[]);var fe=l.useRef();fe.current=H;var se=l.useRef();se.current=W,l.useEffect(function(){if(y){var ve,he=function(Ce){var Ee=re.current,je=Ee.dragging,De=Ee.pageY,_e=Ee.startTop;if(yn.cancel(ve),je){var Me=Q_(Ce,d)-De,Ie=_e;!_&&d?Ie-=Me:Ie+=Me;var Fe=fe.current,Ge=se.current,ft=Ge?Ie/Ge:0,it=Math.ceil(ft*Fe);it=Math.max(it,0),it=Math.min(it,Fe),ve=yn(function(){u(it,d)})}},be=function(){S(!1),c()};return window.addEventListener("mousemove",he),window.addEventListener("touchmove",he),window.addEventListener("mouseup",be),window.addEventListener("touchend",be),function(){window.removeEventListener("mousemove",he),window.removeEventListener("touchmove",he),window.removeEventListener("mouseup",be),window.removeEventListener("touchend",be),yn.cancel(ve)}}},[y]),l.useEffect(function(){F()},[i]),l.useImperativeHandle(t,function(){return{delayHidden:F}});var oe="".concat(r,"-scrollbar"),ie={position:"absolute",visibility:M&&V?null:"hidden"},ge={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return d?(ie.height=8,ie.left=0,ie.right=0,ie.bottom=0,ge.height="100%",ge.width=f,_?ge.left=K:ge.right=K):(ie.width=8,ie.top=0,ie.bottom=0,_?ie.right=0:ie.left=0,ge.width="100%",ge.height=f,ge.top=K),l.createElement("div",{ref:T,className:ne(oe,(n={},ae(n,"".concat(oe,"-horizontal"),d),ae(n,"".concat(oe,"-vertical"),!d),ae(n,"".concat(oe,"-visible"),M),n)),style:ie,onMouseDown:G,onMouseMove:F},l.createElement("div",{ref:D,className:ne("".concat(oe,"-thumb"),ae({},"".concat(oe,"-thumb-moving"),y)),style:ge,onMouseDown:Q}))});function Woe(e){var t=e.children,n=e.setRef,r=l.useCallback(function(o){n(o)},[]);return l.cloneElement(t,{ref:r})}function Voe(e,t,n,r,o,i,a){var s=a.getKey;return e.slice(t,n+1).map(function(c,u){var d=t+u,f=i(c,d,{style:{width:r}}),p=s(c);return l.createElement(Woe,{key:p,setRef:function(v){return o(c,v)}},f)})}var Koe=function(){function e(){vo(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return yo(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 Goe(e,t,n){var r=l.useState(0),o=me(r,2),i=o[0],a=o[1],s=l.useRef(new Map),c=l.useRef(new Koe),u=l.useRef();function d(){yn.cancel(u.current)}function f(){d(),u.current=yn(function(){s.current.forEach(function(g,v){if(g&&g.offsetParent){var y=qy(g),S=y.offsetHeight;c.current.get(v)!==S&&c.current.set(v,y.offsetHeight)}}),a(function(g){return g+1})})}function p(g,v){var y=e(g),S=s.current.get(y);v?(s.current.set(y,v),f()):s.current.delete(y),!S!=!v&&(v?t?.(g):n?.(g))}return l.useEffect(function(){return d},[]),[p,f,c.current,i]}function Yoe(e,t,n,r,o,i,a,s){var c=l.useRef();return function(u){if(u==null){s();return}if(yn.cancel(c.current),typeof u=="number")a(u);else if(u&&Wt(u)==="object"){var d,f=u.align;"index"in u?d=u.index:d=t.findIndex(function(y){return o(y)===u.key});var p=u.offset,g=p===void 0?0:p,v=function y(S,b){if(!(S<0||!e.current)){var x=e.current.clientHeight,C=!1,E=b;if(x){for(var $=b||f,O=0,I=0,N=0,_=Math.min(t.length,d),T=0;T<=_;T+=1){var D=o(t[T]);I=O;var j=n.get(D);N=I+(j===void 0?r:j),O=N,T===d&&j===void 0&&(C=!0)}var P=null;switch($){case"top":P=I-g;break;case"bottom":P=N-x+g;break;default:{var M=e.current.scrollTop,A=M+x;IA&&(E="bottom")}}P!==null&&P!==e.current.scrollTop&&a(P)}c.current=yn(function(){C&&i(),y(S-1,E)},2)}};v(3)}}}function qoe(e,t,n){var r=e.length,o=t.length,i,a;if(r===0&&o===0)return null;r"u"?"undefined":Wt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const TD=function(e,t){var n=l.useRef(!1),r=l.useRef(null);function o(){clearTimeout(r.current),n.current=!0,r.current=setTimeout(function(){n.current=!1},50)}var i=l.useRef({top:e,bottom:t});return i.current.top=e,i.current.bottom=t,function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=a<0&&i.current.top||a>0&&i.current.bottom;return s&&c?(clearTimeout(r.current),n.current=!1):(!c||n.current)&&o(),!n.current&&c}};function Qoe(e,t,n,r,o){var i=l.useRef(0),a=l.useRef(null),s=l.useRef(null),c=l.useRef(!1),u=TD(t,n);function d(S){yn.cancel(a.current);var b=S.deltaY;i.current+=b,s.current=b,!u(b)&&(J_||S.preventDefault(),a.current=yn(function(){var x=c.current?10:1;o(i.current*x),i.current=0}))}function f(S){var b=S.deltaX;o(b,!0),J_||S.preventDefault()}var p=l.useRef(null),g=l.useRef(null);function v(S){if(e){yn.cancel(g.current),g.current=yn(function(){p.current=null},2);var b=S.deltaX,x=S.deltaY,C=Math.abs(b),E=Math.abs(x);p.current===null&&(p.current=r&&C>E?"x":"y"),p.current==="x"?f(S):d(S)}}function y(S){e&&(c.current=S.detail===s.current)}return[v,y]}var Zoe=14/15;function Joe(e,t,n){var r=l.useRef(!1),o=l.useRef(0),i=l.useRef(null),a=l.useRef(null),s,c=function(p){if(r.current){var g=Math.ceil(p.touches[0].pageY),v=o.current-g;o.current=g,n(v)&&p.preventDefault(),clearInterval(a.current),a.current=setInterval(function(){v*=Zoe,(!n(v,!0)||Math.abs(v)<=.1)&&clearInterval(a.current)},16)}},u=function(){r.current=!1,s()},d=function(p){s(),p.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(p.touches[0].pageY),i.current=p.target,i.current.addEventListener("touchmove",c),i.current.addEventListener("touchend",u))};s=function(){i.current&&(i.current.removeEventListener("touchmove",c),i.current.removeEventListener("touchend",u))},Wn(function(){return e&&t.current.addEventListener("touchstart",d),function(){var f;(f=t.current)===null||f===void 0||f.removeEventListener("touchstart",d),s(),clearInterval(a.current)}},[e])}var eie=20;function e6(){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,eie),n=Math.min(n,e/2),Math.floor(n)}function tie(e,t,n,r){var o=l.useMemo(function(){return[new Map,[]]},[e,n.id,r]),i=me(o,2),a=i[0],s=i[1],c=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d,p=a.get(d),g=a.get(f);if(p===void 0||g===void 0)for(var v=e.length,y=s.length;yi,T=v==="rtl",D=ne(r,ae({},"".concat(r,"-rtl"),T),o),j=d||rie,P=l.useRef(),M=l.useRef(),A=l.useState(0),B=me(A,2),F=B[0],H=B[1],W=l.useState(0),V=me(W,2),K=V[0],G=V[1],re=l.useState(!1),Q=me(re,2),fe=Q[0],se=Q[1],oe=function(){se(!0)},ie=function(){se(!1)},ge=l.useCallback(function(Mt){return typeof p=="function"?p(Mt):Mt?.[p]},[p]),ve={getKey:ge};function he(Mt){H(function(yt){var st;typeof Mt=="function"?st=Mt(yt):st=Mt;var nt=tt(st);return P.current.scrollTop=nt,nt})}var be=l.useRef({start:0,end:j.length}),ye=l.useRef(),Ce=Xoe(j,ge),Ee=me(Ce,1),je=Ee[0];ye.current=je;var De=Goe(ge,null,null),_e=me(De,4),Me=_e[0],Ie=_e[1],Fe=_e[2],Ge=_e[3],ft=l.useMemo(function(){if(!N)return{scrollHeight:void 0,start:0,end:j.length-1,offset:void 0};if(!_){var Mt;return{scrollHeight:((Mt=M.current)===null||Mt===void 0?void 0:Mt.offsetHeight)||0,start:0,end:j.length-1,offset:void 0}}for(var yt=0,st,nt,Xt,nn=j.length,$n=0;$n=F&&st===void 0&&(st=$n,nt=yt),Gn>F+i&&Xt===void 0&&(Xt=$n),yt=Gn}return st===void 0&&(st=0,nt=0,Xt=Math.ceil(i/a)),Xt===void 0&&(Xt=j.length-1),Xt=Math.min(Xt+1,j.length-1),{scrollHeight:yt,start:st,end:Xt,offset:nt}},[_,N,F,j,Ge,i]),it=ft.scrollHeight,qe=ft.start,at=ft.end,U=ft.offset;be.current.start=qe,be.current.end=at;var k=l.useState({width:0,height:i}),L=me(k,2),X=L[0],ee=L[1],$e=function(yt){ee(yt)},we=l.useRef(),de=l.useRef(),Se=l.useMemo(function(){return e6(X.width,y)},[X.width,y]),Ae=l.useMemo(function(){return e6(X.height,it)},[X.height,it]),We=it-i,Ke=l.useRef(We);Ke.current=We;function tt(Mt){var yt=Mt;return Number.isNaN(Ke.current)||(yt=Math.min(yt,Ke.current)),yt=Math.max(yt,0),yt}var pe=F<=0,Te=F>=We,ze=TD(pe,Te),ke=function(){return{x:T?-K:K,y:F}},et=l.useRef(ke()),mt=Lo(function(){if(C){var Mt=ke();(et.current.x!==Mt.x||et.current.y!==Mt.y)&&(C(Mt),et.current=Mt)}});function Ve(Mt,yt){var st=Mt;yt?(Bs.flushSync(function(){G(st)}),mt()):he(st)}function rt(Mt){var yt=Mt.currentTarget.scrollTop;yt!==F&&he(yt),x?.(Mt),mt()}var Ue=function(yt){var st=yt,nt=y-X.width;return st=Math.max(st,0),st=Math.min(st,nt),st},Je=Lo(function(Mt,yt){yt?(Bs.flushSync(function(){G(function(st){var nt=st+(T?-Mt:Mt);return Ue(nt)})}),mt()):he(function(st){var nt=st+Mt;return nt})}),ht=Qoe(N,pe,Te,!!y,Je),gt=me(ht,2),It=gt[0],Et=gt[1];Joe(N,P,function(Mt,yt){return ze(Mt,yt)?!1:(It({preventDefault:function(){},deltaY:Mt}),!0)}),Wn(function(){function Mt(st){N&&st.preventDefault()}var yt=P.current;return yt.addEventListener("wheel",It),yt.addEventListener("DOMMouseScroll",Et),yt.addEventListener("MozMousePixelScroll",Mt),function(){yt.removeEventListener("wheel",It),yt.removeEventListener("DOMMouseScroll",Et),yt.removeEventListener("MozMousePixelScroll",Mt)}},[N]);var xt=function(){var yt,st;(yt=we.current)===null||yt===void 0||yt.delayHidden(),(st=de.current)===null||st===void 0||st.delayHidden()},pt=Yoe(P,j,Fe,a,ge,Ie,he,xt);l.useImperativeHandle(t,function(){return{getScrollInfo:ke,scrollTo:function(yt){function st(nt){return nt&&Wt(nt)==="object"&&("left"in nt||"top"in nt)}st(yt)?(yt.left!==void 0&&G(Ue(yt.left)),pt(yt.top)):pt(yt)}}}),Wn(function(){if(E){var Mt=j.slice(qe,at+1);E(Mt,j)}},[qe,at,j]);var Nt=tie(j,ge,Fe,a),Pt=O?.({start:qe,end:at,virtual:_,offsetX:K,offsetY:U,rtl:T,getSize:Nt}),_t=Voe(j,qe,at,y,Me,f,ve),Ot=null;i&&(Ot=le(ae({},c?"height":"maxHeight",i),oie),N&&(Ot.overflowY="hidden",y&&(Ot.overflowX="hidden"),fe&&(Ot.pointerEvents="none")));var gn={};return T&&(gn.dir="rtl"),l.createElement("div",Re({style:le(le({},u),{},{position:"relative"}),className:D},gn,I),l.createElement(ki,{onResize:$e},l.createElement(b,{className:"".concat(r,"-holder"),style:Ot,ref:P,onScroll:rt,onMouseEnter:xt},l.createElement(_D,{prefixCls:r,height:it,offsetX:K,offsetY:U,scrollWidth:y,onInnerResize:Ie,ref:M,innerProps:$,rtl:T,extra:Pt},_t))),_&&it>i&&l.createElement(Z_,{ref:we,prefixCls:r,scrollOffset:F,scrollRange:it,rtl:T,onScroll:Ve,onStartMove:oe,onStopMove:ie,spinSize:Ae,containerSize:X.height}),_&&y&&l.createElement(Z_,{ref:de,prefixCls:r,scrollOffset:K,scrollRange:y,rtl:T,onScroll:Ve,onStartMove:oe,onStopMove:ie,spinSize:Se,containerSize:X.width,horizontal:!0}))}var A4=l.forwardRef(iie);A4.displayName="List";var PD=l.createContext(null);function aie(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var sie=["disabled","title","children","style","className"];function t6(e){return typeof e=="string"||typeof e=="number"}var lie=function(t,n){var r=Hre(),o=r.prefixCls,i=r.id,a=r.open,s=r.multiple,c=r.mode,u=r.searchValue,d=r.toggleOpen,f=r.notFoundContent,p=r.onPopupScroll,g=l.useContext(PD),v=g.flattenOptions,y=g.onActiveValue,S=g.defaultActiveFirstOption,b=g.onSelect,x=g.menuItemSelectedIcon,C=g.rawValues,E=g.fieldNames,$=g.virtual,O=g.direction,I=g.listHeight,N=g.listItemHeight,_="".concat(o,"-item"),T=hc(function(){return v},[a,v],function(oe,ie){return ie[0]&&oe[1]!==ie[1]}),D=l.useRef(null),j=function(ie){ie.preventDefault()},P=function(ie){D.current&&D.current.scrollTo(typeof ie=="number"?{index:ie}:ie)},M=function(ie){for(var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ve=T.length,he=0;he1&&arguments[1]!==void 0?arguments[1]:!1;H(ie);var ve={source:ge?"keyboard":"mouse"},he=T[ie];if(!he){y(null,-1,ve);return}y(he.value,ie,ve)};l.useEffect(function(){W(S!==!1?M(0):-1)},[T.length,u]);var V=l.useCallback(function(oe){return C.has(oe)&&c!=="combobox"},[c,Ze(C).toString(),C.size]);l.useEffect(function(){var oe=setTimeout(function(){if(!s&&a&&C.size===1){var ge=Array.from(C)[0],ve=T.findIndex(function(he){var be=he.data;return be.value===ge});ve!==-1&&(W(ve),P(ve))}});if(a){var ie;(ie=D.current)===null||ie===void 0||ie.scrollTo(void 0)}return function(){return clearTimeout(oe)}},[a,u,v.length]);var K=function(ie){ie!==void 0&&b(ie,{selected:!C.has(ie)}),s||d(!1)};if(l.useImperativeHandle(n,function(){return{onKeyDown:function(ie){var ge=ie.which,ve=ie.ctrlKey;switch(ge){case He.N:case He.P:case He.UP:case He.DOWN:{var he=0;if(ge===He.UP?he=-1:ge===He.DOWN?he=1:aie()&&ve&&(ge===He.N?he=1:ge===He.P&&(he=-1)),he!==0){var be=M(F+he,he);P(be),W(be,!0)}break}case He.ENTER:{var ye=T[F];ye&&!ye.data.disabled?K(ye.value):K(void 0),a&&ie.preventDefault();break}case He.ESC:d(!1),a&&ie.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ie){P(ie)}}}),T.length===0)return l.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(_,"-empty"),onMouseDown:j},f);var G=Object.keys(E).map(function(oe){return E[oe]}),re=function(ie){return ie.label};function Q(oe,ie){var ge=oe.group;return{role:ge?"presentation":"option",id:"".concat(i,"_list_").concat(ie)}}var fe=function(ie){var ge=T[ie];if(!ge)return null;var ve=ge.data||{},he=ve.value,be=ge.group,ye=sa(ve,!0),Ce=re(ge);return ge?l.createElement("div",Re({"aria-label":typeof Ce=="string"&&!be?Ce:null},ye,{key:ie},Q(ge,ie),{"aria-selected":V(he)}),he):null},se={role:"listbox",id:"".concat(i,"_list")};return l.createElement(l.Fragment,null,$&&l.createElement("div",Re({},se,{style:{height:0,width:0,overflow:"hidden"}}),fe(F-1),fe(F),fe(F+1)),l.createElement(A4,{itemKey:"key",ref:D,data:T,height:I,itemHeight:N,fullHeight:!1,onMouseDown:j,onScroll:p,virtual:$,direction:O,innerProps:$?null:se},function(oe,ie){var ge,ve=oe.group,he=oe.groupOption,be=oe.data,ye=oe.label,Ce=oe.value,Ee=be.key;if(ve){var je,De=(je=be.title)!==null&&je!==void 0?je:t6(ye)?ye.toString():void 0;return l.createElement("div",{className:ne(_,"".concat(_,"-group")),title:De},ye!==void 0?ye:Ee)}var _e=be.disabled,Me=be.title;be.children;var Ie=be.style,Fe=be.className,Ge=Ft(be,sie),ft=vr(Ge,G),it=V(Ce),qe="".concat(_,"-option"),at=ne(_,qe,Fe,(ge={},ae(ge,"".concat(qe,"-grouped"),he),ae(ge,"".concat(qe,"-active"),F===ie&&!_e),ae(ge,"".concat(qe,"-disabled"),_e),ae(ge,"".concat(qe,"-selected"),it),ge)),U=re(oe),k=!x||typeof x=="function"||it,L=typeof U=="number"?U:U||Ce,X=t6(L)?L.toString():void 0;return Me!==void 0&&(X=Me),l.createElement("div",Re({},sa(ft),$?{}:Q(oe,ie),{"aria-selected":it,className:at,title:X,onMouseMove:function(){F===ie||_e||W(ie)},onClick:function(){_e||K(Ce)},style:Ie}),l.createElement("div",{className:"".concat(qe,"-content")},L),l.isValidElement(x)||it,k&&l.createElement(Tb,{className:"".concat(_,"-option-state"),customizeIcon:x,customizeIconProps:{isSelected:it}},it?"✓":null))}))},jD=l.forwardRef(lie);jD.displayName="OptionList";var cie=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],uie=["inputValue"];function die(e){return!e||Wt(e)!=="object"}var fie=l.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,i=o===void 0?"rc-select":o,a=e.backfill,s=e.fieldNames,c=e.inputValue,u=e.searchValue,d=e.onSearch,f=e.autoClearSearchValue,p=f===void 0?!0:f,g=e.onSelect,v=e.onDeselect,y=e.dropdownMatchSelectWidth,S=y===void 0?!0:y,b=e.filterOption,x=e.filterSort,C=e.optionFilterProp,E=e.optionLabelProp,$=e.options,O=e.children,I=e.defaultActiveFirstOption,N=e.menuItemSelectedIcon,_=e.virtual,T=e.direction,D=e.listHeight,j=D===void 0?200:D,P=e.listItemHeight,M=P===void 0?20:P,A=e.value,B=e.defaultValue,F=e.labelInValue,H=e.onChange,W=Ft(e,cie),V=Foe(n),K=G2(r),G=!!(!$&&O),re=l.useMemo(function(){return b===void 0&&r==="combobox"?!1:b},[b,r]),Q=l.useMemo(function(){return RD(s,G)},[JSON.stringify(s),G]),fe=Vn("",{value:u!==void 0?u:c,postState:function(Je){return Je||""}}),se=me(fe,2),oe=se[0],ie=se[1],ge=Uoe($,O,Q,C,E),ve=ge.valueOptions,he=ge.labelOptions,be=ge.options,ye=l.useCallback(function(Ue){var Je=ED(Ue);return Je.map(function(ht){var gt,It,Et,xt,pt;if(die(ht))gt=ht;else{var Nt;Et=ht.key,It=ht.label,gt=(Nt=ht.value)!==null&&Nt!==void 0?Nt:Et}var Pt=ve.get(gt);if(Pt){var _t;It===void 0&&(It=Pt?.[E||Q.label]),Et===void 0&&(Et=(_t=Pt?.key)!==null&&_t!==void 0?_t:gt),xt=Pt?.disabled,pt=Pt?.title}return{label:It,value:gt,key:Et,disabled:xt,title:pt}})},[Q,E,ve]),Ce=Vn(B,{value:A}),Ee=me(Ce,2),je=Ee[0],De=Ee[1],_e=l.useMemo(function(){var Ue,Je=ye(je);return r==="combobox"&&aoe((Ue=Je[0])===null||Ue===void 0?void 0:Ue.value)?[]:Je},[je,ye,r]),Me=koe(_e,ve),Ie=me(Me,2),Fe=Ie[0],Ge=Ie[1],ft=l.useMemo(function(){if(!r&&Fe.length===1){var Ue=Fe[0];if(Ue.value===null&&(Ue.label===null||Ue.label===void 0))return[]}return Fe.map(function(Je){var ht;return le(le({},Je),{},{label:(ht=Je.label)!==null&&ht!==void 0?ht:Je.value})})},[r,Fe]),it=l.useMemo(function(){return new Set(Fe.map(function(Ue){return Ue.value}))},[Fe]);l.useEffect(function(){if(r==="combobox"){var Ue,Je=(Ue=Fe[0])===null||Ue===void 0?void 0:Ue.value;ie(ioe(Je)?String(Je):"")}},[Fe]);var qe=X_(function(Ue,Je){var ht,gt=Je??Ue;return ht={},ae(ht,Q.value,Ue),ae(ht,Q.label,gt),ht}),at=l.useMemo(function(){if(r!=="tags")return be;var Ue=Ze(be),Je=function(gt){return ve.has(gt)};return Ze(Fe).sort(function(ht,gt){return ht.value2&&arguments[2]!==void 0?arguments[2]:{},gt=ht.source,It=gt===void 0?"keyboard":gt;tt(Je),a&&r==="combobox"&&Ue!==null&&It==="keyboard"&&Se(String(Ue))},[a,r]),ze=function(Je,ht,gt){var It=function(){var yt,st=Ge(Je);return[F?{label:st?.[Q.label],value:Je,key:(yt=st?.key)!==null&&yt!==void 0?yt:Je}:Je,K2(st)]};if(ht&&g){var Et=It(),xt=me(Et,2),pt=xt[0],Nt=xt[1];g(pt,Nt)}else if(!ht&&v&>!=="clear"){var Pt=It(),_t=me(Pt,2),Ot=_t[0],gn=_t[1];v(Ot,gn)}},ke=X_(function(Ue,Je){var ht,gt=K?Je.selected:!0;gt?ht=K?[].concat(Ze(Fe),[Ue]):[Ue]:ht=Fe.filter(function(It){return It.value!==Ue}),ee(ht),ze(Ue,gt),r==="combobox"?Se(""):(!G2||p)&&(ie(""),Se(""))}),et=function(Je,ht){ee(Je);var gt=ht.type,It=ht.values;(gt==="remove"||gt==="clear")&&It.forEach(function(Et){ze(Et.value,!1,gt)})},mt=function(Je,ht){if(ie(Je),Se(null),ht.source==="submit"){var gt=(Je||"").trim();if(gt){var It=Array.from(new Set([].concat(Ze(it),[gt])));ee(It),ze(gt,!0),ie("")}return}ht.source!=="blur"&&(r==="combobox"&&ee(Je),d?.(Je))},Ve=function(Je){var ht=Je;r!=="tags"&&(ht=Je.map(function(It){var Et=he.get(It);return Et?.value}).filter(function(It){return It!==void 0}));var gt=Array.from(new Set([].concat(Ze(it),Ze(ht))));ee(gt),gt.forEach(function(It){ze(It,!0)})},rt=l.useMemo(function(){var Ue=_!==!1&&S!==!1;return le(le({},ge),{},{flattenOptions:X,onActiveValue:Te,defaultActiveFirstOption:pe,onSelect:ke,menuItemSelectedIcon:N,rawValues:it,fieldNames:Q,virtual:Ue,direction:T,listHeight:j,listItemHeight:M,childrenAsData:G})},[ge,X,Te,pe,ke,N,it,Q,_,S,j,M,G]);return l.createElement(PD.Provider,{value:rt},l.createElement(Moe,Re({},W,{id:V,prefixCls:i,ref:t,omitDomProps:uie,mode:r,displayValues:ft,onDisplayValuesChange:et,direction:T,searchValue:oe,onSearch:mt,autoClearSearchValue:p,onSearchSplit:Ve,dropdownMatchSelectWidth:S,OptionList:jD,emptyOptions:!X.length,activeValue:de,activeDescendantId:"".concat(V,"_list_").concat(Ke)})))}),L4=fie;L4.Option=D4;L4.OptGroup=k4;function Fs(e,t,n){return ne({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Ih=(e,t)=>t||e,hie=()=>{const[,e]=mc(),n=new kn(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return l.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},l.createElement("g",{fill:"none",fillRule:"evenodd"},l.createElement("g",{transform:"translate(24 31.67)"},l.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),l.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"}),l.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)"}),l.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"}),l.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"})),l.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"}),l.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},l.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),l.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},pie=hie,mie=()=>{const[,e]=mc(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:i,shadowColor:a,contentColor:s}=l.useMemo(()=>({borderColor:new kn(t).onBackground(o).toHexShortString(),shadowColor:new kn(n).onBackground(o).toHexShortString(),contentColor:new kn(r).onBackground(o).toHexShortString()}),[t,n,r,o]);return l.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},l.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},l.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),l.createElement("g",{fillRule:"nonzero",stroke:i},l.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"}),l.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:s}))))},gie=mie,vie=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}}}}},yie=Pn("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,r=sn(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return[vie(r)]});var bie=globalThis&&globalThis.__rest||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=MD,description:i,children:a,imageStyle:s,style:c}=e,u=bie(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:d,direction:f,empty:p}=l.useContext(St),g=d("empty",r),[v,y]=yie(g),[S]=pc("Empty"),b=typeof i<"u"?i:S?.description,x=typeof b=="string"?b:"empty";let C=null;return typeof o=="string"?C=l.createElement("img",{alt:x,src:o}):C=o,v(l.createElement("div",Object.assign({className:ne(y,g,p?.className,{[`${g}-normal`]:o===kD,[`${g}-rtl`]:f==="rtl"},t,n),style:Object.assign(Object.assign({},p?.style),c)},u),l.createElement("div",{className:`${g}-image`,style:s},C),b&&l.createElement("div",{className:`${g}-description`},b),a&&l.createElement("div",{className:`${g}-footer`},a)))};F4.PRESENTED_IMAGE_DEFAULT=MD;F4.PRESENTED_IMAGE_SIMPLE=kD;const Lu=F4,xie=e=>{const{componentName:t}=e,{getPrefixCls:n}=l.useContext(St),r=n("empty");switch(t){case"Table":case"List":return Ne.createElement(Lu,{image:Lu.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Ne.createElement(Lu,{image:Lu.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return Ne.createElement(Lu,null)}},z4=xie,wie=e=>{const{controlPaddingHorizontal:t,controlHeight:n,fontSize:r,lineHeight:o}=e;return{position:"relative",display:"block",minHeight:n,padding:`${(n-r*o)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:r,lineHeight:o,boxSizing:"border-box"}},Sie=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`,s=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},En(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` ${o}${s}bottomLeft, ${i}${s}bottomLeft `]:{animationName:$b},[` ${o}${s}topLeft, ${i}${s}topLeft, ${o}${s}topRight, ${i}${s}topRight `]:{animationName:Ib},[`${a}${s}bottomLeft`]:{animationName:Ob},[` ${a}${s}topLeft, ${a}${s}topRight `]:{animationName:Rb},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},wie(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"},Us),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.controlItemBgHover},[`&-selected:not(${r}-option-disabled)`]:{color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},yl(e,"slide-up"),yl(e,"slide-down"),rh(e,"move-up"),rh(e,"move-down")]},Cie=Sie,Hd=2,DD=e=>{let{controlHeightSM:t,controlHeight:n,lineWidth:r}=e;const o=(n-t)/2-r,i=Math.ceil(o/2);return[o,i]};function wS(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,i=e.controlHeightSM,[a]=DD(e),s=t?`${n}-${t}`:"";return{[`${n}-multiple${s}`]:{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",padding:`${a-Hd}px ${Hd*2}px`,borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Hd}px 0`,lineHeight:`${i}px`,visibility:"hidden",content:'"\\a0"'}},[` &${n}-show-arrow ${n}-selector, &${n}-allow-clear ${n}-selector `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:i,marginTop:Hd,marginBottom:Hd,lineHeight:`${i-e.lineWidth*2}px`,background:e.colorFillSecondary,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:Hd*2,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.colorTextDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},xh()),{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}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-a,"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:`${i}px`,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 Eie=e=>{const{componentCls:t}=e,n=sn(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=sn(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,o]=DD(e);return[wS(e),wS(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},wS(r,"lg")]},$ie=Eie;function SS(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.controlHeight-e.lineWidth*2,a=Math.ceil(e.fontSize*1.25),s=t?`${n}-${t}`:"";return{[`${n}-single${s}`]:{fontSize:e.fontSize,[`${n}-selector`]:Object.assign(Object.assign({},En(e)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%"}},[` ${n}-selection-item, ${n}-selection-placeholder `]:{padding:0,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${i}px`}},[`${n}-selection-item`]:{position:"relative",userSelect:"none"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:after`,`${n}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${n}-show-arrow ${n}-selection-item, &${n}-show-arrow ${n}-selection-placeholder `]:{paddingInlineEnd:a},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${r}px`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:`${i}px`}}},[`&${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 ${r}px`,"&:after":{display:"none"}}}}}}}function Oie(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[SS(e),SS(sn(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 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+e.fontSize*1.5},[` &${t}-show-arrow ${t}-selection-item, &${t}-show-arrow ${t}-selection-placeholder `]:{paddingInlineEnd:e.fontSize*1.5}}}},SS(sn(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const Iie=e=>{const{componentCls:t}=e;return{position:"relative",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},CS=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:r,borderHoverColor:o,outlineColor:i,antCls:a}=t,s=n?{[`${r}-selector`]:{borderColor:o}}:{};return{[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${a}-pagination-size-changer)`]:Object.assign(Object.assign({},s),{[`${r}-focused& ${r}-selector`]:{borderColor:o,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${i}`,outline:0},[`&:hover ${r}-selector`]:{borderColor:o}})}}},Rie=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},Nie=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},En(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:Object.assign(Object.assign({},Iie(e)),Rie(e)),[`${t}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},Us),[`${t}-selection-placeholder`]:Object.assign(Object.assign({},Us),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:Object.assign(Object.assign({},xh()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[r]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXS}}}},_ie=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%"}}},Nie(e),Oie(e),$ie(e),Cie(e),{[`${t}-rtl`]:{direction:"rtl"}},CS(t,sn(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),CS(`${t}-status-error`,sn(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),CS(`${t}-status-warning`,sn(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),yg(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},Tie=Pn("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=sn(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return[_ie(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),Pie=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",_experimental:{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 jie(e,t){return e||Pie(t)}function Mie(e,t){return t!==void 0?t:e!==null}var kie={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 Die=kie;var Aie=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:Die}))};const Ju=l.forwardRef(Aie);var Lie={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 Fie=Lie;var zie=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:Fie}))};const $g=l.forwardRef(zie);var Bie={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 Hie=Bie;var Uie=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:Hie}))};const _r=l.forwardRef(Uie);function Wie(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:s,prefixCls:c,showSuffixIcon:u,feedbackIcon:d,showArrow:f,componentName:p}=e;const g=n??l.createElement(Gs,null),v=x=>t===null&&!s&&!f?null:l.createElement(l.Fragment,null,u!==!1&&x,s&&d);let y=null;if(t!==void 0)y=v(t);else if(i)y=v(l.createElement(mu,{spin:!0}));else{const x=`${c}-suffix`;y=C=>{let{open:E,showSearch:$}=C;return v(E&&$?l.createElement(_r,{className:x}):l.createElement($g,{className:x}))}}let S=null;r!==void 0?S=r:a?S=l.createElement(Ju,null):S=null;let b=null;return o!==void 0?b=o:b=l.createElement(No,null),{clearIcon:g,suffixIcon:y,itemIcon:S,removeIcon:b}}var Vie=globalThis&&globalThis.__rest||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,{prefixCls:r,bordered:o=!0,className:i,rootClassName:a,getPopupContainer:s,popupClassName:c,dropdownClassName:u,listHeight:d=256,placement:f,listItemHeight:p=24,size:g,disabled:v,notFoundContent:y,status:S,builtinPlacements:b,dropdownMatchSelectWidth:x,popupMatchSelectWidth:C,direction:E,style:$,allowClear:O}=e,I=Vie(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:_,renderEmpty:T,direction:D,virtual:j,popupMatchSelectWidth:P,popupOverflow:M,select:A}=l.useContext(St),B=_("select",r),F=_(),H=E??D,{compactSize:W,compactItemClassnames:V}=gu(B,H),[K,G]=Tie(B),re=l.useMemo(()=>{const{mode:at}=I;if(at!=="combobox")return at===AD?"combobox":at},[I.mode]),Q=re==="multiple"||re==="tags",fe=Mie(I.suffixIcon,I.showArrow),se=(n=C??x)!==null&&n!==void 0?n:P,{status:oe,hasFeedback:ie,isFormItemInput:ge,feedbackIcon:ve}=l.useContext(Ai),he=Ih(oe,S);let be;y!==void 0?be=y:re==="combobox"?be=null:be=T?.("Select")||l.createElement(z4,{componentName:"Select"});const{suffixIcon:ye,itemIcon:Ce,removeIcon:Ee,clearIcon:je}=Wie(Object.assign(Object.assign({},I),{multiple:Q,hasFeedback:ie,feedbackIcon:ve,showSuffixIcon:fe,prefixCls:B,showArrow:I.showArrow,componentName:"Select"})),De=O===!0?{clearIcon:je}:O,_e=vr(I,["suffixIcon","itemIcon"]),Me=ne(c||u,{[`${B}-dropdown-${H}`]:H==="rtl"},a,G),Ie=Zo(at=>{var U;return(U=g??W)!==null&&U!==void 0?U:at}),Fe=l.useContext(cs),Ge=v??Fe,ft=ne({[`${B}-lg`]:Ie==="large",[`${B}-sm`]:Ie==="small",[`${B}-rtl`]:H==="rtl",[`${B}-borderless`]:!o,[`${B}-in-form-item`]:ge},Fs(B,he,ie),V,A?.className,i,a,G),it=l.useMemo(()=>f!==void 0?f:H==="rtl"?"bottomRight":"bottomLeft",[f,H]),qe=jie(b,M);return K(l.createElement(L4,Object.assign({ref:t,virtual:j,showSearch:A?.showSearch},_e,{style:Object.assign(Object.assign({},A?.style),$),dropdownMatchSelectWidth:se,builtinPlacements:qe,transitionName:Ws(F,"slide-up",I.transitionName),listHeight:d,listItemHeight:p,mode:re,prefixCls:B,placement:it,direction:H,suffixIcon:ye,menuItemSelectedIcon:Ce,removeIcon:Ee,allowClear:De,notFoundContent:be,className:ft,getPopupContainer:s||N,dropdownClassName:Me,disabled:Ge})))},Rh=l.forwardRef(Kie),Gie=Sg(Rh);Rh.SECRET_COMBOBOX_MODE_DO_NOT_USE=AD;Rh.Option=D4;Rh.OptGroup=k4;Rh._InternalPanelDoNotUseOrYouWillBeFired=Gie;const Lr=Rh,{Option:Y2}=Lr;function n6(e){return e&&e.type&&(e.type.isSelectOption||e.type.isSelectOptGroup)}const Yie=(e,t)=>{const{prefixCls:n,className:r,popupClassName:o,dropdownClassName:i,children:a,dataSource:s}=e,c=zo(a);let u;c.length===1&&Di(c[0])&&!n6(c[0])&&([u]=c);const d=u?()=>u:void 0;let f;c.length&&n6(c[0])?f=a:f=s?s.map(v=>{if(Di(v))return v;switch(typeof v){case"string":return l.createElement(Y2,{key:v,value:v},v);case"object":{const{value:y}=v;return l.createElement(Y2,{key:y,value:y},v.text)}default:return}}):[];const{getPrefixCls:p}=l.useContext(St),g=p("select",n);return l.createElement(Lr,Object.assign({ref:t,suffixIcon:null},vr(e,["dataSource","dropdownClassName"]),{prefixCls:g,popupClassName:o||i,className:ne(`${g}-auto-complete`,r),mode:Lr.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:d}),f)},Pb=l.forwardRef(Yie),qie=Sg(Pb);Pb.Option=Y2;Pb._InternalPanelDoNotUseOrYouWillBeFired=qie;const Xie=Pb,cd=["xxl","xl","lg","md","sm","xs"],Qie=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)`}),Zie=e=>{const t=e,n=[].concat(cd).reverse();return n.forEach((r,o)=>{const i=r.toUpperCase(),a=`screen${i}Min`,s=`screen${i}`;if(!(t[a]<=t[s]))throw new Error(`${a}<=${s} fails : !(${t[a]}<=${t[s]})`);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],s=this.matchHandlers[a];s?.mql.removeListener(s?.listener)}),n.clear()},register(){Object.keys(t).forEach(i=>{const a=t[i],s=u=>{let{matches:d}=u;this.dispatch(Object.assign(Object.assign({},o),{[i]:d}))},c=window.matchMedia(a);c.addListener(s),this.matchHandlers[a]={mql:c,listener:s},s(c)})},responsiveMap:t}},[e])}function FD(){const[,e]=l.useReducer(t=>t+1,0);return e}function jb(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=l.useRef({}),n=FD(),r=LD();return Wn(()=>{const o=r.subscribe(i=>{t.current=i,e&&n()});return()=>r.unsubscribe(o)},[]),t.current}var Ud={shiftX:64,adjustY:1},Wd={adjustX:1,shiftY:!0},Ba=[0,0],Jie={left:{points:["cr","cl"],overflow:Wd,offset:[-4,0],targetOffset:Ba},right:{points:["cl","cr"],overflow:Wd,offset:[4,0],targetOffset:Ba},top:{points:["bc","tc"],overflow:Ud,offset:[0,-4],targetOffset:Ba},bottom:{points:["tc","bc"],overflow:Ud,offset:[0,4],targetOffset:Ba},topLeft:{points:["bl","tl"],overflow:Ud,offset:[0,-4],targetOffset:Ba},leftTop:{points:["tr","tl"],overflow:Wd,offset:[-4,0],targetOffset:Ba},topRight:{points:["br","tr"],overflow:Ud,offset:[0,-4],targetOffset:Ba},rightTop:{points:["tl","tr"],overflow:Wd,offset:[4,0],targetOffset:Ba},bottomRight:{points:["tr","br"],overflow:Ud,offset:[0,4],targetOffset:Ba},rightBottom:{points:["bl","br"],overflow:Wd,offset:[4,0],targetOffset:Ba},bottomLeft:{points:["tl","bl"],overflow:Ud,offset:[0,4],targetOffset:Ba},leftBottom:{points:["br","bl"],overflow:Wd,offset:[-4,0],targetOffset:Ba}};function zD(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return l.createElement("div",{className:ne("".concat(n,"-content"),i),style:a},l.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var eae=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],tae=function(t,n){var r=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,s=a===void 0?0:a,c=t.mouseLeaveDelay,u=c===void 0?.1:c,d=t.overlayStyle,f=t.prefixCls,p=f===void 0?"rc-tooltip":f,g=t.children,v=t.onVisibleChange,y=t.afterVisibleChange,S=t.transitionName,b=t.animation,x=t.motion,C=t.placement,E=C===void 0?"right":C,$=t.align,O=$===void 0?{}:$,I=t.destroyTooltipOnHide,N=I===void 0?!1:I,_=t.defaultVisible,T=t.getTooltipContainer,D=t.overlayInnerStyle;t.arrowContent;var j=t.overlay,P=t.id,M=t.showArrow,A=M===void 0?!0:M,B=Ft(t,eae),F=l.useRef(null);l.useImperativeHandle(n,function(){return F.current});var H=le({},B);"visible"in t&&(H.popupVisible=t.visible);var W=function(){return l.createElement(zD,{key:"content",prefixCls:p,id:P,overlayInnerStyle:D},j)};return l.createElement(Eg,Re({popupClassName:r,prefixCls:p,popup:W,action:i,builtinPlacements:Jie,popupPlacement:E,ref:F,popupAlign:O,getPopupContainer:T,onPopupVisibleChange:v,afterPopupVisibleChange:y,popupTransitionName:S,popupAnimation:b,popupMotion:x,defaultPopupVisible:_,autoDestroy:N,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:s,arrow:A},H),g)};const nae=l.forwardRef(tae),BD=8;function B4(e){const t=BD,{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return{dropdownArrowOffset:o,dropdownArrowOffsetVertical:r?t:o}}function m0(e,t){return e?t:{}}function HD(e,t){const{componentCls:n,sizePopupArrow:r,borderRadiusXS:o,borderRadiusOuter:i,boxShadowPopoverArrow:a}=e,{colorBg:s,contentRadius:c=e.borderRadiusLG,limitVerticalRadius:u,arrowDistance:d=0,arrowPlacement:f={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:p,dropdownArrowOffset:g}=B4({contentRadius:c,limitVerticalRadius:u});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},UM(r,o,i,s,a)),{"&:before":{background:s}})]},m0(!!f.top,{[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:d,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:g}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:g}}})),m0(!!f.bottom,{[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:d,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:g}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:g}}})),m0(!!f.left,{[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:d},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:p},[`&-placement-leftBottom ${n}-arrow`]:{bottom:p}})),m0(!!f.right,{[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:d},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:p},[`&-placement-rightBottom ${n}-arrow`]:{bottom:p}}))}}function rae(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.dropdownArrowOffset*2+n;break;case"left":case"right":i.shiftY=t.dropdownArrowOffsetVertical*2+n;break}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const r6={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"]}},oae={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"]}},iae=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function UD(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,s=t/2,c={};return Object.keys(r6).forEach(u=>{const d=r&&oae[u]||r6[u],f=Object.assign(Object.assign({},d),{offset:[0,0]});switch(c[u]=f,iae.has(u)&&(f.autoArrow=!1),u){case"top":case"topLeft":case"topRight":f.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+o;break}const p=B4({contentRadius:i,limitVerticalRadius:!0});if(r)switch(u){case"topLeft":case"bottomLeft":f.offset[0]=-p.dropdownArrowOffset-s;break;case"topRight":case"bottomRight":f.offset[0]=p.dropdownArrowOffset+s;break;case"leftTop":case"rightTop":f.offset[1]=-p.dropdownArrowOffset-s;break;case"leftBottom":case"rightBottom":f.offset[1]=p.dropdownArrowOffset+s;break}f.overflow=rae(u,p,t,n),a&&(f.htmlRegion="visibleFirst")}),c}const aae=e=>{const t=e?.algorithm?zm(e.algorithm):zm(mg),n=Object.assign(Object.assign({},pg),e?.token);return bM(n,{override:e?.token},t,f4)},sae=aae;function lae(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const cae=(e,t)=>{const n=t??mg(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),lae(t??e)),FM(r)),{controlHeight:o}),AM(Object.assign(Object.assign({},n),{controlHeight:o})))},uae=cae,_c=(e,t)=>new kn(e).setAlpha(t).toRgbString(),Vd=(e,t)=>new kn(e).lighten(t).toHexString(),dae=e=>{const t=ac(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},fae=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:_c(r,.85),colorTextSecondary:_c(r,.65),colorTextTertiary:_c(r,.45),colorTextQuaternary:_c(r,.25),colorFill:_c(r,.18),colorFillSecondary:_c(r,.12),colorFillTertiary:_c(r,.08),colorFillQuaternary:_c(r,.04),colorBgElevated:Vd(n,12),colorBgContainer:Vd(n,8),colorBgLayout:Vd(n,0),colorBgSpotlight:Vd(n,26),colorBorder:Vd(n,26),colorBorderSecondary:Vd(n,19)}},hae=(e,t)=>{const n=Object.keys(d4).map(o=>{const i=ac(e[o],{theme:"dark"});return new Array(10).fill(1).reduce((a,s,c)=>(a[`${o}-${c+1}`]=i[c],a[`${o}${c+1}`]=i[c],a),{})}).reduce((o,i)=>(o=Object.assign(Object.assign({},o),i),o),{}),r=t??mg(e);return Object.assign(Object.assign(Object.assign({},r),n),LM(e,{generateColorPalettes:dae,generateNeutralColorPalettes:fae}))},pae=hae;function mae(){const[e,t,n]=mc();return{theme:e,token:t,hashId:n}}const Uo={defaultConfig:n1,defaultSeed:n1.token,useToken:mae,defaultAlgorithm:mg,darkAlgorithm:pae,compactAlgorithm:uae,getDesignToken:sae},gae=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:s,boxShadowSecondary:c,paddingSM:u,paddingXS:d,tooltipRadiusOuter:f}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},En(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:s,minHeight:s,padding:`${u/2}px ${d}px`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(i,BD)}},[`${t}-content`]:{position:"relative"}}),pb(e,(p,g)=>{let{darkColor:v}=g;return{[`&${t}-${p}`]:{[`${t}-inner`]:{backgroundColor:v},[`${t}-arrow`]:{"--antd-arrow-background-color":v}}}})),{"&-rtl":{direction:"rtl"}})},HD(sn(e,{borderRadiusOuter:f}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:i,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},WD=(e,t)=>Pn("Tooltip",r=>{if(t===!1)return[];const{borderRadius:o,colorTextLightSolid:i,colorBgDefault:a,borderRadiusOuter:s}=r,c=sn(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a,tooltipRadiusOuter:s>4?4:s});return[gae(c),xg(r,"zoom-big-fast")]},r=>{let{zIndexPopupBase:o,colorBgSpotlight:i}=r;return{zIndexPopup:o+70,colorBgDefault:i}},{resetStyle:!1})(e),vae=t1.map(e=>`${e}-inverse`),yae=["success","processing","error","default","warning"];function Mb(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Ze(vae),Ze(t1)).includes(e):t1.includes(e)}function bae(e){return yae.includes(e)}function VD(e,t){const n=Mb(t),r=ne({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}const xae=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=l.useContext(St),c=s("tooltip",t),[u,d]=WD(c,!0),f=VD(c,i),p=f.arrowStyle,g=Object.assign(Object.assign({},a),f.overlayStyle),v=ne(d,c,`${c}-pure`,`${c}-placement-${r}`,n,f.className);return u(l.createElement("div",{className:v,style:p},l.createElement("div",{className:`${c}-arrow`}),l.createElement(zD,Object.assign({},e,{className:d,prefixCls:c,overlayInnerStyle:g}),o)))},wae=xae;var Sae=globalThis&&globalThis.__rest||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={},r=Object.assign({},e);return t.forEach(o=>{e&&o in e&&(n[o]=e[o],delete r[o])}),{picked:n,omitted:r}};function $ae(e,t){const n=e.type;if((n.__ANT_BUTTON===!0||e.type==="button")&&e.props.disabled||n.__ANT_SWITCH===!0&&(e.props.disabled||e.props.loading)||n.__ANT_RADIO===!0&&e.props.disabled){const{picked:r,omitted:o}=Eae(e.props.style,["position","left","right","top","bottom","float","display","zIndex"]),i=Object.assign(Object.assign({display:"inline-block"},r),{cursor:"not-allowed",width:e.props.block?"100%":void 0}),a=Object.assign(Object.assign({},o),{pointerEvents:"none"}),s=go(e,{style:a,className:null});return l.createElement("span",{style:i,className:ne(e.props.className,`${t}-disabled-compatible-wrapper`)},s)}return e}const KD=l.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:s,color:c,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:p,destroyTooltipOnHide:g,arrow:v=!0,title:y,overlay:S,builtinPlacements:b,arrowPointAtCenter:x=!1,autoAdjustOverflow:C=!0}=e,E=!!v,{token:$}=Cae(),{getPopupContainer:O,getPrefixCls:I,direction:N}=l.useContext(St),_=l.useRef(null),T=()=>{var _e;(_e=_.current)===null||_e===void 0||_e.forceAlign()};l.useImperativeHandle(t,()=>({forceAlign:T,forcePopupAlign:()=>{T()}}));const[D,j]=Vn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),P=!y&&!S&&y!==0,M=_e=>{var Me,Ie;j(P?!1:_e),P||((Me=e.onOpenChange)===null||Me===void 0||Me.call(e,_e),(Ie=e.onVisibleChange)===null||Ie===void 0||Ie.call(e,_e))},A=l.useMemo(()=>{var _e,Me;let Ie=x;return typeof v=="object"&&(Ie=(Me=(_e=v.pointAtCenter)!==null&&_e!==void 0?_e:v.arrowPointAtCenter)!==null&&Me!==void 0?Me:x),b||UD({arrowPointAtCenter:Ie,autoAdjustOverflow:C,arrowWidth:E?$.sizePopupArrow:0,borderRadius:$.borderRadius,offset:$.marginXXS,visibleFirst:!0})},[x,v,b,$]),B=l.useMemo(()=>y===0?y:S||y||"",[S,y]),F=l.createElement(sd,null,typeof B=="function"?B():B),{getPopupContainer:H,placement:W="top",mouseEnterDelay:V=.1,mouseLeaveDelay:K=.1,overlayStyle:G,rootClassName:re}=e,Q=Sae(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),fe=I("tooltip",o),se=I(),oe=e["data-popover-inject"];let ie=D;!("open"in e)&&!("visible"in e)&&P&&(ie=!1);const ge=$ae(Di(d)&&!Ok(d)?d:l.createElement("span",null,d),fe),ve=ge.props,he=!ve.className||typeof ve.className=="string"?ne(ve.className,i||`${fe}-open`):ve.className,[be,ye]=WD(fe,!oe),Ce=VD(fe,c),Ee=Ce.arrowStyle,je=Object.assign(Object.assign({},u),Ce.overlayStyle),De=ne(s,{[`${fe}-rtl`]:N==="rtl"},Ce.className,re,ye);return be(l.createElement(nae,Object.assign({},Q,{showArrow:E,placement:W,mouseEnterDelay:V,mouseLeaveDelay:K,prefixCls:fe,overlayClassName:De,overlayStyle:Object.assign(Object.assign({},Ee),G),getTooltipContainer:H||a||O,ref:_,builtinPlacements:A,overlay:F,visible:ie,onVisibleChange:M,afterVisibleChange:f??p,overlayInnerStyle:je,arrowContent:l.createElement("span",{className:`${fe}-arrow-content`}),motion:{motionName:Ws(se,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),ie?go(ge,{className:he}):ge))});KD._InternalPanelDoNotUseOrYouWillBeFired=wae;const Io=KD,Oae=new vn("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),Iae=new vn("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),Rae=new vn("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),Nae=new vn("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),_ae=new vn("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),Tae=new vn("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),Pae=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,badgeHeightSm:i,motionDurationSlow:a,badgeStatusSize:s,marginXS:c}=e,u=`${r}-scroll-number`,d=pb(e,(f,p)=>{let{darkColor:g}=p;return{[`&${t} ${t}-color-${f}`]:{background:g,[`&:not(${t}-count)`]:{color:g}}}});return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},En(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{zIndex:e.badgeZIndex,minWidth:e.badgeHeight,height:e.badgeHeight,color:e.badgeTextColor,fontWeight:e.badgeFontWeight,fontSize:e.badgeFontSize,lineHeight:`${e.badgeHeight}px`,whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:e.badgeHeight/2,boxShadow:`0 0 0 ${o}px ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:i,height:i,fontSize:e.badgeFontSizeSm,lineHeight:`${i}px`,borderRadius:i/2},[`${t}-multiple-words`]:{padding:`0 ${e.paddingXS}px`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.badgeZIndex,width:e.badgeDotSize,minWidth:e.badgeDotSize,height:e.badgeDotSize,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${o}px ${e.badgeShadowColor}`},[`${t}-dot${u}`]:{transition:`background ${a}`},[`${t}-count, ${t}-dot, ${u}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:Tae,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorPrimary,backgroundColor:e.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:Oae,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:c,color:e.colorText,fontSize:e.fontSize}}}),d),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:Iae,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:Rae,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:Nae,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:_ae,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${u}-custom-component, ${t}-count`]:{transform:"none"},[`${u}-custom-component, ${u}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${u}`]:{overflow:"hidden",[`${u}-only`]:{position:"relative",display:"inline-block",height:e.badgeHeight,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${u}-only-unit`]:{height:e.badgeHeight,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${u}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${u}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},GD=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o,marginXS:i,colorBorderBg:a}=e,s=Math.round(t*n),c=o,u="auto",d=s-2*c,f=e.colorBgContainer,p="normal",g=r,v=e.colorError,y=e.colorErrorHover,S=t,b=r/2,x=r,C=r/2;return sn(e,{badgeFontHeight:s,badgeShadowSize:c,badgeZIndex:u,badgeHeight:d,badgeTextColor:f,badgeFontWeight:p,badgeFontSize:g,badgeColor:v,badgeColorHover:y,badgeShadowColor:a,badgeHeightSm:S,badgeDotSize:b,badgeFontSizeSm:x,badgeStatusSize:C,badgeProcessingDuration:"1.2s",badgeRibbonOffset:i,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},jae=Pn("Badge",e=>{const t=GD(e);return[Pae(t)]}),Mae=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o}=e,i=`${t}-ribbon`,a=`${t}-ribbon-wrapper`,s=pb(e,(c,u)=>{let{darkColor:d}=u;return{[`&${i}-color-${c}`]:{background:d,color:d}}});return{[`${a}`]:{position:"relative"},[`${i}`]:Object.assign(Object.assign(Object.assign(Object.assign({},En(e)),{position:"absolute",top:r,padding:`0 ${e.paddingXS}px`,color:e.colorPrimary,lineHeight:`${n}px`,whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${i}-text`]:{color:e.colorTextLightSolid},[`${i}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${o/2}px solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),s),{[`&${i}-placement-end`]:{insetInlineEnd:-o,borderEndEndRadius:0,[`${i}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${i}-placement-start`]:{insetInlineStart:-o,borderEndStartRadius:0,[`${i}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},kae=Pn(["Badge","Ribbon"],e=>{const t=GD(e);return[Mae(t)]}),Dae=e=>{const{className:t,prefixCls:n,style:r,color:o,children:i,text:a,placement:s="end"}=e,{getPrefixCls:c,direction:u}=l.useContext(St),d=c("ribbon",n),f=Mb(o,!1),p=ne(d,`${d}-placement-${s}`,{[`${d}-rtl`]:u==="rtl",[`${d}-color-${o}`]:f},t),[g,v]=kae(d),y={},S={};return o&&!f&&(y.background=o,S.color=o),g(l.createElement("div",{className:ne(`${d}-wrapper`,v)},i,l.createElement("div",{className:ne(p,v),style:Object.assign(Object.assign({},y),r)},l.createElement("span",{className:`${d}-text`},a),l.createElement("div",{className:`${d}-corner`,style:S}))))},Aae=Dae;function o6(e){let{prefixCls:t,value:n,current:r,offset:o=0}=e,i;return o&&(i={position:"absolute",top:`${o}00%`,left:0}),l.createElement("span",{style:i,className:ne(`${t}-only-unit`,{current:r})},n)}function Lae(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}function Fae(e){const{prefixCls:t,count:n,value:r}=e,o=Number(r),i=Math.abs(n),[a,s]=l.useState(o),[c,u]=l.useState(i),d=()=>{s(o),u(i)};l.useEffect(()=>{const g=setTimeout(()=>{d()},1e3);return()=>{clearTimeout(g)}},[o]);let f,p;if(a===o||Number.isNaN(o)||Number.isNaN(a))f=[l.createElement(o6,Object.assign({},e,{key:o,current:!0}))],p={transition:"none"};else{f=[];const g=o+10,v=[];for(let b=o;b<=g;b+=1)v.push(b);const y=v.findIndex(b=>b%10===a);f=v.map((b,x)=>{const C=b%10;return l.createElement(o6,Object.assign({},e,{key:b,value:C,offset:x-y,current:x===y}))});const S=c{const{prefixCls:n,count:r,className:o,motionClassName:i,style:a,title:s,show:c,component:u="sup",children:d}=e,f=zae(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:p}=l.useContext(St),g=p("scroll-number",n),v=Object.assign(Object.assign({},f),{"data-show":c,style:a,className:ne(g,o,i),title:s});let y=r;if(r&&Number(r)%1===0){const S=String(r).split("");y=l.createElement("bdi",null,S.map((b,x)=>l.createElement(Fae,{prefixCls:g,count:Number(r),value:b,key:S.length-x})))}return a&&a.borderColor&&(v.style=Object.assign(Object.assign({},a),{boxShadow:`0 0 0 1px ${a.borderColor} inset`})),d?go(d,S=>({className:ne(`${g}-custom-component`,S?.className,i)})):l.createElement(u,Object.assign({},v,{ref:t}),y)}),Hae=Bae;var Uae=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r,o,i,a;const{prefixCls:s,scrollNumberPrefixCls:c,children:u,status:d,text:f,color:p,count:g=null,overflowCount:v=99,dot:y=!1,size:S="default",title:b,offset:x,style:C,className:E,rootClassName:$,classNames:O,styles:I,showZero:N=!1}=e,_=Uae(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:T,direction:D,badge:j}=l.useContext(St),P=T("badge",s),[M,A]=jae(P),B=g>v?`${v}+`:g,F=B==="0"||B===0,H=g===null||F&&!N,W=(d!=null||p!=null)&&H,V=y&&!F,K=V?"":B,G=l.useMemo(()=>(K==null||K===""||F&&!N)&&!V,[K,F,N,V]),re=l.useRef(g);G||(re.current=g);const Q=re.current,fe=l.useRef(K);G||(fe.current=K);const se=fe.current,oe=l.useRef(V);G||(oe.current=V);const ie=l.useMemo(()=>{if(!x)return Object.assign(Object.assign({},j?.style),C);const je={marginTop:x[1]};return D==="rtl"?je.left=parseInt(x[0],10):je.right=-parseInt(x[0],10),Object.assign(Object.assign(Object.assign({},je),j?.style),C)},[D,x,C,j?.style]),ge=b??(typeof Q=="string"||typeof Q=="number"?Q:void 0),ve=G||!f?null:l.createElement("span",{className:`${P}-status-text`},f),he=!Q||typeof Q!="object"?void 0:go(Q,je=>({style:Object.assign(Object.assign({},ie),je.style)})),be=Mb(p,!1),ye=ne(O?.indicator,(n=j?.classNames)===null||n===void 0?void 0:n.indicator,{[`${P}-status-dot`]:W,[`${P}-status-${d}`]:!!d,[`${P}-color-${p}`]:be}),Ce={};p&&!be&&(Ce.color=p,Ce.background=p);const Ee=ne(P,{[`${P}-status`]:W,[`${P}-not-a-wrapper`]:!u,[`${P}-rtl`]:D==="rtl"},E,$,j?.className,(r=j?.classNames)===null||r===void 0?void 0:r.root,O?.root,A);if(!u&&W){const je=ie.color;return M(l.createElement("span",Object.assign({},_,{className:Ee,style:Object.assign(Object.assign(Object.assign({},I?.root),(o=j?.styles)===null||o===void 0?void 0:o.root),ie)}),l.createElement("span",{className:ye,style:Object.assign(Object.assign(Object.assign({},I?.indicator),(i=j?.styles)===null||i===void 0?void 0:i.indicator),Ce)}),f&&l.createElement("span",{style:{color:je},className:`${P}-status-text`},f)))}return M(l.createElement("span",Object.assign({ref:t},_,{className:Ee,style:Object.assign(Object.assign({},(a=j?.styles)===null||a===void 0?void 0:a.root),I?.root)}),u,l.createElement(zi,{visible:!G,motionName:`${P}-zoom`,motionAppear:!1,motionDeadline:1e3},je=>{let{className:De,ref:_e}=je;var Me,Ie;const Fe=T("scroll-number",c),Ge=oe.current,ft=ne(O?.indicator,(Me=j?.classNames)===null||Me===void 0?void 0:Me.indicator,{[`${P}-dot`]:Ge,[`${P}-count`]:!Ge,[`${P}-count-sm`]:S==="small",[`${P}-multiple-words`]:!Ge&&se&&se.toString().length>1,[`${P}-status-${d}`]:!!d,[`${P}-color-${p}`]:be});let it=Object.assign(Object.assign(Object.assign({},I?.indicator),(Ie=j?.styles)===null||Ie===void 0?void 0:Ie.indicator),ie);return p&&!be&&(it=it||{},it.background=p),l.createElement(Hae,{prefixCls:Fe,show:!G,motionClassName:De,className:ft,count:se,title:ge,style:it,key:"scrollNumber",ref:_e},he)}),ve))},YD=l.forwardRef(Wae);YD.Ribbon=Aae;const Un=YD;var Vae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};const Kae=Vae;var Gae=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:Kae}))};const ud=l.forwardRef(Gae);var Yae=He.ESC,qae=He.TAB;function Xae(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=l.useRef(!1),s=function(){if(t){var f,p;(f=n.current)===null||f===void 0||(p=f.focus)===null||p===void 0||p.call(f),r?.(!1)}},c=function(){var f;return(f=i.current)!==null&&f!==void 0&&f.focus?(i.current.focus(),a.current=!0,!0):!1},u=function(f){switch(f.keyCode){case Yae:s();break;case qae:{var p=!1;a.current||(p=c()),p?f.preventDefault():s();break}}};l.useEffect(function(){return t?(window.addEventListener("keydown",u),o&&yn(c,3),function(){window.removeEventListener("keydown",u),a.current=!1}):function(){a.current=!1}},[t])}var Qae=l.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=l.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),a=li(t,i?.ref);return Ne.createElement(Ne.Fragment,null,r&&Ne.createElement("div",{className:"".concat(o,"-arrow")}),Ne.cloneElement(i,{ref:Ks(i)?a:void 0}))}),Kd={adjustX:1,adjustY:1},Gd=[0,0],Zae={topLeft:{points:["bl","tl"],overflow:Kd,offset:[0,-4],targetOffset:Gd},top:{points:["bc","tc"],overflow:Kd,offset:[0,-4],targetOffset:Gd},topRight:{points:["br","tr"],overflow:Kd,offset:[0,-4],targetOffset:Gd},bottomLeft:{points:["tl","bl"],overflow:Kd,offset:[0,4],targetOffset:Gd},bottom:{points:["tc","bc"],overflow:Kd,offset:[0,4],targetOffset:Gd},bottomRight:{points:["tr","br"],overflow:Kd,offset:[0,4],targetOffset:Gd}},Jae=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function ese(e,t){var n,r=e.arrow,o=r===void 0?!1:r,i=e.prefixCls,a=i===void 0?"rc-dropdown":i,s=e.transitionName,c=e.animation,u=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,p=e.placements,g=p===void 0?Zae:p,v=e.getPopupContainer,y=e.showAction,S=e.hideAction,b=e.overlayClassName,x=e.overlayStyle,C=e.visible,E=e.trigger,$=E===void 0?["hover"]:E,O=e.autoFocus,I=e.overlay,N=e.children,_=e.onVisibleChange,T=Ft(e,Jae),D=Ne.useState(),j=me(D,2),P=j[0],M=j[1],A="visible"in e?C:P,B=Ne.useRef(null),F=Ne.useRef(null),H=Ne.useRef(null);Ne.useImperativeHandle(t,function(){return B.current});var W=function(ie){M(ie),_?.(ie)};Xae({visible:A,triggerRef:H,onVisibleChange:W,autoFocus:O,overlayRef:F});var V=function(ie){var ge=e.onOverlayClick;M(!1),ge&&ge(ie)},K=function(){return Ne.createElement(Qae,{ref:F,overlay:I,prefixCls:a,arrow:o})},G=function(){return typeof I=="function"?K:K()},re=function(){var ie=e.minOverlayWidthMatchTrigger,ge=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?ie:!ge},Q=function(){var ie=e.openClassName;return ie!==void 0?ie:"".concat(a,"-open")},fe=Ne.cloneElement(N,{className:ne((n=N.props)===null||n===void 0?void 0:n.className,A&&Q()),ref:Ks(N)?li(H,N.ref):void 0}),se=S;return!se&&$.indexOf("contextMenu")!==-1&&(se=["click"]),Ne.createElement(Eg,Re({builtinPlacements:g},T,{prefixCls:a,ref:B,popupClassName:ne(b,ae({},"".concat(a,"-show-arrow"),o)),popupStyle:x,action:$,showAction:y,hideAction:se,popupPlacement:f,popupAlign:u,popupTransitionName:s,popupAnimation:c,popupVisible:A,stretch:re()?"minWidth":"",popup:G(),onPopupVisibleChange:W,onPopupClick:V,getPopupContainer:v}),fe)}const qD=Ne.forwardRef(ese);var XD=l.createContext(null);function H4(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function QD(e){var t=l.useContext(XD);return H4(t,e)}var tse=["children","locked"],Vs=l.createContext(null);function nse(e,t){var n=le({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function qm(e){var t=e.children,n=e.locked,r=Ft(e,tse),o=l.useContext(Vs),i=hc(function(){return nse(o,r)},[o,r],function(a,s){return!n&&(a[0]!==s[0]||!os(a[1],s[1],!0))});return l.createElement(Vs.Provider,{value:i},t)}var rse=[],ZD=l.createContext(null);function kb(){return l.useContext(ZD)}var JD=l.createContext(rse);function Nh(e){var t=l.useContext(JD);return l.useMemo(function(){return e!==void 0?[].concat(Ze(t),[e]):t},[t,e])}var eA=l.createContext(null),U4=l.createContext({});function i6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if($h(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&a===null&&(a=0),r&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return!1}function ose(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Ze(e.querySelectorAll("*")).filter(function(r){return i6(r,t)});return i6(e,t)&&n.unshift(e),n}var q2=He.LEFT,X2=He.RIGHT,Q2=He.UP,oy=He.DOWN,iy=He.ENTER,tA=He.ESC,Ip=He.HOME,Rp=He.END,a6=[Q2,oy,q2,X2];function ise(e,t,n,r){var o,i,a,s,c="prev",u="next",d="children",f="parent";if(e==="inline"&&r===iy)return{inlineTrigger:!0};var p=(o={},ae(o,Q2,c),ae(o,oy,u),o),g=(i={},ae(i,q2,n?u:c),ae(i,X2,n?c:u),ae(i,oy,d),ae(i,iy,d),i),v=(a={},ae(a,Q2,c),ae(a,oy,u),ae(a,iy,d),ae(a,tA,f),ae(a,q2,n?d:f),ae(a,X2,n?f:d),a),y={inline:p,horizontal:g,vertical:v,inlineSub:p,horizontalSub:v,verticalSub:v},S=(s=y["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[r];switch(S){case c:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case d:return{offset:1,sibling:!1};default:return null}}function ase(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function sse(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function nA(e,t){var n=ose(e,!0);return n.filter(function(r){return t.has(r)})}function s6(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=nA(e,t),i=o.length,a=o.findIndex(function(s){return n===s});return r<0?a===-1?a=i-1:a-=1:r>0&&(a+=1),a=(a+i)%i,o[a]}function lse(e,t,n,r,o,i,a,s,c,u){var d=l.useRef(),f=l.useRef();f.current=t;var p=function(){yn.cancel(d.current)};return l.useEffect(function(){return function(){p()}},[]),function(g){var v=g.which;if([].concat(a6,[iy,tA,Ip,Rp]).includes(v)){var y,S,b,x=function(){y=new Set,S=new Map,b=new Map;var A=i();return A.forEach(function(B){var F=document.querySelector("[data-menu-id='".concat(H4(r,B),"']"));F&&(y.add(F),b.set(F,B),S.set(B,F))}),y};x();var C=S.get(t),E=sse(C,y),$=b.get(E),O=ise(e,a($,!0).length===1,n,v);if(!O&&v!==Ip&&v!==Rp)return;(a6.includes(v)||[Ip,Rp].includes(v))&&g.preventDefault();var I=function(A){if(A){var B=A,F=A.querySelector("a");F!=null&&F.getAttribute("href")&&(B=F);var H=b.get(A);s(H),p(),d.current=yn(function(){f.current===H&&B.focus()})}};if([Ip,Rp].includes(v)||O.sibling||!E){var N;!E||e==="inline"?N=o.current:N=ase(E);var _,T=nA(N,y);v===Ip?_=T[0]:v===Rp?_=T[T.length-1]:_=s6(N,y,E,O.offset),I(_)}else if(O.inlineTrigger)c($);else if(O.offset>0)c($,!0),p(),d.current=yn(function(){x();var M=E.getAttribute("aria-controls"),A=document.getElementById(M),B=s6(A,y);I(B)},5);else if(O.offset<0){var D=a($,!0),j=D[D.length-2],P=S.get(j);c(j,!1),I(P)}}u?.(g)}}function cse(e){Promise.resolve().then(e)}var W4="__RC_UTIL_PATH_SPLIT__",l6=function(t){return t.join(W4)},use=function(t){return t.split(W4)},Z2="rc-menu-more";function dse(){var e=l.useState({}),t=me(e,2),n=t[1],r=l.useRef(new Map),o=l.useRef(new Map),i=l.useState([]),a=me(i,2),s=a[0],c=a[1],u=l.useRef(0),d=l.useRef(!1),f=function(){d.current||n({})},p=l.useCallback(function(C,E){var $=l6(E);o.current.set($,C),r.current.set(C,$),u.current+=1;var O=u.current;cse(function(){O===u.current&&f()})},[]),g=l.useCallback(function(C,E){var $=l6(E);o.current.delete($),r.current.delete(C)},[]),v=l.useCallback(function(C){c(C)},[]),y=l.useCallback(function(C,E){var $=r.current.get(C)||"",O=use($);return E&&s.includes(O[0])&&O.unshift(Z2),O},[s]),S=l.useCallback(function(C,E){return C.some(function($){var O=y($,!0);return O.includes(E)})},[y]),b=function(){var E=Ze(r.current.keys());return s.length&&E.push(Z2),E},x=l.useCallback(function(C){var E="".concat(r.current.get(C)).concat(W4),$=new Set;return Ze(o.current.keys()).forEach(function(O){O.startsWith(E)&&$.add(o.current.get(O))}),$},[]);return l.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:p,unregisterPath:g,refreshOverflowKeys:v,isSubPathKey:S,getKeyPath:y,getKeys:b,getSubPathKeys:x}}function Gp(e){var t=l.useRef(e);t.current=e;var n=l.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a1&&(x.motionAppear=!1);var C=x.onVisibleChanged;return x.onVisibleChanged=function(E){return!p.current&&!E&&S(!0),C?.(E)},y?null:l.createElement(qm,{mode:i,locked:!p.current},l.createElement(zi,Re({visible:b},x,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(E){var $=E.className,O=E.style;return l.createElement(V4,{id:t,className:$,style:O},o)}))}var Rse=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Nse=["active"],_se=function(t){var n,r=t.style,o=t.className,i=t.title,a=t.eventKey;t.warnKey;var s=t.disabled,c=t.internalPopupClose,u=t.children,d=t.itemIcon,f=t.expandIcon,p=t.popupClassName,g=t.popupOffset,v=t.onClick,y=t.onMouseEnter,S=t.onMouseLeave,b=t.onTitleClick,x=t.onTitleMouseEnter,C=t.onTitleMouseLeave,E=Ft(t,Rse),$=QD(a),O=l.useContext(Vs),I=O.prefixCls,N=O.mode,_=O.openKeys,T=O.disabled,D=O.overflowDisabled,j=O.activeKey,P=O.selectedKeys,M=O.itemIcon,A=O.expandIcon,B=O.onItemClick,F=O.onOpenChange,H=O.onActive,W=l.useContext(U4),V=W._internalRenderSubMenuItem,K=l.useContext(eA),G=K.isSubPathKey,re=Nh(),Q="".concat(I,"-submenu"),fe=T||s,se=l.useRef(),oe=l.useRef(),ie=d||M,ge=f||A,ve=_.includes(a),he=!D&&ve,be=G(P,a),ye=rA(a,fe,x,C),Ce=ye.active,Ee=Ft(ye,Nse),je=l.useState(!1),De=me(je,2),_e=De[0],Me=De[1],Ie=function(Se){fe||Me(Se)},Fe=function(Se){Ie(!0),y?.({key:a,domEvent:Se})},Ge=function(Se){Ie(!1),S?.({key:a,domEvent:Se})},ft=l.useMemo(function(){return Ce||(N!=="inline"?_e||G([j],a):!1)},[N,Ce,j,_e,a,G]),it=oA(re.length),qe=function(Se){fe||(b?.({key:a,domEvent:Se}),N==="inline"&&F(a,!ve))},at=Gp(function(de){v?.(u1(de)),B(de)}),U=function(Se){N!=="inline"&&F(a,Se)},k=function(){H(a)},L=$&&"".concat($,"-popup"),X=l.createElement("div",Re({role:"menuitem",style:it,className:"".concat(Q,"-title"),tabIndex:fe?null:-1,ref:se,title:typeof i=="string"?i:null,"data-menu-id":D&&$?null:$,"aria-expanded":he,"aria-haspopup":!0,"aria-controls":L,"aria-disabled":fe,onClick:qe,onFocus:k},Ee),i,l.createElement(iA,{icon:N!=="horizontal"?ge:null,props:le(le({},t),{},{isOpen:he,isSubMenu:!0})},l.createElement("i",{className:"".concat(Q,"-arrow")}))),ee=l.useRef(N);if(N!=="inline"&&re.length>1?ee.current="vertical":ee.current=N,!D){var $e=ee.current;X=l.createElement(Ose,{mode:$e,prefixCls:Q,visible:!c&&he&&N!=="inline",popupClassName:p,popupOffset:g,popup:l.createElement(qm,{mode:$e==="horizontal"?"vertical":$e},l.createElement(V4,{id:L,ref:oe},u)),disabled:fe,onVisibleChange:U},X)}var we=l.createElement(gl.Item,Re({role:"none"},E,{component:"li",style:r,className:ne(Q,"".concat(Q,"-").concat(N),o,(n={},ae(n,"".concat(Q,"-open"),he),ae(n,"".concat(Q,"-active"),ft),ae(n,"".concat(Q,"-selected"),be),ae(n,"".concat(Q,"-disabled"),fe),n)),onMouseEnter:Fe,onMouseLeave:Ge}),X,!D&&l.createElement(Ise,{id:L,open:he,keyPath:re},u));return V&&(we=V(we,t,{selected:be,active:ft,open:he,disabled:fe})),l.createElement(qm,{onItemClick:at,mode:N==="horizontal"?"vertical":N,itemIcon:ie,expandIcon:ge},we)};function Db(e){var t=e.eventKey,n=e.children,r=Nh(t),o=K4(n,r),i=kb();l.useEffect(function(){if(i)return i.registerPath(t,r),function(){i.unregisterPath(t,r)}},[r]);var a;return i?a=o:a=l.createElement(_se,e,o),l.createElement(JD.Provider,{value:r},a)}var Tse=["className","title","eventKey","children"],Pse=["children"],jse=function(t){var n=t.className,r=t.title;t.eventKey;var o=t.children,i=Ft(t,Tse),a=l.useContext(Vs),s=a.prefixCls,c="".concat(s,"-item-group");return l.createElement("li",Re({role:"presentation"},i,{onClick:function(d){return d.stopPropagation()},className:ne(c,n)}),l.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:typeof r=="string"?r:void 0},r),l.createElement("ul",{role:"group",className:"".concat(c,"-list")},o))};function Ab(e){var t=e.children,n=Ft(e,Pse),r=Nh(n.eventKey),o=K4(t,r),i=kb();return i?o:l.createElement(jse,vr(n,["warnKey"]),o)}function G4(e){var t=e.className,n=e.style,r=l.useContext(Vs),o=r.prefixCls,i=kb();return i?null:l.createElement("li",{className:ne("".concat(o,"-item-divider"),t),style:n})}var Mse=["label","children","key","type"];function J2(e){return(e||[]).map(function(t,n){if(t&&Wt(t)==="object"){var r=t,o=r.label,i=r.children,a=r.key,s=r.type,c=Ft(r,Mse),u=a??"tmp-".concat(n);return i||s==="group"?s==="group"?l.createElement(Ab,Re({key:u},c,{title:o}),J2(i)):l.createElement(Db,Re({key:u},c,{title:o}),J2(i)):s==="divider"?l.createElement(G4,Re({key:u},c)):l.createElement(Og,Re({key:u},c),o)}return null}).filter(function(t){return t})}function kse(e,t,n){var r=e;return t&&(r=J2(t)),K4(r,n)}var Dse=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],Yd=[],Ase=l.forwardRef(function(e,t){var n,r,o=e,i=o.prefixCls,a=i===void 0?"rc-menu":i,s=o.rootClassName,c=o.style,u=o.className,d=o.tabIndex,f=d===void 0?0:d,p=o.items,g=o.children,v=o.direction,y=o.id,S=o.mode,b=S===void 0?"vertical":S,x=o.inlineCollapsed,C=o.disabled,E=o.disabledOverflow,$=o.subMenuOpenDelay,O=$===void 0?.1:$,I=o.subMenuCloseDelay,N=I===void 0?.1:I,_=o.forceSubMenuRender,T=o.defaultOpenKeys,D=o.openKeys,j=o.activeKey,P=o.defaultActiveFirst,M=o.selectable,A=M===void 0?!0:M,B=o.multiple,F=B===void 0?!1:B,H=o.defaultSelectedKeys,W=o.selectedKeys,V=o.onSelect,K=o.onDeselect,G=o.inlineIndent,re=G===void 0?24:G,Q=o.motion,fe=o.defaultMotions,se=o.triggerSubMenuAction,oe=se===void 0?"hover":se,ie=o.builtinPlacements,ge=o.itemIcon,ve=o.expandIcon,he=o.overflowedIndicator,be=he===void 0?"...":he,ye=o.overflowedIndicatorPopupClassName,Ce=o.getPopupContainer,Ee=o.onClick,je=o.onOpenChange,De=o.onKeyDown;o.openAnimation,o.openTransitionName;var _e=o._internalRenderMenuItem,Me=o._internalRenderSubMenuItem,Ie=Ft(o,Dse),Fe=l.useMemo(function(){return kse(g,p,Yd)},[g,p]),Ge=l.useState(!1),ft=me(Ge,2),it=ft[0],qe=ft[1],at=l.useRef(),U=hse(y),k=v==="rtl",L=Vn(T,{value:D,postState:function(hn){return hn||Yd}}),X=me(L,2),ee=X[0],$e=X[1],we=function(hn){var $t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function jt(){$e(hn),je?.(hn)}$t?Bs.flushSync(jt):jt()},de=l.useState(ee),Se=me(de,2),Ae=Se[0],We=Se[1],Ke=l.useRef(!1),tt=l.useMemo(function(){return(b==="inline"||b==="vertical")&&x?["vertical",x]:[b,!1]},[b,x]),pe=me(tt,2),Te=pe[0],ze=pe[1],ke=Te==="inline",et=l.useState(Te),mt=me(et,2),Ve=mt[0],rt=mt[1],Ue=l.useState(ze),Je=me(Ue,2),ht=Je[0],gt=Je[1];l.useEffect(function(){rt(Te),gt(ze),Ke.current&&(ke?$e(Ae):we(Yd))},[Te,ze]);var It=l.useState(0),Et=me(It,2),xt=Et[0],pt=Et[1],Nt=xt>=Fe.length-1||Ve!=="horizontal"||E;l.useEffect(function(){ke&&We(ee)},[ee]),l.useEffect(function(){return Ke.current=!0,function(){Ke.current=!1}},[]);var Pt=dse(),_t=Pt.registerPath,Ot=Pt.unregisterPath,gn=Pt.refreshOverflowKeys,Mt=Pt.isSubPathKey,yt=Pt.getKeyPath,st=Pt.getKeys,nt=Pt.getSubPathKeys,Xt=l.useMemo(function(){return{registerPath:_t,unregisterPath:Ot}},[_t,Ot]),nn=l.useMemo(function(){return{isSubPathKey:Mt}},[Mt]);l.useEffect(function(){gn(Nt?Yd:Fe.slice(xt+1).map(function(wn){return wn.key}))},[xt,Nt]);var $n=Vn(j||P&&((n=Fe[0])===null||n===void 0?void 0:n.key),{value:j}),Kn=me($n,2),Xn=Kn[0],Pr=Kn[1],Gn=Gp(function(wn){Pr(wn)}),Vr=Gp(function(){Pr(void 0)});l.useImperativeHandle(t,function(){return{list:at.current,focus:function(hn){var $t,jt=Xn??(($t=Fe.find(function(_n){return!_n.props.disabled}))===null||$t===void 0?void 0:$t.key);if(jt){var Rt,Ht,on;(Rt=at.current)===null||Rt===void 0||(Ht=Rt.querySelector("li[data-menu-id='".concat(H4(U,jt),"']")))===null||Ht===void 0||(on=Ht.focus)===null||on===void 0||on.call(Ht,hn)}}}});var _o=Vn(H||[],{value:W,postState:function(hn){return Array.isArray(hn)?hn:hn==null?Yd:[hn]}}),Qn=me(_o,2),rn=Qn[0],Tt=Qn[1],On=function(hn){if(A){var $t=hn.key,jt=rn.includes($t),Rt;F?jt?Rt=rn.filter(function(on){return on!==$t}):Rt=[].concat(Ze(rn),[$t]):Rt=[$t],Tt(Rt);var Ht=le(le({},hn),{},{selectedKeys:Rt});jt?K?.(Ht):V?.(Ht)}!F&&ee.length&&Ve!=="inline"&&we(Yd)},Nn=Gp(function(wn){Ee?.(u1(wn)),On(wn)}),Fr=Gp(function(wn,hn){var $t=ee.filter(function(Rt){return Rt!==wn});if(hn)$t.push(wn);else if(Ve!=="inline"){var jt=nt(wn);$t=$t.filter(function(Rt){return!jt.has(Rt)})}os(ee,$t,!0)||we($t,!0)}),bo=function(hn,$t){var jt=$t??!ee.includes(hn);Fr(hn,jt)},Jr=lse(Ve,Xn,k,U,at,st,yt,Pr,bo,De);l.useEffect(function(){qe(!0)},[]);var fr=l.useMemo(function(){return{_internalRenderMenuItem:_e,_internalRenderSubMenuItem:Me}},[_e,Me]),eo=Ve!=="horizontal"||E?Fe:Fe.map(function(wn,hn){return l.createElement(qm,{key:wn.key,overflowDisabled:hn>xt},wn)}),To=l.createElement(gl,Re({id:y,ref:at,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:Og,className:ne(a,"".concat(a,"-root"),"".concat(a,"-").concat(Ve),u,(r={},ae(r,"".concat(a,"-inline-collapsed"),ht),ae(r,"".concat(a,"-rtl"),k),r),s),dir:v,style:c,role:"menu",tabIndex:f,data:eo,renderRawItem:function(hn){return hn},renderRawRest:function(hn){var $t=hn.length,jt=$t?Fe.slice(-$t):null;return l.createElement(Db,{eventKey:Z2,title:be,disabled:Nt,internalPopupClose:$t===0,popupClassName:ye},jt)},maxCount:Ve!=="horizontal"||E?gl.INVALIDATE:gl.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(hn){pt(hn)},onKeyDown:Jr},Ie));return l.createElement(U4.Provider,{value:fr},l.createElement(XD.Provider,{value:U},l.createElement(qm,{prefixCls:a,rootClassName:s,mode:Ve,openKeys:ee,rtl:k,disabled:C,motion:it?Q:null,defaultMotions:it?fe:null,activeKey:Xn,onActive:Gn,onInactive:Vr,selectedKeys:rn,inlineIndent:re,subMenuOpenDelay:O,subMenuCloseDelay:N,forceSubMenuRender:_,builtinPlacements:ie,triggerSubMenuAction:oe,getPopupContainer:Ce,itemIcon:ge,expandIcon:ve,onItemClick:Nn,onOpenChange:Fr},l.createElement(eA.Provider,{value:nn},To),l.createElement("div",{style:{display:"none"},"aria-hidden":!0},l.createElement(ZD.Provider,{value:Xt},Fe)))))}),_h=Ase;_h.Item=Og;_h.SubMenu=Db;_h.ItemGroup=Ab;_h.Divider=G4;var Lse={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};const Fse=Lse;var zse=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:Fse}))};const Bse=l.forwardRef(zse);var Hse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};const Use=Hse;var Wse=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:Use}))};const Xm=l.forwardRef(Wse),Vse=e=>!isNaN(parseFloat(e))&&isFinite(e),Kse=Vse,Gse=e=>{const{componentCls:t,colorBgContainer:n,colorBgBody:r,colorText:o}=e;return{[`${t}-sider-light`]:{background:n,[`${t}-sider-trigger`]:{color:o,background:n},[`${t}-sider-zero-width-trigger`]:{color:o,background:n,border:`1px solid ${r}`,borderInlineStart:0}}}},Yse=Gse,qse=e=>{const{antCls:t,componentCls:n,colorText:r,colorTextLightSolid:o,colorBgHeader:i,colorBgBody:a,colorBgTrigger:s,layoutHeaderHeight:c,layoutHeaderPaddingInline:u,layoutHeaderColor:d,layoutFooterPadding:f,layoutTriggerHeight:p,layoutZeroTriggerSize:g,motionDurationMid:v,motionDurationSlow:y,fontSize:S,borderRadius:b}=e;return{[n]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:a,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},[`${n}-sider`]:{position:"relative",minWidth:0,background:i,transition:`all ${v}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:p},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:p,color:o,lineHeight:`${p}px`,textAlign:"center",background:s,cursor:"pointer",transition:`all ${v}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:c,insetInlineEnd:-g,zIndex:1,width:g,height:g,color:o,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:i,borderStartStartRadius:0,borderStartEndRadius:b,borderEndEndRadius:b,borderEndStartRadius:0,cursor:"pointer",transition:`background ${y} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${y}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-g,borderStartStartRadius:b,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:b}}}}},Yse(e)),{"&-rtl":{direction:"rtl"}}),[`${n}-header`]:{height:c,paddingInline:u,color:d,lineHeight:`${c}px`,background:i,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:f,color:r,fontSize:S,background:a},[`${n}-content`]:{flex:"auto",minHeight:0}}},sA=Pn("Layout",e=>{const{colorText:t,controlHeightSM:n,controlHeight:r,controlHeightLG:o,marginXXS:i}=e,a=o*1.25,s=sn(e,{layoutHeaderHeight:r*2,layoutHeaderPaddingInline:a,layoutHeaderColor:t,layoutFooterPadding:`${n}px ${a}px`,layoutTriggerHeight:o+i*2,layoutZeroTriggerSize:o});return[qse(s)]},e=>{const{colorBgLayout:t}=e;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140"}});var lA=globalThis&&globalThis.__rest||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);onull,removeSider:()=>null}});function Lb(e){let{suffixCls:t,tagName:n,displayName:r}=e;return o=>l.forwardRef((a,s)=>l.createElement(o,Object.assign({ref:s,suffixCls:t,tagName:n},a)))}const Y4=l.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:o,tagName:i}=e,a=lA(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=l.useContext(St),c=s("layout",n),[u,d]=sA(c),f=r?`${c}-${r}`:c;return u(l.createElement(i,Object.assign({className:ne(n||f,o,d),ref:t},a)))}),Xse=l.forwardRef((e,t)=>{const{direction:n}=l.useContext(St),[r,o]=l.useState([]),{prefixCls:i,className:a,rootClassName:s,children:c,hasSider:u,tagName:d,style:f}=e,p=lA(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),g=vr(p,["suffixCls"]),{getPrefixCls:v,layout:y}=l.useContext(St),S=v("layout",i),[b,x]=sA(S),C=ne(S,{[`${S}-has-sider`]:typeof u=="boolean"?u:r.length>0,[`${S}-rtl`]:n==="rtl"},y?.className,a,s,x),E=l.useMemo(()=>({siderHook:{addSider:$=>{o(O=>[].concat(Ze(O),[$]))},removeSider:$=>{o(O=>O.filter(I=>I!==$))}}}),[]);return b(l.createElement(cA.Provider,{value:E},l.createElement(d,Object.assign({ref:t,className:C,style:Object.assign(Object.assign({},y?.style),f)},g),c)))}),Qse=Lb({tagName:"div",displayName:"Layout"})(Xse),Zse=Lb({suffixCls:"header",tagName:"header",displayName:"Header"})(Y4),Jse=Lb({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Y4),ele=Lb({suffixCls:"content",tagName:"main",displayName:"Content"})(Y4),tle=Qse;var nle=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),ole=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:o,children:i,defaultCollapsed:a=!1,theme:s="dark",style:c={},collapsible:u=!1,reverseArrow:d=!1,width:f=200,collapsedWidth:p=80,zeroWidthTriggerStyle:g,breakpoint:v,onCollapse:y,onBreakpoint:S}=e,b=nle(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:x}=l.useContext(cA),[C,E]=l.useState("collapsed"in e?e.collapsed:a),[$,O]=l.useState(!1);l.useEffect(()=>{"collapsed"in e&&E(e.collapsed)},[e.collapsed]);const I=(P,M)=>{"collapsed"in e||E(P),y?.(P,M)},N=l.useRef();N.current=P=>{O(P.matches),S?.(P.matches),C!==P.matches&&I(P.matches,"responsive")},l.useEffect(()=>{function P(A){return N.current(A)}let M;if(typeof window<"u"){const{matchMedia:A}=window;if(A&&v&&v in u6){M=A(`(max-width: ${u6[v]})`);try{M.addEventListener("change",P)}catch{M.addListener(P)}P(M)}}return()=>{try{M?.removeEventListener("change",P)}catch{M?.removeListener(P)}}},[v]),l.useEffect(()=>{const P=rle("ant-sider-");return x.addSider(P),()=>x.removeSider(P)},[]);const _=()=>{I(!C,"clickTrigger")},{getPrefixCls:T}=l.useContext(St),D=()=>{const P=T("layout-sider",n),M=vr(b,["collapsed"]),A=C?p:f,B=Kse(A)?`${A}px`:String(A),F=parseFloat(String(p||0))===0?l.createElement("span",{onClick:_,className:ne(`${P}-zero-width-trigger`,`${P}-zero-width-trigger-${d?"right":"left"}`),style:g},o||l.createElement(Bse,null)):null,V={expanded:d?l.createElement(ud,null):l.createElement(Xm,null),collapsed:d?l.createElement(Xm,null):l.createElement(ud,null)}[C?"collapsed":"expanded"],K=o!==null?F||l.createElement("div",{className:`${P}-trigger`,onClick:_,style:{width:B}},o||V):null,G=Object.assign(Object.assign({},c),{flex:`0 0 ${B}`,maxWidth:B,minWidth:B,width:B}),re=ne(P,`${P}-${s}`,{[`${P}-collapsed`]:!!C,[`${P}-has-trigger`]:u&&o!==null&&!F,[`${P}-below`]:!!$,[`${P}-zero-width`]:parseFloat(B)===0},r);return l.createElement("aside",Object.assign({className:re},M,{style:G,ref:t}),l.createElement("div",{className:`${P}-children`},i),u||$&&F?K:null)},j=l.useMemo(()=>({siderCollapsed:C}),[C]);return l.createElement(q4.Provider,{value:j},D())}),ile=ole;var ale=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:n,dashed:r}=e,o=ale(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=l.useContext(St),a=i("menu",t),s=ne({[`${a}-item-divider-dashed`]:!!r},n);return l.createElement(G4,Object.assign({className:s},o))},uA=sle,lle=l.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),d1=lle,cle=e=>{var t;const{className:n,children:r,icon:o,title:i,danger:a}=e,{prefixCls:s,firstLevel:c,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:f}=l.useContext(d1),p=x=>{const C=l.createElement("span",{className:`${s}-title-content`},r);return(!o||Di(r)&&r.type==="span")&&r&&x&&c&&typeof r=="string"?l.createElement("div",{className:`${s}-inline-collapsed-noicon`},r.charAt(0)):C},{siderCollapsed:g}=l.useContext(q4);let v=i;typeof i>"u"?v=c?r:"":i===!1&&(v="");const y={title:v};!g&&!f&&(y.title=null,y.open=!1);const S=zo(r).length;let b=l.createElement(Og,Object.assign({},vr(e,["title","icon","danger"]),{className:ne({[`${s}-item-danger`]:a,[`${s}-item-only-child`]:(o?S+1:S)===1},n),title:typeof i=="string"?i:void 0}),go(o,{className:ne(Di(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),p(f));return d||(b=l.createElement(Io,Object.assign({},y,{placement:u==="rtl"?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),b)),b},dA=cle,ule=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,a=l.useContext(d1),{prefixCls:s,inlineCollapsed:c,theme:u}=a,d=Nh();let f;if(!r)f=c&&!d.length&&o&&typeof o=="string"?l.createElement("div",{className:`${s}-inline-collapsed-noicon`},o.charAt(0)):l.createElement("span",{className:`${s}-title-content`},o);else{const g=Di(o)&&o.type==="span";f=l.createElement(l.Fragment,null,go(r,{className:ne(Di(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),g?o:l.createElement("span",{className:`${s}-title-content`},o))}const p=l.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]);return l.createElement(d1.Provider,{value:p},l.createElement(Db,Object.assign({},vr(e,["icon"]),{title:f,popupClassName:ne(s,n,`${s}-${i||u}`)})))},fA=ule;var dle={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};const fle=dle;var hle=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:fle}))};const X4=l.forwardRef(hle);var ple=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{children:n}=e,r=ple(e,["children"]),o=l.useContext(eE),i=l.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable]);return l.createElement(eE.Provider,{value:i},l.createElement(sd,null,Oq(n)?l.cloneElement(n,{ref:t}):n))}),d6=eE;var mle=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{if(t&&typeof t=="object"){const r=t,{label:o,children:i,key:a,type:s}=r,c=mle(r,["label","children","key","type"]),u=a??`tmp-${n}`;return i||s==="group"?s==="group"?l.createElement(Ab,Object.assign({key:u},c,{title:o}),tE(i)):l.createElement(fA,Object.assign({key:u},c,{title:o}),tE(i)):s==="divider"?l.createElement(uA,Object.assign({key:u},c)):l.createElement(dA,Object.assign({key:u},c),o)}return null}).filter(t=>t)}function gle(e){return l.useMemo(()=>e&&tE(e),[e])}const vle=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${i}px ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover, > ${t}-item-active, > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},yle=vle,ble=e=>{let{componentCls:t,menuArrowOffset:n}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical, ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}},xle=ble,f6=e=>Object.assign({},vl(e)),wle=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:s,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:p,motionEaseInOut:g,motionEaseOut:v,itemPaddingInline:y,motionDurationMid:S,itemHoverColor:b,lineType:x,colorSplit:C,itemDisabledColor:E,dangerItemColor:$,dangerItemHoverColor:O,dangerItemSelectedColor:I,dangerItemActiveBg:N,dangerItemSelectedBg:_,itemHoverBg:T,itemActiveBg:D,menuSubMenuBg:j,horizontalItemSelectedColor:P,horizontalItemSelectedBg:M,horizontalItemBorderRadius:A,horizontalItemHoverBg:B,popupBg:F}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},f6(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${E} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:T},"&:active":{backgroundColor:D}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:T},"&:active":{backgroundColor:D}}},[`${n}-item-danger`]:{color:$,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:O}},[`&${n}-item:active`]:{background:N}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:I},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:_}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},f6(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:j},[`&${n}-popup > ${n}`]:{backgroundColor:F},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:-f,marginBottom:0,borderRadius:A,"&::after":{position:"absolute",insetInline:y,bottom:0,borderBottom:`${u}px solid transparent`,transition:`border-color ${p} ${g}`,content:'""'},"&:hover, &-active, &-open":{background:B,"&::after":{borderBottomWidth:u,borderBottomColor:P}},"&-selected":{color:P,backgroundColor:M,"&:hover":{backgroundColor:M},"&::after":{borderBottomWidth:u,borderBottomColor:P}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${f}px ${x} ${C}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item, ${n}-submenu-title`]:f&&d?{width:`calc(100% + ${f}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${d}px solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${S} ${v}`,`opacity ${S} ${v}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:I}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${S} ${g}`,`opacity ${S} ${g}`].join(",")}}}}}},h6=wle,p6=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:s}=e,c=o+i+a;return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:`calc(100% - ${r*2}px)`},[`> ${t}-item, > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title, ${t}-submenu-title`]:{paddingInlineEnd:c}}},Sle=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:s,motionEaseOut:c,paddingXL:u,itemMarginInline:d,fontSizeLG:f,motionDurationSlow:p,paddingXS:g,boxShadowSecondary:v,collapsedWidth:y,collapsedIconSize:S}=e,b={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},p6(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},p6(e)),{boxShadow:v})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${a*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${p}`,`background ${p}`,`padding ${s} ${c}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:b,[`& ${t}-item-group-title`]:{paddingInlineStart:u}},[`${t}-item`]:b}},{[`${t}-inline-collapsed`]:{width:y,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:f,textAlign:"center"}}},[`> ${t}-item, > ${t}-item-group > ${t}-item-group-list > ${t}-item, > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title, > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${f/2}px - ${d}px)`,textOverflow:"clip",[` ${t}-submenu-arrow, ${t}-submenu-expand-icon `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:S,lineHeight:`${r}px`,"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Us),{paddingInline:g})}}]},Cle=Sle,m6=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:s,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},xh()),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},g6=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:i*.6,height:i*.15,backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${a})`},"&::after":{transform:`rotate(-45deg) translateY(${a})`}}}}},Ele=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:s,padding:c,colorSplit:u,lineWidth:d,zIndexPopup:f,borderRadiusLG:p,subMenuItemBorderRadius:g,menuArrowSize:v,menuArrowOffset:y,lineType:S,menuPanelMaskInset:b,groupTitleLineHeight:x,groupTitleFontSize:C}=e;return[{"":{[`${n}`]:Object.assign(Object.assign({},sc()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},En(e)),sc()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${s}px ${c}px`,fontSize:C,lineHeight:x,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:S,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),m6(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${r*2}px ${c}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:p,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${b}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:b},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:p},m6(e)),g6(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:g},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})}}),g6(e)),{[`&-inline-collapsed ${n}-submenu-arrow, &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${y})`},"&::after":{transform:`rotate(45deg) translateX(-${y})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${v*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${y})`},"&::before":{transform:`rotate(45deg) translateX(${y})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},$le=(e,t)=>Pn("Menu",r=>{if(t===!1)return[];const{colorBgElevated:o,colorPrimary:i,colorTextLightSolid:a,controlHeightLG:s,fontSize:c,darkItemColor:u,darkDangerItemColor:d,darkItemBg:f,darkSubMenuItemBg:p,darkItemSelectedColor:g,darkItemSelectedBg:v,darkDangerItemSelectedBg:y,darkItemHoverBg:S,darkGroupTitleColor:b,darkItemHoverColor:x,darkItemDisabledColor:C,darkDangerItemHoverColor:E,darkDangerItemSelectedColor:$,darkDangerItemActiveBg:O}=r,I=c/7*5,N=sn(r,{menuArrowSize:I,menuHorizontalHeight:s*1.15,menuArrowOffset:`${I*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:o}),_=sn(N,{itemColor:u,itemHoverColor:x,groupTitleColor:b,itemSelectedColor:g,itemBg:f,popupBg:f,subMenuItemBg:p,itemActiveBg:"transparent",itemSelectedBg:v,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:S,itemDisabledColor:C,dangerItemColor:d,dangerItemHoverColor:E,dangerItemSelectedColor:$,dangerItemActiveBg:O,dangerItemSelectedBg:y,menuSubMenuBg:p,horizontalItemSelectedColor:a,horizontalItemSelectedBg:i});return[Ele(N),yle(N),Cle(N),h6(N,"light"),h6(_,"dark"),xle(N),Nb(N),yl(N,"slide-up"),yl(N,"slide-down"),xg(N,"zoom-big")]},r=>{const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:s,colorText:c,colorTextDescription:u,colorBgContainer:d,colorFillAlter:f,colorFillContent:p,lineWidth:g,lineWidthBold:v,controlItemBgActive:y,colorBgTextHover:S,controlHeightLG:b,lineHeight:x,colorBgElevated:C,marginXXS:E,padding:$,fontSize:O,controlHeightSM:I,fontSizeLG:N,colorTextLightSolid:_,colorErrorHover:T}=r,D=new kn(_).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:r.zIndexPopupBase+50,radiusItem:r.borderRadiusLG,itemBorderRadius:r.borderRadiusLG,radiusSubMenuItem:r.borderRadiusSM,subMenuItemBorderRadius:r.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:u,groupTitleColor:u,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:d,itemBg:d,colorItemBgHover:S,itemHoverBg:S,colorItemBgActive:p,itemActiveBg:y,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:y,itemSelectedBg:y,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:v,activeBarHeight:v,colorActiveBarBorderSize:g,activeBarBorderWidth:g,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:r.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:b,groupTitleLineHeight:x,collapsedWidth:b*2,popupBg:C,itemMarginBlock:E,itemPaddingInline:$,horizontalLineHeight:`${b*1.15}px`,iconSize:O,iconMarginInlineEnd:I-O,collapsedIconSize:N,groupTitleFontSize:O,darkItemDisabledColor:new kn(_).setAlpha(.25).toRgbString(),darkItemColor:D,darkDangerItemColor:i,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:_,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:D,darkItemHoverColor:_,darkDangerItemHoverColor:T,darkDangerItemSelectedColor:_,darkDangerItemActiveBg:i}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(e);var Ole=globalThis&&globalThis.__rest||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 o=l.useContext(d6),i=o||{},{getPrefixCls:a,getPopupContainer:s,direction:c,menu:u}=l.useContext(St),d=a(),{prefixCls:f,className:p,style:g,theme:v="light",expandIcon:y,_internalDisableMenuItemTitleTooltip:S,inlineCollapsed:b,siderCollapsed:x,items:C,children:E,rootClassName:$,mode:O,selectable:I,onClick:N,overflowedIndicatorPopupClassName:_}=e,T=Ole(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),D=vr(T,["collapsedWidth"]),j=gle(C)||E;(n=i.validator)===null||n===void 0||n.call(i,{mode:O});const P=Lo(function(){var Q;N?.apply(void 0,arguments),(Q=i.onClick)===null||Q===void 0||Q.call(i)}),M=i.mode||O,A=I??i.selectable,B=l.useMemo(()=>x!==void 0?x:b,[b,x]),F={horizontal:{motionName:`${d}-slide-up`},inline:Wm(d),other:{motionName:`${d}-zoom-big`}},H=a("menu",f||i.prefixCls),[W,V]=$le(H,!o),K=ne(`${H}-${v}`,u?.className,p);let G;if(typeof y=="function")G=y;else{const Q=y||i.expandIcon;G=go(Q,{className:ne(`${H}-submenu-expand-icon`,Di(Q)?(r=Q.props)===null||r===void 0?void 0:r.className:"")})}const re=l.useMemo(()=>({prefixCls:H,inlineCollapsed:B||!1,direction:c,firstLevel:!0,theme:v,mode:M,disableMenuItemTitleTooltip:S}),[H,B,c,S,v]);return W(l.createElement(d6.Provider,{value:null},l.createElement(d1.Provider,{value:re},l.createElement(_h,Object.assign({getPopupContainer:s,overflowedIndicator:l.createElement(X4,null),overflowedIndicatorPopupClassName:ne(H,`${H}-${v}`,_),mode:M,selectable:A,onClick:P},D,{inlineCollapsed:B,style:Object.assign(Object.assign({},u?.style),g),className:K,prefixCls:H,direction:c,defaultMotions:F,expandIcon:G,ref:t,rootClassName:ne($,V)}),j))))}),Rle=Ile,Ig=l.forwardRef((e,t)=>{const n=l.useRef(null),r=l.useContext(q4);return l.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var i;(i=n.current)===null||i===void 0||i.focus(o)}})),l.createElement(Rle,Object.assign({ref:n},e,r))});Ig.Item=dA;Ig.SubMenu=fA;Ig.Divider=uA;Ig.ItemGroup=Ab;const f1=Ig,Nle=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},_le=Nle,Tle=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:s,motionDurationMid:c,dropdownPaddingVertical:u,fontSize:d,dropdownEdgeChildPadding:f,colorTextDisabled:p,fontSizeIcon:g,controlPaddingHorizontal:v,colorBgElevated:y}=e;return[{[t]:Object.assign(Object.assign({},En(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:-o+i/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${a}-btn`]:{[`& > ${s}-down, & > ${a}-btn-icon > ${s}-down`]:{fontSize:g}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${s}-down`]:{fontSize:g},[`${s}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft, &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft, &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom, &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom, &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight, &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:$b},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft, &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft, &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top, &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top, &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight, &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Ib},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft, &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom, &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Ob},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft, &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top, &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Rb}})},HD(e,{colorBg:y,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{[n]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:y,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},lu(e)),{[`${n}-item-group-title`]:{padding:`${u}px ${v}px`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${u}px ${v}px`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},lu(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:p,cursor:"not-allowed","&:hover":{color:p,backgroundColor:y,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${e.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:g,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${e.marginXS}px`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:v+e.fontSizeSM},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:p,backgroundColor:y,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[yl(e,"slide-up"),yl(e,"slide-down"),rh(e,"move-up"),rh(e,"move-down"),xg(e,"zoom-big")]]},pA=Pn("Dropdown",(e,t)=>{let{rootPrefixCls:n}=t;const{marginXXS:r,sizePopupArrow:o,controlHeight:i,fontSize:a,lineHeight:s,paddingXXS:c,componentCls:u,borderRadiusLG:d}=e,f=(i-a*s)/2,{dropdownArrowOffset:p}=B4({contentRadius:d}),g=sn(e,{menuCls:`${u}-menu`,rootPrefixCls:n,dropdownArrowDistance:o/2+r,dropdownArrowOffset:p,dropdownPaddingVertical:f,dropdownEdgeChildPadding:c});return[Tle(g),_le(g)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),Q4=e=>{const{menu:t,arrow:n,prefixCls:r,children:o,trigger:i,disabled:a,dropdownRender:s,getPopupContainer:c,overlayClassName:u,rootClassName:d,open:f,onOpenChange:p,visible:g,onVisibleChange:v,mouseEnterDelay:y=.15,mouseLeaveDelay:S=.1,autoAdjustOverflow:b=!0,placement:x="",overlay:C,transitionName:E}=e,{getPopupContainer:$,getPrefixCls:O,direction:I}=l.useContext(St),N=l.useMemo(()=>{const fe=O();return E!==void 0?E:x.includes("top")?`${fe}-slide-down`:`${fe}-slide-up`},[O,x,E]),_=l.useMemo(()=>x?x.includes("Center")?x.slice(0,x.indexOf("Center")):x:I==="rtl"?"bottomRight":"bottomLeft",[x,I]),T=O("dropdown",r),[D,j]=pA(T),{token:P}=Uo.useToken(),M=l.Children.only(o),A=go(M,{className:ne(`${T}-trigger`,{[`${T}-rtl`]:I==="rtl"},M.props.className),disabled:a}),B=a?[]:i;let F;B&&B.includes("contextMenu")&&(F=!0);const[H,W]=Vn(!1,{value:f??g}),V=Lo(fe=>{p?.(fe),v?.(fe),W(fe)}),K=ne(u,d,j,{[`${T}-rtl`]:I==="rtl"}),G=UD({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:b,offset:P.marginXXS,arrowWidth:n?P.sizePopupArrow:0,borderRadius:P.borderRadius}),re=l.useCallback(()=>{W(!1)},[]),Q=()=>{let fe;return t?.items?fe=l.createElement(f1,Object.assign({},t)):typeof C=="function"?fe=C():fe=C,s&&(fe=s(fe)),fe=l.Children.only(typeof fe=="string"?l.createElement("span",null,fe):fe),l.createElement(hA,{prefixCls:`${T}-menu`,expandIcon:l.createElement("span",{className:`${T}-menu-submenu-arrow`},l.createElement(ud,{className:`${T}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:re,validator:se=>{}},fe)};return D(l.createElement(qD,Object.assign({alignPoint:F},vr(e,["rootClassName"]),{mouseEnterDelay:y,mouseLeaveDelay:S,visible:H,builtinPlacements:G,arrow:!!n,overlayClassName:K,prefixCls:T,getPopupContainer:c||$,transitionName:N,trigger:B,overlay:Q,placement:_,onVisibleChange:V}),A))};function Ple(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const jle=Sg(Q4,"dropdown",e=>e,Ple),Mle=e=>l.createElement(jle,Object.assign({},e),l.createElement("span",null));Q4._InternalPanelDoNotUseOrYouWillBeFired=Mle;const mA=Q4;var gA={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(wt,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",a="second",s="minute",c="hour",u="day",d="week",f="month",p="quarter",g="year",v="date",y="Invalid Date",S=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(P){var M=["th","st","nd","rd"],A=P%100;return"["+P+(M[(A-20)%10]||M[A]||M[0])+"]"}},C=function(P,M,A){var B=String(P);return!B||B.length>=M?P:""+Array(M+1-B.length).join(A)+P},E={s:C,z:function(P){var M=-P.utcOffset(),A=Math.abs(M),B=Math.floor(A/60),F=A%60;return(M<=0?"+":"-")+C(B,2,"0")+":"+C(F,2,"0")},m:function P(M,A){if(M.date()1)return P(W[0])}else{var V=M.name;O[V]=M,F=V}return!B&&F&&($=F),F||!B&&$},_=function(P,M){if(I(P))return P.clone();var A=typeof M=="object"?M:{};return A.date=P,A.args=arguments,new D(A)},T=E;T.l=N,T.i=I,T.w=function(P,M){return _(P,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var D=function(){function P(A){this.$L=N(A.locale,null,!0),this.parse(A)}var M=P.prototype;return M.parse=function(A){this.$d=function(B){var F=B.date,H=B.utc;if(F===null)return new Date(NaN);if(T.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var W=F.match(S);if(W){var V=W[2]-1||0,K=(W[7]||"0").substring(0,3);return H?new Date(Date.UTC(W[1],V,W[3]||1,W[4]||0,W[5]||0,W[6]||0,K)):new Date(W[1],V,W[3]||1,W[4]||0,W[5]||0,W[6]||0,K)}}return new Date(F)}(A),this.$x=A.x||{},this.init()},M.init=function(){var A=this.$d;this.$y=A.getFullYear(),this.$M=A.getMonth(),this.$D=A.getDate(),this.$W=A.getDay(),this.$H=A.getHours(),this.$m=A.getMinutes(),this.$s=A.getSeconds(),this.$ms=A.getMilliseconds()},M.$utils=function(){return T},M.isValid=function(){return this.$d.toString()!==y},M.isSame=function(A,B){var F=_(A);return this.startOf(B)<=F&&F<=this.endOf(B)},M.isAfter=function(A,B){return _(A)25){var d=a(this).startOf(r).add(1,r).date(u),f=a(this).endOf(n);if(d.isBefore(f))return 1}var p=a(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),g=this.diff(p,n,!0);return g<0?a(this).startOf("week").week():Math.ceil(g)},s.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(bA);var zle=bA.exports;const Ble=Vo(zle);var xA={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(wt,function(){return function(n,r){r.prototype.weekYear=function(){var o=this.month(),i=this.week(),a=this.year();return i===1&&o===11?a+1:o===0&&i>=52?a-1:a}}})})(xA);var Hle=xA.exports;const Ule=Vo(Hle);var wA={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(wt,function(){return function(n,r){var o=r.prototype,i=o.format;o.format=function(a){var s=this,c=this.$locale();if(!this.isValid())return i.bind(this)(a);var u=this.$utils(),d=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return c.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return c.ordinal(s.week(),"W");case"w":case"ww":return u.s(s.week(),f==="w"?1:2,"0");case"W":case"WW":return u.s(s.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return u.s(String(s.$H===0?24:s.$H),f==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return f}});return i.bind(this)(d)}}})})(wA);var Wle=wA.exports;const Vle=Vo(Wle);var SA={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(wt,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,s={},c=function(y){return(y=+y)+(y>68?1900:2e3)},u=function(y){return function(S){this[y]=+S}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(S){if(!S||S==="Z")return 0;var b=S.match(/([+-]|\d\d)/g),x=60*b[1]+(+b[2]||0);return x===0?0:b[0]==="+"?-x:x}(y)}],f=function(y){var S=s[y];return S&&(S.indexOf?S:S.s.concat(S.f))},p=function(y,S){var b,x=s.meridiem;if(x){for(var C=1;C<=24;C+=1)if(y.indexOf(x(C,0,S))>-1){b=C>12;break}}else b=y===(S?"pm":"PM");return b},g={A:[a,function(y){this.afternoon=p(y,!1)}],a:[a,function(y){this.afternoon=p(y,!0)}],S:[/\d/,function(y){this.milliseconds=100*+y}],SS:[o,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[i,u("seconds")],ss:[i,u("seconds")],m:[i,u("minutes")],mm:[i,u("minutes")],H:[i,u("hours")],h:[i,u("hours")],HH:[i,u("hours")],hh:[i,u("hours")],D:[i,u("day")],DD:[o,u("day")],Do:[a,function(y){var S=s.ordinal,b=y.match(/\d+/);if(this.day=b[0],S)for(var x=1;x<=31;x+=1)S(x).replace(/\[|\]/g,"")===y&&(this.day=x)}],M:[i,u("month")],MM:[o,u("month")],MMM:[a,function(y){var S=f("months"),b=(f("monthsShort")||S.map(function(x){return x.slice(0,3)})).indexOf(y)+1;if(b<1)throw new Error;this.month=b%12||b}],MMMM:[a,function(y){var S=f("months").indexOf(y)+1;if(S<1)throw new Error;this.month=S%12||S}],Y:[/[+-]?\d+/,u("year")],YY:[o,function(y){this.year=c(y)}],YYYY:[/\d{4}/,u("year")],Z:d,ZZ:d};function v(y){var S,b;S=y,b=s&&s.formats;for(var x=(y=S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(_,T,D){var j=D&&D.toUpperCase();return T||b[D]||n[D]||b[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(P,M,A){return M||A.slice(1)})})).match(r),C=x.length,E=0;E-1)return new Date((F==="X"?1e3:1)*B);var W=v(F)(B),V=W.year,K=W.month,G=W.day,re=W.hours,Q=W.minutes,fe=W.seconds,se=W.milliseconds,oe=W.zone,ie=new Date,ge=G||(V||K?1:ie.getDate()),ve=V||ie.getFullYear(),he=0;V&&!K||(he=K>0?K-1:ie.getMonth());var be=re||0,ye=Q||0,Ce=fe||0,Ee=se||0;return oe?new Date(Date.UTC(ve,he,ge,be,ye,Ce,Ee+60*oe.offset*1e3)):H?new Date(Date.UTC(ve,he,ge,be,ye,Ce,Ee)):new Date(ve,he,ge,be,ye,Ce,Ee)}catch{return new Date("")}}($,N,O),this.init(),j&&j!==!0&&(this.$L=this.locale(j).$L),D&&$!=this.format(N)&&(this.$d=new Date("")),s={}}else if(N instanceof Array)for(var P=N.length,M=1;M<=P;M+=1){I[1]=N[M-1];var A=b.apply(this,I);if(A.isValid()){this.$d=A.$d,this.$L=A.$L,this.init();break}M===P&&(this.$d=new Date(""))}else C.call(this,E)}}})})(SA);var Kle=SA.exports;const Gle=Vo(Kle);Do.extend(Gle);Do.extend(Vle);Do.extend(Ale);Do.extend(Fle);Do.extend(Ble);Do.extend(Ule);Do.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(i){var a=(i||"").replace("Wo","wo");return r.bind(this)(a)}});var Yle={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},Ru=function(t){var n=Yle[t];return n||t.split("_")[0]},v6=function(){Jj(!1,"Not match any format. Please help to fire a issue about this.")},qle={getNow:function(){return Do()},getFixedDate:function(t){return Do(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var n=t.locale("en");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},addYear:function(t,n){return t.add(n,"year")},addMonth:function(t,n){return t.add(n,"month")},addDate:function(t,n){return t.add(n,"day")},setYear:function(t,n){return t.year(n)},setMonth:function(t,n){return t.month(n)},setDate:function(t,n){return t.date(n)},setHour:function(t,n){return t.hour(n)},setMinute:function(t,n){return t.minute(n)},setSecond:function(t,n){return t.second(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return Do().locale(Ru(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(Ru(t)).weekday(0)},getWeek:function(t,n){return n.locale(Ru(t)).week()},getShortWeekDays:function(t){return Do().locale(Ru(t)).localeData().weekdaysMin()},getShortMonths:function(t){return Do().locale(Ru(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(Ru(t)).format(r)},parse:function(t,n,r){for(var o=Ru(t),i=0;i1&&(a=t.addDate(a,-7)),a}function pm(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(t){case"year":return n.addYear(e,r*10);case"quarter":case"month":return n.addYear(e,r);default:return n.addMonth(e,r)}}function oi(e,t){var n=t.generateConfig,r=t.locale,o=t.format;return typeof o=="function"?o(e):n.locale.format(r.locale,e,o)}function EA(e,t){var n=t.generateConfig,r=t.locale,o=t.formatList;return!e||typeof o[0]=="function"?null:n.locale.parse(r.locale,e,o)}function h1(e){var t=e.cellDate,n=e.mode,r=e.disabledDate,o=e.generateConfig;if(!r)return!1;var i=function(v,y,S){for(var b=y;b<=S;){var x=void 0;switch(v){case"date":{if(x=o.setDate(t,b),!r(x))return!1;break}case"month":{if(x=o.setMonth(t,b),!h1({cellDate:x,mode:"month",generateConfig:o,disabledDate:r}))return!1;break}case"year":{if(x=o.setYear(t,b),!h1({cellDate:x,mode:"year",generateConfig:o,disabledDate:r}))return!1;break}}b+=1}return!0};switch(n){case"date":case"week":return r(t);case"month":{var a=1,s=o.getDate(o.getEndDate(t));return i("date",a,s)}case"quarter":{var c=Math.floor(o.getMonth(t)/3)*3,u=c+2;return i("month",c,u)}case"year":return i("month",0,11);case"decade":{var d=o.getYear(t),f=Math.floor(d/Ms)*Ms,p=f+Ms-1;return i("year",f,p)}}}function p1(e,t){var n=t.formatList,r=t.generateConfig,o=t.locale;return hc(function(){if(!e)return[[""],""];for(var i="",a=[],s=0;s1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(u.current),b){c(S);return}u.current=requestAnimationFrame(function(){c(S)})}var f=p1(s,{formatList:n,generateConfig:r,locale:o}),p=me(f,2),g=p[1];function v(S){d(S)}function y(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;d(null,S)}return l.useEffect(function(){y(!0)},[e]),l.useEffect(function(){return function(){return cancelAnimationFrame(u.current)}},[]),[g,v,y]}var g0=new Map;function Jle(e,t){var n;function r(){$h(e)?t():n=yn(function(){r()})}return r(),function(){yn.cancel(n)}}function oE(e,t,n){if(g0.get(e)&&cancelAnimationFrame(g0.get(e)),n<=0){g0.set(e,requestAnimationFrame(function(){e.scrollTop=t}));return}var r=t-e.scrollTop,o=r/n*10;g0.set(e,requestAnimationFrame(function(){e.scrollTop+=o,e.scrollTop!==t&&oE(e,t,n-10)}))}function Th(e,t){var n=t.onLeftRight,r=t.onCtrlLeftRight,o=t.onUpDown,i=t.onPageUpDown,a=t.onEnter,s=e.which,c=e.ctrlKey,u=e.metaKey;switch(s){case He.LEFT:if(c||u){if(r)return r(-1),!0}else if(n)return n(-1),!0;break;case He.RIGHT:if(c||u){if(r)return r(1),!0}else if(n)return n(1),!0;break;case He.UP:if(o)return o(-1),!0;break;case He.DOWN:if(o)return o(1),!0;break;case He.PAGE_UP:if(i)return i(-1),!0;break;case He.PAGE_DOWN:if(i)return i(1),!0;break;case He.ENTER:if(a)return a(),!0;break}return!1}function $A(e,t,n,r){var o=e;if(!o)switch(t){case"time":o=r?"hh:mm:ss a":"HH:mm:ss";break;case"week":o="gggg-wo";break;case"month":o="YYYY-MM";break;case"quarter":o="YYYY-[Q]Q";break;case"year":o="YYYY";break;default:o=n?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return o}function OA(e,t,n){var r=e==="time"?8:10,o=typeof t=="function"?t(n.getNow()).length:t.length;return Math.max(r,o)+2}var Np=null,v0=new Set;function ece(e){return!Np&&typeof window<"u"&&window.addEventListener&&(Np=function(n){Ze(v0).forEach(function(r){r(n)})},window.addEventListener("mousedown",Np)),v0.add(e),function(){v0.delete(e),v0.size===0&&(window.removeEventListener("mousedown",Np),Np=null)}}function tce(e){var t=e.target;if(e.composed&&t.shadowRoot){var n;return((n=e.composedPath)===null||n===void 0?void 0:n.call(e)[0])||t}return t}var nce=function(t){return t==="month"||t==="date"?"year":t},rce=function(t){return t==="date"?"month":t},oce=function(t){return t==="month"||t==="date"?"quarter":t},ice=function(t){return t==="date"?"week":t},ace={year:nce,month:rce,quarter:oce,week:ice,time:null,date:null};function IA(e,t){return e.some(function(n){return n&&n.contains(t)})}function iE(e){var t=e.open,n=e.value,r=e.isClickOutside,o=e.triggerOpen,i=e.forwardKeyDown,a=e.onKeyDown,s=e.blurToCancel,c=e.onSubmit,u=e.onCancel,d=e.onFocus,f=e.onBlur,p=e.changeOnBlur,g=l.useState(!1),v=me(g,2),y=v[0],S=v[1],b=l.useState(!1),x=me(b,2),C=x[0],E=x[1],$=l.useRef(!1),O=l.useRef(!1),I=l.useRef(!1),N={onMouseDown:function(){S(!0),o(!0)},onKeyDown:function(T){var D=function(){I.current=!0};if(a(T,D),!I.current){switch(T.which){case He.ENTER:{t?c()!==!1&&S(!0):o(!0),T.preventDefault();return}case He.TAB:{y&&t&&!T.shiftKey?(S(!1),T.preventDefault()):!y&&t&&!i(T)&&T.shiftKey&&(S(!0),T.preventDefault());return}case He.ESC:{S(!0),u();return}}!t&&![He.SHIFT].includes(T.which)?o(!0):y||i(T)}},onFocus:function(T){S(!0),E(!0),d&&d(T)},onBlur:function(T){if($.current||!r(document.activeElement)){$.current=!1;return}s?setTimeout(function(){for(var D=document,j=D.activeElement;j&&j.shadowRoot;)j=j.shadowRoot.activeElement;r(j)&&u()},0):t&&(o(!1),O.current&&c()),E(!1),f?.(T)}};return l.useEffect(function(){O.current=!1},[t]),l.useEffect(function(){O.current=!0},[n]),l.useEffect(function(){return ece(function(_){var T=tce(_),D=r(T);t&&(D?!p&&(!C||D)&&o(!1):($.current=!0,yn(function(){$.current=!1})))})}),[N,{focused:C,typing:y}]}function RA(e,t){return l.useMemo(function(){return e||(t?(dr(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=me(n,2),o=r[0],i=r[1];return{label:o,value:i}})):[])},[e,t])}function aE(e){var t=e.valueTexts,n=e.onTextChange,r=l.useState(""),o=me(r,2),i=o[0],a=o[1],s=l.useRef([]);s.current=t;function c(d){a(d),n(d)}function u(){a(s.current[0])}return Wn(function(){t.every(function(d){return d!==i})&&u()},[t.join("||")]),[i,c,u]}var la=l.createContext({});function NA(e){var t=e.cellRender,n=e.monthCellRender,r=e.dateRender,o=Ne.useMemo(function(){if(t)return t;if(!(!n&&!r))return function(i,a){var s=i;return r&&a.type==="date"?r(s,a.today):n&&a.type==="month"?n(s,a.locale):a.originNode}},[t,n,r]);return o}function _A(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length=1?n|0:1,a=e;a<=t;a+=i)o.push({label:_A(a,2),value:a,disabled:(r||[]).includes(a)});return o}function gce(e){var t=e.generateConfig,n=e.prefixCls,r=e.operationRef,o=e.activeColumnIndex,i=e.value,a=e.showHour,s=e.showMinute,c=e.showSecond,u=e.use12Hours,d=e.hourStep,f=d===void 0?1:d,p=e.minuteStep,g=p===void 0?1:p,v=e.secondStep,y=v===void 0?1:v,S=e.disabledHours,b=e.disabledMinutes,x=e.disabledSeconds,C=e.disabledTime,E=e.hideDisabledOptions,$=e.onSelect,O=e.cellRender,I=e.locale,N=[],_="".concat(n,"-content"),T="".concat(n,"-time-panel"),D,j=i?t.getHour(i):-1,P=j,M=i?t.getMinute(i):-1,A=i?t.getSecond(i):-1,B=t.getNow(),F=l.useMemo(function(){if(C){var Ce=C(B);return[Ce.disabledHours,Ce.disabledMinutes,Ce.disabledSeconds]}return[S,b,x]},[S,b,x,C,B]),H=me(F,3),W=H[0],V=H[1],K=H[2],G=ES(0,23,f,W&&W()),re=hc(function(){return G},G,mce);u&&(D=P>=12,P%=12);var Q=l.useMemo(function(){if(!u)return[!1,!1];var Ce=[!0,!0];return re.forEach(function(Ee){var je=Ee.disabled,De=Ee.value;je||(De>=12?Ce[1]=!1:Ce[0]=!1)}),Ce},[u,re]),fe=me(Q,2),se=fe[0],oe=fe[1],ie=l.useMemo(function(){return u?re.filter(D?function(Ce){return Ce.value>=12}:function(Ce){return Ce.value<12}).map(function(Ce){var Ee=Ce.value%12,je=Ee===0?"12":_A(Ee,2);return le(le({},Ce),{},{label:je,value:Ee})}):re},[u,D,re]),ge=ES(0,59,g,V&&V(j)),ve=ES(0,59,y,K&&K(j,M)),he=pce({value:i,generateConfig:t,disabledMinutes:V,disabledSeconds:K,minutes:ge,seconds:ve,use12Hours:u});r.current={onUpDown:function(Ee){var je=N[o];if(je)for(var De=je.units.findIndex(function(Fe){return Fe.value===je.value}),_e=je.units.length,Me=1;Me<_e;Me+=1){var Ie=je.units[(De+Ee*Me+_e)%_e];if(Ie.disabled!==!0){je.onSelect(Ie.value);break}}}};function be(Ce,Ee,je,De,_e){Ce!==!1&&N.push({node:l.cloneElement(Ee,{prefixCls:T,value:je,active:o===N.length,onSelect:_e,units:De,hideDisabledOptions:E}),onSelect:_e,value:je,units:De})}be(a,l.createElement(b0,{key:"hour",type:"hour",info:{today:B,locale:I,cellRender:O}}),P,ie,function(Ce){$(he(D,Ce,M,A),"mouse")}),be(s,l.createElement(b0,{key:"minute",type:"minute",info:{today:B,locale:I,cellRender:O}}),M,ge,function(Ce){$(he(D,P,Ce,A),"mouse")}),be(c,l.createElement(b0,{key:"second",type:"second",info:{today:B,locale:I,cellRender:O}}),A,ve,function(Ce){$(he(D,P,M,Ce),"mouse")});var ye=-1;return typeof D=="boolean"&&(ye=D?1:0),be(u===!0,l.createElement(b0,{key:"meridiem",type:"meridiem",info:{today:B,locale:I,cellRender:O}}),ye,[{label:"AM",value:0,disabled:se},{label:"PM",value:1,disabled:oe}],function(Ce){$(he(!!Ce,P,M,A),"mouse")}),l.createElement("div",{className:_},N.map(function(Ce){var Ee=Ce.node;return Ee}))}var vce=function(t){return t.filter(function(n){return n!==!1}).length};function MA(e){var t=e.generateConfig,n=e.format,r=n===void 0?"HH:mm:ss":n,o=e.prefixCls,i=e.active,a=e.operationRef,s=e.showHour,c=e.showMinute,u=e.showSecond,d=e.use12Hours,f=d===void 0?!1:d,p=e.onSelect,g=e.value,v="".concat(o,"-time-panel"),y=l.useRef(),S=l.useState(-1),b=me(S,2),x=b[0],C=b[1],E=vce([s,c,u,f]);return a.current={onKeyDown:function(O){return Th(O,{onLeftRight:function(N){C((x+N+E)%E)},onUpDown:function(N){x===-1?C(0):y.current&&y.current.onUpDown(N)},onEnter:function(){p(g||t.getNow(),"key"),C(-1)}})},onBlur:function(){C(-1)}},l.createElement("div",{className:ne(v,ae({},"".concat(v,"-active"),i))},l.createElement(hce,Re({},e,{format:r,prefixCls:o})),l.createElement(gce,Re({},e,{prefixCls:o,activeColumnIndex:x,operationRef:y})))}var b6=sce("date","time");function yce(e){var t=e.prefixCls,n=e.operationRef,r=e.generateConfig,o=e.value,i=e.defaultValue,a=e.disabledTime,s=e.showTime,c=e.onSelect,u=e.cellRender,d="".concat(t,"-datetime-panel"),f=l.useState(null),p=me(f,2),g=p[0],v=p[1],y=l.useRef({}),S=l.useRef({}),b=Wt(s)==="object"?le({},s):{};function x(O){var I=b6.indexOf(g)+O,N=b6[I]||null;return N}var C=function(I){S.current.onBlur&&S.current.onBlur(I),v(null)};n.current={onKeyDown:function(I){if(I.which===He.TAB){var N=x(I.shiftKey?-1:1);return v(N),N&&I.preventDefault(),!0}if(g){var _=g==="date"?y:S;return _.current&&_.current.onKeyDown&&_.current.onKeyDown(I),!0}return[He.LEFT,He.RIGHT,He.UP,He.DOWN].includes(I.which)?(v("date"),!0):!1},onBlur:C,onClose:C};var E=function(I,N){var _=I;N==="date"&&!o&&b.defaultValue?(_=r.setHour(_,r.getHour(b.defaultValue)),_=r.setMinute(_,r.getMinute(b.defaultValue)),_=r.setSecond(_,r.getSecond(b.defaultValue))):N==="time"&&!o&&i&&(_=r.setYear(_,r.getYear(i)),_=r.setMonth(_,r.getMonth(i)),_=r.setDate(_,r.getDate(i))),c&&c(_,"mouse")},$=a?a(o||null):{};return l.createElement("div",{className:ne(d,ae({},"".concat(d,"-active"),g))},l.createElement(J4,Re({},e,{cellRender:u,operationRef:y,active:g==="date",onSelect:function(I){E(jA(r,I,!o&&Wt(s)==="object"?s.defaultValue:null),"date")}})),l.createElement(MA,Re({},e,{cellRender:u?function(O,I){return u(O,le(le({},I),{},{type:"time"}))}:void 0,format:void 0},b,$,{disabledTime:null,defaultValue:void 0,operationRef:S,active:g==="time",onSelect:function(I){E(I,"time")}})))}function bce(e){var t=e.prefixCls,n=e.generateConfig,r=e.viewDate,o=e.onPrevDecades,i=e.onNextDecades,a=l.useContext(la),s=a.hideHeader;if(s)return null;var c="".concat(t,"-header"),u=n.getYear(r),d=Math.floor(u/ql)*ql,f=d+ql-1;return l.createElement(Ph,Re({},e,{prefixCls:c,onSuperPrev:o,onSuperNext:i}),d,"-",f)}var sE=3,x6=4;function xce(e){var t=Ms-1,n=e.prefixCls,r=e.viewDate,o=e.generateConfig,i=e.cellRender,a=e.locale,s="".concat(n,"-cell"),c=o.getYear(r),u=Math.floor(c/Ms)*Ms,d=Math.floor(c/ql)*ql,f=d+ql-1,p=o.setYear(r,d-Math.ceil((sE*x6*Ms-ql)/2)),g=function(S){var b,x=o.getYear(S),C=x+t;return b={},ae(b,"".concat(s,"-in-view"),d<=x&&C<=f),ae(b,"".concat(s,"-selected"),x===u),b},v=i?function(y,S){return i(y,{originNode:S,today:o.getNow(),type:"decade",locale:a})}:void 0;return l.createElement(Ng,Re({},e,{rowNum:x6,colNum:sE,baseDate:p,getCellNode:v,getCellText:function(S){var b=o.getYear(S);return"".concat(b,"-").concat(b+t)},getCellClassName:g,getCellDate:function(S,b){return o.addYear(S,b*Ms)}}))}function wce(e){var t=e.prefixCls,n=e.onViewDateChange,r=e.generateConfig,o=e.viewDate,i=e.operationRef,a=e.onSelect,s=e.onPanelChange,c="".concat(t,"-decade-panel");i.current={onKeyDown:function(p){return Th(p,{onLeftRight:function(v){a(r.addYear(o,v*Ms),"key")},onCtrlLeftRight:function(v){a(r.addYear(o,v*ql),"key")},onUpDown:function(v){a(r.addYear(o,v*Ms*sE),"key")},onEnter:function(){s("year",o)}})}};var u=function(p){var g=r.addYear(o,p*ql);n(g),s(null,g)},d=function(p){a(p,"mouse"),s("year",p)};return l.createElement("div",{className:c},l.createElement(bce,Re({},e,{prefixCls:t,onPrevDecades:function(){u(-1)},onNextDecades:function(){u(1)}})),l.createElement(xce,Re({},e,{prefixCls:t,onSelect:d})))}function Sce(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,o=e.viewDate,i=e.onNextYear,a=e.onPrevYear,s=e.onYearClick,c=l.useContext(la),u=c.hideHeader;if(u)return null;var d="".concat(t,"-header");return l.createElement(Ph,Re({},e,{prefixCls:d,onSuperPrev:a,onSuperNext:i}),l.createElement("button",{type:"button",onClick:s,className:"".concat(t,"-year-btn")},oi(o,{locale:r,format:r.yearFormat,generateConfig:n})))}var e3=3,Cce=4;function Ece(e){var t=e.prefixCls,n=e.locale,r=e.value,o=e.viewDate,i=e.generateConfig,a=e.cellRender,s=l.useContext(wd),c=s.rangedValue,u=s.hoverRangedValue,d="".concat(t,"-cell"),f=Fb({cellPrefixCls:d,value:r,generateConfig:i,rangedValue:c,hoverRangedValue:u,isSameCell:function(S,b){return Z4(i,S,b)},isInView:function(){return!0},offsetCell:function(S,b){return i.addMonth(S,b)}}),p=n.shortMonths||(i.locale.getShortMonths?i.locale.getShortMonths(n.locale):[]),g=i.setMonth(o,0),v=a?function(y,S){return a(y,{originNode:S,locale:n,today:i.getNow(),type:"month"})}:void 0;return l.createElement(Ng,Re({},e,{rowNum:Cce,colNum:e3,baseDate:g,getCellNode:v,getCellText:function(S){return n.monthFormat?oi(S,{locale:n,format:n.monthFormat,generateConfig:i}):p[i.getMonth(S)]},getCellClassName:f,getCellDate:i.addMonth,titleCell:function(S){return oi(S,{locale:n,format:"YYYY-MM",generateConfig:i})}}))}function $ce(e){var t=e.prefixCls,n=e.operationRef,r=e.onViewDateChange,o=e.generateConfig,i=e.value,a=e.viewDate,s=e.onPanelChange,c=e.onSelect,u="".concat(t,"-month-panel");n.current={onKeyDown:function(p){return Th(p,{onLeftRight:function(v){c(o.addMonth(i||a,v),"key")},onCtrlLeftRight:function(v){c(o.addYear(i||a,v),"key")},onUpDown:function(v){c(o.addMonth(i||a,v*e3),"key")},onEnter:function(){s("date",i||a)}})}};var d=function(p){var g=o.addYear(a,p);r(g),s(null,g)};return l.createElement("div",{className:u},l.createElement(Sce,Re({},e,{prefixCls:t,onPrevYear:function(){d(-1)},onNextYear:function(){d(1)},onYearClick:function(){s("year",a)}})),l.createElement(Ece,Re({},e,{prefixCls:t,onSelect:function(p){c(p,"mouse"),s("date",p)}})))}function Oce(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,o=e.viewDate,i=e.onNextYear,a=e.onPrevYear,s=e.onYearClick,c=l.useContext(la),u=c.hideHeader;if(u)return null;var d="".concat(t,"-header");return l.createElement(Ph,Re({},e,{prefixCls:d,onSuperPrev:a,onSuperNext:i}),l.createElement("button",{type:"button",onClick:s,className:"".concat(t,"-year-btn")},oi(o,{locale:r,format:r.yearFormat,generateConfig:n})))}var Ice=4,Rce=1;function Nce(e){var t=e.prefixCls,n=e.locale,r=e.value,o=e.viewDate,i=e.generateConfig,a=e.cellRender,s=l.useContext(wd),c=s.rangedValue,u=s.hoverRangedValue,d="".concat(t,"-cell"),f=Fb({cellPrefixCls:d,value:r,generateConfig:i,rangedValue:c,hoverRangedValue:u,isSameCell:function(y,S){return CA(i,y,S)},isInView:function(){return!0},offsetCell:function(y,S){return i.addMonth(y,S*3)}}),p=i.setDate(i.setMonth(o,0),1),g=a?function(v,y){return a(v,{originNode:y,locale:n,today:i.getNow(),type:"quarter"})}:void 0;return l.createElement(Ng,Re({},e,{rowNum:Rce,colNum:Ice,baseDate:p,getCellNode:g,getCellText:function(y){return oi(y,{locale:n,format:n.quarterFormat||"[Q]Q",generateConfig:i})},getCellClassName:f,getCellDate:function(y,S){return i.addMonth(y,S*3)},titleCell:function(y){return oi(y,{locale:n,format:"YYYY-[Q]Q",generateConfig:i})}}))}function _ce(e){var t=e.prefixCls,n=e.operationRef,r=e.onViewDateChange,o=e.generateConfig,i=e.value,a=e.viewDate,s=e.onPanelChange,c=e.onSelect,u="".concat(t,"-quarter-panel");n.current={onKeyDown:function(p){return Th(p,{onLeftRight:function(v){c(o.addMonth(i||a,v*3),"key")},onCtrlLeftRight:function(v){c(o.addYear(i||a,v),"key")},onUpDown:function(v){c(o.addYear(i||a,v),"key")}})}};var d=function(p){var g=o.addYear(a,p);r(g),s(null,g)};return l.createElement("div",{className:u},l.createElement(Oce,Re({},e,{prefixCls:t,onPrevYear:function(){d(-1)},onNextYear:function(){d(1)},onYearClick:function(){s("year",a)}})),l.createElement(Nce,Re({},e,{prefixCls:t,onSelect:function(p){c(p,"mouse")}})))}function Tce(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,o=e.value,i=e.disabledDate,a=e.onSelect,s=l.useContext(wd),c=s.rangedValue,u=s.hoverRangedValue,d=l.useContext(la),f=d.onDateMouseEnter,p=d.onDateMouseLeave,g=u?.[0]||c?.[0],v=u?.[1]||c?.[1],y="".concat(t,"-cell"),S=function(E){var $=h1({cellDate:E,mode:"week",disabledDate:i,generateConfig:n});return l.createElement("td",{key:"week",className:ne(y,"".concat(y,"-week")),onClick:function(){$||a(E,"mouse")},onMouseEnter:function(){!$&&f&&f(E)},onMouseLeave:function(){!$&&p&&p(E)}},l.createElement("div",{className:"".concat(y,"-inner")},n.locale.getWeek(r.locale,E)))},b="".concat(t,"-week-panel-row"),x=function(E){var $,O=ay(n,r.locale,g,E),I=ay(n,r.locale,v,E);return ne(b,($={},ae($,"".concat(b,"-selected"),!c&&ay(n,r.locale,o,E)),ae($,"".concat(b,"-range-start"),O),ae($,"".concat(b,"-range-end"),I),ae($,"".concat(b,"-range-hover"),!O&&!I&&Yp(n,g,v,E)),$))};return l.createElement(J4,Re({},e,{panelName:"week",prefixColumn:S,rowClassName:x,keyboardConfig:{onLeftRight:null},isSameCell:function(){return!1}}))}var Yc=10;function Pce(e){var t=e.prefixCls,n=e.generateConfig,r=e.viewDate,o=e.onPrevDecade,i=e.onNextDecade,a=e.onDecadeClick,s=l.useContext(la),c=s.hideHeader;if(c)return null;var u="".concat(t,"-header"),d=n.getYear(r),f=Math.floor(d/Yc)*Yc,p=f+Yc-1;return l.createElement(Ph,Re({},e,{prefixCls:u,onSuperPrev:o,onSuperNext:i}),l.createElement("button",{type:"button",onClick:a,className:"".concat(t,"-decade-btn")},f,"-",p))}var lE=3,w6=4;function jce(e){var t=e.prefixCls,n=e.value,r=e.viewDate,o=e.locale,i=e.generateConfig,a=e.cellRender,s=l.useContext(wd),c=s.rangedValue,u=s.hoverRangedValue,d="".concat(t,"-cell"),f=i.getYear(r),p=Math.floor(f/Yc)*Yc,g=p+Yc-1,v=i.setYear(r,p-Math.ceil((lE*w6-Yc)/2)),y=i.getNow(),S=function(E){var $=i.getYear(E);return p<=$&&$<=g},b=Fb({cellPrefixCls:d,value:n,generateConfig:i,rangedValue:c,hoverRangedValue:u,isSameCell:function(E,$){return Rg(i,E,$)},isInView:S,offsetCell:function(E,$){return i.addYear(E,$)}}),x=a?function(C,E){return a(C,{originNode:E,today:y,type:"year",locale:o})}:void 0;return l.createElement(Ng,Re({},e,{rowNum:w6,colNum:lE,baseDate:v,getCellNode:x,getCellText:i.getYear,getCellClassName:b,getCellDate:i.addYear,titleCell:function(E){return oi(E,{locale:o,format:"YYYY",generateConfig:i})}}))}function Mce(e){var t=e.prefixCls,n=e.operationRef,r=e.onViewDateChange,o=e.generateConfig,i=e.value,a=e.viewDate,s=e.sourceMode,c=e.onSelect,u=e.onPanelChange,d="".concat(t,"-year-panel");n.current={onKeyDown:function(g){return Th(g,{onLeftRight:function(y){c(o.addYear(i||a,y),"key")},onCtrlLeftRight:function(y){c(o.addYear(i||a,y*Yc),"key")},onUpDown:function(y){c(o.addYear(i||a,y*lE),"key")},onEnter:function(){u(s==="date"?"date":"month",i||a)}})}};var f=function(g){var v=o.addYear(a,g*10);r(v),u(null,v)};return l.createElement("div",{className:d},l.createElement(Pce,Re({},e,{prefixCls:t,onPrevDecade:function(){f(-1)},onNextDecade:function(){f(1)},onDecadeClick:function(){u("decade",a)}})),l.createElement(jce,Re({},e,{prefixCls:t,onSelect:function(g){u(s==="date"?"date":"month",g),c(g,"mouse")}})))}function kA(e,t,n){return n?l.createElement("div",{className:"".concat(e,"-footer-extra")},n(t)):null}function DA(e){var t=e.prefixCls,n=e.components,r=n===void 0?{}:n,o=e.needConfirmButton,i=e.onNow,a=e.onOk,s=e.okDisabled,c=e.showNow,u=e.locale,d,f;if(o){var p=r.button||"button";i&&c!==!1&&(d=l.createElement("li",{className:"".concat(t,"-now")},l.createElement("a",{className:"".concat(t,"-now-btn"),onClick:i},u.now))),f=o&&l.createElement("li",{className:"".concat(t,"-ok")},l.createElement(p,{disabled:s,onClick:a},u.ok))}return!d&&!f?null:l.createElement("ul",{className:"".concat(t,"-ranges")},d,f)}var kce=["date","month"];function AA(e){var t,n=e,r=n.prefixCls,o=r===void 0?"rc-picker":r,i=n.className,a=n.style,s=n.locale,c=n.generateConfig,u=n.value,d=n.defaultValue,f=n.pickerValue,p=n.defaultPickerValue,g=n.disabledDate,v=n.mode,y=n.picker,S=y===void 0?"date":y,b=n.tabIndex,x=b===void 0?0:b,C=n.showNow,E=n.showTime,$=n.showToday,O=n.renderExtraFooter,I=n.hideHeader,N=n.onSelect,_=n.onChange,T=n.onPanelChange,D=n.onMouseDown,j=n.onPickerValueChange,P=n.onOk,M=n.components,A=n.direction,B=n.hourStep,F=B===void 0?1:B,H=n.minuteStep,W=H===void 0?1:H,V=n.secondStep,K=V===void 0?1:V,G=n.dateRender,re=n.monthCellRender,Q=n.cellRender,fe=S==="date"&&!!E||S==="time",se=24%F===0,oe=60%W===0,ie=60%K===0,ge=l.useContext(la),ve=ge.operationRef,he=ge.onSelect,be=ge.hideRanges,ye=ge.defaultOpenValue,Ce=l.useContext(wd),Ee=Ce.inRange,je=Ce.panelPosition,De=Ce.rangedValue,_e=Ce.hoverRangedValue,Me=l.useRef({}),Ie=l.useRef(!0),Fe=Vn(null,{value:u,defaultValue:d,postState:function(pt){return!pt&&ye&&S==="time"?ye:pt}}),Ge=me(Fe,2),ft=Ge[0],it=Ge[1],qe=Vn(null,{value:f,defaultValue:p||ft,postState:function(pt){var Nt=c.getNow();if(!pt)return Nt;if(!ft&&E){var Pt=Wt(E)==="object"?E.defaultValue:d;return jA(c,Array.isArray(pt)?pt[0]:pt,Pt||Nt)}return Array.isArray(pt)?pt[0]:pt}}),at=me(qe,2),U=at[0],k=at[1],L=function(pt){k(pt),j&&j(pt)},X=function(pt){var Nt=ace[S];return Nt?Nt(pt):pt},ee=Vn(function(){return S==="time"?"time":X("date")},{value:v}),$e=me(ee,2),we=$e[0],de=$e[1];l.useEffect(function(){de(S)},[S]);var Se=l.useState(function(){return we}),Ae=me(Se,2),We=Ae[0],Ke=Ae[1],tt=function(pt,Nt){var Pt=X(pt||we);Ke(we),de(Pt),T&&(we!==Pt||oh(c,U,U))&&T(Nt,Pt)},pe=function(pt,Nt){var Pt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(we===S||Pt)&&(it(pt),N&&N(pt),he&&he(pt,Nt),_&&!oh(c,pt,ft)&&!(g!=null&&g(pt))&&_(pt))},Te=function(pt){if(kce.includes(we)){var Nt,Pt,_t=we==="date";switch(pt===He.PAGE_UP||pt===He.PAGE_DOWN?Pt=_t?c.addMonth:c.addYear:Pt=_t?c.addDate:c.addMonth,pt){case He.LEFT:case He.PAGE_UP:Nt=Pt(U,-1);break;case He.RIGHT:case He.PAGE_DOWN:Nt=Pt(U,1);break;case He.UP:case He.DOWN:Nt=Pt(U,Number("".concat(pt===He.UP?"-":"").concat(_t?hm:e3)));break}if(Nt)return!(g!=null&&g(Nt))}return!0},ze=function(pt){if(Me.current&&Me.current.onKeyDown){var Nt=!0,Pt=pt.which;if([He.LEFT,He.RIGHT,He.UP,He.DOWN,He.PAGE_UP,He.PAGE_DOWN,He.ENTER].includes(Pt)&&(pt.preventDefault(),Pt!==He.ENTER&&x===0&&(Nt=Te(Pt))),Nt)return Me.current.onKeyDown(pt)}return dr(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1},ke=function(pt){Me.current&&Me.current.onBlur&&Me.current.onBlur(pt)};ve&&je!=="right"&&(ve.current={onKeyDown:ze,onClose:function(){Me.current&&Me.current.onClose&&Me.current.onClose()}}),l.useEffect(function(){u&&!Ie.current&&k(u)},[u]),l.useEffect(function(){Ie.current=!1},[]);var et,mt=NA({cellRender:Q,monthCellRender:re,dateRender:G}),Ve=le(le({},e),{},{cellRender:mt,operationRef:Me,prefixCls:o,viewDate:U,value:ft,onViewDateChange:L,sourceMode:We,onPanelChange:tt,disabledDate:g});switch(delete Ve.onChange,delete Ve.onSelect,we){case"decade":et=l.createElement(wce,Re({},Ve,{onSelect:function(pt,Nt){L(pt),pe(pt,Nt)}}));break;case"year":et=l.createElement(Mce,Re({},Ve,{onSelect:function(pt,Nt){L(pt),pe(pt,Nt)}}));break;case"month":et=l.createElement($ce,Re({},Ve,{onSelect:function(pt,Nt){L(pt),pe(pt,Nt)}}));break;case"quarter":et=l.createElement(_ce,Re({},Ve,{onSelect:function(pt,Nt){L(pt),pe(pt,Nt)}}));break;case"week":et=l.createElement(Tce,Re({},Ve,{onSelect:function(pt,Nt){L(pt),pe(pt,Nt)}}));break;case"time":delete Ve.showTime,et=l.createElement(MA,Re({},Ve,Wt(E)==="object"?E:null,{onSelect:function(pt,Nt){L(pt),pe(pt,Nt)}}));break;default:E?et=l.createElement(yce,Re({},Ve,{onSelect:function(pt,Nt){L(pt),pe(pt,Nt)}})):et=l.createElement(J4,Re({},Ve,{onSelect:function(pt,Nt){L(pt),pe(pt,Nt)}}))}var rt,Ue,Je=function(){var pt=c.getNow(),Nt=lce(c.getHour(pt),c.getMinute(pt),c.getSecond(pt),se?F:1,oe?W:1,ie?K:1),Pt=PA(c,pt,Nt[0],Nt[1],Nt[2]);pe(Pt,"submit")};be||(rt=kA(o,we,O),E&&we!=="date"?Ue=null:Ue=DA({prefixCls:o,components:M,needConfirmButton:fe,okDisabled:!ft||g&&g(ft),locale:s,showNow:C,onNow:fe&&Je,onOk:function(){ft&&(pe(ft,"submit",!0),P&&P(ft))}}));var ht;if($&&we==="date"&&S==="date"&&!E){var gt=c.getNow(),It="".concat(o,"-today-btn"),Et=g&&g(gt);ht=l.createElement("a",{className:ne(It,Et&&"".concat(It,"-disabled")),"aria-disabled":Et,onClick:function(){Et||pe(gt,"mouse",!0)}},s.today)}return l.createElement(la.Provider,{value:le(le({},ge),{},{mode:we,hideHeader:"hideHeader"in e?I:ge.hideHeader,hidePrevBtn:Ee&&je==="right",hideNextBtn:Ee&&je==="left"})},l.createElement("div",{tabIndex:x,className:ne("".concat(o,"-panel"),i,(t={},ae(t,"".concat(o,"-panel-has-range"),De&&De[0]&&De[1]),ae(t,"".concat(o,"-panel-has-range-hover"),_e&&_e[0]&&_e[1]),ae(t,"".concat(o,"-panel-rtl"),A==="rtl"),t)),style:a,onKeyDown:ze,onBlur:ke,onMouseDown:D},et,rt||Ue||ht?l.createElement("div",{className:"".concat(o,"-footer")},rt,Ue,ht):null))}var Dce={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function LA(e){var t,n=e.prefixCls,r=e.popupElement,o=e.popupStyle,i=e.visible,a=e.dropdownClassName,s=e.dropdownAlign,c=e.transitionName,u=e.getPopupContainer,d=e.children,f=e.range,p=e.popupPlacement,g=e.direction,v="".concat(n,"-dropdown"),y=function(){return p!==void 0?p:g==="rtl"?"bottomRight":"bottomLeft"};return l.createElement(Eg,{showAction:[],hideAction:[],popupPlacement:y(),builtinPlacements:Dce,prefixCls:v,popupTransitionName:c,popup:r,popupAlign:s,popupVisible:i,popupClassName:ne(a,(t={},ae(t,"".concat(v,"-range"),f),ae(t,"".concat(v,"-rtl"),g==="rtl"),t)),popupStyle:o,getPopupContainer:u},d)}function FA(e){var t=e.prefixCls,n=e.presets,r=e.onClick,o=e.onHover;return n.length?l.createElement("div",{className:"".concat(t,"-presets")},l.createElement("ul",null,n.map(function(i,a){var s=i.label,c=i.value;return l.createElement("li",{key:a,onClick:function(){return r?.(y6(c))},onMouseEnter:function(){return o?.(y6(c))},onMouseLeave:function(){return o?.(null)}},s)}))):null}function zA(e,t,n){var r=Wt(t)==="object"?t.clearIcon:n;return r||Ne.createElement("span",{className:"".concat(e,"-clear-btn")})}function Ace(e){var t,n=e,r=n.prefixCls,o=r===void 0?"rc-picker":r,i=n.id,a=n.name,s=n.tabIndex,c=n.style,u=n.className,d=n.dropdownClassName,f=n.dropdownAlign,p=n.popupStyle,g=n.transitionName,v=n.generateConfig,y=n.locale,S=n.inputReadOnly,b=n.allowClear,x=n.autoFocus,C=n.showTime,E=n.picker,$=E===void 0?"date":E,O=n.format,I=n.use12Hours,N=n.value,_=n.defaultValue,T=n.presets,D=n.open,j=n.defaultOpen,P=n.defaultOpenValue,M=n.suffixIcon,A=n.clearIcon,B=n.disabled,F=n.disabledDate,H=n.placeholder,W=n.getPopupContainer,V=n.pickerRef,K=n.panelRender,G=n.onChange,re=n.onOpenChange,Q=n.onFocus,fe=n.onBlur,se=n.onMouseDown,oe=n.onMouseUp,ie=n.onMouseEnter,ge=n.onMouseLeave,ve=n.onContextMenu,he=n.onClick,be=n.onKeyDown,ye=n.onSelect,Ce=n.direction,Ee=n.autoComplete,je=Ee===void 0?"off":Ee,De=n.inputRender,_e=n.changeOnBlur,Me=l.useRef(null),Ie=$==="date"&&!!C||$==="time",Fe=RA(T),Ge=TA($A(O,$,C,I)),ft=l.useRef(null),it=l.useRef(null),qe=l.useRef(null),at=Vn(null,{value:N,defaultValue:_}),U=me(at,2),k=U[0],L=U[1],X=l.useState(k),ee=me(X,2),$e=ee[0],we=ee[1],de=l.useRef(null),Se=Vn(!1,{value:D,defaultValue:j,postState:function(Tt){return B?!1:Tt},onChange:function(Tt){re&&re(Tt),!Tt&&de.current&&de.current.onClose&&de.current.onClose()}}),Ae=me(Se,2),We=Ae[0],Ke=Ae[1],tt=p1($e,{formatList:Ge,generateConfig:v,locale:y}),pe=me(tt,2),Te=pe[0],ze=pe[1],ke=aE({valueTexts:Te,onTextChange:function(Tt){var On=EA(Tt,{locale:y,formatList:Ge,generateConfig:v});On&&(!F||!F(On))&&we(On)}}),et=me(ke,3),mt=et[0],Ve=et[1],rt=et[2],Ue=function(Tt){we(Tt),L(Tt),G&&!oh(v,k,Tt)&&G(Tt,Tt?oi(Tt,{generateConfig:v,locale:y,format:Ge[0]}):"")},Je=function(Tt){B&&Tt||Ke(Tt)},ht=function(Tt){return We&&de.current&&de.current.onKeyDown?de.current.onKeyDown(Tt):(dr(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},gt=function(){for(var Tt=arguments.length,On=new Array(Tt),Nn=0;Nnp(u);case"month":return f(y)>f(u);case"week":return d(y)>d(u);default:return!Xl(s,y,u)&&s.isAfter(y,u)}return!1},[i,a[1],u,t]),v=l.useCallback(function(y){if(a[1]||i&&i(y))return!0;if(a[0]&&c)return!Xl(s,y,u)&&s.isAfter(c,y);if(!t&&c)switch(n){case"quarter":return p(y)0&&arguments[0]!==void 0?arguments[0]:!1,Dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Zt=null;st&&Si&&Si[0]&&Si[1]&&y.isAfter(Si[1],Si[0])&&(Zt=Si);var Dn=I;if(I&&Wt(I)==="object"&&I.defaultValue){var pr=I.defaultValue;Dn=le(le({},I),{},{defaultValue:jn(pr,nt)||void 0})}return l.createElement(wd.Provider,{value:{inRange:!0,panelPosition:In,rangedValue:Jo||xt,hoverRangedValue:Zt}},l.createElement(AA,Re({},e,Dt,{cellRender:Vi,showTime:Dn,mode:_t[nt],generateConfig:y,style:void 0,direction:U,disabledDate:nt===0?Gn:Vr,disabledTime:function(ua){return F?F(ua,nt===0?"start":"end"):!1},className:ne(ae({},"".concat(a,"-panel-focused"),nt===0?!ms:!Xh)),value:jn(xt,nt),locale:S,tabIndex:-1,onPanelChange:function(ua,vs){nt===0&&tr(!0),nt===1&&xc(!0),gn(Va(_t,vs,nt),Va(xt,ua,nt));var to=ua;In==="right"&&_t[nt]===vs&&(to=pm(to,vs,y,-1)),gt(to,nt)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:nt===0?jn(xt,1):jn(xt,0)})))}var ei=0,yu=0;if(nt&&Se.current&&We.current&&de.current&&pe.current){ei=Se.current.offsetWidth+We.current.offsetWidth;var Zh=pe.current.offsetLeft>ei?pe.current.offsetLeft-ei:pe.current.offsetLeft,Er=de.current.offsetWidth,gs=pe.current.offsetWidth;Er&&gs&&ei>Er-gs-(U==="rtl"?0:Zh)&&(yu=ei)}var Jh=U==="rtl"?{right:ei}:{left:ei};function Nx(){var In,Dt=kA(a,_t[nt],he),Zt=DA({prefixCls:a,components:qe,needConfirmButton:$e,okDisabled:!jn(xt,nt)||B&&B(xt[nt]),locale:S,onOk:function(){var Ki=jn(xt,nt);Ki&&(Nn(xt,nt),ft?.(xt),nn(!1,nt,"confirm"))}});if(O!=="time"&&!I){var Dn=ht(nt),pr=pm(Dn,O,y),Zs=_t[nt],ua=Zs===O,vs=Cd(ua?"left":!1,{pickerValue:Dn,onPickerValueChange:function(Ki){gt(Ki,nt)}}),to=Cd("right",{pickerValue:pr,onPickerValueChange:function(Ki){gt(pm(Ki,O,y,-1),nt)}});U==="rtl"?In=l.createElement(l.Fragment,null,to,ua&&vs):In=l.createElement(l.Fragment,null,vs,ua&&to)}else In=Cd();var Cl=l.createElement("div",{className:"".concat(a,"-panel-layout")},l.createElement(FA,{prefixCls:a,presets:Rx,onClick:function(Ki){Nn(Ki,null),nn(!1,nt,"preset")},onHover:function(Ki){ca(Ki)}}),l.createElement("div",null,l.createElement("div",{className:"".concat(a,"-panels")},In),(Dt||Zt)&&l.createElement("div",{className:"".concat(a,"-footer")},Dt,Zt)));return K&&(Cl=K(Cl)),l.createElement("div",{className:"".concat(a,"-panel-container"),style:{marginLeft:yu},ref:de,onMouseDown:function(Ki){Ki.preventDefault()}},Cl)}var ep=l.createElement("div",{className:ne("".concat(a,"-range-wrapper"),"".concat(a,"-").concat(O,"-range-wrapper")),style:{minWidth:rn}},l.createElement("div",{ref:pe,className:"".concat(a,"-range-arrow"),style:Jh}),Nx()),Qg;se&&(Qg=l.createElement("span",{className:"".concat(a,"-suffix"),onMouseDown:function(Dt){Dt.preventDefault()}},se));var _x=zA(a,fe,oe),Tx=l.createElement("span",{onMouseDown:function(Dt){Dt.preventDefault(),Dt.stopPropagation()},onMouseUp:function(Dt){Dt.preventDefault(),Dt.stopPropagation();var Zt=Ve;ke[0]||(Zt=Va(Zt,null,0)),ke[1]||(Zt=Va(Zt,null,1)),Nn(Zt,null),nn(!1,nt,"clear")},className:"".concat(a,"-clear"),role:"button"},_x),Zg=fe&&(jn(Ve,0)&&!ke[0]||jn(Ve,1)&&!ke[1]),bu={size:OA(O,Te[0],y)},Qs=0,tp=0;Se.current&&Ae.current&&We.current&&(nt===0?tp=Se.current.offsetWidth:(Qs=ei,tp=Ae.current.offsetWidth));var Jg=U==="rtl"?{right:Qs}:{left:Qs},ev=function(Dt,Zt){var Dn=Va(xt,Dt,nt);if(Zt==="submit"||Zt!=="key"&&!$e){Nn(Dn,nt),nt===0?tr():xc();var pr=nt===0?1:0;ke[pr]?nn(!1,!1,"confirm"):nn(!1,nt,"confirm")}else pt(Dn)};return l.createElement(la.Provider,{value:{operationRef:ze,hideHeader:O==="time",onDateMouseEnter:Sd,onDateMouseLeave:Gh,hideRanges:!0,onSelect:ev,open:st}},l.createElement(LA,{visible:st,popupElement:ep,popupStyle:d,prefixCls:a,dropdownClassName:f,dropdownAlign:g,getPopupContainer:v,transitionName:p,range:!0,direction:U},l.createElement("div",Re({ref:we,className:ne(a,"".concat(a,"-range"),u,(t={},ae(t,"".concat(a,"-disabled"),ke[0]&&ke[1]),ae(t,"".concat(a,"-focused"),nt===0?Ko:qh),ae(t,"".concat(a,"-rtl"),U==="rtl"),t)),style:c,onClick:Yg,onMouseEnter:Ie,onMouseLeave:Fe,onMouseDown:qg,onMouseUp:Me},sa(e,{aria:!0,data:!0})),l.createElement("div",{className:ne("".concat(a,"-input"),(n={},ae(n,"".concat(a,"-input-active"),nt===0),ae(n,"".concat(a,"-input-placeholder"),!!sr),n)),ref:Se},l.createElement("input",Re({id:s,disabled:ke[0],readOnly:ge||typeof Te[0]=="function"||!ms,value:sr||_n,onChange:function(Dt){Bn(Dt.target.value)},autoFocus:x,placeholder:jn(b,0)||"",ref:Ke},Gg,bu,{autoComplete:X}))),l.createElement("div",{className:"".concat(a,"-range-separator"),ref:We},T),l.createElement("div",{className:ne("".concat(a,"-input"),(r={},ae(r,"".concat(a,"-input-active"),nt===1),ae(r,"".concat(a,"-input-placeholder"),!!Sl),r)),ref:Ae},l.createElement("input",Re({disabled:ke[1],readOnly:ge||typeof Te[0]=="function"||!Xh,value:Sl||Sn,onChange:function(Dt){wo(Dt.target.value)},placeholder:jn(b,1)||"",ref:tt},Wi,bu,{autoComplete:X}))),l.createElement("div",{className:"".concat(a,"-active-bar"),style:le(le({},Jg),{},{width:tp,position:"absolute"})}),Qg,Zg&&Tx)))}var Vce=function(e){ss(n,e);var t=ls(n);function n(){var r;vo(this,n);for(var o=arguments.length,i=new Array(o),a=0;a{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},En(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},Xce=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:i,motionDurationMid:a,motionEaseInOutCirc:s,colorBgContainer:c,colorBorder:u,lineWidth:d,dotSize:f,colorBgContainerDisabled:p,colorTextDisabled:g,paddingXS:v,dotColorDisabled:y,lineType:S,radioDotDisabledSize:b,wireframe:x,colorWhite:C}=e,E=`${t}-inner`;return{[`${t}-wrapper`]:Object.assign(Object.assign({},En(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${d}px ${S} ${r}`,borderRadius:"50%",visibility:"hidden",content:'""'},[t]:Object.assign(Object.assign({},En(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &, &:hover ${E}`]:{borderColor:r},[`${t}-input:focus-visible + ${E}`]:Object.assign({},vl(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:o,height:o,marginBlockStart:o/-2,marginInlineStart:o/-2,backgroundColor:x?r:C,borderBlockStart:0,borderInlineStart:0,borderRadius:o,transform:"scale(0)",opacity:0,transition:`all ${i} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:o,height:o,backgroundColor:c,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[E]:{borderColor:r,backgroundColor:x?c:r,"&::after":{transform:`scale(${f/o})`,opacity:1,transition:`all ${i} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[E]:{backgroundColor:p,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:y}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:g,cursor:"not-allowed"},[`&${t}-checked`]:{[E]:{"&::after":{transform:`scale(${b/o})`}}}},[`span${t} + *`]:{paddingInlineStart:v,paddingInlineEnd:v}})}},Qce=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:a,motionDurationSlow:s,motionDurationMid:c,buttonPaddingInline:u,fontSize:d,buttonBg:f,fontSizeLG:p,controlHeightLG:g,controlHeightSM:v,paddingXS:y,borderRadius:S,borderRadiusSM:b,borderRadiusLG:x,buttonCheckedBg:C,buttonSolidCheckedColor:E,colorTextDisabled:$,colorBgContainerDisabled:O,buttonCheckedBgDisabled:I,buttonCheckedColorDisabled:N,colorPrimary:_,colorPrimaryHover:T,colorPrimaryActive:D}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:u,paddingBlock:0,color:t,fontSize:d,lineHeight:`${n-o*2}px`,background:f,border:`${o}px ${i} ${a}`,borderBlockStartWidth:o+.02,borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`box-shadow ${c}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-o,insetInlineStart:-o,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:a,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${o}px ${i} ${a}`,borderStartStartRadius:S,borderEndStartRadius:S},"&:last-child":{borderStartEndRadius:S,borderEndEndRadius:S},"&:first-child:last-child":{borderRadius:S},[`${r}-group-large &`]:{height:g,fontSize:p,lineHeight:`${g-o*2}px`,"&:first-child":{borderStartStartRadius:x,borderEndStartRadius:x},"&:last-child":{borderStartEndRadius:x,borderEndEndRadius:x}},[`${r}-group-small &`]:{height:v,paddingInline:y-o,paddingBlock:0,lineHeight:`${v-o*2}px`,"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},"&:hover":{position:"relative",color:_},"&:has(:focus-visible)":Object.assign({},vl(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:_,background:C,borderColor:_,"&::before":{backgroundColor:_},"&:first-child":{borderColor:_},"&:hover":{color:T,borderColor:T,"&::before":{backgroundColor:T}},"&:active":{color:D,borderColor:D,"&::before":{backgroundColor:D}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:E,background:_,borderColor:_,"&:hover":{color:E,background:T,borderColor:T},"&:active":{color:E,background:D,borderColor:D}},"&-disabled":{color:$,backgroundColor:O,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:$,backgroundColor:O,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:N,backgroundColor:I,borderColor:a,boxShadow:"none"}}}},E6=e=>e-4*2,WA=Pn("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n,radioSize:r}=e,o=`0 0 0 ${n}px ${t}`,i=o,a=E6(r),s=sn(e,{radioDotDisabledSize:a,radioFocusShadow:o,radioButtonFocusShadow:i});return[qce(s),Xce(s),Qce(s)]},e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:i,colorText:a,colorBgContainer:s,colorTextDisabled:c,controlItemBgActiveDisabled:u,colorTextLightSolid:d}=e,f=4,p=i,g=t?E6(p):p-(f+o)*2;return{radioSize:p,dotSize:g,dotColorDisabled:c,buttonSolidCheckedColor:d,buttonBg:s,buttonCheckedBg:s,buttonColor:a,buttonCheckedBgDisabled:u,buttonCheckedColorDisabled:c,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r}});var Zce=globalThis&&globalThis.__rest||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 o=l.useContext(BA),i=l.useContext(HA),{getPrefixCls:a,direction:s,radio:c}=l.useContext(St),u=l.useRef(null),d=li(t,u),{isFormItemInput:f}=l.useContext(Ai),p=D=>{var j,P;(j=e.onChange)===null||j===void 0||j.call(e,D),(P=o?.onChange)===null||P===void 0||P.call(o,D)},{prefixCls:g,className:v,rootClassName:y,children:S,style:b}=e,x=Zce(e,["prefixCls","className","rootClassName","children","style"]),C=a("radio",g),E=(o?.optionType||i)==="button",$=E?`${C}-button`:C,[O,I]=WA(C),N=Object.assign({},x),_=l.useContext(cs);o&&(N.name=o.name,N.onChange=p,N.checked=e.value===o.value,N.disabled=(n=N.disabled)!==null&&n!==void 0?n:o.disabled),N.disabled=(r=N.disabled)!==null&&r!==void 0?r:_;const T=ne(`${$}-wrapper`,{[`${$}-wrapper-checked`]:N.checked,[`${$}-wrapper-disabled`]:N.disabled,[`${$}-wrapper-rtl`]:s==="rtl",[`${$}-wrapper-in-form-item`]:f},c?.className,v,y,I);return O(l.createElement(vg,{component:"Radio",disabled:N.disabled},l.createElement("label",{className:T,style:Object.assign(Object.assign({},c?.style),b),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},l.createElement(UA,Object.assign({},N,{className:ne(N.className,!E&&wb),type:"radio",prefixCls:$,ref:d})),S!==void 0?l.createElement("span",null,S):null)))},eue=l.forwardRef(Jce),m1=eue,tue=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=l.useContext(St),[o,i]=Vn(e.defaultValue,{value:e.value}),a=j=>{const P=o,M=j.target.value;"value"in e||i(M);const{onChange:A}=e;A&&M!==P&&A(j)},{prefixCls:s,className:c,rootClassName:u,options:d,buttonStyle:f="outline",disabled:p,children:g,size:v,style:y,id:S,onMouseEnter:b,onMouseLeave:x,onFocus:C,onBlur:E}=e,$=n("radio",s),O=`${$}-group`,[I,N]=WA($);let _=g;d&&d.length>0&&(_=d.map(j=>typeof j=="string"||typeof j=="number"?l.createElement(m1,{key:j.toString(),prefixCls:$,disabled:p,value:j,checked:o===j},j):l.createElement(m1,{key:`radio-group-value-options-${j.value}`,prefixCls:$,disabled:j.disabled||p,value:j.value,checked:o===j.value,title:j.title,style:j.style},j.label)));const T=Zo(v),D=ne(O,`${O}-${f}`,{[`${O}-${T}`]:T,[`${O}-rtl`]:r==="rtl"},c,u,N);return I(l.createElement("div",Object.assign({},sa(e,{aria:!0,data:!0}),{className:D,style:y,onMouseEnter:b,onMouseLeave:x,onFocus:C,onBlur:E,id:S,ref:t}),l.createElement(Kce,{value:{onChange:a,value:o,disabled:e.disabled,name:e.name,optionType:e.optionType}},_)))}),nue=l.memo(tue);var rue=globalThis&&globalThis.__rest||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}=l.useContext(St),{prefixCls:r}=e,o=rue(e,["prefixCls"]),i=n("radio",r);return l.createElement(Gce,{value:"button"},l.createElement(m1,Object.assign({prefixCls:i},o,{type:"radio",ref:t})))},iue=l.forwardRef(oue),zb=m1;zb.Button=iue;zb.Group=nue;zb.__ANT_RADIO=!0;const xa=zb,VA=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),jh=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),dd=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),t3=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},jh(sn(e,{inputBorderHoverColor:e.colorBorder})))}),KA=e=>{const{inputPaddingVerticalLG:t,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:o,inputPaddingHorizontalLG:i}=e;return{padding:`${t}px ${i}px`,fontSize:n,lineHeight:r,borderRadius:o}},n3=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),Bb=(e,t)=>{const{componentCls:n,colorError:r,colorWarning:o,colorErrorOutline:i,colorWarningOutline:a,colorErrorBorderHover:s,colorWarningBorderHover:c}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:s},"&:focus, &-focused":Object.assign({},dd(sn(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:i}))),[`${n}-prefix, ${n}-suffix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:c},"&:focus, &-focused":Object.assign({},dd(sn(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:a}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},Mh=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,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}`},VA(e.colorTextPlaceholder)),{"&:hover":Object.assign({},jh(e)),"&:focus, &-focused":Object.assign({},dd(e)),"&-disabled, &[disabled]":Object.assign({},t3(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({},KA(e)),"&-sm":Object.assign({},n3(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),GA=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({},KA(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},n3(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 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,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"},sc()),{[`${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.lineWidth,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.lineWidth,[`${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}}}})}},aue=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r}=e,o=16,i=(n-r*2-o)/2;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},En(e)),Mh(e)),Bb(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},sue=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 ${e.inputAffixPadding}px`}}}},lue=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:s}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Mh(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},jh(e)),{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}}}),sue(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),Bb(e,`${t}-affix-wrapper`))}},cue=e=>{const{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:i}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},En(e)),GA(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({},t3(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}}}})}},uue=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.lineHeightLG-2e-4},[`> ${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},[`${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.lineWidth,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}}}}};function _g(e){return sn(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}const due=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.fontSize*e.lineHeight,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.inputPaddingHorizontal,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},r3=Pn("Input",e=>{const t=_g(e);return[aue(t),due(t),lue(t),cue(t),uue(t),yg(t)]}),$S=(e,t,n,r)=>{const{lineHeight:o}=e,i=Math.floor(n*o)+2,a=Math.max((t-i)/2,0),s=Math.max(t-i-a,0);return{padding:`${a}px ${r}px ${s}px`}},fue=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerPanelCellHeight:o,motionDurationSlow:i,borderRadiusSM:a,motionDurationMid:s,controlItemBgHover:c,lineWidth:u,lineType:d,colorPrimary:f,controlItemBgActive:p,colorTextLightSolid:g,controlHeightSM:v,pickerDateHoverRangeBorderColor:y,pickerCellBorderGap:S,pickerBasicCellHoverWithRangeColor:b,pickerPanelCellWidth:x,colorTextDisabled:C,colorBgContainerDisabled:E}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:o,transform:"translateY(-50%)",transition:`all ${i}`,content:'""'},[r]:{position:"relative",zIndex:2,display:"inline-block",minWidth:o,height:o,lineHeight:`${o}px`,borderRadius:a,transition:`background ${s}, border ${s}`},"&-range-hover-start, &-range-hover-end":{[r]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:hover:not(${n}-in-view), &:hover:not(${n}-selected):not(${n}-range-start):not(${n}-range-end):not(${n}-range-hover-start):not(${n}-range-hover-end)`]:{[r]:{background:c}},[`&-in-view${n}-today ${r}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${u}px ${d} ${f}`,borderRadius:a,content:'""'}},[`&-in-view${n}-in-range`]:{position:"relative","&::before":{background:p}},[`&-in-view${n}-selected ${r}, &-in-view${n}-range-start ${r}, &-in-view${n}-range-end ${r}`]:{color:g,background:f},[`&-in-view${n}-range-start:not(${n}-range-start-single), &-in-view${n}-range-end:not(${n}-range-end-single)`]:{"&::before":{background:p}},[`&-in-view${n}-range-start::before`]:{insetInlineStart:"50%"},[`&-in-view${n}-range-end::before`]:{insetInlineEnd:"50%"},[`&-in-view${n}-range-hover-start:not(${n}-in-range):not(${n}-range-start):not(${n}-range-end), &-in-view${n}-range-hover-end:not(${n}-in-range):not(${n}-range-start):not(${n}-range-end), &-in-view${n}-range-hover-start${n}-range-start-single, &-in-view${n}-range-hover-start${n}-range-start${n}-range-end${n}-range-end-near-hover, &-in-view${n}-range-hover-end${n}-range-start${n}-range-end${n}-range-start-near-hover, &-in-view${n}-range-hover-end${n}-range-end-single, &-in-view${n}-range-hover:not(${n}-in-range)`]:{"&::after":{position:"absolute",top:"50%",zIndex:0,height:v,borderTop:`${u}px dashed ${y}`,borderBottom:`${u}px dashed ${y}`,transform:"translateY(-50%)",transition:`all ${i}`,content:'""'}},"&-range-hover-start::after,\n &-range-hover-end::after,\n &-range-hover::after":{insetInlineEnd:0,insetInlineStart:S},[`&-in-view${n}-in-range${n}-range-hover::before, &-in-view${n}-in-range${n}-range-hover-start::before, &-in-view${n}-in-range${n}-range-hover-end::before, &-in-view${n}-range-start${n}-range-hover::before, &-in-view${n}-range-end${n}-range-hover::before, &-in-view${n}-range-start:not(${n}-range-start-single)${n}-range-hover-start::before, &-in-view${n}-range-end:not(${n}-range-end-single)${n}-range-hover-end::before, ${t}-panel > :not(${t}-date-panel) &-in-view${n}-in-range${n}-range-hover-start::before, ${t}-panel > :not(${t}-date-panel) &-in-view${n}-in-range${n}-range-hover-end::before`]:{background:b},[`&-in-view${n}-range-start:not(${n}-range-start-single):not(${n}-range-end) ${r}`]:{borderStartStartRadius:a,borderEndStartRadius:a,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${n}-range-end:not(${n}-range-end-single):not(${n}-range-start) ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a},[`&-range-hover${n}-range-end::after`]:{insetInlineStart:"50%"},[`tr > &-in-view${n}-range-hover:first-child::after, tr > &-in-view${n}-range-hover-end:first-child::after, &-in-view${n}-start${n}-range-hover-edge-start${n}-range-hover-edge-start-near-range::after, &-in-view${n}-range-hover-edge-start:not(${n}-range-hover-edge-start-near-range)::after, &-in-view${n}-range-hover-start::after`]:{insetInlineStart:(x-o)/2,borderInlineStart:`${u}px dashed ${y}`,borderStartStartRadius:a,borderEndStartRadius:a},[`tr > &-in-view${n}-range-hover:last-child::after, tr > &-in-view${n}-range-hover-start:last-child::after, &-in-view${n}-end${n}-range-hover-edge-end${n}-range-hover-edge-end-near-range::after, &-in-view${n}-range-hover-edge-end:not(${n}-range-hover-edge-end-near-range)::after, &-in-view${n}-range-hover-end::after`]:{insetInlineEnd:(x-o)/2,borderInlineEnd:`${u}px dashed ${y}`,borderStartEndRadius:a,borderEndEndRadius:a},"&-disabled":{color:C,pointerEvents:"none",[r]:{background:"transparent"},"&::before":{background:E}},[`&-disabled${n}-today ${r}::before`]:{borderColor:C}}},hue=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:o,pickerControlIconSize:i,pickerPanelCellWidth:a,paddingSM:s,paddingXS:c,paddingXXS:u,colorBgContainer:d,lineWidth:f,lineType:p,borderRadiusLG:g,colorPrimary:v,colorTextHeading:y,colorSplit:S,pickerControlIconBorderWidth:b,colorIcon:x,pickerTextHeight:C,motionDurationMid:E,colorIconHover:$,fontWeightStrong:O,pickerPanelCellHeight:I,pickerCellPaddingVertical:N,colorTextDisabled:_,colorText:T,fontSize:D,pickerBasicCellHoverWithRangeColor:j,motionDurationSlow:P,pickerPanelWithoutTimeCellHeight:M,pickerQuarterPanelContentHeight:A,colorLink:B,colorLinkActive:F,colorLinkHover:H,pickerDateHoverRangeBorderColor:W,borderRadiusSM:V,colorTextLightSolid:K,controlItemBgHover:G,pickerTimePanelColumnHeight:re,pickerTimePanelColumnWidth:Q,pickerTimePanelCellHeight:fe,controlItemBgActive:se,marginXXS:oe,pickerDatePanelPaddingHorizontal:ie}=e,ge=a*7+ie*2,ve=(ge-c*2)/3-o-s,he=(ge-c*2)/4-o;return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:d,border:`${f}px ${p} ${S}`,borderRadius:g,outline:"none","&-focused":{borderColor:v},"&-rtl":{direction:"rtl",[`${t}-prev-icon, ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon, ${t}-super-next-icon`]:{transform:"rotate(-135deg)"}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:ge},"&-header":{display:"flex",padding:`0 ${c}px`,color:y,borderBottom:`${f}px ${p} ${S}`,"> *":{flex:"none"},button:{padding:0,color:x,lineHeight:`${C}px`,background:"transparent",border:0,cursor:"pointer",transition:`color ${E}`,fontSize:"inherit"},"> button":{minWidth:"1.6em",fontSize:D,"&:hover":{color:$}},"&-view":{flex:"auto",fontWeight:O,lineHeight:`${C}px`,button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:c},"&:hover":{color:v}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:i,height:i,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderBlockStartWidth:b,borderBlockEndWidth:0,borderInlineStartWidth:b,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Math.ceil(i/2),insetInlineStart:Math.ceil(i/2),display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderBlockStartWidth:b,borderBlockEndWidth:0,borderInlineStartWidth:b,borderInlineEndWidth:0,content:'""'}},"&-prev-icon,\n &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon,\n &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:I,fontWeight:"normal"},th:{height:I+N*2,color:T,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${N}px 0`,color:_,cursor:"pointer","&-in-view":{color:T}},fue(e)),[`&-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-start ${r}, &-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-end ${r}`]:{"&::after":{position:"absolute",top:0,bottom:0,zIndex:-1,background:j,transition:`all ${P}`,content:'""'}},[`&-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-start ${r}::after`]:{insetInlineEnd:-(a-I)/2,insetInlineStart:0},[`&-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-end ${r}::after`]:{insetInlineEnd:0,insetInlineStart:-(a-I)/2},[`&-range-hover${t}-range-start::after`]:{insetInlineEnd:"50%"},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:M*4},[r]:{padding:`0 ${c}px`}},"&-quarter-panel":{[`${t}-content`]:{height:A},[`${t}-cell-range-hover-start::after`]:{insetInlineStart:he,borderInlineStart:`${f}px dashed ${W}`,[`${t}-panel-rtl &`]:{insetInlineEnd:he,borderInlineEnd:`${f}px dashed ${W}`}},[`${t}-cell-range-hover-end::after`]:{insetInlineEnd:he,borderInlineEnd:`${f}px dashed ${W}`,[`${t}-panel-rtl &`]:{insetInlineStart:he,borderInlineStart:`${f}px dashed ${W}`}}},[`&-panel ${t}-footer`]:{borderTop:`${f}px ${p} ${S}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:`${C-2*f}px`,textAlign:"center","&-extra":{padding:`0 ${s}`,lineHeight:`${C-2*f}px`,textAlign:"start","&:not(:last-child)":{borderBottom:`${f}px ${p} ${S}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:B,"&:hover":{color:H},"&:active":{color:F},[`&${t}-today-btn-disabled`]:{color:_,cursor:"not-allowed"}},"&-decade-panel":{[r]:{padding:`0 ${c/2}px`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${c}px`},[r]:{width:o},[`${t}-cell-range-hover-start::after`]:{borderStartStartRadius:V,borderEndStartRadius:V,borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-panel-rtl &`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:V,borderEndEndRadius:V}},[`${t}-cell-range-hover-end::after`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:V,borderEndEndRadius:V,[`${t}-panel-rtl &`]:{borderStartStartRadius:V,borderEndStartRadius:V,borderStartEndRadius:0,borderEndEndRadius:0}}},"&-year-panel,\n &-month-panel":{[`${t}-cell-range-hover-start::after`]:{insetInlineStart:ve,borderInlineStart:`${f}px dashed ${W}`,[`${t}-panel-rtl &`]:{insetInlineEnd:ve,borderInlineEnd:`${f}px dashed ${W}`}},[`${t}-cell-range-hover-end::after`]:{insetInlineEnd:ve,borderInlineEnd:`${f}px dashed ${W}`,[`${t}-panel-rtl &`]:{insetInlineStart:ve,borderInlineStart:`${f}px dashed ${W}`}}},"&-week-panel":{[`${t}-body`]:{padding:`${c}px ${s}px`},[`${t}-cell`]:{[`&:hover ${r}, &-selected ${r}, ${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${E}`},"&:first-child:before":{borderStartStartRadius:V,borderEndStartRadius:V},"&:last-child:before":{borderStartEndRadius:V,borderEndEndRadius:V}},"&:hover td":{"&:before":{background:G}},"&-range-start td,\n &-range-end td,\n &-selected td":{[`&${n}`]:{"&:before":{background:v},[`&${t}-cell-week`]:{color:new kn(K).setAlpha(.5).toHexString()},[r]:{color:K}}},"&-range-hover td:before":{background:se}}},"&-date-panel":{[`${t}-body`]:{padding:`${c}px ${ie}px`},[`${t}-content`]:{width:a*7,th:{width:a,boxSizing:"border-box",padding:0}}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${f}px ${p} ${S}`},[`${t}-date-panel, ${t}-time-panel`]:{transition:`opacity ${P}`},"&-active":{[`${t}-date-panel, ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${t}-content`]:{display:"flex",flex:"auto",height:re},"&-column":{flex:"1 0 auto",width:Q,margin:`${u}px 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${E}`,overflowX:"hidden","&::after":{display:"block",height:re-fe,content:'""'},"&:not(:first-child)":{borderInlineStart:`${f}px ${p} ${S}`},"&-active":{background:new kn(se).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:oe,[`${t}-time-panel-cell-inner`]:{display:"block",width:Q-2*oe,height:fe,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:(Q-fe)/2,color:T,lineHeight:`${fe}px`,borderRadius:V,cursor:"pointer",transition:`background ${E}`,"&:hover":{background:G}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:se}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:_,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${t}-time-panel-column:after`]:{height:re-fe+u*2}}}},pue=e=>{const{componentCls:t,colorBgContainer:n,colorError:r,colorErrorOutline:o,colorWarning:i,colorWarningOutline:a}=e;return{[`${t}:not(${t}-disabled)`]:{[`&${t}-status-error`]:{"&, &:not([disabled]):hover":{backgroundColor:n,borderColor:r},[`&${t}-focused, &:focus`]:Object.assign({},dd(sn(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:o}))),[`${t}-active-bar`]:{background:r}},[`&${t}-status-warning`]:{"&, &:not([disabled]):hover":{backgroundColor:n,borderColor:i},[`&${t}-focused, &:focus`]:Object.assign({},dd(sn(e,{inputBorderActiveColor:i,inputBorderHoverColor:i,controlOutline:a}))),[`${t}-active-bar`]:{background:i}}}}},mue=e=>{const{componentCls:t,antCls:n,controlHeight:r,fontSize:o,inputPaddingHorizontal:i,colorBgContainer:a,lineWidth:s,lineType:c,colorBorder:u,borderRadius:d,motionDurationMid:f,colorBgContainerDisabled:p,colorTextDisabled:g,colorTextPlaceholder:v,controlHeightLG:y,fontSizeLG:S,controlHeightSM:b,inputPaddingHorizontalSM:x,paddingXS:C,marginXS:E,colorTextDescription:$,lineWidthBold:O,lineHeight:I,colorPrimary:N,motionDurationSlow:_,zIndexPopup:T,paddingXXS:D,paddingSM:j,pickerTextHeight:P,controlItemBgActive:M,colorPrimaryBorder:A,sizePopupArrow:B,borderRadiusXS:F,borderRadiusOuter:H,colorBgElevated:W,borderRadiusLG:V,boxShadowSecondary:K,borderRadiusSM:G,colorSplit:re,controlItemBgHover:Q,presetsWidth:fe,presetsMaxWidth:se,boxShadowPopoverArrow:oe,colorTextQuaternary:ie}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},En(e)),$S(e,r,o,i)),{position:"relative",display:"inline-flex",alignItems:"center",background:a,lineHeight:1,border:`${s}px ${c} ${u}`,borderRadius:d,transition:`border ${f}, box-shadow ${f}`,"&:hover, &-focused":Object.assign({},jh(e)),"&-focused":Object.assign({},dd(e)),[`&${t}-disabled`]:{background:p,borderColor:u,cursor:"not-allowed",[`${t}-suffix`]:{color:ie}},[`&${t}-borderless`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({},Mh(e)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,borderRadius:0,"&:focus":{boxShadow:"none"},"&[disabled]":{background:"transparent"}}),"&:hover":{[`${t}-clear`]:{opacity:1}},"&-placeholder":{"> input":{color:v}}},"&-large":Object.assign(Object.assign({},$S(e,y,S,i)),{[`${t}-input > input`]:{fontSize:S}}),"&-small":Object.assign({},$S(e,b,o,x)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:C/2,color:g,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:E}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:g,lineHeight:1,background:a,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${f}, color ${f}`,"> *":{verticalAlign:"top"},"&:hover":{color:$}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:S,color:g,fontSize:S,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:$},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-clear`]:{insetInlineEnd:i},"&:hover":{[`${t}-clear`]:{opacity:1}},[`${t}-active-bar`]:{bottom:-s,height:O,marginInlineStart:i,background:N,opacity:0,transition:`all ${_} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${C}px`,lineHeight:1},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:x},[`${t}-active-bar`]:{marginInlineStart:x}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},En(e)),hue(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:T,[`&${t}-dropdown-hidden`]:{display:"none"},[`&${t}-dropdown-placement-bottomLeft`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft, &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight, &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft, &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:Ib},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft, &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight, &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft, &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:$b},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft, &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:Rb},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft, &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:Ob},[`${t}-panel > ${t}-time-panel`]:{paddingTop:D},[`${t}-ranges`]:{marginBottom:0,padding:`${D}px ${j}px`,overflow:"hidden",lineHeight:`${P-2*s-C/2}px`,textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${t}-preset > ${n}-tag-blue`]:{color:N,background:M,borderColor:A,cursor:"pointer"},[`${t}-ok`]:{marginInlineStart:"auto"}},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign({position:"absolute",zIndex:1,display:"none",marginInlineStart:i*1.5,transition:`left ${_} ease-out`},UM(B,F,H,W,oe)),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:W,borderRadius:V,boxShadow:K,transition:`margin ${_}`,[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:fe,maxWidth:se,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:C,borderInlineEnd:`${s}px ${c} ${re}`,li:Object.assign(Object.assign({},Us),{borderRadius:G,paddingInline:C,paddingBlock:(b-Math.round(o*I))/2,cursor:"pointer",transition:`all ${_}`,"+ li":{marginTop:E},"&:hover":{background:Q}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${t}-panel`]:{borderWidth:`0 0 ${s}px`},"&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:u}}}}),"&-dropdown-range":{padding:`${B*2/3}px 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},yl(e,"slide-up"),yl(e,"slide-down"),rh(e,"move-up"),rh(e,"move-down")]},gue=e=>{const{componentCls:n,controlHeightLG:r,controlHeightSM:o,colorPrimary:i,paddingXXS:a,padding:s}=e;return{pickerCellCls:`${n}-cell`,pickerCellInnerCls:`${n}-cell-inner`,pickerTextHeight:r,pickerPanelCellWidth:o*1.5,pickerPanelCellHeight:o,pickerDateHoverRangeBorderColor:new kn(i).lighten(20).toHexString(),pickerBasicCellHoverWithRangeColor:new kn(i).lighten(35).toHexString(),pickerPanelWithoutTimeCellHeight:r*1.65,pickerYearMonthCellWidth:r*1.5,pickerTimePanelColumnHeight:28*8,pickerTimePanelColumnWidth:r*1.4,pickerTimePanelCellHeight:28,pickerQuarterPanelContentHeight:r*1.4,pickerCellPaddingVertical:a+a/2,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:s+a/2}},YA=Pn("DatePicker",e=>{const t=sn(_g(e),gue(e));return[mue(t),pue(t),yg(e,{focusElCls:`${e.componentCls}-focused`})]},e=>({presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50})),vue=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:i}=e,a=ne({[`${t}-lg`]:o==="large",[`${t}-sm`]:o==="small"}),s=ne({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),c=l.useMemo(()=>typeof o=="number"?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return l.createElement("span",{className:ne(t,a,s,n),style:Object.assign(Object.assign({},c),r)})},Hb=vue,yue=new vn("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Ub=e=>({height:e,lineHeight:`${e}px`}),zf=e=>Object.assign({width:e},Ub(e)),bue=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:yue,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),OS=e=>Object.assign({width:e*5,minWidth:e*5},Ub(e)),xue=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},zf(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},zf(o)),[`${t}${t}-sm`]:Object.assign({},zf(i))}},wue=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a}=e;return{[`${r}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},OS(t)),[`${r}-lg`]:Object.assign({},OS(o)),[`${r}-sm`]:Object.assign({},OS(i))}},$6=e=>Object.assign({width:e},Ub(e)),Sue=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:o},$6(n*2)),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},$6(n)),{maxWidth:n*4,maxHeight:n*4}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},IS=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},RS=e=>Object.assign({width:e*2,minWidth:e*2},Ub(e)),Cue=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:r*2,minWidth:r*2},RS(r))},IS(e,r,n)),{[`${n}-lg`]:Object.assign({},RS(o))}),IS(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},RS(i))}),IS(e,i,`${n}-sm`))},Eue=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:s,controlHeight:c,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:p,marginSM:g,borderRadius:v,titleHeight:y,blockRadius:S,paragraphLiHeight:b,controlHeightXS:x,paragraphMarginTop:C}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},zf(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},zf(u)),[`${n}-sm`]:Object.assign({},zf(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${r}`]:{width:"100%",height:y,background:f,borderRadius:S,[`+ ${o}`]:{marginBlockStart:d}},[`${o}`]:{padding:0,"> li":{width:"100%",height:b,listStyle:"none",background:f,borderRadius:S,"+ li":{marginBlockStart:x}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:v}}},[`${t}-with-avatar ${t}-content`]:{[`${r}`]:{marginBlockStart:g,[`+ ${o}`]:{marginBlockStart:C}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Cue(e)),xue(e)),wue(e)),Sue(e)),[`${t}${t}-block`]:{width:"100%",[`${i}`]:{width:"100%"},[`${a}`]:{width:"100%"}},[`${t}${t}-active`]:{[` ${r}, ${o} > li, ${n}, ${i}, ${a}, ${s} `]:Object.assign({},bue(e))}}},kh=Pn("Skeleton",e=>{const{componentCls:t}=e,n=sn(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:e.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Eue(n)]},e=>{const{colorFillContent:t,colorFill:n}=e,r=t,o=n;return{color:r,colorGradientEnd:o,gradientFromColor:r,gradientToColor:o,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),$ue=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:i="circle",size:a="default"}=e,{getPrefixCls:s}=l.useContext(St),c=s("skeleton",t),[u,d]=kh(c),f=vr(e,["prefixCls","className"]),p=ne(c,`${c}-element`,{[`${c}-active`]:o},n,r,d);return u(l.createElement("div",{className:p},l.createElement(Hb,Object.assign({prefixCls:`${c}-avatar`,shape:i,size:a},f))))},Oue=$ue,Iue=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i=!1,size:a="default"}=e,{getPrefixCls:s}=l.useContext(St),c=s("skeleton",t),[u,d]=kh(c),f=vr(e,["prefixCls"]),p=ne(c,`${c}-element`,{[`${c}-active`]:o,[`${c}-block`]:i},n,r,d);return u(l.createElement("div",{className:p},l.createElement(Hb,Object.assign({prefixCls:`${c}-button`,size:a},f))))},Rue=Iue,Nue="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",_ue=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i}=e,{getPrefixCls:a}=l.useContext(St),s=a("skeleton",t),[c,u]=kh(s),d=ne(s,`${s}-element`,{[`${s}-active`]:i},n,r,u);return c(l.createElement("div",{className:d},l.createElement("div",{className:ne(`${s}-image`,n),style:o},l.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},l.createElement("path",{d:Nue,className:`${s}-image-path`})))))},Tue=_ue,Pue=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i,size:a="default"}=e,{getPrefixCls:s}=l.useContext(St),c=s("skeleton",t),[u,d]=kh(c),f=vr(e,["prefixCls"]),p=ne(c,`${c}-element`,{[`${c}-active`]:o,[`${c}-block`]:i},n,r,d);return u(l.createElement("div",{className:p},l.createElement(Hb,Object.assign({prefixCls:`${c}-input`,size:a},f))))},jue=Pue;var Mue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"};const kue=Mue;var Due=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:kue}))};const Aue=l.forwardRef(Due),Lue=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i,children:a}=e,{getPrefixCls:s}=l.useContext(St),c=s("skeleton",t),[u,d]=kh(c),f=ne(c,`${c}-element`,{[`${c}-active`]:i},d,n,r),p=a??l.createElement(Aue,null);return u(l.createElement("div",{className:f},l.createElement("div",{className:ne(`${c}-image`,n),style:o},p)))},Fue=Lue,zue=e=>{const t=s=>{const{width:c,rows:u=2}=e;if(Array.isArray(c))return c[s];if(u-1===s)return c},{prefixCls:n,className:r,style:o,rows:i}=e,a=Ze(Array(i)).map((s,c)=>l.createElement("li",{key:c,style:{width:t(c)}}));return l.createElement("ul",{className:ne(n,r),style:o},a)},Bue=zue,Hue=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return l.createElement("h3",{className:ne(t,n),style:Object.assign({width:r},o)})},Uue=Hue;function NS(e){return e&&typeof e=="object"?e:{}}function Wue(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Vue(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function Kue(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Dh=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:i,children:a,avatar:s=!1,title:c=!0,paragraph:u=!0,active:d,round:f}=e,{getPrefixCls:p,direction:g,skeleton:v}=l.useContext(St),y=p("skeleton",t),[S,b]=kh(y);if(n||!("loading"in e)){const x=!!s,C=!!c,E=!!u;let $;if(x){const N=Object.assign(Object.assign({prefixCls:`${y}-avatar`},Wue(C,E)),NS(s));$=l.createElement("div",{className:`${y}-header`},l.createElement(Hb,Object.assign({},N)))}let O;if(C||E){let N;if(C){const T=Object.assign(Object.assign({prefixCls:`${y}-title`},Vue(x,E)),NS(c));N=l.createElement(Uue,Object.assign({},T))}let _;if(E){const T=Object.assign(Object.assign({prefixCls:`${y}-paragraph`},Kue(x,C)),NS(u));_=l.createElement(Bue,Object.assign({},T))}O=l.createElement("div",{className:`${y}-content`},N,_)}const I=ne(y,{[`${y}-with-avatar`]:x,[`${y}-active`]:d,[`${y}-rtl`]:g==="rtl",[`${y}-round`]:f},v?.className,r,o,b);return S(l.createElement("div",{className:I,style:Object.assign(Object.assign({},v?.style),i)},$,O))}return typeof a<"u"?a:null};Dh.Button=Rue;Dh.Avatar=Oue;Dh.Input=jue;Dh.Image=Tue;Dh.Node=Fue;const Nr=Dh;var Gue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const Yue=Gue;var que=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:Yue}))};const Dr=l.forwardRef(que),Wb=l.createContext(null);var qA=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,a=e.active,s=e.tabKey,c=e.children;return l.createElement("div",{id:i&&"".concat(i,"-panel-").concat(s),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(s),"aria-hidden":!a,style:o,className:ne(n,a&&"".concat(n,"-active"),r),ref:t},c)}),Xue=["key","forceRender","style","className"];function Que(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,i=e.destroyInactiveTabPane,a=l.useContext(Wb),s=a.prefixCls,c=a.tabs,u=r.tabPane,d="".concat(s,"-tabpane");return l.createElement("div",{className:ne("".concat(s,"-content-holder"))},l.createElement("div",{className:ne("".concat(s,"-content"),"".concat(s,"-content-").concat(o),ae({},"".concat(s,"-content-animated"),u))},c.map(function(f){var p=f.key,g=f.forceRender,v=f.style,y=f.className,S=Ft(f,Xue),b=p===n;return l.createElement(zi,Re({key:p,visible:b,forceRender:g,removeOnLeave:!!i,leavedClassName:"".concat(d,"-hidden")},r.tabPaneMotion),function(x,C){var E=x.style,$=x.className;return l.createElement(qA,Re({},S,{prefixCls:d,id:t,tabKey:p,animated:u,active:b,style:le(le({},v),E),className:ne(y,$),ref:C}))})})))}var O6={width:0,height:0,left:0,top:0};function Zue(e,t,n){return l.useMemo(function(){for(var r,o=new Map,i=t.get((r=e[0])===null||r===void 0?void 0:r.key)||O6,a=i.left+i.width,s=0;sM?(j=T,O.current="x"):(j=D,O.current="y"),t(-j,-j)&&_.preventDefault()}var N=l.useRef(null);N.current={onTouchStart:C,onTouchMove:E,onTouchEnd:$,onWheel:I},l.useEffect(function(){function _(P){N.current.onTouchStart(P)}function T(P){N.current.onTouchMove(P)}function D(P){N.current.onTouchEnd(P)}function j(P){N.current.onWheel(P)}return document.addEventListener("touchmove",T,{passive:!1}),document.addEventListener("touchend",D,{passive:!1}),e.current.addEventListener("touchstart",_,{passive:!1}),e.current.addEventListener("wheel",j),function(){document.removeEventListener("touchmove",T),document.removeEventListener("touchend",D)}},[])}function XA(e){var t=l.useState(0),n=me(t,2),r=n[0],o=n[1],i=l.useRef(0),a=l.useRef();return a.current=e,Lf(function(){var s;(s=a.current)===null||s===void 0||s.call(a)},[r]),function(){i.current===r&&(i.current+=1,o(i.current))}}function tde(e){var t=l.useRef([]),n=l.useState({}),r=me(n,2),o=r[1],i=l.useRef(typeof e=="function"?e():e),a=XA(function(){var c=i.current;t.current.forEach(function(u){c=u(c)}),t.current=[],i.current=c,o({})});function s(c){t.current.push(c),a()}return[i.current,s]}var _6={width:0,height:0,left:0,top:0,right:0};function nde(e,t,n,r,o,i,a){var s=a.tabs,c=a.tabPosition,u=a.rtl,d,f,p;return["top","bottom"].includes(c)?(d="width",f=u?"right":"left",p=Math.abs(n)):(d="height",f="top",p=-n),l.useMemo(function(){if(!s.length)return[0,0];for(var g=s.length,v=g,y=0;yp+t){v=y-1;break}}for(var b=0,x=g-1;x>=0;x-=1){var C=e.get(s[x].key)||_6;if(C[f]=v?[0,0]:[b,v]},[e,t,r,o,i,p,c,s.map(function(g){return g.key}).join("_"),u])}function T6(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var rde="TABS_DQ";function QA(e){return String(e).replace(/"/g,rde)}function ZA(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}function ode(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return!r||r.showAdd===!1?null:l.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":o?.addAriaLabel||"Add tab",onClick:function(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}const JA=l.forwardRef(ode);var P6=l.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var i,a={};return Wt(o)==="object"&&!l.isValidElement(o)?a=o:a.right=o,n==="right"&&(i=a.right),n==="left"&&(i=a.left),i?l.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},i):null});function ide(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,i=e.locale,a=e.mobile,s=e.moreIcon,c=s===void 0?"More":s,u=e.moreTransitionName,d=e.style,f=e.className,p=e.editable,g=e.tabBarGutter,v=e.rtl,y=e.removeAriaLabel,S=e.onTabClick,b=e.getPopupContainer,x=e.popupClassName,C=l.useState(!1),E=me(C,2),$=E[0],O=E[1],I=l.useState(null),N=me(I,2),_=N[0],T=N[1],D="".concat(r,"-more-popup"),j="".concat(n,"-dropdown"),P=_!==null?"".concat(D,"-").concat(_):null,M=i?.dropdownAriaLabel;function A(G,re){G.preventDefault(),G.stopPropagation(),p.onEdit("remove",{key:re,event:G})}var B=l.createElement(_h,{onClick:function(re){var Q=re.key,fe=re.domEvent;S(Q,fe),O(!1)},prefixCls:"".concat(j,"-menu"),id:D,tabIndex:-1,role:"listbox","aria-activedescendant":P,selectedKeys:[_],"aria-label":M!==void 0?M:"expanded dropdown"},o.map(function(G){var re=G.closable,Q=G.disabled,fe=G.closeIcon,se=G.key,oe=G.label,ie=ZA(re,fe,p,Q);return l.createElement(Og,{key:se,id:"".concat(D,"-").concat(se),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(se),disabled:Q},l.createElement("span",null,oe),ie&&l.createElement("button",{type:"button","aria-label":y||"remove",tabIndex:0,className:"".concat(j,"-menu-item-remove"),onClick:function(ve){ve.stopPropagation(),A(ve,se)}},fe||p.removeIcon||"×"))}));function F(G){for(var re=o.filter(function(ie){return!ie.disabled}),Q=re.findIndex(function(ie){return ie.key===_})||0,fe=re.length,se=0;sent?"left":"right"})}),P=me(j,2),M=P[0],A=P[1],B=I6(0,function(st,nt){!D&&C&&C({direction:st>nt?"top":"bottom"})}),F=me(B,2),H=F[0],W=F[1],V=l.useState([0,0]),K=me(V,2),G=K[0],re=K[1],Q=l.useState([0,0]),fe=me(Q,2),se=fe[0],oe=fe[1],ie=l.useState([0,0]),ge=me(ie,2),ve=ge[0],he=ge[1],be=l.useState([0,0]),ye=me(be,2),Ce=ye[0],Ee=ye[1],je=tde(new Map),De=me(je,2),_e=De[0],Me=De[1],Ie=Zue(i,_e,se[0]),Fe=x0(G,D),Ge=x0(se,D),ft=x0(ve,D),it=x0(Ce,D),qe=FeL?L:st}var ee=l.useRef(),$e=l.useState(),we=me($e,2),de=we[0],Se=we[1];function Ae(){Se(Date.now())}function We(){window.clearTimeout(ee.current)}ede(I,function(st,nt){function Xt(nn,$n){nn(function(Kn){var Xn=X(Kn+$n);return Xn})}return qe?(D?Xt(A,st):Xt(W,nt),We(),Ae(),!0):!1}),l.useEffect(function(){return We(),de&&(ee.current=window.setTimeout(function(){Se(0)},100)),We},[de]);var Ke=nde(Ie,at,D?M:H,Ge,ft,it,le(le({},e),{},{tabs:i})),tt=me(Ke,2),pe=tt[0],Te=tt[1],ze=Lo(function(){var st=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d,nt=Ie.get(st)||{width:0,height:0,left:0,right:0,top:0};if(D){var Xt=M;f?nt.rightM+at&&(Xt=nt.right+nt.width-at):nt.left<-M?Xt=-nt.left:nt.left+nt.width>-M+at&&(Xt=-(nt.left+nt.width-at)),W(0),A(X(Xt))}else{var nn=H;nt.top<-H?nn=-nt.top:nt.top+nt.height>-H+at&&(nn=-(nt.top+nt.height-at)),A(0),W(X(nn))}}),ke={};y==="top"||y==="bottom"?ke[f?"marginRight":"marginLeft"]=S:ke.marginTop=S;var et=i.map(function(st,nt){var Xt=st.key;return l.createElement(sde,{id:c,prefixCls:o,key:Xt,tab:st,style:nt===0?void 0:ke,closable:st.closable,editable:g,active:Xt===d,renderWrapper:b,removeAriaLabel:v?.removeAriaLabel,onClick:function($n){x(Xt,$n)},onFocus:function(){ze(Xt),Ae(),I.current&&(f||(I.current.scrollLeft=0),I.current.scrollTop=0)}})}),mt=function(){return Me(function(){var nt=new Map;return i.forEach(function(Xt){var nn,$n=Xt.key,Kn=(nn=N.current)===null||nn===void 0?void 0:nn.querySelector('[data-node-key="'.concat(QA($n),'"]'));Kn&&nt.set($n,{width:Kn.offsetWidth,height:Kn.offsetHeight,left:Kn.offsetLeft,top:Kn.offsetTop})}),nt})};l.useEffect(function(){mt()},[i.map(function(st){return st.key}).join("_")]);var Ve=XA(function(){var st=qd(E),nt=qd($),Xt=qd(O);re([st[0]-nt[0]-Xt[0],st[1]-nt[1]-Xt[1]]);var nn=qd(T);he(nn);var $n=qd(_);Ee($n);var Kn=qd(N);oe([Kn[0]-nn[0],Kn[1]-nn[1]]),mt()}),rt=i.slice(0,pe),Ue=i.slice(Te+1),Je=[].concat(Ze(rt),Ze(Ue)),ht=l.useState(),gt=me(ht,2),It=gt[0],Et=gt[1],xt=Ie.get(d),pt=l.useRef();function Nt(){yn.cancel(pt.current)}l.useEffect(function(){var st={};return xt&&(D?(f?st.right=xt.right:st.left=xt.left,st.width=xt.width):(st.top=xt.top,st.height=xt.height)),Nt(),pt.current=yn(function(){Et(st)}),Nt},[xt,D,f]),l.useEffect(function(){ze()},[d,k,L,T6(xt),T6(Ie),D]),l.useEffect(function(){Ve()},[f]);var Pt=!!Je.length,_t="".concat(o,"-nav-wrap"),Ot,gn,Mt,yt;return D?f?(gn=M>0,Ot=M!==L):(Ot=M<0,gn=M!==k):(Mt=H<0,yt=H!==k),l.createElement(ki,{onResize:Ve},l.createElement("div",{ref:hg(t,E),role:"tablist",className:ne("".concat(o,"-nav"),a),style:s,onKeyDown:function(){Ae()}},l.createElement(P6,{ref:$,position:"left",extra:p,prefixCls:o}),l.createElement("div",{className:ne(_t,(n={},ae(n,"".concat(_t,"-ping-left"),Ot),ae(n,"".concat(_t,"-ping-right"),gn),ae(n,"".concat(_t,"-ping-top"),Mt),ae(n,"".concat(_t,"-ping-bottom"),yt),n)),ref:I},l.createElement(ki,{onResize:Ve},l.createElement("div",{ref:N,className:"".concat(o,"-nav-list"),style:{transform:"translate(".concat(M,"px, ").concat(H,"px)"),transition:de?"none":void 0}},et,l.createElement(JA,{ref:T,prefixCls:o,locale:v,editable:g,style:le(le({},et.length===0?void 0:ke),{},{visibility:Pt?"hidden":null})}),l.createElement("div",{className:ne("".concat(o,"-ink-bar"),ae({},"".concat(o,"-ink-bar-animated"),u.inkBar)),style:It})))),l.createElement(ade,Re({},e,{removeAriaLabel:v?.removeAriaLabel,ref:_,prefixCls:o,tabs:Je,className:!Pt&&U,tabMoving:!!de})),l.createElement(P6,{ref:O,position:"right",extra:p,prefixCls:o})))}const j6=l.forwardRef(lde);var cde=["renderTabBar"],ude=["label","key"];function dde(e){var t=e.renderTabBar,n=Ft(e,cde),r=l.useContext(Wb),o=r.tabs;if(t){var i=le(le({},n),{},{panes:o.map(function(a){var s=a.label,c=a.key,u=Ft(a,ude);return l.createElement(qA,Re({tab:s,key:c,tabKey:c},u))})});return t(i,j6)}return l.createElement(j6,n)}function fde(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=le({inkBar:!0},Wt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var hde=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],M6=0;function pde(e,t){var n,r=e.id,o=e.prefixCls,i=o===void 0?"rc-tabs":o,a=e.className,s=e.items,c=e.direction,u=e.activeKey,d=e.defaultActiveKey,f=e.editable,p=e.animated,g=e.tabPosition,v=g===void 0?"top":g,y=e.tabBarGutter,S=e.tabBarStyle,b=e.tabBarExtraContent,x=e.locale,C=e.moreIcon,E=e.moreTransitionName,$=e.destroyInactiveTabPane,O=e.renderTabBar,I=e.onChange,N=e.onTabClick,_=e.onTabScroll,T=e.getPopupContainer,D=e.popupClassName,j=Ft(e,hde),P=l.useMemo(function(){return(s||[]).filter(function(je){return je&&Wt(je)==="object"&&"key"in je})},[s]),M=c==="rtl",A=fde(p),B=l.useState(!1),F=me(B,2),H=F[0],W=F[1];l.useEffect(function(){W(_b())},[]);var V=Vn(function(){var je;return(je=P[0])===null||je===void 0?void 0:je.key},{value:u,defaultValue:d}),K=me(V,2),G=K[0],re=K[1],Q=l.useState(function(){return P.findIndex(function(je){return je.key===G})}),fe=me(Q,2),se=fe[0],oe=fe[1];l.useEffect(function(){var je=P.findIndex(function(_e){return _e.key===G});if(je===-1){var De;je=Math.max(0,Math.min(se,P.length-1)),re((De=P[je])===null||De===void 0?void 0:De.key)}oe(je)},[P.map(function(je){return je.key}).join("_"),G,se]);var ie=Vn(null,{value:r}),ge=me(ie,2),ve=ge[0],he=ge[1];l.useEffect(function(){r||(he("rc-tabs-".concat(M6)),M6+=1)},[]);function be(je,De){N?.(je,De);var _e=je!==G;re(je),_e&&I?.(je)}var ye={id:ve,activeKey:G,animated:A,tabPosition:v,rtl:M,mobile:H},Ce,Ee=le(le({},ye),{},{editable:f,locale:x,moreIcon:C,moreTransitionName:E,tabBarGutter:y,onTabClick:be,onTabScroll:_,extra:b,style:S,panes:null,getPopupContainer:T,popupClassName:D});return l.createElement(Wb.Provider,{value:{tabs:P,prefixCls:i}},l.createElement("div",Re({ref:t,id:r,className:ne(i,"".concat(i,"-").concat(v),(n={},ae(n,"".concat(i,"-mobile"),H),ae(n,"".concat(i,"-editable"),f),ae(n,"".concat(i,"-rtl"),M),n),a)},j),Ce,l.createElement(dde,Re({},Ee,{renderTabBar:O})),l.createElement(Que,Re({destroyInactiveTabPane:$},ye,{animated:A}))))}var mde=l.forwardRef(pde);const gde=()=>null,vde=gde,yde={motionAppear:!1,motionEnter:!0,motionLeave:!0};function bde(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},yde),{motionName:Ws(e,"switch")})),n}var xde=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);ot)}function Sde(e,t){if(e)return e;const n=zo(t).map(r=>{if(l.isValidElement(r)){const{key:o,props:i}=r,a=i||{},{tab:s}=a,c=xde(a,["tab"]);return Object.assign(Object.assign({key:String(o)},c),{label:s})}return null});return wde(n)}const Cde=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[yl(e,"slide-up"),yl(e,"slide-down")]]},Ede=Cde,$de=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${e.lineWidth}px ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${o}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${o}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Ode=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},En(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${r}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Us),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Ide=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${n}px`,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:e.controlHeight*1.25,[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Rde=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},Nde=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:s}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},lu(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${o}`]:{margin:0},[o]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:i}}}},_de=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Tde=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},En(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${s}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},lu(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),Nde(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},Pde=Pn("Tabs",e=>{const t=sn(e,{tabsCardPadding:e.cardPadding||`${(e.cardHeight-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${e.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${e.horizontalItemGutter}px`});return[Rde(t),_de(t),Ide(t),Ode(t),$de(t),Tde(t),Ede(t)]},e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:"",cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}});var jde=globalThis&&globalThis.__rest||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{type:t,className:n,rootClassName:r,size:o,onEdit:i,hideAdd:a,centered:s,addIcon:c,popupClassName:u,children:d,items:f,animated:p,style:g}=e,v=jde(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style"]),{prefixCls:y,moreIcon:S=l.createElement(X4,null)}=v,{direction:b,tabs:x,getPrefixCls:C,getPopupContainer:E}=l.useContext(St),$=C("tabs",y),[O,I]=Pde($);let N;t==="editable-card"&&(N={onEdit:(M,A)=>{let{key:B,event:F}=A;i?.(M==="add"?F:B,M)},removeIcon:l.createElement(No,null),addIcon:c||l.createElement(Dr,null),showAdd:a!==!0});const _=C(),T=Sde(f,d),D=bde($,p),j=Zo(o),P=Object.assign(Object.assign({},x?.style),g);return O(l.createElement(mde,Object.assign({direction:b,getPopupContainer:E,moreTransitionName:`${_}-slide-up`},v,{items:T,className:ne({[`${$}-${j}`]:j,[`${$}-card`]:["card","editable-card"].includes(t),[`${$}-editable-card`]:t==="editable-card",[`${$}-centered`]:s},x?.className,n,r,I),popupClassName:ne(u,I),style:P,editable:N,moreIcon:S,prefixCls:$,animated:D})))};eL.TabPane=vde;const Ah=eL;var Mde=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var{prefixCls:t,className:n,hoverable:r=!0}=e,o=Mde(e,["prefixCls","className","hoverable"]);const{getPrefixCls:i}=l.useContext(St),a=i("card",t),s=ne(`${a}-grid`,n,{[`${a}-grid-hoverable`]:r});return l.createElement("div",Object.assign({},o,{className:s}))},tL=kde,Dde=e=>{const{antCls:t,componentCls:n,headerHeight:r,cardPaddingBase:o,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${o}px`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},sc()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Us),{[` > ${n}-typography, > ${n}-typography-edit-content `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`}}})},Ade=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` ${o}px 0 0 0 ${n}, 0 ${o}px 0 0 ${n}, ${o}px ${o}px 0 0 ${n}, ${o}px 0 0 0 ${n} inset, 0 ${o}px 0 0 ${n} inset; `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},Lde=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:i,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${e.lineWidth}px ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px `},sc()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.cardActionsIconSize*2,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:`${e.fontSize*e.lineHeight}px`,transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:`${o*e.lineHeight}px`}},"&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${i}`}}})},Fde=e=>Object.assign(Object.assign({margin:`-${e.marginXXS}px 0`,display:"flex"},sc()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Us),"&-description":{color:e.colorTextDescription}}),zde=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${n}px`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${e.padding}px ${n}px`}}},Bde=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},Hde=e=>{const{antCls:t,componentCls:n,cardShadow:r,cardHeadPadding:o,colorBorderSecondary:i,boxShadowTertiary:a,cardPaddingBase:s,extraColor:c}=e;return{[n]:Object.assign(Object.assign({},En(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${n}-bordered)`]:{boxShadow:a},[`${n}-head`]:Dde(e),[`${n}-extra`]:{marginInlineStart:"auto",color:c,fontWeight:"normal",fontSize:e.fontSize},[`${n}-body`]:Object.assign({padding:s,borderRadius:` 0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},sc()),[`${n}-grid`]:Ade(e),[`${n}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${t}-image-mask`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`}},[`${n}-actions`]:Lde(e),[`${n}-meta`]:Fde(e)}),[`${n}-bordered`]:{border:`${e.lineWidth}px ${e.lineType} ${i}`,[`${n}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${n}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:r}},[`${n}-contain-grid`]:{[`${n}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${n}-loading) ${n}-body`]:{marginBlockStart:-e.lineWidth,marginInlineStart:-e.lineWidth,padding:0}},[`${n}-contain-tabs`]:{[`> ${n}-head`]:{[`${n}-head-title, ${n}-extra`]:{paddingTop:o}}},[`${n}-type-inner`]:zde(e),[`${n}-loading`]:Bde(e),[`${n}-rtl`]:{direction:"rtl"}}},Ude=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${n}px`,fontSize:o,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{minHeight:r,paddingTop:0,display:"flex",alignItems:"center"}}}}},Wde=Pn("Card",e=>{const t=sn(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[Hde(t),Ude(t)]},e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}));var k6=globalThis&&globalThis.__rest||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);ol.createElement("li",{style:{width:`${100/e.length}%`},key:`action-${n}`},l.createElement("span",null,t)))}const Kde=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,extra:a,headStyle:s={},bodyStyle:c={},title:u,loading:d,bordered:f=!0,size:p,type:g,cover:v,actions:y,tabList:S,children:b,activeTabKey:x,defaultActiveTabKey:C,tabBarExtraContent:E,hoverable:$,tabProps:O={}}=e,I=k6(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),{getPrefixCls:N,direction:_,card:T}=l.useContext(St),D=ge=>{var ve;(ve=e.onTabChange)===null||ve===void 0||ve.call(e,ge)},j=l.useMemo(()=>{let ge=!1;return l.Children.forEach(b,ve=>{ve&&ve.type&&ve.type===tL&&(ge=!0)}),ge},[b]),P=N("card",n),[M,A]=Wde(P),B=l.createElement(Nr,{loading:!0,active:!0,paragraph:{rows:4},title:!1},b),F=x!==void 0,H=Object.assign(Object.assign({},O),{[F?"activeKey":"defaultActiveKey"]:F?x:C,tabBarExtraContent:E});let W;const V=Zo(p),K=!V||V==="default"?"large":V,G=S?l.createElement(Ah,Object.assign({size:K},H,{className:`${P}-head-tabs`,onChange:D,items:S.map(ge=>{var{tab:ve}=ge,he=k6(ge,["tab"]);return Object.assign({label:ve},he)})})):null;(u||a||G)&&(W=l.createElement("div",{className:`${P}-head`,style:s},l.createElement("div",{className:`${P}-head-wrapper`},u&&l.createElement("div",{className:`${P}-head-title`},u),a&&l.createElement("div",{className:`${P}-extra`},a)),G));const re=v?l.createElement("div",{className:`${P}-cover`},v):null,Q=l.createElement("div",{className:`${P}-body`,style:c},d?B:b),fe=y&&y.length?l.createElement("ul",{className:`${P}-actions`},Vde(y)):null,se=vr(I,["onTabChange"]),oe=ne(P,T?.className,{[`${P}-loading`]:d,[`${P}-bordered`]:f,[`${P}-hoverable`]:$,[`${P}-contain-grid`]:j,[`${P}-contain-tabs`]:S&&S.length,[`${P}-${V}`]:V,[`${P}-type-${g}`]:!!g,[`${P}-rtl`]:_==="rtl"},r,o,A),ie=Object.assign(Object.assign({},T?.style),i);return M(l.createElement("div",Object.assign({ref:t},se,{className:oe,style:ie}),W,re,Q,fe))}),Gde=Kde;var Yde=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:n,avatar:r,title:o,description:i}=e,a=Yde(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=l.useContext(St),c=s("card",t),u=ne(`${c}-meta`,n),d=r?l.createElement("div",{className:`${c}-meta-avatar`},r):null,f=o?l.createElement("div",{className:`${c}-meta-title`},o):null,p=i?l.createElement("div",{className:`${c}-meta-description`},i):null,g=f||p?l.createElement("div",{className:`${c}-meta-detail`},f,p):null;return l.createElement("div",Object.assign({},a,{className:u}),d,g)},Xde=qde,o3=Gde;o3.Grid=tL;o3.Meta=Xde;const Jn=o3;function Qde(e,t,n){var r=n||{},o=r.noTrailing,i=o===void 0?!1:o,a=r.noLeading,s=a===void 0?!1:a,c=r.debounceMode,u=c===void 0?void 0:c,d,f=!1,p=0;function g(){d&&clearTimeout(d)}function v(S){var b=S||{},x=b.upcomingOnly,C=x===void 0?!1:x;g(),f=!C}function y(){for(var S=arguments.length,b=new Array(S),x=0;xe?s?(p=Date.now(),i||(d=setTimeout(u?O:$,e))):$():i!==!0&&(d=setTimeout(u?O:$,u===void 0?e-E:e))}return y.cancel=v,y}function Zde(e,t,n){var r=n||{},o=r.atBegin,i=o===void 0?!1:o;return Qde(e,t,{debounceMode:i!==!1})}function nL(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function Jde(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!!(n||r)||o===!1}function efe(e,t,n,r){for(var o=new Set(e),i=new Set,a=0;a<=n;a+=1){var s=t.get(a)||new Set;s.forEach(function(f){var p=f.key,g=f.node,v=f.children,y=v===void 0?[]:v;o.has(p)&&!r(g)&&y.filter(function(S){return!r(S.node)}).forEach(function(S){o.add(S.key)})})}for(var c=new Set,u=n;u>=0;u-=1){var d=t.get(u)||new Set;d.forEach(function(f){var p=f.parent,g=f.node;if(!(r(g)||!f.parent||c.has(f.parent.key))){if(r(f.parent.node)){c.add(p.key);return}var v=!0,y=!1;(p.children||[]).filter(function(S){return!r(S.node)}).forEach(function(S){var b=S.key,x=o.has(b);v&&!x&&(v=!1),!y&&(x||i.has(b))&&(y=!0)}),v&&o.add(p.key),y&&i.add(p.key),c.add(p.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(nL(i,o))}}function tfe(e,t,n,r,o){for(var i=new Set(e),a=new Set(t),s=0;s<=r;s+=1){var c=n.get(s)||new Set;c.forEach(function(p){var g=p.key,v=p.node,y=p.children,S=y===void 0?[]:y;!i.has(g)&&!a.has(g)&&!o(v)&&S.filter(function(b){return!o(b.node)}).forEach(function(b){i.delete(b.key)})})}a=new Set;for(var u=new Set,d=r;d>=0;d-=1){var f=n.get(d)||new Set;f.forEach(function(p){var g=p.parent,v=p.node;if(!(o(v)||!p.parent||u.has(p.parent.key))){if(o(p.parent.node)){u.add(g.key);return}var y=!0,S=!1;(g.children||[]).filter(function(b){return!o(b.node)}).forEach(function(b){var x=b.key,C=i.has(x);y&&!C&&(y=!1),!S&&(C||a.has(x))&&(S=!0)}),y||i.delete(g.key),S&&a.add(g.key),u.add(g.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(nL(a,i))}}function Bf(e,t,n,r){var o=[],i;r?i=r:i=Jde;var a=new Set(e.filter(function(d){var f=!!n[d];return f||o.push(d),f})),s=new Map,c=0;Object.keys(n).forEach(function(d){var f=n[d],p=f.level,g=s.get(p);g||(g=new Set,s.set(p,g)),g.add(f),c=Math.max(c,p)}),dr(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(d){return"'".concat(d,"'")}).join(", ")));var u;return t===!0?u=efe(a,s,c,i):u=tfe(a,t.halfCheckedKeys,s,c,i),u}var nfe=["children"];function rL(e,t){return"".concat(e,"-").concat(t)}function rfe(e){return e&&e.type&&e.type.isTreeNode}function Tg(e,t){return e??t}function g1(e){var t=e||{},n=t.title,r=t._title,o=t.key,i=t.children,a=n||"title";return{title:a,_title:r||[a],key:o||"key",children:i||"children"}}function oL(e){function t(n){var r=zo(n);return r.map(function(o){if(!rfe(o))return dr(!o,"Tree/TreeNode can only accept TreeNode as children."),null;var i=o.key,a=o.props,s=a.children,c=Ft(a,nfe),u=le({key:i},c),d=t(s);return d.length&&(u.children=d),u}).filter(function(o){return o})}return t(e)}function _S(e,t,n){var r=g1(n),o=r._title,i=r.key,a=r.children,s=new Set(t===!0?[]:t),c=[];function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return d.map(function(p,g){for(var v=rL(f?f.pos:"0",g),y=Tg(p[i],v),S,b=0;b1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,i=t.externalGetKey,a=t.childrenPropName,s=t.fieldNames,c=arguments.length>2?arguments[2]:void 0,u=i||c,d={},f={},p={posEntities:d,keyEntities:f};return n&&(p=n(p)||p),ofe(e,function(g){var v=g.node,y=g.index,S=g.pos,b=g.key,x=g.parentPos,C=g.level,E=g.nodes,$={node:v,nodes:E,index:y,key:b,pos:S,level:C},O=Tg(b,S);d[S]=$,f[O]=$,$.parent=d[x],$.parent&&($.parent.children=$.parent.children||[],$.parent.children.push($)),r&&r($,p)},{externalGetKey:u,childrenPropName:a,fieldNames:s}),o&&o(p),p}function mm(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,i=t.loadingKeys,a=t.checkedKeys,s=t.halfCheckedKeys,c=t.dragOverNodeKey,u=t.dropPosition,d=t.keyEntities,f=d[e],p={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:o.indexOf(e)!==-1,loading:i.indexOf(e)!==-1,checked:a.indexOf(e)!==-1,halfChecked:s.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:c===e&&u===0,dragOverGapTop:c===e&&u===-1,dragOverGapBottom:c===e&&u===1};return p}function Eo(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,i=e.loaded,a=e.loading,s=e.halfChecked,c=e.dragOver,u=e.dragOverGapTop,d=e.dragOverGapBottom,f=e.pos,p=e.active,g=e.eventKey,v=le(le({},t),{},{expanded:n,selected:r,checked:o,loaded:i,loading:a,halfChecked:s,dragOver:c,dragOverGapTop:u,dragOverGapBottom:d,pos:f,active:p,key:g});return"props"in v||Object.defineProperty(v,"props",{get:function(){return dr(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),v}const ife=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},En(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},En(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},En(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},vl(e))},[`${t}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[` ${n}:not(${n}-disabled), ${t}:not(${t}-disabled) `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[` ${n}-checked:not(${n}-disabled), ${t}-checked:not(${t}-disabled) `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function iL(e,t){const n=sn(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[ife(n)]}const aL=Pn("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[iL(n,e)]}),afe=Ne.createContext(null),sL=afe;var sfe=globalThis&&globalThis.__rest||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,className:o,rootClassName:i,children:a,indeterminate:s=!1,style:c,onMouseEnter:u,onMouseLeave:d,skipGroup:f=!1,disabled:p}=e,g=sfe(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:v,direction:y,checkbox:S}=l.useContext(St),b=l.useContext(sL),{isFormItemInput:x}=l.useContext(Ai),C=l.useContext(cs),E=(n=b?.disabled||p)!==null&&n!==void 0?n:C,$=l.useRef(g.value);l.useEffect(()=>{b?.registerValue(g.value)},[]),l.useEffect(()=>{if(!f)return g.value!==$.current&&(b?.cancelValue($.current),b?.registerValue(g.value),$.current=g.value),()=>b?.cancelValue(g.value)},[g.value]);const O=v("checkbox",r),[I,N]=aL(O),_=Object.assign({},g);b&&!f&&(_.onChange=function(){g.onChange&&g.onChange.apply(g,arguments),b.toggleOption&&b.toggleOption({label:a,value:g.value})},_.name=b.name,_.checked=b.value.includes(g.value));const T=ne(`${O}-wrapper`,{[`${O}-rtl`]:y==="rtl",[`${O}-wrapper-checked`]:_.checked,[`${O}-wrapper-disabled`]:E,[`${O}-wrapper-in-form-item`]:x},S?.className,o,i,N),D=ne({[`${O}-indeterminate`]:s},wb,N),j=s?"mixed":void 0;return I(l.createElement(vg,{component:"Checkbox",disabled:E},l.createElement("label",{className:T,style:Object.assign(Object.assign({},S?.style),c),onMouseEnter:u,onMouseLeave:d},l.createElement(UA,Object.assign({"aria-checked":j},_,{prefixCls:O,className:D,disabled:E,ref:t})),a!==void 0&&l.createElement("span",null,a))))},cfe=l.forwardRef(lfe),lL=cfe;var ufe=globalThis&&globalThis.__rest||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{defaultValue:n,children:r,options:o=[],prefixCls:i,className:a,rootClassName:s,style:c,onChange:u}=e,d=ufe(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:p}=l.useContext(St),[g,v]=l.useState(d.value||n||[]),[y,S]=l.useState([]);l.useEffect(()=>{"value"in d&&v(d.value||[])},[d.value]);const b=l.useMemo(()=>o.map(P=>typeof P=="string"||typeof P=="number"?{label:P,value:P}:P),[o]),x=P=>{S(M=>M.filter(A=>A!==P))},C=P=>{S(M=>[].concat(Ze(M),[P]))},E=P=>{const M=g.indexOf(P.value),A=Ze(g);M===-1?A.push(P.value):A.splice(M,1),"value"in d||v(A),u?.(A.filter(B=>y.includes(B)).sort((B,F)=>{const H=b.findIndex(V=>V.value===B),W=b.findIndex(V=>V.value===F);return H-W}))},$=f("checkbox",i),O=`${$}-group`,[I,N]=aL($),_=vr(d,["value","disabled"]),T=o.length?b.map(P=>l.createElement(lL,{prefixCls:$,key:P.value.toString(),disabled:"disabled"in P?P.disabled:d.disabled,value:P.value,checked:g.includes(P.value),onChange:P.onChange,className:`${O}-item`,style:P.style,title:P.title},P.label)):r,D={toggleOption:E,value:g,disabled:d.disabled,name:d.name,registerValue:C,cancelValue:x},j=ne(O,{[`${O}-rtl`]:p==="rtl"},a,s,N);return I(l.createElement("div",Object.assign({className:j,style:c},_,{ref:t}),l.createElement(sL.Provider,{value:D},T)))},ffe=l.forwardRef(dfe),hfe=l.memo(ffe),a3=lL;a3.Group=hfe;a3.__ANT_CHECKBOX=!0;const fd=a3,pfe=l.createContext({}),cL=pfe,mfe=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"}}}},gfe=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},vfe=(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}`]={display:"block",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},cE=(e,t)=>vfe(e,t),yfe=(e,t,n)=>({[`@media (min-width: ${t}px)`]:Object.assign({},cE(e,n))}),bfe=Pn("Grid",e=>[mfe(e)]),xfe=Pn("Grid",e=>{const t=sn(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[gfe(t),cE(t,""),cE(t,"-xs"),Object.keys(n).map(r=>yfe(t,n[r],r)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]});var wfe=globalThis&&globalThis.__rest||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}=l.useContext(St),{gutter:o,wrap:i,supportFlexGap:a}=l.useContext(cL),{prefixCls:s,span:c,order:u,offset:d,push:f,pull:p,className:g,children:v,flex:y,style:S}=e,b=wfe(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),x=n("col",s),[C,E]=xfe(x);let $={};Cfe.forEach(N=>{let _={};const T=e[N];typeof T=="number"?_.span=T:typeof T=="object"&&(_=T||{}),delete b[N],$=Object.assign(Object.assign({},$),{[`${x}-${N}-${_.span}`]:_.span!==void 0,[`${x}-${N}-order-${_.order}`]:_.order||_.order===0,[`${x}-${N}-offset-${_.offset}`]:_.offset||_.offset===0,[`${x}-${N}-push-${_.push}`]:_.push||_.push===0,[`${x}-${N}-pull-${_.pull}`]:_.pull||_.pull===0,[`${x}-${N}-flex-${_.flex}`]:_.flex||_.flex==="auto",[`${x}-rtl`]:r==="rtl"})});const O=ne(x,{[`${x}-${c}`]:c!==void 0,[`${x}-order-${u}`]:u,[`${x}-offset-${d}`]:d,[`${x}-push-${f}`]:f,[`${x}-pull-${p}`]:p},g,$,E),I={};if(o&&o[0]>0){const N=o[0]/2;I.paddingLeft=N,I.paddingRight=N}if(o&&o[1]>0&&!a){const N=o[1]/2;I.paddingTop=N,I.paddingBottom=N}return y&&(I.flex=Sfe(y),i===!1&&!I.minWidth&&(I.minWidth=0)),C(l.createElement("div",Object.assign({},b,{style:Object.assign(Object.assign({},I),S),className:O,ref:t}),v))}),q=Efe,uL=()=>{const[e,t]=l.useState(!1);return l.useEffect(()=>{t(Ute())},[]),e};var $fe=globalThis&&globalThis.__rest||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 Ofe=l.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:i,style:a,children:s,gutter:c=0,wrap:u}=e,d=$fe(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:p}=l.useContext(St),[g,v]=l.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[y,S]=l.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),b=D6(o,y),x=D6(r,y),C=uL(),E=l.useRef(c),$=LD();l.useEffect(()=>{const H=$.subscribe(W=>{S(W);const V=E.current||0;(!Array.isArray(V)&&typeof V=="object"||Array.isArray(V)&&(typeof V[0]=="object"||typeof V[1]=="object"))&&v(W)});return()=>$.unsubscribe(H)},[]);const O=()=>{const H=[void 0,void 0];return(Array.isArray(c)?c:[c,void 0]).forEach((V,K)=>{if(typeof V=="object")for(let G=0;G0?T[0]/-2:void 0,M=T[1]!=null&&T[1]>0?T[1]/-2:void 0;P&&(j.marginLeft=P,j.marginRight=P),C?[,j.rowGap]=T:M&&(j.marginTop=M,j.marginBottom=M);const[A,B]=T,F=l.useMemo(()=>({gutter:[A,B],wrap:u,supportFlexGap:C}),[A,B,u,C]);return N(l.createElement(cL.Provider,{value:F},l.createElement("div",Object.assign({},d,{className:D,style:Object.assign(Object.assign({},j),a),ref:t}),s)))}),Oe=Ofe;var dL=Ne.forwardRef(function(e,t){var n,r=e.prefixCls,o=e.forceRender,i=e.className,a=e.style,s=e.children,c=e.isActive,u=e.role,d=Ne.useState(c||o),f=me(d,2),p=f[0],g=f[1];return Ne.useEffect(function(){(o||c)&&g(!0)},[o,c]),p?Ne.createElement("div",{ref:t,className:ne("".concat(r,"-content"),(n={},ae(n,"".concat(r,"-content-active"),c),ae(n,"".concat(r,"-content-inactive"),!c),n),i),style:a,role:u},Ne.createElement("div",{className:"".concat(r,"-content-box")},s)):null});dL.displayName="PanelContent";var Ife=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],fL=Ne.forwardRef(function(e,t){var n,r,o=e.showArrow,i=o===void 0?!0:o,a=e.headerClass,s=e.isActive,c=e.onItemClick,u=e.forceRender,d=e.className,f=e.prefixCls,p=e.collapsible,g=e.accordion,v=e.panelKey,y=e.extra,S=e.header,b=e.expandIcon,x=e.openMotion,C=e.destroyInactivePanel,E=e.children,$=Ft(e,Ife),O=p==="disabled",I=p==="header",N=p==="icon",_=y!=null&&typeof y!="boolean",T=function(){c?.(v)},D=function(F){(F.key==="Enter"||F.keyCode===He.ENTER||F.which===He.ENTER)&&T()},j=typeof b=="function"?b(e):Ne.createElement("i",{className:"arrow"});j&&(j=Ne.createElement("div",{className:"".concat(f,"-expand-icon"),onClick:["header","icon"].includes(p)?T:void 0},j));var P=ne((n={},ae(n,"".concat(f,"-item"),!0),ae(n,"".concat(f,"-item-active"),s),ae(n,"".concat(f,"-item-disabled"),O),n),d),M=ne((r={},ae(r,"".concat(f,"-header"),!0),ae(r,"headerClass",a),ae(r,"".concat(f,"-header-collapsible-only"),I),ae(r,"".concat(f,"-icon-collapsible-only"),N),r)),A={className:M,"aria-expanded":s,"aria-disabled":O,onKeyDown:D};return!I&&!N&&(A.onClick=T,A.role=g?"tab":"button",A.tabIndex=O?-1:0),Ne.createElement("div",Re({},$,{ref:t,className:P}),Ne.createElement("div",A,i&&j,Ne.createElement("span",{className:"".concat(f,"-header-text"),onClick:p==="header"?T:void 0},S),_&&Ne.createElement("div",{className:"".concat(f,"-extra")},y)),Ne.createElement(zi,Re({visible:s,leavedClassName:"".concat(f,"-content-hidden")},x,{forceRender:u,removeOnLeave:C}),function(B,F){var H=B.className,W=B.style;return Ne.createElement(dL,{ref:F,prefixCls:f,className:H,style:W,isActive:s,forceRender:u,role:g?"tabpanel":void 0},E)}))}),Rfe=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],Nfe=function(t,n){var r=n.prefixCls,o=n.accordion,i=n.collapsible,a=n.destroyInactivePanel,s=n.onItemClick,c=n.activeKey,u=n.openMotion,d=n.expandIcon;return t.map(function(f,p){var g=f.children,v=f.label,y=f.key,S=f.collapsible,b=f.onItemClick,x=f.destroyInactivePanel,C=Ft(f,Rfe),E=String(y??p),$=S??i,O=x??a,I=function(T){$!=="disabled"&&(s(T),b?.(T))},N=!1;return o?N=c[0]===E:N=c.indexOf(E)>-1,Ne.createElement(fL,Re({},C,{prefixCls:r,key:E,panelKey:E,isActive:N,accordion:o,openMotion:u,expandIcon:d,header:v,collapsible:$,onItemClick:I,destroyInactivePanel:O}),g)})},_fe=function(t,n,r){if(!t)return null;var o=r.prefixCls,i=r.accordion,a=r.collapsible,s=r.destroyInactivePanel,c=r.onItemClick,u=r.activeKey,d=r.openMotion,f=r.expandIcon,p=t.key||String(n),g=t.props,v=g.header,y=g.headerClass,S=g.destroyInactivePanel,b=g.collapsible,x=g.onItemClick,C=!1;i?C=u[0]===p:C=u.indexOf(p)>-1;var E=b??a,$=function(N){E!=="disabled"&&(c(N),x?.(N))},O={key:p,panelKey:p,header:v,headerClass:y,isActive:C,prefixCls:o,destroyInactivePanel:S??s,openMotion:d,accordion:i,children:t.props.children,onItemClick:$,expandIcon:f,collapsible:E};return typeof t.type=="string"?t:(Object.keys(O).forEach(function(I){typeof O[I]>"u"&&delete O[I]}),Ne.cloneElement(t,O))};function Tfe(e,t,n){return Array.isArray(e)?Nfe(e,n):zo(t).map(function(r,o){return _fe(r,o,n)})}function Pfe(e){var t=e;if(!Array.isArray(t)){var n=Wt(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var jfe=Ne.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,o=e.destroyInactivePanel,i=o===void 0?!1:o,a=e.style,s=e.accordion,c=e.className,u=e.children,d=e.collapsible,f=e.openMotion,p=e.expandIcon,g=e.activeKey,v=e.defaultActiveKey,y=e.onChange,S=e.items,b=ne(r,c),x=Vn([],{value:g,onChange:function(_){return y?.(_)},defaultValue:v,postState:Pfe}),C=me(x,2),E=C[0],$=C[1],O=function(_){return $(function(){if(s)return E[0]===_?[]:[_];var T=E.indexOf(_),D=T>-1;return D?E.filter(function(j){return j!==_}):[].concat(Ze(E),[_])})};dr(!u,"`children` will be removed in next major version. Please use `items` instead.");var I=Tfe(S,u,{prefixCls:r,accordion:s,openMotion:f,expandIcon:p,collapsible:d,destroyInactivePanel:i,onItemClick:O,activeKey:E});return Ne.createElement("div",{ref:t,className:b,style:a,role:s?"tablist":void 0},I)});const s3=Object.assign(jfe,{Panel:fL});s3.Panel;const Mfe=l.forwardRef((e,t)=>{const{getPrefixCls:n}=l.useContext(St),{prefixCls:r,className:o,showArrow:i=!0}=e,a=n("collapse",r),s=ne({[`${a}-no-arrow`]:!i},o);return l.createElement(s3.Panel,Object.assign({ref:t},e,{prefixCls:a,className:s}))}),kfe=Mfe,Dfe=e=>{const{componentCls:t,collapseContentBg:n,padding:r,collapseContentPaddingHorizontal:o,collapseHeaderBg:i,collapseHeaderPadding:a,collapseHeaderPaddingSM:s,collapseHeaderPaddingLG:c,collapsePanelBorderRadius:u,lineWidth:d,lineType:f,colorBorder:p,colorText:g,colorTextHeading:v,colorTextDisabled:y,fontSize:S,fontSizeLG:b,lineHeight:x,marginSM:C,paddingSM:E,paddingLG:$,paddingXS:O,motionDurationSlow:I,fontSizeIcon:N}=e,_=`${d}px ${f} ${p}`;return{[t]:Object.assign(Object.assign({},En(e)),{backgroundColor:i,border:_,borderBottom:0,borderRadius:`${u}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:_,"&:last-child":{[` &, & > ${t}-header`]:{borderRadius:`0 0 ${u}px ${u}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,paddingInlineStart:E,color:v,lineHeight:x,cursor:"pointer",transition:`all ${I}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:S*x,display:"flex",alignItems:"center",paddingInlineEnd:C,marginInlineStart:r-E},[`${t}-arrow`]:Object.assign(Object.assign({},xh()),{fontSize:N,svg:{transition:`transform ${I}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:g,backgroundColor:n,borderTop:_,[`& > ${t}-content-box`]:{padding:`${r}px ${o}px`},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:s,paddingInlineStart:O,[`> ${t}-expand-icon`]:{marginInlineStart:E-O}},[`> ${t}-content > ${t}-content-box`]:{padding:E}}},"&-large":{[`> ${t}-item`]:{fontSize:b,[`> ${t}-header`]:{padding:c,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:b*x,marginInlineStart:$-r}},[`> ${t}-content > ${t}-content-box`]:{padding:$}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${u}px ${u}px`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:y,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:C}}}}})}},Afe=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},Lfe=e=>{const{componentCls:t,collapseHeaderBg:n,paddingXXS:r,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[` > ${t}-item:last-child, > ${t}-item:last-child ${t}-header `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},Ffe=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},zfe=Pn("Collapse",e=>{const t=sn(e,{collapseContentBg:e.colorBgContainer,collapseHeaderBg:e.colorFillAlter,collapseHeaderPadding:`${e.paddingSM}px ${e.padding}px`,collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG,collapseContentPaddingHorizontal:16});return[Dfe(t),Lfe(t),Ffe(t),Afe(t),Nb(t)]}),Bfe=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:o}=l.useContext(St),{prefixCls:i,className:a,rootClassName:s,style:c,bordered:u=!0,ghost:d,size:f,expandIconPosition:p="start",children:g,expandIcon:v}=e,y=Zo(_=>{var T;return(T=f??_)!==null&&T!==void 0?T:"middle"}),S=n("collapse",i),b=n(),[x,C]=zfe(S),E=l.useMemo(()=>p==="left"?"start":p==="right"?"end":p,[p]),$=function(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const T=v?v(_):l.createElement(ud,{rotate:_.isActive?90:void 0});return go(T,()=>({className:ne(T.props.className,`${S}-arrow`)}))},O=ne(`${S}-icon-position-${E}`,{[`${S}-borderless`]:!u,[`${S}-rtl`]:r==="rtl",[`${S}-ghost`]:!!d,[`${S}-${y}`]:y!=="middle"},o?.className,a,s,C),I=Object.assign(Object.assign({},Wm(b)),{motionAppear:!1,leavedClassName:`${S}-content-hidden`}),N=l.useMemo(()=>g?zo(g).map((_,T)=>{var D,j;if(!((D=_.props)===null||D===void 0)&&D.disabled){const P=(j=_.key)!==null&&j!==void 0?j:String(T),{disabled:M,collapsible:A}=_.props,B=Object.assign(Object.assign({},vr(_.props,["disabled"])),{key:P,collapsible:A??(M?"disabled":void 0)});return go(_,B)}return _}):null,[g]);return x(l.createElement(s3,Object.assign({ref:t,openMotion:I},vr(e,["rootClassName"]),{expandIcon:$,prefixCls:S,className:O,style:Object.assign(Object.assign({},o?.style),c)}),N))}),uc=Object.assign(Bfe,{Panel:kfe}),Hfe=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o}=e;return{[t]:Object.assign(Object.assign({},En(e)),{borderBlockStart:`${o}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${e.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${t}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},Ufe=Pn("Divider",e=>{const t=sn(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return[Hfe(t)]},{sizePaddingEdgeHorizontal:0});var Wfe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:n,divider:r}=l.useContext(St),{prefixCls:o,type:i="horizontal",orientation:a="center",orientationMargin:s,className:c,rootClassName:u,children:d,dashed:f,plain:p,style:g}=e,v=Wfe(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),y=t("divider",o),[S,b]=Ufe(y),x=a.length>0?`-${a}`:a,C=!!d,E=a==="left"&&s!=null,$=a==="right"&&s!=null,O=ne(y,r?.className,b,`${y}-${i}`,{[`${y}-with-text`]:C,[`${y}-with-text${x}`]:C,[`${y}-dashed`]:!!f,[`${y}-plain`]:!!p,[`${y}-rtl`]:n==="rtl",[`${y}-no-default-orientation-margin-left`]:E,[`${y}-no-default-orientation-margin-right`]:$},c,u),I=l.useMemo(()=>typeof s=="number"?s:/^\d+$/.test(s)?Number(s):s,[s]),N=Object.assign(Object.assign({},E&&{marginLeft:I}),$&&{marginRight:I});return S(l.createElement("div",Object.assign({className:O,style:Object.assign(Object.assign({},r?.style),g)},v,{role:"separator"}),d&&i!=="vertical"&&l.createElement("span",{className:`${y}-inner-text`,style:N},d)))},Jt=Vfe;var Kfe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};const Gfe=Kfe;var Yfe=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:Gfe}))};const qfe=l.forwardRef(Yfe);function uE(){return typeof BigInt=="function"}function hL(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function ed(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),i=o[0]||"0",a=o[1]||"0";i==="0"&&a==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:i,decimalStr:a,fullStr:"".concat(s).concat(r)}}function l3(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function Ku(e){var t=String(e);if(l3(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&c3(t)?t.length-t.indexOf(".")-1:0}function Vb(e){var t=String(e);if(l3(e)){if(e>Number.MAX_SAFE_INTEGER)return String(uE()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":ed("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),Qfe=function(){function e(t){if(vo(this,e),ae(this,"origin",""),ae(this,"number",void 0),ae(this,"empty",void 0),hL(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return yo(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var o=this.number+r;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(oNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Vb(this.number):this.origin}}]),e}();function Os(e){return uE()?new Xfe(e):new Qfe(e)}function ly(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var o=ed(e),i=o.negativeStr,a=o.integerStr,s=o.decimalStr,c="".concat(t).concat(s),u="".concat(i).concat(a);if(n>=0){var d=Number(s[n]);if(d>=5&&!r){var f=Os(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-d));return ly(f.toString(),t,n,r)}return n===0?u:"".concat(u).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return c===".0"?u:"".concat(u).concat(c)}function Xd(e){return!!(e.addonBefore||e.addonAfter)}function TS(e){return!!(e.prefix||e.suffix||e.allowClear)}function gm(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){o=Object.create(t,{target:{value:e},currentTarget:{value:e}}),e.value=r,n(o);return}n(o)}}function pL(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)}}}}function dE(e){return typeof e>"u"||e===null?"":String(e)}var u3=function(t){var n,r,o=t.inputElement,i=t.prefixCls,a=t.prefix,s=t.suffix,c=t.addonBefore,u=t.addonAfter,d=t.className,f=t.style,p=t.disabled,g=t.readOnly,v=t.focused,y=t.triggerFocus,S=t.allowClear,b=t.value,x=t.handleReset,C=t.hidden,E=t.classes,$=t.classNames,O=t.dataAttrs,I=t.styles,N=t.components,_=N?.affixWrapper||"span",T=N?.groupWrapper||"span",D=N?.wrapper||"span",j=N?.groupAddon||"span",P=l.useRef(null),M=function(se){var oe;(oe=P.current)!==null&&oe!==void 0&&oe.contains(se.target)&&y?.()},A=function(){var se;if(!S)return null;var oe=!p&&!g&&b,ie="".concat(i,"-clear-icon"),ge=Wt(S)==="object"&&S!==null&&S!==void 0&&S.clearIcon?S.clearIcon:"✖";return Ne.createElement("span",{onClick:x,onMouseDown:function(he){return he.preventDefault()},className:ne(ie,(se={},ae(se,"".concat(ie,"-hidden"),!oe),ae(se,"".concat(ie,"-has-suffix"),!!s),se)),role:"button",tabIndex:-1},ge)},B=l.cloneElement(o,{value:b,hidden:C,className:ne((n=o.props)===null||n===void 0?void 0:n.className,!TS(t)&&!Xd(t)&&d)||null,style:le(le({},(r=o.props)===null||r===void 0?void 0:r.style),!TS(t)&&!Xd(t)?f:{})});if(TS(t)){var F,H="".concat(i,"-affix-wrapper"),W=ne(H,(F={},ae(F,"".concat(H,"-disabled"),p),ae(F,"".concat(H,"-focused"),v),ae(F,"".concat(H,"-readonly"),g),ae(F,"".concat(H,"-input-with-clear-btn"),s&&S&&b),F),!Xd(t)&&d,E?.affixWrapper,$?.affixWrapper),V=(s||S)&&Ne.createElement("span",{className:ne("".concat(i,"-suffix"),$?.suffix),style:I?.suffix},A(),s);B=Ne.createElement(_,Re({className:W,style:Xd(t)?void 0:f,hidden:!Xd(t)&&C,onClick:M},O?.affixWrapper,{ref:P}),a&&Ne.createElement("span",{className:ne("".concat(i,"-prefix"),$?.prefix),style:I?.prefix},a),l.cloneElement(o,{value:b,hidden:null}),V)}if(Xd(t)){var K="".concat(i,"-group"),G="".concat(K,"-addon"),re=ne("".concat(i,"-wrapper"),K,E?.wrapper),Q=ne("".concat(i,"-group-wrapper"),d,E?.group);return Ne.createElement(T,{className:Q,style:f,hidden:C},Ne.createElement(D,{className:re},c&&Ne.createElement(j,{className:G},c),l.cloneElement(B,{hidden:null}),u&&Ne.createElement(j,{className:G},u)))}return B},Zfe=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],Jfe=l.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,s=e.onKeyDown,c=e.prefixCls,u=c===void 0?"rc-input":c,d=e.disabled,f=e.htmlSize,p=e.className,g=e.maxLength,v=e.suffix,y=e.showCount,S=e.type,b=S===void 0?"text":S,x=e.classes,C=e.classNames,E=e.styles,$=Ft(e,Zfe),O=Vn(e.defaultValue,{value:e.value}),I=me(O,2),N=I[0],_=I[1],T=l.useState(!1),D=me(T,2),j=D[0],P=D[1],M=l.useRef(null),A=function(Q){M.current&&pL(M.current,Q)};l.useImperativeHandle(t,function(){return{focus:A,blur:function(){var Q;(Q=M.current)===null||Q===void 0||Q.blur()},setSelectionRange:function(Q,fe,se){var oe;(oe=M.current)===null||oe===void 0||oe.setSelectionRange(Q,fe,se)},select:function(){var Q;(Q=M.current)===null||Q===void 0||Q.select()},input:M.current}}),l.useEffect(function(){P(function(re){return re&&d?!1:re})},[d]);var B=function(Q){e.value===void 0&&_(Q.target.value),M.current&&gm(M.current,Q,r)},F=function(Q){a&&Q.key==="Enter"&&a(Q),s?.(Q)},H=function(Q){P(!0),o?.(Q)},W=function(Q){P(!1),i?.(Q)},V=function(Q){_(""),A(),M.current&&gm(M.current,Q,r)},K=function(){var Q=vr(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return Ne.createElement("input",Re({autoComplete:n},Q,{onChange:B,onFocus:H,onBlur:W,onKeyDown:F,className:ne(u,ae({},"".concat(u,"-disabled"),d),C?.input),style:E?.input,ref:M,size:f,type:b}))},G=function(){var Q=Number(g)>0;if(v||y){var fe=dE(N),se=Ze(fe).length,oe=Wt(y)==="object"?y.formatter({value:fe,count:se,maxLength:g}):"".concat(se).concat(Q?" / ".concat(g):"");return Ne.createElement(Ne.Fragment,null,!!y&&Ne.createElement("span",{className:ne("".concat(u,"-show-count-suffix"),ae({},"".concat(u,"-show-count-has-suffix"),!!v),C?.count),style:le({},E?.count)},oe),v)}return null};return Ne.createElement(u3,Re({},$,{prefixCls:u,className:p,inputElement:K(),handleReset:V,value:dE(N),focused:j,triggerFocus:A,suffix:G(),disabled:d,classes:x,classNames:C,styles:E}))});function ehe(e,t){var n=l.useRef(null);function r(){try{var i=e.selectionStart,a=e.selectionEnd,s=e.value,c=s.substring(0,i),u=s.substring(a);n.current={start:i,end:a,value:s,beforeTxt:c,afterTxt:u}}catch{}}function o(){if(e&&n.current&&t)try{var i=e.value,a=n.current,s=a.beforeTxt,c=a.afterTxt,u=a.start,d=i.length;if(i.endsWith(c))d=i.length-n.current.afterTxt.length;else if(i.startsWith(s))d=s.length;else{var f=s[u-1],p=i.indexOf(f,u-1);p!==-1&&(d=p+1)}e.setSelectionRange(d,d)}catch(g){dr(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(g.message))}}return[r,o]}var the=function(){var t=l.useState(!1),n=me(t,2),r=n[0],o=n[1];return Wn(function(){o(_b())},[]),r},nhe=200,rhe=600;function ohe(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,i=e.downDisabled,a=e.onStep,s=l.useRef(),c=l.useRef([]),u=l.useRef();u.current=a;var d=function(){clearTimeout(s.current)},f=function(C,E){C.preventDefault(),d(),u.current(E);function $(){u.current(E),s.current=setTimeout($,nhe)}s.current=setTimeout($,rhe)};l.useEffect(function(){return function(){d(),c.current.forEach(function(x){return yn.cancel(x)})}},[]);var p=the();if(p)return null;var g="".concat(t,"-handler"),v=ne(g,"".concat(g,"-up"),ae({},"".concat(g,"-up-disabled"),o)),y=ne(g,"".concat(g,"-down"),ae({},"".concat(g,"-down-disabled"),i)),S=function(){return c.current.push(yn(d))},b={unselectable:"on",role:"button",onMouseUp:S,onMouseLeave:S};return l.createElement("div",{className:"".concat(g,"-wrap")},l.createElement("span",Re({},b,{onMouseDown:function(C){f(C,!0)},"aria-label":"Increase Value","aria-disabled":o,className:v}),n||l.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),l.createElement("span",Re({},b,{onMouseDown:function(C){f(C,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:y}),r||l.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function A6(e){var t=typeof e=="number"?Vb(e):ed(e).fullStr,n=t.includes(".");return n?ed(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const ihe=function(){var e=l.useRef(0),t=function(){yn.cancel(e.current)};return l.useEffect(function(){return t},[]),function(n){t(),e.current=yn(function(){n()})}};var ahe=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],she=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],L6=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},F6=function(t){var n=Os(t);return n.isInvalidate()?null:n},lhe=l.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-input-number":r,i=e.className,a=e.style,s=e.min,c=e.max,u=e.step,d=u===void 0?1:u,f=e.defaultValue,p=e.value,g=e.disabled,v=e.readOnly,y=e.upHandler,S=e.downHandler,b=e.keyboard,x=e.controls,C=x===void 0?!0:x,E=e.classNames,$=e.stringMode,O=e.parser,I=e.formatter,N=e.precision,_=e.decimalSeparator,T=e.onChange,D=e.onInput,j=e.onPressEnter,P=e.onStep,M=Ft(e,ahe),A="".concat(o,"-input"),B=l.useRef(null),F=l.useState(!1),H=me(F,2),W=H[0],V=H[1],K=l.useRef(!1),G=l.useRef(!1),re=l.useRef(!1),Q=l.useState(function(){return Os(p??f)}),fe=me(Q,2),se=fe[0],oe=fe[1];function ie(pe){p===void 0&&oe(pe)}var ge=l.useCallback(function(pe,Te){if(!Te)return N>=0?N:Math.max(Ku(pe),Ku(d))},[N,d]),ve=l.useCallback(function(pe){var Te=String(pe);if(O)return O(Te);var ze=Te;return _&&(ze=ze.replace(_,".")),ze.replace(/[^\w.-]+/g,"")},[O,_]),he=l.useRef(""),be=l.useCallback(function(pe,Te){if(I)return I(pe,{userTyping:Te,input:String(he.current)});var ze=typeof pe=="number"?Vb(pe):pe;if(!Te){var ke=ge(ze,Te);if(c3(ze)&&(_||ke>=0)){var et=_||".";ze=ly(ze,et,ke)}}return ze},[I,ge,_]),ye=l.useState(function(){var pe=f??p;return se.isInvalidate()&&["string","number"].includes(Wt(pe))?Number.isNaN(pe)?"":pe:be(se.toString(),!1)}),Ce=me(ye,2),Ee=Ce[0],je=Ce[1];he.current=Ee;function De(pe,Te){je(be(pe.isInvalidate()?pe.toString(!1):pe.toString(!Te),Te))}var _e=l.useMemo(function(){return F6(c)},[c,N]),Me=l.useMemo(function(){return F6(s)},[s,N]),Ie=l.useMemo(function(){return!_e||!se||se.isInvalidate()?!1:_e.lessEquals(se)},[_e,se]),Fe=l.useMemo(function(){return!Me||!se||se.isInvalidate()?!1:se.lessEquals(Me)},[Me,se]),Ge=ehe(B.current,W),ft=me(Ge,2),it=ft[0],qe=ft[1],at=function(Te){return _e&&!Te.lessEquals(_e)?_e:Me&&!Me.lessEquals(Te)?Me:null},U=function(Te){return!at(Te)},k=function(Te,ze){var ke=Te,et=U(ke)||ke.isEmpty();if(!ke.isEmpty()&&!ze&&(ke=at(ke)||ke,et=!0),!v&&!g&&et){var mt=ke.toString(),Ve=ge(mt,ze);return Ve>=0&&(ke=Os(ly(mt,".",Ve)),U(ke)||(ke=Os(ly(mt,".",Ve,!0)))),ke.equals(se)||(ie(ke),T?.(ke.isEmpty()?null:L6($,ke)),p===void 0&&De(ke,ze)),ke}return se},L=ihe(),X=function pe(Te){if(it(),he.current=Te,je(Te),!G.current){var ze=ve(Te),ke=Os(ze);ke.isNaN()||k(ke,!0)}D?.(Te),L(function(){var et=Te;O||(et=Te.replace(/。/g,".")),et!==Te&&pe(et)})},ee=function(){G.current=!0},$e=function(){G.current=!1,X(B.current.value)},we=function(Te){X(Te.target.value)},de=function(Te){var ze;if(!(Te&&Ie||!Te&&Fe)){K.current=!1;var ke=Os(re.current?A6(d):d);Te||(ke=ke.negate());var et=(se||Os(0)).add(ke.toString()),mt=k(et,!1);P?.(L6($,mt),{offset:re.current?A6(d):d,type:Te?"up":"down"}),(ze=B.current)===null||ze===void 0||ze.focus()}},Se=function(Te){var ze=Os(ve(Ee)),ke=ze;ze.isNaN()?ke=se:ke=k(ze,Te),p!==void 0?De(se,!1):ke.isNaN()||De(ke,!1)},Ae=function(){K.current=!0},We=function(Te){var ze=Te.key,ke=Te.shiftKey;K.current=!0,re.current=ke,ze==="Enter"&&(G.current||(K.current=!1),Se(!1),j?.(Te)),b!==!1&&!G.current&&["Up","ArrowUp","Down","ArrowDown"].includes(ze)&&(de(ze==="Up"||ze==="ArrowUp"),Te.preventDefault())},Ke=function(){K.current=!1,re.current=!1},tt=function(){Se(!1),V(!1),K.current=!1};return Lf(function(){se.isInvalidate()||De(se,!1)},[N]),Lf(function(){var pe=Os(p);oe(pe);var Te=Os(ve(Ee));(!pe.equals(Te)||!K.current||I)&&De(pe,K.current)},[p]),Lf(function(){I&&qe()},[Ee]),l.createElement("div",{className:ne(o,E?.input,i,(n={},ae(n,"".concat(o,"-focused"),W),ae(n,"".concat(o,"-disabled"),g),ae(n,"".concat(o,"-readonly"),v),ae(n,"".concat(o,"-not-a-number"),se.isNaN()),ae(n,"".concat(o,"-out-of-range"),!se.isInvalidate()&&!U(se)),n)),style:a,onFocus:function(){V(!0)},onBlur:tt,onKeyDown:We,onKeyUp:Ke,onCompositionStart:ee,onCompositionEnd:$e,onBeforeInput:Ae},C&&l.createElement(ohe,{prefixCls:o,upNode:y,downNode:S,upDisabled:Ie,downDisabled:Fe,onStep:de}),l.createElement("div",{className:"".concat(A,"-wrap")},l.createElement("input",Re({autoComplete:"off",role:"spinbutton","aria-valuemin":s,"aria-valuemax":c,"aria-valuenow":se.isInvalidate()?null:se.toString(),step:d},M,{ref:li(B,t),className:A,value:Ee,onChange:we,disabled:g,readOnly:v}))))}),mL=l.forwardRef(function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,i=e.value,a=e.prefix,s=e.suffix,c=e.addonBefore,u=e.addonAfter,d=e.classes,f=e.className,p=e.classNames,g=Ft(e,she),v=l.useRef(null),y=function(b){v.current&&pL(v.current,b)};return l.createElement(u3,{inputElement:l.createElement(lhe,Re({prefixCls:o,disabled:n,classNames:p,ref:li(v,t)},g)),className:f,triggerFocus:y,prefixCls:o,value:i,disabled:n,style:r,prefix:a,suffix:s,addonAfter:u,addonBefore:c,classes:d,classNames:p,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});mL.displayName="InputNumber";const z6=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:o}=e;const i=t==="lg"?o:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:i,borderEndEndRadius:i},[`${n}-handler-up`]:{borderStartEndRadius:i},[`${n}-handler-down`]:{borderEndEndRadius:i}}}},che=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorBorder:o,borderRadius:i,fontSizeLG:a,controlHeightLG:s,controlHeightSM:c,colorError:u,inputPaddingHorizontalSM:d,colorTextDescription:f,motionDurationMid:p,colorPrimary:g,inputPaddingHorizontal:v,inputPaddingVertical:y,colorBgContainer:S,colorTextDisabled:b,borderRadiusSM:x,borderRadiusLG:C,controlWidth:E,handleVisible:$}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},En(e)),Mh(e)),Bb(e,t)),{display:"inline-block",width:E,margin:0,padding:0,border:`${n}px ${r} ${o}`,borderRadius:i,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,borderRadius:C,[`input${t}-input`]:{height:s-2*n}},"&-sm":{padding:0,borderRadius:x,[`input${t}-input`]:{height:c-2*n,padding:`0 ${d}px`}},"&:hover":Object.assign({},jh(e)),"&-focused":Object.assign({},dd(e)),"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:u}}},"&-group":Object.assign(Object.assign(Object.assign({},En(e)),GA(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:C,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:x}},[`${t}-wrapper-disabled > ${t}-group-addon`]:Object.assign({},t3(e))}}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},En(e)),{width:"100%",padding:`${y}px ${v}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${p} linear`,appearance:"textfield",fontSize:"inherit"}),VA(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:Object.assign(Object.assign(Object.assign({[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",background:S,borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,opacity:$===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${p} linear ${p}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${t}-handler-up-inner, ${t}-handler-down-inner `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:f,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${r} ${o}`,transition:`all ${p} linear`,"&:active":{background:e.colorFillAlter},"&:hover":{height:"60%",[` ${t}-handler-up-inner, ${t}-handler-down-inner `]:{color:g}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},xh()),{color:f,transition:`all ${p} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${r} ${o}`,borderEndEndRadius:i}},z6(e,"lg")),z6(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[` ${t}-handler-up-disabled, ${t}-handler-down-disabled `]:{cursor:"not-allowed"},[` ${t}-handler-up-disabled:hover &-handler-up-inner, ${t}-handler-down-disabled:hover &-handler-down-inner `]:{color:b}})},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},uhe=e=>{const{componentCls:t,inputPaddingVertical:n,inputPaddingHorizontal:r,inputAffixPadding:o,controlWidth:i,borderRadiusLG:a,borderRadiusSM:s}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},Mh(e)),Bb(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a},"&-sm":{borderRadius:s},[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},jh(e)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`input${t}-input`]:{padding:`${n}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:r,marginInlineStart:o}}})}},dhe=Pn("InputNumber",e=>{const t=_g(e);return[che(t),uhe(t),yg(t)]},e=>({controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:"auto"}));var fhe=globalThis&&globalThis.__rest||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}=l.useContext(St),o=l.useRef(null);l.useImperativeHandle(t,()=>o.current);const{className:i,rootClassName:a,size:s,disabled:c,prefixCls:u,addonBefore:d,addonAfter:f,prefix:p,bordered:g=!0,readOnly:v,status:y,controls:S}=e,b=fhe(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),x=n("input-number",u),[C,E]=dhe(x),{compactSize:$,compactItemClassnames:O}=gu(x,r);let I=l.createElement(qfe,{className:`${x}-handler-up-inner`}),N=l.createElement($g,{className:`${x}-handler-down-inner`});const _=typeof S=="boolean"?S:void 0;typeof S=="object"&&(I=typeof S.upIcon>"u"?I:l.createElement("span",{className:`${x}-handler-up-inner`},S.upIcon),N=typeof S.downIcon>"u"?N:l.createElement("span",{className:`${x}-handler-down-inner`},S.downIcon));const{hasFeedback:T,status:D,isFormItemInput:j,feedbackIcon:P}=l.useContext(Ai),M=Ih(D,y),A=Zo(K=>{var G;return(G=s??$)!==null&&G!==void 0?G:K}),B=l.useContext(cs),F=c??B,H=ne({[`${x}-lg`]:A==="large",[`${x}-sm`]:A==="small",[`${x}-rtl`]:r==="rtl",[`${x}-borderless`]:!g,[`${x}-in-form-item`]:j},Fs(x,M),O,E),W=`${x}-group`,V=l.createElement(mL,Object.assign({ref:o,disabled:F,className:ne(i,a),upHandler:I,downHandler:N,prefixCls:x,readOnly:v,controls:_,prefix:p,suffix:T&&P,addonAfter:f&&l.createElement(sd,null,l.createElement(Gm,{override:!0,status:!0},f)),addonBefore:d&&l.createElement(sd,null,l.createElement(Gm,{override:!0,status:!0},d)),classNames:{input:H},classes:{affixWrapper:ne(Fs(`${x}-affix-wrapper`,M,T),{[`${x}-affix-wrapper-sm`]:A==="small",[`${x}-affix-wrapper-lg`]:A==="large",[`${x}-affix-wrapper-rtl`]:r==="rtl",[`${x}-affix-wrapper-borderless`]:!g},E),wrapper:ne({[`${W}-rtl`]:r==="rtl",[`${x}-wrapper-disabled`]:F},E),group:ne({[`${x}-group-wrapper-sm`]:A==="small",[`${x}-group-wrapper-lg`]:A==="large",[`${x}-group-wrapper-rtl`]:r==="rtl"},Fs(`${x}-group-wrapper`,M,T),E)}},b));return C(V)}),vL=gL,hhe=e=>l.createElement(Sh,{theme:{components:{InputNumber:{handleVisible:!0}}}},l.createElement(gL,Object.assign({},e)));vL._InternalPanelDoNotUseOrYouWillBeFired=hhe;const vm=vL,phe=e=>{const{getPrefixCls:t,direction:n}=l.useContext(St),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[s,c]=r3(a),u=ne(i,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},c,o),d=l.useContext(Ai),f=l.useMemo(()=>Object.assign(Object.assign({},d),{isFormItemInput:!1}),[d]);return s(l.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},l.createElement(Ai.Provider,{value:f},e.children)))},mhe=phe;function yL(e,t){const n=l.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,i,a,s;!((o=e.current)===null||o===void 0)&&o.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return l.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function ghe(e){return!!(e.prefix||e.suffix||e.allowClear)}var vhe=globalThis&&globalThis.__rest||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:s,onBlur:c,onFocus:u,suffix:d,allowClear:f,addonAfter:p,addonBefore:g,className:v,style:y,styles:S,rootClassName:b,onChange:x,classNames:C}=e,E=vhe(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:$,direction:O,input:I}=Ne.useContext(St),N=$("input",r),_=l.useRef(null),[T,D]=r3(N),{compactSize:j,compactItemClassnames:P}=gu(N,O),M=Zo(ge=>{var ve;return(ve=a??j)!==null&&ve!==void 0?ve:ge}),A=Ne.useContext(cs),B=s??A,{status:F,hasFeedback:H,feedbackIcon:W}=l.useContext(Ai),V=Ih(F,i),K=ghe(e)||!!H,G=l.useRef(K);l.useEffect(()=>{K&&G.current,G.current=K},[K]);const re=yL(_,!0),Q=ge=>{re(),c?.(ge)},fe=ge=>{re(),u?.(ge)},se=ge=>{re(),x?.(ge)},oe=(H||d)&&Ne.createElement(Ne.Fragment,null,d,H&&W);let ie;return typeof f=="object"&&f?.clearIcon?ie=f:f&&(ie={clearIcon:Ne.createElement(Gs,null)}),T(Ne.createElement(Jfe,Object.assign({ref:li(t,_),prefixCls:N,autoComplete:I?.autoComplete},E,{disabled:B,onBlur:Q,onFocus:fe,style:Object.assign(Object.assign({},I?.style),y),styles:Object.assign(Object.assign({},I?.styles),S),suffix:oe,allowClear:ie,className:ne(v,b,P,I?.className),onChange:se,addonAfter:p&&Ne.createElement(sd,null,Ne.createElement(Gm,{override:!0,status:!0},p)),addonBefore:g&&Ne.createElement(sd,null,Ne.createElement(Gm,{override:!0,status:!0},g)),classNames:Object.assign(Object.assign(Object.assign({},C),I?.classNames),{input:ne({[`${N}-sm`]:M==="small",[`${N}-lg`]:M==="large",[`${N}-rtl`]:O==="rtl",[`${N}-borderless`]:!o},!K&&Fs(N,V),C?.input,(n=I?.classNames)===null||n===void 0?void 0:n.input,D)}),classes:{affixWrapper:ne({[`${N}-affix-wrapper-sm`]:M==="small",[`${N}-affix-wrapper-lg`]:M==="large",[`${N}-affix-wrapper-rtl`]:O==="rtl",[`${N}-affix-wrapper-borderless`]:!o},Fs(`${N}-affix-wrapper`,V,H),D),wrapper:ne({[`${N}-group-rtl`]:O==="rtl"},D),group:ne({[`${N}-group-wrapper-sm`]:M==="small",[`${N}-group-wrapper-lg`]:M==="large",[`${N}-group-wrapper-rtl`]:O==="rtl",[`${N}-group-wrapper-disabled`]:B},Fs(`${N}-group-wrapper`,V,H),D)}})))}),d3=bhe;var xhe={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 whe=xhe;var She=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:whe}))};const Che=l.forwardRef(She);var Ehe={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 $he=Ehe;var Ohe=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:$he}))};const bL=l.forwardRef(Ohe);var Ihe=globalThis&&globalThis.__rest||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?l.createElement(bL,null):l.createElement(Che,null),Nhe={click:"onClick",hover:"onMouseOver"},_he=l.forwardRef((e,t)=>{const{visibilityToggle:n=!0}=e,r=typeof n=="object"&&n.visible!==void 0,[o,i]=l.useState(()=>r?n.visible:!1),a=l.useRef(null);l.useEffect(()=>{r&&i(n.visible)},[r,n]);const s=yL(a),c=()=>{const{disabled:$}=e;$||(o&&s(),i(O=>{var I;const N=!O;return typeof n=="object"&&((I=n.onVisibleChange)===null||I===void 0||I.call(n,N)),N}))},u=$=>{const{action:O="click",iconRender:I=Rhe}=e,N=Nhe[O]||"",_=I(o),T={[N]:c,className:`${$}-icon`,key:"passwordIcon",onMouseDown:D=>{D.preventDefault()},onMouseUp:D=>{D.preventDefault()}};return l.cloneElement(l.isValidElement(_)?_:l.createElement("span",null,_),T)},{className:d,prefixCls:f,inputPrefixCls:p,size:g}=e,v=Ihe(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:y}=l.useContext(St),S=y("input",p),b=y("input-password",f),x=n&&u(b),C=ne(b,d,{[`${b}-${g}`]:!!g}),E=Object.assign(Object.assign({},vr(v,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:C,prefixCls:S,suffix:x});return g&&(E.size=g),l.createElement(d3,Object.assign({ref:li(t,a)},E))}),The=_he;var Phe=globalThis&&globalThis.__rest||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:s=!1,addonAfter:c,loading:u,disabled:d,onSearch:f,onChange:p,onCompositionStart:g,onCompositionEnd:v}=e,y=Phe(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:S,direction:b}=l.useContext(St),x=l.useRef(!1),C=S("input-search",n),E=S("input",r),{compactSize:$}=gu(C,b),O=Zo(V=>{var K;return(K=i??$)!==null&&K!==void 0?K:V}),I=l.useRef(null),N=V=>{V&&V.target&&V.type==="click"&&f&&f(V.target.value,V),p&&p(V)},_=V=>{var K;document.activeElement===((K=I.current)===null||K===void 0?void 0:K.input)&&V.preventDefault()},T=V=>{var K,G;f&&f((G=(K=I.current)===null||K===void 0?void 0:K.input)===null||G===void 0?void 0:G.value,V)},D=V=>{x.current||u||T(V)},j=typeof s=="boolean"?l.createElement(_r,null):null,P=`${C}-button`;let M;const A=s||{},B=A.type&&A.type.__ANT_BUTTON===!0;B||A.type==="button"?M=go(A,Object.assign({onMouseDown:_,onClick:V=>{var K,G;(G=(K=A?.props)===null||K===void 0?void 0:K.onClick)===null||G===void 0||G.call(K,V),T(V)},key:"enterButton"},B?{className:P,size:O}:{})):M=l.createElement(ut,{className:P,type:s?"primary":void 0,size:O,disabled:d,key:"enterButton",onMouseDown:_,onClick:T,loading:u,icon:j},s),c&&(M=[M,go(c,{key:"addonAfter"})]);const F=ne(C,{[`${C}-rtl`]:b==="rtl",[`${C}-${O}`]:!!O,[`${C}-with-button`]:!!s},o),H=V=>{x.current=!0,g?.(V)},W=V=>{x.current=!1,v?.(V)};return l.createElement(d3,Object.assign({ref:li(I,t),onPressEnter:D},y,{size:O,onCompositionStart:H,onCompositionEnd:W,prefixCls:E,addonAfter:M,suffix:a,onChange:N,className:F,disabled:d}))}),Mhe=jhe;var khe=` 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; `,Dhe=["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"],PS={},Ha;function Ahe(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&&PS[n])return PS[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")),s=Dhe.map(function(u){return"".concat(u,":").concat(r.getPropertyValue(u))}).join(";"),c={sizingStyle:s,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(PS[n]=c),c}function Lhe(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;Ha||(Ha=document.createElement("textarea"),Ha.setAttribute("tab-index","-1"),Ha.setAttribute("aria-hidden","true"),document.body.appendChild(Ha)),e.getAttribute("wrap")?Ha.setAttribute("wrap",e.getAttribute("wrap")):Ha.removeAttribute("wrap");var o=Ahe(e,t),i=o.paddingSize,a=o.borderSize,s=o.boxSizing,c=o.sizingStyle;Ha.setAttribute("style","".concat(c,";").concat(khe)),Ha.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f,p=Ha.scrollHeight;if(s==="border-box"?p+=a:s==="content-box"&&(p-=i),n!==null||r!==null){Ha.value=" ";var g=Ha.scrollHeight-i;n!==null&&(u=g*n,s==="border-box"&&(u=u+i+a),p=Math.max(u,p)),r!==null&&(d=g*r,s==="border-box"&&(d=d+i+a),f=p>d?"":"hidden",p=Math.min(d,p))}var v={height:p,overflowY:f,resize:"none"};return u&&(v.minHeight=u),d&&(v.maxHeight=d),v}var Fhe=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],jS=0,MS=1,kS=2,zhe=l.forwardRef(function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var o=n.defaultValue,i=n.value,a=n.autoSize,s=n.onResize,c=n.className,u=n.style,d=n.disabled,f=n.onChange;n.onInternalAutoSize;var p=Ft(n,Fhe),g=Vn(o,{value:i,postState:function(Q){return Q??""}}),v=me(g,2),y=v[0],S=v[1],b=function(Q){S(Q.target.value),f?.(Q)},x=l.useRef();l.useImperativeHandle(t,function(){return{textArea:x.current}});var C=l.useMemo(function(){return a&&Wt(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),E=me(C,2),$=E[0],O=E[1],I=!!a,N=function(){try{if(document.activeElement===x.current){var Q=x.current,fe=Q.selectionStart,se=Q.selectionEnd,oe=Q.scrollTop;x.current.setSelectionRange(fe,se),x.current.scrollTop=oe}}catch{}},_=l.useState(kS),T=me(_,2),D=T[0],j=T[1],P=l.useState(),M=me(P,2),A=M[0],B=M[1],F=function(){j(jS)};Wn(function(){I&&F()},[i,$,O,I]),Wn(function(){if(D===jS)j(MS);else if(D===MS){var re=Lhe(x.current,!1,$,O);j(kS),B(re)}else N()},[D]);var H=l.useRef(),W=function(){yn.cancel(H.current)},V=function(Q){D===kS&&(s?.(Q),a&&(W(),H.current=yn(function(){F()})))};l.useEffect(function(){return W},[]);var K=I?A:null,G=le(le({},u),K);return(D===jS||D===MS)&&(G.overflowY="hidden",G.overflowX="hidden"),l.createElement(ki,{onResize:V,disabled:!(a||s)},l.createElement("textarea",Re({},p,{ref:x,style:G,className:ne(r,c,ae({},"".concat(r,"-disabled"),d)),disabled:d,value:y,onChange:b})))}),Bhe=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function xL(e,t){return Ze(e||"").slice(0,t).join("")}function B6(e,t,n,r){var o=n;return e?o=xL(n,r):Ze(t||"").lengthr&&(o=t),o}var Hhe=Ne.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,i=e.onFocus,a=e.onBlur,s=e.onChange,c=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,p=e.suffix,g=e.prefixCls,v=g===void 0?"rc-textarea":g,y=e.classes,S=e.showCount,b=e.className,x=e.style,C=e.disabled,E=e.hidden,$=e.classNames,O=e.styles,I=e.onResize,N=Ft(e,Bhe),_=Vn(r,{value:o,defaultValue:r}),T=me(_,2),D=T[0],j=T[1],P=l.useRef(null),M=Ne.useState(!1),A=me(M,2),B=A[0],F=A[1],H=Ne.useState(!1),W=me(H,2),V=W[0],K=W[1],G=Ne.useRef(),re=Ne.useRef(0),Q=Ne.useState(null),fe=me(Q,2),se=fe[0],oe=fe[1],ie=function(){var qe;(qe=P.current)===null||qe===void 0||qe.textArea.focus()};l.useImperativeHandle(t,function(){return{resizableTextArea:P.current,focus:ie,blur:function(){var qe;(qe=P.current)===null||qe===void 0||qe.textArea.blur()}}}),l.useEffect(function(){F(function(it){return!C&&it})},[C]);var ge=Number(u)>0,ve=function(qe){K(!0),G.current=D,re.current=qe.currentTarget.selectionStart,d?.(qe)},he=function(qe){K(!1);var at=qe.currentTarget.value;if(ge){var U,k=re.current>=u+1||re.current===((U=G.current)===null||U===void 0?void 0:U.length);at=B6(k,G.current,at,u)}at!==D&&(j(at),gm(qe.currentTarget,qe,s,at)),f?.(qe)},be=function(qe){var at=qe.target.value;if(!V&&ge){var U=qe.target.selectionStart>=u+1||qe.target.selectionStart===at.length||!qe.target.selectionStart;at=B6(U,D,at,u)}j(at),gm(qe.currentTarget,qe,s,at)},ye=function(qe){var at=N.onPressEnter,U=N.onKeyDown;qe.key==="Enter"&&at&&at(qe),U?.(qe)},Ce=function(qe){F(!0),i?.(qe)},Ee=function(qe){F(!1),a?.(qe)},je=function(qe){var at;j(""),ie(),gm((at=P.current)===null||at===void 0?void 0:at.textArea,qe,s)},De=dE(D);!V&&ge&&o==null&&(De=xL(De,u));var _e=p,Me;if(S){var Ie=Ze(De).length;Wt(S)==="object"?Me=S.formatter({value:De,count:Ie,maxLength:u}):Me="".concat(Ie).concat(ge?" / ".concat(u):""),_e=Ne.createElement(Ne.Fragment,null,_e,Ne.createElement("span",{className:ne("".concat(v,"-data-count"),$?.count),style:O?.count},Me))}var Fe=function(qe){var at;I?.(qe),(at=P.current)!==null&&at!==void 0&&at.textArea.style.height&&oe(!0)},Ge=!N.autoSize&&!S&&!c,ft=Ne.createElement(u3,{value:De,allowClear:c,handleReset:je,suffix:_e,prefixCls:v,classes:{affixWrapper:ne(y?.affixWrapper,(n={},ae(n,"".concat(v,"-show-count"),S),ae(n,"".concat(v,"-textarea-allow-clear"),c),n))},disabled:C,focused:B,className:b,style:le(le({},x),se&&!Ge?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Me=="string"?Me:void 0}},hidden:E,inputElement:Ne.createElement(zhe,Re({},N,{onKeyDown:ye,onChange:be,onFocus:Ce,onBlur:Ee,onCompositionStart:ve,onCompositionEnd:he,className:$?.textarea,style:le(le({},O?.textarea),{},{resize:x?.resize}),disabled:C,prefixCls:v,onResize:Fe,ref:P}))});return ft}),Uhe=globalThis&&globalThis.__rest||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,bordered:r=!0,size:o,disabled:i,status:a,allowClear:s,showCount:c,classNames:u}=e,d=Uhe(e,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames"]),{getPrefixCls:f,direction:p}=l.useContext(St),g=Zo(o),v=l.useContext(cs),y=i??v,{status:S,hasFeedback:b,feedbackIcon:x}=l.useContext(Ai),C=Ih(S,a),E=l.useRef(null);l.useImperativeHandle(t,()=>{var _;return{resizableTextArea:(_=E.current)===null||_===void 0?void 0:_.resizableTextArea,focus:T=>{var D,j;yhe((j=(D=E.current)===null||D===void 0?void 0:D.resizableTextArea)===null||j===void 0?void 0:j.textArea,T)},blur:()=>{var T;return(T=E.current)===null||T===void 0?void 0:T.blur()}}});const $=f("input",n);let O;typeof s=="object"&&s?.clearIcon?O=s:s&&(O={clearIcon:l.createElement(Gs,null)});const[I,N]=r3($);return I(l.createElement(Hhe,Object.assign({},d,{disabled:y,allowClear:O,classes:{affixWrapper:ne(`${$}-textarea-affix-wrapper`,{[`${$}-affix-wrapper-rtl`]:p==="rtl",[`${$}-affix-wrapper-borderless`]:!r,[`${$}-affix-wrapper-sm`]:g==="small",[`${$}-affix-wrapper-lg`]:g==="large",[`${$}-textarea-show-count`]:c},Fs(`${$}-affix-wrapper`,C),N)},classNames:Object.assign(Object.assign({},u),{textarea:ne({[`${$}-borderless`]:!r,[`${$}-sm`]:g==="small",[`${$}-lg`]:g==="large"},Fs($,C),N,u?.textarea)}),prefixCls:$,suffix:b&&l.createElement("span",{className:`${$}-textarea-suffix`},x),showCount:c,ref:E})))}),wL=Whe,Pg=d3;Pg.Group=mhe;Pg.Search=Mhe;Pg.TextArea=wL;Pg.Password=The;const Ut=Pg;var Vhe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};const Khe=Vhe;var Ghe=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:Khe}))};const SL=l.forwardRef(Ghe);var Yhe={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:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};const qhe=Yhe;var Xhe=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:qhe}))};const CL=l.forwardRef(Xhe);var Qhe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"};const Zhe=Qhe;var Jhe=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:Zhe}))};const epe=l.forwardRef(Jhe);function tpe(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function npe(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function f3(e,t){const n={adjustX:1,adjustY:1};switch(t){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:n};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:n};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:n};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:n};default:return{points:e==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:n}}}function rpe(e){return e?Array.isArray(e)?e:[e]:[]}function v1(e){const{format:t,picker:n,showHour:r,showMinute:o,showSecond:i,use12Hours:a}=e,s=rpe(t)[0],c=Object.assign({},e);return t&&Array.isArray(t)&&(c.format=s),s&&typeof s=="string"&&(!s.includes("s")&&i===void 0&&(c.showSecond=!1),!s.includes("m")&&o===void 0&&(c.showMinute=!1),!s.includes("H")&&!s.includes("h")&&!s.includes("K")&&!s.includes("k")&&r===void 0&&(c.showHour=!1),(s.includes("a")||s.includes("A"))&&a===void 0&&(c.use12Hours=!0)),n==="time"?c:(typeof s=="function"&&delete c.format,{showTime:c})}function EL(e,t,n){if(e===!1)return!1;const r={clearIcon:t??n};return typeof e=="object"?Object.assign(Object.assign({},r),e):r}function ope(e){return l.createElement(ut,Object.assign({size:"small",type:"primary"},e))}const ipe={button:ope},$L=ipe;var ape=globalThis&&globalThis.__rest||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:o,getPopupContainer:i,className:a,placement:s,size:c,disabled:u,bordered:d=!0,placeholder:f,popupClassName:p,dropdownClassName:g,status:v,clearIcon:y,allowClear:S}=n,b=ape(n,["prefixCls","getPopupContainer","className","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","clearIcon","allowClear"]),x=l.useRef(null),{getPrefixCls:C,direction:E,getPopupContainer:$}=l.useContext(St),O=C("picker",o),{compactSize:I,compactItemClassnames:N}=gu(O,E),{format:_,showTime:T,picker:D}=n,j=C(),[P,M]=YA(O),A=Object.assign(Object.assign({},T?v1(Object.assign({format:_,picker:D},T)):{}),D==="time"?v1(Object.assign(Object.assign({format:_},n),{picker:D})):{}),B=Zo(se=>{var oe;return(oe=c??I)!==null&&oe!==void 0?oe:se}),F=l.useContext(cs),H=u??F,W=l.useContext(Ai),{hasFeedback:V,status:K,feedbackIcon:G}=W,re=l.createElement(l.Fragment,null,D==="time"?l.createElement(CL,null):l.createElement(SL,null),V&&G);l.useImperativeHandle(r,()=>({focus:()=>{var se;return(se=x.current)===null||se===void 0?void 0:se.focus()},blur:()=>{var se;return(se=x.current)===null||se===void 0?void 0:se.blur()}}));const[Q]=pc("Calendar",e1),fe=Object.assign(Object.assign({},Q),n.locale);return P(l.createElement(Vce,Object.assign({separator:l.createElement("span",{"aria-label":"to",className:`${O}-separator`},l.createElement(epe,null)),disabled:H,ref:x,dropdownAlign:f3(E,s),placeholder:npe(fe,D,f),suffixIcon:re,prevIcon:l.createElement("span",{className:`${O}-prev-icon`}),nextIcon:l.createElement("span",{className:`${O}-next-icon`}),superPrevIcon:l.createElement("span",{className:`${O}-super-prev-icon`}),superNextIcon:l.createElement("span",{className:`${O}-super-next-icon`}),transitionName:`${j}-slide-up`},b,A,{className:ne({[`${O}-${B}`]:B,[`${O}-borderless`]:!d},Fs(O,Ih(K,v),V),M,N,a),locale:fe.lang,prefixCls:O,getPopupContainer:i||$,generateConfig:e,components:$L,direction:E,dropdownClassName:ne(M,p||g),allowClear:EL(S,y,l.createElement(Gs,null))})))})}var lpe=globalThis&&globalThis.__rest||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:v,getPopupContainer:y,style:S,className:b,rootClassName:x,size:C,bordered:E=!0,placement:$,placeholder:O,popupClassName:I,dropdownClassName:N,disabled:_,status:T,clearIcon:D,allowClear:j}=p,P=lpe(p,["prefixCls","getPopupContainer","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","clearIcon","allowClear"]),{getPrefixCls:M,direction:A,getPopupContainer:B,[d]:F}=l.useContext(St),H=M("picker",v),{compactSize:W,compactItemClassnames:V}=gu(H,A),K=l.useRef(null),{format:G,showTime:re}=p,[Q,fe]=YA(H);l.useImperativeHandle(g,()=>({focus:()=>{var Ie;return(Ie=K.current)===null||Ie===void 0?void 0:Ie.focus()},blur:()=>{var Ie;return(Ie=K.current)===null||Ie===void 0?void 0:Ie.blur()}}));const se={showToday:!0};let oe={};c&&(oe.picker=c);const ie=c||p.picker;oe=Object.assign(Object.assign(Object.assign({},oe),re?v1(Object.assign({format:G,picker:ie},re)):{}),ie==="time"?v1(Object.assign(Object.assign({format:G},p),{picker:ie})):{});const ge=M(),ve=Zo(Ie=>{var Fe;return(Fe=C??W)!==null&&Fe!==void 0?Fe:Ie}),he=l.useContext(cs),be=_??he,ye=l.useContext(Ai),{hasFeedback:Ce,status:Ee,feedbackIcon:je}=ye,De=l.createElement(l.Fragment,null,ie==="time"?l.createElement(CL,null):l.createElement(SL,null),Ce&&je),[_e]=pc("DatePicker",e1),Me=Object.assign(Object.assign({},_e),p.locale);return Q(l.createElement(Lce,Object.assign({ref:K,placeholder:tpe(Me,ie,O),suffixIcon:De,dropdownAlign:f3(A,$),prevIcon:l.createElement("span",{className:`${H}-prev-icon`}),nextIcon:l.createElement("span",{className:`${H}-next-icon`}),superPrevIcon:l.createElement("span",{className:`${H}-super-prev-icon`}),superNextIcon:l.createElement("span",{className:`${H}-super-next-icon`}),transitionName:`${ge}-slide-up`},se,P,oe,{locale:Me.lang,className:ne({[`${H}-${ve}`]:ve,[`${H}-borderless`]:!E},Fs(H,Ih(Ee,T),Ce),fe,V,F?.className,b,x),style:Object.assign(Object.assign({},F?.style),S),prefixCls:H,getPopupContainer:y||B,generateConfig:e,components:$L,direction:A,disabled:be,dropdownClassName:ne(fe,x,I||N),allowClear:EL(j,D,l.createElement(Gs,null))})))});return u&&(f.displayName=u),f}const n=t(),r=t("week","WeekPicker"),o=t("month","MonthPicker"),i=t("year","YearPicker"),a=t("time","TimePicker"),s=t("quarter","QuarterPicker");return{DatePicker:n,WeekPicker:r,MonthPicker:o,YearPicker:i,TimePicker:a,QuarterPicker:s}}function OL(e){const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:o,TimePicker:i,QuarterPicker:a}=cpe(e),s=spe(e),c=t;return c.WeekPicker=n,c.MonthPicker=r,c.YearPicker=o,c.RangePicker=s,c.TimePicker=i,c.QuarterPicker=a,c}const Lh=OL(qle);function IL(e){const t=f3(e.direction,e.placement);return t.overflow.adjustY=!1,t.overflow.adjustX=!1,Object.assign(Object.assign({},e),{dropdownAlign:t})}const upe=Sg(Lh,"picker",null,IL);Lh._InternalPanelDoNotUseOrYouWillBeFired=upe;const dpe=Sg(Lh.RangePicker,"picker",null,IL);Lh._InternalRangePanelDoNotUseOrYouWillBeFired=dpe;Lh.generatePicker=OL;const RL=Lh,NL=Ne.createContext({latestIndex:0,horizontalSize:0,verticalSize:0,supportFlexGap:!1}),fpe=NL.Provider,hpe=e=>{let{className:t,direction:n,index:r,marginDirection:o,children:i,split:a,wrap:s,style:c}=e;const{horizontalSize:u,verticalSize:d,latestIndex:f,supportFlexGap:p}=l.useContext(NL);let g={};return p||(n==="vertical"?r{var n,r;const{getPrefixCls:o,space:i,direction:a}=l.useContext(St),{size:s=i?.size||"small",align:c,className:u,rootClassName:d,children:f,direction:p="horizontal",prefixCls:g,split:v,style:y,wrap:S=!1,classNames:b,styles:x}=e,C=mpe(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),E=uL(),[$,O]=l.useMemo(()=>(Array.isArray(s)?s:[s,s]).map(W=>vpe(W)),[s]),I=zo(f,{keepEmpty:!0}),N=c===void 0&&p==="horizontal"?"center":c,_=o("space",g),[T,D]=Pk(_),j=ne(_,i?.className,D,`${_}-${p}`,{[`${_}-rtl`]:a==="rtl",[`${_}-align-${N}`]:N},u,d),P=ne(`${_}-item`,(n=b?.item)!==null&&n!==void 0?n:(r=i?.classNames)===null||r===void 0?void 0:r.item),M=a==="rtl"?"marginLeft":"marginRight";let A=0;const B=I.map((W,V)=>{var K,G;W!=null&&(A=V);const re=W&&W.key||`${P}-${V}`;return l.createElement(ppe,{className:P,key:re,direction:p,index:V,marginDirection:M,split:v,wrap:S,style:(K=x?.item)!==null&&K!==void 0?K:(G=i?.styles)===null||G===void 0?void 0:G.item},W)}),F=l.useMemo(()=>({horizontalSize:$,verticalSize:O,latestIndex:A,supportFlexGap:E}),[$,O,A,E]);if(I.length===0)return null;const H={};return S&&(H.flexWrap="wrap",E||(H.marginBottom=-O)),E&&(H.columnGap=$,H.rowGap=O),T(l.createElement("div",Object.assign({ref:t,className:j,style:Object.assign(Object.assign(Object.assign({},H),i?.style),y)},C),l.createElement(fpe,{value:F},B)))}),_L=ype;_L.Compact=qee;const Qm=_L;var bpe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPopupContainer:t,getPrefixCls:n,direction:r}=l.useContext(St),{prefixCls:o,type:i="default",danger:a,disabled:s,loading:c,onClick:u,htmlType:d,children:f,className:p,menu:g,arrow:v,autoFocus:y,overlay:S,trigger:b,align:x,open:C,onOpenChange:E,placement:$,getPopupContainer:O,href:I,icon:N=l.createElement(X4,null),title:_,buttonsRender:T=ve=>ve,mouseEnterDelay:D,mouseLeaveDelay:j,overlayClassName:P,overlayStyle:M,destroyPopupOnHide:A,dropdownRender:B}=e,F=bpe(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),H=n("dropdown",o),W=`${H}-button`,[V,K]=pA(H),G={menu:g,arrow:v,autoFocus:y,align:x,disabled:s,trigger:s?[]:b,onOpenChange:E,getPopupContainer:O||t,mouseEnterDelay:D,mouseLeaveDelay:j,overlayClassName:P,overlayStyle:M,destroyPopupOnHide:A,dropdownRender:B},{compactSize:re,compactItemClassnames:Q}=gu(H,r),fe=ne(W,Q,p,K);"overlay"in e&&(G.overlay=S),"open"in e&&(G.open=C),"placement"in e?G.placement=$:G.placement=r==="rtl"?"bottomLeft":"bottomRight";const se=l.createElement(ut,{type:i,danger:a,disabled:s,loading:c,onClick:u,htmlType:d,href:I,title:_},f),oe=l.createElement(ut,{type:i,danger:a,icon:N}),[ie,ge]=T([se,oe]);return V(l.createElement(Qm.Compact,Object.assign({className:fe,size:re,block:!0},F),ie,l.createElement(mA,Object.assign({},G),ge)))};TL.__ANT_BUTTON=!0;const xpe=TL,PL=mA;PL.Button=xpe;const Mo=PL;function y1(e){const[t,n]=l.useState(e);return l.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const wpe=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)"}}}}},Spe=wpe,Cpe=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${e.lineWidth}px ${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 ${e.controlOutlineWidth}px ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),H6=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},Epe=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},En(e)),Cpe(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},H6(e,e.controlHeightSM)),"&-large":Object.assign({},H6(e,e.controlHeightLG))})}},$pe=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o}=e;return{[t]:Object.assign(Object.assign({},En(e)),{marginBottom:e.marginLG,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`]:{display:"inline-block",flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${e.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:e.controlHeight,color:e.colorTextHeading,fontSize:e.fontSize,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:e.colorError,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:e.marginXXS/2,marginInlineEnd:e.marginXS},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{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:P4,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},Ope=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label.${r}-col-24 + ${n}-control`]:{minWidth:"unset"}}}},Ipe=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"}}}}},sf=e=>({padding:`0 0 ${e.paddingXS}px`,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Rpe=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:sf(e),[t]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Npe=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`]:sf(e),[`@media (max-width: ${e.screenXSMax}px)`]:[Rpe(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:sf(e)}}],[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:sf(e)}},[`@media (max-width: ${e.screenMDMax}px)`]:{[t]:{[`.${r}-col-md-24${n}-label`]:sf(e)}},[`@media (max-width: ${e.screenLGMax}px)`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:sf(e)}}}},h3=Pn("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=sn(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:n});return[Epe(r),$pe(r),Spe(r),Ope(r),Ipe(r),Npe(r),Nb(r),P4]}),U6=[];function DS(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 _pe=e=>{let{help:t,helpStatus:n,errors:r=U6,warnings:o=U6,className:i,fieldId:a,onVisibleChanged:s}=e;const{prefixCls:c}=l.useContext(T4),u=`${c}-item-explain`,[,d]=h3(c),f=l.useMemo(()=>Wm(c),[c]),p=y1(r),g=y1(o),v=l.useMemo(()=>t!=null?[DS(t,"help",n)]:[].concat(Ze(p.map((S,b)=>DS(S,"error","error",b))),Ze(g.map((S,b)=>DS(S,"warning","warning",b)))),[t,n,p,g]),y={};return a&&(y.id=`${a}_help`),l.createElement(zi,{motionDeadline:f.motionDeadline,motionName:`${c}-show-help`,visible:!!v.length,onVisibleChanged:s},S=>{const{className:b,style:x}=S;return l.createElement("div",Object.assign({},y,{className:ne(u,b,i,d),style:x,role:"alert"}),l.createElement(rk,Object.assign({keys:v},Wm(c),{motionName:`${c}-show-help-item`,component:!1}),C=>{const{key:E,error:$,errorStatus:O,className:I,style:N}=C;return l.createElement("div",{key:E,className:ne(I,{[`${u}-${O}`]:O}),style:N},$)}))})},jL=_pe,Tpe=["parentNode"],Ppe="form_item";function ym(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function ML(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:Tpe.includes(n)?`${Ppe}_${n}`:n}function W6(e){return ym(e).join("_")}function kL(e){const[t]=_4(),n=l.useRef({}),r=l.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>i=>{const a=W6(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=ym(o),s=ML(a,r.__INTERNAL__.name),c=s?document.getElementById(s):null;c&&hee(c,Object.assign({scrollMode:"if-needed",block:"nearest"},i))},getFieldInstance:o=>{const i=W6(o);return n.current[i]}}),[e,t]);return[r]}var jpe=globalThis&&globalThis.__rest||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=l.useContext(cs),{getPrefixCls:r,direction:o,form:i}=l.useContext(St),{prefixCls:a,className:s,rootClassName:c,size:u,disabled:d=n,form:f,colon:p,labelAlign:g,labelWrap:v,labelCol:y,wrapperCol:S,hideRequiredMark:b,layout:x="horizontal",scrollToFirstError:C,requiredMark:E,onFinishFailed:$,name:O,style:I}=e,N=jpe(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style"]),_=Zo(u),T=l.useContext(_M),D=l.useMemo(()=>E!==void 0?E:i&&i.requiredMark!==void 0?i.requiredMark:!b,[b,E,i]),j=p??i?.colon,P=r("form",a),[M,A]=h3(P),B=ne(P,`${P}-${x}`,{[`${P}-hide-required-mark`]:D===!1,[`${P}-rtl`]:o==="rtl",[`${P}-${_}`]:_},A,i?.className,s,c),[F]=kL(f),{__INTERNAL__:H}=F;H.name=O;const W=l.useMemo(()=>({name:O,labelAlign:g,labelCol:y,labelWrap:v,wrapperCol:S,vertical:x==="vertical",colon:j,requiredMark:D,itemRef:H.itemRef,form:F}),[O,g,y,S,x,j,D,F]);l.useImperativeHandle(t,()=>F);const V=(G,re)=>{if(G){let Q={block:"nearest"};typeof G=="object"&&(Q=G),F.scrollToField(re,Q)}},K=G=>{if($?.(G),G.errorFields.length){const re=G.errorFields[0].name;if(C!==void 0){V(C,re);return}i&&i.scrollToFirstError!==void 0&&V(i.scrollToFirstError,re)}};return M(l.createElement(m4,{disabled:d},l.createElement(KM,{size:_},l.createElement(eD,{validateMessages:T},l.createElement(uu.Provider,{value:W},l.createElement(Oh,Object.assign({id:O},N,{name:O,onFinishFailed:K,form:F,style:Object.assign(Object.assign({},i?.style),I),className:B})))))))},kpe=l.forwardRef(Mpe),Dpe=kpe,DL=()=>{const{status:e,errors:t=[],warnings:n=[]}=l.useContext(Ai);return{status:e,errors:t,warnings:n}};DL.Context=Ai;const Ape=DL;function Lpe(e){const[t,n]=l.useState(e),r=l.useRef(null),o=l.useRef([]),i=l.useRef(!1);l.useEffect(()=>(i.current=!1,()=>{i.current=!0,yn.cancel(r.current),r.current=null}),[]);function a(s){i.current||(r.current===null&&(o.current=[],r.current=yn(()=>{r.current=null,n(c=>{let u=c;return o.current.forEach(d=>{u=d(u)}),u})})),o.current.push(s))}return[t,a]}function Fpe(){const{itemRef:e}=l.useContext(uu),t=l.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=li(e(r),i)),t.current.ref}return n}const zpe=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:o,errors:i,warnings:a,_internalItemRender:s,extra:c,help:u,fieldId:d,marginBottom:f,onErrorVisibleChanged:p}=e,g=`${t}-item`,v=l.useContext(uu),y=r||v.wrapperCol||{},S=ne(`${g}-control`,y.className),b=l.useMemo(()=>Object.assign({},v),[v]);delete b.labelCol,delete b.wrapperCol;const x=l.createElement("div",{className:`${g}-control-input`},l.createElement("div",{className:`${g}-control-input-content`},o)),C=l.useMemo(()=>({prefixCls:t,status:n}),[t,n]),E=f!==null||i.length||a.length?l.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},l.createElement(T4.Provider,{value:C},l.createElement(jL,{fieldId:d,errors:i,warnings:a,help:u,helpStatus:n,className:`${g}-explain-connected`,onVisibleChanged:p})),!!f&&l.createElement("div",{style:{width:0,height:f}})):null,$={};d&&($.id=`${d}_extra`);const O=c?l.createElement("div",Object.assign({},$,{className:`${g}-extra`}),c):null,I=s&&s.mark==="pro_table_render"&&s.render?s.render(e,{input:x,errorList:E,extra:O}):l.createElement(l.Fragment,null,x,E,O);return l.createElement(uu.Provider,{value:b},l.createElement(q,Object.assign({},y,{className:S}),I))},Bpe=zpe;var Hpe={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 Upe=Hpe;var Wpe=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:Upe}))};const AL=l.forwardRef(Wpe);var Vpe=globalThis&&globalThis.__rest||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:s,requiredMark:c,tooltip:u}=e;var d;const[f]=pc("Form"),{vertical:p,labelAlign:g,labelCol:v,labelWrap:y,colon:S}=l.useContext(uu);if(!n)return null;const b=o||v||{},x=i||g,C=`${t}-item-label`,E=ne(C,x==="left"&&`${C}-left`,b.className,{[`${C}-wrap`]:!!y});let $=n;const O=a===!0||S!==!1&&a!==!1;O&&!p&&typeof n=="string"&&n.trim()!==""&&($=n.replace(/[:|:]\s*$/,""));const N=Kpe(u);if(N){const{icon:T=l.createElement(AL,null)}=N,D=Vpe(N,["icon"]),j=l.createElement(Io,Object.assign({},D),l.cloneElement(T,{className:`${t}-item-tooltip`,title:""}));$=l.createElement(l.Fragment,null,$,j)}c==="optional"&&!s&&($=l.createElement(l.Fragment,null,$,l.createElement("span",{className:`${t}-item-optional`,title:""},f?.optional||((d=Hs.Form)===null||d===void 0?void 0:d.optional))));const _=ne({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:c==="optional",[`${t}-item-no-colon`]:!O});return l.createElement(q,Object.assign({},b,{className:E}),l.createElement("label",{htmlFor:r,className:_,title:typeof n=="string"?n:""},$))},Ype=Gpe;var qpe=globalThis&&globalThis.__rest||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(N&&E.current){const F=getComputedStyle(E.current);D(parseInt(F.marginBottom,10))}},[N,_]);const j=F=>{F||D(null)},M=function(){let F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,H="";const W=F?$:u.errors,V=F?O:u.warnings;return c!==void 0?H=c:u.validating?H="validating":W.length?H="error":V.length?H="warning":(u.touched||d&&u.validated)&&(H="success"),H}(),A=l.useMemo(()=>{let F;if(d){const H=M&&Xpe[M];F=H?l.createElement("span",{className:ne(`${x}-feedback-icon`,`${x}-feedback-icon-${M}`)},l.createElement(H,null)):null}return{status:M,errors:a,warnings:s,hasFeedback:d,feedbackIcon:F,isFormItemInput:!0}},[M,d]),B=ne(x,n,r,{[`${x}-with-help`]:I||$.length||O.length,[`${x}-has-feedback`]:M&&d,[`${x}-has-success`]:M==="success",[`${x}-has-warning`]:M==="warning",[`${x}-has-error`]:M==="error",[`${x}-is-validating`]:M==="validating",[`${x}-hidden`]:f});return l.createElement("div",{className:B,style:o,ref:E},l.createElement(Oe,Object.assign({className:`${x}-row`},vr(b,["_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"])),l.createElement(Ype,Object.assign({htmlFor:g},e,{requiredMark:C,required:v??y,prefixCls:t})),l.createElement(Bpe,Object.assign({},e,u,{errors:$,warnings:O,prefixCls:t,status:M,help:i,marginBottom:T,onErrorVisibleChanged:j}),l.createElement(Jk.Provider,{value:S},l.createElement(Ai.Provider,{value:A},p)))),!!T&&l.createElement("div",{className:`${x}-margin-offset`,style:{marginBottom:-T}}))}function Zpe(e){if(typeof e=="function")return e;const t=zo(e);return t.length<=1?t[0]:t}const Jpe="__SPLIT__",eme=l.memo(e=>{let{children:t}=e;return t},(e,t)=>e.value===t.value&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function tme(e){return e!=null}function V6(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function nme(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:i,shouldUpdate:a,rules:s,children:c,required:u,label:d,messageVariables:f,trigger:p="onChange",validateTrigger:g,hidden:v,help:y}=e,{getPrefixCls:S}=l.useContext(St),{name:b}=l.useContext(uu),x=Zpe(c),C=typeof x=="function",E=l.useContext(Jk),{validateTrigger:$}=l.useContext(ld),O=g!==void 0?g:$,I=tme(t),N=S("form",i),[_,T]=h3(N),D=l.useContext(Vm),j=l.useRef(),[P,M]=Lpe({}),[A,B]=ou(()=>V6()),F=Q=>{const fe=D?.getKey(Q.name);if(B(Q.destroy?V6():Q,!0),n&&y!==!1&&E){let se=Q.name;if(Q.destroy)se=j.current||se;else if(fe!==void 0){const[oe,ie]=fe;se=[oe].concat(Ze(ie)),j.current=se}E(Q,se)}},H=(Q,fe)=>{M(se=>{const oe=Object.assign({},se),ge=[].concat(Ze(Q.name.slice(0,-1)),Ze(fe)).join(Jpe);return Q.destroy?delete oe[ge]:oe[ge]=Q,oe})},[W,V]=l.useMemo(()=>{const Q=Ze(A.errors),fe=Ze(A.warnings);return Object.values(P).forEach(se=>{Q.push.apply(Q,Ze(se.errors||[])),fe.push.apply(fe,Ze(se.warnings||[]))}),[Q,fe]},[P,A.errors,A.warnings]),K=Fpe();function G(Q,fe,se){return n&&!v?Q:l.createElement(Qpe,Object.assign({key:"row"},e,{className:ne(r,T),prefixCls:N,fieldId:fe,isRequired:se,errors:W,warnings:V,meta:A,onSubItemMetaChange:H}),Q)}if(!I&&!C&&!o)return _(G(x));let re={};return typeof d=="string"?re.label=d:t&&(re.label=String(t)),f&&(re=Object.assign(Object.assign({},re),f)),_(l.createElement(N4,Object.assign({},e,{messageVariables:re,trigger:p,validateTrigger:O,onMetaChange:F}),(Q,fe,se)=>{const oe=ym(t).length&&fe?fe.name:[],ie=ML(oe,b),ge=u!==void 0?u:!!(s&&s.some(be=>{if(be&&typeof be=="object"&&be.required&&!be.warningOnly)return!0;if(typeof be=="function"){const ye=be(se);return ye&&ye.required&&!ye.warningOnly}return!1})),ve=Object.assign({},Q);let he=null;if(Array.isArray(x)&&I)he=x;else if(!(C&&(!(a||o)||I))){if(!(o&&!C&&!I))if(Di(x)){const be=Object.assign(Object.assign({},x.props),ve);if(be.id||(be.id=ie),y||W.length>0||V.length>0||e.extra){const Ee=[];(y||W.length>0)&&Ee.push(`${ie}_help`),e.extra&&Ee.push(`${ie}_extra`),be["aria-describedby"]=Ee.join(" ")}W.length>0&&(be["aria-invalid"]="true"),ge&&(be["aria-required"]="true"),Ks(x)&&(be.ref=K(oe,x)),new Set([].concat(Ze(ym(p)),Ze(ym(O)))).forEach(Ee=>{be[Ee]=function(){for(var je,De,_e,Me,Ie,Fe=arguments.length,Ge=new Array(Fe),ft=0;ft{var{prefixCls:t,children:n}=e,r=ome(e,["prefixCls","children"]);const{getPrefixCls:o}=l.useContext(St),i=o("form",t),a=l.useMemo(()=>({prefixCls:i,status:"error"}),[i]);return l.createElement(qk,Object.assign({},r),(s,c,u)=>l.createElement(T4.Provider,{value:a},n(s.map(d=>Object.assign(Object.assign({},d),{fieldKey:d.key})),c,{errors:u.errors,warnings:u.warnings})))},ame=ime;function sme(){const{form:e}=l.useContext(uu);return e}const gc=Dpe;gc.Item=rme;gc.List=ame;gc.ErrorList=jL;gc.useForm=kL;gc.useFormInstance=sme;gc.useWatch=Zk;gc.Provider=eD;gc.create=()=>{};const Xe=gc;function FL(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function fE(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}var hE=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],jg=l.createContext(null),K6=0;function lme(e,t){var n=l.useState(function(){return K6+=1,String(K6)}),r=me(n,1),o=r[0],i=l.useContext(jg),a={data:t,canPreview:e};return l.useEffect(function(){if(i)return i.register(o,a)},[]),l.useEffect(function(){i&&i.register(o,a)},[e,t]),o}function cme(e){return new Promise(function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e})}function zL(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,o=l.useState(n?"loading":"normal"),i=me(o,2),a=i[0],s=i[1],c=l.useRef(!1),u=a==="error";l.useEffect(function(){cme(t).then(function(g){g||s("error")})},[t]),l.useEffect(function(){n&&!c.current?s("loading"):u&&s("normal")},[t]);var d=function(){s("normal")},f=function(v){c.current=!1,a==="loading"&&v!=null&&v.complete&&(v.naturalWidth||v.naturalHeight)&&(c.current=!0,d())},p=u&&r?{src:r}:{onLoad:d,src:t};return[f,p,a]}function Kl(e,t,n,r){var o=Vy.unstable_batchedUpdates?function(a){Vy.unstable_batchedUpdates(n,a)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}function G6(e,t,n,r){var o=t+n,i=(n-r)/2;if(n>r){if(t>0)return ae({},e,i);if(t<0&&or)return ae({},e,t<0?i:-i);return{}}function ume(e,t,n,r){var o=FL(),i=o.width,a=o.height,s=null;return e<=i&&t<=a?s={x:0,y:0}:(e>i||t>a)&&(s=le(le({},G6("x",n,e,i)),G6("y",r,t,a))),s}var w0={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function dme(e,t,n,r){var o=l.useRef(null),i=l.useRef([]),a=l.useState(w0),s=me(a,2),c=s[0],u=s[1],d=function(v){u(w0),r&&!os(w0,c)&&r({transform:w0,action:v})},f=function(v,y){o.current===null&&(i.current=[],o.current=yn(function(){u(function(S){var b=S;return i.current.forEach(function(x){b=le(le({},b),x)}),o.current=null,r?.({transform:b,action:y}),b})})),i.current.push(le(le({},c),v))},p=function(v,y,S,b){var x=e.current,C=x.width,E=x.height,$=x.offsetWidth,O=x.offsetHeight,I=x.offsetLeft,N=x.offsetTop,_=v,T=c.scale*v;T>n?(_=n/c.scale,T=n):T1,ie=se&&x>=1,ge=dme(V,I,_,F),ve=ge.transform,he=ge.resetTransform,be=ge.updateTransform,ye=ge.dispatchZoomChange,Ce=l.useState(!0),Ee=me(Ce,2),je=Ee[0],De=Ee[1],_e=ve.rotate,Me=ve.scale,Ie=ve.x,Fe=ve.y,Ge=ne(ae({},"".concat(n,"-moving"),Q));l.useEffect(function(){je||De(!0)},[je]);var ft=function(){he("close")},it=function(){ye(Qd+$,"zoomIn")},qe=function(){ye(Qd/(Qd+$),"zoomOut")},at=function(){be({rotate:_e+90},"rotateRight")},U=function(){be({rotate:_e-90},"rotateLeft")},k=function(){be({flipX:!ve.flipX},"flipX")},L=function(){be({flipY:!ve.flipY},"flipY")},X=function(pe){pe?.preventDefault(),pe?.stopPropagation(),S>0&&(De(!1),he("prev"),H?.(S-1,S))},ee=function(pe){pe?.preventDefault(),pe?.stopPropagation(),S0&&(ke=Qd/ke),ye(ke,"wheel",pe.clientX,pe.clientY)}},Ae=function(pe){!u||!oe||(pe.keyCode===He.LEFT?X():pe.keyCode===He.RIGHT&&ee())},We=function(pe){u&&(Me!==1?be({x:0,y:0,scale:1},"doubleClick"):ye(Qd+$,"doubleClick",pe.clientX,pe.clientY))};l.useEffect(function(){var tt,pe,Te,ze;if(s){Te=Kl(window,"mouseup",$e,!1),ze=Kl(window,"mousemove",de,!1);try{window.top!==window.self&&(tt=Kl(window.top,"mouseup",$e,!1),pe=Kl(window.top,"mousemove",de,!1))}catch{}}return function(){var ke,et,mt,Ve;(ke=Te)===null||ke===void 0||ke.remove(),(et=ze)===null||et===void 0||et.remove(),(mt=tt)===null||mt===void 0||mt.remove(),(Ve=pe)===null||Ve===void 0||Ve.remove()}},[u,Q,Ie,Fe,_e,s]),l.useEffect(function(){var tt=Kl(window,"keydown",Ae,!1);return function(){tt.remove()}},[u,oe,S]);var Ke=Ne.createElement(gme,Re({},A,{width:t.width,height:t.height,imgRef:V,className:"".concat(n,"-img"),alt:o,style:{transform:"translate3d(".concat(ve.x,"px, ").concat(ve.y,"px, 0) scale3d(").concat(ve.flipX?"-":"").concat(Me,", ").concat(ve.flipY?"-":"").concat(Me,", 1) rotate(").concat(_e,"deg)"),transitionDuration:!je&&"0s"},fallback:i,src:r,onWheel:Se,onMouseDown:we,onDoubleClick:We}));return Ne.createElement(Ne.Fragment,null,Ne.createElement(I4,Re({transitionName:D,maskTransitionName:P,closable:!1,keyboard:!0,prefixCls:n,onClose:c,visible:u,wrapClassName:Ge,rootClassName:p,getContainer:v},W,{afterClose:ft}),Ne.createElement("div",{className:"".concat(n,"-img-wrapper")},M?M(Ke,le({transform:ve},se?{current:S}:{})):Ke)),Ne.createElement(fme,{visible:u,transform:ve,maskTransitionName:P,closeIcon:g,getContainer:v,prefixCls:n,rootClassName:p,icons:f,countRender:C,showSwitch:oe,showProgress:ie,current:S,count:x,scale:Me,minScale:I,maxScale:_,toolbarRender:B,onSwitchLeft:X,onSwitchRight:ee,onZoomIn:it,onZoomOut:qe,onRotateRight:at,onRotateLeft:U,onFlipX:k,onFlipY:L,onClose:c}))};function vme(e){var t=l.useState({}),n=me(t,2),r=n[0],o=n[1],i=l.useCallback(function(s,c){return o(function(u){return le(le({},u),{},ae({},s,c))}),function(){o(function(u){var d=le({},u);return delete d[s],d})}},[]),a=l.useMemo(function(){return e?e.map(function(s){if(typeof s=="string")return{data:{src:s}};var c={};return Object.keys(s).forEach(function(u){["src"].concat(Ze(hE)).includes(u)&&(c[u]=s[u])}),{data:c}}):Object.keys(r).reduce(function(s,c){var u=r[c],d=u.canPreview,f=u.data;return d&&s.push({data:f,id:c}),s},[])},[e,r]);return[a,i]}var yme=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],bme=["src"],xme=function(t){var n,r=t.previewPrefixCls,o=r===void 0?"rc-image-preview":r,i=t.children,a=t.icons,s=a===void 0?{}:a,c=t.items,u=t.preview,d=t.fallback,f=Wt(u)==="object"?u:{},p=f.visible,g=f.onVisibleChange,v=f.getContainer,y=f.current,S=f.movable,b=f.minScale,x=f.maxScale,C=f.countRender,E=f.closeIcon,$=f.onChange,O=f.onTransform,I=f.toolbarRender,N=f.imageRender,_=Ft(f,yme),T=vme(c),D=me(T,2),j=D[0],P=D[1],M=Vn(0,{value:y}),A=me(M,2),B=A[0],F=A[1],H=l.useState(!1),W=me(H,2),V=W[0],K=W[1],G=((n=j[B])===null||n===void 0?void 0:n.data)||{},re=G.src,Q=Ft(G,bme),fe=Vn(!!p,{value:p,onChange:function(_e,Me){g?.(_e,Me,B)}}),se=me(fe,2),oe=se[0],ie=se[1],ge=l.useState(null),ve=me(ge,2),he=ve[0],be=ve[1],ye=l.useCallback(function(De,_e,Me){var Ie=j.findIndex(function(Fe){return Fe.id===De});ie(!0),be({x:_e,y:Me}),F(Ie<0?0:Ie),K(!0)},[j]);l.useEffect(function(){oe?V||F(0):K(!1)},[oe]);var Ce=function(_e,Me){F(_e),$?.(_e,Me)},Ee=function(){ie(!1),be(null)},je=l.useMemo(function(){return{register:P,onPreview:ye}},[P,ye]);return l.createElement(jg.Provider,{value:je},i,l.createElement(BL,Re({"aria-hidden":!oe,movable:S,visible:oe,prefixCls:o,closeIcon:E,onClose:Ee,mousePosition:he,imgCommonProps:Q,src:re,fallback:d,icons:s,minScale:b,maxScale:x,getContainer:v,current:B,count:j.length,countRender:C,onTransform:O,toolbarRender:I,imageRender:N,onChange:Ce},_)))},wme=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],Sme=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],Kb=function(t){var n=t.src,r=t.alt,o=t.onPreviewClose,i=t.prefixCls,a=i===void 0?"rc-image":i,s=t.previewPrefixCls,c=s===void 0?"".concat(a,"-preview"):s,u=t.placeholder,d=t.fallback,f=t.width,p=t.height,g=t.style,v=t.preview,y=v===void 0?!0:v,S=t.className,b=t.onClick,x=t.onError,C=t.wrapperClassName,E=t.wrapperStyle,$=t.rootClassName,O=Ft(t,wme),I=u&&u!==!0,N=Wt(y)==="object"?y:{},_=N.src,T=N.visible,D=T===void 0?void 0:T,j=N.onVisibleChange,P=j===void 0?o:j,M=N.getContainer,A=M===void 0?void 0:M,B=N.mask,F=N.maskClassName,H=N.movable,W=N.icons,V=N.scaleStep,K=N.minScale,G=N.maxScale,re=N.imageRender,Q=N.toolbarRender,fe=Ft(N,Sme),se=_??n,oe=Vn(!!D,{value:D,onChange:P}),ie=me(oe,2),ge=ie[0],ve=ie[1],he=zL({src:n,isCustomPlaceholder:I,fallback:d}),be=me(he,3),ye=be[0],Ce=be[1],Ee=be[2],je=l.useState(null),De=me(je,2),_e=De[0],Me=De[1],Ie=l.useContext(jg),Fe=!!y,Ge=function(){ve(!1),Me(null)},ft=ne(a,C,$,ae({},"".concat(a,"-error"),Ee==="error")),it=l.useMemo(function(){var k={};return hE.forEach(function(L){t[L]!==void 0&&(k[L]=t[L])}),k},hE.map(function(k){return t[k]})),qe=l.useMemo(function(){return le(le({},it),{},{src:se})},[se,it]),at=lme(Fe,qe),U=function(L){var X=fE(L.target),ee=X.left,$e=X.top;Ie?Ie.onPreview(at,ee,$e):(Me({x:ee,y:$e}),ve(!0)),b?.(L)};return l.createElement(l.Fragment,null,l.createElement("div",Re({},O,{className:ft,onClick:Fe?U:b,style:le({width:f,height:p},E)}),l.createElement("img",Re({},it,{className:ne("".concat(a,"-img"),ae({},"".concat(a,"-img-placeholder"),u===!0),S),style:le({height:p},g),ref:ye},Ce,{width:f,height:p,onError:x})),Ee==="loading"&&l.createElement("div",{"aria-hidden":"true",className:"".concat(a,"-placeholder")},u),B&&Fe&&l.createElement("div",{className:ne("".concat(a,"-mask"),F),style:{display:g?.display==="none"?"none":void 0}},B)),!Ie&&Fe&&l.createElement(BL,Re({"aria-hidden":!ge,visible:ge,prefixCls:c,onClose:Ge,mousePosition:_e,src:se,alt:r,fallback:d,getContainer:A,icons:W,movable:H,scaleStep:V,minScale:K,maxScale:G,rootClassName:$,imageRender:re,imgCommonProps:it,toolbarRender:Q},fe)))};Kb.PreviewGroup=xme;Kb.displayName="Image";var Cme={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"};const Eme=Cme;var $me=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:Eme}))};const Ome=l.forwardRef($me);var Ime={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"};const Rme=Ime;var Nme=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:Rme}))};const _me=l.forwardRef(Nme);var Tme={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"};const Pme=Tme;var jme=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:Pme}))};const Y6=l.forwardRef(jme);var Mme={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"};const kme=Mme;var Dme=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:kme}))};const Ame=l.forwardRef(Dme);var Lme={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"};const Fme=Lme;var zme=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:Fme}))};const Bme=l.forwardRef(zme),pE=e=>({position:e||"absolute",inset:0}),Hme=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:o,prefixCls:i,colorTextLightSolid:a}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:a,background:new kn("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},Us),{padding:`0 ${r}px`,[t]:{marginInlineEnd:o,svg:{verticalAlign:"baseline"}}})}},Ume=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:o,margin:i,paddingLG:a,previewOperationColorDisabled:s,previewOperationHoverColor:c,motionDurationSlow:u,iconCls:d,colorTextLightSolid:f}=e,p=new kn(n).setAlpha(.1),g=p.clone().setAlpha(.2);return{[`${t}-footer`]:{position:"fixed",bottom:o,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor},[`${t}-progress`]:{marginBottom:i},[`${t}-close`]:{position:"fixed",top:o,right:{_skip_check_:!0,value:o},display:"flex",color:f,backgroundColor:p.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${u}`,"&:hover":{backgroundColor:g.toRgbString()},[`& > ${d}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${a}px`,backgroundColor:p.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${u}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${d}`]:{color:c},"&-disabled":{color:s,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${d}`]:{fontSize:e.previewOperationSize}}}}},Wme=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:o,zIndexPopup:i,motionDurationSlow:a}=e,s=new kn(t).setAlpha(.1),c=s.clone().setAlpha(.2);return{[`${o}-switch-left, ${o}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:i+1,display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:-e.imagePreviewSwitchSize/2,color:e.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${a}`,userSelect:"none","&:hover":{background:c.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${o}-switch-left`]:{insetInlineStart:e.marginSM},[`${o}-switch-right`]:{insetInlineEnd:e.marginSM}}},Vme=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:o}=e;return[{[`${o}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},pE()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},pE()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${o}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${o}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.zIndexPopup+1},"&":[Ume(e),Wme(e)]}]},Kme=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},Hme(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},pE())}}},Gme=e=>{const{previewCls:t}=e;return{[`${t}-root`]:xg(e,"zoom"),"&":rD(e,!0)}},HL=Pn("Image",e=>{const t=`${e.componentCls}-preview`,n=sn(e,{previewCls:t,modalMaskBg:new kn("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[Kme(n),Vme(n),oD(sn(n,{componentCls:t})),Gme(n)]},e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new kn(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new kn(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new kn(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}));var Yme=globalThis&&globalThis.__rest||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{previewPrefixCls:t,preview:n}=e,r=Yme(e,["previewPrefixCls","preview"]);const{getPrefixCls:o}=l.useContext(St),i=o("image",t),a=`${i}-preview`,s=o(),[c,u]=HL(i),d=l.useMemo(()=>{var f;if(n===!1)return n;const p=typeof n=="object"?n:{},g=ne(u,(f=p.rootClassName)!==null&&f!==void 0?f:"");return Object.assign(Object.assign({},p),{transitionName:Ws(s,"zoom",p.transitionName),maskTransitionName:Ws(s,"fade",p.maskTransitionName),rootClassName:g})},[n]);return c(l.createElement(Kb.PreviewGroup,Object.assign({preview:d,previewPrefixCls:a,icons:UL},r)))},Xme=qme;var q6=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,preview:n,className:r,rootClassName:o,style:i}=e,a=q6(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:s,locale:c=Hs,getPopupContainer:u,image:d}=l.useContext(St),f=s("image",t),p=s(),g=c.Image||Hs.Image,[v,y]=HL(f),S=ne(o,y),b=ne(r,y,d?.className),x=l.useMemo(()=>{if(n===!1)return n;const E=typeof n=="object"?n:{},{getContainer:$}=E,O=q6(E,["getContainer"]);return Object.assign(Object.assign({mask:l.createElement("div",{className:`${f}-mask-info`},l.createElement(bL,null),g?.preview),icons:UL},O),{getContainer:$||u,transitionName:Ws(p,"zoom",E.transitionName),maskTransitionName:Ws(p,"fade",E.maskTransitionName)})},[n,g]),C=Object.assign(Object.assign({},d?.style),i);return v(l.createElement(Kb,Object.assign({prefixCls:f,preview:x,rootClassName:S,className:b,style:C},a)))};WL.PreviewGroup=Xme;const VL=WL,Mg=tle;Mg.Header=Zse;Mg.Footer=Jse;Mg.Content=ele;Mg.Sider=ile;const ao=Mg;function KL(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const o=n[r];o!==void 0&&(e[r]=o)})}return e}var Qme={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};const Zme=Qme;var Jme=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:Zme}))};const X6=l.forwardRef(Jme);var ege={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};const tge=ege;var nge=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:tge}))};const Q6=l.forwardRef(nge);var ju={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40};const rge={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"};var GL=function(e){ss(n,e);var t=ls(n);function n(){var r;vo(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0||s.relatedTarget.className.indexOf("".concat(f,"-item"))>=0))&&d(r.getValidValue()))},r.go=function(s){var c=r.state.goInputText;c!==""&&(s.keyCode===ju.ENTER||s.type==="click")&&(r.setState({goInputText:""}),r.props.quickGo(r.getValidValue()))},r}return yo(n,[{key:"getPageSizeOptions",value:function(){var o=this.props,i=o.pageSize,a=o.pageSizeOptions;return a.some(function(s){return s.toString()===i.toString()})?a:a.concat([i.toString()]).sort(function(s,c){var u=Number.isNaN(Number(s))?0:Number(s),d=Number.isNaN(Number(c))?0:Number(c);return u-d})}},{key:"render",value:function(){var o=this,i=this.props,a=i.pageSize,s=i.locale,c=i.rootPrefixCls,u=i.changeSize,d=i.quickGo,f=i.goButton,p=i.selectComponentClass,g=i.buildOptionText,v=i.selectPrefixCls,y=i.disabled,S=this.state.goInputText,b="".concat(c,"-options"),x=p,C=null,E=null,$=null;if(!u&&!d)return null;var O=this.getPageSizeOptions();if(u&&x){var I=O.map(function(N,_){return Ne.createElement(x.Option,{key:_,value:N.toString()},(g||o.buildOptionText)(N))});C=Ne.createElement(x,{disabled:y,prefixCls:v,showSearch:!1,className:"".concat(b,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(a||O[0]).toString(),onChange:this.changeSize,getPopupContainer:function(_){return _.parentNode},"aria-label":s.page_size,defaultOpen:!1},I)}return d&&(f&&($=typeof f=="boolean"?Ne.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:y,className:"".concat(b,"-quick-jumper-button")},s.jump_to_confirm):Ne.createElement("span",{onClick:this.go,onKeyUp:this.go},f)),E=Ne.createElement("div",{className:"".concat(b,"-quick-jumper")},s.jump_to,Ne.createElement("input",{disabled:y,type:"text",value:S,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":s.page}),s.page,$)),Ne.createElement("li",{className:"".concat(b)},C,E)}}]),n}(Ne.Component);GL.defaultProps={pageSizeOptions:["10","20","50","100"]};var _p=function(t){var n,r=t.rootPrefixCls,o=t.page,i=t.active,a=t.className,s=t.showTitle,c=t.onClick,u=t.onKeyPress,d=t.itemRender,f="".concat(r,"-item"),p=ne(f,"".concat(f,"-").concat(o),(n={},ae(n,"".concat(f,"-active"),i),ae(n,"".concat(f,"-disabled"),!o),ae(n,t.className,a),n)),g=function(){c(o)},v=function(b){u(b,c,o)},y=d(o,"page",Ne.createElement("a",{rel:"nofollow"},o));return y?Ne.createElement("li",{title:s?o.toString():null,className:p,onClick:g,onKeyPress:v,tabIndex:0},y):null};function mE(){}function Z6(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}var oge=function(t,n,r){return r};function Tc(e,t,n){var r=typeof e>"u"?t.pageSize:e;return Math.floor((n.total-1)/r)+1}var YL=function(e){ss(n,e);var t=ls(n);function n(r){var o;vo(this,n),o=t.call(this,r),o.paginationNode=Ne.createRef(),o.getJumpPrevPage=function(){return Math.max(1,o.state.current-(o.props.showLessItems?3:5))},o.getJumpNextPage=function(){return Math.min(Tc(void 0,o.state,o.props),o.state.current+(o.props.showLessItems?3:5))},o.getItemIcon=function(u,d){var f=o.props.prefixCls,p=u||Ne.createElement("button",{type:"button","aria-label":d,className:"".concat(f,"-item-link")});return typeof u=="function"&&(p=Ne.createElement(u,le({},o.props))),p},o.isValid=function(u){var d=o.props.total;return Z6(u)&&u!==o.state.current&&Z6(d)&&d>0},o.shouldDisplayQuickJumper=function(){var u=o.props,d=u.showQuickJumper,f=u.total,p=o.state.pageSize;return f<=p?!1:d},o.handleKeyDown=function(u){(u.keyCode===ju.ARROW_UP||u.keyCode===ju.ARROW_DOWN)&&u.preventDefault()},o.handleKeyUp=function(u){var d=o.getValidValue(u),f=o.state.currentInputValue;d!==f&&o.setState({currentInputValue:d}),u.keyCode===ju.ENTER?o.handleChange(d):u.keyCode===ju.ARROW_UP?o.handleChange(d-1):u.keyCode===ju.ARROW_DOWN&&o.handleChange(d+1)},o.handleBlur=function(u){var d=o.getValidValue(u);o.handleChange(d)},o.changePageSize=function(u){var d=o.state.current,f=Tc(u,o.state,o.props);d=d>f?f:d,f===0&&(d=o.state.current),typeof u=="number"&&("pageSize"in o.props||o.setState({pageSize:u}),"current"in o.props||o.setState({current:d,currentInputValue:d})),o.props.onShowSizeChange(d,u),"onChange"in o.props&&o.props.onChange&&o.props.onChange(d,u)},o.handleChange=function(u){var d=o.props,f=d.disabled,p=d.onChange,g=o.state,v=g.pageSize,y=g.current,S=g.currentInputValue;if(o.isValid(u)&&!f){var b=Tc(void 0,o.state,o.props),x=u;return u>b?x=b:u<1&&(x=1),"current"in o.props||o.setState({current:x}),x!==S&&o.setState({currentInputValue:x}),p(x,v),x}return y},o.prev=function(){o.hasPrev()&&o.handleChange(o.state.current-1)},o.next=function(){o.hasNext()&&o.handleChange(o.state.current+1)},o.jumpPrev=function(){o.handleChange(o.getJumpPrevPage())},o.jumpNext=function(){o.handleChange(o.getJumpNextPage())},o.hasPrev=function(){return o.state.current>1},o.hasNext=function(){return o.state.current2?f-2:0),g=2;g=a?c=a:c=Number(i),c}},{key:"getShowSizeChanger",value:function(){var o=this.props,i=o.showSizeChanger,a=o.total,s=o.totalBoundaryShowSizeChanger;return typeof i<"u"?i:a>s}},{key:"render",value:function(){var o=this.props,i=o.prefixCls,a=o.className,s=o.style,c=o.disabled,u=o.hideOnSinglePage,d=o.total,f=o.locale,p=o.showQuickJumper,g=o.showLessItems,v=o.showTitle,y=o.showTotal,S=o.simple,b=o.itemRender,x=o.showPrevNextJumpers,C=o.jumpPrevIcon,E=o.jumpNextIcon,$=o.selectComponentClass,O=o.selectPrefixCls,I=o.pageSizeOptions,N=this.state,_=N.current,T=N.pageSize,D=N.currentInputValue;if(u===!0&&d<=T)return null;var j=Tc(void 0,this.state,this.props),P=[],M=null,A=null,B=null,F=null,H=null,W=p&&p.goButton,V=g?1:2,K=_-1>0?_-1:0,G=_+1d?d:_*T]));if(S){W&&(typeof W=="boolean"?H=Ne.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},f.jump_to_confirm):H=Ne.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},W),H=Ne.createElement("li",{title:v?"".concat(f.jump_to).concat(_,"/").concat(j):null,className:"".concat(i,"-simple-pager")},H));var fe=this.renderPrev(K);return Ne.createElement("ul",Re({className:ne(i,"".concat(i,"-simple"),ae({},"".concat(i,"-disabled"),c),a),style:s,ref:this.paginationNode},re),Q,fe?Ne.createElement("li",{title:v?f.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:ne("".concat(i,"-prev"),ae({},"".concat(i,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},fe):null,Ne.createElement("li",{title:v?"".concat(_,"/").concat(j):null,className:"".concat(i,"-simple-pager")},Ne.createElement("input",{type:"text",value:D,disabled:c,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),Ne.createElement("span",{className:"".concat(i,"-slash")},"/"),j),Ne.createElement("li",{title:v?f.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:ne("".concat(i,"-next"),ae({},"".concat(i,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(G)),H)}if(j<=3+V*2){var se={locale:f,rootPrefixCls:i,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:v,itemRender:b};j||P.push(Ne.createElement(_p,Re({},se,{key:"noPager",page:1,className:"".concat(i,"-item-disabled")})));for(var oe=1;oe<=j;oe+=1){var ie=_===oe;P.push(Ne.createElement(_p,Re({},se,{key:oe,page:oe,active:ie})))}}else{var ge=g?f.prev_3:f.prev_5,ve=g?f.next_3:f.next_5,he=b(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(C,"prev page")),be=b(this.getJumpNextPage(),"jump-next",this.getItemIcon(E,"next page"));x&&(M=he?Ne.createElement("li",{title:v?ge:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:ne("".concat(i,"-jump-prev"),ae({},"".concat(i,"-jump-prev-custom-icon"),!!C))},he):null,A=be?Ne.createElement("li",{title:v?ve:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:ne("".concat(i,"-jump-next"),ae({},"".concat(i,"-jump-next-custom-icon"),!!E))},be):null),F=Ne.createElement(_p,{locale:f,last:!0,rootPrefixCls:i,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:j,page:j,active:!1,showTitle:v,itemRender:b}),B=Ne.createElement(_p,{locale:f,rootPrefixCls:i,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:v,itemRender:b});var ye=Math.max(1,_-V),Ce=Math.min(_+V,j);_-1<=V&&(Ce=1+V*2),j-_<=V&&(ye=j-V*2);for(var Ee=ye;Ee<=Ce;Ee+=1){var je=_===Ee;P.push(Ne.createElement(_p,{locale:f,rootPrefixCls:i,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Ee,page:Ee,active:je,showTitle:v,itemRender:b}))}_-1>=V*2&&_!==1+2&&(P[0]=l.cloneElement(P[0],{className:"".concat(i,"-item-after-jump-prev")}),P.unshift(M)),j-_>=V*2&&_!==j-2&&(P[P.length-1]=l.cloneElement(P[P.length-1],{className:"".concat(i,"-item-before-jump-next")}),P.push(A)),ye!==1&&P.unshift(B),Ce!==j&&P.push(F)}var De=!this.hasPrev()||!j,_e=!this.hasNext()||!j,Me=this.renderPrev(K),Ie=this.renderNext(G);return Ne.createElement("ul",Re({className:ne(i,a,ae({},"".concat(i,"-disabled"),c)),style:s,ref:this.paginationNode},re),Q,Me?Ne.createElement("li",{title:v?f.prev_page:null,onClick:this.prev,tabIndex:De?null:0,onKeyPress:this.runIfEnterPrev,className:ne("".concat(i,"-prev"),ae({},"".concat(i,"-disabled"),De)),"aria-disabled":De},Me):null,P,Ie?Ne.createElement("li",{title:v?f.next_page:null,onClick:this.next,tabIndex:_e?null:0,onKeyPress:this.runIfEnterNext,className:ne("".concat(i,"-next"),ae({},"".concat(i,"-disabled"),_e)),"aria-disabled":_e},Ie):null,Ne.createElement(GL,{disabled:c,locale:f,rootPrefixCls:i,selectComponentClass:$,selectPrefixCls:O,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:_,pageSize:T,pageSizeOptions:I,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:W}))}}],[{key:"getDerivedStateFromProps",value:function(o,i){var a={};if("current"in o&&(a.current=o.current,o.current!==i.current&&(a.currentInputValue=a.current)),"pageSize"in o&&o.pageSize!==i.pageSize){var s=i.current,c=Tc(o.pageSize,i,o);s=s>c?c:s,"current"in o||(a.current=s,a.currentInputValue=s),a.pageSize=o.pageSize}return a}}]),n}(Ne.Component);YL.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:mE,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:mE,locale:rge,style:{},itemRender:oge,totalBoundaryShowSizeChanger:50};const qL=e=>l.createElement(Lr,Object.assign({},e,{showSearch:!0,size:"small"})),XL=e=>l.createElement(Lr,Object.assign({},e,{showSearch:!0,size:"middle"}));qL.Option=Lr.Option;XL.Option=Lr.Option;const ige=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},age=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:`${e.itemSizeSM-2}px`},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[` &${t}-mini ${t}-prev ${t}-item-link, &${t}-mini ${t}-next ${t}-item-link `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`,input:Object.assign(Object.assign({},n3(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},sge=e=>{const{componentCls:t}=e;return{[` &${t}-simple ${t}-prev, &${t}-simple ${t}-next `]:{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`,verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${e.inputOutlineOffset}px 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},lge=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[` ${t}-prev, ${t}-jump-prev, ${t}-jump-next `]:{marginInlineEnd:e.marginXS},[` ${t}-prev, ${t}-next, ${t}-jump-prev, ${t}-jump-next `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:`${e.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:`${e.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},Mh(e)),{width:e.controlHeightLG*1.25,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},cge=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:`${e.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${e.paginationItemPaddingInline}px`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},uge=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},En(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:`${e.itemSize-2}px`,verticalAlign:"middle"}}),cge(e)),lge(e)),sge(e)),age(e)),ige(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},dge=e=>{const{componentCls:t}=e;return{[`${t}${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},fge=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},lu(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},vl(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},vl(e))}}}},hge=Pn("Pagination",e=>{const t=sn(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.marginXXS/2,paginationMiniQuickJumperInputWidth:e.controlHeightLG*1.1,paginationItemPaddingInline:e.marginXXS*1.5,paginationEllipsisLetterSpacing:e.marginXXS/2,paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},_g(e));return[uge(t),fge(t),e.wireframe&&dge(t)]},e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0}));var pge=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,selectPrefixCls:n,className:r,rootClassName:o,style:i,size:a,locale:s,selectComponentClass:c,responsive:u,showSizeChanger:d}=e,f=pge(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:p}=jb(u),{getPrefixCls:g,direction:v,pagination:y={}}=l.useContext(St),S=g("pagination",t),[b,x]=hge(S),C=d??y.showSizeChanger,E=l.useMemo(()=>{const j=l.createElement("span",{className:`${S}-item-ellipsis`},"•••"),P=l.createElement("button",{className:`${S}-item-link`,type:"button",tabIndex:-1},v==="rtl"?l.createElement(ud,null):l.createElement(Xm,null)),M=l.createElement("button",{className:`${S}-item-link`,type:"button",tabIndex:-1},v==="rtl"?l.createElement(Xm,null):l.createElement(ud,null)),A=l.createElement("a",{className:`${S}-item-link`},l.createElement("div",{className:`${S}-item-container`},v==="rtl"?l.createElement(Q6,{className:`${S}-item-link-icon`}):l.createElement(X6,{className:`${S}-item-link-icon`}),j)),B=l.createElement("a",{className:`${S}-item-link`},l.createElement("div",{className:`${S}-item-container`},v==="rtl"?l.createElement(X6,{className:`${S}-item-link-icon`}):l.createElement(Q6,{className:`${S}-item-link-icon`}),j));return{prevIcon:P,nextIcon:M,jumpPrevIcon:A,jumpNextIcon:B}},[v,S]),[$]=pc("Pagination",TM),O=Object.assign(Object.assign({},$),s),I=Zo(a),N=I==="small"||!!(p&&!I&&u),_=g("select",n),T=ne({[`${S}-mini`]:N,[`${S}-rtl`]:v==="rtl"},y?.className,r,o,x),D=Object.assign(Object.assign({},y?.style),i);return b(l.createElement(YL,Object.assign({},E,f,{style:D,prefixCls:S,selectPrefixCls:_,className:T,selectComponentClass:c||(N?qL:XL),locale:O,showSizeChanger:C})))},QL=mge,gge=new vn("antSpinMove",{to:{opacity:1}}),vge=new vn("antRotate",{to:{transform:"rotate(405deg)"}}),yge=e=>({[`${e.componentCls}`]:Object.assign(Object.assign({},En(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${e.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${e.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-e.spinDotSize/2},[`${e.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:(e.spinDotSize-e.fontSize)/2+2,textShadow:`0 1px 2px ${e.colorBgContainer}`,fontSize:e.fontSize},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSize/2)-10},"&-sm":{[`${e.componentCls}-dot`]:{margin:-e.spinDotSizeSM/2},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeSM-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeSM/2)-10}},"&-lg":{[`${e.componentCls}-dot`]:{margin:-(e.spinDotSizeLG/2)},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeLG-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeLG/2)-10}}},[`${e.componentCls}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${e.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${e.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:e.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(e.spinDotSize-e.marginXXS/2)/2,height:(e.spinDotSize-e.marginXXS/2)/2,backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:gge,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:vge,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeSM,i:{width:(e.spinDotSizeSM-e.marginXXS/2)/2,height:(e.spinDotSizeSM-e.marginXXS/2)/2}},[`&-lg ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeLG,i:{width:(e.spinDotSizeLG-e.marginXXS)/2,height:(e.spinDotSizeLG-e.marginXXS)/2}},[`&${e.componentCls}-show-text ${e.componentCls}-text`]:{display:"block"}})}),bge=Pn("Spin",e=>{const t=sn(e,{spinDotDefault:e.colorTextDescription,spinDotSize:e.controlHeightLG/2,spinDotSizeSM:e.controlHeightLG*.35,spinDotSizeLG:e.controlHeight});return[yge(t)]},{contentHeight:400});var xge=globalThis&&globalThis.__rest||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{spinPrefixCls:t,spinning:n=!0,delay:r=0,className:o,rootClassName:i,size:a="default",tip:s,wrapperClassName:c,style:u,children:d,hashId:f}=e,p=xge(e,["spinPrefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","hashId"]),[g,v]=l.useState(()=>n&&!Sge(n,r));l.useEffect(()=>{if(n){const I=Zde(r,()=>{v(!0)});return I(),()=>{var N;(N=I?.cancel)===null||N===void 0||N.call(I)}}v(!1)},[r,n]);const y=l.useMemo(()=>typeof d<"u",[d]),{direction:S,spin:b}=l.useContext(St),x=ne(t,b?.className,{[`${t}-sm`]:a==="small",[`${t}-lg`]:a==="large",[`${t}-spinning`]:g,[`${t}-show-text`]:!!s,[`${t}-rtl`]:S==="rtl"},o,i,f),C=ne(`${t}-container`,{[`${t}-blur`]:g}),E=vr(p,["indicator","prefixCls"]),$=Object.assign(Object.assign({},b?.style),u),O=l.createElement("div",Object.assign({},E,{style:$,className:x,"aria-live":"polite","aria-busy":g}),wge(t,e),s&&y?l.createElement("div",{className:`${t}-text`},s):null);return y?l.createElement("div",Object.assign({},E,{className:ne(`${t}-nested-loading`,c,f)}),g&&l.createElement("div",{key:"loading"},O),l.createElement("div",{className:C,key:"container"},d)):O},ZL=e=>{const{prefixCls:t}=e,{getPrefixCls:n}=l.useContext(St),r=n("spin",t),[o,i]=bge(r),a=Object.assign(Object.assign({},e),{spinPrefixCls:r,hashId:i});return o(l.createElement(Cge,Object.assign({},a)))};ZL.setDefaultIndicator=e=>{cy=e};const JL=ZL,p3=Ne.createContext({});p3.Consumer;var e7=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var{prefixCls:t,className:n,avatar:r,title:o,description:i}=e,a=e7(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:s}=l.useContext(St),c=s("list",t),u=ne(`${c}-item-meta`,n),d=Ne.createElement("div",{className:`${c}-item-meta-content`},o&&Ne.createElement("h4",{className:`${c}-item-meta-title`},o),i&&Ne.createElement("div",{className:`${c}-item-meta-description`},i));return Ne.createElement("div",Object.assign({},a,{className:u}),r&&Ne.createElement("div",{className:`${c}-item-meta-avatar`},r),(o||i)&&d)},$ge=(e,t)=>{var{prefixCls:n,children:r,actions:o,extra:i,className:a,colStyle:s}=e,c=e7(e,["prefixCls","children","actions","extra","className","colStyle"]);const{grid:u,itemLayout:d}=l.useContext(p3),{getPrefixCls:f}=l.useContext(St),p=()=>{let x;return l.Children.forEach(r,C=>{typeof C=="string"&&(x=!0)}),x&&l.Children.count(r)>1},g=()=>d==="vertical"?!!i:!p(),v=f("list",n),y=o&&o.length>0&&Ne.createElement("ul",{className:`${v}-item-action`,key:"actions"},o.map((x,C)=>Ne.createElement("li",{key:`${v}-item-action-${C}`},x,C!==o.length-1&&Ne.createElement("em",{className:`${v}-item-action-split`})))),S=u?"div":"li",b=Ne.createElement(S,Object.assign({},c,u?{}:{ref:t},{className:ne(`${v}-item`,{[`${v}-item-no-flex`]:!g()},a)}),d==="vertical"&&i?[Ne.createElement("div",{className:`${v}-item-main`,key:"content"},r,y),Ne.createElement("div",{className:`${v}-item-extra`,key:"extra"},i)]:[r,y,go(i,{key:"extra"})]);return u?Ne.createElement(q,{ref:t,flex:1,style:s},b):b},t7=l.forwardRef($ge);t7.Meta=Ege;const Oge=t7,Ige=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:o,itemPaddingSM:i,itemPaddingLG:a,marginLG:s,borderRadiusLG:c}=e;return{[`${t}`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:c,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${o}px ${s}px`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:i}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}}}},Rge=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:o,marginSM:i,margin:a}=e;return{[`@media screen and (max-width:${r})`]:{[`${t}`]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:o}}}},[`@media screen and (max-width: ${n})`]:{[`${t}`]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${a}px`}}}}}},Nge=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:o,paddingSM:i,marginLG:a,padding:s,itemPadding:c,colorPrimary:u,itemPaddingSM:d,itemPaddingLG:f,paddingXS:p,margin:g,colorText:v,colorTextDescription:y,motionDurationSlow:S,lineWidth:b,headerBg:x,footerBg:C,emptyTextPadding:E,metaMarginBottom:$,avatarMarginRight:O,titleMarginBottom:I,descriptionFontSize:N}=e,_={};return["start","center","end"].forEach(T=>{_[`&-align-${T}`]={textAlign:T}}),{[`${t}`]:Object.assign(Object.assign({},En(e)),{position:"relative","*":{outline:"none"},[`${t}-header`]:{background:x},[`${t}-footer`]:{background:C},[`${t}-header, ${t}-footer`]:{paddingBlock:i},[`${t}-pagination`]:Object.assign(Object.assign({marginBlockStart:a},_),{[`${n}-pagination-options`]:{textAlign:"start"}}),[`${t}-spin`]:{minHeight:o,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:c,color:v,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:O},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:v},[`${t}-item-meta-title`]:{margin:`0 0 ${e.marginXXS}px 0`,color:v,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:v,transition:`all ${S}`,"&:hover":{color:u}}},[`${t}-item-meta-description`]:{color:y,fontSize:N,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${p}px`,color:y,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:b,height:Math.ceil(e.fontSize*e.lineHeight)-e.marginXXS*2,transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${s}px 0`,color:y,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:E,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:g,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:a},[`${t}-item-meta`]:{marginBlockEnd:$,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:I,color:v,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:s,marginInlineStart:"auto","> li":{padding:`0 ${s}px`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:f},[`${t}-sm ${t}-item`]:{padding:d},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},_ge=Pn("List",e=>{const t=sn(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[Nge(t),Ige(t),Rge(t)]},e=>({contentWidth:220,itemPadding:`${e.paddingContentVertical}px 0`,itemPaddingSM:`${e.paddingContentVerticalSM}px ${e.paddingContentHorizontal}px`,itemPaddingLG:`${e.paddingContentVerticalLG}px ${e.paddingContentHorizontalLG}px`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}));var Tge=globalThis&&globalThis.__rest||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(Ie,Fe)=>{var Ge;N(Ie),T(Fe),n&&n[Me]&&((Ge=n?.[Me])===null||Ge===void 0||Ge.call(n,Ie,Fe))},F=B("onChange"),H=B("onShowSizeChange"),W=(Me,Ie)=>{if(!C)return null;let Fe;return typeof x=="function"?Fe=x(Me):x?Fe=Me[x]:Fe=Me.key,Fe||(Fe=`list-item-${Ie}`),l.createElement(l.Fragment,{key:Fe},C(Me,Ie))},V=()=>!!(f||n||S),K=D("list",r),[G,re]=_ge(K);let Q=b;typeof Q=="boolean"&&(Q={spinning:Q});const fe=Q&&Q.spinning;let se="";switch(v){case"large":se="lg";break;case"small":se="sm";break}const oe=ne(K,{[`${K}-vertical`]:d==="vertical",[`${K}-${se}`]:se,[`${K}-split`]:i,[`${K}-bordered`]:o,[`${K}-loading`]:fe,[`${K}-grid`]:!!p,[`${K}-something-after-last-item`]:V(),[`${K}-rtl`]:P==="rtl"},M?.className,a,s,re),ie=KL(A,{total:g.length,current:I,pageSize:_},n||{}),ge=Math.ceil(ie.total/ie.pageSize);ie.current>ge&&(ie.current=ge);const ve=n?l.createElement("div",{className:ne(`${K}-pagination`,`${K}-pagination-align-${(t=ie?.align)!==null&&t!==void 0?t:"end"}`)},l.createElement(QL,Object.assign({},ie,{onChange:F,onShowSizeChange:H}))):null;let he=Ze(g);n&&g.length>(ie.current-1)*ie.pageSize&&(he=Ze(g).splice((ie.current-1)*ie.pageSize,ie.pageSize));const be=Object.keys(p||{}).some(Me=>["xs","sm","md","lg","xl","xxl"].includes(Me)),ye=jb(be),Ce=l.useMemo(()=>{for(let Me=0;Me{if(!p)return;const Me=Ce&&p[Ce]?p[Ce]:p.column;if(Me)return{width:`${100/Me}%`,maxWidth:`${100/Me}%`}},[p?.column,Ce]);let je=fe&&l.createElement("div",{style:{minHeight:53}});if(he.length>0){const Me=he.map((Ie,Fe)=>W(Ie,Fe));je=p?l.createElement(Oe,{gutter:p.gutter},l.Children.map(Me,Ie=>l.createElement("div",{key:Ie?.key,style:Ee},Ie))):l.createElement("ul",{className:`${K}-items`},Me)}else!u&&!fe&&(je=l.createElement("div",{className:`${K}-empty-text`},E&&E.emptyText||j?.("List")||l.createElement(z4,{componentName:"List"})));const De=ie.position||"bottom",_e=l.useMemo(()=>({grid:p,itemLayout:d}),[JSON.stringify(p),d]);return G(l.createElement(p3.Provider,{value:_e},l.createElement("div",Object.assign({style:Object.assign(Object.assign({},M?.style),c),className:oe},$),(De==="top"||De==="both")&&ve,y&&l.createElement("div",{className:`${K}-header`},y),l.createElement(JL,Object.assign({},Q),je,u),S&&l.createElement("div",{className:`${K}-footer`},S),f||(De==="bottom"||De==="both")&&ve)))}uy.Item=Oge;var Pge=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:a,children:s}=e,c=Pge(e,["prefixCls","className","closeIcon","closable","type","title","children"]),{getPrefixCls:u}=l.useContext(St),d=u(),f=t||u("modal"),[,p]=iD(f),g=`${f}-confirm`;let v={};return i?v={closable:o??!1,title:"",footer:"",children:l.createElement(sD,Object.assign({},e,{confirmPrefixCls:g,rootPrefixCls:d,content:s}))}:v={closable:o??!0,title:a,footer:e.footer===void 0?l.createElement(nD,Object.assign({},e)):e.footer,children:s},l.createElement(Bk,Object.assign({prefixCls:f,className:ne(p,`${f}-pure-panel`,i&&g,i&&`${g}-${i}`,n)},c,{closeIcon:tD(f,r),closable:o},v))},Mge=yD(jge);function n7(e){return wg(uD(e))}const Ys=aD;Ys.useModal=Ire;Ys.info=function(t){return wg(dD(t))};Ys.success=function(t){return wg(fD(t))};Ys.error=function(t){return wg(hD(t))};Ys.warning=n7;Ys.warn=n7;Ys.confirm=function(t){return wg(pD(t))};Ys.destroyAll=function(){for(;Vu.length;){const t=Vu.pop();t&&t()}};Ys.config=Sre;Ys._InternalPanelDoNotUseOrYouWillBeFired=Mge;const fn=Ys;let Ts=null,dy=e=>e(),b1=[],x1={};function J6(){const{prefixCls:e,getContainer:t,rtl:n,maxCount:r,top:o,bottom:i}=x1,a=e??v4().getPrefixCls("notification"),s=t?.()||document.body;return{prefixCls:a,getContainer:()=>s,rtl:n,maxCount:r,top:o,bottom:i}}const kge=l.forwardRef((e,t)=>{const[n,r]=l.useState(J6),[o,i]=vD(n),a=v4(),s=a.getRootPrefixCls(),c=a.getIconPrefixCls(),u=a.getTheme(),d=()=>{r(J6)};return l.useEffect(d,[]),l.useImperativeHandle(t,()=>{const f=Object.assign({},o);return Object.keys(f).forEach(p=>{f[p]=function(){return d(),o[p].apply(o,arguments)}}),{instance:f,sync:d}}),l.createElement(Sh,{prefixCls:s,iconPrefixCls:c,theme:u},i)});function m3(){if(!Ts){const e=document.createDocumentFragment(),t={fragment:e};Ts=t,dy(()=>{C4(l.createElement(kge,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,m3())})}}),e)});return}Ts.instance&&(b1.forEach(e=>{switch(e.type){case"open":{dy(()=>{Ts.instance.open(Object.assign(Object.assign({},x1),e.config))});break}case"destroy":dy(()=>{Ts?.instance.destroy(e.key)});break}}),b1=[])}function Dge(e){x1=Object.assign(Object.assign({},x1),e),dy(()=>{var t;(t=Ts?.sync)===null||t===void 0||t.call(Ts)})}function r7(e){b1.push({type:"open",config:e}),m3()}function Age(e){b1.push({type:"destroy",key:e}),m3()}const Lge=["success","info","warning","error"],Fge={open:r7,destroy:Age,config:Dge,useNotification:Bre,_InternalPanelDoNotUseOrYouWillBeFired:Mre},o7=Fge;Lge.forEach(e=>{o7[e]=t=>r7(Object.assign(Object.assign({},t),{type:e}))});const er=o7;var zge={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Bge=function(){var t=l.useRef([]),n=l.useRef(null);return l.useEffect(function(){var r=Date.now(),o=!1;t.current.forEach(function(i){if(i){o=!0;var a=i.style;a.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(a.transitionDuration="0s, 0s")}}),o&&(n.current=Date.now())}),t.current},eT=0,Hge=Bo();function Uge(){var e;return Hge?(e=eT,eT+=1):e="TEST_OR_SSR",e}const Wge=function(e){var t=l.useState(),n=me(t,2),r=n[0],o=n[1];return l.useEffect(function(){o("rc_progress_".concat(Uge()))},[]),e||r};var Vge=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function tT(e){return+e.replace("%","")}function nT(e){var t=e??[];return Array.isArray(t)?t:[t]}var Tp=100,AS=function(t,n,r,o,i,a,s,c,u,d){var f=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,p=r/100*360*((360-a)/360),g=a===0?0:{bottom:0,top:180,left:90,right:-90}[s],v=(100-o)/100*n;return u==="round"&&o!==100&&(v+=d/2,v>=n&&(v=n-.01)),{stroke:typeof c=="string"?c:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:v+f,transform:"rotate(".concat(i+p+g,"deg)"),transformOrigin:"0 0",transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},g3=function(t){var n=t.id,r=t.prefixCls,o=t.steps,i=t.strokeWidth,a=t.trailWidth,s=t.gapDegree,c=s===void 0?0:s,u=t.gapPosition,d=t.trailColor,f=t.strokeLinecap,p=t.style,g=t.className,v=t.strokeColor,y=t.percent,S=Ft(t,Vge),b=Wge(n),x="".concat(b,"-gradient"),C=Tp/2-i/2,E=Math.PI*2*C,$=c>0?90+c/2:-90,O=E*((360-c)/360),I=Wt(o)==="object"?o:{count:o,space:2},N=I.count,_=I.space,T=AS(E,O,0,100,$,c,u,d,f,i),D=nT(y),j=nT(v),P=j.find(function(F){return F&&Wt(F)==="object"}),M=Bge(),A=function(){var H=0;return D.map(function(W,V){var K=j[V]||j[j.length-1],G=K&&Wt(K)==="object"?"url(#".concat(x,")"):void 0,re=AS(E,O,H,W,$,c,u,K,f,i);return H+=W,l.createElement("circle",{key:V,className:"".concat(r,"-circle-path"),r:C,cx:0,cy:0,stroke:G,strokeLinecap:f,strokeWidth:i,opacity:W===0?0:1,style:re,ref:function(fe){M[V]=fe}})}).reverse()},B=function(){var H=Math.round(N*(D[0]/100)),W=100/N,V=0;return new Array(N).fill(null).map(function(K,G){var re=G<=H-1?j[0]:d,Q=re&&Wt(re)==="object"?"url(#".concat(x,")"):void 0,fe=AS(E,O,V,W,$,c,u,re,"butt",i,_);return V+=(O-fe.strokeDashoffset+_)*100/O,l.createElement("circle",{key:G,className:"".concat(r,"-circle-path"),r:C,cx:0,cy:0,stroke:Q,strokeWidth:i,opacity:1,style:fe,ref:function(oe){M[G]=oe}})})};return l.createElement("svg",Re({className:ne("".concat(r,"-circle"),g),viewBox:"".concat(-Tp/2," ").concat(-Tp/2," ").concat(Tp," ").concat(Tp),style:p,id:n,role:"presentation"},S),P&&l.createElement("defs",null,l.createElement("linearGradient",{id:x,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(P).sort(function(F,H){return tT(F)-tT(H)}).map(function(F,H){return l.createElement("stop",{key:H,offset:F,stopColor:P[F]})}))),!N&&l.createElement("circle",{className:"".concat(r,"-circle-trail"),r:C,cx:0,cy:0,stroke:d,strokeLinecap:f,strokeWidth:a||i,style:T}),N?B():A())};g3.defaultProps=zge;g3.displayName="Circle";function td(e){return!e||e<0?0:e>100?100:e}function w1(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const Kge=e=>{let{percent:t,success:n,successPercent:r}=e;const o=td(w1({success:n,successPercent:r}));return[o,td(td(t)-o)]},Gge=e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||Ff.green,n||null]},Gb=(e,t,n)=>{var r,o,i,a;let s=-1,c=-1;if(t==="step"){const u=n.steps,d=n.strokeWidth;typeof e=="string"||typeof e>"u"?(s=e==="small"?2:14,c=d??8):typeof e=="number"?[s,c]=[e,e]:[s=14,c=8]=e,s*=u}else if(t==="line"){const u=n?.strokeWidth;typeof e=="string"||typeof e>"u"?c=u||(e==="small"?6:8):typeof e=="number"?[s,c]=[e,e]:[s=-1,c=8]=e}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[s,c]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,c]=[e,e]:(s=(o=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&o!==void 0?o:120,c=(a=(i=e[0])!==null&&i!==void 0?i:e[1])!==null&&a!==void 0?a:120));return[s,c]},Yge=3,qge=e=>Yge/e*100,Xge=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:o,gapDegree:i,width:a=120,type:s,children:c,success:u,size:d=a}=e,[f,p]=Gb(d,"circle");let{strokeWidth:g}=e;g===void 0&&(g=Math.max(qge(f),6));const v={width:f,height:p,fontSize:f*.15+6},y=l.useMemo(()=>{if(i||i===0)return i;if(s==="dashboard")return 75},[i,s]),S=o||s==="dashboard"&&"bottom"||void 0,b=Object.prototype.toString.call(e.strokeColor)==="[object Object]",x=Gge({success:u,strokeColor:e.strokeColor}),C=ne(`${t}-inner`,{[`${t}-circle-gradient`]:b}),E=l.createElement(g3,{percent:Kge(e),strokeWidth:g,trailWidth:g,strokeColor:x,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:y,gapPosition:S});return l.createElement("div",{className:C,style:v},f<=20?l.createElement(Io,{title:c},l.createElement("span",null,E)):l.createElement(l.Fragment,null,E,c))},Qge=Xge;var Zge=globalThis&&globalThis.__rest||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 t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(n=>{let{key:r,value:o}=n;return`${o} ${r}%`}).join(", ")},eve=(e,t)=>{const{from:n=Ff.blue,to:r=Ff.blue,direction:o=t==="rtl"?"to left":"to right"}=e,i=Zge(e,["from","to","direction"]);if(Object.keys(i).length!==0){const a=Jge(i);return{backgroundImage:`linear-gradient(${o}, ${a})`}}return{backgroundImage:`linear-gradient(${o}, ${n}, ${r})`}},tve=e=>{const{prefixCls:t,direction:n,percent:r,size:o,strokeWidth:i,strokeColor:a,strokeLinecap:s="round",children:c,trailColor:u=null,success:d}=e,f=a&&typeof a!="string"?eve(a,n):{backgroundColor:a},p=s==="square"||s==="butt"?0:void 0,g={backgroundColor:u||void 0,borderRadius:p},v=o??[-1,i||(o==="small"?6:8)],[y,S]=Gb(v,"line",{strokeWidth:i}),b=Object.assign({width:`${td(r)}%`,height:S,borderRadius:p},f),x=w1(e),C={width:`${td(x)}%`,height:S,borderRadius:p,backgroundColor:d?.strokeColor},E={width:y<0?"100%":y,height:S};return l.createElement(l.Fragment,null,l.createElement("div",{className:`${t}-outer`,style:E},l.createElement("div",{className:`${t}-inner`,style:g},l.createElement("div",{className:`${t}-bg`,style:b}),x!==void 0?l.createElement("div",{className:`${t}-success-bg`,style:C}):null)),c)},nve=tve,rve=e=>{const{size:t,steps:n,percent:r=0,strokeWidth:o=8,strokeColor:i,trailColor:a=null,prefixCls:s,children:c}=e,u=Math.round(n*(r/100)),f=t??[t==="small"?2:14,o],[p,g]=Gb(f,"step",{steps:n,strokeWidth:o}),v=p/n,y=new Array(n);for(let S=0;S{const t=e?"100%":"-100%";return new vn(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},ive=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},En(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${e.marginXS}px)`,paddingInlineEnd:`calc(2em + ${e.paddingXS}px)`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.progressRemainingColor,borderRadius:e.progressLineRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorInfo}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",backgroundColor:e.colorInfo,borderRadius:e.progressLineRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.progressInfoTextColor,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.progressLineRadius,opacity:0,animationName:rT(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:rT(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},ave=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.progressRemainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.colorText,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:`${e.fontSize/e.fontSizeSM}em`}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},sve=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.progressRemainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.colorInfo}}}}}},lve=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},cve=Pn("Progress",e=>{const t=e.marginXXS/2,n=sn(e,{progressLineRadius:100,progressInfoTextColor:e.colorText,progressDefaultColor:e.colorInfo,progressRemainingColor:e.colorFillSecondary,progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[ive(n),ave(n),sve(n),lve(n)]});var uve=globalThis&&globalThis.__rest||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,className:r,rootClassName:o,steps:i,strokeColor:a,percent:s=0,size:c="default",showInfo:u=!0,type:d="line",status:f,format:p,style:g}=e,v=uve(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),y=l.useMemo(()=>{var j,P;const M=w1(e);return parseInt(M!==void 0?(j=M??0)===null||j===void 0?void 0:j.toString():(P=s??0)===null||P===void 0?void 0:P.toString(),10)},[s,e.success,e.successPercent]),S=l.useMemo(()=>!dve.includes(f)&&y>=100?"success":f||"normal",[f,y]),{getPrefixCls:b,direction:x,progress:C}=l.useContext(St),E=b("progress",n),[$,O]=cve(E),I=l.useMemo(()=>{if(!u)return null;const j=w1(e);let P;const M=p||(B=>`${B}%`),A=d==="line";return p||S!=="exception"&&S!=="success"?P=M(td(s),td(j)):S==="exception"?P=A?l.createElement(Gs,null):l.createElement(No,null):S==="success"&&(P=A?l.createElement(Ch,null):l.createElement(Ju,null)),l.createElement("span",{className:`${E}-text`,title:typeof P=="string"?P:void 0},P)},[u,s,y,S,d,E,p]),N=Array.isArray(a)?a[0]:a,_=typeof a=="string"||Array.isArray(a)?a:void 0;let T;d==="line"?T=i?l.createElement(ove,Object.assign({},e,{strokeColor:_,prefixCls:E,steps:i}),I):l.createElement(nve,Object.assign({},e,{strokeColor:N,prefixCls:E,direction:x}),I):(d==="circle"||d==="dashboard")&&(T=l.createElement(Qge,Object.assign({},e,{strokeColor:N,prefixCls:E,progressStatus:S}),I));const D=ne(E,`${E}-status-${S}`,`${E}-${d==="dashboard"&&"circle"||i&&"steps"||d}`,{[`${E}-inline-circle`]:d==="circle"&&Gb(c,"circle")[0]<=20,[`${E}-show-info`]:u,[`${E}-${c}`]:typeof c=="string",[`${E}-rtl`]:x==="rtl"},C?.className,r,o,O);return $(l.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},C?.style),g),className:D,role:"progressbar","aria-valuenow":y},vr(v,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),T))}),fy=fve;var hve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};const pve=hve;var mve=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:pve}))};const i7=l.forwardRef(mve);var gve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"};const vve=gve;var yve=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:vve}))};const bve=l.forwardRef(yve),xve=()=>l.createElement("svg",{width:"252",height:"294"},l.createElement("defs",null,l.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),l.createElement("g",{fill:"none",fillRule:"evenodd"},l.createElement("g",{transform:"translate(0 .012)"},l.createElement("mask",{fill:"#fff"}),l.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),l.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),l.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),l.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),l.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),l.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),l.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),l.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),l.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),l.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),l.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),l.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),l.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),l.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),l.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),l.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),l.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),l.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),l.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),l.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),l.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),l.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),l.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),l.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),l.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),l.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),l.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),l.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),l.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),l.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),l.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),l.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),l.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),l.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),l.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),l.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),l.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),l.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),l.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),l.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),l.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),l.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),wve=xve,Sve=()=>l.createElement("svg",{width:"254",height:"294"},l.createElement("defs",null,l.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),l.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),l.createElement("g",{fill:"none",fillRule:"evenodd"},l.createElement("g",{transform:"translate(0 .067)"},l.createElement("mask",{fill:"#fff"}),l.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),l.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),l.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),l.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),l.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),l.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),l.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),l.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),l.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),l.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),l.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),l.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),l.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),l.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),l.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),l.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),l.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),l.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),l.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),l.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),l.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),l.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),l.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),l.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),l.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),l.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),l.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),l.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),l.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),l.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),l.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),l.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),l.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),l.createElement("mask",{fill:"#fff"}),l.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),l.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),l.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),l.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),l.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),l.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),l.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),l.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),l.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),l.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),l.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}))),Cve=Sve,Eve=()=>l.createElement("svg",{width:"251",height:"294"},l.createElement("g",{fill:"none",fillRule:"evenodd"},l.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),l.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),l.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),l.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),l.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),l.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),l.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),l.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),l.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),l.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),l.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),l.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),l.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),l.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),l.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),l.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),l.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),l.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),l.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),l.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),l.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),l.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),l.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),l.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),l.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),l.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),l.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),l.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),l.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),l.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),l.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),l.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),l.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),l.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),l.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),l.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),l.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),l.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),l.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}))),$ve=Eve,Ove=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:o,paddingXL:i,paddingXS:a,paddingLG:s,marginXS:c,lineHeight:u}=e;return{[t]:{padding:`${s*2}px ${i}px`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:s,textAlign:"center",[`& > ${r}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:n,marginBlock:c,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:u,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:s,padding:`${s}px ${o*2.5}px`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:a,"&:last-child":{marginInlineEnd:0}}}}},Ive=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},Rve=e=>[Ove(e),Ive(e)],Nve=e=>Rve(e),_ve=Pn("Result",e=>{const t=e.colorInfo,n=e.colorError,r=e.colorSuccess,o=e.colorWarning,i=sn(e,{resultInfoIconColor:t,resultErrorIconColor:n,resultSuccessIconColor:r,resultWarningIconColor:o,imageWidth:250,imageHeight:295});return[Nve(i)]},e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:e.fontSizeHeading3*3,extraMargin:`${e.paddingLG}px 0 0 0`})),Tve={success:Ch,error:Gs,info:lc,warning:bve},kg={404:wve,500:Cve,403:$ve},Pve=Object.keys(kg),jve=e=>{let{prefixCls:t,icon:n,status:r}=e;const o=ne(`${t}-icon`);if(Pve.includes(`${r}`)){const a=kg[r];return l.createElement("div",{className:`${o} ${t}-image`},l.createElement(a,null))}const i=l.createElement(Tve[r]);return n===null||n===!1?null:l.createElement("div",{className:o},n||i)},Mve=e=>{let{prefixCls:t,extra:n}=e;return n?l.createElement("div",{className:`${t}-extra`},n):null},Yb=e=>{let{prefixCls:t,className:n,rootClassName:r,subTitle:o,title:i,style:a,children:s,status:c="info",icon:u,extra:d}=e;const{getPrefixCls:f,direction:p,result:g}=l.useContext(St),v=f("result",t),[y,S]=_ve(v),b=ne(v,`${v}-${c}`,n,g?.className,r,{[`${v}-rtl`]:p==="rtl"},S),x=Object.assign(Object.assign({},g?.style),a);return y(l.createElement("div",{className:b,style:x},l.createElement(jve,{prefixCls:v,status:c,icon:u}),l.createElement("div",{className:`${v}-title`},i),o&&l.createElement("div",{className:`${v}-subtitle`},o),l.createElement(Mve,{prefixCls:v,extra:d}),s&&l.createElement("div",{className:`${v}-content`},s)))};Yb.PRESENTED_IMAGE_403=kg[403];Yb.PRESENTED_IMAGE_404=kg[404];Yb.PRESENTED_IMAGE_500=kg[500];const a7=Yb;var kve=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function oT(e){return typeof e=="string"}function s7(e){var t,n=e.className,r=e.prefixCls,o=e.style,i=e.active,a=e.status,s=e.iconPrefix,c=e.icon;e.wrapperStyle;var u=e.stepNumber,d=e.disabled,f=e.description,p=e.title,g=e.subTitle,v=e.progressDot,y=e.stepIcon,S=e.tailContent,b=e.icons,x=e.stepIndex,C=e.onStepClick,E=e.onClick,$=e.render,O=Ft(e,kve),I=!!C&&!d,N={};I&&(N.role="button",N.tabIndex=0,N.onClick=function(M){E?.(M),C(x)},N.onKeyDown=function(M){var A=M.which;(A===He.ENTER||A===He.SPACE)&&C(x)});var _=function(){var A,B,F=ne("".concat(r,"-icon"),"".concat(s,"icon"),(A={},ae(A,"".concat(s,"icon-").concat(c),c&&oT(c)),ae(A,"".concat(s,"icon-check"),!c&&a==="finish"&&(b&&!b.finish||!b)),ae(A,"".concat(s,"icon-cross"),!c&&a==="error"&&(b&&!b.error||!b)),A)),H=l.createElement("span",{className:"".concat(r,"-icon-dot")});return v?typeof v=="function"?B=l.createElement("span",{className:"".concat(r,"-icon")},v(H,{index:u-1,status:a,title:p,description:f})):B=l.createElement("span",{className:"".concat(r,"-icon")},H):c&&!oT(c)?B=l.createElement("span",{className:"".concat(r,"-icon")},c):b&&b.finish&&a==="finish"?B=l.createElement("span",{className:"".concat(r,"-icon")},b.finish):b&&b.error&&a==="error"?B=l.createElement("span",{className:"".concat(r,"-icon")},b.error):c||a==="finish"||a==="error"?B=l.createElement("span",{className:F}):B=l.createElement("span",{className:"".concat(r,"-icon")},u),y&&(B=y({index:u-1,status:a,title:p,description:f,node:B})),B},T=a||"wait",D=ne("".concat(r,"-item"),"".concat(r,"-item-").concat(T),n,(t={},ae(t,"".concat(r,"-item-custom"),c),ae(t,"".concat(r,"-item-active"),i),ae(t,"".concat(r,"-item-disabled"),d===!0),t)),j=le({},o),P=l.createElement("div",Re({},O,{className:D,style:j}),l.createElement("div",Re({onClick:E},N,{className:"".concat(r,"-item-container")}),l.createElement("div",{className:"".concat(r,"-item-tail")},S),l.createElement("div",{className:"".concat(r,"-item-icon")},_()),l.createElement("div",{className:"".concat(r,"-item-content")},l.createElement("div",{className:"".concat(r,"-item-title")},p,g&&l.createElement("div",{title:typeof g=="string"?g:void 0,className:"".concat(r,"-item-subtitle")},g)),f&&l.createElement("div",{className:"".concat(r,"-item-description")},f))));return $&&(P=$(P)||null),P}var Dve=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function v3(e){var t,n=e.prefixCls,r=n===void 0?"rc-steps":n,o=e.style,i=o===void 0?{}:o,a=e.className;e.children;var s=e.direction,c=s===void 0?"horizontal":s,u=e.type,d=u===void 0?"default":u,f=e.labelPlacement,p=f===void 0?"horizontal":f,g=e.iconPrefix,v=g===void 0?"rc":g,y=e.status,S=y===void 0?"process":y,b=e.size,x=e.current,C=x===void 0?0:x,E=e.progressDot,$=E===void 0?!1:E,O=e.stepIcon,I=e.initial,N=I===void 0?0:I,_=e.icons,T=e.onChange,D=e.itemRender,j=e.items,P=j===void 0?[]:j,M=Ft(e,Dve),A=d==="navigation",B=d==="inline",F=B||$,H=B?"horizontal":c,W=B?void 0:b,V=F?"vertical":p,K=ne(r,"".concat(r,"-").concat(H),a,(t={},ae(t,"".concat(r,"-").concat(W),W),ae(t,"".concat(r,"-label-").concat(V),H==="horizontal"),ae(t,"".concat(r,"-dot"),!!F),ae(t,"".concat(r,"-navigation"),A),ae(t,"".concat(r,"-inline"),B),t)),G=function(fe){T&&C!==fe&&T(fe)},re=function(fe,se){var oe=le({},fe),ie=N+se;return S==="error"&&se===C-1&&(oe.className="".concat(r,"-next-error")),oe.status||(ie===C?oe.status=S:ie{const{componentCls:t,customIconTop:n,customIconSize:r,customIconFontSize:o}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:n,width:r,height:r,fontSize:o,lineHeight:`${o}px`}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},Lve=Ave,Fve=e=>{const{componentCls:t,inlineDotSize:n,inlineTitleColor:r,inlineTailColor:o}=e,i=e.paddingXS+e.lineWidth,a={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:r}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${i}px ${e.paddingXXS}px 0`,margin:`0 ${e.marginXXS/2}px`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:n,height:n,marginInlineStart:`calc(50% - ${n/2}px)`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.fontSizeSM/4}},"&-content":{width:"auto",marginTop:e.marginXS-e.lineWidth},"&-title":{color:r,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.marginXXS/2},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:i+n/2,transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:o}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":Object.assign({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${e.lineWidth}px ${e.lineType} ${o}`}},a),"&-finish":Object.assign({[`${t}-item-tail::after`]:{backgroundColor:o},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:o,border:`${e.lineWidth}px ${e.lineType} ${o}`}},a),"&-error":a,"&-active, &-process":Object.assign({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${n/2}px)`,top:0}},a),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:r}}}}}},zve=Fve,Bve=e=>{const{componentCls:t,iconSize:n,lineHeight:r,iconSizeSM:o}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:n/2+e.controlHeightLG,padding:`${e.paddingXXS}px ${e.paddingLG}px`},"&-content":{display:"block",width:(n/2+e.controlHeightLG)*2,marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:r}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.controlHeightLG+(n-o)/2}}}}}},Hve=Bve,Uve=e=>{const{componentCls:t,navContentMaxWidth:n,navArrowColor:r,stepsNavActiveColor:o,motionDurationSlow:i}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:-e.marginSM}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:-e.margin,paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${i}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},Us),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${e.paddingSM/2}px)`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${e.lineWidth}px ${e.lineType} ${r}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${r}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:o,transition:`width ${i}, inset-inline-start ${i}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.lineWidth*3,height:`calc(100% - ${e.marginLG}px)`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:e.controlHeight*.25,height:e.controlHeight*.25,marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},Wve=Uve,Vve=e=>{const{antCls:t,componentCls:n}=e;return{[`&${n}-with-progress`]:{[`${n}-item`]:{paddingTop:e.paddingXXS,[`&-process ${n}-item-container ${n}-item-icon ${n}-icon`]:{color:e.processIconColor}},[`&${n}-vertical > ${n}-item `]:{paddingInlineStart:e.paddingXXS,[`> ${n}-item-container > ${n}-item-tail`]:{top:e.marginXXS,insetInlineStart:e.iconSize/2-e.lineWidth+e.paddingXXS}},[`&, &${n}-small`]:{[`&${n}-horizontal ${n}-item:first-child`]:{paddingBottom:e.paddingXXS,paddingInlineStart:e.paddingXXS}},[`&${n}-small${n}-vertical > ${n}-item > ${n}-item-container > ${n}-item-tail`]:{insetInlineStart:e.iconSizeSM/2-e.lineWidth+e.paddingXXS},[`&${n}-label-vertical`]:{[`${n}-item ${n}-item-tail`]:{top:e.margin-2*e.lineWidth}},[`${n}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetBlockStart:(e.iconSize-e.stepsProgressSize-e.lineWidth*2)/2,insetInlineStart:(e.iconSize-e.stepsProgressSize-e.lineWidth*2)/2}}}}},Kve=Vve,Gve=e=>{const{componentCls:t,descriptionMaxWidth:n,lineHeight:r,dotCurrentSize:o,dotSize:i,motionDurationSlow:a}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:r},"&-tail":{top:Math.floor((e.dotSize-e.lineWidth*3)/2),width:"100%",marginTop:0,marginBottom:0,marginInline:`${n/2}px 0`,padding:0,"&::after":{width:`calc(100% - ${e.marginSM*2}px)`,height:e.lineWidth*3,marginInlineStart:e.marginSM}},"&-icon":{width:i,height:i,marginInlineStart:(e.descriptionMaxWidth-i)/2,paddingInlineEnd:0,lineHeight:`${i}px`,background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${a}`,"&::after":{position:"absolute",top:-e.marginSM,insetInlineStart:(i-e.controlHeightLG*1.5)/2,width:e.controlHeightLG*1.5,height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:n},[`&-process ${t}-item-icon`]:{position:"relative",top:(i-o)/2,width:o,height:o,lineHeight:`${o}px`,background:"none",marginInlineStart:(e.descriptionMaxWidth-o)/2},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:(e.controlHeight-i)/2,marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:(e.controlHeight-o)/2,top:0,insetInlineStart:(i-o)/2,marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:(e.controlHeight-i)/2,insetInlineStart:0,margin:0,padding:`${i+e.paddingXS}px 0 ${e.paddingXS}px`,"&::after":{marginInlineStart:(i-e.lineWidth)/2}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:(e.controlHeightSM-i)/2},[`${t}-item-process ${t}-item-icon`]:{marginTop:(e.controlHeightSM-o)/2},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:(e.controlHeightSM-i)/2}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},Yve=Gve,qve=e=>{const{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},Xve=qve,Qve=e=>{const{componentCls:t,iconSizeSM:n,fontSizeSM:r,fontSize:o,colorTextDescription:i}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:`0 ${e.marginXS}px`,fontSize:r,lineHeight:`${n}px`,textAlign:"center",borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:o,lineHeight:`${n}px`,"&::after":{top:n/2}},[`${t}-item-description`]:{color:i,fontSize:o},[`${t}-item-tail`]:{top:n/2-e.paddingXXS},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:n,lineHeight:`${n}px`,transform:"none"}}}}},Zve=Qve,Jve=e=>{const{componentCls:t,iconSizeSM:n,iconSize:r}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:e.controlHeight*1.5,overflow:"hidden"},[`${t}-item-title`]:{lineHeight:`${r}px`},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:r/2-e.lineWidth,width:e.lineWidth,height:"100%",padding:`${r+e.marginXXS*1.5}px 0 ${e.marginXXS*1.5}px`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:n/2-e.lineWidth,padding:`${n+e.marginXXS*1.5}px 0 ${e.marginXXS*1.5}px`},[`${t}-item-title`]:{lineHeight:`${n}px`}}}}},e0e=Jve;var $f;(function(e){e.wait="wait",e.process="process",e.finish="finish",e.error="error"})($f||($f={}));const S0=(e,t)=>{const n=`${t.componentCls}-item`,r=`${e}IconColor`,o=`${e}TitleColor`,i=`${e}DescriptionColor`,a=`${e}TailColor`,s=`${e}IconBgColor`,c=`${e}IconBorderColor`,u=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[s],borderColor:t[c],[`> ${t.componentCls}-icon`]:{color:t[r],[`${t.componentCls}-icon-dot`]:{background:t[u]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[u]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[o],"&::after":{backgroundColor:t[a]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[i]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[a]}}},t0e=e=>{const{componentCls:t,motionDurationSlow:n}=e,r=`${t}-item`,o=`${r}-icon`;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[r]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${r}-container > ${r}-tail, > ${r}-container > ${r}-content > ${r}-title::after`]:{display:"none"}}},[`${r}-container`]:{outline:"none","&:focus-visible":{[o]:Object.assign({},vl(e))}},[`${o}, ${r}-content`]:{display:"inline-block",verticalAlign:"top"},[o]:{width:e.iconSize,height:e.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:`${e.iconSize}px`,textAlign:"center",borderRadius:e.iconSize,border:`${e.lineWidth}px ${e.lineType} transparent`,transition:`background-color ${n}, border-color ${n}`,[`${t}-icon`]:{position:"relative",top:e.iconTop,color:e.colorPrimary,lineHeight:1}},[`${r}-tail`]:{position:"absolute",top:e.iconSize/2-e.paddingXXS,insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${n}`,content:'""'}},[`${r}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:`${e.titleLineHeight}px`,"&::after":{position:"absolute",top:e.titleLineHeight/2,insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${r}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${r}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},S0($f.wait,e)),S0($f.process,e)),{[`${r}-process > ${r}-container > ${r}-title`]:{fontWeight:e.fontWeightStrong}}),S0($f.finish,e)),S0($f.error,e)),{[`${r}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${r}-disabled`]:{cursor:"not-allowed"}})},n0e=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${n}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionMaxWidth,whiteSpace:"normal"}}}}},r0e=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},En(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),t0e(e)),n0e(e)),Lve(e)),Zve(e)),e0e(e)),Hve(e)),Yve(e)),Wve(e)),Xve(e)),Kve(e)),zve(e))}},o0e=Pn("Steps",e=>{const{wireframe:t,colorTextDisabled:n,controlHeightLG:r,colorTextLightSolid:o,colorText:i,colorPrimary:a,colorTextLabel:s,colorTextDescription:c,colorTextQuaternary:u,colorFillContent:d,controlItemBgActive:f,colorError:p,colorBgContainer:g,colorBorderSecondary:v,colorSplit:y}=e,S=sn(e,{processIconColor:o,processTitleColor:i,processDescriptionColor:i,processIconBgColor:a,processIconBorderColor:a,processDotColor:a,processTailColor:y,waitIconColor:t?n:s,waitTitleColor:c,waitDescriptionColor:c,waitTailColor:y,waitIconBgColor:t?g:d,waitIconBorderColor:t?n:"transparent",waitDotColor:n,finishIconColor:a,finishTitleColor:i,finishDescriptionColor:c,finishTailColor:a,finishIconBgColor:t?g:f,finishIconBorderColor:t?a:f,finishDotColor:a,errorIconColor:o,errorTitleColor:p,errorDescriptionColor:p,errorTailColor:y,errorIconBgColor:p,errorIconBorderColor:p,errorDotColor:p,stepsNavActiveColor:a,stepsProgressSize:r,inlineDotSize:6,inlineTitleColor:u,inlineTailColor:v});return[r0e(S)]},e=>{const{colorTextDisabled:t,fontSize:n,controlHeightSM:r,controlHeight:o,controlHeightLG:i,fontSizeHeading3:a}=e;return{titleLineHeight:o,customIconSize:o,customIconTop:0,customIconFontSize:r,iconSize:o,iconTop:-.5,iconFontSize:n,iconSizeSM:a,dotSize:o/4,dotCurrentSize:i/4,navArrowColor:t,navContentMaxWidth:"auto",descriptionMaxWidth:140}});function i0e(e){return e.filter(t=>t)}function a0e(e,t){if(e)return e;const n=zo(t).map(r=>{if(l.isValidElement(r)){const{props:o}=r;return Object.assign({},o)}return null});return i0e(n)}var s0e=globalThis&&globalThis.__rest||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{percent:t,size:n,className:r,rootClassName:o,direction:i,items:a,responsive:s=!0,current:c=0,children:u,style:d}=e,f=s0e(e,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:p}=jb(s),{getPrefixCls:g,direction:v,steps:y}=l.useContext(St),S=l.useMemo(()=>s&&p?"vertical":i,[p,i]),b=Zo(n),x=g("steps",e.prefixCls),[C,E]=o0e(x),$=e.type==="inline",O=g("",e.iconPrefix),I=a0e(a,u),N=$?void 0:t,_=Object.assign(Object.assign({},y?.style),d),T=ne(y?.className,{[`${x}-rtl`]:v==="rtl",[`${x}-with-progress`]:N!==void 0},r,o,E),D={finish:l.createElement(Ju,{className:`${x}-finish-icon`}),error:l.createElement(No,{className:`${x}-error-icon`})},j=M=>{let{node:A,status:B}=M;if(B==="process"&&N!==void 0){const F=b==="small"?32:40;return l.createElement("div",{className:`${x}-progress-icon`},l.createElement(fy,{type:"circle",percent:N,size:F,strokeWidth:4,format:()=>null}),A)}return A},P=(M,A)=>M.description?l.createElement(Io,{title:M.description},A):A;return C(l.createElement(v3,Object.assign({icons:D},f,{style:_,current:c,size:b,items:I,itemRender:$?P:void 0,stepIcon:j,direction:S,prefixCls:x,iconPrefix:O,className:T})))};l7.Step=v3.Step;const y3=l7;var l0e=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],c7=l.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-switch":r,i=e.className,a=e.checked,s=e.defaultChecked,c=e.disabled,u=e.loadingIcon,d=e.checkedChildren,f=e.unCheckedChildren,p=e.onClick,g=e.onChange,v=e.onKeyDown,y=Ft(e,l0e),S=Vn(!1,{value:a,defaultValue:s}),b=me(S,2),x=b[0],C=b[1];function E(N,_){var T=x;return c||(T=N,C(T),g?.(T,_)),T}function $(N){N.which===He.LEFT?E(!1,N):N.which===He.RIGHT&&E(!0,N),v?.(N)}function O(N){var _=E(!x,N);p?.(_,N)}var I=ne(o,i,(n={},ae(n,"".concat(o,"-checked"),x),ae(n,"".concat(o,"-disabled"),c),n));return l.createElement("button",Re({},y,{type:"button",role:"switch","aria-checked":x,disabled:c,className:I,ref:t,onKeyDown:$,onClick:O}),u,l.createElement("span",{className:"".concat(o,"-inner")},l.createElement("span",{className:"".concat(o,"-inner-checked")},d),l.createElement("span",{className:"".concat(o,"-inner-unchecked")},f)))});c7.displayName="Switch";const c0e=e=>{const{componentCls:t}=e,n=`${t}-inner`;return{[t]:{[`&${t}-small`]:{minWidth:e.switchMinWidthSM,height:e.switchHeightSM,lineHeight:`${e.switchHeightSM}px`,[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMaxSM,paddingInlineEnd:e.switchInnerMarginMinSM,[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSizeSM+e.switchPadding*2}px - ${e.switchInnerMarginMaxSM*2}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSizeSM+e.switchPadding*2}px + ${e.switchInnerMarginMaxSM*2}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeightSM,marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:e.switchPinSizeSM,height:e.switchPinSizeSM},[`${t}-loading-icon`]:{top:(e.switchPinSizeSM-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMinSM,paddingInlineEnd:e.switchInnerMarginMaxSM,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding*2}px + ${e.switchInnerMarginMaxSM*2}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSizeSM+e.switchPadding*2}px - ${e.switchInnerMarginMaxSM*2}px)`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},u0e=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:(e.switchPinSize-e.fontSize)/2,color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},d0e=e=>{const{componentCls:t,motion:n}=e,r=`${t}-handle`;return{[t]:{[r]:{position:"absolute",top:e.switchPadding,insetInlineStart:e.switchPadding,width:e.switchPinSize,height:e.switchPinSize,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:e.colorWhite,borderRadius:e.switchPinSize/2,boxShadow:e.switchHandleShadow,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${r}`]:{insetInlineStart:`calc(100% - ${e.switchPinSize+e.switchPadding}px)`},[`&:not(${t}-disabled):active`]:n?{[`${r}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${r}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}:{}}}},f0e=e=>{const{componentCls:t}=e,n=`${t}-inner`;return{[t]:{[n]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:e.switchInnerMarginMax,paddingInlineEnd:e.switchInnerMarginMin,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${n}-checked, ${n}-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"},[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSize+e.switchPadding*2}px - ${e.switchInnerMarginMax*2}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSize+e.switchPadding*2}px + ${e.switchInnerMarginMax*2}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeight,marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${n}`]:{paddingInlineStart:e.switchInnerMarginMin,paddingInlineEnd:e.switchInnerMarginMax,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSize+e.switchPadding*2}px + ${e.switchInnerMarginMax*2}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSize+e.switchPadding*2}px - ${e.switchInnerMarginMax*2}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:e.switchPadding*2,marginInlineEnd:-e.switchPadding*2}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:-e.switchPadding*2,marginInlineEnd:e.switchPadding*2}}}}}},h0e=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},En(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:e.switchMinWidth,height:e.switchHeight,lineHeight:`${e.switchHeight}px`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),lu(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"}})}},p0e=Pn("Switch",e=>{const t=e.fontSize*e.lineHeight,n=e.controlHeight/2,r=2,o=t-r*2,i=n-r*2,a=sn(e,{switchMinWidth:o*2+r*4,switchHeight:t,switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchInnerMarginMin:o/2,switchInnerMarginMax:o+r+r*2,switchPadding:r,switchPinSize:o,switchBg:e.colorBgContainer,switchMinWidthSM:i*2+r*2,switchHeightSM:n,switchInnerMarginMinSM:i/2,switchInnerMarginMaxSM:i+r+r*2,switchPinSizeSM:i,switchHandleShadow:`0 2px 4px 0 ${new kn("#00230b").setAlpha(.2).toRgbString()}`,switchLoadingIconSize:e.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[h0e(a),f0e(a),d0e(a),u0e(a),c0e(a)]});var m0e=globalThis&&globalThis.__rest||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:s,style:c}=e,u=m0e(e,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:d,direction:f,switch:p}=l.useContext(St),g=l.useContext(cs),v=(o??g)||i,y=d("switch",n),S=l.createElement("div",{className:`${y}-handle`},i&&l.createElement(mu,{className:`${y}-loading-icon`})),[b,x]=p0e(y),C=Zo(r),E=ne(p?.className,{[`${y}-small`]:C==="small",[`${y}-loading`]:i,[`${y}-rtl`]:f==="rtl"},a,s,x),$=Object.assign(Object.assign({},p?.style),c);return b(l.createElement(vg,{component:"Switch"},l.createElement(c7,Object.assign({},u,{prefixCls:y,className:E,style:$,disabled:v,ref:t,loadingIcon:S}))))});u7.__ANT_SWITCH=!0;const po=u7;var Bc={},S1="rc-table-internal-hook";function g0e(e){var t=l.createContext(void 0),n=function(o){var i=o.value,a=o.children,s=l.useRef(i);s.current=i;var c=l.useState(function(){return{getValue:function(){return s.current},listeners:new Set}}),u=me(c,1),d=u[0];return Wn(function(){Bs.unstable_batchedUpdates(function(){d.listeners.forEach(function(f){f(i)})})},[i]),l.createElement(t.Provider,{value:d},a)};return{Context:t,Provider:n,defaultValue:e}}function qs(e,t){var n=Lo(typeof t=="function"?t:function(f){if(t===void 0)return f;if(!Array.isArray(t))return f[t];var p={};return t.forEach(function(g){p[g]=f[g]}),p}),r=l.useContext(e?.Context),o=r||{},i=o.listeners,a=o.getValue,s=l.useRef();s.current=n(r?a():e?.defaultValue);var c=l.useState({}),u=me(c,2),d=u[1];return Wn(function(){if(!r)return;function f(p){var g=n(p);os(s.current,g,!0)||d({})}return i.add(f),function(){i.delete(f)}},[r]),s.current}var d7=l.createContext(0);function f7(){return l.useContext(d7)}function v0e(e,t){var n=Ks(e),r=function(i,a){var s=n?{ref:a}:{},c=l.useRef(0),u=l.useRef(i);return(!t||t(u.current,i))&&(c.current+=1),u.current=i,l.createElement(d7.Provider,{value:c.current},l.createElement(e,Re({},i,s)))};return n?l.forwardRef(r):r}function qb(e,t){var n=Ks(e),r=function(i,a){var s=n?{ref:a}:{};return f7(),l.createElement(e,Re({},i,s))};return n?l.memo(l.forwardRef(r),t):l.memo(r,t)}var us=g0e();function y0e(e,t){var n=l.useRef(0);n.current+=1;var r=l.useRef(e),o=[];Object.keys(e||{}).map(function(a){var s;e?.[a]!==((s=r.current)===null||s===void 0?void 0:s[a])&&o.push(a)}),r.current=e;var i=l.useRef([]);return o.length&&(i.current=o),l.useDebugValue(n.current),l.useDebugValue(i.current.join(", ")),t&&console.log("".concat(t,":"),n.current,i.current),n.current}var b0e=l.memo(function(){var e=y0e();return l.createElement("h1",null,"Render Times: ",e)});b0e.displayName="RenderBlock";var h7=l.createContext({renderWithProps:!1}),x0e="RC_TABLE_KEY";function w0e(e){return e==null?[]:Array.isArray(e)?e:[e]}function Xb(e){var t=[],n={};return e.forEach(function(r){for(var o=r||{},i=o.key,a=o.dataIndex,s=i||w0e(a).join("-")||x0e;n[s];)s="".concat(s,"_next");n[s]=!0,t.push(s)}),t}function gE(e){return e!=null}function S0e(e){return e&&Wt(e)==="object"&&!Array.isArray(e)&&!l.isValidElement(e)}function C0e(e,t,n,r,o,i){var a=l.useContext(h7),s=f7(),c=hc(function(){if(gE(r))return[r];var u=t==null||t===""?[]:Array.isArray(t)?t:[t],d=Ca(e,u),f=d,p=void 0;if(o){var g=o(d,e,n);S0e(g)?(f=g.children,p=g.props,a.renderWithProps=!0):f=g}return[f,p]},[s,e,r,t,o,n],function(u,d){if(i){var f=me(u,2),p=f[1],g=me(d,2),v=g[1];return i(v,p)}return a.renderWithProps?!0:!os(u,d,!0)});return c}function E0e(e,t,n,r){var o=e+t-1;return e<=r&&o>=n}function $0e(e,t){return qs(us,function(n){var r=E0e(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var O0e=function(t){var n=t.ellipsis,r=t.rowType,o=t.children,i,a=n===!0?{showTitle:!0}:n;return a&&(a.showTitle||r==="header")&&(typeof o=="string"||typeof o=="number"?i=o.toString():l.isValidElement(o)&&typeof o.props.children=="string"&&(i=o.props.children)),i};function I0e(e){var t,n,r,o,i,a,s,c,u=e.component,d=e.children,f=e.ellipsis,p=e.scope,g=e.prefixCls,v=e.className,y=e.align,S=e.record,b=e.render,x=e.dataIndex,C=e.renderIndex,E=e.shouldCellUpdate,$=e.index,O=e.rowType,I=e.colSpan,N=e.rowSpan,_=e.fixLeft,T=e.fixRight,D=e.firstFixLeft,j=e.lastFixLeft,P=e.firstFixRight,M=e.lastFixRight,A=e.appendNode,B=e.additionalProps,F=B===void 0?{}:B,H=e.isSticky,W="".concat(g,"-cell"),V=qs(us,["supportSticky","allColumnsFixedLeft"]),K=V.supportSticky,G=V.allColumnsFixedLeft,re=C0e(S,x,C,d,b,E),Q=me(re,2),fe=Q[0],se=Q[1],oe={},ie=typeof _=="number"&&K,ge=typeof T=="number"&&K;ie&&(oe.position="sticky",oe.left=_),ge&&(oe.position="sticky",oe.right=T);var ve=(t=(n=(r=se?.colSpan)!==null&&r!==void 0?r:F.colSpan)!==null&&n!==void 0?n:I)!==null&&t!==void 0?t:1,he=(o=(i=(a=se?.rowSpan)!==null&&a!==void 0?a:F.rowSpan)!==null&&i!==void 0?i:N)!==null&&o!==void 0?o:1,be=$0e($,he),ye=me(be,2),Ce=ye[0],Ee=ye[1],je=function(it){var qe;S&&Ee($,$+he-1),F==null||(qe=F.onMouseEnter)===null||qe===void 0||qe.call(F,it)},De=function(it){var qe;S&&Ee(-1,-1),F==null||(qe=F.onMouseLeave)===null||qe===void 0||qe.call(F,it)};if(ve===0||he===0)return null;var _e=(s=F.title)!==null&&s!==void 0?s:O0e({rowType:O,ellipsis:f,children:fe}),Me=ne(W,v,(c={},ae(c,"".concat(W,"-fix-left"),ie&&K),ae(c,"".concat(W,"-fix-left-first"),D&&K),ae(c,"".concat(W,"-fix-left-last"),j&&K),ae(c,"".concat(W,"-fix-left-all"),j&&G&&K),ae(c,"".concat(W,"-fix-right"),ge&&K),ae(c,"".concat(W,"-fix-right-first"),P&&K),ae(c,"".concat(W,"-fix-right-last"),M&&K),ae(c,"".concat(W,"-ellipsis"),f),ae(c,"".concat(W,"-with-append"),A),ae(c,"".concat(W,"-fix-sticky"),(ie||ge)&&H&&K),ae(c,"".concat(W,"-row-hover"),!se&&Ce),c),F.className,se?.className),Ie={};y&&(Ie.textAlign=y);var Fe=le(le(le(le({},F.style),Ie),oe),se?.style),Ge=fe;return Wt(Ge)==="object"&&!Array.isArray(Ge)&&!l.isValidElement(Ge)&&(Ge=null),f&&(j||P)&&(Ge=l.createElement("span",{className:"".concat(W,"-content")},Ge)),l.createElement(u,Re({},se,F,{className:Me,style:Fe,title:_e,scope:p,onMouseEnter:je,onMouseLeave:De,colSpan:ve!==1?ve:null,rowSpan:he!==1?he:null}),A,Ge)}const Qb=l.memo(I0e);function b3(e,t,n,r,o,i){var a=n[e]||{},s=n[t]||{},c,u;a.fixed==="left"?c=r.left[o==="rtl"?t:e]:s.fixed==="right"&&(u=r.right[o==="rtl"?e:t]);var d=!1,f=!1,p=!1,g=!1,v=n[t+1],y=n[e-1],S=!(i!=null&&i.children);if(o==="rtl"){if(c!==void 0){var b=y&&y.fixed==="left";g=!b&&S}else if(u!==void 0){var x=v&&v.fixed==="right";p=!x&&S}}else if(c!==void 0){var C=v&&v.fixed==="left";d=!C&&S}else if(u!==void 0){var E=y&&y.fixed==="right";f=!E&&S}return{fixLeft:c,fixRight:u,lastFixLeft:d,firstFixRight:f,lastFixRight:p,firstFixLeft:g,isSticky:r.isSticky}}var p7=l.createContext({});function R0e(e){var t=e.className,n=e.index,r=e.children,o=e.colSpan,i=o===void 0?1:o,a=e.rowSpan,s=e.align,c=qs(us,["prefixCls","direction"]),u=c.prefixCls,d=c.direction,f=l.useContext(p7),p=f.scrollColumnIndex,g=f.stickyOffsets,v=f.flattenColumns,y=f.columns,S=n+i-1,b=S+1===p?i+1:i,x=b3(n,n+b-1,v,g,d,y?.[n]);return l.createElement(Qb,Re({className:t,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:s,colSpan:b,rowSpan:a,render:function(){return r}},x))}var N0e=["children"];function _0e(e){var t=e.children,n=Ft(e,N0e);return l.createElement("tr",n,t)}function Zb(e){var t=e.children;return t}Zb.Row=_0e;Zb.Cell=R0e;function T0e(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,o=e.columns,i=qs(us,"prefixCls"),a=r.length-1,s=r[a],c=l.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:s!=null&&s.scrollbar?a:null,columns:o}},[s,r,a,n,o]);return l.createElement(p7.Provider,{value:c},l.createElement("tfoot",{className:"".concat(i,"-summary")},t))}const C0=qb(T0e);var m7=Zb;function P0e(e){return null}function j0e(e){return null}function g7(e,t,n,r,o,i){var a=[];a.push({record:e,indent:t,index:i});var s=o(e),c=r?.has(s);if(e&&Array.isArray(e[n])&&c)for(var u=0;u1?Ee-1:0),De=1;De=0;s-=1){var c=t[s],u=n&&n[s],d=u&&u[bm];if(c||d||a){var f=d||{};f.columnType;var p=Ft(f,B0e);o.unshift(l.createElement("col",Re({key:s,style:{width:c}},p))),a=!0}}return l.createElement("colgroup",null,o)}var H0e=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function U0e(e,t){return l.useMemo(function(){for(var n=[],r=0;r=0})},[i]),T=i[i.length-1],D={fixed:T?T.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(C,"-cell-scrollbar")}}},j=l.useMemo(function(){return O?[].concat(Ze(o),[D]):o},[O,o]),P=l.useMemo(function(){return O?[].concat(Ze(i),[D]):i},[O,i]),M=l.useMemo(function(){var B=c.right,F=c.left;return le(le({},c),{},{left:u==="rtl"?[].concat(Ze(F.map(function(H){return H+O})),[0]):F,right:u==="rtl"?B:[].concat(Ze(B.map(function(H){return H+O})),[0]),isSticky:$})},[O,c,$]),A=U0e(a,s);return l.createElement("div",{style:le({overflow:"hidden"},$?{top:f,bottom:p}:{}),ref:N,className:ne(n,ae({},g,!!g))},l.createElement("table",{style:{tableLayout:"fixed",visibility:r||A?null:"hidden"}},(!r||!y||_)&&l.createElement(x7,{colWidths:A?[].concat(Ze(A),[O]):[],columCount:s+1,columns:P}),S(le(le({},b),{},{stickyOffsets:M,columns:j,flattenColumns:P}))))});w7.displayName="FixedHolder";const iT=l.memo(w7);function S7(e){var t=e.cells,n=e.stickyOffsets,r=e.flattenColumns,o=e.rowComponent,i=e.cellComponent,a=e.tdCellComponent,s=e.onHeaderRow,c=e.index,u=qs(us,["prefixCls","direction"]),d=u.prefixCls,f=u.direction,p;s&&(p=s(t.map(function(v){return v.column}),c));var g=Xb(t.map(function(v){return v.column}));return l.createElement(o,p,t.map(function(v,y){var S=v.column,b=b3(v.colStart,v.colEnd,r,n,f,S),x;return S&&S.onHeaderCell&&(x=v.column.onHeaderCell(S)),l.createElement(Qb,Re({},v,{scope:S.title?v.colSpan>1?"colgroup":"col":null,ellipsis:S.ellipsis,align:S.align,component:S.title?i:a,prefixCls:d,key:g[y]},b,{additionalProps:x,rowType:"header"}))}))}S7.displayName="HeaderRow";function W0e(e){var t=[];function n(a,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[c]=t[c]||[];var u=s,d=a.filter(Boolean).map(function(f){var p={key:f.key,className:f.className||"",children:f.title,column:f,colStart:u},g=1,v=f.children;return v&&v.length>0&&(g=n(v,u,c+1).reduce(function(y,S){return y+S},0),p.hasSubColumns=!0),"colSpan"in f&&(g=f.colSpan),"rowSpan"in f&&(p.rowSpan=f.rowSpan),p.colSpan=g,p.colEnd=p.colStart+g-1,t[c].push(p),u+=g,g});return d}n(e,0);for(var r=t.length,o=function(s){t[s].forEach(function(c){!("rowSpan"in c)&&!c.hasSubColumns&&(c.rowSpan=r-s)})},i=0;i0?[].concat(Ze(t),Ze(vE(i).map(function(a){return le({fixed:o},a)}))):[].concat(Ze(t),[le(le({},n),{},{fixed:o})])},[])}function Y0e(e){return e.map(function(t){var n=t.fixed,r=Ft(t,G0e),o=n;return n==="left"?o="right":n==="right"&&(o="left"),le({fixed:o},r)})}function q0e(e,t){var n=e.prefixCls,r=e.columns,o=e.children,i=e.expandable,a=e.expandedKeys,s=e.columnTitle,c=e.getRowKey,u=e.onTriggerExpand,d=e.expandIcon,f=e.rowExpandable,p=e.expandIconColumnIndex,g=e.direction,v=e.expandRowByClick,y=e.columnWidth,S=e.fixed,b=l.useMemo(function(){return r||x3(o)},[r,o]),x=l.useMemo(function(){if(i){var $,O=b.slice();if(!O.includes(Bc)){var I=p||0;I>=0&&O.splice(I,0,Bc)}var N=O.indexOf(Bc);O=O.filter(function(j,P){return j!==Bc||P===N});var _=b[N],T;(S==="left"||S)&&!p?T="left":(S==="right"||S)&&p===b.length?T="right":T=_?_.fixed:null;var D=($={},ae($,bm,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),ae($,"title",s),ae($,"fixed",T),ae($,"className","".concat(n,"-row-expand-icon-cell")),ae($,"width",y),ae($,"render",function(P,M,A){var B=c(M,A),F=a.has(B),H=f?f(M):!0,W=d({prefixCls:n,expanded:F,expandable:H,record:M,onExpand:u});return v?l.createElement("span",{onClick:function(K){return K.stopPropagation()}},W):W}),$);return O.map(function(j){return j===Bc?D:j})}return b.filter(function(j){return j!==Bc})},[i,b,c,a,d,g]),C=l.useMemo(function(){var $=x;return t&&($=t($)),$.length||($=[{render:function(){return null}}]),$},[t,x,g]),E=l.useMemo(function(){return g==="rtl"?Y0e(vE(C)):vE(C)},[C,g]);return[C,E]}function X0e(e){var t,n=e.prefixCls,r=e.record,o=e.onExpand,i=e.expanded,a=e.expandable,s="".concat(n,"-row-expand-icon");if(!a)return l.createElement("span",{className:ne(s,"".concat(n,"-row-spaced"))});var c=function(d){o(r,d),d.stopPropagation()};return l.createElement("span",{className:ne(s,(t={},ae(t,"".concat(n,"-row-expanded"),i),ae(t,"".concat(n,"-row-collapsed"),!i),t)),onClick:c})}function Q0e(e,t,n){var r=[];function o(i){(i||[]).forEach(function(a,s){r.push(t(a,s)),o(a[n])})}return o(e),r}function Z0e(e,t,n){var r=z0e(e),o=r.expandIcon,i=r.expandedRowKeys,a=r.defaultExpandedRowKeys,s=r.defaultExpandAllRows,c=r.expandedRowRender,u=r.onExpand,d=r.onExpandedRowsChange,f=r.childrenColumnName,p=o||X0e,g=f||"children",v=l.useMemo(function(){return c?"row":e.expandable&&e.internalHooks===S1&&e.expandable.__PARENT_RENDER_ICON__||t.some(function($){return $&&Wt($)==="object"&&$[g]})?"nest":!1},[!!c,t]),y=l.useState(function(){return a||(s?Q0e(t,n,g):[])}),S=me(y,2),b=S[0],x=S[1],C=l.useMemo(function(){return new Set(i||b||[])},[i,b]),E=l.useCallback(function($){var O=n($,t.indexOf($)),I,N=C.has(O);N?(C.delete(O),I=Ze(C)):I=[].concat(Ze(C),[O]),x(I),u&&u(!N,$),d&&d(I)},[n,C,t,u,d]);return[r,v,C,p,g,E]}function J0e(e,t,n,r){var o=e.map(function(i,a){return b3(a,a,e,t,n,r?.[a])});return hc(function(){return o},[o],function(i,a){return!os(i,a)})}function C7(e){var t=l.useRef(e),n=l.useState({}),r=me(n,2),o=r[1],i=l.useRef(null),a=l.useRef([]);function s(c){a.current.push(c);var u=Promise.resolve();i.current=u,u.then(function(){if(i.current===u){var d=a.current,f=t.current;a.current=[],d.forEach(function(p){t.current=p(t.current)}),i.current=null,f!==t.current&&o({})}})}return l.useEffect(function(){return function(){i.current=null}},[]),[t.current,s]}function eye(e){var t=l.useRef(e||null),n=l.useRef();function r(){window.clearTimeout(n.current)}function o(a){t.current=a,r(),n.current=window.setTimeout(function(){t.current=null,n.current=void 0},100)}function i(){return t.current}return l.useEffect(function(){return r},[]),[o,i]}function tye(){var e=l.useState(-1),t=me(e,2),n=t[0],r=t[1],o=l.useState(-1),i=me(o,2),a=i[0],s=i[1],c=l.useCallback(function(u,d){r(u),s(d)},[]);return[n,a,c]}var sT=Bo()?window:null;function nye(e,t){var n=Wt(e)==="object"?e:{},r=n.offsetHeader,o=r===void 0?0:r,i=n.offsetSummary,a=i===void 0?0:i,s=n.offsetScroll,c=s===void 0?0:s,u=n.getContainer,d=u===void 0?function(){return sT}:u,f=d()||sT;return l.useMemo(function(){var p=!!e;return{isSticky:p,stickyClassName:p?"".concat(t,"-sticky-holder"):"",offsetHeader:o,offsetSummary:a,offsetScroll:c,container:f}},[c,o,a,t,f])}function rye(e,t,n){var r=l.useMemo(function(){for(var o=[],i=[],a=0,s=0,c=0;c=f&&(F=f-p),a({scrollLeft:F/f*(d+2)}),x.current.x=P.pageX},T=function(){if(i.current){var P=fE(i.current).top,M=P+i.current.offsetHeight,A=c===window?document.documentElement.scrollTop+window.innerHeight:fE(c).top+c.clientHeight;M-l1()<=A||P>=A-s?b(function(B){return le(le({},B),{},{isHiddenScrollBar:!0})}):b(function(B){return le(le({},B),{},{isHiddenScrollBar:!1})})}},D=function(P){b(function(M){return le(le({},M),{},{scrollLeft:P/d*f||0})})};return l.useImperativeHandle(n,function(){return{setScrollLeft:D}}),l.useEffect(function(){var j=Kl(document.body,"mouseup",I,!1),P=Kl(document.body,"mousemove",_,!1);return T(),function(){j.remove(),P.remove()}},[p,$]),l.useEffect(function(){var j=Kl(c,"scroll",T,!1),P=Kl(window,"resize",T,!1);return function(){j.remove(),P.remove()}},[c]),l.useEffect(function(){S.isHiddenScrollBar||b(function(j){var P=i.current;return P?le(le({},j),{},{scrollLeft:P.scrollLeft/P.scrollWidth*P.clientWidth}):j})},[S.isHiddenScrollBar]),d<=f||!p||S.isHiddenScrollBar?null:l.createElement("div",{style:{height:l1(),width:f,bottom:s},className:"".concat(u,"-sticky-scroll")},l.createElement("div",{onMouseDown:N,ref:g,className:ne("".concat(u,"-sticky-scroll-bar"),ae({},"".concat(u,"-sticky-scroll-bar-active"),$)),style:{width:"".concat(p,"px"),transform:"translate3d(".concat(S.scrollLeft,"px, 0, 0)")}}))};const iye=l.forwardRef(oye);var aye=[],sye={};function lye(){return"No Data"}function cye(e){var t,n=le({rowKey:"key",prefixCls:"rc-table",emptyText:lye},e),r=n.prefixCls,o=n.className,i=n.rowClassName,a=n.style,s=n.data,c=n.rowKey,u=n.scroll,d=n.tableLayout,f=n.direction,p=n.title,g=n.footer,v=n.summary,y=n.caption,S=n.id,b=n.showHeader,x=n.components,C=n.emptyText,E=n.onRow,$=n.onHeaderRow,O=n.internalHooks,I=n.transformColumns,N=n.internalRefs,_=n.sticky,T=s||aye,D=!!T.length,j=l.useCallback(function(Rt,Ht){return Ca(x,Rt)||Ht},[x]),P=l.useMemo(function(){return typeof c=="function"?c:function(Rt){var Ht=Rt&&Rt[c];return Ht}},[c]),M=tye(),A=me(M,3),B=A[0],F=A[1],H=A[2],W=Z0e(n,T,P),V=me(W,6),K=V[0],G=V[1],re=V[2],Q=V[3],fe=V[4],se=V[5],oe=l.useState(0),ie=me(oe,2),ge=ie[0],ve=ie[1],he=q0e(le(le(le({},n),K),{},{expandable:!!K.expandedRowRender,columnTitle:K.columnTitle,expandedKeys:re,getRowKey:P,onTriggerExpand:se,expandIcon:Q,expandIconColumnIndex:K.expandIconColumnIndex,direction:f}),O===S1?I:null),be=me(he,2),ye=be[0],Ce=be[1],Ee=l.useMemo(function(){return{columns:ye,flattenColumns:Ce}},[ye,Ce]),je=l.useRef(),De=l.useRef(),_e=l.useRef(),Me=l.useRef(),Ie=l.useRef(),Fe=l.useState(!1),Ge=me(Fe,2),ft=Ge[0],it=Ge[1],qe=l.useState(!1),at=me(qe,2),U=at[0],k=at[1],L=C7(new Map),X=me(L,2),ee=X[0],$e=X[1],we=Xb(Ce),de=we.map(function(Rt){return ee.get(Rt)}),Se=l.useMemo(function(){return de},[de.join("_")]),Ae=rye(Se,Ce.length,f),We=u&&gE(u.y),Ke=u&&gE(u.x)||!!K.fixed,tt=Ke&&Ce.some(function(Rt){var Ht=Rt.fixed;return Ht}),pe=l.useRef(),Te=nye(_,r),ze=Te.isSticky,ke=Te.offsetHeader,et=Te.offsetSummary,mt=Te.offsetScroll,Ve=Te.stickyClassName,rt=Te.container,Ue=l.useMemo(function(){return v?.(T)},[v,T]),Je=(We||ze)&&l.isValidElement(Ue)&&Ue.type===Zb&&Ue.props.fixed,ht,gt,It;We&&(gt={overflowY:"scroll",maxHeight:u.y}),Ke&&(ht={overflowX:"auto"},We||(gt={overflowY:"hidden"}),It={width:u?.x===!0?"auto":u?.x,minWidth:"100%"});var Et=l.useCallback(function(Rt,Ht){$h(je.current)&&$e(function(on){if(on.get(Rt)!==Ht){var _n=new Map(on);return _n.set(Rt,Ht),_n}return on})},[]),xt=eye(null),pt=me(xt,2),Nt=pt[0],Pt=pt[1];function _t(Rt,Ht){Ht&&(typeof Ht=="function"?Ht(Rt):Ht.scrollLeft!==Rt&&(Ht.scrollLeft=Rt,Ht.scrollLeft!==Rt&&setTimeout(function(){Ht.scrollLeft=Rt},0)))}var Ot=Lo(function(Rt){var Ht=Rt.currentTarget,on=Rt.scrollLeft,_n=f==="rtl",Bn=typeof on=="number"?on:Ht.scrollLeft,xo=Ht||sye;if(!Pt()||Pt()===xo){var zr;Nt(xo),_t(Bn,De.current),_t(Bn,_e.current),_t(Bn,Ie.current),_t(Bn,(zr=pe.current)===null||zr===void 0?void 0:zr.setScrollLeft)}if(Ht){var jr=Ht.scrollWidth,Sn=Ht.clientWidth;if(jr===Sn){it(!1),k(!1);return}_n?(it(-Bn0)):(it(Bn>0),k(Bn{o(i,u),u.stopPropagation()},className:ne(c,{[`${c}-spaced`]:!s,[`${c}-expanded`]:s&&a,[`${c}-collapsed`]:s&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}}const hye=E7((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r});function hd(e,t){return"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function Dg(e,t){return t?`${t}-${e}`:`${e}`}function ex(e,t){return typeof e=="function"?e(t):e}function pye(e,t){const n=ex(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n}var mye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};const gye=mye;var vye=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:gye}))};const yye=l.forwardRef(vye);function bye(e){const t=l.useRef(e),n=FD();return[()=>t.current,r=>{t.current=r,n()}]}var w3=l.createContext(null),xye=function(t){for(var n=t.prefixCls,r=t.level,o=t.isStart,i=t.isEnd,a="".concat(n,"-indent-unit"),s=[],c=0;c=0&&n.splice(r,1),n}function Ll(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function S3(e){return e.split("-")}function $ye(e,t){var n=[],r=t[e];function o(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];i.forEach(function(a){var s=a.key,c=a.children;n.push(s),o(c)})}return o(r.children),n}function Oye(e){if(e.parent){var t=S3(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function Iye(e){var t=S3(e.pos);return Number(t[t.length-1])===0}function dT(e,t,n,r,o,i,a,s,c,u){var d,f=e.clientX,p=e.clientY,g=e.target.getBoundingClientRect(),v=g.top,y=g.height,S=(u==="rtl"?-1:1)*((o?.x||0)-f),b=(S-12)/r,x=s[n.props.eventKey];if(p-1.5?i({dragNode:j,dropNode:P,dropPosition:1})?_=1:M=!1:i({dragNode:j,dropNode:P,dropPosition:0})?_=0:i({dragNode:j,dropNode:P,dropPosition:1})?_=1:M=!1:i({dragNode:j,dropNode:P,dropPosition:1})?_=1:M=!1,{dropPosition:_,dropLevelOffset:T,dropTargetKey:x.key,dropTargetPos:x.pos,dragOverNodeKey:N,dropContainerKey:_===0?null:((d=x.parent)===null||d===void 0?void 0:d.key)||null,dropAllowed:M}}function fT(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function LS(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(Wt(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return dr(!1,"`checkedKeys` is not an array or an object"),null;return t}function yE(e,t){var n=new Set;function r(o){if(!n.has(o)){var i=t[o];if(i){n.add(o);var a=i.parent,s=i.node;s.disabled||a&&r(a.key)}}}return(e||[]).forEach(function(o){r(o)}),Ze(n)}function $7(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function Rye(e,t){var n=l.useState(!1),r=me(n,2),o=r[0],i=r[1];l.useLayoutEffect(function(){if(o)return e(),function(){t()}},[o]),l.useLayoutEffect(function(){return i(!0),function(){i(!1)}},[])}var Nye=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],O7=function(t,n){var r=t.className,o=t.style,i=t.motion,a=t.motionNodes,s=t.motionType,c=t.onMotionStart,u=t.onMotionEnd,d=t.active,f=t.treeNodeRequiredProps,p=Ft(t,Nye),g=l.useState(!0),v=me(g,2),y=v[0],S=v[1],b=l.useContext(w3),x=b.prefixCls,C=a&&s!=="hide";Wn(function(){a&&C!==y&&S(C)},[a]);var E=function(){a&&c()},$=l.useRef(!1),O=function(){a&&!$.current&&($.current=!0,u())};Rye(E,O);var I=function(_){C===_&&O()};return a?l.createElement(zi,Re({ref:n,visible:y},i,{motionAppear:s==="show",onVisibleChanged:I}),function(N,_){var T=N.className,D=N.style;return l.createElement("div",{ref:_,className:ne("".concat(x,"-treenode-motion"),T),style:D},a.map(function(j){var P=Re({},($7(j.data),j.data)),M=j.title,A=j.key,B=j.isStart,F=j.isEnd;delete P.children;var H=mm(A,f);return l.createElement(ih,Re({},P,H,{title:M,active:d,data:j.data,key:A,isStart:B,isEnd:F}))}))}):l.createElement(ih,Re({domRef:n,className:r,style:o},p,{active:d}))};O7.displayName="MotionTreeNode";var _ye=l.forwardRef(O7);function Tye(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function o(i,a){var s=new Map;i.forEach(function(u){s.set(u,!0)});var c=a.filter(function(u){return!s.has(u)});return c.length===1?c[0]:null}return n ").concat(t);return t}var R7=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var o=e.expandedKeys,i=e.selectedKeys,a=e.checkedKeys,s=e.loadedKeys,c=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,f=e.disabled,p=e.dragging,g=e.dragOverNodeKey,v=e.dropPosition,y=e.motion,S=e.height,b=e.itemHeight,x=e.virtual,C=e.focusable,E=e.activeItem,$=e.focused,O=e.tabIndex,I=e.onKeyDown,N=e.onFocus,_=e.onBlur,T=e.onActiveChange,D=e.onListChangeStart,j=e.onListChangeEnd,P=Ft(e,Pye),M=l.useRef(null),A=l.useRef(null);l.useImperativeHandle(t,function(){return{scrollTo:function(Fe){M.current.scrollTo(Fe)},getIndentWidth:function(){return A.current.offsetWidth}}});var B=l.useState(o),F=me(B,2),H=F[0],W=F[1],V=l.useState(r),K=me(V,2),G=K[0],re=K[1],Q=l.useState(r),fe=me(Q,2),se=fe[0],oe=fe[1],ie=l.useState([]),ge=me(ie,2),ve=ge[0],he=ge[1],be=l.useState(null),ye=me(be,2),Ce=ye[0],Ee=ye[1],je=l.useRef(r);je.current=r;function De(){var Ie=je.current;re(Ie),oe(Ie),he([]),Ee(null),j()}Wn(function(){W(o);var Ie=Tye(H,o);if(Ie.key!==null)if(Ie.add){var Fe=G.findIndex(function(U){var k=U.key;return k===Ie.key}),Ge=gT(hT(G,r,Ie.key),x,S,b),ft=G.slice();ft.splice(Fe+1,0,mT),oe(ft),he(Ge),Ee("show")}else{var it=r.findIndex(function(U){var k=U.key;return k===Ie.key}),qe=gT(hT(r,G,Ie.key),x,S,b),at=r.slice();at.splice(it+1,0,mT),oe(at),he(qe),Ee("hide")}else G!==r&&(re(r),oe(r))},[o,r]),l.useEffect(function(){p||De()},[p]);var _e=y?se:r,Me={expandedKeys:o,selectedKeys:i,loadedKeys:s,loadingKeys:c,checkedKeys:a,halfCheckedKeys:u,dragOverNodeKey:g,dropPosition:v,keyEntities:d};return l.createElement(l.Fragment,null,$&&E&&l.createElement("span",{style:pT,"aria-live":"assertive"},Mye(E)),l.createElement("div",null,l.createElement("input",{style:pT,disabled:C===!1||f,tabIndex:C!==!1?O:null,onKeyDown:I,onFocus:N,onBlur:_,value:"",onChange:jye,"aria-label":"for screen reader"})),l.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},l.createElement("div",{className:"".concat(n,"-indent")},l.createElement("div",{ref:A,className:"".concat(n,"-indent-unit")}))),l.createElement(A4,Re({},P,{data:_e,itemKey:vT,height:S,fullHeight:!1,virtual:x,itemHeight:b,prefixCls:"".concat(n,"-list"),ref:M,onVisibleChange:function(Fe,Ge){var ft=new Set(Fe),it=Ge.filter(function(qe){return!ft.has(qe)});it.some(function(qe){return vT(qe)===pd})&&De()}}),function(Ie){var Fe=Ie.pos,Ge=Re({},($7(Ie.data),Ie.data)),ft=Ie.title,it=Ie.key,qe=Ie.isStart,at=Ie.isEnd,U=Tg(it,Fe);delete Ge.key,delete Ge.children;var k=mm(U,Me);return l.createElement(_ye,Re({},Ge,k,{title:ft,active:!!E&&it===E.key,pos:Fe,data:Ie.data,isStart:qe,isEnd:at,motion:y,motionNodes:it===pd?ve:null,motionType:Ce,onMotionStart:D,onMotionEnd:De,treeNodeRequiredProps:Me,onMouseMove:function(){T(null)}}))}))});R7.displayName="NodeList";function kye(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:o.top=0,o.left=-n*r;break;case 1:o.bottom=0,o.left=-n*r;break;case 0:o.bottom=0,o.left=r;break}return l.createElement("div",{style:o})}var Dye=10,C3=function(e){ss(n,e);var t=ls(n);function n(){var r;vo(this,n);for(var o=arguments.length,i=new Array(o),a=0;a2&&arguments[2]!==void 0?arguments[2]:!1,f=r.state,p=f.dragChildrenKeys,g=f.dropPosition,v=f.dropTargetKey,y=f.dropTargetPos,S=f.dropAllowed;if(S){var b=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),v!==null){var x=le(le({},mm(v,r.getTreeNodeRequiredProps())),{},{active:((u=r.getActiveItem())===null||u===void 0?void 0:u.key)===v,data:r.state.keyEntities[v].node}),C=p.indexOf(v)!==-1;dr(!C,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var E=S3(y),$={event:s,node:Eo(x),dragNode:r.dragNode?Eo(r.dragNode.props):null,dragNodesKeys:[r.dragNode.props.eventKey].concat(p),dropToGap:g!==0,dropPosition:g+Number(E[E.length-1])};d||b?.($),r.dragNode=null}}},r.cleanDragState=function(){var s=r.state.draggingNodeKey;s!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null},r.triggerExpandActionExpand=function(s,c){var u=r.state,d=u.expandedKeys,f=u.flattenNodes,p=c.expanded,g=c.key,v=c.isLeaf;if(!(v||s.shiftKey||s.metaKey||s.ctrlKey)){var y=f.filter(function(b){return b.key===g})[0],S=Eo(le(le({},mm(g,r.getTreeNodeRequiredProps())),{},{data:y.data}));r.setExpandedKeys(p?al(d,g):Ll(d,g)),r.onNodeExpand(s,S)}},r.onNodeClick=function(s,c){var u=r.props,d=u.onClick,f=u.expandAction;f==="click"&&r.triggerExpandActionExpand(s,c),d?.(s,c)},r.onNodeDoubleClick=function(s,c){var u=r.props,d=u.onDoubleClick,f=u.expandAction;f==="doubleClick"&&r.triggerExpandActionExpand(s,c),d?.(s,c)},r.onNodeSelect=function(s,c){var u=r.state.selectedKeys,d=r.state,f=d.keyEntities,p=d.fieldNames,g=r.props,v=g.onSelect,y=g.multiple,S=c.selected,b=c[p.key],x=!S;x?y?u=Ll(u,b):u=[b]:u=al(u,b);var C=u.map(function(E){var $=f[E];return $?$.node:null}).filter(function(E){return E});r.setUncontrolledState({selectedKeys:u}),v?.(u,{event:"select",selected:x,node:c,selectedNodes:C,nativeEvent:s.nativeEvent})},r.onNodeCheck=function(s,c,u){var d=r.state,f=d.keyEntities,p=d.checkedKeys,g=d.halfCheckedKeys,v=r.props,y=v.checkStrictly,S=v.onCheck,b=c.key,x,C={event:"check",node:c,checked:u,nativeEvent:s.nativeEvent};if(y){var E=u?Ll(p,b):al(p,b),$=al(g,b);x={checked:E,halfChecked:$},C.checkedNodes=E.map(function(D){return f[D]}).filter(function(D){return D}).map(function(D){return D.node}),r.setUncontrolledState({checkedKeys:E})}else{var O=Bf([].concat(Ze(p),[b]),!0,f),I=O.checkedKeys,N=O.halfCheckedKeys;if(!u){var _=new Set(I);_.delete(b);var T=Bf(Array.from(_),{checked:!1,halfCheckedKeys:N},f);I=T.checkedKeys,N=T.halfCheckedKeys}x=I,C.checkedNodes=[],C.checkedNodesPositions=[],C.halfCheckedKeys=N,I.forEach(function(D){var j=f[D];if(j){var P=j.node,M=j.pos;C.checkedNodes.push(P),C.checkedNodesPositions.push({node:P,pos:M})}}),r.setUncontrolledState({checkedKeys:I},!1,{halfCheckedKeys:N})}S?.(x,C)},r.onNodeLoad=function(s){var c=s.key,u=new Promise(function(d,f){r.setState(function(p){var g=p.loadedKeys,v=g===void 0?[]:g,y=p.loadingKeys,S=y===void 0?[]:y,b=r.props,x=b.loadData,C=b.onLoad;if(!x||v.indexOf(c)!==-1||S.indexOf(c)!==-1)return null;var E=x(s);return E.then(function(){var $=r.state.loadedKeys,O=Ll($,c);C?.(O,{event:"load",node:s}),r.setUncontrolledState({loadedKeys:O}),r.setState(function(I){return{loadingKeys:al(I.loadingKeys,c)}}),d()}).catch(function($){if(r.setState(function(I){return{loadingKeys:al(I.loadingKeys,c)}}),r.loadingRetryTimes[c]=(r.loadingRetryTimes[c]||0)+1,r.loadingRetryTimes[c]>=Dye){var O=r.state.loadedKeys;dr(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:Ll(O,c)}),d()}f($)}),{loadingKeys:Ll(S,c)}})});return u.catch(function(){}),u},r.onNodeMouseEnter=function(s,c){var u=r.props.onMouseEnter;u?.({event:s,node:c})},r.onNodeMouseLeave=function(s,c){var u=r.props.onMouseLeave;u?.({event:s,node:c})},r.onNodeContextMenu=function(s,c){var u=r.props.onRightClick;u&&(s.preventDefault(),u({event:s,node:c}))},r.onFocus=function(){var s=r.props.onFocus;r.setState({focused:!0});for(var c=arguments.length,u=new Array(c),d=0;d1&&arguments[1]!==void 0?arguments[1]:!1,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var d=!1,f=!0,p={};Object.keys(s).forEach(function(g){if(g in r.props){f=!1;return}d=!0,p[g]=s[g]}),d&&(!c||f)&&r.setState(le(le({},p),u))}},r.scrollTo=function(s){r.listRef.current.scrollTo(s)},r}return yo(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var o=this.props.activeKey;o!==void 0&&o!==this.state.activeKey&&(this.setState({activeKey:o}),o!==null&&this.scrollTo({key:o}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var o,i=this.state,a=i.focused,s=i.flattenNodes,c=i.keyEntities,u=i.draggingNodeKey,d=i.activeKey,f=i.dropLevelOffset,p=i.dropContainerKey,g=i.dropTargetKey,v=i.dropPosition,y=i.dragOverNodeKey,S=i.indent,b=this.props,x=b.prefixCls,C=b.className,E=b.style,$=b.showLine,O=b.focusable,I=b.tabIndex,N=I===void 0?0:I,_=b.selectable,T=b.showIcon,D=b.icon,j=b.switcherIcon,P=b.draggable,M=b.checkable,A=b.checkStrictly,B=b.disabled,F=b.motion,H=b.loadData,W=b.filterTreeNode,V=b.height,K=b.itemHeight,G=b.virtual,re=b.titleRender,Q=b.dropIndicatorRender,fe=b.onContextMenu,se=b.onScroll,oe=b.direction,ie=b.rootClassName,ge=b.rootStyle,ve=sa(this.props,{aria:!0,data:!0}),he;return P&&(Wt(P)==="object"?he=P:typeof P=="function"?he={nodeDraggable:P}:he={}),l.createElement(w3.Provider,{value:{prefixCls:x,selectable:_,showIcon:T,icon:D,switcherIcon:j,draggable:he,draggingNodeKey:u,checkable:M,checkStrictly:A,disabled:B,keyEntities:c,dropLevelOffset:f,dropContainerKey:p,dropTargetKey:g,dropPosition:v,dragOverNodeKey:y,indent:S,direction:oe,dropIndicatorRender:Q,loadData:H,filterTreeNode:W,titleRender:re,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},l.createElement("div",{role:"tree",className:ne(x,C,ie,(o={},ae(o,"".concat(x,"-show-line"),$),ae(o,"".concat(x,"-focused"),a),ae(o,"".concat(x,"-active-focused"),d!==null),o)),style:ge},l.createElement(R7,Re({ref:this.listRef,prefixCls:x,style:E,data:s,disabled:B,selectable:_,checkable:!!M,motion:F,dragging:u!==null,height:V,itemHeight:K,virtual:G,focusable:O,focused:a,tabIndex:N,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:fe,onScroll:se},this.getTreeNodeRequiredProps(),ve))))}}],[{key:"getDerivedStateFromProps",value:function(o,i){var a=i.prevProps,s={prevProps:o};function c(O){return!a&&O in o||a&&a[O]!==o[O]}var u,d=i.fieldNames;if(c("fieldNames")&&(d=g1(o.fieldNames),s.fieldNames=d),c("treeData")?u=o.treeData:c("children")&&(dr(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),u=oL(o.children)),u){s.treeData=u;var f=i3(u,{fieldNames:d});s.keyEntities=le(ae({},pd,I7),f.keyEntities)}var p=s.keyEntities||i.keyEntities;if(c("expandedKeys")||a&&c("autoExpandParent"))s.expandedKeys=o.autoExpandParent||!a&&o.defaultExpandParent?yE(o.expandedKeys,p):o.expandedKeys;else if(!a&&o.defaultExpandAll){var g=le({},p);delete g[pd],s.expandedKeys=Object.keys(g).map(function(O){return g[O].key})}else!a&&o.defaultExpandedKeys&&(s.expandedKeys=o.autoExpandParent||o.defaultExpandParent?yE(o.defaultExpandedKeys,p):o.defaultExpandedKeys);if(s.expandedKeys||delete s.expandedKeys,u||s.expandedKeys){var v=_S(u||i.treeData,s.expandedKeys||i.expandedKeys,d);s.flattenNodes=v}if(o.selectable&&(c("selectedKeys")?s.selectedKeys=fT(o.selectedKeys,o):!a&&o.defaultSelectedKeys&&(s.selectedKeys=fT(o.defaultSelectedKeys,o))),o.checkable){var y;if(c("checkedKeys")?y=LS(o.checkedKeys)||{}:!a&&o.defaultCheckedKeys?y=LS(o.defaultCheckedKeys)||{}:u&&(y=LS(o.checkedKeys)||{checkedKeys:i.checkedKeys,halfCheckedKeys:i.halfCheckedKeys}),y){var S=y,b=S.checkedKeys,x=b===void 0?[]:b,C=S.halfCheckedKeys,E=C===void 0?[]:C;if(!o.checkStrictly){var $=Bf(x,!0,p);x=$.checkedKeys,E=$.halfCheckedKeys}s.checkedKeys=x,s.halfCheckedKeys=E}}return c("loadedKeys")&&(s.loadedKeys=o.loadedKeys),s}}]),n}(l.Component);C3.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:kye,allowDrop:function(){return!0},expandAction:!1};C3.TreeNode=ih;var Aye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};const Lye=Aye;var Fye=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:Lye}))};const N7=l.forwardRef(Fye);var zye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};const Bye=zye;var Hye=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:Bye}))};const Uye=l.forwardRef(Hye);var Wye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"};const Vye=Wye;var Kye=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:Vye}))};const Gye=l.forwardRef(Kye);var Yye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"};const qye=Yye;var Xye=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:qye}))};const Qye=l.forwardRef(Xye),Zye=new vn("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Jye=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),e1e=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${t.lineWidthBold}px solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),t1e=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,treeTitleHeight:i}=t,a=t.paddingXS;return{[n]:Object.assign(Object.assign({},En(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},vl(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:Zye,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${r}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${o}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:Object.assign({},vl(t)),[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${n}-draggable-icon`]:{flexShrink:0,width:i,lineHeight:`${i}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${r}:hover &`]:{opacity:.45}},[`&${r}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:i}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:Object.assign(Object.assign({},Jye(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,margin:0,lineHeight:`${i}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:i/2,bottom:-o,marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:i/2*.8,height:i/2,borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:a},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:i,margin:0,padding:`0 ${t.paddingXS/2}px`,color:"inherit",lineHeight:`${i}px`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:t.controlItemBgHover},[`&${n}-node-selected`]:{backgroundColor:t.controlItemBgActive},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,lineHeight:`${i}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:Object.assign({lineHeight:`${i}px`,userSelect:"none"},e1e(e,t)),[`${r}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:i/2,bottom:-o,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${i/2}px !important`}}}}})}},n1e=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:r}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:e.colorTextLightSolid,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:e.colorPrimary},[`${t}-switcher`]:{color:e.colorTextLightSolid},[`${t}-node-content-wrapper`]:{color:e.colorTextLightSolid,background:"transparent"}}}}}},r1e=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,o=t.paddingXS/2,i=t.controlHeightSM,a=sn(t,{treeCls:n,treeNodeCls:r,treeNodePadding:o,treeTitleHeight:i});return[t1e(e,a),n1e(a)]},o1e=Pn("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:iL(`${n}-checkbox`,e)},r1e(n,e),Nb(e)]}),yT=4;function i1e(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:o,direction:i="ltr"}=e,a=i==="ltr"?"left":"right",s=i==="ltr"?"right":"left",c={[a]:-n*o+yT,[s]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[a]=o+yT;break}return Ne.createElement("div",{style:c,className:`${r}-drop-indicator`})}var a1e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"};const s1e=a1e;var l1e=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:s1e}))};const c1e=l.forwardRef(l1e);var u1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};const d1e=u1e;var f1e=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:d1e}))};const h1e=l.forwardRef(f1e);var p1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};const m1e=p1e;var g1e=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:m1e}))};const v1e=l.forwardRef(g1e),y1e=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:o}=e,{isLeaf:i,expanded:a,loading:s}=r;if(s)return l.createElement(mu,{className:`${t}-switcher-loading-icon`});let c;if(o&&typeof o=="object"&&(c=o.showLeafIcon),i){if(!o)return null;if(typeof c!="boolean"&&c){const f=typeof c=="function"?c(r):c,p=`${t}-switcher-line-custom-icon`;return Di(f)?go(f,{className:ne(f.props.className||"",p)}):f}return c?l.createElement(N7,{className:`${t}-switcher-line-icon`}):l.createElement("span",{className:`${t}-switcher-leaf-line`})}const u=`${t}-switcher-icon`,d=typeof n=="function"?n(r):n;return Di(d)?go(d,{className:ne(d.props.className||"",u)}):d!==void 0?d:o?a?l.createElement(h1e,{className:`${t}-switcher-line-icon`}):l.createElement(v1e,{className:`${t}-switcher-line-icon`}):l.createElement(c1e,{className:u})},b1e=y1e,x1e=Ne.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,virtual:o,tree:i}=Ne.useContext(St),{prefixCls:a,className:s,showIcon:c=!1,showLine:u,switcherIcon:d,blockNode:f=!1,children:p,checkable:g=!1,selectable:v=!0,draggable:y,motion:S,style:b}=e,x=n("tree",a),C=n(),E=S??Object.assign(Object.assign({},Wm(C)),{motionAppear:!1}),$=Object.assign(Object.assign({},e),{checkable:g,selectable:v,showIcon:c,motion:E,blockNode:f,showLine:!!u,dropIndicatorRender:i1e}),[O,I]=o1e(x),N=Ne.useMemo(()=>{if(!y)return!1;let T={};switch(typeof y){case"function":T.nodeDraggable=y;break;case"object":T=Object.assign({},y);break}return T.icon!==!1&&(T.icon=T.icon||Ne.createElement(Qye,null)),T},[y]),_=T=>Ne.createElement(b1e,{prefixCls:x,switcherIcon:d,treeNodeProps:T,showLine:u});return O(Ne.createElement(C3,Object.assign({itemHeight:20,ref:t,virtual:o},$,{style:Object.assign(Object.assign({},i?.style),b),prefixCls:x,className:ne({[`${x}-icon-hide`]:!c,[`${x}-block-node`]:f,[`${x}-unselectable`]:!v,[`${x}-rtl`]:r==="rtl"},i?.className,s,I),direction:r,checkable:g&&Ne.createElement("span",{className:`${x}-checkbox-inner`}),selectable:v,switcherIcon:_,draggable:N}),p))}),_7=x1e;var Hl;(function(e){e[e.None=0]="None",e[e.Start=1]="Start",e[e.End=2]="End"})(Hl||(Hl={}));function E3(e,t){function n(r){const{key:o,children:i}=r;t(o,r)!==!1&&E3(i||[],t)}e.forEach(n)}function w1e(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:o}=e;const i=[];let a=Hl.None;if(r&&r===o)return[r];if(!r||!o)return[];function s(c){return c===r||c===o}return E3(t,c=>{if(a===Hl.End)return!1;if(s(c)){if(i.push(c),a===Hl.None)a=Hl.Start;else if(a===Hl.Start)return a=Hl.End,!1}else a===Hl.Start&&i.push(c);return n.includes(c)}),i}function FS(e,t){const n=Ze(t),r=[];return E3(e,(o,i)=>{const a=n.indexOf(o);return a!==-1&&(r.push(i),n.splice(a,1)),!!n.length}),r}var bT=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:o}=e,i=bT(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const a=l.useRef(),s=l.useRef(),c=()=>{const{keyEntities:N}=i3(xT(i));let _;return n?_=Object.keys(N):r?_=yE(i.expandedKeys||o||[],N):_=i.expandedKeys||o,_},[u,d]=l.useState(i.selectedKeys||i.defaultSelectedKeys||[]),[f,p]=l.useState(()=>c());l.useEffect(()=>{"selectedKeys"in i&&d(i.selectedKeys)},[i.selectedKeys]),l.useEffect(()=>{"expandedKeys"in i&&p(i.expandedKeys)},[i.expandedKeys]);const g=(N,_)=>{var T;return"expandedKeys"in i||p(N),(T=i.onExpand)===null||T===void 0?void 0:T.call(i,N,_)},v=(N,_)=>{var T;const{multiple:D}=i,{node:j,nativeEvent:P}=_,{key:M=""}=j,A=xT(i),B=Object.assign(Object.assign({},_),{selected:!0}),F=P?.ctrlKey||P?.metaKey,H=P?.shiftKey;let W;D&&F?(W=N,a.current=M,s.current=W,B.selectedNodes=FS(A,W)):D&&H?(W=Array.from(new Set([].concat(Ze(s.current||[]),Ze(w1e({treeData:A,expandedKeys:f,startKey:M,endKey:a.current}))))),B.selectedNodes=FS(A,W)):(W=[M],a.current=M,s.current=W,B.selectedNodes=FS(A,W)),(T=i.onSelect)===null||T===void 0||T.call(i,W,B),"selectedKeys"in i||d(W)},{getPrefixCls:y,direction:S}=l.useContext(St),{prefixCls:b,className:x,showIcon:C=!0,expandAction:E="click"}=i,$=bT(i,["prefixCls","className","showIcon","expandAction"]),O=y("tree",b),I=ne(`${O}-directory`,{[`${O}-directory-rtl`]:S==="rtl"},x);return l.createElement(_7,Object.assign({icon:S1e,ref:t,blockNode:!0},$,{showIcon:C,expandAction:E,prefixCls:O,className:I,expandedKeys:f,selectedKeys:u,onSelect:v,onExpand:g}))},E1e=l.forwardRef(C1e),$1e=E1e,$3=_7;$3.DirectoryTree=$1e;$3.TreeNode=ih;const O1e=$3;function wT(e){let{value:t,onChange:n,filterSearch:r,tablePrefixCls:o,locale:i}=e;return r?l.createElement("div",{className:`${o}-filter-dropdown-search`},l.createElement(Ut,{prefix:l.createElement(_r,null),placeholder:i.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,className:`${o}-filter-dropdown-search-input`})):null}const I1e=e=>{const{keyCode:t}=e;t===He.ENTER&&e.stopPropagation()},R1e=l.forwardRef((e,t)=>l.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:I1e,ref:t},e.children)),N1e=R1e;function Hf(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:o}=n;t.push(r),o&&(t=[].concat(Ze(t),Ze(Hf(o))))}),t}function _1e(e){return e.some(t=>{let{children:n}=t;return n})}function T7(e,t){return typeof t=="string"||typeof t=="number"?t?.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function P7(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:i,filterSearch:a}=e;return t.map((s,c)=>{const u=String(s.value);if(s.children)return{key:u||c,label:s.text,popupClassName:`${n}-dropdown-submenu`,children:P7({filters:s.children,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:i,filterSearch:a})};const d=o?fd:xa,f={key:s.value!==void 0?u:c,label:l.createElement(l.Fragment,null,l.createElement(d,{checked:r.includes(u)}),l.createElement("span",null,s.text))};return i.trim()?typeof a=="function"?a(i,s)?f:null:T7(i,s.text)?f:null:f})}function T1e(e){var t,n;const{tablePrefixCls:r,prefixCls:o,column:i,dropdownPrefixCls:a,columnKey:s,filterMultiple:c,filterMode:u="menu",filterSearch:d=!1,filterState:f,triggerFilter:p,locale:g,children:v,getPopupContainer:y}=e,{filterDropdownOpen:S,onFilterDropdownOpenChange:b,filterResetToDefaultFilteredValue:x,defaultFilteredValue:C,filterDropdownVisible:E,onFilterDropdownVisibleChange:$}=i,[O,I]=l.useState(!1),N=!!(f&&(!((t=f.filteredKeys)===null||t===void 0)&&t.length||f.forceFiltered)),_=Ee=>{I(Ee),b?.(Ee),$?.(Ee)},T=(n=S??E)!==null&&n!==void 0?n:O,D=f?.filteredKeys,[j,P]=bye(D||[]),M=Ee=>{let{selectedKeys:je}=Ee;P(je)},A=(Ee,je)=>{let{node:De,checked:_e}=je;M(c?{selectedKeys:Ee}:{selectedKeys:_e&&De.key?[De.key]:[]})};l.useEffect(()=>{O&&M({selectedKeys:D||[]})},[D]);const[B,F]=l.useState([]),H=Ee=>{F(Ee)},[W,V]=l.useState(""),K=Ee=>{const{value:je}=Ee.target;V(je)};l.useEffect(()=>{O||V("")},[O]);const G=Ee=>{const je=Ee&&Ee.length?Ee:null;if(je===null&&(!f||!f.filteredKeys)||os(je,f?.filteredKeys,!0))return null;p({column:i,key:s,filteredKeys:je})},re=()=>{_(!1),G(j())},Q=function(){let{confirm:Ee,closeDropdown:je}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Ee&&G([]),je&&_(!1),V(""),P(x?(C||[]).map(De=>String(De)):[])},fe=function(){let{closeDropdown:Ee}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Ee&&_(!1),G(j())},se=Ee=>{Ee&&D!==void 0&&P(D||[]),_(Ee),!Ee&&!i.filterDropdown&&re()},oe=ne({[`${a}-menu-without-submenu`]:!_1e(i.filters||[])}),ie=Ee=>{if(Ee.target.checked){const je=Hf(i?.filters).map(De=>String(De));P(je)}else P([])},ge=Ee=>{let{filters:je}=Ee;return(je||[]).map((De,_e)=>{const Me=String(De.value),Ie={title:De.text,key:De.value!==void 0?Me:_e};return De.children&&(Ie.children=ge({filters:De.children})),Ie})},ve=Ee=>{var je;return Object.assign(Object.assign({},Ee),{text:Ee.title,value:Ee.key,children:((je=Ee.children)===null||je===void 0?void 0:je.map(De=>ve(De)))||[]})};let he;if(typeof i.filterDropdown=="function")he=i.filterDropdown({prefixCls:`${a}-custom`,setSelectedKeys:Ee=>M({selectedKeys:Ee}),selectedKeys:j(),confirm:fe,clearFilters:Q,filters:i.filters,visible:T,close:()=>{_(!1)}});else if(i.filterDropdown)he=i.filterDropdown;else{const Ee=j()||[],je=()=>(i.filters||[]).length===0?l.createElement(Lu,{image:Lu.PRESENTED_IMAGE_SIMPLE,description:g.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):u==="tree"?l.createElement(l.Fragment,null,l.createElement(wT,{filterSearch:d,value:W,onChange:K,tablePrefixCls:r,locale:g}),l.createElement("div",{className:`${r}-filter-dropdown-tree`},c?l.createElement(fd,{checked:Ee.length===Hf(i.filters).length,indeterminate:Ee.length>0&&Ee.lengthtypeof d=="function"?d(W,ve(_e)):T7(W,_e.title):void 0}))):l.createElement(l.Fragment,null,l.createElement(wT,{filterSearch:d,value:W,onChange:K,tablePrefixCls:r,locale:g}),l.createElement(f1,{selectable:!0,multiple:c,prefixCls:`${a}-menu`,className:oe,onSelect:M,onDeselect:M,selectedKeys:Ee,getPopupContainer:y,openKeys:B,onOpenChange:H,items:P7({filters:i.filters||[],filterSearch:d,prefixCls:o,filteredKeys:j(),filterMultiple:c,searchValue:W})})),De=()=>x?os((C||[]).map(_e=>String(_e)),Ee,!0):Ee.length===0;he=l.createElement(l.Fragment,null,je(),l.createElement("div",{className:`${o}-dropdown-btns`},l.createElement(ut,{type:"link",size:"small",disabled:De(),onClick:()=>Q()},g.filterReset),l.createElement(ut,{type:"primary",size:"small",onClick:re},g.filterConfirm)))}i.filterDropdown&&(he=l.createElement(hA,{selectable:void 0},he));const be=()=>l.createElement(N1e,{className:`${o}-dropdown`},he);let ye;typeof i.filterIcon=="function"?ye=i.filterIcon(N):i.filterIcon?ye=i.filterIcon:ye=l.createElement(yye,null);const{direction:Ce}=l.useContext(St);return l.createElement("div",{className:`${o}-column`},l.createElement("span",{className:`${r}-column-title`},v),l.createElement(Mo,{dropdownRender:be,trigger:["click"],open:T,onOpenChange:se,getPopupContainer:y,placement:Ce==="rtl"?"bottomLeft":"bottomRight"},l.createElement("span",{role:"button",tabIndex:-1,className:ne(`${o}-trigger`,{active:N}),onClick:Ee=>{Ee.stopPropagation()}},ye)))}function xE(e,t,n){let r=[];return(e||[]).forEach((o,i)=>{var a;const s=Dg(i,n);if(o.filters||"filterDropdown"in o||"onFilter"in o)if("filteredValue"in o){let c=o.filteredValue;"filterDropdown"in o||(c=(a=c?.map(String))!==null&&a!==void 0?a:c),r.push({column:o,key:hd(o,s),filteredKeys:c,forceFiltered:o.filtered})}else r.push({column:o,key:hd(o,s),filteredKeys:t&&o.defaultFilteredValue?o.defaultFilteredValue:void 0,forceFiltered:o.filtered});"children"in o&&(r=[].concat(Ze(r),Ze(xE(o.children,t,s))))}),r}function j7(e,t,n,r,o,i,a,s){return n.map((c,u)=>{const d=Dg(u,s),{filterMultiple:f=!0,filterMode:p,filterSearch:g}=c;let v=c;if(v.filters||v.filterDropdown){const y=hd(v,d),S=r.find(b=>{let{key:x}=b;return y===x});v=Object.assign(Object.assign({},v),{title:b=>l.createElement(T1e,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:v,columnKey:y,filterState:S,filterMultiple:f,filterMode:p,filterSearch:g,triggerFilter:i,locale:o,getPopupContainer:a},ex(c.title,b))})}return"children"in v&&(v=Object.assign(Object.assign({},v),{children:j7(e,t,v.children,r,o,i,a,d)})),v})}function ST(e){const t={};return e.forEach(n=>{let{key:r,filteredKeys:o,column:i}=n;const{filters:a,filterDropdown:s}=i;if(s)t[r]=o||null;else if(Array.isArray(o)){const c=Hf(a);t[r]=c.filter(u=>o.includes(String(u)))}else t[r]=null}),t}function CT(e,t){return t.reduce((n,r)=>{const{column:{onFilter:o,filters:i},filteredKeys:a}=r;return o&&a&&a.length?n.filter(s=>a.some(c=>{const u=Hf(i),d=u.findIndex(p=>String(p)===String(c)),f=d!==-1?u[d]:c;return o(f,s)})):n},e)}const M7=e=>e.flatMap(t=>"children"in t?[t].concat(Ze(M7(t.children||[]))):[t]);function P1e(e){let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:o,getPopupContainer:i,locale:a}=e;const s=l.useMemo(()=>M7(r||[]),[r]),[c,u]=l.useState(()=>xE(s,!0)),d=l.useMemo(()=>{const v=xE(s,!1);if(v.length===0)return v;let y=!0;if(v.forEach(S=>{let{filteredKeys:b}=S;b!==void 0&&(y=!1)}),y){const S=(s||[]).map((b,x)=>hd(b,Dg(x)));return c.filter(b=>{let{key:x}=b;return S.includes(x)}).map(b=>{const x=s[S.findIndex(C=>C===b.key)];return Object.assign(Object.assign({},b),{column:Object.assign(Object.assign({},b.column),x),forceFiltered:x.filtered})})}return v},[s,c]),f=l.useMemo(()=>ST(d),[d]),p=v=>{const y=d.filter(S=>{let{key:b}=S;return b!==v.key});y.push(v),u(y),o(ST(y),y)};return[v=>j7(t,n,v,d,a,p,i),d,f]}function j1e(e,t,n){const r=l.useRef({});function o(i){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let s=function(c){c.forEach((u,d)=>{const f=n(u,d);a.set(f,u),u&&typeof u=="object"&&t in u&&s(u[t]||[])})};const a=new Map;s(e),r.current={data:e,childrenColumnName:t,kvMap:a,getRowKey:n}}return r.current.kvMap.get(i)}return[o]}var M1e=globalThis&&globalThis.__rest||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 i=e[o];typeof i!="function"&&(n[o]=i)}),n}function D1e(e,t,n){const r=n&&typeof n=="object"?n:{},{total:o=0}=r,i=M1e(r,["total"]),[a,s]=l.useState(()=>({current:"defaultCurrent"in i?i.defaultCurrent:1,pageSize:"defaultPageSize"in i?i.defaultPageSize:k7})),c=KL(a,i,{total:o>0?o:e}),u=Math.ceil((o||e)/c.pageSize);c.current>u&&(c.current=u||1);const d=(p,g)=>{s({current:p??1,pageSize:g||c.pageSize})},f=(p,g)=>{var v;n&&((v=n.onChange)===null||v===void 0||v.call(n,p,g)),d(p,g),t(p,g||c?.pageSize)};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:f}),d]}const Ac={},wE="SELECT_ALL",SE="SELECT_INVERT",CE="SELECT_NONE",ET=[],D7=(e,t)=>{let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[].concat(Ze(n),Ze(D7(e,r[e]))))}),n},A1e=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:o,getCheckboxProps:i,onChange:a,onSelect:s,onSelectAll:c,onSelectInvert:u,onSelectNone:d,onSelectMultiple:f,columnWidth:p,type:g,selections:v,fixed:y,renderCell:S,hideSelectAll:b,checkStrictly:x=!0}=t||{},{prefixCls:C,data:E,pageData:$,getRecordByKey:O,getRowKey:I,expandType:N,childrenColumnName:_,locale:T,getPopupContainer:D}=e,[j,P]=Vn(r||o||ET,{value:r}),M=l.useRef(new Map),A=l.useCallback(ve=>{if(n){const he=new Map;ve.forEach(be=>{let ye=O(be);!ye&&M.current.has(be)&&(ye=M.current.get(be)),he.set(be,ye)}),M.current=he}},[O,n]);l.useEffect(()=>{A(j)},[j]);const{keyEntities:B}=l.useMemo(()=>{if(x)return{keyEntities:null};let ve=E;if(n){const he=new Set(E.map((ye,Ce)=>I(ye,Ce))),be=Array.from(M.current).reduce((ye,Ce)=>{let[Ee,je]=Ce;return he.has(Ee)?ye:ye.concat(je)},[]);ve=[].concat(Ze(ve),Ze(be))}return i3(ve,{externalGetKey:I,childrenPropName:_})},[E,I,x,_,n]),F=l.useMemo(()=>D7(_,$),[_,$]),H=l.useMemo(()=>{const ve=new Map;return F.forEach((he,be)=>{const ye=I(he,be),Ce=(i?i(he):null)||{};ve.set(ye,Ce)}),ve},[F,I,i]),W=l.useCallback(ve=>{var he;return!!(!((he=H.get(I(ve)))===null||he===void 0)&&he.disabled)},[H,I]),[V,K]=l.useMemo(()=>{if(x)return[j||[],[]];const{checkedKeys:ve,halfCheckedKeys:he}=Bf(j,!0,B,W);return[ve||[],he]},[j,x,B,W]),G=l.useMemo(()=>{const ve=g==="radio"?V.slice(0,1):V;return new Set(ve)},[V,g]),re=l.useMemo(()=>g==="radio"?new Set:new Set(K),[K,g]),[Q,fe]=l.useState(null);l.useEffect(()=>{t||P(ET)},[!!t]);const se=l.useCallback((ve,he)=>{let be,ye;A(ve),n?(be=ve,ye=ve.map(Ce=>M.current.get(Ce))):(be=[],ye=[],ve.forEach(Ce=>{const Ee=O(Ce);Ee!==void 0&&(be.push(Ce),ye.push(Ee))})),P(be),a?.(be,ye,{type:he})},[P,O,a,n]),oe=l.useCallback((ve,he,be,ye)=>{if(s){const Ce=be.map(Ee=>O(Ee));s(O(ve),he,Ce,ye)}se(be,"single")},[s,O,se]),ie=l.useMemo(()=>!v||b?null:(v===!0?[wE,SE,CE]:v).map(he=>he===wE?{key:"all",text:T.selectionAll,onSelect(){se(E.map((be,ye)=>I(be,ye)).filter(be=>{const ye=H.get(be);return!ye?.disabled||G.has(be)}),"all")}}:he===SE?{key:"invert",text:T.selectInvert,onSelect(){const be=new Set(G);$.forEach((Ce,Ee)=>{const je=I(Ce,Ee),De=H.get(je);De?.disabled||(be.has(je)?be.delete(je):be.add(je))});const ye=Array.from(be);u&&u(ye),se(ye,"invert")}}:he===CE?{key:"none",text:T.selectNone,onSelect(){d?.(),se(Array.from(G).filter(be=>{const ye=H.get(be);return ye?.disabled}),"none")}}:he).map(he=>Object.assign(Object.assign({},he),{onSelect:function(){for(var be,ye,Ce=arguments.length,Ee=new Array(Ce),je=0;je{var he;if(!t)return ve.filter(U=>U!==Ac);let be=Ze(ve);const ye=new Set(G),Ce=F.map(I).filter(U=>!H.get(U).disabled),Ee=Ce.every(U=>ye.has(U)),je=Ce.some(U=>ye.has(U)),De=()=>{const U=[];Ee?Ce.forEach(L=>{ye.delete(L),U.push(L)}):Ce.forEach(L=>{ye.has(L)||(ye.add(L),U.push(L))});const k=Array.from(ye);c?.(!Ee,k.map(L=>O(L)),U.map(L=>O(L))),se(k,"all"),fe(null)};let _e;if(g!=="radio"){let U;if(ie){const $e={getPopupContainer:D,items:ie.map((we,de)=>{const{key:Se,text:Ae,onSelect:We}=we;return{key:Se??de,onClick:()=>{We?.(Ce)},label:Ae}})};U=l.createElement("div",{className:`${C}-selection-extra`},l.createElement(Mo,{menu:$e,getPopupContainer:D},l.createElement("span",null,l.createElement($g,null))))}const k=F.map(($e,we)=>{const de=I($e,we),Se=H.get(de)||{};return Object.assign({checked:ye.has(de)},Se)}).filter($e=>{let{disabled:we}=$e;return we}),L=!!k.length&&k.length===F.length,X=L&&k.every($e=>{let{checked:we}=$e;return we}),ee=L&&k.some($e=>{let{checked:we}=$e;return we});_e=!b&&l.createElement("div",{className:`${C}-selection`},l.createElement(fd,{checked:L?X:!!F.length&&Ee,indeterminate:L?!X&&ee:!Ee&&je,onChange:De,disabled:F.length===0||L,"aria-label":U?"Custom selection":"Select all",skipGroup:!0}),U)}let Me;g==="radio"?Me=(U,k,L)=>{const X=I(k,L),ee=ye.has(X);return{node:l.createElement(xa,Object.assign({},H.get(X),{checked:ee,onClick:$e=>$e.stopPropagation(),onChange:$e=>{ye.has(X)||oe(X,!0,[X],$e.nativeEvent)}})),checked:ee}}:Me=(U,k,L)=>{var X;const ee=I(k,L),$e=ye.has(ee),we=re.has(ee),de=H.get(ee);let Se;return N==="nest"?Se=we:Se=(X=de?.indeterminate)!==null&&X!==void 0?X:we,{node:l.createElement(fd,Object.assign({},de,{indeterminate:Se,checked:$e,skipGroup:!0,onClick:Ae=>Ae.stopPropagation(),onChange:Ae=>{let{nativeEvent:We}=Ae;const{shiftKey:Ke}=We;let tt=-1,pe=-1;if(Ke&&x){const Te=new Set([Q,ee]);Ce.some((ze,ke)=>{if(Te.has(ze))if(tt===-1)tt=ke;else return pe=ke,!0;return!1})}if(pe!==-1&&tt!==pe&&x){const Te=Ce.slice(tt,pe+1),ze=[];$e?Te.forEach(et=>{ye.has(et)&&(ze.push(et),ye.delete(et))}):Te.forEach(et=>{ye.has(et)||(ze.push(et),ye.add(et))});const ke=Array.from(ye);f?.(!$e,ke.map(et=>O(et)),ze.map(et=>O(et))),se(ke,"multiple")}else{const Te=V;if(x){const ze=$e?al(Te,ee):Ll(Te,ee);oe(ee,!$e,ze,We)}else{const ze=Bf([].concat(Ze(Te),[ee]),!0,B,W),{checkedKeys:ke,halfCheckedKeys:et}=ze;let mt=ke;if($e){const Ve=new Set(ke);Ve.delete(ee),mt=Bf(Array.from(Ve),{checked:!1,halfCheckedKeys:et},B,W).checkedKeys}oe(ee,!$e,mt,We)}}fe($e?null:ee)}})),checked:$e}};const Ie=(U,k,L)=>{const{node:X,checked:ee}=Me(U,k,L);return S?S(ee,k,L,X):X};if(!be.includes(Ac))if(be.findIndex(U=>{var k;return((k=U[bm])===null||k===void 0?void 0:k.columnType)==="EXPAND_COLUMN"})===0){const[U,...k]=be;be=[U,Ac].concat(Ze(k))}else be=[Ac].concat(Ze(be));const Fe=be.indexOf(Ac);be=be.filter((U,k)=>U!==Ac||k===Fe);const Ge=be[Fe-1],ft=be[Fe+1];let it=y;it===void 0&&(ft?.fixed!==void 0?it=ft.fixed:Ge?.fixed!==void 0&&(it=Ge.fixed)),it&&Ge&&((he=Ge[bm])===null||he===void 0?void 0:he.columnType)==="EXPAND_COLUMN"&&Ge.fixed===void 0&&(Ge.fixed=it);const qe=ne(`${C}-selection-col`,{[`${C}-selection-col-with-dropdown`]:v&&g==="checkbox"}),at={fixed:it,width:p,className:`${C}-selection-column`,title:t.columnTitle||_e,render:Ie,onCell:t.onCell,[bm]:{className:qe}};return be.map(U=>U===Ac?at:U)},[I,F,t,V,G,re,p,ie,N,Q,H,f,oe,W]),G]};var L1e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};const F1e=L1e;var z1e=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:F1e}))};const B1e=l.forwardRef(z1e);var H1e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"};const U1e=H1e;var W1e=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:U1e}))};const V1e=l.forwardRef(W1e),hy="ascend",zS="descend";function C1(e){return typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1}function $T(e){return typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1}function K1e(e,t){return t?e[e.indexOf(t)+1]:e[0]}function EE(e,t,n){let r=[];function o(i,a){r.push({column:i,key:hd(i,a),multiplePriority:C1(i),sortOrder:i.sortOrder})}return(e||[]).forEach((i,a)=>{const s=Dg(a,n);i.children?("sortOrder"in i&&o(i,s),r=[].concat(Ze(r),Ze(EE(i.children,t,s)))):i.sorter&&("sortOrder"in i?o(i,s):t&&i.defaultSortOrder&&r.push({column:i,key:hd(i,s),multiplePriority:C1(i),sortOrder:i.defaultSortOrder}))}),r}function A7(e,t,n,r,o,i,a,s){return(t||[]).map((c,u)=>{const d=Dg(u,s);let f=c;if(f.sorter){const p=f.sortDirections||o,g=f.showSorterTooltip===void 0?a:f.showSorterTooltip,v=hd(f,d),y=n.find(N=>{let{key:_}=N;return _===v}),S=y?y.sortOrder:null,b=K1e(p,S);let x;if(c.sortIcon)x=c.sortIcon({sortOrder:S});else{const N=p.includes(hy)&&l.createElement(V1e,{className:ne(`${e}-column-sorter-up`,{active:S===hy})}),_=p.includes(zS)&&l.createElement(B1e,{className:ne(`${e}-column-sorter-down`,{active:S===zS})});x=l.createElement("span",{className:ne(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(N&&_)})},l.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},N,_))}const{cancelSort:C,triggerAsc:E,triggerDesc:$}=i||{};let O=C;b===zS?O=$:b===hy&&(O=E);const I=typeof g=="object"?g:{title:O};f=Object.assign(Object.assign({},f),{className:ne(f.className,{[`${e}-column-sort`]:S}),title:N=>{const _=l.createElement("div",{className:`${e}-column-sorters`},l.createElement("span",{className:`${e}-column-title`},ex(c.title,N)),x);return g?l.createElement(Io,Object.assign({},I),_):_},onHeaderCell:N=>{const _=c.onHeaderCell&&c.onHeaderCell(N)||{},T=_.onClick,D=_.onKeyDown;_.onClick=M=>{r({column:c,key:v,sortOrder:b,multiplePriority:C1(c)}),T?.(M)},_.onKeyDown=M=>{M.keyCode===He.ENTER&&(r({column:c,key:v,sortOrder:b,multiplePriority:C1(c)}),D?.(M))};const j=pye(c.title,{}),P=j?.toString();return S?_["aria-sort"]=S==="ascend"?"ascending":"descending":_["aria-label"]=P||"",_.className=ne(_.className,`${e}-column-has-sorters`),_.tabIndex=0,c.ellipsis&&(_.title=(j??"").toString()),_}})}return"children"in f&&(f=Object.assign(Object.assign({},f),{children:A7(e,f.children,n,r,o,i,a,d)})),f})}function OT(e){const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}}function IT(e){const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(OT);return t.length===0&&e.length?Object.assign(Object.assign({},OT(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function $E(e,t,n){const r=t.slice().sort((a,s)=>s.multiplePriority-a.multiplePriority),o=e.slice(),i=r.filter(a=>{let{column:{sorter:s},sortOrder:c}=a;return $T(s)&&c});return i.length?o.sort((a,s)=>{for(let c=0;c{const s=a[n];return s?Object.assign(Object.assign({},a),{[n]:$E(s,t,n)}):a}):o}function G1e(e){let{prefixCls:t,mergedColumns:n,onSorterChange:r,sortDirections:o,tableLocale:i,showSorterTooltip:a}=e;const[s,c]=l.useState(EE(n,!0)),u=l.useMemo(()=>{let v=!0;const y=EE(n,!1);if(!y.length)return s;const S=[];function b(C){v?S.push(C):S.push(Object.assign(Object.assign({},C),{sortOrder:null}))}let x=null;return y.forEach(C=>{x===null?(b(C),C.sortOrder&&(C.multiplePriority===!1?v=!1:x=!0)):(x&&C.multiplePriority!==!1||(v=!1),b(C))}),S},[n,s]),d=l.useMemo(()=>{const v=u.map(y=>{let{column:S,sortOrder:b}=y;return{column:S,order:b}});return{sortColumns:v,sortColumn:v[0]&&v[0].column,sortOrder:v[0]&&v[0].order}},[u]);function f(v){let y;v.multiplePriority===!1||!u.length||u[0].multiplePriority===!1?y=[v]:y=[].concat(Ze(u.filter(S=>{let{key:b}=S;return b!==v.key})),[v]),c(y),r(IT(y),y)}return[v=>A7(t,v,u,f,o,i,a),u,d,()=>IT(u)]}function L7(e,t){return e.map(n=>{const r=Object.assign({},n);return r.title=ex(n.title,t),"children"in r&&(r.children=L7(r.children,t)),r})}function Y1e(e){return[l.useCallback(n=>L7(n,e),[e])]}const q1e=e=>{const{componentCls:t}=e,n=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`,r=(o,i,a)=>({[`&${t}-${o}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`-${i}px -${a+e.lineWidth}px`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:n,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:n,borderTop:n,[` > ${t}-content, > ${t}-header, > ${t}-body, > ${t}-summary `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:n},"> thead":{"> tr:not(:last-child) > th":{borderBottom:n},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:n}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`-${e.tablePaddingVertical}px -${e.tablePaddingHorizontal+e.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:e.lineWidth,bottom:0,borderInlineEnd:n,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[` > tr${t}-expanded-row, > tr${t}-placeholder `]:{"> th, > td":{borderInlineEnd:0}}}}}},r("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),r("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:n,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${e.lineWidth}px 0 ${e.lineWidth}px ${e.tableHeaderBg}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:n}}}},X1e=q1e,Q1e=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},Us),{wordBreak:"keep-all",[` &${t}-cell-fix-left-last, &${t}-cell-fix-right-first `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Z1e=Q1e,J1e=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},ebe=J1e,tbe=e=>{const{componentCls:t,antCls:n,controlInteractiveSize:r,motionDurationSlow:o,lineWidth:i,paddingXS:a,lineType:s,tableBorderColor:c,tableExpandIconBg:u,tableExpandColumnWidth:d,borderRadius:f,fontSize:p,fontSizeSM:g,lineHeight:v,tablePaddingVertical:y,tablePaddingHorizontal:S,tableExpandedRowBg:b,paddingXXS:x}=e,C=r/2-i,E=C*2+i*3,$=`${i}px ${s} ${c}`,O=x-i;return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:d},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},p4(e)),{position:"relative",float:"left",boxSizing:"border-box",width:E,height:E,padding:0,color:"inherit",lineHeight:`${E}px`,background:u,border:$,borderRadius:f,transform:`scale(${r/E})`,transition:`all ${o}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${o} ease-out`,content:'""'},"&::before":{top:C,insetInlineEnd:O,insetInlineStart:O,height:i},"&::after":{top:O,bottom:O,insetInlineStart:C,width:i,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:(p*v-i*3)/2-Math.ceil((g*1.4-i*3)/2),marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:b}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`-${y}px -${S}px`,padding:`${y}px ${S}px`}}}},nbe=tbe,rbe=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:i,paddingXXS:a,paddingXS:s,colorText:c,lineWidth:u,lineType:d,tableBorderColor:f,tableHeaderIconColor:p,fontSizeSM:g,tablePaddingHorizontal:v,borderRadius:y,motionDurationSlow:S,colorTextDescription:b,colorPrimary:x,tableHeaderFilterActiveBg:C,colorTextDisabled:E,tableFilterDropdownBg:$,tableFilterDropdownHeight:O,controlItemBgHover:I,controlItemBgActive:N,boxShadowSecondary:_}=e,T=`${n}-dropdown`,D=`${t}-filter-dropdown`,j=`${n}-tree`,P=`${u}px ${d} ${f}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-a,marginInline:`${a}px ${-v/2}px`,padding:`0 ${a}px`,color:p,fontSize:g,borderRadius:y,cursor:"pointer",transition:`all ${S}`,"&:hover":{color:b,background:C},"&.active":{color:x}}}},{[`${n}-dropdown`]:{[D]:Object.assign(Object.assign({},En(e)),{minWidth:o,backgroundColor:$,borderRadius:y,boxShadow:_,overflow:"hidden",[`${T}-menu`]:{maxHeight:O,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset","&:empty::after":{display:"block",padding:`${s}px 0`,color:E,fontSize:g,textAlign:"center",content:'"Not Found"'}},[`${D}-tree`]:{paddingBlock:`${s}px 0`,paddingInline:s,[j]:{padding:0},[`${j}-treenode ${j}-node-content-wrapper:hover`]:{backgroundColor:I},[`${j}-treenode-checkbox-checked ${j}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:N}}},[`${D}-search`]:{padding:s,borderBottom:P,"&-input":{input:{minWidth:i},[r]:{color:E}}},[`${D}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${D}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${s-u}px ${s}px`,overflow:"hidden",borderTop:P}})}},{[`${n}-dropdown ${D}, ${D}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},obe=rbe,ibe=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:o,zIndexTableFixed:i,tableBg:a,zIndexTableSticky:s}=e,c=r;return{[`${t}-wrapper`]:{[` ${t}-cell-fix-left, ${t}-cell-fix-right `]:{position:"sticky !important",zIndex:i,background:a},[` ${t}-cell-fix-left-first::after, ${t}-cell-fix-left-last::after `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-n,width:30,transform:"translateX(100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[` ${t}-cell-fix-right-first::after, ${t}-cell-fix-right-last::after `]:{position:"absolute",top:0,bottom:-n,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:s+1,width:30,transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${c}`}},[` ${t}-cell-fix-left-first::after, ${t}-cell-fix-left-last::after `]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${c}`}},[` ${t}-cell-fix-right-first::after, ${t}-cell-fix-right-last::after `]:{boxShadow:`inset -10px 0 8px -8px ${c}`}}}}},abe=ibe,sbe=e=>{const{componentCls:t,antCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${e.margin}px 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},lbe=sbe,cbe=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${n}px ${n}px 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${n}px ${n}px`}}}}},ube=cbe,dbe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},fbe=dbe,hbe=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:o,padding:i,paddingXS:a,tableHeaderIconColor:s,tableHeaderIconColorHover:c,tableSelectionColumnWidth:u}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:u,[`&${t}-selection-col-with-dropdown`]:{width:u+o+i/4}},[`${t}-bordered ${t}-selection-col`]:{width:u+a*2,[`&${t}-selection-col-with-dropdown`]:{width:u+o+i/4+a*2}},[` table tr th${t}-selection-column, table tr td${t}-selection-column `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:e.zIndexTableFixed+1},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${e.tablePaddingHorizontal/4}px`,[r]:{color:s,fontSize:o,verticalAlign:"baseline","&:hover":{color:c}}}}}},pbe=hbe,mbe=e=>{const{componentCls:t}=e,n=(r,o,i,a)=>({[`${t}${t}-${r}`]:{fontSize:a,[` ${t}-title, ${t}-footer, ${t}-thead > tr > th, ${t}-tbody > tr > th, ${t}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td `]:{padding:`${o}px ${i}px`},[`${t}-filter-trigger`]:{marginInlineEnd:`-${i/2}px`},[`${t}-expanded-row-fixed`]:{margin:`-${o}px -${i}px`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:`-${o}px`,marginInline:`${e.tableExpandColumnWidth-i}px -${i}px`}},[`${t}-selection-column`]:{paddingInlineStart:`${i/4}px`}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},n("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),n("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},gbe=mbe,vbe=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,tableHeaderIconColor:o,tableHeaderIconColorHover:i}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[` &${t}-cell-fix-left:hover, &${t}-cell-fix-right:hover `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorter`]:{marginInlineStart:n,color:o,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:i}}}},ybe=vbe,bbe=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollThumbSize:i,tableScrollBg:a,zIndexTableSticky:s}=e,c=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${i}px !important`,zIndex:s,display:"flex",alignItems:"center",background:a,borderTop:c,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:r,borderRadius:100,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},xbe=bbe,wbe=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r}=e,o=`${n}px ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:o}}},[`div${t}-summary`]:{boxShadow:`0 -${n}px 0 ${r}`}}}},RT=wbe,Sbe=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:o,lineWidth:i,lineType:a,tableBorderColor:s,tableFontSize:c,tableBg:u,tableRadius:d,tableHeaderTextColor:f,motionDurationMid:p,tableHeaderBg:g,tableHeaderCellSplitColor:v,tableRowHoverBg:y,tableSelectedRowBg:S,tableSelectedRowHoverBg:b,tableFooterTextColor:x,tableFooterBg:C,paddingContentVerticalLG:E}=e,$=`${i}px ${a} ${s}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},sc()),{[t]:Object.assign(Object.assign({},En(e)),{fontSize:c,background:u,borderRadius:`${d}px ${d}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${d}px ${d}px 0 0`,borderCollapse:"separate",borderSpacing:0},[` ${t}-thead > tr > th, ${t}-tbody > tr > th, ${t}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td `]:{position:"relative",padding:`${E}px ${o}px`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${r}px ${o}px`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:f,fontWeight:n,textAlign:"start",background:g,borderBottom:$,transition:`background ${p} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:v,transform:"translateY(-50%)",transition:`background-color ${p}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${p}, border-color ${p}`,borderBottom:$,[` > ${t}-wrapper:only-child, > ${t}-expanded-row-fixed > ${t}-wrapper:only-child `]:{[t]:{marginBlock:`-${r}px`,marginInline:`${e.tableExpandColumnWidth-o}px -${o}px`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:f,fontWeight:n,textAlign:"start",background:g,borderBottom:$,transition:`background ${p} ease`},[` &${t}-row:hover > th, &${t}-row:hover > td, > th${t}-cell-row-hover, > td${t}-cell-row-hover `]:{background:y},[`&${t}-row-selected`]:{"> th, > td":{background:S},"&:hover > th, &:hover > td":{background:b}}}},[`${t}-footer`]:{padding:`${r}px ${o}px`,color:x,background:C}})}},Cbe=Pn("Table",e=>{const{controlItemBgActive:t,controlItemBgActiveHover:n,colorTextPlaceholder:r,colorTextHeading:o,colorSplit:i,colorBorderSecondary:a,fontSize:s,padding:c,paddingXS:u,paddingSM:d,controlHeight:f,colorFillAlter:p,colorIcon:g,colorIconHover:v,opacityLoading:y,colorBgContainer:S,borderRadiusLG:b,colorFillContent:x,colorFillSecondary:C,controlInteractiveSize:E}=e,$=new kn(g),O=new kn(v),I=t,N=2,_=new kn(C).onBackground(S).toHexShortString(),T=new kn(x).onBackground(S).toHexShortString(),D=new kn(p).onBackground(S).toHexShortString(),j=sn(e,{tableFontSize:s,tableBg:S,tableRadius:b,tablePaddingVertical:c,tablePaddingHorizontal:c,tablePaddingVerticalMiddle:d,tablePaddingHorizontalMiddle:u,tablePaddingVerticalSmall:u,tablePaddingHorizontalSmall:u,tableBorderColor:a,tableHeaderTextColor:o,tableHeaderBg:D,tableFooterTextColor:o,tableFooterBg:D,tableHeaderCellSplitColor:a,tableHeaderSortBg:_,tableHeaderSortHoverBg:T,tableHeaderIconColor:$.clone().setAlpha($.getAlpha()*y).toRgbString(),tableHeaderIconColorHover:O.clone().setAlpha(O.getAlpha()*y).toRgbString(),tableBodySortBg:D,tableFixedHeaderSortActiveBg:_,tableHeaderFilterActiveBg:x,tableFilterDropdownBg:S,tableRowHoverBg:D,tableSelectedRowBg:I,tableSelectedRowHoverBg:n,zIndexTableFixed:N,zIndexTableSticky:N+1,tableFontSizeMiddle:s,tableFontSizeSmall:s,tableSelectionColumnWidth:f,tableExpandIconBg:S,tableExpandColumnWidth:E+2*e.padding,tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollBg:i});return[Sbe(j),lbe(j),RT(j),ybe(j),obe(j),X1e(j),ube(j),nbe(j),RT(j),ebe(j),pbe(j),abe(j),xbe(j),Z1e(j),gbe(j),fbe(j)]}),Ebe=[],$be=(e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,size:a,bordered:s,dropdownPrefixCls:c,dataSource:u,pagination:d,rowSelection:f,rowKey:p="key",rowClassName:g,columns:v,children:y,childrenColumnName:S,onChange:b,getPopupContainer:x,loading:C,expandIcon:E,expandable:$,expandedRowRender:O,expandIconColumnIndex:I,indentSize:N,scroll:_,sortDirections:T,locale:D,showSorterTooltip:j=!0}=e,P=l.useMemo(()=>v||x3(y),[v,y]),M=l.useMemo(()=>P.some(Ve=>Ve.responsive),[P]),A=jb(M),B=l.useMemo(()=>{const Ve=new Set(Object.keys(A).filter(rt=>A[rt]));return P.filter(rt=>!rt.responsive||rt.responsive.some(Ue=>Ve.has(Ue)))},[P,A]),F=vr(e,["className","style","columns"]),{locale:H=Hs,direction:W,table:V,renderEmpty:K,getPrefixCls:G,getPopupContainer:re}=l.useContext(St),Q=Zo(a),fe=Object.assign(Object.assign({},H.Table),D),se=u||Ebe,oe=G("table",n),ie=G("dropdown",c),ge=Object.assign({childrenColumnName:S,expandIconColumnIndex:I},$),{childrenColumnName:ve="children"}=ge,he=l.useMemo(()=>se.some(Ve=>Ve?.[ve])?"nest":O||$&&$.expandedRowRender?"row":null,[se]),be={body:l.useRef()},ye=l.useMemo(()=>typeof p=="function"?p:Ve=>Ve?.[p],[p]),[Ce]=j1e(se,ve,ye),Ee={},je=function(Ve,rt){let Ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Je,ht,gt;const It=Object.assign(Object.assign({},Ee),Ve);Ue&&((Je=Ee.resetPagination)===null||Je===void 0||Je.call(Ee),!((ht=It.pagination)===null||ht===void 0)&&ht.current&&(It.pagination.current=1),d&&d.onChange&&d.onChange(1,(gt=It.pagination)===null||gt===void 0?void 0:gt.pageSize)),_&&_.scrollToFirstRowOnChange!==!1&&be.body.current&&gee(0,{getContainer:()=>be.body.current}),b?.(It.pagination,It.filters,It.sorter,{currentDataSource:CT($E(se,It.sorterStates,ve),It.filterStates),action:rt})},De=(Ve,rt)=>{je({sorter:Ve,sorterStates:rt},"sort",!1)},[_e,Me,Ie,Fe]=G1e({prefixCls:oe,mergedColumns:B,onSorterChange:De,sortDirections:T||["ascend","descend"],tableLocale:fe,showSorterTooltip:j}),Ge=l.useMemo(()=>$E(se,Me,ve),[se,Me]);Ee.sorter=Fe(),Ee.sorterStates=Me;const ft=(Ve,rt)=>{je({filters:Ve,filterStates:rt},"filter",!0)},[it,qe,at]=P1e({prefixCls:oe,locale:fe,dropdownPrefixCls:ie,mergedColumns:B,onFilterChange:ft,getPopupContainer:x||re}),U=CT(Ge,qe);Ee.filters=at,Ee.filterStates=qe;const k=l.useMemo(()=>{const Ve={};return Object.keys(at).forEach(rt=>{at[rt]!==null&&(Ve[rt]=at[rt])}),Object.assign(Object.assign({},Ie),{filters:Ve})},[Ie,at]),[L]=Y1e(k),X=(Ve,rt)=>{je({pagination:Object.assign(Object.assign({},Ee.pagination),{current:Ve,pageSize:rt})},"paginate")},[ee,$e]=D1e(U.length,X,d);Ee.pagination=d===!1?{}:k1e(ee,d),Ee.resetPagination=$e;const we=l.useMemo(()=>{if(d===!1||!ee.pageSize)return U;const{current:Ve=1,total:rt,pageSize:Ue=k7}=ee;return U.lengthUe?U.slice((Ve-1)*Ue,Ve*Ue):U:U.slice((Ve-1)*Ue,Ve*Ue)},[!!d,U,ee&&ee.current,ee&&ee.pageSize,ee&&ee.total]),[de,Se]=A1e({prefixCls:oe,data:U,pageData:we,getRowKey:ye,getRecordByKey:Ce,expandType:he,childrenColumnName:ve,locale:fe,getPopupContainer:x||re},f),Ae=(Ve,rt,Ue)=>{let Je;return typeof g=="function"?Je=ne(g(Ve,rt,Ue)):Je=ne(g),ne({[`${oe}-row-selected`]:Se.has(ye(Ve,rt))},Je)};ge.__PARENT_RENDER_ICON__=ge.expandIcon,ge.expandIcon=ge.expandIcon||E||fye(fe),he==="nest"&&ge.expandIconColumnIndex===void 0?ge.expandIconColumnIndex=f?1:0:ge.expandIconColumnIndex>0&&f&&(ge.expandIconColumnIndex-=1),typeof ge.indentSize!="number"&&(ge.indentSize=typeof N=="number"?N:15);const We=l.useCallback(Ve=>L(de(it(_e(Ve)))),[_e,it,de]);let Ke,tt;if(d!==!1&&ee?.total){let Ve;ee.size?Ve=ee.size:Ve=Q==="small"||Q==="middle"?"small":void 0;const rt=ht=>l.createElement(QL,Object.assign({},ee,{className:ne(`${oe}-pagination ${oe}-pagination-${ht}`,ee.className),size:Ve})),Ue=W==="rtl"?"left":"right",{position:Je}=ee;if(Je!==null&&Array.isArray(Je)){const ht=Je.find(Et=>Et.includes("top")),gt=Je.find(Et=>Et.includes("bottom")),It=Je.every(Et=>`${Et}`=="none");!ht&&!gt&&!It&&(tt=rt(Ue)),ht&&(Ke=rt(ht.toLowerCase().replace("top",""))),gt&&(tt=rt(gt.toLowerCase().replace("bottom","")))}else tt=rt(Ue)}let pe;typeof C=="boolean"?pe={spinning:C}:typeof C=="object"&&(pe=Object.assign({spinning:!0},C));const[Te,ze]=Cbe(oe),ke=ne(`${oe}-wrapper`,V?.className,{[`${oe}-wrapper-rtl`]:W==="rtl"},r,o,ze),et=Object.assign(Object.assign({},V?.style),i),mt=D&&D.emptyText||K?.("Table")||l.createElement(z4,{componentName:"Table"});return Te(l.createElement("div",{ref:t,className:ke,style:et},l.createElement(JL,Object.assign({spinning:!1},pe),Ke,l.createElement(hye,Object.assign({},F,{columns:B,direction:W,expandable:ge,prefixCls:oe,className:ne({[`${oe}-middle`]:Q==="middle",[`${oe}-small`]:Q==="small",[`${oe}-bordered`]:s,[`${oe}-empty`]:se.length===0}),data:we,rowKey:ye,rowClassName:Ae,emptyText:mt,internalHooks:S1,internalRefs:be,transformColumns:We})),tt)))},Obe=l.forwardRef($be),Ibe=(e,t)=>{const n=l.useRef(0);return n.current+=1,l.createElement(Obe,Object.assign({},e,{ref:t,_renderTimes:n.current}))},vc=l.forwardRef(Ibe);vc.SELECTION_COLUMN=Ac;vc.EXPAND_COLUMN=Bc;vc.SELECTION_ALL=wE;vc.SELECTION_INVERT=SE;vc.SELECTION_NONE=CE;vc.Column=uye;vc.ColumnGroup=dye;vc.Summary=m7;const Zn=vc;function Rbe(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const E0=(e,t,n)=>{const r=Rbe(n);return{[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},Nbe=e=>pb(e,(t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:i,darkColor:a}=n;return{[`${e.componentCls}-${t}`]:{color:r,background:i,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),_be=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o}=e,i=r-n,a=t-n;return{[o]:Object.assign(Object.assign({},En(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:a,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},F7=Pn("Tag",e=>{const{lineWidth:t,fontSizeIcon:n}=e,r=e.fontSizeSM,o=`${e.lineHeightSM*r}px`,i=sn(e,{tagFontSize:r,tagLineHeight:o,tagIconSize:n-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return[_be(i),Nbe(i),E0(i,"success","Success"),E0(i,"processing","Info"),E0(i,"error","Error"),E0(i,"warning","Warning")]},e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText}));var Tbe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:n,checked:r,onChange:o,onClick:i}=e,a=Tbe(e,["prefixCls","className","checked","onChange","onClick"]),{getPrefixCls:s}=l.useContext(St),c=g=>{o?.(!r),i?.(g)},u=s("tag",t),[d,f]=F7(u),p=ne(u,`${u}-checkable`,{[`${u}-checkable-checked`]:r},n,f);return d(l.createElement("span",Object.assign({},a,{className:p,onClick:c})))},jbe=Pbe;var Mbe=globalThis&&globalThis.__rest||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,className:r,rootClassName:o,style:i,children:a,icon:s,color:c,onClose:u,closeIcon:d,closable:f,bordered:p=!0}=e,g=Mbe(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:v,direction:y,tag:S}=l.useContext(St),[b,x]=l.useState(!0);l.useEffect(()=>{"visible"in g&&x(g.visible)},[g.visible]);const C=Mb(c)||bae(c),E=Object.assign(Object.assign({backgroundColor:c&&!C?c:void 0},S?.style),i),$=v("tag",n),[O,I]=F7($),N=ne($,S?.className,{[`${$}-${c}`]:C,[`${$}-has-color`]:c&&!C,[`${$}-hidden`]:!b,[`${$}-rtl`]:y==="rtl",[`${$}-borderless`]:!p},r,o,I),_=A=>{A.stopPropagation(),u?.(A),!A.defaultPrevented&&x(!1)},[,T]=Uk(f,d,A=>A===null?l.createElement(No,{className:`${$}-close-icon`,onClick:_}):l.createElement("span",{className:`${$}-close-icon`,onClick:_},A),null,!1),D=typeof g.onClick=="function"||a&&a.type==="a",j=s||null,P=j?l.createElement(l.Fragment,null,j,a&&l.createElement("span",null,a)):a,M=l.createElement("span",Object.assign({},g,{ref:t,className:N,style:E}),P,T);return O(D?l.createElement(vg,{component:"Tag"},M):M)},z7=l.forwardRef(kbe);z7.CheckableTag=jbe;const Xr=z7;var Dbe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};const Abe=Dbe;var Lbe=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:Abe}))};const Fl=l.forwardRef(Lbe);var Fbe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const n=u=>{const{keyCode:d}=u;d===He.ENTER&&u.preventDefault()},r=u=>{const{keyCode:d}=u,{onClick:f}=e;d===He.ENTER&&f&&f()},{style:o,noStyle:i,disabled:a}=e,s=Fbe(e,["style","noStyle","disabled"]);let c={};return i||(c=Object.assign({},zbe)),a&&(c.pointerEvents="none"),c=Object.assign(Object.assign({},c),o),l.createElement("div",Object.assign({role:"button",tabIndex:0,ref:t},s,{onKeyDown:n,onKeyUp:r,style:c}))}),NT=Bbe;var Hbe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};const Ube=Hbe;var Wbe=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:Ube}))};const OE=l.forwardRef(Wbe);var Vbe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};const Kbe=Vbe;var Gbe=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:Kbe}))};const Of=l.forwardRef(Gbe);var Ybe=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=_T[t.format]||_T.default;window.clipboardData.setData(f,e)}else d.clipboardData.clearData(),d.clipboardData.setData(t.format,e);t.onCopy&&(d.preventDefault(),t.onCopy(d.clipboardData))}),document.body.appendChild(s),i.selectNodeContents(s),a.addRange(i);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");c=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),r=Qbe("message"in t?t.message:Xbe),window.prompt(r,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(i):a.removeAllRanges()),s&&document.body.removeChild(s),o()}return c}var Jbe=Zbe;const exe=Vo(Jbe);var txe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};const nxe=txe;var rxe=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:nxe}))};const oxe=l.forwardRef(rxe),ixe=(e,t,n,r)=>{const{titleMarginBottom:o,fontWeightStrong:i}=r;return{marginBottom:o,color:n,fontWeight:i,fontSize:e,lineHeight:t}},axe=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[` h${r}&, div&-h${r}, div&-h${r} > textarea, h${r} `]=ixe(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},sxe=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},p4(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},lxe=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:TQ[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),cxe=e=>{const{componentCls:t}=e,r=_g(e).inputPaddingVertical+1;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:-e.paddingSM,marginTop:-r,marginBottom:`calc(1em - ${r}px)`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.marginXS+2,insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},uxe=e=>({"&-copy-success":{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}}}),dxe=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),fxe=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},axe(e)),{[` & + h1${t}, & + h2${t}, & + h3${t}, & + h4${t}, & + h5${t} `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),lxe(e)),sxe(e)),{[` ${t}-expand, ${t}-edit, ${t}-copy `]:Object.assign(Object.assign({},p4(e)),{marginInlineStart:e.marginXXS})}),cxe(e)),uxe(e)),dxe()),{"&-rtl":{direction:"rtl"}})}},B7=Pn("Typography",e=>[fxe(e)],()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})),hxe=e=>{const{prefixCls:t,"aria-label":n,className:r,style:o,direction:i,maxLength:a,autoSize:s=!0,value:c,onSave:u,onCancel:d,onEnd:f,component:p,enterIcon:g=l.createElement(oxe,null)}=e,v=l.useRef(null),y=l.useRef(!1),S=l.useRef(),[b,x]=l.useState(c);l.useEffect(()=>{x(c)},[c]),l.useEffect(()=>{if(v.current&&v.current.resizableTextArea){const{textArea:M}=v.current.resizableTextArea;M.focus();const{length:A}=M.value;M.setSelectionRange(A,A)}},[]);const C=M=>{let{target:A}=M;x(A.value.replace(/[\n\r]/g,""))},E=()=>{y.current=!0},$=()=>{y.current=!1},O=M=>{let{keyCode:A}=M;y.current||(S.current=A)},I=()=>{u(b.trim())},N=M=>{let{keyCode:A,ctrlKey:B,altKey:F,metaKey:H,shiftKey:W}=M;S.current===A&&!y.current&&!B&&!F&&!H&&!W&&(A===He.ENTER?(I(),f?.()):A===He.ESC&&d())},_=()=>{I()},T=p?`${t}-${p}`:"",[D,j]=B7(t),P=ne(t,`${t}-edit-content`,{[`${t}-rtl`]:i==="rtl"},r,T,j);return D(l.createElement("div",{className:P,style:o},l.createElement(wL,{ref:v,maxLength:a,value:b,onChange:C,onKeyDown:O,onKeyUp:N,onCompositionStart:E,onCompositionEnd:$,onBlur:_,"aria-label":n,rows:1,autoSize:s}),g!==null?go(g,{className:`${t}-edit-content-confirm`}):null))},pxe=hxe;var mxe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,component:r="article",className:o,rootClassName:i,setContentRef:a,children:s,direction:c,style:u}=e,d=mxe(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:p,typography:g}=l.useContext(St),v=c??p;let y=t;a&&(y=li(t,a));const S=f("typography",n),[b,x]=B7(S),C=ne(S,g?.className,{[`${S}-rtl`]:v==="rtl"},o,i,x),E=Object.assign(Object.assign({},g?.style),u);return b(l.createElement(r,Object.assign({className:C,style:E,ref:y},d),s))}),H7=gxe;function BS(e,t){return l.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const vxe=(e,t)=>{const n=l.useRef(!1);l.useEffect(()=>{n.current?e():n.current=!0},t)},yxe=vxe;function U7(e){const t=typeof e;return t==="string"||t==="number"}function bxe(e){let t=0;return e.forEach(n=>{U7(n)?t+=String(n).length:t+=1}),t}function TT(e,t){let n=0;const r=[];for(let o=0;ot){const u=t-n;return r.push(String(i).slice(0,u)),r}r.push(i),n=c}return e}const xxe=0,$0=1,PT=2,HS=3,jT=4,wxe=e=>{let{enabledMeasure:t,children:n,text:r,width:o,fontSize:i,rows:a,onEllipsis:s}=e;const[[c,u,d],f]=l.useState([0,0,0]),[p,g]=l.useState(xxe),[v,y]=l.useState(0),S=l.useRef(null),b=l.useRef(null),x=l.useMemo(()=>zo(r),[r]),C=l.useMemo(()=>bxe(x),[x]),E=l.useMemo(()=>!t||p!==HS?n(x,!1):n(TT(x,u),u{t&&o&&i&&C&&(g($0),f([0,Math.ceil(C/2),C]))},[t,o,i,r,C,a]),Wn(()=>{var N;p===$0&&y(((N=S.current)===null||N===void 0?void 0:N.offsetHeight)||0)},[p]),Wn(()=>{var N,_;if(v){if(p===$0){const T=((N=b.current)===null||N===void 0?void 0:N.offsetHeight)||0,D=a*v;T<=D?(g(jT),s(!1)):g(PT)}else if(p===PT)if(c!==d){const T=((_=b.current)===null||_===void 0?void 0:_.offsetHeight)||0,D=a*v;let j=c,P=d;c===d-1?P=c:T<=D?j=u:P=u;const M=Math.ceil((j+P)/2);f([j,M,P])}else g(HS),s(!0)}},[p,c,d,a,v]);const $={width:o,whiteSpace:"normal",margin:0,padding:0},O=(N,_,T)=>l.createElement("span",{"aria-hidden":!0,ref:_,style:Object.assign({position:"fixed",display:"block",left:0,top:0,zIndex:-9999,visibility:"hidden",pointerEvents:"none",fontSize:Math.floor(i/2)*2},T)},N),I=(N,_)=>{const T=TT(x,N);return O(n(T,!0),_,$)};return l.createElement(l.Fragment,null,E,t&&p!==HS&&p!==jT&&l.createElement(l.Fragment,null,O("lg",S,{wordBreak:"keep-all",whiteSpace:"nowrap"}),p===$0?O(n(x,!1),b,$):I(u,b)))},Sxe=wxe,Cxe=e=>{let{enabledEllipsis:t,isEllipsis:n,children:r,tooltipProps:o}=e;return!o?.title||!t?r:l.createElement(Io,Object.assign({open:n?void 0:!1},o),r)},Exe=Cxe;var $xe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r,o;const{prefixCls:i,className:a,style:s,type:c,disabled:u,children:d,ellipsis:f,editable:p,copyable:g,component:v,title:y}=e,S=$xe(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:b,direction:x}=l.useContext(St),[C]=pc("Text"),E=l.useRef(null),$=l.useRef(null),O=b("typography",i),I=vr(S,["mark","code","delete","underline","strong","keyboard","italic"]),[N,_]=BS(p),[T,D]=Vn(!1,{value:_.editing}),{triggerType:j=["icon"]}=_,P=pe=>{var Te;pe&&((Te=_.onStart)===null||Te===void 0||Te.call(_)),D(pe)};yxe(()=>{var pe;T||(pe=$.current)===null||pe===void 0||pe.focus()},[T]);const M=pe=>{pe?.preventDefault(),P(!0)},A=pe=>{var Te;(Te=_.onChange)===null||Te===void 0||Te.call(_,pe),P(!1)},B=()=>{var pe;(pe=_.onCancel)===null||pe===void 0||pe.call(_),P(!1)},[F,H]=BS(g),[W,V]=l.useState(!1),K=l.useRef(null),G={};H.format&&(G.format=H.format);const re=()=>{K.current&&clearTimeout(K.current)},Q=pe=>{var Te;pe?.preventDefault(),pe?.stopPropagation(),exe(H.text||String(d)||"",G),V(!0),re(),K.current=setTimeout(()=>{V(!1)},3e3),(Te=H.onCopy)===null||Te===void 0||Te.call(H,pe)};l.useEffect(()=>re,[]);const[fe,se]=l.useState(!1),[oe,ie]=l.useState(!1),[ge,ve]=l.useState(!1),[he,be]=l.useState(!1),[ye,Ce]=l.useState(!1),[Ee,je]=l.useState(!0),[De,_e]=BS(f,{expandable:!1}),Me=De&&!ge,{rows:Ie=1}=_e,Fe=l.useMemo(()=>!Me||_e.suffix!==void 0||_e.onEllipsis||_e.expandable||N||F,[Me,_e,N,F]);Wn(()=>{De&&!Fe&&(se(P2("webkitLineClamp")),ie(P2("textOverflow")))},[Fe,De]);const Ge=l.useMemo(()=>Fe?!1:Ie===1?oe:fe,[Fe,oe,fe]),ft=Me&&(Ge?ye:he),it=Me&&Ie===1&&Ge,qe=Me&&Ie>1&&Ge,at=pe=>{var Te;ve(!0),(Te=_e.onExpand)===null||Te===void 0||Te.call(_e,pe)},[U,k]=l.useState(0),[L,X]=l.useState(0),ee=(pe,Te)=>{let{offsetWidth:ze}=pe;var ke;k(ze),X(parseInt((ke=window.getComputedStyle)===null||ke===void 0?void 0:ke.call(window,Te).fontSize,10)||0)},$e=pe=>{var Te;be(pe),he!==pe&&((Te=_e.onEllipsis)===null||Te===void 0||Te.call(_e,pe))};l.useEffect(()=>{const pe=E.current;if(De&&Ge&&pe){const Te=qe?pe.offsetHeight{const pe=E.current;if(typeof IntersectionObserver>"u"||!pe||!Ge||!Me)return;const Te=new IntersectionObserver(()=>{je(!!pe.offsetParent)});return Te.observe(pe),()=>{Te.disconnect()}},[Ge,Me]);let we={};_e.tooltip===!0?we={title:(n=_.text)!==null&&n!==void 0?n:d}:l.isValidElement(_e.tooltip)?we={title:_e.tooltip}:typeof _e.tooltip=="object"?we=Object.assign({title:(r=_.text)!==null&&r!==void 0?r:d},_e.tooltip):we={title:_e.tooltip};const de=l.useMemo(()=>{const pe=Te=>["string","number"].includes(typeof Te);if(!(!De||Ge)){if(pe(_.text))return _.text;if(pe(d))return d;if(pe(y))return y;if(pe(we.title))return we.title}},[De,Ge,y,we.title,ft]);if(T)return l.createElement(pxe,{value:(o=_.text)!==null&&o!==void 0?o:typeof d=="string"?d:"",onSave:A,onCancel:B,onEnd:_.onEnd,prefixCls:O,className:a,style:s,direction:x,component:v,maxLength:_.maxLength,autoSize:_.autoSize,enterIcon:_.enterIcon});const Se=()=>{const{expandable:pe,symbol:Te}=_e;if(!pe)return null;let ze;return Te?ze=Te:ze=C?.expand,l.createElement("a",{key:"expand",className:`${O}-expand`,onClick:at,"aria-label":C?.expand},ze)},Ae=()=>{if(!N)return;const{icon:pe,tooltip:Te}=_,ze=zo(Te)[0]||C?.edit,ke=typeof ze=="string"?ze:"";return j.includes("icon")?l.createElement(Io,{key:"edit",title:Te===!1?"":ze},l.createElement(NT,{ref:$,className:`${O}-edit`,onClick:M,"aria-label":ke},pe||l.createElement(Of,{role:"button"}))):null},We=()=>{if(!F)return;const{tooltips:pe,icon:Te}=H,ze=MT(pe),ke=MT(Te),et=W?O0(ze[1],C?.copied):O0(ze[0],C?.copy),mt=W?C?.copied:C?.copy,Ve=typeof et=="string"?et:mt;return l.createElement(Io,{key:"copy",title:et},l.createElement(NT,{className:ne(`${O}-copy`,W&&`${O}-copy-success`),onClick:Q,"aria-label":Ve},W?O0(ke[1],l.createElement(Ju,null),!0):O0(ke[0],l.createElement(OE,null),!0)))},Ke=pe=>[pe&&Se(),Ae(),We()],tt=pe=>[pe&&l.createElement("span",{"aria-hidden":!0,key:"ellipsis"},Ixe),_e.suffix,Ke(pe)];return l.createElement(ki,{onResize:ee,disabled:!Me||Ge},pe=>l.createElement(Exe,{tooltipProps:we,enabledEllipsis:Me,isEllipsis:ft},l.createElement(H7,Object.assign({className:ne({[`${O}-${c}`]:c,[`${O}-disabled`]:u,[`${O}-ellipsis`]:De,[`${O}-single-line`]:Me&&Ie===1,[`${O}-ellipsis-single-line`]:it,[`${O}-ellipsis-multiple-line`]:qe},a),prefixCls:i,style:Object.assign(Object.assign({},s),{WebkitLineClamp:qe?Ie:void 0}),component:v,ref:li(pe,E,t),direction:x,onClick:j.includes("text")?M:void 0,"aria-label":de?.toString(),title:y},I),l.createElement(Sxe,{enabledMeasure:Me&&!Ge,text:d,rows:Ie,width:U,fontSize:L,onEllipsis:$e},(Te,ze)=>{let ke=Te;return Te.length&&ze&&de&&(ke=l.createElement("span",{key:"show-content","aria-hidden":!0},ke)),Oxe(e,l.createElement(l.Fragment,null,ke,tt(ze)))}))))}),tx=Rxe;var Nxe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var{ellipsis:n,rel:r}=e,o=Nxe(e,["ellipsis","rel"]);const i=Object.assign(Object.assign({},o),{rel:r===void 0&&o.target==="_blank"?"noopener noreferrer":r});return delete i.navigate,l.createElement(tx,Object.assign({},i,{ref:t,ellipsis:!!n,component:"a"}))}),Txe=_xe,Pxe=l.forwardRef((e,t)=>l.createElement(tx,Object.assign({ref:t},e,{component:"div"}))),jxe=Pxe;var Mxe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var{ellipsis:n}=e,r=Mxe(e,["ellipsis"]);const o=l.useMemo(()=>n&&typeof n=="object"?vr(n,["expandable","rows"]):n,[n]);return l.createElement(tx,Object.assign({ref:t},r,{ellipsis:o,component:"span"}))},Dxe=l.forwardRef(kxe);var Axe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{level:n=1}=e,r=Axe(e,["level"]);let o;return Lxe.includes(n)?o=`h${n}`:o="h1",l.createElement(tx,Object.assign({ref:t},r,{component:o}))}),zxe=Fxe,Ag=H7;Ag.Text=Dxe;Ag.Link=Txe;Ag.Title=zxe;Ag.Paragraph=jxe;const ce=Ag;var Bxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};const Hxe=Bxe;var Uxe=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:Hxe}))};const Wxe=l.forwardRef(Uxe);/** * @remix-run/router v1.8.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Ur(){return Ur=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function ah(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Kxe(){return Math.random().toString(36).substr(2,8)}function DT(e,t){return{usr:e.state,key:e.key,idx:t}}function Zm(e,t,n,r){return n===void 0&&(n=null),Ur({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?yc(t):t,{state:n,key:t&&t.key||r||Kxe()})}function md(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function yc(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Gxe(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=Co.Pop,c=null,u=d();u==null&&(u=0,a.replaceState(Ur({},a.state,{idx:u}),""));function d(){return(a.state||{idx:null}).idx}function f(){s=Co.Pop;let S=d(),b=S==null?null:S-u;u=S,c&&c({action:s,location:y.location,delta:b})}function p(S,b){s=Co.Push;let x=Zm(y.location,S,b);n&&n(x,S),u=d()+1;let C=DT(x,u),E=y.createHref(x);try{a.pushState(C,"",E)}catch($){if($ instanceof DOMException&&$.name==="DataCloneError")throw $;o.location.assign(E)}i&&c&&c({action:s,location:y.location,delta:1})}function g(S,b){s=Co.Replace;let x=Zm(y.location,S,b);n&&n(x,S),u=d();let C=DT(x,u),E=y.createHref(x);a.replaceState(C,"",E),i&&c&&c({action:s,location:y.location,delta:0})}function v(S){let b=o.location.origin!=="null"?o.location.origin:o.location.href,x=typeof S=="string"?S:md(S);return Mn(b,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,b)}let y={get action(){return s},get location(){return e(o,a)},listen(S){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(kT,f),c=S,()=>{o.removeEventListener(kT,f),c=null}},createHref(S){return t(o,S)},createURL:v,encodeLocation(S){let b=v(S);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:p,replace:g,go(S){return a.go(S)}};return y}var ho;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ho||(ho={}));const Yxe=new Set(["lazy","caseSensitive","path","id","index","children"]);function qxe(e){return e.index===!0}function IE(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let a=[...n,i],s=typeof o.id=="string"?o.id:a.join("-");if(Mn(o.index!==!0||!o.children,"Cannot specify children on an index route"),Mn(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),qxe(o)){let c=Ur({},o,t(o),{id:s});return r[s]=c,c}else{let c=Ur({},o,t(o),{id:s,children:void 0});return r[s]=c,o.children&&(c.children=IE(o.children,t,a,r)),c}})}function If(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?yc(t):t,o=Fh(r.pathname||"/",n);if(o==null)return null;let i=W7(e);Xxe(i);let a=null;for(let s=0;a==null&&s{let c={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};c.relativePath.startsWith("/")&&(Mn(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=Jl([r,c.relativePath]),d=n.concat(c);i.children&&i.children.length>0&&(Mn(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),W7(i.children,t,d,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:rwe(u,i.index),routesMeta:d})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let c of V7(i.path))o(i,a,c)}),t}function V7(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=V7(r.join("/")),s=[];return s.push(...a.map(c=>c===""?i:[i,c].join("/"))),o&&s.push(...a),s.map(c=>e.startsWith("/")&&c===""?"/":c)}function Xxe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:owe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Qxe=/^:\w+$/,Zxe=3,Jxe=2,ewe=1,twe=10,nwe=-2,AT=e=>e==="*";function rwe(e,t){let n=e.split("/"),r=n.length;return n.some(AT)&&(r+=nwe),t&&(r+=Jxe),n.filter(o=>!AT(o)).reduce((o,i)=>o+(Qxe.test(i)?Zxe:i===""?ewe:twe),r)}function owe(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function iwe(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let a=0;a{if(d==="*"){let p=s[f]||"";a=i.slice(0,i.length-p.length).replace(/(.)\/+$/,"$1")}return u[d]=cwe(s[f]||"",d),u},{}),pathname:i,pathnameBase:a,pattern:e}}function swe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ah(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(a,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function lwe(e){try{return decodeURI(e)}catch(t){return ah(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function cwe(e,t){try{return decodeURIComponent(e)}catch(n){return ah(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function Fh(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function uwe(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?yc(e):e;return{pathname:n?n.startsWith("/")?n:dwe(n,t):t,search:hwe(r),hash:pwe(o)}}function dwe(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function US(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Lg(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function nx(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=yc(e):(o=Ur({},e),Mn(!o.pathname||!o.pathname.includes("?"),US("?","pathname","search",o)),Mn(!o.pathname||!o.pathname.includes("#"),US("#","pathname","hash",o)),Mn(!o.search||!o.search.includes("#"),US("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(r||a==null)s=n;else{let f=t.length-1;if(a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),f-=1;o.pathname=p.join("/")}s=f>=0?t[f]:"/"}let c=uwe(o,s),u=a&&a!=="/"&&a.endsWith("/"),d=(i||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const Jl=e=>e.join("/").replace(/\/\/+/g,"/"),fwe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),hwe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,pwe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class O3{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function K7(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const G7=["post","put","patch","delete"],mwe=new Set(G7),gwe=["get",...G7],vwe=new Set(gwe),ywe=new Set([301,302,303,307,308]),bwe=new Set([307,308]),WS={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},xwe={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Pp={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Y7=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,wwe=e=>({hasErrorBoundary:!!e.hasErrorBoundary});function Swe(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;Mn(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let de=e.detectErrorBoundary;o=Se=>({hasErrorBoundary:de(Se)})}else o=wwe;let i={},a=IE(e.routes,o,void 0,i),s,c=e.basename||"/",u=Ur({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),d=null,f=new Set,p=null,g=null,v=null,y=e.hydrationData!=null,S=If(a,e.history.location,c),b=null;if(S==null){let de=Ga(404,{pathname:e.history.location.pathname}),{matches:Se,route:Ae}=VT(a);S=Se,b={[Ae.id]:de}}let x=!S.some(de=>de.route.lazy)&&(!S.some(de=>de.route.loader)||e.hydrationData!=null),C,E={historyAction:e.history.action,location:e.history.location,matches:S,initialized:x,navigation:WS,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||b,fetchers:new Map,blockers:new Map},$=Co.Pop,O=!1,I,N=!1,_=!1,T=[],D=[],j=new Map,P=0,M=-1,A=new Map,B=new Set,F=new Map,H=new Map,W=new Map,V=!1;function K(){return d=e.history.listen(de=>{let{action:Se,location:Ae,delta:We}=de;if(V){V=!1;return}ah(W.size===0||We!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Ke=U({currentLocation:E.location,nextLocation:Ae,historyAction:Se});if(Ke&&We!=null){V=!0,e.history.go(We*-1),at(Ke,{state:"blocked",location:Ae,proceed(){at(Ke,{state:"proceeding",proceed:void 0,reset:void 0,location:Ae}),e.history.go(We)},reset(){let tt=new Map(E.blockers);tt.set(Ke,Pp),Q({blockers:tt})}});return}return ie(Se,Ae)}),E.initialized||ie(Co.Pop,E.location),C}function G(){d&&d(),f.clear(),I&&I.abort(),E.fetchers.forEach((de,Se)=>Me(Se)),E.blockers.forEach((de,Se)=>qe(Se))}function re(de){return f.add(de),()=>f.delete(de)}function Q(de){E=Ur({},E,de),f.forEach(Se=>Se(E))}function fe(de,Se){var Ae,We;let Ke=E.actionData!=null&&E.navigation.formMethod!=null&&Ps(E.navigation.formMethod)&&E.navigation.state==="loading"&&((Ae=de.state)==null?void 0:Ae._isRedirect)!==!0,tt;Se.actionData?Object.keys(Se.actionData).length>0?tt=Se.actionData:tt=null:Ke?tt=E.actionData:tt=null;let pe=Se.loaderData?WT(E.loaderData,Se.loaderData,Se.matches||[],Se.errors):E.loaderData,Te=E.blockers;Te.size>0&&(Te=new Map(Te),Te.forEach((ke,et)=>Te.set(et,Pp)));let ze=O===!0||E.navigation.formMethod!=null&&Ps(E.navigation.formMethod)&&((We=de.state)==null?void 0:We._isRedirect)!==!0;s&&(a=s,s=void 0),N||$===Co.Pop||($===Co.Push?e.history.push(de,de.state):$===Co.Replace&&e.history.replace(de,de.state)),Q(Ur({},Se,{actionData:tt,loaderData:pe,historyAction:$,location:de,initialized:!0,navigation:WS,revalidation:"idle",restoreScrollPosition:$e(de,Se.matches||E.matches),preventScrollReset:ze,blockers:Te})),$=Co.Pop,O=!1,N=!1,_=!1,T=[],D=[]}async function se(de,Se){if(typeof de=="number"){e.history.go(de);return}let Ae=RE(E.location,E.matches,c,u.v7_prependBasename,de,Se?.fromRouteId,Se?.relative),{path:We,submission:Ke,error:tt}=LT(u.v7_normalizeFormMethod,!1,Ae,Se),pe=E.location,Te=Zm(E.location,We,Se&&Se.state);Te=Ur({},Te,e.history.encodeLocation(Te));let ze=Se&&Se.replace!=null?Se.replace:void 0,ke=Co.Push;ze===!0?ke=Co.Replace:ze===!1||Ke!=null&&Ps(Ke.formMethod)&&Ke.formAction===E.location.pathname+E.location.search&&(ke=Co.Replace);let et=Se&&"preventScrollReset"in Se?Se.preventScrollReset===!0:void 0,mt=U({currentLocation:pe,nextLocation:Te,historyAction:ke});if(mt){at(mt,{state:"blocked",location:Te,proceed(){at(mt,{state:"proceeding",proceed:void 0,reset:void 0,location:Te}),se(de,Se)},reset(){let Ve=new Map(E.blockers);Ve.set(mt,Pp),Q({blockers:Ve})}});return}return await ie(ke,Te,{submission:Ke,pendingError:tt,preventScrollReset:et,replace:Se&&Se.replace})}function oe(){if(De(),Q({revalidation:"loading"}),E.navigation.state!=="submitting"){if(E.navigation.state==="idle"){ie(E.historyAction,E.location,{startUninterruptedRevalidation:!0});return}ie($||E.historyAction,E.navigation.location,{overrideNavigation:E.navigation})}}async function ie(de,Se,Ae){I&&I.abort(),I=null,$=de,N=(Ae&&Ae.startUninterruptedRevalidation)===!0,ee(E.location,E.matches),O=(Ae&&Ae.preventScrollReset)===!0;let We=s||a,Ke=Ae&&Ae.overrideNavigation,tt=If(We,Se,c);if(!tt){let Ve=Ga(404,{pathname:Se.pathname}),{matches:rt,route:Ue}=VT(We);k(),fe(Se,{matches:rt,loaderData:{},errors:{[Ue.id]:Ve}});return}if(E.initialized&&!_&&Iwe(E.location,Se)&&!(Ae&&Ae.submission&&Ps(Ae.submission.formMethod))){fe(Se,{matches:tt});return}I=new AbortController;let pe=Mp(e.history,Se,I.signal,Ae&&Ae.submission),Te,ze;if(Ae&&Ae.pendingError)ze={[Rf(tt).route.id]:Ae.pendingError};else if(Ae&&Ae.submission&&Ps(Ae.submission.formMethod)){let Ve=await ge(pe,Se,Ae.submission,tt,{replace:Ae.replace});if(Ve.shortCircuited)return;Te=Ve.pendingActionData,ze=Ve.pendingActionError,Ke=I0(Se,Ae.submission),pe=new Request(pe.url,{signal:pe.signal})}let{shortCircuited:ke,loaderData:et,errors:mt}=await ve(pe,Se,tt,Ke,Ae&&Ae.submission,Ae&&Ae.fetcherSubmission,Ae&&Ae.replace,Te,ze);ke||(I=null,fe(Se,Ur({matches:tt},Te?{actionData:Te}:{},{loaderData:et,errors:mt})))}async function ge(de,Se,Ae,We,Ke){Ke===void 0&&(Ke={}),De();let tt=Pwe(Se,Ae);Q({navigation:tt});let pe,Te=_E(We,Se);if(!Te.route.action&&!Te.route.lazy)pe={type:ho.error,error:Ga(405,{method:de.method,pathname:Se.pathname,routeId:Te.route.id})};else if(pe=await jp("action",de,Te,We,i,o,c),de.signal.aborted)return{shortCircuited:!0};if(Uf(pe)){let ze;return Ke&&Ke.replace!=null?ze=Ke.replace:ze=pe.location===E.location.pathname+E.location.search,await Ee(E,pe,{submission:Ae,replace:ze}),{shortCircuited:!0}}if(xm(pe)){let ze=Rf(We,Te.route.id);return(Ke&&Ke.replace)!==!0&&($=Co.Push),{pendingActionData:{},pendingActionError:{[ze.route.id]:pe.error}}}if(Gu(pe))throw Ga(400,{type:"defer-action"});return{pendingActionData:{[Te.route.id]:pe.data}}}async function ve(de,Se,Ae,We,Ke,tt,pe,Te,ze){let ke=We||I0(Se,Ke),et=Ke||tt||YT(ke),mt=s||a,[Ve,rt]=FT(e.history,E,Ae,et,Se,_,T,D,F,B,mt,c,Te,ze);if(k(_t=>!(Ae&&Ae.some(Ot=>Ot.route.id===_t))||Ve&&Ve.some(Ot=>Ot.route.id===_t)),M=++P,Ve.length===0&&rt.length===0){let _t=Ge();return fe(Se,Ur({matches:Ae,loaderData:{},errors:ze||null},Te?{actionData:Te}:{},_t?{fetchers:new Map(E.fetchers)}:{})),{shortCircuited:!0}}if(!N){rt.forEach(Ot=>{let gn=E.fetchers.get(Ot.key),Mt=kp(void 0,gn?gn.data:void 0);E.fetchers.set(Ot.key,Mt)});let _t=Te||E.actionData;Q(Ur({navigation:ke},_t?Object.keys(_t).length===0?{actionData:null}:{actionData:_t}:{},rt.length>0?{fetchers:new Map(E.fetchers)}:{}))}rt.forEach(_t=>{j.has(_t.key)&&Ie(_t.key),_t.controller&&j.set(_t.key,_t.controller)});let Ue=()=>rt.forEach(_t=>Ie(_t.key));I&&I.signal.addEventListener("abort",Ue);let{results:Je,loaderResults:ht,fetcherResults:gt}=await je(E.matches,Ae,Ve,rt,de);if(de.signal.aborted)return{shortCircuited:!0};I&&I.signal.removeEventListener("abort",Ue),rt.forEach(_t=>j.delete(_t.key));let It=KT(Je);if(It){if(It.idx>=Ve.length){let _t=rt[It.idx-Ve.length].key;B.add(_t)}return await Ee(E,It.result,{replace:pe}),{shortCircuited:!0}}let{loaderData:Et,errors:xt}=UT(E,Ae,Ve,ht,ze,rt,gt,H);H.forEach((_t,Ot)=>{_t.subscribe(gn=>{(gn||_t.done)&&H.delete(Ot)})});let pt=Ge(),Nt=ft(M),Pt=pt||Nt||rt.length>0;return Ur({loaderData:Et,errors:xt},Pt?{fetchers:new Map(E.fetchers)}:{})}function he(de){return E.fetchers.get(de)||xwe}function be(de,Se,Ae,We){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");j.has(de)&&Ie(de);let Ke=s||a,tt=RE(E.location,E.matches,c,u.v7_prependBasename,Ae,Se,We?.relative),pe=If(Ke,tt,c);if(!pe){_e(de,Se,Ga(404,{pathname:tt}));return}let{path:Te,submission:ze,error:ke}=LT(u.v7_normalizeFormMethod,!0,tt,We);if(ke){_e(de,Se,ke);return}let et=_E(pe,Te);if(O=(We&&We.preventScrollReset)===!0,ze&&Ps(ze.formMethod)){ye(de,Se,Te,et,pe,ze);return}F.set(de,{routeId:Se,path:Te}),Ce(de,Se,Te,et,pe,ze)}async function ye(de,Se,Ae,We,Ke,tt){if(De(),F.delete(de),!We.route.action&&!We.route.lazy){let yt=Ga(405,{method:tt.formMethod,pathname:Ae,routeId:Se});_e(de,Se,yt);return}let pe=E.fetchers.get(de),Te=jwe(tt,pe);E.fetchers.set(de,Te),Q({fetchers:new Map(E.fetchers)});let ze=new AbortController,ke=Mp(e.history,Ae,ze.signal,tt);j.set(de,ze);let et=P,mt=await jp("action",ke,We,Ke,i,o,c);if(ke.signal.aborted){j.get(de)===ze&&j.delete(de);return}if(Uf(mt))if(j.delete(de),M>et){let yt=lf(void 0);E.fetchers.set(de,yt),Q({fetchers:new Map(E.fetchers)});return}else{B.add(de);let yt=kp(tt);return E.fetchers.set(de,yt),Q({fetchers:new Map(E.fetchers)}),Ee(E,mt,{submission:tt,isFetchActionRedirect:!0})}if(xm(mt)){_e(de,Se,mt.error);return}if(Gu(mt))throw Ga(400,{type:"defer-action"});let Ve=E.navigation.location||E.location,rt=Mp(e.history,Ve,ze.signal),Ue=s||a,Je=E.navigation.state!=="idle"?If(Ue,E.navigation.location,c):E.matches;Mn(Je,"Didn't find any matches after fetcher action");let ht=++P;A.set(de,ht);let gt=kp(tt,mt.data);E.fetchers.set(de,gt);let[It,Et]=FT(e.history,E,Je,tt,Ve,_,T,D,F,B,Ue,c,{[We.route.id]:mt.data},void 0);Et.filter(yt=>yt.key!==de).forEach(yt=>{let st=yt.key,nt=E.fetchers.get(st),Xt=kp(void 0,nt?nt.data:void 0);E.fetchers.set(st,Xt),j.has(st)&&Ie(st),yt.controller&&j.set(st,yt.controller)}),Q({fetchers:new Map(E.fetchers)});let xt=()=>Et.forEach(yt=>Ie(yt.key));ze.signal.addEventListener("abort",xt);let{results:pt,loaderResults:Nt,fetcherResults:Pt}=await je(E.matches,Je,It,Et,rt);if(ze.signal.aborted)return;ze.signal.removeEventListener("abort",xt),A.delete(de),j.delete(de),Et.forEach(yt=>j.delete(yt.key));let _t=KT(pt);if(_t){if(_t.idx>=It.length){let yt=Et[_t.idx-It.length].key;B.add(yt)}return Ee(E,_t.result)}let{loaderData:Ot,errors:gn}=UT(E,E.matches,It,Nt,void 0,Et,Pt,H);if(E.fetchers.has(de)){let yt=lf(mt.data);E.fetchers.set(de,yt)}let Mt=ft(ht);E.navigation.state==="loading"&&ht>M?(Mn($,"Expected pending action"),I&&I.abort(),fe(E.navigation.location,{matches:Je,loaderData:Ot,errors:gn,fetchers:new Map(E.fetchers)})):(Q(Ur({errors:gn,loaderData:WT(E.loaderData,Ot,Je,gn)},Mt||Et.length>0?{fetchers:new Map(E.fetchers)}:{})),_=!1)}async function Ce(de,Se,Ae,We,Ke,tt){let pe=E.fetchers.get(de),Te=kp(tt,pe?pe.data:void 0);E.fetchers.set(de,Te),Q({fetchers:new Map(E.fetchers)});let ze=new AbortController,ke=Mp(e.history,Ae,ze.signal);j.set(de,ze);let et=P,mt=await jp("loader",ke,We,Ke,i,o,c);if(Gu(mt)&&(mt=await Q7(mt,ke.signal,!0)||mt),j.get(de)===ze&&j.delete(de),ke.signal.aborted)return;if(Uf(mt))if(M>et){let rt=lf(void 0);E.fetchers.set(de,rt),Q({fetchers:new Map(E.fetchers)});return}else{B.add(de),await Ee(E,mt);return}if(xm(mt)){let rt=Rf(E.matches,Se);E.fetchers.delete(de),Q({fetchers:new Map(E.fetchers),errors:{[rt.route.id]:mt.error}});return}Mn(!Gu(mt),"Unhandled fetcher deferred data");let Ve=lf(mt.data);E.fetchers.set(de,Ve),Q({fetchers:new Map(E.fetchers)})}async function Ee(de,Se,Ae){let{submission:We,replace:Ke,isFetchActionRedirect:tt}=Ae===void 0?{}:Ae;Se.revalidate&&(_=!0);let pe=Zm(de.location,Se.location,Ur({_isRedirect:!0},tt?{_isFetchActionRedirect:!0}:{}));if(Mn(pe,"Expected a location on the redirect navigation"),n){let ke=!1;if(Se.reloadDocument)ke=!0;else if(Y7.test(Se.location)){const et=e.history.createURL(Se.location);ke=et.origin!==t.location.origin||Fh(et.pathname,c)==null}if(ke){Ke?t.location.replace(Se.location):t.location.assign(Se.location);return}}I=null;let Te=Ke===!0?Co.Replace:Co.Push,ze=We||YT(de.navigation);if(bwe.has(Se.status)&&ze&&Ps(ze.formMethod))await ie(Te,pe,{submission:Ur({},ze,{formAction:Se.location}),preventScrollReset:O});else if(tt)await ie(Te,pe,{overrideNavigation:I0(pe),fetcherSubmission:ze,preventScrollReset:O});else{let ke=I0(pe,ze);await ie(Te,pe,{overrideNavigation:ke,preventScrollReset:O})}}async function je(de,Se,Ae,We,Ke){let tt=await Promise.all([...Ae.map(ze=>jp("loader",Ke,ze,Se,i,o,c)),...We.map(ze=>ze.matches&&ze.match&&ze.controller?jp("loader",Mp(e.history,ze.path,ze.controller.signal),ze.match,ze.matches,i,o,c):{type:ho.error,error:Ga(404,{pathname:ze.path})})]),pe=tt.slice(0,Ae.length),Te=tt.slice(Ae.length);return await Promise.all([GT(de,Ae,pe,pe.map(()=>Ke.signal),!1,E.loaderData),GT(de,We.map(ze=>ze.match),Te,We.map(ze=>ze.controller?ze.controller.signal:null),!0)]),{results:tt,loaderResults:pe,fetcherResults:Te}}function De(){_=!0,T.push(...k()),F.forEach((de,Se)=>{j.has(Se)&&(D.push(Se),Ie(Se))})}function _e(de,Se,Ae){let We=Rf(E.matches,Se);Me(de),Q({errors:{[We.route.id]:Ae},fetchers:new Map(E.fetchers)})}function Me(de){let Se=E.fetchers.get(de);j.has(de)&&!(Se&&Se.state==="loading"&&A.has(de))&&Ie(de),F.delete(de),A.delete(de),B.delete(de),E.fetchers.delete(de)}function Ie(de){let Se=j.get(de);Mn(Se,"Expected fetch controller: "+de),Se.abort(),j.delete(de)}function Fe(de){for(let Se of de){let Ae=he(Se),We=lf(Ae.data);E.fetchers.set(Se,We)}}function Ge(){let de=[],Se=!1;for(let Ae of B){let We=E.fetchers.get(Ae);Mn(We,"Expected fetcher: "+Ae),We.state==="loading"&&(B.delete(Ae),de.push(Ae),Se=!0)}return Fe(de),Se}function ft(de){let Se=[];for(let[Ae,We]of A)if(We0}function it(de,Se){let Ae=E.blockers.get(de)||Pp;return W.get(de)!==Se&&W.set(de,Se),Ae}function qe(de){E.blockers.delete(de),W.delete(de)}function at(de,Se){let Ae=E.blockers.get(de)||Pp;Mn(Ae.state==="unblocked"&&Se.state==="blocked"||Ae.state==="blocked"&&Se.state==="blocked"||Ae.state==="blocked"&&Se.state==="proceeding"||Ae.state==="blocked"&&Se.state==="unblocked"||Ae.state==="proceeding"&&Se.state==="unblocked","Invalid blocker state transition: "+Ae.state+" -> "+Se.state);let We=new Map(E.blockers);We.set(de,Se),Q({blockers:We})}function U(de){let{currentLocation:Se,nextLocation:Ae,historyAction:We}=de;if(W.size===0)return;W.size>1&&ah(!1,"A router only supports one blocker at a time");let Ke=Array.from(W.entries()),[tt,pe]=Ke[Ke.length-1],Te=E.blockers.get(tt);if(!(Te&&Te.state==="proceeding")&&pe({currentLocation:Se,nextLocation:Ae,historyAction:We}))return tt}function k(de){let Se=[];return H.forEach((Ae,We)=>{(!de||de(We))&&(Ae.cancel(),Se.push(We),H.delete(We))}),Se}function L(de,Se,Ae){if(p=de,v=Se,g=Ae||null,!y&&E.navigation===WS){y=!0;let We=$e(E.location,E.matches);We!=null&&Q({restoreScrollPosition:We})}return()=>{p=null,v=null,g=null}}function X(de,Se){return g&&g(de,Se.map(We=>Twe(We,E.loaderData)))||de.key}function ee(de,Se){if(p&&v){let Ae=X(de,Se);p[Ae]=v()}}function $e(de,Se){if(p){let Ae=X(de,Se),We=p[Ae];if(typeof We=="number")return We}return null}function we(de){i={},s=IE(de,o,void 0,i)}return C={get basename(){return c},get state(){return E},get routes(){return a},initialize:K,subscribe:re,enableScrollRestoration:L,navigate:se,fetch:be,revalidate:oe,createHref:de=>e.history.createHref(de),encodeLocation:de=>e.history.encodeLocation(de),getFetcher:he,deleteFetcher:Me,dispose:G,getBlocker:it,deleteBlocker:qe,_internalFetchControllers:j,_internalActiveDeferreds:H,_internalSetRoutes:we},C}function Cwe(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function RE(e,t,n,r,o,i,a){let s,c;if(i!=null&&a!=="path"){s=[];for(let d of t)if(s.push(d),d.route.id===i){c=d;break}}else s=t,c=t[t.length-1];let u=nx(o||".",Lg(s).map(d=>d.pathnameBase),Fh(e.pathname,n)||e.pathname,a==="path");return o==null&&(u.search=e.search,u.hash=e.hash),(o==null||o===""||o===".")&&c&&c.route.index&&!I3(u.search)&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(u.pathname=u.pathname==="/"?n:Jl([n,u.pathname])),md(u)}function LT(e,t,n,r){if(!r||!Cwe(r))return{path:n};if(r.formMethod&&!_we(r.formMethod))return{path:n,error:Ga(405,{method:r.formMethod})};let o=()=>({path:n,error:Ga(400,{type:"invalid-body"})}),i=r.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),s=X7(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Ps(a))return o();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((g,v)=>{let[y,S]=v;return""+g+y+"="+S+` `},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!Ps(a))return o();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return o()}}}Mn(typeof FormData=="function","FormData is not available in this environment");let c,u;if(r.formData)c=NE(r.formData),u=r.formData;else if(r.body instanceof FormData)c=NE(r.body),u=r.body;else if(r.body instanceof URLSearchParams)c=r.body,u=HT(c);else if(r.body==null)c=new URLSearchParams,u=new FormData;else try{c=new URLSearchParams(r.body),u=HT(c)}catch{return o()}let d={formMethod:a,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(Ps(d.formMethod))return{path:n,submission:d};let f=yc(n);return t&&f.search&&I3(f.search)&&c.append("index",""),f.search="?"+c,{path:md(f),submission:d}}function Ewe(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function FT(e,t,n,r,o,i,a,s,c,u,d,f,p,g){let v=g?Object.values(g)[0]:p?Object.values(p)[0]:void 0,y=e.createURL(t.location),S=e.createURL(o),b=g?Object.keys(g)[0]:void 0,C=Ewe(n,b).filter(($,O)=>{if($.route.lazy)return!0;if($.route.loader==null)return!1;if($we(t.loaderData,t.matches[O],$)||a.some(_=>_===$.route.id))return!0;let I=t.matches[O],N=$;return zT($,Ur({currentUrl:y,currentParams:I.params,nextUrl:S,nextParams:N.params},r,{actionResult:v,defaultShouldRevalidate:i||y.pathname+y.search===S.pathname+S.search||y.search!==S.search||q7(I,N)}))}),E=[];return c.forEach(($,O)=>{if(!n.some(D=>D.route.id===$.routeId))return;let I=If(d,$.path,f);if(!I){E.push({key:O,routeId:$.routeId,path:$.path,matches:null,match:null,controller:null});return}let N=t.fetchers.get(O),_=_E(I,$.path),T=!1;u.has(O)?T=!1:s.includes(O)?T=!0:N&&N.state!=="idle"&&N.data===void 0?T=i:T=zT(_,Ur({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:S,nextParams:n[n.length-1].params},r,{actionResult:v,defaultShouldRevalidate:i})),T&&E.push({key:O,routeId:$.routeId,path:$.path,matches:I,match:_,controller:new AbortController})}),[C,E]}function $we(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function q7(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function zT(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function BT(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];Mn(o,"No route found in manifest");let i={};for(let a in r){let c=o[a]!==void 0&&a!=="hasErrorBoundary";ah(!c,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!c&&!Yxe.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,Ur({},t(o),{lazy:void 0}))}async function jp(e,t,n,r,o,i,a,s){s===void 0&&(s={});let c,u,d,f=v=>{let y,S=new Promise((b,x)=>y=x);return d=()=>y(),t.signal.addEventListener("abort",d),Promise.race([v({request:t,params:n.params,context:s.requestContext}),S])};try{let v=n.route[e];if(n.route.lazy)if(v)u=(await Promise.all([f(v),BT(n.route,i,o)]))[0];else if(await BT(n.route,i,o),v=n.route[e],v)u=await f(v);else if(e==="action"){let y=new URL(t.url),S=y.pathname+y.search;throw Ga(405,{method:t.method,pathname:S,routeId:n.route.id})}else return{type:ho.data,data:void 0};else if(v)u=await f(v);else{let y=new URL(t.url),S=y.pathname+y.search;throw Ga(404,{pathname:S})}Mn(u!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(v){c=ho.error,u=v}finally{d&&t.signal.removeEventListener("abort",d)}if(Nwe(u)){let v=u.status;if(ywe.has(v)){let b=u.headers.get("Location");if(Mn(b,"Redirects returned/thrown from loaders/actions must have a Location header"),!Y7.test(b))b=RE(new URL(t.url),r.slice(0,r.indexOf(n)+1),a,!0,b);else if(!s.isStaticRequest){let x=new URL(t.url),C=b.startsWith("//")?new URL(x.protocol+b):new URL(b),E=Fh(C.pathname,a)!=null;C.origin===x.origin&&E&&(b=C.pathname+C.search+C.hash)}if(s.isStaticRequest)throw u.headers.set("Location",b),u;return{type:ho.redirect,status:v,location:b,revalidate:u.headers.get("X-Remix-Revalidate")!==null,reloadDocument:u.headers.get("X-Remix-Reload-Document")!==null}}if(s.isRouteRequest)throw{type:c===ho.error?ho.error:ho.data,response:u};let y,S=u.headers.get("Content-Type");return S&&/\bapplication\/json\b/.test(S)?y=await u.json():y=await u.text(),c===ho.error?{type:c,error:new O3(v,u.statusText,y),headers:u.headers}:{type:ho.data,data:y,statusCode:u.status,headers:u.headers}}if(c===ho.error)return{type:c,error:u};if(Rwe(u)){var p,g;return{type:ho.deferred,deferredData:u,statusCode:(p=u.init)==null?void 0:p.status,headers:((g=u.init)==null?void 0:g.headers)&&new Headers(u.init.headers)}}return{type:ho.data,data:u}}function Mp(e,t,n,r){let o=e.createURL(X7(t)).toString(),i={signal:n};if(r&&Ps(r.formMethod)){let{formMethod:a,formEncType:s}=r;i.method=a.toUpperCase(),s==="application/json"?(i.headers=new Headers({"Content-Type":s}),i.body=JSON.stringify(r.json)):s==="text/plain"?i.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?i.body=NE(r.formData):i.body=r.formData}return new Request(o,i)}function NE(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function HT(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Owe(e,t,n,r,o){let i={},a=null,s,c=!1,u={};return n.forEach((d,f)=>{let p=t[f].route.id;if(Mn(!Uf(d),"Cannot handle redirect results in processLoaderData"),xm(d)){let g=Rf(e,p),v=d.error;r&&(v=Object.values(r)[0],r=void 0),a=a||{},a[g.route.id]==null&&(a[g.route.id]=v),i[p]=void 0,c||(c=!0,s=K7(d.error)?d.error.status:500),d.headers&&(u[p]=d.headers)}else Gu(d)?(o.set(p,d.deferredData),i[p]=d.deferredData.data):i[p]=d.data,d.statusCode!=null&&d.statusCode!==200&&!c&&(s=d.statusCode),d.headers&&(u[p]=d.headers)}),r&&(a=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:a,statusCode:s||200,loaderHeaders:u}}function UT(e,t,n,r,o,i,a,s){let{loaderData:c,errors:u}=Owe(t,n,r,o,s);for(let d=0;dr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function VT(e){let t=e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Ga(e,t){let{pathname:n,routeId:r,method:o,type:i}=t===void 0?{}:t,a="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(a="Bad Request",o&&n&&r?s="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?s="defer() is not supported in actions":i==="invalid-body"&&(s="Unable to encode submission body")):e===403?(a="Forbidden",s='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",s='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",o&&n&&r?s="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(s='Invalid request method "'+o.toUpperCase()+'"')),new O3(e||500,a,new Error(s),!0)}function KT(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Uf(n))return{result:n,idx:t}}}function X7(e){let t=typeof e=="string"?yc(e):e;return md(Ur({},t,{hash:""}))}function Iwe(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Gu(e){return e.type===ho.deferred}function xm(e){return e.type===ho.error}function Uf(e){return(e&&e.type)===ho.redirect}function Rwe(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Nwe(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function _we(e){return vwe.has(e.toLowerCase())}function Ps(e){return mwe.has(e.toLowerCase())}async function GT(e,t,n,r,o,i){for(let a=0;af.route.id===c.route.id),d=u!=null&&!q7(u,c)&&(i&&i[c.route.id])!==void 0;if(Gu(s)&&(o||d)){let f=r[a];Mn(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await Q7(s,f,o).then(p=>{p&&(n[a]=p||n[a])})}}}async function Q7(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:ho.data,data:e.deferredData.unwrappedData}}catch(o){return{type:ho.error,error:o}}return{type:ho.data,data:e.deferredData.data}}}function I3(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Twe(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}function _E(e,t){let n=typeof t=="string"?yc(t).search:t.search;if(e[e.length-1].route.index&&I3(n||""))return e[e.length-1];let r=Lg(e);return r[r.length-1]}function YT(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function I0(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Pwe(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function kp(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t," _hasFetcherDoneAnything ":!0}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t," _hasFetcherDoneAnything ":!0}}function jwe(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0," _hasFetcherDoneAnything ":!0}}function lf(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e," _hasFetcherDoneAnything ":!0}}/** * React Router v6.15.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function E1(){return E1=Object.assign?Object.assign.bind():function(e){for(var t=1;tc.pathnameBase)),a=l.useRef(!1);return e9(()=>{a.current=!0}),l.useCallback(function(c,u){if(u===void 0&&(u={}),!a.current)return;if(typeof c=="number"){n.go(c);return}let d=nx(c,JSON.parse(i),o,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Jl([t,d.pathname])),(u.replace?n.replace:n.push)(d,u.state,u)},[t,n,i,o,e])}const Dwe=l.createContext(null);function Awe(e){let t=l.useContext(xl).outlet;return t&&l.createElement(Dwe.Provider,{value:e},t)}function ix(){let{matches:e}=l.useContext(xl),t=e[e.length-1];return t?t.params:{}}function t9(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=l.useContext(xl),{pathname:o}=Xs(),i=JSON.stringify(Lg(r).map(a=>a.pathnameBase));return l.useMemo(()=>nx(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function Lwe(e,t,n){Bh()||Mn(!1);let{navigator:r}=l.useContext(zh),{matches:o}=l.useContext(xl),i=o[o.length-1],a=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let c=Xs(),u;if(t){var d;let y=typeof t=="string"?yc(t):t;s==="/"||(d=y.pathname)!=null&&d.startsWith(s)||Mn(!1),u=y}else u=c;let f=u.pathname||"/",p=s==="/"?f:f.slice(s.length)||"/",g=If(e,{pathname:p}),v=Uwe(g&&g.map(y=>Object.assign({},y,{params:Object.assign({},a,y.params),pathname:Jl([s,r.encodeLocation?r.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:Jl([s,r.encodeLocation?r.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),o,n);return t&&v?l.createElement(ox.Provider,{value:{location:E1({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Co.Pop}},v):v}function Fwe(){let e=Gwe(),t=K7(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return l.createElement(l.Fragment,null,l.createElement("h2",null,"Unexpected Application Error!"),l.createElement("h3",{style:{fontStyle:"italic"}},t),n?l.createElement("pre",{style:o},n):null,i)}const zwe=l.createElement(Fwe,null);class Bwe extends l.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?l.createElement(xl.Provider,{value:this.props.routeContext},l.createElement(J7.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Hwe(e){let{routeContext:t,match:n,children:r}=e,o=l.useContext(rx);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),l.createElement(xl.Provider,{value:t},r)}function Uwe(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let i=e,a=(r=n)==null?void 0:r.errors;if(a!=null){let s=i.findIndex(c=>c.route.id&&a?.[c.route.id]);s>=0||Mn(!1),i=i.slice(0,Math.min(i.length,s+1))}return i.reduceRight((s,c,u)=>{let d=c.route.id?a?.[c.route.id]:null,f=null;n&&(f=c.route.errorElement||zwe);let p=t.concat(i.slice(0,u+1)),g=()=>{let v;return d?v=f:c.route.Component?v=l.createElement(c.route.Component,null):c.route.element?v=c.route.element:v=s,l.createElement(Hwe,{match:c,routeContext:{outlet:s,matches:p,isDataRoute:n!=null},children:v})};return n&&(c.route.ErrorBoundary||c.route.errorElement||u===0)?l.createElement(Bwe,{location:n.location,revalidation:n.revalidation,component:f,error:d,children:g(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):g()},null)}var n9=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(n9||{}),$1=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}($1||{});function Wwe(e){let t=l.useContext(rx);return t||Mn(!1),t}function Vwe(e){let t=l.useContext(Z7);return t||Mn(!1),t}function Kwe(e){let t=l.useContext(xl);return t||Mn(!1),t}function r9(e){let t=Kwe(),n=t.matches[t.matches.length-1];return n.route.id||Mn(!1),n.route.id}function Gwe(){var e;let t=l.useContext(J7),n=Vwe($1.UseRouteError),r=r9($1.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function Ywe(){let{router:e}=Wwe(n9.UseNavigateStable),t=r9($1.UseNavigateStable),n=l.useRef(!1);return e9(()=>{n.current=!0}),l.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,E1({fromRouteId:t},i)))},[e,t])}const qwe="startTransition",qT=lg[qwe];function Xwe(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=l.useState(n.state),{v7_startTransition:a}=r||{},s=l.useCallback(f=>{a&&qT?qT(()=>i(f)):i(f)},[i,a]);l.useLayoutEffect(()=>n.subscribe(s),[n,s]);let c=l.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:f=>n.navigate(f),push:(f,p,g)=>n.navigate(f,{state:p,preventScrollReset:g?.preventScrollReset}),replace:(f,p,g)=>n.navigate(f,{replace:!0,state:p,preventScrollReset:g?.preventScrollReset})}),[n]),u=n.basename||"/",d=l.useMemo(()=>({router:n,navigator:c,static:!1,basename:u}),[n,c,u]);return l.createElement(l.Fragment,null,l.createElement(rx.Provider,{value:d},l.createElement(Z7.Provider,{value:o},l.createElement(eSe,{basename:u,location:o.location,navigationType:o.historyAction,navigator:c},o.initialized?l.createElement(Qwe,{routes:n.routes,state:o}):t))),null)}function Qwe(e){let{routes:t,state:n}=e;return Lwe(t,void 0,n)}function Zwe(e){let{to:t,replace:n,state:r,relative:o}=e;Bh()||Mn(!1);let{matches:i}=l.useContext(xl),{pathname:a}=Xs(),s=bi(),c=nx(t,Lg(i).map(d=>d.pathnameBase),a,o==="path"),u=JSON.stringify(c);return l.useEffect(()=>s(JSON.parse(u),{replace:n,state:r,relative:o}),[s,u,o,n,r]),null}function Jwe(e){return Awe(e.context)}function eSe(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Co.Pop,navigator:i,static:a=!1}=e;Bh()&&Mn(!1);let s=t.replace(/^\/*/,"/"),c=l.useMemo(()=>({basename:s,navigator:i,static:a}),[s,i,a]);typeof r=="string"&&(r=yc(r));let{pathname:u="/",search:d="",hash:f="",state:p=null,key:g="default"}=r,v=l.useMemo(()=>{let y=Fh(u,s);return y==null?null:{location:{pathname:y,search:d,hash:f,state:p,key:g},navigationType:o}},[s,u,d,f,p,g,o]);return v==null?null:l.createElement(zh.Provider,{value:c},l.createElement(ox.Provider,{children:n,value:v}))}new Promise(()=>{});function tSe(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:l.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:l.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.15.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Jm(){return Jm=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function rSe(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function oSe(e,t){return e.button===0&&(!t||t==="_self")&&!rSe(e)}const iSe=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function aSe(e,t){return Swe({basename:t?.basename,future:Jm({},t?.future,{v7_prependBasename:!0}),history:Vxe({window:t?.window}),hydrationData:t?.hydrationData||sSe(),routes:e,mapRouteProperties:tSe}).initialize()}function sSe(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Jm({},t,{errors:lSe(t.errors)})),t}function lSe(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new O3(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let a=new i(o.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let i=new Error(o.message);i.stack="",n[r]=i}}else n[r]=o;return n}const cSe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",uSe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,du=l.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:s,target:c,to:u,preventScrollReset:d}=t,f=nSe(t,iSe),{basename:p}=l.useContext(zh),g,v=!1;if(typeof u=="string"&&uSe.test(u)&&(g=u,cSe))try{let x=new URL(window.location.href),C=u.startsWith("//")?new URL(x.protocol+u):new URL(u),E=Fh(C.pathname,p);C.origin===x.origin&&E!=null?u=E+C.search+C.hash:v=!0}catch{}let y=Mwe(u,{relative:o}),S=dSe(u,{replace:a,state:s,target:c,preventScrollReset:d,relative:o});function b(x){r&&r(x),x.defaultPrevented||S(x)}return l.createElement("a",Jm({},f,{href:g||y,onClick:v||i?r:b,ref:n,target:c}))});var XT;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(XT||(XT={}));var QT;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(QT||(QT={}));function dSe(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a}=t===void 0?{}:t,s=bi(),c=Xs(),u=t9(e,{relative:a});return l.useCallback(d=>{if(oSe(d,n)){d.preventDefault();let f=r!==void 0?r:md(c)===md(u);s(e,{replace:f,state:o,preventScrollReset:i,relative:a})}},[c,s,u,r,o,n,e,i,a])}function fSe(){const e=bi();return h.jsx(a7,{status:"404",title:"404",subTitle:"Sorry, the page you visited does not exist.",extra:h.jsx(ut,{type:"primary",onClick:()=>e(Kt.DASHBOARD_ROUTE),children:"Back Home"})})}const VS="Do MMMM YYYY @ HH:mm",hSe="YYYY-MM-DD HH:mm",Pc={productName:"Netmaker",logoDarkUrl:"/logo-dark.png",logoLightUrl:"/logo-light.png",logoDarkSmallUrl:"/logo-small-dark.png",logoLightSmallUrl:"/logo-small-light.png",logoAltText:"Netmaker logo",favicon:"/favicon.ico",primaryColor:"#624AF4"},pSe=`https://github.com/gravitl/netmaker-ui-2/issues/new?title=${encodeURIComponent("UI Bug Report")}&body=:body`,o9="network-graph-sigma-contaner",mSe=500,gSe=300,vSe=1e4,ZT=e=>{let t;const n=new Set,r=(c,u)=>{const d=typeof c=="function"?c(t):c;if(!Object.is(d,t)){const f=t;t=u??typeof d!="object"?d:Object.assign({},t,d),n.forEach(p=>p(t,f))}},o=()=>t,s={setState:r,getState:o,subscribe:c=>(n.add(c),()=>n.delete(c)),destroy:()=>{n.clear()}};return t=e(r,o,s),s},ySe=e=>e?ZT(e):ZT;var i9={exports:{}},a9={},s9={exports:{}},l9={};/** * @license React * use-sync-external-store-shim.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 sh=l;function bSe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xSe=typeof Object.is=="function"?Object.is:bSe,wSe=sh.useState,SSe=sh.useEffect,CSe=sh.useLayoutEffect,ESe=sh.useDebugValue;function $Se(e,t){var n=t(),r=wSe({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return CSe(function(){o.value=n,o.getSnapshot=t,KS(o)&&i({inst:o})},[e,n,t]),SSe(function(){return KS(o)&&i({inst:o}),e(function(){KS(o)&&i({inst:o})})},[e]),ESe(n),n}function KS(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!xSe(e,n)}catch{return!0}}function OSe(e,t){return t()}var ISe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?OSe:$Se;l9.useSyncExternalStore=sh.useSyncExternalStore!==void 0?sh.useSyncExternalStore:ISe;s9.exports=l9;var RSe=s9.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 ax=l,NSe=RSe;function _Se(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var TSe=typeof Object.is=="function"?Object.is:_Se,PSe=NSe.useSyncExternalStore,jSe=ax.useRef,MSe=ax.useEffect,kSe=ax.useMemo,DSe=ax.useDebugValue;a9.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=jSe(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=kSe(function(){function c(g){if(!u){if(u=!0,d=g,g=r(g),o!==void 0&&a.hasValue){var v=a.value;if(o(v,g))return f=v}return f=g}if(v=f,TSe(d,g))return v;var y=r(g);return o!==void 0&&o(v,y)?v:(d=g,f=y)}var u=!1,d,f,p=n===void 0?null:n;return[function(){return c(t())},p===null?void 0:function(){return c(p())}]},[t,n,r,o]);var s=PSe(e,i[0],i[1]);return MSe(function(){a.hasValue=!0,a.value=s},[s]),DSe(s),s};i9.exports=a9;var ASe=i9.exports;const LSe=Vo(ASe),{useSyncExternalStoreWithSelector:FSe}=LSe;function zSe(e,t=e.getState,n){const r=FSe(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return l.useDebugValue(r),r}const JT=e=>{const t=typeof e=="function"?ySe(e):e,n=(r,o)=>zSe(t,r,o);return Object.assign(n,t),n},BSe=e=>e?JT(e):JT,TE=new Map,R0=e=>{const t=TE.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,r])=>[n,r.getState()])):{}},HSe=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const r=TE.get(n.name);if(r)return{type:"tracked",store:e,...r};const o={connection:t.connect(n),stores:{}};return TE.set(n.name,o),{type:"tracked",store:e,...o}},USe=(e,t={})=>(n,r,o)=>{const{enabled:i,anonymousActionType:a,store:s,...c}=t;let u;try{u=(i??!1)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!u)return e(n,r,o);const{connection:d,...f}=HSe(s,u,c);let p=!0;o.setState=(y,S,b)=>{const x=n(y,S);if(!p)return x;const C=b===void 0?{type:a||"anonymous"}:typeof b=="string"?{type:b}:b;return s===void 0?(d?.send(C,r()),x):(d?.send({...C,type:`${s}/${C.type}`},{...R0(c.name),[s]:o.getState()}),x)};const g=(...y)=>{const S=p;p=!1,n(...y),p=S},v=e(o.setState,r,o);if(f.type==="untracked"?d?.init(v):(f.stores[f.store]=o,d?.init(Object.fromEntries(Object.entries(f.stores).map(([y,S])=>[y,y===f.store?v:S.getState()])))),o.dispatchFromDevtools&&typeof o.dispatch=="function"){let y=!1;const S=o.dispatch;o.dispatch=(...b)=>{S(...b)}}return d.subscribe(y=>{var S;switch(y.type){case"ACTION":if(typeof y.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return GS(y.payload,b=>{if(b.type==="__setState"){if(s===void 0){g(b.state);return}Object.keys(b.state).length!==1&&console.error(` [zustand devtools middleware] Unsupported __setState action format. When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(), and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } } `);const x=b.state[s];if(x==null)return;JSON.stringify(o.getState())!==JSON.stringify(x)&&g(x);return}o.dispatchFromDevtools&&typeof o.dispatch=="function"&&o.dispatch(b)});case"DISPATCH":switch(y.payload.type){case"RESET":return g(v),s===void 0?d?.init(o.getState()):d?.init(R0(c.name));case"COMMIT":if(s===void 0){d?.init(o.getState());return}return d?.init(R0(c.name));case"ROLLBACK":return GS(y.state,b=>{if(s===void 0){g(b),d?.init(o.getState());return}g(b[s]),d?.init(R0(c.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return GS(y.state,b=>{if(s===void 0){g(b);return}JSON.stringify(o.getState())!==JSON.stringify(b[s])&&g(b[s])});case"IMPORT_STATE":{const{nextLiftedState:b}=y.payload,x=(S=b.computedStates.slice(-1)[0])==null?void 0:S.state;if(!x)return;g(s===void 0?x:x[s]),d?.send(null,b);return}case"PAUSE_RECORDING":return p=!p}return}}),v},WSe=USe,GS=(e,t)=>{let n;try{n=JSON.parse(e)}catch(r){console.error("[zustand devtools middleware] Could not parse the received json",r)}n!==void 0&&t(n)};function VSe(e,t){let n;try{n=e()}catch{return}return{getItem:o=>{var i;const a=c=>c===null?null:JSON.parse(c,t?.reviver),s=(i=n.getItem(o))!=null?i:null;return s instanceof Promise?s.then(a):a(s)},setItem:(o,i)=>n.setItem(o,JSON.stringify(i,t?.replacer)),removeItem:o=>n.removeItem(o)}}const eg=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return eg(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return eg(r)(n)}}}},KSe=(e,t)=>(n,r,o)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:S=>S,version:0,merge:(S,b)=>({...b,...S}),...t},a=!1;const s=new Set,c=new Set;let u;try{u=i.getStorage()}catch{}if(!u)return e((...S)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...S)},r,o);const d=eg(i.serialize),f=()=>{const S=i.partialize({...r()});let b;const x=d({state:S,version:i.version}).then(C=>u.setItem(i.name,C)).catch(C=>{b=C});if(b)throw b;return x},p=o.setState;o.setState=(S,b)=>{p(S,b),f()};const g=e((...S)=>{n(...S),f()},r,o);let v;const y=()=>{var S;if(!u)return;a=!1,s.forEach(x=>x(r()));const b=((S=i.onRehydrateStorage)==null?void 0:S.call(i,r()))||void 0;return eg(u.getItem.bind(u))(i.name).then(x=>{if(x)return i.deserialize(x)}).then(x=>{if(x)if(typeof x.version=="number"&&x.version!==i.version){if(i.migrate)return i.migrate(x.state,x.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return x.state}).then(x=>{var C;return v=i.merge(x,(C=r())!=null?C:g),n(v,!0),f()}).then(()=>{b?.(v,void 0),a=!0,c.forEach(x=>x(v))}).catch(x=>{b?.(void 0,x)})};return o.persist={setOptions:S=>{i={...i,...S},S.getStorage&&(u=S.getStorage())},clearStorage:()=>{u?.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>y(),hasHydrated:()=>a,onHydrate:S=>(s.add(S),()=>{s.delete(S)}),onFinishHydration:S=>(c.add(S),()=>{c.delete(S)})},y(),v||g},GSe=(e,t)=>(n,r,o)=>{let i={storage:VSe(()=>localStorage),partialize:y=>y,version:0,merge:(y,S)=>({...S,...y}),...t},a=!1;const s=new Set,c=new Set;let u=i.storage;if(!u)return e((...y)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...y)},r,o);const d=()=>{const y=i.partialize({...r()});return u.setItem(i.name,{state:y,version:i.version})},f=o.setState;o.setState=(y,S)=>{f(y,S),d()};const p=e((...y)=>{n(...y),d()},r,o);let g;const v=()=>{var y,S;if(!u)return;a=!1,s.forEach(x=>{var C;return x((C=r())!=null?C:p)});const b=((S=i.onRehydrateStorage)==null?void 0:S.call(i,(y=r())!=null?y:p))||void 0;return eg(u.getItem.bind(u))(i.name).then(x=>{if(x)if(typeof x.version=="number"&&x.version!==i.version){if(i.migrate)return i.migrate(x.state,x.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return x.state}).then(x=>{var C;return g=i.merge(x,(C=r())!=null?C:p),n(g,!0),d()}).then(()=>{b?.(g,void 0),g=r(),a=!0,c.forEach(x=>x(g))}).catch(x=>{b?.(void 0,x)})};return o.persist={setOptions:y=>{i={...i,...y},y.storage&&(u=y.storage)},clearStorage:()=>{u?.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>v(),hasHydrated:()=>a,onHydrate:y=>(s.add(y),()=>{s.delete(y)}),onFinishHydration:y=>(c.add(y),()=>{c.delete(y)})},i.skipHydration||v(),g||p},YSe=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?KSe(e,t):GSe(e,t),qSe=YSe;class qt{static NODES="/nodes";static EXTERNAL_CLIENTS="/extclients";static HOSTS="/hosts";static NETWORKS="/networks";static DNS="/dns";static LOGIN="/users/adm/authenticate";static LOGIN_OAUTH="/oauth/login";static SERVER_STATUS="/server/status";static SERVER_CONFIG="/server/getconfig";static ENROLLMENT_KEYS="/v1/enrollment-keys";static USERS_ADMIN="/users/adm";static USERS="/users";static USER_GROUPS="/usergroups";static METRICS="/metrics";static METRICS_EXTERNAL_CLIENT="/metrics-ext"}const N0="0.21.0";function XSe(){return Vt.get(qt.SERVER_CONFIG)}function QSe(){return Vt.get(qt.SERVER_STATUS)}function ZSe(){return N0.charAt(0)==="v"||N0.charAt(0)==="V"?N0:`v${N0}`}const R3={getServerConfig:XSe,getServerStatus:QSe,getUiVersion:ZSe},JSe=e=>({currentTheme:"dark",logoUrl:"",serverName:"",serverStatus:{status:null,isHealthy:!0},serverConfig:null,setCurrentTheme:t=>e(()=>({currentTheme:t})),setLogoUrl:t=>e(()=>({logoUrl:t})),setServerName:t=>e(()=>({serverName:t})),setServerStatus:t=>e(()=>({serverStatus:{status:t,isHealthy:t.broker_connected&&t.db_connected&&t.healthyNetwork&&!t.license_error}})),fetchServerConfig:async()=>{try{const t=(await R3.getServerConfig()).data;return e(()=>({serverConfig:t})),Promise.resolve(!0)}catch(t){return console.error(t),Promise.reject(!1)}}}),eCe={createAppSlice:JSe},N3={id:"",verbosity:0,firewallinuse:"",version:"",name:"",os:"",debug:!1,isstatic:!1,listenport:0,localrange:"",mtu:0,interfaces:[],defaultinterface:"",endpointip:"",publickey:"",macaddress:"",nodes:[],isdefault:!1,nat_type:"public"},_3={id:"",hostid:"",address:"",address6:"",localaddress:"",persistentkeepalive:0,interface:"",macaddress:"",lastmodified:0,expdatetime:0,lastcheckin:0,lastpeerupdate:0,network:"",networkrange:"",networkrange6:"",pendingdelete:!1,isegressgateway:!1,isingressgateway:!1,ingressdns:"",egressgatewayranges:[],egressgatewaynatenabled:!1,failovernode:"",dnson:!1,islocal:!1,server:"",internetgateway:"",defaultacl:"",connected:!1,failover:!1,relayedby:"",relaynodes:[]};function tCe(e){const r=Date.now()/1e3;return e==null?"unknown":r-e>=1800?"error":r-e>=300?"warning":"healthy"}function io(e){return tCe(e.lastcheckin)}function Hr(e,t){const n=t[e.hostid];return{...e,...n||N3}}function Ql(e){return e.relaynodes?e.relaynodes.length>0:!1}function c9(e){return e.nat_type!==void 0&&e.nat_type!==null&&e.nat_type!==""&&e.nat_type!=="public"}const Nf=2,wm=1,nCe=0;var rCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};const oCe=rCe;var iCe=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:oCe}))};const aCe=l.forwardRef(iCe);var sCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"};const lCe=sCe;var cCe=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:lCe}))};const u9=l.forwardRef(cCe);var uCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M112 476h160v72H112zm320 0h160v72H432zm320 0h160v72H752z"}}]},name:"dash",theme:"outlined"};const dCe=uCe;var fCe=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:dCe}))};const jc=l.forwardRef(fCe);var hCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"database",theme:"outlined"};const pCe=hCe;var mCe=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:pCe}))};const gCe=l.forwardRef(mCe);var vCe={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:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"};const yCe=vCe;var bCe=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:yCe}))};const xCe=l.forwardRef(bCe);var wCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"};const SCe=wCe;var CCe=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:SCe}))};const PE=l.forwardRef(CCe);var ECe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M608 112c-167.9 0-304 136.1-304 304 0 70.3 23.9 135 63.9 186.5l-41.1 41.1-62.3-62.3a8.15 8.15 0 00-11.4 0l-39.8 39.8a8.15 8.15 0 000 11.4l62.3 62.3-44.9 44.9-62.3-62.3a8.15 8.15 0 00-11.4 0l-39.8 39.8a8.15 8.15 0 000 11.4l62.3 62.3-65.3 65.3a8.03 8.03 0 000 11.3l42.3 42.3c3.1 3.1 8.2 3.1 11.3 0l253.6-253.6A304.06 304.06 0 00608 720c167.9 0 304-136.1 304-304S775.9 112 608 112zm161.2 465.2C726.2 620.3 668.9 644 608 644c-60.9 0-118.2-23.7-161.2-66.8-43.1-43-66.8-100.3-66.8-161.2 0-60.9 23.7-118.2 66.8-161.2 43-43.1 100.3-66.8 161.2-66.8 60.9 0 118.2 23.7 161.2 66.8 43.1 43 66.8 100.3 66.8 161.2 0 60.9-23.7 118.2-66.8 161.2z"}}]},name:"key",theme:"outlined"};const $Ce=ECe;var OCe=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:$Ce}))};const ICe=l.forwardRef(OCe);var RCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M956.9 845.1L896.4 632V168c0-17.7-14.3-32-32-32h-704c-17.7 0-32 14.3-32 32v464L67.9 845.1C60.4 866 75.8 888 98 888h828.8c22.2 0 37.6-22 30.1-42.9zM200.4 208h624v395h-624V208zm228.3 608l8.1-37h150.3l8.1 37H428.7zm224 0l-19.1-86.7c-.8-3.7-4.1-6.3-7.8-6.3H398.2c-3.8 0-7 2.6-7.8 6.3L371.3 816H151l42.3-149h638.2l42.3 149H652.7z"}}]},name:"laptop",theme:"outlined"};const NCe=RCe;var _Ce=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:NCe}))};const d9=l.forwardRef(_Ce);var TCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"};const PCe=TCe;var jCe=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:PCe}))};const jE=l.forwardRef(jCe);var MCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"}}]},name:"logout",theme:"outlined"};const kCe=MCe;var DCe=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:kCe}))};const ACe=l.forwardRef(DCe);var LCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0068.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z"}}]},name:"mail",theme:"outlined"};const FCe=LCe;var zCe=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:FCe}))};const f9=l.forwardRef(zCe);var BCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"more",theme:"outlined"};const HCe=BCe;var UCe=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:HCe}))};const Ya=l.forwardRef(UCe);var WCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"};const VCe=WCe;var KCe=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:VCe}))};const T3=l.forwardRef(KCe);var GCe={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-372 0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372 0 89-31.3 170.8-83.5 234.8z"}}]},name:"stop",theme:"outlined"};const YCe=GCe;var qCe=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:YCe}))};const _0=l.forwardRef(qCe);var XCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"};const QCe=XCe;var ZCe=function(t,n){return l.createElement(Gt,Re({},t,{ref:n,icon:QCe}))};const py=l.forwardRef(ZCe);function JCe(e){const t=e/6e10,n=Math.floor(t/60),r=Math.ceil(t/60%1*60);return{hours:n,min:r}}function e2e(e,t,n=!0){const r=t.filter(i=>i.hostid===e).map(i=>io(i)).map(i=>{switch(i){case"healthy":return 3;case"warning":return 2;case"error":return 1;default:return 0}}).filter(i=>i!==0);let o=Number.MAX_SAFE_INTEGER;switch(r.forEach(i=>{o=Math.min(o,i)}),o){default:return n?h.jsx(Xr,{children:"Unknown"}):"unknown";case 1:return n?h.jsx(Xr,{color:"error",children:"Error"}):"error";case 2:return n?h.jsx(Xr,{color:"warning",children:"Warning"}):"warning";case 3:return n?h.jsx(Xr,{color:"success",children:"Healthy"}):"healthy"}}const t2e="Closing the modal will lose any unsaved changes. Do you want to proceed?";function n2e(e,t=t2e){return e.some(n=>n.isFieldsTouched())?confirm(t):!0}function r2e(e){const n=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),r=decodeURIComponent(window.atob(n).split("").map(function(o){return"%"+("00"+o.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(r)}function o2e(e){try{return(r2e(e)?.exp??0)>Date.now()/1e3}catch{return!1}}function e8(e,t){return t.clientid?e===t.clientid?nCe:t.deniednodeacls&&e in t.deniednodeacls?wm:Nf:t&&e in t?wm:Nf}function t8(e){let t="",n="";return e>1e12?t="TiB":e>1e9?t="GiB":e>1e6?t="MiB":e>1e3?t="KiB":t="B",e>1e12?n=(e/1e12).toFixed(2):e>1e9?n=(e/1e9).toFixed(2):e>1e6?n=(e/1e6).toFixed(2):e>1e3?n=(e/1e3).toFixed(2):n=e.toFixed(2),`${n} (${t})`}function n8(e){let t="";if(e){const{hours:n,min:r}=JCe(e);t=`${n}h${r}m`}else t="0h0m";return t}function rl(e,t){let n,r;switch(e){default:return h.jsx(h.Fragment,{});case"connectivity-status":return t===!0?h.jsx("div",{"data-testid":`connectivity-metric-${t}`,style:{border:"2px solid #49AA19",borderRadius:"50%",background:"#162312",width:"15px",height:"15px"}}):h.jsx(No,{style:{color:"#D32029"}});case"latency":return h.jsxs(ce.Text,{"data-testid":`latency-metric-${t}`,style:{color:t>mSe?"#D32029":t>gSe?"#D8BD14":void 0},children:[t," ms"]});case"bytes-sent":return h.jsx(ce.Text,{"data-testid":`bytes-sent-metric-${t}`,children:t8(t)});case"bytes-received":return h.jsx(ce.Text,{"data-testid":`bytes-received-metric-${t}`,children:t8(t)});case"uptime":return n=t.totalFractionalUptime/t.fractionalUptime,r=n*t.uptime/t.fractionalUptime,h.jsxs(Io,{title:h.jsxs(Qm,{style:{width:"8rem"},direction:"vertical",children:[h.jsxs(Oe,{children:[h.jsx(q,{xs:12,children:h.jsx(fy,{showInfo:!1,percent:100,status:"exception"})}),h.jsx(q,{xs:12,style:{textAlign:"right"},children:n8(r)})]}),h.jsxs(Oe,{children:[h.jsx(q,{xs:12,children:h.jsx(fy,{showInfo:!1,percent:100,status:"success"})}),h.jsx(q,{xs:12,style:{textAlign:"right"},children:n8(t.uptime)})]})]}),children:[h.jsx(fy,{"data-testid":`uptime-metric-${JSON.stringify(t||{})}`,style:{width:"3rem"},showInfo:!1,type:"line",percent:100,success:{percent:Number(t.uptimePercent)}})," ",t.uptimePercent,"%"]})}}const i2e=(e,t)=>({jwt:"",email:"",tenantId:"",tenantName:"",username:"",baseUrl:"",amuiAuthToken:"",amuiUserId:"",user:null,isLoggedIn(){return!!t().jwt&&o2e(t().jwt||"")&&(yi?!0:!!t().user)},setStore(n){e(n)},logout(){e({jwt:"",email:"",username:"",tenantId:"",tenantName:"",amuiAuthToken:"",amuiUserId:"",user:null})}}),a2e={createAuthSlice:i2e};function s2e(){return Vt.get(qt.HOSTS)}function l2e(e,t=!1){return Vt.delete(`${qt.HOSTS}/${e}?force=${t}`)}function c2e(e,t,n,r=!1){return n==="join"?Vt.post(`${qt.HOSTS}/${e}/networks/${t}`):Vt.delete(`${qt.HOSTS}/${e}/networks/${t}?force=${r}`)}function u2e(e,t){return Vt.put(`${qt.HOSTS}/${e}`,t)}function d2e(){return Vt.put(`${qt.HOSTS}/keys`)}function f2e(e){return Vt.put(`${qt.HOSTS}/${e}/keys`)}const wa={getHosts:s2e,deleteHost:l2e,updateHostsNetworks:c2e,updateHost:u2e,refreshAllHostsKeys:d2e,refreshHostKeys:f2e},h2e=e=>({hosts:[],hostsCommonDetails:{},isFetchingHosts:!1,setHosts:t=>e(()=>({hosts:t})),updateHost(t,n){e(r=>({hosts:r.hosts.map(o=>o.id===t?n:o)}))},deleteHost(t){e(n=>({hosts:n.hosts.filter(r=>r.id!==t)}))},async fetchHosts(){try{e(()=>({isFetchingHosts:!0}));const t=(await wa.getHosts()).data??[],n={};t.forEach(r=>{n[r.id]={name:r.name,version:r.version,endpointip:r.endpointip,os:r.os,publickey:r.publickey,listenport:r.listenport,isstatic:r.isstatic,mtu:r.mtu,interfaces:r.interfaces??[],macaddress:r.macaddress}}),e(()=>({hosts:t,hostsCommonDetails:n,isFetchingHosts:!1}))}catch(t){console.error(t),e(()=>({isFetchingHosts:!1}))}}}),p2e={createHostSlice:h2e};function m2e(){return Vt.get(`${qt.NETWORKS}`)}function g2e(e){return Vt.post(`${qt.NETWORKS}`,e)}function v2e(e,t){return Vt.put(`${qt.NETWORKS}/${e}`,t)}function y2e(e){return Vt.delete(`${qt.NETWORKS}/${e}`)}function b2e(e,t){return Vt.post(`${qt.NETWORKS}/${e}/keys`,t)}function x2e(e){return Vt.get(`${qt.NETWORKS}/${e}/keys`)}function w2e(e,t){return Vt.delete(`${qt.NETWORKS}/${e}/keys/${t}`)}function S2e(e,t){return Vt.post(`${qt.DNS}/${e}`,t)}function C2e(){return Vt.get(`${qt.DNS}`)}function E2e(e,t){return Vt.delete(`${qt.DNS}/${e}/${t}`)}function $2e(e){return Vt.get(`${qt.NETWORKS}/${e}/acls`)}function O2e(e,t){return Vt.put(`${qt.NETWORKS}/${e}/acls`,t)}function I2e(e){return Vt.get(`${qt.METRICS}/${e}`)}function R2e(e){return Vt.get(`${qt.METRICS_EXTERNAL_CLIENT}/${e}`)}const ll={getNetworks:m2e,createNetwork:g2e,updateNetwork:v2e,deleteNetwork:y2e,createAccessKey:b2e,getAccessKeys:x2e,deleteAccessKey:w2e,createDns:S2e,getDnses:C2e,deleteDns:E2e,getAcls:$2e,updateAcls:O2e,getNodeMetrics:I2e,getClientMetrics:R2e},r8=e=>{const t=e.split(",");for(let n=0;nMath.floor(t?Math.random()*e+1:Math.random()*e),M2e=e=>{const t=[],n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];for(let r=0;r`10.${ME(254,!0)}.${ME(254,!0)}.0/24`,D2e=()=>`${M2e(4)}:4206:9753:2021::/64`,A2e=()=>i8[ME(i8.length,!1)],L2e=(e,t)=>({networks:[],isFetchingNetworks:!1,async fetchNetworks(){try{e(()=>({isFetchingNetworks:!0}));const n=(await ll.getNetworks()).data??[];e(()=>({networks:n.map(r=>h9(r)),isFetchingNetworks:!1}))}catch(n){console.error(n),e(()=>({isFetchingNetworks:!1}))}},setNetworks:n=>e(()=>({networks:n})),addNetwork(n){e(r=>({networks:[...r.networks,n]}))},removeNetwork(n){e(r=>({networks:r.networks.filter(o=>o.netid!==n)}))},updateNetwork(n,r){e(o=>({networks:o.networks.map(i=>i.netid===n?r:i)}))},deleteNetwork(n){e(r=>({networks:r.networks.filter(o=>o.netid!==n)}))}}),F2e={createNetworkSlice:L2e};function z2e(){return Vt.get(qt.NODES)}function B2e(e,t){return Vt.post(`${qt.NODES}/${t}/${e}/approve`)}function H2e(e,t,n){return Vt.post(`${qt.NODES}/${t}/${e}/creategateway`,n)}function U2e(e,t,n){return Vt.post(`${qt.EXTERNAL_CLIENTS}/${t}/${e}`,n)}function W2e(e,t,n){return Vt.post(`${qt.NODES}/${t}/${e}/createingress`,n)}function V2e(e,t){return Vt.delete(`${qt.NODES}/${t}/${e}/deletegateway`)}function K2e(e,t){return Vt.delete(`${qt.EXTERNAL_CLIENTS}/${t}/${e}`)}function G2e(e,t){return Vt.delete(`${qt.NODES}/${t}/${e}/deleteingress`)}function Y2e(e,t,n=!1){return Vt.delete(`${qt.NODES}/${t}/${e}?force=${n}`)}function q2e(e,t,n){return Vt.get(`${qt.EXTERNAL_CLIENTS}/${t}/${e}/${n}`,{responseType:n==="qr"?"arraybuffer":void 0})}function X2e(){return Vt.get(`${qt.EXTERNAL_CLIENTS}`)}function Q2e(e){return Vt.get(`${qt.EXTERNAL_CLIENTS}/${e}`)}function Z2e(e,t,n){return Vt.put(`${qt.EXTERNAL_CLIENTS}/${t}/${e}`,n)}function J2e(e,t,n){return Vt.put(`${qt.NODES}/${t}/${e}`,n)}function eEe(e,t,n){return Vt.post(`${qt.NODES}/${t}/${e}/createrelay`,n)}function tEe(e,t){return Vt.delete(`${qt.NODES}/${t}/${e}/deleterelay`)}const ur={getNodes:z2e,approveNode:B2e,createEgressNode:H2e,createExternalClient:U2e,createIngressNode:W2e,deleteEgressNode:V2e,deleteExternalClient:K2e,deleteIngressNode:G2e,deleteNode:Y2e,getExternalClientConfig:q2e,getAllExternalClients:X2e,getNetworkExternalClients:Q2e,updateExternalClient:Z2e,updateNode:J2e,createRelay:eEe,deleteRelay:tEe},nEe=e=>({nodes:[],isFetchingNodes:!1,setNodes:t=>e(()=>({nodes:t})),updateNode(t,n){e(r=>({nodes:r.nodes.map(o=>o.id===t?n:o)}))},deleteNode(t){e(n=>({nodes:n.nodes.filter(r=>r.id!==t)}))},async fetchNodes(){try{e(()=>({isFetchingNodes:!0}));const t=(await ur.getNodes()).data??[];e(()=>({nodes:t,isFetchingNodes:!1}))}catch(t){console.error(t)}}}),rEe={createNodeSlice:nEe},tn=BSe()(WSe(qSe((...e)=>({...rEe.createNodeSlice(...e),...eCe.createAppSlice(...e),...a2e.createAuthSlice(...e),...F2e.createNetworkSlice(...e),...p2e.createHostSlice(...e)}),{name:"netmaker-storage"})));function v9(e,t){return function(){return e.apply(t,arguments)}}const{toString:oEe}=Object.prototype,{getPrototypeOf:P3}=Object,sx=(e=>t=>{const n=oEe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),wl=e=>(e=e.toLowerCase(),t=>sx(t)===e),lx=e=>t=>typeof t===e,{isArray:Hh}=Array,tg=lx("undefined");function iEe(e){return e!==null&&!tg(e)&&e.constructor!==null&&!tg(e.constructor)&&es(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const y9=wl("ArrayBuffer");function aEe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&y9(e.buffer),t}const sEe=lx("string"),es=lx("function"),b9=lx("number"),cx=e=>e!==null&&typeof e=="object",lEe=e=>e===!0||e===!1,my=e=>{if(sx(e)!=="object")return!1;const t=P3(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},cEe=wl("Date"),uEe=wl("File"),dEe=wl("Blob"),fEe=wl("FileList"),hEe=e=>cx(e)&&es(e.pipe),pEe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||es(e.append)&&((t=sx(e))==="formdata"||t==="object"&&es(e.toString)&&e.toString()==="[object FormData]"))},mEe=wl("URLSearchParams"),gEe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fg(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Hh(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const w9=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),S9=e=>!tg(e)&&e!==w9;function kE(){const{caseless:e}=S9(this)&&this||{},t={},n=(r,o)=>{const i=e&&x9(t,o)||o;my(t[i])&&my(r)?t[i]=kE(t[i],r):my(r)?t[i]=kE({},r):Hh(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(Fg(t,(o,i)=>{n&&es(o)?e[i]=v9(o,n):e[i]=o},{allOwnKeys:r}),e),yEe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),bEe=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},xEe=(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&P3(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},wEe=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},SEe=e=>{if(!e)return null;if(Hh(e))return e;let t=e.length;if(!b9(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},CEe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&P3(Uint8Array)),EEe=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},$Ee=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},OEe=wl("HTMLFormElement"),IEe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),a8=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),REe=wl("RegExp"),C9=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Fg(n,(o,i)=>{t(o,i,e)!==!1&&(r[i]=o)}),Object.defineProperties(e,r)},NEe=e=>{C9(e,(t,n)=>{if(es(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(es(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},_Ee=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Hh(e)?r(e):r(String(e).split(t)),n},TEe=()=>{},PEe=(e,t)=>(e=+e,Number.isFinite(e)?e:t),YS="abcdefghijklmnopqrstuvwxyz",s8="0123456789",E9={DIGIT:s8,ALPHA:YS,ALPHA_DIGIT:YS+YS.toUpperCase()+s8},jEe=(e=16,t=E9.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function MEe(e){return!!(e&&es(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const kEe=e=>{const t=new Array(10),n=(r,o)=>{if(cx(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=Hh(r)?[]:{};return Fg(r,(a,s)=>{const c=n(a,o+1);!tg(c)&&(i[s]=c)}),t[o]=void 0,i}}return r};return n(e,0)},DEe=wl("AsyncFunction"),AEe=e=>e&&(cx(e)||es(e))&&es(e.then)&&es(e.catch),lt={isArray:Hh,isArrayBuffer:y9,isBuffer:iEe,isFormData:pEe,isArrayBufferView:aEe,isString:sEe,isNumber:b9,isBoolean:lEe,isObject:cx,isPlainObject:my,isUndefined:tg,isDate:cEe,isFile:uEe,isBlob:dEe,isRegExp:REe,isFunction:es,isStream:hEe,isURLSearchParams:mEe,isTypedArray:CEe,isFileList:fEe,forEach:Fg,merge:kE,extend:vEe,trim:gEe,stripBOM:yEe,inherits:bEe,toFlatObject:xEe,kindOf:sx,kindOfTest:wl,endsWith:wEe,toArray:SEe,forEachEntry:EEe,matchAll:$Ee,isHTMLForm:OEe,hasOwnProperty:a8,hasOwnProp:a8,reduceDescriptors:C9,freezeMethods:NEe,toObjectSet:_Ee,toCamelCase:IEe,noop:TEe,toFiniteNumber:PEe,findKey:x9,global:w9,isContextDefined:S9,ALPHABET:E9,generateString:jEe,isSpecCompliantForm:MEe,toJSONObject:kEe,isAsyncFn:DEe,isThenable:AEe};function Yn(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}lt.inherits(Yn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:lt.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const $9=Yn.prototype,O9={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{O9[e]={value:e}});Object.defineProperties(Yn,O9);Object.defineProperty($9,"isAxiosError",{value:!0});Yn.from=(e,t,n,r,o,i)=>{const a=Object.create($9);return lt.toFlatObject(e,a,function(c){return c!==Error.prototype},s=>s!=="isAxiosError"),Yn.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const LEe=null;function DE(e){return lt.isPlainObject(e)||lt.isArray(e)}function I9(e){return lt.endsWith(e,"[]")?e.slice(0,-2):e}function l8(e,t,n){return e?e.concat(t).map(function(o,i){return o=I9(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function FEe(e){return lt.isArray(e)&&!e.some(DE)}const zEe=lt.toFlatObject(lt,{},null,function(t){return/^is[A-Z]/.test(t)});function ux(e,t,n){if(!lt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=lt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,S){return!lt.isUndefined(S[y])});const r=n.metaTokens,o=n.visitor||d,i=n.dots,a=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&<.isSpecCompliantForm(t);if(!lt.isFunction(o))throw new TypeError("visitor must be a function");function u(v){if(v===null)return"";if(lt.isDate(v))return v.toISOString();if(!c&<.isBlob(v))throw new Yn("Blob is not supported. Use a Buffer instead.");return lt.isArrayBuffer(v)||lt.isTypedArray(v)?c&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function d(v,y,S){let b=v;if(v&&!S&&typeof v=="object"){if(lt.endsWith(y,"{}"))y=r?y:y.slice(0,-2),v=JSON.stringify(v);else if(lt.isArray(v)&&FEe(v)||(lt.isFileList(v)||lt.endsWith(y,"[]"))&&(b=lt.toArray(v)))return y=I9(y),b.forEach(function(C,E){!(lt.isUndefined(C)||C===null)&&t.append(a===!0?l8([y],E,i):a===null?y:y+"[]",u(C))}),!1}return DE(v)?!0:(t.append(l8(S,y,i),u(v)),!1)}const f=[],p=Object.assign(zEe,{defaultVisitor:d,convertValue:u,isVisitable:DE});function g(v,y){if(!lt.isUndefined(v)){if(f.indexOf(v)!==-1)throw Error("Circular reference detected in "+y.join("."));f.push(v),lt.forEach(v,function(b,x){(!(lt.isUndefined(b)||b===null)&&o.call(t,b,lt.isString(x)?x.trim():x,y,p))===!0&&g(b,y?y.concat(x):[x])}),f.pop()}}if(!lt.isObject(e))throw new TypeError("data must be an object");return g(e),t}function c8(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function j3(e,t){this._pairs=[],e&&ux(e,this,t)}const R9=j3.prototype;R9.append=function(t,n){this._pairs.push([t,n])};R9.toString=function(t){const n=t?function(r){return t.call(this,r,c8)}:c8;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function BEe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function N9(e,t,n){if(!t)return e;const r=n&&n.encode||BEe,o=n&&n.serialize;let i;if(o?i=o(t,n):i=lt.isURLSearchParams(t)?t.toString():new j3(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class HEe{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){lt.forEach(this.handlers,function(r){r!==null&&t(r)})}}const u8=HEe,_9={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},UEe=typeof URLSearchParams<"u"?URLSearchParams:j3,WEe=typeof FormData<"u"?FormData:null,VEe=typeof Blob<"u"?Blob:null,KEe=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),GEe=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),dl={isBrowser:!0,classes:{URLSearchParams:UEe,FormData:WEe,Blob:VEe},isStandardBrowserEnv:KEe,isStandardBrowserWebWorkerEnv:GEe,protocols:["http","https","file","blob","url","data"]};function YEe(e,t){return ux(e,new dl.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return dl.isNode&<.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function qEe(e){return lt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function XEe(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return a=!a&<.isArray(o)?o.length:a,c?(lt.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!s):((!o[a]||!lt.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&<.isArray(o[a])&&(o[a]=XEe(o[a])),!s)}if(lt.isFormData(e)&<.isFunction(e.entries)){const n={};return lt.forEachEntry(e,(r,o)=>{t(qEe(r),o,n,0)}),n}return null}const QEe={"Content-Type":void 0};function ZEe(e,t,n){if(lt.isString(e))try{return(t||JSON.parse)(e),lt.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const dx={transitional:_9,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=lt.isObject(t);if(i&<.isHTMLForm(t)&&(t=new FormData(t)),lt.isFormData(t))return o&&o?JSON.stringify(T9(t)):t;if(lt.isArrayBuffer(t)||lt.isBuffer(t)||lt.isStream(t)||lt.isFile(t)||lt.isBlob(t))return t;if(lt.isArrayBufferView(t))return t.buffer;if(lt.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return YEe(t,this.formSerializer).toString();if((s=lt.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return ux(s?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),ZEe(t)):t}],transformResponse:[function(t){const n=this.transitional||dx.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&<.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?Yn.from(s,Yn.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:dl.classes.FormData,Blob:dl.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};lt.forEach(["delete","get","head"],function(t){dx.headers[t]={}});lt.forEach(["post","put","patch"],function(t){dx.headers[t]=lt.merge(QEe)});const M3=dx,JEe=lt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),e$e=e=>{const t={};let n,r,o;return e&&e.split(` `).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&JEe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},d8=Symbol("internals");function Dp(e){return e&&String(e).trim().toLowerCase()}function gy(e){return e===!1||e==null?e:lt.isArray(e)?e.map(gy):String(e)}function t$e(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const n$e=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function qS(e,t,n,r,o){if(lt.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!lt.isString(t)){if(lt.isString(r))return t.indexOf(r)!==-1;if(lt.isRegExp(r))return r.test(t)}}function r$e(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function o$e(e,t){const n=lt.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}let fx=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(s,c,u){const d=Dp(c);if(!d)throw new Error("header name must be a non-empty string");const f=lt.findKey(o,d);(!f||o[f]===void 0||u===!0||u===void 0&&o[f]!==!1)&&(o[f||c]=gy(s))}const a=(s,c)=>lt.forEach(s,(u,d)=>i(u,d,c));return lt.isPlainObject(t)||t instanceof this.constructor?a(t,n):lt.isString(t)&&(t=t.trim())&&!n$e(t)?a(e$e(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=Dp(t),t){const r=lt.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return t$e(o);if(lt.isFunction(n))return n.call(this,o,r);if(lt.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Dp(t),t){const r=lt.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||qS(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=Dp(a),a){const s=lt.findKey(r,a);s&&(!n||qS(r,r[s],s,n))&&(delete r[s],o=!0)}}return lt.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||qS(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return lt.forEach(this,(o,i)=>{const a=lt.findKey(r,i);if(a){n[a]=gy(o),delete n[i];return}const s=t?r$e(i):String(i).trim();s!==i&&delete n[i],n[s]=gy(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return lt.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&<.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[d8]=this[d8]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=Dp(a);r[s]||(o$e(o,a),r[s]=!0)}return lt.isArray(t)?t.forEach(i):i(t),this}};fx.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);lt.freezeMethods(fx.prototype);lt.freezeMethods(fx);const ec=fx;function XS(e,t){const n=this||M3,r=t||n,o=ec.from(r.headers);let i=r.data;return lt.forEach(e,function(s){i=s.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function P9(e){return!!(e&&e.__CANCEL__)}function zg(e,t,n){Yn.call(this,e??"canceled",Yn.ERR_CANCELED,t,n),this.name="CanceledError"}lt.inherits(zg,Yn,{__CANCEL__:!0});function i$e(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Yn("Request failed with status code "+n.status,[Yn.ERR_BAD_REQUEST,Yn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const a$e=dl.isStandardBrowserEnv?function(){return{write:function(n,r,o,i,a,s){const c=[];c.push(n+"="+encodeURIComponent(r)),lt.isNumber(o)&&c.push("expires="+new Date(o).toGMTString()),lt.isString(i)&&c.push("path="+i),lt.isString(a)&&c.push("domain="+a),s===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function s$e(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function l$e(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function j9(e,t){return e&&!s$e(t)?l$e(e,t):t}const c$e=dl.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let a=i;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(a){const s=lt.isString(a)?o(a):a;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function u$e(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function d$e(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),d=r[i];a||(a=u),n[o]=c,r[o]=u;let f=i,p=0;for(;f!==o;)p+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-a{const i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-n,c=r(s),u=i<=a;n=i;const d={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&u?(a-i)/c:void 0,event:o};d[t?"download":"upload"]=!0,e(d)}}const f$e=typeof XMLHttpRequest<"u",h$e=f$e&&function(e){return new Promise(function(n,r){let o=e.data;const i=ec.from(e.headers).normalize(),a=e.responseType;let s;function c(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}lt.isFormData(o)&&(dl.isStandardBrowserEnv||dl.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(e.auth){const g=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(g+":"+v))}const d=j9(e.baseURL,e.url);u.open(e.method.toUpperCase(),N9(d,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function f(){if(!u)return;const g=ec.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),y={data:!a||a==="text"||a==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:g,config:e,request:u};i$e(function(b){n(b),c()},function(b){r(b),c()},y),u=null}if("onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(f)},u.onabort=function(){u&&(r(new Yn("Request aborted",Yn.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new Yn("Network Error",Yn.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let v=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const y=e.transitional||_9;e.timeoutErrorMessage&&(v=e.timeoutErrorMessage),r(new Yn(v,y.clarifyTimeoutError?Yn.ETIMEDOUT:Yn.ECONNABORTED,e,u)),u=null},dl.isStandardBrowserEnv){const g=(e.withCredentials||c$e(d))&&e.xsrfCookieName&&a$e.read(e.xsrfCookieName);g&&i.set(e.xsrfHeaderName,g)}o===void 0&&i.setContentType(null),"setRequestHeader"in u&<.forEach(i.toJSON(),function(v,y){u.setRequestHeader(y,v)}),lt.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),a&&a!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",f8(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",f8(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=g=>{u&&(r(!g||g.type?new zg(null,e,u):g),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const p=u$e(d);if(p&&dl.protocols.indexOf(p)===-1){r(new Yn("Unsupported protocol "+p+":",Yn.ERR_BAD_REQUEST,e));return}u.send(o||null)})},vy={http:LEe,xhr:h$e};lt.forEach(vy,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const p$e={getAdapter:e=>{e=lt.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let o=0;oe instanceof ec?e.toJSON():e;function lh(e,t){t=t||{};const n={};function r(u,d,f){return lt.isPlainObject(u)&<.isPlainObject(d)?lt.merge.call({caseless:f},u,d):lt.isPlainObject(d)?lt.merge({},d):lt.isArray(d)?d.slice():d}function o(u,d,f){if(lt.isUndefined(d)){if(!lt.isUndefined(u))return r(void 0,u,f)}else return r(u,d,f)}function i(u,d){if(!lt.isUndefined(d))return r(void 0,d)}function a(u,d){if(lt.isUndefined(d)){if(!lt.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function s(u,d,f){if(f in t)return r(u,d);if(f in e)return r(void 0,u)}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(u,d)=>o(p8(u),p8(d),!0)};return lt.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=c[d]||o,p=f(e[d],t[d],d);lt.isUndefined(p)&&f!==s||(n[d]=p)}),n}const M9="1.4.0",k3={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{k3[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const m8={};k3.transitional=function(t,n,r){function o(i,a){return"[Axios v"+M9+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,s)=>{if(t===!1)throw new Yn(o(a," has been removed"+(n?" in "+n:"")),Yn.ERR_DEPRECATED);return n&&!m8[a]&&(m8[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,s):!0}};function m$e(e,t,n){if(typeof e!="object")throw new Yn("options must be an object",Yn.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const s=e[i],c=s===void 0||a(s,i,e);if(c!==!0)throw new Yn("option "+i+" must be "+c,Yn.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Yn("Unknown option "+i,Yn.ERR_BAD_OPTION)}}const AE={assertOptions:m$e,validators:k3},Mc=AE.validators;let O1=class{constructor(t){this.defaults=t,this.interceptors={request:new u8,response:new u8}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=lh(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&AE.assertOptions(r,{silentJSONParsing:Mc.transitional(Mc.boolean),forcedJSONParsing:Mc.transitional(Mc.boolean),clarifyTimeoutError:Mc.transitional(Mc.boolean)},!1),o!=null&&(lt.isFunction(o)?n.paramsSerializer={serialize:o}:AE.assertOptions(o,{encode:Mc.function,serialize:Mc.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a;a=i&<.merge(i.common,i[n.method]),a&<.forEach(["delete","get","head","post","put","patch","common"],v=>{delete i[v]}),n.headers=ec.concat(a,i);const s=[];let c=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(c=c&&y.synchronous,s.unshift(y.fulfilled,y.rejected))});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let d,f=0,p;if(!c){const v=[h8.bind(this),void 0];for(v.unshift.apply(v,s),v.push.apply(v,u),p=v.length,d=Promise.resolve(n);f{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{r.subscribe(s),i=s}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,s){r.reason||(r.reason=new zg(i,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new k9(function(o){t=o}),cancel:t}}};const v$e=g$e;function y$e(e){return function(n){return e.apply(null,n)}}function b$e(e){return lt.isObject(e)&&e.isAxiosError===!0}const LE={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(LE).forEach(([e,t])=>{LE[t]=e});const x$e=LE;function D9(e){const t=new yy(e),n=v9(yy.prototype.request,t);return lt.extend(n,yy.prototype,t,{allOwnKeys:!0}),lt.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return D9(lh(e,o))},n}const Wo=D9(M3);Wo.Axios=yy;Wo.CanceledError=zg;Wo.CancelToken=v$e;Wo.isCancel=P9;Wo.VERSION=M9;Wo.toFormData=ux;Wo.AxiosError=Yn;Wo.Cancel=Wo.CanceledError;Wo.all=function(t){return Promise.all(t)};Wo.spread=y$e;Wo.isAxiosError=b$e;Wo.mergeConfig=lh;Wo.AxiosHeaders=ec;Wo.formToJSON=e=>T9(lt.isHTMLForm(e)?new FormData(e):e);Wo.HttpStatusCode=x$e;Wo.default=Wo;const A9=Wo,{Axios:d6e,AxiosError:Ji,CanceledError:f6e,isCancel:h6e,CancelToken:p6e,VERSION:m6e,all:g6e,Cancel:v6e,isAxiosError:y6e,spread:b6e,toFormData:x6e,AxiosHeaders:w6e,HttpStatusCode:S6e,formToJSON:C6e,mergeConfig:E6e}=A9,yi="false".toLocaleLowerCase()==="true",Vt=A9.create(),L9=yi?window.NMUI_AMUI_URL:"",w$e=yi?window.NMUI_INTERCOM_APP_ID:"";async function S$e(){if(!yi){const u=window.NMUI_BACKEND_URL,d=u?`${u}/api`:"/api";tn.getState().setStore({baseUrl:d}),Vt.defaults.baseURL=d;return}const e=new URL(window.location.href),t=e.searchParams.get("backend"),n=e.searchParams.get("token"),r=e.searchParams.get("sToken")??"",o=e.searchParams.get("tenantId")??"",i=e.searchParams.get("tenantName")??"",a=e.searchParams.get("username")??"",s=e.searchParams.get("userId")??"",c=t?t?.startsWith("https")?`${t}/api`:`https://${t}/api`:tn.getState().baseUrl;Vt.defaults.baseURL=c,FE(),tn.getState().setStore({baseUrl:c,jwt:n||tn.getState().jwt,tenantId:o||tn.getState().tenantId,tenantName:i||tn.getState().tenantName,amuiAuthToken:r,username:a||tn.getState().username,amuiUserId:s||tn.getState().amuiUserId})}function Sr(){return{productName:Pc.productName,logoDarkUrl:Pc.logoDarkUrl,logoLightUrl:Pc.logoLightUrl,logoAltText:Pc.logoAltText,logoDarkSmallUrl:Pc.logoDarkSmallUrl,logoLightSmallUrl:Pc.logoLightSmallUrl,favicon:{}.VITE_TENANT_FAVICON_URL||""||""||Pc.favicon,primaryColor:Pc.primaryColor}}Vt.interceptors.request.use(e=>{const t=tn.getState().jwt;return t&&(e.headers.Authorization=`Bearer ${t}`),e});Vt.interceptors.response.use(e=>e,e=>(e.response?.status===401&&(tn.getState().logout(),window.location.href="/login"),Promise.reject(e)));window.document.title=`${Sr().productName} Dashboard`;window.document.querySelector('meta[name="description"]')?.setAttribute("content",`The management UI for ${Sr().productName}. ${Sr().productName} makes networks :)`);function Wf(e,...t){const n=":hostId";let r="";return typeof e=="string"?r=`${Kt.HOST_ROUTE.replace(n,e)}`:r=`${Kt.HOST_ROUTE.replace(n,e.id)}`,r+=t.reduce((o,i)=>{const a=Object.keys(i)[0];return`${o}${o.includes("?")?"&":"?"}${a}=${i[a]}`},""),r}function C$e(e,t){const n=":networkId",r=":hostId";let o=Kt.NETWORK_HOST_ROUTE;return typeof e=="string"?o=o.replace(r,e):o=o.replace(r,e.id),typeof t=="string"?o=o.replace(n,t):o=o.replace(n,t.netid),o}function _f(e){const t=":networkId";return typeof e=="string"?`${Kt.NETWORK_DETAILS_ROUTE.replace(t,e)}`:`${Kt.NETWORK_DETAILS_ROUTE.replace(t,e.netid)}`}function hx(){return new URLSearchParams(Xs().search)}function ch(e=""){return`${L9}/dashboard?tenantId=${tn.getState().tenantId}&sToken=${tn.getState().amuiAuthToken}&action=${e}`}function D3(){return"https://account.netmaker.io"}function E$e(){return"help@netmaker.io"}function Mu(e,t,n="gui"){const r=":fileName",o=":version",i="https://fileserver.netmaker.io/releases/download/:version/:fileName",a=e==="macos"?"darwin":e,s=tn.getState().serverConfig?.Version??"";let c="netclient";return s?(n==="gui"&&(c+="-gui"),c+=`-${a}-${t}`,a==="windows"?c="netclient_x86.msi":a==="darwin"&&(t==="amd64"?c="Netclient-Intel.pkg":t==="arm64"&&(c="Netclient-M1.pkg")),[i.replace(o,s).replace(r,c),c]):["about:blank",""]}function $$e(e){return e?e.split("?")[0]:window.location.href.split("?")[0]}function FE(){const e=$$e();window.history.replaceState({},"",e)}function O$e(e){const t=window.open(e,"_blank");t&&t.focus()}function I$e(e){O$e(pSe.replace(":body",`Describe what happened...%0A%0A Error log: %0A\`${encodeURIComponent(e)}\``))}function R$e(e){const t=bi();return h.jsx(ao,{style:{position:"relative",minHeight:"100dvh",justifyContent:"center",alignItems:"center"},children:h.jsx(a7,{status:"error",title:"Application crashed",subTitle:"Sorry, an unexpected error occured.",extra:h.jsxs(h.Fragment,{children:[(e.error||e.info)&&h.jsx(Oe,{style:{marginTop:"4rem"},children:h.jsx(q,{span:24,style:{display:"flex",justifyContent:"center"},children:h.jsxs(Jn,{style:{width:"80%",maxHeight:"40dvh",overflowY:"auto"},children:[h.jsx(ce.Text,{children:String(e.error)}),h.jsx("br",{}),h.jsx("br",{}),h.jsx(ce.Text,{children:JSON.stringify(e.info,null,4)})]})})}),h.jsxs(Oe,{gutter:50,style:{marginTop:"4rem"},children:[h.jsx(q,{span:12,children:h.jsx(ut,{type:"text",size:"large",onClick:()=>{I$e(`${e.error} ${JSON.stringify(e.info,null,4)}`),t(Kt.DASHBOARD_ROUTE)},children:"File a Bug Report"})}),h.jsx(q,{span:12,children:h.jsx(ut,{type:"primary",size:"large",onClick:()=>t(Kt.DASHBOARD_ROUTE),children:"Back Home"})})]})]})})})}class Bg extends l.Component{constructor(t){super(t),this.state={hasError:!1,error:new Error,info:{}}}static getDerivedStateFromError(t){return console.log(t),{hasError:!0}}componentDidCatch(t,n){console.log(t),console.log(n),this.setState({error:t,info:n})}render(){return this.state.hasError?this.props.fallback||h.jsx(R$e,{error:this.state.error,info:this.state.info}):this.props.children}}const{Content:N$e}=ao,Zd=[{position:0,label:"Feel powerful",desc:"Few things make me feel more powerful than setting up automations in Untitled to make my life easier and more efficient."},{position:1,label:"Feel more powerful",desc:"Few things make me feel more powerful than setting up automations in Untitled to make my life easier and more efficient."},{position:2,label:"Feel most powerful",desc:"Few things make me feel more powerful than setting up automations in Untitled to make my life easier and more efficient."}];function _$e(){const e=bi(),t=Xs(),[n,r]=l.useState(0),o=()=>{const a=Zd.length-1;if(n===a){e(Kt.DASHBOARD_ROUTE);return}r(n+1)},i=()=>{r(n-1)};return h.jsx(Bg,{children:h.jsx(ao,{children:h.jsx(N$e,{children:h.jsxs(Oe,{style:{height:"100vh"},align:"middle",children:[h.jsxs(q,{xs:24,md:16,style:{textAlign:"center"},children:[h.jsx(ce.Title,{level:4,children:Zd[n]?.label??""}),h.jsx(ce.Text,{children:h.jsx("p",{children:Zd[n]?.desc??""})}),h.jsxs(Oe,{justify:"center",children:[h.jsx(q,{children:h.jsx(y3,{type:"inline",current:Zd[n].position,items:Zd})}),h.jsxs(q,{style:{textAlign:"right"},children:[h.jsx(ut,{type:"link",onClick:i,disabled:n===0,children:"Back"}),h.jsx(ut,{type:"default",onClick:o,children:n{window.location=yi?ch("upgrade"):D3()};return h.jsxs(fn,{title:h.jsx("span",{style:{fontSize:"1.25rem",fontWeight:"bold"},children:"Upgrade Plan"}),open:e,onOk:t,onCancel:n,footer:null,centered:!0,className:"CustomModal",children:[h.jsx(Jt,{style:{margin:"0px 0px 2rem 0px"}}),h.jsxs("div",{className:"CustomModalBody",children:[h.jsx("h3",{style:{fontWeight:"normal",marginBottom:"0px"},children:"Professional"}),h.jsxs("div",{children:[h.jsx("span",{style:{fontSize:"2rem",fontWeight:"bold"},children:"$99"})," per month"]}),h.jsx("p",{children:"Unlock unlimited networks and so much more!"}),h.jsx("div",{style:{marginTop:"2rem"},children:h.jsx(ut,{type:"primary",onClick:r,children:"I'm Ready to Upgrade"})})]})]})}function Qt(e){return e instanceof Ji&&e.response?.data?.Message||e.message}function P$e(e,t){const n=document.createElement("a");n.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(t)),n.setAttribute("download",e),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n)}function A3({isOpen:e,onCreateNetwork:t,onCancel:n}){const[r]=Xe.useForm(),{token:o}=Uo.useToken(),[i,a]=er.useNotification(),s=tn(),c=Xe.useWatch("isipv4",r),u=Xe.useWatch("isipv6",r),d=()=>{r.resetFields()},f=async()=>{try{const g=await r.validateFields(),v=h9((await ll.createNetwork(N2e(g))).data);s.addNetwork(v),i.success({message:`Network ${v.netid} created`}),t(v),d()}catch(g){i.error({message:"Failed to create network",description:Qt(g)})}},p=l.useCallback(()=>{r.setFieldValue("isipv4",!0),r.setFieldsValue({netid:A2e(),addressrange:k2e(),addressrange6:u?D2e():"",defaultacl:"yes",defaultDns:""})},[r,u]);return h.jsxs(fn,{title:h.jsx("span",{style:{fontSize:"1.25rem",fontWeight:"bold"},children:"Create a Network"}),open:e,onCancel:g=>{d(),n&&n(g)},footer:null,centered:!0,className:"CustomModal",children:[h.jsx(Jt,{style:{margin:"0px 0px 2rem 0px"}}),h.jsxs("div",{className:"CustomModalBody",children:[h.jsx("div",{className:"",style:{marginBottom:"2rem"},children:h.jsxs(ut,{onClick:()=>p(),children:[h.jsx(Of,{})," Autofill"]})}),h.jsxs(Xe,{name:"add-network-form",form:r,layout:"vertical",initialValues:{isipv4:!0,isipv6:!1,defaultacl:"yes"},children:[h.jsx(Xe.Item,{label:"Network name",name:"netid",rules:[{required:!0}],"data-nmui-intercom":"add-network-form_netid",children:h.jsx(Ut,{placeholder:"Network name"})}),h.jsx(Oe,{style:{border:`1px solid ${o.colorBorder}`,borderRadius:"8px",padding:".5rem",marginBottom:"1.5rem"},children:h.jsxs(q,{xs:24,children:[h.jsxs(Oe,{justify:"space-between",style:{marginBottom:c?".5rem":"0px"},children:[h.jsx(q,{children:"IPv4"}),h.jsx(q,{children:h.jsx(Xe.Item,{name:"isipv4",noStyle:!0,valuePropName:"checked","data-nmui-intercom":"add-network-form_isipv4",children:h.jsx(po,{})})})]}),c&&h.jsx(Oe,{children:h.jsx(q,{xs:24,children:h.jsx(Xe.Item,{name:"addressrange",style:{marginBottom:"0px"},"data-nmui-intercom":"add-network-form_addressrange",children:h.jsx(Ut,{placeholder:"Enter address CIDR (eg: 192.168.1.0/24)"})})})})]})}),h.jsx(Oe,{style:{border:`1px solid ${o.colorBorder}`,borderRadius:"8px",padding:".5rem",marginBottom:"1.5rem"},children:h.jsxs(q,{xs:24,children:[h.jsxs(Oe,{justify:"space-between",style:{marginBottom:u?".5rem":"0px"},children:[h.jsx(q,{children:"IPv6"}),h.jsx(q,{children:h.jsx(Xe.Item,{name:"isipv6",noStyle:!0,valuePropName:"checked","data-nmui-intercom":"add-network-form_isipv6",children:h.jsx(po,{})})})]}),u&&h.jsx(Oe,{children:h.jsx(q,{xs:24,children:h.jsx(Xe.Item,{name:"addressrange6",style:{marginBottom:"0px"},children:h.jsx(Ut,{placeholder:"Enter address CIDR (eg: 2002::1234:abcd:ffff:c0a8:101/64)","data-nmui-intercom":"add-network-form_addressrange6"})})})})]})}),h.jsx(Oe,{style:{border:`1px solid ${o.colorBorder}`,borderRadius:"8px",padding:".5rem",marginBottom:"1.5rem"},children:h.jsx(q,{xs:24,children:h.jsxs(Oe,{justify:"space-between",children:[h.jsx(q,{children:"Default Access Control"}),h.jsx(q,{xs:8,children:h.jsx(Xe.Item,{name:"defaultacl",style:{marginBottom:"0px"},rules:[{required:!0}],"data-nmui-intercom":"add-network-form_defaultacl",children:h.jsx(Lr,{size:"small",style:{width:"100%"},options:[{label:"ALLOW",value:"yes"},{label:"DENY",value:"no"}]})})})]})})}),h.jsx(Oe,{children:h.jsx(q,{xs:24,style:{textAlign:"right"},children:h.jsx(Xe.Item,{"data-nmui-intercom":"add-network-form_submit",children:h.jsx(ut,{type:"primary",onClick:f,children:"Create Network"})})})})]})]}),a]})}function j$e(){return Vt.get(qt.ENROLLMENT_KEYS)}function M$e(e){return Vt.post(qt.ENROLLMENT_KEYS,e)}function k$e(e){return Vt.delete(`${qt.ENROLLMENT_KEYS}/${e}`)}const I1={getEnrollmentKeys:j$e,createEnrollmentKey:M$e,deleteEnrollmentKey:k$e},D$e=0,F9=1,z9=2,A$e=3;function R1(e){switch(e.type){case D$e:return!1;case F9:return new Date(e.expiration).getTime()>Date.now();case z9:return e.uses_remaining>0;case A$e:return e.unlimited}return e==null?!1:e.uses_remaining>0||new Date(e.expiration).getTime()>Date.now()?!0:e.unlimited}function L$e(e){switch(e){case 0:return"Undefined";case 1:return"Time-bound";case 2:return"Uses-based";case 3:return"Unlimited";default:return"Undefined"}}function B9({isOpen:e,onCreateKey:t,onCancel:n}){const[r]=Xe.useForm(),[o,i]=er.useNotification(),s=tn().networks.map(p=>({label:p.netid,value:p.netid})),[c,u]=l.useState("unlimited"),d=()=>{r.resetFields()},f=async()=>{try{const p=await r.validateFields();p.tags=[r.getFieldValue("tags")],p.type=0;const g={...p,unlimited:c==="unlimited",uses_remaining:p.uses_remaining??0,expiration:c==="time"?Math.round(p.expiration.unix()):0},v=(await I1.createEnrollmentKey(g)).data;o.success({message:`Enrollment key with name ${v.tags.join(", ")} created`}),d(),t(v)}catch(p){o.error({message:"Failed to create key",description:Qt(p)})}};return h.jsxs(fn,{title:h.jsx("span",{style:{fontSize:"1.25rem",fontWeight:"bold"},children:"Create a Key"}),open:e,onCancel:p=>{d(),n&&n(p)},footer:null,centered:!0,className:"CustomModal",children:[h.jsx(Jt,{style:{margin:"0px 0px 2rem 0px"}}),h.jsx("div",{className:"CustomModalBody",children:h.jsxs(Xe,{name:"add-enrollment-key-form",form:r,layout:"vertical",children:[h.jsx(Xe.Item,{label:"Name",name:"tags",rules:[{required:!0}],"data-nmui-intercom":"add-enrollment-key-form_tags",children:h.jsx(Ut,{placeholder:"Name"})}),h.jsx(Xe.Item,{label:"Type",name:"type",rules:[{required:!0}],"data-nmui-intercom":"add-enrollment-key-form_type",children:h.jsxs(xa.Group,{onChange:p=>u(p.target.value),value:c,children:[h.jsx(xa,{value:"unlimited",children:"Unlimited"}),h.jsx(xa,{value:"uses",children:"Limited number of uses"}),h.jsx(xa,{value:"time",children:"Time bound"})]})}),c==="uses"&&h.jsx(Xe.Item,{label:"Max. number of uses",name:"uses_remaining",rules:[{required:!0}],"data-nmui-intercom":"add-enrollment-key-form_usesremaining",children:h.jsx(vm,{placeholder:"Max. number of uses",min:1,style:{width:"100%"}})}),c==="time"&&h.jsx(Xe.Item,{label:"Time bound",name:"expiration",rules:[{required:!0}],"data-nmui-intercom":"add-enrollment-key-form_expiration",children:h.jsx(RL,{style:{width:"100%"},showTime:!0})}),h.jsx(Xe.Item,{name:"networks",label:"Networks","data-nmui-intercom":"add-enrollment-key-form_networks",children:h.jsx(Lr,{mode:"multiple",allowClear:!0,style:{width:"100%"},placeholder:"Select networks to join with key",options:s})}),h.jsx(Oe,{children:h.jsx(q,{xs:24,style:{textAlign:"right"},children:h.jsx(Xe.Item,{"data-nmui-intercom":"add-enrollment-key-form_submit",children:h.jsx(ut,{type:"primary",onClick:f,children:"Create Key"})})})})]})}),i]})}const F$e=[{title:"Select an Enrollment Key"},{title:"Install Netclient"},{title:"Join Network"}];function L3({isOpen:e,onCancel:t,onFinish:n}){const r=tn(),[o,i]=er.useNotification(),a=r.currentTheme,[s,c]=l.useState(0),[u,d]=l.useState(""),[f,p]=l.useState("windows"),[g,v]=l.useState("amd64"),[y,S]=l.useState([]),[b,x]=l.useState(null),[C,E]=l.useState(!1),$=l.useMemo(()=>y.filter(D=>R1(D)).filter(D=>`${D.tags.join("")}${D.networks.join("")}`.toLowerCase().includes(u.toLocaleLowerCase())),[y,u]),O=l.useMemo(()=>s>=2,[s]),I=l.useCallback(D=>{c(D)},[]),N=l.useCallback((D,j)=>{const P=".NewHostModal .os-button",M="active";document.querySelectorAll(P).forEach(A=>{A.classList.remove(M)}),D.currentTarget.classList.add(M),p(j)},[]),_=l.useCallback(async()=>{try{const D=(await I1.getEnrollmentKeys()).data;S(D)}catch(D){o.error({message:"Failed to load enrollment keys",description:Qt(D)}),console.error(D)}},[o]),T=()=>{c(0),E(!1),x(null),p("windows"),v("amd64")};return l.useEffect(()=>{v("amd64")},[f]),l.useEffect(()=>{_()},[_]),h.jsxs(fn,{title:h.jsx("span",{style:{fontSize:"1.25rem",fontWeight:"bold"},children:"Add a new host"}),open:e,className:"CustomModal NewHostModal",onCancel:D=>{T(),t?.(D)},style:{minWidth:"50vw"},footer:s>0?h.jsx("div",{className:"CustomModalBody",children:h.jsx(Oe,{children:h.jsxs(q,{xs:24,children:[h.jsxs(ut,{onClick:()=>I(s-1),children:[h.jsx(aCe,{})," Back"]}),h.jsx(ut,{type:"primary",onClick:()=>{O?(o.success({message:"Host added successfully",description:"It might take a moment to reflect..."}),T(),n?.()):I(s+1)},children:O?"Finish":h.jsxs(h.Fragment,{children:["Next ",h.jsx(u9,{})]})})]})})}):h.jsx(h.Fragment,{}),children:[h.jsx(Jt,{style:{margin:"0px 0px 2rem 0px"}}),h.jsx("div",{className:"CustomModalBody",children:h.jsx(Oe,{justify:"center",style:{marginBottom:"1rem"},children:h.jsx(q,{xs:24,children:h.jsx(y3,{size:"small",current:s,items:F$e})})})}),s===0&&h.jsx("div",{className:"CustomModalBody",children:h.jsx(Oe,{justify:"center",children:h.jsx(q,{xs:24,children:h.jsxs(Jn,{children:[h.jsx("p",{style:{marginTop:"0"},children:"Select an enrollment key to register with"}),h.jsx("div",{className:"",style:{textAlign:"right"},children:h.jsx(ut,{size:"small",type:"link",onClick:()=>E(!0),children:"Create new Key"})}),h.jsx(Ut,{size:"small",placeholder:"Search keys",onChange:D=>d(D.target.value),prefix:h.jsx(_r,{})}),h.jsx(Zn,{style:{marginTop:"1rem"},size:"small",pagination:{pageSize:5},columns:[{title:"Name",render(D,j){return j.tags.join(", ")},sorter(D,j){return D.tags.join(", ").localeCompare(j.tags.join(", "))},defaultSortOrder:"ascend"},{title:"Networks",render(D,j){return j.networks.join(", ")}}],dataSource:$,rowKey:"value",onRow:D=>({onClick:()=>{x(D),I(1)}}),rowClassName:D=>D.value===b?.value?"selected-row":""})]})})})}),s===1&&h.jsx("div",{className:"CustomModalBody",children:h.jsx(Oe,{justify:"center",children:h.jsx(q,{xs:24,children:h.jsxs(Jn,{children:[h.jsxs("p",{children:["Connect host to network(s)"," ",h.jsx("span",{style:{fontWeight:"bold"},children:b?.networks.join(", ")})," via key"," ",h.jsxs("span",{style:{fontWeight:"bold"},children:['"',b?.tags.join(", "),'"']})," ",h.jsx(ut,{type:"link",size:"small",onClick:()=>c(0),children:"Change"})]}),h.jsx(Jt,{}),h.jsxs(Oe,{style:{height:"4rem"},justify:"center",children:[h.jsx(q,{xs:4,style:{textAlign:"center"},children:h.jsxs("div",{className:`os-button ${f==="windows"?"active":""}`,onClick:D=>N(D,"windows"),children:[h.jsx("img",{src:`/icons/windows-${a}.jpg`,alt:"windows icon",className:"logo"}),h.jsx("p",{children:"Windows"})]})}),h.jsx(q,{xs:4,style:{textAlign:"center"},children:h.jsxs("div",{className:`os-button ${f==="macos"?"active":""}`,onClick:D=>N(D,"macos"),children:[h.jsx("img",{src:`/icons/macos-${a}.jpg`,alt:"macos icon",className:"logo"}),h.jsx("p",{children:"Mac"})]})}),h.jsx(q,{xs:4,style:{textAlign:"center"},children:h.jsxs("div",{className:`os-button ${f==="linux"?"active":""}`,onClick:D=>N(D,"linux"),children:[h.jsx("img",{src:`/icons/linux-${a}.jpg`,alt:"linux icon",className:"logo"}),h.jsx("p",{children:"Linux"})]})}),h.jsx(q,{xs:4,style:{textAlign:"center"},children:h.jsxs("div",{className:`os-button ${f==="freebsd13"||f==="freebsd14"?"active":""}`,onClick:D=>N(D,"freebsd13"),children:[h.jsx("img",{src:`/icons/freebsd-${a}.jpg`,alt:"freebsd icon",className:"logo"}),h.jsx("p",{children:"FreeBSD"})]})}),h.jsx(q,{xs:4,style:{textAlign:"center"},children:h.jsxs("div",{className:`os-button ${f==="docker"?"active":""}`,onClick:D=>N(D,"docker"),children:[h.jsx("img",{src:`/icons/docker-${a}.jpg`,alt:"docker icon",className:"logo"}),h.jsx("p",{children:"Docker"})]})})]}),h.jsx(Jt,{}),f==="windows"&&h.jsx(h.Fragment,{children:h.jsx(Oe,{children:h.jsxs(q,{xs:24,style:{textAlign:"center"},children:[h.jsx(ut,{type:"primary",href:Mu("windows","amd64")[0],block:!0,target:"_blank",rel:"noreferrer",children:"Download"}),h.jsx("small",{children:"Requires Windows 7 SP1 or later"}),h.jsx("div",{style:{marginTop:"1rem"},children:h.jsx(ce.Text,{style:{fontWeight:"bold"},children:"Note: Run the installer before proceeding"})})]})})}),f==="macos"&&h.jsx(h.Fragment,{children:h.jsx(Oe,{children:h.jsxs(q,{xs:24,style:{textAlign:"center"},children:[h.jsx(Xe.Item,{label:"Select your architecture",children:h.jsx(Lr,{value:g,onChange:D=>v(D),options:[{label:"Intel (AMD64)",value:"amd64"},{label:"Apple Silicon (M1/ARM64)",value:"arm64"}]})}),h.jsxs(ut,{type:"primary",href:Mu("macos",g)[0],block:!0,target:"_blank",rel:"noreferrer",children:["Download for ",g]}),h.jsx("br",{}),h.jsx("small",{children:"Requires Mac OS High Sierra 10.13 or later"}),h.jsx("div",{style:{marginTop:"1rem"},children:h.jsx(ce.Text,{style:{fontWeight:"bold"},children:"Note: Run the installer before proceeding"})})]})})}),f==="linux"&&h.jsx(h.Fragment,{children:h.jsx(Oe,{children:h.jsxs(q,{xs:24,children:[h.jsx(Xe.Item,{label:"Select your architecture",children:h.jsx(Lr,{value:g,onChange:D=>v(D),options:[{label:"AMD64",value:"amd64"},{label:"ARM64",value:"arm64"},{label:"ARMv7",value:"armv7"},{label:"ARMv6",value:"armv6"},{label:"ARMv5",value:"armv5"},{label:"MIPS-HARDFLOAT",value:"mips-hardfloat"},{label:"MIPS-SOFTFLOAT",value:"mips-softfloat"},{label:"MIPSLE-HARDFLOAT",value:"mipsle-hardfloat"},{label:"MIPSLE-SOFTFLOAT",value:"mipsle-softfloat"}]})}),h.jsx("h4",{style:{marginBottom:".5rem"},children:"Install with this command"}),h.jsx(ce.Text,{code:!0,copyable:!0,children:`wget -O netclient ${Mu("linux",g,"cli")[0]} && chmod +x ./netclient && sudo ./netclient install`}),h.jsx(Jt,{}),h.jsxs("div",{className:"",style:{marginTop:"1rem",textAlign:"center"},children:[h.jsx(ut,{type:"link",href:Mu("linux",g,"gui")[0],target:"_blank",rel:"noreferrer",children:"Download GUI"}),h.jsx(ut,{type:"link",href:"https://docs.netmaker.io/netclient.html#linux",target:"_blank",rel:"noreferrer",children:"View Docs"})]})]})})}),(f==="freebsd13"||f==="freebsd14")&&h.jsx(h.Fragment,{children:h.jsx(Oe,{children:h.jsxs(q,{xs:24,children:[h.jsx("h4",{style:{marginBottom:".5rem"},children:"Install with this command"}),h.jsx(ce.Title,{level:5,children:"FreeBSD 13"}),h.jsx(ce.Text,{code:!0,copyable:!0,children:`fetch -o /tmp/netclient ${Mu("freebsd13","amd64","cli")[0]} && chmod +x /tmp/netclient && sudo /tmp/netclient install`}),h.jsx("br",{}),h.jsx(ce.Title,{level:5,children:"FreeBSD 14"}),h.jsx(ce.Text,{code:!0,copyable:!0,children:`fetch -o /tmp/netclient ${Mu("freebsd14","amd64","cli")[0]} && chmod +x /tmp/netclient && sudo /tmp/netclient install`})]})})})]})})})}),s===2&&h.jsx("div",{className:"CustomModalBody",children:h.jsx(Oe,{justify:"center",children:h.jsx(q,{xs:24,children:h.jsxs(Jn,{children:[h.jsx(ce.Text,{children:"Steps to join a network:"}),(f==="windows"||f==="macos")&&h.jsxs("div",{children:[h.jsxs("ol",{children:[h.jsx("li",{children:"Open Netclient GUI"}),h.jsx("li",{children:'Select "Add New Network"'}),h.jsx("li",{children:"Click Join via Enrollemnt Key"}),h.jsxs("li",{children:["Enter"," ",h.jsx(ce.Text,{code:!0,copyable:!0,children:`${b?.token??""}`})," ","as enrollment key"]}),h.jsx("li",{children:"Click Submit and Get connected :)"})]}),h.jsx("small",{children:"Note: It might take a few minutes for the host to show up in the network(s)"})]}),f==="linux"&&h.jsxs("div",{children:[h.jsx("ol",{children:h.jsxs("li",{children:[h.jsx(ce.Text,{children:"Run"}),h.jsx(ce.Text,{code:!0,copyable:!0,children:`sudo netclient join -t ${`${b?.token??""}`}`})]})}),h.jsx("small",{children:"Note: It might take a few minutes for the host to show up in the network(s)"})]}),(f==="freebsd13"||f==="freebsd14")&&h.jsxs("div",{children:[h.jsx("ol",{children:h.jsxs("li",{children:[h.jsx(ce.Text,{children:"Run"}),h.jsx(ce.Text,{code:!0,copyable:!0,children:`sudo /tmp/netclient join -t ${`${b?.token??""}`}`})]})}),h.jsx("small",{children:"Note: It might take a few minutes for the host to show up in the network(s)"})]}),f==="docker"&&h.jsxs("div",{children:[h.jsx("ol",{children:h.jsxs("li",{children:[h.jsx(ce.Text,{children:"Run"}),h.jsx(ce.Text,{code:!0,copyable:!0,children:`sudo docker run -d --network host --privileged -e TOKEN=${b?.token} -v /etc/netclient:/etc/netclient --name netclient gravitl/netclient:${r.serverConfig?.Version??""}`})]})}),h.jsx("small",{children:"Note: It might take a few minutes for the host to show up in the network(s)"})]})]})})})}),i,h.jsx(B9,{isOpen:C,onCreateKey:D=>{S([...y,D]),x(D),E(!1)},onCancel:()=>{E(!1)}})]})}function z$e(e){const t=bi(),n=tn(),r=n.serverConfig?.IsEE==="yes",[o,i]=l.useState(!1),[a,s]=l.useState(!1),[c,u]=l.useState(!1);return h.jsxs(ao.Content,{style:{padding:e.isFullScreen?0:24},children:[h.jsx(Oe,{children:h.jsx(ao.Header,{style:{width:"100%",padding:"0px",backgroundColor:"transparent"},children:h.jsxs(Oe,{children:[h.jsx(q,{xs:12,children:!r&&h.jsx(cu,{message:"You are on the free plan",type:"warning",action:h.jsx(ut,{type:"link",onClick:()=>{window.location=yi?ch("upgrade"):D3()},children:h.jsx("span",{style:{textDecoration:"underline",color:"#D4B106"},children:"Upgrade now"})}),style:{width:"75%"}})}),h.jsx(q,{xs:12,style:{textAlign:"right"},children:h.jsxs(Qm,{direction:"horizontal",size:"large",align:"end",children:[h.jsx(Ut,{placeholder:"Search...",prefix:h.jsx(_r,{}),style:{borderRadius:"24px",width:"20rem"}}),h.jsxs(Mo.Button,{style:{marginTop:"-3rem",height:"100%"},type:"primary",menu:{items:[{key:"host",label:h.jsxs(h.Fragment,{children:[h.jsx(d9,{})," ",h.jsx(ce.Text,{children:"Connect new Host"})]}),onClick:()=>{u(!0)}}]},placement:"bottomRight",icon:h.jsx($g,{}),onClick:()=>i(!0),children:[h.jsx(PE,{})," Create"]}),h.jsx(Io,{title:"Docs",children:h.jsx(AL,{style:{cursor:"pointer",fontSize:"1.2rem"},onClick:()=>{window.open("https://docs.netmaker.io","_blank")}})})]})})]})})}),h.jsx(Oe,{children:h.jsx(q,{children:h.jsxs(Qm,{direction:"vertical",size:"middle",children:[h.jsxs(Jn,{children:[h.jsxs("h3",{children:["Start using ",Sr().productName]}),h.jsxs("p",{children:[Sr().productName," automates a secure superhighway between devices, clouds, virtual machines, and servers using WireGuard®. It blows past any NAT’s, firewalls, or subnets that stand between them to create a flat, simple network. The result is a secure overlay network that spans all your devices, wherever they are. Of course, ",Sr().productName," does a lot more than that. With ACL’s, Ingress, Egress, and Relays, you have complete control of your network."]}),h.jsx("div",{children:h.jsxs(ut,{type:"link",href:"https://netmaker.io/demo-page",target:"_blank",rel:"noreferrer",children:[h.jsx(u9,{}),"Take the tutorial"]})})]}),n.networks.length===0&&h.jsxs(Jn,{style:{maxWidth:"30%"},children:[h.jsx("h3",{children:"Add a network"}),h.jsx("p",{children:"Enable fast and secure connections between your devices. Create a network, and then add your hosts."}),h.jsx("div",{children:h.jsxs(ut,{type:"primary",onClick:()=>i(!0),children:[h.jsx(Dr,{}),"Get started with a network"]})})]}),n.hosts.length===0&&h.jsxs(Jn,{style:{maxWidth:"30%"},children:[h.jsx("h3",{children:"Add a host"}),h.jsx("p",{children:"Start creating your network by adding controllable devices as “hosts” on your platform. Servers, VM’s, your laptop, and more are all fair game."}),h.jsx("div",{children:h.jsxs(ut,{type:"primary",onClick:()=>u(!0),children:[h.jsx(Dr,{}),"Add a Host"]})})]})]})})}),h.jsx(T$e,{isOpen:a,onCancel:()=>s(!1)}),h.jsx(A3,{isOpen:o,onCreateNetwork:()=>{i(!1),t(Kt.NETWORKS_ROUTE)},onCancel:()=>i(!1)}),h.jsx(L3,{isOpen:c,onFinish:()=>t(Kt.HOSTS_ROUTE),onCancel:()=>u(!1)})]})}function B$e(){const{token:e}=Uo.useToken(),t=Xs();return h.jsx(Bg,{children:h.jsx(ao,{style:{height:"100vh"},children:h.jsx(Oe,{align:"middle",justify:"center",style:{height:"100%"},children:h.jsx(q,{xs:24,style:{textAlign:"center"},children:h.jsxs(Qm,{direction:"vertical",children:[h.jsx(mu,{style:{fontSize:"4rem",color:e.colorText}})," ",h.jsx("br",{}),h.jsx(ce.Text,{children:"Logging into the matrix..."})]})})})})},t.pathname)}function H$e(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}};function v8(e,t,n){e.loadNamespaces(t,H9(e,n))}function y8(e,t,n,r){typeof n=="string"&&(n=[n]),n.forEach(o=>{e.options.ns.indexOf(o)<0&&e.options.ns.push(o)}),e.loadLanguages(t,H9(e,r))}function U$e(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],o=t.options?t.options.fallbackLng:!1,i=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const a=(s,c)=>{const u=t.services.backendConnector.state[`${s}|${c}`];return u===-1||u===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||a(r,e)&&(!o||a(i,e)))}function W$e(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(zE("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(o,i)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!i(o.isLanguageChangingTo,e))return!1}}):U$e(e,t,n)}const V$e=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,K$e={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},G$e=e=>K$e[e],Y$e=e=>e.replace(V$e,G$e);let BE={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Y$e};function q$e(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};BE={...BE,...e}}function X$e(){return BE}let U9;function Q$e(e){U9=e}function Z$e(){return U9}const J$e={type:"3rdParty",init(e){q$e(e.options.react),Q$e(e)}},e4e=l.createContext();class t4e{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const n4e=(e,t)=>{const n=l.useRef();return l.useEffect(()=>{n.current=t?n.current:e},[e,t]),n.current};function Hg(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:o}=l.useContext(e4e)||{},i=n||r||Z$e();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new t4e),!i){zE("You will need to pass in an i18next instance by using initReactI18next");const C=($,O)=>typeof O=="string"?O:O&&typeof O=="object"&&typeof O.defaultValue=="string"?O.defaultValue:Array.isArray($)?$[$.length-1]:$,E=[C,{},!1];return E.t=C,E.i18n={},E.ready=!1,E}i.options.react&&i.options.react.wait!==void 0&&zE("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const a={...X$e(),...i.options.react,...t},{useSuspense:s,keyPrefix:c}=a;let u=e||o||i.options&&i.options.defaultNS;u=typeof u=="string"?[u]:u||["translation"],i.reportNamespaces.addUsedNamespaces&&i.reportNamespaces.addUsedNamespaces(u);const d=(i.isInitialized||i.initializedStoreOnce)&&u.every(C=>W$e(C,i,a));function f(){return i.getFixedT(t.lng||null,a.nsMode==="fallback"?u:u[0],c)}const[p,g]=l.useState(f);let v=u.join();t.lng&&(v=`${t.lng}${v}`);const y=n4e(v),S=l.useRef(!0);l.useEffect(()=>{const{bindI18n:C,bindI18nStore:E}=a;S.current=!0,!d&&!s&&(t.lng?y8(i,t.lng,u,()=>{S.current&&g(f)}):v8(i,u,()=>{S.current&&g(f)})),d&&y&&y!==v&&S.current&&g(f);function $(){S.current&&g(f)}return C&&i&&i.on(C,$),E&&i&&i.store.on(E,$),()=>{S.current=!1,C&&i&&C.split(" ").forEach(O=>i.off(O,$)),E&&i&&E.split(" ").forEach(O=>i.store.off(O,$))}},[i,v]);const b=l.useRef(!0);l.useEffect(()=>{S.current&&!b.current&&g(f),b.current=!1},[i,c]);const x=[p,i,d];if(x.t=p,x.i18n=i,x.ready=d,d||!d&&!s)return x;throw new Promise(C=>{t.lng?y8(i,t.lng,u,()=>C()):v8(i,u,()=>C())})}const{Content:r4e,Sider:o4e}=ao,b8="200px",i4e="80px";function a4e(){const{token:e}=Uo.useToken(),t=tn(S=>S.currentTheme),n=tn(S=>S.setCurrentTheme),r=bi(),{i18n:o}=Hg(),i=tn(),a=tn(S=>S.fetchNetworks),s=tn(S=>S.logout),c=Xs(),[u,d]=l.useState(!1),f=l.useMemo(()=>structuredClone(i.networks).sort((S,b)=>S.netid.localeCompare(b.netid)).slice(0,5),[i.networks]),p=l.useMemo(()=>{const{logoDarkUrl:S,logoLightUrl:b,logoDarkSmallUrl:x,logoLightSmallUrl:C}=Sr();return t==="dark"?u?x:S:t==="light"?u?C:b:""},[t,u]),g=l.useMemo(()=>[{key:"dashboard",icon:gCe,label:"Dashboard"},{key:"networks",icon:PE,label:"Networks",children:[...f.map(S=>({key:`networks/${S.netid}`,label:S.netid})),{type:"divider"},{key:"all-networks",label:"All Networks"}]},{key:"hosts",icon:d9,label:"Hosts"},{key:"enrollment-keys",icon:ICe,label:"Enrollment Keys"},{type:"divider"}].concat(yi?[{key:"amui",icon:py,label:"Manage Account"}]:[]).concat(yi||i.user?.isadmin||i.user?.issuperadmin?[{key:"users",icon:py,label:"Users"}]:[]).map(S=>({key:S.key,type:S.type,style:{marginTop:S.type==="divider"?"1rem":"",marginBottom:S.type==="divider"?"1rem":""},icon:S.icon&&Ne.createElement(S.icon),label:S.label,children:S.children?.map(b=>({key:b?.key,label:b?.label,type:b?.type}))})),[f,i.user?.isadmin]),v=l.useMemo(()=>[{icon:py,label:i.username}].map((S,b)=>({key:String(b+1),icon:Ne.createElement(S.icon),label:S.label,children:[{style:{paddingLeft:u?".2rem":"1rem",paddingRight:u?".2rem":"1rem",paddingTop:u?".2rem":"1rem",paddingBottom:u?".2rem":"1rem"},label:h.jsxs("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"space-between",alignItems:"center"},onClick:x=>x.stopPropagation(),children:["Dark theme",h.jsx(po,{checked:t==="dark",onClick:()=>{n(t==="dark"?"light":"dark")}})]})},{style:{paddingLeft:u?".2rem":"1rem",paddingRight:u?".2rem":"1rem",paddingTop:u?".2rem":"1rem",paddingBottom:u?".2rem":"1rem"},label:h.jsxs("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"space-between",alignItems:"center",gap:"1rem"},onClick:x=>x.stopPropagation(),children:[h.jsx(PE,{}),h.jsx(Lr,{style:{width:"100%"},value:o.language,options:[{label:h.jsxs(h.Fragment,{children:[h.jsx("img",{style:{width:"20px",height:"12px"},src:"https://img.freepik.com/free-vector/illustration-uk-flag_53876-18166.jpg?w=1800&t=st=1679225900~exp=1679226500~hmac=0cc9ee0d4d5196bb3c610ca92d669f3c0ebf95431423a2c4ff7196f81c10891e",alt:"english",loading:"eager",referrerPolicy:"no-referrer"})," ","English"]}),value:"en"}],onChange:x=>{o.changeLanguage(x)}})]})},{style:{paddingLeft:u?".2rem":"1rem",paddingRight:u?".2rem":"1rem",paddingTop:u?".2rem":"1rem",paddingBottom:u?".2rem":"1rem"},label:h.jsxs("div",{style:{display:"flex",flexFlow:"row nowrap",gap:"1rem",alignItems:"center"},onClick:()=>{s(),r(Kt.LOGIN_ROUTE)},children:[h.jsx(ACe,{})," Logout"]})}]})),[u,t,o.language,r,n,i.username,s]),y=l.useCallback(()=>{if(c.pathname===Kt.NETWORKS_ROUTE)return["networks","all-networks"];if(c.pathname===Kt.HOSTS_ROUTE)return["hosts","all-hosts"];if(c.pathname===Kt.CLIENTS_ROUTE)return["clients"];if(c.pathname===Kt.ENROLLMENT_KEYS_ROUTE)return["enrollment-keys"];if(c.pathname===Kt.DASHBOARD_ROUTE)return["dashboard"];if(c.pathname===Kt.USERS_ROUTE)return["users"]},[c.pathname]);return l.useEffect(()=>{a()},[a]),h.jsx(Bg,{children:h.jsxs(ao,{hasSider:!0,children:[h.jsxs(o4e,{collapsible:!0,collapsed:u,onCollapse:S=>d(S),width:b8,theme:"light",style:{overflow:"auto",height:"100vh",position:"fixed",left:0,top:0,bottom:0,borderRight:`1px solid ${e.colorBorder}`},children:[h.jsx(du,{to:Kt.DASHBOARD_ROUTE,children:h.jsx("img",{src:p,alt:Sr().logoAltText,style:{width:"100%",padding:"1rem 2rem 1rem 2rem"}})}),h.jsx(f1,{theme:"light",mode:"inline",selectedKeys:y(),items:g,defaultOpenKeys:["networks","hosts"],style:{borderRight:"none"},onClick:S=>{switch(S.key){case"dashboard":r(Kt.DASHBOARD_ROUTE);break;case"all-networks":r(Kt.NETWORKS_ROUTE);break;case"hosts":r(Kt.HOSTS_ROUTE);break;case"clients":r(Kt.CLIENTS_ROUTE);break;case"enrollment-keys":r(Kt.ENROLLMENT_KEYS_ROUTE);break;case"amui":window.location=ch();break;case"users":r(Kt.USERS_ROUTE);break;default:S.key.startsWith("networks/")?r(_f(S.key.replace("networks/",""))):S.key.startsWith("hosts/")&&r(Wf(S.key.replace("hosts/","")));break}}}),!u&&h.jsxs("div",{style:{marginTop:"1rem",padding:"0rem 1.5rem",fontSize:".8rem"},children:[h.jsxs(ce.Text,{style:{fontSize:"inherit"},children:["UI: ",R3.getUiVersion()]}),h.jsx("br",{}),h.jsxs(ce.Text,{style:{fontSize:"inherit"},type:"secondary",children:["Server: ",i.serverConfig?.Version??"n/a"]})]}),h.jsx(f1,{theme:"light",mode:"inline",selectable:!1,items:v,style:{borderRight:"none",position:"absolute",bottom:"0"}})]}),h.jsx(ao,{style:{transition:"all 200ms",marginLeft:u?i4e:b8},children:h.jsxs(r4e,{style:{background:e.colorBgContainer,overflow:"initial",minHeight:"100vh"},children:[!i.serverStatus.isHealthy&&h.jsx(Oe,{children:h.jsx(q,{xs:24,children:h.jsx(cu,{type:"warning",showIcon:!0,style:{border:"none",height:"4rem",fontSize:"1rem",color:"#D4B106"},message:i.serverStatus.status?.healthyNetwork?`Your ${Sr().productName} server is not running properly. This may impact network performance. Contact your administrator.`:`Unable to reach ${Sr().productName} server. Check you internet connection.`})})}),h.jsx(Jwe,{})]})})]})},c.pathname)}const x8=[{title:"Select Network"},{title:"Connect Host"}];function s4e(e){const t=bi(),n=tn(),r=hx(),o=tn(x=>x.fetchNetworks),[i,a]=l.useState(0),[s,c]=l.useState(null),[u,d]=l.useState("windows"),[f,p]=l.useState(!1),g=l.useCallback(x=>{a(x)},[]),v=l.useCallback(()=>{t(r.get("redirectTo")??Kt.HOSTS_ROUTE)},[t,r]),y=l.useCallback(()=>{t(r.get("redirectTo")??Kt.HOSTS_ROUTE)},[t,r]),S=l.useCallback((x,C)=>{const E=".NewHostPage .os-button",$="active";document.querySelectorAll(E).forEach(O=>{O.classList.remove($)}),x.currentTarget.classList.add($),d(C)},[]),b=l.useCallback(()=>{o()},[o]);return l.useEffect(()=>{b()},[b]),l.useEffect(()=>{n.networks.length===1&&c(n.networks[0])},[n.networks]),h.jsxs(ao.Content,{className:"NewHostPage",style:{position:"relative",height:"100%",padding:e.isFullScreen?0:24,paddingTop:"4rem"},children:[h.jsx(Oe,{justify:"center",style:{marginBottom:"1rem"},children:h.jsx(q,{xs:24,md:12,children:h.jsx(y3,{size:"small",current:i,items:x8,onChange:g})})}),i===0&&h.jsx(Oe,{justify:"center",children:h.jsx(q,{xs:24,lg:12,children:h.jsxs(Jn,{children:[h.jsx("p",{style:{marginTop:"0"},children:"Select a network"}),h.jsx(Ut,{placeholder:"Search network...",prefix:h.jsx(_r,{})}),h.jsx(uy,{size:"small",className:"networks-list",style:{maxHeight:"50vh",overflow:"auto",marginTop:".5rem"},children:n.networks.sort((x,C)=>x.netid.localeCompare(C.netid)).map(x=>h.jsx(uy.Item,{style:{cursor:"pointer"},onClick:()=>{c(x),g(1)},children:h.jsx(uy.Item.Meta,{style:{cursor:"pointer"},title:x.netid,description:`IPv4 Range: ${x.addressrange}, IPv6 Range: ${x.addressrange6}`})},x.netid))}),h.jsxs(ut,{type:"link",style:{marginTop:"1rem"},onClick:()=>p(!0),children:[h.jsx(Dr,{})," Add network"]})]})})}),i===1&&h.jsx(Oe,{justify:"center",children:h.jsx(q,{xs:24,lg:12,children:h.jsxs(Jn,{children:[h.jsxs("p",{children:["Connect host to"," ",h.jsxs("span",{style:{fontWeight:"bold"},children:[s?.netid," (",`${s?.addressrange}, ${s?.addressrange6}`,")"]})," ",h.jsx(ut,{type:"link",size:"small",onClick:()=>a(0),children:"Change"})]}),h.jsx(Jt,{}),h.jsxs(Oe,{style:{height:"4rem"},justify:"center",children:[h.jsx(q,{xs:4,style:{textAlign:"center"},children:h.jsxs("div",{className:"os-button active",onClick:x=>S(x,"windows"),children:[h.jsx("img",{src:"/icons/windows.svg",alt:"windows icon",className:"logo"}),h.jsx("p",{children:"Windows"})]})}),h.jsx(q,{xs:4,style:{textAlign:"center"},children:h.jsxs("div",{className:"os-button",onClick:x=>S(x,"macos"),children:[h.jsx("img",{src:"/icons/macos.svg",alt:"macos icon",className:"logo"}),h.jsx("p",{children:"Mac"})]})}),h.jsx(q,{xs:4,style:{textAlign:"center"},children:h.jsxs("div",{className:"os-button",onClick:x=>S(x,"linux"),children:[h.jsx("img",{src:"/icons/linux.svg",alt:"linux icon",className:"logo"}),h.jsx("p",{children:"Linux"})]})}),h.jsx(q,{xs:4,style:{textAlign:"center"},children:h.jsxs("div",{className:"os-button",onClick:x=>S(x,"freebsd"),children:[h.jsx("img",{src:"/icons/freebsd.svg",alt:"freebsd icon",className:"logo"}),h.jsx("p",{children:"FreeBSD"})]})}),h.jsx(q,{xs:4,style:{textAlign:"center"},children:h.jsxs("div",{className:"os-button",onClick:x=>S(x,"docker"),children:[h.jsx("img",{src:"/icons/docker.svg",alt:"docker icon",className:"logo"}),h.jsx("p",{children:"Docker"})]})})]}),h.jsx(Jt,{}),u==="windows"&&h.jsxs(h.Fragment,{children:[h.jsx(Oe,{children:h.jsxs(q,{xs:24,style:{textAlign:"center"},children:[h.jsx(ut,{type:"primary",href:Mu("windows","amd64")[0],style:{width:"100%"},children:"Download"}),h.jsx("small",{children:"Requires Windows 7 SP1 or later"})]})}),h.jsx(Jt,{}),h.jsx(Oe,{children:h.jsxs(q,{xs:24,children:[h.jsx("h4",{style:{marginTop:0},children:"Install with Powershell"}),h.jsxs(Ut.Group,{compact:!0,children:[h.jsx(Ut,{disabled:!0,style:{width:"calc(100% - 32px)"},defaultValue:`. { iwr -useb https://raw.githubusercontent.com/gravitl/netmaker/master/scripts/netclient-install.ps1 } | iex; Netclient-Install -version ""`}),h.jsx(ut,{icon:h.jsx(OE,{})})]})]})})]}),u==="macos"&&h.jsxs(h.Fragment,{children:[h.jsx(Oe,{children:h.jsxs(q,{xs:24,style:{textAlign:"center"},children:[h.jsx(ut,{type:"primary",href:{}.VITE_NETCLIENT_MAC_DOWNLOAD_URL,style:{width:"100%"},children:"Download"}),h.jsx("small",{children:"Requires Mac OS High Sierra 10.13 or later"})]})}),h.jsx(Jt,{}),h.jsx(Oe,{children:h.jsxs(q,{xs:24,children:[h.jsx("h4",{style:{marginTop:0},children:"Install with these command(s)"}),h.jsx(Ut.TextArea,{rows:3,defaultValue:`brew tap gravitl/netclient brew audit netclient brew install netclient`,disabled:!0})]})})]}),u==="freebsd"&&h.jsx(h.Fragment,{children:h.jsx(Oe,{children:h.jsxs(q,{xs:24,children:[h.jsx("h4",{style:{marginTop:0},children:"Install with these command(s)"}),h.jsxs(Ut.Group,{compact:!0,children:[h.jsx(Ut,{disabled:!0,style:{width:"calc(100% - 32px)"},defaultValue:`curl -sfL https://raw.githubusercontent.com/gravitl/netmaker/master/scripts/netclient-install.sh | VERSION="" sh -`}),h.jsx(ut,{icon:h.jsx(OE,{})})]})]})})}),u==="docker"&&h.jsx(h.Fragment,{children:h.jsx(Oe,{children:h.jsxs(q,{xs:24,children:[h.jsx("h4",{style:{marginTop:0},children:"Check the docs for installation steps"}),h.jsx(ut,{style:{width:"100%"},type:"primary",href:"https://docs.netmaker.io/netclient.html#docker",target:"_blank",children:"Go to Docs"})]})})}),u==="linux"&&h.jsx(h.Fragment,{children:h.jsx(Oe,{children:h.jsxs(q,{xs:24,children:[h.jsx("h4",{style:{marginTop:0},children:"Check the docs for installation steps"}),h.jsx(ut,{style:{width:"100%"},type:"primary",href:"https://docs.netmaker.io/netclient.html#linux",target:"_blank",children:"Go to Docs"})]})})})]})})}),h.jsx(ao.Footer,{style:{position:"absolute",bottom:"0",width:"100%"},children:h.jsx(Oe,{justify:"center",children:h.jsxs(q,{xs:24,lg:12,style:{display:"flex",justifyContent:"space-between"},children:[h.jsxs("div",{className:"",children:[h.jsx(ut,{type:"link",danger:!0,onClick:y,children:"Cancel"}),h.jsx(ut,{type:"link",onClick:()=>a(i-1),disabled:i<=0,children:"Previous"})]}),i===x8.length-1?h.jsx(ut,{type:"primary",onClick:v,children:"Finish"}):h.jsx(ut,{type:"primary",onClick:()=>a(i+1),children:"Next"})]})})}),h.jsx(A3,{isOpen:f,onCreateNetwork:()=>{p(!1)},onCancel:()=>{p(!1)}})]})}function l4e({isOpen:e,host:t,onUpdateHost:n,onCancel:r}){const[o]=Xe.useForm(),[i,a]=er.useNotification(),c=tn().updateHost,u=Xe.useWatch("isstatic",o),d=()=>{o.resetFields()},f=async()=>{try{const p=await o.validateFields(),g=(await wa.updateHost(t.id,{...t,...p})).data;i.success({message:`Host ${t.id} updated`}),c(g.id,g),n(g)}catch(p){i.error({message:"Failed to update host",description:Qt(p)})}};return h.jsxs(fn,{title:h.jsxs(ce.Title,{style:{fontSize:"1.25rem",fontWeight:"bold"},children:["Update host (ID: ",t.id,")"]}),open:e,onCancel:p=>{d(),r?.(p)},footer:null,centered:!0,className:"CustomModal",children:[h.jsx(Jt,{style:{margin:"0px 0px 2rem 0px"}}),h.jsxs(Xe,{name:"update-host-form",form:o,layout:"vertical",initialValues:t,children:[h.jsx("div",{className:"scrollable-modal-body",children:h.jsxs("div",{className:"CustomModalBody",children:[h.jsx(Xe.Item,{label:"Host name",name:"name",rules:[{required:!0}],"data-nmui-intercom":"update-host-form_name",children:h.jsx(Ut,{placeholder:"Host name"})}),h.jsx(Xe.Item,{label:"Maximum Transmission Unit (MTU)",name:"mtu",rules:[{required:!0}],"data-nmui-intercom":"update-host-form_mtu",children:h.jsx(vm,{placeholder:"MTU",style:{width:"100%"}})}),h.jsx(Xe.Item,{label:"Listen Port",name:"listenport",rules:[{required:!0}],"data-nmui-intercom":"update-host-form_listenport",children:h.jsx(vm,{placeholder:"Listen Port",min:0,style:{width:"100%"}})}),h.jsx(Xe.Item,{label:"Verbosity",name:"verbosity",rules:[{required:!0}],"data-nmui-intercom":"update-host-form_verbosity",children:h.jsx(vm,{placeholder:"Verbosity",min:0,max:4,style:{width:"100%"}})}),h.jsx(Xe.Item,{label:"Static Endpoint",name:"isstatic",valuePropName:"checked",rules:[{required:!0}],"data-nmui-intercom":"update-host-form_isstatic",children:h.jsx(po,{})}),h.jsx(Xe.Item,{label:"Endpoint IP",name:"endpointip",rules:[{required:u}],"data-nmui-intercom":"update-host-form_endpointip",children:h.jsx(Ut,{placeholder:"Endpoint IP",disabled:!u})}),h.jsx(Xe.Item,{label:"Default Host",name:"isdefault",valuePropName:"checked",rules:[{required:!0}],"data-nmui-intercom":"update-host-form_isdefault",children:h.jsx(po,{})})]})}),h.jsx(Jt,{style:{margin:"0px 0px 2rem 0px"}}),h.jsx("div",{className:"CustomModalBody",children:h.jsx(Oe,{children:h.jsx(q,{xs:24,style:{textAlign:"right"},children:h.jsx(Xe.Item,{noStyle:!0,"data-nmui-intercom":"update-host-form_submit",children:h.jsx(ut,{type:"primary",onClick:f,children:"Update Host"})})})})})]}),a]})}function c4e(e){const{hostId:t}=ix(),n=bi(),r=tn(),[o,i]=er.useNotification(),{token:a}=Uo.useToken(),s=hx(),c=r.updateHost,u=r.deleteHost,[d,f]=l.useState(!1),[p,g]=l.useState(!1),[v,y]=l.useState(null),[S,b]=l.useState(""),x=l.useMemo(()=>[{title:"Name",dataIndex:"name",render:P=>h.jsxs(ce.Text,{children:[P," ",P===v?.defaultinterface?h.jsx(Xr,{children:"Default"}):h.jsx(h.Fragment,{})]})},{title:"IP Address",dataIndex:"addressString"}],[v?.defaultinterface]),C=l.useCallback(()=>{g(!1)},[]),E=l.useCallback(()=>{const P=r.nodes.filter(A=>A.hostid===v?.id).map(A=>io(A)).map(A=>{switch(A){case"healthy":return 3;case"warning":return 2;case"error":return 1;default:return 0}}).filter(A=>A!==0);let M=Number.MAX_SAFE_INTEGER;switch(P.forEach(A=>{M=Math.min(M,A)}),M){default:return h.jsx(Xr,{children:"● Unknown"});case 1:return h.jsx(Xr,{color:"error",children:"● Error"});case 2:return h.jsx(Xr,{color:"warning",children:"● Warning"});case 3:return h.jsx(Xr,{color:"success",children:"● Healthy"})}},[v?.id,r.nodes]),$=l.useCallback(()=>{f(!0),t||n(Kt.HOSTS_ROUTE);const P=r.hosts.find(M=>M.id===t);if(!P){o.error({message:`Host ${t} not found`}),n(Kt.HOSTS_ROUTE);return}y(P),f(!1)},[t,r.hosts,n,o]),O=l.useCallback(async()=>{try{if(!t)throw new Error("Host not found");await wa.deleteHost(t,!0),o.success({message:`Host ${v?.name} deleted`}),u(t),n(Kt.HOSTS_ROUTE)}catch(P){P instanceof Ji?o.error({message:"Failed to delete host",description:Qt(P)}):o.error({message:P instanceof Error?P.message:"Failed to delete host"})}},[t,o,v?.name,u,n]),I=()=>{if(!v)return;const P=r.nodes.filter(M=>M.hostid===v.id);fn.confirm({title:`Do you want to delete host ${v?.name}?`,icon:h.jsx(lc,{}),content:h.jsx(h.Fragment,{children:h.jsx(Oe,{children:P.length>0&&h.jsxs(q,{xs:24,children:[h.jsx(ce.Text,{color:"warning",children:"Host will be removed from the following networks:"}),h.jsx("ul",{children:P.map(M=>h.jsx("li",{children:M.network},M.id))})]})})}),onOk(){O()}})},N=l.useCallback(async()=>{v&&fn.confirm({title:"Toggle defaultness",content:`Are you sure you want to turn ${v.isdefault?"off":"on"} defaultness for this host?`,onOk:async()=>{try{const P=(await wa.updateHost(v.id,{...v,isdefault:!v.isdefault})).data;o.success({message:`Host ${v.id} updated`}),c(v.id,P)}catch(P){o.error({message:"Failed to update host",description:Qt(P)})}}})},[v,o,c]),_=l.useCallback(()=>{t&&fn.confirm({title:"Refresh host keys",content:"Are you sure you want to refresh this host's keys?",onOk:async()=>{try{await wa.refreshHostKeys(t),o.success({message:"Host keys refreshing...",description:"Host key pairs are refreshing. This may take a while."})}catch(P){o.error({message:"Failed to refresh host keys",description:Qt(P)})}}})},[o,t]),T=l.useCallback(()=>v?h.jsx("div",{className:"",style:{width:"100%",display:"flex",justifyContent:"center",alignItems:"center",flexFlow:"column nowrap"},children:h.jsxs(Jn,{style:{width:"50%"},children:[h.jsx(ce.Title,{level:5,style:{marginTop:"0rem"},children:"Host details"}),h.jsxs(Oe,{style:{borderBottom:`1px solid ${a.colorBorder}`,padding:".5rem 0rem"},"data-nmui-intercom":"host-details_id",children:[h.jsx(q,{xs:12,children:h.jsx(ce.Text,{disabled:!0,children:"ID"})}),h.jsx(q,{xs:12,children:h.jsx(ce.Text,{children:v.id})})]}),h.jsxs(Oe,{style:{borderBottom:`1px solid ${a.colorBorder}`,padding:".5rem 0rem"},"data-nmui-intercom":"host-details_endpoint",children:[h.jsx(q,{xs:12,children:h.jsx(ce.Text,{disabled:!0,children:"Endpoint"})}),h.jsx(q,{xs:12,children:h.jsx(ce.Text,{children:v.endpointip})})]}),h.jsxs(Oe,{style:{borderBottom:`1px solid ${a.colorBorder}`,padding:".5rem 0rem"},"data-nmui-intercom":"host-details_listenport",children:[h.jsx(q,{xs:12,children:h.jsx(ce.Text,{disabled:!0,children:"Listen Port"})}),h.jsx(q,{xs:12,children:h.jsx(ce.Text,{children:v.listenport})})]}),h.jsxs(Oe,{style:{borderBottom:`1px solid ${a.colorBorder}`,padding:".5rem 0rem"},"data-nmui-intercom":"host-details_macaddress",children:[h.jsx(q,{xs:12,children:h.jsx(ce.Text,{disabled:!0,children:"MAC Address"})}),h.jsx(q,{xs:12,children:h.jsx(ce.Text,{children:v.macaddress})})]}),h.jsxs(Oe,{style:{borderBottom:`1px solid ${a.colorBorder}`,padding:".5rem 0rem"},"data-nmui-intercom":"host-details_mtu",children:[h.jsx(q,{xs:12,children:h.jsx(ce.Text,{disabled:!0,children:"MTU"})}),h.jsx(q,{xs:12,children:h.jsx(ce.Text,{children:v.mtu})})]}),h.jsxs(Oe,{style:{borderBottom:`1px solid ${a.colorBorder}`,padding:".5rem 0rem"},"data-nmui-intercom":"host-details_publickey",children:[h.jsx(q,{xs:12,children:h.jsx(ce.Text,{disabled:!0,children:"Public Key"})}),h.jsx(q,{xs:12,children:h.jsx(ce.Text,{children:v.publickey})})]}),h.jsxs(Oe,{style:{borderBottom:`1px solid ${a.colorBorder}`,padding:".5rem 0rem"},"data-nmui-intercom":"host-details_os",children:[h.jsx(q,{xs:12,children:h.jsx(ce.Text,{disabled:!0,children:"Operating System"})}),h.jsx(q,{xs:12,children:h.jsx(ce.Text,{children:v.os})})]}),h.jsxs(Oe,{style:{borderBottom:`1px solid ${a.colorBorder}`,padding:".5rem 0rem"},"data-nmui-intercom":"host-details_version",children:[h.jsx(q,{xs:12,children:h.jsx(ce.Text,{disabled:!0,children:"Version"})}),h.jsx(q,{xs:12,children:h.jsx(ce.Text,{children:v.version})})]}),h.jsxs(Oe,{style:{borderBottom:`1px solid ${a.colorBorder}`,padding:".5rem 0rem"},"data-nmui-intercom":"host-details_verbosity",children:[h.jsx(q,{xs:12,children:h.jsx(ce.Text,{disabled:!0,children:"Verbosity"})}),h.jsx(q,{xs:12,children:h.jsx(ce.Text,{children:v.verbosity})})]}),h.jsxs(Oe,{style:{borderBottom:`1px solid ${a.colorBorder}`,padding:".5rem 0rem"},"data-nmui-intercom":"host-details_defaultinterface",children:[h.jsx(q,{xs:12,children:h.jsx(ce.Text,{disabled:!0,children:"Default Interface"})}),h.jsx(q,{xs:12,children:h.jsx(ce.Text,{children:v.defaultinterface})})]}),h.jsxs(Oe,{style:{borderBottom:`1px solid ${a.colorBorder}`,padding:".5rem 0rem"},"data-nmui-intercom":"host-details_isdefault",children:[h.jsx(q,{xs:12,children:h.jsx(ce.Text,{disabled:!0,children:"Default Host"})}),h.jsx(q,{xs:12,children:h.jsx(ce.Text,{children:v.isdefault?"Yes":"No"})})]}),h.jsxs(Oe,{style:{borderBottom:`1px solid ${a.colorBorder}`,padding:".5rem 0rem"},"data-nmui-intercom":"host-details_isstatic",children:[h.jsx(q,{xs:12,children:h.jsx(ce.Text,{disabled:!0,children:"Static Endpoint"})}),h.jsx(q,{xs:12,children:h.jsx(ce.Text,{children:v.isstatic?"Yes":"No"})})]}),h.jsxs(Oe,{style:{borderBottom:`1px solid ${a.colorBorder}`,padding:".5rem 0rem"},"data-nmui-intercom":"host-details_debug",children:[h.jsx(q,{xs:12,children:h.jsx(ce.Text,{disabled:!0,children:"Debug"})}),h.jsx(q,{xs:12,children:h.jsx(ce.Text,{children:v.debug?"Yes":"No"})})]})]})}):h.jsx(Nr,{active:!0}),[v,a.colorBorder]),D=l.useCallback(()=>h.jsxs(h.Fragment,{children:[h.jsx(Oe,{children:h.jsx(q,{xs:12,md:8,children:h.jsx(Ut,{size:"large",placeholder:"Search interfaces",value:S,onChange:P=>b(P.target.value),prefix:h.jsx(_r,{})})})}),h.jsx(Oe,{style:{marginTop:"1rem"},children:h.jsx(q,{xs:24,children:h.jsx(Zn,{columns:x,dataSource:v?.interfaces?.filter(P=>`${P.name}${P.addressString}`.toLocaleLowerCase().includes(S.toLocaleLowerCase().trim()))??[],rowKey:P=>`${P.name}${P.addressString}`})})})]}),[v?.interfaces,x,S]),j=l.useMemo(()=>[{key:"overview",label:"Overview",children:v?T():h.jsx(Nr,{active:!0})},{key:"network-interface",label:"Network Interfaces",children:v?D():h.jsx(Nr,{active:!0})}],[D,T,v]);return l.useEffect(()=>{$()},[$]),l.useEffect(()=>{s.get("edit")==="true"&&g(!0)},[]),h.jsxs(ao.Content,{className:"HostDetailsPage",style:{position:"relative",height:"100%",padding:e.isFullScreen?0:24},children:[h.jsx(Nr,{loading:d,active:!0,className:"page-padding",children:h.jsx(Oe,{className:"tabbed-page-row-padding",children:h.jsxs(q,{xs:24,children:[h.jsx(du,{to:Kt.HOSTS_ROUTE,children:"View All Hosts"}),h.jsxs(Oe,{children:[h.jsx(q,{xs:18,children:h.jsxs(ce.Title,{level:2,style:{marginTop:".5rem",marginBottom:"2rem"},children:[v?.name??"...",h.jsx("span",{style:{marginLeft:"1rem"},children:E()})]})}),h.jsx(q,{xs:6,style:{textAlign:"right"},children:h.jsx(Mo,{placement:"bottomRight",menu:{items:[{key:"default",label:h.jsx(ce.Text,{onClick:P=>{P.stopPropagation(),N()},children:v?.isdefault?"Unmake default":"Make default"})},{key:"refresh-key",label:h.jsx(ce.Text,{children:"Refresh Key"}),onClick:P=>{P.domEvent.stopPropagation(),_()}},{key:"edit",label:h.jsx(ce.Text,{children:"Edit"}),onClick:P=>{P.domEvent.stopPropagation(),g(!0)}},{key:"delete",label:h.jsx(ce.Text,{type:"danger",children:"Delete"}),onClick:P=>{P.domEvent.stopPropagation(),I()}}]},children:h.jsxs(ut,{type:"default",style:{marginRight:".5rem"},children:[h.jsx(T3,{})," Host Settings"]})})})]}),h.jsx(Ah,{items:j})]})})}),i,!!v&&h.jsx(l4e,{isOpen:p,host:v,onCancel:()=>{g(!1)},onUpdateHost:C},v.id)]})}function u4e(e){const t=tn(),n=bi(),r=t.networks,[o,i]=l.useState(!1),[a,s]=l.useState(""),c=[{title:"Name",dataIndex:"netid",key:"netid",sorter:{compare:(f,p)=>f.netid.localeCompare(p.netid)},defaultSortOrder:"ascend",render:f=>h.jsx(du,{to:`${Kt.NETWORKS_ROUTE}/${f}`,children:f})},{title:"Address Range (IPv4)",dataIndex:"addressrange",key:"addressrange",render:f=>h.jsx("div",{onClick:p=>p.stopPropagation(),children:h.jsx(ce.Text,{children:f})})},{title:"Address Range (IPv6)",dataIndex:"addressrange6",key:"addressrange6",render:f=>h.jsx("div",{onClick:p=>p.stopPropagation(),children:h.jsx(ce.Text,{children:f})})},{title:"Hosts Count",render(f,p){const g=t.nodes?.filter(v=>v.network===p.netid).length??0;return h.jsx("div",{onClick:v=>v.stopPropagation(),children:h.jsx(ce.Text,{children:g})})}},{title:"Network Last Modified",dataIndex:"networklastmodified",key:"networklastmodified",render:f=>h.jsx("div",{onClick:p=>p.stopPropagation(),children:h.jsx(ce.Text,{children:new Date(f*1e3).toLocaleString()})})},{title:"Hosts Last Modified",dataIndex:"nodeslastmodified",key:"nodeslastmodified",render:f=>h.jsx("div",{onClick:p=>p.stopPropagation(),children:h.jsx(ce.Text,{children:new Date(f*1e3).toLocaleString()})})}],u=l.useMemo(()=>r.filter(f=>f.netid.toLowerCase().includes(a.toLowerCase())),[r,a]),d=l.useCallback(async()=>{await t.fetchNetworks()},[]);return l.useEffect(()=>{d()},[d]),h.jsxs(ao.Content,{className:"NetworksPage",style:{position:"relative",height:"100%",padding:e.isFullScreen?0:24},children:[h.jsxs(Nr,{loading:t.isFetchingNetworks,active:!0,title:!0,className:"page-padding",children:[r.length===0&&h.jsxs(h.Fragment,{children:[h.jsxs(Oe,{className:"page-padding",style:{background:"linear-gradient(90deg, #52379F 0%, #B66666 100%)"},children:[h.jsxs(q,{xs:24*2/3,children:[h.jsx(ce.Title,{level:3,style:{color:"white "},children:"Networks"}),h.jsx(ce.Text,{style:{color:"white "},children:"A network is how your hosts and clients communicate. Each machine gets a private IP address within the defined subnet and communicates securely with all the other devices in the network. The network is your base layer. Once it's created you can add Ingress, Egress, Relay, and more. Create multiple networks and manage multiple secure domains for your devices!"})]}),h.jsx(q,{xs:24*1/3,style:{position:"relative"},children:h.jsxs(Jn,{className:"header-card",style:{height:"20rem",position:"absolute",width:"100%"},children:[h.jsx(ce.Title,{level:3,children:"Add a Network"}),h.jsx(ce.Text,{children:"Enable fast and secure connections between your devices. Create a network, and then add your hosts."}),h.jsx(Oe,{style:{marginTop:"auto"},children:h.jsx(q,{children:h.jsxs(ut,{type:"primary",size:"large",onClick:()=>i(!0),children:[h.jsx(Dr,{})," Add a Network"]})})})]})})]}),h.jsxs(Oe,{style:{marginTop:"8rem",marginBottom:"4rem",padding:"0px 5.125rem"},gutter:[0,20],children:[h.jsx(q,{xs:24,children:h.jsx(ce.Title,{level:3,children:"Add a Network"})}),h.jsx(q,{xs:7,style:{marginRight:"1rem"},children:h.jsxs(Jn,{children:[h.jsx(ce.Title,{level:4,style:{marginTop:"0px"},children:"Define a subnet"}),h.jsxs(ce.Text,{children:["Your devices will each get an IP address within the subnet you define. You should use a"," ",h.jsx("a",{href:"https://www.arin.net/reference/research/statistics/address_filters/",target:"_blank",rel:"noreferrer",children:"private range"}),". If you use the auto-fill feature, we will choose a private range for you. Most of the time, a /24 range is more than enough, as it can hold 254 devices. If you think you need more, use a /16, which can hold 64,000."]})]})}),h.jsx(q,{xs:7,style:{marginRight:"1rem"},children:h.jsxs(Jn,{children:[h.jsx(ce.Title,{level:4,style:{marginTop:"0px"},children:"Define a default ACL policy"}),h.jsx(ce.Text,{children:"You can use either a default policy of ALLOW or DENY. Typically, you want ALLOW, and then any device you add to the network can reach all the others. Sometimes, you want to manually define all the connections, in which case you use a default of DENY. In either case, as devices are added, you can manually modify which devices can connect using the ACL list on the network."})]})}),h.jsx(q,{xs:7,children:h.jsxs(Jn,{children:[h.jsx(ce.Title,{level:4,style:{marginTop:"0px"},children:"After Creation"}),h.jsxs(ce.Text,{children:["Add hosts to your network. Make a host into a"," ",h.jsx("a",{href:"https://www.netmaker.io/features/ingress",target:"_blank",rel:"noreferrer",children:"Client Gateway"})," ","to begin using Clients. Make a host an"," ",h.jsx("a",{href:"https://www.netmaker.io/features/egress",target:"_blank",rel:"noreferrer",children:"egress gateway"})," ","to begin forwarding traffic to external networks like an office, data center, or the internet. Use"," ",h.jsx("a",{href:"https://www.netmaker.io/features/acls",target:"_blank",rel:"noreferrer",children:"ACLs"})," ","to shape your network."]})]})})]})]}),r.length>0&&h.jsxs(h.Fragment,{children:[h.jsx(Oe,{className:"page-row-padding",children:h.jsx(q,{xs:24,children:h.jsx(ce.Title,{level:3,children:"Networks"})})}),h.jsxs(Oe,{className:"page-row-padding",justify:"space-between",children:[h.jsx(q,{xs:12,md:8,children:h.jsx(Ut,{size:"large",placeholder:"Search networks",value:a,onChange:f=>s(f.target.value),prefix:h.jsx(_r,{})})}),h.jsx(q,{xs:12,md:6,style:{textAlign:"right"},children:h.jsxs(ut,{type:"primary",size:"large",onClick:()=>i(!0),children:[h.jsx(Dr,{})," Create Network"]})})]}),h.jsx(Oe,{className:"page-row-padding",justify:"space-between",children:h.jsx(q,{xs:24,children:h.jsx(Zn,{columns:c,dataSource:u,rowKey:"netid",onRow:f=>({onClick:()=>{n(_f(f))}})})})})]})]}),h.jsx(A3,{isOpen:o,onCreateNetwork:()=>{i(!1)},onCancel:()=>i(!1)})]})}function d4e(e){return Vt.post(qt.LOGIN,e)}const W9={login:d4e};function f4e(){return Vt.get(qt.USERS)}function h4e(e){return Vt.get(`${qt.USERS}/${e}`)}function p4e(){return Vt.get(`${qt.USERS_ADMIN}/hassuperadmin`)}function m4e(e){return Vt.post(`${qt.USERS_ADMIN}/createsuperadmin`,e)}function g4e(e){return Vt.post(`${qt.USERS}/${e.username}`,e)}function v4e(e,t){return Vt.put(`${qt.USERS}/${e}`,t)}function y4e(e,t){return Vt.put(`${qt.USERS}/networks/${e}`,t)}function b4e(e,t){return Vt.put(`${qt.USERS}/${e}/adm`,t)}function x4e(e){return Vt.delete(`${qt.USERS}/${e}`)}function w4e(e){return Vt.post(`${qt.USER_GROUPS}/${e}`)}function S4e(){return Vt.get(`${qt.USER_GROUPS}`).then(e=>Object.keys(e.data))}function C4e(e){return Vt.delete(`${qt.USER_GROUPS}/${e}`)}function E4e(e,t){return Vt.post(`${qt.USERS}/${e}/remote_access_gw/${t}`)}function $4e(e,t){return Vt.delete(`${qt.USERS}/${e}/remote_access_gw/${t}`)}function O4e(e){return Vt.post(`${qt.USERS_ADMIN}/transfersuperadmin/${e}`)}function I4e(e){return Vt.get(`${qt.USERS}/ingress/${e}`)}const na={getUsers:f4e,getUser:h4e,serverHasAdmin:p4e,createAdminUser:m4e,createUser:g4e,updateUser:v4e,updateUserDetails:y4e,updateAdminUser:b4e,deleteUser:x4e,createUserGroup:w4e,getUserGroups:S4e,deleteUserGroup:C4e,attachUserToIngress:E4e,removeUserFromIngress:$4e,transferSuperAdminRights:O4e,getIngressUsers:I4e};function R4e(e){const[t]=Xe.useForm(),[n,r]=er.useNotification(),o=tn(),i=o.fetchServerConfig,a=bi(),{backend:s,token:c}=ix(),{t:u}=Hg(),d=hx(),f=Xs(),p=o.currentTheme,g=d.get("login"),v=d.get("user"),[y,S]=l.useState(!1),[b,x]=l.useState(!1),C=async I=>{try{const N=await(await na.getUser(I)).data;if(!N?.issuperadmin&&!N?.isadmin){n.error({message:"Failed to login",description:"User is not an admin"});return}o.setStore({user:N})}catch(N){n.error({message:"Failed to get user details",description:Qt(N)})}},E=async()=>{try{const I=await t.validateFields();x(!0);const N=await(await W9.login(I)).data;o.setStore({jwt:N.Response.AuthToken,username:N.Response.UserName}),await i(),await C(N.Response.UserName)}catch(I){n.error({message:"Failed to login",description:Qt(I)})}finally{x(!1)}},$=l.useCallback(async()=>{(await na.serverHasAdmin()).data||a(Kt.SIGNUP_ROUTE)},[a]),O=l.useCallback(()=>{if(x(!0),!o.baseUrl){n.error({message:"Failed to login",description:"Misconfigured Server URL"}),x(!1);return}window.location.href=`${o.baseUrl}${qt.LOGIN_OAUTH}`},[n,o.baseUrl]);return l.useEffect(()=>{$()},[$]),yi?!s&&!c?(window.location.href=L9,null):(o.setStore({jwt:c,baseUrl:s}),FE(),a(Kt.DASHBOARD_ROUTE),null):g?(o.setStore({jwt:g,username:v??void 0}),v&&C(v),FE(),a(Kt.DASHBOARD_ROUTE),null):(o.isLoggedIn()&&a(Kt.DASHBOARD_ROUTE),h.jsx(Bg,{children:h.jsxs(ao,{style:{height:"100%",minHeight:"100vh",justifyContent:"center",alignItems:"center"},children:[h.jsxs(ao.Content,{style:{marginTop:"15vh",position:"relative",height:"fit-content",width:"40%",padding:e.isFullScreen?0:24},children:[h.jsx(Oe,{children:h.jsx(q,{xs:24,style:{textAlign:"center"},children:h.jsx(VL,{width:"200px",src:p==="dark"?Sr().logoDarkUrl:Sr().logoLightUrl})})}),h.jsx(Oe,{style:{marginTop:"4rem"},children:h.jsx(q,{xs:24,children:h.jsx(ce.Title,{level:2,children:u("signin.signin")})})}),h.jsxs(Xe,{form:t,layout:"vertical",onKeyUp:I=>{I.key==="Enter"&&E()},children:[h.jsx(Xe.Item,{name:"username",label:u("signin.username"),rules:[{required:!0}],children:h.jsx(Ut,{placeholder:String(u("signin.username")),size:"large",prefix:h.jsx(f9,{})})}),h.jsx(Xe.Item,{name:"password",label:u("signin.password"),rules:[{required:!0}],children:h.jsx(Ut,{placeholder:String(u("signin.password")),type:"password",size:"large",prefix:h.jsx(jE,{})})}),h.jsx(Oe,{style:{marginBottom:"1.5rem"},children:h.jsx(q,{children:h.jsxs(fd,{checked:y,onChange:I=>S(I.target.checked),children:[" ",h.jsx(ce.Text,{children:u("signin.rememberme")})]})})}),h.jsxs(ce.Text,{children:[u("signin.terms1")," ",h.jsx("a",{href:"https://www.netmaker.io/terms-and-conditions",target:"_blank",children:u("signin.terms2")})," ",u("signin.terms3")," ",h.jsx("a",{href:"https://www.netmaker.io/privacy-policy",target:"_blank",children:u("signin.terms4")}),"."]}),h.jsx(Xe.Item,{style:{marginTop:"1.5rem"},children:h.jsx(ut,{type:"primary",block:!0,onClick:E,loading:b,children:u("signin.signin")})}),h.jsx(Jt,{children:h.jsx(ce.Text,{children:u("signin.or")})}),h.jsx(Xe.Item,{style:{marginTop:"1.5rem"},children:h.jsx(ut,{type:"default",block:!0,onClick:O,loading:b,children:u("signin.sso")})})]})]}),r]})},f.pathname))}function N4e({isOpen:e,onCreateClient:t,onCancel:n,networkId:r,preferredGateway:o}){const[i]=Xe.useForm(),[a,s]=er.useNotification(),c=tn(),{token:u}=Uo.useToken(),[d,f]=l.useState(!1),[p,g]=l.useState(""),[v,y]=l.useState(null),[S,b]=l.useState(!1),[x,C]=l.useState(!1),E=l.useCallback(D=>io(D)==="error"?h.jsx(Un,{status:"error",text:"Error"}):io(D)==="warning"?h.jsx(Un,{status:"warning",text:"Unstable"}):io(D)==="healthy"?h.jsx(Un,{status:"success",text:"Healthy"}):h.jsx(Un,{status:"processing",text:"Unknown"}),[]),$=l.useMemo(()=>c.nodes.filter(D=>D.network===r).map(D=>({...D,...Hr(D,c.hostsCommonDetails)})),[r,c.hostsCommonDetails,c.nodes]),O=l.useMemo(()=>$.filter(D=>D.name?.toLowerCase().includes(p.toLowerCase())||D.address?.toLowerCase().includes(p.toLowerCase())),[p,$]),I=l.useMemo(()=>v&&c.hosts.find(D=>D.id===v.hostid)||null,[v,c.hosts]),N=l.useMemo(()=>[{title:"Host name",dataIndex:"name",render(D){return h.jsx(ce.Link,{children:D})}},{title:"Address",dataIndex:"address"},{title:"Client Gateway",render(D,j){return j.isingressgateway?h.jsx(Un,{status:"success",text:"Gateway"}):h.jsx(Un,{status:"error",text:"Gateway"})}},{title:"Health status",render(D,j){return E(j)}}],[E]),_=()=>{i.resetFields(),y(null),g("")},T=async()=>{try{const D=await i.validateFields();if(f(!0),!v)return;v.isingressgateway||await ur.createIngressNode(v.id,r,{failover:S,extclientdns:D.extclientdns}),await ur.createExternalClient(v.id,r,D),t(),a.success({message:"External client created"}),_()}catch(D){a.error({message:"Failed to create client",description:Qt(D)})}finally{f(!1)}};return l.useEffect(()=>{if(x)return;if(o){y(Hr(o,c.hostsCommonDetails)),i.setFieldValue("gatewayId",o.id);return}const D=$.filter(j=>j.isingressgateway);D.length&&(y(D[0]),i.setFieldValue("gatewayId",D[0].id)),C(!0)},[i,e,$,o,c.hostsCommonDetails,x]),h.jsxs(fn,{title:h.jsx("span",{style:{fontSize:"1.25rem",fontWeight:"bold"},children:"Create a Client"}),open:e,onCancel:D=>{_(),n&&n(D)},footer:null,className:"CustomModal",style:{minWidth:"50vw"},children:[h.jsx(Jt,{style:{margin:"0px 0px 2rem 0px"}}),h.jsxs(Xe,{name:"add-client-form",form:i,layout:"vertical",children:[h.jsxs("div",{className:"CustomModalBody",children:[h.jsxs(Xe.Item,{label:"Client Gateway",name:"gatewayId",rules:[{required:!0}],"data-nmui-intercom":"add-client-form_gatewayId",children:[!v&&h.jsx(Lr,{placeholder:"Select a host as gateway",dropdownRender:()=>h.jsxs("div",{style:{padding:".5rem"},children:[h.jsx(Oe,{style:{marginBottom:"1rem"},children:h.jsx(q,{span:8,children:h.jsx(Ut,{placeholder:"Search host",value:p,onChange:D=>g(D.target.value),prefix:h.jsx(_r,{})})})}),h.jsx(Oe,{children:h.jsx(q,{span:24,children:h.jsx(Zn,{size:"small",columns:N,dataSource:O,rowKey:"id",onRow:D=>({onClick:()=>{i.setFieldValue("gatewayId",D.id),y(D)}})})})})]})}),!!v&&h.jsxs(h.Fragment,{children:[h.jsxs(Oe,{style:{border:`1px solid ${u.colorBorder}`,padding:".5rem",borderRadius:"8px"},children:[h.jsx(q,{span:6,children:v?.name??""}),h.jsx(q,{span:6,children:v?.address??""}),h.jsxs(q,{span:6,children:[v.isingressgateway&&h.jsx(Un,{status:"success",text:"Gateway"}),!v.isingressgateway&&h.jsx(Un,{status:"error",text:"Not a Gateway"})]}),h.jsx(q,{span:5,children:E(v)}),h.jsx(q,{span:1,style:{textAlign:"right"},children:h.jsx(ut,{danger:!0,size:"small",type:"text",icon:h.jsx(No,{}),onClick:()=>{i.setFieldValue("gatewayId",""),y(null)}})})]}),!v.isingressgateway&&h.jsx(Oe,{style:{padding:".5rem",borderRadius:"8px"},children:h.jsx(q,{span:24,children:h.jsx(cu,{type:"info",message:"Proceeding will turn this host into a gateway.",showIcon:!0})})}),!!I&&c9(I)&&h.jsx(Oe,{style:{padding:".5rem",borderRadius:"8px"},children:h.jsx(q,{span:24,children:h.jsx(cu,{type:"warning",message:"The selected host is behind a NAT gateway, which may affect reachability.",showIcon:!0})})})]})]}),v&&!v.isingressgateway&&h.jsx(Xe.Item,{name:"extclientdns",label:"Default Client DNS","data-nmui-intercom":"add-client-form_extclientdns",children:h.jsx(Ut,{placeholder:"Default DNS for associated clients"})})]}),h.jsx(Jt,{style:{margin:"0px 0px 2rem 0px"}}),h.jsxs("div",{className:"CustomModalBody",children:[h.jsx(Xe.Item,{label:"Client ID (Optional)",name:"clientid",rules:[{min:5,max:32}],"data-nmui-intercom":"add-client-form_clientid",children:h.jsx(Ut,{placeholder:"Unique name of client"})}),h.jsx(uc,{ghost:!0,size:"small",children:h.jsxs(uc.Panel,{header:h.jsx(ce.Text,{style:{marginTop:"0rem"},children:"Advanced Settings"}),children:[h.jsx(Xe.Item,{label:"Public Key (Optional)",name:"publickey","data-nmui-intercom":"add-client-form_publickey",children:h.jsx(Ut,{placeholder:"Public key"})}),h.jsx(Xe.Item,{label:"DNS (Optional)",name:"dns","data-nmui-intercom":"add-client-form_dns",children:h.jsx(Ut,{placeholder:"Client DNS"})}),h.jsx(Xe.Item,{label:"Additional Addresses (Optional)",name:"extraallowedips","data-nmui-intercom":"add-client-form_extraallowedips",children:h.jsx(Lr,{mode:"tags",placeholder:"Additional IP Addresses",clearIcon:!0})})]},"details")})]}),h.jsx(Jt,{style:{margin:"0px 0px 2rem 0px"}}),h.jsx("div",{className:"CustomModalBody",children:h.jsx(Oe,{children:h.jsx(q,{xs:24,style:{textAlign:"right"},children:h.jsx(ut,{type:"primary",onClick:T,loading:d,children:"Create Client"})})})})]}),s]})}function _4e({isOpen:e,onCreateDns:t,onCancel:n,networkId:r}){const[o]=Xe.useForm(),[i,a]=er.useNotification(),s=tn(),[c,u]=l.useState(!1),d=l.useMemo(()=>s.nodes.filter(g=>g.network===r).map(g=>({label:`${g.address}, ${g.address6} (${Hr(g,s.hostsCommonDetails)?.name??""})`,value:g.address??g.address6??""})),[r,s.hostsCommonDetails,s.nodes]),f=()=>{o.resetFields()},p=async()=>{try{const g=await o.validateFields();u(!0);const v=P2e(g.ip),y=j2e(g.ip);if(!v&&!y)throw new Error("Invalid IP address");const S=(await ll.createDns(r,{...g,address:o8(v?g.ip:""),address6:o8(y?g.ip:"")})).data;f(),t(S),i.success({message:`DNS entry ${S.name} created`})}catch(g){i.error({message:"Failed to create dns entry",description:Qt(g)})}finally{u(!1)}};return h.jsxs(fn,{title:h.jsx("span",{style:{fontSize:"1.25rem",fontWeight:"bold"},children:"Create a DNS Entry"}),open:e,onCancel:g=>{f(),n&&n(g)},footer:null,centered:!0,className:"CustomModal AddDnsModal",children:[h.jsx(Jt,{style:{margin:"0px 0px 2rem 0px"}}),h.jsx("div",{className:"CustomModalBody",children:h.jsxs(Xe,{name:"add-dns-form",form:o,layout:"vertical",children:[h.jsx(Xe.Item,{label:"DNS name",name:"name",rules:[{required:!0}],"data-nmui-intercom":"add-dns-form_name",children:h.jsx(Ut,{placeholder:"example",addonAfter:`.${r}`})}),h.jsx(Xe.Item,{label:"Address to alias",name:"ip",rules:[{required:!0}],"data-nmui-intercom":"add-dns-form_ip",children:h.jsx(Xie,{options:d,style:{width:"100%"},placeholder:"Address"})}),h.jsx(Oe,{children:h.jsx(q,{xs:24,style:{textAlign:"right"},children:h.jsx(Xe.Item,{children:h.jsx(ut,{type:"primary",onClick:p,loading:c,"data-nmui-intercom":"add-dns-form_submitbtn",children:"Create DNS"})})})})]})}),a]})}const w8="0.0.0.0/0",T4e="::/0";function P4e({isOpen:e,onCreateEgress:t,onCancel:n,networkId:r}){const[o]=Xe.useForm(),[i,a]=er.useNotification(),s=tn(),{token:c}=Uo.useToken(),[u,d]=l.useState(!1),[f,p]=l.useState(""),[g,v]=l.useState(null),y="nodeId",S=Xe.useWatch("natEnabled",o),b=Xe.useWatch("isInternetGateway",o),x=Xe.useWatch("ranges",o),C=l.useCallback(T=>io(T)==="error"?h.jsx(Un,{status:"error",text:"Error"}):io(T)==="warning"?h.jsx(Un,{status:"warning",text:"Unstable"}):io(T)==="healthy"?h.jsx(Un,{status:"success",text:"Healthy"}):h.jsx(Un,{status:"processing",text:"Unknown"}),[]),E=l.useMemo(()=>s.networks.find(T=>T.netid===r),[r,s.networks]),$=l.useMemo(()=>s.nodes.filter(T=>T.network===r).map(T=>({...T,...Hr(T,s.hostsCommonDetails)})),[r,s.hostsCommonDetails,s.nodes]),O=l.useMemo(()=>$.filter(T=>T.name?.toLowerCase().includes(f.toLowerCase())||T.address?.toLowerCase().includes(f.toLowerCase())),[f,$]),I=l.useMemo(()=>[{title:"Host name",dataIndex:"name",render(T){return h.jsx(ce.Link,{children:T})}},{title:"Address",dataIndex:"address",render(T,D){return h.jsx(ce.Text,{children:`${T}, ${D.address6}`})}},{title:"Endpoint",dataIndex:"endpointip"},{title:"Health status",render(T,D){return C(D)}}],[C]),N=()=>{o.resetFields(),p(""),v(null)},_=async()=>{try{const T=await o.validateFields();if(d(!0),!g)return;await ur.createEgressNode(g.id,r,{...T,natEnabled:T.natEnabled?"yes":"no"}),N(),t(),i.success({message:"Egress gateway created"})}catch(T){T instanceof Ji&&i.error({message:"Failed to egress gateway",description:Qt(T)})}finally{d(!1)}};return l.useEffect(()=>{b?o.setFieldsValue({ranges:[...new Set([...x,w8])]}):o.setFieldsValue({ranges:x?.filter(T=>![w8,T4e].includes(T))})},[o,b,E?.isipv6,x]),h.jsxs(fn,{title:h.jsx("span",{style:{fontSize:"1.25rem",fontWeight:"bold"},children:"Create an Egress"}),open:e,onCancel:T=>{N(),n&&n(T)},footer:null,className:"CustomModal AddEgressModal",style:{minWidth:"50vw"},children:[h.jsx(Jt,{style:{margin:"0px 0px 2rem 0px"}}),h.jsxs(Xe,{name:"add-egress-form",form:o,layout:"vertical",initialValues:{natEnabled:!0},children:[h.jsxs("div",{className:"scrollable-modal-body",children:[h.jsx("div",{className:"CustomModalBody",children:h.jsxs(Xe.Item,{label:"Select host",name:y,rules:[{required:!0}],style:{marginBottom:"0px"},"data-nmui-intercom":"add-egress-form_host",children:[!g&&h.jsx(Lr,{placeholder:"Select a host as gateway",dropdownRender:()=>h.jsxs("div",{style:{padding:".5rem"},children:[h.jsx(Oe,{style:{marginBottom:"1rem"},children:h.jsx(q,{span:8,children:h.jsx(Ut,{placeholder:"Search host",value:f,onChange:T=>p(T.target.value),prefix:h.jsx(_r,{})})})}),h.jsx(Oe,{children:h.jsx(q,{span:24,children:h.jsx(Zn,{size:"small",columns:I,dataSource:O,rowKey:"id",onRow:T=>({onClick:()=>{o.setFieldValue(y,T.id),v(T)}})})})})]})}),!!g&&h.jsx(h.Fragment,{children:h.jsxs(Oe,{style:{border:`1px solid ${c.colorBorder}`,padding:".5rem",borderRadius:"8px"},children:[h.jsx(q,{span:6,children:g?.name??""}),h.jsxs(q,{span:6,children:[g?.address??""," ",g?.address6??""]}),h.jsx(q,{span:6,children:g?.endpointip??""}),h.jsx(q,{span:5,children:C(g)}),h.jsx(q,{span:1,style:{textAlign:"right"},children:h.jsx(ut,{danger:!0,size:"small",type:"text",icon:h.jsx(No,{}),onClick:()=>{o.setFieldValue(y,""),v(null)}})})]})})]})}),h.jsx(Jt,{style:{margin:"0px 0px 2rem 0px"}}),h.jsxs("div",{className:"CustomModalBody",children:[h.jsx(Xe.Item,{name:"natEnabled",label:"Enable NAT for egress traffic",valuePropName:"checked","data-nmui-intercom":"add-egress-form_natEnabled",children:h.jsx(po,{})}),!S&&h.jsx(cu,{type:"warning",message:"Egress may not function properly without NAT. You must ensure the host is properly configured"}),h.jsx(ce.Title,{level:4,children:"Select external ranges"}),h.jsx(Xe.Item,{name:"isInternetGateway",label:"Internet Gateway",valuePropName:"checked","data-nmui-intercom":"add-egress-form_isInternetGateway",children:h.jsx(po,{})}),h.jsx(Xe.List,{name:"ranges",initialValue:[""],rules:[{validator:async(T,D)=>{if(!D||D.length<1)return Promise.reject(new Error("Enter at least one address range"))}}],"data-nmui-intercom":"add-egress-form_ranges",children:(T,{add:D,remove:j},{errors:P})=>h.jsxs(h.Fragment,{children:[T.map((M,A)=>h.jsx(Xe.Item,{label:A===0?"Input range":"",required:!1,style:{marginBottom:".5rem"},children:h.jsx(Xe.Item,{...M,validateTrigger:["onBlur"],rules:[{required:!0,validator(B,F){return g9(F)?Promise.resolve():Promise.reject("Invalid CIDR")}}],noStyle:!0,children:h.jsx(Ut,{placeholder:"CIDR range (eg: 10.0.0.0/8 or a123:4567::/16)",style:{width:"100%"},prefix:h.jsx(Io,{title:"Remove",children:h.jsx(No,{onClick:()=>j(A)})})})})},M.key)),h.jsxs(Xe.Item,{children:[h.jsx(ut,{onClick:()=>D(),icon:h.jsx(Dr,{}),"data-nmui-intercom":"add-egress-form_addrangebtn",children:"Add range"}),h.jsx(Xe.ErrorList,{errors:P})]})]})})]})]}),h.jsx(Jt,{style:{margin:"0px 0px 2rem 0px"}}),h.jsx("div",{className:"CustomModalBody",children:h.jsx(Oe,{children:h.jsx(q,{xs:24,style:{textAlign:"right"},children:h.jsx(ut,{type:"primary",onClick:_,loading:u,"data-nmui-intercom":"add-egress-form_submitbtn",children:"Create Egress"})})})})]}),a]})}const ZS="nodeid";function j4e({isOpen:e,onCreateRelay:t,onCancel:n,networkId:r}){const[o,i]=er.useNotification(),a=tn(),{token:s}=Uo.useToken(),c=a.serverConfig?.IsEE==="yes",[u]=Xe.useForm(),[d,f]=l.useState(!1),[p,g]=l.useState(""),[v,y]=l.useState(null),[S,b]=l.useState([]),[x,C]=l.useState(""),[E,$]=l.useState(!1),O=l.useCallback(M=>io(M)==="error"?h.jsx(Un,{status:"error",text:"Error"}):io(M)==="warning"?h.jsx(Un,{status:"warning",text:"Unstable"}):io(M)==="healthy"?h.jsx(Un,{status:"success",text:"Healthy"}):h.jsx(Un,{status:"processing",text:"Unknown"}),[]),I=l.useMemo(()=>a.nodes.filter(M=>M.network===r).map(M=>({...M,...Hr(M,a.hostsCommonDetails)})),[r,a.hostsCommonDetails,a.nodes]),N=M=>!Ql(M)&&!M.relayedby,_=l.useMemo(()=>I.filter(M=>M.name?.toLowerCase().includes(p.toLowerCase())),[I,p]),T=l.useMemo(()=>[{title:"Select host",dataIndex:"name",render(M){return h.jsx(ce.Link,{children:M})}},{title:"Address",dataIndex:"address",render(M,A){const B=`${A?.address??""} ${A.address6?`, ${A.address6}`:""}`;return h.jsx(Io,{title:B,children:B})}}],[]),D=l.useMemo(()=>T,[T]),j=()=>{u.resetFields(),g(""),C(""),y(null),b([])},P=async()=>{try{const M=await u.validateFields();if(f(!0),!v)return;const A=(await ur.createRelay(v.id,r,{...M,netid:r,relayaddrs:S})).data;j(),t(A),o.success({message:"Relay created"})}catch(M){o.error({message:"Failed to create relay",description:Qt(M)})}finally{f(!1)}};return h.jsxs(fn,{title:h.jsx("span",{style:{fontSize:"1.25rem",fontWeight:"bold"},children:"Create a Relay"}),open:c&&e,onCancel:M=>{j(),n?.(M)},footer:null,className:"CustomModal AddRelayModal",style:{minWidth:"50vw"},children:[h.jsx(Jt,{style:{margin:"0px 0px 2rem 0px"}}),h.jsxs(Xe,{name:"add-relay-form",form:u,layout:"vertical",children:[h.jsxs("div",{className:"CustomModalBody",children:[h.jsxs(Xe.Item,{label:"Select host",name:ZS,rules:[{required:!0}],"data-nmui-intercom":"add-relay-form_nodeid",children:[!v&&h.jsx(Lr,{placeholder:"Select host",dropdownRender:()=>h.jsxs("div",{style:{padding:".5rem"},children:[h.jsx(Oe,{style:{marginBottom:"1rem"},children:h.jsx(q,{span:8,children:h.jsx(Ut,{placeholder:"Search host...",value:p,onChange:M=>g(M.target.value),prefix:h.jsx(_r,{})})})}),h.jsx(Oe,{children:h.jsx(q,{span:24,children:h.jsx(Zn,{size:"small",columns:T,dataSource:_,rowKey:"id",onRow:M=>({onClick:()=>{N(M)&&(u.setFieldValue(ZS,M.id),y(M))}}),rowClassName:M=>N(M)?"":"unavailable-row"})})})]})}),!!v&&h.jsx(h.Fragment,{children:h.jsxs(Oe,{style:{border:`1px solid ${s.colorBorder}`,padding:".5rem",borderRadius:"8px"},children:[h.jsx(q,{span:6,children:v?.name??""}),h.jsx(q,{span:6,children:v?.address??""}),h.jsx(q,{span:6,children:v?.endpointip??""}),h.jsx(q,{span:5,children:v&&O(v)}),h.jsx(q,{span:1,style:{textAlign:"right"},children:h.jsx(ut,{danger:!0,size:"small",type:"text",title:"Unselect",icon:h.jsx(No,{}),onClick:()=>{u.setFieldValue(ZS,""),y(null)}})})]})})]}),v&&h.jsxs(h.Fragment,{children:[h.jsx(Xe.Item,{label:"Select hosts to relay",required:!0,"data-nmui-intercom":"add-relay-form_relayed",children:h.jsx(Lr,{placeholder:"Select hosts to relay",open:E,onDropdownVisibleChange:M=>$(M),dropdownRender:()=>h.jsxs("div",{style:{padding:".5rem"},children:[h.jsx(Oe,{style:{marginBottom:"1rem"},children:h.jsx(q,{span:8,children:h.jsx(Ut,{placeholder:"Search host...",value:x,onChange:M=>C(M.target.value)})})}),h.jsx(Oe,{children:h.jsx(q,{span:24,children:h.jsx(Zn,{size:"small",columns:D,rowKey:"id",dataSource:[..._.filter(M=>M.name?.toLocaleLowerCase().includes(x.toLocaleLowerCase())).filter(M=>M.id!==v.id)].sort((M,A)=>Ql(M)===Ql(A)?0:Ql(M)?1:-1),onRow:M=>({onClick:()=>{N(M)&&(b(A=>{const B=new Set(A);return B.has(M.id)?B.delete(M.id):B.add(M.id),[...B]}),$(!1))}}),rowClassName:M=>N(M)?S.includes(M.id)?"selected-row":"":"unavailable-row"})})})]})})}),S.map(M=>h.jsxs(Oe,{style:{border:`1px solid ${s.colorBorder}`,padding:".5rem",borderRadius:"8px",marginBottom:".5rem"},children:[h.jsx(q,{span:6,children:I.find(A=>A.id===M)?.name??""}),h.jsx(q,{span:6,children:I.find(A=>A.id===M)?.address??""}),h.jsx(q,{span:6,children:I.find(A=>A.id===M)?.endpointip??""}),h.jsx(q,{span:5,children:O(I.find(A=>A.id===M)??_3)}),h.jsx(q,{span:1,style:{textAlign:"right"},children:h.jsx(ut,{danger:!0,size:"small",type:"text",title:"Unselect",icon:h.jsx(No,{}),onClick:()=>{b(A=>A.filter(B=>B!==M))}})})]},M)),S.length===0&&h.jsx(Oe,{children:h.jsx(q,{xs:24,children:h.jsx(ce.Text,{type:"danger",children:"You must select at least one host to be relayed."})})})]})]}),h.jsx(Jt,{style:{margin:"0px 0px 2rem 0px"}}),h.jsx("div",{className:"CustomModalBody",children:h.jsx(Oe,{children:h.jsx(q,{xs:24,style:{textAlign:"right"},children:h.jsx(ut,{type:"primary",onClick:P,loading:d,"data-nmui-intercom":"add-relay-form_submitbtn",children:"Create Relay"})})})})]}),i]})}var V9={},px={};px.byteLength=D4e;px.toByteArray=L4e;px.fromByteArray=B4e;var ul=[],Ka=[],M4e=typeof Uint8Array<"u"?Uint8Array:Array,JS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Jd=0,k4e=JS.length;Jd0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function D4e(e){var t=K9(e),n=t[0],r=t[1];return(n+r)*3/4-r}function A4e(e,t,n){return(t+n)*3/4-n}function L4e(e){var t,n=K9(e),r=n[0],o=n[1],i=new M4e(A4e(e,r,o)),a=0,s=o>0?r-4:r,c;for(c=0;c>16&255,i[a++]=t>>8&255,i[a++]=t&255;return o===2&&(t=Ka[e.charCodeAt(c)]<<2|Ka[e.charCodeAt(c+1)]>>4,i[a++]=t&255),o===1&&(t=Ka[e.charCodeAt(c)]<<10|Ka[e.charCodeAt(c+1)]<<4|Ka[e.charCodeAt(c+2)]>>2,i[a++]=t>>8&255,i[a++]=t&255),i}function F4e(e){return ul[e>>18&63]+ul[e>>12&63]+ul[e>>6&63]+ul[e&63]}function z4e(e,t,n){for(var r,o=[],i=t;is?s:a+i));return r===1?(t=e[n-1],o.push(ul[t>>2]+ul[t<<4&63]+"==")):r===2&&(t=(e[n-2]<<8)+e[n-1],o.push(ul[t>>10]+ul[t>>4&63]+ul[t<<2&63]+"=")),o.join("")}var F3={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */F3.read=function(e,t,n,r,o){var i,a,s=o*8-r-1,c=(1<>1,d=-7,f=n?o-1:0,p=n?-1:1,g=e[t+f];for(f+=p,i=g&(1<<-d)-1,g>>=-d,d+=s;d>0;i=i*256+e[t+f],f+=p,d-=8);for(a=i&(1<<-d)-1,i>>=-d,d+=r;d>0;a=a*256+e[t+f],f+=p,d-=8);if(i===0)i=1-u;else{if(i===c)return a?NaN:(g?-1:1)*(1/0);a=a+Math.pow(2,r),i=i-u}return(g?-1:1)*a*Math.pow(2,i-r)};F3.write=function(e,t,n,r,o,i){var a,s,c,u=i*8-o-1,d=(1<>1,p=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=r?0:i-1,v=r?1:-1,y=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=d):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),a+f>=1?t+=p/c:t+=p*Math.pow(2,1-f),t*c>=2&&(a++,c/=2),a+f>=d?(s=0,a=d):a+f>=1?(s=(t*c-1)*Math.pow(2,o),a=a+f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+g]=s&255,g+=v,s/=256,o-=8);for(a=a<0;e[n+g]=a&255,g+=v,a/=256,u-=8);e[n+g-v]|=y*128};/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */(function(e){const t=px,n=F3,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=x,e.INSPECT_MAX_BYTES=50;const o=2147483647;e.kMaxLength=o,s.TYPED_ARRAY_SUPPORT=i(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{const U=new Uint8Array(1),k={foo:function(){return 42}};return Object.setPrototypeOf(k,Uint8Array.prototype),Object.setPrototypeOf(U,k),U.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function a(U){if(U>o)throw new RangeError('The value "'+U+'" is invalid for option "size"');const k=new Uint8Array(U);return Object.setPrototypeOf(k,s.prototype),k}function s(U,k,L){if(typeof U=="number"){if(typeof k=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return f(U)}return c(U,k,L)}s.poolSize=8192;function c(U,k,L){if(typeof U=="string")return p(U,k);if(ArrayBuffer.isView(U))return v(U);if(U==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof U);if(Ge(U,ArrayBuffer)||U&&Ge(U.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ge(U,SharedArrayBuffer)||U&&Ge(U.buffer,SharedArrayBuffer)))return y(U,k,L);if(typeof U=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const X=U.valueOf&&U.valueOf();if(X!=null&&X!==U)return s.from(X,k,L);const ee=S(U);if(ee)return ee;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof U[Symbol.toPrimitive]=="function")return s.from(U[Symbol.toPrimitive]("string"),k,L);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof U)}s.from=function(U,k,L){return c(U,k,L)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function u(U){if(typeof U!="number")throw new TypeError('"size" argument must be of type number');if(U<0)throw new RangeError('The value "'+U+'" is invalid for option "size"')}function d(U,k,L){return u(U),U<=0?a(U):k!==void 0?typeof L=="string"?a(U).fill(k,L):a(U).fill(k):a(U)}s.alloc=function(U,k,L){return d(U,k,L)};function f(U){return u(U),a(U<0?0:b(U)|0)}s.allocUnsafe=function(U){return f(U)},s.allocUnsafeSlow=function(U){return f(U)};function p(U,k){if((typeof k!="string"||k==="")&&(k="utf8"),!s.isEncoding(k))throw new TypeError("Unknown encoding: "+k);const L=C(U,k)|0;let X=a(L);const ee=X.write(U,k);return ee!==L&&(X=X.slice(0,ee)),X}function g(U){const k=U.length<0?0:b(U.length)|0,L=a(k);for(let X=0;X=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return U|0}function x(U){return+U!=U&&(U=0),s.alloc(+U)}s.isBuffer=function(k){return k!=null&&k._isBuffer===!0&&k!==s.prototype},s.compare=function(k,L){if(Ge(k,Uint8Array)&&(k=s.from(k,k.offset,k.byteLength)),Ge(L,Uint8Array)&&(L=s.from(L,L.offset,L.byteLength)),!s.isBuffer(k)||!s.isBuffer(L))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(k===L)return 0;let X=k.length,ee=L.length;for(let $e=0,we=Math.min(X,ee);$eee.length?(s.isBuffer(we)||(we=s.from(we)),we.copy(ee,$e)):Uint8Array.prototype.set.call(ee,we,$e);else if(s.isBuffer(we))we.copy(ee,$e);else throw new TypeError('"list" argument must be an Array of Buffers');$e+=we.length}return ee};function C(U,k){if(s.isBuffer(U))return U.length;if(ArrayBuffer.isView(U)||Ge(U,ArrayBuffer))return U.byteLength;if(typeof U!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof U);const L=U.length,X=arguments.length>2&&arguments[2]===!0;if(!X&&L===0)return 0;let ee=!1;for(;;)switch(k){case"ascii":case"latin1":case"binary":return L;case"utf8":case"utf-8":return De(U).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L*2;case"hex":return L>>>1;case"base64":return Ie(U).length;default:if(ee)return X?-1:De(U).length;k=(""+k).toLowerCase(),ee=!0}}s.byteLength=C;function E(U,k,L){let X=!1;if((k===void 0||k<0)&&(k=0),k>this.length||((L===void 0||L>this.length)&&(L=this.length),L<=0)||(L>>>=0,k>>>=0,L<=k))return"";for(U||(U="utf8");;)switch(U){case"hex":return W(this,k,L);case"utf8":case"utf-8":return M(this,k,L);case"ascii":return F(this,k,L);case"latin1":case"binary":return H(this,k,L);case"base64":return P(this,k,L);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V(this,k,L);default:if(X)throw new TypeError("Unknown encoding: "+U);U=(U+"").toLowerCase(),X=!0}}s.prototype._isBuffer=!0;function $(U,k,L){const X=U[k];U[k]=U[L],U[L]=X}s.prototype.swap16=function(){const k=this.length;if(k%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let L=0;LL&&(k+=" ... "),""},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(k,L,X,ee,$e){if(Ge(k,Uint8Array)&&(k=s.from(k,k.offset,k.byteLength)),!s.isBuffer(k))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof k);if(L===void 0&&(L=0),X===void 0&&(X=k?k.length:0),ee===void 0&&(ee=0),$e===void 0&&($e=this.length),L<0||X>k.length||ee<0||$e>this.length)throw new RangeError("out of range index");if(ee>=$e&&L>=X)return 0;if(ee>=$e)return-1;if(L>=X)return 1;if(L>>>=0,X>>>=0,ee>>>=0,$e>>>=0,this===k)return 0;let we=$e-ee,de=X-L;const Se=Math.min(we,de),Ae=this.slice(ee,$e),We=k.slice(L,X);for(let Ke=0;Ke2147483647?L=2147483647:L<-2147483648&&(L=-2147483648),L=+L,ft(L)&&(L=ee?0:U.length-1),L<0&&(L=U.length+L),L>=U.length){if(ee)return-1;L=U.length-1}else if(L<0)if(ee)L=0;else return-1;if(typeof k=="string"&&(k=s.from(k,X)),s.isBuffer(k))return k.length===0?-1:I(U,k,L,X,ee);if(typeof k=="number")return k=k&255,typeof Uint8Array.prototype.indexOf=="function"?ee?Uint8Array.prototype.indexOf.call(U,k,L):Uint8Array.prototype.lastIndexOf.call(U,k,L):I(U,[k],L,X,ee);throw new TypeError("val must be string, number or Buffer")}function I(U,k,L,X,ee){let $e=1,we=U.length,de=k.length;if(X!==void 0&&(X=String(X).toLowerCase(),X==="ucs2"||X==="ucs-2"||X==="utf16le"||X==="utf-16le")){if(U.length<2||k.length<2)return-1;$e=2,we/=2,de/=2,L/=2}function Se(We,Ke){return $e===1?We[Ke]:We.readUInt16BE(Ke*$e)}let Ae;if(ee){let We=-1;for(Ae=L;Aewe&&(L=we-de),Ae=L;Ae>=0;Ae--){let We=!0;for(let Ke=0;Keee&&(X=ee)):X=ee;const $e=k.length;X>$e/2&&(X=$e/2);let we;for(we=0;we>>0,isFinite(X)?(X=X>>>0,ee===void 0&&(ee="utf8")):(ee=X,X=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const $e=this.length-L;if((X===void 0||X>$e)&&(X=$e),k.length>0&&(X<0||L<0)||L>this.length)throw new RangeError("Attempt to write outside buffer bounds");ee||(ee="utf8");let we=!1;for(;;)switch(ee){case"hex":return N(this,k,L,X);case"utf8":case"utf-8":return _(this,k,L,X);case"ascii":case"latin1":case"binary":return T(this,k,L,X);case"base64":return D(this,k,L,X);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,k,L,X);default:if(we)throw new TypeError("Unknown encoding: "+ee);ee=(""+ee).toLowerCase(),we=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function P(U,k,L){return k===0&&L===U.length?t.fromByteArray(U):t.fromByteArray(U.slice(k,L))}function M(U,k,L){L=Math.min(U.length,L);const X=[];let ee=k;for(;ee239?4:$e>223?3:$e>191?2:1;if(ee+de<=L){let Se,Ae,We,Ke;switch(de){case 1:$e<128&&(we=$e);break;case 2:Se=U[ee+1],(Se&192)===128&&(Ke=($e&31)<<6|Se&63,Ke>127&&(we=Ke));break;case 3:Se=U[ee+1],Ae=U[ee+2],(Se&192)===128&&(Ae&192)===128&&(Ke=($e&15)<<12|(Se&63)<<6|Ae&63,Ke>2047&&(Ke<55296||Ke>57343)&&(we=Ke));break;case 4:Se=U[ee+1],Ae=U[ee+2],We=U[ee+3],(Se&192)===128&&(Ae&192)===128&&(We&192)===128&&(Ke=($e&15)<<18|(Se&63)<<12|(Ae&63)<<6|We&63,Ke>65535&&Ke<1114112&&(we=Ke))}}we===null?(we=65533,de=1):we>65535&&(we-=65536,X.push(we>>>10&1023|55296),we=56320|we&1023),X.push(we),ee+=de}return B(X)}const A=4096;function B(U){const k=U.length;if(k<=A)return String.fromCharCode.apply(String,U);let L="",X=0;for(;XX)&&(L=X);let ee="";for(let $e=k;$eX&&(k=X),L<0?(L+=X,L<0&&(L=0)):L>X&&(L=X),LL)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(k,L,X){k=k>>>0,L=L>>>0,X||K(k,L,this.length);let ee=this[k],$e=1,we=0;for(;++we>>0,L=L>>>0,X||K(k,L,this.length);let ee=this[k+--L],$e=1;for(;L>0&&($e*=256);)ee+=this[k+--L]*$e;return ee},s.prototype.readUint8=s.prototype.readUInt8=function(k,L){return k=k>>>0,L||K(k,1,this.length),this[k]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(k,L){return k=k>>>0,L||K(k,2,this.length),this[k]|this[k+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(k,L){return k=k>>>0,L||K(k,2,this.length),this[k]<<8|this[k+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(k,L){return k=k>>>0,L||K(k,4,this.length),(this[k]|this[k+1]<<8|this[k+2]<<16)+this[k+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(k,L){return k=k>>>0,L||K(k,4,this.length),this[k]*16777216+(this[k+1]<<16|this[k+2]<<8|this[k+3])},s.prototype.readBigUInt64LE=qe(function(k){k=k>>>0,ye(k,"offset");const L=this[k],X=this[k+7];(L===void 0||X===void 0)&&Ce(k,this.length-8);const ee=L+this[++k]*2**8+this[++k]*2**16+this[++k]*2**24,$e=this[++k]+this[++k]*2**8+this[++k]*2**16+X*2**24;return BigInt(ee)+(BigInt($e)<>>0,ye(k,"offset");const L=this[k],X=this[k+7];(L===void 0||X===void 0)&&Ce(k,this.length-8);const ee=L*2**24+this[++k]*2**16+this[++k]*2**8+this[++k],$e=this[++k]*2**24+this[++k]*2**16+this[++k]*2**8+X;return(BigInt(ee)<>>0,L=L>>>0,X||K(k,L,this.length);let ee=this[k],$e=1,we=0;for(;++we=$e&&(ee-=Math.pow(2,8*L)),ee},s.prototype.readIntBE=function(k,L,X){k=k>>>0,L=L>>>0,X||K(k,L,this.length);let ee=L,$e=1,we=this[k+--ee];for(;ee>0&&($e*=256);)we+=this[k+--ee]*$e;return $e*=128,we>=$e&&(we-=Math.pow(2,8*L)),we},s.prototype.readInt8=function(k,L){return k=k>>>0,L||K(k,1,this.length),this[k]&128?(255-this[k]+1)*-1:this[k]},s.prototype.readInt16LE=function(k,L){k=k>>>0,L||K(k,2,this.length);const X=this[k]|this[k+1]<<8;return X&32768?X|4294901760:X},s.prototype.readInt16BE=function(k,L){k=k>>>0,L||K(k,2,this.length);const X=this[k+1]|this[k]<<8;return X&32768?X|4294901760:X},s.prototype.readInt32LE=function(k,L){return k=k>>>0,L||K(k,4,this.length),this[k]|this[k+1]<<8|this[k+2]<<16|this[k+3]<<24},s.prototype.readInt32BE=function(k,L){return k=k>>>0,L||K(k,4,this.length),this[k]<<24|this[k+1]<<16|this[k+2]<<8|this[k+3]},s.prototype.readBigInt64LE=qe(function(k){k=k>>>0,ye(k,"offset");const L=this[k],X=this[k+7];(L===void 0||X===void 0)&&Ce(k,this.length-8);const ee=this[k+4]+this[k+5]*2**8+this[k+6]*2**16+(X<<24);return(BigInt(ee)<>>0,ye(k,"offset");const L=this[k],X=this[k+7];(L===void 0||X===void 0)&&Ce(k,this.length-8);const ee=(L<<24)+this[++k]*2**16+this[++k]*2**8+this[++k];return(BigInt(ee)<>>0,L||K(k,4,this.length),n.read(this,k,!0,23,4)},s.prototype.readFloatBE=function(k,L){return k=k>>>0,L||K(k,4,this.length),n.read(this,k,!1,23,4)},s.prototype.readDoubleLE=function(k,L){return k=k>>>0,L||K(k,8,this.length),n.read(this,k,!0,52,8)},s.prototype.readDoubleBE=function(k,L){return k=k>>>0,L||K(k,8,this.length),n.read(this,k,!1,52,8)};function G(U,k,L,X,ee,$e){if(!s.isBuffer(U))throw new TypeError('"buffer" argument must be a Buffer instance');if(k>ee||k<$e)throw new RangeError('"value" argument is out of bounds');if(L+X>U.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(k,L,X,ee){if(k=+k,L=L>>>0,X=X>>>0,!ee){const de=Math.pow(2,8*X)-1;G(this,k,L,X,de,0)}let $e=1,we=0;for(this[L]=k&255;++we>>0,X=X>>>0,!ee){const de=Math.pow(2,8*X)-1;G(this,k,L,X,de,0)}let $e=X-1,we=1;for(this[L+$e]=k&255;--$e>=0&&(we*=256);)this[L+$e]=k/we&255;return L+X},s.prototype.writeUint8=s.prototype.writeUInt8=function(k,L,X){return k=+k,L=L>>>0,X||G(this,k,L,1,255,0),this[L]=k&255,L+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(k,L,X){return k=+k,L=L>>>0,X||G(this,k,L,2,65535,0),this[L]=k&255,this[L+1]=k>>>8,L+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(k,L,X){return k=+k,L=L>>>0,X||G(this,k,L,2,65535,0),this[L]=k>>>8,this[L+1]=k&255,L+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(k,L,X){return k=+k,L=L>>>0,X||G(this,k,L,4,4294967295,0),this[L+3]=k>>>24,this[L+2]=k>>>16,this[L+1]=k>>>8,this[L]=k&255,L+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(k,L,X){return k=+k,L=L>>>0,X||G(this,k,L,4,4294967295,0),this[L]=k>>>24,this[L+1]=k>>>16,this[L+2]=k>>>8,this[L+3]=k&255,L+4};function re(U,k,L,X,ee){be(k,X,ee,U,L,7);let $e=Number(k&BigInt(4294967295));U[L++]=$e,$e=$e>>8,U[L++]=$e,$e=$e>>8,U[L++]=$e,$e=$e>>8,U[L++]=$e;let we=Number(k>>BigInt(32)&BigInt(4294967295));return U[L++]=we,we=we>>8,U[L++]=we,we=we>>8,U[L++]=we,we=we>>8,U[L++]=we,L}function Q(U,k,L,X,ee){be(k,X,ee,U,L,7);let $e=Number(k&BigInt(4294967295));U[L+7]=$e,$e=$e>>8,U[L+6]=$e,$e=$e>>8,U[L+5]=$e,$e=$e>>8,U[L+4]=$e;let we=Number(k>>BigInt(32)&BigInt(4294967295));return U[L+3]=we,we=we>>8,U[L+2]=we,we=we>>8,U[L+1]=we,we=we>>8,U[L]=we,L+8}s.prototype.writeBigUInt64LE=qe(function(k,L=0){return re(this,k,L,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=qe(function(k,L=0){return Q(this,k,L,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(k,L,X,ee){if(k=+k,L=L>>>0,!ee){const Se=Math.pow(2,8*X-1);G(this,k,L,X,Se-1,-Se)}let $e=0,we=1,de=0;for(this[L]=k&255;++$e>0)-de&255;return L+X},s.prototype.writeIntBE=function(k,L,X,ee){if(k=+k,L=L>>>0,!ee){const Se=Math.pow(2,8*X-1);G(this,k,L,X,Se-1,-Se)}let $e=X-1,we=1,de=0;for(this[L+$e]=k&255;--$e>=0&&(we*=256);)k<0&&de===0&&this[L+$e+1]!==0&&(de=1),this[L+$e]=(k/we>>0)-de&255;return L+X},s.prototype.writeInt8=function(k,L,X){return k=+k,L=L>>>0,X||G(this,k,L,1,127,-128),k<0&&(k=255+k+1),this[L]=k&255,L+1},s.prototype.writeInt16LE=function(k,L,X){return k=+k,L=L>>>0,X||G(this,k,L,2,32767,-32768),this[L]=k&255,this[L+1]=k>>>8,L+2},s.prototype.writeInt16BE=function(k,L,X){return k=+k,L=L>>>0,X||G(this,k,L,2,32767,-32768),this[L]=k>>>8,this[L+1]=k&255,L+2},s.prototype.writeInt32LE=function(k,L,X){return k=+k,L=L>>>0,X||G(this,k,L,4,2147483647,-2147483648),this[L]=k&255,this[L+1]=k>>>8,this[L+2]=k>>>16,this[L+3]=k>>>24,L+4},s.prototype.writeInt32BE=function(k,L,X){return k=+k,L=L>>>0,X||G(this,k,L,4,2147483647,-2147483648),k<0&&(k=4294967295+k+1),this[L]=k>>>24,this[L+1]=k>>>16,this[L+2]=k>>>8,this[L+3]=k&255,L+4},s.prototype.writeBigInt64LE=qe(function(k,L=0){return re(this,k,L,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=qe(function(k,L=0){return Q(this,k,L,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function fe(U,k,L,X,ee,$e){if(L+X>U.length)throw new RangeError("Index out of range");if(L<0)throw new RangeError("Index out of range")}function se(U,k,L,X,ee){return k=+k,L=L>>>0,ee||fe(U,k,L,4),n.write(U,k,L,X,23,4),L+4}s.prototype.writeFloatLE=function(k,L,X){return se(this,k,L,!0,X)},s.prototype.writeFloatBE=function(k,L,X){return se(this,k,L,!1,X)};function oe(U,k,L,X,ee){return k=+k,L=L>>>0,ee||fe(U,k,L,8),n.write(U,k,L,X,52,8),L+8}s.prototype.writeDoubleLE=function(k,L,X){return oe(this,k,L,!0,X)},s.prototype.writeDoubleBE=function(k,L,X){return oe(this,k,L,!1,X)},s.prototype.copy=function(k,L,X,ee){if(!s.isBuffer(k))throw new TypeError("argument should be a Buffer");if(X||(X=0),!ee&&ee!==0&&(ee=this.length),L>=k.length&&(L=k.length),L||(L=0),ee>0&&ee=this.length)throw new RangeError("Index out of range");if(ee<0)throw new RangeError("sourceEnd out of bounds");ee>this.length&&(ee=this.length),k.length-L>>0,X=X===void 0?this.length:X>>>0,k||(k=0);let $e;if(typeof k=="number")for($e=L;$e2**32?ee=ve(String(L)):typeof L=="bigint"&&(ee=String(L),(L>BigInt(2)**BigInt(32)||L<-(BigInt(2)**BigInt(32)))&&(ee=ve(ee)),ee+="n"),X+=` It must be ${k}. Received ${ee}`,X},RangeError);function ve(U){let k="",L=U.length;const X=U[0]==="-"?1:0;for(;L>=X+4;L-=3)k=`_${U.slice(L-3,L)}${k}`;return`${U.slice(0,L)}${k}`}function he(U,k,L){ye(k,"offset"),(U[k]===void 0||U[k+L]===void 0)&&Ce(k,U.length-(L+1))}function be(U,k,L,X,ee,$e){if(U>L||U3?k===0||k===BigInt(0)?de=`>= 0${we} and < 2${we} ** ${($e+1)*8}${we}`:de=`>= -(2${we} ** ${($e+1)*8-1}${we}) and < 2 ** ${($e+1)*8-1}${we}`:de=`>= ${k}${we} and <= ${L}${we}`,new ie.ERR_OUT_OF_RANGE("value",de,U)}he(X,ee,$e)}function ye(U,k){if(typeof U!="number")throw new ie.ERR_INVALID_ARG_TYPE(k,"number",U)}function Ce(U,k,L){throw Math.floor(U)!==U?(ye(U,L),new ie.ERR_OUT_OF_RANGE(L||"offset","an integer",U)):k<0?new ie.ERR_BUFFER_OUT_OF_BOUNDS:new ie.ERR_OUT_OF_RANGE(L||"offset",`>= ${L?1:0} and <= ${k}`,U)}const Ee=/[^+/0-9A-Za-z-_]/g;function je(U){if(U=U.split("=")[0],U=U.trim().replace(Ee,""),U.length<2)return"";for(;U.length%4!==0;)U=U+"=";return U}function De(U,k){k=k||1/0;let L;const X=U.length;let ee=null;const $e=[];for(let we=0;we55295&&L<57344){if(!ee){if(L>56319){(k-=3)>-1&&$e.push(239,191,189);continue}else if(we+1===X){(k-=3)>-1&&$e.push(239,191,189);continue}ee=L;continue}if(L<56320){(k-=3)>-1&&$e.push(239,191,189),ee=L;continue}L=(ee-55296<<10|L-56320)+65536}else ee&&(k-=3)>-1&&$e.push(239,191,189);if(ee=null,L<128){if((k-=1)<0)break;$e.push(L)}else if(L<2048){if((k-=2)<0)break;$e.push(L>>6|192,L&63|128)}else if(L<65536){if((k-=3)<0)break;$e.push(L>>12|224,L>>6&63|128,L&63|128)}else if(L<1114112){if((k-=4)<0)break;$e.push(L>>18|240,L>>12&63|128,L>>6&63|128,L&63|128)}else throw new Error("Invalid code point")}return $e}function _e(U){const k=[];for(let L=0;L>8,ee=L%256,$e.push(ee),$e.push(X);return $e}function Ie(U){return t.toByteArray(je(U))}function Fe(U,k,L,X){let ee;for(ee=0;ee=k.length||ee>=U.length);++ee)k[ee+L]=U[ee];return ee}function Ge(U,k){return U instanceof k||U!=null&&U.constructor!=null&&U.constructor.name!=null&&U.constructor.name===k.name}function ft(U){return U!==U}const it=function(){const U="0123456789abcdef",k=new Array(256);for(let L=0;L<16;++L){const X=L*16;for(let ee=0;ee<16;++ee)k[X+ee]=U[L]+U[ee]}return k}();function qe(U){return typeof BigInt>"u"?at:U}function at(){throw new Error("BigInt not supported")}})(V9);function H4e(e){return"data:image/png;base64,"+V9.Buffer.from(e).toString("base64")}function U4e({client:e,isOpen:t,onCancel:n,onUpdateClient:r}){const[o,i]=er.useNotification(),[a,s]=l.useState(" "),c=async()=>{try{o.info({message:"Downloading..."});const f=(await ur.getExternalClientConfig(e.clientid,e.network,"file")).data;P$e(`${e.clientid}.conf`,f)}catch(f){o.error({message:"Failed to download client config",description:Qt(f)})}},u=l.useCallback(async()=>{try{const f=(await ur.getExternalClientConfig(e.clientid,e.network,"qr")).data;s(H4e(f))}catch(f){o.error({message:"Failed to load client config",description:Qt(f)})}},[e,o]),d=l.useCallback(async f=>{fn.confirm({title:`Are you sure you want to ${f?"enable":"disable"} client ${e.clientid}?`,content:`Client ${e.clientid} will be ${f?"enabled":"disabled"}.`,onOk:async()=>{try{const p=(await ur.updateExternalClient(e.clientid,e.network,{...e,clientid:e.clientid,enabled:f})).data;r(p)}catch(p){o.error({message:"Failed to update client",description:Qt(p)})}}})},[e,o,r]);return l.useEffect(()=>{u()},[u]),h.jsxs(fn,{title:h.jsx("span",{style:{fontSize:"1.25rem",fontWeight:"bold"},children:"Client Information"}),open:t,onCancel:n,footer:null,centered:!0,className:"ClientDetailsModal CustomModal",style:{minWidth:"50vw"},children:[h.jsx(Jt,{style:{margin:"0px 0px 2rem 0px"}}),h.jsxs("div",{className:"CustomModalBody",children:[h.jsxs(Oe,{"data-nmui-intercom":"client-details_id",children:[h.jsx(q,{xs:8,children:h.jsx(ce.Text,{children:"ID"})}),h.jsx(q,{xs:16,children:h.jsx(ce.Text,{children:e.clientid})})]}),h.jsx(Jt,{style:{margin:"1rem 0px 1rem 0px"}}),h.jsxs(Oe,{"data-nmui-intercom":"client-details_allowedips",children:[h.jsx(q,{xs:8,children:h.jsx(ce.Text,{children:"Allowed IPs"})}),h.jsx(q,{xs:16,children:h.jsx(Lr,{mode:"multiple",disabled:!0,placeholder:"Allowed IPs",defaultValue:[e.address,e.address6].concat(e.extraallowedips?e.extraallowedips:[])},e.clientid)})]}),h.jsx(Jt,{style:{margin:"1rem 0px 1rem 0px"}}),h.jsxs(Oe,{"data-nmui-intercom":"client-details_publickey",children:[h.jsx(q,{xs:8,children:h.jsx(ce.Text,{children:"Public key"})}),h.jsx(q,{xs:16,children:h.jsx(ce.Text,{copyable:!0,children:e.publickey})})]}),h.jsx(Jt,{style:{margin:"1rem 0px 1rem 0px"}}),h.jsxs(Oe,{"data-nmui-intercom":"client-details_dns",children:[h.jsx(q,{xs:8,children:h.jsx(ce.Text,{children:"Client DNS"})}),h.jsx(q,{xs:16,children:e.dns&&h.jsx(ce.Text,{copyable:!0,children:e.dns})})]}),h.jsx(Jt,{style:{margin:"1rem 0px 1rem 0px"}}),h.jsxs(Oe,{"data-nmui-intercom":"client-details_status",children:[h.jsx(q,{xs:8,children:h.jsx(ce.Text,{children:"Status"})}),h.jsx(q,{xs:16,children:h.jsx(po,{checked:e.enabled,onChange:f=>d(f)})})]}),h.jsx(Jt,{style:{margin:"1rem 0px 1rem 0px"}}),h.jsx(Oe,{"data-nmui-intercom":"client-details_qr",children:h.jsx(q,{xs:24,children:h.jsx(VL,{loading:"eager",className:"qr-code-container",preview:{width:600,height:600},alt:`qr code for client ${e.clientid}`,src:a,style:{borderRadius:"8px"},width:256})})}),h.jsx(Oe,{style:{marginTop:"1rem"},"data-nmui-intercom":"client-details_downloadbtn",children:h.jsx(q,{xs:24,children:h.jsxs(ut,{onClick:c,children:[h.jsx(Wxe,{})," Download config"]})})})]}),i]})}function W4e({isOpen:e,onUpdateEgress:t,onCancel:n,egress:r,networkId:o}){const[i]=Xe.useForm(),[a,s]=er.useNotification(),c=tn(),{token:u}=Uo.useToken(),[d,f]=l.useState(!1),p=Xe.useWatch("ranges",i),g=Xe.useWatch("natEnabled",i),v=l.useMemo(()=>Hr(r,c.hostsCommonDetails),[r,c.hostsCommonDetails]),y=l.useCallback(x=>io(x)==="error"?h.jsx(Un,{status:"error",text:"Error"}):io(x)==="warning"?h.jsx(Un,{status:"warning",text:"Unstable"}):io(x)==="healthy"?h.jsx(Un,{status:"success",text:"Healthy"}):h.jsx(Un,{status:"processing",text:"Unknown"}),[]),S=()=>{i.resetFields()},b=async()=>{try{const x=await i.validateFields();f(!0);const C=new Set(x.ranges);await ur.deleteEgressNode(r.id,o),C.size>0&&await ur.createEgressNode(r.id,o,{ranges:[...C],natEnabled:x.natEnabled?"yes":"no"}),t(),a.success({message:"Egress gateway updated"})}catch(x){a.error({message:"Failed to update egress gateway",description:Qt(x)})}finally{f(!1)}};return h.jsxs(fn,{title:h.jsx("span",{style:{fontSize:"1.25rem",fontWeight:"bold"},children:"Update Egress"}),open:e,onCancel:x=>{S(),n?.(x)},footer:null,className:"CustomModal UpdateEgressModal",style:{minWidth:"50vw"},children:[h.jsx(Jt,{style:{margin:"0px 0px 2rem 0px"}}),h.jsxs(Xe,{name:"update-egress-form",form:i,layout:"vertical",initialValues:{...r,natEnabled:r.egressgatewaynatenabled},children:[h.jsxs("div",{className:"",style:{maxHeight:"60vh",overflow:"auto"},children:[h.jsx("div",{className:"CustomModalBody",children:h.jsx(Xe.Item,{label:"Host",rules:[{required:!0}],style:{marginBottom:"0px"},"data-nmui-intercom":"update-egress-form_host",children:!!v&&h.jsx(h.Fragment,{children:h.jsxs(Oe,{style:{border:`1px solid ${u.colorBorder}`,padding:".5rem",borderRadius:"8px"},children:[h.jsx(q,{span:6,children:v?.name??""}),h.jsxs(q,{span:6,children:[v?.address??""," ",v?.address6??""]}),h.jsx(q,{span:6,children:v?.endpointip??""}),h.jsx(q,{span:5,children:y(v)})]})})})}),h.jsx(Jt,{style:{margin:"0px 0px 2rem 0px"}}),h.jsxs("div",{className:"CustomModalBody",children:[h.jsx(Xe.Item,{name:"natEnabled",label:"Enable NAT for egress traffic","data-nmui-intercom":"update-egress-form_natEnabled",children:h.jsx(po,{defaultChecked:r.egressgatewaynatenabled})}),!g&&h.jsx(cu,{type:"warning",message:"Egress may not function properly without NAT. You must ensure the host is properly configured"}),h.jsx(ce.Title,{level:4,children:"Select external ranges"}),h.jsx(Xe.List,{name:"ranges",initialValue:r.egressgatewayranges,"data-nmui-intercom":"update-egress-form_ranges",children:(x,{add:C,remove:E},{errors:$})=>h.jsxs(h.Fragment,{children:[x.map((O,I)=>h.jsx(Xe.Item,{label:I===0?"Input range":"",required:!1,style:{marginBottom:".5rem"},children:h.jsx(Xe.Item,{...O,validateTrigger:["onBlur"],rules:[{required:!0,validator(N,_){return g9(_)?Promise.resolve():Promise.reject("Invalid CIDR")}}],noStyle:!0,children:h.jsx(Ut,{placeholder:"CIDR range (eg: 10.0.0.0/8 or a123:4567::/16)",style:{width:"100%"},prefix:h.jsx(Io,{title:"Remove",children:h.jsx(No,{onClick:()=>E(I)})})})})},O.key)),h.jsxs(Xe.Item,{children:[h.jsx(ut,{onClick:()=>C(),icon:h.jsx(Dr,{}),children:"Add range"}),h.jsx(Xe.ErrorList,{errors:$})]})]})})]})]}),h.jsx(Jt,{style:{margin:"0px 0px 2rem 0px"}}),h.jsx("div",{className:"CustomModalBody",children:h.jsx(Oe,{children:h.jsx(q,{xs:24,style:{textAlign:"right"},children:h.jsx(ut,{type:"primary",danger:p?.length===0,onClick:b,loading:d,"data-nmui-intercom":"update-egress-form_submitbtn",children:p?.length===0?"Delete Egress":"Update Egress"})})})})]}),s]})}var N1={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */N1.exports;(function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",u=500,d="__lodash_placeholder__",f=1,p=2,g=4,v=1,y=2,S=1,b=2,x=4,C=8,E=16,$=32,O=64,I=128,N=256,_=512,T=30,D="...",j=800,P=16,M=1,A=2,B=3,F=1/0,H=9007199254740991,W=17976931348623157e292,V=0/0,K=4294967295,G=K-1,re=K>>>1,Q=[["ary",I],["bind",S],["bindKey",b],["curry",C],["curryRight",E],["flip",_],["partial",$],["partialRight",O],["rearg",N]],fe="[object Arguments]",se="[object Array]",oe="[object AsyncFunction]",ie="[object Boolean]",ge="[object Date]",ve="[object DOMException]",he="[object Error]",be="[object Function]",ye="[object GeneratorFunction]",Ce="[object Map]",Ee="[object Number]",je="[object Null]",De="[object Object]",_e="[object Promise]",Me="[object Proxy]",Ie="[object RegExp]",Fe="[object Set]",Ge="[object String]",ft="[object Symbol]",it="[object Undefined]",qe="[object WeakMap]",at="[object WeakSet]",U="[object ArrayBuffer]",k="[object DataView]",L="[object Float32Array]",X="[object Float64Array]",ee="[object Int8Array]",$e="[object Int16Array]",we="[object Int32Array]",de="[object Uint8Array]",Se="[object Uint8ClampedArray]",Ae="[object Uint16Array]",We="[object Uint32Array]",Ke=/\b__p \+= '';/g,tt=/\b(__p \+=) '' \+/g,pe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Te=/&(?:amp|lt|gt|quot|#39);/g,ze=/[&<>"']/g,ke=RegExp(Te.source),et=RegExp(ze.source),mt=/<%-([\s\S]+?)%>/g,Ve=/<%([\s\S]+?)%>/g,rt=/<%=([\s\S]+?)%>/g,Ue=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Je=/^\w*$/,ht=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gt=/[\\^$.*+?()[\]{}|]/g,It=RegExp(gt.source),Et=/^\s+/,xt=/\s/,pt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Nt=/\{\n\/\* \[wrapped with (.+)\] \*/,Pt=/,? & /,_t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ot=/[()=,{}\[\]\/\s]/,gn=/\\(\\)?/g,Mt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,yt=/\w*$/,st=/^[-+]0x[0-9a-f]+$/i,nt=/^0b[01]+$/i,Xt=/^\[object .+?Constructor\]$/,nn=/^0o[0-7]+$/i,$n=/^(?:0|[1-9]\d*)$/,Kn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xn=/($^)/,Pr=/['\n\r\u2028\u2029\\]/g,Gn="\\ud800-\\udfff",Vr="\\u0300-\\u036f",_o="\\ufe20-\\ufe2f",Qn="\\u20d0-\\u20ff",rn=Vr+_o+Qn,Tt="\\u2700-\\u27bf",On="a-z\\xdf-\\xf6\\xf8-\\xff",Nn="\\xac\\xb1\\xd7\\xf7",Fr="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",bo="\\u2000-\\u206f",Jr=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",fr="A-Z\\xc0-\\xd6\\xd8-\\xde",eo="\\ufe0e\\ufe0f",To=Nn+Fr+bo+Jr,wn="['’]",hn="["+Gn+"]",$t="["+To+"]",jt="["+rn+"]",Rt="\\d+",Ht="["+Tt+"]",on="["+On+"]",_n="[^"+Gn+To+Rt+Tt+On+fr+"]",Bn="\\ud83c[\\udffb-\\udfff]",xo="(?:"+jt+"|"+Bn+")",zr="[^"+Gn+"]",jr="(?:\\ud83c[\\udde6-\\uddff]){2}",Sn="[\\ud800-\\udbff][\\udc00-\\udfff]",wo="["+fr+"]",Bi="\\u200d",so="(?:"+on+"|"+_n+")",wi="(?:"+wo+"|"+_n+")",Jo="(?:"+wn+"(?:d|ll|m|re|s|t|ve))?",ca="(?:"+wn+"(?:D|LL|M|RE|S|T|VE))?",ds=xo+"?",ja="["+eo+"]?",Si="(?:"+Bi+"(?:"+[zr,jr,Sn].join("|")+")"+ja+ds+")*",fs="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Lt="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",an=ja+ds+Si,sr="(?:"+[Ht,jr,Sn].join("|")+")"+an,Or="(?:"+[zr+jt+"?",jt,jr,Sn,hn].join("|")+")",tr=RegExp(wn,"g"),hs=RegExp(jt,"g"),Hi=RegExp(Bn+"(?="+Bn+")|"+Or+an,"g"),Sl=RegExp([wo+"?"+on+"+"+Jo+"(?="+[$t,wo,"$"].join("|")+")",wi+"+"+ca+"(?="+[$t,wo+so,"$"].join("|")+")",wo+"?"+so+"+"+Jo,wo+"+"+ca,Lt,fs,Rt,sr].join("|"),"g"),ps=RegExp("["+Bi+Gn+rn+eo+"]"),xc=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Sd=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Gh=-1,hr={};hr[L]=hr[X]=hr[ee]=hr[$e]=hr[we]=hr[de]=hr[Se]=hr[Ae]=hr[We]=!0,hr[fe]=hr[se]=hr[U]=hr[ie]=hr[k]=hr[ge]=hr[he]=hr[be]=hr[Ce]=hr[Ee]=hr[De]=hr[Ie]=hr[Fe]=hr[Ge]=hr[qe]=!1;var nr={};nr[fe]=nr[se]=nr[U]=nr[k]=nr[ie]=nr[ge]=nr[L]=nr[X]=nr[ee]=nr[$e]=nr[we]=nr[Ce]=nr[Ee]=nr[De]=nr[Ie]=nr[Fe]=nr[Ge]=nr[ft]=nr[de]=nr[Se]=nr[Ae]=nr[We]=!0,nr[he]=nr[be]=nr[qe]=!1;var te={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},ue={"&":"&","<":"<",">":">",'"':""","'":"'"},Ye={"&":"&","<":"<",">":">",""":'"',"'":"'"},en={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},pn=parseFloat,Br=parseInt,Mr=typeof wt=="object"&&wt&&wt.Object===Object&&wt,Gg=typeof self=="object"&&self&&self.Object===Object&&self,xr=Mr||Gg||Function("return this")(),Ko=t&&!t.nodeType&&t,ms=Ko&&!0&&e&&!e.nodeType&&e,Ui=ms&&ms.exports===Ko,Ir=Ui&&Mr.process,Wi=function(){try{var Le=ms&&ms.require&&ms.require("util").types;return Le||Ir&&Ir.binding&&Ir.binding("util")}catch{}}(),Yh=Wi&&Wi.isArrayBuffer,qh=Wi&&Wi.isDate,Xh=Wi&&Wi.isMap,Yg=Wi&&Wi.isRegExp,qg=Wi&&Wi.isSet,Xg=Wi&&Wi.isTypedArray;function Ci(Le,ot,Qe){switch(Qe.length){case 0:return Le.call(ot);case 1:return Le.call(ot,Qe[0]);case 2:return Le.call(ot,Qe[0],Qe[1]);case 3:return Le.call(ot,Qe[0],Qe[1],Qe[2])}return Le.apply(ot,Qe)}function Qh(Le,ot,Qe,zt){for(var bn=-1,rr=Le==null?0:Le.length;++bn-1}function Zh(Le,ot,Qe){for(var zt=-1,bn=Le==null?0:Le.length;++zt-1;);return Qe}function dO(Le,ot){for(var Qe=Le.length;Qe--&&Qs(ot,Le[Qe],0)>-1;);return Qe}function xz(Le,ot){for(var Qe=Le.length,zt=0;Qe--;)Le[Qe]===ot&&++zt;return zt}var wz=Dt(te),Sz=Dt(ue);function Cz(Le){return"\\"+en[Le]}function Ez(Le,ot){return Le==null?n:Le[ot]}function Ed(Le){return ps.test(Le)}function $z(Le){return xc.test(Le)}function Oz(Le){for(var ot,Qe=[];!(ot=Le.next()).done;)Qe.push(ot.value);return Qe}function Px(Le){var ot=-1,Qe=Array(Le.size);return Le.forEach(function(zt,bn){Qe[++ot]=[bn,zt]}),Qe}function fO(Le,ot){return function(Qe){return Le(ot(Qe))}}function wc(Le,ot){for(var Qe=-1,zt=Le.length,bn=0,rr=[];++Qe-1}function hB(m,w){var R=this.__data__,z=gv(R,m);return z<0?(++this.size,R.push([m,w])):R[z][1]=w,this}El.prototype.clear=cB,El.prototype.delete=uB,El.prototype.get=dB,El.prototype.has=fB,El.prototype.set=hB;function $l(m){var w=-1,R=m==null?0:m.length;for(this.clear();++w=w?m:w)),m}function Da(m,w,R,z,Y,J){var xe,Pe=w&f,Be=w&p,ct=w&g;if(R&&(xe=Y?R(m,z,Y,J):R(m)),xe!==n)return xe;if(!Kr(m))return m;var dt=xn(m);if(dt){if(xe=vH(m),!Pe)return Gi(m,xe)}else{var vt=ui(m),kt=vt==be||vt==ye;if(Ic(m))return YO(m,Pe);if(vt==De||vt==fe||kt&&!Y){if(xe=Be||kt?{}:hI(m),!Pe)return Be?aH(m,NB(xe,m)):iH(m,EO(xe,m))}else{if(!nr[vt])return Y?m:{};xe=yH(m,vt,Pe)}}J||(J=new bs);var Yt=J.get(m);if(Yt)return Yt;J.set(m,xe),HI(m)?m.forEach(function(dn){xe.add(Da(dn,w,R,dn,m,J))}):zI(m)&&m.forEach(function(dn,An){xe.set(An,Da(dn,w,R,An,m,J))});var un=ct?Be?ow:rw:Be?qi:Go,Rn=dt?n:un(m);return Vi(Rn||m,function(dn,An){Rn&&(An=dn,dn=m[An]),sp(xe,An,Da(dn,w,R,An,m,J))}),xe}function _B(m){var w=Go(m);return function(R){return $O(R,m,w)}}function $O(m,w,R){var z=R.length;if(m==null)return!z;for(m=$r(m);z--;){var Y=R[z],J=w[Y],xe=m[Y];if(xe===n&&!(Y in m)||!J(xe))return!1}return!0}function OO(m,w,R){if(typeof m!="function")throw new Ma(a);return pp(function(){m.apply(n,R)},w)}function lp(m,w,R,z){var Y=-1,J=yu,xe=!0,Pe=m.length,Be=[],ct=w.length;if(!Pe)return Be;R&&(w=Er(w,to(R))),z?(J=Zh,xe=!1):w.length>=o&&(J=da,xe=!1,w=new Su(w));e:for(;++YY?0:Y+R),z=z===n||z>Y?Y:Cn(z),z<0&&(z+=Y),z=R>z?0:WI(z);R0&&R(Pe)?w>1?ti(Pe,w-1,R,z,Y):gs(Y,Pe):z||(Y[Y.length]=Pe)}return Y}var Fx=eI(),NO=eI(!0);function Js(m,w){return m&&Fx(m,w,Go)}function zx(m,w){return m&&NO(m,w,Go)}function yv(m,w){return ei(w,function(R){return _l(m[R])})}function Eu(m,w){w=$c(w,m);for(var R=0,z=w.length;m!=null&&Rw}function jB(m,w){return m!=null&&mr.call(m,w)}function MB(m,w){return m!=null&&w in $r(m)}function kB(m,w,R){return m>=ci(w,R)&&m=120&&dt.length>=120)?new Su(xe&&dt):n}dt=m[0];var vt=-1,kt=Pe[0];e:for(;++vt-1;)Pe!==m&&cv.call(Pe,Be,1),cv.call(m,Be,1);return m}function zO(m,w){for(var R=m?w.length:0,z=R-1;R--;){var Y=w[R];if(R==z||Y!==J){var J=Y;Nl(Y)?cv.call(m,Y,1):Xx(m,Y)}}return m}function Gx(m,w){return m+fv(xO()*(w-m+1))}function YB(m,w,R,z){for(var Y=-1,J=jo(dv((w-m)/(R||1)),0),xe=Qe(J);J--;)xe[z?J:++Y]=m,m+=R;return xe}function Yx(m,w){var R="";if(!m||w<1||w>H)return R;do w%2&&(R+=m),w=fv(w/2),w&&(m+=m);while(w);return R}function Tn(m,w){return dw(gI(m,w,Xi),m+"")}function qB(m){return CO(kd(m))}function XB(m,w){var R=kd(m);return Nv(R,Cu(w,0,R.length))}function dp(m,w,R,z){if(!Kr(m))return m;w=$c(w,m);for(var Y=-1,J=w.length,xe=J-1,Pe=m;Pe!=null&&++YY?0:Y+w),R=R>Y?Y:R,R<0&&(R+=Y),Y=w>R?0:R-w>>>0,w>>>=0;for(var J=Qe(Y);++z>>1,xe=m[J];xe!==null&&!ha(xe)&&(R?xe<=w:xe=o){var ct=w?null:uH(m);if(ct)return tv(ct);xe=!1,Y=da,Be=new Su}else Be=w?[]:Pe;e:for(;++z=z?m:Aa(m,w,R)}var GO=Bz||function(m){return xr.clearTimeout(m)};function YO(m,w){if(w)return m.slice();var R=m.length,z=mO?mO(R):new m.constructor(R);return m.copy(z),z}function ew(m){var w=new m.constructor(m.byteLength);return new sv(w).set(new sv(m)),w}function tH(m,w){var R=w?ew(m.buffer):m.buffer;return new m.constructor(R,m.byteOffset,m.byteLength)}function nH(m){var w=new m.constructor(m.source,yt.exec(m));return w.lastIndex=m.lastIndex,w}function rH(m){return ap?$r(ap.call(m)):{}}function qO(m,w){var R=w?ew(m.buffer):m.buffer;return new m.constructor(R,m.byteOffset,m.length)}function XO(m,w){if(m!==w){var R=m!==n,z=m===null,Y=m===m,J=ha(m),xe=w!==n,Pe=w===null,Be=w===w,ct=ha(w);if(!Pe&&!ct&&!J&&m>w||J&&xe&&Be&&!Pe&&!ct||z&&xe&&Be||!R&&Be||!Y)return 1;if(!z&&!J&&!ct&&m=Pe)return Be;var ct=R[z];return Be*(ct=="desc"?-1:1)}}return m.index-w.index}function QO(m,w,R,z){for(var Y=-1,J=m.length,xe=R.length,Pe=-1,Be=w.length,ct=jo(J-xe,0),dt=Qe(Be+ct),vt=!z;++Pe1?R[Y-1]:n,xe=Y>2?R[2]:n;for(J=m.length>3&&typeof J=="function"?(Y--,J):n,xe&&$i(R[0],R[1],xe)&&(J=Y<3?n:J,Y=1),w=$r(w);++z-1?Y[J?w[xe]:xe]:n}}function rI(m){return Rl(function(w){var R=w.length,z=R,Y=ka.prototype.thru;for(m&&w.reverse();z--;){var J=w[z];if(typeof J!="function")throw new Ma(a);if(Y&&!xe&&Iv(J)=="wrapper")var xe=new ka([],!0)}for(z=xe?z:R;++z1&&Hn.reverse(),dt&&BePe))return!1;var ct=J.get(m),dt=J.get(w);if(ct&&dt)return ct==w&&dt==m;var vt=-1,kt=!0,Yt=R&y?new Su:n;for(J.set(m,w),J.set(w,m);++vt1?"& ":"")+w[z],w=w.join(R>2?", ":" "),m.replace(pt,`{ /* [wrapped with `+w+`] */ `)}function xH(m){return xn(m)||Iu(m)||!!(yO&&m&&m[yO])}function Nl(m,w){var R=typeof m;return w=w??H,!!w&&(R=="number"||R!="symbol"&&$n.test(m))&&m>-1&&m%1==0&&m0){if(++w>=j)return arguments[0]}else w=0;return m.apply(n,arguments)}}function Nv(m,w){var R=-1,z=m.length,Y=z-1;for(w=w===n?z:w;++R1?m[w-1]:n;return R=typeof R=="function"?(m.pop(),R):n,RI(m,R)});function NI(m){var w=Z(m);return w.__chain__=!0,w}function TU(m,w){return w(m),m}function _v(m,w){return w(m)}var PU=Rl(function(m){var w=m.length,R=w?m[0]:0,z=this.__wrapped__,Y=function(J){return Lx(J,m)};return w>1||this.__actions__.length||!(z instanceof Ln)||!Nl(R)?this.thru(Y):(z=z.slice(R,+R+(w?1:0)),z.__actions__.push({func:_v,args:[Y],thisArg:n}),new ka(z,this.__chain__).thru(function(J){return w&&!J.length&&J.push(n),J}))});function jU(){return NI(this)}function MU(){return new ka(this.value(),this.__chain__)}function kU(){this.__values__===n&&(this.__values__=UI(this.value()));var m=this.__index__>=this.__values__.length,w=m?n:this.__values__[this.__index__++];return{done:m,value:w}}function DU(){return this}function AU(m){for(var w,R=this;R instanceof mv;){var z=SI(R);z.__index__=0,z.__values__=n,w?Y.__wrapped__=z:w=z;var Y=z;R=R.__wrapped__}return Y.__wrapped__=m,w}function LU(){var m=this.__wrapped__;if(m instanceof Ln){var w=m;return this.__actions__.length&&(w=new Ln(this)),w=w.reverse(),w.__actions__.push({func:_v,args:[fw],thisArg:n}),new ka(w,this.__chain__)}return this.thru(fw)}function FU(){return VO(this.__wrapped__,this.__actions__)}var zU=Sv(function(m,w,R){mr.call(m,R)?++m[R]:Ol(m,R,1)});function BU(m,w,R){var z=xn(m)?Cd:TB;return R&&$i(m,w,R)&&(w=n),z(m,ln(w,3))}function HU(m,w){var R=xn(m)?ei:RO;return R(m,ln(w,3))}var UU=nI(CI),WU=nI(EI);function VU(m,w){return ti(Tv(m,w),1)}function KU(m,w){return ti(Tv(m,w),F)}function GU(m,w,R){return R=R===n?1:Cn(R),ti(Tv(m,w),R)}function _I(m,w){var R=xn(m)?Vi:Cc;return R(m,ln(w,3))}function TI(m,w){var R=xn(m)?Rx:IO;return R(m,ln(w,3))}var YU=Sv(function(m,w,R){mr.call(m,R)?m[R].push(w):Ol(m,R,[w])});function qU(m,w,R,z){m=Yi(m)?m:kd(m),R=R&&!z?Cn(R):0;var Y=m.length;return R<0&&(R=jo(Y+R,0)),Dv(m)?R<=Y&&m.indexOf(w,R)>-1:!!Y&&Qs(m,w,R)>-1}var XU=Tn(function(m,w,R){var z=-1,Y=typeof w=="function",J=Yi(m)?Qe(m.length):[];return Cc(m,function(xe){J[++z]=Y?Ci(w,xe,R):cp(xe,w,R)}),J}),QU=Sv(function(m,w,R){Ol(m,R,w)});function Tv(m,w){var R=xn(m)?Er:MO;return R(m,ln(w,3))}function ZU(m,w,R,z){return m==null?[]:(xn(w)||(w=w==null?[]:[w]),R=z?n:R,xn(R)||(R=R==null?[]:[R]),LO(m,w,R))}var JU=Sv(function(m,w,R){m[R?0:1].push(w)},function(){return[[],[]]});function eW(m,w,R){var z=xn(m)?Jh:Zt,Y=arguments.length<3;return z(m,ln(w,4),R,Y,Cc)}function tW(m,w,R){var z=xn(m)?Nx:Zt,Y=arguments.length<3;return z(m,ln(w,4),R,Y,IO)}function nW(m,w){var R=xn(m)?ei:RO;return R(m,Mv(ln(w,3)))}function rW(m){var w=xn(m)?CO:qB;return w(m)}function oW(m,w,R){(R?$i(m,w,R):w===n)?w=1:w=Cn(w);var z=xn(m)?OB:XB;return z(m,w)}function iW(m){var w=xn(m)?IB:ZB;return w(m)}function aW(m){if(m==null)return 0;if(Yi(m))return Dv(m)?$d(m):m.length;var w=ui(m);return w==Ce||w==Fe?m.size:Wx(m).length}function sW(m,w,R){var z=xn(m)?ep:JB;return R&&$i(m,w,R)&&(w=n),z(m,ln(w,3))}var lW=Tn(function(m,w){if(m==null)return[];var R=w.length;return R>1&&$i(m,w[0],w[1])?w=[]:R>2&&$i(w[0],w[1],w[2])&&(w=[w[0]]),LO(m,ti(w,1),[])}),Pv=Hz||function(){return xr.Date.now()};function cW(m,w){if(typeof w!="function")throw new Ma(a);return m=Cn(m),function(){if(--m<1)return w.apply(this,arguments)}}function PI(m,w,R){return w=R?n:w,w=m&&w==null?m.length:w,Il(m,I,n,n,n,n,w)}function jI(m,w){var R;if(typeof w!="function")throw new Ma(a);return m=Cn(m),function(){return--m>0&&(R=w.apply(this,arguments)),m<=1&&(w=n),R}}var pw=Tn(function(m,w,R){var z=S;if(R.length){var Y=wc(R,jd(pw));z|=$}return Il(m,z,w,R,Y)}),MI=Tn(function(m,w,R){var z=S|b;if(R.length){var Y=wc(R,jd(MI));z|=$}return Il(w,z,m,R,Y)});function kI(m,w,R){w=R?n:w;var z=Il(m,C,n,n,n,n,n,w);return z.placeholder=kI.placeholder,z}function DI(m,w,R){w=R?n:w;var z=Il(m,E,n,n,n,n,n,w);return z.placeholder=DI.placeholder,z}function AI(m,w,R){var z,Y,J,xe,Pe,Be,ct=0,dt=!1,vt=!1,kt=!0;if(typeof m!="function")throw new Ma(a);w=Fa(w)||0,Kr(R)&&(dt=!!R.leading,vt="maxWait"in R,J=vt?jo(Fa(R.maxWait)||0,w):J,kt="trailing"in R?!!R.trailing:kt);function Yt(co){var ws=z,Pl=Y;return z=Y=n,ct=co,xe=m.apply(Pl,ws),xe}function un(co){return ct=co,Pe=pp(An,w),dt?Yt(co):xe}function Rn(co){var ws=co-Be,Pl=co-ct,nR=w-ws;return vt?ci(nR,J-Pl):nR}function dn(co){var ws=co-Be,Pl=co-ct;return Be===n||ws>=w||ws<0||vt&&Pl>=J}function An(){var co=Pv();if(dn(co))return Hn(co);Pe=pp(An,Rn(co))}function Hn(co){return Pe=n,kt&&z?Yt(co):(z=Y=n,xe)}function pa(){Pe!==n&&GO(Pe),ct=0,z=Be=Y=Pe=n}function Oi(){return Pe===n?xe:Hn(Pv())}function ma(){var co=Pv(),ws=dn(co);if(z=arguments,Y=this,Be=co,ws){if(Pe===n)return un(Be);if(vt)return GO(Pe),Pe=pp(An,w),Yt(Be)}return Pe===n&&(Pe=pp(An,w)),xe}return ma.cancel=pa,ma.flush=Oi,ma}var uW=Tn(function(m,w){return OO(m,1,w)}),dW=Tn(function(m,w,R){return OO(m,Fa(w)||0,R)});function fW(m){return Il(m,_)}function jv(m,w){if(typeof m!="function"||w!=null&&typeof w!="function")throw new Ma(a);var R=function(){var z=arguments,Y=w?w.apply(this,z):z[0],J=R.cache;if(J.has(Y))return J.get(Y);var xe=m.apply(this,z);return R.cache=J.set(Y,xe)||J,xe};return R.cache=new(jv.Cache||$l),R}jv.Cache=$l;function Mv(m){if(typeof m!="function")throw new Ma(a);return function(){var w=arguments;switch(w.length){case 0:return!m.call(this);case 1:return!m.call(this,w[0]);case 2:return!m.call(this,w[0],w[1]);case 3:return!m.call(this,w[0],w[1],w[2])}return!m.apply(this,w)}}function hW(m){return jI(2,m)}var pW=eH(function(m,w){w=w.length==1&&xn(w[0])?Er(w[0],to(ln())):Er(ti(w,1),to(ln()));var R=w.length;return Tn(function(z){for(var Y=-1,J=ci(z.length,R);++Y=w}),Iu=TO(function(){return arguments}())?TO:function(m){return no(m)&&mr.call(m,"callee")&&!vO.call(m,"callee")},xn=Qe.isArray,NW=Yh?to(Yh):AB;function Yi(m){return m!=null&&kv(m.length)&&!_l(m)}function lo(m){return no(m)&&Yi(m)}function _W(m){return m===!0||m===!1||no(m)&&Ei(m)==ie}var Ic=Wz||Ow,TW=qh?to(qh):LB;function PW(m){return no(m)&&m.nodeType===1&&!mp(m)}function jW(m){if(m==null)return!0;if(Yi(m)&&(xn(m)||typeof m=="string"||typeof m.splice=="function"||Ic(m)||Md(m)||Iu(m)))return!m.length;var w=ui(m);if(w==Ce||w==Fe)return!m.size;if(hp(m))return!Wx(m).length;for(var R in m)if(mr.call(m,R))return!1;return!0}function MW(m,w){return up(m,w)}function kW(m,w,R){R=typeof R=="function"?R:n;var z=R?R(m,w):n;return z===n?up(m,w,n,R):!!z}function gw(m){if(!no(m))return!1;var w=Ei(m);return w==he||w==ve||typeof m.message=="string"&&typeof m.name=="string"&&!mp(m)}function DW(m){return typeof m=="number"&&bO(m)}function _l(m){if(!Kr(m))return!1;var w=Ei(m);return w==be||w==ye||w==oe||w==Me}function FI(m){return typeof m=="number"&&m==Cn(m)}function kv(m){return typeof m=="number"&&m>-1&&m%1==0&&m<=H}function Kr(m){var w=typeof m;return m!=null&&(w=="object"||w=="function")}function no(m){return m!=null&&typeof m=="object"}var zI=Xh?to(Xh):zB;function AW(m,w){return m===w||Ux(m,w,aw(w))}function LW(m,w,R){return R=typeof R=="function"?R:n,Ux(m,w,aw(w),R)}function FW(m){return BI(m)&&m!=+m}function zW(m){if(CH(m))throw new bn(i);return PO(m)}function BW(m){return m===null}function HW(m){return m==null}function BI(m){return typeof m=="number"||no(m)&&Ei(m)==Ee}function mp(m){if(!no(m)||Ei(m)!=De)return!1;var w=lv(m);if(w===null)return!0;var R=mr.call(w,"constructor")&&w.constructor;return typeof R=="function"&&R instanceof R&&ov.call(R)==Lz}var vw=Yg?to(Yg):BB;function UW(m){return FI(m)&&m>=-H&&m<=H}var HI=qg?to(qg):HB;function Dv(m){return typeof m=="string"||!xn(m)&&no(m)&&Ei(m)==Ge}function ha(m){return typeof m=="symbol"||no(m)&&Ei(m)==ft}var Md=Xg?to(Xg):UB;function WW(m){return m===n}function VW(m){return no(m)&&ui(m)==qe}function KW(m){return no(m)&&Ei(m)==at}var GW=Ov(Vx),YW=Ov(function(m,w){return m<=w});function UI(m){if(!m)return[];if(Yi(m))return Dv(m)?ys(m):Gi(m);if(np&&m[np])return Oz(m[np]());var w=ui(m),R=w==Ce?Px:w==Fe?tv:kd;return R(m)}function Tl(m){if(!m)return m===0?m:0;if(m=Fa(m),m===F||m===-F){var w=m<0?-1:1;return w*W}return m===m?m:0}function Cn(m){var w=Tl(m),R=w%1;return w===w?R?w-R:w:0}function WI(m){return m?Cu(Cn(m),0,K):0}function Fa(m){if(typeof m=="number")return m;if(ha(m))return V;if(Kr(m)){var w=typeof m.valueOf=="function"?m.valueOf():m;m=Kr(w)?w+"":w}if(typeof m!="string")return m===0?m:+m;m=vs(m);var R=nt.test(m);return R||nn.test(m)?Br(m.slice(2),R?2:8):st.test(m)?V:+m}function VI(m){return el(m,qi(m))}function qW(m){return m?Cu(Cn(m),-H,H):m===0?m:0}function lr(m){return m==null?"":fa(m)}var XW=Td(function(m,w){if(hp(w)||Yi(w)){el(w,Go(w),m);return}for(var R in w)mr.call(w,R)&&sp(m,R,w[R])}),KI=Td(function(m,w){el(w,qi(w),m)}),Av=Td(function(m,w,R,z){el(w,qi(w),m,z)}),QW=Td(function(m,w,R,z){el(w,Go(w),m,z)}),ZW=Rl(Lx);function JW(m,w){var R=_d(m);return w==null?R:EO(R,w)}var eV=Tn(function(m,w){m=$r(m);var R=-1,z=w.length,Y=z>2?w[2]:n;for(Y&&$i(w[0],w[1],Y)&&(z=1);++R1),J}),el(m,ow(m),R),z&&(R=Da(R,f|p|g,dH));for(var Y=w.length;Y--;)Xx(R,w[Y]);return R});function yV(m,w){return YI(m,Mv(ln(w)))}var bV=Rl(function(m,w){return m==null?{}:KB(m,w)});function YI(m,w){if(m==null)return{};var R=Er(ow(m),function(z){return[z]});return w=ln(w),FO(m,R,function(z,Y){return w(z,Y[0])})}function xV(m,w,R){w=$c(w,m);var z=-1,Y=w.length;for(Y||(Y=1,m=n);++zw){var z=m;m=w,w=z}if(R||m%1||w%1){var Y=xO();return ci(m+Y*(w-m+pn("1e-"+((Y+"").length-1))),w)}return Gx(m,w)}var TV=Pd(function(m,w,R){return w=w.toLowerCase(),m+(R?QI(w):w)});function QI(m){return xw(lr(m).toLowerCase())}function ZI(m){return m=lr(m),m&&m.replace(Kn,wz).replace(hs,"")}function PV(m,w,R){m=lr(m),w=fa(w);var z=m.length;R=R===n?z:Cu(Cn(R),0,z);var Y=R;return R-=w.length,R>=0&&m.slice(R,Y)==w}function jV(m){return m=lr(m),m&&et.test(m)?m.replace(ze,Sz):m}function MV(m){return m=lr(m),m&&It.test(m)?m.replace(gt,"\\$&"):m}var kV=Pd(function(m,w,R){return m+(R?"-":"")+w.toLowerCase()}),DV=Pd(function(m,w,R){return m+(R?" ":"")+w.toLowerCase()}),AV=tI("toLowerCase");function LV(m,w,R){m=lr(m),w=Cn(w);var z=w?$d(m):0;if(!w||z>=w)return m;var Y=(w-z)/2;return $v(fv(Y),R)+m+$v(dv(Y),R)}function FV(m,w,R){m=lr(m),w=Cn(w);var z=w?$d(m):0;return w&&z>>0,R?(m=lr(m),m&&(typeof w=="string"||w!=null&&!vw(w))&&(w=fa(w),!w&&Ed(m))?Oc(ys(m),0,R):m.split(w,R)):[]}var KV=Pd(function(m,w,R){return m+(R?" ":"")+xw(w)});function GV(m,w,R){return m=lr(m),R=R==null?0:Cu(Cn(R),0,m.length),w=fa(w),m.slice(R,R+w.length)==w}function YV(m,w,R){var z=Z.templateSettings;R&&$i(m,w,R)&&(w=n),m=lr(m),w=Av({},w,z,lI);var Y=Av({},w.imports,z.imports,lI),J=Go(Y),xe=Cl(Y,J),Pe,Be,ct=0,dt=w.interpolate||Xn,vt="__p += '",kt=jx((w.escape||Xn).source+"|"+dt.source+"|"+(dt===rt?Mt:Xn).source+"|"+(w.evaluate||Xn).source+"|$","g"),Yt="//# sourceURL="+(mr.call(w,"sourceURL")?(w.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Gh+"]")+` `;m.replace(kt,function(dn,An,Hn,pa,Oi,ma){return Hn||(Hn=pa),vt+=m.slice(ct,ma).replace(Pr,Cz),An&&(Pe=!0,vt+=`' + __e(`+An+`) + '`),Oi&&(Be=!0,vt+=`'; `+Oi+`; __p += '`),Hn&&(vt+=`' + ((__t = (`+Hn+`)) == null ? '' : __t) + '`),ct=ma+dn.length,dn}),vt+=`'; `;var un=mr.call(w,"variable")&&w.variable;if(!un)vt=`with (obj) { `+vt+` } `;else if(Ot.test(un))throw new bn(s);vt=(Be?vt.replace(Ke,""):vt).replace(tt,"$1").replace(pe,"$1;"),vt="function("+(un||"obj")+`) { `+(un?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(Pe?", __e = _.escape":"")+(Be?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+vt+`return __p }`;var Rn=eR(function(){return rr(J,Yt+"return "+vt).apply(n,xe)});if(Rn.source=vt,gw(Rn))throw Rn;return Rn}function qV(m){return lr(m).toLowerCase()}function XV(m){return lr(m).toUpperCase()}function QV(m,w,R){if(m=lr(m),m&&(R||w===n))return vs(m);if(!m||!(w=fa(w)))return m;var z=ys(m),Y=ys(w),J=Ki(z,Y),xe=dO(z,Y)+1;return Oc(z,J,xe).join("")}function ZV(m,w,R){if(m=lr(m),m&&(R||w===n))return m.slice(0,hO(m)+1);if(!m||!(w=fa(w)))return m;var z=ys(m),Y=dO(z,ys(w))+1;return Oc(z,0,Y).join("")}function JV(m,w,R){if(m=lr(m),m&&(R||w===n))return m.replace(Et,"");if(!m||!(w=fa(w)))return m;var z=ys(m),Y=Ki(z,ys(w));return Oc(z,Y).join("")}function eK(m,w){var R=T,z=D;if(Kr(w)){var Y="separator"in w?w.separator:Y;R="length"in w?Cn(w.length):R,z="omission"in w?fa(w.omission):z}m=lr(m);var J=m.length;if(Ed(m)){var xe=ys(m);J=xe.length}if(R>=J)return m;var Pe=R-$d(z);if(Pe<1)return z;var Be=xe?Oc(xe,0,Pe).join(""):m.slice(0,Pe);if(Y===n)return Be+z;if(xe&&(Pe+=Be.length-Pe),vw(Y)){if(m.slice(Pe).search(Y)){var ct,dt=Be;for(Y.global||(Y=jx(Y.source,lr(yt.exec(Y))+"g")),Y.lastIndex=0;ct=Y.exec(dt);)var vt=ct.index;Be=Be.slice(0,vt===n?Pe:vt)}}else if(m.indexOf(fa(Y),Pe)!=Pe){var kt=Be.lastIndexOf(Y);kt>-1&&(Be=Be.slice(0,kt))}return Be+z}function tK(m){return m=lr(m),m&&ke.test(m)?m.replace(Te,_z):m}var nK=Pd(function(m,w,R){return m+(R?" ":"")+w.toUpperCase()}),xw=tI("toUpperCase");function JI(m,w,R){return m=lr(m),w=R?n:w,w===n?$z(m)?jz(m):Tx(m):m.match(w)||[]}var eR=Tn(function(m,w){try{return Ci(m,n,w)}catch(R){return gw(R)?R:new bn(R)}}),rK=Rl(function(m,w){return Vi(w,function(R){R=tl(R),Ol(m,R,pw(m[R],m))}),m});function oK(m){var w=m==null?0:m.length,R=ln();return m=w?Er(m,function(z){if(typeof z[1]!="function")throw new Ma(a);return[R(z[0]),z[1]]}):[],Tn(function(z){for(var Y=-1;++YH)return[];var R=K,z=ci(m,K);w=ln(w),m-=K;for(var Y=Zs(z,w);++R0||w<0)?new Ln(R):(m<0?R=R.takeRight(-m):m&&(R=R.drop(m)),w!==n&&(w=Cn(w),R=w<0?R.dropRight(-w):R.take(w-m)),R)},Ln.prototype.takeRightWhile=function(m){return this.reverse().takeWhile(m).reverse()},Ln.prototype.toArray=function(){return this.take(K)},Js(Ln.prototype,function(m,w){var R=/^(?:filter|find|map|reject)|While$/.test(w),z=/^(?:head|last)$/.test(w),Y=Z[z?"take"+(w=="last"?"Right":""):w],J=z||/^find/.test(w);Y&&(Z.prototype[w]=function(){var xe=this.__wrapped__,Pe=z?[1]:arguments,Be=xe instanceof Ln,ct=Pe[0],dt=Be||xn(xe),vt=function(An){var Hn=Y.apply(Z,gs([An],Pe));return z&&kt?Hn[0]:Hn};dt&&R&&typeof ct=="function"&&ct.length!=1&&(Be=dt=!1);var kt=this.__chain__,Yt=!!this.__actions__.length,un=J&&!kt,Rn=Be&&!Yt;if(!J&&dt){xe=Rn?xe:new Ln(this);var dn=m.apply(xe,Pe);return dn.__actions__.push({func:_v,args:[vt],thisArg:n}),new ka(dn,kt)}return un&&Rn?m.apply(this,Pe):(dn=this.thru(vt),un?z?dn.value()[0]:dn.value():dn)})}),Vi(["pop","push","shift","sort","splice","unshift"],function(m){var w=nv[m],R=/^(?:push|sort|unshift)$/.test(m)?"tap":"thru",z=/^(?:pop|shift)$/.test(m);Z.prototype[m]=function(){var Y=arguments;if(z&&!this.__chain__){var J=this.value();return w.apply(xn(J)?J:[],Y)}return this[R](function(xe){return w.apply(xn(xe)?xe:[],Y)})}}),Js(Ln.prototype,function(m,w){var R=Z[w];if(R){var z=R.name+"";mr.call(Nd,z)||(Nd[z]=[]),Nd[z].push({name:w,func:R})}}),Nd[Cv(n,b).name]=[{name:"wrapper",func:n}],Ln.prototype.clone=tB,Ln.prototype.reverse=nB,Ln.prototype.value=rB,Z.prototype.at=PU,Z.prototype.chain=jU,Z.prototype.commit=MU,Z.prototype.next=kU,Z.prototype.plant=AU,Z.prototype.reverse=LU,Z.prototype.toJSON=Z.prototype.valueOf=Z.prototype.value=FU,Z.prototype.first=Z.prototype.head,np&&(Z.prototype[np]=DU),Z},Od=Mz();ms?((ms.exports=Od)._=Od,Ko._=Od):xr._=Od}).call(wt)})(N1,N1.exports);var G9=N1.exports,z3={exports:{}},Vf=typeof Reflect=="object"?Reflect:null,S8=Vf&&typeof Vf.apply=="function"?Vf.apply:function(t,n,r){return Function.prototype.apply.call(t,n,r)},by;Vf&&typeof Vf.ownKeys=="function"?by=Vf.ownKeys:Object.getOwnPropertySymbols?by=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:by=function(t){return Object.getOwnPropertyNames(t)};function V4e(e){console&&console.warn&&console.warn(e)}var Y9=Number.isNaN||function(t){return t!==t};function Cr(){Cr.init.call(this)}z3.exports=Cr;z3.exports.once=q4e;Cr.EventEmitter=Cr;Cr.prototype._events=void 0;Cr.prototype._eventsCount=0;Cr.prototype._maxListeners=void 0;var C8=10;function mx(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Cr,"defaultMaxListeners",{enumerable:!0,get:function(){return C8},set:function(e){if(typeof e!="number"||e<0||Y9(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");C8=e}});Cr.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Cr.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||Y9(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function q9(e){return e._maxListeners===void 0?Cr.defaultMaxListeners:e._maxListeners}Cr.prototype.getMaxListeners=function(){return q9(this)};Cr.prototype.emit=function(t){for(var n=[],r=1;r0&&(a=n[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=i[t];if(c===void 0)return!1;if(typeof c=="function")S8(c,this,n);else for(var u=c.length,d=eF(c,u),r=0;r0&&a.length>o&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,V4e(s)}return e}Cr.prototype.addListener=function(t,n){return X9(this,t,n,!1)};Cr.prototype.on=Cr.prototype.addListener;Cr.prototype.prependListener=function(t,n){return X9(this,t,n,!0)};function K4e(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Q9(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=K4e.bind(r);return o.listener=n,r.wrapFn=o,o}Cr.prototype.once=function(t,n){return mx(n),this.on(t,Q9(this,t,n)),this};Cr.prototype.prependOnceListener=function(t,n){return mx(n),this.prependListener(t,Q9(this,t,n)),this};Cr.prototype.removeListener=function(t,n){var r,o,i,a,s;if(mx(n),o=this._events,o===void 0)return this;if(r=o[t],r===void 0)return this;if(r===n||r.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete o[t],o.removeListener&&this.emit("removeListener",t,r.listener||n));else if(typeof r!="function"){for(i=-1,a=r.length-1;a>=0;a--)if(r[a]===n||r[a].listener===n){s=r[a].listener,i=a;break}if(i<0)return this;i===0?r.shift():G4e(r,i),r.length===1&&(o[t]=r[0]),o.removeListener!==void 0&&this.emit("removeListener",t,s||n)}return this};Cr.prototype.off=Cr.prototype.removeListener;Cr.prototype.removeAllListeners=function(t){var n,r,o;if(r=this._events,r===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete r[t]),this;if(arguments.length===0){var i=Object.keys(r),a;for(o=0;o=0;o--)this.removeListener(t,n[o]);return this};function Z9(e,t,n){var r=e._events;if(r===void 0)return[];var o=r[t];return o===void 0?[]:typeof o=="function"?n?[o.listener||o]:[o]:n?Y4e(o):eF(o,o.length)}Cr.prototype.listeners=function(t){return Z9(this,t,!0)};Cr.prototype.rawListeners=function(t){return Z9(this,t,!1)};Cr.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):J9.call(e,t)};Cr.prototype.listenerCount=J9;function J9(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}Cr.prototype.eventNames=function(){return this._eventsCount>0?by(this._events):[]};function eF(e,t){for(var n=new Array(t),r=0;r=t?{done:!0}:{done:!1,value:e[n++]}})};bl.empty=function(){var e=new bl(function(){return{done:!0}});return e};bl.fromSequence=function(e){var t=0,n=e.length;return new bl(function(){return t>=n?{done:!0}:{done:!1,value:e[t++]}})};bl.is=function(e){return e instanceof bl?!0:typeof e=="object"&&e!==null&&typeof e.next=="function"};var B3=bl;const as=Vo(B3);var H3={};H3.ARRAY_BUFFER_SUPPORT=typeof ArrayBuffer<"u";H3.SYMBOL_SUPPORT=typeof Symbol<"u";var Q4e=B3,rF=H3,Z4e=rF.ARRAY_BUFFER_SUPPORT,J4e=rF.SYMBOL_SUPPORT;function e3e(e){return typeof e=="string"||Array.isArray(e)||Z4e&&ArrayBuffer.isView(e)?Q4e.fromSequence(e):typeof e!="object"||e===null?null:J4e&&typeof e[Symbol.iterator]=="function"?e[Symbol.iterator]():typeof e.next=="function"?e:null}var oF=function(t){var n=e3e(t);if(!n)throw new Error("obliterator: target is not iterable nor a valid iterator.");return n},t3e=oF,n3e=function(t,n){for(var r=arguments.length>1?n:1/0,o=r!==1/0?new Array(r):[],i,a=0,s=t3e(t);;){if(a===r)return o;if(i=s.next(),i.done)return a!==n&&(o.length=a),o;o[a++]=i.value}};const iF=Vo(n3e);var r3e=B3,o3e=oF,i3e=function(){var t=arguments,n=null,r=-1;return new r3e(function(){var i=null;do{if(n===null){if(r++,r>=t.length)return{done:!0};n=o3e(t[r])}if(i=n.next(),i.done===!0){n=null;continue}break}while(!0);return i})};const tc=Vo(i3e);function a3e(){const e=arguments[0];for(let t=1,n=arguments.length;te++}class U3 extends Error{constructor(t){super(),this.name="GraphError",this.message=t}}class At extends U3{constructor(t){super(t),this.name="InvalidArgumentsGraphError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,At.prototype.constructor)}}class Ct extends U3{constructor(t){super(t),this.name="NotFoundGraphError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Ct.prototype.constructor)}}class cn extends U3{constructor(t){super(t),this.name="UsageGraphError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,cn.prototype.constructor)}}function sF(e,t){this.key=e,this.attributes=t,this.clear()}sF.prototype.clear=function(){this.inDegree=0,this.outDegree=0,this.undirectedDegree=0,this.undirectedLoops=0,this.directedLoops=0,this.in={},this.out={},this.undirected={}};function lF(e,t){this.key=e,this.attributes=t,this.clear()}lF.prototype.clear=function(){this.inDegree=0,this.outDegree=0,this.directedLoops=0,this.in={},this.out={}};function cF(e,t){this.key=e,this.attributes=t,this.clear()}cF.prototype.clear=function(){this.undirectedDegree=0,this.undirectedLoops=0,this.undirected={}};function Uh(e,t,n,r,o){this.key=t,this.attributes=o,this.undirected=e,this.source=n,this.target=r}Uh.prototype.attach=function(){let e="out",t="in";this.undirected&&(e=t="undirected");const n=this.source.key,r=this.target.key;this.source[e][r]=this,!(this.undirected&&n===r)&&(this.target[t][n]=this)};Uh.prototype.attachMulti=function(){let e="out",t="in";const n=this.source.key,r=this.target.key;this.undirected&&(e=t="undirected");const o=this.source[e],i=o[r];if(typeof i>"u"){o[r]=this,this.undirected&&n===r||(this.target[t][n]=this);return}i.previous=this,this.next=i,o[r]=this,this.target[t][n]=this};Uh.prototype.detach=function(){const e=this.source.key,t=this.target.key;let n="out",r="in";this.undirected&&(n=r="undirected"),delete this.source[n][t],delete this.target[r][e]};Uh.prototype.detachMulti=function(){const e=this.source.key,t=this.target.key;let n="out",r="in";this.undirected&&(n=r="undirected"),this.previous===void 0?this.next===void 0?(delete this.source[n][t],delete this.target[r][e]):(this.next.previous=void 0,this.source[n][t]=this.next,this.target[r][e]=this.next):(this.previous.next=this.next,this.next!==void 0&&(this.next.previous=this.previous))};const uF=0,dF=1,l3e=2,fF=3;function bc(e,t,n,r,o,i,a){let s,c,u,d;if(r=""+r,n===uF){if(s=e._nodes.get(r),!s)throw new Ct(`Graph.${t}: could not find the "${r}" node in the graph.`);u=o,d=i}else if(n===fF){if(o=""+o,c=e._edges.get(o),!c)throw new Ct(`Graph.${t}: could not find the "${o}" edge in the graph.`);const f=c.source.key,p=c.target.key;if(r===f)s=c.target;else if(r===p)s=c.source;else throw new Ct(`Graph.${t}: the "${r}" node is not attached to the "${o}" edge (${f}, ${p}).`);u=i,d=a}else{if(c=e._edges.get(r),!c)throw new Ct(`Graph.${t}: could not find the "${r}" edge in the graph.`);n===dF?s=c.source:s=c.target,u=o,d=i}return[s,u,d]}function c3e(e,t,n){e.prototype[t]=function(r,o,i){const[a,s]=bc(this,t,n,r,o,i);return a.attributes[s]}}function u3e(e,t,n){e.prototype[t]=function(r,o){const[i]=bc(this,t,n,r,o);return i.attributes}}function d3e(e,t,n){e.prototype[t]=function(r,o,i){const[a,s]=bc(this,t,n,r,o,i);return a.attributes.hasOwnProperty(s)}}function f3e(e,t,n){e.prototype[t]=function(r,o,i,a){const[s,c,u]=bc(this,t,n,r,o,i,a);return s.attributes[c]=u,this.emit("nodeAttributesUpdated",{key:s.key,type:"set",attributes:s.attributes,name:c}),this}}function h3e(e,t,n){e.prototype[t]=function(r,o,i,a){const[s,c,u]=bc(this,t,n,r,o,i,a);if(typeof u!="function")throw new At(`Graph.${t}: updater should be a function.`);const d=s.attributes,f=u(d[c]);return d[c]=f,this.emit("nodeAttributesUpdated",{key:s.key,type:"set",attributes:s.attributes,name:c}),this}}function p3e(e,t,n){e.prototype[t]=function(r,o,i){const[a,s]=bc(this,t,n,r,o,i);return delete a.attributes[s],this.emit("nodeAttributesUpdated",{key:a.key,type:"remove",attributes:a.attributes,name:s}),this}}function m3e(e,t,n){e.prototype[t]=function(r,o,i){const[a,s]=bc(this,t,n,r,o,i);if(!ri(s))throw new At(`Graph.${t}: provided attributes are not a plain object.`);return a.attributes=s,this.emit("nodeAttributesUpdated",{key:a.key,type:"replace",attributes:a.attributes}),this}}function g3e(e,t,n){e.prototype[t]=function(r,o,i){const[a,s]=bc(this,t,n,r,o,i);if(!ri(s))throw new At(`Graph.${t}: provided attributes are not a plain object.`);return Ao(a.attributes,s),this.emit("nodeAttributesUpdated",{key:a.key,type:"merge",attributes:a.attributes,data:s}),this}}function v3e(e,t,n){e.prototype[t]=function(r,o,i){const[a,s]=bc(this,t,n,r,o,i);if(typeof s!="function")throw new At(`Graph.${t}: provided updater is not a function.`);return a.attributes=s(a.attributes),this.emit("nodeAttributesUpdated",{key:a.key,type:"update",attributes:a.attributes}),this}}const y3e=[{name:e=>`get${e}Attribute`,attacher:c3e},{name:e=>`get${e}Attributes`,attacher:u3e},{name:e=>`has${e}Attribute`,attacher:d3e},{name:e=>`set${e}Attribute`,attacher:f3e},{name:e=>`update${e}Attribute`,attacher:h3e},{name:e=>`remove${e}Attribute`,attacher:p3e},{name:e=>`replace${e}Attributes`,attacher:m3e},{name:e=>`merge${e}Attributes`,attacher:g3e},{name:e=>`update${e}Attributes`,attacher:v3e}];function b3e(e){y3e.forEach(function({name:t,attacher:n}){n(e,t("Node"),uF),n(e,t("Source"),dF),n(e,t("Target"),l3e),n(e,t("Opposite"),fF)})}function x3e(e,t,n){e.prototype[t]=function(r,o){let i;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new cn(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new cn(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const a=""+r,s=""+o;if(o=arguments[2],i=ts(this,a,s,n),!i)throw new Ct(`Graph.${t}: could not find an edge for the given path ("${a}" - "${s}").`)}else{if(n!=="mixed")throw new cn(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,i=this._edges.get(r),!i)throw new Ct(`Graph.${t}: could not find the "${r}" edge in the graph.`)}return i.attributes[o]}}function w3e(e,t,n){e.prototype[t]=function(r){let o;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new cn(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>1){if(this.multi)throw new cn(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const i=""+r,a=""+arguments[1];if(o=ts(this,i,a,n),!o)throw new Ct(`Graph.${t}: could not find an edge for the given path ("${i}" - "${a}").`)}else{if(n!=="mixed")throw new cn(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,o=this._edges.get(r),!o)throw new Ct(`Graph.${t}: could not find the "${r}" edge in the graph.`)}return o.attributes}}function S3e(e,t,n){e.prototype[t]=function(r,o){let i;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new cn(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new cn(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const a=""+r,s=""+o;if(o=arguments[2],i=ts(this,a,s,n),!i)throw new Ct(`Graph.${t}: could not find an edge for the given path ("${a}" - "${s}").`)}else{if(n!=="mixed")throw new cn(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,i=this._edges.get(r),!i)throw new Ct(`Graph.${t}: could not find the "${r}" edge in the graph.`)}return i.attributes.hasOwnProperty(o)}}function C3e(e,t,n){e.prototype[t]=function(r,o,i){let a;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new cn(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>3){if(this.multi)throw new cn(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const s=""+r,c=""+o;if(o=arguments[2],i=arguments[3],a=ts(this,s,c,n),!a)throw new Ct(`Graph.${t}: could not find an edge for the given path ("${s}" - "${c}").`)}else{if(n!=="mixed")throw new cn(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,a=this._edges.get(r),!a)throw new Ct(`Graph.${t}: could not find the "${r}" edge in the graph.`)}return a.attributes[o]=i,this.emit("edgeAttributesUpdated",{key:a.key,type:"set",attributes:a.attributes,name:o}),this}}function E3e(e,t,n){e.prototype[t]=function(r,o,i){let a;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new cn(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>3){if(this.multi)throw new cn(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const s=""+r,c=""+o;if(o=arguments[2],i=arguments[3],a=ts(this,s,c,n),!a)throw new Ct(`Graph.${t}: could not find an edge for the given path ("${s}" - "${c}").`)}else{if(n!=="mixed")throw new cn(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,a=this._edges.get(r),!a)throw new Ct(`Graph.${t}: could not find the "${r}" edge in the graph.`)}if(typeof i!="function")throw new At(`Graph.${t}: updater should be a function.`);return a.attributes[o]=i(a.attributes[o]),this.emit("edgeAttributesUpdated",{key:a.key,type:"set",attributes:a.attributes,name:o}),this}}function $3e(e,t,n){e.prototype[t]=function(r,o){let i;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new cn(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new cn(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const a=""+r,s=""+o;if(o=arguments[2],i=ts(this,a,s,n),!i)throw new Ct(`Graph.${t}: could not find an edge for the given path ("${a}" - "${s}").`)}else{if(n!=="mixed")throw new cn(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,i=this._edges.get(r),!i)throw new Ct(`Graph.${t}: could not find the "${r}" edge in the graph.`)}return delete i.attributes[o],this.emit("edgeAttributesUpdated",{key:i.key,type:"remove",attributes:i.attributes,name:o}),this}}function O3e(e,t,n){e.prototype[t]=function(r,o){let i;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new cn(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new cn(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const a=""+r,s=""+o;if(o=arguments[2],i=ts(this,a,s,n),!i)throw new Ct(`Graph.${t}: could not find an edge for the given path ("${a}" - "${s}").`)}else{if(n!=="mixed")throw new cn(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,i=this._edges.get(r),!i)throw new Ct(`Graph.${t}: could not find the "${r}" edge in the graph.`)}if(!ri(o))throw new At(`Graph.${t}: provided attributes are not a plain object.`);return i.attributes=o,this.emit("edgeAttributesUpdated",{key:i.key,type:"replace",attributes:i.attributes}),this}}function I3e(e,t,n){e.prototype[t]=function(r,o){let i;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new cn(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new cn(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const a=""+r,s=""+o;if(o=arguments[2],i=ts(this,a,s,n),!i)throw new Ct(`Graph.${t}: could not find an edge for the given path ("${a}" - "${s}").`)}else{if(n!=="mixed")throw new cn(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,i=this._edges.get(r),!i)throw new Ct(`Graph.${t}: could not find the "${r}" edge in the graph.`)}if(!ri(o))throw new At(`Graph.${t}: provided attributes are not a plain object.`);return Ao(i.attributes,o),this.emit("edgeAttributesUpdated",{key:i.key,type:"merge",attributes:i.attributes,data:o}),this}}function R3e(e,t,n){e.prototype[t]=function(r,o){let i;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new cn(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new cn(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const a=""+r,s=""+o;if(o=arguments[2],i=ts(this,a,s,n),!i)throw new Ct(`Graph.${t}: could not find an edge for the given path ("${a}" - "${s}").`)}else{if(n!=="mixed")throw new cn(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,i=this._edges.get(r),!i)throw new Ct(`Graph.${t}: could not find the "${r}" edge in the graph.`)}if(typeof o!="function")throw new At(`Graph.${t}: provided updater is not a function.`);return i.attributes=o(i.attributes),this.emit("edgeAttributesUpdated",{key:i.key,type:"update",attributes:i.attributes}),this}}const N3e=[{name:e=>`get${e}Attribute`,attacher:x3e},{name:e=>`get${e}Attributes`,attacher:w3e},{name:e=>`has${e}Attribute`,attacher:S3e},{name:e=>`set${e}Attribute`,attacher:C3e},{name:e=>`update${e}Attribute`,attacher:E3e},{name:e=>`remove${e}Attribute`,attacher:$3e},{name:e=>`replace${e}Attributes`,attacher:O3e},{name:e=>`merge${e}Attributes`,attacher:I3e},{name:e=>`update${e}Attributes`,attacher:R3e}];function _3e(e){N3e.forEach(function({name:t,attacher:n}){n(e,t("Edge"),"mixed"),n(e,t("DirectedEdge"),"directed"),n(e,t("UndirectedEdge"),"undirected")})}const T3e=[{name:"edges",type:"mixed"},{name:"inEdges",type:"directed",direction:"in"},{name:"outEdges",type:"directed",direction:"out"},{name:"inboundEdges",type:"mixed",direction:"in"},{name:"outboundEdges",type:"mixed",direction:"out"},{name:"directedEdges",type:"directed"},{name:"undirectedEdges",type:"undirected"}];function P3e(e,t,n,r){let o=!1;for(const i in t){if(i===r)continue;const a=t[i];if(o=n(a.key,a.attributes,a.source.key,a.target.key,a.source.attributes,a.target.attributes,a.undirected),e&&o)return a.key}}function j3e(e,t,n,r){let o,i,a,s=!1;for(const c in t)if(c!==r){o=t[c];do{if(i=o.source,a=o.target,s=n(o.key,o.attributes,i.key,a.key,i.attributes,a.attributes,o.undirected),e&&s)return o.key;o=o.next}while(o!==void 0)}}function eC(e,t){const n=Object.keys(e),r=n.length;let o,i=0;return new as(function(){do if(o)o=o.next;else{if(i>=r)return{done:!0};const s=n[i++];if(s===t){o=void 0;continue}o=e[s]}while(!o);return{done:!1,value:{edge:o.key,attributes:o.attributes,source:o.source.key,target:o.target.key,sourceAttributes:o.source.attributes,targetAttributes:o.target.attributes,undirected:o.undirected}}})}function M3e(e,t,n,r){const o=t[n];if(!o)return;const i=o.source,a=o.target;if(r(o.key,o.attributes,i.key,a.key,i.attributes,a.attributes,o.undirected)&&e)return o.key}function k3e(e,t,n,r){let o=t[n];if(!o)return;let i=!1;do{if(i=r(o.key,o.attributes,o.source.key,o.target.key,o.source.attributes,o.target.attributes,o.undirected),e&&i)return o.key;o=o.next}while(o!==void 0)}function tC(e,t){let n=e[t];return n.next!==void 0?new as(function(){if(!n)return{done:!0};const r={edge:n.key,attributes:n.attributes,source:n.source.key,target:n.target.key,sourceAttributes:n.source.attributes,targetAttributes:n.target.attributes,undirected:n.undirected};return n=n.next,{done:!1,value:r}}):as.of({edge:n.key,attributes:n.attributes,source:n.source.key,target:n.target.key,sourceAttributes:n.source.attributes,targetAttributes:n.target.attributes,undirected:n.undirected})}function D3e(e,t){if(e.size===0)return[];if(t==="mixed"||t===e.type)return typeof Array.from=="function"?Array.from(e._edges.keys()):iF(e._edges.keys(),e._edges.size);const n=t==="undirected"?e.undirectedSize:e.directedSize,r=new Array(n),o=t==="undirected",i=e._edges.values();let a=0,s,c;for(;s=i.next(),s.done!==!0;)c=s.value,c.undirected===o&&(r[a++]=c.key);return r}function hF(e,t,n,r){if(t.size===0)return;const o=n!=="mixed"&&n!==t.type,i=n==="undirected";let a,s,c=!1;const u=t._edges.values();for(;a=u.next(),a.done!==!0;){if(s=a.value,o&&s.undirected!==i)continue;const{key:d,attributes:f,source:p,target:g}=s;if(c=r(d,f,p.key,g.key,p.attributes,g.attributes,s.undirected),e&&c)return d}}function A3e(e,t){if(e.size===0)return as.empty();const n=t!=="mixed"&&t!==e.type,r=t==="undirected",o=e._edges.values();return new as(function(){let a,s;for(;;){if(a=o.next(),a.done)return a;if(s=a.value,!(n&&s.undirected!==r))break}return{value:{edge:s.key,attributes:s.attributes,source:s.source.key,target:s.target.key,sourceAttributes:s.source.attributes,targetAttributes:s.target.attributes,undirected:s.undirected},done:!1}})}function W3(e,t,n,r,o,i){const a=t?j3e:P3e;let s;if(n!=="undirected"&&(r!=="out"&&(s=a(e,o.in,i),e&&s)||r!=="in"&&(s=a(e,o.out,i,r?void 0:o.key),e&&s))||n!=="directed"&&(s=a(e,o.undirected,i),e&&s))return s}function L3e(e,t,n,r){const o=[];return W3(!1,e,t,n,r,function(i){o.push(i)}),o}function F3e(e,t,n){let r=as.empty();return e!=="undirected"&&(t!=="out"&&typeof n.in<"u"&&(r=tc(r,eC(n.in))),t!=="in"&&typeof n.out<"u"&&(r=tc(r,eC(n.out,t?void 0:n.key)))),e!=="directed"&&typeof n.undirected<"u"&&(r=tc(r,eC(n.undirected))),r}function V3(e,t,n,r,o,i,a){const s=n?k3e:M3e;let c;if(t!=="undirected"&&(typeof o.in<"u"&&r!=="out"&&(c=s(e,o.in,i,a),e&&c)||typeof o.out<"u"&&r!=="in"&&(r||o.key!==i)&&(c=s(e,o.out,i,a),e&&c))||t!=="directed"&&typeof o.undirected<"u"&&(c=s(e,o.undirected,i,a),e&&c))return c}function z3e(e,t,n,r,o){const i=[];return V3(!1,e,t,n,r,o,function(a){i.push(a)}),i}function B3e(e,t,n,r){let o=as.empty();return e!=="undirected"&&(typeof n.in<"u"&&t!=="out"&&r in n.in&&(o=tc(o,tC(n.in,r))),typeof n.out<"u"&&t!=="in"&&r in n.out&&(t||n.key!==r)&&(o=tc(o,tC(n.out,r)))),e!=="directed"&&typeof n.undirected<"u"&&r in n.undirected&&(o=tc(o,tC(n.undirected,r))),o}function H3e(e,t){const{name:n,type:r,direction:o}=t;e.prototype[n]=function(i,a){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return[];if(!arguments.length)return D3e(this,r);if(arguments.length===1){i=""+i;const s=this._nodes.get(i);if(typeof s>"u")throw new Ct(`Graph.${n}: could not find the "${i}" node in the graph.`);return L3e(this.multi,r==="mixed"?this.type:r,o,s)}if(arguments.length===2){i=""+i,a=""+a;const s=this._nodes.get(i);if(!s)throw new Ct(`Graph.${n}: could not find the "${i}" source node in the graph.`);if(!this._nodes.has(a))throw new Ct(`Graph.${n}: could not find the "${a}" target node in the graph.`);return z3e(r,this.multi,o,s,a)}throw new At(`Graph.${n}: too many arguments (expecting 0, 1 or 2 and got ${arguments.length}).`)}}function U3e(e,t){const{name:n,type:r,direction:o}=t,i="forEach"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[i]=function(u,d,f){if(!(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)){if(arguments.length===1)return f=u,hF(!1,this,r,f);if(arguments.length===2){u=""+u,f=d;const p=this._nodes.get(u);if(typeof p>"u")throw new Ct(`Graph.${i}: could not find the "${u}" node in the graph.`);return W3(!1,this.multi,r==="mixed"?this.type:r,o,p,f)}if(arguments.length===3){u=""+u,d=""+d;const p=this._nodes.get(u);if(!p)throw new Ct(`Graph.${i}: could not find the "${u}" source node in the graph.`);if(!this._nodes.has(d))throw new Ct(`Graph.${i}: could not find the "${d}" target node in the graph.`);return V3(!1,r,this.multi,o,p,d,f)}throw new At(`Graph.${i}: too many arguments (expecting 1, 2 or 3 and got ${arguments.length}).`)}};const a="map"+n[0].toUpperCase()+n.slice(1);e.prototype[a]=function(){const u=Array.prototype.slice.call(arguments),d=u.pop();let f;if(u.length===0){let p=0;r!=="directed"&&(p+=this.undirectedSize),r!=="undirected"&&(p+=this.directedSize),f=new Array(p);let g=0;u.push((v,y,S,b,x,C,E)=>{f[g++]=d(v,y,S,b,x,C,E)})}else f=[],u.push((p,g,v,y,S,b,x)=>{f.push(d(p,g,v,y,S,b,x))});return this[i].apply(this,u),f};const s="filter"+n[0].toUpperCase()+n.slice(1);e.prototype[s]=function(){const u=Array.prototype.slice.call(arguments),d=u.pop(),f=[];return u.push((p,g,v,y,S,b,x)=>{d(p,g,v,y,S,b,x)&&f.push(p)}),this[i].apply(this,u),f};const c="reduce"+n[0].toUpperCase()+n.slice(1);e.prototype[c]=function(){let u=Array.prototype.slice.call(arguments);if(u.length<2||u.length>4)throw new At(`Graph.${c}: invalid number of arguments (expecting 2, 3 or 4 and got ${u.length}).`);if(typeof u[u.length-1]=="function"&&typeof u[u.length-2]!="function")throw new At(`Graph.${c}: missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array.`);let d,f;u.length===2?(d=u[0],f=u[1],u=[]):u.length===3?(d=u[1],f=u[2],u=[u[0]]):u.length===4&&(d=u[2],f=u[3],u=[u[0],u[1]]);let p=f;return u.push((g,v,y,S,b,x,C)=>{p=d(p,g,v,y,S,b,x,C)}),this[i].apply(this,u),p}}function W3e(e,t){const{name:n,type:r,direction:o}=t,i="find"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[i]=function(c,u,d){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return!1;if(arguments.length===1)return d=c,hF(!0,this,r,d);if(arguments.length===2){c=""+c,d=u;const f=this._nodes.get(c);if(typeof f>"u")throw new Ct(`Graph.${i}: could not find the "${c}" node in the graph.`);return W3(!0,this.multi,r==="mixed"?this.type:r,o,f,d)}if(arguments.length===3){c=""+c,u=""+u;const f=this._nodes.get(c);if(!f)throw new Ct(`Graph.${i}: could not find the "${c}" source node in the graph.`);if(!this._nodes.has(u))throw new Ct(`Graph.${i}: could not find the "${u}" target node in the graph.`);return V3(!0,r,this.multi,o,f,u,d)}throw new At(`Graph.${i}: too many arguments (expecting 1, 2 or 3 and got ${arguments.length}).`)};const a="some"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[a]=function(){const c=Array.prototype.slice.call(arguments),u=c.pop();return c.push((f,p,g,v,y,S,b)=>u(f,p,g,v,y,S,b)),!!this[i].apply(this,c)};const s="every"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[s]=function(){const c=Array.prototype.slice.call(arguments),u=c.pop();return c.push((f,p,g,v,y,S,b)=>!u(f,p,g,v,y,S,b)),!this[i].apply(this,c)}}function V3e(e,t){const{name:n,type:r,direction:o}=t,i=n.slice(0,-1)+"Entries";e.prototype[i]=function(a,s){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return as.empty();if(!arguments.length)return A3e(this,r);if(arguments.length===1){a=""+a;const c=this._nodes.get(a);if(!c)throw new Ct(`Graph.${i}: could not find the "${a}" node in the graph.`);return F3e(r,o,c)}if(arguments.length===2){a=""+a,s=""+s;const c=this._nodes.get(a);if(!c)throw new Ct(`Graph.${i}: could not find the "${a}" source node in the graph.`);if(!this._nodes.has(s))throw new Ct(`Graph.${i}: could not find the "${s}" target node in the graph.`);return B3e(r,o,c,s)}throw new At(`Graph.${i}: too many arguments (expecting 0, 1 or 2 and got ${arguments.length}).`)}}function K3e(e){T3e.forEach(t=>{H3e(e,t),U3e(e,t),W3e(e,t),V3e(e,t)})}const G3e=[{name:"neighbors",type:"mixed"},{name:"inNeighbors",type:"directed",direction:"in"},{name:"outNeighbors",type:"directed",direction:"out"},{name:"inboundNeighbors",type:"mixed",direction:"in"},{name:"outboundNeighbors",type:"mixed",direction:"out"},{name:"directedNeighbors",type:"directed"},{name:"undirectedNeighbors",type:"undirected"}];function gx(){this.A=null,this.B=null}gx.prototype.wrap=function(e){this.A===null?this.A=e:this.B===null&&(this.B=e)};gx.prototype.has=function(e){return this.A!==null&&e in this.A||this.B!==null&&e in this.B};function Ap(e,t,n,r,o){for(const i in r){const a=r[i],s=a.source,c=a.target,u=s===n?c:s;if(t&&t.has(u.key))continue;const d=o(u.key,u.attributes);if(e&&d)return u.key}}function K3(e,t,n,r,o){if(t!=="mixed"){if(t==="undirected")return Ap(e,null,r,r.undirected,o);if(typeof n=="string")return Ap(e,null,r,r[n],o)}const i=new gx;let a;if(t!=="undirected"){if(n!=="out"){if(a=Ap(e,null,r,r.in,o),e&&a)return a;i.wrap(r.in)}if(n!=="in"){if(a=Ap(e,i,r,r.out,o),e&&a)return a;i.wrap(r.out)}}if(t!=="directed"&&(a=Ap(e,i,r,r.undirected,o),e&&a))return a}function Y3e(e,t,n){if(e!=="mixed"){if(e==="undirected")return Object.keys(n.undirected);if(typeof t=="string")return Object.keys(n[t])}const r=[];return K3(!1,e,t,n,function(o){r.push(o)}),r}function Lp(e,t,n){const r=Object.keys(n),o=r.length;let i=0;return new as(function(){let s=null;do{if(i>=o)return e&&e.wrap(n),{done:!0};const c=n[r[i++]],u=c.source,d=c.target;if(s=u===t?d:u,e&&e.has(s.key)){s=null;continue}}while(s===null);return{done:!1,value:{neighbor:s.key,attributes:s.attributes}}})}function q3e(e,t,n){if(e!=="mixed"){if(e==="undirected")return Lp(null,n,n.undirected);if(typeof t=="string")return Lp(null,n,n[t])}let r=as.empty();const o=new gx;return e!=="undirected"&&(t!=="out"&&(r=tc(r,Lp(o,n,n.in))),t!=="in"&&(r=tc(r,Lp(o,n,n.out)))),e!=="directed"&&(r=tc(r,Lp(o,n,n.undirected))),r}function X3e(e,t){const{name:n,type:r,direction:o}=t;e.prototype[n]=function(i){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return[];i=""+i;const a=this._nodes.get(i);if(typeof a>"u")throw new Ct(`Graph.${n}: could not find the "${i}" node in the graph.`);return Y3e(r==="mixed"?this.type:r,o,a)}}function Q3e(e,t){const{name:n,type:r,direction:o}=t,i="forEach"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[i]=function(u,d){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return;u=""+u;const f=this._nodes.get(u);if(typeof f>"u")throw new Ct(`Graph.${i}: could not find the "${u}" node in the graph.`);K3(!1,r==="mixed"?this.type:r,o,f,d)};const a="map"+n[0].toUpperCase()+n.slice(1);e.prototype[a]=function(u,d){const f=[];return this[i](u,(p,g)=>{f.push(d(p,g))}),f};const s="filter"+n[0].toUpperCase()+n.slice(1);e.prototype[s]=function(u,d){const f=[];return this[i](u,(p,g)=>{d(p,g)&&f.push(p)}),f};const c="reduce"+n[0].toUpperCase()+n.slice(1);e.prototype[c]=function(u,d,f){if(arguments.length<3)throw new At(`Graph.${c}: missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array.`);let p=f;return this[i](u,(g,v)=>{p=d(p,g,v)}),p}}function Z3e(e,t){const{name:n,type:r,direction:o}=t,i=n[0].toUpperCase()+n.slice(1,-1),a="find"+i;e.prototype[a]=function(u,d){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return;u=""+u;const f=this._nodes.get(u);if(typeof f>"u")throw new Ct(`Graph.${a}: could not find the "${u}" node in the graph.`);return K3(!0,r==="mixed"?this.type:r,o,f,d)};const s="some"+i;e.prototype[s]=function(u,d){return!!this[a](u,d)};const c="every"+i;e.prototype[c]=function(u,d){return!this[a](u,(p,g)=>!d(p,g))}}function J3e(e,t){const{name:n,type:r,direction:o}=t,i=n.slice(0,-1)+"Entries";e.prototype[i]=function(a){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return as.empty();a=""+a;const s=this._nodes.get(a);if(typeof s>"u")throw new Ct(`Graph.${i}: could not find the "${a}" node in the graph.`);return q3e(r==="mixed"?this.type:r,o,s)}}function eOe(e){G3e.forEach(t=>{X3e(e,t),Q3e(e,t),Z3e(e,t),J3e(e,t)})}function T0(e,t,n,r,o){const i=r._nodes.values(),a=r.type;let s,c,u,d,f,p,g;for(;s=i.next(),s.done!==!0;){let v=!1;if(c=s.value,a!=="undirected"){d=c.out;for(u in d){f=d[u];do{if(p=f.target,v=!0,g=o(c.key,p.key,c.attributes,p.attributes,f.key,f.attributes,f.undirected),e&&g)return f;f=f.next}while(f)}}if(a!=="directed"){d=c.undirected;for(u in d)if(!(t&&c.key>u)){f=d[u];do{if(p=f.target,p.key!==u&&(p=f.source),v=!0,g=o(c.key,p.key,c.attributes,p.attributes,f.key,f.attributes,f.undirected),e&&g)return f;f=f.next}while(f)}}if(n&&!v&&(g=o(c.key,null,c.attributes,null,null,null,null),e&&g))return null}}function tOe(e,t){const n={key:e};return aF(t.attributes)||(n.attributes=Ao({},t.attributes)),n}function nOe(e,t,n){const r={key:t,source:n.source.key,target:n.target.key};return aF(n.attributes)||(r.attributes=Ao({},n.attributes)),e==="mixed"&&n.undirected&&(r.undirected=!0),r}function rOe(e){if(!ri(e))throw new At('Graph.import: invalid serialized node. A serialized node should be a plain object with at least a "key" property.');if(!("key"in e))throw new At("Graph.import: serialized node is missing its key.");if("attributes"in e&&(!ri(e.attributes)||e.attributes===null))throw new At("Graph.import: invalid attributes. Attributes should be a plain object, null or omitted.")}function oOe(e){if(!ri(e))throw new At('Graph.import: invalid serialized edge. A serialized edge should be a plain object with at least a "source" & "target" property.');if(!("source"in e))throw new At("Graph.import: serialized edge is missing its source.");if(!("target"in e))throw new At("Graph.import: serialized edge is missing its target.");if("attributes"in e&&(!ri(e.attributes)||e.attributes===null))throw new At("Graph.import: invalid attributes. Attributes should be a plain object, null or omitted.");if("undirected"in e&&typeof e.undirected!="boolean")throw new At("Graph.import: invalid undirectedness information. Undirected should be boolean or omitted.")}const iOe=s3e(),aOe=new Set(["directed","undirected","mixed"]),$8=new Set(["domain","_events","_eventsCount","_maxListeners"]),sOe=[{name:e=>`${e}Edge`,generateKey:!0},{name:e=>`${e}DirectedEdge`,generateKey:!0,type:"directed"},{name:e=>`${e}UndirectedEdge`,generateKey:!0,type:"undirected"},{name:e=>`${e}EdgeWithKey`},{name:e=>`${e}DirectedEdgeWithKey`,type:"directed"},{name:e=>`${e}UndirectedEdgeWithKey`,type:"undirected"}],lOe={allowSelfLoops:!0,multi:!1,type:"mixed"};function cOe(e,t,n){if(n&&!ri(n))throw new At(`Graph.addNode: invalid attributes. Expecting an object but got "${n}"`);if(t=""+t,n=n||{},e._nodes.has(t))throw new cn(`Graph.addNode: the "${t}" node already exist in the graph.`);const r=new e.NodeDataClass(t,n);return e._nodes.set(t,r),e.emit("nodeAdded",{key:t,attributes:n}),r}function O8(e,t,n){const r=new e.NodeDataClass(t,n);return e._nodes.set(t,r),e.emit("nodeAdded",{key:t,attributes:n}),r}function pF(e,t,n,r,o,i,a,s){if(!r&&e.type==="undirected")throw new cn(`Graph.${t}: you cannot add a directed edge to an undirected graph. Use the #.addEdge or #.addUndirectedEdge instead.`);if(r&&e.type==="directed")throw new cn(`Graph.${t}: you cannot add an undirected edge to a directed graph. Use the #.addEdge or #.addDirectedEdge instead.`);if(s&&!ri(s))throw new At(`Graph.${t}: invalid attributes. Expecting an object but got "${s}"`);if(i=""+i,a=""+a,s=s||{},!e.allowSelfLoops&&i===a)throw new cn(`Graph.${t}: source & target are the same ("${i}"), thus creating a loop explicitly forbidden by this graph 'allowSelfLoops' option set to false.`);const c=e._nodes.get(i),u=e._nodes.get(a);if(!c)throw new Ct(`Graph.${t}: source node "${i}" not found.`);if(!u)throw new Ct(`Graph.${t}: target node "${a}" not found.`);const d={key:null,undirected:r,source:i,target:a,attributes:s};if(n)o=e._edgeKeyGenerator();else if(o=""+o,e._edges.has(o))throw new cn(`Graph.${t}: the "${o}" edge already exists in the graph.`);if(!e.multi&&(r?typeof c.undirected[a]<"u":typeof c.out[a]<"u"))throw new cn(`Graph.${t}: an edge linking "${i}" to "${a}" already exists. If you really want to add multiple edges linking those nodes, you should create a multi graph by using the 'multi' option.`);const f=new Uh(r,o,c,u,s);e._edges.set(o,f);const p=i===a;return r?(c.undirectedDegree++,u.undirectedDegree++,p&&(c.undirectedLoops++,e._undirectedSelfLoopCount++)):(c.outDegree++,u.inDegree++,p&&(c.directedLoops++,e._directedSelfLoopCount++)),e.multi?f.attachMulti():f.attach(),r?e._undirectedSize++:e._directedSize++,d.key=o,e.emit("edgeAdded",d),o}function uOe(e,t,n,r,o,i,a,s,c){if(!r&&e.type==="undirected")throw new cn(`Graph.${t}: you cannot merge/update a directed edge to an undirected graph. Use the #.mergeEdge/#.updateEdge or #.addUndirectedEdge instead.`);if(r&&e.type==="directed")throw new cn(`Graph.${t}: you cannot merge/update an undirected edge to a directed graph. Use the #.mergeEdge/#.updateEdge or #.addDirectedEdge instead.`);if(s){if(c){if(typeof s!="function")throw new At(`Graph.${t}: invalid updater function. Expecting a function but got "${s}"`)}else if(!ri(s))throw new At(`Graph.${t}: invalid attributes. Expecting an object but got "${s}"`)}i=""+i,a=""+a;let u;if(c&&(u=s,s=void 0),!e.allowSelfLoops&&i===a)throw new cn(`Graph.${t}: source & target are the same ("${i}"), thus creating a loop explicitly forbidden by this graph 'allowSelfLoops' option set to false.`);let d=e._nodes.get(i),f=e._nodes.get(a),p,g;if(!n&&(p=e._edges.get(o),p)){if((p.source.key!==i||p.target.key!==a)&&(!r||p.source.key!==a||p.target.key!==i))throw new cn(`Graph.${t}: inconsistency detected when attempting to merge the "${o}" edge with "${i}" source & "${a}" target vs. ("${p.source.key}", "${p.target.key}").`);g=p}if(!g&&!e.multi&&d&&(g=r?d.undirected[a]:d.out[a]),g){const x=[g.key,!1,!1,!1];if(c?!u:!s)return x;if(c){const C=g.attributes;g.attributes=u(C),e.emit("edgeAttributesUpdated",{type:"replace",key:g.key,attributes:g.attributes})}else Ao(g.attributes,s),e.emit("edgeAttributesUpdated",{type:"merge",key:g.key,attributes:g.attributes,data:s});return x}s=s||{},c&&u&&(s=u(s));const v={key:null,undirected:r,source:i,target:a,attributes:s};if(n)o=e._edgeKeyGenerator();else if(o=""+o,e._edges.has(o))throw new cn(`Graph.${t}: the "${o}" edge already exists in the graph.`);let y=!1,S=!1;d||(d=O8(e,i,{}),y=!0,i===a&&(f=d,S=!0)),f||(f=O8(e,a,{}),S=!0),p=new Uh(r,o,d,f,s),e._edges.set(o,p);const b=i===a;return r?(d.undirectedDegree++,f.undirectedDegree++,b&&(d.undirectedLoops++,e._undirectedSelfLoopCount++)):(d.outDegree++,f.inDegree++,b&&(d.directedLoops++,e._directedSelfLoopCount++)),e.multi?p.attachMulti():p.attach(),r?e._undirectedSize++:e._directedSize++,v.key=o,e.emit("edgeAdded",v),[o,!0,y,S]}function ef(e,t){e._edges.delete(t.key);const{source:n,target:r,attributes:o}=t,i=t.undirected,a=n===r;i?(n.undirectedDegree--,r.undirectedDegree--,a&&(n.undirectedLoops--,e._undirectedSelfLoopCount--)):(n.outDegree--,r.inDegree--,a&&(n.directedLoops--,e._directedSelfLoopCount--)),e.multi?t.detachMulti():t.detach(),i?e._undirectedSize--:e._directedSize--,e.emit("edgeDropped",{key:t.key,attributes:o,source:n.key,target:r.key,undirected:i})}class yr extends nF.EventEmitter{constructor(t){if(super(),t=Ao({},lOe,t),typeof t.multi!="boolean")throw new At(`Graph.constructor: invalid 'multi' option. Expecting a boolean but got "${t.multi}".`);if(!aOe.has(t.type))throw new At(`Graph.constructor: invalid 'type' option. Should be one of "mixed", "directed" or "undirected" but got "${t.type}".`);if(typeof t.allowSelfLoops!="boolean")throw new At(`Graph.constructor: invalid 'allowSelfLoops' option. Expecting a boolean but got "${t.allowSelfLoops}".`);const n=t.type==="mixed"?sF:t.type==="directed"?lF:cF;Ua(this,"NodeDataClass",n);const r="geid_"+iOe()+"_";let o=0;const i=()=>{let a;do a=r+o++;while(this._edges.has(a));return a};Ua(this,"_attributes",{}),Ua(this,"_nodes",new Map),Ua(this,"_edges",new Map),Ua(this,"_directedSize",0),Ua(this,"_undirectedSize",0),Ua(this,"_directedSelfLoopCount",0),Ua(this,"_undirectedSelfLoopCount",0),Ua(this,"_edgeKeyGenerator",i),Ua(this,"_options",t),$8.forEach(a=>Ua(this,a,this[a])),Cs(this,"order",()=>this._nodes.size),Cs(this,"size",()=>this._edges.size),Cs(this,"directedSize",()=>this._directedSize),Cs(this,"undirectedSize",()=>this._undirectedSize),Cs(this,"selfLoopCount",()=>this._directedSelfLoopCount+this._undirectedSelfLoopCount),Cs(this,"directedSelfLoopCount",()=>this._directedSelfLoopCount),Cs(this,"undirectedSelfLoopCount",()=>this._undirectedSelfLoopCount),Cs(this,"multi",this._options.multi),Cs(this,"type",this._options.type),Cs(this,"allowSelfLoops",this._options.allowSelfLoops),Cs(this,"implementation",()=>"graphology")}_resetInstanceCounters(){this._directedSize=0,this._undirectedSize=0,this._directedSelfLoopCount=0,this._undirectedSelfLoopCount=0}hasNode(t){return this._nodes.has(""+t)}hasDirectedEdge(t,n){if(this.type==="undirected")return!1;if(arguments.length===1){const r=""+t,o=this._edges.get(r);return!!o&&!o.undirected}else if(arguments.length===2){t=""+t,n=""+n;const r=this._nodes.get(t);return r?r.out.hasOwnProperty(n):!1}throw new At(`Graph.hasDirectedEdge: invalid arity (${arguments.length}, instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target.`)}hasUndirectedEdge(t,n){if(this.type==="directed")return!1;if(arguments.length===1){const r=""+t,o=this._edges.get(r);return!!o&&o.undirected}else if(arguments.length===2){t=""+t,n=""+n;const r=this._nodes.get(t);return r?r.undirected.hasOwnProperty(n):!1}throw new At(`Graph.hasDirectedEdge: invalid arity (${arguments.length}, instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target.`)}hasEdge(t,n){if(arguments.length===1){const r=""+t;return this._edges.has(r)}else if(arguments.length===2){t=""+t,n=""+n;const r=this._nodes.get(t);return r?typeof r.out<"u"&&r.out.hasOwnProperty(n)||typeof r.undirected<"u"&&r.undirected.hasOwnProperty(n):!1}throw new At(`Graph.hasEdge: invalid arity (${arguments.length}, instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target.`)}directedEdge(t,n){if(this.type==="undirected")return;if(t=""+t,n=""+n,this.multi)throw new cn("Graph.directedEdge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.directedEdges instead.");const r=this._nodes.get(t);if(!r)throw new Ct(`Graph.directedEdge: could not find the "${t}" source node in the graph.`);if(!this._nodes.has(n))throw new Ct(`Graph.directedEdge: could not find the "${n}" target node in the graph.`);const o=r.out&&r.out[n]||void 0;if(o)return o.key}undirectedEdge(t,n){if(this.type==="directed")return;if(t=""+t,n=""+n,this.multi)throw new cn("Graph.undirectedEdge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.undirectedEdges instead.");const r=this._nodes.get(t);if(!r)throw new Ct(`Graph.undirectedEdge: could not find the "${t}" source node in the graph.`);if(!this._nodes.has(n))throw new Ct(`Graph.undirectedEdge: could not find the "${n}" target node in the graph.`);const o=r.undirected&&r.undirected[n]||void 0;if(o)return o.key}edge(t,n){if(this.multi)throw new cn("Graph.edge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.edges instead.");t=""+t,n=""+n;const r=this._nodes.get(t);if(!r)throw new Ct(`Graph.edge: could not find the "${t}" source node in the graph.`);if(!this._nodes.has(n))throw new Ct(`Graph.edge: could not find the "${n}" target node in the graph.`);const o=r.out&&r.out[n]||r.undirected&&r.undirected[n]||void 0;if(o)return o.key}areDirectedNeighbors(t,n){t=""+t,n=""+n;const r=this._nodes.get(t);if(!r)throw new Ct(`Graph.areDirectedNeighbors: could not find the "${t}" node in the graph.`);return this.type==="undirected"?!1:n in r.in||n in r.out}areOutNeighbors(t,n){t=""+t,n=""+n;const r=this._nodes.get(t);if(!r)throw new Ct(`Graph.areOutNeighbors: could not find the "${t}" node in the graph.`);return this.type==="undirected"?!1:n in r.out}areInNeighbors(t,n){t=""+t,n=""+n;const r=this._nodes.get(t);if(!r)throw new Ct(`Graph.areInNeighbors: could not find the "${t}" node in the graph.`);return this.type==="undirected"?!1:n in r.in}areUndirectedNeighbors(t,n){t=""+t,n=""+n;const r=this._nodes.get(t);if(!r)throw new Ct(`Graph.areUndirectedNeighbors: could not find the "${t}" node in the graph.`);return this.type==="directed"?!1:n in r.undirected}areNeighbors(t,n){t=""+t,n=""+n;const r=this._nodes.get(t);if(!r)throw new Ct(`Graph.areNeighbors: could not find the "${t}" node in the graph.`);return this.type!=="undirected"&&(n in r.in||n in r.out)||this.type!=="directed"&&n in r.undirected}areInboundNeighbors(t,n){t=""+t,n=""+n;const r=this._nodes.get(t);if(!r)throw new Ct(`Graph.areInboundNeighbors: could not find the "${t}" node in the graph.`);return this.type!=="undirected"&&n in r.in||this.type!=="directed"&&n in r.undirected}areOutboundNeighbors(t,n){t=""+t,n=""+n;const r=this._nodes.get(t);if(!r)throw new Ct(`Graph.areOutboundNeighbors: could not find the "${t}" node in the graph.`);return this.type!=="undirected"&&n in r.out||this.type!=="directed"&&n in r.undirected}inDegree(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new Ct(`Graph.inDegree: could not find the "${t}" node in the graph.`);return this.type==="undirected"?0:n.inDegree}outDegree(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new Ct(`Graph.outDegree: could not find the "${t}" node in the graph.`);return this.type==="undirected"?0:n.outDegree}directedDegree(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new Ct(`Graph.directedDegree: could not find the "${t}" node in the graph.`);return this.type==="undirected"?0:n.inDegree+n.outDegree}undirectedDegree(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new Ct(`Graph.undirectedDegree: could not find the "${t}" node in the graph.`);return this.type==="directed"?0:n.undirectedDegree}inboundDegree(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new Ct(`Graph.inboundDegree: could not find the "${t}" node in the graph.`);let r=0;return this.type!=="directed"&&(r+=n.undirectedDegree),this.type!=="undirected"&&(r+=n.inDegree),r}outboundDegree(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new Ct(`Graph.outboundDegree: could not find the "${t}" node in the graph.`);let r=0;return this.type!=="directed"&&(r+=n.undirectedDegree),this.type!=="undirected"&&(r+=n.outDegree),r}degree(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new Ct(`Graph.degree: could not find the "${t}" node in the graph.`);let r=0;return this.type!=="directed"&&(r+=n.undirectedDegree),this.type!=="undirected"&&(r+=n.inDegree+n.outDegree),r}inDegreeWithoutSelfLoops(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new Ct(`Graph.inDegreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);return this.type==="undirected"?0:n.inDegree-n.directedLoops}outDegreeWithoutSelfLoops(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new Ct(`Graph.outDegreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);return this.type==="undirected"?0:n.outDegree-n.directedLoops}directedDegreeWithoutSelfLoops(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new Ct(`Graph.directedDegreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);return this.type==="undirected"?0:n.inDegree+n.outDegree-n.directedLoops*2}undirectedDegreeWithoutSelfLoops(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new Ct(`Graph.undirectedDegreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);return this.type==="directed"?0:n.undirectedDegree-n.undirectedLoops*2}inboundDegreeWithoutSelfLoops(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new Ct(`Graph.inboundDegreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);let r=0,o=0;return this.type!=="directed"&&(r+=n.undirectedDegree,o+=n.undirectedLoops*2),this.type!=="undirected"&&(r+=n.inDegree,o+=n.directedLoops),r-o}outboundDegreeWithoutSelfLoops(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new Ct(`Graph.outboundDegreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);let r=0,o=0;return this.type!=="directed"&&(r+=n.undirectedDegree,o+=n.undirectedLoops*2),this.type!=="undirected"&&(r+=n.outDegree,o+=n.directedLoops),r-o}degreeWithoutSelfLoops(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new Ct(`Graph.degreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);let r=0,o=0;return this.type!=="directed"&&(r+=n.undirectedDegree,o+=n.undirectedLoops*2),this.type!=="undirected"&&(r+=n.inDegree+n.outDegree,o+=n.directedLoops*2),r-o}source(t){t=""+t;const n=this._edges.get(t);if(!n)throw new Ct(`Graph.source: could not find the "${t}" edge in the graph.`);return n.source.key}target(t){t=""+t;const n=this._edges.get(t);if(!n)throw new Ct(`Graph.target: could not find the "${t}" edge in the graph.`);return n.target.key}extremities(t){t=""+t;const n=this._edges.get(t);if(!n)throw new Ct(`Graph.extremities: could not find the "${t}" edge in the graph.`);return[n.source.key,n.target.key]}opposite(t,n){t=""+t,n=""+n;const r=this._edges.get(n);if(!r)throw new Ct(`Graph.opposite: could not find the "${n}" edge in the graph.`);const o=r.source.key,i=r.target.key;if(t===o)return i;if(t===i)return o;throw new Ct(`Graph.opposite: the "${t}" node is not attached to the "${n}" edge (${o}, ${i}).`)}hasExtremity(t,n){t=""+t,n=""+n;const r=this._edges.get(t);if(!r)throw new Ct(`Graph.hasExtremity: could not find the "${t}" edge in the graph.`);return r.source.key===n||r.target.key===n}isUndirected(t){t=""+t;const n=this._edges.get(t);if(!n)throw new Ct(`Graph.isUndirected: could not find the "${t}" edge in the graph.`);return n.undirected}isDirected(t){t=""+t;const n=this._edges.get(t);if(!n)throw new Ct(`Graph.isDirected: could not find the "${t}" edge in the graph.`);return!n.undirected}isSelfLoop(t){t=""+t;const n=this._edges.get(t);if(!n)throw new Ct(`Graph.isSelfLoop: could not find the "${t}" edge in the graph.`);return n.source===n.target}addNode(t,n){return cOe(this,t,n).key}mergeNode(t,n){if(n&&!ri(n))throw new At(`Graph.mergeNode: invalid attributes. Expecting an object but got "${n}"`);t=""+t,n=n||{};let r=this._nodes.get(t);return r?(n&&(Ao(r.attributes,n),this.emit("nodeAttributesUpdated",{type:"merge",key:t,attributes:r.attributes,data:n})),[t,!1]):(r=new this.NodeDataClass(t,n),this._nodes.set(t,r),this.emit("nodeAdded",{key:t,attributes:n}),[t,!0])}updateNode(t,n){if(n&&typeof n!="function")throw new At(`Graph.updateNode: invalid updater function. Expecting a function but got "${n}"`);t=""+t;let r=this._nodes.get(t);if(r){if(n){const i=r.attributes;r.attributes=n(i),this.emit("nodeAttributesUpdated",{type:"replace",key:t,attributes:r.attributes})}return[t,!1]}const o=n?n({}):{};return r=new this.NodeDataClass(t,o),this._nodes.set(t,r),this.emit("nodeAdded",{key:t,attributes:o}),[t,!0]}dropNode(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new Ct(`Graph.dropNode: could not find the "${t}" node in the graph.`);let r;if(this.type!=="undirected"){for(const o in n.out){r=n.out[o];do ef(this,r),r=r.next;while(r)}for(const o in n.in){r=n.in[o];do ef(this,r),r=r.next;while(r)}}if(this.type!=="directed")for(const o in n.undirected){r=n.undirected[o];do ef(this,r),r=r.next;while(r)}this._nodes.delete(t),this.emit("nodeDropped",{key:t,attributes:n.attributes})}dropEdge(t){let n;if(arguments.length>1){const r=""+arguments[0],o=""+arguments[1];if(n=ts(this,r,o,this.type),!n)throw new Ct(`Graph.dropEdge: could not find the "${r}" -> "${o}" edge in the graph.`)}else if(t=""+t,n=this._edges.get(t),!n)throw new Ct(`Graph.dropEdge: could not find the "${t}" edge in the graph.`);return ef(this,n),this}dropDirectedEdge(t,n){if(arguments.length<2)throw new cn("Graph.dropDirectedEdge: it does not make sense to try and drop a directed edge by key. What if the edge with this key is undirected? Use #.dropEdge for this purpose instead.");if(this.multi)throw new cn("Graph.dropDirectedEdge: cannot use a {source,target} combo when dropping an edge in a MultiGraph since we cannot infer the one you want to delete as there could be multiple ones.");t=""+t,n=""+n;const r=ts(this,t,n,"directed");if(!r)throw new Ct(`Graph.dropDirectedEdge: could not find a "${t}" -> "${n}" edge in the graph.`);return ef(this,r),this}dropUndirectedEdge(t,n){if(arguments.length<2)throw new cn("Graph.dropUndirectedEdge: it does not make sense to drop a directed edge by key. What if the edge with this key is undirected? Use #.dropEdge for this purpose instead.");if(this.multi)throw new cn("Graph.dropUndirectedEdge: cannot use a {source,target} combo when dropping an edge in a MultiGraph since we cannot infer the one you want to delete as there could be multiple ones.");const r=ts(this,t,n,"undirected");if(!r)throw new Ct(`Graph.dropUndirectedEdge: could not find a "${t}" -> "${n}" edge in the graph.`);return ef(this,r),this}clear(){this._edges.clear(),this._nodes.clear(),this._resetInstanceCounters(),this.emit("cleared")}clearEdges(){const t=this._nodes.values();let n;for(;n=t.next(),n.done!==!0;)n.value.clear();this._edges.clear(),this._resetInstanceCounters(),this.emit("edgesCleared")}getAttribute(t){return this._attributes[t]}getAttributes(){return this._attributes}hasAttribute(t){return this._attributes.hasOwnProperty(t)}setAttribute(t,n){return this._attributes[t]=n,this.emit("attributesUpdated",{type:"set",attributes:this._attributes,name:t}),this}updateAttribute(t,n){if(typeof n!="function")throw new At("Graph.updateAttribute: updater should be a function.");const r=this._attributes[t];return this._attributes[t]=n(r),this.emit("attributesUpdated",{type:"set",attributes:this._attributes,name:t}),this}removeAttribute(t){return delete this._attributes[t],this.emit("attributesUpdated",{type:"remove",attributes:this._attributes,name:t}),this}replaceAttributes(t){if(!ri(t))throw new At("Graph.replaceAttributes: provided attributes are not a plain object.");return this._attributes=t,this.emit("attributesUpdated",{type:"replace",attributes:this._attributes}),this}mergeAttributes(t){if(!ri(t))throw new At("Graph.mergeAttributes: provided attributes are not a plain object.");return Ao(this._attributes,t),this.emit("attributesUpdated",{type:"merge",attributes:this._attributes,data:t}),this}updateAttributes(t){if(typeof t!="function")throw new At("Graph.updateAttributes: provided updater is not a function.");return this._attributes=t(this._attributes),this.emit("attributesUpdated",{type:"update",attributes:this._attributes}),this}updateEachNodeAttributes(t,n){if(typeof t!="function")throw new At("Graph.updateEachNodeAttributes: expecting an updater function.");if(n&&!E8(n))throw new At("Graph.updateEachNodeAttributes: invalid hints. Expecting an object having the following shape: {attributes?: [string]}");const r=this._nodes.values();let o,i;for(;o=r.next(),o.done!==!0;)i=o.value,i.attributes=t(i.key,i.attributes);this.emit("eachNodeAttributesUpdated",{hints:n||null})}updateEachEdgeAttributes(t,n){if(typeof t!="function")throw new At("Graph.updateEachEdgeAttributes: expecting an updater function.");if(n&&!E8(n))throw new At("Graph.updateEachEdgeAttributes: invalid hints. Expecting an object having the following shape: {attributes?: [string]}");const r=this._edges.values();let o,i,a,s;for(;o=r.next(),o.done!==!0;)i=o.value,a=i.source,s=i.target,i.attributes=t(i.key,i.attributes,a.key,s.key,a.attributes,s.attributes,i.undirected);this.emit("eachEdgeAttributesUpdated",{hints:n||null})}forEachAdjacencyEntry(t){if(typeof t!="function")throw new At("Graph.forEachAdjacencyEntry: expecting a callback.");T0(!1,!1,!1,this,t)}forEachAdjacencyEntryWithOrphans(t){if(typeof t!="function")throw new At("Graph.forEachAdjacencyEntryWithOrphans: expecting a callback.");T0(!1,!1,!0,this,t)}forEachAssymetricAdjacencyEntry(t){if(typeof t!="function")throw new At("Graph.forEachAssymetricAdjacencyEntry: expecting a callback.");T0(!1,!0,!1,this,t)}forEachAssymetricAdjacencyEntryWithOrphans(t){if(typeof t!="function")throw new At("Graph.forEachAssymetricAdjacencyEntryWithOrphans: expecting a callback.");T0(!1,!0,!0,this,t)}nodes(){return typeof Array.from=="function"?Array.from(this._nodes.keys()):iF(this._nodes.keys(),this._nodes.size)}forEachNode(t){if(typeof t!="function")throw new At("Graph.forEachNode: expecting a callback.");const n=this._nodes.values();let r,o;for(;r=n.next(),r.done!==!0;)o=r.value,t(o.key,o.attributes)}findNode(t){if(typeof t!="function")throw new At("Graph.findNode: expecting a callback.");const n=this._nodes.values();let r,o;for(;r=n.next(),r.done!==!0;)if(o=r.value,t(o.key,o.attributes))return o.key}mapNodes(t){if(typeof t!="function")throw new At("Graph.mapNode: expecting a callback.");const n=this._nodes.values();let r,o;const i=new Array(this.order);let a=0;for(;r=n.next(),r.done!==!0;)o=r.value,i[a++]=t(o.key,o.attributes);return i}someNode(t){if(typeof t!="function")throw new At("Graph.someNode: expecting a callback.");const n=this._nodes.values();let r,o;for(;r=n.next(),r.done!==!0;)if(o=r.value,t(o.key,o.attributes))return!0;return!1}everyNode(t){if(typeof t!="function")throw new At("Graph.everyNode: expecting a callback.");const n=this._nodes.values();let r,o;for(;r=n.next(),r.done!==!0;)if(o=r.value,!t(o.key,o.attributes))return!1;return!0}filterNodes(t){if(typeof t!="function")throw new At("Graph.filterNodes: expecting a callback.");const n=this._nodes.values();let r,o;const i=[];for(;r=n.next(),r.done!==!0;)o=r.value,t(o.key,o.attributes)&&i.push(o.key);return i}reduceNodes(t,n){if(typeof t!="function")throw new At("Graph.reduceNodes: expecting a callback.");if(arguments.length<2)throw new At("Graph.reduceNodes: missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array.");let r=n;const o=this._nodes.values();let i,a;for(;i=o.next(),i.done!==!0;)a=i.value,r=t(r,a.key,a.attributes);return r}nodeEntries(){const t=this._nodes.values();return new as(()=>{const n=t.next();if(n.done)return n;const r=n.value;return{value:{node:r.key,attributes:r.attributes},done:!1}})}export(){const t=new Array(this._nodes.size);let n=0;this._nodes.forEach((o,i)=>{t[n++]=tOe(i,o)});const r=new Array(this._edges.size);return n=0,this._edges.forEach((o,i)=>{r[n++]=nOe(this.type,i,o)}),{options:{type:this.type,multi:this.multi,allowSelfLoops:this.allowSelfLoops},attributes:this.getAttributes(),nodes:t,edges:r}}import(t,n=!1){if(t instanceof yr)return t.forEachNode((c,u)=>{n?this.mergeNode(c,u):this.addNode(c,u)}),t.forEachEdge((c,u,d,f,p,g,v)=>{n?v?this.mergeUndirectedEdgeWithKey(c,d,f,u):this.mergeDirectedEdgeWithKey(c,d,f,u):v?this.addUndirectedEdgeWithKey(c,d,f,u):this.addDirectedEdgeWithKey(c,d,f,u)}),this;if(!ri(t))throw new At("Graph.import: invalid argument. Expecting a serialized graph or, alternatively, a Graph instance.");if(t.attributes){if(!ri(t.attributes))throw new At("Graph.import: invalid attributes. Expecting a plain object.");n?this.mergeAttributes(t.attributes):this.replaceAttributes(t.attributes)}let r,o,i,a,s;if(t.nodes){if(i=t.nodes,!Array.isArray(i))throw new At("Graph.import: invalid nodes. Expecting an array.");for(r=0,o=i.length;r{const i=Ao({},r.attributes);r=new n.NodeDataClass(o,i),n._nodes.set(o,r)}),n}copy(t){if(t=t||{},typeof t.type=="string"&&t.type!==this.type&&t.type!=="mixed")throw new cn(`Graph.copy: cannot create an incompatible copy from "${this.type}" type to "${t.type}" because this would mean losing information about the current graph.`);if(typeof t.multi=="boolean"&&t.multi!==this.multi&&t.multi!==!0)throw new cn("Graph.copy: cannot create an incompatible copy by downgrading a multi graph to a simple one because this would mean losing information about the current graph.");if(typeof t.allowSelfLoops=="boolean"&&t.allowSelfLoops!==this.allowSelfLoops&&t.allowSelfLoops!==!0)throw new cn("Graph.copy: cannot create an incompatible copy from a graph allowing self loops to one that does not because this would mean losing information about the current graph.");const n=this.emptyCopy(t),r=this._edges.values();let o,i;for(;o=r.next(),o.done!==!0;)i=o.value,pF(n,"copy",!1,i.undirected,i.key,i.source.key,i.target.key,Ao({},i.attributes));return n}toJSON(){return this.export()}toString(){return"[object Graph]"}inspect(){const t={};this._nodes.forEach((i,a)=>{t[a]=i.attributes});const n={},r={};this._edges.forEach((i,a)=>{const s=i.undirected?"--":"->";let c="",u=i.source.key,d=i.target.key,f;i.undirected&&u>d&&(f=u,u=d,d=f);const p=`(${u})${s}(${d})`;a.startsWith("geid_")?this.multi&&(typeof r[p]>"u"?r[p]=0:r[p]++,c+=`${r[p]}. `):c+=`[${a}]: `,c+=p,n[c]=i.attributes});const o={};for(const i in this)this.hasOwnProperty(i)&&!$8.has(i)&&typeof this[i]!="function"&&typeof i!="symbol"&&(o[i]=this[i]);return o.attributes=this._attributes,o.nodes=t,o.edges=n,Ua(o,"constructor",this.constructor),o}}typeof Symbol<"u"&&(yr.prototype[Symbol.for("nodejs.util.inspect.custom")]=yr.prototype.inspect);sOe.forEach(e=>{["add","merge","update"].forEach(t=>{const n=e.name(t),r=t==="add"?pF:uOe;e.generateKey?yr.prototype[n]=function(o,i,a){return r(this,n,!0,(e.type||this.type)==="undirected",null,o,i,a,t==="update")}:yr.prototype[n]=function(o,i,a,s){return r(this,n,!1,(e.type||this.type)==="undirected",o,i,a,s,t==="update")}})});b3e(yr);_3e(yr);K3e(yr);eOe(yr);class mF extends yr{constructor(t){const n=Ao({type:"directed"},t);if("multi"in n&&n.multi!==!1)throw new At("DirectedGraph.from: inconsistent indication that the graph should be multi in given options!");if(n.type!=="directed")throw new At('DirectedGraph.from: inconsistent "'+n.type+'" type in given options!');super(n)}}class gF extends yr{constructor(t){const n=Ao({type:"undirected"},t);if("multi"in n&&n.multi!==!1)throw new At("UndirectedGraph.from: inconsistent indication that the graph should be multi in given options!");if(n.type!=="undirected")throw new At('UndirectedGraph.from: inconsistent "'+n.type+'" type in given options!');super(n)}}class vF extends yr{constructor(t){const n=Ao({multi:!0},t);if("multi"in n&&n.multi!==!0)throw new At("MultiGraph.from: inconsistent indication that the graph should be simple in given options!");super(n)}}class yF extends yr{constructor(t){const n=Ao({type:"directed",multi:!0},t);if("multi"in n&&n.multi!==!0)throw new At("MultiDirectedGraph.from: inconsistent indication that the graph should be simple in given options!");if(n.type!=="directed")throw new At('MultiDirectedGraph.from: inconsistent "'+n.type+'" type in given options!');super(n)}}class bF extends yr{constructor(t){const n=Ao({type:"undirected",multi:!0},t);if("multi"in n&&n.multi!==!0)throw new At("MultiUndirectedGraph.from: inconsistent indication that the graph should be simple in given options!");if(n.type!=="undirected")throw new At('MultiUndirectedGraph.from: inconsistent "'+n.type+'" type in given options!');super(n)}}function Wh(e){e.from=function(t,n){const r=Ao({},t.options,n),o=new e(r);return o.import(t),o}}Wh(yr);Wh(mF);Wh(gF);Wh(vF);Wh(yF);Wh(bF);yr.Graph=yr;yr.DirectedGraph=mF;yr.UndirectedGraph=gF;yr.MultiGraph=vF;yr.MultiDirectedGraph=yF;yr.MultiUndirectedGraph=bF;yr.InvalidArgumentsGraphError=At;yr.NotFoundGraphError=Ct;yr.UsageGraphError=cn;var fl={},G3={},xF=function(t,n){var r=n.length;if(r!==0){var o=t.length;t.length+=r;for(var i=0;i0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},vOe=wt&&wt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(mn,"__esModule",{value:!0});mn.validateGraph=mn.canUse32BitsIndices=mn.extractPixel=mn.getMatrixImpact=mn.matrixFromCamera=mn.getCorrectionRatio=mn.floatColor=mn.floatArrayColor=mn.parseColor=mn.zIndexOrdering=mn.createNormalizationFunction=mn.graphExtent=mn.getPixelRatio=mn.createElement=mn.cancelFrame=mn.requestFrame=mn.assignDeep=mn.assign=mn.isPlainObject=void 0;var yOe=vOe(yx),Rr=Ni,xy=bx;function SF(e){return typeof e=="object"&&e!==null&&e.constructor===Object}mn.isPlainObject=SF;function bOe(e){for(var t=[],n=1;nn&&(n=s),co&&(o=c)}),{x:[t,n],y:[r,o]}}mn.graphExtent=SOe;function COe(e){var t=I8(e.x,2),n=t[0],r=t[1],o=I8(e.y,2),i=o[0],a=o[1],s=Math.max(r-n,a-i),c=(r+n)/2,u=(a+i)/2;(s===0||Math.abs(s)===1/0||isNaN(s))&&(s=1),isNaN(c)&&(c=0),isNaN(u)&&(u=0);var d=function(f){return{x:.5+(f.x-c)/s,y:.5+(f.y-u)/s}};return d.applyTo=function(f){f.x=.5+(f.x-c)/s,f.y=.5+(f.y-u)/s},d.inverse=function(f){return{x:c+s*(f.x-.5),y:u+s*(f.y-.5)}},d.ratio=s,d}mn.createNormalizationFunction=COe;function EOe(e,t,n){return n.sort(function(r,o){var i=t(r)||0,a=t(o)||0;return ia?1:0})}mn.zIndexOrdering=EOe;var EF=new Int8Array(4),$Oe=new Int32Array(EF.buffer,0,1),OOe=new Float32Array(EF.buffer,0,1),IOe=/^\s*rgba?\s*\(/,ROe=/^\s*rgba?\s*\(\s*([0-9]*)\s*,\s*([0-9]*)\s*,\s*([0-9]*)(?:\s*,\s*(.*)?)?\)\s*$/;function Y3(e){var t=0,n=0,r=0,o=1;if(e[0]==="#")e.length===4?(t=parseInt(e.charAt(1)+e.charAt(1),16),n=parseInt(e.charAt(2)+e.charAt(2),16),r=parseInt(e.charAt(3)+e.charAt(3),16)):(t=parseInt(e.charAt(1)+e.charAt(2),16),n=parseInt(e.charAt(3)+e.charAt(4),16),r=parseInt(e.charAt(5)+e.charAt(6),16)),e.length===9&&(o=parseInt(e.charAt(7)+e.charAt(8),16)/255);else if(IOe.test(e)){var i=e.match(ROe);i&&(t=+i[1],n=+i[2],r=+i[3],i[4]&&(o=+i[4]))}return{r:t,g:n,b:r,a:o}}mn.parseColor=Y3;var Kf={};for(var P0 in xy.HTML_COLORS)Kf[P0]=$F(xy.HTML_COLORS[P0]),Kf[xy.HTML_COLORS[P0]]=Kf[P0];function NOe(e){e=xy.HTML_COLORS[e]||e;var t=Y3(e),n=t.r,r=t.g,o=t.b,i=t.a;return new Float32Array([n/255,r/255,o/255,i])}mn.floatArrayColor=NOe;function $F(e){if(typeof Kf[e]<"u")return Kf[e];var t=Y3(e),n=t.r,r=t.g,o=t.b,i=t.a;i=i*255|0,$Oe[0]=(i<<24|o<<16|r<<8|n)&4278190079;var a=OOe[0];return Kf[e]=a,a}mn.floatColor=$F;function OF(e,t){var n=e.height/e.width,r=t.height/t.width;return n<1&&r>1||n>1&&r<1?1:Math.min(Math.max(r,1/r),Math.max(1/n,n))}mn.getCorrectionRatio=OF;function _Oe(e,t,n,r,o){var i=e.angle,a=e.ratio,s=e.x,c=e.y,u=t.width,d=t.height,f=(0,Rr.identity)(),p=Math.min(u,d)-2*r,g=OF(t,n);return o?((0,Rr.multiply)(f,(0,Rr.translate)((0,Rr.identity)(),s,c)),(0,Rr.multiply)(f,(0,Rr.scale)((0,Rr.identity)(),a)),(0,Rr.multiply)(f,(0,Rr.rotate)((0,Rr.identity)(),i)),(0,Rr.multiply)(f,(0,Rr.scale)((0,Rr.identity)(),u/p/2/g,d/p/2/g))):((0,Rr.multiply)(f,(0,Rr.scale)((0,Rr.identity)(),2*(p/u)*g,2*(p/d)*g)),(0,Rr.multiply)(f,(0,Rr.rotate)((0,Rr.identity)(),-i)),(0,Rr.multiply)(f,(0,Rr.scale)((0,Rr.identity)(),1/a)),(0,Rr.multiply)(f,(0,Rr.translate)((0,Rr.identity)(),-s,-c))),f}mn.matrixFromCamera=_Oe;function TOe(e,t,n){var r=(0,Rr.multiplyVec2)(e,{x:Math.cos(t.angle),y:Math.sin(t.angle)},0),o=r.x,i=r.y;return 1/Math.sqrt(Math.pow(o,2)+Math.pow(i,2))/n.width}mn.getMatrixImpact=TOe;function POe(e,t,n,r){var o=r||new Uint8Array(4);return e.readPixels(t,n,1,1,e.RGBA,e.UNSIGNED_BYTE,o),o}mn.extractPixel=POe;function jOe(e){var t=typeof WebGL2RenderingContext<"u"&&e instanceof WebGL2RenderingContext;return t||!!e.getExtension("OES_element_index_uint")}mn.canUse32BitsIndices=jOe;function MOe(e){if(!(0,yOe.default)(e))throw new Error("Sigma: invalid graph instance.");e.forEachNode(function(t,n){if(!Number.isFinite(n.x)||!Number.isFinite(n.y))throw new Error("Sigma: Coordinates of node ".concat(t," are invalid. A node must have a numeric 'x' and 'y' attribute."))})}mn.validateGraph=MOe;var q3={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.cubicInOut=e.cubicOut=e.cubicIn=e.quadraticInOut=e.quadraticOut=e.quadraticIn=e.linear=void 0;var t=function(u){return u};e.linear=t;var n=function(u){return u*u};e.quadraticIn=n;var r=function(u){return u*(2-u)};e.quadraticOut=r;var o=function(u){return(u*=2)<1?.5*u*u:-.5*(--u*(u-2)-1)};e.quadraticInOut=o;var i=function(u){return u*u*u};e.cubicIn=i;var a=function(u){return--u*u*u+1};e.cubicOut=a;var s=function(u){return(u*=2)<1?.5*u*u*u:.5*((u-=2)*u*u+2)};e.cubicInOut=s;var c={linear:e.linear,quadraticIn:e.quadraticIn,quadraticOut:e.quadraticOut,quadraticInOut:e.quadraticInOut,cubicIn:e.cubicIn,cubicOut:e.cubicOut,cubicInOut:e.cubicInOut};e.default=c})(q3);(function(e){var t=wt&&wt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0}),e.animateNodes=e.ANIMATE_DEFAULTS=void 0;var n=mn,r=t(q3);e.ANIMATE_DEFAULTS={easing:"quadraticInOut",duration:150};function o(i,a,s,c){var u=Object.assign({},e.ANIMATE_DEFAULTS,s),d=typeof u.easing=="function"?u.easing:r.default[u.easing],f=Date.now(),p={};for(var g in a){var v=a[g];p[g]={};for(var y in v)p[g][y]=i.getNodeAttribute(g,y)}var S=null,b=function(){S=null;var x=(Date.now()-f)/u.duration;if(x>=1){for(var C in a){var E=a[C];for(var $ in E)i.setNodeAttribute(C,$,E[$])}typeof c=="function"&&c();return}x=d(x);for(var C in a){var E=a[C],O=p[C];for(var $ in E)i.setNodeAttribute(C,$,E[$]*x+O[$]*(1-x))}S=(0,n.requestFrame)(b)};return b(),function(){S&&(0,n.cancelFrame)(S)}}e.animateNodes=o})(wF);var Vh={},kOe=wt&&wt.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(Vh,"__esModule",{value:!0});Vh.TypedEventEmitter=void 0;var DOe=nF,AOe=function(e){kOe(t,e);function t(){var n=e.call(this)||this;return n.rawEmitter=n,n}return t}(DOe.EventEmitter);Vh.TypedEventEmitter=AOe;var LOe=wt&&wt.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),FOe=wt&&wt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vx,"__esModule",{value:!0});var zOe=wF,BOe=FOe(q3),nC=mn,HOe=Vh,j0=1.5,UOe=function(e){LOe(t,e);function t(){var n=e.call(this)||this;return n.x=.5,n.y=.5,n.angle=0,n.ratio=1,n.minRatio=null,n.maxRatio=null,n.nextFrame=null,n.previousState=null,n.enabled=!0,n.previousState=n.getState(),n}return t.from=function(n){var r=new t;return r.setState(n)},t.prototype.enable=function(){return this.enabled=!0,this},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.getState=function(){return{x:this.x,y:this.y,angle:this.angle,ratio:this.ratio}},t.prototype.hasState=function(n){return this.x===n.x&&this.y===n.y&&this.ratio===n.ratio&&this.angle===n.angle},t.prototype.getPreviousState=function(){var n=this.previousState;return n?{x:n.x,y:n.y,angle:n.angle,ratio:n.ratio}:null},t.prototype.getBoundedRatio=function(n){var r=n;return typeof this.minRatio=="number"&&(r=Math.max(r,this.minRatio)),typeof this.maxRatio=="number"&&(r=Math.min(r,this.maxRatio)),r},t.prototype.validateState=function(n){var r={};return typeof n.x=="number"&&(r.x=n.x),typeof n.y=="number"&&(r.y=n.y),typeof n.angle=="number"&&(r.angle=n.angle),typeof n.ratio=="number"&&(r.ratio=this.getBoundedRatio(n.ratio)),r},t.prototype.isAnimated=function(){return!!this.nextFrame},t.prototype.setState=function(n){if(!this.enabled)return this;this.previousState=this.getState();var r=this.validateState(n);return typeof r.x=="number"&&(this.x=r.x),typeof r.y=="number"&&(this.y=r.y),typeof r.angle=="number"&&(this.angle=r.angle),typeof r.ratio=="number"&&(this.ratio=r.ratio),this.hasState(this.previousState)||this.emit("updated",this.getState()),this},t.prototype.updateState=function(n){return this.setState(n(this.getState())),this},t.prototype.animate=function(n,r,o){var i=this;if(this.enabled){var a=Object.assign({},zOe.ANIMATE_DEFAULTS,r),s=this.validateState(n),c=typeof a.easing=="function"?a.easing:BOe.default[a.easing],u=Date.now(),d=this.getState(),f=function(){var p=(Date.now()-u)/a.duration;if(p>=1){i.nextFrame=null,i.setState(s),i.animationCallback&&(i.animationCallback.call(null),i.animationCallback=void 0);return}var g=c(p),v={};typeof s.x=="number"&&(v.x=d.x+(s.x-d.x)*g),typeof s.y=="number"&&(v.y=d.y+(s.y-d.y)*g),typeof s.angle=="number"&&(v.angle=d.angle+(s.angle-d.angle)*g),typeof s.ratio=="number"&&(v.ratio=d.ratio+(s.ratio-d.ratio)*g),i.setState(v),i.nextFrame=(0,nC.requestFrame)(f)};this.nextFrame?((0,nC.cancelFrame)(this.nextFrame),this.animationCallback&&this.animationCallback.call(null),this.nextFrame=(0,nC.requestFrame)(f)):f(),this.animationCallback=o}},t.prototype.animatedZoom=function(n){if(!n)this.animate({ratio:this.ratio/j0});else{if(typeof n=="number")return this.animate({ratio:this.ratio/n});this.animate({ratio:this.ratio/(n.factor||j0)},n)}},t.prototype.animatedUnzoom=function(n){if(!n)this.animate({ratio:this.ratio*j0});else{if(typeof n=="number")return this.animate({ratio:this.ratio*n});this.animate({ratio:this.ratio*(n.factor||j0)},n)}},t.prototype.animatedReset=function(n){this.animate({x:.5,y:.5,ratio:1,angle:0},n)},t.prototype.copy=function(){return t.from(this.getState())},t}(HOe.TypedEventEmitter);vx.default=UOe;var xx={},gi={},WOe=wt&&wt.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),uh=wt&&wt.__assign||function(){return uh=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?1/_8:_8,s=this.renderer.getCamera(),c=s.getBoundedRatio(s.getState().ratio*a),u=o>0?1:-1,d=Date.now();this.currentWheelDirection===u&&this.lastWheelTriggerTime&&d-this.lastWheelTriggerTimer&&to}Za.squareCollidesWithQuad=qp;function Xp(e,t,n,r,o,i,a,s){return eo&&ti}Za.rectangleCollidesWithQuad=Xp;function fIe(e,t,n,r,o,i){var a=n+o/2,s=r+i/2,c=t=e){n[f]=n[f]||[],n[f].push(r);return}var p=4*f+ra,g=4*f+2*ra,v=4*f+3*ra,y=4*f+4*ra,S=qp(s,c,u,t[p+_i],t[p+Ti],t[p+Pi],t[p+ji]),b=qp(s,c,u,t[g+_i],t[g+Ti],t[g+Pi],t[g+ji]),x=qp(s,c,u,t[v+_i],t[v+Ti],t[v+Pi],t[v+ji]),C=qp(s,c,u,t[y+_i],t[y+Ti],t[y+Pi],t[y+ji]),E=[S,b,x,C].reduce(function($,O){return O?$+1:$},0);if(E===0&&d===0){n[Tf].push(r),!T8&&n[Tf].length>=5&&(T8=!0,console.warn("sigma/quadtree.insertNode: At least 5 nodes are outside the global quadtree zone. You might have a problem with the normalization function or the custom bounding box."));return}if(E===0)throw new Error("sigma/quadtree.insertNode: no collision (level: ".concat(d,", key: ").concat(r,", x: ").concat(o,", y: ").concat(i,", size: ").concat(a,")."));if(E===3)throw new Error("sigma/quadtree.insertNode: 3 impossible collisions (level: ".concat(d,", key: ").concat(r,", x: ").concat(o,", y: ").concat(i,", size: ").concat(a,")."));if(E>1){n[f]=n[f]||[],n[f].push(r);return}else d++;S&&(f=p),b&&(f=g),x&&(f=v),C&&(f=y)}}function mIe(e,t,n,r,o,i,a){for(var s=[0,0],c=[],u;s.length;){var d=s.pop(),f=s.pop();if(u=n[f],u&&(0,HE.default)(c,u),!(d>=e)){var p=4*f+ra,g=4*f+2*ra,v=4*f+3*ra,y=4*f+4*ra,S=Xp(r,o,i,a,t[p+_i],t[p+Ti],t[p+Pi],t[p+ji]),b=Xp(r,o,i,a,t[g+_i],t[g+Ti],t[g+Pi],t[g+ji]),x=Xp(r,o,i,a,t[v+_i],t[v+Ti],t[v+Pi],t[v+ji]),C=Xp(r,o,i,a,t[y+_i],t[y+Ti],t[y+Pi],t[y+ji]);S&&s.push(p,d+1),b&&s.push(g,d+1),x&&s.push(v,d+1),C&&s.push(y,d+1)}}return c}var gIe=function(){function e(t){var n;t===void 0&&(t={}),this.containers=(n={},n[Tf]=[],n),this.cache=null,this.lastRectangle=null;var r=Math.pow(4,Fp);this.data=new Float32Array(ra*((4*r-1)/3)),t.boundaries?this.resize(t.boundaries):this.resize({x:0,y:0,width:1,height:1})}return e.prototype.add=function(t,n,r,o){return pIe(Fp,this.data,this.containers,t,n,r,o),this},e.prototype.resize=function(t){this.clear(),this.data[_i]=t.x,this.data[Ti]=t.y,this.data[Pi]=t.width,this.data[ji]=t.height,hIe(Fp,this.data)},e.prototype.clear=function(){var t;return this.containers=(t={},t[Tf]=[],t),this},e.prototype.point=function(t,n){var r=this.containers[Tf].slice(),o=0,i=0;do{this.containers[o]&&(0,HE.default)(r,this.containers[o]);var a=fIe(t,n,this.data[o+_i],this.data[o+Ti],this.data[o+Pi],this.data[o+ji]);o=4*o+a*ra,i++}while(i<=Fp);return r},e.prototype.rectangle=function(t,n,r,o,i){var a=this.lastRectangle;return a&&t===a.x1&&r===a.x2&&n===a.y1&&o===a.y2&&i===a.height?this.cache:(this.lastRectangle={x1:t,y1:n,x2:r,y2:o,height:i},_F(this.lastRectangle)||(this.lastRectangle=TF(this.lastRectangle)),this.cache=mIe(Fp,this.data,this.containers,t,n,Math.abs(t-r)||Math.abs(n-o),i),(0,HE.default)(this.cache,this.containers[Tf]),this.cache)},e}();Za.default=gIe;var dh={};Object.defineProperty(dh,"__esModule",{value:!0});dh.edgeLabelsToDisplayFromNodes=dh.LabelGrid=void 0;var P8=function(){function e(t,n){this.key=t,this.size=n}return e.compare=function(t,n){return t.size>n.size?-1:t.sizen.key?1:-1},e}(),vIe=function(){function e(){this.width=0,this.height=0,this.cellSize=0,this.columns=0,this.rows=0,this.cells={}}return e.prototype.resizeAndClear=function(t,n){this.width=t.width,this.height=t.height,this.cellSize=n,this.columns=Math.ceil(t.width/n),this.rows=Math.ceil(t.height/n),this.cells={}},e.prototype.getIndex=function(t){var n=Math.floor(t.x/this.cellSize),r=Math.floor(t.y/this.cellSize);return r*this.columns+n},e.prototype.add=function(t,n,r){var o=new P8(t,n),i=this.getIndex(r),a=this.cells[i];a||(a=[],this.cells[i]=a),a.push(o)},e.prototype.organize=function(){for(var t in this.cells){var n=this.cells[t];n.sort(P8.compare)}},e.prototype.getLabelsToDisplay=function(t,n){var r=this.cellSize*this.cellSize,o=r/t/t,i=o*n/r,a=Math.ceil(i),s=[];for(var c in this.cells)for(var u=this.cells[c],d=0;dE){var O="…";for(u=u+O,$=e.measureText(u).width;$>E&&u.length>1;)u=u.slice(0,-2)+O,$=e.measureText(u).width;if(u.length<4)return}var I;x>0?C>0?I=Math.acos(x/E):I=Math.asin(C/E):C>0?I=Math.acos(x/E)+Math.PI:I=Math.asin(x/E)+Math.PI/2,e.save(),e.translate(S,b),e.rotate(I),e.fillText(u,-$/2,t.size/2+i),e.restore()}}}Z3.default=CIe;var J3={},jF={exports:{}};(()=>{var e={d:(r,o)=>{for(var i in o)e.o(o,i)&&!e.o(r,i)&&Object.defineProperty(r,i,{enumerable:!0,get:o[i]})},o:(r,o)=>Object.prototype.hasOwnProperty.call(r,o),r:r=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{default:()=>n});const n=`attribute vec2 a_position; attribute float a_size; attribute vec4 a_color; uniform float u_ratio; uniform float u_scale; uniform mat3 u_matrix; varying vec4 v_color; varying float v_border; const float bias = 255.0 / 254.0; void main() { gl_Position = vec4( (u_matrix * vec3(a_position, 1)).xy, 0, 1 ); // Multiply the point size twice: // - x SCALING_RATIO to correct the canvas scaling // - x 2 to correct the formulae gl_PointSize = a_size * u_ratio * u_scale * 2.0; v_border = (1.0 / u_ratio) * (0.5 / a_size); // Extract the color: v_color = a_color; v_color.a *= bias; } `;jF.exports=t})();var EIe=jF.exports,MF={exports:{}};(()=>{var e={d:(r,o)=>{for(var i in o)e.o(o,i)&&!e.o(r,i)&&Object.defineProperty(r,i,{enumerable:!0,get:o[i]})},o:(r,o)=>Object.prototype.hasOwnProperty.call(r,o),r:r=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{default:()=>n});const n=`precision mediump float; varying vec4 v_color; varying float v_border; const float radius = 0.5; const vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0); void main(void) { vec2 m = gl_PointCoord - vec2(0.5, 0.5); float dist = radius - length(m); float t = 0.0; if (dist > v_border) t = 1.0; else if (dist > 0.0) t = dist / v_border; gl_FragColor = mix(transparent, v_color, t); } `;MF.exports=t})();var $Ie=MF.exports,fh={},Ug={},iu={};Object.defineProperty(iu,"__esModule",{value:!0});iu.loadProgram=iu.loadFragmentShader=iu.loadVertexShader=void 0;function kF(e,t,n){var r=e==="VERTEX"?t.VERTEX_SHADER:t.FRAGMENT_SHADER,o=t.createShader(r);if(o===null)throw new Error("loadShader: error while creating the shader");t.shaderSource(o,n),t.compileShader(o);var i=t.getShaderParameter(o,t.COMPILE_STATUS);if(!i){var a=t.getShaderInfoLog(o);throw t.deleteShader(o),new Error(`loadShader: error while compiling the shader: `.concat(a,` `).concat(n))}return o}function OIe(e,t){return kF("VERTEX",e,t)}iu.loadVertexShader=OIe;function IIe(e,t){return kF("FRAGMENT",e,t)}iu.loadFragmentShader=IIe;function RIe(e,t){var n=e.createProgram();if(n===null)throw new Error("loadProgram: error while creating the program.");var r,o;for(r=0,o=t.length;r{var e={d:(r,o)=>{for(var i in o)e.o(o,i)&&!e.o(r,i)&&Object.defineProperty(r,i,{enumerable:!0,get:o[i]})},o:(r,o)=>Object.prototype.hasOwnProperty.call(r,o),r:r=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{default:()=>n});const n=`attribute vec4 a_color; attribute vec2 a_normal; attribute vec2 a_position; uniform mat3 u_matrix; uniform float u_sqrtZoomRatio; uniform float u_correctionRatio; varying vec4 v_color; varying vec2 v_normal; varying float v_thickness; const float minThickness = 1.7; const float bias = 255.0 / 254.0; void main() { float normalLength = length(a_normal); vec2 unitNormal = a_normal / normalLength; // We require edges to be at least \`minThickness\` pixels thick *on screen* // (so we need to compensate the SQRT zoom ratio): float pixelsThickness = max(normalLength, minThickness * u_sqrtZoomRatio); // Then, we need to retrieve the normalized thickness of the edge in the WebGL // referential (in a ([0, 1], [0, 1]) space), using our "magic" correction // ratio: float webGLThickness = pixelsThickness * u_correctionRatio; // Finally, we adapt the edge thickness to the "SQRT rule" in sigma (so that // items are not too big when zoomed in, and not too small when zoomed out). // The exact computation should be \`adapted = value * zoom / sqrt(zoom)\`, but // it's simpler like this: float adaptedWebGLThickness = webGLThickness * u_sqrtZoomRatio; // Here is the proper position of the vertex gl_Position = vec4((u_matrix * vec3(a_position + unitNormal * adaptedWebGLThickness, 1)).xy, 0, 1); // For the fragment shader though, we need a thickness that takes the "magic" // correction ratio into account (as in webGLThickness), but so that the // antialiasing effect does not depend on the zoom level. So here's yet // another thickness version: v_thickness = webGLThickness / u_sqrtZoomRatio; v_normal = unitNormal; v_color = a_color; v_color.a *= bias; } `;AF.exports=t})();var zIe=AF.exports,LF={exports:{}};(()=>{var e={d:(r,o)=>{for(var i in o)e.o(o,i)&&!e.o(r,i)&&Object.defineProperty(r,i,{enumerable:!0,get:o[i]})},o:(r,o)=>Object.prototype.hasOwnProperty.call(r,o),r:r=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{default:()=>n});const n=`precision mediump float; varying vec4 v_color; varying vec2 v_normal; varying float v_thickness; const float feather = 0.001; const vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0); void main(void) { float dist = length(v_normal) * v_thickness; float t = smoothstep( v_thickness - feather, v_thickness, dist ); gl_FragColor = mix(v_color, transparent, t); } `;LF.exports=t})();var FF=LF.exports,dc={},BIe=wt&&wt.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(dc,"__esModule",{value:!0});dc.createEdgeCompoundProgram=dc.AbstractEdgeProgram=void 0;var HIe=Ug,UIe=function(e){BIe(t,e);function t(n,r,o,i,a){return e.call(this,n,r,o,i,a)||this}return t}(HIe.AbstractProgram);dc.AbstractEdgeProgram=UIe;function WIe(e){return function(){function t(n,r){this.programs=e.map(function(o){return new o(n,r)})}return t.prototype.bufferData=function(){this.programs.forEach(function(n){return n.bufferData()})},t.prototype.allocate=function(n){this.programs.forEach(function(r){return r.allocate(n)})},t.prototype.bind=function(){},t.prototype.computeIndices=function(){this.programs.forEach(function(n){return n.computeIndices()})},t.prototype.render=function(n){this.programs.forEach(function(r){r.bind(),r.bufferData(),r.render(n)})},t.prototype.process=function(n,r,o,i,a){this.programs.forEach(function(s){return s.process(n,r,o,i,a)})},t}()}dc.createEdgeCompoundProgram=WIe;var VIe=wt&&wt.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),zF=wt&&wt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(eO,"__esModule",{value:!0});var M8=mn,KIe=zF(zIe),GIe=zF(FF),YIe=dc,UE=4,ku=5,k8=UE*ku,qIe=function(e){VIe(t,e);function t(n){var r=e.call(this,n,KIe.default,GIe.default,UE,ku)||this,o=n.createBuffer();if(o===null)throw new Error("EdgeProgram: error while creating indicesBuffer");r.indicesBuffer=o,r.positionLocation=n.getAttribLocation(r.program,"a_position"),r.colorLocation=n.getAttribLocation(r.program,"a_color"),r.normalLocation=n.getAttribLocation(r.program,"a_normal");var i=n.getUniformLocation(r.program,"u_matrix");if(i===null)throw new Error("EdgeProgram: error while getting matrixLocation");r.matrixLocation=i;var a=n.getUniformLocation(r.program,"u_correctionRatio");if(a===null)throw new Error("EdgeProgram: error while getting correctionRatioLocation");r.correctionRatioLocation=a;var s=n.getUniformLocation(r.program,"u_sqrtZoomRatio");if(s===null)throw new Error("EdgeProgram: error while getting sqrtZoomRatioLocation");return r.sqrtZoomRatioLocation=s,r.canUse32BitsIndices=(0,M8.canUse32BitsIndices)(n),r.IndicesArray=r.canUse32BitsIndices?Uint32Array:Uint16Array,r.indicesArray=new r.IndicesArray,r.indicesType=r.canUse32BitsIndices?n.UNSIGNED_INT:n.UNSIGNED_SHORT,r.bind(),r}return t.prototype.bind=function(){var n=this.gl;n.bindBuffer(n.ELEMENT_ARRAY_BUFFER,this.indicesBuffer),n.enableVertexAttribArray(this.positionLocation),n.enableVertexAttribArray(this.normalLocation),n.enableVertexAttribArray(this.colorLocation),n.vertexAttribPointer(this.positionLocation,2,n.FLOAT,!1,ku*Float32Array.BYTES_PER_ELEMENT,0),n.vertexAttribPointer(this.normalLocation,2,n.FLOAT,!1,ku*Float32Array.BYTES_PER_ELEMENT,8),n.vertexAttribPointer(this.colorLocation,4,n.UNSIGNED_BYTE,!0,ku*Float32Array.BYTES_PER_ELEMENT,16)},t.prototype.computeIndices=function(){for(var n=this.array.length/ku,r=n+n/2,o=new this.IndicesArray(r),i=0,a=0;i{var e={d:(r,o)=>{for(var i in o)e.o(o,i)&&!e.o(r,i)&&Object.defineProperty(r,i,{enumerable:!0,get:o[i]})},o:(r,o)=>Object.prototype.hasOwnProperty.call(r,o),r:r=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{default:()=>n});const n=`attribute vec2 a_position; attribute vec2 a_normal; attribute float a_radius; attribute vec4 a_color; attribute vec3 a_barycentric; uniform mat3 u_matrix; uniform float u_sqrtZoomRatio; uniform float u_correctionRatio; varying vec4 v_color; const float minThickness = 1.7; const float bias = 255.0 / 254.0; const float arrowHeadWidthLengthRatio = 0.66; const float arrowHeadLengthThicknessRatio = 2.5; void main() { float normalLength = length(a_normal); vec2 unitNormal = a_normal / normalLength; // These first computations are taken from edge.vert.glsl and // edge.clamped.vert.glsl. Please read it to get better comments on what's // happening: float pixelsThickness = max(normalLength, minThickness * u_sqrtZoomRatio); float webGLThickness = pixelsThickness * u_correctionRatio; float adaptedWebGLThickness = webGLThickness * u_sqrtZoomRatio; float adaptedWebGLNodeRadius = a_radius * 2.0 * u_correctionRatio * u_sqrtZoomRatio; float adaptedWebGLArrowHeadLength = adaptedWebGLThickness * 2.0 * arrowHeadLengthThicknessRatio; float adaptedWebGLArrowHeadHalfWidth = adaptedWebGLArrowHeadLength * arrowHeadWidthLengthRatio / 2.0; float da = a_barycentric.x; float db = a_barycentric.y; float dc = a_barycentric.z; vec2 delta = vec2( da * (adaptedWebGLNodeRadius * unitNormal.y) + db * ((adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength) * unitNormal.y + adaptedWebGLArrowHeadHalfWidth * unitNormal.x) + dc * ((adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength) * unitNormal.y - adaptedWebGLArrowHeadHalfWidth * unitNormal.x), da * (-adaptedWebGLNodeRadius * unitNormal.x) + db * (-(adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength) * unitNormal.x + adaptedWebGLArrowHeadHalfWidth * unitNormal.y) + dc * (-(adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength) * unitNormal.x - adaptedWebGLArrowHeadHalfWidth * unitNormal.y) ); vec2 position = (u_matrix * vec3(a_position + delta, 1)).xy; gl_Position = vec4(position, 0, 1); // Extract the color: v_color = a_color; v_color.a *= bias; } `;BF.exports=t})();var XIe=BF.exports,HF={exports:{}};(()=>{var e={d:(r,o)=>{for(var i in o)e.o(o,i)&&!e.o(r,i)&&Object.defineProperty(r,i,{enumerable:!0,get:o[i]})},o:(r,o)=>Object.prototype.hasOwnProperty.call(r,o),r:r=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{default:()=>n});const n=`precision mediump float; varying vec4 v_color; void main(void) { gl_FragColor = v_color; } `;HF.exports=t})();var QIe=HF.exports,ZIe=wt&&wt.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),UF=wt&&wt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(nO,"__esModule",{value:!0});var JIe=mn,eRe=UF(XIe),tRe=UF(QIe),nRe=dc,WE=3,zl=9,D8=WE*zl,rRe=function(e){ZIe(t,e);function t(n){var r=e.call(this,n,eRe.default,tRe.default,WE,zl)||this;r.positionLocation=n.getAttribLocation(r.program,"a_position"),r.colorLocation=n.getAttribLocation(r.program,"a_color"),r.normalLocation=n.getAttribLocation(r.program,"a_normal"),r.radiusLocation=n.getAttribLocation(r.program,"a_radius"),r.barycentricLocation=n.getAttribLocation(r.program,"a_barycentric");var o=n.getUniformLocation(r.program,"u_matrix");if(o===null)throw new Error("EdgeArrowHeadProgram: error while getting matrixLocation");r.matrixLocation=o;var i=n.getUniformLocation(r.program,"u_sqrtZoomRatio");if(i===null)throw new Error("EdgeArrowHeadProgram: error while getting sqrtZoomRatioLocation");r.sqrtZoomRatioLocation=i;var a=n.getUniformLocation(r.program,"u_correctionRatio");if(a===null)throw new Error("EdgeArrowHeadProgram: error while getting correctionRatioLocation");return r.correctionRatioLocation=a,r.bind(),r}return t.prototype.bind=function(){var n=this.gl;n.enableVertexAttribArray(this.positionLocation),n.enableVertexAttribArray(this.normalLocation),n.enableVertexAttribArray(this.radiusLocation),n.enableVertexAttribArray(this.colorLocation),n.enableVertexAttribArray(this.barycentricLocation),n.vertexAttribPointer(this.positionLocation,2,n.FLOAT,!1,zl*Float32Array.BYTES_PER_ELEMENT,0),n.vertexAttribPointer(this.normalLocation,2,n.FLOAT,!1,zl*Float32Array.BYTES_PER_ELEMENT,8),n.vertexAttribPointer(this.radiusLocation,1,n.FLOAT,!1,zl*Float32Array.BYTES_PER_ELEMENT,16),n.vertexAttribPointer(this.colorLocation,4,n.UNSIGNED_BYTE,!0,zl*Float32Array.BYTES_PER_ELEMENT,20),n.vertexAttribPointer(this.barycentricLocation,3,n.FLOAT,!1,zl*Float32Array.BYTES_PER_ELEMENT,24)},t.prototype.computeIndices=function(){},t.prototype.process=function(n,r,o,i,a){if(i){for(var s=a*D8,c=s+D8;s{var e={d:(r,o)=>{for(var i in o)e.o(o,i)&&!e.o(r,i)&&Object.defineProperty(r,i,{enumerable:!0,get:o[i]})},o:(r,o)=>Object.prototype.hasOwnProperty.call(r,o),r:r=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{default:()=>n});const n=`attribute vec4 a_color; attribute vec2 a_normal; attribute vec2 a_position; attribute float a_radius; uniform mat3 u_matrix; uniform float u_sqrtZoomRatio; uniform float u_correctionRatio; varying vec4 v_color; varying vec2 v_normal; varying float v_thickness; const float minThickness = 1.7; const float bias = 255.0 / 254.0; const float arrowHeadLengthThicknessRatio = 2.5; void main() { float normalLength = length(a_normal); vec2 unitNormal = a_normal / normalLength; // These first computations are taken from edge.vert.glsl. Please read it to // get better comments on what's happening: float pixelsThickness = max(normalLength, minThickness * u_sqrtZoomRatio); float webGLThickness = pixelsThickness * u_correctionRatio; float adaptedWebGLThickness = webGLThickness * u_sqrtZoomRatio; // Here, we move the point to leave space for the arrow head: float direction = sign(a_radius); float adaptedWebGLNodeRadius = direction * a_radius * 2.0 * u_correctionRatio * u_sqrtZoomRatio; float adaptedWebGLArrowHeadLength = adaptedWebGLThickness * 2.0 * arrowHeadLengthThicknessRatio; vec2 compensationVector = vec2(-direction * unitNormal.y, direction * unitNormal.x) * (adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength); // Here is the proper position of the vertex gl_Position = vec4((u_matrix * vec3(a_position + unitNormal * adaptedWebGLThickness + compensationVector, 1)).xy, 0, 1); v_thickness = webGLThickness / u_sqrtZoomRatio; v_normal = unitNormal; v_color = a_color; v_color.a *= bias; } `;WF.exports=t})();var oRe=WF.exports,iRe=wt&&wt.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),VF=wt&&wt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(rO,"__esModule",{value:!0});var aRe=dc,A8=mn,sRe=VF(oRe),lRe=VF(FF),VE=4,Lc=6,L8=VE*Lc,cRe=function(e){iRe(t,e);function t(n){var r=e.call(this,n,sRe.default,lRe.default,VE,Lc)||this,o=n.createBuffer();if(o===null)throw new Error("EdgeClampedProgram: error while getting resolutionLocation");r.indicesBuffer=o,r.positionLocation=n.getAttribLocation(r.program,"a_position"),r.colorLocation=n.getAttribLocation(r.program,"a_color"),r.normalLocation=n.getAttribLocation(r.program,"a_normal"),r.radiusLocation=n.getAttribLocation(r.program,"a_radius");var i=n.getUniformLocation(r.program,"u_matrix");if(i===null)throw new Error("EdgeClampedProgram: error while getting matrixLocation");r.matrixLocation=i;var a=n.getUniformLocation(r.program,"u_sqrtZoomRatio");if(a===null)throw new Error("EdgeClampedProgram: error while getting cameraRatioLocation");r.sqrtZoomRatioLocation=a;var s=n.getUniformLocation(r.program,"u_correctionRatio");if(s===null)throw new Error("EdgeClampedProgram: error while getting viewportRatioLocation");return r.correctionRatioLocation=s,r.canUse32BitsIndices=(0,A8.canUse32BitsIndices)(n),r.IndicesArray=r.canUse32BitsIndices?Uint32Array:Uint16Array,r.indicesArray=new r.IndicesArray,r.indicesType=r.canUse32BitsIndices?n.UNSIGNED_INT:n.UNSIGNED_SHORT,r.bind(),r}return t.prototype.bind=function(){var n=this.gl;n.bindBuffer(n.ELEMENT_ARRAY_BUFFER,this.indicesBuffer),n.enableVertexAttribArray(this.positionLocation),n.enableVertexAttribArray(this.normalLocation),n.enableVertexAttribArray(this.colorLocation),n.enableVertexAttribArray(this.radiusLocation),n.vertexAttribPointer(this.positionLocation,2,n.FLOAT,!1,Lc*Float32Array.BYTES_PER_ELEMENT,0),n.vertexAttribPointer(this.normalLocation,2,n.FLOAT,!1,Lc*Float32Array.BYTES_PER_ELEMENT,8),n.vertexAttribPointer(this.colorLocation,4,n.UNSIGNED_BYTE,!0,Lc*Float32Array.BYTES_PER_ELEMENT,16),n.vertexAttribPointer(this.radiusLocation,1,n.FLOAT,!1,Lc*Float32Array.BYTES_PER_ELEMENT,20)},t.prototype.process=function(n,r,o,i,a){if(i){for(var s=a*L8,c=s+L8;s0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i};Object.defineProperty(oO,"__esModule",{value:!0});var kc=vRe(gi),yRe=200,z8=3,bRe=200,xRe=function(e){pRe(t,e);function t(n,r){var o=e.call(this,n,r)||this;return o.enabled=!0,o.isMoving=!1,o.hasMoved=!1,o.touchMode=0,o.startTouchesPositions=[],o.handleStart=o.handleStart.bind(o),o.handleLeave=o.handleLeave.bind(o),o.handleMove=o.handleMove.bind(o),n.addEventListener("touchstart",o.handleStart,!1),n.addEventListener("touchend",o.handleLeave,!1),n.addEventListener("touchcancel",o.handleLeave,!1),n.addEventListener("touchmove",o.handleMove,!1),o}return t.prototype.kill=function(){var n=this.container;n.removeEventListener("touchstart",this.handleStart),n.removeEventListener("touchend",this.handleLeave),n.removeEventListener("touchcancel",this.handleLeave),n.removeEventListener("touchmove",this.handleMove)},t.prototype.getDimensions=function(){return{width:this.container.offsetWidth,height:this.container.offsetHeight}},t.prototype.dispatchRelatedMouseEvent=function(n,r,o,i){var a=o||r.touches[0],s=new MouseEvent(n,{clientX:a.clientX,clientY:a.clientY,altKey:r.altKey,ctrlKey:r.ctrlKey});s.isFakeSigmaMouseEvent=!0,(i||this.container).dispatchEvent(s)},t.prototype.handleStart=function(n){var r=this;if(this.enabled){n.preventDefault(),n.touches.length===1&&this.dispatchRelatedMouseEvent("mousedown",n);var o=(0,kc.getTouchesArray)(n.touches);if(this.touchMode=o.length,this.startCameraState=this.renderer.getCamera().getState(),this.startTouchesPositions=o.map(function(p){return(0,kc.getPosition)(p,r.container)}),this.lastTouches=o,this.lastTouchesPositions=this.startTouchesPositions,this.touchMode===2){var i=F8(this.startTouchesPositions,2),a=i[0],s=a.x,c=a.y,u=i[1],d=u.x,f=u.y;this.startTouchesAngle=Math.atan2(f-c,d-s),this.startTouchesDistance=Math.sqrt(Math.pow(d-s,2)+Math.pow(f-c,2))}this.emit("touchdown",(0,kc.getTouchCoords)(n,this.container))}},t.prototype.handleLeave=function(n){if(this.enabled){switch(n.preventDefault(),n.touches.length===0&&this.lastTouches&&this.lastTouches.length&&(this.dispatchRelatedMouseEvent("mouseup",n,this.lastTouches[0],document),this.hasMoved||this.dispatchRelatedMouseEvent("click",n,this.lastTouches[0])),this.movingTimeout&&(this.isMoving=!1,clearTimeout(this.movingTimeout)),this.touchMode){case 2:if(n.touches.length===1){this.handleStart(n),n.preventDefault();break}case 1:if(this.isMoving){var r=this.renderer.getCamera(),o=r.getState(),i=r.getPreviousState()||{x:0,y:0};r.animate({x:o.x+z8*(o.x-i.x),y:o.y+z8*(o.y-i.y)},{duration:bRe,easing:"quadraticOut"})}this.hasMoved=!1,this.isMoving=!1,this.touchMode=0;break}this.emit("touchup",(0,kc.getTouchCoords)(n,this.container))}},t.prototype.handleMove=function(n){var r,o=this;if(this.enabled){n.preventDefault(),n.touches.length===1&&this.dispatchRelatedMouseEvent("mousemove",n);var i=(0,kc.getTouchesArray)(n.touches),a=i.map(function(A){return(0,kc.getPosition)(A,o.container)});if(this.lastTouches=i,this.lastTouchesPositions=a,this.hasMoved||(this.hasMoved=a.some(function(A,B){var F=o.startTouchesPositions[B];return A.x!==F.x||A.y!==F.y})),!!this.hasMoved){this.isMoving=!0,this.movingTimeout&&clearTimeout(this.movingTimeout),this.movingTimeout=window.setTimeout(function(){o.isMoving=!1},yRe);var s=this.renderer.getCamera(),c=this.startCameraState;switch(this.touchMode){case 1:{var u=this.renderer.viewportToFramedGraph((this.startTouchesPositions||[])[0]),d=u.x,f=u.y,p=this.renderer.viewportToFramedGraph(a[0]),g=p.x,v=p.y;s.setState({x:c.x+d-g,y:c.y+f-v});break}case 2:{var y={},S=a[0],b=S.x,x=S.y,C=a[1],E=C.x,$=C.y,O=Math.atan2($-x,E-b)-this.startTouchesAngle,I=Math.hypot($-x,E-b)/this.startTouchesDistance,N=s.getBoundedRatio(c.ratio/I);y.ratio=N,y.angle=c.angle+O;var _=this.getDimensions(),T=this.renderer.viewportToFramedGraph((this.startTouchesPositions||[])[0],{cameraState:c}),D=Math.min(_.width,_.height),j=D/_.width,P=D/_.height,M=N/D,g=b-D/2/j,v=x-D/2/P;r=F8([g*Math.cos(-y.angle)-v*Math.sin(-y.angle),v*Math.cos(-y.angle)+g*Math.sin(-y.angle)],2),g=r[0],v=r[1],y.x=T.x-g*M,y.y=T.y+v*M,s.setState(y);break}}this.emit("touchmove",(0,kc.getTouchCoords)(n,this.container))}}},t}(kc.default);oO.default=xRe;var hh={};Object.defineProperty(hh,"__esModule",{value:!0});hh.doEdgeCollideWithPoint=hh.isPixelColored=void 0;function wRe(e,t,n){var r=new Uint8Array(4);return e.readPixels(t,e.drawingBufferHeight-n,1,1,e.RGBA,e.UNSIGNED_BYTE,r),r[3]>0}hh.isPixelColored=wRe;function SRe(e,t,n,r,o,i,a){if(en+a&&e>o+a||t>r+a&&t>i+a)return!1;var s=Math.abs((o-n)*(r-t)-(n-e)*(i-r))/Math.sqrt(Math.pow(o-n,2)+Math.pow(i-r,2));return s=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Wg=wt&&wt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(G3,"__esModule",{value:!0});var $Re=Wg(xF),B8=Wg(vx),ORe=Wg(xx),H8=Wg(Za),IRe=Vh,Gr=mn,U8=dh,M0=PF,RRe=Wg(oO),k0=Ni,W8=hh,V8=150,K8=50;function NRe(e,t,n){if(!n.hasOwnProperty("x")||!n.hasOwnProperty("y"))throw new Error('Sigma: could not find a valid position (x, y) for node "'.concat(t,'". All your nodes must have a number "x" and "y". Maybe your forgot to apply a layout or your "nodeReducer" is not returning the correct data?'));return n.color||(n.color=e.defaultNodeColor),!n.label&&n.label!==""&&(n.label=null),n.label!==void 0&&n.label!==null?n.label=""+n.label:n.label=null,n.size||(n.size=2),n.hasOwnProperty("hidden")||(n.hidden=!1),n.hasOwnProperty("highlighted")||(n.highlighted=!1),n.hasOwnProperty("forceLabel")||(n.forceLabel=!1),(!n.type||n.type==="")&&(n.type=e.defaultNodeType),n.zIndex||(n.zIndex=0),n}function _Re(e,t,n){return n.color||(n.color=e.defaultEdgeColor),n.label||(n.label=""),n.size||(n.size=.5),n.hasOwnProperty("hidden")||(n.hidden=!1),n.hasOwnProperty("forceLabel")||(n.forceLabel=!1),(!n.type||n.type==="")&&(n.type=e.defaultEdgeType),n.zIndex||(n.zIndex=0),n}var TRe=function(e){CRe(t,e);function t(n,r,o){o===void 0&&(o={});var i=e.call(this)||this;if(i.elements={},i.canvasContexts={},i.webGLContexts={},i.activeListeners={},i.quadtree=new H8.default,i.labelGrid=new U8.LabelGrid,i.nodeDataCache={},i.edgeDataCache={},i.nodesWithForcedLabels=[],i.edgesWithForcedLabels=[],i.nodeExtent={x:[0,1],y:[0,1]},i.matrix=(0,k0.identity)(),i.invMatrix=(0,k0.identity)(),i.correctionRatio=1,i.customBBox=null,i.normalizationFunction=(0,Gr.createNormalizationFunction)({x:[0,1],y:[0,1]}),i.cameraSizeRatio=1,i.width=0,i.height=0,i.pixelRatio=(0,Gr.getPixelRatio)(),i.displayedLabels=new Set,i.highlightedNodes=new Set,i.hoveredNode=null,i.hoveredEdge=null,i.renderFrame=null,i.renderHighlightedNodesFrame=null,i.needToProcess=!1,i.needToSoftProcess=!1,i.checkEdgesEventsFrame=null,i.nodePrograms={},i.nodeHoverPrograms={},i.edgePrograms={},i.settings=(0,M0.resolveSettings)(o),(0,M0.validateSettings)(i.settings),(0,Gr.validateGraph)(n),!(r instanceof HTMLElement))throw new Error("Sigma: container should be an html element.");i.graph=n,i.container=r,i.createWebGLContext("edges",{preserveDrawingBuffer:!0}),i.createCanvasContext("edgeLabels"),i.createWebGLContext("nodes"),i.createCanvasContext("labels"),i.createCanvasContext("hovers"),i.createWebGLContext("hoverNodes"),i.createCanvasContext("mouse");for(var a in i.webGLContexts){var s=i.webGLContexts[a];s.blendFunc(s.ONE,s.ONE_MINUS_SRC_ALPHA),s.enable(s.BLEND)}for(var c in i.settings.nodeProgramClasses){var u=i.settings.nodeProgramClasses[c];i.nodePrograms[c]=new u(i.webGLContexts.nodes,i);var d=u;c in i.settings.nodeHoverProgramClasses&&(d=i.settings.nodeHoverProgramClasses[c]),i.nodeHoverPrograms[c]=new d(i.webGLContexts.hoverNodes,i)}for(var c in i.settings.edgeProgramClasses){var f=i.settings.edgeProgramClasses[c];i.edgePrograms[c]=new f(i.webGLContexts.edges,i)}return i.resize(),i.camera=new B8.default,i.bindCameraHandlers(),i.mouseCaptor=new ORe.default(i.elements.mouse,i),i.touchCaptor=new RRe.default(i.elements.mouse,i),i.bindEventHandlers(),i.bindGraphHandlers(),i.handleSettingsUpdate(),i.process(),i.render(),i}return t.prototype.createCanvas=function(n){var r=(0,Gr.createElement)("canvas",{position:"absolute"},{class:"sigma-".concat(n)});return this.elements[n]=r,this.container.appendChild(r),r},t.prototype.createCanvasContext=function(n){var r=this.createCanvas(n),o={preserveDrawingBuffer:!1,antialias:!1};return this.canvasContexts[n]=r.getContext("2d",o),this},t.prototype.createWebGLContext=function(n,r){var o=this.createCanvas(n),i=ar({preserveDrawingBuffer:!1,antialias:!1},r||{}),a;return a=o.getContext("webgl2",i),a||(a=o.getContext("webgl",i)),a||(a=o.getContext("experimental-webgl",i)),this.webGLContexts[n]=a,this},t.prototype.bindCameraHandlers=function(){var n=this;return this.activeListeners.camera=function(){n._scheduleRefresh()},this.camera.on("updated",this.activeListeners.camera),this},t.prototype.mouseIsOnNode=function(n,r,o){var i=n.x,a=n.y,s=r.x,c=r.y;return i>s-o&&ic-o&&a=S&&(y=C,S=E)}}catch($){o={error:$}}finally{try{x&&!x.done&&(i=b.return)&&i.call(b)}finally{if(o)throw o.error}}return y},t.prototype.process=function(n){var r=this;n===void 0&&(n=!1);var o=this.graph,i=this.settings,a=this.getDimensions(),s=[1/0,-1/0],c=[1/0,-1/0];this.quadtree.clear(),this.labelGrid.resizeAndClear(a,i.labelGridCellSize),this.highlightedNodes=new Set,this.nodeExtent=(0,Gr.graphExtent)(o),this.nodesWithForcedLabels=[],this.edgesWithForcedLabels=[];var u=new B8.default,d=(0,Gr.matrixFromCamera)(u.getState(),this.getDimensions(),this.getGraphDimensions(),this.getSetting("stagePadding")||0);this.normalizationFunction=(0,Gr.createNormalizationFunction)(this.customBBox||this.nodeExtent);for(var f={},p=o.nodes(),g=0,v=p.length;gs[1]&&(s[1]=b.zIndex))}for(var x in this.nodePrograms){if(!this.nodePrograms.hasOwnProperty(x))throw new Error('Sigma: could not find a suitable program for node type "'.concat(x,'"!'));n||this.nodePrograms[x].allocate(f[x]||0),f[x]=0}this.settings.zIndex&&s[0]!==s[1]&&(p=(0,Gr.zIndexOrdering)(s,function(j){return r.nodeDataCache[j].zIndex},p));for(var g=0,v=p.length;gc[1]&&(c[1]=b.zIndex))}for(var x in this.edgePrograms){if(!this.edgePrograms.hasOwnProperty(x))throw new Error('Sigma: could not find a suitable program for edge type "'.concat(x,'"!'));n||this.edgePrograms[x].allocate(E[x]||0),E[x]=0}this.settings.zIndex&&c[0]!==c[1]&&($=(0,Gr.zIndexOrdering)(c,function(j){return r.edgeDataCache[j].zIndex},$));for(var g=0,v=$.length;gthis.width+V8||f<-K8||f>this.height+K8||(this.displayedLabels.add(s),this.settings.labelRenderer(o,ar(ar({key:s},c),{size:p,x:d,y:f}),this.settings))}}return this},t.prototype.renderEdgeLabels=function(){if(!this.settings.renderEdgeLabels)return this;var n=this.canvasContexts.edgeLabels;n.clearRect(0,0,this.width,this.height);for(var r=(0,U8.edgeLabelsToDisplayFromNodes)({graph:this.graph,hoveredNode:this.hoveredNode,displayedNodeLabels:this.displayedLabels,highlightedNodes:this.highlightedNodes}).concat(this.edgesWithForcedLabels),o=new Set,i=0,a=r.length;i");return e}function Vg(){return iO().sigma}function DRe(){const{sigma:e,container:t}=iO(),[n,r]=l.useState({});return l.useEffect(()=>{if(!e||!n)return;const o={};return Object.keys(n).forEach(i=>{o[i]=n[i],e.setSetting(i,n[i])}),()=>{e&&t&&t.offsetWidth>0&&t.offsetHeight>0&&Object.keys(o).forEach(i=>{e.setSetting(i,o[i])})}},[e,n,t]),r}const G8=["clickNode","rightClickNode","downNode","enterNode","leaveNode","doubleClickNode","wheelNode","clickEdge","rightClickEdge","downEdge","enterEdge","leaveEdge","doubleClickEdge","wheelEdge","clickStage","rightClickStage","downStage","doubleClickStage","wheelStage","beforeRender","afterRender","kill"],Y8=["click","rightClick","mouseup","mousedown","mousemove","mousemovebody","doubleClick","wheel"],q8=["touchup","touchdown","touchmove"],X8=["updated"];function ARe(){const e=Vg(),t=DRe(),[n,r]=l.useState({});return l.useEffect(()=>{if(!e||!n)return;const o=n,i=Object.keys(o),a={},s={},c=e.getSettings();return i.some(u=>["clickEdge","rightClickEdge","doubleClickEdge","downEdge"].includes(u))&&c.enableEdgeClickEvents===!1&&(a.enableEdgeClickEvents=!0,s.enableEdgeClickEvents=!1),i.some(u=>["enterEdge","leaveEdge"].includes(u))&&c.enableEdgeHoverEvents===!1&&(a.enableEdgeHoverEvents=!0,s.enableEdgeHoverEvents=!1),i.some(u=>["wheelEdge"].includes(u))&&c.enableEdgeWheelEvents===!1&&(a.enableEdgeWheelEvents=!0,s.enableEdgeWheelEvents=!1),Object.keys(a).length>0&&t(a),i.forEach(u=>{const d=o[u];G8.find(f=>f===u)&&e.on(u,d),Y8.find(f=>f===u)&&e.getMouseCaptor().on(u,d),q8.find(f=>f===u)&&e.getTouchCaptor().on(u,d),X8.find(f=>f===u)&&e.getCamera().on(u,d)}),()=>{Object.keys(s).length>0&&t(s),e&&i.forEach(u=>{const d=o[u];G8.find(f=>f===u)&&e.off(u,d),Y8.find(f=>f===u)&&e.getMouseCaptor().off(u,d),q8.find(f=>f===u)&&e.getTouchCaptor().off(u,d),X8.find(f=>f===u)&&e.getCamera().off(u,d)})}},[e,n,t]),r}function LRe(){const e=Vg();return l.useCallback((t,n=!0)=>{e&&t&&(n&&e.getGraph().order>0&&e.getGraph().clear(),e.getGraph().import(t),e.refresh())},[e])}function XF(e){const t=Vg(),n=l.useRef();G9.isEqual(n.current,e)||(n.current=e);const r=l.useCallback(c=>{t.getCamera().animatedZoom(Object.assign(Object.assign({},n.current),c))},[t,n]),o=l.useCallback(c=>{t.getCamera().animatedUnzoom(Object.assign(Object.assign({},n.current),c))},[t,n]),i=l.useCallback(c=>{t.getCamera().animatedReset(Object.assign(Object.assign({},n.current),c))},[t,n]),a=l.useCallback((c,u)=>{t.getCamera().animate(c,Object.assign(Object.assign({},n.current),u))},[t,n]),s=l.useCallback((c,u)=>{const d=t.getNodeDisplayData(c);d?t.getCamera().animate(d,Object.assign(Object.assign({},n.current),u)):console.log(`Node ${c} not found`)},[t,n]);return{zoomIn:r,zoomOut:o,reset:i,goto:a,gotoNode:s}}function FRe(e){const t=iO(),[n,r]=l.useState(!1),[o,i]=l.useState(e||t.container),a=()=>r(s=>!s);return l.useEffect(()=>(document.addEventListener("fullscreenchange",a),()=>document.removeEventListener("fullscreenchange",a)),[a]),l.useEffect(()=>{i(e||t.container)},[e,t.container]),{toggle:l.useCallback(()=>{var s;s=o,document.fullscreenElement!==s?s.requestFullscreen():document.exitFullscreen&&document.exitFullscreen()},[o]),isFullScreen:n}}const zRe=l.forwardRef(({graph:e,id:t,className:n,style:r,settings:o,children:i},a)=>{const s=l.useRef(null),c=l.useRef(null),u={className:`react-sigma ${n||""}`,id:t,style:r},[d,f]=l.useState(null),p=l.useRef({});G9.isEqual(p.current,o)||(p.current=o||{}),l.useEffect(()=>{let y=null;if(c.current!==null){const S=e?typeof e=="function"?new e:e:new yr;y=new GF(S,c.current,Object.assign({allowInvalidContainer:!0},p.current)),d&&y.getCamera().setState(d.getCamera().getState())}return f(y),()=>{y&&y.kill(),f(null)}},[c,e,p]),l.useImperativeHandle(a,()=>d,[d]);const g=l.useMemo(()=>d&&s.current?{sigma:d,container:s.current}:null,[d,s.current]),v=g!==null?Ne.createElement(kRe,{value:g},i):null;return Ne.createElement("div",Object.assign({},u,{ref:s}),Ne.createElement("div",{className:"sigma-container",ref:c}),v)}),Q8=({id:e,className:t,style:n,children:r,position:o="bottom-left"})=>{const i={className:`react-sigma-controls ${t||""} ${o}`,id:e,style:n};return Ne.createElement("div",Object.assign({},i),r)};var Z8;function KE(){return KE=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{zoomIn:i,zoomOut:a,reset:s}=XF({duration:n,factor:1.5}),c={style:t,className:`react-sigma-control ${e||""}`};return Ne.createElement(Ne.Fragment,null,Ne.createElement("div",Object.assign({},c),Ne.createElement("button",{onClick:()=>i(),title:o.zoomIn||"Zoom In"},r?r[0]:Ne.createElement(BRe,{style:{width:"1em"}}))),Ne.createElement("div",Object.assign({},c),Ne.createElement("button",{onClick:()=>a(),title:o.zoomOut||"Zoom Out"},r?r[1]:Ne.createElement(HRe,{style:{width:"1em"}}))),Ne.createElement("div",Object.assign({},c),Ne.createElement("button",{onClick:()=>s(),title:o.reset||"See whole graph"},r?r[2]:Ne.createElement(URe,{style:{width:"1em"}}))))};var t5;function qE(){return qE=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{isFullScreen:a,toggle:s}=FRe(r?.current),c={className:`react-sigma-control ${t||""}`,id:e,style:n};return document.fullscreenEnabled?Ne.createElement("div",Object.assign({},c),Ne.createElement("button",{onClick:s,title:a?i.exit||"Exit fullscreen":i.enter||"Enter fullscreen"},o&&!a&&o[0],o&&a&&o[1],!o&&!a&&Ne.createElement(VRe,{style:{width:"1em"}}),!o&&a&&Ne.createElement(KRe,{style:{width:"1em"}}))):null},YRe=({id:e,className:t,style:n,labels:r={}})=>{const o=Vg(),i=ARe(),{gotoNode:a}=XF(),[s,c]=l.useState(""),[u,d]=l.useState([]),[f,p]=l.useState(null),[g,v]=l.useState("");l.useEffect(()=>{v(`search-${Math.random().toString(36).slice(2)}`)},[]),l.useEffect(()=>{const S=[];!f&&s.length>1&&o.getGraph().forEachNode((b,x)=>{x.label&&x.label.toLowerCase().includes(s.toLowerCase())&&S.push({id:b,label:x.label})}),d(S)},[s]),l.useEffect(()=>{i({clickStage:()=>{p(null),c("")}})},[i]),l.useEffect(()=>{if(f)return o.getGraph().setNodeAttribute(f,"highlighted",!0),a(f),()=>{o.getGraph().setNodeAttribute(f,"highlighted",!1)}},[f]);const y={className:`react-sigma-search ${t||""}`,id:e,style:n};return Ne.createElement("div",Object.assign({},y),Ne.createElement("label",{htmlFor:g,style:{display:"none"}},r.text||"Search a node"),Ne.createElement("input",{id:g,type:"text",placeholder:r.placeholder||"Search...",list:`${g}-datalist`,value:s,onChange:S=>{const b=S.target.value,x=u.find(C=>C.label===b);x?(c(x.label),d([]),p(x.id)):(p(null),c(b))}}),Ne.createElement("datalist",{id:`${g}-datalist`},u.map(S=>Ne.createElement("option",{key:S.id,value:S.label},S.label))))};function qRe(e){return!e||typeof e!="object"||typeof e=="function"||Array.isArray(e)||e instanceof Set||e instanceof Map||e instanceof RegExp||e instanceof Date}function QF(e,t){e=e||{};var n={};for(var r in t){var o=e[r],i=t[r];if(!qRe(i)){n[r]=QF(o,i);continue}o===void 0?n[r]=i:n[r]=o}return n}var ZF=QF,XRe=ZF,QRe=yx,ZRe={dimensions:["x","y"],center:.5,scale:1};function JF(e,t,n){if(!QRe(t))throw new Error("graphology-layout/random: the given graph is not a valid graphology instance.");n=XRe(n,ZRe);var r=n.dimensions;if(!Array.isArray(r)||r.length!==2)throw new Error("graphology-layout/random: given dimensions are invalid.");var o=n.center,i=n.scale,a=Math.PI*2,s=(o-.5)*i,c=t.order,u=r[0],d=r[1];function f(v,y){return y[u]=i*Math.cos(v*a/c)+s,y[d]=i*Math.sin(v*a/c)+s,y}var p=0;if(!e){var g={};return t.forEachNode(function(v){g[v]=f(p++,{})}),g}t.updateEachNodeAttributes(function(v,y){return f(p++,y),y},{attributes:r})}var ez=JF.bind(null,!1);ez.assign=JF.bind(null,!0);var JRe=ez;const r5=Vo(JRe);var Kg={};function eNe(e){return typeof e!="number"||isNaN(e)?1:e}function tNe(e,t){var n={},r=function(a){return typeof a>"u"?t:a};typeof t=="function"&&(r=t);var o=function(a){return r(a[e])},i=function(){return r(void 0)};return typeof e=="string"?(n.fromAttributes=o,n.fromGraph=function(a,s){return o(a.getNodeAttributes(s))},n.fromEntry=function(a,s){return o(s)}):typeof e=="function"?(n.fromAttributes=function(){throw new Error("graphology-utils/getters/createNodeValueGetter: irrelevant usage.")},n.fromGraph=function(a,s){return r(e(s,a.getNodeAttributes(s)))},n.fromEntry=function(a,s){return r(e(a,s))}):(n.fromAttributes=i,n.fromGraph=i,n.fromEntry=i),n}function tz(e,t){var n={},r=function(a){return typeof a>"u"?t:a};typeof t=="function"&&(r=t);var o=function(a){return r(a[e])},i=function(){return r(void 0)};return typeof e=="string"?(n.fromAttributes=o,n.fromGraph=function(a,s){return o(a.getEdgeAttributes(s))},n.fromEntry=function(a,s){return o(s)},n.fromPartialEntry=n.fromEntry,n.fromMinimalEntry=n.fromEntry):typeof e=="function"?(n.fromAttributes=function(){throw new Error("graphology-utils/getters/createEdgeValueGetter: irrelevant usage.")},n.fromGraph=function(a,s){var c=a.extremities(s);return r(e(s,a.getEdgeAttributes(s),c[0],c[1],a.getNodeAttributes(c[0]),a.getNodeAttributes(c[1]),a.isUndirected(s)))},n.fromEntry=function(a,s,c,u,d,f,p){return r(e(a,s,c,u,d,f,p))},n.fromPartialEntry=function(a,s,c,u){return r(e(a,s,c,u))},n.fromMinimalEntry=function(a,s){return r(e(a,s))}):(n.fromAttributes=i,n.fromGraph=i,n.fromEntry=i,n.fromMinimalEntry=i),n}Kg.createNodeValueGetter=tNe;Kg.createEdgeValueGetter=tz;Kg.createEdgeWeightGetter=function(e){return tz(e,eNe)};var So=0,Yr=1,or=2,ir=3,kl=4,Dl=5,cr=6,o5=7,D0=8,i5=9,nNe=0,rNe=1,oNe=2,Yo=0,Wa=1,Ii=2,Nu=3,Dc=4,ro=5,Zi=6,ol=7,il=8,a5=3,Es=10,iNe=3,hi=9,iC=10,aNe=function(t,n,r){var o,i,a,s,c,u,d,f,p,g,v=n.length,y=r.length,S=t.adjustSizes,b=t.barnesHutTheta*t.barnesHutTheta,x,C,E,$,O,I,N,_=[];for(a=0;aH?(j-=(F-H)/2,P=j+F):(T-=(H-F)/2,D=T+H),_[0+Yo]=-1,_[0+Wa]=(T+D)/2,_[0+Ii]=(j+P)/2,_[0+Nu]=Math.max(D-T,P-j),_[0+Dc]=-1,_[0+ro]=-1,_[0+Zi]=0,_[0+ol]=0,_[0+il]=0,o=1,a=0;a=0){n[a+So]<_[i+Wa]?n[a+Yr]<_[i+Ii]?M=_[i+ro]:M=_[i+ro]+hi:n[a+Yr]<_[i+Ii]?M=_[i+ro]+hi*2:M=_[i+ro]+hi*3,_[i+ol]=(_[i+ol]*_[i+Zi]+n[a+So]*n[a+cr])/(_[i+Zi]+n[a+cr]),_[i+il]=(_[i+il]*_[i+Zi]+n[a+Yr]*n[a+cr])/(_[i+Zi]+n[a+cr]),_[i+Zi]+=n[a+cr],i=M;continue}else if(_[i+Yo]<0){_[i+Yo]=a;break}else{if(_[i+ro]=o*hi,f=_[i+Nu]/2,p=_[i+ro],_[p+Yo]=-1,_[p+Wa]=_[i+Wa]-f,_[p+Ii]=_[i+Ii]-f,_[p+Nu]=f,_[p+Dc]=p+hi,_[p+ro]=-1,_[p+Zi]=0,_[p+ol]=0,_[p+il]=0,p+=hi,_[p+Yo]=-1,_[p+Wa]=_[i+Wa]-f,_[p+Ii]=_[i+Ii]+f,_[p+Nu]=f,_[p+Dc]=p+hi,_[p+ro]=-1,_[p+Zi]=0,_[p+ol]=0,_[p+il]=0,p+=hi,_[p+Yo]=-1,_[p+Wa]=_[i+Wa]+f,_[p+Ii]=_[i+Ii]-f,_[p+Nu]=f,_[p+Dc]=p+hi,_[p+ro]=-1,_[p+Zi]=0,_[p+ol]=0,_[p+il]=0,p+=hi,_[p+Yo]=-1,_[p+Wa]=_[i+Wa]+f,_[p+Ii]=_[i+Ii]+f,_[p+Nu]=f,_[p+Dc]=_[i+Dc],_[p+ro]=-1,_[p+Zi]=0,_[p+ol]=0,_[p+il]=0,o+=4,n[_[i+Yo]+So]<_[i+Wa]?n[_[i+Yo]+Yr]<_[i+Ii]?M=_[i+ro]:M=_[i+ro]+hi:n[_[i+Yo]+Yr]<_[i+Ii]?M=_[i+ro]+hi*2:M=_[i+ro]+hi*3,_[i+Zi]=n[_[i+Yo]+cr],_[i+ol]=n[_[i+Yo]+So],_[i+il]=n[_[i+Yo]+Yr],_[M+Yo]=_[i+Yo],_[i+Yo]=-1,n[a+So]<_[i+Wa]?n[a+Yr]<_[i+Ii]?A=_[i+ro]:A=_[i+ro]+hi:n[a+Yr]<_[i+Ii]?A=_[i+ro]+hi*2:A=_[i+ro]+hi*3,M===A)if(B--){i=M;continue}else{B=a5;break}_[A+Yo]=a;break}}if(t.barnesHutOptimize)for(C=t.scalingRatio,a=0;a=0)if(I=Math.pow(n[a+So]-_[i+ol],2)+Math.pow(n[a+Yr]-_[i+il],2),g=_[i+Nu],4*g*g/I0?(N=C*n[a+cr]*_[i+Zi]/I,n[a+or]+=E*N,n[a+ir]+=$*N):I<0&&(N=-C*n[a+cr]*_[i+Zi]/Math.sqrt(I),n[a+or]+=E*N,n[a+ir]+=$*N):I>0&&(N=C*n[a+cr]*_[i+Zi]/I,n[a+or]+=E*N,n[a+ir]+=$*N),i=_[i+Dc],i<0)break;continue}else{i=_[i+ro];continue}else{if(u=_[i+Yo],u>=0&&u!==a&&(E=n[a+So]-n[u+So],$=n[a+Yr]-n[u+Yr],I=E*E+$*$,S===!0?I>0?(N=C*n[a+cr]*n[u+cr]/I,n[a+or]+=E*N,n[a+ir]+=$*N):I<0&&(N=-C*n[a+cr]*n[u+cr]/Math.sqrt(I),n[a+or]+=E*N,n[a+ir]+=$*N):I>0&&(N=C*n[a+cr]*n[u+cr]/I,n[a+or]+=E*N,n[a+ir]+=$*N)),i=_[i+Dc],i<0)break;continue}else for(C=t.scalingRatio,s=0;s0?(N=C*n[s+cr]*n[c+cr]/I/I,n[s+or]+=E*N,n[s+ir]+=$*N,n[c+or]-=E*N,n[c+ir]-=$*N):I<0&&(N=100*C*n[s+cr]*n[c+cr],n[s+or]+=E*N,n[s+ir]+=$*N,n[c+or]-=E*N,n[c+ir]-=$*N)):(I=Math.sqrt(E*E+$*$),I>0&&(N=C*n[s+cr]*n[c+cr]/I/I,n[s+or]+=E*N,n[s+ir]+=$*N,n[c+or]-=E*N,n[c+ir]-=$*N));for(p=t.gravity/t.scalingRatio,C=t.scalingRatio,a=0;a0&&(N=C*n[a+cr]*p):I>0&&(N=C*n[a+cr]*p/I),n[a+or]-=E*N,n[a+ir]-=$*N;for(C=1*(t.outboundAttractionDistribution?x:1),d=0;d0&&(N=-C*O*Math.log(1+I)/I/n[s+cr]):I>0&&(N=-C*O*Math.log(1+I)/I):t.outboundAttractionDistribution?I>0&&(N=-C*O/n[s+cr]):I>0&&(N=-C*O)):(I=Math.sqrt(Math.pow(E,2)+Math.pow($,2)),t.linLogMode?t.outboundAttractionDistribution?I>0&&(N=-C*O*Math.log(1+I)/I/n[s+cr]):I>0&&(N=-C*O*Math.log(1+I)/I):t.outboundAttractionDistribution?(I=1,N=-C*O/n[s+cr]):(I=1,N=-C*O)),I>0&&(n[s+or]+=E*N,n[s+ir]+=$*N,n[c+or]-=E*N,n[c+ir]-=$*N);var W,V,K,G,re,Q;if(S===!0)for(a=0;aiC&&(n[a+or]=n[a+or]*iC/W,n[a+ir]=n[a+ir]*iC/W),V=n[a+cr]*Math.sqrt((n[a+kl]-n[a+or])*(n[a+kl]-n[a+or])+(n[a+Dl]-n[a+ir])*(n[a+Dl]-n[a+ir])),K=Math.sqrt((n[a+kl]+n[a+or])*(n[a+kl]+n[a+or])+(n[a+Dl]+n[a+ir])*(n[a+Dl]+n[a+ir]))/2,G=.1*Math.log(1+K)/(1+Math.sqrt(V)),re=n[a+So]+n[a+or]*(G/t.slowDown),n[a+So]=re,Q=n[a+Yr]+n[a+ir]*(G/t.slowDown),n[a+Yr]=Q);else for(a=0;a=0)?{message:"the `scalingRatio` setting should be a number >= 0."}:"strongGravityMode"in e&&typeof e.strongGravityMode!="boolean"?{message:"the `strongGravityMode` setting should be a boolean."}:"gravity"in e&&!(typeof e.gravity=="number"&&e.gravity>=0)?{message:"the `gravity` setting should be a number >= 0."}:"slowDown"in e&&!(typeof e.slowDown=="number"||e.slowDown>=0)?{message:"the `slowDown` setting should be a number >= 0."}:"barnesHutOptimize"in e&&typeof e.barnesHutOptimize!="boolean"?{message:"the `barnesHutOptimize` setting should be a boolean."}:"barnesHutTheta"in e&&!(typeof e.barnesHutTheta=="number"&&e.barnesHutTheta>=0)?{message:"the `barnesHutTheta` setting should be a number >= 0."}:null};vu.graphToByteArrays=function(e,t){var n=e.order,r=e.size,o={},i,a=new Float32Array(n*ng),s=new Float32Array(r*s5);return i=0,e.forEachNode(function(c,u){o[c]=i,a[i]=u.x,a[i+1]=u.y,a[i+2]=0,a[i+3]=0,a[i+4]=0,a[i+5]=0,a[i+6]=1,a[i+7]=1,a[i+8]=u.size||1,a[i+9]=u.fixed?1:0,i+=ng}),i=0,e.forEachEdge(function(c,u,d,f,p,g,v){var y=o[d],S=o[f],b=t(c,u,d,f,p,g,v);a[y+6]+=b,a[S+6]+=b,s[i]=y,s[i+1]=S,s[i+2]=b,i+=s5}),{nodes:a,edges:s}};vu.assignLayoutChanges=function(e,t,n){var r=0;e.updateEachNodeAttributes(function(o,i){return i.x=t[r],i.y=t[r+1],r+=ng,n?n(o,i):i})};vu.readGraphPositions=function(e,t){var n=0;e.forEachNode(function(r,o){t[n]=o.x,t[n+1]=o.y,n+=ng})};vu.collectLayoutChanges=function(e,t,n){for(var r=e.nodes(),o={},i=0,a=0,s=t.length;i2e3,strongGravityMode:!0,gravity:.05,scalingRatio:10,slowDown:1+Math.log(t)}}var aO=nz.bind(null,!1);aO.assign=nz.bind(null,!0);aO.inferSettings=fNe;var hNe=aO;const l5=Vo(hNe),{createNodeValueGetter:c5,createEdgeValueGetter:pNe}=Kg;var mNe=function(t,n,r){const{nodeXAttribute:o,nodeYAttribute:i}=r,{attraction:a,repulsion:s,gravity:c,inertia:u,maxMove:d}=r.settings;let{shouldSkipNode:f,shouldSkipEdge:p,isNodeFixed:g}=r;g=c5(g),f=c5(f,!1),p=pNe(p,!1);const v=t.filterNodes((b,x)=>!f.fromEntry(b,x)),y=v.length;for(let b=0;b{if(C===E||f.fromEntry(C,$)||f.fromEntry(E,O)||p.fromEntry(b,x,C,E,$,O,I))return;const N=n[C],_=n[E],T=_.x-N.x,D=_.y-N.y,j=Math.sqrt(T*T+D*D)||1,P=a*j*T,M=a*j*D;N.dx+=P,N.dy+=M,_.dx-=P,_.dy-=M}),c)for(let b=0;bd&&(C.dx*=d/E,C.dy*=d/E),g.fromGraph(t,x)?C.fixed=!0:(C.x+=C.dx,C.y+=C.dy,C.fixed=!1)}return{converged:S}},sO={};sO.assignLayoutChanges=function(e,t,n){const{nodeXAttribute:r,nodeYAttribute:o}=n;e.updateEachNodeAttributes((i,a)=>{const s=t[i];return!s||s.fixed||(a[r]=s.x,a[o]=s.y),a},{attributes:["x","y"]})};sO.collectLayoutChanges=function(e){const t={};for(const n in e){const r=e[n];t[n]={x:r.x,y:r.y}}return t};var gNe={nodeXAttribute:"x",nodeYAttribute:"y",isNodeFixed:"fixed",shouldSkipNode:null,shouldSkipEdge:null,settings:{attraction:5e-4,repulsion:.1,gravity:1e-4,inertia:.6,maxMove:200}};const vNe=yx,yNe=ZF,bNe=mNe,xNe=sO,wNe=gNe;function Kh(e,t){if(!vNe(e))throw new Error("graphology-layout-force/worker: the given graph is not a valid graphology instance.");t=yNe(t,wNe),this.callbacks={},t.onConverged&&(this.callbacks.onConverged=t.onConverged),this.graph=e,this.params=t,this.nodeStates={},this.frameID=null,this.running=!1,this.killed=!1}Kh.prototype.isRunning=function(){return this.running};Kh.prototype.runFrame=function(){let{converged:e}=bNe(this.graph,this.nodeStates,this.params);xNe.assignLayoutChanges(this.graph,this.nodeStates,this.params),e=!1,e?(this.callbacks.onConverged&&this.callbacks.onConverged(),this.stop()):this.frameID=window.requestAnimationFrame(()=>this.runFrame())};Kh.prototype.stop=function(){return this.running=!1,this.frameID!==null&&(window.cancelAnimationFrame(this.frameID),this.frameID=null),this};Kh.prototype.start=function(){if(this.killed)throw new Error("graphology-layout-force/worker.start: layout was killed.");this.running||(this.running=!0,this.runFrame())};Kh.prototype.kill=function(){this.stop(),delete this.nodeStates,this.killed=!0};var SNe=Kh;const CNe=Vo(SNe),ENe="#F00",$Ne="#6E44CB",ONe="#888",INe="#6B81CA",RNe="#6B81CA",NNe="#52712E",_Ne="#52712E",TNe=15,PNe=3,jNe=20,MNe=5,kNe=20,DNe=10,ANe=1,aC="egress-range-";let A0=null;function LNe({hosts:e,nodes:t,acl:n,clients:r}){const o=LRe(),i=Vg(),{token:a}=Uo.useToken(),s=tn(),[c,u]=l.useState(!1);i.setSetting("labelColor",{color:s.currentTheme==="dark"?a.colorPrimary:a.colorText});const d=l.useCallback((v,y)=>n?.[v.id]?.[y.id]===2&&n?.[y.id]?.[v.id]===2,[n]),f=l.useCallback((v,y,S,b)=>{u(!1),y.forEach(x=>{try{const C=S[x.id].name;v.addNode(x.id,{x:Math.round(Math.random()*100),y:Math.round(Math.random()*100),size:x.isegressgateway?jNe:TNe,label:C,color:$Ne}),x.isegressgateway&&v.addNode(`${aC}${x.id}`,{x:Math.round(Math.random()*100),y:Math.round(Math.random()*100),size:kNe,label:x.egressgatewayranges.join(","),color:NNe})}catch(C){console.error(C),u(!0)}}),b.forEach(x=>{try{const C=x.clientid;v.addNode(x.clientid,{x:Math.round(Math.random()*100),y:Math.round(Math.random()*100),size:DNe,label:C,color:INe})}catch(C){console.error(C),u(!0)}})},[]),p=l.useCallback((v,y,S,b)=>{for(let x=0;x{try{v.addEdge(x.clientid,x.ingressgatewayid,{color:RNe,size:ANe,type:"arrow"})}catch(C){console.error(C),u(!0)}}),v.forEachNode(x=>{try{if(x.startsWith(aC)){const C=x.replace(aC,"");v.addEdge(C,x,{color:_Ne,size:MNe,type:"arrow"})}}catch(C){console.error(C),u(!0)}})},[d]),g=l.useCallback((v,y)=>{if(r5.assign(v),y!=="circular"){if(y==="forceatlas"){const S=new CNe(v,{settings:{gravity:10},onConverged(){console.log("converged")}});A0=S,S.start()}else if(y==="forceatlas2"){const S=l5.inferSettings(v);l5.assign(v,{iterations:600,settings:S})}}},[]);return l.useEffect(()=>{const v=new yr,y=t.reduce((x,C)=>(x[C.id]=e.find(E=>E.id===C.hostid)??N3,x),{}),S=structuredClone(t).sort((x,C)=>x.id.localeCompare(C.id)),b=structuredClone(r).sort((x,C)=>x.clientid.localeCompare(C.clientid));return f(v,S,y,b),p(v,S,y,b),g(v,"circular"),r5.assign(v),o(v),()=>{A0&&A0.isRunning()&&A0.kill()}},[g,r,e,o,t,p,f]),l.useEffect(()=>{const v="network-graph-warning-icon";let y=window.document.querySelector(`#${v}`);y||(y=window.document.createElement("img"),y.id=v,y.src="/icons/warning.svg",y.alt="warning",y.title="Graph may not be accurate. This is usually due to nodes or clients with the same IDs. Please ensure each node and client has a unique ID and refresh the page.",y.style.color="yellow",y.style.position="absolute",y.style.top="0rem",y.style.right="2rem",y.style.zIndex="1000",y.style.width="30px",y.style.height="30px",y.style.display="none",window.document.querySelector(`#${o9}`)?.appendChild(y)),c?y.style.display="block":y.style.display="none"},[c]),null}function FNe({relay:e,isOpen:t,onUpdateRelay:n,onCancel:r,networkId:o}){const[i,a]=er.useNotification(),s=tn(),{token:c}=Uo.useToken(),u=s.serverConfig?.IsEE==="yes",[d]=Xe.useForm(),[f,p]=l.useState(!1),[g,v]=l.useState(e.relaynodes??[]),[y,S]=l.useState(""),b=l.useCallback(T=>io(T)==="error"?h.jsx(Un,{status:"error",text:"Error"}):io(T)==="warning"?h.jsx(Un,{status:"warning",text:"Unstable"}):io(T)==="healthy"?h.jsx(Un,{status:"success",text:"Healthy"}):h.jsx(Un,{status:"processing",text:"Unknown"}),[]),x=l.useMemo(()=>s.nodes.filter(T=>T.network===o).map(T=>Hr(T,s.hostsCommonDetails)),[o,s.hostsCommonDetails,s.nodes]),C=l.useMemo(()=>Hr(e,s.hostsCommonDetails),[e,s.hostsCommonDetails]),E=l.useMemo(()=>x.filter(T=>T.name?.toLowerCase().includes(y.toLowerCase())),[x,y]),$=l.useMemo(()=>[{title:"Select host",dataIndex:"name",render(T){return h.jsx(ce.Link,{children:T})}},{title:"Address",dataIndex:"address",render(T,D){const j=`${D.address??""}, ${D.address6??""}`;return h.jsx(Io,{title:j,children:j})}}],[]),O=l.useMemo(()=>$,[$]),I=T=>Ql(T)?!1:T.relayedby?T.relayedby===e.id:!0,N=()=>{d.resetFields(),S(""),v(e.relaynodes??[])},_=async()=>{try{await d.validateFields(),p(!0);const T=[...new Set(g)];let D;T.length>0?D=(await ur.updateNode(e.id,o,{...e,relaynodes:g})).data:D=(await ur.deleteRelay(e.id,o)).data,s.updateNode(e.id,D),n(D),i.success({message:"Relay updated"})}catch(T){i.error({message:"Failed to update relay",description:Qt(T)})}finally{p(!1)}};return h.jsxs(fn,{title:h.jsx("span",{style:{fontSize:"1.25rem",fontWeight:"bold"},children:"Update Relay"}),open:u&&t,onCancel:T=>{N(),r?.(T)},footer:null,className:"CustomModal UpdateRelayModal",style:{minWidth:"50vw"},children:[h.jsx(Jt,{style:{margin:"0px 0px 2rem 0px"}}),h.jsxs(Xe,{name:"update-relay-form",form:d,layout:"vertical",children:[h.jsxs("div",{className:"CustomModalBody",children:[h.jsxs(Oe,{style:{border:`1px solid ${c.colorBorder}`,padding:".5rem",borderRadius:"8px"},children:[h.jsx(q,{span:6,children:C?.name??""}),h.jsx(q,{span:6,children:C?.address??""}),h.jsx(q,{span:6,children:C?.endpointip??""}),h.jsx(q,{span:6,children:C&&b(C)})]}),h.jsx(Xe.Item,{label:"Select hosts to relay",required:!0,style:{marginTop:"1rem"},"data-nmui-intercom":"update-relay-form_relayed",children:h.jsx(Lr,{placeholder:"Select hosts to relay",dropdownRender:()=>h.jsxs("div",{style:{padding:".5rem"},children:[h.jsx(Oe,{style:{marginBottom:"1rem"},children:h.jsx(q,{span:8,children:h.jsx(Ut,{placeholder:"Search host...",value:y,onChange:T=>S(T.target.value),prefix:h.jsx(_r,{})})})}),h.jsx(Oe,{children:h.jsx(q,{span:24,children:h.jsx(Zn,{size:"small",columns:O,rowKey:"id",dataSource:[...E.filter(T=>T.id!==e.id)].sort((T,D)=>Ql(T)===Ql(D)?0:Ql(T)?1:-1),onRow:T=>({onClick:()=>{I(T)&&v(D=>{const j=new Set(D);return j.has(T.id)?j.delete(T.id):j.add(T.id),[...j]})}}),rowClassName:T=>I(T)?g.includes(T.id)?"selected-row":"":"unavailable-row"})})})]})})}),g.map(T=>h.jsxs(Oe,{style:{border:`1px solid ${c.colorBorder}`,padding:".5rem",borderRadius:"8px",marginBottom:".5rem"},children:[h.jsx(q,{span:6,children:x.find(D=>D.id===T)?.name??""}),h.jsx(q,{span:6,children:x.find(D=>D.id===T)?.address??""}),h.jsx(q,{span:6,children:x.find(D=>D.id===T)?.endpointip??""}),h.jsx(q,{span:5,children:b(x.find(D=>D.id===T)??_3)}),h.jsx(q,{span:1,style:{textAlign:"right"},children:h.jsx(ut,{danger:!0,size:"small",type:"text",title:"Unselect",icon:h.jsx(No,{}),onClick:()=>{v(D=>D.filter(j=>j!==T))}})})]},T))]}),h.jsx(Jt,{style:{margin:"0px 0px 2rem 0px"}}),h.jsx("div",{className:"CustomModalBody",children:h.jsx(Oe,{children:h.jsx(q,{xs:24,style:{textAlign:"left"},children:h.jsx(ut,{type:"primary",onClick:_,loading:f,danger:g.length===0,"data-nmui-intercom":"update-relay-form_submitbtn",children:g.length===0?"Delete Relay":"Update Relay"})})})})]}),a]})}function zNe({isOpen:e,onNetworkUpdated:t,onCancel:n,networkId:r}){const[o,i]=er.useNotification(),a=tn(),[s,c]=l.useState(""),u=l.useMemo(()=>a.networks.find(g=>g.netid===r),[r,a.networks]),d=l.useMemo(()=>{const g=new Set(a.hosts);return a.nodes.forEach(v=>{if(v.network===r){const y=a.hosts.find(S=>S.id===v.hostid);y&&g.delete(y)}}),[...g]},[r,a.hosts,a.nodes]),f=l.useMemo(()=>d.filter(g=>g.name.toLocaleLowerCase().includes(s.toLocaleLowerCase())),[s,d]),p=l.useCallback(g=>{fn.confirm({title:"Connect host to network",content:`Are you sure you want to connect ${g.name} to network ${r}?`,async onOk(){try{if(!r)return;await wa.updateHostsNetworks(g.id,r,"join"),o.success({message:"Successfully connected to network",description:`${g.name} is now connected to network ${r}. This may take some seconds to reflect.`})}catch(v){o.error({message:"Failed to join network",description:Qt(v)})}}})},[r,o]);return h.jsxs(fn,{title:h.jsxs("span",{style:{fontSize:"1.25rem",fontWeight:"bold"},children:["Add Hosts to network ",u?.netid??""]}),open:e,onCancel:g=>{n?.(g)},footer:null,className:"CustomModal AddHostsToNetworkModal",style:{minWidth:"50vw"},children:[h.jsx(Jt,{style:{margin:"0px 0px 2rem 0px"}}),h.jsxs(Xe,{name:"add-hosts-to-networks-form",layout:"vertical",children:[h.jsxs("div",{className:"CustomModalBody",children:[h.jsx(Oe,{children:h.jsx(q,{xs:24,children:h.jsx(Ut,{placeholder:"Search host",value:s,onChange:g=>c(g.target.value),prefix:h.jsx(_r,{})})})}),h.jsx(Oe,{style:{marginTop:"1rem"},children:h.jsx(q,{xs:24,children:h.jsx(Zn,{size:"small",dataSource:f,columns:[{title:"Host",dataIndex:"name",sorter:(g,v)=>g.name.localeCompare(v.name),defaultSortOrder:"ascend"},{title:"Endpoint",dataIndex:"endpointip"},{title:"Public Port",dataIndex:"listenport"},{title:"Version",dataIndex:"version"},{align:"right",render(g,v){return h.jsx(ut,{size:"small",onClick:()=>p(v),children:"Connect"})}}],rowKey:"id"})})})]}),h.jsx(Jt,{style:{margin:"0px 0px 2rem 0px"}}),h.jsx("div",{className:"CustomModalBody",children:h.jsx(Oe,{children:h.jsx(q,{xs:24,style:{textAlign:"left"},children:h.jsx(ut,{type:"primary",onClick:g=>{t(),n?.(g)},children:"Close"})})})})]}),i]})}function BNe({isOpen:e,onCreateIngress:t,onCancel:n,networkId:r}){const[o]=Xe.useForm(),[i,a]=er.useNotification(),s=tn(),[c,u]=l.useState(!1),[d,f]=l.useState(!1),[p,g]=l.useState(null),[v,y]=l.useState(""),S=l.useMemo(()=>s.nodes.filter(I=>I.network===r).map(I=>Hr(I,s.hostsCommonDetails)),[r,s.hostsCommonDetails,s.nodes]),b=l.useMemo(()=>S.filter(I=>(I.name?.toLowerCase().includes(v.toLowerCase())||I.address?.toLowerCase().includes(v.toLowerCase()))&&I.isingressgateway===!1),[v,S]),x=l.useMemo(()=>p&&s.hosts.find(I=>I.id===p.hostid)||null,[p,s.hosts]),C=l.useCallback(I=>io(I)==="error"?h.jsx(Un,{status:"error",text:"Error"}):io(I)==="warning"?h.jsx(Un,{status:"warning",text:"Unstable"}):io(I)==="healthy"?h.jsx(Un,{status:"success",text:"Healthy"}):h.jsx(Un,{status:"processing",text:"Unknown"}),[]),E=l.useMemo(()=>[{title:"Host name",dataIndex:"name",render(I){return h.jsx(ce.Link,{children:I})}},{title:"Address",dataIndex:"address"},{title:"OS",dataIndex:"os"},{title:"Health status",render(I,N){return C(N)}}],[C]),$=()=>{o.resetFields(),g(null),f(!1),y(""),u(!1)},O=async()=>{try{const I=await o.validateFields();u(!0),await ur.createIngressNode(I.node.id,r,{failover:!1,extclientdns:I.extclientdns}),$(),i.success({message:"Client gateway created"}),t()}catch(I){i.error({message:"Failed to create client gateway",description:Qt(I)})}finally{u(!1)}};return l.useEffect(()=>{p||o.setFieldValue("node",void 0)},[o,p]),h.jsxs(fn,{title:h.jsx("span",{style:{fontSize:"1.25rem",fontWeight:"bold"},children:"Add Client Gateway"}),open:e,onCancel:I=>{$(),n?.(I)},footer:null,className:"CustomModal",style:{minWidth:"50vw"},children:[h.jsx(Jt,{style:{margin:"0px 0px 2rem 0px"}}),h.jsxs(Xe,{name:"add-ingress-form",form:o,layout:"vertical",children:[h.jsx("div",{className:"",style:{maxHeight:"60vh",overflow:"auto"},children:h.jsxs("div",{className:"CustomModalBody",children:[h.jsx(Xe.Item,{label:"Host",name:"node",rules:[{required:!0}],style:{marginBottom:"0px"},"data-nmui-intercom":"add-ingress-form_node",children:h.jsx(Lr,{open:d,placeholder:"Select a host as gateway",value:p?.name,onDropdownVisibleChange:I=>f(I),dropdownRender:()=>h.jsxs("div",{style:{padding:".5rem"},children:[h.jsx(Oe,{style:{marginBottom:"1rem"},children:h.jsx(q,{span:8,children:h.jsx(Ut,{placeholder:"Search host",value:v,onChange:I=>y(I.target.value),prefix:h.jsx(_r,{})})})}),h.jsx(Oe,{children:h.jsx(q,{span:24,children:h.jsx(Zn,{size:"small",columns:E,dataSource:b,rowKey:"id",onRow:I=>({onClick:()=>{g(I),o.setFieldValue("node",{...I,label:I.name}),f(!1)}})})})})]})})}),!!p&&h.jsxs(h.Fragment,{children:[h.jsxs(Oe,{style:{padding:".5rem",borderRadius:"8px",marginTop:"1rem"},children:[h.jsx(q,{span:24,style:{marginBottom:".5rem"},children:h.jsx(ce.Text,{children:h.jsx("small",{children:"Selected host details"})})}),h.jsx(q,{span:6,children:p.name??""}),h.jsxs(q,{span:6,children:[p.address??"",", ",p.address6??""]}),h.jsx(q,{span:6,children:p.os??""}),h.jsx(q,{span:5,children:C(p)}),h.jsx(q,{span:1,style:{textAlign:"right"},children:h.jsx(ut,{danger:!0,size:"small",type:"text",icon:h.jsx(No,{}),onClick:()=>{o.setFieldValue("gatewayId",""),g(null)}})})]}),!!x&&c9(x)&&h.jsx(Oe,{style:{padding:".5rem",borderRadius:"8px"},children:h.jsx(q,{span:24,children:h.jsx(cu,{type:"warning",message:"The selected host is behind a NAT gateway, which may affect reachability.",showIcon:!0})})})]}),h.jsx(Xe.Item,{label:"Default client DNS",name:"extclientdns",style:{marginTop:"1rem"},"data-nmui-intercom":"add-ingress-form_extclientdns",children:h.jsx(Ut,{placeholder:"Default DNS for associated external clients"})})]})}),h.jsx(Jt,{style:{margin:"0px 0px 2rem 0px"}}),h.jsx("div",{className:"CustomModalBody",children:h.jsx(Oe,{children:h.jsx(q,{xs:24,style:{textAlign:"right"},children:h.jsx(ut,{type:"primary",onClick:O,loading:c,children:"Create Gateway"})})})})]}),a]})}function HNe({isOpen:e,onUpdateIngress:t,onCancel:n,ingress:r,networkId:o}){const[i]=Xe.useForm(),[a,s]=er.useNotification(),c=tn().updateNode,[u,d]=l.useState(!1),f=()=>{i.resetFields()},p=async()=>{try{const g=await i.validateFields();d(!0);const v=(await ur.updateNode(r.id,o,{...r,ingressdns:g.ingressdns})).data;c(r.id,v),a.success({message:"Ingress gateway updated"}),t()}catch(g){a.error({message:"Failed to update ingress gateway",description:Qt(g)})}finally{d(!1)}};return h.jsxs(fn,{title:h.jsx("span",{style:{fontSize:"1.25rem",fontWeight:"bold"},children:"Update Ingress"}),open:e,onCancel:g=>{f(),n?.(g)},footer:null,className:"CustomModal",style:{minWidth:"50vw"},children:[h.jsx(Jt,{style:{margin:"0px 0px 2rem 0px"}}),h.jsxs(Xe,{name:"update-ingress-form",form:i,layout:"vertical",initialValues:r,children:[h.jsx("div",{className:"",style:{maxHeight:"60vh",overflow:"auto"},children:h.jsx("div",{className:"CustomModalBody",children:h.jsx(Xe.Item,{name:"ingressdns",label:"Default External client DNS","data-nmui-intercom":"update-ingress-form_ingressdns",children:h.jsx(Ut,{placeholder:"DNS"})})})}),h.jsx(Jt,{style:{margin:"0px 0px 2rem 0px"}}),h.jsx("div",{className:"CustomModalBody",children:h.jsx(Oe,{children:h.jsx(q,{xs:24,style:{textAlign:"right"},children:h.jsx(ut,{type:"primary",onClick:p,loading:u,children:"Update Ingress"})})})})]}),s]})}function UNe({isOpen:e,onUpdateClient:t,onCancel:n,networkId:r,client:o}){const[i]=Xe.useForm(),[a,s]=er.useNotification(),[c,u]=l.useState(!1),d=()=>{i.resetFields()},f=async()=>{try{const p=await i.validateFields();u(!0);const g=(await ur.updateExternalClient(o.clientid,r,{...o,...p})).data;t(g),a.success({message:"External client updated"})}catch(p){a.error({message:"Failed to update client",description:Qt(p)})}finally{u(!1)}};return h.jsxs(fn,{title:h.jsx("span",{style:{fontSize:"1.25rem",fontWeight:"bold"},children:"Update Client"}),open:e,onCancel:p=>{d(),n&&n(p)},footer:null,className:"CustomModal UpdateClientModal",style:{minWidth:"50vw"},children:[h.jsx(Jt,{style:{margin:"0px 0px 2rem 0px"}}),h.jsxs(Xe,{name:"update-client-form",form:i,layout:"vertical",initialValues:o,children:[h.jsxs("div",{className:"CustomModalBody",children:[h.jsx(Xe.Item,{label:"Client ID (Optional)",name:"clientid",rules:[{min:5,max:32}],"data-nmui-intercom":"update-client-form_clientid",children:h.jsx(Ut,{placeholder:"Unique name of client"})}),h.jsx(uc,{ghost:!0,size:"small",children:h.jsxs(uc.Panel,{header:h.jsx(ce.Text,{style:{marginTop:"0rem"},children:"Advanced Settings"}),children:[h.jsx(Xe.Item,{label:"Public Key (Optional)",name:"publickey","data-nmui-intercom":"update-client-form_publickey",children:h.jsx(Ut,{placeholder:"Public key"})}),h.jsx(Xe.Item,{label:"DNS (Optional)",name:"dns","data-nmui-intercom":"update-client-form_dns",children:h.jsx(Ut,{placeholder:"Client DNS"})}),h.jsx(Xe.Item,{label:"Additional Addresses (Optional)",name:"extraallowedips","data-nmui-intercom":"update-client-form_extraallowedips",children:h.jsx(Lr,{mode:"tags",placeholder:"Additional IP Addresses",clearIcon:!0})})]},"details")})]}),h.jsx(Jt,{style:{margin:"0px 0px 2rem 0px"}}),h.jsx("div",{className:"CustomModalBody",children:h.jsx(Oe,{children:h.jsx(q,{xs:24,style:{textAlign:"right"},children:h.jsx(ut,{type:"primary",onClick:f,loading:c,"data-nmui-intercom":"update-client-form_submitbtn",children:"Update Client"})})})})]}),s]})}function rz({isOpen:e,node:t,onUpdateNode:n,onCancel:r}){const[o]=Xe.useForm(),i=tn(),a=bi(),s=i.updateNode,c=Xe.useWatch("isstatic",o),u=i.networks.find(v=>v.netid===t.network),d=i.hosts.find(v=>v.id===t.hostid),f=()=>{o.resetFields()},p=async()=>{try{const v=await o.validateFields(),y=(await ur.updateNode(t.id,t.network,{...t,...v,expdatetime:Math.floor(new Date(v.expdatetime).getTime()/1e3)})).data;er.success({message:`Host ${t.id} updated`}),s(y.id,y),n(y)}catch(v){er.error({message:"Failed to update host",description:Qt(v)})}},g=()=>({disabledMinutes:()=>Array.from({length:60},(v,y)=>y+1)});return h.jsxs(fn,{title:h.jsxs(ce.Title,{style:{fontSize:"1.25rem",fontWeight:"bold"},children:["Update host's Network Settings",h.jsx("br",{}),h.jsxs("small",{children:["(ID: ",t.id,")"]})]}),open:e,onCancel:v=>{f(),r?.(v)},footer:null,centered:!0,className:"CustomModal",children:[h.jsx(Jt,{style:{margin:"0px 0px 2rem 0px"}}),h.jsxs(Xe,{name:"update-node-form",form:o,layout:"vertical",initialValues:{...t,expdatetime:Do(t.expdatetime*1e3),endpointip:d?.endpointip??""},children:[h.jsx("div",{className:"scrollable-modal-body",children:h.jsxs("div",{className:"CustomModalBody",children:[h.jsx(Xe.Item,{label:"IP Address (IPv4)",name:"address",rules:[{required:!0}],"data-nmui-intercom":"update-node-form_address",children:h.jsx(Ut,{placeholder:"IPv4 address"})}),u?.isipv6&&h.jsx(Xe.Item,{label:"IP Address (IPv6)",name:"address6",rules:[{required:!0}],"data-nmui-intercom":"update-node-form_address6",children:h.jsx(Ut,{placeholder:"IPv6 appress"})}),h.jsx(Xe.Item,{label:"Local Address",name:"localaddress","data-nmui-intercom":"update-node-form_localaddress",children:h.jsx(Lr,{placeholder:"Local address",options:d?.interfaces?.map(v=>({label:`${v.name} (${v.addressString})`,value:v.addressString}))??[]})}),h.jsx(Xe.Item,{label:"Persistent Keepalive",name:"persistentkeepalive",rules:[{required:!0}],"data-nmui-intercom":"update-node-form_persistentkeepalive",children:h.jsx(vm,{placeholder:"Persistent keepalive",min:0,style:{width:"100%"}})}),h.jsx(Xe.Item,{label:"Expiration Date",name:"expdatetime",rules:[{required:!0}],"data-nmui-intercom":"update-node-form_expdatetime",children:h.jsx(RL,{showTime:!0,disabledTime:g,style:{width:"100%"},clearIcon:!1,format:hSe})}),h.jsx(Xe.Item,{label:"Endpoint IP",name:"endpointip",rules:[{required:c}],"data-nmui-intercom":"update-node-form_endpointip",children:h.jsx(Ut,{placeholder:"Endpoint IP",disabled:!c,title:"To edit, click Global Host Settings below"})}),h.jsx(Xe.Item,{label:"Default ACL Rule",name:"defaultacl",rules:[{required:!0}],"data-nmui-intercom":"update-node-form_defaultacl",children:h.jsx(Lr,{placeholder:"ACL Rule",options:[{label:"Allow",value:"yes"},{label:"Deny",value:"no"},{label:"Unset",value:"unset"}]})}),h.jsx(Xe.Item,{label:"Connected",name:"connected",valuePropName:"checked",rules:[{required:!0}],"data-nmui-intercom":"update-node-form_connected",children:h.jsx(po,{})}),h.jsx(Xe.Item,{label:"DNS On",name:"dnson",valuePropName:"checked",rules:[{required:!0}],"data-nmui-intercom":"update-node-form_dnson",children:h.jsx(po,{})})]})}),h.jsx(Jt,{style:{margin:"0px 0px 2rem 0px"}}),h.jsx("div",{className:"CustomModalBody",children:h.jsxs(Oe,{children:[h.jsx(q,{xs:12,children:h.jsx(Xe.Item,{noStyle:!0,"data-nmui-intercom":"update-node-form_editglobalhost",children:h.jsx(ut,{onClick:()=>a(Wf(t.hostid,{edit:"true"})),children:"Go to Global Host Settings"})})}),h.jsx(q,{xs:12,style:{textAlign:"right"},children:h.jsx(Xe.Item,{noStyle:!0,"data-nmui-intercom":"update-node-form_submit",children:h.jsx(ut,{type:"primary",onClick:p,children:"Update Host"})})})]})})]})]})}function WNe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ky(e,t)}var u5=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function VNe(e,t){return!!(e===t||u5(e)&&u5(t))}function KNe(e,t){if(e.length!==t.length)return!1;for(var n=0;n=t?e.call(null):o.id=requestAnimationFrame(r)}var o={id:requestAnimationFrame(r)};return o}var lC=-1;function qNe(e){if(e===void 0&&(e=!1),lC===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),lC=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return lC}var tf=null;function h5(e){if(e===void 0&&(e=!1),tf===null||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?tf="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?tf="negative":tf="positive-ascending"),document.body.removeChild(t),tf}return tf}var XNe=150,QNe=function(t){var n=t.columnIndex;t.data;var r=t.rowIndex;return r+":"+n};function ZNe(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,c=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,d=e.getRowHeight,f=e.getRowOffset,p=e.getRowStartIndexForOffset,g=e.getRowStopIndexForStartIndex,v=e.initInstanceProps,y=e.shouldResetStyleCacheOnItemSizeChange,S=e.validateProps;return t=function(b){WNe(x,b);function x(E){var $;return $=b.call(this,E)||this,$._instanceProps=v($.props,$o($)),$._resetIsScrollingTimeoutId=null,$._outerRef=void 0,$.state={instance:$o($),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:typeof $.props.initialScrollLeft=="number"?$.props.initialScrollLeft:0,scrollTop:typeof $.props.initialScrollTop=="number"?$.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},$._callOnItemsRendered=void 0,$._callOnItemsRendered=sC(function(O,I,N,_,T,D,j,P){return $.props.onItemsRendered({overscanColumnStartIndex:O,overscanColumnStopIndex:I,overscanRowStartIndex:N,overscanRowStopIndex:_,visibleColumnStartIndex:T,visibleColumnStopIndex:D,visibleRowStartIndex:j,visibleRowStopIndex:P})}),$._callOnScroll=void 0,$._callOnScroll=sC(function(O,I,N,_,T){return $.props.onScroll({horizontalScrollDirection:N,scrollLeft:O,scrollTop:I,verticalScrollDirection:_,scrollUpdateWasRequested:T})}),$._getItemStyle=void 0,$._getItemStyle=function(O,I){var N=$.props,_=N.columnWidth,T=N.direction,D=N.rowHeight,j=$._getItemStyleCache(y&&_,y&&T,y&&D),P=O+":"+I,M;if(j.hasOwnProperty(P))M=j[P];else{var A=n($.props,I,$._instanceProps),B=T==="rtl";j[P]=M={position:"absolute",left:B?void 0:A,right:B?A:void 0,top:f($.props,O,$._instanceProps),height:d($.props,O,$._instanceProps),width:i($.props,I,$._instanceProps)}}return M},$._getItemStyleCache=void 0,$._getItemStyleCache=sC(function(O,I,N){return{}}),$._onScroll=function(O){var I=O.currentTarget,N=I.clientHeight,_=I.clientWidth,T=I.scrollLeft,D=I.scrollTop,j=I.scrollHeight,P=I.scrollWidth;$.setState(function(M){if(M.scrollLeft===T&&M.scrollTop===D)return null;var A=$.props.direction,B=T;if(A==="rtl")switch(h5()){case"negative":B=-T;break;case"positive-descending":B=P-_-T;break}B=Math.max(0,Math.min(B,P-_));var F=Math.max(0,Math.min(D,j-N));return{isScrolling:!0,horizontalScrollDirection:M.scrollLeftM?H:0,G=W>j?H:0;this.scrollTo({scrollLeft:N!==void 0?c(this.props,N,I,B,this._instanceProps,G):B,scrollTop:_!==void 0?u(this.props,_,I,F,this._instanceProps,K):F})},C.componentDidMount=function(){var $=this.props,O=$.initialScrollLeft,I=$.initialScrollTop;if(this._outerRef!=null){var N=this._outerRef;typeof O=="number"&&(N.scrollLeft=O),typeof I=="number"&&(N.scrollTop=I)}this._callPropsCallbacks()},C.componentDidUpdate=function(){var $=this.props.direction,O=this.state,I=O.scrollLeft,N=O.scrollTop,_=O.scrollUpdateWasRequested;if(_&&this._outerRef!=null){var T=this._outerRef;if($==="rtl")switch(h5()){case"negative":T.scrollLeft=-I;break;case"positive-ascending":T.scrollLeft=I;break;default:var D=T.clientWidth,j=T.scrollWidth;T.scrollLeft=j-D-I;break}else T.scrollLeft=Math.max(0,I);T.scrollTop=Math.max(0,N)}this._callPropsCallbacks()},C.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&f5(this._resetIsScrollingTimeoutId)},C.render=function(){var $=this.props,O=$.children,I=$.className,N=$.columnCount,_=$.direction,T=$.height,D=$.innerRef,j=$.innerElementType,P=$.innerTagName,M=$.itemData,A=$.itemKey,B=A===void 0?QNe:A,F=$.outerElementType,H=$.outerTagName,W=$.rowCount,V=$.style,K=$.useIsScrolling,G=$.width,re=this.state.isScrolling,Q=this._getHorizontalRangeToRender(),fe=Q[0],se=Q[1],oe=this._getVerticalRangeToRender(),ie=oe[0],ge=oe[1],ve=[];if(N>0&&W)for(var he=ie;he<=ge;he++)for(var be=fe;be<=se;be++)ve.push(l.createElement(O,{columnIndex:be,data:M,isScrolling:K?re:void 0,key:B({columnIndex:be,data:M,rowIndex:he}),rowIndex:he,style:this._getItemStyle(he,be)}));var ye=a(this.props,this._instanceProps),Ce=s(this.props,this._instanceProps);return l.createElement(F||H||"div",{className:I,onScroll:this._onScroll,ref:this._outerRefSetter,style:Re({position:"relative",height:T,width:G,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:_},V)},l.createElement(j||P||"div",{children:ve,ref:D,style:{height:ye,pointerEvents:re?"none":void 0,width:Ce}}))},C._callPropsCallbacks=function(){var $=this.props,O=$.columnCount,I=$.onItemsRendered,N=$.onScroll,_=$.rowCount;if(typeof I=="function"&&O>0&&_>0){var T=this._getHorizontalRangeToRender(),D=T[0],j=T[1],P=T[2],M=T[3],A=this._getVerticalRangeToRender(),B=A[0],F=A[1],H=A[2],W=A[3];this._callOnItemsRendered(D,j,B,F,P,M,H,W)}if(typeof N=="function"){var V=this.state,K=V.horizontalScrollDirection,G=V.scrollLeft,re=V.scrollTop,Q=V.scrollUpdateWasRequested,fe=V.verticalScrollDirection;this._callOnScroll(G,re,K,fe,Q)}},C._getHorizontalRangeToRender=function(){var $=this.props,O=$.columnCount,I=$.overscanColumnCount,N=$.overscanColumnsCount,_=$.overscanCount,T=$.rowCount,D=this.state,j=D.horizontalScrollDirection,P=D.isScrolling,M=D.scrollLeft,A=I||N||_||1;if(O===0||T===0)return[0,0,0,0];var B=r(this.props,M,this._instanceProps),F=o(this.props,B,M,this._instanceProps),H=!P||j==="backward"?Math.max(1,A):1,W=!P||j==="forward"?Math.max(1,A):1;return[Math.max(0,B-H),Math.max(0,Math.min(O-1,F+W)),B,F]},C._getVerticalRangeToRender=function(){var $=this.props,O=$.columnCount,I=$.overscanCount,N=$.overscanRowCount,_=$.overscanRowsCount,T=$.rowCount,D=this.state,j=D.isScrolling,P=D.verticalScrollDirection,M=D.scrollTop,A=N||_||I||1;if(O===0||T===0)return[0,0,0,0];var B=p(this.props,M,this._instanceProps),F=g(this.props,B,M,this._instanceProps),H=!j||P==="backward"?Math.max(1,A):1,W=!j||P==="forward"?Math.max(1,A):1;return[Math.max(0,B-H),Math.max(0,Math.min(T-1,F+W)),B,F]},x}(l.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var JNe=function(t,n){t.children,t.direction,t.height,t.innerTagName,t.outerTagName,t.overscanColumnsCount,t.overscanCount,t.overscanRowsCount,t.width,n.instance},p5=50,oz=function(t,n){var r=t.rowCount,o=n.rowMetadataMap,i=n.estimatedRowHeight,a=n.lastMeasuredRowIndex,s=0;if(a>=r&&(a=r-1),a>=0){var c=o[a];s=c.offset+c.size}var u=r-a-1,d=u*i;return s+d},iz=function(t,n){var r=t.columnCount,o=n.columnMetadataMap,i=n.estimatedColumnWidth,a=n.lastMeasuredColumnIndex,s=0;if(a>=r&&(a=r-1),a>=0){var c=o[a];s=c.offset+c.size}var u=r-a-1,d=u*i;return s+d},Vl=function(t,n,r,o){var i,a,s;if(t==="column"?(i=o.columnMetadataMap,a=n.columnWidth,s=o.lastMeasuredColumnIndex):(i=o.rowMetadataMap,a=n.rowHeight,s=o.lastMeasuredRowIndex),r>s){var c=0;if(s>=0){var u=i[s];c=u.offset+u.size}for(var d=s+1;d<=r;d++){var f=a(d);i[d]={offset:c,size:f},c+=f}t==="column"?o.lastMeasuredColumnIndex=r:o.lastMeasuredRowIndex=r}return i[r]},m5=function(t,n,r,o){var i,a;t==="column"?(i=r.columnMetadataMap,a=r.lastMeasuredColumnIndex):(i=r.rowMetadataMap,a=r.lastMeasuredRowIndex);var s=a>0?i[a].offset:0;return s>=o?az(t,n,r,a,0,o):e_e(t,n,r,Math.max(0,a),o)},az=function(t,n,r,o,i,a){for(;i<=o;){var s=i+Math.floor((o-i)/2),c=Vl(t,n,s,r).offset;if(c===a)return s;ca&&(o=s-1)}return i>0?i-1:0},e_e=function(t,n,r,o,i){for(var a=t==="column"?n.columnCount:n.rowCount,s=1;o=p-c&&i<=f+c?o="auto":o="center"),o){case"start":return f;case"end":return p;case"center":return Math.round(p+(f-p)/2);case"auto":default:return i>=p&&i<=f?i:p>f||i!p).length,s=t.map(p=>p.width?p:{...p,width:Math.floor(r/a)}),c=l.useRef(),[u]=l.useState(()=>{const p={};return Object.defineProperty(p,"scrollLeft",{get:()=>c.current?c.current?.state?.scrollLeft:null,set:g=>{c.current&&c.current.scrollTo({scrollLeft:g})}}),p}),d=()=>{c.current?.resetAfterIndices({columnIndex:0,shouldForceUpdate:!0})};l.useEffect(()=>d,[r]);const f=(p,{scrollbarSize:g,ref:v,onScroll:y})=>{v.current=u;const S=p.length*54;return h.jsx(t_e,{ref:c,className:"virtual-grid",columnCount:s.length,columnWidth:b=>{const{width:x}=s[b];return S>Number(n.y)&&b===s.length-1?Number(x)-g-1:Number(x)},height:Number(n.y),rowCount:p.length,rowHeight:()=>54,width:r,onScroll:({scrollLeft:b})=>{y({scrollLeft:b})},children:({columnIndex:b,rowIndex:x,style:C})=>h.jsx("div",{className:ne("virtual-table-cell",{"virtual-table-cell-last":b===s.length-1}),style:{...C,boxSizing:"border-box",padding:i.padding,borderBottom:`${i.lineWidth}px ${i.lineType} ${i.colorSplit}`,background:i.colorBgContainer},children:p[x][s[b].dataIndex]})})};return h.jsx(ki,{onResize:({width:p})=>{o(p)},children:h.jsx(Zn,{...e,className:"virtual-table",columns:s,pagination:!1,components:{body:f}})})}function r_e({isOpen:e,networkId:t,ingress:n,onCancel:r}){const[o,i]=er.useNotification(),[a,s]=l.useState(!1),[c,u]=l.useState([]),[d,f]=l.useState(""),p=tn(),[g,v]=l.useState([]),y=p.serverConfig?.IsEE==="yes",S=l.useCallback(async()=>{try{s(!0);const $=(await na.getUsers()).data,O=(await na.getIngressUsers(n.id)).data.users,I=$.filter(N=>!N.isadmin&&!N.issuperadmin);u(I),v(O)}catch($){o.error({message:"Failed to load users",description:Qt($)})}finally{s(!1)}},[o,n.id]),b=l.useCallback($=>g.find(N=>N.username===$.username)?.remote_gw_ids?.[n.id]?"Remove":"Attach",[g,n.id]),x=l.useCallback(async $=>{fn.confirm({title:`Are you sure you want to ${b($).toLowerCase()} ${$.username}?`,onOk:async()=>{const I=g.find(N=>N.username===$.username)?.remote_gw_ids?.[n.id];try{I?await na.removeUserFromIngress($.username,n.id):await na.attachUserToIngress($.username,n.id),S()}catch(N){o.error({message:"Failed to add/remove user",description:Qt(N)})}}})},[o,g,n.id,b,S]),C=l.useMemo(()=>[{title:"Username",dataIndex:"username",sorter($,O){return $.username.localeCompare(O.username)},defaultSortOrder:"ascend"},{title:"Actions",render($,O){return h.jsx(ce.Link,{onClick:I=>x(O),children:b(O)})}}],[b,x]),E=l.useMemo(()=>c.filter($=>$.username.toLowerCase().includes(d.trim().toLowerCase())),[c,d]);return l.useEffect(()=>{S()},[S,y]),h.jsxs(fn,{title:h.jsx("span",{style:{fontSize:"1.25rem",fontWeight:"bold"},children:"Add / Remove Users"}),open:e,onCancel:$=>{r?.($)},footer:null,className:"CustomModal",style:{minWidth:"50vw"},children:[h.jsxs(Oe,{className:"",style:{marginTop:"1rem",padding:"20px 24px"},children:[h.jsx(q,{xs:24,md:8,children:h.jsx(Ut,{size:"small",placeholder:"Search users",prefix:h.jsx(_r,{}),value:d,onChange:$=>f($.target.value),style:{marginBottom:"1rem"}})}),h.jsx(q,{xs:24,children:h.jsx(Zn,{columns:C,dataSource:E,rowKey:"username",loading:a,size:"small"})})]}),i]})}function o_e(e){const{networkId:t}=ix(),n=tn(),r=bi(),[o,i]=er.useNotification(),{token:a}=Uo.useToken(),s=n.fetchNodes,c=n.deleteNode,u=n.serverConfig?.IsEE==="yes",[d]=Xe.useForm(),f=Xe.useWatch("isipv4",d),p=Xe.useWatch("isipv6",d),[g,v]=l.useState(null),[y,S]=l.useState(!1),[b,x]=l.useState(!1),[C,E]=l.useState(""),[$,O]=l.useState(""),[I,N]=l.useState([]),[_,T]=l.useState(!1),[D,j]=l.useState({}),[P,M]=l.useState({}),[A,B]=l.useState({}),[F,H]=l.useState({}),[W,V]=l.useState(!1),[K,G]=l.useState([]),[re,Q]=l.useState(!1),[fe,se]=l.useState(null),[oe,ie]=l.useState(null),[ge,ve]=l.useState(""),[he,be]=l.useState(""),[ye,Ce]=l.useState(null),[Ee,je]=l.useState(!1),[De,_e]=l.useState(""),[Me,Ie]=l.useState(!1),[Fe,Ge]=l.useState(null),[ft,it]=l.useState(!1),[qe,at]=l.useState(""),[U,k]=l.useState(!1),[L,X]=l.useState(""),[ee,$e]=l.useState("connectivity-status"),[we,de]=l.useState(null),[Se,Ae]=l.useState(null),[We,Ke]=l.useState(null),[tt,pe]=l.useState(!1),[Te,ze]=l.useState(!1),[ke,et]=l.useState(!1),[mt,Ve]=l.useState(!1),[rt,Ue]=l.useState(!1),[Je,ht]=l.useState(!1),[gt,It]=l.useState(!1),[Et,xt]=l.useState(null),[pt,Nt]=l.useState(!1),[Pt,_t]=l.useState(!1),Ot=l.useMemo(()=>n.nodes.map(te=>Hr(te,n.hostsCommonDetails)).filter(te=>te.network===t).filter(te=>`${te?.name??""}${te.address}`.toLowerCase().includes(C.toLowerCase())),[n.nodes,n.hostsCommonDetails,t,C]),gn=l.useMemo(()=>Ot.filter(te=>te.isingressgateway).map(te=>Hr(te,n.hostsCommonDetails)),[Ot,n.hostsCommonDetails]),Mt=l.useMemo(()=>gn.filter(te=>te.name?.toLowerCase().includes(ge.toLowerCase())??!1),[gn,ge]),yt=l.useMemo(()=>K.filter(te=>oe?te.ingressgatewayid===oe.id:Mt.map(Ye=>Ye.id).includes(te.ingressgatewayid)).filter(te=>te.clientid?.toLowerCase().includes(he.toLowerCase())??!1).sort((te,ue)=>te.ingressgatewayid.localeCompare(ue.ingressgatewayid)),[K,Mt,he,oe]),st=l.useMemo(()=>Ot.filter(te=>te.isegressgateway).map(te=>Hr(te,n.hostsCommonDetails)),[Ot,n.hostsCommonDetails]),nt=l.useMemo(()=>st.filter(te=>te.name?.toLowerCase().includes(De.toLowerCase())??!1),[st,De]),Xt=l.useMemo(()=>ye?ye.egressgatewayranges.map(te=>({node:Hr(ye,n.hostsCommonDetails),range:te})):nt.flatMap(te=>te.egressgatewayranges.map(ue=>({node:te,range:ue}))).sort((te,ue)=>te.node.id.localeCompare(ue.node.id)),[ye,nt,n.hostsCommonDetails]),nn=l.useMemo(()=>{const te=new Map;return n.hosts.forEach(ue=>{te.set(ue.id,ue)}),n.nodes.filter(ue=>ue.network===t).map(ue=>te.get(ue.hostid)??N3)},[t,n.hosts,n.nodes]),$n=l.useMemo(()=>u?Ot.filter(te=>Ql(te)):[],[Ot,u]),Kn=l.useMemo(()=>$n.filter(te=>te.name?.toLowerCase().includes(qe.toLowerCase())??!1),[$n,qe]),Xn=l.useMemo(()=>Fe?Ot.filter(te=>te.relayedby===Fe.id):Ot.filter(te=>te.relayedby).sort((te,ue)=>te.relayedby.localeCompare(ue.relayedby)),[Ot,Fe]),Pr=l.useCallback(async(te,ue)=>{t&&fn.confirm({title:`Are you sure you want to ${ue?"enable":"disable"} client ${te.clientid}?`,content:`Client ${te.clientid} will be ${ue?"enabled":"disabled"}.`,onOk:async()=>{try{const Ye=(await ur.updateExternalClient(te.clientid,t,{...te,clientid:te.clientid,enabled:ue})).data;G(en=>en.map(pn=>pn.clientid===Ye.clientid?Ye:pn))}catch(Ye){o.error({message:"Failed to update client",description:Qt(Ye)})}}})},[t,o]),Gn=l.useMemo(()=>{const te={},ue=new Map;return Ot.forEach(Ye=>{ue.set(Ye.id,!0)}),Object.keys(D).forEach(Ye=>{ue.has(Ye)&&(te[Ye]=D[Ye])}),te},[D,Ot]),Vr=l.useMemo(()=>{const te=Ot.map(ue=>Hr(ue,n.hostsCommonDetails)).map(ue=>({type:"node",nodeOrClientId:ue.id,name:ue?.name??"",acls:Gn[ue.id]}));return pt&&K.forEach(ue=>{te.push({type:"client",nodeOrClientId:ue.clientid,name:ue.clientid,clientAcls:A[ue.clientid]})}),te.sort((ue,Ye)=>ue?.name?.localeCompare(Ye?.name??"")??0),te},[A,K,Gn,Ot,pt,n.hostsCommonDetails]),_o=l.useMemo(()=>Vr.filter(te=>te.name.toLowerCase().includes(L.toLowerCase())),[Vr,L]),Qn=l.useMemo(()=>Object.keys(we?.nodes??{}).map(te=>{const ue=we?.nodes[te].connectivity,Ye={nodeId:te,nodeName:we?.nodes[te].node_name??"",connectivity:{}};return Object.keys(ue??{}).reduce((en,pn)=>(en.connectivity[pn]=ue?.[pn].connected??!1,en),Ye),Ye}),[we?.nodes]),rn=l.useMemo(()=>Object.keys(we?.nodes??{}).map(te=>{const ue=we?.nodes[te].connectivity,Ye={nodeId:te,nodeName:we?.nodes[te].node_name??"",latency:{}};return Object.keys(ue??{}).reduce((en,pn)=>(en.latency[pn]=ue?.[pn].latency??0,en),Ye),Ye}),[we?.nodes]),Tt=l.useMemo(()=>Object.keys(we?.nodes??{}).map(te=>{const ue=we?.nodes[te].connectivity,Ye={nodeId:te,nodeName:we?.nodes[te].node_name??"",bytesSent:{}};return Object.keys(ue??{}).reduce((en,pn)=>(en.bytesSent[pn]=ue?.[pn].totalsent??0,en),Ye),Ye}),[we?.nodes]),On=l.useMemo(()=>Object.keys(we?.nodes??{}).map(te=>{const ue=we?.nodes[te].connectivity,Ye={nodeId:te,nodeName:we?.nodes[te].node_name??"",bytesReceived:{}};return Object.keys(ue??{}).reduce((en,pn)=>(en.bytesReceived[pn]=ue?.[pn].totalreceived??0,en),Ye),Ye}),[we?.nodes]),Nn=l.useMemo(()=>Object.keys(we?.nodes??{}).map(te=>{const ue=we?.nodes[te].connectivity,Ye={nodeId:te,nodeName:we?.nodes[te].node_name??"",uptime:{}};return Object.keys(ue??{}).reduce((en,pn)=>(en.uptime[pn]={fractionalUptime:ue?.[pn].uptime??0,totalFractionalUptime:ue?.[pn].totaltime??0,uptime:ue?.[pn].actualuptime??0,uptimePercent:ue?.[pn].percentup.toFixed(2)??0},en),Ye),Ye}),[we?.nodes]),Fr=l.useMemo(()=>Object.values(Se??{}),[Se]),bo=l.useCallback(async()=>{try{if(!t)return;const te=(await ll.getAcls(t)).data;j(te),M(te)}catch(te){te instanceof Ji&&o.error({message:"Error loading ACLs",description:Qt(te)})}},[t,o]),Jr=l.useCallback(te=>{xt(te),ht(!0)},[]),fr=l.useCallback(async()=>{try{if(!t)return;const te=(await ur.getNetworkExternalClients(t)).data??[];G(te);const ue={};te.forEach(Ye=>{ue[Ye.clientid]=Ye.deniednodeacls??{}}),H(ue),B(ue)}catch(te){o.error({message:"Error loading clients",description:Qt(te)})}},[t,o]),eo=l.useCallback(te=>{fn.confirm({title:`Delete client ${te.clientid}`,content:"Are you sure you want to delete this client?",onOk:async()=>{try{await ur.deleteExternalClient(te.clientid,te.network),G(ue=>ue.filter(Ye=>Ye.clientid!==te.clientid)),s()}catch(ue){o.error({message:"Error deleting Client",description:Qt(ue)})}}})},[o,s]),To=l.useCallback(te=>{se(te),Q(!0)},[]),wn=l.useCallback(te=>{fn.confirm({title:`Delete gateway ${Hr(te,n.hostsCommonDetails).name}`,content:"Are you sure you want to delete this gateway?",onOk:async()=>{try{await ur.deleteIngressNode(te.id,te.network),s(),fr()}catch(ue){ue instanceof Ji&&o.error({message:"Error deleting gateway",description:Qt(ue)})}}})},[fr,o,n.hostsCommonDetails,s]),hn=l.useCallback(te=>{fn.confirm({title:`Delete egress ${Hr(te,n.hostsCommonDetails).name}`,content:"Are you sure you want to delete this egress?",onOk:async()=>{try{await ur.deleteEgressNode(te.id,te.network),s()}catch(ue){ue instanceof Ji&&o.error({message:"Error deleting egress",description:Qt(ue)})}}})},[o,n.hostsCommonDetails,s]),$t=l.useCallback(te=>{fn.confirm({title:`Delete range ${te.range} from ${te.node?.name??""}`,content:"Are you sure you want to delete this external range?",onOk:async()=>{try{if(!t)return;const ue=new Set(te.node.egressgatewayranges),Ye=te.node.egressgatewaynatenabled;ue.delete(te.range),await ur.deleteEgressNode(te.node.id,t),ue.size>0&&await ur.createEgressNode(te.node.id,t,{ranges:[...ue],natEnabled:Ye?"yes":"no"}),n.fetchNodes()}catch(ue){ue instanceof Ji&&o.error({message:"Error deleting range",description:Qt(ue)})}}})},[t,o,n]),jt=l.useCallback(te=>{fn.confirm({title:`Delete DNS ${te.name}.${te.network}`,content:"Are you sure you want to delete this DNS?",onOk:async()=>{try{await ll.deleteDns(te.network,te.name),N(ue=>ue.filter(Ye=>Ye.name!==te.name)),o.success({message:"DNS deleted"})}catch(ue){ue instanceof Ji&&o.error({message:"Error deleting DNS",description:Qt(ue)})}}})},[o]),Rt=l.useCallback(te=>{t&&fn.confirm({title:`Delete relay ${te.name}`,content:"Are you sure you want to delete this relay?",onOk:async()=>{try{await ur.deleteRelay(te.id,t),n.fetchNodes(),o.success({message:"Relay deleted"})}catch(ue){o.error({message:"Error deleting relay",description:Qt(ue)})}}})},[o,n,t]),Ht=l.useCallback((te,ue)=>{t&&fn.confirm({title:`Stop ${te.name} from being relayed by ${ue.name}`,content:"Are you sure you want to stop this host from being relayed?",onOk:async()=>{try{const Ye=new Set([...ue.relaynodes??[]]);Ye.delete(te.id),Ye.size>0?await ur.updateNode(ue.id,t,{...ue,relaynodes:[...Ye]}):(await ur.deleteRelay(ue.id,t)).data,s()}catch(Ye){o.error({message:"Error updating relay",description:Qt(Ye)})}}})},[t,o,s]),on=l.useCallback(te=>{const ue=[{key:"edit",label:h.jsxs(ce.Text,{onClick:()=>{ie(te),Ve(!0)},children:[h.jsx(Of,{})," Edit"]}),onClick:Ye=>{Ye.domEvent.stopPropagation()}},{key:"delete",label:h.jsxs(ce.Text,{onClick:()=>wn(te),children:[h.jsx(Fl,{})," Delete"]}),onClick:Ye=>{Ye.domEvent.stopPropagation()}}];return u?[...[{key:"addremove",label:h.jsxs(ce.Text,{onClick:()=>{ie(te),It(!0)},children:[h.jsx(py,{})," Add / Remove Users"]}),onClick:en=>{en.domEvent.stopPropagation()}}],...ue]:ue},[]),_n=l.useMemo(()=>[{title:"Host name",dataIndex:"name",render(te){return h.jsx(ce.Link,{children:te})},sorter:(te,ue)=>te.name?.localeCompare(ue.name??"")??0,defaultSortOrder:"ascend"},{title:"Addresses",dataIndex:"address",render(te,ue){const Ye=`${ue.address}, ${ue.address6}`;return h.jsx(Io,{title:Ye,children:Ye})}},{title:"Endpoint",dataIndex:"endpointip"},{title:"Default Client DNS",dataIndex:"ingressdns"},{render(te,ue){return h.jsx(Mo,{placement:"bottomRight",menu:{items:on(ue)},children:h.jsx(ut,{type:"text",icon:h.jsx(Ya,{})})})}}],[wn]),Bn=l.useMemo(()=>[{title:"Host name",dataIndex:"name",width:500,render(te){return h.jsx(ce.Link,{children:te})},sorter:(te,ue)=>te.name?.localeCompare(ue.name??"")??0,defaultSortOrder:"ascend"},{title:"Addresses",dataIndex:"address",render(te,ue){const Ye=`${ue.address}, ${ue.address6}`;return h.jsx(Io,{title:Ye,children:Ye})}},{title:"Endpoint",dataIndex:"endpointip"},{width:"1rem",render(te,ue){return h.jsx(Mo,{placement:"bottomRight",menu:{items:[{key:"update",label:h.jsxs(ce.Text,{onClick:()=>{Ce(ue),Ie(!0)},children:[h.jsx(Of,{})," Update"]}),onClick:Ye=>{Ye.domEvent.stopPropagation()}},{key:"delete",label:h.jsxs(ce.Text,{onClick:()=>hn(ue),children:[h.jsx(Fl,{})," Delete"]}),onClick:Ye=>{Ye.domEvent.stopPropagation()}}]},children:h.jsx(ut,{type:"text",icon:h.jsx(Ya,{})})})}}],[hn]),xo=l.useMemo(()=>[{title:"CIDR",dataIndex:"range"},{title:"Host",render(te,ue){return ue.node?.name??""}},{width:"1rem",render(te,ue){return h.jsx(Mo,{placement:"bottomRight",menu:{items:[{key:"delete",label:h.jsxs(ce.Text,{onClick:()=>$t(ue),children:[h.jsx(Fl,{})," Delete"]})}]},children:h.jsx(ut,{type:"text",icon:h.jsx(Ya,{})})})}}],[$t]),zr=l.useMemo(()=>[{title:"Client ID",dataIndex:"clientid",width:500,render(te,ue){return h.jsx(ce.Link,{onClick:()=>To(ue),children:te})}},{title:"Owner ID",dataIndex:"ownerid",width:500,render(te){return h.jsx(ce.Text,{children:te||"n/a"})}},{title:"Allowed IPs",render(te,ue){const Ye=`${ue.address}, ${ue.address6}`;return h.jsx(Io,{title:Ye,children:Ye})}},{title:"Gateway",width:200,render(te,ue){const Ye=Ot.find(en=>en.id===ue.ingressgatewayid);return Ye?Hr(Ye,n.hostsCommonDetails).name??"":""}},{title:"Enabled",dataIndex:"enabled",render(te,ue){return h.jsx(po,{checked:te,onChange:Ye=>{Pr(ue,Ye)}})}},{render(te,ue){return h.jsx(Mo,{placement:"bottomRight",menu:{items:[{key:"edit",label:h.jsxs(ce.Text,{onClick:()=>{se(ue),Ue(!0)},children:[h.jsx(Of,{})," Edit"]})},{key:"delete",label:h.jsxs(ce.Text,{onClick:()=>eo(ue),children:[h.jsx(Fl,{})," Delete"]})}]},children:h.jsx(ut,{type:"text",icon:h.jsx(Ya,{})})})}}],[eo,Ot,To,n.hostsCommonDetails,Pr]),jr=l.useMemo(()=>[{title:"Host name",dataIndex:"name",sorter:(te,ue)=>te.name?.localeCompare(ue.name??"")??0,defaultSortOrder:"ascend"},{title:"Addresses",dataIndex:"address",render(te,ue){const Ye=`${ue.address??""}, ${ue.address6??""}`;return h.jsx(Io,{title:Ye,children:Ye})}},{width:"1rem",render(te,ue){return h.jsx(Mo,{placement:"bottomRight",menu:{items:[{key:"update",label:h.jsxs(ce.Text,{onClick:()=>{Ge(ue),k(!0)},children:[h.jsx(Of,{})," Update"]}),onClick:Ye=>{Ye.domEvent.stopPropagation()}},{key:"delete",label:h.jsxs(ce.Text,{onClick:()=>Rt(ue),children:[h.jsx(Fl,{})," Delete"]}),onClick:Ye=>{Ye.domEvent.stopPropagation()}}]},children:h.jsx(ut,{type:"text",icon:h.jsx(Ya,{})})})}}],[Rt]),Sn=l.useMemo(()=>[{title:"Host name",dataIndex:"name"},{title:"Relayed by",render(te,ue){return`${Ot.find(Ye=>Ye.id===ue.relayedby)?.name??""}`}},{title:"Addresses",dataIndex:"address",render(te,ue){const Ye=`${ue.address??""}, ${ue.address6??""}`;return h.jsx(Io,{title:Ye,children:Ye})}},{width:"1rem",render(te,ue){return h.jsx(Mo,{placement:"bottomRight",menu:{items:[{key:"delete",label:h.jsxs(ce.Text,{onClick:()=>Ht(ue,Ot.find(Ye=>Ye.id===ue.relayedby)??_3),children:[h.jsx(Fl,{})," Stop being relayed"]}),onClick:Ye=>{Ye.domEvent.stopPropagation()}}]},children:h.jsx(ut,{type:"text",icon:h.jsx(Ya,{})})})}}],[Ht,Ot]),wo=l.useMemo(()=>{const te=new Map;Vr.forEach(Ye=>te.set(Ye.nodeOrClientId,Ye));const ue=(Ye,en,pn,Br,Mr)=>{if((Ye.some(xr=>xr==="client")?"client":"node")==="node")switch(pn){case wm:return h.jsx(Un,{size:"small",dot:en!==pn,children:h.jsx(ut,{danger:!0,size:"small",icon:h.jsx(_0,{}),onClick:()=>{j(xr=>{const Ko=structuredClone(xr);return Ko[Br][Mr]=2,Ko[Mr][Br]=2,Ko})}})});case Nf:return h.jsx(Un,{size:"small",dot:en!==pn,children:h.jsx(ut,{size:"small",style:{color:"#3C8618",borderColor:"#274916"},icon:h.jsx(Ju,{}),onClick:()=>{j(xr=>{const Ko=structuredClone(xr);return Ko[Br][Mr]=1,Ko[Mr][Br]=1,Ko})}})});default:return h.jsx(jc,{})}else{if(Ye[1]==="node")return h.jsx(jc,{});const xr=K.find(Ui=>Ui.clientid===Mr),Ko=Ot.find(Ui=>Ui.id===xr?.ingressgatewayid);if(Object.keys(D[Ko?.id??""]??{}).filter(Ui=>D[Ko?.id??""][Ui]===wm).includes(Br))return h.jsx(Un,{size:"small",dot:en!==pn,children:h.jsx(ut,{danger:!0,disabled:!0,title:`The associated ingress gateway (${Ko?.name??""}) has denied this client access to this node.`,size:"small",icon:h.jsx(_0,{})})});switch(pn){case wm:return h.jsx(Un,{size:"small",dot:en!==pn,children:h.jsx(ut,{danger:!0,size:"small",icon:h.jsx(_0,{}),onClick:()=>{B(Ui=>{const Ir=structuredClone(Ui);return Ir[Br]&&(delete Ir[Br][Mr],Ir[Mr]&&delete Ir[Br][Mr]),Ir[Mr]&&(delete Ir[Mr][Br],Ir[Br]&&delete Ir[Mr][Br]),Ir})}})});case Nf:return h.jsx(Un,{size:"small",dot:en!==pn,children:h.jsx(ut,{size:"small",style:{color:"#3C8618",borderColor:"#274916"},icon:h.jsx(Ju,{}),onClick:()=>{B(Ui=>{const Ir=structuredClone(Ui);return Ir[Br]&&(Ir[Br][Mr]={},Ir[Mr]={...Ir[Mr]??{},[Br]:{}}),Ir[Mr]&&(Ir[Mr][Br]={},Ir[Br]={...Ir[Br]??{},[Mr]:{}}),Ir})}})});default:return h.jsx(jc,{})}}};return[{width:"5rem",fixed:"left",render(Ye,en){return h.jsx(ce.Text,{style:{width:"5rem",wordBreak:"keep-all"},onClick:()=>X(en.name),children:en.name})}},...Vr.map(Ye=>({title:Ye.name,width:"5rem",render(en,pn){const Br=[Ye.type,pn.type].some(Mr=>Mr==="client")?"client":"node";return ue([pn.type,Ye.type],Br==="node"?P?.[pn.nodeOrClientId]?.[Ye.nodeOrClientId]??0:e8(pn.nodeOrClientId,F[Ye.nodeOrClientId]??{}),Br==="node"?te.get(pn.nodeOrClientId)?.acls?.[Ye?.nodeOrClientId]??0:pn.nodeOrClientId===Ye.nodeOrClientId?0:e8(pn.nodeOrClientId,te.get(Ye.nodeOrClientId)?.clientAcls??{}),pn.nodeOrClientId,Ye.nodeOrClientId)}}))]},[Vr,K,Ot,D,F,P]),Bi=l.useMemo(()=>JSON.stringify(D)!==JSON.stringify(P)||JSON.stringify(A)!==JSON.stringify(F),[A,D,F,P]),so=l.useMemo(()=>{switch(ee){case"connectivity-status":return[{title:"",width:"10rem",render(te,ue){return h.jsx(ce.Text,{onClick:()=>Ke(ue.nodeId),children:ue.nodeName})}},...Qn.map(te=>({title:te.nodeName,render(ue,Ye){return Ye.nodeId===te.nodeId?h.jsx(jc,{}):rl(ee,te?.connectivity?.[Ye?.nodeId]??!1)}}))];case"latency":return[{title:"",width:"10rem",render(te,ue){return h.jsx(ce.Text,{onClick:()=>Ke(ue.nodeId),children:ue.nodeName})}},...rn.map(te=>({title:te.nodeName,render(ue,Ye){return Ye.nodeId===te.nodeId?h.jsx(jc,{}):rl(ee,te?.latency?.[Ye?.nodeId]??0)}}))];case"bytes-sent":return[{title:"",width:"10rem",render(te,ue){return h.jsx(ce.Text,{onClick:()=>Ke(ue.nodeId),children:ue.nodeName})}},...Tt.map(te=>({title:te.nodeName,render(ue,Ye){return Ye.nodeId===te.nodeId?h.jsx(jc,{}):rl(ee,te?.bytesSent?.[Ye?.nodeId]??0)}}))];case"bytes-received":return[{title:"",width:"10rem",render(te,ue){return h.jsx(ce.Text,{onClick:()=>Ke(ue.nodeId),children:ue.nodeName})}},...On.map(te=>({title:te.nodeName,render(ue,Ye){return Ye.nodeId===te.nodeId?h.jsx(jc,{}):rl(ee,te?.bytesReceived?.[Ye?.nodeId]??0)}}))];case"uptime":return[{title:"",width:"10rem",render(te,ue){return h.jsx(ce.Text,{onClick:()=>Ke(ue.nodeId),children:ue.nodeName})}},...Nn.map(te=>({title:te.nodeName,render(ue,Ye){return Ye.nodeId===te.nodeId?h.jsx(jc,{}):rl(ee,te?.uptime?.[Ye?.nodeId]??{})}}))];default:return[]}},[On,Tt,Qn,ee,rn,Nn]),wi=l.useMemo(()=>[{title:"Client Name",dataIndex:"node_name"},{title:"Connected",dataIndex:"connected",render:te=>rl("connectivity-status",te)},{title:"Uptime",dataIndex:"uptime",render:(te,ue)=>{const Ye={uptime:ue.actualuptime??0,fractionalUptime:ue.uptime??0,totalFractionalUptime:ue.totaltime??0,uptimePercent:ue?.percentup?.toFixed(2)??0};return rl("uptime",Ye)}},{title:"Latency",render(te,ue){return rl("latency",ue.latency)}},{title:"Total Sent",render(te,ue){return rl("bytes-sent",ue.totalsent)}},{title:"Total Received",render(te,ue){return rl("bytes-received",ue.totalreceived)}}],[]),Jo=l.useCallback(te=>Ot.some(ue=>Hr(ue,n.hostsCommonDetails).name===te.name),[Ot,n.hostsCommonDetails]),ca=l.useCallback((te,ue)=>{let Ye=!1;fn.confirm({title:"Remove host from network",content:h.jsx(h.Fragment,{children:h.jsxs(Oe,{children:[h.jsx(q,{xs:24,children:h.jsxs(ce.Text,{children:["Are you sure you want ",ue?.name??""," to ",te?"join":"leave"," the network?"]})}),h.jsx(q,{xs:24,children:h.jsx(Xe.Item,{htmlFor:"force-delete",label:"Force delete",valuePropName:"checked",style:{marginBottom:"0px"},children:h.jsx(fd,{id:"force-delete",onChange:en=>{Ye=en.target.checked}})})})]})}),async onOk(){try{if(!t)return;await wa.updateHostsNetworks(ue.hostid,t,te?"join":"leave",Ye),Ye&&c(ue.id),o.success({message:`Successfully ${te?"connected":"disconnected"}`,description:`${ue?.name??"Host"} is now ${te?"connected to":"disconnected from"} network ${t}. This may take some seconds to reflect.`})}catch(en){o.error({message:"Failed to update host",description:Qt(en)})}}})},[t,o,c]),ds=l.useCallback((te,ue)=>{fn.confirm({title:te?"Connect host to network":"Disconnect host from network",content:h.jsx(h.Fragment,{children:h.jsx(Oe,{children:h.jsx(q,{xs:24,children:h.jsxs(ce.Text,{children:["Are you sure you want ",ue?.name??""," to ",te?"connect to":"disconnect from"," the network?"]})})})}),async onOk(){try{if(!t)return;const Ye=(await ur.updateNode(ue.id,t,{...ue,connected:te})).data;n.updateNode(ue.id,Ye),o.success({message:`Successfully ${te?"connected":"disconnected"}`,description:`${ue?.name??"Host"} is now ${te?"connected to":"disconnected from"} network ${t}.`})}catch(Ye){o.error({message:"Failed to update host",description:Qt(Ye)})}}})},[t,o,n]),ja=l.useCallback(async()=>{if(!(!t||!u)){for(let te=0;teg?h.jsx("div",{className:"",style:{width:"100%",display:"flex",justifyContent:"center"},children:h.jsx(Jn,{style:{width:"50%"},children:h.jsxs(Xe,{name:"network-details-form",form:d,layout:"vertical",initialValues:g,disabled:!b,children:[h.jsx(Xe.Item,{label:"Network name",name:"netid",rules:[{required:!0}],"data-nmui-intercom":"network-details-form_netid",children:h.jsx(Ut,{placeholder:"Network name",disabled:!0})}),h.jsx(Oe,{style:{border:`1px solid ${a.colorBorder}`,borderRadius:"8px",padding:".5rem",marginBottom:"1.5rem"},children:h.jsxs(q,{xs:24,children:[h.jsxs(Oe,{justify:"space-between",style:{marginBottom:f?".5rem":"0px"},children:[h.jsx(q,{children:"IPv4"}),h.jsx(q,{children:h.jsx(Xe.Item,{name:"isipv4",valuePropName:"checked",style:{marginBottom:"0px"},"data-nmui-intercom":"network-details-form_isipv4",children:h.jsx(po,{})})})]}),f&&h.jsx(Oe,{children:h.jsx(q,{xs:24,children:h.jsx(Xe.Item,{name:"addressrange",style:{marginBottom:"0px"},"data-nmui-intercom":"network-details-form_addressrange",children:h.jsx(Ut,{placeholder:"Enter address CIDR (eg: 192.168.1.0/24)"})})})})]})}),h.jsx(Oe,{style:{border:`1px solid ${a.colorBorder}`,borderRadius:"8px",padding:".5rem",marginBottom:"1.5rem"},children:h.jsxs(q,{xs:24,children:[h.jsxs(Oe,{justify:"space-between",style:{marginBottom:p?".5rem":"0px"},children:[h.jsx(q,{children:"IPv6"}),h.jsx(q,{children:h.jsx(Xe.Item,{name:"isipv6",valuePropName:"checked",style:{marginBottom:"0px"},"data-nmui-intercom":"network-details-form_isipv6",children:h.jsx(po,{})})})]}),p&&h.jsx(Oe,{children:h.jsx(q,{xs:24,children:h.jsx(Xe.Item,{name:"addressrange6",style:{marginBottom:"0px"},"data-nmui-intercom":"network-details-form_addressrange6",children:h.jsx(Ut,{placeholder:"Enter address CIDR (eg: 2002::1234:abcd:ffff:c0a8:101/64)"})})})})]})}),h.jsx(Oe,{style:{border:`1px solid ${a.colorBorder}`,borderRadius:"8px",padding:".5rem",marginBottom:"1.5rem"},children:h.jsx(q,{xs:24,children:h.jsxs(Oe,{justify:"space-between",children:[h.jsx(q,{children:"Default Access Control"}),h.jsx(q,{xs:8,children:h.jsx(Xe.Item,{name:"defaultacl",style:{marginBottom:"0px"},rules:[{required:!0}],"data-nmui-intercom":"network-details-form_defaultacl",children:h.jsx(Lr,{size:"small",style:{width:"100%"},options:[{label:"ALLOW",value:"yes"},{label:"DENY",value:"no"}]})})})]})})})]})})}):h.jsx(Nr,{active:!0}),[g,d,b,a.colorBorder,f,p]),fs=l.useCallback(()=>h.jsx("div",{className:"network-hosts-tab-content",style:{width:"100%",display:"flex",justifyContent:"center"},children:h.jsxs(Oe,{justify:"space-between",style:{marginBottom:"1rem",width:"100%"},children:[h.jsx(q,{xs:12,md:8,children:h.jsx(Ut,{size:"large",placeholder:"Search hosts",value:C,onChange:te=>E(te.target.value),prefix:h.jsx(_r,{})})}),h.jsx(q,{xs:12,md:6,style:{textAlign:"right"},children:h.jsxs(Mo.Button,{type:"primary",style:{justifyContent:"end"},icon:h.jsx($g,{}),menu:{items:[{key:"existing-host",label:"Add Existing Host",onClick(){pe(!0)}}]},onClick:()=>ze(!0),children:[h.jsx(Dr,{})," Add New Host"]})}),h.jsx(q,{xs:24,style:{paddingTop:"1rem"},children:h.jsx(Zn,{columns:[{title:"Host Name",render:(te,ue)=>{const Ye=Hr(ue,n.hostsCommonDetails).name;return h.jsxs(h.Fragment,{children:[h.jsx(du,{to:C$e(ue.hostid,ue.network),children:Ye}),ue.pendingdelete&&h.jsx(Un,{style:{marginLeft:"1rem"},status:"processing",color:"red",text:"Removing..."})]})},sorter:(te,ue)=>{const Ye=Hr(te,n.hostsCommonDetails).name,en=Hr(ue,n.hostsCommonDetails).name;return Ye?.localeCompare(en??"")??0},defaultSortOrder:"ascend"},{title:"Private Address (IPv4)",dataIndex:"address"},g?.isipv6?{title:"Private Address (IPv6)",dataIndex:"address6"}:{},{title:"Public Address",render(te,ue){return Hr(ue,n.hostsCommonDetails)?.endpointip??""}},{title:"Connectivity",render:(te,ue)=>h.jsx(Xr,{color:ue.connected?"green":"red",children:ue.connected?"Connected":"Disconnected"})},{title:"Health Status",render(te,ue){return e2e(ue.hostid,[ue])}},{width:"1rem",align:"right",render(te,ue){return h.jsx(Mo,{menu:{items:[{key:"edit",label:"Edit",disabled:ue.pendingdelete!==!1,title:ue.pendingdelete!==!1?"Host is being removed from network":"",onClick:()=>Jr(ue)},{key:"disconnect",label:ue.connected?"Disconnect host":"Connect host",disabled:ue.pendingdelete!==!1,title:ue.pendingdelete!==!1?"Host is being disconnected from network":"",onClick:()=>ds(!ue.connected,Hr(ue,n.hostsCommonDetails))},{key:"remove",label:"Remove from network",danger:!0,disabled:ue.pendingdelete!==!1,title:ue.pendingdelete!==!1?"Host is being removed from network":"",onClick:()=>ca(!1,Hr(ue,n.hostsCommonDetails))}]},children:h.jsx(Ya,{})})}}],dataSource:Ot,rowKey:"id",size:"small"})})]})}),[C,g?.isipv6,Ot,n.hostsCommonDetails,Jr,ds,ca]),Lt=l.useCallback(()=>h.jsx("div",{className:"",style:{width:"100%",display:"flex",justifyContent:"center"},children:h.jsxs(Oe,{justify:"space-between",style:{marginBottom:"1rem",width:"100%"},children:[h.jsx(q,{xs:12,md:8,children:h.jsx(Ut,{size:"large",placeholder:"Search DNS",value:$,onChange:te=>O(te.target.value),prefix:h.jsx(_r,{})})}),h.jsx(q,{xs:12,md:6,style:{textAlign:"right"},children:h.jsxs(ut,{type:"primary",size:"large",onClick:()=>T(!0),children:[h.jsx(Dr,{})," Add DNS"]})}),h.jsx(q,{xs:24,style:{paddingTop:"1rem"},children:h.jsx(Zn,{columns:[{title:"DNS Entry",render(te,ue){return h.jsx(ce.Text,{copyable:!0,children:`${ue.name}.${ue.network}`})},sorter:(te,ue)=>te.name.localeCompare(ue.name),defaultSortOrder:"ascend"},{title:"IP Addresses",render(te,ue){return h.jsx(ce.Text,{copyable:!0,children:[ue.address].concat(ue.address6||[]).join(", ")})}},{title:"",key:"action",width:"1rem",render:(te,ue)=>h.jsx(Mo,{placement:"bottomRight",menu:{items:[{key:"delete",disabled:Jo(ue),label:h.jsx(Io,{title:Jo(ue)?"Cannot delete default DNS":"Delete DNS",children:h.jsxs(ce.Text,{disabled:Jo(ue),onClick:()=>Jo(ue)?void 0:jt(ue),children:[h.jsx(Fl,{})," Delete"]})})}]},children:h.jsx(Ya,{})})}],dataSource:I.filter(te=>te.name.toLocaleLowerCase().includes($.toLocaleLowerCase())),rowKey:"name",size:"small"})})]})}),[jt,I,Jo,$]),an=l.useCallback(()=>{const te=K.length===0&&gn.length===0;return h.jsxs("div",{className:"",style:{width:"100%",display:"flex",justifyContent:"center"},children:[te&&h.jsxs(Oe,{className:"page-padding",style:{background:"linear-gradient(90deg, #52379F 0%, #B66666 100%)",width:"100%"},children:[h.jsxs(q,{xs:24*2/3,children:[h.jsx(ce.Title,{level:3,style:{color:"white "},children:"Clients"}),h.jsxs(ce.Text,{style:{color:"white "},children:["Client Gateways enable secure access to your network via Clients. The Gateway forwards traffic from the clients into the network, and from the network back to the clients. Clients are simple WireGuard config files, supported on most devices. To use Clients, you must configure a Client Gateway, which is typically deployed in a public cloud environment, e.g. on a server with a public IP, so that it is easily reachable from the Clients."," ",h.jsx("a",{href:"https://www.netmaker.io/features/ingress",target:"_blank",rel:"noreferrer",children:"Learn More"})]})]}),h.jsx(q,{xs:24*1/3,style:{position:"relative"},children:h.jsxs(Jn,{className:"header-card",style:{position:"absolute",width:"100%"},children:[h.jsx(ce.Title,{level:3,children:"Create Client"}),h.jsxs(ce.Text,{children:["Enable remote access to your network with a Client. A Client is a simple config file that runs on any device that supports"," ",h.jsx("a",{href:"https://www.wireguard.com/install",target:"_blank",rel:"noreferrer",children:"(WireGuard)"}),". Apply the config file on your device, and it will have secure access to your network via the Client Gateway."]}),gn.length===0&&h.jsx(cu,{type:"warning",showIcon:!0,message:"No Client Gateway",description:"You will be prompted to create a gateway for your network when creating a client.",style:{marginTop:"1rem"}}),h.jsx(Oe,{style:{marginTop:"1rem"},children:h.jsx(q,{children:h.jsxs(ut,{type:"primary",size:"large",onClick:()=>V(!0),children:[h.jsx(Dr,{})," Create Client"]})})})]})})]}),!te&&h.jsxs(Oe,{style:{width:"100%"},children:[h.jsx(q,{xs:12,style:{marginBottom:"2rem"},children:h.jsx(Ut,{placeholder:"Search gateways",value:ge,onChange:ue=>ve(ue.target.value),prefix:h.jsx(_r,{}),style:{width:"60%"}})}),h.jsx(q,{xs:12,style:{marginBottom:"2rem"},children:h.jsx(Ut,{placeholder:"Search clients",value:he,onChange:ue=>be(ue.target.value),prefix:h.jsx(_r,{}),style:{width:"60%"}})}),h.jsxs(q,{xs:12,children:[h.jsxs(Oe,{style:{width:"100%"},children:[h.jsx(q,{xs:12,children:h.jsx(ce.Title,{style:{marginTop:"0px"},level:5,children:"Gateways"})}),h.jsx(q,{xs:11,style:{textAlign:"right"},children:h.jsxs(ut,{type:"primary",onClick:()=>et(!0),children:[h.jsx(Dr,{})," Create Gateway"]})})]}),h.jsx(Oe,{style:{marginTop:"1rem"},children:h.jsx(q,{xs:23,children:h.jsx(Zn,{columns:_n,dataSource:Mt,rowKey:"id",size:"small",rowClassName:ue=>ue.id===oe?.id?"selected-row":"",onRow:ue=>({onClick:()=>{oe?.id===ue.id?ie(null):ie(ue)}})})})})]}),h.jsxs(q,{xs:12,children:[h.jsxs(Oe,{style:{width:"100%"},children:[h.jsx(q,{xs:12,children:h.jsx(ce.Title,{style:{marginTop:"0px"},level:5,children:"Clients"})}),h.jsxs(q,{xs:12,style:{textAlign:"right"},children:[oe&&h.jsxs(ut,{type:"primary",style:{marginRight:"1rem"},onClick:()=>V(!0),children:[h.jsx(Dr,{})," Create Client"]}),"Display All"," ",h.jsx(po,{title:"Display all clients. Click a gateway to filter clients specific to that gateway.",checked:oe===null,onClick:()=>{ie(null)}})]})]}),h.jsx(Oe,{style:{marginTop:"1rem"},children:h.jsx(q,{xs:24,children:h.jsx(Zn,{columns:zr,dataSource:yt,rowKey:"clientid",size:"small"})})})]})]})]})},[K.length,gn.length,ge,he,_n,Mt,oe,zr,yt]),sr=l.useCallback(()=>h.jsxs("div",{className:"",style:{width:"100%",display:"flex",justifyContent:"center"},children:[st.length===0&&h.jsxs(Oe,{className:"page-padding",style:{background:"linear-gradient(90deg, #52379F 0%, #B66666 100%)",width:"100%"},children:[h.jsxs(q,{xs:16,children:[h.jsx(ce.Title,{level:3,style:{color:"white "},children:"Egress"}),h.jsxs(ce.Text,{style:{color:"white "},children:["Enable devices in your network to communicate with other devices outside the network via egress gateways. An office network, home network, data center, or cloud region all become easily accessible via the Egress Gateway. You can even set a machine as an Internet Gateway to create a “traditional” VPN"," ",h.jsx("a",{href:"https://www.netmaker.io/features/egress",target:"_blank",rel:"noreferrer",children:"(Learn more)"}),"."]})]}),h.jsx(q,{xs:8,style:{position:"relative"},children:h.jsxs(Jn,{className:"header-card",style:{position:"absolute",width:"100%"},children:[h.jsx(ce.Title,{level:3,children:"Create Egress"}),h.jsx(ce.Text,{children:"Select a device to act as your Egress Gateway. This device must have access to the target network, and must run Linux (for now)."}),h.jsx(Oe,{style:{marginTop:"5rem"},children:h.jsx(q,{children:h.jsxs(ut,{type:"primary",size:"large",onClick:()=>je(!0),children:[h.jsx(Dr,{})," Create Egress"]})})})]})})]}),st.length>0&&h.jsxs(Oe,{style:{width:"100%"},children:[h.jsx(q,{xs:24,style:{marginBottom:"2rem"},children:h.jsx(Ut,{placeholder:"Search egress",value:De,onChange:te=>_e(te.target.value),prefix:h.jsx(_r,{}),style:{width:"30%"}})}),h.jsxs(q,{xs:12,children:[h.jsxs(Oe,{style:{width:"100%"},children:[h.jsx(q,{xs:12,children:h.jsx(ce.Title,{style:{marginTop:"0px"},level:5,children:"Egress Gateways"})}),h.jsx(q,{xs:11,style:{textAlign:"right"},children:h.jsxs(ut,{type:"primary",onClick:()=>je(!0),children:[h.jsx(Dr,{})," Create Egress"]})})]}),h.jsx(Oe,{style:{marginTop:"1rem"},children:h.jsx(q,{xs:23,children:h.jsx(Zn,{columns:Bn,dataSource:nt,rowKey:"id",size:"small",rowClassName:te=>te.id===ye?.id?"selected-row":"",onRow:te=>({onClick:()=>{ye?.id===te.id?Ce(null):Ce(te)}})})})})]}),h.jsxs(q,{xs:12,children:[h.jsxs(Oe,{style:{width:"100%"},children:[h.jsx(q,{xs:12,children:h.jsx(ce.Title,{style:{marginTop:"0px"},level:5,children:"External routes"})}),h.jsxs(q,{xs:12,style:{textAlign:"right"},children:[ye&&h.jsxs(ut,{type:"primary",style:{marginRight:"1rem"},onClick:()=>Ie(!0),children:[h.jsx(Dr,{})," Add external route"]}),"Display All"," ",h.jsx(po,{title:"Display all routes. Click an egress to filter routes specific to that egress.",checked:ye===null,onClick:()=>{Ce(null)}})]})]}),h.jsx(Oe,{style:{marginTop:"1rem"},children:h.jsx(q,{xs:24,children:h.jsx(Zn,{columns:xo,dataSource:Xt,rowKey:te=>`${te.node?.name??""}-${te.range}`,size:"small"})})})]})]})]}),[st,De,Bn,nt,ye,xo,Xt]),Or=l.useCallback(()=>h.jsxs("div",{className:"",style:{width:"100%",display:"flex",justifyContent:"center"},children:[$n.length===0&&h.jsxs(Oe,{className:"page-padding",style:{background:"linear-gradient(90deg, #52379F 0%, #B66666 100%)",width:"100%"},children:[h.jsxs(q,{xs:16,children:[h.jsx(ce.Title,{level:3,style:{color:"white "},children:"Relays"}),h.jsxs(ce.Text,{style:{color:"white "},children:["Enable devices in your network to communicate with othererwise unreachable devices with relays."," ",Sr().productName," uses Turn servers to automatically route traffic in these scenarios, but sometimes, you’d rather specify which device should be routing the traffic",h.jsx("a",{href:"https://www.netmaker.io/features/relay",target:"_blank",rel:"noreferrer",children:"(Learn More)"}),"."]})]}),h.jsx(q,{xs:8,style:{position:"relative"},children:h.jsxs(Jn,{className:"header-card",style:{position:"absolute",width:"100%"},children:[h.jsx(ce.Title,{level:3,children:"Create Relay"}),h.jsx(ce.Text,{children:"Select a device to relay traffic to/from another device. The Relay is typically (but not always) publicly accessible, and in a nearby location to the target device, to minimize latency."}),h.jsx(Oe,{style:{marginTop:"5rem"},children:h.jsx(q,{children:h.jsxs(ut,{type:"primary",size:"large",onClick:()=>it(!0),children:[h.jsx(Dr,{})," Create Relay"]})})})]})})]}),$n.length>0&&h.jsxs(Oe,{style:{width:"100%"},children:[h.jsx(q,{xs:24,style:{marginBottom:"2rem"},children:h.jsx(Ut,{placeholder:"Search relay",value:qe,onChange:te=>at(te.target.value),prefix:h.jsx(_r,{}),style:{width:"30%"}})}),h.jsxs(q,{xs:12,children:[h.jsxs(Oe,{style:{width:"100%"},children:[h.jsx(q,{xs:12,children:h.jsx(ce.Title,{style:{marginTop:"0px"},level:5,children:"Relays"})}),h.jsx(q,{xs:11,style:{textAlign:"right"},children:h.jsxs(ut,{type:"primary",onClick:()=>it(!0),children:[h.jsx(Dr,{})," Create Relay"]})})]}),h.jsx(Oe,{style:{marginTop:"1rem"},children:h.jsx(q,{xs:23,children:h.jsx(Zn,{columns:jr,dataSource:Kn,rowKey:"id",size:"small",rowClassName:te=>te.id===Fe?.id?"selected-row":"",onRow:te=>({onClick:()=>{Fe?.id===te.id?Ge(null):Ge(te)}})})})})]}),h.jsxs(q,{xs:12,children:[h.jsxs(Oe,{style:{width:"100%"},children:[h.jsx(q,{xs:12,children:h.jsx(ce.Title,{style:{marginTop:"0px"},level:5,children:"Relayed Hosts"})}),h.jsxs(q,{xs:12,style:{textAlign:"right"},children:[Fe&&h.jsxs(ut,{type:"primary",style:{marginRight:"1rem"},onClick:()=>k(!0),children:[h.jsx(Dr,{})," Add relayed host"]}),"Display All"," ",h.jsx(po,{title:"Display all relayed hosts. Click a relay to filter hosts relayed only by that relay.",checked:Fe===null,onClick:()=>{Ge(null)}})]})]}),h.jsx(Oe,{style:{marginTop:"1rem"},children:h.jsx(q,{xs:24,children:h.jsx(Zn,{columns:Sn,dataSource:Xn,rowKey:"id",size:"small"})})})]})]})]}),[Xn,Kn,jr,Sn,$n,qe,Fe]),tr=l.useCallback(()=>h.jsx("div",{className:"",style:{width:"100%",display:"flex",justifyContent:"center"},children:h.jsxs(Oe,{style:{width:"100%"},children:[h.jsxs(q,{xs:12,children:[h.jsx(Ut,{allowClear:!0,placeholder:"Search host",value:L,onChange:te=>X(te.target.value),prefix:h.jsx(_r,{}),style:{width:"60%"}}),u&&h.jsxs("span",{style:{marginLeft:"2rem"},"data-nmui-intercom":"network-details-acls_showclientstoggle",children:[h.jsx("label",{style:{marginRight:"1rem"},htmlFor:"show-clients-acl-switch",children:"Show Clients"}),h.jsx(po,{id:"show-clients-acl-switch",checked:pt,onChange:te=>Nt(te)})]})]}),h.jsxs(q,{xs:12,style:{textAlign:"right"},children:[h.jsx(ut,{title:"Allow All",style:{marginRight:"1rem",color:"#3C8618",borderColor:"#274916"},icon:h.jsx(Ju,{}),onClick:()=>{j(te=>{const ue=structuredClone(te);for(const Ye in ue)if(Object.prototype.hasOwnProperty.call(ue,Ye)){const en=ue[Ye];for(const pn in en)Object.prototype.hasOwnProperty.call(en,pn)&&(en[pn]=2)}return ue}),B(te=>{const ue=structuredClone(te);for(const Ye in ue)Object.prototype.hasOwnProperty.call(ue,Ye)&&(ue[Ye]={});return ue})}}),h.jsx(ut,{danger:!0,title:"Block All",style:{marginRight:"1rem"},icon:h.jsx(_0,{}),onClick:()=>{j(te=>{const ue=structuredClone(te);for(const Ye in ue)if(Object.prototype.hasOwnProperty.call(ue,Ye)){const en=ue[Ye];for(const pn in en)Object.prototype.hasOwnProperty.call(en,pn)&&(en[pn]=1)}return ue}),B(te=>{const ue=structuredClone(te);for(const Ye in ue)Object.prototype.hasOwnProperty.call(ue,Ye)&&(ue[Ye]={},K.forEach(en=>{ue[Ye][en.clientid]={}}),Ot.forEach(en=>{ue[Ye][en.id]={}}));return ue})}}),h.jsx(ut,{title:"Reset",style:{marginRight:"1rem"},icon:h.jsx(i7,{}),onClick:()=>{j(P),B(F)},disabled:!Bi}),h.jsx(ut,{type:"primary",onClick:async()=>{try{if(!t)return;_t(!0);const te=(await ll.updateAcls(t,D)).data;u&&await ja(),M(te),j(te),o.success({message:"ACLs updated"})}catch(te){o.error({message:"Error updating ACLs",description:Qt(te)})}finally{_t(!1)}},disabled:!Bi,loading:Pt,children:"Submit Changes"})]}),h.jsx(q,{xs:24,style:{paddingTop:"1rem"},children:h.jsx("div",{className:"",style:{width:"100%",overflow:"auto"},children:h.jsx(n_e,{columns:wo,dataSource:_o,className:"acl-table",rowKey:"nodeOrClientId",size:"small",pagination:!1,scroll:{x:"100%"}})})})]})}),[L,pt,Bi,Pt,wo,_o,K,Ot,P,F,t,D,u,ja,o]),hs=l.useCallback(()=>{const te="78vh";return g?h.jsx("div",{className:"",style:{width:"100%",display:"flex",justifyContent:"center"},children:h.jsx(Oe,{style:{width:"100%"},children:h.jsx(q,{xs:24,style:{width:"100%",height:te},children:h.jsxs(zRe,{id:o9,style:{backgroundColor:a.colorBgContainer,position:"relative"},children:[h.jsx(LNe,{network:g,hosts:nn,nodes:Ot,acl:Gn,clients:K}),h.jsxs(Q8,{position:"top-left",children:[h.jsx(WRe,{}),h.jsx(GRe,{})]}),h.jsx(Q8,{position:"top-left",className:"search-container",children:h.jsx(YRe,{})})]})})})}):h.jsx("div",{className:"",style:{width:"100%",height:te,display:"flex",justifyContent:"center",alignContent:"center"},children:h.jsx(mu,{style:{fontSize:"5rem"},spin:!0})})},[K,g,Gn,nn,Ot,a.colorBgContainer]),Hi=l.useCallback(()=>h.jsx("div",{className:"",style:{width:"100%",display:"flex",justifyContent:"center"},children:h.jsxs(Oe,{style:{width:"100%"},children:[h.jsx(q,{xs:16,children:h.jsxs(xa.Group,{value:ee,onChange:te=>$e(te.target.value),children:[h.jsx(xa.Button,{value:"connectivity-status","data-nmui-intercom":"network-details-metrics_connectivitystatus",children:"Connectivity Status"}),h.jsx(xa.Button,{value:"latency","data-nmui-intercom":"network-details-metrics_latency",children:"Latency"}),h.jsx(xa.Button,{value:"bytes-sent","data-nmui-intercom":"network-details-metrics_bytessent",children:"Bytes Sent"}),h.jsx(xa.Button,{value:"bytes-received","data-nmui-intercom":"network-details-metrics_bytesreceived",children:"Bytes Received"}),h.jsx(xa.Button,{value:"uptime","data-nmui-intercom":"network-details-metrics_uptime",children:"Uptime"}),h.jsx(xa.Button,{value:"clients","data-nmui-intercom":"network-details-metrics_clients",children:"Clients"})]})}),h.jsx(q,{xs:8,style:{textAlign:"right"}}),h.jsx(q,{xs:24,style:{paddingTop:"1rem"},children:h.jsxs("div",{className:"",style:{width:"100%",overflow:"auto"},children:[ee==="connectivity-status"&&h.jsx(Zn,{columns:so,dataSource:Qn,className:"connectivity-status-metrics-table",rowKey:"nodeId",size:"small",pagination:!1}),ee==="latency"&&h.jsx(Zn,{columns:so,dataSource:rn,className:"latency-metrics-table",rowKey:"nodeId",size:"small",pagination:!1}),ee==="bytes-sent"&&h.jsx(Zn,{columns:so,dataSource:Tt,className:"bytes-sent-metrics-table",rowKey:"nodeId",size:"small",pagination:!1}),ee==="bytes-received"&&h.jsx(Zn,{columns:so,dataSource:On,className:"bytes-received-metrics-table",rowKey:"nodeId",size:"small",pagination:!1}),ee==="uptime"&&h.jsx(Zn,{columns:so,dataSource:rn,className:"latency-metrics-table",rowKey:"nodeId",size:"small",pagination:!1}),ee==="clients"&&h.jsx(Zn,{columns:wi,dataSource:Fr,className:"clients-metrics-table",rowKey:"node_name",size:"small",pagination:!1})]})})]})}),[ee,so,Qn,rn,Tt,On,wi,Fr]),Sl=l.useMemo(()=>{const te=[{key:"overview",label:"Overview",children:g?Si():h.jsx(Nr,{active:!0})},{key:"hosts",label:`Hosts (${nn.length})`,children:g?fs():h.jsx(Nr,{active:!0})},{key:"clients",label:`Clients (${K.length})`,children:g?an():h.jsx(Nr,{active:!0})},{key:"egress",label:`Egress (${st.length})`,children:g?sr():h.jsx(Nr,{active:!0})},{key:"dns",label:"DNS",children:g?Lt():h.jsx(Nr,{active:!0})},{key:"access-control",label:"Access Control",children:g?tr():h.jsx(Nr,{active:!0})},{key:"graph",label:"Graph",children:g?hs():h.jsx(Nr,{active:!0})}].concat(u?[{key:"metrics",label:"Metrics",children:g?Hi():h.jsx(Nr,{active:!0})}]:[]);return u&&te.splice(3,0,{key:"relays",label:`Relays (${$n.length})`,children:g?Or():h.jsx(Nr,{active:!0})}),te},[g,Si,nn.length,fs,K.length,an,st.length,sr,$n.length,Or,Lt,tr,hs,u,Hi]),ps=l.useCallback(async()=>{try{if(!t)return;const ue=(await ll.getDnses()).data.filter(Ye=>Ye.network===t);N(ue)}catch(te){te instanceof Ji&&o.error({message:"Error loading DNSes",description:Qt(te)})}},[t,o]),xc=l.useCallback(async()=>{try{if(!t)return;const te=(await ll.getNodeMetrics(t)).data;de(te);const ue=(await ll.getClientMetrics(t)).data??{};Ae(ue)}catch(te){o.error({message:"Error loading host metrics",description:Qt(te)})}},[t,o]),Sd=l.useCallback(()=>{S(!0),t||r(Kt.NETWORKS_ROUTE);const te=n.networks.find(ue=>ue.netid===t);if(!te){o.error({message:`Network ${t} not found`}),r(Kt.NETWORKS_ROUTE);return}v(te),ps(),bo(),fr(),u&&xc(),S(!1)},[t,n.networks,ps,bo,fr,u,r,o,xc]),Gh=l.useCallback(async()=>{try{if(!t)throw new Error("Network not found");await ll.deleteNetwork(t),o.success({message:`Network ${t} deleted`}),n.deleteNetwork(t),r(Kt.NETWORKS_ROUTE)}catch(te){te instanceof Ji?o.error({message:"Failed to delete network",description:Qt(te)}):o.error({message:te instanceof Error?te.message:"Failed to delete network"})}},[t,o,r,n]),hr=l.useCallback(te=>{N(ue=>[...ue,te]),T(!1)},[]),nr=()=>{fn.confirm({title:`Do you want to delete network ${g?.netid}?`,icon:h.jsx(lc,{}),onOk(){Gh()},okType:"danger"})};return l.useEffect(()=>{Sd()},[Sd]),l.useEffect(()=>{g&&d.setFieldsValue(g)},[d,g]),t?h.jsxs(ao.Content,{className:"NetworkDetailsPage",style:{position:"relative",height:"100%",padding:e.isFullScreen?0:24},children:[h.jsx(Nr,{loading:y,active:!0,className:"page-padding",children:h.jsx(Oe,{className:"tabbed-page-row-padding",children:h.jsxs(q,{xs:24,children:[h.jsx(du,{to:Kt.NETWORKS_ROUTE,children:"View All Networks"}),h.jsxs(Oe,{children:[h.jsx(q,{xs:18,children:h.jsx(ce.Title,{level:2,style:{marginTop:".5rem",marginBottom:"2rem"},children:g?.netid})}),h.jsx(q,{xs:6,style:{textAlign:"right"},children:h.jsx(Mo,{menu:{items:[{key:"delete",label:"Delete",danger:!0,icon:h.jsx(Fl,{}),onClick:nr}]},children:h.jsxs(ut,{children:[h.jsx(T3,{})," Network Settings"]})})})]}),h.jsx(Ah,{items:Sl})]})})}),i,h.jsx(_4e,{isOpen:_,networkId:t,onCreateDns:hr,onCancel:()=>T(!1)}),h.jsx(N4e,{isOpen:W,networkId:t,preferredGateway:oe??void 0,onCreateClient:()=>{fr(),n.fetchNodes(),V(!1)},onCancel:()=>V(!1)}),h.jsx(P4e,{isOpen:Ee,networkId:t,onCreateEgress:()=>{n.fetchNodes(),je(!1)},onCancel:()=>je(!1)}),fe&&h.jsx(U4e,{isOpen:re,client:fe,onUpdateClient:te=>{G(ue=>ue.map(Ye=>Ye.clientid===fe.clientid?te:Ye)),se(te)},onCancel:()=>Q(!1)},`read-${fe.clientid}`),ye&&h.jsx(W4e,{isOpen:Me,networkId:t,egress:ye,onUpdateEgress:()=>{n.fetchNodes(),Ie(!1)},onCancel:()=>Ie(!1)},ye.id),h.jsx(j4e,{isOpen:ft,networkId:t,onCreateRelay:()=>{n.fetchNodes(),it(!1)},onCancel:()=>it(!1)}),Fe&&h.jsx(FNe,{isOpen:U,relay:Fe,networkId:t,onUpdateRelay:()=>{k(!1)},onCancel:()=>k(!1)},Fe.id),h.jsx(zNe,{isOpen:tt,networkId:t,onNetworkUpdated:()=>{n.fetchNetworks(),pe(!1)},onCancel:()=>pe(!1)}),h.jsx(L3,{isOpen:Te,onFinish:()=>ze(!1),onCancel:()=>ze(!1)}),h.jsx(BNe,{isOpen:ke,networkId:t,onCreateIngress:()=>{n.fetchNodes(),et(!1)},onCancel:()=>et(!1)}),oe&&h.jsx(HNe,{isOpen:mt,ingress:oe,networkId:t,onUpdateIngress:()=>{Ve(!1)},onCancel:()=>Ve(!1)}),oe&&h.jsx(r_e,{isOpen:gt,ingress:oe,networkId:t,onCancel:()=>It(!1)}),fe&&h.jsx(UNe,{isOpen:rt,client:fe,networkId:t,onUpdateClient:()=>{fr(),Ue(!1)},onCancel:()=>Ue(!1)},`update-${fe.clientid}`),Et&&h.jsx(rz,{isOpen:Je,node:Et,onUpdateNode:()=>{n.fetchNodes(),ht(!1)},onCancel:()=>ht(!1)})]},t):(r(Kt.NETWORKS_ROUTE),null)}function i_e({isOpen:e,enrollmentKey:t,onCancel:n}){const r=t.type===F9||t.uses_remaining===0&&t.unlimited===!1;return h.jsxs(fn,{title:h.jsx("span",{style:{fontSize:"1.25rem",fontWeight:"bold"},children:"Enrollment Key"}),open:e,footer:null,centered:!0,className:"EnrollmentKeyDetailsModal CustomModal",onCancel:n,children:[h.jsx(Jt,{style:{margin:"0px 0px 2rem 0px"}}),h.jsxs("div",{className:"CustomModalBody",children:[h.jsxs(Oe,{"data-nmui-intercom":"enrollment-key-details_name",children:[h.jsx(q,{xs:8,children:h.jsx(ce.Text,{children:"Name"})}),h.jsxs(q,{xs:16,children:[h.jsx(ce.Text,{children:t.tags.join(", ")}),h.jsx(Xr,{style:{marginLeft:"1rem"},color:R1(t)?"success":"error",children:R1(t)?"Valid":"Invalid"})]})]}),h.jsx(Jt,{style:{margin:"1rem 0px 1rem 0px"}}),h.jsxs(Oe,{"data-nmui-intercom":"enrollment-key-details_token",children:[h.jsx(q,{xs:8,children:h.jsx(ce.Text,{children:"Key"})}),h.jsx(q,{xs:16,children:h.jsx(ce.Text,{children:t.token})})]}),h.jsx(Jt,{style:{margin:"1rem 0px 1rem 0px"}}),h.jsxs(Oe,{"data-nmui-intercom":"enrollment-key-details_type",children:[h.jsx(q,{xs:8,children:h.jsx(ce.Text,{children:"Type"})}),h.jsx(q,{xs:16,children:h.jsx(ce.Text,{children:L$e(t.type)})})]}),h.jsx(Jt,{style:{margin:"1rem 0px 1rem 0px"}}),h.jsxs(Oe,{"data-nmui-intercom":"enrollment-key-details_unlimited",children:[h.jsx(q,{xs:8,children:h.jsx(ce.Text,{children:"Is unlimited"})}),h.jsx(q,{xs:16,children:h.jsx(ce.Text,{children:t.unlimited?"Yes":"No"})})]}),h.jsx(Jt,{style:{margin:"1rem 0px 1rem 0px"}}),h.jsxs(Oe,{"data-nmui-intercom":"enrollment-key-details_usesremaining",children:[h.jsx(q,{xs:8,children:h.jsx(ce.Text,{children:"Uses remaining"})}),h.jsx(q,{xs:16,children:h.jsx(ce.Text,{children:t.type===z9?t.uses_remaining:"n/a"})})]}),h.jsx(Jt,{style:{margin:"1rem 0px 1rem 0px"}}),h.jsxs(Oe,{"data-nmui-intercom":"enrollment-key-details_expiration",children:[h.jsx(q,{xs:8,children:h.jsx(ce.Text,{children:"Expires at"})}),h.jsx(q,{xs:16,children:h.jsx(ce.Text,{children:r?Do(t.expiration).toLocaleString():"never"})})]}),h.jsx(Jt,{style:{margin:"1rem 0px 1rem 0px"}}),h.jsxs(Oe,{"data-nmui-intercom":"enrollment-key-details_networks",children:[h.jsx(q,{xs:8,children:h.jsx(ce.Text,{children:"Networks"})}),h.jsx(q,{xs:16,children:h.jsx(ce.Text,{children:t.networks.join(", ")})})]}),h.jsx(Jt,{style:{margin:"1rem 0px 1rem 0px"}}),h.jsx(Oe,{"data-nmui-intercom":"enrollment-key-details_joincmd",children:h.jsxs(q,{xs:24,children:[h.jsx(ce.Text,{type:"secondary",children:"Join Server via CLI:"}),h.jsx("br",{}),h.jsx(ce.Text,{copyable:!0,code:!0,children:`netclient join -t ${t.token}`})]})}),h.jsx(Jt,{style:{margin:"1rem 0px 1rem 0px"}})]})]})}function a_e(e){const[t,n]=er.useNotification(),[r,o]=l.useState([]),[i,a]=l.useState(!0),[s,c]=l.useState(!1),[u,d]=l.useState(""),[f,p]=l.useState(null),[g,v]=l.useState(!1),y=l.useCallback($=>{fn.confirm({title:`Delete key with tags ${$.tags.join(", ")}`,content:"Are you sure you want to remove this key?",onOk:async()=>{try{await I1.deleteEnrollmentKey($.value),o(O=>O.filter(I=>I.value!==$.value))}catch(O){O instanceof Ji&&t.error({message:"Error removing key",description:Qt(O)})}}})},[t]),S=l.useCallback($=>{p($),v(!0)},[]),b=l.useCallback(()=>{p(null),v(!1)},[]),x=[{title:"Name",dataIndex:"tags",render:($,O)=>h.jsx(ce.Link,{onClick:()=>S(O),children:$.join(", ")}),sorter($,O){return $.tags.join("").localeCompare(O.tags.join(""))},defaultSortOrder:"ascend"},{title:"Networks",dataIndex:"networks",render:$=>$.join(", "),sorter($,O){return $.networks.join("").localeCompare(O.networks.join(""))}},{title:"Validity",render:($,O)=>R1(O)?h.jsx(Xr,{color:"success",children:"Valid"}):h.jsx(Xr,{color:"error",children:"Invalid"})},{width:"1rem",render($,O){return h.jsx(Mo,{placement:"bottomRight",menu:{items:[{key:"delete",label:h.jsxs(ce.Text,{onClick:()=>y(O),children:[h.jsx(Fl,{})," Delete Key"]}),onClick:I=>{I.domEvent.stopPropagation()}}]},children:h.jsx(ut,{type:"text",icon:h.jsx(Ya,{})})})}}],C=l.useMemo(()=>r.filter($=>$.tags.join("").concat($.networks.join("")).toLowerCase().includes(u.toLowerCase())),[r,u]),E=l.useCallback(async()=>{try{a(!0);const $=(await I1.getEnrollmentKeys()).data;$.sort((O,I)=>O.value.localeCompare(I.value)),o($)}catch($){$ instanceof Ji&&t.error({message:"Error loading enrollment keys",description:Qt($)})}finally{a(!1)}},[t]);return l.useEffect(()=>{E()},[E]),h.jsxs(ao.Content,{className:"EnrollmentKeysPage",style:{position:"relative",height:"100%",padding:e.isFullScreen?0:24},children:[h.jsxs(Nr,{loading:i,active:!0,title:!0,className:"page-padding",children:[r.length===0&&h.jsxs(h.Fragment,{children:[h.jsxs(Oe,{className:"page-padding",style:{background:"linear-gradient(90deg, #52379F 0%, #B66666 100%)"},children:[h.jsxs(q,{xs:24*2/3,children:[h.jsx(ce.Title,{level:3,style:{color:"white "},children:"Enrollment Keys"}),h.jsx(ce.Text,{style:{color:"white "},children:"Enrollment keys allow you to enroll devices with your networks. You can automate enrollment and control access by defining expiration, number of uses, or making an infinitely usable key."})]}),h.jsx(q,{xs:24*1/3,style:{position:"relative"},children:h.jsxs(Jn,{className:"header-card",style:{height:"20rem",position:"absolute",width:"100%"},children:[h.jsx(ce.Title,{level:3,children:"Add a Key"}),h.jsxs(ce.Text,{children:["Use enrollment keys to connect hosts (netclients) to your ",Sr().productName," networks or register them to your ",Sr().productName," server."]}),h.jsx(Oe,{style:{marginTop:"auto"},children:h.jsx(q,{children:h.jsxs(ut,{type:"primary",size:"large",onClick:()=>c(!0),children:[h.jsx(Dr,{})," Add a Key"]})})})]})})]}),h.jsxs(Oe,{style:{marginTop:"8rem",padding:"0px 5.125rem"},gutter:[0,20],children:[h.jsx(q,{xs:24,children:h.jsx(ce.Title,{level:3,children:"Add a Key"})}),h.jsx(q,{xs:7,style:{marginRight:"1rem"},children:h.jsxs(Jn,{children:[h.jsx(ce.Title,{level:4,style:{marginTop:"0px"},children:"Time-bound keys"}),h.jsx(ce.Text,{children:"Use an expiration date for a time-sensitive invite to your networks."})]})}),h.jsx(q,{xs:7,style:{marginRight:"1rem"},children:h.jsxs(Jn,{children:[h.jsx(ce.Title,{level:4,style:{marginTop:"0px"},children:"Usage-based keys"}),h.jsx(ce.Text,{children:"Set an explicit number of uses for an enrollment key if you know how many devices need to join. Or just set as 1 if joining one device."})]})}),h.jsx(q,{xs:7,children:h.jsxs(Jn,{children:[h.jsx(ce.Title,{level:4,style:{marginTop:"0px"},children:"Unlimited keys"}),h.jsx(ce.Text,{children:"Make an unlimited key for easy use to enroll devices, and delete it when you're done."})]})})]})]}),r.length>0&&h.jsxs(h.Fragment,{children:[h.jsx(Oe,{className:"page-row-padding",children:h.jsx(q,{xs:24,children:h.jsx(ce.Title,{level:3,children:"Enrollment Keys"})})}),h.jsxs(Oe,{className:"page-row-padding",justify:"space-between",children:[h.jsx(q,{xs:12,md:8,children:h.jsx(Ut,{size:"large",placeholder:"Search keys",value:u,onChange:$=>d($.target.value),prefix:h.jsx(_r,{})})}),h.jsx(q,{xs:12,md:6,style:{textAlign:"right"},children:h.jsxs(ut,{type:"primary",size:"large",onClick:()=>c(!0),children:[h.jsx(Dr,{})," Create Key"]})})]}),h.jsx(Oe,{className:"page-row-padding",justify:"space-between",children:h.jsx(q,{xs:24,children:h.jsx(Zn,{columns:x,dataSource:C,rowKey:"value",onRow:$=>({onClick:()=>{p($),v(!0)}})})})})]})]}),h.jsx(B9,{isOpen:s,onCreateKey:$=>{c(!1),o(O=>[...O,$].sort(I=>I.value.localeCompare(I.value)))},onCancel:()=>c(!1)}),g&&f&&h.jsx(i_e,{isOpen:g,enrollmentKey:f,onCancel:b},f.value),n]})}function s_e(e){const[t,n]=er.useNotification(),r=tn(),o=bi(),{t:i}=Hg(),a=r.hosts,s=r.updateHost,c=r.deleteHost,u=tn(V=>V.fetchHosts),d=tn(V=>V.fetchNetworks),[f,p]=l.useState(""),[g,v]=l.useState(!1),[y,S]=l.useState(null),[b,x]=l.useState(!1),[C,E]=l.useState(!1),[$,O]=l.useState(!1),I=l.useMemo(()=>r.networks,[r.networks]),N=l.useMemo(()=>a.filter(V=>V.name.toLowerCase().includes(f.toLowerCase())),[a,f]),_=l.useCallback(V=>{fn.confirm({title:"Refresh host keys",content:`Are you sure you want to refresh this host's (${V.name}) keys?`,onOk:async()=>{try{await wa.refreshHostKeys(V.id),t.success({message:"Host keys refreshing...",description:"Host key pairs are refreshing. This may take a while."})}catch(K){t.error({message:"Failed to refresh host keys",description:Qt(K)})}}})},[t]),T=l.useCallback(async V=>{fn.confirm({title:"Toggle defaultness",content:`Are you sure you want to turn ${V.isdefault?"off":"on"} defaultness for this host?`,onOk:async()=>{try{const K=(await wa.updateHost(V.id,{...V,isdefault:!V.isdefault})).data;t.success({message:`Host ${V.id} updated`}),s(V.id,K)}catch(K){t.error({message:"Failed to update host",description:Qt(K)})}}})},[t,s]),D=l.useCallback(V=>{o(Wf(V,{edit:"true"}))},[o]),j=l.useCallback(async V=>{const K=r.nodes.filter(G=>G.hostid===V.id);fn.confirm({title:"Delete host",content:h.jsx(h.Fragment,{children:h.jsxs(Oe,{children:[h.jsx(q,{xs:24,children:h.jsxs(ce.Text,{children:["Are you sure you want to delete this host ",V.name,"?"]})}),K.length>0&&h.jsxs(q,{xs:24,children:[h.jsx(ce.Text,{color:"warning",children:"Host will be removed from the following networks:"}),h.jsx("ul",{children:K.map(G=>h.jsx("li",{children:G.network},G.id))})]})]})}),onOk:async()=>{try{await wa.deleteHost(V.id,!0),c(V.id),t.success({message:`Host ${V.name} deleted`})}catch(G){t.error({message:"Failed to delete host",description:Qt(G)})}}})},[t,r.nodes,c]),P=l.useCallback(()=>{fn.confirm({title:"Refresh all hosts keys",content:"Are you sure you want to refresh all hosts keys?",onOk:async()=>{try{E(!0),await wa.refreshAllHostsKeys(),t.success({message:"Hosts keys refreshing...",description:"Host key pairs are refreshing. This may take a while."})}catch(V){t.error({message:"Failed to refresh hosts keys",description:Qt(V)})}finally{E(!1)}}})},[t]),M=l.useMemo(()=>[{title:"Name",dataIndex:"name",render:(V,K)=>h.jsx(du,{to:Wf(K),children:K.name}),sorter(V,K){return V.name.localeCompare(K.name)},defaultSortOrder:"ascend"},{title:"Endpoint",dataIndex:"endpointip",render:V=>h.jsx("div",{onClick:K=>K.stopPropagation(),children:h.jsx(ce.Text,{children:V})})},{title:"Public Port",dataIndex:"listenport",render:V=>h.jsx("div",{onClick:K=>K.stopPropagation(),children:h.jsx(ce.Text,{children:V})})},{title:"Version",dataIndex:"version",render:V=>h.jsx("div",{onClick:K=>K.stopPropagation(),children:h.jsx(ce.Text,{children:V})})},{title:"Health Status",render(V,K){const G=r.nodes.filter(Q=>Q.hostid===K.id).map(Q=>io(Q)).map(Q=>{switch(Q){case"healthy":return 3;case"warning":return 2;case"error":return 1;default:return 0}}).filter(Q=>Q!==0);let re=Number.MAX_SAFE_INTEGER;switch(G.forEach(Q=>{re=Math.min(re,Q)}),re){default:return h.jsx(Xr,{children:"Unknown"});case 1:return h.jsx(Xr,{color:"error",children:"Error"});case 2:return h.jsx(Xr,{color:"warning",children:"Warning"});case 3:return h.jsx(Xr,{color:"success",children:"Healthy"})}}},{width:"1rem",render(V,K){return h.jsx(Mo,{placement:"bottomRight",menu:{items:[{key:"default",label:K.isdefault?"Unmake default":"Make default",onClick:G=>{G.domEvent.stopPropagation(),T(K)}},{key:"refresh",label:"Refresh Host Keys",onClick:G=>{G.domEvent.stopPropagation(),_(K)}},{key:"edit",label:"Edit Host",onClick:G=>{G.domEvent.stopPropagation(),D(K)}},{key:"delete",label:"Delete Host",danger:!0,onClick:G=>{G.domEvent.stopPropagation(),j(K)}}]},children:h.jsx(ut,{type:"text",icon:h.jsx(Ya,{})})})}}],[T,j,D,_,r.nodes]),A=l.useMemo(()=>[{title:"Name",dataIndex:"name",sorter(V,K){return V.name.localeCompare(K.name)},defaultSortOrder:"ascend"},{title:"Endpoint",dataIndex:"endpointip"},{title:"Public Port",dataIndex:"listenport"},{width:"1rem",render(V,K){return h.jsx(Mo,{placement:"bottomRight",menu:{items:[{key:"default",label:h.jsx(ce.Text,{onClick:G=>{G.stopPropagation(),T(K)},children:K.isdefault?"Unmake default":"Make default"})},{key:"edit",label:h.jsx(ce.Text,{onClick:G=>{G.stopPropagation(),D(K)},children:"Edit Host"})}]},children:h.jsx(ut,{type:"text",icon:h.jsx(Ya,{})})})}}],[T,D]),B=l.useMemo(()=>[{title:"Name",dataIndex:"netid",sorter(V,K){return V.netid.localeCompare(K.netid)},defaultSortOrder:"ascend"},{title:"Address Range (IPv4)",dataIndex:"addressrange"},{title:"Address Range (IPv6)",dataIndex:"addressrange6"},y?{title:"Connection Status",render(V,K){const G=r.nodes.some(re=>re.network===K.netid&&re.hostid===y.id);return h.jsx(po,{checked:G,onChange:()=>{fn.confirm({title:`${G?"Disconnect":"Connect"} host ${y.name} ${G?"from":"to"} ${K.netid}`,async onOk(){try{await wa.updateHostsNetworks(y.id,K.netid,G?"leave":"join"),t.success({message:`Host successfully ${G?"removed from":"added to"} network. It might take a while to reflect`,description:""})}catch{t.error({message:`Failed to ${G?"remove":"add"} host ${G?"from":"to"} network`})}}})}},y.id)}}:{}],[t,y,r.nodes]),F=l.useCallback(()=>h.jsx(Nr,{loading:!g&&r.isFetchingHosts,active:!0,title:!0,className:"page-padding",children:h.jsx(Oe,{className:"",children:h.jsx(q,{xs:24,children:h.jsx(Zn,{columns:M,dataSource:N,rowKey:"id",onRow:V=>({onClick:()=>{o(Wf(V))}})})})})}),[N,g,r.isFetchingHosts,M,o]),H=l.useCallback(()=>h.jsx(Nr,{loading:!g&&r.isFetchingHosts,active:!0,title:!0,className:"page-padding",children:h.jsx(h.Fragment,{children:h.jsxs(Oe,{className:"",justify:"space-between",children:[h.jsxs(q,{xs:12,children:[h.jsx(Oe,{style:{width:"100%"},children:h.jsx(q,{xs:24,children:h.jsx(ce.Title,{style:{marginTop:"0px"},level:5,children:"Hosts"})})}),h.jsx(Oe,{style:{marginTop:"1rem"},children:h.jsx(q,{xs:23,children:h.jsx(Zn,{columns:A,dataSource:N,rowKey:"id",size:"small",rowClassName:V=>V.id===y?.id?"selected-row":"",onRow:V=>({onClick:()=>{y?.id===V.id?S(null):S(V)}})})})})]}),h.jsxs(q,{xs:12,children:[h.jsx(Oe,{style:{width:"100%"},children:h.jsx(q,{xs:12,children:h.jsx(ce.Title,{style:{marginTop:"0px"},level:5,children:"Networks"})})}),h.jsx(Oe,{style:{marginTop:"1rem"},children:h.jsx(q,{xs:24,children:h.jsx(Zn,{columns:B,dataSource:I,rowKey:"netid",size:"small"})})})]})]})})}),[g,r.isFetchingHosts,A,N,y,B,I]),W=l.useMemo(()=>[{key:"overview",label:"Overview",children:F()},{key:"network-access",label:"Network Access Management",children:H()}],[F,H]);return l.useEffect(()=>{u(),d(),v(!0)},[u,d]),l.useEffect(()=>{a.length<=1&&!b&&(x(!0),t.info({message:i("info.connectmultiplehosts"),description:i("info.connectatleasttwohostsonanetworktobegincommunication"),duration:10,btn:h.jsx(h.Fragment,{children:h.jsx(ut,{type:"primary",size:"small",onClick:()=>O(!0),children:i("hosts.connectahost")})})}))},[b,a.length,t,i]),h.jsxs(ao.Content,{className:"HostsPage",style:{position:"relative",height:"100%",padding:e.isFullScreen?0:24},children:[h.jsxs(Nr,{loading:!g&&r.isFetchingHosts,active:!0,title:!0,className:"page-padding",children:[a.length===0&&h.jsxs(h.Fragment,{children:[h.jsxs(Oe,{className:"page-padding",style:{background:"linear-gradient(90deg, #52379F 0%, #B66666 100%)"},children:[h.jsxs(q,{xs:24*2/3,children:[h.jsx(ce.Title,{level:3,style:{color:"white "},children:"Hosts"}),h.jsx(ce.Text,{style:{color:"white "},children:"Hosts are your devices. Servers, devices, VM's, containers, laptops, and more can all be Hosts. Windows, Linux, Mac, and FreeBSD are all supported. Register a Host with your server and add them to networks to give them secure access to other hosts and resources."})]}),h.jsx(q,{xs:24*1/3,style:{position:"relative"},children:h.jsxs(Jn,{className:"header-card",style:{height:"20rem",position:"absolute",width:"100%"},children:[h.jsx(ce.Title,{level:3,children:"Add a Key"}),h.jsx(ce.Text,{children:"Start creating your network by adding controllable devices as “hosts” on your platform. Servers, VM’s, your laptop, and more are all fair game."}),h.jsx(Oe,{style:{marginTop:"auto"},children:h.jsx(q,{children:h.jsxs(ut,{type:"primary",size:"large",onClick:()=>O(!0),children:[h.jsx(Dr,{})," Connect a Host"]})})})]})})]}),h.jsxs(Oe,{style:{marginTop:"8rem",marginBottom:"4rem",padding:"0px 5.125rem"},gutter:[0,20],children:[h.jsx(q,{xs:24,children:h.jsx(ce.Title,{level:3,children:"Connect a Host"})}),h.jsx(q,{xs:7,style:{marginRight:"1rem"},children:h.jsxs(Jn,{children:[h.jsx(ce.Title,{level:4,style:{marginTop:"0px"},children:"Connect via Enrollment Keys"}),h.jsxs(ce.Text,{children:["Create an enrollment key which defines the networks a host has access to. Then join via cli"," ",h.jsx("code",{children:"netclient join -t "})," or the netclient GUI, and the host will join all of the defined networks."]})]})}),h.jsx(q,{xs:7,style:{marginRight:"1rem"},children:h.jsxs(Jn,{children:[h.jsx(ce.Title,{level:4,style:{marginTop:"0px"},children:"Connect via user auth"}),h.jsxs(ce.Text,{children:["If you are an authorized user on the system, you can join a network directly using either basic auth or sso. ",h.jsx("code",{children:"netclient join -s -n [-u ]"})]})]})}),h.jsx(q,{xs:7,children:h.jsxs(Jn,{children:[h.jsx(ce.Title,{level:4,style:{marginTop:"0px"},children:"Add host directly"}),h.jsxs(ce.Text,{children:["If a host is already registered with the server, you can add it into any network directly from the dashboard. Simply go to Network Access Management tab under the"," ",h.jsx(du,{to:Kt.HOSTS_ROUTE,children:"Hosts page"}),"."]})]})})]})]}),a.length>0&&h.jsxs(h.Fragment,{children:[h.jsx(Oe,{className:"page-row-padding",children:h.jsx(q,{xs:24,children:h.jsx(ce.Title,{level:3,children:"Hosts"})})}),h.jsxs(Oe,{className:"page-row-padding",justify:"space-between",children:[h.jsx(q,{xs:12,md:8,children:h.jsx(Ut,{size:"large",placeholder:"Search hosts",value:f,onChange:V=>p(V.target.value),prefix:h.jsx(_r,{})})}),h.jsxs(q,{xs:12,md:6,style:{textAlign:"right"},children:[h.jsxs(ut,{size:"large",style:{marginRight:"1rem"},onClick:()=>P(),loading:C,children:[h.jsx(i7,{})," Refesh Hosts Keys"]}),h.jsxs(ut,{type:"primary",size:"large",onClick:()=>O(!0),children:[h.jsx(Dr,{})," Connect a host"]})]})]}),h.jsx(Oe,{className:"page-row-padding",justify:"space-between",children:h.jsx(q,{xs:24,children:h.jsx(Ah,{defaultActiveKey:"1",items:W})})})]})]}),n,h.jsx(L3,{isOpen:$,onFinish:()=>{O(!1),o(Kt.HOSTS_ROUTE)},onCancel:()=>O(!1)})]})}function Al({condition:e,redirectPath:t,children:n}){return e??=()=>tn.getState().isLoggedIn(),t??=Kt.LOGIN_ROUTE,e()?n:h.jsx(Zwe,{to:t,replace:!0})}function l_e({isOpen:e,onCreateUser:t,onCancel:n}){const[r]=Xe.useForm(),[o,i]=er.useNotification(),a=tn(),s=a.serverConfig?.IsEE==="yes",[c,u]=l.useState(!1),[d,f]=l.useState(!1),p=Xe.useWatch("password",r),g=()=>{r.resetFields()},v=async()=>{try{const S=await r.validateFields();S.issuperadmin=!1;const b=(await na.createUser(S)).data;g(),o.success({message:`User ${b.username} created`}),t(b)}catch(S){o.error({message:"Failed to create user",description:Qt(S)})}},y=()=>{a.user?.issuperadmin?f(!1):(!s&&!yi&&u(!0),f(!0))};return l.useEffect(()=>{y()},[a.user]),h.jsxs(fn,{title:h.jsx("span",{style:{fontSize:"1.25rem",fontWeight:"bold"},children:"Create a User"}),open:e,onCancel:S=>{g(),n?.(S)},footer:null,centered:!0,className:"CustomModal",children:[h.jsx(Jt,{style:{margin:"0px 0px 2rem 0px"}}),h.jsx("div",{className:"CustomModalBody",children:h.jsxs(Xe,{name:"add-user-form",form:r,layout:"vertical",initialValues:{isadmin:c},children:[h.jsx(Xe.Item,{label:"Username",name:"username",rules:[{required:!0}],children:h.jsx(Ut,{placeholder:"Username"})}),h.jsx(Xe.Item,{label:"Password",name:"password",rules:[{required:!0}],children:h.jsx(Ut,{placeholder:"Password",type:"password"})}),h.jsx(Xe.Item,{label:"Confirm Password",name:"confirm-password",rules:[{required:!0,message:""},{validator(S,b){return b!==p?Promise.reject("Password must match"):Promise.resolve()}}],dependencies:["password"],children:h.jsx(Ut,{placeholder:"Confirm Password",type:"password"})}),h.jsx(Xe.Item,{label:"Is admin",name:"isadmin",valuePropName:"checked",children:h.jsx(po,{disabled:d})}),h.jsx(Oe,{children:h.jsx(q,{xs:24,style:{textAlign:"right"},children:h.jsx(Xe.Item,{children:h.jsx(ut,{type:"primary",onClick:v,children:"Create User"})})})})]})}),i]})}function c_e({isOpen:e,user:t,onUpdateUser:n,onCancel:r}){const[o]=Xe.useForm(),[i]=Xe.useForm(),[a,s]=er.useNotification(),c=tn(),u=c.serverConfig?.IsEE==="yes",d=Xe.useWatch("password",o),f=async()=>{try{const v=await o.validateFields(),{["confirm-password"]:y,...S}=v;let b=t;if(c.user?.issuperadmin||c.user?.isadmin&&!t.isadmin||t.username===c.username&&v.password)b=(await na.updateUser(t.username,{...t,...S})).data;else{a.error({message:"You are not authorized to update this user"});return}a.success({message:`User ${b.username} updated`}),n(b)}catch(v){a.error({message:"Failed to update user",description:Qt(v)})}},p=l.useCallback(()=>c.user?.issuperadmin?!1:!!(t.isadmin&&t.username!==c.username),[c.user?.issuperadmin,t.username,c.username]),g=l.useCallback(()=>!c.user?.issuperadmin,[u,yi,c.user?.issuperadmin]);return h.jsxs(fn,{title:h.jsxs("span",{style:{fontSize:"1.25rem",fontWeight:"bold"},children:["Update user ",t.username||""]}),open:e,destroyOnClose:!0,onCancel:v=>{n2e([o,i])&&r?.(v)},footer:null,centered:!0,className:"CustomModal",children:[h.jsx(Jt,{style:{margin:"0px 0px 2rem 0px"}}),h.jsxs("div",{className:"CustomModalBody",children:[h.jsxs(Xe,{name:"update-user-form",form:o,layout:"vertical",children:[h.jsx(Xe.Item,{label:"Password",name:"password",children:h.jsx(Ut,{disabled:p(),placeholder:"(unchanged)",type:"password"})}),h.jsx(Xe.Item,{label:"Confirm Password",name:"confirm-password",rules:[{validator(v,y){return y!==d?Promise.reject("Password must match"):Promise.resolve()}}],dependencies:["password"],children:h.jsx(Ut,{disabled:p(),placeholder:"(unchanged)",type:"password"})}),c.user?.issuperadmin&&h.jsx(uc,{ghost:!0,size:"small",defaultActiveKey:t.username!==c.username?["user-auth"]:[],children:h.jsx(uc.Panel,{header:"User authorizations",children:h.jsx(Xe.Item,{label:"Is Admin",name:"isadmin",valuePropName:"checked",initialValue:t.isadmin,children:h.jsx(po,{disabled:g()})})},"user-auth")})]}),h.jsx(Oe,{children:h.jsx(q,{xs:24,style:{textAlign:"right"},children:h.jsx(Xe.Item,{children:h.jsx(ut,{type:"primary",onClick:f,children:"Update User"})})})})]}),s]})}function u_e({isOpen:e,onCancel:t,onTransferSuccessful:n}){const[r,o]=er.useNotification(),[i,a]=l.useState(!1),[s,c]=l.useState([]);tn();const[u,d]=l.useState(null),f=l.useCallback(async()=>{try{const v=(await na.getUsers()).data;c(v.filter(y=>y.isadmin))}catch(v){r.error({message:"Failed to load users",description:Qt(v)})}},[r]),p=v=>{d(s.find(y=>y.username===v)||null)},g=l.useCallback(async()=>{if(!u){er.info({message:"Please select an admin"});return}try{await na.transferSuperAdminRights(u.username),n?.(),r.success({message:"Super admin rights transferred"}),t?.()}catch(v){r.error({message:"Failed to transfer super admin rights",description:Qt(v)})}},[r,u,t,n]);return l.useEffect(()=>{f()},[f]),h.jsxs(fn,{title:h.jsx("span",{style:{fontSize:"1.25rem",fontWeight:"bold"},children:"Transfer Super Admin Rights"}),open:e,onCancel:v=>{t?.()},footer:null,className:"CustomModal",style:{minWidth:"50vw",minHeight:"20vh"},children:[h.jsx(Oe,{className:"",style:{padding:"20px 24px"},children:h.jsxs(q,{xs:24,children:[h.jsx(ce.Paragraph,{style:{marginBottom:"7px"},children:"Select an admin to transfer rights to"}),h.jsx(Lr,{style:{width:"100%"},placeholder:"Select an admin",onChange:p,options:s.map(v=>({value:v.username,label:v.username}))})]})}),h.jsx(Jt,{style:{margin:"0px 0px 2rem 0px"}}),h.jsx("div",{className:"CustomModalBody",children:h.jsx(Oe,{children:h.jsx(q,{xs:24,style:{textAlign:"right"},children:h.jsx(ut,{size:"middle",onClick:g,danger:!0,loading:i,children:"Transfer"})})})}),o]})}function d_e(e){const[t,n]=er.useNotification(),r=tn(),o=r.serverConfig?.IsEE==="yes",[i,a]=l.useState([]),[s,c]=l.useState(!0),[u,d]=l.useState(""),[f,p]=l.useState(!1),[g,v]=l.useState(!1),[y,S]=l.useState(!1),[b,x]=l.useState(null),C=l.useCallback(async()=>{try{c(!0);const A=(await na.getUsers()).data;a(A)}catch(A){t.error({message:"Failed to load users",description:Qt(A)})}finally{c(!1)}},[t]),E=l.useCallback(async A=>{fn.confirm({title:"Delete user",content:`Are you sure you want to delete user ${A.username}?`,onOk:async()=>{try{await na.deleteUser(A.username),t.success({message:`User ${A.username} deleted`}),a(B=>B.filter(F=>F.username!==A.username))}catch(B){t.error({message:"Failed to delete user",description:Qt(B)})}}})},[t]),$=l.useCallback(A=>{x(A),v(!0)},[]),O=l.useCallback(()=>{if(yi){window.location=ch("invite-user");return}else p(!0)},[]),I=A=>A.issuperadmin?"success":A.isadmin?"warning":"default",N=A=>A.issuperadmin?"Super Admin":A.isadmin?"Admin":"User",_=l.useCallback(A=>r.user?.issuperadmin?!1:r.user?.isadmin?A.username===r.username?!1:!!(A.issuperadmin||A.isadmin):!0,[r.user,r.username]),T=l.useMemo(()=>[{title:"Username",dataIndex:"username",sorter(A,B){return A.username.localeCompare(B.username)},defaultSortOrder:"ascend"},{title:"Role",render(A,B){return h.jsx(Xr,{color:I(B),children:N(B)})}},{width:"1rem",render(A,B){return h.jsx(Mo,{placement:"bottomRight",menu:{items:[{key:"edit",label:"Edit",disabled:_(B),title:_(B)?"You cannot edit another admin user":null,onClick:F=>{F.domEvent.stopPropagation();const H=structuredClone(B);$(H)}},{key:"default",disabled:_(B),title:_(B)?"You cannot delete another admin user or the super admin":null,label:h.jsx(ce.Text,{disabled:_(B),onClick:F=>{F.stopPropagation(),E(B)},children:"Delete"})}].concat(o&&B.issuperadmin&&r.username===B.username?[{key:"transfer",label:"Transfer Super Admin Rights",disabled:!1,title:null,onClick:F=>{F.domEvent.stopPropagation(),S(!0)}}]:[])},children:h.jsx(ut,{type:"text",icon:h.jsx(Ya,{})})})}}],[E,$,_]),D=l.useMemo(()=>i.filter(A=>A.username.toLowerCase().includes(u.trim().toLowerCase())),[i,u]),j=async A=>{if(A)try{const B=await(await na.getUser(A)).data;r.setStore({user:B})}catch(B){t.error({message:"Failed to get user details",description:Qt(B)})}},P=l.useCallback(()=>h.jsxs(h.Fragment,{children:[h.jsxs(Oe,{children:[h.jsx(q,{xs:24,md:8,children:h.jsx(Ut,{size:"large",placeholder:"Search users",prefix:h.jsx(_r,{}),value:u,onChange:A=>d(A.target.value)})}),h.jsx(q,{xs:24,md:16,style:{textAlign:"right"},children:h.jsxs(ut,{type:"primary",size:"large",onClick:O,children:[h.jsx(Dr,{})," Add a User"]})})]}),h.jsx(Oe,{className:"",style:{marginTop:"1rem"},children:h.jsx(q,{xs:24,children:h.jsx(Zn,{columns:T,dataSource:D,rowKey:"username"})})})]}),[D,u,T,O]),M=l.useMemo(()=>[{key:"users",label:"Users",children:P()}],[P]);return l.useEffect(()=>{C()},[C,o]),h.jsxs(ao.Content,{className:"UsersPage",style:{position:"relative",height:"100%",padding:e.isFullScreen?0:24},children:[h.jsxs(Nr,{loading:s,active:!0,title:!0,className:"page-padding",children:[i.length===0&&h.jsxs(h.Fragment,{children:[h.jsxs(Oe,{className:"page-padding",style:{background:"linear-gradient(90deg, #52379F 0%, #B66666 100%)"},children:[h.jsxs(q,{xs:24*2/3,children:[h.jsx(ce.Title,{level:3,style:{color:"white "},children:"Users"}),h.jsxs(ce.Text,{style:{color:"white "},children:[Sr().productName," allows you to perform Identity and Access Management (IAM) with users. You can create multiple profiles and restrict access to networks."]})]}),h.jsx(q,{xs:24*1/3,style:{position:"relative"},children:h.jsxs(Jn,{className:"header-card",style:{height:"20rem",position:"absolute",width:"100%"},children:[h.jsx(ce.Title,{level:3,children:"Add a User"}),h.jsxs(ce.Text,{children:["Users access the ",Sr().productName," UI to configure their networks."]}),h.jsx(Oe,{style:{marginTop:"auto"},children:h.jsx(q,{children:h.jsxs(ut,{type:"primary",size:"large",onClick:O,children:[h.jsx(Dr,{})," Create a User"]})})})]})})]}),h.jsxs(Oe,{style:{marginTop:"8rem",padding:"0px 5.125rem"},gutter:[0,20],children:[h.jsx(q,{xs:24,children:h.jsx(ce.Title,{level:3,children:"Add a User"})}),h.jsx(q,{xs:7,style:{marginRight:"1rem"},children:h.jsxs(Jn,{children:[h.jsxs(ce.Title,{level:4,style:{marginTop:"0px"},children:["Manage access to ",Sr().productName]}),h.jsxs(ce.Text,{children:[Sr().productName," allows you to perform Identity and Access Management (IAM) with users. You can create multiple profiles and restrict access to networks."]})]})}),h.jsx(q,{xs:7,style:{marginRight:"1rem"},children:h.jsxs(Jn,{children:[h.jsx(ce.Title,{level:4,style:{marginTop:"0px"},children:"User Groups"}),h.jsxs(ce.Text,{children:["Easily manage access to a ",Sr().productName," resources by creating user groups. You can create multiple groups and assign users to them, then control access to the groups. This is a"," ",h.jsx("a",{href:ch("upgrade"),referrerPolicy:"no-referrer",children:"Pro"})," ","feature"]})]})}),h.jsx(q,{xs:7,children:h.jsxs(Jn,{children:[h.jsxs(ce.Title,{level:4,style:{marginTop:"0px"},children:["OAuth users on ",Sr().productName]}),h.jsxs(ce.Text,{children:[Sr().productName," supports OAuth (Social Sign-On) for user authentication. You can configure your OAuth provider to allow users to login to ",Sr().productName,"."]})]})})]})]}),i.length>0&&h.jsxs(h.Fragment,{children:[h.jsx(Oe,{className:"page-row-padding",children:h.jsx(q,{xs:24,children:h.jsx(ce.Title,{level:3,children:"Users"})})}),h.jsx(Oe,{className:"page-row-padding",justify:"space-between",children:h.jsx(q,{xs:24,children:h.jsx(Ah,{defaultActiveKey:"users",items:M})})})]})]}),n,h.jsx(l_e,{isOpen:f,onCreateUser:A=>{a([...i,A]),p(!1)},onCancel:()=>{p(!1)}}),b&&h.jsx(c_e,{isOpen:g,user:b,onUpdateUser:A=>{a(i.map(B=>B.username===A.username?A:B)),v(!1)},onCancel:()=>{v(!1),x(null)}},b.username),h.jsx(u_e,{isOpen:y,onCancel:()=>S(!1),onTransferSuccessful:()=>{j(r.username),C()}})]})}function f_e(e){const[t]=Xe.useForm(),n=tn(),r=bi(),{t:o}=Hg(),i=Xs(),[a,s]=l.useState(!1),c="https://www.netmaker.io/self-hosted-updates",u=async f=>{try{const p=await(await W9.login(f)).data;n.setStore({jwt:p.Response.AuthToken,username:p.Response.UserName}),r(Kt.DASHBOARD_ROUTE)}catch(p){er.error({message:"Failed to login",description:p}),r(Kt.LOGIN_ROUTE)}},d=async()=>{try{const f=await t.validateFields();s(!0),await na.createAdminUser(f),window.open(c,"_blank"),er.info({message:"A Survey has been opened in another tab.",description:"Complete this optional survey to help improve the Netmaker experience.",duration:3e4}),u(f)}catch(f){er.error({message:"Failed to create admin",description:Qt(f)}),f instanceof Ji&&f.response?.status===400&&r(Kt.LOGIN_ROUTE)}finally{s(!1)}};return h.jsx(Bg,{children:h.jsx(ao,{style:{height:"100%",minHeight:"100vh",justifyContent:"center",alignItems:"center"},children:h.jsxs(ao.Content,{style:{marginTop:"15vh",position:"relative",height:"fit-content",width:"40%",padding:e.isFullScreen?0:24},children:[h.jsx(Oe,{children:h.jsx(q,{xs:24,children:h.jsx(ce.Title,{level:2,children:o("auth.signup")})})}),h.jsxs(Xe,{form:t,layout:"vertical",onKeyUp:f=>{f.key==="Enter"&&d()},children:[h.jsx(Xe.Item,{name:"username",label:o("signin.username"),rules:[{required:!0}],children:h.jsx(Ut,{placeholder:String(o("signin.username")),size:"large",prefix:h.jsx(f9,{})})}),h.jsx(Xe.Item,{name:"password",label:o("signin.password"),rules:[{required:!0}],children:h.jsx(Ut,{placeholder:String(o("signin.password")),type:"password",size:"large",prefix:h.jsx(jE,{})})}),h.jsx(Xe.Item,{name:"confirm-password",label:o("signin.confirm-password"),rules:[{required:!0}],children:h.jsx(Ut,{placeholder:String(o("signin.confirm-password")),type:"password",size:"large",prefix:h.jsx(jE,{})})}),h.jsxs(ce.Text,{children:[o("auth.terms5")," ",h.jsx("a",{href:"https://www.netmaker.io/terms-and-conditions",target:"_blank",children:o("signin.terms2")})," ",o("signin.terms3")," ",h.jsx("a",{href:"https://www.netmaker.io/privacy-policy",target:"_blank",children:o("signin.terms4")}),"."]}),h.jsx(Xe.Item,{style:{marginTop:"1.5rem"},children:h.jsx(ut,{type:"primary",block:!0,onClick:d,loading:a,children:o("signin.signup")})}),h.jsx(Jt,{children:h.jsx(ce.Text,{children:o("common.or")})}),h.jsx(Xe.Item,{children:h.jsx(ut,{type:"link",block:!0,onClick:()=>r(Kt.LOGIN_ROUTE),loading:a,children:o("auth.login")})})]})]})})},i.pathname)}function h_e(e){const{hostId:t,networkId:n}=ix(),r=bi(),o=tn(),[i,a]=er.useNotification(),{token:s}=Uo.useToken(),c=hx(),u=o.deleteNode,[d,f]=l.useState(!1),[p,g]=l.useState(!1),[v,y]=l.useState(null),[S,b]=l.useState(null),[x,C]=l.useState(""),E=o.networks.find(F=>F.netid===n),$=l.useMemo(()=>[{title:"Name",dataIndex:"name",render:F=>h.jsxs(ce.Text,{children:[F," ",F===v?.defaultinterface?h.jsx(Xr,{children:"Default"}):h.jsx(h.Fragment,{})]})},{title:"IP Address",dataIndex:"addressString"}],[v?.defaultinterface]),O=l.useCallback(()=>{g(!1)},[]),I=l.useCallback(()=>{switch(S?io(S):"unknown"){default:return h.jsx(Xr,{children:"● Unknown"});case"error":return h.jsx(Xr,{color:"error",children:"● Error"});case"warning":return h.jsx(Xr,{color:"warning",children:"● Warning"});case"healthy":return h.jsx(Xr,{color:"success",children:"● Healthy"})}},[S]),N=l.useCallback(()=>{if(f(!0),!n){r(Kt.NETWORKS_ROUTE);return}if(!t){r(_f(n));return}const F=o.hosts.find(W=>W.id===t),H=o.nodes.find(W=>W.network===n&&W.hostid===t);if(!F||!H){i.error({message:`Host ${t} not found`}),r(_f(n));return}y(F),b(H),f(!1)},[n,t,o.hosts,o.nodes,r,i]),_=l.useCallback(async F=>{try{if(!t||!S||!n)throw new Error("Host or network not found");await ur.deleteNode(S?.id,n,F),F&&u(S.id),i.success({message:`Host ${t} deleted`}),r(_f(n))}catch(H){i.error({message:"Failed to delete host from network",description:Qt(H)})}},[t,S,n,i,u,r]),T=l.useCallback(async F=>{try{if(!t||!S||!n)throw new Error("Host or network not found");const H=(await ur.updateNode(S.id,n,{...S,connected:F})).data;o.updateNode(S.id,H),i.success({message:`Successfully ${F?"connected":"disconnected"}`,description:`Host is now ${F?"connected to":"disconnected from"} network ${n}.`})}catch(H){i.error({message:`Failed to ${F?"connect":"disconnect"} host ${F?"to":"from"} network`,description:Qt(H)})}},[t,S,n,i,o]),D=()=>{fn.confirm({title:`Do you want to ${S?.connected?"disconnect":"connect"} host ${v?.name} ${S?.connected?"from":"to"} network ${n}?`,icon:h.jsx(lc,{}),onOk(){T(!S?.connected)}})},j=()=>{let F=!1;fn.confirm({title:`Do you want to remove host ${v?.name} from network ${n}?`,content:h.jsx(h.Fragment,{children:h.jsx(Oe,{children:h.jsx(q,{xs:24,children:h.jsx(Xe.Item,{htmlFor:"force-delete",label:"Force delete",valuePropName:"checked",style:{marginBottom:"0px"},children:h.jsx(fd,{id:"force-delete",onChange:H=>{F=H.target.checked}})})})})}),icon:h.jsx(lc,{}),onOk(){_(F)}})},P=l.useCallback(()=>{t&&fn.confirm({title:"Refresh host keys",content:"Are you sure you want to refresh this host's keys?",onOk:async()=>{try{await wa.refreshHostKeys(t),i.success({message:"Host keys refreshing...",description:"Host key pairs are refreshing. This may take a while."})}catch(F){i.error({message:"Failed to refresh host keys",description:Qt(F)})}}})},[i,t]),M=l.useCallback(()=>v?h.jsxs("div",{className:"",style:{width:"100%",display:"flex",justifyContent:"center",alignItems:"center",flexFlow:"column nowrap"},children:[h.jsxs(Jn,{style:{width:"50%",marginTop:"2rem"},children:[h.jsx(ce.Title,{level:5,style:{marginTop:"0rem"},children:"Network settings"}),h.jsxs(Oe,{style:{borderBottom:`1px solid ${s.colorBorder}`,padding:".5rem 0rem"},"data-nmui-intercom":"network-host-details_network",children:[h.jsx(q,{xs:12,children:h.jsx(ce.Text,{disabled:!0,children:"Network"})}),h.jsx(q,{xs:12,children:h.jsx(ce.Text,{children:S?.network??""})})]}),h.jsxs(Oe,{style:{borderBottom:`1px solid ${s.colorBorder}`,padding:".5rem 0rem"},"data-nmui-intercom":"network-host-details_address",children:[h.jsx(q,{xs:12,children:h.jsx(ce.Text,{disabled:!0,children:"IP Address (IPv4)"})}),h.jsx(q,{xs:12,children:h.jsx(ce.Text,{children:S?.address??""})})]}),E&&E.isipv6&&h.jsxs(Oe,{style:{borderBottom:`1px solid ${s.colorBorder}`,padding:".5rem 0rem"},"data-nmui-intercom":"network-host-details_address6",children:[h.jsx(q,{xs:12,children:h.jsx(ce.Text,{disabled:!0,children:"IP Address (IPv6)"})}),h.jsx(q,{xs:12,children:h.jsx(ce.Text,{children:S?.address6??""})})]}),h.jsxs(Oe,{style:{borderBottom:`1px solid ${s.colorBorder}`,padding:".5rem 0rem"},"data-nmui-intercom":"network-host-details_localaddress",children:[h.jsx(q,{xs:12,children:h.jsx(ce.Text,{disabled:!0,children:"Local Address"})}),h.jsx(q,{xs:12,children:h.jsx(ce.Text,{children:S?.localaddress??""})})]}),S?.isegressgateway&&h.jsxs(Oe,{style:{borderBottom:`1px solid ${s.colorBorder}`,padding:".5rem 0rem"},"data-nmui-intercom":"network-host-details_egressgatewayranges",children:[h.jsx(q,{xs:12,children:h.jsx(ce.Text,{disabled:!0,children:"Egress Gateway Ranges"})}),h.jsx(q,{xs:12,children:h.jsx(ce.Text,{children:S?.egressgatewayranges?.join(", ")??""})})]}),h.jsxs(Oe,{style:{borderBottom:`1px solid ${s.colorBorder}`,padding:".5rem 0rem"},"data-nmui-intercom":"network-host-details_connected",children:[h.jsx(q,{xs:12,children:h.jsx(ce.Text,{disabled:!0,children:"Is Connected"})}),h.jsx(q,{xs:12,children:h.jsx(ce.Text,{children:S?.connected?"Yes":"No"})})]}),h.jsxs(Oe,{style:{borderBottom:`1px solid ${s.colorBorder}`,padding:".5rem 0rem"},"data-nmui-intercom":"network-host-details_persistentkeepalive",children:[h.jsx(q,{xs:12,children:h.jsx(ce.Text,{disabled:!0,children:"Persistent Keepalive"})}),h.jsx(q,{xs:12,children:h.jsx(ce.Text,{children:S?.persistentkeepalive??""})})]}),h.jsxs(Oe,{style:{borderBottom:`1px solid ${s.colorBorder}`,padding:".5rem 0rem"},"data-nmui-intercom":"network-host-details_defaultacl",children:[h.jsx(q,{xs:12,children:h.jsx(ce.Text,{disabled:!0,children:"Default ACL"})}),h.jsx(q,{xs:12,children:h.jsx(ce.Text,{children:S?.defaultacl??""})})]}),h.jsxs(Oe,{style:{borderBottom:`1px solid ${s.colorBorder}`,padding:".5rem 0rem"},"data-nmui-intercom":"network-host-details_dnson",children:[h.jsx(q,{xs:12,children:h.jsx(ce.Text,{disabled:!0,children:"DNS On"})}),h.jsx(q,{xs:12,children:h.jsx(ce.Text,{children:S?.dnson?"Yes":"No"})})]}),h.jsxs(Oe,{style:{borderBottom:`1px solid ${s.colorBorder}`,padding:".5rem 0rem"},"data-nmui-intercom":"network-host-details_lastcheckin",children:[h.jsx(q,{xs:12,children:h.jsx(ce.Text,{disabled:!0,children:"Last Check-in Time"})}),h.jsx(q,{xs:12,children:h.jsx(ce.Text,{children:Do((S?.lastcheckin??0)*1e3).format(VS)??""})})]}),h.jsxs(Oe,{style:{borderBottom:`1px solid ${s.colorBorder}`,padding:".5rem 0rem"},"data-nmui-intercom":"network-host-details_expdatetime",children:[h.jsx(q,{xs:12,children:h.jsx(ce.Text,{disabled:!0,children:"Expiration Date"})}),h.jsx(q,{xs:12,children:h.jsx(ce.Text,{children:Do((S?.expdatetime??0)*1e3).format(VS)??""})})]}),h.jsxs(Oe,{style:{borderBottom:`1px solid ${s.colorBorder}`,padding:".5rem 0rem"},"data-nmui-intercom":"network-host-details_lastmodified",children:[h.jsx(q,{xs:12,children:h.jsx(ce.Text,{disabled:!0,children:"Last Modified Time"})}),h.jsx(q,{xs:12,children:h.jsx(ce.Text,{children:Do((S?.lastmodified??0)*1e3).format(VS)??""})})]})]}),h.jsx(Jn,{style:{width:"50%",marginTop:"2rem"},children:h.jsx(uc,{ghost:!0,size:"small",children:h.jsxs(uc.Panel,{header:h.jsx(ce.Title,{level:5,style:{marginTop:"0rem"},children:"Global Settings"}),children:[h.jsxs(Oe,{style:{borderBottom:`1px solid ${s.colorBorder}`,padding:".5rem 0rem"},"data-nmui-intercom":"network-host-details_hostid",children:[h.jsx(q,{xs:12,children:h.jsx(ce.Text,{disabled:!0,children:"ID"})}),h.jsx(q,{xs:12,children:h.jsx(ce.Text,{children:v.id})})]}),h.jsxs(Oe,{style:{borderBottom:`1px solid ${s.colorBorder}`,padding:".5rem 0rem"},"data-nmui-intercom":"network-host-details_hostendpoint",children:[h.jsx(q,{xs:12,children:h.jsx(ce.Text,{disabled:!0,children:"Endpoint"})}),h.jsx(q,{xs:12,children:h.jsx(ce.Text,{children:v.endpointip})})]}),h.jsxs(Oe,{style:{borderBottom:`1px solid ${s.colorBorder}`,padding:".5rem 0rem"},"data-nmui-intercom":"network-host-details_hostlistenport",children:[h.jsx(q,{xs:12,children:h.jsx(ce.Text,{disabled:!0,children:"Listen Port"})}),h.jsx(q,{xs:12,children:h.jsx(ce.Text,{children:v.listenport})})]}),h.jsxs(Oe,{style:{borderBottom:`1px solid ${s.colorBorder}`,padding:".5rem 0rem"},"data-nmui-intercom":"network-host-details_hostmacaddress",children:[h.jsx(q,{xs:12,children:h.jsx(ce.Text,{disabled:!0,children:"MAC Address"})}),h.jsx(q,{xs:12,children:h.jsx(ce.Text,{children:v.macaddress})})]}),h.jsxs(Oe,{style:{borderBottom:`1px solid ${s.colorBorder}`,padding:".5rem 0rem"},"data-nmui-intercom":"network-host-details_hostmtu",children:[h.jsx(q,{xs:12,children:h.jsx(ce.Text,{disabled:!0,children:"MTU"})}),h.jsx(q,{xs:12,children:h.jsx(ce.Text,{children:v.mtu})})]}),h.jsxs(Oe,{style:{borderBottom:`1px solid ${s.colorBorder}`,padding:".5rem 0rem"},"data-nmui-intercom":"network-host-details_hostpublickey",children:[h.jsx(q,{xs:12,children:h.jsx(ce.Text,{disabled:!0,children:"Public Key"})}),h.jsx(q,{xs:12,children:h.jsx(ce.Text,{children:v.publickey})})]}),h.jsxs(Oe,{style:{borderBottom:`1px solid ${s.colorBorder}`,padding:".5rem 0rem"},"data-nmui-intercom":"network-host-details_hostos",children:[h.jsx(q,{xs:12,children:h.jsx(ce.Text,{disabled:!0,children:"Operating System"})}),h.jsx(q,{xs:12,children:h.jsx(ce.Text,{children:v.os})})]}),h.jsxs(Oe,{style:{borderBottom:`1px solid ${s.colorBorder}`,padding:".5rem 0rem"},"data-nmui-intercom":"network-host-details_hostversion",children:[h.jsx(q,{xs:12,children:h.jsx(ce.Text,{disabled:!0,children:"Version"})}),h.jsx(q,{xs:12,children:h.jsx(ce.Text,{children:v.version})})]}),h.jsxs(Oe,{style:{borderBottom:`1px solid ${s.colorBorder}`,padding:".5rem 0rem"},"data-nmui-intercom":"network-host-details_hostverbosity",children:[h.jsx(q,{xs:12,children:h.jsx(ce.Text,{disabled:!0,children:"Verbosity"})}),h.jsx(q,{xs:12,children:h.jsx(ce.Text,{children:v.verbosity})})]}),h.jsxs(Oe,{style:{borderBottom:`1px solid ${s.colorBorder}`,padding:".5rem 0rem"},"data-nmui-intercom":"network-host-details_hostdefaultinterface",children:[h.jsx(q,{xs:12,children:h.jsx(ce.Text,{disabled:!0,children:"Default Interface"})}),h.jsx(q,{xs:12,children:h.jsx(ce.Text,{children:v.defaultinterface})})]}),h.jsxs(Oe,{style:{borderBottom:`1px solid ${s.colorBorder}`,padding:".5rem 0rem"},"data-nmui-intercom":"network-host-details_hostisdefault",children:[h.jsx(q,{xs:12,children:h.jsx(ce.Text,{disabled:!0,children:"Default Host"})}),h.jsx(q,{xs:12,children:h.jsx(ce.Text,{children:v.isdefault?"Yes":"No"})})]}),h.jsxs(Oe,{style:{borderBottom:`1px solid ${s.colorBorder}`,padding:".5rem 0rem"},"data-nmui-intercom":"network-host-details_hostisstatic",children:[h.jsx(q,{xs:12,children:h.jsx(ce.Text,{disabled:!0,children:"Static Endpoint"})}),h.jsx(q,{xs:12,children:h.jsx(ce.Text,{children:v.isstatic?"Yes":"No"})})]}),h.jsxs(Oe,{style:{borderBottom:`1px solid ${s.colorBorder}`,padding:".5rem 0rem"},"data-nmui-intercom":"network-host-details_hostdebug",children:[h.jsx(q,{xs:12,children:h.jsx(ce.Text,{disabled:!0,children:"Debug"})}),h.jsx(q,{xs:12,children:h.jsx(ce.Text,{children:v.debug?"Yes":"No"})})]})]},"details")})})]}):h.jsx(Nr,{active:!0}),[v,E,S,s.colorBorder]),A=l.useCallback(()=>h.jsxs(h.Fragment,{children:[h.jsx(Oe,{children:h.jsx(q,{xs:12,md:8,children:h.jsx(Ut,{size:"large",placeholder:"Search interfaces",value:x,onChange:F=>C(F.target.value),prefix:h.jsx(_r,{})})})}),h.jsx(Oe,{style:{marginTop:"1rem"},children:h.jsx(q,{xs:24,children:h.jsx(Zn,{columns:$,dataSource:v?.interfaces?.filter(F=>`${F.name}${F.addressString}`.toLocaleLowerCase().includes(x.toLocaleLowerCase().trim()))??[],rowKey:F=>`${F.name}${F.addressString}`})})})]}),[v?.interfaces,$,x]),B=l.useMemo(()=>[{key:"overview",label:"Overview",children:v?M():h.jsx(Nr,{active:!0})},{key:"network-interface",label:"Network Interfaces",children:v?A():h.jsx(Nr,{active:!0})}],[A,M,v]);return l.useEffect(()=>{N()},[N]),l.useEffect(()=>{c.get("edit")==="true"&&g(!0)},[]),h.jsxs(ao.Content,{className:"NetworkHostDetailsPage",style:{position:"relative",height:"100%",padding:e.isFullScreen?0:24},children:[h.jsx(Nr,{loading:d,active:!0,className:"page-padding",children:h.jsx(Oe,{className:"tabbed-page-row-padding",children:h.jsxs(q,{xs:24,children:[h.jsx(du,{to:_f(n||""),children:"View Network"}),h.jsxs(Oe,{children:[h.jsx(q,{xs:18,children:h.jsxs(ce.Title,{level:2,style:{marginTop:".5rem",marginBottom:"2rem"},children:[v?.name??"...",S?.pendingdelete===!1&&h.jsx("span",{style:{marginLeft:"1rem"},children:I()}),S?.pendingdelete!==!1&&h.jsx("span",{style:{marginLeft:"1rem"},children:h.jsx(Un,{status:"processing",color:"red",text:"Removing..."})})]})}),h.jsx(q,{xs:6,style:{textAlign:"right"},children:h.jsx(Mo,{placement:"bottomRight",menu:{items:[{key:"refresh-key",label:"Refresh Key",disabled:S?.pendingdelete!==!1,title:S?.pendingdelete!==!1?"Host is being removed from network":"",onClick:F=>{F.domEvent.stopPropagation(),P()}},{key:"edit",label:"Edit",disabled:S?.pendingdelete!==!1,title:S?.pendingdelete!==!1?"Host is being removed from network":"",onClick:F=>{F.domEvent.stopPropagation(),g(!0)}},{key:"global-hpst",label:"View Global Host",onClick:F=>{F.domEvent.stopPropagation(),r(Wf(t??""))}},{key:"disconnect",label:h.jsxs(ce.Text,{type:"warning",children:[S?.connected?"Disconnect from":"Connect to"," network"]}),onClick:F=>{F.domEvent.stopPropagation(),D()}},{key:"remove",label:h.jsx(ce.Text,{type:"danger",children:"Remove from network"}),onClick:F=>{F.domEvent.stopPropagation(),j()}}]},children:h.jsxs(ut,{type:"default",style:{marginRight:".5rem"},children:[h.jsx(T3,{})," Host Settings"]})})})]}),h.jsx(Ah,{items:B})]})})}),a,!!S&&h.jsx(rz,{isOpen:p,node:S,onCancel:()=>{g(!1)},onUpdateNode:O})]})}class Kt{static DASHBOARD_ROUTE="/";static LOGIN_ROUTE="/login";static STARTUP_ROUTE="/startup";static GETTING_STARTED_ROUTE="/hello";static NEW_HOST_ROUTE="/hosts-new";static HOSTS_ROUTE="/hosts";static HOST_ROUTE="/hosts/:hostId";static NETWORK_HOST_ROUTE="/networks/:networkId/hosts/:hostId";static NETWORKS_ROUTE="/networks";static NETWORK_DETAILS_ROUTE="/networks/:networkId";static CLIENTS_ROUTE="/clients";static ENROLLMENT_KEYS_ROUTE="/enrollment-keys";static USERS_ROUTE="/users";static SIGNUP_ROUTE="/signup"}const sz=[{id:"dashboard",path:Kt.DASHBOARD_ROUTE,element:h.jsx(a4e,{}),children:[{path:"",element:h.jsx(Al,{children:h.jsx(z$e,{isFullScreen:!1})})},{path:Kt.HOSTS_ROUTE.split("/").slice(1).join("/"),element:h.jsx(Al,{children:h.jsx(s_e,{isFullScreen:!0})})},{path:Kt.HOST_ROUTE.split("/").slice(1).join("/"),element:h.jsx(Al,{children:h.jsx(c4e,{isFullScreen:!0})})},{path:Kt.NEW_HOST_ROUTE.split("/").slice(1).join("/"),element:h.jsx(Al,{children:h.jsx(s4e,{isFullScreen:!0})})},{path:Kt.NETWORKS_ROUTE.split("/").slice(1).join("/"),element:h.jsx(Al,{children:h.jsx(u4e,{isFullScreen:!0})})},{path:Kt.NETWORK_DETAILS_ROUTE.split("/").slice(1).join("/"),element:h.jsx(Al,{children:h.jsx(o_e,{isFullScreen:!0})})},{path:Kt.NETWORK_HOST_ROUTE.split("/").slice(1).join("/"),element:h.jsx(Al,{children:h.jsx(h_e,{isFullScreen:!0})})},{path:Kt.ENROLLMENT_KEYS_ROUTE.split("/").slice(1).join("/"),element:h.jsx(Al,{children:h.jsx(a_e,{isFullScreen:!0})})},{path:Kt.USERS_ROUTE.split("/").slice(1).join("/"),element:h.jsx(Al,{children:h.jsx(d_e,{isFullScreen:!0})})}]},{path:Kt.GETTING_STARTED_ROUTE,element:h.jsx(_$e,{})},{path:Kt.STARTUP_ROUTE,element:h.jsx(B$e,{})},{path:Kt.LOGIN_ROUTE,element:h.jsx(R4e,{})},{path:"*",element:h.jsx(fSe,{})}];yi||sz.push({path:Kt.SIGNUP_ROUTE,element:h.jsx(f_e,{})});const p_e=aSe(sz);function m_e({isOpen:e,onCancel:t}){const{t:n}=Hg(),r=tn(),o=l.useMemo(()=>{const a=[];return r.serverStatus?.status?.license_error&&a.push("billing"),r.serverStatus?.status?.db_connected||a.push("db"),r.serverStatus?.status?.broker_connected||a.push("broker"),r.serverStatus?.status?.healthyNetwork||a.push("network"),a},[r.serverStatus]),i=l.useMemo(()=>{const a=[];return o.includes("billing")&&a.push({key:"billing",label:`${a.length+1}. Billing Issues`,children:h.jsxs(h.Fragment,{children:[n("error.checkbillingsetting")," ",h.jsx("a",{href:D3(),rel:"noreferrer",referrerPolicy:"no-referrer",target:"_blank",children:n("common.licensedashboard")}),". Also check your Netmaker server logs for detailed information."]})}),o.includes("db")&&a.push({key:"db",label:`${a.length+1}. Database Reachability Issues`,children:h.jsx(h.Fragment,{children:"The server is not able to connect to the database. Check your Netmaker server config logs for detailed information."})}),o.includes("broker")&&a.push({key:"broker",label:`${a.length+1}. Broker Reachability Issues`,children:h.jsx(h.Fragment,{children:"The server is not able to connect to the message broker. Check your Netmaker server config logs for detailed information."})}),o.includes("network")&&a.push({key:"network",label:`${a.length+1}. Network Connectivity Issues`,children:h.jsx(h.Fragment,{children:"The dashboard is not able to connect to your Netmaker server. Check your network connection, SSL certificate or DNS settings for your tenant."})}),a},[o,n]);return h.jsx(Sh,{theme:{algorithm:r.currentTheme==="dark"?Uo.darkAlgorithm:Uo.defaultAlgorithm},children:h.jsxs(fn,{open:e,onCancel:t,footer:null,centered:!0,closable:!1,children:[h.jsx(Oe,{style:{marginTop:"1rem"},children:h.jsx(q,{span:24,children:h.jsx(xCe,{twoToneColor:"#D89614",size:800,style:{color:"#D89614",fontSize:"3rem"}})})}),h.jsxs(Oe,{children:[h.jsx(q,{span:24,children:h.jsx(ce.Title,{level:4,children:"Netmaker is not functioning properly"})}),h.jsx(q,{span:24,children:h.jsxs(ce.Text,{strong:!0,children:["Contact your server admin, check your network settings or"," ",h.jsx("a",{href:`mailto:${E$e()}`,target:"_blank",rel:"noreferrer",children:"email us"})]})}),h.jsxs(q,{span:24,style:{marginTop:"1rem"},children:[h.jsx(ce.Text,{children:"Possible reasons:"}),h.jsx("br",{}),h.jsx(uc,{size:"small",defaultActiveKey:[],ghost:!0,items:i}),yi&&h.jsxs(l.Fragment,{children:[h.jsx("br",{}),h.jsx(ut,{type:"primary",size:"small",href:ch(),children:"Go to Account Management"})]})]}),h.jsxs(q,{span:24,style:{display:"flex",justifyContent:"space-between",marginTop:"2rem"},children:[h.jsx(ce.Text,{children:"Dashboard will become responsive once the issue(s) is resolved"}),h.jsx(mu,{})]})]})]})})}var g_e=Object.defineProperty,_1=Object.getOwnPropertySymbols,lz=Object.prototype.hasOwnProperty,cz=Object.prototype.propertyIsEnumerable,v5=(e,t,n)=>t in e?g_e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,qc=(e,t)=>{for(var n in t||(t={}))lz.call(t,n)&&v5(e,n,t[n]);if(_1)for(var n of _1(t))cz.call(t,n)&&v5(e,n,t[n]);return e},v_e=(e,t)=>{var n={};for(var r in e)lz.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&_1)for(var r of _1(e))t.indexOf(r)<0&&cz.call(e,r)&&(n[r]=e[r]);return n},Qp=(e,t)=>{let n="[react-use-intercom]";switch(e){case"info":console.log(`${n} ${t}`);break;case"warn":console.warn(`${n} ${t}`);break;case"error":console.error(`${n} ${t}`);break;default:console.log(`${n} ${t}`)}},QE=typeof window>"u",uz=e=>(Object.keys(e).forEach(t=>{e[t]&&typeof e[t]=="object"?uz(e[t]):e[t]===void 0&&delete e[t]}),e),y_e=(e,...t)=>{if(!QE&&window.Intercom)return window.Intercom.apply(null,[e,...t]);Qp("error",`${e} Intercom instance is not initalized yet`)},uo=y_e,b_e=l.createContext(void 0),dz=b_e,x_e=(e,t=0)=>{var n=window,r=n.Intercom;if(typeof r=="function")r("reattach_activator"),r("update",n.intercomSettings);else{var o=document,i=function(){i.c(arguments)};i.q=[],i.c=function(s){i.q.push(s)},n.Intercom=i;var a=function(){setTimeout(function(){var s=o.createElement("script");s.type="text/javascript",s.async=!0,s.src="https://widget.intercom.io/widget/"+e;var c=o.getElementsByTagName("script")[0];c.parentNode.insertBefore(s,c)},t)};document.readyState==="complete"?a():n.attachEvent?n.attachEvent("onload",a):n.addEventListener("load",a,!1)}},w_e=x_e,S_e=e=>({custom_launcher_selector:e.customLauncherSelector,alignment:e.alignment,vertical_padding:e.verticalPadding,horizontal_padding:e.horizontalPadding,hide_default_launcher:e.hideDefaultLauncher,session_duration:e.sessionDuration,action_color:e.actionColor,background_color:e.backgroundColor}),y5=e=>qc({company_id:e.companyId,name:e.name,created_at:e.createdAt,plan:e.plan,monthly_spend:e.monthlySpend,user_count:e.userCount,size:e.size,website:e.website,industry:e.industry},e.customAttributes),C_e=e=>({type:e.type,image_url:e.imageUrl}),E_e=e=>{var t;return qc({email:e.email,user_id:e.userId,created_at:e.createdAt,name:e.name,phone:e.phone,last_request_at:e.lastRequestAt,unsubscribed_from_emails:e.unsubscribedFromEmails,language_override:e.languageOverride,utm_campaign:e.utmCampaign,utm_content:e.utmContent,utm_medium:e.utmMedium,utm_source:e.utmSource,utm_term:e.utmTerm,avatar:e.avatar&&C_e(e.avatar),user_hash:e.userHash,company:e.company&&y5(e.company),companies:(t=e.companies)==null?void 0:t.map(y5)},e.customAttributes)},b5=e=>uz(qc(qc({},S_e(e)),E_e(e))),$_e=e=>{var t=e,{appId:n,autoBoot:r=!1,autoBootProps:o,children:i,onHide:a,onShow:s,onUnreadCountChange:c,onUserEmailSupplied:u,shouldInitialize:d=!QE,apiBase:f,initializeDelay:p}=t,g=v_e(t,["appId","autoBoot","autoBootProps","children","onHide","onShow","onUnreadCountChange","onUserEmailSupplied","shouldInitialize","apiBase","initializeDelay"]);let v=l.useRef(!1),y=l.useRef(!1),S=Object.keys(g).filter(G=>!G.startsWith("data-"));S.length>0&&Qp("warn",["some invalid props were passed to IntercomProvider. ",`Please check following props: ${S.join(", ")}.`].join(""));let b=l.useCallback(G=>{if(!window.Intercom&&!d){Qp("warn","Intercom instance is not initialized because `shouldInitialize` is set to `false` in `IntercomProvider`");return}let re=qc(qc({app_id:n},f&&{api_base:f}),G&&b5(G));window.intercomSettings=re,uo("boot",re),v.current=!0},[f,n,d]),[x,C]=l.useState(!1),E=l.useCallback(()=>{C(!1),a&&a()},[a,C]),$=l.useCallback(()=>{C(!0),s&&s()},[s,C]);!QE&&d&&!y.current&&(w_e(n,p),uo("onHide",E),uo("onShow",$),uo("onUserEmailSupplied",u),c&&uo("onUnreadCountChange",c),r&&b(o),y.current=!0);let O=l.useCallback((G,re)=>{if(!window.Intercom&&!d){Qp("warn","Intercom instance is not initialized because `shouldInitialize` is set to `false` in `IntercomProvider`");return}if(!v.current){Qp("warn",[`"${G}" was called but Intercom has not booted yet. `,`Please call 'boot' before calling '${G}' or `,"set 'autoBoot' to true in the IntercomProvider."].join(""));return}return re()},[d]),I=l.useCallback(()=>{v.current&&(uo("shutdown"),delete window.intercomSettings,v.current=!1)},[]),N=l.useCallback(()=>{v.current&&(uo("shutdown"),delete window.Intercom,delete window.intercomSettings,v.current=!1)},[]),_=l.useCallback(()=>{O("update",()=>{let G=Math.floor(new Date().getTime()/1e3);uo("update",{last_request_at:G})})},[O]),T=l.useCallback(G=>{O("update",()=>{if(!G){_();return}let re=b5(G);window.intercomSettings=qc(qc({},window.intercomSettings),re),uo("update",re)})},[O,_]),D=l.useCallback(()=>{O("hide",()=>{uo("hide")})},[O]),j=l.useCallback(()=>{O("show",()=>uo("show"))},[O]),P=l.useCallback(()=>{O("showMessages",()=>{uo("showMessages")})},[O]),M=l.useCallback(G=>{O("showNewMessage",()=>{G?uo("showNewMessage",G):uo("showNewMessage")})},[O]),A=l.useCallback(()=>O("getVisitorId",()=>uo("getVisitorId")),[O]),B=l.useCallback(G=>{O("startTour",()=>{uo("startTour",G)})},[O]),F=l.useCallback((G,re)=>{O("trackEvent",()=>{re?uo("trackEvent",G,re):uo("trackEvent",G)})},[O]),H=l.useCallback(G=>O("showArticle",()=>{uo("showArticle",G)}),[O]),W=l.useCallback(G=>O("showSpace",()=>{uo("showSpace",G)}),[O]),V=l.useCallback(G=>{O("startSurvey",()=>{uo("startSurvey",G)})},[O]),K=l.useMemo(()=>({boot:b,shutdown:I,hardShutdown:N,update:T,hide:D,show:j,isOpen:x,showMessages:P,showNewMessage:M,getVisitorId:A,startTour:B,trackEvent:F,showArticle:H,startSurvey:V,showSpace:W}),[b,I,N,T,D,j,x,P,M,A,B,F,H,V,W]);return l.createElement(dz.Provider,{value:K},i)},O_e=()=>{let e=l.useContext(dz);if(e===void 0)throw new Error('"useIntercom" must be used within `IntercomProvider`.');return e},I_e=()=>O_e();function R_e(){const e=tn(),{boot:t,shutdown:n}=I_e(),r=e.serverConfig?.IsEE==="yes",o=e.fetchServerConfig,i=e.setServerStatus,a=e.fetchNodes,s=e.fetchHosts,c=e.isLoggedIn,[u,d]=l.useState(!1),f=l.useMemo(()=>c(),[c]),p=l.useCallback(async()=>{try{const{data:g}=await R3.getServerStatus();i({...g,healthyNetwork:!0}),c()&&(s(),a())}catch(g){g instanceof Ji?g.response?i({db_connected:e.serverStatus?.status?.db_connected||!1,broker_connected:e.serverStatus?.status?.broker_connected||!1,license_error:e.serverStatus?.status?.license_error||"",healthyNetwork:!0}):g.request?i({db_connected:e.serverStatus?.status?.db_connected||!1,broker_connected:e.serverStatus?.status?.broker_connected||!1,license_error:e.serverStatus?.status?.license_error||"",healthyNetwork:!1}):i({db_connected:e.serverStatus?.status?.db_connected||!1,broker_connected:e.serverStatus?.status?.broker_connected||!1,license_error:e.serverStatus?.status?.license_error||"",healthyNetwork:!1}):i({db_connected:!1,broker_connected:!1,license_error:"",healthyNetwork:!1})}},[e.serverStatus?.status?.broker_connected,e.serverStatus?.status?.db_connected,e.serverStatus?.status?.license_error,s,a,c,i]);return l.useEffect(()=>{p();const g=setInterval(async()=>{p(),c()&&!u&&await o()&&d(!0)},vSe);return()=>clearInterval(g)},[p,u,o,c]),l.useEffect(()=>(f&&t({userId:`${e.amuiUserId}_${e.tenantId}`}),()=>{n()}),[t,n,f,r,e.tenantId,e.username]),l.useEffect(()=>{i({db_connected:!0,broker_connected:!0,license_error:"",healthyNetwork:!0})},[]),l.useEffect(()=>{const g=Sr().favicon;g&&document.getElementById("favicon")?.setAttribute("href",g);const v=document.getElementById("nmui-loading");v&&(v.animate([{opacity:1},{opacity:0}],{duration:200}).onfinish=()=>{v.remove()})},[]),h.jsxs("div",{className:"App",children:[h.jsx(Sh,{theme:{algorithm:e.currentTheme==="dark"?Uo.darkAlgorithm:Uo.defaultAlgorithm,token:{colorPrimary:Sr().primaryColor,colorLink:Sr().primaryColor,fontFamily:"Inter, SFPro, system-ui, Avenir, Helvetica, Arial, sans-serif",fontSize:16}},children:h.jsx(Xwe,{router:p_e})}),h.jsx(m_e,{isOpen:!e.serverStatus.isHealthy})]})}const N_e={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class T1{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||N_e,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r{this.observers[r]=this.observers[r]||[],this.observers[r].push(n)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t]=this.observers[t].filter(r=>r!==n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o{a(...r)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(a=>{a.apply(a,[t,...r])})}}function Bp(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function x5(e){return e==null?"":""+e}function __e(e,t,n){e.forEach(r=>{t[r]&&(n[r]=t[r])})}function lO(e,t,n){function r(a){return a&&a.indexOf("###")>-1?a.replace(/###/g,"."):a}function o(){return!e||typeof e=="string"}const i=typeof t!="string"?[].concat(t):t.split(".");for(;i.length>1;){if(o())return{};const a=r(i.shift());!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={}}return o()?{}:{obj:e,k:r(i.shift())}}function w5(e,t,n){const{obj:r,k:o}=lO(e,t,Object);r[o]=n}function T_e(e,t,n,r){const{obj:o,k:i}=lO(e,t,Object);o[i]=o[i]||[],r&&(o[i]=o[i].concat(n)),r||o[i].push(n)}function P1(e,t){const{obj:n,k:r}=lO(e,t);if(n)return n[r]}function P_e(e,t,n){const r=P1(e,n);return r!==void 0?r:P1(t,n)}function fz(e,t,n){for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):fz(e[r],t[r],n):e[r]=t[r]);return e}function nf(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var j_e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function M_e(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>j_e[t]):e}const k_e=[" ",",","?","!",";"];function D_e(e,t,n){t=t||"",n=n||"";const r=k_e.filter(a=>t.indexOf(a)<0&&n.indexOf(a)<0);if(r.length===0)return!0;const o=new RegExp(`(${r.map(a=>a==="?"?"\\?":a).join("|")})`);let i=!o.test(e);if(!i){const a=e.indexOf(n);a>0&&!o.test(e.substring(0,a))&&(i=!0)}return i}function j1(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let o=e;for(let i=0;ii+a;)a++,s=r.slice(i,i+a).join(n),c=o[s];if(c===void 0)return;if(c===null)return null;if(t.endsWith(s)){if(typeof c=="string")return c;if(s&&typeof c[s]=="string")return c[s]}const u=r.slice(i+a).join(n);return u?j1(c,u,n):void 0}o=o[r[i]]}return o}function M1(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class S5 extends Cx{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,a=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let s=[t,n];r&&typeof r!="string"&&(s=s.concat(r)),r&&typeof r=="string"&&(s=s.concat(i?r.split(i):r)),t.indexOf(".")>-1&&(s=t.split("."));const c=P1(this.data,s);return c||!a||typeof r!="string"?c:j1(this.data&&this.data[t]&&this.data[t][n],r,i)}addResource(t,n,r,o){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let s=[t,n];r&&(s=s.concat(a?r.split(a):r)),t.indexOf(".")>-1&&(s=t.split("."),o=n,n=s[1]),this.addNamespaces(n),w5(this.data,s,o),i.silent||this.emit("added",t,n,r,o)}addResources(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in r)(typeof r[i]=="string"||Object.prototype.toString.apply(r[i])==="[object Array]")&&this.addResource(t,n,i,r[i],{silent:!0});o.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,o,i){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},s=[t,n];t.indexOf(".")>-1&&(s=t.split("."),o=r,r=n,n=s[1]),this.addNamespaces(n);let c=P1(this.data,s)||{};o?fz(c,r,i):c={...c,...r},w5(this.data,s,c),a.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(o=>n[o]&&Object.keys(n[o]).length>0)}toJSON(){return this.data}}var hz={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(i=>{this.processors[i]&&(t=this.processors[i].process(t,n,r,o))}),t}};const C5={};class k1 extends Cx{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),__e(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=hl.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const a=r&&t.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!D_e(t,r,o);if(a&&!s){const c=t.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:t,namespaces:i};const u=t.split(r);(r!==o||r===o&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),t=u.join(o)}return typeof i=="string"&&(i=[i]),{key:t,namespaces:i}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const o=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(t[t.length-1],n),c=s[s.length-1],u=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(d){const E=n.nsSeparator||this.options.nsSeparator;return o?{res:`${c}${E}${a}`,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:c}:`${c}${E}${a}`}return o?{res:a,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:c}:a}const f=this.resolve(t,n);let p=f&&f.res;const g=f&&f.usedKey||a,v=f&&f.exactUsedKey||a,y=Object.prototype.toString.apply(p),S=["[object Number]","[object Function]","[object RegExp]"],b=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject;if(x&&p&&(typeof p!="string"&&typeof p!="boolean"&&typeof p!="number")&&S.indexOf(y)<0&&!(typeof b=="string"&&y==="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const E=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,p,{...n,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return o?(f.res=E,f):E}if(i){const E=y==="[object Array]",$=E?[]:{},O=E?v:g;for(const I in p)if(Object.prototype.hasOwnProperty.call(p,I)){const N=`${O}${i}${I}`;$[I]=this.translate(N,{...n,joinArrays:!1,ns:s}),$[I]===N&&($[I]=p[I])}p=$}}else if(x&&typeof b=="string"&&y==="[object Array]")p=p.join(b),p&&(p=this.extendTranslation(p,t,n,r));else{let E=!1,$=!1;const O=n.count!==void 0&&typeof n.count!="string",I=k1.hasDefaultValue(n),N=O?this.pluralResolver.getSuffix(u,n.count,n):"",_=n.ordinal&&O?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",T=n[`defaultValue${N}`]||n[`defaultValue${_}`]||n.defaultValue;!this.isValidLookup(p)&&I&&(E=!0,p=T),this.isValidLookup(p)||($=!0,p=a);const j=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&$?void 0:p,P=I&&T!==p&&this.options.updateMissing;if($||E||P){if(this.logger.log(P?"updateKey":"missingKey",u,c,a,P?T:p),i){const F=this.resolve(a,{...n,keySeparator:!1});F&&F.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let M=[];const A=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&A&&A[0])for(let F=0;F{const V=I&&W!==p?W:j;this.options.missingKeyHandler?this.options.missingKeyHandler(F,c,H,V,P,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(F,c,H,V,P,n),this.emit("missingKey",F,c,H,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&O?M.forEach(F=>{this.pluralResolver.getSuffixes(F,n).forEach(H=>{B([F],a+H,n[`defaultValue${H}`]||T)})}):B(M,a,T))}p=this.extendTranslation(p,t,n,f,r),$&&p===a&&this.options.appendNamespaceToMissingKey&&(p=`${c}:${a}`),($||E)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${a}`:a,E?p:void 0):p=this.options.parseMissingKeyHandler(p))}return o?(f.res=p,f):p}extendTranslation(t,n,r,o,i){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(u){const p=t.match(this.interpolator.nestingRegexp);d=p&&p.length}let f=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,r.lng||this.language,r),u){const p=t.match(this.interpolator.nestingRegexp),g=p&&p.length;d1&&arguments[1]!==void 0?arguments[1]:{},r,o,i,a,s;return typeof t=="string"&&(t=[t]),t.forEach(c=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(c,n),d=u.key;o=d;let f=u.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const p=n.count!==void 0&&typeof n.count!="string",g=p&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),v=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",y=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(S=>{this.isValidLookup(r)||(s=S,!C5[`${y[0]}-${S}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(C5[`${y[0]}-${S}`]=!0,this.logger.warn(`key "${o}" for languages "${y.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),y.forEach(b=>{if(this.isValidLookup(r))return;a=b;const x=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(x,d,b,S,n);else{let E;p&&(E=this.pluralResolver.getSuffix(b,n.count,n));const $=`${this.options.pluralSeparator}zero`,O=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(x.push(d+E),n.ordinal&&E.indexOf(O)===0&&x.push(d+E.replace(O,this.options.pluralSeparator)),g&&x.push(d+$)),v){const I=`${d}${this.options.contextSeparator}${n.context}`;x.push(I),p&&(x.push(I+E),n.ordinal&&E.indexOf(O)===0&&x.push(I+E.replace(O,this.options.pluralSeparator)),g&&x.push(I+$))}}let C;for(;C=x.pop();)this.isValidLookup(r)||(i=C,r=this.getResource(b,S,C,n))}))})}),{res:r,usedKey:o,exactUsedKey:i,usedLng:a,usedNS:s}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,o):this.resourceStore.getResource(t,n,r,o)}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}function cC(e){return e.charAt(0).toUpperCase()+e.slice(1)}class E5{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=hl.create("languageUtils")}getScriptPartFromCode(t){if(t=M1(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=M1(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(o=>o.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=cC(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=cC(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=cC(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const o=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(o))&&(n=o)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const o=this.getLanguagePartFromCode(r);if(this.isSupportedCode(o))return n=o;n=this.options.supportedLngs.find(i=>{if(i===o)return i;if(!(i.indexOf("-")<0&&o.indexOf("-")<0)&&i.indexOf(o)===0)return i})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),o=[],i=a=>{a&&(this.isSupportedCode(a)?o.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):typeof t=="string"&&i(this.formatLanguageCode(t)),r.forEach(a=>{o.indexOf(a)<0&&i(this.formatLanguageCode(a))}),o}}let A_e=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],L_e={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const F_e=["v1","v2","v3"],z_e=["v4"],$5={zero:0,one:1,two:2,few:3,many:4,other:5};function B_e(){const e={};return A_e.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:L_e[t.fc]}})}),e}class H_e{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=hl.create("pluralResolver"),(!this.options.compatibilityJSON||z_e.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=B_e()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(M1(t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(o=>`${n}${o}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((o,i)=>$5[o]-$5[i]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):r.numbers.map(o=>this.getSuffix(t,o,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(t,r);return o?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:this.getSuffixRetroCompatible(o,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let o=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));const i=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?i():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!F_e.includes(this.options.compatibilityJSON)}}function O5(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=P_e(e,t,n);return!i&&o&&typeof n=="string"&&(i=j1(e,n,r),i===void 0&&(i=j1(t,n,r))),i}class U_e{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=hl.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const n=t.interpolation;this.escape=n.escape!==void 0?n.escape:M_e,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?nf(n.prefix):n.prefixEscaped||",this.suffix=n.suffix?nf(n.suffix):n.suffixEscaped||",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?nf(n.nestingPrefix):n.nestingPrefixEscaped||nf("$t("),this.nestingSuffix=n.nestingSuffix?nf(n.nestingSuffix):n.nestingSuffixEscaped||nf(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(t,"g");const n=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(n,"g");const r=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(r,"g")}interpolate(t,n,r,o){let i,a,s;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(v){return v.replace(/\$/g,"$$$$")}const d=v=>{if(v.indexOf(this.formatSeparator)<0){const x=O5(n,c,v,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(x,void 0,r,{...o,...n,interpolationkey:v}):x}const y=v.split(this.formatSeparator),S=y.shift().trim(),b=y.join(this.formatSeparator).trim();return this.format(O5(n,c,S,this.options.keySeparator,this.options.ignoreJSONStructure),b,r,{...o,...n,interpolationkey:S})};this.resetRegExp();const f=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,p=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:v=>u(v)},{regex:this.regexp,safeValue:v=>this.escapeValue?u(this.escape(v)):u(v)}].forEach(v=>{for(s=0;i=v.regex.exec(t);){const y=i[1].trim();if(a=d(y),a===void 0)if(typeof f=="function"){const b=f(t,i,o);a=typeof b=="string"?b:""}else if(o&&Object.prototype.hasOwnProperty.call(o,y))a="";else if(p){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`),a="";else typeof a!="string"&&!this.useRawValueToEscape&&(a=x5(a));const S=v.safeValue(a);if(t=t.replace(i[0],S),p?(v.regex.lastIndex+=a.length,v.regex.lastIndex-=i[0].length):v.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,i,a;function s(c,u){const d=this.nestingOptionsSeparator;if(c.indexOf(d)<0)return c;const f=c.split(new RegExp(`${d}[ ]*{`));let p=`{${f[1]}`;c=f[0],p=this.interpolate(p,a);const g=p.match(/'/g),v=p.match(/"/g);(g&&g.length%2===0&&!v||v.length%2!==0)&&(p=p.replace(/'/g,'"'));try{a=JSON.parse(p),u&&(a={...u,...a})}catch(y){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,y),`${c}${d}${p}`}return delete a.defaultValue,c}for(;o=this.nestingRegexp.exec(t);){let c=[];a={...r},a=a.replace&&typeof a.replace!="string"?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let u=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const d=o[1].split(this.formatSeparator).map(f=>f.trim());o[1]=d.shift(),c=d,u=!0}if(i=n(s.call(this,o[1].trim(),a),a),i&&o[0]===t&&typeof i!="string")return i;typeof i!="string"&&(i=x5(i)),i||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),i=""),u&&(i=c.reduce((d,f)=>this.format(d,f,r.lng,{...r,interpolationkey:o[1].trim()}),i.trim())),t=t.replace(o[0],i),this.regexp.lastIndex=0}return t}}function W_e(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);t==="currency"&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(a=>{if(!a)return;const[s,...c]=a.split(":"),u=c.join(":").trim().replace(/^'+|'+$/g,"");n[s.trim()]||(n[s.trim()]=u),u==="false"&&(n[s.trim()]=!1),u==="true"&&(n[s.trim()]=!0),isNaN(u)||(n[s.trim()]=parseInt(u,10))})}return{formatName:t,formatOptions:n}}function rf(e){const t={};return function(r,o,i){const a=o+JSON.stringify(i);let s=t[a];return s||(s=e(M1(o),i),t[a]=s),s(r)}}class V_e{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=hl.create("formatter"),this.options=t,this.formats={number:rf((n,r)=>{const o=new Intl.NumberFormat(n,{...r});return i=>o.format(i)}),currency:rf((n,r)=>{const o=new Intl.NumberFormat(n,{...r,style:"currency"});return i=>o.format(i)}),datetime:rf((n,r)=>{const o=new Intl.DateTimeFormat(n,{...r});return i=>o.format(i)}),relativetime:rf((n,r)=>{const o=new Intl.RelativeTimeFormat(n,{...r});return i=>o.format(i,r.range||"day")}),list:rf((n,r)=>{const o=new Intl.ListFormat(n,{...r});return i=>o.format(i)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=rf(n)}format(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((s,c)=>{const{formatName:u,formatOptions:d}=W_e(c);if(this.formats[u]){let f=s;try{const p=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},g=p.locale||p.lng||o.locale||o.lng||r;f=this.formats[u](s,g,{...d,...o,...p})}catch(p){this.logger.warn(p)}return f}else this.logger.warn(`there was no format function for ${u}`);return s},t)}}function K_e(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class G_e extends Cx{constructor(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=hl.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,o.backend,o)}queueLoad(t,n,r,o){const i={},a={},s={},c={};return t.forEach(u=>{let d=!0;n.forEach(f=>{const p=`${u}|${f}`;!r.reload&&this.store.hasResourceBundle(u,f)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?a[p]===void 0&&(a[p]=!0):(this.state[p]=1,d=!1,a[p]===void 0&&(a[p]=!0),i[p]===void 0&&(i[p]=!0),c[f]===void 0&&(c[f]=!0)))}),d||(s[u]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(c)}}loaded(t,n,r){const o=t.split("|"),i=o[0],a=o[1];n&&this.emit("failedLoading",i,a,n),r&&this.store.addResourceBundle(i,a,r),this.state[t]=n?-1:2;const s={};this.queue.forEach(c=>{T_e(c.loaded,[i],a),K_e(c,t),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(u=>{s[u]||(s[u]={});const d=c.loaded[u];d.length&&d.forEach(f=>{s[u][f]===void 0&&(s[u][f]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(c=>!c.done)}read(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!t.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:o,wait:i,callback:a});return}this.readingCalls++;const s=(u,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(u&&d&&o{this.read.call(this,t,n,r,o+1,i*2,a)},i);return}a(u,d)},c=this.backend[r].bind(this.backend);if(c.length===2){try{const u=c(t,n);u&&typeof u.then=="function"?u.then(d=>s(null,d)).catch(s):s(null,u)}catch(u){s(u)}return}return c(t,n,s)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const i=this.queueLoad(t,n,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach(a=>{this.loadOne(a)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(a,s)=>{a&&this.logger.warn(`${n}loading namespace ${i} for language ${o} failed`,a),!a&&s&&this.logger.log(`${n}loaded namespace ${i} for language ${o}`,s),this.loaded(t,a,s)})}saveMissing(t,n,r,o,i){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const c={...a,isUpdate:i},u=this.backend.create.bind(this.backend);if(u.length<6)try{let d;u.length===5?d=u(t,n,r,o,c):d=u(t,n,r,o),d&&typeof d.then=="function"?d.then(f=>s(null,f)).catch(s):s(null,d)}catch(d){s(d)}else u(t,n,r,o,s,c)}!t||!t[0]||this.store.addResource(t[0],n,r,o)}}}function I5(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let n={};if(typeof t[1]=="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const r=t[3]||t[2];Object.keys(r).forEach(o=>{n[o]=r[o]})}return n},interpolation:{escapeValue:!0,format:(e,t,n,r)=>e,prefix:",suffix:",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function R5(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function L0(){}function Y_e(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}class rg extends Cx{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=R5(t),this.services={},this.logger=hl,this.modules={external:[]},Y_e(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const o=I5();this.options={...o,...this.options,...R5(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function i(d){return d?typeof d=="function"?new d:d:null}if(!this.options.isClone){this.modules.logger?hl.init(i(this.modules.logger),this.options):hl.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=V_e);const f=new E5(this.options);this.store=new S5(this.options.resources,this.options);const p=this.services;p.logger=hl,p.resourceStore=this.store,p.languageUtils=f,p.pluralResolver=new H_e(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(p.formatter=i(d),p.formatter.init(p,this.options),this.options.interpolation.format=p.formatter.format.bind(p.formatter)),p.interpolator=new U_e(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new G_e(i(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",function(g){for(var v=arguments.length,y=new Array(v>1?v-1:0),S=1;S1?v-1:0),S=1;S{g.init&&g.init(this)})}if(this.format=this.options.interpolation.format,r||(r=L0),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=function(){return t.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return t.store[d](...arguments),t}});const c=Bp(),u=()=>{const d=(f,p)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(p),r(f,p)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),c}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L0;const o=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode")return r();const i=[],a=s=>{if(!s)return;this.services.languageUtils.toResolveHierarchy(s).forEach(u=>{i.indexOf(u)<0&&i.push(u)})};o?a(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>a(c)),this.options.preload&&this.options.preload.forEach(s=>a(s)),this.services.backendConnector.load(i,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(s)})}else r(null)}reloadResources(t,n,r){const o=Bp();return t||(t=this.languages),n||(n=this.options.ns),r||(r=L0),this.services.backendConnector.reload(t,n,i=>{o.resolve(),r(i)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&hz.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const o=Bp();this.emit("languageChanging",t);const i=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},a=(c,u)=>{u?(i(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,o.resolve(function(){return r.t(...arguments)}),n&&n(c,function(){return r.t(...arguments)})},s=c=>{!t&&!c&&this.services.languageDetector&&(c=[]);const u=typeof c=="string"?c:this.services.languageUtils.getBestMatchFromCodes(c);u&&(this.language||i(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,d=>{a(d,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),o}getFixedT(t,n,r){var o=this;const i=function(a,s){let c;if(typeof s!="object"){for(var u=arguments.length,d=new Array(u>2?u-2:0),f=2;f`${c.keyPrefix}${p}${v}`):g=c.keyPrefix?`${c.keyPrefix}${p}${a}`:a,o.t(g,c)};return typeof t=="string"?i.lng=t:i.lngs=t,i.ns=n,i.keyPrefix=r,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const a=(s,c)=>{const u=this.services.backendConnector.state[`${s}|${c}`];return u===-1||u===2};if(n.precheck){const s=n.precheck(this,a);if(s!==void 0)return s}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(r,t)&&(!o||a(i,t)))}loadNamespaces(t,n){const r=Bp();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Bp();typeof t=="string"&&(t=[t]);const o=this.options.preload||[],i=t.filter(a=>o.indexOf(a)<0);return i.length?(this.options.preload=o.concat(i),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new E5(I5());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new rg(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L0;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},i=new rg(o);return(t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(s=>{i[s]=this[s]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r&&(i.store=new S5(this.store.data,o),i.services.resourceStore=i.store),i.translator=new k1(i.services,o),i.translator.on("*",function(s){for(var c=arguments.length,u=new Array(c>1?c-1:0),d=1;d{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function Ex(e){const t=e[Ra];return t?t.type_:Array.isArray(e)?1:$x(e)?2:Ox(e)?3:0}function ZE(e,t){return Ex(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function gz(e,t,n){const r=Ex(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function X_e(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function $x(e){return e instanceof Map}function Ox(e){return e instanceof Set}function Du(e){return e.copy_||e.base_}function JE(e,t){if($x(e))return new Map(e);if(Ox(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&mz(e))return ph(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Ra];let r=Reflect.ownKeys(n);for(let o=0;o1&&(e.set=e.add=e.clear=e.delete=Q_e),Object.freeze(e),t&&og(e,(n,r)=>cO(r,!0))),e}function Q_e(){ks(2)}function Ix(e){return Object.isFrozen(e)}var Z_e={};function vd(e){const t=Z_e[e];return t||ks(0,e),t}var ig;function vz(){return ig}function J_e(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function _5(e,t){t&&(vd("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function e$(e){t$(e),e.drafts_.forEach(e6e),e.drafts_=null}function t$(e){e===ig&&(ig=e.parent_)}function T5(e){return ig=J_e(ig,e)}function e6e(e){const t=e[Ra];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function P5(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Ra].modified_&&(e$(t),ks(4)),gd(e)&&(e=D1(t,e),t.parent_||A1(t,e)),t.patches_&&vd("Patches").generateReplacementPatches_(n[Ra].base_,e,t.patches_,t.inversePatches_)):e=D1(t,n,[]),e$(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==pz?e:void 0}function D1(e,t,n){if(Ix(t))return t;const r=t[Ra];if(!r)return og(t,(o,i)=>j5(e,r,t,o,i,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return A1(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),og(i,(s,c)=>j5(e,r,o,s,c,n,a)),A1(e,o,!1),n&&e.patches_&&vd("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function j5(e,t,n,r,o,i,a){if(mh(o)){const s=i&&t&&t.type_!==3&&!ZE(t.assigned_,r)?i.concat(r):void 0,c=D1(e,o,s);if(gz(n,r,c),mh(c))e.canAutoFreeze_=!1;else return}else a&&n.add(o);if(gd(o)&&!Ix(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;D1(e,o),(!t||!t.scope_.parent_)&&A1(e,o)}}function A1(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&cO(t,n)}function t6e(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:vz(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=uO;n&&(o=[r],i=ag);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return r.draft_=s,r.revoke_=a,s}var uO={get(e,t){if(t===Ra)return e;const n=Du(e);if(!ZE(n,t))return n6e(e,n,t);const r=n[t];return e.finalized_||!gd(r)?r:r===uC(e.base_,t)?(dC(e),e.copy_[t]=r$(r,e)):r},has(e,t){return t in Du(e)},ownKeys(e){return Reflect.ownKeys(Du(e))},set(e,t,n){const r=yz(Du(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=uC(Du(e),t),i=o?.[Ra];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(X_e(n,o)&&(n!==void 0||ZE(e.base_,t)))return!0;dC(e),n$(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 uC(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,dC(e),n$(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Du(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){ks(11)},getPrototypeOf(e){return ph(e.base_)},setPrototypeOf(){ks(12)}},ag={};og(uO,(e,t)=>{ag[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});ag.deleteProperty=function(e,t){return ag.set.call(this,e,t,void 0)};ag.set=function(e,t,n){return uO.set.call(this,e[0],t,n,e[0])};function uC(e,t){const n=e[Ra];return(n?Du(n):e)[t]}function n6e(e,t,n){const r=yz(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}function yz(e,t){if(!(t in e))return;let n=ph(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=ph(n)}}function n$(e){e.modified_||(e.modified_=!0,e.parent_&&n$(e.parent_))}function dC(e){e.copy_||(e.copy_=JE(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var r6e=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(c=i,...u){return a.produce(c,d=>n.call(this,d,...u))}}typeof n!="function"&&ks(6),r!==void 0&&typeof r!="function"&&ks(7);let o;if(gd(t)){const i=T5(this),a=r$(t,void 0);let s=!0;try{o=n(a),s=!1}finally{s?e$(i):t$(i)}return _5(i,r),P5(o,i)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===pz&&(o=void 0),this.autoFreeze_&&cO(o,!0),r){const i=[],a=[];vd("Patches").generateReplacementPatches_(t,o,i,a),r(i,a)}return o}else ks(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...s)=>this.produceWithPatches(a,c=>t(c,...s));let r,o;return[this.produce(t,n,(a,s)=>{r=a,o=s}),r,o]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){gd(e)||ks(8),mh(e)&&(e=o6e(e));const t=T5(this),n=r$(e,void 0);return n[Ra].isManual_=!0,t$(t),n}finishDraft(e,t){const n=e&&e[Ra];(!n||!n.isManual_)&&ks(9);const{scope_:r}=n;return _5(r,t),P5(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=vd("Patches").applyPatches_;return mh(e)?r(e,t):this.produce(e,o=>r(o,t))}};function r$(e,t){const n=$x(e)?vd("MapSet").proxyMap_(e,t):Ox(e)?vd("MapSet").proxySet_(e,t):t6e(e,t);return(t?t.scope_:vz()).drafts_.push(n),n}function o6e(e){return mh(e)||ks(10,e),bz(e)}function bz(e){if(!gd(e)||Ix(e))return e;const t=e[Ra];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=JE(e,t.scope_.immer_.useStrictShallowCopy_)}else n=JE(e,!0);return og(n,(r,o)=>{gz(n,r,bz(o))}),t&&(t.finalized_=!1),n}var Na=new r6e,i6e=Na.produce;Na.produceWithPatches.bind(Na);Na.setAutoFreeze.bind(Na);Na.setUseStrictShallowCopy.bind(Na);Na.applyPatches.bind(Na);Na.createDraft.bind(Na);Na.finishDraft.bind(Na);const a6e={common:{hello:"Hello",hosts:"Hosts",or:"OR",here:"HERE",reason:"Reason",licensedashboard:"Licence dashboard"},auth:{login:"Login",signup:"Sign Up",terms5:"By signing up you agree to our"},signin:{signin:"Sign in",rememberme:"Remember me",forgotpassword:"Forgot password?",signup:"Sign up",logout:"Logout",username:"Username",password:"Password","confirm-password":"Confirm Password",terms1:"By signing in you agree to our",terms2:"Terms of Service",terms3:"and",terms4:"Privacy Policy",sso:"Login with SSO",or:"or"},error:{servermalfunction:"Error server malfunction",contactyourserveradmin:"Contact your server admin or check your network settings",billingerroroccured:"Billing/Payment error occured",checkbillingsetting:"Check your tenant's billing settings in the"},info:{connectmultiplehosts:"Connect multiple hosts",connectatleasttwohostsonanetworktobegincommunication:"Connect at least two hosts on a network to begin communication"},hosts:{connectahost:"Connect a host"}},s6e={common:{hello:"Bonjour",hosts:"Hôtes"},signin:{signin:"Se connecter",forgotpassword:"Mot de passe oublié?",rememberme:"Se souvenir de moi",logout:"Se déconnecter",or:"ou",password:"Mot de passe",signup:"S'inscrire",sso:"Se connecter avec SSO",terms1:"En vous connectant, vous acceptez nos",terms2:"Conditions d'utilisation",terms3:"et",terms4:"Politique de confidentialité",username:"Nom d'utilisateur"}},l6e={en:{translation:a6e},fr:{translation:s6e}};window.missingTranslations={};xi.use(J$e).init({resources:l6e,lng:"en",fallbackLng:"en",saveMissing:!0,missingKeyHandler:(e,t,n,r)=>{window.missingTranslations=i6e(window.missingTranslations,o=>{o[`${n}`]=r})},interpolation:{escapeValue:!1},appendNamespaceToMissingKey:!0});await S$e();fC.createRoot(document.getElementById("root")).render(h.jsx(Ne.StrictMode,{children:h.jsx($_e,{appId:w$e,autoBoot:!1,shouldInitialize:yi,initializeDelay:2e3,children:h.jsx(R_e,{})})})); //# sourceMappingURL=index-dc63880d.js.map