From 4796cfdf06bf260374fc0f87ccc278e15e0dfb59 Mon Sep 17 00:00:00 2001 From: Ernest Cui Date: Sun, 24 Mar 2024 20:27:51 +0800 Subject: [PATCH] build: v3.0.0 --- docs/assets/index-9f71fe32.js | 510 -------------------------------- docs/assets/index-af9b2003.css | 1 + docs/assets/index-cc2cd41b.css | 1 - docs/assets/index-f0d67865.js | 520 +++++++++++++++++++++++++++++++++ docs/index.html | 4 +- package.json | 2 +- 6 files changed, 524 insertions(+), 514 deletions(-) delete mode 100644 docs/assets/index-9f71fe32.js create mode 100644 docs/assets/index-af9b2003.css delete mode 100644 docs/assets/index-cc2cd41b.css create mode 100644 docs/assets/index-f0d67865.js diff --git a/docs/assets/index-9f71fe32.js b/docs/assets/index-9f71fe32.js deleted file mode 100644 index cdeeb73..0000000 --- a/docs/assets/index-9f71fe32.js +++ /dev/null @@ -1,510 +0,0 @@ -var sH=Object.defineProperty;var uH=(e,t,n)=>t in e?sH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Xn=(e,t,n)=>(uH(e,typeof t!="symbol"?t+"":t,n),n);function DT(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 Xc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function kT(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vd={},cH={get exports(){return Vd},set exports(e){Vd=e}},ug={},c={},dH={get exports(){return c},set exports(e){c=e}},Vt={};/** - * @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 _f=Symbol.for("react.element"),fH=Symbol.for("react.portal"),pH=Symbol.for("react.fragment"),mH=Symbol.for("react.strict_mode"),hH=Symbol.for("react.profiler"),gH=Symbol.for("react.provider"),vH=Symbol.for("react.context"),yH=Symbol.for("react.forward_ref"),bH=Symbol.for("react.suspense"),SH=Symbol.for("react.memo"),CH=Symbol.for("react.lazy"),FI=Symbol.iterator;function xH(e){return e===null||typeof e!="object"?null:(e=FI&&e[FI]||e["@@iterator"],typeof e=="function"?e:null)}var FT={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},BT=Object.assign,zT={};function Cc(e,t,n){this.props=e,this.context=t,this.refs=zT,this.updater=n||FT}Cc.prototype.isReactComponent={};Cc.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")};Cc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function HT(){}HT.prototype=Cc.prototype;function n1(e,t,n){this.props=e,this.context=t,this.refs=zT,this.updater=n||FT}var r1=n1.prototype=new HT;r1.constructor=n1;BT(r1,Cc.prototype);r1.isPureReactComponent=!0;var BI=Array.isArray,jT=Object.prototype.hasOwnProperty,o1={current:null},VT={key:!0,ref:!0,__self:!0,__source:!0};function UT(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)jT.call(t,r)&&!VT.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1>>1,q=j[W];if(0>>1;Wo(Y,G))neo(le,Y)?(j[W]=le,j[ne]=G,W=ne):(j[W]=Y,j[X]=G,W=X);else if(neo(le,G))j[W]=le,j[ne]=G,W=ne;else break e}}return U}function o(j,U){var G=j.sortIndex-U.sortIndex;return G!==0?G:j.id-U.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],d=[],f=1,m=null,h=3,g=!1,v=!1,C=!1,S=typeof setTimeout=="function"?setTimeout:null,y=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 E(j){for(var U=n(d);U!==null;){if(U.callback===null)r(d);else if(U.startTime<=j)r(d),U.sortIndex=U.expirationTime,t(s,U);else break;U=n(d)}}function w(j){if(C=!1,E(j),!v)if(n(s)!==null)v=!0,F(I);else{var U=n(d);U!==null&&V(w,U.startTime-j)}}function I(j,U){v=!1,C&&(C=!1,y(R),R=-1),g=!0;var G=h;try{for(E(U),m=n(s);m!==null&&(!(m.expirationTime>U)||j&&!D());){var W=m.callback;if(typeof W=="function"){m.callback=null,h=m.priorityLevel;var q=W(m.expirationTime<=U);U=e.unstable_now(),typeof q=="function"?m.callback=q:m===n(s)&&r(s),E(U)}else r(s);m=n(s)}if(m!==null)var J=!0;else{var X=n(d);X!==null&&V(w,X.startTime-U),J=!1}return J}finally{m=null,h=G,g=!1}}var O=!1,_=null,R=-1,M=5,P=-1;function D(){return!(e.unstable_now()-Pj||125W?(j.sortIndex=G,t(d,j),n(s)===null&&j===n(d)&&(C?(y(R),R=-1):C=!0,V(w,G-W))):(j.sortIndex=q,t(s,j),v||g||(v=!0,F(I))),j},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(j){var U=h;return function(){var G=h;h=U;try{return j.apply(this,arguments)}finally{h=G}}}})(GT);(function(e){e.exports=GT})(AH);/** - * @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 XT=c,Ao=bb;function Ve(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"),Sb=Object.prototype.hasOwnProperty,LH=/^[: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]*$/,HI={},jI={};function DH(e){return Sb.call(jI,e)?!0:Sb.call(HI,e)?!1:LH.test(e)?jI[e]=!0:(HI[e]=!0,!1)}function kH(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 FH(e,t,n,r){if(t===null||typeof t>"u"||kH(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 Qr(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 Er={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Er[e]=new Qr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Er[t]=new Qr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Er[e]=new Qr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Er[e]=new Qr(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){Er[e]=new Qr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Er[e]=new Qr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Er[e]=new Qr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Er[e]=new Qr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Er[e]=new Qr(e,5,!1,e.toLowerCase(),null,!1,!1)});var a1=/[\-:]([a-z])/g;function l1(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(a1,l1);Er[t]=new Qr(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(a1,l1);Er[t]=new Qr(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(a1,l1);Er[t]=new Qr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Er[e]=new Qr(e,1,!1,e.toLowerCase(),null,!1,!1)});Er.xlinkHref=new Qr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Er[e]=new Qr(e,1,!1,e.toLowerCase(),null,!0,!0)});function s1(e,t,n,r){var o=Er.hasOwnProperty(t)?Er[t]:null;(o!==null?o.type!==0:r||!(2l||o[a]!==i[l]){var s=` -`+o[a].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{H0=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?pd(e):""}function BH(e){switch(e.tag){case 5:return pd(e.type);case 16:return pd("Lazy");case 13:return pd("Suspense");case 19:return pd("SuspenseList");case 0:case 2:case 15:return e=j0(e.type,!1),e;case 11:return e=j0(e.type.render,!1),e;case 1:return e=j0(e.type,!0),e;default:return""}}function wb(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 $u:return"Fragment";case Iu:return"Portal";case Cb:return"Profiler";case u1:return"StrictMode";case xb:return"Suspense";case Eb:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case QT:return(e.displayName||"Context")+".Consumer";case qT:return(e._context.displayName||"Context")+".Provider";case c1:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case d1:return t=e.displayName||null,t!==null?t:wb(e.type)||"Memo";case al:t=e._payload,e=e._init;try{return wb(e(t))}catch{}}return null}function zH(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 wb(t);case 8:return t===u1?"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 Tl(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function JT(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function HH(e){var t=JT(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 Vp(e){e._valueTracker||(e._valueTracker=HH(e))}function eP(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=JT(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function rh(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 Ib(e,t){var n=t.checked;return Ln({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function UI(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Tl(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&&s1(e,"checked",t,!1)}function $b(e,t){tP(e,t);var n=Tl(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")?Ob(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ob(e,t.type,Tl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function WI(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 Ob(e,t,n){(t!=="number"||rh(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var md=Array.isArray;function Hu(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Up.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Kd(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var xd={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},jH=["Webkit","ms","Moz","O"];Object.keys(xd).forEach(function(e){jH.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),xd[t]=xd[e]})});function iP(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||xd.hasOwnProperty(e)&&xd[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 VH=Ln({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 Tb(e,t){if(t){if(VH[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ve(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ve(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ve(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ve(62))}}function Pb(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 Nb=null;function f1(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Mb=null,ju=null,Vu=null;function XI(e){if(e=Pf(e)){if(typeof Mb!="function")throw Error(Ve(280));var t=e.stateNode;t&&(t=mg(t),Mb(e.stateNode,e.type,t))}}function lP(e){ju?Vu?Vu.push(e):Vu=[e]:ju=e}function sP(){if(ju){var e=ju,t=Vu;if(Vu=ju=null,XI(e),t)for(e=0;e>>=0,e===0?32:31-(e8(e)/t8|0)|0}var Wp=64,Kp=4194304;function hd(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 lh(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~o;l!==0?r=hd(l):(i&=a,i!==0&&(r=hd(i)))}else a=n&~o,a!==0?r=hd(a):i!==0&&(r=hd(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 Rf(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-_i(t),e[t]=n}function i8(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=wd),r$=String.fromCharCode(32),o$=!1;function _P(e,t){switch(e){case"keyup":return M8.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function RP(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ou=!1;function L8(e,t){switch(e){case"compositionend":return RP(t);case"keypress":return t.which!==32?null:(o$=!0,r$);case"textInput":return e=t.data,e===r$&&o$?null:e;default:return null}}function D8(e,t){if(Ou)return e==="compositionend"||!S1&&_P(e,t)?(e=$P(),Mm=v1=pl=null,Ou=!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=s$(n)}}function MP(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?MP(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function AP(){for(var e=window,t=rh();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=rh(e.document)}return t}function C1(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 W8(e){var t=AP(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&MP(n.ownerDocument.documentElement,n)){if(r!==null&&C1(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=u$(n,i);var a=u$(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,_u=null,Bb=null,$d=null,zb=!1;function c$(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;zb||_u==null||_u!==rh(r)||(r=_u,"selectionStart"in r&&C1(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}),$d&&Zd($d,r)||($d=r,r=ch(Bb,"onSelect"),0Pu||(e.current=Kb[Pu],Kb[Pu]=null,Pu--)}function yn(e,t){Pu++,Kb[Pu]=e.current,e.current=t}var Pl={},Dr=Dl(Pl),co=Dl(!1),ws=Pl;function nc(e,t){var n=e.type.contextTypes;if(!n)return Pl;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 fo(e){return e=e.childContextTypes,e!=null}function fh(){En(co),En(Dr)}function v$(e,t,n){if(Dr.current!==Pl)throw Error(Ve(168));yn(Dr,t),yn(co,n)}function VP(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(Ve(108,zH(e)||"Unknown",o));return Ln({},n,r)}function ph(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pl,ws=Dr.current,yn(Dr,e),yn(co,co.current),!0}function y$(e,t,n){var r=e.stateNode;if(!r)throw Error(Ve(169));n?(e=VP(e,t,ws),r.__reactInternalMemoizedMergedChildContext=e,En(co),En(Dr),yn(Dr,e)):En(co),yn(co,n)}var Ia=null,hg=!1,ny=!1;function UP(e){Ia===null?Ia=[e]:Ia.push(e)}function rj(e){hg=!0,UP(e)}function kl(){if(!ny&&Ia!==null){ny=!0;var e=0,t=un;try{var n=Ia;for(un=1;e>=a,o-=a,$a=1<<32-_i(t)+o|n<R?(M=_,_=null):M=_.sibling;var P=h(y,_,E[R],w);if(P===null){_===null&&(_=M);break}e&&_&&P.alternate===null&&t(y,_),x=i(P,x,R),O===null?I=P:O.sibling=P,O=P,_=M}if(R===E.length)return n(y,_),On&&es(y,R),I;if(_===null){for(;RR?(M=_,_=null):M=_.sibling;var D=h(y,_,P.value,w);if(D===null){_===null&&(_=M);break}e&&_&&D.alternate===null&&t(y,_),x=i(D,x,R),O===null?I=D:O.sibling=D,O=D,_=M}if(P.done)return n(y,_),On&&es(y,R),I;if(_===null){for(;!P.done;R++,P=E.next())P=m(y,P.value,w),P!==null&&(x=i(P,x,R),O===null?I=P:O.sibling=P,O=P);return On&&es(y,R),I}for(_=r(y,_);!P.done;R++,P=E.next())P=g(_,y,R,P.value,w),P!==null&&(e&&P.alternate!==null&&_.delete(P.key===null?R:P.key),x=i(P,x,R),O===null?I=P:O.sibling=P,O=P);return e&&_.forEach(function(N){return t(y,N)}),On&&es(y,R),I}function S(y,x,E,w){if(typeof E=="object"&&E!==null&&E.type===$u&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case jp:e:{for(var I=E.key,O=x;O!==null;){if(O.key===I){if(I=E.type,I===$u){if(O.tag===7){n(y,O.sibling),x=o(O,E.props.children),x.return=y,y=x;break e}}else if(O.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===al&&I$(I)===O.type){n(y,O.sibling),x=o(O,E.props),x.ref=ed(y,O,E),x.return=y,y=x;break e}n(y,O);break}else t(y,O);O=O.sibling}E.type===$u?(x=vs(E.props.children,y.mode,w,E.key),x.return=y,y=x):(w=Hm(E.type,E.key,E.props,null,y.mode,w),w.ref=ed(y,x,E),w.return=y,y=w)}return a(y);case Iu:e:{for(O=E.key;x!==null;){if(x.key===O)if(x.tag===4&&x.stateNode.containerInfo===E.containerInfo&&x.stateNode.implementation===E.implementation){n(y,x.sibling),x=o(x,E.children||[]),x.return=y,y=x;break e}else{n(y,x);break}else t(y,x);x=x.sibling}x=cy(E,y.mode,w),x.return=y,y=x}return a(y);case al:return O=E._init,S(y,x,O(E._payload),w)}if(md(E))return v(y,x,E,w);if(Yc(E))return C(y,x,E,w);Jp(y,E)}return typeof E=="string"&&E!==""||typeof E=="number"?(E=""+E,x!==null&&x.tag===6?(n(y,x.sibling),x=o(x,E),x.return=y,y=x):(n(y,x),x=uy(E,y.mode,w),x.return=y,y=x),a(y)):n(y,x)}return S}var oc=ZP(!0),JP=ZP(!1),Nf={},ra=Dl(Nf),nf=Dl(Nf),rf=Dl(Nf);function us(e){if(e===Nf)throw Error(Ve(174));return e}function T1(e,t){switch(yn(rf,t),yn(nf,e),yn(ra,Nf),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Rb(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Rb(t,e)}En(ra),yn(ra,t)}function ic(){En(ra),En(nf),En(rf)}function eN(e){us(rf.current);var t=us(ra.current),n=Rb(t,e.type);t!==n&&(yn(nf,e),yn(ra,n))}function P1(e){nf.current===e&&(En(ra),En(nf))}var Mn=Dl(0);function bh(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 ry=[];function N1(){for(var e=0;en?n:4,e(!0);var r=oy.transition;oy.transition={};try{e(!1),t()}finally{un=n,oy.transition=r}}function gN(){return ii().memoizedState}function lj(e,t,n){var r=Il(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},vN(e))yN(t,n);else if(n=XP(e,t,n,r),n!==null){var o=Xr();Ri(n,e,r,o),bN(n,t,r)}}function sj(e,t,n){var r=Il(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(vN(e))yN(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,Ni(l,a)){var s=t.interleaved;s===null?(o.next=o,_1(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=XP(e,t,o,r),n!==null&&(o=Xr(),Ri(n,e,r,o),bN(n,t,r))}}function vN(e){var t=e.alternate;return e===An||t!==null&&t===An}function yN(e,t){Od=Sh=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function bN(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,m1(e,n)}}var Ch={readContext:oi,useCallback:Rr,useContext:Rr,useEffect:Rr,useImperativeHandle:Rr,useInsertionEffect:Rr,useLayoutEffect:Rr,useMemo:Rr,useReducer:Rr,useRef:Rr,useState:Rr,useDebugValue:Rr,useDeferredValue:Rr,useTransition:Rr,useMutableSource:Rr,useSyncExternalStore:Rr,useId:Rr,unstable_isNewReconciler:!1},uj={readContext:oi,useCallback:function(e,t){return Gi().memoizedState=[e,t===void 0?null:t],e},useContext:oi,useEffect:O$,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,km(4194308,4,dN.bind(null,t,e),n)},useLayoutEffect:function(e,t){return km(4194308,4,e,t)},useInsertionEffect:function(e,t){return km(4,2,e,t)},useMemo:function(e,t){var n=Gi();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Gi();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=lj.bind(null,An,e),[r.memoizedState,e]},useRef:function(e){var t=Gi();return e={current:e},t.memoizedState=e},useState:$$,useDebugValue:k1,useDeferredValue:function(e){return Gi().memoizedState=e},useTransition:function(){var e=$$(!1),t=e[0];return e=aj.bind(null,e[1]),Gi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=An,o=Gi();if(On){if(n===void 0)throw Error(Ve(407));n=n()}else{if(n=t(),fr===null)throw Error(Ve(349));$s&30||rN(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,O$(iN.bind(null,r,i,e),[e]),r.flags|=2048,lf(9,oN.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Gi(),t=fr.identifierPrefix;if(On){var n=Oa,r=$a;n=(r&~(1<<32-_i(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=of++,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[ea]=t,e[tf]=r,_N(e,t,!1,!1),t.stateNode=e;e:{switch(a=Pb(n,r),n){case"dialog":Cn("cancel",e),Cn("close",e),o=r;break;case"iframe":case"object":case"embed":Cn("load",e),o=r;break;case"video":case"audio":for(o=0;olc&&(t.flags|=128,r=!0,td(i,!1),t.lanes=4194304)}else{if(!r)if(e=bh(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),td(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!On)return Tr(t),null}else 2*Un()-i.renderingStartTime>lc&&n!==1073741824&&(t.flags|=128,r=!0,td(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=Un(),t.sibling=null,n=Mn.current,yn(Mn,r?n&1|2:n&1),t):(Tr(t),null);case 22:case 23:return V1(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?To&1073741824&&(Tr(t),t.subtreeFlags&6&&(t.flags|=8192)):Tr(t),null;case 24:return null;case 25:return null}throw Error(Ve(156,t.tag))}function vj(e,t){switch(E1(t),t.tag){case 1:return fo(t.type)&&fh(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ic(),En(co),En(Dr),N1(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return P1(t),null;case 13:if(En(Mn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ve(340));rc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return En(Mn),null;case 4:return ic(),null;case 10:return O1(t.type._context),null;case 22:case 23:return V1(),null;case 24:return null;default:return null}}var tm=!1,Ar=!1,yj=typeof WeakSet=="function"?WeakSet:Set,st=null;function Lu(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Bn(e,t,r)}else n.current=null}function oS(e,t,n){try{n()}catch(r){Bn(e,t,r)}}var D$=!1;function bj(e,t){if(Hb=sh,e=AP(),C1(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,l=-1,s=-1,d=0,f=0,m=e,h=null;t:for(;;){for(var g;m!==n||o!==0&&m.nodeType!==3||(l=a+o),m!==i||r!==0&&m.nodeType!==3||(s=a+r),m.nodeType===3&&(a+=m.nodeValue.length),(g=m.firstChild)!==null;)h=m,m=g;for(;;){if(m===e)break t;if(h===n&&++d===o&&(l=a),h===i&&++f===r&&(s=a),(g=m.nextSibling)!==null)break;m=h,h=m.parentNode}m=g}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(jb={focusedElem:e,selectionRange:n},sh=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){t=st;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 C=v.memoizedProps,S=v.memoizedState,y=t.stateNode,x=y.getSnapshotBeforeUpdate(t.elementType===t.type?C:xi(t.type,C),S);y.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var E=t.stateNode.containerInfo;E.nodeType===1?E.textContent="":E.nodeType===9&&E.documentElement&&E.removeChild(E.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ve(163))}}catch(w){Bn(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,st=e;break}st=t.return}return v=D$,D$=!1,v}function _d(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&&oS(t,n,i)}o=o.next}while(o!==r)}}function yg(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 iS(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 PN(e){var t=e.alternate;t!==null&&(e.alternate=null,PN(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ea],delete t[tf],delete t[Wb],delete t[tj],delete t[nj])),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 NN(e){return e.tag===5||e.tag===3||e.tag===4}function k$(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||NN(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 aS(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=dh));else if(r!==4&&(e=e.child,e!==null))for(aS(e,t,n),e=e.sibling;e!==null;)aS(e,t,n),e=e.sibling}function lS(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(lS(e,t,n),e=e.sibling;e!==null;)lS(e,t,n),e=e.sibling}var Sr=null,Ei=!1;function el(e,t,n){for(n=n.child;n!==null;)MN(e,t,n),n=n.sibling}function MN(e,t,n){if(na&&typeof na.onCommitFiberUnmount=="function")try{na.onCommitFiberUnmount(cg,n)}catch{}switch(n.tag){case 5:Ar||Lu(n,t);case 6:var r=Sr,o=Ei;Sr=null,el(e,t,n),Sr=r,Ei=o,Sr!==null&&(Ei?(e=Sr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Sr.removeChild(n.stateNode));break;case 18:Sr!==null&&(Ei?(e=Sr,n=n.stateNode,e.nodeType===8?ty(e.parentNode,n):e.nodeType===1&&ty(e,n),qd(e)):ty(Sr,n.stateNode));break;case 4:r=Sr,o=Ei,Sr=n.stateNode.containerInfo,Ei=!0,el(e,t,n),Sr=r,Ei=o;break;case 0:case 11:case 14:case 15:if(!Ar&&(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)&&oS(n,t,a),o=o.next}while(o!==r)}el(e,t,n);break;case 1:if(!Ar&&(Lu(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Bn(n,t,l)}el(e,t,n);break;case 21:el(e,t,n);break;case 22:n.mode&1?(Ar=(r=Ar)||n.memoizedState!==null,el(e,t,n),Ar=r):el(e,t,n);break;default:el(e,t,n)}}function F$(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new yj),t.forEach(function(r){var o=_j.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function bi(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=Un()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cj(r/1960))-r,10e?16:e,ml===null)var r=!1;else{if(e=ml,ml=null,wh=0,Qt&6)throw Error(Ve(331));var o=Qt;for(Qt|=4,st=e.current;st!==null;){var i=st,a=i.child;if(st.flags&16){var l=i.deletions;if(l!==null){for(var s=0;sUn()-H1?gs(e,0):z1|=n),po(e,t)}function HN(e,t){t===0&&(e.mode&1?(t=Kp,Kp<<=1,!(Kp&130023424)&&(Kp=4194304)):t=1);var n=Xr();e=Ma(e,t),e!==null&&(Rf(e,t,n),po(e,n))}function Oj(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),HN(e,n)}function _j(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(Ve(314))}r!==null&&r.delete(t),HN(e,n)}var jN;jN=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||co.current)uo=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return uo=!1,hj(e,t,n);uo=!!(e.flags&131072)}else uo=!1,On&&t.flags&1048576&&WP(t,hh,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Fm(e,t),e=t.pendingProps;var o=nc(t,Dr.current);Wu(t,n),o=A1(null,t,r,e,o,n);var i=L1();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,fo(r)?(i=!0,ph(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,R1(t),o.updater=gg,t.stateNode=o,o._reactInternals=t,Qb(t,r,e,n),t=eS(null,t,r,!0,i,n)):(t.tag=0,On&&i&&x1(t),Gr(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Fm(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Tj(r),e=xi(r,e),o){case 0:t=Jb(null,t,r,e,n);break e;case 1:t=M$(null,t,r,e,n);break e;case 11:t=P$(null,t,r,e,n);break e;case 14:t=N$(null,t,r,xi(r.type,e),n);break e}throw Error(Ve(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:xi(r,o),Jb(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:xi(r,o),M$(e,t,r,o,n);case 3:e:{if(IN(t),e===null)throw Error(Ve(387));r=t.pendingProps,i=t.memoizedState,o=i.element,YP(e,t),yh(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=ac(Error(Ve(423)),t),t=A$(e,t,r,n,o);break e}else if(r!==o){o=ac(Error(Ve(424)),t),t=A$(e,t,r,n,o);break e}else for(Po=xl(t.stateNode.containerInfo.firstChild),Mo=t,On=!0,wi=null,n=JP(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(rc(),r===o){t=Aa(e,t,n);break e}Gr(e,t,r,n)}t=t.child}return t;case 5:return eN(t),e===null&&Xb(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Vb(r,o)?a=null:i!==null&&Vb(r,i)&&(t.flags|=32),wN(e,t),Gr(e,t,a,n),t.child;case 6:return e===null&&Xb(t),null;case 13:return $N(e,t,n);case 4:return T1(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=oc(t,null,r,n):Gr(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:xi(r,o),P$(e,t,r,o,n);case 7:return Gr(e,t,t.pendingProps,n),t.child;case 8:return Gr(e,t,t.pendingProps.children,n),t.child;case 12:return Gr(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,yn(gh,r._currentValue),r._currentValue=a,i!==null)if(Ni(i.value,a)){if(i.children===o.children&&!co.current){t=Aa(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=Ra(-1,n&-n),s.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var f=d.pending;f===null?s.next=s:(s.next=f.next,f.next=s),d.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Yb(i.return,n,t),l.lanes|=n;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(Ve(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Yb(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}Gr(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Wu(t,n),o=oi(o),r=r(o),t.flags|=1,Gr(e,t,r,n),t.child;case 14:return r=t.type,o=xi(r,t.pendingProps),o=xi(r.type,o),N$(e,t,r,o,n);case 15:return xN(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:xi(r,o),Fm(e,t),t.tag=1,fo(r)?(e=!0,ph(t)):e=!1,Wu(t,n),QP(t,r,o),Qb(t,r,o,n),eS(null,t,r,!0,e,n);case 19:return ON(e,t,n);case 22:return EN(e,t,n)}throw Error(Ve(156,t.tag))};function VN(e,t){return hP(e,t)}function Rj(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 ti(e,t,n,r){return new Rj(e,t,n,r)}function W1(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Tj(e){if(typeof e=="function")return W1(e)?1:0;if(e!=null){if(e=e.$$typeof,e===c1)return 11;if(e===d1)return 14}return 2}function $l(e,t){var n=e.alternate;return n===null?(n=ti(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 Hm(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")W1(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case $u:return vs(n.children,o,i,t);case u1:a=8,o|=8;break;case Cb:return e=ti(12,n,t,o|2),e.elementType=Cb,e.lanes=i,e;case xb:return e=ti(13,n,t,o),e.elementType=xb,e.lanes=i,e;case Eb:return e=ti(19,n,t,o),e.elementType=Eb,e.lanes=i,e;case ZT:return Sg(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case qT:a=10;break e;case QT:a=9;break e;case c1:a=11;break e;case d1:a=14;break e;case al:a=16,r=null;break e}throw Error(Ve(130,e==null?e:typeof e,""))}return t=ti(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function vs(e,t,n,r){return e=ti(7,e,r,t),e.lanes=n,e}function Sg(e,t,n,r){return e=ti(22,e,r,t),e.elementType=ZT,e.lanes=n,e.stateNode={isHidden:!1},e}function uy(e,t,n){return e=ti(6,e,null,t),e.lanes=n,e}function cy(e,t,n){return t=ti(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Pj(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=U0(0),this.expirationTimes=U0(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=U0(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function K1(e,t,n,r,o,i,a,l,s){return e=new Pj(e,t,n,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ti(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},R1(i),e}function Nj(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=Do})(MH);const sc=kT(Pi),kj=DT({__proto__:null,default:sc},[Pi]);var K$=Pi;yb.createRoot=K$.createRoot,yb.hydrateRoot=K$.hydrateRoot;var fS={},Fj={get exports(){return fS},set exports(e){fS=e}},GN={};/** - * @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 uc=c;function Bj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var zj=typeof Object.is=="function"?Object.is:Bj,Hj=uc.useState,jj=uc.useEffect,Vj=uc.useLayoutEffect,Uj=uc.useDebugValue;function Wj(e,t){var n=t(),r=Hj({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return Vj(function(){o.value=n,o.getSnapshot=t,dy(o)&&i({inst:o})},[e,n,t]),jj(function(){return dy(o)&&i({inst:o}),e(function(){dy(o)&&i({inst:o})})},[e]),Uj(n),n}function dy(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!zj(e,n)}catch{return!0}}function Kj(e,t){return t()}var Gj=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Kj:Wj;GN.useSyncExternalStore=uc.useSyncExternalStore!==void 0?uc.useSyncExternalStore:Gj;(function(e){e.exports=GN})(Fj);var pS={},Xj={get exports(){return pS},set exports(e){pS=e}},XN={};/** - * @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 Ig=c,Yj=fS;function qj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qj=typeof Object.is=="function"?Object.is:qj,Zj=Yj.useSyncExternalStore,Jj=Ig.useRef,eV=Ig.useEffect,tV=Ig.useMemo,nV=Ig.useDebugValue;XN.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=Jj(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=tV(function(){function s(g){if(!d){if(d=!0,f=g,g=r(g),o!==void 0&&a.hasValue){var v=a.value;if(o(v,g))return m=v}return m=g}if(v=m,Qj(f,g))return v;var C=r(g);return o!==void 0&&o(v,C)?v:(f=g,m=C)}var d=!1,f,m,h=n===void 0?null:n;return[function(){return s(t())},h===null?void 0:function(){return s(h())}]},[t,n,r,o]);var l=Zj(e,i[0],i[1]);return eV(function(){a.hasValue=!0,a.value=l},[l]),nV(l),l};(function(e){e.exports=XN})(Xj);function rV(e){e()}let YN=rV;const oV=e=>YN=e,iV=()=>YN,Nl=c.createContext(null);function qN(){return c.useContext(Nl)}const aV=()=>{throw new Error("uSES not initialized!")};let QN=aV;const lV=e=>{QN=e},sV=(e,t)=>e===t;function uV(e=Nl){const t=e===Nl?qN:()=>c.useContext(e);return function(r,o=sV){const{store:i,subscription:a,getServerState:l}=t(),s=QN(a.addNestedSub,i.getState,l||i.getState,r,o);return c.useDebugValue(s),s}}const cV=uV();function je(){return je=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}var uf={},fV={get exports(){return uf},set exports(e){uf=e}},cn={};/** @license React v16.13.1 - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var hr=typeof Symbol=="function"&&Symbol.for,q1=hr?Symbol.for("react.element"):60103,Q1=hr?Symbol.for("react.portal"):60106,$g=hr?Symbol.for("react.fragment"):60107,Og=hr?Symbol.for("react.strict_mode"):60108,_g=hr?Symbol.for("react.profiler"):60114,Rg=hr?Symbol.for("react.provider"):60109,Tg=hr?Symbol.for("react.context"):60110,Z1=hr?Symbol.for("react.async_mode"):60111,Pg=hr?Symbol.for("react.concurrent_mode"):60111,Ng=hr?Symbol.for("react.forward_ref"):60112,Mg=hr?Symbol.for("react.suspense"):60113,pV=hr?Symbol.for("react.suspense_list"):60120,Ag=hr?Symbol.for("react.memo"):60115,Lg=hr?Symbol.for("react.lazy"):60116,mV=hr?Symbol.for("react.block"):60121,hV=hr?Symbol.for("react.fundamental"):60117,gV=hr?Symbol.for("react.responder"):60118,vV=hr?Symbol.for("react.scope"):60119;function Fo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case q1:switch(e=e.type,e){case Z1:case Pg:case $g:case _g:case Og:case Mg:return e;default:switch(e=e&&e.$$typeof,e){case Tg:case Ng:case Lg:case Ag:case Rg:return e;default:return t}}case Q1:return t}}}function ZN(e){return Fo(e)===Pg}cn.AsyncMode=Z1;cn.ConcurrentMode=Pg;cn.ContextConsumer=Tg;cn.ContextProvider=Rg;cn.Element=q1;cn.ForwardRef=Ng;cn.Fragment=$g;cn.Lazy=Lg;cn.Memo=Ag;cn.Portal=Q1;cn.Profiler=_g;cn.StrictMode=Og;cn.Suspense=Mg;cn.isAsyncMode=function(e){return ZN(e)||Fo(e)===Z1};cn.isConcurrentMode=ZN;cn.isContextConsumer=function(e){return Fo(e)===Tg};cn.isContextProvider=function(e){return Fo(e)===Rg};cn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===q1};cn.isForwardRef=function(e){return Fo(e)===Ng};cn.isFragment=function(e){return Fo(e)===$g};cn.isLazy=function(e){return Fo(e)===Lg};cn.isMemo=function(e){return Fo(e)===Ag};cn.isPortal=function(e){return Fo(e)===Q1};cn.isProfiler=function(e){return Fo(e)===_g};cn.isStrictMode=function(e){return Fo(e)===Og};cn.isSuspense=function(e){return Fo(e)===Mg};cn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===$g||e===Pg||e===_g||e===Og||e===Mg||e===pV||typeof e=="object"&&e!==null&&(e.$$typeof===Lg||e.$$typeof===Ag||e.$$typeof===Rg||e.$$typeof===Tg||e.$$typeof===Ng||e.$$typeof===hV||e.$$typeof===gV||e.$$typeof===vV||e.$$typeof===mV)};cn.typeOf=Fo;(function(e){e.exports=cn})(fV);var JN=uf,yV={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},bV={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},e2={};e2[JN.ForwardRef]=yV;e2[JN.Memo]=bV;var G$={},SV={get exports(){return G$},set exports(e){G$=e}},dn={};/** - * @license React - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var J1=Symbol.for("react.element"),ex=Symbol.for("react.portal"),Dg=Symbol.for("react.fragment"),kg=Symbol.for("react.strict_mode"),Fg=Symbol.for("react.profiler"),Bg=Symbol.for("react.provider"),zg=Symbol.for("react.context"),CV=Symbol.for("react.server_context"),Hg=Symbol.for("react.forward_ref"),jg=Symbol.for("react.suspense"),Vg=Symbol.for("react.suspense_list"),Ug=Symbol.for("react.memo"),Wg=Symbol.for("react.lazy"),xV=Symbol.for("react.offscreen"),t2;t2=Symbol.for("react.module.reference");function si(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case J1:switch(e=e.type,e){case Dg:case Fg:case kg:case jg:case Vg:return e;default:switch(e=e&&e.$$typeof,e){case CV:case zg:case Hg:case Wg:case Ug:case Bg:return e;default:return t}}case ex:return t}}}dn.ContextConsumer=zg;dn.ContextProvider=Bg;dn.Element=J1;dn.ForwardRef=Hg;dn.Fragment=Dg;dn.Lazy=Wg;dn.Memo=Ug;dn.Portal=ex;dn.Profiler=Fg;dn.StrictMode=kg;dn.Suspense=jg;dn.SuspenseList=Vg;dn.isAsyncMode=function(){return!1};dn.isConcurrentMode=function(){return!1};dn.isContextConsumer=function(e){return si(e)===zg};dn.isContextProvider=function(e){return si(e)===Bg};dn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===J1};dn.isForwardRef=function(e){return si(e)===Hg};dn.isFragment=function(e){return si(e)===Dg};dn.isLazy=function(e){return si(e)===Wg};dn.isMemo=function(e){return si(e)===Ug};dn.isPortal=function(e){return si(e)===ex};dn.isProfiler=function(e){return si(e)===Fg};dn.isStrictMode=function(e){return si(e)===kg};dn.isSuspense=function(e){return si(e)===jg};dn.isSuspenseList=function(e){return si(e)===Vg};dn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Dg||e===Fg||e===kg||e===jg||e===Vg||e===xV||typeof e=="object"&&e!==null&&(e.$$typeof===Wg||e.$$typeof===Ug||e.$$typeof===Bg||e.$$typeof===zg||e.$$typeof===Hg||e.$$typeof===t2||e.getModuleId!==void 0)};dn.typeOf=si;(function(e){e.exports=dn})(SV);function EV(){const e=iV();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],o=t;for(;o;)r.push(o),o=o.next;return r},subscribe(r){let o=!0,i=n={callback:r,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){!o||t===null||(o=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}const X$={notify(){},get:()=>[]};function wV(e,t){let n,r=X$;function o(m){return s(),r.subscribe(m)}function i(){r.notify()}function a(){f.onStateChange&&f.onStateChange()}function l(){return!!n}function s(){n||(n=t?t.addNestedSub(a):e.subscribe(a),r=EV())}function d(){n&&(n(),n=void 0,r.clear(),r=X$)}const f={addNestedSub:o,notifyNestedSubs:i,handleChangeWrapper:a,isSubscribed:l,trySubscribe:s,tryUnsubscribe:d,getListeners:()=>r};return f}const IV=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",$V=IV?c.useLayoutEffect:c.useEffect;function OV({store:e,context:t,children:n,serverState:r}){const o=c.useMemo(()=>{const l=wV(e);return{store:e,subscription:l,getServerState:r?()=>r:void 0}},[e,r]),i=c.useMemo(()=>e.getState(),[e]);$V(()=>{const{subscription:l}=o;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),i!==e.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[o,i]);const a=t||Nl;return ve.createElement(a.Provider,{value:o},n)}function n2(e=Nl){const t=e===Nl?qN:()=>c.useContext(e);return function(){const{store:r}=t();return r}}const _V=n2();function RV(e=Nl){const t=e===Nl?_V:n2(e);return function(){return t().dispatch}}const TV=RV();lV(pS.useSyncExternalStoreWithSelector);oV(Pi.unstable_batchedUpdates);const wc=TV,cc=cV;/** - * @remix-run/router v1.5.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 Yt(){return Yt=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function dc(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function NV(){return Math.random().toString(36).substr(2,8)}function q$(e,t){return{usr:e.state,key:e.key,idx:t}}function cf(e,t,n,r){return n===void 0&&(n=null),Yt({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ja(t):t,{state:n,key:t&&t.key||r||NV()})}function Rs(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 ja(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 MV(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,l=Yn.Pop,s=null,d=f();d==null&&(d=0,a.replaceState(Yt({},a.state,{idx:d}),""));function f(){return(a.state||{idx:null}).idx}function m(){l=Yn.Pop;let S=f(),y=S==null?null:S-d;d=S,s&&s({action:l,location:C.location,delta:y})}function h(S,y){l=Yn.Push;let x=cf(C.location,S,y);n&&n(x,S),d=f()+1;let E=q$(x,d),w=C.createHref(x);try{a.pushState(E,"",w)}catch{o.location.assign(w)}i&&s&&s({action:l,location:C.location,delta:1})}function g(S,y){l=Yn.Replace;let x=cf(C.location,S,y);n&&n(x,S),d=f();let E=q$(x,d),w=C.createHref(x);a.replaceState(E,"",w),i&&s&&s({action:l,location:C.location,delta:0})}function v(S){let y=o.location.origin!=="null"?o.location.origin:o.location.href,x=typeof S=="string"?S:Rs(S);return Ft(y,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,y)}let C={get action(){return l},get location(){return e(o,a)},listen(S){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(Y$,m),s=S,()=>{o.removeEventListener(Y$,m),s=null}},createHref(S){return t(o,S)},createURL:v,encodeLocation(S){let y=v(S);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:h,replace:g,go(S){return a.go(S)}};return C}var rr;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(rr||(rr={}));const AV=new Set(["lazy","caseSensitive","path","id","index","children"]);function LV(e){return e.index===!0}function r2(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let a=[...n,i],l=typeof o.id=="string"?o.id:a.join("-");if(Ft(o.index!==!0||!o.children,"Cannot specify children on an index route"),Ft(!r[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),LV(o)){let s=Yt({},o,{hasErrorBoundary:t(o),id:l});return r[l]=s,s}else{let s=Yt({},o,{id:l,hasErrorBoundary:t(o),children:void 0});return r[l]=s,o.children&&(s.children=r2(o.children,t,a,r)),s}})}function ku(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?ja(t):t,o=Kg(r.pathname||"/",n);if(o==null)return null;let i=o2(e);DV(i);let a=null;for(let l=0;a==null&&l{let s={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};s.relativePath.startsWith("/")&&(Ft(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let d=ys([r,s.relativePath]),f=n.concat(s);i.children&&i.children.length>0&&(Ft(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),o2(i.children,t,f,d)),!(i.path==null&&!i.index)&&t.push({path:d,score:VV(d,i.index),routesMeta:f})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,a);else for(let s of i2(i.path))o(i,a,s)}),t}function i2(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=i2(r.join("/")),l=[];return l.push(...a.map(s=>s===""?i:[i,s].join("/"))),o&&l.push(...a),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function DV(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:UV(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const kV=/^:\w+$/,FV=3,BV=2,zV=1,HV=10,jV=-2,Q$=e=>e==="*";function VV(e,t){let n=e.split("/"),r=n.length;return n.some(Q$)&&(r+=jV),t&&(r+=BV),n.filter(o=>!Q$(o)).reduce((o,i)=>o+(kV.test(i)?FV:i===""?zV:HV),r)}function UV(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 WV(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let a=0;a{if(f==="*"){let h=l[m]||"";a=i.slice(0,i.length-h.length).replace(/(.)\/+$/,"$1")}return d[f]=YV(l[m]||"",f),d},{}),pathname:i,pathnameBase:a,pattern:e}}function GV(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),dc(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,l)=>(r.push(l),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function XV(e){try{return decodeURI(e)}catch(t){return dc(!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 YV(e,t){try{return decodeURIComponent(e)}catch(n){return dc(!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 Kg(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 qV(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?ja(e):e;return{pathname:n?n.startsWith("/")?n:QV(n,t):t,search:e9(r),hash:t9(o)}}function QV(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 fy(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 a2(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function ZV(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=ja(e):(o=Yt({},e),Ft(!o.pathname||!o.pathname.includes("?"),fy("?","pathname","search",o)),Ft(!o.pathname||!o.pathname.includes("#"),fy("#","pathname","hash",o)),Ft(!o.search||!o.search.includes("#"),fy("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,l;if(r||a==null)l=n;else{let m=t.length-1;if(a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),m-=1;o.pathname=h.join("/")}l=m>=0?t[m]:"/"}let s=qV(o,l),d=a&&a!=="/"&&a.endsWith("/"),f=(i||a===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(d||f)&&(s.pathname+="/"),s}const ys=e=>e.join("/").replace(/\/\/+/g,"/"),JV=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),e9=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,t9=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class tx{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 l2(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const s2=["post","put","patch","delete"],n9=new Set(s2),r9=["get",...s2],o9=new Set(r9),i9=new Set([301,302,303,307,308]),a9=new Set([307,308]),py={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},l9={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},Z$={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},u2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,c2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",s9=!c2,u9=e=>!!e.hasErrorBoundary;function c9(e){Ft(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let t=e.detectErrorBoundary||u9,n={},r=r2(e.routes,t,void 0,n),o,i=Yt({v7_normalizeFormMethod:!1},e.future),a=null,l=new Set,s=null,d=null,f=null,m=e.hydrationData!=null,h=ku(r,e.history.location,e.basename),g=null;if(h==null){let ee=Xi(404,{pathname:e.history.location.pathname}),{matches:re,route:oe}=iO(r);h=re,g={[oe.id]:ee}}let v=!h.some(ee=>ee.route.lazy)&&(!h.some(ee=>ee.route.loader)||e.hydrationData!=null),C,S={historyAction:e.history.action,location:e.history.location,matches:h,initialized:v,navigation:py,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||g,fetchers:new Map,blockers:new Map},y=Yn.Pop,x=!1,E,w=!1,I=!1,O=[],_=[],R=new Map,M=0,P=-1,D=new Map,N=new Set,T=new Map,L=new Map,z=new Map,F=!1;function V(){return a=e.history.listen(ee=>{let{action:re,location:oe,delta:xe}=ee;if(F){F=!1;return}dc(z.size===0||xe!=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 ge=ft({currentLocation:S.location,nextLocation:oe,historyAction:re});if(ge&&xe!=null){F=!0,e.history.go(xe*-1),Qe(ge,{state:"blocked",location:oe,proceed(){Qe(ge,{state:"proceeding",proceed:void 0,reset:void 0,location:oe}),e.history.go(xe)},reset(){Xe(ge),G({blockers:new Map(C.state.blockers)})}});return}return X(re,oe)}),S.initialized||X(Yn.Pop,S.location),C}function j(){a&&a(),l.clear(),E&&E.abort(),S.fetchers.forEach((ee,re)=>fe(re)),S.blockers.forEach((ee,re)=>Xe(re))}function U(ee){return l.add(ee),()=>l.delete(ee)}function G(ee){S=Yt({},S,ee),l.forEach(re=>re(S))}function W(ee,re){var oe,xe;let ge=S.actionData!=null&&S.navigation.formMethod!=null&&Ea(S.navigation.formMethod)&&S.navigation.state==="loading"&&((oe=ee.state)==null?void 0:oe._isRedirect)!==!0,Ee;re.actionData?Object.keys(re.actionData).length>0?Ee=re.actionData:Ee=null:ge?Ee=S.actionData:Ee=null;let ke=re.loaderData?oO(S.loaderData,re.loaderData,re.matches||[],re.errors):S.loaderData;for(let[Fe]of z)Xe(Fe);let Ye=x===!0||S.navigation.formMethod!=null&&Ea(S.navigation.formMethod)&&((xe=ee.state)==null?void 0:xe._isRedirect)!==!0;o&&(r=o,o=void 0),G(Yt({},re,{actionData:Ee,loaderData:ke,historyAction:y,location:ee,initialized:!0,navigation:py,revalidation:"idle",restoreScrollPosition:He(ee,re.matches||S.matches),preventScrollReset:Ye,blockers:new Map(S.blockers)})),w||y===Yn.Pop||(y===Yn.Push?e.history.push(ee,ee.state):y===Yn.Replace&&e.history.replace(ee,ee.state)),y=Yn.Pop,x=!1,w=!1,I=!1,O=[],_=[]}async function q(ee,re){if(typeof ee=="number"){e.history.go(ee);return}let{path:oe,submission:xe,error:ge}=J$(ee,i,re),Ee=S.location,ke=cf(S.location,oe,re&&re.state);ke=Yt({},ke,e.history.encodeLocation(ke));let Ye=re&&re.replace!=null?re.replace:void 0,Fe=Yn.Push;Ye===!0?Fe=Yn.Replace:Ye===!1||xe!=null&&Ea(xe.formMethod)&&xe.formAction===S.location.pathname+S.location.search&&(Fe=Yn.Replace);let ot=re&&"preventScrollReset"in re?re.preventScrollReset===!0:void 0,Ae=ft({currentLocation:Ee,nextLocation:ke,historyAction:Fe});if(Ae){Qe(Ae,{state:"blocked",location:ke,proceed(){Qe(Ae,{state:"proceeding",proceed:void 0,reset:void 0,location:ke}),q(ee,re)},reset(){Xe(Ae),G({blockers:new Map(S.blockers)})}});return}return await X(Fe,ke,{submission:xe,pendingError:ge,preventScrollReset:ot,replace:re&&re.replace})}function J(){if(ie(),G({revalidation:"loading"}),S.navigation.state!=="submitting"){if(S.navigation.state==="idle"){X(S.historyAction,S.location,{startUninterruptedRevalidation:!0});return}X(y||S.historyAction,S.navigation.location,{overrideNavigation:S.navigation})}}async function X(ee,re,oe){E&&E.abort(),E=null,y=ee,w=(oe&&oe.startUninterruptedRevalidation)===!0,dt(S.location,S.matches),x=(oe&&oe.preventScrollReset)===!0;let xe=o||r,ge=oe&&oe.overrideNavigation,Ee=ku(xe,re,e.basename);if(!Ee){let Ue=Xi(404,{pathname:re.pathname}),{matches:ze,route:at}=iO(xe);ct(),W(re,{matches:ze,loaderData:{},errors:{[at.id]:Ue}});return}if(h9(S.location,re)&&!(oe&&oe.submission&&Ea(oe.submission.formMethod))){W(re,{matches:Ee});return}E=new AbortController;let ke=od(e.history,re,E.signal,oe&&oe.submission),Ye,Fe;if(oe&&oe.pendingError)Fe={[Fu(Ee).route.id]:oe.pendingError};else if(oe&&oe.submission&&Ea(oe.submission.formMethod)){let Ue=await Y(ke,re,oe.submission,Ee,{replace:oe.replace});if(Ue.shortCircuited)return;Ye=Ue.pendingActionData,Fe=Ue.pendingActionError,ge=Yt({state:"loading",location:re},oe.submission),ke=new Request(ke.url,{signal:ke.signal})}let{shortCircuited:ot,loaderData:Ae,errors:Ke}=await ne(ke,re,Ee,ge,oe&&oe.submission,oe&&oe.fetcherSubmission,oe&&oe.replace,Ye,Fe);ot||(E=null,W(re,Yt({matches:Ee},Ye?{actionData:Ye}:{},{loaderData:Ae,errors:Ke})))}async function Y(ee,re,oe,xe,ge){ie();let Ee=Yt({state:"submitting",location:re},oe);G({navigation:Ee});let ke,Ye=mS(xe,re);if(!Ye.route.action&&!Ye.route.lazy)ke={type:rr.error,error:Xi(405,{method:ee.method,pathname:re.pathname,routeId:Ye.route.id})};else if(ke=await rd("action",ee,Ye,xe,n,t,C.basename),ee.signal.aborted)return{shortCircuited:!0};if(Gu(ke)){let Fe;return ge&&ge.replace!=null?Fe=ge.replace:Fe=ke.location===S.location.pathname+S.location.search,await ce(S,ke,{submission:oe,replace:Fe}),{shortCircuited:!0}}if(Pd(ke)){let Fe=Fu(xe,Ye.route.id);return(ge&&ge.replace)!==!0&&(y=Yn.Push),{pendingActionData:{},pendingActionError:{[Fe.route.id]:ke.error}}}if(cs(ke))throw Xi(400,{type:"defer-action"});return{pendingActionData:{[Ye.route.id]:ke.data}}}async function ne(ee,re,oe,xe,ge,Ee,ke,Ye,Fe){let ot=xe;ot||(ot=Yt({state:"loading",location:re,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},ge));let Ae=ge||Ee?ge||Ee:ot.formMethod&&ot.formAction&&ot.formData&&ot.formEncType?{formMethod:ot.formMethod,formAction:ot.formAction,formData:ot.formData,formEncType:ot.formEncType}:void 0,Ke=o||r,[Ue,ze]=eO(e.history,S,oe,Ae,re,I,O,_,T,Ke,e.basename,Ye,Fe);if(ct(We=>!(oe&&oe.some(qe=>qe.route.id===We))||Ue&&Ue.some(qe=>qe.route.id===We)),Ue.length===0&&ze.length===0)return W(re,Yt({matches:oe,loaderData:{},errors:Fe||null},Ye?{actionData:Ye}:{})),{shortCircuited:!0};if(!w){ze.forEach(qe=>{let ht=S.fetchers.get(qe.key),en={state:"loading",data:ht&&ht.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};S.fetchers.set(qe.key,en)});let We=Ye||S.actionData;G(Yt({navigation:ot},We?Object.keys(We).length===0?{actionData:null}:{actionData:We}:{},ze.length>0?{fetchers:new Map(S.fetchers)}:{}))}P=++M,ze.forEach(We=>R.set(We.key,E));let{results:at,loaderResults:$t,fetcherResults:tt}=await he(S.matches,oe,Ue,ze,ee);if(ee.signal.aborted)return{shortCircuited:!0};ze.forEach(We=>R.delete(We.key));let lt=aO(at);if(lt)return await ce(S,lt,{replace:ke}),{shortCircuited:!0};let{loaderData:_e,errors:Ne}=rO(S,oe,Ue,$t,Fe,ze,tt,L);L.forEach((We,qe)=>{We.subscribe(ht=>{(ht||We.done)&&L.delete(qe)})}),de();let Te=Re(P);return Yt({loaderData:_e,errors:Ne},Te||ze.length>0?{fetchers:new Map(S.fetchers)}:{})}function le(ee){return S.fetchers.get(ee)||l9}function we(ee,re,oe,xe){if(s9)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.");R.has(ee)&&Oe(ee);let Ee=ku(o||r,oe,e.basename);if(!Ee){pe(ee,re,Xi(404,{pathname:oe}));return}let{path:ke,submission:Ye}=J$(oe,i,xe,!0),Fe=mS(Ee,ke);if(x=(xe&&xe.preventScrollReset)===!0,Ye&&Ea(Ye.formMethod)){Ie(ee,re,ke,Fe,Ee,Ye);return}T.set(ee,{routeId:re,path:ke}),Ce(ee,re,ke,Fe,Ee,Ye)}async function Ie(ee,re,oe,xe,ge,Ee){if(ie(),T.delete(ee),!xe.route.action&&!xe.route.lazy){let _t=Xi(405,{method:Ee.formMethod,pathname:oe,routeId:re});pe(ee,re,_t);return}let ke=S.fetchers.get(ee),Ye=Yt({state:"submitting"},Ee,{data:ke&&ke.data," _hasFetcherDoneAnything ":!0});S.fetchers.set(ee,Ye),G({fetchers:new Map(S.fetchers)});let Fe=new AbortController,ot=od(e.history,oe,Fe.signal,Ee);R.set(ee,Fe);let Ae=await rd("action",ot,xe,ge,n,t,C.basename);if(ot.signal.aborted){R.get(ee)===Fe&&R.delete(ee);return}if(Gu(Ae)){R.delete(ee),N.add(ee);let _t=Yt({state:"loading"},Ee,{data:void 0," _hasFetcherDoneAnything ":!0});return S.fetchers.set(ee,_t),G({fetchers:new Map(S.fetchers)}),ce(S,Ae,{submission:Ee,isFetchActionRedirect:!0})}if(Pd(Ae)){pe(ee,re,Ae.error);return}if(cs(Ae))throw Xi(400,{type:"defer-action"});let Ke=S.navigation.location||S.location,Ue=od(e.history,Ke,Fe.signal),ze=o||r,at=S.navigation.state!=="idle"?ku(ze,S.navigation.location,e.basename):S.matches;Ft(at,"Didn't find any matches after fetcher action");let $t=++M;D.set(ee,$t);let tt=Yt({state:"loading",data:Ae.data},Ee,{" _hasFetcherDoneAnything ":!0});S.fetchers.set(ee,tt);let[lt,_e]=eO(e.history,S,at,Ee,Ke,I,O,_,T,ze,e.basename,{[xe.route.id]:Ae.data},void 0);_e.filter(_t=>_t.key!==ee).forEach(_t=>{let zt=_t.key,Tn=S.fetchers.get(zt),zn={state:"loading",data:Tn&&Tn.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};S.fetchers.set(zt,zn),R.set(zt,Fe)}),G({fetchers:new Map(S.fetchers)});let{results:Ne,loaderResults:Te,fetcherResults:We}=await he(S.matches,at,lt,_e,Ue);if(Fe.signal.aborted)return;D.delete(ee),R.delete(ee),_e.forEach(_t=>R.delete(_t.key));let qe=aO(Ne);if(qe)return ce(S,qe);let{loaderData:ht,errors:en}=rO(S,S.matches,lt,Te,void 0,_e,We,L),tn={state:"idle",data:Ae.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};S.fetchers.set(ee,tn);let Rn=Re($t);S.navigation.state==="loading"&&$t>P?(Ft(y,"Expected pending action"),E&&E.abort(),W(S.navigation.location,{matches:at,loaderData:ht,errors:en,fetchers:new Map(S.fetchers)})):(G(Yt({errors:en,loaderData:oO(S.loaderData,ht,at,en)},Rn?{fetchers:new Map(S.fetchers)}:{})),I=!1)}async function Ce(ee,re,oe,xe,ge,Ee){let ke=S.fetchers.get(ee),Ye=Yt({state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},Ee,{data:ke&&ke.data," _hasFetcherDoneAnything ":!0});S.fetchers.set(ee,Ye),G({fetchers:new Map(S.fetchers)});let Fe=new AbortController,ot=od(e.history,oe,Fe.signal);R.set(ee,Fe);let Ae=await rd("loader",ot,xe,ge,n,t,C.basename);if(cs(Ae)&&(Ae=await m2(Ae,ot.signal,!0)||Ae),R.get(ee)===Fe&&R.delete(ee),ot.signal.aborted)return;if(Gu(Ae)){await ce(S,Ae);return}if(Pd(Ae)){let Ue=Fu(S.matches,re);S.fetchers.delete(ee),G({fetchers:new Map(S.fetchers),errors:{[Ue.route.id]:Ae.error}});return}Ft(!cs(Ae),"Unhandled fetcher deferred data");let Ke={state:"idle",data:Ae.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};S.fetchers.set(ee,Ke),G({fetchers:new Map(S.fetchers)})}async function ce(ee,re,oe){var xe;let{submission:ge,replace:Ee,isFetchActionRedirect:ke}=oe===void 0?{}:oe;re.revalidate&&(I=!0);let Ye=cf(ee.location,re.location,Yt({_isRedirect:!0},ke?{_isFetchActionRedirect:!0}:{}));if(Ft(Ye,"Expected a location on the redirect navigation"),u2.test(re.location)&&c2&&typeof((xe=window)==null?void 0:xe.location)<"u"){let ze=e.history.createURL(re.location),at=Kg(ze.pathname,e.basename||"/")==null;if(window.location.origin!==ze.origin||at){Ee?window.location.replace(re.location):window.location.assign(re.location);return}}E=null;let Fe=Ee===!0?Yn.Replace:Yn.Push,{formMethod:ot,formAction:Ae,formEncType:Ke,formData:Ue}=ee.navigation;!ge&&ot&&Ae&&Ue&&Ke&&(ge={formMethod:ot,formAction:Ae,formEncType:Ke,formData:Ue}),a9.has(re.status)&&ge&&Ea(ge.formMethod)?await X(Fe,Ye,{submission:Yt({},ge,{formAction:re.location}),preventScrollReset:x}):ke?await X(Fe,Ye,{overrideNavigation:{state:"loading",location:Ye,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},fetcherSubmission:ge,preventScrollReset:x}):await X(Fe,Ye,{overrideNavigation:{state:"loading",location:Ye,formMethod:ge?ge.formMethod:void 0,formAction:ge?ge.formAction:void 0,formEncType:ge?ge.formEncType:void 0,formData:ge?ge.formData:void 0},preventScrollReset:x})}async function he(ee,re,oe,xe,ge){let Ee=await Promise.all([...oe.map(Fe=>rd("loader",ge,Fe,re,n,t,C.basename)),...xe.map(Fe=>Fe.matches&&Fe.match?rd("loader",od(e.history,Fe.path,ge.signal),Fe.match,Fe.matches,n,t,C.basename):{type:rr.error,error:Xi(404,{pathname:Fe.path})})]),ke=Ee.slice(0,oe.length),Ye=Ee.slice(oe.length);return await Promise.all([lO(ee,oe,ke,ge.signal,!1,S.loaderData),lO(ee,xe.map(Fe=>Fe.match),Ye,ge.signal,!0)]),{results:Ee,loaderResults:ke,fetcherResults:Ye}}function ie(){I=!0,O.push(...ct()),T.forEach((ee,re)=>{R.has(re)&&(_.push(re),Oe(re))})}function pe(ee,re,oe){let xe=Fu(S.matches,re);fe(ee),G({errors:{[xe.route.id]:oe},fetchers:new Map(S.fetchers)})}function fe(ee){R.has(ee)&&Oe(ee),T.delete(ee),D.delete(ee),N.delete(ee),S.fetchers.delete(ee)}function Oe(ee){let re=R.get(ee);Ft(re,"Expected fetch controller: "+ee),re.abort(),R.delete(ee)}function Se(ee){for(let re of ee){let xe={state:"idle",data:le(re).data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};S.fetchers.set(re,xe)}}function de(){let ee=[];for(let re of N){let oe=S.fetchers.get(re);Ft(oe,"Expected fetcher: "+re),oe.state==="loading"&&(N.delete(re),ee.push(re))}Se(ee)}function Re(ee){let re=[];for(let[oe,xe]of D)if(xe0}function be(ee,re){let oe=S.blockers.get(ee)||Z$;return z.get(ee)!==re&&z.set(ee,re),oe}function Xe(ee){S.blockers.delete(ee),z.delete(ee)}function Qe(ee,re){let oe=S.blockers.get(ee)||Z$;Ft(oe.state==="unblocked"&&re.state==="blocked"||oe.state==="blocked"&&re.state==="blocked"||oe.state==="blocked"&&re.state==="proceeding"||oe.state==="blocked"&&re.state==="unblocked"||oe.state==="proceeding"&&re.state==="unblocked","Invalid blocker state transition: "+oe.state+" -> "+re.state),S.blockers.set(ee,re),G({blockers:new Map(S.blockers)})}function ft(ee){let{currentLocation:re,nextLocation:oe,historyAction:xe}=ee;if(z.size===0)return;z.size>1&&dc(!1,"A router only supports one blocker at a time");let ge=Array.from(z.entries()),[Ee,ke]=ge[ge.length-1],Ye=S.blockers.get(Ee);if(!(Ye&&Ye.state==="proceeding")&&ke({currentLocation:re,nextLocation:oe,historyAction:xe}))return Ee}function ct(ee){let re=[];return L.forEach((oe,xe)=>{(!ee||ee(xe))&&(oe.cancel(),re.push(xe),L.delete(xe))}),re}function ut(ee,re,oe){if(s=ee,f=re,d=oe||(xe=>xe.key),!m&&S.navigation===py){m=!0;let xe=He(S.location,S.matches);xe!=null&&G({restoreScrollPosition:xe})}return()=>{s=null,f=null,d=null}}function dt(ee,re){if(s&&d&&f){let oe=re.map(ge=>sO(ge,S.loaderData)),xe=d(ee,oe)||ee.key;s[xe]=f()}}function He(ee,re){if(s&&d&&f){let oe=re.map(Ee=>sO(Ee,S.loaderData)),xe=d(ee,oe)||ee.key,ge=s[xe];if(typeof ge=="number")return ge}return null}function Je(ee){o=ee}return C={get basename(){return e.basename},get state(){return S},get routes(){return r},initialize:V,subscribe:U,enableScrollRestoration:ut,navigate:q,fetch:we,revalidate:J,createHref:ee=>e.history.createHref(ee),encodeLocation:ee=>e.history.encodeLocation(ee),getFetcher:le,deleteFetcher:fe,dispose:j,getBlocker:be,deleteBlocker:Xe,_internalFetchControllers:R,_internalActiveDeferreds:L,_internalSetRoutes:Je},C}function d9(e){return e!=null&&"formData"in e}function J$(e,t,n,r){r===void 0&&(r=!1);let o=typeof e=="string"?e:Rs(e);if(!n||!d9(n))return{path:o};if(n.formMethod&&!y9(n.formMethod))return{path:o,error:Xi(405,{method:n.formMethod})};let i;if(n.formData){let s=n.formMethod||"get";if(i={formMethod:t.v7_normalizeFormMethod?s.toUpperCase():s.toLowerCase(),formAction:p2(o),formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:n.formData},Ea(i.formMethod))return{path:o,submission:i}}let a=ja(o),l=f2(n.formData);return r&&a.search&&h2(a.search)&&l.append("index",""),a.search="?"+l,{path:Rs(a),submission:i}}function f9(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 eO(e,t,n,r,o,i,a,l,s,d,f,m,h){let g=h?Object.values(h)[0]:m?Object.values(m)[0]:void 0,v=e.createURL(t.location),C=e.createURL(o),S=i||v.toString()===C.toString()||v.search!==C.search,y=h?Object.keys(h)[0]:void 0,E=f9(n,y).filter((I,O)=>{if(I.route.lazy)return!0;if(I.route.loader==null)return!1;if(p9(t.loaderData,t.matches[O],I)||a.some(M=>M===I.route.id))return!0;let _=t.matches[O],R=I;return tO(I,Yt({currentUrl:v,currentParams:_.params,nextUrl:C,nextParams:R.params},r,{actionResult:g,defaultShouldRevalidate:S||d2(_,R)}))}),w=[];return s.forEach((I,O)=>{if(!n.some(P=>P.route.id===I.routeId))return;let _=ku(d,I.path,f);if(!_){w.push(Yt({key:O},I,{matches:null,match:null}));return}let R=mS(_,I.path);if(l.includes(O)){w.push(Yt({key:O,matches:_,match:R},I));return}tO(R,Yt({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:C,nextParams:n[n.length-1].params},r,{actionResult:g,defaultShouldRevalidate:S}))&&w.push(Yt({key:O,matches:_,match:R},I))}),[E,w]}function p9(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function d2(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function tO(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function nO(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];Ft(o,"No route found in manifest");let i={};for(let a in r){let s=o[a]!==void 0&&a!=="hasErrorBoundary";dc(!s,'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.')),!s&&!AV.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,{hasErrorBoundary:t(Yt({},o)),lazy:void 0})}async function rd(e,t,n,r,o,i,a,l,s,d){a===void 0&&(a="/"),l===void 0&&(l=!1),s===void 0&&(s=!1);let f,m,h,g=S=>{let y,x=new Promise((E,w)=>y=w);return h=()=>y(),t.signal.addEventListener("abort",h),Promise.race([S({request:t,params:n.params,context:d}),x])};try{let S=n.route[e];if(n.route.lazy)if(S)m=(await Promise.all([g(S),nO(n.route,i,o)]))[0];else if(await nO(n.route,i,o),S=n.route[e],S)m=await g(S);else{if(e==="action")throw Xi(405,{method:t.method,pathname:new URL(t.url).pathname,routeId:n.route.id});return{type:rr.data,data:void 0}}else Ft(S,"Could not find the "+e+' to run on the "'+n.route.id+'" route'),m=await g(S);Ft(m!==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(S){f=rr.error,m=S}finally{h&&t.signal.removeEventListener("abort",h)}if(v9(m)){let S=m.status;if(i9.has(S)){let E=m.headers.get("Location");if(Ft(E,"Redirects returned/thrown from loaders/actions must have a Location header"),u2.test(E)){if(!l){let w=new URL(t.url),I=E.startsWith("//")?new URL(w.protocol+E):new URL(E),O=Kg(I.pathname,a)!=null;I.origin===w.origin&&O&&(E=I.pathname+I.search+I.hash)}}else{let w=r.slice(0,r.indexOf(n)+1),I=a2(w).map(_=>_.pathnameBase),O=ZV(E,I,new URL(t.url).pathname);if(Ft(Rs(O),"Unable to resolve redirect location: "+E),a){let _=O.pathname;O.pathname=_==="/"?a:ys([a,_])}E=Rs(O)}if(l)throw m.headers.set("Location",E),m;return{type:rr.redirect,status:S,location:E,revalidate:m.headers.get("X-Remix-Revalidate")!==null}}if(s)throw{type:f||rr.data,response:m};let y,x=m.headers.get("Content-Type");return x&&/\bapplication\/json\b/.test(x)?y=await m.json():y=await m.text(),f===rr.error?{type:f,error:new tx(S,m.statusText,y),headers:m.headers}:{type:rr.data,data:y,statusCode:m.status,headers:m.headers}}if(f===rr.error)return{type:f,error:m};if(g9(m)){var v,C;return{type:rr.deferred,deferredData:m,statusCode:(v=m.init)==null?void 0:v.status,headers:((C=m.init)==null?void 0:C.headers)&&new Headers(m.init.headers)}}return{type:rr.data,data:m}}function od(e,t,n,r){let o=e.createURL(p2(t)).toString(),i={signal:n};if(r&&Ea(r.formMethod)){let{formMethod:a,formEncType:l,formData:s}=r;i.method=a.toUpperCase(),i.body=l==="application/x-www-form-urlencoded"?f2(s):s}return new Request(o,i)}function f2(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,r instanceof File?r.name:r);return t}function m9(e,t,n,r,o){let i={},a=null,l,s=!1,d={};return n.forEach((f,m)=>{let h=t[m].route.id;if(Ft(!Gu(f),"Cannot handle redirect results in processLoaderData"),Pd(f)){let g=Fu(e,h),v=f.error;r&&(v=Object.values(r)[0],r=void 0),a=a||{},a[g.route.id]==null&&(a[g.route.id]=v),i[h]=void 0,s||(s=!0,l=l2(f.error)?f.error.status:500),f.headers&&(d[h]=f.headers)}else cs(f)?(o.set(h,f.deferredData),i[h]=f.deferredData.data):i[h]=f.data,f.statusCode!=null&&f.statusCode!==200&&!s&&(l=f.statusCode),f.headers&&(d[h]=f.headers)}),r&&(a=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:a,statusCode:l||200,loaderHeaders:d}}function rO(e,t,n,r,o,i,a,l){let{loaderData:s,errors:d}=m9(t,n,r,o,l);for(let f=0;fr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function iO(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 Xi(e,t){let{pathname:n,routeId:r,method:o,type:i}=t===void 0?{}:t,a="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(a="Bad Request",o&&n&&r?l="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"&&(l="defer() is not supported in actions")):e===403?(a="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",l='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",o&&n&&r?l="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&&(l='Invalid request method "'+o.toUpperCase()+'"')),new tx(e||500,a,new Error(l),!0)}function aO(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Gu(n))return n}}function p2(e){let t=typeof e=="string"?ja(e):e;return Rs(Yt({},t,{hash:""}))}function h9(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash!==t.hash}function cs(e){return e.type===rr.deferred}function Pd(e){return e.type===rr.error}function Gu(e){return(e&&e.type)===rr.redirect}function g9(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 v9(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function y9(e){return o9.has(e.toLowerCase())}function Ea(e){return n9.has(e.toLowerCase())}async function lO(e,t,n,r,o,i){for(let a=0;am.route.id===s.route.id),f=d!=null&&!d2(d,s)&&(i&&i[s.route.id])!==void 0;cs(l)&&(o||f)&&await m2(l,r,o).then(m=>{m&&(n[a]=m||n[a])})}}async function m2(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:rr.data,data:e.deferredData.unwrappedData}}catch(o){return{type:rr.error,error:o}}return{type:rr.data,data:e.deferredData.data}}}function h2(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function sO(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 mS(e,t){let n=typeof t=="string"?ja(t).search:t.search;if(e[e.length-1].route.index&&h2(n||""))return e[e.length-1];let r=a2(e);return r[r.length-1]}/** - * React Router v6.10.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 b9(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const S9=typeof Object.is=="function"?Object.is:b9,{useState:C9,useEffect:x9,useLayoutEffect:E9,useDebugValue:w9}=Ud;function I9(e,t,n){const r=t(),[{inst:o},i]=C9({inst:{value:r,getSnapshot:t}});return E9(()=>{o.value=r,o.getSnapshot=t,my(o)&&i({inst:o})},[e,r,t]),x9(()=>(my(o)&&i({inst:o}),e(()=>{my(o)&&i({inst:o})})),[e]),w9(r),r}function my(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!S9(n,r)}catch{return!0}}function $9(e,t,n){return t()}const O9=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",_9=!O9,R9=_9?$9:I9,T9="useSyncExternalStore"in Ud?(e=>e.useSyncExternalStore)(Ud):R9,nx=c.createContext(null),rx=c.createContext(null),g2=c.createContext(null),Gg=c.createContext(null),Xg=c.createContext({outlet:null,matches:[]}),v2=c.createContext(null);function hS(){return hS=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.assign({},C,{params:Object.assign({},a,C.params),pathname:ys([l,n.encodeLocation?n.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?l:ys([l,n.encodeLocation?n.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),o,r||void 0);return t&&v?c.createElement(Gg.Provider,{value:{location:hS({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Yn.Pop}},v):v}function M9(){let e=z9(),t=l2(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 c.createElement(c.Fragment,null,c.createElement("h2",null,"Unexpected Application Error!"),c.createElement("h3",{style:{fontStyle:"italic"}},t),n?c.createElement("pre",{style:o},n):null,i)}class A9 extends c.Component{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location?{error:t.error,location:t.location}:{error:t.error||n.error,location:n.location}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?c.createElement(Xg.Provider,{value:this.props.routeContext},c.createElement(v2.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function L9(e){let{routeContext:t,match:n,children:r}=e,o=c.useContext(nx);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),c.createElement(Xg.Provider,{value:t},r)}function D9(e,t,n){if(t===void 0&&(t=[]),e==null)if(n!=null&&n.errors)e=n.matches;else return null;let r=e,o=n==null?void 0:n.errors;if(o!=null){let i=r.findIndex(a=>a.route.id&&(o==null?void 0:o[a.route.id]));i>=0||Ft(!1),r=r.slice(0,Math.min(r.length,i+1))}return r.reduceRight((i,a,l)=>{let s=a.route.id?o==null?void 0:o[a.route.id]:null,d=null;n&&(a.route.ErrorBoundary?d=c.createElement(a.route.ErrorBoundary,null):a.route.errorElement?d=a.route.errorElement:d=c.createElement(M9,null));let f=t.concat(r.slice(0,l+1)),m=()=>{let h=i;return s?h=d:a.route.Component?h=c.createElement(a.route.Component,null):a.route.element&&(h=a.route.element),c.createElement(L9,{match:a,routeContext:{outlet:i,matches:f},children:h})};return n&&(a.route.ErrorBoundary||a.route.errorElement||l===0)?c.createElement(A9,{location:n.location,component:d,error:s,children:m(),routeContext:{outlet:null,matches:f}}):m()},null)}var uO;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator"})(uO||(uO={}));var Oh;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(Oh||(Oh={}));function k9(e){let t=c.useContext(rx);return t||Ft(!1),t}function F9(e){let t=c.useContext(Xg);return t||Ft(!1),t}function B9(e){let t=F9(),n=t.matches[t.matches.length-1];return n.route.id||Ft(!1),n.route.id}function z9(){var e;let t=c.useContext(v2),n=k9(Oh.UseRouteError),r=B9(Oh.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function H9(e){let{fallbackElement:t,router:n}=e,r=c.useCallback(()=>n.state,[n]),o=T9(n.subscribe,r,r),i=c.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:s=>n.navigate(s),push:(s,d,f)=>n.navigate(s,{state:d,preventScrollReset:f==null?void 0:f.preventScrollReset}),replace:(s,d,f)=>n.navigate(s,{replace:!0,state:d,preventScrollReset:f==null?void 0:f.preventScrollReset})}),[n]),a=n.basename||"/",l=c.useMemo(()=>({router:n,navigator:i,static:!1,basename:a}),[n,i,a]);return c.createElement(c.Fragment,null,c.createElement(nx.Provider,{value:l},c.createElement(rx.Provider,{value:o},c.createElement(V9,{basename:n.basename,location:n.state.location,navigationType:n.state.historyAction,navigator:i},n.state.initialized?c.createElement(U9,null):t))),null)}function j9(e){Ft(!1)}function V9(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Yn.Pop,navigator:i,static:a=!1}=e;ox()&&Ft(!1);let l=t.replace(/^\/*/,"/"),s=c.useMemo(()=>({basename:l,navigator:i,static:a}),[l,i,a]);typeof r=="string"&&(r=ja(r));let{pathname:d="/",search:f="",hash:m="",state:h=null,key:g="default"}=r,v=c.useMemo(()=>{let C=Kg(d,l);return C==null?null:{location:{pathname:C,search:f,hash:m,state:h,key:g},navigationType:o}},[l,d,f,m,h,g,o]);return v==null?null:c.createElement(g2.Provider,{value:s},c.createElement(Gg.Provider,{children:n,value:v}))}function U9(e){let{children:t,location:n}=e,r=c.useContext(nx),o=r&&!t?r.router.routes:gS(t);return N9(o,n)}var cO;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(cO||(cO={}));new Promise(()=>{});function gS(e,t){t===void 0&&(t=[]);let n=[];return c.Children.forEach(e,(r,o)=>{if(!c.isValidElement(r))return;let i=[...t,o];if(r.type===c.Fragment){n.push.apply(n,gS(r.props.children,i));return}r.type!==j9&&Ft(!1),!r.props.index||!r.props.children||Ft(!1);let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=gS(r.props.children,i)),n.push(a)}),n}function W9(e){return!!e.ErrorBoundary||!!e.errorElement}/** - * React Router DOM v6.10.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 vS(){return vS=Object.assign?Object.assign.bind():function(e){for(var t=1;t0}),n=[],r=0,o=t;r1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(nU,function(s,d,f,m,h,g){if(d)t.minimumIntegerDigits=f.length;else{if(m&&h)throw new Error("We currently do not support maximum integer digits");if(g)throw new Error("We currently do not support exact integer digits")}return""});continue}if(_2.test(o.stem)){t.minimumIntegerDigits=o.stem.length;continue}if(mO.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(mO,function(s,d,f,m,h,g){return f==="*"?t.minimumFractionDigits=d.length:m&&m[0]==="#"?t.maximumFractionDigits=m.length:h&&g?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+g.length):(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length),""});var i=o.options[0];i==="w"?t=pt(pt({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=pt(pt({},t),hO(i)));continue}if(O2.test(o.stem)){t=pt(pt({},t),hO(o.stem));continue}var a=R2(o.stem);a&&(t=pt(pt({},t),a));var l=rU(o.stem);l&&(t=pt(pt({},t),l))}return t}var om={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function iU(e,t){for(var n="",r=0;r>1),s="a",d=aU(t);for((d=="H"||d=="k")&&(l=0);l-- >0;)n+=s;for(;a-- >0;)n=d+n}else o==="J"?n+="H":n+=o}return n}function aU(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var o=om[r||""]||om[n||""]||om["".concat(n,"-001")]||om["001"];return o[0]}var hy,lU=new RegExp("^".concat($2.source,"*")),sU=new RegExp("".concat($2.source,"*$"));function Xt(e,t){return{start:e,end:t}}var uU=!!String.prototype.startsWith,cU=!!String.fromCodePoint,dU=!!Object.fromEntries,fU=!!String.prototype.codePointAt,pU=!!String.prototype.trimStart,mU=!!String.prototype.trimEnd,hU=!!Number.isSafeInteger,gU=hU?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},SS=!0;try{var vU=P2("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");SS=((hy=vU.exec("a"))===null||hy===void 0?void 0:hy[0])==="a"}catch{SS=!1}var vO=uU?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},CS=cU?String.fromCodePoint:function(){for(var t=[],n=0;ni;){if(a=t[i++],a>1114111)throw RangeError(a+" is not a valid code point");r+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return r},yO=dU?Object.fromEntries:function(t){for(var n={},r=0,o=t;r=r)){var o=t.charCodeAt(n),i;return o<55296||o>56319||n+1===r||(i=t.charCodeAt(n+1))<56320||i>57343?o:(o-55296<<10)+(i-56320)+65536}},yU=pU?function(t){return t.trimStart()}:function(t){return t.replace(lU,"")},bU=mU?function(t){return t.trimEnd()}:function(t){return t.replace(sU,"")};function P2(e,t){return new RegExp(e,t)}var xS;if(SS){var bO=P2("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");xS=function(t,n){var r;bO.lastIndex=n;var o=bO.exec(t);return(r=o[1])!==null&&r!==void 0?r:""}}else xS=function(t,n){for(var r=[];;){var o=T2(t,n);if(o===void 0||N2(o)||EU(o))break;r.push(o),n+=o>=65536?2:1}return CS.apply(void 0,r)};var SU=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var o=[];!this.isEOF();){var i=this.char();if(i===123){var a=this.parseArgument(t,r);if(a.err)return a;o.push(a.val)}else{if(i===125&&t>0)break;if(i===35&&(n==="plural"||n==="selectordinal")){var l=this.clonePosition();this.bump(),o.push({type:xn.pound,location:Xt(l,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(Wt.UNMATCHED_CLOSING_TAG,Xt(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&ES(this.peek()||0)){var a=this.parseTag(t,n);if(a.err)return a;o.push(a.val)}else{var a=this.parseLiteral(t,n);if(a.err)return a;o.push(a.val)}}}return{val:o,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:xn.literal,value:"<".concat(o,"/>"),location:Xt(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,n,!0);if(i.err)return i;var a=i.val,l=this.clonePosition();if(this.bumpIf("")?{val:{type:xn.tag,value:o,children:a,location:Xt(r,this.clonePosition())},err:null}:this.error(Wt.INVALID_TAG,Xt(l,this.clonePosition())))}else return this.error(Wt.UNCLOSED_TAG,Xt(r,this.clonePosition()))}else return this.error(Wt.INVALID_TAG,Xt(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&xU(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),o="";;){var i=this.tryParseQuote(n);if(i){o+=i;continue}var a=this.tryParseUnquoted(t,n);if(a){o+=a;continue}var l=this.tryParseLeftAngleBracket();if(l){o+=l;continue}break}var s=Xt(r,this.clonePosition());return{val:{type:xn.literal,value:o,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!CU(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return CS.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),CS(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Wt.EXPECT_ARGUMENT_CLOSING_BRACE,Xt(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Wt.EMPTY_ARGUMENT,Xt(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(Wt.MALFORMED_ARGUMENT,Xt(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Wt.EXPECT_ARGUMENT_CLOSING_BRACE,Xt(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:xn.argument,value:o,location:Xt(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Wt.EXPECT_ARGUMENT_CLOSING_BRACE,Xt(r,this.clonePosition())):this.parseArgumentOptions(t,n,o,r);default:return this.error(Wt.MALFORMED_ARGUMENT,Xt(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=xS(this.message,n),o=n+r.length;this.bumpTo(o);var i=this.clonePosition(),a=Xt(t,i);return{value:r,location:a}},e.prototype.parseArgumentOptions=function(t,n,r,o){var i,a=this.clonePosition(),l=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(l){case"":return this.error(Wt.EXPECT_ARGUMENT_TYPE,Xt(a,s));case"number":case"date":case"time":{this.bumpSpace();var d=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),m=this.parseSimpleArgStyleIfPossible();if(m.err)return m;var h=bU(m.val);if(h.length===0)return this.error(Wt.EXPECT_ARGUMENT_STYLE,Xt(this.clonePosition(),this.clonePosition()));var g=Xt(f,this.clonePosition());d={style:h,styleLocation:g}}var v=this.tryParseArgumentClose(o);if(v.err)return v;var C=Xt(o,this.clonePosition());if(d&&vO(d==null?void 0:d.style,"::",0)){var S=yU(d.style.slice(2));if(l==="number"){var m=this.parseNumberSkeletonFromString(S,d.styleLocation);return m.err?m:{val:{type:xn.number,value:r,location:C,style:m.val},err:null}}else{if(S.length===0)return this.error(Wt.EXPECT_DATE_TIME_SKELETON,C);var y=S;this.locale&&(y=iU(S,this.locale));var h={type:fc.dateTime,pattern:y,location:d.styleLocation,parsedOptions:this.shouldParseSkeletons?Z9(y):{}},x=l==="date"?xn.date:xn.time;return{val:{type:x,value:r,location:C,style:h},err:null}}}return{val:{type:l==="number"?xn.number:l==="date"?xn.date:xn.time,value:r,location:C,style:(i=d==null?void 0:d.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var E=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Wt.EXPECT_SELECT_ARGUMENT_OPTIONS,Xt(E,pt({},E)));this.bumpSpace();var w=this.parseIdentifierIfPossible(),I=0;if(l!=="select"&&w.value==="offset"){if(!this.bumpIf(":"))return this.error(Wt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Xt(this.clonePosition(),this.clonePosition()));this.bumpSpace();var m=this.tryParseDecimalInteger(Wt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Wt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(m.err)return m;this.bumpSpace(),w=this.parseIdentifierIfPossible(),I=m.val}var O=this.tryParsePluralOrSelectOptions(t,l,n,w);if(O.err)return O;var v=this.tryParseArgumentClose(o);if(v.err)return v;var _=Xt(o,this.clonePosition());return l==="select"?{val:{type:xn.select,value:r,options:yO(O.val),location:_},err:null}:{val:{type:xn.plural,value:r,options:yO(O.val),offset:I,pluralType:l==="plural"?"cardinal":"ordinal",location:_},err:null}}default:return this.error(Wt.INVALID_ARGUMENT_TYPE,Xt(a,s))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(Wt.EXPECT_ARGUMENT_CLOSING_BRACE,Xt(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Wt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Xt(o,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=eU(t)}catch{return this.error(Wt.INVALID_NUMBER_SKELETON,n)}return{val:{type:fc.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?oU(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,o){for(var i,a=!1,l=[],s=new Set,d=o.value,f=o.location;;){if(d.length===0){var m=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(Wt.EXPECT_PLURAL_ARGUMENT_SELECTOR,Wt.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;f=Xt(m,this.clonePosition()),d=this.message.slice(m.offset,this.offset())}else break}if(s.has(d))return this.error(n==="select"?Wt.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Wt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);d==="other"&&(a=!0),this.bumpSpace();var g=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?Wt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Wt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Xt(this.clonePosition(),this.clonePosition()));var v=this.parseMessage(t+1,n,r);if(v.err)return v;var C=this.tryParseArgumentClose(g);if(C.err)return C;l.push([d,{value:v.val,location:Xt(g,this.clonePosition())}]),s.add(d),this.bumpSpace(),i=this.parseIdentifierIfPossible(),d=i.value,f=i.location}return l.length===0?this.error(n==="select"?Wt.EXPECT_SELECT_ARGUMENT_SELECTOR:Wt.EXPECT_PLURAL_ARGUMENT_SELECTOR,Xt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(Wt.MISSING_OTHER_CLAUSE,Xt(this.clonePosition(),this.clonePosition())):{val:l,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,a=0;!this.isEOF();){var l=this.char();if(l>=48&&l<=57)i=!0,a=a*10+(l-48),this.bump();else break}var s=Xt(o,this.clonePosition());return i?(a*=r,gU(a)?{val:a,err:null}:this.error(n,s)):this.error(t,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=T2(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(vO(this.message,t,this.offset())){for(var n=0;n=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&N2(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e}();function ES(e){return e>=97&&e<=122||e>=65&&e<=90}function CU(e){return ES(e)||e===47}function xU(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function N2(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function EU(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function wS(e){e.forEach(function(t){if(delete t.location,x2(t)||E2(t))for(var n in t.options)delete t.options[n].location,wS(t.options[n].value);else b2(t)&&I2(t.style)||(S2(t)||C2(t))&&bS(t.style)?delete t.style.location:w2(t)&&wS(t.children)})}function wU(e,t){t===void 0&&(t={}),t=pt({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new SU(e,t).parse();if(n.err){var r=SyntaxError(Wt[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||wS(n.val),n.val}function Yi(e,t){var n=t&&t.cache?t.cache:TU,r=t&&t.serializer?t.serializer:RU,o=t&&t.strategy?t.strategy:$U;return o(e,{cache:n,serializer:r})}function IU(e){return e==null||typeof e=="number"||typeof e=="boolean"}function M2(e,t,n,r){var o=IU(r)?r:n(r),i=t.get(o);return typeof i>"u"&&(i=e.call(this,r),t.set(o,i)),i}function A2(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return typeof i>"u"&&(i=e.apply(this,r),t.set(o,i)),i}function ix(e,t,n,r,o){return n.bind(t,e,r,o)}function $U(e,t){var n=e.length===1?M2:A2;return ix(e,this,n,t.cache.create(),t.serializer)}function OU(e,t){return ix(e,this,A2,t.cache.create(),t.serializer)}function _U(e,t){return ix(e,this,M2,t.cache.create(),t.serializer)}var RU=function(){return JSON.stringify(arguments)};function ax(){this.cache=Object.create(null)}ax.prototype.get=function(e){return this.cache[e]};ax.prototype.set=function(e,t){this.cache[e]=t};var TU={create:function(){return new ax}},qi={variadic:OU,monadic:_U},aa;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(aa||(aa={}));var Fl=function(e){ui(t,e);function t(n,r,o){var i=e.call(this,n)||this;return i.code=r,i.originalMessage=o,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),SO=function(e){ui(t,e);function t(n,r,o,i){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(o).join('", "'),'"'),aa.INVALID_VALUE,i)||this}return t}(Fl),PU=function(e){ui(t,e);function t(n,r,o){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),aa.INVALID_VALUE,o)||this}return t}(Fl),NU=function(e){ui(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),aa.MISSING_VALUE,r)||this}return t}(Fl),Kr;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Kr||(Kr={}));function MU(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==Kr.literal||n.type!==Kr.literal?t.push(n):r.value+=n.value,t},[])}function L2(e){return typeof e=="function"}function jm(e,t,n,r,o,i,a){if(e.length===1&&pO(e[0]))return[{type:Kr.literal,value:e[0].value}];for(var l=[],s=0,d=e;s"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=wU,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),Ts;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(Ts||(Ts={}));var Mf=function(e){ui(t,e);function t(n,r,o){var i=this,a=o?o instanceof Error?o:new Error(String(o)):void 0;return i=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,` -`).concat(a?` -`.concat(a.message,` -`).concat(a.stack):""))||this,i.code=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(i,t),i}return t}(Error),kU=function(e){ui(t,e);function t(n,r){return e.call(this,Ts.UNSUPPORTED_FORMATTER,n,r)||this}return t}(Mf),FU=function(e){ui(t,e);function t(n,r){return e.call(this,Ts.INVALID_CONFIG,n,r)||this}return t}(Mf),CO=function(e){ui(t,e);function t(n,r){return e.call(this,Ts.MISSING_DATA,n,r)||this}return t}(Mf),ci=function(e){ui(t,e);function t(n,r,o){var i=e.call(this,Ts.FORMAT_ERROR,"".concat(n,` -Locale: `).concat(r,` -`),o)||this;return i.locale=r,i}return t}(Mf),vy=function(e){ui(t,e);function t(n,r,o,i){var a=e.call(this,"".concat(n,` -MessageID: `).concat(o==null?void 0:o.id,` -Default Message: `).concat(o==null?void 0:o.defaultMessage,` -Description: `).concat(o==null?void 0:o.description,` -`),r,i)||this;return a.descriptor=o,a.locale=r,a}return t}(ci),BU=function(e){ui(t,e);function t(n,r){var o=e.call(this,Ts.MISSING_TRANSLATION,'Missing message: "'.concat(n.id,'" for locale "').concat(r,'", using ').concat(n.defaultMessage?"default message (".concat(typeof n.defaultMessage=="string"?n.defaultMessage:n.defaultMessage.map(function(i){var a;return(a=i.value)!==null&&a!==void 0?a:JSON.stringify(i)}).join(),")"):"id"," as fallback."))||this;return o.descriptor=n,o}return t}(Mf);function Fs(e,t,n){return n===void 0&&(n={}),t.reduce(function(r,o){return o in e?r[o]=e[o]:o in n&&(r[o]=n[o]),r},{})}var zU=function(e){},HU=function(e){},k2={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:zU,onWarn:HU};function F2(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function ql(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function jU(e){e===void 0&&(e=F2());var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames,o=Yi(function(){for(var l,s=[],d=0;d needs to exist in the component ancestry.")}var V2=pt(pt({},k2),{textComponent:c.Fragment});function c7(e){return function(t){return e(c.Children.toArray(t))}}function d7(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var i=0;ie.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var RS={},N7={get exports(){return RS},set exports(e){RS=e}};/*! - 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)&&(e=1),e}function sm(e){return e<=1?"".concat(Number(e)*100,"%"):e}function ds(e){return e.length===1?"0"+e:String(e)}function L7(e,t,n){return{r:xr(e,255)*255,g:xr(t,255)*255,b:xr(n,255)*255}}function _O(e,t,n){e=xr(e,255),t=xr(t,255),n=xr(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,l=(r+o)/2;if(r===o)a=0,i=0;else{var s=r-o;switch(a=l>.5?s/(2-r-o):s/(r+o),r){case e:i=(t-n)/s+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function D7(e,t,n){var r,o,i;if(e=xr(e,360),t=xr(t,100),n=xr(n,100),t===0)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=by(l,a,e+1/3),o=by(l,a,e),i=by(l,a,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function TS(e,t,n){e=xr(e,255),t=xr(t,255),n=xr(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,l=r-o,s=r===0?0:l/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/l+(t>16,g:(e&65280)>>8,b:e&255}}var NS={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 Cu(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,l=!1;return typeof e=="string"&&(e=V7(e)),typeof e=="object"&&(ba(e.r)&&ba(e.g)&&ba(e.b)?(t=L7(e.r,e.g,e.b),a=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ba(e.h)&&ba(e.s)&&ba(e.v)?(r=sm(e.s),o=sm(e.v),t=k7(e.h,r,o),a=!0,l="hsv"):ba(e.h)&&ba(e.s)&&ba(e.l)&&(r=sm(e.s),i=sm(e.l),t=D7(e.h,r,i),a=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Y2(n),{ok:a,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var H7="[-\\+]?\\d+%?",j7="[-\\+]?\\d*\\.\\d+%?",hl="(?:".concat(j7,")|(?:").concat(H7,")"),Sy="[\\s|\\(]+(".concat(hl,")[,|\\s]+(").concat(hl,")[,|\\s]+(").concat(hl,")\\s*\\)?"),Cy="[\\s|\\(]+(".concat(hl,")[,|\\s]+(").concat(hl,")[,|\\s]+(").concat(hl,")[,|\\s]+(").concat(hl,")\\s*\\)?"),Si={CSS_UNIT:new RegExp(hl),rgb:new RegExp("rgb"+Sy),rgba:new RegExp("rgba"+Cy),hsl:new RegExp("hsl"+Sy),hsla:new RegExp("hsla"+Cy),hsv:new RegExp("hsv"+Sy),hsva:new RegExp("hsva"+Cy),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 V7(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(NS[e])e=NS[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Si.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Si.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Si.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Si.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Si.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Si.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Si.hex8.exec(e),n?{r:Ro(n[1]),g:Ro(n[2]),b:Ro(n[3]),a:RO(n[4]),format:t?"name":"hex8"}:(n=Si.hex6.exec(e),n?{r:Ro(n[1]),g:Ro(n[2]),b:Ro(n[3]),format:t?"name":"hex"}:(n=Si.hex4.exec(e),n?{r:Ro(n[1]+n[1]),g:Ro(n[2]+n[2]),b:Ro(n[3]+n[3]),a:RO(n[4]+n[4]),format:t?"name":"hex8"}:(n=Si.hex3.exec(e),n?{r:Ro(n[1]+n[1]),g:Ro(n[2]+n[2]),b:Ro(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function ba(e){return!!Si.CSS_UNIT.exec(String(e))}var bn=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=z7(t)),this.originalInput=t;var o=Cu(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,i=t.r/255,a=t.g/255,l=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),l<=.03928?o=l/12.92:o=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Y2(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=TS(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=TS(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=_O(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=_O(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),PS(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),F7(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(xr(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(xr(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="#"+PS(this.r,this.g,this.b,!1),n=0,r=Object.entries(NS);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=lm(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=lm(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=lm(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=lm(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],l=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-um*t:Math.round(e.h)+um*t:r=n?Math.round(e.h)+um*t:Math.round(e.h)-um*t,r<0?r+=360:r>=360&&(r-=360),r}function MO(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-TO*t:t===Q2?r=e.s+TO:r=e.s+U7*t,r>1&&(r=1),n&&t===q2&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function AO(e,t,n){var r;return n?r=e.v+W7*t:r=e.v-K7*t,r>1&&(r=1),Number(r.toFixed(2))}function La(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Cu(e),o=q2;o>0;o-=1){var i=PO(r),a=cm(Cu({h:NO(i,o,!0),s:MO(i,o,!0),v:AO(i,o,!0)}));n.push(a)}n.push(cm(r));for(var l=1;l<=Q2;l+=1){var s=PO(r),d=cm(Cu({h:NO(s,l),s:MO(s,l),v:AO(s,l)}));n.push(d)}return t.theme==="dark"?G7.map(function(f){var m=f.index,h=f.opacity,g=cm(X7(Cu(t.backgroundColor||"#141414"),Cu(n[m]),h*100));return g}):n}var Xu={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"},xy={},Ey={};Object.keys(Xu).forEach(function(e){xy[e]=La(Xu[e]),xy[e].primary=xy[e][5],Ey[e]=La(Xu[e],{theme:"dark",backgroundColor:"#141414"}),Ey[e].primary=Ey[e][5]});var MS={},Y7=function(t){};function q7(e,t){}function Q7(e,t){}function Z7(){MS={}}function Z2(e,t,n){!t&&!MS[n]&&(e(!1,n),MS[n]=!0)}function wn(e,t){Z2(q7,e,t)}function J7(e,t){Z2(Q7,e,t)}wn.preMessage=Y7;wn.resetWarned=Z7;wn.noteOnce=J7;function pr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function bs(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var LO="data-rc-order",eW="rc-util-key",AS=new Map;function J2(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):eW}function Qg(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function tW(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function eM(e){return Array.from((AS.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function tM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!pr())return null;var n=t.csp,r=t.prepend,o=document.createElement("style");o.setAttribute(LO,tW(r)),n!=null&&n.nonce&&(o.nonce=n==null?void 0:n.nonce),o.innerHTML=e;var i=Qg(t),a=i.firstChild;if(r){if(r==="queue"){var l=eM(i).filter(function(s){return["prepend","prependQueue"].includes(s.getAttribute(LO))});if(l.length)return i.insertBefore(o,l[l.length-1].nextSibling),o}i.insertBefore(o,a)}else i.appendChild(o);return o}function nM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Qg(t);return eM(n).find(function(r){return r.getAttribute(J2(t))===e})}function _h(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=nM(e,t);if(n){var r=Qg(t);r.removeChild(n)}}function nW(e,t){var n=AS.get(e);if(!n||!bs(document,n)){var r=tM("",t),o=r.parentNode;AS.set(e,o),e.removeChild(r)}}function pc(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Qg(n);nW(r,n);var o=nM(t,n);if(o){var i,a;if((i=n.csp)!==null&&i!==void 0&&i.nonce&&o.nonce!==((a=n.csp)===null||a===void 0?void 0:a.nonce)){var l;o.nonce=(l=n.csp)===null||l===void 0?void 0:l.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var s=tM(e,n);return s.setAttribute(J2(n),t),s}function rW(e,t){wn(e,"[@ant-design/icons] ".concat(t))}function DO(e){return It(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(It(e.icon)==="object"||typeof e.icon=="function")}function kO(){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:t[n]=r}return t},{})}function LS(e,t,n){return n?ve.createElement(e.tag,H(H({key:t},kO(e.attrs)),n),(e.children||[]).map(function(r,o){return LS(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):ve.createElement(e.tag,H({key:t},kO(e.attrs)),(e.children||[]).map(function(r,o){return LS(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function rM(e){return La(e)[0]}function oM(e){return e?Array.isArray(e)?e:[e]:[]}var oW=` -.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); - } -} -`,iW=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:oW,n=c.useContext(ux),r=n.csp,o=n.prefixCls,i=t;o&&(i=i.replace(/anticon/g,o)),c.useEffect(function(){pc(i,"@ant-design-icons",{prepend:!0,csp:r})},[])},aW=["icon","className","onClick","style","primaryColor","secondaryColor"],Nd={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function lW(e){var t=e.primaryColor,n=e.secondaryColor;Nd.primaryColor=t,Nd.secondaryColor=n||rM(t),Nd.calculated=!!n}function sW(){return H({},Nd)}var Zg=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,l=t.secondaryColor,s=vt(t,aW),d=Nd;if(a&&(d={primaryColor:a,secondaryColor:l||rM(a)}),iW(),rW(DO(n),"icon should be icon definiton, but got ".concat(n)),!DO(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=H(H({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),LS(f.icon,"svg-".concat(f.name),H({className:r,onClick:o,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s))};Zg.displayName="IconReact";Zg.getTwoToneColors=sW;Zg.setTwoToneColors=lW;const dx=Zg;function iM(e){var t=oM(e),n=ue(t,2),r=n[0],o=n[1];return dx.setTwoToneColors({primaryColor:r,secondaryColor:o})}function uW(){var e=dx.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var cW=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];iM("#1890ff");var Jg=c.forwardRef(function(e,t){var n,r=e.className,o=e.icon,i=e.spin,a=e.rotate,l=e.tabIndex,s=e.onClick,d=e.twoToneColor,f=vt(e,cW),m=c.useContext(ux),h=m.prefixCls,g=h===void 0?"anticon":h,v=m.rootClassName,C=te(v,g,(n={},Q(n,"".concat(g,"-").concat(o.name),!!o.name),Q(n,"".concat(g,"-spin"),!!i||o.name==="loading"),n),r),S=l;S===void 0&&s&&(S=-1);var y=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,x=oM(d),E=ue(x,2),w=E[0],I=E[1];return c.createElement("span",H(H({role:"img","aria-label":o.name},f),{},{ref:t,tabIndex:S,onClick:s,className:C}),c.createElement(dx,{icon:o,primaryColor:w,secondaryColor:I,style:y}))});Jg.displayName="AntdIcon";Jg.getTwoToneColor=uW;Jg.setTwoToneColor=iM;const Bt=Jg;var dW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z"}}]},name:"bulb",theme:"outlined"};const fW=dW;var aM=function(t,n){return c.createElement(Bt,H(H({},t),{},{ref:n,icon:fW}))};aM.displayName="BulbOutlined";const FO=c.forwardRef(aM);var pW={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 mW=pW;var lM=function(t,n){return c.createElement(Bt,H(H({},t),{},{ref:n,icon:mW}))};lM.displayName="CaretDownFilled";const hW=c.forwardRef(lM);var gW={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 vW=gW;var sM=function(t,n){return c.createElement(Bt,H(H({},t),{},{ref:n,icon:vW}))};sM.displayName="CaretDownOutlined";const yW=c.forwardRef(sM);var bW={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"};const SW=bW;var uM=function(t,n){return c.createElement(Bt,H(H({},t),{},{ref:n,icon:SW}))};uM.displayName="CaretRightOutlined";const CW=c.forwardRef(uM);var xW={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 EW=xW;var cM=function(t,n){return c.createElement(Bt,H(H({},t),{},{ref:n,icon:EW}))};cM.displayName="CaretUpOutlined";const wW=c.forwardRef(cM);var IW={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 $W=IW;var dM=function(t,n){return c.createElement(Bt,H(H({},t),{},{ref:n,icon:$W}))};dM.displayName="CheckCircleFilled";const fx=c.forwardRef(dM);var OW={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 _W=OW;var fM=function(t,n){return c.createElement(Bt,H(H({},t),{},{ref:n,icon:_W}))};fM.displayName="CheckOutlined";const pM=c.forwardRef(fM);var RW={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 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"};const TW=RW;var mM=function(t,n){return c.createElement(Bt,H(H({},t),{},{ref:n,icon:TW}))};mM.displayName="CloseCircleFilled";const Ic=c.forwardRef(mM);var PW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"};const NW=PW;var hM=function(t,n){return c.createElement(Bt,H(H({},t),{},{ref:n,icon:NW}))};hM.displayName="CloseOutlined";const Lf=c.forwardRef(hM);var MW={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 AW=MW;var gM=function(t,n){return c.createElement(Bt,H(H({},t),{},{ref:n,icon:AW}))};gM.displayName="DoubleLeftOutlined";const BO=c.forwardRef(gM);var LW={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 DW=LW;var vM=function(t,n){return c.createElement(Bt,H(H({},t),{},{ref:n,icon:DW}))};vM.displayName="DoubleRightOutlined";const zO=c.forwardRef(vM);var kW={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 FW=kW;var yM=function(t,n){return c.createElement(Bt,H(H({},t),{},{ref:n,icon:FW}))};yM.displayName="DownOutlined";const px=c.forwardRef(yM);var BW={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 zW=BW;var bM=function(t,n){return c.createElement(Bt,H(H({},t),{},{ref:n,icon:zW}))};bM.displayName="EllipsisOutlined";const SM=c.forwardRef(bM);var HW={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 jW=HW;var CM=function(t,n){return c.createElement(Bt,H(H({},t),{},{ref:n,icon:jW}))};CM.displayName="ExclamationCircleFilled";const xM=c.forwardRef(CM);var VW={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 UW=VW;var EM=function(t,n){return c.createElement(Bt,H(H({},t),{},{ref:n,icon:UW}))};EM.displayName="EyeInvisibleOutlined";const WW=c.forwardRef(EM);var KW={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 GW=KW;var wM=function(t,n){return c.createElement(Bt,H(H({},t),{},{ref:n,icon:GW}))};wM.displayName="EyeOutlined";const IM=c.forwardRef(wM);var XW={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 42h216v494zM544 472c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v108H372c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h108v108c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V644h108c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V472z"}}]},name:"file-add",theme:"outlined"};const YW=XW;var $M=function(t,n){return c.createElement(Bt,H(H({},t),{},{ref:n,icon:YW}))};$M.displayName="FileAddOutlined";const qW=c.forwardRef($M);var QW={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 ZW=QW;var OM=function(t,n){return c.createElement(Bt,H(H({},t),{},{ref:n,icon:ZW}))};OM.displayName="FileOutlined";const _M=c.forwardRef(OM);var JW={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 eK=JW;var RM=function(t,n){return c.createElement(Bt,H(H({},t),{},{ref:n,icon:eK}))};RM.displayName="FilterFilled";const tK=c.forwardRef(RM);var nK={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 rK=nK;var TM=function(t,n){return c.createElement(Bt,H(H({},t),{},{ref:n,icon:rK}))};TM.displayName="FolderOpenOutlined";const PM=c.forwardRef(TM);var oK={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 iK=oK;var NM=function(t,n){return c.createElement(Bt,H(H({},t),{},{ref:n,icon:iK}))};NM.displayName="FolderOutlined";const aK=c.forwardRef(NM);var lK={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M825.8 498L538.4 249.9c-10.7-9.2-26.4-.9-26.4 14v496.3c0 14.9 15.7 23.2 26.4 14L825.8 526c8.3-7.2 8.3-20.8 0-28zm-320 0L218.4 249.9c-10.7-9.2-26.4-.9-26.4 14v496.3c0 14.9 15.7 23.2 26.4 14L505.8 526c4.1-3.6 6.2-8.8 6.2-14 0-5.2-2.1-10.4-6.2-14z"}}]},name:"forward",theme:"outlined"};const sK=lK;var MM=function(t,n){return c.createElement(Bt,H(H({},t),{},{ref:n,icon:sK}))};MM.displayName="ForwardOutlined";const uK=c.forwardRef(MM);var cK={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 dK=cK;var AM=function(t,n){return c.createElement(Bt,H(H({},t),{},{ref:n,icon:dK}))};AM.displayName="HolderOutlined";const fK=c.forwardRef(AM);var pK={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 mK=pK;var LM=function(t,n){return c.createElement(Bt,H(H({},t),{},{ref:n,icon:mK}))};LM.displayName="InfoCircleFilled";const DM=c.forwardRef(LM);var hK={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 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};const gK=hK;var kM=function(t,n){return c.createElement(Bt,H(H({},t),{},{ref:n,icon:gK}))};kM.displayName="InfoCircleOutlined";const FM=c.forwardRef(kM);var vK={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 yK=vK;var BM=function(t,n){return c.createElement(Bt,H(H({},t),{},{ref:n,icon:yK}))};BM.displayName="LeftOutlined";const HO=c.forwardRef(BM);var bK={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const SK=bK;var zM=function(t,n){return c.createElement(Bt,H(H({},t),{},{ref:n,icon:SK}))};zM.displayName="LoadingOutlined";const df=c.forwardRef(zM);var CK={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 xK=CK;var HM=function(t,n){return c.createElement(Bt,H(H({},t),{},{ref:n,icon:xK}))};HM.displayName="MinusSquareOutlined";const EK=c.forwardRef(HM);var wK={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 IK=wK;var jM=function(t,n){return c.createElement(Bt,H(H({},t),{},{ref:n,icon:IK}))};jM.displayName="PlusSquareOutlined";const $K=c.forwardRef(jM);var OK={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 _K=OK;var VM=function(t,n){return c.createElement(Bt,H(H({},t),{},{ref:n,icon:_K}))};VM.displayName="ReloadOutlined";const RK=c.forwardRef(VM);var TK={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 PK=TK;var UM=function(t,n){return c.createElement(Bt,H(H({},t),{},{ref:n,icon:PK}))};UM.displayName="RightOutlined";const DS=c.forwardRef(UM);var NK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"};const MK=NK;var WM=function(t,n){return c.createElement(Bt,H(H({},t),{},{ref:n,icon:MK}))};WM.displayName="SaveOutlined";const AK=c.forwardRef(WM);var LK={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 DK=LK;var KM=function(t,n){return c.createElement(Bt,H(H({},t),{},{ref:n,icon:DK}))};KM.displayName="SearchOutlined";const mx=c.forwardRef(KM);var kK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM664.8 561.6l36.1 210.3L512 672.7 323.1 772l36.1-210.3-152.8-149L417.6 382 512 190.7 606.4 382l211.2 30.7-152.8 148.9z"}}]},name:"star",theme:"outlined"};const FK=kK;var GM=function(t,n){return c.createElement(Bt,H(H({},t),{},{ref:n,icon:FK}))};GM.displayName="StarOutlined";const BK=c.forwardRef(GM);var zK={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 HK=zK;var XM=function(t,n){return c.createElement(Bt,H(H({},t),{},{ref:n,icon:HK}))};XM.displayName="StopOutlined";const jK=c.forwardRef(XM);var VK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M140 188h584v164h76V144c0-17.7-14.3-32-32-32H96c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h544v-76H140V188z"}},{tag:"path",attrs:{d:"M414.3 256h-60.6c-3.4 0-6.4 2.2-7.6 5.4L219 629.4c-.3.8-.4 1.7-.4 2.6 0 4.4 3.6 8 8 8h55.1c3.4 0 6.4-2.2 7.6-5.4L322 540h196.2L422 261.4a8.42 8.42 0 00-7.7-5.4zm12.4 228h-85.5L384 360.2 426.7 484zM936 528H800v-93c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v93H592c-13.3 0-24 10.7-24 24v176c0 13.3 10.7 24 24 24h136v152c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V752h136c13.3 0 24-10.7 24-24V552c0-13.3-10.7-24-24-24zM728 680h-88v-80h88v80zm160 0h-88v-80h88v80z"}}]},name:"translation",theme:"outlined"};const UK=VK;var YM=function(t,n){return c.createElement(Bt,H(H({},t),{},{ref:n,icon:UK}))};YM.displayName="TranslationOutlined";const WK=c.forwardRef(YM);var KK={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 GK=KK;var qM=function(t,n){return c.createElement(Bt,H(H({},t),{},{ref:n,icon:GK}))};qM.displayName="UpOutlined";const XK=c.forwardRef(qM);function Jn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jO(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 wt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qK(e,t){if(t&&(It(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wt(e)}function Di(e){var t=YK();return function(){var r=Rh(e),o;if(t){var i=Rh(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return qK(this,o)}}function ai(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return ve.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(ai(r)):uf.isFragment(r)&&r.props?n=n.concat(ai(r.props.children,t)):n.push(r))}),n}function Bs(e,t,n){var r=c.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}function ff(e,t){typeof e=="function"?e(t):It(e)==="object"&&e&&"current"in e&&(e.current=t)}function Bo(){for(var e=arguments.length,t=new Array(e),n=0;n0},e.prototype.connect_=function(){!FS||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),nG?(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(){!FS||!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=tG.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}(),ZM=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof mc(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new dG(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 mc(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 fG(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}(),eA=typeof WeakMap<"u"?new WeakMap:new QM,tA=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=rG.getInstance(),r=new pG(t,n,this);eA.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){tA.prototype[e]=function(){var t;return(t=eA.get(this))[e].apply(t,arguments)}});var nA=function(){return typeof Ph.ResizeObserver<"u"?Ph.ResizeObserver:tA}(),gl=new Map;function mG(e){e.forEach(function(t){var n,r=t.target;(n=gl.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var rA=new nA(mG);function hG(e,t){gl.has(e)||(gl.set(e,new Set),rA.observe(e)),gl.get(e).add(t)}function gG(e,t){gl.has(e)&&(gl.get(e).delete(t),gl.get(e).size||(rA.unobserve(e),gl.delete(e)))}var vG=function(e){Li(n,e);var t=Di(n);function n(){return Jn(this,n),t.apply(this,arguments)}return er(n,[{key:"render",value:function(){return this.props.children}}]),n}(c.Component),BS=c.createContext(null);function yG(e){var t=e.children,n=e.onBatchResize,r=c.useRef(0),o=c.useRef([]),i=c.useContext(BS),a=c.useCallback(function(l,s,d){r.current+=1;var f=r.current;o.current.push({size:l,element:s,data:d}),Promise.resolve().then(function(){f===r.current&&(n==null||n(o.current),o.current=[])}),i==null||i(l,s,d)},[n,i]);return c.createElement(BS.Provider,{value:a},t)}function bG(e,t){var n=e.children,r=e.disabled,o=c.useRef(null),i=c.useRef(null),a=c.useContext(BS),l=typeof n=="function",s=l?n(o):n,d=c.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),f=!l&&c.isValidElement(s)&&Bl(s),m=f?s.ref:null,h=c.useMemo(function(){return Bo(m,o)},[m,o]),g=function(){return pf(o.current)||pf(i.current)};c.useImperativeHandle(t,function(){return g()});var v=c.useRef(e);v.current=e;var C=c.useCallback(function(S){var y=v.current,x=y.onResize,E=y.data,w=S.getBoundingClientRect(),I=w.width,O=w.height,_=S.offsetWidth,R=S.offsetHeight,M=Math.floor(I),P=Math.floor(O);if(d.current.width!==M||d.current.height!==P||d.current.offsetWidth!==_||d.current.offsetHeight!==R){var D={width:M,height:P,offsetWidth:_,offsetHeight:R};d.current=D;var N=_===Math.round(I)?I:_,T=R===Math.round(O)?O:R,L=H(H({},D),{},{offsetWidth:N,offsetHeight:T});a==null||a(L,S,E),x&&Promise.resolve().then(function(){x(L,S)})}},[]);return c.useEffect(function(){var S=g();return S&&!r&&hG(S,C),function(){return gG(S,C)}},[o.current,r]),c.createElement(vG,{ref:i},f?c.cloneElement(s,{ref:h}):s)}var SG=c.forwardRef(bG),CG="rc-observer-key";function xG(e,t){var n=e.children,r=typeof n=="function"?[n]:ai(n);return r.map(function(o,i){var a=(o==null?void 0:o.key)||"".concat(CG,"-").concat(i);return c.createElement(SG,je({},e,{key:a,ref:i===0?t:void 0}),o)})}var ki=c.forwardRef(xG);ki.Collection=yG;function kr(e,t){var n=H({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}function EG(e){if(Array.isArray(e))return _S(e)}function oA(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wG(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pe(e){return EG(e)||oA(e)||cx(e)||wG()}function hx(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 Da(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=r.has(i);if(wn(!s,"Warning: There may be circular references"),s)return!1;if(i===a)return!0;if(n&&l>1)return!1;r.add(i);var d=l+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var f=0;f2&&arguments[2]!==void 0?arguments[2]:{},r=n.salt,o=r===void 0?"":r,i=n.override,a=i===void 0?PG:i,l=n.formatToken,s=c.useMemo(function(){return Object.assign.apply(Object,[{}].concat(Pe(t)))},[t]),d=c.useMemo(function(){return Ah(s)},[s]),f=c.useMemo(function(){return Ah(a)},[a]),m=aA("token",[o,e.id,d,f],function(){var h=e.getDerivativeToken(s),g=H(H({},h),a);l&&(g=l(g));var v=_G(g,o);g._tokenKey=v,MG(v);var C="".concat(NG,"-").concat(hx(v));return g._hashId=C,[g,C]},function(h){LG(h[0]._tokenKey)});return m}var kG={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},sA="comm",uA="rule",cA="decl",FG="@import",BG="@keyframes",zG=Math.abs,gx=String.fromCharCode;function dA(e){return e.trim()}function HS(e,t,n){return e.replace(t,n)}function HG(e,t){return e.indexOf(t)}function mf(e,t){return e.charCodeAt(t)|0}function hf(e,t,n){return e.slice(t,n)}function sl(e){return e.length}function fA(e){return e.length}function dm(e,t){return t.push(e),e}var nv=1,hc=1,pA=0,li=0,Qn=0,$c="";function vx(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:nv,column:hc,length:a,return:""}}function jG(){return Qn}function VG(){return Qn=li>0?mf($c,--li):0,hc--,Qn===10&&(hc=1,nv--),Qn}function Ti(){return Qn=li2||jS(Qn)>3?"":" "}function GG(e,t){for(;--t&&Ti()&&!(Qn<48||Qn>102||Qn>57&&Qn<65||Qn>70&&Qn<97););return rv(e,Vm()+(t<6&&Ss()==32&&Ti()==32))}function VS(e){for(;Ti();)switch(Qn){case e:return li;case 34:case 39:e!==34&&e!==39&&VS(Qn);break;case 40:e===41&&VS(e);break;case 92:Ti();break}return li}function XG(e,t){for(;Ti()&&e+Qn!==47+10;)if(e+Qn===42+42&&Ss()===47)break;return"/*"+rv(t,li-1)+"*"+gx(e===47?e:Ti())}function YG(e){for(;!jS(Ss());)Ti();return rv(e,li)}function qG(e){return WG(Um("",null,null,null,[""],e=UG(e),0,[0],e))}function Um(e,t,n,r,o,i,a,l,s){for(var d=0,f=0,m=a,h=0,g=0,v=0,C=1,S=1,y=1,x=0,E="",w=o,I=i,O=r,_=E;S;)switch(v=x,x=Ti()){case 40:if(v!=108&&mf(_,m-1)==58){HG(_+=HS(Iy(x),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:_+=Iy(x);break;case 9:case 10:case 13:case 32:_+=KG(v);break;case 92:_+=GG(Vm()-1,7);continue;case 47:switch(Ss()){case 42:case 47:dm(QG(XG(Ti(),Vm()),t,n),s);break;default:_+="/"}break;case 123*C:l[d++]=sl(_)*y;case 125*C:case 59:case 0:switch(x){case 0:case 125:S=0;case 59+f:g>0&&sl(_)-m&&dm(g>32?WO(_+";",r,n,m-1):WO(HS(_," ","")+";",r,n,m-2),s);break;case 59:_+=";";default:if(dm(O=UO(_,t,n,d,f,o,l,E,w=[],I=[],m),i),x===123)if(f===0)Um(_,t,O,O,w,i,m,l,I);else switch(h===99&&mf(_,3)===110?100:h){case 100:case 109:case 115:Um(e,O,O,r&&dm(UO(e,O,O,0,0,o,l,E,o,w=[],m),I),o,I,m,l,r?w:I);break;default:Um(_,O,O,O,[""],I,0,l,I)}}d=f=g=0,C=y=1,E=_="",m=a;break;case 58:m=1+sl(_),g=v;default:if(C<1){if(x==123)--C;else if(x==125&&C++==0&&VG()==125)continue}switch(_+=gx(x),x*C){case 38:y=f>0?1:(_+="\f",-1);break;case 44:l[d++]=(sl(_)-1)*y,y=1;break;case 64:Ss()===45&&(_+=Iy(Ti())),h=Ss(),f=m=sl(E=_+=YG(Vm())),x++;break;case 45:v===45&&sl(_)==2&&(C=0)}}return i}function UO(e,t,n,r,o,i,a,l,s,d,f){for(var m=o-1,h=o===0?i:[""],g=fA(h),v=0,C=0,S=0;v0?h[y]+" "+x:HS(x,/&\f/g,h[y])))&&(s[S++]=E);return vx(e,t,n,o===0?uA:l,s,d,f)}function QG(e,t,n){return vx(e,t,n,sA,gx(jG()),hf(e,2,-2),0)}function WO(e,t,n,r){return vx(e,t,n,cA,hf(e,0,r),hf(e,r+1,-1),r)}function US(e,t){for(var n="",r=fA(e),o=0;o1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,l=n.hashId,s=n.layer;n.path;var d=n.hashPriority,f=n.transformers,m=f===void 0?[]:f;n.linters;var h="",g={};function v(E){var w=E.getName(l);if(!g[w]){var I=e(E.style,n,{root:!1,parentSelectors:a}),O=ue(I,1),_=O[0];g[w]="@keyframes ".concat(E.getName(l)).concat(_)}}function C(E){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return E.forEach(function(I){Array.isArray(I)?C(I,w):I&&w.push(I)}),w}var S=C(Array.isArray(t)?t:[t]);if(S.forEach(function(E){var w=typeof E=="string"&&!o?{}:E;if(typeof w=="string")h+="".concat(w,` -`);else if(w._keyframe)v(w);else{var I=m.reduce(function(O,_){var R;return(_==null||(R=_.visit)===null||R===void 0?void 0:R.call(_,O))||O},w);Object.keys(I).forEach(function(O){var _=I[O];if(It(_)==="object"&&_&&(O!=="animationName"||!_._keyframe)&&!eX(_)){var R=!1,M=O.trim(),P=!1;(o||i)&&l?M.startsWith("@")?R=!0:M=tX(O,l,d):o&&!l&&(M==="&"||M==="")&&(M="",P=!0);var D=e(_,n,{root:P,injectHash:R,parentSelectors:[].concat(Pe(a),[M])}),N=ue(D,2),T=N[0],L=N[1];g=H(H({},g),L),h+="".concat(M).concat(T)}else{var z,F=(z=_==null?void 0:_.value)!==null&&z!==void 0?z:_,V=O.replace(/[A-Z]/g,function(U){return"-".concat(U.toLowerCase())}),j=F;!kG[O]&&typeof j=="number"&&j!==0&&(j="".concat(j,"px")),O==="animationName"&&_!==null&&_!==void 0&&_._keyframe&&(v(_),j=_.getName(l)),h+="".concat(V,":").concat(j,";")}})}}),!o)h="{".concat(h,"}");else if(s&&TG()){var y=s.split(","),x=y[y.length-1].trim();h="@layer ".concat(x," {").concat(h,"}"),y.length>1&&(h="@layer ".concat(s,"{%%%:%}").concat(h))}return[h,g]};function rX(e,t){return hx("".concat(e.join("%")).concat(t))}function oX(){return null}function WS(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,l=c.useContext(iA),s=l.autoClear;l.mock;var d=l.defaultCache,f=l.hashPriority,m=l.container,h=l.ssrInline,g=l.transformers,v=l.linters,C=n._tokenKey,S=[C].concat(Pe(r)),y=KO,x=aA("style",S,function(){var _=t(),R=nX(_,{hashId:o,hashPriority:f,layer:i,path:r.join("-"),transformers:g,linters:v}),M=ue(R,2),P=M[0],D=M[1],N=GO(P),T=rX(S,N);if(y){var L={mark:Yu,prepend:"queue",attachTo:m},z=typeof a=="function"?a():a;z&&(L.csp={nonce:z});var F=pc(N,T,L);F[Md]=Mh,F.setAttribute(zS,C),Object.keys(D).forEach(function(V){pc(GO(D[V]),"_effect-".concat(V),L)})}return[N,C,T]},function(_,R){var M=ue(_,3),P=M[2];(R||s)&&KO&&_h(P,{mark:Yu})}),E=ue(x,3),w=E[0],I=E[1],O=E[2];return function(_){var R;if(!h||y||!d)R=c.createElement(oX,null);else{var M;R=c.createElement("style",je({},(M={},Q(M,zS,I),Q(M,Yu,O),M),{dangerouslySetInnerHTML:{__html:w}}))}return c.createElement(c.Fragment,null,R,_)}}var Dt=function(){function e(t,n){Jn(this,e),Q(this,"name",void 0),Q(this,"style",void 0),Q(this,"_keyframe",!0),this.name=t,this.style=n}return er(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 iX(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(l){if(!a)a=void 0;else{var s,d;a=(s=a)===null||s===void 0||(d=s.map)===null||d===void 0?void 0:d.get(l)}}),(r=a)!==null&&r!==void 0&&r.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(d,f){var m=ue(d,2),h=m[1];return o.internalGet(f)[1]0,void 0),XO+=1}return er(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),$y=new yx;function mA(e){var t=Array.isArray(e)?e:[e];return $y.has(t)||$y.set(t,new aX(t)),$y.get(t)}function au(e){return e.notSplit=!0,e}au(["borderTop","borderBottom"]),au(["borderTop"]),au(["borderBottom"]),au(["borderLeft","borderRight"]),au(["borderLeft"]),au(["borderRight"]);var fs="RC_FORM_INTERNAL_HOOKS",fn=function(){wn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},gc=c.createContext({getFieldValue:fn,getFieldsValue:fn,getFieldError:fn,getFieldWarning:fn,getFieldsError:fn,isFieldsTouched:fn,isFieldTouched:fn,isFieldValidating:fn,isFieldsValidating:fn,resetFields:fn,setFields:fn,setFieldValue:fn,setFieldsValue:fn,validateFields:fn,submit:fn,getInternalHooks:function(){return fn(),{dispatch:fn,initEntityValue:fn,registerField:fn,useSubscribe:fn,setInitialValues:fn,destroyForm:fn,setCallbacks:fn,registerWatch:fn,getFields:fn,setValidateMessages:fn,setPreserve:fn,getInitialValue:fn}}});function KS(e){return e==null?[]:Array.isArray(e)?e:[e]}function lX(e){return e&&!!e._init}function Yr(){Yr=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(N,T,L){N[T]=L.value},o=typeof Symbol=="function"?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(N,T,L){return Object.defineProperty(N,T,{value:L,enumerable:!0,configurable:!0,writable:!0}),N[T]}try{s({},"")}catch{s=function(L,z,F){return L[z]=F}}function d(N,T,L,z){var F=T&&T.prototype instanceof h?T:h,V=Object.create(F.prototype),j=new M(z||[]);return r(V,"_invoke",{value:I(N,L,j)}),V}function f(N,T,L){try{return{type:"normal",arg:N.call(T,L)}}catch(z){return{type:"throw",arg:z}}}e.wrap=d;var m={};function h(){}function g(){}function v(){}var C={};s(C,i,function(){return this});var S=Object.getPrototypeOf,y=S&&S(S(P([])));y&&y!==t&&n.call(y,i)&&(C=y);var x=v.prototype=h.prototype=Object.create(C);function E(N){["next","throw","return"].forEach(function(T){s(N,T,function(L){return this._invoke(T,L)})})}function w(N,T){function L(F,V,j,U){var G=f(N[F],N,V);if(G.type!=="throw"){var W=G.arg,q=W.value;return q&&It(q)=="object"&&n.call(q,"__await")?T.resolve(q.__await).then(function(J){L("next",J,j,U)},function(J){L("throw",J,j,U)}):T.resolve(q).then(function(J){W.value=J,j(W)},function(J){return L("throw",J,j,U)})}U(G.arg)}var z;r(this,"_invoke",{value:function(V,j){function U(){return new T(function(G,W){L(V,j,G,W)})}return z=z?z.then(U,U):U()}})}function I(N,T,L){var z="suspendedStart";return function(F,V){if(z==="executing")throw new Error("Generator is already running");if(z==="completed"){if(F==="throw")throw V;return D()}for(L.method=F,L.arg=V;;){var j=L.delegate;if(j){var U=O(j,L);if(U){if(U===m)continue;return U}}if(L.method==="next")L.sent=L._sent=L.arg;else if(L.method==="throw"){if(z==="suspendedStart")throw z="completed",L.arg;L.dispatchException(L.arg)}else L.method==="return"&&L.abrupt("return",L.arg);z="executing";var G=f(N,T,L);if(G.type==="normal"){if(z=L.done?"completed":"suspendedYield",G.arg===m)continue;return{value:G.arg,done:L.done}}G.type==="throw"&&(z="completed",L.method="throw",L.arg=G.arg)}}}function O(N,T){var L=T.method,z=N.iterator[L];if(z===void 0)return T.delegate=null,L==="throw"&&N.iterator.return&&(T.method="return",T.arg=void 0,O(N,T),T.method==="throw")||L!=="return"&&(T.method="throw",T.arg=new TypeError("The iterator does not provide a '"+L+"' method")),m;var F=f(z,N.iterator,T.arg);if(F.type==="throw")return T.method="throw",T.arg=F.arg,T.delegate=null,m;var V=F.arg;return V?V.done?(T[N.resultName]=V.value,T.next=N.nextLoc,T.method!=="return"&&(T.method="next",T.arg=void 0),T.delegate=null,m):V:(T.method="throw",T.arg=new TypeError("iterator result is not an object"),T.delegate=null,m)}function _(N){var T={tryLoc:N[0]};1 in N&&(T.catchLoc=N[1]),2 in N&&(T.finallyLoc=N[2],T.afterLoc=N[3]),this.tryEntries.push(T)}function R(N){var T=N.completion||{};T.type="normal",delete T.arg,N.completion=T}function M(N){this.tryEntries=[{tryLoc:"root"}],N.forEach(_,this),this.reset(!0)}function P(N){if(N){var T=N[i];if(T)return T.call(N);if(typeof N.next=="function")return N;if(!isNaN(N.length)){var L=-1,z=function F(){for(;++L=0;--F){var V=this.tryEntries[F],j=V.completion;if(V.tryLoc==="root")return z("end");if(V.tryLoc<=this.prev){var U=n.call(V,"catchLoc"),G=n.call(V,"finallyLoc");if(U&&G){if(this.prev=0;--z){var F=this.tryEntries[z];if(F.tryLoc<=this.prev&&n.call(F,"finallyLoc")&&this.prev=0;--L){var z=this.tryEntries[L];if(z.finallyLoc===T)return this.complete(z.completion,z.afterLoc),R(z),m}},catch:function(T){for(var L=this.tryEntries.length-1;L>=0;--L){var z=this.tryEntries[L];if(z.tryLoc===T){var F=z.completion;if(F.type==="throw"){var V=F.arg;R(z)}return V}}throw new Error("illegal catch attempt")},delegateYield:function(T,L,z){return this.delegate={iterator:P(T),resultName:L,nextLoc:z},this.method==="next"&&(this.arg=void 0),m}},e}function YO(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(d){n(d);return}l.done?t(s):Promise.resolve(s).then(r,o)}function zs(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(s){YO(i,r,o,a,l,"next",s)}function l(s){YO(i,r,o,a,l,"throw",s)}a(void 0)})}}function ps(){return ps=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 Wm(e,t,n){return uX()?Wm=Reflect.construct.bind():Wm=function(o,i,a){var l=[null];l.push.apply(l,i);var s=Function.bind.apply(o,l),d=new s;return a&&gf(d,a.prototype),d},Wm.apply(null,arguments)}function cX(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function XS(e){var t=typeof Map=="function"?new Map:void 0;return XS=function(r){if(r===null||!cX(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 Wm(r,arguments,GS(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),gf(o,r)},XS(e)}var dX=/%[sdj%]/g,fX=function(){};typeof process<"u"&&process.env;function YS(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 No(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=i)return l;switch(l){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return l}});return a}return e}function pX(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function ar(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||pX(t)&&typeof e=="string"&&!e)}function mX(e,t,n){var r=[],o=0,i=e.length;function a(l){r.push.apply(r,l||[]),o++,o===i&&n(r)}e.forEach(function(l){t(l,a)})}function qO(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var l=r;r=r+1,l()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},vd={integer:function(t){return vd.number(t)&&parseInt(t,10)===t},float:function(t){return vd.number(t)&&!vd.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"&&!vd.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(e_.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(SX())},hex:function(t){return typeof t=="string"&&!!t.match(e_.hex)}},CX=function(t,n,r,o,i){if(t.required&&n===void 0){hA(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;a.indexOf(l)>-1?vd[l](n)||o.push(No(i.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&o.push(No(i.messages.types[l],t.fullField,t.type))},xX=function(t,n,r,o,i){var a=typeof t.len=="number",l=typeof t.min=="number",s=typeof t.max=="number",d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f=n,m=null,h=typeof n=="number",g=typeof n=="string",v=Array.isArray(n);if(h?m="number":g?m="string":v&&(m="array"),!m)return!1;v&&(f=n.length),g&&(f=n.replace(d,"_").length),a?f!==t.len&&o.push(No(i.messages[m].len,t.fullField,t.len)):l&&!s&&ft.max?o.push(No(i.messages[m].max,t.fullField,t.max)):l&&s&&(ft.max)&&o.push(No(i.messages[m].range,t.fullField,t.min,t.max))},lu="enum",EX=function(t,n,r,o,i){t[lu]=Array.isArray(t[lu])?t[lu]:[],t[lu].indexOf(n)===-1&&o.push(No(i.messages[lu],t.fullField,t[lu].join(", ")))},wX=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(No(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(No(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},jt={required:hA,whitespace:bX,type:CX,range:xX,enum:EX,pattern:wX},IX=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(ar(n,"string")&&!t.required)return r();jt.required(t,n,o,a,i,"string"),ar(n,"string")||(jt.type(t,n,o,a,i),jt.range(t,n,o,a,i),jt.pattern(t,n,o,a,i),t.whitespace===!0&&jt.whitespace(t,n,o,a,i))}r(a)},$X=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(ar(n)&&!t.required)return r();jt.required(t,n,o,a,i),n!==void 0&&jt.type(t,n,o,a,i)}r(a)},OX=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),ar(n)&&!t.required)return r();jt.required(t,n,o,a,i),n!==void 0&&(jt.type(t,n,o,a,i),jt.range(t,n,o,a,i))}r(a)},_X=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(ar(n)&&!t.required)return r();jt.required(t,n,o,a,i),n!==void 0&&jt.type(t,n,o,a,i)}r(a)},RX=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(ar(n)&&!t.required)return r();jt.required(t,n,o,a,i),ar(n)||jt.type(t,n,o,a,i)}r(a)},TX=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(ar(n)&&!t.required)return r();jt.required(t,n,o,a,i),n!==void 0&&(jt.type(t,n,o,a,i),jt.range(t,n,o,a,i))}r(a)},PX=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(ar(n)&&!t.required)return r();jt.required(t,n,o,a,i),n!==void 0&&(jt.type(t,n,o,a,i),jt.range(t,n,o,a,i))}r(a)},NX=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();jt.required(t,n,o,a,i,"array"),n!=null&&(jt.type(t,n,o,a,i),jt.range(t,n,o,a,i))}r(a)},MX=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(ar(n)&&!t.required)return r();jt.required(t,n,o,a,i),n!==void 0&&jt.type(t,n,o,a,i)}r(a)},AX="enum",LX=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(ar(n)&&!t.required)return r();jt.required(t,n,o,a,i),n!==void 0&&jt[AX](t,n,o,a,i)}r(a)},DX=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(ar(n,"string")&&!t.required)return r();jt.required(t,n,o,a,i),ar(n,"string")||jt.pattern(t,n,o,a,i)}r(a)},kX=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(ar(n,"date")&&!t.required)return r();if(jt.required(t,n,o,a,i),!ar(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),jt.type(t,s,o,a,i),s&&jt.range(t,s.getTime(),o,a,i)}}r(a)},FX=function(t,n,r,o,i){var a=[],l=Array.isArray(n)?"array":typeof n;jt.required(t,n,o,a,i,l),r(a)},Oy=function(t,n,r,o,i){var a=t.type,l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ar(n,a)&&!t.required)return r();jt.required(t,n,o,l,i,a),ar(n,a)||jt.type(t,n,o,l,i)}r(l)},BX=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(ar(n)&&!t.required)return r();jt.required(t,n,o,a,i)}r(a)},Ld={string:IX,method:$X,number:OX,boolean:_X,regexp:RX,integer:TX,float:PX,array:NX,object:MX,enum:LX,pattern:DX,date:kX,url:Oy,hex:Oy,email:Oy,required:FX,any:BX};function qS(){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 QS=qS(),Df=function(){function e(n){this.rules=null,this._messages=QS,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=JO(qS(),r)),this._messages},t.validate=function(r,o,i){var a=this;o===void 0&&(o={}),i===void 0&&(i=function(){});var l=r,s=o,d=i;if(typeof s=="function"&&(d=s,s={}),!this.rules||Object.keys(this.rules).length===0)return d&&d(null,l),Promise.resolve(l);function f(C){var S=[],y={};function x(w){if(Array.isArray(w)){var I;S=(I=S).concat.apply(I,w)}else S.push(w)}for(var E=0;E3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Oi(e,t.slice(0,-1))?e:yA(e,t,n,r)}function ov(e){return Array.isArray(e)?HX(e):It(e)==="object"&&e!==null?zX(e):e}function zX(e){if(Object.getPrototypeOf(e)===Object.prototype){var t={};for(var n in e)t[n]=ov(e[n]);return t}return e}function HX(e){return e.map(function(t){return ov(t)})}function Vn(e){return KS(e)}function t_(e,t){var n={};return t.forEach(function(r){var o=Oi(e,r);n=ol(n,r,o)}),n}function Dd(e,t){return e&&e.some(function(n){return SA(n,t)})}function n_(e){return It(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function bA(e,t){var n=Array.isArray(e)?Pe(e):H({},e);return t&&Object.keys(t).forEach(function(r){var o=n[r],i=t[r],a=n_(o)&&n_(i);n[r]=a?bA(o,i||{}):ov(i)}),n}function kd(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(Pe(e.slice(0,n)),[o],Pe(e.slice(n,t)),Pe(e.slice(t+1,r))):i<0?[].concat(Pe(e.slice(0,t)),Pe(e.slice(t+1,n+1)),[o],Pe(e.slice(n+1,r))):e}var o_=Df;function UX(e,t){return e.replace(/\$\{\w+\}/g,function(n){var r=n.slice(2,-1);return t[r]})}var i_="CODE_LOGIC_ERROR";function ZS(e,t,n,r,o){return JS.apply(this,arguments)}function JS(){return JS=zs(Yr().mark(function e(t,n,r,o,i){var a,l,s,d,f,m,h,g,v;return Yr().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return a=H({},r),delete a.ruleIndex,o_.warning=function(){},a.validator&&(l=a.validator,a.validator=function(){try{return l.apply(void 0,arguments)}catch(y){return console.error(y),Promise.reject(i_)}}),s=null,a&&a.type==="array"&&a.defaultField&&(s=a.defaultField,delete a.defaultField),d=new o_(Q({},t,[a])),f=kd({},gA,o.validateMessages),d.messages(f),m=[],S.prev=10,S.next=13,Promise.resolve(d.validate(Q({},t,n),H({},o)));case 13:S.next=18;break;case 15:S.prev=15,S.t0=S.catch(10),S.t0.errors&&(m=S.t0.errors.map(function(y,x){var E=y.message,w=E===i_?f.default:E;return c.isValidElement(w)?c.cloneElement(w,{key:"error_".concat(x)}):w}));case 18:if(!(!m.length&&s)){S.next=23;break}return S.next=21,Promise.all(n.map(function(y,x){return ZS("".concat(t,".").concat(x),y,s,o,i)}));case 21:return h=S.sent,S.abrupt("return",h.reduce(function(y,x){return[].concat(Pe(y),Pe(x))},[]));case 23:return g=H(H({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),v=m.map(function(y){return typeof y=="string"?UX(y,g):y}),S.abrupt("return",v);case 26:case"end":return S.stop()}},e,null,[[10,15]])})),JS.apply(this,arguments)}function WX(e,t,n,r,o,i){var a=e.join("."),l=n.map(function(f,m){var h=f.validator,g=H(H({},f),{},{ruleIndex:m});return h&&(g.validator=function(v,C,S){var y=!1,x=function(){for(var I=arguments.length,O=new Array(I),_=0;_0&&arguments[0]!==void 0?arguments[0]:Yo;if(o.validatePromise===m){var I;o.validatePromise=null;var O=[],_=[];(I=w.forEach)===null||I===void 0||I.call(w,function(R){var M=R.rule.warningOnly,P=R.errors,D=P===void 0?Yo:P;M?_.push.apply(_,Pe(D)):O.push.apply(O,Pe(D))}),o.errors=O,o.warnings=_,o.triggerMetaEvent(),o.reRender()}}),E});return o.validatePromise=m,o.dirty=!0,o.errors=Yo,o.warnings=Yo,o.triggerMetaEvent(),o.reRender(),m},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 s=o.props.fieldContext,d=s.getInternalHooks(fs),f=d.getInitialValue;return f(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 s={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return s},o.getOnlyChild=function(s){if(typeof s=="function"){var d=o.getMeta();return H(H({},o.getOnlyChild(s(o.getControlled(),d,o.props.fieldContext))),{},{isFunction:!0})}var f=ai(s);return f.length!==1||!c.isValidElement(f[0])?{child:f,isFunction:!1}:{child:f[0],isFunction:!1}},o.getValue=function(s){var d=o.props.fieldContext.getFieldsValue,f=o.getNamePath();return Oi(s||d(!0),f)},o.getControlled=function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=o.props,f=d.trigger,m=d.validateTrigger,h=d.getValueFromEvent,g=d.normalize,v=d.valuePropName,C=d.getValueProps,S=d.fieldContext,y=m!==void 0?m:S.validateTrigger,x=o.getNamePath(),E=S.getInternalHooks,w=S.getFieldsValue,I=E(fs),O=I.dispatch,_=o.getValue(),R=C||function(N){return Q({},v,N)},M=s[f],P=H(H({},s),R(_));P[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var N,T=arguments.length,L=new Array(T),z=0;z=0&&P<=D.length?(f.keys=[].concat(Pe(f.keys.slice(0,P)),[f.id],Pe(f.keys.slice(P))),E([].concat(Pe(D.slice(0,P)),[M],Pe(D.slice(P))))):(f.keys=[].concat(Pe(f.keys),[f.id]),E([].concat(Pe(D),[M]))),f.id+=1},remove:function(M){var P=I(),D=new Set(Array.isArray(M)?M:[M]);D.size<=0||(f.keys=f.keys.filter(function(N,T){return!D.has(T)}),E(P.filter(function(N,T){return!D.has(T)})))},move:function(M,P){if(M!==P){var D=I();M<0||M>=D.length||P<0||P>=D.length||(f.keys=r_(f.keys,M,P),E(r_(D,M,P)))}}},_=x||[];return Array.isArray(_)||(_=[]),o(_.map(function(R,M){var P=f.keys[M];return P===void 0&&(f.keys[M]=f.id,P=f.keys[M],f.id+=1),{name:M,key:P,isListField:!0}}),O,S)})))};function QX(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,i){e.forEach(function(a,l){a.catch(function(s){return t=!0,s}).then(function(s){n-=1,r[l]=s,!(n>0)&&(t&&i(r),o(r))})})}):Promise.resolve([])}var xA="__@field_split__";function _y(e){return e.map(function(t){return"".concat(It(t),":").concat(t)}).join(xA)}var su=function(){function e(){Jn(this,e),this.kvs=new Map}return er(e,[{key:"set",value:function(n,r){this.kvs.set(_y(n),r)}},{key:"get",value:function(n){return this.kvs.get(_y(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(_y(n))}},{key:"map",value:function(n){return Pe(this.kvs.entries()).map(function(r){var o=ue(r,2),i=o[0],a=o[1],l=i.split(xA);return n({key:l.map(function(s){var d=s.match(/^([^:]*):(.*)$/),f=ue(d,3),m=f[1],h=f[2];return m==="number"?Number(h):h}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,i=r.value;return n[o.join(".")]=i,null}),n}}]),e}(),ZX=["name"],JX=er(function e(t){var n=this;Jn(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===fs?(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}):(wn(!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=kd({},r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(l){var s=l.key;a=ol(a,s,Oi(r,s))}),n.prevWithoutPreserves=null,n.updateStore(a)}},this.destroyForm=function(){var r=new su;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||r.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=r},this.getInitialValue=function(r){var o=Oi(n.initialValues,r);return r.length?ov(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 su;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=Vn(i);return o.get(a)||{INVALIDATE_NAME_PATH:Vn(i)}})},this.getFieldsValue=function(r,o){if(n.warningUnhooked(),r===!0&&!o)return n.store;var i=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),a=[];return i.forEach(function(l){var s,d="INVALIDATE_NAME_PATH"in l?l.INVALIDATE_NAME_PATH:l.getNamePath();if(!(!r&&(!((s=l.isListField)===null||s===void 0)&&s.call(l))))if(!o)a.push(d);else{var f="getMeta"in l?l.getMeta():null;o(f)&&a.push(d)}}),t_(n.store,a.map(Vn))},this.getFieldValue=function(r){n.warningUnhooked();var o=Vn(r);return Oi(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:Vn(r[a]),errors:[],warnings:[]}})},this.getFieldError=function(r){n.warningUnhooked();var o=Vn(r),i=n.getFieldsError([o])[0];return i.errors},this.getFieldWarning=function(r){n.warningUnhooked();var o=Vn(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 su,i=n.getFieldEntities(!0);i.forEach(function(s){var d=s.props.initialValue,f=s.getNamePath();if(d!==void 0){var m=o.get(f)||new Set;m.add({entity:s,value:d}),o.set(f,m)}});var a=function(d){d.forEach(function(f){var m=f.props.initialValue;if(m!==void 0){var h=f.getNamePath(),g=n.getInitialValue(h);if(g!==void 0)wn(!1,"Form already set 'initialValues' with path '".concat(h.join("."),"'. Field can not overwrite it."));else{var v=o.get(h);if(v&&v.size>1)wn(!1,"Multiple Field with path '".concat(h.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(v){var C=n.getFieldValue(h);(!r.skipExist||C===void 0)&&n.updateStore(ol(n.store,h,Pe(v)[0].value))}}}})},l;r.entities?l=r.entities:r.namePathList?(l=[],r.namePathList.forEach(function(s){var d=o.get(s);if(d){var f;(f=l).push.apply(f,Pe(Pe(d).map(function(m){return m.entity})))}})):l=i,a(l)},this.resetFields=function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(kd({},n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var i=r.map(Vn);i.forEach(function(a){var l=n.getInitialValue(a);n.updateStore(ol(n.store,a,l))}),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 l=a.name,s=vt(a,ZX),d=Vn(l);i.push(d),"value"in s&&n.updateStore(ol(n.store,d,s.value)),n.notifyObservers(o,[d],{type:"setField",data:a})}),n.notifyWatch(i)},this.getFields=function(){var r=n.getFieldEntities(!0),o=r.map(function(i){var a=i.getNamePath(),l=i.getMeta(),s=H(H({},l),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(s,"originRCField",{value:!0}),s});return o},this.initEntityValue=function(r){var o=r.props.initialValue;if(o!==void 0){var i=r.getNamePath(),a=Oi(n.store,i);a===void 0&&n.updateStore(ol(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,l){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(m){return m!==r}),!n.isMergedPreserve(l)&&(!a||s.length>1)){var d=a?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==d&&n.fieldEntities.every(function(m){return!SA(m.getNamePath(),o)})){var f=n.store;n.updateStore(ol(f,o,d,!0)),n.notifyObservers(f,[o],{type:"remove"}),n.triggerDependenciesUpdate(f,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,l=r.triggerName;n.validateFields([a],{triggerName:l});break}}},this.notifyObservers=function(r,o,i){if(n.subscribable){var a=H(H({},i),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(l){var s=l.onStoreChange;s(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(Pe(i))}),i},this.updateValue=function(r,o){var i=Vn(r),a=n.store;n.updateStore(ol(n.store,i,o)),n.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]);var l=n.triggerDependenciesUpdate(a,i),s=n.callbacks.onValuesChange;if(s){var d=t_(n.store,[i]);s(d,n.getFieldsValue())}n.triggerOnFieldsChange([i].concat(Pe(l)))},this.setFieldsValue=function(r){n.warningUnhooked();var o=n.store;if(r){var i=kd(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 su;n.getFieldEntities().forEach(function(s){var d=s.props.dependencies;(d||[]).forEach(function(f){var m=Vn(f);a.update(m,function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return h.add(s),h})})});var l=function s(d){var f=a.get(d)||new Set;f.forEach(function(m){if(!o.has(m)){o.add(m);var h=m.getNamePath();m.isFieldDirty()&&h.length&&(i.push(h),s(h))}})};return l(r),i},this.triggerOnFieldsChange=function(r,o){var i=n.callbacks.onFieldsChange;if(i){var a=n.getFields();if(o){var l=new su;o.forEach(function(d){var f=d.name,m=d.errors;l.set(f,m)}),a.forEach(function(d){d.errors=l.get(d.name)||d.errors})}var s=a.filter(function(d){var f=d.name;return Dd(r,f)});i(s,a)}},this.validateFields=function(r,o){n.warningUnhooked();var i=!!r,a=i?r.map(Vn):[],l=[];n.getFieldEntities(!0).forEach(function(f){if(i||a.push(f.getNamePath()),o!=null&&o.recursive&&i){var m=f.getNamePath();m.every(function(v,C){return r[C]===v||r[C]===void 0})&&a.push(m)}if(!(!f.props.rules||!f.props.rules.length)){var h=f.getNamePath();if(!i||Dd(a,h)){var g=f.validateRules(H({validateMessages:H(H({},gA),n.validateMessages)},o));l.push(g.then(function(){return{name:h,errors:[],warnings:[]}}).catch(function(v){var C,S=[],y=[];return(C=v.forEach)===null||C===void 0||C.call(v,function(x){var E=x.rule.warningOnly,w=x.errors;E?y.push.apply(y,Pe(w)):S.push.apply(S,Pe(w))}),S.length?Promise.reject({name:h,errors:S,warnings:y}):{name:h,errors:S,warnings:y}}))}}});var s=QX(l);n.lastValidatePromise=s,s.catch(function(f){return f}).then(function(f){var m=f.map(function(h){var g=h.name;return g});n.notifyObservers(n.store,m,{type:"validateFinish"}),n.triggerOnFieldsChange(m,f)});var d=s.then(function(){return n.lastValidatePromise===s?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])}).catch(function(f){var m=f.filter(function(h){return h&&h.errors.length});return Promise.reject({values:n.getFieldsValue(a),errorFields:m,outOfDate:n.lastValidatePromise!==s})});return d.catch(function(f){return f}),n.triggerOnFieldsChange(a),d},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 EA(e){var t=c.useRef(),n=c.useState({}),r=ue(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},a=new JX(i);t.current=a.getForm()}return[t.current]}var nC=c.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),wA=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=c.useContext(nC),l=c.useRef({});return c.createElement(nC.Provider,{value:H(H({},a),{},{validateMessages:H(H({},a.validateMessages),n),triggerFormChange:function(d,f){r&&r(d,{changedFields:f,forms:l.current}),a.triggerFormChange(d,f)},triggerFormFinish:function(d,f){o&&o(d,{values:f,forms:l.current}),a.triggerFormFinish(d,f)},registerForm:function(d,f){d&&(l.current=H(H({},l.current),{},Q({},d,f))),a.registerForm(d,f)},unregisterForm:function(d){var f=H({},l.current);delete f[d],l.current=f,a.unregisterForm(d)}})},i)},eY=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],tY=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,a=t.form,l=t.preserve,s=t.children,d=t.component,f=d===void 0?"form":d,m=t.validateMessages,h=t.validateTrigger,g=h===void 0?"onChange":h,v=t.onValuesChange,C=t.onFieldsChange,S=t.onFinish,y=t.onFinishFailed,x=vt(t,eY),E=c.useContext(nC),w=EA(a),I=ue(w,1),O=I[0],_=O.getInternalHooks(fs),R=_.useSubscribe,M=_.setInitialValues,P=_.setCallbacks,D=_.setValidateMessages,N=_.setPreserve,T=_.destroyForm;c.useImperativeHandle(n,function(){return O}),c.useEffect(function(){return E.registerForm(r,O),function(){E.unregisterForm(r)}},[E,O,r]),D(H(H({},E.validateMessages),m)),P({onValuesChange:v,onFieldsChange:function(q){if(E.triggerFormChange(r,q),C){for(var J=arguments.length,X=new Array(J>1?J-1:0),Y=1;Y{const n=c.useContext(Sx),r=c.useMemo(()=>{var i;const a=t||Ps[e],l=(i=n==null?void 0:n[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),l||{})},[e,t,n]),o=c.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?Ps.locale:i},[n]);return[r,o]},Ff=uY,cY="internalMark",dY=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;c.useEffect(()=>(u_(t&&t.Modal),()=>{u_()}),[t]);const o=c.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return c.createElement(Sx.Provider,{value:o},n)},fY=dY,pY="5.4.2",vf=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],mY=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},_A=mY;function hY(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 Cx={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"},iv=Object.assign(Object.assign({},Cx),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",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});function RA(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:s,colorBgBase:d,colorTextBase:f}=e,m=n(s),h=n(o),g=n(i),v=n(a),C=n(l),S=r(d,f);return Object.assign(Object.assign({},S),{colorPrimaryBg:m[1],colorPrimaryBgHover:m[2],colorPrimaryBorder:m[3],colorPrimaryBorderHover:m[4],colorPrimaryHover:m[5],colorPrimary:m[6],colorPrimaryActive:m[7],colorPrimaryTextHover:m[8],colorPrimaryText:m[9],colorPrimaryTextActive:m[10],colorSuccessBg:h[1],colorSuccessBgHover:h[2],colorSuccessBorder:h[3],colorSuccessBorderHover:h[4],colorSuccessHover:h[4],colorSuccess:h[6],colorSuccessActive:h[7],colorSuccessTextHover:h[8],colorSuccessText:h[9],colorSuccessTextActive:h[10],colorErrorBg: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:C[1],colorInfoBgHover:C[2],colorInfoBorder:C[3],colorInfoBorderHover:C[4],colorInfoHover:C[4],colorInfo:C[6],colorInfoActive:C[7],colorInfoTextHover:C[8],colorInfoText:C[9],colorInfoTextActive:C[10],colorBgMask:new bn("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const gY=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}},vY=gY;function yY(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},vY(r))}const Sa=(e,t)=>new bn(e).setAlpha(t).toRgbString(),id=(e,t)=>new bn(e).darken(t).toHexString(),bY=e=>{const t=La(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]}},SY=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Sa(r,.88),colorTextSecondary:Sa(r,.65),colorTextTertiary:Sa(r,.45),colorTextQuaternary:Sa(r,.25),colorFill:Sa(r,.15),colorFillSecondary:Sa(r,.06),colorFillTertiary:Sa(r,.04),colorFillQuaternary:Sa(r,.02),colorBgLayout:id(n,4),colorBgContainer:id(n,0),colorBgElevated:id(n,0),colorBgSpotlight:Sa(r,.85),colorBorder:id(n,15),colorBorderSecondary:id(n,6)}};function CY(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 xY=e=>{const t=CY(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]}},TA=xY;function av(e){const t=Object.keys(Cx).map(n=>{const r=La(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),RA(e,{generateColorPalettes:bY,generateNeutralColorPalettes:SY})),TA(e.fontSize)),hY(e)),_A(e)),yY(e))}function Ry(e){return e>=0&&e<=255}function pm(e,t){const{r:n,g:r,b:o,a:i}=new bn(e).toRgb();if(i<1)return e;const{r:a,g:l,b:s}=new bn(t).toRgb();for(let d=.01;d<=1;d+=.01){const f=Math.round((n-a*(1-d))/d),m=Math.round((r-l*(1-d))/d),h=Math.round((o-s*(1-d))/d);if(Ry(f)&&Ry(m)&&Ry(h))return new bn({r:f,g:m,b:h,a:Math.round(d*100)/100}).toRgbString()}return new bn({r:n,g:r,b:o,a:1}).toRgbString()}var EY=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[h]});const o=Object.assign(Object.assign({},n),r),i=480,a=576,l=768,s=992,d=1200,f=1600;return Object.assign(Object.assign(Object.assign({},o),{colorLink:o.colorInfoText,colorLinkHover:o.colorInfoHover,colorLinkActive:o.colorInfoActive,colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:pm(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:pm(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:pm(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:pm(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:` - 0 6px 16px 0 rgba(0, 0, 0, 0.08), - 0 3px 6px -4px rgba(0, 0, 0, 0.12), - 0 9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowSecondary:` - 0 6px 16px 0 rgba(0, 0, 0, 0.08), - 0 3px 6px -4px rgba(0, 0, 0, 0.12), - 0 9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowTertiary:` - 0 1px 2px 0 rgba(0, 0, 0, 0.03), - 0 1px 6px -1px rgba(0, 0, 0, 0.02), - 0 2px 4px 0 rgba(0, 0, 0, 0.02) - `,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:s-1,screenLG:s,screenLGMin:s,screenLGMax:d-1,screenXL:d,screenXLMin:d,screenXLMax:f-1,screenXXL:f,screenXXLMin:f,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` - 0 1px 2px -2px ${new bn("rgba(0, 0, 0, 0.16)").toRgbString()}, - 0 3px 6px 0 ${new bn("rgba(0, 0, 0, 0.12)").toRgbString()}, - 0 5px 12px 4px ${new bn("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)}const xx="anticon",IY=(e,t)=>t||(e?`ant-${e}`:"ant"),yt=c.createContext({getPrefixCls:IY,iconPrefixCls:xx}),$Y=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),OY=(e,t,n,r,o)=>{const i=e/2,a=0,l=i,s=n*1/Math.sqrt(2),d=i-n*(1-1/Math.sqrt(2)),f=i-t*(1/Math.sqrt(2)),m=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),h=2*i-f,g=m,v=2*i-s,C=d,S=2*i-a,y=l,x=i*Math.sqrt(2)+n*(Math.sqrt(2)-2);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:r,clipPath:`path('M ${a} ${l} A ${n} ${n} 0 0 0 ${s} ${d} L ${f} ${m} A ${t} ${t} 0 0 1 ${h} ${g} L ${v} ${C} A ${n} ${n} 0 0 0 ${S} ${y} 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"}}},Cs={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},hn=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),Bf=()=>({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"}}),yf=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),_Y=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},[`&:active, - &:hover`]:{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),RY=(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"}}}}},ka=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),bf=e=>({"&:focus-visible":Object.assign({},ka(e))});function _n(e,t,n,r){return o=>{const[i,a,l]=Hs(),{getPrefixCls:s,iconPrefixCls:d,csp:f}=c.useContext(yt),m=s(),h={theme:i,token:a,hashId:l,nonce:()=>f==null?void 0:f.nonce};return WS(Object.assign(Object.assign({},h),{path:["Shared",m]}),()=>[{"&":_Y(a)}]),[WS(Object.assign(Object.assign({},h),{path:[e,o,d]}),()=>{const{token:g,flush:v}=PY(a),C=typeof n=="function"?n(g):n,S=Object.assign(Object.assign({},C),a[e]),y=`.${o}`,x=Kt(g,{componentCls:y,prefixCls:o,iconCls:`.${d}`,antCls:`.${m}`},S),E=t(x,{hashId:l,prefixCls:o,rootPrefixCls:m,iconPrefixCls:d,overrideComponentToken:a[e]});return v(e,S),[(r==null?void 0:r.resetStyle)===!1?null:RY(a,o),E]}),l]}}const PA=typeof CSSINJS_STATISTIC<"u";let rC=!0;function Kt(){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]})})}),rC=!0,r}function TY(){}function PY(e){let t,n=e,r=TY;return PA&&(t=new Set,n=new Proxy(e,{get(o,i){return rC&&t.add(i),o[i]}}),r=(o,i)=>{Array.from(t)}),{token:n,keys:t,flush:r}}function NY(e,t){return vf.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))},{})}const MY=mA(av),Lh={token:iv,hashed:!0},NA=ve.createContext(Lh);function Hs(){const{token:e,hashed:t,theme:n,components:r}=ve.useContext(NA),o=`${pY}-${t||""}`,i=n||MY,[a,l]=DG(i,[iv,e],{salt:o,override:Object.assign({override:e},r),formatToken:wY});return[i,a,t?l:""]}const AY=`-ant-${Date.now()}-${Math.random()}`;function LY(e,t){const n={},r=(a,l)=>{let s=a.clone();return s=(l==null?void 0:l(s))||s,s.toRgbString()},o=(a,l)=>{const s=new bn(a),d=La(s.toRgbString());n[`${l}-color`]=r(s),n[`${l}-color-disabled`]=d[1],n[`${l}-color-hover`]=d[4],n[`${l}-color-active`]=d[6],n[`${l}-color-outline`]=s.clone().setAlpha(.2).toRgbString(),n[`${l}-color-deprecated-bg`]=d[0],n[`${l}-color-deprecated-border`]=d[2]};if(t.primaryColor){o(t.primaryColor,"primary");const a=new bn(t.primaryColor),l=La(a.toRgbString());l.forEach((d,f)=>{n[`primary-${f+1}`]=d}),n["primary-color-deprecated-l-35"]=r(a,d=>d.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,d=>d.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,d=>d.tint(20)),n["primary-color-deprecated-t-50"]=r(a,d=>d.tint(50)),n["primary-color-deprecated-f-12"]=r(a,d=>d.setAlpha(d.getAlpha()*.12));const s=new bn(l[0]);n["primary-color-active-deprecated-f-30"]=r(s,d=>d.setAlpha(d.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(s,d=>d.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 DY(e,t){const n=LY(e,t);pr()&&pc(n,`${AY}-dynamic-theme`)}const oC=c.createContext(!1),kY=e=>{let{children:t,disabled:n}=e;const r=c.useContext(oC);return c.createElement(oC.Provider,{value:n??r},t)},zl=oC,iC=c.createContext(void 0),FY=e=>{let{children:t,size:n}=e;const r=c.useContext(iC);return c.createElement(iC.Provider,{value:n||r},t)},Fi=iC;function BY(){const e=c.useContext(zl),t=c.useContext(Fi);return{componentDisabled:e,componentSize:t}}function zY(e,t){const n=e||{},r=n.inherit===!1||!t?Lh:t;return Bs(()=>{if(!e)return t;const i=Object.assign({},r.components);return Object.keys(e.components||{}).forEach(a=>{i[a]=Object.assign(Object.assign({},i[a]),e.components[a])}),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:i})},[n,r],(i,a)=>i.some((l,s)=>{const d=a[s];return!Da(l,d,!0)}))}const HY=(e,t)=>{const[n,r]=Hs();return WS({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},Bf()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},jY=HY;var VY=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,iconPrefixCls:n,theme:r}=e;t!==void 0&&(Dh=t),n!==void 0&&(MA=n),r&&DY(Gm(),r)},Ex=()=>({getPrefixCls:(e,t)=>t||(e?`${Gm()}-${e}`:Gm()),getIconPrefixCls:KY,getRootPrefixCls:()=>Dh||Gm()}),XY=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,form:o,locale:i,componentSize:a,direction:l,space:s,virtual:d,dropdownMatchSelectWidth:f,legacyLocale:m,parentContext:h,iconPrefixCls:g,theme:v,componentDisabled:C}=e,S=c.useCallback((T,L)=>{const{prefixCls:z}=e;if(L)return L;const F=z||h.getPrefixCls("");return T?`${F}-${T}`:F},[h.getPrefixCls,e.prefixCls]),y=g||h.iconPrefixCls||xx,x=y!==h.iconPrefixCls,E=n||h.csp,w=jY(y,E),I=zY(v,h.theme),O={csp:E,autoInsertSpaceInButton:r,locale:i||m,direction:l,space:s,virtual:d,dropdownMatchSelectWidth:f,getPrefixCls:S,iconPrefixCls:y,theme:I},_=Object.assign({},h);Object.keys(O).forEach(T=>{O[T]!==void 0&&(_[T]=O[T])}),UY.forEach(T=>{const L=e[T];L&&(_[T]=L)});const R=Bs(()=>_,_,(T,L)=>{const z=Object.keys(T),F=Object.keys(L);return z.length!==F.length||z.some(V=>T[V]!==L[V])}),M=c.useMemo(()=>({prefixCls:y,csp:E}),[y,E]);let P=x?w(t):t;const D=c.useMemo(()=>{var T,L,z;return kd({},((T=Ps.Form)===null||T===void 0?void 0:T.defaultValidateMessages)||{},((z=(L=R.locale)===null||L===void 0?void 0:L.Form)===null||z===void 0?void 0:z.defaultValidateMessages)||{},(o==null?void 0:o.validateMessages)||{})},[R,o==null?void 0:o.validateMessages]);Object.keys(D).length>0&&(P=c.createElement(wA,{validateMessages:D},t)),i&&(P=c.createElement(fY,{locale:i,_ANT_MARK__:cY},P)),(y||E)&&(P=c.createElement(ux.Provider,{value:M},P)),a&&(P=c.createElement(FY,{size:a},P));const N=c.useMemo(()=>{const T=I||{},{algorithm:L,token:z}=T,F=VY(T,["algorithm","token"]),V=L&&(!Array.isArray(L)||L.length>0)?mA(L):void 0;return Object.assign(Object.assign({},F),{theme:V,token:Object.assign(Object.assign({},iv),z)})},[I]);return v&&(P=c.createElement(NA.Provider,{value:N},P)),C!==void 0&&(P=c.createElement(kY,{disabled:C},P)),c.createElement(yt.Provider,{value:R},P)},Va=e=>{const t=c.useContext(yt),n=c.useContext(Sx);return c.createElement(XY,Object.assign({parentContext:t,legacyLocale:n},e))};Va.ConfigContext=yt;Va.SizeContext=Fi;Va.config=GY;Va.useConfig=BY;Object.defineProperty(Va,"SizeContext",{get:()=>Fi});var AA=function(t){return+setTimeout(t,16)},LA=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(AA=function(t){return window.requestAnimationFrame(t)},LA=function(t){return window.cancelAnimationFrame(t)});var c_=0,wx=new Map;function DA(e){wx.delete(e)}var Zt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;c_+=1;var r=c_;function o(i){if(i===0)DA(r),t();else{var a=AA(function(){o(i-1)});wx.set(r,a)}}return o(n),r};Zt.cancel=function(e){var t=wx.get(e);return DA(t),LA(t)};function _a(e,t,n,r){var o=sc.unstable_batchedUpdates?function(a){sc.unstable_batchedUpdates(n,a)}:n;return e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){e.removeEventListener&&e.removeEventListener(t,o,r)}}}var YY=c.createContext({}),qY=function(e){Li(n,e);var t=Di(n);function n(){return Jn(this,n),t.apply(this,arguments)}return er(n,[{key:"render",value:function(){return this.props.children}}]),n}(c.Component);function Ol(e){var t=c.useRef(!1),n=c.useState(e),r=ue(n,2),o=r[0],i=r[1];c.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(l,s){s&&t.current||i(l)}return[o,a]}var xu="none",mm="appear",hm="enter",gm="leave",d_="none",Zi="prepare",Bu="start",zu="active",Ix="end",kA="prepared";function f_(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 QY(e,t){var n={animationend:f_("Animation","AnimationEnd"),transitionend:f_("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var ZY=QY(pr(),typeof window<"u"?window:{}),FA={};if(pr()){var JY=document.createElement("div");FA=JY.style}var vm={};function BA(e){if(vm[e])return vm[e];var t=ZY[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=Zt(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i}return c.useEffect(function(){return function(){t()}},[]),[n,t]};var nq=[Zi,Bu,zu,Ix],rq=[Zi,kA],UA=!1,oq=!0;function WA(e){return e===zu||e===Ix}const iq=function(e,t,n){var r=Ol(d_),o=ue(r,2),i=o[0],a=o[1],l=tq(),s=ue(l,2),d=s[0],f=s[1];function m(){a(Zi,!0)}var h=t?rq:nq;return VA(function(){if(i!==d_&&i!==Ix){var g=h.indexOf(i),v=h[g+1],C=n(i);C===UA?a(v,!0):v&&d(function(S){function y(){S.isCanceled()||a(v,!0)}C===!0?y():Promise.resolve(C).then(y)})}},[e,i]),c.useEffect(function(){return function(){f()}},[]),[m,i]};function aq(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,a=r.motionAppear,l=a===void 0?!0:a,s=r.motionLeave,d=s===void 0?!0:s,f=r.motionDeadline,m=r.motionLeaveImmediately,h=r.onAppearPrepare,g=r.onEnterPrepare,v=r.onLeavePrepare,C=r.onAppearStart,S=r.onEnterStart,y=r.onLeaveStart,x=r.onAppearActive,E=r.onEnterActive,w=r.onLeaveActive,I=r.onAppearEnd,O=r.onEnterEnd,_=r.onLeaveEnd,R=r.onVisibleChanged,M=Ol(),P=ue(M,2),D=P[0],N=P[1],T=Ol(xu),L=ue(T,2),z=L[0],F=L[1],V=Ol(null),j=ue(V,2),U=j[0],G=j[1],W=c.useRef(!1),q=c.useRef(null);function J(){return n()}var X=c.useRef(!1);function Y(){F(xu,!0),G(null,!0)}function ne(de){var Re=J();if(!(de&&!de.deadline&&de.target!==Re)){var be=X.current,Xe;z===mm&&be?Xe=I==null?void 0:I(Re,de):z===hm&&be?Xe=O==null?void 0:O(Re,de):z===gm&&be&&(Xe=_==null?void 0:_(Re,de)),z!==xu&&be&&Xe!==!1&&Y()}}var le=eq(ne),we=ue(le,1),Ie=we[0],Ce=c.useMemo(function(){var de,Re,be;switch(z){case mm:return de={},Q(de,Zi,h),Q(de,Bu,C),Q(de,zu,x),de;case hm:return Re={},Q(Re,Zi,g),Q(Re,Bu,S),Q(Re,zu,E),Re;case gm:return be={},Q(be,Zi,v),Q(be,Bu,y),Q(be,zu,w),be;default:return{}}},[z]),ce=iq(z,!e,function(de){if(de===Zi){var Re=Ce[Zi];return Re?Re(J()):UA}if(pe in Ce){var be;G(((be=Ce[pe])===null||be===void 0?void 0:be.call(Ce,J(),null))||null)}return pe===zu&&(Ie(J()),f>0&&(clearTimeout(q.current),q.current=setTimeout(function(){ne({deadline:!0})},f))),pe===kA&&Y(),oq}),he=ue(ce,2),ie=he[0],pe=he[1],fe=WA(pe);X.current=fe,VA(function(){N(t);var de=W.current;W.current=!0;var Re;!de&&t&&l&&(Re=mm),de&&t&&i&&(Re=hm),(de&&!t&&d||!de&&m&&!t&&d)&&(Re=gm),Re&&(F(Re),ie())},[t]),c.useEffect(function(){(z===mm&&!l||z===hm&&!i||z===gm&&!d)&&F(xu)},[l,i,d]),c.useEffect(function(){return function(){W.current=!1,clearTimeout(q.current)}},[]);var Oe=c.useRef(!1);c.useEffect(function(){D&&(Oe.current=!0),D!==void 0&&z===xu&&((Oe.current||D)&&(R==null||R(D)),Oe.current=!0)},[D,z]);var Se=U;return Ce[Zi]&&pe===Bu&&(Se=H({transition:"none"},Se)),[z,pe,Se,D??t]}function lq(e){var t=e;It(e)==="object"&&(t=e.transitionSupport);function n(o,i){return!!(o.motionName&&t&&i!==!1)}var r=c.forwardRef(function(o,i){var a=o.visible,l=a===void 0?!0:a,s=o.removeOnLeave,d=s===void 0?!0:s,f=o.forceRender,m=o.children,h=o.motionName,g=o.leavedClassName,v=o.eventProps,C=c.useContext(YY),S=C.motion,y=n(o,S),x=c.useRef(),E=c.useRef();function w(){try{return x.current instanceof HTMLElement?x.current:pf(E.current)}catch{return null}}var I=aq(y,l,w,o),O=ue(I,4),_=O[0],R=O[1],M=O[2],P=O[3],D=c.useRef(P);P&&(D.current=!0);var N=c.useCallback(function(U){x.current=U,ff(i,U)},[i]),T,L=H(H({},v),{},{visible:l});if(!m)T=null;else if(_===xu)P?T=m(H({},L),N):!d&&D.current&&g?T=m(H(H({},L),{},{className:g}),N):f||!d&&!g?T=m(H(H({},L),{},{style:{display:"none"}}),N):T=null;else{var z,F;R===Zi?F="prepare":WA(R)?F="active":R===Bu&&(F="start"),T=m(H(H({},L),{},{className:te(h_(h,_),(z={},Q(z,h_(h,"".concat(_,"-").concat(F)),F),Q(z,h,typeof h=="string"),z)),style:M}),N)}if(c.isValidElement(T)&&Bl(T)){var V=T,j=V.ref;j||(T=c.cloneElement(T,{ref:N}))}return c.createElement(qY,{ref:E},T)});return r.displayName="CSSMotion",r}const di=lq(jA);var aC="add",lC="keep",sC="remove",Ty="removed";function sq(e){var t;return e&&It(e)==="object"&&"key"in e?t=e:t={key:e},H(H({},t),{},{key:String(t.key)})}function uC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(sq)}function uq(){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=uC(e),a=uC(t);i.forEach(function(d){for(var f=!1,m=r;m1});return s.forEach(function(d){n=n.filter(function(f){var m=f.key,h=f.status;return m!==d||h!==sC}),n.forEach(function(f){f.key===d&&(f.status=lC)})}),n}var cq=["component","children","onVisibleChanged","onAllRemoved"],dq=["status"],fq=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function pq(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:di,n=function(r){Li(i,r);var o=Di(i);function i(){var a;Jn(this,i);for(var l=arguments.length,s=new Array(l),d=0;d((n.startsWith("data-")||n.startsWith("aria-")||n==="role")&&!n.startsWith("data-__")&&(t[n]=e[n]),t),{})}const{isValidElement:Mi}=Ud;function KA(e){return e&&Mi(e)&&e.type===c.Fragment}function gq(e,t,n){return Mi(e)?c.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function mr(e,t){return gq(e,e,t)}function so(e){var t=c.useRef();t.current=e;var n=c.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a"u")return 0;const o=t?"scrollTop":"scrollLeft";let i=0;return cC(e)?i=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?i=e.documentElement[o]:(e instanceof HTMLElement||e)&&(i=e[o]),e&&!cC(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 yq(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 bq(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=vq(i,!0),l=Date.now(),s=()=>{const f=Date.now()-l,m=yq(f>o?o:f,a,e,o);cC(i)?i.scrollTo(window.pageXOffset,m):i instanceof Document||i.constructor.name==="HTMLDocument"?i.documentElement.scrollTop=m:i.scrollTop=m,f=De.F1&&n<=De.F12)return!1;switch(n){case De.ALT:case De.CAPS_LOCK:case De.CONTEXT_MENU:case De.CTRL:case De.DOWN:case De.END:case De.ESC:case De.HOME:case De.INSERT:case De.LEFT:case De.MAC_FF_META:case De.META:case De.NUMLOCK:case De.NUM_CENTER:case De.PAGE_DOWN:case De.PAGE_UP:case De.PAUSE:case De.PRINT_SCREEN:case De.RIGHT:case De.SHIFT:case De.UP:case De.WIN_KEY:case De.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=De.ZERO&&t<=De.NINE||t>=De.NUM_ZERO&&t<=De.NUM_MULTIPLY||t>=De.A&&t<=De.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case De.SPACE:case De.QUESTION_MARK:case De.NUM_PLUS:case De.NUM_MINUS:case De.NUM_PERIOD:case De.NUM_DIVISION:case De.SEMICOLON:case De.DASH:case De.EQUALS:case De.COMMA:case De.PERIOD:case De.SLASH:case De.APOSTROPHE:case De.SINGLE_QUOTE:case De.OPEN_SQUARE_BRACKET:case De.BACKSLASH:case De.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Sq=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,i=e.duration,a=i===void 0?4.5:i,l=e.eventKey,s=e.content,d=e.closable,f=e.closeIcon,m=f===void 0?"x":f,h=e.props,g=e.onClick,v=e.onNoticeClose,C=e.times,S=c.useState(!1),y=ue(S,2),x=y[0],E=y[1],w=function(){v(l)},I=function(R){(R.key==="Enter"||R.code==="Enter"||R.keyCode===De.ENTER)&&w()};c.useEffect(function(){if(!x&&a>0){var _=setTimeout(function(){w()},a*1e3);return function(){clearTimeout(_)}}},[a,x,C]);var O="".concat(n,"-notice");return c.createElement("div",je({},h,{ref:t,className:te(O,o,Q({},"".concat(O,"-closable"),d)),style:r,onMouseEnter:function(){E(!0)},onMouseLeave:function(){E(!1)},onClick:g}),c.createElement("div",{className:"".concat(O,"-content")},s),d&&c.createElement("a",{tabIndex:0,className:"".concat(O,"-close"),onKeyDown:I,onClick:function(R){R.preventDefault(),R.stopPropagation(),w()}},m))});const GA=Sq;var Cq=c.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,i=e.motion,a=e.maxCount,l=e.className,s=e.style,d=e.onAllRemoved,f=c.useState([]),m=ue(f,2),h=m[0],g=m[1],v=function(_){var R,M=h.find(function(P){return P.key===_});M==null||(R=M.onClose)===null||R===void 0||R.call(M),g(function(P){return P.filter(function(D){return D.key!==_})})};c.useImperativeHandle(t,function(){return{open:function(_){g(function(R){var M=Pe(R),P=M.findIndex(function(T){return T.key===_.key}),D=H({},_);if(P>=0){var N;D.times=(((N=R[P])===null||N===void 0?void 0:N.times)||0)+1,M[P]=D}else D.times=0,M.push(D);return a>0&&M.length>a&&(M=M.slice(-a)),M})},close:function(_){v(_)},destroy:function(){g([])}}});var C=c.useState({}),S=ue(C,2),y=S[0],x=S[1];c.useEffect(function(){var O={};h.forEach(function(_){var R=_.placement,M=R===void 0?"topRight":R;M&&(O[M]=O[M]||[],O[M].push(_))}),Object.keys(y).forEach(function(_){O[_]=O[_]||[]}),x(O)},[h]);var E=function(_){x(function(R){var M=H({},R),P=M[_]||[];return P.length||delete M[_],M})},w=c.useRef(!1);if(c.useEffect(function(){Object.keys(y).length>0?w.current=!0:w.current&&(d==null||d(),w.current=!1)},[y]),!o)return null;var I=Object.keys(y);return Pi.createPortal(c.createElement(c.Fragment,null,I.map(function(O){var _=y[O],R=_.map(function(P){return{config:P,key:P.key}}),M=typeof i=="function"?i(O):i;return c.createElement(mq,je({key:O,className:te(r,"".concat(r,"-").concat(O),l==null?void 0:l(O)),style:s==null?void 0:s(O),keys:R,motionAppear:!0},M,{onAllRemoved:function(){E(O)}}),function(P,D){var N=P.config,T=P.className,L=P.style,z=N.key,F=N.times,V=N.className,j=N.style;return c.createElement(GA,je({},N,{ref:D,prefixCls:r,className:te(T,V),style:H(H({},L),j),times:F,key:z,eventKey:z,onNoticeClose:v}))})})),o)}),xq=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved"],Eq=function(){return document.body},g_=0;function wq(){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?Eq:t,r=e.motion,o=e.prefixCls,i=e.maxCount,a=e.className,l=e.style,s=e.onAllRemoved,d=vt(e,xq),f=c.useState(),m=ue(f,2),h=m[0],g=m[1],v=c.useRef(),C=c.createElement(Cq,{container:h,ref:v,prefixCls:o,motion:r,maxCount:i,className:a,style:l,onAllRemoved:s}),S=c.useState([]),y=ue(S,2),x=y[0],E=y[1],w=c.useMemo(function(){return{open:function(O){var _=wq(d,O);(_.key===null||_.key===void 0)&&(_.key="rc-notification-".concat(g_),g_+=1),E(function(R){return[].concat(Pe(R),[{type:"open",config:_}])})},close:function(O){E(function(_){return[].concat(Pe(_),[{type:"close",key:O}])})},destroy:function(){E(function(O){return[].concat(Pe(O),[{type:"destroy"}])})}}},[]);return c.useEffect(function(){g(n())}),c.useEffect(function(){v.current&&x.length&&(x.forEach(function(I){switch(I.type){case"open":v.current.open(I.config);break;case"close":v.current.close(I.key);break;case"destroy":v.current.destroy();break}}),E([]))},[x]),[w,C]}const $q=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorBgElevated:i,colorSuccess:a,colorError:l,colorWarning:s,colorInfo:d,fontSizeLG:f,motionEaseInOutCirc:m,motionDurationSlow:h,marginXS:g,paddingXS:v,borderRadiusLG:C,zIndexPopup:S,messageNoticeContentPadding:y}=e,x=new Dt("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:v,transform:"translateY(0)",opacity:1}}),E=new Dt("MessageMoveOut",{"0%":{maxHeight:e.height,padding:v,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},hn(e)),{color:o,position:"fixed",top:g,width:"100%",pointerEvents:"none",zIndex:S,[`${t}-move-up`]:{animationFillMode:"forwards"},[` - ${t}-move-up-appear, - ${t}-move-up-enter - `]:{animationName:x,animationDuration:h,animationPlayState:"paused",animationTimingFunction:m},[` - ${t}-move-up-appear${t}-move-up-appear-active, - ${t}-move-up-enter${t}-move-up-enter-active - `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:E,animationDuration:h,animationPlayState:"paused",animationTimingFunction:m},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[`${t}-notice`]:{padding:v,textAlign:"center",[`${t}-custom-content > ${n}`]:{verticalAlign:"text-bottom",marginInlineEnd:g,fontSize:f},[`${t}-notice-content`]:{display:"inline-block",padding:y,background:i,borderRadius:C,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:a},[`${t}-error > ${n}`]:{color:l},[`${t}-warning > ${n}`]:{color:s},[` - ${t}-info > ${n}, - ${t}-loading > ${n}`]:{color:d}}},{[`${t}-notice-pure-panel`]:{padding:0,textAlign:"start"}}]},XA=_n("Message",e=>{const t=Kt(e,{messageNoticeContentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`});return[$q(t)]},e=>({height:150,zIndexPopup:e.zIndexPopupBase+10}));function Oq(e,t){return{motionName:t??`${e}-move-up`}}function $x(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,i)=>n.then(o,i),r.promise=n,r}var _q=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,prefixCls:r,getContainer:o,maxCount:i,duration:a=Mq,rtl:l,transitionName:s,onAllRemoved:d}=e,{getPrefixCls:f,getPopupContainer:m}=c.useContext(yt),h=r||f("message"),[,g]=XA(h),v=()=>({left:"50%",transform:"translateX(-50%)",top:n??Nq}),C=()=>te(g,l?`${h}-rtl`:""),S=()=>Oq(h,s),y=c.createElement("span",{className:`${h}-close-x`},c.createElement(Lf,{className:`${h}-close-icon`})),[x,E]=Iq({prefixCls:h,style:v,className:C,motion:S,closable:!1,closeIcon:y,duration:a,getContainer:()=>(o==null?void 0:o())||(m==null?void 0:m())||document.body,maxCount:i,onAllRemoved:d});return c.useImperativeHandle(t,()=>Object.assign(Object.assign({},x),{prefixCls:h,hashId:g})),E});let v_=0;function qA(e){const t=c.useRef(null);return[c.useMemo(()=>{const r=s=>{var d;(d=t.current)===null||d===void 0||d.close(s)},o=s=>{if(!t.current){const I=()=>{};return I.then=()=>{},I}const{open:d,prefixCls:f,hashId:m}=t.current,h=`${f}-notice`,{content:g,icon:v,type:C,key:S,className:y,onClose:x}=s,E=Pq(s,["content","icon","type","key","className","onClose"]);let w=S;return w==null&&(v_+=1,w=`antd-message-${v_}`),$x(I=>(d(Object.assign(Object.assign({},E),{key:w,content:c.createElement(YA,{prefixCls:f,type:C,icon:v},g),placement:"top",className:te(C&&`${h}-${C}`,m,y),onClose:()=>{x==null||x(),I()}})),()=>{r(w)}))},a={open:o,destroy:s=>{var d;s!==void 0?r(s):(d=t.current)===null||d===void 0||d.destroy()}};return["info","success","warning","error","loading"].forEach(s=>{const d=(f,m,h)=>{let g;f&&typeof f=="object"&&"content"in f?g=f:g={content:f};let v,C;typeof m=="function"?C=m:(v=m,C=h);const S=Object.assign(Object.assign({onClose:C,duration:v},g),{type:s});return o(S)};a[s]=d}),a},[]),c.createElement(Aq,Object.assign({key:"message-holder"},e,{ref:t}))]}function Lq(e){return qA(e)}function Dq(){const[e,t]=c.useState([]),n=c.useCallback(r=>(t(o=>[].concat(Pe(o),[r])),()=>{t(o=>o.filter(i=>i!==r))}),[]);return[e,n]}var zf=H({},kj),kq=zf.version,Fq=zf.render,Bq=zf.unmountComponentAtNode,lv;try{var zq=Number((kq||"").split(".")[0]);zq>=18&&(lv=zf.createRoot)}catch{}function y_(e){var t=zf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&It(t)==="object"&&(t.usingClientEntryPoint=e)}var kh="__rc_react_root__";function Hq(e,t){y_(!0);var n=t[kh]||lv(t);y_(!1),n.render(e),t[kh]=n}function jq(e,t){Fq(e,t)}function Ox(e,t){if(lv){Hq(e,t);return}jq(e,t)}function Vq(e){return dC.apply(this,arguments)}function dC(){return dC=zs(Yr().mark(function e(t){return Yr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[kh])===null||o===void 0||o.unmount(),delete t[kh]}));case 1:case"end":return r.stop()}},e)})),dC.apply(this,arguments)}function Uq(e){Bq(e)}function QA(e){return fC.apply(this,arguments)}function fC(){return fC=zs(Yr().mark(function e(t){return Yr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(lv===void 0){r.next=2;break}return r.abrupt("return",Vq(t));case 2:Uq(t);case 3:case"end":return r.stop()}},e)})),fC.apply(this,arguments)}const Hf=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},Wq=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}}}}},Kq=_n("Wave",e=>[Wq(e)]);function Gq(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 Py(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&Gq(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function Xq(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Py(t)?t:Py(n)?n:Py(r)?r:null}function Ny(e){return Number.isNaN(e)?0:e}const Yq=e=>{const{className:t,target:n}=e,r=c.useRef(null),[o,i]=c.useState(null),[a,l]=c.useState([]),[s,d]=c.useState(0),[f,m]=c.useState(0),[h,g]=c.useState(0),[v,C]=c.useState(0),[S,y]=c.useState(!1),x={left:s,top:f,width:h,height:v,borderRadius:a.map(w=>`${w}px`).join(" ")};o&&(x["--wave-color"]=o);function E(){const w=getComputedStyle(n);i(Xq(n));const I=w.position==="static",{borderLeftWidth:O,borderTopWidth:_}=w;d(I?n.offsetLeft:Ny(-parseFloat(O))),m(I?n.offsetTop:Ny(-parseFloat(_))),g(n.offsetWidth),C(n.offsetHeight);const{borderTopLeftRadius:R,borderTopRightRadius:M,borderBottomLeftRadius:P,borderBottomRightRadius:D}=w;l([R,M,D,P].map(N=>Ny(parseFloat(N))))}return c.useEffect(()=>{if(n){const w=Zt(()=>{E(),y(!0)});let I;return typeof ResizeObserver<"u"&&(I=new ResizeObserver(E),I.observe(n)),()=>{Zt.cancel(w),I==null||I.disconnect()}}},[]),S?c.createElement(di,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(w,I)=>{var O;if(I.deadline||I.propertyName==="opacity"){const _=(O=r.current)===null||O===void 0?void 0:O.parentElement;QA(_).then(()=>{var R;(R=_.parentElement)===null||R===void 0||R.removeChild(_)})}return!1}},w=>{let{className:I}=w;return c.createElement("div",{ref:r,className:te(t,I),style:x})}):null};function qq(e,t){const n=document.createElement("div");n.style.position="absolute",n.style.left="0px",n.style.top="0px",e==null||e.insertBefore(n,e==null?void 0:e.firstChild),Ox(c.createElement(Yq,{target:e,className:t}),n)}function Qq(e,t){function n(){const r=e.current;qq(r,t)}return n}const Zq=e=>{const{children:t,disabled:n}=e,{getPrefixCls:r}=c.useContext(yt),o=c.useRef(null),i=r("wave"),[,a]=Kq(i),l=Qq(o,te(i,a));if(ve.useEffect(()=>{const d=o.current;if(!d||d.nodeType!==1||n)return;const f=m=>{m.target.tagName==="INPUT"||!Hf(m.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")||d.className.includes("-leave")||l()};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[n]),!ve.isValidElement(t))return t??null;const s=Bl(t)?Bo(t.ref,o):o;return mr(t,{ref:s})},Jq=Zq,eQ=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},tQ=eQ,nQ=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"}}}},ZA=_n("Space",e=>[nQ(e),tQ(e)],()=>({}),{resetStyle:!1});var JA=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=c.useContext(sv),r=c.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,l=o==="vertical"?"-vertical-":"-";return te({[`${e}-compact${l}item`]:!0,[`${e}-compact${l}first-item`]:i,[`${e}-compact${l}last-item`]:a,[`${e}-compact${l}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},vc=e=>{let{children:t}=e;return c.createElement(sv.Provider,{value:null},t)},rQ=e=>{var{children:t}=e,n=JA(e,["children"]);return c.createElement(sv.Provider,{value:n},t)},oQ=e=>{const{getPrefixCls:t,direction:n}=c.useContext(yt),{size:r="middle",direction:o,block:i,prefixCls:a,className:l,rootClassName:s,children:d}=e,f=JA(e,["size","direction","block","prefixCls","className","rootClassName","children"]),m=t("space-compact",a),[h,g]=ZA(m),v=te(m,g,{[`${m}-rtl`]:n==="rtl",[`${m}-block`]:i,[`${m}-vertical`]:o==="vertical"},l,s),C=c.useContext(sv),S=ai(d),y=c.useMemo(()=>S.map((x,E)=>{const w=x&&x.key||`${m}-item-${E}`;return c.createElement(rQ,{key:w,compactSize:r,compactDirection:o,isFirstItem:E===0&&(!C||(C==null?void 0:C.isFirstItem)),isLastItem:E===S.length-1&&(!C||(C==null?void 0:C.isLastItem))},x)}),[r,S,C]);return S.length===0?null:h(c.createElement("div",Object.assign({className:v},f),y))},iQ=oQ,My=()=>({width:0,opacity:0,transform:"scale(0)"}),Ay=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),aQ=e=>{let{prefixCls:t,loading:n,existIcon:r}=e;const o=!!n;return r?ve.createElement("span",{className:`${t}-loading-icon`},ve.createElement(df,null)):ve.createElement(di,{visible:o,motionName:`${t}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:My,onAppearActive:Ay,onEnterStart:My,onEnterActive:Ay,onLeaveStart:Ay,onLeaveActive:My},(i,a)=>{let{className:l,style:s}=i;return ve.createElement("span",{className:`${t}-loading-icon`,style:s,ref:a},ve.createElement(df,{className:l}))})},lQ=aQ;var sQ=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}=c.useContext(yt),{prefixCls:r,size:o,className:i}=e,a=sQ(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,s]=Hs();let d="";switch(o){case"large":d="lg";break;case"small":d="sm";break}const f=te(l,{[`${l}-${d}`]:d,[`${l}-rtl`]:n==="rtl"},i,s);return c.createElement(eL.Provider,{value:o},c.createElement("div",Object.assign({},a,{className:f})))},cQ=uQ,b_=/^[\u4e00-\u9fa5]{2}$/,pC=b_.test.bind(b_);function dQ(e){return typeof e=="string"}function Ly(e){return e==="text"||e==="link"}function fQ(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&dQ(e.type)&&pC(e.props.children)?mr(e,{children:e.props.children.split("").join(n)}):typeof e=="string"?pC(e)?ve.createElement("span",null,e.split("").join(n)):ve.createElement("span",null,e):KA(e)?ve.createElement("span",null,e):e}function pQ(e,t){let n=!1;const r=[];return ve.Children.forEach(e,o=>{const i=typeof o,a=i==="string"||i==="number";if(n&&a){const l=r.length-1,s=r[l];r[l]=`${s}${o}`}else r.push(o);n=a}),ve.Children.map(r,o=>fQ(o,t))}const S_=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),mQ=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, - &:focus, - &:active`]:{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},S_(`${t}-primary`,o),S_(`${t}-danger`,i)]}},hQ=mQ;function gQ(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(s=>`&:${s} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function vQ(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 uv(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({},gQ(e,r,t)),vQ(n,r,t))}}function yQ(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function bQ(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 SQ(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},yQ(e,t)),bQ(e.componentCls,t))}}const CQ=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:400,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,"> span":{display:"inline-block"},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},bf(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:'""'}}}}}}},Fa=(e,t)=>({"&:not(:disabled)":{"&:hover":e,"&:active":t}}),xQ=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),EQ=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),mC=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),Fh=(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"},Fa(Object.assign({backgroundColor:"transparent"},i),Object.assign({backgroundColor:"transparent"},a))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:o||void 0}})}),_x=e=>({"&:disabled":Object.assign({},mC(e))}),tL=e=>Object.assign({},_x(e)),Bh=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),nL=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},tL(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),Fa({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Fh(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},Fa({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Fh(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),_x(e))}),wQ=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},tL(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),Fa({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),Fh(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}`},Fa({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),Fh(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),_x(e))}),IQ=e=>Object.assign(Object.assign({},nL(e)),{borderStyle:"dashed"}),$Q=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Fa({color:e.colorLinkHover},{color:e.colorLinkActive})),Bh(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Fa({color:e.colorErrorHover},{color:e.colorErrorActive})),Bh(e))}),OQ=e=>Object.assign(Object.assign(Object.assign({},Fa({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),Bh(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Bh(e)),Fa({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),_Q=e=>Object.assign(Object.assign({},mC(e)),{[`&${e.componentCls}:hover`]:Object.assign({},mC(e))}),RQ=e=>{const{componentCls:t}=e;return{[`${t}-default`]:nL(e),[`${t}-primary`]:wQ(e),[`${t}-dashed`]:IQ(e),[`${t}-link`]:$Q(e),[`${t}-text`]:OQ(e),[`${t}-disabled`]:_Q(e)}},Rx=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,iconCls:r,controlHeight:o,fontSize:i,lineHeight:a,lineWidth:l,borderRadius:s,buttonPaddingHorizontal:d}=e,f=Math.max(0,(o-i*a)/2-l),m=d-l,h=`${n}-icon-only`;return[{[`${n}${t}`]:{fontSize:i,height:o,padding:`${f}px ${m}px`,borderRadius:s,[`&${h}`]:{width:o,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},"> span":{transform:"scale(1.143)"}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`&:not(${h}) ${n}-loading-icon > ${r}`]:{marginInlineEnd:e.marginXS}}},{[`${n}${n}-circle${t}`]:xQ(e)},{[`${n}${n}-round${t}`]:EQ(e)}]},TQ=e=>Rx(e),PQ=e=>{const t=Kt(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM});return Rx(t,`${e.componentCls}-sm`)},NQ=e=>{const t=Kt(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG});return Rx(t,`${e.componentCls}-lg`)},MQ=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},AQ=_n("Button",e=>{const{controlTmpOutline:t,paddingContentHorizontal:n}=e,r=Kt(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n});return[CQ(r),PQ(r),TQ(r),NQ(r),MQ(r),RQ(r),hQ(r),uv(e),SQ(e)]});var LQ=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{loading:n=!1,prefixCls:r,type:o="default",danger:i,shape:a="default",size:l,disabled:s,className:d,rootClassName:f,children:m,icon:h,ghost:g=!1,block:v=!1,htmlType:C="button"}=e,S=LQ(e,["loading","prefixCls","type","danger","shape","size","disabled","className","rootClassName","children","icon","ghost","block","htmlType"]),{getPrefixCls:y,autoInsertSpaceInButton:x,direction:E}=c.useContext(yt),w=y("btn",r),[I,O]=AQ(w),_=c.useContext(Fi),R=c.useContext(zl),M=s??R,P=c.useContext(eL),D=c.useMemo(()=>DQ(n),[n]),[N,T]=c.useState(D.loading),[L,z]=c.useState(!1),F=t||c.createRef(),V=()=>c.Children.count(m)===1&&!h&&!Ly(o),j=()=>{if(!F||!F.current||x===!1)return;const ie=F.current.textContent;V()&&pC(ie)?L||z(!0):L&&z(!1)};c.useEffect(()=>{let ie=null;D.delay>0?ie=window.setTimeout(()=>{ie=null,T(!0)},D.delay):T(D.loading);function pe(){ie&&(window.clearTimeout(ie),ie=null)}return pe},[D]),c.useEffect(j,[F]);const U=ie=>{const{onClick:pe}=e;if(N||M){ie.preventDefault();return}pe==null||pe(ie)},G=x!==!1,{compactSize:W,compactItemClassnames:q}=Oc(w,E),J={large:"lg",small:"sm",middle:void 0},X=W||P||l||_,Y=X&&J[X]||"",ne=N?"loading":h,le=kr(S,["navigate"]),we=le.href!==void 0&&M,Ie=te(w,O,{[`${w}-${a}`]:a!=="default"&&a,[`${w}-${o}`]:o,[`${w}-${Y}`]:Y,[`${w}-icon-only`]:!m&&m!==0&&!!ne,[`${w}-background-ghost`]:g&&!Ly(o),[`${w}-loading`]:N,[`${w}-two-chinese-chars`]:L&&G&&!N,[`${w}-block`]:v,[`${w}-dangerous`]:!!i,[`${w}-rtl`]:E==="rtl",[`${w}-disabled`]:we},q,d,f),Ce=h&&!N?h:c.createElement(lQ,{existIcon:!!h,prefixCls:w,loading:!!N}),ce=m||m===0?pQ(m,V()&&G):null;if(le.href!==void 0)return I(c.createElement("a",Object.assign({},le,{className:Ie,onClick:U,ref:F}),Ce,ce));let he=c.createElement("button",Object.assign({},S,{type:C,className:Ie,onClick:U,disabled:M,ref:F}),Ce,ce);return Ly(o)||(he=c.createElement(Jq,{disabled:!!N},he)),I(he)},Tx=c.forwardRef(kQ);Tx.Group=cQ;Tx.__ANT_BUTTON=!0;const ri=Tx;function C_(e){return!!(e&&e.then)}const FQ=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:l,quitOnNullishReturnValue:s,actionFn:d}=e,f=c.useRef(!1),m=c.useRef(null),[h,g]=Ol(!1),v=function(){i==null||i.apply(void 0,arguments)};c.useEffect(()=>{let y=null;return a&&(y=setTimeout(()=>{var x;(x=m.current)===null||x===void 0||x.focus()})),()=>{y&&clearTimeout(y)}},[]);const C=y=>{C_(y)&&(g(!0),y.then(function(){g(!1,!0),v.apply(void 0,arguments),f.current=!1},x=>(g(!1,!0),f.current=!1,Promise.reject(x))))},S=y=>{if(f.current)return;if(f.current=!0,!d){v();return}let x;if(l){if(x=d(y),s&&!C_(x)){f.current=!1,v(y);return}}else if(d.length)x=d(i),f.current=!1;else if(x=d(),!x){v();return}C(x)};return c.createElement(ri,Object.assign({},rL(t),{onClick:S,loading:h,prefixCls:r},o,{ref:m}),n)},x_=FQ,Dy=()=>({height:0,opacity:0}),E_=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},BQ=e=>({height:e?e.offsetHeight:0}),ky=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",oL=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:Dy,onEnterStart:Dy,onAppearActive:E_,onEnterActive:E_,onLeaveStart:BQ,onLeaveActive:Dy,onAppearEnd:ky,onEnterEnd:ky,onLeaveEnd:ky,motionDeadline:500}},zQ=e=>e!==void 0&&(e==="topLeft"||e==="topRight")?"slide-down":"slide-up",Ns=(e,t,n)=>n!==void 0?n:`${e}-${t}`;var iL=c.createContext(null),sn=pr()?c.useLayoutEffect:c.useEffect,Fd=function(t,n){var r=c.useRef(!0);sn(function(){if(!r.current)return t()},n),sn(function(){return r.current=!1,function(){r.current=!0}},[])},w_=[];function HQ(e,t){var n=c.useState(function(){if(!pr())return null;var v=document.createElement("div");return v}),r=ue(n,1),o=r[0],i=c.useRef(!1),a=c.useContext(iL),l=c.useState(w_),s=ue(l,2),d=s[0],f=s[1],m=a||(i.current?void 0:function(v){f(function(C){var S=[v].concat(Pe(C));return S})});function h(){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 sn(function(){return e?a?a(h):h():g(),g},[e]),sn(function(){d.length&&(d.forEach(function(v){return v()}),f(w_))},[d]),[o,m]}var Fy;function zh(e){if(typeof document>"u")return 0;if(e||Fy===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),Fy=o-i}return Fy}function I_(e){var t=e.match(/^(.*)px$/),n=Number(t==null?void 0:t[1]);return Number.isNaN(n)?zh():n}function $_(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:I_(n),height:I_(r)}}function jQ(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var VQ="rc-util-locker-".concat(Date.now()),O_=0;function UQ(e){var t=!!e,n=c.useState(function(){return O_+=1,"".concat(VQ,"_").concat(O_)}),r=ue(n,1),o=r[0];sn(function(){if(t){var i=zh(),a=jQ();pc(` -html body { - overflow-y: hidden; - `.concat(a?"width: calc(100% - ".concat(i,"px);"):"",` -}`),o)}else _h(o);return function(){_h(o)}},[t,o])}var __=!1;function WQ(e){return typeof e=="boolean"&&(__=e),__}var R_=function(t){return t===!1?!1:!pr()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Px=c.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var i=e.autoDestroy,a=i===void 0?!0:i,l=e.children,s=c.useState(n),d=ue(s,2),f=d[0],m=d[1],h=f||n;c.useEffect(function(){(a||n)&&m(n)},[n,a]);var g=c.useState(function(){return R_(o)}),v=ue(g,2),C=v[0],S=v[1];c.useEffect(function(){var D=R_(o);S(D??null)});var y=HQ(h&&!C),x=ue(y,2),E=x[0],w=x[1],I=C??E;UQ(r&&n&&pr()&&(I===E||I===document.body));var O=null;if(l&&Bl(l)&&t){var _=l;O=_.ref}var R=ev(O,t);if(!h||!pr()||C===void 0)return null;var M=I===!1||WQ(),P=l;return t&&(P=c.cloneElement(l,{ref:R})),c.createElement(iL.Provider,{value:w},M?P:Pi.createPortal(P,I))});function KQ(){var e=H({},Ud);return e.useId}var T_=0;function aL(e){var t=c.useState("ssr-id"),n=ue(t,2),r=n[0],o=n[1],i=KQ(),a=i==null?void 0:i();return c.useEffect(function(){if(!i){var l=T_;T_+=1,o("rc_unique_".concat(l))}},[]),e||a||r}var GQ=`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`,XQ=`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`,YQ="".concat(GQ," ").concat(XQ).split(/[\s\n]+/),qQ="aria-",QQ="data-";function P_(e,t){return e.indexOf(t)===0}function Ba(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=H({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||P_(o,qQ))||n.data&&P_(o,QQ)||n.attr&&YQ.includes(o))&&(r[o]=e[o])}),r}function N_(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function M_(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 ZQ(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=M_(o),n.top+=M_(o,!0),n}const JQ=c.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var A_={width:0,height:0,overflow:"hidden",outline:"none"},lL=ve.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.title,a=e.ariaId,l=e.footer,s=e.closable,d=e.closeIcon,f=e.onClose,m=e.children,h=e.bodyStyle,g=e.bodyProps,v=e.modalRender,C=e.onMouseDown,S=e.onMouseUp,y=e.holderRef,x=e.visible,E=e.forceRender,w=e.width,I=e.height,O=c.useRef(),_=c.useRef();ve.useImperativeHandle(t,function(){return{focus:function(){var L;(L=O.current)===null||L===void 0||L.focus()},changeActive:function(L){var z=document,F=z.activeElement;L&&F===_.current?O.current.focus():!L&&F===O.current&&_.current.focus()}}});var R={};w!==void 0&&(R.width=w),I!==void 0&&(R.height=I);var M;l&&(M=ve.createElement("div",{className:"".concat(n,"-footer")},l));var P;i&&(P=ve.createElement("div",{className:"".concat(n,"-header")},ve.createElement("div",{className:"".concat(n,"-title"),id:a},i)));var D;s&&(D=ve.createElement("button",{type:"button",onClick:f,"aria-label":"Close",className:"".concat(n,"-close")},d||ve.createElement("span",{className:"".concat(n,"-close-x")})));var N=ve.createElement("div",{className:"".concat(n,"-content")},D,P,ve.createElement("div",je({className:"".concat(n,"-body"),style:h},g),m),M);return ve.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?a:null,"aria-modal":"true",ref:y,style:H(H({},o),R),className:te(n,r),onMouseDown:C,onMouseUp:S},ve.createElement("div",{tabIndex:0,ref:O,style:A_,"aria-hidden":"true"}),ve.createElement(JQ,{shouldUpdate:x||E},v?v(N):N),ve.createElement("div",{tabIndex:0,ref:_,style:A_,"aria-hidden":"true"}))}),sL=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,i=e.className,a=e.visible,l=e.forceRender,s=e.destroyOnClose,d=e.motionName,f=e.ariaId,m=e.onVisibleChanged,h=e.mousePosition,g=c.useRef(),v=c.useState(),C=ue(v,2),S=C[0],y=C[1],x={};S&&(x.transformOrigin=S);function E(){var w=ZQ(g.current);y(h?"".concat(h.x-w.left,"px ").concat(h.y-w.top,"px"):"")}return c.createElement(di,{visible:a,onVisibleChanged:m,onAppearPrepare:E,onEnterPrepare:E,forceRender:l,motionName:d,removeOnLeave:s,ref:g},function(w,I){var O=w.className,_=w.style;return c.createElement(lL,je({},e,{ref:t,title:r,ariaId:f,prefixCls:n,holderRef:I,style:H(H(H({},_),o),x),className:te(i,O)}))})});sL.displayName="Content";function eZ(e){var t=e.prefixCls,n=e.style,r=e.visible,o=e.maskProps,i=e.motionName;return c.createElement(di,{key:"mask",visible:r,motionName:i,leavedClassName:"".concat(t,"-mask-hidden")},function(a,l){var s=a.className,d=a.style;return c.createElement("div",je({ref:l,style:H(H({},d),n),className:te("".concat(t,"-mask"),s)},o))})}function tZ(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,l=a===void 0?!0:a,s=e.focusTriggerAfterClose,d=s===void 0?!0:s,f=e.wrapStyle,m=e.wrapClassName,h=e.wrapProps,g=e.onClose,v=e.afterOpenChange,C=e.afterClose,S=e.transitionName,y=e.animation,x=e.closable,E=x===void 0?!0:x,w=e.mask,I=w===void 0?!0:w,O=e.maskTransitionName,_=e.maskAnimation,R=e.maskClosable,M=R===void 0?!0:R,P=e.maskStyle,D=e.maskProps,N=e.rootClassName,T=c.useRef(),L=c.useRef(),z=c.useRef(),F=c.useState(i),V=ue(F,2),j=V[0],U=V[1],G=aL();function W(){bs(L.current,document.activeElement)||(T.current=document.activeElement)}function q(){if(!bs(L.current,document.activeElement)){var ce;(ce=z.current)===null||ce===void 0||ce.focus()}}function J(ce){if(ce)q();else{if(U(!1),I&&T.current&&d){try{T.current.focus({preventScroll:!0})}catch{}T.current=null}j&&(C==null||C())}v==null||v(ce)}function X(ce){g==null||g(ce)}var Y=c.useRef(!1),ne=c.useRef(),le=function(){clearTimeout(ne.current),Y.current=!0},we=function(){ne.current=setTimeout(function(){Y.current=!1})},Ie=null;M&&(Ie=function(he){Y.current?Y.current=!1:L.current===he.target&&X(he)});function Ce(ce){if(l&&ce.keyCode===De.ESC){ce.stopPropagation(),X(ce);return}i&&ce.keyCode===De.TAB&&z.current.changeActive(!ce.shiftKey)}return c.useEffect(function(){i&&(U(!0),W())},[i]),c.useEffect(function(){return function(){clearTimeout(ne.current)}},[]),c.createElement("div",je({className:te("".concat(n,"-root"),N)},Ba(e,{data:!0})),c.createElement(eZ,{prefixCls:n,visible:I&&i,motionName:N_(n,O,_),style:H({zIndex:r},P),maskProps:D}),c.createElement("div",je({tabIndex:-1,onKeyDown:Ce,className:te("".concat(n,"-wrap"),m),ref:L,onClick:Ie,style:H(H({zIndex:r},f),{},{display:j?null:"none"})},h),c.createElement(sL,je({},e,{onMouseDown:le,onMouseUp:we,ref:z,closable:E,ariaId:G,prefixCls:n,visible:i&&j,onClose:X,onVisibleChanged:J,motionName:N_(n,S,y)}))))}var uL=function(t){var n=t.visible,r=t.getContainer,o=t.forceRender,i=t.destroyOnClose,a=i===void 0?!1:i,l=t.afterClose,s=c.useState(n),d=ue(s,2),f=d[0],m=d[1];return c.useEffect(function(){n&&m(!0)},[n]),!o&&a&&!f?null:c.createElement(Px,{open:n||o||f,autoDestroy:!1,getContainer:r,autoLock:n||f},c.createElement(tZ,je({},t,{destroyOnClose:a,afterClose:function(){l==null||l(),m(!1)}})))};uL.displayName="Dialog";const la=c.createContext({}),Sf=e=>{let{children:t,status:n,override:r}=e;const o=c.useContext(la),i=c.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 c.createElement(la.Provider,{value:i},t)};var cL=function(t){if(pr()&&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},nZ=function(t,n){if(!cL(t))return!1;var r=document.createElement("div"),o=r.style[t];return r.style[t]=n,r.style[t]!==o};function rZ(e,t){return!Array.isArray(e)&&t!==void 0?nZ(e,t):cL(e)}const dL=()=>pr()&&window.document.documentElement;let ym;const oZ=()=>{if(!dL())return!1;if(ym!==void 0)return ym;const e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),ym=e.scrollHeight===1,document.body.removeChild(e),ym},iZ=e=>({animationDuration:e,animationFillMode:"both"}),aZ=e=>({animationDuration:e,animationFillMode:"both"}),cv=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({},iZ(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},aZ(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"}}},lZ=new Dt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),sZ=new Dt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),uZ=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[cv(r,lZ,sZ,e.motionDurationMid,t),{[` - ${o}${r}-enter, - ${o}${r}-appear - `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},cZ=new Dt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),dZ=new Dt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),fZ=new Dt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),pZ=new Dt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),mZ=new Dt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),hZ=new Dt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),gZ=new Dt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),vZ=new Dt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),yZ={"move-up":{inKeyframes:gZ,outKeyframes:vZ},"move-down":{inKeyframes:cZ,outKeyframes:dZ},"move-left":{inKeyframes:fZ,outKeyframes:pZ},"move-right":{inKeyframes:mZ,outKeyframes:hZ}},Hh=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=yZ[t];return[cv(r,o,i,e.motionDurationMid),{[` - ${r}-enter, - ${r}-appear - `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Nx=new Dt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Mx=new Dt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Ax=new Dt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Lx=new Dt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),bZ=new Dt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),SZ=new Dt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),CZ=new Dt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),xZ=new Dt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),EZ={"slide-up":{inKeyframes:Nx,outKeyframes:Mx},"slide-down":{inKeyframes:Ax,outKeyframes:Lx},"slide-left":{inKeyframes:bZ,outKeyframes:SZ},"slide-right":{inKeyframes:CZ,outKeyframes:xZ}},yc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=EZ[t];return[cv(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}}]},wZ=new Dt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),IZ=new Dt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),L_=new Dt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),D_=new Dt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),$Z=new Dt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),OZ=new Dt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),_Z=new Dt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),RZ=new Dt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),TZ=new Dt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),PZ=new Dt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),NZ=new Dt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),MZ=new Dt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),AZ={zoom:{inKeyframes:wZ,outKeyframes:IZ},"zoom-big":{inKeyframes:L_,outKeyframes:D_},"zoom-big-fast":{inKeyframes:L_,outKeyframes:D_},"zoom-left":{inKeyframes:_Z,outKeyframes:RZ},"zoom-right":{inKeyframes:TZ,outKeyframes:PZ},"zoom-up":{inKeyframes:$Z,outKeyframes:OZ},"zoom-down":{inKeyframes:NZ,outKeyframes:MZ}},jf=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=AZ[t];return[cv(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}}]},LZ=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`}}}),fL=LZ;function k_(e){return{position:e,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0}}const DZ=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({},k_("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},k_("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:uZ(e)}]},kZ=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap`]:{zIndex:e.zIndexPopupBase,position:"fixed",inset:0,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"},[`${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({},hn(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.modalHeadingColor,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.modalContentBg,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.modalHeaderCloseSize-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,padding:0,color:e.modalCloseColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalConfirmIconSize,height:e.modalConfirmIconSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"block",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${e.modalCloseBtnSize}px`,textAlign:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},bf(e)),[`${t}-header`]:{color:e.colorText,background:e.modalHeaderBg,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.modalFooterBg,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"}}}]},FZ=e=>{const{componentCls:t}=e,n=`${t}-confirm`;return{[n]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${n}-body-wrapper`]:Object.assign({},yf()),[`${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.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,[`+ ${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}}},BZ=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},zZ=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}}}},pL=_n("Modal",e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5,o=Kt(e,{modalBodyPadding:e.paddingLG,modalHeaderBg:e.colorBgElevated,modalHeaderPadding:`${t}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderTitleLineHeight:r,modalHeaderTitleFontSize:n,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderCloseSize:r*n+t*2,modalContentBg:e.colorBgElevated,modalHeadingColor:e.colorTextHeading,modalCloseColor:e.colorTextDescription,modalFooterBg:"transparent",modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalConfirmTitleFontSize:e.fontSizeLG,modalIconHoverColor:e.colorIconHover,modalConfirmIconSize:e.fontSize*e.lineHeight,modalCloseBtnSize:e.controlHeightLG*.55});return[kZ(o),FZ(o),BZ(o),DZ(o),e.wireframe&&zZ(o),jf(o,"zoom")]});var HZ=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{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:i,onCancel:a,okButtonProps:l,cancelButtonProps:s}=e,[d]=Ff("Modal",OA());return c.createElement(c.Fragment,null,c.createElement(ri,Object.assign({onClick:a},s),r||(d==null?void 0:d.cancelText)),c.createElement(ri,Object.assign({},rL(n),{loading:o,onClick:i},l),t||(d==null?void 0:d.okText)))},jZ=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:a,children:l}=e,s=HZ(e,["prefixCls","className","closeIcon","closable","type","title","children"]),{getPrefixCls:d}=c.useContext(yt),f=d(),m=t||d("modal"),[,h]=pL(m),g=`${m}-confirm`;let v={};return i?v={closable:o??!1,title:"",footer:"",children:c.createElement(vL,Object.assign({},e,{confirmPrefixCls:g,rootPrefixCls:f,content:l}))}:v={closable:o??!0,title:a,footer:e.footer===void 0?c.createElement(hL,Object.assign({},e)):e.footer,children:l},c.createElement(lL,Object.assign({prefixCls:m,className:te(h,`${m}-pure-panel`,i&&g,i&&`${g}-${i}`,n)},s,{closeIcon:mL(m,r),closable:o},v))},VZ=jZ;var UZ=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{hC={x:e.pageX,y:e.pageY},setTimeout(()=>{hC=null},100)};dL()&&document.documentElement.addEventListener("click",WZ,!0);const KZ=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o}=c.useContext(yt),i=P=>{const{onCancel:D}=e;D==null||D(P)},a=P=>{const{onOk:D}=e;D==null||D(P)},{prefixCls:l,className:s,rootClassName:d,open:f,wrapClassName:m,centered:h,getContainer:g,closeIcon:v,focusTriggerAfterClose:C=!0,visible:S,width:y=520,footer:x}=e,E=UZ(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose","visible","width","footer"]),w=r("modal",l),I=r(),[O,_]=pL(w),R=te(m,{[`${w}-centered`]:!!h,[`${w}-wrap-rtl`]:o==="rtl"}),M=x===void 0?c.createElement(hL,Object.assign({},e,{onOk:a,onCancel:i})):x;return O(c.createElement(vc,null,c.createElement(Sf,{status:!0,override:!0},c.createElement(uL,Object.assign({width:y},E,{getContainer:g===void 0?n:g,prefixCls:w,rootClassName:te(_,d),wrapClassName:R,footer:M,visible:f??S,mousePosition:(t=E.mousePosition)!==null&&t!==void 0?t:hC,onClose:i,closeIcon:mL(w,v),focusTriggerAfterClose:C,transitionName:Ns(I,"zoom",e.transitionName),maskTransitionName:Ns(I,"fade",e.maskTransitionName),className:te(_,s)})))))},gL=KZ;function vL(e){const{icon:t,onCancel:n,onOk:r,close:o,okText:i,okButtonProps:a,cancelText:l,cancelButtonProps:s,confirmPrefixCls:d,rootPrefixCls:f,type:m,okCancel:h,footer:g,locale:v}=e;let C=t;if(!t&&t!==null)switch(m){case"info":C=c.createElement(DM,null);break;case"success":C=c.createElement(fx,null);break;case"error":C=c.createElement(Ic,null);break;default:C=c.createElement(xM,null)}const S=e.okType||"primary",y=h??m==="confirm",x=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[E]=Ff("Modal"),w=v||E,I=y&&c.createElement(x_,{actionFn:n,close:o,autoFocus:x==="cancel",buttonProps:s,prefixCls:`${f}-btn`},l||(w==null?void 0:w.cancelText));return c.createElement("div",{className:`${d}-body-wrapper`},c.createElement("div",{className:`${d}-body`},C,e.title===void 0?null:c.createElement("span",{className:`${d}-title`},e.title),c.createElement("div",{className:`${d}-content`},e.content)),g===void 0?c.createElement("div",{className:`${d}-btns`},I,c.createElement(x_,{type:S,actionFn:r,close:o,autoFocus:x==="ok",buttonProps:a,prefixCls:`${f}-btn`},i||(y?w==null?void 0:w.okText:w==null?void 0:w.justOkText))):g)}const yL=e=>{const{close:t,zIndex:n,afterClose:r,visible:o,open:i,keyboard:a,centered:l,getContainer:s,maskStyle:d,direction:f,prefixCls:m,wrapClassName:h,rootPrefixCls:g,iconPrefixCls:v,bodyStyle:C,closable:S=!1,closeIcon:y,modalRender:x,focusTriggerAfterClose:E}=e,w=`${m}-confirm`,I=e.width||416,O=e.style||{},_=e.mask===void 0?!0:e.mask,R=e.maskClosable===void 0?!1:e.maskClosable,M=te(w,`${w}-${e.type}`,{[`${w}-rtl`]:f==="rtl"},e.className);return c.createElement(Va,{prefixCls:g,iconPrefixCls:v,direction:f},c.createElement(gL,{prefixCls:m,className:M,wrapClassName:te({[`${w}-centered`]:!!e.centered},h),onCancel:()=>t==null?void 0:t({triggerCancel:!0}),open:i,title:"",footer:null,transitionName:Ns(g,"zoom",e.transitionName),maskTransitionName:Ns(g,"fade",e.maskTransitionName),mask:_,maskClosable:R,maskStyle:d,style:O,bodyStyle:C,width:I,zIndex:n,afterClose:r,keyboard:a,centered:l,getContainer:s,closable:S,closeIcon:y,modalRender:x,focusTriggerAfterClose:E},c.createElement(vL,Object.assign({},e,{confirmPrefixCls:w}))))},GZ=[],ms=GZ;var XZ=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);oh&&h.triggerCancel);e.onCancel&&m&&e.onCancel.apply(e,[()=>{}].concat(Pe(d.slice(1))));for(let h=0;h{const g=OA(),{getPrefixCls:v,getIconPrefixCls:C}=Ex(),S=v(void 0,YZ()),y=m||`${S}-modal`,x=C();Ox(c.createElement(yL,Object.assign({},h,{prefixCls:y,rootPrefixCls:S,iconPrefixCls:x,okText:d,locale:g,cancelText:f||g.cancelText})),t)})}function a(){for(var s=arguments.length,d=new Array(s),f=0;f{typeof e.afterClose=="function"&&e.afterClose(),o.apply(this,d)}}),n.visible&&delete n.visible,i(n)}function l(s){typeof s=="function"?n=s(n):n=Object.assign(Object.assign({},n),s),i(n)}return i(n),ms.push(a),{destroy:a,update:l}}function SL(e){return Object.assign(Object.assign({},e),{type:"warning"})}function CL(e){return Object.assign(Object.assign({},e),{type:"info"})}function xL(e){return Object.assign(Object.assign({},e),{type:"success"})}function EL(e){return Object.assign(Object.assign({},e),{type:"error"})}function wL(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function qZ(e){let{rootPrefixCls:t}=e;bL=t}const QZ=(e,t)=>{let{afterClose:n,config:r}=e;var o;const[i,a]=c.useState(!0),[l,s]=c.useState(r),{direction:d,getPrefixCls:f}=c.useContext(yt),m=f("modal"),h=f(),g=()=>{var y;n(),(y=l.afterClose)===null||y===void 0||y.call(l)},v=function(){a(!1);for(var y=arguments.length,x=new Array(y),E=0;EI&&I.triggerCancel);l.onCancel&&w&&l.onCancel.apply(l,[()=>{}].concat(Pe(x.slice(1))))};c.useImperativeHandle(t,()=>({destroy:v,update:y=>{s(x=>Object.assign(Object.assign({},x),y))}}));const C=(o=l.okCancel)!==null&&o!==void 0?o:l.type==="confirm",[S]=Ff("Modal",Ps.Modal);return c.createElement(yL,Object.assign({prefixCls:m,rootPrefixCls:h},l,{close:v,open:i,afterClose:g,okText:l.okText||(C?S==null?void 0:S.okText:S==null?void 0:S.justOkText),direction:l.direction||d,cancelText:l.cancelText||(S==null?void 0:S.cancelText)}))},ZZ=c.forwardRef(QZ);let F_=0;const JZ=c.memo(c.forwardRef((e,t)=>{const[n,r]=Dq();return c.useImperativeHandle(t,()=>({patchElement:r}),[]),c.createElement(c.Fragment,null,n)}));function eJ(){const e=c.useRef(null),[t,n]=c.useState([]);c.useEffect(()=>{t.length&&(Pe(t).forEach(a=>{a()}),n([]))},[t]);const r=c.useCallback(i=>function(l){var s;F_+=1;const d=c.createRef();let f;const m=c.createElement(ZZ,{key:`modal-${F_}`,config:i(l),ref:d,afterClose:()=>{f==null||f()}});return f=(s=e.current)===null||s===void 0?void 0:s.patchElement(m),f&&ms.push(f),{destroy:()=>{function h(){var g;(g=d.current)===null||g===void 0||g.destroy()}d.current?h():n(g=>[].concat(Pe(g),[h]))},update:h=>{function g(){var v;(v=d.current)===null||v===void 0||v.update(h)}d.current?g():n(v=>[].concat(Pe(v),[g]))}}},[]);return[c.useMemo(()=>({info:r(CL),success:r(xL),error:r(EL),warning:r(SL),confirm:r(wL)}),[]),c.createElement(JZ,{key:"modal-holder",ref:e})]}function By(e){return e!==void 0}function Lr(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=Ol(function(){return By(o)?o:By(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),s=ue(l,2),d=s[0],f=s[1],m=o!==void 0?o:d,h=a?a(m):m,g=so(i),v=Ol([m]),C=ue(v,2),S=C[0],y=C[1];Fd(function(){var E=S[0];d!==E&&g(d,E)},[S]),Fd(function(){By(o)||f(o)},[o]);var x=so(function(E,w){f(E,w),y([m],w)});return[h,x]}const dv=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var IL=c.createContext(null);function tJ(){return c.useContext(IL)}function nJ(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=c.useState(!1),n=ue(t,2),r=n[0],o=n[1],i=c.useRef(null),a=function(){window.clearTimeout(i.current)};c.useEffect(function(){return a},[]);var l=function(d,f){a(),i.current=window.setTimeout(function(){o(d),f&&f()},e)};return[r,l,a]}function $L(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=c.useRef(null),n=c.useRef(null);c.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 rJ(e,t,n,r){var o=c.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},c.useEffect(function(){function i(a){var l;if(!((l=o.current)!==null&&l!==void 0&&l.customizedTrigger)){var s=a.target;s.shadowRoot&&a.composed&&(s=a.composedPath()[0]||s),o.current.open&&e().filter(function(d){return d}).every(function(d){return!d.contains(s)&&d!==s})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[])}var oJ=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],uu=void 0;function iJ(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,l=e.responsiveDisabled,s=e.registerSize,d=e.itemKey,f=e.className,m=e.style,h=e.children,g=e.display,v=e.order,C=e.component,S=C===void 0?"div":C,y=vt(e,oJ),x=a&&!g;function E(R){s(d,R)}c.useEffect(function(){return function(){E(null)}},[]);var w=i&&o!==uu?i(o):h,I;r||(I={opacity:x?0:1,height:x?0:uu,overflowY:x?"hidden":uu,order:a?v:uu,pointerEvents:x?"none":uu,position:x?"absolute":uu});var O={};x&&(O["aria-hidden"]=!0);var _=c.createElement(S,je({className:te(!r&&n,f),style:H(H({},I),m)},O,y,{ref:t}),w);return a&&(_=c.createElement(ki,{onResize:function(M){var P=M.offsetWidth;E(P)},disabled:l},_)),_}var Bd=c.forwardRef(iJ);Bd.displayName="Item";function aJ(e){if(typeof MessageChannel>"u")Zt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function lJ(){var e=c.useRef(null),t=function(r){e.current||(e.current=[],aJ(function(){Pi.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function ad(e,t){var n=c.useState(t),r=ue(n,2),o=r[0],i=r[1],a=so(function(l){e(function(){i(l)})});return[o,a]}var sJ=["component"],uJ=["className"],cJ=["className"],dJ=function(t,n){var r=c.useContext(jh);if(!r){var o=t.component,i=o===void 0?"div":o,a=vt(t,sJ);return c.createElement(i,je({},a,{ref:n}))}var l=r.className,s=vt(r,uJ),d=t.className,f=vt(t,cJ);return c.createElement(jh.Provider,{value:null},c.createElement(Bd,je({ref:n,className:te(l,d)},s,f)))},OL=c.forwardRef(dJ);OL.displayName="RawItem";var fJ=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],jh=c.createContext(null),_L="responsive",RL="invalidate";function pJ(e){return"+ ".concat(e.length," ...")}function mJ(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,i=o===void 0?[]:o,a=e.renderItem,l=e.renderRawItem,s=e.itemKey,d=e.itemWidth,f=d===void 0?10:d,m=e.ssr,h=e.style,g=e.className,v=e.maxCount,C=e.renderRest,S=e.renderRawRest,y=e.suffix,x=e.component,E=x===void 0?"div":x,w=e.itemComponent,I=e.onVisibleChange,O=vt(e,fJ),_=m==="full",R=lJ(),M=ad(R,null),P=ue(M,2),D=P[0],N=P[1],T=D||0,L=ad(R,new Map),z=ue(L,2),F=z[0],V=z[1],j=ad(R,0),U=ue(j,2),G=U[0],W=U[1],q=ad(R,0),J=ue(q,2),X=J[0],Y=J[1],ne=ad(R,0),le=ue(ne,2),we=le[0],Ie=le[1],Ce=c.useState(null),ce=ue(Ce,2),he=ce[0],ie=ce[1],pe=c.useState(null),fe=ue(pe,2),Oe=fe[0],Se=fe[1],de=c.useMemo(function(){return Oe===null&&_?Number.MAX_SAFE_INTEGER:Oe||0},[Oe,D]),Re=c.useState(!1),be=ue(Re,2),Xe=be[0],Qe=be[1],ft="".concat(r,"-item"),ct=Math.max(G,X),ut=v===_L,dt=i.length&&ut,He=v===RL,Je=dt||typeof v=="number"&&i.length>v,ee=c.useMemo(function(){var _e=i;return dt?D===null&&_?_e=i:_e=i.slice(0,Math.min(i.length,T/f)):typeof v=="number"&&(_e=i.slice(0,v)),_e},[i,f,D,v,dt]),re=c.useMemo(function(){return dt?i.slice(de+1):i.slice(ee.length)},[i,ee,dt,de]),oe=c.useCallback(function(_e,Ne){var Te;return typeof s=="function"?s(_e):(Te=s&&(_e==null?void 0:_e[s]))!==null&&Te!==void 0?Te:Ne},[s]),xe=c.useCallback(a||function(_e){return _e},[a]);function ge(_e,Ne,Te){Oe===_e&&(Ne===void 0||Ne===he)||(Se(_e),Te||(Qe(_eT){ge(We-1,_e-qe-we+X);break}}y&&ot(0)+we>T&&ie(null)}},[T,F,X,we,oe,ee]);var Ae=Xe&&!!re.length,Ke={};he!==null&&dt&&(Ke={position:"absolute",left:he,top:0});var Ue={prefixCls:ft,responsive:dt,component:w,invalidate:He},ze=l?function(_e,Ne){var Te=oe(_e,Ne);return c.createElement(jh.Provider,{key:Te,value:H(H({},Ue),{},{order:Ne,item:_e,itemKey:Te,registerSize:ke,display:Ne<=de})},l(_e,Ne))}:function(_e,Ne){var Te=oe(_e,Ne);return c.createElement(Bd,je({},Ue,{order:Ne,key:Te,item:_e,renderItem:xe,itemKey:Te,registerSize:ke,display:Ne<=de}))},at,$t={order:Ae?de:Number.MAX_SAFE_INTEGER,className:"".concat(ft,"-rest"),registerSize:Ye,display:Ae};if(S)S&&(at=c.createElement(jh.Provider,{value:H(H({},Ue),$t)},S(re)));else{var tt=C||pJ;at=c.createElement(Bd,je({},Ue,$t),typeof tt=="function"?tt(re):tt)}var lt=c.createElement(E,je({className:te(!He&&r,g),style:h,ref:t},O),ee.map(ze),Je?at:null,y&&c.createElement(Bd,je({},Ue,{responsive:ut,responsiveDisabled:!dt,order:de,className:"".concat(ft,"-suffix"),registerSize:Fe,display:!0,style:Ke}),y));return ut&&(lt=c.createElement(ki,{onResize:Ee,disabled:!dt},lt)),lt}var oa=c.forwardRef(mJ);oa.displayName="Overflow";oa.Item=OL;oa.RESPONSIVE=_L;oa.INVALIDATE=RL;var Vh=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,i=t.onMouseDown,a=t.onClick,l=t.children,s;return typeof r=="function"?s=r(o):s=r,c.createElement("span",{className:n,onMouseDown:function(f){f.preventDefault(),i&&i(f)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},s!==void 0?s:c.createElement("span",{className:te(n.split(/\s+/).map(function(d){return"".concat(d,"-icon")}))},l))},hJ=function(t,n){var r,o,i=t.prefixCls,a=t.id,l=t.inputElement,s=t.disabled,d=t.tabIndex,f=t.autoFocus,m=t.autoComplete,h=t.editable,g=t.activeDescendantId,v=t.value,C=t.maxLength,S=t.onKeyDown,y=t.onMouseDown,x=t.onChange,E=t.onPaste,w=t.onCompositionStart,I=t.onCompositionEnd,O=t.open,_=t.attrs,R=l||c.createElement("input",null),M=R,P=M.ref,D=M.props,N=D.onKeyDown,T=D.onChange,L=D.onMouseDown,z=D.onCompositionStart,F=D.onCompositionEnd,V=D.style;return"maxLength"in R.props,R=c.cloneElement(R,H(H(H({type:"search"},D),{},{id:a,ref:Bo(n,P),disabled:s,tabIndex:d,autoComplete:m||"off",autoFocus:f,className:te("".concat(i,"-selection-search-input"),(r=R)===null||r===void 0||(o=r.props)===null||o===void 0?void 0:o.className),role:"combobox","aria-expanded":O,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":g},_),{},{value:h?v:"",maxLength:C,readOnly:!h,unselectable:h?null:"on",style:H(H({},V),{},{opacity:h?null:0}),onKeyDown:function(U){S(U),N&&N(U)},onMouseDown:function(U){y(U),L&&L(U)},onChange:function(U){x(U),T&&T(U)},onCompositionStart:function(U){w(U),z&&z(U)},onCompositionEnd:function(U){I(U),F&&F(U)},onPaste:E})),R},Dx=c.forwardRef(hJ);Dx.displayName="Input";function TL(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var gJ=typeof window<"u"&&window.document&&window.document.documentElement,vJ=gJ;function yJ(e){return e!=null}function B_(e){return["string","number"].includes(It(e))}function PL(e){var t=void 0;return e&&(B_(e.title)?t=e.title.toString():B_(e.label)&&(t=e.label.toString())),t}function bJ(e,t){vJ?c.useLayoutEffect(e,t):c.useEffect(e,t)}function SJ(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var z_=function(t){t.preventDefault(),t.stopPropagation()},CJ=function(t){var n=t.id,r=t.prefixCls,o=t.values,i=t.open,a=t.searchValue,l=t.autoClearSearchValue,s=t.inputRef,d=t.placeholder,f=t.disabled,m=t.mode,h=t.showSearch,g=t.autoFocus,v=t.autoComplete,C=t.activeDescendantId,S=t.tabIndex,y=t.removeIcon,x=t.maxTagCount,E=t.maxTagTextLength,w=t.maxTagPlaceholder,I=w===void 0?function(ie){return"+ ".concat(ie.length," ...")}:w,O=t.tagRender,_=t.onToggleOpen,R=t.onRemove,M=t.onInputChange,P=t.onInputPaste,D=t.onInputKeyDown,N=t.onInputMouseDown,T=t.onInputCompositionStart,L=t.onInputCompositionEnd,z=c.useRef(null),F=c.useState(0),V=ue(F,2),j=V[0],U=V[1],G=c.useState(!1),W=ue(G,2),q=W[0],J=W[1],X="".concat(r,"-selection"),Y=i||m==="multiple"&&l===!1||m==="tags"?a:"",ne=m==="tags"||m==="multiple"&&l===!1||h&&(i||q);bJ(function(){U(z.current.scrollWidth)},[Y]);function le(ie,pe,fe,Oe,Se){return c.createElement("span",{className:te("".concat(X,"-item"),Q({},"".concat(X,"-item-disabled"),fe)),title:PL(ie)},c.createElement("span",{className:"".concat(X,"-item-content")},pe),Oe&&c.createElement(Vh,{className:"".concat(X,"-item-remove"),onMouseDown:z_,onClick:Se,customizeIcon:y},"×"))}function we(ie,pe,fe,Oe,Se){var de=function(be){z_(be),_(!i)};return c.createElement("span",{onMouseDown:de},O({label:pe,value:ie,disabled:fe,closable:Oe,onClose:Se}))}function Ie(ie){var pe=ie.disabled,fe=ie.label,Oe=ie.value,Se=!f&&!pe,de=fe;if(typeof E=="number"&&(typeof fe=="string"||typeof fe=="number")){var Re=String(de);Re.length>E&&(de="".concat(Re.slice(0,E),"..."))}var be=function(Qe){Qe&&Qe.stopPropagation(),R(ie)};return typeof O=="function"?we(Oe,de,pe,Se,be):le(ie,de,pe,Se,be)}function Ce(ie){var pe=typeof I=="function"?I(ie):I;return le({title:pe},pe,!1)}var ce=c.createElement("div",{className:"".concat(X,"-search"),style:{width:j},onFocus:function(){J(!0)},onBlur:function(){J(!1)}},c.createElement(Dx,{ref:s,open:i,prefixCls:r,id:n,inputElement:null,disabled:f,autoFocus:g,autoComplete:v,editable:ne,activeDescendantId:C,value:Y,onKeyDown:D,onMouseDown:N,onChange:M,onPaste:P,onCompositionStart:T,onCompositionEnd:L,tabIndex:S,attrs:Ba(t,!0)}),c.createElement("span",{ref:z,className:"".concat(X,"-search-mirror"),"aria-hidden":!0},Y," ")),he=c.createElement(oa,{prefixCls:"".concat(X,"-overflow"),data:o,renderItem:Ie,renderRest:Ce,suffix:ce,itemKey:SJ,maxCount:x});return c.createElement(c.Fragment,null,he,!o.length&&!Y&&c.createElement("span",{className:"".concat(X,"-placeholder")},d))},xJ=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,i=t.inputRef,a=t.disabled,l=t.autoFocus,s=t.autoComplete,d=t.activeDescendantId,f=t.mode,m=t.open,h=t.values,g=t.placeholder,v=t.tabIndex,C=t.showSearch,S=t.searchValue,y=t.activeValue,x=t.maxLength,E=t.onInputKeyDown,w=t.onInputMouseDown,I=t.onInputChange,O=t.onInputPaste,_=t.onInputCompositionStart,R=t.onInputCompositionEnd,M=t.title,P=c.useState(!1),D=ue(P,2),N=D[0],T=D[1],L=f==="combobox",z=L||C,F=h[0],V=S||"";L&&y&&!N&&(V=y),c.useEffect(function(){L&&T(!1)},[L,y]);var j=f!=="combobox"&&!m&&!C?!1:!!V,U=M===void 0?PL(F):M,G=function(){if(F)return null;var q=j?{visibility:"hidden"}:void 0;return c.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:q},g)};return c.createElement(c.Fragment,null,c.createElement("span",{className:"".concat(r,"-selection-search")},c.createElement(Dx,{ref:i,prefixCls:r,id:o,open:m,inputElement:n,disabled:a,autoFocus:l,autoComplete:s,editable:z,activeDescendantId:d,value:V,onKeyDown:E,onMouseDown:w,onChange:function(q){T(!0),I(q)},onPaste:O,onCompositionStart:_,onCompositionEnd:R,tabIndex:v,attrs:Ba(t,!0),maxLength:L?x:void 0})),!L&&F?c.createElement("span",{className:"".concat(r,"-selection-item"),title:U,style:j?{visibility:"hidden"}:void 0},F.label):null,G())};function EJ(e){return![De.ESC,De.SHIFT,De.BACKSPACE,De.TAB,De.WIN_KEY,De.ALT,De.META,De.WIN_KEY_RIGHT,De.CTRL,De.SEMICOLON,De.EQUALS,De.CAPS_LOCK,De.CONTEXT_MENU,De.F1,De.F2,De.F3,De.F4,De.F5,De.F6,De.F7,De.F8,De.F9,De.F10,De.F11,De.F12].includes(e)}var wJ=function(t,n){var r=c.useRef(null),o=c.useRef(!1),i=t.prefixCls,a=t.open,l=t.mode,s=t.showSearch,d=t.tokenWithEnter,f=t.autoClearSearchValue,m=t.onSearch,h=t.onSearchSubmit,g=t.onToggleOpen,v=t.onInputKeyDown,C=t.domRef;c.useImperativeHandle(n,function(){return{focus:function(){r.current.focus()},blur:function(){r.current.blur()}}});var S=$L(0),y=ue(S,2),x=y[0],E=y[1],w=function(V){var j=V.which;(j===De.UP||j===De.DOWN)&&V.preventDefault(),v&&v(V),j===De.ENTER&&l==="tags"&&!o.current&&!a&&(h==null||h(V.target.value)),EJ(j)&&g(!0)},I=function(){E(!0)},O=c.useRef(null),_=function(V){m(V,!0,o.current)!==!1&&g(!0)},R=function(){o.current=!0},M=function(V){o.current=!1,l!=="combobox"&&_(V.target.value)},P=function(V){var j=V.target.value;if(d&&O.current&&/[\r\n]/.test(O.current)){var U=O.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");j=j.replace(U,O.current)}O.current=null,_(j)},D=function(V){var j=V.clipboardData,U=j.getData("text");O.current=U},N=function(V){var j=V.target;if(j!==r.current){var U=document.body.style.msTouchAction!==void 0;U?setTimeout(function(){r.current.focus()}):r.current.focus()}},T=function(V){var j=x();V.target!==r.current&&!j&&l!=="combobox"&&V.preventDefault(),(l!=="combobox"&&(!s||!j)||!a)&&(a&&f!==!1&&m("",!0,!1),g())},L={inputRef:r,onInputKeyDown:w,onInputMouseDown:I,onInputChange:P,onInputPaste:D,onInputCompositionStart:R,onInputCompositionEnd:M},z=l==="multiple"||l==="tags"?c.createElement(CJ,je({},t,L)):c.createElement(xJ,je({},t,L));return c.createElement("div",{ref:C,className:"".concat(i,"-selector"),onClick:N,onMouseDown:T},z)},NL=c.forwardRef(wJ);NL.displayName="Selector";var H_=c.createContext(null);function j_(e){return e?Array.isArray(e)?e:[e]:[]}function IJ(e,t,n,r){return c.useMemo(function(){var o=j_(n??t),i=j_(r??t),a=new Set(o),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]},[e,t,n,r])}function $J(){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 OJ(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function cu(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 tl(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 RJ(e,t,n,r,o,i,a){var l=c.useState({ready:!1,offsetX:0,offsetY:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),s=ue(l,2),d=s[0],f=s[1],m=c.useRef(0),h=c.useMemo(function(){return t?gC(t):[]},[t]),g=c.useRef({}),v=function(){g.current={}};e||v();var C=so(function(){if(t&&n&&e){let Gn=function(to,lr){var Hr=P.x+to,vo=P.y+lr,zo=Hr+q,yo=vo+W,Ir=Math.max(Hr,Y.left),$r=Math.max(vo,Y.top),et=Math.min(zo,Y.right),Ge=Math.min(yo,Y.bottom);return Math.max(0,(et-Ir)*(Ge-$r))},eo=function(){$t=P.y+xe,tt=$t+W,lt=P.x+oe,_e=lt+q};var zr=Gn,Kn=eo,x=t,E=x.style.left,w=x.style.top,I=x.ownerDocument,O=Uf(x),_=H(H({},o[r]),i);x.style.left="0",x.style.top="0";var R;if(Array.isArray(n))R={x:n[0],y:n[1],width:0,height:0};else{var M=n.getBoundingClientRect();R={x:M.x,y:M.y,width:M.width,height:M.height}}var P=x.getBoundingClientRect(),D=O.getComputedStyle(x),N=D.width,T=D.height,L=I.documentElement,z=L.clientWidth,F=L.clientHeight,V=L.scrollWidth,j=L.scrollHeight,U=L.scrollTop,G=L.scrollLeft,W=P.height,q=P.width,J=R.height,X=R.width,Y=_.htmlRegion==="scroll"?{left:-G,top:-U,right:V-G,bottom:j-U}:{left:0,top:0,right:z,bottom:F};Y=_J(Y,h),x.style.left=E,x.style.top=w;var ne=Uh(Math.round(q/parseFloat(N)*1e3)/1e3),le=Uh(Math.round(W/parseFloat(T)*1e3)/1e3);if(ne===0||le===0||Th(n)&&!Hf(n))return;var we=_.offset,Ie=_.targetOffset,Ce=we||[],ce=ue(Ce,2),he=ce[0],ie=he===void 0?0:he,pe=ce[1],fe=pe===void 0?0:pe,Oe=Ie||[],Se=ue(Oe,2),de=Se[0],Re=de===void 0?0:de,be=Se[1],Xe=be===void 0?0:be;R.x+=Re,R.y+=Xe;var Qe=_.points||[],ft=ue(Qe,2),ct=ft[0],ut=ft[1],dt=U_(ut),He=U_(ct),Je=cu(R,dt),ee=cu(P,He),re=H({},_),oe=Je.x-ee.x+ie,xe=Je.y-ee.y+fe,ge=Gn(oe,xe),Ee=cu(R,["t","l"]),ke=cu(P,["t","l"]),Ye=cu(R,["b","r"]),Fe=cu(P,["b","r"]),ot=_.overflow||{},Ae=ot.adjustX,Ke=ot.adjustY,Ue=ot.shiftX,ze=ot.shiftY,at=function(lr){return typeof lr=="boolean"?lr:lr>=0},$t,tt,lt,_e;eo();var Ne=at(Ke),Te=He[0]===dt[0];if(Ne&&He[0]==="t"&&(tt>Y.bottom||g.current.bt)){var We=xe;Te?We-=W-J:We=Ee.y-Fe.y-fe,Gn(oe,We)>=ge?(g.current.bt=!0,xe=We,re.points=[tl(He,0),tl(dt,0)]):g.current.bt=!1}if(Ne&&He[0]==="b"&&($t=ge?(g.current.tb=!0,xe=qe,re.points=[tl(He,0),tl(dt,0)]):g.current.tb=!1}var ht=at(Ae),en=He[1]===dt[1];if(ht&&He[1]==="l"&&(_e>Y.right||g.current.rl)){var tn=oe;en?tn-=q-X:tn=Ee.x-Fe.x-ie,Gn(tn,xe)>=ge?(g.current.rl=!0,oe=tn,re.points=[tl(He,1),tl(dt,1)]):g.current.rl=!1}if(ht&&He[1]==="r"&&(lt=ge?(g.current.lr=!0,oe=Rn,re.points=[tl(He,1),tl(dt,1)]):g.current.lr=!1}eo();var _t=Ue===!0?0:Ue;typeof _t=="number"&&(ltY.right&&(oe-=_e-Y.right,R.x>Y.right-_t&&(oe+=R.x-Y.right+_t)));var zt=ze===!0?0:ze;typeof zt=="number"&&($tY.bottom&&(xe-=tt-Y.bottom,R.y>Y.bottom-zt&&(xe+=R.y-Y.bottom+zt)));var Tn=P.x+oe,zn=Tn+q,wr=P.y+xe,gr=wr+W,Dn=R.x,Fr=Dn+X,ho=R.y,kn=ho+J,vr=Math.max(Tn,Dn),pi=Math.min(zn,Fr),go=(vr+pi)/2,Wn=go-Tn,Zr=Math.max(wr,ho),Jr=Math.min(gr,kn),mi=(Zr+Jr)/2,Br=mi-wr;a==null||a(t,re),f({ready:!0,offsetX:oe/ne,offsetY:xe/le,arrowX:Wn/ne,arrowY:Br/le,scaleX:ne,scaleY:le,align:re})}}),S=function(){m.current+=1;var E=m.current;Promise.resolve().then(function(){m.current===E&&C()})},y=function(){f(function(E){return H(H({},E),{},{ready:!1})})};return sn(y,[r]),sn(function(){e||y()},[e]),[d.ready,d.offsetX,d.offsetY,d.arrowX,d.arrowY,d.scaleX,d.scaleY,d.align,S]}function TJ(e,t,n,r){sn(function(){if(e&&t&&n){let m=function(){r()};var f=m,o=t,i=n,a=gC(o),l=gC(i),s=Uf(i),d=new Set([s].concat(Pe(a),Pe(l)));return d.forEach(function(h){h.addEventListener("scroll",m,{passive:!0})}),s.addEventListener("resize",m,{passive:!0}),r(),function(){d.forEach(function(h){h.removeEventListener("scroll",m),s.removeEventListener("resize",m)})}}},[e,t,n])}function PJ(e){var t=e.prefixCls,n=e.align,r=e.arrowX,o=r===void 0?0:r,i=e.arrowY,a=i===void 0?0:i,l=c.useRef();if(!n||!n.points)return null;var s={position:"absolute"};if(n.autoArrow!==!1){var d=n.points[0],f=n.points[1],m=d[0],h=d[1],g=f[0],v=f[1];m===g||!["t","b"].includes(m)?s.top=a:m==="t"?s.top=0:s.bottom=0,h===v||!["l","r"].includes(h)?s.left=o:h==="l"?s.left=0:s.right=0}return c.createElement("div",{ref:l,className:"".concat(t,"-arrow"),style:s})}function NJ(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?React.createElement(di,je({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var l=a.className;return React.createElement("div",{style:{zIndex:r},className:te("".concat(t,"-mask"),l)})}):null}var MJ=c.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),AJ=c.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,l=e.onVisibleChanged,s=e.open,d=e.keepDom,f=e.onClick,m=e.mask,h=e.arrow,g=e.align,v=e.arrowX,C=e.arrowY,S=e.motion,y=e.maskMotion,x=e.forceRender,E=e.getPopupContainer,w=e.autoDestroy,I=e.portal,O=e.zIndex,_=e.onMouseEnter,R=e.onMouseLeave,M=e.ready,P=e.offsetX,D=e.offsetY,N=e.onAlign,T=e.onPrepare,L=e.stretch,z=e.targetWidth,F=e.targetHeight,V=typeof n=="function"?n():n,j=s||d,U=(E==null?void 0:E.length)>0,G=c.useState(!E||!U),W=ue(G,2),q=W[0],J=W[1];if(sn(function(){!q&&U&&a&&J(!0)},[q,U,a]),!q)return null;var X=M||!s?{left:P,top:D}:{left:"-1000vw",top:"-1000vh"},Y={};return L&&(L.includes("height")&&F?Y.height=F:L.includes("minHeight")&&F&&(Y.minHeight=F),L.includes("width")&&z?Y.width=z:L.includes("minWidth")&&z&&(Y.minWidth=z)),s||(Y.pointerEvents="none"),c.createElement(I,{open:x||j,getContainer:E&&function(){return E(a)},autoDestroy:w},c.createElement(NJ,{prefixCls:o,open:s,zIndex:O,mask:m,motion:y}),c.createElement(ki,{onResize:N,disabled:!s},function(ne){return c.createElement(di,je({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:x,leavedClassName:"".concat(o,"-hidden")},S,{onAppearPrepare:T,onEnterPrepare:T,visible:s,onVisibleChanged:function(we){var Ie;S==null||(Ie=S.onVisibleChanged)===null||Ie===void 0||Ie.call(S,we),l(we)}}),function(le,we){var Ie=le.className,Ce=le.style,ce=te(o,Ie,r);return c.createElement("div",{ref:Bo(ne,t,we),className:ce,style:H(H(H(H({},X),Y),Ce),{},{boxSizing:"border-box",zIndex:O},i),onMouseEnter:_,onMouseLeave:R,onClick:f},h&&c.createElement(PJ,{prefixCls:o,align:g,arrowX:v,arrowY:C}),c.createElement(MJ,{cache:!s},V))})}))}),LJ=c.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Bl(n),i=c.useCallback(function(l){ff(t,r?r(l):l)},[r]),a=ev(i,n.ref);return o?c.cloneElement(n,{ref:a}):n}),DJ=["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 kJ(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Px,t=c.forwardRef(function(n,r){var o=n.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=n.children,l=n.action,s=l===void 0?"hover":l,d=n.showAction,f=n.hideAction,m=n.popupVisible,h=n.defaultPopupVisible,g=n.onPopupVisibleChange,v=n.afterPopupVisibleChange,C=n.mouseEnterDelay,S=n.mouseLeaveDelay,y=S===void 0?.1:S,x=n.focusDelay,E=n.blurDelay,w=n.mask,I=n.maskClosable,O=I===void 0?!0:I,_=n.getPopupContainer,R=n.forceRender,M=n.autoDestroy,P=n.destroyPopupOnHide,D=n.popup,N=n.popupClassName,T=n.popupStyle,L=n.popupPlacement,z=n.builtinPlacements,F=z===void 0?{}:z,V=n.popupAlign,j=n.zIndex,U=n.stretch,G=n.getPopupClassNameFromAlign,W=n.alignPoint,q=n.onPopupClick,J=n.onPopupAlign,X=n.arrow,Y=n.popupMotion,ne=n.maskMotion,le=n.popupTransitionName,we=n.popupAnimation,Ie=n.maskTransitionName,Ce=n.maskAnimation,ce=n.className,he=n.getTriggerDOMNode,ie=vt(n,DJ),pe=M||P||!1,fe=c.useState(!1),Oe=ue(fe,2),Se=Oe[0],de=Oe[1];sn(function(){de(dv())},[]);var Re=c.useRef({}),be=c.useContext(H_),Xe=c.useMemo(function(){return{registerSubPopup:function(Ot,Jt){Re.current[Ot]=Jt,be==null||be.registerSubPopup(Ot,Jt)}}},[be]),Qe=aL(),ft=c.useState(null),ct=ue(ft,2),ut=ct[0],dt=ct[1],He=so(function(gt){Th(gt)&&ut!==gt&&dt(gt),be==null||be.registerSubPopup(Qe,gt)}),Je=c.useState(null),ee=ue(Je,2),re=ee[0],oe=ee[1],xe=so(function(gt){Th(gt)&&re!==gt&&oe(gt)}),ge=c.Children.only(a),Ee=(ge==null?void 0:ge.props)||{},ke={},Ye=so(function(gt){var Ot,Jt,pn=re;return(pn==null?void 0:pn.contains(gt))||(pn==null||(Ot=pn.getRootNode())===null||Ot===void 0?void 0:Ot.host)===gt||gt===pn||(ut==null?void 0:ut.contains(gt))||(ut==null||(Jt=ut.getRootNode())===null||Jt===void 0?void 0:Jt.host)===gt||gt===ut||Object.values(Re.current).some(function(gn){return(gn==null?void 0:gn.contains(gt))||gt===gn})}),Fe=V_(i,Y,we,le),ot=V_(i,ne,Ce,Ie),Ae=c.useState(h||!1),Ke=ue(Ae,2),Ue=Ke[0],ze=Ke[1],at=m??Ue,$t=so(function(gt){m===void 0&&ze(gt)});sn(function(){ze(m||!1)},[m]);var tt=c.useRef(at);tt.current=at;var lt=so(function(gt){at!==gt&&($t(gt),g==null||g(gt))}),_e=c.useRef(),Ne=function(){clearTimeout(_e.current)},Te=function(Ot){var Jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ne(),Jt===0?lt(Ot):_e.current=setTimeout(function(){lt(Ot)},Jt*1e3)};c.useEffect(function(){return Ne},[]);var We=c.useState(!1),qe=ue(We,2),ht=qe[0],en=qe[1],tn=c.useRef(!0);sn(function(){(!tn.current||at)&&en(!0),tn.current=!0},[at]);var Rn=c.useState(null),_t=ue(Rn,2),zt=_t[0],Tn=_t[1],zn=c.useState([0,0]),wr=ue(zn,2),gr=wr[0],Dn=wr[1],Fr=function(Ot){Dn([Ot.clientX,Ot.clientY])},ho=RJ(at,ut,W?gr:re,L,F,V,J),kn=ue(ho,9),vr=kn[0],pi=kn[1],go=kn[2],Wn=kn[3],Zr=kn[4],Jr=kn[5],mi=kn[6],Br=kn[7],zr=kn[8],Kn=so(function(){ht||zr()});TJ(at,re,ut,Kn),sn(function(){Kn()},[gr]),sn(function(){at&&!(F!=null&&F[L])&&Kn()},[JSON.stringify(V)]);var Gn=c.useMemo(function(){var gt=OJ(F,i,Br,W);return te(gt,G==null?void 0:G(Br))},[Br,G,F,i,W]);c.useImperativeHandle(r,function(){return{forceAlign:Kn}});var eo=function(Ot){en(!1),zr(),v==null||v(Ot)},to=function(){return new Promise(function(Ot){Tn(function(){return Ot})})};sn(function(){zt&&(zr(),zt(),Tn(null))},[zt]);var lr=c.useState(0),Hr=ue(lr,2),vo=Hr[0],zo=Hr[1],yo=c.useState(0),Ir=ue(yo,2),$r=Ir[0],et=Ir[1],Ge=function(Ot,Jt){if(Kn(),U){var pn=Jt.getBoundingClientRect();zo(pn.width),et(pn.height)}},Ct=IJ(Se,s,d,f),rt=ue(Ct,2),nt=rt[0],Nt=rt[1],Gt=function(Ot,Jt,pn,gn){ke[Ot]=function(Vs){var ua;gn==null||gn(Vs),Te(Jt,pn);for(var Nc=arguments.length,tp=new Array(Nc>1?Nc-1:0),Us=1;Us1?Jt-1:0),gn=1;gn1?Jt-1:0),gn=1;gn1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=LL(n,!1),a=i.label,l=i.value,s=i.options;function d(f,m){f.forEach(function(h){var g=h[a];if(m||!(s in h)){var v=h[l];o.push({key:W_(h,o.length),groupOption:m,data:h,label:g,value:v})}else{var C=g;C===void 0&&r&&(C=h.label),o.push({key:W_(h,o.length),group:!0,data:h,label:C}),d(h[s],!0)}})}return d(e,!1),o}function vC(e){var t=H({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return wn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function jJ(e,t){if(!t||!t.length)return null;var n=!1;function r(i,a){var l=vA(a),s=l[0],d=l.slice(1);if(!s)return[i];var f=i.split(s);return n=n||f.length>1,f.reduce(function(m,h){return[].concat(Pe(m),Pe(r(h,d)))},[]).filter(function(m){return m})}var o=r(e,t);return n?o:null}var VJ=["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","showArrow","inputIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],UJ=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function yC(e){return e==="tags"||e==="multiple"}var WJ=c.forwardRef(function(e,t){var n,r,o=e.id,i=e.prefixCls,a=e.className,l=e.showSearch,s=e.tagRender,d=e.direction,f=e.omitDomProps,m=e.displayValues,h=e.onDisplayValuesChange,g=e.emptyOptions,v=e.notFoundContent,C=v===void 0?"Not Found":v,S=e.onClear,y=e.mode,x=e.disabled,E=e.loading,w=e.getInputElement,I=e.getRawInputElement,O=e.open,_=e.defaultOpen,R=e.onDropdownVisibleChange,M=e.activeValue,P=e.onActiveValueChange,D=e.activeDescendantId,N=e.searchValue,T=e.autoClearSearchValue,L=e.onSearch,z=e.onSearchSplit,F=e.tokenSeparators,V=e.allowClear,j=e.showArrow,U=e.inputIcon,G=e.clearIcon,W=e.OptionList,q=e.animation,J=e.transitionName,X=e.dropdownStyle,Y=e.dropdownClassName,ne=e.dropdownMatchSelectWidth,le=e.dropdownRender,we=e.dropdownAlign,Ie=e.placement,Ce=e.builtinPlacements,ce=e.getPopupContainer,he=e.showAction,ie=he===void 0?[]:he,pe=e.onFocus,fe=e.onBlur,Oe=e.onKeyUp,Se=e.onKeyDown,de=e.onMouseDown,Re=vt(e,VJ),be=yC(y),Xe=(l!==void 0?l:be)||y==="combobox",Qe=H({},Re);UJ.forEach(function(et){delete Qe[et]}),f==null||f.forEach(function(et){delete Qe[et]});var ft=c.useState(!1),ct=ue(ft,2),ut=ct[0],dt=ct[1];c.useEffect(function(){dt(dv())},[]);var He=c.useRef(null),Je=c.useRef(null),ee=c.useRef(null),re=c.useRef(null),oe=c.useRef(null),xe=nJ(),ge=ue(xe,3),Ee=ge[0],ke=ge[1],Ye=ge[2];c.useImperativeHandle(t,function(){var et,Ge;return{focus:(et=re.current)===null||et===void 0?void 0:et.focus,blur:(Ge=re.current)===null||Ge===void 0?void 0:Ge.blur,scrollTo:function(rt){var nt;return(nt=oe.current)===null||nt===void 0?void 0:nt.scrollTo(rt)}}});var Fe=c.useMemo(function(){var et;if(y!=="combobox")return N;var Ge=(et=m[0])===null||et===void 0?void 0:et.value;return typeof Ge=="string"||typeof Ge=="number"?String(Ge):""},[N,y,m]),ot=y==="combobox"&&typeof w=="function"&&w()||null,Ae=typeof I=="function"&&I(),Ke=ev(Je,Ae==null||(n=Ae.props)===null||n===void 0?void 0:n.ref),Ue=c.useState(!1),ze=ue(Ue,2),at=ze[0],$t=ze[1];sn(function(){$t(!0)},[]);var tt=Lr(!1,{defaultValue:_,value:O}),lt=ue(tt,2),_e=lt[0],Ne=lt[1],Te=at?_e:!1,We=!C&&g;(x||We&&Te&&y==="combobox")&&(Te=!1);var qe=We?!1:Te,ht=c.useCallback(function(et){var Ge=et!==void 0?et:!Te;x||(Ne(Ge),Te!==Ge&&(R==null||R(Ge)))},[x,Te,Ne,R]),en=c.useMemo(function(){return(F||[]).some(function(et){return[` -`,`\r -`].includes(et)})},[F]),tn=function(Ge,Ct,rt){var nt=!0,Nt=Ge;P==null||P(null);var Gt=rt?null:jJ(Ge,F);return y!=="combobox"&&Gt&&(Nt="",z==null||z(Gt),ht(!1),nt=!1),L&&Fe!==Nt&&L(Nt,{source:Ct?"typing":"effect"}),nt},Rn=function(Ge){!Ge||!Ge.trim()||L(Ge,{source:"submit"})};c.useEffect(function(){!Te&&!be&&y!=="combobox"&&tn("",!1,!1)},[Te]),c.useEffect(function(){_e&&x&&Ne(!1),x&&ke(!1)},[x]);var _t=$L(),zt=ue(_t,2),Tn=zt[0],zn=zt[1],wr=function(Ge){var Ct=Tn(),rt=Ge.which;if(rt===De.ENTER&&(y!=="combobox"&&Ge.preventDefault(),Te||ht(!0)),zn(!!Fe),rt===De.BACKSPACE&&!Ct&&be&&!Fe&&m.length){for(var nt=Pe(m),Nt=null,Gt=nt.length-1;Gt>=0;Gt-=1){var Pn=nt[Gt];if(!Pn.disabled){nt.splice(Gt,1),Nt=Pn;break}}Nt&&h(nt,{type:"remove",values:[Nt]})}for(var sr=arguments.length,jr=new Array(sr>1?sr-1:0),ur=1;ur1?Ct-1:0),nt=1;nt1?Gt-1:0),sr=1;sr1&&arguments[1]!==void 0?arguments[1]:!1;return ai(e).map(function(n,r){if(!c.isValidElement(n)||!n.type)return null;var o=n,i=o.type.isSelectOptGroup,a=o.key,l=o.props,s=l.children,d=vt(l,ZJ);return t||!i?JJ(n):H(H({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},d),{},{options:DL(s)})}).filter(function(n){return n})}function eee(e,t,n,r,o){return c.useMemo(function(){var i=e,a=!e;a&&(i=DL(t));var l=new Map,s=new Map,d=function(h,g,v){v&&typeof v=="string"&&h.set(g[v],g)};function f(m){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g=0;gs},r}return er(n,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(o){o.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var o=this.state,i=o.dragging,a=o.visible,l=this.props.prefixCls,s=this.getSpinHeight(),d=this.getTop(),f=this.showScroll(),m=f&&a;return c.createElement("div",{ref:this.scrollbarRef,className:te("".concat(l,"-scrollbar"),Q({},"".concat(l,"-scrollbar-show"),f)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:m?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},c.createElement("div",{ref:this.thumbRef,className:te("".concat(l,"-scrollbar-thumb"),Q({},"".concat(l,"-scrollbar-thumb-moving"),i)),style:{width:"100%",height:s,top:d,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),n}(c.Component);function ree(e){var t=e.children,n=e.setRef,r=c.useCallback(function(o){n(o)},[]);return c.cloneElement(t,{ref:r})}function oee(e,t,n,r,o,i){var a=i.getKey;return e.slice(t,n+1).map(function(l,s){var d=t+s,f=o(l,d,{}),m=a(l);return c.createElement(ree,{key:m,setRef:function(g){return r(l,g)}},f)})}var iee=function(){function e(){Jn(this,e),this.maps=void 0,this.maps=Object.create(null)}return er(e,[{key:"set",value:function(n,r){this.maps[n]=r}},{key:"get",value:function(n){return this.maps[n]}}]),e}();function aee(e,t,n){var r=c.useState(0),o=ue(r,2),i=o[0],a=o[1],l=c.useRef(new Map),s=c.useRef(new iee),d=c.useRef();function f(){Zt.cancel(d.current)}function m(){f(),d.current=Zt(function(){l.current.forEach(function(g,v){if(g&&g.offsetParent){var C=pf(g),S=C.offsetHeight;s.current.get(v)!==S&&s.current.set(v,C.offsetHeight)}}),a(function(g){return g+1})})}function h(g,v){var C=e(g),S=l.current.get(C);v?(l.current.set(C,v),m()):l.current.delete(C),!S!=!v&&(v?t==null||t(g):n==null||n(g))}return c.useEffect(function(){return f},[]),[h,m,s.current,i]}function lee(e,t,n,r,o,i,a,l){var s=c.useRef();return function(d){if(d==null){l();return}if(Zt.cancel(s.current),typeof d=="number")a(d);else if(d&&It(d)==="object"){var f,m=d.align;"index"in d?f=d.index:f=t.findIndex(function(C){return o(C)===d.key});var h=d.offset,g=h===void 0?0:h,v=function C(S,y){if(!(S<0||!e.current)){var x=e.current.clientHeight,E=!1,w=y;if(x){for(var I=y||m,O=0,_=0,R=0,M=Math.min(t.length,f),P=0;P<=M;P+=1){var D=o(t[P]);_=O;var N=n.get(D);R=_+(N===void 0?r:N),O=R,P===f&&N===void 0&&(E=!0)}var T=null;switch(I){case"top":T=_-g;break;case"bottom":T=R-x+g;break;default:{var L=e.current.scrollTop,z=L+x;_z&&(w="bottom")}}T!==null&&T!==e.current.scrollTop&&a(T)}s.current=Zt(function(){E&&i(),C(S-1,w)},2)}};v(3)}}}function see(e,t,n){var r=e.length,o=t.length,i,a;if(r===0&&o===0)return null;r"u"?"undefined":It(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const FL=function(e,t){var n=c.useRef(!1),r=c.useRef(null);function o(){clearTimeout(r.current),n.current=!0,r.current=setTimeout(function(){n.current=!1},50)}var i=c.useRef({top:e,bottom:t});return i.current.top=e,i.current.bottom=t,function(a){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=a<0&&i.current.top||a>0&&i.current.bottom;return l&&s?(clearTimeout(r.current),n.current=!1):(!s||n.current)&&o(),!n.current&&s}};function dee(e,t,n,r){var o=c.useRef(0),i=c.useRef(null),a=c.useRef(null),l=c.useRef(!1),s=FL(t,n);function d(m){if(e){Zt.cancel(i.current);var h=m.deltaY;o.current+=h,a.current=h,!s(h)&&(cee||m.preventDefault(),i.current=Zt(function(){var g=l.current?10:1;r(o.current*g),o.current=0}))}}function f(m){e&&(l.current=m.detail===a.current)}return[d,f]}var fee=14/15;function pee(e,t,n){var r=c.useRef(!1),o=c.useRef(0),i=c.useRef(null),a=c.useRef(null),l,s=function(h){if(r.current){var g=Math.ceil(h.touches[0].pageY),v=o.current-g;o.current=g,n(v)&&h.preventDefault(),clearInterval(a.current),a.current=setInterval(function(){v*=fee,(!n(v,!0)||Math.abs(v)<=.1)&&clearInterval(a.current)},16)}},d=function(){r.current=!1,l()},f=function(h){l(),h.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(h.touches[0].pageY),i.current=h.target,i.current.addEventListener("touchmove",s),i.current.addEventListener("touchend",d))};l=function(){i.current&&(i.current.removeEventListener("touchmove",s),i.current.removeEventListener("touchend",d))},sn(function(){return e&&t.current.addEventListener("touchstart",f),function(){var m;(m=t.current)===null||m===void 0||m.removeEventListener("touchstart",f),l(),clearInterval(a.current)}},[e])}var mee=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange","innerProps"],hee=[],gee={overflowY:"auto",overflowAnchor:"none"};function vee(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,i=e.height,a=e.itemHeight,l=e.fullHeight,s=l===void 0?!0:l,d=e.style,f=e.data,m=e.children,h=e.itemKey,g=e.virtual,v=e.component,C=v===void 0?"div":v,S=e.onScroll,y=e.onVisibleChange,x=e.innerProps,E=vt(e,mee),w=!!(g!==!1&&i&&a),I=w&&f&&a*f.length>i,O=c.useState(0),_=ue(O,2),R=_[0],M=_[1],P=c.useState(!1),D=ue(P,2),N=D[0],T=D[1],L=te(r,o),z=f||hee,F=c.useRef(),V=c.useRef(),j=c.useRef(),U=c.useCallback(function(ge){return typeof h=="function"?h(ge):ge==null?void 0:ge[h]},[h]),G={getKey:U};function W(ge){M(function(Ee){var ke;typeof ge=="function"?ke=ge(Ee):ke=ge;var Ye=be(ke);return F.current.scrollTop=Ye,Ye})}var q=c.useRef({start:0,end:z.length}),J=c.useRef(),X=uee(z,U),Y=ue(X,1),ne=Y[0];J.current=ne;var le=aee(U,null,null),we=ue(le,4),Ie=we[0],Ce=we[1],ce=we[2],he=we[3],ie=c.useMemo(function(){if(!w)return{scrollHeight:void 0,start:0,end:z.length-1,offset:void 0};if(!I){var ge;return{scrollHeight:((ge=V.current)===null||ge===void 0?void 0:ge.offsetHeight)||0,start:0,end:z.length-1,offset:void 0}}for(var Ee=0,ke,Ye,Fe,ot=z.length,Ae=0;Ae=R&&ke===void 0&&(ke=Ae,Ye=Ee),at>R+i&&Fe===void 0&&(Fe=Ae),Ee=at}return ke===void 0&&(ke=0,Ye=0,Fe=Math.ceil(i/a)),Fe===void 0&&(Fe=z.length-1),Fe=Math.min(Fe+1,z.length),{scrollHeight:Ee,start:ke,end:Fe,offset:Ye}},[I,w,R,z,he,i]),pe=ie.scrollHeight,fe=ie.start,Oe=ie.end,Se=ie.offset;q.current.start=fe,q.current.end=Oe;var de=pe-i,Re=c.useRef(de);Re.current=de;function be(ge){var Ee=ge;return Number.isNaN(Re.current)||(Ee=Math.min(Ee,Re.current)),Ee=Math.max(Ee,0),Ee}var Xe=R<=0,Qe=R>=de,ft=FL(Xe,Qe);function ct(ge){var Ee=ge;W(Ee)}function ut(ge){var Ee=ge.currentTarget.scrollTop;Ee!==R&&W(Ee),S==null||S(ge)}var dt=dee(w,Xe,Qe,function(ge){W(function(Ee){var ke=Ee+ge;return ke})}),He=ue(dt,2),Je=He[0],ee=He[1];pee(w,F,function(ge,Ee){return ft(ge,Ee)?!1:(Je({preventDefault:function(){},deltaY:ge}),!0)}),sn(function(){function ge(Ee){w&&Ee.preventDefault()}return F.current.addEventListener("wheel",Je),F.current.addEventListener("DOMMouseScroll",ee),F.current.addEventListener("MozMousePixelScroll",ge),function(){F.current&&(F.current.removeEventListener("wheel",Je),F.current.removeEventListener("DOMMouseScroll",ee),F.current.removeEventListener("MozMousePixelScroll",ge))}},[w]);var re=lee(F,z,ce,a,U,Ce,W,function(){var ge;(ge=j.current)===null||ge===void 0||ge.delayHidden()});c.useImperativeHandle(t,function(){return{scrollTo:re}}),sn(function(){if(y){var ge=z.slice(fe,Oe+1);y(ge,z)}},[fe,Oe,z]);var oe=oee(z,fe,Oe,Ie,m,G),xe=null;return i&&(xe=H(Q({},s?"height":"maxHeight",i),gee),w&&(xe.overflowY="hidden",N&&(xe.pointerEvents="none"))),c.createElement("div",je({style:H(H({},d),{},{position:"relative"}),className:L},E),c.createElement(C,{className:"".concat(r,"-holder"),style:xe,ref:F,onScroll:ut},c.createElement(kL,{prefixCls:r,height:pe,offset:Se,onInnerResize:Ce,ref:V,innerProps:x},oe)),w&&c.createElement(nee,{ref:j,prefixCls:r,scrollTop:R,height:i,scrollHeight:pe,count:z.length,onScroll:ct,onStartMove:function(){T(!0)},onStopMove:function(){T(!1)}}))}var Bx=c.forwardRef(vee);Bx.displayName="List";var BL=c.createContext(null);function yee(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var bee=["disabled","title","children","style","className"];function Y_(e){return typeof e=="string"||typeof e=="number"}var See=function(t,n){var r=tJ(),o=r.prefixCls,i=r.id,a=r.open,l=r.multiple,s=r.mode,d=r.searchValue,f=r.toggleOpen,m=r.notFoundContent,h=r.onPopupScroll,g=c.useContext(BL),v=g.flattenOptions,C=g.onActiveValue,S=g.defaultActiveFirstOption,y=g.onSelect,x=g.menuItemSelectedIcon,E=g.rawValues,w=g.fieldNames,I=g.virtual,O=g.listHeight,_=g.listItemHeight,R="".concat(o,"-item"),M=Bs(function(){return v},[a,v],function(ne,le){return le[0]&&ne[1]!==le[1]}),P=c.useRef(null),D=function(le){le.preventDefault()},N=function(le){P.current&&P.current.scrollTo(typeof le=="number"?{index:le}:le)},T=function(le){for(var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Ie=M.length,Ce=0;Ce1&&arguments[1]!==void 0?arguments[1]:!1;V(le);var Ie={source:we?"keyboard":"mouse"},Ce=M[le];if(!Ce){C(null,-1,Ie);return}C(Ce.value,le,Ie)};c.useEffect(function(){j(S!==!1?T(0):-1)},[M.length,d]);var U=c.useCallback(function(ne){return E.has(ne)&&s!=="combobox"},[s,Pe(E).toString(),E.size]);c.useEffect(function(){var ne=setTimeout(function(){if(!l&&a&&E.size===1){var we=Array.from(E)[0],Ie=M.findIndex(function(Ce){var ce=Ce.data;return ce.value===we});Ie!==-1&&(j(Ie),N(Ie))}});if(a){var le;(le=P.current)===null||le===void 0||le.scrollTo(void 0)}return function(){return clearTimeout(ne)}},[a,d,v.length]);var G=function(le){le!==void 0&&y(le,{selected:!E.has(le)}),l||f(!1)};if(c.useImperativeHandle(n,function(){return{onKeyDown:function(le){var we=le.which,Ie=le.ctrlKey;switch(we){case De.N:case De.P:case De.UP:case De.DOWN:{var Ce=0;if(we===De.UP?Ce=-1:we===De.DOWN?Ce=1:yee()&&Ie&&(we===De.N?Ce=1:we===De.P&&(Ce=-1)),Ce!==0){var ce=T(F+Ce,Ce);N(ce),j(ce,!0)}break}case De.ENTER:{var he=M[F];he&&!he.data.disabled?G(he.value):G(void 0),a&&le.preventDefault();break}case De.ESC:f(!1),a&&le.stopPropagation()}},onKeyUp:function(){},scrollTo:function(le){N(le)}}}),M.length===0)return c.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(R,"-empty"),onMouseDown:D},m);var W=Object.keys(w).map(function(ne){return w[ne]}),q=function(le){return le.label};function J(ne,le){var we=ne.group;return{role:we?"presentation":"option",id:"".concat(i,"_list_").concat(le)}}var X=function(le){var we=M[le];if(!we)return null;var Ie=we.data||{},Ce=Ie.value,ce=we.group,he=Ba(Ie,!0),ie=q(we);return we?c.createElement("div",je({"aria-label":typeof ie=="string"&&!ce?ie:null},he,{key:le},J(we,le),{"aria-selected":U(Ce)}),Ce):null},Y={role:"listbox",id:"".concat(i,"_list")};return c.createElement(c.Fragment,null,I&&c.createElement("div",je({},Y,{style:{height:0,width:0,overflow:"hidden"}}),X(F-1),X(F),X(F+1)),c.createElement(Bx,{itemKey:"key",ref:P,data:M,height:O,itemHeight:_,fullHeight:!1,onMouseDown:D,onScroll:h,virtual:I,innerProps:I?null:Y},function(ne,le){var we,Ie=ne.group,Ce=ne.groupOption,ce=ne.data,he=ne.label,ie=ne.value,pe=ce.key;if(Ie){var fe,Oe=(fe=ce.title)!==null&&fe!==void 0?fe:Y_(he)?he.toString():void 0;return c.createElement("div",{className:te(R,"".concat(R,"-group")),title:Oe},he!==void 0?he:pe)}var Se=ce.disabled,de=ce.title;ce.children;var Re=ce.style,be=ce.className,Xe=vt(ce,bee),Qe=kr(Xe,W),ft=U(ie),ct="".concat(R,"-option"),ut=te(R,ct,be,(we={},Q(we,"".concat(ct,"-grouped"),Ce),Q(we,"".concat(ct,"-active"),F===le&&!Se),Q(we,"".concat(ct,"-disabled"),Se),Q(we,"".concat(ct,"-selected"),ft),we)),dt=q(ne),He=!x||typeof x=="function"||ft,Je=typeof dt=="number"?dt:dt||ie,ee=Y_(Je)?Je.toString():void 0;return de!==void 0&&(ee=de),c.createElement("div",je({},Ba(Qe),I?{}:J(ne,le),{"aria-selected":ft,className:ut,title:ee,onMouseMove:function(){F===le||Se||j(le)},onClick:function(){Se||G(ie)},style:Re}),c.createElement("div",{className:"".concat(ct,"-content")},Je),c.isValidElement(x)||ft,He&&c.createElement(Vh,{className:"".concat(R,"-option-state"),customizeIcon:x,customizeIconProps:{isSelected:ft}},ft?"✓":null))}))},zL=c.forwardRef(See);zL.displayName="OptionList";var Cee=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],xee=["inputValue"];function Eee(e){return!e||It(e)!=="object"}var wee=c.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,i=o===void 0?"rc-select":o,a=e.backfill,l=e.fieldNames,s=e.inputValue,d=e.searchValue,f=e.onSearch,m=e.autoClearSearchValue,h=m===void 0?!0:m,g=e.onSelect,v=e.onDeselect,C=e.dropdownMatchSelectWidth,S=C===void 0?!0:C,y=e.filterOption,x=e.filterSort,E=e.optionFilterProp,w=e.optionLabelProp,I=e.options,O=e.children,_=e.defaultActiveFirstOption,R=e.menuItemSelectedIcon,M=e.virtual,P=e.listHeight,D=P===void 0?200:P,N=e.listItemHeight,T=N===void 0?20:N,L=e.value,z=e.defaultValue,F=e.labelInValue,V=e.onChange,j=vt(e,Cee),U=qJ(n),G=yC(r),W=!!(!I&&O),q=c.useMemo(function(){return y===void 0&&r==="combobox"?!1:y},[y,r]),J=c.useMemo(function(){return LL(l,W)},[JSON.stringify(l),W]),X=Lr("",{value:d!==void 0?d:s,postState:function(Ne){return Ne||""}}),Y=ue(X,2),ne=Y[0],le=Y[1],we=eee(I,O,J,E,w),Ie=we.valueOptions,Ce=we.labelOptions,ce=we.options,he=c.useCallback(function(_e){var Ne=TL(_e);return Ne.map(function(Te){var We,qe,ht,en,tn;if(Eee(Te))We=Te;else{var Rn;ht=Te.key,qe=Te.label,We=(Rn=Te.value)!==null&&Rn!==void 0?Rn:ht}var _t=Ie.get(We);if(_t){var zt;qe===void 0&&(qe=_t==null?void 0:_t[w||J.label]),ht===void 0&&(ht=(zt=_t==null?void 0:_t.key)!==null&&zt!==void 0?zt:We),en=_t==null?void 0:_t.disabled,tn=_t==null?void 0:_t.title}return{label:qe,value:We,key:ht,disabled:en,title:tn}})},[J,w,Ie]),ie=Lr(z,{value:L}),pe=ue(ie,2),fe=pe[0],Oe=pe[1],Se=c.useMemo(function(){var _e,Ne=he(fe);return r==="combobox"&&!((_e=Ne[0])!==null&&_e!==void 0&&_e.value)?[]:Ne},[fe,he,r]),de=KJ(Se,Ie),Re=ue(de,2),be=Re[0],Xe=Re[1],Qe=c.useMemo(function(){if(!r&&be.length===1){var _e=be[0];if(_e.value===null&&(_e.label===null||_e.label===void 0))return[]}return be.map(function(Ne){var Te;return H(H({},Ne),{},{label:(Te=Ne.label)!==null&&Te!==void 0?Te:Ne.value})})},[r,be]),ft=c.useMemo(function(){return new Set(be.map(function(_e){return _e.value}))},[be]);c.useEffect(function(){if(r==="combobox"){var _e,Ne=(_e=be[0])===null||_e===void 0?void 0:_e.value;le(yJ(Ne)?String(Ne):"")}},[be]);var ct=G_(function(_e,Ne){var Te,We=Ne??_e;return Te={},Q(Te,J.value,_e),Q(Te,J.label,We),Te}),ut=c.useMemo(function(){if(r!=="tags")return ce;var _e=Pe(ce),Ne=function(We){return Ie.has(We)};return Pe(be).sort(function(Te,We){return Te.value2&&arguments[2]!==void 0?arguments[2]:{},We=Te.source,qe=We===void 0?"keyboard":We;ot(Ne),a&&r==="combobox"&&_e!==null&&qe==="keyboard"&&Ee(String(_e))},[a,r]),Ue=function(Ne,Te,We){var qe=function(){var gr,Dn=Xe(Ne);return[F?{label:Dn==null?void 0:Dn[J.label],value:Ne,key:(gr=Dn==null?void 0:Dn.key)!==null&&gr!==void 0?gr:Ne}:Ne,vC(Dn)]};if(Te&&g){var ht=qe(),en=ue(ht,2),tn=en[0],Rn=en[1];g(tn,Rn)}else if(!Te&&v&&We!=="clear"){var _t=qe(),zt=ue(_t,2),Tn=zt[0],zn=zt[1];v(Tn,zn)}},ze=G_(function(_e,Ne){var Te,We=G?Ne.selected:!0;We?Te=G?[].concat(Pe(be),[_e]):[_e]:Te=be.filter(function(qe){return qe.value!==_e}),re(Te),Ue(_e,We),r==="combobox"?Ee(""):(!yC||h)&&(le(""),Ee(""))}),at=function(Ne,Te){re(Ne);var We=Te.type,qe=Te.values;(We==="remove"||We==="clear")&&qe.forEach(function(ht){Ue(ht.value,!1,We)})},$t=function(Ne,Te){if(le(Ne),Ee(null),Te.source==="submit"){var We=(Ne||"").trim();if(We){var qe=Array.from(new Set([].concat(Pe(ft),[We])));re(qe),Ue(We,!0),le("")}return}Te.source!=="blur"&&(r==="combobox"&&re(Ne),f==null||f(Ne))},tt=function(Ne){var Te=Ne;r!=="tags"&&(Te=Ne.map(function(qe){var ht=Ce.get(qe);return ht==null?void 0:ht.value}).filter(function(qe){return qe!==void 0}));var We=Array.from(new Set([].concat(Pe(ft),Pe(Te))));re(We),We.forEach(function(qe){Ue(qe,!0)})},lt=c.useMemo(function(){var _e=M!==!1&&S!==!1;return H(H({},we),{},{flattenOptions:ee,onActiveValue:Ke,defaultActiveFirstOption:Ae,onSelect:ze,menuItemSelectedIcon:R,rawValues:ft,fieldNames:J,virtual:_e,listHeight:D,listItemHeight:T,childrenAsData:W})},[we,ee,Ke,Ae,ze,R,ft,J,M,S,D,T,W]);return c.createElement(BL.Provider,{value:lt},c.createElement(WJ,je({},j,{id:U,prefixCls:i,ref:t,omitDomProps:xee,mode:r,displayValues:Qe,onDisplayValuesChange:at,searchValue:ne,onSearch:$t,autoClearSearchValue:h,onSearchSplit:tt,dropdownMatchSelectWidth:S,OptionList:zL,emptyOptions:!ee.length,activeValue:ge,activeDescendantId:"".concat(U,"_list_").concat(Fe)})))}),zx=wee;zx.Option=Fx;zx.OptGroup=kx;function HL(e,t,n){return function(o){const{prefixCls:i,style:a}=o,l=c.useRef(null),[s,d]=c.useState(0),[f,m]=c.useState(0),[h,g]=Lr(!1,{value:o.open}),{getPrefixCls:v}=c.useContext(yt),C=v(t||"select",i);return c.useEffect(()=>{if(g(!0),typeof ResizeObserver<"u"){const S=new ResizeObserver(x=>{const E=x[0].target;d(E.offsetHeight+8),m(E.offsetWidth)}),y=setInterval(()=>{var x;const E=n?`.${n(C)}`:`.${C}-dropdown`,w=(x=l.current)===null||x===void 0?void 0:x.querySelector(E);w&&(clearInterval(y),S.observe(w))},10);return()=>{clearInterval(y),S.disconnect()}}},[]),c.createElement(Va,{theme:{token:{motionDurationFast:"0.01s",motionDurationMid:"0.01s",motionDurationSlow:"0.01s"}}},c.createElement("div",{ref:l,style:{paddingBottom:s,position:"relative",width:"fit-content",minWidth:f}},c.createElement(e,Object.assign({},o,{style:Object.assign(Object.assign({},a),{margin:0}),open:h,visible:h,getPopupContainer:()=>l.current}))))}}function Ta(e,t,n){return te({[`${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 fv=(e,t)=>t||e,Iee=()=>{const[,e]=Hs(),t=new bn(e.colorBgBase);let n={};return t.toHsl().l<.5&&(n={opacity:.65}),c.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("g",{transform:"translate(24 31.67)"},c.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),c.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"}),c.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)"}),c.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"}),c.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"})),c.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"}),c.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},c.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),c.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},$ee=Iee,Oee=()=>{const[,e]=Hs(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:i,shadowColor:a,contentColor:l}=c.useMemo(()=>({borderColor:new bn(t).onBackground(o).toHexShortString(),shadowColor:new bn(n).onBackground(o).toHexShortString(),contentColor:new bn(r).onBackground(o).toHexShortString()}),[t,n,r,o]);return c.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},c.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},c.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),c.createElement("g",{fillRule:"nonzero",stroke:i},c.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"}),c.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))},_ee=Oee,Ree=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}}}}},Tee=_n("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,r=Kt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return[Ree(r)]});var Pee=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=jL,description:i,children:a,imageStyle:l}=e,s=Pee(e,["className","rootClassName","prefixCls","image","description","children","imageStyle"]);const{getPrefixCls:d,direction:f}=c.useContext(yt),m=d("empty",r),[h,g]=Tee(m),[v]=Ff("Empty"),C=typeof i<"u"?i:v==null?void 0:v.description,S=typeof C=="string"?C:"empty";let y=null;return typeof o=="string"?y=c.createElement("img",{alt:S,src:o}):y=o,h(c.createElement("div",Object.assign({className:te(g,m,{[`${m}-normal`]:o===VL,[`${m}-rtl`]:f==="rtl"},t,n)},s),c.createElement("div",{className:`${m}-image`,style:l},y),C&&c.createElement("div",{className:`${m}-description`},C),a&&c.createElement("div",{className:`${m}-footer`},a)))};Hx.PRESENTED_IMAGE_DEFAULT=jL;Hx.PRESENTED_IMAGE_SIMPLE=VL;const as=Hx,Nee=e=>{const{componentName:t}=e,{getPrefixCls:n}=c.useContext(yt),r=n("empty");switch(t){case"Table":case"List":return ve.createElement(as,{image:as.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ve.createElement(as,{image:as.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return ve.createElement(as,null)}},jx=Nee,Mee=e=>{const{controlPaddingHorizontal:t}=e;return{position:"relative",display:"block",minHeight:e.controlHeight,padding:`${(e.controlHeight-e.fontSize*e.lineHeight)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,boxSizing:"border-box"}},Aee=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},hn(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,[` - &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-bottomLeft, - &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-bottomLeft - `]:{animationName:Nx},[` - &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft, - &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft - `]:{animationName:Ax},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:Mx},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:Lx},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},Mee(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(Object.assign({flex:"auto"},Cs),{"> *":Object.assign({},Cs)}),"&-state":{flex:"none"},[`&-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"}})},yc(e,"slide-up"),yc(e,"slide-down"),Hh(e,"move-up"),Hh(e,"move-down")]},Lee=Aee,du=2;function UL(e){let{controlHeightSM:t,controlHeight:n,lineWidth:r}=e;const o=(n-t)/2-r,i=Math.ceil(o/2);return[o,i]}function Hy(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,i=e.controlHeightSM,[a]=UL(e),l=t?`${n}-${t}`:"";return{[`${n}-multiple${l}`]:{fontSize:e.fontSize,[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${a-du}px ${du*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:`${du}px 0`,lineHeight:`${i}px`,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:du,marginBottom:du,lineHeight:`${i-e.lineWidth*2}px`,background:e.colorFillSecondary,border:`${e.lineWidth}px solid ${e.colorSplit}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:du*2,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.colorTextDisabled,borderColor:e.colorBorder,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},Bf()),{display:"inline-block",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,[` - &-input, - &-mirror - `]:{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}`}}}}function Dee(e){const{componentCls:t}=e,n=Kt(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),[,r]=UL(e);return[Hy(e),Hy(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:r}}},Hy(Kt(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),"lg")]}function jy(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.controlHeight-e.lineWidth*2,a=Math.ceil(e.fontSize*1.25),l=t?`${n}-${t}`:"";return{[`${n}-single${l}`]:{fontSize:e.fontSize,[`${n}-selector`]:Object.assign(Object.assign({},hn(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 kee(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[jy(e),jy(Kt(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}}}},jy(Kt(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const Fee=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"}}}},Vy=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,l=n?{[`${r}-selector`]:{borderColor:o}}:{};return{[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${a}-pagination-size-changer)`]:Object.assign(Object.assign({},l),{[`${r}-focused& ${r}-selector`]:{borderColor:o,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${i}`,outline:0},[`&:hover ${r}-selector`]:{borderColor:o}})}}},Bee=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"}}}},zee=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},hn(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:Object.assign(Object.assign({},Fee(e)),Bee(e)),[`${t}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal"},Cs),{"> *":Object.assign({lineHeight:"inherit"},Cs)}),[`${t}-selection-placeholder`]:Object.assign(Object.assign({},Cs),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:Object.assign(Object.assign({},Bf()),{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.paddingXXS}}}},Hee=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%"}}},zee(e),kee(e),Dee(e),Lee(e),{[`${t}-rtl`]:{direction:"rtl"}},Vy(t,Kt(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),Vy(`${t}-status-error`,Kt(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),Vy(`${t}-status-warning`,Kt(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),uv(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},jee=_n("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=Kt(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return[Hee(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),bm={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"visible"},Vee={bottomLeft:Object.assign(Object.assign({},bm),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},bm),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},bm),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},bm),{points:["br","tr"],offset:[0,-4]})};function Uee(e){return e||Vee}function Wee(e){return e??!0}function Kee(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:l,prefixCls:s,showArrow:d,feedbackIcon:f}=e;const m=n??c.createElement(Ic,null),h=S=>c.createElement(c.Fragment,null,d!==!1&&S,l&&f);let g=null;if(t!==void 0)g=h(t);else if(i)g=h(c.createElement(df,{spin:!0}));else{const S=`${s}-suffix`;g=y=>{let{open:x,showSearch:E}=y;return h(x&&E?c.createElement(mx,{className:S}):c.createElement(px,{className:S}))}}let v=null;r!==void 0?v=r:a?v=c.createElement(pM,null):v=null;let C=null;return o!==void 0?C=o:C=c.createElement(Lf,null),{clearIcon:m,suffixIcon:g,itemIcon:v,removeIcon:C}}var Gee=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:n,bordered:r=!0,className:o,rootClassName:i,getPopupContainer:a,popupClassName:l,dropdownClassName:s,listHeight:d=256,placement:f,listItemHeight:m=24,size:h,disabled:g,notFoundContent:v,status:C,showArrow:S,builtinPlacements:y}=e,x=Gee(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","showArrow","builtinPlacements"]);const{getPopupContainer:E,getPrefixCls:w,renderEmpty:I,direction:O,virtual:_,dropdownMatchSelectWidth:R,select:M}=c.useContext(yt),P=c.useContext(Fi),D=w("select",n),N=w(),{compactSize:T,compactItemClassnames:L}=Oc(D,O),[z,F]=jee(D),V=c.useMemo(()=>{const{mode:de}=x;if(de!=="combobox")return de===WL?"combobox":de},[x.mode]),j=V==="multiple"||V==="tags",U=Wee(S),{status:G,hasFeedback:W,isFormItemInput:q,feedbackIcon:J}=c.useContext(la),X=fv(G,C);let Y;v!==void 0?Y=v:V==="combobox"?Y=null:Y=(I==null?void 0:I("Select"))||c.createElement(jx,{componentName:"Select"});const{suffixIcon:ne,itemIcon:le,removeIcon:we,clearIcon:Ie}=Kee(Object.assign(Object.assign({},x),{multiple:j,hasFeedback:W,feedbackIcon:J,showArrow:U,prefixCls:D})),Ce=kr(x,["suffixIcon","itemIcon"]),ce=te(l||s,{[`${D}-dropdown-${O}`]:O==="rtl"},i,F),he=T||h||P,ie=c.useContext(zl),pe=g??ie,fe=te({[`${D}-lg`]:he==="large",[`${D}-sm`]:he==="small",[`${D}-rtl`]:O==="rtl",[`${D}-borderless`]:!r,[`${D}-in-form-item`]:q},Ta(D,X,W),L,o,i,F),Oe=c.useMemo(()=>f!==void 0?f:O==="rtl"?"bottomRight":"bottomLeft",[f,O]),Se=Uee(y);return z(c.createElement(zx,Object.assign({ref:t,virtual:_,dropdownMatchSelectWidth:R,showSearch:M==null?void 0:M.showSearch},Ce,{builtinPlacements:Se,transitionName:Ns(N,zQ(f),x.transitionName),listHeight:d,listItemHeight:m,mode:V,prefixCls:D,placement:Oe,direction:O,inputIcon:ne,menuItemSelectedIcon:le,removeIcon:we,clearIcon:Ie,notFoundContent:Y,className:fe,getPopupContainer:a||E,dropdownClassName:ce,showArrow:W||U,disabled:pe})))},_c=c.forwardRef(Xee),Yee=HL(_c);_c.SECRET_COMBOBOX_MODE_DO_NOT_USE=WL;_c.Option=Fx;_c.OptGroup=kx;_c._InternalPanelDoNotUseOrYouWillBeFired=Yee;const pv=_c;function KL(){const[,e]=c.useReducer(t=>t+1,0);return e}const Ml=["xxl","xl","lg","md","sm","xs"],qee=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)`}),Qee=e=>{const t=e,n=[].concat(Ml).reverse();return n.forEach((r,o)=>{const i=r.toUpperCase(),a=`screen${i}Min`,l=`screen${i}`;if(!(t[a]<=t[l]))throw new Error(`${a}<=${l} fails : !(${t[a]}<=${t[l]})`);if(o{const n=new Map;let r=-1,o={};return{matchHandlers:{},dispatch(i){return o=i,n.forEach(a=>a(o)),n.size>=1},subscribe(i){return n.size||this.register(),r+=1,n.set(r,i),i(o),r},unsubscribe(i){n.delete(i),n.size||this.unregister()},unregister(){Object.keys(t).forEach(i=>{const a=t[i],l=this.matchHandlers[a];l==null||l.mql.removeListener(l==null?void 0:l.listener)}),n.clear()},register(){Object.keys(t).forEach(i=>{const a=t[i],l=d=>{let{matches:f}=d;this.dispatch(Object.assign(Object.assign({},o),{[i]:f}))},s=window.matchMedia(a);s.addListener(l),this.matchHandlers[a]={mql:s,listener:l},l(s)})},responsiveMap:t}},[e])}function mv(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=c.useRef({}),n=KL(),r=GL();return c.useEffect(()=>{const o=r.subscribe(i=>{t.current=i,e&&n()});return()=>r.unsubscribe(o)},[]),t.current}const bC=c.createContext("default"),q_=e=>{let{children:t,size:n}=e;const r=c.useContext(bC);return c.createElement(bC.Provider,{value:n||r},t)},Zee=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:i,avatarSizeBase:a,avatarSizeLG:l,avatarSizeSM:s,avatarFontSizeBase:d,avatarFontSizeLG:f,avatarFontSizeSM:m,borderRadius:h,borderRadiusLG:g,borderRadiusSM:v,lineWidth:C,lineType:S}=e,y=(x,E,w)=>({width:x,height:x,lineHeight:`${x-C*2}px`,borderRadius:"50%",[`&${n}-square`]:{borderRadius:w},[`${n}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${n}-icon`]:{fontSize:E,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},hn(e)),{position:"relative",display:"inline-block",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${C}px ${S} transparent`,["&-image"]:{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),y(a,d,h)),{["&-lg"]:Object.assign({},y(l,f,g)),["&-sm"]:Object.assign({},y(s,m,v)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},Jee=e=>{const{componentCls:t,avatarGroupBorderColor:n,avatarGroupSpace:r}=e;return{[`${t}-group`]:{display:"inline-flex",[`${t}`]:{borderColor:n},["> *:not(:first-child)"]:{marginInlineStart:r}}}},XL=_n("Avatar",e=>{const{colorTextLightSolid:t,controlHeight:n,controlHeightLG:r,controlHeightSM:o,fontSize:i,fontSizeLG:a,fontSizeXL:l,fontSizeHeading3:s,marginXS:d,colorBorderBg:f,colorTextPlaceholder:m}=e,h=Kt(e,{avatarBg:m,avatarColor:t,avatarSizeBase:n,avatarSizeLG:r,avatarSizeSM:o,avatarFontSizeBase:Math.round((a+l)/2),avatarFontSizeLG:s,avatarFontSizeSM:i,avatarGroupSpace:-d,avatarGroupBorderColor:f});return[Zee(h),Jee(h)]});var ete=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=c.useContext(bC),[r,o]=c.useState(1),[i,a]=c.useState(!1),[l,s]=c.useState(!0),d=c.useRef(null),f=c.useRef(null),m=Bo(t,d),{getPrefixCls:h}=c.useContext(yt),g=()=>{if(!f.current||!d.current)return;const X=f.current.offsetWidth,Y=d.current.offsetWidth;if(X!==0&&Y!==0){const{gap:ne=4}=e;ne*2{a(!0)},[]),c.useEffect(()=>{s(!0),o(1)},[e.src]),c.useEffect(()=>{g()},[e.gap]);const v=()=>{const{onError:X}=e;(X?X():void 0)!==!1&&s(!1)},{prefixCls:C,shape:S="circle",size:y="default",src:x,srcSet:E,icon:w,className:I,rootClassName:O,alt:_,draggable:R,children:M,crossOrigin:P}=e,D=ete(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),N=y==="default"?n:y,T=Object.keys(typeof N=="object"?N||{}:{}).some(X=>["xs","sm","md","lg","xl","xxl"].includes(X)),L=mv(T),z=c.useMemo(()=>{if(typeof N!="object")return{};const X=Ml.find(ne=>L[ne]),Y=N[X];return Y?{width:Y,height:Y,lineHeight:`${Y}px`,fontSize:w?Y/2:18}:{}},[L,N]),F=h("avatar",C),[V,j]=XL(F),U=te({[`${F}-lg`]:N==="large",[`${F}-sm`]:N==="small"}),G=c.isValidElement(x),W=te(F,U,{[`${F}-${S}`]:!!S,[`${F}-image`]:G||x&&l,[`${F}-icon`]:!!w},I,O,j),q=typeof N=="number"?{width:N,height:N,lineHeight:`${N}px`,fontSize:w?N/2:18}:{};let J;if(typeof x=="string"&&l)J=c.createElement("img",{src:x,draggable:R,srcSet:E,onError:v,alt:_,crossOrigin:P});else if(G)J=x;else if(w)J=w;else if(i||r!==1){const X=`scale(${r}) translateX(-50%)`,Y={msTransform:X,WebkitTransform:X,transform:X},ne=typeof N=="number"?{lineHeight:`${N}px`}:{};J=c.createElement(ki,{onResize:g},c.createElement("span",{className:`${F}-string`,ref:f,style:Object.assign(Object.assign({},ne),Y)},M))}else J=c.createElement("span",{className:`${F}-string`,style:{opacity:0},ref:f},M);return delete D.onError,delete D.gap,V(c.createElement("span",Object.assign({},D,{style:Object.assign(Object.assign(Object.assign({},q),z),D.style),className:W,ref:m}),J))},nte=c.forwardRef(tte),YL=nte;var fu={shiftX:64,adjustY:1},pu={adjustX:1,shiftY:!0},qo=[0,0],rte={left:{points:["cr","cl"],overflow:pu,offset:[-4,0],targetOffset:qo},right:{points:["cl","cr"],overflow:pu,offset:[4,0],targetOffset:qo},top:{points:["bc","tc"],overflow:fu,offset:[0,-4],targetOffset:qo},bottom:{points:["tc","bc"],overflow:fu,offset:[0,4],targetOffset:qo},topLeft:{points:["bl","tl"],overflow:fu,offset:[0,-4],targetOffset:qo},leftTop:{points:["tr","tl"],overflow:pu,offset:[-4,0],targetOffset:qo},topRight:{points:["br","tr"],overflow:fu,offset:[0,-4],targetOffset:qo},rightTop:{points:["tl","tr"],overflow:pu,offset:[4,0],targetOffset:qo},bottomRight:{points:["tr","br"],overflow:fu,offset:[0,4],targetOffset:qo},rightBottom:{points:["bl","br"],overflow:pu,offset:[4,0],targetOffset:qo},bottomLeft:{points:["tl","bl"],overflow:fu,offset:[0,4],targetOffset:qo},leftBottom:{points:["br","bl"],overflow:pu,offset:[-4,0],targetOffset:qo}};function Vx(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return c.createElement("div",{className:te("".concat(n,"-content"),i),style:a},c.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var ote=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],ite=function(t,n){var r=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,l=a===void 0?0:a,s=t.mouseLeaveDelay,d=s===void 0?.1:s,f=t.overlayStyle,m=t.prefixCls,h=m===void 0?"rc-tooltip":m,g=t.children,v=t.onVisibleChange,C=t.afterVisibleChange,S=t.transitionName,y=t.animation,x=t.motion,E=t.placement,w=E===void 0?"right":E,I=t.align,O=I===void 0?{}:I,_=t.destroyTooltipOnHide,R=_===void 0?!1:_,M=t.defaultVisible,P=t.getTooltipContainer,D=t.overlayInnerStyle;t.arrowContent;var N=t.overlay,T=t.id,L=t.showArrow,z=L===void 0?!0:L,F=vt(t,ote),V=c.useRef(null);c.useImperativeHandle(n,function(){return V.current});var j=H({},F);"visible"in t&&(j.popupVisible=t.visible);var U=function(){return c.createElement(Vx,{key:"content",prefixCls:h,id:T,overlayInnerStyle:D},N)};return c.createElement(ML,je({popupClassName:r,prefixCls:h,popup:U,action:i,builtinPlacements:rte,popupPlacement:w,ref:V,popupAlign:O,getPopupContainer:P,onPopupVisibleChange:v,afterPopupVisibleChange:C,popupTransitionName:S,popupAnimation:y,popupMotion:x,defaultPopupVisible:M,autoDestroy:R,mouseLeaveDelay:d,popupStyle:f,mouseEnterDelay:l,arrow:z},j),g)};const ate=c.forwardRef(ite),qL=8;function Ux(e){const t=qL,{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return{dropdownArrowOffset:o,dropdownArrowOffsetVertical:r?t:o}}function Sm(e,t){return e?t:{}}function Wx(e,t){const{componentCls:n,sizePopupArrow:r,borderRadiusXS:o,borderRadiusOuter:i,boxShadowPopoverArrow:a}=e,{colorBg:l,contentRadius:s=e.borderRadiusLG,limitVerticalRadius:d,arrowDistance:f=0,arrowPlacement:m={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:h,dropdownArrowOffset:g}=Ux({contentRadius:s,limitVerticalRadius:d});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},OY(r,o,i,l,a)),{"&:before":{background:l}})]},Sm(!!m.top,{[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:f,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}}})),Sm(!!m.bottom,{[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:f,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}}})),Sm(!!m.left,{[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:f},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:h},[`&-placement-leftBottom ${n}-arrow`]:{bottom:h}})),Sm(!!m.right,{[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:f},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:h},[`&-placement-rightBottom ${n}-arrow`]:{bottom:h}}))}}function lte(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 Q_={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"]}},ste={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"]}},ute=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function QL(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i}=e,a=t/2,l={};return Object.keys(Q_).forEach(s=>{const d=r&&ste[s]||Q_[s],f=Object.assign(Object.assign({},d),{offset:[0,0]});switch(l[s]=f,ute.has(s)&&(f.autoArrow=!1),s){case"top":case"topLeft":case"topRight":f.offset[1]=-a-o;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=a+o;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-a-o;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=a+o;break}const m=Ux({contentRadius:i,limitVerticalRadius:!0});if(r)switch(s){case"topLeft":case"bottomLeft":f.offset[0]=-m.dropdownArrowOffset-a;break;case"topRight":case"bottomRight":f.offset[0]=m.dropdownArrowOffset+a;break;case"leftTop":case"rightTop":f.offset[1]=-m.dropdownArrowOffset-a;break;case"leftBottom":case"rightBottom":f.offset[1]=m.dropdownArrowOffset+a;break}f.overflow=lte(s,m,t,n)}),l}const nl=(e,t)=>new bn(e).setAlpha(t).toRgbString(),mu=(e,t)=>new bn(e).lighten(t).toHexString(),cte=e=>{const t=La(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]}},dte=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:nl(r,.85),colorTextSecondary:nl(r,.65),colorTextTertiary:nl(r,.45),colorTextQuaternary:nl(r,.25),colorFill:nl(r,.18),colorFillSecondary:nl(r,.12),colorFillTertiary:nl(r,.08),colorFillQuaternary:nl(r,.04),colorBgElevated:mu(n,12),colorBgContainer:mu(n,8),colorBgLayout:mu(n,0),colorBgSpotlight:mu(n,26),colorBorder:mu(n,26),colorBorderSecondary:mu(n,19)}},fte=(e,t)=>{const n=Object.keys(Cx).map(o=>{const i=La(e[o],{theme:"dark"});return new Array(10).fill(1).reduce((a,l,s)=>(a[`${o}-${s+1}`]=i[s],a[`${o}${s+1}`]=i[s],a),{})}).reduce((o,i)=>(o=Object.assign(Object.assign({},o),i),o),{}),r=t??av(e);return Object.assign(Object.assign(Object.assign({},r),n),RA(e,{generateColorPalettes:cte,generateNeutralColorPalettes:dte}))},pte=fte;function mte(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 hte=(e,t)=>{const n=t??av(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),mte(t??e)),TA(r)),{controlHeight:o}),_A(Object.assign(Object.assign({},n),{controlHeight:o})))},gte=hte;function vte(){const[e,t,n]=Hs();return{theme:e,token:t,hashId:n}}const ZL={defaultConfig:Lh,defaultSeed:Lh.token,useToken:vte,defaultAlgorithm:av,darkAlgorithm:pte,compactAlgorithm:gte},yte=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:s,paddingSM:d,paddingXS:f,tooltipRadiusOuter:m}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},hn(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:l,minHeight:l,padding:`${d/2}px ${f}px`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:s},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(i,qL)}},[`${t}-content`]:{position:"relative"}}),NY(e,(h,g)=>{let{darkColor:v}=g;return{[`&${t}-${h}`]:{[`${t}-inner`]:{backgroundColor:v},[`${t}-arrow`]:{"--antd-arrow-background-color":v}}}})),{"&-rtl":{direction:"rtl"}})},Wx(Kt(e,{borderRadiusOuter:m}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:i,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},JL=(e,t)=>_n("Tooltip",r=>{if(t===!1)return[];const{borderRadius:o,colorTextLightSolid:i,colorBgDefault:a,borderRadiusOuter:l}=r,s=Kt(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a,tooltipRadiusOuter:l>4?4:l});return[yte(s),jf(r,"zoom-big-fast")]},r=>{let{zIndexPopupBase:o,colorBgSpotlight:i}=r;return{zIndexPopup:o+70,colorBgDefault:i}})(e),bte=vf.map(e=>`${e}-inverse`);function Ste(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Pe(bte),Pe(vf)).includes(e):vf.includes(e)}function eD(e,t){const n=Ste(t),r=te({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}function Cte(e){const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:l}=c.useContext(yt),s=l("tooltip",t),[d,f]=JL(s,!0),m=eD(s,i),h=Object.assign(Object.assign({},a),m.overlayStyle),g=m.arrowStyle;return d(c.createElement("div",{className:te(f,s,`${s}-pure`,`${s}-placement-${r}`,n,m.className),style:g},c.createElement("div",{className:`${s}-arrow`}),c.createElement(Vx,Object.assign({},e,{className:f,prefixCls:s,overlayInnerStyle:h}),o)))}var xte=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 Ite(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}=wte(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"}),l=mr(e,{style:a,className:null});return c.createElement("span",{style:i,className:te(e.props.className,`${t}-disabled-compatible-wrapper`)},l)}return e}const tD=c.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:l,color:s,overlayInnerStyle:d,children:f,afterOpenChange:m,afterVisibleChange:h,destroyTooltipOnHide:g,arrow:v=!0,title:C,overlay:S,builtinPlacements:y,arrowPointAtCenter:x=!1,autoAdjustOverflow:E=!0}=e,w=!!v,{token:I}=Ete(),{getPopupContainer:O,getPrefixCls:_,direction:R}=c.useContext(yt),M=c.useRef(null),P=()=>{var de;(de=M.current)===null||de===void 0||de.forceAlign()};c.useImperativeHandle(t,()=>({forceAlign:P,forcePopupAlign:()=>{P()}}));const[D,N]=Lr(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),T=!C&&!S&&C!==0,L=de=>{var Re,be;N(T?!1:de),T||((Re=e.onOpenChange)===null||Re===void 0||Re.call(e,de),(be=e.onVisibleChange)===null||be===void 0||be.call(e,de))},z=c.useMemo(()=>{var de,Re;let be=x;return typeof v=="object"&&(be=(Re=(de=v.pointAtCenter)!==null&&de!==void 0?de:v.arrowPointAtCenter)!==null&&Re!==void 0?Re:x),y||QL({arrowPointAtCenter:be,autoAdjustOverflow:E,arrowWidth:w?I.sizePopupArrow:0,borderRadius:I.borderRadius,offset:I.marginXXS})},[x,v,y,I]),F=(de,Re)=>{const be=Object.keys(z).find(Xe=>{var Qe,ft;return z[Xe].points[0]===((Qe=Re.points)===null||Qe===void 0?void 0:Qe[0])&&z[Xe].points[1]===((ft=Re.points)===null||ft===void 0?void 0:ft[1])});if(be){const Xe=de.getBoundingClientRect(),Qe={top:"50%",left:"50%"};/top|Bottom/.test(be)?Qe.top=`${Xe.height-Re.offset[1]}px`:/Top|bottom/.test(be)&&(Qe.top=`${-Re.offset[1]}px`),/left|Right/.test(be)?Qe.left=`${Xe.width-Re.offset[0]}px`:/right|Left/.test(be)&&(Qe.left=`${-Re.offset[0]}px`),de.style.transformOrigin=`${Qe.left} ${Qe.top}`}},V=c.useMemo(()=>C===0?C:S||C||"",[S,C]),{getPopupContainer:j,placement:U="top",mouseEnterDelay:G=.1,mouseLeaveDelay:W=.1,overlayStyle:q,rootClassName:J}=e,X=xte(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Y=_("tooltip",o),ne=_(),le=e["data-popover-inject"];let we=D;!("open"in e)&&!("visible"in e)&&T&&(we=!1);const Ie=Ite(Mi(f)&&!KA(f)?f:c.createElement("span",null,f),Y),Ce=Ie.props,ce=!Ce.className||typeof Ce.className=="string"?te(Ce.className,{[i||`${Y}-open`]:!0}):Ce.className,[he,ie]=JL(Y,!le),pe=eD(Y,s),fe=Object.assign(Object.assign({},d),pe.overlayStyle),Oe=pe.arrowStyle,Se=te(l,{[`${Y}-rtl`]:R==="rtl"},pe.className,J,ie);return he(c.createElement(ate,Object.assign({},X,{showArrow:w,placement:U,mouseEnterDelay:G,mouseLeaveDelay:W,prefixCls:Y,overlayClassName:Se,overlayStyle:Object.assign(Object.assign({},Oe),q),getTooltipContainer:j||a||O,ref:M,builtinPlacements:z,overlay:V,visible:we,onVisibleChange:L,afterVisibleChange:m??h,onPopupAlign:F,overlayInnerStyle:fe,arrowContent:c.createElement("span",{className:`${Y}-arrow-content`}),motion:{motionName:Ns(ne,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),we?mr(Ie,{className:ce}):Ie))});tD._InternalPanelDoNotUseOrYouWillBeFired=Cte;const Wf=tD,Wh=e=>e?typeof e=="function"?e():e:null,$te=e=>{const{componentCls:t,popoverBg:n,popoverColor:r,width:o,fontWeightStrong:i,popoverPadding:a,boxShadowSecondary:l,colorTextHeading:s,borderRadiusLG:d,zIndexPopup:f,marginXS:m,colorBgElevated:h}=e;return[{[t]:Object.assign(Object.assign({},hn(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:f,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--antd-arrow-background-color":h,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:n,backgroundClip:"padding-box",borderRadius:d,boxShadow:l,padding:a},[`${t}-title`]:{minWidth:o,marginBottom:m,color:s,fontWeight:i},[`${t}-inner-content`]:{color:r}})},Wx(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},Ote=e=>{const{componentCls:t}=e;return{[t]:vf.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},_te=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:o,paddingSM:i,controlHeight:a,fontSize:l,lineHeight:s,padding:d}=e,f=a-Math.round(l*s),m=f/2,h=f/2-n,g=d;return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${m}px ${g}px ${h}px`,borderBottom:`${n}px ${r} ${o}`},[`${t}-inner-content`]:{padding:`${i}px ${g}px`}}}},nD=_n("Popover",e=>{const{colorBgElevated:t,colorText:n,wireframe:r}=e,o=Kt(e,{popoverBg:t,popoverColor:n,popoverPadding:12});return[$te(o),Ote(o),r&&_te(o),jf(o,"zoom-big")]},e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+30,width:177}});var Rte=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&&!n))return c.createElement(c.Fragment,null,t&&c.createElement("div",{className:`${e}-title`},Wh(t)),c.createElement("div",{className:`${e}-inner-content`},Wh(n)))};function Pte(e){const{hashId:t,prefixCls:n,className:r,style:o,placement:i="top",title:a,content:l,children:s}=e;return c.createElement("div",{className:te(t,n,`${n}-pure`,`${n}-placement-${i}`,r),style:o},c.createElement("div",{className:`${n}-arrow`}),c.createElement(Vx,Object.assign({},e,{className:t,prefixCls:n}),s||Tte(n,a,l)))}function Nte(e){const{prefixCls:t}=e,n=Rte(e,["prefixCls"]),{getPrefixCls:r}=c.useContext(yt),o=r("popover",t),[i,a]=nD(o);return i(c.createElement(Pte,Object.assign({},n,{prefixCls:o,hashId:a})))}var Mte=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{title:t,content:n,prefixCls:r}=e;return!t&&!n?null:c.createElement(c.Fragment,null,t&&c.createElement("div",{className:`${r}-title`},Wh(t)),c.createElement("div",{className:`${r}-inner-content`},Wh(n)))},rD=c.forwardRef((e,t)=>{const{prefixCls:n,title:r,content:o,overlayClassName:i,placement:a="top",trigger:l="hover",mouseEnterDelay:s=.1,mouseLeaveDelay:d=.1,overlayStyle:f={}}=e,m=Mte(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:h}=c.useContext(yt),g=h("popover",n),[v,C]=nD(g),S=h(),y=te(i,C);return v(c.createElement(Wf,Object.assign({placement:a,trigger:l,mouseEnterDelay:s,mouseLeaveDelay:d,overlayStyle:f},m,{prefixCls:g,overlayClassName:y,ref:t,overlay:c.createElement(Ate,{prefixCls:g,title:r,content:o}),transitionName:Ns(S,"zoom-big",m.transitionName),"data-popover-inject":!0})))});rD._InternalPanelDoNotUseOrYouWillBeFired=Nte;const Lte=rD,Dte=e=>{const{getPrefixCls:t,direction:n}=c.useContext(yt),{prefixCls:r,className:o,rootClassName:i,maxCount:a,maxStyle:l,size:s}=e,d=t("avatar",r),f=`${d}-group`,[m,h]=XL(d),g=te(f,{[`${f}-rtl`]:n==="rtl"},o,i,h),{children:v,maxPopoverPlacement:C="top",maxPopoverTrigger:S="hover"}=e,y=ai(v).map((E,w)=>mr(E,{key:`avatar-key-${w}`})),x=y.length;if(a&&a=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function fne(e,t,n,r){var o=Tt.clone(e),i={width:t.width,height:t.height};return r.adjustX&&o.left=n.left&&o.left+i.width>n.right&&(i.width-=o.left+i.width-n.right),r.adjustX&&o.left+i.width>n.right&&(o.left=Math.max(n.right-i.width,n.left)),r.adjustY&&o.top=n.top&&o.top+i.height>n.bottom&&(i.height-=o.top+i.height-n.bottom),r.adjustY&&o.top+i.height>n.bottom&&(o.top=Math.max(n.bottom-i.height,n.top)),Tt.mix(o,i)}function Yx(e){var t,n,r;if(!Tt.isWindow(e)&&e.nodeType!==9)t=Tt.offset(e),n=Tt.outerWidth(e),r=Tt.outerHeight(e);else{var o=Tt.getWindow(e);t={left:Tt.getWindowScrollLeft(o),top:Tt.getWindowScrollTop(o)},n=Tt.viewportWidth(o),r=Tt.viewportHeight(o)}return t.width=n,t.height=r,t}function lR(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,i=e.height,a=e.left,l=e.top;return n==="c"?l+=i/2:n==="b"&&(l+=i),r==="c"?a+=o/2:r==="r"&&(a+=o),{left:a,top:l}}function xm(e,t,n,r,o){var i=lR(t,n[1]),a=lR(e,n[0]),l=[a.left-i.left,a.top-i.top];return{left:Math.round(e.left-l[0]+r[0]-o[0]),top:Math.round(e.top-l[1]+r[1]-o[1])}}function sR(e,t,n){return e.leftn.right}function uR(e,t,n){return e.topn.bottom}function pne(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=n.right||r.top>=n.bottom}function qx(e,t,n){var r=n.target||t,o=Yx(r),i=!hne(r,n.overflow&&n.overflow.alwaysByViewport);return pD(e,o,n,i)}qx.__getOffsetParent=EC;qx.__getVisibleRectForElement=Xx;function gne(e,t,n){var r,o,i=Tt.getDocument(e),a=i.defaultView||i.parentWindow,l=Tt.getWindowScrollLeft(a),s=Tt.getWindowScrollTop(a),d=Tt.viewportWidth(a),f=Tt.viewportHeight(a);"pageX"in t?r=t.pageX:r=l+t.clientX,"pageY"in t?o=t.pageY:o=s+t.clientY;var m={left:r,top:o,width:0,height:0},h=r>=0&&r<=l+d&&o>=0&&o<=s+f,g=[n.points[0],"cc"];return pD(e,m,J_(J_({},n),{},{points:g}),h)}const vne=function(e,t){var n=ve.useRef(!1),r=ve.useRef(null);function o(){window.clearTimeout(r.current)}function i(a){if(o(),!n.current||a===!0){if(e(a)===!1)return;n.current=!0,r.current=window.setTimeout(function(){n.current=!1},t)}else r.current=window.setTimeout(function(){n.current=!1,i()},t)}return[i,function(){n.current=!1,o()}]};function yne(e,t){return e===t?!0:!e||!t?!1:"pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t?e.clientX===t.clientX&&e.clientY===t.clientY:!1}function bne(e,t){e!==document.activeElement&&bs(t,e)&&typeof e.focus=="function"&&e.focus()}function fR(e,t){var n=null,r=null;function o(a){var l=ue(a,1),s=l[0].target;if(document.documentElement.contains(s)){var d=s.getBoundingClientRect(),f=d.width,m=d.height,h=Math.floor(f),g=Math.floor(m);(n!==h||r!==g)&&Promise.resolve().then(function(){t({width:h,height:g})}),n=h,r=g}}var i=new nA(o);return e&&i.observe(e),function(){i.disconnect()}}function pR(e){return typeof e!="function"?null:e()}function mR(e){return It(e)!=="object"||!e?null:e}var Sne=function(t,n){var r=t.children,o=t.disabled,i=t.target,a=t.align,l=t.onAlign,s=t.monitorWindowResize,d=t.monitorBufferTime,f=d===void 0?0:d,m=ve.useRef({}),h=ve.useRef(),g=ve.Children.only(r),v=ve.useRef({});v.current.disabled=o,v.current.target=i,v.current.align=a,v.current.onAlign=l;var C=vne(function(){var D=v.current,N=D.disabled,T=D.target,L=D.align,z=D.onAlign,F=h.current;if(!N&&T&&F){var V,j=pR(T),U=mR(T);m.current.element=j,m.current.point=U,m.current.align=L;var G=document,W=G.activeElement;return j&&Hf(j)?V=qx(F,j,L):U&&(V=gne(F,U,L)),bne(W,F),z&&V&&z(F,V),!0}return!1},f),S=ue(C,2),y=S[0],x=S[1],E=ve.useState(),w=ue(E,2),I=w[0],O=w[1],_=ve.useState(),R=ue(_,2),M=R[0],P=R[1];return sn(function(){O(pR(i)),P(mR(i))}),ve.useEffect(function(){(m.current.element!==I||!yne(m.current.point,M)||!Da(m.current.align,a))&&y()}),ve.useEffect(function(){var D=fR(h.current,y);return D},[h.current]),ve.useEffect(function(){var D=fR(I,y);return D},[I]),ve.useEffect(function(){o?x():y()},[o]),ve.useEffect(function(){if(s){var D=_a(window,"resize",y);return D.remove}},[s]),ve.useEffect(function(){return function(){x()}},[]),ve.useImperativeHandle(n,function(){return{forceAlign:function(){return y(!0)}}}),ve.isValidElement(g)&&(g=ve.cloneElement(g,{ref:Bo(g.ref,h)})),g},mD=ve.forwardRef(Sne);mD.displayName="Align";var hR=["measure","alignPre","align",null,"motion"];const Cne=function(e,t){var n=Ol(null),r=ue(n,2),o=r[0],i=r[1],a=c.useRef();function l(f){i(f,!0)}function s(){Zt.cancel(a.current)}function d(f){s(),a.current=Zt(function(){l(function(m){switch(o){case"align":return"motion";case"motion":return"stable"}return m}),f==null||f()})}return c.useEffect(function(){l("measure")},[e]),c.useEffect(function(){switch(o){case"measure":t();break}o&&(a.current=Zt(zs(Yr().mark(function f(){var m,h;return Yr().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:m=hR.indexOf(o),h=hR[m+1],h&&m!==-1&&l(h);case 3:case"end":return v.stop()}},f)}))))},[o]),c.useEffect(function(){return function(){s()}},[]),[o,d]},xne=function(e){var t=c.useState({width:0,height:0}),n=ue(t,2),r=n[0],o=n[1];function i(l){var s=l.offsetWidth,d=l.offsetHeight,f=l.getBoundingClientRect(),m=f.width,h=f.height;Math.abs(s-m)<1&&Math.abs(d-h)<1&&(s=m,d=h),o({width:s,height:d})}var a=c.useMemo(function(){var l={};if(e){var s=r.width,d=r.height;e.indexOf("height")!==-1&&d?l.height=d:e.indexOf("minHeight")!==-1&&d&&(l.minHeight=d),e.indexOf("width")!==-1&&s?l.width=s:e.indexOf("minWidth")!==-1&&s&&(l.minWidth=s)}return l},[e,r]);return[a,i]};var hD=c.forwardRef(function(e,t){var n=e.visible,r=e.prefixCls,o=e.className,i=e.style,a=e.children,l=e.zIndex,s=e.stretch,d=e.destroyPopupOnHide,f=e.forceRender,m=e.align,h=e.point,g=e.getRootDomNode,v=e.getClassNameFromAlign,C=e.onAlign,S=e.onMouseEnter,y=e.onMouseLeave,x=e.onMouseDown,E=e.onTouchStart,w=e.onClick,I=c.useRef(),O=c.useRef(),_=c.useState(),R=ue(_,2),M=R[0],P=R[1],D=xne(s),N=ue(D,2),T=N[0],L=N[1];function z(){s&&L(g())}var F=Cne(n,z),V=ue(F,2),j=V[0],U=V[1],G=c.useState(0),W=ue(G,2),q=W[0],J=W[1],X=c.useRef();sn(function(){j==="alignPre"&&J(0)},[j]);function Y(){return h||g}function ne(){var ie;(ie=I.current)===null||ie===void 0||ie.forceAlign()}function le(ie,pe){var fe=v(pe);M!==fe&&P(fe),J(function(Oe){return Oe+1}),j==="align"&&(C==null||C(ie,pe))}sn(function(){j==="align"&&(q<3?ne():U(function(){var ie;(ie=X.current)===null||ie===void 0||ie.call(X)}))},[q]);var we=H({},iD(e));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(ie){var pe=we[ie];we[ie]=function(fe,Oe){return U(),pe==null?void 0:pe(fe,Oe)}});function Ie(){return new Promise(function(ie){X.current=ie})}c.useEffect(function(){!we.motionName&&j==="motion"&&U()},[we.motionName,j]),c.useImperativeHandle(t,function(){return{forceAlign:ne,getElement:function(){return O.current}}});var Ce=H(H({},T),{},{zIndex:l,opacity:j==="motion"||j==="stable"||!n?void 0:0,pointerEvents:!n&&j!=="stable"?"none":void 0},i),ce=!0;m!=null&&m.points&&(j==="align"||j==="stable")&&(ce=!1);var he=a;return c.Children.count(a)>1&&(he=c.createElement("div",{className:"".concat(r,"-content")},a)),c.createElement(di,je({visible:n,ref:O,leavedClassName:"".concat(r,"-hidden")},we,{onAppearPrepare:Ie,onEnterPrepare:Ie,removeOnLeave:d,forceRender:f}),function(ie,pe){var fe=ie.className,Oe=ie.style,Se=te(r,o,M,fe);return c.createElement(mD,{target:Y(),key:"popup",ref:I,monitorWindowResize:!0,disabled:ce,align:m,onAlign:le},c.createElement("div",{ref:pe,className:Se,onMouseEnter:S,onMouseLeave:y,onMouseDownCapture:x,onTouchStartCapture:E,onClick:w,style:H(H({},Oe),Ce)},he))})});hD.displayName="PopupInner";var gD=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.visible,o=e.zIndex,i=e.children,a=e.mobile;a=a===void 0?{}:a;var l=a.popupClassName,s=a.popupStyle,d=a.popupMotion,f=d===void 0?{}:d,m=a.popupRender,h=e.onClick,g=c.useRef();c.useImperativeHandle(t,function(){return{forceAlign:function(){},getElement:function(){return g.current}}});var v=H({zIndex:o},s),C=i;return c.Children.count(i)>1&&(C=c.createElement("div",{className:"".concat(n,"-content")},i)),m&&(C=m(C)),c.createElement(di,je({visible:r,ref:g,removeOnLeave:!0},f),function(S,y){var x=S.className,E=S.style,w=te(n,l,x);return c.createElement("div",{ref:y,className:w,onClick:h,style:H(H({},E),v)},C)})});gD.displayName="MobilePopupInner";var Ene=["visible","mobile"],vD=c.forwardRef(function(e,t){var n=e.visible,r=e.mobile,o=vt(e,Ene),i=c.useState(n),a=ue(i,2),l=a[0],s=a[1],d=c.useState(!1),f=ue(d,2),m=f[0],h=f[1],g=H(H({},o),{},{visible:l});c.useEffect(function(){s(n),n&&r&&h(dv())},[n,r]);var v=m?c.createElement(gD,je({},g,{mobile:r,ref:t})):c.createElement(hD,je({},g,{ref:t}));return c.createElement("div",null,c.createElement(Vte,g),v)});vD.displayName="Popup";var gR=c.createContext(null);function Xy(){}function wne(){return""}function Ine(e){return e?e.ownerDocument:window.document}var $ne=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function One(e){var t=function(n){Li(o,n);var r=Di(o);function o(i){var a;Jn(this,o),a=r.call(this,i),Q(wt(a),"popupRef",c.createRef()),Q(wt(a),"triggerRef",c.createRef()),Q(wt(a),"portalContainer",void 0),Q(wt(a),"attachId",void 0),Q(wt(a),"clickOutsideHandler",void 0),Q(wt(a),"touchOutsideHandler",void 0),Q(wt(a),"contextMenuOutsideHandler1",void 0),Q(wt(a),"contextMenuOutsideHandler2",void 0),Q(wt(a),"mouseDownTimeout",void 0),Q(wt(a),"focusTime",void 0),Q(wt(a),"preClickTime",void 0),Q(wt(a),"preTouchTime",void 0),Q(wt(a),"delayTimer",void 0),Q(wt(a),"hasPopupMouseDown",void 0),Q(wt(a),"onMouseEnter",function(s){var d=a.props.mouseEnterDelay;a.fireEvents("onMouseEnter",s),a.delaySetPopupVisible(!0,d,d?null:s)}),Q(wt(a),"onMouseMove",function(s){a.fireEvents("onMouseMove",s),a.setPoint(s)}),Q(wt(a),"onMouseLeave",function(s){a.fireEvents("onMouseLeave",s),a.delaySetPopupVisible(!1,a.props.mouseLeaveDelay)}),Q(wt(a),"onPopupMouseEnter",function(){a.clearDelayTimer()}),Q(wt(a),"onPopupMouseLeave",function(s){var d;s.relatedTarget&&!s.relatedTarget.setTimeout&&bs((d=a.popupRef.current)===null||d===void 0?void 0:d.getElement(),s.relatedTarget)||a.delaySetPopupVisible(!1,a.props.mouseLeaveDelay)}),Q(wt(a),"onFocus",function(s){a.fireEvents("onFocus",s),a.clearDelayTimer(),a.isFocusToShow()&&(a.focusTime=Date.now(),a.delaySetPopupVisible(!0,a.props.focusDelay))}),Q(wt(a),"onMouseDown",function(s){a.fireEvents("onMouseDown",s),a.preClickTime=Date.now()}),Q(wt(a),"onTouchStart",function(s){a.fireEvents("onTouchStart",s),a.preTouchTime=Date.now()}),Q(wt(a),"onBlur",function(s){a.fireEvents("onBlur",s),a.clearDelayTimer(),a.isBlurToHide()&&a.delaySetPopupVisible(!1,a.props.blurDelay)}),Q(wt(a),"onContextMenu",function(s){s.preventDefault(),a.fireEvents("onContextMenu",s),a.setPopupVisible(!0,s)}),Q(wt(a),"onContextMenuClose",function(){a.isContextMenuToShow()&&a.close()}),Q(wt(a),"onClick",function(s){if(a.fireEvents("onClick",s),a.focusTime){var d;if(a.preClickTime&&a.preTouchTime?d=Math.min(a.preClickTime,a.preTouchTime):a.preClickTime?d=a.preClickTime:a.preTouchTime&&(d=a.preTouchTime),Math.abs(d-a.focusTime)<20)return;a.focusTime=0}a.preClickTime=0,a.preTouchTime=0,a.isClickToShow()&&(a.isClickToHide()||a.isBlurToHide())&&s&&s.preventDefault&&s.preventDefault();var f=!a.state.popupVisible;(a.isClickToHide()&&!f||f&&a.isClickToShow())&&a.setPopupVisible(!a.state.popupVisible,s)}),Q(wt(a),"onPopupMouseDown",function(){if(a.hasPopupMouseDown=!0,clearTimeout(a.mouseDownTimeout),a.mouseDownTimeout=window.setTimeout(function(){a.hasPopupMouseDown=!1},0),a.context){var s;(s=a.context).onPopupMouseDown.apply(s,arguments)}}),Q(wt(a),"onDocumentClick",function(s){if(!(a.props.mask&&!a.props.maskClosable)){var d=s.target,f=a.getRootDomNode(),m=a.getPopupDomNode();(!bs(f,d)||a.isContextMenuOnly())&&!bs(m,d)&&!a.hasPopupMouseDown&&a.close()}}),Q(wt(a),"getRootDomNode",function(){var s=a.props.getTriggerDOMNode;if(s)return s(a.triggerRef.current);try{var d=pf(a.triggerRef.current);if(d)return d}catch{}return sc.findDOMNode(wt(a))}),Q(wt(a),"getPopupClassNameFromAlign",function(s){var d=[],f=a.props,m=f.popupPlacement,h=f.builtinPlacements,g=f.prefixCls,v=f.alignPoint,C=f.getPopupClassNameFromAlign;return m&&h&&d.push(jte(h,g,s,v)),C&&d.push(C(s)),d.join(" ")}),Q(wt(a),"getComponent",function(){var s=a.props,d=s.prefixCls,f=s.destroyPopupOnHide,m=s.popupClassName,h=s.onPopupAlign,g=s.popupMotion,v=s.popupAnimation,C=s.popupTransitionName,S=s.popupStyle,y=s.mask,x=s.maskAnimation,E=s.maskTransitionName,w=s.maskMotion,I=s.zIndex,O=s.popup,_=s.stretch,R=s.alignPoint,M=s.mobile,P=s.forceRender,D=s.onPopupClick,N=a.state,T=N.popupVisible,L=N.point,z=a.getPopupAlign(),F={};return a.isMouseEnterToShow()&&(F.onMouseEnter=a.onPopupMouseEnter),a.isMouseLeaveToHide()&&(F.onMouseLeave=a.onPopupMouseLeave),F.onMouseDown=a.onPopupMouseDown,F.onTouchStart=a.onPopupMouseDown,c.createElement(vD,je({prefixCls:d,destroyPopupOnHide:f,visible:T,point:R&&L,className:m,align:z,onAlign:h,animation:v,getClassNameFromAlign:a.getPopupClassNameFromAlign},F,{stretch:_,getRootDomNode:a.getRootDomNode,style:S,mask:y,zIndex:I,transitionName:C,maskAnimation:x,maskTransitionName:E,maskMotion:w,ref:a.popupRef,motion:g,mobile:M,forceRender:P,onClick:D}),typeof O=="function"?O():O)}),Q(wt(a),"attachParent",function(s){Zt.cancel(a.attachId);var d=a.props,f=d.getPopupContainer,m=d.getDocument,h=a.getRootDomNode(),g;f?(h||f.length===0)&&(g=f(h)):g=m(a.getRootDomNode()).body,g?g.appendChild(s):a.attachId=Zt(function(){a.attachParent(s)})}),Q(wt(a),"getContainer",function(){if(!a.portalContainer){var s=a.props.getDocument,d=s(a.getRootDomNode()).createElement("div");d.style.position="absolute",d.style.top="0",d.style.left="0",d.style.width="100%",a.portalContainer=d}return a.attachParent(a.portalContainer),a.portalContainer}),Q(wt(a),"setPoint",function(s){var d=a.props.alignPoint;!d||!s||a.setState({point:{pageX:s.pageX,pageY:s.pageY}})}),Q(wt(a),"handlePortalUpdate",function(){a.state.prevPopupVisible!==a.state.popupVisible&&a.props.afterPopupVisibleChange(a.state.popupVisible)}),Q(wt(a),"triggerContextValue",{onPopupMouseDown:a.onPopupMouseDown});var l;return"popupVisible"in i?l=!!i.popupVisible:l=!!i.defaultPopupVisible,a.state={prevPopupVisible:l,popupVisible:l},$ne.forEach(function(s){a["fire".concat(s)]=function(d){a.fireEvents(s,d)}}),a}return er(o,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var a=this.props,l=this.state;if(l.popupVisible){var s;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(s=a.getDocument(this.getRootDomNode()),this.clickOutsideHandler=_a(s,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(s=s||a.getDocument(this.getRootDomNode()),this.touchOutsideHandler=_a(s,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(s=s||a.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=_a(s,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=_a(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Zt.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var a;return((a=this.popupRef.current)===null||a===void 0?void 0:a.getElement())||null}},{key:"getPopupAlign",value:function(){var a=this.props,l=a.popupPlacement,s=a.popupAlign,d=a.builtinPlacements;return l&&d?Hte(d,l,s):s}},{key:"setPopupVisible",value:function(a,l){var s=this.props.alignPoint,d=this.state.popupVisible;this.clearDelayTimer(),d!==a&&("popupVisible"in this.props||this.setState({popupVisible:a,prevPopupVisible:d}),this.props.onPopupVisibleChange(a)),s&&l&&a&&this.setPoint(l)}},{key:"delaySetPopupVisible",value:function(a,l,s){var d=this,f=l*1e3;if(this.clearDelayTimer(),f){var m=s?{pageX:s.pageX,pageY:s.pageY}:null;this.delayTimer=window.setTimeout(function(){d.setPopupVisible(a,m),d.clearDelayTimer()},f)}else this.setPopupVisible(a,s)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(a){var l=this.props.children.props,s=this.props;return l[a]&&s[a]?this["fire".concat(a)]:l[a]||s[a]}},{key:"isClickToShow",value:function(){var a=this.props,l=a.action,s=a.showAction;return l.indexOf("click")!==-1||s.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var a=this.props.action;return a==="contextMenu"||a.length===1&&a[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var a=this.props,l=a.action,s=a.showAction;return l.indexOf("contextMenu")!==-1||s.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var a=this.props,l=a.action,s=a.hideAction;return l.indexOf("click")!==-1||s.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var a=this.props,l=a.action,s=a.showAction;return l.indexOf("hover")!==-1||s.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var a=this.props,l=a.action,s=a.hideAction;return l.indexOf("hover")!==-1||s.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var a=this.props,l=a.action,s=a.showAction;return l.indexOf("focus")!==-1||s.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var a=this.props,l=a.action,s=a.hideAction;return l.indexOf("focus")!==-1||s.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var a;(a=this.popupRef.current)===null||a===void 0||a.forceAlign()}}},{key:"fireEvents",value:function(a,l){var s=this.props.children.props[a];s&&s(l);var d=this.props[a];d&&d(l)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var a=this.state.popupVisible,l=this.props,s=l.children,d=l.forceRender,f=l.alignPoint,m=l.className,h=l.autoDestroy,g=c.Children.only(s),v={key:"trigger"};this.isContextMenuToShow()?v.onContextMenu=this.onContextMenu:v.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(v.onClick=this.onClick,v.onMouseDown=this.onMouseDown,v.onTouchStart=this.onTouchStart):(v.onClick=this.createTwoChains("onClick"),v.onMouseDown=this.createTwoChains("onMouseDown"),v.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(v.onMouseEnter=this.onMouseEnter,f&&(v.onMouseMove=this.onMouseMove)):v.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?v.onMouseLeave=this.onMouseLeave:v.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(v.onFocus=this.onFocus,v.onBlur=this.onBlur):(v.onFocus=this.createTwoChains("onFocus"),v.onBlur=this.createTwoChains("onBlur"));var C=te(g&&g.props&&g.props.className,m);C&&(v.className=C);var S=H({},v);Bl(g)&&(S.ref=Bo(this.triggerRef,g.ref));var y=c.cloneElement(g,S),x;return(a||this.popupRef.current||d)&&(x=c.createElement(e,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!a&&h&&(x=null),c.createElement(gR.Provider,{value:this.triggerContextValue},y,x)}}],[{key:"getDerivedStateFromProps",value:function(a,l){var s=a.popupVisible,d={};return s!==void 0&&l.popupVisible!==s&&(d.popupVisible=s,d.prevPopupVisible=l.popupVisible),d}}]),o}(c.Component);return Q(t,"contextType",gR),Q(t,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:wne,getDocument:Ine,onPopupVisibleChange:Xy,afterPopupVisibleChange:Xy,onPopupAlign:Xy,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),t}const yD=One(Bte);var hu={adjustX:1,adjustY:1},gu=[0,0],_ne={topLeft:{points:["bl","tl"],overflow:hu,offset:[0,-4],targetOffset:gu},topCenter:{points:["bc","tc"],overflow:hu,offset:[0,-4],targetOffset:gu},topRight:{points:["br","tr"],overflow:hu,offset:[0,-4],targetOffset:gu},bottomLeft:{points:["tl","bl"],overflow:hu,offset:[0,4],targetOffset:gu},bottomCenter:{points:["tc","bc"],overflow:hu,offset:[0,4],targetOffset:gu},bottomRight:{points:["tr","br"],overflow:hu,offset:[0,4],targetOffset:gu}};function vR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Hf(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 bD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Pe(e.querySelectorAll("*")).filter(function(r){return vR(r,t)});return vR(e,t)&&n.unshift(e),n}var Rne=De.ESC,Tne=De.TAB;function Pne(e){var t=e.visible,n=e.setTriggerVisible,r=e.triggerRef,o=e.onVisibleChange,i=e.autoFocus,a=c.useRef(!1),l=function(){if(t&&r.current){var m,h,g,v;(m=r.current)===null||m===void 0||(h=m.triggerRef)===null||h===void 0||(g=h.current)===null||g===void 0||(v=g.focus)===null||v===void 0||v.call(g),n(!1),typeof o=="function"&&o(!1)}},s=function(){var m,h,g,v,C=bD((m=r.current)===null||m===void 0||(h=m.popupRef)===null||h===void 0||(g=h.current)===null||g===void 0||(v=g.getElement)===null||v===void 0?void 0:v.call(g)),S=C[0];return S!=null&&S.focus?(S.focus(),a.current=!0,!0):!1},d=function(m){switch(m.keyCode){case Rne:l();break;case Tne:{var h=!1;a.current||(h=s()),h?m.preventDefault():l();break}}};c.useEffect(function(){return t?(window.addEventListener("keydown",d),i&&Zt(s,3),function(){window.removeEventListener("keydown",d),a.current=!1}):function(){a.current=!1}},[t])}var Nne=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function Mne(e,t){var n=e.arrow,r=n===void 0?!1:n,o=e.prefixCls,i=o===void 0?"rc-dropdown":o,a=e.transitionName,l=e.animation,s=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,m=e.placements,h=m===void 0?_ne:m,g=e.getPopupContainer,v=e.showAction,C=e.hideAction,S=e.overlayClassName,y=e.overlayStyle,x=e.visible,E=e.trigger,w=E===void 0?["hover"]:E,I=e.autoFocus,O=vt(e,Nne),_=c.useState(),R=ue(_,2),M=R[0],P=R[1],D="visible"in e?x:M,N=c.useRef(null);c.useImperativeHandle(t,function(){return N.current}),Pne({visible:D,setTriggerVisible:P,triggerRef:N,onVisibleChange:e.onVisibleChange,autoFocus:I});var T=function(){var J=e.overlay,X;return typeof J=="function"?X=J():X=J,X},L=function(J){var X=e.onOverlayClick;P(!1),X&&X(J)},z=function(J){var X=e.onVisibleChange;P(J),typeof X=="function"&&X(J)},F=function(){var J=T();return c.createElement(c.Fragment,null,r&&c.createElement("div",{className:"".concat(i,"-arrow")}),J)},V=function(){var J=e.overlay;return typeof J=="function"?F:F()},j=function(){var J=e.minOverlayWidthMatchTrigger,X=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?J:!X},U=function(){var J=e.openClassName;return J!==void 0?J:"".concat(i,"-open")},G=function(){var J=e.children,X=J.props?J.props:{},Y=te(X.className,U());return D&&J?c.cloneElement(J,{className:Y}):J},W=C;return!W&&w.indexOf("contextMenu")!==-1&&(W=["click"]),c.createElement(yD,H(H({builtinPlacements:h},O),{},{prefixCls:i,ref:N,popupClassName:te(S,Q({},"".concat(i,"-show-arrow"),r)),popupStyle:y,action:w,showAction:v,hideAction:W||[],popupPlacement:f,popupAlign:s,popupTransitionName:a,popupAnimation:l,popupVisible:D,stretch:j()?"minWidth":"",popup:V(),onPopupVisibleChange:z,onPopupClick:L,getPopupContainer:g}),G())}const Ane=c.forwardRef(Mne);var SD=c.createContext(null);function Qx(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function CD(e){var t=c.useContext(SD);return Qx(t,e)}var Lne=["children","locked"],Ai=c.createContext(null);function Dne(e,t){var n=H({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function xf(e){var t=e.children,n=e.locked,r=vt(e,Lne),o=c.useContext(Ai),i=Bs(function(){return Dne(o,r)},[o,r],function(a,l){return!n&&(a[0]!==l[0]||!Da(a[1],l[1],!0))});return c.createElement(Ai.Provider,{value:i},t)}var kne=[],xD=c.createContext(null);function gv(){return c.useContext(xD)}var ED=c.createContext(kne);function Rc(e){var t=c.useContext(ED);return c.useMemo(function(){return e!==void 0?[].concat(Pe(t),[e]):t},[t,e])}var wD=c.createContext(null),Zx=c.createContext({}),wC=De.LEFT,IC=De.RIGHT,$C=De.UP,Xm=De.DOWN,Ym=De.ENTER,ID=De.ESC,sd=De.HOME,ud=De.END,yR=[$C,Xm,wC,IC];function Fne(e,t,n,r){var o,i,a,l,s="prev",d="next",f="children",m="parent";if(e==="inline"&&r===Ym)return{inlineTrigger:!0};var h=(o={},Q(o,$C,s),Q(o,Xm,d),o),g=(i={},Q(i,wC,n?d:s),Q(i,IC,n?s:d),Q(i,Xm,f),Q(i,Ym,f),i),v=(a={},Q(a,$C,s),Q(a,Xm,d),Q(a,Ym,f),Q(a,ID,m),Q(a,wC,n?f:m),Q(a,IC,n?m:f),a),C={inline:h,horizontal:g,vertical:v,inlineSub:h,horizontalSub:v,verticalSub:v},S=(l=C["".concat(e).concat(t?"":"Sub")])===null||l===void 0?void 0:l[r];switch(S){case s:return{offset:-1,sibling:!0};case d:return{offset:1,sibling:!0};case m:return{offset:-1,sibling:!1};case f:return{offset:1,sibling:!1};default:return null}}function Bne(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function zne(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function $D(e,t){var n=bD(e,!0);return n.filter(function(r){return t.has(r)})}function bR(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=$D(e,t),i=o.length,a=o.findIndex(function(l){return n===l});return r<0?a===-1?a=i-1:a-=1:r>0&&(a+=1),a=(a+i)%i,o[a]}function Hne(e,t,n,r,o,i,a,l,s,d){var f=c.useRef(),m=c.useRef();m.current=t;var h=function(){Zt.cancel(f.current)};return c.useEffect(function(){return function(){h()}},[]),function(g){var v=g.which;if([].concat(yR,[Ym,ID,sd,ud]).includes(v)){var C,S,y,x=function(){C=new Set,S=new Map,y=new Map;var z=i();return z.forEach(function(F){var V=document.querySelector("[data-menu-id='".concat(Qx(r,F),"']"));V&&(C.add(V),y.set(V,F),S.set(F,V))}),C};x();var E=S.get(t),w=zne(E,C),I=y.get(w),O=Fne(e,a(I,!0).length===1,n,v);if(!O&&v!==sd&&v!==ud)return;(yR.includes(v)||[sd,ud].includes(v))&&g.preventDefault();var _=function(z){if(z){var F=z,V=z.querySelector("a");V!=null&&V.getAttribute("href")&&(F=V);var j=y.get(z);l(j),h(),f.current=Zt(function(){m.current===j&&F.focus()})}};if([sd,ud].includes(v)||O.sibling||!w){var R;!w||e==="inline"?R=o.current:R=Bne(w);var M,P=$D(R,C);v===sd?M=P[0]:v===ud?M=P[P.length-1]:M=bR(R,C,w,O.offset),_(M)}else if(O.inlineTrigger)s(I);else if(O.offset>0)s(I,!0),h(),f.current=Zt(function(){x();var L=w.getAttribute("aria-controls"),z=document.getElementById(L),F=bR(z,C);_(F)},5);else if(O.offset<0){var D=a(I,!0),N=D[D.length-2],T=S.get(N);s(N,!1),_(T)}}d==null||d(g)}}function jne(e){Promise.resolve().then(e)}var Jx="__RC_UTIL_PATH_SPLIT__",SR=function(t){return t.join(Jx)},Vne=function(t){return t.split(Jx)},OC="rc-menu-more";function Une(){var e=c.useState({}),t=ue(e,2),n=t[1],r=c.useRef(new Map),o=c.useRef(new Map),i=c.useState([]),a=ue(i,2),l=a[0],s=a[1],d=c.useRef(0),f=c.useRef(!1),m=function(){f.current||n({})},h=c.useCallback(function(E,w){var I=SR(w);o.current.set(I,E),r.current.set(E,I),d.current+=1;var O=d.current;jne(function(){O===d.current&&m()})},[]),g=c.useCallback(function(E,w){var I=SR(w);o.current.delete(I),r.current.delete(E)},[]),v=c.useCallback(function(E){s(E)},[]),C=c.useCallback(function(E,w){var I=r.current.get(E)||"",O=Vne(I);return w&&l.includes(O[0])&&O.unshift(OC),O},[l]),S=c.useCallback(function(E,w){return E.some(function(I){var O=C(I,!0);return O.includes(w)})},[C]),y=function(){var w=Pe(r.current.keys());return l.length&&w.push(OC),w},x=c.useCallback(function(E){var w="".concat(r.current.get(E)).concat(Jx),I=new Set;return Pe(o.current.keys()).forEach(function(O){O.startsWith(w)&&I.add(o.current.get(O))}),I},[]);return c.useEffect(function(){return function(){f.current=!0}},[]),{registerPath:h,unregisterPath:g,refreshOverflowKeys:v,isSubPathKey:S,getKeyPath:C,getKeys:y,getSubPathKeys:x}}function Eu(e){var t=c.useRef(e);t.current=e;var n=c.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a1&&(x.motionAppear=!1);var E=x.onVisibleChanged;return x.onVisibleChanged=function(w){return!h.current&&!w&&S(!0),E==null?void 0:E(w)},C?null:c.createElement(xf,{mode:i,locked:!h.current},c.createElement(di,je({visible:y},x,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(w){var I=w.className,O=w.style;return c.createElement(eE,{id:t,className:I,style:O},o)}))}var ure=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],cre=["active"],dre=function(t){var n,r=t.style,o=t.className,i=t.title,a=t.eventKey;t.warnKey;var l=t.disabled,s=t.internalPopupClose,d=t.children,f=t.itemIcon,m=t.expandIcon,h=t.popupClassName,g=t.popupOffset,v=t.onClick,C=t.onMouseEnter,S=t.onMouseLeave,y=t.onTitleClick,x=t.onTitleMouseEnter,E=t.onTitleMouseLeave,w=vt(t,ure),I=CD(a),O=c.useContext(Ai),_=O.prefixCls,R=O.mode,M=O.openKeys,P=O.disabled,D=O.overflowDisabled,N=O.activeKey,T=O.selectedKeys,L=O.itemIcon,z=O.expandIcon,F=O.onItemClick,V=O.onOpenChange,j=O.onActive,U=c.useContext(Zx),G=U._internalRenderSubMenuItem,W=c.useContext(wD),q=W.isSubPathKey,J=Rc(),X="".concat(_,"-submenu"),Y=P||l,ne=c.useRef(),le=c.useRef(),we=f||L,Ie=m||z,Ce=M.includes(a),ce=!D&&Ce,he=q(T,a),ie=OD(a,Y,x,E),pe=ie.active,fe=vt(ie,cre),Oe=c.useState(!1),Se=ue(Oe,2),de=Se[0],Re=Se[1],be=function(ke){Y||Re(ke)},Xe=function(ke){be(!0),C==null||C({key:a,domEvent:ke})},Qe=function(ke){be(!1),S==null||S({key:a,domEvent:ke})},ft=c.useMemo(function(){return pe||(R!=="inline"?de||q([N],a):!1)},[R,pe,N,de,a,q]),ct=_D(J.length),ut=function(ke){Y||(y==null||y({key:a,domEvent:ke}),R==="inline"&&V(a,!Ce))},dt=Eu(function(Ee){v==null||v(Gh(Ee)),F(Ee)}),He=function(ke){R!=="inline"&&V(a,ke)},Je=function(){j(a)},ee=I&&"".concat(I,"-popup"),re=c.createElement("div",je({role:"menuitem",style:ct,className:"".concat(X,"-title"),tabIndex:Y?null:-1,ref:ne,title:typeof i=="string"?i:null,"data-menu-id":D&&I?null:I,"aria-expanded":ce,"aria-haspopup":!0,"aria-controls":ee,"aria-disabled":Y,onClick:ut,onFocus:Je},fe),i,c.createElement(RD,{icon:R!=="horizontal"?Ie:null,props:H(H({},t),{},{isOpen:ce,isSubMenu:!0})},c.createElement("i",{className:"".concat(X,"-arrow")}))),oe=c.useRef(R);if(R!=="inline"&&J.length>1?oe.current="vertical":oe.current=R,!D){var xe=oe.current;re=c.createElement(lre,{mode:xe,prefixCls:X,visible:!s&&ce&&R!=="inline",popupClassName:h,popupOffset:g,popup:c.createElement(xf,{mode:xe==="horizontal"?"vertical":xe},c.createElement(eE,{id:ee,ref:le},d)),disabled:Y,onVisibleChange:He},re)}var ge=c.createElement(oa.Item,je({role:"none"},w,{component:"li",style:r,className:te(X,"".concat(X,"-").concat(R),o,(n={},Q(n,"".concat(X,"-open"),ce),Q(n,"".concat(X,"-active"),ft),Q(n,"".concat(X,"-selected"),he),Q(n,"".concat(X,"-disabled"),Y),n)),onMouseEnter:Xe,onMouseLeave:Qe}),re,!D&&c.createElement(sre,{id:ee,open:ce,keyPath:J},d));return G&&(ge=G(ge,t,{selected:he,active:ft,open:ce,disabled:Y})),c.createElement(xf,{onItemClick:dt,mode:R==="horizontal"?"vertical":R,itemIcon:we,expandIcon:Ie},ge)};function yv(e){var t=e.eventKey,n=e.children,r=Rc(t),o=tE(n,r),i=gv();c.useEffect(function(){if(i)return i.registerPath(t,r),function(){i.unregisterPath(t,r)}},[r]);var a;return i?a=o:a=c.createElement(dre,e,o),c.createElement(ED.Provider,{value:r},a)}var fre=["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"],vu=[],pre=c.forwardRef(function(e,t){var n,r,o=e,i=o.prefixCls,a=i===void 0?"rc-menu":i,l=o.rootClassName,s=o.style,d=o.className,f=o.tabIndex,m=f===void 0?0:f,h=o.items,g=o.children,v=o.direction,C=o.id,S=o.mode,y=S===void 0?"vertical":S,x=o.inlineCollapsed,E=o.disabled,w=o.disabledOverflow,I=o.subMenuOpenDelay,O=I===void 0?.1:I,_=o.subMenuCloseDelay,R=_===void 0?.1:_,M=o.forceSubMenuRender,P=o.defaultOpenKeys,D=o.openKeys,N=o.activeKey,T=o.defaultActiveFirst,L=o.selectable,z=L===void 0?!0:L,F=o.multiple,V=F===void 0?!1:F,j=o.defaultSelectedKeys,U=o.selectedKeys,G=o.onSelect,W=o.onDeselect,q=o.inlineIndent,J=q===void 0?24:q,X=o.motion,Y=o.defaultMotions,ne=o.triggerSubMenuAction,le=ne===void 0?"hover":ne,we=o.builtinPlacements,Ie=o.itemIcon,Ce=o.expandIcon,ce=o.overflowedIndicator,he=ce===void 0?"...":ce,ie=o.overflowedIndicatorPopupClassName,pe=o.getPopupContainer,fe=o.onClick,Oe=o.onOpenChange,Se=o.onKeyDown;o.openAnimation,o.openTransitionName;var de=o._internalRenderMenuItem,Re=o._internalRenderSubMenuItem,be=vt(o,fre),Xe=c.useMemo(function(){return rre(g,h,vu)},[g,h]),Qe=c.useState(!1),ft=ue(Qe,2),ct=ft[0],ut=ft[1],dt=c.useRef(),He=Kne(C),Je=v==="rtl",ee=Lr(P,{value:D,postState:function(Ge){return Ge||vu}}),re=ue(ee,2),oe=re[0],xe=re[1],ge=function(Ge){var Ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function rt(){xe(Ge),Oe==null||Oe(Ge)}Ct?Pi.flushSync(rt):rt()},Ee=c.useState(oe),ke=ue(Ee,2),Ye=ke[0],Fe=ke[1],ot=c.useRef(!1),Ae=c.useMemo(function(){return(y==="inline"||y==="vertical")&&x?["vertical",x]:[y,!1]},[y,x]),Ke=ue(Ae,2),Ue=Ke[0],ze=Ke[1],at=Ue==="inline",$t=c.useState(Ue),tt=ue($t,2),lt=tt[0],_e=tt[1],Ne=c.useState(ze),Te=ue(Ne,2),We=Te[0],qe=Te[1];c.useEffect(function(){_e(Ue),qe(ze),ot.current&&(at?xe(Ye):ge(vu))},[Ue,ze]);var ht=c.useState(0),en=ue(ht,2),tn=en[0],Rn=en[1],_t=tn>=Xe.length-1||lt!=="horizontal"||w;c.useEffect(function(){at&&Fe(oe)},[oe]),c.useEffect(function(){return ot.current=!0,function(){ot.current=!1}},[]);var zt=Une(),Tn=zt.registerPath,zn=zt.unregisterPath,wr=zt.refreshOverflowKeys,gr=zt.isSubPathKey,Dn=zt.getKeyPath,Fr=zt.getKeys,ho=zt.getSubPathKeys,kn=c.useMemo(function(){return{registerPath:Tn,unregisterPath:zn}},[Tn,zn]),vr=c.useMemo(function(){return{isSubPathKey:gr}},[gr]);c.useEffect(function(){wr(_t?vu:Xe.slice(tn+1).map(function(et){return et.key}))},[tn,_t]);var pi=Lr(N||T&&((n=Xe[0])===null||n===void 0?void 0:n.key),{value:N}),go=ue(pi,2),Wn=go[0],Zr=go[1],Jr=Eu(function(et){Zr(et)}),mi=Eu(function(){Zr(void 0)});c.useImperativeHandle(t,function(){return{list:dt.current,focus:function(Ge){var Ct,rt=Wn??((Ct=Xe.find(function(Pn){return!Pn.props.disabled}))===null||Ct===void 0?void 0:Ct.key);if(rt){var nt,Nt,Gt;(nt=dt.current)===null||nt===void 0||(Nt=nt.querySelector("li[data-menu-id='".concat(Qx(He,rt),"']")))===null||Nt===void 0||(Gt=Nt.focus)===null||Gt===void 0||Gt.call(Nt,Ge)}}}});var Br=Lr(j||[],{value:U,postState:function(Ge){return Array.isArray(Ge)?Ge:Ge==null?vu:[Ge]}}),zr=ue(Br,2),Kn=zr[0],Gn=zr[1],eo=function(Ge){if(z){var Ct=Ge.key,rt=Kn.includes(Ct),nt;V?rt?nt=Kn.filter(function(Gt){return Gt!==Ct}):nt=[].concat(Pe(Kn),[Ct]):nt=[Ct],Gn(nt);var Nt=H(H({},Ge),{},{selectedKeys:nt});rt?W==null||W(Nt):G==null||G(Nt)}!V&&oe.length&<!=="inline"&&ge(vu)},to=Eu(function(et){fe==null||fe(Gh(et)),eo(et)}),lr=Eu(function(et,Ge){var Ct=oe.filter(function(nt){return nt!==et});if(Ge)Ct.push(et);else if(lt!=="inline"){var rt=ho(et);Ct=Ct.filter(function(nt){return!rt.has(nt)})}Da(oe,Ct,!0)||ge(Ct,!0)}),Hr=Eu(pe),vo=function(Ge,Ct){var rt=Ct??!oe.includes(Ge);lr(Ge,rt)},zo=Hne(lt,Wn,Je,He,dt,Fr,Dn,Zr,vo,Se);c.useEffect(function(){ut(!0)},[]);var yo=c.useMemo(function(){return{_internalRenderMenuItem:de,_internalRenderSubMenuItem:Re}},[de,Re]),Ir=lt!=="horizontal"||w?Xe:Xe.map(function(et,Ge){return c.createElement(xf,{key:et.key,overflowDisabled:Ge>tn},et)}),$r=c.createElement(oa,je({id:C,ref:dt,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:vv,className:te(a,"".concat(a,"-root"),"".concat(a,"-").concat(lt),d,(r={},Q(r,"".concat(a,"-inline-collapsed"),We),Q(r,"".concat(a,"-rtl"),Je),r),l),dir:v,style:s,role:"menu",tabIndex:m,data:Ir,renderRawItem:function(Ge){return Ge},renderRawRest:function(Ge){var Ct=Ge.length,rt=Ct?Xe.slice(-Ct):null;return c.createElement(yv,{eventKey:OC,title:he,disabled:_t,internalPopupClose:Ct===0,popupClassName:ie},rt)},maxCount:lt!=="horizontal"||w?oa.INVALIDATE:oa.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Ge){Rn(Ge)},onKeyDown:zo},be));return c.createElement(Zx.Provider,{value:yo},c.createElement(SD.Provider,{value:He},c.createElement(xf,{prefixCls:a,rootClassName:l,mode:lt,openKeys:oe,rtl:Je,disabled:E,motion:ct?X:null,defaultMotions:ct?Y:null,activeKey:Wn,onActive:Jr,onInactive:mi,selectedKeys:Kn,inlineIndent:J,subMenuOpenDelay:O,subMenuCloseDelay:R,forceSubMenuRender:M,builtinPlacements:we,triggerSubMenuAction:le,getPopupContainer:Hr,itemIcon:Ie,expandIcon:Ce,onItemClick:to,onOpenChange:lr},c.createElement(wD.Provider,{value:vr},$r),c.createElement("div",{style:{display:"none"},"aria-hidden":!0},c.createElement(xD.Provider,{value:kn},Xe)))))}),mre=["className","title","eventKey","children"],hre=["children"],gre=function(t){var n=t.className,r=t.title;t.eventKey;var o=t.children,i=vt(t,mre),a=c.useContext(Ai),l=a.prefixCls,s="".concat(l,"-item-group");return c.createElement("li",je({role:"presentation"},i,{onClick:function(f){return f.stopPropagation()},className:te(s,n)}),c.createElement("div",{role:"presentation",className:"".concat(s,"-title"),title:typeof r=="string"?r:void 0},r),c.createElement("ul",{role:"group",className:"".concat(s,"-list")},o))};function bv(e){var t=e.children,n=vt(e,hre),r=Rc(n.eventKey),o=tE(t,r),i=gv();return i?o:c.createElement(gre,kr(n,["warnKey"]),o)}function nE(e){var t=e.className,n=e.style,r=c.useContext(Ai),o=r.prefixCls,i=gv();return i?null:c.createElement("li",{className:te("".concat(o,"-item-divider"),t),style:n})}var Gf=pre;Gf.Item=vv;Gf.SubMenu=yv;Gf.ItemGroup=bv;Gf.Divider=nE;const vre=e=>{const{componentCls:t,motionDurationSlow:n,menuHorizontalHeight:r,colorSplit:o,lineWidth:i,lineType:a,menuItemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:`${r}px`,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:l},[`> ${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"}}}},yre=vre,bre=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})`}}}}},Sre=bre,xR=e=>Object.assign({},ka(e)),Cre=(e,t)=>{const{componentCls:n,colorItemText:r,colorItemTextSelected:o,colorGroupTitle:i,colorItemBg:a,colorSubItemBg:l,colorItemBgSelected:s,colorActiveBarHeight:d,colorActiveBarWidth:f,colorActiveBarBorderSize:m,motionDurationSlow:h,motionEaseInOut:g,motionEaseOut:v,menuItemPaddingInline:C,motionDurationMid:S,colorItemTextHover:y,lineType:x,colorSplit:E,colorItemTextDisabled:w,colorDangerItemText:I,colorDangerItemTextHover:O,colorDangerItemTextSelected:_,colorDangerItemBgActive:R,colorDangerItemBgSelected:M,colorItemBgHover:P,menuSubMenuBg:D,colorItemTextSelectedHorizontal:N,colorItemBgSelectedHorizontal:T}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},xR(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${w} !important`},[`${n}-item:hover, ${n}-submenu-title:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:y}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:P},"&:active":{backgroundColor:s}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:P},"&:active":{backgroundColor:s}}},[`${n}-item-danger`]:{color:I,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:O}},[`&${n}-item:active`]:{background:R}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:_},["a, a:hover"]:{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:s,[`&${n}-item-danger`]:{backgroundColor:M}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},xR(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:D},[`&${n}-popup > ${n}`]:{backgroundColor:a},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:m,marginTop:-m,marginBottom:0,borderRadius:0,"&::after":{position:"absolute",insetInline:C,bottom:0,borderBottom:`${d}px solid transparent`,transition:`border-color ${h} ${g}`,content:'""'},["&:hover, &-active, &-open"]:{"&::after":{borderBottomWidth:d,borderBottomColor:N}},["&-selected"]:{color:N,backgroundColor:T,"&::after":{borderBottomWidth:d,borderBottomColor:N}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${m}px ${x} ${E}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item, ${n}-submenu-title`]:m&&f?{width:`calc(100% + ${m}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${f}px solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${S} ${v}`,`opacity ${S} ${v}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:_}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${S} ${g}`,`opacity ${S} ${g}`].join(",")}}}}}},ER=Cre,wR=e=>{const{componentCls:t,menuItemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,marginXXS:l}=e,s=o+i+a;return{[`${t}-item`]:{position:"relative"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:`calc(100% - ${r*2}px)`},[`${t}-submenu`]:{paddingBottom:.02},[`> ${t}-item, - > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title, - ${t}-submenu-title`]:{paddingInlineEnd:s}}},xre=e=>{const{componentCls:t,iconCls:n,menuItemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:l,motionEaseOut:s,paddingXL:d,fontSizeSM:f,fontSizeLG:m,motionDurationSlow:h,paddingXS:g,boxShadowSecondary:v}=e,C={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{["&-inline, &-vertical"]:Object.assign({[`&${t}-root`]:{boxShadow:"none"}},wR(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},wR(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 ${h}`,`background ${h}`,`padding ${l} ${s}`].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`]:C,[`& ${t}-item-group-title`]:{paddingInlineStart:d}},[`${t}-item`]:C}},{[`${t}-inline-collapsed`]:{width:r*2,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:m,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}px)`,textOverflow:"clip",[` - ${t}-submenu-arrow, - ${t}-submenu-expand-icon - `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:m,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({},Cs),{paddingInline:g})}}]},Ere=xre,IR=e=>{const{componentCls:t,fontSize:n,motionDurationSlow:r,motionDurationMid:o,motionEaseInOut:i,motionEaseOut:a,iconCls:l,controlHeightSM:s}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${r}`,`background ${r}`,`padding ${r} ${i}`].join(","),[`${t}-item-icon, ${l}`]:{minWidth:n,fontSize:n,transition:[`font-size ${o} ${a}`,`margin ${r} ${i}`,`color ${r}`].join(","),"+ span":{marginInlineStart:s-n,opacity:1,transition:[`opacity ${r} ${i}`,`margin ${r}`,`color ${r}`].join(",")}},[`${t}-item-icon`]:Object.assign({},Bf()),[`&${t}-item-only-child`]:{[`> ${l}, > ${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"}}}},$R=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})`}}}}},wre=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,lineHeight:l,paddingXS:s,padding:d,colorSplit:f,lineWidth:m,zIndexPopup:h,borderRadiusLG:g,radiusSubMenuItem:v,menuArrowSize:C,menuArrowOffset:S,lineType:y,menuPanelMaskInset:x}=e;return[{"":{[`${n}`]:Object.assign(Object.assign({},yf()),{["&-hidden"]:{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},hn(e)),yf()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:[`background ${o}`,`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`].join(","),["ul, ol"]:{margin:0,padding:0,listStyle:"none"},["&-overflow"]:{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.radiusItem},[`${n}-item-group-title`]:{padding:`${s}px ${d}px`,fontSize:r,lineHeight:l,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:f,borderStyle:y,borderWidth:0,borderTopWidth:m,marginBlock:m,padding:0,"&-dashed":{borderStyle:"dashed"}}}),IR(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${r*2}px ${d}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:h,background:"transparent",borderRadius:g,boxShadow:"none",transformOrigin:"0 0","&::before":{position:"absolute",inset:`${x}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:x},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:g},IR(e)),$R(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:v},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})}}),$R(e)),{[`&-inline-collapsed ${n}-submenu-arrow, - &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${S})`},"&::after":{transform:`rotate(45deg) translateX(-${S})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${C*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${S})`},"&::before":{transform:`rotate(45deg) translateX(${S})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Ire=(e,t)=>_n("Menu",(r,o)=>{let{overrideComponentToken:i}=o;if(t===!1)return[];const{colorBgElevated:a,colorPrimary:l,colorError:s,colorErrorHover:d,colorTextLightSolid:f,controlHeightLG:m,fontSize:h}=r,g=h/7*5,v=Kt(r,{menuItemHeight:m,menuItemPaddingInline:r.margin,menuArrowSize:g,menuHorizontalHeight:m*1.15,menuArrowOffset:`${g*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:a}),C=new bn(f).setAlpha(.65).toRgbString(),S=Kt(v,{colorItemText:C,colorItemTextHover:f,colorGroupTitle:C,colorItemTextSelected:f,colorItemBg:"#001529",colorSubItemBg:"#000c17",colorItemBgActive:"transparent",colorItemBgSelected:l,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemTextDisabled:new bn(f).setAlpha(.25).toRgbString(),colorDangerItemText:s,colorDangerItemTextHover:d,colorDangerItemTextSelected:f,colorDangerItemBgActive:s,colorDangerItemBgSelected:s,menuSubMenuBg:"#001529",colorItemTextSelectedHorizontal:f,colorItemBgSelectedHorizontal:l},Object.assign({},i));return[wre(v),yre(v),Ere(v),ER(v,"light"),ER(S,"dark"),Sre(v),fL(v),yc(v,"slide-up"),yc(v,"slide-down"),jf(v,"zoom-big")]},r=>{const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:l,colorText:s,colorTextDescription:d,colorBgContainer:f,colorFillAlter:m,colorFillContent:h,lineWidth:g,lineWidthBold:v,controlItemBgActive:C,colorBgTextHover:S}=r;return{dropdownWidth:160,zIndexPopup:r.zIndexPopupBase+50,radiusItem:r.borderRadiusLG,radiusSubMenuItem:r.borderRadiusSM,colorItemText:s,colorItemTextHover:s,colorItemTextHoverHorizontal:o,colorGroupTitle:d,colorItemTextSelected:o,colorItemTextSelectedHorizontal:o,colorItemBg:f,colorItemBgHover:S,colorItemBgActive:h,colorSubItemBg:m,colorItemBgSelected:C,colorItemBgSelectedHorizontal:"transparent",colorActiveBarWidth:0,colorActiveBarHeight:v,colorActiveBarBorderSize:g,colorItemTextDisabled:a,colorDangerItemText:i,colorDangerItemTextHover:i,colorDangerItemTextSelected:i,colorDangerItemBgActive:l,colorDangerItemBgSelected:l,itemMarginInline:r.marginXXS}})(e);var $re=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:t}=e,n=$re(e,["children"]),r=c.useContext(RC),o=c.useMemo(()=>Object.assign(Object.assign({},r),n),[r,n.prefixCls,n.mode,n.selectable]);return c.createElement(RC.Provider,{value:o},t)},OR=RC;var Ore=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=Ore(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=c.useContext(yt),a=i("menu",t),l=te({[`${a}-item-divider-dashed`]:!!r},n);return c.createElement(nE,Object.assign({className:l},o))},ND=_re;globalThis&&globalThis.__rest;const MD=c.createContext({}),Rre=c.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Xh=Rre,Tre=e=>{var t;const{className:n,children:r,icon:o,title:i,danger:a}=e,{prefixCls:l,firstLevel:s,direction:d,disableMenuItemTitleTooltip:f,inlineCollapsed:m}=c.useContext(Xh),h=x=>{const E=c.createElement("span",{className:`${l}-title-content`},r);return(!o||Mi(r)&&r.type==="span")&&r&&x&&s&&typeof r=="string"?c.createElement("div",{className:`${l}-inline-collapsed-noicon`},r.charAt(0)):E},{siderCollapsed:g}=c.useContext(MD);let v=i;typeof i>"u"?v=s?r:"":i===!1&&(v="");const C={title:v};!g&&!m&&(C.title=null,C.open=!1);const S=ai(r).length;let y=c.createElement(vv,Object.assign({},kr(e,["title","icon","danger"]),{className:te({[`${l}-item-danger`]:a,[`${l}-item-only-child`]:(o?S+1:S)===1},n),title:typeof i=="string"?i:void 0}),mr(o,{className:te(Mi(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),h(m));return f||(y=c.createElement(Wf,Object.assign({},C,{placement:d==="rtl"?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`}),y)),y},AD=Tre,Pre=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,a=c.useContext(Xh),{prefixCls:l,inlineCollapsed:s,theme:d,mode:f}=a,m=Rc();let h;if(!r)h=s&&!m.length&&o&&typeof o=="string"?c.createElement("div",{className:`${l}-inline-collapsed-noicon`},o.charAt(0)):c.createElement("span",{className:`${l}-title-content`},o);else{const C=Mi(o)&&o.type==="span";h=c.createElement(c.Fragment,null,mr(r,{className:te(Mi(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),C?o:c.createElement("span",{className:`${l}-title-content`},o))}const g=c.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]),v=f==="horizontal"?[0,8]:[10,0];return c.createElement(Xh.Provider,{value:g},c.createElement(yv,Object.assign({popupOffset:v},kr(e,["icon"]),{title:h,popupClassName:te(l,n,`${l}-${i||d}`)})))},LD=Pre;var Nre=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:l}=r,s=Nre(r,["label","children","key","type"]),d=a??`tmp-${n}`;return i||l==="group"?l==="group"?c.createElement(bv,Object.assign({key:d},s,{title:o}),TC(i)):c.createElement(LD,Object.assign({key:d},s,{title:o}),TC(i)):l==="divider"?c.createElement(ND,Object.assign({key:d},s)):c.createElement(AD,Object.assign({key:d},s),o)}return null}).filter(t=>t)}function Mre(e){return c.useMemo(()=>e&&TC(e),[e])}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{var n,r;const o=c.useContext(OR),i=o||{},{getPrefixCls:a,getPopupContainer:l,direction:s}=c.useContext(yt),d=a(),{prefixCls:f,className:m,theme:h="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:v,inlineCollapsed:C,siderCollapsed:S,items:y,children:x,rootClassName:E,mode:w,selectable:I,onClick:O}=e,_=Are(e,["prefixCls","className","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick"]),R=kr(_,["collapsedWidth"]),M=Mre(y)||x;(n=i.validator)===null||n===void 0||n.call(i,{mode:w});const P=so(function(){var W;O==null||O.apply(void 0,arguments),(W=i.onClick)===null||W===void 0||W.call(i)}),D=i.mode||w,N=I??i.selectable,T=c.useMemo(()=>S!==void 0?S:C,[C,S]),L={horizontal:{motionName:`${d}-slide-up`},inline:oL(d),other:{motionName:`${d}-zoom-big`}},z=a("menu",f||i.prefixCls),[F,V]=Ire(z,!o),j=te(`${z}-${h}`,m);let U;if(typeof g=="function")U=g;else{const W=g||i.expandIcon;U=mr(W,{className:te(`${z}-submenu-expand-icon`,(r=W==null?void 0:W.props)===null||r===void 0?void 0:r.className)})}const G=c.useMemo(()=>({prefixCls:z,inlineCollapsed:T||!1,direction:s,firstLevel:!0,theme:h,mode:D,disableMenuItemTitleTooltip:v}),[z,T,s,v,h]);return F(c.createElement(OR.Provider,{value:null},c.createElement(Xh.Provider,{value:G},c.createElement(Gf,Object.assign({getPopupContainer:l,overflowedIndicator:c.createElement(SM,null),overflowedIndicatorPopupClassName:`${z}-${h}`,mode:D,selectable:N,onClick:P},R,{inlineCollapsed:T,className:j,prefixCls:z,direction:s,defaultMotions:L,expandIcon:U,ref:t,rootClassName:te(E,V)}),M))))}),Dre=Lre,Xf=c.forwardRef((e,t)=>{const n=c.useRef(null),r=c.useContext(MD);return c.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var i;(i=n.current)===null||i===void 0||i.focus(o)}})),c.createElement(Dre,Object.assign({ref:n},e,r))});Xf.Item=AD;Xf.SubMenu=LD;Xf.Divider=ND;Xf.ItemGroup=bv;const rE=Xf,DD=()=>{const[e,t]=c.useState(!1);return c.useEffect(()=>{t(oZ())},[]),e};function kre(e){let{className:t,direction:n,index:r,marginDirection:o,children:i,split:a,wrap:l}=e;const{horizontalSize:s,verticalSize:d,latestIndex:f,supportFlexGap:m}=c.useContext(kD);let h={};return m||(n==="vertical"?r{const{getPrefixCls:t,space:n,direction:r}=c.useContext(yt),{size:o=(n==null?void 0:n.size)||"small",align:i,className:a,rootClassName:l,children:s,direction:d="horizontal",prefixCls:f,split:m,style:h,wrap:g=!1}=e,v=Fre(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap"]),C=DD(),[S,y]=c.useMemo(()=>(Array.isArray(o)?o:[o,o]).map(L=>zre(L)),[o]),x=ai(s,{keepEmpty:!0}),E=i===void 0&&d==="horizontal"?"center":i,w=t("space",f),[I,O]=ZA(w),_=te(w,O,`${w}-${d}`,{[`${w}-rtl`]:r==="rtl",[`${w}-align-${E}`]:E},a,l),R=`${w}-item`,M=r==="rtl"?"marginLeft":"marginRight";let P=0;const D=x.map((L,z)=>{L!=null&&(P=z);const F=L&&L.key||`${R}-${z}`;return c.createElement(kre,{className:R,key:F,direction:d,index:z,marginDirection:M,split:m,wrap:g},L)}),N=c.useMemo(()=>({horizontalSize:S,verticalSize:y,latestIndex:P,supportFlexGap:C}),[S,y,P,C]);if(x.length===0)return null;const T={};return g&&(T.flexWrap="wrap",C||(T.marginBottom=-y)),C&&(T.columnGap=S,T.rowGap=y),I(c.createElement("div",Object.assign({className:_,style:Object.assign(Object.assign({},T),h)},v),c.createElement(kD.Provider,{value:N},D)))},FD=Hre;FD.Compact=iQ;const PC=FD,jre=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}}}}}},Vre=jre,Ure=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:l,motionDurationMid:s,dropdownPaddingVertical:d,fontSize:f,dropdownEdgeChildPadding:m,colorTextDisabled:h,fontSizeIcon:g,controlPaddingHorizontal:v,colorBgElevated:C}=e;return[{[t]:Object.assign(Object.assign({},hn(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 > ${l}-down`]:{fontSize:g,transform:"none"},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${l}-down`]:{fontSize:g},[`${l}-down::before`]:{transition:`transform ${s}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},[` - &-hidden, - &-menu-hidden, - &-menu-submenu-hidden - `]:{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:Nx},[`&${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:Ax},[`&${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:Mx},[`&${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:Lx}})},Wx(e,{colorBg:C,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:m,listStyleType:"none",backgroundColor:C,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},bf(e)),{[`${n}-item-group-title`]:{padding:`${d}px ${v}px`,color:e.colorTextDescription,transition:`all ${s}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:f,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${s}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${d}px ${v}px`,color:e.colorText,fontWeight:"normal",fontSize:f,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${s}`,borderRadius:e.borderRadiusSM,["&:hover, &-active"]:{backgroundColor:e.controlItemBgHover}},bf(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:h,cursor:"not-allowed","&:hover":{color:h,backgroundColor:C,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:h,backgroundColor:C,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[yc(e,"slide-up"),yc(e,"slide-down"),Hh(e,"move-up"),Hh(e,"move-down"),jf(e,"zoom-big")]]},BD=_n("Dropdown",(e,t)=>{let{rootPrefixCls:n}=t;const{marginXXS:r,sizePopupArrow:o,controlHeight:i,fontSize:a,lineHeight:l,paddingXXS:s,componentCls:d,borderRadiusLG:f}=e,m=(i-a*l)/2,{dropdownArrowOffset:h}=Ux({contentRadius:f}),g=Kt(e,{menuCls:`${d}-menu`,rootPrefixCls:n,dropdownArrowDistance:o/2+r,dropdownArrowOffset:h,dropdownPaddingVertical:m,dropdownEdgeChildPadding:s});return[Ure(g),Vre(g)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));var Wre=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}=c.useContext(yt),{prefixCls:o,type:i="default",danger:a,disabled:l,loading:s,onClick:d,htmlType:f,children:m,className:h,menu:g,arrow:v,autoFocus:C,overlay:S,trigger:y,align:x,open:E,onOpenChange:w,placement:I,getPopupContainer:O,href:_,icon:R=c.createElement(SM,null),title:M,buttonsRender:P=Ce=>Ce,mouseEnterDelay:D,mouseLeaveDelay:N,overlayClassName:T,overlayStyle:L,destroyPopupOnHide:z,dropdownRender:F}=e,V=Wre(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"]),j=n("dropdown",o),U=`${j}-button`,[G,W]=BD(j),q={menu:g,arrow:v,autoFocus:C,align:x,disabled:l,trigger:l?[]:y,onOpenChange:w,getPopupContainer:O||t,mouseEnterDelay:D,mouseLeaveDelay:N,overlayClassName:T,overlayStyle:L,destroyPopupOnHide:z,dropdownRender:F},{compactSize:J,compactItemClassnames:X}=Oc(j,r),Y=te(U,X,h,W);"overlay"in e&&(q.overlay=S),"open"in e&&(q.open=E),"placement"in e?q.placement=I:q.placement=r==="rtl"?"bottomLeft":"bottomRight";const ne=c.createElement(ri,{type:i,danger:a,disabled:l,loading:s,onClick:d,htmlType:f,href:_,title:M},m),le=c.createElement(ri,{type:i,danger:a,icon:R}),[we,Ie]=P([ne,le]);return G(c.createElement(PC.Compact,Object.assign({className:Y,size:J,block:!0},V),we,c.createElement(Ef,Object.assign({},q),Ie)))};zD.__ANT_BUTTON=!0;const Kre=zD,Sv=e=>{const{menu:t,arrow:n,prefixCls:r,children:o,trigger:i,disabled:a,dropdownRender:l,getPopupContainer:s,overlayClassName:d,rootClassName:f,open:m,onOpenChange:h,visible:g,onVisibleChange:v,mouseEnterDelay:C=.15,mouseLeaveDelay:S=.1,autoAdjustOverflow:y=!0,placement:x="",overlay:E,transitionName:w}=e,{getPopupContainer:I,getPrefixCls:O,direction:_}=c.useContext(yt),R=c.useMemo(()=>{const Y=O();return w!==void 0?w:x.includes("top")?`${Y}-slide-down`:`${Y}-slide-up`},[O,x,w]),M=c.useMemo(()=>x?x.includes("Center")?x.slice(0,x.indexOf("Center")):x:_==="rtl"?"bottomRight":"bottomLeft",[x,_]),P=O("dropdown",r),[D,N]=BD(P),{token:T}=ZL.useToken(),L=c.Children.only(o),z=mr(L,{className:te(`${P}-trigger`,{[`${P}-rtl`]:_==="rtl"},L.props.className),disabled:a}),F=a?[]:i;let V;F&&F.includes("contextMenu")&&(V=!0);const[j,U]=Lr(!1,{value:m??g}),G=so(Y=>{h==null||h(Y),v==null||v(Y),U(Y)}),W=te(d,f,N,{[`${P}-rtl`]:_==="rtl"}),q=QL({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:y,offset:T.marginXXS,arrowWidth:n?T.sizePopupArrow:0,borderRadius:T.borderRadius}),J=c.useCallback(()=>{U(!1)},[]),X=()=>{let Y;return t!=null&&t.items?Y=c.createElement(rE,Object.assign({},t)):typeof E=="function"?Y=E():Y=E,l&&(Y=l(Y)),Y=c.Children.only(typeof Y=="string"?c.createElement("span",null,Y):Y),c.createElement(PD,{prefixCls:`${P}-menu`,expandIcon:c.createElement("span",{className:`${P}-menu-submenu-arrow`},c.createElement(DS,{className:`${P}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:J,validator:ne=>{}},c.createElement(vc,null,Y))};return D(c.createElement(Ane,Object.assign({alignPoint:V},kr(e,["rootClassName"]),{mouseEnterDelay:C,mouseLeaveDelay:S,visible:j,builtinPlacements:q,arrow:!!n,overlayClassName:W,prefixCls:P,getPopupContainer:s||I,transitionName:R,trigger:F,overlay:X,placement:M,onVisibleChange:G}),z))};Sv.Button=Kre;const Gre=HL(Sv,"dropdown",e=>e),Xre=e=>c.createElement(Gre,Object.assign({},e),c.createElement("span",null));Sv._InternalPanelDoNotUseOrYouWillBeFired=Xre;const Ef=Sv,HD=c.createContext(null),Yre=HD.Provider,jD=c.createContext(null),qre=jD.Provider;var Qre=["prefixCls","className","style","checked","disabled","defaultChecked","type","onChange"],VD=c.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-checkbox":r,i=e.className,a=e.style,l=e.checked,s=e.disabled,d=e.defaultChecked,f=d===void 0?!1:d,m=e.type,h=m===void 0?"checkbox":m,g=e.onChange,v=vt(e,Qre),C=c.useRef(null),S=Lr(f,{value:l}),y=ue(S,2),x=y[0],E=y[1];c.useImperativeHandle(t,function(){return{focus:function(){var _;(_=C.current)===null||_===void 0||_.focus()},blur:function(){var _;(_=C.current)===null||_===void 0||_.blur()},input:C.current}});var w=te(o,i,(n={},Q(n,"".concat(o,"-checked"),x),Q(n,"".concat(o,"-disabled"),s),n)),I=function(_){s||("checked"in e||E(_.target.checked),g==null||g({target:H(H({},e),{},{checked:_.target.checked}),stopPropagation:function(){_.stopPropagation()},preventDefault:function(){_.preventDefault()},nativeEvent:_.nativeEvent}))};return c.createElement("span",{className:w,style:a},c.createElement("input",je({},v,{className:"".concat(o,"-input"),ref:C,onChange:I,disabled:s,checked:!!x,type:h})),c.createElement("span",{className:"".concat(o,"-inner")}))});const Zre=new Dt("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),Jre=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},hn(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"}})}},eoe=e=>{const{componentCls:t,radioWrapperMarginRight:n,radioCheckedColor:r,radioSize:o,motionDurationSlow:i,motionDurationMid:a,motionEaseInOut:l,motionEaseInOutCirc:s,radioButtonBg:d,colorBorder:f,lineWidth:m,radioDotSize:h,colorBgContainerDisabled:g,colorTextDisabled:v,paddingXS:C,radioDotDisabledColor:S,lineType:y,radioDotDisabledSize:x,wireframe:E,colorWhite:w}=e,I=`${t}-inner`;return{[`${t}-wrapper`]:Object.assign(Object.assign({},hn(e)),{position:"relative",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:`${m}px ${y} ${r}`,borderRadius:"50%",visibility:"hidden",animationName:Zre,animationDuration:i,animationTimingFunction:l,animationFillMode:"both",content:'""'},[t]:Object.assign(Object.assign({},hn(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center"}),[`${t}-wrapper:hover &, - &:hover ${I}`]:{borderColor:r},[`${t}-input:focus-visible + ${I}`]:Object.assign({},ka(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:E?r:w,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:d,borderColor:f,borderStyle:"solid",borderWidth:m,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,insetBlockEnd:0,insetInlineStart:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[I]:{borderColor:r,backgroundColor:E?d:r,"&::after":{transform:`scale(${h/o})`,opacity:1,transition:`all ${i} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[I]:{backgroundColor:g,borderColor:f,cursor:"not-allowed","&::after":{backgroundColor:S}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:v,cursor:"not-allowed"},[`&${t}-checked`]:{[I]:{"&::after":{transform:`scale(${x/o})`}}}},[`span${t} + *`]:{paddingInlineStart:C,paddingInlineEnd:C}})}},toe=e=>{const{radioButtonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:a,motionDurationSlow:l,motionDurationMid:s,radioButtonPaddingHorizontal:d,fontSize:f,radioButtonBg:m,fontSizeLG:h,controlHeightLG:g,controlHeightSM:v,paddingXS:C,borderRadius:S,borderRadiusSM:y,borderRadiusLG:x,radioCheckedColor:E,radioButtonCheckedBg:w,radioButtonHoverColor:I,radioButtonActiveColor:O,radioSolidCheckedColor:_,colorTextDisabled:R,colorBgContainerDisabled:M,radioDisabledButtonCheckedColor:P,radioDisabledButtonCheckedBg:D}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:d,paddingBlock:0,color:t,fontSize:f,lineHeight:`${n-o*2}px`,background:m,border:`${o}px ${i} ${a}`,borderBlockStartWidth:o+.02,borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${s}`,`background ${s}`,`border-color ${s}`,`box-shadow ${s}`].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 ${l}`,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:h,lineHeight:`${g-o*2}px`,"&:first-child":{borderStartStartRadius:x,borderEndStartRadius:x},"&:last-child":{borderStartEndRadius:x,borderEndEndRadius:x}},[`${r}-group-small &`]:{height:v,paddingInline:C-o,paddingBlock:0,lineHeight:`${v-o*2}px`,"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},"&:hover":{position:"relative",color:E},"&:has(:focus-visible)":Object.assign({},ka(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:E,background:w,borderColor:E,"&::before":{backgroundColor:E},"&:first-child":{borderColor:E},"&:hover":{color:I,borderColor:I,"&::before":{backgroundColor:I}},"&:active":{color:O,borderColor:O,"&::before":{backgroundColor:O}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:_,background:E,borderColor:E,"&:hover":{color:_,background:I,borderColor:I},"&:active":{color:_,background:O,borderColor:O}},"&-disabled":{color:R,backgroundColor:M,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:R,backgroundColor:M,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:P,backgroundColor:D,borderColor:a,boxShadow:"none"}}}},UD=_n("Radio",e=>{const{padding:t,lineWidth:n,controlItemBgActiveDisabled:r,colorTextDisabled:o,colorBgContainer:i,fontSizeLG:a,controlOutline:l,colorPrimaryHover:s,colorPrimaryActive:d,colorText:f,colorPrimary:m,marginXS:h,controlOutlineWidth:g,colorTextLightSolid:v,wireframe:C}=e,S=`0 0 0 ${g}px ${l}`,y=S,x=a,E=4,w=x-E*2,I=C?w:x-(E+n)*2,O=m,_=f,R=s,M=d,P=t-n,T=Kt(e,{radioFocusShadow:S,radioButtonFocusShadow:y,radioSize:x,radioDotSize:I,radioDotDisabledSize:w,radioCheckedColor:O,radioDotDisabledColor:o,radioSolidCheckedColor:v,radioButtonBg:i,radioButtonCheckedBg:i,radioButtonColor:_,radioButtonHoverColor:R,radioButtonActiveColor:M,radioButtonPaddingHorizontal:P,radioDisabledButtonCheckedBg:r,radioDisabledButtonCheckedColor:o,radioWrapperMarginRight:h});return[Jre(T),eoe(T),toe(T)]});var noe=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=c.useContext(HD),i=c.useContext(jD),{getPrefixCls:a,direction:l}=c.useContext(yt),s=c.useRef(null),d=Bo(t,s),{isFormItemInput:f}=c.useContext(la),m=M=>{var P,D;(P=e.onChange)===null||P===void 0||P.call(e,M),(D=o==null?void 0:o.onChange)===null||D===void 0||D.call(o,M)},{prefixCls:h,className:g,rootClassName:v,children:C,style:S}=e,y=noe(e,["prefixCls","className","rootClassName","children","style"]),x=a("radio",h),E=((o==null?void 0:o.optionType)||i)==="button"?`${x}-button`:x,[w,I]=UD(x),O=Object.assign({},y),_=c.useContext(zl);o&&(O.name=o.name,O.onChange=m,O.checked=e.value===o.value,O.disabled=(n=O.disabled)!==null&&n!==void 0?n:o.disabled),O.disabled=(r=O.disabled)!==null&&r!==void 0?r:_;const R=te(`${E}-wrapper`,{[`${E}-wrapper-checked`]:O.checked,[`${E}-wrapper-disabled`]:O.disabled,[`${E}-wrapper-rtl`]:l==="rtl",[`${E}-wrapper-in-form-item`]:f},g,v,I);return w(c.createElement("label",{className:R,style:S,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},c.createElement(VD,Object.assign({},O,{type:"radio",prefixCls:E,ref:d})),C!==void 0?c.createElement("span",null,C):null))},ooe=c.forwardRef(roe),Yh=ooe,ioe=c.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=c.useContext(yt),o=c.useContext(Fi),[i,a]=Lr(e.defaultValue,{value:e.value}),l=T=>{const L=i,z=T.target.value;"value"in e||a(z);const{onChange:F}=e;F&&z!==L&&F(T)},{prefixCls:s,className:d,rootClassName:f,options:m,buttonStyle:h="outline",disabled:g,children:v,size:C,style:S,id:y,onMouseEnter:x,onMouseLeave:E,onFocus:w,onBlur:I}=e,O=n("radio",s),_=`${O}-group`,[R,M]=UD(O);let P=v;m&&m.length>0&&(P=m.map(T=>typeof T=="string"||typeof T=="number"?c.createElement(Yh,{key:T.toString(),prefixCls:O,disabled:g,value:T,checked:i===T},T):c.createElement(Yh,{key:`radio-group-value-options-${T.value}`,prefixCls:O,disabled:T.disabled||g,value:T.value,checked:i===T.value,style:T.style},T.label)));const D=C||o,N=te(_,`${_}-${h}`,{[`${_}-${D}`]:D,[`${_}-rtl`]:r==="rtl"},d,f,M);return R(c.createElement("div",Object.assign({},hq(e),{className:N,style:S,onMouseEnter:x,onMouseLeave:E,onFocus:w,onBlur:I,id:y,ref:t}),c.createElement(Yre,{value:{onChange:l,value:i,disabled:e.disabled,name:e.name,optionType:e.optionType}},P)))}),aoe=c.memo(ioe);var loe=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}=c.useContext(yt),{prefixCls:r}=e,o=loe(e,["prefixCls"]),i=n("radio",r);return c.createElement(qre,{value:"button"},c.createElement(Yh,Object.assign({prefixCls:i},o,{type:"radio",ref:t})))},uoe=c.forwardRef(soe),Cv=Yh;Cv.Button=uoe;Cv.Group=aoe;Cv.__ANT_RADIO=!0;const WD=Cv,KD=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Yf=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),qh=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),oE=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},Yf(Kt(e,{inputBorderHoverColor:e.colorBorder})))}),GD=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}},iE=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),xv=(e,t)=>{const{componentCls:n,colorError:r,colorWarning:o,colorErrorOutline:i,colorWarningOutline:a,colorErrorBorderHover:l,colorWarningBorderHover:s}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:l},"&:focus, &-focused":Object.assign({},qh(Kt(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:s},"&:focus, &-focused":Object.assign({},qh(Kt(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:a}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},qf=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}`},KD(e.colorTextPlaceholder)),{"&:hover":Object.assign({},Yf(e)),"&:focus, &-focused":Object.assign({},qh(e)),"&-disabled, &[disabled]":Object.assign({},oE(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({},GD(e)),"&-sm":Object.assign({},iE(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),XD=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({},GD(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},iE(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"},yf()),{[`${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`]:{display:"inline-flex"},[`& > ${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}}}})}},coe=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({},hn(e)),qf(e)),xv(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"}})}},doe=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`}}}},foe=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},qf(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},Yf(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","&:focus":{boxShadow:"none !important"}},"&::before":{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}}}),doe(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),xv(e,`${t}-affix-wrapper`))}},poe=e=>{const{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:i}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},hn(e)),XD(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o}},"&-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({},oE(e))}}})}},moe=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 aE(e){return Kt(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 hoe=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"}},[`&-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"}}}}}},lE=_n("Input",e=>{const t=aE(e);return[coe(t),hoe(t),foe(t),poe(t),moe(t),uv(t)]});function goe(e,t,n){var r=n||{},o=r.noTrailing,i=o===void 0?!1:o,a=r.noLeading,l=a===void 0?!1:a,s=r.debounceMode,d=s===void 0?void 0:s,f,m=!1,h=0;function g(){f&&clearTimeout(f)}function v(S){var y=S||{},x=y.upcomingOnly,E=x===void 0?!1:x;g(),m=!E}function C(){for(var S=arguments.length,y=new Array(S),x=0;xe?l?(h=Date.now(),i||(f=setTimeout(d?O:I,e))):I():i!==!0&&(f=setTimeout(d?O:I,d===void 0?e-w:e))}return C.cancel=v,C}function voe(e,t,n){var r=n||{},o=r.atBegin,i=o===void 0?!1:o;return goe(e,t,{debounceMode:i!==!1})}function YD(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function yoe(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!!(n||r)||o===!1}function boe(e,t,n,r){for(var o=new Set(e),i=new Set,a=0;a<=n;a+=1){var l=t.get(a)||new Set;l.forEach(function(m){var h=m.key,g=m.node,v=m.children,C=v===void 0?[]:v;o.has(h)&&!r(g)&&C.filter(function(S){return!r(S.node)}).forEach(function(S){o.add(S.key)})})}for(var s=new Set,d=n;d>=0;d-=1){var f=t.get(d)||new Set;f.forEach(function(m){var h=m.parent,g=m.node;if(!(r(g)||!m.parent||s.has(m.parent.key))){if(r(m.parent.node)){s.add(h.key);return}var v=!0,C=!1;(h.children||[]).filter(function(S){return!r(S.node)}).forEach(function(S){var y=S.key,x=o.has(y);v&&!x&&(v=!1),!C&&(x||i.has(y))&&(C=!0)}),v&&o.add(h.key),C&&i.add(h.key),s.add(h.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(YD(i,o))}}function Soe(e,t,n,r,o){for(var i=new Set(e),a=new Set(t),l=0;l<=r;l+=1){var s=n.get(l)||new Set;s.forEach(function(h){var g=h.key,v=h.node,C=h.children,S=C===void 0?[]:C;!i.has(g)&&!a.has(g)&&!o(v)&&S.filter(function(y){return!o(y.node)}).forEach(function(y){i.delete(y.key)})})}a=new Set;for(var d=new Set,f=r;f>=0;f-=1){var m=n.get(f)||new Set;m.forEach(function(h){var g=h.parent,v=h.node;if(!(o(v)||!h.parent||d.has(h.parent.key))){if(o(h.parent.node)){d.add(g.key);return}var C=!0,S=!1;(g.children||[]).filter(function(y){return!o(y.node)}).forEach(function(y){var x=y.key,E=i.has(x);C&&!E&&(C=!1),!S&&(E||a.has(x))&&(S=!0)}),C||i.delete(g.key),S&&a.add(g.key),d.add(g.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(YD(a,i))}}function Qu(e,t,n,r){var o=[],i;r?i=r:i=yoe;var a=new Set(e.filter(function(f){var m=!!n[f];return m||o.push(f),m})),l=new Map,s=0;Object.keys(n).forEach(function(f){var m=n[f],h=m.level,g=l.get(h);g||(g=new Set,l.set(h,g)),g.add(m),s=Math.max(s,h)}),wn(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(f){return"'".concat(f,"'")}).join(", ")));var d;return t===!0?d=boe(a,l,s,i):d=Soe(a,t.halfCheckedKeys,l,s,i),d}var sE=c.createContext(null),Coe=function(t){for(var n=t.prefixCls,r=t.level,o=t.isStart,i=t.isEnd,a="".concat(n,"-indent-unit"),l=[],s=0;s=0&&n.splice(r,1),n}function Ca(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function uE(e){return e.split("-")}function qD(e,t){return"".concat(e,"-").concat(t)}function $oe(e){return e&&e.type&&e.type.isTreeNode}function Ooe(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 l=a.key,s=a.children;n.push(l),o(s)})}return o(r.children),n}function _oe(e){if(e.parent){var t=uE(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function Roe(e){var t=uE(e.pos);return Number(t[t.length-1])===0}function TR(e,t,n,r,o,i,a,l,s,d){var f,m=e.clientX,h=e.clientY,g=e.target.getBoundingClientRect(),v=g.top,C=g.height,S=(d==="rtl"?-1:1)*(((o==null?void 0:o.x)||0)-m),y=(S-12)/r,x=l[n.props.eventKey];if(h-1.5?i({dragNode:N,dropNode:T,dropPosition:1})?M=1:L=!1:i({dragNode:N,dropNode:T,dropPosition:0})?M=0:i({dragNode:N,dropNode:T,dropPosition:1})?M=1:L=!1:i({dragNode:N,dropNode:T,dropPosition:1})?M=1:L=!1,{dropPosition:M,dropLevelOffset:P,dropTargetKey:x.key,dropTargetPos:x.pos,dragOverNodeKey:R,dropContainerKey:M===0?null:((f=x.parent)===null||f===void 0?void 0:f.key)||null,dropAllowed:L}}function PR(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function Yy(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(It(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return wn(!1,"`checkedKeys` is not an array or an object"),null;return t}function NC(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,l=i.node;l.disabled||a&&r(a.key)}}}return(e||[]).forEach(function(o){r(o)}),Pe(n)}var Toe=["children"];function Qf(e,t){return e??t}function Qh(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 QD(e){function t(n){var r=ai(n);return r.map(function(o){if(!$oe(o))return wn(!o,"Tree/TreeNode can only accept TreeNode as children."),null;var i=o.key,a=o.props,l=a.children,s=vt(a,Toe),d=H({key:i},s),f=t(l);return f.length&&(d.children=f),d}).filter(function(o){return o})}return t(e)}function qy(e,t,n){var r=Qh(n),o=r._title,i=r.key,a=r.children,l=new Set(t===!0?[]:t),s=[];function d(f){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return f.map(function(h,g){for(var v=qD(m?m.pos:"0",g),C=Qf(h[i],v),S,y=0;y1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,i=t.externalGetKey,a=t.childrenPropName,l=t.fieldNames,s=arguments.length>2?arguments[2]:void 0,d=i||s,f={},m={},h={posEntities:f,keyEntities:m};return n&&(h=n(h)||h),Poe(e,function(g){var v=g.node,C=g.index,S=g.pos,y=g.key,x=g.parentPos,E=g.level,w=g.nodes,I={node:v,nodes:w,index:C,key:y,pos:S,level:E},O=Qf(y,S);f[S]=I,m[O]=I,I.parent=f[x],I.parent&&(I.parent.children=I.parent.children||[],I.parent.children.push(I)),r&&r(I,h)},{externalGetKey:d,childrenPropName:a,fieldNames:l}),o&&o(h),h}function zd(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,i=t.loadingKeys,a=t.checkedKeys,l=t.halfCheckedKeys,s=t.dragOverNodeKey,d=t.dropPosition,f=t.keyEntities,m=f[e],h={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:l.indexOf(e)!==-1,pos:String(m?m.pos:""),dragOver:s===e&&d===0,dragOverGapTop:s===e&&d===-1,dragOverGapBottom:s===e&&d===1};return h}function qn(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,i=e.loaded,a=e.loading,l=e.halfChecked,s=e.dragOver,d=e.dragOverGapTop,f=e.dragOverGapBottom,m=e.pos,h=e.active,g=e.eventKey,v=H(H({},t),{},{expanded:n,selected:r,checked:o,loaded:i,loading:a,halfChecked:l,dragOver:s,dragOverGapTop:d,dragOverGapBottom:f,pos:m,active:h,key:g});return"props"in v||Object.defineProperty(v,"props",{get:function(){return wn(!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 Noe=new Dt("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),Moe=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},hn(e)),{display:"inline-flex"}),[n]:Object.assign(Object.assign({},hn(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:e.marginXS},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},hn(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"start",transform:`translate(0, ${e.lineHeight*e.fontSize/2-e.checkboxSize/2}px)`,[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},ka(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}})},{[t]:{"&-indeterminate":{[`${t}-inner`]:{"&: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}:hover ${t}:after`]:{visibility:"visible"},[` - ${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}`}},"&:after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderRadius:e.borderRadiusSM,visibility:"hidden",border:`${e.lineWidthBold}px solid ${e.colorPrimary}`,animationName:Noe,animationDuration:e.motionDurationSlow,animationTimingFunction:"ease-in-out",animationFillMode:"backwards",content:'""',transition:`all ${e.motionDurationSlow}`}},[` - ${n}-checked:not(${n}-disabled), - ${t}-checked:not(${t}-disabled) - `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}:after`]:{borderColor:e.colorPrimaryHover}}},{[`${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 ZD(e,t){const n=Kt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[Moe(n)]}const JD=_n("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[ZD(n,e)]});var Aoe=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{defaultValue:n,children:r,options:o=[],prefixCls:i,className:a,rootClassName:l,style:s,onChange:d}=e,f=Aoe(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]);const{getPrefixCls:m,direction:h}=c.useContext(yt),[g,v]=c.useState(f.value||n||[]),[C,S]=c.useState([]);c.useEffect(()=>{"value"in f&&v(f.value||[])},[f.value]);const y=()=>o.map(N=>typeof N=="string"||typeof N=="number"?{label:N,value:N}:N),x=N=>{S(T=>T.filter(L=>L!==N))},E=N=>{S(T=>[].concat(Pe(T),[N]))},w=N=>{const T=g.indexOf(N.value),L=Pe(g);T===-1?L.push(N.value):L.splice(T,1),"value"in f||v(L);const z=y();d==null||d(L.filter(F=>C.includes(F)).sort((F,V)=>{const j=z.findIndex(G=>G.value===F),U=z.findIndex(G=>G.value===V);return j-U}))},I=m("checkbox",i),O=`${I}-group`,[_,R]=JD(I),M=kr(f,["value","disabled"]);o&&o.length>0&&(r=y().map(N=>c.createElement(tk,{prefixCls:I,key:N.value.toString(),disabled:"disabled"in N?N.disabled:f.disabled,value:N.value,checked:g.includes(N.value),onChange:N.onChange,className:`${O}-item`,style:N.style},N.label)));const P={toggleOption:w,value:g,disabled:f.disabled,name:f.name,registerValue:E,cancelValue:x},D=te(O,{[`${O}-rtl`]:h==="rtl"},a,l,R);return _(c.createElement("div",Object.assign({className:D,style:s},M,{ref:t}),c.createElement(ek.Provider,{value:P},r)))},Doe=c.forwardRef(Loe),koe=c.memo(Doe);var Foe=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,className:o,rootClassName:i,children:a,indeterminate:l=!1,style:s,onMouseEnter:d,onMouseLeave:f,skipGroup:m=!1,disabled:h}=e,g=Foe(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]);const{getPrefixCls:v,direction:C}=c.useContext(yt),S=c.useContext(ek),{isFormItemInput:y}=c.useContext(la),x=c.useContext(zl),E=(n=(S==null?void 0:S.disabled)||h)!==null&&n!==void 0?n:x,w=c.useRef(g.value);c.useEffect(()=>{S==null||S.registerValue(g.value)},[]),c.useEffect(()=>{if(!m)return g.value!==w.current&&(S==null||S.cancelValue(w.current),S==null||S.registerValue(g.value),w.current=g.value),()=>S==null?void 0:S.cancelValue(g.value)},[g.value]);const I=v("checkbox",r),[O,_]=JD(I),R=Object.assign({},g);S&&!m&&(R.onChange=function(){g.onChange&&g.onChange.apply(g,arguments),S.toggleOption&&S.toggleOption({label:a,value:g.value})},R.name=S.name,R.checked=S.value.includes(g.value));const M=te({[`${I}-wrapper`]:!0,[`${I}-rtl`]:C==="rtl",[`${I}-wrapper-checked`]:R.checked,[`${I}-wrapper-disabled`]:E,[`${I}-wrapper-in-form-item`]:y},o,i,_),P=te({[`${I}-indeterminate`]:l},_),D=l?"mixed":void 0;return O(c.createElement("label",{className:M,style:s,onMouseEnter:d,onMouseLeave:f},c.createElement(VD,Object.assign({"aria-checked":D},R,{prefixCls:I,className:P,disabled:E,ref:t})),a!==void 0&&c.createElement("span",null,a)))},zoe=c.forwardRef(Boe),tk=zoe,dE=tk;dE.Group=koe;dE.__ANT_CHECKBOX=!0;const Zh=dE,Hoe=c.createContext({}),nk=Hoe,joe=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"}}}},Voe=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},Uoe=(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},MC=(e,t)=>Uoe(e,t),Woe=(e,t,n)=>({[`@media (min-width: ${t}px)`]:Object.assign({},MC(e,n))}),Koe=_n("Grid",e=>[joe(e)]),Goe=_n("Grid",e=>{const t=Kt(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[Voe(t),MC(t,""),MC(t,"-xs"),Object.keys(n).map(r=>Woe(t,n[r],r)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]});var Xoe=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}=c.useContext(yt),{gutter:o,wrap:i,supportFlexGap:a}=c.useContext(nk),{prefixCls:l,span:s,order:d,offset:f,push:m,pull:h,className:g,children:v,flex:C,style:S}=e,y=Xoe(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),x=n("col",l),[E,w]=Goe(x);let I={};qoe.forEach(R=>{let M={};const P=e[R];typeof P=="number"?M.span=P:typeof P=="object"&&(M=P||{}),delete y[R],I=Object.assign(Object.assign({},I),{[`${x}-${R}-${M.span}`]:M.span!==void 0,[`${x}-${R}-order-${M.order}`]:M.order||M.order===0,[`${x}-${R}-offset-${M.offset}`]:M.offset||M.offset===0,[`${x}-${R}-push-${M.push}`]:M.push||M.push===0,[`${x}-${R}-pull-${M.pull}`]:M.pull||M.pull===0,[`${x}-rtl`]:r==="rtl"})});const O=te(x,{[`${x}-${s}`]:s!==void 0,[`${x}-order-${d}`]:d,[`${x}-offset-${f}`]:f,[`${x}-push-${m}`]:m,[`${x}-pull-${h}`]:h},g,I,w),_={};if(o&&o[0]>0){const R=o[0]/2;_.paddingLeft=R,_.paddingRight=R}if(o&&o[1]>0&&!a){const R=o[1]/2;_.paddingTop=R,_.paddingBottom=R}return C&&(_.flex=Yoe(C),i===!1&&!_.minWidth&&(_.minWidth=0)),E(c.createElement("div",Object.assign({},y,{style:Object.assign(Object.assign({},_),S),className:O,ref:t}),v))}),Zoe=Qoe;var Joe=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 eie=c.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:i,style:a,children:l,gutter:s=0,wrap:d}=e,f=Joe(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:m,direction:h}=c.useContext(yt),[g,v]=c.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[C,S]=c.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),y=NR(o,C),x=NR(r,C),E=DD(),w=c.useRef(s),I=GL();c.useEffect(()=>{const j=I.subscribe(U=>{S(U);const G=w.current||0;(!Array.isArray(G)&&typeof G=="object"||Array.isArray(G)&&(typeof G[0]=="object"||typeof G[1]=="object"))&&v(U)});return()=>I.unsubscribe(j)},[]);const O=()=>{const j=[void 0,void 0];return(Array.isArray(s)?s:[s,void 0]).forEach((G,W)=>{if(typeof G=="object")for(let q=0;q0?P[0]/-2:void 0,L=P[1]!=null&&P[1]>0?P[1]/-2:void 0;T&&(N.marginLeft=T,N.marginRight=T),E?[,N.rowGap]=P:L&&(N.marginTop=L,N.marginBottom=L);const[z,F]=P,V=c.useMemo(()=>({gutter:[z,F],wrap:d,supportFlexGap:E}),[z,F,d,E]);return R(c.createElement(nk.Provider,{value:V},c.createElement("div",Object.assign({},f,{className:D,style:Object.assign(Object.assign({},N),a),ref:t}),l)))}),tie=eie;function MR(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)}}const nie=e=>{const{getPrefixCls:t,direction:n}=c.useContext(yt),{prefixCls:r,className:o=""}=e,i=t("input-group",r),a=t("input"),[l,s]=lE(a),d=te(i,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},s,o),f=c.useContext(la),m=c.useMemo(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return l(c.createElement("span",{className:d,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},c.createElement(la.Provider,{value:m},e.children)))},rie=nie;function yu(e){return!!(e.addonBefore||e.addonAfter)}function Qy(e){return!!(e.prefix||e.suffix||e.allowClear)}function Hd(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 oie(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 AC(e){return typeof e>"u"||e===null?"":String(e)}var rk=function(t){var n,r,o=t.inputElement,i=t.prefixCls,a=t.prefix,l=t.suffix,s=t.addonBefore,d=t.addonAfter,f=t.className,m=t.style,h=t.disabled,g=t.readOnly,v=t.focused,C=t.triggerFocus,S=t.allowClear,y=t.value,x=t.handleReset,E=t.hidden,w=t.classes,I=t.classNames,O=t.dataAttrs,_=t.styles,R=c.useRef(null),M=function(W){var q;(q=R.current)!==null&&q!==void 0&&q.contains(W.target)&&(C==null||C())},P=function(){var W;if(!S)return null;var q=!h&&!g&&y,J="".concat(i,"-clear-icon"),X=It(S)==="object"&&S!==null&&S!==void 0&&S.clearIcon?S.clearIcon:"✖";return ve.createElement("span",{onClick:x,onMouseDown:function(ne){return ne.preventDefault()},className:te(J,(W={},Q(W,"".concat(J,"-hidden"),!q),Q(W,"".concat(J,"-has-suffix"),!!l),W)),role:"button",tabIndex:-1},X)},D=c.cloneElement(o,{value:y,hidden:E,className:te((n=o.props)===null||n===void 0?void 0:n.className,!Qy(t)&&!yu(t)&&f)||null,style:H(H({},(r=o.props)===null||r===void 0?void 0:r.style),!Qy(t)&&!yu(t)?m:{})});if(Qy(t)){var N,T="".concat(i,"-affix-wrapper"),L=te(T,(N={},Q(N,"".concat(T,"-disabled"),h),Q(N,"".concat(T,"-focused"),v),Q(N,"".concat(T,"-readonly"),g),Q(N,"".concat(T,"-input-with-clear-btn"),l&&S&&y),N),!yu(t)&&f,w==null?void 0:w.affixWrapper),z=(l||S)&&ve.createElement("span",{className:te("".concat(i,"-suffix"),I==null?void 0:I.suffix),style:_==null?void 0:_.suffix},P(),l);D=ve.createElement("span",je({className:L,style:yu(t)?void 0:m,hidden:!yu(t)&&E,onClick:M},O==null?void 0:O.affixWrapper,{ref:R}),a&&ve.createElement("span",{className:te("".concat(i,"-prefix"),I==null?void 0:I.prefix),style:_==null?void 0:_.prefix},a),c.cloneElement(o,{value:y,hidden:null}),z)}if(yu(t)){var F="".concat(i,"-group"),V="".concat(F,"-addon"),j=te("".concat(i,"-wrapper"),F,w==null?void 0:w.wrapper),U=te("".concat(i,"-group-wrapper"),f,w==null?void 0:w.group);return ve.createElement("span",{className:U,style:m,hidden:E},ve.createElement("span",{className:j},s&&ve.createElement("span",{className:V},s),c.cloneElement(D,{hidden:null}),d&&ve.createElement("span",{className:V},d)))}return D},iie=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],aie=c.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,l=e.onKeyDown,s=e.prefixCls,d=s===void 0?"rc-input":s,f=e.disabled,m=e.htmlSize,h=e.className,g=e.maxLength,v=e.suffix,C=e.showCount,S=e.type,y=S===void 0?"text":S,x=e.classes,E=e.classNames,w=e.styles,I=vt(e,iie),O=Lr(e.defaultValue,{value:e.value}),_=ue(O,2),R=_[0],M=_[1],P=c.useState(!1),D=ue(P,2),N=D[0],T=D[1],L=c.useRef(null),z=function(X){L.current&&oie(L.current,X)};c.useImperativeHandle(t,function(){return{focus:z,blur:function(){var X;(X=L.current)===null||X===void 0||X.blur()},setSelectionRange:function(X,Y,ne){var le;(le=L.current)===null||le===void 0||le.setSelectionRange(X,Y,ne)},select:function(){var X;(X=L.current)===null||X===void 0||X.select()},input:L.current}}),c.useEffect(function(){T(function(J){return J&&f?!1:J})},[f]);var F=function(X){e.value===void 0&&M(X.target.value),L.current&&Hd(L.current,X,r)},V=function(X){a&&X.key==="Enter"&&a(X),l==null||l(X)},j=function(X){T(!0),o==null||o(X)},U=function(X){T(!1),i==null||i(X)},G=function(X){M(""),z(),L.current&&Hd(L.current,X,r)},W=function(){var X=kr(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return ve.createElement("input",je({autoComplete:n},X,{onChange:F,onFocus:j,onBlur:U,onKeyDown:V,className:te(d,Q({},"".concat(d,"-disabled"),f),E==null?void 0:E.input),style:w==null?void 0:w.input,ref:L,size:m,type:y}))},q=function(){var X=Number(g)>0;if(v||C){var Y=AC(R),ne=Pe(Y).length,le=It(C)==="object"?C.formatter({value:Y,count:ne,maxLength:g}):"".concat(ne).concat(X?" / ".concat(g):"");return ve.createElement(ve.Fragment,null,!!C&&ve.createElement("span",{className:te("".concat(d,"-show-count-suffix"),Q({},"".concat(d,"-show-count-has-suffix"),!!v),E==null?void 0:E.count),style:H({},w==null?void 0:w.count)},le),v)}return null};return ve.createElement(rk,je({},I,{prefixCls:d,className:h,inputElement:W(),handleReset:G,value:AC(R),focused:N,triggerFocus:z,suffix:q(),disabled:f,classes:x,classNames:E,styles:w}))});function ok(e,t){const n=c.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,i,a,l;!((o=e.current)===null||o===void 0)&&o.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((l=e.current)===null||l===void 0||l.input.removeAttribute("value"))}))};return c.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function lie(e){return!!(e.prefix||e.suffix||e.allowClear)}var sie=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,status:o,size:i,disabled:a,onBlur:l,onFocus:s,suffix:d,allowClear:f,addonAfter:m,addonBefore:h,className:g,rootClassName:v,onChange:C,classNames:S}=e,y=sie(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","rootClassName","onChange","classNames"]),{getPrefixCls:x,direction:E,input:w}=ve.useContext(yt),I=x("input",n),O=c.useRef(null),[_,R]=lE(I),{compactSize:M,compactItemClassnames:P}=Oc(I,E),D=ve.useContext(Fi),N=M||i||D,T=ve.useContext(zl),L=a??T,{status:z,hasFeedback:F,feedbackIcon:V}=c.useContext(la),j=fv(z,o),U=lie(e)||!!F,G=c.useRef(U);c.useEffect(()=>{U&&G.current,G.current=U},[U]);const W=ok(O,!0),q=le=>{W(),l==null||l(le)},J=le=>{W(),s==null||s(le)},X=le=>{W(),C==null||C(le)},Y=(F||d)&&ve.createElement(ve.Fragment,null,d,F&&V);let ne;return typeof f=="object"&&(f!=null&&f.clearIcon)?ne=f:f&&(ne={clearIcon:ve.createElement(Ic,null)}),_(ve.createElement(aie,Object.assign({ref:Bo(t,O),prefixCls:I,autoComplete:w==null?void 0:w.autoComplete},y,{disabled:L,onBlur:q,onFocus:J,suffix:Y,allowClear:ne,className:te(g,v,P),onChange:X,addonAfter:m&&ve.createElement(vc,null,ve.createElement(Sf,{override:!0,status:!0},m)),addonBefore:h&&ve.createElement(vc,null,ve.createElement(Sf,{override:!0,status:!0},h)),classNames:Object.assign(Object.assign({},S),{input:te({[`${I}-sm`]:N==="small",[`${I}-lg`]:N==="large",[`${I}-rtl`]:E==="rtl",[`${I}-borderless`]:!r},!U&&Ta(I,j),S==null?void 0:S.input,R)}),classes:{affixWrapper:te({[`${I}-affix-wrapper-sm`]:N==="small",[`${I}-affix-wrapper-lg`]:N==="large",[`${I}-affix-wrapper-rtl`]:E==="rtl",[`${I}-affix-wrapper-borderless`]:!r},Ta(`${I}-affix-wrapper`,j,F),R),wrapper:te({[`${I}-group-rtl`]:E==="rtl"},R),group:te({[`${I}-group-wrapper-sm`]:N==="small",[`${I}-group-wrapper-lg`]:N==="large",[`${I}-group-wrapper-rtl`]:E==="rtl",[`${I}-group-wrapper-disabled`]:L},Ta(`${I}-group-wrapper`,j,F),R)}})))}),fE=cie;var die=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?c.createElement(IM,null):c.createElement(WW,null),pie={click:"onClick",hover:"onMouseOver"},mie=c.forwardRef((e,t)=>{const{visibilityToggle:n=!0}=e,r=typeof n=="object"&&n.visible!==void 0,[o,i]=c.useState(()=>r?n.visible:!1),a=c.useRef(null);c.useEffect(()=>{r&&i(n.visible)},[r,n]);const l=ok(a),s=()=>{const{disabled:I}=e;I||(o&&l(),i(O=>{var _;const R=!O;return typeof n=="object"&&((_=n.onVisibleChange)===null||_===void 0||_.call(n,R)),R}))},d=I=>{const{action:O="click",iconRender:_=fie}=e,R=pie[O]||"",M=_(o),P={[R]:s,className:`${I}-icon`,key:"passwordIcon",onMouseDown:D=>{D.preventDefault()},onMouseUp:D=>{D.preventDefault()}};return c.cloneElement(c.isValidElement(M)?M:c.createElement("span",null,M),P)},{className:f,prefixCls:m,inputPrefixCls:h,size:g}=e,v=die(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:C}=c.useContext(yt),S=C("input",h),y=C("input-password",m),x=n&&d(y),E=te(y,f,{[`${y}-${g}`]:!!g}),w=Object.assign(Object.assign({},kr(v,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:E,prefixCls:S,suffix:x});return g&&(w.size=g),c.createElement(fE,Object.assign({ref:Bo(t,a)},w))}),hie=mie;var gie=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:l=!1,addonAfter:s,loading:d,disabled:f,onSearch:m,onChange:h,onCompositionStart:g,onCompositionEnd:v}=e,C=gie(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:S,direction:y}=c.useContext(yt),x=c.useContext(Fi),E=c.useRef(!1),w=S("input-search",n),I=S("input",r),{compactSize:O}=Oc(w,y),_=O||i||x,R=c.useRef(null),M=W=>{W&&W.target&&W.type==="click"&&m&&m(W.target.value,W),h&&h(W)},P=W=>{var q;document.activeElement===((q=R.current)===null||q===void 0?void 0:q.input)&&W.preventDefault()},D=W=>{var q,J;m&&m((J=(q=R.current)===null||q===void 0?void 0:q.input)===null||J===void 0?void 0:J.value,W)},N=W=>{E.current||d||D(W)},T=typeof l=="boolean"?c.createElement(mx,null):null,L=`${w}-button`;let z;const F=l||{},V=F.type&&F.type.__ANT_BUTTON===!0;V||F.type==="button"?z=mr(F,Object.assign({onMouseDown:P,onClick:W=>{var q,J;(J=(q=F==null?void 0:F.props)===null||q===void 0?void 0:q.onClick)===null||J===void 0||J.call(q,W),D(W)},key:"enterButton"},V?{className:L,size:_}:{})):z=c.createElement(ri,{className:L,type:l?"primary":void 0,size:_,disabled:f,key:"enterButton",onMouseDown:P,onClick:D,loading:d,icon:T},l),s&&(z=[z,mr(s,{key:"addonAfter"})]);const j=te(w,{[`${w}-rtl`]:y==="rtl",[`${w}-${_}`]:!!_,[`${w}-with-button`]:!!l},o),U=W=>{E.current=!0,g==null||g(W)},G=W=>{E.current=!1,v==null||v(W)};return c.createElement(fE,Object.assign({ref:Bo(R,t),onPressEnter:N},C,{size:_,onCompositionStart:U,onCompositionEnd:G,prefixCls:I,addonAfter:z,suffix:a,onChange:M,className:j,disabled:f}))}),yie=vie;var bie=` - 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; -`,Sie=["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"],Zy={},Qo;function Cie(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&&Zy[n])return Zy[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=Sie.map(function(d){return"".concat(d,":").concat(r.getPropertyValue(d))}).join(";"),s={sizingStyle:l,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(Zy[n]=s),s}function xie(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;Qo||(Qo=document.createElement("textarea"),Qo.setAttribute("tab-index","-1"),Qo.setAttribute("aria-hidden","true"),document.body.appendChild(Qo)),e.getAttribute("wrap")?Qo.setAttribute("wrap",e.getAttribute("wrap")):Qo.removeAttribute("wrap");var o=Cie(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,s=o.sizingStyle;Qo.setAttribute("style","".concat(s,";").concat(bie)),Qo.value=e.value||e.placeholder||"";var d=void 0,f=void 0,m,h=Qo.scrollHeight;if(l==="border-box"?h+=a:l==="content-box"&&(h-=i),n!==null||r!==null){Qo.value=" ";var g=Qo.scrollHeight-i;n!==null&&(d=g*n,l==="border-box"&&(d=d+i+a),h=Math.max(d,h)),r!==null&&(f=g*r,l==="border-box"&&(f=f+i+a),m=h>f?"":"hidden",h=Math.min(f,h))}var v={height:h,overflowY:m,resize:"none"};return d&&(v.minHeight=d),f&&(v.maxHeight=f),v}var Eie=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Jy=0,eb=1,tb=2,wie=c.forwardRef(function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var o=n.defaultValue,i=n.value,a=n.autoSize,l=n.onResize,s=n.className,d=n.style,f=n.disabled,m=n.onChange;n.onInternalAutoSize;var h=vt(n,Eie),g=Lr(o,{value:i,postState:function(X){return X??""}}),v=ue(g,2),C=v[0],S=v[1],y=function(X){S(X.target.value),m==null||m(X)},x=c.useRef();c.useImperativeHandle(t,function(){return{textArea:x.current}});var E=c.useMemo(function(){return a&&It(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),w=ue(E,2),I=w[0],O=w[1],_=!!a,R=function(){try{if(document.activeElement===x.current){var X=x.current,Y=X.selectionStart,ne=X.selectionEnd,le=X.scrollTop;x.current.setSelectionRange(Y,ne),x.current.scrollTop=le}}catch{}},M=c.useState(tb),P=ue(M,2),D=P[0],N=P[1],T=c.useState(),L=ue(T,2),z=L[0],F=L[1],V=function(){N(Jy)};sn(function(){_&&V()},[i,I,O,_]),sn(function(){if(D===Jy)N(eb);else if(D===eb){var J=xie(x.current,!1,I,O);N(tb),F(J)}else R()},[D]);var j=c.useRef(),U=function(){Zt.cancel(j.current)},G=function(X){D===tb&&(l==null||l(X),a&&(U(),j.current=Zt(function(){V()})))};c.useEffect(function(){return U},[]);var W=_?z:null,q=H(H({},d),W);return(D===Jy||D===eb)&&(q.overflowY="hidden",q.overflowX="hidden"),c.createElement(ki,{onResize:G,disabled:!(a||l)},c.createElement("textarea",je({},h,{ref:x,style:q,className:te(r,s,Q({},"".concat(r,"-disabled"),f)),disabled:f,value:C,onChange:y})))}),Iie=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles"];function ik(e,t){return Pe(e||"").slice(0,t).join("")}function AR(e,t,n,r){var o=n;return e?o=ik(n,r):Pe(t||"").lengthr&&(o=t),o}var $ie=ve.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,i=e.onFocus,a=e.onBlur,l=e.onChange,s=e.allowClear,d=e.maxLength,f=e.onCompositionStart,m=e.onCompositionEnd,h=e.suffix,g=e.prefixCls,v=g===void 0?"rc-textarea":g,C=e.classes,S=e.showCount,y=e.className,x=e.style,E=e.disabled,w=e.hidden,I=e.classNames,O=e.styles,_=vt(e,Iie),R=Lr(r,{value:o,defaultValue:r}),M=ue(R,2),P=M[0],D=M[1],N=c.useRef(null),T=ve.useState(!1),L=ue(T,2),z=L[0],F=L[1],V=ve.useState(!1),j=ue(V,2),U=j[0],G=j[1],W=ve.useRef(),q=ve.useRef(0),J=function(){N.current.textArea.focus()};c.useImperativeHandle(t,function(){return{resizableTextArea:N.current,focus:J,blur:function(){N.current.textArea.blur()}}}),c.useEffect(function(){F(function(Se){return!E&&Se})},[E]);var X=Number(d)>0,Y=function(de){G(!0),W.current=P,q.current=de.currentTarget.selectionStart,f==null||f(de)},ne=function(de){G(!1);var Re=de.currentTarget.value;if(X){var be,Xe=q.current>=d+1||q.current===((be=W.current)===null||be===void 0?void 0:be.length);Re=AR(Xe,W.current,Re,d)}Re!==P&&(D(Re),Hd(de.currentTarget,de,l,Re)),m==null||m(de)},le=function(de){var Re=de.target.value;if(!U&&X){var be=de.target.selectionStart>=d+1||de.target.selectionStart===Re.length||!de.target.selectionStart;Re=AR(be,P,Re,d)}D(Re),Hd(de.currentTarget,de,l,Re)},we=function(de){var Re=_.onPressEnter,be=_.onKeyDown;de.key==="Enter"&&Re&&Re(de),be==null||be(de)},Ie=function(de){F(!0),i==null||i(de)},Ce=function(de){F(!1),a==null||a(de)},ce=function(de){D(""),J(),Hd(N.current.textArea,de,l)},he=AC(P);!U&&X&&o==null&&(he=ik(he,d));var ie=h,pe;if(S){var fe=Pe(he).length;It(S)==="object"?pe=S.formatter({value:he,count:fe,maxLength:d}):pe="".concat(fe).concat(X?" / ".concat(d):""),ie=ve.createElement(ve.Fragment,null,ie,ve.createElement("span",{className:te("".concat(v,"-data-count"),I==null?void 0:I.count),style:O==null?void 0:O.count},pe))}var Oe=ve.createElement(rk,{value:he,allowClear:s,handleReset:ce,suffix:ie,prefixCls:v,classes:{affixWrapper:te(C==null?void 0:C.affixWrapper,(n={},Q(n,"".concat(v,"-show-count"),S),Q(n,"".concat(v,"-textarea-allow-clear"),s),n))},disabled:E,focused:z,className:y,style:x,dataAttrs:{affixWrapper:{"data-count":typeof pe=="string"?pe:void 0}},hidden:w,inputElement:ve.createElement(wie,je({},_,{onKeyDown:we,onChange:le,onFocus:Ie,onBlur:Ce,onCompositionStart:Y,onCompositionEnd:ne,className:I==null?void 0:I.textarea,style:H(H({},O==null?void 0:O.textarea),{},{resize:x==null?void 0:x.resize}),disabled:E,prefixCls:v,ref:N}))});return Oe}),Oie=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:n,bordered:r=!0,size:o,disabled:i,status:a,allowClear:l,showCount:s,classNames:d}=e,f=Oie(e,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames"]);const{getPrefixCls:m,direction:h}=c.useContext(yt),g=c.useContext(Fi),v=o||g,C=c.useContext(zl),S=i??C,{status:y,hasFeedback:x,feedbackIcon:E}=c.useContext(la),w=fv(y,a),I=c.useRef(null);c.useImperativeHandle(t,()=>{var P;return{resizableTextArea:(P=I.current)===null||P===void 0?void 0:P.resizableTextArea,focus:D=>{var N,T;uie((T=(N=I.current)===null||N===void 0?void 0:N.resizableTextArea)===null||T===void 0?void 0:T.textArea,D)},blur:()=>{var D;return(D=I.current)===null||D===void 0?void 0:D.blur()}}});const O=m("input",n);let _;typeof l=="object"&&(l!=null&&l.clearIcon)?_=l:l&&(_={clearIcon:c.createElement(Ic,null)});const[R,M]=lE(O);return R(c.createElement($ie,Object.assign({},f,{disabled:S,allowClear:_,classes:{affixWrapper:te(`${O}-textarea-affix-wrapper`,{[`${O}-affix-wrapper-rtl`]:h==="rtl",[`${O}-affix-wrapper-borderless`]:!r,[`${O}-affix-wrapper-sm`]:v==="small",[`${O}-affix-wrapper-lg`]:v==="large",[`${O}-textarea-show-count`]:s},Ta(`${O}-affix-wrapper`,w),M)},classNames:Object.assign(Object.assign({},d),{textarea:te({[`${O}-borderless`]:!r,[`${O}-sm`]:v==="small",[`${O}-lg`]:v==="large"},Ta(O,w),M,d==null?void 0:d.textarea)}),prefixCls:O,suffix:x&&c.createElement("span",{className:`${O}-textarea-suffix`},E),showCount:s,ref:I})))}),Rie=_ie,Zf=fE;Zf.Group=rie;Zf.Search=yie;Zf.TextArea=Rie;Zf.Password=hie;const Tie=Zf;function LC(){return typeof BigInt=="function"}function xs(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 l=n?"-":"";return{negative:n,negativeStr:l,trimStr:r,integerStr:i,decimalStr:a,fullStr:"".concat(l).concat(r)}}function pE(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function wf(e){var t=String(e);if(pE(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(".")&&mE(t)?t.length-t.indexOf(".")-1:0}function Ev(e){var t=String(e);if(pE(e)){if(e>Number.MAX_SAFE_INTEGER)return String(LC()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(eNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Ev(this.number):this.origin}}]),e}(),Nie=function(){function e(t){if(Jn(this,e),Q(this,"origin",""),Q(this,"negative",void 0),Q(this,"integer",void 0),Q(this,"decimal",void 0),Q(this,"decimalLen",void 0),Q(this,"empty",void 0),Q(this,"nan",void 0),ak(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(pE(n)&&(n=Number(n)),n=typeof n=="string"?n:Ev(n),mE(n)){var r=xs(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var i=o[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length}else this.nan=!0}return er(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(n){var r="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(n,"0"));return BigInt(r)}},{key:"negate",value:function(){var n=new e(this.toString());return n.negative=!n.negative,n}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=new e(n);if(r.isInvalidate())return this;var o=Math.max(this.getDecimalStr().length,r.getDecimalStr().length),i=this.alignDecimal(o),a=r.alignDecimal(o),l=(i+a).toString(),s=xs(l),d=s.negativeStr,f=s.trimStr,m="".concat(d).concat(f.padStart(o+1,"0"));return new e("".concat(m.slice(0,-o),".").concat(m.slice(-o)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toString()===(n==null?void 0:n.toString())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":xs("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();function Ci(e){return LC()?new Nie(e):new Pie(e)}function qm(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var o=xs(e),i=o.negativeStr,a=o.integerStr,l=o.decimalStr,s="".concat(t).concat(l),d="".concat(i).concat(a);if(n>=0){var f=Number(l[n]);if(f>=5&&!r){var m=Ci(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-f));return qm(m.toString(),t,n,r)}return n===0?d:"".concat(d).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return s===".0"?d:"".concat(d).concat(s)}var Mie=function(){var t=c.useState(!1),n=ue(t,2),r=n[0],o=n[1];return sn(function(){o(dv())},[]),r},Aie=200,Lie=600;function Die(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,i=e.downDisabled,a=e.onStep,l=c.useRef(),s=c.useRef();s.current=a;var d=function(y,x){y.preventDefault(),s.current(x);function E(){s.current(x),l.current=setTimeout(E,Aie)}l.current=setTimeout(E,Lie)},f=function(){clearTimeout(l.current)};c.useEffect(function(){return f},[]);var m=Mie();if(m)return null;var h="".concat(t,"-handler"),g=te(h,"".concat(h,"-up"),Q({},"".concat(h,"-up-disabled"),o)),v=te(h,"".concat(h,"-down"),Q({},"".concat(h,"-down-disabled"),i)),C={unselectable:"on",role:"button",onMouseUp:f,onMouseLeave:f};return c.createElement("div",{className:"".concat(h,"-wrap")},c.createElement("span",je({},C,{onMouseDown:function(y){d(y,!0)},"aria-label":"Increase Value","aria-disabled":o,className:g}),n||c.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),c.createElement("span",je({},C,{onMouseDown:function(y){d(y,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:v}),r||c.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function LR(e){var t=typeof e=="number"?Ev(e):xs(e).fullStr,n=t.includes(".");return n?xs(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}function kie(e,t){var n=c.useRef(null);function r(){try{var i=e.selectionStart,a=e.selectionEnd,l=e.value,s=l.substring(0,i),d=l.substring(a);n.current={start:i,end:a,value:l,beforeTxt:s,afterTxt:d}}catch{}}function o(){if(e&&n.current&&t)try{var i=e.value,a=n.current,l=a.beforeTxt,s=a.afterTxt,d=a.start,f=i.length;if(i.endsWith(s))f=i.length-n.current.afterTxt.length;else if(i.startsWith(l))f=l.length;else{var m=l[d-1],h=i.indexOf(m,d-1);h!==-1&&(f=h+1)}e.setSelectionRange(f,f)}catch(g){wn(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(g.message))}}return[r,o]}const Fie=function(){var e=c.useRef(0),t=function(){Zt.cancel(e.current)};return c.useEffect(function(){return t},[]),function(n){t(),e.current=Zt(function(){n()})}};var Bie=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],DR=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},kR=function(t){var n=Ci(t);return n.isInvalidate()?null:n},lk=c.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-input-number":r,i=e.className,a=e.style,l=e.min,s=e.max,d=e.step,f=d===void 0?1:d,m=e.defaultValue,h=e.value,g=e.disabled,v=e.readOnly,C=e.upHandler,S=e.downHandler,y=e.keyboard,x=e.controls,E=x===void 0?!0:x,w=e.stringMode,I=e.parser,O=e.formatter,_=e.precision,R=e.decimalSeparator,M=e.onChange,P=e.onInput,D=e.onPressEnter,N=e.onStep,T=vt(e,Bie),L="".concat(o,"-input"),z=c.useRef(null),F=c.useState(!1),V=ue(F,2),j=V[0],U=V[1],G=c.useRef(!1),W=c.useRef(!1),q=c.useRef(!1),J=c.useState(function(){return Ci(h??m)}),X=ue(J,2),Y=X[0],ne=X[1];function le(Ae){h===void 0&&ne(Ae)}var we=c.useCallback(function(Ae,Ke){if(!Ke)return _>=0?_:Math.max(wf(Ae),wf(f))},[_,f]),Ie=c.useCallback(function(Ae){var Ke=String(Ae);if(I)return I(Ke);var Ue=Ke;return R&&(Ue=Ue.replace(R,".")),Ue.replace(/[^\w.-]+/g,"")},[I,R]),Ce=c.useRef(""),ce=c.useCallback(function(Ae,Ke){if(O)return O(Ae,{userTyping:Ke,input:String(Ce.current)});var Ue=typeof Ae=="number"?Ev(Ae):Ae;if(!Ke){var ze=we(Ue,Ke);if(mE(Ue)&&(R||ze>=0)){var at=R||".";Ue=qm(Ue,at,ze)}}return Ue},[O,we,R]),he=c.useState(function(){var Ae=m??h;return Y.isInvalidate()&&["string","number"].includes(It(Ae))?Number.isNaN(Ae)?"":Ae:ce(Y.toString(),!1)}),ie=ue(he,2),pe=ie[0],fe=ie[1];Ce.current=pe;function Oe(Ae,Ke){fe(ce(Ae.isInvalidate()?Ae.toString(!1):Ae.toString(!Ke),Ke))}var Se=c.useMemo(function(){return kR(s)},[s,_]),de=c.useMemo(function(){return kR(l)},[l,_]),Re=c.useMemo(function(){return!Se||!Y||Y.isInvalidate()?!1:Se.lessEquals(Y)},[Se,Y]),be=c.useMemo(function(){return!de||!Y||Y.isInvalidate()?!1:Y.lessEquals(de)},[de,Y]),Xe=kie(z.current,j),Qe=ue(Xe,2),ft=Qe[0],ct=Qe[1],ut=function(Ke){return Se&&!Ke.lessEquals(Se)?Se:de&&!de.lessEquals(Ke)?de:null},dt=function(Ke){return!ut(Ke)},He=function(Ke,Ue){var ze=Ke,at=dt(ze)||ze.isEmpty();if(!ze.isEmpty()&&!Ue&&(ze=ut(ze)||ze,at=!0),!v&&!g&&at){var $t=ze.toString(),tt=we($t,Ue);return tt>=0&&(ze=Ci(qm($t,".",tt)),dt(ze)||(ze=Ci(qm($t,".",tt,!0)))),ze.equals(Y)||(le(ze),M==null||M(ze.isEmpty()?null:DR(w,ze)),h===void 0&&Oe(ze,Ue)),ze}return Y},Je=Fie(),ee=function Ae(Ke){if(ft(),fe(Ke),!W.current){var Ue=Ie(Ke),ze=Ci(Ue);ze.isNaN()||He(ze,!0)}P==null||P(Ke),Je(function(){var at=Ke;I||(at=Ke.replace(/。/g,".")),at!==Ke&&Ae(at)})},re=function(){W.current=!0},oe=function(){W.current=!1,ee(z.current.value)},xe=function(Ke){ee(Ke.target.value)},ge=function(Ke){var Ue;if(!(Ke&&Re||!Ke&&be)){G.current=!1;var ze=Ci(q.current?LR(f):f);Ke||(ze=ze.negate());var at=(Y||Ci(0)).add(ze.toString()),$t=He(at,!1);N==null||N(DR(w,$t),{offset:q.current?LR(f):f,type:Ke?"up":"down"}),(Ue=z.current)===null||Ue===void 0||Ue.focus()}},Ee=function(Ke){var Ue=Ci(Ie(pe)),ze=Ue;Ue.isNaN()?ze=Y:ze=He(Ue,Ke),h!==void 0?Oe(Y,!1):ze.isNaN()||Oe(ze,!1)},ke=function(){G.current=!0},Ye=function(Ke){var Ue=Ke.which,ze=Ke.shiftKey;G.current=!0,ze?q.current=!0:q.current=!1,Ue===De.ENTER&&(W.current||(G.current=!1),Ee(!1),D==null||D(Ke)),y!==!1&&!W.current&&[De.UP,De.DOWN].includes(Ue)&&(ge(De.UP===Ue),Ke.preventDefault())},Fe=function(){G.current=!1,q.current=!1},ot=function(){Ee(!1),U(!1),G.current=!1};return Fd(function(){Y.isInvalidate()||Oe(Y,!1)},[_]),Fd(function(){var Ae=Ci(h);ne(Ae);var Ke=Ci(Ie(pe));(!Ae.equals(Ke)||!G.current||O)&&Oe(Ae,G.current)},[h]),Fd(function(){O&&ct()},[pe]),c.createElement("div",{className:te(o,i,(n={},Q(n,"".concat(o,"-focused"),j),Q(n,"".concat(o,"-disabled"),g),Q(n,"".concat(o,"-readonly"),v),Q(n,"".concat(o,"-not-a-number"),Y.isNaN()),Q(n,"".concat(o,"-out-of-range"),!Y.isInvalidate()&&!dt(Y)),n)),style:a,onFocus:function(){U(!0)},onBlur:ot,onKeyDown:Ye,onKeyUp:Fe,onCompositionStart:re,onCompositionEnd:oe,onBeforeInput:ke},E&&c.createElement(Die,{prefixCls:o,upNode:C,downNode:S,upDisabled:Re,downDisabled:be,onStep:ge}),c.createElement("div",{className:"".concat(L,"-wrap")},c.createElement("input",je({autoComplete:"off",role:"spinbutton","aria-valuemin":l,"aria-valuemax":s,"aria-valuenow":Y.isInvalidate()?null:Y.toString(),step:f},T,{ref:Bo(z,t),className:L,value:pe,onChange:xe,disabled:g,readOnly:v}))))});lk.displayName="InputNumber";const zie=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorBorder:o,borderRadius:i,fontSizeLG:a,controlHeightLG:l,controlHeightSM:s,colorError:d,inputPaddingHorizontalSM:f,colorTextDescription:m,motionDurationMid:h,colorPrimary:g,controlHeight:v,inputPaddingHorizontal:C,colorBgContainer:S,colorTextDisabled:y,borderRadiusSM:x,borderRadiusLG:E,controlWidth:w,handleVisible:I}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},hn(e)),qf(e)),xv(e,t)),{display:"inline-block",width:w,margin:0,padding:0,border:`${n}px ${r} ${o}`,borderRadius:i,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,borderRadius:E,[`input${t}-input`]:{height:l-2*n}},"&-sm":{padding:0,borderRadius:x,[`input${t}-input`]:{height:s-2*n,padding:`0 ${f}px`}},"&:hover":Object.assign({},Yf(e)),"&-focused":Object.assign({},qh(e)),"&-disabled":Object.assign(Object.assign({},oE(e)),{[`${t}-input`]:{cursor:"not-allowed"}}),"&-out-of-range":{input:{color:d}},"&-group":Object.assign(Object.assign(Object.assign({},hn(e)),XD(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:E}},"&-sm":{[`${t}-group-addon`]:{borderRadius:x}}}}),[t]:{"&-input":Object.assign(Object.assign({width:"100%",height:v-2*n,padding:`0 ${C}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${h} linear`,appearance:"textfield",color:e.colorText,fontSize:"inherit",verticalAlign:"top"},KD(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:{[`&: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:I===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${h} linear ${h}`,[`${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:m,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${r} ${o}`,transition:`all ${h} 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({},Bf()),{color:m,transition:`all ${h} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${r} ${o}`,borderEndEndRadius:i},"&-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:y}}},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},Hie=e=>{const{componentCls:t,inputPaddingHorizontal:n,inputAffixPadding:r,controlWidth:o,borderRadiusLG:i,borderRadiusSM:a}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},qf(e)),xv(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:o,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:i},"&-sm":{borderRadius:a},[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},Yf(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:0},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:r},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:n,marginInlineStart:r}}})}},jie=_n("InputNumber",e=>{const t=aE(e);return[zie(t),Hie(t),uv(t)]},e=>({controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:"auto"}));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{const{getPrefixCls:n,direction:r}=c.useContext(yt),o=c.useContext(Fi),[i,a]=c.useState(!1),l=c.useRef(null);c.useImperativeHandle(t,()=>l.current);const{className:s,rootClassName:d,size:f,disabled:m,prefixCls:h,addonBefore:g,addonAfter:v,prefix:C,bordered:S=!0,readOnly:y,status:x,controls:E}=e,w=Vie(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),I=n("input-number",h),[O,_]=jie(I),{compactSize:R,compactItemClassnames:M}=Oc(I,r);let P=c.createElement(XK,{className:`${I}-handler-up-inner`}),D=c.createElement(px,{className:`${I}-handler-down-inner`});const N=typeof E=="boolean"?E:void 0;typeof E=="object"&&(P=typeof E.upIcon>"u"?P:c.createElement("span",{className:`${I}-handler-up-inner`},E.upIcon),D=typeof E.downIcon>"u"?D:c.createElement("span",{className:`${I}-handler-down-inner`},E.downIcon));const{hasFeedback:T,status:L,isFormItemInput:z,feedbackIcon:F}=c.useContext(la),V=fv(L,x),j=R||f||o,U=C!=null||T,G=!!(g||v),W=c.useContext(zl),q=m??W,J=te({[`${I}-lg`]:j==="large",[`${I}-sm`]:j==="small",[`${I}-rtl`]:r==="rtl",[`${I}-borderless`]:!S,[`${I}-in-form-item`]:z},Ta(I,V),M,_,s,!U&&!G&&d);let X=c.createElement(lk,Object.assign({ref:l,disabled:q,className:J,upHandler:P,downHandler:D,prefixCls:I,readOnly:y,controls:N},w));if(U){const Y=te(`${I}-affix-wrapper`,Ta(`${I}-affix-wrapper`,V,T),{[`${I}-affix-wrapper-focused`]:i,[`${I}-affix-wrapper-disabled`]:e.disabled,[`${I}-affix-wrapper-sm`]:j==="small",[`${I}-affix-wrapper-lg`]:j==="large",[`${I}-affix-wrapper-rtl`]:r==="rtl",[`${I}-affix-wrapper-readonly`]:y,[`${I}-affix-wrapper-borderless`]:!S},!G&&s,!G&&d,_);X=c.createElement("div",{className:Y,style:e.style,onMouseUp:()=>l.current.focus()},C&&c.createElement("span",{className:`${I}-prefix`},C),mr(X,{style:null,value:e.value,onFocus:ne=>{var le;a(!0),(le=e.onFocus)===null||le===void 0||le.call(e,ne)},onBlur:ne=>{var le;a(!1),(le=e.onBlur)===null||le===void 0||le.call(e,ne)}}),T&&c.createElement("span",{className:`${I}-suffix`},F))}if(G){const Y=`${I}-group`,ne=`${Y}-addon`,le=g?c.createElement("div",{className:ne},g):null,we=v?c.createElement("div",{className:ne},v):null,Ie=te(`${I}-wrapper`,Y,_,{[`${Y}-rtl`]:r==="rtl"}),Ce=te(`${I}-group-wrapper`,{[`${I}-group-wrapper-sm`]:j==="small",[`${I}-group-wrapper-lg`]:j==="large",[`${I}-group-wrapper-rtl`]:r==="rtl"},Ta(`${I}-group-wrapper`,V,T),_,s,d);X=c.createElement("div",{className:Ce,style:e.style},c.createElement("div",{className:Ie},le&&c.createElement(vc,null,c.createElement(Sf,{status:!0,override:!0},le)),mr(X,{style:null,disabled:q}),we&&c.createElement(vc,null,c.createElement(Sf,{status:!0,override:!0},we))))}return O(X)}),uk=sk,Uie=e=>c.createElement(Va,{theme:{components:{InputNumber:{handleVisible:!0}}}},c.createElement(sk,Object.assign({},e)));uk._InternalPanelDoNotUseOrYouWillBeFired=Uie;const nb=uk;var ns={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40};const Wie={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 ck=function(e){Li(n,e);var t=Di(n);function n(){var r;Jn(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0||l.relatedTarget.className.indexOf("".concat(m,"-item"))>=0))&&f(r.getValidValue()))},r.go=function(l){var s=r.state.goInputText;s!==""&&(l.keyCode===ns.ENTER||l.type==="click")&&(r.setState({goInputText:""}),r.props.quickGo(r.getValidValue()))},r}return er(n,[{key:"getPageSizeOptions",value:function(){var o=this.props,i=o.pageSize,a=o.pageSizeOptions;return a.some(function(l){return l.toString()===i.toString()})?a:a.concat([i.toString()]).sort(function(l,s){var d=Number.isNaN(Number(l))?0:Number(l),f=Number.isNaN(Number(s))?0:Number(s);return d-f})}},{key:"render",value:function(){var o=this,i=this.props,a=i.pageSize,l=i.locale,s=i.rootPrefixCls,d=i.changeSize,f=i.quickGo,m=i.goButton,h=i.selectComponentClass,g=i.buildOptionText,v=i.selectPrefixCls,C=i.disabled,S=this.state.goInputText,y="".concat(s,"-options"),x=h,E=null,w=null,I=null;if(!d&&!f)return null;var O=this.getPageSizeOptions();if(d&&x){var _=O.map(function(R,M){return ve.createElement(x.Option,{key:M,value:R.toString()},(g||o.buildOptionText)(R))});E=ve.createElement(x,{disabled:C,prefixCls:v,showSearch:!1,className:"".concat(y,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(a||O[0]).toString(),onChange:this.changeSize,getPopupContainer:function(M){return M.parentNode},"aria-label":l.page_size,defaultOpen:!1},_)}return f&&(m&&(I=typeof m=="boolean"?ve.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:C,className:"".concat(y,"-quick-jumper-button")},l.jump_to_confirm):ve.createElement("span",{onClick:this.go,onKeyUp:this.go},m)),w=ve.createElement("div",{className:"".concat(y,"-quick-jumper")},l.jump_to,ve.createElement("input",{disabled:C,type:"text",value:S,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":l.page}),l.page,I)),ve.createElement("li",{className:"".concat(y)},E,w)}}]),n}(ve.Component);ck.defaultProps={pageSizeOptions:["10","20","50","100"]};var cd=function(t){var n,r=t.rootPrefixCls,o=t.page,i=t.active,a=t.className,l=t.showTitle,s=t.onClick,d=t.onKeyPress,f=t.itemRender,m="".concat(r,"-item"),h=te(m,"".concat(m,"-").concat(o),(n={},Q(n,"".concat(m,"-active"),i),Q(n,"".concat(m,"-disabled"),!o),Q(n,t.className,a),n)),g=function(){s(o)},v=function(S){d(S,s,o)};return ve.createElement("li",{title:l?o.toString():null,className:h,onClick:g,onKeyPress:v,tabIndex:0},f(o,"page",ve.createElement("a",{rel:"nofollow"},o)))};function DC(){}function FR(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}var Kie=function(t,n,r){return r};function rl(e,t,n){var r=typeof e>"u"?t.pageSize:e;return Math.floor((n.total-1)/r)+1}var dk=function(e){Li(n,e);var t=Di(n);function n(r){var o;Jn(this,n),o=t.call(this,r),o.paginationNode=ve.createRef(),o.getJumpPrevPage=function(){return Math.max(1,o.state.current-(o.props.showLessItems?3:5))},o.getJumpNextPage=function(){return Math.min(rl(void 0,o.state,o.props),o.state.current+(o.props.showLessItems?3:5))},o.getItemIcon=function(d,f){var m=o.props.prefixCls,h=d||ve.createElement("button",{type:"button","aria-label":f,className:"".concat(m,"-item-link")});return typeof d=="function"&&(h=ve.createElement(d,H({},o.props))),h},o.isValid=function(d){var f=o.props.total;return FR(d)&&d!==o.state.current&&FR(f)&&f>0},o.shouldDisplayQuickJumper=function(){var d=o.props,f=d.showQuickJumper,m=d.total,h=o.state.pageSize;return m<=h?!1:f},o.handleKeyDown=function(d){(d.keyCode===ns.ARROW_UP||d.keyCode===ns.ARROW_DOWN)&&d.preventDefault()},o.handleKeyUp=function(d){var f=o.getValidValue(d),m=o.state.currentInputValue;f!==m&&o.setState({currentInputValue:f}),d.keyCode===ns.ENTER?o.handleChange(f):d.keyCode===ns.ARROW_UP?o.handleChange(f-1):d.keyCode===ns.ARROW_DOWN&&o.handleChange(f+1)},o.handleBlur=function(d){var f=o.getValidValue(d);o.handleChange(f)},o.changePageSize=function(d){var f=o.state.current,m=rl(d,o.state,o.props);f=f>m?m:f,m===0&&(f=o.state.current),typeof d=="number"&&("pageSize"in o.props||o.setState({pageSize:d}),"current"in o.props||o.setState({current:f,currentInputValue:f})),o.props.onShowSizeChange(f,d),"onChange"in o.props&&o.props.onChange&&o.props.onChange(f,d)},o.handleChange=function(d){var f=o.props,m=f.disabled,h=f.onChange,g=o.state,v=g.pageSize,C=g.current,S=g.currentInputValue;if(o.isValid(d)&&!m){var y=rl(void 0,o.state,o.props),x=d;return d>y?x=y:d<1&&(x=1),"current"in o.props||o.setState({current:x}),x!==S&&o.setState({currentInputValue:x}),h(x,v),x}return C},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?m-2:0),g=2;g=a?s=a:s=Number(i),s}},{key:"getShowSizeChanger",value:function(){var o=this.props,i=o.showSizeChanger,a=o.total,l=o.totalBoundaryShowSizeChanger;return typeof i<"u"?i:a>l}},{key:"render",value:function(){var o=this,i=this.props,a=i.prefixCls,l=i.className,s=i.style,d=i.disabled,f=i.hideOnSinglePage,m=i.total,h=i.locale,g=i.showQuickJumper,v=i.showLessItems,C=i.showTitle,S=i.showTotal,y=i.simple,x=i.itemRender,E=i.showPrevNextJumpers,w=i.jumpPrevIcon,I=i.jumpNextIcon,O=i.selectComponentClass,_=i.selectPrefixCls,R=i.pageSizeOptions,M=this.state,P=M.current,D=M.pageSize,N=M.currentInputValue;if(f===!0&&m<=D)return null;var T=rl(void 0,this.state,this.props),L=[],z=null,F=null,V=null,j=null,U=null,G=g&&g.goButton,W=v?1:2,q=P-1>0?P-1:0,J=P+1m?m:P*D]));if(y)return G&&(typeof G=="boolean"?U=ve.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},h.jump_to_confirm):U=ve.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},G),U=ve.createElement("li",{title:C?"".concat(h.jump_to).concat(P,"/").concat(T):null,className:"".concat(a,"-simple-pager")},U)),ve.createElement("ul",je({className:te(a,"".concat(a,"-simple"),Q({},"".concat(a,"-disabled"),d),l),style:s,ref:this.paginationNode},X),Y,ve.createElement("li",{title:C?h.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:te("".concat(a,"-prev"),Q({},"".concat(a,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(q)),ve.createElement("li",{title:C?"".concat(P,"/").concat(T):null,className:"".concat(a,"-simple-pager")},ve.createElement("input",{type:"text",value:N,disabled:d,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),ve.createElement("span",{className:"".concat(a,"-slash")},"/"),T),ve.createElement("li",{title:C?h.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:te("".concat(a,"-next"),Q({},"".concat(a,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(J)),U);if(T<=3+W*2){var ne={locale:h,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:C,itemRender:x};T||L.push(ve.createElement(cd,je({},ne,{key:"noPager",page:1,className:"".concat(a,"-item-disabled")})));for(var le=1;le<=T;le+=1){var we=P===le;L.push(ve.createElement(cd,je({},ne,{key:le,page:le,active:we})))}}else{var Ie=v?h.prev_3:h.prev_5,Ce=v?h.next_3:h.next_5;E&&(z=ve.createElement("li",{title:C?Ie:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:te("".concat(a,"-jump-prev"),Q({},"".concat(a,"-jump-prev-custom-icon"),!!w))},x(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(w,"prev page"))),F=ve.createElement("li",{title:C?Ce:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:te("".concat(a,"-jump-next"),Q({},"".concat(a,"-jump-next-custom-icon"),!!I))},x(this.getJumpNextPage(),"jump-next",this.getItemIcon(I,"next page")))),j=ve.createElement(cd,{locale:h,last:!0,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:T,page:T,active:!1,showTitle:C,itemRender:x}),V=ve.createElement(cd,{locale:h,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:C,itemRender:x});var ce=Math.max(1,P-W),he=Math.min(P+W,T);P-1<=W&&(he=1+W*2),T-P<=W&&(ce=T-W*2);for(var ie=ce;ie<=he;ie+=1){var pe=P===ie;L.push(ve.createElement(cd,{locale:h,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ie,page:ie,active:pe,showTitle:C,itemRender:x}))}P-1>=W*2&&P!==1+2&&(L[0]=c.cloneElement(L[0],{className:"".concat(a,"-item-after-jump-prev")}),L.unshift(z)),T-P>=W*2&&P!==T-2&&(L[L.length-1]=c.cloneElement(L[L.length-1],{className:"".concat(a,"-item-before-jump-next")}),L.push(F)),ce!==1&&L.unshift(V),he!==T&&L.push(j)}var fe=!this.hasPrev()||!T,Oe=!this.hasNext()||!T;return ve.createElement("ul",je({className:te(a,l,Q({},"".concat(a,"-disabled"),d)),style:s,ref:this.paginationNode},X),Y,ve.createElement("li",{title:C?h.prev_page:null,onClick:this.prev,tabIndex:fe?null:0,onKeyPress:this.runIfEnterPrev,className:te("".concat(a,"-prev"),Q({},"".concat(a,"-disabled"),fe)),"aria-disabled":fe},this.renderPrev(q)),L,ve.createElement("li",{title:C?h.next_page:null,onClick:this.next,tabIndex:Oe?null:0,onKeyPress:this.runIfEnterNext,className:te("".concat(a,"-next"),Q({},"".concat(a,"-disabled"),Oe)),"aria-disabled":Oe},this.renderNext(J)),ve.createElement(ck,{disabled:d,locale:h,rootPrefixCls:a,selectComponentClass:O,selectPrefixCls:_,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:P,pageSize:D,pageSizeOptions:R,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:G}))}}],[{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 l=i.current,s=rl(o.pageSize,i,o);l=l>s?s:l,"current"in o||(a.current=l,a.currentInputValue=l),a.pageSize=o.pageSize}return a}}]),n}(ve.Component);dk.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:DC,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:DC,locale:Wie,style:{},itemRender:Kie,totalBoundaryShowSizeChanger:50};const fk=e=>c.createElement(pv,Object.assign({},e,{size:"small"})),pk=e=>c.createElement(pv,Object.assign({},e,{size:"middle"}));fk.Option=pv.Option;pk.Option=pv.Option;const Gie=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}-mini`]:{[` - &:hover ${t}-item:not(${t}-item-active), - &:active ${t}-item:not(${t}-item-active), - &:hover ${t}-item-link, - &:active ${t}-item-link - `]:{backgroundColor:"transparent"}},[`${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.paginationItemDisabledBgActive,"&:hover, &:active":{backgroundColor:e.paginationItemDisabledBgActive},a:{color:e.paginationItemDisabledColorActive}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1},[`${t}-simple-pager`]:{color:e.colorTextDisabled}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Xie=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`},[`&${t}-mini ${t}-item`]:{minWidth:e.paginationItemSizeSM,height:e.paginationItemSizeSM,margin:0,lineHeight:`${e.paginationItemSizeSM-2}px`},[`&${t}-mini ${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.paginationItemSizeSM,height:e.paginationItemSizeSM,margin:0,lineHeight:`${e.paginationItemSizeSM}px`,[`&: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.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.paginationItemSizeSM,marginInlineEnd:0,lineHeight:`${e.paginationItemSizeSM}px`},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,["&-size-changer"]:{top:e.paginationMiniOptionsSizeChangerTop},["&-quick-jumper"]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`,input:Object.assign(Object.assign({},iE(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},Yie=e=>{const{componentCls:t}=e;return{[` - &${t}-simple ${t}-prev, - &${t}-simple ${t}-next - `]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`,verticalAlign:"top",[`${t}-item-link`]:{height:e.paginationItemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.paginationItemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:e.paginationItemInputBg,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"}}}}},qie=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}},"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},ka(e))},[` - ${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.paginationItemSize,height:e.paginationItemSize,color:e.colorText,fontFamily:e.paginationFontFamily,lineHeight:`${e.paginationItemSize}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:`border ${e.motionDurationMid}`},[`&:focus-visible ${t}-item-link`]:Object.assign({},ka(e)),[`&: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({},qf(e)),{width:e.controlHeightLG*1.25,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Qie=e=>{const{componentCls:t}=e;return{[`${t}-item`]:Object.assign(Object.assign({display:"inline-block",minWidth:e.paginationItemSize,height:e.paginationItemSize,marginInlineEnd:e.marginXS,fontFamily:e.paginationFontFamily,lineHeight:`${e.paginationItemSize-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,transition:"none","&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}}},bf(e)),{"&-active":{fontWeight:e.paginationFontWeightActive,backgroundColor:e.paginationItemBgActive,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}})}},Zie=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},hn(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.paginationItemSize,marginInlineEnd:e.marginXS,lineHeight:`${e.paginationItemSize-2}px`,verticalAlign:"middle"}}),Qie(e)),qie(e)),Yie(e)),Xie(e)),Gie(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"}}},Jie=e=>{const{componentCls:t}=e;return{[`${t}${t}-disabled`]:{"&, &: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.paginationItemDisabledBgActive}},[`${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]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.paginationItemBg},[`${t}-item-link`]:{backgroundColor:e.paginationItemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.paginationItemBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},eae=_n("Pagination",e=>{const t=Kt(e,{paginationItemSize:e.controlHeight,paginationFontFamily:e.fontFamily,paginationItemBg:e.colorBgContainer,paginationItemBgActive:e.colorBgContainer,paginationFontWeightActive:e.fontWeightStrong,paginationItemSizeSM:e.controlHeightSM,paginationItemInputBg:e.colorBgContainer,paginationMiniOptionsSizeChangerTop:0,paginationItemDisabledBgActive:e.controlItemBgActiveDisabled,paginationItemDisabledColorActive:e.colorTextDisabled,paginationItemLinkBg:e.colorBgContainer,inputOutlineOffset:"0 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"},aE(e));return[Zie(t),e.wireframe&&Jie(t)]});var tae=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,selectPrefixCls:n,className:r,rootClassName:o,size:i,locale:a,selectComponentClass:l,responsive:s,showSizeChanger:d}=e,f=tae(e,["prefixCls","selectPrefixCls","className","rootClassName","size","locale","selectComponentClass","responsive","showSizeChanger"]);const{xs:m}=mv(s),{getPrefixCls:h,direction:g,pagination:v={}}=c.useContext(yt),C=h("pagination",t),[S,y]=eae(C),x=d??v.showSizeChanger,E=c.useMemo(()=>{const M=c.createElement("span",{className:`${C}-item-ellipsis`},"•••"),P=c.createElement("button",{className:`${C}-item-link`,type:"button",tabIndex:-1},g==="rtl"?c.createElement(DS,null):c.createElement(HO,null)),D=c.createElement("button",{className:`${C}-item-link`,type:"button",tabIndex:-1},g==="rtl"?c.createElement(HO,null):c.createElement(DS,null)),N=c.createElement("a",{className:`${C}-item-link`},c.createElement("div",{className:`${C}-item-container`},g==="rtl"?c.createElement(zO,{className:`${C}-item-link-icon`}):c.createElement(BO,{className:`${C}-item-link-icon`}),M)),T=c.createElement("a",{className:`${C}-item-link`},c.createElement("div",{className:`${C}-item-container`},g==="rtl"?c.createElement(BO,{className:`${C}-item-link-icon`}):c.createElement(zO,{className:`${C}-item-link-icon`}),M));return{prevIcon:P,nextIcon:D,jumpPrevIcon:N,jumpNextIcon:T}},[g,C]),[w]=Ff("Pagination",IA),I=Object.assign(Object.assign({},w),a),O=i==="small"||!!(m&&!i&&s),_=h("select",n),R=te({[`${C}-mini`]:O,[`${C}-rtl`]:g==="rtl"},r,o,y);return S(c.createElement(dk,Object.assign({},E,f,{prefixCls:C,selectPrefixCls:_,className:R,selectComponentClass:l||(O?fk:pk),locale:I,showSizeChanger:x})))},hE=nae,rae=new Dt("antSpinMove",{to:{opacity:1}}),oae=new Dt("antRotate",{to:{transform:"rotate(405deg)"}}),iae=e=>({[`${e.componentCls}`]:Object.assign(Object.assign({},hn(e)),{position:"absolute",display:"none",color:e.colorPrimary,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}`},[`&${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:rae,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:oae,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"}})}),aae=_n("Spin",e=>{const t=Kt(e,{spinDotDefault:e.colorTextDescription,spinDotSize:e.controlHeightLG/2,spinDotSizeSM:e.controlHeightLG*.35,spinDotSizeLG:e.controlHeight});return[iae(t)]},{contentHeight:400});var lae=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:l,wrapperClassName:s,style:d,children:f,hashId:m}=e,h=lae(e,["spinPrefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","hashId"]),[g,v]=c.useState(()=>n&&!uae(n,r));c.useEffect(()=>{if(n){const I=voe(r,()=>{v(!0)});return I(),()=>{var O;(O=I==null?void 0:I.cancel)===null||O===void 0||O.call(I)}}v(!1)},[r,n]);const C=c.useMemo(()=>typeof f<"u",[f]),{direction:S}=c.useContext(yt),y=te(t,{[`${t}-sm`]:a==="small",[`${t}-lg`]:a==="large",[`${t}-spinning`]:g,[`${t}-show-text`]:!!l,[`${t}-rtl`]:S==="rtl"},o,i,m),x=te(`${t}-container`,{[`${t}-blur`]:g}),E=kr(h,["indicator","prefixCls"]),w=c.createElement("div",Object.assign({},E,{style:d,className:y,"aria-live":"polite","aria-busy":g}),sae(t,e),l?c.createElement("div",{className:`${t}-text`},l):null);return C?c.createElement("div",Object.assign({},E,{className:te(`${t}-nested-loading`,s,m)}),g&&c.createElement("div",{key:"loading"},w),c.createElement("div",{className:x,key:"container"},f)):w},mk=e=>{const{prefixCls:t}=e,{getPrefixCls:n}=c.useContext(yt),r=n("spin",t),[o,i]=aae(r),a=Object.assign(Object.assign({},e),{spinPrefixCls:r,hashId:i});return o(c.createElement(cae,Object.assign({},a)))};mk.setDefaultIndicator=e=>{Qm=e};const hk=mk;function gk(){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 vk=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=vk(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:l}=c.useContext(yt),s=l("list",t),d=te(`${s}-item-meta`,n),f=ve.createElement("div",{className:`${s}-item-meta-content`},o&&ve.createElement("h4",{className:`${s}-item-meta-title`},o),i&&ve.createElement("div",{className:`${s}-item-meta-description`},i));return ve.createElement("div",Object.assign({},a,{className:d}),r&&ve.createElement("div",{className:`${s}-item-meta-avatar`},r),(o||i)&&f)},fae=(e,t)=>{var{prefixCls:n,children:r,actions:o,extra:i,className:a,colStyle:l}=e,s=vk(e,["prefixCls","children","actions","extra","className","colStyle"]);const{grid:d,itemLayout:f}=c.useContext(gE),{getPrefixCls:m}=c.useContext(yt),h=()=>{let x;return c.Children.forEach(r,E=>{typeof E=="string"&&(x=!0)}),x&&c.Children.count(r)>1},g=()=>f==="vertical"?!!i:!h(),v=m("list",n),C=o&&o.length>0&&ve.createElement("ul",{className:`${v}-item-action`,key:"actions"},o.map((x,E)=>ve.createElement("li",{key:`${v}-item-action-${E}`},x,E!==o.length-1&&ve.createElement("em",{className:`${v}-item-action-split`})))),S=d?"div":"li",y=ve.createElement(S,Object.assign({},s,d?{}:{ref:t},{className:te(`${v}-item`,{[`${v}-item-no-flex`]:!g()},a)}),f==="vertical"&&i?[ve.createElement("div",{className:`${v}-item-main`,key:"content"},r,C),ve.createElement("div",{className:`${v}-item-extra`,key:"extra"},i)]:[r,C,mr(i,{key:"extra"})]);return d?ve.createElement(Zoe,{ref:t,flex:1,style:l},y):y},yk=c.forwardRef(fae);yk.Meta=dae;const pae=yk,mae=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:o,padding:i,listItemPaddingSM:a,marginLG:l,borderRadiusLG:s}=e;return{[`${t}`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:s,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${o}px ${l}px`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:`${i}px ${r}px`}}}},hae=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`}}}}}},gae=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:o,paddingSM:i,marginLG:a,padding:l,listItemPadding:s,colorPrimary:d,listItemPaddingSM:f,listItemPaddingLG:m,paddingXS:h,margin:g,colorText:v,colorTextDescription:C,motionDurationSlow:S,lineWidth:y}=e,x={};return["start","center","end"].forEach(E=>{x[`&-align-${E}`]={textAlign:E}}),{[`${t}`]:Object.assign(Object.assign({},hn(e)),{position:"relative","*":{outline:"none"},[`${t}-header, ${t}-footer`]:{background:"transparent",paddingBlock:i},[`${t}-pagination`]:Object.assign(Object.assign({marginBlockStart:a},x),{[`${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:s,color:v,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:l},[`${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:d}}},[`${t}-item-meta-description`]:{color:C,fontSize:e.fontSize,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 ${h}px`,color:C,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center",["&:first-child"]:{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:y,height:Math.ceil(e.fontSize*e.lineHeight)-e.marginXXS*2,transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${l}px 0`,color:C,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:l,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:l,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:i,color:v,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:l,marginInlineStart:"auto","> li":{padding:`0 ${l}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:m},[`${t}-sm ${t}-item`]:{padding:f},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},vae=_n("List",e=>{const t=Kt(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG,listItemPadding:`${e.paddingContentVertical}px 0`,listItemPaddingSM:`${e.paddingContentVerticalSM}px ${e.paddingContentHorizontal}px`,listItemPaddingLG:`${e.paddingContentVerticalLG}px ${e.paddingContentHorizontalLG}px`});return[gae(t),mae(t),hae(t)]},{contentWidth:220});var yae=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(de,Re)=>{_(de),M(Re),n&&n[Se]&&n[Se](de,Re)},z=L("onChange"),F=L("onShowSizeChange"),V=(Se,de)=>{if(!x)return null;let Re;return typeof y=="function"?Re=y(Se):y?Re=Se[y]:Re=Se.key,Re||(Re=`list-item-${de}`),c.createElement(c.Fragment,{key:Re},x(Se,de))},j=()=>!!(f||n||C),U=P("list",r),[G,W]=vae(U);let q=S;typeof q=="boolean"&&(q={spinning:q});const J=q&&q.spinning;let X="";switch(g){case"large":X="lg";break;case"small":X="sm";break}const Y=te(U,{[`${U}-vertical`]:d==="vertical",[`${U}-${X}`]:X,[`${U}-split`]:i,[`${U}-bordered`]:o,[`${U}-loading`]:J,[`${U}-grid`]:!!m,[`${U}-something-after-last-item`]:j(),[`${U}-rtl`]:N==="rtl"},a,l,W),ne=gk(T,{total:h.length,current:O,pageSize:R},n||{}),le=Math.ceil(ne.total/ne.pageSize);ne.current>le&&(ne.current=le);const we=n?c.createElement("div",{className:te(`${U}-pagination`,`${U}-pagination-align-${(t=ne==null?void 0:ne.align)!==null&&t!==void 0?t:"end"}`)},c.createElement(hE,Object.assign({},ne,{onChange:z,onShowSizeChange:F}))):null;let Ie=Pe(h);n&&h.length>(ne.current-1)*ne.pageSize&&(Ie=Pe(h).splice((ne.current-1)*ne.pageSize,ne.pageSize));const Ce=Object.keys(m||{}).some(Se=>["xs","sm","md","lg","xl","xxl"].includes(Se)),ce=mv(Ce),he=c.useMemo(()=>{for(let Se=0;Se{if(!m)return;const Se=he&&m[he]?m[he]:m.column;if(Se)return{width:`${100/Se}%`,maxWidth:`${100/Se}%`}},[m==null?void 0:m.column,he]);let pe=J&&c.createElement("div",{style:{minHeight:53}});if(Ie.length>0){const Se=Ie.map((de,Re)=>V(de,Re));pe=m?c.createElement(tie,{gutter:m.gutter},c.Children.map(Se,de=>c.createElement("div",{key:de==null?void 0:de.key,style:ie},de))):c.createElement("ul",{className:`${U}-items`},Se)}else!s&&!J&&(pe=c.createElement("div",{className:`${U}-empty-text`},E&&E.emptyText||(D==null?void 0:D("List"))||c.createElement(jx,{componentName:"List"})));const fe=ne.position||"bottom",Oe=c.useMemo(()=>({grid:m,itemLayout:d}),[JSON.stringify(m),d]);return G(c.createElement(gE.Provider,{value:Oe},c.createElement("div",Object.assign({className:Y},w),(fe==="top"||fe==="both")&&we,v&&c.createElement("div",{className:`${U}-header`},v),c.createElement(hk,Object.assign({},q),pe,s),C&&c.createElement("div",{className:`${U}-footer`},C),f||(fe==="bottom"||fe==="both")&&we)))}Zm.Item=pae;let Zo=null,hs=e=>e(),If=[],Jh={};function bae(){const{prefixCls:e,getContainer:t,duration:n,rtl:r,maxCount:o,top:i}=Jh,a=e??Ex().getPrefixCls("message"),l=(t==null?void 0:t())||document.body;return{prefixCls:a,container:l,duration:n,rtl:r,maxCount:o,top:i}}const Sae=c.forwardRef((e,t)=>{const n=()=>{const{prefixCls:m,container:h,maxCount:g,duration:v,rtl:C,top:S}=bae();return{prefixCls:m,getContainer:()=>h,maxCount:g,duration:v,rtl:C,top:S}},[r,o]=c.useState(n),[i,a]=qA(r),l=Ex(),s=l.getRootPrefixCls(),d=l.getIconPrefixCls(),f=()=>{o(n)};return c.useEffect(f,[]),c.useImperativeHandle(t,()=>{const m=Object.assign({},i);return Object.keys(m).forEach(h=>{m[h]=function(){return f(),i[h].apply(i,arguments)}}),{instance:m,sync:f}}),c.createElement(Va,{prefixCls:s,iconPrefixCls:d},a)});function wv(){if(!Zo){const e=document.createDocumentFragment(),t={fragment:e};Zo=t,hs(()=>{Ox(c.createElement(Sae,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,wv())})}}),e)});return}Zo.instance&&(If.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{hs(()=>{const r=Zo.instance.open(Object.assign(Object.assign({},Jh),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":hs(()=>{Zo==null||Zo.instance.destroy(e.key)});break;default:hs(()=>{var r;const o=(r=Zo.instance)[t].apply(r,Pe(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),If=[])}function Cae(e){Jh=Object.assign(Object.assign({},Jh),e),hs(()=>{var t;(t=Zo==null?void 0:Zo.sync)===null||t===void 0||t.call(Zo)})}function xae(e){const t=$x(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:i=>{r=i}};return If.push(o),()=>{r?hs(()=>{r()}):o.skipped=!0}});return wv(),t}function Eae(e,t){const n=$x(r=>{let o;const i={type:e,args:t,resolve:r,setCloseFn:a=>{o=a}};return If.push(i),()=>{o?hs(()=>{o()}):i.skipped=!0}});return wv(),n}function wae(e){If.push({type:"destroy",key:e}),wv()}const Iae=["success","info","warning","error","loading"],$ae={open:xae,destroy:wae,config:Cae,useMessage:Lq,_InternalPanelDoNotUseOrYouWillBeFired:Tq},bk=$ae;Iae.forEach(e=>{bk[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r10&&arguments[10]!==void 0?arguments[10]:0,h=r/100*360*((360-a)/360),g=a===0?0:{bottom:0,top:180,left:90,right:-90}[l],v=(100-o)/100*n;return d==="round"&&o!==100&&(v+=f/2,v>=n&&(v=n-.01)),{stroke:typeof s=="string"?s:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:v+m,transform:"rotate(".concat(i+h+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}},vE=function(t){var n=t.id,r=t.prefixCls,o=t.steps,i=t.strokeWidth,a=t.trailWidth,l=t.gapDegree,s=l===void 0?0:l,d=t.gapPosition,f=t.trailColor,m=t.strokeLinecap,h=t.style,g=t.className,v=t.strokeColor,C=t.percent,S=vt(t,Nae),y=Pae(n),x="".concat(y,"-gradient"),E=dd/2-i/2,w=Math.PI*2*E,I=s>0?90+s/2:-90,O=w*((360-s)/360),_=It(o)==="object"?o:{count:o,space:2},R=_.count,M=_.space,P=rb(w,O,0,100,I,s,d,f,m,i),D=HR(C),N=HR(v),T=N.find(function(V){return V&&It(V)==="object"}),L=_ae(),z=function(){var j=0;return D.map(function(U,G){var W=N[G]||N[N.length-1],q=W&&It(W)==="object"?"url(#".concat(x,")"):void 0,J=rb(w,O,j,U,I,s,d,W,m,i);return j+=U,c.createElement("circle",{key:G,className:"".concat(r,"-circle-path"),r:E,cx:0,cy:0,stroke:q,strokeLinecap:m,strokeWidth:i,opacity:U===0?0:1,style:J,ref:function(Y){L[G]=Y}})}).reverse()},F=function(){var j=Math.round(R*(D[0]/100)),U=100/R,G=0;return new Array(R).fill(null).map(function(W,q){var J=q<=j-1?N[0]:f,X=J&&It(J)==="object"?"url(#".concat(x,")"):void 0,Y=rb(w,O,G,U,I,s,d,J,"butt",i,M);return G+=(O-Y.strokeDashoffset+M)*100/O,c.createElement("circle",{key:q,className:"".concat(r,"-circle-path"),r:E,cx:0,cy:0,stroke:X,strokeWidth:i,opacity:1,style:Y,ref:function(le){L[q]=le}})})};return c.createElement("svg",je({className:te("".concat(r,"-circle"),g),viewBox:"".concat(-dd/2," ").concat(-dd/2," ").concat(dd," ").concat(dd),style:h,id:n,role:"presentation"},S),T&&c.createElement("defs",null,c.createElement("linearGradient",{id:x,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(T).sort(function(V,j){return zR(V)-zR(j)}).map(function(V,j){return c.createElement("stop",{key:j,offset:V,stopColor:T[V]})}))),!R&&c.createElement("circle",{className:"".concat(r,"-circle-trail"),r:E,cx:0,cy:0,stroke:f,strokeLinecap:m,strokeWidth:a||i,style:P}),R?F():z())};vE.defaultProps=Oae;vE.displayName="Circle";function Es(e){return!e||e<0?0:e>100?100:e}function tg(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 Mae=e=>{let{percent:t,success:n,successPercent:r}=e;const o=Es(tg({success:n,successPercent:r}));return[o,Es(Es(t)-o)]},Aae=e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||Xu.green,n||null]},Iv=(e,t,n)=>{var r,o,i,a;let l=-1,s=-1;if(t==="step"){const d=n.steps,f=n.strokeWidth;typeof e=="string"||typeof e>"u"?(l=e==="small"?2:14,s=f??8):typeof e=="number"?[l,s]=[e,e]:[l=14,s=8]=e,l*=d}else if(t==="line"){const d=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?s=d||(e==="small"?6:8):typeof e=="number"?[l,s]=[e,e]:[l=-1,s=8]=e}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[l,s]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[l,s]=[e,e]:(l=(o=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&o!==void 0?o:120,s=(a=(i=e[0])!==null&&i!==void 0?i:e[1])!==null&&a!==void 0?a:120));return[l,s]},Lae=3,Dae=e=>Lae/e*100,kae=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:o,gapDegree:i,width:a=120,type:l,children:s,success:d,size:f}=e,m=f??[a,a],[h,g]=Iv(m,"circle");let{strokeWidth:v}=e;v===void 0&&(v=Math.max(Dae(h),6));const C={width:h,height:g,fontSize:h*.15+6},S=c.useMemo(()=>{if(i||i===0)return i;if(l==="dashboard")return 75},[i,l]),y=o||l==="dashboard"&&"bottom"||void 0,x=Object.prototype.toString.call(e.strokeColor)==="[object Object]",E=Aae({success:d,strokeColor:e.strokeColor}),w=te(`${t}-inner`,{[`${t}-circle-gradient`]:x}),I=c.createElement(vE,{percent:Mae(e),strokeWidth:v,trailWidth:v,strokeColor:E,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:S,gapPosition:y});return c.createElement("div",{className:w,style:C},h<=20?c.createElement(Wf,{title:s},c.createElement("span",null,I)):c.createElement(c.Fragment,null,I,s))},Fae=kae;var Bae=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(", ")},Hae=(e,t)=>{const{from:n=Xu.blue,to:r=Xu.blue,direction:o=t==="rtl"?"to left":"to right"}=e,i=Bae(e,["from","to","direction"]);if(Object.keys(i).length!==0){const a=zae(i);return{backgroundImage:`linear-gradient(${o}, ${a})`}}return{backgroundImage:`linear-gradient(${o}, ${n}, ${r})`}},jae=e=>{const{prefixCls:t,direction:n,percent:r,size:o,strokeWidth:i,strokeColor:a,strokeLinecap:l="round",children:s,trailColor:d=null,success:f}=e,m=a&&typeof a!="string"?Hae(a,n):{backgroundColor:a},h=l==="square"||l==="butt"?0:void 0,g={backgroundColor:d||void 0,borderRadius:h},v=o??[-1,i||(o==="small"?6:8)],[C,S]=Iv(v,"line",{strokeWidth:i}),y=Object.assign({width:`${Es(r)}%`,height:S,borderRadius:h},m),x=tg(e),E={width:`${Es(x)}%`,height:S,borderRadius:h,backgroundColor:f==null?void 0:f.strokeColor},w={width:C<0?"100%":C,height:S};return c.createElement(c.Fragment,null,c.createElement("div",{className:`${t}-outer`,style:w},c.createElement("div",{className:`${t}-inner`,style:g},c.createElement("div",{className:`${t}-bg`,style:y}),x!==void 0?c.createElement("div",{className:`${t}-success-bg`,style:E}):null)),s)},Vae=jae,Uae=e=>{const{size:t,steps:n,percent:r=0,strokeWidth:o=8,strokeColor:i,trailColor:a=null,prefixCls:l,children:s}=e,d=Math.round(n*(r/100)),m=t??[t==="small"?2:14,o],[h,g]=Iv(m,"step",{steps:n,strokeWidth:o}),v=h/n,C=new Array(n);for(let S=0;S{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},hn(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:Kae,animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${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}}})}},Xae=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"}}}},Yae=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}}}}}},qae=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},Qae=_n("Progress",e=>{const t=e.marginXXS/2,n=Kt(e,{progressLineRadius:100,progressInfoTextColor:e.colorText,progressDefaultColor:e.colorInfo,progressRemainingColor:e.colorFillSecondary,progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[Gae(n),Xae(n),Yae(n),qae(n)]});var Zae=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,rootClassName:r,steps:o,strokeColor:i,percent:a=0,size:l="default",showInfo:s=!0,type:d="line",status:f,format:m}=e,h=Zae(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format"]),g=c.useMemo(()=>{var M,P;const D=tg(e);return parseInt(D!==void 0?(M=D??0)===null||M===void 0?void 0:M.toString():(P=a??0)===null||P===void 0?void 0:P.toString(),10)},[a,e.success,e.successPercent]),v=c.useMemo(()=>!Jae.includes(f)&&g>=100?"success":f||"normal",[f,g]),{getPrefixCls:C,direction:S}=c.useContext(yt),y=C("progress",t),[x,E]=Qae(y),w=c.useMemo(()=>{if(!s)return null;const M=tg(e);let P;const D=m||(T=>`${T}%`),N=d==="line";return m||v!=="exception"&&v!=="success"?P=D(Es(a),Es(M)):v==="exception"?P=N?c.createElement(Ic,null):c.createElement(Lf,null):v==="success"&&(P=N?c.createElement(fx,null):c.createElement(pM,null)),c.createElement("span",{className:`${y}-text`,title:typeof P=="string"?P:void 0},P)},[s,a,g,v,d,y,m]),I=Array.isArray(i)?i[0]:i,O=typeof i=="string"||Array.isArray(i)?i:void 0;let _;d==="line"?_=o?c.createElement(Wae,Object.assign({},e,{strokeColor:O,prefixCls:y,steps:o}),w):c.createElement(Vae,Object.assign({},e,{strokeColor:I,prefixCls:y,direction:S}),w):(d==="circle"||d==="dashboard")&&(_=c.createElement(Fae,Object.assign({},e,{strokeColor:I,prefixCls:y,progressStatus:v}),w));const R=te(y,{[`${y}-inline-circle`]:d==="circle"&&Iv(l,"circle")[0]<=20,[`${y}-${d==="dashboard"&&"circle"||o&&"steps"||d}`]:!0,[`${y}-status-${v}`]:!0,[`${y}-show-info`]:s,[`${y}-${l}`]:typeof l=="string",[`${y}-rtl`]:S==="rtl"},n,r,E);return x(c.createElement("div",Object.assign({className:R,role:"progressbar"},kr(h,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),_))},jR=ele;var ul={};function tle(e){var t=c.createContext(void 0),n=function(o){var i=o.value,a=o.children,l=c.useRef(i);l.current=i;var s=c.useState(function(){return{getValue:function(){return l.current},listeners:new Set}}),d=ue(s,1),f=d[0];return sn(function(){Pi.unstable_batchedUpdates(function(){f.listeners.forEach(function(m){m(i)})})},[i]),c.createElement(t.Provider,{value:f},a)};return{Context:t,Provider:n,defaultValue:e}}function zi(e,t){var n=so(typeof t=="function"?t:function(m){if(t===void 0)return m;if(!Array.isArray(t))return m[t];var h={};return t.forEach(function(g){h[g]=m[g]}),h}),r=c.useContext(e==null?void 0:e.Context),o=r||{},i=o.listeners,a=o.getValue,l=c.useRef();l.current=n(r?a():e==null?void 0:e.defaultValue);var s=c.useState({}),d=ue(s,2),f=d[1];return sn(function(){if(!r)return;function m(h){var g=n(h);Da(l.current,g,!0)||f({})}return i.add(m),function(){i.delete(m)}},[r]),l.current}var Ck=c.createContext(0);function xk(){return c.useContext(Ck)}function nle(e,t){var n=Bl(e),r=function(i,a){var l=n?{ref:a}:{},s=c.useRef(0),d=c.useRef(i);return(!t||t(d.current,i))&&(s.current+=1),d.current=i,c.createElement(Ck.Provider,{value:s.current},c.createElement(e,je({},i,l)))};return n?c.forwardRef(r):r}function $v(e,t){var n=Bl(e),r=function(i,a){var l=n?{ref:a}:{};return xk(),c.createElement(e,je({},i,l))};return n?c.memo(c.forwardRef(r),t):c.memo(r,t)}var fi=tle();function rle(e,t){var n=c.useRef(0);n.current+=1;var r=c.useRef(e),o=[];Object.keys(e||{}).map(function(a){var l;(e==null?void 0:e[a])!==((l=r.current)===null||l===void 0?void 0:l[a])&&o.push(a)}),r.current=e;var i=c.useRef([]);return o.length&&(i.current=o),c.useDebugValue(n.current),c.useDebugValue(i.current.join(", ")),t&&console.log("".concat(t,":"),n.current,i.current),n.current}var ole=c.memo(function(){var e=rle();return c.createElement("h1",null,"Render Times: ",e)});ole.displayName="RenderBlock";var Ek=c.createContext({renderWithProps:!1}),ile="RC_TABLE_KEY";function ale(e){return e==null?[]:Array.isArray(e)?e:[e]}function Ov(e){var t=[],n={};return e.forEach(function(r){for(var o=r||{},i=o.key,a=o.dataIndex,l=i||ale(a).join("-")||ile;n[l];)l="".concat(l,"_next");n[l]=!0,t.push(l)}),t}function FC(e){return e!=null}function lle(e){return e&&It(e)==="object"&&!Array.isArray(e)&&!c.isValidElement(e)}function sle(e,t,n,r,o,i){var a=c.useContext(Ek),l=xk(),s=Bs(function(){if(FC(r))return[r];var d=t==null||t===""?[]:Array.isArray(t)?t:[t],f=Oi(e,d),m=f,h=void 0;if(o){var g=o(f,e,n);lle(g)?(m=g.children,h=g.props,a.renderWithProps=!0):m=g}return[m,h]},[l,e,r,t,o,n],function(d,f){if(i){var m=ue(d,2),h=m[1],g=ue(f,2),v=g[1];return i(v,h)}return a.renderWithProps?!0:!Da(d,f,!0)});return s}function ule(e,t,n,r){var o=e+t-1;return e<=r&&o>=n}function cle(e,t){return zi(fi,function(n){var r=ule(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var dle=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():c.isValidElement(o)&&typeof o.props.children=="string"&&(i=o.props.children)),i};function fle(e){var t,n,r,o,i,a,l,s,d=e.component,f=e.children,m=e.ellipsis,h=e.scope,g=e.prefixCls,v=e.className,C=e.align,S=e.record,y=e.render,x=e.dataIndex,E=e.renderIndex,w=e.shouldCellUpdate,I=e.index,O=e.rowType,_=e.colSpan,R=e.rowSpan,M=e.fixLeft,P=e.fixRight,D=e.firstFixLeft,N=e.lastFixLeft,T=e.firstFixRight,L=e.lastFixRight,z=e.appendNode,F=e.additionalProps,V=F===void 0?{}:F,j=e.isSticky,U="".concat(g,"-cell"),G=zi(fi,["supportSticky","allColumnsFixedLeft"]),W=G.supportSticky,q=G.allColumnsFixedLeft,J=sle(S,x,E,f,y,w),X=ue(J,2),Y=X[0],ne=X[1],le={},we=typeof M=="number"&&W,Ie=typeof P=="number"&&W;we&&(le.position="sticky",le.left=M),Ie&&(le.position="sticky",le.right=P);var Ce=(t=(n=(r=ne==null?void 0:ne.colSpan)!==null&&r!==void 0?r:V.colSpan)!==null&&n!==void 0?n:_)!==null&&t!==void 0?t:1,ce=(o=(i=(a=ne==null?void 0:ne.rowSpan)!==null&&a!==void 0?a:V.rowSpan)!==null&&i!==void 0?i:R)!==null&&o!==void 0?o:1,he=cle(I,ce),ie=ue(he,2),pe=ie[0],fe=ie[1],Oe=function(ct){var ut;S&&fe(I,I+ce-1),V==null||(ut=V.onMouseEnter)===null||ut===void 0||ut.call(V,ct)},Se=function(ct){var ut;S&&fe(-1,-1),V==null||(ut=V.onMouseLeave)===null||ut===void 0||ut.call(V,ct)};if(Ce===0||ce===0)return null;var de=(l=V.title)!==null&&l!==void 0?l:dle({rowType:O,ellipsis:m,children:Y}),Re=te(U,v,(s={},Q(s,"".concat(U,"-fix-left"),we&&W),Q(s,"".concat(U,"-fix-left-first"),D&&W),Q(s,"".concat(U,"-fix-left-last"),N&&W),Q(s,"".concat(U,"-fix-left-all"),N&&q&&W),Q(s,"".concat(U,"-fix-right"),Ie&&W),Q(s,"".concat(U,"-fix-right-first"),T&&W),Q(s,"".concat(U,"-fix-right-last"),L&&W),Q(s,"".concat(U,"-ellipsis"),m),Q(s,"".concat(U,"-with-append"),z),Q(s,"".concat(U,"-fix-sticky"),(we||Ie)&&j&&W),Q(s,"".concat(U,"-row-hover"),!ne&&pe),s),V.className,ne==null?void 0:ne.className),be={};C&&(be.textAlign=C);var Xe=H(H(H(H({},V.style),be),le),ne==null?void 0:ne.style),Qe=Y;return It(Qe)==="object"&&!Array.isArray(Qe)&&!c.isValidElement(Qe)&&(Qe=null),m&&(N||T)&&(Qe=c.createElement("span",{className:"".concat(U,"-content")},Qe)),c.createElement(d,je({},ne,V,{className:Re,style:Xe,title:de,scope:h,onMouseEnter:Oe,onMouseLeave:Se,colSpan:Ce!==1?Ce:null,rowSpan:ce!==1?ce:null}),z,Qe)}const _v=c.memo(fle);function yE(e,t,n,r,o,i){var a=n[e]||{},l=n[t]||{},s,d;a.fixed==="left"?s=r.left[o==="rtl"?t:e]:l.fixed==="right"&&(d=r.right[o==="rtl"?e:t]);var f=!1,m=!1,h=!1,g=!1,v=n[t+1],C=n[e-1],S=!(i!=null&&i.children);if(o==="rtl"){if(s!==void 0){var y=C&&C.fixed==="left";g=!y&&S}else if(d!==void 0){var x=v&&v.fixed==="right";h=!x&&S}}else if(s!==void 0){var E=v&&v.fixed==="left";f=!E&&S}else if(d!==void 0){var w=C&&C.fixed==="right";m=!w&&S}return{fixLeft:s,fixRight:d,lastFixLeft:f,firstFixRight:m,lastFixRight:h,firstFixLeft:g,isSticky:r.isSticky}}var wk=c.createContext({});function ple(e){var t=e.className,n=e.index,r=e.children,o=e.colSpan,i=o===void 0?1:o,a=e.rowSpan,l=e.align,s=zi(fi,["prefixCls","direction"]),d=s.prefixCls,f=s.direction,m=c.useContext(wk),h=m.scrollColumnIndex,g=m.stickyOffsets,v=m.flattenColumns,C=m.columns,S=n+i-1,y=S+1===h?i+1:i,x=yE(n,n+y-1,v,g,f,C==null?void 0:C[n]);return c.createElement(_v,je({className:t,index:n,component:"td",prefixCls:d,record:null,dataIndex:null,align:l,colSpan:y,rowSpan:a,render:function(){return r}},x))}var mle=["children"];function hle(e){var t=e.children,n=vt(e,mle);return c.createElement("tr",n,t)}function Rv(e){var t=e.children;return t}Rv.Row=hle;Rv.Cell=ple;function gle(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,o=e.columns,i=zi(fi,"prefixCls"),a=r.length-1,l=r[a],s=c.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:l!=null&&l.scrollbar?a:null,columns:o}},[l,r,a,n,o]);return c.createElement(wk.Provider,{value:s},c.createElement("tfoot",{className:"".concat(i,"-summary")},t))}const Im=$v(gle);var Ik=Rv;function vle(e){return null}function yle(e){return null}function $k(e,t,n,r,o,i){var a=[];a.push({record:e,indent:t,index:i});var l=o(e),s=r==null?void 0:r.has(l);if(e&&Array.isArray(e[n])&&s)for(var d=0;d1?fe-1:0),Se=1;Se=0;l-=1){var s=t[l],d=n&&n[l],f=d&&d[jd];if(s||f||a){var m=f||{};m.columnType;var h=vt(m,$le);o.unshift(c.createElement("col",je({key:l,style:{width:s}},h))),a=!0}}return c.createElement("colgroup",null,o)}var Ole=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function _le(e,t){return c.useMemo(function(){for(var n=[],r=0;r=0})},[i]),P=i[i.length-1],D={fixed:P?P.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(E,"-cell-scrollbar")}}},N=c.useMemo(function(){return O?[].concat(Pe(o),[D]):o},[O,o]),T=c.useMemo(function(){return O?[].concat(Pe(i),[D]):i},[O,i]),L=c.useMemo(function(){var F=s.right,V=s.left;return H(H({},s),{},{left:d==="rtl"?[].concat(Pe(V.map(function(j){return j+O})),[0]):V,right:d==="rtl"?F:[].concat(Pe(F.map(function(j){return j+O})),[0]),isSticky:I})},[O,s,I]),z=_le(a,l);return c.createElement("div",{style:H({overflow:"hidden"},I?{top:m,bottom:h}:{}),ref:R,className:te(n,Q({},g,!!g))},c.createElement("table",{style:{tableLayout:"fixed",visibility:r||z?null:"hidden"}},(!r||!C||M)&&c.createElement(Tk,{colWidths:z?[].concat(Pe(z),[O]):[],columCount:l+1,columns:T}),S(H(H({},y),{},{stickyOffsets:L,columns:N,flattenColumns:T}))))});Pk.displayName="FixedHolder";const VR=c.memo(Pk);function Nk(e){var t=e.cells,n=e.stickyOffsets,r=e.flattenColumns,o=e.rowComponent,i=e.cellComponent,a=e.tdCellComponent,l=e.onHeaderRow,s=e.index,d=zi(fi,["prefixCls","direction"]),f=d.prefixCls,m=d.direction,h;l&&(h=l(t.map(function(v){return v.column}),s));var g=Ov(t.map(function(v){return v.column}));return c.createElement(o,h,t.map(function(v,C){var S=v.column,y=yE(v.colStart,v.colEnd,r,n,m,S),x;return S&&S.onHeaderCell&&(x=v.column.onHeaderCell(S)),c.createElement(_v,je({},v,{scope:S.title?v.colSpan>1?"colgroup":"col":null,ellipsis:S.ellipsis,align:S.align,component:S.title?i:a,prefixCls:f,key:g[C]},y,{additionalProps:x,rowType:"header"}))}))}Nk.displayName="HeaderRow";function Rle(e){var t=[];function n(a,l){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[s]=t[s]||[];var d=l,f=a.filter(Boolean).map(function(m){var h={key:m.key,className:m.className||"",children:m.title,column:m,colStart:d},g=1,v=m.children;return v&&v.length>0&&(g=n(v,d,s+1).reduce(function(C,S){return C+S},0),h.hasSubColumns=!0),"colSpan"in m&&(g=m.colSpan),"rowSpan"in m&&(h.rowSpan=m.rowSpan),h.colSpan=g,h.colEnd=h.colStart+g-1,t[s].push(h),d+=g,g});return f}n(e,0);for(var r=t.length,o=function(l){t[l].forEach(function(s){!("rowSpan"in s)&&!s.hasSubColumns&&(s.rowSpan=r-l)})},i=0;i0?[].concat(Pe(t),Pe(BC(i).map(function(a){return H({fixed:o},a)}))):[].concat(Pe(t),[H(H({},n),{},{fixed:o})])},[])}function Mle(e){return e.map(function(t){var n=t.fixed,r=vt(t,Nle),o=n;return n==="left"?o="right":n==="right"&&(o="left"),H({fixed:o},r)})}function Ale(e,t){var n=e.prefixCls,r=e.columns,o=e.children,i=e.expandable,a=e.expandedKeys,l=e.columnTitle,s=e.getRowKey,d=e.onTriggerExpand,f=e.expandIcon,m=e.rowExpandable,h=e.expandIconColumnIndex,g=e.direction,v=e.expandRowByClick,C=e.columnWidth,S=e.fixed,y=c.useMemo(function(){return r||bE(o)},[r,o]),x=c.useMemo(function(){if(i){var I,O=y.slice();if(!O.includes(ul)){var _=h||0;_>=0&&O.splice(_,0,ul)}var R=O.indexOf(ul);O=O.filter(function(N,T){return N!==ul||T===R});var M=y[R],P;(S==="left"||S)&&!h?P="left":(S==="right"||S)&&h===y.length?P="right":P=M?M.fixed:null;var D=(I={},Q(I,jd,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),Q(I,"title",l),Q(I,"fixed",P),Q(I,"className","".concat(n,"-row-expand-icon-cell")),Q(I,"width",C),Q(I,"render",function(T,L,z){var F=s(L,z),V=a.has(F),j=m?m(L):!0,U=f({prefixCls:n,expanded:V,expandable:j,record:L,onExpand:d});return v?c.createElement("span",{onClick:function(W){return W.stopPropagation()}},U):U}),I);return O.map(function(N){return N===ul?D:N})}return y.filter(function(N){return N!==ul})},[i,y,s,a,f,g]),E=c.useMemo(function(){var I=x;return t&&(I=t(I)),I.length||(I=[{render:function(){return null}}]),I},[t,x,g]),w=c.useMemo(function(){return g==="rtl"?Mle(BC(E)):BC(E)},[E,g]);return[E,w]}function Lle(e){var t,n=e.prefixCls,r=e.record,o=e.onExpand,i=e.expanded,a=e.expandable,l="".concat(n,"-row-expand-icon");if(!a)return c.createElement("span",{className:te(l,"".concat(n,"-row-spaced"))});var s=function(f){o(r,f),f.stopPropagation()};return c.createElement("span",{className:te(l,(t={},Q(t,"".concat(n,"-row-expanded"),i),Q(t,"".concat(n,"-row-collapsed"),!i),t)),onClick:s})}function Dle(e,t,n){var r=[];function o(i){(i||[]).forEach(function(a,l){r.push(t(a,l)),o(a[n])})}return o(e),r}function kle(e,t,n){var r=Ile(e),o=r.expandIcon,i=r.expandedRowKeys,a=r.defaultExpandedRowKeys,l=r.defaultExpandAllRows,s=r.expandedRowRender,d=r.onExpand,f=r.onExpandedRowsChange,m=r.childrenColumnName,h=o||Lle,g=m||"children",v=c.useMemo(function(){return s?"row":e.expandable&&e.internalHooks===ng&&e.expandable.__PARENT_RENDER_ICON__||t.some(function(I){return I&&It(I)==="object"&&I[g]})?"nest":!1},[!!s,t]),C=c.useState(function(){return a||(l?Dle(t,n,g):[])}),S=ue(C,2),y=S[0],x=S[1],E=c.useMemo(function(){return new Set(i||y||[])},[i,y]),w=c.useCallback(function(I){var O=n(I,t.indexOf(I)),_,R=E.has(O);R?(E.delete(O),_=Pe(E)):_=[].concat(Pe(E),[O]),x(_),d&&d(!R,I),f&&f(_)},[n,E,t,d,f]);return[r,v,E,h,g,w]}function Fle(e,t,n,r){var o=e.map(function(i,a){return yE(a,a,e,t,n,r==null?void 0:r[a])});return Bs(function(){return o},[o],function(i,a){return!Da(i,a)})}function Mk(e){var t=c.useRef(e),n=c.useState({}),r=ue(n,2),o=r[1],i=c.useRef(null),a=c.useRef([]);function l(s){a.current.push(s);var d=Promise.resolve();i.current=d,d.then(function(){if(i.current===d){var f=a.current,m=t.current;a.current=[],f.forEach(function(h){t.current=h(t.current)}),i.current=null,m!==t.current&&o({})}})}return c.useEffect(function(){return function(){i.current=null}},[]),[t.current,l]}function Ble(e){var t=c.useRef(e||null),n=c.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 c.useEffect(function(){return r},[]),[o,i]}function zle(){var e=c.useState(-1),t=ue(e,2),n=t[0],r=t[1],o=c.useState(-1),i=ue(o,2),a=i[0],l=i[1],s=c.useCallback(function(d,f){r(d),l(f)},[]);return[n,a,s]}var WR=pr()?window:null;function Hle(e,t){var n=It(e)==="object"?e:{},r=n.offsetHeader,o=r===void 0?0:r,i=n.offsetSummary,a=i===void 0?0:i,l=n.offsetScroll,s=l===void 0?0:l,d=n.getContainer,f=d===void 0?function(){return WR}:d,m=f()||WR;return c.useMemo(function(){var h=!!e;return{isSticky:h,stickyClassName:h?"".concat(t,"-sticky-holder"):"",offsetHeader:o,offsetSummary:a,offsetScroll:s,container:m}},[s,o,a,t,m])}function jle(e,t,n){var r=c.useMemo(function(){for(var o=[],i=[],a=0,l=0,s=0;s=m&&(V=m-h),a({scrollLeft:V/m*(f+2)}),x.current.x=T.pageX},P=function(){if(i.current){var T=MR(i.current).top,L=T+i.current.offsetHeight,z=s===window?document.documentElement.scrollTop+window.innerHeight:MR(s).top+s.clientHeight;L-zh()<=z||T>=z-l?y(function(F){return H(H({},F),{},{isHiddenScrollBar:!0})}):y(function(F){return H(H({},F),{},{isHiddenScrollBar:!1})})}},D=function(T){y(function(L){return H(H({},L),{},{scrollLeft:T/f*m||0})})};return c.useImperativeHandle(n,function(){return{setScrollLeft:D}}),c.useEffect(function(){var N=_a(document.body,"mouseup",_,!1),T=_a(document.body,"mousemove",M,!1);return P(),function(){N.remove(),T.remove()}},[h,I]),c.useEffect(function(){var N=_a(s,"scroll",P,!1),T=_a(window,"resize",P,!1);return function(){N.remove(),T.remove()}},[s]),c.useEffect(function(){S.isHiddenScrollBar||y(function(N){var T=i.current;return T?H(H({},N),{},{scrollLeft:T.scrollLeft/T.scrollWidth*T.clientWidth}):N})},[S.isHiddenScrollBar]),f<=m||!h||S.isHiddenScrollBar?null:c.createElement("div",{style:{height:zh(),width:m,bottom:l},className:"".concat(d,"-sticky-scroll")},c.createElement("div",{onMouseDown:R,ref:g,className:te("".concat(d,"-sticky-scroll-bar"),Q({},"".concat(d,"-sticky-scroll-bar-active"),I)),style:{width:"".concat(h,"px"),transform:"translate3d(".concat(S.scrollLeft,"px, 0, 0)")}}))};const Ule=c.forwardRef(Vle);var Wle=[],Kle={},ng="rc-table-internal-hook";function Gle(){return"No Data"}function Xle(e){var t,n=H({rowKey:"key",prefixCls:"rc-table",emptyText:Gle},e),r=n.prefixCls,o=n.className,i=n.rowClassName,a=n.style,l=n.data,s=n.rowKey,d=n.scroll,f=n.tableLayout,m=n.direction,h=n.title,g=n.footer,v=n.summary,C=n.caption,S=n.id,y=n.showHeader,x=n.components,E=n.emptyText,w=n.onRow,I=n.onHeaderRow,O=n.internalHooks,_=n.transformColumns,R=n.internalRefs,M=n.sticky,P=l||Wle,D=!!P.length,N=c.useCallback(function(rt,nt){return Oi(x,rt)||nt},[x]),T=c.useMemo(function(){return typeof s=="function"?s:function(rt){var nt=rt&&rt[s];return nt}},[s]),L=zle(),z=ue(L,3),F=z[0],V=z[1],j=z[2],U=kle(n,P,T),G=ue(U,6),W=G[0],q=G[1],J=G[2],X=G[3],Y=G[4],ne=G[5],le=c.useState(0),we=ue(le,2),Ie=we[0],Ce=we[1],ce=Ale(H(H(H({},n),W),{},{expandable:!!W.expandedRowRender,columnTitle:W.columnTitle,expandedKeys:J,getRowKey:T,onTriggerExpand:ne,expandIcon:X,expandIconColumnIndex:W.expandIconColumnIndex,direction:m}),O===ng?_:null),he=ue(ce,2),ie=he[0],pe=he[1],fe=c.useMemo(function(){return{columns:ie,flattenColumns:pe}},[ie,pe]),Oe=c.useRef(),Se=c.useRef(),de=c.useRef(),Re=c.useRef(),be=c.useRef(),Xe=c.useState(!1),Qe=ue(Xe,2),ft=Qe[0],ct=Qe[1],ut=c.useState(!1),dt=ue(ut,2),He=dt[0],Je=dt[1],ee=Mk(new Map),re=ue(ee,2),oe=re[0],xe=re[1],ge=Ov(pe),Ee=ge.map(function(rt){return oe.get(rt)}),ke=c.useMemo(function(){return Ee},[Ee.join("_")]),Ye=jle(ke,pe.length,m),Fe=d&&FC(d.y),ot=d&&FC(d.x)||!!W.fixed,Ae=ot&&pe.some(function(rt){var nt=rt.fixed;return nt}),Ke=c.useRef(),Ue=Hle(M,r),ze=Ue.isSticky,at=Ue.offsetHeader,$t=Ue.offsetSummary,tt=Ue.offsetScroll,lt=Ue.stickyClassName,_e=Ue.container,Ne=c.useMemo(function(){return v==null?void 0:v(P)},[v,P]),Te=(Fe||ze)&&c.isValidElement(Ne)&&Ne.type===Rv&&Ne.props.fixed,We,qe,ht;Fe&&(qe={overflowY:"scroll",maxHeight:d.y}),ot&&(We={overflowX:"auto"},Fe||(qe={overflowY:"hidden"}),ht={width:(d==null?void 0:d.x)===!0?"auto":d==null?void 0:d.x,minWidth:"100%"});var en=c.useCallback(function(rt,nt){Hf(Oe.current)&&xe(function(Nt){if(Nt.get(rt)!==nt){var Gt=new Map(Nt);return Gt.set(rt,nt),Gt}return Nt})},[]),tn=Ble(null),Rn=ue(tn,2),_t=Rn[0],zt=Rn[1];function Tn(rt,nt){nt&&(typeof nt=="function"?nt(rt):nt.scrollLeft!==rt&&(nt.scrollLeft=rt,nt.scrollLeft!==rt&&setTimeout(function(){nt.scrollLeft=rt},0)))}var zn=so(function(rt){var nt=rt.currentTarget,Nt=rt.scrollLeft,Gt=m==="rtl",Pn=typeof Nt=="number"?Nt:nt.scrollLeft,sr=nt||Kle;if(!zt()||zt()===sr){var jr;_t(sr),Tn(Pn,Se.current),Tn(Pn,de.current),Tn(Pn,be.current),Tn(Pn,(jr=Ke.current)===null||jr===void 0?void 0:jr.setScrollLeft)}if(nt){var ur=nt.scrollWidth,bo=nt.clientWidth;if(ur===bo){ct(!1),Je(!1);return}Gt?(ct(-Pn0)):(ct(Pn>0),Je(Pn{o(i,d),d.stopPropagation()},className:te(s,{[`${s}-spaced`]:!l,[`${s}-expanded`]:l&&a,[`${s}-collapsed`]:l&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}}const Zle=Ak((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r});function Ms(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 Jf(e,t){return t?`${t}-${e}`:`${e}`}function Pv(e,t){return typeof e=="function"?e(t):e}function Jle(e,t){const n=Pv(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n}function Lk(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var ese=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Dk=function(t,n){var r=t.className,o=t.style,i=t.motion,a=t.motionNodes,l=t.motionType,s=t.onMotionStart,d=t.onMotionEnd,f=t.active,m=t.treeNodeRequiredProps,h=vt(t,ese),g=c.useState(!0),v=ue(g,2),C=v[0],S=v[1],y=c.useContext(sE),x=y.prefixCls,E=c.useRef(!1),w=function(){E.current||d(),E.current=!0};return c.useEffect(function(){a&&l==="hide"&&C&&S(!1)},[a]),c.useEffect(function(){return a&&s(),function(){a&&w()}},[]),a?c.createElement(di,je({ref:n,visible:C},i,{motionAppear:l==="show",onAppearEnd:w,onLeaveEnd:w}),function(I,O){var _=I.className,R=I.style;return c.createElement("div",{ref:O,className:te("".concat(x,"-treenode-motion"),_),style:R},a.map(function(M){var P=je({},(Lk(M.data),M.data)),D=M.title,N=M.key,T=M.isStart,L=M.isEnd;delete P.children;var z=zd(N,m);return c.createElement(bc,je({},P,z,{title:D,active:f,data:M.data,key:N,isStart:T,isEnd:L}))}))}):c.createElement(bc,je({domRef:n,className:r,style:o},h,{active:f}))};Dk.displayName="MotionTreeNode";var tse=c.forwardRef(Dk);function nse(){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 l=new Map;i.forEach(function(d){l.set(d,!0)});var s=a.filter(function(d){return!l.has(d)});return s.length===1?s[0]:null}return n ").concat(t);return t}var Fk=c.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,l=e.loadedKeys,s=e.loadingKeys,d=e.halfCheckedKeys,f=e.keyEntities,m=e.disabled,h=e.dragging,g=e.dragOverNodeKey,v=e.dropPosition,C=e.motion,S=e.height,y=e.itemHeight,x=e.virtual,E=e.focusable,w=e.activeItem,I=e.focused,O=e.tabIndex,_=e.onKeyDown,R=e.onFocus,M=e.onBlur,P=e.onActiveChange,D=e.onListChangeStart,N=e.onListChangeEnd,T=vt(e,rse),L=c.useRef(null),z=c.useRef(null);c.useImperativeHandle(t,function(){return{scrollTo:function(Xe){L.current.scrollTo(Xe)},getIndentWidth:function(){return z.current.offsetWidth}}});var F=c.useState(o),V=ue(F,2),j=V[0],U=V[1],G=c.useState(r),W=ue(G,2),q=W[0],J=W[1],X=c.useState(r),Y=ue(X,2),ne=Y[0],le=Y[1],we=c.useState([]),Ie=ue(we,2),Ce=Ie[0],ce=Ie[1],he=c.useState(null),ie=ue(he,2),pe=ie[0],fe=ie[1],Oe=c.useRef(r);Oe.current=r;function Se(){var be=Oe.current;J(be),le(be),ce([]),fe(null),N()}c.useEffect(function(){U(o);var be=nse(j,o);if(be.key!==null)if(be.add){var Xe=q.findIndex(function(He){var Je=He.key;return Je===be.key}),Qe=qR(GR(q,r,be.key),x,S,y),ft=q.slice();ft.splice(Xe+1,0,YR),le(ft),ce(Qe),fe("show")}else{var ct=r.findIndex(function(He){var Je=He.key;return Je===be.key}),ut=qR(GR(r,q,be.key),x,S,y),dt=r.slice();dt.splice(ct+1,0,YR),le(dt),ce(ut),fe("hide")}else q!==r&&(J(r),le(r))},[o,r]),c.useEffect(function(){h||Se()},[h]);var de=C?ne:r,Re={expandedKeys:o,selectedKeys:i,loadedKeys:l,loadingKeys:s,checkedKeys:a,halfCheckedKeys:d,dragOverNodeKey:g,dropPosition:v,keyEntities:f};return c.createElement(c.Fragment,null,I&&w&&c.createElement("span",{style:XR,"aria-live":"assertive"},ise(w)),c.createElement("div",null,c.createElement("input",{style:XR,disabled:E===!1||m,tabIndex:E!==!1?O:null,onKeyDown:_,onFocus:R,onBlur:M,value:"",onChange:ose,"aria-label":"for screen reader"})),c.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},c.createElement("div",{className:"".concat(n,"-indent")},c.createElement("div",{ref:z,className:"".concat(n,"-indent-unit")}))),c.createElement(Bx,je({},T,{data:de,itemKey:QR,height:S,fullHeight:!1,virtual:x,itemHeight:y,prefixCls:"".concat(n,"-list"),ref:L,onVisibleChange:function(Xe,Qe){var ft=new Set(Xe),ct=Qe.filter(function(ut){return!ft.has(ut)});ct.some(function(ut){return QR(ut)===As})&&Se()}}),function(be){var Xe=be.pos,Qe=je({},(Lk(be.data),be.data)),ft=be.title,ct=be.key,ut=be.isStart,dt=be.isEnd,He=Qf(ct,Xe);delete Qe.key,delete Qe.children;var Je=zd(He,Re);return c.createElement(tse,je({},Qe,Je,{title:ft,active:!!w&&ct===w.key,pos:Xe,data:be.data,isStart:ut,isEnd:dt,motion:C,motionNodes:ct===As?Ce:null,motionType:pe,onMotionStart:D,onMotionEnd:Se,treeNodeRequiredProps:Re,onMouseMove:function(){P(null)}}))}))});Fk.displayName="NodeList";function ase(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 c.createElement("div",{style:o})}var lse=10,SE=function(e){Li(n,e);var t=Di(n);function n(){var r;Jn(this,n);for(var o=arguments.length,i=new Array(o),a=0;a2&&arguments[2]!==void 0?arguments[2]:!1,m=r.state,h=m.dragChildrenKeys,g=m.dropPosition,v=m.dropTargetKey,C=m.dropTargetPos,S=m.dropAllowed;if(S){var y=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),v!==null){var x=H(H({},zd(v,r.getTreeNodeRequiredProps())),{},{active:((d=r.getActiveItem())===null||d===void 0?void 0:d.key)===v,data:r.state.keyEntities[v].node}),E=h.indexOf(v)!==-1;wn(!E,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var w=uE(C),I={event:l,node:qn(x),dragNode:r.dragNode?qn(r.dragNode.props):null,dragNodesKeys:[r.dragNode.props.eventKey].concat(h),dropToGap:g!==0,dropPosition:g+Number(w[w.length-1])};f||y==null||y(I),r.dragNode=null}}},r.cleanDragState=function(){var l=r.state.draggingNodeKey;l!==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(l,s){var d=r.state,f=d.expandedKeys,m=d.flattenNodes,h=s.expanded,g=s.key,v=s.isLeaf;if(!(v||l.shiftKey||l.metaKey||l.ctrlKey)){var C=m.filter(function(y){return y.key===g})[0],S=qn(H(H({},zd(g,r.getTreeNodeRequiredProps())),{},{data:C.data}));r.setExpandedKeys(h?Ki(f,g):Ca(f,g)),r.onNodeExpand(l,S)}},r.onNodeClick=function(l,s){var d=r.props,f=d.onClick,m=d.expandAction;m==="click"&&r.triggerExpandActionExpand(l,s),f==null||f(l,s)},r.onNodeDoubleClick=function(l,s){var d=r.props,f=d.onDoubleClick,m=d.expandAction;m==="doubleClick"&&r.triggerExpandActionExpand(l,s),f==null||f(l,s)},r.onNodeSelect=function(l,s){var d=r.state.selectedKeys,f=r.state,m=f.keyEntities,h=f.fieldNames,g=r.props,v=g.onSelect,C=g.multiple,S=s.selected,y=s[h.key],x=!S;x?C?d=Ca(d,y):d=[y]:d=Ki(d,y);var E=d.map(function(w){var I=m[w];return I?I.node:null}).filter(function(w){return w});r.setUncontrolledState({selectedKeys:d}),v==null||v(d,{event:"select",selected:x,node:s,selectedNodes:E,nativeEvent:l.nativeEvent})},r.onNodeCheck=function(l,s,d){var f=r.state,m=f.keyEntities,h=f.checkedKeys,g=f.halfCheckedKeys,v=r.props,C=v.checkStrictly,S=v.onCheck,y=s.key,x,E={event:"check",node:s,checked:d,nativeEvent:l.nativeEvent};if(C){var w=d?Ca(h,y):Ki(h,y),I=Ki(g,y);x={checked:w,halfChecked:I},E.checkedNodes=w.map(function(D){return m[D]}).filter(function(D){return D}).map(function(D){return D.node}),r.setUncontrolledState({checkedKeys:w})}else{var O=Qu([].concat(Pe(h),[y]),!0,m),_=O.checkedKeys,R=O.halfCheckedKeys;if(!d){var M=new Set(_);M.delete(y);var P=Qu(Array.from(M),{checked:!1,halfCheckedKeys:R},m);_=P.checkedKeys,R=P.halfCheckedKeys}x=_,E.checkedNodes=[],E.checkedNodesPositions=[],E.halfCheckedKeys=R,_.forEach(function(D){var N=m[D];if(N){var T=N.node,L=N.pos;E.checkedNodes.push(T),E.checkedNodesPositions.push({node:T,pos:L})}}),r.setUncontrolledState({checkedKeys:_},!1,{halfCheckedKeys:R})}S==null||S(x,E)},r.onNodeLoad=function(l){var s=l.key,d=new Promise(function(f,m){r.setState(function(h){var g=h.loadedKeys,v=g===void 0?[]:g,C=h.loadingKeys,S=C===void 0?[]:C,y=r.props,x=y.loadData,E=y.onLoad;if(!x||v.indexOf(s)!==-1||S.indexOf(s)!==-1)return null;var w=x(l);return w.then(function(){var I=r.state.loadedKeys,O=Ca(I,s);E==null||E(O,{event:"load",node:l}),r.setUncontrolledState({loadedKeys:O}),r.setState(function(_){return{loadingKeys:Ki(_.loadingKeys,s)}}),f()}).catch(function(I){if(r.setState(function(_){return{loadingKeys:Ki(_.loadingKeys,s)}}),r.loadingRetryTimes[s]=(r.loadingRetryTimes[s]||0)+1,r.loadingRetryTimes[s]>=lse){var O=r.state.loadedKeys;wn(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:Ca(O,s)}),f()}m(I)}),{loadingKeys:Ca(S,s)}})});return d.catch(function(){}),d},r.onNodeMouseEnter=function(l,s){var d=r.props.onMouseEnter;d==null||d({event:l,node:s})},r.onNodeMouseLeave=function(l,s){var d=r.props.onMouseLeave;d==null||d({event:l,node:s})},r.onNodeContextMenu=function(l,s){var d=r.props.onRightClick;d&&(l.preventDefault(),d({event:l,node:s}))},r.onFocus=function(){var l=r.props.onFocus;r.setState({focused:!0});for(var s=arguments.length,d=new Array(s),f=0;f1&&arguments[1]!==void 0?arguments[1]:!1,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var f=!1,m=!0,h={};Object.keys(l).forEach(function(g){if(g in r.props){m=!1;return}f=!0,h[g]=l[g]}),f&&(!s||m)&&r.setState(H(H({},h),d))}},r.scrollTo=function(l){r.listRef.current.scrollTo(l)},r}return er(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,l=i.flattenNodes,s=i.keyEntities,d=i.draggingNodeKey,f=i.activeKey,m=i.dropLevelOffset,h=i.dropContainerKey,g=i.dropTargetKey,v=i.dropPosition,C=i.dragOverNodeKey,S=i.indent,y=this.props,x=y.prefixCls,E=y.className,w=y.style,I=y.showLine,O=y.focusable,_=y.tabIndex,R=_===void 0?0:_,M=y.selectable,P=y.showIcon,D=y.icon,N=y.switcherIcon,T=y.draggable,L=y.checkable,z=y.checkStrictly,F=y.disabled,V=y.motion,j=y.loadData,U=y.filterTreeNode,G=y.height,W=y.itemHeight,q=y.virtual,J=y.titleRender,X=y.dropIndicatorRender,Y=y.onContextMenu,ne=y.onScroll,le=y.direction,we=y.rootClassName,Ie=y.rootStyle,Ce=Ba(this.props,{aria:!0,data:!0}),ce;return T&&(It(T)==="object"?ce=T:typeof T=="function"?ce={nodeDraggable:T}:ce={}),c.createElement(sE.Provider,{value:{prefixCls:x,selectable:M,showIcon:P,icon:D,switcherIcon:N,draggable:ce,draggingNodeKey:d,checkable:L,checkStrictly:z,disabled:F,keyEntities:s,dropLevelOffset:m,dropContainerKey:h,dropTargetKey:g,dropPosition:v,dragOverNodeKey:C,indent:S,direction:le,dropIndicatorRender:X,loadData:j,filterTreeNode:U,titleRender:J,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}},c.createElement("div",{role:"tree",className:te(x,E,we,(o={},Q(o,"".concat(x,"-show-line"),I),Q(o,"".concat(x,"-focused"),a),Q(o,"".concat(x,"-active-focused"),f!==null),o)),style:Ie},c.createElement(Fk,je({ref:this.listRef,prefixCls:x,style:w,data:l,disabled:F,selectable:M,checkable:!!L,motion:V,dragging:d!==null,height:G,itemHeight:W,virtual:q,focusable:O,focused:a,tabIndex:R,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Y,onScroll:ne},this.getTreeNodeRequiredProps(),Ce))))}}],[{key:"getDerivedStateFromProps",value:function(o,i){var a=i.prevProps,l={prevProps:o};function s(O){return!a&&O in o||a&&a[O]!==o[O]}var d,f=i.fieldNames;if(s("fieldNames")&&(f=Qh(o.fieldNames),l.fieldNames=f),s("treeData")?d=o.treeData:s("children")&&(wn(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),d=QD(o.children)),d){l.treeData=d;var m=cE(d,{fieldNames:f});l.keyEntities=H(Q({},As,kk),m.keyEntities)}var h=l.keyEntities||i.keyEntities;if(s("expandedKeys")||a&&s("autoExpandParent"))l.expandedKeys=o.autoExpandParent||!a&&o.defaultExpandParent?NC(o.expandedKeys,h):o.expandedKeys;else if(!a&&o.defaultExpandAll){var g=H({},h);delete g[As],l.expandedKeys=Object.keys(g).map(function(O){return g[O].key})}else!a&&o.defaultExpandedKeys&&(l.expandedKeys=o.autoExpandParent||o.defaultExpandParent?NC(o.defaultExpandedKeys,h):o.defaultExpandedKeys);if(l.expandedKeys||delete l.expandedKeys,d||l.expandedKeys){var v=qy(d||i.treeData,l.expandedKeys||i.expandedKeys,f);l.flattenNodes=v}if(o.selectable&&(s("selectedKeys")?l.selectedKeys=PR(o.selectedKeys,o):!a&&o.defaultSelectedKeys&&(l.selectedKeys=PR(o.defaultSelectedKeys,o))),o.checkable){var C;if(s("checkedKeys")?C=Yy(o.checkedKeys)||{}:!a&&o.defaultCheckedKeys?C=Yy(o.defaultCheckedKeys)||{}:d&&(C=Yy(o.checkedKeys)||{checkedKeys:i.checkedKeys,halfCheckedKeys:i.halfCheckedKeys}),C){var S=C,y=S.checkedKeys,x=y===void 0?[]:y,E=S.halfCheckedKeys,w=E===void 0?[]:E;if(!o.checkStrictly){var I=Qu(x,!0,h);x=I.checkedKeys,w=I.halfCheckedKeys}l.checkedKeys=x,l.halfCheckedKeys=w}}return s("loadedKeys")&&(l.loadedKeys=o.loadedKeys),l}}]),n}(c.Component);SE.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:ase,allowDrop:function(){return!0},expandAction:!1};SE.TreeNode=bc;const sse=new Dt("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),use=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),cse=(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:'""'}}}),dse=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,treeTitleHeight:i}=t,a=(i-t.fontSizeLG)/2,l=t.paddingXS;return{[n]:Object.assign(Object.assign({},hn(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({},ka(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:sse,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({},ka(t)),[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${n}-draggable-icon`]:{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({},use(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:l,marginBlockStart: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"},cse(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`}}}}})}},fse=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":{[` - &:hover::before, - &::before - `]:{background:e.colorPrimary},[`${t}-switcher`]:{color:e.colorTextLightSolid},[`${t}-node-content-wrapper`]:{color:e.colorTextLightSolid,background:"transparent"}}}}}},pse=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,o=t.paddingXS/2,i=t.controlHeightSM,a=Kt(t,{treeCls:n,treeNodeCls:r,treeNodePadding:o,treeTitleHeight:i});return[dse(e,a),fse(a)]},mse=_n("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:ZD(`${n}-checkbox`,e)},pse(n,e),fL(e)]}),ZR=4;function hse(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:o,direction:i="ltr"}=e,a=i==="ltr"?"left":"right",l=i==="ltr"?"right":"left",s={[a]:-n*o+ZR,[l]:0};switch(t){case-1:s.top=-3;break;case 1:s.bottom=-3;break;default:s.bottom=-3,s[a]=o+ZR;break}return ve.createElement("div",{style:s,className:`${r}-drop-indicator`})}const gse=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:o}=e,{isLeaf:i,expanded:a,loading:l}=r;if(l)return c.createElement(df,{className:`${t}-switcher-loading-icon`});let s;if(o&&typeof o=="object"&&(s=o.showLeafIcon),i){if(!o)return null;if(typeof s!="boolean"&&s){const m=typeof s=="function"?s(r):s,h=`${t}-switcher-line-custom-icon`;return Mi(m)?mr(m,{className:te(m.props.className||"",h)}):m}return s?c.createElement(_M,{className:`${t}-switcher-line-icon`}):c.createElement("span",{className:`${t}-switcher-leaf-line`})}const d=`${t}-switcher-icon`,f=typeof n=="function"?n(r):n;return Mi(f)?mr(f,{className:te(f.props.className||"",d)}):f!==void 0?f:o?a?c.createElement(EK,{className:`${t}-switcher-line-icon`}):c.createElement($K,{className:`${t}-switcher-line-icon`}):c.createElement(hW,{className:d})},vse=gse,yse=ve.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,virtual:o}=ve.useContext(yt),{prefixCls:i,className:a,showIcon:l=!1,showLine:s,switcherIcon:d,blockNode:f=!1,children:m,checkable:h=!1,selectable:g=!0,draggable:v,motion:C}=e,S=n("tree",i),y=n(),x=C??Object.assign(Object.assign({},oL(y)),{motionAppear:!1}),E=Object.assign(Object.assign({},e),{checkable:h,selectable:g,showIcon:l,motion:x,blockNode:f,showLine:!!s,dropIndicatorRender:hse}),[w,I]=mse(S),O=ve.useMemo(()=>{if(!v)return!1;let R={};switch(typeof v){case"function":R.nodeDraggable=v;break;case"object":R=Object.assign({},v);break}return R.icon!==!1&&(R.icon=R.icon||ve.createElement(fK,null)),R},[v]),_=R=>ve.createElement(vse,{prefixCls:S,switcherIcon:d,treeNodeProps:R,showLine:s});return w(ve.createElement(SE,Object.assign({itemHeight:20,ref:t,virtual:o},E,{prefixCls:S,className:te({[`${S}-icon-hide`]:!l,[`${S}-block-node`]:f,[`${S}-unselectable`]:!g,[`${S}-rtl`]:r==="rtl"},a,I),direction:r,checkable:h&&ve.createElement("span",{className:`${S}-checkbox-inner`}),selectable:g,switcherIcon:_,draggable:O}),m))}),Bk=yse;var wa;(function(e){e[e.None=0]="None",e[e.Start=1]="Start",e[e.End=2]="End"})(wa||(wa={}));function CE(e,t){function n(r){const{key:o,children:i}=r;t(o,r)!==!1&&CE(i||[],t)}e.forEach(n)}function bse(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:o}=e;const i=[];let a=wa.None;if(r&&r===o)return[r];if(!r||!o)return[];function l(s){return s===r||s===o}return CE(t,s=>{if(a===wa.End)return!1;if(l(s)){if(i.push(s),a===wa.None)a=wa.Start;else if(a===wa.Start)return a=wa.End,!1}else a===wa.Start&&i.push(s);return n.includes(s)}),i}function ob(e,t){const n=Pe(t),r=[];return CE(e,(o,i)=>{const a=n.indexOf(o);return a!==-1&&(r.push(i),n.splice(a,1)),!!n.length}),r}var JR=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=JR(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const a=c.useRef(),l=c.useRef(),s=()=>{const{keyEntities:R}=cE(eT(i));let M;return n?M=Object.keys(R):r?M=NC(i.expandedKeys||o||[],R):M=i.expandedKeys||o,M},[d,f]=c.useState(i.selectedKeys||i.defaultSelectedKeys||[]),[m,h]=c.useState(()=>s());c.useEffect(()=>{"selectedKeys"in i&&f(i.selectedKeys)},[i.selectedKeys]),c.useEffect(()=>{"expandedKeys"in i&&h(i.expandedKeys)},[i.expandedKeys]);const g=(R,M)=>{var P;return"expandedKeys"in i||h(R),(P=i.onExpand)===null||P===void 0?void 0:P.call(i,R,M)},v=(R,M)=>{var P;const{multiple:D}=i,{node:N,nativeEvent:T}=M,{key:L=""}=N,z=eT(i),F=Object.assign(Object.assign({},M),{selected:!0}),V=(T==null?void 0:T.ctrlKey)||(T==null?void 0:T.metaKey),j=T==null?void 0:T.shiftKey;let U;D&&V?(U=R,a.current=L,l.current=U,F.selectedNodes=ob(z,U)):D&&j?(U=Array.from(new Set([].concat(Pe(l.current||[]),Pe(bse({treeData:z,expandedKeys:m,startKey:L,endKey:a.current}))))),F.selectedNodes=ob(z,U)):(U=[L],a.current=L,l.current=U,F.selectedNodes=ob(z,U)),(P=i.onSelect)===null||P===void 0||P.call(i,U,F),"selectedKeys"in i||f(U)},{getPrefixCls:C,direction:S}=c.useContext(yt),{prefixCls:y,className:x,showIcon:E=!0,expandAction:w="click"}=i,I=JR(i,["prefixCls","className","showIcon","expandAction"]),O=C("tree",y),_=te(`${O}-directory`,{[`${O}-directory-rtl`]:S==="rtl"},x);return c.createElement(Bk,Object.assign({icon:Sse,ref:t,blockNode:!0},I,{showIcon:E,expandAction:w,prefixCls:O,className:_,expandedKeys:m,selectedKeys:d,onSelect:v,onExpand:g}))},xse=c.forwardRef(Cse),Ese=xse,xE=Bk;xE.DirectoryTree=Ese;xE.TreeNode=bc;const wse=xE;function Ise(e){const t=c.useRef(e),n=KL();return[()=>t.current,r=>{t.current=r,n()}]}function tT(e){let{value:t,onChange:n,filterSearch:r,tablePrefixCls:o,locale:i}=e;return r?c.createElement("div",{className:`${o}-filter-dropdown-search`},c.createElement(Tie,{prefix:c.createElement(mx,null),placeholder:i.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,className:`${o}-filter-dropdown-search-input`})):null}const $se=e=>{const{keyCode:t}=e;t===De.ENTER&&e.stopPropagation()},Ose=e=>c.createElement("div",{className:e.className,onClick:t=>t.stopPropagation(),onKeyDown:$se},e.children),_se=Ose;function Rse(e){return e.some(t=>{let{children:n}=t;return n})}function zk(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function Hk(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:i,filterSearch:a}=e;return t.map((l,s)=>{const d=String(l.value);if(l.children)return{key:d||s,label:l.text,popupClassName:`${n}-dropdown-submenu`,children:Hk({filters:l.children,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:i,filterSearch:a})};const f=o?Zh:WD,m={key:l.value!==void 0?d:s,label:c.createElement(c.Fragment,null,c.createElement(f,{checked:r.includes(d)}),c.createElement("span",null,l.text))};return i.trim()?typeof a=="function"?a(i,l)?m:null:zk(i,l.text)?m:null:m})}function Tse(e){var t,n;const{tablePrefixCls:r,prefixCls:o,column:i,dropdownPrefixCls:a,columnKey:l,filterMultiple:s,filterMode:d="menu",filterSearch:f=!1,filterState:m,triggerFilter:h,locale:g,children:v,getPopupContainer:C}=e,{filterDropdownOpen:S,onFilterDropdownOpenChange:y,filterResetToDefaultFilteredValue:x,defaultFilteredValue:E,filterDropdownVisible:w,onFilterDropdownVisibleChange:I}=i,[O,_]=c.useState(!1),R=!!(m&&(!((t=m.filteredKeys)===null||t===void 0)&&t.length||m.forceFiltered)),M=fe=>{_(fe),y==null||y(fe),I==null||I(fe)},P=(n=S??w)!==null&&n!==void 0?n:O,D=m==null?void 0:m.filteredKeys,[N,T]=Ise(D||[]),L=fe=>{let{selectedKeys:Oe}=fe;T(Oe)},z=(fe,Oe)=>{let{node:Se,checked:de}=Oe;L(s?{selectedKeys:fe}:{selectedKeys:de&&Se.key?[Se.key]:[]})};c.useEffect(()=>{O&&L({selectedKeys:D||[]})},[D]);const[F,V]=c.useState([]),j=fe=>{V(fe)},[U,G]=c.useState(""),W=fe=>{const{value:Oe}=fe.target;G(Oe)};c.useEffect(()=>{O||G("")},[O]);const q=fe=>{const Oe=fe&&fe.length?fe:null;if(Oe===null&&(!m||!m.filteredKeys)||Da(Oe,m==null?void 0:m.filteredKeys,!0))return null;h({column:i,key:l,filteredKeys:Oe})},J=()=>{M(!1),q(N())},X=function(){let{confirm:fe,closeDropdown:Oe}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};fe&&q([]),Oe&&M(!1),G(""),T(x?(E||[]).map(Se=>String(Se)):[])},Y=function(){let{closeDropdown:fe}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};fe&&M(!1),q(N())},ne=fe=>{fe&&D!==void 0&&T(D||[]),M(fe),!fe&&!i.filterDropdown&&J()},le=te({[`${a}-menu-without-submenu`]:!Rse(i.filters||[])}),we=fe=>{if(fe.target.checked){const Oe=Zu(i==null?void 0:i.filters).map(Se=>String(Se));T(Oe)}else T([])},Ie=fe=>{let{filters:Oe}=fe;return(Oe||[]).map((Se,de)=>{const Re=String(Se.value),be={title:Se.text,key:Se.value!==void 0?Re:de};return Se.children&&(be.children=Ie({filters:Se.children})),be})},Ce=fe=>{var Oe;return Object.assign(Object.assign({},fe),{text:fe.title,value:fe.key,children:((Oe=fe.children)===null||Oe===void 0?void 0:Oe.map(Se=>Ce(Se)))||[]})};let ce;if(typeof i.filterDropdown=="function")ce=i.filterDropdown({prefixCls:`${a}-custom`,setSelectedKeys:fe=>L({selectedKeys:fe}),selectedKeys:N(),confirm:Y,clearFilters:X,filters:i.filters,visible:P,close:()=>{M(!1)}});else if(i.filterDropdown)ce=i.filterDropdown;else{const fe=N()||[],Oe=()=>(i.filters||[]).length===0?c.createElement(as,{image:as.PRESENTED_IMAGE_SIMPLE,description:g.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):d==="tree"?c.createElement(c.Fragment,null,c.createElement(tT,{filterSearch:f,value:U,onChange:W,tablePrefixCls:r,locale:g}),c.createElement("div",{className:`${r}-filter-dropdown-tree`},s?c.createElement(Zh,{checked:fe.length===Zu(i.filters).length,indeterminate:fe.length>0&&fe.lengthtypeof f=="function"?f(U,Ce(de)):zk(U,de.title):void 0}))):c.createElement(c.Fragment,null,c.createElement(tT,{filterSearch:f,value:U,onChange:W,tablePrefixCls:r,locale:g}),c.createElement(rE,{selectable:!0,multiple:s,prefixCls:`${a}-menu`,className:le,onSelect:L,onDeselect:L,selectedKeys:fe,getPopupContainer:C,openKeys:F,onOpenChange:j,items:Hk({filters:i.filters||[],filterSearch:f,prefixCls:o,filteredKeys:N(),filterMultiple:s,searchValue:U})})),Se=()=>x?Da((E||[]).map(de=>String(de)),fe,!0):fe.length===0;ce=c.createElement(c.Fragment,null,Oe(),c.createElement("div",{className:`${o}-dropdown-btns`},c.createElement(ri,{type:"link",size:"small",disabled:Se(),onClick:()=>X()},g.filterReset),c.createElement(ri,{type:"primary",size:"small",onClick:J},g.filterConfirm)))}i.filterDropdown&&(ce=c.createElement(PD,{selectable:void 0},ce));const he=()=>c.createElement(_se,{className:`${o}-dropdown`},ce);let ie;typeof i.filterIcon=="function"?ie=i.filterIcon(R):i.filterIcon?ie=i.filterIcon:ie=c.createElement(tK,null);const{direction:pe}=c.useContext(yt);return c.createElement("div",{className:`${o}-column`},c.createElement("span",{className:`${r}-column-title`},v),c.createElement(Ef,{dropdownRender:he,trigger:["click"],open:P,onOpenChange:ne,getPopupContainer:C,placement:pe==="rtl"?"bottomLeft":"bottomRight"},c.createElement("span",{role:"button",tabIndex:-1,className:te(`${o}-trigger`,{active:R}),onClick:fe=>{fe.stopPropagation()}},ie)))}function HC(e,t,n){let r=[];return(e||[]).forEach((o,i)=>{var a;const l=Jf(i,n);if(o.filters||"filterDropdown"in o||"onFilter"in o)if("filteredValue"in o){let s=o.filteredValue;"filterDropdown"in o||(s=(a=s==null?void 0:s.map(String))!==null&&a!==void 0?a:s),r.push({column:o,key:Ms(o,l),filteredKeys:s,forceFiltered:o.filtered})}else r.push({column:o,key:Ms(o,l),filteredKeys:t&&o.defaultFilteredValue?o.defaultFilteredValue:void 0,forceFiltered:o.filtered});"children"in o&&(r=[].concat(Pe(r),Pe(HC(o.children,t,l))))}),r}function jk(e,t,n,r,o,i,a,l){return n.map((s,d)=>{const f=Jf(d,l),{filterMultiple:m=!0,filterMode:h,filterSearch:g}=s;let v=s;if(v.filters||v.filterDropdown){const C=Ms(v,f),S=r.find(y=>{let{key:x}=y;return C===x});v=Object.assign(Object.assign({},v),{title:y=>c.createElement(Tse,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:v,columnKey:C,filterState:S,filterMultiple:m,filterMode:h,filterSearch:g,triggerFilter:i,locale:o,getPopupContainer:a},Pv(s.title,y))})}return"children"in v&&(v=Object.assign(Object.assign({},v),{children:jk(e,t,v.children,r,o,i,a,f)})),v})}function Zu(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:o}=n;t.push(r),o&&(t=[].concat(Pe(t),Pe(Zu(o))))}),t}function nT(e){const t={};return e.forEach(n=>{let{key:r,filteredKeys:o,column:i}=n;const{filters:a,filterDropdown:l}=i;if(l)t[r]=o||null;else if(Array.isArray(o)){const s=Zu(a);t[r]=s.filter(d=>o.includes(String(d)))}else t[r]=null}),t}function rT(e,t){return t.reduce((n,r)=>{const{column:{onFilter:o,filters:i},filteredKeys:a}=r;return o&&a&&a.length?n.filter(l=>a.some(s=>{const d=Zu(i),f=d.findIndex(h=>String(h)===String(s)),m=f!==-1?d[f]:s;return o(m,l)})):n},e)}const Vk=e=>e.flatMap(t=>"children"in t?[t].concat(Pe(Vk(t.children||[]))):[t]);function Pse(e){let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:o,getPopupContainer:i,locale:a}=e;const l=c.useMemo(()=>Vk(r||[]),[r]),[s,d]=c.useState(()=>HC(l,!0)),f=c.useMemo(()=>{const v=HC(l,!1);if(v.length===0)return v;let C=!0;if(v.forEach(S=>{let{filteredKeys:y}=S;y!==void 0&&(C=!1)}),C){const S=(l||[]).map((y,x)=>Ms(y,Jf(x)));return s.filter(y=>{let{key:x}=y;return S.includes(x)}).map(y=>{const x=l[S.findIndex(E=>E===y.key)];return Object.assign(Object.assign({},y),{column:Object.assign(Object.assign({},y.column),x),forceFiltered:x.filtered})})}return v},[l,s]),m=c.useMemo(()=>nT(f),[f]),h=v=>{const C=f.filter(S=>{let{key:y}=S;return y!==v.key});C.push(v),d(C),o(nT(C),C)};return[v=>jk(t,n,v,f,a,h,i),f,m]}function Nse(e,t,n){const r=c.useRef({});function o(i){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let s=function(d){d.forEach((f,m)=>{const h=n(f,m);l.set(h,f),f&&typeof f=="object"&&t in f&&s(f[t]||[])})};var a=s;const l=new Map;s(e),r.current={data:e,childrenColumnName:t,kvMap:l,getRowKey:n}}return r.current.kvMap.get(i)}return[o]}var Mse=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 Lse(e,t,n){const r=n&&typeof n=="object"?n:{},{total:o=0}=r,i=Mse(r,["total"]),[a,l]=c.useState(()=>({current:"defaultCurrent"in i?i.defaultCurrent:1,pageSize:"defaultPageSize"in i?i.defaultPageSize:Uk})),s=gk(a,i,{total:o>0?o:e}),d=Math.ceil((o||e)/s.pageSize);s.current>d&&(s.current=d||1);const f=(h,g)=>{l({current:h??1,pageSize:g||s.pageSize})},m=(h,g)=>{var v;n&&((v=n.onChange)===null||v===void 0||v.call(n,h,g)),f(h,g),t(h,g||(s==null?void 0:s.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},s),{onChange:m}),f]}const il={},jC="SELECT_ALL",VC="SELECT_INVERT",UC="SELECT_NONE",oT=[],Wk=(e,t)=>{let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[].concat(Pe(n),Pe(Wk(e,r[e]))))}),n},Dse=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:o,getCheckboxProps:i,onChange:a,onSelect:l,onSelectAll:s,onSelectInvert:d,onSelectNone:f,onSelectMultiple:m,columnWidth:h,type:g,selections:v,fixed:C,renderCell:S,hideSelectAll:y,checkStrictly:x=!0}=t||{},{prefixCls:E,data:w,pageData:I,getRecordByKey:O,getRowKey:_,expandType:R,childrenColumnName:M,locale:P,getPopupContainer:D}=e,[N,T]=Lr(r||o||oT,{value:r}),L=c.useRef(new Map),z=c.useCallback(Ce=>{if(n){const ce=new Map;Ce.forEach(he=>{let ie=O(he);!ie&&L.current.has(he)&&(ie=L.current.get(he)),ce.set(he,ie)}),L.current=ce}},[O,n]);c.useEffect(()=>{z(N)},[N]);const{keyEntities:F}=c.useMemo(()=>x?{keyEntities:null}:cE(w,{externalGetKey:_,childrenPropName:M}),[w,_,x,M]),V=c.useMemo(()=>Wk(M,I),[M,I]),j=c.useMemo(()=>{const Ce=new Map;return V.forEach((ce,he)=>{const ie=_(ce,he),pe=(i?i(ce):null)||{};Ce.set(ie,pe)}),Ce},[V,_,i]),U=c.useCallback(Ce=>{var ce;return!!(!((ce=j.get(_(Ce)))===null||ce===void 0)&&ce.disabled)},[j,_]),[G,W]=c.useMemo(()=>{if(x)return[N||[],[]];const{checkedKeys:Ce,halfCheckedKeys:ce}=Qu(N,!0,F,U);return[Ce||[],ce]},[N,x,F,U]),q=c.useMemo(()=>{const Ce=g==="radio"?G.slice(0,1):G;return new Set(Ce)},[G,g]),J=c.useMemo(()=>g==="radio"?new Set:new Set(W),[W,g]),[X,Y]=c.useState(null);c.useEffect(()=>{t||T(oT)},[!!t]);const ne=c.useCallback((Ce,ce)=>{let he,ie;z(Ce),n?(he=Ce,ie=Ce.map(pe=>L.current.get(pe))):(he=[],ie=[],Ce.forEach(pe=>{const fe=O(pe);fe!==void 0&&(he.push(pe),ie.push(fe))})),T(he),a==null||a(he,ie,{type:ce})},[T,O,a,n]),le=c.useCallback((Ce,ce,he,ie)=>{if(l){const pe=he.map(fe=>O(fe));l(O(Ce),ce,pe,ie)}ne(he,"single")},[l,O,ne]),we=c.useMemo(()=>!v||y?null:(v===!0?[jC,VC,UC]:v).map(ce=>ce===jC?{key:"all",text:P.selectionAll,onSelect(){ne(w.map((he,ie)=>_(he,ie)).filter(he=>{const ie=j.get(he);return!(ie!=null&&ie.disabled)||q.has(he)}),"all")}}:ce===VC?{key:"invert",text:P.selectInvert,onSelect(){const he=new Set(q);I.forEach((pe,fe)=>{const Oe=_(pe,fe),Se=j.get(Oe);Se!=null&&Se.disabled||(he.has(Oe)?he.delete(Oe):he.add(Oe))});const ie=Array.from(he);d&&d(ie),ne(ie,"invert")}}:ce===UC?{key:"none",text:P.selectNone,onSelect(){f==null||f(),ne(Array.from(q).filter(he=>{const ie=j.get(he);return ie==null?void 0:ie.disabled}),"none")}}:ce).map(ce=>Object.assign(Object.assign({},ce),{onSelect:function(){for(var he,ie,pe=arguments.length,fe=new Array(pe),Oe=0;Oe{var ce;if(!t)return Ce.filter(He=>He!==il);let he=Pe(Ce);const ie=new Set(q),pe=V.map(_).filter(He=>!j.get(He).disabled),fe=pe.every(He=>ie.has(He)),Oe=pe.some(He=>ie.has(He)),Se=()=>{const He=[];fe?pe.forEach(ee=>{ie.delete(ee),He.push(ee)}):pe.forEach(ee=>{ie.has(ee)||(ie.add(ee),He.push(ee))});const Je=Array.from(ie);s==null||s(!fe,Je.map(ee=>O(ee)),He.map(ee=>O(ee))),ne(Je,"all"),Y(null)};let de;if(g!=="radio"){let He;if(we){const xe={getPopupContainer:D,items:we.map((ge,Ee)=>{const{key:ke,text:Ye,onSelect:Fe}=ge;return{key:ke??Ee,onClick:()=>{Fe==null||Fe(pe)},label:Ye}})};He=c.createElement("div",{className:`${E}-selection-extra`},c.createElement(Ef,{menu:xe,getPopupContainer:D},c.createElement("span",null,c.createElement(px,null))))}const Je=V.map((xe,ge)=>{const Ee=_(xe,ge),ke=j.get(Ee)||{};return Object.assign({checked:ie.has(Ee)},ke)}).filter(xe=>{let{disabled:ge}=xe;return ge}),ee=!!Je.length&&Je.length===V.length,re=ee&&Je.every(xe=>{let{checked:ge}=xe;return ge}),oe=ee&&Je.some(xe=>{let{checked:ge}=xe;return ge});de=!y&&c.createElement("div",{className:`${E}-selection`},c.createElement(Zh,{checked:ee?re:!!V.length&&fe,indeterminate:ee?!re&&oe:!fe&&Oe,onChange:Se,disabled:V.length===0||ee,"aria-label":He?"Custom selection":"Select all",skipGroup:!0}),He)}let Re;g==="radio"?Re=(He,Je,ee)=>{const re=_(Je,ee),oe=ie.has(re);return{node:c.createElement(WD,Object.assign({},j.get(re),{checked:oe,onClick:xe=>xe.stopPropagation(),onChange:xe=>{ie.has(re)||le(re,!0,[re],xe.nativeEvent)}})),checked:oe}}:Re=(He,Je,ee)=>{var re;const oe=_(Je,ee),xe=ie.has(oe),ge=J.has(oe),Ee=j.get(oe);let ke;return R==="nest"?ke=ge:ke=(re=Ee==null?void 0:Ee.indeterminate)!==null&&re!==void 0?re:ge,{node:c.createElement(Zh,Object.assign({},Ee,{indeterminate:ke,checked:xe,skipGroup:!0,onClick:Ye=>Ye.stopPropagation(),onChange:Ye=>{let{nativeEvent:Fe}=Ye;const{shiftKey:ot}=Fe;let Ae=-1,Ke=-1;if(ot&&x){const Ue=new Set([X,oe]);pe.some((ze,at)=>{if(Ue.has(ze))if(Ae===-1)Ae=at;else return Ke=at,!0;return!1})}if(Ke!==-1&&Ae!==Ke&&x){const Ue=pe.slice(Ae,Ke+1),ze=[];xe?Ue.forEach($t=>{ie.has($t)&&(ze.push($t),ie.delete($t))}):Ue.forEach($t=>{ie.has($t)||(ze.push($t),ie.add($t))});const at=Array.from(ie);m==null||m(!xe,at.map($t=>O($t)),ze.map($t=>O($t))),ne(at,"multiple")}else{const Ue=G;if(x){const ze=xe?Ki(Ue,oe):Ca(Ue,oe);le(oe,!xe,ze,Fe)}else{const ze=Qu([].concat(Pe(Ue),[oe]),!0,F,U),{checkedKeys:at,halfCheckedKeys:$t}=ze;let tt=at;if(xe){const lt=new Set(at);lt.delete(oe),tt=Qu(Array.from(lt),{checked:!1,halfCheckedKeys:$t},F,U).checkedKeys}le(oe,!xe,tt,Fe)}}Y(xe?null:oe)}})),checked:xe}};const be=(He,Je,ee)=>{const{node:re,checked:oe}=Re(He,Je,ee);return S?S(oe,Je,ee,re):re};if(!he.includes(il))if(he.findIndex(He=>{var Je;return((Je=He[jd])===null||Je===void 0?void 0:Je.columnType)==="EXPAND_COLUMN"})===0){const[He,...Je]=he;he=[He,il].concat(Pe(Je))}else he=[il].concat(Pe(he));const Xe=he.indexOf(il);he=he.filter((He,Je)=>He!==il||Je===Xe);const Qe=he[Xe-1],ft=he[Xe+1];let ct=C;ct===void 0&&((ft==null?void 0:ft.fixed)!==void 0?ct=ft.fixed:(Qe==null?void 0:Qe.fixed)!==void 0&&(ct=Qe.fixed)),ct&&Qe&&((ce=Qe[jd])===null||ce===void 0?void 0:ce.columnType)==="EXPAND_COLUMN"&&Qe.fixed===void 0&&(Qe.fixed=ct);const ut=te(`${E}-selection-col`,{[`${E}-selection-col-with-dropdown`]:v&&g==="checkbox"}),dt={fixed:ct,width:h,className:`${E}-selection-column`,title:t.columnTitle||de,render:be,[jd]:{className:ut}};return he.map(He=>He===il?dt:He)},[_,V,t,G,q,J,h,we,R,X,j,m,le,U]),q]},Jm="ascend",ib="descend";function rg(e){return typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1}function iT(e){return typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1}function kse(e,t){return t?e[e.indexOf(t)+1]:e[0]}function WC(e,t,n){let r=[];function o(i,a){r.push({column:i,key:Ms(i,a),multiplePriority:rg(i),sortOrder:i.sortOrder})}return(e||[]).forEach((i,a)=>{const l=Jf(a,n);i.children?("sortOrder"in i&&o(i,l),r=[].concat(Pe(r),Pe(WC(i.children,t,l)))):i.sorter&&("sortOrder"in i?o(i,l):t&&i.defaultSortOrder&&r.push({column:i,key:Ms(i,l),multiplePriority:rg(i),sortOrder:i.defaultSortOrder}))}),r}function Kk(e,t,n,r,o,i,a,l){return(t||[]).map((s,d)=>{const f=Jf(d,l);let m=s;if(m.sorter){const h=m.sortDirections||o,g=m.showSorterTooltip===void 0?a:m.showSorterTooltip,v=Ms(m,f),C=n.find(M=>{let{key:P}=M;return P===v}),S=C?C.sortOrder:null,y=kse(h,S),x=h.includes(Jm)&&c.createElement(wW,{className:te(`${e}-column-sorter-up`,{active:S===Jm})}),E=h.includes(ib)&&c.createElement(yW,{className:te(`${e}-column-sorter-down`,{active:S===ib})}),{cancelSort:w,triggerAsc:I,triggerDesc:O}=i||{};let _=w;y===ib?_=O:y===Jm&&(_=I);const R=typeof g=="object"?g:{title:_};m=Object.assign(Object.assign({},m),{className:te(m.className,{[`${e}-column-sort`]:S}),title:M=>{const P=c.createElement("div",{className:`${e}-column-sorters`},c.createElement("span",{className:`${e}-column-title`},Pv(s.title,M)),c.createElement("span",{className:te(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(x&&E)})},c.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},x,E)));return g?c.createElement(Wf,Object.assign({},R),P):P},onHeaderCell:M=>{const P=s.onHeaderCell&&s.onHeaderCell(M)||{},D=P.onClick,N=P.onKeyDown;P.onClick=z=>{r({column:s,key:v,sortOrder:y,multiplePriority:rg(s)}),D==null||D(z)},P.onKeyDown=z=>{z.keyCode===De.ENTER&&(r({column:s,key:v,sortOrder:y,multiplePriority:rg(s)}),N==null||N(z))};const T=Jle(s.title,{}),L=T==null?void 0:T.toString();return S?P["aria-sort"]=S==="ascend"?"ascending":"descending":P["aria-label"]=L||"",P.className=te(P.className,`${e}-column-has-sorters`),P.tabIndex=0,s.ellipsis&&(P.title=(T??"").toString()),P}})}return"children"in m&&(m=Object.assign(Object.assign({},m),{children:Kk(e,m.children,n,r,o,i,a,f)})),m})}function aT(e){const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}}function lT(e){const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(aT);return t.length===0&&e.length?Object.assign(Object.assign({},aT(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function KC(e,t,n){const r=t.slice().sort((a,l)=>l.multiplePriority-a.multiplePriority),o=e.slice(),i=r.filter(a=>{let{column:{sorter:l},sortOrder:s}=a;return iT(l)&&s});return i.length?o.sort((a,l)=>{for(let s=0;s{const l=a[n];return l?Object.assign(Object.assign({},a),{[n]:KC(l,t,n)}):a}):o}function Fse(e){let{prefixCls:t,mergedColumns:n,onSorterChange:r,sortDirections:o,tableLocale:i,showSorterTooltip:a}=e;const[l,s]=c.useState(WC(n,!0)),d=c.useMemo(()=>{let v=!0;const C=WC(n,!1);if(!C.length)return l;const S=[];function y(E){v?S.push(E):S.push(Object.assign(Object.assign({},E),{sortOrder:null}))}let x=null;return C.forEach(E=>{x===null?(y(E),E.sortOrder&&(E.multiplePriority===!1?v=!1:x=!0)):(x&&E.multiplePriority!==!1||(v=!1),y(E))}),S},[n,l]),f=c.useMemo(()=>{const v=d.map(C=>{let{column:S,sortOrder:y}=C;return{column:S,order:y}});return{sortColumns:v,sortColumn:v[0]&&v[0].column,sortOrder:v[0]&&v[0].order}},[d]);function m(v){let C;v.multiplePriority===!1||!d.length||d[0].multiplePriority===!1?C=[v]:C=[].concat(Pe(d.filter(S=>{let{key:y}=S;return y!==v.key})),[v]),s(C),r(lT(C),C)}return[v=>Kk(t,v,d,m,o,i,a),d,f,()=>lT(d)]}function Gk(e,t){return e.map(n=>{const r=Object.assign({},n);return r.title=Pv(n.title,t),"children"in r&&(r.children=Gk(r.children,t)),r})}function Bse(e){return[c.useCallback(n=>Gk(n,e),[e])]}const zse=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`]:{[` - > table > tbody > tr > th, - > table > tbody > tr > td - `]:{[`> ${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,[` - > ${t}-content, - > ${t}-header, - > ${t}-body, - > ${t}-summary - `]:{"> table":{[` - > thead > tr > th, - > tbody > tr > th, - > tbody > tr > td, - > tfoot > tr > th, - > tfoot > tr > td - `]:{borderInlineEnd:n},"> thead":{"> tr:not(:last-child) > th":{borderBottom:n},"> tr > th::before":{backgroundColor:"transparent !important"}},[` - > thead > tr, - > tbody > tr, - > tfoot > tr - `]:{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:n}},[` - > tbody > tr > th, - > tbody > tr > td - `]:{[`> ${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}-content, - > ${t}-header - `]:{"> table":{borderTop:n}}},[`&${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}`}}}}},Hse=zse,jse=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},Cs),{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"}})}}},Vse=jse,Use=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,[` - &:hover > th, - &:hover > td, - `]:{background:e.colorBgContainer}}}}},Wse=Use,Kse=e=>{const{componentCls:t,antCls:n,controlInteractiveSize:r,motionDurationSlow:o,lineWidth:i,paddingXS:a,lineType:l,tableBorderColor:s,tableExpandIconBg:d,tableExpandColumnWidth:f,borderRadius:m,fontSize:h,fontSizeSM:g,lineHeight:v,tablePaddingVertical:C,tablePaddingHorizontal:S,tableExpandedRowBg:y,paddingXXS:x}=e,E=r/2-i,w=E*2+i*3,I=`${i}px ${l} ${s}`,O=x-i;return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:f},[`${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({},$Y(e)),{position:"relative",float:"left",boxSizing:"border-box",width:w,height:w,padding:0,color:"inherit",lineHeight:`${w}px`,background:d,border:I,borderRadius:m,transform:`scale(${r/w})`,transition:`all ${o}`,userSelect:"none",["&:focus, &:hover, &:active"]:{borderColor:"currentcolor"},["&::before, &::after"]:{position:"absolute",background:"currentcolor",transition:`transform ${o} ease-out`,content:'""'},"&::before":{top:E,insetInlineEnd:O,insetInlineStart:O,height:i},"&::after":{top:O,bottom:O,insetInlineStart:E,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:(h*v-i*3)/2-Math.ceil((g*1.4-i*3)/2),marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{["> th, > td"]:{background:y}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`-${C}px -${S}px`,padding:`${C}px ${S}px`}}}},Gse=Kse,Xse=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:i,paddingXXS:a,paddingXS:l,colorText:s,lineWidth:d,lineType:f,tableBorderColor:m,tableHeaderIconColor:h,fontSizeSM:g,tablePaddingHorizontal:v,borderRadius:C,motionDurationSlow:S,colorTextDescription:y,colorPrimary:x,tableHeaderFilterActiveBg:E,colorTextDisabled:w,tableFilterDropdownBg:I,tableFilterDropdownHeight:O,controlItemBgHover:_,controlItemBgActive:R,boxShadowSecondary:M}=e,P=`${n}-dropdown`,D=`${t}-filter-dropdown`,N=`${n}-tree`,T=`${d}px ${f} ${m}`;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:h,fontSize:g,borderRadius:C,cursor:"pointer",transition:`all ${S}`,"&:hover":{color:y,background:E},"&.active":{color:x}}}},{[`${n}-dropdown`]:{[D]:Object.assign(Object.assign({},hn(e)),{minWidth:o,backgroundColor:I,borderRadius:C,boxShadow:M,[`${P}-menu`]:{maxHeight:O,overflowX:"hidden",border:0,boxShadow:"none","&:empty::after":{display:"block",padding:`${l}px 0`,color:w,fontSize:g,textAlign:"center",content:'"Not Found"'}},[`${D}-tree`]:{paddingBlock:`${l}px 0`,paddingInline:l,[N]:{padding:0},[`${N}-treenode ${N}-node-content-wrapper:hover`]:{backgroundColor:_},[`${N}-treenode-checkbox-checked ${N}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:R}}},[`${D}-search`]:{padding:l,borderBottom:T,"&-input":{input:{minWidth:i},[r]:{color:w}}},[`${D}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${D}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${l-d}px ${l}px`,overflow:"hidden",borderTop:T}})}},{[`${n}-dropdown ${D}, ${D}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:s},["> ul"]:{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Yse=Xse,qse=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:o,zIndexTableFixed:i,tableBg:a,zIndexTableSticky:l}=e,s=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:l+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 ${s}`}},[` - ${t}-cell-fix-left-first::after, - ${t}-cell-fix-left-last::after - `]:{boxShadow:`inset 10px 0 8px -8px ${s}`},[`${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 ${s}`}},[` - ${t}-cell-fix-right-first::after, - ${t}-cell-fix-right-last::after - `]:{boxShadow:`inset -10px 0 8px -8px ${s}`}}}}},Qse=qse,Zse=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"}}}}},Jse=Zse,eue=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,table:{borderRadius:0,"> thead > tr:first-child":{"th:first-child":{borderRadius:0},"th: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`}}}}},tue=eue,nue=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`]:{"&::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"}}}}},rue=nue,oue=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:o,padding:i,paddingXS:a,tableHeaderIconColor:l,tableHeaderIconColorHover:s,tableSelectionColumnWidth:d}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:d,[`&${t}-selection-col-with-dropdown`]:{width:d+o+i/4}},[`${t}-bordered ${t}-selection-col`]:{width:d+a*2,[`&${t}-selection-col-with-dropdown`]:{width:d+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:l,fontSize:o,verticalAlign:"baseline","&:hover":{color:s}}}}}},iue=oue,aue=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))}},lue=aue,sue=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}}}},uue=sue,cue=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollThumbSize:i,tableScrollBg:a,zIndexTableSticky:l}=e,s=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:l,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${i}px !important`,zIndex:l,display:"flex",alignItems:"center",background:a,borderTop:s,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}}}}}}},due=cue,fue=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}`}}}},sT=fue,pue=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:o,lineWidth:i,lineType:a,tableBorderColor:l,tableFontSize:s,tableBg:d,tableRadius:f,tableHeaderTextColor:m,motionDurationMid:h,tableHeaderBg:g,tableHeaderCellSplitColor:v,tableRowHoverBg:C,tableSelectedRowBg:S,tableSelectedRowHoverBg:y,tableFooterTextColor:x,tableFooterBg:E,paddingContentVerticalLG:w}=e,I=`${i}px ${a} ${l}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},yf()),{[t]:Object.assign(Object.assign({},hn(e)),{fontSize:s,background:d,borderRadius:`${f}px ${f}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${f}px ${f}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:`${w}px ${o}px`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${r}px ${o}px`},[`${t}-thead`]:{[` - > tr > th, - > tr > td - `]:{position:"relative",color:m,fontWeight:n,textAlign:"start",background:g,borderBottom:I,transition:`background ${h} 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 ${h}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{["> th, > td"]:{transition:`background ${h}, border-color ${h}`,borderBottom:I,[` - > ${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:m,fontWeight:n,textAlign:"start",background:g,borderBottom:I,transition:`background ${h} ease`},[` - &${t}-row:hover > th, - &${t}-row:hover > td, - > th${t}-cell-row-hover - > td${t}-cell-row-hover - `]:{background:C},[`&${t}-row-selected`]:{["> th, > td"]:{background:S},["&:hover > th, &:hover > td"]:{background:y}}}},[`${t}-footer`]:{padding:`${r}px ${o}px`,color:x,background:E}})}},mue=_n("Table",e=>{const{controlItemBgActive:t,controlItemBgActiveHover:n,colorTextPlaceholder:r,colorTextHeading:o,colorSplit:i,colorBorderSecondary:a,fontSize:l,padding:s,paddingXS:d,paddingSM:f,controlHeight:m,colorFillAlter:h,colorIcon:g,colorIconHover:v,opacityLoading:C,colorBgContainer:S,borderRadiusLG:y,colorFillContent:x,colorFillSecondary:E,controlInteractiveSize:w}=e,I=new bn(g),O=new bn(v),_=t,R=2,M=new bn(E).onBackground(S).toHexShortString(),P=new bn(x).onBackground(S).toHexShortString(),D=new bn(h).onBackground(S).toHexShortString(),N=Kt(e,{tableFontSize:l,tableBg:S,tableRadius:y,tablePaddingVertical:s,tablePaddingHorizontal:s,tablePaddingVerticalMiddle:f,tablePaddingHorizontalMiddle:d,tablePaddingVerticalSmall:d,tablePaddingHorizontalSmall:d,tableBorderColor:a,tableHeaderTextColor:o,tableHeaderBg:D,tableFooterTextColor:o,tableFooterBg:D,tableHeaderCellSplitColor:a,tableHeaderSortBg:M,tableHeaderSortHoverBg:P,tableHeaderIconColor:I.clone().setAlpha(I.getAlpha()*C).toRgbString(),tableHeaderIconColorHover:O.clone().setAlpha(O.getAlpha()*C).toRgbString(),tableBodySortBg:D,tableFixedHeaderSortActiveBg:M,tableHeaderFilterActiveBg:x,tableFilterDropdownBg:S,tableRowHoverBg:D,tableSelectedRowBg:_,tableSelectedRowHoverBg:n,zIndexTableFixed:R,zIndexTableSticky:R+1,tableFontSizeMiddle:l,tableFontSizeSmall:l,tableSelectionColumnWidth:m,tableExpandIconBg:S,tableExpandColumnWidth:w+2*e.padding,tableExpandedRowBg:h,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollBg:i});return[pue(N),Jse(N),sT(N),uue(N),Yse(N),Hse(N),tue(N),Gse(N),sT(N),Wse(N),iue(N),Qse(N),due(N),Vse(N),lue(N),rue(N)]}),hue=[],gue=(e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,size:a,bordered:l,dropdownPrefixCls:s,dataSource:d,pagination:f,rowSelection:m,rowKey:h="key",rowClassName:g,columns:v,children:C,childrenColumnName:S,onChange:y,getPopupContainer:x,loading:E,expandIcon:w,expandable:I,expandedRowRender:O,expandIconColumnIndex:_,indentSize:R,scroll:M,sortDirections:P,locale:D,showSorterTooltip:N=!0}=e,T=c.useMemo(()=>v||bE(C),[v,C]),L=c.useMemo(()=>T.some(tt=>tt.responsive),[T]),z=mv(L),F=c.useMemo(()=>{const tt=new Set(Object.keys(z).filter(lt=>z[lt]));return T.filter(lt=>!lt.responsive||lt.responsive.some(_e=>tt.has(_e)))},[T,z]),V=kr(e,["className","style","columns"]),j=c.useContext(Fi),{locale:U=Ps,direction:G,renderEmpty:W,getPrefixCls:q,getPopupContainer:J}=c.useContext(yt),X=a||j,Y=Object.assign(Object.assign({},U.Table),D),ne=d||hue,le=q("table",n),we=q("dropdown",s),Ie=Object.assign({childrenColumnName:S,expandIconColumnIndex:_},I),{childrenColumnName:Ce="children"}=Ie,ce=c.useMemo(()=>ne.some(tt=>tt==null?void 0:tt[Ce])?"nest":O||I&&I.expandedRowRender?"row":null,[ne]),he={body:c.useRef()},ie=c.useMemo(()=>typeof h=="function"?h:tt=>tt==null?void 0:tt[h],[h]),[pe]=Nse(ne,Ce,ie),fe={},Oe=function(tt,lt){let _e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Ne,Te,We;const qe=Object.assign(Object.assign({},fe),tt);_e&&((Ne=fe.resetPagination)===null||Ne===void 0||Ne.call(fe),!((Te=qe.pagination)===null||Te===void 0)&&Te.current&&(qe.pagination.current=1),f&&f.onChange&&f.onChange(1,(We=qe.pagination)===null||We===void 0?void 0:We.pageSize)),M&&M.scrollToFirstRowOnChange!==!1&&he.body.current&&bq(0,{getContainer:()=>he.body.current}),y==null||y(qe.pagination,qe.filters,qe.sorter,{currentDataSource:rT(KC(ne,qe.sorterStates,Ce),qe.filterStates),action:lt})},Se=(tt,lt)=>{Oe({sorter:tt,sorterStates:lt},"sort",!1)},[de,Re,be,Xe]=Fse({prefixCls:le,mergedColumns:F,onSorterChange:Se,sortDirections:P||["ascend","descend"],tableLocale:Y,showSorterTooltip:N}),Qe=c.useMemo(()=>KC(ne,Re,Ce),[ne,Re]);fe.sorter=Xe(),fe.sorterStates=Re;const ft=(tt,lt)=>{Oe({filters:tt,filterStates:lt},"filter",!0)},[ct,ut,dt]=Pse({prefixCls:le,locale:Y,dropdownPrefixCls:we,mergedColumns:F,onFilterChange:ft,getPopupContainer:x||J}),He=rT(Qe,ut);fe.filters=dt,fe.filterStates=ut;const Je=c.useMemo(()=>{const tt={};return Object.keys(dt).forEach(lt=>{dt[lt]!==null&&(tt[lt]=dt[lt])}),Object.assign(Object.assign({},be),{filters:tt})},[be,dt]),[ee]=Bse(Je),re=(tt,lt)=>{Oe({pagination:Object.assign(Object.assign({},fe.pagination),{current:tt,pageSize:lt})},"paginate")},[oe,xe]=Lse(He.length,re,f);fe.pagination=f===!1?{}:Ase(oe,f),fe.resetPagination=xe;const ge=c.useMemo(()=>{if(f===!1||!oe.pageSize)return He;const{current:tt=1,total:lt,pageSize:_e=Uk}=oe;return He.length_e?He.slice((tt-1)*_e,tt*_e):He:He.slice((tt-1)*_e,tt*_e)},[!!f,He,oe&&oe.current,oe&&oe.pageSize,oe&&oe.total]),[Ee,ke]=Dse({prefixCls:le,data:He,pageData:ge,getRowKey:ie,getRecordByKey:pe,expandType:ce,childrenColumnName:Ce,locale:Y,getPopupContainer:x||J},m),Ye=(tt,lt,_e)=>{let Ne;return typeof g=="function"?Ne=te(g(tt,lt,_e)):Ne=te(g),te({[`${le}-row-selected`]:ke.has(ie(tt,lt))},Ne)};Ie.__PARENT_RENDER_ICON__=Ie.expandIcon,Ie.expandIcon=Ie.expandIcon||w||Qle(Y),ce==="nest"&&Ie.expandIconColumnIndex===void 0?Ie.expandIconColumnIndex=m?1:0:Ie.expandIconColumnIndex>0&&m&&(Ie.expandIconColumnIndex-=1),typeof Ie.indentSize!="number"&&(Ie.indentSize=typeof R=="number"?R:15);const Fe=c.useCallback(tt=>ee(Ee(ct(de(tt)))),[de,ct,Ee]);let ot,Ae;if(f!==!1&&(oe!=null&&oe.total)){let tt;oe.size?tt=oe.size:tt=X==="small"||X==="middle"?"small":void 0;const lt=Te=>c.createElement(hE,Object.assign({},oe,{className:te(`${le}-pagination ${le}-pagination-${Te}`,oe.className),size:tt})),_e=G==="rtl"?"left":"right",{position:Ne}=oe;if(Ne!==null&&Array.isArray(Ne)){const Te=Ne.find(ht=>ht.includes("top")),We=Ne.find(ht=>ht.includes("bottom")),qe=Ne.every(ht=>`${ht}`=="none");!Te&&!We&&!qe&&(Ae=lt(_e)),Te&&(ot=lt(Te.toLowerCase().replace("top",""))),We&&(Ae=lt(We.toLowerCase().replace("bottom","")))}else Ae=lt(_e)}let Ke;typeof E=="boolean"?Ke={spinning:E}:typeof E=="object"&&(Ke=Object.assign({spinning:!0},E));const[Ue,ze]=mue(le),at=te(`${le}-wrapper`,{[`${le}-wrapper-rtl`]:G==="rtl"},r,o,ze),$t=D&&D.emptyText||(W==null?void 0:W("Table"))||c.createElement(jx,{componentName:"Table"});return Ue(c.createElement("div",{ref:t,className:at,style:i},c.createElement(hk,Object.assign({spinning:!1},Ke),ot,c.createElement(Zle,Object.assign({},V,{columns:F,direction:G,expandable:Ie,prefixCls:le,className:te({[`${le}-middle`]:X==="middle",[`${le}-small`]:X==="small",[`${le}-bordered`]:l,[`${le}-empty`]:ne.length===0}),data:ge,rowKey:ie,rowClassName:Ye,emptyText:$t,internalHooks:ng,internalRefs:he,transformColumns:Fe})),Ae)))},vue=c.forwardRef(gue),yue=(e,t)=>{const n=c.useRef(0);return n.current+=1,c.createElement(vue,Object.assign({},e,{ref:t,_renderTimes:n.current}))},Ua=c.forwardRef(yue);Ua.SELECTION_COLUMN=il;Ua.EXPAND_COLUMN=ul;Ua.SELECTION_ALL=jC;Ua.SELECTION_INVERT=VC;Ua.SELECTION_NONE=UC;Ua.Column=Yle;Ua.ColumnGroup=qle;Ua.Summary=Ik;const bue=Ua,Sue="_divIconWrapper_1eud3_1",Cue={divIconWrapper:Sue},Zl=e=>St("div",{className:Cue.divIconWrapper,onClick:t=>{t.stopPropagation(),e.onClick!==void 0&&e.onClick()},children:[e.icon,e.label!==void 0&&me("label",{children:e.label})]});class xue{constructor(){Xn(this,"vms",[]);Xn(this,"resolves",[])}get length(){return this.vms.length}add(t){this.vms.push(t),this.resolves.push(null)}delete(t){this.vms.splice(t,1),this.resolves.splice(t,1)}at(t){return this.vms[t]}resolvesAt(t){return this.resolves[t]}setResolveAt(t,n){this.resolves[t]=n}}const on=new xue;function $i(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:EE(e)?2:wE(e)?3:0}function Ju(e,t){return Tc(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Eue(e,t){return Tc(e)===2?e.get(t):e[t]}function Xk(e,t,n){var r=Tc(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Yk(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function EE(e){return Rue&&e instanceof Map}function wE(e){return Tue&&e instanceof Set}function rs(e){return e.o||e.t}function IE(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Qk(e);delete t[$n];for(var n=ec(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=wue),Object.freeze(e),t&&Ls(e,function(n,r){return $E(r,!0)},!0)),e}function wue(){$i(2)}function OE(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function ia(e){var t=qC[e];return t||$i(18,e),t}function Iue(e,t){qC[e]||(qC[e]=t)}function GC(){return $f}function ab(e,t){t&&(ia("Patches"),e.u=[],e.s=[],e.v=t)}function og(e){XC(e),e.p.forEach($ue),e.p=null}function XC(e){e===$f&&($f=e.l)}function uT(e){return $f={p:[],l:$f,h:e,m:!0,_:0}}function $ue(e){var t=e[$n];t.i===0||t.i===1?t.j():t.g=!0}function lb(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||ia("ES5").S(t,e,r),r?(n[$n].P&&(og(t),$i(4)),za(e)&&(e=ig(t,e),t.l||ag(t,e)),t.u&&ia("Patches").M(n[$n].t,e,t.u,t.s)):e=ig(t,n,[]),og(t),t.u&&t.v(t.u,t.s),e!==qk?e:void 0}function ig(e,t,n){if(OE(t))return t;var r=t[$n];if(!r)return Ls(t,function(l,s){return cT(e,r,t,l,s,n)},!0),t;if(r.A!==e)return t;if(!r.P)return ag(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=IE(r.k):r.o,i=o,a=!1;r.i===3&&(i=new Set(o),o.clear(),a=!0),Ls(i,function(l,s){return cT(e,r,o,l,s,n,a)}),ag(e,o,!1),n&&e.u&&ia("Patches").N(r,n,e.u,e.s)}return r.o}function cT(e,t,n,r,o,i,a){if(Al(o)){var l=ig(e,o,i&&t&&t.i!==3&&!Ju(t.R,r)?i.concat(r):void 0);if(Xk(n,r,l),!Al(l))return;e.m=!1}else a&&n.add(o);if(za(o)&&!OE(o)){if(!e.h.D&&e._<1)return;ig(e,o),t&&t.A.l||ag(e,o)}}function ag(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&$E(t,n)}function sb(e,t){var n=e[$n];return(n?rs(n):e)[t]}function dT(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function fl(e){e.P||(e.P=!0,e.l&&fl(e.l))}function ub(e){e.o||(e.o=IE(e.t))}function YC(e,t,n){var r=EE(t)?ia("MapSet").F(t,n):wE(t)?ia("MapSet").T(t,n):e.O?function(o,i){var a=Array.isArray(o),l={i:a?1:0,A:i?i.A:GC(),P:!1,I:!1,R:{},l:i,t:o,k:null,o:null,j:null,C:!1},s=l,d=Of;a&&(s=[l],d=bd);var f=Proxy.revocable(s,d),m=f.revoke,h=f.proxy;return l.k=h,l.j=m,h}(t,n):ia("ES5").J(t,n);return(n?n.A:GC()).p.push(r),r}function Oue(e){return Al(e)||$i(22,e),function t(n){if(!za(n))return n;var r,o=n[$n],i=Tc(n);if(o){if(!o.P&&(o.i<4||!ia("ES5").K(o)))return o.t;o.I=!0,r=fT(n,i),o.I=!1}else r=fT(n,i);return Ls(r,function(a,l){o&&Eue(o.t,a)===l||Xk(r,a,t(l))}),i===3?new Set(r):r}(e)}function fT(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return IE(e)}function _ue(){function e(i,a){var l=o[i];return l?l.enumerable=a:o[i]=l={configurable:!0,enumerable:a,get:function(){var s=this[$n];return Of.get(s,i)},set:function(s){var d=this[$n];Of.set(d,i,s)}},l}function t(i){for(var a=i.length-1;a>=0;a--){var l=i[a][$n];if(!l.P)switch(l.i){case 5:r(l)&&fl(l);break;case 4:n(l)&&fl(l)}}}function n(i){for(var a=i.t,l=i.k,s=ec(l),d=s.length-1;d>=0;d--){var f=s[d];if(f!==$n){var m=a[f];if(m===void 0&&!Ju(a,f))return!0;var h=l[f],g=h&&h[$n];if(g?g.t!==m:!Yk(h,m))return!0}}var v=!!a[$n];return s.length!==ec(a).length+(v?0:1)}function r(i){var a=i.k;if(a.length!==i.t.length)return!0;var l=Object.getOwnPropertyDescriptor(a,a.length-1);if(l&&!l.get)return!0;for(var s=0;s1?y-1:0),E=1;E1?f-1:0),h=1;h=0;o--){var i=r[o];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}o>-1&&(r=r.slice(o+1));var a=ia("Patches").$;return Al(n)?a(n,r):this.produce(n,function(l){return a(l,r)})},e}(),Lo=new Nue,Zk=Lo.produce;Lo.produceWithPatches.bind(Lo);Lo.setAutoFreeze.bind(Lo);Lo.setUseProxies.bind(Lo);Lo.applyPatches.bind(Lo);Lo.createDraft.bind(Lo);Lo.finishDraft.bind(Lo);function Mr(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var gT=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),cb=function(){return Math.random().toString(36).substring(7).split("").join(".")},lg={INIT:"@@redux/INIT"+cb(),REPLACE:"@@redux/REPLACE"+cb(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+cb()}};function Mue(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Jk(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Mr(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Mr(1));return n(Jk)(e,t)}if(typeof e!="function")throw new Error(Mr(2));var o=e,i=t,a=[],l=a,s=!1;function d(){l===a&&(l=a.slice())}function f(){if(s)throw new Error(Mr(3));return i}function m(C){if(typeof C!="function")throw new Error(Mr(4));if(s)throw new Error(Mr(5));var S=!0;return d(),l.push(C),function(){if(S){if(s)throw new Error(Mr(6));S=!1,d();var x=l.indexOf(C);l.splice(x,1),a=null}}}function h(C){if(!Mue(C))throw new Error(Mr(7));if(typeof C.type>"u")throw new Error(Mr(8));if(s)throw new Error(Mr(9));try{s=!0,i=o(i,C)}finally{s=!1}for(var S=a=l,y=0;y"u")throw new Error(Mr(12));if(typeof n(void 0,{type:lg.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Mr(13))})}function Lue(e){for(var t=Object.keys(e),n={},r=0;r"u")throw d&&d.type,new Error(Mr(14));m[g]=S,f=f||S!==C}return f=f||i.length!==Object.keys(s).length,f?m:s}}function sg(){for(var e=arguments.length,t=new Array(e),n=0;n0&&i[i.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]{e.activeVmIndex=t.payload},setName:(e,t)=>{e.vmPageStates[t.payload.index].name=t.payload.newName},addVmPageState:(e,t)=>{const n=e.vmPageStates.length===0?0:e.vmPageStates[e.vmPageStates.length-1].id+1;e.vmPageStates.push({...t.payload,id:n}),e.activeVmIndex=e.vmPageStates.length-1,eh[n]=e.vmPageStates.length-1},deleteVmPageState:(e,t)=>{(e.activeVmIndex>t.payload||e.activeVmIndex===t.payload&&e.activeVmIndex===e.vmPageStates.length-1)&&e.activeVmIndex--,eh[e.vmPageStates[t.payload].id]=void 0;for(let n=t.payload+1;n{e.vmPageStates[e.activeVmIndex].isIrChanged=t.payload},setIrString:(e,t)=>{e.vmPageStates[e.activeVmIndex].irString=t.payload},setIrSelection:(e,t)=>{e.vmPageStates[e.activeVmIndex].irSelection=t.payload},setState:(e,t)=>{e.vmPageStates[e.activeVmIndex].state=t.payload},setGlobalVariableDetails:(e,t)=>{e.vmPageStates[e.activeVmIndex].globalVariableDetails=t.payload},setLocalVariableDetailsStack:(e,t)=>{e.vmPageStates[e.activeVmIndex].localVariableDetailsStack=t.payload},setOptions:(e,t)=>{e.vmPageStates[e.activeVmIndex].options=t.payload},setStepCount:(e,t)=>{e.vmPageStates[e.activeVmIndex].stepCount=t.payload},setMemoryUsage:(e,t)=>{e.vmPageStates[e.activeVmIndex].memoryUsage=t.payload},setPeakMemoryUsage:(e,t)=>{e.vmPageStates[e.activeVmIndex].peakMemoryUsage=t.payload},addConsoleOutputs:(e,t)=>{for(const n of t.payload)e.vmPageStates[e.activeVmIndex].consoleOutputs.push(n)},clearConsoleOutputs:e=>{e.vmPageStates[e.activeVmIndex].consoleOutputs=[]},setConsoleInputPrompt:(e,t)=>{e.vmPageStates[e.activeVmIndex].consoleInputPrompt=t.payload},setConsoleInput:(e,t)=>{e.vmPageStates[e.activeVmIndex].consoleInput=t.payload},setStaticErrorTable:(e,t)=>{e.vmPageStates[e.activeVmIndex].staticErrorTable=t.payload},setRuntimeErrorTable:(e,t)=>{e.vmPageStates[e.activeVmIndex].runtimeErrorTable=t.payload},setCurrentLineNumber:(e,t)=>{e.vmPageStates[e.activeVmIndex].currentLineNumber=t.payload},setShouldIndicateCurrentLineNumber:(e,t)=>{e.vmPageStates[e.activeVmIndex].shouldIndicateCurrentLineNumber=t.payload},setScrollHeights:(e,t)=>{Object.assign(e.vmPageStates[e.activeVmIndex].scrollHeights,t.payload)},setLocalVariableTablePageIndex:(e,t)=>{e.vmPageStates[e.activeVmIndex].localVariableTablePageIndex=t.payload}}}),{setActiveVmIndex:uce,setName:cce,addVmPageState:i3,deleteVmPageState:dce,setIsIrChanged:a3,setIrString:fce,setIrSelection:xT,setState:pce,setGlobalVariableDetails:mce,setLocalVariableDetailsStack:hce,setOptions:gce,setStepCount:vce,setMemoryUsage:yce,setPeakMemoryUsage:l3,addConsoleOutputs:s3,clearConsoleOutputs:bce,setConsoleInputPrompt:pb,setConsoleInput:$m,setStaticErrorTable:Sce,setRuntimeErrorTable:Cce,setCurrentLineNumber:xce,setShouldIndicateCurrentLineNumber:mb,setScrollHeights:u3,setLocalVariableTablePageIndex:c3}=o3.actions,yl=(e,t)=>{const n=eh[t];n!==void 0&&(e(pce(on.at(n).state)),e(mce(on.at(n).globalVariableDetails)),e(hce(on.at(n).localVariableDetailsStack)),e(gce(on.at(n).currentOptions)),e(vce(on.at(n).stepCount)),e(yce(on.at(n).memoryUsage)),e(l3(on.at(n).currentPeakMemoryUsage)),e(Sce(on.at(n).staticErrorTable)),e(Cce(on.at(n).runtimeErrorTable)),e(xce(on.at(n).currentLineNumber)),on.at(n).flushWriteBuffer(r=>e(s3(r))))},Ece=o3.reducer,ET=new Int32Array(1);function ao(e){return ET[0]=e,ET[0]}function _o(e,t){return ao(e+t)}function Om(e,t){return ao(e-t)}function wce(e,t){const n=(e&4294901760)>>>16,r=e&65535,o=(t&4294901760)>>>16,i=t&65535;return ao((n*i+r*o<<16)+r*i)}function Ice(e,t){return ao(e/t)}var ZC=(e=>(e[e.SUCCESS=0]="SUCCESS",e[e.OUT_OF_BOUND=1]="OUT_OF_BOUND",e))(ZC||{}),d3=(e=>(e[e.SUCCESS=0]="SUCCESS",e[e.OUT_OF_BOUND=1]="OUT_OF_BOUND",e))(d3||{});function wT(e,t){return e<0||e+4>t.length?{value:null,status:1}:{value:ao(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24),status:0}}function $ce(e,t,n){return t<0||t+4>n.length?1:(n[t]=e&255,n[t+1]=(e&65280)>>>8,n[t+2]=(e&16711680)>>>16,n[t+3]=(e&4278190080)>>>24,0)}var th=(e=>(e[e.IMM=0]="IMM",e[e.ID=1]="ID",e[e.ADDRESS_ID=2]="ADDRESS_ID",e[e.DEREF_ID=3]="DEREF_ID",e))(th||{}),Sd=(e=>(e[e.ADD=0]="ADD",e[e.SUB=1]="SUB",e[e.MUL=2]="MUL",e[e.DIV=3]="DIV",e))(Sd||{}),os=(e=>(e[e.EQ=0]="EQ",e[e.NE=1]="NE",e[e.LT=2]="LT",e[e.LE=3]="LE",e[e.GT=4]="GT",e[e.GE=5]="GE",e))(os||{}),Cd=(e=>(e[e.ID=0]="ID",e[e.DEREF_ID=1]="DEREF_ID",e))(Cd||{}),JC=(e=>(e[e.SINGULAR=0]="SINGULAR",e[e.BINARY_MATH_OP=1]="BINARY_MATH_OP",e))(JC||{}),wu=(e=>(e[e.FUNCTION=0]="FUNCTION",e[e.ASSIGN=1]="ASSIGN",e[e.DEC=2]="DEC",e[e.GLOBAL_DEC=3]="GLOBAL_DEC",e[e.LABEL=4]="LABEL",e[e.GOTO=5]="GOTO",e[e.IF=6]="IF",e[e.ARG=7]="ARG",e[e.CALL=8]="CALL",e[e.ASSIGN_CALL=9]="ASSIGN_CALL",e[e.PARAM=10]="PARAM",e[e.RETURN=11]="RETURN",e[e.READ=12]="READ",e[e.WRITE=13]="WRITE",e[e.EMPTY=14]="EMPTY",e[e.COMMENT=15]="COMMENT",e[e.ERROR=16]="ERROR",e))(wu||{}),Pr=(e=>(e[e.ASSIGN=1]="ASSIGN",e[e.DEC=2]="DEC",e[e.GLOBAL_DEC=3]="GLOBAL_DEC",e[e.GOTO=5]="GOTO",e[e.IF=6]="IF",e[e.ARG=7]="ARG",e[e.CALL=8]="CALL",e[e.ASSIGN_CALL=9]="ASSIGN_CALL",e[e.PARAM=10]="PARAM",e[e.RETURN=11]="RETURN",e[e.READ=12]="READ",e[e.WRITE=13]="WRITE",e))(Pr||{});class Oce{constructor(){Xn(this,"patternId",new RegExp(/^(?[a-zA-Z_]\w*)$/));Xn(this,"patternSize",new RegExp(/^(?\d+)$/));Xn(this,"patternSingular",new RegExp(/^(#(?-?\d+))$|^(?[a-zA-Z_]\w*)$|^(\*(?[a-zA-Z_]\w*))$|^(&(?[a-zA-Z_]\w*))$/));Xn(this,"patternLValue",new RegExp(/^((?[a-zA-Z_]\w*))$|^(\*(?[a-zA-Z_]\w*))$/));Xn(this,"illegalInstructionFormatError",{type:16,messageKey:"ILLEGAL_INSTRUCTION_FORMAT"})}purify(t){return t.trim().replaceAll(/[ \t]+/g," ")}splitWhiteSpace(t){return t.replaceAll(" "," ").split(" ")}decodeComponentId(t){const n=t.match(this.patternId);return n===null?null:n.groups.id}decodeComponentSize(t){const n=t.match(this.patternSize);if(n===null)return null;const r=parseInt(n.groups.size);return Number.isSafeInteger(r)?ao(r):1/0}decodeComponentSingular(t){const n=t.match(this.patternSingular);if(n===null)return null;if(n.groups.imm!==void 0){const r=parseInt(n.groups.imm);return Number.isSafeInteger(r)?{type:0,imm:ao(r)}:{type:0,imm:1/0}}else return n.groups.id!==void 0?{type:1,id:n.groups.id}:n.groups.derefId!==void 0?{type:3,id:n.groups.derefId}:{type:2,id:n.groups.addressId}}decodeComponentLValue(t){const n=t.match(this.patternLValue);return n===null?null:n.groups.id!==void 0?{type:0,id:n.groups.id}:{type:1,id:n.groups.derefId}}decodeFunction(t){if(t.length!==3||t[2]!==":")return this.illegalInstructionFormatError;const n=this.decodeComponentId(t[1]);return n===null?{type:16,messageKey:"FUNCTION_ILLEGAL_ID"}:{type:0,value:{id:n}}}decodeAssign(t){if(t.length!==3&&t.length!==5||t[1]!==":=")return this.illegalInstructionFormatError;const n=this.decodeComponentLValue(t[0]);if(n===null)return{type:16,messageKey:"ASSIGN_ILLEGAL_LEFT"};const r=this.decodeComponentSingular(t[2]);if(r===null)return{type:16,messageKey:t.length===3?"ASSIGN_ILLEGAL_RIGHT":"ASSIGN_ILLEGAL_RIGHT_OPERAND1"};if(r.type===0&&!Number.isFinite(r.imm))return{type:16,messageKey:t.length===3?"ASSIGN_RIGHT_IMM_TOO_LARGE":"ASSIGN_RIGHT_OPERAND1_IMM_TOO_LARGE"};if(t.length===3)return{type:1,value:{lValue:n,rValue:{type:0,singular:r}}};{let o=0;switch(t[3]){case"+":o=0;break;case"-":o=1;break;case"*":o=2;break;case"/":o=3;break;default:return{type:16,messageKey:"ASSIGN_ILLEGAL_RIGHT_OPERATOR"}}const i=this.decodeComponentSingular(t[4]);return i===null?{type:16,messageKey:"ASSIGN_ILLEGAL_RIGHT_OPERAND2"}:i.type===0&&!Number.isFinite(i.imm)?{type:16,messageKey:"ASSIGN_RIGHT_OPERAND2_IMM_TOO_LARGE"}:{type:1,value:{lValue:n,rValue:{type:1,singularL:r,singularR:i,binaryMathOp:o}}}}}decodeDec(t){if(t.length!==3)return this.illegalInstructionFormatError;const n=this.decodeComponentId(t[1]);if(n===null)return{type:16,messageKey:"DEC_ILLEGAL_ID"};const r=this.decodeComponentSize(t[2]);return r===null?{type:16,messageKey:"DEC_ILLEGAL_SIZE_FORMAT"}:Number.isFinite(r)?r%4!==0?{type:16,messageKey:"DEC_SIZE_NOT_4_MULTIPLE"}:{type:2,value:{id:n,size:r}}:{type:16,messageKey:"DEC_SIZE_TOO_LARGE"}}decodeGlobalDec(t){if(t.length!==3)return this.illegalInstructionFormatError;const n=this.decodeComponentId(t[1]);if(n===null)return{type:16,messageKey:"GLOBAL_DEC_ILLEGAL_ID"};const r=this.decodeComponentSize(t[2]);return r===null?{type:16,messageKey:"GLOBAL_DEC_ILLEGAL_SIZE_FORMAT"}:Number.isFinite(r)?r%4!==0?{type:16,messageKey:"GLOBAL_DEC_SIZE_NOT_4_MULTIPLE"}:{type:3,value:{id:n,size:r}}:{type:16,messageKey:"GLOBAL_DEC_SIZE_TOO_LARGE"}}decodeLabel(t){if(t.length!==3||t[2]!==":")return this.illegalInstructionFormatError;const n=this.decodeComponentId(t[1]);return n===null?{type:16,messageKey:"LABEL_ILLEGAL_ID"}:{type:4,value:{id:n}}}decodeGoto(t){if(t.length!==2)return this.illegalInstructionFormatError;const n=this.decodeComponentId(t[1]);return n===null?{type:16,messageKey:"GOTO_ILLEGAL_ID"}:{type:5,value:{id:n}}}decodeIf(t){if(t.length!==6||t[4]!=="GOTO")return this.illegalInstructionFormatError;const n=this.decodeComponentSingular(t[1]);if(n===null)return{type:16,messageKey:"IF_ILLEGAL_COND_OPERAND1"};if(n.type===0&&!Number.isFinite(n.imm))return{type:16,messageKey:"IF_COND_OPERAND1_IMM_TOO_LARGE"};let r=0;switch(t[2]){case"==":r=0;break;case"!=":r=1;break;case"<":r=2;break;case"<=":r=3;break;case">":r=4;break;case">=":r=5;break;default:return{type:16,messageKey:"IF_ILLEGAL_COND_OPERATOR"}}const o=this.decodeComponentSingular(t[3]);if(o===null)return{type:16,messageKey:"IF_ILLEGAL_COND_OPERAND2"};if(o.type===0&&!Number.isFinite(o.imm))return{type:16,messageKey:"IF_COND_OPERAND2_IMM_TOO_LARGE"};const i=this.decodeComponentId(t[5]);return i===null?{type:16,messageKey:"IF_ILLEGAL_GOTO_ID"}:{type:6,value:{condition:{singularL:n,singularR:o,binaryRelOp:r},gotoId:i}}}decodeArg(t){if(t.length!==2)return this.illegalInstructionFormatError;const n=this.decodeComponentSingular(t[1]);return n===null?{type:16,messageKey:"ARG_ILLEGAL"}:n.type===0&&!Number.isFinite(n.imm)?{type:16,messageKey:"ARG_IMM_TOO_LARGE"}:{type:7,value:{value:n}}}decodeCall(t){if(t.length!==2)return this.illegalInstructionFormatError;const n=this.decodeComponentId(t[1]);return n===null?{type:16,messageKey:"CALL_ILLEGAL_ID"}:{type:8,value:{id:n}}}decodeAssignCall(t){if(t.length!==4||t[1]!==":="||t[2]!=="CALL")return this.illegalInstructionFormatError;const n=this.decodeComponentLValue(t[0]);if(n===null)return{type:16,messageKey:"ASSIGN_ILLEGAL_LEFT"};const r=this.decodeComponentId(t[3]);return r===null?{type:16,messageKey:"CALL_ILLEGAL_ID"}:{type:9,value:{lValue:n,functionId:r}}}decodeParam(t){if(t.length!==2)return this.illegalInstructionFormatError;const n=this.decodeComponentId(t[1]);return n===null?{type:16,messageKey:"PARAM_ILLEGAL_ID"}:{type:10,value:{id:n}}}decodeReturn(t){if(t.length!==2)return this.illegalInstructionFormatError;const n=this.decodeComponentSingular(t[1]);return n===null?{type:16,messageKey:"RETURN_ILLEGAL"}:n.type===0&&!Number.isFinite(n.imm)?{type:16,messageKey:"RETURN_IMM_TOO_LARGE"}:{type:11,value:{value:n}}}decodeRead(t){if(t.length!==2)return this.illegalInstructionFormatError;const n=this.decodeComponentLValue(t[1]);return n===null?{type:16,messageKey:"READ_ILLEGAL"}:{type:12,value:{lValue:n}}}decodeWrite(t){if(t.length!==2)return this.illegalInstructionFormatError;const n=this.decodeComponentSingular(t[1]);return n===null?{type:16,messageKey:"WRITE_ILLEGAL"}:n.type===0&&!Number.isFinite(n.imm)?{type:16,messageKey:"WRITE_IMM_TOO_LARGE"}:{type:13,value:{value:n}}}decode(t,n){if(t.match(/^[ \t]*$/))return{type:14,lineNumber:n};const r={type:16,lineNumber:n,messageKey:"UNRECOGNIZED_INSTRUCTION"},o=this.purify(t);if(o.startsWith(";"))return{type:15,lineNumber:n};const i=this.splitWhiteSpace(o);if(i.length<1)return r;const a=l=>Object.assign(l,{lineNumber:n});switch(i[0]){case"FUNCTION":return a(this.decodeFunction(i));case"DEC":return a(this.decodeDec(i));case"GLOBAL_DEC":return a(this.decodeGlobalDec(i));case"LABEL":return a(this.decodeLabel(i));case"GOTO":return a(this.decodeGoto(i));case"IF":return a(this.decodeIf(i));case"ARG":return a(this.decodeArg(i));case"CALL":return a(this.decodeCall(i));case"PARAM":return a(this.decodeParam(i));case"RETURN":return a(this.decodeReturn(i));case"READ":return a(this.decodeRead(i));case"WRITE":return a(this.decodeWrite(i));default:const l=this.decodeAssign(i);if(l.type===1)return a(l);const s=this.decodeAssignCall(i);return s.type===9?a(s):a(l)}}}var Nr={},_ce={get exports(){return Nr},set exports(e){Nr=e}};/** - * @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 - */(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",l="Invalid `variable` option passed into `_.template`",s="__lodash_hash_undefined__",d=500,f="__lodash_placeholder__",m=1,h=2,g=4,v=1,C=2,S=1,y=2,x=4,E=8,w=16,I=32,O=64,_=128,R=256,M=512,P=30,D="...",N=800,T=16,L=1,z=2,F=3,V=1/0,j=9007199254740991,U=17976931348623157e292,G=0/0,W=4294967295,q=W-1,J=W>>>1,X=[["ary",_],["bind",S],["bindKey",y],["curry",E],["curryRight",w],["flip",M],["partial",I],["partialRight",O],["rearg",R]],Y="[object Arguments]",ne="[object Array]",le="[object AsyncFunction]",we="[object Boolean]",Ie="[object Date]",Ce="[object DOMException]",ce="[object Error]",he="[object Function]",ie="[object GeneratorFunction]",pe="[object Map]",fe="[object Number]",Oe="[object Null]",Se="[object Object]",de="[object Promise]",Re="[object Proxy]",be="[object RegExp]",Xe="[object Set]",Qe="[object String]",ft="[object Symbol]",ct="[object Undefined]",ut="[object WeakMap]",dt="[object WeakSet]",He="[object ArrayBuffer]",Je="[object DataView]",ee="[object Float32Array]",re="[object Float64Array]",oe="[object Int8Array]",xe="[object Int16Array]",ge="[object Int32Array]",Ee="[object Uint8Array]",ke="[object Uint8ClampedArray]",Ye="[object Uint16Array]",Fe="[object Uint32Array]",ot=/\b__p \+= '';/g,Ae=/\b(__p \+=) '' \+/g,Ke=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ue=/&(?:amp|lt|gt|quot|#39);/g,ze=/[&<>"']/g,at=RegExp(Ue.source),$t=RegExp(ze.source),tt=/<%-([\s\S]+?)%>/g,lt=/<%([\s\S]+?)%>/g,_e=/<%=([\s\S]+?)%>/g,Ne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Te=/^\w*$/,We=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qe=/[\\^$.*+?()[\]{}|]/g,ht=RegExp(qe.source),en=/^\s+/,tn=/\s/,Rn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,_t=/\{\n\/\* \[wrapped with (.+)\] \*/,zt=/,? & /,Tn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,zn=/[()=,{}\[\]\/\s]/,wr=/\\(\\)?/g,gr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Dn=/\w*$/,Fr=/^[-+]0x[0-9a-f]+$/i,ho=/^0b[01]+$/i,kn=/^\[object .+?Constructor\]$/,vr=/^0o[0-7]+$/i,pi=/^(?:0|[1-9]\d*)$/,go=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Wn=/($^)/,Zr=/['\n\r\u2028\u2029\\]/g,Jr="\\ud800-\\udfff",mi="\\u0300-\\u036f",Br="\\ufe20-\\ufe2f",zr="\\u20d0-\\u20ff",Kn=mi+Br+zr,Gn="\\u2700-\\u27bf",eo="a-z\\xdf-\\xf6\\xf8-\\xff",to="\\xac\\xb1\\xd7\\xf7",lr="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Hr="\\u2000-\\u206f",vo=" \\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",zo="A-Z\\xc0-\\xd6\\xd8-\\xde",yo="\\ufe0e\\ufe0f",Ir=to+lr+Hr+vo,$r="['’]",et="["+Jr+"]",Ge="["+Ir+"]",Ct="["+Kn+"]",rt="\\d+",nt="["+Gn+"]",Nt="["+eo+"]",Gt="[^"+Jr+Ir+rt+Gn+eo+zo+"]",Pn="\\ud83c[\\udffb-\\udfff]",sr="(?:"+Ct+"|"+Pn+")",jr="[^"+Jr+"]",ur="(?:\\ud83c[\\udde6-\\uddff]){2}",bo="[\\ud800-\\udbff][\\udc00-\\udfff]",sa="["+zo+"]",js="\\u200d",Pc="(?:"+Nt+"|"+Gt+")",Nv="(?:"+sa+"|"+Gt+")",ep="(?:"+$r+"(?:d|ll|m|re|s|t|ve))?",gt="(?:"+$r+"(?:D|LL|M|RE|S|T|VE))?",Ot=sr+"?",Jt="["+yo+"]?",pn="(?:"+js+"(?:"+[jr,ur,bo].join("|")+")"+Jt+Ot+")*",gn="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Vs="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ua=Jt+Ot+pn,Nc="(?:"+[nt,ur,bo].join("|")+")"+ua,tp="(?:"+[jr+Ct+"?",Ct,ur,bo,et].join("|")+")",Us=RegExp($r,"g"),y3=RegExp(Ct,"g"),Mv=RegExp(Pn+"(?="+Pn+")|"+tp+ua,"g"),b3=RegExp([sa+"?"+Nt+"+"+ep+"(?="+[Ge,sa,"$"].join("|")+")",Nv+"+"+gt+"(?="+[Ge,sa+Pc,"$"].join("|")+")",sa+"?"+Pc+"+"+ep,sa+"+"+gt,Vs,gn,rt,Nc].join("|"),"g"),S3=RegExp("["+js+Jr+Kn+yo+"]"),C3=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,x3=["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"],E3=-1,Sn={};Sn[ee]=Sn[re]=Sn[oe]=Sn[xe]=Sn[ge]=Sn[Ee]=Sn[ke]=Sn[Ye]=Sn[Fe]=!0,Sn[Y]=Sn[ne]=Sn[He]=Sn[we]=Sn[Je]=Sn[Ie]=Sn[ce]=Sn[he]=Sn[pe]=Sn[fe]=Sn[Se]=Sn[be]=Sn[Xe]=Sn[Qe]=Sn[ut]=!1;var vn={};vn[Y]=vn[ne]=vn[He]=vn[Je]=vn[we]=vn[Ie]=vn[ee]=vn[re]=vn[oe]=vn[xe]=vn[ge]=vn[pe]=vn[fe]=vn[Se]=vn[be]=vn[Xe]=vn[Qe]=vn[ft]=vn[Ee]=vn[ke]=vn[Ye]=vn[Fe]=!0,vn[ce]=vn[he]=vn[ut]=!1;var w3={À:"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"},I3={"&":"&","<":"<",">":">",'"':""","'":"'"},$3={"&":"&","<":"<",">":">",""":'"',"'":"'"},O3={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},_3=parseFloat,R3=parseInt,PE=typeof Xc=="object"&&Xc&&Xc.Object===Object&&Xc,T3=typeof self=="object"&&self&&self.Object===Object&&self,yr=PE||T3||Function("return this")(),Av=t&&!t.nodeType&&t,Hl=Av&&!0&&e&&!e.nodeType&&e,NE=Hl&&Hl.exports===Av,Lv=NE&&PE.process,Ho=function(){try{var ae=Hl&&Hl.require&&Hl.require("util").types;return ae||Lv&&Lv.binding&&Lv.binding("util")}catch{}}(),ME=Ho&&Ho.isArrayBuffer,AE=Ho&&Ho.isDate,LE=Ho&&Ho.isMap,DE=Ho&&Ho.isRegExp,kE=Ho&&Ho.isSet,FE=Ho&&Ho.isTypedArray;function So(ae,$e,ye){switch(ye.length){case 0:return ae.call($e);case 1:return ae.call($e,ye[0]);case 2:return ae.call($e,ye[0],ye[1]);case 3:return ae.call($e,ye[0],ye[1],ye[2])}return ae.apply($e,ye)}function P3(ae,$e,ye,it){for(var Rt=-1,nn=ae==null?0:ae.length;++Rt-1}function Dv(ae,$e,ye){for(var it=-1,Rt=ae==null?0:ae.length;++it-1;);return ye}function KE(ae,$e){for(var ye=ae.length;ye--&&Ws($e,ae[ye],0)>-1;);return ye}function z3(ae,$e){for(var ye=ae.length,it=0;ye--;)ae[ye]===$e&&++it;return it}var H3=zv(w3),j3=zv(I3);function V3(ae){return"\\"+O3[ae]}function U3(ae,$e){return ae==null?n:ae[$e]}function Ks(ae){return S3.test(ae)}function W3(ae){return C3.test(ae)}function K3(ae){for(var $e,ye=[];!($e=ae.next()).done;)ye.push($e.value);return ye}function Uv(ae){var $e=-1,ye=Array(ae.size);return ae.forEach(function(it,Rt){ye[++$e]=[Rt,it]}),ye}function GE(ae,$e){return function(ye){return ae($e(ye))}}function Ga(ae,$e){for(var ye=-1,it=ae.length,Rt=0,nn=[];++ye-1}function M4(u,p){var b=this.__data__,$=bp(b,u);return $<0?(++this.size,b.push([u,p])):b[$][1]=p,this}ca.prototype.clear=R4,ca.prototype.delete=T4,ca.prototype.get=P4,ca.prototype.has=N4,ca.prototype.set=M4;function da(u){var p=-1,b=u==null?0:u.length;for(this.clear();++p=p?u:p)),u}function Wo(u,p,b,$,A,B){var K,Z=p&m,se=p&h,Me=p&g;if(b&&(K=A?b(u,$,A,B):b(u)),K!==n)return K;if(!Nn(u))return u;var Le=Pt(u);if(Le){if(K=kF(u),!Z)return no(u,K)}else{var Be=_r(u),Ze=Be==he||Be==ie;if(Ja(u))return Rw(u,Z);if(Be==Se||Be==Y||Ze&&!A){if(K=se||Ze?{}:Xw(u),!Z)return se?$F(u,Y4(K,u)):IF(u,iw(K,u))}else{if(!vn[Be])return A?u:{};K=FF(u,Be,Z)}}B||(B=new gi);var mt=B.get(u);if(mt)return mt;B.set(u,K),EI(u)?u.forEach(function(Et){K.add(Wo(Et,p,b,Et,u,B))}):CI(u)&&u.forEach(function(Et,kt){K.set(kt,Wo(Et,p,b,kt,u,B))});var xt=Me?se?g0:h0:se?oo:cr,At=Le?n:xt(u);return jo(At||u,function(Et,kt){At&&(kt=Et,Et=u[kt]),Bc(K,kt,Wo(Et,p,b,kt,u,B))}),K}function q4(u){var p=cr(u);return function(b){return aw(b,u,p)}}function aw(u,p,b){var $=b.length;if(u==null)return!$;for(u=mn(u);$--;){var A=b[$],B=p[A],K=u[A];if(K===n&&!(A in u)||!B(K))return!1}return!0}function lw(u,p,b){if(typeof u!="function")throw new Vo(a);return Kc(function(){u.apply(n,b)},p)}function zc(u,p,b,$){var A=-1,B=np,K=!0,Z=u.length,se=[],Me=p.length;if(!Z)return se;b&&(p=In(p,Co(b))),$?(B=Dv,K=!1):p.length>=o&&(B=Mc,K=!1,p=new Ul(p));e:for(;++AA?0:A+b),$=$===n||$>A?A:Mt($),$<0&&($+=A),$=b>$?0:II($);b<$;)u[b++]=p;return u}function uw(u,p){var b=[];return Ya(u,function($,A,B){p($,A,B)&&b.push($)}),b}function br(u,p,b,$,A){var B=-1,K=u.length;for(b||(b=zF),A||(A=[]);++B0&&b(Z)?p>1?br(Z,p-1,b,$,A):Ka(A,Z):$||(A[A.length]=Z)}return A}var Qv=Lw(),cw=Lw(!0);function Hi(u,p){return u&&Qv(u,p,cr)}function Zv(u,p){return u&&cw(u,p,cr)}function Cp(u,p){return Wa(p,function(b){return ga(u[b])})}function Kl(u,p){p=Qa(p,u);for(var b=0,$=p.length;u!=null&&b<$;)u=u[Vi(p[b++])];return b&&b==$?u:n}function dw(u,p,b){var $=p(u);return Pt(u)?$:Ka($,b(u))}function Vr(u){return u==null?u===n?ct:Oe:jl&&jl in mn(u)?AF(u):GF(u)}function Jv(u,p){return u>p}function J4(u,p){return u!=null&&an.call(u,p)}function eF(u,p){return u!=null&&p in mn(u)}function tF(u,p,b){return u>=Or(p,b)&&u=120&&Le.length>=120)?new Ul(K&&Le):n}Le=u[0];var Be=-1,Ze=Z[0];e:for(;++Be-1;)Z!==u&&fp.call(Z,se,1),fp.call(u,se,1);return u}function Cw(u,p){for(var b=u?p.length:0,$=b-1;b--;){var A=p[b];if(b==$||A!==B){var B=A;ha(A)?fp.call(u,A,1):s0(u,A)}}return u}function i0(u,p){return u+hp(tw()*(p-u+1))}function mF(u,p,b,$){for(var A=-1,B=nr(mp((p-u)/(b||1)),0),K=ye(B);B--;)K[$?B:++A]=u,u+=b;return K}function a0(u,p){var b="";if(!u||p<1||p>j)return b;do p%2&&(b+=u),p=hp(p/2),p&&(u+=u);while(p);return b}function Lt(u,p){return E0(Qw(u,p,io),u+"")}function hF(u){return ow(ru(u))}function gF(u,p){var b=ru(u);return Np(b,Wl(p,0,b.length))}function Vc(u,p,b,$){if(!Nn(u))return u;p=Qa(p,u);for(var A=-1,B=p.length,K=B-1,Z=u;Z!=null&&++AA?0:A+p),b=b>A?A:b,b<0&&(b+=A),A=p>b?0:b-p>>>0,p>>>=0;for(var B=ye(A);++$>>1,K=u[B];K!==null&&!Eo(K)&&(b?K<=p:K=o){var Me=p?null:TF(u);if(Me)return op(Me);K=!1,A=Mc,se=new Ul}else se=p?[]:Z;e:for(;++$=$?u:Ko(u,p,b)}var _w=l4||function(u){return yr.clearTimeout(u)};function Rw(u,p){if(p)return u.slice();var b=u.length,$=qE?qE(b):new u.constructor(b);return u.copy($),$}function f0(u){var p=new u.constructor(u.byteLength);return new cp(p).set(new cp(u)),p}function CF(u,p){var b=p?f0(u.buffer):u.buffer;return new u.constructor(b,u.byteOffset,u.byteLength)}function xF(u){var p=new u.constructor(u.source,Dn.exec(u));return p.lastIndex=u.lastIndex,p}function EF(u){return Fc?mn(Fc.call(u)):{}}function Tw(u,p){var b=p?f0(u.buffer):u.buffer;return new u.constructor(b,u.byteOffset,u.length)}function Pw(u,p){if(u!==p){var b=u!==n,$=u===null,A=u===u,B=Eo(u),K=p!==n,Z=p===null,se=p===p,Me=Eo(p);if(!Z&&!Me&&!B&&u>p||B&&K&&se&&!Z&&!Me||$&&K&&se||!b&&se||!A)return 1;if(!$&&!B&&!Me&&u=Z)return se;var Me=b[$];return se*(Me=="desc"?-1:1)}}return u.index-p.index}function Nw(u,p,b,$){for(var A=-1,B=u.length,K=b.length,Z=-1,se=p.length,Me=nr(B-K,0),Le=ye(se+Me),Be=!$;++Z1?b[A-1]:n,K=A>2?b[2]:n;for(B=u.length>3&&typeof B=="function"?(A--,B):n,K&&Ur(b[0],b[1],K)&&(B=A<3?n:B,A=1),p=mn(p);++$-1?A[B?p[K]:K]:n}}function Fw(u){return ma(function(p){var b=p.length,$=b,A=Uo.prototype.thru;for(u&&p.reverse();$--;){var B=p[$];if(typeof B!="function")throw new Vo(a);if(A&&!K&&Tp(B)=="wrapper")var K=new Uo([],!0)}for($=K?$:b;++$1&&Ut.reverse(),Le&&seZ))return!1;var Me=B.get(u),Le=B.get(p);if(Me&&Le)return Me==p&&Le==u;var Be=-1,Ze=!0,mt=b&C?new Ul:n;for(B.set(u,p),B.set(p,u);++Be1?"& ":"")+p[$],p=p.join(b>2?", ":" "),u.replace(Rn,`{ -/* [wrapped with `+p+`] */ -`)}function zF(u){return Pt(u)||Yl(u)||!!(JE&&u&&u[JE])}function ha(u,p){var b=typeof u;return p=p??j,!!p&&(b=="number"||b!="symbol"&&pi.test(u))&&u>-1&&u%1==0&&u0){if(++p>=N)return arguments[0]}else p=0;return u.apply(n,arguments)}}function Np(u,p){var b=-1,$=u.length,A=$-1;for(p=p===n?$:p;++b1?u[p-1]:n;return b=typeof b=="function"?(u.pop(),b):n,uI(u,b)});function cI(u){var p=k(u);return p.__chain__=!0,p}function QB(u,p){return p(u),u}function Mp(u,p){return p(u)}var ZB=ma(function(u){var p=u.length,b=p?u[0]:0,$=this.__wrapped__,A=function(B){return qv(B,u)};return p>1||this.__actions__.length||!($ instanceof Ht)||!ha(b)?this.thru(A):($=$.slice(b,+b+(p?1:0)),$.__actions__.push({func:Mp,args:[A],thisArg:n}),new Uo($,this.__chain__).thru(function(B){return p&&!B.length&&B.push(n),B}))});function JB(){return cI(this)}function e6(){return new Uo(this.value(),this.__chain__)}function t6(){this.__values__===n&&(this.__values__=wI(this.value()));var u=this.__index__>=this.__values__.length,p=u?n:this.__values__[this.__index__++];return{done:u,value:p}}function n6(){return this}function r6(u){for(var p,b=this;b instanceof yp;){var $=rI(b);$.__index__=0,$.__values__=n,p?A.__wrapped__=$:p=$;var A=$;b=b.__wrapped__}return A.__wrapped__=u,p}function o6(){var u=this.__wrapped__;if(u instanceof Ht){var p=u;return this.__actions__.length&&(p=new Ht(this)),p=p.reverse(),p.__actions__.push({func:Mp,args:[w0],thisArg:n}),new Uo(p,this.__chain__)}return this.thru(w0)}function i6(){return $w(this.__wrapped__,this.__actions__)}var a6=Ip(function(u,p,b){an.call(u,b)?++u[b]:fa(u,b,1)});function l6(u,p,b){var $=Pt(u)?BE:Q4;return b&&Ur(u,p,b)&&(p=n),$(u,bt(p,3))}function s6(u,p){var b=Pt(u)?Wa:uw;return b(u,bt(p,3))}var u6=kw(oI),c6=kw(iI);function d6(u,p){return br(Ap(u,p),1)}function f6(u,p){return br(Ap(u,p),V)}function p6(u,p,b){return b=b===n?1:Mt(b),br(Ap(u,p),b)}function dI(u,p){var b=Pt(u)?jo:Ya;return b(u,bt(p,3))}function fI(u,p){var b=Pt(u)?N3:sw;return b(u,bt(p,3))}var m6=Ip(function(u,p,b){an.call(u,b)?u[b].push(p):fa(u,b,[p])});function h6(u,p,b,$){u=ro(u)?u:ru(u),b=b&&!$?Mt(b):0;var A=u.length;return b<0&&(b=nr(A+b,0)),Bp(u)?b<=A&&u.indexOf(p,b)>-1:!!A&&Ws(u,p,b)>-1}var g6=Lt(function(u,p,b){var $=-1,A=typeof p=="function",B=ro(u)?ye(u.length):[];return Ya(u,function(K){B[++$]=A?So(p,K,b):Hc(K,p,b)}),B}),v6=Ip(function(u,p,b){fa(u,b,p)});function Ap(u,p){var b=Pt(u)?In:hw;return b(u,bt(p,3))}function y6(u,p,b,$){return u==null?[]:(Pt(p)||(p=p==null?[]:[p]),b=$?n:b,Pt(b)||(b=b==null?[]:[b]),bw(u,p,b))}var b6=Ip(function(u,p,b){u[b?0:1].push(p)},function(){return[[],[]]});function S6(u,p,b){var $=Pt(u)?kv:VE,A=arguments.length<3;return $(u,bt(p,4),b,A,Ya)}function C6(u,p,b){var $=Pt(u)?M3:VE,A=arguments.length<3;return $(u,bt(p,4),b,A,sw)}function x6(u,p){var b=Pt(u)?Wa:uw;return b(u,kp(bt(p,3)))}function E6(u){var p=Pt(u)?ow:hF;return p(u)}function w6(u,p,b){(b?Ur(u,p,b):p===n)?p=1:p=Mt(p);var $=Pt(u)?K4:gF;return $(u,p)}function I6(u){var p=Pt(u)?G4:yF;return p(u)}function $6(u){if(u==null)return 0;if(ro(u))return Bp(u)?Gs(u):u.length;var p=_r(u);return p==pe||p==Xe?u.size:n0(u).length}function O6(u,p,b){var $=Pt(u)?Fv:bF;return b&&Ur(u,p,b)&&(p=n),$(u,bt(p,3))}var _6=Lt(function(u,p){if(u==null)return[];var b=p.length;return b>1&&Ur(u,p[0],p[1])?p=[]:b>2&&Ur(p[0],p[1],p[2])&&(p=[p[0]]),bw(u,br(p,1),[])}),Lp=s4||function(){return yr.Date.now()};function R6(u,p){if(typeof p!="function")throw new Vo(a);return u=Mt(u),function(){if(--u<1)return p.apply(this,arguments)}}function pI(u,p,b){return p=b?n:p,p=u&&p==null?u.length:p,pa(u,_,n,n,n,n,p)}function mI(u,p){var b;if(typeof p!="function")throw new Vo(a);return u=Mt(u),function(){return--u>0&&(b=p.apply(this,arguments)),u<=1&&(p=n),b}}var $0=Lt(function(u,p,b){var $=S;if(b.length){var A=Ga(b,tu($0));$|=I}return pa(u,$,p,b,A)}),hI=Lt(function(u,p,b){var $=S|y;if(b.length){var A=Ga(b,tu(hI));$|=I}return pa(p,$,u,b,A)});function gI(u,p,b){p=b?n:p;var $=pa(u,E,n,n,n,n,n,p);return $.placeholder=gI.placeholder,$}function vI(u,p,b){p=b?n:p;var $=pa(u,w,n,n,n,n,n,p);return $.placeholder=vI.placeholder,$}function yI(u,p,b){var $,A,B,K,Z,se,Me=0,Le=!1,Be=!1,Ze=!0;if(typeof u!="function")throw new Vo(a);p=Xo(p)||0,Nn(b)&&(Le=!!b.leading,Be="maxWait"in b,B=Be?nr(Xo(b.maxWait)||0,p):B,Ze="trailing"in b?!!b.trailing:Ze);function mt(jn){var yi=$,ya=A;return $=A=n,Me=jn,K=u.apply(ya,yi),K}function xt(jn){return Me=jn,Z=Kc(kt,p),Le?mt(jn):K}function At(jn){var yi=jn-se,ya=jn-Me,kI=p-yi;return Be?Or(kI,B-ya):kI}function Et(jn){var yi=jn-se,ya=jn-Me;return se===n||yi>=p||yi<0||Be&&ya>=B}function kt(){var jn=Lp();if(Et(jn))return Ut(jn);Z=Kc(kt,At(jn))}function Ut(jn){return Z=n,Ze&&$?mt(jn):($=A=n,K)}function wo(){Z!==n&&_w(Z),Me=0,$=se=A=Z=n}function Wr(){return Z===n?K:Ut(Lp())}function Io(){var jn=Lp(),yi=Et(jn);if($=arguments,A=this,se=jn,yi){if(Z===n)return xt(se);if(Be)return _w(Z),Z=Kc(kt,p),mt(se)}return Z===n&&(Z=Kc(kt,p)),K}return Io.cancel=wo,Io.flush=Wr,Io}var T6=Lt(function(u,p){return lw(u,1,p)}),P6=Lt(function(u,p,b){return lw(u,Xo(p)||0,b)});function N6(u){return pa(u,M)}function Dp(u,p){if(typeof u!="function"||p!=null&&typeof p!="function")throw new Vo(a);var b=function(){var $=arguments,A=p?p.apply(this,$):$[0],B=b.cache;if(B.has(A))return B.get(A);var K=u.apply(this,$);return b.cache=B.set(A,K)||B,K};return b.cache=new(Dp.Cache||da),b}Dp.Cache=da;function kp(u){if(typeof u!="function")throw new Vo(a);return function(){var p=arguments;switch(p.length){case 0:return!u.call(this);case 1:return!u.call(this,p[0]);case 2:return!u.call(this,p[0],p[1]);case 3:return!u.call(this,p[0],p[1],p[2])}return!u.apply(this,p)}}function M6(u){return mI(2,u)}var A6=SF(function(u,p){p=p.length==1&&Pt(p[0])?In(p[0],Co(bt())):In(br(p,1),Co(bt()));var b=p.length;return Lt(function($){for(var A=-1,B=Or($.length,b);++A=p}),Yl=fw(function(){return arguments}())?fw:function(u){return Fn(u)&&an.call(u,"callee")&&!ZE.call(u,"callee")},Pt=ye.isArray,Y6=ME?Co(ME):rF;function ro(u){return u!=null&&Fp(u.length)&&!ga(u)}function Hn(u){return Fn(u)&&ro(u)}function q6(u){return u===!0||u===!1||Fn(u)&&Vr(u)==we}var Ja=c4||F0,Q6=AE?Co(AE):oF;function Z6(u){return Fn(u)&&u.nodeType===1&&!Gc(u)}function J6(u){if(u==null)return!0;if(ro(u)&&(Pt(u)||typeof u=="string"||typeof u.splice=="function"||Ja(u)||nu(u)||Yl(u)))return!u.length;var p=_r(u);if(p==pe||p==Xe)return!u.size;if(Wc(u))return!n0(u).length;for(var b in u)if(an.call(u,b))return!1;return!0}function ez(u,p){return jc(u,p)}function tz(u,p,b){b=typeof b=="function"?b:n;var $=b?b(u,p):n;return $===n?jc(u,p,n,b):!!$}function _0(u){if(!Fn(u))return!1;var p=Vr(u);return p==ce||p==Ce||typeof u.message=="string"&&typeof u.name=="string"&&!Gc(u)}function nz(u){return typeof u=="number"&&ew(u)}function ga(u){if(!Nn(u))return!1;var p=Vr(u);return p==he||p==ie||p==le||p==Re}function SI(u){return typeof u=="number"&&u==Mt(u)}function Fp(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=j}function Nn(u){var p=typeof u;return u!=null&&(p=="object"||p=="function")}function Fn(u){return u!=null&&typeof u=="object"}var CI=LE?Co(LE):aF;function rz(u,p){return u===p||t0(u,p,y0(p))}function oz(u,p,b){return b=typeof b=="function"?b:n,t0(u,p,y0(p),b)}function iz(u){return xI(u)&&u!=+u}function az(u){if(VF(u))throw new Rt(i);return pw(u)}function lz(u){return u===null}function sz(u){return u==null}function xI(u){return typeof u=="number"||Fn(u)&&Vr(u)==fe}function Gc(u){if(!Fn(u)||Vr(u)!=Se)return!1;var p=dp(u);if(p===null)return!0;var b=an.call(p,"constructor")&&p.constructor;return typeof b=="function"&&b instanceof b&&lp.call(b)==o4}var R0=DE?Co(DE):lF;function uz(u){return SI(u)&&u>=-j&&u<=j}var EI=kE?Co(kE):sF;function Bp(u){return typeof u=="string"||!Pt(u)&&Fn(u)&&Vr(u)==Qe}function Eo(u){return typeof u=="symbol"||Fn(u)&&Vr(u)==ft}var nu=FE?Co(FE):uF;function cz(u){return u===n}function dz(u){return Fn(u)&&_r(u)==ut}function fz(u){return Fn(u)&&Vr(u)==dt}var pz=Rp(r0),mz=Rp(function(u,p){return u<=p});function wI(u){if(!u)return[];if(ro(u))return Bp(u)?hi(u):no(u);if(Ac&&u[Ac])return K3(u[Ac]());var p=_r(u),b=p==pe?Uv:p==Xe?op:ru;return b(u)}function va(u){if(!u)return u===0?u:0;if(u=Xo(u),u===V||u===-V){var p=u<0?-1:1;return p*U}return u===u?u:0}function Mt(u){var p=va(u),b=p%1;return p===p?b?p-b:p:0}function II(u){return u?Wl(Mt(u),0,W):0}function Xo(u){if(typeof u=="number")return u;if(Eo(u))return G;if(Nn(u)){var p=typeof u.valueOf=="function"?u.valueOf():u;u=Nn(p)?p+"":p}if(typeof u!="string")return u===0?u:+u;u=UE(u);var b=ho.test(u);return b||vr.test(u)?R3(u.slice(2),b?2:8):Fr.test(u)?G:+u}function $I(u){return ji(u,oo(u))}function hz(u){return u?Wl(Mt(u),-j,j):u===0?u:0}function rn(u){return u==null?"":xo(u)}var gz=Js(function(u,p){if(Wc(p)||ro(p)){ji(p,cr(p),u);return}for(var b in p)an.call(p,b)&&Bc(u,b,p[b])}),OI=Js(function(u,p){ji(p,oo(p),u)}),zp=Js(function(u,p,b,$){ji(p,oo(p),u,$)}),vz=Js(function(u,p,b,$){ji(p,cr(p),u,$)}),yz=ma(qv);function bz(u,p){var b=Zs(u);return p==null?b:iw(b,p)}var Sz=Lt(function(u,p){u=mn(u);var b=-1,$=p.length,A=$>2?p[2]:n;for(A&&Ur(p[0],p[1],A)&&($=1);++b<$;)for(var B=p[b],K=oo(B),Z=-1,se=K.length;++Z1),B}),ji(u,g0(u),b),$&&(b=Wo(b,m|h|g,PF));for(var A=p.length;A--;)s0(b,p[A]);return b});function Fz(u,p){return RI(u,kp(bt(p)))}var Bz=ma(function(u,p){return u==null?{}:fF(u,p)});function RI(u,p){if(u==null)return{};var b=In(g0(u),function($){return[$]});return p=bt(p),Sw(u,b,function($,A){return p($,A[0])})}function zz(u,p,b){p=Qa(p,u);var $=-1,A=p.length;for(A||(A=1,u=n);++$p){var $=u;u=p,p=$}if(b||u%1||p%1){var A=tw();return Or(u+A*(p-u+_3("1e-"+((A+"").length-1))),p)}return i0(u,p)}var Qz=eu(function(u,p,b){return p=p.toLowerCase(),u+(b?NI(p):p)});function NI(u){return N0(rn(u).toLowerCase())}function MI(u){return u=rn(u),u&&u.replace(go,H3).replace(y3,"")}function Zz(u,p,b){u=rn(u),p=xo(p);var $=u.length;b=b===n?$:Wl(Mt(b),0,$);var A=b;return b-=p.length,b>=0&&u.slice(b,A)==p}function Jz(u){return u=rn(u),u&&$t.test(u)?u.replace(ze,j3):u}function e5(u){return u=rn(u),u&&ht.test(u)?u.replace(qe,"\\$&"):u}var t5=eu(function(u,p,b){return u+(b?"-":"")+p.toLowerCase()}),n5=eu(function(u,p,b){return u+(b?" ":"")+p.toLowerCase()}),r5=Dw("toLowerCase");function o5(u,p,b){u=rn(u),p=Mt(p);var $=p?Gs(u):0;if(!p||$>=p)return u;var A=(p-$)/2;return _p(hp(A),b)+u+_p(mp(A),b)}function i5(u,p,b){u=rn(u),p=Mt(p);var $=p?Gs(u):0;return p&&$>>0,b?(u=rn(u),u&&(typeof p=="string"||p!=null&&!R0(p))&&(p=xo(p),!p&&Ks(u))?Za(hi(u),0,b):u.split(p,b)):[]}var f5=eu(function(u,p,b){return u+(b?" ":"")+N0(p)});function p5(u,p,b){return u=rn(u),b=b==null?0:Wl(Mt(b),0,u.length),p=xo(p),u.slice(b,b+p.length)==p}function m5(u,p,b){var $=k.templateSettings;b&&Ur(u,p,b)&&(p=n),u=rn(u),p=zp({},p,$,Vw);var A=zp({},p.imports,$.imports,Vw),B=cr(A),K=Vv(A,B),Z,se,Me=0,Le=p.interpolate||Wn,Be="__p += '",Ze=Wv((p.escape||Wn).source+"|"+Le.source+"|"+(Le===_e?gr:Wn).source+"|"+(p.evaluate||Wn).source+"|$","g"),mt="//# sourceURL="+(an.call(p,"sourceURL")?(p.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++E3+"]")+` -`;u.replace(Ze,function(Et,kt,Ut,wo,Wr,Io){return Ut||(Ut=wo),Be+=u.slice(Me,Io).replace(Zr,V3),kt&&(Z=!0,Be+=`' + -__e(`+kt+`) + -'`),Wr&&(se=!0,Be+=`'; -`+Wr+`; -__p += '`),Ut&&(Be+=`' + -((__t = (`+Ut+`)) == null ? '' : __t) + -'`),Me=Io+Et.length,Et}),Be+=`'; -`;var xt=an.call(p,"variable")&&p.variable;if(!xt)Be=`with (obj) { -`+Be+` -} -`;else if(zn.test(xt))throw new Rt(l);Be=(se?Be.replace(ot,""):Be).replace(Ae,"$1").replace(Ke,"$1;"),Be="function("+(xt||"obj")+`) { -`+(xt?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(Z?", __e = _.escape":"")+(se?`, __j = Array.prototype.join; -function print() { __p += __j.call(arguments, '') } -`:`; -`)+Be+`return __p -}`;var At=LI(function(){return nn(B,mt+"return "+Be).apply(n,K)});if(At.source=Be,_0(At))throw At;return At}function h5(u){return rn(u).toLowerCase()}function g5(u){return rn(u).toUpperCase()}function v5(u,p,b){if(u=rn(u),u&&(b||p===n))return UE(u);if(!u||!(p=xo(p)))return u;var $=hi(u),A=hi(p),B=WE($,A),K=KE($,A)+1;return Za($,B,K).join("")}function y5(u,p,b){if(u=rn(u),u&&(b||p===n))return u.slice(0,XE(u)+1);if(!u||!(p=xo(p)))return u;var $=hi(u),A=KE($,hi(p))+1;return Za($,0,A).join("")}function b5(u,p,b){if(u=rn(u),u&&(b||p===n))return u.replace(en,"");if(!u||!(p=xo(p)))return u;var $=hi(u),A=WE($,hi(p));return Za($,A).join("")}function S5(u,p){var b=P,$=D;if(Nn(p)){var A="separator"in p?p.separator:A;b="length"in p?Mt(p.length):b,$="omission"in p?xo(p.omission):$}u=rn(u);var B=u.length;if(Ks(u)){var K=hi(u);B=K.length}if(b>=B)return u;var Z=b-Gs($);if(Z<1)return $;var se=K?Za(K,0,Z).join(""):u.slice(0,Z);if(A===n)return se+$;if(K&&(Z+=se.length-Z),R0(A)){if(u.slice(Z).search(A)){var Me,Le=se;for(A.global||(A=Wv(A.source,rn(Dn.exec(A))+"g")),A.lastIndex=0;Me=A.exec(Le);)var Be=Me.index;se=se.slice(0,Be===n?Z:Be)}}else if(u.indexOf(xo(A),Z)!=Z){var Ze=se.lastIndexOf(A);Ze>-1&&(se=se.slice(0,Ze))}return se+$}function C5(u){return u=rn(u),u&&at.test(u)?u.replace(Ue,q3):u}var x5=eu(function(u,p,b){return u+(b?" ":"")+p.toUpperCase()}),N0=Dw("toUpperCase");function AI(u,p,b){return u=rn(u),p=b?n:p,p===n?W3(u)?J3(u):D3(u):u.match(p)||[]}var LI=Lt(function(u,p){try{return So(u,n,p)}catch(b){return _0(b)?b:new Rt(b)}}),E5=ma(function(u,p){return jo(p,function(b){b=Vi(b),fa(u,b,$0(u[b],u))}),u});function w5(u){var p=u==null?0:u.length,b=bt();return u=p?In(u,function($){if(typeof $[1]!="function")throw new Vo(a);return[b($[0]),$[1]]}):[],Lt(function($){for(var A=-1;++Aj)return[];var b=W,$=Or(u,W);p=bt(p),u-=W;for(var A=jv($,p);++b0||p<0)?new Ht(b):(u<0?b=b.takeRight(-u):u&&(b=b.drop(u)),p!==n&&(p=Mt(p),b=p<0?b.dropRight(-p):b.take(p-u)),b)},Ht.prototype.takeRightWhile=function(u){return this.reverse().takeWhile(u).reverse()},Ht.prototype.toArray=function(){return this.take(W)},Hi(Ht.prototype,function(u,p){var b=/^(?:filter|find|map|reject)|While$/.test(p),$=/^(?:head|last)$/.test(p),A=k[$?"take"+(p=="last"?"Right":""):p],B=$||/^find/.test(p);A&&(k.prototype[p]=function(){var K=this.__wrapped__,Z=$?[1]:arguments,se=K instanceof Ht,Me=Z[0],Le=se||Pt(K),Be=function(kt){var Ut=A.apply(k,Ka([kt],Z));return $&&Ze?Ut[0]:Ut};Le&&b&&typeof Me=="function"&&Me.length!=1&&(se=Le=!1);var Ze=this.__chain__,mt=!!this.__actions__.length,xt=B&&!Ze,At=se&&!mt;if(!B&&Le){K=At?K:new Ht(this);var Et=u.apply(K,Z);return Et.__actions__.push({func:Mp,args:[Be],thisArg:n}),new Uo(Et,Ze)}return xt&&At?u.apply(this,Z):(Et=this.thru(Be),xt?$?Et.value()[0]:Et.value():Et)})}),jo(["pop","push","shift","sort","splice","unshift"],function(u){var p=ip[u],b=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",$=/^(?:pop|shift)$/.test(u);k.prototype[u]=function(){var A=arguments;if($&&!this.__chain__){var B=this.value();return p.apply(Pt(B)?B:[],A)}return this[b](function(K){return p.apply(Pt(K)?K:[],A)})}}),Hi(Ht.prototype,function(u,p){var b=k[p];if(b){var $=b.name+"";an.call(Qs,$)||(Qs[$]=[]),Qs[$].push({name:p,func:b})}}),Qs[$p(n,y).name]=[{name:"wrapper",func:n}],Ht.prototype.clone=C4,Ht.prototype.reverse=x4,Ht.prototype.value=E4,k.prototype.at=ZB,k.prototype.chain=JB,k.prototype.commit=e6,k.prototype.next=t6,k.prototype.plant=r6,k.prototype.reverse=o6,k.prototype.toJSON=k.prototype.valueOf=k.prototype.value=i6,k.prototype.first=k.prototype.head,Ac&&(k.prototype[Ac]=n6),k},Xs=e4();Hl?((Hl.exports=Xs)._=Xs,Av._=Xs):yr._=Xs}).call(Xc)})(_ce,Nr);var ln=(e=>(e[e.INITIAL=0]="INITIAL",e[e.BUSY=1]="BUSY",e[e.WAIT_INPUT=2]="WAIT_INPUT",e[e.FREE=3]="FREE",e[e.STATIC_CHECK_FAILED=4]="STATIC_CHECK_FAILED",e[e.RUNTIME_ERROR=5]="RUNTIME_ERROR",e[e.MAX_STEP_REACHED=6]="MAX_STEP_REACHED",e[e.EXITED_NORMALLY=7]="EXITED_NORMALLY",e[e.EXITED_ABNORMALLY=8]="EXITED_ABNORMALLY",e))(ln||{});const Rce={instructions:[],text:[],memory:new Uint8Array},IT={total:0,stack:0,globalVariable:0},$T={labelTable:{},functionTable:{},globalVariableTable:{},variableTableStack:[],assignCallLValueStack:[]},OT={stepCount:0,state:0,callStack:[],staticErrorTable:{},runtimeErrorTable:{}};var Ji=(e=>(e[e.SUCCESS=0]="SUCCESS",e[e.ERROR=1]="ERROR",e[e.WARNING=2]="WARNING",e[e.NORMAL=3]="NORMAL",e[e.PROMPT=4]="PROMPT",e[e.ARROW=5]="ARROW",e))(Ji||{});const Ii={maxExecutionStepCount:{min:0,max:999999999},memorySize:{min:1024,max:16*1024*1024},stackSize:{min:512,max:16*1024*1024-1024}},_T={maxExecutionStepCount:1e6,memorySize:16*1024,stackSize:8*1024};class f3{constructor(){Xn(this,"initialRegisters",{eax:0,ebx:0,ecx:0,edx:0,ebp:0,esp:_T.memorySize,eip:0});Xn(this,"decoder",new Oce);Xn(this,"memory",Nr.cloneDeep(Rce));Xn(this,"registers",Nr.cloneDeep(this.initialRegisters));Xn(this,"tables",Nr.cloneDeep($T));Xn(this,"executionStatus",Nr.cloneDeep(OT));Xn(this,"peakMemoryUsage",Nr.cloneDeep(IT));Xn(this,"options",Nr.cloneDeep(_T));Xn(this,"executionStartTime",new Date);Xn(this,"writeBuffer",[]);Xn(this,"readConsole",t=>Promise.resolve(""));Xn(this,"entryFunctionName","main")}setReadConsoleFn(t){this.readConsole=t}getSingleVariableValues(t){const n=[];for(let r=t.address;r<_o(t.address,t.size);r=_o(r,4)){const o=wT(r,this.memory.memory);o.status===ZC.OUT_OF_BOUND?n.push(NaN):n.push(o.value)}return n}getSingleTableVariableDetails(t){const n=[];for(const r in t)n.push({id:r,address:t[r].address,size:t[r].size,values:this.getSingleVariableValues(t[r])});return n}get canContinueExecution(){return this.executionStatus.state===0||this.executionStatus.state===3||this.executionStatus.state===7||this.executionStatus.state===8}get currentLineNumber(){return this.registers.eip<0||this.registers.eip>=this.memory.text.length?-1:this.memory.text[this.registers.eip].lineNumber}get globalVariableDetails(){return this.getSingleTableVariableDetails(this.tables.globalVariableTable)}get localVariableDetailsStack(){const t=[];for(let n=0;n(r=Math.max(r,o.min),r=Math.min(r,o.max),r);t.maxExecutionStepCount!==void 0&&(t.maxExecutionStepCount=n(t.maxExecutionStepCount,Ii.maxExecutionStepCount),this.options.maxExecutionStepCount=t.maxExecutionStepCount),t.memorySize!==void 0&&(t.memorySize=n(t.memorySize,Ii.memorySize),t.memorySize=n(t.memorySize,{min:this.options.stackSize,max:Ii.memorySize.max}),this.options.memorySize=t.memorySize,this.initialRegisters.esp=ao(t.memorySize),this.registers.esp=ao(t.memorySize),this.updatePeakMemoryUsage()),t.stackSize!==void 0&&(t.stackSize=n(t.stackSize,Ii.stackSize),t.stackSize=n(t.stackSize,{min:Ii.stackSize.min,max:this.options.memorySize}),this.options.stackSize=t.stackSize)}reset(){this.memory.text=[],this.memory.memory=new Uint8Array,this.registers=Nr.cloneDeep(this.initialRegisters),this.tables=Nr.cloneDeep($T),this.executionStatus=Nr.cloneDeep(OT),this.peakMemoryUsage=Nr.cloneDeep(IT),this.writeBuffer=[]}loadNewInstructions(t){this.reset(),this.memory.instructions=t}decodeInstructions(){for(let t=0;tr;case os.GE:return n>=r}}async executeSingleStep(){if((this.executionStatus.state===7||this.executionStatus.state===8)&&this.reset(),this.executionStatus.state===0&&this.prepareExcution(),this.executionStatus.state!==3)return;if(this.executionStatus.state=1,this.options.maxExecutionStepCount>0&&this.executionStatus.stepCount>=this.options.maxExecutionStepCount){this.executionStatus.state=6,this.writeBuffer.push([{key:"MAX_STEP_REACHED",values:{maxExecutionStepCount:this.options.maxExecutionStepCount},type:1}]);return}if(this.registers.eip>=this.memory.text.length||this.registers.eip<0){this.executionStatus.state=5,this.writeBuffer.push([{key:"RUNTIME_ERROR_PREFIX_NO_LN",type:1},{key:"INSTRUCTION_READ_OUT_OF_BOUND",values:{address:this.registers.eip},type:1}]);return}this.executionStatus.stepCount++;const t=this.memory.text[this.registers.eip];switch(t.type){case Pr.ARG:{const n=this.getSingularValue(t.value.value);if(n===null||!this.pushl(n))return;this.registers.ecx=_o(this.registers.ecx,4);break}case Pr.ASSIGN:{const n=this.getRValue(t.value.rValue);if(n===null)return;const r=this.getLValueAddress(t.value.lValue);if(r===null||!this.storeMemory32(n,r))return;break}case Pr.ASSIGN_CALL:case Pr.CALL:{const n=t.type===Pr.CALL?t.value.id:t.value.functionId;if(!(n in this.tables.functionTable)){this.writeRuntimeError({key:"FUNCTION_NOT_FOUND",values:{id:n}});return}if(this.registers.ebx=this.registers.esp,!this.pushl(this.registers.ecx)||(this.registers.ecx=0,!this.pushl(this.registers.eip))||!this.pushl(this.registers.ebp))return;this.registers.ebp=this.registers.esp,t.type===Pr.ASSIGN_CALL?this.tables.assignCallLValueStack.push(t.value.lValue):this.tables.assignCallLValueStack.push(null),this.tables.variableTableStack.push({}),this.executionStatus.callStack.push(n),this.registers.eip=this.tables.functionTable[n].addressBefore;break}case Pr.DEC:{if(this.createStackVariable(t.value.id,t.value.size)===null)return;break}case Pr.GOTO:{const n=t.value.id;if(!(n in this.tables.labelTable)){this.writeRuntimeError({key:"LABEL_NOT_FOUND",values:{id:n}});return}this.registers.eip=this.tables.labelTable[n].addressBefore;break}case Pr.IF:{const n=this.getCondValue(t.value.condition);if(n===null)return;const r=t.value.gotoId;if(!(r in this.tables.labelTable)){this.writeRuntimeError({key:"LABEL_NOT_FOUND",values:{id:r}});return}n&&(this.registers.eip=this.tables.labelTable[r].addressBefore);break}case Pr.PARAM:{const n=t.value.id;if(n in this.tables.variableTableStack[this.tables.variableTableStack.length-1]){this.writeRuntimeError({key:"DUPLICATE_PARAM_ID",values:{id:n}});return}if(this.loadMemory32(this.registers.ebx)===null)return;this.tables.variableTableStack[this.tables.variableTableStack.length-1][n]={address:this.registers.ebx,size:4},this.registers.ebx=_o(this.registers.ebx,4);break}case Pr.RETURN:{const n=this.getSingularValue(t.value.value);if(n===null)return;this.registers.eax=n,this.registers.esp=this.registers.ebp,this.updatePeakMemoryUsage();const r=this.popl();if(r===null)return;this.registers.ebp=r;const o=this.popl();if(o===null)return;this.registers.eip=o;const i=this.popl();if(i===null)return;if(this.registers.esp=_o(this.registers.esp,i),this.updatePeakMemoryUsage(),this.registers.ecx=0,this.tables.variableTableStack.length===0){this.writeRuntimeError({key:"EMPTY_VARIABLE_TABLE_STACK"});return}if(this.executionStatus.callStack.pop(),this.tables.variableTableStack.pop(),this.registers.eip===this.memory.text.length){this.finalizeExcution();return}const a=this.tables.assignCallLValueStack.pop();if(a!==null){const l=this.getLValueAddress(a);if(l===null||!this.storeMemory32(this.registers.eax,l))return}break}case Pr.READ:{const n=t.value,r=this.getLValueAddress(n.lValue);if(r===null)return;const o=n.lValue.type===Cd.ID?n.lValue.id:"*"+n.lValue.id;this.executionStatus.state=2;const i=await this.readConsole([{key:"READ_PROMPT",values:{name:o}}]);this.executionStatus.state=1;const a=parseInt(i);if(isNaN(a)){this.writeRuntimeError({key:"INPUT_INT_ILLEGAL"});return}if(!Number.isSafeInteger(a)){this.writeRuntimeError({key:"INPUT_INT_ABS_TOO_LARGE"});return}if(!this.storeMemory32(ao(a),r))return;break}case Pr.WRITE:{const n=this.getSingularValue(t.value.value);if(n===null)return;this.writeBuffer.push([{key:"WRITE_OUTPUT",values:{value:n},type:3}]);break}}for(this.registers.eip=_o(this.registers.eip,1);this.registers.eip=0&&this.memory.text[this.registers.eip].type===Pr.GLOBAL_DEC;)this.registers.eip=_o(this.registers.eip,1);this.executionStatus.state=3}async execute(){for(;await this.executeSingleStep(),this.executionStatus.state===3;);}}function Tce(e,t=18){let n=0,r=0;for(let o=0;ot){n=o;break}return r<=t?e:e.substring(0,n)+"..."}function Pce(e){for(let t=1;;t++){const n=`Untitled-${t}`;if(e.every(r=>r!==n))return n}}function e1(e){return e.replace(/\r/g,"").split(` -`)}function hb(e){return e/1024}function Nce(e,t){return e",READ_INPUT:"{value}",PROGRAM_EXITED:"程序执行结束,返回值为{returnValue}。",EXECUTION_STEP_COUNT_TIME:"总执行步数:{stepCount, number};总执行耗时:{time, number}ms"},Lce={APP_TITLE:"IR Virtual Machine",ADD:"New",IMPORT:"Import",DEMOS:"Demos",DEMO_SOURCES:"Sources",SAVE:"Save",THEME:"Theme",ABOUT:"About",CLOSE:"Close",CONFIRM_UNSAVED_CLOSE:"Save changes to {name} before close?",SAVE_CLOSE:"Save&Close",UNSAVE_CLOSE:"Close",OK:"OK",CANCEL:"Cancel",EMPTY_PLACEHOLDER:"No VM open. Try adding or importing an IR file! :)",EMPTY_PLACEHOLDER_SUPPORT_DRAG:"You may also drag multiple .ir files inside.",FETCH_FAILED:"fetch() for {url} failed",NOT_AN_IR_FILE:"{fileName} is not an ir file",IR_IMPORT_FAILED:"Failed to import {fileName}",RUN:"Run",RUN_STEP:"Step",RESET:"Reset",CLEAR_CONSOLE:"Clear",STEP_COUNT:"Step Count: ",STEP_COUNT_NUMBER:"{stepCount, number}",STATE:"VM State: ",STATE_INITIAL:"Initial",STATE_BUSY:"Busy",STATE_WAIT_INPUT:"Awaiting Input",STATE_FREE:"Free",STATE_STATIC_CHECK_FAILED:"IR Static Check Error",STATE_RUNTIME_ERROR:"Runtime Error",STATE_MAX_STEP_REACHED:"Max Step Count Reached",STATE_EXITED_NORMALLY:"Exited Normally(Return value 0)",STATE_EXITED_ABNORMALLY:"Exited Abnormally(Return value not 0)",MAX_EXECUTION_STEP_COUNT:"Max Steps",SET_0_MEANS_NO_STEP_LIMIT:"No step limit if set to 0",MEMORY_SIZE:"Memory Size/B",STACK_SIZE:"Stack Size/B",TOTAL_MEMORY_USAGE:"Total Memory Usage: ",STACK_MEMORY_USAGE:"Stack Memory Usage: ",GLOBAL_VARIABLE_MEMORY_USAGE:"GlobalVar Memory Usage: ",PEAK_MEMORY_USAGE:"Peak Usage: ",PERCENTAGE_USAGE:"{percentage, number, ::.0}%",B_USAGE:"{used}B/{total}B",KB_USAGE:"{used, number, ::.0}KB/{total, number, ::.0}KB",BYTES:"{bytes}B",KB:"{kb, number, ::.0}KB",GLOBAL_VARIABLE_TABLE:"Global Variable Table",LOCAL_VARIABLE_TABLE:"Local Variable Table",VARIABLE_ID:"ID",ADDRESS:"Address",SIZE:"Size",VALUES:"Value",EMPTY_VATIABLE_TABLE:"(Empty)",CALL_STACK_DEPTH:"Call stack depth {depth}",STATIC_ERROR_PREFIX:"Static Check Error: ",DECODE_ERROR_PREFIX:"IR Decoding Error(Line {lineNumber}): ",UNRECOGNIZED_INSTRUCTION:"Unrecognized IR instruction",ILLEGAL_INSTRUCTION_FORMAT:"Illegal IR format",FUNCTION_ILLEGAL_ID:"FUNCTION id illegal",ASSIGN_ILLEGAL_LEFT:"Illegal left hand side of assignment",ASSIGN_ILLEGAL_RIGHT:"Illegal right hand side of assignment",ASSIGN_RIGHT_IMM_TOO_LARGE:"Right hand side immediate number of assignment too large",ASSIGN_ILLEGAL_RIGHT_OPERATOR:"Illegal math operator on RHS of assignment",ASSIGN_ILLEGAL_RIGHT_OPERAND1:"Illegal first Singular operand on RHS of assignment",ASSIGN_RIGHT_OPERAND1_IMM_TOO_LARGE:"First immediate number operand on RHS of assignment too large",ASSIGN_ILLEGAL_RIGHT_OPERAND2:"Illegal second Singular operand on RHS of assignment",ASSIGN_RIGHT_OPERAND2_IMM_TOO_LARGE:"Second immediate number operand on RHS of assignment too large",DEC_ILLEGAL_ID:"DEC's id illegal",DEC_ILLEGAL_SIZE_FORMAT:"DEC's size format illegal",DEC_SIZE_TOO_LARGE:"DEC's size too large",DEC_SIZE_NOT_4_MULTIPLE:"DEC's size not a multiple of 4",GLOBAL_DEC_ILLEGAL_ID:"GLOBAL_DEC's id illegal",GLOBAL_DEC_ILLEGAL_SIZE_FORMAT:"GLOBAL_DEC's size format illegal",GLOBAL_DEC_SIZE_TOO_LARGE:"GLOBAL_DEC's size too large",GLOBAL_DEC_SIZE_NOT_4_MULTIPLE:"GLOBAL_DEC's size not a multiple of 4",LABEL_ILLEGAL_ID:"LABEL's id illegal",GOTO_ILLEGAL_ID:"GOTO's id illegal",IF_ILLEGAL_COND_OPERATOR:"IF's relop illegal",IF_ILLEGAL_COND_OPERAND1:"IF's first Singular operand in condition illegal",IF_COND_OPERAND1_IMM_TOO_LARGE:"IF's first immediate number operand in condition too large",IF_ILLEGAL_COND_OPERAND2:"IF's second Singular operand in condition illegal",IF_COND_OPERAND2_IMM_TOO_LARGE:"IF's second immediate number operand in condition too large",IF_ILLEGAL_GOTO_ID:"IF's GOTO id illegal",ARG_ILLEGAL:"ARG's Singular arg illegal",ARG_IMM_TOO_LARGE:"ARG's immediate number arg too large",CALL_ILLEGAL_ID:"CALL's function id illegal",PARAM_ILLEGAL_ID:"PARAM's param id illegal",RETURN_ILLEGAL:"RETURN's Singular return value illegal",RETURN_IMM_TOO_LARGE:"RETURN's immediate number return value too large",READ_ILLEGAL:"Illegal LValue for READ",WRITE_ILLEGAL:"Illegal Singular for WRITE",WRITE_IMM_TOO_LARGE:"Immediate number for WRITE too large",NO_MAIN_FUNCTION:"Function main is not defined",RUNTIME_ERROR_PREFIX:"Runtime Error(Line{lineNumber}): ",RUNTIME_ERROR_PREFIX_NO_LN:"Runtime Error: ",GLOBAL_VARIABLE_SEGMENT_OVERFLOW:"Global variable segment overflow",STACK_OVERFLOW:"Stack overflow",VARIABLE_NOT_FOUND:"Can't find variable {id}",FUNCTION_NOT_FOUND:"Can't find function {id}",LABEL_NOT_FOUND:"Can't find label {id}",INSTRUCTION_READ_OUT_OF_BOUND:"Reading instruction from {address} is out of bound",MEMORY_READ_OUT_OF_BOUND:"Reading 4 bytes from {address} is out of bound",MEMORY_WRITE_OUT_OF_BOUND:"Writing 4 bytes to {address} is out of bound",EMPTY_VARIABLE_TABLE_STACK:"Empty local variable stack",DUPLICATE_DEC_ID:"DEC's variable id already declared",DUPLICATE_GLOBAL_DEC_ID:"GLOBAL_DEC's global variable id already declared",DUPLICATE_PARAM_ID:"PARAM's param id already declared",DIVIDE_BY_ZERO:"Cannot divide by 0",MAX_STEP_REACHED:"Maximum execution step count reached({maxExecutionStepCount, number})",INPUT_INT_ILLEGAL:"Illegal input integer",INPUT_INT_ABS_TOO_LARGE:"Absolute value of input integer too large",WRITE_OUTPUT:"{value}",READ_PROMPT:"Please enter a value for {name}:",CONSOLE_ARROW:">",READ_INPUT:"{value}",PROGRAM_EXITED:"Program exited with return value {returnValue}.",EXECUTION_STEP_COUNT_TIME:"Execution step count: {stepCount, number}; Execution time: {time, number}ms"},nh=[{name:"简体中文",locale:Ace},{name:"English",locale:Lce}],Dce={currentLocale:nh[0].locale},p3=RE({name:"locale",initialState:Dce,reducers:{setLocale:(e,t)=>{e.currentLocale=t.payload}}}),{setLocale:kce}=p3.actions,Fce=p3.reducer,t1=[{name:"Light",className:"themeLight"}],Bce={currentClassName:t1[0].className},m3=RE({name:"theme",initialState:Bce,reducers:{setTheme:(e,t)=>{e.currentClassName=t.payload}}}),{setTheme:zce}=m3.actions,Hce=m3.reducer,RT="demos.json",h3=(e,t)=>{const n=URL.createObjectURL(new Blob([t],{type:"text/plain"})),r=document.createElement("a");r.href=n,r.download=e.endsWith(".ir")?e:`${e}.ir`,r.click(),URL.revokeObjectURL(n)},g3=(e,t,n,r)=>{const o=new f3;r!==void 0&&o.configure(r),on.add(o);const i=e1(n);on.at(on.length-1).loadNewInstructions(i),e(i3({name:t,irPath:"",isIrChanged:!1,irString:n,irSelection:{start:0,end:0},state:o.state,globalVariableDetails:o.globalVariableDetails,localVariableDetailsStack:o.localVariableDetailsStack,options:o.currentOptions,stepCount:o.stepCount,memoryUsage:o.memoryUsage,peakMemoryUsage:o.currentPeakMemoryUsage,consoleOutputs:[],consoleInputPrompt:[],consoleInput:"",staticErrorTable:o.staticErrorTable,runtimeErrorTable:o.runtimeErrorTable,currentLineNumber:o.currentLineNumber,shouldIndicateCurrentLineNumber:!1,scrollHeights:{irEditor:0,vmInspector:0},localVariableTablePageIndex:1}))},v3=(e,t,n)=>{if(!n.name.endsWith(".ir")){eg.error(t.formatMessage({id:"NOT_AN_IR_FILE"},{fileName:n.name}));return}const r=new FileReader;r.readAsText(n),r.onload=o=>{if(o.target===null){eg.error(t.formatMessage({id:"IR_IMPORT_FAILED"},{fileName:n.name})),document.getElementById("inImportIr").value="";return}g3(e,n.name,o.target.result)}},jce=e=>{const t=mo(),n=wc(),r=cc(f=>Pce(f.vm.vmPageStates.map(m=>m.name))),[o,i]=c.useState(!1),[a,l]=c.useState(!1),[s,d]=c.useState([]);return c.useEffect(()=>{a&&fetch(RT).then(f=>f.ok?f.text():Promise.reject()).catch(()=>{eg.error(t.formatMessage({id:"FETCH_FAILED"},{url:RT}))}).then(f=>{if(!f)return;const m=JSON.parse(f);d(m.map((h,g)=>({key:`g${g}`,icon:me(BK,{}),label:`${h.groupName} (${h.demos.length})`,children:[{key:`g${g}i`,label:me(Zm,{itemLayout:"horizontal",size:"small",dataSource:h.demos,renderItem:v=>me(Zm.Item,{onClick:()=>{fetch(v.irUrl).then(C=>C.ok?C.text():Promise.reject()).catch(()=>{eg.error(t.formatMessage({id:"FETCH_FAILED"},{url:v.irUrl}))}).then(C=>{C&&(g3(n,v.irUrl.split("/").at(-1),C,v.vmOptions),l(!1))})},children:me(Zm.Item.Meta,{avatar:me(Fte,{icon:me(FO,{})}),title:v.name,description:v.remark})})})}]})))})},[a]),St("aside",{className:iu.asideSideBarWrapper,children:[St("div",{className:iu.divIconWrapperUpper,children:[me(Zl,{icon:me(qW,{}),label:t.formatMessage({id:"ADD"}),onClick:()=>{const f=new f3;on.add(f),n(i3({name:r,irPath:"",isIrChanged:!1,irString:"",irSelection:{start:0,end:0},state:f.state,globalVariableDetails:f.globalVariableDetails,localVariableDetailsStack:f.localVariableDetailsStack,options:f.currentOptions,stepCount:f.stepCount,memoryUsage:f.memoryUsage,peakMemoryUsage:f.currentPeakMemoryUsage,consoleOutputs:[],consoleInputPrompt:[],consoleInput:"",staticErrorTable:f.staticErrorTable,runtimeErrorTable:f.runtimeErrorTable,currentLineNumber:f.currentLineNumber,shouldIndicateCurrentLineNumber:!1,scrollHeights:{irEditor:0,vmInspector:0},localVariableTablePageIndex:1}))}}),me(Zl,{icon:me(FO,{}),label:t.formatMessage({id:"DEMOS"}),onClick:()=>l(!0)}),me(Zl,{icon:me(PM,{}),label:t.formatMessage({id:"IMPORT"}),onClick:()=>{var f;(f=document.getElementById("inImportIr"))==null||f.click()}}),me("input",{id:"inImportIr",style:{display:"none"},type:"file",accept:".ir",multiple:!0,onChange:f=>{if(!(f.currentTarget===null||f.currentTarget.files===null||f.currentTarget.files.length===0)){for(const m of f.target.files)v3(n,t,m);document.getElementById("inImportIr").value=""}}}),me(Zl,{icon:me(AK,{}),label:t.formatMessage({id:"SAVE"}),onClick:()=>{e.vm!==null&&(h3(e.vm.name,e.vm.irString),n(a3(!1)))}})]}),St("div",{className:iu.divIconWrapperLower,children:[me(Ef,{menu:{items:nh.map((f,m)=>({key:m,label:f.name})),onClick:f=>{n(kce(nh[parseInt(f.key)].locale)),document.title=nh[parseInt(f.key)].locale.APP_TITLE}},placement:"topLeft",children:me(PC,{children:me(Zl,{icon:me(WK,{}),label:"Lang"})})}),me(Ef,{menu:{items:t1.map((f,m)=>({key:m,label:f.name})),onClick:f=>{n(zce(t1[parseInt(f.key)].className))}},placement:"topLeft",children:me(PC,{children:me(Zl,{icon:me(IM,{}),label:t.formatMessage({id:"THEME"})})})}),me(Zl,{icon:me(FM,{}),label:t.formatMessage({id:"ABOUT"}),onClick:()=>i(!0)})]}),me(kC,{open:o,title:t.formatMessage({id:"ABOUT"}),centered:!0,closable:!1,onCancel:()=>i(!1),footer:[me(ri,{onClick:()=>i(!1),children:t.formatMessage({id:"OK"})})],children:St("article",{className:iu.articleAbout,children:[me("p",{className:"title",children:"IR虚拟机💎IR Virtual Machine"}),St("p",{children:[me("div",{children:"哈尔滨工业大学 120L021615 崔子健"}),me("div",{children:"Ernest Cui, Harbin Institute of Technology"})]}),me("p",{children:"April 🌼 2023"}),St("p",{children:[me("div",{children:"🎉 感谢陈鄞、单丽莉老师的大力支持"}),me("div",{children:"㊙️ 虚拟机的说明请见仓库首页的文档"})]}),St("p",{className:"info",children:[me("a",{href:"https://ernestthepoet.github.io/ir-virtual-machine/",children:"Github Pages镜像"}),"·",me("a",{href:"https://ecui.gitee.io/ir-virtual-machine/",children:"Gitee Pages镜像"})]}),St("p",{className:"info",children:[me("a",{href:"https://github.com/ErnestThePoet/ir-virtual-machine",children:"Github仓库"}),"·",me("a",{href:"https://gitee.com/ecui/ir-virtual-machine",children:"Gitee仓库"}),"·",me("a",{href:"mailto: ecuiships@126.com",children:"ecuiships@126.com"})]})]})}),me(kC,{open:a,title:St("span",{children:[t.formatMessage({id:"DEMOS"}),St("a",{className:iu.aDemoSources,href:"https://github.com/ErnestThePoet/ir-virtual-machine/tree/master/public/demos",children:["(",t.formatMessage({id:"DEMO_SOURCES"}),")"]})]}),centered:!0,closable:!0,onCancel:()=>l(!1),footer:!0,children:me(rE,{className:iu.menuDemos,mode:"inline",selectable:!1,items:s})})]})},Vce="_navTabBarWrapper_1yoxc_1",Uce={navTabBarWrapper:Vce},Wce="_divTabBarItemWrapperBase_11raq_1",Kce="_divTabBarItemWrapperActive_11raq_1",Gce="_divTabBarItemWrapperInactive_11raq_1",Xce="_divIconTitleWrapper_11raq_23",Yce="_divCloseWrapper_11raq_28",qce="_divCloseWrapperChanged_11raq_28",Qce="_iconVm_11raq_53",Zce="_iconClose_11raq_60",Jce="_lblTitle_11raq_65",ede="_iconDot_11raq_71",tde="_inVmRename_11raq_78",Wi={divTabBarItemWrapperBase:Wce,divTabBarItemWrapperActive:Kce,divTabBarItemWrapperInactive:Gce,divIconTitleWrapper:Xce,divCloseWrapper:Yce,divCloseWrapperChanged:qce,iconVm:Qce,iconClose:Zce,lblTitle:Jce,iconDot:ede,inVmRename:tde},nde=e=>St("svg",{...e,version:"1.1",id:"layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 50 50",enableBackground:"new 0 0 50 50",children:[St("g",{children:[me("path",{d:"M14.16,36.09L7.2,13.91h2.06l6.27,20.5h0.19l6.27-20.5h2.06l-6.95,22.19H14.16z"}),me("path",{d:`M27.25,36.09V13.91h1.94v22.19H27.25z M33.31,26.2l-3.89-10.06h-0.55v-2.23h1.55l3.89,10.17h0.08l0.23,2.13H33.31z\r - M34.06,26.2l0.3-2.13h0.08l3.89-10.17h1.73v2.23h-0.73L35.44,26.2H34.06z M39.56,36.09V13.91h1.94v22.19H39.56z`})]}),me("g",{children:me("path",{fill:"none",strokeWidth:"2",strokeMiterlimit:"10",d:`M1.5,36.5c0,3.87,3.13,7,7,7h33c3.87,0,7-3.13,7-7\r - v-22c0-3.87-3.13-7-7-7h-33c-3.87,0-7,3.13-7,7V36.5z`})}),me("g",{}),me("g",{}),me("g",{}),me("g",{}),me("g",{}),me("g",{}),me("g",{}),me("g",{}),me("g",{}),me("g",{}),me("g",{})]}),rde=e=>St("svg",{...e,version:"1.1",id:"layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 50 50",enableBackground:"new 0 0 50 50",children:[me("circle",{cx:"25",cy:"25",r:"25"}),me("g",{}),me("g",{}),me("g",{}),me("g",{}),me("g",{}),me("g",{}),me("g",{}),me("g",{}),me("g",{}),me("g",{}),me("g",{})]}),ode=e=>{const t=mo(),[n,r]=c.useState(!1),[o,i]=c.useState(e.title);return c.useEffect(()=>{if(n){const a=document.getElementById("inVmRename");a!==null&&(a.focus(),a.select())}},[n]),St("div",{className:te({[Wi.divTabBarItemWrapperActive]:e.isActive,[Wi.divTabBarItemWrapperInactive]:!e.isActive}),onClick:a=>{a.stopPropagation(),e.onClick()},title:e.title,onDoubleClick:()=>{i(e.title),r(!0)},children:[St("div",{className:Wi.divIconTitleWrapper,children:[me(nde,{className:Wi.iconVm}),n?me("input",{id:"inVmRename",className:Wi.inVmRename,value:o,onChange:a=>i(a.currentTarget.value),onKeyDown:a=>{a.key==="Enter"&&(e.onRename(o),r(!1))},onBlur:()=>{e.onRename(o),r(!1)}}):me("label",{className:Wi.lblTitle,children:Tce(e.title)})]}),St("div",{className:te({[Wi.divCloseWrapperChanged]:e.isChanged,[Wi.divCloseWrapper]:!e.isChanged}),title:t.formatMessage({id:"CLOSE"}),onClick:a=>{a.stopPropagation(),e.onCloseClick()},children:[e.isChanged&&me(rde,{className:Wi.iconDot}),me(Lf,{className:Wi.iconClose})]})]})},ide=()=>{var s;const e=mo(),t=cc(d=>d.vm),n=wc(),[r,o]=c.useState(!1),[i,a]=c.useState(0),l=d=>{n(dce(d)),on.delete(d)};return St("nav",{className:Uce.navTabBarWrapper,children:[t.vmPageStates.map((d,f)=>me(ode,{title:d.name,isActive:f===t.activeVmIndex,isChanged:d.isIrChanged,onClick:()=>n(uce(f)),onCloseClick:()=>{if(!d.isIrChanged){l(f);return}a(f),o(!0)},onRename:m=>{m!==""&&n(cce({index:f,newName:m}))}},f)),me(kC,{open:r,title:e.formatMessage({id:"CONFIRM_UNSAVED_CLOSE"},{name:(s=t.vmPageStates[i])==null?void 0:s.name}),onCancel:()=>o(!1),footer:[me(ri,{onClick:()=>o(!1),children:e.formatMessage({id:"CANCEL"})}),me(ri,{danger:!0,onClick:()=>{l(i),o(!1)},children:e.formatMessage({id:"UNSAVE_CLOSE"})}),me(ri,{type:"primary",onClick:()=>{h3(t.vmPageStates[t.activeVmIndex].name,t.vmPageStates[t.activeVmIndex].irString),l(i),o(!1)},children:e.formatMessage({id:"SAVE_CLOSE"})})]})]})},ade="_divEmptyHolder_1bjxs_9",lde="_divEmptyHolderText_1bjxs_20",TT={divEmptyHolder:ade,divEmptyHolderText:lde,"scale-in":"_scale-in_1bjxs_1"},sde=()=>{const e=mo();return me("div",{className:TT.divEmptyHolder,children:St("div",{className:TT.divEmptyHolderText,children:[me("span",{children:e.formatMessage({id:"EMPTY_PLACEHOLDER"})}),!Mce()&&me("span",{children:e.formatMessage({id:"EMPTY_PLACEHOLDER_SUPPORT_DRAG"})})]})})},ude="_divIrEditorWrapper_1neoh_1",cde="_divLineNumberWrapper_1neoh_33",dde="_lblLineNumberBase_1neoh_41",fde="_lblLineNumberIndication_1neoh_41",pde="_lblLineNumberNormal_1neoh_41",mde="_divIrWrapper_1neoh_53",hde="_taIr_1neoh_79",bu={divIrEditorWrapper:ude,divLineNumberWrapper:cde,lblLineNumberBase:dde,lblLineNumberIndication:fde,lblLineNumberNormal:pde,divIrWrapper:mde,taIr:hde},gde="_divLineHighlighterWrapper_dmzcx_9",vde="_divLineHighlighterBase_dmzcx_16",yde="_divLineHighlighterError_dmzcx_16",PT={divLineHighlighterWrapper:gde,divLineHighlighterBase:vde,divLineHighlighterError:yde,"fade-in":"_fade-in_dmzcx_1"},NT=e=>me("div",{className:PT.divLineHighlighterWrapper,children:me("div",{className:te({[PT.divLineHighlighterError]:e.type==="ERROR"}),title:e.title})}),bde=e=>{const t=mo(),n=c.useRef(null),r=c.useRef(null),o=wc(),i=c.useMemo(()=>e1(e.vm.irString),[e.vm.irString]);c.useEffect(()=>{var l,s,d;e.vm.state!==ln.WAIT_INPUT&&((l=r.current)==null||l.focus({preventScroll:!0}),(s=r.current)==null||s.setSelectionRange(e.vm.irSelection.start,e.vm.irSelection.end)),(d=n.current)==null||d.scrollTo(0,e.vm.scrollHeights.irEditor)},[e.vm.id,e.vm.irSelection.start,e.vm.irSelection.end]);const a=l=>{on.at(e.vmIndex).loadNewInstructions(e1(l)),yl(o,e.vm.id),o(l3({total:0,stack:0,globalVariable:0})),o(fce(l)),o(a3(!0))};return St("div",{ref:n,className:bu.divIrEditorWrapper,onScroll:l=>o(u3({irEditor:l.currentTarget.scrollTop})),children:[me("div",{className:bu.divLineNumberWrapper,children:i.map((l,s)=>St("label",{className:te({[bu.lblLineNumberNormal]:!e.vm.shouldIndicateCurrentLineNumber||s+1!==e.vm.currentLineNumber,[bu.lblLineNumberIndication]:e.vm.shouldIndicateCurrentLineNumber&&s+1===e.vm.currentLineNumber}),children:[e.vm.state===ln.STATIC_CHECK_FAILED&&s+1 in e.vm.staticErrorTable&&me(NT,{type:"ERROR",title:t.formatMessage({id:e.vm.staticErrorTable[s+1].key},e.vm.staticErrorTable[s+1].values)},"sehighlighter"+s),e.vm.state===ln.RUNTIME_ERROR&&s+1 in e.vm.runtimeErrorTable&&me(NT,{type:"ERROR",title:t.formatMessage({id:e.vm.runtimeErrorTable[s+1].key},e.vm.runtimeErrorTable[s+1].values)},"rehighlighter"+s),s+1]},"label"+s))}),me("div",{className:bu.divIrWrapper,children:me("textarea",{ref:r,style:{height:`${20*i.length}px`},spellCheck:!1,className:bu.taIr,value:e.vm.irString,onSelect:l=>{o(xT({start:l.currentTarget.selectionStart,end:l.currentTarget.selectionEnd}))},onKeyDown:l=>{l.key==="Tab"&&(l.preventDefault(),a(l.currentTarget.value.substring(0,l.currentTarget.selectionStart)+" ".repeat(4)+l.currentTarget.value.substring(l.currentTarget.selectionEnd)),o(xT({start:l.currentTarget.selectionStart+4,end:l.currentTarget.selectionStart+4})))},onChange:l=>a(l.currentTarget.value)})})]})},Sde="_divVmConsoleWrapper_1d163_1",Cde="_divVmConsole_1d163_1",MT={divVmConsoleWrapper:Sde,divVmConsole:Cde},xde="_divOutputBlockWrapper_geev8_1",Ede="_spanError_geev8_11",wde="_spanWarning_geev8_15",Ide="_spanSuccess_geev8_19",$de="_spanNormal_geev8_23",Ode="_spanPrompt_geev8_27",_de="_spanArrow_geev8_31",Jl={divOutputBlockWrapper:xde,spanError:Ede,spanWarning:wde,spanSuccess:Ide,spanNormal:$de,spanPrompt:Ode,spanArrow:_de},Rde=e=>{const t=mo();return me("div",{className:Jl.divOutputBlockWrapper,children:e.message.map((n,r)=>{const o=t.formatMessage({id:n.key},n.values);return me("span",{className:te({[Jl.spanError]:n.type===Ji.ERROR,[Jl.spanWarning]:n.type===Ji.WARNING,[Jl.spanSuccess]:n.type===Ji.SUCCESS,[Jl.spanNormal]:n.type===Ji.NORMAL,[Jl.spanPrompt]:n.type===Ji.PROMPT,[Jl.spanArrow]:n.type===Ji.ARROW}),children:o},r)})})},Tde="_divInputBlockWrapper_1w97i_1",Pde="_spanArrow_1w97i_9",Nde="_spanPrompt_1w97i_13",_m={divInputBlockWrapper:Tde,spanArrow:Pde,spanPrompt:Nde,in:"_in_1w97i_18"},Mde=e=>{const t=mo();return St("div",{className:_m.divInputBlockWrapper,children:[me("span",{className:_m.spanArrow,children:t.formatMessage({id:"CONSOLE_ARROW"})}),me("span",{className:_m.spanPrompt,children:e.prompt.reduce((n,r)=>n+t.formatMessage({id:r.key},r.values),"")}),me("input",{id:"inConsole",className:_m.in,spellCheck:!1,value:e.value,onChange:n=>e.onChange(n.currentTarget.value),onKeyDown:n=>{n.key==="Enter"&&e.onEnter()}})]})},Ade="_divControlPanelWrapper_x2oa8_1",Lde="_divSide_x2oa8_11",Dde="_iconRun_x2oa8_17",kde="_iconStep_x2oa8_21",Fde="_iconReset_x2oa8_25",Bde="_iconClear_x2oa8_29",Su={divControlPanelWrapper:Ade,divSide:Lde,iconRun:Dde,iconStep:kde,iconReset:Fde,iconClear:Bde},zde="_divIconWrapper_shrpr_1",Hde={divIconWrapper:zde},Rm=e=>St("div",{className:te(Hde.divIconWrapper,e.className),onClick:t=>{t.stopPropagation(),e.onClick()},children:[e.icon,e.label!==void 0&&me("label",{children:e.label})]}),jde=e=>{const t=mo();return me("div",{className:Su.divControlPanelWrapper,children:St("div",{className:Su.divSide,children:[me(Rm,{className:Su.iconRun,icon:me(uK,{}),label:t.formatMessage({id:"RUN"}),onClick:e.onRunClick}),me(Rm,{className:Su.iconStep,icon:me(CW,{}),label:t.formatMessage({id:"RUN_STEP"}),onClick:e.onRunStepClick}),me(Rm,{className:Su.iconReset,icon:me(RK,{}),label:t.formatMessage({id:"RESET"}),onClick:e.onResetClick}),me(Rm,{className:Su.iconClear,icon:me(jK,{}),label:t.formatMessage({id:"CLEAR_CONSOLE"}),onClick:e.onClearClick})]})})},Vde=e=>{const t=wc(),n=c.useRef(null),r=c.useRef(null);return c.useEffect(()=>{var o;e.vm.state===ln.WAIT_INPUT?(n.current=on.resolvesAt(e.vmIndex),(o=document.getElementById("inConsole"))==null||o.focus()):on.at(e.vmIndex).setReadConsoleFn(i=>{var a;return t(pb(i)),yl(t,e.vm.id),(a=document.getElementById("inConsole"))==null||a.focus(),new Promise(l=>{n.current=l,on.setResolveAt(e.vmIndex,l)})})},[e.vm.id]),c.useEffect(()=>{var o;(o=r.current)==null||o.scrollTo(0,r.current.scrollHeight)},[e.vm.consoleInput,e.vm.consoleInputPrompt,e.vm.consoleOutputs]),St("div",{className:MT.divVmConsoleWrapper,children:[me(jde,{onRunClick:async()=>{var o;if(!on.at(e.vmIndex).canContinueExecution){on.at(e.vmIndex).state===ln.WAIT_INPUT&&((o=document.getElementById("inConsole"))==null||o.focus());return}t(mb(!1)),await on.at(e.vmIndex).execute(),yl(t,e.vm.id)},onRunStepClick:async()=>{var o;if(!on.at(e.vmIndex).canContinueExecution){on.at(e.vmIndex).state===ln.WAIT_INPUT&&((o=document.getElementById("inConsole"))==null||o.focus());return}t(mb(!0)),await on.at(e.vmIndex).executeSingleStep(),yl(t,e.vm.id)},onResetClick:()=>{t(mb(!1)),t(pb([])),t($m("")),t(c3(1)),on.at(e.vmIndex).reset(),yl(t,e.vm.id)},onClearClick:()=>{var o;t(bce()),t($m("")),e.vm.state===ln.WAIT_INPUT&&((o=document.getElementById("inConsole"))==null||o.focus())}}),St("div",{ref:r,id:"divVmConsole",className:MT.divVmConsole,children:[e.vm.consoleOutputs.map((o,i)=>me(Rde,{message:o},i)),me(Mde,{prompt:e.vm.consoleInputPrompt,value:e.vm.consoleInput,onChange:o=>t($m(o)),onEnter:()=>{n.current!==null&&n.current(e.vm.consoleInput),t(s3([[{key:"CONSOLE_ARROW",type:Ji.ARROW},...e.vm.consoleInputPrompt.map(o=>({...o,type:Ji.PROMPT})),{key:"READ_INPUT",values:{value:e.vm.consoleInput},type:Ji.NORMAL}]])),t(pb([])),t($m(""))}})]})]})},Ude="_divVmInspectorWrapper_1ck6l_1",Wde="_divStepStateCard_1ck6l_34",Kde="_divStepStateWrapper_1ck6l_45",Gde="_lblStepStateLabel_1ck6l_51",Xde="_divStepCount_1ck6l_58",Yde="_divStateBase_1ck6l_64",qde="_divStateExitedAbnormally_1ck6l_64",Qde="_divStateExitedNormally_1ck6l_64",Zde="_divStateMaxStepReached_1ck6l_64",Jde="_divStateRuntimeError_1ck6l_64",efe="_divStateStaticCheckFailed_1ck6l_64",tfe="_divStateFree_1ck6l_64",nfe="_divStateWaitInput_1ck6l_64",rfe="_divStateBusy_1ck6l_64",ofe="_divStateInitial_1ck6l_64",ife="_divOptionsCard_1ck6l_105",afe="_divOptionWrapper_1ck6l_117",lfe="_lblOption_1ck6l_124",sfe="_iconOptionInfo_1ck6l_129",ufe="_inOptionValue_1ck6l_139",cfe="_divMemoryUsageCard_1ck6l_143",dfe="_divGlobalVariableTableCard_1ck6l_158",ffe="_divLocalVariableTableCard_1ck6l_174",pfe="_divLocalVariableTableWrapper_1ck6l_194",mfe="_divLocalVariableTable_1ck6l_174",hfe="_paginationLocalVariableTable_1ck6l_221",qt={divVmInspectorWrapper:Ude,divStepStateCard:Wde,divStepStateWrapper:Kde,lblStepStateLabel:Gde,divStepCount:Xde,divStateBase:Yde,divStateExitedAbnormally:qde,divStateExitedNormally:Qde,divStateMaxStepReached:Zde,divStateRuntimeError:Jde,divStateStaticCheckFailed:efe,divStateFree:tfe,divStateWaitInput:nfe,divStateBusy:rfe,divStateInitial:ofe,divOptionsCard:ife,divOptionWrapper:afe,lblOption:lfe,iconOptionInfo:sfe,inOptionValue:ufe,divMemoryUsageCard:cfe,divGlobalVariableTableCard:dfe,divLocalVariableTableCard:ffe,divLocalVariableTableWrapper:pfe,divLocalVariableTable:mfe,paginationLocalVariableTable:hfe},gfe="_divMemoryUsageWrapper_1rsex_1",vfe="_divUsageBlock_1rsex_7",yfe="_progress_1rsex_25",fd={divMemoryUsageWrapper:gfe,divUsageBlock:vfe,progress:yfe},gb=e=>{const t=mo();return St("div",{className:fd.divMemoryUsageWrapper,children:[St("div",{className:fd.divUsageBlock,children:[me(jR,{className:fd.progress,percent:e.usedBytes/e.totalBytes*100,showInfo:!1,status:"normal"}),St("div",{children:[me("label",{children:e.title}),me("label",{className:"percentageUsage",children:e.totalBytes===0?"-.-":t.formatMessage({id:"PERCENTAGE_USAGE"},{percentage:e.usedBytes/e.totalBytes*100})})]}),me("span",{children:t.formatMessage({id:"B_USAGE"},{used:e.usedBytes,total:e.totalBytes})}),me("span",{children:t.formatMessage({id:"KB_USAGE"},{used:hb(e.usedBytes),total:hb(e.totalBytes)})})]}),St("div",{className:fd.divUsageBlock,children:[me(jR,{className:fd.progress,percent:e.peakBytes/e.totalBytes*100,showInfo:!1,status:"exception"}),St("div",{children:[me("label",{children:t.formatMessage({id:"PEAK_MEMORY_USAGE"})}),me("label",{className:"percentageUsage",children:e.totalBytes===0?"-.-":t.formatMessage({id:"PERCENTAGE_USAGE"},{percentage:e.peakBytes/e.totalBytes*100})})]}),me("span",{children:t.formatMessage({id:"BYTES"},{bytes:e.peakBytes})}),me("span",{children:t.formatMessage({id:"KB"},{kb:hb(e.peakBytes)})})]})]})},bfe="_divVariableTableWrapper_1vw2e_1",Sfe="_divValues_1vw2e_10",AT={divVariableTableWrapper:bfe,divValues:Sfe},LT=e=>{const t=mo(),n=[{title:t.formatMessage({id:"VARIABLE_ID"}),dataIndex:"id",showSorterTooltip:!1,sorter:(r,o)=>Nce(r.id,o.id)},{title:t.formatMessage({id:"ADDRESS"}),dataIndex:"address",showSorterTooltip:!1,sorter:(r,o)=>r.address-o.address},{title:t.formatMessage({id:"SIZE"}),dataIndex:"size",showSorterTooltip:!1,sorter:(r,o)=>r.size-o.size},{title:t.formatMessage({id:"VALUES"}),dataIndex:"values",render:r=>me("div",{className:AT.divValues,children:r.map((o,i)=>me("div",{children:r.length===1?o:St(KT,{children:["[",i,"]: ",o]})},i))})}];return me("div",{className:AT.divVariableTableWrapper,children:e.variables.length===0?me("div",{className:"emptyHolder",children:t.formatMessage({id:"EMPTY_VATIABLE_TABLE"})}):me(bue,{columns:n,dataSource:e.variables,size:"small",pagination:!1})})};function Cfe(e){switch(e){case ln.BUSY:return"STATE_BUSY";case ln.EXITED_ABNORMALLY:return"STATE_EXITED_ABNORMALLY";case ln.EXITED_NORMALLY:return"STATE_EXITED_NORMALLY";case ln.FREE:return"STATE_FREE";case ln.INITIAL:return"STATE_INITIAL";case ln.MAX_STEP_REACHED:return"STATE_MAX_STEP_REACHED";case ln.RUNTIME_ERROR:return"STATE_RUNTIME_ERROR";case ln.STATIC_CHECK_FAILED:return"STATE_STATIC_CHECK_FAILED";case ln.WAIT_INPUT:return"STATE_WAIT_INPUT"}}const vb=10,xfe=e=>{const t=mo(),n=wc(),r=c.useRef(null);return c.useEffect(()=>{var o;(o=r.current)==null||o.scrollTo(0,e.vm.scrollHeights.vmInspector)},[e.vm.id]),St("div",{ref:r,className:qt.divVmInspectorWrapper,onScroll:o=>n(u3({vmInspector:o.currentTarget.scrollTop})),children:[St("div",{className:qt.divStepStateCard,children:[St("div",{className:qt.divStepStateWrapper,children:[me("label",{className:qt.lblStepStateLabel,children:t.formatMessage({id:"STEP_COUNT"})}),me("div",{className:qt.divStepCount,children:t.formatMessage({id:"STEP_COUNT_NUMBER"},{stepCount:e.vm.stepCount})})]}),St("div",{className:qt.divStepStateWrapper,children:[me("label",{className:qt.lblStepStateLabel,children:t.formatMessage({id:"STATE"})}),me("div",{className:te({[qt.divStateInitial]:e.vm.state===ln.INITIAL,[qt.divStateBusy]:e.vm.state===ln.BUSY,[qt.divStateWaitInput]:e.vm.state===ln.WAIT_INPUT,[qt.divStateFree]:e.vm.state===ln.FREE,[qt.divStateStaticCheckFailed]:e.vm.state===ln.STATIC_CHECK_FAILED,[qt.divStateRuntimeError]:e.vm.state===ln.RUNTIME_ERROR,[qt.divStateMaxStepReached]:e.vm.state===ln.MAX_STEP_REACHED,[qt.divStateExitedNormally]:e.vm.state===ln.EXITED_NORMALLY,[qt.divStateExitedAbnormally]:e.vm.state===ln.EXITED_ABNORMALLY}),children:t.formatMessage({id:Cfe(e.vm.state)})})]})]}),St("div",{className:qt.divOptionsCard,children:[St("div",{className:qt.divOptionWrapper,children:[St("label",{className:qt.lblOption,children:[t.formatMessage({id:"MAX_EXECUTION_STEP_COUNT"}),me(Wf,{title:t.formatMessage({id:"SET_0_MEANS_NO_STEP_LIMIT"}),children:me(FM,{className:qt.iconOptionInfo})})]}),me(nb,{className:qt.inOptionValue,disabled:e.vm.state!==ln.INITIAL,min:Ii.maxExecutionStepCount.min,max:Ii.maxExecutionStepCount.max,value:e.vm.options.maxExecutionStepCount,onChange:o=>{on.at(e.vmIndex).configure({maxExecutionStepCount:o??void 0}),yl(n,e.vm.id)}})]}),St("div",{className:qt.divOptionWrapper,children:[me("label",{className:qt.lblOption,children:t.formatMessage({id:"MEMORY_SIZE"})}),me(nb,{className:qt.inOptionValue,disabled:e.vm.state!==ln.INITIAL,min:Ii.memorySize.min,max:Ii.memorySize.max,value:e.vm.options.memorySize,onChange:o=>{on.at(e.vmIndex).configure({memorySize:o??void 0}),yl(n,e.vm.id)}})]}),St("div",{className:qt.divOptionWrapper,children:[me("label",{className:qt.lblOption,children:t.formatMessage({id:"STACK_SIZE"})}),me(nb,{className:qt.inOptionValue,disabled:e.vm.state!==ln.INITIAL,min:Ii.stackSize.min,max:Ii.stackSize.max,value:e.vm.options.stackSize,onChange:o=>{on.at(e.vmIndex).configure({stackSize:o??void 0}),yl(n,e.vm.id)}})]})]}),St("div",{className:qt.divMemoryUsageCard,children:[me(gb,{title:t.formatMessage({id:"TOTAL_MEMORY_USAGE"}),usedBytes:e.vm.memoryUsage.used,totalBytes:e.vm.memoryUsage.total,peakBytes:e.vm.peakMemoryUsage.total}),me(gb,{title:t.formatMessage({id:"STACK_MEMORY_USAGE"}),usedBytes:e.vm.memoryUsage.stackUsed,totalBytes:e.vm.memoryUsage.stackTotal,peakBytes:e.vm.peakMemoryUsage.stack}),me(gb,{title:t.formatMessage({id:"GLOBAL_VARIABLE_MEMORY_USAGE"}),usedBytes:e.vm.memoryUsage.globalVariableUsed,totalBytes:e.vm.memoryUsage.globalVariableTotal,peakBytes:e.vm.peakMemoryUsage.globalVariable})]}),St("div",{className:qt.divGlobalVariableTableCard,children:[me("label",{className:"title",children:t.formatMessage({id:"GLOBAL_VARIABLE_TABLE"})}),me(LT,{variables:e.vm.globalVariableDetails})]}),St("div",{className:qt.divLocalVariableTableCard,children:[me("label",{className:"title",children:t.formatMessage({id:"LOCAL_VARIABLE_TABLE"})}),e.vm.localVariableDetailsStack.length===0?me("div",{className:"emptyHolder",children:t.formatMessage({id:"EMPTY_VATIABLE_TABLE"})}):St("div",{className:qt.divLocalVariableTableWrapper,children:[e.vm.localVariableDetailsStack.slice(vb*(e.vm.localVariableTablePageIndex-1),vb*e.vm.localVariableTablePageIndex).map((o,i)=>St("div",{className:qt.divLocalVariableTable,children:[St("div",{className:"titleWrapper",children:[me("label",{className:"functionName",children:o.functionName}),St("label",{className:"callStackDepth",children:["(",t.formatMessage({id:"CALL_STACK_DEPTH"},{depth:o.stackDepth}),")"]})]}),me(LT,{variables:o.details},i)]},i)),me(hE,{className:qt.paginationLocalVariableTable,current:e.vm.localVariableTablePageIndex,onChange:o=>n(c3(o)),pageSize:vb,showSizeChanger:!1,total:e.vm.localVariableDetailsStack.length,size:"small"})]})]})]})},Efe=()=>{const e=mo(),t=wc(),n=cc(a=>a.vm),r=cc(a=>a.vm.vmPageStates.every(l=>!l.isIrChanged)),[o,i]=c.useState(window.innerWidth{window.onresize=()=>i(window.innerWidth{window.onbeforeunload=r?null:a=>(a.preventDefault(),a.returnValue="")},[r]),St("main",{className:am.main,onDragEnter:a=>a.preventDefault(),onDragOver:a=>a.preventDefault(),onDrop:a=>{for(const l of a.dataTransfer.files)v3(t,e,l);a.preventDefault()},children:[me(jce,{vm:n.vmPageStates.length===0?null:n.vmPageStates[n.activeVmIndex],vmIndex:n.activeVmIndex}),St("div",{className:am.divRight,children:[me(ide,{}),me("div",{className:te({[am.divVmWrapperHorizontal]:!o,[am.divVmWrapperVertical]:o}),children:n.vmPageStates.length===0?me(sde,{}):St(KT,{children:[me("section",{className:"sectionIrEditor",children:me(bde,{vm:n.vmPageStates[n.activeVmIndex],vmIndex:n.activeVmIndex})}),me("section",{className:"sectionVmConsole",children:me(Vde,{vm:n.vmPageStates[n.activeVmIndex],vmIndex:n.activeVmIndex})}),me("section",{className:"sectionVmInspector",children:me(xfe,{vm:n.vmPageStates[n.activeVmIndex],vmIndex:n.activeVmIndex})})]})})]})]})},wfe=K9([{path:"/",element:me(Efe,{})}],{basename:"/ir-virtual-machine"});const Ife=()=>{const e=cc(n=>n.locale.currentLocale),t=cc(n=>n.theme.currentClassName);return c.useEffect(()=>{document.body.className=t},[t]),me(g7,{messages:e,locale:"en",children:me(H9,{router:wfe})})},$fe=Zue({reducer:{locale:Fce,theme:Hce,vm:Ece}});yb.createRoot(document.getElementById("root")).render(me(ve.StrictMode,{children:me(OV,{store:$fe,children:me(Ife,{})})})); diff --git a/docs/assets/index-af9b2003.css b/docs/assets/index-af9b2003.css new file mode 100644 index 0000000..14b70ef --- /dev/null +++ b/docs/assets/index-af9b2003.css @@ -0,0 +1 @@ +html,body{width:100%;height:100%}input::-ms-clear,input::-ms-reveal{display:none}*,*:before,*:after{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0)}@-ms-viewport{width:device-width}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:500}p{margin-top:0;margin-bottom:1em}abbr[title],abbr[data-original-title]{-webkit-text-decoration:underline dotted;text-decoration:underline;text-decoration:underline dotted;border-bottom:0;cursor:help}address{margin-bottom:1em;font-style:normal;line-height:inherit}input[type=text],input[type=password],input[type=number],textarea{-webkit-appearance:none}ol,ul,dl{margin-top:0;margin-bottom:1em}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}pre,code,kbd,samp{font-size:1em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}pre{margin-top:0;margin-bottom:1em;overflow:auto}figure{margin:0 0 1em}img{vertical-align:middle;border-style:none}a,area,button,[role=button],input:not([type="range"]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{padding-top:.75em;padding-bottom:.3em;text-align:left;caption-side:bottom}input,button,select,optgroup,textarea{margin:0;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{padding:0;border-style:none}input[type=radio],input[type=checkbox]{box-sizing:border-box;padding:0}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;margin:0;padding:0;border:0}legend{display:block;width:100%;max-width:100%;margin-bottom:.5em;padding:0;color:inherit;font-size:1.5em;line-height:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}mark{padding:.2em;background-color:#feffe6}._main_10fbd_1{width:100vw;height:100vh;display:flex}._divRight_10fbd_7{width:calc(100% - 48px);height:100%;display:flex;flex-direction:column}._divVmWrapper_10fbd_14{width:100%;height:calc(100% - 40px)}._divVmContentBase_10fbd_19,._divVmContentVertical_10fbd_19,._divVmContentHorizontal_10fbd_19{width:100%;height:100%;display:flex;background-color:var(--vm-wrapper-bkg-color)}._divVmContentBase_10fbd_19>section,._divVmContentVertical_10fbd_19>section,._divVmContentHorizontal_10fbd_19>section{font-family:Roboto Mono,monospace}._divVmContentHorizontal_10fbd_19>section[class=sectionIrEditor]{width:34%;height:100%}._divVmContentHorizontal_10fbd_19>section[class=sectionVmConsole]{width:33%;height:100%;border-left:2px solid var(--vm-section-border-color);border-right:2px solid var(--vm-section-border-color)}._divVmContentHorizontal_10fbd_19>section[class=sectionVmInspector]{width:33%;height:100%}._divVmContentVertical_10fbd_19{flex-direction:column}._divVmContentVertical_10fbd_19>section[class=sectionIrEditor]{width:100%;height:34%}._divVmContentVertical_10fbd_19>section[class=sectionVmConsole]{width:100%;height:33%;border-top:2px solid var(--vm-section-border-color);border-bottom:2px solid var(--vm-section-border-color)}._divVmContentVertical_10fbd_19>section[class=sectionVmInspector]{width:100%;height:33%}._asideSideBarWrapper_chse2_1{width:48px;height:100%;background-color:var(--sidebar-bkg-color);display:flex;flex-direction:column;justify-content:space-between;user-select:none}._divIconWrapperBase_chse2_11,._divIconWrapperLower_chse2_11,._divIconWrapperUpper_chse2_11{display:flex;flex-direction:column;align-items:center}._divIconWrapperUpper_chse2_11{padding-top:20px}._divIconWrapperLower_chse2_11{padding-bottom:20px}._articleAbout_chse2_25{text-align:center;font-size:14px}._articleAbout_chse2_25 p{margin-bottom:.7em}._articleAbout_chse2_25>p[class=title]{font-size:16px;font-weight:700}._articleAbout_chse2_25>p[class=info]{display:flex;justify-content:center;flex-wrap:wrap;gap:5px}._aDemoSources_chse2_43{margin-left:1em}._menuDemos_chse2_47{max-height:70vh;overflow-y:auto}._menuDemos_chse2_47 span[class~=ant-menu-title-content]{font-weight:700}._menuDemos_chse2_47 ul[class~=ant-menu]{background-color:#fff!important}._menuDemos_chse2_47 ul[class~=ant-menu] li[class~=ant-menu-item]{height:fit-content;margin:0!important;padding:0 0 0 30px!important;border-radius:0}._menuDemos_chse2_47 ul[class~=ant-menu] li[class~=ant-menu-item]:hover{background-color:#fff!important}._menuDemos_chse2_47 ul[class~=ant-menu] li[class~=ant-menu-item] [class~=ant-avatar]{background-color:var(--demo-item-avatar-color)}._menuDemos_chse2_47 ul[class~=ant-menu] li[class~=ant-menu-item] li[class~=ant-list-item]{transition-duration:.2s}._menuDemos_chse2_47 ul[class~=ant-menu] li[class~=ant-menu-item] li[class~=ant-list-item]:hover{background-color:var(--demo-item-hover-color)}._menuDemos_chse2_47 ul[class~=ant-menu] li[class~=ant-menu-item] li[class~=ant-list-item] [class~=ant-list-item-meta-title],._menuDemos_chse2_47 ul[class~=ant-menu] li[class~=ant-menu-item] li[class~=ant-list-item] [class~=ant-list-item-meta-description]{text-wrap:wrap;font-weight:400}._divIconWrapper_1eud3_1{width:100%;height:60px;font-size:25px;cursor:pointer;color:var(--sidebar-icon-color);transition-duration:.2s;display:flex;flex-direction:column;gap:5px;justify-content:center;align-items:center}._divIconWrapper_1eud3_1:hover{color:var(--sidebar-icon-hover-color)}._divIconWrapper_1eud3_1>label{font-size:12px;cursor:pointer}._navTabBarWrapper_1yoxc_1{background-color:var(--tabbar-bkg-color);height:40px;width:100%;overflow-x:auto;display:flex;user-select:none}._navTabBarWrapper_1yoxc_1::-webkit-scrollbar{width:5px;height:5px}._navTabBarWrapper_1yoxc_1::-webkit-scrollbar-thumb{background-color:#919191}._navTabBarWrapper_1yoxc_1::-webkit-scrollbar-thumb:hover{background-color:#a0a0a0}._navTabBarWrapper_1yoxc_1::-webkit-scrollbar-thumb:active{background-color:#afafaf}._navTabBarWrapper_1yoxc_1::-webkit-scrollbar-track{background-color:#dcdcdc}._divTabBarItemWrapperBase_11raq_1,._divTabBarItemWrapperActive_11raq_1,._divTabBarItemWrapperInactive_11raq_1{width:200px;min-width:200px;cursor:pointer;padding:0 10px;display:flex;justify-content:space-between;align-items:center;border-left:1px solid var(--tabbar-item-active-bkg-color)}._divTabBarItemWrapperInactive_11raq_1{background-color:var(--tabbar-item-inactive-bkg-color)}._divTabBarItemWrapperInactive_11raq_1:hover{background-color:var(--tabbar-item-inactive-hover-bkg-color)}._divTabBarItemWrapperActive_11raq_1{background-color:var(--tabbar-item-active-bkg-color)}._divIconTitleWrapper_11raq_23{display:flex;align-items:center}._divCloseWrapper_11raq_28,._divCloseWrapperChanged_11raq_28{display:flex;justify-content:center;align-items:center;width:20px;height:20px;border-radius:5px}._divCloseWrapper_11raq_28:hover,._divCloseWrapperChanged_11raq_28:hover{background-color:var(--tabbar-close-hover-bkg-color)}._divCloseWrapperChanged_11raq_28>:first-child{display:block}._divCloseWrapperChanged_11raq_28>:last-child{display:none}._divCloseWrapperChanged_11raq_28:hover>:first-child{display:none}._divCloseWrapperChanged_11raq_28:hover>:last-child{display:block}._iconVm_11raq_53{width:18px;margin-right:5px;fill:var(--tabbar-item-icon-color);stroke:var(--tabbar-item-icon-color)}._iconClose_11raq_60{font-size:13px;color:var(--tabbar-item-text-color)}._lblTitle_11raq_65{color:var(--tabbar-item-text-color);font-size:13px;cursor:pointer}._iconDot_11raq_71{position:relative;width:8px;fill:var(--tabbar-item-close-color);stroke:var(--tabbar-item-close-color)}._inVmRename_11raq_78{width:130px;font-size:13px;height:20px;padding:3px;border:1px solid var(--tabbar-item-rename-border-color);border-radius:3px;outline:0;color:var(--tabbar-item-text-color);background-color:transparent}@keyframes _scale-in_1bjxs_1{0%{transform:scale(.1)}to{transform:scale(1)}}._divEmptyHolder_1bjxs_9{width:100%;height:100%;padding:20px;display:flex;justify-content:center;align-items:center;font-size:27px;color:var(--vm-empty-holder-color)}._divEmptyHolderText_1bjxs_20{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:15px;animation-duration:.5s;animation-name:_scale-in_1bjxs_1}.rangeError{background-color:var(--ir-editor-error-range-bkg-color)}.rangeCurrentLine{background-color:var(--ir-editor-current-line-range-bkg-color)}._divMonacoEditorWrapper_1a3zn_1{width:100%;height:100%}._divVmConsoleWrapper_1d163_1{width:100%;height:100%;max-height:100%;background-color:var(--vm-console-bkg-color);display:flex;flex-direction:column}._divVmConsole_1d163_1{width:100%;height:calc(100% - 50px);max-height:calc(100% - 50px);font-size:15px;line-height:20px;display:flex;flex-direction:column;overflow-y:auto}._divVmConsole_1d163_1::-webkit-scrollbar{width:5px;height:5px}._divVmConsole_1d163_1::-webkit-scrollbar-thumb{background-color:#919191}._divVmConsole_1d163_1::-webkit-scrollbar-thumb:hover{background-color:#a0a0a0}._divVmConsole_1d163_1::-webkit-scrollbar-thumb:active{background-color:#afafaf}._divVmConsole_1d163_1::-webkit-scrollbar-track{background-color:#dcdcdc}._divVmConsole_1d163_1::-webkit-scrollbar{width:10px;height:10px}._divOutputBlockWrapper_geev8_1{width:100%;padding:0 10px;font-size:15px;line-height:20px;display:flex;flex-wrap:wrap;word-break:break-all}._spanError_geev8_11{color:var(--vm-console-error-color)}._spanWarning_geev8_15{color:var(--vm-console-warning-color)}._spanSuccess_geev8_19{color:var(--vm-console-success-color)}._spanNormal_geev8_23{color:var(--vm-console-normal-color)}._spanPrompt_geev8_27{color:var(--vm-console-prompt-color)}._spanArrow_geev8_31{color:var(--vm-console-arrow-color)}._divInputBlockWrapper_1w97i_1{width:100%;padding:0 10px;font-size:15px;line-height:20px;display:flex}._spanArrow_1w97i_9{color:var(--vm-console-arrow-color)}._spanPrompt_1w97i_13{white-space:pre;color:var(--vm-console-prompt-color)}._in_1w97i_18{flex-grow:1;min-width:80px;height:20px;padding:0;border:0;outline:0;color:var(--vm-console-normal-color);background-color:transparent}._divControlPanelWrapper_x2oa8_1{width:100%;height:50px;display:flex;justify-content:space-between;padding:0 15px;user-select:none;font-family:sans-serif}._divSide_x2oa8_11{height:50px;display:flex;align-items:center}._iconRun_x2oa8_17{color:var(--control-panel-run-icon-color)}._iconStep_x2oa8_21{color:var(--control-panel-step-icon-color)}._iconReset_x2oa8_25{color:var(--control-panel-reset-icon-color)}._iconClear_x2oa8_29{color:var(--control-panel-clear-icon-color)}._divIconWrapper_shrpr_1{width:40px;height:50px;font-size:18px;cursor:pointer;transition-duration:.2s;display:flex;flex-direction:column;gap:3px;justify-content:center;align-items:center}._divIconWrapper_shrpr_1:hover{background-color:var(--control-panel-icon-hover-bkg-color)}._divIconWrapper_shrpr_1:active{background-color:var(--control-panel-icon-active-bkg-color)}._divIconWrapper_shrpr_1>label{font-size:12px;cursor:pointer;color:var(--control-panel-label-color)}._divVmInspectorWrapper_1ck6l_1{width:100%;height:100%;max-height:100%;padding:20px;background-color:var(--vm-inspector-bkg-color);display:flex;flex-direction:column;gap:20px;overflow-y:auto;font-family:sans-serif}._divVmInspectorWrapper_1ck6l_1::-webkit-scrollbar{width:5px;height:5px}._divVmInspectorWrapper_1ck6l_1::-webkit-scrollbar-thumb{background-color:#919191}._divVmInspectorWrapper_1ck6l_1::-webkit-scrollbar-thumb:hover{background-color:#a0a0a0}._divVmInspectorWrapper_1ck6l_1::-webkit-scrollbar-thumb:active{background-color:#afafaf}._divVmInspectorWrapper_1ck6l_1::-webkit-scrollbar-track{background-color:#dcdcdc}._divVmInspectorWrapper_1ck6l_1::-webkit-scrollbar{width:10px;height:10px}._divStepStateCard_1ck6l_34{padding:15px 20px;border:1px solid var(--vm-inspector-card-border-color);border-radius:8px;background-color:var(--vm-inspector-card-bkg-color);width:100%;display:flex;flex-direction:column;gap:10px}._divStepStateWrapper_1ck6l_45{display:flex;align-items:flex-start;flex-wrap:wrap}._lblStepStateLabel_1ck6l_51{font-size:20px;color:var(--vm-inspector-step-state-label-color);white-space:pre;user-select:none}._divStepCount_1ck6l_58{font-size:20px;font-weight:700;color:var(--vm-inspector-step-count-color)}._divStateBase_1ck6l_64,._divStateExitedAbnormally_1ck6l_64,._divStateExitedNormally_1ck6l_64,._divStateMaxStepReached_1ck6l_64,._divStateRuntimeError_1ck6l_64,._divStateStaticCheckFailed_1ck6l_64,._divStateFree_1ck6l_64,._divStateWaitInput_1ck6l_64,._divStateBusy_1ck6l_64,._divStateInitial_1ck6l_64{font-size:20px;font-weight:700}._divStateInitial_1ck6l_64{color:var(--vm-inspector-state-initial-color)}._divStateBusy_1ck6l_64{color:var(--vm-inspector-state-busy-color)}._divStateWaitInput_1ck6l_64{color:var(--vm-inspector-state-wait-input-color)}._divStateFree_1ck6l_64{color:var(--vm-inspector-state-free-color)}._divStateStaticCheckFailed_1ck6l_64{color:var(--vm-inspector-state-static-check-failed-color)}._divStateRuntimeError_1ck6l_64{color:var(--vm-inspector-state-runtime-error-color)}._divStateMaxStepReached_1ck6l_64{color:var(--vm-inspector-state-max-step-reached-color)}._divStateExitedNormally_1ck6l_64{color:var(--vm-inspector-state-exited-normally-color)}._divStateExitedAbnormally_1ck6l_64{color:var(--vm-inspector-state-exited-abnormally-color)}._divOptionsCard_1ck6l_105{padding:15px 20px;border:1px solid var(--vm-inspector-card-border-color);border-radius:8px;background-color:var(--vm-inspector-card-bkg-color);display:flex;justify-content:center;flex-wrap:wrap;gap:20px;color:var(--vm-inspector-text-color)}._divOptionWrapper_1ck6l_117{display:flex;flex-direction:column;align-items:center;gap:5px}._lblOption_1ck6l_124{font-size:14px;user-select:none}._iconOptionInfo_1ck6l_129{margin-left:5px;color:var(--vm-inspector-option-info-icon-color);cursor:pointer;transition-duration:.2s}._iconOptionInfo_1ck6l_129:hover{color:var(--vm-inspector-option-info-icon-hover-color)}._inOptionValue_1ck6l_139{width:110px}._divMemoryUsageCard_1ck6l_143{border:1px solid var(--vm-inspector-card-border-color);border-radius:8px;background-color:var(--vm-inspector-card-bkg-color);display:flex;justify-content:center;flex-wrap:wrap;padding:8px 15px 15px;gap:20px;color:var(--vm-inspector-text-color)}._divGlobalVariableTableCard_1ck6l_158{padding:15px 20px;border:1px solid var(--vm-inspector-card-border-color);border-radius:8px;background-color:var(--vm-inspector-card-bkg-color);display:flex;flex-direction:column;align-items:center;gap:20px;color:var(--vm-inspector-text-color)}._divGlobalVariableTableCard_1ck6l_158>label[class=title]{font-weight:700;user-select:none}._divLocalVariableTableCard_1ck6l_174{padding:15px 20px;border:1px solid var(--vm-inspector-card-border-color);border-radius:8px;background-color:var(--vm-inspector-card-bkg-color);display:flex;flex-direction:column;align-items:center;gap:20px;color:var(--vm-inspector-text-color)}._divLocalVariableTableCard_1ck6l_174>label[class=title]{font-weight:700;user-select:none}._divLocalVariableTableCard_1ck6l_174>div[class=emptyHolder]{font-size:15px;user-select:none}._divLocalVariableTableWrapper_1ck6l_194{width:100%;display:flex;flex-direction:column;gap:20px}._divLocalVariableTable_1ck6l_174{width:100%;display:flex;flex-direction:column;align-items:center;gap:8px}._divLocalVariableTable_1ck6l_174>div[class=titleWrapper]{align-self:flex-start}._divLocalVariableTable_1ck6l_174>div[class=titleWrapper]>label[class=functionName]{font-size:14px;font-weight:700;margin-left:.6em}._divLocalVariableTable_1ck6l_174>div[class=titleWrapper]>label[class=callStackDepth]{margin-left:.6em;font-size:14px}._paginationLocalVariableTable_1ck6l_221{user-select:none}._divMemoryUsageWrapper_1rsex_1{display:flex;flex-direction:column;align-items:center}._divUsageBlock_1rsex_7{width:100%;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:13px}._divUsageBlock_1rsex_7 label{user-select:none}._divUsageBlock_1rsex_7 label[class=percentageUsage]{font-weight:700}._divUsageBlock_1rsex_7 span{font-family:Roboto Mono,monospace}._progress_1rsex_25{margin:0}._divVariableTableWrapper_1vw2e_1{width:100%;text-align:center}._divVariableTableWrapper_1vw2e_1>div[class=emptyHolder]{font-size:15px;user-select:none}._divValues_1vw2e_10{max-height:300px;overflow-y:auto}._divValues_1vw2e_10::-webkit-scrollbar{width:5px;height:5px}._divValues_1vw2e_10::-webkit-scrollbar-thumb{background-color:#919191}._divValues_1vw2e_10::-webkit-scrollbar-thumb:hover{background-color:#a0a0a0}._divValues_1vw2e_10::-webkit-scrollbar-thumb:active{background-color:#afafaf}._divValues_1vw2e_10::-webkit-scrollbar-track{background-color:#dcdcdc}.themeLight{--sidebar-bkg-color: rgb(44, 44, 44);--sidebar-icon-color: rgba(255, 255, 255, .5);--sidebar-icon-hover-color: rgba(255, 255, 255, .9);--demo-item-avatar-color: rgb(66, 160, 255);--demo-item-hover-color: rgba(0, 0, 0, .05);--tabbar-bkg-color: rgb(243, 243, 243);--tabbar-item-inactive-bkg-color: rgb(236, 236, 236);--tabbar-item-inactive-hover-bkg-color: rgb(245, 245, 245);--tabbar-item-active-bkg-color: rgb(255, 255, 255);--tabbar-item-icon-color: rgba(0, 0, 0, .5);--tabbar-item-text-color: rgb(0, 0, 0);--tabbar-item-rename-border-color: rgb(176, 176, 176);--tabbar-item-close-color: rgba(0, 0, 0, .7);--tabbar-close-hover-bkg-color: rgba(0, 0, 0, .1);--vm-wrapper-bkg-color: #fff;--vm-empty-holder-color: rgba(0, 0, 0, .5);--vm-section-border-color: #e7e7e7;--ir-editor-error-range-bkg-color: rgb(255, 199, 199);--ir-editor-current-line-range-bkg-color: rgba(173, 216, 230, .5);--vm-console-bkg-color: #fff;--vm-console-error-color: rgb(203, 36, 49);--vm-console-warning-color: rgb(227, 170, 25);--vm-console-success-color: rgb(28, 121, 49);--vm-console-normal-color: rgb(31, 31, 32);--vm-console-prompt-color: rgb(148, 154, 161);--vm-console-arrow-color: rgb(0, 120, 212);--control-panel-label-color: rgb(71, 75, 80);--control-panel-run-icon-color: rgb(123, 195, 121);--control-panel-step-icon-color: rgb(123, 195, 121);--control-panel-reset-icon-color: rgb(90, 136, 215);--control-panel-clear-icon-color: rgb(118, 121, 126);--control-panel-icon-hover-bkg-color: rgba(0, 0, 0, .05);--control-panel-icon-active-bkg-color: rgba(0, 0, 0, .09);--vm-inspector-bkg-color: #fff;--vm-inspector-step-state-label-color: #414141;--vm-inspector-step-count-color: #9b0000;--vm-inspector-state-initial-color: #0059de;--vm-inspector-state-busy-color: #a32b00;--vm-inspector-state-wait-input-color: #f2ba00;--vm-inspector-state-free-color: #00c3ff;--vm-inspector-state-static-check-failed-color: #ff0000;--vm-inspector-state-runtime-error-color: #ff0000;--vm-inspector-state-max-step-reached-color: #3c00ff;--vm-inspector-state-exited-normally-color: #24a600;--vm-inspector-state-exited-abnormally-color: #ff8000;--vm-inspector-card-border-color: #f0f0f0;--vm-inspector-card-bkg-color: #fff;--vm-inspector-text-color: #000000;--vm-inspector-option-info-icon-color: #666;--vm-inspector-option-info-icon-hover-color: #333} diff --git a/docs/assets/index-cc2cd41b.css b/docs/assets/index-cc2cd41b.css deleted file mode 100644 index 4076047..0000000 --- a/docs/assets/index-cc2cd41b.css +++ /dev/null @@ -1 +0,0 @@ -html,body{width:100%;height:100%}input::-ms-clear,input::-ms-reveal{display:none}*,*:before,*:after{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0)}@-ms-viewport{width:device-width}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:500}p{margin-top:0;margin-bottom:1em}abbr[title],abbr[data-original-title]{-webkit-text-decoration:underline dotted;text-decoration:underline;text-decoration:underline dotted;border-bottom:0;cursor:help}address{margin-bottom:1em;font-style:normal;line-height:inherit}input[type=text],input[type=password],input[type=number],textarea{-webkit-appearance:none}ol,ul,dl{margin-top:0;margin-bottom:1em}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}pre,code,kbd,samp{font-size:1em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}pre{margin-top:0;margin-bottom:1em;overflow:auto}figure{margin:0 0 1em}img{vertical-align:middle;border-style:none}a,area,button,[role=button],input:not([type="range"]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{padding-top:.75em;padding-bottom:.3em;text-align:left;caption-side:bottom}input,button,select,optgroup,textarea{margin:0;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{padding:0;border-style:none}input[type=radio],input[type=checkbox]{box-sizing:border-box;padding:0}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;margin:0;padding:0;border:0}legend{display:block;width:100%;max-width:100%;margin-bottom:.5em;padding:0;color:inherit;font-size:1.5em;line-height:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}mark{padding:.2em;background-color:#feffe6}._main_1hgxm_1{width:100vw;height:100vh;display:flex}._divRight_1hgxm_7{width:calc(100% - 48px);height:100%;display:flex;flex-direction:column}._divVmWrapperBase_1hgxm_14,._divVmWrapperVertical_1hgxm_14,._divVmWrapperHorizontal_1hgxm_14{width:100%;height:calc(100% - 40px);display:flex;background-color:var(--vm-wrapper-bkg-color)}._divVmWrapperBase_1hgxm_14>section,._divVmWrapperVertical_1hgxm_14>section,._divVmWrapperHorizontal_1hgxm_14>section{font-family:Roboto Mono,monospace}._divVmWrapperHorizontal_1hgxm_14>section[class=sectionIrEditor]{width:34%;height:100%}._divVmWrapperHorizontal_1hgxm_14>section[class=sectionVmConsole]{width:33%;height:100%;border-left:2px solid var(--vm-section-border-color);border-right:2px solid var(--vm-section-border-color)}._divVmWrapperHorizontal_1hgxm_14>section[class=sectionVmInspector]{width:33%;height:100%}._divVmWrapperVertical_1hgxm_14{flex-direction:column}._divVmWrapperVertical_1hgxm_14>section[class=sectionIrEditor]{width:100%;height:34%}._divVmWrapperVertical_1hgxm_14>section[class=sectionVmConsole]{width:100%;height:33%;border-top:2px solid var(--vm-section-border-color);border-bottom:2px solid var(--vm-section-border-color)}._divVmWrapperVertical_1hgxm_14>section[class=sectionVmInspector]{width:100%;height:33%}._asideSideBarWrapper_chse2_1{width:48px;height:100%;background-color:var(--sidebar-bkg-color);display:flex;flex-direction:column;justify-content:space-between;user-select:none}._divIconWrapperBase_chse2_11,._divIconWrapperLower_chse2_11,._divIconWrapperUpper_chse2_11{display:flex;flex-direction:column;align-items:center}._divIconWrapperUpper_chse2_11{padding-top:20px}._divIconWrapperLower_chse2_11{padding-bottom:20px}._articleAbout_chse2_25{text-align:center;font-size:14px}._articleAbout_chse2_25 p{margin-bottom:.7em}._articleAbout_chse2_25>p[class=title]{font-size:16px;font-weight:700}._articleAbout_chse2_25>p[class=info]{display:flex;justify-content:center;flex-wrap:wrap;gap:5px}._aDemoSources_chse2_43{margin-left:1em}._menuDemos_chse2_47{max-height:70vh;overflow-y:auto}._menuDemos_chse2_47 span[class~=ant-menu-title-content]{font-weight:700}._menuDemos_chse2_47 ul[class~=ant-menu]{background-color:#fff!important}._menuDemos_chse2_47 ul[class~=ant-menu] li[class~=ant-menu-item]{height:fit-content;margin:0!important;padding:0 0 0 30px!important;border-radius:0}._menuDemos_chse2_47 ul[class~=ant-menu] li[class~=ant-menu-item]:hover{background-color:#fff!important}._menuDemos_chse2_47 ul[class~=ant-menu] li[class~=ant-menu-item] [class~=ant-avatar]{background-color:var(--demo-item-avatar-color)}._menuDemos_chse2_47 ul[class~=ant-menu] li[class~=ant-menu-item] li[class~=ant-list-item]{transition-duration:.2s}._menuDemos_chse2_47 ul[class~=ant-menu] li[class~=ant-menu-item] li[class~=ant-list-item]:hover{background-color:var(--demo-item-hover-color)}._menuDemos_chse2_47 ul[class~=ant-menu] li[class~=ant-menu-item] li[class~=ant-list-item] [class~=ant-list-item-meta-title],._menuDemos_chse2_47 ul[class~=ant-menu] li[class~=ant-menu-item] li[class~=ant-list-item] [class~=ant-list-item-meta-description]{text-wrap:wrap;font-weight:400}._divIconWrapper_1eud3_1{width:100%;height:60px;font-size:25px;cursor:pointer;color:var(--sidebar-icon-color);transition-duration:.2s;display:flex;flex-direction:column;gap:5px;justify-content:center;align-items:center}._divIconWrapper_1eud3_1:hover{color:var(--sidebar-icon-hover-color)}._divIconWrapper_1eud3_1>label{font-size:12px;cursor:pointer}._navTabBarWrapper_1yoxc_1{background-color:var(--tabbar-bkg-color);height:40px;width:100%;overflow-x:auto;display:flex;user-select:none}._navTabBarWrapper_1yoxc_1::-webkit-scrollbar{width:5px;height:5px}._navTabBarWrapper_1yoxc_1::-webkit-scrollbar-thumb{background-color:#919191}._navTabBarWrapper_1yoxc_1::-webkit-scrollbar-thumb:hover{background-color:#a0a0a0}._navTabBarWrapper_1yoxc_1::-webkit-scrollbar-thumb:active{background-color:#afafaf}._navTabBarWrapper_1yoxc_1::-webkit-scrollbar-track{background-color:#dcdcdc}._divTabBarItemWrapperBase_11raq_1,._divTabBarItemWrapperActive_11raq_1,._divTabBarItemWrapperInactive_11raq_1{width:200px;min-width:200px;cursor:pointer;padding:0 10px;display:flex;justify-content:space-between;align-items:center;border-left:1px solid var(--tabbar-item-active-bkg-color)}._divTabBarItemWrapperInactive_11raq_1{background-color:var(--tabbar-item-inactive-bkg-color)}._divTabBarItemWrapperInactive_11raq_1:hover{background-color:var(--tabbar-item-inactive-hover-bkg-color)}._divTabBarItemWrapperActive_11raq_1{background-color:var(--tabbar-item-active-bkg-color)}._divIconTitleWrapper_11raq_23{display:flex;align-items:center}._divCloseWrapper_11raq_28,._divCloseWrapperChanged_11raq_28{display:flex;justify-content:center;align-items:center;width:20px;height:20px;border-radius:5px}._divCloseWrapper_11raq_28:hover,._divCloseWrapperChanged_11raq_28:hover{background-color:var(--tabbar-close-hover-bkg-color)}._divCloseWrapperChanged_11raq_28>:first-child{display:block}._divCloseWrapperChanged_11raq_28>:last-child{display:none}._divCloseWrapperChanged_11raq_28:hover>:first-child{display:none}._divCloseWrapperChanged_11raq_28:hover>:last-child{display:block}._iconVm_11raq_53{width:18px;margin-right:5px;fill:var(--tabbar-item-icon-color);stroke:var(--tabbar-item-icon-color)}._iconClose_11raq_60{font-size:13px;color:var(--tabbar-item-text-color)}._lblTitle_11raq_65{color:var(--tabbar-item-text-color);font-size:13px;cursor:pointer}._iconDot_11raq_71{position:relative;width:8px;fill:var(--tabbar-item-close-color);stroke:var(--tabbar-item-close-color)}._inVmRename_11raq_78{width:130px;font-size:13px;height:20px;padding:3px;border:1px solid var(--tabbar-item-rename-border-color);border-radius:3px;outline:0;color:var(--tabbar-item-text-color);background-color:transparent}@keyframes _scale-in_1bjxs_1{0%{transform:scale(.1)}to{transform:scale(1)}}._divEmptyHolder_1bjxs_9{width:100%;height:100%;padding:20px;display:flex;justify-content:center;align-items:center;font-size:27px;color:var(--vm-empty-holder-color)}._divEmptyHolderText_1bjxs_20{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:15px;animation-duration:.5s;animation-name:_scale-in_1bjxs_1}._divIrEditorWrapper_1neoh_1{width:100%;height:100%;max-height:100%;position:relative;background-color:var(--ir-editor-bkg-color);font-size:15px;line-height:20px;display:flex;overflow-y:auto}._divIrEditorWrapper_1neoh_1::-webkit-scrollbar{width:5px;height:5px}._divIrEditorWrapper_1neoh_1::-webkit-scrollbar-thumb{background-color:#919191}._divIrEditorWrapper_1neoh_1::-webkit-scrollbar-thumb:hover{background-color:#a0a0a0}._divIrEditorWrapper_1neoh_1::-webkit-scrollbar-thumb:active{background-color:#afafaf}._divIrEditorWrapper_1neoh_1::-webkit-scrollbar-track{background-color:#dcdcdc}._divIrEditorWrapper_1neoh_1::-webkit-scrollbar{width:10px;height:10px}._divLineNumberWrapper_1neoh_33{min-width:90px;min-height:100%;color:var(--ir-line-number-color);display:flex;flex-direction:column}._lblLineNumberBase_1neoh_41,._lblLineNumberIndication_1neoh_41,._lblLineNumberNormal_1neoh_41{width:100%;padding-left:15px;padding-right:20px;user-select:none;text-align:right}._lblLineNumberIndication_1neoh_41{background-color:var(--ir-indication-bkg-color)}._divIrWrapper_1neoh_53{flex-grow:1;color:var(--ir-color);overflow:visible}._divIrWrapper_1neoh_53::-webkit-scrollbar{width:5px;height:5px}._divIrWrapper_1neoh_53::-webkit-scrollbar-thumb{background-color:#919191}._divIrWrapper_1neoh_53::-webkit-scrollbar-thumb:hover{background-color:#a0a0a0}._divIrWrapper_1neoh_53::-webkit-scrollbar-thumb:active{background-color:#afafaf}._divIrWrapper_1neoh_53::-webkit-scrollbar-track{background-color:#dcdcdc}._divIrWrapper_1neoh_53::-webkit-scrollbar{width:10px;height:10px}._taIr_1neoh_79{position:relative;top:0;width:100%;min-height:calc(100% - 4px);padding:0;border:0;resize:none;outline:0;white-space:pre;overflow-y:hidden;background-color:transparent}@keyframes _fade-in_dmzcx_1{0%{filter:opacity(0)}to{filter:opacity(1)}}._divLineHighlighterWrapper_dmzcx_9{width:100%;height:20px;position:absolute;left:0}._divLineHighlighterBase_dmzcx_16,._divLineHighlighterError_dmzcx_16{width:calc(100% - 110px);margin-left:90px;height:100%;animation-name:_fade-in_dmzcx_1;animation-duration:.2s}._divLineHighlighterError_dmzcx_16{border-bottom:1.8px dotted var(--ir-error-border-color)}._divVmConsoleWrapper_1d163_1{width:100%;height:100%;max-height:100%;background-color:var(--vm-console-bkg-color);display:flex;flex-direction:column}._divVmConsole_1d163_1{width:100%;height:calc(100% - 50px);max-height:calc(100% - 50px);font-size:15px;line-height:20px;display:flex;flex-direction:column;overflow-y:auto}._divVmConsole_1d163_1::-webkit-scrollbar{width:5px;height:5px}._divVmConsole_1d163_1::-webkit-scrollbar-thumb{background-color:#919191}._divVmConsole_1d163_1::-webkit-scrollbar-thumb:hover{background-color:#a0a0a0}._divVmConsole_1d163_1::-webkit-scrollbar-thumb:active{background-color:#afafaf}._divVmConsole_1d163_1::-webkit-scrollbar-track{background-color:#dcdcdc}._divVmConsole_1d163_1::-webkit-scrollbar{width:10px;height:10px}._divOutputBlockWrapper_geev8_1{width:100%;padding:0 10px;font-size:15px;line-height:20px;display:flex;flex-wrap:wrap;word-break:break-all}._spanError_geev8_11{color:var(--vm-console-error-color)}._spanWarning_geev8_15{color:var(--vm-console-warning-color)}._spanSuccess_geev8_19{color:var(--vm-console-success-color)}._spanNormal_geev8_23{color:var(--vm-console-normal-color)}._spanPrompt_geev8_27{color:var(--vm-console-prompt-color)}._spanArrow_geev8_31{color:var(--vm-console-arrow-color)}._divInputBlockWrapper_1w97i_1{width:100%;padding:0 10px;font-size:15px;line-height:20px;display:flex}._spanArrow_1w97i_9{color:var(--vm-console-arrow-color)}._spanPrompt_1w97i_13{white-space:pre;color:var(--vm-console-prompt-color)}._in_1w97i_18{flex-grow:1;min-width:80px;height:20px;padding:0;border:0;outline:0;color:var(--vm-console-normal-color);background-color:transparent}._divControlPanelWrapper_x2oa8_1{width:100%;height:50px;display:flex;justify-content:space-between;padding:0 15px;user-select:none;font-family:sans-serif}._divSide_x2oa8_11{height:50px;display:flex;align-items:center}._iconRun_x2oa8_17{color:var(--control-panel-run-icon-color)}._iconStep_x2oa8_21{color:var(--control-panel-step-icon-color)}._iconReset_x2oa8_25{color:var(--control-panel-reset-icon-color)}._iconClear_x2oa8_29{color:var(--control-panel-clear-icon-color)}._divIconWrapper_shrpr_1{width:40px;height:50px;font-size:18px;cursor:pointer;transition-duration:.2s;display:flex;flex-direction:column;gap:3px;justify-content:center;align-items:center}._divIconWrapper_shrpr_1:hover{background-color:var(--control-panel-icon-hover-bkg-color)}._divIconWrapper_shrpr_1:active{background-color:var(--control-panel-icon-active-bkg-color)}._divIconWrapper_shrpr_1>label{font-size:12px;cursor:pointer;color:var(--control-panel-label-color)}._divVmInspectorWrapper_1ck6l_1{width:100%;height:100%;max-height:100%;padding:20px;background-color:var(--vm-inspector-bkg-color);display:flex;flex-direction:column;gap:20px;overflow-y:auto;font-family:sans-serif}._divVmInspectorWrapper_1ck6l_1::-webkit-scrollbar{width:5px;height:5px}._divVmInspectorWrapper_1ck6l_1::-webkit-scrollbar-thumb{background-color:#919191}._divVmInspectorWrapper_1ck6l_1::-webkit-scrollbar-thumb:hover{background-color:#a0a0a0}._divVmInspectorWrapper_1ck6l_1::-webkit-scrollbar-thumb:active{background-color:#afafaf}._divVmInspectorWrapper_1ck6l_1::-webkit-scrollbar-track{background-color:#dcdcdc}._divVmInspectorWrapper_1ck6l_1::-webkit-scrollbar{width:10px;height:10px}._divStepStateCard_1ck6l_34{padding:15px 20px;border:1px solid var(--vm-inspector-card-border-color);border-radius:8px;background-color:var(--vm-inspector-card-bkg-color);width:100%;display:flex;flex-direction:column;gap:10px}._divStepStateWrapper_1ck6l_45{display:flex;align-items:flex-start;flex-wrap:wrap}._lblStepStateLabel_1ck6l_51{font-size:20px;color:var(--vm-inspector-step-state-label-color);white-space:pre;user-select:none}._divStepCount_1ck6l_58{font-size:20px;font-weight:700;color:var(--vm-inspector-step-count-color)}._divStateBase_1ck6l_64,._divStateExitedAbnormally_1ck6l_64,._divStateExitedNormally_1ck6l_64,._divStateMaxStepReached_1ck6l_64,._divStateRuntimeError_1ck6l_64,._divStateStaticCheckFailed_1ck6l_64,._divStateFree_1ck6l_64,._divStateWaitInput_1ck6l_64,._divStateBusy_1ck6l_64,._divStateInitial_1ck6l_64{font-size:20px;font-weight:700}._divStateInitial_1ck6l_64{color:var(--vm-inspector-state-initial-color)}._divStateBusy_1ck6l_64{color:var(--vm-inspector-state-busy-color)}._divStateWaitInput_1ck6l_64{color:var(--vm-inspector-state-wait-input-color)}._divStateFree_1ck6l_64{color:var(--vm-inspector-state-free-color)}._divStateStaticCheckFailed_1ck6l_64{color:var(--vm-inspector-state-static-check-failed-color)}._divStateRuntimeError_1ck6l_64{color:var(--vm-inspector-state-runtime-error-color)}._divStateMaxStepReached_1ck6l_64{color:var(--vm-inspector-state-max-step-reached-color)}._divStateExitedNormally_1ck6l_64{color:var(--vm-inspector-state-exited-normally-color)}._divStateExitedAbnormally_1ck6l_64{color:var(--vm-inspector-state-exited-abnormally-color)}._divOptionsCard_1ck6l_105{padding:15px 20px;border:1px solid var(--vm-inspector-card-border-color);border-radius:8px;background-color:var(--vm-inspector-card-bkg-color);display:flex;justify-content:center;flex-wrap:wrap;gap:20px;color:var(--vm-inspector-text-color)}._divOptionWrapper_1ck6l_117{display:flex;flex-direction:column;align-items:center;gap:5px}._lblOption_1ck6l_124{font-size:14px;user-select:none}._iconOptionInfo_1ck6l_129{margin-left:5px;color:var(--vm-inspector-option-info-icon-color);cursor:pointer;transition-duration:.2s}._iconOptionInfo_1ck6l_129:hover{color:var(--vm-inspector-option-info-icon-hover-color)}._inOptionValue_1ck6l_139{width:110px}._divMemoryUsageCard_1ck6l_143{border:1px solid var(--vm-inspector-card-border-color);border-radius:8px;background-color:var(--vm-inspector-card-bkg-color);display:flex;justify-content:center;flex-wrap:wrap;padding:8px 15px 15px;gap:20px;color:var(--vm-inspector-text-color)}._divGlobalVariableTableCard_1ck6l_158{padding:15px 20px;border:1px solid var(--vm-inspector-card-border-color);border-radius:8px;background-color:var(--vm-inspector-card-bkg-color);display:flex;flex-direction:column;align-items:center;gap:20px;color:var(--vm-inspector-text-color)}._divGlobalVariableTableCard_1ck6l_158>label[class=title]{font-weight:700;user-select:none}._divLocalVariableTableCard_1ck6l_174{padding:15px 20px;border:1px solid var(--vm-inspector-card-border-color);border-radius:8px;background-color:var(--vm-inspector-card-bkg-color);display:flex;flex-direction:column;align-items:center;gap:20px;color:var(--vm-inspector-text-color)}._divLocalVariableTableCard_1ck6l_174>label[class=title]{font-weight:700;user-select:none}._divLocalVariableTableCard_1ck6l_174>div[class=emptyHolder]{font-size:15px;user-select:none}._divLocalVariableTableWrapper_1ck6l_194{width:100%;display:flex;flex-direction:column;gap:20px}._divLocalVariableTable_1ck6l_174{width:100%;display:flex;flex-direction:column;align-items:center;gap:8px}._divLocalVariableTable_1ck6l_174>div[class=titleWrapper]{align-self:flex-start}._divLocalVariableTable_1ck6l_174>div[class=titleWrapper]>label[class=functionName]{font-size:14px;font-weight:700;margin-left:.6em}._divLocalVariableTable_1ck6l_174>div[class=titleWrapper]>label[class=callStackDepth]{margin-left:.6em;font-size:14px}._paginationLocalVariableTable_1ck6l_221{user-select:none}._divMemoryUsageWrapper_1rsex_1{display:flex;flex-direction:column;align-items:center}._divUsageBlock_1rsex_7{width:100%;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:13px}._divUsageBlock_1rsex_7 label{user-select:none}._divUsageBlock_1rsex_7 label[class=percentageUsage]{font-weight:700}._divUsageBlock_1rsex_7 span{font-family:Roboto Mono,monospace}._progress_1rsex_25{margin:0}._divVariableTableWrapper_1vw2e_1{width:100%;text-align:center}._divVariableTableWrapper_1vw2e_1>div[class=emptyHolder]{font-size:15px;user-select:none}._divValues_1vw2e_10{max-height:300px;overflow-y:auto}._divValues_1vw2e_10::-webkit-scrollbar{width:5px;height:5px}._divValues_1vw2e_10::-webkit-scrollbar-thumb{background-color:#919191}._divValues_1vw2e_10::-webkit-scrollbar-thumb:hover{background-color:#a0a0a0}._divValues_1vw2e_10::-webkit-scrollbar-thumb:active{background-color:#afafaf}._divValues_1vw2e_10::-webkit-scrollbar-track{background-color:#dcdcdc}.themeLight{--sidebar-bkg-color: rgb(44, 44, 44);--sidebar-icon-color: rgba(255, 255, 255, .5);--sidebar-icon-hover-color: rgba(255, 255, 255, .9);--demo-item-avatar-color: rgb(66, 160, 255);--demo-item-hover-color: rgba(0, 0, 0, .05);--tabbar-bkg-color: rgb(243, 243, 243);--tabbar-item-inactive-bkg-color: rgb(236, 236, 236);--tabbar-item-inactive-hover-bkg-color: rgb(245, 245, 245);--tabbar-item-active-bkg-color: rgb(255, 255, 255);--tabbar-item-icon-color: rgba(0, 0, 0, .5);--tabbar-item-text-color: rgb(0, 0, 0);--tabbar-item-rename-border-color: rgb(176, 176, 176);--tabbar-item-close-color: rgba(0, 0, 0, .7);--tabbar-close-hover-bkg-color: rgba(0, 0, 0, .1);--vm-wrapper-bkg-color: #fff;--vm-empty-holder-color: rgba(0, 0, 0, .5);--vm-section-border-color: #e7e7e7;--ir-editor-bkg-color: #fff;--ir-line-number-color: #237893;--ir-color: #000;--ir-error-border-color: rgb(255, 21, 41);--ir-indication-bkg-color: #9abfff;--vm-console-bkg-color: #fff;--vm-console-error-color: rgb(203, 36, 49);--vm-console-warning-color: rgb(227, 170, 25);--vm-console-success-color: rgb(28, 121, 49);--vm-console-normal-color: rgb(31, 31, 32);--vm-console-prompt-color: rgb(148, 154, 161);--vm-console-arrow-color: rgb(0, 120, 212);--control-panel-label-color: rgb(71, 75, 80);--control-panel-run-icon-color: rgb(123, 195, 121);--control-panel-step-icon-color: rgb(123, 195, 121);--control-panel-reset-icon-color: rgb(90, 136, 215);--control-panel-clear-icon-color: rgb(118, 121, 126);--control-panel-icon-hover-bkg-color: rgba(0, 0, 0, .05);--control-panel-icon-active-bkg-color: rgba(0, 0, 0, .09);--vm-inspector-bkg-color: #fff;--vm-inspector-step-state-label-color: #414141;--vm-inspector-step-count-color: #9b0000;--vm-inspector-state-initial-color: #0059de;--vm-inspector-state-busy-color: #a32b00;--vm-inspector-state-wait-input-color: #f2ba00;--vm-inspector-state-free-color: #00c3ff;--vm-inspector-state-static-check-failed-color: #ff0000;--vm-inspector-state-runtime-error-color: #ff0000;--vm-inspector-state-max-step-reached-color: #3c00ff;--vm-inspector-state-exited-normally-color: #24a600;--vm-inspector-state-exited-abnormally-color: #ff8000;--vm-inspector-card-border-color: #f0f0f0;--vm-inspector-card-bkg-color: #fff;--vm-inspector-text-color: #000000;--vm-inspector-option-info-icon-color: #666;--vm-inspector-option-info-icon-hover-color: #333} diff --git a/docs/assets/index-f0d67865.js b/docs/assets/index-f0d67865.js new file mode 100644 index 0000000..f41c69f --- /dev/null +++ b/docs/assets/index-f0d67865.js @@ -0,0 +1,520 @@ +var MH=Object.defineProperty;var AH=(e,t,n)=>t in e?MH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var tr=(e,t,n)=>(AH(e,typeof t!="symbol"?t+"":t,n),n);function nP(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 Qc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rP(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qd={},LH={get exports(){return qd},set exports(e){qd=e}},Sg={},c={},DH={get exports(){return c},set exports(e){c=e}},Vt={};/** + * @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 Df=Symbol.for("react.element"),kH=Symbol.for("react.portal"),FH=Symbol.for("react.fragment"),BH=Symbol.for("react.strict_mode"),zH=Symbol.for("react.profiler"),HH=Symbol.for("react.provider"),jH=Symbol.for("react.context"),VH=Symbol.for("react.forward_ref"),UH=Symbol.for("react.suspense"),WH=Symbol.for("react.memo"),KH=Symbol.for("react.lazy"),JO=Symbol.iterator;function GH(e){return e===null||typeof e!="object"?null:(e=JO&&e[JO]||e["@@iterator"],typeof e=="function"?e:null)}var oP={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},iP=Object.assign,aP={};function wc(e,t,n){this.props=e,this.context=t,this.refs=aP,this.updater=n||oP}wc.prototype.isReactComponent={};wc.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")};wc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function lP(){}lP.prototype=wc.prototype;function g1(e,t,n){this.props=e,this.context=t,this.refs=aP,this.updater=n||oP}var v1=g1.prototype=new lP;v1.constructor=g1;iP(v1,wc.prototype);v1.isPureReactComponent=!0;var e$=Array.isArray,sP=Object.prototype.hasOwnProperty,y1={current:null},uP={key:!0,ref:!0,__self:!0,__source:!0};function cP(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)sP.call(t,r)&&!uP.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1>>1,X=H[U];if(0>>1;Uo(q,G))neo(le,q)?(H[U]=le,H[ne]=G,U=ne):(H[U]=q,H[Y]=G,U=Y);else if(neo(le,G))H[U]=le,H[ne]=G,U=ne;else break e}}return W}function o(H,W){var G=H.sortIndex-W.sortIndex;return G!==0?G: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,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],d=[],f=1,m=null,h=3,g=!1,v=!1,C=!1,S=typeof setTimeout=="function"?setTimeout:null,y=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 E(H){for(var W=n(d);W!==null;){if(W.callback===null)r(d);else if(W.startTime<=H)r(d),W.sortIndex=W.expirationTime,t(s,W);else break;W=n(d)}}function O(H){if(C=!1,E(H),!v)if(n(s)!==null)v=!0,F(w);else{var W=n(d);W!==null&&V(O,W.startTime-H)}}function w(H,W){v=!1,C&&(C=!1,y(_),_=-1),g=!0;var G=h;try{for(E(W),m=n(s);m!==null&&(!(m.expirationTime>W)||H&&!D());){var U=m.callback;if(typeof U=="function"){m.callback=null,h=m.priorityLevel;var X=U(m.expirationTime<=W);W=e.unstable_now(),typeof X=="function"?m.callback=X:m===n(s)&&r(s),E(W)}else r(s);m=n(s)}if(m!==null)var Q=!0;else{var Y=n(d);Y!==null&&V(O,Y.startTime-W),Q=!1}return Q}finally{m=null,h=G,g=!1}}var $=!1,R=null,_=-1,M=5,T=-1;function D(){return!(e.unstable_now()-TH||125U?(H.sortIndex=G,t(d,H),n(s)===null&&H===n(d)&&(C?(y(_),_=-1):C=!0,V(O,G-U))):(H.sortIndex=X,t(s,H),v||g||(v=!0,F(w))),H},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(H){var W=h;return function(){var G=h;h=W;try{return H.apply(this,arguments)}finally{h=G}}}})(fP);(function(e){e.exports=fP})(a8);/** + * @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 pP=c,Lo=Mb;function Ve(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"),Ab=Object.prototype.hasOwnProperty,l8=/^[: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]*$/,n$={},r$={};function s8(e){return Ab.call(r$,e)?!0:Ab.call(n$,e)?!1:l8.test(e)?r$[e]=!0:(n$[e]=!0,!1)}function u8(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 c8(e,t,n,r){if(t===null||typeof t>"u"||u8(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 Qr(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 wr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){wr[e]=new Qr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];wr[t]=new Qr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){wr[e]=new Qr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){wr[e]=new Qr(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){wr[e]=new Qr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){wr[e]=new Qr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){wr[e]=new Qr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){wr[e]=new Qr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){wr[e]=new Qr(e,5,!1,e.toLowerCase(),null,!1,!1)});var S1=/[\-:]([a-z])/g;function C1(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(S1,C1);wr[t]=new Qr(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(S1,C1);wr[t]=new Qr(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(S1,C1);wr[t]=new Qr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){wr[e]=new Qr(e,1,!1,e.toLowerCase(),null,!1,!1)});wr.xlinkHref=new Qr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){wr[e]=new Qr(e,1,!1,e.toLowerCase(),null,!0,!0)});function x1(e,t,n,r){var o=wr.hasOwnProperty(t)?wr[t]:null;(o!==null?o.type!==0:r||!(2l||o[a]!==i[l]){var s=` +`+o[a].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{J0=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?vd(e):""}function d8(e){switch(e.tag){case 5:return vd(e.type);case 16:return vd("Lazy");case 13:return vd("Suspense");case 19:return vd("SuspenseList");case 0:case 2:case 15:return e=ey(e.type,!1),e;case 11:return e=ey(e.type.render,!1),e;case 1:return e=ey(e.type,!0),e;default:return""}}function Fb(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 Ru:return"Fragment";case Iu:return"Portal";case Lb:return"Profiler";case E1:return"StrictMode";case Db:return"Suspense";case kb:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case gP:return(e.displayName||"Context")+".Consumer";case hP:return(e._context.displayName||"Context")+".Provider";case w1:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case O1:return t=e.displayName||null,t!==null?t:Fb(e.type)||"Memo";case sl:t=e._payload,e=e._init;try{return Fb(e(t))}catch{}}return null}function f8(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 Fb(t);case 8:return t===E1?"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 Nl(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function yP(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function p8(e){var t=yP(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 Zp(e){e._valueTracker||(e._valueTracker=p8(e))}function bP(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=yP(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ph(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 Bb(e,t){var n=t.checked;return An({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function i$(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Nl(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 SP(e,t){t=t.checked,t!=null&&x1(e,"checked",t,!1)}function zb(e,t){SP(e,t);var n=Nl(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")?Hb(e,t.type,n):t.hasOwnProperty("defaultValue")&&Hb(e,t.type,Nl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function a$(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 Hb(e,t,n){(t!=="number"||ph(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var yd=Array.isArray;function Uu(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Jp.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Jd(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Rd={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},m8=["Webkit","ms","Moz","O"];Object.keys(Rd).forEach(function(e){m8.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Rd[t]=Rd[e]})});function wP(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Rd.hasOwnProperty(e)&&Rd[e]?(""+t).trim():t+"px"}function OP(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=wP(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var h8=An({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 Ub(e,t){if(t){if(h8[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ve(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ve(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ve(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ve(62))}}function Wb(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 Kb=null;function $1(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Gb=null,Wu=null,Ku=null;function u$(e){if(e=Bf(e)){if(typeof Gb!="function")throw Error(Ve(280));var t=e.stateNode;t&&(t=Og(t),Gb(e.stateNode,e.type,t))}}function $P(e){Wu?Ku?Ku.push(e):Ku=[e]:Wu=e}function IP(){if(Wu){var e=Wu,t=Ku;if(Ku=Wu=null,u$(e),t)for(e=0;e>>=0,e===0?32:31-($8(e)/I8|0)|0}var em=64,tm=4194304;function bd(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 vh(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~o;l!==0?r=bd(l):(i&=a,i!==0&&(r=bd(i)))}else a=n&~o,a!==0?r=bd(a):i!==0&&(r=bd(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 kf(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-_i(t),e[t]=n}function P8(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=Td),y$=String.fromCharCode(32),b$=!1;function GP(e,t){switch(e){case"keyup":return ij.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function XP(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var _u=!1;function lj(e,t){switch(e){case"compositionend":return XP(t);case"keypress":return t.which!==32?null:(b$=!0,y$);case"textInput":return e=t.data,e===y$&&b$?null:e;default:return null}}function sj(e,t){if(_u)return e==="compositionend"||!A1&&GP(e,t)?(e=WP(),jm=P1=hl=null,_u=!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=E$(n)}}function ZP(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ZP(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function JP(){for(var e=window,t=ph();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ph(e.document)}return t}function L1(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 vj(e){var t=JP(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ZP(n.ownerDocument.documentElement,n)){if(r!==null&&L1(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=w$(n,i);var a=w$(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,Tu=null,Jb=null,Nd=null,eS=!1;function O$(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;eS||Tu==null||Tu!==ph(r)||(r=Tu,"selectionStart"in r&&L1(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}),Nd&&af(Nd,r)||(Nd=r,r=Sh(Jb,"onSelect"),0Mu||(e.current=aS[Mu],aS[Mu]=null,Mu--)}function vn(e,t){Mu++,aS[Mu]=e.current,e.current=t}var Ml={},Dr=Fl(Ml),co=Fl(!1),$s=Ml;function ic(e,t){var n=e.type.contextTypes;if(!n)return Ml;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 fo(e){return e=e.childContextTypes,e!=null}function xh(){xn(co),xn(Dr)}function N$(e,t,n){if(Dr.current!==Ml)throw Error(Ve(168));vn(Dr,t),vn(co,n)}function sN(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(Ve(108,f8(e)||"Unknown",o));return An({},n,r)}function Eh(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ml,$s=Dr.current,vn(Dr,e),vn(co,co.current),!0}function M$(e,t,n){var r=e.stateNode;if(!r)throw Error(Ve(169));n?(e=sN(e,t,$s),r.__reactInternalMemoizedMergedChildContext=e,xn(co),xn(Dr),vn(Dr,e)):xn(co),vn(co,n)}var $a=null,$g=!1,my=!1;function uN(e){$a===null?$a=[e]:$a.push(e)}function _j(e){$g=!0,uN(e)}function Bl(){if(!my&&$a!==null){my=!0;var e=0,t=ln;try{var n=$a;for(ln=1;e>=a,o-=a,Ia=1<<32-_i(t)+o|n<_?(M=R,R=null):M=R.sibling;var T=h(y,R,E[_],O);if(T===null){R===null&&(R=M);break}e&&R&&T.alternate===null&&t(y,R),x=i(T,x,_),$===null?w=T:$.sibling=T,$=T,R=M}if(_===E.length)return n(y,R),$n&&ns(y,_),w;if(R===null){for(;__?(M=R,R=null):M=R.sibling;var D=h(y,R,T.value,O);if(D===null){R===null&&(R=M);break}e&&R&&D.alternate===null&&t(y,R),x=i(D,x,_),$===null?w=D:$.sibling=D,$=D,R=M}if(T.done)return n(y,R),$n&&ns(y,_),w;if(R===null){for(;!T.done;_++,T=E.next())T=m(y,T.value,O),T!==null&&(x=i(T,x,_),$===null?w=T:$.sibling=T,$=T);return $n&&ns(y,_),w}for(R=r(y,R);!T.done;_++,T=E.next())T=g(R,y,_,T.value,O),T!==null&&(e&&T.alternate!==null&&R.delete(T.key===null?_:T.key),x=i(T,x,_),$===null?w=T:$.sibling=T,$=T);return e&&R.forEach(function(N){return t(y,N)}),$n&&ns(y,_),w}function S(y,x,E,O){if(typeof E=="object"&&E!==null&&E.type===Ru&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case Qp:e:{for(var w=E.key,$=x;$!==null;){if($.key===w){if(w=E.type,w===Ru){if($.tag===7){n(y,$.sibling),x=o($,E.props.children),x.return=y,y=x;break e}}else if($.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===sl&&z$(w)===$.type){n(y,$.sibling),x=o($,E.props),x.ref=rd(y,$,E),x.return=y,y=x;break e}n(y,$);break}else t(y,$);$=$.sibling}E.type===Ru?(x=bs(E.props.children,y.mode,O,E.key),x.return=y,y=x):(O=qm(E.type,E.key,E.props,null,y.mode,O),O.ref=rd(y,x,E),O.return=y,y=O)}return a(y);case Iu:e:{for($=E.key;x!==null;){if(x.key===$)if(x.tag===4&&x.stateNode.containerInfo===E.containerInfo&&x.stateNode.implementation===E.implementation){n(y,x.sibling),x=o(x,E.children||[]),x.return=y,y=x;break e}else{n(y,x);break}else t(y,x);x=x.sibling}x=xy(E,y.mode,O),x.return=y,y=x}return a(y);case sl:return $=E._init,S(y,x,$(E._payload),O)}if(yd(E))return v(y,x,E,O);if(Zc(E))return C(y,x,E,O);sm(y,E)}return typeof E=="string"&&E!==""||typeof E=="number"?(E=""+E,x!==null&&x.tag===6?(n(y,x.sibling),x=o(x,E),x.return=y,y=x):(n(y,x),x=Cy(E,y.mode,O),x.return=y,y=x),a(y)):n(y,x)}return S}var lc=vN(!0),yN=vN(!1),zf={},oa=Fl(zf),cf=Fl(zf),df=Fl(zf);function ds(e){if(e===zf)throw Error(Ve(174));return e}function U1(e,t){switch(vn(df,t),vn(cf,e),vn(oa,zf),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Vb(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Vb(t,e)}xn(oa),vn(oa,t)}function sc(){xn(oa),xn(cf),xn(df)}function bN(e){ds(df.current);var t=ds(oa.current),n=Vb(t,e.type);t!==n&&(vn(cf,e),vn(oa,n))}function W1(e){cf.current===e&&(xn(oa),xn(cf))}var Nn=Fl(0);function _h(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 hy=[];function K1(){for(var e=0;en?n:4,e(!0);var r=gy.transition;gy.transition={};try{e(!1),t()}finally{ln=n,gy.transition=r}}function LN(){return ai().memoizedState}function Mj(e,t,n){var r=$l(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},DN(e))kN(t,n);else if(n=pN(e,t,n,r),n!==null){var o=Xr();Ti(n,e,r,o),FN(n,t,r)}}function Aj(e,t,n){var r=$l(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(DN(e))kN(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,Mi(l,a)){var s=t.interleaved;s===null?(o.next=o,j1(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=pN(e,t,o,r),n!==null&&(o=Xr(),Ti(n,e,r,o),FN(n,t,r))}}function DN(e){var t=e.alternate;return e===Mn||t!==null&&t===Mn}function kN(e,t){Md=Th=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function FN(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,R1(e,n)}}var Ph={readContext:ii,useCallback:Tr,useContext:Tr,useEffect:Tr,useImperativeHandle:Tr,useInsertionEffect:Tr,useLayoutEffect:Tr,useMemo:Tr,useReducer:Tr,useRef:Tr,useState:Tr,useDebugValue:Tr,useDeferredValue:Tr,useTransition:Tr,useMutableSource:Tr,useSyncExternalStore:Tr,useId:Tr,unstable_isNewReconciler:!1},Lj={readContext:ii,useCallback:function(e,t){return Xi().memoizedState=[e,t===void 0?null:t],e},useContext:ii,useEffect:j$,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Km(4194308,4,TN.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Km(4194308,4,e,t)},useInsertionEffect:function(e,t){return Km(4,2,e,t)},useMemo:function(e,t){var n=Xi();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Xi();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=Mj.bind(null,Mn,e),[r.memoizedState,e]},useRef:function(e){var t=Xi();return e={current:e},t.memoizedState=e},useState:H$,useDebugValue:Q1,useDeferredValue:function(e){return Xi().memoizedState=e},useTransition:function(){var e=H$(!1),t=e[0];return e=Nj.bind(null,e[1]),Xi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Mn,o=Xi();if($n){if(n===void 0)throw Error(Ve(407));n=n()}else{if(n=t(),fr===null)throw Error(Ve(349));Rs&30||xN(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,j$(wN.bind(null,r,i,e),[e]),r.flags|=2048,mf(9,EN.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Xi(),t=fr.identifierPrefix;if($n){var n=Ra,r=Ia;n=(r&~(1<<32-_i(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ff++,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[ta]=t,e[uf]=r,GN(e,t,!1,!1),t.stateNode=e;e:{switch(a=Wb(n,r),n){case"dialog":Sn("cancel",e),Sn("close",e),o=r;break;case"iframe":case"object":case"embed":Sn("load",e),o=r;break;case"video":case"audio":for(o=0;occ&&(t.flags|=128,r=!0,od(i,!1),t.lanes=4194304)}else{if(!r)if(e=_h(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),od(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!$n)return Pr(t),null}else 2*Vn()-i.renderingStartTime>cc&&n!==1073741824&&(t.flags|=128,r=!0,od(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=Vn(),t.sibling=null,n=Nn.current,vn(Nn,r?n&1|2:n&1),t):(Pr(t),null);case 22:case 23:return rx(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?To&1073741824&&(Pr(t),t.subtreeFlags&6&&(t.flags|=8192)):Pr(t),null;case 24:return null;case 25:return null}throw Error(Ve(156,t.tag))}function Vj(e,t){switch(k1(t),t.tag){case 1:return fo(t.type)&&xh(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return sc(),xn(co),xn(Dr),K1(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return W1(t),null;case 13:if(xn(Nn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ve(340));ac()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return xn(Nn),null;case 4:return sc(),null;case 10:return H1(t.type._context),null;case 22:case 23:return rx(),null;case 24:return null;default:return null}}var cm=!1,Ar=!1,Uj=typeof WeakSet=="function"?WeakSet:Set,st=null;function ku(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Fn(e,t,r)}else n.current=null}function yS(e,t,n){try{n()}catch(r){Fn(e,t,r)}}var Q$=!1;function Wj(e,t){if(tS=yh,e=JP(),L1(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,l=-1,s=-1,d=0,f=0,m=e,h=null;t:for(;;){for(var g;m!==n||o!==0&&m.nodeType!==3||(l=a+o),m!==i||r!==0&&m.nodeType!==3||(s=a+r),m.nodeType===3&&(a+=m.nodeValue.length),(g=m.firstChild)!==null;)h=m,m=g;for(;;){if(m===e)break t;if(h===n&&++d===o&&(l=a),h===i&&++f===r&&(s=a),(g=m.nextSibling)!==null)break;m=h,h=m.parentNode}m=g}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(nS={focusedElem:e,selectionRange:n},yh=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){t=st;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 C=v.memoizedProps,S=v.memoizedState,y=t.stateNode,x=y.getSnapshotBeforeUpdate(t.elementType===t.type?C:Ei(t.type,C),S);y.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var E=t.stateNode.containerInfo;E.nodeType===1?E.textContent="":E.nodeType===9&&E.documentElement&&E.removeChild(E.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ve(163))}}catch(O){Fn(t,t.return,O)}if(e=t.sibling,e!==null){e.return=t.return,st=e;break}st=t.return}return v=Q$,Q$=!1,v}function Ad(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&&yS(t,n,i)}o=o.next}while(o!==r)}}function _g(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 bS(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 qN(e){var t=e.alternate;t!==null&&(e.alternate=null,qN(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ta],delete t[uf],delete t[iS],delete t[Ij],delete t[Rj])),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 QN(e){return e.tag===5||e.tag===3||e.tag===4}function Z$(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||QN(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 SS(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=Ch));else if(r!==4&&(e=e.child,e!==null))for(SS(e,t,n),e=e.sibling;e!==null;)SS(e,t,n),e=e.sibling}function CS(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(CS(e,t,n),e=e.sibling;e!==null;)CS(e,t,n),e=e.sibling}var Cr=null,wi=!1;function nl(e,t,n){for(n=n.child;n!==null;)ZN(e,t,n),n=n.sibling}function ZN(e,t,n){if(ra&&typeof ra.onCommitFiberUnmount=="function")try{ra.onCommitFiberUnmount(Cg,n)}catch{}switch(n.tag){case 5:Ar||ku(n,t);case 6:var r=Cr,o=wi;Cr=null,nl(e,t,n),Cr=r,wi=o,Cr!==null&&(wi?(e=Cr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Cr.removeChild(n.stateNode));break;case 18:Cr!==null&&(wi?(e=Cr,n=n.stateNode,e.nodeType===8?py(e.parentNode,n):e.nodeType===1&&py(e,n),rf(e)):py(Cr,n.stateNode));break;case 4:r=Cr,o=wi,Cr=n.stateNode.containerInfo,wi=!0,nl(e,t,n),Cr=r,wi=o;break;case 0:case 11:case 14:case 15:if(!Ar&&(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)&&yS(n,t,a),o=o.next}while(o!==r)}nl(e,t,n);break;case 1:if(!Ar&&(ku(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Fn(n,t,l)}nl(e,t,n);break;case 21:nl(e,t,n);break;case 22:n.mode&1?(Ar=(r=Ar)||n.memoizedState!==null,nl(e,t,n),Ar=r):nl(e,t,n);break;default:nl(e,t,n)}}function J$(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Uj),t.forEach(function(r){var o=eV.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Si(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=Vn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Gj(r/1960))-r,10e?16:e,gl===null)var r=!1;else{if(e=gl,gl=null,Ah=0,Qt&6)throw Error(Ve(331));var o=Qt;for(Qt|=4,st=e.current;st!==null;){var i=st,a=i.child;if(st.flags&16){var l=i.deletions;if(l!==null){for(var s=0;sVn()-tx?ys(e,0):ex|=n),po(e,t)}function a2(e,t){t===0&&(e.mode&1?(t=tm,tm<<=1,!(tm&130023424)&&(tm=4194304)):t=1);var n=Xr();e=La(e,t),e!==null&&(kf(e,t,n),po(e,n))}function Jj(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),a2(e,n)}function eV(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(Ve(314))}r!==null&&r.delete(t),a2(e,n)}var l2;l2=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||co.current)uo=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return uo=!1,Hj(e,t,n);uo=!!(e.flags&131072)}else uo=!1,$n&&t.flags&1048576&&cN(t,Oh,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Gm(e,t),e=t.pendingProps;var o=ic(t,Dr.current);Xu(t,n),o=X1(null,t,r,e,o,n);var i=Y1();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,fo(r)?(i=!0,Eh(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,V1(t),o.updater=Ig,t.stateNode=o,o._reactInternals=t,dS(t,r,e,n),t=mS(null,t,r,!0,i,n)):(t.tag=0,$n&&i&&D1(t),Gr(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Gm(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=nV(r),e=Ei(r,e),o){case 0:t=pS(null,t,r,e,n);break e;case 1:t=X$(null,t,r,e,n);break e;case 11:t=K$(null,t,r,e,n);break e;case 14:t=G$(null,t,r,Ei(r.type,e),n);break e}throw Error(Ve(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ei(r,o),pS(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ei(r,o),X$(e,t,r,o,n);case 3:e:{if(UN(t),e===null)throw Error(Ve(387));r=t.pendingProps,i=t.memoizedState,o=i.element,mN(e,t),Rh(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=uc(Error(Ve(423)),t),t=Y$(e,t,r,n,o);break e}else if(r!==o){o=uc(Error(Ve(424)),t),t=Y$(e,t,r,n,o);break e}else for(No=El(t.stateNode.containerInfo.firstChild),Ao=t,$n=!0,Oi=null,n=yN(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ac(),r===o){t=Da(e,t,n);break e}Gr(e,t,r,n)}t=t.child}return t;case 5:return bN(t),e===null&&sS(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,rS(r,o)?a=null:i!==null&&rS(r,i)&&(t.flags|=32),VN(e,t),Gr(e,t,a,n),t.child;case 6:return e===null&&sS(t),null;case 13:return WN(e,t,n);case 4:return U1(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=lc(t,null,r,n):Gr(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ei(r,o),K$(e,t,r,o,n);case 7:return Gr(e,t,t.pendingProps,n),t.child;case 8:return Gr(e,t,t.pendingProps.children,n),t.child;case 12:return Gr(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,vn($h,r._currentValue),r._currentValue=a,i!==null)if(Mi(i.value,a)){if(i.children===o.children&&!co.current){t=Da(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=Pa(-1,n&-n),s.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var f=d.pending;f===null?s.next=s:(s.next=f.next,f.next=s),d.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),uS(i.return,n,t),l.lanes|=n;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(Ve(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),uS(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}Gr(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Xu(t,n),o=ii(o),r=r(o),t.flags|=1,Gr(e,t,r,n),t.child;case 14:return r=t.type,o=Ei(r,t.pendingProps),o=Ei(r.type,o),G$(e,t,r,o,n);case 15:return HN(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ei(r,o),Gm(e,t),t.tag=1,fo(r)?(e=!0,Eh(t)):e=!1,Xu(t,n),gN(t,r,o),dS(t,r,o,n),mS(null,t,r,!0,e,n);case 19:return KN(e,t,n);case 22:return jN(e,t,n)}throw Error(Ve(156,t.tag))};function s2(e,t){return AP(e,t)}function tV(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 ni(e,t,n,r){return new tV(e,t,n,r)}function ix(e){return e=e.prototype,!(!e||!e.isReactComponent)}function nV(e){if(typeof e=="function")return ix(e)?1:0;if(e!=null){if(e=e.$$typeof,e===w1)return 11;if(e===O1)return 14}return 2}function Il(e,t){var n=e.alternate;return n===null?(n=ni(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 qm(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")ix(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Ru:return bs(n.children,o,i,t);case E1:a=8,o|=8;break;case Lb:return e=ni(12,n,t,o|2),e.elementType=Lb,e.lanes=i,e;case Db:return e=ni(13,n,t,o),e.elementType=Db,e.lanes=i,e;case kb:return e=ni(19,n,t,o),e.elementType=kb,e.lanes=i,e;case vP:return Pg(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case hP:a=10;break e;case gP:a=9;break e;case w1:a=11;break e;case O1:a=14;break e;case sl:a=16,r=null;break e}throw Error(Ve(130,e==null?e:typeof e,""))}return t=ni(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function bs(e,t,n,r){return e=ni(7,e,r,t),e.lanes=n,e}function Pg(e,t,n,r){return e=ni(22,e,r,t),e.elementType=vP,e.lanes=n,e.stateNode={isHidden:!1},e}function Cy(e,t,n){return e=ni(6,e,null,t),e.lanes=n,e}function xy(e,t,n){return t=ni(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function rV(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=ny(0),this.expirationTimes=ny(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ny(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ax(e,t,n,r,o,i,a,l,s){return e=new rV(e,t,n,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ni(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},V1(i),e}function oV(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=ko})(i8);const dc=rP(Ni),uV=nP({__proto__:null,default:dc},[Ni]);var lI=Ni;Nb.createRoot=lI.createRoot,Nb.hydrateRoot=lI.hydrateRoot;var $S={},cV={get exports(){return $S},set exports(e){$S=e}},f2={};/** + * @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 fc=c;function dV(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var fV=typeof Object.is=="function"?Object.is:dV,pV=fc.useState,mV=fc.useEffect,hV=fc.useLayoutEffect,gV=fc.useDebugValue;function vV(e,t){var n=t(),r=pV({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return hV(function(){o.value=n,o.getSnapshot=t,Ey(o)&&i({inst:o})},[e,n,t]),mV(function(){return Ey(o)&&i({inst:o}),e(function(){Ey(o)&&i({inst:o})})},[e]),gV(n),n}function Ey(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!fV(e,n)}catch{return!0}}function yV(e,t){return t()}var bV=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?yV:vV;f2.useSyncExternalStore=fc.useSyncExternalStore!==void 0?fc.useSyncExternalStore:bV;(function(e){e.exports=f2})(cV);var IS={},SV={get exports(){return IS},set exports(e){IS=e}},p2={};/** + * @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 Dg=c,CV=$S;function xV(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var EV=typeof Object.is=="function"?Object.is:xV,wV=CV.useSyncExternalStore,OV=Dg.useRef,$V=Dg.useEffect,IV=Dg.useMemo,RV=Dg.useDebugValue;p2.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=OV(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=IV(function(){function s(g){if(!d){if(d=!0,f=g,g=r(g),o!==void 0&&a.hasValue){var v=a.value;if(o(v,g))return m=v}return m=g}if(v=m,EV(f,g))return v;var C=r(g);return o!==void 0&&o(v,C)?v:(f=g,m=C)}var d=!1,f,m,h=n===void 0?null:n;return[function(){return s(t())},h===null?void 0:function(){return s(h())}]},[t,n,r,o]);var l=wV(e,i[0],i[1]);return $V(function(){a.hasValue=!0,a.value=l},[l]),RV(l),l};(function(e){e.exports=p2})(SV);function _V(e){e()}let m2=_V;const TV=e=>m2=e,PV=()=>m2,Al=c.createContext(null);function h2(){return c.useContext(Al)}const NV=()=>{throw new Error("uSES not initialized!")};let g2=NV;const MV=e=>{g2=e},AV=(e,t)=>e===t;function LV(e=Al){const t=e===Al?h2:()=>c.useContext(e);return function(r,o=AV){const{store:i,subscription:a,getServerState:l}=t(),s=g2(a.addNestedSub,i.getState,l||i.getState,r,o);return c.useDebugValue(s),s}}const DV=LV();function je(){return je=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}var gf={},FV={get exports(){return gf},set exports(e){gf=e}},sn={};/** @license React v16.13.1 + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var hr=typeof Symbol=="function"&&Symbol.for,cx=hr?Symbol.for("react.element"):60103,dx=hr?Symbol.for("react.portal"):60106,kg=hr?Symbol.for("react.fragment"):60107,Fg=hr?Symbol.for("react.strict_mode"):60108,Bg=hr?Symbol.for("react.profiler"):60114,zg=hr?Symbol.for("react.provider"):60109,Hg=hr?Symbol.for("react.context"):60110,fx=hr?Symbol.for("react.async_mode"):60111,jg=hr?Symbol.for("react.concurrent_mode"):60111,Vg=hr?Symbol.for("react.forward_ref"):60112,Ug=hr?Symbol.for("react.suspense"):60113,BV=hr?Symbol.for("react.suspense_list"):60120,Wg=hr?Symbol.for("react.memo"):60115,Kg=hr?Symbol.for("react.lazy"):60116,zV=hr?Symbol.for("react.block"):60121,HV=hr?Symbol.for("react.fundamental"):60117,jV=hr?Symbol.for("react.responder"):60118,VV=hr?Symbol.for("react.scope"):60119;function Bo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case cx:switch(e=e.type,e){case fx:case jg:case kg:case Bg:case Fg:case Ug:return e;default:switch(e=e&&e.$$typeof,e){case Hg:case Vg:case Kg:case Wg:case zg:return e;default:return t}}case dx:return t}}}function v2(e){return Bo(e)===jg}sn.AsyncMode=fx;sn.ConcurrentMode=jg;sn.ContextConsumer=Hg;sn.ContextProvider=zg;sn.Element=cx;sn.ForwardRef=Vg;sn.Fragment=kg;sn.Lazy=Kg;sn.Memo=Wg;sn.Portal=dx;sn.Profiler=Bg;sn.StrictMode=Fg;sn.Suspense=Ug;sn.isAsyncMode=function(e){return v2(e)||Bo(e)===fx};sn.isConcurrentMode=v2;sn.isContextConsumer=function(e){return Bo(e)===Hg};sn.isContextProvider=function(e){return Bo(e)===zg};sn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===cx};sn.isForwardRef=function(e){return Bo(e)===Vg};sn.isFragment=function(e){return Bo(e)===kg};sn.isLazy=function(e){return Bo(e)===Kg};sn.isMemo=function(e){return Bo(e)===Wg};sn.isPortal=function(e){return Bo(e)===dx};sn.isProfiler=function(e){return Bo(e)===Bg};sn.isStrictMode=function(e){return Bo(e)===Fg};sn.isSuspense=function(e){return Bo(e)===Ug};sn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===kg||e===jg||e===Bg||e===Fg||e===Ug||e===BV||typeof e=="object"&&e!==null&&(e.$$typeof===Kg||e.$$typeof===Wg||e.$$typeof===zg||e.$$typeof===Hg||e.$$typeof===Vg||e.$$typeof===HV||e.$$typeof===jV||e.$$typeof===VV||e.$$typeof===zV)};sn.typeOf=Bo;(function(e){e.exports=sn})(FV);var y2=gf,UV={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},WV={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},b2={};b2[y2.ForwardRef]=UV;b2[y2.Memo]=WV;var sI={},KV={get exports(){return sI},set exports(e){sI=e}},un={};/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var px=Symbol.for("react.element"),mx=Symbol.for("react.portal"),Gg=Symbol.for("react.fragment"),Xg=Symbol.for("react.strict_mode"),Yg=Symbol.for("react.profiler"),qg=Symbol.for("react.provider"),Qg=Symbol.for("react.context"),GV=Symbol.for("react.server_context"),Zg=Symbol.for("react.forward_ref"),Jg=Symbol.for("react.suspense"),ev=Symbol.for("react.suspense_list"),tv=Symbol.for("react.memo"),nv=Symbol.for("react.lazy"),XV=Symbol.for("react.offscreen"),S2;S2=Symbol.for("react.module.reference");function ui(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case px:switch(e=e.type,e){case Gg:case Yg:case Xg:case Jg:case ev:return e;default:switch(e=e&&e.$$typeof,e){case GV:case Qg:case Zg:case nv:case tv:case qg:return e;default:return t}}case mx:return t}}}un.ContextConsumer=Qg;un.ContextProvider=qg;un.Element=px;un.ForwardRef=Zg;un.Fragment=Gg;un.Lazy=nv;un.Memo=tv;un.Portal=mx;un.Profiler=Yg;un.StrictMode=Xg;un.Suspense=Jg;un.SuspenseList=ev;un.isAsyncMode=function(){return!1};un.isConcurrentMode=function(){return!1};un.isContextConsumer=function(e){return ui(e)===Qg};un.isContextProvider=function(e){return ui(e)===qg};un.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===px};un.isForwardRef=function(e){return ui(e)===Zg};un.isFragment=function(e){return ui(e)===Gg};un.isLazy=function(e){return ui(e)===nv};un.isMemo=function(e){return ui(e)===tv};un.isPortal=function(e){return ui(e)===mx};un.isProfiler=function(e){return ui(e)===Yg};un.isStrictMode=function(e){return ui(e)===Xg};un.isSuspense=function(e){return ui(e)===Jg};un.isSuspenseList=function(e){return ui(e)===ev};un.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Gg||e===Yg||e===Xg||e===Jg||e===ev||e===XV||typeof e=="object"&&e!==null&&(e.$$typeof===nv||e.$$typeof===tv||e.$$typeof===qg||e.$$typeof===Qg||e.$$typeof===Zg||e.$$typeof===S2||e.getModuleId!==void 0)};un.typeOf=ui;(function(e){e.exports=un})(KV);function YV(){const e=PV();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],o=t;for(;o;)r.push(o),o=o.next;return r},subscribe(r){let o=!0,i=n={callback:r,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){!o||t===null||(o=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}const uI={notify(){},get:()=>[]};function qV(e,t){let n,r=uI;function o(m){return s(),r.subscribe(m)}function i(){r.notify()}function a(){f.onStateChange&&f.onStateChange()}function l(){return!!n}function s(){n||(n=t?t.addNestedSub(a):e.subscribe(a),r=YV())}function d(){n&&(n(),n=void 0,r.clear(),r=uI)}const f={addNestedSub:o,notifyNestedSubs:i,handleChangeWrapper:a,isSubscribed:l,trySubscribe:s,tryUnsubscribe:d,getListeners:()=>r};return f}const QV=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ZV=QV?c.useLayoutEffect:c.useEffect;function JV({store:e,context:t,children:n,serverState:r}){const o=c.useMemo(()=>{const l=qV(e);return{store:e,subscription:l,getServerState:r?()=>r:void 0}},[e,r]),i=c.useMemo(()=>e.getState(),[e]);ZV(()=>{const{subscription:l}=o;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),i!==e.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[o,i]);const a=t||Al;return ge.createElement(a.Provider,{value:o},n)}function C2(e=Al){const t=e===Al?h2:()=>c.useContext(e);return function(){const{store:r}=t();return r}}const eU=C2();function tU(e=Al){const t=e===Al?eU:C2(e);return function(){return t().dispatch}}const nU=tU();MV(IS.useSyncExternalStoreWithSelector);TV(Ni.unstable_batchedUpdates);const Ic=nU,pc=DV;/** + * @remix-run/router v1.5.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 Yt(){return Yt=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function mc(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function oU(){return Math.random().toString(36).substr(2,8)}function dI(e,t){return{usr:e.state,key:e.key,idx:t}}function vf(e,t,n,r){return n===void 0&&(n=null),Yt({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ua(t):t,{state:n,key:t&&t.key||r||oU()})}function Ps(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 Ua(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 iU(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,l=Gn.Pop,s=null,d=f();d==null&&(d=0,a.replaceState(Yt({},a.state,{idx:d}),""));function f(){return(a.state||{idx:null}).idx}function m(){l=Gn.Pop;let S=f(),y=S==null?null:S-d;d=S,s&&s({action:l,location:C.location,delta:y})}function h(S,y){l=Gn.Push;let x=vf(C.location,S,y);n&&n(x,S),d=f()+1;let E=dI(x,d),O=C.createHref(x);try{a.pushState(E,"",O)}catch{o.location.assign(O)}i&&s&&s({action:l,location:C.location,delta:1})}function g(S,y){l=Gn.Replace;let x=vf(C.location,S,y);n&&n(x,S),d=f();let E=dI(x,d),O=C.createHref(x);a.replaceState(E,"",O),i&&s&&s({action:l,location:C.location,delta:0})}function v(S){let y=o.location.origin!=="null"?o.location.origin:o.location.href,x=typeof S=="string"?S:Ps(S);return Ft(y,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,y)}let C={get action(){return l},get location(){return e(o,a)},listen(S){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(cI,m),s=S,()=>{o.removeEventListener(cI,m),s=null}},createHref(S){return t(o,S)},createURL:v,encodeLocation(S){let y=v(S);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:h,replace:g,go(S){return a.go(S)}};return C}var rr;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(rr||(rr={}));const aU=new Set(["lazy","caseSensitive","path","id","index","children"]);function lU(e){return e.index===!0}function x2(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let a=[...n,i],l=typeof o.id=="string"?o.id:a.join("-");if(Ft(o.index!==!0||!o.children,"Cannot specify children on an index route"),Ft(!r[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),lU(o)){let s=Yt({},o,{hasErrorBoundary:t(o),id:l});return r[l]=s,s}else{let s=Yt({},o,{id:l,hasErrorBoundary:t(o),children:void 0});return r[l]=s,o.children&&(s.children=x2(o.children,t,a,r)),s}})}function Bu(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Ua(t):t,o=rv(r.pathname||"/",n);if(o==null)return null;let i=E2(e);sU(i);let a=null;for(let l=0;a==null&&l{let s={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};s.relativePath.startsWith("/")&&(Ft(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let d=Ss([r,s.relativePath]),f=n.concat(s);i.children&&i.children.length>0&&(Ft(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),E2(i.children,t,f,d)),!(i.path==null&&!i.index)&&t.push({path:d,score:hU(d,i.index),routesMeta:f})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,a);else for(let s of w2(i.path))o(i,a,s)}),t}function w2(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=w2(r.join("/")),l=[];return l.push(...a.map(s=>s===""?i:[i,s].join("/"))),o&&l.push(...a),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function sU(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:gU(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const uU=/^:\w+$/,cU=3,dU=2,fU=1,pU=10,mU=-2,fI=e=>e==="*";function hU(e,t){let n=e.split("/"),r=n.length;return n.some(fI)&&(r+=mU),t&&(r+=dU),n.filter(o=>!fI(o)).reduce((o,i)=>o+(uU.test(i)?cU:i===""?fU:pU),r)}function gU(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 vU(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let a=0;a{if(f==="*"){let h=l[m]||"";a=i.slice(0,i.length-h.length).replace(/(.)\/+$/,"$1")}return d[f]=CU(l[m]||"",f),d},{}),pathname:i,pathnameBase:a,pattern:e}}function bU(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),mc(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,l)=>(r.push(l),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function SU(e){try{return decodeURI(e)}catch(t){return mc(!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 CU(e,t){try{return decodeURIComponent(e)}catch(n){return mc(!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 rv(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 xU(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Ua(e):e;return{pathname:n?n.startsWith("/")?n:EU(n,t):t,search:$U(r),hash:IU(o)}}function EU(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 wy(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 O2(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function wU(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Ua(e):(o=Yt({},e),Ft(!o.pathname||!o.pathname.includes("?"),wy("?","pathname","search",o)),Ft(!o.pathname||!o.pathname.includes("#"),wy("#","pathname","hash",o)),Ft(!o.search||!o.search.includes("#"),wy("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,l;if(r||a==null)l=n;else{let m=t.length-1;if(a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),m-=1;o.pathname=h.join("/")}l=m>=0?t[m]:"/"}let s=xU(o,l),d=a&&a!=="/"&&a.endsWith("/"),f=(i||a===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(d||f)&&(s.pathname+="/"),s}const Ss=e=>e.join("/").replace(/\/\/+/g,"/"),OU=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),$U=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,IU=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class hx{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 $2(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const I2=["post","put","patch","delete"],RU=new Set(I2),_U=["get",...I2],TU=new Set(_U),PU=new Set([301,302,303,307,308]),NU=new Set([307,308]),Oy={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},MU={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},pI={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},R2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",AU=!_2,LU=e=>!!e.hasErrorBoundary;function DU(e){Ft(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let t=e.detectErrorBoundary||LU,n={},r=x2(e.routes,t,void 0,n),o,i=Yt({v7_normalizeFormMethod:!1},e.future),a=null,l=new Set,s=null,d=null,f=null,m=e.hydrationData!=null,h=Bu(r,e.history.location,e.basename),g=null;if(h==null){let ee=Yi(404,{pathname:e.history.location.pathname}),{matches:re,route:oe}=SI(r);h=re,g={[oe.id]:ee}}let v=!h.some(ee=>ee.route.lazy)&&(!h.some(ee=>ee.route.loader)||e.hydrationData!=null),C,S={historyAction:e.history.action,location:e.history.location,matches:h,initialized:v,navigation:Oy,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||g,fetchers:new Map,blockers:new Map},y=Gn.Pop,x=!1,E,O=!1,w=!1,$=[],R=[],_=new Map,M=0,T=-1,D=new Map,N=new Set,P=new Map,L=new Map,k=new Map,F=!1;function V(){return a=e.history.listen(ee=>{let{action:re,location:oe,delta:xe}=ee;if(F){F=!1;return}mc(k.size===0||xe!=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 ve=ft({currentLocation:S.location,nextLocation:oe,historyAction:re});if(ve&&xe!=null){F=!0,e.history.go(xe*-1),Qe(ve,{state:"blocked",location:oe,proceed(){Qe(ve,{state:"proceeding",proceed:void 0,reset:void 0,location:oe}),e.history.go(xe)},reset(){Xe(ve),G({blockers:new Map(C.state.blockers)})}});return}return Y(re,oe)}),S.initialized||Y(Gn.Pop,S.location),C}function H(){a&&a(),l.clear(),E&&E.abort(),S.fetchers.forEach((ee,re)=>fe(re)),S.blockers.forEach((ee,re)=>Xe(re))}function W(ee){return l.add(ee),()=>l.delete(ee)}function G(ee){S=Yt({},S,ee),l.forEach(re=>re(S))}function U(ee,re){var oe,xe;let ve=S.actionData!=null&&S.navigation.formMethod!=null&&wa(S.navigation.formMethod)&&S.navigation.state==="loading"&&((oe=ee.state)==null?void 0:oe._isRedirect)!==!0,Ee;re.actionData?Object.keys(re.actionData).length>0?Ee=re.actionData:Ee=null:ve?Ee=S.actionData:Ee=null;let ke=re.loaderData?bI(S.loaderData,re.loaderData,re.matches||[],re.errors):S.loaderData;for(let[Fe]of k)Xe(Fe);let Ye=x===!0||S.navigation.formMethod!=null&&wa(S.navigation.formMethod)&&((xe=ee.state)==null?void 0:xe._isRedirect)!==!0;o&&(r=o,o=void 0),G(Yt({},re,{actionData:Ee,loaderData:ke,historyAction:y,location:ee,initialized:!0,navigation:Oy,revalidation:"idle",restoreScrollPosition:He(ee,re.matches||S.matches),preventScrollReset:Ye,blockers:new Map(S.blockers)})),O||y===Gn.Pop||(y===Gn.Push?e.history.push(ee,ee.state):y===Gn.Replace&&e.history.replace(ee,ee.state)),y=Gn.Pop,x=!1,O=!1,w=!1,$=[],R=[]}async function X(ee,re){if(typeof ee=="number"){e.history.go(ee);return}let{path:oe,submission:xe,error:ve}=mI(ee,i,re),Ee=S.location,ke=vf(S.location,oe,re&&re.state);ke=Yt({},ke,e.history.encodeLocation(ke));let Ye=re&&re.replace!=null?re.replace:void 0,Fe=Gn.Push;Ye===!0?Fe=Gn.Replace:Ye===!1||xe!=null&&wa(xe.formMethod)&&xe.formAction===S.location.pathname+S.location.search&&(Fe=Gn.Replace);let ot=re&&"preventScrollReset"in re?re.preventScrollReset===!0:void 0,Ae=ft({currentLocation:Ee,nextLocation:ke,historyAction:Fe});if(Ae){Qe(Ae,{state:"blocked",location:ke,proceed(){Qe(Ae,{state:"proceeding",proceed:void 0,reset:void 0,location:ke}),X(ee,re)},reset(){Xe(Ae),G({blockers:new Map(S.blockers)})}});return}return await Y(Fe,ke,{submission:xe,pendingError:ve,preventScrollReset:ot,replace:re&&re.replace})}function Q(){if(ie(),G({revalidation:"loading"}),S.navigation.state!=="submitting"){if(S.navigation.state==="idle"){Y(S.historyAction,S.location,{startUninterruptedRevalidation:!0});return}Y(y||S.historyAction,S.navigation.location,{overrideNavigation:S.navigation})}}async function Y(ee,re,oe){E&&E.abort(),E=null,y=ee,O=(oe&&oe.startUninterruptedRevalidation)===!0,dt(S.location,S.matches),x=(oe&&oe.preventScrollReset)===!0;let xe=o||r,ve=oe&&oe.overrideNavigation,Ee=Bu(xe,re,e.basename);if(!Ee){let Ue=Yi(404,{pathname:re.pathname}),{matches:ze,route:at}=SI(xe);ct(),U(re,{matches:ze,loaderData:{},errors:{[at.id]:Ue}});return}if(HU(S.location,re)&&!(oe&&oe.submission&&wa(oe.submission.formMethod))){U(re,{matches:Ee});return}E=new AbortController;let ke=ld(e.history,re,E.signal,oe&&oe.submission),Ye,Fe;if(oe&&oe.pendingError)Fe={[zu(Ee).route.id]:oe.pendingError};else if(oe&&oe.submission&&wa(oe.submission.formMethod)){let Ue=await q(ke,re,oe.submission,Ee,{replace:oe.replace});if(Ue.shortCircuited)return;Ye=Ue.pendingActionData,Fe=Ue.pendingActionError,ve=Yt({state:"loading",location:re},oe.submission),ke=new Request(ke.url,{signal:ke.signal})}let{shortCircuited:ot,loaderData:Ae,errors:Ke}=await ne(ke,re,Ee,ve,oe&&oe.submission,oe&&oe.fetcherSubmission,oe&&oe.replace,Ye,Fe);ot||(E=null,U(re,Yt({matches:Ee},Ye?{actionData:Ye}:{},{loaderData:Ae,errors:Ke})))}async function q(ee,re,oe,xe,ve){ie();let Ee=Yt({state:"submitting",location:re},oe);G({navigation:Ee});let ke,Ye=RS(xe,re);if(!Ye.route.action&&!Ye.route.lazy)ke={type:rr.error,error:Yi(405,{method:ee.method,pathname:re.pathname,routeId:Ye.route.id})};else if(ke=await ad("action",ee,Ye,xe,n,t,C.basename),ee.signal.aborted)return{shortCircuited:!0};if(qu(ke)){let Fe;return ve&&ve.replace!=null?Fe=ve.replace:Fe=ke.location===S.location.pathname+S.location.search,await ce(S,ke,{submission:oe,replace:Fe}),{shortCircuited:!0}}if(kd(ke)){let Fe=zu(xe,Ye.route.id);return(ve&&ve.replace)!==!0&&(y=Gn.Push),{pendingActionData:{},pendingActionError:{[Fe.route.id]:ke.error}}}if(fs(ke))throw Yi(400,{type:"defer-action"});return{pendingActionData:{[Ye.route.id]:ke.data}}}async function ne(ee,re,oe,xe,ve,Ee,ke,Ye,Fe){let ot=xe;ot||(ot=Yt({state:"loading",location:re,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},ve));let Ae=ve||Ee?ve||Ee:ot.formMethod&&ot.formAction&&ot.formData&&ot.formEncType?{formMethod:ot.formMethod,formAction:ot.formAction,formData:ot.formData,formEncType:ot.formEncType}:void 0,Ke=o||r,[Ue,ze]=hI(e.history,S,oe,Ae,re,w,$,R,P,Ke,e.basename,Ye,Fe);if(ct(We=>!(oe&&oe.some(qe=>qe.route.id===We))||Ue&&Ue.some(qe=>qe.route.id===We)),Ue.length===0&&ze.length===0)return U(re,Yt({matches:oe,loaderData:{},errors:Fe||null},Ye?{actionData:Ye}:{})),{shortCircuited:!0};if(!O){ze.forEach(qe=>{let ht=S.fetchers.get(qe.key),en={state:"loading",data:ht&&ht.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};S.fetchers.set(qe.key,en)});let We=Ye||S.actionData;G(Yt({navigation:ot},We?Object.keys(We).length===0?{actionData:null}:{actionData:We}:{},ze.length>0?{fetchers:new Map(S.fetchers)}:{}))}T=++M,ze.forEach(We=>_.set(We.key,E));let{results:at,loaderResults:$t,fetcherResults:tt}=await he(S.matches,oe,Ue,ze,ee);if(ee.signal.aborted)return{shortCircuited:!0};ze.forEach(We=>_.delete(We.key));let lt=CI(at);if(lt)return await ce(S,lt,{replace:ke}),{shortCircuited:!0};let{loaderData:Re,errors:Ne}=yI(S,oe,Ue,$t,Fe,ze,tt,L);L.forEach((We,qe)=>{We.subscribe(ht=>{(ht||We.done)&&L.delete(qe)})}),de();let Te=_e(T);return Yt({loaderData:Re,errors:Ne},Te||ze.length>0?{fetchers:new Map(S.fetchers)}:{})}function le(ee){return S.fetchers.get(ee)||MU}function we(ee,re,oe,xe){if(AU)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.");_.has(ee)&&Ie(ee);let Ee=Bu(o||r,oe,e.basename);if(!Ee){pe(ee,re,Yi(404,{pathname:oe}));return}let{path:ke,submission:Ye}=mI(oe,i,xe,!0),Fe=RS(Ee,ke);if(x=(xe&&xe.preventScrollReset)===!0,Ye&&wa(Ye.formMethod)){Oe(ee,re,ke,Fe,Ee,Ye);return}P.set(ee,{routeId:re,path:ke}),Ce(ee,re,ke,Fe,Ee,Ye)}async function Oe(ee,re,oe,xe,ve,Ee){if(ie(),P.delete(ee),!xe.route.action&&!xe.route.lazy){let Rt=Yi(405,{method:Ee.formMethod,pathname:oe,routeId:re});pe(ee,re,Rt);return}let ke=S.fetchers.get(ee),Ye=Yt({state:"submitting"},Ee,{data:ke&&ke.data," _hasFetcherDoneAnything ":!0});S.fetchers.set(ee,Ye),G({fetchers:new Map(S.fetchers)});let Fe=new AbortController,ot=ld(e.history,oe,Fe.signal,Ee);_.set(ee,Fe);let Ae=await ad("action",ot,xe,ve,n,t,C.basename);if(ot.signal.aborted){_.get(ee)===Fe&&_.delete(ee);return}if(qu(Ae)){_.delete(ee),N.add(ee);let Rt=Yt({state:"loading"},Ee,{data:void 0," _hasFetcherDoneAnything ":!0});return S.fetchers.set(ee,Rt),G({fetchers:new Map(S.fetchers)}),ce(S,Ae,{submission:Ee,isFetchActionRedirect:!0})}if(kd(Ae)){pe(ee,re,Ae.error);return}if(fs(Ae))throw Yi(400,{type:"defer-action"});let Ke=S.navigation.location||S.location,Ue=ld(e.history,Ke,Fe.signal),ze=o||r,at=S.navigation.state!=="idle"?Bu(ze,S.navigation.location,e.basename):S.matches;Ft(at,"Didn't find any matches after fetcher action");let $t=++M;D.set(ee,$t);let tt=Yt({state:"loading",data:Ae.data},Ee,{" _hasFetcherDoneAnything ":!0});S.fetchers.set(ee,tt);let[lt,Re]=hI(e.history,S,at,Ee,Ke,w,$,R,P,ze,e.basename,{[xe.route.id]:Ae.data},void 0);Re.filter(Rt=>Rt.key!==ee).forEach(Rt=>{let zt=Rt.key,_n=S.fetchers.get(zt),Bn={state:"loading",data:_n&&_n.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};S.fetchers.set(zt,Bn),_.set(zt,Fe)}),G({fetchers:new Map(S.fetchers)});let{results:Ne,loaderResults:Te,fetcherResults:We}=await he(S.matches,at,lt,Re,Ue);if(Fe.signal.aborted)return;D.delete(ee),_.delete(ee),Re.forEach(Rt=>_.delete(Rt.key));let qe=CI(Ne);if(qe)return ce(S,qe);let{loaderData:ht,errors:en}=yI(S,S.matches,lt,Te,void 0,Re,We,L),tn={state:"idle",data:Ae.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};S.fetchers.set(ee,tn);let Rn=_e($t);S.navigation.state==="loading"&&$t>T?(Ft(y,"Expected pending action"),E&&E.abort(),U(S.navigation.location,{matches:at,loaderData:ht,errors:en,fetchers:new Map(S.fetchers)})):(G(Yt({errors:en,loaderData:bI(S.loaderData,ht,at,en)},Rn?{fetchers:new Map(S.fetchers)}:{})),w=!1)}async function Ce(ee,re,oe,xe,ve,Ee){let ke=S.fetchers.get(ee),Ye=Yt({state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},Ee,{data:ke&&ke.data," _hasFetcherDoneAnything ":!0});S.fetchers.set(ee,Ye),G({fetchers:new Map(S.fetchers)});let Fe=new AbortController,ot=ld(e.history,oe,Fe.signal);_.set(ee,Fe);let Ae=await ad("loader",ot,xe,ve,n,t,C.basename);if(fs(Ae)&&(Ae=await M2(Ae,ot.signal,!0)||Ae),_.get(ee)===Fe&&_.delete(ee),ot.signal.aborted)return;if(qu(Ae)){await ce(S,Ae);return}if(kd(Ae)){let Ue=zu(S.matches,re);S.fetchers.delete(ee),G({fetchers:new Map(S.fetchers),errors:{[Ue.route.id]:Ae.error}});return}Ft(!fs(Ae),"Unhandled fetcher deferred data");let Ke={state:"idle",data:Ae.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};S.fetchers.set(ee,Ke),G({fetchers:new Map(S.fetchers)})}async function ce(ee,re,oe){var xe;let{submission:ve,replace:Ee,isFetchActionRedirect:ke}=oe===void 0?{}:oe;re.revalidate&&(w=!0);let Ye=vf(ee.location,re.location,Yt({_isRedirect:!0},ke?{_isFetchActionRedirect:!0}:{}));if(Ft(Ye,"Expected a location on the redirect navigation"),R2.test(re.location)&&_2&&typeof((xe=window)==null?void 0:xe.location)<"u"){let ze=e.history.createURL(re.location),at=rv(ze.pathname,e.basename||"/")==null;if(window.location.origin!==ze.origin||at){Ee?window.location.replace(re.location):window.location.assign(re.location);return}}E=null;let Fe=Ee===!0?Gn.Replace:Gn.Push,{formMethod:ot,formAction:Ae,formEncType:Ke,formData:Ue}=ee.navigation;!ve&&ot&&Ae&&Ue&&Ke&&(ve={formMethod:ot,formAction:Ae,formEncType:Ke,formData:Ue}),NU.has(re.status)&&ve&&wa(ve.formMethod)?await Y(Fe,Ye,{submission:Yt({},ve,{formAction:re.location}),preventScrollReset:x}):ke?await Y(Fe,Ye,{overrideNavigation:{state:"loading",location:Ye,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},fetcherSubmission:ve,preventScrollReset:x}):await Y(Fe,Ye,{overrideNavigation:{state:"loading",location:Ye,formMethod:ve?ve.formMethod:void 0,formAction:ve?ve.formAction:void 0,formEncType:ve?ve.formEncType:void 0,formData:ve?ve.formData:void 0},preventScrollReset:x})}async function he(ee,re,oe,xe,ve){let Ee=await Promise.all([...oe.map(Fe=>ad("loader",ve,Fe,re,n,t,C.basename)),...xe.map(Fe=>Fe.matches&&Fe.match?ad("loader",ld(e.history,Fe.path,ve.signal),Fe.match,Fe.matches,n,t,C.basename):{type:rr.error,error:Yi(404,{pathname:Fe.path})})]),ke=Ee.slice(0,oe.length),Ye=Ee.slice(oe.length);return await Promise.all([xI(ee,oe,ke,ve.signal,!1,S.loaderData),xI(ee,xe.map(Fe=>Fe.match),Ye,ve.signal,!0)]),{results:Ee,loaderResults:ke,fetcherResults:Ye}}function ie(){w=!0,$.push(...ct()),P.forEach((ee,re)=>{_.has(re)&&(R.push(re),Ie(re))})}function pe(ee,re,oe){let xe=zu(S.matches,re);fe(ee),G({errors:{[xe.route.id]:oe},fetchers:new Map(S.fetchers)})}function fe(ee){_.has(ee)&&Ie(ee),P.delete(ee),D.delete(ee),N.delete(ee),S.fetchers.delete(ee)}function Ie(ee){let re=_.get(ee);Ft(re,"Expected fetch controller: "+ee),re.abort(),_.delete(ee)}function Se(ee){for(let re of ee){let xe={state:"idle",data:le(re).data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};S.fetchers.set(re,xe)}}function de(){let ee=[];for(let re of N){let oe=S.fetchers.get(re);Ft(oe,"Expected fetcher: "+re),oe.state==="loading"&&(N.delete(re),ee.push(re))}Se(ee)}function _e(ee){let re=[];for(let[oe,xe]of D)if(xe0}function be(ee,re){let oe=S.blockers.get(ee)||pI;return k.get(ee)!==re&&k.set(ee,re),oe}function Xe(ee){S.blockers.delete(ee),k.delete(ee)}function Qe(ee,re){let oe=S.blockers.get(ee)||pI;Ft(oe.state==="unblocked"&&re.state==="blocked"||oe.state==="blocked"&&re.state==="blocked"||oe.state==="blocked"&&re.state==="proceeding"||oe.state==="blocked"&&re.state==="unblocked"||oe.state==="proceeding"&&re.state==="unblocked","Invalid blocker state transition: "+oe.state+" -> "+re.state),S.blockers.set(ee,re),G({blockers:new Map(S.blockers)})}function ft(ee){let{currentLocation:re,nextLocation:oe,historyAction:xe}=ee;if(k.size===0)return;k.size>1&&mc(!1,"A router only supports one blocker at a time");let ve=Array.from(k.entries()),[Ee,ke]=ve[ve.length-1],Ye=S.blockers.get(Ee);if(!(Ye&&Ye.state==="proceeding")&&ke({currentLocation:re,nextLocation:oe,historyAction:xe}))return Ee}function ct(ee){let re=[];return L.forEach((oe,xe)=>{(!ee||ee(xe))&&(oe.cancel(),re.push(xe),L.delete(xe))}),re}function ut(ee,re,oe){if(s=ee,f=re,d=oe||(xe=>xe.key),!m&&S.navigation===Oy){m=!0;let xe=He(S.location,S.matches);xe!=null&&G({restoreScrollPosition:xe})}return()=>{s=null,f=null,d=null}}function dt(ee,re){if(s&&d&&f){let oe=re.map(ve=>EI(ve,S.loaderData)),xe=d(ee,oe)||ee.key;s[xe]=f()}}function He(ee,re){if(s&&d&&f){let oe=re.map(Ee=>EI(Ee,S.loaderData)),xe=d(ee,oe)||ee.key,ve=s[xe];if(typeof ve=="number")return ve}return null}function Je(ee){o=ee}return C={get basename(){return e.basename},get state(){return S},get routes(){return r},initialize:V,subscribe:W,enableScrollRestoration:ut,navigate:X,fetch:we,revalidate:Q,createHref:ee=>e.history.createHref(ee),encodeLocation:ee=>e.history.encodeLocation(ee),getFetcher:le,deleteFetcher:fe,dispose:H,getBlocker:be,deleteBlocker:Xe,_internalFetchControllers:_,_internalActiveDeferreds:L,_internalSetRoutes:Je},C}function kU(e){return e!=null&&"formData"in e}function mI(e,t,n,r){r===void 0&&(r=!1);let o=typeof e=="string"?e:Ps(e);if(!n||!kU(n))return{path:o};if(n.formMethod&&!UU(n.formMethod))return{path:o,error:Yi(405,{method:n.formMethod})};let i;if(n.formData){let s=n.formMethod||"get";if(i={formMethod:t.v7_normalizeFormMethod?s.toUpperCase():s.toLowerCase(),formAction:N2(o),formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:n.formData},wa(i.formMethod))return{path:o,submission:i}}let a=Ua(o),l=P2(n.formData);return r&&a.search&&A2(a.search)&&l.append("index",""),a.search="?"+l,{path:Ps(a),submission:i}}function FU(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 hI(e,t,n,r,o,i,a,l,s,d,f,m,h){let g=h?Object.values(h)[0]:m?Object.values(m)[0]:void 0,v=e.createURL(t.location),C=e.createURL(o),S=i||v.toString()===C.toString()||v.search!==C.search,y=h?Object.keys(h)[0]:void 0,E=FU(n,y).filter((w,$)=>{if(w.route.lazy)return!0;if(w.route.loader==null)return!1;if(BU(t.loaderData,t.matches[$],w)||a.some(M=>M===w.route.id))return!0;let R=t.matches[$],_=w;return gI(w,Yt({currentUrl:v,currentParams:R.params,nextUrl:C,nextParams:_.params},r,{actionResult:g,defaultShouldRevalidate:S||T2(R,_)}))}),O=[];return s.forEach((w,$)=>{if(!n.some(T=>T.route.id===w.routeId))return;let R=Bu(d,w.path,f);if(!R){O.push(Yt({key:$},w,{matches:null,match:null}));return}let _=RS(R,w.path);if(l.includes($)){O.push(Yt({key:$,matches:R,match:_},w));return}gI(_,Yt({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:C,nextParams:n[n.length-1].params},r,{actionResult:g,defaultShouldRevalidate:S}))&&O.push(Yt({key:$,matches:R,match:_},w))}),[E,O]}function BU(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function T2(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function gI(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function vI(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];Ft(o,"No route found in manifest");let i={};for(let a in r){let s=o[a]!==void 0&&a!=="hasErrorBoundary";mc(!s,'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.')),!s&&!aU.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,{hasErrorBoundary:t(Yt({},o)),lazy:void 0})}async function ad(e,t,n,r,o,i,a,l,s,d){a===void 0&&(a="/"),l===void 0&&(l=!1),s===void 0&&(s=!1);let f,m,h,g=S=>{let y,x=new Promise((E,O)=>y=O);return h=()=>y(),t.signal.addEventListener("abort",h),Promise.race([S({request:t,params:n.params,context:d}),x])};try{let S=n.route[e];if(n.route.lazy)if(S)m=(await Promise.all([g(S),vI(n.route,i,o)]))[0];else if(await vI(n.route,i,o),S=n.route[e],S)m=await g(S);else{if(e==="action")throw Yi(405,{method:t.method,pathname:new URL(t.url).pathname,routeId:n.route.id});return{type:rr.data,data:void 0}}else Ft(S,"Could not find the "+e+' to run on the "'+n.route.id+'" route'),m=await g(S);Ft(m!==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(S){f=rr.error,m=S}finally{h&&t.signal.removeEventListener("abort",h)}if(VU(m)){let S=m.status;if(PU.has(S)){let E=m.headers.get("Location");if(Ft(E,"Redirects returned/thrown from loaders/actions must have a Location header"),R2.test(E)){if(!l){let O=new URL(t.url),w=E.startsWith("//")?new URL(O.protocol+E):new URL(E),$=rv(w.pathname,a)!=null;w.origin===O.origin&&$&&(E=w.pathname+w.search+w.hash)}}else{let O=r.slice(0,r.indexOf(n)+1),w=O2(O).map(R=>R.pathnameBase),$=wU(E,w,new URL(t.url).pathname);if(Ft(Ps($),"Unable to resolve redirect location: "+E),a){let R=$.pathname;$.pathname=R==="/"?a:Ss([a,R])}E=Ps($)}if(l)throw m.headers.set("Location",E),m;return{type:rr.redirect,status:S,location:E,revalidate:m.headers.get("X-Remix-Revalidate")!==null}}if(s)throw{type:f||rr.data,response:m};let y,x=m.headers.get("Content-Type");return x&&/\bapplication\/json\b/.test(x)?y=await m.json():y=await m.text(),f===rr.error?{type:f,error:new hx(S,m.statusText,y),headers:m.headers}:{type:rr.data,data:y,statusCode:m.status,headers:m.headers}}if(f===rr.error)return{type:f,error:m};if(jU(m)){var v,C;return{type:rr.deferred,deferredData:m,statusCode:(v=m.init)==null?void 0:v.status,headers:((C=m.init)==null?void 0:C.headers)&&new Headers(m.init.headers)}}return{type:rr.data,data:m}}function ld(e,t,n,r){let o=e.createURL(N2(t)).toString(),i={signal:n};if(r&&wa(r.formMethod)){let{formMethod:a,formEncType:l,formData:s}=r;i.method=a.toUpperCase(),i.body=l==="application/x-www-form-urlencoded"?P2(s):s}return new Request(o,i)}function P2(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,r instanceof File?r.name:r);return t}function zU(e,t,n,r,o){let i={},a=null,l,s=!1,d={};return n.forEach((f,m)=>{let h=t[m].route.id;if(Ft(!qu(f),"Cannot handle redirect results in processLoaderData"),kd(f)){let g=zu(e,h),v=f.error;r&&(v=Object.values(r)[0],r=void 0),a=a||{},a[g.route.id]==null&&(a[g.route.id]=v),i[h]=void 0,s||(s=!0,l=$2(f.error)?f.error.status:500),f.headers&&(d[h]=f.headers)}else fs(f)?(o.set(h,f.deferredData),i[h]=f.deferredData.data):i[h]=f.data,f.statusCode!=null&&f.statusCode!==200&&!s&&(l=f.statusCode),f.headers&&(d[h]=f.headers)}),r&&(a=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:a,statusCode:l||200,loaderHeaders:d}}function yI(e,t,n,r,o,i,a,l){let{loaderData:s,errors:d}=zU(t,n,r,o,l);for(let f=0;fr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function SI(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 Yi(e,t){let{pathname:n,routeId:r,method:o,type:i}=t===void 0?{}:t,a="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(a="Bad Request",o&&n&&r?l="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"&&(l="defer() is not supported in actions")):e===403?(a="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",l='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",o&&n&&r?l="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&&(l='Invalid request method "'+o.toUpperCase()+'"')),new hx(e||500,a,new Error(l),!0)}function CI(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(qu(n))return n}}function N2(e){let t=typeof e=="string"?Ua(e):e;return Ps(Yt({},t,{hash:""}))}function HU(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash!==t.hash}function fs(e){return e.type===rr.deferred}function kd(e){return e.type===rr.error}function qu(e){return(e&&e.type)===rr.redirect}function jU(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 VU(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function UU(e){return TU.has(e.toLowerCase())}function wa(e){return RU.has(e.toLowerCase())}async function xI(e,t,n,r,o,i){for(let a=0;am.route.id===s.route.id),f=d!=null&&!T2(d,s)&&(i&&i[s.route.id])!==void 0;fs(l)&&(o||f)&&await M2(l,r,o).then(m=>{m&&(n[a]=m||n[a])})}}async function M2(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:rr.data,data:e.deferredData.unwrappedData}}catch(o){return{type:rr.error,error:o}}return{type:rr.data,data:e.deferredData.data}}}function A2(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function EI(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 RS(e,t){let n=typeof t=="string"?Ua(t).search:t.search;if(e[e.length-1].route.index&&A2(n||""))return e[e.length-1];let r=O2(e);return r[r.length-1]}/** + * React Router v6.10.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 WU(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const KU=typeof Object.is=="function"?Object.is:WU,{useState:GU,useEffect:XU,useLayoutEffect:YU,useDebugValue:qU}=Qd;function QU(e,t,n){const r=t(),[{inst:o},i]=GU({inst:{value:r,getSnapshot:t}});return YU(()=>{o.value=r,o.getSnapshot=t,$y(o)&&i({inst:o})},[e,r,t]),XU(()=>($y(o)&&i({inst:o}),e(()=>{$y(o)&&i({inst:o})})),[e]),qU(r),r}function $y(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!KU(n,r)}catch{return!0}}function ZU(e,t,n){return t()}const JU=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",e9=!JU,t9=e9?ZU:QU,n9="useSyncExternalStore"in Qd?(e=>e.useSyncExternalStore)(Qd):t9,gx=c.createContext(null),vx=c.createContext(null),L2=c.createContext(null),ov=c.createContext(null),iv=c.createContext({outlet:null,matches:[]}),D2=c.createContext(null);function _S(){return _S=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.assign({},C,{params:Object.assign({},a,C.params),pathname:Ss([l,n.encodeLocation?n.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?l:Ss([l,n.encodeLocation?n.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),o,r||void 0);return t&&v?c.createElement(ov.Provider,{value:{location:_S({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Gn.Pop}},v):v}function i9(){let e=f9(),t=$2(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 c.createElement(c.Fragment,null,c.createElement("h2",null,"Unexpected Application Error!"),c.createElement("h3",{style:{fontStyle:"italic"}},t),n?c.createElement("pre",{style:o},n):null,i)}class a9 extends c.Component{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location?{error:t.error,location:t.location}:{error:t.error||n.error,location:n.location}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?c.createElement(iv.Provider,{value:this.props.routeContext},c.createElement(D2.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function l9(e){let{routeContext:t,match:n,children:r}=e,o=c.useContext(gx);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),c.createElement(iv.Provider,{value:t},r)}function s9(e,t,n){if(t===void 0&&(t=[]),e==null)if(n!=null&&n.errors)e=n.matches;else return null;let r=e,o=n==null?void 0:n.errors;if(o!=null){let i=r.findIndex(a=>a.route.id&&(o==null?void 0:o[a.route.id]));i>=0||Ft(!1),r=r.slice(0,Math.min(r.length,i+1))}return r.reduceRight((i,a,l)=>{let s=a.route.id?o==null?void 0:o[a.route.id]:null,d=null;n&&(a.route.ErrorBoundary?d=c.createElement(a.route.ErrorBoundary,null):a.route.errorElement?d=a.route.errorElement:d=c.createElement(i9,null));let f=t.concat(r.slice(0,l+1)),m=()=>{let h=i;return s?h=d:a.route.Component?h=c.createElement(a.route.Component,null):a.route.element&&(h=a.route.element),c.createElement(l9,{match:a,routeContext:{outlet:i,matches:f},children:h})};return n&&(a.route.ErrorBoundary||a.route.errorElement||l===0)?c.createElement(a9,{location:n.location,component:d,error:s,children:m(),routeContext:{outlet:null,matches:f}}):m()},null)}var wI;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator"})(wI||(wI={}));var kh;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(kh||(kh={}));function u9(e){let t=c.useContext(vx);return t||Ft(!1),t}function c9(e){let t=c.useContext(iv);return t||Ft(!1),t}function d9(e){let t=c9(),n=t.matches[t.matches.length-1];return n.route.id||Ft(!1),n.route.id}function f9(){var e;let t=c.useContext(D2),n=u9(kh.UseRouteError),r=d9(kh.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function p9(e){let{fallbackElement:t,router:n}=e,r=c.useCallback(()=>n.state,[n]),o=n9(n.subscribe,r,r),i=c.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:s=>n.navigate(s),push:(s,d,f)=>n.navigate(s,{state:d,preventScrollReset:f==null?void 0:f.preventScrollReset}),replace:(s,d,f)=>n.navigate(s,{replace:!0,state:d,preventScrollReset:f==null?void 0:f.preventScrollReset})}),[n]),a=n.basename||"/",l=c.useMemo(()=>({router:n,navigator:i,static:!1,basename:a}),[n,i,a]);return c.createElement(c.Fragment,null,c.createElement(gx.Provider,{value:l},c.createElement(vx.Provider,{value:o},c.createElement(h9,{basename:n.basename,location:n.state.location,navigationType:n.state.historyAction,navigator:i},n.state.initialized?c.createElement(g9,null):t))),null)}function m9(e){Ft(!1)}function h9(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Gn.Pop,navigator:i,static:a=!1}=e;yx()&&Ft(!1);let l=t.replace(/^\/*/,"/"),s=c.useMemo(()=>({basename:l,navigator:i,static:a}),[l,i,a]);typeof r=="string"&&(r=Ua(r));let{pathname:d="/",search:f="",hash:m="",state:h=null,key:g="default"}=r,v=c.useMemo(()=>{let C=rv(d,l);return C==null?null:{location:{pathname:C,search:f,hash:m,state:h,key:g},navigationType:o}},[l,d,f,m,h,g,o]);return v==null?null:c.createElement(L2.Provider,{value:s},c.createElement(ov.Provider,{children:n,value:v}))}function g9(e){let{children:t,location:n}=e,r=c.useContext(gx),o=r&&!t?r.router.routes:TS(t);return o9(o,n)}var OI;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(OI||(OI={}));new Promise(()=>{});function TS(e,t){t===void 0&&(t=[]);let n=[];return c.Children.forEach(e,(r,o)=>{if(!c.isValidElement(r))return;let i=[...t,o];if(r.type===c.Fragment){n.push.apply(n,TS(r.props.children,i));return}r.type!==m9&&Ft(!1),!r.props.index||!r.props.children||Ft(!1);let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=TS(r.props.children,i)),n.push(a)}),n}function v9(e){return!!e.ErrorBoundary||!!e.errorElement}/** + * React Router DOM v6.10.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 PS(){return PS=Object.assign?Object.assign.bind():function(e){for(var t=1;t0}),n=[],r=0,o=t;r1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(R9,function(s,d,f,m,h,g){if(d)t.minimumIntegerDigits=f.length;else{if(m&&h)throw new Error("We currently do not support maximum integer digits");if(g)throw new Error("We currently do not support exact integer digits")}return""});continue}if(G2.test(o.stem)){t.minimumIntegerDigits=o.stem.length;continue}if(_I.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(_I,function(s,d,f,m,h,g){return f==="*"?t.minimumFractionDigits=d.length:m&&m[0]==="#"?t.maximumFractionDigits=m.length:h&&g?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+g.length):(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length),""});var i=o.options[0];i==="w"?t=pt(pt({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=pt(pt({},t),TI(i)));continue}if(K2.test(o.stem)){t=pt(pt({},t),TI(o.stem));continue}var a=X2(o.stem);a&&(t=pt(pt({},t),a));var l=_9(o.stem);l&&(t=pt(pt({},t),l))}return t}var pm={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function P9(e,t){for(var n="",r=0;r>1),s="a",d=N9(t);for((d=="H"||d=="k")&&(l=0);l-- >0;)n+=s;for(;a-- >0;)n=d+n}else o==="J"?n+="H":n+=o}return n}function N9(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var o=pm[r||""]||pm[n||""]||pm["".concat(n,"-001")]||pm["001"];return o[0]}var Iy,M9=new RegExp("^".concat(W2.source,"*")),A9=new RegExp("".concat(W2.source,"*$"));function Xt(e,t){return{start:e,end:t}}var L9=!!String.prototype.startsWith,D9=!!String.fromCodePoint,k9=!!Object.fromEntries,F9=!!String.prototype.codePointAt,B9=!!String.prototype.trimStart,z9=!!String.prototype.trimEnd,H9=!!Number.isSafeInteger,j9=H9?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},AS=!0;try{var V9=q2("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");AS=((Iy=V9.exec("a"))===null||Iy===void 0?void 0:Iy[0])==="a"}catch{AS=!1}var NI=L9?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},LS=D9?String.fromCodePoint:function(){for(var t=[],n=0;ni;){if(a=t[i++],a>1114111)throw RangeError(a+" is not a valid code point");r+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return r},MI=k9?Object.fromEntries:function(t){for(var n={},r=0,o=t;r=r)){var o=t.charCodeAt(n),i;return o<55296||o>56319||n+1===r||(i=t.charCodeAt(n+1))<56320||i>57343?o:(o-55296<<10)+(i-56320)+65536}},U9=B9?function(t){return t.trimStart()}:function(t){return t.replace(M9,"")},W9=z9?function(t){return t.trimEnd()}:function(t){return t.replace(A9,"")};function q2(e,t){return new RegExp(e,t)}var DS;if(AS){var AI=q2("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");DS=function(t,n){var r;AI.lastIndex=n;var o=AI.exec(t);return(r=o[1])!==null&&r!==void 0?r:""}}else DS=function(t,n){for(var r=[];;){var o=Y2(t,n);if(o===void 0||Q2(o)||Y9(o))break;r.push(o),n+=o>=65536?2:1}return LS.apply(void 0,r)};var K9=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var o=[];!this.isEOF();){var i=this.char();if(i===123){var a=this.parseArgument(t,r);if(a.err)return a;o.push(a.val)}else{if(i===125&&t>0)break;if(i===35&&(n==="plural"||n==="selectordinal")){var l=this.clonePosition();this.bump(),o.push({type:Cn.pound,location:Xt(l,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(Wt.UNMATCHED_CLOSING_TAG,Xt(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&kS(this.peek()||0)){var a=this.parseTag(t,n);if(a.err)return a;o.push(a.val)}else{var a=this.parseLiteral(t,n);if(a.err)return a;o.push(a.val)}}}return{val:o,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Cn.literal,value:"<".concat(o,"/>"),location:Xt(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,n,!0);if(i.err)return i;var a=i.val,l=this.clonePosition();if(this.bumpIf("")?{val:{type:Cn.tag,value:o,children:a,location:Xt(r,this.clonePosition())},err:null}:this.error(Wt.INVALID_TAG,Xt(l,this.clonePosition())))}else return this.error(Wt.UNCLOSED_TAG,Xt(r,this.clonePosition()))}else return this.error(Wt.INVALID_TAG,Xt(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&X9(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),o="";;){var i=this.tryParseQuote(n);if(i){o+=i;continue}var a=this.tryParseUnquoted(t,n);if(a){o+=a;continue}var l=this.tryParseLeftAngleBracket();if(l){o+=l;continue}break}var s=Xt(r,this.clonePosition());return{val:{type:Cn.literal,value:o,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!G9(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return LS.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),LS(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Wt.EXPECT_ARGUMENT_CLOSING_BRACE,Xt(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Wt.EMPTY_ARGUMENT,Xt(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(Wt.MALFORMED_ARGUMENT,Xt(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Wt.EXPECT_ARGUMENT_CLOSING_BRACE,Xt(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Cn.argument,value:o,location:Xt(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Wt.EXPECT_ARGUMENT_CLOSING_BRACE,Xt(r,this.clonePosition())):this.parseArgumentOptions(t,n,o,r);default:return this.error(Wt.MALFORMED_ARGUMENT,Xt(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=DS(this.message,n),o=n+r.length;this.bumpTo(o);var i=this.clonePosition(),a=Xt(t,i);return{value:r,location:a}},e.prototype.parseArgumentOptions=function(t,n,r,o){var i,a=this.clonePosition(),l=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(l){case"":return this.error(Wt.EXPECT_ARGUMENT_TYPE,Xt(a,s));case"number":case"date":case"time":{this.bumpSpace();var d=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),m=this.parseSimpleArgStyleIfPossible();if(m.err)return m;var h=W9(m.val);if(h.length===0)return this.error(Wt.EXPECT_ARGUMENT_STYLE,Xt(this.clonePosition(),this.clonePosition()));var g=Xt(f,this.clonePosition());d={style:h,styleLocation:g}}var v=this.tryParseArgumentClose(o);if(v.err)return v;var C=Xt(o,this.clonePosition());if(d&&NI(d==null?void 0:d.style,"::",0)){var S=U9(d.style.slice(2));if(l==="number"){var m=this.parseNumberSkeletonFromString(S,d.styleLocation);return m.err?m:{val:{type:Cn.number,value:r,location:C,style:m.val},err:null}}else{if(S.length===0)return this.error(Wt.EXPECT_DATE_TIME_SKELETON,C);var y=S;this.locale&&(y=P9(S,this.locale));var h={type:hc.dateTime,pattern:y,location:d.styleLocation,parsedOptions:this.shouldParseSkeletons?w9(y):{}},x=l==="date"?Cn.date:Cn.time;return{val:{type:x,value:r,location:C,style:h},err:null}}}return{val:{type:l==="number"?Cn.number:l==="date"?Cn.date:Cn.time,value:r,location:C,style:(i=d==null?void 0:d.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var E=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Wt.EXPECT_SELECT_ARGUMENT_OPTIONS,Xt(E,pt({},E)));this.bumpSpace();var O=this.parseIdentifierIfPossible(),w=0;if(l!=="select"&&O.value==="offset"){if(!this.bumpIf(":"))return this.error(Wt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Xt(this.clonePosition(),this.clonePosition()));this.bumpSpace();var m=this.tryParseDecimalInteger(Wt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Wt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(m.err)return m;this.bumpSpace(),O=this.parseIdentifierIfPossible(),w=m.val}var $=this.tryParsePluralOrSelectOptions(t,l,n,O);if($.err)return $;var v=this.tryParseArgumentClose(o);if(v.err)return v;var R=Xt(o,this.clonePosition());return l==="select"?{val:{type:Cn.select,value:r,options:MI($.val),location:R},err:null}:{val:{type:Cn.plural,value:r,options:MI($.val),offset:w,pluralType:l==="plural"?"cardinal":"ordinal",location:R},err:null}}default:return this.error(Wt.INVALID_ARGUMENT_TYPE,Xt(a,s))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(Wt.EXPECT_ARGUMENT_CLOSING_BRACE,Xt(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Wt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Xt(o,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=$9(t)}catch{return this.error(Wt.INVALID_NUMBER_SKELETON,n)}return{val:{type:hc.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?T9(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,o){for(var i,a=!1,l=[],s=new Set,d=o.value,f=o.location;;){if(d.length===0){var m=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(Wt.EXPECT_PLURAL_ARGUMENT_SELECTOR,Wt.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;f=Xt(m,this.clonePosition()),d=this.message.slice(m.offset,this.offset())}else break}if(s.has(d))return this.error(n==="select"?Wt.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Wt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);d==="other"&&(a=!0),this.bumpSpace();var g=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?Wt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Wt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Xt(this.clonePosition(),this.clonePosition()));var v=this.parseMessage(t+1,n,r);if(v.err)return v;var C=this.tryParseArgumentClose(g);if(C.err)return C;l.push([d,{value:v.val,location:Xt(g,this.clonePosition())}]),s.add(d),this.bumpSpace(),i=this.parseIdentifierIfPossible(),d=i.value,f=i.location}return l.length===0?this.error(n==="select"?Wt.EXPECT_SELECT_ARGUMENT_SELECTOR:Wt.EXPECT_PLURAL_ARGUMENT_SELECTOR,Xt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(Wt.MISSING_OTHER_CLAUSE,Xt(this.clonePosition(),this.clonePosition())):{val:l,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,a=0;!this.isEOF();){var l=this.char();if(l>=48&&l<=57)i=!0,a=a*10+(l-48),this.bump();else break}var s=Xt(o,this.clonePosition());return i?(a*=r,j9(a)?{val:a,err:null}:this.error(n,s)):this.error(t,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=Y2(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(NI(this.message,t,this.offset())){for(var n=0;n=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Q2(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e}();function kS(e){return e>=97&&e<=122||e>=65&&e<=90}function G9(e){return kS(e)||e===47}function X9(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Q2(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Y9(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function FS(e){e.forEach(function(t){if(delete t.location,H2(t)||j2(t))for(var n in t.options)delete t.options[n].location,FS(t.options[n].value);else F2(t)&&U2(t.style)||(B2(t)||z2(t))&&MS(t.style)?delete t.style.location:V2(t)&&FS(t.children)})}function q9(e,t){t===void 0&&(t={}),t=pt({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new K9(e,t).parse();if(n.err){var r=SyntaxError(Wt[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||FS(n.val),n.val}function qi(e,t){var n=t&&t.cache?t.cache:n7,r=t&&t.serializer?t.serializer:t7,o=t&&t.strategy?t.strategy:Z9;return o(e,{cache:n,serializer:r})}function Q9(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Z2(e,t,n,r){var o=Q9(r)?r:n(r),i=t.get(o);return typeof i>"u"&&(i=e.call(this,r),t.set(o,i)),i}function J2(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return typeof i>"u"&&(i=e.apply(this,r),t.set(o,i)),i}function bx(e,t,n,r,o){return n.bind(t,e,r,o)}function Z9(e,t){var n=e.length===1?Z2:J2;return bx(e,this,n,t.cache.create(),t.serializer)}function J9(e,t){return bx(e,this,J2,t.cache.create(),t.serializer)}function e7(e,t){return bx(e,this,Z2,t.cache.create(),t.serializer)}var t7=function(){return JSON.stringify(arguments)};function Sx(){this.cache=Object.create(null)}Sx.prototype.get=function(e){return this.cache[e]};Sx.prototype.set=function(e,t){this.cache[e]=t};var n7={create:function(){return new Sx}},Qi={variadic:J9,monadic:e7},la;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(la||(la={}));var zl=function(e){ci(t,e);function t(n,r,o){var i=e.call(this,n)||this;return i.code=r,i.originalMessage=o,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),LI=function(e){ci(t,e);function t(n,r,o,i){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(o).join('", "'),'"'),la.INVALID_VALUE,i)||this}return t}(zl),r7=function(e){ci(t,e);function t(n,r,o){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),la.INVALID_VALUE,o)||this}return t}(zl),o7=function(e){ci(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),la.MISSING_VALUE,r)||this}return t}(zl),Kr;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Kr||(Kr={}));function i7(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==Kr.literal||n.type!==Kr.literal?t.push(n):r.value+=n.value,t},[])}function eM(e){return typeof e=="function"}function Qm(e,t,n,r,o,i,a){if(e.length===1&&RI(e[0]))return[{type:Kr.literal,value:e[0].value}];for(var l=[],s=0,d=e;s"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=q9,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),Ns;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(Ns||(Ns={}));var Hf=function(e){ci(t,e);function t(n,r,o){var i=this,a=o?o instanceof Error?o:new Error(String(o)):void 0;return i=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,` +`).concat(a?` +`.concat(a.message,` +`).concat(a.stack):""))||this,i.code=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(i,t),i}return t}(Error),u7=function(e){ci(t,e);function t(n,r){return e.call(this,Ns.UNSUPPORTED_FORMATTER,n,r)||this}return t}(Hf),c7=function(e){ci(t,e);function t(n,r){return e.call(this,Ns.INVALID_CONFIG,n,r)||this}return t}(Hf),DI=function(e){ci(t,e);function t(n,r){return e.call(this,Ns.MISSING_DATA,n,r)||this}return t}(Hf),di=function(e){ci(t,e);function t(n,r,o){var i=e.call(this,Ns.FORMAT_ERROR,"".concat(n,` +Locale: `).concat(r,` +`),o)||this;return i.locale=r,i}return t}(Hf),_y=function(e){ci(t,e);function t(n,r,o,i){var a=e.call(this,"".concat(n,` +MessageID: `).concat(o==null?void 0:o.id,` +Default Message: `).concat(o==null?void 0:o.defaultMessage,` +Description: `).concat(o==null?void 0:o.description,` +`),r,i)||this;return a.descriptor=o,a.locale=r,a}return t}(di),d7=function(e){ci(t,e);function t(n,r){var o=e.call(this,Ns.MISSING_TRANSLATION,'Missing message: "'.concat(n.id,'" for locale "').concat(r,'", using ').concat(n.defaultMessage?"default message (".concat(typeof n.defaultMessage=="string"?n.defaultMessage:n.defaultMessage.map(function(i){var a;return(a=i.value)!==null&&a!==void 0?a:JSON.stringify(i)}).join(),")"):"id"," as fallback."))||this;return o.descriptor=n,o}return t}(Hf);function zs(e,t,n){return n===void 0&&(n={}),t.reduce(function(r,o){return o in e?r[o]=e[o]:o in n&&(r[o]=n[o]),r},{})}var f7=function(e){},p7=function(e){},nM={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:f7,onWarn:p7};function rM(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Zl(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function m7(e){e===void 0&&(e=rM());var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames,o=qi(function(){for(var l,s=[],d=0;d needs to exist in the component ancestry.")}var sM=pt(pt({},nM),{textComponent:c.Fragment});function D7(e){return function(t){return e(c.Children.toArray(t))}}function k7(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var i=0;ie.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var VS={},iW={get exports(){return VS},set exports(e){VS=e}};/*! + 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)&&(e=1),e}function gm(e){return e<=1?"".concat(Number(e)*100,"%"):e}function ps(e){return e.length===1?"0"+e:String(e)}function sW(e,t,n){return{r:Er(e,255)*255,g:Er(t,255)*255,b:Er(n,255)*255}}function VI(e,t,n){e=Er(e,255),t=Er(t,255),n=Er(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,l=(r+o)/2;if(r===o)a=0,i=0;else{var s=r-o;switch(a=l>.5?s/(2-r-o):s/(r+o),r){case e:i=(t-n)/s+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function uW(e,t,n){var r,o,i;if(e=Er(e,360),t=Er(t,100),n=Er(n,100),t===0)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=Py(l,a,e+1/3),o=Py(l,a,e),i=Py(l,a,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function US(e,t,n){e=Er(e,255),t=Er(t,255),n=Er(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,l=r-o,s=r===0?0:l/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/l+(t>16,g:(e&65280)>>8,b:e&255}}var KS={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 xu(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,l=!1;return typeof e=="string"&&(e=gW(e)),typeof e=="object"&&(Sa(e.r)&&Sa(e.g)&&Sa(e.b)?(t=sW(e.r,e.g,e.b),a=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Sa(e.h)&&Sa(e.s)&&Sa(e.v)?(r=gm(e.s),o=gm(e.v),t=cW(e.h,r,o),a=!0,l="hsv"):Sa(e.h)&&Sa(e.s)&&Sa(e.l)&&(r=gm(e.s),i=gm(e.l),t=uW(e.h,r,i),a=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=mM(n),{ok:a,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var mW="[-\\+]?\\d+%?",hW="[-\\+]?\\d*\\.\\d+%?",vl="(?:".concat(hW,")|(?:").concat(mW,")"),Ny="[\\s|\\(]+(".concat(vl,")[,|\\s]+(").concat(vl,")[,|\\s]+(").concat(vl,")\\s*\\)?"),My="[\\s|\\(]+(".concat(vl,")[,|\\s]+(").concat(vl,")[,|\\s]+(").concat(vl,")[,|\\s]+(").concat(vl,")\\s*\\)?"),Ci={CSS_UNIT:new RegExp(vl),rgb:new RegExp("rgb"+Ny),rgba:new RegExp("rgba"+My),hsl:new RegExp("hsl"+Ny),hsla:new RegExp("hsla"+My),hsv:new RegExp("hsv"+Ny),hsva:new RegExp("hsva"+My),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 gW(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(KS[e])e=KS[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Ci.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Ci.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Ci.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Ci.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Ci.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Ci.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Ci.hex8.exec(e),n?{r:_o(n[1]),g:_o(n[2]),b:_o(n[3]),a:UI(n[4]),format:t?"name":"hex8"}:(n=Ci.hex6.exec(e),n?{r:_o(n[1]),g:_o(n[2]),b:_o(n[3]),format:t?"name":"hex"}:(n=Ci.hex4.exec(e),n?{r:_o(n[1]+n[1]),g:_o(n[2]+n[2]),b:_o(n[3]+n[3]),a:UI(n[4]+n[4]),format:t?"name":"hex8"}:(n=Ci.hex3.exec(e),n?{r:_o(n[1]+n[1]),g:_o(n[2]+n[2]),b:_o(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Sa(e){return!!Ci.CSS_UNIT.exec(String(e))}var yn=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=pW(t)),this.originalInput=t;var o=xu(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,i=t.r/255,a=t.g/255,l=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),l<=.03928?o=l/12.92:o=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=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=US(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=US(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=VI(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=VI(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),WS(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),dW(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(Er(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(Er(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="#"+WS(this.r,this.g,this.b,!1),n=0,r=Object.entries(KS);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=hm(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=hm(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=hm(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=hm(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],l=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-vm*t:Math.round(e.h)+vm*t:r=n?Math.round(e.h)+vm*t:Math.round(e.h)-vm*t,r<0?r+=360:r>=360&&(r-=360),r}function XI(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-WI*t:t===gM?r=e.s+WI:r=e.s+vW*t,r>1&&(r=1),n&&t===hM&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function YI(e,t,n){var r;return n?r=e.v+yW*t:r=e.v-bW*t,r>1&&(r=1),Number(r.toFixed(2))}function ka(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=xu(e),o=hM;o>0;o-=1){var i=KI(r),a=ym(xu({h:GI(i,o,!0),s:XI(i,o,!0),v:YI(i,o,!0)}));n.push(a)}n.push(ym(r));for(var l=1;l<=gM;l+=1){var s=KI(r),d=ym(xu({h:GI(s,l),s:XI(s,l),v:YI(s,l)}));n.push(d)}return t.theme==="dark"?SW.map(function(f){var m=f.index,h=f.opacity,g=ym(CW(xu(t.backgroundColor||"#141414"),xu(n[m]),h*100));return g}):n}var Qu={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"},Ay={},Ly={};Object.keys(Qu).forEach(function(e){Ay[e]=ka(Qu[e]),Ay[e].primary=Ay[e][5],Ly[e]=ka(Qu[e],{theme:"dark",backgroundColor:"#141414"}),Ly[e].primary=Ly[e][5]});var GS={},xW=function(t){};function EW(e,t){}function wW(e,t){}function OW(){GS={}}function vM(e,t,n){!t&&!GS[n]&&(e(!1,n),GS[n]=!0)}function En(e,t){vM(EW,e,t)}function $W(e,t){vM(wW,e,t)}En.preMessage=xW;En.resetWarned=OW;En.noteOnce=$W;function pr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Cs(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var qI="data-rc-order",IW="rc-util-key",XS=new Map;function yM(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):IW}function sv(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function RW(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function bM(e){return Array.from((XS.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function SM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!pr())return null;var n=t.csp,r=t.prepend,o=document.createElement("style");o.setAttribute(qI,RW(r)),n!=null&&n.nonce&&(o.nonce=n==null?void 0:n.nonce),o.innerHTML=e;var i=sv(t),a=i.firstChild;if(r){if(r==="queue"){var l=bM(i).filter(function(s){return["prepend","prependQueue"].includes(s.getAttribute(qI))});if(l.length)return i.insertBefore(o,l[l.length-1].nextSibling),o}i.insertBefore(o,a)}else i.appendChild(o);return o}function CM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=sv(t);return bM(n).find(function(r){return r.getAttribute(yM(t))===e})}function Fh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=CM(e,t);if(n){var r=sv(t);r.removeChild(n)}}function _W(e,t){var n=XS.get(e);if(!n||!Cs(document,n)){var r=SM("",t),o=r.parentNode;XS.set(e,o),e.removeChild(r)}}function gc(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=sv(n);_W(r,n);var o=CM(t,n);if(o){var i,a;if((i=n.csp)!==null&&i!==void 0&&i.nonce&&o.nonce!==((a=n.csp)===null||a===void 0?void 0:a.nonce)){var l;o.nonce=(l=n.csp)===null||l===void 0?void 0:l.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var s=SM(e,n);return s.setAttribute(yM(n),t),s}function TW(e,t){En(e,"[@ant-design/icons] ".concat(t))}function QI(e){return Ot(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Ot(e.icon)==="object"||typeof e.icon=="function")}function ZI(){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:t[n]=r}return t},{})}function YS(e,t,n){return n?ge.createElement(e.tag,j(j({key:t},ZI(e.attrs)),n),(e.children||[]).map(function(r,o){return YS(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):ge.createElement(e.tag,j({key:t},ZI(e.attrs)),(e.children||[]).map(function(r,o){return YS(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function xM(e){return ka(e)[0]}function EM(e){return e?Array.isArray(e)?e:[e]:[]}var PW=` +.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); + } +} +`,NW=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:PW,n=c.useContext(Ex),r=n.csp,o=n.prefixCls,i=t;o&&(i=i.replace(/anticon/g,o)),c.useEffect(function(){gc(i,"@ant-design-icons",{prepend:!0,csp:r})},[])},MW=["icon","className","onClick","style","primaryColor","secondaryColor"],Fd={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function AW(e){var t=e.primaryColor,n=e.secondaryColor;Fd.primaryColor=t,Fd.secondaryColor=n||xM(t),Fd.calculated=!!n}function LW(){return j({},Fd)}var uv=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,l=t.secondaryColor,s=vt(t,MW),d=Fd;if(a&&(d={primaryColor:a,secondaryColor:l||xM(a)}),NW(),TW(QI(n),"icon should be icon definiton, but got ".concat(n)),!QI(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=j(j({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),YS(f.icon,"svg-".concat(f.name),j({className:r,onClick:o,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s))};uv.displayName="IconReact";uv.getTwoToneColors=LW;uv.setTwoToneColors=AW;const Ox=uv;function wM(e){var t=EM(e),n=ue(t,2),r=n[0],o=n[1];return Ox.setTwoToneColors({primaryColor:r,secondaryColor:o})}function DW(){var e=Ox.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var kW=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];wM("#1890ff");var cv=c.forwardRef(function(e,t){var n,r=e.className,o=e.icon,i=e.spin,a=e.rotate,l=e.tabIndex,s=e.onClick,d=e.twoToneColor,f=vt(e,kW),m=c.useContext(Ex),h=m.prefixCls,g=h===void 0?"anticon":h,v=m.rootClassName,C=te(v,g,(n={},Z(n,"".concat(g,"-").concat(o.name),!!o.name),Z(n,"".concat(g,"-spin"),!!i||o.name==="loading"),n),r),S=l;S===void 0&&s&&(S=-1);var y=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,x=EM(d),E=ue(x,2),O=E[0],w=E[1];return c.createElement("span",j(j({role:"img","aria-label":o.name},f),{},{ref:t,tabIndex:S,onClick:s,className:C}),c.createElement(Ox,{icon:o,primaryColor:O,secondaryColor:w,style:y}))});cv.displayName="AntdIcon";cv.getTwoToneColor=DW;cv.setTwoToneColor=wM;const Bt=cv;var FW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z"}}]},name:"bulb",theme:"outlined"};const BW=FW;var OM=function(t,n){return c.createElement(Bt,j(j({},t),{},{ref:n,icon:BW}))};OM.displayName="BulbOutlined";const JI=c.forwardRef(OM);var zW={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 HW=zW;var $M=function(t,n){return c.createElement(Bt,j(j({},t),{},{ref:n,icon:HW}))};$M.displayName="CaretDownFilled";const jW=c.forwardRef($M);var VW={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 UW=VW;var IM=function(t,n){return c.createElement(Bt,j(j({},t),{},{ref:n,icon:UW}))};IM.displayName="CaretDownOutlined";const WW=c.forwardRef(IM);var KW={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"};const GW=KW;var RM=function(t,n){return c.createElement(Bt,j(j({},t),{},{ref:n,icon:GW}))};RM.displayName="CaretRightOutlined";const XW=c.forwardRef(RM);var YW={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 qW=YW;var _M=function(t,n){return c.createElement(Bt,j(j({},t),{},{ref:n,icon:qW}))};_M.displayName="CaretUpOutlined";const QW=c.forwardRef(_M);var ZW={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 JW=ZW;var TM=function(t,n){return c.createElement(Bt,j(j({},t),{},{ref:n,icon:JW}))};TM.displayName="CheckCircleFilled";const $x=c.forwardRef(TM);var eK={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 tK=eK;var PM=function(t,n){return c.createElement(Bt,j(j({},t),{},{ref:n,icon:tK}))};PM.displayName="CheckOutlined";const NM=c.forwardRef(PM);var nK={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 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"};const rK=nK;var MM=function(t,n){return c.createElement(Bt,j(j({},t),{},{ref:n,icon:rK}))};MM.displayName="CloseCircleFilled";const Rc=c.forwardRef(MM);var oK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"};const iK=oK;var AM=function(t,n){return c.createElement(Bt,j(j({},t),{},{ref:n,icon:iK}))};AM.displayName="CloseOutlined";const Vf=c.forwardRef(AM);var aK={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 lK=aK;var LM=function(t,n){return c.createElement(Bt,j(j({},t),{},{ref:n,icon:lK}))};LM.displayName="DoubleLeftOutlined";const eR=c.forwardRef(LM);var sK={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 uK=sK;var DM=function(t,n){return c.createElement(Bt,j(j({},t),{},{ref:n,icon:uK}))};DM.displayName="DoubleRightOutlined";const tR=c.forwardRef(DM);var cK={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 dK=cK;var kM=function(t,n){return c.createElement(Bt,j(j({},t),{},{ref:n,icon:dK}))};kM.displayName="DownOutlined";const Ix=c.forwardRef(kM);var fK={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 pK=fK;var FM=function(t,n){return c.createElement(Bt,j(j({},t),{},{ref:n,icon:pK}))};FM.displayName="EllipsisOutlined";const BM=c.forwardRef(FM);var mK={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 hK=mK;var zM=function(t,n){return c.createElement(Bt,j(j({},t),{},{ref:n,icon:hK}))};zM.displayName="ExclamationCircleFilled";const HM=c.forwardRef(zM);var gK={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 vK=gK;var jM=function(t,n){return c.createElement(Bt,j(j({},t),{},{ref:n,icon:vK}))};jM.displayName="EyeInvisibleOutlined";const yK=c.forwardRef(jM);var bK={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 SK=bK;var VM=function(t,n){return c.createElement(Bt,j(j({},t),{},{ref:n,icon:SK}))};VM.displayName="EyeOutlined";const UM=c.forwardRef(VM);var CK={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 42h216v494zM544 472c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v108H372c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h108v108c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V644h108c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V472z"}}]},name:"file-add",theme:"outlined"};const xK=CK;var WM=function(t,n){return c.createElement(Bt,j(j({},t),{},{ref:n,icon:xK}))};WM.displayName="FileAddOutlined";const EK=c.forwardRef(WM);var wK={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 OK=wK;var KM=function(t,n){return c.createElement(Bt,j(j({},t),{},{ref:n,icon:OK}))};KM.displayName="FileOutlined";const GM=c.forwardRef(KM);var $K={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 IK=$K;var XM=function(t,n){return c.createElement(Bt,j(j({},t),{},{ref:n,icon:IK}))};XM.displayName="FilterFilled";const RK=c.forwardRef(XM);var _K={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 TK=_K;var YM=function(t,n){return c.createElement(Bt,j(j({},t),{},{ref:n,icon:TK}))};YM.displayName="FolderOpenOutlined";const qM=c.forwardRef(YM);var PK={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 NK=PK;var QM=function(t,n){return c.createElement(Bt,j(j({},t),{},{ref:n,icon:NK}))};QM.displayName="FolderOutlined";const MK=c.forwardRef(QM);var AK={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M825.8 498L538.4 249.9c-10.7-9.2-26.4-.9-26.4 14v496.3c0 14.9 15.7 23.2 26.4 14L825.8 526c8.3-7.2 8.3-20.8 0-28zm-320 0L218.4 249.9c-10.7-9.2-26.4-.9-26.4 14v496.3c0 14.9 15.7 23.2 26.4 14L505.8 526c4.1-3.6 6.2-8.8 6.2-14 0-5.2-2.1-10.4-6.2-14z"}}]},name:"forward",theme:"outlined"};const LK=AK;var ZM=function(t,n){return c.createElement(Bt,j(j({},t),{},{ref:n,icon:LK}))};ZM.displayName="ForwardOutlined";const DK=c.forwardRef(ZM);var kK={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 FK=kK;var JM=function(t,n){return c.createElement(Bt,j(j({},t),{},{ref:n,icon:FK}))};JM.displayName="HolderOutlined";const BK=c.forwardRef(JM);var zK={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 HK=zK;var eA=function(t,n){return c.createElement(Bt,j(j({},t),{},{ref:n,icon:HK}))};eA.displayName="InfoCircleFilled";const tA=c.forwardRef(eA);var jK={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 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};const VK=jK;var nA=function(t,n){return c.createElement(Bt,j(j({},t),{},{ref:n,icon:VK}))};nA.displayName="InfoCircleOutlined";const rA=c.forwardRef(nA);var UK={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 WK=UK;var oA=function(t,n){return c.createElement(Bt,j(j({},t),{},{ref:n,icon:WK}))};oA.displayName="LeftOutlined";const nR=c.forwardRef(oA);var KK={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 GK=KK;var iA=function(t,n){return c.createElement(Bt,j(j({},t),{},{ref:n,icon:GK}))};iA.displayName="LoadingOutlined";const yf=c.forwardRef(iA);var XK={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 YK=XK;var aA=function(t,n){return c.createElement(Bt,j(j({},t),{},{ref:n,icon:YK}))};aA.displayName="MinusSquareOutlined";const qK=c.forwardRef(aA);var QK={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 ZK=QK;var lA=function(t,n){return c.createElement(Bt,j(j({},t),{},{ref:n,icon:ZK}))};lA.displayName="PlusSquareOutlined";const JK=c.forwardRef(lA);var eG={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 tG=eG;var sA=function(t,n){return c.createElement(Bt,j(j({},t),{},{ref:n,icon:tG}))};sA.displayName="ReloadOutlined";const nG=c.forwardRef(sA);var rG={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 oG=rG;var uA=function(t,n){return c.createElement(Bt,j(j({},t),{},{ref:n,icon:oG}))};uA.displayName="RightOutlined";const qS=c.forwardRef(uA);var iG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"};const aG=iG;var cA=function(t,n){return c.createElement(Bt,j(j({},t),{},{ref:n,icon:aG}))};cA.displayName="SaveOutlined";const lG=c.forwardRef(cA);var sG={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 uG=sG;var dA=function(t,n){return c.createElement(Bt,j(j({},t),{},{ref:n,icon:uG}))};dA.displayName="SearchOutlined";const Rx=c.forwardRef(dA);var cG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM664.8 561.6l36.1 210.3L512 672.7 323.1 772l36.1-210.3-152.8-149L417.6 382 512 190.7 606.4 382l211.2 30.7-152.8 148.9z"}}]},name:"star",theme:"outlined"};const dG=cG;var fA=function(t,n){return c.createElement(Bt,j(j({},t),{},{ref:n,icon:dG}))};fA.displayName="StarOutlined";const fG=c.forwardRef(fA);var pG={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 mG=pG;var pA=function(t,n){return c.createElement(Bt,j(j({},t),{},{ref:n,icon:mG}))};pA.displayName="StopOutlined";const hG=c.forwardRef(pA);var gG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M140 188h584v164h76V144c0-17.7-14.3-32-32-32H96c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h544v-76H140V188z"}},{tag:"path",attrs:{d:"M414.3 256h-60.6c-3.4 0-6.4 2.2-7.6 5.4L219 629.4c-.3.8-.4 1.7-.4 2.6 0 4.4 3.6 8 8 8h55.1c3.4 0 6.4-2.2 7.6-5.4L322 540h196.2L422 261.4a8.42 8.42 0 00-7.7-5.4zm12.4 228h-85.5L384 360.2 426.7 484zM936 528H800v-93c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v93H592c-13.3 0-24 10.7-24 24v176c0 13.3 10.7 24 24 24h136v152c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V752h136c13.3 0 24-10.7 24-24V552c0-13.3-10.7-24-24-24zM728 680h-88v-80h88v80zm160 0h-88v-80h88v80z"}}]},name:"translation",theme:"outlined"};const vG=gG;var mA=function(t,n){return c.createElement(Bt,j(j({},t),{},{ref:n,icon:vG}))};mA.displayName="TranslationOutlined";const yG=c.forwardRef(mA);var bG={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 SG=bG;var hA=function(t,n){return c.createElement(Bt,j(j({},t),{},{ref:n,icon:SG}))};hA.displayName="UpOutlined";const CG=c.forwardRef(hA);function Qn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rR(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 Et(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function EG(e,t){if(t&&(Ot(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Et(e)}function ki(e){var t=xG();return function(){var r=Bh(e),o;if(t){var i=Bh(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return EG(this,o)}}function li(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return ge.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(li(r)):gf.isFragment(r)&&r.props?n=n.concat(li(r.props.children,t)):n.push(r))}),n}function Hs(e,t,n){var r=c.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}function bf(e,t){typeof e=="function"?e(t):Ot(e)==="object"&&e&&"current"in e&&(e.current=t)}function zo(){for(var e=arguments.length,t=new Array(e),n=0;n0},e.prototype.connect_=function(){!ZS||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),_G?(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(){!ZS||!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=RG.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}(),vA=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof vc(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new FG(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 vc(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 BG(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}(),bA=typeof WeakMap<"u"?new WeakMap:new gA,SA=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=TG.getInstance(),r=new zG(t,n,this);bA.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){SA.prototype[e]=function(){var t;return(t=bA.get(this))[e].apply(t,arguments)}});var CA=function(){return typeof Hh.ResizeObserver<"u"?Hh.ResizeObserver:SA}(),yl=new Map;function HG(e){e.forEach(function(t){var n,r=t.target;(n=yl.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var xA=new CA(HG);function jG(e,t){yl.has(e)||(yl.set(e,new Set),xA.observe(e)),yl.get(e).add(t)}function VG(e,t){yl.has(e)&&(yl.get(e).delete(t),yl.get(e).size||(xA.unobserve(e),yl.delete(e)))}var UG=function(e){Di(n,e);var t=ki(n);function n(){return Qn(this,n),t.apply(this,arguments)}return Zn(n,[{key:"render",value:function(){return this.props.children}}]),n}(c.Component),JS=c.createContext(null);function WG(e){var t=e.children,n=e.onBatchResize,r=c.useRef(0),o=c.useRef([]),i=c.useContext(JS),a=c.useCallback(function(l,s,d){r.current+=1;var f=r.current;o.current.push({size:l,element:s,data:d}),Promise.resolve().then(function(){f===r.current&&(n==null||n(o.current),o.current=[])}),i==null||i(l,s,d)},[n,i]);return c.createElement(JS.Provider,{value:a},t)}function KG(e,t){var n=e.children,r=e.disabled,o=c.useRef(null),i=c.useRef(null),a=c.useContext(JS),l=typeof n=="function",s=l?n(o):n,d=c.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),f=!l&&c.isValidElement(s)&&Hl(s),m=f?s.ref:null,h=c.useMemo(function(){return zo(m,o)},[m,o]),g=function(){return Sf(o.current)||Sf(i.current)};c.useImperativeHandle(t,function(){return g()});var v=c.useRef(e);v.current=e;var C=c.useCallback(function(S){var y=v.current,x=y.onResize,E=y.data,O=S.getBoundingClientRect(),w=O.width,$=O.height,R=S.offsetWidth,_=S.offsetHeight,M=Math.floor(w),T=Math.floor($);if(d.current.width!==M||d.current.height!==T||d.current.offsetWidth!==R||d.current.offsetHeight!==_){var D={width:M,height:T,offsetWidth:R,offsetHeight:_};d.current=D;var N=R===Math.round(w)?w:R,P=_===Math.round($)?$:_,L=j(j({},D),{},{offsetWidth:N,offsetHeight:P});a==null||a(L,S,E),x&&Promise.resolve().then(function(){x(L,S)})}},[]);return c.useEffect(function(){var S=g();return S&&!r&&jG(S,C),function(){return VG(S,C)}},[o.current,r]),c.createElement(UG,{ref:i},f?c.cloneElement(s,{ref:h}):s)}var GG=c.forwardRef(KG),XG="rc-observer-key";function YG(e,t){var n=e.children,r=typeof n=="function"?[n]:li(n);return r.map(function(o,i){var a=(o==null?void 0:o.key)||"".concat(XG,"-").concat(i);return c.createElement(GG,je({},e,{key:a,ref:i===0?t:void 0}),o)})}var Fi=c.forwardRef(YG);Fi.Collection=WG;function kr(e,t){var n=j({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}function qG(e){if(Array.isArray(e))return jS(e)}function EA(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function QG(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pe(e){return qG(e)||EA(e)||wx(e)||QG()}function _x(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 Fa(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=r.has(i);if(En(!s,"Warning: There may be circular references"),s)return!1;if(i===a)return!0;if(n&&l>1)return!1;r.add(i);var d=l+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var f=0;f2&&arguments[2]!==void 0?arguments[2]:{},r=n.salt,o=r===void 0?"":r,i=n.override,a=i===void 0?oX:i,l=n.formatToken,s=c.useMemo(function(){return Object.assign.apply(Object,[{}].concat(Pe(t)))},[t]),d=c.useMemo(function(){return Uh(s)},[s]),f=c.useMemo(function(){return Uh(a)},[a]),m=OA("token",[o,e.id,d,f],function(){var h=e.getDerivativeToken(s),g=j(j({},h),a);l&&(g=l(g));var v=tX(g,o);g._tokenKey=v,aX(v);var C="".concat(iX,"-").concat(_x(v));return g._hashId=C,[g,C]},function(h){sX(h[0]._tokenKey)});return m}var cX={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},IA="comm",RA="rule",_A="decl",dX="@import",fX="@keyframes",pX=Math.abs,Tx=String.fromCharCode;function TA(e){return e.trim()}function tC(e,t,n){return e.replace(t,n)}function mX(e,t){return e.indexOf(t)}function Cf(e,t){return e.charCodeAt(t)|0}function xf(e,t,n){return e.slice(t,n)}function cl(e){return e.length}function PA(e){return e.length}function bm(e,t){return t.push(e),e}var pv=1,yc=1,NA=0,si=0,Yn=0,_c="";function Px(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:pv,column:yc,length:a,return:""}}function hX(){return Yn}function gX(){return Yn=si>0?Cf(_c,--si):0,yc--,Yn===10&&(yc=1,pv--),Yn}function Pi(){return Yn=si2||nC(Yn)>3?"":" "}function SX(e,t){for(;--t&&Pi()&&!(Yn<48||Yn>102||Yn>57&&Yn<65||Yn>70&&Yn<97););return mv(e,Zm()+(t<6&&xs()==32&&Pi()==32))}function rC(e){for(;Pi();)switch(Yn){case e:return si;case 34:case 39:e!==34&&e!==39&&rC(Yn);break;case 40:e===41&&rC(e);break;case 92:Pi();break}return si}function CX(e,t){for(;Pi()&&e+Yn!==47+10;)if(e+Yn===42+42&&xs()===47)break;return"/*"+mv(t,si-1)+"*"+Tx(e===47?e:Pi())}function xX(e){for(;!nC(xs());)Pi();return mv(e,si)}function EX(e){return yX(Jm("",null,null,null,[""],e=vX(e),0,[0],e))}function Jm(e,t,n,r,o,i,a,l,s){for(var d=0,f=0,m=a,h=0,g=0,v=0,C=1,S=1,y=1,x=0,E="",O=o,w=i,$=r,R=E;S;)switch(v=x,x=Pi()){case 40:if(v!=108&&Cf(R,m-1)==58){mX(R+=tC(ky(x),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:R+=ky(x);break;case 9:case 10:case 13:case 32:R+=bX(v);break;case 92:R+=SX(Zm()-1,7);continue;case 47:switch(xs()){case 42:case 47:bm(wX(CX(Pi(),Zm()),t,n),s);break;default:R+="/"}break;case 123*C:l[d++]=cl(R)*y;case 125*C:case 59:case 0:switch(x){case 0:case 125:S=0;case 59+f:g>0&&cl(R)-m&&bm(g>32?aR(R+";",r,n,m-1):aR(tC(R," ","")+";",r,n,m-2),s);break;case 59:R+=";";default:if(bm($=iR(R,t,n,d,f,o,l,E,O=[],w=[],m),i),x===123)if(f===0)Jm(R,t,$,$,O,i,m,l,w);else switch(h===99&&Cf(R,3)===110?100:h){case 100:case 109:case 115:Jm(e,$,$,r&&bm(iR(e,$,$,0,0,o,l,E,o,O=[],m),w),o,w,m,l,r?O:w);break;default:Jm(R,$,$,$,[""],w,0,l,w)}}d=f=g=0,C=y=1,E=R="",m=a;break;case 58:m=1+cl(R),g=v;default:if(C<1){if(x==123)--C;else if(x==125&&C++==0&&gX()==125)continue}switch(R+=Tx(x),x*C){case 38:y=f>0?1:(R+="\f",-1);break;case 44:l[d++]=(cl(R)-1)*y,y=1;break;case 64:xs()===45&&(R+=ky(Pi())),h=xs(),f=m=cl(E=R+=xX(Zm())),x++;break;case 45:v===45&&cl(R)==2&&(C=0)}}return i}function iR(e,t,n,r,o,i,a,l,s,d,f){for(var m=o-1,h=o===0?i:[""],g=PA(h),v=0,C=0,S=0;v0?h[y]+" "+x:tC(x,/&\f/g,h[y])))&&(s[S++]=E);return Px(e,t,n,o===0?RA:l,s,d,f)}function wX(e,t,n){return Px(e,t,n,IA,Tx(hX()),xf(e,2,-2),0)}function aR(e,t,n,r){return Px(e,t,n,_A,xf(e,0,r),xf(e,r+1,-1),r)}function oC(e,t){for(var n="",r=PA(e),o=0;o1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,l=n.hashId,s=n.layer;n.path;var d=n.hashPriority,f=n.transformers,m=f===void 0?[]:f;n.linters;var h="",g={};function v(E){var O=E.getName(l);if(!g[O]){var w=e(E.style,n,{root:!1,parentSelectors:a}),$=ue(w,1),R=$[0];g[O]="@keyframes ".concat(E.getName(l)).concat(R)}}function C(E){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return E.forEach(function(w){Array.isArray(w)?C(w,O):w&&O.push(w)}),O}var S=C(Array.isArray(t)?t:[t]);if(S.forEach(function(E){var O=typeof E=="string"&&!o?{}:E;if(typeof O=="string")h+="".concat(O,` +`);else if(O._keyframe)v(O);else{var w=m.reduce(function($,R){var _;return(R==null||(_=R.visit)===null||_===void 0?void 0:_.call(R,$))||$},O);Object.keys(w).forEach(function($){var R=w[$];if(Ot(R)==="object"&&R&&($!=="animationName"||!R._keyframe)&&!IX(R)){var _=!1,M=$.trim(),T=!1;(o||i)&&l?M.startsWith("@")?_=!0:M=RX($,l,d):o&&!l&&(M==="&"||M==="")&&(M="",T=!0);var D=e(R,n,{root:T,injectHash:_,parentSelectors:[].concat(Pe(a),[M])}),N=ue(D,2),P=N[0],L=N[1];g=j(j({},g),L),h+="".concat(M).concat(P)}else{var k,F=(k=R==null?void 0:R.value)!==null&&k!==void 0?k:R,V=$.replace(/[A-Z]/g,function(W){return"-".concat(W.toLowerCase())}),H=F;!cX[$]&&typeof H=="number"&&H!==0&&(H="".concat(H,"px")),$==="animationName"&&R!==null&&R!==void 0&&R._keyframe&&(v(R),H=R.getName(l)),h+="".concat(V,":").concat(H,";")}})}}),!o)h="{".concat(h,"}");else if(s&&rX()){var y=s.split(","),x=y[y.length-1].trim();h="@layer ".concat(x," {").concat(h,"}"),y.length>1&&(h="@layer ".concat(s,"{%%%:%}").concat(h))}return[h,g]};function TX(e,t){return _x("".concat(e.join("%")).concat(t))}function PX(){return null}function iC(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,l=c.useContext(wA),s=l.autoClear;l.mock;var d=l.defaultCache,f=l.hashPriority,m=l.container,h=l.ssrInline,g=l.transformers,v=l.linters,C=n._tokenKey,S=[C].concat(Pe(r)),y=lR,x=OA("style",S,function(){var R=t(),_=_X(R,{hashId:o,hashPriority:f,layer:i,path:r.join("-"),transformers:g,linters:v}),M=ue(_,2),T=M[0],D=M[1],N=sR(T),P=TX(S,N);if(y){var L={mark:Zu,prepend:"queue",attachTo:m},k=typeof a=="function"?a():a;k&&(L.csp={nonce:k});var F=gc(N,P,L);F[Bd]=Vh,F.setAttribute(eC,C),Object.keys(D).forEach(function(V){gc(sR(D[V]),"_effect-".concat(V),L)})}return[N,C,P]},function(R,_){var M=ue(R,3),T=M[2];(_||s)&&lR&&Fh(T,{mark:Zu})}),E=ue(x,3),O=E[0],w=E[1],$=E[2];return function(R){var _;if(!h||y||!d)_=c.createElement(PX,null);else{var M;_=c.createElement("style",je({},(M={},Z(M,eC,w),Z(M,Zu,$),M),{dangerouslySetInnerHTML:{__html:O}}))}return c.createElement(c.Fragment,null,_,R)}}var Dt=function(){function e(t,n){Qn(this,e),Z(this,"name",void 0),Z(this,"style",void 0),Z(this,"_keyframe",!0),this.name=t,this.style=n}return Zn(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function NX(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(l){if(!a)a=void 0;else{var s,d;a=(s=a)===null||s===void 0||(d=s.map)===null||d===void 0?void 0:d.get(l)}}),(r=a)!==null&&r!==void 0&&r.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(d,f){var m=ue(d,2),h=m[1];return o.internalGet(f)[1]0,void 0),uR+=1}return Zn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),Fy=new Nx;function MA(e){var t=Array.isArray(e)?e:[e];return Fy.has(t)||Fy.set(t,new MX(t)),Fy.get(t)}function su(e){return e.notSplit=!0,e}su(["borderTop","borderBottom"]),su(["borderTop"]),su(["borderBottom"]),su(["borderLeft","borderRight"]),su(["borderLeft"]),su(["borderRight"]);var ms="RC_FORM_INTERNAL_HOOKS",cn=function(){En(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},bc=c.createContext({getFieldValue:cn,getFieldsValue:cn,getFieldError:cn,getFieldWarning:cn,getFieldsError:cn,isFieldsTouched:cn,isFieldTouched:cn,isFieldValidating:cn,isFieldsValidating:cn,resetFields:cn,setFields:cn,setFieldValue:cn,setFieldsValue:cn,validateFields:cn,submit:cn,getInternalHooks:function(){return cn(),{dispatch:cn,initEntityValue:cn,registerField:cn,useSubscribe:cn,setInitialValues:cn,destroyForm:cn,setCallbacks:cn,registerWatch:cn,getFields:cn,setValidateMessages:cn,setPreserve:cn,getInitialValue:cn}}});function aC(e){return e==null?[]:Array.isArray(e)?e:[e]}function AX(e){return e&&!!e._init}function Yr(){Yr=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(N,P,L){N[P]=L.value},o=typeof Symbol=="function"?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(N,P,L){return Object.defineProperty(N,P,{value:L,enumerable:!0,configurable:!0,writable:!0}),N[P]}try{s({},"")}catch{s=function(L,k,F){return L[k]=F}}function d(N,P,L,k){var F=P&&P.prototype instanceof h?P:h,V=Object.create(F.prototype),H=new M(k||[]);return r(V,"_invoke",{value:w(N,L,H)}),V}function f(N,P,L){try{return{type:"normal",arg:N.call(P,L)}}catch(k){return{type:"throw",arg:k}}}e.wrap=d;var m={};function h(){}function g(){}function v(){}var C={};s(C,i,function(){return this});var S=Object.getPrototypeOf,y=S&&S(S(T([])));y&&y!==t&&n.call(y,i)&&(C=y);var x=v.prototype=h.prototype=Object.create(C);function E(N){["next","throw","return"].forEach(function(P){s(N,P,function(L){return this._invoke(P,L)})})}function O(N,P){function L(F,V,H,W){var G=f(N[F],N,V);if(G.type!=="throw"){var U=G.arg,X=U.value;return X&&Ot(X)=="object"&&n.call(X,"__await")?P.resolve(X.__await).then(function(Q){L("next",Q,H,W)},function(Q){L("throw",Q,H,W)}):P.resolve(X).then(function(Q){U.value=Q,H(U)},function(Q){return L("throw",Q,H,W)})}W(G.arg)}var k;r(this,"_invoke",{value:function(V,H){function W(){return new P(function(G,U){L(V,H,G,U)})}return k=k?k.then(W,W):W()}})}function w(N,P,L){var k="suspendedStart";return function(F,V){if(k==="executing")throw new Error("Generator is already running");if(k==="completed"){if(F==="throw")throw V;return D()}for(L.method=F,L.arg=V;;){var H=L.delegate;if(H){var W=$(H,L);if(W){if(W===m)continue;return W}}if(L.method==="next")L.sent=L._sent=L.arg;else if(L.method==="throw"){if(k==="suspendedStart")throw k="completed",L.arg;L.dispatchException(L.arg)}else L.method==="return"&&L.abrupt("return",L.arg);k="executing";var G=f(N,P,L);if(G.type==="normal"){if(k=L.done?"completed":"suspendedYield",G.arg===m)continue;return{value:G.arg,done:L.done}}G.type==="throw"&&(k="completed",L.method="throw",L.arg=G.arg)}}}function $(N,P){var L=P.method,k=N.iterator[L];if(k===void 0)return P.delegate=null,L==="throw"&&N.iterator.return&&(P.method="return",P.arg=void 0,$(N,P),P.method==="throw")||L!=="return"&&(P.method="throw",P.arg=new TypeError("The iterator does not provide a '"+L+"' method")),m;var F=f(k,N.iterator,P.arg);if(F.type==="throw")return P.method="throw",P.arg=F.arg,P.delegate=null,m;var V=F.arg;return V?V.done?(P[N.resultName]=V.value,P.next=N.nextLoc,P.method!=="return"&&(P.method="next",P.arg=void 0),P.delegate=null,m):V:(P.method="throw",P.arg=new TypeError("iterator result is not an object"),P.delegate=null,m)}function R(N){var P={tryLoc:N[0]};1 in N&&(P.catchLoc=N[1]),2 in N&&(P.finallyLoc=N[2],P.afterLoc=N[3]),this.tryEntries.push(P)}function _(N){var P=N.completion||{};P.type="normal",delete P.arg,N.completion=P}function M(N){this.tryEntries=[{tryLoc:"root"}],N.forEach(R,this),this.reset(!0)}function T(N){if(N){var P=N[i];if(P)return P.call(N);if(typeof N.next=="function")return N;if(!isNaN(N.length)){var L=-1,k=function F(){for(;++L=0;--F){var V=this.tryEntries[F],H=V.completion;if(V.tryLoc==="root")return k("end");if(V.tryLoc<=this.prev){var W=n.call(V,"catchLoc"),G=n.call(V,"finallyLoc");if(W&&G){if(this.prev=0;--k){var F=this.tryEntries[k];if(F.tryLoc<=this.prev&&n.call(F,"finallyLoc")&&this.prev=0;--L){var k=this.tryEntries[L];if(k.finallyLoc===P)return this.complete(k.completion,k.afterLoc),_(k),m}},catch:function(P){for(var L=this.tryEntries.length-1;L>=0;--L){var k=this.tryEntries[L];if(k.tryLoc===P){var F=k.completion;if(F.type==="throw"){var V=F.arg;_(k)}return V}}throw new Error("illegal catch attempt")},delegateYield:function(P,L,k){return this.delegate={iterator:T(P),resultName:L,nextLoc:k},this.method==="next"&&(this.arg=void 0),m}},e}function cR(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(d){n(d);return}l.done?t(s):Promise.resolve(s).then(r,o)}function js(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(s){cR(i,r,o,a,l,"next",s)}function l(s){cR(i,r,o,a,l,"throw",s)}a(void 0)})}}function hs(){return hs=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 eh(e,t,n){return DX()?eh=Reflect.construct.bind():eh=function(o,i,a){var l=[null];l.push.apply(l,i);var s=Function.bind.apply(o,l),d=new s;return a&&Ef(d,a.prototype),d},eh.apply(null,arguments)}function kX(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function sC(e){var t=typeof Map=="function"?new Map:void 0;return sC=function(r){if(r===null||!kX(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 eh(r,arguments,lC(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Ef(o,r)},sC(e)}var FX=/%[sdj%]/g,BX=function(){};typeof process<"u"&&process.env;function uC(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 Mo(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=i)return l;switch(l){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return l}});return a}return e}function zX(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function ar(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||zX(t)&&typeof e=="string"&&!e)}function HX(e,t,n){var r=[],o=0,i=e.length;function a(l){r.push.apply(r,l||[]),o++,o===i&&n(r)}e.forEach(function(l){t(l,a)})}function dR(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var l=r;r=r+1,l()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Cd={integer:function(t){return Cd.number(t)&&parseInt(t,10)===t},float:function(t){return Cd.number(t)&&!Cd.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"&&!Cd.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(hR.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(GX())},hex:function(t){return typeof t=="string"&&!!t.match(hR.hex)}},XX=function(t,n,r,o,i){if(t.required&&n===void 0){AA(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;a.indexOf(l)>-1?Cd[l](n)||o.push(Mo(i.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&o.push(Mo(i.messages.types[l],t.fullField,t.type))},YX=function(t,n,r,o,i){var a=typeof t.len=="number",l=typeof t.min=="number",s=typeof t.max=="number",d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f=n,m=null,h=typeof n=="number",g=typeof n=="string",v=Array.isArray(n);if(h?m="number":g?m="string":v&&(m="array"),!m)return!1;v&&(f=n.length),g&&(f=n.replace(d,"_").length),a?f!==t.len&&o.push(Mo(i.messages[m].len,t.fullField,t.len)):l&&!s&&ft.max?o.push(Mo(i.messages[m].max,t.fullField,t.max)):l&&s&&(ft.max)&&o.push(Mo(i.messages[m].range,t.fullField,t.min,t.max))},uu="enum",qX=function(t,n,r,o,i){t[uu]=Array.isArray(t[uu])?t[uu]:[],t[uu].indexOf(n)===-1&&o.push(Mo(i.messages[uu],t.fullField,t[uu].join(", ")))},QX=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Mo(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(Mo(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},jt={required:AA,whitespace:KX,type:XX,range:YX,enum:qX,pattern:QX},ZX=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(ar(n,"string")&&!t.required)return r();jt.required(t,n,o,a,i,"string"),ar(n,"string")||(jt.type(t,n,o,a,i),jt.range(t,n,o,a,i),jt.pattern(t,n,o,a,i),t.whitespace===!0&&jt.whitespace(t,n,o,a,i))}r(a)},JX=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(ar(n)&&!t.required)return r();jt.required(t,n,o,a,i),n!==void 0&&jt.type(t,n,o,a,i)}r(a)},eY=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),ar(n)&&!t.required)return r();jt.required(t,n,o,a,i),n!==void 0&&(jt.type(t,n,o,a,i),jt.range(t,n,o,a,i))}r(a)},tY=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(ar(n)&&!t.required)return r();jt.required(t,n,o,a,i),n!==void 0&&jt.type(t,n,o,a,i)}r(a)},nY=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(ar(n)&&!t.required)return r();jt.required(t,n,o,a,i),ar(n)||jt.type(t,n,o,a,i)}r(a)},rY=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(ar(n)&&!t.required)return r();jt.required(t,n,o,a,i),n!==void 0&&(jt.type(t,n,o,a,i),jt.range(t,n,o,a,i))}r(a)},oY=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(ar(n)&&!t.required)return r();jt.required(t,n,o,a,i),n!==void 0&&(jt.type(t,n,o,a,i),jt.range(t,n,o,a,i))}r(a)},iY=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();jt.required(t,n,o,a,i,"array"),n!=null&&(jt.type(t,n,o,a,i),jt.range(t,n,o,a,i))}r(a)},aY=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(ar(n)&&!t.required)return r();jt.required(t,n,o,a,i),n!==void 0&&jt.type(t,n,o,a,i)}r(a)},lY="enum",sY=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(ar(n)&&!t.required)return r();jt.required(t,n,o,a,i),n!==void 0&&jt[lY](t,n,o,a,i)}r(a)},uY=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(ar(n,"string")&&!t.required)return r();jt.required(t,n,o,a,i),ar(n,"string")||jt.pattern(t,n,o,a,i)}r(a)},cY=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(ar(n,"date")&&!t.required)return r();if(jt.required(t,n,o,a,i),!ar(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),jt.type(t,s,o,a,i),s&&jt.range(t,s.getTime(),o,a,i)}}r(a)},dY=function(t,n,r,o,i){var a=[],l=Array.isArray(n)?"array":typeof n;jt.required(t,n,o,a,i,l),r(a)},By=function(t,n,r,o,i){var a=t.type,l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ar(n,a)&&!t.required)return r();jt.required(t,n,o,l,i,a),ar(n,a)||jt.type(t,n,o,l,i)}r(l)},fY=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(ar(n)&&!t.required)return r();jt.required(t,n,o,a,i)}r(a)},Hd={string:ZX,method:JX,number:eY,boolean:tY,regexp:nY,integer:rY,float:oY,array:iY,object:aY,enum:sY,pattern:uY,date:cY,url:By,hex:By,email:By,required:dY,any:fY};function cC(){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 dC=cC(),Uf=function(){function e(n){this.rules=null,this._messages=dC,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=mR(cC(),r)),this._messages},t.validate=function(r,o,i){var a=this;o===void 0&&(o={}),i===void 0&&(i=function(){});var l=r,s=o,d=i;if(typeof s=="function"&&(d=s,s={}),!this.rules||Object.keys(this.rules).length===0)return d&&d(null,l),Promise.resolve(l);function f(C){var S=[],y={};function x(O){if(Array.isArray(O)){var w;S=(w=S).concat.apply(w,O)}else S.push(O)}for(var E=0;E3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Ri(e,t.slice(0,-1))?e:kA(e,t,n,r)}function hv(e){return Array.isArray(e)?mY(e):Ot(e)==="object"&&e!==null?pY(e):e}function pY(e){if(Object.getPrototypeOf(e)===Object.prototype){var t={};for(var n in e)t[n]=hv(e[n]);return t}return e}function mY(e){return e.map(function(t){return hv(t)})}function jn(e){return aC(e)}function gR(e,t){var n={};return t.forEach(function(r){var o=Ri(e,r);n=al(n,r,o)}),n}function jd(e,t){return e&&e.some(function(n){return BA(n,t)})}function vR(e){return Ot(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function FA(e,t){var n=Array.isArray(e)?Pe(e):j({},e);return t&&Object.keys(t).forEach(function(r){var o=n[r],i=t[r],a=vR(o)&&vR(i);n[r]=a?FA(o,i||{}):hv(i)}),n}function Vd(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(Pe(e.slice(0,n)),[o],Pe(e.slice(n,t)),Pe(e.slice(t+1,r))):i<0?[].concat(Pe(e.slice(0,t)),Pe(e.slice(t+1,n+1)),[o],Pe(e.slice(n+1,r))):e}var bR=Uf;function vY(e,t){return e.replace(/\$\{\w+\}/g,function(n){var r=n.slice(2,-1);return t[r]})}var SR="CODE_LOGIC_ERROR";function fC(e,t,n,r,o){return pC.apply(this,arguments)}function pC(){return pC=js(Yr().mark(function e(t,n,r,o,i){var a,l,s,d,f,m,h,g,v;return Yr().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return a=j({},r),delete a.ruleIndex,bR.warning=function(){},a.validator&&(l=a.validator,a.validator=function(){try{return l.apply(void 0,arguments)}catch(y){return console.error(y),Promise.reject(SR)}}),s=null,a&&a.type==="array"&&a.defaultField&&(s=a.defaultField,delete a.defaultField),d=new bR(Z({},t,[a])),f=Vd({},LA,o.validateMessages),d.messages(f),m=[],S.prev=10,S.next=13,Promise.resolve(d.validate(Z({},t,n),j({},o)));case 13:S.next=18;break;case 15:S.prev=15,S.t0=S.catch(10),S.t0.errors&&(m=S.t0.errors.map(function(y,x){var E=y.message,O=E===SR?f.default:E;return c.isValidElement(O)?c.cloneElement(O,{key:"error_".concat(x)}):O}));case 18:if(!(!m.length&&s)){S.next=23;break}return S.next=21,Promise.all(n.map(function(y,x){return fC("".concat(t,".").concat(x),y,s,o,i)}));case 21:return h=S.sent,S.abrupt("return",h.reduce(function(y,x){return[].concat(Pe(y),Pe(x))},[]));case 23:return g=j(j({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),v=m.map(function(y){return typeof y=="string"?vY(y,g):y}),S.abrupt("return",v);case 26:case"end":return S.stop()}},e,null,[[10,15]])})),pC.apply(this,arguments)}function yY(e,t,n,r,o,i){var a=e.join("."),l=n.map(function(f,m){var h=f.validator,g=j(j({},f),{},{ruleIndex:m});return h&&(g.validator=function(v,C,S){var y=!1,x=function(){for(var w=arguments.length,$=new Array(w),R=0;R0&&arguments[0]!==void 0?arguments[0]:qo;if(o.validatePromise===m){var w;o.validatePromise=null;var $=[],R=[];(w=O.forEach)===null||w===void 0||w.call(O,function(_){var M=_.rule.warningOnly,T=_.errors,D=T===void 0?qo:T;M?R.push.apply(R,Pe(D)):$.push.apply($,Pe(D))}),o.errors=$,o.warnings=R,o.triggerMetaEvent(),o.reRender()}}),E});return o.validatePromise=m,o.dirty=!0,o.errors=qo,o.warnings=qo,o.triggerMetaEvent(),o.reRender(),m},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 s=o.props.fieldContext,d=s.getInternalHooks(ms),f=d.getInitialValue;return f(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 s={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return s},o.getOnlyChild=function(s){if(typeof s=="function"){var d=o.getMeta();return j(j({},o.getOnlyChild(s(o.getControlled(),d,o.props.fieldContext))),{},{isFunction:!0})}var f=li(s);return f.length!==1||!c.isValidElement(f[0])?{child:f,isFunction:!1}:{child:f[0],isFunction:!1}},o.getValue=function(s){var d=o.props.fieldContext.getFieldsValue,f=o.getNamePath();return Ri(s||d(!0),f)},o.getControlled=function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=o.props,f=d.trigger,m=d.validateTrigger,h=d.getValueFromEvent,g=d.normalize,v=d.valuePropName,C=d.getValueProps,S=d.fieldContext,y=m!==void 0?m:S.validateTrigger,x=o.getNamePath(),E=S.getInternalHooks,O=S.getFieldsValue,w=E(ms),$=w.dispatch,R=o.getValue(),_=C||function(N){return Z({},v,N)},M=s[f],T=j(j({},s),_(R));T[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var N,P=arguments.length,L=new Array(P),k=0;k=0&&T<=D.length?(f.keys=[].concat(Pe(f.keys.slice(0,T)),[f.id],Pe(f.keys.slice(T))),E([].concat(Pe(D.slice(0,T)),[M],Pe(D.slice(T))))):(f.keys=[].concat(Pe(f.keys),[f.id]),E([].concat(Pe(D),[M]))),f.id+=1},remove:function(M){var T=w(),D=new Set(Array.isArray(M)?M:[M]);D.size<=0||(f.keys=f.keys.filter(function(N,P){return!D.has(P)}),E(T.filter(function(N,P){return!D.has(P)})))},move:function(M,T){if(M!==T){var D=w();M<0||M>=D.length||T<0||T>=D.length||(f.keys=yR(f.keys,M,T),E(yR(D,M,T)))}}},R=x||[];return Array.isArray(R)||(R=[]),o(R.map(function(_,M){var T=f.keys[M];return T===void 0&&(f.keys[M]=f.id,T=f.keys[M],f.id+=1),{name:M,key:T,isListField:!0}}),$,S)})))};function wY(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,i){e.forEach(function(a,l){a.catch(function(s){return t=!0,s}).then(function(s){n-=1,r[l]=s,!(n>0)&&(t&&i(r),o(r))})})}):Promise.resolve([])}var HA="__@field_split__";function zy(e){return e.map(function(t){return"".concat(Ot(t),":").concat(t)}).join(HA)}var cu=function(){function e(){Qn(this,e),this.kvs=new Map}return Zn(e,[{key:"set",value:function(n,r){this.kvs.set(zy(n),r)}},{key:"get",value:function(n){return this.kvs.get(zy(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(zy(n))}},{key:"map",value:function(n){return Pe(this.kvs.entries()).map(function(r){var o=ue(r,2),i=o[0],a=o[1],l=i.split(HA);return n({key:l.map(function(s){var d=s.match(/^([^:]*):(.*)$/),f=ue(d,3),m=f[1],h=f[2];return m==="number"?Number(h):h}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,i=r.value;return n[o.join(".")]=i,null}),n}}]),e}(),OY=["name"],$Y=Zn(function e(t){var n=this;Qn(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===ms?(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}):(En(!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=Vd({},r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(l){var s=l.key;a=al(a,s,Ri(r,s))}),n.prevWithoutPreserves=null,n.updateStore(a)}},this.destroyForm=function(){var r=new cu;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||r.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=r},this.getInitialValue=function(r){var o=Ri(n.initialValues,r);return r.length?hv(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 cu;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=jn(i);return o.get(a)||{INVALIDATE_NAME_PATH:jn(i)}})},this.getFieldsValue=function(r,o){if(n.warningUnhooked(),r===!0&&!o)return n.store;var i=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),a=[];return i.forEach(function(l){var s,d="INVALIDATE_NAME_PATH"in l?l.INVALIDATE_NAME_PATH:l.getNamePath();if(!(!r&&(!((s=l.isListField)===null||s===void 0)&&s.call(l))))if(!o)a.push(d);else{var f="getMeta"in l?l.getMeta():null;o(f)&&a.push(d)}}),gR(n.store,a.map(jn))},this.getFieldValue=function(r){n.warningUnhooked();var o=jn(r);return Ri(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:jn(r[a]),errors:[],warnings:[]}})},this.getFieldError=function(r){n.warningUnhooked();var o=jn(r),i=n.getFieldsError([o])[0];return i.errors},this.getFieldWarning=function(r){n.warningUnhooked();var o=jn(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 cu,i=n.getFieldEntities(!0);i.forEach(function(s){var d=s.props.initialValue,f=s.getNamePath();if(d!==void 0){var m=o.get(f)||new Set;m.add({entity:s,value:d}),o.set(f,m)}});var a=function(d){d.forEach(function(f){var m=f.props.initialValue;if(m!==void 0){var h=f.getNamePath(),g=n.getInitialValue(h);if(g!==void 0)En(!1,"Form already set 'initialValues' with path '".concat(h.join("."),"'. Field can not overwrite it."));else{var v=o.get(h);if(v&&v.size>1)En(!1,"Multiple Field with path '".concat(h.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(v){var C=n.getFieldValue(h);(!r.skipExist||C===void 0)&&n.updateStore(al(n.store,h,Pe(v)[0].value))}}}})},l;r.entities?l=r.entities:r.namePathList?(l=[],r.namePathList.forEach(function(s){var d=o.get(s);if(d){var f;(f=l).push.apply(f,Pe(Pe(d).map(function(m){return m.entity})))}})):l=i,a(l)},this.resetFields=function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(Vd({},n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var i=r.map(jn);i.forEach(function(a){var l=n.getInitialValue(a);n.updateStore(al(n.store,a,l))}),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 l=a.name,s=vt(a,OY),d=jn(l);i.push(d),"value"in s&&n.updateStore(al(n.store,d,s.value)),n.notifyObservers(o,[d],{type:"setField",data:a})}),n.notifyWatch(i)},this.getFields=function(){var r=n.getFieldEntities(!0),o=r.map(function(i){var a=i.getNamePath(),l=i.getMeta(),s=j(j({},l),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(s,"originRCField",{value:!0}),s});return o},this.initEntityValue=function(r){var o=r.props.initialValue;if(o!==void 0){var i=r.getNamePath(),a=Ri(n.store,i);a===void 0&&n.updateStore(al(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,l){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(m){return m!==r}),!n.isMergedPreserve(l)&&(!a||s.length>1)){var d=a?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==d&&n.fieldEntities.every(function(m){return!BA(m.getNamePath(),o)})){var f=n.store;n.updateStore(al(f,o,d,!0)),n.notifyObservers(f,[o],{type:"remove"}),n.triggerDependenciesUpdate(f,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,l=r.triggerName;n.validateFields([a],{triggerName:l});break}}},this.notifyObservers=function(r,o,i){if(n.subscribable){var a=j(j({},i),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(l){var s=l.onStoreChange;s(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(Pe(i))}),i},this.updateValue=function(r,o){var i=jn(r),a=n.store;n.updateStore(al(n.store,i,o)),n.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]);var l=n.triggerDependenciesUpdate(a,i),s=n.callbacks.onValuesChange;if(s){var d=gR(n.store,[i]);s(d,n.getFieldsValue())}n.triggerOnFieldsChange([i].concat(Pe(l)))},this.setFieldsValue=function(r){n.warningUnhooked();var o=n.store;if(r){var i=Vd(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 cu;n.getFieldEntities().forEach(function(s){var d=s.props.dependencies;(d||[]).forEach(function(f){var m=jn(f);a.update(m,function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return h.add(s),h})})});var l=function s(d){var f=a.get(d)||new Set;f.forEach(function(m){if(!o.has(m)){o.add(m);var h=m.getNamePath();m.isFieldDirty()&&h.length&&(i.push(h),s(h))}})};return l(r),i},this.triggerOnFieldsChange=function(r,o){var i=n.callbacks.onFieldsChange;if(i){var a=n.getFields();if(o){var l=new cu;o.forEach(function(d){var f=d.name,m=d.errors;l.set(f,m)}),a.forEach(function(d){d.errors=l.get(d.name)||d.errors})}var s=a.filter(function(d){var f=d.name;return jd(r,f)});i(s,a)}},this.validateFields=function(r,o){n.warningUnhooked();var i=!!r,a=i?r.map(jn):[],l=[];n.getFieldEntities(!0).forEach(function(f){if(i||a.push(f.getNamePath()),o!=null&&o.recursive&&i){var m=f.getNamePath();m.every(function(v,C){return r[C]===v||r[C]===void 0})&&a.push(m)}if(!(!f.props.rules||!f.props.rules.length)){var h=f.getNamePath();if(!i||jd(a,h)){var g=f.validateRules(j({validateMessages:j(j({},LA),n.validateMessages)},o));l.push(g.then(function(){return{name:h,errors:[],warnings:[]}}).catch(function(v){var C,S=[],y=[];return(C=v.forEach)===null||C===void 0||C.call(v,function(x){var E=x.rule.warningOnly,O=x.errors;E?y.push.apply(y,Pe(O)):S.push.apply(S,Pe(O))}),S.length?Promise.reject({name:h,errors:S,warnings:y}):{name:h,errors:S,warnings:y}}))}}});var s=wY(l);n.lastValidatePromise=s,s.catch(function(f){return f}).then(function(f){var m=f.map(function(h){var g=h.name;return g});n.notifyObservers(n.store,m,{type:"validateFinish"}),n.triggerOnFieldsChange(m,f)});var d=s.then(function(){return n.lastValidatePromise===s?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])}).catch(function(f){var m=f.filter(function(h){return h&&h.errors.length});return Promise.reject({values:n.getFieldsValue(a),errorFields:m,outOfDate:n.lastValidatePromise!==s})});return d.catch(function(f){return f}),n.triggerOnFieldsChange(a),d},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 jA(e){var t=c.useRef(),n=c.useState({}),r=ue(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},a=new $Y(i);t.current=a.getForm()}return[t.current]}var gC=c.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),VA=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=c.useContext(gC),l=c.useRef({});return c.createElement(gC.Provider,{value:j(j({},a),{},{validateMessages:j(j({},a.validateMessages),n),triggerFormChange:function(d,f){r&&r(d,{changedFields:f,forms:l.current}),a.triggerFormChange(d,f)},triggerFormFinish:function(d,f){o&&o(d,{values:f,forms:l.current}),a.triggerFormFinish(d,f)},registerForm:function(d,f){d&&(l.current=j(j({},l.current),{},Z({},d,f))),a.registerForm(d,f)},unregisterForm:function(d){var f=j({},l.current);delete f[d],l.current=f,a.unregisterForm(d)}})},i)},IY=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],RY=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,a=t.form,l=t.preserve,s=t.children,d=t.component,f=d===void 0?"form":d,m=t.validateMessages,h=t.validateTrigger,g=h===void 0?"onChange":h,v=t.onValuesChange,C=t.onFieldsChange,S=t.onFinish,y=t.onFinishFailed,x=vt(t,IY),E=c.useContext(gC),O=jA(a),w=ue(O,1),$=w[0],R=$.getInternalHooks(ms),_=R.useSubscribe,M=R.setInitialValues,T=R.setCallbacks,D=R.setValidateMessages,N=R.setPreserve,P=R.destroyForm;c.useImperativeHandle(n,function(){return $}),c.useEffect(function(){return E.registerForm(r,$),function(){E.unregisterForm(r)}},[E,$,r]),D(j(j({},E.validateMessages),m)),T({onValuesChange:v,onFieldsChange:function(X){if(E.triggerFormChange(r,X),C){for(var Q=arguments.length,Y=new Array(Q>1?Q-1:0),q=1;q{const n=c.useContext(Ax),r=c.useMemo(()=>{var i;const a=t||Ms[e],l=(i=n==null?void 0:n[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),l||{})},[e,t,n]),o=c.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?Ms.locale:i},[n]);return[r,o]},Kf=DY,kY="internalMark",FY=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;c.useEffect(()=>(wR(t&&t.Modal),()=>{wR()}),[t]);const o=c.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return c.createElement(Ax.Provider,{value:o},n)},BY=FY,zY="5.4.2",wf=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],HY=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},GA=HY;function jY(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 Lx={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"},gv=Object.assign(Object.assign({},Lx),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",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});function XA(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:s,colorBgBase:d,colorTextBase:f}=e,m=n(s),h=n(o),g=n(i),v=n(a),C=n(l),S=r(d,f);return Object.assign(Object.assign({},S),{colorPrimaryBg:m[1],colorPrimaryBgHover:m[2],colorPrimaryBorder:m[3],colorPrimaryBorderHover:m[4],colorPrimaryHover:m[5],colorPrimary:m[6],colorPrimaryActive:m[7],colorPrimaryTextHover:m[8],colorPrimaryText:m[9],colorPrimaryTextActive:m[10],colorSuccessBg:h[1],colorSuccessBgHover:h[2],colorSuccessBorder:h[3],colorSuccessBorderHover:h[4],colorSuccessHover:h[4],colorSuccess:h[6],colorSuccessActive:h[7],colorSuccessTextHover:h[8],colorSuccessText:h[9],colorSuccessTextActive:h[10],colorErrorBg: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:C[1],colorInfoBgHover:C[2],colorInfoBorder:C[3],colorInfoBorderHover:C[4],colorInfoHover:C[4],colorInfo:C[6],colorInfoActive:C[7],colorInfoTextHover:C[8],colorInfoText:C[9],colorInfoTextActive:C[10],colorBgMask:new yn("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const VY=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}},UY=VY;function WY(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},UY(r))}const Ca=(e,t)=>new yn(e).setAlpha(t).toRgbString(),ud=(e,t)=>new yn(e).darken(t).toHexString(),KY=e=>{const t=ka(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]}},GY=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Ca(r,.88),colorTextSecondary:Ca(r,.65),colorTextTertiary:Ca(r,.45),colorTextQuaternary:Ca(r,.25),colorFill:Ca(r,.15),colorFillSecondary:Ca(r,.06),colorFillTertiary:Ca(r,.04),colorFillQuaternary:Ca(r,.02),colorBgLayout:ud(n,4),colorBgContainer:ud(n,0),colorBgElevated:ud(n,0),colorBgSpotlight:Ca(r,.85),colorBorder:ud(n,15),colorBorderSecondary:ud(n,6)}};function XY(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 YY=e=>{const t=XY(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]}},YA=YY;function vv(e){const t=Object.keys(Lx).map(n=>{const r=ka(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),XA(e,{generateColorPalettes:KY,generateNeutralColorPalettes:GY})),YA(e.fontSize)),jY(e)),GA(e)),WY(e))}function Hy(e){return e>=0&&e<=255}function Cm(e,t){const{r:n,g:r,b:o,a:i}=new yn(e).toRgb();if(i<1)return e;const{r:a,g:l,b:s}=new yn(t).toRgb();for(let d=.01;d<=1;d+=.01){const f=Math.round((n-a*(1-d))/d),m=Math.round((r-l*(1-d))/d),h=Math.round((o-s*(1-d))/d);if(Hy(f)&&Hy(m)&&Hy(h))return new yn({r:f,g:m,b:h,a:Math.round(d*100)/100}).toRgbString()}return new yn({r:n,g:r,b:o,a:1}).toRgbString()}var qY=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[h]});const o=Object.assign(Object.assign({},n),r),i=480,a=576,l=768,s=992,d=1200,f=1600;return Object.assign(Object.assign(Object.assign({},o),{colorLink:o.colorInfoText,colorLinkHover:o.colorInfoHover,colorLinkActive:o.colorInfoActive,colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Cm(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:Cm(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Cm(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:Cm(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowSecondary:` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowTertiary:` + 0 1px 2px 0 rgba(0, 0, 0, 0.03), + 0 1px 6px -1px rgba(0, 0, 0, 0.02), + 0 2px 4px 0 rgba(0, 0, 0, 0.02) + `,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:s-1,screenLG:s,screenLGMin:s,screenLGMax:d-1,screenXL:d,screenXLMin:d,screenXLMax:f-1,screenXXL:f,screenXXLMin:f,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` + 0 1px 2px -2px ${new yn("rgba(0, 0, 0, 0.16)").toRgbString()}, + 0 3px 6px 0 ${new yn("rgba(0, 0, 0, 0.12)").toRgbString()}, + 0 5px 12px 4px ${new yn("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)}const Dx="anticon",ZY=(e,t)=>t||(e?`ant-${e}`:"ant"),yt=c.createContext({getPrefixCls:ZY,iconPrefixCls:Dx}),JY=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),eq=(e,t,n,r,o)=>{const i=e/2,a=0,l=i,s=n*1/Math.sqrt(2),d=i-n*(1-1/Math.sqrt(2)),f=i-t*(1/Math.sqrt(2)),m=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),h=2*i-f,g=m,v=2*i-s,C=d,S=2*i-a,y=l,x=i*Math.sqrt(2)+n*(Math.sqrt(2)-2);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:r,clipPath:`path('M ${a} ${l} A ${n} ${n} 0 0 0 ${s} ${d} L ${f} ${m} A ${t} ${t} 0 0 1 ${h} ${g} L ${v} ${C} A ${n} ${n} 0 0 0 ${S} ${y} 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"}}},Es={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},mn=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),Gf=()=>({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"}}),Of=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),tq=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},[`&:active, + &:hover`]:{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),nq=(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"}}}}},Ba=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),$f=e=>({"&:focus-visible":Object.assign({},Ba(e))});function In(e,t,n,r){return o=>{const[i,a,l]=Vs(),{getPrefixCls:s,iconPrefixCls:d,csp:f}=c.useContext(yt),m=s(),h={theme:i,token:a,hashId:l,nonce:()=>f==null?void 0:f.nonce};return iC(Object.assign(Object.assign({},h),{path:["Shared",m]}),()=>[{"&":tq(a)}]),[iC(Object.assign(Object.assign({},h),{path:[e,o,d]}),()=>{const{token:g,flush:v}=oq(a),C=typeof n=="function"?n(g):n,S=Object.assign(Object.assign({},C),a[e]),y=`.${o}`,x=Kt(g,{componentCls:y,prefixCls:o,iconCls:`.${d}`,antCls:`.${m}`},S),E=t(x,{hashId:l,prefixCls:o,rootPrefixCls:m,iconPrefixCls:d,overrideComponentToken:a[e]});return v(e,S),[(r==null?void 0:r.resetStyle)===!1?null:nq(a,o),E]}),l]}}const qA=typeof CSSINJS_STATISTIC<"u";let vC=!0;function Kt(){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]})})}),vC=!0,r}function rq(){}function oq(e){let t,n=e,r=rq;return qA&&(t=new Set,n=new Proxy(e,{get(o,i){return vC&&t.add(i),o[i]}}),r=(o,i)=>{Array.from(t)}),{token:n,keys:t,flush:r}}function iq(e,t){return wf.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))},{})}const aq=MA(vv),Wh={token:gv,hashed:!0},QA=ge.createContext(Wh);function Vs(){const{token:e,hashed:t,theme:n,components:r}=ge.useContext(QA),o=`${zY}-${t||""}`,i=n||aq,[a,l]=uX(i,[gv,e],{salt:o,override:Object.assign({override:e},r),formatToken:QY});return[i,a,t?l:""]}const lq=`-ant-${Date.now()}-${Math.random()}`;function sq(e,t){const n={},r=(a,l)=>{let s=a.clone();return s=(l==null?void 0:l(s))||s,s.toRgbString()},o=(a,l)=>{const s=new yn(a),d=ka(s.toRgbString());n[`${l}-color`]=r(s),n[`${l}-color-disabled`]=d[1],n[`${l}-color-hover`]=d[4],n[`${l}-color-active`]=d[6],n[`${l}-color-outline`]=s.clone().setAlpha(.2).toRgbString(),n[`${l}-color-deprecated-bg`]=d[0],n[`${l}-color-deprecated-border`]=d[2]};if(t.primaryColor){o(t.primaryColor,"primary");const a=new yn(t.primaryColor),l=ka(a.toRgbString());l.forEach((d,f)=>{n[`primary-${f+1}`]=d}),n["primary-color-deprecated-l-35"]=r(a,d=>d.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,d=>d.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,d=>d.tint(20)),n["primary-color-deprecated-t-50"]=r(a,d=>d.tint(50)),n["primary-color-deprecated-f-12"]=r(a,d=>d.setAlpha(d.getAlpha()*.12));const s=new yn(l[0]);n["primary-color-active-deprecated-f-30"]=r(s,d=>d.setAlpha(d.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(s,d=>d.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 uq(e,t){const n=sq(e,t);pr()&&gc(n,`${lq}-dynamic-theme`)}const yC=c.createContext(!1),cq=e=>{let{children:t,disabled:n}=e;const r=c.useContext(yC);return c.createElement(yC.Provider,{value:n??r},t)},jl=yC,bC=c.createContext(void 0),dq=e=>{let{children:t,size:n}=e;const r=c.useContext(bC);return c.createElement(bC.Provider,{value:n||r},t)},Bi=bC;function fq(){const e=c.useContext(jl),t=c.useContext(Bi);return{componentDisabled:e,componentSize:t}}function pq(e,t){const n=e||{},r=n.inherit===!1||!t?Wh:t;return Hs(()=>{if(!e)return t;const i=Object.assign({},r.components);return Object.keys(e.components||{}).forEach(a=>{i[a]=Object.assign(Object.assign({},i[a]),e.components[a])}),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:i})},[n,r],(i,a)=>i.some((l,s)=>{const d=a[s];return!Fa(l,d,!0)}))}const mq=(e,t)=>{const[n,r]=Vs();return iC({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},Gf()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},hq=mq;var gq=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,iconPrefixCls:n,theme:r}=e;t!==void 0&&(Kh=t),n!==void 0&&(ZA=n),r&&uq(nh(),r)},kx=()=>({getPrefixCls:(e,t)=>t||(e?`${nh()}-${e}`:nh()),getIconPrefixCls:bq,getRootPrefixCls:()=>Kh||nh()}),Cq=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,form:o,locale:i,componentSize:a,direction:l,space:s,virtual:d,dropdownMatchSelectWidth:f,legacyLocale:m,parentContext:h,iconPrefixCls:g,theme:v,componentDisabled:C}=e,S=c.useCallback((P,L)=>{const{prefixCls:k}=e;if(L)return L;const F=k||h.getPrefixCls("");return P?`${F}-${P}`:F},[h.getPrefixCls,e.prefixCls]),y=g||h.iconPrefixCls||Dx,x=y!==h.iconPrefixCls,E=n||h.csp,O=hq(y,E),w=pq(v,h.theme),$={csp:E,autoInsertSpaceInButton:r,locale:i||m,direction:l,space:s,virtual:d,dropdownMatchSelectWidth:f,getPrefixCls:S,iconPrefixCls:y,theme:w},R=Object.assign({},h);Object.keys($).forEach(P=>{$[P]!==void 0&&(R[P]=$[P])}),vq.forEach(P=>{const L=e[P];L&&(R[P]=L)});const _=Hs(()=>R,R,(P,L)=>{const k=Object.keys(P),F=Object.keys(L);return k.length!==F.length||k.some(V=>P[V]!==L[V])}),M=c.useMemo(()=>({prefixCls:y,csp:E}),[y,E]);let T=x?O(t):t;const D=c.useMemo(()=>{var P,L,k;return Vd({},((P=Ms.Form)===null||P===void 0?void 0:P.defaultValidateMessages)||{},((k=(L=_.locale)===null||L===void 0?void 0:L.Form)===null||k===void 0?void 0:k.defaultValidateMessages)||{},(o==null?void 0:o.validateMessages)||{})},[_,o==null?void 0:o.validateMessages]);Object.keys(D).length>0&&(T=c.createElement(VA,{validateMessages:D},t)),i&&(T=c.createElement(BY,{locale:i,_ANT_MARK__:kY},T)),(y||E)&&(T=c.createElement(Ex.Provider,{value:M},T)),a&&(T=c.createElement(dq,{size:a},T));const N=c.useMemo(()=>{const P=w||{},{algorithm:L,token:k}=P,F=gq(P,["algorithm","token"]),V=L&&(!Array.isArray(L)||L.length>0)?MA(L):void 0;return Object.assign(Object.assign({},F),{theme:V,token:Object.assign(Object.assign({},gv),k)})},[w]);return v&&(T=c.createElement(QA.Provider,{value:N},T)),C!==void 0&&(T=c.createElement(cq,{disabled:C},T)),c.createElement(yt.Provider,{value:_},T)},Wa=e=>{const t=c.useContext(yt),n=c.useContext(Ax);return c.createElement(Cq,Object.assign({parentContext:t,legacyLocale:n},e))};Wa.ConfigContext=yt;Wa.SizeContext=Bi;Wa.config=Sq;Wa.useConfig=fq;Object.defineProperty(Wa,"SizeContext",{get:()=>Bi});var JA=function(t){return+setTimeout(t,16)},eL=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(JA=function(t){return window.requestAnimationFrame(t)},eL=function(t){return window.cancelAnimationFrame(t)});var OR=0,Fx=new Map;function tL(e){Fx.delete(e)}var Zt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;OR+=1;var r=OR;function o(i){if(i===0)tL(r),t();else{var a=JA(function(){o(i-1)});Fx.set(r,a)}}return o(n),r};Zt.cancel=function(e){var t=Fx.get(e);return tL(t),eL(t)};function _a(e,t,n,r){var o=dc.unstable_batchedUpdates?function(a){dc.unstable_batchedUpdates(n,a)}:n;return e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){e.removeEventListener&&e.removeEventListener(t,o,r)}}}var xq=c.createContext({}),Eq=function(e){Di(n,e);var t=ki(n);function n(){return Qn(this,n),t.apply(this,arguments)}return Zn(n,[{key:"render",value:function(){return this.props.children}}]),n}(c.Component);function Rl(e){var t=c.useRef(!1),n=c.useState(e),r=ue(n,2),o=r[0],i=r[1];c.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(l,s){s&&t.current||i(l)}return[o,a]}var Eu="none",xm="appear",Em="enter",wm="leave",$R="none",Ji="prepare",Hu="start",ju="active",Bx="end",nL="prepared";function IR(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 wq(e,t){var n={animationend:IR("Animation","AnimationEnd"),transitionend:IR("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var Oq=wq(pr(),typeof window<"u"?window:{}),rL={};if(pr()){var $q=document.createElement("div");rL=$q.style}var Om={};function oL(e){if(Om[e])return Om[e];var t=Oq[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=Zt(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i}return c.useEffect(function(){return function(){t()}},[]),[n,t]};var _q=[Ji,Hu,ju,Bx],Tq=[Ji,nL],uL=!1,Pq=!0;function cL(e){return e===ju||e===Bx}const Nq=function(e,t,n){var r=Rl($R),o=ue(r,2),i=o[0],a=o[1],l=Rq(),s=ue(l,2),d=s[0],f=s[1];function m(){a(Ji,!0)}var h=t?Tq:_q;return sL(function(){if(i!==$R&&i!==Bx){var g=h.indexOf(i),v=h[g+1],C=n(i);C===uL?a(v,!0):v&&d(function(S){function y(){S.isCanceled()||a(v,!0)}C===!0?y():Promise.resolve(C).then(y)})}},[e,i]),c.useEffect(function(){return function(){f()}},[]),[m,i]};function Mq(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,a=r.motionAppear,l=a===void 0?!0:a,s=r.motionLeave,d=s===void 0?!0:s,f=r.motionDeadline,m=r.motionLeaveImmediately,h=r.onAppearPrepare,g=r.onEnterPrepare,v=r.onLeavePrepare,C=r.onAppearStart,S=r.onEnterStart,y=r.onLeaveStart,x=r.onAppearActive,E=r.onEnterActive,O=r.onLeaveActive,w=r.onAppearEnd,$=r.onEnterEnd,R=r.onLeaveEnd,_=r.onVisibleChanged,M=Rl(),T=ue(M,2),D=T[0],N=T[1],P=Rl(Eu),L=ue(P,2),k=L[0],F=L[1],V=Rl(null),H=ue(V,2),W=H[0],G=H[1],U=c.useRef(!1),X=c.useRef(null);function Q(){return n()}var Y=c.useRef(!1);function q(){F(Eu,!0),G(null,!0)}function ne(de){var _e=Q();if(!(de&&!de.deadline&&de.target!==_e)){var be=Y.current,Xe;k===xm&&be?Xe=w==null?void 0:w(_e,de):k===Em&&be?Xe=$==null?void 0:$(_e,de):k===wm&&be&&(Xe=R==null?void 0:R(_e,de)),k!==Eu&&be&&Xe!==!1&&q()}}var le=Iq(ne),we=ue(le,1),Oe=we[0],Ce=c.useMemo(function(){var de,_e,be;switch(k){case xm:return de={},Z(de,Ji,h),Z(de,Hu,C),Z(de,ju,x),de;case Em:return _e={},Z(_e,Ji,g),Z(_e,Hu,S),Z(_e,ju,E),_e;case wm:return be={},Z(be,Ji,v),Z(be,Hu,y),Z(be,ju,O),be;default:return{}}},[k]),ce=Nq(k,!e,function(de){if(de===Ji){var _e=Ce[Ji];return _e?_e(Q()):uL}if(pe in Ce){var be;G(((be=Ce[pe])===null||be===void 0?void 0:be.call(Ce,Q(),null))||null)}return pe===ju&&(Oe(Q()),f>0&&(clearTimeout(X.current),X.current=setTimeout(function(){ne({deadline:!0})},f))),pe===nL&&q(),Pq}),he=ue(ce,2),ie=he[0],pe=he[1],fe=cL(pe);Y.current=fe,sL(function(){N(t);var de=U.current;U.current=!0;var _e;!de&&t&&l&&(_e=xm),de&&t&&i&&(_e=Em),(de&&!t&&d||!de&&m&&!t&&d)&&(_e=wm),_e&&(F(_e),ie())},[t]),c.useEffect(function(){(k===xm&&!l||k===Em&&!i||k===wm&&!d)&&F(Eu)},[l,i,d]),c.useEffect(function(){return function(){U.current=!1,clearTimeout(X.current)}},[]);var Ie=c.useRef(!1);c.useEffect(function(){D&&(Ie.current=!0),D!==void 0&&k===Eu&&((Ie.current||D)&&(_==null||_(D)),Ie.current=!0)},[D,k]);var Se=W;return Ce[Ji]&&pe===Hu&&(Se=j({transition:"none"},Se)),[k,pe,Se,D??t]}function Aq(e){var t=e;Ot(e)==="object"&&(t=e.transitionSupport);function n(o,i){return!!(o.motionName&&t&&i!==!1)}var r=c.forwardRef(function(o,i){var a=o.visible,l=a===void 0?!0:a,s=o.removeOnLeave,d=s===void 0?!0:s,f=o.forceRender,m=o.children,h=o.motionName,g=o.leavedClassName,v=o.eventProps,C=c.useContext(xq),S=C.motion,y=n(o,S),x=c.useRef(),E=c.useRef();function O(){try{return x.current instanceof HTMLElement?x.current:Sf(E.current)}catch{return null}}var w=Mq(y,l,O,o),$=ue(w,4),R=$[0],_=$[1],M=$[2],T=$[3],D=c.useRef(T);T&&(D.current=!0);var N=c.useCallback(function(W){x.current=W,bf(i,W)},[i]),P,L=j(j({},v),{},{visible:l});if(!m)P=null;else if(R===Eu)T?P=m(j({},L),N):!d&&D.current&&g?P=m(j(j({},L),{},{className:g}),N):f||!d&&!g?P=m(j(j({},L),{},{style:{display:"none"}}),N):P=null;else{var k,F;_===Ji?F="prepare":cL(_)?F="active":_===Hu&&(F="start"),P=m(j(j({},L),{},{className:te(TR(h,R),(k={},Z(k,TR(h,"".concat(R,"-").concat(F)),F),Z(k,h,typeof h=="string"),k)),style:M}),N)}if(c.isValidElement(P)&&Hl(P)){var V=P,H=V.ref;H||(P=c.cloneElement(P,{ref:N}))}return c.createElement(Eq,{ref:E},P)});return r.displayName="CSSMotion",r}const fi=Aq(lL);var SC="add",CC="keep",xC="remove",jy="removed";function Lq(e){var t;return e&&Ot(e)==="object"&&"key"in e?t=e:t={key:e},j(j({},t),{},{key:String(t.key)})}function EC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(Lq)}function Dq(){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=EC(e),a=EC(t);i.forEach(function(d){for(var f=!1,m=r;m1});return s.forEach(function(d){n=n.filter(function(f){var m=f.key,h=f.status;return m!==d||h!==xC}),n.forEach(function(f){f.key===d&&(f.status=CC)})}),n}var kq=["component","children","onVisibleChanged","onAllRemoved"],Fq=["status"],Bq=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function zq(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:fi,n=function(r){Di(i,r);var o=ki(i);function i(){var a;Qn(this,i);for(var l=arguments.length,s=new Array(l),d=0;d((n.startsWith("data-")||n.startsWith("aria-")||n==="role")&&!n.startsWith("data-__")&&(t[n]=e[n]),t),{})}const{isValidElement:Ai}=Qd;function dL(e){return e&&Ai(e)&&e.type===c.Fragment}function Vq(e,t,n){return Ai(e)?c.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function mr(e,t){return Vq(e,e,t)}function so(e){var t=c.useRef();t.current=e;var n=c.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a"u")return 0;const o=t?"scrollTop":"scrollLeft";let i=0;return wC(e)?i=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?i=e.documentElement[o]:(e instanceof HTMLElement||e)&&(i=e[o]),e&&!wC(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 Wq(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 Kq(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=Uq(i,!0),l=Date.now(),s=()=>{const f=Date.now()-l,m=Wq(f>o?o:f,a,e,o);wC(i)?i.scrollTo(window.pageXOffset,m):i instanceof Document||i.constructor.name==="HTMLDocument"?i.documentElement.scrollTop=m:i.scrollTop=m,f=De.F1&&n<=De.F12)return!1;switch(n){case De.ALT:case De.CAPS_LOCK:case De.CONTEXT_MENU:case De.CTRL:case De.DOWN:case De.END:case De.ESC:case De.HOME:case De.INSERT:case De.LEFT:case De.MAC_FF_META:case De.META:case De.NUMLOCK:case De.NUM_CENTER:case De.PAGE_DOWN:case De.PAGE_UP:case De.PAUSE:case De.PRINT_SCREEN:case De.RIGHT:case De.SHIFT:case De.UP:case De.WIN_KEY:case De.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=De.ZERO&&t<=De.NINE||t>=De.NUM_ZERO&&t<=De.NUM_MULTIPLY||t>=De.A&&t<=De.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case De.SPACE:case De.QUESTION_MARK:case De.NUM_PLUS:case De.NUM_MINUS:case De.NUM_PERIOD:case De.NUM_DIVISION:case De.SEMICOLON:case De.DASH:case De.EQUALS:case De.COMMA:case De.PERIOD:case De.SLASH:case De.APOSTROPHE:case De.SINGLE_QUOTE:case De.OPEN_SQUARE_BRACKET:case De.BACKSLASH:case De.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Gq=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,i=e.duration,a=i===void 0?4.5:i,l=e.eventKey,s=e.content,d=e.closable,f=e.closeIcon,m=f===void 0?"x":f,h=e.props,g=e.onClick,v=e.onNoticeClose,C=e.times,S=c.useState(!1),y=ue(S,2),x=y[0],E=y[1],O=function(){v(l)},w=function(_){(_.key==="Enter"||_.code==="Enter"||_.keyCode===De.ENTER)&&O()};c.useEffect(function(){if(!x&&a>0){var R=setTimeout(function(){O()},a*1e3);return function(){clearTimeout(R)}}},[a,x,C]);var $="".concat(n,"-notice");return c.createElement("div",je({},h,{ref:t,className:te($,o,Z({},"".concat($,"-closable"),d)),style:r,onMouseEnter:function(){E(!0)},onMouseLeave:function(){E(!1)},onClick:g}),c.createElement("div",{className:"".concat($,"-content")},s),d&&c.createElement("a",{tabIndex:0,className:"".concat($,"-close"),onKeyDown:w,onClick:function(_){_.preventDefault(),_.stopPropagation(),O()}},m))});const fL=Gq;var Xq=c.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,i=e.motion,a=e.maxCount,l=e.className,s=e.style,d=e.onAllRemoved,f=c.useState([]),m=ue(f,2),h=m[0],g=m[1],v=function(R){var _,M=h.find(function(T){return T.key===R});M==null||(_=M.onClose)===null||_===void 0||_.call(M),g(function(T){return T.filter(function(D){return D.key!==R})})};c.useImperativeHandle(t,function(){return{open:function(R){g(function(_){var M=Pe(_),T=M.findIndex(function(P){return P.key===R.key}),D=j({},R);if(T>=0){var N;D.times=(((N=_[T])===null||N===void 0?void 0:N.times)||0)+1,M[T]=D}else D.times=0,M.push(D);return a>0&&M.length>a&&(M=M.slice(-a)),M})},close:function(R){v(R)},destroy:function(){g([])}}});var C=c.useState({}),S=ue(C,2),y=S[0],x=S[1];c.useEffect(function(){var $={};h.forEach(function(R){var _=R.placement,M=_===void 0?"topRight":_;M&&($[M]=$[M]||[],$[M].push(R))}),Object.keys(y).forEach(function(R){$[R]=$[R]||[]}),x($)},[h]);var E=function(R){x(function(_){var M=j({},_),T=M[R]||[];return T.length||delete M[R],M})},O=c.useRef(!1);if(c.useEffect(function(){Object.keys(y).length>0?O.current=!0:O.current&&(d==null||d(),O.current=!1)},[y]),!o)return null;var w=Object.keys(y);return Ni.createPortal(c.createElement(c.Fragment,null,w.map(function($){var R=y[$],_=R.map(function(T){return{config:T,key:T.key}}),M=typeof i=="function"?i($):i;return c.createElement(Hq,je({key:$,className:te(r,"".concat(r,"-").concat($),l==null?void 0:l($)),style:s==null?void 0:s($),keys:_,motionAppear:!0},M,{onAllRemoved:function(){E($)}}),function(T,D){var N=T.config,P=T.className,L=T.style,k=N.key,F=N.times,V=N.className,H=N.style;return c.createElement(fL,je({},N,{ref:D,prefixCls:r,className:te(P,V),style:j(j({},L),H),times:F,key:k,eventKey:k,onNoticeClose:v}))})})),o)}),Yq=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved"],qq=function(){return document.body},PR=0;function Qq(){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?qq:t,r=e.motion,o=e.prefixCls,i=e.maxCount,a=e.className,l=e.style,s=e.onAllRemoved,d=vt(e,Yq),f=c.useState(),m=ue(f,2),h=m[0],g=m[1],v=c.useRef(),C=c.createElement(Xq,{container:h,ref:v,prefixCls:o,motion:r,maxCount:i,className:a,style:l,onAllRemoved:s}),S=c.useState([]),y=ue(S,2),x=y[0],E=y[1],O=c.useMemo(function(){return{open:function($){var R=Qq(d,$);(R.key===null||R.key===void 0)&&(R.key="rc-notification-".concat(PR),PR+=1),E(function(_){return[].concat(Pe(_),[{type:"open",config:R}])})},close:function($){E(function(R){return[].concat(Pe(R),[{type:"close",key:$}])})},destroy:function(){E(function($){return[].concat(Pe($),[{type:"destroy"}])})}}},[]);return c.useEffect(function(){g(n())}),c.useEffect(function(){v.current&&x.length&&(x.forEach(function(w){switch(w.type){case"open":v.current.open(w.config);break;case"close":v.current.close(w.key);break;case"destroy":v.current.destroy();break}}),E([]))},[x]),[O,C]}const Jq=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorBgElevated:i,colorSuccess:a,colorError:l,colorWarning:s,colorInfo:d,fontSizeLG:f,motionEaseInOutCirc:m,motionDurationSlow:h,marginXS:g,paddingXS:v,borderRadiusLG:C,zIndexPopup:S,messageNoticeContentPadding:y}=e,x=new Dt("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:v,transform:"translateY(0)",opacity:1}}),E=new Dt("MessageMoveOut",{"0%":{maxHeight:e.height,padding:v,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},mn(e)),{color:o,position:"fixed",top:g,width:"100%",pointerEvents:"none",zIndex:S,[`${t}-move-up`]:{animationFillMode:"forwards"},[` + ${t}-move-up-appear, + ${t}-move-up-enter + `]:{animationName:x,animationDuration:h,animationPlayState:"paused",animationTimingFunction:m},[` + ${t}-move-up-appear${t}-move-up-appear-active, + ${t}-move-up-enter${t}-move-up-enter-active + `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:E,animationDuration:h,animationPlayState:"paused",animationTimingFunction:m},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[`${t}-notice`]:{padding:v,textAlign:"center",[`${t}-custom-content > ${n}`]:{verticalAlign:"text-bottom",marginInlineEnd:g,fontSize:f},[`${t}-notice-content`]:{display:"inline-block",padding:y,background:i,borderRadius:C,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:a},[`${t}-error > ${n}`]:{color:l},[`${t}-warning > ${n}`]:{color:s},[` + ${t}-info > ${n}, + ${t}-loading > ${n}`]:{color:d}}},{[`${t}-notice-pure-panel`]:{padding:0,textAlign:"start"}}]},pL=In("Message",e=>{const t=Kt(e,{messageNoticeContentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`});return[Jq(t)]},e=>({height:150,zIndexPopup:e.zIndexPopupBase+10}));function eQ(e,t){return{motionName:t??`${e}-move-up`}}function zx(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,i)=>n.then(o,i),r.promise=n,r}var tQ=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,prefixCls:r,getContainer:o,maxCount:i,duration:a=aQ,rtl:l,transitionName:s,onAllRemoved:d}=e,{getPrefixCls:f,getPopupContainer:m}=c.useContext(yt),h=r||f("message"),[,g]=pL(h),v=()=>({left:"50%",transform:"translateX(-50%)",top:n??iQ}),C=()=>te(g,l?`${h}-rtl`:""),S=()=>eQ(h,s),y=c.createElement("span",{className:`${h}-close-x`},c.createElement(Vf,{className:`${h}-close-icon`})),[x,E]=Zq({prefixCls:h,style:v,className:C,motion:S,closable:!1,closeIcon:y,duration:a,getContainer:()=>(o==null?void 0:o())||(m==null?void 0:m())||document.body,maxCount:i,onAllRemoved:d});return c.useImperativeHandle(t,()=>Object.assign(Object.assign({},x),{prefixCls:h,hashId:g})),E});let NR=0;function hL(e){const t=c.useRef(null);return[c.useMemo(()=>{const r=s=>{var d;(d=t.current)===null||d===void 0||d.close(s)},o=s=>{if(!t.current){const w=()=>{};return w.then=()=>{},w}const{open:d,prefixCls:f,hashId:m}=t.current,h=`${f}-notice`,{content:g,icon:v,type:C,key:S,className:y,onClose:x}=s,E=oQ(s,["content","icon","type","key","className","onClose"]);let O=S;return O==null&&(NR+=1,O=`antd-message-${NR}`),zx(w=>(d(Object.assign(Object.assign({},E),{key:O,content:c.createElement(mL,{prefixCls:f,type:C,icon:v},g),placement:"top",className:te(C&&`${h}-${C}`,m,y),onClose:()=>{x==null||x(),w()}})),()=>{r(O)}))},a={open:o,destroy:s=>{var d;s!==void 0?r(s):(d=t.current)===null||d===void 0||d.destroy()}};return["info","success","warning","error","loading"].forEach(s=>{const d=(f,m,h)=>{let g;f&&typeof f=="object"&&"content"in f?g=f:g={content:f};let v,C;typeof m=="function"?C=m:(v=m,C=h);const S=Object.assign(Object.assign({onClose:C,duration:v},g),{type:s});return o(S)};a[s]=d}),a},[]),c.createElement(lQ,Object.assign({key:"message-holder"},e,{ref:t}))]}function sQ(e){return hL(e)}function uQ(){const[e,t]=c.useState([]),n=c.useCallback(r=>(t(o=>[].concat(Pe(o),[r])),()=>{t(o=>o.filter(i=>i!==r))}),[]);return[e,n]}var Xf=j({},uV),cQ=Xf.version,dQ=Xf.render,fQ=Xf.unmountComponentAtNode,yv;try{var pQ=Number((cQ||"").split(".")[0]);pQ>=18&&(yv=Xf.createRoot)}catch{}function MR(e){var t=Xf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Ot(t)==="object"&&(t.usingClientEntryPoint=e)}var Gh="__rc_react_root__";function mQ(e,t){MR(!0);var n=t[Gh]||yv(t);MR(!1),n.render(e),t[Gh]=n}function hQ(e,t){dQ(e,t)}function Hx(e,t){if(yv){mQ(e,t);return}hQ(e,t)}function gQ(e){return OC.apply(this,arguments)}function OC(){return OC=js(Yr().mark(function e(t){return Yr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[Gh])===null||o===void 0||o.unmount(),delete t[Gh]}));case 1:case"end":return r.stop()}},e)})),OC.apply(this,arguments)}function vQ(e){fQ(e)}function gL(e){return $C.apply(this,arguments)}function $C(){return $C=js(Yr().mark(function e(t){return Yr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(yv===void 0){r.next=2;break}return r.abrupt("return",gQ(t));case 2:vQ(t);case 3:case"end":return r.stop()}},e)})),$C.apply(this,arguments)}const Yf=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},yQ=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}}}}},bQ=In("Wave",e=>[yQ(e)]);function SQ(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 Vy(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&SQ(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function CQ(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Vy(t)?t:Vy(n)?n:Vy(r)?r:null}function Uy(e){return Number.isNaN(e)?0:e}const xQ=e=>{const{className:t,target:n}=e,r=c.useRef(null),[o,i]=c.useState(null),[a,l]=c.useState([]),[s,d]=c.useState(0),[f,m]=c.useState(0),[h,g]=c.useState(0),[v,C]=c.useState(0),[S,y]=c.useState(!1),x={left:s,top:f,width:h,height:v,borderRadius:a.map(O=>`${O}px`).join(" ")};o&&(x["--wave-color"]=o);function E(){const O=getComputedStyle(n);i(CQ(n));const w=O.position==="static",{borderLeftWidth:$,borderTopWidth:R}=O;d(w?n.offsetLeft:Uy(-parseFloat($))),m(w?n.offsetTop:Uy(-parseFloat(R))),g(n.offsetWidth),C(n.offsetHeight);const{borderTopLeftRadius:_,borderTopRightRadius:M,borderBottomLeftRadius:T,borderBottomRightRadius:D}=O;l([_,M,D,T].map(N=>Uy(parseFloat(N))))}return c.useEffect(()=>{if(n){const O=Zt(()=>{E(),y(!0)});let w;return typeof ResizeObserver<"u"&&(w=new ResizeObserver(E),w.observe(n)),()=>{Zt.cancel(O),w==null||w.disconnect()}}},[]),S?c.createElement(fi,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(O,w)=>{var $;if(w.deadline||w.propertyName==="opacity"){const R=($=r.current)===null||$===void 0?void 0:$.parentElement;gL(R).then(()=>{var _;(_=R.parentElement)===null||_===void 0||_.removeChild(R)})}return!1}},O=>{let{className:w}=O;return c.createElement("div",{ref:r,className:te(t,w),style:x})}):null};function EQ(e,t){const n=document.createElement("div");n.style.position="absolute",n.style.left="0px",n.style.top="0px",e==null||e.insertBefore(n,e==null?void 0:e.firstChild),Hx(c.createElement(xQ,{target:e,className:t}),n)}function wQ(e,t){function n(){const r=e.current;EQ(r,t)}return n}const OQ=e=>{const{children:t,disabled:n}=e,{getPrefixCls:r}=c.useContext(yt),o=c.useRef(null),i=r("wave"),[,a]=bQ(i),l=wQ(o,te(i,a));if(ge.useEffect(()=>{const d=o.current;if(!d||d.nodeType!==1||n)return;const f=m=>{m.target.tagName==="INPUT"||!Yf(m.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")||d.className.includes("-leave")||l()};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[n]),!ge.isValidElement(t))return t??null;const s=Hl(t)?zo(t.ref,o):o;return mr(t,{ref:s})},$Q=OQ,IQ=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},RQ=IQ,_Q=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"}}}},vL=In("Space",e=>[_Q(e),RQ(e)],()=>({}),{resetStyle:!1});var yL=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=c.useContext(bv),r=c.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,l=o==="vertical"?"-vertical-":"-";return te({[`${e}-compact${l}item`]:!0,[`${e}-compact${l}first-item`]:i,[`${e}-compact${l}last-item`]:a,[`${e}-compact${l}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},Sc=e=>{let{children:t}=e;return c.createElement(bv.Provider,{value:null},t)},TQ=e=>{var{children:t}=e,n=yL(e,["children"]);return c.createElement(bv.Provider,{value:n},t)},PQ=e=>{const{getPrefixCls:t,direction:n}=c.useContext(yt),{size:r="middle",direction:o,block:i,prefixCls:a,className:l,rootClassName:s,children:d}=e,f=yL(e,["size","direction","block","prefixCls","className","rootClassName","children"]),m=t("space-compact",a),[h,g]=vL(m),v=te(m,g,{[`${m}-rtl`]:n==="rtl",[`${m}-block`]:i,[`${m}-vertical`]:o==="vertical"},l,s),C=c.useContext(bv),S=li(d),y=c.useMemo(()=>S.map((x,E)=>{const O=x&&x.key||`${m}-item-${E}`;return c.createElement(TQ,{key:O,compactSize:r,compactDirection:o,isFirstItem:E===0&&(!C||(C==null?void 0:C.isFirstItem)),isLastItem:E===S.length-1&&(!C||(C==null?void 0:C.isLastItem))},x)}),[r,S,C]);return S.length===0?null:h(c.createElement("div",Object.assign({className:v},f),y))},NQ=PQ,Wy=()=>({width:0,opacity:0,transform:"scale(0)"}),Ky=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),MQ=e=>{let{prefixCls:t,loading:n,existIcon:r}=e;const o=!!n;return r?ge.createElement("span",{className:`${t}-loading-icon`},ge.createElement(yf,null)):ge.createElement(fi,{visible:o,motionName:`${t}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:Wy,onAppearActive:Ky,onEnterStart:Wy,onEnterActive:Ky,onLeaveStart:Ky,onLeaveActive:Wy},(i,a)=>{let{className:l,style:s}=i;return ge.createElement("span",{className:`${t}-loading-icon`,style:s,ref:a},ge.createElement(yf,{className:l}))})},AQ=MQ;var LQ=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}=c.useContext(yt),{prefixCls:r,size:o,className:i}=e,a=LQ(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,s]=Vs();let d="";switch(o){case"large":d="lg";break;case"small":d="sm";break}const f=te(l,{[`${l}-${d}`]:d,[`${l}-rtl`]:n==="rtl"},i,s);return c.createElement(bL.Provider,{value:o},c.createElement("div",Object.assign({},a,{className:f})))},kQ=DQ,AR=/^[\u4e00-\u9fa5]{2}$/,IC=AR.test.bind(AR);function FQ(e){return typeof e=="string"}function Gy(e){return e==="text"||e==="link"}function BQ(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&FQ(e.type)&&IC(e.props.children)?mr(e,{children:e.props.children.split("").join(n)}):typeof e=="string"?IC(e)?ge.createElement("span",null,e.split("").join(n)):ge.createElement("span",null,e):dL(e)?ge.createElement("span",null,e):e}function zQ(e,t){let n=!1;const r=[];return ge.Children.forEach(e,o=>{const i=typeof o,a=i==="string"||i==="number";if(n&&a){const l=r.length-1,s=r[l];r[l]=`${s}${o}`}else r.push(o);n=a}),ge.Children.map(r,o=>BQ(o,t))}const LR=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),HQ=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, + &:focus, + &:active`]:{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},LR(`${t}-primary`,o),LR(`${t}-danger`,i)]}},jQ=HQ;function VQ(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(s=>`&:${s} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function UQ(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 Sv(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({},VQ(e,r,t)),UQ(n,r,t))}}function WQ(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function KQ(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 GQ(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},WQ(e,t)),KQ(e.componentCls,t))}}const XQ=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:400,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,"> span":{display:"inline-block"},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},$f(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:'""'}}}}}}},za=(e,t)=>({"&:not(:disabled)":{"&:hover":e,"&:active":t}}),YQ=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),qQ=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),RC=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),Xh=(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"},za(Object.assign({backgroundColor:"transparent"},i),Object.assign({backgroundColor:"transparent"},a))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:o||void 0}})}),jx=e=>({"&:disabled":Object.assign({},RC(e))}),SL=e=>Object.assign({},jx(e)),Yh=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),CL=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},SL(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),za({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Xh(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},za({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Xh(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),jx(e))}),QQ=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},SL(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),za({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),Xh(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}`},za({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),Xh(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),jx(e))}),ZQ=e=>Object.assign(Object.assign({},CL(e)),{borderStyle:"dashed"}),JQ=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},za({color:e.colorLinkHover},{color:e.colorLinkActive})),Yh(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},za({color:e.colorErrorHover},{color:e.colorErrorActive})),Yh(e))}),eZ=e=>Object.assign(Object.assign(Object.assign({},za({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),Yh(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Yh(e)),za({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),tZ=e=>Object.assign(Object.assign({},RC(e)),{[`&${e.componentCls}:hover`]:Object.assign({},RC(e))}),nZ=e=>{const{componentCls:t}=e;return{[`${t}-default`]:CL(e),[`${t}-primary`]:QQ(e),[`${t}-dashed`]:ZQ(e),[`${t}-link`]:JQ(e),[`${t}-text`]:eZ(e),[`${t}-disabled`]:tZ(e)}},Vx=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,iconCls:r,controlHeight:o,fontSize:i,lineHeight:a,lineWidth:l,borderRadius:s,buttonPaddingHorizontal:d}=e,f=Math.max(0,(o-i*a)/2-l),m=d-l,h=`${n}-icon-only`;return[{[`${n}${t}`]:{fontSize:i,height:o,padding:`${f}px ${m}px`,borderRadius:s,[`&${h}`]:{width:o,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},"> span":{transform:"scale(1.143)"}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`&:not(${h}) ${n}-loading-icon > ${r}`]:{marginInlineEnd:e.marginXS}}},{[`${n}${n}-circle${t}`]:YQ(e)},{[`${n}${n}-round${t}`]:qQ(e)}]},rZ=e=>Vx(e),oZ=e=>{const t=Kt(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM});return Vx(t,`${e.componentCls}-sm`)},iZ=e=>{const t=Kt(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG});return Vx(t,`${e.componentCls}-lg`)},aZ=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},lZ=In("Button",e=>{const{controlTmpOutline:t,paddingContentHorizontal:n}=e,r=Kt(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n});return[XQ(r),oZ(r),rZ(r),iZ(r),aZ(r),nZ(r),jQ(r),Sv(e),GQ(e)]});var sZ=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{loading:n=!1,prefixCls:r,type:o="default",danger:i,shape:a="default",size:l,disabled:s,className:d,rootClassName:f,children:m,icon:h,ghost:g=!1,block:v=!1,htmlType:C="button"}=e,S=sZ(e,["loading","prefixCls","type","danger","shape","size","disabled","className","rootClassName","children","icon","ghost","block","htmlType"]),{getPrefixCls:y,autoInsertSpaceInButton:x,direction:E}=c.useContext(yt),O=y("btn",r),[w,$]=lZ(O),R=c.useContext(Bi),_=c.useContext(jl),M=s??_,T=c.useContext(bL),D=c.useMemo(()=>uZ(n),[n]),[N,P]=c.useState(D.loading),[L,k]=c.useState(!1),F=t||c.createRef(),V=()=>c.Children.count(m)===1&&!h&&!Gy(o),H=()=>{if(!F||!F.current||x===!1)return;const ie=F.current.textContent;V()&&IC(ie)?L||k(!0):L&&k(!1)};c.useEffect(()=>{let ie=null;D.delay>0?ie=window.setTimeout(()=>{ie=null,P(!0)},D.delay):P(D.loading);function pe(){ie&&(window.clearTimeout(ie),ie=null)}return pe},[D]),c.useEffect(H,[F]);const W=ie=>{const{onClick:pe}=e;if(N||M){ie.preventDefault();return}pe==null||pe(ie)},G=x!==!1,{compactSize:U,compactItemClassnames:X}=Tc(O,E),Q={large:"lg",small:"sm",middle:void 0},Y=U||T||l||R,q=Y&&Q[Y]||"",ne=N?"loading":h,le=kr(S,["navigate"]),we=le.href!==void 0&&M,Oe=te(O,$,{[`${O}-${a}`]:a!=="default"&&a,[`${O}-${o}`]:o,[`${O}-${q}`]:q,[`${O}-icon-only`]:!m&&m!==0&&!!ne,[`${O}-background-ghost`]:g&&!Gy(o),[`${O}-loading`]:N,[`${O}-two-chinese-chars`]:L&&G&&!N,[`${O}-block`]:v,[`${O}-dangerous`]:!!i,[`${O}-rtl`]:E==="rtl",[`${O}-disabled`]:we},X,d,f),Ce=h&&!N?h:c.createElement(AQ,{existIcon:!!h,prefixCls:O,loading:!!N}),ce=m||m===0?zQ(m,V()&&G):null;if(le.href!==void 0)return w(c.createElement("a",Object.assign({},le,{className:Oe,onClick:W,ref:F}),Ce,ce));let he=c.createElement("button",Object.assign({},S,{type:C,className:Oe,onClick:W,disabled:M,ref:F}),Ce,ce);return Gy(o)||(he=c.createElement($Q,{disabled:!!N},he)),w(he)},Ux=c.forwardRef(cZ);Ux.Group=kQ;Ux.__ANT_BUTTON=!0;const oi=Ux;function DR(e){return!!(e&&e.then)}const dZ=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:l,quitOnNullishReturnValue:s,actionFn:d}=e,f=c.useRef(!1),m=c.useRef(null),[h,g]=Rl(!1),v=function(){i==null||i.apply(void 0,arguments)};c.useEffect(()=>{let y=null;return a&&(y=setTimeout(()=>{var x;(x=m.current)===null||x===void 0||x.focus()})),()=>{y&&clearTimeout(y)}},[]);const C=y=>{DR(y)&&(g(!0),y.then(function(){g(!1,!0),v.apply(void 0,arguments),f.current=!1},x=>(g(!1,!0),f.current=!1,Promise.reject(x))))},S=y=>{if(f.current)return;if(f.current=!0,!d){v();return}let x;if(l){if(x=d(y),s&&!DR(x)){f.current=!1,v(y);return}}else if(d.length)x=d(i),f.current=!1;else if(x=d(),!x){v();return}C(x)};return c.createElement(oi,Object.assign({},xL(t),{onClick:S,loading:h,prefixCls:r},o,{ref:m}),n)},kR=dZ,Xy=()=>({height:0,opacity:0}),FR=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},fZ=e=>({height:e?e.offsetHeight:0}),Yy=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",EL=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:Xy,onEnterStart:Xy,onAppearActive:FR,onEnterActive:FR,onLeaveStart:fZ,onLeaveActive:Xy,onAppearEnd:Yy,onEnterEnd:Yy,onLeaveEnd:Yy,motionDeadline:500}},pZ=e=>e!==void 0&&(e==="topLeft"||e==="topRight")?"slide-down":"slide-up",As=(e,t,n)=>n!==void 0?n:`${e}-${t}`;var wL=c.createContext(null),an=pr()?c.useLayoutEffect:c.useEffect,Ud=function(t,n){var r=c.useRef(!0);an(function(){if(!r.current)return t()},n),an(function(){return r.current=!1,function(){r.current=!0}},[])},BR=[];function mZ(e,t){var n=c.useState(function(){if(!pr())return null;var v=document.createElement("div");return v}),r=ue(n,1),o=r[0],i=c.useRef(!1),a=c.useContext(wL),l=c.useState(BR),s=ue(l,2),d=s[0],f=s[1],m=a||(i.current?void 0:function(v){f(function(C){var S=[v].concat(Pe(C));return S})});function h(){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 an(function(){return e?a?a(h):h():g(),g},[e]),an(function(){d.length&&(d.forEach(function(v){return v()}),f(BR))},[d]),[o,m]}var qy;function qh(e){if(typeof document>"u")return 0;if(e||qy===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),qy=o-i}return qy}function zR(e){var t=e.match(/^(.*)px$/),n=Number(t==null?void 0:t[1]);return Number.isNaN(n)?qh():n}function HR(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:zR(n),height:zR(r)}}function hZ(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var gZ="rc-util-locker-".concat(Date.now()),jR=0;function vZ(e){var t=!!e,n=c.useState(function(){return jR+=1,"".concat(gZ,"_").concat(jR)}),r=ue(n,1),o=r[0];an(function(){if(t){var i=qh(),a=hZ();gc(` +html body { + overflow-y: hidden; + `.concat(a?"width: calc(100% - ".concat(i,"px);"):"",` +}`),o)}else Fh(o);return function(){Fh(o)}},[t,o])}var VR=!1;function yZ(e){return typeof e=="boolean"&&(VR=e),VR}var UR=function(t){return t===!1?!1:!pr()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Wx=c.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var i=e.autoDestroy,a=i===void 0?!0:i,l=e.children,s=c.useState(n),d=ue(s,2),f=d[0],m=d[1],h=f||n;c.useEffect(function(){(a||n)&&m(n)},[n,a]);var g=c.useState(function(){return UR(o)}),v=ue(g,2),C=v[0],S=v[1];c.useEffect(function(){var D=UR(o);S(D??null)});var y=mZ(h&&!C),x=ue(y,2),E=x[0],O=x[1],w=C??E;vZ(r&&n&&pr()&&(w===E||w===document.body));var $=null;if(l&&Hl(l)&&t){var R=l;$=R.ref}var _=dv($,t);if(!h||!pr()||C===void 0)return null;var M=w===!1||yZ(),T=l;return t&&(T=c.cloneElement(l,{ref:_})),c.createElement(wL.Provider,{value:O},M?T:Ni.createPortal(T,w))});function bZ(){var e=j({},Qd);return e.useId}var WR=0;function OL(e){var t=c.useState("ssr-id"),n=ue(t,2),r=n[0],o=n[1],i=bZ(),a=i==null?void 0:i();return c.useEffect(function(){if(!i){var l=WR;WR+=1,o("rc_unique_".concat(l))}},[]),e||a||r}var SZ=`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`,CZ=`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`,xZ="".concat(SZ," ").concat(CZ).split(/[\s\n]+/),EZ="aria-",wZ="data-";function KR(e,t){return e.indexOf(t)===0}function Ha(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=j({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||KR(o,EZ))||n.data&&KR(o,wZ)||n.attr&&xZ.includes(o))&&(r[o]=e[o])}),r}function GR(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function XR(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 OZ(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=XR(o),n.top+=XR(o,!0),n}const $Z=c.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var YR={width:0,height:0,overflow:"hidden",outline:"none"},$L=ge.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.title,a=e.ariaId,l=e.footer,s=e.closable,d=e.closeIcon,f=e.onClose,m=e.children,h=e.bodyStyle,g=e.bodyProps,v=e.modalRender,C=e.onMouseDown,S=e.onMouseUp,y=e.holderRef,x=e.visible,E=e.forceRender,O=e.width,w=e.height,$=c.useRef(),R=c.useRef();ge.useImperativeHandle(t,function(){return{focus:function(){var L;(L=$.current)===null||L===void 0||L.focus()},changeActive:function(L){var k=document,F=k.activeElement;L&&F===R.current?$.current.focus():!L&&F===$.current&&R.current.focus()}}});var _={};O!==void 0&&(_.width=O),w!==void 0&&(_.height=w);var M;l&&(M=ge.createElement("div",{className:"".concat(n,"-footer")},l));var T;i&&(T=ge.createElement("div",{className:"".concat(n,"-header")},ge.createElement("div",{className:"".concat(n,"-title"),id:a},i)));var D;s&&(D=ge.createElement("button",{type:"button",onClick:f,"aria-label":"Close",className:"".concat(n,"-close")},d||ge.createElement("span",{className:"".concat(n,"-close-x")})));var N=ge.createElement("div",{className:"".concat(n,"-content")},D,T,ge.createElement("div",je({className:"".concat(n,"-body"),style:h},g),m),M);return ge.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?a:null,"aria-modal":"true",ref:y,style:j(j({},o),_),className:te(n,r),onMouseDown:C,onMouseUp:S},ge.createElement("div",{tabIndex:0,ref:$,style:YR,"aria-hidden":"true"}),ge.createElement($Z,{shouldUpdate:x||E},v?v(N):N),ge.createElement("div",{tabIndex:0,ref:R,style:YR,"aria-hidden":"true"}))}),IL=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,i=e.className,a=e.visible,l=e.forceRender,s=e.destroyOnClose,d=e.motionName,f=e.ariaId,m=e.onVisibleChanged,h=e.mousePosition,g=c.useRef(),v=c.useState(),C=ue(v,2),S=C[0],y=C[1],x={};S&&(x.transformOrigin=S);function E(){var O=OZ(g.current);y(h?"".concat(h.x-O.left,"px ").concat(h.y-O.top,"px"):"")}return c.createElement(fi,{visible:a,onVisibleChanged:m,onAppearPrepare:E,onEnterPrepare:E,forceRender:l,motionName:d,removeOnLeave:s,ref:g},function(O,w){var $=O.className,R=O.style;return c.createElement($L,je({},e,{ref:t,title:r,ariaId:f,prefixCls:n,holderRef:w,style:j(j(j({},R),o),x),className:te(i,$)}))})});IL.displayName="Content";function IZ(e){var t=e.prefixCls,n=e.style,r=e.visible,o=e.maskProps,i=e.motionName;return c.createElement(fi,{key:"mask",visible:r,motionName:i,leavedClassName:"".concat(t,"-mask-hidden")},function(a,l){var s=a.className,d=a.style;return c.createElement("div",je({ref:l,style:j(j({},d),n),className:te("".concat(t,"-mask"),s)},o))})}function RZ(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,l=a===void 0?!0:a,s=e.focusTriggerAfterClose,d=s===void 0?!0:s,f=e.wrapStyle,m=e.wrapClassName,h=e.wrapProps,g=e.onClose,v=e.afterOpenChange,C=e.afterClose,S=e.transitionName,y=e.animation,x=e.closable,E=x===void 0?!0:x,O=e.mask,w=O===void 0?!0:O,$=e.maskTransitionName,R=e.maskAnimation,_=e.maskClosable,M=_===void 0?!0:_,T=e.maskStyle,D=e.maskProps,N=e.rootClassName,P=c.useRef(),L=c.useRef(),k=c.useRef(),F=c.useState(i),V=ue(F,2),H=V[0],W=V[1],G=OL();function U(){Cs(L.current,document.activeElement)||(P.current=document.activeElement)}function X(){if(!Cs(L.current,document.activeElement)){var ce;(ce=k.current)===null||ce===void 0||ce.focus()}}function Q(ce){if(ce)X();else{if(W(!1),w&&P.current&&d){try{P.current.focus({preventScroll:!0})}catch{}P.current=null}H&&(C==null||C())}v==null||v(ce)}function Y(ce){g==null||g(ce)}var q=c.useRef(!1),ne=c.useRef(),le=function(){clearTimeout(ne.current),q.current=!0},we=function(){ne.current=setTimeout(function(){q.current=!1})},Oe=null;M&&(Oe=function(he){q.current?q.current=!1:L.current===he.target&&Y(he)});function Ce(ce){if(l&&ce.keyCode===De.ESC){ce.stopPropagation(),Y(ce);return}i&&ce.keyCode===De.TAB&&k.current.changeActive(!ce.shiftKey)}return c.useEffect(function(){i&&(W(!0),U())},[i]),c.useEffect(function(){return function(){clearTimeout(ne.current)}},[]),c.createElement("div",je({className:te("".concat(n,"-root"),N)},Ha(e,{data:!0})),c.createElement(IZ,{prefixCls:n,visible:w&&i,motionName:GR(n,$,R),style:j({zIndex:r},T),maskProps:D}),c.createElement("div",je({tabIndex:-1,onKeyDown:Ce,className:te("".concat(n,"-wrap"),m),ref:L,onClick:Oe,style:j(j({zIndex:r},f),{},{display:H?null:"none"})},h),c.createElement(IL,je({},e,{onMouseDown:le,onMouseUp:we,ref:k,closable:E,ariaId:G,prefixCls:n,visible:i&&H,onClose:Y,onVisibleChanged:Q,motionName:GR(n,S,y)}))))}var RL=function(t){var n=t.visible,r=t.getContainer,o=t.forceRender,i=t.destroyOnClose,a=i===void 0?!1:i,l=t.afterClose,s=c.useState(n),d=ue(s,2),f=d[0],m=d[1];return c.useEffect(function(){n&&m(!0)},[n]),!o&&a&&!f?null:c.createElement(Wx,{open:n||o||f,autoDestroy:!1,getContainer:r,autoLock:n||f},c.createElement(RZ,je({},t,{destroyOnClose:a,afterClose:function(){l==null||l(),m(!1)}})))};RL.displayName="Dialog";const sa=c.createContext({}),If=e=>{let{children:t,status:n,override:r}=e;const o=c.useContext(sa),i=c.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 c.createElement(sa.Provider,{value:i},t)};var _L=function(t){if(pr()&&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},_Z=function(t,n){if(!_L(t))return!1;var r=document.createElement("div"),o=r.style[t];return r.style[t]=n,r.style[t]!==o};function TZ(e,t){return!Array.isArray(e)&&t!==void 0?_Z(e,t):_L(e)}const TL=()=>pr()&&window.document.documentElement;let $m;const PZ=()=>{if(!TL())return!1;if($m!==void 0)return $m;const e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),$m=e.scrollHeight===1,document.body.removeChild(e),$m},NZ=e=>({animationDuration:e,animationFillMode:"both"}),MZ=e=>({animationDuration:e,animationFillMode:"both"}),Cv=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({},NZ(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},MZ(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"}}},AZ=new Dt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),LZ=new Dt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),DZ=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[Cv(r,AZ,LZ,e.motionDurationMid,t),{[` + ${o}${r}-enter, + ${o}${r}-appear + `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},kZ=new Dt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),FZ=new Dt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),BZ=new Dt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),zZ=new Dt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),HZ=new Dt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),jZ=new Dt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),VZ=new Dt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),UZ=new Dt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),WZ={"move-up":{inKeyframes:VZ,outKeyframes:UZ},"move-down":{inKeyframes:kZ,outKeyframes:FZ},"move-left":{inKeyframes:BZ,outKeyframes:zZ},"move-right":{inKeyframes:HZ,outKeyframes:jZ}},Qh=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=WZ[t];return[Cv(r,o,i,e.motionDurationMid),{[` + ${r}-enter, + ${r}-appear + `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Kx=new Dt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Gx=new Dt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Xx=new Dt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Yx=new Dt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),KZ=new Dt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),GZ=new Dt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),XZ=new Dt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),YZ=new Dt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),qZ={"slide-up":{inKeyframes:Kx,outKeyframes:Gx},"slide-down":{inKeyframes:Xx,outKeyframes:Yx},"slide-left":{inKeyframes:KZ,outKeyframes:GZ},"slide-right":{inKeyframes:XZ,outKeyframes:YZ}},Cc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=qZ[t];return[Cv(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}}]},QZ=new Dt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),ZZ=new Dt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),qR=new Dt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),QR=new Dt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),JZ=new Dt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),eJ=new Dt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),tJ=new Dt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),nJ=new Dt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),rJ=new Dt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),oJ=new Dt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),iJ=new Dt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),aJ=new Dt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),lJ={zoom:{inKeyframes:QZ,outKeyframes:ZZ},"zoom-big":{inKeyframes:qR,outKeyframes:QR},"zoom-big-fast":{inKeyframes:qR,outKeyframes:QR},"zoom-left":{inKeyframes:tJ,outKeyframes:nJ},"zoom-right":{inKeyframes:rJ,outKeyframes:oJ},"zoom-up":{inKeyframes:JZ,outKeyframes:eJ},"zoom-down":{inKeyframes:iJ,outKeyframes:aJ}},qf=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=lJ[t];return[Cv(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}}]},sJ=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`}}}),PL=sJ;function ZR(e){return{position:e,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0}}const uJ=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({},ZR("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},ZR("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:DZ(e)}]},cJ=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap`]:{zIndex:e.zIndexPopupBase,position:"fixed",inset:0,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"},[`${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({},mn(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.modalHeadingColor,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.modalContentBg,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.modalHeaderCloseSize-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,padding:0,color:e.modalCloseColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalConfirmIconSize,height:e.modalConfirmIconSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"block",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${e.modalCloseBtnSize}px`,textAlign:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},$f(e)),[`${t}-header`]:{color:e.colorText,background:e.modalHeaderBg,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.modalFooterBg,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"}}}]},dJ=e=>{const{componentCls:t}=e,n=`${t}-confirm`;return{[n]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${n}-body-wrapper`]:Object.assign({},Of()),[`${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.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,[`+ ${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}}},fJ=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},pJ=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}}}},NL=In("Modal",e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5,o=Kt(e,{modalBodyPadding:e.paddingLG,modalHeaderBg:e.colorBgElevated,modalHeaderPadding:`${t}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderTitleLineHeight:r,modalHeaderTitleFontSize:n,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderCloseSize:r*n+t*2,modalContentBg:e.colorBgElevated,modalHeadingColor:e.colorTextHeading,modalCloseColor:e.colorTextDescription,modalFooterBg:"transparent",modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalConfirmTitleFontSize:e.fontSizeLG,modalIconHoverColor:e.colorIconHover,modalConfirmIconSize:e.fontSize*e.lineHeight,modalCloseBtnSize:e.controlHeightLG*.55});return[cJ(o),dJ(o),fJ(o),uJ(o),e.wireframe&&pJ(o),qf(o,"zoom")]});var mJ=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{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:i,onCancel:a,okButtonProps:l,cancelButtonProps:s}=e,[d]=Kf("Modal",KA());return c.createElement(c.Fragment,null,c.createElement(oi,Object.assign({onClick:a},s),r||(d==null?void 0:d.cancelText)),c.createElement(oi,Object.assign({},xL(n),{loading:o,onClick:i},l),t||(d==null?void 0:d.okText)))},hJ=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:a,children:l}=e,s=mJ(e,["prefixCls","className","closeIcon","closable","type","title","children"]),{getPrefixCls:d}=c.useContext(yt),f=d(),m=t||d("modal"),[,h]=NL(m),g=`${m}-confirm`;let v={};return i?v={closable:o??!1,title:"",footer:"",children:c.createElement(DL,Object.assign({},e,{confirmPrefixCls:g,rootPrefixCls:f,content:l}))}:v={closable:o??!0,title:a,footer:e.footer===void 0?c.createElement(AL,Object.assign({},e)):e.footer,children:l},c.createElement($L,Object.assign({prefixCls:m,className:te(h,`${m}-pure-panel`,i&&g,i&&`${g}-${i}`,n)},s,{closeIcon:ML(m,r),closable:o},v))},gJ=hJ;var vJ=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{_C={x:e.pageX,y:e.pageY},setTimeout(()=>{_C=null},100)};TL()&&document.documentElement.addEventListener("click",yJ,!0);const bJ=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o}=c.useContext(yt),i=T=>{const{onCancel:D}=e;D==null||D(T)},a=T=>{const{onOk:D}=e;D==null||D(T)},{prefixCls:l,className:s,rootClassName:d,open:f,wrapClassName:m,centered:h,getContainer:g,closeIcon:v,focusTriggerAfterClose:C=!0,visible:S,width:y=520,footer:x}=e,E=vJ(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose","visible","width","footer"]),O=r("modal",l),w=r(),[$,R]=NL(O),_=te(m,{[`${O}-centered`]:!!h,[`${O}-wrap-rtl`]:o==="rtl"}),M=x===void 0?c.createElement(AL,Object.assign({},e,{onOk:a,onCancel:i})):x;return $(c.createElement(Sc,null,c.createElement(If,{status:!0,override:!0},c.createElement(RL,Object.assign({width:y},E,{getContainer:g===void 0?n:g,prefixCls:O,rootClassName:te(R,d),wrapClassName:_,footer:M,visible:f??S,mousePosition:(t=E.mousePosition)!==null&&t!==void 0?t:_C,onClose:i,closeIcon:ML(O,v),focusTriggerAfterClose:C,transitionName:As(w,"zoom",e.transitionName),maskTransitionName:As(w,"fade",e.maskTransitionName),className:te(R,s)})))))},LL=bJ;function DL(e){const{icon:t,onCancel:n,onOk:r,close:o,okText:i,okButtonProps:a,cancelText:l,cancelButtonProps:s,confirmPrefixCls:d,rootPrefixCls:f,type:m,okCancel:h,footer:g,locale:v}=e;let C=t;if(!t&&t!==null)switch(m){case"info":C=c.createElement(tA,null);break;case"success":C=c.createElement($x,null);break;case"error":C=c.createElement(Rc,null);break;default:C=c.createElement(HM,null)}const S=e.okType||"primary",y=h??m==="confirm",x=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[E]=Kf("Modal"),O=v||E,w=y&&c.createElement(kR,{actionFn:n,close:o,autoFocus:x==="cancel",buttonProps:s,prefixCls:`${f}-btn`},l||(O==null?void 0:O.cancelText));return c.createElement("div",{className:`${d}-body-wrapper`},c.createElement("div",{className:`${d}-body`},C,e.title===void 0?null:c.createElement("span",{className:`${d}-title`},e.title),c.createElement("div",{className:`${d}-content`},e.content)),g===void 0?c.createElement("div",{className:`${d}-btns`},w,c.createElement(kR,{type:S,actionFn:r,close:o,autoFocus:x==="ok",buttonProps:a,prefixCls:`${f}-btn`},i||(y?O==null?void 0:O.okText:O==null?void 0:O.justOkText))):g)}const kL=e=>{const{close:t,zIndex:n,afterClose:r,visible:o,open:i,keyboard:a,centered:l,getContainer:s,maskStyle:d,direction:f,prefixCls:m,wrapClassName:h,rootPrefixCls:g,iconPrefixCls:v,bodyStyle:C,closable:S=!1,closeIcon:y,modalRender:x,focusTriggerAfterClose:E}=e,O=`${m}-confirm`,w=e.width||416,$=e.style||{},R=e.mask===void 0?!0:e.mask,_=e.maskClosable===void 0?!1:e.maskClosable,M=te(O,`${O}-${e.type}`,{[`${O}-rtl`]:f==="rtl"},e.className);return c.createElement(Wa,{prefixCls:g,iconPrefixCls:v,direction:f},c.createElement(LL,{prefixCls:m,className:M,wrapClassName:te({[`${O}-centered`]:!!e.centered},h),onCancel:()=>t==null?void 0:t({triggerCancel:!0}),open:i,title:"",footer:null,transitionName:As(g,"zoom",e.transitionName),maskTransitionName:As(g,"fade",e.maskTransitionName),mask:R,maskClosable:_,maskStyle:d,style:$,bodyStyle:C,width:w,zIndex:n,afterClose:r,keyboard:a,centered:l,getContainer:s,closable:S,closeIcon:y,modalRender:x,focusTriggerAfterClose:E},c.createElement(DL,Object.assign({},e,{confirmPrefixCls:O}))))},SJ=[],gs=SJ;var CJ=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);oh&&h.triggerCancel);e.onCancel&&m&&e.onCancel.apply(e,[()=>{}].concat(Pe(d.slice(1))));for(let h=0;h{const g=KA(),{getPrefixCls:v,getIconPrefixCls:C}=kx(),S=v(void 0,xJ()),y=m||`${S}-modal`,x=C();Hx(c.createElement(kL,Object.assign({},h,{prefixCls:y,rootPrefixCls:S,iconPrefixCls:x,okText:d,locale:g,cancelText:f||g.cancelText})),t)})}function a(){for(var s=arguments.length,d=new Array(s),f=0;f{typeof e.afterClose=="function"&&e.afterClose(),o.apply(this,d)}}),n.visible&&delete n.visible,i(n)}function l(s){typeof s=="function"?n=s(n):n=Object.assign(Object.assign({},n),s),i(n)}return i(n),gs.push(a),{destroy:a,update:l}}function BL(e){return Object.assign(Object.assign({},e),{type:"warning"})}function zL(e){return Object.assign(Object.assign({},e),{type:"info"})}function HL(e){return Object.assign(Object.assign({},e),{type:"success"})}function jL(e){return Object.assign(Object.assign({},e),{type:"error"})}function VL(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function EJ(e){let{rootPrefixCls:t}=e;FL=t}const wJ=(e,t)=>{let{afterClose:n,config:r}=e;var o;const[i,a]=c.useState(!0),[l,s]=c.useState(r),{direction:d,getPrefixCls:f}=c.useContext(yt),m=f("modal"),h=f(),g=()=>{var y;n(),(y=l.afterClose)===null||y===void 0||y.call(l)},v=function(){a(!1);for(var y=arguments.length,x=new Array(y),E=0;Ew&&w.triggerCancel);l.onCancel&&O&&l.onCancel.apply(l,[()=>{}].concat(Pe(x.slice(1))))};c.useImperativeHandle(t,()=>({destroy:v,update:y=>{s(x=>Object.assign(Object.assign({},x),y))}}));const C=(o=l.okCancel)!==null&&o!==void 0?o:l.type==="confirm",[S]=Kf("Modal",Ms.Modal);return c.createElement(kL,Object.assign({prefixCls:m,rootPrefixCls:h},l,{close:v,open:i,afterClose:g,okText:l.okText||(C?S==null?void 0:S.okText:S==null?void 0:S.justOkText),direction:l.direction||d,cancelText:l.cancelText||(S==null?void 0:S.cancelText)}))},OJ=c.forwardRef(wJ);let JR=0;const $J=c.memo(c.forwardRef((e,t)=>{const[n,r]=uQ();return c.useImperativeHandle(t,()=>({patchElement:r}),[]),c.createElement(c.Fragment,null,n)}));function IJ(){const e=c.useRef(null),[t,n]=c.useState([]);c.useEffect(()=>{t.length&&(Pe(t).forEach(a=>{a()}),n([]))},[t]);const r=c.useCallback(i=>function(l){var s;JR+=1;const d=c.createRef();let f;const m=c.createElement(OJ,{key:`modal-${JR}`,config:i(l),ref:d,afterClose:()=>{f==null||f()}});return f=(s=e.current)===null||s===void 0?void 0:s.patchElement(m),f&&gs.push(f),{destroy:()=>{function h(){var g;(g=d.current)===null||g===void 0||g.destroy()}d.current?h():n(g=>[].concat(Pe(g),[h]))},update:h=>{function g(){var v;(v=d.current)===null||v===void 0||v.update(h)}d.current?g():n(v=>[].concat(Pe(v),[g]))}}},[]);return[c.useMemo(()=>({info:r(zL),success:r(HL),error:r(jL),warning:r(BL),confirm:r(VL)}),[]),c.createElement($J,{key:"modal-holder",ref:e})]}function Qy(e){return e!==void 0}function Lr(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=Rl(function(){return Qy(o)?o:Qy(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),s=ue(l,2),d=s[0],f=s[1],m=o!==void 0?o:d,h=a?a(m):m,g=so(i),v=Rl([m]),C=ue(v,2),S=C[0],y=C[1];Ud(function(){var E=S[0];d!==E&&g(d,E)},[S]),Ud(function(){Qy(o)||f(o)},[o]);var x=so(function(E,O){f(E,O),y([m],O)});return[h,x]}const xv=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var UL=c.createContext(null);function RJ(){return c.useContext(UL)}function _J(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=c.useState(!1),n=ue(t,2),r=n[0],o=n[1],i=c.useRef(null),a=function(){window.clearTimeout(i.current)};c.useEffect(function(){return a},[]);var l=function(d,f){a(),i.current=window.setTimeout(function(){o(d),f&&f()},e)};return[r,l,a]}function WL(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=c.useRef(null),n=c.useRef(null);c.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 TJ(e,t,n,r){var o=c.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},c.useEffect(function(){function i(a){var l;if(!((l=o.current)!==null&&l!==void 0&&l.customizedTrigger)){var s=a.target;s.shadowRoot&&a.composed&&(s=a.composedPath()[0]||s),o.current.open&&e().filter(function(d){return d}).every(function(d){return!d.contains(s)&&d!==s})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[])}var PJ=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],du=void 0;function NJ(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,l=e.responsiveDisabled,s=e.registerSize,d=e.itemKey,f=e.className,m=e.style,h=e.children,g=e.display,v=e.order,C=e.component,S=C===void 0?"div":C,y=vt(e,PJ),x=a&&!g;function E(_){s(d,_)}c.useEffect(function(){return function(){E(null)}},[]);var O=i&&o!==du?i(o):h,w;r||(w={opacity:x?0:1,height:x?0:du,overflowY:x?"hidden":du,order:a?v:du,pointerEvents:x?"none":du,position:x?"absolute":du});var $={};x&&($["aria-hidden"]=!0);var R=c.createElement(S,je({className:te(!r&&n,f),style:j(j({},w),m)},$,y,{ref:t}),O);return a&&(R=c.createElement(Fi,{onResize:function(M){var T=M.offsetWidth;E(T)},disabled:l},R)),R}var Wd=c.forwardRef(NJ);Wd.displayName="Item";function MJ(e){if(typeof MessageChannel>"u")Zt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function AJ(){var e=c.useRef(null),t=function(r){e.current||(e.current=[],MJ(function(){Ni.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function cd(e,t){var n=c.useState(t),r=ue(n,2),o=r[0],i=r[1],a=so(function(l){e(function(){i(l)})});return[o,a]}var LJ=["component"],DJ=["className"],kJ=["className"],FJ=function(t,n){var r=c.useContext(Zh);if(!r){var o=t.component,i=o===void 0?"div":o,a=vt(t,LJ);return c.createElement(i,je({},a,{ref:n}))}var l=r.className,s=vt(r,DJ),d=t.className,f=vt(t,kJ);return c.createElement(Zh.Provider,{value:null},c.createElement(Wd,je({ref:n,className:te(l,d)},s,f)))},KL=c.forwardRef(FJ);KL.displayName="RawItem";var BJ=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Zh=c.createContext(null),GL="responsive",XL="invalidate";function zJ(e){return"+ ".concat(e.length," ...")}function HJ(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,i=o===void 0?[]:o,a=e.renderItem,l=e.renderRawItem,s=e.itemKey,d=e.itemWidth,f=d===void 0?10:d,m=e.ssr,h=e.style,g=e.className,v=e.maxCount,C=e.renderRest,S=e.renderRawRest,y=e.suffix,x=e.component,E=x===void 0?"div":x,O=e.itemComponent,w=e.onVisibleChange,$=vt(e,BJ),R=m==="full",_=AJ(),M=cd(_,null),T=ue(M,2),D=T[0],N=T[1],P=D||0,L=cd(_,new Map),k=ue(L,2),F=k[0],V=k[1],H=cd(_,0),W=ue(H,2),G=W[0],U=W[1],X=cd(_,0),Q=ue(X,2),Y=Q[0],q=Q[1],ne=cd(_,0),le=ue(ne,2),we=le[0],Oe=le[1],Ce=c.useState(null),ce=ue(Ce,2),he=ce[0],ie=ce[1],pe=c.useState(null),fe=ue(pe,2),Ie=fe[0],Se=fe[1],de=c.useMemo(function(){return Ie===null&&R?Number.MAX_SAFE_INTEGER:Ie||0},[Ie,D]),_e=c.useState(!1),be=ue(_e,2),Xe=be[0],Qe=be[1],ft="".concat(r,"-item"),ct=Math.max(G,Y),ut=v===GL,dt=i.length&&ut,He=v===XL,Je=dt||typeof v=="number"&&i.length>v,ee=c.useMemo(function(){var Re=i;return dt?D===null&&R?Re=i:Re=i.slice(0,Math.min(i.length,P/f)):typeof v=="number"&&(Re=i.slice(0,v)),Re},[i,f,D,v,dt]),re=c.useMemo(function(){return dt?i.slice(de+1):i.slice(ee.length)},[i,ee,dt,de]),oe=c.useCallback(function(Re,Ne){var Te;return typeof s=="function"?s(Re):(Te=s&&(Re==null?void 0:Re[s]))!==null&&Te!==void 0?Te:Ne},[s]),xe=c.useCallback(a||function(Re){return Re},[a]);function ve(Re,Ne,Te){Ie===Re&&(Ne===void 0||Ne===he)||(Se(Re),Te||(Qe(ReP){ve(We-1,Re-qe-we+Y);break}}y&&ot(0)+we>P&&ie(null)}},[P,F,Y,we,oe,ee]);var Ae=Xe&&!!re.length,Ke={};he!==null&&dt&&(Ke={position:"absolute",left:he,top:0});var Ue={prefixCls:ft,responsive:dt,component:O,invalidate:He},ze=l?function(Re,Ne){var Te=oe(Re,Ne);return c.createElement(Zh.Provider,{key:Te,value:j(j({},Ue),{},{order:Ne,item:Re,itemKey:Te,registerSize:ke,display:Ne<=de})},l(Re,Ne))}:function(Re,Ne){var Te=oe(Re,Ne);return c.createElement(Wd,je({},Ue,{order:Ne,key:Te,item:Re,renderItem:xe,itemKey:Te,registerSize:ke,display:Ne<=de}))},at,$t={order:Ae?de:Number.MAX_SAFE_INTEGER,className:"".concat(ft,"-rest"),registerSize:Ye,display:Ae};if(S)S&&(at=c.createElement(Zh.Provider,{value:j(j({},Ue),$t)},S(re)));else{var tt=C||zJ;at=c.createElement(Wd,je({},Ue,$t),typeof tt=="function"?tt(re):tt)}var lt=c.createElement(E,je({className:te(!He&&r,g),style:h,ref:t},$),ee.map(ze),Je?at:null,y&&c.createElement(Wd,je({},Ue,{responsive:ut,responsiveDisabled:!dt,order:de,className:"".concat(ft,"-suffix"),registerSize:Fe,display:!0,style:Ke}),y));return ut&&(lt=c.createElement(Fi,{onResize:Ee,disabled:!dt},lt)),lt}var ia=c.forwardRef(HJ);ia.displayName="Overflow";ia.Item=KL;ia.RESPONSIVE=GL;ia.INVALIDATE=XL;var Jh=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,i=t.onMouseDown,a=t.onClick,l=t.children,s;return typeof r=="function"?s=r(o):s=r,c.createElement("span",{className:n,onMouseDown:function(f){f.preventDefault(),i&&i(f)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},s!==void 0?s:c.createElement("span",{className:te(n.split(/\s+/).map(function(d){return"".concat(d,"-icon")}))},l))},jJ=function(t,n){var r,o,i=t.prefixCls,a=t.id,l=t.inputElement,s=t.disabled,d=t.tabIndex,f=t.autoFocus,m=t.autoComplete,h=t.editable,g=t.activeDescendantId,v=t.value,C=t.maxLength,S=t.onKeyDown,y=t.onMouseDown,x=t.onChange,E=t.onPaste,O=t.onCompositionStart,w=t.onCompositionEnd,$=t.open,R=t.attrs,_=l||c.createElement("input",null),M=_,T=M.ref,D=M.props,N=D.onKeyDown,P=D.onChange,L=D.onMouseDown,k=D.onCompositionStart,F=D.onCompositionEnd,V=D.style;return"maxLength"in _.props,_=c.cloneElement(_,j(j(j({type:"search"},D),{},{id:a,ref:zo(n,T),disabled:s,tabIndex:d,autoComplete:m||"off",autoFocus:f,className:te("".concat(i,"-selection-search-input"),(r=_)===null||r===void 0||(o=r.props)===null||o===void 0?void 0:o.className),role:"combobox","aria-expanded":$,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":g},R),{},{value:h?v:"",maxLength:C,readOnly:!h,unselectable:h?null:"on",style:j(j({},V),{},{opacity:h?null:0}),onKeyDown:function(W){S(W),N&&N(W)},onMouseDown:function(W){y(W),L&&L(W)},onChange:function(W){x(W),P&&P(W)},onCompositionStart:function(W){O(W),k&&k(W)},onCompositionEnd:function(W){w(W),F&&F(W)},onPaste:E})),_},qx=c.forwardRef(jJ);qx.displayName="Input";function YL(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var VJ=typeof window<"u"&&window.document&&window.document.documentElement,UJ=VJ;function WJ(e){return e!=null}function e_(e){return["string","number"].includes(Ot(e))}function qL(e){var t=void 0;return e&&(e_(e.title)?t=e.title.toString():e_(e.label)&&(t=e.label.toString())),t}function KJ(e,t){UJ?c.useLayoutEffect(e,t):c.useEffect(e,t)}function GJ(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var t_=function(t){t.preventDefault(),t.stopPropagation()},XJ=function(t){var n=t.id,r=t.prefixCls,o=t.values,i=t.open,a=t.searchValue,l=t.autoClearSearchValue,s=t.inputRef,d=t.placeholder,f=t.disabled,m=t.mode,h=t.showSearch,g=t.autoFocus,v=t.autoComplete,C=t.activeDescendantId,S=t.tabIndex,y=t.removeIcon,x=t.maxTagCount,E=t.maxTagTextLength,O=t.maxTagPlaceholder,w=O===void 0?function(ie){return"+ ".concat(ie.length," ...")}:O,$=t.tagRender,R=t.onToggleOpen,_=t.onRemove,M=t.onInputChange,T=t.onInputPaste,D=t.onInputKeyDown,N=t.onInputMouseDown,P=t.onInputCompositionStart,L=t.onInputCompositionEnd,k=c.useRef(null),F=c.useState(0),V=ue(F,2),H=V[0],W=V[1],G=c.useState(!1),U=ue(G,2),X=U[0],Q=U[1],Y="".concat(r,"-selection"),q=i||m==="multiple"&&l===!1||m==="tags"?a:"",ne=m==="tags"||m==="multiple"&&l===!1||h&&(i||X);KJ(function(){W(k.current.scrollWidth)},[q]);function le(ie,pe,fe,Ie,Se){return c.createElement("span",{className:te("".concat(Y,"-item"),Z({},"".concat(Y,"-item-disabled"),fe)),title:qL(ie)},c.createElement("span",{className:"".concat(Y,"-item-content")},pe),Ie&&c.createElement(Jh,{className:"".concat(Y,"-item-remove"),onMouseDown:t_,onClick:Se,customizeIcon:y},"×"))}function we(ie,pe,fe,Ie,Se){var de=function(be){t_(be),R(!i)};return c.createElement("span",{onMouseDown:de},$({label:pe,value:ie,disabled:fe,closable:Ie,onClose:Se}))}function Oe(ie){var pe=ie.disabled,fe=ie.label,Ie=ie.value,Se=!f&&!pe,de=fe;if(typeof E=="number"&&(typeof fe=="string"||typeof fe=="number")){var _e=String(de);_e.length>E&&(de="".concat(_e.slice(0,E),"..."))}var be=function(Qe){Qe&&Qe.stopPropagation(),_(ie)};return typeof $=="function"?we(Ie,de,pe,Se,be):le(ie,de,pe,Se,be)}function Ce(ie){var pe=typeof w=="function"?w(ie):w;return le({title:pe},pe,!1)}var ce=c.createElement("div",{className:"".concat(Y,"-search"),style:{width:H},onFocus:function(){Q(!0)},onBlur:function(){Q(!1)}},c.createElement(qx,{ref:s,open:i,prefixCls:r,id:n,inputElement:null,disabled:f,autoFocus:g,autoComplete:v,editable:ne,activeDescendantId:C,value:q,onKeyDown:D,onMouseDown:N,onChange:M,onPaste:T,onCompositionStart:P,onCompositionEnd:L,tabIndex:S,attrs:Ha(t,!0)}),c.createElement("span",{ref:k,className:"".concat(Y,"-search-mirror"),"aria-hidden":!0},q," ")),he=c.createElement(ia,{prefixCls:"".concat(Y,"-overflow"),data:o,renderItem:Oe,renderRest:Ce,suffix:ce,itemKey:GJ,maxCount:x});return c.createElement(c.Fragment,null,he,!o.length&&!q&&c.createElement("span",{className:"".concat(Y,"-placeholder")},d))},YJ=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,i=t.inputRef,a=t.disabled,l=t.autoFocus,s=t.autoComplete,d=t.activeDescendantId,f=t.mode,m=t.open,h=t.values,g=t.placeholder,v=t.tabIndex,C=t.showSearch,S=t.searchValue,y=t.activeValue,x=t.maxLength,E=t.onInputKeyDown,O=t.onInputMouseDown,w=t.onInputChange,$=t.onInputPaste,R=t.onInputCompositionStart,_=t.onInputCompositionEnd,M=t.title,T=c.useState(!1),D=ue(T,2),N=D[0],P=D[1],L=f==="combobox",k=L||C,F=h[0],V=S||"";L&&y&&!N&&(V=y),c.useEffect(function(){L&&P(!1)},[L,y]);var H=f!=="combobox"&&!m&&!C?!1:!!V,W=M===void 0?qL(F):M,G=function(){if(F)return null;var X=H?{visibility:"hidden"}:void 0;return c.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:X},g)};return c.createElement(c.Fragment,null,c.createElement("span",{className:"".concat(r,"-selection-search")},c.createElement(qx,{ref:i,prefixCls:r,id:o,open:m,inputElement:n,disabled:a,autoFocus:l,autoComplete:s,editable:k,activeDescendantId:d,value:V,onKeyDown:E,onMouseDown:O,onChange:function(X){P(!0),w(X)},onPaste:$,onCompositionStart:R,onCompositionEnd:_,tabIndex:v,attrs:Ha(t,!0),maxLength:L?x:void 0})),!L&&F?c.createElement("span",{className:"".concat(r,"-selection-item"),title:W,style:H?{visibility:"hidden"}:void 0},F.label):null,G())};function qJ(e){return![De.ESC,De.SHIFT,De.BACKSPACE,De.TAB,De.WIN_KEY,De.ALT,De.META,De.WIN_KEY_RIGHT,De.CTRL,De.SEMICOLON,De.EQUALS,De.CAPS_LOCK,De.CONTEXT_MENU,De.F1,De.F2,De.F3,De.F4,De.F5,De.F6,De.F7,De.F8,De.F9,De.F10,De.F11,De.F12].includes(e)}var QJ=function(t,n){var r=c.useRef(null),o=c.useRef(!1),i=t.prefixCls,a=t.open,l=t.mode,s=t.showSearch,d=t.tokenWithEnter,f=t.autoClearSearchValue,m=t.onSearch,h=t.onSearchSubmit,g=t.onToggleOpen,v=t.onInputKeyDown,C=t.domRef;c.useImperativeHandle(n,function(){return{focus:function(){r.current.focus()},blur:function(){r.current.blur()}}});var S=WL(0),y=ue(S,2),x=y[0],E=y[1],O=function(V){var H=V.which;(H===De.UP||H===De.DOWN)&&V.preventDefault(),v&&v(V),H===De.ENTER&&l==="tags"&&!o.current&&!a&&(h==null||h(V.target.value)),qJ(H)&&g(!0)},w=function(){E(!0)},$=c.useRef(null),R=function(V){m(V,!0,o.current)!==!1&&g(!0)},_=function(){o.current=!0},M=function(V){o.current=!1,l!=="combobox"&&R(V.target.value)},T=function(V){var H=V.target.value;if(d&&$.current&&/[\r\n]/.test($.current)){var W=$.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");H=H.replace(W,$.current)}$.current=null,R(H)},D=function(V){var H=V.clipboardData,W=H.getData("text");$.current=W},N=function(V){var H=V.target;if(H!==r.current){var W=document.body.style.msTouchAction!==void 0;W?setTimeout(function(){r.current.focus()}):r.current.focus()}},P=function(V){var H=x();V.target!==r.current&&!H&&l!=="combobox"&&V.preventDefault(),(l!=="combobox"&&(!s||!H)||!a)&&(a&&f!==!1&&m("",!0,!1),g())},L={inputRef:r,onInputKeyDown:O,onInputMouseDown:w,onInputChange:T,onInputPaste:D,onInputCompositionStart:_,onInputCompositionEnd:M},k=l==="multiple"||l==="tags"?c.createElement(XJ,je({},t,L)):c.createElement(YJ,je({},t,L));return c.createElement("div",{ref:C,className:"".concat(i,"-selector"),onClick:N,onMouseDown:P},k)},QL=c.forwardRef(QJ);QL.displayName="Selector";var n_=c.createContext(null);function r_(e){return e?Array.isArray(e)?e:[e]:[]}function ZJ(e,t,n,r){return c.useMemo(function(){var o=r_(n??t),i=r_(r??t),a=new Set(o),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]},[e,t,n,r])}function JJ(){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 eee(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function fu(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 rl(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 nee(e,t,n,r,o,i,a){var l=c.useState({ready:!1,offsetX:0,offsetY:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),s=ue(l,2),d=s[0],f=s[1],m=c.useRef(0),h=c.useMemo(function(){return t?TC(t):[]},[t]),g=c.useRef({}),v=function(){g.current={}};e||v();var C=so(function(){if(t&&n&&e){let Kn=function(to,lr){var Hr=T.x+to,vo=T.y+lr,Ho=Hr+X,yo=vo+U,$r=Math.max(Hr,q.left),Ir=Math.max(vo,q.top),et=Math.min(Ho,q.right),Ge=Math.min(yo,q.bottom);return Math.max(0,(et-$r)*(Ge-Ir))},eo=function(){$t=T.y+xe,tt=$t+U,lt=T.x+oe,Re=lt+X};var zr=Kn,Wn=eo,x=t,E=x.style.left,O=x.style.top,w=x.ownerDocument,$=Zf(x),R=j(j({},o[r]),i);x.style.left="0",x.style.top="0";var _;if(Array.isArray(n))_={x:n[0],y:n[1],width:0,height:0};else{var M=n.getBoundingClientRect();_={x:M.x,y:M.y,width:M.width,height:M.height}}var T=x.getBoundingClientRect(),D=$.getComputedStyle(x),N=D.width,P=D.height,L=w.documentElement,k=L.clientWidth,F=L.clientHeight,V=L.scrollWidth,H=L.scrollHeight,W=L.scrollTop,G=L.scrollLeft,U=T.height,X=T.width,Q=_.height,Y=_.width,q=R.htmlRegion==="scroll"?{left:-G,top:-W,right:V-G,bottom:H-W}:{left:0,top:0,right:k,bottom:F};q=tee(q,h),x.style.left=E,x.style.top=O;var ne=eg(Math.round(X/parseFloat(N)*1e3)/1e3),le=eg(Math.round(U/parseFloat(P)*1e3)/1e3);if(ne===0||le===0||zh(n)&&!Yf(n))return;var we=R.offset,Oe=R.targetOffset,Ce=we||[],ce=ue(Ce,2),he=ce[0],ie=he===void 0?0:he,pe=ce[1],fe=pe===void 0?0:pe,Ie=Oe||[],Se=ue(Ie,2),de=Se[0],_e=de===void 0?0:de,be=Se[1],Xe=be===void 0?0:be;_.x+=_e,_.y+=Xe;var Qe=R.points||[],ft=ue(Qe,2),ct=ft[0],ut=ft[1],dt=i_(ut),He=i_(ct),Je=fu(_,dt),ee=fu(T,He),re=j({},R),oe=Je.x-ee.x+ie,xe=Je.y-ee.y+fe,ve=Kn(oe,xe),Ee=fu(_,["t","l"]),ke=fu(T,["t","l"]),Ye=fu(_,["b","r"]),Fe=fu(T,["b","r"]),ot=R.overflow||{},Ae=ot.adjustX,Ke=ot.adjustY,Ue=ot.shiftX,ze=ot.shiftY,at=function(lr){return typeof lr=="boolean"?lr:lr>=0},$t,tt,lt,Re;eo();var Ne=at(Ke),Te=He[0]===dt[0];if(Ne&&He[0]==="t"&&(tt>q.bottom||g.current.bt)){var We=xe;Te?We-=U-Q:We=Ee.y-Fe.y-fe,Kn(oe,We)>=ve?(g.current.bt=!0,xe=We,re.points=[rl(He,0),rl(dt,0)]):g.current.bt=!1}if(Ne&&He[0]==="b"&&($t=ve?(g.current.tb=!0,xe=qe,re.points=[rl(He,0),rl(dt,0)]):g.current.tb=!1}var ht=at(Ae),en=He[1]===dt[1];if(ht&&He[1]==="l"&&(Re>q.right||g.current.rl)){var tn=oe;en?tn-=X-Y:tn=Ee.x-Fe.x-ie,Kn(tn,xe)>=ve?(g.current.rl=!0,oe=tn,re.points=[rl(He,1),rl(dt,1)]):g.current.rl=!1}if(ht&&He[1]==="r"&&(lt=ve?(g.current.lr=!0,oe=Rn,re.points=[rl(He,1),rl(dt,1)]):g.current.lr=!1}eo();var Rt=Ue===!0?0:Ue;typeof Rt=="number"&&(ltq.right&&(oe-=Re-q.right,_.x>q.right-Rt&&(oe+=_.x-q.right+Rt)));var zt=ze===!0?0:ze;typeof zt=="number"&&($tq.bottom&&(xe-=tt-q.bottom,_.y>q.bottom-zt&&(xe+=_.y-q.bottom+zt)));var _n=T.x+oe,Bn=_n+X,Or=T.y+xe,gr=Or+U,Ln=_.x,Fr=Ln+Y,ho=_.y,Dn=ho+Q,vr=Math.max(_n,Ln),mi=Math.min(Bn,Fr),go=(vr+mi)/2,Un=go-_n,Zr=Math.max(Or,ho),Jr=Math.min(gr,Dn),hi=(Zr+Jr)/2,Br=hi-Or;a==null||a(t,re),f({ready:!0,offsetX:oe/ne,offsetY:xe/le,arrowX:Un/ne,arrowY:Br/le,scaleX:ne,scaleY:le,align:re})}}),S=function(){m.current+=1;var E=m.current;Promise.resolve().then(function(){m.current===E&&C()})},y=function(){f(function(E){return j(j({},E),{},{ready:!1})})};return an(y,[r]),an(function(){e||y()},[e]),[d.ready,d.offsetX,d.offsetY,d.arrowX,d.arrowY,d.scaleX,d.scaleY,d.align,S]}function ree(e,t,n,r){an(function(){if(e&&t&&n){let m=function(){r()};var f=m,o=t,i=n,a=TC(o),l=TC(i),s=Zf(i),d=new Set([s].concat(Pe(a),Pe(l)));return d.forEach(function(h){h.addEventListener("scroll",m,{passive:!0})}),s.addEventListener("resize",m,{passive:!0}),r(),function(){d.forEach(function(h){h.removeEventListener("scroll",m),s.removeEventListener("resize",m)})}}},[e,t,n])}function oee(e){var t=e.prefixCls,n=e.align,r=e.arrowX,o=r===void 0?0:r,i=e.arrowY,a=i===void 0?0:i,l=c.useRef();if(!n||!n.points)return null;var s={position:"absolute"};if(n.autoArrow!==!1){var d=n.points[0],f=n.points[1],m=d[0],h=d[1],g=f[0],v=f[1];m===g||!["t","b"].includes(m)?s.top=a:m==="t"?s.top=0:s.bottom=0,h===v||!["l","r"].includes(h)?s.left=o:h==="l"?s.left=0:s.right=0}return c.createElement("div",{ref:l,className:"".concat(t,"-arrow"),style:s})}function iee(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?React.createElement(fi,je({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var l=a.className;return React.createElement("div",{style:{zIndex:r},className:te("".concat(t,"-mask"),l)})}):null}var aee=c.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),lee=c.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,l=e.onVisibleChanged,s=e.open,d=e.keepDom,f=e.onClick,m=e.mask,h=e.arrow,g=e.align,v=e.arrowX,C=e.arrowY,S=e.motion,y=e.maskMotion,x=e.forceRender,E=e.getPopupContainer,O=e.autoDestroy,w=e.portal,$=e.zIndex,R=e.onMouseEnter,_=e.onMouseLeave,M=e.ready,T=e.offsetX,D=e.offsetY,N=e.onAlign,P=e.onPrepare,L=e.stretch,k=e.targetWidth,F=e.targetHeight,V=typeof n=="function"?n():n,H=s||d,W=(E==null?void 0:E.length)>0,G=c.useState(!E||!W),U=ue(G,2),X=U[0],Q=U[1];if(an(function(){!X&&W&&a&&Q(!0)},[X,W,a]),!X)return null;var Y=M||!s?{left:T,top:D}:{left:"-1000vw",top:"-1000vh"},q={};return L&&(L.includes("height")&&F?q.height=F:L.includes("minHeight")&&F&&(q.minHeight=F),L.includes("width")&&k?q.width=k:L.includes("minWidth")&&k&&(q.minWidth=k)),s||(q.pointerEvents="none"),c.createElement(w,{open:x||H,getContainer:E&&function(){return E(a)},autoDestroy:O},c.createElement(iee,{prefixCls:o,open:s,zIndex:$,mask:m,motion:y}),c.createElement(Fi,{onResize:N,disabled:!s},function(ne){return c.createElement(fi,je({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:x,leavedClassName:"".concat(o,"-hidden")},S,{onAppearPrepare:P,onEnterPrepare:P,visible:s,onVisibleChanged:function(we){var Oe;S==null||(Oe=S.onVisibleChanged)===null||Oe===void 0||Oe.call(S,we),l(we)}}),function(le,we){var Oe=le.className,Ce=le.style,ce=te(o,Oe,r);return c.createElement("div",{ref:zo(ne,t,we),className:ce,style:j(j(j(j({},Y),q),Ce),{},{boxSizing:"border-box",zIndex:$},i),onMouseEnter:R,onMouseLeave:_,onClick:f},h&&c.createElement(oee,{prefixCls:o,align:g,arrowX:v,arrowY:C}),c.createElement(aee,{cache:!s},V))})}))}),see=c.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Hl(n),i=c.useCallback(function(l){bf(t,r?r(l):l)},[r]),a=dv(i,n.ref);return o?c.cloneElement(n,{ref:a}):n}),uee=["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 cee(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Wx,t=c.forwardRef(function(n,r){var o=n.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=n.children,l=n.action,s=l===void 0?"hover":l,d=n.showAction,f=n.hideAction,m=n.popupVisible,h=n.defaultPopupVisible,g=n.onPopupVisibleChange,v=n.afterPopupVisibleChange,C=n.mouseEnterDelay,S=n.mouseLeaveDelay,y=S===void 0?.1:S,x=n.focusDelay,E=n.blurDelay,O=n.mask,w=n.maskClosable,$=w===void 0?!0:w,R=n.getPopupContainer,_=n.forceRender,M=n.autoDestroy,T=n.destroyPopupOnHide,D=n.popup,N=n.popupClassName,P=n.popupStyle,L=n.popupPlacement,k=n.builtinPlacements,F=k===void 0?{}:k,V=n.popupAlign,H=n.zIndex,W=n.stretch,G=n.getPopupClassNameFromAlign,U=n.alignPoint,X=n.onPopupClick,Q=n.onPopupAlign,Y=n.arrow,q=n.popupMotion,ne=n.maskMotion,le=n.popupTransitionName,we=n.popupAnimation,Oe=n.maskTransitionName,Ce=n.maskAnimation,ce=n.className,he=n.getTriggerDOMNode,ie=vt(n,uee),pe=M||T||!1,fe=c.useState(!1),Ie=ue(fe,2),Se=Ie[0],de=Ie[1];an(function(){de(xv())},[]);var _e=c.useRef({}),be=c.useContext(n_),Xe=c.useMemo(function(){return{registerSubPopup:function(It,Jt){_e.current[It]=Jt,be==null||be.registerSubPopup(It,Jt)}}},[be]),Qe=OL(),ft=c.useState(null),ct=ue(ft,2),ut=ct[0],dt=ct[1],He=so(function(gt){zh(gt)&&ut!==gt&&dt(gt),be==null||be.registerSubPopup(Qe,gt)}),Je=c.useState(null),ee=ue(Je,2),re=ee[0],oe=ee[1],xe=so(function(gt){zh(gt)&&re!==gt&&oe(gt)}),ve=c.Children.only(a),Ee=(ve==null?void 0:ve.props)||{},ke={},Ye=so(function(gt){var It,Jt,fn=re;return(fn==null?void 0:fn.contains(gt))||(fn==null||(It=fn.getRootNode())===null||It===void 0?void 0:It.host)===gt||gt===fn||(ut==null?void 0:ut.contains(gt))||(ut==null||(Jt=ut.getRootNode())===null||Jt===void 0?void 0:Jt.host)===gt||gt===ut||Object.values(_e.current).some(function(hn){return(hn==null?void 0:hn.contains(gt))||gt===hn})}),Fe=o_(i,q,we,le),ot=o_(i,ne,Ce,Oe),Ae=c.useState(h||!1),Ke=ue(Ae,2),Ue=Ke[0],ze=Ke[1],at=m??Ue,$t=so(function(gt){m===void 0&&ze(gt)});an(function(){ze(m||!1)},[m]);var tt=c.useRef(at);tt.current=at;var lt=so(function(gt){at!==gt&&($t(gt),g==null||g(gt))}),Re=c.useRef(),Ne=function(){clearTimeout(Re.current)},Te=function(It){var Jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ne(),Jt===0?lt(It):Re.current=setTimeout(function(){lt(It)},Jt*1e3)};c.useEffect(function(){return Ne},[]);var We=c.useState(!1),qe=ue(We,2),ht=qe[0],en=qe[1],tn=c.useRef(!0);an(function(){(!tn.current||at)&&en(!0),tn.current=!0},[at]);var Rn=c.useState(null),Rt=ue(Rn,2),zt=Rt[0],_n=Rt[1],Bn=c.useState([0,0]),Or=ue(Bn,2),gr=Or[0],Ln=Or[1],Fr=function(It){Ln([It.clientX,It.clientY])},ho=nee(at,ut,U?gr:re,L,F,V,Q),Dn=ue(ho,9),vr=Dn[0],mi=Dn[1],go=Dn[2],Un=Dn[3],Zr=Dn[4],Jr=Dn[5],hi=Dn[6],Br=Dn[7],zr=Dn[8],Wn=so(function(){ht||zr()});ree(at,re,ut,Wn),an(function(){Wn()},[gr]),an(function(){at&&!(F!=null&&F[L])&&Wn()},[JSON.stringify(V)]);var Kn=c.useMemo(function(){var gt=eee(F,i,Br,U);return te(gt,G==null?void 0:G(Br))},[Br,G,F,i,U]);c.useImperativeHandle(r,function(){return{forceAlign:Wn}});var eo=function(It){en(!1),zr(),v==null||v(It)},to=function(){return new Promise(function(It){_n(function(){return It})})};an(function(){zt&&(zr(),zt(),_n(null))},[zt]);var lr=c.useState(0),Hr=ue(lr,2),vo=Hr[0],Ho=Hr[1],yo=c.useState(0),$r=ue(yo,2),Ir=$r[0],et=$r[1],Ge=function(It,Jt){if(Wn(),W){var fn=Jt.getBoundingClientRect();Ho(fn.width),et(fn.height)}},St=ZJ(Se,s,d,f),rt=ue(St,2),nt=rt[0],Nt=rt[1],Gt=function(It,Jt,fn,hn){ke[It]=function(Ws){var ca;hn==null||hn(Ws),Te(Jt,fn);for(var Lc=arguments.length,cp=new Array(Lc>1?Lc-1:0),Ks=1;Ks1?Jt-1:0),hn=1;hn1?Jt-1:0),hn=1;hn1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=eD(n,!1),a=i.label,l=i.value,s=i.options;function d(f,m){f.forEach(function(h){var g=h[a];if(m||!(s in h)){var v=h[l];o.push({key:a_(h,o.length),groupOption:m,data:h,label:g,value:v})}else{var C=g;C===void 0&&r&&(C=h.label),o.push({key:a_(h,o.length),group:!0,data:h,label:C}),d(h[s],!0)}})}return d(e,!1),o}function PC(e){var t=j({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return En(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function hee(e,t){if(!t||!t.length)return null;var n=!1;function r(i,a){var l=DA(a),s=l[0],d=l.slice(1);if(!s)return[i];var f=i.split(s);return n=n||f.length>1,f.reduce(function(m,h){return[].concat(Pe(m),Pe(r(h,d)))},[]).filter(function(m){return m})}var o=r(e,t);return n?o:null}var gee=["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","showArrow","inputIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],vee=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function NC(e){return e==="tags"||e==="multiple"}var yee=c.forwardRef(function(e,t){var n,r,o=e.id,i=e.prefixCls,a=e.className,l=e.showSearch,s=e.tagRender,d=e.direction,f=e.omitDomProps,m=e.displayValues,h=e.onDisplayValuesChange,g=e.emptyOptions,v=e.notFoundContent,C=v===void 0?"Not Found":v,S=e.onClear,y=e.mode,x=e.disabled,E=e.loading,O=e.getInputElement,w=e.getRawInputElement,$=e.open,R=e.defaultOpen,_=e.onDropdownVisibleChange,M=e.activeValue,T=e.onActiveValueChange,D=e.activeDescendantId,N=e.searchValue,P=e.autoClearSearchValue,L=e.onSearch,k=e.onSearchSplit,F=e.tokenSeparators,V=e.allowClear,H=e.showArrow,W=e.inputIcon,G=e.clearIcon,U=e.OptionList,X=e.animation,Q=e.transitionName,Y=e.dropdownStyle,q=e.dropdownClassName,ne=e.dropdownMatchSelectWidth,le=e.dropdownRender,we=e.dropdownAlign,Oe=e.placement,Ce=e.builtinPlacements,ce=e.getPopupContainer,he=e.showAction,ie=he===void 0?[]:he,pe=e.onFocus,fe=e.onBlur,Ie=e.onKeyUp,Se=e.onKeyDown,de=e.onMouseDown,_e=vt(e,gee),be=NC(y),Xe=(l!==void 0?l:be)||y==="combobox",Qe=j({},_e);vee.forEach(function(et){delete Qe[et]}),f==null||f.forEach(function(et){delete Qe[et]});var ft=c.useState(!1),ct=ue(ft,2),ut=ct[0],dt=ct[1];c.useEffect(function(){dt(xv())},[]);var He=c.useRef(null),Je=c.useRef(null),ee=c.useRef(null),re=c.useRef(null),oe=c.useRef(null),xe=_J(),ve=ue(xe,3),Ee=ve[0],ke=ve[1],Ye=ve[2];c.useImperativeHandle(t,function(){var et,Ge;return{focus:(et=re.current)===null||et===void 0?void 0:et.focus,blur:(Ge=re.current)===null||Ge===void 0?void 0:Ge.blur,scrollTo:function(rt){var nt;return(nt=oe.current)===null||nt===void 0?void 0:nt.scrollTo(rt)}}});var Fe=c.useMemo(function(){var et;if(y!=="combobox")return N;var Ge=(et=m[0])===null||et===void 0?void 0:et.value;return typeof Ge=="string"||typeof Ge=="number"?String(Ge):""},[N,y,m]),ot=y==="combobox"&&typeof O=="function"&&O()||null,Ae=typeof w=="function"&&w(),Ke=dv(Je,Ae==null||(n=Ae.props)===null||n===void 0?void 0:n.ref),Ue=c.useState(!1),ze=ue(Ue,2),at=ze[0],$t=ze[1];an(function(){$t(!0)},[]);var tt=Lr(!1,{defaultValue:R,value:$}),lt=ue(tt,2),Re=lt[0],Ne=lt[1],Te=at?Re:!1,We=!C&&g;(x||We&&Te&&y==="combobox")&&(Te=!1);var qe=We?!1:Te,ht=c.useCallback(function(et){var Ge=et!==void 0?et:!Te;x||(Ne(Ge),Te!==Ge&&(_==null||_(Ge)))},[x,Te,Ne,_]),en=c.useMemo(function(){return(F||[]).some(function(et){return[` +`,`\r +`].includes(et)})},[F]),tn=function(Ge,St,rt){var nt=!0,Nt=Ge;T==null||T(null);var Gt=rt?null:hee(Ge,F);return y!=="combobox"&&Gt&&(Nt="",k==null||k(Gt),ht(!1),nt=!1),L&&Fe!==Nt&&L(Nt,{source:St?"typing":"effect"}),nt},Rn=function(Ge){!Ge||!Ge.trim()||L(Ge,{source:"submit"})};c.useEffect(function(){!Te&&!be&&y!=="combobox"&&tn("",!1,!1)},[Te]),c.useEffect(function(){Re&&x&&Ne(!1),x&&ke(!1)},[x]);var Rt=WL(),zt=ue(Rt,2),_n=zt[0],Bn=zt[1],Or=function(Ge){var St=_n(),rt=Ge.which;if(rt===De.ENTER&&(y!=="combobox"&&Ge.preventDefault(),Te||ht(!0)),Bn(!!Fe),rt===De.BACKSPACE&&!St&&be&&!Fe&&m.length){for(var nt=Pe(m),Nt=null,Gt=nt.length-1;Gt>=0;Gt-=1){var Tn=nt[Gt];if(!Tn.disabled){nt.splice(Gt,1),Nt=Tn;break}}Nt&&h(nt,{type:"remove",values:[Nt]})}for(var sr=arguments.length,jr=new Array(sr>1?sr-1:0),ur=1;ur1?St-1:0),nt=1;nt1?Gt-1:0),sr=1;sr1&&arguments[1]!==void 0?arguments[1]:!1;return li(e).map(function(n,r){if(!c.isValidElement(n)||!n.type)return null;var o=n,i=o.type.isSelectOptGroup,a=o.key,l=o.props,s=l.children,d=vt(l,Oee);return t||!i?$ee(n):j(j({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},d),{},{options:tD(s)})}).filter(function(n){return n})}function Iee(e,t,n,r,o){return c.useMemo(function(){var i=e,a=!e;a&&(i=tD(t));var l=new Map,s=new Map,d=function(h,g,v){v&&typeof v=="string"&&h.set(g[v],g)};function f(m){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g=0;gs},r}return Zn(n,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(o){o.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var o=this.state,i=o.dragging,a=o.visible,l=this.props.prefixCls,s=this.getSpinHeight(),d=this.getTop(),f=this.showScroll(),m=f&&a;return c.createElement("div",{ref:this.scrollbarRef,className:te("".concat(l,"-scrollbar"),Z({},"".concat(l,"-scrollbar-show"),f)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:m?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},c.createElement("div",{ref:this.thumbRef,className:te("".concat(l,"-scrollbar-thumb"),Z({},"".concat(l,"-scrollbar-thumb-moving"),i)),style:{width:"100%",height:s,top:d,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),n}(c.Component);function Tee(e){var t=e.children,n=e.setRef,r=c.useCallback(function(o){n(o)},[]);return c.cloneElement(t,{ref:r})}function Pee(e,t,n,r,o,i){var a=i.getKey;return e.slice(t,n+1).map(function(l,s){var d=t+s,f=o(l,d,{}),m=a(l);return c.createElement(Tee,{key:m,setRef:function(g){return r(l,g)}},f)})}var Nee=function(){function e(){Qn(this,e),this.maps=void 0,this.maps=Object.create(null)}return Zn(e,[{key:"set",value:function(n,r){this.maps[n]=r}},{key:"get",value:function(n){return this.maps[n]}}]),e}();function Mee(e,t,n){var r=c.useState(0),o=ue(r,2),i=o[0],a=o[1],l=c.useRef(new Map),s=c.useRef(new Nee),d=c.useRef();function f(){Zt.cancel(d.current)}function m(){f(),d.current=Zt(function(){l.current.forEach(function(g,v){if(g&&g.offsetParent){var C=Sf(g),S=C.offsetHeight;s.current.get(v)!==S&&s.current.set(v,C.offsetHeight)}}),a(function(g){return g+1})})}function h(g,v){var C=e(g),S=l.current.get(C);v?(l.current.set(C,v),m()):l.current.delete(C),!S!=!v&&(v?t==null||t(g):n==null||n(g))}return c.useEffect(function(){return f},[]),[h,m,s.current,i]}function Aee(e,t,n,r,o,i,a,l){var s=c.useRef();return function(d){if(d==null){l();return}if(Zt.cancel(s.current),typeof d=="number")a(d);else if(d&&Ot(d)==="object"){var f,m=d.align;"index"in d?f=d.index:f=t.findIndex(function(C){return o(C)===d.key});var h=d.offset,g=h===void 0?0:h,v=function C(S,y){if(!(S<0||!e.current)){var x=e.current.clientHeight,E=!1,O=y;if(x){for(var w=y||m,$=0,R=0,_=0,M=Math.min(t.length,f),T=0;T<=M;T+=1){var D=o(t[T]);R=$;var N=n.get(D);_=R+(N===void 0?r:N),$=_,T===f&&N===void 0&&(E=!0)}var P=null;switch(w){case"top":P=R-g;break;case"bottom":P=_-x+g;break;default:{var L=e.current.scrollTop,k=L+x;Rk&&(O="bottom")}}P!==null&&P!==e.current.scrollTop&&a(P)}s.current=Zt(function(){E&&i(),C(S-1,O)},2)}};v(3)}}}function Lee(e,t,n){var r=e.length,o=t.length,i,a;if(r===0&&o===0)return null;r"u"?"undefined":Ot(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const rD=function(e,t){var n=c.useRef(!1),r=c.useRef(null);function o(){clearTimeout(r.current),n.current=!0,r.current=setTimeout(function(){n.current=!1},50)}var i=c.useRef({top:e,bottom:t});return i.current.top=e,i.current.bottom=t,function(a){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=a<0&&i.current.top||a>0&&i.current.bottom;return l&&s?(clearTimeout(r.current),n.current=!1):(!s||n.current)&&o(),!n.current&&s}};function Fee(e,t,n,r){var o=c.useRef(0),i=c.useRef(null),a=c.useRef(null),l=c.useRef(!1),s=rD(t,n);function d(m){if(e){Zt.cancel(i.current);var h=m.deltaY;o.current+=h,a.current=h,!s(h)&&(kee||m.preventDefault(),i.current=Zt(function(){var g=l.current?10:1;r(o.current*g),o.current=0}))}}function f(m){e&&(l.current=m.detail===a.current)}return[d,f]}var Bee=14/15;function zee(e,t,n){var r=c.useRef(!1),o=c.useRef(0),i=c.useRef(null),a=c.useRef(null),l,s=function(h){if(r.current){var g=Math.ceil(h.touches[0].pageY),v=o.current-g;o.current=g,n(v)&&h.preventDefault(),clearInterval(a.current),a.current=setInterval(function(){v*=Bee,(!n(v,!0)||Math.abs(v)<=.1)&&clearInterval(a.current)},16)}},d=function(){r.current=!1,l()},f=function(h){l(),h.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(h.touches[0].pageY),i.current=h.target,i.current.addEventListener("touchmove",s),i.current.addEventListener("touchend",d))};l=function(){i.current&&(i.current.removeEventListener("touchmove",s),i.current.removeEventListener("touchend",d))},an(function(){return e&&t.current.addEventListener("touchstart",f),function(){var m;(m=t.current)===null||m===void 0||m.removeEventListener("touchstart",f),l(),clearInterval(a.current)}},[e])}var Hee=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange","innerProps"],jee=[],Vee={overflowY:"auto",overflowAnchor:"none"};function Uee(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,i=e.height,a=e.itemHeight,l=e.fullHeight,s=l===void 0?!0:l,d=e.style,f=e.data,m=e.children,h=e.itemKey,g=e.virtual,v=e.component,C=v===void 0?"div":v,S=e.onScroll,y=e.onVisibleChange,x=e.innerProps,E=vt(e,Hee),O=!!(g!==!1&&i&&a),w=O&&f&&a*f.length>i,$=c.useState(0),R=ue($,2),_=R[0],M=R[1],T=c.useState(!1),D=ue(T,2),N=D[0],P=D[1],L=te(r,o),k=f||jee,F=c.useRef(),V=c.useRef(),H=c.useRef(),W=c.useCallback(function(ve){return typeof h=="function"?h(ve):ve==null?void 0:ve[h]},[h]),G={getKey:W};function U(ve){M(function(Ee){var ke;typeof ve=="function"?ke=ve(Ee):ke=ve;var Ye=be(ke);return F.current.scrollTop=Ye,Ye})}var X=c.useRef({start:0,end:k.length}),Q=c.useRef(),Y=Dee(k,W),q=ue(Y,1),ne=q[0];Q.current=ne;var le=Mee(W,null,null),we=ue(le,4),Oe=we[0],Ce=we[1],ce=we[2],he=we[3],ie=c.useMemo(function(){if(!O)return{scrollHeight:void 0,start:0,end:k.length-1,offset:void 0};if(!w){var ve;return{scrollHeight:((ve=V.current)===null||ve===void 0?void 0:ve.offsetHeight)||0,start:0,end:k.length-1,offset:void 0}}for(var Ee=0,ke,Ye,Fe,ot=k.length,Ae=0;Ae=_&&ke===void 0&&(ke=Ae,Ye=Ee),at>_+i&&Fe===void 0&&(Fe=Ae),Ee=at}return ke===void 0&&(ke=0,Ye=0,Fe=Math.ceil(i/a)),Fe===void 0&&(Fe=k.length-1),Fe=Math.min(Fe+1,k.length),{scrollHeight:Ee,start:ke,end:Fe,offset:Ye}},[w,O,_,k,he,i]),pe=ie.scrollHeight,fe=ie.start,Ie=ie.end,Se=ie.offset;X.current.start=fe,X.current.end=Ie;var de=pe-i,_e=c.useRef(de);_e.current=de;function be(ve){var Ee=ve;return Number.isNaN(_e.current)||(Ee=Math.min(Ee,_e.current)),Ee=Math.max(Ee,0),Ee}var Xe=_<=0,Qe=_>=de,ft=rD(Xe,Qe);function ct(ve){var Ee=ve;U(Ee)}function ut(ve){var Ee=ve.currentTarget.scrollTop;Ee!==_&&U(Ee),S==null||S(ve)}var dt=Fee(O,Xe,Qe,function(ve){U(function(Ee){var ke=Ee+ve;return ke})}),He=ue(dt,2),Je=He[0],ee=He[1];zee(O,F,function(ve,Ee){return ft(ve,Ee)?!1:(Je({preventDefault:function(){},deltaY:ve}),!0)}),an(function(){function ve(Ee){O&&Ee.preventDefault()}return F.current.addEventListener("wheel",Je),F.current.addEventListener("DOMMouseScroll",ee),F.current.addEventListener("MozMousePixelScroll",ve),function(){F.current&&(F.current.removeEventListener("wheel",Je),F.current.removeEventListener("DOMMouseScroll",ee),F.current.removeEventListener("MozMousePixelScroll",ve))}},[O]);var re=Aee(F,k,ce,a,W,Ce,U,function(){var ve;(ve=H.current)===null||ve===void 0||ve.delayHidden()});c.useImperativeHandle(t,function(){return{scrollTo:re}}),an(function(){if(y){var ve=k.slice(fe,Ie+1);y(ve,k)}},[fe,Ie,k]);var oe=Pee(k,fe,Ie,Oe,m,G),xe=null;return i&&(xe=j(Z({},s?"height":"maxHeight",i),Vee),O&&(xe.overflowY="hidden",N&&(xe.pointerEvents="none"))),c.createElement("div",je({style:j(j({},d),{},{position:"relative"}),className:L},E),c.createElement(C,{className:"".concat(r,"-holder"),style:xe,ref:F,onScroll:ut},c.createElement(nD,{prefixCls:r,height:pe,offset:Se,onInnerResize:Ce,ref:V,innerProps:x},oe)),O&&c.createElement(_ee,{ref:H,prefixCls:r,scrollTop:_,height:i,scrollHeight:pe,count:k.length,onScroll:ct,onStartMove:function(){P(!0)},onStopMove:function(){P(!1)}}))}var Jx=c.forwardRef(Uee);Jx.displayName="List";var oD=c.createContext(null);function Wee(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Kee=["disabled","title","children","style","className"];function c_(e){return typeof e=="string"||typeof e=="number"}var Gee=function(t,n){var r=RJ(),o=r.prefixCls,i=r.id,a=r.open,l=r.multiple,s=r.mode,d=r.searchValue,f=r.toggleOpen,m=r.notFoundContent,h=r.onPopupScroll,g=c.useContext(oD),v=g.flattenOptions,C=g.onActiveValue,S=g.defaultActiveFirstOption,y=g.onSelect,x=g.menuItemSelectedIcon,E=g.rawValues,O=g.fieldNames,w=g.virtual,$=g.listHeight,R=g.listItemHeight,_="".concat(o,"-item"),M=Hs(function(){return v},[a,v],function(ne,le){return le[0]&&ne[1]!==le[1]}),T=c.useRef(null),D=function(le){le.preventDefault()},N=function(le){T.current&&T.current.scrollTo(typeof le=="number"?{index:le}:le)},P=function(le){for(var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Oe=M.length,Ce=0;Ce1&&arguments[1]!==void 0?arguments[1]:!1;V(le);var Oe={source:we?"keyboard":"mouse"},Ce=M[le];if(!Ce){C(null,-1,Oe);return}C(Ce.value,le,Oe)};c.useEffect(function(){H(S!==!1?P(0):-1)},[M.length,d]);var W=c.useCallback(function(ne){return E.has(ne)&&s!=="combobox"},[s,Pe(E).toString(),E.size]);c.useEffect(function(){var ne=setTimeout(function(){if(!l&&a&&E.size===1){var we=Array.from(E)[0],Oe=M.findIndex(function(Ce){var ce=Ce.data;return ce.value===we});Oe!==-1&&(H(Oe),N(Oe))}});if(a){var le;(le=T.current)===null||le===void 0||le.scrollTo(void 0)}return function(){return clearTimeout(ne)}},[a,d,v.length]);var G=function(le){le!==void 0&&y(le,{selected:!E.has(le)}),l||f(!1)};if(c.useImperativeHandle(n,function(){return{onKeyDown:function(le){var we=le.which,Oe=le.ctrlKey;switch(we){case De.N:case De.P:case De.UP:case De.DOWN:{var Ce=0;if(we===De.UP?Ce=-1:we===De.DOWN?Ce=1:Wee()&&Oe&&(we===De.N?Ce=1:we===De.P&&(Ce=-1)),Ce!==0){var ce=P(F+Ce,Ce);N(ce),H(ce,!0)}break}case De.ENTER:{var he=M[F];he&&!he.data.disabled?G(he.value):G(void 0),a&&le.preventDefault();break}case De.ESC:f(!1),a&&le.stopPropagation()}},onKeyUp:function(){},scrollTo:function(le){N(le)}}}),M.length===0)return c.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(_,"-empty"),onMouseDown:D},m);var U=Object.keys(O).map(function(ne){return O[ne]}),X=function(le){return le.label};function Q(ne,le){var we=ne.group;return{role:we?"presentation":"option",id:"".concat(i,"_list_").concat(le)}}var Y=function(le){var we=M[le];if(!we)return null;var Oe=we.data||{},Ce=Oe.value,ce=we.group,he=Ha(Oe,!0),ie=X(we);return we?c.createElement("div",je({"aria-label":typeof ie=="string"&&!ce?ie:null},he,{key:le},Q(we,le),{"aria-selected":W(Ce)}),Ce):null},q={role:"listbox",id:"".concat(i,"_list")};return c.createElement(c.Fragment,null,w&&c.createElement("div",je({},q,{style:{height:0,width:0,overflow:"hidden"}}),Y(F-1),Y(F),Y(F+1)),c.createElement(Jx,{itemKey:"key",ref:T,data:M,height:$,itemHeight:R,fullHeight:!1,onMouseDown:D,onScroll:h,virtual:w,innerProps:w?null:q},function(ne,le){var we,Oe=ne.group,Ce=ne.groupOption,ce=ne.data,he=ne.label,ie=ne.value,pe=ce.key;if(Oe){var fe,Ie=(fe=ce.title)!==null&&fe!==void 0?fe:c_(he)?he.toString():void 0;return c.createElement("div",{className:te(_,"".concat(_,"-group")),title:Ie},he!==void 0?he:pe)}var Se=ce.disabled,de=ce.title;ce.children;var _e=ce.style,be=ce.className,Xe=vt(ce,Kee),Qe=kr(Xe,U),ft=W(ie),ct="".concat(_,"-option"),ut=te(_,ct,be,(we={},Z(we,"".concat(ct,"-grouped"),Ce),Z(we,"".concat(ct,"-active"),F===le&&!Se),Z(we,"".concat(ct,"-disabled"),Se),Z(we,"".concat(ct,"-selected"),ft),we)),dt=X(ne),He=!x||typeof x=="function"||ft,Je=typeof dt=="number"?dt:dt||ie,ee=c_(Je)?Je.toString():void 0;return de!==void 0&&(ee=de),c.createElement("div",je({},Ha(Qe),w?{}:Q(ne,le),{"aria-selected":ft,className:ut,title:ee,onMouseMove:function(){F===le||Se||H(le)},onClick:function(){Se||G(ie)},style:_e}),c.createElement("div",{className:"".concat(ct,"-content")},Je),c.isValidElement(x)||ft,He&&c.createElement(Jh,{className:"".concat(_,"-option-state"),customizeIcon:x,customizeIconProps:{isSelected:ft}},ft?"✓":null))}))},iD=c.forwardRef(Gee);iD.displayName="OptionList";var Xee=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],Yee=["inputValue"];function qee(e){return!e||Ot(e)!=="object"}var Qee=c.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,i=o===void 0?"rc-select":o,a=e.backfill,l=e.fieldNames,s=e.inputValue,d=e.searchValue,f=e.onSearch,m=e.autoClearSearchValue,h=m===void 0?!0:m,g=e.onSelect,v=e.onDeselect,C=e.dropdownMatchSelectWidth,S=C===void 0?!0:C,y=e.filterOption,x=e.filterSort,E=e.optionFilterProp,O=e.optionLabelProp,w=e.options,$=e.children,R=e.defaultActiveFirstOption,_=e.menuItemSelectedIcon,M=e.virtual,T=e.listHeight,D=T===void 0?200:T,N=e.listItemHeight,P=N===void 0?20:N,L=e.value,k=e.defaultValue,F=e.labelInValue,V=e.onChange,H=vt(e,Xee),W=Eee(n),G=NC(r),U=!!(!w&&$),X=c.useMemo(function(){return y===void 0&&r==="combobox"?!1:y},[y,r]),Q=c.useMemo(function(){return eD(l,U)},[JSON.stringify(l),U]),Y=Lr("",{value:d!==void 0?d:s,postState:function(Ne){return Ne||""}}),q=ue(Y,2),ne=q[0],le=q[1],we=Iee(w,$,Q,E,O),Oe=we.valueOptions,Ce=we.labelOptions,ce=we.options,he=c.useCallback(function(Re){var Ne=YL(Re);return Ne.map(function(Te){var We,qe,ht,en,tn;if(qee(Te))We=Te;else{var Rn;ht=Te.key,qe=Te.label,We=(Rn=Te.value)!==null&&Rn!==void 0?Rn:ht}var Rt=Oe.get(We);if(Rt){var zt;qe===void 0&&(qe=Rt==null?void 0:Rt[O||Q.label]),ht===void 0&&(ht=(zt=Rt==null?void 0:Rt.key)!==null&&zt!==void 0?zt:We),en=Rt==null?void 0:Rt.disabled,tn=Rt==null?void 0:Rt.title}return{label:qe,value:We,key:ht,disabled:en,title:tn}})},[Q,O,Oe]),ie=Lr(k,{value:L}),pe=ue(ie,2),fe=pe[0],Ie=pe[1],Se=c.useMemo(function(){var Re,Ne=he(fe);return r==="combobox"&&!((Re=Ne[0])!==null&&Re!==void 0&&Re.value)?[]:Ne},[fe,he,r]),de=bee(Se,Oe),_e=ue(de,2),be=_e[0],Xe=_e[1],Qe=c.useMemo(function(){if(!r&&be.length===1){var Re=be[0];if(Re.value===null&&(Re.label===null||Re.label===void 0))return[]}return be.map(function(Ne){var Te;return j(j({},Ne),{},{label:(Te=Ne.label)!==null&&Te!==void 0?Te:Ne.value})})},[r,be]),ft=c.useMemo(function(){return new Set(be.map(function(Re){return Re.value}))},[be]);c.useEffect(function(){if(r==="combobox"){var Re,Ne=(Re=be[0])===null||Re===void 0?void 0:Re.value;le(WJ(Ne)?String(Ne):"")}},[be]);var ct=s_(function(Re,Ne){var Te,We=Ne??Re;return Te={},Z(Te,Q.value,Re),Z(Te,Q.label,We),Te}),ut=c.useMemo(function(){if(r!=="tags")return ce;var Re=Pe(ce),Ne=function(We){return Oe.has(We)};return Pe(be).sort(function(Te,We){return Te.value2&&arguments[2]!==void 0?arguments[2]:{},We=Te.source,qe=We===void 0?"keyboard":We;ot(Ne),a&&r==="combobox"&&Re!==null&&qe==="keyboard"&&Ee(String(Re))},[a,r]),Ue=function(Ne,Te,We){var qe=function(){var gr,Ln=Xe(Ne);return[F?{label:Ln==null?void 0:Ln[Q.label],value:Ne,key:(gr=Ln==null?void 0:Ln.key)!==null&&gr!==void 0?gr:Ne}:Ne,PC(Ln)]};if(Te&&g){var ht=qe(),en=ue(ht,2),tn=en[0],Rn=en[1];g(tn,Rn)}else if(!Te&&v&&We!=="clear"){var Rt=qe(),zt=ue(Rt,2),_n=zt[0],Bn=zt[1];v(_n,Bn)}},ze=s_(function(Re,Ne){var Te,We=G?Ne.selected:!0;We?Te=G?[].concat(Pe(be),[Re]):[Re]:Te=be.filter(function(qe){return qe.value!==Re}),re(Te),Ue(Re,We),r==="combobox"?Ee(""):(!NC||h)&&(le(""),Ee(""))}),at=function(Ne,Te){re(Ne);var We=Te.type,qe=Te.values;(We==="remove"||We==="clear")&&qe.forEach(function(ht){Ue(ht.value,!1,We)})},$t=function(Ne,Te){if(le(Ne),Ee(null),Te.source==="submit"){var We=(Ne||"").trim();if(We){var qe=Array.from(new Set([].concat(Pe(ft),[We])));re(qe),Ue(We,!0),le("")}return}Te.source!=="blur"&&(r==="combobox"&&re(Ne),f==null||f(Ne))},tt=function(Ne){var Te=Ne;r!=="tags"&&(Te=Ne.map(function(qe){var ht=Ce.get(qe);return ht==null?void 0:ht.value}).filter(function(qe){return qe!==void 0}));var We=Array.from(new Set([].concat(Pe(ft),Pe(Te))));re(We),We.forEach(function(qe){Ue(qe,!0)})},lt=c.useMemo(function(){var Re=M!==!1&&S!==!1;return j(j({},we),{},{flattenOptions:ee,onActiveValue:Ke,defaultActiveFirstOption:Ae,onSelect:ze,menuItemSelectedIcon:_,rawValues:ft,fieldNames:Q,virtual:Re,listHeight:D,listItemHeight:P,childrenAsData:U})},[we,ee,Ke,Ae,ze,_,ft,Q,M,S,D,P,U]);return c.createElement(oD.Provider,{value:lt},c.createElement(yee,je({},H,{id:W,prefixCls:i,ref:t,omitDomProps:Yee,mode:r,displayValues:Qe,onDisplayValuesChange:at,searchValue:ne,onSearch:$t,autoClearSearchValue:h,onSearchSplit:tt,dropdownMatchSelectWidth:S,OptionList:iD,emptyOptions:!ee.length,activeValue:ve,activeDescendantId:"".concat(W,"_list_").concat(Fe)})))}),eE=Qee;eE.Option=Zx;eE.OptGroup=Qx;function aD(e,t,n){return function(o){const{prefixCls:i,style:a}=o,l=c.useRef(null),[s,d]=c.useState(0),[f,m]=c.useState(0),[h,g]=Lr(!1,{value:o.open}),{getPrefixCls:v}=c.useContext(yt),C=v(t||"select",i);return c.useEffect(()=>{if(g(!0),typeof ResizeObserver<"u"){const S=new ResizeObserver(x=>{const E=x[0].target;d(E.offsetHeight+8),m(E.offsetWidth)}),y=setInterval(()=>{var x;const E=n?`.${n(C)}`:`.${C}-dropdown`,O=(x=l.current)===null||x===void 0?void 0:x.querySelector(E);O&&(clearInterval(y),S.observe(O))},10);return()=>{clearInterval(y),S.disconnect()}}},[]),c.createElement(Wa,{theme:{token:{motionDurationFast:"0.01s",motionDurationMid:"0.01s",motionDurationSlow:"0.01s"}}},c.createElement("div",{ref:l,style:{paddingBottom:s,position:"relative",width:"fit-content",minWidth:f}},c.createElement(e,Object.assign({},o,{style:Object.assign(Object.assign({},a),{margin:0}),open:h,visible:h,getPopupContainer:()=>l.current}))))}}function Na(e,t,n){return te({[`${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 Ev=(e,t)=>t||e,Zee=()=>{const[,e]=Vs(),t=new yn(e.colorBgBase);let n={};return t.toHsl().l<.5&&(n={opacity:.65}),c.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("g",{transform:"translate(24 31.67)"},c.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),c.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"}),c.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)"}),c.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"}),c.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"})),c.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"}),c.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},c.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),c.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Jee=Zee,ete=()=>{const[,e]=Vs(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:i,shadowColor:a,contentColor:l}=c.useMemo(()=>({borderColor:new yn(t).onBackground(o).toHexShortString(),shadowColor:new yn(n).onBackground(o).toHexShortString(),contentColor:new yn(r).onBackground(o).toHexShortString()}),[t,n,r,o]);return c.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},c.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},c.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),c.createElement("g",{fillRule:"nonzero",stroke:i},c.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"}),c.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))},tte=ete,nte=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}}}}},rte=In("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,r=Kt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return[nte(r)]});var ote=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=lD,description:i,children:a,imageStyle:l}=e,s=ote(e,["className","rootClassName","prefixCls","image","description","children","imageStyle"]);const{getPrefixCls:d,direction:f}=c.useContext(yt),m=d("empty",r),[h,g]=rte(m),[v]=Kf("Empty"),C=typeof i<"u"?i:v==null?void 0:v.description,S=typeof C=="string"?C:"empty";let y=null;return typeof o=="string"?y=c.createElement("img",{alt:S,src:o}):y=o,h(c.createElement("div",Object.assign({className:te(g,m,{[`${m}-normal`]:o===sD,[`${m}-rtl`]:f==="rtl"},t,n)},s),c.createElement("div",{className:`${m}-image`,style:l},y),C&&c.createElement("div",{className:`${m}-description`},C),a&&c.createElement("div",{className:`${m}-footer`},a)))};tE.PRESENTED_IMAGE_DEFAULT=lD;tE.PRESENTED_IMAGE_SIMPLE=sD;const ss=tE,ite=e=>{const{componentName:t}=e,{getPrefixCls:n}=c.useContext(yt),r=n("empty");switch(t){case"Table":case"List":return ge.createElement(ss,{image:ss.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ge.createElement(ss,{image:ss.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return ge.createElement(ss,null)}},nE=ite,ate=e=>{const{controlPaddingHorizontal:t}=e;return{position:"relative",display:"block",minHeight:e.controlHeight,padding:`${(e.controlHeight-e.fontSize*e.lineHeight)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,boxSizing:"border-box"}},lte=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},mn(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,[` + &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-bottomLeft, + &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-bottomLeft + `]:{animationName:Kx},[` + &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft, + &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft + `]:{animationName:Xx},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:Gx},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:Yx},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},ate(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(Object.assign({flex:"auto"},Es),{"> *":Object.assign({},Es)}),"&-state":{flex:"none"},[`&-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"}})},Cc(e,"slide-up"),Cc(e,"slide-down"),Qh(e,"move-up"),Qh(e,"move-down")]},ste=lte,pu=2;function uD(e){let{controlHeightSM:t,controlHeight:n,lineWidth:r}=e;const o=(n-t)/2-r,i=Math.ceil(o/2);return[o,i]}function Jy(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,i=e.controlHeightSM,[a]=uD(e),l=t?`${n}-${t}`:"";return{[`${n}-multiple${l}`]:{fontSize:e.fontSize,[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${a-pu}px ${pu*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:`${pu}px 0`,lineHeight:`${i}px`,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:pu,marginBottom:pu,lineHeight:`${i-e.lineWidth*2}px`,background:e.colorFillSecondary,border:`${e.lineWidth}px solid ${e.colorSplit}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:pu*2,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.colorTextDisabled,borderColor:e.colorBorder,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},Gf()),{display:"inline-block",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,[` + &-input, + &-mirror + `]:{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}`}}}}function ute(e){const{componentCls:t}=e,n=Kt(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),[,r]=uD(e);return[Jy(e),Jy(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:r}}},Jy(Kt(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),"lg")]}function eb(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.controlHeight-e.lineWidth*2,a=Math.ceil(e.fontSize*1.25),l=t?`${n}-${t}`:"";return{[`${n}-single${l}`]:{fontSize:e.fontSize,[`${n}-selector`]:Object.assign(Object.assign({},mn(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 cte(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[eb(e),eb(Kt(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}}}},eb(Kt(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const dte=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"}}}},tb=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,l=n?{[`${r}-selector`]:{borderColor:o}}:{};return{[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${a}-pagination-size-changer)`]:Object.assign(Object.assign({},l),{[`${r}-focused& ${r}-selector`]:{borderColor:o,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${i}`,outline:0},[`&:hover ${r}-selector`]:{borderColor:o}})}}},fte=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"}}}},pte=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},mn(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:Object.assign(Object.assign({},dte(e)),fte(e)),[`${t}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal"},Es),{"> *":Object.assign({lineHeight:"inherit"},Es)}),[`${t}-selection-placeholder`]:Object.assign(Object.assign({},Es),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:Object.assign(Object.assign({},Gf()),{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.paddingXXS}}}},mte=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%"}}},pte(e),cte(e),ute(e),ste(e),{[`${t}-rtl`]:{direction:"rtl"}},tb(t,Kt(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),tb(`${t}-status-error`,Kt(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),tb(`${t}-status-warning`,Kt(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),Sv(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},hte=In("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=Kt(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return[mte(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),Im={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"visible"},gte={bottomLeft:Object.assign(Object.assign({},Im),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Im),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Im),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Im),{points:["br","tr"],offset:[0,-4]})};function vte(e){return e||gte}function yte(e){return e??!0}function bte(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:l,prefixCls:s,showArrow:d,feedbackIcon:f}=e;const m=n??c.createElement(Rc,null),h=S=>c.createElement(c.Fragment,null,d!==!1&&S,l&&f);let g=null;if(t!==void 0)g=h(t);else if(i)g=h(c.createElement(yf,{spin:!0}));else{const S=`${s}-suffix`;g=y=>{let{open:x,showSearch:E}=y;return h(x&&E?c.createElement(Rx,{className:S}):c.createElement(Ix,{className:S}))}}let v=null;r!==void 0?v=r:a?v=c.createElement(NM,null):v=null;let C=null;return o!==void 0?C=o:C=c.createElement(Vf,null),{clearIcon:m,suffixIcon:g,itemIcon:v,removeIcon:C}}var Ste=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:n,bordered:r=!0,className:o,rootClassName:i,getPopupContainer:a,popupClassName:l,dropdownClassName:s,listHeight:d=256,placement:f,listItemHeight:m=24,size:h,disabled:g,notFoundContent:v,status:C,showArrow:S,builtinPlacements:y}=e,x=Ste(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","showArrow","builtinPlacements"]);const{getPopupContainer:E,getPrefixCls:O,renderEmpty:w,direction:$,virtual:R,dropdownMatchSelectWidth:_,select:M}=c.useContext(yt),T=c.useContext(Bi),D=O("select",n),N=O(),{compactSize:P,compactItemClassnames:L}=Tc(D,$),[k,F]=hte(D),V=c.useMemo(()=>{const{mode:de}=x;if(de!=="combobox")return de===cD?"combobox":de},[x.mode]),H=V==="multiple"||V==="tags",W=yte(S),{status:G,hasFeedback:U,isFormItemInput:X,feedbackIcon:Q}=c.useContext(sa),Y=Ev(G,C);let q;v!==void 0?q=v:V==="combobox"?q=null:q=(w==null?void 0:w("Select"))||c.createElement(nE,{componentName:"Select"});const{suffixIcon:ne,itemIcon:le,removeIcon:we,clearIcon:Oe}=bte(Object.assign(Object.assign({},x),{multiple:H,hasFeedback:U,feedbackIcon:Q,showArrow:W,prefixCls:D})),Ce=kr(x,["suffixIcon","itemIcon"]),ce=te(l||s,{[`${D}-dropdown-${$}`]:$==="rtl"},i,F),he=P||h||T,ie=c.useContext(jl),pe=g??ie,fe=te({[`${D}-lg`]:he==="large",[`${D}-sm`]:he==="small",[`${D}-rtl`]:$==="rtl",[`${D}-borderless`]:!r,[`${D}-in-form-item`]:X},Na(D,Y,U),L,o,i,F),Ie=c.useMemo(()=>f!==void 0?f:$==="rtl"?"bottomRight":"bottomLeft",[f,$]),Se=vte(y);return k(c.createElement(eE,Object.assign({ref:t,virtual:R,dropdownMatchSelectWidth:_,showSearch:M==null?void 0:M.showSearch},Ce,{builtinPlacements:Se,transitionName:As(N,pZ(f),x.transitionName),listHeight:d,listItemHeight:m,mode:V,prefixCls:D,placement:Ie,direction:$,inputIcon:ne,menuItemSelectedIcon:le,removeIcon:we,clearIcon:Oe,notFoundContent:q,className:fe,getPopupContainer:a||E,dropdownClassName:ce,showArrow:U||W,disabled:pe})))},Pc=c.forwardRef(Cte),xte=aD(Pc);Pc.SECRET_COMBOBOX_MODE_DO_NOT_USE=cD;Pc.Option=Zx;Pc.OptGroup=Qx;Pc._InternalPanelDoNotUseOrYouWillBeFired=xte;const wv=Pc;function dD(){const[,e]=c.useReducer(t=>t+1,0);return e}const Ll=["xxl","xl","lg","md","sm","xs"],Ete=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)`}),wte=e=>{const t=e,n=[].concat(Ll).reverse();return n.forEach((r,o)=>{const i=r.toUpperCase(),a=`screen${i}Min`,l=`screen${i}`;if(!(t[a]<=t[l]))throw new Error(`${a}<=${l} fails : !(${t[a]}<=${t[l]})`);if(o{const n=new Map;let r=-1,o={};return{matchHandlers:{},dispatch(i){return o=i,n.forEach(a=>a(o)),n.size>=1},subscribe(i){return n.size||this.register(),r+=1,n.set(r,i),i(o),r},unsubscribe(i){n.delete(i),n.size||this.unregister()},unregister(){Object.keys(t).forEach(i=>{const a=t[i],l=this.matchHandlers[a];l==null||l.mql.removeListener(l==null?void 0:l.listener)}),n.clear()},register(){Object.keys(t).forEach(i=>{const a=t[i],l=d=>{let{matches:f}=d;this.dispatch(Object.assign(Object.assign({},o),{[i]:f}))},s=window.matchMedia(a);s.addListener(l),this.matchHandlers[a]={mql:s,listener:l},l(s)})},responsiveMap:t}},[e])}function Ov(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=c.useRef({}),n=dD(),r=fD();return c.useEffect(()=>{const o=r.subscribe(i=>{t.current=i,e&&n()});return()=>r.unsubscribe(o)},[]),t.current}const MC=c.createContext("default"),d_=e=>{let{children:t,size:n}=e;const r=c.useContext(MC);return c.createElement(MC.Provider,{value:n||r},t)},Ote=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:i,avatarSizeBase:a,avatarSizeLG:l,avatarSizeSM:s,avatarFontSizeBase:d,avatarFontSizeLG:f,avatarFontSizeSM:m,borderRadius:h,borderRadiusLG:g,borderRadiusSM:v,lineWidth:C,lineType:S}=e,y=(x,E,O)=>({width:x,height:x,lineHeight:`${x-C*2}px`,borderRadius:"50%",[`&${n}-square`]:{borderRadius:O},[`${n}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${n}-icon`]:{fontSize:E,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},mn(e)),{position:"relative",display:"inline-block",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${C}px ${S} transparent`,["&-image"]:{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),y(a,d,h)),{["&-lg"]:Object.assign({},y(l,f,g)),["&-sm"]:Object.assign({},y(s,m,v)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},$te=e=>{const{componentCls:t,avatarGroupBorderColor:n,avatarGroupSpace:r}=e;return{[`${t}-group`]:{display:"inline-flex",[`${t}`]:{borderColor:n},["> *:not(:first-child)"]:{marginInlineStart:r}}}},pD=In("Avatar",e=>{const{colorTextLightSolid:t,controlHeight:n,controlHeightLG:r,controlHeightSM:o,fontSize:i,fontSizeLG:a,fontSizeXL:l,fontSizeHeading3:s,marginXS:d,colorBorderBg:f,colorTextPlaceholder:m}=e,h=Kt(e,{avatarBg:m,avatarColor:t,avatarSizeBase:n,avatarSizeLG:r,avatarSizeSM:o,avatarFontSizeBase:Math.round((a+l)/2),avatarFontSizeLG:s,avatarFontSizeSM:i,avatarGroupSpace:-d,avatarGroupBorderColor:f});return[Ote(h),$te(h)]});var Ite=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=c.useContext(MC),[r,o]=c.useState(1),[i,a]=c.useState(!1),[l,s]=c.useState(!0),d=c.useRef(null),f=c.useRef(null),m=zo(t,d),{getPrefixCls:h}=c.useContext(yt),g=()=>{if(!f.current||!d.current)return;const Y=f.current.offsetWidth,q=d.current.offsetWidth;if(Y!==0&&q!==0){const{gap:ne=4}=e;ne*2{a(!0)},[]),c.useEffect(()=>{s(!0),o(1)},[e.src]),c.useEffect(()=>{g()},[e.gap]);const v=()=>{const{onError:Y}=e;(Y?Y():void 0)!==!1&&s(!1)},{prefixCls:C,shape:S="circle",size:y="default",src:x,srcSet:E,icon:O,className:w,rootClassName:$,alt:R,draggable:_,children:M,crossOrigin:T}=e,D=Ite(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),N=y==="default"?n:y,P=Object.keys(typeof N=="object"?N||{}:{}).some(Y=>["xs","sm","md","lg","xl","xxl"].includes(Y)),L=Ov(P),k=c.useMemo(()=>{if(typeof N!="object")return{};const Y=Ll.find(ne=>L[ne]),q=N[Y];return q?{width:q,height:q,lineHeight:`${q}px`,fontSize:O?q/2:18}:{}},[L,N]),F=h("avatar",C),[V,H]=pD(F),W=te({[`${F}-lg`]:N==="large",[`${F}-sm`]:N==="small"}),G=c.isValidElement(x),U=te(F,W,{[`${F}-${S}`]:!!S,[`${F}-image`]:G||x&&l,[`${F}-icon`]:!!O},w,$,H),X=typeof N=="number"?{width:N,height:N,lineHeight:`${N}px`,fontSize:O?N/2:18}:{};let Q;if(typeof x=="string"&&l)Q=c.createElement("img",{src:x,draggable:_,srcSet:E,onError:v,alt:R,crossOrigin:T});else if(G)Q=x;else if(O)Q=O;else if(i||r!==1){const Y=`scale(${r}) translateX(-50%)`,q={msTransform:Y,WebkitTransform:Y,transform:Y},ne=typeof N=="number"?{lineHeight:`${N}px`}:{};Q=c.createElement(Fi,{onResize:g},c.createElement("span",{className:`${F}-string`,ref:f,style:Object.assign(Object.assign({},ne),q)},M))}else Q=c.createElement("span",{className:`${F}-string`,style:{opacity:0},ref:f},M);return delete D.onError,delete D.gap,V(c.createElement("span",Object.assign({},D,{style:Object.assign(Object.assign(Object.assign({},X),k),D.style),className:U,ref:m}),Q))},_te=c.forwardRef(Rte),mD=_te;var mu={shiftX:64,adjustY:1},hu={adjustX:1,shiftY:!0},Qo=[0,0],Tte={left:{points:["cr","cl"],overflow:hu,offset:[-4,0],targetOffset:Qo},right:{points:["cl","cr"],overflow:hu,offset:[4,0],targetOffset:Qo},top:{points:["bc","tc"],overflow:mu,offset:[0,-4],targetOffset:Qo},bottom:{points:["tc","bc"],overflow:mu,offset:[0,4],targetOffset:Qo},topLeft:{points:["bl","tl"],overflow:mu,offset:[0,-4],targetOffset:Qo},leftTop:{points:["tr","tl"],overflow:hu,offset:[-4,0],targetOffset:Qo},topRight:{points:["br","tr"],overflow:mu,offset:[0,-4],targetOffset:Qo},rightTop:{points:["tl","tr"],overflow:hu,offset:[4,0],targetOffset:Qo},bottomRight:{points:["tr","br"],overflow:mu,offset:[0,4],targetOffset:Qo},rightBottom:{points:["bl","br"],overflow:hu,offset:[4,0],targetOffset:Qo},bottomLeft:{points:["tl","bl"],overflow:mu,offset:[0,4],targetOffset:Qo},leftBottom:{points:["br","bl"],overflow:hu,offset:[-4,0],targetOffset:Qo}};function rE(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return c.createElement("div",{className:te("".concat(n,"-content"),i),style:a},c.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var Pte=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],Nte=function(t,n){var r=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,l=a===void 0?0:a,s=t.mouseLeaveDelay,d=s===void 0?.1:s,f=t.overlayStyle,m=t.prefixCls,h=m===void 0?"rc-tooltip":m,g=t.children,v=t.onVisibleChange,C=t.afterVisibleChange,S=t.transitionName,y=t.animation,x=t.motion,E=t.placement,O=E===void 0?"right":E,w=t.align,$=w===void 0?{}:w,R=t.destroyTooltipOnHide,_=R===void 0?!1:R,M=t.defaultVisible,T=t.getTooltipContainer,D=t.overlayInnerStyle;t.arrowContent;var N=t.overlay,P=t.id,L=t.showArrow,k=L===void 0?!0:L,F=vt(t,Pte),V=c.useRef(null);c.useImperativeHandle(n,function(){return V.current});var H=j({},F);"visible"in t&&(H.popupVisible=t.visible);var W=function(){return c.createElement(rE,{key:"content",prefixCls:h,id:P,overlayInnerStyle:D},N)};return c.createElement(ZL,je({popupClassName:r,prefixCls:h,popup:W,action:i,builtinPlacements:Tte,popupPlacement:O,ref:V,popupAlign:$,getPopupContainer:T,onPopupVisibleChange:v,afterPopupVisibleChange:C,popupTransitionName:S,popupAnimation:y,popupMotion:x,defaultPopupVisible:M,autoDestroy:_,mouseLeaveDelay:d,popupStyle:f,mouseEnterDelay:l,arrow:k},H),g)};const Mte=c.forwardRef(Nte),hD=8;function oE(e){const t=hD,{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return{dropdownArrowOffset:o,dropdownArrowOffsetVertical:r?t:o}}function Rm(e,t){return e?t:{}}function iE(e,t){const{componentCls:n,sizePopupArrow:r,borderRadiusXS:o,borderRadiusOuter:i,boxShadowPopoverArrow:a}=e,{colorBg:l,contentRadius:s=e.borderRadiusLG,limitVerticalRadius:d,arrowDistance:f=0,arrowPlacement:m={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:h,dropdownArrowOffset:g}=oE({contentRadius:s,limitVerticalRadius:d});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},eq(r,o,i,l,a)),{"&:before":{background:l}})]},Rm(!!m.top,{[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:f,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}}})),Rm(!!m.bottom,{[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:f,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}}})),Rm(!!m.left,{[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:f},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:h},[`&-placement-leftBottom ${n}-arrow`]:{bottom:h}})),Rm(!!m.right,{[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:f},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:h},[`&-placement-rightBottom ${n}-arrow`]:{bottom:h}}))}}function Ate(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 f_={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"]}},Lte={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"]}},Dte=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function gD(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i}=e,a=t/2,l={};return Object.keys(f_).forEach(s=>{const d=r&&Lte[s]||f_[s],f=Object.assign(Object.assign({},d),{offset:[0,0]});switch(l[s]=f,Dte.has(s)&&(f.autoArrow=!1),s){case"top":case"topLeft":case"topRight":f.offset[1]=-a-o;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=a+o;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-a-o;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=a+o;break}const m=oE({contentRadius:i,limitVerticalRadius:!0});if(r)switch(s){case"topLeft":case"bottomLeft":f.offset[0]=-m.dropdownArrowOffset-a;break;case"topRight":case"bottomRight":f.offset[0]=m.dropdownArrowOffset+a;break;case"leftTop":case"rightTop":f.offset[1]=-m.dropdownArrowOffset-a;break;case"leftBottom":case"rightBottom":f.offset[1]=m.dropdownArrowOffset+a;break}f.overflow=Ate(s,m,t,n)}),l}const ol=(e,t)=>new yn(e).setAlpha(t).toRgbString(),gu=(e,t)=>new yn(e).lighten(t).toHexString(),kte=e=>{const t=ka(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]}},Fte=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:ol(r,.85),colorTextSecondary:ol(r,.65),colorTextTertiary:ol(r,.45),colorTextQuaternary:ol(r,.25),colorFill:ol(r,.18),colorFillSecondary:ol(r,.12),colorFillTertiary:ol(r,.08),colorFillQuaternary:ol(r,.04),colorBgElevated:gu(n,12),colorBgContainer:gu(n,8),colorBgLayout:gu(n,0),colorBgSpotlight:gu(n,26),colorBorder:gu(n,26),colorBorderSecondary:gu(n,19)}},Bte=(e,t)=>{const n=Object.keys(Lx).map(o=>{const i=ka(e[o],{theme:"dark"});return new Array(10).fill(1).reduce((a,l,s)=>(a[`${o}-${s+1}`]=i[s],a[`${o}${s+1}`]=i[s],a),{})}).reduce((o,i)=>(o=Object.assign(Object.assign({},o),i),o),{}),r=t??vv(e);return Object.assign(Object.assign(Object.assign({},r),n),XA(e,{generateColorPalettes:kte,generateNeutralColorPalettes:Fte}))},zte=Bte;function Hte(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 jte=(e,t)=>{const n=t??vv(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),Hte(t??e)),YA(r)),{controlHeight:o}),GA(Object.assign(Object.assign({},n),{controlHeight:o})))},Vte=jte;function Ute(){const[e,t,n]=Vs();return{theme:e,token:t,hashId:n}}const vD={defaultConfig:Wh,defaultSeed:Wh.token,useToken:Ute,defaultAlgorithm:vv,darkAlgorithm:zte,compactAlgorithm:Vte},Wte=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:s,paddingSM:d,paddingXS:f,tooltipRadiusOuter:m}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},mn(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:l,minHeight:l,padding:`${d/2}px ${f}px`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:s},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(i,hD)}},[`${t}-content`]:{position:"relative"}}),iq(e,(h,g)=>{let{darkColor:v}=g;return{[`&${t}-${h}`]:{[`${t}-inner`]:{backgroundColor:v},[`${t}-arrow`]:{"--antd-arrow-background-color":v}}}})),{"&-rtl":{direction:"rtl"}})},iE(Kt(e,{borderRadiusOuter:m}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:i,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},yD=(e,t)=>In("Tooltip",r=>{if(t===!1)return[];const{borderRadius:o,colorTextLightSolid:i,colorBgDefault:a,borderRadiusOuter:l}=r,s=Kt(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a,tooltipRadiusOuter:l>4?4:l});return[Wte(s),qf(r,"zoom-big-fast")]},r=>{let{zIndexPopupBase:o,colorBgSpotlight:i}=r;return{zIndexPopup:o+70,colorBgDefault:i}})(e),Kte=wf.map(e=>`${e}-inverse`);function Gte(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Pe(Kte),Pe(wf)).includes(e):wf.includes(e)}function bD(e,t){const n=Gte(t),r=te({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}function Xte(e){const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:l}=c.useContext(yt),s=l("tooltip",t),[d,f]=yD(s,!0),m=bD(s,i),h=Object.assign(Object.assign({},a),m.overlayStyle),g=m.arrowStyle;return d(c.createElement("div",{className:te(f,s,`${s}-pure`,`${s}-placement-${r}`,n,m.className),style:g},c.createElement("div",{className:`${s}-arrow`}),c.createElement(rE,Object.assign({},e,{className:f,prefixCls:s,overlayInnerStyle:h}),o)))}var Yte=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 Zte(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}=Qte(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"}),l=mr(e,{style:a,className:null});return c.createElement("span",{style:i,className:te(e.props.className,`${t}-disabled-compatible-wrapper`)},l)}return e}const SD=c.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:l,color:s,overlayInnerStyle:d,children:f,afterOpenChange:m,afterVisibleChange:h,destroyTooltipOnHide:g,arrow:v=!0,title:C,overlay:S,builtinPlacements:y,arrowPointAtCenter:x=!1,autoAdjustOverflow:E=!0}=e,O=!!v,{token:w}=qte(),{getPopupContainer:$,getPrefixCls:R,direction:_}=c.useContext(yt),M=c.useRef(null),T=()=>{var de;(de=M.current)===null||de===void 0||de.forceAlign()};c.useImperativeHandle(t,()=>({forceAlign:T,forcePopupAlign:()=>{T()}}));const[D,N]=Lr(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),P=!C&&!S&&C!==0,L=de=>{var _e,be;N(P?!1:de),P||((_e=e.onOpenChange)===null||_e===void 0||_e.call(e,de),(be=e.onVisibleChange)===null||be===void 0||be.call(e,de))},k=c.useMemo(()=>{var de,_e;let be=x;return typeof v=="object"&&(be=(_e=(de=v.pointAtCenter)!==null&&de!==void 0?de:v.arrowPointAtCenter)!==null&&_e!==void 0?_e:x),y||gD({arrowPointAtCenter:be,autoAdjustOverflow:E,arrowWidth:O?w.sizePopupArrow:0,borderRadius:w.borderRadius,offset:w.marginXXS})},[x,v,y,w]),F=(de,_e)=>{const be=Object.keys(k).find(Xe=>{var Qe,ft;return k[Xe].points[0]===((Qe=_e.points)===null||Qe===void 0?void 0:Qe[0])&&k[Xe].points[1]===((ft=_e.points)===null||ft===void 0?void 0:ft[1])});if(be){const Xe=de.getBoundingClientRect(),Qe={top:"50%",left:"50%"};/top|Bottom/.test(be)?Qe.top=`${Xe.height-_e.offset[1]}px`:/Top|bottom/.test(be)&&(Qe.top=`${-_e.offset[1]}px`),/left|Right/.test(be)?Qe.left=`${Xe.width-_e.offset[0]}px`:/right|Left/.test(be)&&(Qe.left=`${-_e.offset[0]}px`),de.style.transformOrigin=`${Qe.left} ${Qe.top}`}},V=c.useMemo(()=>C===0?C:S||C||"",[S,C]),{getPopupContainer:H,placement:W="top",mouseEnterDelay:G=.1,mouseLeaveDelay:U=.1,overlayStyle:X,rootClassName:Q}=e,Y=Yte(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),q=R("tooltip",o),ne=R(),le=e["data-popover-inject"];let we=D;!("open"in e)&&!("visible"in e)&&P&&(we=!1);const Oe=Zte(Ai(f)&&!dL(f)?f:c.createElement("span",null,f),q),Ce=Oe.props,ce=!Ce.className||typeof Ce.className=="string"?te(Ce.className,{[i||`${q}-open`]:!0}):Ce.className,[he,ie]=yD(q,!le),pe=bD(q,s),fe=Object.assign(Object.assign({},d),pe.overlayStyle),Ie=pe.arrowStyle,Se=te(l,{[`${q}-rtl`]:_==="rtl"},pe.className,Q,ie);return he(c.createElement(Mte,Object.assign({},Y,{showArrow:O,placement:W,mouseEnterDelay:G,mouseLeaveDelay:U,prefixCls:q,overlayClassName:Se,overlayStyle:Object.assign(Object.assign({},Ie),X),getTooltipContainer:H||a||$,ref:M,builtinPlacements:k,overlay:V,visible:we,onVisibleChange:L,afterVisibleChange:m??h,onPopupAlign:F,overlayInnerStyle:fe,arrowContent:c.createElement("span",{className:`${q}-arrow-content`}),motion:{motionName:As(ne,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),we?mr(Oe,{className:ce}):Oe))});SD._InternalPanelDoNotUseOrYouWillBeFired=Xte;const Jf=SD,tg=e=>e?typeof e=="function"?e():e:null,Jte=e=>{const{componentCls:t,popoverBg:n,popoverColor:r,width:o,fontWeightStrong:i,popoverPadding:a,boxShadowSecondary:l,colorTextHeading:s,borderRadiusLG:d,zIndexPopup:f,marginXS:m,colorBgElevated:h}=e;return[{[t]:Object.assign(Object.assign({},mn(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:f,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--antd-arrow-background-color":h,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:n,backgroundClip:"padding-box",borderRadius:d,boxShadow:l,padding:a},[`${t}-title`]:{minWidth:o,marginBottom:m,color:s,fontWeight:i},[`${t}-inner-content`]:{color:r}})},iE(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},ene=e=>{const{componentCls:t}=e;return{[t]:wf.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},tne=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:o,paddingSM:i,controlHeight:a,fontSize:l,lineHeight:s,padding:d}=e,f=a-Math.round(l*s),m=f/2,h=f/2-n,g=d;return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${m}px ${g}px ${h}px`,borderBottom:`${n}px ${r} ${o}`},[`${t}-inner-content`]:{padding:`${i}px ${g}px`}}}},CD=In("Popover",e=>{const{colorBgElevated:t,colorText:n,wireframe:r}=e,o=Kt(e,{popoverBg:t,popoverColor:n,popoverPadding:12});return[Jte(o),ene(o),r&&tne(o),qf(o,"zoom-big")]},e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+30,width:177}});var nne=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&&!n))return c.createElement(c.Fragment,null,t&&c.createElement("div",{className:`${e}-title`},tg(t)),c.createElement("div",{className:`${e}-inner-content`},tg(n)))};function one(e){const{hashId:t,prefixCls:n,className:r,style:o,placement:i="top",title:a,content:l,children:s}=e;return c.createElement("div",{className:te(t,n,`${n}-pure`,`${n}-placement-${i}`,r),style:o},c.createElement("div",{className:`${n}-arrow`}),c.createElement(rE,Object.assign({},e,{className:t,prefixCls:n}),s||rne(n,a,l)))}function ine(e){const{prefixCls:t}=e,n=nne(e,["prefixCls"]),{getPrefixCls:r}=c.useContext(yt),o=r("popover",t),[i,a]=CD(o);return i(c.createElement(one,Object.assign({},n,{prefixCls:o,hashId:a})))}var ane=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{title:t,content:n,prefixCls:r}=e;return!t&&!n?null:c.createElement(c.Fragment,null,t&&c.createElement("div",{className:`${r}-title`},tg(t)),c.createElement("div",{className:`${r}-inner-content`},tg(n)))},xD=c.forwardRef((e,t)=>{const{prefixCls:n,title:r,content:o,overlayClassName:i,placement:a="top",trigger:l="hover",mouseEnterDelay:s=.1,mouseLeaveDelay:d=.1,overlayStyle:f={}}=e,m=ane(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:h}=c.useContext(yt),g=h("popover",n),[v,C]=CD(g),S=h(),y=te(i,C);return v(c.createElement(Jf,Object.assign({placement:a,trigger:l,mouseEnterDelay:s,mouseLeaveDelay:d,overlayStyle:f},m,{prefixCls:g,overlayClassName:y,ref:t,overlay:c.createElement(lne,{prefixCls:g,title:r,content:o}),transitionName:As(S,"zoom-big",m.transitionName),"data-popover-inject":!0})))});xD._InternalPanelDoNotUseOrYouWillBeFired=ine;const sne=xD,une=e=>{const{getPrefixCls:t,direction:n}=c.useContext(yt),{prefixCls:r,className:o,rootClassName:i,maxCount:a,maxStyle:l,size:s}=e,d=t("avatar",r),f=`${d}-group`,[m,h]=pD(d),g=te(f,{[`${f}-rtl`]:n==="rtl"},o,i,h),{children:v,maxPopoverPlacement:C="top",maxPopoverTrigger:S="hover"}=e,y=li(v).map((E,O)=>mr(E,{key:`avatar-key-${O}`})),x=y.length;if(a&&a=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function Bne(e,t,n,r){var o=Tt.clone(e),i={width:t.width,height:t.height};return r.adjustX&&o.left=n.left&&o.left+i.width>n.right&&(i.width-=o.left+i.width-n.right),r.adjustX&&o.left+i.width>n.right&&(o.left=Math.max(n.right-i.width,n.left)),r.adjustY&&o.top=n.top&&o.top+i.height>n.bottom&&(i.height-=o.top+i.height-n.bottom),r.adjustY&&o.top+i.height>n.bottom&&(o.top=Math.max(n.bottom-i.height,n.top)),Tt.mix(o,i)}function uE(e){var t,n,r;if(!Tt.isWindow(e)&&e.nodeType!==9)t=Tt.offset(e),n=Tt.outerWidth(e),r=Tt.outerHeight(e);else{var o=Tt.getWindow(e);t={left:Tt.getWindowScrollLeft(o),top:Tt.getWindowScrollTop(o)},n=Tt.viewportWidth(o),r=Tt.viewportHeight(o)}return t.width=n,t.height=r,t}function x_(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,i=e.height,a=e.left,l=e.top;return n==="c"?l+=i/2:n==="b"&&(l+=i),r==="c"?a+=o/2:r==="r"&&(a+=o),{left:a,top:l}}function Tm(e,t,n,r,o){var i=x_(t,n[1]),a=x_(e,n[0]),l=[a.left-i.left,a.top-i.top];return{left:Math.round(e.left-l[0]+r[0]-o[0]),top:Math.round(e.top-l[1]+r[1]-o[1])}}function E_(e,t,n){return e.leftn.right}function w_(e,t,n){return e.topn.bottom}function zne(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=n.right||r.top>=n.bottom}function cE(e,t,n){var r=n.target||t,o=uE(r),i=!jne(r,n.overflow&&n.overflow.alwaysByViewport);return ND(e,o,n,i)}cE.__getOffsetParent=kC;cE.__getVisibleRectForElement=sE;function Vne(e,t,n){var r,o,i=Tt.getDocument(e),a=i.defaultView||i.parentWindow,l=Tt.getWindowScrollLeft(a),s=Tt.getWindowScrollTop(a),d=Tt.viewportWidth(a),f=Tt.viewportHeight(a);"pageX"in t?r=t.pageX:r=l+t.clientX,"pageY"in t?o=t.pageY:o=s+t.clientY;var m={left:r,top:o,width:0,height:0},h=r>=0&&r<=l+d&&o>=0&&o<=s+f,g=[n.points[0],"cc"];return ND(e,m,m_(m_({},n),{},{points:g}),h)}const Une=function(e,t){var n=ge.useRef(!1),r=ge.useRef(null);function o(){window.clearTimeout(r.current)}function i(a){if(o(),!n.current||a===!0){if(e(a)===!1)return;n.current=!0,r.current=window.setTimeout(function(){n.current=!1},t)}else r.current=window.setTimeout(function(){n.current=!1,i()},t)}return[i,function(){n.current=!1,o()}]};function Wne(e,t){return e===t?!0:!e||!t?!1:"pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t?e.clientX===t.clientX&&e.clientY===t.clientY:!1}function Kne(e,t){e!==document.activeElement&&Cs(t,e)&&typeof e.focus=="function"&&e.focus()}function I_(e,t){var n=null,r=null;function o(a){var l=ue(a,1),s=l[0].target;if(document.documentElement.contains(s)){var d=s.getBoundingClientRect(),f=d.width,m=d.height,h=Math.floor(f),g=Math.floor(m);(n!==h||r!==g)&&Promise.resolve().then(function(){t({width:h,height:g})}),n=h,r=g}}var i=new CA(o);return e&&i.observe(e),function(){i.disconnect()}}function R_(e){return typeof e!="function"?null:e()}function __(e){return Ot(e)!=="object"||!e?null:e}var Gne=function(t,n){var r=t.children,o=t.disabled,i=t.target,a=t.align,l=t.onAlign,s=t.monitorWindowResize,d=t.monitorBufferTime,f=d===void 0?0:d,m=ge.useRef({}),h=ge.useRef(),g=ge.Children.only(r),v=ge.useRef({});v.current.disabled=o,v.current.target=i,v.current.align=a,v.current.onAlign=l;var C=Une(function(){var D=v.current,N=D.disabled,P=D.target,L=D.align,k=D.onAlign,F=h.current;if(!N&&P&&F){var V,H=R_(P),W=__(P);m.current.element=H,m.current.point=W,m.current.align=L;var G=document,U=G.activeElement;return H&&Yf(H)?V=cE(F,H,L):W&&(V=Vne(F,W,L)),Kne(U,F),k&&V&&k(F,V),!0}return!1},f),S=ue(C,2),y=S[0],x=S[1],E=ge.useState(),O=ue(E,2),w=O[0],$=O[1],R=ge.useState(),_=ue(R,2),M=_[0],T=_[1];return an(function(){$(R_(i)),T(__(i))}),ge.useEffect(function(){(m.current.element!==w||!Wne(m.current.point,M)||!Fa(m.current.align,a))&&y()}),ge.useEffect(function(){var D=I_(h.current,y);return D},[h.current]),ge.useEffect(function(){var D=I_(w,y);return D},[w]),ge.useEffect(function(){o?x():y()},[o]),ge.useEffect(function(){if(s){var D=_a(window,"resize",y);return D.remove}},[s]),ge.useEffect(function(){return function(){x()}},[]),ge.useImperativeHandle(n,function(){return{forceAlign:function(){return y(!0)}}}),ge.isValidElement(g)&&(g=ge.cloneElement(g,{ref:zo(g.ref,h)})),g},MD=ge.forwardRef(Gne);MD.displayName="Align";var T_=["measure","alignPre","align",null,"motion"];const Xne=function(e,t){var n=Rl(null),r=ue(n,2),o=r[0],i=r[1],a=c.useRef();function l(f){i(f,!0)}function s(){Zt.cancel(a.current)}function d(f){s(),a.current=Zt(function(){l(function(m){switch(o){case"align":return"motion";case"motion":return"stable"}return m}),f==null||f()})}return c.useEffect(function(){l("measure")},[e]),c.useEffect(function(){switch(o){case"measure":t();break}o&&(a.current=Zt(js(Yr().mark(function f(){var m,h;return Yr().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:m=T_.indexOf(o),h=T_[m+1],h&&m!==-1&&l(h);case 3:case"end":return v.stop()}},f)}))))},[o]),c.useEffect(function(){return function(){s()}},[]),[o,d]},Yne=function(e){var t=c.useState({width:0,height:0}),n=ue(t,2),r=n[0],o=n[1];function i(l){var s=l.offsetWidth,d=l.offsetHeight,f=l.getBoundingClientRect(),m=f.width,h=f.height;Math.abs(s-m)<1&&Math.abs(d-h)<1&&(s=m,d=h),o({width:s,height:d})}var a=c.useMemo(function(){var l={};if(e){var s=r.width,d=r.height;e.indexOf("height")!==-1&&d?l.height=d:e.indexOf("minHeight")!==-1&&d&&(l.minHeight=d),e.indexOf("width")!==-1&&s?l.width=s:e.indexOf("minWidth")!==-1&&s&&(l.minWidth=s)}return l},[e,r]);return[a,i]};var AD=c.forwardRef(function(e,t){var n=e.visible,r=e.prefixCls,o=e.className,i=e.style,a=e.children,l=e.zIndex,s=e.stretch,d=e.destroyPopupOnHide,f=e.forceRender,m=e.align,h=e.point,g=e.getRootDomNode,v=e.getClassNameFromAlign,C=e.onAlign,S=e.onMouseEnter,y=e.onMouseLeave,x=e.onMouseDown,E=e.onTouchStart,O=e.onClick,w=c.useRef(),$=c.useRef(),R=c.useState(),_=ue(R,2),M=_[0],T=_[1],D=Yne(s),N=ue(D,2),P=N[0],L=N[1];function k(){s&&L(g())}var F=Xne(n,k),V=ue(F,2),H=V[0],W=V[1],G=c.useState(0),U=ue(G,2),X=U[0],Q=U[1],Y=c.useRef();an(function(){H==="alignPre"&&Q(0)},[H]);function q(){return h||g}function ne(){var ie;(ie=w.current)===null||ie===void 0||ie.forceAlign()}function le(ie,pe){var fe=v(pe);M!==fe&&T(fe),Q(function(Ie){return Ie+1}),H==="align"&&(C==null||C(ie,pe))}an(function(){H==="align"&&(X<3?ne():W(function(){var ie;(ie=Y.current)===null||ie===void 0||ie.call(Y)}))},[X]);var we=j({},wD(e));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(ie){var pe=we[ie];we[ie]=function(fe,Ie){return W(),pe==null?void 0:pe(fe,Ie)}});function Oe(){return new Promise(function(ie){Y.current=ie})}c.useEffect(function(){!we.motionName&&H==="motion"&&W()},[we.motionName,H]),c.useImperativeHandle(t,function(){return{forceAlign:ne,getElement:function(){return $.current}}});var Ce=j(j({},P),{},{zIndex:l,opacity:H==="motion"||H==="stable"||!n?void 0:0,pointerEvents:!n&&H!=="stable"?"none":void 0},i),ce=!0;m!=null&&m.points&&(H==="align"||H==="stable")&&(ce=!1);var he=a;return c.Children.count(a)>1&&(he=c.createElement("div",{className:"".concat(r,"-content")},a)),c.createElement(fi,je({visible:n,ref:$,leavedClassName:"".concat(r,"-hidden")},we,{onAppearPrepare:Oe,onEnterPrepare:Oe,removeOnLeave:d,forceRender:f}),function(ie,pe){var fe=ie.className,Ie=ie.style,Se=te(r,o,M,fe);return c.createElement(MD,{target:q(),key:"popup",ref:w,monitorWindowResize:!0,disabled:ce,align:m,onAlign:le},c.createElement("div",{ref:pe,className:Se,onMouseEnter:S,onMouseLeave:y,onMouseDownCapture:x,onTouchStartCapture:E,onClick:O,style:j(j({},Ie),Ce)},he))})});AD.displayName="PopupInner";var LD=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.visible,o=e.zIndex,i=e.children,a=e.mobile;a=a===void 0?{}:a;var l=a.popupClassName,s=a.popupStyle,d=a.popupMotion,f=d===void 0?{}:d,m=a.popupRender,h=e.onClick,g=c.useRef();c.useImperativeHandle(t,function(){return{forceAlign:function(){},getElement:function(){return g.current}}});var v=j({zIndex:o},s),C=i;return c.Children.count(i)>1&&(C=c.createElement("div",{className:"".concat(n,"-content")},i)),m&&(C=m(C)),c.createElement(fi,je({visible:r,ref:g,removeOnLeave:!0},f),function(S,y){var x=S.className,E=S.style,O=te(n,l,x);return c.createElement("div",{ref:y,className:O,onClick:h,style:j(j({},E),v)},C)})});LD.displayName="MobilePopupInner";var qne=["visible","mobile"],DD=c.forwardRef(function(e,t){var n=e.visible,r=e.mobile,o=vt(e,qne),i=c.useState(n),a=ue(i,2),l=a[0],s=a[1],d=c.useState(!1),f=ue(d,2),m=f[0],h=f[1],g=j(j({},o),{},{visible:l});c.useEffect(function(){s(n),n&&r&&h(xv())},[n,r]);var v=m?c.createElement(LD,je({},g,{mobile:r,ref:t})):c.createElement(AD,je({},g,{ref:t}));return c.createElement("div",null,c.createElement(gne,g),v)});DD.displayName="Popup";var P_=c.createContext(null);function ab(){}function Qne(){return""}function Zne(e){return e?e.ownerDocument:window.document}var Jne=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function ere(e){var t=function(n){Di(o,n);var r=ki(o);function o(i){var a;Qn(this,o),a=r.call(this,i),Z(Et(a),"popupRef",c.createRef()),Z(Et(a),"triggerRef",c.createRef()),Z(Et(a),"portalContainer",void 0),Z(Et(a),"attachId",void 0),Z(Et(a),"clickOutsideHandler",void 0),Z(Et(a),"touchOutsideHandler",void 0),Z(Et(a),"contextMenuOutsideHandler1",void 0),Z(Et(a),"contextMenuOutsideHandler2",void 0),Z(Et(a),"mouseDownTimeout",void 0),Z(Et(a),"focusTime",void 0),Z(Et(a),"preClickTime",void 0),Z(Et(a),"preTouchTime",void 0),Z(Et(a),"delayTimer",void 0),Z(Et(a),"hasPopupMouseDown",void 0),Z(Et(a),"onMouseEnter",function(s){var d=a.props.mouseEnterDelay;a.fireEvents("onMouseEnter",s),a.delaySetPopupVisible(!0,d,d?null:s)}),Z(Et(a),"onMouseMove",function(s){a.fireEvents("onMouseMove",s),a.setPoint(s)}),Z(Et(a),"onMouseLeave",function(s){a.fireEvents("onMouseLeave",s),a.delaySetPopupVisible(!1,a.props.mouseLeaveDelay)}),Z(Et(a),"onPopupMouseEnter",function(){a.clearDelayTimer()}),Z(Et(a),"onPopupMouseLeave",function(s){var d;s.relatedTarget&&!s.relatedTarget.setTimeout&&Cs((d=a.popupRef.current)===null||d===void 0?void 0:d.getElement(),s.relatedTarget)||a.delaySetPopupVisible(!1,a.props.mouseLeaveDelay)}),Z(Et(a),"onFocus",function(s){a.fireEvents("onFocus",s),a.clearDelayTimer(),a.isFocusToShow()&&(a.focusTime=Date.now(),a.delaySetPopupVisible(!0,a.props.focusDelay))}),Z(Et(a),"onMouseDown",function(s){a.fireEvents("onMouseDown",s),a.preClickTime=Date.now()}),Z(Et(a),"onTouchStart",function(s){a.fireEvents("onTouchStart",s),a.preTouchTime=Date.now()}),Z(Et(a),"onBlur",function(s){a.fireEvents("onBlur",s),a.clearDelayTimer(),a.isBlurToHide()&&a.delaySetPopupVisible(!1,a.props.blurDelay)}),Z(Et(a),"onContextMenu",function(s){s.preventDefault(),a.fireEvents("onContextMenu",s),a.setPopupVisible(!0,s)}),Z(Et(a),"onContextMenuClose",function(){a.isContextMenuToShow()&&a.close()}),Z(Et(a),"onClick",function(s){if(a.fireEvents("onClick",s),a.focusTime){var d;if(a.preClickTime&&a.preTouchTime?d=Math.min(a.preClickTime,a.preTouchTime):a.preClickTime?d=a.preClickTime:a.preTouchTime&&(d=a.preTouchTime),Math.abs(d-a.focusTime)<20)return;a.focusTime=0}a.preClickTime=0,a.preTouchTime=0,a.isClickToShow()&&(a.isClickToHide()||a.isBlurToHide())&&s&&s.preventDefault&&s.preventDefault();var f=!a.state.popupVisible;(a.isClickToHide()&&!f||f&&a.isClickToShow())&&a.setPopupVisible(!a.state.popupVisible,s)}),Z(Et(a),"onPopupMouseDown",function(){if(a.hasPopupMouseDown=!0,clearTimeout(a.mouseDownTimeout),a.mouseDownTimeout=window.setTimeout(function(){a.hasPopupMouseDown=!1},0),a.context){var s;(s=a.context).onPopupMouseDown.apply(s,arguments)}}),Z(Et(a),"onDocumentClick",function(s){if(!(a.props.mask&&!a.props.maskClosable)){var d=s.target,f=a.getRootDomNode(),m=a.getPopupDomNode();(!Cs(f,d)||a.isContextMenuOnly())&&!Cs(m,d)&&!a.hasPopupMouseDown&&a.close()}}),Z(Et(a),"getRootDomNode",function(){var s=a.props.getTriggerDOMNode;if(s)return s(a.triggerRef.current);try{var d=Sf(a.triggerRef.current);if(d)return d}catch{}return dc.findDOMNode(Et(a))}),Z(Et(a),"getPopupClassNameFromAlign",function(s){var d=[],f=a.props,m=f.popupPlacement,h=f.builtinPlacements,g=f.prefixCls,v=f.alignPoint,C=f.getPopupClassNameFromAlign;return m&&h&&d.push(hne(h,g,s,v)),C&&d.push(C(s)),d.join(" ")}),Z(Et(a),"getComponent",function(){var s=a.props,d=s.prefixCls,f=s.destroyPopupOnHide,m=s.popupClassName,h=s.onPopupAlign,g=s.popupMotion,v=s.popupAnimation,C=s.popupTransitionName,S=s.popupStyle,y=s.mask,x=s.maskAnimation,E=s.maskTransitionName,O=s.maskMotion,w=s.zIndex,$=s.popup,R=s.stretch,_=s.alignPoint,M=s.mobile,T=s.forceRender,D=s.onPopupClick,N=a.state,P=N.popupVisible,L=N.point,k=a.getPopupAlign(),F={};return a.isMouseEnterToShow()&&(F.onMouseEnter=a.onPopupMouseEnter),a.isMouseLeaveToHide()&&(F.onMouseLeave=a.onPopupMouseLeave),F.onMouseDown=a.onPopupMouseDown,F.onTouchStart=a.onPopupMouseDown,c.createElement(DD,je({prefixCls:d,destroyPopupOnHide:f,visible:P,point:_&&L,className:m,align:k,onAlign:h,animation:v,getClassNameFromAlign:a.getPopupClassNameFromAlign},F,{stretch:R,getRootDomNode:a.getRootDomNode,style:S,mask:y,zIndex:w,transitionName:C,maskAnimation:x,maskTransitionName:E,maskMotion:O,ref:a.popupRef,motion:g,mobile:M,forceRender:T,onClick:D}),typeof $=="function"?$():$)}),Z(Et(a),"attachParent",function(s){Zt.cancel(a.attachId);var d=a.props,f=d.getPopupContainer,m=d.getDocument,h=a.getRootDomNode(),g;f?(h||f.length===0)&&(g=f(h)):g=m(a.getRootDomNode()).body,g?g.appendChild(s):a.attachId=Zt(function(){a.attachParent(s)})}),Z(Et(a),"getContainer",function(){if(!a.portalContainer){var s=a.props.getDocument,d=s(a.getRootDomNode()).createElement("div");d.style.position="absolute",d.style.top="0",d.style.left="0",d.style.width="100%",a.portalContainer=d}return a.attachParent(a.portalContainer),a.portalContainer}),Z(Et(a),"setPoint",function(s){var d=a.props.alignPoint;!d||!s||a.setState({point:{pageX:s.pageX,pageY:s.pageY}})}),Z(Et(a),"handlePortalUpdate",function(){a.state.prevPopupVisible!==a.state.popupVisible&&a.props.afterPopupVisibleChange(a.state.popupVisible)}),Z(Et(a),"triggerContextValue",{onPopupMouseDown:a.onPopupMouseDown});var l;return"popupVisible"in i?l=!!i.popupVisible:l=!!i.defaultPopupVisible,a.state={prevPopupVisible:l,popupVisible:l},Jne.forEach(function(s){a["fire".concat(s)]=function(d){a.fireEvents(s,d)}}),a}return Zn(o,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var a=this.props,l=this.state;if(l.popupVisible){var s;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(s=a.getDocument(this.getRootDomNode()),this.clickOutsideHandler=_a(s,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(s=s||a.getDocument(this.getRootDomNode()),this.touchOutsideHandler=_a(s,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(s=s||a.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=_a(s,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=_a(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Zt.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var a;return((a=this.popupRef.current)===null||a===void 0?void 0:a.getElement())||null}},{key:"getPopupAlign",value:function(){var a=this.props,l=a.popupPlacement,s=a.popupAlign,d=a.builtinPlacements;return l&&d?mne(d,l,s):s}},{key:"setPopupVisible",value:function(a,l){var s=this.props.alignPoint,d=this.state.popupVisible;this.clearDelayTimer(),d!==a&&("popupVisible"in this.props||this.setState({popupVisible:a,prevPopupVisible:d}),this.props.onPopupVisibleChange(a)),s&&l&&a&&this.setPoint(l)}},{key:"delaySetPopupVisible",value:function(a,l,s){var d=this,f=l*1e3;if(this.clearDelayTimer(),f){var m=s?{pageX:s.pageX,pageY:s.pageY}:null;this.delayTimer=window.setTimeout(function(){d.setPopupVisible(a,m),d.clearDelayTimer()},f)}else this.setPopupVisible(a,s)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(a){var l=this.props.children.props,s=this.props;return l[a]&&s[a]?this["fire".concat(a)]:l[a]||s[a]}},{key:"isClickToShow",value:function(){var a=this.props,l=a.action,s=a.showAction;return l.indexOf("click")!==-1||s.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var a=this.props.action;return a==="contextMenu"||a.length===1&&a[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var a=this.props,l=a.action,s=a.showAction;return l.indexOf("contextMenu")!==-1||s.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var a=this.props,l=a.action,s=a.hideAction;return l.indexOf("click")!==-1||s.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var a=this.props,l=a.action,s=a.showAction;return l.indexOf("hover")!==-1||s.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var a=this.props,l=a.action,s=a.hideAction;return l.indexOf("hover")!==-1||s.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var a=this.props,l=a.action,s=a.showAction;return l.indexOf("focus")!==-1||s.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var a=this.props,l=a.action,s=a.hideAction;return l.indexOf("focus")!==-1||s.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var a;(a=this.popupRef.current)===null||a===void 0||a.forceAlign()}}},{key:"fireEvents",value:function(a,l){var s=this.props.children.props[a];s&&s(l);var d=this.props[a];d&&d(l)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var a=this.state.popupVisible,l=this.props,s=l.children,d=l.forceRender,f=l.alignPoint,m=l.className,h=l.autoDestroy,g=c.Children.only(s),v={key:"trigger"};this.isContextMenuToShow()?v.onContextMenu=this.onContextMenu:v.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(v.onClick=this.onClick,v.onMouseDown=this.onMouseDown,v.onTouchStart=this.onTouchStart):(v.onClick=this.createTwoChains("onClick"),v.onMouseDown=this.createTwoChains("onMouseDown"),v.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(v.onMouseEnter=this.onMouseEnter,f&&(v.onMouseMove=this.onMouseMove)):v.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?v.onMouseLeave=this.onMouseLeave:v.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(v.onFocus=this.onFocus,v.onBlur=this.onBlur):(v.onFocus=this.createTwoChains("onFocus"),v.onBlur=this.createTwoChains("onBlur"));var C=te(g&&g.props&&g.props.className,m);C&&(v.className=C);var S=j({},v);Hl(g)&&(S.ref=zo(this.triggerRef,g.ref));var y=c.cloneElement(g,S),x;return(a||this.popupRef.current||d)&&(x=c.createElement(e,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!a&&h&&(x=null),c.createElement(P_.Provider,{value:this.triggerContextValue},y,x)}}],[{key:"getDerivedStateFromProps",value:function(a,l){var s=a.popupVisible,d={};return s!==void 0&&l.popupVisible!==s&&(d.popupVisible=s,d.prevPopupVisible=l.popupVisible),d}}]),o}(c.Component);return Z(t,"contextType",P_),Z(t,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Qne,getDocument:Zne,onPopupVisibleChange:ab,afterPopupVisibleChange:ab,onPopupAlign:ab,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),t}const kD=ere(fne);var vu={adjustX:1,adjustY:1},yu=[0,0],tre={topLeft:{points:["bl","tl"],overflow:vu,offset:[0,-4],targetOffset:yu},topCenter:{points:["bc","tc"],overflow:vu,offset:[0,-4],targetOffset:yu},topRight:{points:["br","tr"],overflow:vu,offset:[0,-4],targetOffset:yu},bottomLeft:{points:["tl","bl"],overflow:vu,offset:[0,4],targetOffset:yu},bottomCenter:{points:["tc","bc"],overflow:vu,offset:[0,4],targetOffset:yu},bottomRight:{points:["tr","br"],overflow:vu,offset:[0,4],targetOffset:yu}};function N_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Yf(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 FD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Pe(e.querySelectorAll("*")).filter(function(r){return N_(r,t)});return N_(e,t)&&n.unshift(e),n}var nre=De.ESC,rre=De.TAB;function ore(e){var t=e.visible,n=e.setTriggerVisible,r=e.triggerRef,o=e.onVisibleChange,i=e.autoFocus,a=c.useRef(!1),l=function(){if(t&&r.current){var m,h,g,v;(m=r.current)===null||m===void 0||(h=m.triggerRef)===null||h===void 0||(g=h.current)===null||g===void 0||(v=g.focus)===null||v===void 0||v.call(g),n(!1),typeof o=="function"&&o(!1)}},s=function(){var m,h,g,v,C=FD((m=r.current)===null||m===void 0||(h=m.popupRef)===null||h===void 0||(g=h.current)===null||g===void 0||(v=g.getElement)===null||v===void 0?void 0:v.call(g)),S=C[0];return S!=null&&S.focus?(S.focus(),a.current=!0,!0):!1},d=function(m){switch(m.keyCode){case nre:l();break;case rre:{var h=!1;a.current||(h=s()),h?m.preventDefault():l();break}}};c.useEffect(function(){return t?(window.addEventListener("keydown",d),i&&Zt(s,3),function(){window.removeEventListener("keydown",d),a.current=!1}):function(){a.current=!1}},[t])}var ire=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function are(e,t){var n=e.arrow,r=n===void 0?!1:n,o=e.prefixCls,i=o===void 0?"rc-dropdown":o,a=e.transitionName,l=e.animation,s=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,m=e.placements,h=m===void 0?tre:m,g=e.getPopupContainer,v=e.showAction,C=e.hideAction,S=e.overlayClassName,y=e.overlayStyle,x=e.visible,E=e.trigger,O=E===void 0?["hover"]:E,w=e.autoFocus,$=vt(e,ire),R=c.useState(),_=ue(R,2),M=_[0],T=_[1],D="visible"in e?x:M,N=c.useRef(null);c.useImperativeHandle(t,function(){return N.current}),ore({visible:D,setTriggerVisible:T,triggerRef:N,onVisibleChange:e.onVisibleChange,autoFocus:w});var P=function(){var Q=e.overlay,Y;return typeof Q=="function"?Y=Q():Y=Q,Y},L=function(Q){var Y=e.onOverlayClick;T(!1),Y&&Y(Q)},k=function(Q){var Y=e.onVisibleChange;T(Q),typeof Y=="function"&&Y(Q)},F=function(){var Q=P();return c.createElement(c.Fragment,null,r&&c.createElement("div",{className:"".concat(i,"-arrow")}),Q)},V=function(){var Q=e.overlay;return typeof Q=="function"?F:F()},H=function(){var Q=e.minOverlayWidthMatchTrigger,Y=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?Q:!Y},W=function(){var Q=e.openClassName;return Q!==void 0?Q:"".concat(i,"-open")},G=function(){var Q=e.children,Y=Q.props?Q.props:{},q=te(Y.className,W());return D&&Q?c.cloneElement(Q,{className:q}):Q},U=C;return!U&&O.indexOf("contextMenu")!==-1&&(U=["click"]),c.createElement(kD,j(j({builtinPlacements:h},$),{},{prefixCls:i,ref:N,popupClassName:te(S,Z({},"".concat(i,"-show-arrow"),r)),popupStyle:y,action:O,showAction:v,hideAction:U||[],popupPlacement:f,popupAlign:s,popupTransitionName:a,popupAnimation:l,popupVisible:D,stretch:H()?"minWidth":"",popup:V(),onPopupVisibleChange:k,onPopupClick:L,getPopupContainer:g}),G())}const lre=c.forwardRef(are);var BD=c.createContext(null);function dE(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function zD(e){var t=c.useContext(BD);return dE(t,e)}var sre=["children","locked"],Li=c.createContext(null);function ure(e,t){var n=j({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function _f(e){var t=e.children,n=e.locked,r=vt(e,sre),o=c.useContext(Li),i=Hs(function(){return ure(o,r)},[o,r],function(a,l){return!n&&(a[0]!==l[0]||!Fa(a[1],l[1],!0))});return c.createElement(Li.Provider,{value:i},t)}var cre=[],HD=c.createContext(null);function Iv(){return c.useContext(HD)}var jD=c.createContext(cre);function Nc(e){var t=c.useContext(jD);return c.useMemo(function(){return e!==void 0?[].concat(Pe(t),[e]):t},[t,e])}var VD=c.createContext(null),fE=c.createContext({}),FC=De.LEFT,BC=De.RIGHT,zC=De.UP,rh=De.DOWN,oh=De.ENTER,UD=De.ESC,fd=De.HOME,pd=De.END,M_=[zC,rh,FC,BC];function dre(e,t,n,r){var o,i,a,l,s="prev",d="next",f="children",m="parent";if(e==="inline"&&r===oh)return{inlineTrigger:!0};var h=(o={},Z(o,zC,s),Z(o,rh,d),o),g=(i={},Z(i,FC,n?d:s),Z(i,BC,n?s:d),Z(i,rh,f),Z(i,oh,f),i),v=(a={},Z(a,zC,s),Z(a,rh,d),Z(a,oh,f),Z(a,UD,m),Z(a,FC,n?f:m),Z(a,BC,n?m:f),a),C={inline:h,horizontal:g,vertical:v,inlineSub:h,horizontalSub:v,verticalSub:v},S=(l=C["".concat(e).concat(t?"":"Sub")])===null||l===void 0?void 0:l[r];switch(S){case s:return{offset:-1,sibling:!0};case d:return{offset:1,sibling:!0};case m:return{offset:-1,sibling:!1};case f:return{offset:1,sibling:!1};default:return null}}function fre(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function pre(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function WD(e,t){var n=FD(e,!0);return n.filter(function(r){return t.has(r)})}function A_(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=WD(e,t),i=o.length,a=o.findIndex(function(l){return n===l});return r<0?a===-1?a=i-1:a-=1:r>0&&(a+=1),a=(a+i)%i,o[a]}function mre(e,t,n,r,o,i,a,l,s,d){var f=c.useRef(),m=c.useRef();m.current=t;var h=function(){Zt.cancel(f.current)};return c.useEffect(function(){return function(){h()}},[]),function(g){var v=g.which;if([].concat(M_,[oh,UD,fd,pd]).includes(v)){var C,S,y,x=function(){C=new Set,S=new Map,y=new Map;var k=i();return k.forEach(function(F){var V=document.querySelector("[data-menu-id='".concat(dE(r,F),"']"));V&&(C.add(V),y.set(V,F),S.set(F,V))}),C};x();var E=S.get(t),O=pre(E,C),w=y.get(O),$=dre(e,a(w,!0).length===1,n,v);if(!$&&v!==fd&&v!==pd)return;(M_.includes(v)||[fd,pd].includes(v))&&g.preventDefault();var R=function(k){if(k){var F=k,V=k.querySelector("a");V!=null&&V.getAttribute("href")&&(F=V);var H=y.get(k);l(H),h(),f.current=Zt(function(){m.current===H&&F.focus()})}};if([fd,pd].includes(v)||$.sibling||!O){var _;!O||e==="inline"?_=o.current:_=fre(O);var M,T=WD(_,C);v===fd?M=T[0]:v===pd?M=T[T.length-1]:M=A_(_,C,O,$.offset),R(M)}else if($.inlineTrigger)s(w);else if($.offset>0)s(w,!0),h(),f.current=Zt(function(){x();var L=O.getAttribute("aria-controls"),k=document.getElementById(L),F=A_(k,C);R(F)},5);else if($.offset<0){var D=a(w,!0),N=D[D.length-2],P=S.get(N);s(N,!1),R(P)}}d==null||d(g)}}function hre(e){Promise.resolve().then(e)}var pE="__RC_UTIL_PATH_SPLIT__",L_=function(t){return t.join(pE)},gre=function(t){return t.split(pE)},HC="rc-menu-more";function vre(){var e=c.useState({}),t=ue(e,2),n=t[1],r=c.useRef(new Map),o=c.useRef(new Map),i=c.useState([]),a=ue(i,2),l=a[0],s=a[1],d=c.useRef(0),f=c.useRef(!1),m=function(){f.current||n({})},h=c.useCallback(function(E,O){var w=L_(O);o.current.set(w,E),r.current.set(E,w),d.current+=1;var $=d.current;hre(function(){$===d.current&&m()})},[]),g=c.useCallback(function(E,O){var w=L_(O);o.current.delete(w),r.current.delete(E)},[]),v=c.useCallback(function(E){s(E)},[]),C=c.useCallback(function(E,O){var w=r.current.get(E)||"",$=gre(w);return O&&l.includes($[0])&&$.unshift(HC),$},[l]),S=c.useCallback(function(E,O){return E.some(function(w){var $=C(w,!0);return $.includes(O)})},[C]),y=function(){var O=Pe(r.current.keys());return l.length&&O.push(HC),O},x=c.useCallback(function(E){var O="".concat(r.current.get(E)).concat(pE),w=new Set;return Pe(o.current.keys()).forEach(function($){$.startsWith(O)&&w.add(o.current.get($))}),w},[]);return c.useEffect(function(){return function(){f.current=!0}},[]),{registerPath:h,unregisterPath:g,refreshOverflowKeys:v,isSubPathKey:S,getKeyPath:C,getKeys:y,getSubPathKeys:x}}function wu(e){var t=c.useRef(e);t.current=e;var n=c.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a1&&(x.motionAppear=!1);var E=x.onVisibleChanged;return x.onVisibleChanged=function(O){return!h.current&&!O&&S(!0),E==null?void 0:E(O)},C?null:c.createElement(_f,{mode:i,locked:!h.current},c.createElement(fi,je({visible:y},x,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(O){var w=O.className,$=O.style;return c.createElement(mE,{id:t,className:w,style:$},o)}))}var Dre=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],kre=["active"],Fre=function(t){var n,r=t.style,o=t.className,i=t.title,a=t.eventKey;t.warnKey;var l=t.disabled,s=t.internalPopupClose,d=t.children,f=t.itemIcon,m=t.expandIcon,h=t.popupClassName,g=t.popupOffset,v=t.onClick,C=t.onMouseEnter,S=t.onMouseLeave,y=t.onTitleClick,x=t.onTitleMouseEnter,E=t.onTitleMouseLeave,O=vt(t,Dre),w=zD(a),$=c.useContext(Li),R=$.prefixCls,_=$.mode,M=$.openKeys,T=$.disabled,D=$.overflowDisabled,N=$.activeKey,P=$.selectedKeys,L=$.itemIcon,k=$.expandIcon,F=$.onItemClick,V=$.onOpenChange,H=$.onActive,W=c.useContext(fE),G=W._internalRenderSubMenuItem,U=c.useContext(VD),X=U.isSubPathKey,Q=Nc(),Y="".concat(R,"-submenu"),q=T||l,ne=c.useRef(),le=c.useRef(),we=f||L,Oe=m||k,Ce=M.includes(a),ce=!D&&Ce,he=X(P,a),ie=KD(a,q,x,E),pe=ie.active,fe=vt(ie,kre),Ie=c.useState(!1),Se=ue(Ie,2),de=Se[0],_e=Se[1],be=function(ke){q||_e(ke)},Xe=function(ke){be(!0),C==null||C({key:a,domEvent:ke})},Qe=function(ke){be(!1),S==null||S({key:a,domEvent:ke})},ft=c.useMemo(function(){return pe||(_!=="inline"?de||X([N],a):!1)},[_,pe,N,de,a,X]),ct=GD(Q.length),ut=function(ke){q||(y==null||y({key:a,domEvent:ke}),_==="inline"&&V(a,!Ce))},dt=wu(function(Ee){v==null||v(rg(Ee)),F(Ee)}),He=function(ke){_!=="inline"&&V(a,ke)},Je=function(){H(a)},ee=w&&"".concat(w,"-popup"),re=c.createElement("div",je({role:"menuitem",style:ct,className:"".concat(Y,"-title"),tabIndex:q?null:-1,ref:ne,title:typeof i=="string"?i:null,"data-menu-id":D&&w?null:w,"aria-expanded":ce,"aria-haspopup":!0,"aria-controls":ee,"aria-disabled":q,onClick:ut,onFocus:Je},fe),i,c.createElement(XD,{icon:_!=="horizontal"?Oe:null,props:j(j({},t),{},{isOpen:ce,isSubMenu:!0})},c.createElement("i",{className:"".concat(Y,"-arrow")}))),oe=c.useRef(_);if(_!=="inline"&&Q.length>1?oe.current="vertical":oe.current=_,!D){var xe=oe.current;re=c.createElement(Are,{mode:xe,prefixCls:Y,visible:!s&&ce&&_!=="inline",popupClassName:h,popupOffset:g,popup:c.createElement(_f,{mode:xe==="horizontal"?"vertical":xe},c.createElement(mE,{id:ee,ref:le},d)),disabled:q,onVisibleChange:He},re)}var ve=c.createElement(ia.Item,je({role:"none"},O,{component:"li",style:r,className:te(Y,"".concat(Y,"-").concat(_),o,(n={},Z(n,"".concat(Y,"-open"),ce),Z(n,"".concat(Y,"-active"),ft),Z(n,"".concat(Y,"-selected"),he),Z(n,"".concat(Y,"-disabled"),q),n)),onMouseEnter:Xe,onMouseLeave:Qe}),re,!D&&c.createElement(Lre,{id:ee,open:ce,keyPath:Q},d));return G&&(ve=G(ve,t,{selected:he,active:ft,open:ce,disabled:q})),c.createElement(_f,{onItemClick:dt,mode:_==="horizontal"?"vertical":_,itemIcon:we,expandIcon:Oe},ve)};function _v(e){var t=e.eventKey,n=e.children,r=Nc(t),o=hE(n,r),i=Iv();c.useEffect(function(){if(i)return i.registerPath(t,r),function(){i.unregisterPath(t,r)}},[r]);var a;return i?a=o:a=c.createElement(Fre,e,o),c.createElement(jD.Provider,{value:r},a)}var Bre=["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"],bu=[],zre=c.forwardRef(function(e,t){var n,r,o=e,i=o.prefixCls,a=i===void 0?"rc-menu":i,l=o.rootClassName,s=o.style,d=o.className,f=o.tabIndex,m=f===void 0?0:f,h=o.items,g=o.children,v=o.direction,C=o.id,S=o.mode,y=S===void 0?"vertical":S,x=o.inlineCollapsed,E=o.disabled,O=o.disabledOverflow,w=o.subMenuOpenDelay,$=w===void 0?.1:w,R=o.subMenuCloseDelay,_=R===void 0?.1:R,M=o.forceSubMenuRender,T=o.defaultOpenKeys,D=o.openKeys,N=o.activeKey,P=o.defaultActiveFirst,L=o.selectable,k=L===void 0?!0:L,F=o.multiple,V=F===void 0?!1:F,H=o.defaultSelectedKeys,W=o.selectedKeys,G=o.onSelect,U=o.onDeselect,X=o.inlineIndent,Q=X===void 0?24:X,Y=o.motion,q=o.defaultMotions,ne=o.triggerSubMenuAction,le=ne===void 0?"hover":ne,we=o.builtinPlacements,Oe=o.itemIcon,Ce=o.expandIcon,ce=o.overflowedIndicator,he=ce===void 0?"...":ce,ie=o.overflowedIndicatorPopupClassName,pe=o.getPopupContainer,fe=o.onClick,Ie=o.onOpenChange,Se=o.onKeyDown;o.openAnimation,o.openTransitionName;var de=o._internalRenderMenuItem,_e=o._internalRenderSubMenuItem,be=vt(o,Bre),Xe=c.useMemo(function(){return Tre(g,h,bu)},[g,h]),Qe=c.useState(!1),ft=ue(Qe,2),ct=ft[0],ut=ft[1],dt=c.useRef(),He=bre(C),Je=v==="rtl",ee=Lr(T,{value:D,postState:function(Ge){return Ge||bu}}),re=ue(ee,2),oe=re[0],xe=re[1],ve=function(Ge){var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function rt(){xe(Ge),Ie==null||Ie(Ge)}St?Ni.flushSync(rt):rt()},Ee=c.useState(oe),ke=ue(Ee,2),Ye=ke[0],Fe=ke[1],ot=c.useRef(!1),Ae=c.useMemo(function(){return(y==="inline"||y==="vertical")&&x?["vertical",x]:[y,!1]},[y,x]),Ke=ue(Ae,2),Ue=Ke[0],ze=Ke[1],at=Ue==="inline",$t=c.useState(Ue),tt=ue($t,2),lt=tt[0],Re=tt[1],Ne=c.useState(ze),Te=ue(Ne,2),We=Te[0],qe=Te[1];c.useEffect(function(){Re(Ue),qe(ze),ot.current&&(at?xe(Ye):ve(bu))},[Ue,ze]);var ht=c.useState(0),en=ue(ht,2),tn=en[0],Rn=en[1],Rt=tn>=Xe.length-1||lt!=="horizontal"||O;c.useEffect(function(){at&&Fe(oe)},[oe]),c.useEffect(function(){return ot.current=!0,function(){ot.current=!1}},[]);var zt=vre(),_n=zt.registerPath,Bn=zt.unregisterPath,Or=zt.refreshOverflowKeys,gr=zt.isSubPathKey,Ln=zt.getKeyPath,Fr=zt.getKeys,ho=zt.getSubPathKeys,Dn=c.useMemo(function(){return{registerPath:_n,unregisterPath:Bn}},[_n,Bn]),vr=c.useMemo(function(){return{isSubPathKey:gr}},[gr]);c.useEffect(function(){Or(Rt?bu:Xe.slice(tn+1).map(function(et){return et.key}))},[tn,Rt]);var mi=Lr(N||P&&((n=Xe[0])===null||n===void 0?void 0:n.key),{value:N}),go=ue(mi,2),Un=go[0],Zr=go[1],Jr=wu(function(et){Zr(et)}),hi=wu(function(){Zr(void 0)});c.useImperativeHandle(t,function(){return{list:dt.current,focus:function(Ge){var St,rt=Un??((St=Xe.find(function(Tn){return!Tn.props.disabled}))===null||St===void 0?void 0:St.key);if(rt){var nt,Nt,Gt;(nt=dt.current)===null||nt===void 0||(Nt=nt.querySelector("li[data-menu-id='".concat(dE(He,rt),"']")))===null||Nt===void 0||(Gt=Nt.focus)===null||Gt===void 0||Gt.call(Nt,Ge)}}}});var Br=Lr(H||[],{value:W,postState:function(Ge){return Array.isArray(Ge)?Ge:Ge==null?bu:[Ge]}}),zr=ue(Br,2),Wn=zr[0],Kn=zr[1],eo=function(Ge){if(k){var St=Ge.key,rt=Wn.includes(St),nt;V?rt?nt=Wn.filter(function(Gt){return Gt!==St}):nt=[].concat(Pe(Wn),[St]):nt=[St],Kn(nt);var Nt=j(j({},Ge),{},{selectedKeys:nt});rt?U==null||U(Nt):G==null||G(Nt)}!V&&oe.length&<!=="inline"&&ve(bu)},to=wu(function(et){fe==null||fe(rg(et)),eo(et)}),lr=wu(function(et,Ge){var St=oe.filter(function(nt){return nt!==et});if(Ge)St.push(et);else if(lt!=="inline"){var rt=ho(et);St=St.filter(function(nt){return!rt.has(nt)})}Fa(oe,St,!0)||ve(St,!0)}),Hr=wu(pe),vo=function(Ge,St){var rt=St??!oe.includes(Ge);lr(Ge,rt)},Ho=mre(lt,Un,Je,He,dt,Fr,Ln,Zr,vo,Se);c.useEffect(function(){ut(!0)},[]);var yo=c.useMemo(function(){return{_internalRenderMenuItem:de,_internalRenderSubMenuItem:_e}},[de,_e]),$r=lt!=="horizontal"||O?Xe:Xe.map(function(et,Ge){return c.createElement(_f,{key:et.key,overflowDisabled:Ge>tn},et)}),Ir=c.createElement(ia,je({id:C,ref:dt,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:Rv,className:te(a,"".concat(a,"-root"),"".concat(a,"-").concat(lt),d,(r={},Z(r,"".concat(a,"-inline-collapsed"),We),Z(r,"".concat(a,"-rtl"),Je),r),l),dir:v,style:s,role:"menu",tabIndex:m,data:$r,renderRawItem:function(Ge){return Ge},renderRawRest:function(Ge){var St=Ge.length,rt=St?Xe.slice(-St):null;return c.createElement(_v,{eventKey:HC,title:he,disabled:Rt,internalPopupClose:St===0,popupClassName:ie},rt)},maxCount:lt!=="horizontal"||O?ia.INVALIDATE:ia.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Ge){Rn(Ge)},onKeyDown:Ho},be));return c.createElement(fE.Provider,{value:yo},c.createElement(BD.Provider,{value:He},c.createElement(_f,{prefixCls:a,rootClassName:l,mode:lt,openKeys:oe,rtl:Je,disabled:E,motion:ct?Y:null,defaultMotions:ct?q:null,activeKey:Un,onActive:Jr,onInactive:hi,selectedKeys:Wn,inlineIndent:Q,subMenuOpenDelay:$,subMenuCloseDelay:_,forceSubMenuRender:M,builtinPlacements:we,triggerSubMenuAction:le,getPopupContainer:Hr,itemIcon:Oe,expandIcon:Ce,onItemClick:to,onOpenChange:lr},c.createElement(VD.Provider,{value:vr},Ir),c.createElement("div",{style:{display:"none"},"aria-hidden":!0},c.createElement(HD.Provider,{value:Dn},Xe)))))}),Hre=["className","title","eventKey","children"],jre=["children"],Vre=function(t){var n=t.className,r=t.title;t.eventKey;var o=t.children,i=vt(t,Hre),a=c.useContext(Li),l=a.prefixCls,s="".concat(l,"-item-group");return c.createElement("li",je({role:"presentation"},i,{onClick:function(f){return f.stopPropagation()},className:te(s,n)}),c.createElement("div",{role:"presentation",className:"".concat(s,"-title"),title:typeof r=="string"?r:void 0},r),c.createElement("ul",{role:"group",className:"".concat(s,"-list")},o))};function Tv(e){var t=e.children,n=vt(e,jre),r=Nc(n.eventKey),o=hE(t,r),i=Iv();return i?o:c.createElement(Vre,kr(n,["warnKey"]),o)}function gE(e){var t=e.className,n=e.style,r=c.useContext(Li),o=r.prefixCls,i=Iv();return i?null:c.createElement("li",{className:te("".concat(o,"-item-divider"),t),style:n})}var tp=zre;tp.Item=Rv;tp.SubMenu=_v;tp.ItemGroup=Tv;tp.Divider=gE;const Ure=e=>{const{componentCls:t,motionDurationSlow:n,menuHorizontalHeight:r,colorSplit:o,lineWidth:i,lineType:a,menuItemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:`${r}px`,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:l},[`> ${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"}}}},Wre=Ure,Kre=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})`}}}}},Gre=Kre,k_=e=>Object.assign({},Ba(e)),Xre=(e,t)=>{const{componentCls:n,colorItemText:r,colorItemTextSelected:o,colorGroupTitle:i,colorItemBg:a,colorSubItemBg:l,colorItemBgSelected:s,colorActiveBarHeight:d,colorActiveBarWidth:f,colorActiveBarBorderSize:m,motionDurationSlow:h,motionEaseInOut:g,motionEaseOut:v,menuItemPaddingInline:C,motionDurationMid:S,colorItemTextHover:y,lineType:x,colorSplit:E,colorItemTextDisabled:O,colorDangerItemText:w,colorDangerItemTextHover:$,colorDangerItemTextSelected:R,colorDangerItemBgActive:_,colorDangerItemBgSelected:M,colorItemBgHover:T,menuSubMenuBg:D,colorItemTextSelectedHorizontal:N,colorItemBgSelectedHorizontal:P}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},k_(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${O} !important`},[`${n}-item:hover, ${n}-submenu-title:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:y}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:T},"&:active":{backgroundColor:s}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:T},"&:active":{backgroundColor:s}}},[`${n}-item-danger`]:{color:w,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:$}},[`&${n}-item:active`]:{background:_}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:R},["a, a:hover"]:{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:s,[`&${n}-item-danger`]:{backgroundColor:M}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},k_(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:D},[`&${n}-popup > ${n}`]:{backgroundColor:a},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:m,marginTop:-m,marginBottom:0,borderRadius:0,"&::after":{position:"absolute",insetInline:C,bottom:0,borderBottom:`${d}px solid transparent`,transition:`border-color ${h} ${g}`,content:'""'},["&:hover, &-active, &-open"]:{"&::after":{borderBottomWidth:d,borderBottomColor:N}},["&-selected"]:{color:N,backgroundColor:P,"&::after":{borderBottomWidth:d,borderBottomColor:N}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${m}px ${x} ${E}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item, ${n}-submenu-title`]:m&&f?{width:`calc(100% + ${m}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${f}px solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${S} ${v}`,`opacity ${S} ${v}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:R}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${S} ${g}`,`opacity ${S} ${g}`].join(",")}}}}}},F_=Xre,B_=e=>{const{componentCls:t,menuItemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,marginXXS:l}=e,s=o+i+a;return{[`${t}-item`]:{position:"relative"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:`calc(100% - ${r*2}px)`},[`${t}-submenu`]:{paddingBottom:.02},[`> ${t}-item, + > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title, + ${t}-submenu-title`]:{paddingInlineEnd:s}}},Yre=e=>{const{componentCls:t,iconCls:n,menuItemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:l,motionEaseOut:s,paddingXL:d,fontSizeSM:f,fontSizeLG:m,motionDurationSlow:h,paddingXS:g,boxShadowSecondary:v}=e,C={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{["&-inline, &-vertical"]:Object.assign({[`&${t}-root`]:{boxShadow:"none"}},B_(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},B_(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 ${h}`,`background ${h}`,`padding ${l} ${s}`].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`]:C,[`& ${t}-item-group-title`]:{paddingInlineStart:d}},[`${t}-item`]:C}},{[`${t}-inline-collapsed`]:{width:r*2,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:m,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}px)`,textOverflow:"clip",[` + ${t}-submenu-arrow, + ${t}-submenu-expand-icon + `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:m,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({},Es),{paddingInline:g})}}]},qre=Yre,z_=e=>{const{componentCls:t,fontSize:n,motionDurationSlow:r,motionDurationMid:o,motionEaseInOut:i,motionEaseOut:a,iconCls:l,controlHeightSM:s}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${r}`,`background ${r}`,`padding ${r} ${i}`].join(","),[`${t}-item-icon, ${l}`]:{minWidth:n,fontSize:n,transition:[`font-size ${o} ${a}`,`margin ${r} ${i}`,`color ${r}`].join(","),"+ span":{marginInlineStart:s-n,opacity:1,transition:[`opacity ${r} ${i}`,`margin ${r}`,`color ${r}`].join(",")}},[`${t}-item-icon`]:Object.assign({},Gf()),[`&${t}-item-only-child`]:{[`> ${l}, > ${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"}}}},H_=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})`}}}}},Qre=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,lineHeight:l,paddingXS:s,padding:d,colorSplit:f,lineWidth:m,zIndexPopup:h,borderRadiusLG:g,radiusSubMenuItem:v,menuArrowSize:C,menuArrowOffset:S,lineType:y,menuPanelMaskInset:x}=e;return[{"":{[`${n}`]:Object.assign(Object.assign({},Of()),{["&-hidden"]:{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},mn(e)),Of()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:[`background ${o}`,`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`].join(","),["ul, ol"]:{margin:0,padding:0,listStyle:"none"},["&-overflow"]:{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.radiusItem},[`${n}-item-group-title`]:{padding:`${s}px ${d}px`,fontSize:r,lineHeight:l,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:f,borderStyle:y,borderWidth:0,borderTopWidth:m,marginBlock:m,padding:0,"&-dashed":{borderStyle:"dashed"}}}),z_(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${r*2}px ${d}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:h,background:"transparent",borderRadius:g,boxShadow:"none",transformOrigin:"0 0","&::before":{position:"absolute",inset:`${x}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:x},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:g},z_(e)),H_(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:v},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})}}),H_(e)),{[`&-inline-collapsed ${n}-submenu-arrow, + &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${S})`},"&::after":{transform:`rotate(45deg) translateX(-${S})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${C*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${S})`},"&::before":{transform:`rotate(45deg) translateX(${S})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Zre=(e,t)=>In("Menu",(r,o)=>{let{overrideComponentToken:i}=o;if(t===!1)return[];const{colorBgElevated:a,colorPrimary:l,colorError:s,colorErrorHover:d,colorTextLightSolid:f,controlHeightLG:m,fontSize:h}=r,g=h/7*5,v=Kt(r,{menuItemHeight:m,menuItemPaddingInline:r.margin,menuArrowSize:g,menuHorizontalHeight:m*1.15,menuArrowOffset:`${g*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:a}),C=new yn(f).setAlpha(.65).toRgbString(),S=Kt(v,{colorItemText:C,colorItemTextHover:f,colorGroupTitle:C,colorItemTextSelected:f,colorItemBg:"#001529",colorSubItemBg:"#000c17",colorItemBgActive:"transparent",colorItemBgSelected:l,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemTextDisabled:new yn(f).setAlpha(.25).toRgbString(),colorDangerItemText:s,colorDangerItemTextHover:d,colorDangerItemTextSelected:f,colorDangerItemBgActive:s,colorDangerItemBgSelected:s,menuSubMenuBg:"#001529",colorItemTextSelectedHorizontal:f,colorItemBgSelectedHorizontal:l},Object.assign({},i));return[Qre(v),Wre(v),qre(v),F_(v,"light"),F_(S,"dark"),Gre(v),PL(v),Cc(v,"slide-up"),Cc(v,"slide-down"),qf(v,"zoom-big")]},r=>{const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:l,colorText:s,colorTextDescription:d,colorBgContainer:f,colorFillAlter:m,colorFillContent:h,lineWidth:g,lineWidthBold:v,controlItemBgActive:C,colorBgTextHover:S}=r;return{dropdownWidth:160,zIndexPopup:r.zIndexPopupBase+50,radiusItem:r.borderRadiusLG,radiusSubMenuItem:r.borderRadiusSM,colorItemText:s,colorItemTextHover:s,colorItemTextHoverHorizontal:o,colorGroupTitle:d,colorItemTextSelected:o,colorItemTextSelectedHorizontal:o,colorItemBg:f,colorItemBgHover:S,colorItemBgActive:h,colorSubItemBg:m,colorItemBgSelected:C,colorItemBgSelectedHorizontal:"transparent",colorActiveBarWidth:0,colorActiveBarHeight:v,colorActiveBarBorderSize:g,colorItemTextDisabled:a,colorDangerItemText:i,colorDangerItemTextHover:i,colorDangerItemTextSelected:i,colorDangerItemBgActive:l,colorDangerItemBgSelected:l,itemMarginInline:r.marginXXS}})(e);var Jre=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:t}=e,n=Jre(e,["children"]),r=c.useContext(VC),o=c.useMemo(()=>Object.assign(Object.assign({},r),n),[r,n.prefixCls,n.mode,n.selectable]);return c.createElement(VC.Provider,{value:o},t)},j_=VC;var eoe=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=eoe(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=c.useContext(yt),a=i("menu",t),l=te({[`${a}-item-divider-dashed`]:!!r},n);return c.createElement(gE,Object.assign({className:l},o))},QD=toe;globalThis&&globalThis.__rest;const ZD=c.createContext({}),noe=c.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),og=noe,roe=e=>{var t;const{className:n,children:r,icon:o,title:i,danger:a}=e,{prefixCls:l,firstLevel:s,direction:d,disableMenuItemTitleTooltip:f,inlineCollapsed:m}=c.useContext(og),h=x=>{const E=c.createElement("span",{className:`${l}-title-content`},r);return(!o||Ai(r)&&r.type==="span")&&r&&x&&s&&typeof r=="string"?c.createElement("div",{className:`${l}-inline-collapsed-noicon`},r.charAt(0)):E},{siderCollapsed:g}=c.useContext(ZD);let v=i;typeof i>"u"?v=s?r:"":i===!1&&(v="");const C={title:v};!g&&!m&&(C.title=null,C.open=!1);const S=li(r).length;let y=c.createElement(Rv,Object.assign({},kr(e,["title","icon","danger"]),{className:te({[`${l}-item-danger`]:a,[`${l}-item-only-child`]:(o?S+1:S)===1},n),title:typeof i=="string"?i:void 0}),mr(o,{className:te(Ai(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),h(m));return f||(y=c.createElement(Jf,Object.assign({},C,{placement:d==="rtl"?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`}),y)),y},JD=roe,ooe=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,a=c.useContext(og),{prefixCls:l,inlineCollapsed:s,theme:d,mode:f}=a,m=Nc();let h;if(!r)h=s&&!m.length&&o&&typeof o=="string"?c.createElement("div",{className:`${l}-inline-collapsed-noicon`},o.charAt(0)):c.createElement("span",{className:`${l}-title-content`},o);else{const C=Ai(o)&&o.type==="span";h=c.createElement(c.Fragment,null,mr(r,{className:te(Ai(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),C?o:c.createElement("span",{className:`${l}-title-content`},o))}const g=c.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]),v=f==="horizontal"?[0,8]:[10,0];return c.createElement(og.Provider,{value:g},c.createElement(_v,Object.assign({popupOffset:v},kr(e,["icon"]),{title:h,popupClassName:te(l,n,`${l}-${i||d}`)})))},ek=ooe;var ioe=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:l}=r,s=ioe(r,["label","children","key","type"]),d=a??`tmp-${n}`;return i||l==="group"?l==="group"?c.createElement(Tv,Object.assign({key:d},s,{title:o}),UC(i)):c.createElement(ek,Object.assign({key:d},s,{title:o}),UC(i)):l==="divider"?c.createElement(QD,Object.assign({key:d},s)):c.createElement(JD,Object.assign({key:d},s),o)}return null}).filter(t=>t)}function aoe(e){return c.useMemo(()=>e&&UC(e),[e])}var loe=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=c.useContext(j_),i=o||{},{getPrefixCls:a,getPopupContainer:l,direction:s}=c.useContext(yt),d=a(),{prefixCls:f,className:m,theme:h="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:v,inlineCollapsed:C,siderCollapsed:S,items:y,children:x,rootClassName:E,mode:O,selectable:w,onClick:$}=e,R=loe(e,["prefixCls","className","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick"]),_=kr(R,["collapsedWidth"]),M=aoe(y)||x;(n=i.validator)===null||n===void 0||n.call(i,{mode:O});const T=so(function(){var U;$==null||$.apply(void 0,arguments),(U=i.onClick)===null||U===void 0||U.call(i)}),D=i.mode||O,N=w??i.selectable,P=c.useMemo(()=>S!==void 0?S:C,[C,S]),L={horizontal:{motionName:`${d}-slide-up`},inline:EL(d),other:{motionName:`${d}-zoom-big`}},k=a("menu",f||i.prefixCls),[F,V]=Zre(k,!o),H=te(`${k}-${h}`,m);let W;if(typeof g=="function")W=g;else{const U=g||i.expandIcon;W=mr(U,{className:te(`${k}-submenu-expand-icon`,(r=U==null?void 0:U.props)===null||r===void 0?void 0:r.className)})}const G=c.useMemo(()=>({prefixCls:k,inlineCollapsed:P||!1,direction:s,firstLevel:!0,theme:h,mode:D,disableMenuItemTitleTooltip:v}),[k,P,s,v,h]);return F(c.createElement(j_.Provider,{value:null},c.createElement(og.Provider,{value:G},c.createElement(tp,Object.assign({getPopupContainer:l,overflowedIndicator:c.createElement(BM,null),overflowedIndicatorPopupClassName:`${k}-${h}`,mode:D,selectable:N,onClick:T},_,{inlineCollapsed:P,className:H,prefixCls:k,direction:s,defaultMotions:L,expandIcon:W,ref:t,rootClassName:te(E,V)}),M))))}),uoe=soe,np=c.forwardRef((e,t)=>{const n=c.useRef(null),r=c.useContext(ZD);return c.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var i;(i=n.current)===null||i===void 0||i.focus(o)}})),c.createElement(uoe,Object.assign({ref:n},e,r))});np.Item=JD;np.SubMenu=ek;np.Divider=QD;np.ItemGroup=Tv;const vE=np,tk=()=>{const[e,t]=c.useState(!1);return c.useEffect(()=>{t(PZ())},[]),e};function coe(e){let{className:t,direction:n,index:r,marginDirection:o,children:i,split:a,wrap:l}=e;const{horizontalSize:s,verticalSize:d,latestIndex:f,supportFlexGap:m}=c.useContext(nk);let h={};return m||(n==="vertical"?r{const{getPrefixCls:t,space:n,direction:r}=c.useContext(yt),{size:o=(n==null?void 0:n.size)||"small",align:i,className:a,rootClassName:l,children:s,direction:d="horizontal",prefixCls:f,split:m,style:h,wrap:g=!1}=e,v=doe(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap"]),C=tk(),[S,y]=c.useMemo(()=>(Array.isArray(o)?o:[o,o]).map(L=>poe(L)),[o]),x=li(s,{keepEmpty:!0}),E=i===void 0&&d==="horizontal"?"center":i,O=t("space",f),[w,$]=vL(O),R=te(O,$,`${O}-${d}`,{[`${O}-rtl`]:r==="rtl",[`${O}-align-${E}`]:E},a,l),_=`${O}-item`,M=r==="rtl"?"marginLeft":"marginRight";let T=0;const D=x.map((L,k)=>{L!=null&&(T=k);const F=L&&L.key||`${_}-${k}`;return c.createElement(coe,{className:_,key:F,direction:d,index:k,marginDirection:M,split:m,wrap:g},L)}),N=c.useMemo(()=>({horizontalSize:S,verticalSize:y,latestIndex:T,supportFlexGap:C}),[S,y,T,C]);if(x.length===0)return null;const P={};return g&&(P.flexWrap="wrap",C||(P.marginBottom=-y)),C&&(P.columnGap=S,P.rowGap=y),w(c.createElement("div",Object.assign({className:R,style:Object.assign(Object.assign({},P),h)},v),c.createElement(nk.Provider,{value:N},D)))},rk=moe;rk.Compact=NQ;const WC=rk,hoe=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}}}}}},goe=hoe,voe=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:l,motionDurationMid:s,dropdownPaddingVertical:d,fontSize:f,dropdownEdgeChildPadding:m,colorTextDisabled:h,fontSizeIcon:g,controlPaddingHorizontal:v,colorBgElevated:C}=e;return[{[t]:Object.assign(Object.assign({},mn(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 > ${l}-down`]:{fontSize:g,transform:"none"},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${l}-down`]:{fontSize:g},[`${l}-down::before`]:{transition:`transform ${s}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},[` + &-hidden, + &-menu-hidden, + &-menu-submenu-hidden + `]:{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:Kx},[`&${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:Xx},[`&${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:Gx},[`&${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:Yx}})},iE(e,{colorBg:C,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:m,listStyleType:"none",backgroundColor:C,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},$f(e)),{[`${n}-item-group-title`]:{padding:`${d}px ${v}px`,color:e.colorTextDescription,transition:`all ${s}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:f,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${s}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${d}px ${v}px`,color:e.colorText,fontWeight:"normal",fontSize:f,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${s}`,borderRadius:e.borderRadiusSM,["&:hover, &-active"]:{backgroundColor:e.controlItemBgHover}},$f(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:h,cursor:"not-allowed","&:hover":{color:h,backgroundColor:C,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:h,backgroundColor:C,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[Cc(e,"slide-up"),Cc(e,"slide-down"),Qh(e,"move-up"),Qh(e,"move-down"),qf(e,"zoom-big")]]},ok=In("Dropdown",(e,t)=>{let{rootPrefixCls:n}=t;const{marginXXS:r,sizePopupArrow:o,controlHeight:i,fontSize:a,lineHeight:l,paddingXXS:s,componentCls:d,borderRadiusLG:f}=e,m=(i-a*l)/2,{dropdownArrowOffset:h}=oE({contentRadius:f}),g=Kt(e,{menuCls:`${d}-menu`,rootPrefixCls:n,dropdownArrowDistance:o/2+r,dropdownArrowOffset:h,dropdownPaddingVertical:m,dropdownEdgeChildPadding:s});return[voe(g),goe(g)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));var yoe=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}=c.useContext(yt),{prefixCls:o,type:i="default",danger:a,disabled:l,loading:s,onClick:d,htmlType:f,children:m,className:h,menu:g,arrow:v,autoFocus:C,overlay:S,trigger:y,align:x,open:E,onOpenChange:O,placement:w,getPopupContainer:$,href:R,icon:_=c.createElement(BM,null),title:M,buttonsRender:T=Ce=>Ce,mouseEnterDelay:D,mouseLeaveDelay:N,overlayClassName:P,overlayStyle:L,destroyPopupOnHide:k,dropdownRender:F}=e,V=yoe(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`,[G,U]=ok(H),X={menu:g,arrow:v,autoFocus:C,align:x,disabled:l,trigger:l?[]:y,onOpenChange:O,getPopupContainer:$||t,mouseEnterDelay:D,mouseLeaveDelay:N,overlayClassName:P,overlayStyle:L,destroyPopupOnHide:k,dropdownRender:F},{compactSize:Q,compactItemClassnames:Y}=Tc(H,r),q=te(W,Y,h,U);"overlay"in e&&(X.overlay=S),"open"in e&&(X.open=E),"placement"in e?X.placement=w:X.placement=r==="rtl"?"bottomLeft":"bottomRight";const ne=c.createElement(oi,{type:i,danger:a,disabled:l,loading:s,onClick:d,htmlType:f,href:R,title:M},m),le=c.createElement(oi,{type:i,danger:a,icon:_}),[we,Oe]=T([ne,le]);return G(c.createElement(WC.Compact,Object.assign({className:q,size:Q,block:!0},V),we,c.createElement(Tf,Object.assign({},X),Oe)))};ik.__ANT_BUTTON=!0;const boe=ik,Pv=e=>{const{menu:t,arrow:n,prefixCls:r,children:o,trigger:i,disabled:a,dropdownRender:l,getPopupContainer:s,overlayClassName:d,rootClassName:f,open:m,onOpenChange:h,visible:g,onVisibleChange:v,mouseEnterDelay:C=.15,mouseLeaveDelay:S=.1,autoAdjustOverflow:y=!0,placement:x="",overlay:E,transitionName:O}=e,{getPopupContainer:w,getPrefixCls:$,direction:R}=c.useContext(yt),_=c.useMemo(()=>{const q=$();return O!==void 0?O:x.includes("top")?`${q}-slide-down`:`${q}-slide-up`},[$,x,O]),M=c.useMemo(()=>x?x.includes("Center")?x.slice(0,x.indexOf("Center")):x:R==="rtl"?"bottomRight":"bottomLeft",[x,R]),T=$("dropdown",r),[D,N]=ok(T),{token:P}=vD.useToken(),L=c.Children.only(o),k=mr(L,{className:te(`${T}-trigger`,{[`${T}-rtl`]:R==="rtl"},L.props.className),disabled:a}),F=a?[]:i;let V;F&&F.includes("contextMenu")&&(V=!0);const[H,W]=Lr(!1,{value:m??g}),G=so(q=>{h==null||h(q),v==null||v(q),W(q)}),U=te(d,f,N,{[`${T}-rtl`]:R==="rtl"}),X=gD({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:y,offset:P.marginXXS,arrowWidth:n?P.sizePopupArrow:0,borderRadius:P.borderRadius}),Q=c.useCallback(()=>{W(!1)},[]),Y=()=>{let q;return t!=null&&t.items?q=c.createElement(vE,Object.assign({},t)):typeof E=="function"?q=E():q=E,l&&(q=l(q)),q=c.Children.only(typeof q=="string"?c.createElement("span",null,q):q),c.createElement(qD,{prefixCls:`${T}-menu`,expandIcon:c.createElement("span",{className:`${T}-menu-submenu-arrow`},c.createElement(qS,{className:`${T}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Q,validator:ne=>{}},c.createElement(Sc,null,q))};return D(c.createElement(lre,Object.assign({alignPoint:V},kr(e,["rootClassName"]),{mouseEnterDelay:C,mouseLeaveDelay:S,visible:H,builtinPlacements:X,arrow:!!n,overlayClassName:U,prefixCls:T,getPopupContainer:s||w,transitionName:_,trigger:F,overlay:Y,placement:M,onVisibleChange:G}),k))};Pv.Button=boe;const Soe=aD(Pv,"dropdown",e=>e),Coe=e=>c.createElement(Soe,Object.assign({},e),c.createElement("span",null));Pv._InternalPanelDoNotUseOrYouWillBeFired=Coe;const Tf=Pv,ak=c.createContext(null),xoe=ak.Provider,lk=c.createContext(null),Eoe=lk.Provider;var woe=["prefixCls","className","style","checked","disabled","defaultChecked","type","onChange"],sk=c.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-checkbox":r,i=e.className,a=e.style,l=e.checked,s=e.disabled,d=e.defaultChecked,f=d===void 0?!1:d,m=e.type,h=m===void 0?"checkbox":m,g=e.onChange,v=vt(e,woe),C=c.useRef(null),S=Lr(f,{value:l}),y=ue(S,2),x=y[0],E=y[1];c.useImperativeHandle(t,function(){return{focus:function(){var R;(R=C.current)===null||R===void 0||R.focus()},blur:function(){var R;(R=C.current)===null||R===void 0||R.blur()},input:C.current}});var O=te(o,i,(n={},Z(n,"".concat(o,"-checked"),x),Z(n,"".concat(o,"-disabled"),s),n)),w=function(R){s||("checked"in e||E(R.target.checked),g==null||g({target:j(j({},e),{},{checked:R.target.checked}),stopPropagation:function(){R.stopPropagation()},preventDefault:function(){R.preventDefault()},nativeEvent:R.nativeEvent}))};return c.createElement("span",{className:O,style:a},c.createElement("input",je({},v,{className:"".concat(o,"-input"),ref:C,onChange:w,disabled:s,checked:!!x,type:h})),c.createElement("span",{className:"".concat(o,"-inner")}))});const Ooe=new Dt("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),$oe=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},mn(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"}})}},Ioe=e=>{const{componentCls:t,radioWrapperMarginRight:n,radioCheckedColor:r,radioSize:o,motionDurationSlow:i,motionDurationMid:a,motionEaseInOut:l,motionEaseInOutCirc:s,radioButtonBg:d,colorBorder:f,lineWidth:m,radioDotSize:h,colorBgContainerDisabled:g,colorTextDisabled:v,paddingXS:C,radioDotDisabledColor:S,lineType:y,radioDotDisabledSize:x,wireframe:E,colorWhite:O}=e,w=`${t}-inner`;return{[`${t}-wrapper`]:Object.assign(Object.assign({},mn(e)),{position:"relative",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:`${m}px ${y} ${r}`,borderRadius:"50%",visibility:"hidden",animationName:Ooe,animationDuration:i,animationTimingFunction:l,animationFillMode:"both",content:'""'},[t]:Object.assign(Object.assign({},mn(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center"}),[`${t}-wrapper:hover &, + &:hover ${w}`]:{borderColor:r},[`${t}-input:focus-visible + ${w}`]:Object.assign({},Ba(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:E?r:O,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:d,borderColor:f,borderStyle:"solid",borderWidth:m,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,insetBlockEnd:0,insetInlineStart:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[w]:{borderColor:r,backgroundColor:E?d:r,"&::after":{transform:`scale(${h/o})`,opacity:1,transition:`all ${i} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[w]:{backgroundColor:g,borderColor:f,cursor:"not-allowed","&::after":{backgroundColor:S}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:v,cursor:"not-allowed"},[`&${t}-checked`]:{[w]:{"&::after":{transform:`scale(${x/o})`}}}},[`span${t} + *`]:{paddingInlineStart:C,paddingInlineEnd:C}})}},Roe=e=>{const{radioButtonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:a,motionDurationSlow:l,motionDurationMid:s,radioButtonPaddingHorizontal:d,fontSize:f,radioButtonBg:m,fontSizeLG:h,controlHeightLG:g,controlHeightSM:v,paddingXS:C,borderRadius:S,borderRadiusSM:y,borderRadiusLG:x,radioCheckedColor:E,radioButtonCheckedBg:O,radioButtonHoverColor:w,radioButtonActiveColor:$,radioSolidCheckedColor:R,colorTextDisabled:_,colorBgContainerDisabled:M,radioDisabledButtonCheckedColor:T,radioDisabledButtonCheckedBg:D}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:d,paddingBlock:0,color:t,fontSize:f,lineHeight:`${n-o*2}px`,background:m,border:`${o}px ${i} ${a}`,borderBlockStartWidth:o+.02,borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${s}`,`background ${s}`,`border-color ${s}`,`box-shadow ${s}`].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 ${l}`,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:h,lineHeight:`${g-o*2}px`,"&:first-child":{borderStartStartRadius:x,borderEndStartRadius:x},"&:last-child":{borderStartEndRadius:x,borderEndEndRadius:x}},[`${r}-group-small &`]:{height:v,paddingInline:C-o,paddingBlock:0,lineHeight:`${v-o*2}px`,"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},"&:hover":{position:"relative",color:E},"&:has(:focus-visible)":Object.assign({},Ba(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:E,background:O,borderColor:E,"&::before":{backgroundColor:E},"&:first-child":{borderColor:E},"&:hover":{color:w,borderColor:w,"&::before":{backgroundColor:w}},"&:active":{color:$,borderColor:$,"&::before":{backgroundColor:$}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:R,background:E,borderColor:E,"&:hover":{color:R,background:w,borderColor:w},"&:active":{color:R,background:$,borderColor:$}},"&-disabled":{color:_,backgroundColor:M,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:_,backgroundColor:M,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:T,backgroundColor:D,borderColor:a,boxShadow:"none"}}}},uk=In("Radio",e=>{const{padding:t,lineWidth:n,controlItemBgActiveDisabled:r,colorTextDisabled:o,colorBgContainer:i,fontSizeLG:a,controlOutline:l,colorPrimaryHover:s,colorPrimaryActive:d,colorText:f,colorPrimary:m,marginXS:h,controlOutlineWidth:g,colorTextLightSolid:v,wireframe:C}=e,S=`0 0 0 ${g}px ${l}`,y=S,x=a,E=4,O=x-E*2,w=C?O:x-(E+n)*2,$=m,R=f,_=s,M=d,T=t-n,P=Kt(e,{radioFocusShadow:S,radioButtonFocusShadow:y,radioSize:x,radioDotSize:w,radioDotDisabledSize:O,radioCheckedColor:$,radioDotDisabledColor:o,radioSolidCheckedColor:v,radioButtonBg:i,radioButtonCheckedBg:i,radioButtonColor:R,radioButtonHoverColor:_,radioButtonActiveColor:M,radioButtonPaddingHorizontal:T,radioDisabledButtonCheckedBg:r,radioDisabledButtonCheckedColor:o,radioWrapperMarginRight:h});return[$oe(P),Ioe(P),Roe(P)]});var _oe=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=c.useContext(ak),i=c.useContext(lk),{getPrefixCls:a,direction:l}=c.useContext(yt),s=c.useRef(null),d=zo(t,s),{isFormItemInput:f}=c.useContext(sa),m=M=>{var T,D;(T=e.onChange)===null||T===void 0||T.call(e,M),(D=o==null?void 0:o.onChange)===null||D===void 0||D.call(o,M)},{prefixCls:h,className:g,rootClassName:v,children:C,style:S}=e,y=_oe(e,["prefixCls","className","rootClassName","children","style"]),x=a("radio",h),E=((o==null?void 0:o.optionType)||i)==="button"?`${x}-button`:x,[O,w]=uk(x),$=Object.assign({},y),R=c.useContext(jl);o&&($.name=o.name,$.onChange=m,$.checked=e.value===o.value,$.disabled=(n=$.disabled)!==null&&n!==void 0?n:o.disabled),$.disabled=(r=$.disabled)!==null&&r!==void 0?r:R;const _=te(`${E}-wrapper`,{[`${E}-wrapper-checked`]:$.checked,[`${E}-wrapper-disabled`]:$.disabled,[`${E}-wrapper-rtl`]:l==="rtl",[`${E}-wrapper-in-form-item`]:f},g,v,w);return O(c.createElement("label",{className:_,style:S,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},c.createElement(sk,Object.assign({},$,{type:"radio",prefixCls:E,ref:d})),C!==void 0?c.createElement("span",null,C):null))},Poe=c.forwardRef(Toe),ig=Poe,Noe=c.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=c.useContext(yt),o=c.useContext(Bi),[i,a]=Lr(e.defaultValue,{value:e.value}),l=P=>{const L=i,k=P.target.value;"value"in e||a(k);const{onChange:F}=e;F&&k!==L&&F(P)},{prefixCls:s,className:d,rootClassName:f,options:m,buttonStyle:h="outline",disabled:g,children:v,size:C,style:S,id:y,onMouseEnter:x,onMouseLeave:E,onFocus:O,onBlur:w}=e,$=n("radio",s),R=`${$}-group`,[_,M]=uk($);let T=v;m&&m.length>0&&(T=m.map(P=>typeof P=="string"||typeof P=="number"?c.createElement(ig,{key:P.toString(),prefixCls:$,disabled:g,value:P,checked:i===P},P):c.createElement(ig,{key:`radio-group-value-options-${P.value}`,prefixCls:$,disabled:P.disabled||g,value:P.value,checked:i===P.value,style:P.style},P.label)));const D=C||o,N=te(R,`${R}-${h}`,{[`${R}-${D}`]:D,[`${R}-rtl`]:r==="rtl"},d,f,M);return _(c.createElement("div",Object.assign({},jq(e),{className:N,style:S,onMouseEnter:x,onMouseLeave:E,onFocus:O,onBlur:w,id:y,ref:t}),c.createElement(xoe,{value:{onChange:l,value:i,disabled:e.disabled,name:e.name,optionType:e.optionType}},T)))}),Moe=c.memo(Noe);var Aoe=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}=c.useContext(yt),{prefixCls:r}=e,o=Aoe(e,["prefixCls"]),i=n("radio",r);return c.createElement(Eoe,{value:"button"},c.createElement(ig,Object.assign({prefixCls:i},o,{type:"radio",ref:t})))},Doe=c.forwardRef(Loe),Nv=ig;Nv.Button=Doe;Nv.Group=Moe;Nv.__ANT_RADIO=!0;const ck=Nv,dk=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),rp=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),ag=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),yE=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},rp(Kt(e,{inputBorderHoverColor:e.colorBorder})))}),fk=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}},bE=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),Mv=(e,t)=>{const{componentCls:n,colorError:r,colorWarning:o,colorErrorOutline:i,colorWarningOutline:a,colorErrorBorderHover:l,colorWarningBorderHover:s}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:l},"&:focus, &-focused":Object.assign({},ag(Kt(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:s},"&:focus, &-focused":Object.assign({},ag(Kt(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:a}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},op=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}`},dk(e.colorTextPlaceholder)),{"&:hover":Object.assign({},rp(e)),"&:focus, &-focused":Object.assign({},ag(e)),"&-disabled, &[disabled]":Object.assign({},yE(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({},fk(e)),"&-sm":Object.assign({},bE(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),pk=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({},fk(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},bE(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"},Of()),{[`${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`]:{display:"inline-flex"},[`& > ${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}}}})}},koe=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({},mn(e)),op(e)),Mv(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"}})}},Foe=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`}}}},Boe=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},op(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},rp(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","&:focus":{boxShadow:"none !important"}},"&::before":{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}}}),Foe(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),Mv(e,`${t}-affix-wrapper`))}},zoe=e=>{const{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:i}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},mn(e)),pk(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o}},"&-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({},yE(e))}}})}},Hoe=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 SE(e){return Kt(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 joe=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"}},[`&-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"}}}}}},CE=In("Input",e=>{const t=SE(e);return[koe(t),joe(t),Boe(t),zoe(t),Hoe(t),Sv(t)]});function Voe(e,t,n){var r=n||{},o=r.noTrailing,i=o===void 0?!1:o,a=r.noLeading,l=a===void 0?!1:a,s=r.debounceMode,d=s===void 0?void 0:s,f,m=!1,h=0;function g(){f&&clearTimeout(f)}function v(S){var y=S||{},x=y.upcomingOnly,E=x===void 0?!1:x;g(),m=!E}function C(){for(var S=arguments.length,y=new Array(S),x=0;xe?l?(h=Date.now(),i||(f=setTimeout(d?$:w,e))):w():i!==!0&&(f=setTimeout(d?$:w,d===void 0?e-O:e))}return C.cancel=v,C}function Uoe(e,t,n){var r=n||{},o=r.atBegin,i=o===void 0?!1:o;return Voe(e,t,{debounceMode:i!==!1})}function mk(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function Woe(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!!(n||r)||o===!1}function Koe(e,t,n,r){for(var o=new Set(e),i=new Set,a=0;a<=n;a+=1){var l=t.get(a)||new Set;l.forEach(function(m){var h=m.key,g=m.node,v=m.children,C=v===void 0?[]:v;o.has(h)&&!r(g)&&C.filter(function(S){return!r(S.node)}).forEach(function(S){o.add(S.key)})})}for(var s=new Set,d=n;d>=0;d-=1){var f=t.get(d)||new Set;f.forEach(function(m){var h=m.parent,g=m.node;if(!(r(g)||!m.parent||s.has(m.parent.key))){if(r(m.parent.node)){s.add(h.key);return}var v=!0,C=!1;(h.children||[]).filter(function(S){return!r(S.node)}).forEach(function(S){var y=S.key,x=o.has(y);v&&!x&&(v=!1),!C&&(x||i.has(y))&&(C=!0)}),v&&o.add(h.key),C&&i.add(h.key),s.add(h.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(mk(i,o))}}function Goe(e,t,n,r,o){for(var i=new Set(e),a=new Set(t),l=0;l<=r;l+=1){var s=n.get(l)||new Set;s.forEach(function(h){var g=h.key,v=h.node,C=h.children,S=C===void 0?[]:C;!i.has(g)&&!a.has(g)&&!o(v)&&S.filter(function(y){return!o(y.node)}).forEach(function(y){i.delete(y.key)})})}a=new Set;for(var d=new Set,f=r;f>=0;f-=1){var m=n.get(f)||new Set;m.forEach(function(h){var g=h.parent,v=h.node;if(!(o(v)||!h.parent||d.has(h.parent.key))){if(o(h.parent.node)){d.add(g.key);return}var C=!0,S=!1;(g.children||[]).filter(function(y){return!o(y.node)}).forEach(function(y){var x=y.key,E=i.has(x);C&&!E&&(C=!1),!S&&(E||a.has(x))&&(S=!0)}),C||i.delete(g.key),S&&a.add(g.key),d.add(g.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(mk(a,i))}}function ec(e,t,n,r){var o=[],i;r?i=r:i=Woe;var a=new Set(e.filter(function(f){var m=!!n[f];return m||o.push(f),m})),l=new Map,s=0;Object.keys(n).forEach(function(f){var m=n[f],h=m.level,g=l.get(h);g||(g=new Set,l.set(h,g)),g.add(m),s=Math.max(s,h)}),En(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(f){return"'".concat(f,"'")}).join(", ")));var d;return t===!0?d=Koe(a,l,s,i):d=Goe(a,t.halfCheckedKeys,l,s,i),d}var xE=c.createContext(null),Xoe=function(t){for(var n=t.prefixCls,r=t.level,o=t.isStart,i=t.isEnd,a="".concat(n,"-indent-unit"),l=[],s=0;s=0&&n.splice(r,1),n}function xa(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function EE(e){return e.split("-")}function hk(e,t){return"".concat(e,"-").concat(t)}function Joe(e){return e&&e.type&&e.type.isTreeNode}function eie(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 l=a.key,s=a.children;n.push(l),o(s)})}return o(r.children),n}function tie(e){if(e.parent){var t=EE(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function nie(e){var t=EE(e.pos);return Number(t[t.length-1])===0}function W_(e,t,n,r,o,i,a,l,s,d){var f,m=e.clientX,h=e.clientY,g=e.target.getBoundingClientRect(),v=g.top,C=g.height,S=(d==="rtl"?-1:1)*(((o==null?void 0:o.x)||0)-m),y=(S-12)/r,x=l[n.props.eventKey];if(h-1.5?i({dragNode:N,dropNode:P,dropPosition:1})?M=1:L=!1:i({dragNode:N,dropNode:P,dropPosition:0})?M=0:i({dragNode:N,dropNode:P,dropPosition:1})?M=1:L=!1:i({dragNode:N,dropNode:P,dropPosition:1})?M=1:L=!1,{dropPosition:M,dropLevelOffset:T,dropTargetKey:x.key,dropTargetPos:x.pos,dragOverNodeKey:_,dropContainerKey:M===0?null:((f=x.parent)===null||f===void 0?void 0:f.key)||null,dropAllowed:L}}function K_(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function lb(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(Ot(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return En(!1,"`checkedKeys` is not an array or an object"),null;return t}function KC(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,l=i.node;l.disabled||a&&r(a.key)}}}return(e||[]).forEach(function(o){r(o)}),Pe(n)}var rie=["children"];function ip(e,t){return e??t}function lg(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 gk(e){function t(n){var r=li(n);return r.map(function(o){if(!Joe(o))return En(!o,"Tree/TreeNode can only accept TreeNode as children."),null;var i=o.key,a=o.props,l=a.children,s=vt(a,rie),d=j({key:i},s),f=t(l);return f.length&&(d.children=f),d}).filter(function(o){return o})}return t(e)}function sb(e,t,n){var r=lg(n),o=r._title,i=r.key,a=r.children,l=new Set(t===!0?[]:t),s=[];function d(f){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return f.map(function(h,g){for(var v=hk(m?m.pos:"0",g),C=ip(h[i],v),S,y=0;y1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,i=t.externalGetKey,a=t.childrenPropName,l=t.fieldNames,s=arguments.length>2?arguments[2]:void 0,d=i||s,f={},m={},h={posEntities:f,keyEntities:m};return n&&(h=n(h)||h),oie(e,function(g){var v=g.node,C=g.index,S=g.pos,y=g.key,x=g.parentPos,E=g.level,O=g.nodes,w={node:v,nodes:O,index:C,key:y,pos:S,level:E},$=ip(y,S);f[S]=w,m[$]=w,w.parent=f[x],w.parent&&(w.parent.children=w.parent.children||[],w.parent.children.push(w)),r&&r(w,h)},{externalGetKey:d,childrenPropName:a,fieldNames:l}),o&&o(h),h}function Kd(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,i=t.loadingKeys,a=t.checkedKeys,l=t.halfCheckedKeys,s=t.dragOverNodeKey,d=t.dropPosition,f=t.keyEntities,m=f[e],h={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:l.indexOf(e)!==-1,pos:String(m?m.pos:""),dragOver:s===e&&d===0,dragOverGapTop:s===e&&d===-1,dragOverGapBottom:s===e&&d===1};return h}function Xn(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,i=e.loaded,a=e.loading,l=e.halfChecked,s=e.dragOver,d=e.dragOverGapTop,f=e.dragOverGapBottom,m=e.pos,h=e.active,g=e.eventKey,v=j(j({},t),{},{expanded:n,selected:r,checked:o,loaded:i,loading:a,halfChecked:l,dragOver:s,dragOverGapTop:d,dragOverGapBottom:f,pos:m,active:h,key:g});return"props"in v||Object.defineProperty(v,"props",{get:function(){return En(!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 iie=new Dt("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),aie=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},mn(e)),{display:"inline-flex"}),[n]:Object.assign(Object.assign({},mn(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:e.marginXS},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},mn(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"start",transform:`translate(0, ${e.lineHeight*e.fontSize/2-e.checkboxSize/2}px)`,[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},Ba(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}})},{[t]:{"&-indeterminate":{[`${t}-inner`]:{"&: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}:hover ${t}:after`]:{visibility:"visible"},[` + ${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}`}},"&:after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderRadius:e.borderRadiusSM,visibility:"hidden",border:`${e.lineWidthBold}px solid ${e.colorPrimary}`,animationName:iie,animationDuration:e.motionDurationSlow,animationTimingFunction:"ease-in-out",animationFillMode:"backwards",content:'""',transition:`all ${e.motionDurationSlow}`}},[` + ${n}-checked:not(${n}-disabled), + ${t}-checked:not(${t}-disabled) + `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}:after`]:{borderColor:e.colorPrimaryHover}}},{[`${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 vk(e,t){const n=Kt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[aie(n)]}const yk=In("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[vk(n,e)]});var lie=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{defaultValue:n,children:r,options:o=[],prefixCls:i,className:a,rootClassName:l,style:s,onChange:d}=e,f=lie(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]);const{getPrefixCls:m,direction:h}=c.useContext(yt),[g,v]=c.useState(f.value||n||[]),[C,S]=c.useState([]);c.useEffect(()=>{"value"in f&&v(f.value||[])},[f.value]);const y=()=>o.map(N=>typeof N=="string"||typeof N=="number"?{label:N,value:N}:N),x=N=>{S(P=>P.filter(L=>L!==N))},E=N=>{S(P=>[].concat(Pe(P),[N]))},O=N=>{const P=g.indexOf(N.value),L=Pe(g);P===-1?L.push(N.value):L.splice(P,1),"value"in f||v(L);const k=y();d==null||d(L.filter(F=>C.includes(F)).sort((F,V)=>{const H=k.findIndex(G=>G.value===F),W=k.findIndex(G=>G.value===V);return H-W}))},w=m("checkbox",i),$=`${w}-group`,[R,_]=yk(w),M=kr(f,["value","disabled"]);o&&o.length>0&&(r=y().map(N=>c.createElement(Sk,{prefixCls:w,key:N.value.toString(),disabled:"disabled"in N?N.disabled:f.disabled,value:N.value,checked:g.includes(N.value),onChange:N.onChange,className:`${$}-item`,style:N.style},N.label)));const T={toggleOption:O,value:g,disabled:f.disabled,name:f.name,registerValue:E,cancelValue:x},D=te($,{[`${$}-rtl`]:h==="rtl"},a,l,_);return R(c.createElement("div",Object.assign({className:D,style:s},M,{ref:t}),c.createElement(bk.Provider,{value:T},r)))},uie=c.forwardRef(sie),cie=c.memo(uie);var die=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,className:o,rootClassName:i,children:a,indeterminate:l=!1,style:s,onMouseEnter:d,onMouseLeave:f,skipGroup:m=!1,disabled:h}=e,g=die(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]);const{getPrefixCls:v,direction:C}=c.useContext(yt),S=c.useContext(bk),{isFormItemInput:y}=c.useContext(sa),x=c.useContext(jl),E=(n=(S==null?void 0:S.disabled)||h)!==null&&n!==void 0?n:x,O=c.useRef(g.value);c.useEffect(()=>{S==null||S.registerValue(g.value)},[]),c.useEffect(()=>{if(!m)return g.value!==O.current&&(S==null||S.cancelValue(O.current),S==null||S.registerValue(g.value),O.current=g.value),()=>S==null?void 0:S.cancelValue(g.value)},[g.value]);const w=v("checkbox",r),[$,R]=yk(w),_=Object.assign({},g);S&&!m&&(_.onChange=function(){g.onChange&&g.onChange.apply(g,arguments),S.toggleOption&&S.toggleOption({label:a,value:g.value})},_.name=S.name,_.checked=S.value.includes(g.value));const M=te({[`${w}-wrapper`]:!0,[`${w}-rtl`]:C==="rtl",[`${w}-wrapper-checked`]:_.checked,[`${w}-wrapper-disabled`]:E,[`${w}-wrapper-in-form-item`]:y},o,i,R),T=te({[`${w}-indeterminate`]:l},R),D=l?"mixed":void 0;return $(c.createElement("label",{className:M,style:s,onMouseEnter:d,onMouseLeave:f},c.createElement(sk,Object.assign({"aria-checked":D},_,{prefixCls:w,className:T,disabled:E,ref:t})),a!==void 0&&c.createElement("span",null,a)))},pie=c.forwardRef(fie),Sk=pie,OE=Sk;OE.Group=cie;OE.__ANT_CHECKBOX=!0;const sg=OE,mie=c.createContext({}),Ck=mie,hie=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"}}}},gie=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},vie=(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},GC=(e,t)=>vie(e,t),yie=(e,t,n)=>({[`@media (min-width: ${t}px)`]:Object.assign({},GC(e,n))}),bie=In("Grid",e=>[hie(e)]),Sie=In("Grid",e=>{const t=Kt(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[gie(t),GC(t,""),GC(t,"-xs"),Object.keys(n).map(r=>yie(t,n[r],r)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]});var Cie=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}=c.useContext(yt),{gutter:o,wrap:i,supportFlexGap:a}=c.useContext(Ck),{prefixCls:l,span:s,order:d,offset:f,push:m,pull:h,className:g,children:v,flex:C,style:S}=e,y=Cie(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),x=n("col",l),[E,O]=Sie(x);let w={};Eie.forEach(_=>{let M={};const T=e[_];typeof T=="number"?M.span=T:typeof T=="object"&&(M=T||{}),delete y[_],w=Object.assign(Object.assign({},w),{[`${x}-${_}-${M.span}`]:M.span!==void 0,[`${x}-${_}-order-${M.order}`]:M.order||M.order===0,[`${x}-${_}-offset-${M.offset}`]:M.offset||M.offset===0,[`${x}-${_}-push-${M.push}`]:M.push||M.push===0,[`${x}-${_}-pull-${M.pull}`]:M.pull||M.pull===0,[`${x}-rtl`]:r==="rtl"})});const $=te(x,{[`${x}-${s}`]:s!==void 0,[`${x}-order-${d}`]:d,[`${x}-offset-${f}`]:f,[`${x}-push-${m}`]:m,[`${x}-pull-${h}`]:h},g,w,O),R={};if(o&&o[0]>0){const _=o[0]/2;R.paddingLeft=_,R.paddingRight=_}if(o&&o[1]>0&&!a){const _=o[1]/2;R.paddingTop=_,R.paddingBottom=_}return C&&(R.flex=xie(C),i===!1&&!R.minWidth&&(R.minWidth=0)),E(c.createElement("div",Object.assign({},y,{style:Object.assign(Object.assign({},R),S),className:$,ref:t}),v))}),Oie=wie;var $ie=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 Iie=c.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:i,style:a,children:l,gutter:s=0,wrap:d}=e,f=$ie(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:m,direction:h}=c.useContext(yt),[g,v]=c.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[C,S]=c.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),y=G_(o,C),x=G_(r,C),E=tk(),O=c.useRef(s),w=fD();c.useEffect(()=>{const H=w.subscribe(W=>{S(W);const G=O.current||0;(!Array.isArray(G)&&typeof G=="object"||Array.isArray(G)&&(typeof G[0]=="object"||typeof G[1]=="object"))&&v(W)});return()=>w.unsubscribe(H)},[]);const $=()=>{const H=[void 0,void 0];return(Array.isArray(s)?s:[s,void 0]).forEach((G,U)=>{if(typeof G=="object")for(let X=0;X0?T[0]/-2:void 0,L=T[1]!=null&&T[1]>0?T[1]/-2:void 0;P&&(N.marginLeft=P,N.marginRight=P),E?[,N.rowGap]=T:L&&(N.marginTop=L,N.marginBottom=L);const[k,F]=T,V=c.useMemo(()=>({gutter:[k,F],wrap:d,supportFlexGap:E}),[k,F,d,E]);return _(c.createElement(Ck.Provider,{value:V},c.createElement("div",Object.assign({},f,{className:D,style:Object.assign(Object.assign({},N),a),ref:t}),l)))}),Rie=Iie;function X_(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)}}const _ie=e=>{const{getPrefixCls:t,direction:n}=c.useContext(yt),{prefixCls:r,className:o=""}=e,i=t("input-group",r),a=t("input"),[l,s]=CE(a),d=te(i,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},s,o),f=c.useContext(sa),m=c.useMemo(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return l(c.createElement("span",{className:d,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},c.createElement(sa.Provider,{value:m},e.children)))},Tie=_ie;function Su(e){return!!(e.addonBefore||e.addonAfter)}function ub(e){return!!(e.prefix||e.suffix||e.allowClear)}function Gd(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 Pie(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 XC(e){return typeof e>"u"||e===null?"":String(e)}var xk=function(t){var n,r,o=t.inputElement,i=t.prefixCls,a=t.prefix,l=t.suffix,s=t.addonBefore,d=t.addonAfter,f=t.className,m=t.style,h=t.disabled,g=t.readOnly,v=t.focused,C=t.triggerFocus,S=t.allowClear,y=t.value,x=t.handleReset,E=t.hidden,O=t.classes,w=t.classNames,$=t.dataAttrs,R=t.styles,_=c.useRef(null),M=function(U){var X;(X=_.current)!==null&&X!==void 0&&X.contains(U.target)&&(C==null||C())},T=function(){var U;if(!S)return null;var X=!h&&!g&&y,Q="".concat(i,"-clear-icon"),Y=Ot(S)==="object"&&S!==null&&S!==void 0&&S.clearIcon?S.clearIcon:"✖";return ge.createElement("span",{onClick:x,onMouseDown:function(ne){return ne.preventDefault()},className:te(Q,(U={},Z(U,"".concat(Q,"-hidden"),!X),Z(U,"".concat(Q,"-has-suffix"),!!l),U)),role:"button",tabIndex:-1},Y)},D=c.cloneElement(o,{value:y,hidden:E,className:te((n=o.props)===null||n===void 0?void 0:n.className,!ub(t)&&!Su(t)&&f)||null,style:j(j({},(r=o.props)===null||r===void 0?void 0:r.style),!ub(t)&&!Su(t)?m:{})});if(ub(t)){var N,P="".concat(i,"-affix-wrapper"),L=te(P,(N={},Z(N,"".concat(P,"-disabled"),h),Z(N,"".concat(P,"-focused"),v),Z(N,"".concat(P,"-readonly"),g),Z(N,"".concat(P,"-input-with-clear-btn"),l&&S&&y),N),!Su(t)&&f,O==null?void 0:O.affixWrapper),k=(l||S)&&ge.createElement("span",{className:te("".concat(i,"-suffix"),w==null?void 0:w.suffix),style:R==null?void 0:R.suffix},T(),l);D=ge.createElement("span",je({className:L,style:Su(t)?void 0:m,hidden:!Su(t)&&E,onClick:M},$==null?void 0:$.affixWrapper,{ref:_}),a&&ge.createElement("span",{className:te("".concat(i,"-prefix"),w==null?void 0:w.prefix),style:R==null?void 0:R.prefix},a),c.cloneElement(o,{value:y,hidden:null}),k)}if(Su(t)){var F="".concat(i,"-group"),V="".concat(F,"-addon"),H=te("".concat(i,"-wrapper"),F,O==null?void 0:O.wrapper),W=te("".concat(i,"-group-wrapper"),f,O==null?void 0:O.group);return ge.createElement("span",{className:W,style:m,hidden:E},ge.createElement("span",{className:H},s&&ge.createElement("span",{className:V},s),c.cloneElement(D,{hidden:null}),d&&ge.createElement("span",{className:V},d)))}return D},Nie=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],Mie=c.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,l=e.onKeyDown,s=e.prefixCls,d=s===void 0?"rc-input":s,f=e.disabled,m=e.htmlSize,h=e.className,g=e.maxLength,v=e.suffix,C=e.showCount,S=e.type,y=S===void 0?"text":S,x=e.classes,E=e.classNames,O=e.styles,w=vt(e,Nie),$=Lr(e.defaultValue,{value:e.value}),R=ue($,2),_=R[0],M=R[1],T=c.useState(!1),D=ue(T,2),N=D[0],P=D[1],L=c.useRef(null),k=function(Y){L.current&&Pie(L.current,Y)};c.useImperativeHandle(t,function(){return{focus:k,blur:function(){var Y;(Y=L.current)===null||Y===void 0||Y.blur()},setSelectionRange:function(Y,q,ne){var le;(le=L.current)===null||le===void 0||le.setSelectionRange(Y,q,ne)},select:function(){var Y;(Y=L.current)===null||Y===void 0||Y.select()},input:L.current}}),c.useEffect(function(){P(function(Q){return Q&&f?!1:Q})},[f]);var F=function(Y){e.value===void 0&&M(Y.target.value),L.current&&Gd(L.current,Y,r)},V=function(Y){a&&Y.key==="Enter"&&a(Y),l==null||l(Y)},H=function(Y){P(!0),o==null||o(Y)},W=function(Y){P(!1),i==null||i(Y)},G=function(Y){M(""),k(),L.current&&Gd(L.current,Y,r)},U=function(){var Y=kr(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return ge.createElement("input",je({autoComplete:n},Y,{onChange:F,onFocus:H,onBlur:W,onKeyDown:V,className:te(d,Z({},"".concat(d,"-disabled"),f),E==null?void 0:E.input),style:O==null?void 0:O.input,ref:L,size:m,type:y}))},X=function(){var Y=Number(g)>0;if(v||C){var q=XC(_),ne=Pe(q).length,le=Ot(C)==="object"?C.formatter({value:q,count:ne,maxLength:g}):"".concat(ne).concat(Y?" / ".concat(g):"");return ge.createElement(ge.Fragment,null,!!C&&ge.createElement("span",{className:te("".concat(d,"-show-count-suffix"),Z({},"".concat(d,"-show-count-has-suffix"),!!v),E==null?void 0:E.count),style:j({},O==null?void 0:O.count)},le),v)}return null};return ge.createElement(xk,je({},w,{prefixCls:d,className:h,inputElement:U(),handleReset:G,value:XC(_),focused:N,triggerFocus:k,suffix:X(),disabled:f,classes:x,classNames:E,styles:O}))});function Ek(e,t){const n=c.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,i,a,l;!((o=e.current)===null||o===void 0)&&o.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((l=e.current)===null||l===void 0||l.input.removeAttribute("value"))}))};return c.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function Aie(e){return!!(e.prefix||e.suffix||e.allowClear)}var Lie=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,status:o,size:i,disabled:a,onBlur:l,onFocus:s,suffix:d,allowClear:f,addonAfter:m,addonBefore:h,className:g,rootClassName:v,onChange:C,classNames:S}=e,y=Lie(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","rootClassName","onChange","classNames"]),{getPrefixCls:x,direction:E,input:O}=ge.useContext(yt),w=x("input",n),$=c.useRef(null),[R,_]=CE(w),{compactSize:M,compactItemClassnames:T}=Tc(w,E),D=ge.useContext(Bi),N=M||i||D,P=ge.useContext(jl),L=a??P,{status:k,hasFeedback:F,feedbackIcon:V}=c.useContext(sa),H=Ev(k,o),W=Aie(e)||!!F,G=c.useRef(W);c.useEffect(()=>{W&&G.current,G.current=W},[W]);const U=Ek($,!0),X=le=>{U(),l==null||l(le)},Q=le=>{U(),s==null||s(le)},Y=le=>{U(),C==null||C(le)},q=(F||d)&&ge.createElement(ge.Fragment,null,d,F&&V);let ne;return typeof f=="object"&&(f!=null&&f.clearIcon)?ne=f:f&&(ne={clearIcon:ge.createElement(Rc,null)}),R(ge.createElement(Mie,Object.assign({ref:zo(t,$),prefixCls:w,autoComplete:O==null?void 0:O.autoComplete},y,{disabled:L,onBlur:X,onFocus:Q,suffix:q,allowClear:ne,className:te(g,v,T),onChange:Y,addonAfter:m&&ge.createElement(Sc,null,ge.createElement(If,{override:!0,status:!0},m)),addonBefore:h&&ge.createElement(Sc,null,ge.createElement(If,{override:!0,status:!0},h)),classNames:Object.assign(Object.assign({},S),{input:te({[`${w}-sm`]:N==="small",[`${w}-lg`]:N==="large",[`${w}-rtl`]:E==="rtl",[`${w}-borderless`]:!r},!W&&Na(w,H),S==null?void 0:S.input,_)}),classes:{affixWrapper:te({[`${w}-affix-wrapper-sm`]:N==="small",[`${w}-affix-wrapper-lg`]:N==="large",[`${w}-affix-wrapper-rtl`]:E==="rtl",[`${w}-affix-wrapper-borderless`]:!r},Na(`${w}-affix-wrapper`,H,F),_),wrapper:te({[`${w}-group-rtl`]:E==="rtl"},_),group:te({[`${w}-group-wrapper-sm`]:N==="small",[`${w}-group-wrapper-lg`]:N==="large",[`${w}-group-wrapper-rtl`]:E==="rtl",[`${w}-group-wrapper-disabled`]:L},Na(`${w}-group-wrapper`,H,F),_)}})))}),$E=kie;var Fie=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?c.createElement(UM,null):c.createElement(yK,null),zie={click:"onClick",hover:"onMouseOver"},Hie=c.forwardRef((e,t)=>{const{visibilityToggle:n=!0}=e,r=typeof n=="object"&&n.visible!==void 0,[o,i]=c.useState(()=>r?n.visible:!1),a=c.useRef(null);c.useEffect(()=>{r&&i(n.visible)},[r,n]);const l=Ek(a),s=()=>{const{disabled:w}=e;w||(o&&l(),i($=>{var R;const _=!$;return typeof n=="object"&&((R=n.onVisibleChange)===null||R===void 0||R.call(n,_)),_}))},d=w=>{const{action:$="click",iconRender:R=Bie}=e,_=zie[$]||"",M=R(o),T={[_]:s,className:`${w}-icon`,key:"passwordIcon",onMouseDown:D=>{D.preventDefault()},onMouseUp:D=>{D.preventDefault()}};return c.cloneElement(c.isValidElement(M)?M:c.createElement("span",null,M),T)},{className:f,prefixCls:m,inputPrefixCls:h,size:g}=e,v=Fie(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:C}=c.useContext(yt),S=C("input",h),y=C("input-password",m),x=n&&d(y),E=te(y,f,{[`${y}-${g}`]:!!g}),O=Object.assign(Object.assign({},kr(v,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:E,prefixCls:S,suffix:x});return g&&(O.size=g),c.createElement($E,Object.assign({ref:zo(t,a)},O))}),jie=Hie;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{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:l=!1,addonAfter:s,loading:d,disabled:f,onSearch:m,onChange:h,onCompositionStart:g,onCompositionEnd:v}=e,C=Vie(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:S,direction:y}=c.useContext(yt),x=c.useContext(Bi),E=c.useRef(!1),O=S("input-search",n),w=S("input",r),{compactSize:$}=Tc(O,y),R=$||i||x,_=c.useRef(null),M=U=>{U&&U.target&&U.type==="click"&&m&&m(U.target.value,U),h&&h(U)},T=U=>{var X;document.activeElement===((X=_.current)===null||X===void 0?void 0:X.input)&&U.preventDefault()},D=U=>{var X,Q;m&&m((Q=(X=_.current)===null||X===void 0?void 0:X.input)===null||Q===void 0?void 0:Q.value,U)},N=U=>{E.current||d||D(U)},P=typeof l=="boolean"?c.createElement(Rx,null):null,L=`${O}-button`;let k;const F=l||{},V=F.type&&F.type.__ANT_BUTTON===!0;V||F.type==="button"?k=mr(F,Object.assign({onMouseDown:T,onClick:U=>{var X,Q;(Q=(X=F==null?void 0:F.props)===null||X===void 0?void 0:X.onClick)===null||Q===void 0||Q.call(X,U),D(U)},key:"enterButton"},V?{className:L,size:R}:{})):k=c.createElement(oi,{className:L,type:l?"primary":void 0,size:R,disabled:f,key:"enterButton",onMouseDown:T,onClick:D,loading:d,icon:P},l),s&&(k=[k,mr(s,{key:"addonAfter"})]);const H=te(O,{[`${O}-rtl`]:y==="rtl",[`${O}-${R}`]:!!R,[`${O}-with-button`]:!!l},o),W=U=>{E.current=!0,g==null||g(U)},G=U=>{E.current=!1,v==null||v(U)};return c.createElement($E,Object.assign({ref:zo(_,t),onPressEnter:N},C,{size:R,onCompositionStart:W,onCompositionEnd:G,prefixCls:w,addonAfter:k,suffix:a,onChange:M,className:H,disabled:f}))}),Wie=Uie;var Kie=` + 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; +`,Gie=["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"],cb={},Zo;function Xie(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&&cb[n])return cb[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=Gie.map(function(d){return"".concat(d,":").concat(r.getPropertyValue(d))}).join(";"),s={sizingStyle:l,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(cb[n]=s),s}function Yie(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;Zo||(Zo=document.createElement("textarea"),Zo.setAttribute("tab-index","-1"),Zo.setAttribute("aria-hidden","true"),document.body.appendChild(Zo)),e.getAttribute("wrap")?Zo.setAttribute("wrap",e.getAttribute("wrap")):Zo.removeAttribute("wrap");var o=Xie(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,s=o.sizingStyle;Zo.setAttribute("style","".concat(s,";").concat(Kie)),Zo.value=e.value||e.placeholder||"";var d=void 0,f=void 0,m,h=Zo.scrollHeight;if(l==="border-box"?h+=a:l==="content-box"&&(h-=i),n!==null||r!==null){Zo.value=" ";var g=Zo.scrollHeight-i;n!==null&&(d=g*n,l==="border-box"&&(d=d+i+a),h=Math.max(d,h)),r!==null&&(f=g*r,l==="border-box"&&(f=f+i+a),m=h>f?"":"hidden",h=Math.min(f,h))}var v={height:h,overflowY:m,resize:"none"};return d&&(v.minHeight=d),f&&(v.maxHeight=f),v}var qie=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],db=0,fb=1,pb=2,Qie=c.forwardRef(function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var o=n.defaultValue,i=n.value,a=n.autoSize,l=n.onResize,s=n.className,d=n.style,f=n.disabled,m=n.onChange;n.onInternalAutoSize;var h=vt(n,qie),g=Lr(o,{value:i,postState:function(Y){return Y??""}}),v=ue(g,2),C=v[0],S=v[1],y=function(Y){S(Y.target.value),m==null||m(Y)},x=c.useRef();c.useImperativeHandle(t,function(){return{textArea:x.current}});var E=c.useMemo(function(){return a&&Ot(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),O=ue(E,2),w=O[0],$=O[1],R=!!a,_=function(){try{if(document.activeElement===x.current){var Y=x.current,q=Y.selectionStart,ne=Y.selectionEnd,le=Y.scrollTop;x.current.setSelectionRange(q,ne),x.current.scrollTop=le}}catch{}},M=c.useState(pb),T=ue(M,2),D=T[0],N=T[1],P=c.useState(),L=ue(P,2),k=L[0],F=L[1],V=function(){N(db)};an(function(){R&&V()},[i,w,$,R]),an(function(){if(D===db)N(fb);else if(D===fb){var Q=Yie(x.current,!1,w,$);N(pb),F(Q)}else _()},[D]);var H=c.useRef(),W=function(){Zt.cancel(H.current)},G=function(Y){D===pb&&(l==null||l(Y),a&&(W(),H.current=Zt(function(){V()})))};c.useEffect(function(){return W},[]);var U=R?k:null,X=j(j({},d),U);return(D===db||D===fb)&&(X.overflowY="hidden",X.overflowX="hidden"),c.createElement(Fi,{onResize:G,disabled:!(a||l)},c.createElement("textarea",je({},h,{ref:x,style:X,className:te(r,s,Z({},"".concat(r,"-disabled"),f)),disabled:f,value:C,onChange:y})))}),Zie=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles"];function wk(e,t){return Pe(e||"").slice(0,t).join("")}function Y_(e,t,n,r){var o=n;return e?o=wk(n,r):Pe(t||"").lengthr&&(o=t),o}var Jie=ge.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,i=e.onFocus,a=e.onBlur,l=e.onChange,s=e.allowClear,d=e.maxLength,f=e.onCompositionStart,m=e.onCompositionEnd,h=e.suffix,g=e.prefixCls,v=g===void 0?"rc-textarea":g,C=e.classes,S=e.showCount,y=e.className,x=e.style,E=e.disabled,O=e.hidden,w=e.classNames,$=e.styles,R=vt(e,Zie),_=Lr(r,{value:o,defaultValue:r}),M=ue(_,2),T=M[0],D=M[1],N=c.useRef(null),P=ge.useState(!1),L=ue(P,2),k=L[0],F=L[1],V=ge.useState(!1),H=ue(V,2),W=H[0],G=H[1],U=ge.useRef(),X=ge.useRef(0),Q=function(){N.current.textArea.focus()};c.useImperativeHandle(t,function(){return{resizableTextArea:N.current,focus:Q,blur:function(){N.current.textArea.blur()}}}),c.useEffect(function(){F(function(Se){return!E&&Se})},[E]);var Y=Number(d)>0,q=function(de){G(!0),U.current=T,X.current=de.currentTarget.selectionStart,f==null||f(de)},ne=function(de){G(!1);var _e=de.currentTarget.value;if(Y){var be,Xe=X.current>=d+1||X.current===((be=U.current)===null||be===void 0?void 0:be.length);_e=Y_(Xe,U.current,_e,d)}_e!==T&&(D(_e),Gd(de.currentTarget,de,l,_e)),m==null||m(de)},le=function(de){var _e=de.target.value;if(!W&&Y){var be=de.target.selectionStart>=d+1||de.target.selectionStart===_e.length||!de.target.selectionStart;_e=Y_(be,T,_e,d)}D(_e),Gd(de.currentTarget,de,l,_e)},we=function(de){var _e=R.onPressEnter,be=R.onKeyDown;de.key==="Enter"&&_e&&_e(de),be==null||be(de)},Oe=function(de){F(!0),i==null||i(de)},Ce=function(de){F(!1),a==null||a(de)},ce=function(de){D(""),Q(),Gd(N.current.textArea,de,l)},he=XC(T);!W&&Y&&o==null&&(he=wk(he,d));var ie=h,pe;if(S){var fe=Pe(he).length;Ot(S)==="object"?pe=S.formatter({value:he,count:fe,maxLength:d}):pe="".concat(fe).concat(Y?" / ".concat(d):""),ie=ge.createElement(ge.Fragment,null,ie,ge.createElement("span",{className:te("".concat(v,"-data-count"),w==null?void 0:w.count),style:$==null?void 0:$.count},pe))}var Ie=ge.createElement(xk,{value:he,allowClear:s,handleReset:ce,suffix:ie,prefixCls:v,classes:{affixWrapper:te(C==null?void 0:C.affixWrapper,(n={},Z(n,"".concat(v,"-show-count"),S),Z(n,"".concat(v,"-textarea-allow-clear"),s),n))},disabled:E,focused:k,className:y,style:x,dataAttrs:{affixWrapper:{"data-count":typeof pe=="string"?pe:void 0}},hidden:O,inputElement:ge.createElement(Qie,je({},R,{onKeyDown:we,onChange:le,onFocus:Oe,onBlur:Ce,onCompositionStart:q,onCompositionEnd:ne,className:w==null?void 0:w.textarea,style:j(j({},$==null?void 0:$.textarea),{},{resize:x==null?void 0:x.resize}),disabled:E,prefixCls:v,ref:N}))});return Ie}),eae=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:n,bordered:r=!0,size:o,disabled:i,status:a,allowClear:l,showCount:s,classNames:d}=e,f=eae(e,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames"]);const{getPrefixCls:m,direction:h}=c.useContext(yt),g=c.useContext(Bi),v=o||g,C=c.useContext(jl),S=i??C,{status:y,hasFeedback:x,feedbackIcon:E}=c.useContext(sa),O=Ev(y,a),w=c.useRef(null);c.useImperativeHandle(t,()=>{var T;return{resizableTextArea:(T=w.current)===null||T===void 0?void 0:T.resizableTextArea,focus:D=>{var N,P;Die((P=(N=w.current)===null||N===void 0?void 0:N.resizableTextArea)===null||P===void 0?void 0:P.textArea,D)},blur:()=>{var D;return(D=w.current)===null||D===void 0?void 0:D.blur()}}});const $=m("input",n);let R;typeof l=="object"&&(l!=null&&l.clearIcon)?R=l:l&&(R={clearIcon:c.createElement(Rc,null)});const[_,M]=CE($);return _(c.createElement(Jie,Object.assign({},f,{disabled:S,allowClear:R,classes:{affixWrapper:te(`${$}-textarea-affix-wrapper`,{[`${$}-affix-wrapper-rtl`]:h==="rtl",[`${$}-affix-wrapper-borderless`]:!r,[`${$}-affix-wrapper-sm`]:v==="small",[`${$}-affix-wrapper-lg`]:v==="large",[`${$}-textarea-show-count`]:s},Na(`${$}-affix-wrapper`,O),M)},classNames:Object.assign(Object.assign({},d),{textarea:te({[`${$}-borderless`]:!r,[`${$}-sm`]:v==="small",[`${$}-lg`]:v==="large"},Na($,O),M,d==null?void 0:d.textarea)}),prefixCls:$,suffix:x&&c.createElement("span",{className:`${$}-textarea-suffix`},E),showCount:s,ref:w})))}),nae=tae,ap=$E;ap.Group=Tie;ap.Search=Wie;ap.TextArea=nae;ap.Password=jie;const rae=ap;function YC(){return typeof BigInt=="function"}function ws(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 l=n?"-":"";return{negative:n,negativeStr:l,trimStr:r,integerStr:i,decimalStr:a,fullStr:"".concat(l).concat(r)}}function IE(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function Pf(e){var t=String(e);if(IE(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(".")&&RE(t)?t.length-t.indexOf(".")-1:0}function Av(e){var t=String(e);if(IE(e)){if(e>Number.MAX_SAFE_INTEGER)return String(YC()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(eNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Av(this.number):this.origin}}]),e}(),iae=function(){function e(t){if(Qn(this,e),Z(this,"origin",""),Z(this,"negative",void 0),Z(this,"integer",void 0),Z(this,"decimal",void 0),Z(this,"decimalLen",void 0),Z(this,"empty",void 0),Z(this,"nan",void 0),Ok(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(IE(n)&&(n=Number(n)),n=typeof n=="string"?n:Av(n),RE(n)){var r=ws(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var i=o[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length}else this.nan=!0}return Zn(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(n){var r="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(n,"0"));return BigInt(r)}},{key:"negate",value:function(){var n=new e(this.toString());return n.negative=!n.negative,n}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=new e(n);if(r.isInvalidate())return this;var o=Math.max(this.getDecimalStr().length,r.getDecimalStr().length),i=this.alignDecimal(o),a=r.alignDecimal(o),l=(i+a).toString(),s=ws(l),d=s.negativeStr,f=s.trimStr,m="".concat(d).concat(f.padStart(o+1,"0"));return new e("".concat(m.slice(0,-o),".").concat(m.slice(-o)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toString()===(n==null?void 0:n.toString())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":ws("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();function xi(e){return YC()?new iae(e):new oae(e)}function ih(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var o=ws(e),i=o.negativeStr,a=o.integerStr,l=o.decimalStr,s="".concat(t).concat(l),d="".concat(i).concat(a);if(n>=0){var f=Number(l[n]);if(f>=5&&!r){var m=xi(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-f));return ih(m.toString(),t,n,r)}return n===0?d:"".concat(d).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return s===".0"?d:"".concat(d).concat(s)}var aae=function(){var t=c.useState(!1),n=ue(t,2),r=n[0],o=n[1];return an(function(){o(xv())},[]),r},lae=200,sae=600;function uae(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,i=e.downDisabled,a=e.onStep,l=c.useRef(),s=c.useRef();s.current=a;var d=function(y,x){y.preventDefault(),s.current(x);function E(){s.current(x),l.current=setTimeout(E,lae)}l.current=setTimeout(E,sae)},f=function(){clearTimeout(l.current)};c.useEffect(function(){return f},[]);var m=aae();if(m)return null;var h="".concat(t,"-handler"),g=te(h,"".concat(h,"-up"),Z({},"".concat(h,"-up-disabled"),o)),v=te(h,"".concat(h,"-down"),Z({},"".concat(h,"-down-disabled"),i)),C={unselectable:"on",role:"button",onMouseUp:f,onMouseLeave:f};return c.createElement("div",{className:"".concat(h,"-wrap")},c.createElement("span",je({},C,{onMouseDown:function(y){d(y,!0)},"aria-label":"Increase Value","aria-disabled":o,className:g}),n||c.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),c.createElement("span",je({},C,{onMouseDown:function(y){d(y,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:v}),r||c.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function q_(e){var t=typeof e=="number"?Av(e):ws(e).fullStr,n=t.includes(".");return n?ws(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}function cae(e,t){var n=c.useRef(null);function r(){try{var i=e.selectionStart,a=e.selectionEnd,l=e.value,s=l.substring(0,i),d=l.substring(a);n.current={start:i,end:a,value:l,beforeTxt:s,afterTxt:d}}catch{}}function o(){if(e&&n.current&&t)try{var i=e.value,a=n.current,l=a.beforeTxt,s=a.afterTxt,d=a.start,f=i.length;if(i.endsWith(s))f=i.length-n.current.afterTxt.length;else if(i.startsWith(l))f=l.length;else{var m=l[d-1],h=i.indexOf(m,d-1);h!==-1&&(f=h+1)}e.setSelectionRange(f,f)}catch(g){En(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(g.message))}}return[r,o]}const dae=function(){var e=c.useRef(0),t=function(){Zt.cancel(e.current)};return c.useEffect(function(){return t},[]),function(n){t(),e.current=Zt(function(){n()})}};var fae=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],Q_=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},Z_=function(t){var n=xi(t);return n.isInvalidate()?null:n},$k=c.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-input-number":r,i=e.className,a=e.style,l=e.min,s=e.max,d=e.step,f=d===void 0?1:d,m=e.defaultValue,h=e.value,g=e.disabled,v=e.readOnly,C=e.upHandler,S=e.downHandler,y=e.keyboard,x=e.controls,E=x===void 0?!0:x,O=e.stringMode,w=e.parser,$=e.formatter,R=e.precision,_=e.decimalSeparator,M=e.onChange,T=e.onInput,D=e.onPressEnter,N=e.onStep,P=vt(e,fae),L="".concat(o,"-input"),k=c.useRef(null),F=c.useState(!1),V=ue(F,2),H=V[0],W=V[1],G=c.useRef(!1),U=c.useRef(!1),X=c.useRef(!1),Q=c.useState(function(){return xi(h??m)}),Y=ue(Q,2),q=Y[0],ne=Y[1];function le(Ae){h===void 0&&ne(Ae)}var we=c.useCallback(function(Ae,Ke){if(!Ke)return R>=0?R:Math.max(Pf(Ae),Pf(f))},[R,f]),Oe=c.useCallback(function(Ae){var Ke=String(Ae);if(w)return w(Ke);var Ue=Ke;return _&&(Ue=Ue.replace(_,".")),Ue.replace(/[^\w.-]+/g,"")},[w,_]),Ce=c.useRef(""),ce=c.useCallback(function(Ae,Ke){if($)return $(Ae,{userTyping:Ke,input:String(Ce.current)});var Ue=typeof Ae=="number"?Av(Ae):Ae;if(!Ke){var ze=we(Ue,Ke);if(RE(Ue)&&(_||ze>=0)){var at=_||".";Ue=ih(Ue,at,ze)}}return Ue},[$,we,_]),he=c.useState(function(){var Ae=m??h;return q.isInvalidate()&&["string","number"].includes(Ot(Ae))?Number.isNaN(Ae)?"":Ae:ce(q.toString(),!1)}),ie=ue(he,2),pe=ie[0],fe=ie[1];Ce.current=pe;function Ie(Ae,Ke){fe(ce(Ae.isInvalidate()?Ae.toString(!1):Ae.toString(!Ke),Ke))}var Se=c.useMemo(function(){return Z_(s)},[s,R]),de=c.useMemo(function(){return Z_(l)},[l,R]),_e=c.useMemo(function(){return!Se||!q||q.isInvalidate()?!1:Se.lessEquals(q)},[Se,q]),be=c.useMemo(function(){return!de||!q||q.isInvalidate()?!1:q.lessEquals(de)},[de,q]),Xe=cae(k.current,H),Qe=ue(Xe,2),ft=Qe[0],ct=Qe[1],ut=function(Ke){return Se&&!Ke.lessEquals(Se)?Se:de&&!de.lessEquals(Ke)?de:null},dt=function(Ke){return!ut(Ke)},He=function(Ke,Ue){var ze=Ke,at=dt(ze)||ze.isEmpty();if(!ze.isEmpty()&&!Ue&&(ze=ut(ze)||ze,at=!0),!v&&!g&&at){var $t=ze.toString(),tt=we($t,Ue);return tt>=0&&(ze=xi(ih($t,".",tt)),dt(ze)||(ze=xi(ih($t,".",tt,!0)))),ze.equals(q)||(le(ze),M==null||M(ze.isEmpty()?null:Q_(O,ze)),h===void 0&&Ie(ze,Ue)),ze}return q},Je=dae(),ee=function Ae(Ke){if(ft(),fe(Ke),!U.current){var Ue=Oe(Ke),ze=xi(Ue);ze.isNaN()||He(ze,!0)}T==null||T(Ke),Je(function(){var at=Ke;w||(at=Ke.replace(/。/g,".")),at!==Ke&&Ae(at)})},re=function(){U.current=!0},oe=function(){U.current=!1,ee(k.current.value)},xe=function(Ke){ee(Ke.target.value)},ve=function(Ke){var Ue;if(!(Ke&&_e||!Ke&&be)){G.current=!1;var ze=xi(X.current?q_(f):f);Ke||(ze=ze.negate());var at=(q||xi(0)).add(ze.toString()),$t=He(at,!1);N==null||N(Q_(O,$t),{offset:X.current?q_(f):f,type:Ke?"up":"down"}),(Ue=k.current)===null||Ue===void 0||Ue.focus()}},Ee=function(Ke){var Ue=xi(Oe(pe)),ze=Ue;Ue.isNaN()?ze=q:ze=He(Ue,Ke),h!==void 0?Ie(q,!1):ze.isNaN()||Ie(ze,!1)},ke=function(){G.current=!0},Ye=function(Ke){var Ue=Ke.which,ze=Ke.shiftKey;G.current=!0,ze?X.current=!0:X.current=!1,Ue===De.ENTER&&(U.current||(G.current=!1),Ee(!1),D==null||D(Ke)),y!==!1&&!U.current&&[De.UP,De.DOWN].includes(Ue)&&(ve(De.UP===Ue),Ke.preventDefault())},Fe=function(){G.current=!1,X.current=!1},ot=function(){Ee(!1),W(!1),G.current=!1};return Ud(function(){q.isInvalidate()||Ie(q,!1)},[R]),Ud(function(){var Ae=xi(h);ne(Ae);var Ke=xi(Oe(pe));(!Ae.equals(Ke)||!G.current||$)&&Ie(Ae,G.current)},[h]),Ud(function(){$&&ct()},[pe]),c.createElement("div",{className:te(o,i,(n={},Z(n,"".concat(o,"-focused"),H),Z(n,"".concat(o,"-disabled"),g),Z(n,"".concat(o,"-readonly"),v),Z(n,"".concat(o,"-not-a-number"),q.isNaN()),Z(n,"".concat(o,"-out-of-range"),!q.isInvalidate()&&!dt(q)),n)),style:a,onFocus:function(){W(!0)},onBlur:ot,onKeyDown:Ye,onKeyUp:Fe,onCompositionStart:re,onCompositionEnd:oe,onBeforeInput:ke},E&&c.createElement(uae,{prefixCls:o,upNode:C,downNode:S,upDisabled:_e,downDisabled:be,onStep:ve}),c.createElement("div",{className:"".concat(L,"-wrap")},c.createElement("input",je({autoComplete:"off",role:"spinbutton","aria-valuemin":l,"aria-valuemax":s,"aria-valuenow":q.isInvalidate()?null:q.toString(),step:f},P,{ref:zo(k,t),className:L,value:pe,onChange:xe,disabled:g,readOnly:v}))))});$k.displayName="InputNumber";const pae=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorBorder:o,borderRadius:i,fontSizeLG:a,controlHeightLG:l,controlHeightSM:s,colorError:d,inputPaddingHorizontalSM:f,colorTextDescription:m,motionDurationMid:h,colorPrimary:g,controlHeight:v,inputPaddingHorizontal:C,colorBgContainer:S,colorTextDisabled:y,borderRadiusSM:x,borderRadiusLG:E,controlWidth:O,handleVisible:w}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},mn(e)),op(e)),Mv(e,t)),{display:"inline-block",width:O,margin:0,padding:0,border:`${n}px ${r} ${o}`,borderRadius:i,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,borderRadius:E,[`input${t}-input`]:{height:l-2*n}},"&-sm":{padding:0,borderRadius:x,[`input${t}-input`]:{height:s-2*n,padding:`0 ${f}px`}},"&:hover":Object.assign({},rp(e)),"&-focused":Object.assign({},ag(e)),"&-disabled":Object.assign(Object.assign({},yE(e)),{[`${t}-input`]:{cursor:"not-allowed"}}),"&-out-of-range":{input:{color:d}},"&-group":Object.assign(Object.assign(Object.assign({},mn(e)),pk(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:E}},"&-sm":{[`${t}-group-addon`]:{borderRadius:x}}}}),[t]:{"&-input":Object.assign(Object.assign({width:"100%",height:v-2*n,padding:`0 ${C}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${h} linear`,appearance:"textfield",color:e.colorText,fontSize:"inherit",verticalAlign:"top"},dk(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:{[`&: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:w===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${h} linear ${h}`,[`${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:m,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${r} ${o}`,transition:`all ${h} 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({},Gf()),{color:m,transition:`all ${h} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${r} ${o}`,borderEndEndRadius:i},"&-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:y}}},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},mae=e=>{const{componentCls:t,inputPaddingHorizontal:n,inputAffixPadding:r,controlWidth:o,borderRadiusLG:i,borderRadiusSM:a}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},op(e)),Mv(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:o,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:i},"&-sm":{borderRadius:a},[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},rp(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:0},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:r},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:n,marginInlineStart:r}}})}},hae=In("InputNumber",e=>{const t=SE(e);return[pae(t),mae(t),Sv(t)]},e=>({controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:"auto"}));var gae=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}=c.useContext(yt),o=c.useContext(Bi),[i,a]=c.useState(!1),l=c.useRef(null);c.useImperativeHandle(t,()=>l.current);const{className:s,rootClassName:d,size:f,disabled:m,prefixCls:h,addonBefore:g,addonAfter:v,prefix:C,bordered:S=!0,readOnly:y,status:x,controls:E}=e,O=gae(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),w=n("input-number",h),[$,R]=hae(w),{compactSize:_,compactItemClassnames:M}=Tc(w,r);let T=c.createElement(CG,{className:`${w}-handler-up-inner`}),D=c.createElement(Ix,{className:`${w}-handler-down-inner`});const N=typeof E=="boolean"?E:void 0;typeof E=="object"&&(T=typeof E.upIcon>"u"?T:c.createElement("span",{className:`${w}-handler-up-inner`},E.upIcon),D=typeof E.downIcon>"u"?D:c.createElement("span",{className:`${w}-handler-down-inner`},E.downIcon));const{hasFeedback:P,status:L,isFormItemInput:k,feedbackIcon:F}=c.useContext(sa),V=Ev(L,x),H=_||f||o,W=C!=null||P,G=!!(g||v),U=c.useContext(jl),X=m??U,Q=te({[`${w}-lg`]:H==="large",[`${w}-sm`]:H==="small",[`${w}-rtl`]:r==="rtl",[`${w}-borderless`]:!S,[`${w}-in-form-item`]:k},Na(w,V),M,R,s,!W&&!G&&d);let Y=c.createElement($k,Object.assign({ref:l,disabled:X,className:Q,upHandler:T,downHandler:D,prefixCls:w,readOnly:y,controls:N},O));if(W){const q=te(`${w}-affix-wrapper`,Na(`${w}-affix-wrapper`,V,P),{[`${w}-affix-wrapper-focused`]:i,[`${w}-affix-wrapper-disabled`]:e.disabled,[`${w}-affix-wrapper-sm`]:H==="small",[`${w}-affix-wrapper-lg`]:H==="large",[`${w}-affix-wrapper-rtl`]:r==="rtl",[`${w}-affix-wrapper-readonly`]:y,[`${w}-affix-wrapper-borderless`]:!S},!G&&s,!G&&d,R);Y=c.createElement("div",{className:q,style:e.style,onMouseUp:()=>l.current.focus()},C&&c.createElement("span",{className:`${w}-prefix`},C),mr(Y,{style:null,value:e.value,onFocus:ne=>{var le;a(!0),(le=e.onFocus)===null||le===void 0||le.call(e,ne)},onBlur:ne=>{var le;a(!1),(le=e.onBlur)===null||le===void 0||le.call(e,ne)}}),P&&c.createElement("span",{className:`${w}-suffix`},F))}if(G){const q=`${w}-group`,ne=`${q}-addon`,le=g?c.createElement("div",{className:ne},g):null,we=v?c.createElement("div",{className:ne},v):null,Oe=te(`${w}-wrapper`,q,R,{[`${q}-rtl`]:r==="rtl"}),Ce=te(`${w}-group-wrapper`,{[`${w}-group-wrapper-sm`]:H==="small",[`${w}-group-wrapper-lg`]:H==="large",[`${w}-group-wrapper-rtl`]:r==="rtl"},Na(`${w}-group-wrapper`,V,P),R,s,d);Y=c.createElement("div",{className:Ce,style:e.style},c.createElement("div",{className:Oe},le&&c.createElement(Sc,null,c.createElement(If,{status:!0,override:!0},le)),mr(Y,{style:null,disabled:X}),we&&c.createElement(Sc,null,c.createElement(If,{status:!0,override:!0},we))))}return $(Y)}),Rk=Ik,vae=e=>c.createElement(Wa,{theme:{components:{InputNumber:{handleVisible:!0}}}},c.createElement(Ik,Object.assign({},e)));Rk._InternalPanelDoNotUseOrYouWillBeFired=vae;const mb=Rk;var os={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40};const yae={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 _k=function(e){Di(n,e);var t=ki(n);function n(){var r;Qn(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0||l.relatedTarget.className.indexOf("".concat(m,"-item"))>=0))&&f(r.getValidValue()))},r.go=function(l){var s=r.state.goInputText;s!==""&&(l.keyCode===os.ENTER||l.type==="click")&&(r.setState({goInputText:""}),r.props.quickGo(r.getValidValue()))},r}return Zn(n,[{key:"getPageSizeOptions",value:function(){var o=this.props,i=o.pageSize,a=o.pageSizeOptions;return a.some(function(l){return l.toString()===i.toString()})?a:a.concat([i.toString()]).sort(function(l,s){var d=Number.isNaN(Number(l))?0:Number(l),f=Number.isNaN(Number(s))?0:Number(s);return d-f})}},{key:"render",value:function(){var o=this,i=this.props,a=i.pageSize,l=i.locale,s=i.rootPrefixCls,d=i.changeSize,f=i.quickGo,m=i.goButton,h=i.selectComponentClass,g=i.buildOptionText,v=i.selectPrefixCls,C=i.disabled,S=this.state.goInputText,y="".concat(s,"-options"),x=h,E=null,O=null,w=null;if(!d&&!f)return null;var $=this.getPageSizeOptions();if(d&&x){var R=$.map(function(_,M){return ge.createElement(x.Option,{key:M,value:_.toString()},(g||o.buildOptionText)(_))});E=ge.createElement(x,{disabled:C,prefixCls:v,showSearch:!1,className:"".concat(y,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(a||$[0]).toString(),onChange:this.changeSize,getPopupContainer:function(M){return M.parentNode},"aria-label":l.page_size,defaultOpen:!1},R)}return f&&(m&&(w=typeof m=="boolean"?ge.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:C,className:"".concat(y,"-quick-jumper-button")},l.jump_to_confirm):ge.createElement("span",{onClick:this.go,onKeyUp:this.go},m)),O=ge.createElement("div",{className:"".concat(y,"-quick-jumper")},l.jump_to,ge.createElement("input",{disabled:C,type:"text",value:S,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":l.page}),l.page,w)),ge.createElement("li",{className:"".concat(y)},E,O)}}]),n}(ge.Component);_k.defaultProps={pageSizeOptions:["10","20","50","100"]};var md=function(t){var n,r=t.rootPrefixCls,o=t.page,i=t.active,a=t.className,l=t.showTitle,s=t.onClick,d=t.onKeyPress,f=t.itemRender,m="".concat(r,"-item"),h=te(m,"".concat(m,"-").concat(o),(n={},Z(n,"".concat(m,"-active"),i),Z(n,"".concat(m,"-disabled"),!o),Z(n,t.className,a),n)),g=function(){s(o)},v=function(S){d(S,s,o)};return ge.createElement("li",{title:l?o.toString():null,className:h,onClick:g,onKeyPress:v,tabIndex:0},f(o,"page",ge.createElement("a",{rel:"nofollow"},o)))};function qC(){}function J_(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}var bae=function(t,n,r){return r};function il(e,t,n){var r=typeof e>"u"?t.pageSize:e;return Math.floor((n.total-1)/r)+1}var Tk=function(e){Di(n,e);var t=ki(n);function n(r){var o;Qn(this,n),o=t.call(this,r),o.paginationNode=ge.createRef(),o.getJumpPrevPage=function(){return Math.max(1,o.state.current-(o.props.showLessItems?3:5))},o.getJumpNextPage=function(){return Math.min(il(void 0,o.state,o.props),o.state.current+(o.props.showLessItems?3:5))},o.getItemIcon=function(d,f){var m=o.props.prefixCls,h=d||ge.createElement("button",{type:"button","aria-label":f,className:"".concat(m,"-item-link")});return typeof d=="function"&&(h=ge.createElement(d,j({},o.props))),h},o.isValid=function(d){var f=o.props.total;return J_(d)&&d!==o.state.current&&J_(f)&&f>0},o.shouldDisplayQuickJumper=function(){var d=o.props,f=d.showQuickJumper,m=d.total,h=o.state.pageSize;return m<=h?!1:f},o.handleKeyDown=function(d){(d.keyCode===os.ARROW_UP||d.keyCode===os.ARROW_DOWN)&&d.preventDefault()},o.handleKeyUp=function(d){var f=o.getValidValue(d),m=o.state.currentInputValue;f!==m&&o.setState({currentInputValue:f}),d.keyCode===os.ENTER?o.handleChange(f):d.keyCode===os.ARROW_UP?o.handleChange(f-1):d.keyCode===os.ARROW_DOWN&&o.handleChange(f+1)},o.handleBlur=function(d){var f=o.getValidValue(d);o.handleChange(f)},o.changePageSize=function(d){var f=o.state.current,m=il(d,o.state,o.props);f=f>m?m:f,m===0&&(f=o.state.current),typeof d=="number"&&("pageSize"in o.props||o.setState({pageSize:d}),"current"in o.props||o.setState({current:f,currentInputValue:f})),o.props.onShowSizeChange(f,d),"onChange"in o.props&&o.props.onChange&&o.props.onChange(f,d)},o.handleChange=function(d){var f=o.props,m=f.disabled,h=f.onChange,g=o.state,v=g.pageSize,C=g.current,S=g.currentInputValue;if(o.isValid(d)&&!m){var y=il(void 0,o.state,o.props),x=d;return d>y?x=y:d<1&&(x=1),"current"in o.props||o.setState({current:x}),x!==S&&o.setState({currentInputValue:x}),h(x,v),x}return C},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?m-2:0),g=2;g=a?s=a:s=Number(i),s}},{key:"getShowSizeChanger",value:function(){var o=this.props,i=o.showSizeChanger,a=o.total,l=o.totalBoundaryShowSizeChanger;return typeof i<"u"?i:a>l}},{key:"render",value:function(){var o=this,i=this.props,a=i.prefixCls,l=i.className,s=i.style,d=i.disabled,f=i.hideOnSinglePage,m=i.total,h=i.locale,g=i.showQuickJumper,v=i.showLessItems,C=i.showTitle,S=i.showTotal,y=i.simple,x=i.itemRender,E=i.showPrevNextJumpers,O=i.jumpPrevIcon,w=i.jumpNextIcon,$=i.selectComponentClass,R=i.selectPrefixCls,_=i.pageSizeOptions,M=this.state,T=M.current,D=M.pageSize,N=M.currentInputValue;if(f===!0&&m<=D)return null;var P=il(void 0,this.state,this.props),L=[],k=null,F=null,V=null,H=null,W=null,G=g&&g.goButton,U=v?1:2,X=T-1>0?T-1:0,Q=T+1m?m:T*D]));if(y)return G&&(typeof G=="boolean"?W=ge.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},h.jump_to_confirm):W=ge.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},G),W=ge.createElement("li",{title:C?"".concat(h.jump_to).concat(T,"/").concat(P):null,className:"".concat(a,"-simple-pager")},W)),ge.createElement("ul",je({className:te(a,"".concat(a,"-simple"),Z({},"".concat(a,"-disabled"),d),l),style:s,ref:this.paginationNode},Y),q,ge.createElement("li",{title:C?h.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:te("".concat(a,"-prev"),Z({},"".concat(a,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(X)),ge.createElement("li",{title:C?"".concat(T,"/").concat(P):null,className:"".concat(a,"-simple-pager")},ge.createElement("input",{type:"text",value:N,disabled:d,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),ge.createElement("span",{className:"".concat(a,"-slash")},"/"),P),ge.createElement("li",{title:C?h.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:te("".concat(a,"-next"),Z({},"".concat(a,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Q)),W);if(P<=3+U*2){var ne={locale:h,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:C,itemRender:x};P||L.push(ge.createElement(md,je({},ne,{key:"noPager",page:1,className:"".concat(a,"-item-disabled")})));for(var le=1;le<=P;le+=1){var we=T===le;L.push(ge.createElement(md,je({},ne,{key:le,page:le,active:we})))}}else{var Oe=v?h.prev_3:h.prev_5,Ce=v?h.next_3:h.next_5;E&&(k=ge.createElement("li",{title:C?Oe:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:te("".concat(a,"-jump-prev"),Z({},"".concat(a,"-jump-prev-custom-icon"),!!O))},x(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(O,"prev page"))),F=ge.createElement("li",{title:C?Ce:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:te("".concat(a,"-jump-next"),Z({},"".concat(a,"-jump-next-custom-icon"),!!w))},x(this.getJumpNextPage(),"jump-next",this.getItemIcon(w,"next page")))),H=ge.createElement(md,{locale:h,last:!0,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:P,page:P,active:!1,showTitle:C,itemRender:x}),V=ge.createElement(md,{locale:h,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:C,itemRender:x});var ce=Math.max(1,T-U),he=Math.min(T+U,P);T-1<=U&&(he=1+U*2),P-T<=U&&(ce=P-U*2);for(var ie=ce;ie<=he;ie+=1){var pe=T===ie;L.push(ge.createElement(md,{locale:h,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ie,page:ie,active:pe,showTitle:C,itemRender:x}))}T-1>=U*2&&T!==1+2&&(L[0]=c.cloneElement(L[0],{className:"".concat(a,"-item-after-jump-prev")}),L.unshift(k)),P-T>=U*2&&T!==P-2&&(L[L.length-1]=c.cloneElement(L[L.length-1],{className:"".concat(a,"-item-before-jump-next")}),L.push(F)),ce!==1&&L.unshift(V),he!==P&&L.push(H)}var fe=!this.hasPrev()||!P,Ie=!this.hasNext()||!P;return ge.createElement("ul",je({className:te(a,l,Z({},"".concat(a,"-disabled"),d)),style:s,ref:this.paginationNode},Y),q,ge.createElement("li",{title:C?h.prev_page:null,onClick:this.prev,tabIndex:fe?null:0,onKeyPress:this.runIfEnterPrev,className:te("".concat(a,"-prev"),Z({},"".concat(a,"-disabled"),fe)),"aria-disabled":fe},this.renderPrev(X)),L,ge.createElement("li",{title:C?h.next_page:null,onClick:this.next,tabIndex:Ie?null:0,onKeyPress:this.runIfEnterNext,className:te("".concat(a,"-next"),Z({},"".concat(a,"-disabled"),Ie)),"aria-disabled":Ie},this.renderNext(Q)),ge.createElement(_k,{disabled:d,locale:h,rootPrefixCls:a,selectComponentClass:$,selectPrefixCls:R,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:T,pageSize:D,pageSizeOptions:_,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:G}))}}],[{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 l=i.current,s=il(o.pageSize,i,o);l=l>s?s:l,"current"in o||(a.current=l,a.currentInputValue=l),a.pageSize=o.pageSize}return a}}]),n}(ge.Component);Tk.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:qC,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:qC,locale:yae,style:{},itemRender:bae,totalBoundaryShowSizeChanger:50};const Pk=e=>c.createElement(wv,Object.assign({},e,{size:"small"})),Nk=e=>c.createElement(wv,Object.assign({},e,{size:"middle"}));Pk.Option=wv.Option;Nk.Option=wv.Option;const Sae=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}-mini`]:{[` + &:hover ${t}-item:not(${t}-item-active), + &:active ${t}-item:not(${t}-item-active), + &:hover ${t}-item-link, + &:active ${t}-item-link + `]:{backgroundColor:"transparent"}},[`${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.paginationItemDisabledBgActive,"&:hover, &:active":{backgroundColor:e.paginationItemDisabledBgActive},a:{color:e.paginationItemDisabledColorActive}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1},[`${t}-simple-pager`]:{color:e.colorTextDisabled}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Cae=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`},[`&${t}-mini ${t}-item`]:{minWidth:e.paginationItemSizeSM,height:e.paginationItemSizeSM,margin:0,lineHeight:`${e.paginationItemSizeSM-2}px`},[`&${t}-mini ${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.paginationItemSizeSM,height:e.paginationItemSizeSM,margin:0,lineHeight:`${e.paginationItemSizeSM}px`,[`&: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.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.paginationItemSizeSM,marginInlineEnd:0,lineHeight:`${e.paginationItemSizeSM}px`},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,["&-size-changer"]:{top:e.paginationMiniOptionsSizeChangerTop},["&-quick-jumper"]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`,input:Object.assign(Object.assign({},bE(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},xae=e=>{const{componentCls:t}=e;return{[` + &${t}-simple ${t}-prev, + &${t}-simple ${t}-next + `]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`,verticalAlign:"top",[`${t}-item-link`]:{height:e.paginationItemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.paginationItemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:e.paginationItemInputBg,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"}}}}},Eae=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}},"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Ba(e))},[` + ${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.paginationItemSize,height:e.paginationItemSize,color:e.colorText,fontFamily:e.paginationFontFamily,lineHeight:`${e.paginationItemSize}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:`border ${e.motionDurationMid}`},[`&:focus-visible ${t}-item-link`]:Object.assign({},Ba(e)),[`&: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({},op(e)),{width:e.controlHeightLG*1.25,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},wae=e=>{const{componentCls:t}=e;return{[`${t}-item`]:Object.assign(Object.assign({display:"inline-block",minWidth:e.paginationItemSize,height:e.paginationItemSize,marginInlineEnd:e.marginXS,fontFamily:e.paginationFontFamily,lineHeight:`${e.paginationItemSize-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,transition:"none","&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}}},$f(e)),{"&-active":{fontWeight:e.paginationFontWeightActive,backgroundColor:e.paginationItemBgActive,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}})}},Oae=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},mn(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.paginationItemSize,marginInlineEnd:e.marginXS,lineHeight:`${e.paginationItemSize-2}px`,verticalAlign:"middle"}}),wae(e)),Eae(e)),xae(e)),Cae(e)),Sae(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"}}},$ae=e=>{const{componentCls:t}=e;return{[`${t}${t}-disabled`]:{"&, &: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.paginationItemDisabledBgActive}},[`${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]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.paginationItemBg},[`${t}-item-link`]:{backgroundColor:e.paginationItemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.paginationItemBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},Iae=In("Pagination",e=>{const t=Kt(e,{paginationItemSize:e.controlHeight,paginationFontFamily:e.fontFamily,paginationItemBg:e.colorBgContainer,paginationItemBgActive:e.colorBgContainer,paginationFontWeightActive:e.fontWeightStrong,paginationItemSizeSM:e.controlHeightSM,paginationItemInputBg:e.colorBgContainer,paginationMiniOptionsSizeChangerTop:0,paginationItemDisabledBgActive:e.controlItemBgActiveDisabled,paginationItemDisabledColorActive:e.colorTextDisabled,paginationItemLinkBg:e.colorBgContainer,inputOutlineOffset:"0 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"},SE(e));return[Oae(t),e.wireframe&&$ae(t)]});var Rae=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,selectPrefixCls:n,className:r,rootClassName:o,size:i,locale:a,selectComponentClass:l,responsive:s,showSizeChanger:d}=e,f=Rae(e,["prefixCls","selectPrefixCls","className","rootClassName","size","locale","selectComponentClass","responsive","showSizeChanger"]);const{xs:m}=Ov(s),{getPrefixCls:h,direction:g,pagination:v={}}=c.useContext(yt),C=h("pagination",t),[S,y]=Iae(C),x=d??v.showSizeChanger,E=c.useMemo(()=>{const M=c.createElement("span",{className:`${C}-item-ellipsis`},"•••"),T=c.createElement("button",{className:`${C}-item-link`,type:"button",tabIndex:-1},g==="rtl"?c.createElement(qS,null):c.createElement(nR,null)),D=c.createElement("button",{className:`${C}-item-link`,type:"button",tabIndex:-1},g==="rtl"?c.createElement(nR,null):c.createElement(qS,null)),N=c.createElement("a",{className:`${C}-item-link`},c.createElement("div",{className:`${C}-item-container`},g==="rtl"?c.createElement(tR,{className:`${C}-item-link-icon`}):c.createElement(eR,{className:`${C}-item-link-icon`}),M)),P=c.createElement("a",{className:`${C}-item-link`},c.createElement("div",{className:`${C}-item-container`},g==="rtl"?c.createElement(eR,{className:`${C}-item-link-icon`}):c.createElement(tR,{className:`${C}-item-link-icon`}),M));return{prevIcon:T,nextIcon:D,jumpPrevIcon:N,jumpNextIcon:P}},[g,C]),[O]=Kf("Pagination",UA),w=Object.assign(Object.assign({},O),a),$=i==="small"||!!(m&&!i&&s),R=h("select",n),_=te({[`${C}-mini`]:$,[`${C}-rtl`]:g==="rtl"},r,o,y);return S(c.createElement(Tk,Object.assign({},E,f,{prefixCls:C,selectPrefixCls:R,className:_,selectComponentClass:l||($?Pk:Nk),locale:w,showSizeChanger:x})))},_E=_ae,Tae=new Dt("antSpinMove",{to:{opacity:1}}),Pae=new Dt("antRotate",{to:{transform:"rotate(405deg)"}}),Nae=e=>({[`${e.componentCls}`]:Object.assign(Object.assign({},mn(e)),{position:"absolute",display:"none",color:e.colorPrimary,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}`},[`&${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:Tae,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:Pae,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"}})}),Mae=In("Spin",e=>{const t=Kt(e,{spinDotDefault:e.colorTextDescription,spinDotSize:e.controlHeightLG/2,spinDotSizeSM:e.controlHeightLG*.35,spinDotSizeLG:e.controlHeight});return[Nae(t)]},{contentHeight:400});var Aae=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:l,wrapperClassName:s,style:d,children:f,hashId:m}=e,h=Aae(e,["spinPrefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","hashId"]),[g,v]=c.useState(()=>n&&!Dae(n,r));c.useEffect(()=>{if(n){const w=Uoe(r,()=>{v(!0)});return w(),()=>{var $;($=w==null?void 0:w.cancel)===null||$===void 0||$.call(w)}}v(!1)},[r,n]);const C=c.useMemo(()=>typeof f<"u",[f]),{direction:S}=c.useContext(yt),y=te(t,{[`${t}-sm`]:a==="small",[`${t}-lg`]:a==="large",[`${t}-spinning`]:g,[`${t}-show-text`]:!!l,[`${t}-rtl`]:S==="rtl"},o,i,m),x=te(`${t}-container`,{[`${t}-blur`]:g}),E=kr(h,["indicator","prefixCls"]),O=c.createElement("div",Object.assign({},E,{style:d,className:y,"aria-live":"polite","aria-busy":g}),Lae(t,e),l?c.createElement("div",{className:`${t}-text`},l):null);return C?c.createElement("div",Object.assign({},E,{className:te(`${t}-nested-loading`,s,m)}),g&&c.createElement("div",{key:"loading"},O),c.createElement("div",{className:x,key:"container"},f)):O},Mk=e=>{const{prefixCls:t}=e,{getPrefixCls:n}=c.useContext(yt),r=n("spin",t),[o,i]=Mae(r),a=Object.assign(Object.assign({},e),{spinPrefixCls:r,hashId:i});return o(c.createElement(kae,Object.assign({},a)))};Mk.setDefaultIndicator=e=>{ah=e};const Ak=Mk;function Lk(){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 Dk=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=Dk(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:l}=c.useContext(yt),s=l("list",t),d=te(`${s}-item-meta`,n),f=ge.createElement("div",{className:`${s}-item-meta-content`},o&&ge.createElement("h4",{className:`${s}-item-meta-title`},o),i&&ge.createElement("div",{className:`${s}-item-meta-description`},i));return ge.createElement("div",Object.assign({},a,{className:d}),r&&ge.createElement("div",{className:`${s}-item-meta-avatar`},r),(o||i)&&f)},Bae=(e,t)=>{var{prefixCls:n,children:r,actions:o,extra:i,className:a,colStyle:l}=e,s=Dk(e,["prefixCls","children","actions","extra","className","colStyle"]);const{grid:d,itemLayout:f}=c.useContext(TE),{getPrefixCls:m}=c.useContext(yt),h=()=>{let x;return c.Children.forEach(r,E=>{typeof E=="string"&&(x=!0)}),x&&c.Children.count(r)>1},g=()=>f==="vertical"?!!i:!h(),v=m("list",n),C=o&&o.length>0&&ge.createElement("ul",{className:`${v}-item-action`,key:"actions"},o.map((x,E)=>ge.createElement("li",{key:`${v}-item-action-${E}`},x,E!==o.length-1&&ge.createElement("em",{className:`${v}-item-action-split`})))),S=d?"div":"li",y=ge.createElement(S,Object.assign({},s,d?{}:{ref:t},{className:te(`${v}-item`,{[`${v}-item-no-flex`]:!g()},a)}),f==="vertical"&&i?[ge.createElement("div",{className:`${v}-item-main`,key:"content"},r,C),ge.createElement("div",{className:`${v}-item-extra`,key:"extra"},i)]:[r,C,mr(i,{key:"extra"})]);return d?ge.createElement(Oie,{ref:t,flex:1,style:l},y):y},kk=c.forwardRef(Bae);kk.Meta=Fae;const zae=kk,Hae=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:o,padding:i,listItemPaddingSM:a,marginLG:l,borderRadiusLG:s}=e;return{[`${t}`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:s,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${o}px ${l}px`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:`${i}px ${r}px`}}}},jae=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`}}}}}},Vae=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:o,paddingSM:i,marginLG:a,padding:l,listItemPadding:s,colorPrimary:d,listItemPaddingSM:f,listItemPaddingLG:m,paddingXS:h,margin:g,colorText:v,colorTextDescription:C,motionDurationSlow:S,lineWidth:y}=e,x={};return["start","center","end"].forEach(E=>{x[`&-align-${E}`]={textAlign:E}}),{[`${t}`]:Object.assign(Object.assign({},mn(e)),{position:"relative","*":{outline:"none"},[`${t}-header, ${t}-footer`]:{background:"transparent",paddingBlock:i},[`${t}-pagination`]:Object.assign(Object.assign({marginBlockStart:a},x),{[`${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:s,color:v,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:l},[`${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:d}}},[`${t}-item-meta-description`]:{color:C,fontSize:e.fontSize,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 ${h}px`,color:C,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center",["&:first-child"]:{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:y,height:Math.ceil(e.fontSize*e.lineHeight)-e.marginXXS*2,transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${l}px 0`,color:C,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:l,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:l,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:i,color:v,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:l,marginInlineStart:"auto","> li":{padding:`0 ${l}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:m},[`${t}-sm ${t}-item`]:{padding:f},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},Uae=In("List",e=>{const t=Kt(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG,listItemPadding:`${e.paddingContentVertical}px 0`,listItemPaddingSM:`${e.paddingContentVerticalSM}px ${e.paddingContentHorizontal}px`,listItemPaddingLG:`${e.paddingContentVerticalLG}px ${e.paddingContentHorizontalLG}px`});return[Vae(t),Hae(t),jae(t)]},{contentWidth:220});var Wae=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(de,_e)=>{R(de),M(_e),n&&n[Se]&&n[Se](de,_e)},k=L("onChange"),F=L("onShowSizeChange"),V=(Se,de)=>{if(!x)return null;let _e;return typeof y=="function"?_e=y(Se):y?_e=Se[y]:_e=Se.key,_e||(_e=`list-item-${de}`),c.createElement(c.Fragment,{key:_e},x(Se,de))},H=()=>!!(f||n||C),W=T("list",r),[G,U]=Uae(W);let X=S;typeof X=="boolean"&&(X={spinning:X});const Q=X&&X.spinning;let Y="";switch(g){case"large":Y="lg";break;case"small":Y="sm";break}const q=te(W,{[`${W}-vertical`]:d==="vertical",[`${W}-${Y}`]:Y,[`${W}-split`]:i,[`${W}-bordered`]:o,[`${W}-loading`]:Q,[`${W}-grid`]:!!m,[`${W}-something-after-last-item`]:H(),[`${W}-rtl`]:N==="rtl"},a,l,U),ne=Lk(P,{total:h.length,current:$,pageSize:_},n||{}),le=Math.ceil(ne.total/ne.pageSize);ne.current>le&&(ne.current=le);const we=n?c.createElement("div",{className:te(`${W}-pagination`,`${W}-pagination-align-${(t=ne==null?void 0:ne.align)!==null&&t!==void 0?t:"end"}`)},c.createElement(_E,Object.assign({},ne,{onChange:k,onShowSizeChange:F}))):null;let Oe=Pe(h);n&&h.length>(ne.current-1)*ne.pageSize&&(Oe=Pe(h).splice((ne.current-1)*ne.pageSize,ne.pageSize));const Ce=Object.keys(m||{}).some(Se=>["xs","sm","md","lg","xl","xxl"].includes(Se)),ce=Ov(Ce),he=c.useMemo(()=>{for(let Se=0;Se{if(!m)return;const Se=he&&m[he]?m[he]:m.column;if(Se)return{width:`${100/Se}%`,maxWidth:`${100/Se}%`}},[m==null?void 0:m.column,he]);let pe=Q&&c.createElement("div",{style:{minHeight:53}});if(Oe.length>0){const Se=Oe.map((de,_e)=>V(de,_e));pe=m?c.createElement(Rie,{gutter:m.gutter},c.Children.map(Se,de=>c.createElement("div",{key:de==null?void 0:de.key,style:ie},de))):c.createElement("ul",{className:`${W}-items`},Se)}else!s&&!Q&&(pe=c.createElement("div",{className:`${W}-empty-text`},E&&E.emptyText||(D==null?void 0:D("List"))||c.createElement(nE,{componentName:"List"})));const fe=ne.position||"bottom",Ie=c.useMemo(()=>({grid:m,itemLayout:d}),[JSON.stringify(m),d]);return G(c.createElement(TE.Provider,{value:Ie},c.createElement("div",Object.assign({className:q},O),(fe==="top"||fe==="both")&&we,v&&c.createElement("div",{className:`${W}-header`},v),c.createElement(Ak,Object.assign({},X),pe,s),C&&c.createElement("div",{className:`${W}-footer`},C),f||(fe==="bottom"||fe==="both")&&we)))}lh.Item=zae;let Jo=null,vs=e=>e(),Nf=[],ug={};function Kae(){const{prefixCls:e,getContainer:t,duration:n,rtl:r,maxCount:o,top:i}=ug,a=e??kx().getPrefixCls("message"),l=(t==null?void 0:t())||document.body;return{prefixCls:a,container:l,duration:n,rtl:r,maxCount:o,top:i}}const Gae=c.forwardRef((e,t)=>{const n=()=>{const{prefixCls:m,container:h,maxCount:g,duration:v,rtl:C,top:S}=Kae();return{prefixCls:m,getContainer:()=>h,maxCount:g,duration:v,rtl:C,top:S}},[r,o]=c.useState(n),[i,a]=hL(r),l=kx(),s=l.getRootPrefixCls(),d=l.getIconPrefixCls(),f=()=>{o(n)};return c.useEffect(f,[]),c.useImperativeHandle(t,()=>{const m=Object.assign({},i);return Object.keys(m).forEach(h=>{m[h]=function(){return f(),i[h].apply(i,arguments)}}),{instance:m,sync:f}}),c.createElement(Wa,{prefixCls:s,iconPrefixCls:d},a)});function Lv(){if(!Jo){const e=document.createDocumentFragment(),t={fragment:e};Jo=t,vs(()=>{Hx(c.createElement(Gae,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,Lv())})}}),e)});return}Jo.instance&&(Nf.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{vs(()=>{const r=Jo.instance.open(Object.assign(Object.assign({},ug),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":vs(()=>{Jo==null||Jo.instance.destroy(e.key)});break;default:vs(()=>{var r;const o=(r=Jo.instance)[t].apply(r,Pe(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),Nf=[])}function Xae(e){ug=Object.assign(Object.assign({},ug),e),vs(()=>{var t;(t=Jo==null?void 0:Jo.sync)===null||t===void 0||t.call(Jo)})}function Yae(e){const t=zx(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:i=>{r=i}};return Nf.push(o),()=>{r?vs(()=>{r()}):o.skipped=!0}});return Lv(),t}function qae(e,t){const n=zx(r=>{let o;const i={type:e,args:t,resolve:r,setCloseFn:a=>{o=a}};return Nf.push(i),()=>{o?vs(()=>{o()}):i.skipped=!0}});return Lv(),n}function Qae(e){Nf.push({type:"destroy",key:e}),Lv()}const Zae=["success","info","warning","error","loading"],Jae={open:Yae,destroy:Qae,config:Xae,useMessage:sQ,_InternalPanelDoNotUseOrYouWillBeFired:rQ},Fk=Jae;Zae.forEach(e=>{Fk[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r10&&arguments[10]!==void 0?arguments[10]:0,h=r/100*360*((360-a)/360),g=a===0?0:{bottom:0,top:180,left:90,right:-90}[l],v=(100-o)/100*n;return d==="round"&&o!==100&&(v+=f/2,v>=n&&(v=n-.01)),{stroke:typeof s=="string"?s:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:v+m,transform:"rotate(".concat(i+h+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}},PE=function(t){var n=t.id,r=t.prefixCls,o=t.steps,i=t.strokeWidth,a=t.trailWidth,l=t.gapDegree,s=l===void 0?0:l,d=t.gapPosition,f=t.trailColor,m=t.strokeLinecap,h=t.style,g=t.className,v=t.strokeColor,C=t.percent,S=vt(t,ile),y=ole(n),x="".concat(y,"-gradient"),E=hd/2-i/2,O=Math.PI*2*E,w=s>0?90+s/2:-90,$=O*((360-s)/360),R=Ot(o)==="object"?o:{count:o,space:2},_=R.count,M=R.space,T=hb(O,$,0,100,w,s,d,f,m,i),D=nT(C),N=nT(v),P=N.find(function(V){return V&&Ot(V)==="object"}),L=tle(),k=function(){var H=0;return D.map(function(W,G){var U=N[G]||N[N.length-1],X=U&&Ot(U)==="object"?"url(#".concat(x,")"):void 0,Q=hb(O,$,H,W,w,s,d,U,m,i);return H+=W,c.createElement("circle",{key:G,className:"".concat(r,"-circle-path"),r:E,cx:0,cy:0,stroke:X,strokeLinecap:m,strokeWidth:i,opacity:W===0?0:1,style:Q,ref:function(q){L[G]=q}})}).reverse()},F=function(){var H=Math.round(_*(D[0]/100)),W=100/_,G=0;return new Array(_).fill(null).map(function(U,X){var Q=X<=H-1?N[0]:f,Y=Q&&Ot(Q)==="object"?"url(#".concat(x,")"):void 0,q=hb(O,$,G,W,w,s,d,Q,"butt",i,M);return G+=($-q.strokeDashoffset+M)*100/$,c.createElement("circle",{key:X,className:"".concat(r,"-circle-path"),r:E,cx:0,cy:0,stroke:Y,strokeWidth:i,opacity:1,style:q,ref:function(le){L[X]=le}})})};return c.createElement("svg",je({className:te("".concat(r,"-circle"),g),viewBox:"".concat(-hd/2," ").concat(-hd/2," ").concat(hd," ").concat(hd),style:h,id:n,role:"presentation"},S),P&&c.createElement("defs",null,c.createElement("linearGradient",{id:x,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(P).sort(function(V,H){return tT(V)-tT(H)}).map(function(V,H){return c.createElement("stop",{key:H,offset:V,stopColor:P[V]})}))),!_&&c.createElement("circle",{className:"".concat(r,"-circle-trail"),r:E,cx:0,cy:0,stroke:f,strokeLinecap:m,strokeWidth:a||i,style:T}),_?F():k())};PE.defaultProps=ele;PE.displayName="Circle";function Os(e){return!e||e<0?0:e>100?100:e}function dg(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 ale=e=>{let{percent:t,success:n,successPercent:r}=e;const o=Os(dg({success:n,successPercent:r}));return[o,Os(Os(t)-o)]},lle=e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||Qu.green,n||null]},Dv=(e,t,n)=>{var r,o,i,a;let l=-1,s=-1;if(t==="step"){const d=n.steps,f=n.strokeWidth;typeof e=="string"||typeof e>"u"?(l=e==="small"?2:14,s=f??8):typeof e=="number"?[l,s]=[e,e]:[l=14,s=8]=e,l*=d}else if(t==="line"){const d=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?s=d||(e==="small"?6:8):typeof e=="number"?[l,s]=[e,e]:[l=-1,s=8]=e}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[l,s]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[l,s]=[e,e]:(l=(o=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&o!==void 0?o:120,s=(a=(i=e[0])!==null&&i!==void 0?i:e[1])!==null&&a!==void 0?a:120));return[l,s]},sle=3,ule=e=>sle/e*100,cle=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:o,gapDegree:i,width:a=120,type:l,children:s,success:d,size:f}=e,m=f??[a,a],[h,g]=Dv(m,"circle");let{strokeWidth:v}=e;v===void 0&&(v=Math.max(ule(h),6));const C={width:h,height:g,fontSize:h*.15+6},S=c.useMemo(()=>{if(i||i===0)return i;if(l==="dashboard")return 75},[i,l]),y=o||l==="dashboard"&&"bottom"||void 0,x=Object.prototype.toString.call(e.strokeColor)==="[object Object]",E=lle({success:d,strokeColor:e.strokeColor}),O=te(`${t}-inner`,{[`${t}-circle-gradient`]:x}),w=c.createElement(PE,{percent:ale(e),strokeWidth:v,trailWidth:v,strokeColor:E,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:S,gapPosition:y});return c.createElement("div",{className:O,style:C},h<=20?c.createElement(Jf,{title:s},c.createElement("span",null,w)):c.createElement(c.Fragment,null,w,s))},dle=cle;var fle=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(", ")},mle=(e,t)=>{const{from:n=Qu.blue,to:r=Qu.blue,direction:o=t==="rtl"?"to left":"to right"}=e,i=fle(e,["from","to","direction"]);if(Object.keys(i).length!==0){const a=ple(i);return{backgroundImage:`linear-gradient(${o}, ${a})`}}return{backgroundImage:`linear-gradient(${o}, ${n}, ${r})`}},hle=e=>{const{prefixCls:t,direction:n,percent:r,size:o,strokeWidth:i,strokeColor:a,strokeLinecap:l="round",children:s,trailColor:d=null,success:f}=e,m=a&&typeof a!="string"?mle(a,n):{backgroundColor:a},h=l==="square"||l==="butt"?0:void 0,g={backgroundColor:d||void 0,borderRadius:h},v=o??[-1,i||(o==="small"?6:8)],[C,S]=Dv(v,"line",{strokeWidth:i}),y=Object.assign({width:`${Os(r)}%`,height:S,borderRadius:h},m),x=dg(e),E={width:`${Os(x)}%`,height:S,borderRadius:h,backgroundColor:f==null?void 0:f.strokeColor},O={width:C<0?"100%":C,height:S};return c.createElement(c.Fragment,null,c.createElement("div",{className:`${t}-outer`,style:O},c.createElement("div",{className:`${t}-inner`,style:g},c.createElement("div",{className:`${t}-bg`,style:y}),x!==void 0?c.createElement("div",{className:`${t}-success-bg`,style:E}):null)),s)},gle=hle,vle=e=>{const{size:t,steps:n,percent:r=0,strokeWidth:o=8,strokeColor:i,trailColor:a=null,prefixCls:l,children:s}=e,d=Math.round(n*(r/100)),m=t??[t==="small"?2:14,o],[h,g]=Dv(m,"step",{steps:n,strokeWidth:o}),v=h/n,C=new Array(n);for(let S=0;S{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},mn(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:ble,animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${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}}})}},Cle=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"}}}},xle=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}}}}}},Ele=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},wle=In("Progress",e=>{const t=e.marginXXS/2,n=Kt(e,{progressLineRadius:100,progressInfoTextColor:e.colorText,progressDefaultColor:e.colorInfo,progressRemainingColor:e.colorFillSecondary,progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[Sle(n),Cle(n),xle(n),Ele(n)]});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{const{prefixCls:t,className:n,rootClassName:r,steps:o,strokeColor:i,percent:a=0,size:l="default",showInfo:s=!0,type:d="line",status:f,format:m}=e,h=Ole(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format"]),g=c.useMemo(()=>{var M,T;const D=dg(e);return parseInt(D!==void 0?(M=D??0)===null||M===void 0?void 0:M.toString():(T=a??0)===null||T===void 0?void 0:T.toString(),10)},[a,e.success,e.successPercent]),v=c.useMemo(()=>!$le.includes(f)&&g>=100?"success":f||"normal",[f,g]),{getPrefixCls:C,direction:S}=c.useContext(yt),y=C("progress",t),[x,E]=wle(y),O=c.useMemo(()=>{if(!s)return null;const M=dg(e);let T;const D=m||(P=>`${P}%`),N=d==="line";return m||v!=="exception"&&v!=="success"?T=D(Os(a),Os(M)):v==="exception"?T=N?c.createElement(Rc,null):c.createElement(Vf,null):v==="success"&&(T=N?c.createElement($x,null):c.createElement(NM,null)),c.createElement("span",{className:`${y}-text`,title:typeof T=="string"?T:void 0},T)},[s,a,g,v,d,y,m]),w=Array.isArray(i)?i[0]:i,$=typeof i=="string"||Array.isArray(i)?i:void 0;let R;d==="line"?R=o?c.createElement(yle,Object.assign({},e,{strokeColor:$,prefixCls:y,steps:o}),O):c.createElement(gle,Object.assign({},e,{strokeColor:w,prefixCls:y,direction:S}),O):(d==="circle"||d==="dashboard")&&(R=c.createElement(dle,Object.assign({},e,{strokeColor:w,prefixCls:y,progressStatus:v}),O));const _=te(y,{[`${y}-inline-circle`]:d==="circle"&&Dv(l,"circle")[0]<=20,[`${y}-${d==="dashboard"&&"circle"||o&&"steps"||d}`]:!0,[`${y}-status-${v}`]:!0,[`${y}-show-info`]:s,[`${y}-${l}`]:typeof l=="string",[`${y}-rtl`]:S==="rtl"},n,r,E);return x(c.createElement("div",Object.assign({className:_,role:"progressbar"},kr(h,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),R))},rT=Ile;var dl={};function Rle(e){var t=c.createContext(void 0),n=function(o){var i=o.value,a=o.children,l=c.useRef(i);l.current=i;var s=c.useState(function(){return{getValue:function(){return l.current},listeners:new Set}}),d=ue(s,1),f=d[0];return an(function(){Ni.unstable_batchedUpdates(function(){f.listeners.forEach(function(m){m(i)})})},[i]),c.createElement(t.Provider,{value:f},a)};return{Context:t,Provider:n,defaultValue:e}}function Hi(e,t){var n=so(typeof t=="function"?t:function(m){if(t===void 0)return m;if(!Array.isArray(t))return m[t];var h={};return t.forEach(function(g){h[g]=m[g]}),h}),r=c.useContext(e==null?void 0:e.Context),o=r||{},i=o.listeners,a=o.getValue,l=c.useRef();l.current=n(r?a():e==null?void 0:e.defaultValue);var s=c.useState({}),d=ue(s,2),f=d[1];return an(function(){if(!r)return;function m(h){var g=n(h);Fa(l.current,g,!0)||f({})}return i.add(m),function(){i.delete(m)}},[r]),l.current}var zk=c.createContext(0);function Hk(){return c.useContext(zk)}function _le(e,t){var n=Hl(e),r=function(i,a){var l=n?{ref:a}:{},s=c.useRef(0),d=c.useRef(i);return(!t||t(d.current,i))&&(s.current+=1),d.current=i,c.createElement(zk.Provider,{value:s.current},c.createElement(e,je({},i,l)))};return n?c.forwardRef(r):r}function kv(e,t){var n=Hl(e),r=function(i,a){var l=n?{ref:a}:{};return Hk(),c.createElement(e,je({},i,l))};return n?c.memo(c.forwardRef(r),t):c.memo(r,t)}var pi=Rle();function Tle(e,t){var n=c.useRef(0);n.current+=1;var r=c.useRef(e),o=[];Object.keys(e||{}).map(function(a){var l;(e==null?void 0:e[a])!==((l=r.current)===null||l===void 0?void 0:l[a])&&o.push(a)}),r.current=e;var i=c.useRef([]);return o.length&&(i.current=o),c.useDebugValue(n.current),c.useDebugValue(i.current.join(", ")),t&&console.log("".concat(t,":"),n.current,i.current),n.current}var Ple=c.memo(function(){var e=Tle();return c.createElement("h1",null,"Render Times: ",e)});Ple.displayName="RenderBlock";var jk=c.createContext({renderWithProps:!1}),Nle="RC_TABLE_KEY";function Mle(e){return e==null?[]:Array.isArray(e)?e:[e]}function Fv(e){var t=[],n={};return e.forEach(function(r){for(var o=r||{},i=o.key,a=o.dataIndex,l=i||Mle(a).join("-")||Nle;n[l];)l="".concat(l,"_next");n[l]=!0,t.push(l)}),t}function ZC(e){return e!=null}function Ale(e){return e&&Ot(e)==="object"&&!Array.isArray(e)&&!c.isValidElement(e)}function Lle(e,t,n,r,o,i){var a=c.useContext(jk),l=Hk(),s=Hs(function(){if(ZC(r))return[r];var d=t==null||t===""?[]:Array.isArray(t)?t:[t],f=Ri(e,d),m=f,h=void 0;if(o){var g=o(f,e,n);Ale(g)?(m=g.children,h=g.props,a.renderWithProps=!0):m=g}return[m,h]},[l,e,r,t,o,n],function(d,f){if(i){var m=ue(d,2),h=m[1],g=ue(f,2),v=g[1];return i(v,h)}return a.renderWithProps?!0:!Fa(d,f,!0)});return s}function Dle(e,t,n,r){var o=e+t-1;return e<=r&&o>=n}function kle(e,t){return Hi(pi,function(n){var r=Dle(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var Fle=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():c.isValidElement(o)&&typeof o.props.children=="string"&&(i=o.props.children)),i};function Ble(e){var t,n,r,o,i,a,l,s,d=e.component,f=e.children,m=e.ellipsis,h=e.scope,g=e.prefixCls,v=e.className,C=e.align,S=e.record,y=e.render,x=e.dataIndex,E=e.renderIndex,O=e.shouldCellUpdate,w=e.index,$=e.rowType,R=e.colSpan,_=e.rowSpan,M=e.fixLeft,T=e.fixRight,D=e.firstFixLeft,N=e.lastFixLeft,P=e.firstFixRight,L=e.lastFixRight,k=e.appendNode,F=e.additionalProps,V=F===void 0?{}:F,H=e.isSticky,W="".concat(g,"-cell"),G=Hi(pi,["supportSticky","allColumnsFixedLeft"]),U=G.supportSticky,X=G.allColumnsFixedLeft,Q=Lle(S,x,E,f,y,O),Y=ue(Q,2),q=Y[0],ne=Y[1],le={},we=typeof M=="number"&&U,Oe=typeof T=="number"&&U;we&&(le.position="sticky",le.left=M),Oe&&(le.position="sticky",le.right=T);var Ce=(t=(n=(r=ne==null?void 0:ne.colSpan)!==null&&r!==void 0?r:V.colSpan)!==null&&n!==void 0?n:R)!==null&&t!==void 0?t:1,ce=(o=(i=(a=ne==null?void 0:ne.rowSpan)!==null&&a!==void 0?a:V.rowSpan)!==null&&i!==void 0?i:_)!==null&&o!==void 0?o:1,he=kle(w,ce),ie=ue(he,2),pe=ie[0],fe=ie[1],Ie=function(ct){var ut;S&&fe(w,w+ce-1),V==null||(ut=V.onMouseEnter)===null||ut===void 0||ut.call(V,ct)},Se=function(ct){var ut;S&&fe(-1,-1),V==null||(ut=V.onMouseLeave)===null||ut===void 0||ut.call(V,ct)};if(Ce===0||ce===0)return null;var de=(l=V.title)!==null&&l!==void 0?l:Fle({rowType:$,ellipsis:m,children:q}),_e=te(W,v,(s={},Z(s,"".concat(W,"-fix-left"),we&&U),Z(s,"".concat(W,"-fix-left-first"),D&&U),Z(s,"".concat(W,"-fix-left-last"),N&&U),Z(s,"".concat(W,"-fix-left-all"),N&&X&&U),Z(s,"".concat(W,"-fix-right"),Oe&&U),Z(s,"".concat(W,"-fix-right-first"),P&&U),Z(s,"".concat(W,"-fix-right-last"),L&&U),Z(s,"".concat(W,"-ellipsis"),m),Z(s,"".concat(W,"-with-append"),k),Z(s,"".concat(W,"-fix-sticky"),(we||Oe)&&H&&U),Z(s,"".concat(W,"-row-hover"),!ne&&pe),s),V.className,ne==null?void 0:ne.className),be={};C&&(be.textAlign=C);var Xe=j(j(j(j({},V.style),be),le),ne==null?void 0:ne.style),Qe=q;return Ot(Qe)==="object"&&!Array.isArray(Qe)&&!c.isValidElement(Qe)&&(Qe=null),m&&(N||P)&&(Qe=c.createElement("span",{className:"".concat(W,"-content")},Qe)),c.createElement(d,je({},ne,V,{className:_e,style:Xe,title:de,scope:h,onMouseEnter:Ie,onMouseLeave:Se,colSpan:Ce!==1?Ce:null,rowSpan:ce!==1?ce:null}),k,Qe)}const Bv=c.memo(Ble);function NE(e,t,n,r,o,i){var a=n[e]||{},l=n[t]||{},s,d;a.fixed==="left"?s=r.left[o==="rtl"?t:e]:l.fixed==="right"&&(d=r.right[o==="rtl"?e:t]);var f=!1,m=!1,h=!1,g=!1,v=n[t+1],C=n[e-1],S=!(i!=null&&i.children);if(o==="rtl"){if(s!==void 0){var y=C&&C.fixed==="left";g=!y&&S}else if(d!==void 0){var x=v&&v.fixed==="right";h=!x&&S}}else if(s!==void 0){var E=v&&v.fixed==="left";f=!E&&S}else if(d!==void 0){var O=C&&C.fixed==="right";m=!O&&S}return{fixLeft:s,fixRight:d,lastFixLeft:f,firstFixRight:m,lastFixRight:h,firstFixLeft:g,isSticky:r.isSticky}}var Vk=c.createContext({});function zle(e){var t=e.className,n=e.index,r=e.children,o=e.colSpan,i=o===void 0?1:o,a=e.rowSpan,l=e.align,s=Hi(pi,["prefixCls","direction"]),d=s.prefixCls,f=s.direction,m=c.useContext(Vk),h=m.scrollColumnIndex,g=m.stickyOffsets,v=m.flattenColumns,C=m.columns,S=n+i-1,y=S+1===h?i+1:i,x=NE(n,n+y-1,v,g,f,C==null?void 0:C[n]);return c.createElement(Bv,je({className:t,index:n,component:"td",prefixCls:d,record:null,dataIndex:null,align:l,colSpan:y,rowSpan:a,render:function(){return r}},x))}var Hle=["children"];function jle(e){var t=e.children,n=vt(e,Hle);return c.createElement("tr",n,t)}function zv(e){var t=e.children;return t}zv.Row=jle;zv.Cell=zle;function Vle(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,o=e.columns,i=Hi(pi,"prefixCls"),a=r.length-1,l=r[a],s=c.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:l!=null&&l.scrollbar?a:null,columns:o}},[l,r,a,n,o]);return c.createElement(Vk.Provider,{value:s},c.createElement("tfoot",{className:"".concat(i,"-summary")},t))}const Mm=kv(Vle);var Uk=zv;function Ule(e){return null}function Wle(e){return null}function Wk(e,t,n,r,o,i){var a=[];a.push({record:e,indent:t,index:i});var l=o(e),s=r==null?void 0:r.has(l);if(e&&Array.isArray(e[n])&&s)for(var d=0;d1?fe-1:0),Se=1;Se=0;l-=1){var s=t[l],d=n&&n[l],f=d&&d[Xd];if(s||f||a){var m=f||{};m.columnType;var h=vt(m,Jle);o.unshift(c.createElement("col",je({key:l,style:{width:s}},h))),a=!0}}return c.createElement("colgroup",null,o)}var ese=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function tse(e,t){return c.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(E,"-cell-scrollbar")}}},N=c.useMemo(function(){return $?[].concat(Pe(o),[D]):o},[$,o]),P=c.useMemo(function(){return $?[].concat(Pe(i),[D]):i},[$,i]),L=c.useMemo(function(){var F=s.right,V=s.left;return j(j({},s),{},{left:d==="rtl"?[].concat(Pe(V.map(function(H){return H+$})),[0]):V,right:d==="rtl"?F:[].concat(Pe(F.map(function(H){return H+$})),[0]),isSticky:w})},[$,s,w]),k=tse(a,l);return c.createElement("div",{style:j({overflow:"hidden"},w?{top:m,bottom:h}:{}),ref:_,className:te(n,Z({},g,!!g))},c.createElement("table",{style:{tableLayout:"fixed",visibility:r||k?null:"hidden"}},(!r||!C||M)&&c.createElement(Yk,{colWidths:k?[].concat(Pe(k),[$]):[],columCount:l+1,columns:P}),S(j(j({},y),{},{stickyOffsets:L,columns:N,flattenColumns:P}))))});qk.displayName="FixedHolder";const oT=c.memo(qk);function Qk(e){var t=e.cells,n=e.stickyOffsets,r=e.flattenColumns,o=e.rowComponent,i=e.cellComponent,a=e.tdCellComponent,l=e.onHeaderRow,s=e.index,d=Hi(pi,["prefixCls","direction"]),f=d.prefixCls,m=d.direction,h;l&&(h=l(t.map(function(v){return v.column}),s));var g=Fv(t.map(function(v){return v.column}));return c.createElement(o,h,t.map(function(v,C){var S=v.column,y=NE(v.colStart,v.colEnd,r,n,m,S),x;return S&&S.onHeaderCell&&(x=v.column.onHeaderCell(S)),c.createElement(Bv,je({},v,{scope:S.title?v.colSpan>1?"colgroup":"col":null,ellipsis:S.ellipsis,align:S.align,component:S.title?i:a,prefixCls:f,key:g[C]},y,{additionalProps:x,rowType:"header"}))}))}Qk.displayName="HeaderRow";function nse(e){var t=[];function n(a,l){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[s]=t[s]||[];var d=l,f=a.filter(Boolean).map(function(m){var h={key:m.key,className:m.className||"",children:m.title,column:m,colStart:d},g=1,v=m.children;return v&&v.length>0&&(g=n(v,d,s+1).reduce(function(C,S){return C+S},0),h.hasSubColumns=!0),"colSpan"in m&&(g=m.colSpan),"rowSpan"in m&&(h.rowSpan=m.rowSpan),h.colSpan=g,h.colEnd=h.colStart+g-1,t[s].push(h),d+=g,g});return f}n(e,0);for(var r=t.length,o=function(l){t[l].forEach(function(s){!("rowSpan"in s)&&!s.hasSubColumns&&(s.rowSpan=r-l)})},i=0;i0?[].concat(Pe(t),Pe(JC(i).map(function(a){return j({fixed:o},a)}))):[].concat(Pe(t),[j(j({},n),{},{fixed:o})])},[])}function ase(e){return e.map(function(t){var n=t.fixed,r=vt(t,ise),o=n;return n==="left"?o="right":n==="right"&&(o="left"),j({fixed:o},r)})}function lse(e,t){var n=e.prefixCls,r=e.columns,o=e.children,i=e.expandable,a=e.expandedKeys,l=e.columnTitle,s=e.getRowKey,d=e.onTriggerExpand,f=e.expandIcon,m=e.rowExpandable,h=e.expandIconColumnIndex,g=e.direction,v=e.expandRowByClick,C=e.columnWidth,S=e.fixed,y=c.useMemo(function(){return r||ME(o)},[r,o]),x=c.useMemo(function(){if(i){var w,$=y.slice();if(!$.includes(dl)){var R=h||0;R>=0&&$.splice(R,0,dl)}var _=$.indexOf(dl);$=$.filter(function(N,P){return N!==dl||P===_});var M=y[_],T;(S==="left"||S)&&!h?T="left":(S==="right"||S)&&h===y.length?T="right":T=M?M.fixed:null;var D=(w={},Z(w,Xd,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),Z(w,"title",l),Z(w,"fixed",T),Z(w,"className","".concat(n,"-row-expand-icon-cell")),Z(w,"width",C),Z(w,"render",function(P,L,k){var F=s(L,k),V=a.has(F),H=m?m(L):!0,W=f({prefixCls:n,expanded:V,expandable:H,record:L,onExpand:d});return v?c.createElement("span",{onClick:function(U){return U.stopPropagation()}},W):W}),w);return $.map(function(N){return N===dl?D:N})}return y.filter(function(N){return N!==dl})},[i,y,s,a,f,g]),E=c.useMemo(function(){var w=x;return t&&(w=t(w)),w.length||(w=[{render:function(){return null}}]),w},[t,x,g]),O=c.useMemo(function(){return g==="rtl"?ase(JC(E)):JC(E)},[E,g]);return[E,O]}function sse(e){var t,n=e.prefixCls,r=e.record,o=e.onExpand,i=e.expanded,a=e.expandable,l="".concat(n,"-row-expand-icon");if(!a)return c.createElement("span",{className:te(l,"".concat(n,"-row-spaced"))});var s=function(f){o(r,f),f.stopPropagation()};return c.createElement("span",{className:te(l,(t={},Z(t,"".concat(n,"-row-expanded"),i),Z(t,"".concat(n,"-row-collapsed"),!i),t)),onClick:s})}function use(e,t,n){var r=[];function o(i){(i||[]).forEach(function(a,l){r.push(t(a,l)),o(a[n])})}return o(e),r}function cse(e,t,n){var r=Zle(e),o=r.expandIcon,i=r.expandedRowKeys,a=r.defaultExpandedRowKeys,l=r.defaultExpandAllRows,s=r.expandedRowRender,d=r.onExpand,f=r.onExpandedRowsChange,m=r.childrenColumnName,h=o||sse,g=m||"children",v=c.useMemo(function(){return s?"row":e.expandable&&e.internalHooks===fg&&e.expandable.__PARENT_RENDER_ICON__||t.some(function(w){return w&&Ot(w)==="object"&&w[g]})?"nest":!1},[!!s,t]),C=c.useState(function(){return a||(l?use(t,n,g):[])}),S=ue(C,2),y=S[0],x=S[1],E=c.useMemo(function(){return new Set(i||y||[])},[i,y]),O=c.useCallback(function(w){var $=n(w,t.indexOf(w)),R,_=E.has($);_?(E.delete($),R=Pe(E)):R=[].concat(Pe(E),[$]),x(R),d&&d(!_,w),f&&f(R)},[n,E,t,d,f]);return[r,v,E,h,g,O]}function dse(e,t,n,r){var o=e.map(function(i,a){return NE(a,a,e,t,n,r==null?void 0:r[a])});return Hs(function(){return o},[o],function(i,a){return!Fa(i,a)})}function Zk(e){var t=c.useRef(e),n=c.useState({}),r=ue(n,2),o=r[1],i=c.useRef(null),a=c.useRef([]);function l(s){a.current.push(s);var d=Promise.resolve();i.current=d,d.then(function(){if(i.current===d){var f=a.current,m=t.current;a.current=[],f.forEach(function(h){t.current=h(t.current)}),i.current=null,m!==t.current&&o({})}})}return c.useEffect(function(){return function(){i.current=null}},[]),[t.current,l]}function fse(e){var t=c.useRef(e||null),n=c.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 c.useEffect(function(){return r},[]),[o,i]}function pse(){var e=c.useState(-1),t=ue(e,2),n=t[0],r=t[1],o=c.useState(-1),i=ue(o,2),a=i[0],l=i[1],s=c.useCallback(function(d,f){r(d),l(f)},[]);return[n,a,s]}var aT=pr()?window:null;function mse(e,t){var n=Ot(e)==="object"?e:{},r=n.offsetHeader,o=r===void 0?0:r,i=n.offsetSummary,a=i===void 0?0:i,l=n.offsetScroll,s=l===void 0?0:l,d=n.getContainer,f=d===void 0?function(){return aT}:d,m=f()||aT;return c.useMemo(function(){var h=!!e;return{isSticky:h,stickyClassName:h?"".concat(t,"-sticky-holder"):"",offsetHeader:o,offsetSummary:a,offsetScroll:s,container:m}},[s,o,a,t,m])}function hse(e,t,n){var r=c.useMemo(function(){for(var o=[],i=[],a=0,l=0,s=0;s=m&&(V=m-h),a({scrollLeft:V/m*(f+2)}),x.current.x=P.pageX},T=function(){if(i.current){var P=X_(i.current).top,L=P+i.current.offsetHeight,k=s===window?document.documentElement.scrollTop+window.innerHeight:X_(s).top+s.clientHeight;L-qh()<=k||P>=k-l?y(function(F){return j(j({},F),{},{isHiddenScrollBar:!0})}):y(function(F){return j(j({},F),{},{isHiddenScrollBar:!1})})}},D=function(P){y(function(L){return j(j({},L),{},{scrollLeft:P/f*m||0})})};return c.useImperativeHandle(n,function(){return{setScrollLeft:D}}),c.useEffect(function(){var N=_a(document.body,"mouseup",R,!1),P=_a(document.body,"mousemove",M,!1);return T(),function(){N.remove(),P.remove()}},[h,w]),c.useEffect(function(){var N=_a(s,"scroll",T,!1),P=_a(window,"resize",T,!1);return function(){N.remove(),P.remove()}},[s]),c.useEffect(function(){S.isHiddenScrollBar||y(function(N){var P=i.current;return P?j(j({},N),{},{scrollLeft:P.scrollLeft/P.scrollWidth*P.clientWidth}):N})},[S.isHiddenScrollBar]),f<=m||!h||S.isHiddenScrollBar?null:c.createElement("div",{style:{height:qh(),width:m,bottom:l},className:"".concat(d,"-sticky-scroll")},c.createElement("div",{onMouseDown:_,ref:g,className:te("".concat(d,"-sticky-scroll-bar"),Z({},"".concat(d,"-sticky-scroll-bar-active"),w)),style:{width:"".concat(h,"px"),transform:"translate3d(".concat(S.scrollLeft,"px, 0, 0)")}}))};const vse=c.forwardRef(gse);var yse=[],bse={},fg="rc-table-internal-hook";function Sse(){return"No Data"}function Cse(e){var t,n=j({rowKey:"key",prefixCls:"rc-table",emptyText:Sse},e),r=n.prefixCls,o=n.className,i=n.rowClassName,a=n.style,l=n.data,s=n.rowKey,d=n.scroll,f=n.tableLayout,m=n.direction,h=n.title,g=n.footer,v=n.summary,C=n.caption,S=n.id,y=n.showHeader,x=n.components,E=n.emptyText,O=n.onRow,w=n.onHeaderRow,$=n.internalHooks,R=n.transformColumns,_=n.internalRefs,M=n.sticky,T=l||yse,D=!!T.length,N=c.useCallback(function(rt,nt){return Ri(x,rt)||nt},[x]),P=c.useMemo(function(){return typeof s=="function"?s:function(rt){var nt=rt&&rt[s];return nt}},[s]),L=pse(),k=ue(L,3),F=k[0],V=k[1],H=k[2],W=cse(n,T,P),G=ue(W,6),U=G[0],X=G[1],Q=G[2],Y=G[3],q=G[4],ne=G[5],le=c.useState(0),we=ue(le,2),Oe=we[0],Ce=we[1],ce=lse(j(j(j({},n),U),{},{expandable:!!U.expandedRowRender,columnTitle:U.columnTitle,expandedKeys:Q,getRowKey:P,onTriggerExpand:ne,expandIcon:Y,expandIconColumnIndex:U.expandIconColumnIndex,direction:m}),$===fg?R:null),he=ue(ce,2),ie=he[0],pe=he[1],fe=c.useMemo(function(){return{columns:ie,flattenColumns:pe}},[ie,pe]),Ie=c.useRef(),Se=c.useRef(),de=c.useRef(),_e=c.useRef(),be=c.useRef(),Xe=c.useState(!1),Qe=ue(Xe,2),ft=Qe[0],ct=Qe[1],ut=c.useState(!1),dt=ue(ut,2),He=dt[0],Je=dt[1],ee=Zk(new Map),re=ue(ee,2),oe=re[0],xe=re[1],ve=Fv(pe),Ee=ve.map(function(rt){return oe.get(rt)}),ke=c.useMemo(function(){return Ee},[Ee.join("_")]),Ye=hse(ke,pe.length,m),Fe=d&&ZC(d.y),ot=d&&ZC(d.x)||!!U.fixed,Ae=ot&&pe.some(function(rt){var nt=rt.fixed;return nt}),Ke=c.useRef(),Ue=mse(M,r),ze=Ue.isSticky,at=Ue.offsetHeader,$t=Ue.offsetSummary,tt=Ue.offsetScroll,lt=Ue.stickyClassName,Re=Ue.container,Ne=c.useMemo(function(){return v==null?void 0:v(T)},[v,T]),Te=(Fe||ze)&&c.isValidElement(Ne)&&Ne.type===zv&&Ne.props.fixed,We,qe,ht;Fe&&(qe={overflowY:"scroll",maxHeight:d.y}),ot&&(We={overflowX:"auto"},Fe||(qe={overflowY:"hidden"}),ht={width:(d==null?void 0:d.x)===!0?"auto":d==null?void 0:d.x,minWidth:"100%"});var en=c.useCallback(function(rt,nt){Yf(Ie.current)&&xe(function(Nt){if(Nt.get(rt)!==nt){var Gt=new Map(Nt);return Gt.set(rt,nt),Gt}return Nt})},[]),tn=fse(null),Rn=ue(tn,2),Rt=Rn[0],zt=Rn[1];function _n(rt,nt){nt&&(typeof nt=="function"?nt(rt):nt.scrollLeft!==rt&&(nt.scrollLeft=rt,nt.scrollLeft!==rt&&setTimeout(function(){nt.scrollLeft=rt},0)))}var Bn=so(function(rt){var nt=rt.currentTarget,Nt=rt.scrollLeft,Gt=m==="rtl",Tn=typeof Nt=="number"?Nt:nt.scrollLeft,sr=nt||bse;if(!zt()||zt()===sr){var jr;Rt(sr),_n(Tn,Se.current),_n(Tn,de.current),_n(Tn,be.current),_n(Tn,(jr=Ke.current)===null||jr===void 0?void 0:jr.setScrollLeft)}if(nt){var ur=nt.scrollWidth,bo=nt.clientWidth;if(ur===bo){ct(!1),Je(!1);return}Gt?(ct(-Tn0)):(ct(Tn>0),Je(Tn{o(i,d),d.stopPropagation()},className:te(s,{[`${s}-spaced`]:!l,[`${s}-expanded`]:l&&a,[`${s}-collapsed`]:l&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}}const Ose=Jk((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r});function Ls(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 lp(e,t){return t?`${t}-${e}`:`${e}`}function jv(e,t){return typeof e=="function"?e(t):e}function $se(e,t){const n=jv(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n}function e3(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var Ise=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],t3=function(t,n){var r=t.className,o=t.style,i=t.motion,a=t.motionNodes,l=t.motionType,s=t.onMotionStart,d=t.onMotionEnd,f=t.active,m=t.treeNodeRequiredProps,h=vt(t,Ise),g=c.useState(!0),v=ue(g,2),C=v[0],S=v[1],y=c.useContext(xE),x=y.prefixCls,E=c.useRef(!1),O=function(){E.current||d(),E.current=!0};return c.useEffect(function(){a&&l==="hide"&&C&&S(!1)},[a]),c.useEffect(function(){return a&&s(),function(){a&&O()}},[]),a?c.createElement(fi,je({ref:n,visible:C},i,{motionAppear:l==="show",onAppearEnd:O,onLeaveEnd:O}),function(w,$){var R=w.className,_=w.style;return c.createElement("div",{ref:$,className:te("".concat(x,"-treenode-motion"),R),style:_},a.map(function(M){var T=je({},(e3(M.data),M.data)),D=M.title,N=M.key,P=M.isStart,L=M.isEnd;delete T.children;var k=Kd(N,m);return c.createElement(xc,je({},T,k,{title:D,active:f,data:M.data,key:N,isStart:P,isEnd:L}))}))}):c.createElement(xc,je({domRef:n,className:r,style:o},h,{active:f}))};t3.displayName="MotionTreeNode";var Rse=c.forwardRef(t3);function _se(){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 l=new Map;i.forEach(function(d){l.set(d,!0)});var s=a.filter(function(d){return!l.has(d)});return s.length===1?s[0]:null}return n ").concat(t);return t}var r3=c.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,l=e.loadedKeys,s=e.loadingKeys,d=e.halfCheckedKeys,f=e.keyEntities,m=e.disabled,h=e.dragging,g=e.dragOverNodeKey,v=e.dropPosition,C=e.motion,S=e.height,y=e.itemHeight,x=e.virtual,E=e.focusable,O=e.activeItem,w=e.focused,$=e.tabIndex,R=e.onKeyDown,_=e.onFocus,M=e.onBlur,T=e.onActiveChange,D=e.onListChangeStart,N=e.onListChangeEnd,P=vt(e,Tse),L=c.useRef(null),k=c.useRef(null);c.useImperativeHandle(t,function(){return{scrollTo:function(Xe){L.current.scrollTo(Xe)},getIndentWidth:function(){return k.current.offsetWidth}}});var F=c.useState(o),V=ue(F,2),H=V[0],W=V[1],G=c.useState(r),U=ue(G,2),X=U[0],Q=U[1],Y=c.useState(r),q=ue(Y,2),ne=q[0],le=q[1],we=c.useState([]),Oe=ue(we,2),Ce=Oe[0],ce=Oe[1],he=c.useState(null),ie=ue(he,2),pe=ie[0],fe=ie[1],Ie=c.useRef(r);Ie.current=r;function Se(){var be=Ie.current;Q(be),le(be),ce([]),fe(null),N()}c.useEffect(function(){W(o);var be=_se(H,o);if(be.key!==null)if(be.add){var Xe=X.findIndex(function(He){var Je=He.key;return Je===be.key}),Qe=dT(sT(X,r,be.key),x,S,y),ft=X.slice();ft.splice(Xe+1,0,cT),le(ft),ce(Qe),fe("show")}else{var ct=r.findIndex(function(He){var Je=He.key;return Je===be.key}),ut=dT(sT(r,X,be.key),x,S,y),dt=r.slice();dt.splice(ct+1,0,cT),le(dt),ce(ut),fe("hide")}else X!==r&&(Q(r),le(r))},[o,r]),c.useEffect(function(){h||Se()},[h]);var de=C?ne:r,_e={expandedKeys:o,selectedKeys:i,loadedKeys:l,loadingKeys:s,checkedKeys:a,halfCheckedKeys:d,dragOverNodeKey:g,dropPosition:v,keyEntities:f};return c.createElement(c.Fragment,null,w&&O&&c.createElement("span",{style:uT,"aria-live":"assertive"},Nse(O)),c.createElement("div",null,c.createElement("input",{style:uT,disabled:E===!1||m,tabIndex:E!==!1?$:null,onKeyDown:R,onFocus:_,onBlur:M,value:"",onChange:Pse,"aria-label":"for screen reader"})),c.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},c.createElement("div",{className:"".concat(n,"-indent")},c.createElement("div",{ref:k,className:"".concat(n,"-indent-unit")}))),c.createElement(Jx,je({},P,{data:de,itemKey:fT,height:S,fullHeight:!1,virtual:x,itemHeight:y,prefixCls:"".concat(n,"-list"),ref:L,onVisibleChange:function(Xe,Qe){var ft=new Set(Xe),ct=Qe.filter(function(ut){return!ft.has(ut)});ct.some(function(ut){return fT(ut)===Ds})&&Se()}}),function(be){var Xe=be.pos,Qe=je({},(e3(be.data),be.data)),ft=be.title,ct=be.key,ut=be.isStart,dt=be.isEnd,He=ip(ct,Xe);delete Qe.key,delete Qe.children;var Je=Kd(He,_e);return c.createElement(Rse,je({},Qe,Je,{title:ft,active:!!O&&ct===O.key,pos:Xe,data:be.data,isStart:ut,isEnd:dt,motion:C,motionNodes:ct===Ds?Ce:null,motionType:pe,onMotionStart:D,onMotionEnd:Se,treeNodeRequiredProps:_e,onMouseMove:function(){T(null)}}))}))});r3.displayName="NodeList";function Mse(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 c.createElement("div",{style:o})}var Ase=10,AE=function(e){Di(n,e);var t=ki(n);function n(){var r;Qn(this,n);for(var o=arguments.length,i=new Array(o),a=0;a2&&arguments[2]!==void 0?arguments[2]:!1,m=r.state,h=m.dragChildrenKeys,g=m.dropPosition,v=m.dropTargetKey,C=m.dropTargetPos,S=m.dropAllowed;if(S){var y=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),v!==null){var x=j(j({},Kd(v,r.getTreeNodeRequiredProps())),{},{active:((d=r.getActiveItem())===null||d===void 0?void 0:d.key)===v,data:r.state.keyEntities[v].node}),E=h.indexOf(v)!==-1;En(!E,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var O=EE(C),w={event:l,node:Xn(x),dragNode:r.dragNode?Xn(r.dragNode.props):null,dragNodesKeys:[r.dragNode.props.eventKey].concat(h),dropToGap:g!==0,dropPosition:g+Number(O[O.length-1])};f||y==null||y(w),r.dragNode=null}}},r.cleanDragState=function(){var l=r.state.draggingNodeKey;l!==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(l,s){var d=r.state,f=d.expandedKeys,m=d.flattenNodes,h=s.expanded,g=s.key,v=s.isLeaf;if(!(v||l.shiftKey||l.metaKey||l.ctrlKey)){var C=m.filter(function(y){return y.key===g})[0],S=Xn(j(j({},Kd(g,r.getTreeNodeRequiredProps())),{},{data:C.data}));r.setExpandedKeys(h?Gi(f,g):xa(f,g)),r.onNodeExpand(l,S)}},r.onNodeClick=function(l,s){var d=r.props,f=d.onClick,m=d.expandAction;m==="click"&&r.triggerExpandActionExpand(l,s),f==null||f(l,s)},r.onNodeDoubleClick=function(l,s){var d=r.props,f=d.onDoubleClick,m=d.expandAction;m==="doubleClick"&&r.triggerExpandActionExpand(l,s),f==null||f(l,s)},r.onNodeSelect=function(l,s){var d=r.state.selectedKeys,f=r.state,m=f.keyEntities,h=f.fieldNames,g=r.props,v=g.onSelect,C=g.multiple,S=s.selected,y=s[h.key],x=!S;x?C?d=xa(d,y):d=[y]:d=Gi(d,y);var E=d.map(function(O){var w=m[O];return w?w.node:null}).filter(function(O){return O});r.setUncontrolledState({selectedKeys:d}),v==null||v(d,{event:"select",selected:x,node:s,selectedNodes:E,nativeEvent:l.nativeEvent})},r.onNodeCheck=function(l,s,d){var f=r.state,m=f.keyEntities,h=f.checkedKeys,g=f.halfCheckedKeys,v=r.props,C=v.checkStrictly,S=v.onCheck,y=s.key,x,E={event:"check",node:s,checked:d,nativeEvent:l.nativeEvent};if(C){var O=d?xa(h,y):Gi(h,y),w=Gi(g,y);x={checked:O,halfChecked:w},E.checkedNodes=O.map(function(D){return m[D]}).filter(function(D){return D}).map(function(D){return D.node}),r.setUncontrolledState({checkedKeys:O})}else{var $=ec([].concat(Pe(h),[y]),!0,m),R=$.checkedKeys,_=$.halfCheckedKeys;if(!d){var M=new Set(R);M.delete(y);var T=ec(Array.from(M),{checked:!1,halfCheckedKeys:_},m);R=T.checkedKeys,_=T.halfCheckedKeys}x=R,E.checkedNodes=[],E.checkedNodesPositions=[],E.halfCheckedKeys=_,R.forEach(function(D){var N=m[D];if(N){var P=N.node,L=N.pos;E.checkedNodes.push(P),E.checkedNodesPositions.push({node:P,pos:L})}}),r.setUncontrolledState({checkedKeys:R},!1,{halfCheckedKeys:_})}S==null||S(x,E)},r.onNodeLoad=function(l){var s=l.key,d=new Promise(function(f,m){r.setState(function(h){var g=h.loadedKeys,v=g===void 0?[]:g,C=h.loadingKeys,S=C===void 0?[]:C,y=r.props,x=y.loadData,E=y.onLoad;if(!x||v.indexOf(s)!==-1||S.indexOf(s)!==-1)return null;var O=x(l);return O.then(function(){var w=r.state.loadedKeys,$=xa(w,s);E==null||E($,{event:"load",node:l}),r.setUncontrolledState({loadedKeys:$}),r.setState(function(R){return{loadingKeys:Gi(R.loadingKeys,s)}}),f()}).catch(function(w){if(r.setState(function(R){return{loadingKeys:Gi(R.loadingKeys,s)}}),r.loadingRetryTimes[s]=(r.loadingRetryTimes[s]||0)+1,r.loadingRetryTimes[s]>=Ase){var $=r.state.loadedKeys;En(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:xa($,s)}),f()}m(w)}),{loadingKeys:xa(S,s)}})});return d.catch(function(){}),d},r.onNodeMouseEnter=function(l,s){var d=r.props.onMouseEnter;d==null||d({event:l,node:s})},r.onNodeMouseLeave=function(l,s){var d=r.props.onMouseLeave;d==null||d({event:l,node:s})},r.onNodeContextMenu=function(l,s){var d=r.props.onRightClick;d&&(l.preventDefault(),d({event:l,node:s}))},r.onFocus=function(){var l=r.props.onFocus;r.setState({focused:!0});for(var s=arguments.length,d=new Array(s),f=0;f1&&arguments[1]!==void 0?arguments[1]:!1,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var f=!1,m=!0,h={};Object.keys(l).forEach(function(g){if(g in r.props){m=!1;return}f=!0,h[g]=l[g]}),f&&(!s||m)&&r.setState(j(j({},h),d))}},r.scrollTo=function(l){r.listRef.current.scrollTo(l)},r}return Zn(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,l=i.flattenNodes,s=i.keyEntities,d=i.draggingNodeKey,f=i.activeKey,m=i.dropLevelOffset,h=i.dropContainerKey,g=i.dropTargetKey,v=i.dropPosition,C=i.dragOverNodeKey,S=i.indent,y=this.props,x=y.prefixCls,E=y.className,O=y.style,w=y.showLine,$=y.focusable,R=y.tabIndex,_=R===void 0?0:R,M=y.selectable,T=y.showIcon,D=y.icon,N=y.switcherIcon,P=y.draggable,L=y.checkable,k=y.checkStrictly,F=y.disabled,V=y.motion,H=y.loadData,W=y.filterTreeNode,G=y.height,U=y.itemHeight,X=y.virtual,Q=y.titleRender,Y=y.dropIndicatorRender,q=y.onContextMenu,ne=y.onScroll,le=y.direction,we=y.rootClassName,Oe=y.rootStyle,Ce=Ha(this.props,{aria:!0,data:!0}),ce;return P&&(Ot(P)==="object"?ce=P:typeof P=="function"?ce={nodeDraggable:P}:ce={}),c.createElement(xE.Provider,{value:{prefixCls:x,selectable:M,showIcon:T,icon:D,switcherIcon:N,draggable:ce,draggingNodeKey:d,checkable:L,checkStrictly:k,disabled:F,keyEntities:s,dropLevelOffset:m,dropContainerKey:h,dropTargetKey:g,dropPosition:v,dragOverNodeKey:C,indent:S,direction:le,dropIndicatorRender:Y,loadData:H,filterTreeNode:W,titleRender:Q,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}},c.createElement("div",{role:"tree",className:te(x,E,we,(o={},Z(o,"".concat(x,"-show-line"),w),Z(o,"".concat(x,"-focused"),a),Z(o,"".concat(x,"-active-focused"),f!==null),o)),style:Oe},c.createElement(r3,je({ref:this.listRef,prefixCls:x,style:O,data:l,disabled:F,selectable:M,checkable:!!L,motion:V,dragging:d!==null,height:G,itemHeight:U,virtual:X,focusable:$,focused:a,tabIndex:_,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:q,onScroll:ne},this.getTreeNodeRequiredProps(),Ce))))}}],[{key:"getDerivedStateFromProps",value:function(o,i){var a=i.prevProps,l={prevProps:o};function s($){return!a&&$ in o||a&&a[$]!==o[$]}var d,f=i.fieldNames;if(s("fieldNames")&&(f=lg(o.fieldNames),l.fieldNames=f),s("treeData")?d=o.treeData:s("children")&&(En(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),d=gk(o.children)),d){l.treeData=d;var m=wE(d,{fieldNames:f});l.keyEntities=j(Z({},Ds,n3),m.keyEntities)}var h=l.keyEntities||i.keyEntities;if(s("expandedKeys")||a&&s("autoExpandParent"))l.expandedKeys=o.autoExpandParent||!a&&o.defaultExpandParent?KC(o.expandedKeys,h):o.expandedKeys;else if(!a&&o.defaultExpandAll){var g=j({},h);delete g[Ds],l.expandedKeys=Object.keys(g).map(function($){return g[$].key})}else!a&&o.defaultExpandedKeys&&(l.expandedKeys=o.autoExpandParent||o.defaultExpandParent?KC(o.defaultExpandedKeys,h):o.defaultExpandedKeys);if(l.expandedKeys||delete l.expandedKeys,d||l.expandedKeys){var v=sb(d||i.treeData,l.expandedKeys||i.expandedKeys,f);l.flattenNodes=v}if(o.selectable&&(s("selectedKeys")?l.selectedKeys=K_(o.selectedKeys,o):!a&&o.defaultSelectedKeys&&(l.selectedKeys=K_(o.defaultSelectedKeys,o))),o.checkable){var C;if(s("checkedKeys")?C=lb(o.checkedKeys)||{}:!a&&o.defaultCheckedKeys?C=lb(o.defaultCheckedKeys)||{}:d&&(C=lb(o.checkedKeys)||{checkedKeys:i.checkedKeys,halfCheckedKeys:i.halfCheckedKeys}),C){var S=C,y=S.checkedKeys,x=y===void 0?[]:y,E=S.halfCheckedKeys,O=E===void 0?[]:E;if(!o.checkStrictly){var w=ec(x,!0,h);x=w.checkedKeys,O=w.halfCheckedKeys}l.checkedKeys=x,l.halfCheckedKeys=O}}return s("loadedKeys")&&(l.loadedKeys=o.loadedKeys),l}}]),n}(c.Component);AE.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:Mse,allowDrop:function(){return!0},expandAction:!1};AE.TreeNode=xc;const Lse=new Dt("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Dse=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),kse=(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:'""'}}}),Fse=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,treeTitleHeight:i}=t,a=(i-t.fontSizeLG)/2,l=t.paddingXS;return{[n]:Object.assign(Object.assign({},mn(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({},Ba(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:Lse,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({},Ba(t)),[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${n}-draggable-icon`]:{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({},Dse(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:l,marginBlockStart: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"},kse(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`}}}}})}},Bse=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":{[` + &:hover::before, + &::before + `]:{background:e.colorPrimary},[`${t}-switcher`]:{color:e.colorTextLightSolid},[`${t}-node-content-wrapper`]:{color:e.colorTextLightSolid,background:"transparent"}}}}}},zse=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,o=t.paddingXS/2,i=t.controlHeightSM,a=Kt(t,{treeCls:n,treeNodeCls:r,treeNodePadding:o,treeTitleHeight:i});return[Fse(e,a),Bse(a)]},Hse=In("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:vk(`${n}-checkbox`,e)},zse(n,e),PL(e)]}),pT=4;function jse(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:o,direction:i="ltr"}=e,a=i==="ltr"?"left":"right",l=i==="ltr"?"right":"left",s={[a]:-n*o+pT,[l]:0};switch(t){case-1:s.top=-3;break;case 1:s.bottom=-3;break;default:s.bottom=-3,s[a]=o+pT;break}return ge.createElement("div",{style:s,className:`${r}-drop-indicator`})}const Vse=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:o}=e,{isLeaf:i,expanded:a,loading:l}=r;if(l)return c.createElement(yf,{className:`${t}-switcher-loading-icon`});let s;if(o&&typeof o=="object"&&(s=o.showLeafIcon),i){if(!o)return null;if(typeof s!="boolean"&&s){const m=typeof s=="function"?s(r):s,h=`${t}-switcher-line-custom-icon`;return Ai(m)?mr(m,{className:te(m.props.className||"",h)}):m}return s?c.createElement(GM,{className:`${t}-switcher-line-icon`}):c.createElement("span",{className:`${t}-switcher-leaf-line`})}const d=`${t}-switcher-icon`,f=typeof n=="function"?n(r):n;return Ai(f)?mr(f,{className:te(f.props.className||"",d)}):f!==void 0?f:o?a?c.createElement(qK,{className:`${t}-switcher-line-icon`}):c.createElement(JK,{className:`${t}-switcher-line-icon`}):c.createElement(jW,{className:d})},Use=Vse,Wse=ge.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,virtual:o}=ge.useContext(yt),{prefixCls:i,className:a,showIcon:l=!1,showLine:s,switcherIcon:d,blockNode:f=!1,children:m,checkable:h=!1,selectable:g=!0,draggable:v,motion:C}=e,S=n("tree",i),y=n(),x=C??Object.assign(Object.assign({},EL(y)),{motionAppear:!1}),E=Object.assign(Object.assign({},e),{checkable:h,selectable:g,showIcon:l,motion:x,blockNode:f,showLine:!!s,dropIndicatorRender:jse}),[O,w]=Hse(S),$=ge.useMemo(()=>{if(!v)return!1;let _={};switch(typeof v){case"function":_.nodeDraggable=v;break;case"object":_=Object.assign({},v);break}return _.icon!==!1&&(_.icon=_.icon||ge.createElement(BK,null)),_},[v]),R=_=>ge.createElement(Use,{prefixCls:S,switcherIcon:d,treeNodeProps:_,showLine:s});return O(ge.createElement(AE,Object.assign({itemHeight:20,ref:t,virtual:o},E,{prefixCls:S,className:te({[`${S}-icon-hide`]:!l,[`${S}-block-node`]:f,[`${S}-unselectable`]:!g,[`${S}-rtl`]:r==="rtl"},a,w),direction:r,checkable:h&&ge.createElement("span",{className:`${S}-checkbox-inner`}),selectable:g,switcherIcon:R,draggable:$}),m))}),o3=Wse;var Oa;(function(e){e[e.None=0]="None",e[e.Start=1]="Start",e[e.End=2]="End"})(Oa||(Oa={}));function LE(e,t){function n(r){const{key:o,children:i}=r;t(o,r)!==!1&&LE(i||[],t)}e.forEach(n)}function Kse(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:o}=e;const i=[];let a=Oa.None;if(r&&r===o)return[r];if(!r||!o)return[];function l(s){return s===r||s===o}return LE(t,s=>{if(a===Oa.End)return!1;if(l(s)){if(i.push(s),a===Oa.None)a=Oa.Start;else if(a===Oa.Start)return a=Oa.End,!1}else a===Oa.Start&&i.push(s);return n.includes(s)}),i}function gb(e,t){const n=Pe(t),r=[];return LE(e,(o,i)=>{const a=n.indexOf(o);return a!==-1&&(r.push(i),n.splice(a,1)),!!n.length}),r}var mT=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=mT(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const a=c.useRef(),l=c.useRef(),s=()=>{const{keyEntities:_}=wE(hT(i));let M;return n?M=Object.keys(_):r?M=KC(i.expandedKeys||o||[],_):M=i.expandedKeys||o,M},[d,f]=c.useState(i.selectedKeys||i.defaultSelectedKeys||[]),[m,h]=c.useState(()=>s());c.useEffect(()=>{"selectedKeys"in i&&f(i.selectedKeys)},[i.selectedKeys]),c.useEffect(()=>{"expandedKeys"in i&&h(i.expandedKeys)},[i.expandedKeys]);const g=(_,M)=>{var T;return"expandedKeys"in i||h(_),(T=i.onExpand)===null||T===void 0?void 0:T.call(i,_,M)},v=(_,M)=>{var T;const{multiple:D}=i,{node:N,nativeEvent:P}=M,{key:L=""}=N,k=hT(i),F=Object.assign(Object.assign({},M),{selected:!0}),V=(P==null?void 0:P.ctrlKey)||(P==null?void 0:P.metaKey),H=P==null?void 0:P.shiftKey;let W;D&&V?(W=_,a.current=L,l.current=W,F.selectedNodes=gb(k,W)):D&&H?(W=Array.from(new Set([].concat(Pe(l.current||[]),Pe(Kse({treeData:k,expandedKeys:m,startKey:L,endKey:a.current}))))),F.selectedNodes=gb(k,W)):(W=[L],a.current=L,l.current=W,F.selectedNodes=gb(k,W)),(T=i.onSelect)===null||T===void 0||T.call(i,W,F),"selectedKeys"in i||f(W)},{getPrefixCls:C,direction:S}=c.useContext(yt),{prefixCls:y,className:x,showIcon:E=!0,expandAction:O="click"}=i,w=mT(i,["prefixCls","className","showIcon","expandAction"]),$=C("tree",y),R=te(`${$}-directory`,{[`${$}-directory-rtl`]:S==="rtl"},x);return c.createElement(o3,Object.assign({icon:Gse,ref:t,blockNode:!0},w,{showIcon:E,expandAction:O,prefixCls:$,className:R,expandedKeys:m,selectedKeys:d,onSelect:v,onExpand:g}))},Yse=c.forwardRef(Xse),qse=Yse,DE=o3;DE.DirectoryTree=qse;DE.TreeNode=xc;const Qse=DE;function Zse(e){const t=c.useRef(e),n=dD();return[()=>t.current,r=>{t.current=r,n()}]}function gT(e){let{value:t,onChange:n,filterSearch:r,tablePrefixCls:o,locale:i}=e;return r?c.createElement("div",{className:`${o}-filter-dropdown-search`},c.createElement(rae,{prefix:c.createElement(Rx,null),placeholder:i.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,className:`${o}-filter-dropdown-search-input`})):null}const Jse=e=>{const{keyCode:t}=e;t===De.ENTER&&e.stopPropagation()},eue=e=>c.createElement("div",{className:e.className,onClick:t=>t.stopPropagation(),onKeyDown:Jse},e.children),tue=eue;function nue(e){return e.some(t=>{let{children:n}=t;return n})}function i3(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function a3(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:i,filterSearch:a}=e;return t.map((l,s)=>{const d=String(l.value);if(l.children)return{key:d||s,label:l.text,popupClassName:`${n}-dropdown-submenu`,children:a3({filters:l.children,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:i,filterSearch:a})};const f=o?sg:ck,m={key:l.value!==void 0?d:s,label:c.createElement(c.Fragment,null,c.createElement(f,{checked:r.includes(d)}),c.createElement("span",null,l.text))};return i.trim()?typeof a=="function"?a(i,l)?m:null:i3(i,l.text)?m:null:m})}function rue(e){var t,n;const{tablePrefixCls:r,prefixCls:o,column:i,dropdownPrefixCls:a,columnKey:l,filterMultiple:s,filterMode:d="menu",filterSearch:f=!1,filterState:m,triggerFilter:h,locale:g,children:v,getPopupContainer:C}=e,{filterDropdownOpen:S,onFilterDropdownOpenChange:y,filterResetToDefaultFilteredValue:x,defaultFilteredValue:E,filterDropdownVisible:O,onFilterDropdownVisibleChange:w}=i,[$,R]=c.useState(!1),_=!!(m&&(!((t=m.filteredKeys)===null||t===void 0)&&t.length||m.forceFiltered)),M=fe=>{R(fe),y==null||y(fe),w==null||w(fe)},T=(n=S??O)!==null&&n!==void 0?n:$,D=m==null?void 0:m.filteredKeys,[N,P]=Zse(D||[]),L=fe=>{let{selectedKeys:Ie}=fe;P(Ie)},k=(fe,Ie)=>{let{node:Se,checked:de}=Ie;L(s?{selectedKeys:fe}:{selectedKeys:de&&Se.key?[Se.key]:[]})};c.useEffect(()=>{$&&L({selectedKeys:D||[]})},[D]);const[F,V]=c.useState([]),H=fe=>{V(fe)},[W,G]=c.useState(""),U=fe=>{const{value:Ie}=fe.target;G(Ie)};c.useEffect(()=>{$||G("")},[$]);const X=fe=>{const Ie=fe&&fe.length?fe:null;if(Ie===null&&(!m||!m.filteredKeys)||Fa(Ie,m==null?void 0:m.filteredKeys,!0))return null;h({column:i,key:l,filteredKeys:Ie})},Q=()=>{M(!1),X(N())},Y=function(){let{confirm:fe,closeDropdown:Ie}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};fe&&X([]),Ie&&M(!1),G(""),P(x?(E||[]).map(Se=>String(Se)):[])},q=function(){let{closeDropdown:fe}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};fe&&M(!1),X(N())},ne=fe=>{fe&&D!==void 0&&P(D||[]),M(fe),!fe&&!i.filterDropdown&&Q()},le=te({[`${a}-menu-without-submenu`]:!nue(i.filters||[])}),we=fe=>{if(fe.target.checked){const Ie=tc(i==null?void 0:i.filters).map(Se=>String(Se));P(Ie)}else P([])},Oe=fe=>{let{filters:Ie}=fe;return(Ie||[]).map((Se,de)=>{const _e=String(Se.value),be={title:Se.text,key:Se.value!==void 0?_e:de};return Se.children&&(be.children=Oe({filters:Se.children})),be})},Ce=fe=>{var Ie;return Object.assign(Object.assign({},fe),{text:fe.title,value:fe.key,children:((Ie=fe.children)===null||Ie===void 0?void 0:Ie.map(Se=>Ce(Se)))||[]})};let ce;if(typeof i.filterDropdown=="function")ce=i.filterDropdown({prefixCls:`${a}-custom`,setSelectedKeys:fe=>L({selectedKeys:fe}),selectedKeys:N(),confirm:q,clearFilters:Y,filters:i.filters,visible:T,close:()=>{M(!1)}});else if(i.filterDropdown)ce=i.filterDropdown;else{const fe=N()||[],Ie=()=>(i.filters||[]).length===0?c.createElement(ss,{image:ss.PRESENTED_IMAGE_SIMPLE,description:g.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):d==="tree"?c.createElement(c.Fragment,null,c.createElement(gT,{filterSearch:f,value:W,onChange:U,tablePrefixCls:r,locale:g}),c.createElement("div",{className:`${r}-filter-dropdown-tree`},s?c.createElement(sg,{checked:fe.length===tc(i.filters).length,indeterminate:fe.length>0&&fe.lengthtypeof f=="function"?f(W,Ce(de)):i3(W,de.title):void 0}))):c.createElement(c.Fragment,null,c.createElement(gT,{filterSearch:f,value:W,onChange:U,tablePrefixCls:r,locale:g}),c.createElement(vE,{selectable:!0,multiple:s,prefixCls:`${a}-menu`,className:le,onSelect:L,onDeselect:L,selectedKeys:fe,getPopupContainer:C,openKeys:F,onOpenChange:H,items:a3({filters:i.filters||[],filterSearch:f,prefixCls:o,filteredKeys:N(),filterMultiple:s,searchValue:W})})),Se=()=>x?Fa((E||[]).map(de=>String(de)),fe,!0):fe.length===0;ce=c.createElement(c.Fragment,null,Ie(),c.createElement("div",{className:`${o}-dropdown-btns`},c.createElement(oi,{type:"link",size:"small",disabled:Se(),onClick:()=>Y()},g.filterReset),c.createElement(oi,{type:"primary",size:"small",onClick:Q},g.filterConfirm)))}i.filterDropdown&&(ce=c.createElement(qD,{selectable:void 0},ce));const he=()=>c.createElement(tue,{className:`${o}-dropdown`},ce);let ie;typeof i.filterIcon=="function"?ie=i.filterIcon(_):i.filterIcon?ie=i.filterIcon:ie=c.createElement(RK,null);const{direction:pe}=c.useContext(yt);return c.createElement("div",{className:`${o}-column`},c.createElement("span",{className:`${r}-column-title`},v),c.createElement(Tf,{dropdownRender:he,trigger:["click"],open:T,onOpenChange:ne,getPopupContainer:C,placement:pe==="rtl"?"bottomLeft":"bottomRight"},c.createElement("span",{role:"button",tabIndex:-1,className:te(`${o}-trigger`,{active:_}),onClick:fe=>{fe.stopPropagation()}},ie)))}function t1(e,t,n){let r=[];return(e||[]).forEach((o,i)=>{var a;const l=lp(i,n);if(o.filters||"filterDropdown"in o||"onFilter"in o)if("filteredValue"in o){let s=o.filteredValue;"filterDropdown"in o||(s=(a=s==null?void 0:s.map(String))!==null&&a!==void 0?a:s),r.push({column:o,key:Ls(o,l),filteredKeys:s,forceFiltered:o.filtered})}else r.push({column:o,key:Ls(o,l),filteredKeys:t&&o.defaultFilteredValue?o.defaultFilteredValue:void 0,forceFiltered:o.filtered});"children"in o&&(r=[].concat(Pe(r),Pe(t1(o.children,t,l))))}),r}function l3(e,t,n,r,o,i,a,l){return n.map((s,d)=>{const f=lp(d,l),{filterMultiple:m=!0,filterMode:h,filterSearch:g}=s;let v=s;if(v.filters||v.filterDropdown){const C=Ls(v,f),S=r.find(y=>{let{key:x}=y;return C===x});v=Object.assign(Object.assign({},v),{title:y=>c.createElement(rue,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:v,columnKey:C,filterState:S,filterMultiple:m,filterMode:h,filterSearch:g,triggerFilter:i,locale:o,getPopupContainer:a},jv(s.title,y))})}return"children"in v&&(v=Object.assign(Object.assign({},v),{children:l3(e,t,v.children,r,o,i,a,f)})),v})}function tc(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:o}=n;t.push(r),o&&(t=[].concat(Pe(t),Pe(tc(o))))}),t}function vT(e){const t={};return e.forEach(n=>{let{key:r,filteredKeys:o,column:i}=n;const{filters:a,filterDropdown:l}=i;if(l)t[r]=o||null;else if(Array.isArray(o)){const s=tc(a);t[r]=s.filter(d=>o.includes(String(d)))}else t[r]=null}),t}function yT(e,t){return t.reduce((n,r)=>{const{column:{onFilter:o,filters:i},filteredKeys:a}=r;return o&&a&&a.length?n.filter(l=>a.some(s=>{const d=tc(i),f=d.findIndex(h=>String(h)===String(s)),m=f!==-1?d[f]:s;return o(m,l)})):n},e)}const s3=e=>e.flatMap(t=>"children"in t?[t].concat(Pe(s3(t.children||[]))):[t]);function oue(e){let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:o,getPopupContainer:i,locale:a}=e;const l=c.useMemo(()=>s3(r||[]),[r]),[s,d]=c.useState(()=>t1(l,!0)),f=c.useMemo(()=>{const v=t1(l,!1);if(v.length===0)return v;let C=!0;if(v.forEach(S=>{let{filteredKeys:y}=S;y!==void 0&&(C=!1)}),C){const S=(l||[]).map((y,x)=>Ls(y,lp(x)));return s.filter(y=>{let{key:x}=y;return S.includes(x)}).map(y=>{const x=l[S.findIndex(E=>E===y.key)];return Object.assign(Object.assign({},y),{column:Object.assign(Object.assign({},y.column),x),forceFiltered:x.filtered})})}return v},[l,s]),m=c.useMemo(()=>vT(f),[f]),h=v=>{const C=f.filter(S=>{let{key:y}=S;return y!==v.key});C.push(v),d(C),o(vT(C),C)};return[v=>l3(t,n,v,f,a,h,i),f,m]}function iue(e,t,n){const r=c.useRef({});function o(i){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let s=function(d){d.forEach((f,m)=>{const h=n(f,m);l.set(h,f),f&&typeof f=="object"&&t in f&&s(f[t]||[])})};var a=s;const l=new Map;s(e),r.current={data:e,childrenColumnName:t,kvMap:l,getRowKey:n}}return r.current.kvMap.get(i)}return[o]}var aue=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 sue(e,t,n){const r=n&&typeof n=="object"?n:{},{total:o=0}=r,i=aue(r,["total"]),[a,l]=c.useState(()=>({current:"defaultCurrent"in i?i.defaultCurrent:1,pageSize:"defaultPageSize"in i?i.defaultPageSize:u3})),s=Lk(a,i,{total:o>0?o:e}),d=Math.ceil((o||e)/s.pageSize);s.current>d&&(s.current=d||1);const f=(h,g)=>{l({current:h??1,pageSize:g||s.pageSize})},m=(h,g)=>{var v;n&&((v=n.onChange)===null||v===void 0||v.call(n,h,g)),f(h,g),t(h,g||(s==null?void 0:s.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},s),{onChange:m}),f]}const ll={},n1="SELECT_ALL",r1="SELECT_INVERT",o1="SELECT_NONE",bT=[],c3=(e,t)=>{let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[].concat(Pe(n),Pe(c3(e,r[e]))))}),n},uue=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:o,getCheckboxProps:i,onChange:a,onSelect:l,onSelectAll:s,onSelectInvert:d,onSelectNone:f,onSelectMultiple:m,columnWidth:h,type:g,selections:v,fixed:C,renderCell:S,hideSelectAll:y,checkStrictly:x=!0}=t||{},{prefixCls:E,data:O,pageData:w,getRecordByKey:$,getRowKey:R,expandType:_,childrenColumnName:M,locale:T,getPopupContainer:D}=e,[N,P]=Lr(r||o||bT,{value:r}),L=c.useRef(new Map),k=c.useCallback(Ce=>{if(n){const ce=new Map;Ce.forEach(he=>{let ie=$(he);!ie&&L.current.has(he)&&(ie=L.current.get(he)),ce.set(he,ie)}),L.current=ce}},[$,n]);c.useEffect(()=>{k(N)},[N]);const{keyEntities:F}=c.useMemo(()=>x?{keyEntities:null}:wE(O,{externalGetKey:R,childrenPropName:M}),[O,R,x,M]),V=c.useMemo(()=>c3(M,w),[M,w]),H=c.useMemo(()=>{const Ce=new Map;return V.forEach((ce,he)=>{const ie=R(ce,he),pe=(i?i(ce):null)||{};Ce.set(ie,pe)}),Ce},[V,R,i]),W=c.useCallback(Ce=>{var ce;return!!(!((ce=H.get(R(Ce)))===null||ce===void 0)&&ce.disabled)},[H,R]),[G,U]=c.useMemo(()=>{if(x)return[N||[],[]];const{checkedKeys:Ce,halfCheckedKeys:ce}=ec(N,!0,F,W);return[Ce||[],ce]},[N,x,F,W]),X=c.useMemo(()=>{const Ce=g==="radio"?G.slice(0,1):G;return new Set(Ce)},[G,g]),Q=c.useMemo(()=>g==="radio"?new Set:new Set(U),[U,g]),[Y,q]=c.useState(null);c.useEffect(()=>{t||P(bT)},[!!t]);const ne=c.useCallback((Ce,ce)=>{let he,ie;k(Ce),n?(he=Ce,ie=Ce.map(pe=>L.current.get(pe))):(he=[],ie=[],Ce.forEach(pe=>{const fe=$(pe);fe!==void 0&&(he.push(pe),ie.push(fe))})),P(he),a==null||a(he,ie,{type:ce})},[P,$,a,n]),le=c.useCallback((Ce,ce,he,ie)=>{if(l){const pe=he.map(fe=>$(fe));l($(Ce),ce,pe,ie)}ne(he,"single")},[l,$,ne]),we=c.useMemo(()=>!v||y?null:(v===!0?[n1,r1,o1]:v).map(ce=>ce===n1?{key:"all",text:T.selectionAll,onSelect(){ne(O.map((he,ie)=>R(he,ie)).filter(he=>{const ie=H.get(he);return!(ie!=null&&ie.disabled)||X.has(he)}),"all")}}:ce===r1?{key:"invert",text:T.selectInvert,onSelect(){const he=new Set(X);w.forEach((pe,fe)=>{const Ie=R(pe,fe),Se=H.get(Ie);Se!=null&&Se.disabled||(he.has(Ie)?he.delete(Ie):he.add(Ie))});const ie=Array.from(he);d&&d(ie),ne(ie,"invert")}}:ce===o1?{key:"none",text:T.selectNone,onSelect(){f==null||f(),ne(Array.from(X).filter(he=>{const ie=H.get(he);return ie==null?void 0:ie.disabled}),"none")}}:ce).map(ce=>Object.assign(Object.assign({},ce),{onSelect:function(){for(var he,ie,pe=arguments.length,fe=new Array(pe),Ie=0;Ie{var ce;if(!t)return Ce.filter(He=>He!==ll);let he=Pe(Ce);const ie=new Set(X),pe=V.map(R).filter(He=>!H.get(He).disabled),fe=pe.every(He=>ie.has(He)),Ie=pe.some(He=>ie.has(He)),Se=()=>{const He=[];fe?pe.forEach(ee=>{ie.delete(ee),He.push(ee)}):pe.forEach(ee=>{ie.has(ee)||(ie.add(ee),He.push(ee))});const Je=Array.from(ie);s==null||s(!fe,Je.map(ee=>$(ee)),He.map(ee=>$(ee))),ne(Je,"all"),q(null)};let de;if(g!=="radio"){let He;if(we){const xe={getPopupContainer:D,items:we.map((ve,Ee)=>{const{key:ke,text:Ye,onSelect:Fe}=ve;return{key:ke??Ee,onClick:()=>{Fe==null||Fe(pe)},label:Ye}})};He=c.createElement("div",{className:`${E}-selection-extra`},c.createElement(Tf,{menu:xe,getPopupContainer:D},c.createElement("span",null,c.createElement(Ix,null))))}const Je=V.map((xe,ve)=>{const Ee=R(xe,ve),ke=H.get(Ee)||{};return Object.assign({checked:ie.has(Ee)},ke)}).filter(xe=>{let{disabled:ve}=xe;return ve}),ee=!!Je.length&&Je.length===V.length,re=ee&&Je.every(xe=>{let{checked:ve}=xe;return ve}),oe=ee&&Je.some(xe=>{let{checked:ve}=xe;return ve});de=!y&&c.createElement("div",{className:`${E}-selection`},c.createElement(sg,{checked:ee?re:!!V.length&&fe,indeterminate:ee?!re&&oe:!fe&&Ie,onChange:Se,disabled:V.length===0||ee,"aria-label":He?"Custom selection":"Select all",skipGroup:!0}),He)}let _e;g==="radio"?_e=(He,Je,ee)=>{const re=R(Je,ee),oe=ie.has(re);return{node:c.createElement(ck,Object.assign({},H.get(re),{checked:oe,onClick:xe=>xe.stopPropagation(),onChange:xe=>{ie.has(re)||le(re,!0,[re],xe.nativeEvent)}})),checked:oe}}:_e=(He,Je,ee)=>{var re;const oe=R(Je,ee),xe=ie.has(oe),ve=Q.has(oe),Ee=H.get(oe);let ke;return _==="nest"?ke=ve:ke=(re=Ee==null?void 0:Ee.indeterminate)!==null&&re!==void 0?re:ve,{node:c.createElement(sg,Object.assign({},Ee,{indeterminate:ke,checked:xe,skipGroup:!0,onClick:Ye=>Ye.stopPropagation(),onChange:Ye=>{let{nativeEvent:Fe}=Ye;const{shiftKey:ot}=Fe;let Ae=-1,Ke=-1;if(ot&&x){const Ue=new Set([Y,oe]);pe.some((ze,at)=>{if(Ue.has(ze))if(Ae===-1)Ae=at;else return Ke=at,!0;return!1})}if(Ke!==-1&&Ae!==Ke&&x){const Ue=pe.slice(Ae,Ke+1),ze=[];xe?Ue.forEach($t=>{ie.has($t)&&(ze.push($t),ie.delete($t))}):Ue.forEach($t=>{ie.has($t)||(ze.push($t),ie.add($t))});const at=Array.from(ie);m==null||m(!xe,at.map($t=>$($t)),ze.map($t=>$($t))),ne(at,"multiple")}else{const Ue=G;if(x){const ze=xe?Gi(Ue,oe):xa(Ue,oe);le(oe,!xe,ze,Fe)}else{const ze=ec([].concat(Pe(Ue),[oe]),!0,F,W),{checkedKeys:at,halfCheckedKeys:$t}=ze;let tt=at;if(xe){const lt=new Set(at);lt.delete(oe),tt=ec(Array.from(lt),{checked:!1,halfCheckedKeys:$t},F,W).checkedKeys}le(oe,!xe,tt,Fe)}}q(xe?null:oe)}})),checked:xe}};const be=(He,Je,ee)=>{const{node:re,checked:oe}=_e(He,Je,ee);return S?S(oe,Je,ee,re):re};if(!he.includes(ll))if(he.findIndex(He=>{var Je;return((Je=He[Xd])===null||Je===void 0?void 0:Je.columnType)==="EXPAND_COLUMN"})===0){const[He,...Je]=he;he=[He,ll].concat(Pe(Je))}else he=[ll].concat(Pe(he));const Xe=he.indexOf(ll);he=he.filter((He,Je)=>He!==ll||Je===Xe);const Qe=he[Xe-1],ft=he[Xe+1];let ct=C;ct===void 0&&((ft==null?void 0:ft.fixed)!==void 0?ct=ft.fixed:(Qe==null?void 0:Qe.fixed)!==void 0&&(ct=Qe.fixed)),ct&&Qe&&((ce=Qe[Xd])===null||ce===void 0?void 0:ce.columnType)==="EXPAND_COLUMN"&&Qe.fixed===void 0&&(Qe.fixed=ct);const ut=te(`${E}-selection-col`,{[`${E}-selection-col-with-dropdown`]:v&&g==="checkbox"}),dt={fixed:ct,width:h,className:`${E}-selection-column`,title:t.columnTitle||de,render:be,[Xd]:{className:ut}};return he.map(He=>He===ll?dt:He)},[R,V,t,G,X,Q,h,we,_,Y,H,m,le,W]),X]},sh="ascend",vb="descend";function pg(e){return typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1}function ST(e){return typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1}function cue(e,t){return t?e[e.indexOf(t)+1]:e[0]}function i1(e,t,n){let r=[];function o(i,a){r.push({column:i,key:Ls(i,a),multiplePriority:pg(i),sortOrder:i.sortOrder})}return(e||[]).forEach((i,a)=>{const l=lp(a,n);i.children?("sortOrder"in i&&o(i,l),r=[].concat(Pe(r),Pe(i1(i.children,t,l)))):i.sorter&&("sortOrder"in i?o(i,l):t&&i.defaultSortOrder&&r.push({column:i,key:Ls(i,l),multiplePriority:pg(i),sortOrder:i.defaultSortOrder}))}),r}function d3(e,t,n,r,o,i,a,l){return(t||[]).map((s,d)=>{const f=lp(d,l);let m=s;if(m.sorter){const h=m.sortDirections||o,g=m.showSorterTooltip===void 0?a:m.showSorterTooltip,v=Ls(m,f),C=n.find(M=>{let{key:T}=M;return T===v}),S=C?C.sortOrder:null,y=cue(h,S),x=h.includes(sh)&&c.createElement(QW,{className:te(`${e}-column-sorter-up`,{active:S===sh})}),E=h.includes(vb)&&c.createElement(WW,{className:te(`${e}-column-sorter-down`,{active:S===vb})}),{cancelSort:O,triggerAsc:w,triggerDesc:$}=i||{};let R=O;y===vb?R=$:y===sh&&(R=w);const _=typeof g=="object"?g:{title:R};m=Object.assign(Object.assign({},m),{className:te(m.className,{[`${e}-column-sort`]:S}),title:M=>{const T=c.createElement("div",{className:`${e}-column-sorters`},c.createElement("span",{className:`${e}-column-title`},jv(s.title,M)),c.createElement("span",{className:te(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(x&&E)})},c.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},x,E)));return g?c.createElement(Jf,Object.assign({},_),T):T},onHeaderCell:M=>{const T=s.onHeaderCell&&s.onHeaderCell(M)||{},D=T.onClick,N=T.onKeyDown;T.onClick=k=>{r({column:s,key:v,sortOrder:y,multiplePriority:pg(s)}),D==null||D(k)},T.onKeyDown=k=>{k.keyCode===De.ENTER&&(r({column:s,key:v,sortOrder:y,multiplePriority:pg(s)}),N==null||N(k))};const P=$se(s.title,{}),L=P==null?void 0:P.toString();return S?T["aria-sort"]=S==="ascend"?"ascending":"descending":T["aria-label"]=L||"",T.className=te(T.className,`${e}-column-has-sorters`),T.tabIndex=0,s.ellipsis&&(T.title=(P??"").toString()),T}})}return"children"in m&&(m=Object.assign(Object.assign({},m),{children:d3(e,m.children,n,r,o,i,a,f)})),m})}function CT(e){const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}}function xT(e){const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(CT);return t.length===0&&e.length?Object.assign(Object.assign({},CT(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function a1(e,t,n){const r=t.slice().sort((a,l)=>l.multiplePriority-a.multiplePriority),o=e.slice(),i=r.filter(a=>{let{column:{sorter:l},sortOrder:s}=a;return ST(l)&&s});return i.length?o.sort((a,l)=>{for(let s=0;s{const l=a[n];return l?Object.assign(Object.assign({},a),{[n]:a1(l,t,n)}):a}):o}function due(e){let{prefixCls:t,mergedColumns:n,onSorterChange:r,sortDirections:o,tableLocale:i,showSorterTooltip:a}=e;const[l,s]=c.useState(i1(n,!0)),d=c.useMemo(()=>{let v=!0;const C=i1(n,!1);if(!C.length)return l;const S=[];function y(E){v?S.push(E):S.push(Object.assign(Object.assign({},E),{sortOrder:null}))}let x=null;return C.forEach(E=>{x===null?(y(E),E.sortOrder&&(E.multiplePriority===!1?v=!1:x=!0)):(x&&E.multiplePriority!==!1||(v=!1),y(E))}),S},[n,l]),f=c.useMemo(()=>{const v=d.map(C=>{let{column:S,sortOrder:y}=C;return{column:S,order:y}});return{sortColumns:v,sortColumn:v[0]&&v[0].column,sortOrder:v[0]&&v[0].order}},[d]);function m(v){let C;v.multiplePriority===!1||!d.length||d[0].multiplePriority===!1?C=[v]:C=[].concat(Pe(d.filter(S=>{let{key:y}=S;return y!==v.key})),[v]),s(C),r(xT(C),C)}return[v=>d3(t,v,d,m,o,i,a),d,f,()=>xT(d)]}function f3(e,t){return e.map(n=>{const r=Object.assign({},n);return r.title=jv(n.title,t),"children"in r&&(r.children=f3(r.children,t)),r})}function fue(e){return[c.useCallback(n=>f3(n,e),[e])]}const pue=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`]:{[` + > table > tbody > tr > th, + > table > tbody > tr > td + `]:{[`> ${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,[` + > ${t}-content, + > ${t}-header, + > ${t}-body, + > ${t}-summary + `]:{"> table":{[` + > thead > tr > th, + > tbody > tr > th, + > tbody > tr > td, + > tfoot > tr > th, + > tfoot > tr > td + `]:{borderInlineEnd:n},"> thead":{"> tr:not(:last-child) > th":{borderBottom:n},"> tr > th::before":{backgroundColor:"transparent !important"}},[` + > thead > tr, + > tbody > tr, + > tfoot > tr + `]:{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:n}},[` + > tbody > tr > th, + > tbody > tr > td + `]:{[`> ${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}-content, + > ${t}-header + `]:{"> table":{borderTop:n}}},[`&${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}`}}}}},mue=pue,hue=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},Es),{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"}})}}},gue=hue,vue=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,[` + &:hover > th, + &:hover > td, + `]:{background:e.colorBgContainer}}}}},yue=vue,bue=e=>{const{componentCls:t,antCls:n,controlInteractiveSize:r,motionDurationSlow:o,lineWidth:i,paddingXS:a,lineType:l,tableBorderColor:s,tableExpandIconBg:d,tableExpandColumnWidth:f,borderRadius:m,fontSize:h,fontSizeSM:g,lineHeight:v,tablePaddingVertical:C,tablePaddingHorizontal:S,tableExpandedRowBg:y,paddingXXS:x}=e,E=r/2-i,O=E*2+i*3,w=`${i}px ${l} ${s}`,$=x-i;return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:f},[`${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({},JY(e)),{position:"relative",float:"left",boxSizing:"border-box",width:O,height:O,padding:0,color:"inherit",lineHeight:`${O}px`,background:d,border:w,borderRadius:m,transform:`scale(${r/O})`,transition:`all ${o}`,userSelect:"none",["&:focus, &:hover, &:active"]:{borderColor:"currentcolor"},["&::before, &::after"]:{position:"absolute",background:"currentcolor",transition:`transform ${o} ease-out`,content:'""'},"&::before":{top:E,insetInlineEnd:$,insetInlineStart:$,height:i},"&::after":{top:$,bottom:$,insetInlineStart:E,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:(h*v-i*3)/2-Math.ceil((g*1.4-i*3)/2),marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{["> th, > td"]:{background:y}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`-${C}px -${S}px`,padding:`${C}px ${S}px`}}}},Sue=bue,Cue=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:i,paddingXXS:a,paddingXS:l,colorText:s,lineWidth:d,lineType:f,tableBorderColor:m,tableHeaderIconColor:h,fontSizeSM:g,tablePaddingHorizontal:v,borderRadius:C,motionDurationSlow:S,colorTextDescription:y,colorPrimary:x,tableHeaderFilterActiveBg:E,colorTextDisabled:O,tableFilterDropdownBg:w,tableFilterDropdownHeight:$,controlItemBgHover:R,controlItemBgActive:_,boxShadowSecondary:M}=e,T=`${n}-dropdown`,D=`${t}-filter-dropdown`,N=`${n}-tree`,P=`${d}px ${f} ${m}`;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:h,fontSize:g,borderRadius:C,cursor:"pointer",transition:`all ${S}`,"&:hover":{color:y,background:E},"&.active":{color:x}}}},{[`${n}-dropdown`]:{[D]:Object.assign(Object.assign({},mn(e)),{minWidth:o,backgroundColor:w,borderRadius:C,boxShadow:M,[`${T}-menu`]:{maxHeight:$,overflowX:"hidden",border:0,boxShadow:"none","&:empty::after":{display:"block",padding:`${l}px 0`,color:O,fontSize:g,textAlign:"center",content:'"Not Found"'}},[`${D}-tree`]:{paddingBlock:`${l}px 0`,paddingInline:l,[N]:{padding:0},[`${N}-treenode ${N}-node-content-wrapper:hover`]:{backgroundColor:R},[`${N}-treenode-checkbox-checked ${N}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:_}}},[`${D}-search`]:{padding:l,borderBottom:P,"&-input":{input:{minWidth:i},[r]:{color:O}}},[`${D}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${D}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${l-d}px ${l}px`,overflow:"hidden",borderTop:P}})}},{[`${n}-dropdown ${D}, ${D}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:s},["> ul"]:{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},xue=Cue,Eue=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:o,zIndexTableFixed:i,tableBg:a,zIndexTableSticky:l}=e,s=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:l+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 ${s}`}},[` + ${t}-cell-fix-left-first::after, + ${t}-cell-fix-left-last::after + `]:{boxShadow:`inset 10px 0 8px -8px ${s}`},[`${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 ${s}`}},[` + ${t}-cell-fix-right-first::after, + ${t}-cell-fix-right-last::after + `]:{boxShadow:`inset -10px 0 8px -8px ${s}`}}}}},wue=Eue,Oue=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"}}}}},$ue=Oue,Iue=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,table:{borderRadius:0,"> thead > tr:first-child":{"th:first-child":{borderRadius:0},"th: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`}}}}},Rue=Iue,_ue=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`]:{"&::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"}}}}},Tue=_ue,Pue=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:o,padding:i,paddingXS:a,tableHeaderIconColor:l,tableHeaderIconColorHover:s,tableSelectionColumnWidth:d}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:d,[`&${t}-selection-col-with-dropdown`]:{width:d+o+i/4}},[`${t}-bordered ${t}-selection-col`]:{width:d+a*2,[`&${t}-selection-col-with-dropdown`]:{width:d+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:l,fontSize:o,verticalAlign:"baseline","&:hover":{color:s}}}}}},Nue=Pue,Mue=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))}},Aue=Mue,Lue=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}}}},Due=Lue,kue=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollThumbSize:i,tableScrollBg:a,zIndexTableSticky:l}=e,s=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:l,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${i}px !important`,zIndex:l,display:"flex",alignItems:"center",background:a,borderTop:s,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}}}}}}},Fue=kue,Bue=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}`}}}},ET=Bue,zue=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:o,lineWidth:i,lineType:a,tableBorderColor:l,tableFontSize:s,tableBg:d,tableRadius:f,tableHeaderTextColor:m,motionDurationMid:h,tableHeaderBg:g,tableHeaderCellSplitColor:v,tableRowHoverBg:C,tableSelectedRowBg:S,tableSelectedRowHoverBg:y,tableFooterTextColor:x,tableFooterBg:E,paddingContentVerticalLG:O}=e,w=`${i}px ${a} ${l}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},Of()),{[t]:Object.assign(Object.assign({},mn(e)),{fontSize:s,background:d,borderRadius:`${f}px ${f}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${f}px ${f}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:`${O}px ${o}px`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${r}px ${o}px`},[`${t}-thead`]:{[` + > tr > th, + > tr > td + `]:{position:"relative",color:m,fontWeight:n,textAlign:"start",background:g,borderBottom:w,transition:`background ${h} 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 ${h}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{["> th, > td"]:{transition:`background ${h}, border-color ${h}`,borderBottom:w,[` + > ${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:m,fontWeight:n,textAlign:"start",background:g,borderBottom:w,transition:`background ${h} ease`},[` + &${t}-row:hover > th, + &${t}-row:hover > td, + > th${t}-cell-row-hover + > td${t}-cell-row-hover + `]:{background:C},[`&${t}-row-selected`]:{["> th, > td"]:{background:S},["&:hover > th, &:hover > td"]:{background:y}}}},[`${t}-footer`]:{padding:`${r}px ${o}px`,color:x,background:E}})}},Hue=In("Table",e=>{const{controlItemBgActive:t,controlItemBgActiveHover:n,colorTextPlaceholder:r,colorTextHeading:o,colorSplit:i,colorBorderSecondary:a,fontSize:l,padding:s,paddingXS:d,paddingSM:f,controlHeight:m,colorFillAlter:h,colorIcon:g,colorIconHover:v,opacityLoading:C,colorBgContainer:S,borderRadiusLG:y,colorFillContent:x,colorFillSecondary:E,controlInteractiveSize:O}=e,w=new yn(g),$=new yn(v),R=t,_=2,M=new yn(E).onBackground(S).toHexShortString(),T=new yn(x).onBackground(S).toHexShortString(),D=new yn(h).onBackground(S).toHexShortString(),N=Kt(e,{tableFontSize:l,tableBg:S,tableRadius:y,tablePaddingVertical:s,tablePaddingHorizontal:s,tablePaddingVerticalMiddle:f,tablePaddingHorizontalMiddle:d,tablePaddingVerticalSmall:d,tablePaddingHorizontalSmall:d,tableBorderColor:a,tableHeaderTextColor:o,tableHeaderBg:D,tableFooterTextColor:o,tableFooterBg:D,tableHeaderCellSplitColor:a,tableHeaderSortBg:M,tableHeaderSortHoverBg:T,tableHeaderIconColor:w.clone().setAlpha(w.getAlpha()*C).toRgbString(),tableHeaderIconColorHover:$.clone().setAlpha($.getAlpha()*C).toRgbString(),tableBodySortBg:D,tableFixedHeaderSortActiveBg:M,tableHeaderFilterActiveBg:x,tableFilterDropdownBg:S,tableRowHoverBg:D,tableSelectedRowBg:R,tableSelectedRowHoverBg:n,zIndexTableFixed:_,zIndexTableSticky:_+1,tableFontSizeMiddle:l,tableFontSizeSmall:l,tableSelectionColumnWidth:m,tableExpandIconBg:S,tableExpandColumnWidth:O+2*e.padding,tableExpandedRowBg:h,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollBg:i});return[zue(N),$ue(N),ET(N),Due(N),xue(N),mue(N),Rue(N),Sue(N),ET(N),yue(N),Nue(N),wue(N),Fue(N),gue(N),Aue(N),Tue(N)]}),jue=[],Vue=(e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,size:a,bordered:l,dropdownPrefixCls:s,dataSource:d,pagination:f,rowSelection:m,rowKey:h="key",rowClassName:g,columns:v,children:C,childrenColumnName:S,onChange:y,getPopupContainer:x,loading:E,expandIcon:O,expandable:w,expandedRowRender:$,expandIconColumnIndex:R,indentSize:_,scroll:M,sortDirections:T,locale:D,showSorterTooltip:N=!0}=e,P=c.useMemo(()=>v||ME(C),[v,C]),L=c.useMemo(()=>P.some(tt=>tt.responsive),[P]),k=Ov(L),F=c.useMemo(()=>{const tt=new Set(Object.keys(k).filter(lt=>k[lt]));return P.filter(lt=>!lt.responsive||lt.responsive.some(Re=>tt.has(Re)))},[P,k]),V=kr(e,["className","style","columns"]),H=c.useContext(Bi),{locale:W=Ms,direction:G,renderEmpty:U,getPrefixCls:X,getPopupContainer:Q}=c.useContext(yt),Y=a||H,q=Object.assign(Object.assign({},W.Table),D),ne=d||jue,le=X("table",n),we=X("dropdown",s),Oe=Object.assign({childrenColumnName:S,expandIconColumnIndex:R},w),{childrenColumnName:Ce="children"}=Oe,ce=c.useMemo(()=>ne.some(tt=>tt==null?void 0:tt[Ce])?"nest":$||w&&w.expandedRowRender?"row":null,[ne]),he={body:c.useRef()},ie=c.useMemo(()=>typeof h=="function"?h:tt=>tt==null?void 0:tt[h],[h]),[pe]=iue(ne,Ce,ie),fe={},Ie=function(tt,lt){let Re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Ne,Te,We;const qe=Object.assign(Object.assign({},fe),tt);Re&&((Ne=fe.resetPagination)===null||Ne===void 0||Ne.call(fe),!((Te=qe.pagination)===null||Te===void 0)&&Te.current&&(qe.pagination.current=1),f&&f.onChange&&f.onChange(1,(We=qe.pagination)===null||We===void 0?void 0:We.pageSize)),M&&M.scrollToFirstRowOnChange!==!1&&he.body.current&&Kq(0,{getContainer:()=>he.body.current}),y==null||y(qe.pagination,qe.filters,qe.sorter,{currentDataSource:yT(a1(ne,qe.sorterStates,Ce),qe.filterStates),action:lt})},Se=(tt,lt)=>{Ie({sorter:tt,sorterStates:lt},"sort",!1)},[de,_e,be,Xe]=due({prefixCls:le,mergedColumns:F,onSorterChange:Se,sortDirections:T||["ascend","descend"],tableLocale:q,showSorterTooltip:N}),Qe=c.useMemo(()=>a1(ne,_e,Ce),[ne,_e]);fe.sorter=Xe(),fe.sorterStates=_e;const ft=(tt,lt)=>{Ie({filters:tt,filterStates:lt},"filter",!0)},[ct,ut,dt]=oue({prefixCls:le,locale:q,dropdownPrefixCls:we,mergedColumns:F,onFilterChange:ft,getPopupContainer:x||Q}),He=yT(Qe,ut);fe.filters=dt,fe.filterStates=ut;const Je=c.useMemo(()=>{const tt={};return Object.keys(dt).forEach(lt=>{dt[lt]!==null&&(tt[lt]=dt[lt])}),Object.assign(Object.assign({},be),{filters:tt})},[be,dt]),[ee]=fue(Je),re=(tt,lt)=>{Ie({pagination:Object.assign(Object.assign({},fe.pagination),{current:tt,pageSize:lt})},"paginate")},[oe,xe]=sue(He.length,re,f);fe.pagination=f===!1?{}:lue(oe,f),fe.resetPagination=xe;const ve=c.useMemo(()=>{if(f===!1||!oe.pageSize)return He;const{current:tt=1,total:lt,pageSize:Re=u3}=oe;return He.lengthRe?He.slice((tt-1)*Re,tt*Re):He:He.slice((tt-1)*Re,tt*Re)},[!!f,He,oe&&oe.current,oe&&oe.pageSize,oe&&oe.total]),[Ee,ke]=uue({prefixCls:le,data:He,pageData:ve,getRowKey:ie,getRecordByKey:pe,expandType:ce,childrenColumnName:Ce,locale:q,getPopupContainer:x||Q},m),Ye=(tt,lt,Re)=>{let Ne;return typeof g=="function"?Ne=te(g(tt,lt,Re)):Ne=te(g),te({[`${le}-row-selected`]:ke.has(ie(tt,lt))},Ne)};Oe.__PARENT_RENDER_ICON__=Oe.expandIcon,Oe.expandIcon=Oe.expandIcon||O||wse(q),ce==="nest"&&Oe.expandIconColumnIndex===void 0?Oe.expandIconColumnIndex=m?1:0:Oe.expandIconColumnIndex>0&&m&&(Oe.expandIconColumnIndex-=1),typeof Oe.indentSize!="number"&&(Oe.indentSize=typeof _=="number"?_:15);const Fe=c.useCallback(tt=>ee(Ee(ct(de(tt)))),[de,ct,Ee]);let ot,Ae;if(f!==!1&&(oe!=null&&oe.total)){let tt;oe.size?tt=oe.size:tt=Y==="small"||Y==="middle"?"small":void 0;const lt=Te=>c.createElement(_E,Object.assign({},oe,{className:te(`${le}-pagination ${le}-pagination-${Te}`,oe.className),size:tt})),Re=G==="rtl"?"left":"right",{position:Ne}=oe;if(Ne!==null&&Array.isArray(Ne)){const Te=Ne.find(ht=>ht.includes("top")),We=Ne.find(ht=>ht.includes("bottom")),qe=Ne.every(ht=>`${ht}`=="none");!Te&&!We&&!qe&&(Ae=lt(Re)),Te&&(ot=lt(Te.toLowerCase().replace("top",""))),We&&(Ae=lt(We.toLowerCase().replace("bottom","")))}else Ae=lt(Re)}let Ke;typeof E=="boolean"?Ke={spinning:E}:typeof E=="object"&&(Ke=Object.assign({spinning:!0},E));const[Ue,ze]=Hue(le),at=te(`${le}-wrapper`,{[`${le}-wrapper-rtl`]:G==="rtl"},r,o,ze),$t=D&&D.emptyText||(U==null?void 0:U("Table"))||c.createElement(nE,{componentName:"Table"});return Ue(c.createElement("div",{ref:t,className:at,style:i},c.createElement(Ak,Object.assign({spinning:!1},Ke),ot,c.createElement(Ose,Object.assign({},V,{columns:F,direction:G,expandable:Oe,prefixCls:le,className:te({[`${le}-middle`]:Y==="middle",[`${le}-small`]:Y==="small",[`${le}-bordered`]:l,[`${le}-empty`]:ne.length===0}),data:ve,rowKey:ie,rowClassName:Ye,emptyText:$t,internalHooks:fg,internalRefs:he,transformColumns:Fe})),Ae)))},Uue=c.forwardRef(Vue),Wue=(e,t)=>{const n=c.useRef(0);return n.current+=1,c.createElement(Uue,Object.assign({},e,{ref:t,_renderTimes:n.current}))},Ka=c.forwardRef(Wue);Ka.SELECTION_COLUMN=ll;Ka.EXPAND_COLUMN=dl;Ka.SELECTION_ALL=n1;Ka.SELECTION_INVERT=r1;Ka.SELECTION_NONE=o1;Ka.Column=xse;Ka.ColumnGroup=Ese;Ka.Summary=Uk;const Kue=Ka,Gue="_divIconWrapper_1eud3_1",Xue={divIconWrapper:Gue},es=e=>wt("div",{className:Xue.divIconWrapper,onClick:t=>{t.stopPropagation(),e.onClick!==void 0&&e.onClick()},children:[e.icon,e.label!==void 0&&me("label",{children:e.label})]});class Yue{constructor(){tr(this,"vms",[])}get length(){return this.vms.length}add(t){this.vms.push(t)}delete(t){this.vms.splice(t,1)}at(t){return this.vms[t]}}const nr=new Yue;function Ii(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:kE(e)?2:FE(e)?3:0}function nc(e,t){return Mc(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function que(e,t){return Mc(e)===2?e.get(t):e[t]}function p3(e,t,n){var r=Mc(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function m3(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function kE(e){return nce&&e instanceof Map}function FE(e){return rce&&e instanceof Set}function is(e){return e.o||e.t}function BE(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=g3(e);delete t[On];for(var n=rc(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=Que),Object.freeze(e),t&&ks(e,function(n,r){return zE(r,!0)},!0)),e}function Que(){Ii(2)}function HE(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function aa(e){var t=c1[e];return t||Ii(18,e),t}function Zue(e,t){c1[e]||(c1[e]=t)}function l1(){return Mf}function yb(e,t){t&&(aa("Patches"),e.u=[],e.s=[],e.v=t)}function mg(e){s1(e),e.p.forEach(Jue),e.p=null}function s1(e){e===Mf&&(Mf=e.l)}function wT(e){return Mf={p:[],l:Mf,h:e,m:!0,_:0}}function Jue(e){var t=e[On];t.i===0||t.i===1?t.j():t.g=!0}function bb(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||aa("ES5").S(t,e,r),r?(n[On].P&&(mg(t),Ii(4)),ja(e)&&(e=hg(t,e),t.l||gg(t,e)),t.u&&aa("Patches").M(n[On].t,e,t.u,t.s)):e=hg(t,n,[]),mg(t),t.u&&t.v(t.u,t.s),e!==h3?e:void 0}function hg(e,t,n){if(HE(t))return t;var r=t[On];if(!r)return ks(t,function(l,s){return OT(e,r,t,l,s,n)},!0),t;if(r.A!==e)return t;if(!r.P)return gg(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=BE(r.k):r.o,i=o,a=!1;r.i===3&&(i=new Set(o),o.clear(),a=!0),ks(i,function(l,s){return OT(e,r,o,l,s,n,a)}),gg(e,o,!1),n&&e.u&&aa("Patches").N(r,n,e.u,e.s)}return r.o}function OT(e,t,n,r,o,i,a){if(Dl(o)){var l=hg(e,o,i&&t&&t.i!==3&&!nc(t.R,r)?i.concat(r):void 0);if(p3(n,r,l),!Dl(l))return;e.m=!1}else a&&n.add(o);if(ja(o)&&!HE(o)){if(!e.h.D&&e._<1)return;hg(e,o),t&&t.A.l||gg(e,o)}}function gg(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&zE(t,n)}function Sb(e,t){var n=e[On];return(n?is(n):e)[t]}function $T(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function ml(e){e.P||(e.P=!0,e.l&&ml(e.l))}function Cb(e){e.o||(e.o=BE(e.t))}function u1(e,t,n){var r=kE(t)?aa("MapSet").F(t,n):FE(t)?aa("MapSet").T(t,n):e.O?function(o,i){var a=Array.isArray(o),l={i:a?1:0,A:i?i.A:l1(),P:!1,I:!1,R:{},l:i,t:o,k:null,o:null,j:null,C:!1},s=l,d=Af;a&&(s=[l],d=Ed);var f=Proxy.revocable(s,d),m=f.revoke,h=f.proxy;return l.k=h,l.j=m,h}(t,n):aa("ES5").J(t,n);return(n?n.A:l1()).p.push(r),r}function ece(e){return Dl(e)||Ii(22,e),function t(n){if(!ja(n))return n;var r,o=n[On],i=Mc(n);if(o){if(!o.P&&(o.i<4||!aa("ES5").K(o)))return o.t;o.I=!0,r=IT(n,i),o.I=!1}else r=IT(n,i);return ks(r,function(a,l){o&&que(o.t,a)===l||p3(r,a,t(l))}),i===3?new Set(r):r}(e)}function IT(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return BE(e)}function tce(){function e(i,a){var l=o[i];return l?l.enumerable=a:o[i]=l={configurable:!0,enumerable:a,get:function(){var s=this[On];return Af.get(s,i)},set:function(s){var d=this[On];Af.set(d,i,s)}},l}function t(i){for(var a=i.length-1;a>=0;a--){var l=i[a][On];if(!l.P)switch(l.i){case 5:r(l)&&ml(l);break;case 4:n(l)&&ml(l)}}}function n(i){for(var a=i.t,l=i.k,s=rc(l),d=s.length-1;d>=0;d--){var f=s[d];if(f!==On){var m=a[f];if(m===void 0&&!nc(a,f))return!0;var h=l[f],g=h&&h[On];if(g?g.t!==m:!m3(h,m))return!0}}var v=!!a[On];return s.length!==rc(a).length+(v?0:1)}function r(i){var a=i.k;if(a.length!==i.t.length)return!0;var l=Object.getOwnPropertyDescriptor(a,a.length-1);if(l&&!l.get)return!0;for(var s=0;s1?y-1:0),E=1;E1?f-1:0),h=1;h=0;o--){var i=r[o];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}o>-1&&(r=r.slice(o+1));var a=aa("Patches").$;return Dl(n)?a(n,r):this.produce(n,function(l){return a(l,r)})},e}(),Do=new ice,v3=Do.produce;Do.produceWithPatches.bind(Do);Do.setAutoFreeze.bind(Do);Do.setUseProxies.bind(Do);Do.applyPatches.bind(Do);Do.createDraft.bind(Do);Do.finishDraft.bind(Do);function Mr(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var PT=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),xb=function(){return Math.random().toString(36).substring(7).split("").join(".")},vg={INIT:"@@redux/INIT"+xb(),REPLACE:"@@redux/REPLACE"+xb(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+xb()}};function ace(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function y3(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Mr(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Mr(1));return n(y3)(e,t)}if(typeof e!="function")throw new Error(Mr(2));var o=e,i=t,a=[],l=a,s=!1;function d(){l===a&&(l=a.slice())}function f(){if(s)throw new Error(Mr(3));return i}function m(C){if(typeof C!="function")throw new Error(Mr(4));if(s)throw new Error(Mr(5));var S=!0;return d(),l.push(C),function(){if(S){if(s)throw new Error(Mr(6));S=!1,d();var x=l.indexOf(C);l.splice(x,1),a=null}}}function h(C){if(!ace(C))throw new Error(Mr(7));if(typeof C.type>"u")throw new Error(Mr(8));if(s)throw new Error(Mr(9));try{s=!0,i=o(i,C)}finally{s=!1}for(var S=a=l,y=0;y"u")throw new Error(Mr(12));if(typeof n(void 0,{type:vg.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Mr(13))})}function sce(e){for(var t=Object.keys(e),n={},r=0;r"u")throw d&&d.type,new Error(Mr(14));m[g]=S,f=f||S!==C}return f=f||i.length!==Object.keys(s).length,f?m:s}}function yg(){for(var e=arguments.length,t=new Array(e),n=0;n0&&i[i.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]{e.activeVmIndex=t.payload},setName:(e,t)=>{e.vmPageStates[t.payload.index].name=t.payload.newName},addVmPageState:(e,t)=>{const n=e.vmPageStates.length===0?0:e.vmPageStates[e.vmPageStates.length-1].id+1;e.vmPageStates.push({...t.payload,id:n}),e.activeVmIndex=e.vmPageStates.length-1,uh[n]=e.vmPageStates.length-1},deleteVmPageState:(e,t)=>{(e.activeVmIndex>t.payload||e.activeVmIndex===t.payload&&e.activeVmIndex===e.vmPageStates.length-1)&&e.activeVmIndex--,uh[e.vmPageStates[t.payload].id]=void 0;for(let n=t.payload+1;n{e.vmPageStates[e.activeVmIndex].isIrChanged=t.payload},setIrString:(e,t)=>{e.vmPageStates[e.activeVmIndex].irString=t.payload},setState:(e,t)=>{e.vmPageStates[e.activeVmIndex].state=t.payload},setGlobalVariableDetails:(e,t)=>{e.vmPageStates[e.activeVmIndex].globalVariableDetails=t.payload},setLocalVariableDetailsStack:(e,t)=>{e.vmPageStates[e.activeVmIndex].localVariableDetailsStack=t.payload},setOptions:(e,t)=>{e.vmPageStates[e.activeVmIndex].options=t.payload},setStepCount:(e,t)=>{e.vmPageStates[e.activeVmIndex].stepCount=t.payload},setMemoryUsage:(e,t)=>{e.vmPageStates[e.activeVmIndex].memoryUsage=t.payload},setPeakMemoryUsage:(e,t)=>{e.vmPageStates[e.activeVmIndex].peakMemoryUsage=t.payload},addConsoleOutputs:(e,t)=>{for(const n of t.payload)e.vmPageStates[e.activeVmIndex].consoleOutputs.push(n)},clearConsoleOutputs:e=>{e.vmPageStates[e.activeVmIndex].consoleOutputs=[]},setConsoleInputPrompt:(e,t)=>{e.vmPageStates[e.activeVmIndex].consoleInputPrompt=t.payload},setConsoleInput:(e,t)=>{e.vmPageStates[e.activeVmIndex].consoleInput=t.payload},setStaticErrors:(e,t)=>{e.vmPageStates[e.activeVmIndex].staticErrors=t.payload},setRuntimeErrors:(e,t)=>{e.vmPageStates[e.activeVmIndex].runtimeErrors=t.payload},setCurrentLineNumber:(e,t)=>{e.vmPageStates[e.activeVmIndex].currentLineNumber=t.payload},setShouldIndicateCurrentLineNumber:(e,t)=>{e.vmPageStates[e.activeVmIndex].shouldIndicateCurrentLineNumber=t.payload},setLocalVariableTablePageIndex:(e,t)=>{e.vmPageStates[e.activeVmIndex].localVariableTablePageIndex=t.payload}}}),{setActiveVmIndex:Dce,setName:kce,addVmPageState:w3,deleteVmPageState:Fce,setIsIrChanged:O3,setIrString:Bce,setState:zce,setGlobalVariableDetails:Hce,setLocalVariableDetailsStack:jce,setOptions:Vce,setStepCount:Uce,setMemoryUsage:Wce,setPeakMemoryUsage:Kce,addConsoleOutputs:$3,clearConsoleOutputs:Gce,setConsoleInputPrompt:ch,setConsoleInput:wd,setStaticErrors:Xce,setRuntimeErrors:Yce,setCurrentLineNumber:qce,setShouldIndicateCurrentLineNumber:Ou,setLocalVariableTablePageIndex:WE}=E3.actions,Ta=(e,t)=>{const n=uh[t];n!==void 0&&(e(zce(nr.at(n).state)),e(Hce(nr.at(n).globalVariableDetails)),e(jce(nr.at(n).localVariableDetailsStack)),e(Vce(nr.at(n).currentOptions)),e(Uce(nr.at(n).stepCount)),e(Wce(nr.at(n).memoryUsage)),e(Kce(nr.at(n).currentPeakMemoryUsage)),e(Xce(nr.at(n).staticErrors)),e(Yce(nr.at(n).runtimeErrors)),e(qce(nr.at(n).currentLineNumber)),nr.at(n).flushWriteBuffer(r=>e($3(r))))},Qce=E3.reducer,kT=new Int32Array(1);function ao(e){return kT[0]=e,kT[0]}function Ro(e,t){return ao(e+t)}function Am(e,t){return ao(e-t)}function Zce(e,t){const n=(e&4294901760)>>>16,r=e&65535,o=(t&4294901760)>>>16,i=t&65535;return ao((n*i+r*o<<16)+r*i)}function Jce(e,t){return ao(e/t)}var f1=(e=>(e[e.SUCCESS=0]="SUCCESS",e[e.OUT_OF_BOUND=1]="OUT_OF_BOUND",e))(f1||{}),I3=(e=>(e[e.SUCCESS=0]="SUCCESS",e[e.OUT_OF_BOUND=1]="OUT_OF_BOUND",e))(I3||{});function FT(e,t){return e<0||e+4>t.length?{value:null,status:1}:{value:ao(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24),status:0}}function ede(e,t,n){return t<0||t+4>n.length?1:(n[t]=e&255,n[t+1]=(e&65280)>>>8,n[t+2]=(e&16711680)>>>16,n[t+3]=(e&4278190080)>>>24,0)}var dh=(e=>(e[e.IMM=0]="IMM",e[e.ID=1]="ID",e[e.ADDRESS_ID=2]="ADDRESS_ID",e[e.DEREF_ID=3]="DEREF_ID",e))(dh||{}),Od=(e=>(e[e.ADD=0]="ADD",e[e.SUB=1]="SUB",e[e.MUL=2]="MUL",e[e.DIV=3]="DIV",e))(Od||{}),as=(e=>(e[e.EQ=0]="EQ",e[e.NE=1]="NE",e[e.LT=2]="LT",e[e.LE=3]="LE",e[e.GT=4]="GT",e[e.GE=5]="GE",e))(as||{}),$d=(e=>(e[e.ID=0]="ID",e[e.DEREF_ID=1]="DEREF_ID",e))($d||{}),p1=(e=>(e[e.SINGULAR=0]="SINGULAR",e[e.BINARY_MATH_OP=1]="BINARY_MATH_OP",e))(p1||{}),$u=(e=>(e[e.FUNCTION=0]="FUNCTION",e[e.ASSIGN=1]="ASSIGN",e[e.DEC=2]="DEC",e[e.GLOBAL_DEC=3]="GLOBAL_DEC",e[e.LABEL=4]="LABEL",e[e.GOTO=5]="GOTO",e[e.IF=6]="IF",e[e.ARG=7]="ARG",e[e.CALL=8]="CALL",e[e.ASSIGN_CALL=9]="ASSIGN_CALL",e[e.PARAM=10]="PARAM",e[e.RETURN=11]="RETURN",e[e.READ=12]="READ",e[e.WRITE=13]="WRITE",e[e.EMPTY=14]="EMPTY",e[e.COMMENT=15]="COMMENT",e[e.ERROR=16]="ERROR",e))($u||{}),Nr=(e=>(e[e.ASSIGN=1]="ASSIGN",e[e.DEC=2]="DEC",e[e.GLOBAL_DEC=3]="GLOBAL_DEC",e[e.GOTO=5]="GOTO",e[e.IF=6]="IF",e[e.ARG=7]="ARG",e[e.CALL=8]="CALL",e[e.ASSIGN_CALL=9]="ASSIGN_CALL",e[e.PARAM=10]="PARAM",e[e.RETURN=11]="RETURN",e[e.READ=12]="READ",e[e.WRITE=13]="WRITE",e))(Nr||{});class tde{constructor(){tr(this,"patternId",new RegExp(/^(?[a-zA-Z_]\w*)$/));tr(this,"patternSize",new RegExp(/^(?\d+)$/));tr(this,"patternSingular",new RegExp(/^(#(?-?\d+))$|^(?[a-zA-Z_]\w*)$|^(\*(?[a-zA-Z_]\w*))$|^(&(?[a-zA-Z_]\w*))$/));tr(this,"patternLValue",new RegExp(/^((?[a-zA-Z_]\w*))$|^(\*(?[a-zA-Z_]\w*))$/));tr(this,"illegalInstructionFormatError",{type:16,messageKey:"ILLEGAL_INSTRUCTION_FORMAT"})}purify(t){return t.trim().replaceAll(/[ \t]+/g," ")}splitWhiteSpace(t){return t.replaceAll(" "," ").split(" ")}decodeComponentId(t){const n=t.match(this.patternId);return n===null?null:n.groups.id}decodeComponentSize(t){const n=t.match(this.patternSize);if(n===null)return null;const r=parseInt(n.groups.size);return Number.isSafeInteger(r)?ao(r):1/0}decodeComponentSingular(t){const n=t.match(this.patternSingular);if(n===null)return null;if(n.groups.imm!==void 0){const r=parseInt(n.groups.imm);return Number.isSafeInteger(r)?{type:0,imm:ao(r)}:{type:0,imm:1/0}}else return n.groups.id!==void 0?{type:1,id:n.groups.id}:n.groups.derefId!==void 0?{type:3,id:n.groups.derefId}:{type:2,id:n.groups.addressId}}decodeComponentLValue(t){const n=t.match(this.patternLValue);return n===null?null:n.groups.id!==void 0?{type:0,id:n.groups.id}:{type:1,id:n.groups.derefId}}decodeFunction(t){if(t.length!==3||t[2]!==":")return this.illegalInstructionFormatError;const n=this.decodeComponentId(t[1]);return n===null?{type:16,messageKey:"FUNCTION_ILLEGAL_ID"}:{type:0,value:{id:n}}}decodeAssign(t){if(t.length!==3&&t.length!==5||t[1]!==":=")return this.illegalInstructionFormatError;const n=this.decodeComponentLValue(t[0]);if(n===null)return{type:16,messageKey:"ASSIGN_ILLEGAL_LEFT"};const r=this.decodeComponentSingular(t[2]);if(r===null)return{type:16,messageKey:t.length===3?"ASSIGN_ILLEGAL_RIGHT":"ASSIGN_ILLEGAL_RIGHT_OPERAND1"};if(r.type===0&&!Number.isFinite(r.imm))return{type:16,messageKey:t.length===3?"ASSIGN_RIGHT_IMM_TOO_LARGE":"ASSIGN_RIGHT_OPERAND1_IMM_TOO_LARGE"};if(t.length===3)return{type:1,value:{lValue:n,rValue:{type:0,singular:r}}};{let o=0;switch(t[3]){case"+":o=0;break;case"-":o=1;break;case"*":o=2;break;case"/":o=3;break;default:return{type:16,messageKey:"ASSIGN_ILLEGAL_RIGHT_OPERATOR"}}const i=this.decodeComponentSingular(t[4]);return i===null?{type:16,messageKey:"ASSIGN_ILLEGAL_RIGHT_OPERAND2"}:i.type===0&&!Number.isFinite(i.imm)?{type:16,messageKey:"ASSIGN_RIGHT_OPERAND2_IMM_TOO_LARGE"}:{type:1,value:{lValue:n,rValue:{type:1,singularL:r,singularR:i,binaryMathOp:o}}}}}decodeDec(t){if(t.length!==3)return this.illegalInstructionFormatError;const n=this.decodeComponentId(t[1]);if(n===null)return{type:16,messageKey:"DEC_ILLEGAL_ID"};const r=this.decodeComponentSize(t[2]);return r===null?{type:16,messageKey:"DEC_ILLEGAL_SIZE_FORMAT"}:Number.isFinite(r)?r%4!==0?{type:16,messageKey:"DEC_SIZE_NOT_4_MULTIPLE"}:{type:2,value:{id:n,size:r}}:{type:16,messageKey:"DEC_SIZE_TOO_LARGE"}}decodeGlobalDec(t){if(t.length!==3)return this.illegalInstructionFormatError;const n=this.decodeComponentId(t[1]);if(n===null)return{type:16,messageKey:"GLOBAL_DEC_ILLEGAL_ID"};const r=this.decodeComponentSize(t[2]);return r===null?{type:16,messageKey:"GLOBAL_DEC_ILLEGAL_SIZE_FORMAT"}:Number.isFinite(r)?r%4!==0?{type:16,messageKey:"GLOBAL_DEC_SIZE_NOT_4_MULTIPLE"}:{type:3,value:{id:n,size:r}}:{type:16,messageKey:"GLOBAL_DEC_SIZE_TOO_LARGE"}}decodeLabel(t){if(t.length!==3||t[2]!==":")return this.illegalInstructionFormatError;const n=this.decodeComponentId(t[1]);return n===null?{type:16,messageKey:"LABEL_ILLEGAL_ID"}:{type:4,value:{id:n}}}decodeGoto(t){if(t.length!==2)return this.illegalInstructionFormatError;const n=this.decodeComponentId(t[1]);return n===null?{type:16,messageKey:"GOTO_ILLEGAL_ID"}:{type:5,value:{id:n}}}decodeIf(t){if(t.length!==6||t[4]!=="GOTO")return this.illegalInstructionFormatError;const n=this.decodeComponentSingular(t[1]);if(n===null)return{type:16,messageKey:"IF_ILLEGAL_COND_OPERAND1"};if(n.type===0&&!Number.isFinite(n.imm))return{type:16,messageKey:"IF_COND_OPERAND1_IMM_TOO_LARGE"};let r=0;switch(t[2]){case"==":r=0;break;case"!=":r=1;break;case"<":r=2;break;case"<=":r=3;break;case">":r=4;break;case">=":r=5;break;default:return{type:16,messageKey:"IF_ILLEGAL_COND_OPERATOR"}}const o=this.decodeComponentSingular(t[3]);if(o===null)return{type:16,messageKey:"IF_ILLEGAL_COND_OPERAND2"};if(o.type===0&&!Number.isFinite(o.imm))return{type:16,messageKey:"IF_COND_OPERAND2_IMM_TOO_LARGE"};const i=this.decodeComponentId(t[5]);return i===null?{type:16,messageKey:"IF_ILLEGAL_GOTO_ID"}:{type:6,value:{condition:{singularL:n,singularR:o,binaryRelOp:r},gotoId:i}}}decodeArg(t){if(t.length!==2)return this.illegalInstructionFormatError;const n=this.decodeComponentSingular(t[1]);return n===null?{type:16,messageKey:"ARG_ILLEGAL"}:n.type===0&&!Number.isFinite(n.imm)?{type:16,messageKey:"ARG_IMM_TOO_LARGE"}:{type:7,value:{value:n}}}decodeCall(t){if(t.length!==2)return this.illegalInstructionFormatError;const n=this.decodeComponentId(t[1]);return n===null?{type:16,messageKey:"CALL_ILLEGAL_ID"}:{type:8,value:{id:n}}}decodeAssignCall(t){if(t.length!==4||t[1]!==":="||t[2]!=="CALL")return this.illegalInstructionFormatError;const n=this.decodeComponentLValue(t[0]);if(n===null)return{type:16,messageKey:"ASSIGN_ILLEGAL_LEFT"};const r=this.decodeComponentId(t[3]);return r===null?{type:16,messageKey:"CALL_ILLEGAL_ID"}:{type:9,value:{lValue:n,functionId:r}}}decodeParam(t){if(t.length!==2)return this.illegalInstructionFormatError;const n=this.decodeComponentId(t[1]);return n===null?{type:16,messageKey:"PARAM_ILLEGAL_ID"}:{type:10,value:{id:n}}}decodeReturn(t){if(t.length!==2)return this.illegalInstructionFormatError;const n=this.decodeComponentSingular(t[1]);return n===null?{type:16,messageKey:"RETURN_ILLEGAL"}:n.type===0&&!Number.isFinite(n.imm)?{type:16,messageKey:"RETURN_IMM_TOO_LARGE"}:{type:11,value:{value:n}}}decodeRead(t){if(t.length!==2)return this.illegalInstructionFormatError;const n=this.decodeComponentLValue(t[1]);return n===null?{type:16,messageKey:"READ_ILLEGAL"}:{type:12,value:{lValue:n}}}decodeWrite(t){if(t.length!==2)return this.illegalInstructionFormatError;const n=this.decodeComponentSingular(t[1]);return n===null?{type:16,messageKey:"WRITE_ILLEGAL"}:n.type===0&&!Number.isFinite(n.imm)?{type:16,messageKey:"WRITE_IMM_TOO_LARGE"}:{type:13,value:{value:n}}}decode(t){if(t.match(/^[ \t]*$/))return{type:14};const n={type:16,messageKey:"UNRECOGNIZED_INSTRUCTION"},r=this.purify(t);if(r.startsWith(";"))return{type:15};const o=this.splitWhiteSpace(r);if(o.length<1)return n;switch(o[0]){case"FUNCTION":return this.decodeFunction(o);case"DEC":return this.decodeDec(o);case"GLOBAL_DEC":return this.decodeGlobalDec(o);case"LABEL":return this.decodeLabel(o);case"GOTO":return this.decodeGoto(o);case"IF":return this.decodeIf(o);case"ARG":return this.decodeArg(o);case"CALL":return this.decodeCall(o);case"PARAM":return this.decodeParam(o);case"RETURN":return this.decodeReturn(o);case"READ":return this.decodeRead(o);case"WRITE":return this.decodeWrite(o);default:const i=this.decodeAssign(o);if(i.type===1)return i;const a=this.decodeAssignCall(o);return a.type===9?a:i}}}var Sr={},nde={get exports(){return Sr},set exports(e){Sr=e}};/** + * @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 + */(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",l="Invalid `variable` option passed into `_.template`",s="__lodash_hash_undefined__",d=500,f="__lodash_placeholder__",m=1,h=2,g=4,v=1,C=2,S=1,y=2,x=4,E=8,O=16,w=32,$=64,R=128,_=256,M=512,T=30,D="...",N=800,P=16,L=1,k=2,F=3,V=1/0,H=9007199254740991,W=17976931348623157e292,G=0/0,U=4294967295,X=U-1,Q=U>>>1,Y=[["ary",R],["bind",S],["bindKey",y],["curry",E],["curryRight",O],["flip",M],["partial",w],["partialRight",$],["rearg",_]],q="[object Arguments]",ne="[object Array]",le="[object AsyncFunction]",we="[object Boolean]",Oe="[object Date]",Ce="[object DOMException]",ce="[object Error]",he="[object Function]",ie="[object GeneratorFunction]",pe="[object Map]",fe="[object Number]",Ie="[object Null]",Se="[object Object]",de="[object Promise]",_e="[object Proxy]",be="[object RegExp]",Xe="[object Set]",Qe="[object String]",ft="[object Symbol]",ct="[object Undefined]",ut="[object WeakMap]",dt="[object WeakSet]",He="[object ArrayBuffer]",Je="[object DataView]",ee="[object Float32Array]",re="[object Float64Array]",oe="[object Int8Array]",xe="[object Int16Array]",ve="[object Int32Array]",Ee="[object Uint8Array]",ke="[object Uint8ClampedArray]",Ye="[object Uint16Array]",Fe="[object Uint32Array]",ot=/\b__p \+= '';/g,Ae=/\b(__p \+=) '' \+/g,Ke=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ue=/&(?:amp|lt|gt|quot|#39);/g,ze=/[&<>"']/g,at=RegExp(Ue.source),$t=RegExp(ze.source),tt=/<%-([\s\S]+?)%>/g,lt=/<%([\s\S]+?)%>/g,Re=/<%=([\s\S]+?)%>/g,Ne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Te=/^\w*$/,We=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qe=/[\\^$.*+?()[\]{}|]/g,ht=RegExp(qe.source),en=/^\s+/,tn=/\s/,Rn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Rt=/\{\n\/\* \[wrapped with (.+)\] \*/,zt=/,? & /,_n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Bn=/[()=,{}\[\]\/\s]/,Or=/\\(\\)?/g,gr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ln=/\w*$/,Fr=/^[-+]0x[0-9a-f]+$/i,ho=/^0b[01]+$/i,Dn=/^\[object .+?Constructor\]$/,vr=/^0o[0-7]+$/i,mi=/^(?:0|[1-9]\d*)$/,go=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Un=/($^)/,Zr=/['\n\r\u2028\u2029\\]/g,Jr="\\ud800-\\udfff",hi="\\u0300-\\u036f",Br="\\ufe20-\\ufe2f",zr="\\u20d0-\\u20ff",Wn=hi+Br+zr,Kn="\\u2700-\\u27bf",eo="a-z\\xdf-\\xf6\\xf8-\\xff",to="\\xac\\xb1\\xd7\\xf7",lr="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Hr="\\u2000-\\u206f",vo=" \\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",Ho="A-Z\\xc0-\\xd6\\xd8-\\xde",yo="\\ufe0e\\ufe0f",$r=to+lr+Hr+vo,Ir="['’]",et="["+Jr+"]",Ge="["+$r+"]",St="["+Wn+"]",rt="\\d+",nt="["+Kn+"]",Nt="["+eo+"]",Gt="[^"+Jr+$r+rt+Kn+eo+Ho+"]",Tn="\\ud83c[\\udffb-\\udfff]",sr="(?:"+St+"|"+Tn+")",jr="[^"+Jr+"]",ur="(?:\\ud83c[\\udde6-\\uddff]){2}",bo="[\\ud800-\\udbff][\\udc00-\\udfff]",ua="["+Ho+"]",Us="\\u200d",Ac="(?:"+Nt+"|"+Gt+")",Uv="(?:"+ua+"|"+Gt+")",up="(?:"+Ir+"(?:d|ll|m|re|s|t|ve))?",gt="(?:"+Ir+"(?:D|LL|M|RE|S|T|VE))?",It=sr+"?",Jt="["+yo+"]?",fn="(?:"+Us+"(?:"+[jr,ur,bo].join("|")+")"+Jt+It+")*",hn="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ws="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ca=Jt+It+fn,Lc="(?:"+[nt,ur,bo].join("|")+")"+ca,cp="(?:"+[jr+St+"?",St,ur,bo,et].join("|")+")",Ks=RegExp(Ir,"g"),V3=RegExp(St,"g"),Wv=RegExp(Tn+"(?="+Tn+")|"+cp+ca,"g"),U3=RegExp([ua+"?"+Nt+"+"+up+"(?="+[Ge,ua,"$"].join("|")+")",Uv+"+"+gt+"(?="+[Ge,ua+Ac,"$"].join("|")+")",ua+"?"+Ac+"+"+up,ua+"+"+gt,Ws,hn,rt,Lc].join("|"),"g"),W3=RegExp("["+Us+Jr+Wn+yo+"]"),K3=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,G3=["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"],X3=-1,bn={};bn[ee]=bn[re]=bn[oe]=bn[xe]=bn[ve]=bn[Ee]=bn[ke]=bn[Ye]=bn[Fe]=!0,bn[q]=bn[ne]=bn[He]=bn[we]=bn[Je]=bn[Oe]=bn[ce]=bn[he]=bn[pe]=bn[fe]=bn[Se]=bn[be]=bn[Xe]=bn[Qe]=bn[ut]=!1;var gn={};gn[q]=gn[ne]=gn[He]=gn[Je]=gn[we]=gn[Oe]=gn[ee]=gn[re]=gn[oe]=gn[xe]=gn[ve]=gn[pe]=gn[fe]=gn[Se]=gn[be]=gn[Xe]=gn[Qe]=gn[ft]=gn[Ee]=gn[ke]=gn[Ye]=gn[Fe]=!0,gn[ce]=gn[he]=gn[ut]=!1;var Y3={À:"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"},q3={"&":"&","<":"<",">":">",'"':""","'":"'"},Q3={"&":"&","<":"<",">":">",""":'"',"'":"'"},Z3={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},J3=parseFloat,e4=parseInt,KE=typeof Qc=="object"&&Qc&&Qc.Object===Object&&Qc,t4=typeof self=="object"&&self&&self.Object===Object&&self,yr=KE||t4||Function("return this")(),Kv=t&&!t.nodeType&&t,Vl=Kv&&!0&&e&&!e.nodeType&&e,GE=Vl&&Vl.exports===Kv,Gv=GE&&KE.process,jo=function(){try{var ae=Vl&&Vl.require&&Vl.require("util").types;return ae||Gv&&Gv.binding&&Gv.binding("util")}catch{}}(),XE=jo&&jo.isArrayBuffer,YE=jo&&jo.isDate,qE=jo&&jo.isMap,QE=jo&&jo.isRegExp,ZE=jo&&jo.isSet,JE=jo&&jo.isTypedArray;function So(ae,$e,ye){switch(ye.length){case 0:return ae.call($e);case 1:return ae.call($e,ye[0]);case 2:return ae.call($e,ye[0],ye[1]);case 3:return ae.call($e,ye[0],ye[1],ye[2])}return ae.apply($e,ye)}function n4(ae,$e,ye,it){for(var _t=-1,nn=ae==null?0:ae.length;++_t-1}function Xv(ae,$e,ye){for(var it=-1,_t=ae==null?0:ae.length;++it<_t;)if(ye($e,ae[it]))return!0;return!1}function wn(ae,$e){for(var ye=-1,it=ae==null?0:ae.length,_t=Array(it);++ye-1;);return ye}function lw(ae,$e){for(var ye=ae.length;ye--&&Gs($e,ae[ye],0)>-1;);return ye}function d4(ae,$e){for(var ye=ae.length,it=0;ye--;)ae[ye]===$e&&++it;return it}var f4=Zv(Y3),p4=Zv(q3);function m4(ae){return"\\"+Z3[ae]}function h4(ae,$e){return ae==null?n:ae[$e]}function Xs(ae){return W3.test(ae)}function g4(ae){return K3.test(ae)}function v4(ae){for(var $e,ye=[];!($e=ae.next()).done;)ye.push($e.value);return ye}function n0(ae){var $e=-1,ye=Array(ae.size);return ae.forEach(function(it,_t){ye[++$e]=[_t,it]}),ye}function sw(ae,$e){return function(ye){return ae($e(ye))}}function Ya(ae,$e){for(var ye=-1,it=ae.length,_t=0,nn=[];++ye-1}function oF(u,p){var b=this.__data__,I=Rp(b,u);return I<0?(++this.size,b.push([u,p])):b[I][1]=p,this}da.prototype.clear=eF,da.prototype.delete=tF,da.prototype.get=nF,da.prototype.has=rF,da.prototype.set=oF;function fa(u){var p=-1,b=u==null?0:u.length;for(this.clear();++p=p?u:p)),u}function Ko(u,p,b,I,A,z){var K,J=p&m,se=p&h,Me=p&g;if(b&&(K=A?b(u,I,A,z):b(u)),K!==n)return K;if(!Pn(u))return u;var Le=Pt(u);if(Le){if(K=sB(u),!J)return no(u,K)}else{var Be=_r(u),Ze=Be==he||Be==ie;if(tl(u))return Uw(u,J);if(Be==Se||Be==q||Ze&&!A){if(K=se||Ze?{}:uO(u),!J)return se?QF(u,SF(K,u)):qF(u,Sw(K,u))}else{if(!gn[Be])return A?u:{};K=uB(u,Be,J)}}z||(z=new vi);var mt=z.get(u);if(mt)return mt;z.set(u,K),FO(u)?u.forEach(function(xt){K.add(Ko(xt,p,b,xt,u,z))}):DO(u)&&u.forEach(function(xt,kt){K.set(kt,Ko(xt,p,b,kt,u,z))});var Ct=Me?se?R0:I0:se?oo:cr,At=Le?n:Ct(u);return Vo(At||u,function(xt,kt){At&&(kt=xt,xt=u[kt]),jc(K,kt,Ko(xt,p,b,kt,u,z))}),K}function CF(u){var p=cr(u);return function(b){return Cw(b,u,p)}}function Cw(u,p,b){var I=b.length;if(u==null)return!I;for(u=pn(u);I--;){var A=b[I],z=p[A],K=u[A];if(K===n&&!(A in u)||!z(K))return!1}return!0}function xw(u,p,b){if(typeof u!="function")throw new Uo(a);return Yc(function(){u.apply(n,b)},p)}function Vc(u,p,b,I){var A=-1,z=dp,K=!0,J=u.length,se=[],Me=p.length;if(!J)return se;b&&(p=wn(p,Co(b))),I?(z=Xv,K=!1):p.length>=o&&(z=Dc,K=!1,p=new Kl(p));e:for(;++AA?0:A+b),I=I===n||I>A?A:Mt(I),I<0&&(I+=A),I=b>I?0:zO(I);b0&&b(J)?p>1?br(J,p-1,b,I,A):Xa(A,J):I||(A[A.length]=J)}return A}var u0=qw(),Ow=qw(!0);function ji(u,p){return u&&u0(u,p,cr)}function c0(u,p){return u&&Ow(u,p,cr)}function Tp(u,p){return Ga(p,function(b){return va(u[b])})}function Xl(u,p){p=Ja(p,u);for(var b=0,I=p.length;u!=null&&bp}function wF(u,p){return u!=null&&on.call(u,p)}function OF(u,p){return u!=null&&p in pn(u)}function $F(u,p,b){return u>=Rr(p,b)&&u=120&&Le.length>=120)?new Kl(K&&Le):n}Le=u[0];var Be=-1,Ze=J[0];e:for(;++Be-1;)J!==u&&Cp.call(J,se,1),Cp.call(u,se,1);return u}function Dw(u,p){for(var b=u?p.length:0,I=b-1;b--;){var A=p[b];if(b==I||A!==z){var z=A;ga(A)?Cp.call(u,A,1):S0(u,A)}}return u}function v0(u,p){return u+wp(gw()*(p-u+1))}function BF(u,p,b,I){for(var A=-1,z=er(Ep((p-u)/(b||1)),0),K=ye(z);z--;)K[I?z:++A]=u,u+=b;return K}function y0(u,p){var b="";if(!u||p<1||p>H)return b;do p%2&&(b+=u),p=wp(p/2),p&&(u+=u);while(p);return b}function Lt(u,p){return L0(fO(u,p,io),u+"")}function zF(u){return bw(iu(u))}function HF(u,p){var b=iu(u);return Hp(b,Gl(p,0,b.length))}function Kc(u,p,b,I){if(!Pn(u))return u;p=Ja(p,u);for(var A=-1,z=p.length,K=z-1,J=u;J!=null&&++AA?0:A+p),b=b>A?A:b,b<0&&(b+=A),A=p>b?0:b-p>>>0,p>>>=0;for(var z=ye(A);++I>>1,K=u[z];K!==null&&!Eo(K)&&(b?K<=p:K=o){var Me=p?null:tB(u);if(Me)return pp(Me);K=!1,A=Dc,se=new Kl}else se=p?[]:J;e:for(;++I=I?u:Go(u,p,b)}var Vw=N4||function(u){return yr.clearTimeout(u)};function Uw(u,p){if(p)return u.slice();var b=u.length,I=dw?dw(b):new u.constructor(b);return u.copy(I),I}function w0(u){var p=new u.constructor(u.byteLength);return new bp(p).set(new bp(u)),p}function KF(u,p){var b=p?w0(u.buffer):u.buffer;return new u.constructor(b,u.byteOffset,u.byteLength)}function GF(u){var p=new u.constructor(u.source,Ln.exec(u));return p.lastIndex=u.lastIndex,p}function XF(u){return Hc?pn(Hc.call(u)):{}}function Ww(u,p){var b=p?w0(u.buffer):u.buffer;return new u.constructor(b,u.byteOffset,u.length)}function Kw(u,p){if(u!==p){var b=u!==n,I=u===null,A=u===u,z=Eo(u),K=p!==n,J=p===null,se=p===p,Me=Eo(p);if(!J&&!Me&&!z&&u>p||z&&K&&se&&!J&&!Me||I&&K&&se||!b&&se||!A)return 1;if(!I&&!z&&!Me&&u=J)return se;var Me=b[I];return se*(Me=="desc"?-1:1)}}return u.index-p.index}function Gw(u,p,b,I){for(var A=-1,z=u.length,K=b.length,J=-1,se=p.length,Me=er(z-K,0),Le=ye(se+Me),Be=!I;++J1?b[A-1]:n,K=A>2?b[2]:n;for(z=u.length>3&&typeof z=="function"?(A--,z):n,K&&Ur(b[0],b[1],K)&&(z=A<3?n:z,A=1),p=pn(p);++I-1?A[z?p[K]:K]:n}}function Jw(u){return ha(function(p){var b=p.length,I=b,A=Wo.prototype.thru;for(u&&p.reverse();I--;){var z=p[I];if(typeof z!="function")throw new Uo(a);if(A&&!K&&Bp(z)=="wrapper")var K=new Wo([],!0)}for(I=K?I:b;++I1&&Ut.reverse(),Le&&seJ))return!1;var Me=z.get(u),Le=z.get(p);if(Me&&Le)return Me==p&&Le==u;var Be=-1,Ze=!0,mt=b&C?new Kl:n;for(z.set(u,p),z.set(p,u);++Be1?"& ":"")+p[I],p=p.join(b>2?", ":" "),u.replace(Rn,`{ +/* [wrapped with `+p+`] */ +`)}function dB(u){return Pt(u)||Ql(u)||!!(mw&&u&&u[mw])}function ga(u,p){var b=typeof u;return p=p??H,!!p&&(b=="number"||b!="symbol"&&mi.test(u))&&u>-1&&u%1==0&&u0){if(++p>=N)return arguments[0]}else p=0;return u.apply(n,arguments)}}function Hp(u,p){var b=-1,I=u.length,A=I-1;for(p=p===n?I:p;++b1?u[p-1]:n;return b=typeof b=="function"?(u.pop(),b):n,wO(u,b)});function OO(u){var p=B(u);return p.__chain__=!0,p}function x6(u,p){return p(u),u}function jp(u,p){return p(u)}var E6=ha(function(u){var p=u.length,b=p?u[0]:0,I=this.__wrapped__,A=function(z){return s0(z,u)};return p>1||this.__actions__.length||!(I instanceof Ht)||!ga(b)?this.thru(A):(I=I.slice(b,+b+(p?1:0)),I.__actions__.push({func:jp,args:[A],thisArg:n}),new Wo(I,this.__chain__).thru(function(z){return p&&!z.length&&z.push(n),z}))});function w6(){return OO(this)}function O6(){return new Wo(this.value(),this.__chain__)}function $6(){this.__values__===n&&(this.__values__=BO(this.value()));var u=this.__index__>=this.__values__.length,p=u?n:this.__values__[this.__index__++];return{done:u,value:p}}function I6(){return this}function R6(u){for(var p,b=this;b instanceof Ip;){var I=yO(b);I.__index__=0,I.__values__=n,p?A.__wrapped__=I:p=I;var A=I;b=b.__wrapped__}return A.__wrapped__=u,p}function _6(){var u=this.__wrapped__;if(u instanceof Ht){var p=u;return this.__actions__.length&&(p=new Ht(this)),p=p.reverse(),p.__actions__.push({func:jp,args:[D0],thisArg:n}),new Wo(p,this.__chain__)}return this.thru(D0)}function T6(){return Hw(this.__wrapped__,this.__actions__)}var P6=Ap(function(u,p,b){on.call(u,b)?++u[b]:pa(u,b,1)});function N6(u,p,b){var I=Pt(u)?ew:xF;return b&&Ur(u,p,b)&&(p=n),I(u,bt(p,3))}function M6(u,p){var b=Pt(u)?Ga:ww;return b(u,bt(p,3))}var A6=Zw(bO),L6=Zw(SO);function D6(u,p){return br(Vp(u,p),1)}function k6(u,p){return br(Vp(u,p),V)}function F6(u,p,b){return b=b===n?1:Mt(b),br(Vp(u,p),b)}function $O(u,p){var b=Pt(u)?Vo:Qa;return b(u,bt(p,3))}function IO(u,p){var b=Pt(u)?r4:Ew;return b(u,bt(p,3))}var B6=Ap(function(u,p,b){on.call(u,b)?u[b].push(p):pa(u,b,[p])});function z6(u,p,b,I){u=ro(u)?u:iu(u),b=b&&!I?Mt(b):0;var A=u.length;return b<0&&(b=er(A+b,0)),Xp(u)?b<=A&&u.indexOf(p,b)>-1:!!A&&Gs(u,p,b)>-1}var H6=Lt(function(u,p,b){var I=-1,A=typeof p=="function",z=ro(u)?ye(u.length):[];return Qa(u,function(K){z[++I]=A?So(p,K,b):Uc(K,p,b)}),z}),j6=Ap(function(u,p,b){pa(u,b,p)});function Vp(u,p){var b=Pt(u)?wn:Tw;return b(u,bt(p,3))}function V6(u,p,b,I){return u==null?[]:(Pt(p)||(p=p==null?[]:[p]),b=I?n:b,Pt(b)||(b=b==null?[]:[b]),Aw(u,p,b))}var U6=Ap(function(u,p,b){u[b?0:1].push(p)},function(){return[[],[]]});function W6(u,p,b){var I=Pt(u)?Yv:ow,A=arguments.length<3;return I(u,bt(p,4),b,A,Qa)}function K6(u,p,b){var I=Pt(u)?o4:ow,A=arguments.length<3;return I(u,bt(p,4),b,A,Ew)}function G6(u,p){var b=Pt(u)?Ga:ww;return b(u,Kp(bt(p,3)))}function X6(u){var p=Pt(u)?bw:zF;return p(u)}function Y6(u,p,b){(b?Ur(u,p,b):p===n)?p=1:p=Mt(p);var I=Pt(u)?vF:HF;return I(u,p)}function q6(u){var p=Pt(u)?yF:VF;return p(u)}function Q6(u){if(u==null)return 0;if(ro(u))return Xp(u)?Ys(u):u.length;var p=_r(u);return p==pe||p==Xe?u.size:m0(u).length}function Z6(u,p,b){var I=Pt(u)?qv:UF;return b&&Ur(u,p,b)&&(p=n),I(u,bt(p,3))}var J6=Lt(function(u,p){if(u==null)return[];var b=p.length;return b>1&&Ur(u,p[0],p[1])?p=[]:b>2&&Ur(p[0],p[1],p[2])&&(p=[p[0]]),Aw(u,br(p,1),[])}),Up=M4||function(){return yr.Date.now()};function ez(u,p){if(typeof p!="function")throw new Uo(a);return u=Mt(u),function(){if(--u<1)return p.apply(this,arguments)}}function RO(u,p,b){return p=b?n:p,p=u&&p==null?u.length:p,ma(u,R,n,n,n,n,p)}function _O(u,p){var b;if(typeof p!="function")throw new Uo(a);return u=Mt(u),function(){return--u>0&&(b=p.apply(this,arguments)),u<=1&&(p=n),b}}var F0=Lt(function(u,p,b){var I=S;if(b.length){var A=Ya(b,ru(F0));I|=w}return ma(u,I,p,b,A)}),TO=Lt(function(u,p,b){var I=S|y;if(b.length){var A=Ya(b,ru(TO));I|=w}return ma(p,I,u,b,A)});function PO(u,p,b){p=b?n:p;var I=ma(u,E,n,n,n,n,n,p);return I.placeholder=PO.placeholder,I}function NO(u,p,b){p=b?n:p;var I=ma(u,O,n,n,n,n,n,p);return I.placeholder=NO.placeholder,I}function MO(u,p,b){var I,A,z,K,J,se,Me=0,Le=!1,Be=!1,Ze=!0;if(typeof u!="function")throw new Uo(a);p=Yo(p)||0,Pn(b)&&(Le=!!b.leading,Be="maxWait"in b,z=Be?er(Yo(b.maxWait)||0,p):z,Ze="trailing"in b?!!b.trailing:Ze);function mt(Hn){var bi=I,ba=A;return I=A=n,Me=Hn,K=u.apply(ba,bi),K}function Ct(Hn){return Me=Hn,J=Yc(kt,p),Le?mt(Hn):K}function At(Hn){var bi=Hn-se,ba=Hn-Me,ZO=p-bi;return Be?Rr(ZO,z-ba):ZO}function xt(Hn){var bi=Hn-se,ba=Hn-Me;return se===n||bi>=p||bi<0||Be&&ba>=z}function kt(){var Hn=Up();if(xt(Hn))return Ut(Hn);J=Yc(kt,At(Hn))}function Ut(Hn){return J=n,Ze&&I?mt(Hn):(I=A=n,K)}function wo(){J!==n&&Vw(J),Me=0,I=se=A=J=n}function Wr(){return J===n?K:Ut(Up())}function Oo(){var Hn=Up(),bi=xt(Hn);if(I=arguments,A=this,se=Hn,bi){if(J===n)return Ct(se);if(Be)return Vw(J),J=Yc(kt,p),mt(se)}return J===n&&(J=Yc(kt,p)),K}return Oo.cancel=wo,Oo.flush=Wr,Oo}var tz=Lt(function(u,p){return xw(u,1,p)}),nz=Lt(function(u,p,b){return xw(u,Yo(p)||0,b)});function rz(u){return ma(u,M)}function Wp(u,p){if(typeof u!="function"||p!=null&&typeof p!="function")throw new Uo(a);var b=function(){var I=arguments,A=p?p.apply(this,I):I[0],z=b.cache;if(z.has(A))return z.get(A);var K=u.apply(this,I);return b.cache=z.set(A,K)||z,K};return b.cache=new(Wp.Cache||fa),b}Wp.Cache=fa;function Kp(u){if(typeof u!="function")throw new Uo(a);return function(){var p=arguments;switch(p.length){case 0:return!u.call(this);case 1:return!u.call(this,p[0]);case 2:return!u.call(this,p[0],p[1]);case 3:return!u.call(this,p[0],p[1],p[2])}return!u.apply(this,p)}}function oz(u){return _O(2,u)}var iz=WF(function(u,p){p=p.length==1&&Pt(p[0])?wn(p[0],Co(bt())):wn(br(p,1),Co(bt()));var b=p.length;return Lt(function(I){for(var A=-1,z=Rr(I.length,b);++A=p}),Ql=Iw(function(){return arguments}())?Iw:function(u){return kn(u)&&on.call(u,"callee")&&!pw.call(u,"callee")},Pt=ye.isArray,Sz=XE?Co(XE):RF;function ro(u){return u!=null&&Gp(u.length)&&!va(u)}function zn(u){return kn(u)&&ro(u)}function Cz(u){return u===!0||u===!1||kn(u)&&Vr(u)==we}var tl=L4||q0,xz=YE?Co(YE):_F;function Ez(u){return kn(u)&&u.nodeType===1&&!qc(u)}function wz(u){if(u==null)return!0;if(ro(u)&&(Pt(u)||typeof u=="string"||typeof u.splice=="function"||tl(u)||ou(u)||Ql(u)))return!u.length;var p=_r(u);if(p==pe||p==Xe)return!u.size;if(Xc(u))return!m0(u).length;for(var b in u)if(on.call(u,b))return!1;return!0}function Oz(u,p){return Wc(u,p)}function $z(u,p,b){b=typeof b=="function"?b:n;var I=b?b(u,p):n;return I===n?Wc(u,p,n,b):!!I}function z0(u){if(!kn(u))return!1;var p=Vr(u);return p==ce||p==Ce||typeof u.message=="string"&&typeof u.name=="string"&&!qc(u)}function Iz(u){return typeof u=="number"&&hw(u)}function va(u){if(!Pn(u))return!1;var p=Vr(u);return p==he||p==ie||p==le||p==_e}function LO(u){return typeof u=="number"&&u==Mt(u)}function Gp(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=H}function Pn(u){var p=typeof u;return u!=null&&(p=="object"||p=="function")}function kn(u){return u!=null&&typeof u=="object"}var DO=qE?Co(qE):PF;function Rz(u,p){return u===p||p0(u,p,T0(p))}function _z(u,p,b){return b=typeof b=="function"?b:n,p0(u,p,T0(p),b)}function Tz(u){return kO(u)&&u!=+u}function Pz(u){if(mB(u))throw new _t(i);return Rw(u)}function Nz(u){return u===null}function Mz(u){return u==null}function kO(u){return typeof u=="number"||kn(u)&&Vr(u)==fe}function qc(u){if(!kn(u)||Vr(u)!=Se)return!1;var p=Sp(u);if(p===null)return!0;var b=on.call(p,"constructor")&&p.constructor;return typeof b=="function"&&b instanceof b&&gp.call(b)==_4}var H0=QE?Co(QE):NF;function Az(u){return LO(u)&&u>=-H&&u<=H}var FO=ZE?Co(ZE):MF;function Xp(u){return typeof u=="string"||!Pt(u)&&kn(u)&&Vr(u)==Qe}function Eo(u){return typeof u=="symbol"||kn(u)&&Vr(u)==ft}var ou=JE?Co(JE):AF;function Lz(u){return u===n}function Dz(u){return kn(u)&&_r(u)==ut}function kz(u){return kn(u)&&Vr(u)==dt}var Fz=Fp(h0),Bz=Fp(function(u,p){return u<=p});function BO(u){if(!u)return[];if(ro(u))return Xp(u)?gi(u):no(u);if(kc&&u[kc])return v4(u[kc]());var p=_r(u),b=p==pe?n0:p==Xe?pp:iu;return b(u)}function ya(u){if(!u)return u===0?u:0;if(u=Yo(u),u===V||u===-V){var p=u<0?-1:1;return p*W}return u===u?u:0}function Mt(u){var p=ya(u),b=p%1;return p===p?b?p-b:p:0}function zO(u){return u?Gl(Mt(u),0,U):0}function Yo(u){if(typeof u=="number")return u;if(Eo(u))return G;if(Pn(u)){var p=typeof u.valueOf=="function"?u.valueOf():u;u=Pn(p)?p+"":p}if(typeof u!="string")return u===0?u:+u;u=iw(u);var b=ho.test(u);return b||vr.test(u)?e4(u.slice(2),b?2:8):Fr.test(u)?G:+u}function HO(u){return Vi(u,oo(u))}function zz(u){return u?Gl(Mt(u),-H,H):u===0?u:0}function rn(u){return u==null?"":xo(u)}var Hz=tu(function(u,p){if(Xc(p)||ro(p)){Vi(p,cr(p),u);return}for(var b in p)on.call(p,b)&&jc(u,b,p[b])}),jO=tu(function(u,p){Vi(p,oo(p),u)}),Yp=tu(function(u,p,b,I){Vi(p,oo(p),u,I)}),jz=tu(function(u,p,b,I){Vi(p,cr(p),u,I)}),Vz=ha(s0);function Uz(u,p){var b=eu(u);return p==null?b:Sw(b,p)}var Wz=Lt(function(u,p){u=pn(u);var b=-1,I=p.length,A=I>2?p[2]:n;for(A&&Ur(p[0],p[1],A)&&(I=1);++b1),z}),Vi(u,R0(u),b),I&&(b=Ko(b,m|h|g,nB));for(var A=p.length;A--;)S0(b,p[A]);return b});function u5(u,p){return UO(u,Kp(bt(p)))}var c5=ha(function(u,p){return u==null?{}:kF(u,p)});function UO(u,p){if(u==null)return{};var b=wn(R0(u),function(I){return[I]});return p=bt(p),Lw(u,b,function(I,A){return p(I,A[0])})}function d5(u,p,b){p=Ja(p,u);var I=-1,A=p.length;for(A||(A=1,u=n);++Ip){var I=u;u=p,p=I}if(b||u%1||p%1){var A=gw();return Rr(u+A*(p-u+J3("1e-"+((A+"").length-1))),p)}return v0(u,p)}var x5=nu(function(u,p,b){return p=p.toLowerCase(),u+(b?GO(p):p)});function GO(u){return U0(rn(u).toLowerCase())}function XO(u){return u=rn(u),u&&u.replace(go,f4).replace(V3,"")}function E5(u,p,b){u=rn(u),p=xo(p);var I=u.length;b=b===n?I:Gl(Mt(b),0,I);var A=b;return b-=p.length,b>=0&&u.slice(b,A)==p}function w5(u){return u=rn(u),u&&$t.test(u)?u.replace(ze,p4):u}function O5(u){return u=rn(u),u&&ht.test(u)?u.replace(qe,"\\$&"):u}var $5=nu(function(u,p,b){return u+(b?"-":"")+p.toLowerCase()}),I5=nu(function(u,p,b){return u+(b?" ":"")+p.toLowerCase()}),R5=Qw("toLowerCase");function _5(u,p,b){u=rn(u),p=Mt(p);var I=p?Ys(u):0;if(!p||I>=p)return u;var A=(p-I)/2;return kp(wp(A),b)+u+kp(Ep(A),b)}function T5(u,p,b){u=rn(u),p=Mt(p);var I=p?Ys(u):0;return p&&I>>0,b?(u=rn(u),u&&(typeof p=="string"||p!=null&&!H0(p))&&(p=xo(p),!p&&Xs(u))?el(gi(u),0,b):u.split(p,b)):[]}var k5=nu(function(u,p,b){return u+(b?" ":"")+U0(p)});function F5(u,p,b){return u=rn(u),b=b==null?0:Gl(Mt(b),0,u.length),p=xo(p),u.slice(b,b+p.length)==p}function B5(u,p,b){var I=B.templateSettings;b&&Ur(u,p,b)&&(p=n),u=rn(u),p=Yp({},p,I,oO);var A=Yp({},p.imports,I.imports,oO),z=cr(A),K=t0(A,z),J,se,Me=0,Le=p.interpolate||Un,Be="__p += '",Ze=r0((p.escape||Un).source+"|"+Le.source+"|"+(Le===Re?gr:Un).source+"|"+(p.evaluate||Un).source+"|$","g"),mt="//# sourceURL="+(on.call(p,"sourceURL")?(p.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++X3+"]")+` +`;u.replace(Ze,function(xt,kt,Ut,wo,Wr,Oo){return Ut||(Ut=wo),Be+=u.slice(Me,Oo).replace(Zr,m4),kt&&(J=!0,Be+=`' + +__e(`+kt+`) + +'`),Wr&&(se=!0,Be+=`'; +`+Wr+`; +__p += '`),Ut&&(Be+=`' + +((__t = (`+Ut+`)) == null ? '' : __t) + +'`),Me=Oo+xt.length,xt}),Be+=`'; +`;var Ct=on.call(p,"variable")&&p.variable;if(!Ct)Be=`with (obj) { +`+Be+` +} +`;else if(Bn.test(Ct))throw new _t(l);Be=(se?Be.replace(ot,""):Be).replace(Ae,"$1").replace(Ke,"$1;"),Be="function("+(Ct||"obj")+`) { +`+(Ct?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(J?", __e = _.escape":"")+(se?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+Be+`return __p +}`;var At=qO(function(){return nn(z,mt+"return "+Be).apply(n,K)});if(At.source=Be,z0(At))throw At;return At}function z5(u){return rn(u).toLowerCase()}function H5(u){return rn(u).toUpperCase()}function j5(u,p,b){if(u=rn(u),u&&(b||p===n))return iw(u);if(!u||!(p=xo(p)))return u;var I=gi(u),A=gi(p),z=aw(I,A),K=lw(I,A)+1;return el(I,z,K).join("")}function V5(u,p,b){if(u=rn(u),u&&(b||p===n))return u.slice(0,uw(u)+1);if(!u||!(p=xo(p)))return u;var I=gi(u),A=lw(I,gi(p))+1;return el(I,0,A).join("")}function U5(u,p,b){if(u=rn(u),u&&(b||p===n))return u.replace(en,"");if(!u||!(p=xo(p)))return u;var I=gi(u),A=aw(I,gi(p));return el(I,A).join("")}function W5(u,p){var b=T,I=D;if(Pn(p)){var A="separator"in p?p.separator:A;b="length"in p?Mt(p.length):b,I="omission"in p?xo(p.omission):I}u=rn(u);var z=u.length;if(Xs(u)){var K=gi(u);z=K.length}if(b>=z)return u;var J=b-Ys(I);if(J<1)return I;var se=K?el(K,0,J).join(""):u.slice(0,J);if(A===n)return se+I;if(K&&(J+=se.length-J),H0(A)){if(u.slice(J).search(A)){var Me,Le=se;for(A.global||(A=r0(A.source,rn(Ln.exec(A))+"g")),A.lastIndex=0;Me=A.exec(Le);)var Be=Me.index;se=se.slice(0,Be===n?J:Be)}}else if(u.indexOf(xo(A),J)!=J){var Ze=se.lastIndexOf(A);Ze>-1&&(se=se.slice(0,Ze))}return se+I}function K5(u){return u=rn(u),u&&at.test(u)?u.replace(Ue,C4):u}var G5=nu(function(u,p,b){return u+(b?" ":"")+p.toUpperCase()}),U0=Qw("toUpperCase");function YO(u,p,b){return u=rn(u),p=b?n:p,p===n?g4(u)?w4(u):l4(u):u.match(p)||[]}var qO=Lt(function(u,p){try{return So(u,n,p)}catch(b){return z0(b)?b:new _t(b)}}),X5=ha(function(u,p){return Vo(p,function(b){b=Ui(b),pa(u,b,F0(u[b],u))}),u});function Y5(u){var p=u==null?0:u.length,b=bt();return u=p?wn(u,function(I){if(typeof I[1]!="function")throw new Uo(a);return[b(I[0]),I[1]]}):[],Lt(function(I){for(var A=-1;++AH)return[];var b=U,I=Rr(u,U);p=bt(p),u-=U;for(var A=e0(I,p);++b0||p<0)?new Ht(b):(u<0?b=b.takeRight(-u):u&&(b=b.drop(u)),p!==n&&(p=Mt(p),b=p<0?b.dropRight(-p):b.take(p-u)),b)},Ht.prototype.takeRightWhile=function(u){return this.reverse().takeWhile(u).reverse()},Ht.prototype.toArray=function(){return this.take(U)},ji(Ht.prototype,function(u,p){var b=/^(?:filter|find|map|reject)|While$/.test(p),I=/^(?:head|last)$/.test(p),A=B[I?"take"+(p=="last"?"Right":""):p],z=I||/^find/.test(p);A&&(B.prototype[p]=function(){var K=this.__wrapped__,J=I?[1]:arguments,se=K instanceof Ht,Me=J[0],Le=se||Pt(K),Be=function(kt){var Ut=A.apply(B,Xa([kt],J));return I&&Ze?Ut[0]:Ut};Le&&b&&typeof Me=="function"&&Me.length!=1&&(se=Le=!1);var Ze=this.__chain__,mt=!!this.__actions__.length,Ct=z&&!Ze,At=se&&!mt;if(!z&&Le){K=At?K:new Ht(this);var xt=u.apply(K,J);return xt.__actions__.push({func:jp,args:[Be],thisArg:n}),new Wo(xt,Ze)}return Ct&&At?u.apply(this,J):(xt=this.thru(Be),Ct?I?xt.value()[0]:xt.value():xt)})}),Vo(["pop","push","shift","sort","splice","unshift"],function(u){var p=mp[u],b=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",I=/^(?:pop|shift)$/.test(u);B.prototype[u]=function(){var A=arguments;if(I&&!this.__chain__){var z=this.value();return p.apply(Pt(z)?z:[],A)}return this[b](function(K){return p.apply(Pt(K)?K:[],A)})}}),ji(Ht.prototype,function(u,p){var b=B[p];if(b){var I=b.name+"";on.call(Js,I)||(Js[I]=[]),Js[I].push({name:p,func:b})}}),Js[Lp(n,y).name]=[{name:"wrapper",func:n}],Ht.prototype.clone=K4,Ht.prototype.reverse=G4,Ht.prototype.value=X4,B.prototype.at=E6,B.prototype.chain=w6,B.prototype.commit=O6,B.prototype.next=$6,B.prototype.plant=R6,B.prototype.reverse=_6,B.prototype.toJSON=B.prototype.valueOf=B.prototype.value=T6,B.prototype.first=B.prototype.head,kc&&(B.prototype[kc]=I6),B},qs=O4();Vl?((Vl.exports=qs)._=qs,Kv._=qs):yr._=qs}).call(Qc)})(nde,Sr);const rde=Sr;var dn=(e=>(e[e.INITIAL=0]="INITIAL",e[e.BUSY=1]="BUSY",e[e.WAIT_INPUT=2]="WAIT_INPUT",e[e.FREE=3]="FREE",e[e.STATIC_CHECK_FAILED=4]="STATIC_CHECK_FAILED",e[e.RUNTIME_ERROR=5]="RUNTIME_ERROR",e[e.MAX_STEP_REACHED=6]="MAX_STEP_REACHED",e[e.EXITED_NORMALLY=7]="EXITED_NORMALLY",e[e.EXITED_ABNORMALLY=8]="EXITED_ABNORMALLY",e))(dn||{});const ode={instructions:[],text:[],memory:new Uint8Array},BT={total:0,stack:0,globalVariable:0},zT={labelTable:{},functionTable:{},globalVariableTable:{},variableTableStack:[],assignCallLValueStack:[]},HT={stepCount:0,state:0,callStack:[],staticErrors:[],runtimeErrors:[]};var ea=(e=>(e[e.SUCCESS=0]="SUCCESS",e[e.ERROR=1]="ERROR",e[e.WARNING=2]="WARNING",e[e.NORMAL=3]="NORMAL",e[e.PROMPT=4]="PROMPT",e[e.ARROW=5]="ARROW",e))(ea||{});const $i={maxExecutionStepCount:{min:0,max:999999999},memorySize:{min:1024,max:16*1024*1024},stackSize:{min:512,max:16*1024*1024-1024}},jT={maxExecutionStepCount:1e6,memorySize:16*1024,stackSize:8*1024};class R3{constructor(){tr(this,"initialRegisters",{eax:0,ebx:0,ecx:0,edx:0,ebp:0,esp:jT.memorySize,eip:0});tr(this,"decoder",new tde);tr(this,"memory",Sr.cloneDeep(ode));tr(this,"registers",Sr.cloneDeep(this.initialRegisters));tr(this,"tables",Sr.cloneDeep(zT));tr(this,"executionStatus",Sr.cloneDeep(HT));tr(this,"peakMemoryUsage",Sr.cloneDeep(BT));tr(this,"options",Sr.cloneDeep(jT));tr(this,"executionStartTime",new Date);tr(this,"writeBuffer",[]);tr(this,"readConsole",t=>Promise.resolve(""));tr(this,"entryFunctionName","main")}setReadConsoleFn(t){this.readConsole=t}getSingleVariableValues(t){const n=[];for(let r=t.address;r=this.memory.text.length?-1:this.memory.text[this.registers.eip].lineNumber}get instructions(){return this.memory.instructions}get globalVariableDetails(){return this.getSingleTableVariableDetails(this.tables.globalVariableTable)}get localVariableDetailsStack(){const t=[];for(let n=0;n(r=Math.max(r,o.min),r=Math.min(r,o.max),r);t.maxExecutionStepCount!==void 0&&(t.maxExecutionStepCount=n(t.maxExecutionStepCount,$i.maxExecutionStepCount),this.options.maxExecutionStepCount=t.maxExecutionStepCount),t.memorySize!==void 0&&(t.memorySize=n(t.memorySize,$i.memorySize),t.memorySize=n(t.memorySize,{min:this.options.stackSize,max:$i.memorySize.max}),this.options.memorySize=t.memorySize,this.initialRegisters.esp=ao(t.memorySize),this.registers.esp=ao(t.memorySize),this.updatePeakMemoryUsage()),t.stackSize!==void 0&&(t.stackSize=n(t.stackSize,$i.stackSize),t.stackSize=n(t.stackSize,{min:$i.stackSize.min,max:this.options.memorySize}),this.options.stackSize=t.stackSize)}reset(){this.memory.text=[],this.memory.memory=new Uint8Array,this.registers=Sr.cloneDeep(this.initialRegisters),this.tables=Sr.cloneDeep(zT),this.executionStatus=Sr.cloneDeep(HT),this.peakMemoryUsage=Sr.cloneDeep(BT),this.writeBuffer=[]}loadNewInstructions(t){this.reset(),this.memory.instructions=t}loadAndDecodeNewInstructions(t){this.loadNewInstructions(t),this.decodeInstructions(!0)}decodeInstructions(t){for(let n=0;nr;case as.GE:return n>=r}}async executeSingleStep(){if((this.executionStatus.state===7||this.executionStatus.state===8)&&this.reset(),this.executionStatus.state===0&&(this.reset(),this.prepareExcution()),this.executionStatus.state!==3)return;if(this.executionStatus.state=1,this.options.maxExecutionStepCount>0&&this.executionStatus.stepCount>=this.options.maxExecutionStepCount){this.executionStatus.state=6,this.writeBuffer.push([{key:"MAX_STEP_REACHED",values:{maxExecutionStepCount:this.options.maxExecutionStepCount},type:1}]);return}if(this.registers.eip>=this.memory.text.length||this.registers.eip<0){this.executionStatus.state=5,this.writeBuffer.push([{key:"RUNTIME_ERROR_PREFIX_NO_LN",type:1},{key:"INSTRUCTION_READ_OUT_OF_BOUND",values:{address:this.registers.eip},type:1}]);return}this.executionStatus.stepCount++;const t=this.memory.text[this.registers.eip];switch(t.type){case Nr.ARG:{const n=this.getSingularValue(t.value.value);if(n===null||!this.pushl(n))return;this.registers.ecx=Ro(this.registers.ecx,4);break}case Nr.ASSIGN:{const n=this.getRValue(t.value.rValue);if(n===null)return;const r=this.getLValueAddress(t.value.lValue);if(r===null||!this.storeMemory32(n,r))return;break}case Nr.ASSIGN_CALL:case Nr.CALL:{const n=t.type===Nr.CALL?t.value.id:t.value.functionId;if(!(n in this.tables.functionTable)){this.writeRuntimeError({key:"FUNCTION_NOT_FOUND",values:{id:n}});return}if(this.registers.ebx=this.registers.esp,!this.pushl(this.registers.ecx)||(this.registers.ecx=0,!this.pushl(this.registers.eip))||!this.pushl(this.registers.ebp))return;this.registers.ebp=this.registers.esp,t.type===Nr.ASSIGN_CALL?this.tables.assignCallLValueStack.push(t.value.lValue):this.tables.assignCallLValueStack.push(null),this.tables.variableTableStack.push({}),this.executionStatus.callStack.push(n),this.registers.eip=this.tables.functionTable[n].addressBefore;break}case Nr.DEC:{if(this.createStackVariable(t.value.id,t.value.size)===null)return;break}case Nr.GOTO:{const n=t.value.id;if(!(n in this.tables.labelTable)){this.writeRuntimeError({key:"LABEL_NOT_FOUND",values:{id:n}});return}this.registers.eip=this.tables.labelTable[n].addressBefore;break}case Nr.IF:{const n=this.getCondValue(t.value.condition);if(n===null)return;const r=t.value.gotoId;if(!(r in this.tables.labelTable)){this.writeRuntimeError({key:"LABEL_NOT_FOUND",values:{id:r}});return}n&&(this.registers.eip=this.tables.labelTable[r].addressBefore);break}case Nr.PARAM:{const n=t.value.id;if(n in this.tables.variableTableStack[this.tables.variableTableStack.length-1]){this.writeRuntimeError({key:"DUPLICATE_PARAM_ID",values:{id:n}});return}if(this.loadMemory32(this.registers.ebx)===null)return;this.tables.variableTableStack[this.tables.variableTableStack.length-1][n]={address:this.registers.ebx,size:4},this.registers.ebx=Ro(this.registers.ebx,4);break}case Nr.RETURN:{const n=this.getSingularValue(t.value.value);if(n===null)return;this.registers.eax=n,this.registers.esp=this.registers.ebp,this.updatePeakMemoryUsage();const r=this.popl();if(r===null)return;this.registers.ebp=r;const o=this.popl();if(o===null)return;this.registers.eip=o;const i=this.popl();if(i===null)return;if(this.registers.esp=Ro(this.registers.esp,i),this.updatePeakMemoryUsage(),this.registers.ecx=0,this.tables.variableTableStack.length===0){this.writeRuntimeError({key:"EMPTY_VARIABLE_TABLE_STACK"});return}if(this.executionStatus.callStack.pop(),this.tables.variableTableStack.pop(),this.registers.eip===this.memory.text.length){this.finalizeExcution();return}const a=this.tables.assignCallLValueStack.pop();if(a!==null){const l=this.getLValueAddress(a);if(l===null||!this.storeMemory32(this.registers.eax,l))return}break}case Nr.READ:{const n=t.value,r=this.getLValueAddress(n.lValue);if(r===null)return;const o=n.lValue.type===$d.ID?n.lValue.id:"*"+n.lValue.id;this.executionStatus.state=2;const i=await this.readConsole([{key:"READ_PROMPT",values:{name:o}}]);this.executionStatus.state=1;const a=parseInt(i);if(isNaN(a)){this.writeRuntimeError({key:"INPUT_INT_ILLEGAL"});return}if(!Number.isSafeInteger(a)){this.writeRuntimeError({key:"INPUT_INT_ABS_TOO_LARGE"});return}if(!this.storeMemory32(ao(a),r))return;break}case Nr.WRITE:{const n=this.getSingularValue(t.value.value);if(n===null)return;this.writeBuffer.push([{key:"WRITE_OUTPUT",values:{value:n},type:3}]);break}}for(this.registers.eip=Ro(this.registers.eip,1);this.registers.eip=0&&this.memory.text[this.registers.eip].type===Nr.GLOBAL_DEC;)this.registers.eip=Ro(this.registers.eip,1);this.executionStatus.state=3}async execute(){for(;await this.executeSingleStep(),this.executionStatus.state===3;);}}function ide(e,t=18){let n=0,r=0;for(let o=0;ot){n=o;break}return r<=t?e:e.substring(0,n)+"..."}function ade(e){for(let t=1;;t++){const n=`Untitled-${t}`;if(e.every(r=>r!==n))return n}}function _3(e){return e.replace(/\r/g,"").split(` +`)}function Ob(e){return e/1024}function lde(e,t){return e",READ_INPUT:"{value}",PROGRAM_EXITED:"程序执行结束,返回值为{returnValue}。",EXECUTION_STEP_COUNT_TIME:"总执行步数:{stepCount, number};总执行耗时:{time, number}ms"},cde={APP_TITLE:"IR Virtual Machine",ADD:"New",IMPORT:"Import",DEMOS:"Demos",DEMO_SOURCES:"Sources",SAVE:"Save",THEME:"Theme",ABOUT:"About",CLOSE:"Close",CONFIRM_UNSAVED_CLOSE:"Save changes to {name} before close?",SAVE_CLOSE:"Save&Close",UNSAVE_CLOSE:"Close",OK:"OK",CANCEL:"Cancel",EMPTY_PLACEHOLDER:"No VM open. Try adding or importing an IR file! :)",EMPTY_PLACEHOLDER_SUPPORT_DRAG:"You may also drag multiple .ir files inside.",FETCH_FAILED:"fetch() for {url} failed",NOT_AN_IR_FILE:"{fileName} is not an ir file",IR_IMPORT_FAILED:"Failed to import {fileName}",RUN:"Run",RUN_STEP:"Step",RESET:"Reset",CLEAR_CONSOLE:"Clear",STEP_COUNT:"Step Count: ",STEP_COUNT_NUMBER:"{stepCount, number}",STATE:"VM State: ",STATE_INITIAL:"Initial",STATE_BUSY:"Busy",STATE_WAIT_INPUT:"Awaiting Input",STATE_FREE:"Free",STATE_STATIC_CHECK_FAILED:"IR Static Check Error",STATE_RUNTIME_ERROR:"Runtime Error",STATE_MAX_STEP_REACHED:"Max Step Count Reached",STATE_EXITED_NORMALLY:"Exited Normally(Return value 0)",STATE_EXITED_ABNORMALLY:"Exited Abnormally(Return value not 0)",MAX_EXECUTION_STEP_COUNT:"Max Steps",SET_0_MEANS_NO_STEP_LIMIT:"No step limit if set to 0",MEMORY_SIZE:"Memory Size/B",STACK_SIZE:"Stack Size/B",TOTAL_MEMORY_USAGE:"Total Memory Usage: ",STACK_MEMORY_USAGE:"Stack Memory Usage: ",GLOBAL_VARIABLE_MEMORY_USAGE:"GlobalVar Memory Usage: ",PEAK_MEMORY_USAGE:"Peak Usage: ",PERCENTAGE_USAGE:"{percentage, number, ::.0}%",B_USAGE:"{used}B/{total}B",KB_USAGE:"{used, number, ::.0}KB/{total, number, ::.0}KB",BYTES:"{bytes}B",KB:"{kb, number, ::.0}KB",GLOBAL_VARIABLE_TABLE:"Global Variable Table",LOCAL_VARIABLE_TABLE:"Local Variable Table",VARIABLE_ID:"ID",ADDRESS:"Address",SIZE:"Size",VALUES:"Value",EMPTY_VATIABLE_TABLE:"(Empty)",CALL_STACK_DEPTH:"Call stack depth {depth}",STATIC_ERROR_PREFIX:"Static Check Error: ",DECODE_ERROR_PREFIX:"IR Decoding Error(Line {lineNumber}): ",UNRECOGNIZED_INSTRUCTION:"Unrecognized IR instruction",ILLEGAL_INSTRUCTION_FORMAT:"Illegal IR format",FUNCTION_ILLEGAL_ID:"FUNCTION id illegal",ASSIGN_ILLEGAL_LEFT:"Illegal left hand side of assignment",ASSIGN_ILLEGAL_RIGHT:"Illegal right hand side of assignment",ASSIGN_RIGHT_IMM_TOO_LARGE:"Right hand side immediate number of assignment too large",ASSIGN_ILLEGAL_RIGHT_OPERATOR:"Illegal math operator on RHS of assignment",ASSIGN_ILLEGAL_RIGHT_OPERAND1:"Illegal first Singular operand on RHS of assignment",ASSIGN_RIGHT_OPERAND1_IMM_TOO_LARGE:"First immediate number operand on RHS of assignment too large",ASSIGN_ILLEGAL_RIGHT_OPERAND2:"Illegal second Singular operand on RHS of assignment",ASSIGN_RIGHT_OPERAND2_IMM_TOO_LARGE:"Second immediate number operand on RHS of assignment too large",DEC_ILLEGAL_ID:"DEC's id illegal",DEC_ILLEGAL_SIZE_FORMAT:"DEC's size format illegal",DEC_SIZE_TOO_LARGE:"DEC's size too large",DEC_SIZE_NOT_4_MULTIPLE:"DEC's size not a multiple of 4",GLOBAL_DEC_ILLEGAL_ID:"GLOBAL_DEC's id illegal",GLOBAL_DEC_ILLEGAL_SIZE_FORMAT:"GLOBAL_DEC's size format illegal",GLOBAL_DEC_SIZE_TOO_LARGE:"GLOBAL_DEC's size too large",GLOBAL_DEC_SIZE_NOT_4_MULTIPLE:"GLOBAL_DEC's size not a multiple of 4",LABEL_ILLEGAL_ID:"LABEL's id illegal",GOTO_ILLEGAL_ID:"GOTO's id illegal",IF_ILLEGAL_COND_OPERATOR:"IF's relop illegal",IF_ILLEGAL_COND_OPERAND1:"IF's first Singular operand in condition illegal",IF_COND_OPERAND1_IMM_TOO_LARGE:"IF's first immediate number operand in condition too large",IF_ILLEGAL_COND_OPERAND2:"IF's second Singular operand in condition illegal",IF_COND_OPERAND2_IMM_TOO_LARGE:"IF's second immediate number operand in condition too large",IF_ILLEGAL_GOTO_ID:"IF's GOTO id illegal",ARG_ILLEGAL:"ARG's Singular arg illegal",ARG_IMM_TOO_LARGE:"ARG's immediate number arg too large",CALL_ILLEGAL_ID:"CALL's function id illegal",PARAM_ILLEGAL_ID:"PARAM's param id illegal",RETURN_ILLEGAL:"RETURN's Singular return value illegal",RETURN_IMM_TOO_LARGE:"RETURN's immediate number return value too large",READ_ILLEGAL:"Illegal LValue for READ",WRITE_ILLEGAL:"Illegal Singular for WRITE",WRITE_IMM_TOO_LARGE:"Immediate number for WRITE too large",NO_MAIN_FUNCTION:"Function main is not defined",RUNTIME_ERROR_PREFIX:"Runtime Error(Line{lineNumber}): ",RUNTIME_ERROR_PREFIX_NO_LN:"Runtime Error: ",GLOBAL_VARIABLE_SEGMENT_OVERFLOW:"Global variable segment overflow",STACK_OVERFLOW:"Stack overflow",VARIABLE_NOT_FOUND:"Can't find variable {id}",FUNCTION_NOT_FOUND:"Can't find function {id}",LABEL_NOT_FOUND:"Can't find label {id}",INSTRUCTION_READ_OUT_OF_BOUND:"Reading instruction from {address} is out of bound",MEMORY_READ_OUT_OF_BOUND:"Reading 4 bytes from {address} is out of bound",MEMORY_WRITE_OUT_OF_BOUND:"Writing 4 bytes to {address} is out of bound",EMPTY_VARIABLE_TABLE_STACK:"Empty local variable stack",DUPLICATE_DEC_ID:"DEC's variable id already declared",DUPLICATE_GLOBAL_DEC_ID:"GLOBAL_DEC's global variable id already declared",DUPLICATE_PARAM_ID:"PARAM's param id already declared",DIVIDE_BY_ZERO:"Cannot divide by 0",MAX_STEP_REACHED:"Maximum execution step count reached({maxExecutionStepCount, number})",INPUT_INT_ILLEGAL:"Illegal input integer",INPUT_INT_ABS_TOO_LARGE:"Absolute value of input integer too large",WRITE_OUTPUT:"{value}",READ_PROMPT:"Please enter a value for {name}:",CONSOLE_ARROW:">",READ_INPUT:"{value}",PROGRAM_EXITED:"Program exited with return value {returnValue}.",EXECUTION_STEP_COUNT_TIME:"Execution step count: {stepCount, number}; Execution time: {time, number}ms"},fh=[{name:"简体中文",locale:ude},{name:"English",locale:cde}],dde={currentLocale:fh[0].locale},T3=VE({name:"locale",initialState:dde,reducers:{setLocale:(e,t)=>{e.currentLocale=t.payload}}}),{setLocale:fde}=T3.actions,pde=T3.reducer,m1=[{name:"Light",className:"themeLight"}],mde={currentClassName:m1[0].className},P3=VE({name:"theme",initialState:mde,reducers:{setTheme:(e,t)=>{e.currentClassName=t.payload}}}),{setTheme:hde}=P3.actions,gde=P3.reducer,VT="demos.json",N3=(e,t)=>{const n=URL.createObjectURL(new Blob([t],{type:"text/plain"})),r=document.createElement("a");r.href=n,r.download=e.endsWith(".ir")?e:`${e}.ir`,r.click(),URL.revokeObjectURL(n)},M3=(e,t,n,r)=>{const o=new R3;r!==void 0&&o.configure(r),nr.add(o);const i=_3(n);nr.at(nr.length-1).loadAndDecodeNewInstructions(i),e(w3({name:t,irPath:"",isIrChanged:!1,irString:n,state:o.state,globalVariableDetails:o.globalVariableDetails,localVariableDetailsStack:o.localVariableDetailsStack,options:o.currentOptions,stepCount:o.stepCount,memoryUsage:o.memoryUsage,peakMemoryUsage:o.currentPeakMemoryUsage,consoleOutputs:[],consoleInputPrompt:[],consoleInput:"",staticErrors:o.staticErrors,runtimeErrors:o.runtimeErrors,currentLineNumber:o.currentLineNumber,shouldIndicateCurrentLineNumber:!1,localVariableTablePageIndex:1}))},A3=(e,t,n)=>{if(!n.name.endsWith(".ir")){cg.error(t.formatMessage({id:"NOT_AN_IR_FILE"},{fileName:n.name}));return}const r=new FileReader;r.readAsText(n),r.onload=o=>{if(o.target===null){cg.error(t.formatMessage({id:"IR_IMPORT_FAILED"},{fileName:n.name})),document.getElementById("inImportIr").value="";return}M3(e,n.name,o.target.result)}},vde=e=>{const t=mo(),n=Ic(),r=pc(f=>ade(f.vm.vmPageStates.map(m=>m.name))),[o,i]=c.useState(!1),[a,l]=c.useState(!1),[s,d]=c.useState([]);return c.useEffect(()=>{a&&fetch(VT).then(f=>f.ok?f.text():Promise.reject()).catch(()=>{cg.error(t.formatMessage({id:"FETCH_FAILED"},{url:VT}))}).then(f=>{if(!f)return;const m=JSON.parse(f);d(m.map((h,g)=>({key:`g${g}`,icon:me(fG,{}),label:`${h.groupName} (${h.demos.length})`,children:[{key:`g${g}i`,label:me(lh,{itemLayout:"horizontal",size:"small",dataSource:h.demos,renderItem:v=>me(lh.Item,{onClick:()=>{fetch(v.irUrl).then(C=>C.ok?C.text():Promise.reject()).catch(()=>{cg.error(t.formatMessage({id:"FETCH_FAILED"},{url:v.irUrl}))}).then(C=>{C&&(M3(n,v.irUrl.split("/").at(-1),C,v.vmOptions),l(!1))})},children:me(lh.Item.Meta,{avatar:me(dne,{icon:me(JI,{})}),title:v.name,description:v.remark})})})}]})))})},[a]),wt("aside",{className:lu.asideSideBarWrapper,children:[wt("div",{className:lu.divIconWrapperUpper,children:[me(es,{icon:me(EK,{}),label:t.formatMessage({id:"ADD"}),onClick:()=>{const f=new R3;nr.add(f),n(w3({name:r,irPath:"",isIrChanged:!1,irString:"",state:f.state,globalVariableDetails:f.globalVariableDetails,localVariableDetailsStack:f.localVariableDetailsStack,options:f.currentOptions,stepCount:f.stepCount,memoryUsage:f.memoryUsage,peakMemoryUsage:f.currentPeakMemoryUsage,consoleOutputs:[],consoleInputPrompt:[],consoleInput:"",staticErrors:f.staticErrors,runtimeErrors:f.runtimeErrors,currentLineNumber:f.currentLineNumber,shouldIndicateCurrentLineNumber:!1,localVariableTablePageIndex:1}))}}),me(es,{icon:me(JI,{}),label:t.formatMessage({id:"DEMOS"}),onClick:()=>l(!0)}),me(es,{icon:me(qM,{}),label:t.formatMessage({id:"IMPORT"}),onClick:()=>{var f;(f=document.getElementById("inImportIr"))==null||f.click()}}),me("input",{id:"inImportIr",style:{display:"none"},type:"file",accept:".ir",multiple:!0,onChange:f=>{if(!(f.currentTarget===null||f.currentTarget.files===null||f.currentTarget.files.length===0)){for(const m of f.target.files)A3(n,t,m);document.getElementById("inImportIr").value=""}}}),me(es,{icon:me(lG,{}),label:t.formatMessage({id:"SAVE"}),onClick:()=>{e.vm!==null&&(N3(e.vm.name,e.vm.irString),n(O3(!1)))}})]}),wt("div",{className:lu.divIconWrapperLower,children:[me(Tf,{menu:{items:fh.map((f,m)=>({key:m,label:f.name})),onClick:f=>{n(fde(fh[parseInt(f.key)].locale)),document.title=fh[parseInt(f.key)].locale.APP_TITLE}},placement:"topLeft",children:me(WC,{children:me(es,{icon:me(yG,{}),label:"Lang"})})}),me(Tf,{menu:{items:m1.map((f,m)=>({key:m,label:f.name})),onClick:f=>{n(hde(m1[parseInt(f.key)].className))}},placement:"topLeft",children:me(WC,{children:me(es,{icon:me(UM,{}),label:t.formatMessage({id:"THEME"})})})}),me(es,{icon:me(rA,{}),label:t.formatMessage({id:"ABOUT"}),onClick:()=>i(!0)})]}),me(QC,{open:o,title:t.formatMessage({id:"ABOUT"}),centered:!0,closable:!1,onCancel:()=>i(!1),footer:[me(oi,{onClick:()=>i(!1),children:t.formatMessage({id:"OK"})})],children:wt("article",{className:lu.articleAbout,children:[me("p",{className:"title",children:"IR虚拟机💎IR Virtual Machine"}),wt("p",{children:[me("div",{children:"哈尔滨工业大学 120L021615 崔子健"}),me("div",{children:"Ernest Cui, Harbin Institute of Technology"})]}),me("p",{children:"April 🌼 2023"}),wt("p",{children:[me("div",{children:"🎉 感谢陈鄞、单丽莉老师的大力支持"}),me("div",{children:"㊙️ 虚拟机的说明请见仓库首页的文档"})]}),wt("p",{className:"info",children:[me("a",{href:"https://ernestthepoet.github.io/ir-virtual-machine/",children:"Github Pages镜像"}),"·",me("a",{href:"https://ecui.gitee.io/ir-virtual-machine/",children:"Gitee Pages镜像"})]}),wt("p",{className:"info",children:[me("a",{href:"https://github.com/ErnestThePoet/ir-virtual-machine",children:"Github仓库"}),"·",me("a",{href:"https://gitee.com/ecui/ir-virtual-machine",children:"Gitee仓库"}),"·",me("a",{href:"mailto: ecuiships@126.com",children:"ecuiships@126.com"})]})]})}),me(QC,{open:a,title:wt("span",{children:[t.formatMessage({id:"DEMOS"}),wt("a",{className:lu.aDemoSources,href:"https://github.com/ErnestThePoet/ir-virtual-machine/tree/master/public/demos",children:["(",t.formatMessage({id:"DEMO_SOURCES"}),")"]})]}),centered:!0,closable:!0,onCancel:()=>l(!1),footer:!0,children:me(vE,{className:lu.menuDemos,mode:"inline",selectable:!1,items:s})})]})},yde="_navTabBarWrapper_1yoxc_1",bde={navTabBarWrapper:yde},Sde="_divTabBarItemWrapperBase_11raq_1",Cde="_divTabBarItemWrapperActive_11raq_1",xde="_divTabBarItemWrapperInactive_11raq_1",Ede="_divIconTitleWrapper_11raq_23",wde="_divCloseWrapper_11raq_28",Ode="_divCloseWrapperChanged_11raq_28",$de="_iconVm_11raq_53",Ide="_iconClose_11raq_60",Rde="_lblTitle_11raq_65",_de="_iconDot_11raq_71",Tde="_inVmRename_11raq_78",Ki={divTabBarItemWrapperBase:Sde,divTabBarItemWrapperActive:Cde,divTabBarItemWrapperInactive:xde,divIconTitleWrapper:Ede,divCloseWrapper:wde,divCloseWrapperChanged:Ode,iconVm:$de,iconClose:Ide,lblTitle:Rde,iconDot:_de,inVmRename:Tde},Pde=e=>wt("svg",{...e,version:"1.1",id:"layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 50 50",enableBackground:"new 0 0 50 50",children:[wt("g",{children:[me("path",{d:"M14.16,36.09L7.2,13.91h2.06l6.27,20.5h0.19l6.27-20.5h2.06l-6.95,22.19H14.16z"}),me("path",{d:`M27.25,36.09V13.91h1.94v22.19H27.25z M33.31,26.2l-3.89-10.06h-0.55v-2.23h1.55l3.89,10.17h0.08l0.23,2.13H33.31z\r + M34.06,26.2l0.3-2.13h0.08l3.89-10.17h1.73v2.23h-0.73L35.44,26.2H34.06z M39.56,36.09V13.91h1.94v22.19H39.56z`})]}),me("g",{children:me("path",{fill:"none",strokeWidth:"2",strokeMiterlimit:"10",d:`M1.5,36.5c0,3.87,3.13,7,7,7h33c3.87,0,7-3.13,7-7\r + v-22c0-3.87-3.13-7-7-7h-33c-3.87,0-7,3.13-7,7V36.5z`})}),me("g",{}),me("g",{}),me("g",{}),me("g",{}),me("g",{}),me("g",{}),me("g",{}),me("g",{}),me("g",{}),me("g",{}),me("g",{})]}),Nde=e=>wt("svg",{...e,version:"1.1",id:"layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 50 50",enableBackground:"new 0 0 50 50",children:[me("circle",{cx:"25",cy:"25",r:"25"}),me("g",{}),me("g",{}),me("g",{}),me("g",{}),me("g",{}),me("g",{}),me("g",{}),me("g",{}),me("g",{}),me("g",{}),me("g",{})]}),Mde=e=>{const t=mo(),[n,r]=c.useState(!1),[o,i]=c.useState(e.title);return c.useEffect(()=>{if(n){const a=document.getElementById("inVmRename");a!==null&&(a.focus(),a.select())}},[n]),wt("div",{className:te({[Ki.divTabBarItemWrapperActive]:e.isActive,[Ki.divTabBarItemWrapperInactive]:!e.isActive}),onClick:a=>{a.stopPropagation(),e.onClick()},title:e.title,onDoubleClick:()=>{i(e.title),r(!0)},children:[wt("div",{className:Ki.divIconTitleWrapper,children:[me(Pde,{className:Ki.iconVm}),n?me("input",{id:"inVmRename",className:Ki.inVmRename,value:o,onChange:a=>i(a.currentTarget.value),onKeyDown:a=>{a.key==="Enter"&&(e.onRename(o),r(!1))},onBlur:()=>{e.onRename(o),r(!1)}}):me("label",{className:Ki.lblTitle,children:ide(e.title)})]}),wt("div",{className:te({[Ki.divCloseWrapperChanged]:e.isChanged,[Ki.divCloseWrapper]:!e.isChanged}),title:t.formatMessage({id:"CLOSE"}),onClick:a=>{a.stopPropagation(),e.onCloseClick()},children:[e.isChanged&&me(Nde,{className:Ki.iconDot}),me(Vf,{className:Ki.iconClose})]})]})},Ade=()=>{var s;const e=mo(),t=pc(d=>d.vm),n=Ic(),[r,o]=c.useState(!1),[i,a]=c.useState(0),l=d=>{n(Fce(d)),nr.delete(d)};return wt("nav",{className:bde.navTabBarWrapper,children:[t.vmPageStates.map((d,f)=>me(Mde,{title:d.name,isActive:f===t.activeVmIndex,isChanged:d.isIrChanged,onClick:()=>n(Dce(f)),onCloseClick:()=>{if(!d.isIrChanged){l(f);return}a(f),o(!0)},onRename:m=>{m!==""&&n(kce({index:f,newName:m}))}},f)),me(QC,{open:r,title:e.formatMessage({id:"CONFIRM_UNSAVED_CLOSE"},{name:(s=t.vmPageStates[i])==null?void 0:s.name}),onCancel:()=>o(!1),footer:[me(oi,{onClick:()=>o(!1),children:e.formatMessage({id:"CANCEL"})}),me(oi,{danger:!0,onClick:()=>{l(i),o(!1)},children:e.formatMessage({id:"UNSAVE_CLOSE"})}),me(oi,{type:"primary",onClick:()=>{N3(t.vmPageStates[t.activeVmIndex].name,t.vmPageStates[t.activeVmIndex].irString),l(i),o(!1)},children:e.formatMessage({id:"SAVE_CLOSE"})})]})]})},Lde="_divEmptyHolder_1bjxs_9",Dde="_divEmptyHolderText_1bjxs_20",UT={divEmptyHolder:Lde,divEmptyHolderText:Dde,"scale-in":"_scale-in_1bjxs_1"},kde=()=>{const e=mo();return me("div",{className:UT.divEmptyHolder,children:wt("div",{className:UT.divEmptyHolderText,children:[me("span",{children:e.formatMessage({id:"EMPTY_PLACEHOLDER"})}),!sde()&&me("span",{children:e.formatMessage({id:"EMPTY_PLACEHOLDER_SUPPORT_DRAG"})})]})})};const Fde="_divMonacoEditorWrapper_1a3zn_1",Bde={divMonacoEditorWrapper:Fde};function zde(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WT(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 KT(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function jde(e,t){if(e==null)return{};var n=Hde(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 Vde(e,t){return Ude(e)||Wde(e,t)||Kde(e,t)||Gde()}function Ude(e){if(Array.isArray(e))return e}function Wde(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,o=!1,i=void 0;try{for(var a=e[Symbol.iterator](),l;!(r=(l=a.next()).done)&&(n.push(l.value),!(t&&n.length===t));r=!0);}catch(s){o=!0,i=s}finally{try{!r&&a.return!=null&&a.return()}finally{if(o)throw i}}return n}}function Kde(e,t){if(e){if(typeof e=="string")return GT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GT(e,t)}}function GT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?e.apply(this,o):function(){for(var a=arguments.length,l=new Array(a),s=0;s1&&arguments[1]!==void 0?arguments[1]:{};Lm.initial(e),Lm.handler(t);var n={current:e},r=Id(lfe)(n,t),o=Id(afe)(n),i=Id(Lm.changes)(e),a=Id(ife)(n);function l(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(f){return f};return Lm.selector(d),d(n.current)}function s(d){Yde(r,o,i,a)(d)}return[l,s]}function ife(e,t){return Lf(t)?t(e.current):t}function afe(e,t){return e.current=YT(YT({},e.current),t),t}function lfe(e,t,n){return Lf(t)?t(e.current):Object.keys(n).forEach(function(r){var o;return(o=t[r])===null||o===void 0?void 0:o.call(t,e.current[r])}),n}var sfe={create:ofe},ufe={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};function cfe(e){return function t(){for(var n=this,r=arguments.length,o=new Array(r),i=0;i=e.length?e.apply(this,o):function(){for(var a=arguments.length,l=new Array(a),s=0;s{r.current=!1}:e,t)}var Po=Lfe;function Yd(){}function Vu(e,t,n,r){return Dfe(e,r)||kfe(e,t,n,r)}function Dfe(e,t){return e.editor.getModel(j3(e,t))}function kfe(e,t,n,r){return e.editor.createModel(t,n,r?j3(e,r):void 0)}function j3(e,t){return e.Uri.parse(t)}function Ffe({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:o,originalModelPath:i,modifiedModelPath:a,keepCurrentOriginalModel:l=!1,keepCurrentModifiedModel:s=!1,theme:d="light",loading:f="Loading...",options:m={},height:h="100%",width:g="100%",className:v,wrapperProps:C={},beforeMount:S=Yd,onMount:y=Yd}){let[x,E]=c.useState(!1),[O,w]=c.useState(!0),$=c.useRef(null),R=c.useRef(null),_=c.useRef(null),M=c.useRef(y),T=c.useRef(S),D=c.useRef(!1);H3(()=>{let k=B3.init();return k.then(F=>(R.current=F)&&w(!1)).catch(F=>(F==null?void 0:F.type)!=="cancelation"&&console.error("Monaco initialization: error:",F)),()=>$.current?L():k.cancel()}),Po(()=>{if($.current&&R.current){let k=$.current.getOriginalEditor(),F=Vu(R.current,e||"",r||n||"text",i||"");F!==k.getModel()&&k.setModel(F)}},[i],x),Po(()=>{if($.current&&R.current){let k=$.current.getModifiedEditor(),F=Vu(R.current,t||"",o||n||"text",a||"");F!==k.getModel()&&k.setModel(F)}},[a],x),Po(()=>{let k=$.current.getModifiedEditor();k.getOption(R.current.editor.EditorOption.readOnly)?k.setValue(t||""):t!==k.getValue()&&(k.executeEdits("",[{range:k.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),k.pushUndoStop())},[t],x),Po(()=>{var k,F;(F=(k=$.current)==null?void 0:k.getModel())==null||F.original.setValue(e||"")},[e],x),Po(()=>{let{original:k,modified:F}=$.current.getModel();R.current.editor.setModelLanguage(k,r||n||"text"),R.current.editor.setModelLanguage(F,o||n||"text")},[n,r,o],x),Po(()=>{var k;(k=R.current)==null||k.editor.setTheme(d)},[d],x),Po(()=>{var k;(k=$.current)==null||k.updateOptions(m)},[m],x);let N=c.useCallback(()=>{var V;if(!R.current)return;T.current(R.current);let k=Vu(R.current,e||"",r||n||"text",i||""),F=Vu(R.current,t||"",o||n||"text",a||"");(V=$.current)==null||V.setModel({original:k,modified:F})},[n,t,o,e,r,i,a]),P=c.useCallback(()=>{var k;!D.current&&_.current&&($.current=R.current.editor.createDiffEditor(_.current,{automaticLayout:!0,...m}),N(),(k=R.current)==null||k.editor.setTheme(d),E(!0),D.current=!0)},[m,d,N]);c.useEffect(()=>{x&&M.current($.current,R.current)},[x]),c.useEffect(()=>{!O&&!x&&P()},[O,x,P]);function L(){var F,V,H,W;let k=(F=$.current)==null?void 0:F.getModel();l||((V=k==null?void 0:k.original)==null||V.dispose()),s||((H=k==null?void 0:k.modified)==null||H.dispose()),(W=$.current)==null||W.dispose()}return ge.createElement(z3,{width:g,height:h,isEditorReady:x,loading:f,_ref:_,className:v,wrapperProps:C})}var Bfe=Ffe;c.memo(Bfe);function zfe(e){let t=c.useRef();return c.useEffect(()=>{t.current=e},[e]),t.current}var Hfe=zfe,Dm=new Map;function jfe({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:o,path:i,theme:a="light",line:l,loading:s="Loading...",options:d={},overrideServices:f={},saveViewState:m=!0,keepCurrentModel:h=!1,width:g="100%",height:v="100%",className:C,wrapperProps:S={},beforeMount:y=Yd,onMount:x=Yd,onChange:E,onValidate:O=Yd}){let[w,$]=c.useState(!1),[R,_]=c.useState(!0),M=c.useRef(null),T=c.useRef(null),D=c.useRef(null),N=c.useRef(x),P=c.useRef(y),L=c.useRef(),k=c.useRef(r),F=Hfe(i),V=c.useRef(!1),H=c.useRef(!1);H3(()=>{let U=B3.init();return U.then(X=>(M.current=X)&&_(!1)).catch(X=>(X==null?void 0:X.type)!=="cancelation"&&console.error("Monaco initialization: error:",X)),()=>T.current?G():U.cancel()}),Po(()=>{var X,Q,Y,q;let U=Vu(M.current,e||r||"",t||o||"",i||n||"");U!==((X=T.current)==null?void 0:X.getModel())&&(m&&Dm.set(F,(Q=T.current)==null?void 0:Q.saveViewState()),(Y=T.current)==null||Y.setModel(U),m&&((q=T.current)==null||q.restoreViewState(Dm.get(i))))},[i],w),Po(()=>{var U;(U=T.current)==null||U.updateOptions(d)},[d],w),Po(()=>{!T.current||r===void 0||(T.current.getOption(M.current.editor.EditorOption.readOnly)?T.current.setValue(r):r!==T.current.getValue()&&(H.current=!0,T.current.executeEdits("",[{range:T.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),T.current.pushUndoStop(),H.current=!1))},[r],w),Po(()=>{var X,Q;let U=(X=T.current)==null?void 0:X.getModel();U&&o&&((Q=M.current)==null||Q.editor.setModelLanguage(U,o))},[o],w),Po(()=>{var U;l!==void 0&&((U=T.current)==null||U.revealLine(l))},[l],w),Po(()=>{var U;(U=M.current)==null||U.editor.setTheme(a)},[a],w);let W=c.useCallback(()=>{var U;if(!(!D.current||!M.current)&&!V.current){P.current(M.current);let X=i||n,Q=Vu(M.current,r||e||"",t||o||"",X||"");T.current=(U=M.current)==null?void 0:U.editor.create(D.current,{model:Q,automaticLayout:!0,...d},f),m&&T.current.restoreViewState(Dm.get(X)),M.current.editor.setTheme(a),l!==void 0&&T.current.revealLine(l),$(!0),V.current=!0}},[e,t,n,r,o,i,d,f,m,a,l]);c.useEffect(()=>{w&&N.current(T.current,M.current)},[w]),c.useEffect(()=>{!R&&!w&&W()},[R,w,W]),k.current=r,c.useEffect(()=>{var U,X;w&&E&&((U=L.current)==null||U.dispose(),L.current=(X=T.current)==null?void 0:X.onDidChangeModelContent(Q=>{H.current||E(T.current.getValue(),Q)}))},[w,E]),c.useEffect(()=>{if(w){let U=M.current.editor.onDidChangeMarkers(X=>{var Y;let Q=(Y=T.current.getModel())==null?void 0:Y.uri;if(Q&&X.find(q=>q.path===Q.path)){let q=M.current.editor.getModelMarkers({resource:Q});O==null||O(q)}});return()=>{U==null||U.dispose()}}return()=>{}},[w,O]);function G(){var U,X;(U=L.current)==null||U.dispose(),h?m&&Dm.set(i,T.current.saveViewState()):(X=T.current.getModel())==null||X.dispose(),T.current.dispose()}return ge.createElement(z3,{width:g,height:v,isEditorReady:w,loading:s,_ref:D,className:C,wrapperProps:S})}var Vfe=jfe,Ufe=c.memo(Vfe);let QT=!1;const _b="ir";function Wfe(e){if(QT)return;e.languages.register({id:_b}),e.editor.defineTheme("ir-theme",{base:"vs",inherit:!0,rules:[{token:"function",foreground:"#74531f"},{token:"number.size",foreground:"#0097ff"}],colors:{}});const t=["FUNCTION","DEC","GLOBAL_DEC","LABEL","GOTO","IF","ARG","PARAM","CALL","RETURN","READ","WRITE"];e.languages.setMonarchTokensProvider(_b,{keywords:t,identifier:/[a-zA-Z_]\w*/,whitespace:/[ \t\r\n]+/,defaultToken:"source",tokenizer:{root:[[/#-?\d+/,"number"],[/\d+/,"number.size"],[/(:=)|(\+)|(-)|(\*)|(\/)|(==)|(!=)|(<=)|(<)|(>=)|(>)|(&)/,"operators"],[/:/,"delimiter"],[/;.*/,"comment"],[/@whitespace/,"white"],[/(FUNCTION)(@whitespace)(@identifier)/,["keyword","white","function"]],[/(CALL)(@whitespace)(@identifier)/,["keyword","white","function"]],[/@identifier/,{cases:{"@keywords":"keyword","@default":"identifier"}}]]}}),e.languages.registerCompletionItemProvider(_b,{provideCompletionItems:(n,r)=>{const o=n.getWordUntilPosition(r);return{suggestions:t.map(i=>({label:i,kind:e.languages.CompletionItemKind.Keyword,insertText:i,range:{startLineNumber:r.lineNumber,endLineNumber:r.lineNumber,startColumn:o.startColumn,endColumn:o.endColumn}}))}}}),QT=!0}const Kfe=e=>{const t=c.useRef();return rde.isEqual(t.current,e)||(t.current=e),t.current},h1=(e,t)=>{c.useEffect(e,t==null?void 0:t.map(Kfe))},ZT=100,Gfe=e=>{const t=mo(),n=c.useRef(null),r=c.useRef(null),o=c.useRef(null),i=c.useRef(null),a=c.useRef(null),l=c.useRef([]),s=Ic(),d=nr.at(e.vmIndex);h1(()=>{n.current!==null&&r.current!==null&&r.current.getModel()!==null&&n.current.editor.setModelMarkers(r.current.getModel(),"IR Decoder",e.vm.staticErrors.map(m=>({startLineNumber:m.startLineNumber,endLineNumber:m.endLineNumber,startColumn:m.startColumn,endColumn:m.endColumn+1,message:t.formatMessage({id:m.message.key},m.message.values),severity:n.current.MarkerSeverity.Error})))},[e.vm.staticErrors,t.messages]),h1(()=>{o.current!==null&&o.current.clear(),n.current!==null&&r.current!==null&&r.current.getModel()!==null&&(r.current.revealLineInCenterIfOutsideViewport(e.vm.currentLineNumber),o.current=r.current.createDecorationsCollection(e.vm.runtimeErrors.map(m=>({range:new n.current.Range(m.startLineNumber,m.startColumn,m.endLineNumber,m.endColumn),options:{isWholeLine:!0,className:"rangeError",marginClassName:"rangeError",hoverMessage:{value:t.formatMessage({id:m.message.key},m.message.values)}}}))))},[e.vm.runtimeErrors,t.messages]),c.useEffect(()=>{i.current!==null&&i.current.clear(),!(!e.vm.shouldIndicateCurrentLineNumber||d.instructions[e.vm.currentLineNumber-1]===void 0)&&n.current!==null&&r.current!==null&&(r.current.revealLineInCenterIfOutsideViewport(e.vm.currentLineNumber),i.current=r.current.createDecorationsCollection([{range:new n.current.Range(e.vm.currentLineNumber,1,e.vm.currentLineNumber,d.instructions[e.vm.currentLineNumber-1].length+1),options:{isWholeLine:!0,className:"rangeCurrentLine",marginClassName:"rangeCurrentLine"}}]))},[e.vm.currentLineNumber,e.vm.shouldIndicateCurrentLineNumber]);const f=m=>{if(m===void 0)return;const h=new Date().getTime();(a.current===null||a.current.time{d.decodeInstructions(!0),Ta(s,e.vm.id)},ZT)});const g=_3(m);l.current=g,d.loadNewInstructions(g),s(Ou(!1)),s(ch([])),s(wd("")),s(WE(1)),s(Bce(m)),s(O3(!0)),Ta(s,e.vm.id)};return me("div",{className:Bde.divMonacoEditorWrapper,children:me(Ufe,{language:"ir",theme:"ir-theme",beforeMount:m=>{n.current=m,Wfe(m)},onMount:m=>{r.current=m,m.setValue(e.vm.irString)},onChange:m=>f(m),options:{minimap:{enabled:!1}}})})},Xfe="_divVmConsoleWrapper_1d163_1",Yfe="_divVmConsole_1d163_1",JT={divVmConsoleWrapper:Xfe,divVmConsole:Yfe},qfe="_divOutputBlockWrapper_geev8_1",Qfe="_spanError_geev8_11",Zfe="_spanWarning_geev8_15",Jfe="_spanSuccess_geev8_19",epe="_spanNormal_geev8_23",tpe="_spanPrompt_geev8_27",npe="_spanArrow_geev8_31",ts={divOutputBlockWrapper:qfe,spanError:Qfe,spanWarning:Zfe,spanSuccess:Jfe,spanNormal:epe,spanPrompt:tpe,spanArrow:npe},rpe=e=>{const t=mo();return me("div",{className:ts.divOutputBlockWrapper,children:e.message.map((n,r)=>{const o=t.formatMessage({id:n.key},n.values);return me("span",{className:te({[ts.spanError]:n.type===ea.ERROR,[ts.spanWarning]:n.type===ea.WARNING,[ts.spanSuccess]:n.type===ea.SUCCESS,[ts.spanNormal]:n.type===ea.NORMAL,[ts.spanPrompt]:n.type===ea.PROMPT,[ts.spanArrow]:n.type===ea.ARROW}),children:o},r)})})},ope="_divInputBlockWrapper_1w97i_1",ipe="_spanArrow_1w97i_9",ape="_spanPrompt_1w97i_13",km={divInputBlockWrapper:ope,spanArrow:ipe,spanPrompt:ape,in:"_in_1w97i_18"},lpe=e=>{const t=mo();return wt("div",{className:km.divInputBlockWrapper,children:[me("span",{className:km.spanArrow,children:t.formatMessage({id:"CONSOLE_ARROW"})}),me("span",{className:km.spanPrompt,children:e.prompt.reduce((n,r)=>n+t.formatMessage({id:r.key},r.values),"")}),me("input",{ref:e.inputRef,className:km.in,spellCheck:!1,value:e.value,onChange:n=>e.onChange(n.currentTarget.value),onKeyDown:n=>{n.key==="Enter"&&e.onEnter()}})]})},spe="_divControlPanelWrapper_x2oa8_1",upe="_divSide_x2oa8_11",cpe="_iconRun_x2oa8_17",dpe="_iconStep_x2oa8_21",fpe="_iconReset_x2oa8_25",ppe="_iconClear_x2oa8_29",Cu={divControlPanelWrapper:spe,divSide:upe,iconRun:cpe,iconStep:dpe,iconReset:fpe,iconClear:ppe},mpe="_divIconWrapper_shrpr_1",hpe={divIconWrapper:mpe},Fm=e=>wt("div",{className:te(hpe.divIconWrapper,e.className),onClick:t=>{t.stopPropagation(),e.onClick()},children:[e.icon,e.label!==void 0&&me("label",{children:e.label})]}),gpe=e=>{const t=mo();return me("div",{className:Cu.divControlPanelWrapper,children:wt("div",{className:Cu.divSide,children:[me(Fm,{className:Cu.iconRun,icon:me(DK,{}),label:t.formatMessage({id:"RUN"}),onClick:e.onRunClick}),me(Fm,{className:Cu.iconStep,icon:me(XW,{}),label:t.formatMessage({id:"RUN_STEP"}),onClick:e.onRunStepClick}),me(Fm,{className:Cu.iconReset,icon:me(nG,{}),label:t.formatMessage({id:"RESET"}),onClick:e.onResetClick}),me(Fm,{className:Cu.iconClear,icon:me(hG,{}),label:t.formatMessage({id:"CLEAR_CONSOLE"}),onClick:e.onClearClick})]})})},vpe=e=>{const t=Ic(),n=c.useRef(null),r=c.useRef(null),o=c.useRef(null),i=c.useRef(!1),a=nr.at(e.vmIndex);return c.useEffect(()=>{a.setReadConsoleFn(l=>{var s;return t(ch(l)),i.current||t(Ou(!0)),Ta(t,e.vm.id),(s=o.current)==null||s.focus(),new Promise(d=>{n.current=d})})},[]),h1(()=>{var l;(l=r.current)==null||l.scrollTo(0,r.current.scrollHeight)},[e.vm.consoleInput,e.vm.consoleInputPrompt,e.vm.consoleOutputs]),wt("div",{className:JT.divVmConsoleWrapper,children:[me(gpe,{onRunClick:async()=>{var l;if(!a.canContinueExecution){a.state===dn.WAIT_INPUT&&((l=o.current)==null||l.focus());return}i.current=!0,t(Ou(!1)),await a.execute(),Ta(t,e.vm.id)},onRunStepClick:async()=>{var l;if(!a.canContinueExecution){a.state===dn.WAIT_INPUT&&((l=o.current)==null||l.focus());return}switch(i.current=!1,await a.executeSingleStep(),a.state){case dn.FREE:t(Ou(!0));break;case dn.EXITED_NORMALLY:case dn.EXITED_ABNORMALLY:t(Ou(!1));break}Ta(t,e.vm.id)},onResetClick:()=>{t(Ou(!1)),t(ch([])),t(wd("")),t(WE(1)),a.reset(),a.decodeInstructions(!0),Ta(t,e.vm.id)},onClearClick:()=>{var l;t(Gce()),t(wd("")),e.vm.state===dn.WAIT_INPUT&&((l=o.current)==null||l.focus())}}),wt("div",{ref:r,className:JT.divVmConsole,children:[e.vm.consoleOutputs.map((l,s)=>me(rpe,{message:l},s)),me(lpe,{inputRef:o,prompt:e.vm.consoleInputPrompt,value:e.vm.consoleInput,onChange:l=>t(wd(l)),onEnter:()=>{n.current!==null&&n.current(e.vm.consoleInput),t($3([[{key:"CONSOLE_ARROW",type:ea.ARROW},...e.vm.consoleInputPrompt.map(l=>({...l,type:ea.PROMPT})),{key:"READ_INPUT",values:{value:e.vm.consoleInput},type:ea.NORMAL}]])),t(ch([])),t(wd(""))}})]})]})},ype="_divVmInspectorWrapper_1ck6l_1",bpe="_divStepStateCard_1ck6l_34",Spe="_divStepStateWrapper_1ck6l_45",Cpe="_lblStepStateLabel_1ck6l_51",xpe="_divStepCount_1ck6l_58",Epe="_divStateBase_1ck6l_64",wpe="_divStateExitedAbnormally_1ck6l_64",Ope="_divStateExitedNormally_1ck6l_64",$pe="_divStateMaxStepReached_1ck6l_64",Ipe="_divStateRuntimeError_1ck6l_64",Rpe="_divStateStaticCheckFailed_1ck6l_64",_pe="_divStateFree_1ck6l_64",Tpe="_divStateWaitInput_1ck6l_64",Ppe="_divStateBusy_1ck6l_64",Npe="_divStateInitial_1ck6l_64",Mpe="_divOptionsCard_1ck6l_105",Ape="_divOptionWrapper_1ck6l_117",Lpe="_lblOption_1ck6l_124",Dpe="_iconOptionInfo_1ck6l_129",kpe="_inOptionValue_1ck6l_139",Fpe="_divMemoryUsageCard_1ck6l_143",Bpe="_divGlobalVariableTableCard_1ck6l_158",zpe="_divLocalVariableTableCard_1ck6l_174",Hpe="_divLocalVariableTableWrapper_1ck6l_194",jpe="_divLocalVariableTable_1ck6l_174",Vpe="_paginationLocalVariableTable_1ck6l_221",qt={divVmInspectorWrapper:ype,divStepStateCard:bpe,divStepStateWrapper:Spe,lblStepStateLabel:Cpe,divStepCount:xpe,divStateBase:Epe,divStateExitedAbnormally:wpe,divStateExitedNormally:Ope,divStateMaxStepReached:$pe,divStateRuntimeError:Ipe,divStateStaticCheckFailed:Rpe,divStateFree:_pe,divStateWaitInput:Tpe,divStateBusy:Ppe,divStateInitial:Npe,divOptionsCard:Mpe,divOptionWrapper:Ape,lblOption:Lpe,iconOptionInfo:Dpe,inOptionValue:kpe,divMemoryUsageCard:Fpe,divGlobalVariableTableCard:Bpe,divLocalVariableTableCard:zpe,divLocalVariableTableWrapper:Hpe,divLocalVariableTable:jpe,paginationLocalVariableTable:Vpe},Upe="_divMemoryUsageWrapper_1rsex_1",Wpe="_divUsageBlock_1rsex_7",Kpe="_progress_1rsex_25",gd={divMemoryUsageWrapper:Upe,divUsageBlock:Wpe,progress:Kpe},Tb=e=>{const t=mo();return wt("div",{className:gd.divMemoryUsageWrapper,children:[wt("div",{className:gd.divUsageBlock,children:[me(rT,{className:gd.progress,percent:e.usedBytes/e.totalBytes*100,showInfo:!1,status:"normal"}),wt("div",{children:[me("label",{children:e.title}),me("label",{className:"percentageUsage",children:e.totalBytes===0?"-.-":t.formatMessage({id:"PERCENTAGE_USAGE"},{percentage:e.usedBytes/e.totalBytes*100})})]}),me("span",{children:t.formatMessage({id:"B_USAGE"},{used:e.usedBytes,total:e.totalBytes})}),me("span",{children:t.formatMessage({id:"KB_USAGE"},{used:Ob(e.usedBytes),total:Ob(e.totalBytes)})})]}),wt("div",{className:gd.divUsageBlock,children:[me(rT,{className:gd.progress,percent:e.peakBytes/e.totalBytes*100,showInfo:!1,status:"exception"}),wt("div",{children:[me("label",{children:t.formatMessage({id:"PEAK_MEMORY_USAGE"})}),me("label",{className:"percentageUsage",children:e.totalBytes===0?"-.-":t.formatMessage({id:"PERCENTAGE_USAGE"},{percentage:e.peakBytes/e.totalBytes*100})})]}),me("span",{children:t.formatMessage({id:"BYTES"},{bytes:e.peakBytes})}),me("span",{children:t.formatMessage({id:"KB"},{kb:Ob(e.peakBytes)})})]})]})},Gpe="_divVariableTableWrapper_1vw2e_1",Xpe="_divValues_1vw2e_10",eP={divVariableTableWrapper:Gpe,divValues:Xpe},tP=e=>{const t=mo(),n=[{title:t.formatMessage({id:"VARIABLE_ID"}),dataIndex:"id",showSorterTooltip:!1,sorter:(r,o)=>lde(r.id,o.id)},{title:t.formatMessage({id:"ADDRESS"}),dataIndex:"address",showSorterTooltip:!1,sorter:(r,o)=>r.address-o.address},{title:t.formatMessage({id:"SIZE"}),dataIndex:"size",showSorterTooltip:!1,sorter:(r,o)=>r.size-o.size},{title:t.formatMessage({id:"VALUES"}),dataIndex:"values",render:r=>me("div",{className:eP.divValues,children:r.map((o,i)=>me("div",{children:r.length===1?o:wt(o8,{children:["[",i,"]: ",o]})},i))})}];return me("div",{className:eP.divVariableTableWrapper,children:e.variables.length===0?me("div",{className:"emptyHolder",children:t.formatMessage({id:"EMPTY_VATIABLE_TABLE"})}):me(Kue,{columns:n,dataSource:e.variables,size:"small",pagination:!1})})};function Ype(e){switch(e){case dn.BUSY:return"STATE_BUSY";case dn.EXITED_ABNORMALLY:return"STATE_EXITED_ABNORMALLY";case dn.EXITED_NORMALLY:return"STATE_EXITED_NORMALLY";case dn.FREE:return"STATE_FREE";case dn.INITIAL:return"STATE_INITIAL";case dn.MAX_STEP_REACHED:return"STATE_MAX_STEP_REACHED";case dn.RUNTIME_ERROR:return"STATE_RUNTIME_ERROR";case dn.STATIC_CHECK_FAILED:return"STATE_STATIC_CHECK_FAILED";case dn.WAIT_INPUT:return"STATE_WAIT_INPUT"}}const Pb=10,qpe=e=>{const t=mo(),n=Ic(),r=c.useRef(null),o=nr.at(e.vmIndex);return wt("div",{ref:r,className:qt.divVmInspectorWrapper,children:[wt("div",{className:qt.divStepStateCard,children:[wt("div",{className:qt.divStepStateWrapper,children:[me("label",{className:qt.lblStepStateLabel,children:t.formatMessage({id:"STEP_COUNT"})}),me("div",{className:qt.divStepCount,children:t.formatMessage({id:"STEP_COUNT_NUMBER"},{stepCount:e.vm.stepCount})})]}),wt("div",{className:qt.divStepStateWrapper,children:[me("label",{className:qt.lblStepStateLabel,children:t.formatMessage({id:"STATE"})}),me("div",{className:te({[qt.divStateInitial]:e.vm.state===dn.INITIAL,[qt.divStateBusy]:e.vm.state===dn.BUSY,[qt.divStateWaitInput]:e.vm.state===dn.WAIT_INPUT,[qt.divStateFree]:e.vm.state===dn.FREE,[qt.divStateStaticCheckFailed]:e.vm.state===dn.STATIC_CHECK_FAILED,[qt.divStateRuntimeError]:e.vm.state===dn.RUNTIME_ERROR,[qt.divStateMaxStepReached]:e.vm.state===dn.MAX_STEP_REACHED,[qt.divStateExitedNormally]:e.vm.state===dn.EXITED_NORMALLY,[qt.divStateExitedAbnormally]:e.vm.state===dn.EXITED_ABNORMALLY}),children:t.formatMessage({id:Ype(e.vm.state)})})]})]}),wt("div",{className:qt.divOptionsCard,children:[wt("div",{className:qt.divOptionWrapper,children:[wt("label",{className:qt.lblOption,children:[t.formatMessage({id:"MAX_EXECUTION_STEP_COUNT"}),me(Jf,{title:t.formatMessage({id:"SET_0_MEANS_NO_STEP_LIMIT"}),children:me(rA,{className:qt.iconOptionInfo})})]}),me(mb,{className:qt.inOptionValue,disabled:e.vm.state!==dn.INITIAL,min:$i.maxExecutionStepCount.min,max:$i.maxExecutionStepCount.max,value:e.vm.options.maxExecutionStepCount,onChange:i=>{o.configure({maxExecutionStepCount:i??void 0}),Ta(n,e.vm.id)}})]}),wt("div",{className:qt.divOptionWrapper,children:[me("label",{className:qt.lblOption,children:t.formatMessage({id:"MEMORY_SIZE"})}),me(mb,{className:qt.inOptionValue,disabled:e.vm.state!==dn.INITIAL,min:$i.memorySize.min,max:$i.memorySize.max,value:e.vm.options.memorySize,onChange:i=>{o.configure({memorySize:i??void 0}),Ta(n,e.vm.id)}})]}),wt("div",{className:qt.divOptionWrapper,children:[me("label",{className:qt.lblOption,children:t.formatMessage({id:"STACK_SIZE"})}),me(mb,{className:qt.inOptionValue,disabled:e.vm.state!==dn.INITIAL,min:$i.stackSize.min,max:$i.stackSize.max,value:e.vm.options.stackSize,onChange:i=>{o.configure({stackSize:i??void 0}),Ta(n,e.vm.id)}})]})]}),wt("div",{className:qt.divMemoryUsageCard,children:[me(Tb,{title:t.formatMessage({id:"TOTAL_MEMORY_USAGE"}),usedBytes:e.vm.memoryUsage.used,totalBytes:e.vm.memoryUsage.total,peakBytes:e.vm.peakMemoryUsage.total}),me(Tb,{title:t.formatMessage({id:"STACK_MEMORY_USAGE"}),usedBytes:e.vm.memoryUsage.stackUsed,totalBytes:e.vm.memoryUsage.stackTotal,peakBytes:e.vm.peakMemoryUsage.stack}),me(Tb,{title:t.formatMessage({id:"GLOBAL_VARIABLE_MEMORY_USAGE"}),usedBytes:e.vm.memoryUsage.globalVariableUsed,totalBytes:e.vm.memoryUsage.globalVariableTotal,peakBytes:e.vm.peakMemoryUsage.globalVariable})]}),wt("div",{className:qt.divGlobalVariableTableCard,children:[me("label",{className:"title",children:t.formatMessage({id:"GLOBAL_VARIABLE_TABLE"})}),me(tP,{variables:e.vm.globalVariableDetails})]}),wt("div",{className:qt.divLocalVariableTableCard,children:[me("label",{className:"title",children:t.formatMessage({id:"LOCAL_VARIABLE_TABLE"})}),e.vm.localVariableDetailsStack.length===0?me("div",{className:"emptyHolder",children:t.formatMessage({id:"EMPTY_VATIABLE_TABLE"})}):wt("div",{className:qt.divLocalVariableTableWrapper,children:[e.vm.localVariableDetailsStack.slice(Pb*(e.vm.localVariableTablePageIndex-1),Pb*e.vm.localVariableTablePageIndex).map((i,a)=>wt("div",{className:qt.divLocalVariableTable,children:[wt("div",{className:"titleWrapper",children:[me("label",{className:"functionName",children:i.functionName}),wt("label",{className:"callStackDepth",children:["(",t.formatMessage({id:"CALL_STACK_DEPTH"},{depth:i.stackDepth}),")"]})]}),me(tP,{variables:i.details},a)]},a)),me(_E,{className:qt.paginationLocalVariableTable,current:e.vm.localVariableTablePageIndex,onChange:i=>n(WE(i)),pageSize:Pb,showSizeChanger:!1,total:e.vm.localVariableDetailsStack.length,size:"small"})]})]})]})},Qpe=()=>{const e=mo(),t=Ic(),n=pc(a=>a.vm),r=pc(a=>a.vm.vmPageStates.every(l=>!l.isIrChanged)),[o,i]=c.useState(window.innerWidth{window.onresize=()=>i(window.innerWidth{window.onbeforeunload=r?null:a=>(a.preventDefault(),a.returnValue="")},[r]),wt("main",{className:sd.main,onDragEnter:a=>a.preventDefault(),onDragOver:a=>a.preventDefault(),onDrop:a=>{for(const l of a.dataTransfer.files)A3(t,e,l);a.preventDefault()},children:[me(vde,{vm:n.vmPageStates.length===0?null:n.vmPageStates[n.activeVmIndex],vmIndex:n.activeVmIndex}),wt("div",{className:sd.divRight,children:[me(Ade,{}),me("div",{className:sd.divVmWrapper,children:n.vmPageStates.length===0?me(kde,{}):n.vmPageStates.map((a,l)=>wt("div",{className:te({[sd.divVmContentHorizontal]:!o,[sd.divVmContentVertical]:o}),style:{display:l===n.activeVmIndex?"flex":"none"},children:[me("section",{className:"sectionIrEditor",children:me(Gfe,{vm:a,vmIndex:l})}),me("section",{className:"sectionVmConsole",children:me(vpe,{vm:a,vmIndex:l})}),me("section",{className:"sectionVmInspector",children:me(qpe,{vm:a,vmIndex:l})})]},`vm-${a.name}`))})]})]})},Zpe=y9([{path:"/",element:me(Qpe,{})}],{basename:"/ir-virtual-machine"});const Jpe=()=>{const e=pc(n=>n.locale.currentLocale),t=pc(n=>n.theme.currentClassName);return c.useEffect(()=>{document.body.className=t},[t]),me(j7,{messages:e,locale:"en",children:me(p9,{router:Zpe})})},eme=Oce({reducer:{locale:pde,theme:gde,vm:Qce}});Nb.createRoot(document.getElementById("root")).render(me(ge.StrictMode,{children:me(JV,{store:eme,children:me(Jpe,{})})})); diff --git a/docs/index.html b/docs/index.html index 988fc55..ff34b0d 100644 --- a/docs/index.html +++ b/docs/index.html @@ -10,8 +10,8 @@ rel="stylesheet" /> IR虚拟机 - - + +
diff --git a/package.json b/package.json index 3309f26..f38d72a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ir-virtual-machine", "private": true, - "version": "2.1.0", + "version": "3.0.0", "type": "module", "scripts": { "dev": "vite",