Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 3.133.113.24
/*! For license information please see main.79185df9.js.LICENSE.txt */
(()=>{var e={730:(e,t,n)=>{"use strict";var o=n(43),r=n(853);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,l={};function c(e,t){s(e,t),s(e+"Capture",t)}function s(e,t){for(l[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[: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]*$/,p={},h={};function m(e,t,n,o,r,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(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){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function y(e,t,n,o){var r=g.hasOwnProperty(t)?g[t]:null;(null!==r?0!==r.type:o||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,o){if(null===t||"undefined"===typeof t||function(e,t,n,o){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!o&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,o))return!0;if(o)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,r,o)&&(n=null),o||null===r?function(e){return!!d.call(h,e)||!d.call(p,e)&&(f.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):r.mustUseProperty?e[r.propertyName]=null===n?3!==r.type&&"":n:(t=r.attributeName,o=r.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(r=r.type)||4===r&&!0===n?"":""+n,o?e.setAttributeNS(o,t,n):e.setAttribute(t,n))))}"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(v,b);g[t]=new m(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(v,b);g[t]=new m(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(v,b);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),S=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),_=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),R=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var T=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var j=Symbol.iterator;function A(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=j&&e[j]||e["@@iterator"])?e:null}var z,L=Object.assign;function D(e){if(void 0===z)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);z=t&&t[1]||""}return"\n"+z+e}var B=!1;function F(e,t){if(!e||B)return"";B=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(s){var o=s}Reflect.construct(e,[],t)}else{try{t.call()}catch(s){o=s}e.call(t.prototype)}else{try{throw Error()}catch(s){o=s}e()}}catch(s){if(s&&o&&"string"===typeof s.stack){for(var r=s.stack.split("\n"),i=o.stack.split("\n"),a=r.length-1,l=i.length-1;1<=a&&0<=l&&r[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(r[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||r[a]!==i[l]){var c="\n"+r[a].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}}while(1<=a&&0<=l);break}}}finally{B=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?D(e):""}function H(e){switch(e.tag){case 5:return D(e.type);case 16:return D("Lazy");case 13:return D("Suspense");case 19:return D("SuspenseList");case 0:case 2:case 15:return e=F(e.type,!1);case 11:return e=F(e.type.render,!1);case 1:return e=F(e.type,!0);default:return""}}function W(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case C:return"Fragment";case S:return"Portal";case E:return"Profiler";case k:return"StrictMode";case M:return"Suspense";case N:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case _:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case P:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case I:return null!==(t=e.displayName||null)?t:W(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return W(e(t))}catch(n){}}return null}function V(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=(e=t.render).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 W(t);case 8:return t===k?"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("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function K(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function U(e){e._valueTracker||(e._valueTracker=function(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var r=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(e){o=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(e){o=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function X(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=q(e)?e.checked?"true":"false":e.value),(e=o)!==n&&(t.setValue(e),!0)}function G(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function $(e,t){var n=t.checked;return L({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,o=null!=t.checked?t.checked:t.defaultChecked;n=K(null!=t.value?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Q(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function J(e,t){Q(e,t);var n=K(t.value),o=t.type;if(null!=n)"number"===o?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===o||"reset"===o)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,K(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!("submit"!==o&&"reset"!==o||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&G(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,o){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&o&&(e[n].defaultSelected=!0)}else{for(n=""+K(n),t=null,r=0;r<e.length;r++){if(e[r].value===n)return e[r].selected=!0,void(o&&(e[r].defaultSelected=!0));null!==t||e[r].disabled||(t=e[r])}null!==t&&(t.selected=!0)}}function oe(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return L({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function re(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:K(n)}}function ie(e,t){var n=K(t.value),o=K(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=o&&(e.defaultValue=""+o)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ce(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var se,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((se=se||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=se.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,o){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={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},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var o=0===n.indexOf("--"),r=me(n,t[n],o);"float"===n&&(n="cssFloat"),o?e.setProperty(n,r):e[n]=r}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ve=L({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 be(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(i(62))}}function ye(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;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 we=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,Ce=null,ke=null;function Ee(e){if(e=wr(e)){if("function"!==typeof Se)throw Error(i(280));var t=e.stateNode;t&&(t=Sr(t),Se(e.stateNode,e.type,t))}}function Oe(e){Ce?ke?ke.push(e):ke=[e]:Ce=e}function _e(){if(Ce){var e=Ce,t=ke;if(ke=Ce=null,Ee(e),t)for(e=0;e<t.length;e++)Ee(t[e])}}function Pe(e,t){return e(t)}function Me(){}var Ne=!1;function Ie(e,t,n){if(Ne)return e(t,n);Ne=!0;try{return Pe(e,t,n)}finally{Ne=!1,(null!==Ce||null!==ke)&&(Me(),_e())}}function Re(e,t){var n=e.stateNode;if(null===n)return null;var o=Sr(n);if(null===o)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(i(231,t,typeof n));return n}var Te=!1;if(u)try{var je={};Object.defineProperty(je,"passive",{get:function(){Te=!0}}),window.addEventListener("test",je,je),window.removeEventListener("test",je,je)}catch(ue){Te=!1}function Ae(e,t,n,o,r,i,a,l,c){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(u){this.onError(u)}}var ze=!1,Le=null,De=!1,Be=null,Fe={onError:function(e){ze=!0,Le=e}};function He(e,t,n,o,r,i,a,l,c){ze=!1,Le=null,Ae.apply(Fe,arguments)}function We(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ve(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ke(e){if(We(e)!==e)throw Error(i(188))}function qe(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=We(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,o=t;;){var r=n.return;if(null===r)break;var a=r.alternate;if(null===a){if(null!==(o=r.return)){n=o;continue}break}if(r.child===a.child){for(a=r.child;a;){if(a===n)return Ke(r),e;if(a===o)return Ke(r),t;a=a.sibling}throw Error(i(188))}if(n.return!==o.return)n=r,o=a;else{for(var l=!1,c=r.child;c;){if(c===n){l=!0,n=r,o=a;break}if(c===o){l=!0,o=r,n=a;break}c=c.sibling}if(!l){for(c=a.child;c;){if(c===n){l=!0,n=a,o=r;break}if(c===o){l=!0,o=a,n=r;break}c=c.sibling}if(!l)throw Error(i(189))}}if(n.alternate!==o)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?Ue(e):null}function Ue(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ue(e);if(null!==t)return t;e=e.sibling}return null}var Xe=r.unstable_scheduleCallback,Ge=r.unstable_cancelCallback,$e=r.unstable_shouldYield,Ye=r.unstable_requestPaint,Qe=r.unstable_now,Je=r.unstable_getCurrentPriorityLevel,Ze=r.unstable_ImmediatePriority,et=r.unstable_UserBlockingPriority,tt=r.unstable_NormalPriority,nt=r.unstable_LowPriority,ot=r.unstable_IdlePriority,rt=null,it=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(lt(e)/ct|0)|0},lt=Math.log,ct=Math.LN2;var st=64,ut=4194304;function dt(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 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var o=0,r=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~r;0!==l?o=dt(l):0!==(i&=a)&&(o=dt(i))}else 0!==(a=n&~r)?o=dt(a):0!==i&&(o=dt(i));if(0===o)return 0;if(0!==t&&t!==o&&0===(t&r)&&((r=o&-o)>=(i=t&-t)||16===r&&0!==(4194240&i)))return t;if(0!==(4&o)&&(o|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=o;0<t;)r=1<<(n=31-at(t)),o|=e[n],t&=~r;return o}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 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 t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=st;return 0===(4194240&(st<<=1))&&(st=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var o=31-at(n),r=1<<o;r&t|e[o]&t&&(e[o]|=t),n&=~r}}var yt=0;function wt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var xt,St,Ct,kt,Et,Ot=!1,_t=[],Pt=null,Mt=null,Nt=null,It=new Map,Rt=new Map,Tt=[],jt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function At(e,t){switch(e){case"focusin":case"focusout":Pt=null;break;case"dragenter":case"dragleave":Mt=null;break;case"mouseover":case"mouseout":Nt=null;break;case"pointerover":case"pointerout":It.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rt.delete(t.pointerId)}}function zt(e,t,n,o,r,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:o,nativeEvent:i,targetContainers:[r]},null!==t&&(null!==(t=wr(t))&&St(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,null!==r&&-1===t.indexOf(r)&&t.push(r),e)}function Lt(e){var t=yr(e.target);if(null!==t){var n=We(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ve(n)))return e.blockedOn=t,void Et(e.priority,(function(){Ct(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Dt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=$t(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wr(n))&&St(t),e.blockedOn=n,!1;var o=new(n=e.nativeEvent).constructor(n.type,n);we=o,n.target.dispatchEvent(o),we=null,t.shift()}return!0}function Bt(e,t,n){Dt(e)&&n.delete(t)}function Ft(){Ot=!1,null!==Pt&&Dt(Pt)&&(Pt=null),null!==Mt&&Dt(Mt)&&(Mt=null),null!==Nt&&Dt(Nt)&&(Nt=null),It.forEach(Bt),Rt.forEach(Bt)}function Ht(e,t){e.blockedOn===t&&(e.blockedOn=null,Ot||(Ot=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Ft)))}function Wt(e){function t(t){return Ht(t,e)}if(0<_t.length){Ht(_t[0],e);for(var n=1;n<_t.length;n++){var o=_t[n];o.blockedOn===e&&(o.blockedOn=null)}}for(null!==Pt&&Ht(Pt,e),null!==Mt&&Ht(Mt,e),null!==Nt&&Ht(Nt,e),It.forEach(t),Rt.forEach(t),n=0;n<Tt.length;n++)(o=Tt[n]).blockedOn===e&&(o.blockedOn=null);for(;0<Tt.length&&null===(n=Tt[0]).blockedOn;)Lt(n),null===n.blockedOn&&Tt.shift()}var Vt=w.ReactCurrentBatchConfig,Kt=!0;function qt(e,t,n,o){var r=yt,i=Vt.transition;Vt.transition=null;try{yt=1,Xt(e,t,n,o)}finally{yt=r,Vt.transition=i}}function Ut(e,t,n,o){var r=yt,i=Vt.transition;Vt.transition=null;try{yt=4,Xt(e,t,n,o)}finally{yt=r,Vt.transition=i}}function Xt(e,t,n,o){if(Kt){var r=$t(e,t,n,o);if(null===r)qo(e,t,o,Gt,n),At(e,o);else if(function(e,t,n,o,r){switch(t){case"focusin":return Pt=zt(Pt,e,t,n,o,r),!0;case"dragenter":return Mt=zt(Mt,e,t,n,o,r),!0;case"mouseover":return Nt=zt(Nt,e,t,n,o,r),!0;case"pointerover":var i=r.pointerId;return It.set(i,zt(It.get(i)||null,e,t,n,o,r)),!0;case"gotpointercapture":return i=r.pointerId,Rt.set(i,zt(Rt.get(i)||null,e,t,n,o,r)),!0}return!1}(r,e,t,n,o))o.stopPropagation();else if(At(e,o),4&t&&-1<jt.indexOf(e)){for(;null!==r;){var i=wr(r);if(null!==i&&xt(i),null===(i=$t(e,t,n,o))&&qo(e,t,o,Gt,n),i===r)break;r=i}null!==r&&o.stopPropagation()}else qo(e,t,o,null,n)}}var Gt=null;function $t(e,t,n,o){if(Gt=null,null!==(e=yr(e=xe(o))))if(null===(t=We(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ve(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gt=e,null}function Yt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case ot:return 536870912;default:return 16}default:return 16}}var Qt=null,Jt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Jt,o=n.length,r="value"in Qt?Qt.value:Qt.textContent,i=r.length;for(e=0;e<o&&n[e]===r[e];e++);var a=o-e;for(t=1;t<=a&&n[o-t]===r[i-t];t++);return Zt=r.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function on(){return!1}function rn(e){function t(t,n,o,r,i){for(var a in this._reactName=t,this._targetInst=o,this.type=n,this.nativeEvent=r,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(r):r[a]);return this.isDefaultPrevented=(null!=r.defaultPrevented?r.defaultPrevented:!1===r.returnValue)?nn:on,this.isPropagationStopped=on,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,ln,cn,sn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=rn(sn),dn=L({},sn,{view:0,detail:0}),fn=rn(dn),pn=L({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(an=e.screenX-cn.screenX,ln=e.screenY-cn.screenY):ln=an=0,cn=e),an)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),hn=rn(pn),mn=rn(L({},pn,{dataTransfer:0})),gn=rn(L({},dn,{relatedTarget:0})),vn=rn(L({},sn,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=L({},sn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=rn(bn),wn=rn(L({},sn,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Cn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Cn[e])&&!!t[e]}function En(){return kn}var On=L({},dn,{key:function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),_n=rn(On),Pn=rn(L({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Mn=rn(L({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),Nn=rn(L({},sn,{propertyName:0,elapsedTime:0,pseudoElement:0})),In=L({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Rn=rn(In),Tn=[9,13,27,32],jn=u&&"CompositionEvent"in window,An=null;u&&"documentMode"in document&&(An=document.documentMode);var zn=u&&"TextEvent"in window&&!An,Ln=u&&(!jn||An&&8<An&&11>=An),Dn=String.fromCharCode(32),Bn=!1;function Fn(e,t){switch(e){case"keyup":return-1!==Tn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Wn=!1;var Vn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Kn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Vn[e.type]:"textarea"===t}function qn(e,t,n,o){Oe(o),0<(t=Xo(t,"onChange")).length&&(n=new un("onChange","change",null,n,o),e.push({event:n,listeners:t}))}var Un=null,Xn=null;function Gn(e){Bo(e,0)}function $n(e){if(X(xr(e)))return e}function Yn(e,t){if("change"===e)return t}var Qn=!1;if(u){var Jn;if(u){var Zn="oninput"in document;if(!Zn){var eo=document.createElement("div");eo.setAttribute("oninput","return;"),Zn="function"===typeof eo.oninput}Jn=Zn}else Jn=!1;Qn=Jn&&(!document.documentMode||9<document.documentMode)}function to(){Un&&(Un.detachEvent("onpropertychange",no),Xn=Un=null)}function no(e){if("value"===e.propertyName&&$n(Xn)){var t=[];qn(t,Xn,e,xe(e)),Ie(Gn,t)}}function oo(e,t,n){"focusin"===e?(to(),Xn=n,(Un=t).attachEvent("onpropertychange",no)):"focusout"===e&&to()}function ro(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return $n(Xn)}function io(e,t){if("click"===e)return $n(t)}function ao(e,t){if("input"===e||"change"===e)return $n(t)}var lo="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function co(e,t){if(lo(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++){var r=n[o];if(!d.call(t,r)||!lo(e[r],t[r]))return!1}return!0}function so(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function uo(e,t){var n,o=so(e);for(e=0;o;){if(3===o.nodeType){if(n=e+o.textContent.length,e<=t&&n>=t)return{node:o,offset:t-e};e=n}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=so(o)}}function fo(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fo(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function po(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(o){n=!1}if(!n)break;t=G((e=t.contentWindow).document)}return t}function ho(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function mo(e){var t=po(),n=e.focusedElem,o=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fo(n.ownerDocument.documentElement,n)){if(null!==o&&ho(n))if(t=o.start,void 0===(e=o.end)&&(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).getSelection){e=e.getSelection();var r=n.textContent.length,i=Math.min(o.start,r);o=void 0===o.end?i:Math.min(o.end,r),!e.extend&&i>o&&(r=o,o=i,i=r),r=uo(n,i);var a=uo(n,o);r&&a&&(1!==e.rangeCount||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(r.node,r.offset),e.removeAllRanges(),i>o?(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;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var go=u&&"documentMode"in document&&11>=document.documentMode,vo=null,bo=null,yo=null,wo=!1;function xo(e,t,n){var o=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;wo||null==vo||vo!==G(o)||("selectionStart"in(o=vo)&&ho(o)?o={start:o.selectionStart,end:o.selectionEnd}:o={anchorNode:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset},yo&&co(yo,o)||(yo=o,0<(o=Xo(bo,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:o}),t.target=vo)))}function So(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Co={animationend:So("Animation","AnimationEnd"),animationiteration:So("Animation","AnimationIteration"),animationstart:So("Animation","AnimationStart"),transitionend:So("Transition","TransitionEnd")},ko={},Eo={};function Oo(e){if(ko[e])return ko[e];if(!Co[e])return e;var t,n=Co[e];for(t in n)if(n.hasOwnProperty(t)&&t in Eo)return ko[e]=n[t];return e}u&&(Eo=document.createElement("div").style,"AnimationEvent"in window||(delete Co.animationend.animation,delete Co.animationiteration.animation,delete Co.animationstart.animation),"TransitionEvent"in window||delete Co.transitionend.transition);var _o=Oo("animationend"),Po=Oo("animationiteration"),Mo=Oo("animationstart"),No=Oo("transitionend"),Io=new Map,Ro="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function To(e,t){Io.set(e,t),c(t,[e])}for(var jo=0;jo<Ro.length;jo++){var Ao=Ro[jo];To(Ao.toLowerCase(),"on"+(Ao[0].toUpperCase()+Ao.slice(1)))}To(_o,"onAnimationEnd"),To(Po,"onAnimationIteration"),To(Mo,"onAnimationStart"),To("dblclick","onDoubleClick"),To("focusin","onFocus"),To("focusout","onBlur"),To(No,"onTransitionEnd"),s("onMouseEnter",["mouseout","mouseover"]),s("onMouseLeave",["mouseout","mouseover"]),s("onPointerEnter",["pointerout","pointerover"]),s("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Lo=new Set("cancel close invalid load scroll toggle".split(" ").concat(zo));function Do(e,t,n){var o=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,o,r,a,l,c,s){if(He.apply(this,arguments),ze){if(!ze)throw Error(i(198));var u=Le;ze=!1,Le=null,De||(De=!0,Be=u)}}(o,t,void 0,e),e.currentTarget=null}function Bo(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var o=e[n],r=o.event;o=o.listeners;e:{var i=void 0;if(t)for(var a=o.length-1;0<=a;a--){var l=o[a],c=l.instance,s=l.currentTarget;if(l=l.listener,c!==i&&r.isPropagationStopped())break e;Do(r,l,s),i=c}else for(a=0;a<o.length;a++){if(c=(l=o[a]).instance,s=l.currentTarget,l=l.listener,c!==i&&r.isPropagationStopped())break e;Do(r,l,s),i=c}}}if(De)throw e=Be,De=!1,Be=null,e}function Fo(e,t){var n=t[gr];void 0===n&&(n=t[gr]=new Set);var o=e+"__bubble";n.has(o)||(Ko(t,e,2,!1),n.add(o))}function Ho(e,t,n){var o=0;t&&(o|=4),Ko(n,e,o,t)}var Wo="_reactListening"+Math.random().toString(36).slice(2);function Vo(e){if(!e[Wo]){e[Wo]=!0,a.forEach((function(t){"selectionchange"!==t&&(Lo.has(t)||Ho(t,!1,e),Ho(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Wo]||(t[Wo]=!0,Ho("selectionchange",!1,t))}}function Ko(e,t,n,o){switch(Yt(t)){case 1:var r=qt;break;case 4:r=Ut;break;default:r=Xt}n=r.bind(null,t,n,e),r=void 0,!Te||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(r=!0),o?void 0!==r?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):void 0!==r?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function qo(e,t,n,o,r){var i=o;if(0===(1&t)&&0===(2&t)&&null!==o)e:for(;;){if(null===o)return;var a=o.tag;if(3===a||4===a){var l=o.stateNode.containerInfo;if(l===r||8===l.nodeType&&l.parentNode===r)break;if(4===a)for(a=o.return;null!==a;){var c=a.tag;if((3===c||4===c)&&((c=a.stateNode.containerInfo)===r||8===c.nodeType&&c.parentNode===r))return;a=a.return}for(;null!==l;){if(null===(a=yr(l)))return;if(5===(c=a.tag)||6===c){o=i=a;continue e}l=l.parentNode}}o=o.return}Ie((function(){var o=i,r=xe(n),a=[];e:{var l=Io.get(e);if(void 0!==l){var c=un,s=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":c=_n;break;case"focusin":s="focus",c=gn;break;case"focusout":s="blur",c=gn;break;case"beforeblur":case"afterblur":c=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=Mn;break;case _o:case Po:case Mo:c=vn;break;case No:c=Nn;break;case"scroll":c=fn;break;case"wheel":c=Rn;break;case"copy":case"cut":case"paste":c=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=Pn}var u=0!==(4&t),d=!u&&"scroll"===e,f=u?null!==l?l+"Capture":null:l;u=[];for(var p,h=o;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=Re(h,f))&&u.push(Uo(h,m,p)))),d)break;h=h.return}0<u.length&&(l=new c(l,s,null,n,r),a.push({event:l,listeners:u}))}}if(0===(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===we||!(s=n.relatedTarget||n.fromElement)||!yr(s)&&!s[mr])&&(c||l)&&(l=r.window===r?r:(l=r.ownerDocument)?l.defaultView||l.parentWindow:window,c?(c=o,null!==(s=(s=n.relatedTarget||n.toElement)?yr(s):null)&&(s!==(d=We(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(c=null,s=o),c!==s)){if(u=hn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=Pn,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==c?l:xr(c),p=null==s?l:xr(s),(l=new u(m,h+"leave",c,n,r)).target=d,l.relatedTarget=p,m=null,yr(r)===o&&((u=new u(f,h+"enter",s,n,r)).target=p,u.relatedTarget=d,m=u),d=m,c&&s)e:{for(f=s,h=0,p=u=c;p;p=Go(p))h++;for(p=0,m=f;m;m=Go(m))p++;for(;0<h-p;)u=Go(u),h--;for(;0<p-h;)f=Go(f),p--;for(;h--;){if(u===f||null!==f&&u===f.alternate)break e;u=Go(u),f=Go(f)}u=null}else u=null;null!==c&&$o(a,l,c,u,!1),null!==s&&null!==d&&$o(a,d,s,u,!0)}if("select"===(c=(l=o?xr(o):window).nodeName&&l.nodeName.toLowerCase())||"input"===c&&"file"===l.type)var g=Yn;else if(Kn(l))if(Qn)g=ao;else{g=ro;var v=oo}else(c=l.nodeName)&&"input"===c.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=io);switch(g&&(g=g(e,o))?qn(a,g,n,r):(v&&v(e,l,o),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&ee(l,"number",l.value)),v=o?xr(o):window,e){case"focusin":(Kn(v)||"true"===v.contentEditable)&&(vo=v,bo=o,yo=null);break;case"focusout":yo=bo=vo=null;break;case"mousedown":wo=!0;break;case"contextmenu":case"mouseup":case"dragend":wo=!1,xo(a,n,r);break;case"selectionchange":if(go)break;case"keydown":case"keyup":xo(a,n,r)}var b;if(jn)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Wn?Fn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Ln&&"ko"!==n.locale&&(Wn||"onCompositionStart"!==y?"onCompositionEnd"===y&&Wn&&(b=en()):(Jt="value"in(Qt=r)?Qt.value:Qt.textContent,Wn=!0)),0<(v=Xo(o,y)).length&&(y=new wn(y,e,null,n,r),a.push({event:y,listeners:v}),b?y.data=b:null!==(b=Hn(n))&&(y.data=b))),(b=zn?function(e,t){switch(e){case"compositionend":return Hn(t);case"keypress":return 32!==t.which?null:(Bn=!0,Dn);case"textInput":return(e=t.data)===Dn&&Bn?null:e;default:return null}}(e,n):function(e,t){if(Wn)return"compositionend"===e||!jn&&Fn(e,t)?(e=en(),Zt=Jt=Qt=null,Wn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ln&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(o=Xo(o,"onBeforeInput")).length&&(r=new wn("onBeforeInput","beforeinput",null,n,r),a.push({event:r,listeners:o}),r.data=b))}Bo(a,t)}))}function Uo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Xo(e,t){for(var n=t+"Capture",o=[];null!==e;){var r=e,i=r.stateNode;5===r.tag&&null!==i&&(r=i,null!=(i=Re(e,n))&&o.unshift(Uo(e,i,r)),null!=(i=Re(e,t))&&o.push(Uo(e,i,r))),e=e.return}return o}function Go(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function $o(e,t,n,o,r){for(var i=t._reactName,a=[];null!==n&&n!==o;){var l=n,c=l.alternate,s=l.stateNode;if(null!==c&&c===o)break;5===l.tag&&null!==s&&(l=s,r?null!=(c=Re(n,i))&&a.unshift(Uo(n,c,l)):r||null!=(c=Re(n,i))&&a.push(Uo(n,c,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Yo=/\r\n?/g,Qo=/\u0000|\uFFFD/g;function Jo(e){return("string"===typeof e?e:""+e).replace(Yo,"\n").replace(Qo,"")}function Zo(e,t,n){if(t=Jo(t),Jo(e)!==t&&n)throw Error(i(425))}function er(){}var tr=null,nr=null;function or(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var rr="function"===typeof setTimeout?setTimeout:void 0,ir="function"===typeof clearTimeout?clearTimeout:void 0,ar="function"===typeof Promise?Promise:void 0,lr="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof ar?function(e){return ar.resolve(null).then(e).catch(cr)}:rr;function cr(e){setTimeout((function(){throw e}))}function sr(e,t){var n=t,o=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&8===r.nodeType)if("/$"===(n=r.data)){if(0===o)return e.removeChild(r),void Wt(t);o--}else"$"!==n&&"$?"!==n&&"$!"!==n||o++;n=r}while(n);Wt(t)}function ur(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function dr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fr=Math.random().toString(36).slice(2),pr="__reactFiber$"+fr,hr="__reactProps$"+fr,mr="__reactContainer$"+fr,gr="__reactEvents$"+fr,vr="__reactListeners$"+fr,br="__reactHandles$"+fr;function yr(e){var t=e[pr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mr]||n[pr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=dr(e);null!==e;){if(n=e[pr])return n;e=dr(e)}return t}n=(e=n).parentNode}return null}function wr(e){return!(e=e[pr]||e[mr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xr(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function Sr(e){return e[hr]||null}var Cr=[],kr=-1;function Er(e){return{current:e}}function Or(e){0>kr||(e.current=Cr[kr],Cr[kr]=null,kr--)}function _r(e,t){kr++,Cr[kr]=e.current,e.current=t}var Pr={},Mr=Er(Pr),Nr=Er(!1),Ir=Pr;function Rr(e,t){var n=e.type.contextTypes;if(!n)return Pr;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var r,i={};for(r in n)i[r]=t[r];return o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Tr(e){return null!==(e=e.childContextTypes)&&void 0!==e}function jr(){Or(Nr),Or(Mr)}function Ar(e,t,n){if(Mr.current!==Pr)throw Error(i(168));_r(Mr,t),_r(Nr,n)}function zr(e,t,n){var o=e.stateNode;if(t=t.childContextTypes,"function"!==typeof o.getChildContext)return n;for(var r in o=o.getChildContext())if(!(r in t))throw Error(i(108,V(e)||"Unknown",r));return L({},n,o)}function Lr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pr,Ir=Mr.current,_r(Mr,e),_r(Nr,Nr.current),!0}function Dr(e,t,n){var o=e.stateNode;if(!o)throw Error(i(169));n?(e=zr(e,t,Ir),o.__reactInternalMemoizedMergedChildContext=e,Or(Nr),Or(Mr),_r(Mr,e)):Or(Nr),_r(Nr,n)}var Br=null,Fr=!1,Hr=!1;function Wr(e){null===Br?Br=[e]:Br.push(e)}function Vr(){if(!Hr&&null!==Br){Hr=!0;var e=0,t=yt;try{var n=Br;for(yt=1;e<n.length;e++){var o=n[e];do{o=o(!0)}while(null!==o)}Br=null,Fr=!1}catch(r){throw null!==Br&&(Br=Br.slice(e+1)),Xe(Ze,Vr),r}finally{yt=t,Hr=!1}}return null}var Kr=[],qr=0,Ur=null,Xr=0,Gr=[],$r=0,Yr=null,Qr=1,Jr="";function Zr(e,t){Kr[qr++]=Xr,Kr[qr++]=Ur,Ur=e,Xr=t}function ei(e,t,n){Gr[$r++]=Qr,Gr[$r++]=Jr,Gr[$r++]=Yr,Yr=e;var o=Qr;e=Jr;var r=32-at(o)-1;o&=~(1<<r),n+=1;var i=32-at(t)+r;if(30<i){var a=r-r%5;i=(o&(1<<a)-1).toString(32),o>>=a,r-=a,Qr=1<<32-at(t)+r|n<<r|o,Jr=i+e}else Qr=1<<i|n<<r|o,Jr=e}function ti(e){null!==e.return&&(Zr(e,1),ei(e,1,0))}function ni(e){for(;e===Ur;)Ur=Kr[--qr],Kr[qr]=null,Xr=Kr[--qr],Kr[qr]=null;for(;e===Yr;)Yr=Gr[--$r],Gr[$r]=null,Jr=Gr[--$r],Gr[$r]=null,Qr=Gr[--$r],Gr[$r]=null}var oi=null,ri=null,ii=!1,ai=null;function li(e,t){var n=Rs(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function ci(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,oi=e,ri=ur(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,oi=e,ri=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Yr?{id:Qr,overflow:Jr}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Rs(18,null,null,0)).stateNode=t,n.return=e,e.child=n,oi=e,ri=null,!0);default:return!1}}function si(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function ui(e){if(ii){var t=ri;if(t){var n=t;if(!ci(e,t)){if(si(e))throw Error(i(418));t=ur(n.nextSibling);var o=oi;t&&ci(e,t)?li(o,n):(e.flags=-4097&e.flags|2,ii=!1,oi=e)}}else{if(si(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,oi=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;oi=e}function fi(e){if(e!==oi)return!1;if(!ii)return di(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!or(e.type,e.memoizedProps)),t&&(t=ri)){if(si(e))throw pi(),Error(i(418));for(;t;)li(e,t),t=ur(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ri=ur(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ri=null}}else ri=oi?ur(e.stateNode.nextSibling):null;return!0}function pi(){for(var e=ri;e;)e=ur(e.nextSibling)}function hi(){ri=oi=null,ii=!1}function mi(e){null===ai?ai=[e]:ai.push(e)}var gi=w.ReactCurrentBatchConfig;function vi(e,t){if(e&&e.defaultProps){for(var n in t=L({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var bi=Er(null),yi=null,wi=null,xi=null;function Si(){xi=wi=yi=null}function Ci(e){var t=bi.current;Or(bi),e._currentValue=t}function ki(e,t,n){for(;null!==e;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==o&&(o.childLanes|=t)):null!==o&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===n)break;e=e.return}}function Ei(e,t){yi=e,xi=wi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(wl=!0),e.firstContext=null)}function Oi(e){var t=e._currentValue;if(xi!==e)if(e={context:e,memoizedValue:t,next:null},null===wi){if(null===yi)throw Error(i(308));wi=e,yi.dependencies={lanes:0,firstContext:e}}else wi=wi.next=e;return t}var _i=null;function Pi(e){null===_i?_i=[e]:_i.push(e)}function Mi(e,t,n,o){var r=t.interleaved;return null===r?(n.next=n,Pi(t)):(n.next=r.next,r.next=n),t.interleaved=n,Ni(e,o)}function Ni(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ii=!1;function Ri(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ti(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ji(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ai(e,t,n){var o=e.updateQueue;if(null===o)return null;if(o=o.shared,0!==(2&Mc)){var r=o.pending;return null===r?t.next=t:(t.next=r.next,r.next=t),o.pending=t,Ni(e,n)}return null===(r=o.interleaved)?(t.next=t,Pi(o)):(t.next=r.next,r.next=t),o.interleaved=t,Ni(e,n)}function zi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var o=t.lanes;n|=o&=e.pendingLanes,t.lanes=n,bt(e,n)}}function Li(e,t){var n=e.updateQueue,o=e.alternate;if(null!==o&&n===(o=o.updateQueue)){var r=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?r=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?r=i=t:i=i.next=t}else r=i=t;return n={baseState:o.baseState,firstBaseUpdate:r,lastBaseUpdate:i,shared:o.shared,effects:o.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Di(e,t,n,o){var r=e.updateQueue;Ii=!1;var i=r.firstBaseUpdate,a=r.lastBaseUpdate,l=r.shared.pending;if(null!==l){r.shared.pending=null;var c=l,s=c.next;c.next=null,null===a?i=s:a.next=s,a=c;var u=e.alternate;null!==u&&((l=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===l?u.firstBaseUpdate=s:l.next=s,u.lastBaseUpdate=c))}if(null!==i){var d=r.baseState;for(a=0,u=s=c=null,l=i;;){var f=l.lane,p=l.eventTime;if((o&f)===f){null!==u&&(u=u.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,m=l;switch(f=t,p=n,m.tag){case 1:if("function"===typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null===(f="function"===typeof(h=m.payload)?h.call(p,d,f):h)||void 0===f)break e;d=L({},d,f);break e;case 2:Ii=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(f=r.effects)?r.effects=[l]:f.push(l))}else p={eventTime:p,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===u?(s=u=p,c=d):u=u.next=p,a|=f;if(null===(l=l.next)){if(null===(l=r.shared.pending))break;l=(f=l).next,f.next=null,r.lastBaseUpdate=f,r.shared.pending=null}}if(null===u&&(c=d),r.baseState=c,r.firstBaseUpdate=s,r.lastBaseUpdate=u,null!==(t=r.shared.interleaved)){r=t;do{a|=r.lane,r=r.next}while(r!==t)}else null===i&&(r.shared.lanes=0);Lc|=a,e.lanes=a,e.memoizedState=d}}function Bi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var o=e[t],r=o.callback;if(null!==r){if(o.callback=null,o=n,"function"!==typeof r)throw Error(i(191,r));r.call(o)}}}var Fi=(new o.Component).refs;function Hi(e,t,n,o){n=null===(n=n(o,t=e.memoizedState))||void 0===n?t:L({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Wi={isMounted:function(e){return!!(e=e._reactInternals)&&We(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var o=ts(),r=ns(e),i=ji(o,r);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Ai(e,i,r))&&(os(t,e,r,o),zi(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var o=ts(),r=ns(e),i=ji(o,r);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Ai(e,i,r))&&(os(t,e,r,o),zi(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ts(),o=ns(e),r=ji(n,o);r.tag=2,void 0!==t&&null!==t&&(r.callback=t),null!==(t=Ai(e,r,o))&&(os(t,e,o,n),zi(t,e,o))}};function Vi(e,t,n,o,r,i,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(o,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!co(n,o)||!co(r,i))}function Ki(e,t,n){var o=!1,r=Pr,i=t.contextType;return"object"===typeof i&&null!==i?i=Oi(i):(r=Tr(t)?Ir:Mr.current,i=(o=null!==(o=t.contextTypes)&&void 0!==o)?Rr(e,r):Pr),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Wi,e.stateNode=t,t._reactInternals=e,o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=i),t}function qi(e,t,n,o){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,o),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,o),t.state!==e&&Wi.enqueueReplaceState(t,t.state,null)}function Ui(e,t,n,o){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs=Fi,Ri(e);var i=t.contextType;"object"===typeof i&&null!==i?r.context=Oi(i):(i=Tr(t)?Ir:Mr.current,r.context=Rr(e,i)),r.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(Hi(e,t,i,n),r.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof r.getSnapshotBeforeUpdate||"function"!==typeof r.UNSAFE_componentWillMount&&"function"!==typeof r.componentWillMount||(t=r.state,"function"===typeof r.componentWillMount&&r.componentWillMount(),"function"===typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),t!==r.state&&Wi.enqueueReplaceState(r,r.state,null),Di(e,n,r,o),r.state=e.memoizedState),"function"===typeof r.componentDidMount&&(e.flags|=4194308)}function Xi(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var o=n.stateNode}if(!o)throw Error(i(147,e));var r=o,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=r.refs;t===Fi&&(t=r.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function Gi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function $i(e){return(0,e._init)(e._payload)}function Yi(e){function t(t,n){if(e){var o=t.deletions;null===o?(t.deletions=[n],t.flags|=16):o.push(n)}}function n(n,o){if(!e)return null;for(;null!==o;)t(n,o),o=o.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function r(e,t){return(e=js(e,t)).index=0,e.sibling=null,e}function a(t,n,o){return t.index=o,e?null!==(o=t.alternate)?(o=o.index)<n?(t.flags|=2,n):o:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function c(e,t,n,o){return null===t||6!==t.tag?((t=Ds(n,e.mode,o)).return=e,t):((t=r(t,n)).return=e,t)}function s(e,t,n,o){var i=n.type;return i===C?d(e,t,n.props.children,o,n.key):null!==t&&(t.elementType===i||"object"===typeof i&&null!==i&&i.$$typeof===R&&$i(i)===t.type)?((o=r(t,n.props)).ref=Xi(e,t,n),o.return=e,o):((o=As(n.type,n.key,n.props,null,e.mode,o)).ref=Xi(e,t,n),o.return=e,o)}function u(e,t,n,o){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Bs(n,e.mode,o)).return=e,t):((t=r(t,n.children||[])).return=e,t)}function d(e,t,n,o,i){return null===t||7!==t.tag?((t=zs(n,e.mode,o,i)).return=e,t):((t=r(t,n)).return=e,t)}function f(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Ds(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case x:return(n=As(t.type,t.key,t.props,null,e.mode,n)).ref=Xi(e,null,t),n.return=e,n;case S:return(t=Bs(t,e.mode,n)).return=e,t;case R:return f(e,(0,t._init)(t._payload),n)}if(te(t)||A(t))return(t=zs(t,e.mode,n,null)).return=e,t;Gi(e,t)}return null}function p(e,t,n,o){var r=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==r?null:c(e,t,""+n,o);if("object"===typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===r?s(e,t,n,o):null;case S:return n.key===r?u(e,t,n,o):null;case R:return p(e,t,(r=n._init)(n._payload),o)}if(te(n)||A(n))return null!==r?null:d(e,t,n,o,null);Gi(e,n)}return null}function h(e,t,n,o,r){if("string"===typeof o&&""!==o||"number"===typeof o)return c(t,e=e.get(n)||null,""+o,r);if("object"===typeof o&&null!==o){switch(o.$$typeof){case x:return s(t,e=e.get(null===o.key?n:o.key)||null,o,r);case S:return u(t,e=e.get(null===o.key?n:o.key)||null,o,r);case R:return h(e,t,n,(0,o._init)(o._payload),r)}if(te(o)||A(o))return d(t,e=e.get(n)||null,o,r,null);Gi(t,o)}return null}function m(r,i,l,c){for(var s=null,u=null,d=i,m=i=0,g=null;null!==d&&m<l.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=p(r,d,l[m],c);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(r,d),i=a(v,i,m),null===u?s=v:u.sibling=v,u=v,d=g}if(m===l.length)return n(r,d),ii&&Zr(r,m),s;if(null===d){for(;m<l.length;m++)null!==(d=f(r,l[m],c))&&(i=a(d,i,m),null===u?s=d:u.sibling=d,u=d);return ii&&Zr(r,m),s}for(d=o(r,d);m<l.length;m++)null!==(g=h(d,r,m,l[m],c))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),i=a(g,i,m),null===u?s=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(r,e)})),ii&&Zr(r,m),s}function g(r,l,c,s){var u=A(c);if("function"!==typeof u)throw Error(i(150));if(null==(c=u.call(c)))throw Error(i(151));for(var d=u=null,m=l,g=l=0,v=null,b=c.next();null!==m&&!b.done;g++,b=c.next()){m.index>g?(v=m,m=null):v=m.sibling;var y=p(r,m,b.value,s);if(null===y){null===m&&(m=v);break}e&&m&&null===y.alternate&&t(r,m),l=a(y,l,g),null===d?u=y:d.sibling=y,d=y,m=v}if(b.done)return n(r,m),ii&&Zr(r,g),u;if(null===m){for(;!b.done;g++,b=c.next())null!==(b=f(r,b.value,s))&&(l=a(b,l,g),null===d?u=b:d.sibling=b,d=b);return ii&&Zr(r,g),u}for(m=o(r,m);!b.done;g++,b=c.next())null!==(b=h(m,r,g,b.value,s))&&(e&&null!==b.alternate&&m.delete(null===b.key?g:b.key),l=a(b,l,g),null===d?u=b:d.sibling=b,d=b);return e&&m.forEach((function(e){return t(r,e)})),ii&&Zr(r,g),u}return function e(o,i,a,c){if("object"===typeof a&&null!==a&&a.type===C&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case x:e:{for(var s=a.key,u=i;null!==u;){if(u.key===s){if((s=a.type)===C){if(7===u.tag){n(o,u.sibling),(i=r(u,a.props.children)).return=o,o=i;break e}}else if(u.elementType===s||"object"===typeof s&&null!==s&&s.$$typeof===R&&$i(s)===u.type){n(o,u.sibling),(i=r(u,a.props)).ref=Xi(o,u,a),i.return=o,o=i;break e}n(o,u);break}t(o,u),u=u.sibling}a.type===C?((i=zs(a.props.children,o.mode,c,a.key)).return=o,o=i):((c=As(a.type,a.key,a.props,null,o.mode,c)).ref=Xi(o,i,a),c.return=o,o=c)}return l(o);case S:e:{for(u=a.key;null!==i;){if(i.key===u){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(o,i.sibling),(i=r(i,a.children||[])).return=o,o=i;break e}n(o,i);break}t(o,i),i=i.sibling}(i=Bs(a,o.mode,c)).return=o,o=i}return l(o);case R:return e(o,i,(u=a._init)(a._payload),c)}if(te(a))return m(o,i,a,c);if(A(a))return g(o,i,a,c);Gi(o,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==i&&6===i.tag?(n(o,i.sibling),(i=r(i,a)).return=o,o=i):(n(o,i),(i=Ds(a,o.mode,c)).return=o,o=i),l(o)):n(o,i)}}var Qi=Yi(!0),Ji=Yi(!1),Zi={},ea=Er(Zi),ta=Er(Zi),na=Er(Zi);function oa(e){if(e===Zi)throw Error(i(174));return e}function ra(e,t){switch(_r(na,t),_r(ta,e),_r(ea,Zi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ce(null,"");break;default:t=ce(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Or(ea),_r(ea,t)}function ia(){Or(ea),Or(ta),Or(na)}function aa(e){oa(na.current);var t=oa(ea.current),n=ce(t,e.type);t!==n&&(_r(ta,e),_r(ea,n))}function la(e){ta.current===e&&(Or(ea),Or(ta))}var ca=Er(0);function sa(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ua=[];function da(){for(var e=0;e<ua.length;e++)ua[e]._workInProgressVersionPrimary=null;ua.length=0}var fa=w.ReactCurrentDispatcher,pa=w.ReactCurrentBatchConfig,ha=0,ma=null,ga=null,va=null,ba=!1,ya=!1,wa=0,xa=0;function Sa(){throw Error(i(321))}function Ca(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lo(e[n],t[n]))return!1;return!0}function ka(e,t,n,o,r,a){if(ha=a,ma=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fa.current=null===e||null===e.memoizedState?ll:cl,e=n(o,r),ya){a=0;do{if(ya=!1,wa=0,25<=a)throw Error(i(301));a+=1,va=ga=null,t.updateQueue=null,fa.current=sl,e=n(o,r)}while(ya)}if(fa.current=al,t=null!==ga&&null!==ga.next,ha=0,va=ga=ma=null,ba=!1,t)throw Error(i(300));return e}function Ea(){var e=0!==wa;return wa=0,e}function Oa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===va?ma.memoizedState=va=e:va=va.next=e,va}function _a(){if(null===ga){var e=ma.alternate;e=null!==e?e.memoizedState:null}else e=ga.next;var t=null===va?ma.memoizedState:va.next;if(null!==t)va=t,ga=e;else{if(null===e)throw Error(i(310));e={memoizedState:(ga=e).memoizedState,baseState:ga.baseState,baseQueue:ga.baseQueue,queue:ga.queue,next:null},null===va?ma.memoizedState=va=e:va=va.next=e}return va}function Pa(e,t){return"function"===typeof t?t(e):t}function Ma(e){var t=_a(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var o=ga,r=o.baseQueue,a=n.pending;if(null!==a){if(null!==r){var l=r.next;r.next=a.next,a.next=l}o.baseQueue=r=a,n.pending=null}if(null!==r){a=r.next,o=o.baseState;var c=l=null,s=null,u=a;do{var d=u.lane;if((ha&d)===d)null!==s&&(s=s.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),o=u.hasEagerState?u.eagerState:e(o,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===s?(c=s=f,l=o):s=s.next=f,ma.lanes|=d,Lc|=d}u=u.next}while(null!==u&&u!==a);null===s?l=o:s.next=c,lo(o,t.memoizedState)||(wl=!0),t.memoizedState=o,t.baseState=l,t.baseQueue=s,n.lastRenderedState=o}if(null!==(e=n.interleaved)){r=e;do{a=r.lane,ma.lanes|=a,Lc|=a,r=r.next}while(r!==e)}else null===r&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Na(e){var t=_a(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var o=n.dispatch,r=n.pending,a=t.memoizedState;if(null!==r){n.pending=null;var l=r=r.next;do{a=e(a,l.action),l=l.next}while(l!==r);lo(a,t.memoizedState)||(wl=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,o]}function Ia(){}function Ra(e,t){var n=ma,o=_a(),r=t(),a=!lo(o.memoizedState,r);if(a&&(o.memoizedState=r,wl=!0),o=o.queue,Ka(Aa.bind(null,n,o,e),[e]),o.getSnapshot!==t||a||null!==va&&1&va.memoizedState.tag){if(n.flags|=2048,Ba(9,ja.bind(null,n,o,r,t),void 0,null),null===Nc)throw Error(i(349));0!==(30&ha)||Ta(n,t,r)}return r}function Ta(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function ja(e,t,n,o){t.value=n,t.getSnapshot=o,za(t)&&La(e)}function Aa(e,t,n){return n((function(){za(t)&&La(e)}))}function za(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lo(e,n)}catch(o){return!0}}function La(e){var t=Ni(e,1);null!==t&&os(t,e,1,-1)}function Da(e){var t=Oa();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:e},t.queue=e,e=e.dispatch=nl.bind(null,ma,e),[t.memoizedState,e]}function Ba(e,t,n,o){return e={tag:e,create:t,destroy:n,deps:o,next:null},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(o=n.next,n.next=e,e.next=o,t.lastEffect=e),e}function Fa(){return _a().memoizedState}function Ha(e,t,n,o){var r=Oa();ma.flags|=e,r.memoizedState=Ba(1|t,n,void 0,void 0===o?null:o)}function Wa(e,t,n,o){var r=_a();o=void 0===o?null:o;var i=void 0;if(null!==ga){var a=ga.memoizedState;if(i=a.destroy,null!==o&&Ca(o,a.deps))return void(r.memoizedState=Ba(t,n,i,o))}ma.flags|=e,r.memoizedState=Ba(1|t,n,i,o)}function Va(e,t){return Ha(8390656,8,e,t)}function Ka(e,t){return Wa(2048,8,e,t)}function qa(e,t){return Wa(4,2,e,t)}function Ua(e,t){return Wa(4,4,e,t)}function Xa(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ga(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Wa(4,4,Xa.bind(null,t,e),n)}function $a(){}function Ya(e,t){var n=_a();t=void 0===t?null:t;var o=n.memoizedState;return null!==o&&null!==t&&Ca(t,o[1])?o[0]:(n.memoizedState=[e,t],e)}function Qa(e,t){var n=_a();t=void 0===t?null:t;var o=n.memoizedState;return null!==o&&null!==t&&Ca(t,o[1])?o[0]:(e=e(),n.memoizedState=[e,t],e)}function Ja(e,t,n){return 0===(21&ha)?(e.baseState&&(e.baseState=!1,wl=!0),e.memoizedState=n):(lo(n,t)||(n=mt(),ma.lanes|=n,Lc|=n,e.baseState=!0),t)}function Za(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var o=pa.transition;pa.transition={};try{e(!1),t()}finally{yt=n,pa.transition=o}}function el(){return _a().memoizedState}function tl(e,t,n){var o=ns(e);if(n={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null},ol(e))rl(t,n);else if(null!==(n=Mi(e,t,n,o))){os(n,e,o,ts()),il(n,t,o)}}function nl(e,t,n){var o=ns(e),r={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null};if(ol(e))rl(t,r);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(r.hasEagerState=!0,r.eagerState=l,lo(l,a)){var c=t.interleaved;return null===c?(r.next=r,Pi(t)):(r.next=c.next,c.next=r),void(t.interleaved=r)}}catch(s){}null!==(n=Mi(e,t,r,o))&&(os(n,e,o,r=ts()),il(n,t,o))}}function ol(e){var t=e.alternate;return e===ma||null!==t&&t===ma}function rl(e,t){ya=ba=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function il(e,t,n){if(0!==(4194240&n)){var o=t.lanes;n|=o&=e.pendingLanes,t.lanes=n,bt(e,n)}}var al={readContext:Oi,useCallback:Sa,useContext:Sa,useEffect:Sa,useImperativeHandle:Sa,useInsertionEffect:Sa,useLayoutEffect:Sa,useMemo:Sa,useReducer:Sa,useRef:Sa,useState:Sa,useDebugValue:Sa,useDeferredValue:Sa,useTransition:Sa,useMutableSource:Sa,useSyncExternalStore:Sa,useId:Sa,unstable_isNewReconciler:!1},ll={readContext:Oi,useCallback:function(e,t){return Oa().memoizedState=[e,void 0===t?null:t],e},useContext:Oi,useEffect:Va,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ha(4194308,4,Xa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ha(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ha(4,2,e,t)},useMemo:function(e,t){var n=Oa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=Oa();return t=void 0!==n?n(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=tl.bind(null,ma,e),[o.memoizedState,e]},useRef:function(e){return e={current:e},Oa().memoizedState=e},useState:Da,useDebugValue:$a,useDeferredValue:function(e){return Oa().memoizedState=e},useTransition:function(){var e=Da(!1),t=e[0];return e=Za.bind(null,e[1]),Oa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var o=ma,r=Oa();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Nc)throw Error(i(349));0!==(30&ha)||Ta(o,t,n)}r.memoizedState=n;var a={value:n,getSnapshot:t};return r.queue=a,Va(Aa.bind(null,o,a,e),[e]),o.flags|=2048,Ba(9,ja.bind(null,o,a,n,t),void 0,null),n},useId:function(){var e=Oa(),t=Nc.identifierPrefix;if(ii){var n=Jr;t=":"+t+"R"+(n=(Qr&~(1<<32-at(Qr)-1)).toString(32)+n),0<(n=wa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=xa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},cl={readContext:Oi,useCallback:Ya,useContext:Oi,useEffect:Ka,useImperativeHandle:Ga,useInsertionEffect:qa,useLayoutEffect:Ua,useMemo:Qa,useReducer:Ma,useRef:Fa,useState:function(){return Ma(Pa)},useDebugValue:$a,useDeferredValue:function(e){return Ja(_a(),ga.memoizedState,e)},useTransition:function(){return[Ma(Pa)[0],_a().memoizedState]},useMutableSource:Ia,useSyncExternalStore:Ra,useId:el,unstable_isNewReconciler:!1},sl={readContext:Oi,useCallback:Ya,useContext:Oi,useEffect:Ka,useImperativeHandle:Ga,useInsertionEffect:qa,useLayoutEffect:Ua,useMemo:Qa,useReducer:Na,useRef:Fa,useState:function(){return Na(Pa)},useDebugValue:$a,useDeferredValue:function(e){var t=_a();return null===ga?t.memoizedState=e:Ja(t,ga.memoizedState,e)},useTransition:function(){return[Na(Pa)[0],_a().memoizedState]},useMutableSource:Ia,useSyncExternalStore:Ra,useId:el,unstable_isNewReconciler:!1};function ul(e,t){try{var n="",o=t;do{n+=H(o),o=o.return}while(o);var r=n}catch(i){r="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:r,digest:null}}function dl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fl(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var pl="function"===typeof WeakMap?WeakMap:Map;function hl(e,t,n){(n=ji(-1,n)).tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){qc||(qc=!0,Uc=o),fl(0,t)},n}function ml(e,t,n){(n=ji(-1,n)).tag=3;var o=e.type.getDerivedStateFromError;if("function"===typeof o){var r=t.value;n.payload=function(){return o(r)},n.callback=function(){fl(0,t)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){fl(0,t),"function"!==typeof o&&(null===Xc?Xc=new Set([this]):Xc.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gl(e,t,n){var o=e.pingCache;if(null===o){o=e.pingCache=new pl;var r=new Set;o.set(t,r)}else void 0===(r=o.get(t))&&(r=new Set,o.set(t,r));r.has(n)||(r.add(n),e=Os.bind(null,e,t,n),t.then(e,e))}function vl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function bl(e,t,n,o,r){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=ji(-1,1)).tag=2,Ai(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=r,e)}var yl=w.ReactCurrentOwner,wl=!1;function xl(e,t,n,o){t.child=null===e?Ji(t,null,n,o):Qi(t,e.child,n,o)}function Sl(e,t,n,o,r){n=n.render;var i=t.ref;return Ei(t,r),o=ka(e,t,n,o,i,r),n=Ea(),null===e||wl?(ii&&n&&ti(t),t.flags|=1,xl(e,t,o,r),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,ql(e,t,r))}function Cl(e,t,n,o,r){if(null===e){var i=n.type;return"function"!==typeof i||Ts(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=As(n.type,null,o,t,t.mode,r)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,kl(e,t,i,o,r))}if(i=e.child,0===(e.lanes&r)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:co)(a,o)&&e.ref===t.ref)return ql(e,t,r)}return t.flags|=1,(e=js(i,o)).ref=t.ref,e.return=t,t.child=e}function kl(e,t,n,o,r){if(null!==e){var i=e.memoizedProps;if(co(i,o)&&e.ref===t.ref){if(wl=!1,t.pendingProps=o=i,0===(e.lanes&r))return t.lanes=e.lanes,ql(e,t,r);0!==(131072&e.flags)&&(wl=!0)}}return _l(e,t,n,o,r)}function El(e,t,n){var o=t.pendingProps,r=o.children,i=null!==e?e.memoizedState:null;if("hidden"===o.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},_r(jc,Tc),Tc|=n;else{if(0===(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,_r(jc,Tc),Tc|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=null!==i?i.baseLanes:n,_r(jc,Tc),Tc|=o}else null!==i?(o=i.baseLanes|n,t.memoizedState=null):o=n,_r(jc,Tc),Tc|=o;return xl(e,t,r,n),t.child}function Ol(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function _l(e,t,n,o,r){var i=Tr(n)?Ir:Mr.current;return i=Rr(t,i),Ei(t,r),n=ka(e,t,n,o,i,r),o=Ea(),null===e||wl?(ii&&o&&ti(t),t.flags|=1,xl(e,t,n,r),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,ql(e,t,r))}function Pl(e,t,n,o,r){if(Tr(n)){var i=!0;Lr(t)}else i=!1;if(Ei(t,r),null===t.stateNode)Kl(e,t),Ki(t,n,o),Ui(t,n,o,r),o=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var c=a.context,s=n.contextType;"object"===typeof s&&null!==s?s=Oi(s):s=Rr(t,s=Tr(n)?Ir:Mr.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(l!==o||c!==s)&&qi(t,a,o,s),Ii=!1;var f=t.memoizedState;a.state=f,Di(t,o,a,r),c=t.memoizedState,l!==o||f!==c||Nr.current||Ii?("function"===typeof u&&(Hi(t,n,u,o),c=t.memoizedState),(l=Ii||Vi(t,n,l,o,f,c,s))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=c),a.props=o,a.state=c,a.context=s,o=l):("function"===typeof a.componentDidMount&&(t.flags|=4194308),o=!1)}else{a=t.stateNode,Ti(e,t),l=t.memoizedProps,s=t.type===t.elementType?l:vi(t.type,l),a.props=s,d=t.pendingProps,f=a.context,"object"===typeof(c=n.contextType)&&null!==c?c=Oi(c):c=Rr(t,c=Tr(n)?Ir:Mr.current);var p=n.getDerivedStateFromProps;(u="function"===typeof p||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(l!==d||f!==c)&&qi(t,a,o,c),Ii=!1,f=t.memoizedState,a.state=f,Di(t,o,a,r);var h=t.memoizedState;l!==d||f!==h||Nr.current||Ii?("function"===typeof p&&(Hi(t,n,p,o),h=t.memoizedState),(s=Ii||Vi(t,n,s,o,f,h,c)||!1)?(u||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(o,h,c),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(o,h,c)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=h),a.props=o,a.state=h,a.context=c,o=s):("function"!==typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),o=!1)}return Ml(e,t,n,o,i,r)}function Ml(e,t,n,o,r,i){Ol(e,t);var a=0!==(128&t.flags);if(!o&&!a)return r&&Dr(t,n,!1),ql(e,t,i);o=t.stateNode,yl.current=t;var l=a&&"function"!==typeof n.getDerivedStateFromError?null:o.render();return t.flags|=1,null!==e&&a?(t.child=Qi(t,e.child,null,i),t.child=Qi(t,null,l,i)):xl(e,t,l,i),t.memoizedState=o.state,r&&Dr(t,n,!0),t.child}function Nl(e){var t=e.stateNode;t.pendingContext?Ar(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ar(0,t.context,!1),ra(e,t.containerInfo)}function Il(e,t,n,o,r){return hi(),mi(r),t.flags|=256,xl(e,t,n,o),t.child}var Rl,Tl,jl,Al,zl={dehydrated:null,treeContext:null,retryLane:0};function Ll(e){return{baseLanes:e,cachePool:null,transitions:null}}function Dl(e,t,n){var o,r=t.pendingProps,a=ca.current,l=!1,c=0!==(128&t.flags);if((o=c)||(o=(null===e||null!==e.memoizedState)&&0!==(2&a)),o?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),_r(ca,1&a),null===e)return ui(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(c=r.children,e=r.fallback,l?(r=t.mode,l=t.child,c={mode:"hidden",children:c},0===(1&r)&&null!==l?(l.childLanes=0,l.pendingProps=c):l=Ls(c,r,0,null),e=zs(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Ll(n),t.memoizedState=zl,e):Bl(t,c));if(null!==(a=e.memoizedState)&&null!==(o=a.dehydrated))return function(e,t,n,o,r,a,l){if(n)return 256&t.flags?(t.flags&=-257,Fl(e,t,l,o=dl(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=o.fallback,r=t.mode,o=Ls({mode:"visible",children:o.children},r,0,null),(a=zs(a,r,l,null)).flags|=2,o.return=t,a.return=t,o.sibling=a,t.child=o,0!==(1&t.mode)&&Qi(t,e.child,null,l),t.child.memoizedState=Ll(l),t.memoizedState=zl,a);if(0===(1&t.mode))return Fl(e,t,l,null);if("$!"===r.data){if(o=r.nextSibling&&r.nextSibling.dataset)var c=o.dgst;return o=c,Fl(e,t,l,o=dl(a=Error(i(419)),o,void 0))}if(c=0!==(l&e.childLanes),wl||c){if(null!==(o=Nc)){switch(l&-l){case 4:r=2;break;case 16:r=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:r=32;break;case 536870912:r=268435456;break;default:r=0}0!==(r=0!==(r&(o.suspendedLanes|l))?0:r)&&r!==a.retryLane&&(a.retryLane=r,Ni(e,r),os(o,e,r,-1))}return gs(),Fl(e,t,l,o=dl(Error(i(421))))}return"$?"===r.data?(t.flags|=128,t.child=e.child,t=Ps.bind(null,e),r._reactRetry=t,null):(e=a.treeContext,ri=ur(r.nextSibling),oi=t,ii=!0,ai=null,null!==e&&(Gr[$r++]=Qr,Gr[$r++]=Jr,Gr[$r++]=Yr,Qr=e.id,Jr=e.overflow,Yr=t),t=Bl(t,o.children),t.flags|=4096,t)}(e,t,c,r,o,a,n);if(l){l=r.fallback,c=t.mode,o=(a=e.child).sibling;var s={mode:"hidden",children:r.children};return 0===(1&c)&&t.child!==a?((r=t.child).childLanes=0,r.pendingProps=s,t.deletions=null):(r=js(a,s)).subtreeFlags=14680064&a.subtreeFlags,null!==o?l=js(o,l):(l=zs(l,c,n,null)).flags|=2,l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,c=null===(c=e.child.memoizedState)?Ll(n):{baseLanes:c.baseLanes|n,cachePool:null,transitions:c.transitions},l.memoizedState=c,l.childLanes=e.childLanes&~n,t.memoizedState=zl,r}return e=(l=e.child).sibling,r=js(l,{mode:"visible",children:r.children}),0===(1&t.mode)&&(r.lanes=n),r.return=t,r.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Bl(e,t){return(t=Ls({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fl(e,t,n,o){return null!==o&&mi(o),Qi(t,e.child,null,n),(e=Bl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Hl(e,t,n){e.lanes|=t;var o=e.alternate;null!==o&&(o.lanes|=t),ki(e.return,t,n)}function Wl(e,t,n,o,r){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:n,tailMode:r}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=o,i.tail=n,i.tailMode=r)}function Vl(e,t,n){var o=t.pendingProps,r=o.revealOrder,i=o.tail;if(xl(e,t,o.children,n),0!==(2&(o=ca.current)))o=1&o|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Hl(e,n,t);else if(19===e.tag)Hl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}if(_r(ca,o),0===(1&t.mode))t.memoizedState=null;else switch(r){case"forwards":for(n=t.child,r=null;null!==n;)null!==(e=n.alternate)&&null===sa(e)&&(r=n),n=n.sibling;null===(n=r)?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),Wl(t,!1,r,n,i);break;case"backwards":for(n=null,r=t.child,t.child=null;null!==r;){if(null!==(e=r.alternate)&&null===sa(e)){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}Wl(t,!0,n,null,i);break;case"together":Wl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Kl(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ql(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Lc|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=js(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=js(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ul(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var o=null;null!==n;)null!==n.alternate&&(o=n),n=n.sibling;null===o?t||null===e.tail?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Xl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,o=0;if(t)for(var r=e.child;null!==r;)n|=r.lanes|r.childLanes,o|=14680064&r.subtreeFlags,o|=14680064&r.flags,r.return=e,r=r.sibling;else for(r=e.child;null!==r;)n|=r.lanes|r.childLanes,o|=r.subtreeFlags,o|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=o,e.childLanes=n,t}function Gl(e,t,n){var o=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xl(t),null;case 1:case 17:return Tr(t.type)&&jr(),Xl(t),null;case 3:return o=t.stateNode,ia(),Or(Nr),Or(Mr),da(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),null!==e&&null!==e.child||(fi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==ai&&(ls(ai),ai=null))),Tl(e,t),Xl(t),null;case 5:la(t);var r=oa(na.current);if(n=t.type,null!==e&&null!=t.stateNode)jl(e,t,n,o,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(null===t.stateNode)throw Error(i(166));return Xl(t),null}if(e=oa(ea.current),fi(t)){o=t.stateNode,n=t.type;var a=t.memoizedProps;switch(o[pr]=t,o[hr]=a,e=0!==(1&t.mode),n){case"dialog":Fo("cancel",o),Fo("close",o);break;case"iframe":case"object":case"embed":Fo("load",o);break;case"video":case"audio":for(r=0;r<zo.length;r++)Fo(zo[r],o);break;case"source":Fo("error",o);break;case"img":case"image":case"link":Fo("error",o),Fo("load",o);break;case"details":Fo("toggle",o);break;case"input":Y(o,a),Fo("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!a.multiple},Fo("invalid",o);break;case"textarea":re(o,a),Fo("invalid",o)}for(var c in be(n,a),r=null,a)if(a.hasOwnProperty(c)){var s=a[c];"children"===c?"string"===typeof s?o.textContent!==s&&(!0!==a.suppressHydrationWarning&&Zo(o.textContent,s,e),r=["children",s]):"number"===typeof s&&o.textContent!==""+s&&(!0!==a.suppressHydrationWarning&&Zo(o.textContent,s,e),r=["children",""+s]):l.hasOwnProperty(c)&&null!=s&&"onScroll"===c&&Fo("scroll",o)}switch(n){case"input":U(o),Z(o,a,!0);break;case"textarea":U(o),ae(o);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(o.onclick=er)}o=r,t.updateQueue=o,null!==o&&(t.flags|=4)}else{c=9===r.nodeType?r:r.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof o.is?e=c.createElement(n,{is:o.is}):(e=c.createElement(n),"select"===n&&(c=e,o.multiple?c.multiple=!0:o.size&&(c.size=o.size))):e=c.createElementNS(e,n),e[pr]=t,e[hr]=o,Rl(e,t,!1,!1),t.stateNode=e;e:{switch(c=ye(n,o),n){case"dialog":Fo("cancel",e),Fo("close",e),r=o;break;case"iframe":case"object":case"embed":Fo("load",e),r=o;break;case"video":case"audio":for(r=0;r<zo.length;r++)Fo(zo[r],e);r=o;break;case"source":Fo("error",e),r=o;break;case"img":case"image":case"link":Fo("error",e),Fo("load",e),r=o;break;case"details":Fo("toggle",e),r=o;break;case"input":Y(e,o),r=$(e,o),Fo("invalid",e);break;case"option":default:r=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},r=L({},o,{value:void 0}),Fo("invalid",e);break;case"textarea":re(e,o),r=oe(e,o),Fo("invalid",e)}for(a in be(n,r),s=r)if(s.hasOwnProperty(a)){var u=s[a];"style"===a?ge(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===a?"string"===typeof u?("textarea"!==n||""!==u)&&fe(e,u):"number"===typeof u&&fe(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(l.hasOwnProperty(a)?null!=u&&"onScroll"===a&&Fo("scroll",e):null!=u&&y(e,a,u,c))}switch(n){case"input":U(e),Z(e,o,!1);break;case"textarea":U(e),ae(e);break;case"option":null!=o.value&&e.setAttribute("value",""+K(o.value));break;case"select":e.multiple=!!o.multiple,null!=(a=o.value)?ne(e,!!o.multiple,a,!1):null!=o.defaultValue&&ne(e,!!o.multiple,o.defaultValue,!0);break;default:"function"===typeof r.onClick&&(e.onclick=er)}switch(n){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Xl(t),null;case 6:if(e&&null!=t.stateNode)Al(e,t,e.memoizedProps,o);else{if("string"!==typeof o&&null===t.stateNode)throw Error(i(166));if(n=oa(na.current),oa(ea.current),fi(t)){if(o=t.stateNode,n=t.memoizedProps,o[pr]=t,(a=o.nodeValue!==n)&&null!==(e=oi))switch(e.tag){case 3:Zo(o.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Zo(o.nodeValue,n,0!==(1&e.mode))}a&&(t.flags|=4)}else(o=(9===n.nodeType?n:n.ownerDocument).createTextNode(o))[pr]=t,t.stateNode=o}return Xl(t),null;case 13:if(Or(ca),o=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==ri&&0!==(1&t.mode)&&0===(128&t.flags))pi(),hi(),t.flags|=98560,a=!1;else if(a=fi(t),null!==o&&null!==o.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[pr]=t}else hi(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Xl(t),a=!1}else null!==ai&&(ls(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((o=null!==o)!==(null!==e&&null!==e.memoizedState)&&o&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ca.current)?0===Ac&&(Ac=3):gs())),null!==t.updateQueue&&(t.flags|=4),Xl(t),null);case 4:return ia(),Tl(e,t),null===e&&Vo(t.stateNode.containerInfo),Xl(t),null;case 10:return Ci(t.type._context),Xl(t),null;case 19:if(Or(ca),null===(a=t.memoizedState))return Xl(t),null;if(o=0!==(128&t.flags),null===(c=a.rendering))if(o)Ul(a,!1);else{if(0!==Ac||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(c=sa(e))){for(t.flags|=128,Ul(a,!1),null!==(o=c.updateQueue)&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=n,n=t.child;null!==n;)e=o,(a=n).flags&=14680066,null===(c=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=c.childLanes,a.lanes=c.lanes,a.child=c.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=c.memoizedProps,a.memoizedState=c.memoizedState,a.updateQueue=c.updateQueue,a.type=c.type,e=c.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return _r(ca,1&ca.current|2),t.child}e=e.sibling}null!==a.tail&&Qe()>Vc&&(t.flags|=128,o=!0,Ul(a,!1),t.lanes=4194304)}else{if(!o)if(null!==(e=sa(c))){if(t.flags|=128,o=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ul(a,!0),null===a.tail&&"hidden"===a.tailMode&&!c.alternate&&!ii)return Xl(t),null}else 2*Qe()-a.renderingStartTime>Vc&&1073741824!==n&&(t.flags|=128,o=!0,Ul(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=a.last)?n.sibling=c:t.child=c,a.last=c)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Qe(),t.sibling=null,n=ca.current,_r(ca,o?1&n|2:1&n),t):(Xl(t),null);case 22:case 23:return fs(),o=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==o&&(t.flags|=8192),o&&0!==(1&t.mode)?0!==(1073741824&Tc)&&(Xl(t),6&t.subtreeFlags&&(t.flags|=8192)):Xl(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function $l(e,t){switch(ni(t),t.tag){case 1:return Tr(t.type)&&jr(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ia(),Or(Nr),Or(Mr),da(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return la(t),null;case 13:if(Or(ca),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Or(ca),null;case 4:return ia(),null;case 10:return Ci(t.type._context),null;case 22:case 23:return fs(),null;default:return null}}Rl=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Tl=function(){},jl=function(e,t,n,o){var r=e.memoizedProps;if(r!==o){e=t.stateNode,oa(ea.current);var i,a=null;switch(n){case"input":r=$(e,r),o=$(e,o),a=[];break;case"select":r=L({},r,{value:void 0}),o=L({},o,{value:void 0}),a=[];break;case"textarea":r=oe(e,r),o=oe(e,o),a=[];break;default:"function"!==typeof r.onClick&&"function"===typeof o.onClick&&(e.onclick=er)}for(u in be(n,o),n=null,r)if(!o.hasOwnProperty(u)&&r.hasOwnProperty(u)&&null!=r[u])if("style"===u){var c=r[u];for(i in c)c.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(l.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in o){var s=o[u];if(c=null!=r?r[u]:void 0,o.hasOwnProperty(u)&&s!==c&&(null!=s||null!=c))if("style"===u)if(c){for(i in c)!c.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&c[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(a||(a=[]),a.push(u,n)),n=s;else"dangerouslySetInnerHTML"===u?(s=s?s.__html:void 0,c=c?c.__html:void 0,null!=s&&c!==s&&(a=a||[]).push(u,s)):"children"===u?"string"!==typeof s&&"number"!==typeof s||(a=a||[]).push(u,""+s):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(l.hasOwnProperty(u)?(null!=s&&"onScroll"===u&&Fo("scroll",e),a||c===s||(a=[])):(a=a||[]).push(u,s))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Al=function(e,t,n,o){n!==o&&(t.flags|=4)};var Yl=!1,Ql=!1,Jl="function"===typeof WeakSet?WeakSet:Set,Zl=null;function ec(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(o){Es(e,t,o)}else n.current=null}function tc(e,t,n){try{n()}catch(o){Es(e,t,o)}}var nc=!1;function oc(e,t,n){var o=t.updateQueue;if(null!==(o=null!==o?o.lastEffect:null)){var r=o=o.next;do{if((r.tag&e)===e){var i=r.destroy;r.destroy=void 0,void 0!==i&&tc(t,n,i)}r=r.next}while(r!==o)}}function rc(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var o=n.create;n.destroy=o()}n=n.next}while(n!==t)}}function ic(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function ac(e){var t=e.alternate;null!==t&&(e.alternate=null,ac(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[pr],delete t[hr],delete t[gr],delete t[vr],delete t[br])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function lc(e){return 5===e.tag||3===e.tag||4===e.tag}function cc(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||lc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function sc(e,t,n){var o=e.tag;if(5===o||6===o)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=er));else if(4!==o&&null!==(e=e.child))for(sc(e,t,n),e=e.sibling;null!==e;)sc(e,t,n),e=e.sibling}function uc(e,t,n){var o=e.tag;if(5===o||6===o)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==o&&null!==(e=e.child))for(uc(e,t,n),e=e.sibling;null!==e;)uc(e,t,n),e=e.sibling}var dc=null,fc=!1;function pc(e,t,n){for(n=n.child;null!==n;)hc(e,t,n),n=n.sibling}function hc(e,t,n){if(it&&"function"===typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(rt,n)}catch(l){}switch(n.tag){case 5:Ql||ec(n,t);case 6:var o=dc,r=fc;dc=null,pc(e,t,n),fc=r,null!==(dc=o)&&(fc?(e=dc,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):dc.removeChild(n.stateNode));break;case 18:null!==dc&&(fc?(e=dc,n=n.stateNode,8===e.nodeType?sr(e.parentNode,n):1===e.nodeType&&sr(e,n),Wt(e)):sr(dc,n.stateNode));break;case 4:o=dc,r=fc,dc=n.stateNode.containerInfo,fc=!0,pc(e,t,n),dc=o,fc=r;break;case 0:case 11:case 14:case 15:if(!Ql&&(null!==(o=n.updateQueue)&&null!==(o=o.lastEffect))){r=o=o.next;do{var i=r,a=i.destroy;i=i.tag,void 0!==a&&(0!==(2&i)||0!==(4&i))&&tc(n,t,a),r=r.next}while(r!==o)}pc(e,t,n);break;case 1:if(!Ql&&(ec(n,t),"function"===typeof(o=n.stateNode).componentWillUnmount))try{o.props=n.memoizedProps,o.state=n.memoizedState,o.componentWillUnmount()}catch(l){Es(n,t,l)}pc(e,t,n);break;case 21:pc(e,t,n);break;case 22:1&n.mode?(Ql=(o=Ql)||null!==n.memoizedState,pc(e,t,n),Ql=o):pc(e,t,n);break;default:pc(e,t,n)}}function mc(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Jl),t.forEach((function(t){var o=Ms.bind(null,e,t);n.has(t)||(n.add(t),t.then(o,o))}))}}function gc(e,t){var n=t.deletions;if(null!==n)for(var o=0;o<n.length;o++){var r=n[o];try{var a=e,l=t,c=l;e:for(;null!==c;){switch(c.tag){case 5:dc=c.stateNode,fc=!1;break e;case 3:case 4:dc=c.stateNode.containerInfo,fc=!0;break e}c=c.return}if(null===dc)throw Error(i(160));hc(a,l,r),dc=null,fc=!1;var s=r.alternate;null!==s&&(s.return=null),r.return=null}catch(u){Es(r,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vc(t,e),t=t.sibling}function vc(e,t){var n=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gc(t,e),bc(e),4&o){try{oc(3,e,e.return),rc(3,e)}catch(g){Es(e,e.return,g)}try{oc(5,e,e.return)}catch(g){Es(e,e.return,g)}}break;case 1:gc(t,e),bc(e),512&o&&null!==n&&ec(n,n.return);break;case 5:if(gc(t,e),bc(e),512&o&&null!==n&&ec(n,n.return),32&e.flags){var r=e.stateNode;try{fe(r,"")}catch(g){Es(e,e.return,g)}}if(4&o&&null!=(r=e.stateNode)){var a=e.memoizedProps,l=null!==n?n.memoizedProps:a,c=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===c&&"radio"===a.type&&null!=a.name&&Q(r,a),ye(c,l);var u=ye(c,a);for(l=0;l<s.length;l+=2){var d=s[l],f=s[l+1];"style"===d?ge(r,f):"dangerouslySetInnerHTML"===d?de(r,f):"children"===d?fe(r,f):y(r,d,f,u)}switch(c){case"input":J(r,a);break;case"textarea":ie(r,a);break;case"select":var p=r._wrapperState.wasMultiple;r._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(r,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(r,!!a.multiple,a.defaultValue,!0):ne(r,!!a.multiple,a.multiple?[]:"",!1))}r[hr]=a}catch(g){Es(e,e.return,g)}}break;case 6:if(gc(t,e),bc(e),4&o){if(null===e.stateNode)throw Error(i(162));r=e.stateNode,a=e.memoizedProps;try{r.nodeValue=a}catch(g){Es(e,e.return,g)}}break;case 3:if(gc(t,e),bc(e),4&o&&null!==n&&n.memoizedState.isDehydrated)try{Wt(t.containerInfo)}catch(g){Es(e,e.return,g)}break;case 4:default:gc(t,e),bc(e);break;case 13:gc(t,e),bc(e),8192&(r=e.child).flags&&(a=null!==r.memoizedState,r.stateNode.isHidden=a,!a||null!==r.alternate&&null!==r.alternate.memoizedState||(Wc=Qe())),4&o&&mc(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Ql=(u=Ql)||d,gc(t,e),Ql=u):gc(t,e),bc(e),8192&o){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!==(1&e.mode))for(Zl=e,d=e.child;null!==d;){for(f=Zl=d;null!==Zl;){switch(h=(p=Zl).child,p.tag){case 0:case 11:case 14:case 15:oc(4,p,p.return);break;case 1:ec(p,p.return);var m=p.stateNode;if("function"===typeof m.componentWillUnmount){o=p,n=p.return;try{t=o,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){Es(o,n,g)}}break;case 5:ec(p,p.return);break;case 22:if(null!==p.memoizedState){Sc(f);continue}}null!==h?(h.return=p,Zl=h):Sc(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{r=f.stateNode,u?"function"===typeof(a=r.style).setProperty?a.setProperty("display","none","important"):a.display="none":(c=f.stateNode,l=void 0!==(s=f.memoizedProps.style)&&null!==s&&s.hasOwnProperty("display")?s.display:null,c.style.display=me("display",l))}catch(g){Es(e,e.return,g)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(g){Es(e,e.return,g)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:gc(t,e),bc(e),4&o&&mc(e);case 21:}}function bc(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(lc(n)){var o=n;break e}n=n.return}throw Error(i(160))}switch(o.tag){case 5:var r=o.stateNode;32&o.flags&&(fe(r,""),o.flags&=-33),uc(e,cc(e),r);break;case 3:case 4:var a=o.stateNode.containerInfo;sc(e,cc(e),a);break;default:throw Error(i(161))}}catch(l){Es(e,e.return,l)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yc(e,t,n){Zl=e,wc(e,t,n)}function wc(e,t,n){for(var o=0!==(1&e.mode);null!==Zl;){var r=Zl,i=r.child;if(22===r.tag&&o){var a=null!==r.memoizedState||Yl;if(!a){var l=r.alternate,c=null!==l&&null!==l.memoizedState||Ql;l=Yl;var s=Ql;if(Yl=a,(Ql=c)&&!s)for(Zl=r;null!==Zl;)c=(a=Zl).child,22===a.tag&&null!==a.memoizedState?Cc(r):null!==c?(c.return=a,Zl=c):Cc(r);for(;null!==i;)Zl=i,wc(i,t,n),i=i.sibling;Zl=r,Yl=l,Ql=s}xc(e)}else 0!==(8772&r.subtreeFlags)&&null!==i?(i.return=r,Zl=i):xc(e)}}function xc(e){for(;null!==Zl;){var t=Zl;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ql||rc(5,t);break;case 1:var o=t.stateNode;if(4&t.flags&&!Ql)if(null===n)o.componentDidMount();else{var r=t.elementType===t.type?n.memoizedProps:vi(t.type,n.memoizedProps);o.componentDidUpdate(r,n.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Bi(t,a,o);break;case 3:var l=t.updateQueue;if(null!==l){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Bi(t,l,n)}break;case 5:var c=t.stateNode;if(null===n&&4&t.flags){n=c;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Wt(f)}}}break;default:throw Error(i(163))}Ql||512&t.flags&&ic(t)}catch(p){Es(t,t.return,p)}}if(t===e){Zl=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zl=n;break}Zl=t.return}}function Sc(e){for(;null!==Zl;){var t=Zl;if(t===e){Zl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zl=n;break}Zl=t.return}}function Cc(e){for(;null!==Zl;){var t=Zl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rc(4,t)}catch(c){Es(t,n,c)}break;case 1:var o=t.stateNode;if("function"===typeof o.componentDidMount){var r=t.return;try{o.componentDidMount()}catch(c){Es(t,r,c)}}var i=t.return;try{ic(t)}catch(c){Es(t,i,c)}break;case 5:var a=t.return;try{ic(t)}catch(c){Es(t,a,c)}}}catch(c){Es(t,t.return,c)}if(t===e){Zl=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Zl=l;break}Zl=t.return}}var kc,Ec=Math.ceil,Oc=w.ReactCurrentDispatcher,_c=w.ReactCurrentOwner,Pc=w.ReactCurrentBatchConfig,Mc=0,Nc=null,Ic=null,Rc=0,Tc=0,jc=Er(0),Ac=0,zc=null,Lc=0,Dc=0,Bc=0,Fc=null,Hc=null,Wc=0,Vc=1/0,Kc=null,qc=!1,Uc=null,Xc=null,Gc=!1,$c=null,Yc=0,Qc=0,Jc=null,Zc=-1,es=0;function ts(){return 0!==(6&Mc)?Qe():-1!==Zc?Zc:Zc=Qe()}function ns(e){return 0===(1&e.mode)?1:0!==(2&Mc)&&0!==Rc?Rc&-Rc:null!==gi.transition?(0===es&&(es=mt()),es):0!==(e=yt)?e:e=void 0===(e=window.event)?16:Yt(e.type)}function os(e,t,n,o){if(50<Qc)throw Qc=0,Jc=null,Error(i(185));vt(e,n,o),0!==(2&Mc)&&e===Nc||(e===Nc&&(0===(2&Mc)&&(Dc|=n),4===Ac&&cs(e,Rc)),rs(e,o),1===n&&0===Mc&&0===(1&t.mode)&&(Vc=Qe()+500,Fr&&Vr()))}function rs(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,o=e.pingedLanes,r=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),l=1<<a,c=r[a];-1===c?0!==(l&n)&&0===(l&o)||(r[a]=pt(l,t)):c<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var o=ft(e,e===Nc?Rc:0);if(0===o)null!==n&&Ge(n),e.callbackNode=null,e.callbackPriority=0;else if(t=o&-o,e.callbackPriority!==t){if(null!=n&&Ge(n),1===t)0===e.tag?function(e){Fr=!0,Wr(e)}(ss.bind(null,e)):Wr(ss.bind(null,e)),lr((function(){0===(6&Mc)&&Vr()})),n=null;else{switch(wt(o)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=ot}n=Ns(n,is.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function is(e,t){if(Zc=-1,es=0,0!==(6&Mc))throw Error(i(327));var n=e.callbackNode;if(Cs()&&e.callbackNode!==n)return null;var o=ft(e,e===Nc?Rc:0);if(0===o)return null;if(0!==(30&o)||0!==(o&e.expiredLanes)||t)t=vs(e,o);else{t=o;var r=Mc;Mc|=2;var a=ms();for(Nc===e&&Rc===t||(Kc=null,Vc=Qe()+500,ps(e,t));;)try{ys();break}catch(c){hs(e,c)}Si(),Oc.current=a,Mc=r,null!==Ic?t=0:(Nc=null,Rc=0,t=Ac)}if(0!==t){if(2===t&&(0!==(r=ht(e))&&(o=r,t=as(e,r))),1===t)throw n=zc,ps(e,0),cs(e,o),rs(e,Qe()),n;if(6===t)cs(e,o);else{if(r=e.current.alternate,0===(30&o)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var o=0;o<n.length;o++){var r=n[o],i=r.getSnapshot;r=r.value;try{if(!lo(i(),r))return!1}catch(l){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(r)&&(2===(t=vs(e,o))&&(0!==(a=ht(e))&&(o=a,t=as(e,a))),1===t))throw n=zc,ps(e,0),cs(e,o),rs(e,Qe()),n;switch(e.finishedWork=r,e.finishedLanes=o,t){case 0:case 1:throw Error(i(345));case 2:case 5:Ss(e,Hc,Kc);break;case 3:if(cs(e,o),(130023424&o)===o&&10<(t=Wc+500-Qe())){if(0!==ft(e,0))break;if(((r=e.suspendedLanes)&o)!==o){ts(),e.pingedLanes|=e.suspendedLanes&r;break}e.timeoutHandle=rr(Ss.bind(null,e,Hc,Kc),t);break}Ss(e,Hc,Kc);break;case 4:if(cs(e,o),(4194240&o)===o)break;for(t=e.eventTimes,r=-1;0<o;){var l=31-at(o);a=1<<l,(l=t[l])>r&&(r=l),o&=~a}if(o=r,10<(o=(120>(o=Qe()-o)?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Ec(o/1960))-o)){e.timeoutHandle=rr(Ss.bind(null,e,Hc,Kc),o);break}Ss(e,Hc,Kc);break;default:throw Error(i(329))}}}return rs(e,Qe()),e.callbackNode===n?is.bind(null,e):null}function as(e,t){var n=Fc;return e.current.memoizedState.isDehydrated&&(ps(e,t).flags|=256),2!==(e=vs(e,t))&&(t=Hc,Hc=n,null!==t&&ls(t)),e}function ls(e){null===Hc?Hc=e:Hc.push.apply(Hc,e)}function cs(e,t){for(t&=~Bc,t&=~Dc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),o=1<<n;e[n]=-1,t&=~o}}function ss(e){if(0!==(6&Mc))throw Error(i(327));Cs();var t=ft(e,0);if(0===(1&t))return rs(e,Qe()),null;var n=vs(e,t);if(0!==e.tag&&2===n){var o=ht(e);0!==o&&(t=o,n=as(e,o))}if(1===n)throw n=zc,ps(e,0),cs(e,t),rs(e,Qe()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ss(e,Hc,Kc),rs(e,Qe()),null}function us(e,t){var n=Mc;Mc|=1;try{return e(t)}finally{0===(Mc=n)&&(Vc=Qe()+500,Fr&&Vr())}}function ds(e){null!==$c&&0===$c.tag&&0===(6&Mc)&&Cs();var t=Mc;Mc|=1;var n=Pc.transition,o=yt;try{if(Pc.transition=null,yt=1,e)return e()}finally{yt=o,Pc.transition=n,0===(6&(Mc=t))&&Vr()}}function fs(){Tc=jc.current,Or(jc)}function ps(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ir(n)),null!==Ic)for(n=Ic.return;null!==n;){var o=n;switch(ni(o),o.tag){case 1:null!==(o=o.type.childContextTypes)&&void 0!==o&&jr();break;case 3:ia(),Or(Nr),Or(Mr),da();break;case 5:la(o);break;case 4:ia();break;case 13:case 19:Or(ca);break;case 10:Ci(o.type._context);break;case 22:case 23:fs()}n=n.return}if(Nc=e,Ic=e=js(e.current,null),Rc=Tc=t,Ac=0,zc=null,Bc=Dc=Lc=0,Hc=Fc=null,null!==_i){for(t=0;t<_i.length;t++)if(null!==(o=(n=_i[t]).interleaved)){n.interleaved=null;var r=o.next,i=n.pending;if(null!==i){var a=i.next;i.next=r,o.next=a}n.pending=o}_i=null}return e}function hs(e,t){for(;;){var n=Ic;try{if(Si(),fa.current=al,ba){for(var o=ma.memoizedState;null!==o;){var r=o.queue;null!==r&&(r.pending=null),o=o.next}ba=!1}if(ha=0,va=ga=ma=null,ya=!1,wa=0,_c.current=null,null===n||null===n.return){Ac=1,zc=t,Ic=null;break}e:{var a=e,l=n.return,c=n,s=t;if(t=Rc,c.flags|=32768,null!==s&&"object"===typeof s&&"function"===typeof s.then){var u=s,d=c,f=d.tag;if(0===(1&d.mode)&&(0===f||11===f||15===f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=vl(l);if(null!==h){h.flags&=-257,bl(h,l,c,0,t),1&h.mode&&gl(a,u,t),s=u;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(s),t.updateQueue=g}else m.add(s);break e}if(0===(1&t)){gl(a,u,t),gs();break e}s=Error(i(426))}else if(ii&&1&c.mode){var v=vl(l);if(null!==v){0===(65536&v.flags)&&(v.flags|=256),bl(v,l,c,0,t),mi(ul(s,c));break e}}a=s=ul(s,c),4!==Ac&&(Ac=2),null===Fc?Fc=[a]:Fc.push(a),a=l;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Li(a,hl(0,s,t));break e;case 1:c=s;var b=a.type,y=a.stateNode;if(0===(128&a.flags)&&("function"===typeof b.getDerivedStateFromError||null!==y&&"function"===typeof y.componentDidCatch&&(null===Xc||!Xc.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t,Li(a,ml(a,c,t));break e}}a=a.return}while(null!==a)}xs(n)}catch(w){t=w,Ic===n&&null!==n&&(Ic=n=n.return);continue}break}}function ms(){var e=Oc.current;return Oc.current=al,null===e?al:e}function gs(){0!==Ac&&3!==Ac&&2!==Ac||(Ac=4),null===Nc||0===(268435455&Lc)&&0===(268435455&Dc)||cs(Nc,Rc)}function vs(e,t){var n=Mc;Mc|=2;var o=ms();for(Nc===e&&Rc===t||(Kc=null,ps(e,t));;)try{bs();break}catch(r){hs(e,r)}if(Si(),Mc=n,Oc.current=o,null!==Ic)throw Error(i(261));return Nc=null,Rc=0,Ac}function bs(){for(;null!==Ic;)ws(Ic)}function ys(){for(;null!==Ic&&!$e();)ws(Ic)}function ws(e){var t=kc(e.alternate,e,Tc);e.memoizedProps=e.pendingProps,null===t?xs(e):Ic=t,_c.current=null}function xs(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Gl(n,t,Tc)))return void(Ic=n)}else{if(null!==(n=$l(n,t)))return n.flags&=32767,void(Ic=n);if(null===e)return Ac=6,void(Ic=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Ic=t);Ic=t=e}while(null!==t);0===Ac&&(Ac=5)}function Ss(e,t,n){var o=yt,r=Pc.transition;try{Pc.transition=null,yt=1,function(e,t,n,o){do{Cs()}while(null!==$c);if(0!==(6&Mc))throw Error(i(327));n=e.finishedWork;var r=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(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 o=e.eventTimes;for(e=e.expirationTimes;0<n;){var r=31-at(n),i=1<<r;t[r]=0,o[r]=-1,e[r]=-1,n&=~i}}(e,a),e===Nc&&(Ic=Nc=null,Rc=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Gc||(Gc=!0,Ns(tt,(function(){return Cs(),null}))),a=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||a){a=Pc.transition,Pc.transition=null;var l=yt;yt=1;var c=Mc;Mc|=4,_c.current=null,function(e,t){if(tr=Kt,ho(e=po())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(o&&0!==o.rangeCount){n=o.anchorNode;var r=o.anchorOffset,a=o.focusNode;o=o.focusOffset;try{n.nodeType,a.nodeType}catch(x){n=null;break e}var l=0,c=-1,s=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==r&&3!==f.nodeType||(c=l+r),f!==a||0!==o&&3!==f.nodeType||(s=l+o),3===f.nodeType&&(l+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++u===r&&(c=l),p===a&&++d===o&&(s=l),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===c||-1===s?null:{start:c,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(nr={focusedElem:e,selectionRange:n},Kt=!1,Zl=t;null!==Zl;)if(e=(t=Zl).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Zl=e;else for(;null!==Zl;){t=Zl;try{var m=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?g:vi(t.type,g),v);b.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(i(163))}}catch(x){Es(t,t.return,x)}if(null!==(e=t.sibling)){e.return=t.return,Zl=e;break}Zl=t.return}m=nc,nc=!1}(e,n),vc(n,e),mo(nr),Kt=!!tr,nr=tr=null,e.current=n,yc(n,e,r),Ye(),Mc=c,yt=l,Pc.transition=a}else e.current=n;if(Gc&&(Gc=!1,$c=e,Yc=r),a=e.pendingLanes,0===a&&(Xc=null),function(e){if(it&&"function"===typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(rt,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),rs(e,Qe()),null!==t)for(o=e.onRecoverableError,n=0;n<t.length;n++)r=t[n],o(r.value,{componentStack:r.stack,digest:r.digest});if(qc)throw qc=!1,e=Uc,Uc=null,e;0!==(1&Yc)&&0!==e.tag&&Cs(),a=e.pendingLanes,0!==(1&a)?e===Jc?Qc++:(Qc=0,Jc=e):Qc=0,Vr()}(e,t,n,o)}finally{Pc.transition=r,yt=o}return null}function Cs(){if(null!==$c){var e=wt(Yc),t=Pc.transition,n=yt;try{if(Pc.transition=null,yt=16>e?16:e,null===$c)var o=!1;else{if(e=$c,$c=null,Yc=0,0!==(6&Mc))throw Error(i(331));var r=Mc;for(Mc|=4,Zl=e.current;null!==Zl;){var a=Zl,l=a.child;if(0!==(16&Zl.flags)){var c=a.deletions;if(null!==c){for(var s=0;s<c.length;s++){var u=c[s];for(Zl=u;null!==Zl;){var d=Zl;switch(d.tag){case 0:case 11:case 15:oc(8,d,a)}var f=d.child;if(null!==f)f.return=d,Zl=f;else for(;null!==Zl;){var p=(d=Zl).sibling,h=d.return;if(ac(d),d===u){Zl=null;break}if(null!==p){p.return=h,Zl=p;break}Zl=h}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Zl=a}}if(0!==(2064&a.subtreeFlags)&&null!==l)l.return=a,Zl=l;else e:for(;null!==Zl;){if(0!==(2048&(a=Zl).flags))switch(a.tag){case 0:case 11:case 15:oc(9,a,a.return)}var b=a.sibling;if(null!==b){b.return=a.return,Zl=b;break e}Zl=a.return}}var y=e.current;for(Zl=y;null!==Zl;){var w=(l=Zl).child;if(0!==(2064&l.subtreeFlags)&&null!==w)w.return=l,Zl=w;else e:for(l=y;null!==Zl;){if(0!==(2048&(c=Zl).flags))try{switch(c.tag){case 0:case 11:case 15:rc(9,c)}}catch(S){Es(c,c.return,S)}if(c===l){Zl=null;break e}var x=c.sibling;if(null!==x){x.return=c.return,Zl=x;break e}Zl=c.return}}if(Mc=r,Vr(),it&&"function"===typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(rt,e)}catch(S){}o=!0}return o}finally{yt=n,Pc.transition=t}}return!1}function ks(e,t,n){e=Ai(e,t=hl(0,t=ul(n,t),1),1),t=ts(),null!==e&&(vt(e,1,t),rs(e,t))}function Es(e,t,n){if(3===e.tag)ks(e,e,n);else for(;null!==t;){if(3===t.tag){ks(t,e,n);break}if(1===t.tag){var o=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof o.componentDidCatch&&(null===Xc||!Xc.has(o))){t=Ai(t,e=ml(t,e=ul(n,e),1),1),e=ts(),null!==t&&(vt(t,1,e),rs(t,e));break}}t=t.return}}function Os(e,t,n){var o=e.pingCache;null!==o&&o.delete(t),t=ts(),e.pingedLanes|=e.suspendedLanes&n,Nc===e&&(Rc&n)===n&&(4===Ac||3===Ac&&(130023424&Rc)===Rc&&500>Qe()-Wc?ps(e,0):Bc|=n),rs(e,t)}function _s(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var n=ts();null!==(e=Ni(e,t))&&(vt(e,t,n),rs(e,n))}function Ps(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),_s(e,n)}function Ms(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,r=e.memoizedState;null!==r&&(n=r.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(i(314))}null!==o&&o.delete(t),_s(e,n)}function Ns(e,t){return Xe(e,t)}function Is(e,t,n,o){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=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rs(e,t,n,o){return new Is(e,t,n,o)}function Ts(e){return!(!(e=e.prototype)||!e.isReactComponent)}function js(e,t){var n=e.alternate;return null===n?((n=Rs(e.tag,t,e.key,e.mode)).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=14680064&e.flags,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=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function As(e,t,n,o,r,a){var l=2;if(o=e,"function"===typeof e)Ts(e)&&(l=1);else if("string"===typeof e)l=5;else e:switch(e){case C:return zs(n.children,r,a,t);case k:l=8,r|=8;break;case E:return(e=Rs(12,n,t,2|r)).elementType=E,e.lanes=a,e;case M:return(e=Rs(13,n,t,r)).elementType=M,e.lanes=a,e;case N:return(e=Rs(19,n,t,r)).elementType=N,e.lanes=a,e;case T:return Ls(n,r,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case O:l=10;break e;case _:l=9;break e;case P:l=11;break e;case I:l=14;break e;case R:l=16,o=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Rs(l,n,t,r)).elementType=e,t.type=o,t.lanes=a,t}function zs(e,t,n,o){return(e=Rs(7,e,o,t)).lanes=n,e}function Ls(e,t,n,o){return(e=Rs(22,e,o,t)).elementType=T,e.lanes=n,e.stateNode={isHidden:!1},e}function Ds(e,t,n){return(e=Rs(6,e,null,t)).lanes=n,e}function Bs(e,t,n){return(t=Rs(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fs(e,t,n,o,r){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=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=o,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function Hs(e,t,n,o,r,i,a,l,c){return e=new Fs(e,t,n,l,c),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Rs(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:o,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ri(i),e}function Ws(e){if(!e)return Pr;e:{if(We(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Tr(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Tr(n))return zr(e,n,t)}return t}function Vs(e,t,n,o,r,i,a,l,c){return(e=Hs(n,o,!0,e,0,i,0,l,c)).context=Ws(null),n=e.current,(i=ji(o=ts(),r=ns(n))).callback=void 0!==t&&null!==t?t:null,Ai(n,i,r),e.current.lanes=r,vt(e,r,o),rs(e,o),e}function Ks(e,t,n,o){var r=t.current,i=ts(),a=ns(r);return n=Ws(n),null===t.context?t.context=n:t.pendingContext=n,(t=ji(i,a)).payload={element:e},null!==(o=void 0===o?null:o)&&(t.callback=o),null!==(e=Ai(r,t,a))&&(os(e,r,a,i),zi(e,r,a)),a}function qs(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Us(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Xs(e,t){Us(e,t),(e=e.alternate)&&Us(e,t)}kc=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Nr.current)wl=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return wl=!1,function(e,t,n){switch(t.tag){case 3:Nl(t),hi();break;case 5:aa(t);break;case 1:Tr(t.type)&&Lr(t);break;case 4:ra(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,r=t.memoizedProps.value;_r(bi,o._currentValue),o._currentValue=r;break;case 13:if(null!==(o=t.memoizedState))return null!==o.dehydrated?(_r(ca,1&ca.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Dl(e,t,n):(_r(ca,1&ca.current),null!==(e=ql(e,t,n))?e.sibling:null);_r(ca,1&ca.current);break;case 19:if(o=0!==(n&t.childLanes),0!==(128&e.flags)){if(o)return Vl(e,t,n);t.flags|=128}if(null!==(r=t.memoizedState)&&(r.rendering=null,r.tail=null,r.lastEffect=null),_r(ca,ca.current),o)break;return null;case 22:case 23:return t.lanes=0,El(e,t,n)}return ql(e,t,n)}(e,t,n);wl=0!==(131072&e.flags)}else wl=!1,ii&&0!==(1048576&t.flags)&&ei(t,Xr,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Kl(e,t),e=t.pendingProps;var r=Rr(t,Mr.current);Ei(t,n),r=ka(null,t,o,e,r,n);var a=Ea();return t.flags|=1,"object"===typeof r&&null!==r&&"function"===typeof r.render&&void 0===r.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Tr(o)?(a=!0,Lr(t)):a=!1,t.memoizedState=null!==r.state&&void 0!==r.state?r.state:null,Ri(t),r.updater=Wi,t.stateNode=r,r._reactInternals=t,Ui(t,o,e,n),t=Ml(null,t,o,!0,a,n)):(t.tag=0,ii&&a&&ti(t),xl(null,t,r,n),t=t.child),t;case 16:o=t.elementType;e:{switch(Kl(e,t),e=t.pendingProps,o=(r=o._init)(o._payload),t.type=o,r=t.tag=function(e){if("function"===typeof e)return Ts(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===P)return 11;if(e===I)return 14}return 2}(o),e=vi(o,e),r){case 0:t=_l(null,t,o,e,n);break e;case 1:t=Pl(null,t,o,e,n);break e;case 11:t=Sl(null,t,o,e,n);break e;case 14:t=Cl(null,t,o,vi(o.type,e),n);break e}throw Error(i(306,o,""))}return t;case 0:return o=t.type,r=t.pendingProps,_l(e,t,o,r=t.elementType===o?r:vi(o,r),n);case 1:return o=t.type,r=t.pendingProps,Pl(e,t,o,r=t.elementType===o?r:vi(o,r),n);case 3:e:{if(Nl(t),null===e)throw Error(i(387));o=t.pendingProps,r=(a=t.memoizedState).element,Ti(e,t),Di(t,o,null,n);var l=t.memoizedState;if(o=l.element,a.isDehydrated){if(a={element:o,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Il(e,t,o,n,r=ul(Error(i(423)),t));break e}if(o!==r){t=Il(e,t,o,n,r=ul(Error(i(424)),t));break e}for(ri=ur(t.stateNode.containerInfo.firstChild),oi=t,ii=!0,ai=null,n=Ji(t,null,o,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(hi(),o===r){t=ql(e,t,n);break e}xl(e,t,o,n)}t=t.child}return t;case 5:return aa(t),null===e&&ui(t),o=t.type,r=t.pendingProps,a=null!==e?e.memoizedProps:null,l=r.children,or(o,r)?l=null:null!==a&&or(o,a)&&(t.flags|=32),Ol(e,t),xl(e,t,l,n),t.child;case 6:return null===e&&ui(t),null;case 13:return Dl(e,t,n);case 4:return ra(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=Qi(t,null,o,n):xl(e,t,o,n),t.child;case 11:return o=t.type,r=t.pendingProps,Sl(e,t,o,r=t.elementType===o?r:vi(o,r),n);case 7:return xl(e,t,t.pendingProps,n),t.child;case 8:case 12:return xl(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(o=t.type._context,r=t.pendingProps,a=t.memoizedProps,l=r.value,_r(bi,o._currentValue),o._currentValue=l,null!==a)if(lo(a.value,l)){if(a.children===r.children&&!Nr.current){t=ql(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var c=a.dependencies;if(null!==c){l=a.child;for(var s=c.firstContext;null!==s;){if(s.context===o){if(1===a.tag){(s=ji(-1,n&-n)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?s.next=s:(s.next=d.next,d.next=s),u.pending=s}}a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),ki(a.return,n,t),c.lanes|=n;break}s=s.next}}else if(10===a.tag)l=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(l=a.return))throw Error(i(341));l.lanes|=n,null!==(c=l.alternate)&&(c.lanes|=n),ki(l,n,t),l=a.sibling}else l=a.child;if(null!==l)l.return=a;else for(l=a;null!==l;){if(l===t){l=null;break}if(null!==(a=l.sibling)){a.return=l.return,l=a;break}l=l.return}a=l}xl(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,o=t.pendingProps.children,Ei(t,n),o=o(r=Oi(r)),t.flags|=1,xl(e,t,o,n),t.child;case 14:return r=vi(o=t.type,t.pendingProps),Cl(e,t,o,r=vi(o.type,r),n);case 15:return kl(e,t,t.type,t.pendingProps,n);case 17:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:vi(o,r),Kl(e,t),t.tag=1,Tr(o)?(e=!0,Lr(t)):e=!1,Ei(t,n),Ki(t,o,r),Ui(t,o,r,n),Ml(null,t,o,!0,e,n);case 19:return Vl(e,t,n);case 22:return El(e,t,n)}throw Error(i(156,t.tag))};var Gs="function"===typeof reportError?reportError:function(e){console.error(e)};function $s(e){this._internalRoot=e}function Ys(e){this._internalRoot=e}function Qs(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Js(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zs(){}function eu(e,t,n,o,r){var i=n._reactRootContainer;if(i){var a=i;if("function"===typeof r){var l=r;r=function(){var e=qs(a);l.call(e)}}Ks(t,a,e,r)}else a=function(e,t,n,o,r){if(r){if("function"===typeof o){var i=o;o=function(){var e=qs(a);i.call(e)}}var a=Vs(t,o,e,0,null,!1,0,"",Zs);return e._reactRootContainer=a,e[mr]=a.current,Vo(8===e.nodeType?e.parentNode:e),ds(),a}for(;r=e.lastChild;)e.removeChild(r);if("function"===typeof o){var l=o;o=function(){var e=qs(c);l.call(e)}}var c=Hs(e,0,!1,null,0,!1,0,"",Zs);return e._reactRootContainer=c,e[mr]=c.current,Vo(8===e.nodeType?e.parentNode:e),ds((function(){Ks(t,c,n,o)})),c}(n,t,e,r,o);return qs(a)}Ys.prototype.render=$s.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Ks(e,t,null,null)},Ys.prototype.unmount=$s.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;ds((function(){Ks(null,e,null,null)})),t[mr]=null}},Ys.prototype.unstable_scheduleHydration=function(e){if(e){var t=kt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Tt.length&&0!==t&&t<Tt[n].priority;n++);Tt.splice(n,0,e),0===n&&Lt(e)}},xt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(bt(t,1|n),rs(t,Qe()),0===(6&Mc)&&(Vc=Qe()+500,Vr()))}break;case 13:ds((function(){var t=Ni(e,1);if(null!==t){var n=ts();os(t,e,1,n)}})),Xs(e,1)}},St=function(e){if(13===e.tag){var t=Ni(e,134217728);if(null!==t)os(t,e,134217728,ts());Xs(e,134217728)}},Ct=function(e){if(13===e.tag){var t=ns(e),n=Ni(e,t);if(null!==n)os(n,e,t,ts());Xs(e,t)}},kt=function(){return yt},Et=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},Se=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var r=Sr(o);if(!r)throw Error(i(90));X(o),J(o,r)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Pe=us,Me=ds;var tu={usingClientEntryPoint:!1,Events:[wr,xr,Sr,Oe,_e,us]},nu={findFiberByHostInstance:yr,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},ou={bundleType:nu.bundleType,version:nu.version,rendererPackageName:nu.rendererPackageName,rendererConfig:nu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=qe(e))?null:e.stateNode},findFiberByHostInstance:nu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{rt=ru.inject(ou),it=ru}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Qs(t))throw Error(i(200));return function(e,t,n){var o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==o?null:""+o,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Qs(e))throw Error(i(299));var n=!1,o="",r=Gs;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(o=t.identifierPrefix),void 0!==t.onRecoverableError&&(r=t.onRecoverableError)),t=Hs(e,1,!1,null,0,n,0,o,r),e[mr]=t.current,Vo(8===e.nodeType?e.parentNode:e),new $s(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=null===(e=qe(t))?null:e.stateNode},t.flushSync=function(e){return ds(e)},t.hydrate=function(e,t,n){if(!Js(t))throw Error(i(200));return eu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Qs(e))throw Error(i(405));var o=null!=n&&n.hydratedSources||null,r=!1,a="",l=Gs;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(r=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=Vs(t,null,e,1,null!=n?n:null,r,0,a,l),e[mr]=t.current,Vo(e),o)for(e=0;e<o.length;e++)r=(r=(n=o[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,r]:t.mutableSourceEagerHydrationData.push(n,r);return new Ys(t)},t.render=function(e,t,n){if(!Js(t))throw Error(i(200));return eu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Js(e))throw Error(i(40));return!!e._reactRootContainer&&(ds((function(){eu(null,null,e,!1,(function(){e._reactRootContainer=null,e[mr]=null}))})),!0)},t.unstable_batchedUpdates=us,t.unstable_renderSubtreeIntoContainer=function(e,t,n,o){if(!Js(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return eu(e,t,n,!1,o)},t.version="18.2.0-next-9e3b772b8-20220608"},391:(e,t,n)=>{"use strict";var o=n(950);t.createRoot=o.createRoot,t.hydrateRoot=o.hydrateRoot},950:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(730)},854:(e,t,n)=>{e.exports=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(2),i=(o=r)&&o.__esModule?o:{default:o};t.default=i.default,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};function r(e){return e&&e.__esModule?e:{default:e}}t.default=s;var i=n(3),a=r(n(4)),l=n(14),c=r(n(15));function s(e){var t=e.activeClassName,n=void 0===t?"":t,r=e.activeIndex,a=void 0===r?-1:r,s=e.activeStyle,u=e.autoEscape,d=e.caseSensitive,f=void 0!==d&&d,p=e.className,h=e.findChunks,m=e.highlightClassName,g=void 0===m?"":m,v=e.highlightStyle,b=void 0===v?{}:v,y=e.highlightTag,w=void 0===y?"mark":y,x=e.sanitize,S=e.searchWords,C=e.textToHighlight,k=e.unhighlightTag,E=void 0===k?"span":k,O=e.unhighlightClassName,_=void 0===O?"":O,P=e.unhighlightStyle,M=function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(e,["activeClassName","activeIndex","activeStyle","autoEscape","caseSensitive","className","findChunks","highlightClassName","highlightStyle","highlightTag","sanitize","searchWords","textToHighlight","unhighlightTag","unhighlightClassName","unhighlightStyle"]),N=(0,i.findAll)({autoEscape:u,caseSensitive:f,findChunks:h,sanitize:x,searchWords:S,textToHighlight:C}),I=w,R=-1,T="",j=void 0,A=(0,c.default)((function(e){var t={};for(var n in e)t[n.toLowerCase()]=e[n];return t}));return(0,l.createElement)("span",o({className:p},M,{children:N.map((function(e,t){var o=C.substr(e.start,e.end-e.start);if(e.highlight){R++;var r=void 0;r="object"===typeof g?f?g[o]:(g=A(g))[o.toLowerCase()]:g;var i=R===+a;T=r+" "+(i?n:""),j=!0===i&&null!=s?Object.assign({},b,s):b;var c={children:o,className:T,key:t,style:j};return"string"!==typeof I&&(c.highlightIndex=R),(0,l.createElement)(I,c)}return(0,l.createElement)(E,{children:o,className:_,key:t,style:P})}))}))}s.propTypes={activeClassName:a.default.string,activeIndex:a.default.number,activeStyle:a.default.object,autoEscape:a.default.bool,className:a.default.string,findChunks:a.default.func,highlightClassName:a.default.oneOfType([a.default.object,a.default.string]),highlightStyle:a.default.object,highlightTag:a.default.oneOfType([a.default.node,a.default.func,a.default.string]),sanitize:a.default.func,searchWords:a.default.arrayOf(a.default.oneOfType([a.default.string,a.default.instanceOf(RegExp)])).isRequired,textToHighlight:a.default.string.isRequired,unhighlightTag:a.default.oneOfType([a.default.node,a.default.func,a.default.string]),unhighlightClassName:a.default.string,unhighlightStyle:a.default.object},e.exports=t.default},function(e,t){e.exports=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(2);Object.defineProperty(t,"combineChunks",{enumerable:!0,get:function(){return o.combineChunks}}),Object.defineProperty(t,"fillInChunks",{enumerable:!0,get:function(){return o.fillInChunks}}),Object.defineProperty(t,"findAll",{enumerable:!0,get:function(){return o.findAll}}),Object.defineProperty(t,"findChunks",{enumerable:!0,get:function(){return o.findChunks}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.findAll=function(e){var t=e.autoEscape,i=e.caseSensitive,a=void 0!==i&&i,l=e.findChunks,c=void 0===l?o:l,s=e.sanitize,u=e.searchWords,d=e.textToHighlight;return r({chunksToHighlight:n({chunks:c({autoEscape:t,caseSensitive:a,sanitize:s,searchWords:u,textToHighlight:d})}),totalLength:d?d.length:0})};var n=t.combineChunks=function(e){var t=e.chunks;return t=t.sort((function(e,t){return e.start-t.start})).reduce((function(e,t){if(0===e.length)return[t];var n=e.pop();if(t.start<=n.end){var o=Math.max(n.end,t.end);e.push({start:n.start,end:o})}else e.push(n,t);return e}),[])},o=function(e){var t=e.autoEscape,n=e.caseSensitive,o=e.sanitize,r=void 0===o?i:o,a=e.searchWords,l=e.textToHighlight;return l=r(l),a.filter((function(e){return e})).reduce((function(e,o){o=r(o),t&&(o=o.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var i=new RegExp(o,n?"g":"gi"),a=void 0;a=i.exec(l);){var c=a.index,s=i.lastIndex;s>c&&e.push({start:c,end:s}),a.index==i.lastIndex&&i.lastIndex++}return e}),[])};t.findChunks=o;var r=t.fillInChunks=function(e){var t=e.chunksToHighlight,n=e.totalLength,o=[],r=function(e,t,n){t-e>0&&o.push({start:e,end:t,highlight:n})};if(0===t.length)r(0,n,!1);else{var i=0;t.forEach((function(e){r(i,e.start,!1),r(e.start,e.end,!0),i=e.end})),r(i,n,!1)}return o};function i(e){return e}}])},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV){var o="function"===typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n(6)((function(e){return"object"===typeof e&&null!==e&&e.$$typeof===o}),!0)}else e.exports=n(13)()}).call(t,n(5))},function(e,t){var n,o,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:i}catch(e){n=i}try{o="function"===typeof clearTimeout?clearTimeout:a}catch(e){o=a}}();var c,s=[],u=!1,d=-1;function f(){u&&c&&(u=!1,c.length?s=c.concat(s):d=-1,s.length&&p())}function p(){if(!u){var e=l(f);u=!0;for(var t=s.length;t;){for(c=s,s=[];++d<t;)c&&c[d].run();d=-1,t=s.length}c=null,u=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===a||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{return o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new h(e,t)),1!==s.length||u||l(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(e,t,n){(function(t){"use strict";var o=n(7),r=n(8),i=n(9),a=n(10),l=n(11),c=n(12);e.exports=function(e,n){var s="function"===typeof Symbol&&Symbol.iterator,u="@@iterator";var d="<<anonymous>>",f={array:g("array"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:m(o.thatReturnsNull),arrayOf:function(e){return m((function(t,n,o,r,i){if("function"!==typeof e)return new h("Property `"+i+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var a=t[n];if(!Array.isArray(a))return new h("Invalid "+r+" `"+i+"` of type `"+b(a)+"` supplied to `"+o+"`, expected an array.");for(var c=0;c<a.length;c++){var s=e(a,c,o,r,i+"["+c+"]",l);if(s instanceof Error)return s}return null}))},element:m((function(t,n,o,r,i){var a=t[n];return e(a)?null:new h("Invalid "+r+" `"+i+"` of type `"+b(a)+"` supplied to `"+o+"`, expected a single ReactElement.")})),instanceOf:function(e){return m((function(t,n,o,r,i){if(!(t[n]instanceof e)){var a=e.name||d;return new h("Invalid "+r+" `"+i+"` of type `"+(((l=t[n]).constructor&&l.constructor.name?l.constructor.name:d)+"` supplied to `")+o+"`, expected instance of `"+a+"`.")}var l;return null}))},node:m((function(e,t,n,o,r){return v(e[t])?null:new h("Invalid "+o+" `"+r+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return m((function(t,n,o,r,i){if("function"!==typeof e)return new h("Property `"+i+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var a=t[n],c=b(a);if("object"!==c)return new h("Invalid "+r+" `"+i+"` of type `"+c+"` supplied to `"+o+"`, expected an object.");for(var s in a)if(a.hasOwnProperty(s)){var u=e(a,s,o,r,i+"."+s,l);if(u instanceof Error)return u}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&i(!1,"Invalid argument supplied to oneOf, expected an instance of array."),o.thatReturnsNull;return m((function(t,n,o,r,i){for(var a=t[n],l=0;l<e.length;l++)if(p(a,e[l]))return null;return new h("Invalid "+r+" `"+i+"` of value `"+a+"` supplied to `"+o+"`, expected one of "+JSON.stringify(e)+".")}))},oneOfType:function(e){if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&i(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),o.thatReturnsNull;for(var n=0;n<e.length;n++){var r=e[n];if("function"!==typeof r)return i(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",w(r),n),o.thatReturnsNull}return m((function(t,n,o,r,i){for(var a=0;a<e.length;a++)if(null==(0,e[a])(t,n,o,r,i,l))return null;return new h("Invalid "+r+" `"+i+"` supplied to `"+o+"`.")}))},shape:function(e){return m((function(t,n,o,r,i){var a=t[n],c=b(a);if("object"!==c)return new h("Invalid "+r+" `"+i+"` of type `"+c+"` supplied to `"+o+"`, expected `object`.");for(var s in e){var u=e[s];if(u){var d=u(a,s,o,r,i+"."+s,l);if(d)return d}}return null}))},exact:function(e){return m((function(t,n,o,r,i){var c=t[n],s=b(c);if("object"!==s)return new h("Invalid "+r+" `"+i+"` of type `"+s+"` supplied to `"+o+"`, expected `object`.");var u=a({},t[n],e);for(var d in u){var f=e[d];if(!f)return new h("Invalid "+r+" `"+i+"` key `"+d+"` supplied to `"+o+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var p=f(c,d,o,r,i+"."+d,l);if(p)return p}return null}))}};function p(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function h(e){this.message=e,this.stack=""}function m(e){if("production"!==t.env.NODE_ENV)var o={},a=0;function c(c,s,u,f,p,m,g){if(f=f||d,m=m||u,g!==l)if(n)r(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==t.env.NODE_ENV&&"undefined"!==typeof console){var v=f+":"+u;!o[v]&&a<3&&(i(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",m,f),o[v]=!0,a++)}return null==s[u]?c?null===s[u]?new h("The "+p+" `"+m+"` is marked as required in `"+f+"`, but its value is `null`."):new h("The "+p+" `"+m+"` is marked as required in `"+f+"`, but its value is `undefined`."):null:e(s,u,f,p,m)}var s=c.bind(null,!1);return s.isRequired=c.bind(null,!0),s}function g(e){return m((function(t,n,o,r,i,a){var l=t[n];return b(l)!==e?new h("Invalid "+r+" `"+i+"` of type `"+y(l)+"` supplied to `"+o+"`, expected `"+e+"`."):null}))}function v(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(v);if(null===t||e(t))return!0;var n=function(e){var t=e&&(s&&e[s]||e[u]);if("function"===typeof t)return t}(t);if(!n)return!1;var o,r=n.call(t);if(n!==t.entries){for(;!(o=r.next()).done;)if(!v(o.value))return!1}else for(;!(o=r.next()).done;){var i=o.value;if(i&&!v(i[1]))return!1}return!0;default:return!1}}function b(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"===typeof Symbol&&t instanceof Symbol}(t,e)?"symbol":t}function y(e){if("undefined"===typeof e||null===e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function w(e){var t=y(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,f.checkPropTypes=c,f.PropTypes=f,f}}).call(t,n(5))},function(e,t){"use strict";function n(e){return function(){return e}}var o=function(){};o.thatReturns=n,o.thatReturnsFalse=n(!1),o.thatReturnsTrue=n(!0),o.thatReturnsNull=n(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){(function(t){"use strict";var n=function(e){};"production"!==t.env.NODE_ENV&&(n=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=function(e,t,o,r,i,a,l,c){if(n(t),!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[o,r,i,a,l,c],d=0;(s=new Error(t.replace(/%s/g,(function(){return u[d++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}}).call(t,n(5))},function(e,t,n){(function(t){"use strict";var o=n(7);if("production"!==t.env.NODE_ENV){var r=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r=0,i="Warning: "+e.replace(/%s/g,(function(){return n[r++]}));"undefined"!==typeof console&&console.error(i);try{throw new Error(i)}catch(a){}};o=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var n=arguments.length,o=Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];r.apply(void 0,[t].concat(o))}}}e.exports=o}).call(t,n(5))},function(e,t){"use strict";var n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(r){return!1}}()?Object.assign:function(e,t){for(var i,a,l=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var s in i=Object(arguments[c]))o.call(i,s)&&(l[s]=i[s]);if(n){a=n(i);for(var u=0;u<a.length;u++)r.call(i,a[u])&&(l[a[u]]=i[a[u]])}}return l}},function(e,t){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){(function(t){"use strict";if("production"!==t.env.NODE_ENV)var o=n(8),r=n(9),i=n(11),a={};e.exports=function(e,n,l,c,s){if("production"!==t.env.NODE_ENV)for(var u in e)if(e.hasOwnProperty(u)){var d;try{o("function"===typeof e[u],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",c||"React class",l,u,typeof e[u]),d=e[u](n,u,c,l,null,i)}catch(p){d=p}if(r(!d||d instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",c||"React class",l,u,typeof d),d instanceof Error&&!(d.message in a)){a[d.message]=!0;var f=s?s():"";r(!1,"Failed %s type: %s%s",l,d.message,null!=f?f:"")}}}}).call(t,n(5))},function(e,t,n){"use strict";var o=n(7),r=n(8),i=n(11);e.exports=function(){function e(e,t,n,o,a,l){l!==i&&r(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=o,n.PropTypes=n,n}},function(e,t){e.exports=n(43)},function(e,t){"use strict";var n=function(e,t){return e===t};e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,o=void 0,r=[],i=void 0,a=!1,l=function(e,n){return t(e,r[n])};return function(){for(var t=arguments.length,n=Array(t),c=0;c<t;c++)n[c]=arguments[c];return a&&o===this&&n.length===r.length&&n.every(l)?i:(a=!0,o=this,r=n,i=e.apply(this,n))}}}])},153:(e,t,n)=>{"use strict";var o=n(43),r=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,n){var o,i={},s=null,u=null;for(o in void 0!==n&&(s=""+n),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,o)&&!c.hasOwnProperty(o)&&(i[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===i[o]&&(i[o]=t[o]);return{$$typeof:r,type:e,key:s,ref:u,props:i,_owner:l.current}}t.jsx=s,t.jsxs=s},202:(e,t)=>{"use strict";var n=Symbol.for("react.element"),o=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function b(){}function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)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")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=v.prototype;var w=y.prototype=new b;w.constructor=y,m(w,v.prototype),w.isPureReactComponent=!0;var x=Array.isArray,S=Object.prototype.hasOwnProperty,C={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,o){var r,i={},a=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,r)&&!k.hasOwnProperty(r)&&(i[r]=t[r]);var c=arguments.length-2;if(1===c)i.children=o;else if(1<c){for(var s=Array(c),u=0;u<c;u++)s[u]=arguments[u+2];i.children=s}if(e&&e.defaultProps)for(r in c=e.defaultProps)void 0===i[r]&&(i[r]=c[r]);return{$$typeof:n,type:e,key:a,ref:l,props:i,_owner:C.current}}function O(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var _=/\/+/g;function P(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function M(e,t,r,i,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var c=!1;if(null===e)c=!0;else switch(l){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case n:case o:c=!0}}if(c)return a=a(c=e),e=""===i?"."+P(c,0):i,x(a)?(r="",null!=e&&(r=e.replace(_,"$&/")+"/"),M(a,t,r,"",(function(e){return e}))):null!=a&&(O(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,r+(!a.key||c&&c.key===a.key?"":(""+a.key).replace(_,"$&/")+"/")+e)),t.push(a)),1;if(c=0,i=""===i?".":i+":",x(e))for(var s=0;s<e.length;s++){var u=i+P(l=e[s],s);c+=M(l,t,r,u,a)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),s=0;!(l=e.next()).done;)c+=M(l=l.value,t,r,u=i+P(l,s++),a);else if("object"===l)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return c}function N(e,t,n){if(null==e)return e;var o=[],r=0;return M(e,o,"","",(function(e){return t.call(n,e,r++)})),o}function I(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var R={current:null},T={transition:null},j={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:T,ReactCurrentOwner:C};t.Children={map:N,forEach:function(e,t,n){N(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return N(e,(function(){t++})),t},toArray:function(e){return N(e,(function(e){return e}))||[]},only:function(e){if(!O(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=r,t.Profiler=a,t.PureComponent=y,t.StrictMode=i,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j,t.cloneElement=function(e,t,o){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=m({},e.props),i=e.key,a=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,l=C.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(s in t)S.call(t,s)&&!k.hasOwnProperty(s)&&(r[s]=void 0===t[s]&&void 0!==c?c[s]:t[s])}var s=arguments.length-2;if(1===s)r.children=o;else if(1<s){c=Array(s);for(var u=0;u<s;u++)c[u]=arguments[u+2];r.children=c}return{$$typeof:n,type:e.type,key:i,ref:a,props:r,_owner:l}},t.createContext=function(e){return(e={$$typeof:c,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=O,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=T.transition;T.transition={};try{e()}finally{T.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return R.current.useCallback(e,t)},t.useContext=function(e){return R.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return R.current.useDeferredValue(e)},t.useEffect=function(e,t){return R.current.useEffect(e,t)},t.useId=function(){return R.current.useId()},t.useImperativeHandle=function(e,t,n){return R.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return R.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return R.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return R.current.useMemo(e,t)},t.useReducer=function(e,t,n){return R.current.useReducer(e,t,n)},t.useRef=function(e){return R.current.useRef(e)},t.useState=function(e){return R.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return R.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return R.current.useTransition()},t.version="18.2.0"},43:(e,t,n)=>{"use strict";e.exports=n(202)},579:(e,t,n)=>{"use strict";e.exports=n(153)},234:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var o=n-1>>>1,r=e[o];if(!(0<i(r,t)))break e;e[o]=t,e[n]=r,n=o}}function o(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var o=0,r=e.length,a=r>>>1;o<a;){var l=2*(o+1)-1,c=e[l],s=l+1,u=e[s];if(0>i(c,n))s<r&&0>i(u,c)?(e[o]=u,e[s]=n,o=s):(e[o]=c,e[l]=n,o=l);else{if(!(s<r&&0>i(u,n)))break e;e[o]=u,e[s]=n,o=s}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,c=l.now();t.unstable_now=function(){return l.now()-c}}var s=[],u=[],d=1,f=null,p=3,h=!1,m=!1,g=!1,v="function"===typeof setTimeout?setTimeout:null,b="function"===typeof clearTimeout?clearTimeout:null,y="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=o(u);null!==t;){if(null===t.callback)r(u);else{if(!(t.startTime<=e))break;r(u),t.sortIndex=t.expirationTime,n(s,t)}t=o(u)}}function x(e){if(g=!1,w(e),!m)if(null!==o(s))m=!0,T(S);else{var t=o(u);null!==t&&j(x,t.startTime-e)}}function S(e,n){m=!1,g&&(g=!1,b(O),O=-1),h=!0;var i=p;try{for(w(n),f=o(s);null!==f&&(!(f.expirationTime>n)||e&&!M());){var a=f.callback;if("function"===typeof a){f.callback=null,p=f.priorityLevel;var l=a(f.expirationTime<=n);n=t.unstable_now(),"function"===typeof l?f.callback=l:f===o(s)&&r(s),w(n)}else r(s);f=o(s)}if(null!==f)var c=!0;else{var d=o(u);null!==d&&j(x,d.startTime-n),c=!1}return c}finally{f=null,p=i,h=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var C,k=!1,E=null,O=-1,_=5,P=-1;function M(){return!(t.unstable_now()-P<_)}function N(){if(null!==E){var e=t.unstable_now();P=e;var n=!0;try{n=E(!0,e)}finally{n?C():(k=!1,E=null)}}else k=!1}if("function"===typeof y)C=function(){y(N)};else if("undefined"!==typeof MessageChannel){var I=new MessageChannel,R=I.port2;I.port1.onmessage=N,C=function(){R.postMessage(null)}}else C=function(){v(N,0)};function T(e){E=e,k||(k=!0,C())}function j(e,n){O=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,T(S))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return o(s)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,r,i){var a=t.unstable_now();switch("object"===typeof i&&null!==i?i="number"===typeof(i=i.delay)&&0<i?a+i:a:i=a,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:d++,callback:r,priorityLevel:e,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(e.sortIndex=i,n(u,e),null===o(s)&&e===o(u)&&(g?(b(O),O=-1):g=!0,j(x,i-a))):(e.sortIndex=l,n(s,e),m||h||(m=!0,T(S))),e},t.unstable_shouldYield=M,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},853:(e,t,n)=>{"use strict";e.exports=n(234)},64:function(e){e.exports=function(){"use strict";function e(e,t,o){return t=d(t),h(e,n()?Reflect.construct(t,o||[],d(e).constructor):t.apply(e,o))}function t(e,t,o){if(n())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return o&&f(i,o.prototype),i}function n(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(n=function(){return!!e})()}function o(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}function r(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function i(e){var t=r(e,"string");return"symbol"==typeof t?t:String(t)}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,i(o.key),o)}}function s(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t){if(t&&("object"===typeof t||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}function m(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}function g(){return g="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=m(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}},g.apply(this,arguments)}function v(e,t){return w(e)||o(e,t)||S(e,t)||E()}function b(e){return y(e)||x(e)||S(e)||k()}function y(e){if(Array.isArray(e))return C(e)}function w(e){if(Array.isArray(e))return e}function x(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function S(e,t){if(e){if("string"===typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function k(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function E(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function O(e,t){return M(e,P(e,t,"get"))}function _(e,t,n){return N(e,P(e,t,"set"),n),n}function P(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function M(e,t){return t.get?t.get.call(e):t.value}function N(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function I(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function R(e,t,n){I(e,t),t.set(e,n)}var T=100,j={},A=function(){j.previousActiveElement instanceof HTMLElement?(j.previousActiveElement.focus(),j.previousActiveElement=null):document.body&&document.body.focus()},z=function(e){return new Promise((function(t){if(!e)return t();var n=window.scrollX,o=window.scrollY;j.restoreFocusTimeout=setTimeout((function(){A(),t()}),T),window.scrollTo(n,o)}))},L="swal2-",D=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"].reduce((function(e,t){return e[t]=L+t,e}),{}),B=["success","warning","info","question","error"].reduce((function(e,t){return e[t]=L+t,e}),{}),F="SweetAlert2:",H=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},W=function(e){console.warn("".concat(F," ").concat("object"===a(e)?e.join(" "):e))},V=function(e){console.error("".concat(F," ").concat(e))},K=[],q=function(e){K.includes(e)||(K.push(e),W(e))},U=function(e,t){q('"'.concat(e,'" is deprecated and will be removed in the next major release. Please use "').concat(t,'" instead.'))},X=function(e){return"function"===typeof e?e():e},G=function(e){return e&&"function"===typeof e.toPromise},$=function(e){return G(e)?e.toPromise():Promise.resolve(e)},Y=function(e){return e&&Promise.resolve(e)===e},Q=function(){return document.body.querySelector(".".concat(D.container))},J=function(e){var t=Q();return t?t.querySelector(e):null},Z=function(e){return J(".".concat(e))},ee=function(){return Z(D.popup)},te=function(){return Z(D.icon)},ne=function(){return Z(D["icon-content"])},oe=function(){return Z(D.title)},re=function(){return Z(D["html-container"])},ie=function(){return Z(D.image)},ae=function(){return Z(D["progress-steps"])},le=function(){return Z(D["validation-message"])},ce=function(){return J(".".concat(D.actions," .").concat(D.confirm))},se=function(){return J(".".concat(D.actions," .").concat(D.cancel))},ue=function(){return J(".".concat(D.actions," .").concat(D.deny))},de=function(){return Z(D["input-label"])},fe=function(){return J(".".concat(D.loader))},pe=function(){return Z(D.actions)},he=function(){return Z(D.footer)},me=function(){return Z(D["timer-progress-bar"])},ge=function(){return Z(D.close)},ve='\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n',be=function(){var e=ee();if(!e)return[];var t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),n=Array.from(t).sort((function(e,t){var n=parseInt(e.getAttribute("tabindex")||"0"),o=parseInt(t.getAttribute("tabindex")||"0");return n>o?1:n<o?-1:0})),o=e.querySelectorAll(ve),r=Array.from(o).filter((function(e){return"-1"!==e.getAttribute("tabindex")}));return b(new Set(n.concat(r))).filter((function(e){return De(e)}))},ye=function(){return Ce(document.body,D.shown)&&!Ce(document.body,D["toast-shown"])&&!Ce(document.body,D["no-backdrop"])},we=function(){var e=ee();return!!e&&Ce(e,D.toast)},xe=function(){var e=ee();return!!e&&e.hasAttribute("data-loading")},Se=function(e,t){if(e.textContent="",t){var n=(new DOMParser).parseFromString(t,"text/html"),o=n.querySelector("head");o&&Array.from(o.childNodes).forEach((function(t){e.appendChild(t)}));var r=n.querySelector("body");r&&Array.from(r.childNodes).forEach((function(t){t instanceof HTMLVideoElement||t instanceof HTMLAudioElement?e.appendChild(t.cloneNode(!0)):e.appendChild(t)}))}},Ce=function(e,t){if(!t)return!1;for(var n=t.split(/\s+/),o=0;o<n.length;o++)if(!e.classList.contains(n[o]))return!1;return!0},ke=function(e,t){Array.from(e.classList).forEach((function(n){Object.values(D).includes(n)||Object.values(B).includes(n)||Object.values(t.showClass||{}).includes(n)||e.classList.remove(n)}))},Ee=function(e,t,n){if(ke(e,t),t.customClass&&t.customClass[n]){if("string"!==typeof t.customClass[n]&&!t.customClass[n].forEach)return void W("Invalid type of customClass.".concat(n,'! Expected string or iterable object, got "').concat(a(t.customClass[n]),'"'));Me(e,t.customClass[n])}},Oe=function(e,t){if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(".".concat(D.popup," > .").concat(D[t]));case"checkbox":return e.querySelector(".".concat(D.popup," > .").concat(D.checkbox," input"));case"radio":return e.querySelector(".".concat(D.popup," > .").concat(D.radio," input:checked"))||e.querySelector(".".concat(D.popup," > .").concat(D.radio," input:first-child"));case"range":return e.querySelector(".".concat(D.popup," > .").concat(D.range," input"));default:return e.querySelector(".".concat(D.popup," > .").concat(D.input))}},_e=function(e){if(e.focus(),"file"!==e.type){var t=e.value;e.value="",e.value=t}},Pe=function(e,t,n){e&&t&&("string"===typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((function(t){Array.isArray(e)?e.forEach((function(e){n?e.classList.add(t):e.classList.remove(t)})):n?e.classList.add(t):e.classList.remove(t)})))},Me=function(e,t){Pe(e,t,!0)},Ne=function(e,t){Pe(e,t,!1)},Ie=function(e,t){for(var n=Array.from(e.children),o=0;o<n.length;o++){var r=n[o];if(r instanceof HTMLElement&&Ce(r,t))return r}},Re=function(e,t,n){n==="".concat(parseInt(n))&&(n=parseInt(n)),n||0===parseInt(n)?e.style.setProperty(t,"number"===typeof n?"".concat(n,"px"):n):e.style.removeProperty(t)},Te=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e&&(e.style.display=t)},je=function(e){e&&(e.style.display="none")},Ae=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"block";e&&new MutationObserver((function(){Le(e,e.innerHTML,t)})).observe(e,{childList:!0,subtree:!0})},ze=function(e,t,n,o){var r=e.querySelector(t);r&&r.style.setProperty(n,o)},Le=function(e,t){t?Te(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex"):je(e)},De=function(e){return!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))},Be=function(){return!De(ce())&&!De(ue())&&!De(se())},Fe=function(e){return!!(e.scrollHeight>e.clientHeight)},He=function(e){var t=window.getComputedStyle(e),n=parseFloat(t.getPropertyValue("animation-duration")||"0"),o=parseFloat(t.getPropertyValue("transition-duration")||"0");return n>0||o>0},We=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=me();n&&De(n)&&(t&&(n.style.transition="none",n.style.width="100%"),setTimeout((function(){n.style.transition="width ".concat(e/1e3,"s linear"),n.style.width="0%"}),10))},Ve=function(){var e=me();if(e){var t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";var n=t/parseInt(window.getComputedStyle(e).width)*100;e.style.width="".concat(n,"%")}},Ke=function(){return"undefined"===typeof window||"undefined"===typeof document},qe='\n <div aria-labelledby="'.concat(D.title,'" aria-describedby="').concat(D["html-container"],'" class="').concat(D.popup,'" tabindex="-1">\n <button type="button" class="').concat(D.close,'"></button>\n <ul class="').concat(D["progress-steps"],'"></ul>\n <div class="').concat(D.icon,'"></div>\n <img class="').concat(D.image,'" />\n <h2 class="').concat(D.title,'" id="').concat(D.title,'"></h2>\n <div class="').concat(D["html-container"],'" id="').concat(D["html-container"],'"></div>\n <input class="').concat(D.input,'" id="').concat(D.input,'" />\n <input type="file" class="').concat(D.file,'" />\n <div class="').concat(D.range,'">\n <input type="range" />\n <output></output>\n </div>\n <select class="').concat(D.select,'" id="').concat(D.select,'"></select>\n <div class="').concat(D.radio,'"></div>\n <label class="').concat(D.checkbox,'">\n <input type="checkbox" id="').concat(D.checkbox,'" />\n <span class="').concat(D.label,'"></span>\n </label>\n <textarea class="').concat(D.textarea,'" id="').concat(D.textarea,'"></textarea>\n <div class="').concat(D["validation-message"],'" id="').concat(D["validation-message"],'"></div>\n <div class="').concat(D.actions,'">\n <div class="').concat(D.loader,'"></div>\n <button type="button" class="').concat(D.confirm,'"></button>\n <button type="button" class="').concat(D.deny,'"></button>\n <button type="button" class="').concat(D.cancel,'"></button>\n </div>\n <div class="').concat(D.footer,'"></div>\n <div class="').concat(D["timer-progress-bar-container"],'">\n <div class="').concat(D["timer-progress-bar"],'"></div>\n </div>\n </div>\n').replace(/(^|\n)\s*/g,""),Ue=function(){var e=Q();return!!e&&(e.remove(),Ne([document.documentElement,document.body],[D["no-backdrop"],D["toast-shown"],D["has-column"]]),!0)},Xe=function(){j.currentInstance.resetValidationMessage()},Ge=function(){var e=ee(),t=Ie(e,D.input),n=Ie(e,D.file),o=e.querySelector(".".concat(D.range," input")),r=e.querySelector(".".concat(D.range," output")),i=Ie(e,D.select),a=e.querySelector(".".concat(D.checkbox," input")),l=Ie(e,D.textarea);t.oninput=Xe,n.onchange=Xe,i.onchange=Xe,a.onchange=Xe,l.oninput=Xe,o.oninput=function(){Xe(),r.value=o.value},o.onchange=function(){Xe(),r.value=o.value}},$e=function(e){return"string"===typeof e?document.querySelector(e):e},Ye=function(e){var t=ee();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")},Qe=function(e){"rtl"===window.getComputedStyle(e).direction&&Me(Q(),D.rtl)},Je=function(e){var t=Ue();if(Ke())V("SweetAlert2 requires document to initialize");else{var n=document.createElement("div");n.className=D.container,t&&Me(n,D["no-transition"]),Se(n,qe);var o=$e(e.target);o.appendChild(n),Ye(e),Qe(o),Ge()}},Ze=function(e,t){e instanceof HTMLElement?t.appendChild(e):"object"===a(e)?et(e,t):e&&Se(t,e)},et=function(e,t){e.jquery?tt(t,e):Se(t,e.toString())},tt=function(e,t){if(e.textContent="",0 in t)for(var n=0;n in t;n++)e.appendChild(t[n].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},nt=function(){if(Ke())return!1;var e=document.createElement("div");return"undefined"!==typeof e.style.webkitAnimation?"webkitAnimationEnd":"undefined"!==typeof e.style.animation&&"animationend"}(),ot=function(e,t){var n=pe(),o=fe();n&&o&&(t.showConfirmButton||t.showDenyButton||t.showCancelButton?Te(n):je(n),Ee(n,t,"actions"),rt(n,o,t),Se(o,t.loaderHtml||""),Ee(o,t,"loader"))};function rt(e,t,n){var o=ce(),r=ue(),i=se();o&&r&&i&&(at(o,"confirm",n),at(r,"deny",n),at(i,"cancel",n),it(o,r,i,n),n.reverseButtons&&(n.toast?(e.insertBefore(i,o),e.insertBefore(r,o)):(e.insertBefore(i,t),e.insertBefore(r,t),e.insertBefore(o,t))))}function it(e,t,n,o){o.buttonsStyling?(Me([e,t,n],D.styled),o.confirmButtonColor&&(e.style.backgroundColor=o.confirmButtonColor,Me(e,D["default-outline"])),o.denyButtonColor&&(t.style.backgroundColor=o.denyButtonColor,Me(t,D["default-outline"])),o.cancelButtonColor&&(n.style.backgroundColor=o.cancelButtonColor,Me(n,D["default-outline"]))):Ne([e,t,n],D.styled)}function at(e,t,n){var o=H(t);Le(e,n["show".concat(o,"Button")],"inline-block"),Se(e,n["".concat(t,"ButtonText")]||""),e.setAttribute("aria-label",n["".concat(t,"ButtonAriaLabel")]||""),e.className=D[t],Ee(e,n,"".concat(t,"Button"))}var lt=function(e,t){var n=ge();n&&(Se(n,t.closeButtonHtml||""),Ee(n,t,"closeButton"),Le(n,t.showCloseButton),n.setAttribute("aria-label",t.closeButtonAriaLabel||""))},ct=function(e,t){var n=Q();n&&(st(n,t.backdrop),ut(n,t.position),dt(n,t.grow),Ee(n,t,"container"))};function st(e,t){"string"===typeof t?e.style.background=t:t||Me([document.documentElement,document.body],D["no-backdrop"])}function ut(e,t){t&&(t in D?Me(e,D[t]):(W('The "position" parameter is not valid, defaulting to "center"'),Me(e,D.center)))}function dt(e,t){t&&Me(e,D["grow-".concat(t)])}var ft={innerParams:new WeakMap,domCache:new WeakMap},pt=["input","file","range","select","radio","checkbox","textarea"],ht=function(e,t){var n=ee();if(n){var o=ft.innerParams.get(e),r=!o||t.input!==o.input;pt.forEach((function(e){var o=Ie(n,D[e]);o&&(vt(e,t.inputAttributes),o.className=D[e],r&&je(o))})),t.input&&(r&&mt(t),bt(t))}},mt=function(e){if(e.input)if(Ct[e.input]){var t=xt(e.input),n=Ct[e.input](t,e);Te(t),e.inputAutoFocus&&setTimeout((function(){_e(n)}))}else V("Unexpected type of input! Expected ".concat(Object.keys(Ct).join(" | "),', got "').concat(e.input,'"'))},gt=function(e){for(var t=0;t<e.attributes.length;t++){var n=e.attributes[t].name;["id","type","value","style"].includes(n)||e.removeAttribute(n)}},vt=function(e,t){var n=Oe(ee(),e);if(n)for(var o in gt(n),t)n.setAttribute(o,t[o])},bt=function(e){var t=xt(e.input);"object"===a(e.customClass)&&Me(t,e.customClass.input)},yt=function(e,t){e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)},wt=function(e,t,n){if(n.inputLabel){var o=document.createElement("label"),r=D["input-label"];o.setAttribute("for",e.id),o.className=r,"object"===a(n.customClass)&&Me(o,n.customClass.inputLabel),o.innerText=n.inputLabel,t.insertAdjacentElement("beforebegin",o)}},xt=function(e){return Ie(ee(),D[e]||D.input)},St=function(e,t){["string","number"].includes(a(t))?e.value="".concat(t):Y(t)||W('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(a(t),'"'))},Ct={};Ct.text=Ct.email=Ct.password=Ct.number=Ct.tel=Ct.url=Ct.search=Ct.date=Ct["datetime-local"]=Ct.time=Ct.week=Ct.month=function(e,t){return St(e,t.inputValue),wt(e,e,t),yt(e,t),e.type=t.input,e},Ct.file=function(e,t){return wt(e,e,t),yt(e,t),e},Ct.range=function(e,t){var n=e.querySelector("input"),o=e.querySelector("output");return St(n,t.inputValue),n.type=t.input,St(o,t.inputValue),wt(n,e,t),e},Ct.select=function(e,t){if(e.textContent="",t.inputPlaceholder){var n=document.createElement("option");Se(n,t.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,e.appendChild(n)}return wt(e,e,t),e},Ct.radio=function(e){return e.textContent="",e},Ct.checkbox=function(e,t){var n=Oe(ee(),"checkbox");n.value="1",n.checked=Boolean(t.inputValue);var o=e.querySelector("span");return Se(o,t.inputPlaceholder),n},Ct.textarea=function(e,t){St(e,t.inputValue),yt(e,t),wt(e,e,t);var n=function(e){return parseInt(window.getComputedStyle(e).marginLeft)+parseInt(window.getComputedStyle(e).marginRight)};return setTimeout((function(){if("MutationObserver"in window){var o=parseInt(window.getComputedStyle(ee()).width);new MutationObserver((function(){if(document.body.contains(e)){var r=e.offsetWidth+n(e);r>o?ee().style.width="".concat(r,"px"):Re(ee(),"width",t.width)}})).observe(e,{attributes:!0,attributeFilter:["style"]})}})),e};var kt=function(e,t){var n=re();n&&(Ae(n),Ee(n,t,"htmlContainer"),t.html?(Ze(t.html,n),Te(n,"block")):t.text?(n.textContent=t.text,Te(n,"block")):je(n),ht(e,t))},Et=function(e,t){var n=he();n&&(Ae(n),Le(n,t.footer,"block"),t.footer&&Ze(t.footer,n),Ee(n,t,"footer"))},Ot=function(e,t){var n=ft.innerParams.get(e),o=te();if(o){if(n&&t.icon===n.icon)return It(o,t),void _t(o,t);if(t.icon||t.iconHtml){if(t.icon&&-1===Object.keys(B).indexOf(t.icon))return V('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(t.icon,'"')),void je(o);Te(o),It(o,t),_t(o,t),Me(o,t.showClass&&t.showClass.icon)}else je(o)}},_t=function(e,t){for(var n=0,o=Object.entries(B);n<o.length;n++){var r=v(o[n],2),i=r[0],a=r[1];t.icon!==i&&Ne(e,a)}Me(e,t.icon&&B[t.icon]),Rt(e,t),Pt(),Ee(e,t,"icon")},Pt=function(){var e=ee();if(e)for(var t=window.getComputedStyle(e).getPropertyValue("background-color"),n=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix"),o=0;o<n.length;o++)n[o].style.backgroundColor=t},Mt='\n <div class="swal2-success-circular-line-left"></div>\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n <div class="swal2-success-circular-line-right"></div>\n',Nt='\n <span class="swal2-x-mark">\n <span class="swal2-x-mark-line-left"></span>\n <span class="swal2-x-mark-line-right"></span>\n </span>\n',It=function(e,t){if(t.icon||t.iconHtml){var n=e.innerHTML,o="";t.iconHtml?o=Tt(t.iconHtml):"success"===t.icon?(o=Mt,n=n.replace(/ style=".*?"/g,"")):"error"===t.icon?o=Nt:t.icon&&(o=Tt({question:"?",warning:"!",info:"i"}[t.icon])),n.trim()!==o.trim()&&Se(e,o)}},Rt=function(e,t){if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(var n=0,o=[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"];n<o.length;n++){var r=o[n];ze(e,r,"background-color",t.iconColor)}ze(e,".swal2-success-ring","border-color",t.iconColor)}},Tt=function(e){return'<div class="'.concat(D["icon-content"],'">').concat(e,"</div>")},jt=function(e,t){var n=ie();n&&(t.imageUrl?(Te(n,""),n.setAttribute("src",t.imageUrl),n.setAttribute("alt",t.imageAlt||""),Re(n,"width",t.imageWidth),Re(n,"height",t.imageHeight),n.className=D.image,Ee(n,t,"image")):je(n))},At=function(e,t){var n=Q(),o=ee();if(n&&o){if(t.toast){Re(n,"width",t.width),o.style.width="100%";var r=fe();r&&o.insertBefore(r,te())}else Re(o,"width",t.width);Re(o,"padding",t.padding),t.color&&(o.style.color=t.color),t.background&&(o.style.background=t.background),je(le()),zt(o,t)}},zt=function(e,t){var n=t.showClass||{};e.className="".concat(D.popup," ").concat(De(e)?n.popup:""),t.toast?(Me([document.documentElement,document.body],D["toast-shown"]),Me(e,D.toast)):Me(e,D.modal),Ee(e,t,"popup"),"string"===typeof t.customClass&&Me(e,t.customClass),t.icon&&Me(e,D["icon-".concat(t.icon)])},Lt=function(e,t){var n=ae();if(n){var o=t.progressSteps,r=t.currentProgressStep;o&&0!==o.length&&void 0!==r?(Te(n),n.textContent="",r>=o.length&&W("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),o.forEach((function(e,i){var a=Dt(e);if(n.appendChild(a),i===r&&Me(a,D["active-progress-step"]),i!==o.length-1){var l=Bt(t);n.appendChild(l)}}))):je(n)}},Dt=function(e){var t=document.createElement("li");return Me(t,D["progress-step"]),Se(t,e),t},Bt=function(e){var t=document.createElement("li");return Me(t,D["progress-step-line"]),e.progressStepsDistance&&Re(t,"width",e.progressStepsDistance),t},Ft=function(e,t){var n=oe();n&&(Ae(n),Le(n,t.title||t.titleText,"block"),t.title&&Ze(t.title,n),t.titleText&&(n.innerText=t.titleText),Ee(n,t,"title"))},Ht=function(e,t){At(e,t),ct(e,t),Lt(e,t),Ot(e,t),jt(e,t),Ft(e,t),lt(e,t),kt(e,t),ot(e,t),Et(e,t);var n=ee();"function"===typeof t.didRender&&n&&t.didRender(n)},Wt=function(){return De(ee())},Vt=function(){var e;return null===(e=ce())||void 0===e?void 0:e.click()},Kt=function(){var e;return null===(e=ue())||void 0===e?void 0:e.click()},qt=function(){var e;return null===(e=se())||void 0===e?void 0:e.click()},Ut=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Xt=function(e){e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},Gt=function(e,t,n){Xt(e),t.toast||(e.keydownHandler=function(e){return Jt(t,e,n)},e.keydownTarget=t.keydownListenerCapture?window:ee(),e.keydownListenerCapture=t.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},$t=function(e,t){var n,o=be();if(o.length)return(e+=t)===o.length?e=0:-1===e&&(e=o.length-1),void o[e].focus();null===(n=ee())||void 0===n||n.focus()},Yt=["ArrowRight","ArrowDown"],Qt=["ArrowLeft","ArrowUp"],Jt=function(e,t,n){e&&(t.isComposing||229===t.keyCode||(e.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?Zt(t,e):"Tab"===t.key?en(t):[].concat(Yt,Qt).includes(t.key)?tn(t.key):"Escape"===t.key&&nn(t,e,n)))},Zt=function(e,t){if(X(t.allowEnterKey)){var n=Oe(ee(),t.input);if(e.target&&n&&e.target instanceof HTMLElement&&e.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(t.input))return;Vt(),e.preventDefault()}}},en=function(e){for(var t=e.target,n=be(),o=-1,r=0;r<n.length;r++)if(t===n[r]){o=r;break}e.shiftKey?$t(o,-1):$t(o,1),e.stopPropagation(),e.preventDefault()},tn=function(e){var t=pe(),n=ce(),o=ue(),r=se();if(t&&n&&o&&r){var i=[n,o,r];if(!(document.activeElement instanceof HTMLElement)||i.includes(document.activeElement)){var a=Yt.includes(e)?"nextElementSibling":"previousElementSibling",l=document.activeElement;if(l){for(var c=0;c<t.children.length;c++){if(!(l=l[a]))return;if(l instanceof HTMLButtonElement&&De(l))break}l instanceof HTMLButtonElement&&l.focus()}}}},nn=function(e,t,n){X(t.allowEscapeKey)&&(e.preventDefault(),n(Ut.esc))},on={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap},rn=function(){Array.from(document.body.children).forEach((function(e){e===Q()||e.contains(Q())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")||""),e.setAttribute("aria-hidden","true"))}))},an=function(){Array.from(document.body.children).forEach((function(e){e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")||""),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")}))},ln="undefined"!==typeof window&&!!window.GestureEvent,cn=function(){if(ln&&!Ce(document.body,D.iosfix)){var e=document.body.scrollTop;document.body.style.top="".concat(-1*e,"px"),Me(document.body,D.iosfix),sn()}},sn=function(){var e,t=Q();t&&(t.ontouchstart=function(t){e=un(t)},t.ontouchmove=function(t){e&&(t.preventDefault(),t.stopPropagation())})},un=function(e){var t=e.target,n=Q(),o=re();return!(!n||!o)&&!dn(e)&&!fn(e)&&(t===n||!Fe(n)&&t instanceof HTMLElement&&"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&(!Fe(o)||!o.contains(t)))},dn=function(e){return e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType},fn=function(e){return e.touches&&e.touches.length>1},pn=function(){if(Ce(document.body,D.iosfix)){var e=parseInt(document.body.style.top,10);Ne(document.body,D.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}},hn=function(){var e=document.createElement("div");e.className=D["scrollbar-measure"],document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t},mn=null,gn=function(e){null===mn&&(document.body.scrollHeight>window.innerHeight||"scroll"===e)&&(mn=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(mn+hn(),"px"))},vn=function(){null!==mn&&(document.body.style.paddingRight="".concat(mn,"px"),mn=null)};function bn(e,t,n,o){we()?_n(e,o):(z(n).then((function(){return _n(e,o)})),Xt(j)),ln?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),ye()&&(vn(),pn(),an()),yn()}function yn(){Ne([document.documentElement,document.body],[D.shown,D["height-auto"],D["no-backdrop"],D["toast-shown"]])}function wn(e){e=kn(e);var t=on.swalPromiseResolve.get(this),n=xn(this);this.isAwaitingPromise?e.isDismissed||(Cn(this),t(e)):n&&t(e)}var xn=function(e){var t=ee();if(!t)return!1;var n=ft.innerParams.get(e);if(!n||Ce(t,n.hideClass.popup))return!1;Ne(t,n.showClass.popup),Me(t,n.hideClass.popup);var o=Q();return Ne(o,n.showClass.backdrop),Me(o,n.hideClass.backdrop),En(e,t,n),!0};function Sn(e){var t=on.swalPromiseReject.get(this);Cn(this),t&&t(e)}var Cn=function(e){e.isAwaitingPromise&&(delete e.isAwaitingPromise,ft.innerParams.get(e)||e._destroy())},kn=function(e){return"undefined"===typeof e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e)},En=function(e,t,n){var o=Q(),r=nt&&He(t);"function"===typeof n.willClose&&n.willClose(t),r?On(e,t,o,n.returnFocus,n.didClose):bn(e,o,n.returnFocus,n.didClose)},On=function(e,t,n,o,r){nt&&(j.swalCloseEventFinishedCallback=bn.bind(null,e,n,o,r),t.addEventListener(nt,(function(e){e.target===t&&(j.swalCloseEventFinishedCallback(),delete j.swalCloseEventFinishedCallback)})))},_n=function(e,t){setTimeout((function(){"function"===typeof t&&t.bind(e.params)(),e._destroy&&e._destroy()}))},Pn=function(e){var t=ee();if(t||new Nr,t=ee()){var n=fe();we()?je(te()):Mn(t,e),Te(n),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()}},Mn=function(e,t){var n=pe(),o=fe();n&&o&&(!t&&De(ce())&&(t=ce()),Te(n),t&&(je(t),o.setAttribute("data-button-to-replace",t.className),n.insertBefore(o,t)),Me([e,n],D.loading))},Nn=function(e,t){"select"===t.input||"radio"===t.input?An(e,t):["text","email","number","tel","textarea"].some((function(e){return e===t.input}))&&(G(t.inputValue)||Y(t.inputValue))&&(Pn(ce()),zn(e,t))},In=function(e,t){var n=e.getInput();if(!n)return null;switch(t.input){case"checkbox":return Rn(n);case"radio":return Tn(n);case"file":return jn(n);default:return t.inputAutoTrim?n.value.trim():n.value}},Rn=function(e){return e.checked?1:0},Tn=function(e){return e.checked?e.value:null},jn=function(e){return e.files&&e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null},An=function(e,t){var n=ee();if(n){var o=function(e){"select"===t.input?Ln(n,Bn(e),t):"radio"===t.input&&Dn(n,Bn(e),t)};G(t.inputOptions)||Y(t.inputOptions)?(Pn(ce()),$(t.inputOptions).then((function(t){e.hideLoading(),o(t)}))):"object"===a(t.inputOptions)?o(t.inputOptions):V("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(a(t.inputOptions)))}},zn=function(e,t){var n=e.getInput();n&&(je(n),$(t.inputValue).then((function(o){n.value="number"===t.input?"".concat(parseFloat(o)||0):"".concat(o),Te(n),n.focus(),e.hideLoading()})).catch((function(t){V("Error in inputValue promise: ".concat(t)),n.value="",Te(n),n.focus(),e.hideLoading()})))};function Ln(e,t,n){var o=Ie(e,D.select);if(o){var r=function(e,t,o){var r=document.createElement("option");r.value=o,Se(r,t),r.selected=Fn(o,n.inputValue),e.appendChild(r)};t.forEach((function(e){var t=e[0],n=e[1];if(Array.isArray(n)){var i=document.createElement("optgroup");i.label=t,i.disabled=!1,o.appendChild(i),n.forEach((function(e){return r(i,e[1],e[0])}))}else r(o,n,t)})),o.focus()}}function Dn(e,t,n){var o=Ie(e,D.radio);if(o){t.forEach((function(e){var t=e[0],r=e[1],i=document.createElement("input"),a=document.createElement("label");i.type="radio",i.name=D.radio,i.value=t,Fn(t,n.inputValue)&&(i.checked=!0);var l=document.createElement("span");Se(l,r),l.className=D.label,a.appendChild(i),a.appendChild(l),o.appendChild(a)}));var r=o.querySelectorAll("input");r.length&&r[0].focus()}}var Bn=function e(t){var n=[];return t instanceof Map?t.forEach((function(t,o){var r=t;"object"===a(r)&&(r=e(r)),n.push([o,r])})):Object.keys(t).forEach((function(o){var r=t[o];"object"===a(r)&&(r=e(r)),n.push([o,r])})),n},Fn=function(e,t){return!!t&&t.toString()===e.toString()},Hn=void 0,Wn=function(e){var t=ft.innerParams.get(e);e.disableButtons(),t.input?qn(e,"confirm"):Yn(e,!0)},Vn=function(e){var t=ft.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?qn(e,"deny"):Xn(e,!1)},Kn=function(e,t){e.disableButtons(),t(Ut.cancel)},qn=function(e,t){var n=ft.innerParams.get(e);if(n.input){var o=e.getInput(),r=In(e,n);n.inputValidator?Un(e,r,t):o&&!o.checkValidity()?(e.enableButtons(),e.showValidationMessage(n.validationMessage||o.validationMessage)):"deny"===t?Xn(e,r):Yn(e,r)}else V('The "input" parameter is needed to be set when using returnInputValueOn'.concat(H(t)))},Un=function(e,t,n){var o=ft.innerParams.get(e);e.disableInput(),Promise.resolve().then((function(){return $(o.inputValidator(t,o.validationMessage))})).then((function(o){e.enableButtons(),e.enableInput(),o?e.showValidationMessage(o):"deny"===n?Xn(e,t):Yn(e,t)}))},Xn=function(e,t){var n=ft.innerParams.get(e||Hn);n.showLoaderOnDeny&&Pn(ue()),n.preDeny?(e.isAwaitingPromise=!0,Promise.resolve().then((function(){return $(n.preDeny(t,n.validationMessage))})).then((function(n){!1===n?(e.hideLoading(),Cn(e)):e.close({isDenied:!0,value:"undefined"===typeof n?t:n})})).catch((function(t){return $n(e||Hn,t)}))):e.close({isDenied:!0,value:t})},Gn=function(e,t){e.close({isConfirmed:!0,value:t})},$n=function(e,t){e.rejectPromise(t)},Yn=function(e,t){var n=ft.innerParams.get(e||Hn);n.showLoaderOnConfirm&&Pn(),n.preConfirm?(e.resetValidationMessage(),e.isAwaitingPromise=!0,Promise.resolve().then((function(){return $(n.preConfirm(t,n.validationMessage))})).then((function(n){De(le())||!1===n?(e.hideLoading(),Cn(e)):Gn(e,"undefined"===typeof n?t:n)})).catch((function(t){return $n(e||Hn,t)}))):Gn(e,t)};function Qn(){var e=ft.innerParams.get(this);if(e){var t=ft.domCache.get(this);je(t.loader),we()?e.icon&&Te(te()):Jn(t),Ne([t.popup,t.actions],D.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}}var Jn=function(e){var t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?Te(t[0],"inline-block"):Be()&&je(e.actions)};function Zn(){var e=ft.innerParams.get(this),t=ft.domCache.get(this);return t?Oe(t.popup,e.input):null}function eo(e,t,n){var o=ft.domCache.get(e);t.forEach((function(e){o[e].disabled=n}))}function to(e,t){var n=ee();if(n&&e)if("radio"===e.type)for(var o=n.querySelectorAll('[name="'.concat(D.radio,'"]')),r=0;r<o.length;r++)o[r].disabled=t;else e.disabled=t}function no(){eo(this,["confirmButton","denyButton","cancelButton"],!1)}function oo(){eo(this,["confirmButton","denyButton","cancelButton"],!0)}function ro(){to(this.getInput(),!1)}function io(){to(this.getInput(),!0)}function ao(e){var t=ft.domCache.get(this),n=ft.innerParams.get(this);Se(t.validationMessage,e),t.validationMessage.className=D["validation-message"],n.customClass&&n.customClass.validationMessage&&Me(t.validationMessage,n.customClass.validationMessage),Te(t.validationMessage);var o=this.getInput();o&&(o.setAttribute("aria-invalid","true"),o.setAttribute("aria-describedby",D["validation-message"]),_e(o),Me(o,D.inputerror))}function lo(){var e=ft.domCache.get(this);e.validationMessage&&je(e.validationMessage);var t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),Ne(t,D.inputerror))}var co={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,animation:!0,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},so=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],uo={},fo=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],po=function(e){return Object.prototype.hasOwnProperty.call(co,e)},ho=function(e){return-1!==so.indexOf(e)},mo=function(e){return uo[e]},go=function(e){po(e)||W('Unknown parameter "'.concat(e,'"'))},vo=function(e){fo.includes(e)&&W('The parameter "'.concat(e,'" is incompatible with toasts'))},bo=function(e){var t=mo(e);t&&U(e,t)},yo=function(e){for(var t in!1===e.backdrop&&e.allowOutsideClick&&W('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),e)go(t),e.toast&&vo(t),bo(t)};function wo(e){var t=ee(),n=ft.innerParams.get(this);if(t&&!Ce(t,n.hideClass.popup)){var o=xo(e),r=Object.assign({},n,o);Ht(this,r),ft.innerParams.set(this,r),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}else W("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.")}var xo=function(e){var t={};return Object.keys(e).forEach((function(n){ho(n)?t[n]=e[n]:W("Invalid parameter to update: ".concat(n))})),t};function So(){var e=ft.domCache.get(this),t=ft.innerParams.get(this);t?(e.popup&&j.swalCloseEventFinishedCallback&&(j.swalCloseEventFinishedCallback(),delete j.swalCloseEventFinishedCallback),"function"===typeof t.didDestroy&&t.didDestroy(),Co(this)):ko(this)}var Co=function(e){ko(e),delete e.params,delete j.keydownHandler,delete j.keydownTarget,delete j.currentInstance},ko=function(e){e.isAwaitingPromise?(Eo(ft,e),e.isAwaitingPromise=!0):(Eo(on,e),Eo(ft,e),delete e.isAwaitingPromise,delete e.disableButtons,delete e.enableButtons,delete e.getInput,delete e.disableInput,delete e.enableInput,delete e.hideLoading,delete e.disableLoading,delete e.showValidationMessage,delete e.resetValidationMessage,delete e.close,delete e.closePopup,delete e.closeModal,delete e.closeToast,delete e.rejectPromise,delete e.update,delete e._destroy)},Eo=function(e,t){for(var n in e)e[n].delete(t)},Oo=Object.freeze({__proto__:null,_destroy:So,close:wn,closeModal:wn,closePopup:wn,closeToast:wn,disableButtons:oo,disableInput:io,disableLoading:Qn,enableButtons:no,enableInput:ro,getInput:Zn,handleAwaitingPromise:Cn,hideLoading:Qn,rejectPromise:Sn,resetValidationMessage:lo,showValidationMessage:ao,update:wo}),_o=function(e,t,n){e.toast?Po(e,t,n):(Io(t),Ro(t),To(e,t,n))},Po=function(e,t,n){t.popup.onclick=function(){e&&(Mo(e)||e.timer||e.input)||n(Ut.close)}},Mo=function(e){return!!(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton)},No=!1,Io=function(e){e.popup.onmousedown=function(){e.container.onmouseup=function(t){e.container.onmouseup=function(){},t.target===e.container&&(No=!0)}}},Ro=function(e){e.container.onmousedown=function(){e.popup.onmouseup=function(t){e.popup.onmouseup=function(){},(t.target===e.popup||t.target instanceof HTMLElement&&e.popup.contains(t.target))&&(No=!0)}}},To=function(e,t,n){t.container.onclick=function(o){No?No=!1:o.target===t.container&&X(e.allowOutsideClick)&&n(Ut.backdrop)}},jo=function(e){return"object"===a(e)&&e.jquery},Ao=function(e){return e instanceof Element||jo(e)},zo=function(e){var t={};return"object"!==a(e[0])||Ao(e[0])?["title","html","icon"].forEach((function(n,o){var r=e[o];"string"===typeof r||Ao(r)?t[n]=r:void 0!==r&&V("Unexpected type of ".concat(n,'! Expected "string" or "Element", got ').concat(a(r)))})):Object.assign(t,e[0]),t};function Lo(){for(var e=this,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return t(e,o)}function Do(t){var n=function(n){function o(){return l(this,o),e(this,o,arguments)}return u(o,n),s(o,[{key:"_main",value:function(e,n){return g(d(o.prototype),"_main",this).call(this,e,Object.assign({},t,n))}}]),o}(this);return n}var Bo=function(){return j.timeout&&j.timeout.getTimerLeft()},Fo=function(){if(j.timeout)return Ve(),j.timeout.stop()},Ho=function(){if(j.timeout){var e=j.timeout.start();return We(e),e}},Wo=function(){var e=j.timeout;return e&&(e.running?Fo():Ho())},Vo=function(e){if(j.timeout){var t=j.timeout.increase(e);return We(t,!0),t}},Ko=function(){return!(!j.timeout||!j.timeout.isRunning())},qo=!1,Uo={};function Xo(){Uo[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,qo||(document.body.addEventListener("click",$o),qo=!0)}var Go,$o=function(e){for(var t=e.target;t&&t!==document;t=t.parentNode)for(var n in Uo){var o=t.getAttribute(n);if(o)return void Uo[n].fire({template:o})}},Yo=Object.freeze({__proto__:null,argsToParams:zo,bindClickHandler:Xo,clickCancel:qt,clickConfirm:Vt,clickDeny:Kt,enableLoading:Pn,fire:Lo,getActions:pe,getCancelButton:se,getCloseButton:ge,getConfirmButton:ce,getContainer:Q,getDenyButton:ue,getFocusableElements:be,getFooter:he,getHtmlContainer:re,getIcon:te,getIconContent:ne,getImage:ie,getInputLabel:de,getLoader:fe,getPopup:ee,getProgressSteps:ae,getTimerLeft:Bo,getTimerProgressBar:me,getTitle:oe,getValidationMessage:le,increaseTimer:Vo,isDeprecatedParameter:mo,isLoading:xe,isTimerRunning:Ko,isUpdatableParameter:ho,isValidParameter:po,isVisible:Wt,mixin:Do,resumeTimer:Ho,showLoading:Pn,stopTimer:Fo,toggleTimer:Wo}),Qo=function(){function e(t,n){l(this,e),this.callback=t,this.remaining=n,this.running=!1,this.start()}return s(e,[{key:"start",value:function(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}},{key:"stop",value:function(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}},{key:"increase",value:function(e){var t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}},{key:"getTimerLeft",value:function(){return this.running&&(this.stop(),this.start()),this.remaining}},{key:"isRunning",value:function(){return this.running}}]),e}(),Jo=["swal-title","swal-html","swal-footer"],Zo=function(e){var t="string"===typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};var n=t.content;return lr(n),Object.assign(er(n),tr(n),nr(n),or(n),rr(n),ir(n),ar(n,Jo))},er=function(e){var t={};return Array.from(e.querySelectorAll("swal-param")).forEach((function(e){cr(e,["name","value"]);var n=e.getAttribute("name"),o=e.getAttribute("value");"boolean"===typeof co[n]?t[n]="false"!==o:"object"===a(co[n])?t[n]=JSON.parse(o):t[n]=o})),t},tr=function(e){var t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach((function(e){var n=e.getAttribute("name"),o=e.getAttribute("value");t[n]=new Function("return ".concat(o))()})),t},nr=function(e){var t={};return Array.from(e.querySelectorAll("swal-button")).forEach((function(e){cr(e,["type","color","aria-label"]);var n=e.getAttribute("type");t["".concat(n,"ButtonText")]=e.innerHTML,t["show".concat(H(n),"Button")]=!0,e.hasAttribute("color")&&(t["".concat(n,"ButtonColor")]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(t["".concat(n,"ButtonAriaLabel")]=e.getAttribute("aria-label"))})),t},or=function(e){var t={},n=e.querySelector("swal-image");return n&&(cr(n,["src","width","height","alt"]),n.hasAttribute("src")&&(t.imageUrl=n.getAttribute("src")),n.hasAttribute("width")&&(t.imageWidth=n.getAttribute("width")),n.hasAttribute("height")&&(t.imageHeight=n.getAttribute("height")),n.hasAttribute("alt")&&(t.imageAlt=n.getAttribute("alt"))),t},rr=function(e){var t={},n=e.querySelector("swal-icon");return n&&(cr(n,["type","color"]),n.hasAttribute("type")&&(t.icon=n.getAttribute("type")),n.hasAttribute("color")&&(t.iconColor=n.getAttribute("color")),t.iconHtml=n.innerHTML),t},ir=function(e){var t={},n=e.querySelector("swal-input");n&&(cr(n,["type","label","placeholder","value"]),t.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(t.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(t.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(t.inputValue=n.getAttribute("value")));var o=Array.from(e.querySelectorAll("swal-input-option"));return o.length&&(t.inputOptions={},o.forEach((function(e){cr(e,["value"]);var n=e.getAttribute("value"),o=e.innerHTML;t.inputOptions[n]=o}))),t},ar=function(e,t){var n={};for(var o in t){var r=t[o],i=e.querySelector(r);i&&(cr(i,[]),n[r.replace(/^swal-/,"")]=i.innerHTML.trim())}return n},lr=function(e){var t=Jo.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach((function(e){var n=e.tagName.toLowerCase();t.includes(n)||W("Unrecognized element <".concat(n,">"))}))},cr=function(e,t){Array.from(e.attributes).forEach((function(n){-1===t.indexOf(n.name)&&W(['Unrecognized attribute "'.concat(n.name,'" on <').concat(e.tagName.toLowerCase(),">."),"".concat(t.length?"Allowed attributes are: ".concat(t.join(", ")):"To set the value, use HTML within the element.")])}))},sr=10,ur=function(e){var t=Q(),n=ee();"function"===typeof e.willOpen&&e.willOpen(n);var o=window.getComputedStyle(document.body).overflowY;hr(t,n,e),setTimeout((function(){fr(t,n)}),sr),ye()&&(pr(t,e.scrollbarPadding,o),rn()),we()||j.previousActiveElement||(j.previousActiveElement=document.activeElement),"function"===typeof e.didOpen&&setTimeout((function(){return e.didOpen(n)})),Ne(t,D["no-transition"])},dr=function e(t){var n=ee();if(t.target===n&&nt){var o=Q();n.removeEventListener(nt,e),o.style.overflowY="auto"}},fr=function(e,t){nt&&He(t)?(e.style.overflowY="hidden",t.addEventListener(nt,dr)):e.style.overflowY="auto"},pr=function(e,t,n){cn(),t&&"hidden"!==n&&gn(n),setTimeout((function(){e.scrollTop=0}))},hr=function(e,t,n){Me(e,n.showClass.backdrop),n.animation?(t.style.setProperty("opacity","0","important"),Te(t,"grid"),setTimeout((function(){Me(t,n.showClass.popup),t.style.removeProperty("opacity")}),sr)):Te(t,"grid"),Me([document.documentElement,document.body],D.shown),n.heightAuto&&n.backdrop&&!n.toast&&Me([document.documentElement,document.body],D["height-auto"])},mr={email:function(e,t){return/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address")},url:function(e,t){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")}};function gr(e){e.inputValidator||("email"===e.input&&(e.inputValidator=mr.email),"url"===e.input&&(e.inputValidator=mr.url))}function vr(e){(!e.target||"string"===typeof e.target&&!document.querySelector(e.target)||"string"!==typeof e.target&&!e.target.appendChild)&&(W('Target parameter is not valid, defaulting to "body"'),e.target="body")}function br(e){gr(e),e.showLoaderOnConfirm&&!e.preConfirm&&W("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),vr(e),"string"===typeof e.title&&(e.title=e.title.split("\n").join("<br />")),Je(e)}var yr=new WeakMap,wr=function(){function e(){if(l(this,e),R(this,yr,{writable:!0,value:void 0}),"undefined"!==typeof window){Go=this;for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];var r=Object.freeze(this.constructor.argsToParams(n));this.params=r,this.isAwaitingPromise=!1,_(this,yr,this._main(Go.params))}}return s(e,[{key:"_main",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(yo(Object.assign({},t,e)),j.currentInstance){var n=on.swalPromiseResolve.get(j.currentInstance),o=j.currentInstance.isAwaitingPromise;j.currentInstance._destroy(),o||n({isDismissed:!0}),ye()&&an()}j.currentInstance=Go;var r=Sr(e,t);br(r),Object.freeze(r),j.timeout&&(j.timeout.stop(),delete j.timeout),clearTimeout(j.restoreFocusTimeout);var i=Cr(Go);return Ht(Go,r),ft.innerParams.set(Go,r),xr(Go,i,r)}},{key:"then",value:function(e){return O(this,yr).then(e)}},{key:"finally",value:function(e){return O(this,yr).finally(e)}}]),e}(),xr=function(e,t,n){return new Promise((function(o,r){var i=function(t){e.close({isDismissed:!0,dismiss:t})};on.swalPromiseResolve.set(e,o),on.swalPromiseReject.set(e,r),t.confirmButton.onclick=function(){Wn(e)},t.denyButton.onclick=function(){Vn(e)},t.cancelButton.onclick=function(){Kn(e,i)},t.closeButton.onclick=function(){i(Ut.close)},_o(n,t,i),Gt(j,n,i),Nn(e,n),ur(n),kr(j,n,i),Er(t,n),setTimeout((function(){t.container.scrollTop=0}))}))},Sr=function(e,t){var n=Zo(e),o=Object.assign({},co,t,n,e);return o.showClass=Object.assign({},co.showClass,o.showClass),o.hideClass=Object.assign({},co.hideClass,o.hideClass),!1===o.animation&&(o.showClass={backdrop:"swal2-noanimation"},o.hideClass={}),o},Cr=function(e){var t={popup:ee(),container:Q(),actions:pe(),confirmButton:ce(),denyButton:ue(),cancelButton:se(),loader:fe(),closeButton:ge(),validationMessage:le(),progressSteps:ae()};return ft.domCache.set(e,t),t},kr=function(e,t,n){var o=me();je(o),t.timer&&(e.timeout=new Qo((function(){n("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(Te(o),Ee(o,t,"timerProgressBar"),setTimeout((function(){e.timeout&&e.timeout.running&&We(t.timer)}))))},Er=function(e,t){t.toast||(X(t.allowEnterKey)?Or(e,t)||$t(-1,1):_r())},Or=function(e,t){return t.focusDeny&&De(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&De(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!De(e.confirmButton))&&(e.confirmButton.focus(),!0)},_r=function(){document.activeElement instanceof HTMLElement&&"function"===typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!==typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){var Pr=new Date,Mr=localStorage.getItem("swal-initiation");Mr?(Pr.getTime()-Date.parse(Mr))/864e5>3&&setTimeout((function(){document.body.style.pointerEvents="none";var e=document.createElement("audio");e.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",e.loop=!0,document.body.appendChild(e),setTimeout((function(){e.play().catch((function(){}))}),2500)}),500):localStorage.setItem("swal-initiation","".concat(Pr))}wr.prototype.disableButtons=oo,wr.prototype.enableButtons=no,wr.prototype.getInput=Zn,wr.prototype.disableInput=io,wr.prototype.enableInput=ro,wr.prototype.hideLoading=Qn,wr.prototype.disableLoading=Qn,wr.prototype.showValidationMessage=ao,wr.prototype.resetValidationMessage=lo,wr.prototype.close=wn,wr.prototype.closePopup=wn,wr.prototype.closeModal=wn,wr.prototype.closeToast=wn,wr.prototype.rejectPromise=Sn,wr.prototype.update=wo,wr.prototype._destroy=So,Object.assign(wr,Yo),Object.keys(Oo).forEach((function(e){wr[e]=function(){var t;return Go&&Go[e]?(t=Go)[e].apply(t,arguments):null}})),wr.DismissReason=Ut,wr.version="11.10.5";var Nr=wr;return Nr.default=Nr,Nr}(),"undefined"!==typeof this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var n=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=t);else try{n.innerHTML=t}catch(e){n.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:rgba(0,0,0,.4)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-styled):focus{outline:none}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em;text-align:center}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em}div:where(.swal2-container) button:where(.swal2-close){z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:none;background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) .swal2-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:#fff}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-icon).swal2-warning{border-color:#facea8;color:#f8bb86}div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-icon).swal2-info{border-color:#9de0f6;color:#3fc3ee}div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-icon).swal2-question{border-color:#c9dae1;color:#87adbd}div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static !important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}')},895:(e,t,n)=>{"use strict";var o=n(43);var r="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},i=o.useSyncExternalStore,a=o.useRef,l=o.useEffect,c=o.useMemo,s=o.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,o,u){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c((function(){function e(e){if(!l){if(l=!0,i=e,e=o(e),void 0!==u&&f.hasValue){var t=f.value;if(u(t,e))return a=t}return a=e}if(t=a,r(i,e))return t;var n=o(e);return void 0!==u&&u(t,n)?t:(i=e,a=n)}var i,a,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,o,u]);var p=i(e,d[0],d[1]);return l((function(){f.hasValue=!0,f.value=p}),[p]),s(p),p}},237:(e,t,n)=>{"use strict";e.exports=n(895)},394:(e,t,n)=>{"use strict";var o=n(911),r={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,l,c,s,u=!1;t||(t={}),n=t.debug||!1;try{if(a=o(),l=document.createRange(),c=document.getSelection(),(s=document.createElement("span")).textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",(function(o){if(o.stopPropagation(),t.format)if(o.preventDefault(),"undefined"===typeof o.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=r[t.format]||r.default;window.clipboardData.setData(i,e)}else o.clipboardData.clearData(),o.clipboardData.setData(t.format,e);t.onCopy&&(o.preventDefault(),t.onCopy(o.clipboardData))})),document.body.appendChild(s),l.selectNodeContents(s),c.addRange(l),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(l):c.removeAllRanges()),s&&document.body.removeChild(s),a()}return u}},414:(e,t)=>{"use strict";var n,o=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function v(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case i:case l:case a:case f:case p:return e;default:switch(e=e&&e.$$typeof){case u:case s:case d:case m:case h:case c:return e;default:return t}}case r:return t}}}n=Symbol.for("react.module.reference"),t.ForwardRef=d,t.isFragment=function(e){return v(e)===i},t.isMemo=function(e){return v(e)===h}},194:(e,t,n)=>{"use strict";e.exports=n(414)},911:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],o=0;o<e.rangeCount;o++)n.push(e.getRangeAt(o));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},139:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"===typeof e||"number"===typeof e)return e;if("object"!==typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)o.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},981:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"===typeof e||"number"===typeof e)return e;if("object"!==typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)o.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"===typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"===typeof o.then)return o}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var l=2&r&&o;"object"==typeof l&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach((e=>a[e]=()=>o[e]));return a.default=()=>o,n.d(i,a),i}})(),n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="/",(()=>{"use strict";var e={};n.r(e),n.d(e,{hasBrowserEnv:()=>YN,hasStandardBrowserEnv:()=>QN,hasStandardBrowserWebWorkerEnv:()=>ZN});var t,o=n(43),r=n.t(o,2),i=n(391),a=n(950),l=n.t(a,2);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},c.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(t||(t={}));const s="popstate";function u(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function d(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(Qc){}}}function f(e,t){return{usr:e.state,key:e.key,idx:t}}function p(e,t,n,o){return void 0===n&&(n=null),c({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?m(t):t,{state:n,key:t&&t.key||o||Math.random().toString(36).substr(2,8)})}function h(e){let{pathname:t="/",search:n="",hash:o=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),o&&"#"!==o&&(t+="#"===o.charAt(0)?o:"#"+o),t}function m(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let o=e.indexOf("?");o>=0&&(t.search=e.substr(o),e=e.substr(0,o)),e&&(t.pathname=e)}return t}function g(e,n,o,r){void 0===r&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,l=i.history,d=t.Pop,m=null,g=v();function v(){return(l.state||{idx:null}).idx}function b(){d=t.Pop;let e=v(),n=null==e?null:e-g;g=e,m&&m({action:d,location:w.location,delta:n})}function y(e){let t="null"!==i.location.origin?i.location.origin:i.location.href,n="string"===typeof e?e:h(e);return n=n.replace(/ $/,"%20"),u(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==g&&(g=0,l.replaceState(c({},l.state,{idx:g}),""));let w={get action(){return d},get location(){return e(i,l)},listen(e){if(m)throw new Error("A history only accepts one active listener");return i.addEventListener(s,b),m=e,()=>{i.removeEventListener(s,b),m=null}},createHref:e=>n(i,e),createURL:y,encodeLocation(e){let t=y(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,n){d=t.Push;let r=p(w.location,e,n);o&&o(r,e),g=v()+1;let c=f(r,g),s=w.createHref(r);try{l.pushState(c,"",s)}catch(u){if(u instanceof DOMException&&"DataCloneError"===u.name)throw u;i.location.assign(s)}a&&m&&m({action:d,location:w.location,delta:1})},replace:function(e,n){d=t.Replace;let r=p(w.location,e,n);o&&o(r,e),g=v();let i=f(r,g),c=w.createHref(r);l.replaceState(i,"",c),a&&m&&m({action:d,location:w.location,delta:0})},go:e=>l.go(e)};return w}var v;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(v||(v={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function b(e,t,n){void 0===n&&(n="/");let o=R(("string"===typeof t?m(t):t).pathname||"/",n);if(null==o)return null;let r=y(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(r);let i=null;for(let a=0;null==i&&a<r.length;++a){let e=I(o);i=M(r[a],e)}return i}function y(e,t,n,o){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===o&&(o="");let r=(e,r,i)=>{let a={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:r,route:e};a.relativePath.startsWith("/")&&(u(a.relativePath.startsWith(o),'Absolute route path "'+a.relativePath+'" nested under path "'+o+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(o.length));let l=L([o,a.relativePath]),c=n.concat(a);e.children&&e.children.length>0&&(u(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),y(e.children,t,c,l)),(null!=e.path||e.index)&&t.push({path:l,score:P(l,e.index),routesMeta:c})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let o of w(e.path))r(e,t,o);else r(e,t)})),t}function w(e){let t=e.split("/");if(0===t.length)return[];let[n,...o]=t,r=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===o.length)return r?[i,""]:[i];let a=w(o.join("/")),l=[];return l.push(...a.map((e=>""===e?i:[i,e].join("/")))),r&&l.push(...a),l.map((t=>e.startsWith("/")&&""===t?"/":t))}const x=/^:[\w-]+$/,S=3,C=2,k=1,E=10,O=-2,_=e=>"*"===e;function P(e,t){let n=e.split("/"),o=n.length;return n.some(_)&&(o+=O),t&&(o+=C),n.filter((e=>!_(e))).reduce(((e,t)=>e+(x.test(t)?S:""===t?k:E)),o)}function M(e,t){let{routesMeta:n}=e,o={},r="/",i=[];for(let a=0;a<n.length;++a){let e=n[a],l=a===n.length-1,c="/"===r?t:t.slice(r.length)||"/",s=N({path:e.relativePath,caseSensitive:e.caseSensitive,end:l},c);if(!s)return null;Object.assign(o,s.params);let u=e.route;i.push({params:o,pathname:L([r,s.pathname]),pathnameBase:D(L([r,s.pathnameBase])),route:u}),"/"!==s.pathnameBase&&(r=L([r,s.pathnameBase]))}return i}function N(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,o]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);d("*"===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 o=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(o.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(o.push({paramName:"*"}),r+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":""!==e&&"/"!==e&&(r+="(?:(?=\\/|$))");let i=new RegExp(r,t?void 0:"i");return[i,o]}(e.path,e.caseSensitive,e.end),r=t.match(n);if(!r)return null;let i=r[0],a=i.replace(/(.)\/+$/,"$1"),l=r.slice(1),c=o.reduce(((e,t,n)=>{let{paramName:o,isOptional:r}=t;if("*"===o){let e=l[n]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const c=l[n];return e[o]=r&&!c?void 0:(c||"").replace(/%2F/g,"/"),e}),{});return{params:c,pathname:i,pathnameBase:a,pattern:e}}function I(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return d(!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 R(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,o=e.charAt(n);return o&&"/"!==o?null:e.slice(n)||"/"}function T(e,t,n,o){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(o)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function j(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function A(e,t){let n=j(e);return t?n.map(((t,n)=>n===e.length-1?t.pathname:t.pathnameBase)):n.map((e=>e.pathnameBase))}function z(e,t,n,o){let r;void 0===o&&(o=!1),"string"===typeof e?r=m(e):(r=c({},e),u(!r.pathname||!r.pathname.includes("?"),T("?","pathname","search",r)),u(!r.pathname||!r.pathname.includes("#"),T("#","pathname","hash",r)),u(!r.search||!r.search.includes("#"),T("#","search","hash",r)));let i,a=""===e||""===r.pathname,l=a?"/":r.pathname;if(null==l)i=n;else{let e=t.length-1;if(!o&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;r.pathname=t.join("/")}i=e>=0?t[e]:"/"}let s=function(e,t){void 0===t&&(t="/");let{pathname:n,search:o="",hash:r=""}="string"===typeof e?m(e):e,i=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:i,search:B(o),hash:F(r)}}(r,i),d=l&&"/"!==l&&l.endsWith("/"),f=(a||"."===l)&&n.endsWith("/");return s.pathname.endsWith("/")||!d&&!f||(s.pathname+="/"),s}const L=e=>e.join("/").replace(/\/\/+/g,"/"),D=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),B=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",F=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;function H(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}const W=["post","put","patch","delete"],V=(new Set(W),["get",...W]);new Set(V),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred");function K(){return K=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},K.apply(this,arguments)}const q=o.createContext(null);const U=o.createContext(null);const X=o.createContext(null);const G=o.createContext(null);const $=o.createContext({outlet:null,matches:[],isDataRoute:!1});const Y=o.createContext(null);function Q(){return null!=o.useContext(G)}function J(){return Q()||u(!1),o.useContext(G).location}function Z(e){o.useContext(X).static||o.useLayoutEffect(e)}function ee(){let{isDataRoute:e}=o.useContext($);return e?function(){let{router:e}=ue(ce.UseNavigateStable),t=fe(se.UseNavigateStable),n=o.useRef(!1);Z((()=>{n.current=!0}));let r=o.useCallback((function(o,r){void 0===r&&(r={}),n.current&&("number"===typeof o?e.navigate(o):e.navigate(o,K({fromRouteId:t},r)))}),[e,t]);return r}():function(){Q()||u(!1);let e=o.useContext(q),{basename:t,future:n,navigator:r}=o.useContext(X),{matches:i}=o.useContext($),{pathname:a}=J(),l=JSON.stringify(A(i,n.v7_relativeSplatPath)),c=o.useRef(!1);Z((()=>{c.current=!0}));let s=o.useCallback((function(n,o){if(void 0===o&&(o={}),!c.current)return;if("number"===typeof n)return void r.go(n);let i=z(n,JSON.parse(l),a,"path"===o.relative);null==e&&"/"!==t&&(i.pathname="/"===i.pathname?t:L([t,i.pathname])),(o.replace?r.replace:r.push)(i,o.state,o)}),[t,r,l,a,e]);return s}()}function te(e,t){let{relative:n}=void 0===t?{}:t,{future:r}=o.useContext(X),{matches:i}=o.useContext($),{pathname:a}=J(),l=JSON.stringify(A(i,r.v7_relativeSplatPath));return o.useMemo((()=>z(e,JSON.parse(l),a,"path"===n)),[e,l,a,n])}function ne(e,n,r,i){Q()||u(!1);let{navigator:a}=o.useContext(X),{matches:l}=o.useContext($),c=l[l.length-1],s=c?c.params:{},d=(c&&c.pathname,c?c.pathnameBase:"/");c&&c.route;let f,p=J();if(n){var h;let e="string"===typeof n?m(n):n;"/"===d||(null==(h=e.pathname)?void 0:h.startsWith(d))||u(!1),f=e}else f=p;let g=f.pathname||"/",v=g;if("/"!==d){let e=d.replace(/^\//,"").split("/");v="/"+g.replace(/^\//,"").split("/").slice(e.length).join("/")}let y=b(e,{pathname:v});let w=le(y&&y.map((e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:L([d,a.encodeLocation?a.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?d:L([d,a.encodeLocation?a.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),l,r,i);return n&&w?o.createElement(G.Provider,{value:{location:K({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:t.Pop}},w):w}function oe(){let e=function(){var e;let t=o.useContext(Y),n=de(se.UseRouteError),r=fe(se.UseRouteError);if(void 0!==t)return t;return null==(e=n.errors)?void 0:e[r]}(),t=H(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r};return o.createElement(o.Fragment,null,o.createElement("h2",null,"Unexpected Application Error!"),o.createElement("h3",{style:{fontStyle:"italic"}},t),n?o.createElement("pre",{style:i},n):null,null)}const re=o.createElement(oe,null);class ie extends o.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?o.createElement($.Provider,{value:this.props.routeContext},o.createElement(Y.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ae(e){let{routeContext:t,match:n,children:r}=e,i=o.useContext(q);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),o.createElement($.Provider,{value:t},r)}function le(e,t,n,r){var i;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===r&&(r=null),null==e){var a;if(null==(a=n)||!a.errors)return null;e=n.matches}let l=e,c=null==(i=n)?void 0:i.errors;if(null!=c){let e=l.findIndex((e=>e.route.id&&(null==c?void 0:c[e.route.id])));e>=0||u(!1),l=l.slice(0,Math.min(l.length,e+1))}let s=!1,d=-1;if(n&&r&&r.v7_partialHydration)for(let o=0;o<l.length;o++){let e=l[o];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(d=o),e.route.id){let{loaderData:t,errors:o}=n,r=e.route.loader&&void 0===t[e.route.id]&&(!o||void 0===o[e.route.id]);if(e.route.lazy||r){s=!0,l=d>=0?l.slice(0,d+1):[l[0]];break}}}return l.reduceRight(((e,r,i)=>{let a,u=!1,f=null,p=null;var h;n&&(a=c&&r.route.id?c[r.route.id]:void 0,f=r.route.errorElement||re,s&&(d<0&&0===i?(h="route-fallback",!1||pe[h]||(pe[h]=!0),u=!0,p=null):d===i&&(u=!0,p=r.route.hydrateFallbackElement||null)));let m=t.concat(l.slice(0,i+1)),g=()=>{let t;return t=a?f:u?p:r.route.Component?o.createElement(r.route.Component,null):r.route.element?r.route.element:e,o.createElement(ae,{match:r,routeContext:{outlet:e,matches:m,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===i)?o.createElement(ie,{location:n.location,revalidation:n.revalidation,component:f,error:a,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()}),null)}var ce=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(ce||{}),se=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(se||{});function ue(e){let t=o.useContext(q);return t||u(!1),t}function de(e){let t=o.useContext(U);return t||u(!1),t}function fe(e){let t=function(e){let t=o.useContext($);return t||u(!1),t}(),n=t.matches[t.matches.length-1];return n.route.id||u(!1),n.route.id}const pe={};r.startTransition;function he(e){let{to:t,replace:n,state:r,relative:i}=e;Q()||u(!1);let{future:a,static:l}=o.useContext(X),{matches:c}=o.useContext($),{pathname:s}=J(),d=ee(),f=z(t,A(c,a.v7_relativeSplatPath),s,"path"===i),p=JSON.stringify(f);return o.useEffect((()=>d(JSON.parse(p),{replace:n,state:r,relative:i})),[d,p,i,n,r]),null}function me(e){u(!1)}function ge(e){let{basename:n="/",children:r=null,location:i,navigationType:a=t.Pop,navigator:l,static:c=!1,future:s}=e;Q()&&u(!1);let d=n.replace(/^\/*/,"/"),f=o.useMemo((()=>({basename:d,navigator:l,static:c,future:K({v7_relativeSplatPath:!1},s)})),[d,s,l,c]);"string"===typeof i&&(i=m(i));let{pathname:p="/",search:h="",hash:g="",state:v=null,key:b="default"}=i,y=o.useMemo((()=>{let e=R(p,d);return null==e?null:{location:{pathname:e,search:h,hash:g,state:v,key:b},navigationType:a}}),[d,p,h,g,v,b,a]);return null==y?null:o.createElement(X.Provider,{value:f},o.createElement(G.Provider,{children:r,value:y}))}function ve(e){let{children:t,location:n}=e;return ne(be(t),n)}new Promise((()=>{}));o.Component;function be(e,t){void 0===t&&(t=[]);let n=[];return o.Children.forEach(e,((e,r)=>{if(!o.isValidElement(e))return;let i=[...t,r];if(e.type===o.Fragment)return void n.push.apply(n,be(e.props.children,i));e.type!==me&&u(!1),e.props.index&&e.props.children&&u(!1);let a={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=be(e.props.children,i)),n.push(a)})),n}function ye(){return ye=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ye.apply(this,arguments)}function we(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const xe=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];try{window.__reactRouterVersion="6"}catch(Qc){}new Map;const Se=r.startTransition;l.flushSync,r.useId;function Ce(e){let{basename:t,children:n,future:r,window:i}=e,a=o.useRef();var l;null==a.current&&(a.current=(void 0===(l={window:i,v5Compat:!0})&&(l={}),g((function(e,t){let{pathname:n="/",search:o="",hash:r=""}=m(e.location.hash.substr(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),p("",{pathname:n,search:o,hash:r},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),o="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");o=-1===n?t:t.slice(0,n)}return o+"#"+("string"===typeof t?t:h(t))}),(function(e,t){d("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),l)));let c=a.current,[s,u]=o.useState({action:c.action,location:c.location}),{v7_startTransition:f}=r||{},v=o.useCallback((e=>{f&&Se?Se((()=>u(e))):u(e)}),[u,f]);return o.useLayoutEffect((()=>c.listen(v)),[c,v]),o.createElement(ge,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:c,future:r})}const ke="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,Ee=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Oe=o.forwardRef((function(e,t){let n,{onClick:r,relative:i,reloadDocument:a,replace:l,state:c,target:s,to:d,preventScrollReset:f,unstable_viewTransition:p}=e,m=we(e,xe),{basename:g}=o.useContext(X),v=!1;if("string"===typeof d&&Ee.test(d)&&(n=d,ke))try{let e=new URL(window.location.href),t=d.startsWith("//")?new URL(e.protocol+d):new URL(d),n=R(t.pathname,g);t.origin===e.origin&&null!=n?d=n+t.search+t.hash:v=!0}catch(Qc){}let b=function(e,t){let{relative:n}=void 0===t?{}:t;Q()||u(!1);let{basename:r,navigator:i}=o.useContext(X),{hash:a,pathname:l,search:c}=te(e,{relative:n}),s=l;return"/"!==r&&(s="/"===l?r:L([r,l])),i.createHref({pathname:s,search:c,hash:a})}(d,{relative:i}),y=function(e,t){let{target:n,replace:r,state:i,preventScrollReset:a,relative:l,unstable_viewTransition:c}=void 0===t?{}:t,s=ee(),u=J(),d=te(e,{relative:l});return o.useCallback((t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,n)){t.preventDefault();let n=void 0!==r?r:h(u)===h(d);s(e,{replace:n,state:i,preventScrollReset:a,relative:l,unstable_viewTransition:c})}}),[u,s,d,r,i,n,e,a,l,c])}(d,{replace:l,state:c,target:s,preventScrollReset:f,relative:i,unstable_viewTransition:p});return o.createElement("a",ye({},m,{href:n||b,onClick:v||a?r:function(e){r&&r(e),e.defaultPrevented||y(e)},ref:t,target:s}))}));var _e,Pe;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(_e||(_e={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Pe||(Pe={}));function Me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function Ne(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Ie(e,t){if(e){if("string"===typeof e)return Me(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Me(e,t):void 0}}function Re(e){return function(e){if(Array.isArray(e))return Me(e)}(e)||Ne(e)||Ie(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Te=n(981),je=n.n(Te);function Ae(e){return Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ae(e)}function ze(e){var t=function(e,t){if("object"!=Ae(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ae(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ae(t)?t:String(t)}function Le(e,t,n){return(t=ze(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function De(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?De(Object(n),!0).forEach((function(t){Le(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):De(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fe(e){if(Array.isArray(e))return e}function He(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function We(e,t){return Fe(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||Ie(e,t)||He()}function Ve(e){return e instanceof HTMLElement||e instanceof SVGElement}function Ke(e){return Ve(e)?e:e instanceof o.Component?a.findDOMNode(e):null}var qe=n(194);function Ue(e,t,n){var r=o.useRef({});return"value"in r.current&&!n(r.current.condition,t)||(r.current.value=e(),r.current.condition=t),r.current.value}function Xe(e,t){"function"===typeof e?e(t):"object"===Ae(e)&&e&&"current"in e&&(e.current=t)}function Ge(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t.filter((function(e){return e}));return o.length<=1?o[0]:function(e){t.forEach((function(t){Xe(t,e)}))}}function $e(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ue((function(){return Ge.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))}function Ye(e){var t,n,o=(0,qe.isMemo)(e)?e.type.type:e.type;return!!("function"!==typeof o||null!==(t=o.prototype)&&void 0!==t&&t.render||o.$$typeof===qe.ForwardRef)&&!!("function"!==typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===qe.ForwardRef)}function Qe(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var Je=["children"],Ze=o.createContext({});function et(e){var t=e.children,n=Qe(e,Je);return o.createElement(Ze.Provider,{value:n},t)}function tt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ze(o.key),o)}}function ot(e,t,n){return t&&nt(e.prototype,t),n&&nt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function rt(e,t){return rt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rt(e,t)}function it(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rt(e,t)}function at(e){return at=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},at(e)}function lt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(lt=function(){return!!e})()}function ct(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function st(e,t){if(t&&("object"===Ae(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ct(e)}function ut(e){var t=lt();return function(){var n,o=at(e);if(t){var r=at(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return st(this,n)}}const dt=function(e){it(n,e);var t=ut(n);function n(){return tt(this,n),t.apply(this,arguments)}return ot(n,[{key:"render",value:function(){return this.props.children}}]),n}(o.Component);function ft(e){var t=o.useRef(!1),n=We(o.useState(e),2),r=n[0],i=n[1];return o.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[r,function(e,n){n&&t.current||i(e)}]}var pt="none",ht="appear",mt="enter",gt="leave",vt="none",bt="prepare",yt="start",wt="active",xt="end",St="prepared";function Ct(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}function kt(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}var Et=function(e,t){var n={animationend:kt("Animation","AnimationEnd"),transitionend:kt("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(Ct(),"undefined"!==typeof window?window:{}),Ot={};if(Ct()){var _t=document.createElement("div");Ot=_t.style}var Pt={};function Mt(e){if(Pt[e])return Pt[e];var t=Et[e];if(t)for(var n=Object.keys(t),o=n.length,r=0;r<o;r+=1){var i=n[r];if(Object.prototype.hasOwnProperty.call(t,i)&&i in Ot)return Pt[e]=t[i],Pt[e]}return""}var Nt=Mt("animationend"),It=Mt("transitionend"),Rt=!(!Nt||!It),Tt=Nt||"animationend",jt=It||"transitionend";function At(e,t){if(!e)return null;if("object"===Ae(e)){var n=t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}));return e[n]}return"".concat(e,"-").concat(t)}const zt=function(e){var t=(0,o.useRef)(),n=(0,o.useRef)(e);n.current=e;var r=o.useCallback((function(e){n.current(e)}),[]);function i(e){e&&(e.removeEventListener(jt,r),e.removeEventListener(Tt,r))}return o.useEffect((function(){return function(){i(t.current)}}),[]),[function(e){t.current&&t.current!==e&&i(t.current),e&&e!==t.current&&(e.addEventListener(jt,r),e.addEventListener(Tt,r),t.current=e)},i]};const Lt=Ct()?o.useLayoutEffect:o.useEffect;var Dt=function(e){return+setTimeout(e,16)},Bt=function(e){return clearTimeout(e)};"undefined"!==typeof window&&"requestAnimationFrame"in window&&(Dt=function(e){return window.requestAnimationFrame(e)},Bt=function(e){return window.cancelAnimationFrame(e)});var Ft=0,Ht=new Map;function Wt(e){Ht.delete(e)}var Vt=function(e){var t=Ft+=1;return function n(o){if(0===o)Wt(t),e();else{var r=Dt((function(){n(o-1)}));Ht.set(t,r)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};Vt.cancel=function(e){var t=Ht.get(e);return Wt(e),Bt(t)};const Kt=Vt;var qt=[bt,yt,wt,xt],Ut=[bt,St],Xt=!1,Gt=!0;function $t(e){return e===wt||e===xt}const Yt=function(e,t,n){var r=We(ft(vt),2),i=r[0],a=r[1],l=function(){var e=o.useRef(null);function t(){Kt.cancel(e.current)}return o.useEffect((function(){return function(){t()}}),[]),[function n(o){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=Kt((function(){r<=1?o({isCanceled:function(){return i!==e.current}}):n(o,r-1)}));e.current=i},t]}(),c=We(l,2),s=c[0],u=c[1];var d=t?Ut:qt;return Lt((function(){if(i!==vt&&i!==xt){var e=d.indexOf(i),t=d[e+1],o=n(i);o===Xt?a(t,!0):t&&s((function(e){function n(){e.isCanceled()||a(t,!0)}!0===o?n():Promise.resolve(o).then(n)}))}}),[e,i]),o.useEffect((function(){return function(){u()}}),[]),[function(){a(bt,!0)},i]};const Qt=function(e){var t=e;"object"===Ae(e)&&(t=e.transitionSupport);var n=o.forwardRef((function(e,n){var r=e.visible,i=void 0===r||r,a=e.removeOnLeave,l=void 0===a||a,c=e.forceRender,s=e.children,u=e.motionName,d=e.leavedClassName,f=e.eventProps,p=function(e,n){return!(!e.motionName||!t||!1===n)}(e,o.useContext(Ze).motion),h=(0,o.useRef)(),m=(0,o.useRef)();var g=function(e,t,n,r){var i=r.motionEnter,a=void 0===i||i,l=r.motionAppear,c=void 0===l||l,s=r.motionLeave,u=void 0===s||s,d=r.motionDeadline,f=r.motionLeaveImmediately,p=r.onAppearPrepare,h=r.onEnterPrepare,m=r.onLeavePrepare,g=r.onAppearStart,v=r.onEnterStart,b=r.onLeaveStart,y=r.onAppearActive,w=r.onEnterActive,x=r.onLeaveActive,S=r.onAppearEnd,C=r.onEnterEnd,k=r.onLeaveEnd,E=r.onVisibleChanged,O=We(ft(),2),_=O[0],P=O[1],M=We(ft(pt),2),N=M[0],I=M[1],R=We(ft(null),2),T=R[0],j=R[1],A=(0,o.useRef)(!1),z=(0,o.useRef)(null);function L(){return n()}var D=(0,o.useRef)(!1);function B(){I(pt,!0),j(null,!0)}function F(e){var t=L();if(!e||e.deadline||e.target===t){var n,o=D.current;N===ht&&o?n=null===S||void 0===S?void 0:S(t,e):N===mt&&o?n=null===C||void 0===C?void 0:C(t,e):N===gt&&o&&(n=null===k||void 0===k?void 0:k(t,e)),N!==pt&&o&&!1!==n&&B()}}var H=We(zt(F),1)[0],W=function(e){var t,n,o;switch(e){case ht:return Le(t={},bt,p),Le(t,yt,g),Le(t,wt,y),t;case mt:return Le(n={},bt,h),Le(n,yt,v),Le(n,wt,w),n;case gt:return Le(o={},bt,m),Le(o,yt,b),Le(o,wt,x),o;default:return{}}},V=o.useMemo((function(){return W(N)}),[N]),K=We(Yt(N,!e,(function(e){if(e===bt){var t=V[bt];return t?t(L()):Xt}var n;return U in V&&j((null===(n=V[U])||void 0===n?void 0:n.call(V,L(),null))||null),U===wt&&(H(L()),d>0&&(clearTimeout(z.current),z.current=setTimeout((function(){F({deadline:!0})}),d))),U===St&&B(),Gt})),2),q=K[0],U=K[1],X=$t(U);D.current=X,Lt((function(){P(t);var n,o=A.current;A.current=!0,!o&&t&&c&&(n=ht),o&&t&&a&&(n=mt),(o&&!t&&u||!o&&f&&!t&&u)&&(n=gt);var r=W(n);n&&(e||r[bt])?(I(n),q()):I(pt)}),[t]),(0,o.useEffect)((function(){(N===ht&&!c||N===mt&&!a||N===gt&&!u)&&I(pt)}),[c,a,u]),(0,o.useEffect)((function(){return function(){A.current=!1,clearTimeout(z.current)}}),[]);var G=o.useRef(!1);(0,o.useEffect)((function(){_&&(G.current=!0),void 0!==_&&N===pt&&((G.current||_)&&(null===E||void 0===E||E(_)),G.current=!0)}),[_,N]);var $=T;return V[bt]&&U===yt&&($=Be({transition:"none"},$)),[N,U,$,null!==_&&void 0!==_?_:t]}(p,i,(function(){try{return h.current instanceof HTMLElement?h.current:Ke(m.current)}catch(Qc){return null}}),e),v=We(g,4),b=v[0],y=v[1],w=v[2],x=v[3],S=o.useRef(x);x&&(S.current=!0);var C,k=o.useCallback((function(e){h.current=e,Xe(n,e)}),[n]),E=Be(Be({},f),{},{visible:i});if(s)if(b===pt)C=x?s(Be({},E),k):!l&&S.current&&d?s(Be(Be({},E),{},{className:d}),k):c||!l&&!d?s(Be(Be({},E),{},{style:{display:"none"}}),k):null;else{var O,_;y===bt?_="prepare":$t(y)?_="active":y===yt&&(_="start");var P=At(u,"".concat(b,"-").concat(_));C=s(Be(Be({},E),{},{className:je()(At(u,b),(O={},Le(O,P,P&&_),Le(O,u,"string"===typeof u),O)),style:w}),k)}else C=null;o.isValidElement(C)&&Ye(C)&&(C.ref||(C=o.cloneElement(C,{ref:k})));return o.createElement(dt,{ref:m},C)}));return n.displayName="CSSMotion",n}(Rt);function Jt(){return Jt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Jt.apply(this,arguments)}var Zt="add",en="keep",tn="remove",nn="removed";function on(e){var t;return Be(Be({},t=e&&"object"===Ae(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function rn(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(on)}var an=["component","children","onVisibleChanged","onAllRemoved"],ln=["status"],cn=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const sn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Qt,n=function(e){it(r,e);var n=ut(r);function r(){var e;tt(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return Le(ct(e=n.call.apply(n,[this].concat(o))),"state",{keyEntities:[]}),Le(ct(e),"removeKey",(function(t){var n=e.state.keyEntities.map((function(e){return e.key!==t?e:Be(Be({},e),{},{status:nn})}));return e.setState({keyEntities:n}),n.filter((function(e){return e.status!==nn})).length})),e}return ot(r,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,r=this.props,i=r.component,a=r.children,l=r.onVisibleChanged,c=r.onAllRemoved,s=Qe(r,an),u=i||o.Fragment,d={};return cn.forEach((function(e){d[e]=s[e],delete s[e]})),delete s.keys,o.createElement(u,s,n.map((function(n,r){var i=n.status,s=Qe(n,ln),u=i===Zt||i===en;return o.createElement(t,Jt({},d,{key:s.key,visible:u,eventProps:s,onVisibleChanged:function(t){(null===l||void 0===l||l(t,{key:s.key}),t)||0===e.removeKey(s.key)&&c&&c()}}),(function(e,t){return a(Be(Be({},e),{},{index:r}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,o=t.keyEntities,r=rn(n),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],o=0,r=t.length,i=rn(e),a=rn(t);i.forEach((function(e){for(var t=!1,i=o;i<r;i+=1){var l=a[i];if(l.key===e.key){o<i&&(n=n.concat(a.slice(o,i).map((function(e){return Be(Be({},e),{},{status:Zt})}))),o=i),n.push(Be(Be({},l),{},{status:en})),o+=1,t=!0;break}}t||n.push(Be(Be({},e),{},{status:tn}))})),o<r&&(n=n.concat(a.slice(o).map((function(e){return Be(Be({},e),{},{status:Zt})}))));var l={};return n.forEach((function(e){var t=e.key;l[t]=(l[t]||0)+1})),Object.keys(l).filter((function(e){return l[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,o=t.status;return n!==e||o!==tn}))).forEach((function(t){t.key===e&&(t.status=en)}))})),n}(o,r);return{keyEntities:i.filter((function(e){var t=o.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==nn||e.status!==tn}))}}}]),r}(o.Component);return Le(n,"defaultProps",{component:"div"}),n}(Rt),un=Qt,dn=()=>({height:0,opacity:0}),fn=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},pn=e=>({height:e?e.offsetHeight:0}),hn=(e,t)=>!0===(null===t||void 0===t?void 0:t.deadline)||"height"===t.propertyName,mn=(e,t,n)=>void 0!==n?n:"".concat(e,"-").concat(t),gn=function(){return{motionName:"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant","-motion-collapse"),onAppearStart:dn,onEnterStart:dn,onAppearActive:fn,onEnterActive:fn,onLeaveStart:pn,onLeaveActive:dn,onAppearEnd:hn,onEnterEnd:hn,onLeaveEnd:hn,motionDeadline:500}};function vn(){vn=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),l=new N(o||[]);return r(a,"_invoke",{value:O(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",g={};function v(){}function b(){}function y(){}var w={};s(w,a,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(I([])));S&&S!==n&&o.call(S,a)&&(w=S);var C=y.prototype=v.prototype=Object.create(w);function k(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(r,i,a,l){var c=d(e[r],e,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==Ae(u)&&o.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,l)}))}l(c.arg)}var i;r(this,"_invoke",{value:function(e,o){function r(){return new t((function(t,r){n(e,o,t,r)}))}return i=i?i.then(r,r):r()}})}function O(t,n,o){var r=f;return function(i,a){if(r===h)throw new Error("Generator is already running");if(r===m){if("throw"===i)throw a;return{value:e,done:!0}}for(o.method=i,o.arg=a;;){var l=o.delegate;if(l){var c=_(l,o);if(c){if(c===g)continue;return c}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(r===f)throw r=m,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);r=h;var s=d(t,n,o);if("normal"===s.type){if(r=o.done?m:p,s.arg===g)continue;return{value:s.arg,done:o.done}}"throw"===s.type&&(r=m,o.method="throw",o.arg=s.arg)}}}function _(t,n){var o=n.method,r=t.iterator[o];if(r===e)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=e,_(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),g;var i=d(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function I(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(o.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Ae(t)+" is not iterable")}return b.prototype=y,r(C,"constructor",{value:y,configurable:!0}),r(y,"constructor",{value:b,configurable:!0}),b.displayName=s(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s(e,c,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},k(E.prototype),s(E.prototype,l,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,o,r,i){void 0===i&&(i=Promise);var a=new E(u(e,n,o,r),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(C),s(C,c,"Generator"),s(C,a,(function(){return this})),s(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},t.values=I,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(M),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(o,r){return l.type="throw",l.arg=t,n.next=o,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),s=o.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),M(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;M(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:I(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),g}},t}function bn(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(s){return void n(s)}l.done?t(c):Promise.resolve(c).then(o,r)}function yn(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){bn(i,o,r,a,l,"next",e)}function l(e){bn(i,o,r,a,l,"throw",e)}a(void 0)}))}}function wn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return o.Children.forEach(e,(function(e){(void 0!==e&&null!==e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(wn(e)):(0,qe.isFragment)(e)&&e.props?n=n.concat(wn(e.props.children,t)):n.push(e))})),n}var xn={},Sn=[];function Cn(e,t){}function kn(e,t){}function En(e,t,n){t||xn[n]||(e(!1,n),xn[n]=!0)}function On(e,t){En(Cn,e,t)}On.preMessage=function(e){Sn.push(e)},On.resetWarned=function(){xn={}},On.noteOnce=function(e,t){En(kn,e,t)};const _n=On;const Pn=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=new Set;return function e(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=o.has(t);if(_n(!a,"Warning: There may be circular references"),a)return!1;if(t===r)return!0;if(n&&i>1)return!1;o.add(t);var l=i+1;if(Array.isArray(t)){if(!Array.isArray(r)||t.length!==r.length)return!1;for(var c=0;c<t.length;c++)if(!e(t[c],r[c],l))return!1;return!0}if(t&&r&&"object"===Ae(t)&&"object"===Ae(r)){var s=Object.keys(t);return s.length===Object.keys(r).length&&s.every((function(n){return e(t[n],r[n],l)}))}return!1}(e,t)};var Mn="RC_FORM_INTERNAL_HOOKS",Nn=function(){_n(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")};const In=o.createContext({getFieldValue:Nn,getFieldsValue:Nn,getFieldError:Nn,getFieldWarning:Nn,getFieldsError:Nn,isFieldsTouched:Nn,isFieldTouched:Nn,isFieldValidating:Nn,isFieldsValidating:Nn,resetFields:Nn,setFields:Nn,setFieldValue:Nn,setFieldsValue:Nn,validateFields:Nn,submit:Nn,getInternalHooks:function(){return Nn(),{dispatch:Nn,initEntityValue:Nn,registerField:Nn,useSubscribe:Nn,setInitialValues:Nn,destroyForm:Nn,setCallbacks:Nn,registerWatch:Nn,getFields:Nn,setValidateMessages:Nn,setPreserve:Nn,getInitialValue:Nn}}});const Rn=o.createContext(null);function Tn(e){return void 0===e||null===e?[]:Array.isArray(e)?e:[e]}function jn(){return jn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},jn.apply(this,arguments)}function An(e){return An=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},An(e)}function zn(e,t){return zn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zn(e,t)}function Ln(e,t,n){return Ln=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(Qc){return!1}}()?Reflect.construct.bind():function(e,t,n){var o=[null];o.push.apply(o,t);var r=new(Function.bind.apply(e,o));return n&&zn(r,n.prototype),r},Ln.apply(null,arguments)}function Dn(e){var t="function"===typeof Map?new Map:void 0;return Dn=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,o)}function o(){return Ln(e,arguments,An(this).constructor)}return o.prototype=Object.create(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),zn(o,e)},Dn(e)}var Bn=/%[sdj%]/g;function Fn(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function Hn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r=0,i=n.length;return"function"===typeof e?e.apply(null,n):"string"===typeof e?e.replace(Bn,(function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}break;default:return e}})):e}function Wn(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!==typeof e||e))}function Vn(e,t,n){var o=0,r=e.length;!function i(a){if(a&&a.length)n(a);else{var l=o;o+=1,l<r?t(e[l],i):n([])}}([])}var Kn=function(e){var t,n;function o(t,n){var o;return(o=e.call(this,"Async Validation Error")||this).errors=t,o.fields=n,o}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,zn(t,n),o}(Dn(Error));function qn(e,t,n,o,r){if(t.first){var i=new Promise((function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n]||[])})),t}(e);Vn(a,n,(function(e){return o(e),e.length?i(new Kn(e,Fn(e))):t(r)}))}));return i.catch((function(e){return e})),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],l=Object.keys(e),c=l.length,s=0,u=[],d=new Promise((function(t,i){var d=function(e){if(u.push.apply(u,e),++s===c)return o(u),u.length?i(new Kn(u,Fn(u))):t(r)};l.length||(o(u),t(r)),l.forEach((function(t){var o=e[t];-1!==a.indexOf(t)?Vn(o,n,d):function(e,t,n){var o=[],r=0,i=e.length;function a(e){o.push.apply(o,e||[]),++r===i&&n(o)}e.forEach((function(e){t(e,a)}))}(o,n,d)}))}));return d.catch((function(e){return e})),d}function Un(e,t){return function(n){var o,r;return o=e.fullFields?function(e,t){for(var n=e,o=0;o<t.length;o++){if(void 0==n)return n;n=n[t[o]]}return n}(t,e.fullFields):t[n.field||e.fullField],(r=n)&&void 0!==r.message?(n.field=n.field||e.fullField,n.fieldValue=o,n):{message:"function"===typeof n?n():n,fieldValue:o,field:n.field||e.fullField}}}function Xn(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];"object"===typeof o&&"object"===typeof e[n]?e[n]=jn({},e[n],o):e[n]=o}return e}var Gn,$n=function(e,t,n,o,r,i){!e.required||n.hasOwnProperty(e.field)&&!Wn(t,i||e.type)||o.push(Hn(r.messages.required,e.fullField))},Yn=/^(([^<>()\[\]\\.,;:\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,}))$/,Qn=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,Jn={integer:function(e){return Jn.number(e)&&parseInt(e,10)===e},float:function(e){return Jn.number(e)&&!Jn.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(Qc){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"===typeof e},object:function(e){return"object"===typeof e&&!Jn.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&e.length<=320&&!!e.match(Yn)},url:function(e){return"string"===typeof e&&e.length<=2048&&!!e.match(function(){if(Gn)return Gn;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",o="[a-fA-F\\d]{1,4}",r=("\n(?:\n(?:"+o+":){7}(?:"+o+"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:"+o+":){6}(?:"+n+"|:"+o+"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:"+o+":){5}(?::"+n+"|(?::"+o+"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:"+o+":){4}(?:(?::"+o+"){0,1}:"+n+"|(?::"+o+"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:"+o+":){3}(?:(?::"+o+"){0,2}:"+n+"|(?::"+o+"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:"+o+":){2}(?:(?::"+o+"){0,3}:"+n+"|(?::"+o+"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:"+o+":){1}(?:(?::"+o+"){0,4}:"+n+"|(?::"+o+"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+o+"){0,5}:"+n+"|(?::"+o+"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+r+"$)"),a=new RegExp("^"+n+"$"),l=new RegExp("^"+r+"$"),c=function(e){return e&&e.exact?i:new RegExp("(?:"+t(e)+n+t(e)+")|(?:"+t(e)+r+t(e)+")","g")};c.v4=function(e){return e&&e.exact?a:new RegExp(""+t(e)+n+t(e),"g")},c.v6=function(e){return e&&e.exact?l:new RegExp(""+t(e)+r+t(e),"g")};var s=c.v4().source,u=c.v6().source;return Gn=new RegExp("(?:^(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+s+"|"+u+'|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?$)',"i")}())},hex:function(e){return"string"===typeof e&&!!e.match(Qn)}},Zn="enum",eo={required:$n,whitespace:function(e,t,n,o,r){(/^\s+$/.test(t)||""===t)&&o.push(Hn(r.messages.whitespace,e.fullField))},type:function(e,t,n,o,r){if(e.required&&void 0===t)$n(e,t,n,o,r);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?Jn[i](t)||o.push(Hn(r.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&o.push(Hn(r.messages.types[i],e.fullField,e.type))}},range:function(e,t,n,o,r){var i="number"===typeof e.len,a="number"===typeof e.min,l="number"===typeof e.max,c=t,s=null,u="number"===typeof t,d="string"===typeof t,f=Array.isArray(t);if(u?s="number":d?s="string":f&&(s="array"),!s)return!1;f&&(c=t.length),d&&(c=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?c!==e.len&&o.push(Hn(r.messages[s].len,e.fullField,e.len)):a&&!l&&c<e.min?o.push(Hn(r.messages[s].min,e.fullField,e.min)):l&&!a&&c>e.max?o.push(Hn(r.messages[s].max,e.fullField,e.max)):a&&l&&(c<e.min||c>e.max)&&o.push(Hn(r.messages[s].range,e.fullField,e.min,e.max))},enum:function(e,t,n,o,r){e[Zn]=Array.isArray(e[Zn])?e[Zn]:[],-1===e[Zn].indexOf(t)&&o.push(Hn(r.messages[Zn],e.fullField,e[Zn].join(", ")))},pattern:function(e,t,n,o,r){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||o.push(Hn(r.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){new RegExp(e.pattern).test(t)||o.push(Hn(r.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},to=function(e,t,n,o,r){var i=e.type,a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Wn(t,i)&&!e.required)return n();eo.required(e,t,o,a,r,i),Wn(t,i)||eo.type(e,t,o,a,r)}n(a)},no={string:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Wn(t,"string")&&!e.required)return n();eo.required(e,t,o,i,r,"string"),Wn(t,"string")||(eo.type(e,t,o,i,r),eo.range(e,t,o,i,r),eo.pattern(e,t,o,i,r),!0===e.whitespace&&eo.whitespace(e,t,o,i,r))}n(i)},method:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Wn(t)&&!e.required)return n();eo.required(e,t,o,i,r),void 0!==t&&eo.type(e,t,o,i,r)}n(i)},number:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(""===t&&(t=void 0),Wn(t)&&!e.required)return n();eo.required(e,t,o,i,r),void 0!==t&&(eo.type(e,t,o,i,r),eo.range(e,t,o,i,r))}n(i)},boolean:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Wn(t)&&!e.required)return n();eo.required(e,t,o,i,r),void 0!==t&&eo.type(e,t,o,i,r)}n(i)},regexp:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Wn(t)&&!e.required)return n();eo.required(e,t,o,i,r),Wn(t)||eo.type(e,t,o,i,r)}n(i)},integer:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Wn(t)&&!e.required)return n();eo.required(e,t,o,i,r),void 0!==t&&(eo.type(e,t,o,i,r),eo.range(e,t,o,i,r))}n(i)},float:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Wn(t)&&!e.required)return n();eo.required(e,t,o,i,r),void 0!==t&&(eo.type(e,t,o,i,r),eo.range(e,t,o,i,r))}n(i)},array:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if((void 0===t||null===t)&&!e.required)return n();eo.required(e,t,o,i,r,"array"),void 0!==t&&null!==t&&(eo.type(e,t,o,i,r),eo.range(e,t,o,i,r))}n(i)},object:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Wn(t)&&!e.required)return n();eo.required(e,t,o,i,r),void 0!==t&&eo.type(e,t,o,i,r)}n(i)},enum:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Wn(t)&&!e.required)return n();eo.required(e,t,o,i,r),void 0!==t&&eo.enum(e,t,o,i,r)}n(i)},pattern:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Wn(t,"string")&&!e.required)return n();eo.required(e,t,o,i,r),Wn(t,"string")||eo.pattern(e,t,o,i,r)}n(i)},date:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Wn(t,"date")&&!e.required)return n();var a;if(eo.required(e,t,o,i,r),!Wn(t,"date"))a=t instanceof Date?t:new Date(t),eo.type(e,a,o,i,r),a&&eo.range(e,a.getTime(),o,i,r)}n(i)},url:to,hex:to,email:to,required:function(e,t,n,o,r){var i=[],a=Array.isArray(t)?"array":typeof t;eo.required(e,t,o,i,r,a),n(i)},any:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Wn(t)&&!e.required)return n();eo.required(e,t,o,i,r)}n(i)}};function oo(){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 e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var ro=oo(),io=function(){function e(e){this.rules=null,this._messages=ro,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var o=e[n];t.rules[n]=Array.isArray(o)?o:[o]}))},t.messages=function(e){return e&&(this._messages=Xn(oo(),e)),this._messages},t.validate=function(t,n,o){var r=this;void 0===n&&(n={}),void 0===o&&(o=function(){});var i=t,a=n,l=o;if("function"===typeof a&&(l=a,a={}),!this.rules||0===Object.keys(this.rules).length)return l&&l(null,i),Promise.resolve(i);if(a.messages){var c=this.messages();c===ro&&(c=oo()),Xn(c,a.messages),a.messages=c}else a.messages=this.messages();var s={};(a.keys||Object.keys(this.rules)).forEach((function(e){var n=r.rules[e],o=i[e];n.forEach((function(n){var a=n;"function"===typeof a.transform&&(i===t&&(i=jn({},i)),o=i[e]=a.transform(o)),(a="function"===typeof a?{validator:a}:jn({},a)).validator=r.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=r.getType(a),s[e]=s[e]||[],s[e].push({rule:a,value:o,source:i,field:e}))}))}));var u={};return qn(s,a,(function(t,n){var o,r=t.rule,l=("object"===r.type||"array"===r.type)&&("object"===typeof r.fields||"object"===typeof r.defaultField);function c(e,t){return jn({},t,{fullField:r.fullField+"."+e,fullFields:r.fullFields?[].concat(r.fullFields,[e]):[e]})}function s(o){void 0===o&&(o=[]);var s=Array.isArray(o)?o:[o];!a.suppressWarning&&s.length&&e.warning("async-validator:",s),s.length&&void 0!==r.message&&(s=[].concat(r.message));var d=s.map(Un(r,i));if(a.first&&d.length)return u[r.field]=1,n(d);if(l){if(r.required&&!t.value)return void 0!==r.message?d=[].concat(r.message).map(Un(r,i)):a.error&&(d=[a.error(r,Hn(a.messages.required,r.field))]),n(d);var f={};r.defaultField&&Object.keys(t.value).map((function(e){f[e]=r.defaultField})),f=jn({},f,t.rule.fields);var p={};Object.keys(f).forEach((function(e){var t=f[e],n=Array.isArray(t)?t:[t];p[e]=n.map(c.bind(null,e))}));var h=new e(p);h.messages(a.messages),t.rule.options&&(t.rule.options.messages=a.messages,t.rule.options.error=a.error),h.validate(t.value,t.rule.options||a,(function(e){var t=[];d&&d.length&&t.push.apply(t,d),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)}))}else n(d)}if(l=l&&(r.required||!r.required&&t.value),r.field=t.field,r.asyncValidator)o=r.asyncValidator(r,t.value,s,t.source,a);else if(r.validator){try{o=r.validator(r,t.value,s,t.source,a)}catch(d){null==console.error||console.error(d),a.suppressValidatorError||setTimeout((function(){throw d}),0),s(d.message)}!0===o?s():!1===o?s("function"===typeof r.message?r.message(r.fullField||r.field):r.message||(r.fullField||r.field)+" fails"):o instanceof Array?s(o):o instanceof Error&&s(o.message)}o&&o.then&&o.then((function(){return s()}),(function(e){return s(e)}))}),(function(e){!function(e){var t=[],n={};function o(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,e):t.push(e)}for(var r=0;r<e.length;r++)o(e[r]);t.length?(n=Fn(t),l(t,n)):l(null,i)}(e)}),i)},t.getType=function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!==typeof e.validator&&e.type&&!no.hasOwnProperty(e.type))throw new Error(Hn("Unknown rule type %s",e.type));return e.type||"string"},t.getValidationMethod=function(e){if("function"===typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?no.required:no[this.getType(e)]||void 0},e}();io.register=function(e,t){if("function"!==typeof t)throw new Error("Cannot register a validator by type, validator is not a function");no[e]=t},io.warning=function(){},io.messages=ro,io.validators=no;var ao="'${name}' is not a valid ${type}",lo={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:ao,method:ao,array:ao,object:ao,number:ao,date:ao,boolean:ao,integer:ao,float:ao,regexp:ao,email:ao,url:ao,hex:ao},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}};function co(e){return Fe(e)||Ne(e)||Ie(e)||He()}function so(e,t){for(var n=e,o=0;o<t.length;o+=1){if(null===n||void 0===n)return;n=n[t[o]]}return n}function uo(e,t,n,o){if(!t.length)return n;var r,i=co(t),a=i[0],l=i.slice(1);return r=e||"number"!==typeof a?Array.isArray(e)?Re(e):Be({},e):[],o&&void 0===n&&1===l.length?delete r[a][l[0]]:r[a]=uo(r[a],l,n,o),r}function fo(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&o&&void 0===n&&!so(e,t.slice(0,-1))?e:uo(e,t,n,o)}function po(e){return Array.isArray(e)?[]:{}}var ho="undefined"===typeof Reflect?Object.keys:Reflect.ownKeys;function mo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=po(t[0]);return t.forEach((function(e){!function t(n,r){var i,a=new Set(r),l=so(e,n),c=Array.isArray(l);if(c||"object"===Ae(i=l)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(l)){a.add(l);var s=so(o,n);c?o=fo(o,n,[]):s&&"object"===Ae(s)||(o=fo(o,n,po(l))),ho(l).forEach((function(e){t([].concat(Re(n),[e]),a)}))}}else o=fo(o,n,l)}([])})),o}var go=io;function vo(e,t){return e.replace(/\$\{\w+\}/g,(function(e){var n=e.slice(2,-1);return t[n]}))}var bo="CODE_LOGIC_ERROR";function yo(e,t,n,o,r){return wo.apply(this,arguments)}function wo(){return wo=yn(vn().mark((function e(t,n,r,i,a){var l,c,s,u,d,f,p,h,m;return vn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(l=Be({},r)).ruleIndex,go.warning=function(){},l.validator&&(c=l.validator,l.validator=function(){try{return c.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(bo)}}),s=null,l&&"array"===l.type&&l.defaultField&&(s=l.defaultField,delete l.defaultField),u=new go(Le({},t,[l])),d=mo(lo,i.validateMessages),u.messages(d),f=[],e.prev=10,e.next=13,Promise.resolve(u.validate(Le({},t,n),Be({},i)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(f=e.t0.errors.map((function(e,t){var n=e.message,r=n===bo?d.default:n;return o.isValidElement(r)?o.cloneElement(r,{key:"error_".concat(t)}):r})));case 18:if(f.length||!s){e.next=23;break}return e.next=21,Promise.all(n.map((function(e,n){return yo("".concat(t,".").concat(n),e,s,i,a)})));case 21:return p=e.sent,e.abrupt("return",p.reduce((function(e,t){return[].concat(Re(e),Re(t))}),[]));case 23:return h=Be(Be({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),m=f.map((function(e){return"string"===typeof e?vo(e,h):e})),e.abrupt("return",m);case 26:case"end":return e.stop()}}),e,null,[[10,15]])}))),wo.apply(this,arguments)}function xo(e,t,n,o,r,i){var a,l=e.join("."),c=n.map((function(e,t){var n=e.validator,o=Be(Be({},e),{},{ruleIndex:t});return n&&(o.validator=function(e,t,o){var r=!1,i=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((function(){_n(!r,"Your validator function has already return a promise. `callback` will be ignored."),r||o.apply(void 0,t)}))}));r=i&&"function"===typeof i.then&&"function"===typeof i.catch,_n(r,"`callback` is deprecated. Please return a promise instead."),r&&i.then((function(){o()})).catch((function(e){o(e||" ")}))}),o})).sort((function(e,t){var n=e.warningOnly,o=e.ruleIndex,r=t.warningOnly,i=t.ruleIndex;return!!n===!!r?o-i:n?1:-1}));if(!0===r)a=new Promise(function(){var e=yn(vn().mark((function e(n,r){var a,s,u;return vn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<c.length)){e.next=12;break}return s=c[a],e.next=5,yo(l,t,s,o,i);case 5:if(!(u=e.sent).length){e.next=9;break}return r([{errors:u,rule:s}]),e.abrupt("return");case 9:a+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());else{var s=c.map((function(e){return yo(l,t,e,o,i).then((function(t){return{errors:t,rule:e}}))}));a=(r?function(e){return Co.apply(this,arguments)}(s):function(e){return So.apply(this,arguments)}(s)).then((function(e){return Promise.reject(e)}))}return a.catch((function(e){return e})),a}function So(){return(So=yn(vn().mark((function e(t){return vn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then((function(e){var t;return(t=[]).concat.apply(t,Re(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Co(){return Co=yn(vn().mark((function e(t){var n;return vn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise((function(e){t.forEach((function(o){o.then((function(o){o.errors.length&&e([o]),(n+=1)===t.length&&e([])}))}))})));case 2:case"end":return e.stop()}}),e)}))),Co.apply(this,arguments)}function ko(e){return Tn(e)}function Eo(e,t){var n={};return t.forEach((function(t){var o=so(e,t);n=fo(n,t,o)})),n}function Oo(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return _o(t,e,n)}))}function _o(e,t){return!(!e||!t)&&(!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every((function(t,n){return e[n]===t})))}function Po(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===Ae(t.target)&&e in t.target?t.target[e]:t}function Mo(e,t,n){var o=e.length;if(t<0||t>=o||n<0||n>=o)return e;var r=e[t],i=t-n;return i>0?[].concat(Re(e.slice(0,n)),[r],Re(e.slice(n,t)),Re(e.slice(t+1,o))):i<0?[].concat(Re(e.slice(0,t)),Re(e.slice(t+1,n+1)),[r],Re(e.slice(n+1,o))):e}var No=["name"],Io=[];function Ro(e,t,n,o,r,i){return"function"===typeof e?e(t,n,"source"in i?{source:i.source}:{}):o!==r}var To=function(e){it(n,e);var t=ut(n);function n(e){var r;(tt(this,n),Le(ct(r=t.call(this,e)),"state",{resetCount:0}),Le(ct(r),"cancelRegisterFunc",null),Le(ct(r),"mounted",!1),Le(ct(r),"touched",!1),Le(ct(r),"dirty",!1),Le(ct(r),"validatePromise",void 0),Le(ct(r),"prevValidating",void 0),Le(ct(r),"errors",Io),Le(ct(r),"warnings",Io),Le(ct(r),"cancelRegister",(function(){var e=r.props,t=e.preserve,n=e.isListField,o=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,ko(o)),r.cancelRegisterFunc=null})),Le(ct(r),"getNamePath",(function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(Re(void 0===n?[]:n),Re(t)):[]})),Le(ct(r),"getRules",(function(){var e=r.props,t=e.rules,n=void 0===t?[]:t,o=e.fieldContext;return n.map((function(e){return"function"===typeof e?e(o):e}))})),Le(ct(r),"refresh",(function(){r.mounted&&r.setState((function(e){return{resetCount:e.resetCount+1}}))})),Le(ct(r),"metaCache",null),Le(ct(r),"triggerMetaEvent",(function(e){var t=r.props.onMetaChange;if(t){var n=Be(Be({},r.getMeta()),{},{destroy:e});Pn(r.metaCache,n)||t(n),r.metaCache=n}else r.metaCache=null})),Le(ct(r),"onStoreChange",(function(e,t,n){var o=r.props,i=o.shouldUpdate,a=o.dependencies,l=void 0===a?[]:a,c=o.onReset,s=n.store,u=r.getNamePath(),d=r.getValue(e),f=r.getValue(s),p=t&&Oo(t,u);switch("valueUpdate"===n.type&&"external"===n.source&&d!==f&&(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=Io,r.warnings=Io,r.triggerMetaEvent()),n.type){case"reset":if(!t||p)return r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=Io,r.warnings=Io,r.triggerMetaEvent(),null===c||void 0===c||c(),void r.refresh();break;case"remove":if(i)return void r.reRender();break;case"setField":var h=n.data;if(p)return"touched"in h&&(r.touched=h.touched),"validating"in h&&!("originRCField"in h)&&(r.validatePromise=h.validating?Promise.resolve([]):null),"errors"in h&&(r.errors=h.errors||Io),"warnings"in h&&(r.warnings=h.warnings||Io),r.dirty=!0,r.triggerMetaEvent(),void r.reRender();if("value"in h&&Oo(t,u,!0))return void r.reRender();if(i&&!u.length&&Ro(i,e,s,d,f,n))return void r.reRender();break;case"dependenciesUpdate":if(l.map(ko).some((function(e){return Oo(n.relatedFields,e)})))return void r.reRender();break;default:if(p||(!l.length||u.length||i)&&Ro(i,e,s,d,f,n))return void r.reRender()}!0===i&&r.reRender()})),Le(ct(r),"validateRules",(function(e){var t=r.getNamePath(),n=r.getValue(),o=e||{},i=o.triggerName,a=o.validateOnly,l=void 0!==a&&a,c=Promise.resolve().then(yn(vn().mark((function o(){var a,l,s,u,d,f,p;return vn().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(r.mounted){o.next=2;break}return o.abrupt("return",[]);case 2:if(a=r.props,l=a.validateFirst,s=void 0!==l&&l,u=a.messageVariables,d=a.validateDebounce,f=r.getRules(),i&&(f=f.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||Tn(t).includes(i)}))),!d||!i){o.next=10;break}return o.next=8,new Promise((function(e){setTimeout(e,d)}));case 8:if(r.validatePromise===c){o.next=10;break}return o.abrupt("return",[]);case 10:return(p=xo(t,n,f,e,s,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Io;if(r.validatePromise===c){var t;r.validatePromise=null;var n=[],o=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,r=e.errors,i=void 0===r?Io:r;t?o.push.apply(o,Re(i)):n.push.apply(n,Re(i))})),r.errors=n,r.warnings=o,r.triggerMetaEvent(),r.reRender()}})),o.abrupt("return",p);case 13:case"end":return o.stop()}}),o)}))));return l||(r.validatePromise=c,r.dirty=!0,r.errors=Io,r.warnings=Io,r.triggerMetaEvent(),r.reRender()),c})),Le(ct(r),"isFieldValidating",(function(){return!!r.validatePromise})),Le(ct(r),"isFieldTouched",(function(){return r.touched})),Le(ct(r),"isFieldDirty",(function(){return!(!r.dirty&&void 0===r.props.initialValue)||void 0!==(0,r.props.fieldContext.getInternalHooks(Mn).getInitialValue)(r.getNamePath())})),Le(ct(r),"getErrors",(function(){return r.errors})),Le(ct(r),"getWarnings",(function(){return r.warnings})),Le(ct(r),"isListField",(function(){return r.props.isListField})),Le(ct(r),"isList",(function(){return r.props.isList})),Le(ct(r),"isPreserve",(function(){return r.props.preserve})),Le(ct(r),"getMeta",(function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,warnings:r.warnings,name:r.getNamePath(),validated:null===r.validatePromise}})),Le(ct(r),"getOnlyChild",(function(e){if("function"===typeof e){var t=r.getMeta();return Be(Be({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var n=wn(e);return 1===n.length&&o.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),Le(ct(r),"getValue",(function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return so(e||t(!0),n)})),Le(ct(r),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.props,n=t.trigger,o=t.validateTrigger,i=t.getValueFromEvent,a=t.normalize,l=t.valuePropName,c=t.getValueProps,s=t.fieldContext,u=void 0!==o?o:s.validateTrigger,d=r.getNamePath(),f=s.getInternalHooks,p=s.getFieldsValue,h=f(Mn).dispatch,m=r.getValue(),g=c||function(e){return Le({},l,e)},v=e[n],b=Be(Be({},e),g(m));return b[n]=function(){var e;r.touched=!0,r.dirty=!0,r.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e=i?i.apply(void 0,n):Po.apply(void 0,[l].concat(n)),a&&(e=a(e,m,p(!0))),h({type:"updateValue",namePath:d,value:e}),v&&v.apply(void 0,n)},Tn(u||[]).forEach((function(e){var t=b[e];b[e]=function(){t&&t.apply(void 0,arguments);var n=r.props.rules;n&&n.length&&h({type:"validateField",namePath:d,triggerName:e})}})),b})),e.fieldContext)&&(0,(0,e.fieldContext.getInternalHooks)(Mn).initEntityValue)(ct(r));return r}return ot(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var o=(0,n.getInternalHooks)(Mn).registerField;this.cancelRegisterFunc=o(this)}!0===t&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var e,t=this.state.resetCount,n=this.props.children,r=this.getOnlyChild(n),i=r.child;return r.isFunction?e=i:o.isValidElement(i)?e=o.cloneElement(i,this.getControlled(i.props)):(_n(!i,"`children` of Field is not validate ReactElement."),e=i),o.createElement(o.Fragment,{key:t},e)}}]),n}(o.Component);Le(To,"contextType",In),Le(To,"defaultProps",{trigger:"onChange",valuePropName:"value"});const jo=function(e){var t=e.name,n=Qe(e,No),r=o.useContext(In),i=o.useContext(Rn),a=void 0!==t?ko(t):void 0,l="keep";return n.isListField||(l="_".concat((a||[]).join("_"))),o.createElement(To,Jt({key:l,name:a,isListField:!!i},n,{fieldContext:r}))};const Ao=function(e){var t=e.name,n=e.initialValue,r=e.children,i=e.rules,a=e.validateTrigger,l=e.isListField,c=o.useContext(In),s=o.useContext(Rn),u=o.useRef({keys:[],id:0}).current,d=o.useMemo((function(){var e=ko(c.prefixName)||[];return[].concat(Re(e),Re(ko(t)))}),[c.prefixName,t]),f=o.useMemo((function(){return Be(Be({},c),{},{prefixName:d})}),[c,d]),p=o.useMemo((function(){return{getKey:function(e){var t=d.length,n=e[t];return[u.keys[n],e.slice(t+1)]}}}),[d]);return"function"!==typeof r?(_n(!1,"Form.List only accepts function as children."),null):o.createElement(Rn.Provider,{value:p},o.createElement(In.Provider,{value:f},o.createElement(jo,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:i,validateTrigger:a,initialValue:n,isList:!0,isListField:null!==l&&void 0!==l?l:!!s},(function(e,t){var n=e.value,o=void 0===n?[]:n,i=e.onChange,a=c.getFieldValue,l=function(){return a(d||[])||[]},s={add:function(e,t){var n=l();t>=0&&t<=n.length?(u.keys=[].concat(Re(u.keys.slice(0,t)),[u.id],Re(u.keys.slice(t))),i([].concat(Re(n.slice(0,t)),[e],Re(n.slice(t))))):(u.keys=[].concat(Re(u.keys),[u.id]),i([].concat(Re(n),[e]))),u.id+=1},remove:function(e){var t=l(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(u.keys=u.keys.filter((function(e,t){return!n.has(t)})),i(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=l();e<0||e>=n.length||t<0||t>=n.length||(u.keys=Mo(u.keys,e,t),i(Mo(n,e,t)))}}},f=o||[];return Array.isArray(f)||(f=[]),r(f.map((function(e,t){var n=u.keys[t];return void 0===n&&(u.keys[t]=u.id,n=u.keys[t],u.id+=1),{name:t,key:n,isListField:!0}})),s,t)}))))};var zo="__@field_split__";function Lo(e){return e.map((function(e){return"".concat(Ae(e),":").concat(e)})).join(zo)}var Do=function(){function e(){tt(this,e),Le(this,"kvs",new Map)}return ot(e,[{key:"set",value:function(e,t){this.kvs.set(Lo(e),t)}},{key:"get",value:function(e){return this.kvs.get(Lo(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(Lo(e))}},{key:"map",value:function(e){return Re(this.kvs.entries()).map((function(t){var n=We(t,2),o=n[0],r=n[1],i=o.split(zo);return e({key:i.map((function(e){var t=We(e.match(/^([^:]*):(.*)$/),3),n=t[1],o=t[2];return"number"===n?Number(o):o})),value:r})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,o=t.value;return e[n.join(".")]=o,null})),e}}]),e}();const Bo=Do;var Fo=["name"],Ho=ot((function e(t){var n=this;tt(this,e),Le(this,"formHooked",!1),Le(this,"forceRootUpdate",void 0),Le(this,"subscribable",!0),Le(this,"store",{}),Le(this,"fieldEntities",[]),Le(this,"initialValues",{}),Le(this,"callbacks",{}),Le(this,"validateMessages",null),Le(this,"preserve",null),Le(this,"lastValidatePromise",null),Le(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}})),Le(this,"getInternalHooks",(function(e){return e===Mn?(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}):(_n(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),Le(this,"useSubscribe",(function(e){n.subscribable=e})),Le(this,"prevWithoutPreserves",null),Le(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var o,r=mo(e,n.store);null===(o=n.prevWithoutPreserves)||void 0===o||o.map((function(t){var n=t.key;r=fo(r,n,so(e,n))})),n.prevWithoutPreserves=null,n.updateStore(r)}})),Le(this,"destroyForm",(function(){var e=new Bo;n.getFieldEntities(!0).forEach((function(t){n.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)})),n.prevWithoutPreserves=e})),Le(this,"getInitialValue",(function(e){var t=so(n.initialValues,e);return e.length?mo(t):t})),Le(this,"setCallbacks",(function(e){n.callbacks=e})),Le(this,"setValidateMessages",(function(e){n.validateMessages=e})),Le(this,"setPreserve",(function(e){n.preserve=e})),Le(this,"watchList",[]),Le(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),Le(this,"notifyWatch",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach((function(n){n(t,o,e)}))}})),Le(this,"timeoutId",null),Le(this,"warningUnhooked",(function(){0})),Le(this,"updateStore",(function(e){n.store=e})),Le(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),Le(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new Bo;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),Le(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=ko(e);return t.get(n)||{INVALIDATE_NAME_PATH:ko(e)}}))})),Le(this,"getFieldsValue",(function(e,t){var o,r,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(o=e,r=t):e&&"object"===Ae(e)&&(i=e.strict,r=e.filter),!0===o&&!r)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),l=[];return a.forEach((function(e){var t,n,a,c,s="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(c=e).isList)&&void 0!==a&&a.call(c))return}else if(!o&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(r){var u="getMeta"in e?e.getMeta():null;r(u)&&l.push(s)}else l.push(s)})),Eo(n.store,l.map(ko))})),Le(this,"getFieldValue",(function(e){n.warningUnhooked();var t=ko(e);return so(n.store,t)})),Le(this,"getFieldsError",(function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:ko(e[n]),errors:[],warnings:[]}}))})),Le(this,"getFieldError",(function(e){n.warningUnhooked();var t=ko(e);return n.getFieldsError([t])[0].errors})),Le(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=ko(e);return n.getFieldsError([t])[0].warnings})),Le(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var r,i=t[0],a=t[1],l=!1;0===t.length?r=null:1===t.length?Array.isArray(i)?(r=i.map(ko),l=!1):(r=null,l=i):(r=i.map(ko),l=a);var c=n.getFieldEntities(!0),s=function(e){return e.isFieldTouched()};if(!r)return l?c.every(s):c.some(s);var u=new Bo;r.forEach((function(e){u.set(e,[])})),c.forEach((function(e){var t=e.getNamePath();r.forEach((function(n){n.every((function(e,n){return t[n]===e}))&&u.update(n,(function(t){return[].concat(Re(t),[e])}))}))}));var d=function(e){return e.some(s)},f=u.map((function(e){return e.value}));return l?f.every(d):f.some(d)})),Le(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),Le(this,"isFieldsValidating",(function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var o=e.map(ko);return t.some((function(e){var t=e.getNamePath();return Oo(o,t)&&e.isFieldValidating()}))})),Le(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),Le(this,"resetWithFieldInitialValue",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new Bo,o=n.getFieldEntities(!0);o.forEach((function(e){var n=e.props.initialValue,o=e.getNamePath();if(void 0!==n){var r=t.get(o)||new Set;r.add({entity:e,value:n}),t.set(o,r)}}));var r;e.entities?r=e.entities:e.namePathList?(r=[],e.namePathList.forEach((function(e){var n,o=t.get(e);o&&(n=r).push.apply(n,Re(Re(o).map((function(e){return e.entity}))))}))):r=o,r.forEach((function(o){if(void 0!==o.props.initialValue){var r=o.getNamePath();if(void 0!==n.getInitialValue(r))_n(!1,"Form already set 'initialValues' with path '".concat(r.join("."),"'. Field can not overwrite it."));else{var i=t.get(r);if(i&&i.size>1)_n(!1,"Multiple Field with path '".concat(r.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(r);o.isListField()||e.skipExist&&void 0!==a||n.updateStore(fo(n.store,r,Re(i)[0].value))}}}}))})),Le(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(mo(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var o=e.map(ko);o.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(fo(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(t,o,{type:"reset"}),n.notifyWatch(o)})),Le(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,o=[];e.forEach((function(e){var r=e.name,i=Qe(e,Fo),a=ko(r);o.push(a),"value"in i&&n.updateStore(fo(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(o)})),Le(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),o=Be(Be({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(o,"originRCField",{value:!0}),o}))})),Le(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var o=e.getNamePath();void 0===so(n.store,o)&&n.updateStore(fo(n.store,o,t))}})),Le(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null===t||void 0===t||t})),Le(this,"registerField",(function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var o=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(o,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(o,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(r)&&(!o||i.length>1)){var a=o?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!_o(e.getNamePath(),t)}))){var l=n.store;n.updateStore(fo(l,t,a,!0)),n.notifyObservers(l,[t],{type:"remove"}),n.triggerDependenciesUpdate(l,t)}}n.notifyWatch([t])}})),Le(this,"dispatch",(function(e){switch(e.type){case"updateValue":var t=e.namePath,o=e.value;n.updateValue(t,o);break;case"validateField":var r=e.namePath,i=e.triggerName;n.validateFields([r],{triggerName:i})}})),Le(this,"notifyObservers",(function(e,t,o){if(n.subscribable){var r=Be(Be({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,r)}))}else n.forceRootUpdate()})),Le(this,"triggerDependenciesUpdate",(function(e,t){var o=n.getDependencyChildrenFields(t);return o.length&&n.validateFields(o),n.notifyObservers(e,o,{type:"dependenciesUpdate",relatedFields:[t].concat(Re(o))}),o})),Le(this,"updateValue",(function(e,t){var o=ko(e),r=n.store;n.updateStore(fo(n.store,o,t)),n.notifyObservers(r,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var i=n.triggerDependenciesUpdate(r,o),a=n.callbacks.onValuesChange;a&&a(Eo(n.store,[o]),n.getFieldsValue());n.triggerOnFieldsChange([o].concat(Re(i)))})),Le(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var o=mo(n.store,e);n.updateStore(o)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),Le(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),Le(this,"getDependencyChildrenFields",(function(e){var t=new Set,o=[],r=new Bo;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=ko(t);r.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))}));return function e(n){(r.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var r=n.getNamePath();n.isFieldDirty()&&r.length&&(o.push(r),e(r))}}))}(e),o})),Le(this,"triggerOnFieldsChange",(function(e,t){var o=n.callbacks.onFieldsChange;if(o){var r=n.getFields();if(t){var i=new Bo;t.forEach((function(e){var t=e.name,n=e.errors;i.set(t,n)})),r.forEach((function(e){e.errors=i.get(e.name)||e.errors}))}var a=r.filter((function(t){var n=t.name;return Oo(e,n)}));a.length&&o(a,r)}})),Le(this,"validateFields",(function(e,t){var o,r;n.warningUnhooked(),Array.isArray(e)||"string"===typeof e||"string"===typeof t?(o=e,r=t):r=e;var i=!!o,a=i?o.map(ko):[],l=[],c=String(Date.now()),s=new Set,u=r||{},d=u.recursive,f=u.dirty;n.getFieldEntities(!0).forEach((function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!f||e.isFieldDirty())){var t=e.getNamePath();if(s.add(t.join(c)),!i||Oo(a,t,d)){var o=e.validateRules(Be({validateMessages:Be(Be({},lo),n.validateMessages)},r));l.push(o.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,o=[],r=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.rule.warningOnly,n=e.errors;t?r.push.apply(r,Re(n)):o.push.apply(o,Re(n))})),o.length?Promise.reject({name:t,errors:o,warnings:r}):{name:t,errors:o,warnings:r}})))}}}));var p=function(e){var t=!1,n=e.length,o=[];return e.length?new Promise((function(r,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,o[a]=e,n>0||(t&&i(o),r(o))}))}))})):Promise.resolve([])}(l);n.lastValidatePromise=p,p.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)}));var h=p.then((function(){return n.lastValidatePromise===p?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(a),errorFields:t,outOfDate:n.lastValidatePromise!==p})}));h.catch((function(e){return e}));var m=a.filter((function(e){return s.has(e.join(c))}));return n.triggerOnFieldsChange(m),h})),Le(this,"submit",(function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(o){console.error(o)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t}));const Wo=function(e){var t=o.useRef(),n=We(o.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var r=new Ho((function(){n({})}));t.current=r.getForm()}return[t.current]};var Vo=o.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Ko=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,i=e.children,a=o.useContext(Vo),l=o.useRef({});return o.createElement(Vo.Provider,{value:Be(Be({},a),{},{validateMessages:Be(Be({},a.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:l.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:l.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(l.current=Be(Be({},l.current),{},Le({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=Be({},l.current);delete t[e],l.current=t,a.unregisterForm(e)}})},i)};const qo=Vo;var Uo=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"];const Xo=function(e,t){var n=e.name,r=e.initialValues,i=e.fields,a=e.form,l=e.preserve,c=e.children,s=e.component,u=void 0===s?"form":s,d=e.validateMessages,f=e.validateTrigger,p=void 0===f?"onChange":f,h=e.onValuesChange,m=e.onFieldsChange,g=e.onFinish,v=e.onFinishFailed,b=Qe(e,Uo),y=o.useContext(qo),w=We(Wo(a),1)[0],x=w.getInternalHooks(Mn),S=x.useSubscribe,C=x.setInitialValues,k=x.setCallbacks,E=x.setValidateMessages,O=x.setPreserve,_=x.destroyForm;o.useImperativeHandle(t,(function(){return w})),o.useEffect((function(){return y.registerForm(n,w),function(){y.unregisterForm(n)}}),[y,w,n]),E(Be(Be({},y.validateMessages),d)),k({onValuesChange:h,onFieldsChange:function(e){if(y.triggerFormChange(n,e),m){for(var t=arguments.length,o=new Array(t>1?t-1:0),r=1;r<t;r++)o[r-1]=arguments[r];m.apply(void 0,[e].concat(o))}},onFinish:function(e){y.triggerFormFinish(n,e),g&&g(e)},onFinishFailed:v}),O(l);var P,M=o.useRef(null);C(r,!M.current),M.current||(M.current=!0),o.useEffect((function(){return _}),[]);var N="function"===typeof c;N?P=c(w.getFieldsValue(!0),w):P=c;S(!N);var I=o.useRef();o.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==Ae(e)||"object"!==Ae(t))return!1;var n=Object.keys(e),o=Object.keys(t);return Re(new Set([].concat(n,o))).every((function(n){var o=e[n],r=t[n];return"function"===typeof o&&"function"===typeof r||o===r}))})(I.current||[],i||[])||w.setFields(i||[]),I.current=i}),[i,w]);var R=o.useMemo((function(){return Be(Be({},w),{},{validateTrigger:p})}),[w,p]),T=o.createElement(Rn.Provider,{value:null},o.createElement(In.Provider,{value:R},P));return!1===u?T:o.createElement(u,Jt({},b,{onSubmit:function(e){e.preventDefault(),e.stopPropagation(),w.submit()},onReset:function(e){var t;e.preventDefault(),w.resetFields(),null===(t=b.onReset)||void 0===t||t.call(b,e)}}),T)};function Go(e){try{return JSON.stringify(e)}catch(t){return Math.random()}}var $o=function(){};const Yo=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],a=void 0===i?{}:i,l=function(e){return e&&!!e._init}(a)?{form:a}:a,c=l.form,s=We((0,o.useState)(),2),u=s[0],d=s[1],f=(0,o.useMemo)((function(){return Go(u)}),[u]),p=(0,o.useRef)(f);p.current=f;var h=(0,o.useContext)(In),m=c||h,g=m&&m._init,v=ko(r),b=(0,o.useRef)(v);return b.current=v,$o(v),(0,o.useEffect)((function(){if(g){var e=m.getFieldsValue,t=(0,m.getInternalHooks)(Mn).registerWatch,n=function(e,t){var n=l.preserve?t:e;return"function"===typeof r?r(n):so(n,b.current)},o=t((function(e,t){var o=n(e,t),r=Go(o);p.current!==r&&(p.current=r,d(o))})),i=n(e(),e(!0));return u!==i&&d(i),o}}),[g]),u};var Qo=o.forwardRef(Xo);Qo.FormProvider=Ko,Qo.Field=jo,Qo.List=Ao,Qo.useForm=Wo,Qo.useWatch=Yo;const Jo=Qo;function Zo(e,t){var n=Be({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}const er=o.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),tr=o.createContext(null),nr=e=>{const t=Zo(e,["prefixCls"]);return o.createElement(Ko,Object.assign({},t))},or=o.createContext({prefixCls:""}),rr=o.createContext({});const ir=e=>{let{children:t,status:n,override:r}=e;const i=(0,o.useContext)(rr),a=(0,o.useMemo)((()=>{const e=Object.assign({},i);return r&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[n,r,i]);return o.createElement(rr.Provider,{value:a},t)},ar=(0,o.createContext)(void 0);function lr(e){const[t,n]=o.useState(e);return o.useEffect((()=>{const t=setTimeout((()=>{n(e)}),e.length?0:10);return()=>{clearTimeout(t)}}),[e]),t}const cr=function(e){for(var t,n=0,o=0,r=e.length;r>=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};var sr="data-rc-order",ur="data-rc-priority",dr="rc-util-key",fr=new Map;function pr(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):dr}function hr(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function mr(e){return Array.from((fr.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function gr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Ct())return null;var n=t.csp,o=t.prepend,r=t.priority,i=void 0===r?0:r,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(o),l="prependQueue"===a,c=document.createElement("style");c.setAttribute(sr,a),l&&i&&c.setAttribute(ur,"".concat(i)),null!==n&&void 0!==n&&n.nonce&&(c.nonce=null===n||void 0===n?void 0:n.nonce),c.innerHTML=e;var s=hr(t),u=s.firstChild;if(o){if(l){var d=(t.styles||mr(s)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(sr)))return!1;var t=Number(e.getAttribute(ur)||0);return i>=t}));if(d.length)return s.insertBefore(c,d[d.length-1].nextSibling),c}s.insertBefore(c,u)}else s.appendChild(c);return c}function vr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=hr(t);return(t.styles||mr(n)).find((function(n){return n.getAttribute(pr(t))===e}))}function br(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=vr(e,t);n&&hr(t).removeChild(n)}function yr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=hr(n),r=mr(o),i=Be(Be({},n),{},{styles:r});!function(e,t){var n=fr.get(e);if(!n||!function(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}(document,n)){var o=gr("",t),r=o.parentNode;fr.set(e,r),e.removeChild(o)}}(o,i);var a=vr(t,i);if(a){var l,c,s;if(null!==(l=i.csp)&&void 0!==l&&l.nonce&&a.nonce!==(null===(c=i.csp)||void 0===c?void 0:c.nonce))a.nonce=null===(s=i.csp)||void 0===s?void 0:s.nonce;return a.innerHTML!==e&&(a.innerHTML=e),a}var u=gr(e,i);return u.setAttribute(pr(i),t),u}var wr="%";function xr(e){return e.join(wr)}var Sr=function(){function e(t){tt(this,e),Le(this,"instanceId",void 0),Le(this,"cache",new Map),this.instanceId=t}return ot(e,[{key:"get",value:function(e){return this.opGet(xr(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(xr(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}();const Cr=Sr;var kr="data-token-hash",Er="data-css-hash",Or="__cssinjs_instance__";function _r(){var e=Math.random().toString(12).slice(2);if("undefined"!==typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Er,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[Or]=t[Or]||e,t[Or]===e&&document.head.insertBefore(t,n)}));var o={};Array.from(document.querySelectorAll("style[".concat(Er,"]"))).forEach((function(t){var n,r=t.getAttribute(Er);o[r]?t[Or]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):o[r]=!0}))}return new Cr(e)}var Pr=o.createContext({hashPriority:"low",cache:_r(),defaultCache:!0});const Mr=Pr;var Nr=function(){function e(){tt(this,e),Le(this,"cache",void 0),Le(this,"keys",void 0),Le(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return ot(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={map:this.cache};return e.forEach((function(e){var t;r?r=null===(t=r)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):r=void 0})),null!==(t=r)&&void 0!==t&&t.value&&o&&(r.value[1]=this.cacheCallTimes++),null===(n=r)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var o=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var r=this.keys.reduce((function(e,t){var n=We(e,2)[1];return o.internalGet(t)[1]<n?[t,o.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),i=We(r,1)[0];this.delete(i)}this.keys.push(t)}var a=this.cache;t.forEach((function(e,r){if(r===t.length-1)a.set(e,{value:[n,o.cacheCallTimes++]});else{var i=a.get(e);i?i.map||(i.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}}))}},{key:"deleteByPath",value:function(e,t){var n,o=e.get(t[0]);if(1===t.length)return o.map?e.set(t[0],{map:o.map}):e.delete(t[0]),null===(n=o.value)||void 0===n?void 0:n[0];var r=this.deleteByPath(o.map,t.slice(1));return o.map&&0!==o.map.size||o.value||e.delete(t[0]),r}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter((function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)})),this.deleteByPath(this.cache,e)}}]),e}();Le(Nr,"MAX_CACHE_SIZE",20),Le(Nr,"MAX_CACHE_OFFSET",5);var Ir=0,Rr=function(){function e(t){tt(this,e),Le(this,"derivatives",void 0),Le(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Ir,0===t.length&&t.length,Ir+=1}return ot(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),Tr=new Nr;function jr(e){var t=Array.isArray(e)?e:[e];return Tr.has(t)||Tr.set(t,new Rr(t)),Tr.get(t)}var Ar=new WeakMap,zr={};var Lr=new WeakMap;function Dr(e){var t=Lr.get(e)||"";return t||(Object.keys(e).forEach((function(n){var o=e[n];t+=n,o instanceof Rr?t+=o.id:o&&"object"===Ae(o)?t+=Dr(o):t+=o})),Lr.set(e,t)),t}function Br(e,t){return cr("".concat(t,"_").concat(Dr(e)))}var Fr="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),Hr="_bAmBoO_";function Wr(e,t,n){if(Ct()){var o,r;yr(e,Fr);var i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",null===t||void 0===t||t(i),document.body.appendChild(i);var a=n?n(i):null===(o=getComputedStyle(i).content)||void 0===o?void 0:o.includes(Hr);return null===(r=i.parentNode)||void 0===r||r.removeChild(i),br(Fr),a}return!1}var Vr=void 0;var Kr=Ct();function qr(e){return"number"===typeof e?"".concat(e,"px"):e}function Ur(e,t,n){var o;if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var r=Be(Be({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},(Le(o={},kr,t),Le(o,Er,n),o)),i=Object.keys(r).map((function(e){var t=r[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"<style ".concat(i,">").concat(e,"</style>")}var Xr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Gr=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!==n&&void 0!==n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=We(e,2),n=t[0],o=t[1];return"".concat(n,":").concat(o,";")})).join(""),"}"):""},$r=function(e,t,n){var o={},r={};return Object.entries(e).forEach((function(e){var t,i,a=We(e,2),l=a[0],c=a[1];if(null!==n&&void 0!==n&&null!==(t=n.preserve)&&void 0!==t&&t[l])r[l]=c;else if(("string"===typeof c||"number"===typeof c)&&(null===n||void 0===n||null===(i=n.ignore)||void 0===i||!i[l])){var s,u=Xr(l,null===n||void 0===n?void 0:n.prefix);o[u]="number"!==typeof c||null!==n&&void 0!==n&&null!==(s=n.unitless)&&void 0!==s&&s[l]?String(c):"".concat(c,"px"),r[l]="var(".concat(u,")")}})),[r,Gr(o,t,{scope:null===n||void 0===n?void 0:n.scope})]},Yr=Ct()?o.useLayoutEffect:o.useEffect,Qr=function(e,t){var n=o.useRef(!0);Yr((function(){return e(n.current)}),t),Yr((function(){return n.current=!1,function(){n.current=!0}}),[])},Jr=function(e,t){Qr((function(t){if(!t)return e()}),t)};const Zr=Qr;var ei=Be({},r).useInsertionEffect;const ti=ei?function(e,t,n){return ei((function(){return e(),t()}),n)}:function(e,t,n){o.useMemo(e,n),Zr((function(){return t(!0)}),n)};var ni="undefined"!==typeof Be({},r).useInsertionEffect?function(e){var t=[],n=!1;return o.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n||t.push(e)}}:function(){return function(e){e()}};const oi=ni;const ri=function(){return!1};function ii(e,t,n,r,i){var a=o.useContext(Mr).cache,l=xr([e].concat(Re(t))),c=oi([l]),s=(ri(),function(e){a.opUpdate(l,(function(t){var o=We(t||[void 0,void 0],2),r=o[0];var i=[void 0===r?0:r,o[1]||n()];return e?e(i):i}))});o.useMemo((function(){s()}),[l]);var u=a.opGet(l)[1];return ti((function(){null===i||void 0===i||i(u)}),(function(e){return s((function(t){var n=We(t,2),o=n[0],r=n[1];return e&&0===o&&(null===i||void 0===i||i(u)),[o+1,r]})),function(){a.opUpdate(l,(function(t){var n=We(t||[],2),o=n[0],i=void 0===o?0:o,s=n[1];return 0===i-1?(c((function(){!e&&a.opGet(l)||null===r||void 0===r||r(s,!1)})),null):[i-1,s]}))}}),[l]),u}var ai={},li="css",ci=new Map;var si=0;function ui(e,t){ci.set(e,(ci.get(e)||0)-1);var n=Array.from(ci.keys()),o=n.filter((function(e){return(ci.get(e)||0)<=0}));n.length-o.length>si&&o.forEach((function(e){!function(e,t){"undefined"!==typeof document&&document.querySelectorAll("style[".concat(kr,'="').concat(e,'"]')).forEach((function(e){var n;e[Or]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),ci.delete(e)}))}var di=function(e,t,n,o){var r=Be(Be({},n.getDerivativeToken(e)),t);return o&&(r=o(r)),r},fi="token";function pi(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,o.useContext)(Mr),i=r.cache.instanceId,a=r.container,l=n.salt,c=void 0===l?"":l,s=n.override,u=void 0===s?ai:s,d=n.formatToken,f=n.getComputedToken,p=n.cssVar,h=function(e,t){for(var n=Ar,o=0;o<t.length;o+=1){var r=t[o];n.has(r)||n.set(r,new WeakMap),n=n.get(r)}return n.has(zr)||n.set(zr,e()),n.get(zr)}((function(){return Object.assign.apply(Object,[{}].concat(Re(t)))}),t),m=Dr(h),g=Dr(u),v=p?Dr(p):"",b=ii(fi,[c,e.id,m,g,v],(function(){var t,n=f?f(h,u,e):di(h,u,e,d),o=Be({},n),r="";if(p){var i=We($r(n,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),2);n=i[0],r=i[1]}var a=Br(n,c);n._tokenKey=a,o._tokenKey=Br(o,c);var l=null!==(t=null===p||void 0===p?void 0:p.key)&&void 0!==t?t:a;n._themeKey=l,function(e){ci.set(e,(ci.get(e)||0)+1)}(l);var s="".concat(li,"-").concat(cr(a));return n._hashId=s,[n,s,o,r,(null===p||void 0===p?void 0:p.key)||""]}),(function(e){ui(e[0]._themeKey,i)}),(function(e){var t=We(e,4),n=t[0],o=t[3];if(p&&o){var r=yr(o,cr("css-variables-".concat(n._themeKey)),{mark:Er,prepend:"queue",attachTo:a,priority:-999});r[Or]=i,r.setAttribute(kr,n._themeKey)}}));return b}const hi={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};var mi="comm",gi="rule",vi="decl",bi="@import",yi="@keyframes",wi="@layer",xi=Math.abs,Si=String.fromCharCode;Object.assign;function Ci(e){return e.trim()}function ki(e,t,n){return e.replace(t,n)}function Ei(e,t,n){return e.indexOf(t,n)}function Oi(e,t){return 0|e.charCodeAt(t)}function _i(e,t,n){return e.slice(t,n)}function Pi(e){return e.length}function Mi(e,t){return t.push(e),e}function Ni(e,t){for(var n="",o=0;o<e.length;o++)n+=t(e[o],o,e,t)||"";return n}function Ii(e,t,n,o){switch(e.type){case wi:if(e.children.length)break;case bi:case vi:return e.return=e.return||e.value;case mi:return"";case yi:return e.return=e.value+"{"+Ni(e.children,o)+"}";case gi:if(!Pi(e.value=e.props.join(",")))return""}return Pi(n=Ni(e.children,o))?e.return=e.value+"{"+n+"}":""}var Ri=1,Ti=1,ji=0,Ai=0,zi=0,Li="";function Di(e,t,n,o,r,i,a,l){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:Ri,column:Ti,length:a,return:"",siblings:l}}function Bi(){return zi=Ai>0?Oi(Li,--Ai):0,Ti--,10===zi&&(Ti=1,Ri--),zi}function Fi(){return zi=Ai<ji?Oi(Li,Ai++):0,Ti++,10===zi&&(Ti=1,Ri++),zi}function Hi(){return Oi(Li,Ai)}function Wi(){return Ai}function Vi(e,t){return _i(Li,e,t)}function Ki(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function qi(e){return Ri=Ti=1,ji=Pi(Li=e),Ai=0,[]}function Ui(e){return Li="",e}function Xi(e){return Ci(Vi(Ai-1,Yi(91===e?e+2:40===e?e+1:e)))}function Gi(e){for(;(zi=Hi())&&zi<33;)Fi();return Ki(e)>2||Ki(zi)>3?"":" "}function $i(e,t){for(;--t&&Fi()&&!(zi<48||zi>102||zi>57&&zi<65||zi>70&&zi<97););return Vi(e,Wi()+(t<6&&32==Hi()&&32==Fi()))}function Yi(e){for(;Fi();)switch(zi){case e:return Ai;case 34:case 39:34!==e&&39!==e&&Yi(zi);break;case 40:41===e&&Yi(e);break;case 92:Fi()}return Ai}function Qi(e,t){for(;Fi()&&e+zi!==57&&(e+zi!==84||47!==Hi()););return"/*"+Vi(t,Ai-1)+"*"+Si(47===e?e:Fi())}function Ji(e){for(;!Ki(Hi());)Fi();return Vi(e,Ai)}function Zi(e){return Ui(ea("",null,null,null,[""],e=qi(e),0,[0],e))}function ea(e,t,n,o,r,i,a,l,c){for(var s=0,u=0,d=a,f=0,p=0,h=0,m=1,g=1,v=1,b=0,y="",w=r,x=i,S=o,C=y;g;)switch(h=b,b=Fi()){case 40:if(108!=h&&58==Oi(C,d-1)){-1!=Ei(C+=ki(Xi(b),"&","&\f"),"&\f",xi(s?l[s-1]:0))&&(v=-1);break}case 34:case 39:case 91:C+=Xi(b);break;case 9:case 10:case 13:case 32:C+=Gi(h);break;case 92:C+=$i(Wi()-1,7);continue;case 47:switch(Hi()){case 42:case 47:Mi(na(Qi(Fi(),Wi()),t,n,c),c);break;default:C+="/"}break;case 123*m:l[s++]=Pi(C)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==v&&(C=ki(C,/\f/g,"")),p>0&&Pi(C)-d&&Mi(p>32?oa(C+";",o,n,d-1,c):oa(ki(C," ","")+";",o,n,d-2,c),c);break;case 59:C+=";";default:if(Mi(S=ta(C,t,n,s,u,r,l,y,w=[],x=[],d,i),i),123===b)if(0===u)ea(C,t,S,S,w,i,d,l,x);else switch(99===f&&110===Oi(C,3)?100:f){case 100:case 108:case 109:case 115:ea(e,S,S,o&&Mi(ta(e,S,S,0,0,r,l,y,r,w=[],d,x),x),r,x,d,l,o?w:x);break;default:ea(C,S,S,S,[""],x,0,l,x)}}s=u=p=0,m=v=1,y=C="",d=a;break;case 58:d=1+Pi(C),p=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==Bi())continue;switch(C+=Si(b),b*m){case 38:v=u>0?1:(C+="\f",-1);break;case 44:l[s++]=(Pi(C)-1)*v,v=1;break;case 64:45===Hi()&&(C+=Xi(Fi())),f=Hi(),u=d=Pi(y=C+=Ji(Wi())),b++;break;case 45:45===h&&2==Pi(C)&&(m=0)}}return i}function ta(e,t,n,o,r,i,a,l,c,s,u,d){for(var f=r-1,p=0===r?i:[""],h=function(e){return e.length}(p),m=0,g=0,v=0;m<o;++m)for(var b=0,y=_i(e,f+1,f=xi(g=a[m])),w=e;b<h;++b)(w=Ci(g>0?p[b]+" "+y:ki(y,/&\f/g,p[b])))&&(c[v++]=w);return Di(e,t,n,0===r?gi:l,c,s,u,d)}function na(e,t,n,o){return Di(e,t,n,mi,Si(zi),_i(e,2,-2),0,o)}function oa(e,t,n,o,r){return Di(e,t,n,vi,_i(e,0,o),_i(e,o+1,-1),o,r)}var ra,ia="data-ant-cssinjs-cache-path",aa="_FILE_STYLE__";var la=!0;function ca(e){return function(){if(!ra&&(ra={},Ct())){var e=document.createElement("div");e.className=ia,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=We(e.split(":"),2),n=t[0],o=t[1];ra[n]=o}));var n,o=document.querySelector("style[".concat(ia,"]"));o&&(la=!1,null===(n=o.parentNode)||void 0===n||n.removeChild(o)),document.body.removeChild(e)}}(),!!ra[e]}var sa="_multi_value_";function ua(e){return Ni(Zi(e),Ii).replace(/\{%%%\:[^;];}/g,";")}var da=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},r=o.root,i=o.injectHash,a=o.parentSelectors,l=n.hashId,c=n.layer,s=(n.path,n.hashPriority),u=n.transformers,d=void 0===u?[]:u,f=(n.linters,""),p={};function h(t){var o=t.getName(l);if(!p[o]){var r=We(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];p[o]="@keyframes ".concat(t.getName(l)).concat(r)}}var m=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);if(m.forEach((function(t){var o="string"!==typeof t||r?t:{};if("string"===typeof o)f+="".concat(o,"\n");else if(o._keyframe)h(o);else{var c=d.reduce((function(e,t){var n;return(null===t||void 0===t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),o);Object.keys(c).forEach((function(t){var o=c[t];if("object"!==Ae(o)||!o||"animationName"===t&&o._keyframe||function(e){return"object"===Ae(e)&&e&&("_skip_check_"in e||sa in e)}(o)){var u;function x(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),o=t;hi[e]||"number"!==typeof o||0===o||(o="".concat(o,"px")),"animationName"===e&&null!==t&&void 0!==t&&t._keyframe&&(h(t),o=t.getName(l)),f+="".concat(n,":").concat(o,";")}var d=null!==(u=null===o||void 0===o?void 0:o.value)&&void 0!==u?u:o;"object"===Ae(o)&&null!==o&&void 0!==o&&o[sa]&&Array.isArray(d)?d.forEach((function(e){x(t,e)})):x(t,d)}else{var m=!1,g=t.trim(),v=!1;(r||i)&&l?g.startsWith("@")?m=!0:g=function(e,t,n){if(!t)return e;var o=".".concat(t),r="low"===n?":where(".concat(o,")"):o;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),o=n[0]||"",i=(null===(t=o.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[o="".concat(i).concat(r).concat(o.slice(i.length))].concat(Re(n.slice(1))).join(" ")})).join(",")}(t,l,s):!r||l||"&"!==g&&""!==g||(g="",v=!0);var b=We(e(o,n,{root:v,injectHash:m,parentSelectors:[].concat(Re(a),[g])}),2),y=b[0],w=b[1];p=Be(Be({},p),w),f+="".concat(g).concat(y)}}))}})),r){if(c&&(void 0===Vr&&(Vr=Wr("@layer ".concat(Fr," { .").concat(Fr,' { content: "').concat(Hr,'"!important; } }'),(function(e){e.className=Fr}))),Vr)){var g=c.split(","),v=g[g.length-1].trim();f="@layer ".concat(v," {").concat(f,"}"),g.length>1&&(f="@layer ".concat(c,"{%%%:%}").concat(f))}}else f="{".concat(f,"}");return[f,p]};function fa(e,t){return cr("".concat(e.join("%")).concat(t))}function pa(){return null}var ha="style";function ma(e,t){var n=e.token,r=e.path,i=e.hashId,a=e.layer,l=e.nonce,c=e.clientOnly,s=e.order,u=void 0===s?0:s,d=o.useContext(Mr),f=d.autoClear,p=(d.mock,d.defaultCache),h=d.hashPriority,m=d.container,g=d.ssrInline,v=d.transformers,b=d.linters,y=d.cache,w=n._tokenKey,x=[w].concat(Re(r)),S=Kr;var C=ii(ha,x,(function(){var e=x.join("|");if(ca(e)){var n=function(e){var t=ra[e],n=null;if(t&&Ct())if(la)n=aa;else{var o=document.querySelector("style[".concat(Er,'="').concat(ra[e],'"]'));o?n=o.innerHTML:delete ra[e]}return[n,t]}(e),o=We(n,2),l=o[0],s=o[1];if(l)return[l,w,s,{},c,u]}var d=t(),f=We(da(d,{hashId:i,hashPriority:h,layer:a,path:r.join("-"),transformers:v,linters:b}),2),p=f[0],m=f[1],g=ua(p),y=fa(x,g);return[g,w,y,m,c,u]}),(function(e,t){var n=We(e,3)[2];(t||f)&&Kr&&br(n,{mark:Er})}),(function(e){var t=We(e,4),n=t[0],o=(t[1],t[2]),r=t[3];if(S&&n!==aa){var i={mark:Er,prepend:"queue",attachTo:m,priority:u},a="function"===typeof l?l():l;a&&(i.csp={nonce:a});var c=yr(n,o,i);c[Or]=y.instanceId,c.setAttribute(kr,w),Object.keys(r).forEach((function(e){yr(ua(r[e]),"_effect-".concat(e),i)}))}})),k=We(C,3),E=k[0],O=k[1],_=k[2];return function(e){var t,n;g&&!S&&p?t=o.createElement("style",Jt({},(Le(n={},kr,O),Le(n,Er,_),n),{dangerouslySetInnerHTML:{__html:E}})):t=o.createElement(pa,null);return o.createElement(o.Fragment,null,t,e)}}var ga="cssVar";const va=function(e,t){var n=e.key,r=e.prefix,i=e.unitless,a=e.ignore,l=e.token,c=e.scope,s=void 0===c?"":c,u=(0,o.useContext)(Mr),d=u.cache.instanceId,f=u.container,p=l._tokenKey,h=[].concat(Re(e.path),[n,s,p]),m=ii(ga,h,(function(){var e=t(),o=We($r(e,n,{prefix:r,unitless:i,ignore:a,scope:s}),2),l=o[0],c=o[1];return[l,c,fa(h,c),n]}),(function(e){var t=We(e,3)[2];Kr&&br(t,{mark:Er})}),(function(e){var t=We(e,3),o=t[1],r=t[2];if(o){var i=yr(o,r,{mark:Er,prepend:"queue",attachTo:f,priority:-999});i[Or]=d,i.setAttribute(kr,n)}}));return m};var ba;Le(ba={},ha,(function(e,t,n){var o=We(e,6),r=o[0],i=o[1],a=o[2],l=o[3],c=o[4],s=o[5],u=(n||{}).plain;if(c)return null;var d=r,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(s)};return d=Ur(r,i,a,f,u),l&&Object.keys(l).forEach((function(e){if(!t[e]){t[e]=!0;var n=ua(l[e]);d+=Ur(n,i,"_effect-".concat(e),f,u)}})),[s,a,d]})),Le(ba,fi,(function(e,t,n){var o=We(e,5),r=o[2],i=o[3],a=o[4],l=(n||{}).plain;if(!i)return null;var c=r._tokenKey;return[-999,c,Ur(i,a,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]})),Le(ba,ga,(function(e,t,n){var o=We(e,4),r=o[1],i=o[2],a=o[3],l=(n||{}).plain;if(!r)return null;return[-999,i,Ur(r,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]}));var ya=function(){function e(t,n){tt(this,e),Le(this,"name",void 0),Le(this,"style",void 0),Le(this,"_keyframe",!0),this.name=t,this.style=n}return ot(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();const wa=ya;function xa(e){return e.notSplit=!0,e}xa(["borderTop","borderBottom"]),xa(["borderTop"]),xa(["borderBottom"]),xa(["borderLeft","borderRight"]),xa(["borderLeft"]),xa(["borderRight"]);const Sa={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Ca=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},ka=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:"color ".concat(e.motionDurationSlow),"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Ea=(e,t,n)=>{const{fontFamily:o,fontSize:r}=e,i='[class^="'.concat(t,'"], [class*=" ').concat(t,'"]');return{[n?".".concat(n):i]:{fontFamily:o,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[i]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},Oa=e=>({outline:"".concat(qr(e.lineWidthFocus)," solid ").concat(e.colorPrimaryBorder),outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),_a=e=>({"&:focus-visible":Object.assign({},Oa(e))}),Pa=e=>({animationDuration:e,animationFillMode:"both"}),Ma=e=>({animationDuration:e,animationFillMode:"both"}),Na=function(e,t,n,o){const r=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{["\n ".concat(r).concat(e,"-enter,\n ").concat(r).concat(e,"-appear\n ")]:Object.assign(Object.assign({},Pa(o)),{animationPlayState:"paused"}),["".concat(r).concat(e,"-leave")]:Object.assign(Object.assign({},Ma(o)),{animationPlayState:"paused"}),["\n ".concat(r).concat(e,"-enter").concat(e,"-enter-active,\n ").concat(r).concat(e,"-appear").concat(e,"-appear-active\n ")]:{animationName:t,animationPlayState:"running"},["".concat(r).concat(e,"-leave").concat(e,"-leave-active")]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Ia=new wa("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Ra=new wa("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Ta=new wa("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),ja=new wa("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Aa=new wa("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),za=new wa("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),La=new wa("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Da=new wa("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Ba=new wa("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Fa=new wa("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Ha=new wa("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Wa=new wa("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Va={zoom:{inKeyframes:Ia,outKeyframes:Ra},"zoom-big":{inKeyframes:Ta,outKeyframes:ja},"zoom-big-fast":{inKeyframes:Ta,outKeyframes:ja},"zoom-left":{inKeyframes:La,outKeyframes:Da},"zoom-right":{inKeyframes:Ba,outKeyframes:Fa},"zoom-up":{inKeyframes:Aa,outKeyframes:za},"zoom-down":{inKeyframes:Ha,outKeyframes:Wa}},Ka=(e,t)=>{const{antCls:n}=e,o="".concat(n,"-").concat(t),{inKeyframes:r,outKeyframes:i}=Va[t];return[Na(o,r,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{["\n ".concat(o,"-enter,\n ").concat(o,"-appear\n ")]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},["".concat(o,"-leave")]:{animationTimingFunction:e.motionEaseInOutCirc}}]},qa=e=>({[e.componentCls]:{["".concat(e.antCls,"-motion-collapse-legacy")]:{overflow:"hidden","&-active":{transition:"height ".concat(e.motionDurationMid," ").concat(e.motionEaseInOut,",\n opacity ").concat(e.motionDurationMid," ").concat(e.motionEaseInOut," !important")}},["".concat(e.antCls,"-motion-collapse")]:{overflow:"hidden",transition:"height ".concat(e.motionDurationMid," ").concat(e.motionEaseInOut,",\n opacity ").concat(e.motionDurationMid," ").concat(e.motionEaseInOut," !important")}}}),Ua="undefined"!==typeof CSSINJS_STATISTIC;let Xa=!0;function Ga(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Ua)return Object.assign.apply(Object,[{}].concat(t));Xa=!1;const o={};return t.forEach((e=>{Object.keys(e).forEach((t=>{Object.defineProperty(o,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),Xa=!0,o}const $a={};function Ya(){}const Qa=e=>{let t,n=e,o=Ya;return Ua&&"undefined"!==typeof Proxy&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(Xa&&t.add(n),e[n])}),o=(e,n)=>{var o;$a[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(o=$a[e])||void 0===o?void 0:o.component),n)}}),{token:n,keys:t,flush:o}};function Ja(e){var t=o.useRef();t.current=e;var n=o.useCallback((function(){for(var e,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(o))}),[]);return n}function Za(e){return void 0!==e}function el(e,t){var n=t||{},o=n.defaultValue,r=n.value,i=n.onChange,a=n.postState,l=We(ft((function(){return Za(r)?r:Za(o)?"function"===typeof o?o():o:"function"===typeof e?e():e})),2),c=l[0],s=l[1],u=void 0!==r?r:c,d=a?a(u):u,f=Ja(i),p=We(ft([u]),2),h=p[0],m=p[1];return Jr((function(){var e=h[0];c!==e&&f(c,e)}),[h]),Jr((function(){Za(r)||s(r)}),[r]),[d,Ja((function(e,t){s(e,t),m([u],t)}))]}const tl="anticon",nl=o.createContext({getPrefixCls:(e,t)=>t||(e?"ant-".concat(e):"ant"),iconPrefixCls:tl}),{Consumer:ol}=nl,rl="5.14.1";function il(e,t){(function(e){return"string"===typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"===typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function al(e){return Math.min(1,Math.max(0,e))}function ll(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function cl(e){return e<=1?"".concat(100*Number(e),"%"):e}function sl(e){return 1===e.length?"0"+e:String(e)}function ul(e,t,n){e=il(e,255),t=il(t,255),n=il(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),i=0,a=0,l=(o+r)/2;if(o===r)a=0,i=0;else{var c=o-r;switch(a=l>.5?c/(2-o-r):c/(o+r),o){case e:i=(t-n)/c+(t<n?6:0);break;case t:i=(n-e)/c+2;break;case n:i=(e-t)/c+4}i/=6}return{h:i,s:a,l:l}}function dl(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function fl(e,t,n){e=il(e,255),t=il(t,255),n=il(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),i=0,a=o,l=o-r,c=0===o?0:l/o;if(o===r)i=0;else{switch(o){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return{h:i,s:c,v:a}}function pl(e,t,n,o){var r=[sl(Math.round(e).toString(16)),sl(Math.round(t).toString(16)),sl(Math.round(n).toString(16))];return o&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function hl(e){return Math.round(255*parseFloat(e)).toString(16)}function ml(e){return gl(e)/255}function gl(e){return parseInt(e,16)}var vl={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 bl(e){var t,n,o,r={r:0,g:0,b:0},i=1,a=null,l=null,c=null,s=!1,u=!1;return"string"===typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(vl[e])e=vl[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=Sl.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=Sl.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=Sl.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=Sl.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=Sl.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=Sl.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=Sl.hex8.exec(e),n)return{r:gl(n[1]),g:gl(n[2]),b:gl(n[3]),a:ml(n[4]),format:t?"name":"hex8"};if(n=Sl.hex6.exec(e),n)return{r:gl(n[1]),g:gl(n[2]),b:gl(n[3]),format:t?"name":"hex"};if(n=Sl.hex4.exec(e),n)return{r:gl(n[1]+n[1]),g:gl(n[2]+n[2]),b:gl(n[3]+n[3]),a:ml(n[4]+n[4]),format:t?"name":"hex8"};if(n=Sl.hex3.exec(e),n)return{r:gl(n[1]+n[1]),g:gl(n[2]+n[2]),b:gl(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"===typeof e&&(Cl(e.r)&&Cl(e.g)&&Cl(e.b)?(t=e.r,n=e.g,o=e.b,r={r:255*il(t,255),g:255*il(n,255),b:255*il(o,255)},s=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):Cl(e.h)&&Cl(e.s)&&Cl(e.v)?(a=cl(e.s),l=cl(e.v),r=function(e,t,n){e=6*il(e,360),t=il(t,100),n=il(n,100);var o=Math.floor(e),r=e-o,i=n*(1-t),a=n*(1-r*t),l=n*(1-(1-r)*t),c=o%6;return{r:255*[n,a,i,i,l,n][c],g:255*[l,n,n,a,i,i][c],b:255*[i,i,l,n,n,a][c]}}(e.h,a,l),s=!0,u="hsv"):Cl(e.h)&&Cl(e.s)&&Cl(e.l)&&(a=cl(e.s),c=cl(e.l),r=function(e,t,n){var o,r,i;if(e=il(e,360),t=il(t,100),n=il(n,100),0===t)r=n,i=n,o=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=dl(l,a,e+1/3),r=dl(l,a,e),i=dl(l,a,e-1/3)}return{r:255*o,g:255*r,b:255*i}}(e.h,a,c),s=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(i=e.a)),i=ll(i),{ok:s,format:e.format||u,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:i}}var yl="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),wl="[\\s|\\(]+(".concat(yl,")[,|\\s]+(").concat(yl,")[,|\\s]+(").concat(yl,")\\s*\\)?"),xl="[\\s|\\(]+(".concat(yl,")[,|\\s]+(").concat(yl,")[,|\\s]+(").concat(yl,")[,|\\s]+(").concat(yl,")\\s*\\)?"),Sl={CSS_UNIT:new RegExp(yl),rgb:new RegExp("rgb"+wl),rgba:new RegExp("rgba"+xl),hsl:new RegExp("hsl"+wl),hsla:new RegExp("hsla"+xl),hsv:new RegExp("hsv"+wl),hsva:new RegExp("hsva"+xl),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 Cl(e){return Boolean(Sl.CSS_UNIT.exec(String(e)))}var kl=2,El=.16,Ol=.05,_l=.05,Pl=.15,Ml=5,Nl=4,Il=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Rl(e){var t=fl(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function Tl(e){var t=e.r,n=e.g,o=e.b;return"#".concat(pl(t,n,o,!1))}function jl(e,t,n){var o;return(o=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-kl*t:Math.round(e.h)+kl*t:n?Math.round(e.h)+kl*t:Math.round(e.h)-kl*t)<0?o+=360:o>=360&&(o-=360),o}function Al(e,t,n){return 0===e.h&&0===e.s?e.s:((o=n?e.s-El*t:t===Nl?e.s+El:e.s+Ol*t)>1&&(o=1),n&&t===Ml&&o>.1&&(o=.1),o<.06&&(o=.06),Number(o.toFixed(2)));var o}function zl(e,t,n){var o;return(o=n?e.v+_l*t:e.v-Pl*t)>1&&(o=1),Number(o.toFixed(2))}function Ll(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],o=bl(e),r=Ml;r>0;r-=1){var i=Rl(o),a=Tl(bl({h:jl(i,r,!0),s:Al(i,r,!0),v:zl(i,r,!0)}));n.push(a)}n.push(Tl(o));for(var l=1;l<=Nl;l+=1){var c=Rl(o),s=Tl(bl({h:jl(c,l),s:Al(c,l),v:zl(c,l)}));n.push(s)}return"dark"===t.theme?Il.map((function(e){var o=e.index,r=e.opacity;return Tl(function(e,t,n){var o=n/100;return{r:(t.r-e.r)*o+e.r,g:(t.g-e.g)*o+e.g,b:(t.b-e.b)*o+e.b}}(bl(t.backgroundColor||"#141414"),bl(n[o]),100*r))})):n}var Dl={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"},Bl={},Fl={};Object.keys(Dl).forEach((function(e){Bl[e]=Ll(Dl[e]),Bl[e].primary=Bl[e][5],Fl[e]=Ll(Dl[e],{theme:"dark",backgroundColor:"#141414"}),Fl[e].primary=Fl[e][5]}));Bl.red,Bl.volcano;var Hl=Bl.gold,Wl=(Bl.orange,Bl.yellow,Bl.lime,Bl.green,Bl.cyan,Bl.blue);Bl.geekblue,Bl.purple,Bl.magenta,Bl.grey,Bl.grey;const Vl=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};const Kl={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"},ql=Object.assign(Object.assign({},Kl),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});var Ul=function(){function e(t,n){var o;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"===typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var r=bl(t);this.originalInput=t,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=n.format)&&void 0!==o?o:r.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=r.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,o=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=ll(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=fl(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=fl(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=ul(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=ul(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),pl(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,o,r){var i=[sl(Math.round(e).toString(16)),sl(Math.round(t).toString(16)),sl(Math.round(n).toString(16)),sl(hl(o))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},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 e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*il(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*il(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+pl(this.r,this.g,this.b,!1),t=0,n=Object.entries(vl);t<n.length;t++){var o=n[t],r=o[0];if(e===o[1])return r}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!==e&&void 0!==e?e:this.format;var n=!1,o=this.a<1&&this.a>=0;return t||!o||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},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){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=al(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=al(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=al(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=al(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var o=this.toRgb(),r=new e(t).toRgb(),i=n/100;return new e({r:(r.r-o.r)*i+o.r,g:(r.g-o.g)*i+o.g,b:(r.b-o.b)*i+o.b,a:(r.a-o.a)*i+o.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var o=this.toHsl(),r=360/n,i=[this];for(o.h=(o.h-(r*t>>1)+720)%360;--t;)o.h=(o.h+r)%360,i.push(new e(o));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){void 0===t&&(t=6);for(var n=this.toHsv(),o=n.h,r=n.s,i=n.v,a=[],l=1/t;t--;)a.push(new e({h:o,s:r,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(),o=new e(t).toRgb(),r=n.a+o.a*(1-n.a);return new e({r:(n.r*n.a+o.r*o.a*(1-n.a))/r,g:(n.g*n.a+o.g*o.a*(1-n.a))/r,b:(n.b*n.a+o.b*o.a*(1-n.a))/r,a:r})},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(),o=n.h,r=[this],i=360/t,a=1;a<t;a++)r.push(new e({h:(o+a*i)%360,s:n.s,l:n.l}));return r},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function Xl(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:o}=t;const{colorSuccess:r,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:c,colorBgBase:s,colorTextBase:u}=e,d=n(c),f=n(r),p=n(i),h=n(a),m=n(l),g=o(s,u),v=n(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},g),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:v[4],colorLink:v[6],colorLinkActive:v[7],colorBgMask:new Ul("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const Gl=e=>{let t=e,n=e,o=e,r=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?o=1:e>=6&&(o=2),e>4&&e<8?r=4:e>=8&&(r=6),{borderRadius:e,borderRadiusXS:o,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:r}};const $l=(e,t)=>new Ul(e).setAlpha(t).toRgbString(),Yl=(e,t)=>new Ul(e).darken(t).toHexString(),Ql=e=>{const t=Ll(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]}},Jl=(e,t)=>{const n=e||"#fff",o=t||"#000";return{colorBgBase:n,colorTextBase:o,colorText:$l(o,.88),colorTextSecondary:$l(o,.65),colorTextTertiary:$l(o,.45),colorTextQuaternary:$l(o,.25),colorFill:$l(o,.15),colorFillSecondary:$l(o,.06),colorFillTertiary:$l(o,.04),colorFillQuaternary:$l(o,.02),colorBgLayout:Yl(n,4),colorBgContainer:Yl(n,0),colorBgElevated:Yl(n,0),colorBgSpotlight:$l(o,.85),colorBgBlur:"transparent",colorBorder:Yl(n,15),colorBorderSecondary:Yl(n,6)}};function Zl(e){return(e+8)/e}const ec=e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const o=n-1,r=e*Math.pow(2.71828,o/5),i=n>1?Math.floor(r):Math.ceil(r);return 2*Math.floor(i/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:Zl(e)})))}(e),n=t.map((e=>e.size)),o=t.map((e=>e.lineHeight)),r=n[1],i=n[0],a=n[2],l=o[1],c=o[0],s=o[2];return{fontSizeSM:i,fontSize:r,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:s,lineHeightSM:c,fontHeight:Math.round(l*r),fontHeightLG:Math.round(s*a),fontHeightSM:Math.round(c*i),lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}};function tc(e){const t=Object.keys(Kl).map((t=>{const n=Ll(e[t]);return new Array(10).fill(1).reduce(((e,o,r)=>(e["".concat(t,"-").concat(r+1)]=n[r],e["".concat(t).concat(r+1)]=n[r],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),Xl(e,{generateColorPalettes:Ql,generateNeutralColorPalettes:Jl})),ec(e.fontSize)),function(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)}}(e)),Vl(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:o,lineWidth:r}=e;return Object.assign({motionDurationFast:"".concat((n+t).toFixed(1),"s"),motionDurationMid:"".concat((n+2*t).toFixed(1),"s"),motionDurationSlow:"".concat((n+3*t).toFixed(1),"s"),lineWidthBold:r+1},Gl(o))}(e))}const nc=jr(tc),oc={token:ql,override:{override:ql},hashed:!0},rc=o.createContext(oc);function ic(e){return e>=0&&e<=255}const ac=function(e,t){const{r:n,g:o,b:r,a:i}=new Ul(e).toRgb();if(i<1)return e;const{r:a,g:l,b:c}=new Ul(t).toRgb();for(let s=.01;s<=1;s+=.01){const e=Math.round((n-a*(1-s))/s),t=Math.round((o-l*(1-s))/s),i=Math.round((r-c*(1-s))/s);if(ic(e)&&ic(t)&&ic(i))return new Ul({r:e,g:t,b:i,a:Math.round(100*s)/100}).toRgbString()}return new Ul({r:n,g:o,b:r,a:1}).toRgbString()};var lc=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function cc(e){const{override:t}=e,n=lc(e,["override"]),o=Object.assign({},t);Object.keys(ql).forEach((e=>{delete o[e]}));const r=Object.assign(Object.assign({},n),o),i=1200,a=1600;if(!1===r.motion){const e="0s";r.motionDurationFast=e,r.motionDurationMid=e,r.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},r),{colorFillContent:r.colorFillSecondary,colorFillContentHover:r.colorFill,colorFillAlter:r.colorFillQuaternary,colorBgContainerDisabled:r.colorFillTertiary,colorBorderBg:r.colorBgContainer,colorSplit:ac(r.colorBorderSecondary,r.colorBgContainer),colorTextPlaceholder:r.colorTextQuaternary,colorTextDisabled:r.colorTextQuaternary,colorTextHeading:r.colorText,colorTextLabel:r.colorTextSecondary,colorTextDescription:r.colorTextTertiary,colorTextLightSolid:r.colorWhite,colorHighlight:r.colorError,colorBgTextHover:r.colorFillSecondary,colorBgTextActive:r.colorFill,colorIcon:r.colorTextTertiary,colorIconHover:r.colorText,colorErrorOutline:ac(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:ac(r.colorWarningBg,r.colorBgContainer),fontSizeIcon:r.fontSizeSM,lineWidthFocus:4*r.lineWidth,lineWidth:r.lineWidth,controlOutlineWidth:2*r.lineWidth,controlInteractiveSize:r.controlHeight/2,controlItemBgHover:r.colorFillTertiary,controlItemBgActive:r.colorPrimaryBg,controlItemBgActiveHover:r.colorPrimaryBgHover,controlItemBgActiveDisabled:r.colorFill,controlTmpOutline:r.colorFillQuaternary,controlOutline:ac(r.colorPrimaryBg,r.colorBgContainer),lineType:r.lineType,borderRadius:r.borderRadius,borderRadiusXS:r.borderRadiusXS,borderRadiusSM:r.borderRadiusSM,borderRadiusLG:r.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:r.sizeXXS,paddingXS:r.sizeXS,paddingSM:r.sizeSM,padding:r.size,paddingMD:r.sizeMD,paddingLG:r.sizeLG,paddingXL:r.sizeXL,paddingContentHorizontalLG:r.sizeLG,paddingContentVerticalLG:r.sizeMS,paddingContentHorizontal:r.sizeMS,paddingContentVertical:r.sizeSM,paddingContentHorizontalSM:r.size,paddingContentVerticalSM:r.sizeXS,marginXXS:r.sizeXXS,marginXS:r.sizeXS,marginSM:r.sizeSM,margin:r.size,marginMD:r.sizeMD,marginLG:r.sizeLG,marginXL:r.sizeXL,marginXXL:r.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:i,screenXLMin:i,screenXLMax:1599,screenXXL:a,screenXXLMin:a,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:"\n 0 1px 2px -2px ".concat(new Ul("rgba(0, 0, 0, 0.16)").toRgbString(),",\n 0 3px 6px 0 ").concat(new Ul("rgba(0, 0, 0, 0.12)").toRgbString(),",\n 0 5px 12px 4px ").concat(new Ul("rgba(0, 0, 0, 0.09)").toRgbString(),"\n "),boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",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)"}),o)}var sc=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const uc={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0},dc={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},fc={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},pc=(e,t,n)=>{const o=n.getDerivativeToken(e),{override:r}=t,i=sc(t,["override"]);let a=Object.assign(Object.assign({},o),{override:r});return a=cc(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:o}=n,r=sc(n,["theme"]);let i=r;o&&(i=pc(Object.assign(Object.assign({},a),r),{override:r},o)),a[t]=i})),a};function hc(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=o.useContext(rc),a="".concat(rl,"-").concat(t||""),l=n||nc,[c,s,u]=pi(l,[ql,e],{salt:a,override:r,getComputedToken:pc,formatToken:cc,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:uc,ignore:dc,preserve:fc}});return[l,u,t?s:"",c,i]}const mc=ot((function e(){tt(this,e)}));let gc=function(e){function t(e){var n;return tt(this,t),n=function(e,t,n){return t=at(t),st(e,lt()?Reflect.construct(t,n||[],at(e).constructor):t.apply(e,n))}(this,t),n.result=0,e instanceof t?n.result=e.result:"number"===typeof e&&(n.result=e),n}return it(t,e),ot(t,[{key:"add",value:function(e){return e instanceof t?this.result+=e.result:"number"===typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof t?this.result-=e.result:"number"===typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof t?this.result*=e.result:"number"===typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof t?this.result/=e.result:"number"===typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),t}(mc);const vc="CALC_UNIT";function bc(e){return"number"===typeof e?"".concat(e).concat(vc):e}let yc=function(e){function t(e){var n;return tt(this,t),n=function(e,t,n){return t=at(t),st(e,lt()?Reflect.construct(t,n||[],at(e).constructor):t.apply(e,n))}(this,t),n.result="",e instanceof t?n.result="(".concat(e.result,")"):"number"===typeof e?n.result=bc(e):"string"===typeof e&&(n.result=e),n}return it(t,e),ot(t,[{key:"add",value:function(e){return e instanceof t?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," + ").concat(bc(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof t?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," - ").concat(bc(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof t?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof t?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){const{unit:t=!0}=e||{},n=new RegExp("".concat(vc),"g");return this.result=this.result.replace(n,t?"px":""),"undefined"!==typeof this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),t}(mc);const wc=e=>{const t="css"===e?yc:gc;return e=>new t(e)};const xc=(e,t)=>{const[n,o]=hc();return ma({theme:n,token:o,hashId:"",path:["ant-design-icons",e],nonce:()=>null===t||void 0===t?void 0:t.nonce},(()=>[{[".".concat(e)]:Object.assign(Object.assign({},{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"}}),{[".".concat(e," .").concat(e,"-icon")]:{display:"block"}})}]))},Sc=(e,t,n)=>{var o;return"function"===typeof n?n(Ga(t,null!==(o=t[e])&&void 0!==o?o:{})):null!==n&&void 0!==n?n:{}},Cc=(e,t,n,o)=>{const r=Object.assign({},t[e]);if(null===o||void 0===o?void 0:o.deprecatedTokens){const{deprecatedTokens:e}=o;e.forEach((e=>{let[t,n]=e;var o;((null===r||void 0===r?void 0:r[t])||(null===r||void 0===r?void 0:r[n]))&&(null!==(o=r[n])&&void 0!==o||(r[n]=null===r||void 0===r?void 0:r[t]))}))}const i=Object.assign(Object.assign({},n),r);return Object.keys(i).forEach((e=>{i[e]===t[e]&&delete i[e]})),i};function kc(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=Array.isArray(e)?e:[e,e],[a]=i,l=i.join("-");return function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const[c,s,u,d,f]=hc(),{getPrefixCls:p,iconPrefixCls:h,csp:m}=(0,o.useContext)(nl),g=p(),v=f?"css":"js",b=wc(v),{max:y,min:w}=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"max(".concat(t.map((e=>qr(e))).join(","),")")},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"min(".concat(t.map((e=>qr(e))).join(","),")")}}}(v),x={theme:c,token:d,hashId:u,nonce:()=>null===m||void 0===m?void 0:m.nonce,clientOnly:r.clientOnly,order:r.order||-999};ma(Object.assign(Object.assign({},x),{clientOnly:!1,path:["Shared",g]}),(()=>[{"&":ka(d)}])),xc(h,m);const S=ma(Object.assign(Object.assign({},x),{path:[l,e,h]}),(()=>{if(!1===r.injectStyle)return[];const{token:o,flush:l}=Qa(d),c=Sc(a,s,n),p=".".concat(e),m=Cc(a,s,c,{deprecatedTokens:r.deprecatedTokens});f&&Object.keys(c).forEach((e=>{c[e]="var(".concat(Xr(e,((e,t)=>"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")))(a,f.prefix)),")")}));const v=Ga(o,{componentCls:p,prefixCls:e,iconCls:".".concat(h),antCls:".".concat(g),calc:b,max:y,min:w},f?c:m),x=t(v,{hashId:u,prefixCls:e,rootPrefixCls:g,iconPrefixCls:h});return l(a,m),[!1===r.resetStyle?null:Ea(v,e,i),x]}));return[S,u]}}const Ec=(e,t,n,o)=>{const r=kc(e,t,n,Object.assign({resetStyle:!1,order:-998},o));return e=>{let{prefixCls:t,rootCls:n=t}=e;return r(t,n),null}},Oc=(e,t,n,r)=>{const i=kc(e,t,n,r),a=((e,t,n)=>{function r(t){return"".concat(e).concat(t.slice(0,1).toUpperCase()).concat(t.slice(1))}const{unitless:i={},injectStyle:a=!0}=null!==n&&void 0!==n?n:{},l={[r("zIndexPopup")]:!0};Object.keys(i).forEach((e=>{l[r(e)]=i[e]}));const c=o=>{let{rootCls:i,cssVar:a}=o;const[,c]=hc();return va({path:[e],prefix:a.prefix,key:null===a||void 0===a?void 0:a.key,unitless:Object.assign(Object.assign({},uc),l),ignore:dc,token:c,scope:i},(()=>{const o=Sc(e,c,t),i=Cc(e,c,o,{deprecatedTokens:null===n||void 0===n?void 0:n.deprecatedTokens});return Object.keys(o).forEach((e=>{i[r(e)]=i[e],delete i[e]})),i})),null};return t=>{const[,,,,n]=hc();return[r=>a&&n?o.createElement(o.Fragment,null,o.createElement(c,{rootCls:t,cssVar:n,component:e}),r):r,null===n||void 0===n?void 0:n.key]}})(Array.isArray(e)?e[0]:e,n,r);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const[,n]=i(e,t),[o,r]=a(t);return[o,n,r]}},_c=e=>{const{componentCls:t}=e,n="".concat(t,"-show-help"),o="".concat(t,"-show-help-item");return{[n]:{transition:"opacity ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOut),"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[o]:{overflow:"hidden",transition:"height ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOut,",\n opacity ").concat(e.motionDurationSlow," ").concat(e.motionEaseInOut,",\n transform ").concat(e.motionDurationSlow," ").concat(e.motionEaseInOut," !important"),["&".concat(o,"-appear, &").concat(o,"-enter")]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},["&".concat(o,"-leave-active")]:{transform:"translateY(-5px)"}}}}},Pc=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:"".concat(qr(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder)},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:"0 0 0 ".concat(qr(e.controlOutlineWidth)," ").concat(e.controlOutline)},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Mc=(e,t)=>{const{formItemCls:n}=e;return{[n]:{["".concat(n,"-label > label")]:{height:t},["".concat(n,"-control-input")]:{minHeight:t}}}},Nc=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Ca(e)),Pc(e)),{["".concat(t,"-text")]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},Mc(e,e.controlHeightSM)),"&-large":Object.assign({},Mc(e,e.controlHeightLG))})}},Ic=e=>{const{formItemCls:t,iconCls:n,componentCls:o,rootPrefixCls:r,labelRequiredMarkColor:i,labelColor:a,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:s,labelColonMarginInlineEnd:u,itemMarginBottom:d}=e;return{[t]:Object.assign(Object.assign({},Ca(e)),{marginBottom:d,verticalAlign:"top","&-with-help":{transition:"none"},["&-hidden,\n &-hidden.".concat(r,"-row")]:{display:"none"},"&-has-warning":{["".concat(t,"-split")]:{color:e.colorError}},"&-has-error":{["".concat(t,"-split")]:{color:e.colorWarning}},["".concat(t,"-label")]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:a,fontSize:l,["> ".concat(n)]:{fontSize:e.fontSize,verticalAlign:"top"},["&".concat(t,"-required:not(").concat(t,"-required-mark-optional)::before")]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:i,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',["".concat(o,"-hide-required-mark &")]:{display:"none"}},["".concat(t,"-optional")]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,["".concat(o,"-hide-required-mark &")]:{display:"none"}},["".concat(t,"-tooltip")]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:s,marginInlineEnd:u},["&".concat(t,"-no-colon::after")]:{content:'"\\a0"'}}},["".concat(t,"-control")]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,["&:first-child:not([class^=\"'".concat(r,"-col-'\"]):not([class*=\"' ").concat(r,"-col-'\"])")]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:"color ".concat(e.motionDurationMid," ").concat(e.motionEaseOut)},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},["&-with-help ".concat(t,"-explain")]:{height:"auto",opacity:1},["".concat(t,"-feedback-icon")]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:Ia,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},Rc=e=>{const{componentCls:t,formItemCls:n}=e;return{["".concat(t,"-horizontal")]:{["".concat(n,"-label")]:{flexGrow:0},["".concat(n,"-control")]:{flex:"1 1 0",minWidth:0},["".concat(n,"-label[class$='-24'], ").concat(n,"-label[class*='-24 ']")]:{["& + ".concat(n,"-control")]:{minWidth:"unset"}}}}},Tc=e=>{const{componentCls:t,formItemCls:n}=e;return{["".concat(t,"-inline")]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},["> ".concat(n,"-label,\n > ").concat(n,"-control")]:{display:"inline-block",verticalAlign:"top"},["> ".concat(n,"-label")]:{flex:"none"},["".concat(t,"-text")]:{display:"inline-block"},["".concat(n,"-has-feedback")]:{display:"inline-block"}}}}},jc=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Ac=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:o}=e;return{["".concat(n," ").concat(n,"-label")]:jc(e),["".concat(t,":not(").concat(t,"-inline)")]:{[n]:{flexWrap:"wrap",["".concat(n,"-label, ").concat(n,"-control")]:{['&:not([class*=" '.concat(o,'-col-xs"])')]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},zc=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:o}=e;return{["".concat(t,"-vertical")]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},["".concat(t,"-item-control")]:{width:"100%"}}},["".concat(t,"-vertical ").concat(n,"-label,\n .").concat(o,"-col-24").concat(n,"-label,\n .").concat(o,"-col-xl-24").concat(n,"-label")]:jc(e),["@media (max-width: ".concat(qr(e.screenXSMax),")")]:[Ac(e),{[t]:{[".".concat(o,"-col-xs-24").concat(n,"-label")]:jc(e)}}],["@media (max-width: ".concat(qr(e.screenSMMax),")")]:{[t]:{[".".concat(o,"-col-sm-24").concat(n,"-label")]:jc(e)}},["@media (max-width: ".concat(qr(e.screenMDMax),")")]:{[t]:{[".".concat(o,"-col-md-24").concat(n,"-label")]:jc(e)}},["@media (max-width: ".concat(qr(e.screenLGMax),")")]:{[t]:{[".".concat(o,"-col-lg-24").concat(n,"-label")]:jc(e)}}}},Lc=(e,t)=>Ga(e,{formItemCls:"".concat(e.componentCls,"-item"),rootPrefixCls:t}),Dc=Oc("Form",((e,t)=>{let{rootPrefixCls:n}=t;const o=Lc(e,n);return[Nc(o),Ic(o),_c(o),Rc(o),Tc(o),zc(o),qa(o),Ia]}),(e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:"0 0 ".concat(e.paddingXS,"px"),verticalLabelMargin:0})),{order:-1e3}),Bc=e=>{const[,,,,t]=hc();return t?"".concat(e,"-css-var"):""},Fc=[];function Hc(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return{key:"string"===typeof e?e:"".concat(t,"-").concat(o),error:e,errorStatus:n}}const Wc=e=>{let{help:t,helpStatus:n,errors:r=Fc,warnings:i=Fc,className:a,fieldId:l,onVisibleChanged:c}=e;const{prefixCls:s}=o.useContext(or),u="".concat(s,"-item-explain"),d=Bc(s),[f,p,h]=Dc(s,d),m=(0,o.useMemo)((()=>gn(s)),[s]),g=lr(r),v=lr(i),b=o.useMemo((()=>void 0!==t&&null!==t?[Hc(t,"help",n)]:[].concat(Re(g.map(((e,t)=>Hc(e,"error","error",t)))),Re(v.map(((e,t)=>Hc(e,"warning","warning",t)))))),[t,n,g,v]),y={};return l&&(y.id="".concat(l,"_help")),f(o.createElement(un,{motionDeadline:m.motionDeadline,motionName:"".concat(s,"-show-help"),visible:!!b.length,onVisibleChanged:c},(e=>{const{className:t,style:n}=e;return o.createElement("div",Object.assign({},y,{className:je()(u,t,h,d,a,p),style:n,role:"alert"}),o.createElement(sn,Object.assign({keys:b},gn(s),{motionName:"".concat(s,"-show-help-item"),component:!1}),(e=>{const{key:t,error:n,errorStatus:r,className:i,style:a}=e;return o.createElement("div",{key:t,className:je()(i,{["".concat(u,"-").concat(r)]:r}),style:a},n)})))})))},Vc=o.createContext(!1),Kc=e=>{let{children:t,disabled:n}=e;const r=o.useContext(Vc);return o.createElement(Vc.Provider,{value:null!==n&&void 0!==n?n:r},t)},qc=Vc,Uc=o.createContext(void 0),Xc=e=>{let{children:t,size:n}=e;const r=o.useContext(Uc);return o.createElement(Uc.Provider,{value:n||r},t)},Gc=Uc,$c=e=>{const t=o.useContext(Gc);return o.useMemo((()=>e?"string"===typeof e?null!==e&&void 0!==e?e:t:e instanceof Function?e(t):t:t),[e,t])},Yc=e=>"object"==typeof e&&null!=e&&1===e.nodeType,Qc=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,Jc=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return Qc(n.overflowY,t)||Qc(n.overflowX,t)||(e=>{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},Zc=(e,t,n,o,r,i,a,l)=>i<e&&a>t||i>e&&a<t?0:i<=e&&l<=n||a>=t&&l>=n?i-e-o:a>t&&l<n||i<e&&l>n?a-t+r:0,es=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},ts=(e,t)=>{var n,o,r,i;if("undefined"==typeof document)return[];const{scrollMode:a,block:l,inline:c,boundary:s,skipOverflowHiddenElements:u}=t,d="function"==typeof s?s:e=>e!==s;if(!Yc(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,p=[];let h=e;for(;Yc(h)&&d(h);){if(h=es(h),h===f){p.push(h);break}null!=h&&h===document.body&&Jc(h)&&!Jc(document.documentElement)||null!=h&&Jc(h,u)&&p.push(h)}const m=null!=(o=null==(n=window.visualViewport)?void 0:n.width)?o:innerWidth,g=null!=(i=null==(r=window.visualViewport)?void 0:r.height)?i:innerHeight,{scrollX:v,scrollY:b}=window,{height:y,width:w,top:x,right:S,bottom:C,left:k}=e.getBoundingClientRect(),{top:E,right:O,bottom:_,left:P}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let M="start"===l||"nearest"===l?x-E:"end"===l?C+_:x+y/2-E+_,N="center"===c?k+w/2-P+O:"end"===c?S+O:k-P;const I=[];for(let R=0;R<p.length;R++){const e=p[R],{height:t,width:n,top:o,right:r,bottom:i,left:s}=e.getBoundingClientRect();if("if-needed"===a&&x>=0&&k>=0&&C<=g&&S<=m&&x>=o&&C<=i&&k>=s&&S<=r)return I;const u=getComputedStyle(e),d=parseInt(u.borderLeftWidth,10),h=parseInt(u.borderTopWidth,10),E=parseInt(u.borderRightWidth,10),O=parseInt(u.borderBottomWidth,10);let _=0,P=0;const T="offsetWidth"in e?e.offsetWidth-e.clientWidth-d-E:0,j="offsetHeight"in e?e.offsetHeight-e.clientHeight-h-O:0,A="offsetWidth"in e?0===e.offsetWidth?0:n/e.offsetWidth:0,z="offsetHeight"in e?0===e.offsetHeight?0:t/e.offsetHeight:0;if(f===e)_="start"===l?M:"end"===l?M-g:"nearest"===l?Zc(b,b+g,g,h,O,b+M,b+M+y,y):M-g/2,P="start"===c?N:"center"===c?N-m/2:"end"===c?N-m:Zc(v,v+m,m,d,E,v+N,v+N+w,w),_=Math.max(0,_+b),P=Math.max(0,P+v);else{_="start"===l?M-o-h:"end"===l?M-i+O+j:"nearest"===l?Zc(o,i,t,h,O+j,M,M+y,y):M-(o+t/2)+j/2,P="start"===c?N-s-d:"center"===c?N-(s+n/2)+T/2:"end"===c?N-r+E+T:Zc(s,r,n,d,E+T,N,N+w,w);const{scrollLeft:a,scrollTop:u}=e;_=0===z?0:Math.max(0,Math.min(u+_/z,e.scrollHeight-t/z+j)),P=0===A?0:Math.max(0,Math.min(a+P/A,e.scrollWidth-n/A+T)),M+=u-_,N+=a-P}I.push({el:e,top:_,left:P})}return I},ns=e=>!1===e?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&0!==Object.keys(e).length)(e)?e:{block:"start",inline:"nearest"};const os=["parentNode"],rs="form_item";function is(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function as(e,t){if(!e.length)return;const n=e.join("_");if(t)return"".concat(t,"_").concat(n);return os.includes(n)?"".concat(rs,"_").concat(n):n}function ls(e,t,n,o,r,i){let a=o;return void 0!==i?a=i:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||r&&n.validated)&&(a="success"),a}function cs(e){return is(e).join("_")}function ss(e){const[t]=Wo(),n=o.useRef({}),r=o.useMemo((()=>null!==e&&void 0!==e?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:e=>t=>{const o=cs(e);t?n.current[o]=t:delete n.current[o]}},scrollToField:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=as(is(e),r.__INTERNAL__.name),o=n?document.getElementById(n):null;o&&function(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;const n=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if((e=>"object"==typeof e&&"function"==typeof e.behavior)(t))return t.behavior(ts(e,t));const o="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:r,top:i,left:a}of ts(e,ns(t))){const e=i-n.top+n.bottom,t=a-n.left+n.right;r.scroll({top:e,left:t,behavior:o})}}(o,Object.assign({scrollMode:"if-needed",block:"nearest"},t))},getFieldInstance:e=>{const t=cs(e);return n.current[t]}})),[e,t]);return[r]}const us=(0,o.createContext)(void 0);var ds=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const fs=(e,t)=>{const n=o.useContext(qc),{getPrefixCls:r,direction:i,form:a}=o.useContext(nl),{prefixCls:l,className:c,rootClassName:s,size:u,disabled:d=n,form:f,colon:p,labelAlign:h,labelWrap:m,labelCol:g,wrapperCol:v,hideRequiredMark:b,layout:y="horizontal",scrollToFirstError:w,requiredMark:x,onFinishFailed:S,name:C,style:k,feedbackIcons:E,variant:O}=e,_=ds(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),P=$c(u),M=o.useContext(us);const N=(0,o.useMemo)((()=>void 0!==x?x:!b&&(!a||void 0===a.requiredMark||a.requiredMark)),[b,x,a]),I=null!==p&&void 0!==p?p:null===a||void 0===a?void 0:a.colon,R=r("form",l),T=Bc(R),[j,A,z]=Dc(R,T),L=je()(R,"".concat(R,"-").concat(y),{["".concat(R,"-hide-required-mark")]:!1===N,["".concat(R,"-rtl")]:"rtl"===i,["".concat(R,"-").concat(P)]:P},z,T,A,null===a||void 0===a?void 0:a.className,c,s),[D]=ss(f),{__INTERNAL__:B}=D;B.name=C;const F=(0,o.useMemo)((()=>({name:C,labelAlign:h,labelCol:g,labelWrap:m,wrapperCol:v,vertical:"vertical"===y,colon:I,requiredMark:N,itemRef:B.itemRef,form:D,feedbackIcons:E})),[C,h,g,v,y,I,N,D,E]);o.useImperativeHandle(t,(()=>D));const H=(e,t)=>{if(e){let n={block:"nearest"};"object"===typeof e&&(n=e),D.scrollToField(t,n)}};return j(o.createElement(ar.Provider,{value:O},o.createElement(Kc,{disabled:d},o.createElement(Gc.Provider,{value:P},o.createElement(nr,{validateMessages:M},o.createElement(er.Provider,{value:F},o.createElement(Jo,Object.assign({id:C},_,{name:C,onFinishFailed:e=>{if(null===S||void 0===S||S(e),e.errorFields.length){const t=e.errorFields[0].name;if(void 0!==w)return void H(w,t);a&&void 0!==a.scrollToFirstError&&H(a.scrollToFirstError,t)}},form:D,style:Object.assign(Object.assign({},null===a||void 0===a?void 0:a.style),k),className:L}))))))))};const ps=o.forwardRef(fs),{isValidElement:hs}=r;function ms(e){return e&&hs(e)&&e.type===o.Fragment}function gs(e,t){return function(e,t,n){return hs(e)?o.cloneElement(e,"function"===typeof n?n(e.props||{}):n):t}(e,e,t)}function vs(){}const bs=o.createContext({}),ys=()=>{const e=()=>{};return e.deprecated=vs,e};const ws=()=>{const{status:e,errors:t=[],warnings:n=[]}=(0,o.useContext)(rr);return{status:e,errors:t,warnings:n}};ws.Context=rr;const xs=ws;const Ss=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,o=t.height;if(n||o)return!0}if(e.getBoundingClientRect){var r=e.getBoundingClientRect(),i=r.width,a=r.height;if(i||a)return!0}}return!1},Cs=["xxl","xl","lg","md","sm","xs"],ks=e=>({xs:"(max-width: ".concat(e.screenXSMax,"px)"),sm:"(min-width: ".concat(e.screenSM,"px)"),md:"(min-width: ".concat(e.screenMD,"px)"),lg:"(min-width: ".concat(e.screenLG,"px)"),xl:"(min-width: ".concat(e.screenXL,"px)"),xxl:"(min-width: ".concat(e.screenXXL,"px)")}),Es=e=>{const t=e,n=[].concat(Cs).reverse();return n.forEach(((e,o)=>{const r=e.toUpperCase(),i="screen".concat(r,"Min"),a="screen".concat(r);if(!(t[i]<=t[a]))throw new Error("".concat(i,"<=").concat(a," fails : !(").concat(t[i],"<=").concat(t[a],")"));if(o<n.length-1){const e="screen".concat(r,"Max");if(!(t[a]<=t[e]))throw new Error("".concat(a,"<=").concat(e," fails : !(").concat(t[a],"<=").concat(t[e],")"));const i=n[o+1].toUpperCase(),l="screen".concat(i,"Min");if(!(t[e]<=t[l]))throw new Error("".concat(e,"<=").concat(l," fails : !(").concat(t[e],"<=").concat(t[l],")"))}})),e};function Os(){const[,e]=hc(),t=ks(Es(e));return o.useMemo((()=>{const e=new Map;let n=-1,o={};return{matchHandlers:{},dispatch:t=>(o=t,e.forEach((e=>e(o))),e.size>=1),subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(o),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(t).forEach((e=>{const n=t[e],o=this.matchHandlers[n];null===o||void 0===o||o.mql.removeListener(null===o||void 0===o?void 0:o.listener)})),e.clear()},register(){Object.keys(t).forEach((e=>{const n=t[e],r=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},o),{[e]:n}))},i=window.matchMedia(n);i.addListener(r),this.matchHandlers[n]={mql:i,listener:r},r(i)}))},responsiveMap:t}}),[e])}const _s=(0,o.createContext)({}),Ps=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},Ms=(e,t)=>((e,t)=>{const{prefixCls:n,componentCls:o,gridColumns:r}=e,i={};for(let a=r;a>=0;a--)0===a?(i["".concat(o).concat(t,"-").concat(a)]={display:"none"},i["".concat(o,"-push-").concat(a)]={insetInlineStart:"auto"},i["".concat(o,"-pull-").concat(a)]={insetInlineEnd:"auto"},i["".concat(o).concat(t,"-push-").concat(a)]={insetInlineStart:"auto"},i["".concat(o).concat(t,"-pull-").concat(a)]={insetInlineEnd:"auto"},i["".concat(o).concat(t,"-offset-").concat(a)]={marginInlineStart:0},i["".concat(o).concat(t,"-order-").concat(a)]={order:0}):(i["".concat(o).concat(t,"-").concat(a)]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:"0 0 ".concat(a/r*100,"%"),maxWidth:"".concat(a/r*100,"%")}],i["".concat(o).concat(t,"-push-").concat(a)]={insetInlineStart:"".concat(a/r*100,"%")},i["".concat(o).concat(t,"-pull-").concat(a)]={insetInlineEnd:"".concat(a/r*100,"%")},i["".concat(o).concat(t,"-offset-").concat(a)]={marginInlineStart:"".concat(a/r*100,"%")},i["".concat(o).concat(t,"-order-").concat(a)]={order:a});return i["".concat(o).concat(t,"-flex")]={flex:"var(--".concat(n).concat(t,"-flex)")},i})(e,t),Ns=Oc("Grid",(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"}}}}),(()=>({}))),Is=Oc("Grid",(e=>{const t=Ga(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[Ps(t),Ms(t,""),Ms(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({["@media (min-width: ".concat(qr(t),")")]:Object.assign({},Ms(e,n))}))(t,n[e],e))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}),(()=>({})));var Rs=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function Ts(e,t){const[n,r]=o.useState("string"===typeof e?e:"");return o.useEffect((()=>{(()=>{if("string"===typeof e&&r(e),"object"===typeof e)for(let n=0;n<Cs.length;n++){const o=Cs[n];if(!t[o])continue;const i=e[o];if(void 0!==i)return void r(i)}})()}),[JSON.stringify(e),t]),n}const js=o.forwardRef(((e,t)=>{const{prefixCls:n,justify:r,align:i,className:a,style:l,children:c,gutter:s=0,wrap:u}=e,d=Rs(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:p}=o.useContext(nl),[h,m]=o.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[g,v]=o.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),b=Ts(i,g),y=Ts(r,g),w=o.useRef(s),x=Os();o.useEffect((()=>{const e=x.subscribe((e=>{v(e);const t=w.current||0;(!Array.isArray(t)&&"object"===typeof t||Array.isArray(t)&&("object"===typeof t[0]||"object"===typeof t[1]))&&m(e)}));return()=>x.unsubscribe(e)}),[]);const S=f("row",n),[C,k,E]=Ns(S),O=(()=>{const e=[void 0,void 0];return(Array.isArray(s)?s:[s,void 0]).forEach(((t,n)=>{if("object"===typeof t)for(let o=0;o<Cs.length;o++){const r=Cs[o];if(h[r]&&void 0!==t[r]){e[n]=t[r];break}}else e[n]=t})),e})(),_=je()(S,{["".concat(S,"-no-wrap")]:!1===u,["".concat(S,"-").concat(y)]:y,["".concat(S,"-").concat(b)]:b,["".concat(S,"-rtl")]:"rtl"===p},a,k,E),P={},M=null!=O[0]&&O[0]>0?O[0]/-2:void 0;M&&(P.marginLeft=M,P.marginRight=M),[,P.rowGap]=O;const[N,I]=O,R=o.useMemo((()=>({gutter:[N,I],wrap:u})),[N,I,u]);return C(o.createElement(_s.Provider,{value:R},o.createElement("div",Object.assign({},d,{className:_,style:Object.assign(Object.assign({},P),l),ref:t}),c)))}));const As=js;var zs=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function Ls(e){return"number"===typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}const Ds=["xs","sm","md","lg","xl","xxl"],Bs=o.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r}=o.useContext(nl),{gutter:i,wrap:a}=o.useContext(_s),{prefixCls:l,span:c,order:s,offset:u,push:d,pull:f,className:p,children:h,flex:m,style:g}=e,v=zs(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),b=n("col",l),[y,w,x]=Is(b),S={};let C={};Ds.forEach((t=>{let n={};const o=e[t];"number"===typeof o?n.span=o:"object"===typeof o&&(n=o||{}),delete v[t],C=Object.assign(Object.assign({},C),{["".concat(b,"-").concat(t,"-").concat(n.span)]:void 0!==n.span,["".concat(b,"-").concat(t,"-order-").concat(n.order)]:n.order||0===n.order,["".concat(b,"-").concat(t,"-offset-").concat(n.offset)]:n.offset||0===n.offset,["".concat(b,"-").concat(t,"-push-").concat(n.push)]:n.push||0===n.push,["".concat(b,"-").concat(t,"-pull-").concat(n.pull)]:n.pull||0===n.pull,["".concat(b,"-rtl")]:"rtl"===r}),n.flex&&(C["".concat(b,"-").concat(t,"-flex")]=!0,S["--".concat(b,"-").concat(t,"-flex")]=Ls(n.flex))}));const k=je()(b,{["".concat(b,"-").concat(c)]:void 0!==c,["".concat(b,"-order-").concat(s)]:s,["".concat(b,"-offset-").concat(u)]:u,["".concat(b,"-push-").concat(d)]:d,["".concat(b,"-pull-").concat(f)]:f},p,C,w,x),E={};if(i&&i[0]>0){const e=i[0]/2;E.paddingLeft=e,E.paddingRight=e}return m&&(E.flex=Ls(m),!1!==a||E.minWidth||(E.minWidth=0)),y(o.createElement("div",Object.assign({},v,{style:Object.assign(Object.assign(Object.assign({},E),g),S),className:k,ref:t}),h))}));const Fs=Bs,Hs=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{["".concat(t,"-control")]:{display:"flex"}}}},Ws=Ec(["Form","item-item"],((e,t)=>{let{rootPrefixCls:n}=t;const o=Lc(e,n);return[Hs(o)]})),Vs=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:i,errors:a,warnings:l,_internalItemRender:c,extra:s,help:u,fieldId:d,marginBottom:f,onErrorVisibleChanged:p}=e,h="".concat(t,"-item"),m=o.useContext(er),g=r||m.wrapperCol||{},v=je()("".concat(h,"-control"),g.className),b=o.useMemo((()=>Object.assign({},m)),[m]);delete b.labelCol,delete b.wrapperCol;const y=o.createElement("div",{className:"".concat(h,"-control-input")},o.createElement("div",{className:"".concat(h,"-control-input-content")},i)),w=o.useMemo((()=>({prefixCls:t,status:n})),[t,n]),x=null!==f||a.length||l.length?o.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},o.createElement(or.Provider,{value:w},o.createElement(Wc,{fieldId:d,errors:a,warnings:l,help:u,helpStatus:n,className:"".concat(h,"-explain-connected"),onVisibleChanged:p})),!!f&&o.createElement("div",{style:{width:0,height:f}})):null,S={};d&&(S.id="".concat(d,"_extra"));const C=s?o.createElement("div",Object.assign({},S,{className:"".concat(h,"-extra")}),s):null,k=c&&"pro_table_render"===c.mark&&c.render?c.render(e,{input:y,errorList:x,extra:C}):o.createElement(o.Fragment,null,y,x,C);return o.createElement(er.Provider,{value:b},o.createElement(Fs,Object.assign({},g,{className:v}),k),o.createElement(Ws,{prefixCls:t}))};const Ks={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};const qs=(0,o.createContext)({});function Us(e){var t;return null===e||void 0===e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function Xs(e){return function(e){return Us(e)instanceof ShadowRoot}(e)?Us(e):null}function Gs(e){return"object"===Ae(e)&&"string"===typeof e.name&&"string"===typeof e.theme&&("object"===Ae(e.icon)||"function"===typeof e.icon)}function $s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var o=e[n];if("class"===n)t.className=o,delete t.class;else delete t[n],t[function(e){return e.replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}(n)]=o;return t}),{})}function Ys(e,t,n){return n?o.createElement(e.tag,Be(Be({key:t},$s(e.attrs)),n),(e.children||[]).map((function(n,o){return Ys(n,"".concat(t,"-").concat(e.tag,"-").concat(o))}))):o.createElement(e.tag,Be({key:t},$s(e.attrs)),(e.children||[]).map((function(n,o){return Ys(n,"".concat(t,"-").concat(e.tag,"-").concat(o))})))}function Qs(e){return Ll(e)[0]}function Js(e){return e?Array.isArray(e)?e:[e]:[]}var Zs=["icon","className","onClick","style","primaryColor","secondaryColor"],eu={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var tu=function(e){var t,n,r=e.icon,i=e.className,a=e.onClick,l=e.style,c=e.primaryColor,s=e.secondaryColor,u=Qe(e,Zs),d=o.useRef(),f=eu;if(c&&(f={primaryColor:c,secondaryColor:s||Qs(c)}),function(e){var t=(0,o.useContext)(qs),n=t.csp,r=t.prefixCls,i="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";r&&(i=i.replace(/anticon/g,r)),(0,o.useEffect)((function(){var t=Xs(e.current);yr(i,"@ant-design-icons",{prepend:!0,csp:n,attachTo:t})}),[])}(d),t=Gs(r),n="icon should be icon definiton, but got ".concat(r),_n(t,"[@ant-design/icons] ".concat(n)),!Gs(r))return null;var p=r;return p&&"function"===typeof p.icon&&(p=Be(Be({},p),{},{icon:p.icon(f.primaryColor,f.secondaryColor)})),Ys(p.icon,"svg-".concat(p.name),Be(Be({className:i,onClick:a,style:l,"data-icon":p.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u),{},{ref:d}))};tu.displayName="IconReact",tu.getTwoToneColors=function(){return Be({},eu)},tu.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;eu.primaryColor=t,eu.secondaryColor=n||Qs(t),eu.calculated=!!n};const nu=tu;function ou(e){var t=We(Js(e),2),n=t[0],o=t[1];return nu.setTwoToneColors({primaryColor:n,secondaryColor:o})}var ru=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];ou(Wl.primary);var iu=o.forwardRef((function(e,t){var n=e.className,r=e.icon,i=e.spin,a=e.rotate,l=e.tabIndex,c=e.onClick,s=e.twoToneColor,u=Qe(e,ru),d=o.useContext(qs),f=d.prefixCls,p=void 0===f?"anticon":f,h=d.rootClassName,m=je()(h,p,Le(Le({},"".concat(p,"-").concat(r.name),!!r.name),"".concat(p,"-spin"),!!i||"loading"===r.name),n),g=l;void 0===g&&c&&(g=-1);var v=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=We(Js(s),2),y=b[0],w=b[1];return o.createElement("span",Jt({role:"img","aria-label":r.name},u,{ref:t,tabIndex:g,onClick:c,className:m}),o.createElement(nu,{icon:r,primaryColor:y,secondaryColor:w,style:v}))}));iu.displayName="AntdIcon",iu.getTwoToneColor=function(){var e=nu.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},iu.setTwoToneColor=ou;const au=iu;var lu=function(e,t){return o.createElement(au,Jt({},e,{ref:t,icon:Ks}))};const cu=o.forwardRef(lu);const su={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};const uu={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},du={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},fu={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},uu),timePickerLocale:Object.assign({},du)},pu="${label} is not a valid ${type}",hu={locale:"en",Pagination:su,DatePicker:fu,TimePicker:du,Calendar:fu,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:pu,method:pu,array:pu,object:pu,number:pu,date:pu,boolean:pu,integer:pu,float:pu,regexp:pu,email:pu,url:pu,hex:pu},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty"}},mu=(0,o.createContext)(void 0),gu=(e,t)=>{const n=o.useContext(mu),r=o.useMemo((()=>{var o;const r=t||hu[e],i=null!==(o=null===n||void 0===n?void 0:n[e])&&void 0!==o?o:{};return Object.assign(Object.assign({},"function"===typeof r?r():r),i||{})}),[e,t,n]);return[r,o.useMemo((()=>{const e=null===n||void 0===n?void 0:n.locale;return(null===n||void 0===n?void 0:n.exist)&&!e?hu.locale:e}),[n])]};function vu(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,a=e.className,l=e.style;return o.createElement("div",{className:je()("".concat(n,"-content"),a),style:l},o.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:i},"function"===typeof t?t():t))}const bu=o.createContext(null);var yu,wu=[];function xu(e){if("undefined"===typeof document)return 0;if(e||void 0===yu){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),o=n.style;o.position="absolute",o.top="0",o.left="0",o.pointerEvents="none",o.visibility="hidden",o.width="200px",o.height="150px",o.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var r=t.offsetWidth;n.style.overflow="scroll";var i=t.offsetWidth;r===i&&(i=n.clientWidth),document.body.removeChild(n),yu=r-i}return yu}function Su(e){var t=e.match(/^(.*)px$/),n=Number(null===t||void 0===t?void 0:t[1]);return Number.isNaN(n)?xu():n}function Cu(e){if("undefined"===typeof document||!e||!(e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.width,o=t.height;return{width:Su(n),height:Su(o)}}var ku="rc-util-locker-".concat(Date.now()),Eu=0;function Ou(e){var t=!!e,n=We(o.useState((function(){return Eu+=1,"".concat(ku,"_").concat(Eu)})),1)[0];Zr((function(){if(t){var e=Cu(document.body).width,o=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;yr("\nhtml body {\n overflow-y: hidden;\n ".concat(o?"width: calc(100% - ".concat(e,"px);"):"","\n}"),n)}else br(n);return function(){br(n)}}),[t,n])}var _u=!1;var Pu=function(e){return!1!==e&&(Ct()&&e?"string"===typeof e?document.querySelector(e):"function"===typeof e?e():e:null)},Mu=o.forwardRef((function(e,t){var n=e.open,r=e.autoLock,i=e.getContainer,l=(e.debug,e.autoDestroy),c=void 0===l||l,s=e.children,u=We(o.useState(n),2),d=u[0],f=u[1],p=d||n;o.useEffect((function(){(c||n)&&f(n)}),[n,c]);var h=We(o.useState((function(){return Pu(i)})),2),m=h[0],g=h[1];o.useEffect((function(){var e=Pu(i);g(null!==e&&void 0!==e?e:null)}));var v=function(e,t){var n=We(o.useState((function(){return Ct()?document.createElement("div"):null})),1)[0],r=o.useRef(!1),i=o.useContext(bu),a=We(o.useState(wu),2),l=a[0],c=a[1],s=i||(r.current?void 0:function(e){c((function(t){return[e].concat(Re(t))}))});function u(){n.parentElement||document.body.appendChild(n),r.current=!0}function d(){var e;null===(e=n.parentElement)||void 0===e||e.removeChild(n),r.current=!1}return Zr((function(){return e?i?i(u):u():d(),d}),[e]),Zr((function(){l.length&&(l.forEach((function(e){return e()})),c(wu))}),[l]),[n,s]}(p&&!m),b=We(v,2),y=b[0],w=b[1],x=null!==m&&void 0!==m?m:y;Ou(r&&n&&Ct()&&(x===y||x===document.body));var S=null;s&&Ye(s)&&t&&(S=s.ref);var C=$e(S,t);if(!p||!Ct()||void 0===m)return null;var k,E=!1===x||("boolean"===typeof k&&(_u=k),_u),O=s;return t&&(O=o.cloneElement(s,{ref:C})),o.createElement(bu.Provider,{value:w},E?O:(0,a.createPortal)(O,x))}));const Nu=Mu;var Iu=o.createContext(null);var Ru=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,o){return e[0]===t&&(n=o,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(t,n){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,o=e(n,t);~o&&n.splice(o,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,o=this.__entries__;n<o.length;n++){var r=o[n];e.call(t,r[1],r[0])}},t}()}(),Tu="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,ju="undefined"!==typeof n.g&&n.g.Math===Math?n.g:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")(),Au="function"===typeof requestAnimationFrame?requestAnimationFrame.bind(ju):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var zu=["top","right","bottom","left","width","height","size","weight"],Lu="undefined"!==typeof MutationObserver,Du=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,o=!1,r=0;function i(){n&&(n=!1,e()),o&&l()}function a(){Au(i)}function l(){var e=Date.now();if(n){if(e-r<2)return;o=!0}else n=!0,o=!1,setTimeout(a,t);r=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){Tu&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Lu?(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(){Tu&&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(e){var t=e.propertyName,n=void 0===t?"":t;zu.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Bu=function(e,t){for(var n=0,o=Object.keys(t);n<o.length;n++){var r=o[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},Fu=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||ju},Hu=Xu(0,0,0,0);function Wu(e){return parseFloat(e)||0}function Vu(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+Wu(e["border-"+n+"-width"])}),0)}function Ku(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Hu;var o=Fu(e).getComputedStyle(e),r=function(e){for(var t={},n=0,o=["top","right","bottom","left"];n<o.length;n++){var r=o[n],i=e["padding-"+r];t[r]=Wu(i)}return t}(o),i=r.left+r.right,a=r.top+r.bottom,l=Wu(o.width),c=Wu(o.height);if("border-box"===o.boxSizing&&(Math.round(l+i)!==t&&(l-=Vu(o,"left","right")+i),Math.round(c+a)!==n&&(c-=Vu(o,"top","bottom")+a)),!function(e){return e===Fu(e).document.documentElement}(e)){var s=Math.round(l+i)-t,u=Math.round(c+a)-n;1!==Math.abs(s)&&(l-=s),1!==Math.abs(u)&&(c-=u)}return Xu(r.left,r.top,l,c)}var qu="undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof Fu(e).SVGGraphicsElement}:function(e){return e instanceof Fu(e).SVGElement&&"function"===typeof e.getBBox};function Uu(e){return Tu?qu(e)?function(e){var t=e.getBBox();return Xu(0,0,t.width,t.height)}(e):Ku(e):Hu}function Xu(e,t,n,o){return{x:e,y:t,width:n,height:o}}var Gu=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Xu(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Uu(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),$u=function(e,t){var n=function(e){var t=e.x,n=e.y,o=e.width,r=e.height,i="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(i.prototype);return Bu(a,{x:t,y:n,width:o,height:r,top:n,right:t+o,bottom:r+n,left:t}),a}(t);Bu(this,{target:e,contentRect:n})},Yu=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new Ru,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof Fu(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new Gu(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof Fu(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new $u(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Qu="undefined"!==typeof WeakMap?new WeakMap:new Ru,Ju=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=Du.getInstance(),o=new Yu(t,n,this);Qu.set(this,o)};["observe","unobserve","disconnect"].forEach((function(e){Ju.prototype[e]=function(){var t;return(t=Qu.get(this))[e].apply(t,arguments)}}));const Zu="undefined"!==typeof ju.ResizeObserver?ju.ResizeObserver:Ju;var ed=new Map;var td=new Zu((function(e){e.forEach((function(e){var t,n=e.target;null===(t=ed.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));var nd=function(e){it(n,e);var t=ut(n);function n(){return tt(this,n),t.apply(this,arguments)}return ot(n,[{key:"render",value:function(){return this.props.children}}]),n}(o.Component);function od(e,t){var n=e.children,r=e.disabled,i=o.useRef(null),a=o.useRef(null),l=o.useContext(Iu),c="function"===typeof n,s=c?n(i):n,u=o.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!c&&o.isValidElement(s)&&Ye(s),f=$e(d?s.ref:null,i),p=function(){var e;return Ke(i.current)||(i.current&&"object"===Ae(i.current)?Ke(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||Ke(a.current)};o.useImperativeHandle(t,(function(){return p()}));var h=o.useRef(e);h.current=e;var m=o.useCallback((function(e){var t=h.current,n=t.onResize,o=t.data,r=e.getBoundingClientRect(),i=r.width,a=r.height,c=e.offsetWidth,s=e.offsetHeight,d=Math.floor(i),f=Math.floor(a);if(u.current.width!==d||u.current.height!==f||u.current.offsetWidth!==c||u.current.offsetHeight!==s){var p={width:d,height:f,offsetWidth:c,offsetHeight:s};u.current=p;var m=c===Math.round(i)?i:c,g=s===Math.round(a)?a:s,v=Be(Be({},p),{},{offsetWidth:m,offsetHeight:g});null===l||void 0===l||l(v,e,o),n&&Promise.resolve().then((function(){n(v,e)}))}}),[]);return o.useEffect((function(){var e=p();return e&&!r&&function(e,t){ed.has(e)||(ed.set(e,new Set),td.observe(e)),ed.get(e).add(t)}(e,m),function(){return function(e,t){ed.has(e)&&(ed.get(e).delete(t),ed.get(e).size||(td.unobserve(e),ed.delete(e)))}(e,m)}}),[i.current,r]),o.createElement(nd,{ref:a},d?o.cloneElement(s,{ref:f}):s)}const rd=o.forwardRef(od);function id(e,t){var n=e.children;return("function"===typeof n?[n]:wn(n)).map((function(n,r){var i=(null===n||void 0===n?void 0:n.key)||"".concat("rc-observer-key","-").concat(r);return o.createElement(rd,Jt({},e,{key:i,ref:0===r?t:void 0}),n)}))}var ad=o.forwardRef(id);ad.Collection=function(e){var t=e.children,n=e.onBatchResize,r=o.useRef(0),i=o.useRef([]),a=o.useContext(Iu),l=o.useCallback((function(e,t,o){r.current+=1;var l=r.current;i.current.push({size:e,element:t,data:o}),Promise.resolve().then((function(){l===r.current&&(null===n||void 0===n||n(i.current),i.current=[])})),null===a||void 0===a||a(e,t,o)}),[n,a]);return o.createElement(Iu.Provider,{value:l},t)};const ld=ad;var cd=0;var sd=Be({},r).useId;const ud=sd?function(e){var t=sd();return e||t}:function(e){var t=We(o.useState("ssr-id"),2),n=t[0],r=t[1];return o.useEffect((function(){var e=cd;cd+=1,r("rc_unique_".concat(e))}),[]),e||n},dd=function(){if("undefined"===typeof navigator||"undefined"===typeof window)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(null===e||void 0===e?void 0:e.substr(0,4))};function fd(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,a=r||{},l=a.className,c=a.content,s=i.x,u=void 0===s?0:s,d=i.y,f=void 0===d?0:d,p=o.useRef();if(!n||!n.points)return null;var h={position:"absolute"};if(!1!==n.autoArrow){var m=n.points[0],g=n.points[1],v=m[0],b=m[1],y=g[0],w=g[1];v!==y&&["t","b"].includes(v)?"t"===v?h.top=0:h.bottom=0:h.top=f,b!==w&&["l","r"].includes(b)?"l"===b?h.left=0:h.right=0:h.left=u}return o.createElement("div",{ref:p,className:je()("".concat(t,"-arrow"),l),style:h},c)}function pd(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,a=e.motion;return i?o.createElement(un,Jt({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return o.createElement("div",{style:{zIndex:r},className:je()("".concat(t,"-mask"),n)})})):null}var hd=o.memo((function(e){return e.children}),(function(e,t){return t.cache}));const md=hd;var gd=o.forwardRef((function(e,t){var n=e.popup,r=e.className,i=e.prefixCls,a=e.style,l=e.target,c=e.onVisibleChanged,s=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,p=e.mask,h=e.arrow,m=e.arrowPos,g=e.align,v=e.motion,b=e.maskMotion,y=e.forceRender,w=e.getPopupContainer,x=e.autoDestroy,S=e.portal,C=e.zIndex,k=e.onMouseEnter,E=e.onMouseLeave,O=e.onPointerEnter,_=e.ready,P=e.offsetX,M=e.offsetY,N=e.offsetR,I=e.offsetB,R=e.onAlign,T=e.onPrepare,j=e.stretch,A=e.targetWidth,z=e.targetHeight,L="function"===typeof n?n():n,D=s||u,B=(null===w||void 0===w?void 0:w.length)>0,F=We(o.useState(!w||!B),2),H=F[0],W=F[1];if(Zr((function(){!H&&B&&l&&W(!0)}),[H,B,l]),!H)return null;var V="auto",K={left:"-1000vw",top:"-1000vh",right:V,bottom:V};if(_||!s){var q,U=g.points,X=g.dynamicInset||(null===(q=g._experimental)||void 0===q?void 0:q.dynamicInset),G=X&&"r"===U[0][1],$=X&&"b"===U[0][0];G?(K.right=N,K.left=V):(K.left=P,K.right=V),$?(K.bottom=I,K.top=V):(K.top=M,K.bottom=V)}var Y={};return j&&(j.includes("height")&&z?Y.height=z:j.includes("minHeight")&&z&&(Y.minHeight=z),j.includes("width")&&A?Y.width=A:j.includes("minWidth")&&A&&(Y.minWidth=A)),s||(Y.pointerEvents="none"),o.createElement(S,{open:y||D,getContainer:w&&function(){return w(l)},autoDestroy:x},o.createElement(pd,{prefixCls:i,open:s,zIndex:C,mask:p,motion:b}),o.createElement(ld,{onResize:R,disabled:!s},(function(e){return o.createElement(un,Jt({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(i,"-hidden")},v,{onAppearPrepare:T,onEnterPrepare:T,visible:s,onVisibleChanged:function(e){var t;null===v||void 0===v||null===(t=v.onVisibleChanged)||void 0===t||t.call(v,e),c(e)}}),(function(n,l){var c=n.className,u=n.style,p=je()(i,c,r);return o.createElement("div",{ref:Ge(e,t,l),className:p,style:Be(Be(Be(Be({"--arrow-x":"".concat(m.x||0,"px"),"--arrow-y":"".concat(m.y||0,"px")},K),Y),u),{},{boxSizing:"border-box",zIndex:C},a),onMouseEnter:k,onMouseLeave:E,onPointerEnter:O,onClick:f},h&&o.createElement(fd,{prefixCls:i,arrow:h,arrowPos:m,align:g}),o.createElement(md,{cache:!s&&!d},L))}))})))}));const vd=gd;var bd=o.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=Ye(n),a=o.useCallback((function(e){Xe(t,r?r(e):e)}),[r]),l=$e(a,n.ref);return i?o.cloneElement(n,{ref:l}):n}));const yd=bd;const wd=o.createContext(null);function xd(e){return e?Array.isArray(e)?e:[e]:[]}function Sd(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function Cd(e,t,n,o){return t||(n?{motionName:"".concat(e,"-").concat(n)}:o?{motionName:o}:null)}function kd(e){return e.ownerDocument.defaultView}function Ed(e){for(var t=[],n=null===e||void 0===e?void 0:e.parentElement,o=["hidden","scroll","clip","auto"];n;){var r=kd(n).getComputedStyle(n);[r.overflowX,r.overflowY,r.overflow].some((function(e){return o.includes(e)}))&&t.push(n),n=n.parentElement}return t}function Od(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function _d(e){return Od(parseFloat(e),0)}function Pd(e,t){var n=Be({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=kd(e).getComputedStyle(e),o=t.overflow,r=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,c=t.borderRightWidth,s=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,h=_d(i),m=_d(a),g=_d(l),v=_d(c),b=Od(Math.round(s.width/f*1e3)/1e3),y=Od(Math.round(s.height/u*1e3)/1e3),w=(f-p-g-v)*b,x=(u-d-h-m)*y,S=h*y,C=m*y,k=g*b,E=v*b,O=0,_=0;if("clip"===o){var P=_d(r);O=P*b,_=P*y}var M=s.x+k-O,N=s.y+S-_,I=M+s.width+2*O-k-E-w,R=N+s.height+2*_-S-C-x;n.left=Math.max(n.left,M),n.top=Math.max(n.top,N),n.right=Math.min(n.right,I),n.bottom=Math.min(n.bottom,R)}})),n}function Md(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function Nd(e,t){var n=We(t||[],2),o=n[0],r=n[1];return[Md(e.width,o),Md(e.height,r)]}function Id(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function Rd(e,t){var n,o=t[0],r=t[1];return n="t"===o?e.y:"b"===o?e.y+e.height:e.y+e.height/2,{x:"l"===r?e.x:"r"===r?e.x+e.width:e.x+e.width/2,y:n}}function Td(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,o){return o===t?n[e]||"c":e})).join("")}var jd=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const Ad=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Nu,t=o.forwardRef((function(t,n){var r=t.prefixCls,i=void 0===r?"rc-trigger-popup":r,a=t.children,l=t.action,c=void 0===l?"hover":l,s=t.showAction,u=t.hideAction,d=t.popupVisible,f=t.defaultPopupVisible,p=t.onPopupVisibleChange,h=t.afterPopupVisibleChange,m=t.mouseEnterDelay,g=t.mouseLeaveDelay,v=void 0===g?.1:g,b=t.focusDelay,y=t.blurDelay,w=t.mask,x=t.maskClosable,S=void 0===x||x,C=t.getPopupContainer,k=t.forceRender,E=t.autoDestroy,O=t.destroyPopupOnHide,_=t.popup,P=t.popupClassName,M=t.popupStyle,N=t.popupPlacement,I=t.builtinPlacements,R=void 0===I?{}:I,T=t.popupAlign,j=t.zIndex,A=t.stretch,z=t.getPopupClassNameFromAlign,L=t.fresh,D=t.alignPoint,B=t.onPopupClick,F=t.onPopupAlign,H=t.arrow,W=t.popupMotion,V=t.maskMotion,K=t.popupTransitionName,q=t.popupAnimation,U=t.maskTransitionName,X=t.maskAnimation,G=t.className,$=t.getTriggerDOMNode,Y=Qe(t,jd),Q=E||O||!1,J=We(o.useState(!1),2),Z=J[0],ee=J[1];Zr((function(){ee(dd())}),[]);var te=o.useRef({}),ne=o.useContext(wd),oe=o.useMemo((function(){return{registerSubPopup:function(e,t){te.current[e]=t,null===ne||void 0===ne||ne.registerSubPopup(e,t)}}}),[ne]),re=ud(),ie=We(o.useState(null),2),ae=ie[0],le=ie[1],ce=Ja((function(e){Ve(e)&&ae!==e&&le(e),null===ne||void 0===ne||ne.registerSubPopup(re,e)})),se=We(o.useState(null),2),ue=se[0],de=se[1],fe=o.useRef(null),pe=Ja((function(e){Ve(e)&&ue!==e&&(de(e),fe.current=e)})),he=o.Children.only(a),me=(null===he||void 0===he?void 0:he.props)||{},ge={},ve=Ja((function(e){var t,n,o=ue;return(null===o||void 0===o?void 0:o.contains(e))||(null===(t=Xs(o))||void 0===t?void 0:t.host)===e||e===o||(null===ae||void 0===ae?void 0:ae.contains(e))||(null===(n=Xs(ae))||void 0===n?void 0:n.host)===e||e===ae||Object.values(te.current).some((function(t){return(null===t||void 0===t?void 0:t.contains(e))||e===t}))})),be=Cd(i,W,q,K),ye=Cd(i,V,X,U),we=We(o.useState(f||!1),2),xe=we[0],Se=we[1],Ce=null!==d&&void 0!==d?d:xe,ke=Ja((function(e){void 0===d&&Se(e)}));Zr((function(){Se(d||!1)}),[d]);var Ee=o.useRef(Ce);Ee.current=Ce;var Oe=o.useRef([]);Oe.current=[];var _e=Ja((function(e){var t;ke(e),(null!==(t=Oe.current[Oe.current.length-1])&&void 0!==t?t:Ce)!==e&&(Oe.current.push(e),null===p||void 0===p||p(e))})),Pe=o.useRef(),Me=function(){clearTimeout(Pe.current)},Ne=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Me(),0===t?_e(e):Pe.current=setTimeout((function(){_e(e)}),1e3*t)};o.useEffect((function(){return Me}),[]);var Ie=We(o.useState(!1),2),Te=Ie[0],Ae=Ie[1];Zr((function(e){e&&!Ce||Ae(!0)}),[Ce]);var ze=We(o.useState(null),2),Le=ze[0],De=ze[1],Fe=We(o.useState([0,0]),2),He=Fe[0],Ke=Fe[1],qe=function(e){Ke([e.clientX,e.clientY])},Ue=function(e,t,n,r,i,a,l){var c=We(o.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),2),s=c[0],u=c[1],d=o.useRef(0),f=o.useMemo((function(){return t?Ed(t):[]}),[t]),p=o.useRef({});e||(p.current={});var h=Ja((function(){if(t&&n&&e){var o,c,s,d=t,h=d.ownerDocument,m=kd(d).getComputedStyle(d),g=m.width,v=m.height,b=m.position,y=d.style.left,w=d.style.top,x=d.style.right,S=d.style.bottom,C=d.style.overflow,k=Be(Be({},i[r]),a),E=h.createElement("div");if(null===(o=d.parentElement)||void 0===o||o.appendChild(E),E.style.left="".concat(d.offsetLeft,"px"),E.style.top="".concat(d.offsetTop,"px"),E.style.position=b,E.style.height="".concat(d.offsetHeight,"px"),E.style.width="".concat(d.offsetWidth,"px"),d.style.left="0",d.style.top="0",d.style.right="auto",d.style.bottom="auto",d.style.overflow="hidden",Array.isArray(n))s={x:n[0],y:n[1],width:0,height:0};else{var O=n.getBoundingClientRect();s={x:O.x,y:O.y,width:O.width,height:O.height}}var _=d.getBoundingClientRect(),P=h.documentElement,M=P.clientWidth,N=P.clientHeight,I=P.scrollWidth,R=P.scrollHeight,T=P.scrollTop,j=P.scrollLeft,A=_.height,z=_.width,L=s.height,D=s.width,B={left:0,top:0,right:M,bottom:N},F={left:-j,top:-T,right:I-j,bottom:R-T},H=k.htmlRegion,W="visible",V="visibleFirst";"scroll"!==H&&H!==V&&(H=W);var K=H===V,q=Pd(F,f),U=Pd(B,f),X=H===W?U:q,G=K?U:X;d.style.left="auto",d.style.top="auto",d.style.right="0",d.style.bottom="0";var $=d.getBoundingClientRect();d.style.left=y,d.style.top=w,d.style.right=x,d.style.bottom=S,d.style.overflow=C,null===(c=d.parentElement)||void 0===c||c.removeChild(E);var Y=Od(Math.round(z/parseFloat(g)*1e3)/1e3),Q=Od(Math.round(A/parseFloat(v)*1e3)/1e3);if(0===Y||0===Q||Ve(n)&&!Ss(n))return;var J=k.offset,Z=k.targetOffset,ee=We(Nd(_,J),2),te=ee[0],ne=ee[1],oe=We(Nd(s,Z),2),re=oe[0],ie=oe[1];s.x-=re,s.y-=ie;var ae=We(k.points||[],2),le=ae[0],ce=Id(ae[1]),se=Id(le),ue=Rd(s,ce),de=Rd(_,se),fe=Be({},k),pe=ue.x-de.x+te,he=ue.y-de.y+ne;function ut(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:X,o=_.x+e,r=_.y+t,i=o+z,a=r+A,l=Math.max(o,n.left),c=Math.max(r,n.top),s=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(s-l)*(u-c))}var me,ge,ve,be,ye=ut(pe,he),we=ut(pe,he,U),xe=Rd(s,["t","l"]),Se=Rd(_,["t","l"]),Ce=Rd(s,["b","r"]),ke=Rd(_,["b","r"]),Ee=k.overflow||{},Oe=Ee.adjustX,_e=Ee.adjustY,Pe=Ee.shiftX,Me=Ee.shiftY,Ne=function(e){return"boolean"===typeof e?e:e>=0};function dt(){me=_.y+he,ge=me+A,ve=_.x+pe,be=ve+z}dt();var Ie=Ne(_e),Re=se[0]===ce[0];if(Ie&&"t"===se[0]&&(ge>G.bottom||p.current.bt)){var Te=he;Re?Te-=A-L:Te=xe.y-ke.y-ne;var je=ut(pe,Te),Ae=ut(pe,Te,U);je>ye||je===ye&&(!K||Ae>=we)?(p.current.bt=!0,he=Te,ne=-ne,fe.points=[Td(se,0),Td(ce,0)]):p.current.bt=!1}if(Ie&&"b"===se[0]&&(me<G.top||p.current.tb)){var ze=he;Re?ze+=A-L:ze=Ce.y-Se.y-ne;var Le=ut(pe,ze),De=ut(pe,ze,U);Le>ye||Le===ye&&(!K||De>=we)?(p.current.tb=!0,he=ze,ne=-ne,fe.points=[Td(se,0),Td(ce,0)]):p.current.tb=!1}var Fe=Ne(Oe),He=se[1]===ce[1];if(Fe&&"l"===se[1]&&(be>G.right||p.current.rl)){var Ke=pe;He?Ke-=z-D:Ke=xe.x-ke.x-te;var qe=ut(Ke,he),Ue=ut(Ke,he,U);qe>ye||qe===ye&&(!K||Ue>=we)?(p.current.rl=!0,pe=Ke,te=-te,fe.points=[Td(se,1),Td(ce,1)]):p.current.rl=!1}if(Fe&&"r"===se[1]&&(ve<G.left||p.current.lr)){var Xe=pe;He?Xe+=z-D:Xe=Ce.x-Se.x-te;var Ge=ut(Xe,he),$e=ut(Xe,he,U);Ge>ye||Ge===ye&&(!K||$e>=we)?(p.current.lr=!0,pe=Xe,te=-te,fe.points=[Td(se,1),Td(ce,1)]):p.current.lr=!1}dt();var Ye=!0===Pe?0:Pe;"number"===typeof Ye&&(ve<U.left&&(pe-=ve-U.left-te,s.x+D<U.left+Ye&&(pe+=s.x-U.left+D-Ye)),be>U.right&&(pe-=be-U.right-te,s.x>U.right-Ye&&(pe+=s.x-U.right+Ye)));var Qe=!0===Me?0:Me;"number"===typeof Qe&&(me<U.top&&(he-=me-U.top-ne,s.y+L<U.top+Qe&&(he+=s.y-U.top+L-Qe)),ge>U.bottom&&(he-=ge-U.bottom-ne,s.y>U.bottom-Qe&&(he+=s.y-U.bottom+Qe)));var Je=_.x+pe,Ze=Je+z,et=_.y+he,tt=et+A,nt=s.x,ot=nt+D,rt=s.y,it=rt+L,at=(Math.max(Je,nt)+Math.min(Ze,ot))/2-Je,lt=(Math.max(et,rt)+Math.min(tt,it))/2-et;null===l||void 0===l||l(t,fe);var ct=$.right-_.x-(pe+_.width),st=$.bottom-_.y-(he+_.height);u({ready:!0,offsetX:pe/Y,offsetY:he/Q,offsetR:ct/Y,offsetB:st/Q,arrowX:at/Y,arrowY:lt/Q,scaleX:Y,scaleY:Q,align:fe})}})),m=function(){u((function(e){return Be(Be({},e),{},{ready:!1})}))};return Zr(m,[r]),Zr((function(){e||m()}),[e]),[s.ready,s.offsetX,s.offsetY,s.offsetR,s.offsetB,s.arrowX,s.arrowY,s.scaleX,s.scaleY,s.align,function(){d.current+=1;var e=d.current;Promise.resolve().then((function(){d.current===e&&h()}))}]}(Ce,ae,D?He:ue,N,R,T,F),Xe=We(Ue,11),Ge=Xe[0],$e=Xe[1],Ye=Xe[2],Je=Xe[3],Ze=Xe[4],et=Xe[5],tt=Xe[6],nt=Xe[7],ot=Xe[8],rt=Xe[9],it=Xe[10],at=function(e,t,n,r){return o.useMemo((function(){var o=xd(null!==n&&void 0!==n?n:t),i=xd(null!==r&&void 0!==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])}(Z,c,s,u),lt=We(at,2),ct=lt[0],st=lt[1],ut=ct.has("click"),dt=st.has("click")||st.has("contextMenu"),ft=Ja((function(){Te||it()}));!function(e,t,n,o,r){Zr((function(){if(e&&t&&n){var i=n,a=Ed(t),l=Ed(i),c=kd(i),s=new Set([c].concat(Re(a),Re(l)));function u(){o(),r()}return s.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),c.addEventListener("resize",u,{passive:!0}),o(),function(){s.forEach((function(e){e.removeEventListener("scroll",u),c.removeEventListener("resize",u)}))}}}),[e,t,n])}(Ce,ue,ae,ft,(function(){Ee.current&&D&&dt&&Ne(!1)})),Zr((function(){ft()}),[He,N]),Zr((function(){!Ce||null!==R&&void 0!==R&&R[N]||ft()}),[JSON.stringify(T)]);var pt=o.useMemo((function(){var e=function(e,t,n,o){for(var r=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var l,c=i[a];if(Sd(null===(l=e[c])||void 0===l?void 0:l.points,r,o))return"".concat(t,"-placement-").concat(c)}return""}(R,i,rt,D);return je()(e,null===z||void 0===z?void 0:z(rt))}),[rt,z,R,i,D]);o.useImperativeHandle(n,(function(){return{nativeElement:fe.current,forceAlign:ft}}));var ht=We(o.useState(0),2),mt=ht[0],gt=ht[1],vt=We(o.useState(0),2),bt=vt[0],yt=vt[1],wt=function(){if(A&&ue){var e=ue.getBoundingClientRect();gt(e.width),yt(e.height)}};function xt(e,t,n,o){ge[e]=function(r){var i;null===o||void 0===o||o(r),Ne(t,n);for(var a=arguments.length,l=new Array(a>1?a-1:0),c=1;c<a;c++)l[c-1]=arguments[c];null===(i=me[e])||void 0===i||i.call.apply(i,[me,r].concat(l))}}Zr((function(){Le&&(it(),Le(),De(null))}),[Le]),(ut||dt)&&(ge.onClick=function(e){var t;Ee.current&&dt?Ne(!1):!Ee.current&&ut&&(qe(e),Ne(!0));for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];null===(t=me.onClick)||void 0===t||t.call.apply(t,[me,e].concat(o))}),function(e,t,n,r,i,a,l,c){var s=o.useRef(e),u=o.useRef(!1);s.current!==e&&(u.current=!0,s.current=e),o.useEffect((function(){var e=Kt((function(){u.current=!1}));return function(){Kt.cancel(e)}}),[e]),o.useEffect((function(){if(t&&r&&(!i||a)){var e=function(){var e=!1;return[function(t){var n=t.target;e=l(n)},function(t){var n=t.target;u.current||!s.current||e||l(n)||c(!1)}]},o=We(e(),2),d=o[0],f=o[1],p=We(e(),2),h=p[0],m=p[1],g=kd(r);g.addEventListener("mousedown",d,!0),g.addEventListener("click",f,!0),g.addEventListener("contextmenu",f,!0);var v=Xs(n);return v&&(v.addEventListener("mousedown",h,!0),v.addEventListener("click",m,!0),v.addEventListener("contextmenu",m,!0)),function(){g.removeEventListener("mousedown",d,!0),g.removeEventListener("click",f,!0),g.removeEventListener("contextmenu",f,!0),v&&(v.removeEventListener("mousedown",h,!0),v.removeEventListener("click",m,!0),v.removeEventListener("contextmenu",m,!0))}}}),[t,n,r,i,a])}(Ce,dt,ue,ae,w,S,ve,Ne);var St,Ct,kt=ct.has("hover"),Et=st.has("hover");kt&&(xt("onMouseEnter",!0,m,(function(e){qe(e)})),xt("onPointerEnter",!0,m,(function(e){qe(e)})),St=function(e){(Ce||Te)&&null!==ae&&void 0!==ae&&ae.contains(e.target)&&Ne(!0,m)},D&&(ge.onMouseMove=function(e){var t;null===(t=me.onMouseMove)||void 0===t||t.call(me,e)})),Et&&(xt("onMouseLeave",!1,v),xt("onPointerLeave",!1,v),Ct=function(){Ne(!1,v)}),ct.has("focus")&&xt("onFocus",!0,b),st.has("focus")&&xt("onBlur",!1,y),ct.has("contextMenu")&&(ge.onContextMenu=function(e){var t;Ee.current&&st.has("contextMenu")?Ne(!1):(qe(e),Ne(!0)),e.preventDefault();for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];null===(t=me.onContextMenu)||void 0===t||t.call.apply(t,[me,e].concat(o))}),G&&(ge.className=je()(me.className,G));var Ot=Be(Be({},me),ge),_t={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){Y[e]&&(_t[e]=function(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];null===(t=Ot[e])||void 0===t||t.call.apply(t,[Ot].concat(o)),Y[e].apply(Y,o)})}));var Pt=o.cloneElement(he,Be(Be({},Ot),_t)),Mt={x:et,y:tt},Nt=H?Be({},!0!==H?H:{}):null;return o.createElement(o.Fragment,null,o.createElement(ld,{disabled:!Ce,ref:pe,onResize:function(){wt(),ft()}},o.createElement(yd,{getTriggerDOMNode:$},Pt)),o.createElement(wd.Provider,{value:oe},o.createElement(vd,{portal:e,ref:ce,prefixCls:i,popup:_,className:je()(P,pt),style:M,target:ue,onMouseEnter:St,onMouseLeave:Ct,onPointerEnter:St,zIndex:j,open:Ce,keepDom:Te,fresh:L,onClick:B,mask:w,motion:be,maskMotion:ye,onVisibleChanged:function(e){Ae(!1),it(),null===h||void 0===h||h(e)},onPrepare:function(){return new Promise((function(e){wt(),De((function(){return e}))}))},forceRender:k,autoDestroy:Q,getPopupContainer:C,align:rt,arrow:Nt,arrowPos:Mt,ready:Ge,offsetX:$e,offsetY:Ye,offsetR:Je,offsetB:Ze,onAlign:ft,stretch:A,targetWidth:mt/nt,targetHeight:bt/ot})))}));return t}(Nu);var zd={shiftX:64,adjustY:1},Ld={adjustX:1,shiftY:!0},Dd=[0,0],Bd={left:{points:["cr","cl"],overflow:Ld,offset:[-4,0],targetOffset:Dd},right:{points:["cl","cr"],overflow:Ld,offset:[4,0],targetOffset:Dd},top:{points:["bc","tc"],overflow:zd,offset:[0,-4],targetOffset:Dd},bottom:{points:["tc","bc"],overflow:zd,offset:[0,4],targetOffset:Dd},topLeft:{points:["bl","tl"],overflow:zd,offset:[0,-4],targetOffset:Dd},leftTop:{points:["tr","tl"],overflow:Ld,offset:[-4,0],targetOffset:Dd},topRight:{points:["br","tr"],overflow:zd,offset:[0,-4],targetOffset:Dd},rightTop:{points:["tl","tr"],overflow:Ld,offset:[4,0],targetOffset:Dd},bottomRight:{points:["tr","br"],overflow:zd,offset:[0,4],targetOffset:Dd},rightBottom:{points:["bl","br"],overflow:Ld,offset:[4,0],targetOffset:Dd},bottomLeft:{points:["tl","bl"],overflow:zd,offset:[0,4],targetOffset:Dd},leftBottom:{points:["br","bl"],overflow:Ld,offset:[-4,0],targetOffset:Dd}};var Fd=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],Hd=function(e,t){var n=e.overlayClassName,r=e.trigger,i=void 0===r?["hover"]:r,a=e.mouseEnterDelay,l=void 0===a?0:a,c=e.mouseLeaveDelay,s=void 0===c?.1:c,u=e.overlayStyle,d=e.prefixCls,f=void 0===d?"rc-tooltip":d,p=e.children,h=e.onVisibleChange,m=e.afterVisibleChange,g=e.transitionName,v=e.animation,b=e.motion,y=e.placement,w=void 0===y?"right":y,x=e.align,S=void 0===x?{}:x,C=e.destroyTooltipOnHide,k=void 0!==C&&C,E=e.defaultVisible,O=e.getTooltipContainer,_=e.overlayInnerStyle,P=(e.arrowContent,e.overlay),M=e.id,N=e.showArrow,I=void 0===N||N,R=Qe(e,Fd),T=(0,o.useRef)(null);(0,o.useImperativeHandle)(t,(function(){return T.current}));var j=Be({},R);"visible"in e&&(j.popupVisible=e.visible);return o.createElement(Ad,Jt({popupClassName:n,prefixCls:f,popup:function(){return o.createElement(vu,{key:"content",prefixCls:f,id:M,overlayInnerStyle:_},P)},action:i,builtinPlacements:Bd,popupPlacement:w,ref:T,popupAlign:S,getPopupContainer:O,onPopupVisibleChange:h,afterPopupVisibleChange:m,popupTransitionName:g,popupAnimation:v,popupMotion:b,defaultPopupVisible:E,autoDestroy:k,mouseLeaveDelay:s,popupStyle:u,mouseEnterDelay:l,arrow:I},j),p)};const Wd=(0,o.forwardRef)(Hd);const Vd=o.createContext(void 0),Kd=100,qd={Modal:Kd,Drawer:Kd,Popover:Kd,Popconfirm:Kd,Tooltip:Kd,Tour:Kd},Ud={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Xd(e,t){const[,n]=hc(),r=o.useContext(Vd),i=function(e){return e in qd}(e);if(void 0!==t)return[t,t];let a=null!==r&&void 0!==r?r:0;return i?(a+=(r?0:n.zIndexPopupBase)+qd[e],a=Math.min(a,n.zIndexPopupBase+1e3)):a+=Ud[e],[void 0===r?t:a,a]}function Gd(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:o}=e,r=t/2,i=r,a=1*o/Math.sqrt(2),l=r-o*(1-1/Math.sqrt(2)),c=r-n*(1/Math.sqrt(2)),s=o*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*r-c,d=s,f=2*r-a,p=l,h=2*r-0,m=i,g=r*Math.sqrt(2)+o*(Math.sqrt(2)-2),v=o*(Math.sqrt(2)-1),b="polygon(".concat(v,"px 100%, 50% ").concat(v,"px, ").concat(2*r-v,"px 100%, ").concat(v,"px 100%)");return{arrowShadowWidth:g,arrowPath:"path('M ".concat(0," ").concat(i," A ").concat(o," ").concat(o," 0 0 0 ").concat(a," ").concat(l," L ").concat(c," ").concat(s," A ").concat(n," ").concat(n," 0 0 1 ").concat(u," ").concat(d," L ").concat(f," ").concat(p," A ").concat(o," ").concat(o," 0 0 0 ").concat(h," ").concat(m," Z')"),arrowPolygon:b}}const $d=(e,t,n)=>{const{sizePopupArrow:o,arrowPolygon:r,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:l,calc:c}=e;return{pointerEvents:"none",width:o,height:o,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:o,height:c(o).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[r,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:"0 0 ".concat(qr(l)," 0")},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},Yd=8;function Qd(e){const{contentRadius:t,limitVerticalRadius:n}=e,o=t>12?t+2:12;return{arrowOffsetHorizontal:o,arrowOffsetVertical:n?Yd:o}}function Jd(e,t){return e?t:{}}function Zd(e,t,n){const{componentCls:o,boxShadowPopoverArrow:r,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[o]:Object.assign(Object.assign(Object.assign(Object.assign({["".concat(o,"-arrow")]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},$d(e,t,r)),{"&:before":{background:t}})]},Jd(!!c.top,{[["&-placement-top > ".concat(o,"-arrow"),"&-placement-topLeft > ".concat(o,"-arrow"),"&-placement-topRight > ".concat(o,"-arrow")].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},["&-placement-top > ".concat(o,"-arrow")]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},["&-placement-topLeft > ".concat(o,"-arrow")]:{left:{_skip_check_:!0,value:a}},["&-placement-topRight > ".concat(o,"-arrow")]:{right:{_skip_check_:!0,value:a}}})),Jd(!!c.bottom,{[["&-placement-bottom > ".concat(o,"-arrow"),"&-placement-bottomLeft > ".concat(o,"-arrow"),"&-placement-bottomRight > ".concat(o,"-arrow")].join(",")]:{top:l,transform:"translateY(-100%)"},["&-placement-bottom > ".concat(o,"-arrow")]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},["&-placement-bottomLeft > ".concat(o,"-arrow")]:{left:{_skip_check_:!0,value:a}},["&-placement-bottomRight > ".concat(o,"-arrow")]:{right:{_skip_check_:!0,value:a}}})),Jd(!!c.left,{[["&-placement-left > ".concat(o,"-arrow"),"&-placement-leftTop > ".concat(o,"-arrow"),"&-placement-leftBottom > ".concat(o,"-arrow")].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},["&-placement-left > ".concat(o,"-arrow")]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},["&-placement-leftTop > ".concat(o,"-arrow")]:{top:i},["&-placement-leftBottom > ".concat(o,"-arrow")]:{bottom:i}})),Jd(!!c.right,{[["&-placement-right > ".concat(o,"-arrow"),"&-placement-rightTop > ".concat(o,"-arrow"),"&-placement-rightBottom > ".concat(o,"-arrow")].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},["&-placement-right > ".concat(o,"-arrow")]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},["&-placement-rightTop > ".concat(o,"-arrow")]:{top:i},["&-placement-rightBottom > ".concat(o,"-arrow")]:{bottom:i}}))}}const ef={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"]}},tf={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"]}},nf=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function of(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:o,offset:r,borderRadius:i,visibleFirst:a}=e,l=t/2,c={};return Object.keys(ef).forEach((e=>{const s=o&&tf[e]||ef[e],u=Object.assign(Object.assign({},s),{offset:[0,0],dynamicInset:!0});switch(c[e]=u,nf.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-l-r;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=l+r;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-l-r;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=l+r}const d=Qd({contentRadius:i,limitVerticalRadius:!0});if(o)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-d.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":u.offset[0]=d.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":u.offset[1]=-d.arrowOffsetHorizontal-l;break;case"leftBottom":case"rightBottom":u.offset[1]=d.arrowOffsetHorizontal+l}u.overflow=function(e,t,n,o){if(!1===o)return{adjustX:!1,adjustY:!1};const r=o&&"object"===typeof o?o:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.arrowOffsetHorizontal+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.arrowOffsetVertical+n,i.shiftX=!0,i.adjustX=!0}const a=Object.assign(Object.assign({},i),r);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,d,t,n),a&&(u.htmlRegion="visibleFirst")})),c}const rf=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},af=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"}},["".concat(t,"-item:empty")]:{display:"none"}}}},lf=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},cf=Oc("Space",(e=>{const t=Ga(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[af(t),lf(t),rf(t)]}),(()=>({})),{resetStyle:!1});var sf=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const uf=o.createContext(null),df=(e,t)=>{const n=o.useContext(uf),r=o.useMemo((()=>{if(!n)return"";const{compactDirection:o,isFirstItem:r,isLastItem:i}=n,a="vertical"===o?"-vertical-":"-";return je()("".concat(e,"-compact").concat(a,"item"),{["".concat(e,"-compact").concat(a,"first-item")]:r,["".concat(e,"-compact").concat(a,"last-item")]:i,["".concat(e,"-compact").concat(a,"item-rtl")]:"rtl"===t})}),[e,t,n]);return{compactSize:null===n||void 0===n?void 0:n.compactSize,compactDirection:null===n||void 0===n?void 0:n.compactDirection,compactItemClassnames:r}},ff=e=>{let{children:t}=e;return o.createElement(uf.Provider,{value:null},t)},pf=e=>{var{children:t}=e,n=sf(e,["children"]);return o.createElement(uf.Provider,{value:n},t)},hf=e=>{const{getPrefixCls:t,direction:n}=o.useContext(nl),{size:r,direction:i,block:a,prefixCls:l,className:c,rootClassName:s,children:u}=e,d=sf(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=$c((e=>null!==r&&void 0!==r?r:e)),p=t("space-compact",l),[h,m]=cf(p),g=je()(p,m,{["".concat(p,"-rtl")]:"rtl"===n,["".concat(p,"-block")]:a,["".concat(p,"-vertical")]:"vertical"===i},c,s),v=o.useContext(uf),b=wn(u),y=o.useMemo((()=>b.map(((e,t)=>{const n=e&&e.key||"".concat(p,"-item-").concat(t);return o.createElement(pf,{key:n,compactSize:f,compactDirection:i,isFirstItem:0===t&&(!v||(null===v||void 0===v?void 0:v.isFirstItem)),isLastItem:t===b.length-1&&(!v||(null===v||void 0===v?void 0:v.isLastItem))},e)}))),[r,b,v]);return 0===b.length?null:h(o.createElement("div",Object.assign({className:g},d),y))},mf=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function gf(e,t){return mf.reduce(((n,o)=>{const r=e["".concat(o,"1")],i=e["".concat(o,"3")],a=e["".concat(o,"6")],l=e["".concat(o,"7")];return Object.assign(Object.assign({},n),t(o,{lightColor:r,lightBorderColor:i,darkColor:a,textColor:l}))}),{})}const vf=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:r,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:c,paddingSM:s,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ca(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":r,["".concat(t,"-inner")]:{minWidth:l,minHeight:l,padding:"".concat(qr(e.calc(s).div(2).equal())," ").concat(qr(u)),color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:r,borderRadius:i,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{["".concat(t,"-inner")]:{borderRadius:e.min(i,Yd)}},["".concat(t,"-content")]:{position:"relative"}}),gf(e,((e,n)=>{let{darkColor:o}=n;return{["&".concat(t,"-").concat(e)]:{["".concat(t,"-inner")]:{backgroundColor:o},["".concat(t,"-arrow")]:{"--antd-arrow-background-color":o}}}}))),{"&-rtl":{direction:"rtl"}})},Zd(e,"var(--antd-arrow-background-color)"),{["".concat(t,"-pure")]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},bf=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Qd({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Gd(Ga(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),yf=function(e){const t=Oc("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:o}=e,r=Ga(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:o});return[vf(r),Ka(e,"zoom-big-fast")]}),bf,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)},wf=mf.map((e=>"".concat(e,"-inverse")));function xf(e,t){const n=function(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?mf.includes(e):[].concat(Re(wf),Re(mf)).includes(e)}(t),o=je()({["".concat(e,"-").concat(t)]:t&&n}),r={},i={};return t&&!n&&(r.background=t,i["--antd-arrow-background-color"]=t),{className:o,overlayStyle:r,arrowStyle:i}}const Sf=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:a,overlayInnerStyle:l}=e,{getPrefixCls:c}=o.useContext(nl),s=c("tooltip",t),[u,d,f]=yf(s),p=xf(s,a),h=p.arrowStyle,m=Object.assign(Object.assign({},l),p.overlayStyle),g=je()(d,f,s,"".concat(s,"-pure"),"".concat(s,"-placement-").concat(r),n,p.className);return u(o.createElement("div",{className:g,style:h},o.createElement("div",{className:"".concat(s,"-arrow")}),o.createElement(vu,Object.assign({},e,{className:d,prefixCls:s,overlayInnerStyle:m}),i)))};var Cf=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const kf=o.forwardRef(((e,t)=>{var n,r;const{prefixCls:i,openClassName:a,getTooltipContainer:l,overlayClassName:c,color:s,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:p,destroyTooltipOnHide:h,arrow:m=!0,title:g,overlay:v,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:w=!0}=e,x=!!m,[,S]=hc(),{getPopupContainer:C,getPrefixCls:k,direction:E}=o.useContext(nl),O=ys("Tooltip"),_=o.useRef(null),P=()=>{var e;null===(e=_.current)||void 0===e||e.forceAlign()};o.useImperativeHandle(t,(()=>({forceAlign:P,forcePopupAlign:()=>{O.deprecated(!1,"forcePopupAlign","forceAlign"),P()}})));const[M,N]=el(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),I=!g&&!v&&0!==g,R=o.useMemo((()=>{var e,t;let n=y;return"object"===typeof m&&(n=null!==(t=null!==(e=m.pointAtCenter)&&void 0!==e?e:m.arrowPointAtCenter)&&void 0!==t?t:y),b||of({arrowPointAtCenter:n,autoAdjustOverflow:w,arrowWidth:x?S.sizePopupArrow:0,borderRadius:S.borderRadius,offset:S.marginXXS,visibleFirst:!0})}),[y,m,b,S]),T=o.useMemo((()=>0===g?g:v||g||""),[v,g]),j=o.createElement(ff,null,"function"===typeof T?T():T),{getPopupContainer:A,placement:z="top",mouseEnterDelay:L=.1,mouseLeaveDelay:D=.1,overlayStyle:B,rootClassName:F}=e,H=Cf(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),W=k("tooltip",i),V=k(),K=e["data-popover-inject"];let q=M;"open"in e||"visible"in e||!I||(q=!1);const U=hs(d)&&!ms(d)?d:o.createElement("span",null,d),X=U.props,G=X.className&&"string"!==typeof X.className?X.className:je()(X.className,a||"".concat(W,"-open")),[$,Y,Q]=yf(W,!K),J=xf(W,s),Z=J.arrowStyle,ee=Object.assign(Object.assign({},u),J.overlayStyle),te=je()(c,{["".concat(W,"-rtl")]:"rtl"===E},J.className,F,Y,Q),[ne,oe]=Xd("Tooltip",H.zIndex),re=o.createElement(Wd,Object.assign({},H,{zIndex:ne,showArrow:x,placement:z,mouseEnterDelay:L,mouseLeaveDelay:D,prefixCls:W,overlayClassName:te,overlayStyle:Object.assign(Object.assign({},Z),B),getTooltipContainer:A||l||C,ref:_,builtinPlacements:R,overlay:j,visible:q,onVisibleChange:t=>{var n,o;N(!I&&t),I||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(o=e.onVisibleChange)||void 0===o||o.call(e,t))},afterVisibleChange:null!==f&&void 0!==f?f:p,overlayInnerStyle:ee,arrowContent:o.createElement("span",{className:"".concat(W,"-arrow-content")}),motion:{motionName:mn(V,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!h}),q?gs(U,{className:G}):U);return $(o.createElement(Vd.Provider,{value:oe},re))}));kf._InternalPanelDoNotUseOrYouWillBeFired=Sf;const Ef=kf;var Of=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const _f=e=>{let{prefixCls:t,label:n,htmlFor:r,labelCol:i,labelAlign:a,colon:l,required:c,requiredMark:s,tooltip:u}=e;var d;const[f]=gu("Form"),{vertical:p,labelAlign:h,labelCol:m,labelWrap:g,colon:v}=o.useContext(er);if(!n)return null;const b=i||m||{},y=a||h,w="".concat(t,"-item-label"),x=je()(w,"left"===y&&"".concat(w,"-left"),b.className,{["".concat(w,"-wrap")]:!!g});let S=n;const C=!0===l||!1!==v&&!1!==l;C&&!p&&"string"===typeof n&&""!==n.trim()&&(S=n.replace(/[:|\uff1a]\s*$/,""));const k=function(e){return e?"object"!==typeof e||o.isValidElement(e)?{title:e}:e:null}(u);if(k){const{icon:e=o.createElement(cu,null)}=k,n=Of(k,["icon"]),r=o.createElement(Ef,Object.assign({},n),o.cloneElement(e,{className:"".concat(t,"-item-tooltip"),title:"",onClick:e=>{e.preventDefault()},tabIndex:null}));S=o.createElement(o.Fragment,null,S,r)}const E="optional"===s,O="function"===typeof s;O?S=s(S,{required:!!c}):E&&!c&&(S=o.createElement(o.Fragment,null,S,o.createElement("span",{className:"".concat(t,"-item-optional"),title:""},(null===f||void 0===f?void 0:f.optional)||(null===(d=hu.Form)||void 0===d?void 0:d.optional))));const _=je()({["".concat(t,"-item-required")]:c,["".concat(t,"-item-required-mark-optional")]:E||O,["".concat(t,"-item-no-colon")]:!C});return o.createElement(Fs,Object.assign({},b,{className:x}),o.createElement("label",{htmlFor:r,className:_,title:"string"===typeof n?n:""},S))};const Pf={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"};var Mf=function(e,t){return o.createElement(au,Jt({},e,{ref:t,icon:Pf}))};const Nf=o.forwardRef(Mf);const If={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};var Rf=function(e,t){return o.createElement(au,Jt({},e,{ref:t,icon:If}))};const Tf=o.forwardRef(Rf);const jf={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"};var Af=function(e,t){return o.createElement(au,Jt({},e,{ref:t,icon:jf}))};const zf=o.forwardRef(Af);const Lf={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"};var Df=function(e,t){return o.createElement(au,Jt({},e,{ref:t,icon:Lf}))};const Bf=o.forwardRef(Df),Ff={success:Nf,warning:zf,error:Tf,validating:Bf};function Hf(e){let{children:t,errors:n,warnings:r,hasFeedback:i,validateStatus:a,prefixCls:l,meta:c,noStyle:s}=e;const u="".concat(l,"-item"),{feedbackIcons:d}=o.useContext(er),f=ls(n,r,c,null,!!i,a),{isFormItemInput:p,status:h,hasFeedback:m,feedbackIcon:g}=o.useContext(rr),v=o.useMemo((()=>{var e;let t;if(i){const a=!0!==i&&i.icons||d,l=f&&(null===(e=null===a||void 0===a?void 0:a({status:f,errors:n,warnings:r}))||void 0===e?void 0:e[f]),c=f&&Ff[f];t=!1!==l&&c?o.createElement("span",{className:je()("".concat(u,"-feedback-icon"),"".concat(u,"-feedback-icon-").concat(f))},l||o.createElement(c,null)):null}const a={status:f||"",errors:n,warnings:r,hasFeedback:!!i,feedbackIcon:t,isFormItemInput:!0};return s&&(a.status=(null!==f&&void 0!==f?f:h)||"",a.isFormItemInput=p,a.hasFeedback=!!(null!==i&&void 0!==i?i:m),a.feedbackIcon=void 0!==i?a.feedbackIcon:g),a}),[f,i,s,p,h]);return o.createElement(rr.Provider,{value:v},t)}var Wf=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function Vf(e){const{prefixCls:t,className:n,rootClassName:r,style:i,help:a,errors:l,warnings:c,validateStatus:s,meta:u,hasFeedback:d,hidden:f,children:p,fieldId:h,required:m,isRequired:g,onSubItemMetaChange:v}=e,b=Wf(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),y="".concat(t,"-item"),{requiredMark:w}=o.useContext(er),x=o.useRef(null),S=lr(l),C=lr(c),k=void 0!==a&&null!==a,E=!!(k||l.length||c.length),O=!!x.current&&Ss(x.current),[_,P]=o.useState(null);Zr((()=>{if(E&&x.current){const e=getComputedStyle(x.current);P(parseInt(e.marginBottom,10))}}),[E,O]);const M=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return ls(e?S:u.errors,e?C:u.warnings,u,"",!!d,s)}(),N=je()(y,n,r,{["".concat(y,"-with-help")]:k||S.length||C.length,["".concat(y,"-has-feedback")]:M&&d,["".concat(y,"-has-success")]:"success"===M,["".concat(y,"-has-warning")]:"warning"===M,["".concat(y,"-has-error")]:"error"===M,["".concat(y,"-is-validating")]:"validating"===M,["".concat(y,"-hidden")]:f});return o.createElement("div",{className:N,style:i,ref:x},o.createElement(As,Object.assign({className:"".concat(y,"-row")},Zo(b,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),o.createElement(_f,Object.assign({htmlFor:h},e,{requiredMark:w,required:null!==m&&void 0!==m?m:g,prefixCls:t})),o.createElement(Vs,Object.assign({},e,u,{errors:S,warnings:C,prefixCls:t,status:M,help:a,marginBottom:_,onErrorVisibleChanged:e=>{e||P(null)}}),o.createElement(tr.Provider,{value:v},o.createElement(Hf,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:d,validateStatus:M},p)))),!!_&&o.createElement("div",{className:"".concat(y,"-margin-offset"),style:{marginBottom:-_}}))}const Kf=o.memo((e=>{let{children:t}=e;return t}),((e,t)=>function(e,t){const n=Object.keys(e),o=Object.keys(t);return n.length===o.length&&n.every((n=>{const o=e[n],r=t[n];return o===r||"function"===typeof o||"function"===typeof r}))}(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every(((e,n)=>e===t.childProps[n]))));const qf=function(e){const{name:t,noStyle:n,className:r,dependencies:i,prefixCls:a,shouldUpdate:l,rules:c,children:s,required:u,label:d,messageVariables:f,trigger:p="onChange",validateTrigger:h,hidden:m,help:g}=e,{getPrefixCls:v}=o.useContext(nl),{name:b}=o.useContext(er),y=function(e){if("function"===typeof e)return e;const t=wn(e);return t.length<=1?t[0]:t}(s),w="function"===typeof y,x=o.useContext(tr),{validateTrigger:S}=o.useContext(In),C=void 0!==h?h:S,k=!(void 0===t||null===t),E=v("form",a),O=Bc(E),[_,P,M]=Dc(E,O);ys("Form.Item");const N=o.useContext(Rn),I=o.useRef(),[R,T]=function(e){const[t,n]=o.useState(e),r=(0,o.useRef)(null),i=(0,o.useRef)([]),a=(0,o.useRef)(!1);return o.useEffect((()=>(a.current=!1,()=>{a.current=!0,Kt.cancel(r.current),r.current=null})),[]),[t,function(e){a.current||(null===r.current&&(i.current=[],r.current=Kt((()=>{r.current=null,n((e=>{let t=e;return i.current.forEach((e=>{t=e(t)})),t}))}))),i.current.push(e))}]}({}),[j,A]=ft((()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}))),z=(e,t)=>{T((n=>{const o=Object.assign({},n),r=[].concat(Re(e.name.slice(0,-1)),Re(t)).join("__SPLIT__");return e.destroy?delete o[r]:o[r]=e,o}))},[L,D]=o.useMemo((()=>{const e=Re(j.errors),t=Re(j.warnings);return Object.values(R).forEach((n=>{e.push.apply(e,Re(n.errors||[])),t.push.apply(t,Re(n.warnings||[]))})),[e,t]}),[R,j.errors,j.warnings]),B=function(){const{itemRef:e}=o.useContext(er),t=o.useRef({});return function(n,o){const r=o&&"object"===typeof o&&o.ref,i=n.join("_");return t.current.name===i&&t.current.originRef===r||(t.current.name=i,t.current.originRef=r,t.current.ref=Ge(e(n),r)),t.current.ref}}();function F(t,i,a){return n&&!m?o.createElement(Hf,{prefixCls:E,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:j,errors:L,warnings:D,noStyle:!0},t):o.createElement(Vf,Object.assign({key:"row"},e,{className:je()(r,M,O,P),prefixCls:E,fieldId:i,isRequired:a,errors:L,warnings:D,meta:j,onSubItemMetaChange:z}),t)}if(!k&&!w&&!i)return _(F(y));let H={};return"string"===typeof d?H.label=d:t&&(H.label=String(t)),f&&(H=Object.assign(Object.assign({},H),f)),_(o.createElement(jo,Object.assign({},e,{messageVariables:H,trigger:p,validateTrigger:C,onMetaChange:e=>{const t=null===N||void 0===N?void 0:N.getKey(e.name);if(A(e.destroy?{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}:e,!0),n&&!1!==g&&x){let n=e.name;if(e.destroy)n=I.current||n;else if(void 0!==t){const[e,o]=t;n=[e].concat(Re(o)),I.current=n}x(e,n)}}}),((n,r,a)=>{const s=is(t).length&&r?r.name:[],d=as(s,b),f=void 0!==u?u:!(!c||!c.some((e=>{if(e&&"object"===typeof e&&e.required&&!e.warningOnly)return!0;if("function"===typeof e){const t=e(a);return t&&t.required&&!t.warningOnly}return!1}))),h=Object.assign({},n);let m=null;if(Array.isArray(y)&&k)m=y;else if(w&&(!l&&!i||k));else if(!i||w||k)if(hs(y)){const t=Object.assign(Object.assign({},y.props),h);if(t.id||(t.id=d),g||L.length>0||D.length>0||e.extra){const n=[];(g||L.length>0)&&n.push("".concat(d,"_help")),e.extra&&n.push("".concat(d,"_extra")),t["aria-describedby"]=n.join(" ")}L.length>0&&(t["aria-invalid"]="true"),f&&(t["aria-required"]="true"),Ye(y)&&(t.ref=B(s,y));new Set([].concat(Re(is(p)),Re(is(C)))).forEach((e=>{t[e]=function(){for(var t,n,o,r,i,a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];null===(o=h[e])||void 0===o||(t=o).call.apply(t,[h].concat(l)),null===(i=(r=y.props)[e])||void 0===i||(n=i).call.apply(n,[r].concat(l))}}));const n=[t["aria-required"],t["aria-invalid"],t["aria-describedby"]];m=o.createElement(Kf,{control:h,update:y,childProps:n},gs(y,t))}else m=w&&(l||i)&&!k?y(a):y;else;return F(m,d,f)})))};qf.useStatus=xs;const Uf=qf;var Xf=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Gf=e=>{var{prefixCls:t,children:n}=e,r=Xf(e,["prefixCls","children"]);const{getPrefixCls:i}=o.useContext(nl),a=i("form",t),l=o.useMemo((()=>({prefixCls:a,status:"error"})),[a]);return o.createElement(Ao,Object.assign({},r),((e,t,r)=>o.createElement(or.Provider,{value:l},n(e.map((e=>Object.assign(Object.assign({},e),{fieldKey:e.key}))),t,{errors:r.errors,warnings:r.warnings}))))};const $f=ps;$f.Item=Uf,$f.List=Gf,$f.ErrorList=Wc,$f.useForm=ss,$f.useFormInstance=function(){const{form:e}=(0,o.useContext)(er);return e},$f.useWatch=Yo,$f.Provider=nr,$f.create=()=>{};const Yf=$f;function Qf(e,t,n){const{focusElCls:o,focus:r,borderElCls:i}=n,a=i?"> *":"",l=["hover",r?"focus":null,"active"].filter(Boolean).map((e=>"&:".concat(e," ").concat(a))).join(",");return{["&-item:not(".concat(t,"-last-item)")]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},o?{["&".concat(o)]:{zIndex:2}}:{}),{["&[disabled] ".concat(a)]:{zIndex:0}})}}function Jf(e,t,n){const{borderElCls:o}=n,r=o?"> ".concat(o):"";return{["&-item:not(".concat(t,"-first-item):not(").concat(t,"-last-item) ").concat(r)]:{borderRadius:0},["&-item:not(".concat(t,"-last-item)").concat(t,"-first-item")]:{["& ".concat(r,", &").concat(e,"-sm ").concat(r,", &").concat(e,"-lg ").concat(r)]:{borderStartEndRadius:0,borderEndEndRadius:0}},["&-item:not(".concat(t,"-first-item)").concat(t,"-last-item")]:{["& ".concat(r,", &").concat(e,"-sm ").concat(r,", &").concat(e,"-lg ").concat(r)]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Zf(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,o="".concat(n,"-compact");return{[o]:Object.assign(Object.assign({},Qf(e,o,t)),Jf(n,o,t))}}function ep(e){return Ga(e,{inputAffixPadding:e.paddingXXS})}const tp=e=>{const{controlHeight:t,fontSize:n,lineHeight:o,lineWidth:r,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:c,paddingSM:s,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:h,controlOutlineWidth:m,controlOutline:g,colorErrorOutline:v,colorWarningOutline:b,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-n*o)/2*10)/10-r,0),paddingBlockSM:Math.max(Math.round((i-n*o)/2*10)/10-r,0),paddingBlockLG:Math.ceil((a-l*c)/2*10)/10-r,paddingInline:s-r,paddingInlineSM:u-r,paddingInlineLG:d-r,addonBg:f,activeBorderColor:h,hoverBorderColor:p,activeShadow:"0 0 0 ".concat(m,"px ").concat(g),errorActiveShadow:"0 0 0 ".concat(m,"px ").concat(v),warningActiveShadow:"0 0 0 ".concat(m,"px ").concat(b),hoverBg:y,activeBg:y,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}},np=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),op=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},np(Ga(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),rp=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),ip=(e,t)=>({["&".concat(e.componentCls,"-status-").concat(t.status,":not(").concat(e.componentCls,"-disabled)")]:Object.assign(Object.assign({},rp(e,t)),{["".concat(e.componentCls,"-prefix, ").concat(e.componentCls,"-suffix")]:{color:t.affixColor}})}),ap=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},rp(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{["&".concat(e.componentCls,"-disabled, &[disabled]")]:Object.assign({},op(e))}),ip(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),ip(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),lp=(e,t)=>({["&".concat(e.componentCls,"-group-wrapper-status-").concat(t.status)]:{["".concat(e.componentCls,"-group-addon")]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),cp=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({["".concat(e.componentCls,"-group")]:{"&-addon":{background:e.addonBg,border:"".concat(qr(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder)},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},lp(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),lp(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{["&".concat(e.componentCls,"-group-wrapper-disabled")]:{["".concat(e.componentCls,"-group-addon")]:Object.assign({},op(e))}})}),sp=(e,t)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},["&".concat(e.componentCls,"-disabled, &[disabled]")]:{color:e.colorTextDisabled}},t)}),up=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null===t||void 0===t?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),dp=(e,t)=>({["&".concat(e.componentCls,"-status-").concat(t.status,":not(").concat(e.componentCls,"-disabled)")]:Object.assign(Object.assign({},up(e,t)),{["".concat(e.componentCls,"-prefix, ").concat(e.componentCls,"-suffix")]:{color:t.affixColor}})}),fp=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},up(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary})),{["&".concat(e.componentCls,"-disabled, &[disabled]")]:Object.assign({},op(e))}),dp(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),dp(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),pp=(e,t)=>({["&".concat(e.componentCls,"-group-wrapper-status-").concat(t.status)]:{["".concat(e.componentCls,"-group-addon")]:{background:t.addonBg,color:t.addonColor}}}),hp=e=>({"&-filled":Object.assign(Object.assign(Object.assign({["".concat(e.componentCls,"-group")]:{"&-addon":{background:e.colorFillTertiary},["".concat(e.componentCls,"-filled:not(:focus):not(:focus-within)")]:{"&:not(:first-child)":{borderInlineStart:"".concat(qr(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit)},"&:not(:last-child)":{borderInlineEnd:"".concat(qr(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit)}}}},pp(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),pp(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{["&".concat(e.componentCls,"-group-wrapper-disabled")]:{["".concat(e.componentCls,"-group")]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:"".concat(qr(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderTop:"".concat(qr(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderBottom:"".concat(qr(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder)},"&-addon:last-child":{borderInlineEnd:"".concat(qr(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderTop:"".concat(qr(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderBottom:"".concat(qr(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder)}}}})}),mp=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:o,paddingInlineLG:r}=e;return{padding:"".concat(qr(t)," ").concat(qr(r)),fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:o}},gp=e=>({padding:"".concat(qr(e.paddingBlockSM)," ").concat(qr(e.paddingInlineSM)),fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),vp=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:"".concat(qr(e.paddingBlock)," ").concat(qr(e.paddingInline)),color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:"all ".concat(e.motionDurationMid)},(e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}))(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:"all ".concat(e.motionDurationSlow,", height 0s"),resize:"vertical"},"&-lg":Object.assign({},mp(e)),"&-sm":Object.assign({},gp(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),bp=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 ".concat(t,", &-lg > ").concat(t,"-group-addon")]:Object.assign({},mp(e)),["&-sm ".concat(t,", &-sm > ").concat(t,"-group-addon")]:Object.assign({},gp(e)),["&-lg ".concat(n,"-select-single ").concat(n,"-select-selector")]:{height:e.controlHeightLG},["&-sm ".concat(n,"-select-single ").concat(n,"-select-selector")]:{height:e.controlHeightSM},["> ".concat(t)]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},["".concat(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 ".concat(qr(e.paddingInline)),color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:"all ".concat(e.motionDurationSlow),lineHeight:1,["".concat(n,"-select")]:{margin:"".concat(qr(e.calc(e.paddingBlock).add(1).mul(-1).equal())," ").concat(qr(e.calc(e.paddingInline).mul(-1).equal())),["&".concat(n,"-select-single:not(").concat(n,"-select-customize-input):not(").concat(n,"-pagination-size-changer)")]:{["".concat(n,"-select-selector")]:{backgroundColor:"inherit",border:"".concat(qr(e.lineWidth)," ").concat(e.lineType," transparent"),boxShadow:"none"}},"&-open, &-focused":{["".concat(n,"-select-selector")]:{color:e.colorPrimary}}},["".concat(n,"-cascader-picker")]:{margin:"-9px ".concat(qr(e.calc(e.paddingInline).mul(-1).equal())),backgroundColor:"transparent",["".concat(n,"-cascader-input")]:{textAlign:"start",border:0,boxShadow:"none"}}}},["".concat(t)]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,["".concat(t,"-search-with-button &")]:{zIndex:0}}},["> ".concat(t,":first-child, ").concat(t,"-group-addon:first-child")]:{borderStartEndRadius:0,borderEndEndRadius:0,["".concat(n,"-select ").concat(n,"-select-selector")]:{borderStartEndRadius:0,borderEndEndRadius:0}},["> ".concat(t,"-affix-wrapper")]:{["&:not(:first-child) ".concat(t)]:{borderStartStartRadius:0,borderEndStartRadius:0},["&:not(:last-child) ".concat(t)]:{borderStartEndRadius:0,borderEndEndRadius:0}},["> ".concat(t,":last-child, ").concat(t,"-group-addon:last-child")]:{borderStartStartRadius:0,borderEndStartRadius:0,["".concat(n,"-select ").concat(n,"-select-selector")]:{borderStartStartRadius:0,borderEndStartRadius:0}},["".concat(t,"-affix-wrapper")]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,["".concat(t,"-search &")]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},["&:not(:first-child), ".concat(t,"-search &:not(:first-child)")]:{borderStartStartRadius:0,borderEndStartRadius:0}},["&".concat(t,"-group-compact")]:Object.assign(Object.assign({display:"block"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{["".concat(t,"-group-addon, ").concat(t,"-group-wrap, > ").concat(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},["\n & > ".concat(t,"-affix-wrapper,\n & > ").concat(t,"-number-affix-wrapper,\n & > ").concat(n,"-picker-range\n ")]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},["".concat(t)]:{float:"none"},["& > ".concat(n,"-select > ").concat(n,"-select-selector,\n & > ").concat(n,"-select-auto-complete ").concat(t,",\n & > ").concat(n,"-cascader-picker ").concat(t,",\n & > ").concat(t,"-group-wrapper ").concat(t)]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},["& > ".concat(n,"-select-focused")]:{zIndex:1},["& > ".concat(n,"-select > ").concat(n,"-select-arrow")]:{zIndex:1},["& > *:first-child,\n & > ".concat(n,"-select:first-child > ").concat(n,"-select-selector,\n & > ").concat(n,"-select-auto-complete:first-child ").concat(t,",\n & > ").concat(n,"-cascader-picker:first-child ").concat(t)]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},["& > *:last-child,\n & > ".concat(n,"-select:last-child > ").concat(n,"-select-selector,\n & > ").concat(n,"-cascader-picker:last-child ").concat(t,",\n & > ").concat(n,"-cascader-picker-focused:last-child ").concat(t)]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},["& > ".concat(n,"-select-auto-complete ").concat(t)]:{verticalAlign:"top"},["".concat(t,"-group-wrapper + ").concat(t,"-group-wrapper")]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),["".concat(t,"-affix-wrapper")]:{borderRadius:0}},["".concat(t,"-group-wrapper:not(:last-child)")]:{["&".concat(t,"-search > ").concat(t,"-group")]:{["& > ".concat(t,"-group-addon > ").concat(t,"-search-button")]:{borderRadius:0},["& > ".concat(t)]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},yp=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:o,calc:r}=e,i=r(n).sub(r(o).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ca(e)),vp(e)),ap(e)),fp(e)),sp(e)),{'&[type="color"]':{height:e.controlHeight,["&".concat(t,"-lg")]:{height:e.controlHeightLG},["&".concat(t,"-sm")]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},wp=e=>{const{componentCls:t}=e;return{["".concat(t,"-clear-icon")]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:"color ".concat(e.motionDurationSlow),"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:"0 ".concat(qr(e.inputAffixPadding))}}}},xp=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:o,motionDurationSlow:r,colorIcon:i,colorIconHover:a,iconCls:l}=e;return{["".concat(t,"-affix-wrapper")]:Object.assign(Object.assign(Object.assign(Object.assign({},vp(e)),{display:"inline-flex",["&:not(".concat(t,"-disabled):hover")]:{zIndex:1,["".concat(t,"-search-with-button &")]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},["> input".concat(t)]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},["".concat(t)]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:o},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),wp(e)),{["".concat(l).concat(t,"-password-icon")]:{color:i,cursor:"pointer",transition:"all ".concat(r),"&:hover":{color:a}}})}},Sp=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:o}=e;return{["".concat(t,"-group")]:Object.assign(Object.assign(Object.assign({},Ca(e)),bp(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{["".concat(t,"-group-addon")]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{["".concat(t,"-group-addon")]:{borderRadius:o}}},cp(e)),hp(e)),{["&:not(".concat(t,"-compact-first-item):not(").concat(t,"-compact-last-item)").concat(t,"-compact-item")]:{["".concat(t,", ").concat(t,"-group-addon")]:{borderRadius:0}},["&:not(".concat(t,"-compact-last-item)").concat(t,"-compact-first-item")]:{["".concat(t,", ").concat(t,"-group-addon")]:{borderStartEndRadius:0,borderEndEndRadius:0}},["&:not(".concat(t,"-compact-first-item)").concat(t,"-compact-last-item")]:{["".concat(t,", ").concat(t,"-group-addon")]:{borderStartStartRadius:0,borderEndStartRadius:0}},["&:not(".concat(t,"-compact-last-item)").concat(t,"-compact-item")]:{["".concat(t,"-affix-wrapper")]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},Cp=e=>{const{componentCls:t,antCls:n}=e,o="".concat(t,"-search");return{[o]:{["".concat(t)]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,["+ ".concat(t,"-group-addon ").concat(o,"-button:not(").concat(n,"-btn-primary)")]:{borderInlineStartColor:e.colorPrimaryHover}}},["".concat(t,"-affix-wrapper")]:{borderRadius:0},["".concat(t,"-lg")]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal({unit:!1})},["> ".concat(t,"-group")]:{["> ".concat(t,"-group-addon:last-child")]:{insetInlineStart:-1,padding:0,border:0,["".concat(o,"-button")]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},["".concat(o,"-button:not(").concat(n,"-btn-primary)")]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},["&".concat(n,"-btn-loading::before")]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},["".concat(o,"-button")]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},["&-large ".concat(o,"-button")]:{height:e.controlHeightLG},["&-small ".concat(o,"-button")]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},["&".concat(t,"-compact-item")]:{["&:not(".concat(t,"-compact-last-item)")]:{["".concat(t,"-group-addon")]:{["".concat(t,"-search-button")]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},["&:not(".concat(t,"-compact-first-item)")]:{["".concat(t,",").concat(t,"-affix-wrapper")]:{borderRadius:0}},["> ".concat(t,"-group-addon ").concat(t,"-search-button,\n > ").concat(t,",\n ").concat(t,"-affix-wrapper")]:{"&:hover,&:focus,&:active":{zIndex:2}},["> ".concat(t,"-affix-wrapper-focused")]:{zIndex:2}}}}},kp=e=>{const{componentCls:t,paddingLG:n}=e,o="".concat(t,"-textarea");return{[o]:{position:"relative","&-show-count":{["> ".concat(t)]:{height:"100%"},["".concat(t,"-data-count")]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{["> ".concat(t)]:{paddingInlineEnd:n}},["&-affix-wrapper".concat(o,"-has-feedback")]:{["".concat(t)]:{paddingInlineEnd:n}},["&-affix-wrapper".concat(t,"-affix-wrapper")]:{padding:0,["> textarea".concat(t)]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},["".concat(t,"-suffix")]:{margin:0,"> *:not(:last-child)":{marginInline:0},["".concat(t,"-clear-icon")]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},["".concat(o,"-suffix")]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},Ep=e=>{const{componentCls:t}=e;return{["".concat(t,"-out-of-range")]:{["&, & input, & textarea, ".concat(t,"-show-count-suffix, ").concat(t,"-data-count")]:{color:e.colorError}}}},Op=Oc("Input",(e=>{const t=Ga(e,ep(e));return[yp(t),kp(t),xp(t),Sp(t),Cp(t),Ep(t),Zf(t)]}),tp),_p=e=>{const{getPrefixCls:t,direction:n}=(0,o.useContext)(nl),{prefixCls:r,className:i}=e,a=t("input-group",r),l=t("input"),[c,s]=Op(l),u=je()(a,{["".concat(a,"-lg")]:"large"===e.size,["".concat(a,"-sm")]:"small"===e.size,["".concat(a,"-compact")]:e.compact,["".concat(a,"-rtl")]:"rtl"===n},s,i),d=(0,o.useContext)(rr),f=(0,o.useMemo)((()=>Object.assign(Object.assign({},d),{isFormItemInput:!1})),[d]);return c(o.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},o.createElement(rr.Provider,{value:f},e.children)))};function Pp(e,t,n,o){if(n){var r=t;if("click"===t.type){var i=e.cloneNode(!0);return r=Object.create(t,{target:{value:i},currentTarget:{value:i}}),i.value="",void n(r)}if("file"!==e.type&&void 0!==o){var a=e.cloneNode(!0);return r=Object.create(t,{target:{value:a},currentTarget:{value:a}}),a.value=o,void n(r)}n(r)}}const Mp=function(e){var t,n,r=e.inputElement,i=e.children,a=e.prefixCls,l=e.prefix,c=e.suffix,s=e.addonBefore,u=e.addonAfter,d=e.className,f=e.style,p=e.disabled,h=e.readOnly,m=e.focused,g=e.triggerFocus,v=e.allowClear,b=e.value,y=e.handleReset,w=e.hidden,x=e.classes,S=e.classNames,C=e.dataAttrs,k=e.styles,E=e.components,O=null!==i&&void 0!==i?i:r,_=(null===E||void 0===E?void 0:E.affixWrapper)||"span",P=(null===E||void 0===E?void 0:E.groupWrapper)||"span",M=(null===E||void 0===E?void 0:E.wrapper)||"span",N=(null===E||void 0===E?void 0:E.groupAddon)||"span",I=(0,o.useRef)(null),R=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e),T=(0,o.cloneElement)(O,{value:b,className:je()(O.props.className,!R&&(null===S||void 0===S?void 0:S.variant))||null});if(R){var j,A=null;if(v){var z,L=!p&&!h&&b,D="".concat(a,"-clear-icon"),B="object"===Ae(v)&&null!==v&&void 0!==v&&v.clearIcon?v.clearIcon:"\u2716";A=o.createElement("span",{onClick:y,onMouseDown:function(e){return e.preventDefault()},className:je()(D,(z={},Le(z,"".concat(D,"-hidden"),!L),Le(z,"".concat(D,"-has-suffix"),!!c),z)),role:"button",tabIndex:-1},B)}var F="".concat(a,"-affix-wrapper"),H=je()(F,(Le(j={},"".concat(a,"-disabled"),p),Le(j,"".concat(F,"-disabled"),p),Le(j,"".concat(F,"-focused"),m),Le(j,"".concat(F,"-readonly"),h),Le(j,"".concat(F,"-input-with-clear-btn"),c&&v&&b),j),null===x||void 0===x?void 0:x.affixWrapper,null===S||void 0===S?void 0:S.affixWrapper,null===S||void 0===S?void 0:S.variant),W=(c||v)&&o.createElement("span",{className:je()("".concat(a,"-suffix"),null===S||void 0===S?void 0:S.suffix),style:null===k||void 0===k?void 0:k.suffix},A,c);T=o.createElement(_,Jt({className:H,style:null===k||void 0===k?void 0:k.affixWrapper,onClick:function(e){var t;null!==(t=I.current)&&void 0!==t&&t.contains(e.target)&&(null===g||void 0===g||g())}},null===C||void 0===C?void 0:C.affixWrapper,{ref:I}),l&&o.createElement("span",{className:je()("".concat(a,"-prefix"),null===S||void 0===S?void 0:S.prefix),style:null===k||void 0===k?void 0:k.prefix},l),T,W)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(e)){var V="".concat(a,"-group"),K="".concat(V,"-addon"),q="".concat(V,"-wrapper"),U=je()("".concat(a,"-wrapper"),V,null===x||void 0===x?void 0:x.wrapper,null===S||void 0===S?void 0:S.wrapper),X=je()(q,Le({},"".concat(q,"-disabled"),p),null===x||void 0===x?void 0:x.group,null===S||void 0===S?void 0:S.groupWrapper);T=o.createElement(P,{className:X},o.createElement(M,{className:U},s&&o.createElement(N,{className:K},s),T,u&&o.createElement(N,{className:K},u)))}return o.cloneElement(T,{className:je()(null===(t=T.props)||void 0===t?void 0:t.className,d)||null,style:Be(Be({},null===(n=T.props)||void 0===n?void 0:n.style),f),hidden:w})};var Np=["show"];function Ip(e,t){return o.useMemo((function(){var n={};t&&(n.show="object"===Ae(t)&&t.formatter?t.formatter:!!t);var o=n=Be(Be({},n),e),r=o.show,i=Qe(o,Np);return Be(Be({},i),{},{show:!!r,showFormatter:"function"===typeof r?r:void 0,strategy:i.strategy||function(e){return e.length}})}),[e,t])}var Rp=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Tp=(0,o.forwardRef)((function(e,t){var n=e.autoComplete,r=e.onChange,i=e.onFocus,a=e.onBlur,l=e.onPressEnter,c=e.onKeyDown,s=e.prefixCls,u=void 0===s?"rc-input":s,d=e.disabled,f=e.htmlSize,p=e.className,h=e.maxLength,m=e.suffix,g=e.showCount,v=e.count,b=e.type,y=void 0===b?"text":b,w=e.classes,x=e.classNames,S=e.styles,C=e.onCompositionStart,k=e.onCompositionEnd,E=Qe(e,Rp),O=We((0,o.useState)(!1),2),_=O[0],P=O[1],M=(0,o.useRef)(!1),N=(0,o.useRef)(null),I=function(e){N.current&&function(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var o=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}(N.current,e)},R=We(el(e.defaultValue,{value:e.value}),2),T=R[0],j=R[1],A=void 0===T||null===T?"":String(T),z=We((0,o.useState)(null),2),L=z[0],D=z[1],B=Ip(v,g),F=B.max||h,H=B.strategy(A),W=!!F&&H>F;(0,o.useImperativeHandle)(t,(function(){return{focus:I,blur:function(){var e;null===(e=N.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var o;null===(o=N.current)||void 0===o||o.setSelectionRange(e,t,n)},select:function(){var e;null===(e=N.current)||void 0===e||e.select()},input:N.current}})),(0,o.useEffect)((function(){P((function(e){return(!e||!d)&&e}))}),[d]);var V=function(e,t,n){var o,i,a=t;if(!M.current&&B.exceedFormatter&&B.max&&B.strategy(t)>B.max)t!==(a=B.exceedFormatter(t,{max:B.max}))&&D([(null===(o=N.current)||void 0===o?void 0:o.selectionStart)||0,(null===(i=N.current)||void 0===i?void 0:i.selectionEnd)||0]);else if("compositionEnd"===n.source)return;j(a),N.current&&Pp(N.current,e,r,a)};(0,o.useEffect)((function(){var e;L&&(null===(e=N.current)||void 0===e||e.setSelectionRange.apply(e,Re(L)))}),[L]);var K=function(e){V(e,e.target.value,{source:"change"})},q=function(e){M.current=!1,V(e,e.currentTarget.value,{source:"compositionEnd"}),null===k||void 0===k||k(e)},U=function(e){l&&"Enter"===e.key&&l(e),null===c||void 0===c||c(e)},X=function(e){P(!0),null===i||void 0===i||i(e)},G=function(e){P(!1),null===a||void 0===a||a(e)},$=W&&"".concat(u,"-out-of-range");return o.createElement(Mp,Jt({},E,{prefixCls:u,className:je()(p,$),handleReset:function(e){j(""),I(),N.current&&Pp(N.current,e,r)},value:A,focused:_,triggerFocus:I,suffix:function(){var e=Number(F)>0;if(m||B.show){var t=B.showFormatter?B.showFormatter({value:A,count:H,maxLength:F}):"".concat(H).concat(e?" / ".concat(F):"");return o.createElement(o.Fragment,null,B.show&&o.createElement("span",{className:je()("".concat(u,"-show-count-suffix"),Le({},"".concat(u,"-show-count-has-suffix"),!!m),null===x||void 0===x?void 0:x.count),style:Be({},null===S||void 0===S?void 0:S.count)},t),m)}return null}(),disabled:d,classes:w,classNames:x,styles:S}),function(){var t=Zo(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]);return o.createElement("input",Jt({autoComplete:n},t,{onChange:K,onFocus:X,onBlur:G,onKeyDown:U,className:je()(u,Le({},"".concat(u,"-disabled"),d),null===x||void 0===x?void 0:x.input),style:null===S||void 0===S?void 0:S.input,ref:N,size:f,type:y,onCompositionStart:function(e){M.current=!0,null===C||void 0===C||C(e)},onCompositionEnd:q}))}())}));const jp=Tp;function Ap(e,t,n){return je()({["".concat(e,"-status-success")]:"success"===t,["".concat(e,"-status-warning")]:"warning"===t,["".concat(e,"-status-error")]:"error"===t,["".concat(e,"-status-validating")]:"validating"===t,["".concat(e,"-has-feedback")]:n})}const zp=(e,t)=>t||e;function Lp(e,t){const n=(0,o.useRef)([]),r=()=>{n.current.push(setTimeout((()=>{var t,n,o,r;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(o=e.current)||void 0===o?void 0:o.input.hasAttribute("value"))&&(null===(r=e.current)||void 0===r||r.input.removeAttribute("value"))})))};return(0,o.useEffect)((()=>(t&&r(),()=>n.current.forEach((e=>{e&&clearTimeout(e)})))),[]),r}const Dp=["outlined","borderless","filled"],Bp=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;const n=(0,o.useContext)(ar);let r;r="undefined"!==typeof e?e:!1===t?"borderless":null!==n&&void 0!==n?n:"outlined";return[r,Dp.includes(r)]},Fp=e=>{let t;return"object"===typeof e&&(null===e||void 0===e?void 0:e.clearIcon)?t=e:e&&(t={clearIcon:o.createElement(Tf,null)}),t};var Hp=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Wp=(0,o.forwardRef)(((e,t)=>{var n;const{prefixCls:r,bordered:i=!0,status:a,size:l,disabled:c,onBlur:s,onFocus:u,suffix:d,allowClear:f,addonAfter:p,addonBefore:h,className:m,style:g,styles:v,rootClassName:b,onChange:y,classNames:w,variant:x}=e,S=Hp(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);const{getPrefixCls:C,direction:k,input:E}=o.useContext(nl),O=C("input",r),_=(0,o.useRef)(null),P=Bc(O),[M,N,I]=Op(O,P),{compactSize:R,compactItemClassnames:T}=df(O,k),j=$c((e=>{var t;return null!==(t=null!==l&&void 0!==l?l:R)&&void 0!==t?t:e})),A=o.useContext(qc),z=null!==c&&void 0!==c?c:A,{status:L,hasFeedback:D,feedbackIcon:B}=(0,o.useContext)(rr),F=zp(L,a),H=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!D;(0,o.useRef)(H);const W=Lp(_,!0),V=(D||d)&&o.createElement(o.Fragment,null,d,D&&B),K=Fp(f),[q,U]=Bp(x,i);return M(o.createElement(jp,Object.assign({ref:Ge(t,_),prefixCls:O,autoComplete:null===E||void 0===E?void 0:E.autoComplete},S,{disabled:z,onBlur:e=>{W(),null===s||void 0===s||s(e)},onFocus:e=>{W(),null===u||void 0===u||u(e)},style:Object.assign(Object.assign({},null===E||void 0===E?void 0:E.style),g),styles:Object.assign(Object.assign({},null===E||void 0===E?void 0:E.styles),v),suffix:V,allowClear:K,className:je()(m,b,I,P,T,null===E||void 0===E?void 0:E.className),onChange:e=>{W(),null===y||void 0===y||y(e)},addonAfter:p&&o.createElement(ff,null,o.createElement(ir,{override:!0,status:!0},p)),addonBefore:h&&o.createElement(ff,null,o.createElement(ir,{override:!0,status:!0},h)),classNames:Object.assign(Object.assign(Object.assign({},w),null===E||void 0===E?void 0:E.classNames),{input:je()({["".concat(O,"-sm")]:"small"===j,["".concat(O,"-lg")]:"large"===j,["".concat(O,"-rtl")]:"rtl"===k},null===w||void 0===w?void 0:w.input,null===(n=null===E||void 0===E?void 0:E.classNames)||void 0===n?void 0:n.input,N),variant:je()({["".concat(O,"-").concat(q)]:U},Ap(O,F)),affixWrapper:je()({["".concat(O,"-affix-wrapper-sm")]:"small"===j,["".concat(O,"-affix-wrapper-lg")]:"large"===j,["".concat(O,"-affix-wrapper-rtl")]:"rtl"===k},N),wrapper:je()({["".concat(O,"-group-rtl")]:"rtl"===k},N),groupWrapper:je()({["".concat(O,"-group-wrapper-sm")]:"small"===j,["".concat(O,"-group-wrapper-lg")]:"large"===j,["".concat(O,"-group-wrapper-rtl")]:"rtl"===k,["".concat(O,"-group-wrapper-").concat(q)]:U},Ap("".concat(O,"-group-wrapper"),F,D),N)})})))})),Vp=Wp;const Kp={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"};var qp=function(e,t){return o.createElement(au,Jt({},e,{ref:t,icon:Kp}))};const Up=o.forwardRef(qp);const Xp={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"};var Gp=function(e,t){return o.createElement(au,Jt({},e,{ref:t,icon:Xp}))};const $p=o.forwardRef(Gp);var Yp=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Qp=e=>e?o.createElement($p,null):o.createElement(Up,null),Jp={click:"onClick",hover:"onMouseOver"},Zp=o.forwardRef(((e,t)=>{const{visibilityToggle:n=!0}=e,r="object"===typeof n&&void 0!==n.visible,[i,a]=(0,o.useState)((()=>!!r&&n.visible)),l=(0,o.useRef)(null);o.useEffect((()=>{r&&a(n.visible)}),[r,n]);const c=Lp(l),s=()=>{const{disabled:t}=e;t||(i&&c(),a((e=>{var t;const o=!e;return"object"===typeof n&&(null===(t=n.onVisibleChange)||void 0===t||t.call(n,o)),o})))},{className:u,prefixCls:d,inputPrefixCls:f,size:p}=e,h=Yp(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:m}=o.useContext(nl),g=m("input",f),v=m("input-password",d),b=n&&(t=>{const{action:n="click",iconRender:r=Qp}=e,a=Jp[n]||"",l=r(i),c={[a]:s,className:"".concat(t,"-icon"),key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return o.cloneElement(o.isValidElement(l)?l:o.createElement("span",null,l),c)})(v),y=je()(v,u,{["".concat(v,"-").concat(p)]:!!p}),w=Object.assign(Object.assign({},Zo(h,["suffix","iconRender","visibilityToggle"])),{type:i?"text":"password",className:y,prefixCls:g,suffix:b});return p&&(w.size=p),o.createElement(Vp,Object.assign({ref:Ge(t,l)},w))}));const eh=Zp;const th={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"};var nh=function(e,t){return o.createElement(au,Jt({},e,{ref:t,icon:th}))};const oh=o.forwardRef(nh),rh=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:"var(--wave-color, ".concat(n,")"),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:["box-shadow 0.4s ".concat(e.motionEaseOutCirc),"opacity 2s ".concat(e.motionEaseOutCirc)].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:["box-shadow 0.3s ".concat(e.motionEaseInOut),"opacity 0.35s ".concat(e.motionEaseInOut)].join(",")}}}}},ih=kc("Wave",(e=>[rh(e)]));var ah,lh=Be({},l),ch=lh.version,sh=lh.render,uh=lh.unmountComponentAtNode;try{Number((ch||"").split(".")[0])>=18&&(ah=lh.createRoot)}catch(Qc){}function dh(e){var t=lh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===Ae(t)&&(t.usingClientEntryPoint=e)}var fh="__rc_react_root__";function ph(e,t){ah?function(e,t){dh(!0);var n=t[fh]||ah(t);dh(!1),n.render(e),t[fh]=n}(e,t):function(e,t){sh(e,t)}(e,t)}function hh(e){return mh.apply(this,arguments)}function mh(){return(mh=yn(vn().mark((function e(t){return vn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[fh])||void 0===e||e.unmount(),delete t[fh]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function gh(e){uh(e)}function vh(){return(vh=yn(vn().mark((function e(t){return vn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===ah){e.next=2;break}return e.abrupt("return",hh(t));case 2:gh(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function bh(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(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])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}const yh="ant-wave-target";function wh(e){return Number.isNaN(e)?0:e}const xh=e=>{const{className:t,target:n,component:r}=e,i=o.useRef(null),[a,l]=o.useState(null),[c,s]=o.useState([]),[u,d]=o.useState(0),[f,p]=o.useState(0),[h,m]=o.useState(0),[g,v]=o.useState(0),[b,y]=o.useState(!1),w={left:u,top:f,width:h,height:g,borderRadius:c.map((e=>"".concat(e,"px"))).join(" ")};function x(){const e=getComputedStyle(n);l(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:o}=getComputedStyle(e);return bh(t)?t:bh(n)?n:bh(o)?o:null}(n));const t="static"===e.position,{borderLeftWidth:o,borderTopWidth:r}=e;d(t?n.offsetLeft:wh(-parseFloat(o))),p(t?n.offsetTop:wh(-parseFloat(r))),m(n.offsetWidth),v(n.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:c,borderBottomRightRadius:u}=e;s([i,a,u,c].map((e=>wh(parseFloat(e)))))}if(a&&(w["--wave-color"]=a),o.useEffect((()=>{if(n){const e=Kt((()=>{x(),y(!0)}));let t;return"undefined"!==typeof ResizeObserver&&(t=new ResizeObserver(x),t.observe(n)),()=>{Kt.cancel(e),null===t||void 0===t||t.disconnect()}}}),[]),!b)return null;const S=("Checkbox"===r||"Radio"===r)&&(null===n||void 0===n?void 0:n.classList.contains(yh));return o.createElement(un,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=i.current)||void 0===n?void 0:n.parentElement;(function(e){return vh.apply(this,arguments)})(e).then((()=>{null===e||void 0===e||e.remove()}))}return!1}},(e=>{let{className:n}=e;return o.createElement("div",{ref:i,className:je()(t,{"wave-quick":S},n),style:w})}))},Sh=(e,t)=>{var n;const{component:r}=t;if("Checkbox"===r&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null===e||void 0===e||e.insertBefore(i,null===e||void 0===e?void 0:e.firstChild),ph(o.createElement(xh,Object.assign({},t,{target:e})),i)};const Ch=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:i}=(0,o.useContext)(nl),a=(0,o.useRef)(null),l=i("wave"),[,c]=ih(l),s=function(e,t,n){const{wave:r}=o.useContext(nl),[,i,a]=hc(),l=Ja((o=>{const l=e.current;if((null===r||void 0===r?void 0:r.disabled)||!l)return;const c=l.querySelector(".".concat(yh))||l,{showEffect:s}=r||{};(s||Sh)(c,{className:t,token:i,component:n,event:o,hashId:a})})),c=o.useRef();return e=>{Kt.cancel(c.current),c.current=Kt((()=>{l(e)}))}}(a,je()(l,c),r);if(o.useEffect((()=>{const e=a.current;if(!e||1!==e.nodeType||n)return;const t=t=>{!Ss(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||s(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[n]),!o.isValidElement(t))return null!==t&&void 0!==t?t:null;return gs(t,{ref:Ye(t)?Ge(t.ref,a):a})};var kh=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Eh=o.createContext(void 0),Oh=e=>{const{getPrefixCls:t,direction:n}=o.useContext(nl),{prefixCls:r,size:i,className:a}=e,l=kh(e,["prefixCls","size","className"]),c=t("btn-group",r),[,,s]=hc();let u="";switch(i){case"large":u="lg";break;case"small":u="sm"}const d=je()(c,{["".concat(c,"-").concat(u)]:u,["".concat(c,"-rtl")]:"rtl"===n},a,s);return o.createElement(Eh.Provider,{value:i},o.createElement("div",Object.assign({},l,{className:d})))},_h=/^[\u4e00-\u9fa5]{2}$/,Ph=_h.test.bind(_h);function Mh(e){return"string"===typeof e}function Nh(e){return"text"===e||"link"===e}function Ih(e,t){let n=!1;const r=[];return o.Children.forEach(e,(e=>{const t=typeof e,o="string"===t||"number"===t;if(n&&o){const t=r.length-1,n=r[t];r[t]="".concat(n).concat(e)}else r.push(e);n=o})),o.Children.map(r,(e=>function(e,t){if(null===e||void 0===e)return;const n=t?" ":"";return"string"!==typeof e&&"number"!==typeof e&&Mh(e.type)&&Ph(e.props.children)?gs(e,{children:e.props.children.split("").join(n)}):Mh(e)?Ph(e)?o.createElement("span",null,e.split("").join(n)):o.createElement("span",null,e):ms(e)?o.createElement("span",null,e):e}(e,t)))}const Rh=(0,o.forwardRef)(((e,t)=>{const{className:n,style:r,children:i,prefixCls:a}=e,l=je()("".concat(a,"-icon"),n);return o.createElement("span",{ref:t,className:l,style:r},i)})),Th=Rh,jh=(0,o.forwardRef)(((e,t)=>{let{prefixCls:n,className:r,style:i,iconClassName:a}=e;const l=je()("".concat(n,"-loading-icon"),r);return o.createElement(Th,{prefixCls:n,className:l,style:i,ref:t},o.createElement(Bf,{className:a}))})),Ah=()=>({width:0,opacity:0,transform:"scale(0)"}),zh=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Lh=e=>{const{prefixCls:t,loading:n,existIcon:r,className:i,style:a}=e,l=!!n;return r?o.createElement(jh,{prefixCls:t,className:i,style:a}):o.createElement(un,{visible:l,motionName:"".concat(t,"-loading-icon-motion"),motionLeave:l,removeOnLeave:!0,onAppearStart:Ah,onAppearActive:zh,onEnterStart:Ah,onEnterActive:zh,onLeaveStart:zh,onLeaveActive:Ah},((e,n)=>{let{className:r,style:l}=e;return o.createElement(jh,{prefixCls:t,className:i,style:Object.assign(Object.assign({},a),l),ref:n,iconClassName:r})}))},Dh=(e,t)=>({["> span, > ".concat(e)]:{"&:not(:last-child)":{["&, & > ".concat(e)]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{["&, & > ".concat(e)]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Bh=e=>{const{componentCls:t,fontSize:n,lineWidth:o,groupBorderColor:r,colorErrorHover:i}=e;return{["".concat(t,"-group")]:[{position:"relative",display:"inline-flex",["> span, > ".concat(t)]:{"&:not(:last-child)":{["&, & > ".concat(t)]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(o).mul(-1).equal(),["&, & > ".concat(t)]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},["".concat(t,"-icon-only")]:{fontSize:n}},Dh("".concat(t,"-primary"),r),Dh("".concat(t,"-danger"),i)]}},Fh=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:o}=e;return Ga(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:o,buttonIconOnlyFontSize:n})},Hh=e=>{var t,n,o,r,i,a;const l=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,c=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,s=null!==(o=e.contentFontSizeLG)&&void 0!==o?o:e.fontSizeLG,u=null!==(r=e.contentLineHeight)&&void 0!==r?r:Zl(l),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:Zl(c),f=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:Zl(s);return{fontWeight:400,defaultShadow:"0 ".concat(e.controlOutlineWidth,"px 0 ").concat(e.controlTmpOutline),primaryShadow:"0 ".concat(e.controlOutlineWidth,"px 0 ").concat(e.controlOutline),dangerShadow:"0 ".concat(e.controlOutlineWidth,"px 0 ").concat(e.colorErrorOutline),primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,contentFontSize:l,contentFontSizeSM:c,contentFontSizeLG:s,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-l*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-s*f)/2-e.lineWidth,0)}},Wh=e=>{const{componentCls:t,iconCls:n,fontWeight:o}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:o,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:"".concat(qr(e.lineWidth)," ").concat(e.lineType," transparent"),cursor:"pointer",transition:"all ".concat(e.motionDurationMid," ").concat(e.motionEaseInOut),userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},["".concat(t,"-icon")]:{lineHeight:0},["> ".concat(n," + span, > span + ").concat(n)]:{marginInlineStart:e.marginXS},["&:not(".concat(t,"-icon-only) > ").concat(t,"-icon")]:{["&".concat(t,"-loading-icon, &:not(:last-child)")]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},_a(e)),["&".concat(t,"-two-chinese-chars::first-letter")]:{letterSpacing:"0.34em"},["&".concat(t,"-two-chinese-chars > *:not(").concat(n,")")]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},["&-icon-only".concat(t,"-compact-item")]:{flex:"none"}}}},Vh=(e,t,n)=>({["&:not(:disabled):not(".concat(e,"-disabled)")]:{"&:hover":t,"&:active":n}}),Kh=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),qh=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),Uh=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Xh=(e,t,n,o,r,i,a,l)=>({["&".concat(e,"-background-ghost")]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:o||void 0,boxShadow:"none"},Vh(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:i||void 0}})}),Gh=e=>({["&:disabled, &".concat(e.componentCls,"-disabled")]:Object.assign({},Uh(e))}),$h=e=>Object.assign({},Gh(e)),Yh=e=>({["&:disabled, &".concat(e.componentCls,"-disabled")]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Qh=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$h(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),Vh(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Xh(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{["&".concat(e.componentCls,"-dangerous")]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},Vh(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Xh(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Gh(e))}),Jh=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$h(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),Vh(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),Xh(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{["&".concat(e.componentCls,"-dangerous")]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},Vh(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),Xh(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Gh(e))}),Zh=e=>Object.assign(Object.assign({},Qh(e)),{borderStyle:"dashed"}),em=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Vh(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Yh(e)),{["&".concat(e.componentCls,"-dangerous")]:Object.assign(Object.assign({color:e.colorError},Vh(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),Yh(e))}),tm=e=>Object.assign(Object.assign(Object.assign({},Vh(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),Yh(e)),{["&".concat(e.componentCls,"-dangerous")]:Object.assign(Object.assign({color:e.colorError},Yh(e)),Vh(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBg}))}),nm=e=>{const{componentCls:t}=e;return{["".concat(t,"-default")]:Qh(e),["".concat(t,"-primary")]:Jh(e),["".concat(t,"-dashed")]:Zh(e),["".concat(t,"-link")]:em(e),["".concat(t,"-text")]:tm(e),["".concat(t,"-ghost")]:Xh(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},om=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:o,fontSize:r,lineHeight:i,borderRadius:a,buttonPaddingHorizontal:l,iconCls:c,buttonPaddingVertical:s}=e,u="".concat(n,"-icon-only");return[{["".concat(t)]:{fontSize:r,lineHeight:i,height:o,padding:"".concat(qr(s)," ").concat(qr(l)),borderRadius:a,["&".concat(u)]:{width:o,paddingInlineStart:0,paddingInlineEnd:0,["&".concat(n,"-round")]:{width:"auto"},[c]:{fontSize:e.buttonIconOnlyFontSize}},["&".concat(n,"-loading")]:{opacity:e.opacityLoading,cursor:"default"},["".concat(n,"-loading-icon")]:{transition:"width ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOut,", opacity ").concat(e.motionDurationSlow," ").concat(e.motionEaseInOut)}}},{["".concat(n).concat(n,"-circle").concat(t)]:Kh(e)},{["".concat(n).concat(n,"-round").concat(t)]:qh(e)}]},rm=e=>{const t=Ga(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return om(t,e.componentCls)},im=e=>{const t=Ga(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return om(t,"".concat(e.componentCls,"-sm"))},am=e=>{const t=Ga(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return om(t,"".concat(e.componentCls,"-lg"))},lm=e=>{const{componentCls:t}=e;return{[t]:{["&".concat(t,"-block")]:{width:"100%"}}}},cm=Oc("Button",(e=>{const t=Fh(e);return[Wh(t),rm(t),im(t),am(t),lm(t),nm(t),Bh(t)]}),Hh,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function sm(e,t){return{["&-item:not(".concat(t,"-last-item)")]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function um(e){const t="".concat(e.componentCls,"-compact-vertical");return{[t]:Object.assign(Object.assign({},sm(e,t)),(n=e.componentCls,o=t,{["&-item:not(".concat(o,"-first-item):not(").concat(o,"-last-item)")]:{borderRadius:0},["&-item".concat(o,"-first-item:not(").concat(o,"-last-item)")]:{["&, &".concat(n,"-sm, &").concat(n,"-lg")]:{borderEndEndRadius:0,borderEndStartRadius:0}},["&-item".concat(o,"-last-item:not(").concat(o,"-first-item)")]:{["&, &".concat(n,"-sm, &").concat(n,"-lg")]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,o}const dm=e=>{const{componentCls:t,calc:n}=e;return{[t]:{["&-compact-item".concat(t,"-primary")]:{["&:not([disabled]) + ".concat(t,"-compact-item").concat(t,"-primary:not([disabled])")]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:"calc(100% + ".concat(qr(e.lineWidth)," * 2)"),backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{["&".concat(t,"-primary")]:{["&:not([disabled]) + ".concat(t,"-compact-vertical-item").concat(t,"-primary:not([disabled])")]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:"calc(100% + ".concat(qr(e.lineWidth)," * 2)"),height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},fm=Ec(["Button","compact"],(e=>{const t=Fh(e);return[Zf(t),um(t),dm(t)]}),Hh);var pm=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const hm=(e,t)=>{var n,r;const{loading:i=!1,prefixCls:a,type:l="default",danger:c,shape:s="default",size:u,styles:d,disabled:f,className:p,rootClassName:h,children:m,icon:g,ghost:v=!1,block:b=!1,htmlType:y="button",classNames:w,style:x={}}=e,S=pm(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:C,autoInsertSpaceInButton:k,direction:E,button:O}=(0,o.useContext)(nl),_=C("btn",a),[P,M,N]=cm(_),I=(0,o.useContext)(qc),R=null!==f&&void 0!==f?f:I,T=(0,o.useContext)(Eh),j=(0,o.useMemo)((()=>function(e){if("object"===typeof e&&e){let t=null===e||void 0===e?void 0:e.delay;return t=Number.isNaN(t)||"number"!==typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(i)),[i]),[A,z]=(0,o.useState)(j.loading),[L,D]=(0,o.useState)(!1),B=Ge(t,(0,o.createRef)()),F=1===o.Children.count(m)&&!g&&!Nh(l);(0,o.useEffect)((()=>{let e=null;return j.delay>0?e=setTimeout((()=>{e=null,z(!0)}),j.delay):z(j.loading),function(){e&&(clearTimeout(e),e=null)}}),[j]),(0,o.useEffect)((()=>{if(!B||!B.current||!1===k)return;const e=B.current.textContent;F&&Ph(e)?L||D(!0):L&&D(!1)}),[B]);const H=t=>{const{onClick:n}=e;A||R?t.preventDefault():null===n||void 0===n||n(t)};const W=!1!==k,{compactSize:V,compactItemClassnames:K}=df(_,E),q={large:"lg",small:"sm",middle:void 0},U=$c((e=>{var t,n;return null!==(n=null!==(t=null!==u&&void 0!==u?u:V)&&void 0!==t?t:T)&&void 0!==n?n:e})),X=U&&q[U]||"",G=A?"loading":g,$=Zo(S,["navigate"]),Y=je()(_,M,N,{["".concat(_,"-").concat(s)]:"default"!==s&&s,["".concat(_,"-").concat(l)]:l,["".concat(_,"-").concat(X)]:X,["".concat(_,"-icon-only")]:!m&&0!==m&&!!G,["".concat(_,"-background-ghost")]:v&&!Nh(l),["".concat(_,"-loading")]:A,["".concat(_,"-two-chinese-chars")]:L&&W&&!A,["".concat(_,"-block")]:b,["".concat(_,"-dangerous")]:!!c,["".concat(_,"-rtl")]:"rtl"===E},K,p,h,null===O||void 0===O?void 0:O.className),Q=Object.assign(Object.assign({},null===O||void 0===O?void 0:O.style),x),J=je()(null===w||void 0===w?void 0:w.icon,null===(n=null===O||void 0===O?void 0:O.classNames)||void 0===n?void 0:n.icon),Z=Object.assign(Object.assign({},(null===d||void 0===d?void 0:d.icon)||{}),(null===(r=null===O||void 0===O?void 0:O.styles)||void 0===r?void 0:r.icon)||{}),ee=g&&!A?o.createElement(Th,{prefixCls:_,className:J,style:Z},g):o.createElement(Lh,{existIcon:!!g,prefixCls:_,loading:!!A}),te=m||0===m?Ih(m,F&&W):null;if(void 0!==$.href)return P(o.createElement("a",Object.assign({},$,{className:je()(Y,{["".concat(_,"-disabled")]:R}),href:R?void 0:$.href,style:Q,onClick:H,ref:B,tabIndex:R?-1:0}),ee,te));let ne=o.createElement("button",Object.assign({},S,{type:y,className:Y,style:Q,onClick:H,disabled:R,ref:B}),ee,te,!!K&&o.createElement(fm,{key:"compact",prefixCls:_}));return Nh(l)||(ne=o.createElement(Ch,{component:"Button",disabled:!!A},ne)),P(ne)},mm=(0,o.forwardRef)(hm);mm.Group=Oh,mm.__ANT_BUTTON=!0;const gm=mm;var vm=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const bm=o.forwardRef(((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:i,size:a,suffix:l,enterButton:c=!1,addonAfter:s,loading:u,disabled:d,onSearch:f,onChange:p,onCompositionStart:h,onCompositionEnd:m}=e,g=vm(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:v,direction:b}=o.useContext(nl),y=o.useRef(!1),w=v("input-search",n),x=v("input",r),{compactSize:S}=df(w,b),C=$c((e=>{var t;return null!==(t=null!==a&&void 0!==a?a:S)&&void 0!==t?t:e})),k=o.useRef(null),E=e=>{var t;document.activeElement===(null===(t=k.current)||void 0===t?void 0:t.input)&&e.preventDefault()},O=e=>{var t,n;f&&f(null===(n=null===(t=k.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},_="boolean"===typeof c?o.createElement(oh,null):null,P="".concat(w,"-button");let M;const N=c||{},I=N.type&&!0===N.type.__ANT_BUTTON;M=I||"button"===N.type?gs(N,Object.assign({onMouseDown:E,onClick:e=>{var t,n;null===(n=null===(t=null===N||void 0===N?void 0:N.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),O(e)},key:"enterButton"},I?{className:P,size:C}:{})):o.createElement(gm,{className:P,type:c?"primary":void 0,size:C,disabled:d,key:"enterButton",onMouseDown:E,onClick:O,loading:u,icon:_},c),s&&(M=[M,gs(s,{key:"addonAfter"})]);const R=je()(w,{["".concat(w,"-rtl")]:"rtl"===b,["".concat(w,"-").concat(C)]:!!C,["".concat(w,"-with-button")]:!!c},i);return o.createElement(Vp,Object.assign({ref:Ge(k,t),onPressEnter:e=>{y.current||u||O(e)}},g,{size:C,onCompositionStart:e=>{y.current=!0,null===h||void 0===h||h(e)},onCompositionEnd:e=>{y.current=!1,null===m||void 0===m||m(e)},prefixCls:x,addonAfter:M,suffix:l,onChange:e=>{e&&e.target&&"click"===e.type&&f&&f(e.target.value,e,{source:"clear"}),p&&p(e)},className:R,disabled:d}))}));const ym=bm;var wm,xm=["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"],Sm={};function Cm(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;wm||((wm=document.createElement("textarea")).setAttribute("tab-index","-1"),wm.setAttribute("aria-hidden","true"),document.body.appendChild(wm)),e.getAttribute("wrap")?wm.setAttribute("wrap",e.getAttribute("wrap")):wm.removeAttribute("wrap");var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Sm[n])return Sm[n];var o=window.getComputedStyle(e),r=o.getPropertyValue("box-sizing")||o.getPropertyValue("-moz-box-sizing")||o.getPropertyValue("-webkit-box-sizing"),i=parseFloat(o.getPropertyValue("padding-bottom"))+parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("border-bottom-width"))+parseFloat(o.getPropertyValue("border-top-width")),l={sizingStyle:xm.map((function(e){return"".concat(e,":").concat(o.getPropertyValue(e))})).join(";"),paddingSize:i,borderSize:a,boxSizing:r};return t&&n&&(Sm[n]=l),l}(e,t),i=r.paddingSize,a=r.borderSize,l=r.boxSizing,c=r.sizingStyle;wm.setAttribute("style","".concat(c,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),wm.value=e.value||e.placeholder||"";var s,u=void 0,d=void 0,f=wm.scrollHeight;if("border-box"===l?f+=a:"content-box"===l&&(f-=i),null!==n||null!==o){wm.value=" ";var p=wm.scrollHeight-i;null!==n&&(u=p*n,"border-box"===l&&(u=u+i+a),f=Math.max(u,f)),null!==o&&(d=p*o,"border-box"===l&&(d=d+i+a),s=f>d?"":"hidden",f=Math.min(d,f))}var h={height:f,overflowY:s,resize:"none"};return u&&(h.minHeight=u),d&&(h.maxHeight=d),h}var km=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Em=o.forwardRef((function(e,t){var n=e,r=n.prefixCls,i=(n.onPressEnter,n.defaultValue),a=n.value,l=n.autoSize,c=n.onResize,s=n.className,u=n.style,d=n.disabled,f=n.onChange,p=(n.onInternalAutoSize,Qe(n,km)),h=We(el(i,{value:a,postState:function(e){return null!==e&&void 0!==e?e:""}}),2),m=h[0],g=h[1],v=o.useRef();o.useImperativeHandle(t,(function(){return{textArea:v.current}}));var b=We(o.useMemo((function(){return l&&"object"===Ae(l)?[l.minRows,l.maxRows]:[]}),[l]),2),y=b[0],w=b[1],x=!!l,S=We(o.useState(2),2),C=S[0],k=S[1],E=We(o.useState(),2),O=E[0],_=E[1],P=function(){k(0)};Zr((function(){x&&P()}),[a,y,w,x]),Zr((function(){if(0===C)k(1);else if(1===C){var e=Cm(v.current,!1,y,w);k(2),_(e)}else!function(){try{if(document.activeElement===v.current){var e=v.current,t=e.selectionStart,n=e.selectionEnd,o=e.scrollTop;v.current.setSelectionRange(t,n),v.current.scrollTop=o}}catch(Qc){}}()}),[C]);var M=o.useRef(),N=function(){Kt.cancel(M.current)};o.useEffect((function(){return N}),[]);var I=x?O:null,R=Be(Be({},u),I);return 0!==C&&1!==C||(R.overflowY="hidden",R.overflowX="hidden"),o.createElement(ld,{onResize:function(e){2===C&&(null===c||void 0===c||c(e),l&&(N(),M.current=Kt((function(){P()}))))},disabled:!(l||c)},o.createElement("textarea",Jt({},p,{ref:v,style:R,className:je()(r,s,Le({},"".concat(r,"-disabled"),d)),disabled:d,value:m,onChange:function(e){g(e.target.value),null===f||void 0===f||f(e)}})))}));const Om=Em;var _m=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],Pm=o.forwardRef((function(e,t){var n,r,i=e.defaultValue,a=e.value,l=e.onFocus,c=e.onBlur,s=e.onChange,u=e.allowClear,d=e.maxLength,f=e.onCompositionStart,p=e.onCompositionEnd,h=e.suffix,m=e.prefixCls,g=void 0===m?"rc-textarea":m,v=e.showCount,b=e.count,y=e.className,w=e.style,x=e.disabled,S=e.hidden,C=e.classNames,k=e.styles,E=e.onResize,O=Qe(e,_m),_=We(el(i,{value:a,defaultValue:i}),2),P=_[0],M=_[1],N=void 0===P||null===P?"":String(P),I=We(o.useState(!1),2),R=I[0],T=I[1],j=o.useRef(!1),A=We(o.useState(null),2),z=A[0],L=A[1],D=(0,o.useRef)(null),B=function(){var e;return null===(e=D.current)||void 0===e?void 0:e.textArea},F=function(){B().focus()};(0,o.useImperativeHandle)(t,(function(){return{resizableTextArea:D.current,focus:F,blur:function(){B().blur()}}})),(0,o.useEffect)((function(){T((function(e){return!x&&e}))}),[x]);var H=We(o.useState(null),2),W=H[0],V=H[1];o.useEffect((function(){var e;W&&(e=B()).setSelectionRange.apply(e,Re(W))}),[W]);var K,q=Ip(b,v),U=null!==(n=q.max)&&void 0!==n?n:d,X=Number(U)>0,G=q.strategy(N),$=!!U&&G>U,Y=function(e,t){var n=t;!j.current&&q.exceedFormatter&&q.max&&q.strategy(t)>q.max&&t!==(n=q.exceedFormatter(t,{max:q.max}))&&V([B().selectionStart||0,B().selectionEnd||0]),M(n),Pp(e.currentTarget,e,s,n)},Q=h;q.show&&(K=q.showFormatter?q.showFormatter({value:N,count:G,maxLength:U}):"".concat(G).concat(X?" / ".concat(U):""),Q=o.createElement(o.Fragment,null,Q,o.createElement("span",{className:je()("".concat(g,"-data-count"),null===C||void 0===C?void 0:C.count),style:null===k||void 0===k?void 0:k.count},K)));var J=!O.autoSize&&!v&&!u;return o.createElement(Mp,{value:N,allowClear:u,handleReset:function(e){M(""),F(),Pp(B(),e,s)},suffix:Q,prefixCls:g,classNames:Be(Be({},C),{},{affixWrapper:je()(null===C||void 0===C?void 0:C.affixWrapper,(r={},Le(r,"".concat(g,"-show-count"),v),Le(r,"".concat(g,"-textarea-allow-clear"),u),r))}),disabled:x,focused:R,className:je()(y,$&&"".concat(g,"-out-of-range")),style:Be(Be({},w),z&&!J?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"===typeof K?K:void 0}},hidden:S},o.createElement(Om,Jt({},O,{maxLength:d,onKeyDown:function(e){var t=O.onPressEnter,n=O.onKeyDown;"Enter"===e.key&&t&&t(e),null===n||void 0===n||n(e)},onChange:function(e){Y(e,e.target.value)},onFocus:function(e){T(!0),null===l||void 0===l||l(e)},onBlur:function(e){T(!1),null===c||void 0===c||c(e)},onCompositionStart:function(e){j.current=!0,null===f||void 0===f||f(e)},onCompositionEnd:function(e){j.current=!1,Y(e,e.currentTarget.value),null===p||void 0===p||p(e)},className:je()(null===C||void 0===C?void 0:C.textarea),style:Be(Be({},null===k||void 0===k?void 0:k.textarea),{},{resize:null===w||void 0===w?void 0:w.resize}),disabled:x,prefixCls:g,onResize:function(e){var t;null===E||void 0===E||E(e),null!==(t=B())&&void 0!==t&&t.style.height&&L(!0)},ref:D})))}));const Mm=Pm;var Nm=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Im=(0,o.forwardRef)(((e,t)=>{var n;const{prefixCls:r,bordered:i=!0,size:a,disabled:l,status:c,allowClear:s,classNames:u,rootClassName:d,className:f,variant:p}=e,h=Nm(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","variant"]);const{getPrefixCls:m,direction:g}=o.useContext(nl),v=$c(a),b=o.useContext(qc),y=null!==l&&void 0!==l?l:b,{status:w,hasFeedback:x,feedbackIcon:S}=o.useContext(rr),C=zp(w,c),k=o.useRef(null);o.useImperativeHandle(t,(()=>{var e;return{resizableTextArea:null===(e=k.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;!function(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}(null===(n=null===(t=k.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=k.current)||void 0===e?void 0:e.blur()}}}));const E=m("input",r);let O;"object"===typeof s&&(null===s||void 0===s?void 0:s.clearIcon)?O=s:s&&(O={clearIcon:o.createElement(Tf,null)});const _=Bc(E),[P,M,N]=Op(E,_),[I,R]=Bp(p,i);return P(o.createElement(Mm,Object.assign({},h,{disabled:y,allowClear:O,className:je()(N,_,f,d),classNames:Object.assign(Object.assign({},u),{textarea:je()({["".concat(E,"-sm")]:"small"===v,["".concat(E,"-lg")]:"large"===v},M,null===u||void 0===u?void 0:u.textarea),variant:je()({["".concat(E,"-").concat(I)]:R},Ap(E,C)),affixWrapper:je()("".concat(E,"-textarea-affix-wrapper"),{["".concat(E,"-affix-wrapper-rtl")]:"rtl"===g,["".concat(E,"-affix-wrapper-sm")]:"small"===v,["".concat(E,"-affix-wrapper-lg")]:"large"===v,["".concat(E,"-textarea-show-count")]:e.showCount||(null===(n=e.count)||void 0===n?void 0:n.show)},M)}),prefixCls:E,suffix:x&&o.createElement("span",{className:"".concat(E,"-textarea-suffix")},S),ref:k})))})),Rm=Im,Tm=Vp;Tm.Group=_p,Tm.Search=ym,Tm.TextArea=Rm,Tm.Password=eh;const jm=Tm;localStorage.getItem("db"),localStorage.getItem("univno");var Am=n(64),zm=n.n(Am);const Lm=e=>{zm().fire({text:e,confirmButtonColor:"#004b65"})},Dm=e=>({type:"LOADING",loading:e});var Bm=n(237),Fm=o,Hm=Symbol.for("react-redux-context"),Wm="undefined"!==typeof globalThis?globalThis:{};function Vm(){var e;if(!Fm.createContext)return{};const t=null!==(e=Wm[Hm])&&void 0!==e?e:Wm[Hm]=new Map;let n=t.get(Fm.createContext);return n||(n=Fm.createContext(null),t.set(Fm.createContext,n)),n}var Km=Vm(),qm=()=>{throw new Error("uSES not initialized!")};function Um(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Km;return function(){return Fm.useContext(e)}}var Xm=Um(),Gm=qm,$m=(e,t)=>e===t;function Ym(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Km;const t=e===Km?Xm:Um(e),n=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{equalityFn:o=$m,devModeChecks:r={}}="function"===typeof n?{equalityFn:n}:n;const{store:i,subscription:a,getServerState:l,stabilityCheck:c,identityFunctionCheck:s}=t(),u=(Fm.useRef(!0),Fm.useCallback({[e.name]:t=>e(t)}[e.name],[e,c,r.stabilityCheck])),d=Gm(a.addNestedSub,i.getState,l||i.getState,u,o);return Fm.useDebugValue(d),d};return Object.assign(n,{withTypes:()=>n}),n}var Qm=Ym();Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen"),Symbol.for("react.client.reference");function Jm(e){e()}var Zm={notify(){},get:()=>[]};function eg(e,t){let n,o=Zm,r=0,i=!1;function a(){s.onStateChange&&s.onStateChange()}function l(){r++,n||(n=t?t.addNestedSub(a):e.subscribe(a),o=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Jm((()=>{let t=e;for(;t;)t.callback(),t=t.next}))},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let o=!0;const r=t={callback:n,next:null,prev:t};return r.prev?r.prev.next=r:e=r,function(){o&&null!==e&&(o=!1,r.next?r.next.prev=r.prev:t=r.prev,r.prev?r.prev.next=r.next:e=r.next)}}}}())}function c(){r--,n&&0===r&&(n(),n=void 0,o.clear(),o=Zm)}const s={addNestedSub:function(e){l();const t=o.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),c())}},notifyNestedSubs:function(){o.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,l())},tryUnsubscribe:function(){i&&(i=!1,c())},getListeners:()=>o};return s}var tg=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement)?Fm.useLayoutEffect:Fm.useEffect;Object.defineProperty,Object.getOwnPropertyNames,Object.getOwnPropertySymbols,Object.getOwnPropertyDescriptor,Object.getPrototypeOf,Object.prototype;var ng=function(e){let{store:t,context:n,children:o,serverState:r,stabilityCheck:i="once",identityFunctionCheck:a="once"}=e;const l=Fm.useMemo((()=>{const e=eg(t);return{store:t,subscription:e,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:a}}),[t,r,i,a]),c=Fm.useMemo((()=>t.getState()),[t]);tg((()=>{const{subscription:e}=l;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),c!==t.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[l,c]);const s=n||Km;return Fm.createElement(s.Provider,{value:l},o)};function og(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Km;const t=e===Km?Xm:Um(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var rg=og();function ig(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Km;const t=e===Km?rg:og(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var ag,lg=ig();ag=Bm.useSyncExternalStoreWithSelector,Gm=ag,(e=>{e})(o.useSyncExternalStore);const cg=n.p+"static/media/098_logo.62be4cd5fb6ffe9f3370.jpg";var sg=n(579);const ug=()=>{const[e,t]=(0,o.useState)(""),[n,r]=(0,o.useState)(""),[i,a]=(0,o.useState)(""),l=lg(),c=ee(),{pathname:s}=J();(0,o.useEffect)((()=>{let e="";console.log(s,"Pathname"),"/demo"==s?e="098":"/rrit"==s&&(e="P001"),localStorage.setItem("root",s),localStorage.setItem("univno",e);let t=localStorage.getItem("root").split("/");localStorage.setItem("db",t[1])}),[s]);const u=()=>{(async(e,t,n)=>{e(Dm(!0));try{if("admin"!=t.username)return void Lm("Invalid Login");e({type:"USER_INFO",payload:t}),localStorage.setItem("logininfo",JSON.stringify(t)),n("/dashboard"),e(Dm(!1))}catch(o){Lm(o),e(Dm(!1))}})(l,{username:e,password:n},c)};return(0,sg.jsx)("div",{className:"login-page",children:(0,sg.jsxs)("div",{className:"login-box",children:[(0,sg.jsxs)(Yf,{name:"login-form",children:[(0,sg.jsx)("p",{className:"form-title",style:{marginBottom:"30px"},children:"Login Details"}),(0,sg.jsx)("label",{children:(0,sg.jsx)("b",{children:"Username"})}),(0,sg.jsx)(Yf.Item,{name:"username",rules:[{required:!0,message:"Your Email Id or Mobile No."}],children:(0,sg.jsx)(jm,{placeholder:"Your Email Id or Mobile No.",value:e,onChange:(e,n)=>t(e.target.value)})}),(0,sg.jsx)("label",{children:(0,sg.jsx)("b",{children:"Password"})}),(0,sg.jsx)(Yf.Item,{name:"password",rules:[{required:!0,message:"Password!"}],children:(0,sg.jsx)(jm.Password,{placeholder:"Password",value:n,onChange:(e,t)=>r(e.target.value)})}),(0,sg.jsx)(Yf.Item,{children:(0,sg.jsx)(gm,{type:"primary",htmlType:"submit",className:"login-form-button",onClick:()=>u(),children:"LOGIN"})})]}),(0,sg.jsx)("div",{style:{borderRadius:"50%",position:"absolute",left:"25%"},children:(0,sg.jsx)("img",{src:cg,className:"img-avatar",height:300,width:300})})]})})},dg=()=>(0,sg.jsx)("div",{children:"NoPageFound"}),fg=()=>(0,sg.jsxs)(ve,{children:[(0,sg.jsx)(me,{path:"/demo",element:(0,sg.jsx)(ug,{})}),(0,sg.jsx)(me,{path:"/rrit",element:(0,sg.jsx)(ug,{})}),(0,sg.jsx)(me,{path:"/",element:(0,sg.jsx)(he,{to:"404"})}),(0,sg.jsx)(me,{path:"404",element:(0,sg.jsx)(dg,{})}),(0,sg.jsx)(me,{path:"*",element:(0,sg.jsx)(dg,{})})]}),pg=o.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});const hg={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};var mg=function(e,t){return o.createElement(au,Jt({},e,{ref:t,icon:hg}))};const gg=o.forwardRef(mg);const vg={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"};var bg=function(e,t){return o.createElement(au,Jt({},e,{ref:t,icon:vg}))};const yg=o.forwardRef(bg);const wg={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"};var xg=function(e,t){return o.createElement(au,Jt({},e,{ref:t,icon:wg}))};const Sg=o.forwardRef(xg),Cg=e=>!isNaN(parseFloat(e))&&isFinite(e);var kg=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Eg={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Og=o.createContext({}),_g=(()=>{let e=0;return function(){return e+=1,"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").concat(e)}})(),Pg=o.forwardRef(((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:a,defaultCollapsed:l=!1,theme:c="dark",style:s={},collapsible:u=!1,reverseArrow:d=!1,width:f=200,collapsedWidth:p=80,zeroWidthTriggerStyle:h,breakpoint:m,onCollapse:g,onBreakpoint:v}=e,b=kg(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:y}=(0,o.useContext)(pg),[w,x]=(0,o.useState)("collapsed"in e?e.collapsed:l),[S,C]=(0,o.useState)(!1);(0,o.useEffect)((()=>{"collapsed"in e&&x(e.collapsed)}),[e.collapsed]);const k=(t,n)=>{"collapsed"in e||x(t),null===g||void 0===g||g(t,n)},E=(0,o.useRef)();E.current=e=>{C(e.matches),null===v||void 0===v||v(e.matches),w!==e.matches&&k(e.matches,"responsive")},(0,o.useEffect)((()=>{function e(e){return E.current(e)}let t;if("undefined"!==typeof window){const{matchMedia:o}=window;if(o&&m&&m in Eg){t=o("screen and (max-width: ".concat(Eg[m],")"));try{t.addEventListener("change",e)}catch(n){t.addListener(e)}e(t)}}return()=>{try{null===t||void 0===t||t.removeEventListener("change",e)}catch(n){null===t||void 0===t||t.removeListener(e)}}}),[m]),(0,o.useEffect)((()=>{const e=_g("ant-sider-");return y.addSider(e),()=>y.removeSider(e)}),[]);const O=()=>{k(!w,"clickTrigger")},{getPrefixCls:_}=(0,o.useContext)(nl),P=o.useMemo((()=>({siderCollapsed:w})),[w]);return o.createElement(Og.Provider,{value:P},(()=>{const e=_("layout-sider",n),l=Zo(b,["collapsed"]),m=w?p:f,g=Cg(m)?"".concat(m,"px"):String(m),v=0===parseFloat(String(p||0))?o.createElement("span",{onClick:O,className:je()("".concat(e,"-zero-width-trigger"),"".concat(e,"-zero-width-trigger-").concat(d?"right":"left")),style:h},i||o.createElement(gg,null)):null,y={expanded:d?o.createElement(Sg,null):o.createElement(yg,null),collapsed:d?o.createElement(yg,null):o.createElement(Sg,null)}[w?"collapsed":"expanded"],x=null!==i?v||o.createElement("div",{className:"".concat(e,"-trigger"),onClick:O,style:{width:g}},i||y):null,C=Object.assign(Object.assign({},s),{flex:"0 0 ".concat(g),maxWidth:g,minWidth:g,width:g}),k=je()(e,"".concat(e,"-").concat(c),{["".concat(e,"-collapsed")]:!!w,["".concat(e,"-has-trigger")]:u&&null!==i&&!v,["".concat(e,"-below")]:!!S,["".concat(e,"-zero-width")]:0===parseFloat(g)},r);return o.createElement("aside",Object.assign({className:k},l,{style:C,ref:t}),o.createElement("div",{className:"".concat(e,"-children")},a),u||S&&v?x:null)})())}));const Mg=Pg;const Ng=e=>{const{componentCls:t,bodyBg:n,lightSiderBg:o,lightTriggerBg:r,lightTriggerColor:i}=e;return{["".concat(t,"-sider-light")]:{background:o,["".concat(t,"-sider-trigger")]:{color:i,background:r},["".concat(t,"-sider-zero-width-trigger")]:{color:i,background:r,border:"1px solid ".concat(n),borderInlineStart:0}}}},Ig=e=>{const{antCls:t,componentCls:n,colorText:o,triggerColor:r,footerBg:i,triggerBg:a,headerHeight:l,headerPadding:c,headerColor:s,footerPadding:u,triggerHeight:d,zeroTriggerHeight:f,zeroTriggerWidth:p,motionDurationMid:h,motionDurationSlow:m,fontSize:g,borderRadius:v,bodyBg:b,headerBg:y,siderBg:w}=e;return{[n]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:b,"&, *":{boxSizing:"border-box"},["&".concat(n,"-has-sider")]:{flexDirection:"row",["> ".concat(n,", > ").concat(n,"-content")]:{width:0}},["".concat(n,"-header, &").concat(n,"-footer")]:{flex:"0 0 auto"},["".concat(n,"-sider")]:{position:"relative",minWidth:0,background:w,transition:"all ".concat(h,", background 0s"),"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,["".concat(t,"-menu").concat(t,"-menu-inline-collapsed")]:{width:"auto"}},"&-has-trigger":{paddingBottom:d},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:d,color:r,lineHeight:qr(d),textAlign:"center",background:a,cursor:"pointer",transition:"all ".concat(h)},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:l,insetInlineEnd:e.calc(p).mul(-1).equal(),zIndex:1,width:p,height:f,color:r,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:w,borderStartStartRadius:0,borderStartEndRadius:v,borderEndEndRadius:v,borderEndStartRadius:0,cursor:"pointer",transition:"background ".concat(m," ease"),"&::after":{position:"absolute",inset:0,background:"transparent",transition:"all ".concat(m),content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(p).mul(-1).equal(),borderStartStartRadius:v,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:v}}}}},Ng(e)),{"&-rtl":{direction:"rtl"}}),["".concat(n,"-header")]:{height:l,padding:c,color:s,lineHeight:qr(l),background:y,["".concat(t,"-menu")]:{lineHeight:"inherit"}},["".concat(n,"-footer")]:{padding:u,color:o,fontSize:g,background:i},["".concat(n,"-content")]:{flex:"auto",minHeight:0}}},Rg=Oc("Layout",(e=>[Ig(e)]),(e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:o,colorText:r,controlHeightSM:i,marginXXS:a,colorTextLightSolid:l,colorBgContainer:c}=e,s=1.25*o;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:2*n,headerPadding:"0 ".concat(s,"px"),headerColor:r,footerPadding:"".concat(i,"px ").concat(s,"px"),footerBg:t,siderBg:"#001529",triggerHeight:o+2*a,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:o,zeroTriggerHeight:o,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:r}}),{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]});var Tg=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function jg(e){let{suffixCls:t,tagName:n,displayName:r}=e;return e=>o.forwardRef(((r,i)=>o.createElement(e,Object.assign({ref:i,suffixCls:t,tagName:n},r))))}const Ag=o.forwardRef(((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:a}=e,l=Tg(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:c}=o.useContext(nl),s=c("layout",n),[u,d,f]=Rg(s),p=r?"".concat(s,"-").concat(r):s;return u(o.createElement(a,Object.assign({className:je()(n||p,i,d,f),ref:t},l)))})),zg=o.forwardRef(((e,t)=>{const{direction:n}=o.useContext(nl),[r,i]=o.useState([]),{prefixCls:a,className:l,rootClassName:c,children:s,hasSider:u,tagName:d,style:f}=e,p=Zo(Tg(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),["suffixCls"]),{getPrefixCls:h,layout:m}=o.useContext(nl),g=h("layout",a),v=function(e,t,n){return"boolean"===typeof n?n:!!e.length||wn(t).some((e=>e.type===Mg))}(r,s,u),[b,y,w]=Rg(g),x=je()(g,{["".concat(g,"-has-sider")]:v,["".concat(g,"-rtl")]:"rtl"===n},null===m||void 0===m?void 0:m.className,l,c,y,w),S=o.useMemo((()=>({siderHook:{addSider:e=>{i((t=>[].concat(Re(t),[e])))},removeSider:e=>{i((t=>t.filter((t=>t!==e))))}}})),[]);return b(o.createElement(pg.Provider,{value:S},o.createElement(d,Object.assign({ref:t,className:x,style:Object.assign(Object.assign({},null===m||void 0===m?void 0:m.style),f)},p),s)))})),Lg=jg({tagName:"div",displayName:"Layout"})(zg),Dg=jg({suffixCls:"header",tagName:"header",displayName:"Header"})(Ag),Bg=jg({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Ag),Fg=jg({suffixCls:"content",tagName:"main",displayName:"Content"})(Ag),Hg=Lg;Hg.Header=Dg,Hg.Footer=Bg,Hg.Content=Fg,Hg.Sider=Mg,Hg._InternalSiderContext=Og;const Wg=Hg,Vg=e=>{const t=(null===e||void 0===e?void 0:e.algorithm)?jr(e.algorithm):jr(tc),n=Object.assign(Object.assign({},ql),null===e||void 0===e?void 0:e.token);return di(n,{override:null===e||void 0===e?void 0:e.token},t,cc)};const Kg=(e,t)=>{const n=null!==t&&void 0!==t?t:tc(e),o=n.fontSizeSM,r=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),function(e){const{sizeUnit:t,sizeStep:n}=e,o=n-2;return{sizeXXL:t*(o+10),sizeXL:t*(o+6),sizeLG:t*(o+2),sizeMD:t*(o+2),sizeMS:t*(o+1),size:t*o,sizeSM:t*o,sizeXS:t*(o-1),sizeXXS:t*(o-1)}}(null!==t&&void 0!==t?t:e)),ec(o)),{controlHeight:r}),Vl(Object.assign(Object.assign({},n),{controlHeight:r})))},qg=(e,t)=>new Ul(e).setAlpha(t).toRgbString(),Ug=(e,t)=>new Ul(e).lighten(t).toHexString(),Xg=e=>{const t=Ll(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]}},Gg=(e,t)=>{const n=e||"#000",o=t||"#fff";return{colorBgBase:n,colorTextBase:o,colorText:qg(o,.85),colorTextSecondary:qg(o,.65),colorTextTertiary:qg(o,.45),colorTextQuaternary:qg(o,.25),colorFill:qg(o,.18),colorFillSecondary:qg(o,.12),colorFillTertiary:qg(o,.08),colorFillQuaternary:qg(o,.04),colorBgElevated:Ug(n,12),colorBgContainer:Ug(n,8),colorBgLayout:Ug(n,0),colorBgSpotlight:Ug(n,26),colorBgBlur:qg(o,.04),colorBorder:Ug(n,26),colorBorderSecondary:Ug(n,19)}},$g=(e,t)=>{const n=Object.keys(Kl).map((t=>{const n=Ll(e[t],{theme:"dark"});return new Array(10).fill(1).reduce(((e,o,r)=>(e["".concat(t,"-").concat(r+1)]=n[r],e["".concat(t).concat(r+1)]=n[r],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{}),o=null!==t&&void 0!==t?t:tc(e);return Object.assign(Object.assign(Object.assign({},o),n),Xl(e,{generateColorPalettes:Xg,generateNeutralColorPalettes:Gg}))};const Yg={defaultConfig:oc,defaultSeed:oc.token,useToken:function(){const[e,t,n]=hc();return{theme:e,token:t,hashId:n}},defaultAlgorithm:tc,darkAlgorithm:$g,compactAlgorithm:Kg,getDesignToken:Vg};var Qg=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Jg=void 0;function Zg(e,t){var n=e.prefixCls,r=e.invalidate,i=e.item,a=e.renderItem,l=e.responsive,c=e.responsiveDisabled,s=e.registerSize,u=e.itemKey,d=e.className,f=e.style,p=e.children,h=e.display,m=e.order,g=e.component,v=void 0===g?"div":g,b=Qe(e,Qg),y=l&&!h;function w(e){s(u,e)}o.useEffect((function(){return function(){w(null)}}),[]);var x,S=a&&i!==Jg?a(i):p;r||(x={opacity:y?0:1,height:y?0:Jg,overflowY:y?"hidden":Jg,order:l?m:Jg,pointerEvents:y?"none":Jg,position:y?"absolute":Jg});var C={};y&&(C["aria-hidden"]=!0);var k=o.createElement(v,Jt({className:je()(!r&&n,d),style:Be(Be({},x),f)},C,b,{ref:t}),S);return l&&(k=o.createElement(ld,{onResize:function(e){w(e.offsetWidth)},disabled:c},k)),k}var ev=o.forwardRef(Zg);ev.displayName="Item";const tv=ev;function nv(){var e=o.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"===typeof MessageChannel)Kt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){(0,a.unstable_batchedUpdates)((function(){e.current.forEach((function(e){e()})),e.current=null}))}))),e.current.push(t)}}function ov(e,t){var n=We(o.useState(t),2),r=n[0],i=n[1];return[r,Ja((function(t){e((function(){i(t)}))}))]}var rv=o.createContext(null),iv=["component"],av=["className"],lv=["className"],cv=function(e,t){var n=o.useContext(rv);if(!n){var r=e.component,i=void 0===r?"div":r,a=Qe(e,iv);return o.createElement(i,Jt({},a,{ref:t}))}var l=n.className,c=Qe(n,av),s=e.className,u=Qe(e,lv);return o.createElement(rv.Provider,{value:null},o.createElement(tv,Jt({ref:t,className:je()(l,s)},c,u)))},sv=o.forwardRef(cv);sv.displayName="RawItem";const uv=sv;var dv=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],fv="responsive",pv="invalidate";function hv(e){return"+ ".concat(e.length," ...")}function mv(e,t){var n=e.prefixCls,r=void 0===n?"rc-overflow":n,i=e.data,a=void 0===i?[]:i,l=e.renderItem,c=e.renderRawItem,s=e.itemKey,u=e.itemWidth,d=void 0===u?10:u,f=e.ssr,p=e.style,h=e.className,m=e.maxCount,g=e.renderRest,v=e.renderRawRest,b=e.suffix,y=e.component,w=void 0===y?"div":y,x=e.itemComponent,S=e.onVisibleChange,C=Qe(e,dv),k="full"===f,E=nv(),O=We(ov(E,null),2),_=O[0],P=O[1],M=_||0,N=We(ov(E,new Map),2),I=N[0],R=N[1],T=We(ov(E,0),2),j=T[0],A=T[1],z=We(ov(E,0),2),L=z[0],D=z[1],B=We(ov(E,0),2),F=B[0],H=B[1],W=We((0,o.useState)(null),2),V=W[0],K=W[1],q=We((0,o.useState)(null),2),U=q[0],X=q[1],G=o.useMemo((function(){return null===U&&k?Number.MAX_SAFE_INTEGER:U||0}),[U,_]),$=We((0,o.useState)(!1),2),Y=$[0],Q=$[1],J="".concat(r,"-item"),Z=Math.max(j,L),ee=m===fv,te=a.length&&ee,ne=m===pv,oe=te||"number"===typeof m&&a.length>m,re=(0,o.useMemo)((function(){var e=a;return te?e=null===_&&k?a:a.slice(0,Math.min(a.length,M/d)):"number"===typeof m&&(e=a.slice(0,m)),e}),[a,d,_,m,te]),ie=(0,o.useMemo)((function(){return te?a.slice(G+1):a.slice(re.length)}),[a,re,te,G]),ae=(0,o.useCallback)((function(e,t){var n;return"function"===typeof s?s(e):null!==(n=s&&(null===e||void 0===e?void 0:e[s]))&&void 0!==n?n:t}),[s]),le=(0,o.useCallback)(l||function(e){return e},[l]);function ce(e,t,n){(U!==e||void 0!==t&&t!==V)&&(X(e),n||(Q(e<a.length-1),null===S||void 0===S||S(e)),void 0!==t&&K(t))}function se(e,t){R((function(n){var o=new Map(n);return null===t?o.delete(e):o.set(e,t),o}))}function ue(e){return I.get(ae(re[e],e))}Zr((function(){if(M&&"number"===typeof Z&&re){var e=F,t=re.length,n=t-1;if(!t)return void ce(0,null);for(var o=0;o<t;o+=1){var r=ue(o);if(k&&(r=r||0),void 0===r){ce(o-1,void 0,!0);break}if(e+=r,0===n&&e<=M||o===n-1&&e+ue(n)<=M){ce(n,null);break}if(e+Z>M){ce(o-1,e-r-F+L);break}}b&&ue(0)+F>M&&K(null)}}),[M,I,L,F,ae,re]);var de=Y&&!!ie.length,fe={};null!==V&&te&&(fe={position:"absolute",left:V,top:0});var pe,he={prefixCls:J,responsive:te,component:x,invalidate:ne},me=c?function(e,t){var n=ae(e,t);return o.createElement(rv.Provider,{key:n,value:Be(Be({},he),{},{order:t,item:e,itemKey:n,registerSize:se,display:t<=G})},c(e,t))}:function(e,t){var n=ae(e,t);return o.createElement(tv,Jt({},he,{order:t,key:n,item:e,renderItem:le,itemKey:n,registerSize:se,display:t<=G}))},ge={order:de?G:Number.MAX_SAFE_INTEGER,className:"".concat(J,"-rest"),registerSize:function(e,t){D(t),A(L)},display:de};if(v)v&&(pe=o.createElement(rv.Provider,{value:Be(Be({},he),ge)},v(ie)));else{var ve=g||hv;pe=o.createElement(tv,Jt({},he,ge),"function"===typeof ve?ve(ie):ve)}var be=o.createElement(w,Jt({className:je()(!ne&&r,h),style:p,ref:t},C),re.map(me),oe?pe:null,b&&o.createElement(tv,Jt({},he,{responsive:ee,responsiveDisabled:!te,order:G,className:"".concat(J,"-suffix"),registerSize:function(e,t){H(t)},display:!0,style:fe}),b));return ee&&(be=o.createElement(ld,{onResize:function(e,t){P(t.clientWidth)},disabled:!te},be)),be}var gv=o.forwardRef(mv);gv.displayName="Overflow",gv.Item=uv,gv.RESPONSIVE=fv,gv.INVALIDATE=pv;const vv=gv;var bv=o.createContext(null);function yv(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function wv(e){return yv(o.useContext(bv),e)}var xv=["children","locked"],Sv=o.createContext(null);function Cv(e){var t=e.children,n=e.locked,r=Qe(e,xv),i=o.useContext(Sv),a=Ue((function(){return function(e,t){var n=Be({},e);return Object.keys(t).forEach((function(e){var o=t[e];void 0!==o&&(n[e]=o)})),n}(i,r)}),[i,r],(function(e,t){return!n&&(e[0]!==t[0]||!Pn(e[1],t[1],!0))}));return o.createElement(Sv.Provider,{value:a},t)}var kv=[],Ev=o.createContext(null);function Ov(){return o.useContext(Ev)}var _v=o.createContext(kv);function Pv(e){var t=o.useContext(_v);return o.useMemo((function(){return void 0!==e?[].concat(Re(t),[e]):t}),[t,e])}var Mv=o.createContext(null);const Nv=o.createContext({});function Iv(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Ss(e)){var n=e.nodeName.toLowerCase(),o=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),r=e.getAttribute("tabindex"),i=Number(r),a=null;return r&&!Number.isNaN(i)?a=i:o&&null===a&&(a=0),o&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}function Rv(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Re(e.querySelectorAll("*")).filter((function(e){return Iv(e,t)}));return Iv(e,t)&&n.unshift(e),n}var Tv={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=Tv.F1&&t<=Tv.F12)return!1;switch(t){case Tv.ALT:case Tv.CAPS_LOCK:case Tv.CONTEXT_MENU:case Tv.CTRL:case Tv.DOWN:case Tv.END:case Tv.ESC:case Tv.HOME:case Tv.INSERT:case Tv.LEFT:case Tv.MAC_FF_META:case Tv.META:case Tv.NUMLOCK:case Tv.NUM_CENTER:case Tv.PAGE_DOWN:case Tv.PAGE_UP:case Tv.PAUSE:case Tv.PRINT_SCREEN:case Tv.RIGHT:case Tv.SHIFT:case Tv.UP:case Tv.WIN_KEY:case Tv.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Tv.ZERO&&e<=Tv.NINE)return!0;if(e>=Tv.NUM_ZERO&&e<=Tv.NUM_MULTIPLY)return!0;if(e>=Tv.A&&e<=Tv.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case Tv.SPACE:case Tv.QUESTION_MARK:case Tv.NUM_PLUS:case Tv.NUM_MINUS:case Tv.NUM_PERIOD:case Tv.NUM_DIVISION:case Tv.SEMICOLON:case Tv.DASH:case Tv.EQUALS:case Tv.COMMA:case Tv.PERIOD:case Tv.SLASH:case Tv.APOSTROPHE:case Tv.SINGLE_QUOTE:case Tv.OPEN_SQUARE_BRACKET:case Tv.BACKSLASH:case Tv.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const jv=Tv;var Av=jv.LEFT,zv=jv.RIGHT,Lv=jv.UP,Dv=jv.DOWN,Bv=jv.ENTER,Fv=jv.ESC,Hv=jv.HOME,Wv=jv.END,Vv=[Lv,Dv,Av,zv];function Kv(e,t){return Rv(e,!0).filter((function(e){return t.has(e)}))}function qv(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var r=Kv(e,t),i=r.length,a=r.findIndex((function(e){return n===e}));return o<0?-1===a?a=i-1:a-=1:o>0&&(a+=1),r[a=(a+i)%i]}var Uv=function(e,t){var n=new Set,o=new Map,r=new Map;return e.forEach((function(e){var i=document.querySelector("[data-menu-id='".concat(yv(t,e),"']"));i&&(n.add(i),r.set(i,e),o.set(e,i))})),{elements:n,key2element:o,element2key:r}};function Xv(e,t,n,r,i,a,l,c,s,u){var d=o.useRef(),f=o.useRef();f.current=t;var p=function(){Kt.cancel(d.current)};return o.useEffect((function(){return function(){p()}}),[]),function(o){var h=o.which;if([].concat(Vv,[Bv,Fv,Hv,Wv]).includes(h)){var m=a(),g=Uv(m,r),v=g,b=v.elements,y=v.key2element,w=v.element2key,x=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y.get(t),b),S=w.get(x),C=function(e,t,n,o){var r,i,a,l,c="prev",s="next",u="children",d="parent";if("inline"===e&&o===Bv)return{inlineTrigger:!0};var f=(Le(r={},Lv,c),Le(r,Dv,s),r),p=(Le(i={},Av,n?s:c),Le(i,zv,n?c:s),Le(i,Dv,u),Le(i,Bv,u),i),h=(Le(a={},Lv,c),Le(a,Dv,s),Le(a,Bv,u),Le(a,Fv,d),Le(a,Av,n?u:d),Le(a,zv,n?d:u),a);switch(null===(l={inline:f,horizontal:p,vertical:h,inlineSub:f,horizontalSub:h,verticalSub:h}["".concat(e).concat(t?"":"Sub")])||void 0===l?void 0:l[o]){case c:return{offset:-1,sibling:!0};case s:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}(e,1===l(S,!0).length,n,h);if(!C&&h!==Hv&&h!==Wv)return;(Vv.includes(h)||[Hv,Wv].includes(h))&&o.preventDefault();var k=function(e){if(e){var t=e,n=e.querySelector("a");null!==n&&void 0!==n&&n.getAttribute("href")&&(t=n);var o=w.get(e);c(o),p(),d.current=Kt((function(){f.current===o&&t.focus()}))}};if([Hv,Wv].includes(h)||C.sibling||!x){var E,O,_=Kv(E=x&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(x):i.current,b);O=h===Hv?_[0]:h===Wv?_[_.length-1]:qv(E,b,x,C.offset),k(O)}else if(C.inlineTrigger)s(S);else if(C.offset>0)s(S,!0),p(),d.current=Kt((function(){g=Uv(m,r);var e=x.getAttribute("aria-controls"),t=qv(document.getElementById(e),g.elements);k(t)}),5);else if(C.offset<0){var P=l(S,!0),M=P[P.length-2],N=y.get(M);s(M,!1),k(N)}}null===u||void 0===u||u(o)}}var Gv="__RC_UTIL_PATH_SPLIT__",$v=function(e){return e.join(Gv)},Yv="rc-menu-more";function Qv(){var e=We(o.useState({}),2)[1],t=(0,o.useRef)(new Map),n=(0,o.useRef)(new Map),r=We(o.useState([]),2),i=r[0],a=r[1],l=(0,o.useRef)(0),c=(0,o.useRef)(!1),s=(0,o.useCallback)((function(o,r){var i=$v(r);n.current.set(i,o),t.current.set(o,i),l.current+=1;var a=l.current;!function(e){Promise.resolve().then(e)}((function(){a===l.current&&(c.current||e({}))}))}),[]),u=(0,o.useCallback)((function(e,o){var r=$v(o);n.current.delete(r),t.current.delete(e)}),[]),d=(0,o.useCallback)((function(e){a(e)}),[]),f=(0,o.useCallback)((function(e,n){var o=t.current.get(e)||"",r=o.split(Gv);return n&&i.includes(r[0])&&r.unshift(Yv),r}),[i]),p=(0,o.useCallback)((function(e,t){return e.some((function(e){return f(e,!0).includes(t)}))}),[f]),h=(0,o.useCallback)((function(e){var o="".concat(t.current.get(e)).concat(Gv),r=new Set;return Re(n.current.keys()).forEach((function(e){e.startsWith(o)&&r.add(n.current.get(e))})),r}),[]);return o.useEffect((function(){return function(){c.current=!0}}),[]),{registerPath:s,unregisterPath:u,refreshOverflowKeys:d,isSubPathKey:p,getKeyPath:f,getKeys:function(){var e=Re(t.current.keys());return i.length&&e.push(Yv),e},getSubPathKeys:h}}function Jv(e){var t=o.useRef(e);t.current=e;var n=o.useCallback((function(){for(var e,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(o))}),[]);return e?n:void 0}var Zv=Math.random().toFixed(5).toString().slice(2),eb=0;function tb(e,t,n,r){var i=o.useContext(Sv),a=i.activeKey,l=i.onActive,c=i.onInactive,s={active:a===e};return t||(s.onMouseEnter=function(t){null===n||void 0===n||n({key:e,domEvent:t}),l(e)},s.onMouseLeave=function(t){null===r||void 0===r||r({key:e,domEvent:t}),c(e)}),s}function nb(e){var t=o.useContext(Sv),n=t.mode,r=t.rtl,i=t.inlineIndent;if("inline"!==n)return null;return r?{paddingRight:e*i}:{paddingLeft:e*i}}function ob(e){var t,n=e.icon,r=e.props,i=e.children;return null===n||!1===n?null:("function"===typeof n?t=o.createElement(n,Be({},r)):"boolean"!==typeof n&&(t=n),t||i||null)}var rb=["item"];function ib(e){var t=e.item,n=Qe(e,rb);return Object.defineProperty(n,"item",{get:function(){return _n(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var ab=["title","attribute","elementRef"],lb=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],cb=["active"],sb=function(e){it(n,e);var t=ut(n);function n(){return tt(this,n),t.apply(this,arguments)}return ot(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,r=e.elementRef,i=Zo(Qe(e,ab),["eventKey","popupClassName","popupOffset","onTitleClick"]);return _n(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),o.createElement(vv.Item,Jt({},n,{title:"string"===typeof t?t:void 0},i,{ref:r}))}}]),n}(o.Component),ub=o.forwardRef((function(e,t){var n,r=e.style,i=e.className,a=e.eventKey,l=(e.warnKey,e.disabled),c=e.itemIcon,s=e.children,u=e.role,d=e.onMouseEnter,f=e.onMouseLeave,p=e.onClick,h=e.onKeyDown,m=e.onFocus,g=Qe(e,lb),v=wv(a),b=o.useContext(Sv),y=b.prefixCls,w=b.onItemClick,x=b.disabled,S=b.overflowDisabled,C=b.itemIcon,k=b.selectedKeys,E=b.onActive,O=o.useContext(Nv)._internalRenderMenuItem,_="".concat(y,"-item"),P=o.useRef(),M=o.useRef(),N=x||l,I=$e(t,M),R=Pv(a);var T=function(e){return{key:a,keyPath:Re(R).reverse(),item:P.current,domEvent:e}},j=c||C,A=tb(a,N,d,f),z=A.active,L=Qe(A,cb),D=k.includes(a),B=nb(R.length),F={};"option"===e.role&&(F["aria-selected"]=D);var H=o.createElement(sb,Jt({ref:P,elementRef:I,role:null===u?"none":u||"menuitem",tabIndex:l?null:-1,"data-menu-id":S&&v?null:v},g,L,F,{component:"li","aria-disabled":l,style:Be(Be({},B),r),className:je()(_,(n={},Le(n,"".concat(_,"-active"),z),Le(n,"".concat(_,"-selected"),D),Le(n,"".concat(_,"-disabled"),N),n),i),onClick:function(e){if(!N){var t=T(e);null===p||void 0===p||p(ib(t)),w(t)}},onKeyDown:function(e){if(null===h||void 0===h||h(e),e.which===jv.ENTER){var t=T(e);null===p||void 0===p||p(ib(t)),w(t)}},onFocus:function(e){E(a),null===m||void 0===m||m(e)}}),s,o.createElement(ob,{props:Be(Be({},e),{},{isSelected:D}),icon:j}));return O&&(H=O(H,e,{selected:D})),H}));function db(e,t){var n=e.eventKey,r=Ov(),i=Pv(n);return o.useEffect((function(){if(r)return r.registerPath(n,i),function(){r.unregisterPath(n,i)}}),[i]),r?null:o.createElement(ub,Jt({},e,{ref:t}))}const fb=o.forwardRef(db);var pb=["className","children"],hb=function(e,t){var n=e.className,r=e.children,i=Qe(e,pb),a=o.useContext(Sv),l=a.prefixCls,c=a.mode,s=a.rtl;return o.createElement("ul",Jt({className:je()(l,s&&"".concat(l,"-rtl"),"".concat(l,"-sub"),"".concat(l,"-").concat("inline"===c?"inline":"vertical"),n),role:"menu"},i,{"data-menu-list":!0,ref:t}),r)},mb=o.forwardRef(hb);mb.displayName="SubMenuList";const gb=mb;function vb(e,t){return wn(e).map((function(e,n){if(o.isValidElement(e)){var r,i,a=e.key,l=null!==(r=null===(i=e.props)||void 0===i?void 0:i.eventKey)&&void 0!==r?r:a;(null===l||void 0===l)&&(l="tmp_key-".concat([].concat(Re(t),[n]).join("-")));var c={key:l,eventKey:l};return o.cloneElement(e,c)}return e}))}var bb={adjustX:1,adjustY:1},yb={topLeft:{points:["bl","tl"],overflow:bb},topRight:{points:["br","tr"],overflow:bb},bottomLeft:{points:["tl","bl"],overflow:bb},bottomRight:{points:["tr","br"],overflow:bb},leftTop:{points:["tr","tl"],overflow:bb},leftBottom:{points:["br","bl"],overflow:bb},rightTop:{points:["tl","tr"],overflow:bb},rightBottom:{points:["bl","br"],overflow:bb}},wb={topLeft:{points:["bl","tl"],overflow:bb},topRight:{points:["br","tr"],overflow:bb},bottomLeft:{points:["tl","bl"],overflow:bb},bottomRight:{points:["tr","br"],overflow:bb},rightTop:{points:["tr","tl"],overflow:bb},rightBottom:{points:["br","bl"],overflow:bb},leftTop:{points:["tl","tr"],overflow:bb},leftBottom:{points:["bl","br"],overflow:bb}};function xb(e,t,n){return t||(n?n[e]||n.other:void 0)}var Sb={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Cb(e){var t=e.prefixCls,n=e.visible,r=e.children,i=e.popup,a=e.popupStyle,l=e.popupClassName,c=e.popupOffset,s=e.disabled,u=e.mode,d=e.onVisibleChange,f=o.useContext(Sv),p=f.getPopupContainer,h=f.rtl,m=f.subMenuOpenDelay,g=f.subMenuCloseDelay,v=f.builtinPlacements,b=f.triggerSubMenuAction,y=f.forceSubMenuRender,w=f.rootClassName,x=f.motion,S=f.defaultMotions,C=We(o.useState(!1),2),k=C[0],E=C[1],O=Be(Be({},h?wb:yb),v),_=Sb[u],P=xb(u,x,S),M=o.useRef(P);"inline"!==u&&(M.current=P);var N=Be(Be({},M.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),I=o.useRef();return o.useEffect((function(){return I.current=Kt((function(){E(n)})),function(){Kt.cancel(I.current)}}),[n]),o.createElement(Ad,{prefixCls:t,popupClassName:je()("".concat(t,"-popup"),Le({},"".concat(t,"-rtl"),h),l,w),stretch:"horizontal"===u?"minWidth":null,getPopupContainer:p,builtinPlacements:O,popupPlacement:_,popupVisible:k,popup:i,popupStyle:a,popupAlign:c&&{offset:c},action:s?[]:[b],mouseEnterDelay:m,mouseLeaveDelay:g,onPopupVisibleChange:d,forceRender:y,popupMotion:N,fresh:!0},r)}function kb(e){var t=e.id,n=e.open,r=e.keyPath,i=e.children,a="inline",l=o.useContext(Sv),c=l.prefixCls,s=l.forceSubMenuRender,u=l.motion,d=l.defaultMotions,f=l.mode,p=o.useRef(!1);p.current=f===a;var h=We(o.useState(!p.current),2),m=h[0],g=h[1],v=!!p.current&&n;o.useEffect((function(){p.current&&g(!1)}),[f]);var b=Be({},xb(a,u,d));r.length>1&&(b.motionAppear=!1);var y=b.onVisibleChanged;return b.onVisibleChanged=function(e){return p.current||e||g(!0),null===y||void 0===y?void 0:y(e)},m?null:o.createElement(Cv,{mode:a,locked:!p.current},o.createElement(un,Jt({visible:v},b,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(c,"-hidden")}),(function(e){var n=e.className,r=e.style;return o.createElement(gb,{id:t,className:n,style:r},i)})))}var Eb=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Ob=["active"],_b=function(e){var t,n=e.style,r=e.className,i=e.title,a=e.eventKey,l=(e.warnKey,e.disabled),c=e.internalPopupClose,s=e.children,u=e.itemIcon,d=e.expandIcon,f=e.popupClassName,p=e.popupOffset,h=e.popupStyle,m=e.onClick,g=e.onMouseEnter,v=e.onMouseLeave,b=e.onTitleClick,y=e.onTitleMouseEnter,w=e.onTitleMouseLeave,x=Qe(e,Eb),S=wv(a),C=o.useContext(Sv),k=C.prefixCls,E=C.mode,O=C.openKeys,_=C.disabled,P=C.overflowDisabled,M=C.activeKey,N=C.selectedKeys,I=C.itemIcon,R=C.expandIcon,T=C.onItemClick,j=C.onOpenChange,A=C.onActive,z=o.useContext(Nv)._internalRenderSubMenuItem,L=o.useContext(Mv).isSubPathKey,D=Pv(),B="".concat(k,"-submenu"),F=_||l,H=o.useRef(),W=o.useRef();var V=null!==u&&void 0!==u?u:I,K=null!==d&&void 0!==d?d:R,q=O.includes(a),U=!P&&q,X=L(N,a),G=tb(a,F,y,w),$=G.active,Y=Qe(G,Ob),Q=We(o.useState(!1),2),J=Q[0],Z=Q[1],ee=function(e){F||Z(e)},te=o.useMemo((function(){return $||"inline"!==E&&(J||L([M],a))}),[E,$,M,J,a,L]),ne=nb(D.length),oe=Jv((function(e){null===m||void 0===m||m(ib(e)),T(e)})),re=S&&"".concat(S,"-popup"),ie=o.createElement("div",Jt({role:"menuitem",style:ne,className:"".concat(B,"-title"),tabIndex:F?null:-1,ref:H,title:"string"===typeof i?i:null,"data-menu-id":P&&S?null:S,"aria-expanded":U,"aria-haspopup":!0,"aria-controls":re,"aria-disabled":F,onClick:function(e){F||(null===b||void 0===b||b({key:a,domEvent:e}),"inline"===E&&j(a,!q))},onFocus:function(){A(a)}},Y),i,o.createElement(ob,{icon:"horizontal"!==E?K:void 0,props:Be(Be({},e),{},{isOpen:U,isSubMenu:!0})},o.createElement("i",{className:"".concat(B,"-arrow")}))),ae=o.useRef(E);if("inline"!==E&&D.length>1?ae.current="vertical":ae.current=E,!P){var le=ae.current;ie=o.createElement(Cb,{mode:le,prefixCls:B,visible:!c&&U&&"inline"!==E,popupClassName:f,popupOffset:p,popupStyle:h,popup:o.createElement(Cv,{mode:"horizontal"===le?"vertical":le},o.createElement(gb,{id:re,ref:W},s)),disabled:F,onVisibleChange:function(e){"inline"!==E&&j(a,e)}},ie)}var ce=o.createElement(vv.Item,Jt({role:"none"},x,{component:"li",style:n,className:je()(B,"".concat(B,"-").concat(E),r,(t={},Le(t,"".concat(B,"-open"),U),Le(t,"".concat(B,"-active"),te),Le(t,"".concat(B,"-selected"),X),Le(t,"".concat(B,"-disabled"),F),t)),onMouseEnter:function(e){ee(!0),null===g||void 0===g||g({key:a,domEvent:e})},onMouseLeave:function(e){ee(!1),null===v||void 0===v||v({key:a,domEvent:e})}}),ie,!P&&o.createElement(kb,{id:re,open:U,keyPath:D},s));return z&&(ce=z(ce,e,{selected:X,active:te,open:U,disabled:F})),o.createElement(Cv,{onItemClick:oe,mode:"horizontal"===E?"vertical":E,itemIcon:V,expandIcon:K},ce)};function Pb(e){var t,n=e.eventKey,r=e.children,i=Pv(n),a=vb(r,i),l=Ov();return o.useEffect((function(){if(l)return l.registerPath(n,i),function(){l.unregisterPath(n,i)}}),[i]),t=l?a:o.createElement(_b,e,a),o.createElement(_v.Provider,{value:i},t)}var Mb=["className","title","eventKey","children"],Nb=["children"],Ib=function(e){var t=e.className,n=e.title,r=(e.eventKey,e.children),i=Qe(e,Mb),a=o.useContext(Sv).prefixCls,l="".concat(a,"-item-group");return o.createElement("li",Jt({role:"presentation"},i,{onClick:function(e){return e.stopPropagation()},className:je()(l,t)}),o.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:"string"===typeof n?n:void 0},n),o.createElement("ul",{role:"group",className:"".concat(l,"-list")},r))};function Rb(e){var t=e.children,n=Qe(e,Nb),r=vb(t,Pv(n.eventKey));return Ov()?r:o.createElement(Ib,Zo(n,["warnKey"]),r)}function Tb(e){var t=e.className,n=e.style,r=o.useContext(Sv).prefixCls;return Ov()?null:o.createElement("li",{role:"separator",className:je()("".concat(r,"-item-divider"),t),style:n})}var jb=["label","children","key","type"];function Ab(e){return(e||[]).map((function(e,t){if(e&&"object"===Ae(e)){var n=e,r=n.label,i=n.children,a=n.key,l=n.type,c=Qe(n,jb),s=null!==a&&void 0!==a?a:"tmp-".concat(t);return i||"group"===l?"group"===l?o.createElement(Rb,Jt({key:s},c,{title:r}),Ab(i)):o.createElement(Pb,Jt({key:s},c,{title:r}),Ab(i)):"divider"===l?o.createElement(Tb,Jt({key:s},c)):o.createElement(fb,Jt({key:s},c),r)}return null})).filter((function(e){return e}))}function zb(e,t,n){var o=e;return t&&(o=Ab(t)),vb(o,n)}var Lb=["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"],Db=[],Bb=o.forwardRef((function(e,t){var n,r,i=e,l=i.prefixCls,c=void 0===l?"rc-menu":l,s=i.rootClassName,u=i.style,d=i.className,f=i.tabIndex,p=void 0===f?0:f,h=i.items,m=i.children,g=i.direction,v=i.id,b=i.mode,y=void 0===b?"vertical":b,w=i.inlineCollapsed,x=i.disabled,S=i.disabledOverflow,C=i.subMenuOpenDelay,k=void 0===C?.1:C,E=i.subMenuCloseDelay,O=void 0===E?.1:E,_=i.forceSubMenuRender,P=i.defaultOpenKeys,M=i.openKeys,N=i.activeKey,I=i.defaultActiveFirst,R=i.selectable,T=void 0===R||R,j=i.multiple,A=void 0!==j&&j,z=i.defaultSelectedKeys,L=i.selectedKeys,D=i.onSelect,B=i.onDeselect,F=i.inlineIndent,H=void 0===F?24:F,W=i.motion,V=i.defaultMotions,K=i.triggerSubMenuAction,q=void 0===K?"hover":K,U=i.builtinPlacements,X=i.itemIcon,G=i.expandIcon,$=i.overflowedIndicator,Y=void 0===$?"...":$,Q=i.overflowedIndicatorPopupClassName,J=i.getPopupContainer,Z=i.onClick,ee=i.onOpenChange,te=i.onKeyDown,ne=(i.openAnimation,i.openTransitionName,i._internalRenderMenuItem),oe=i._internalRenderSubMenuItem,re=Qe(i,Lb),ie=o.useMemo((function(){return zb(m,h,Db)}),[m,h]),ae=We(o.useState(!1),2),le=ae[0],ce=ae[1],se=o.useRef(),ue=function(e){var t=We(el(e,{value:e}),2),n=t[0],r=t[1];return o.useEffect((function(){eb+=1;var e="".concat(Zv,"-").concat(eb);r("rc-menu-uuid-".concat(e))}),[]),n}(v),de="rtl"===g;var fe=el(P,{value:M,postState:function(e){return e||Db}}),pe=We(fe,2),he=pe[0],me=pe[1],ge=function(e){function t(){me(e),null===ee||void 0===ee||ee(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(0,a.flushSync)(t):t()},ve=We(o.useState(he),2),be=ve[0],ye=ve[1],we=o.useRef(!1),xe=We(o.useMemo((function(){return"inline"!==y&&"vertical"!==y||!w?[y,!1]:["vertical",w]}),[y,w]),2),Se=xe[0],Ce=xe[1],ke="inline"===Se,Ee=We(o.useState(Se),2),Oe=Ee[0],_e=Ee[1],Pe=We(o.useState(Ce),2),Me=Pe[0],Ne=Pe[1];o.useEffect((function(){_e(Se),Ne(Ce),we.current&&(ke?me(be):ge(Db))}),[Se,Ce]);var Ie=We(o.useState(0),2),Te=Ie[0],Ae=Ie[1],ze=Te>=ie.length-1||"horizontal"!==Oe||S;o.useEffect((function(){ke&&ye(he)}),[he]),o.useEffect((function(){return we.current=!0,function(){we.current=!1}}),[]);var De=Qv(),Fe=De.registerPath,He=De.unregisterPath,Ve=De.refreshOverflowKeys,Ke=De.isSubPathKey,qe=De.getKeyPath,Ue=De.getKeys,Xe=De.getSubPathKeys,Ge=o.useMemo((function(){return{registerPath:Fe,unregisterPath:He}}),[Fe,He]),$e=o.useMemo((function(){return{isSubPathKey:Ke}}),[Ke]);o.useEffect((function(){Ve(ze?Db:ie.slice(Te+1).map((function(e){return e.key})))}),[Te,ze]);var Ye=We(el(N||I&&(null===(n=ie[0])||void 0===n?void 0:n.key),{value:N}),2),Je=Ye[0],Ze=Ye[1],et=Jv((function(e){Ze(e)})),tt=Jv((function(){Ze(void 0)}));(0,o.useImperativeHandle)(t,(function(){return{list:se.current,focus:function(e){var t,n,o=Ue(),r=Uv(o,ue),i=r.elements,a=r.key2element,l=r.element2key,c=Kv(se.current,i),s=null!==Je&&void 0!==Je?Je:c[0]?l.get(c[0]):null===(t=ie.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,u=a.get(s);s&&u&&(null===u||void 0===u||null===(n=u.focus)||void 0===n||n.call(u,e))}}}));var nt=el(z||[],{value:L,postState:function(e){return Array.isArray(e)?e:null===e||void 0===e?Db:[e]}}),ot=We(nt,2),rt=ot[0],it=ot[1],at=Jv((function(e){null===Z||void 0===Z||Z(ib(e)),function(e){if(T){var t,n=e.key,o=rt.includes(n);t=A?o?rt.filter((function(e){return e!==n})):[].concat(Re(rt),[n]):[n],it(t);var r=Be(Be({},e),{},{selectedKeys:t});o?null===B||void 0===B||B(r):null===D||void 0===D||D(r)}!A&&he.length&&"inline"!==Oe&&ge(Db)}(e)})),lt=Jv((function(e,t){var n=he.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Oe){var o=Xe(e);n=n.filter((function(e){return!o.has(e)}))}Pn(he,n,!0)||ge(n,!0)})),ct=Xv(Oe,Je,de,ue,se,Ue,qe,Ze,(function(e,t){var n=null!==t&&void 0!==t?t:!he.includes(e);lt(e,n)}),te);o.useEffect((function(){ce(!0)}),[]);var st=o.useMemo((function(){return{_internalRenderMenuItem:ne,_internalRenderSubMenuItem:oe}}),[ne,oe]),ut="horizontal"!==Oe||S?ie:ie.map((function(e,t){return o.createElement(Cv,{key:e.key,overflowDisabled:t>Te},e)})),dt=o.createElement(vv,Jt({id:v,ref:se,prefixCls:"".concat(c,"-overflow"),component:"ul",itemComponent:fb,className:je()(c,"".concat(c,"-root"),"".concat(c,"-").concat(Oe),d,(r={},Le(r,"".concat(c,"-inline-collapsed"),Me),Le(r,"".concat(c,"-rtl"),de),r),s),dir:g,style:u,role:"menu",tabIndex:p,data:ut,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?ie.slice(-t):null;return o.createElement(Pb,{eventKey:Yv,title:Y,disabled:ze,internalPopupClose:0===t,popupClassName:Q},n)},maxCount:"horizontal"!==Oe||S?vv.INVALIDATE:vv.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Ae(e)},onKeyDown:ct},re));return o.createElement(Nv.Provider,{value:st},o.createElement(bv.Provider,{value:ue},o.createElement(Cv,{prefixCls:c,rootClassName:s,mode:Oe,openKeys:he,rtl:de,disabled:x,motion:le?W:null,defaultMotions:le?V:null,activeKey:Je,onActive:et,onInactive:tt,selectedKeys:rt,inlineIndent:H,subMenuOpenDelay:k,subMenuCloseDelay:O,forceSubMenuRender:_,builtinPlacements:U,triggerSubMenuAction:q,getPopupContainer:J,itemIcon:X,expandIcon:G,onItemClick:at,onOpenChange:lt},o.createElement(Mv.Provider,{value:$e},dt),o.createElement("div",{style:{display:"none"},"aria-hidden":!0},o.createElement(Ev.Provider,{value:Ge},ie)))))}));var Fb=Bb;Fb.Item=fb,Fb.SubMenu=Pb,Fb.ItemGroup=Rb,Fb.Divider=Tb;const Hb=Fb;const Wb={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"};var Vb=function(e,t){return o.createElement(au,Jt({},e,{ref:t,icon:Wb}))};const Kb=o.forwardRef(Vb);var qb=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Ub=e=>{const{prefixCls:t,className:n,dashed:r}=e,i=qb(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=o.useContext(nl),l=a("menu",t),c=je()({["".concat(l,"-item-divider-dashed")]:!!r},n);return o.createElement(Tb,Object.assign({className:c},i))},Xb=(0,o.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Gb=e=>{var t;const{className:n,children:r,icon:i,title:a,danger:l}=e,{prefixCls:c,firstLevel:s,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:f}=o.useContext(Xb),{siderCollapsed:p}=o.useContext(Og);let h=a;"undefined"===typeof a?h=s?r:"":!1===a&&(h="");const m={title:h};p||f||(m.title=null,m.open=!1);const g=wn(r).length;let v=o.createElement(fb,Object.assign({},Zo(e,["title","icon","danger"]),{className:je()({["".concat(c,"-item-danger")]:l,["".concat(c,"-item-only-child")]:1===(i?g+1:g)},n),title:"string"===typeof a?a:void 0}),gs(i,{className:je()(hs(i)?null===(t=i.props)||void 0===t?void 0:t.className:"","".concat(c,"-item-icon"))}),(e=>{const t=o.createElement("span",{className:"".concat(c,"-title-content")},r);return(!i||hs(r)&&"span"===r.type)&&r&&e&&s&&"string"===typeof r?o.createElement("div",{className:"".concat(c,"-inline-collapsed-noicon")},r.charAt(0)):t})(f));return d||(v=o.createElement(Ef,Object.assign({},m,{placement:"rtl"===u?"left":"right",overlayClassName:"".concat(c,"-inline-collapsed-tooltip")}),v)),v},$b=e=>{var t;const{popupClassName:n,icon:r,title:i,theme:a}=e,l=o.useContext(Xb),{prefixCls:c,inlineCollapsed:s,theme:u}=l,d=Pv();let f;if(r){const e=hs(i)&&"span"===i.type;f=o.createElement(o.Fragment,null,gs(r,{className:je()(hs(r)?null===(t=r.props)||void 0===t?void 0:t.className:"","".concat(c,"-item-icon"))}),e?i:o.createElement("span",{className:"".concat(c,"-title-content")},i))}else f=s&&!d.length&&i&&"string"===typeof i?o.createElement("div",{className:"".concat(c,"-inline-collapsed-noicon")},i.charAt(0)):o.createElement("span",{className:"".concat(c,"-title-content")},i);const p=o.useMemo((()=>Object.assign(Object.assign({},l),{firstLevel:!1})),[l]),[h]=Xd("Menu");return o.createElement(Xb.Provider,{value:p},o.createElement(Pb,Object.assign({},Zo(e,["icon"]),{title:f,popupClassName:je()(c,n,"".concat(c,"-").concat(a||u)),popupStyle:{zIndex:h}})))};var Yb=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function Qb(e){return(e||[]).map(((e,t)=>{if(e&&"object"===typeof e){const n=e,{label:r,children:i,key:a,type:l}=n,c=Yb(n,["label","children","key","type"]),s=null!==a&&void 0!==a?a:"tmp-".concat(t);return i||"group"===l?"group"===l?o.createElement(Rb,Object.assign({key:s},c,{title:r}),Qb(i)):o.createElement($b,Object.assign({key:s},c,{title:r}),Qb(i)):"divider"===l?o.createElement(Ub,Object.assign({key:s},c)):o.createElement(Gb,Object.assign({key:s},c),r)}return null})).filter((e=>e))}function Jb(e){return o.useMemo((()=>e?Qb(e):e),[e])}var Zb=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const ey=o.createContext(null),ty=o.forwardRef(((e,t)=>{const{children:n}=e,r=Zb(e,["children"]),i=o.useContext(ey),a=o.useMemo((()=>Object.assign(Object.assign({},i),r)),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),l=function(e){return!!(0,o.isValidElement)(e)&&!(0,qe.isFragment)(e)&&Ye(e)}(n),c=$e(t,l?n.ref:null);return o.createElement(ey.Provider,{value:a},o.createElement(ff,null,l?o.cloneElement(n,{ref:c}):n))})),ny=ey,oy=new wa("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),ry=new wa("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),iy=new wa("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),ay=new wa("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),ly=new wa("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),cy=new wa("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),sy=new wa("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),uy=new wa("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),dy={"slide-up":{inKeyframes:oy,outKeyframes:ry},"slide-down":{inKeyframes:iy,outKeyframes:ay},"slide-left":{inKeyframes:ly,outKeyframes:cy},"slide-right":{inKeyframes:sy,outKeyframes:uy}},fy=(e,t)=>{const{antCls:n}=e,o="".concat(n,"-").concat(t),{inKeyframes:r,outKeyframes:i}=dy[t];return[Na(o,r,i,e.motionDurationMid),{["\n ".concat(o,"-enter,\n ").concat(o,"-appear\n ")]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},["".concat(o,"-leave")]:{animationTimingFunction:e.motionEaseInQuint}}]},py=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:o,colorSplit:r,lineWidth:i,lineType:a,itemPaddingInline:l}=e;return{["".concat(t,"-horizontal")]:{lineHeight:o,border:0,borderBottom:"".concat(qr(i)," ").concat(a," ").concat(r),boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},["".concat(t,"-item, ").concat(t,"-submenu")]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},["> ".concat(t,"-item:hover,\n > ").concat(t,"-item-active,\n > ").concat(t,"-submenu ").concat(t,"-submenu-title:hover")]:{backgroundColor:"transparent"},["".concat(t,"-item, ").concat(t,"-submenu-title")]:{transition:["border-color ".concat(n),"background ".concat(n)].join(",")},["".concat(t,"-submenu-arrow")]:{display:"none"}}}},hy=e=>{let{componentCls:t,menuArrowOffset:n,calc:o}=e;return{["".concat(t,"-rtl")]:{direction:"rtl"},["".concat(t,"-submenu-rtl")]:{transformOrigin:"100% 0"},["".concat(t,"-rtl").concat(t,"-vertical,\n ").concat(t,"-submenu-rtl ").concat(t,"-vertical")]:{["".concat(t,"-submenu-arrow")]:{"&::before":{transform:"rotate(-45deg) translateY(".concat(qr(o(n).mul(-1).equal()),")")},"&::after":{transform:"rotate(45deg) translateY(".concat(qr(n),")")}}}}},my=e=>Object.assign({},Oa(e)),gy=(e,t)=>{const{componentCls:n,itemColor:o,itemSelectedColor:r,groupTitleColor:i,itemBg:a,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:s,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:f,motionEaseInOut:p,motionEaseOut:h,itemPaddingInline:m,motionDurationMid:g,itemHoverColor:v,lineType:b,colorSplit:y,itemDisabledColor:w,dangerItemColor:x,dangerItemHoverColor:S,dangerItemSelectedColor:C,dangerItemActiveBg:k,dangerItemSelectedBg:E,popupBg:O,itemHoverBg:_,itemActiveBg:P,menuSubMenuBg:M,horizontalItemSelectedColor:N,horizontalItemSelectedBg:I,horizontalItemBorderRadius:R,horizontalItemHoverBg:T}=e;return{["".concat(n,"-").concat(t,", ").concat(n,"-").concat(t," > ").concat(n)]:{color:o,background:a,["&".concat(n,"-root:focus-visible")]:Object.assign({},my(e)),["".concat(n,"-item-group-title")]:{color:i},["".concat(n,"-submenu-selected")]:{["> ".concat(n,"-submenu-title")]:{color:r}},["".concat(n,"-item, ").concat(n,"-submenu-title")]:{color:o,["&:not(".concat(n,"-item-disabled):focus-visible")]:Object.assign({},my(e))},["".concat(n,"-item-disabled, ").concat(n,"-submenu-disabled")]:{color:"".concat(w," !important")},["".concat(n,"-item:not(").concat(n,"-item-selected):not(").concat(n,"-submenu-selected)")]:{["&:hover, > ".concat(n,"-submenu-title:hover")]:{color:v}},["&:not(".concat(n,"-horizontal)")]:{["".concat(n,"-item:not(").concat(n,"-item-selected)")]:{"&:hover":{backgroundColor:_},"&:active":{backgroundColor:P}},["".concat(n,"-submenu-title")]:{"&:hover":{backgroundColor:_},"&:active":{backgroundColor:P}}},["".concat(n,"-item-danger")]:{color:x,["&".concat(n,"-item:hover")]:{["&:not(".concat(n,"-item-selected):not(").concat(n,"-submenu-selected)")]:{color:S}},["&".concat(n,"-item:active")]:{background:k}},["".concat(n,"-item a")]:{"&, &:hover":{color:"inherit"}},["".concat(n,"-item-selected")]:{color:r,["&".concat(n,"-item-danger")]:{color:C},"a, a:hover":{color:"inherit"}},["& ".concat(n,"-item-selected")]:{backgroundColor:c,["&".concat(n,"-item-danger")]:{backgroundColor:E}},["&".concat(n,"-submenu > ").concat(n)]:{backgroundColor:M},["&".concat(n,"-popup > ").concat(n)]:{backgroundColor:O},["&".concat(n,"-submenu-popup > ").concat(n)]:{backgroundColor:O},["&".concat(n,"-horizontal")]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{["> ".concat(n,"-item, > ").concat(n,"-submenu")]:{top:d,marginTop:e.calc(d).mul(-1).equal(),marginBottom:0,borderRadius:R,"&::after":{position:"absolute",insetInline:m,bottom:0,borderBottom:"".concat(qr(s)," solid transparent"),transition:"border-color ".concat(f," ").concat(p),content:'""'},"&:hover, &-active, &-open":{background:T,"&::after":{borderBottomWidth:s,borderBottomColor:N}},"&-selected":{color:N,backgroundColor:I,"&:hover":{backgroundColor:I},"&::after":{borderBottomWidth:s,borderBottomColor:N}}}}),["&".concat(n,"-root")]:{["&".concat(n,"-inline, &").concat(n,"-vertical")]:{borderInlineEnd:"".concat(qr(d)," ").concat(b," ").concat(y)}},["&".concat(n,"-inline")]:{["".concat(n,"-sub").concat(n,"-inline")]:{background:l},["".concat(n,"-item")]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:"".concat(qr(u)," solid ").concat(r),transform:"scaleY(0.0001)",opacity:0,transition:["transform ".concat(g," ").concat(h),"opacity ".concat(g," ").concat(h)].join(","),content:'""'},["&".concat(n,"-item-danger")]:{"&::after":{borderInlineEndColor:C}}},["".concat(n,"-selected, ").concat(n,"-item-selected")]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:["transform ".concat(g," ").concat(p),"opacity ".concat(g," ").concat(p)].join(",")}}}}}},vy=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:o,padding:r,menuArrowSize:i,marginXS:a,itemMarginBlock:l,itemWidth:c}=e,s=e.calc(i).add(r).add(a).equal();return{["".concat(t,"-item")]:{position:"relative",overflow:"hidden"},["".concat(t,"-item, ").concat(t,"-submenu-title")]:{height:n,lineHeight:qr(n),paddingInline:r,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:l,width:c},["> ".concat(t,"-item,\n > ").concat(t,"-submenu > ").concat(t,"-submenu-title")]:{height:n,lineHeight:qr(n)},["".concat(t,"-item-group-list ").concat(t,"-submenu-title,\n ").concat(t,"-submenu-title")]:{paddingInlineEnd:s}}},by=e=>{const{componentCls:t,iconCls:n,itemHeight:o,colorTextLightSolid:r,dropdownWidth:i,controlHeightLG:a,motionDurationMid:l,motionEaseOut:c,paddingXL:s,itemMarginInline:u,fontSizeLG:d,motionDurationSlow:f,paddingXS:p,boxShadowSecondary:h,collapsedWidth:m,collapsedIconSize:g}=e,v={height:o,lineHeight:qr(o),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({["&".concat(t,"-root")]:{boxShadow:"none"}},vy(e))},["".concat(t,"-submenu-popup")]:{["".concat(t,"-vertical")]:Object.assign(Object.assign({},vy(e)),{boxShadow:h})}},{["".concat(t,"-submenu-popup ").concat(t,"-vertical").concat(t,"-sub")]:{minWidth:i,maxHeight:"calc(100vh - ".concat(qr(e.calc(a).mul(2.5).equal()),")"),padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{["".concat(t,"-inline")]:{width:"100%",["&".concat(t,"-root")]:{["".concat(t,"-item, ").concat(t,"-submenu-title")]:{display:"flex",alignItems:"center",transition:["border-color ".concat(f),"background ".concat(f),"padding ".concat(l," ").concat(c)].join(","),["> ".concat(t,"-title-content")]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},["".concat(t,"-sub").concat(t,"-inline")]:{padding:0,border:0,borderRadius:0,boxShadow:"none",["& > ".concat(t,"-submenu > ").concat(t,"-submenu-title")]:v,["& ".concat(t,"-item-group-title")]:{paddingInlineStart:s}},["".concat(t,"-item")]:v}},{["".concat(t,"-inline-collapsed")]:{width:m,["&".concat(t,"-root")]:{["".concat(t,"-item, ").concat(t,"-submenu ").concat(t,"-submenu-title")]:{["> ".concat(t,"-inline-collapsed-noicon")]:{fontSize:d,textAlign:"center"}}},["> ".concat(t,"-item,\n > ").concat(t,"-item-group > ").concat(t,"-item-group-list > ").concat(t,"-item,\n > ").concat(t,"-item-group > ").concat(t,"-item-group-list > ").concat(t,"-submenu > ").concat(t,"-submenu-title,\n > ").concat(t,"-submenu > ").concat(t,"-submenu-title")]:{insetInlineStart:0,paddingInline:"calc(50% - ".concat(qr(e.calc(d).div(2).equal())," - ").concat(qr(u),")"),textOverflow:"clip",["\n ".concat(t,"-submenu-arrow,\n ").concat(t,"-submenu-expand-icon\n ")]:{opacity:0},["".concat(t,"-item-icon, ").concat(n)]:{margin:0,fontSize:g,lineHeight:qr(o),"+ span":{display:"inline-block",opacity:0}}},["".concat(t,"-item-icon, ").concat(n)]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",["".concat(t,"-item-icon, ").concat(n)]:{display:"none"},"a, a:hover":{color:r}},["".concat(t,"-item-group-title")]:Object.assign(Object.assign({},Sa),{paddingInline:p})}}]},yy=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:o,motionEaseInOut:r,motionEaseOut:i,iconCls:a,iconSize:l,iconMarginInlineEnd:c}=e;return{["".concat(t,"-item, ").concat(t,"-submenu-title")]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:["border-color ".concat(n),"background ".concat(n),"padding ".concat(n," ").concat(r)].join(","),["".concat(t,"-item-icon, ").concat(a)]:{minWidth:l,fontSize:l,transition:["font-size ".concat(o," ").concat(i),"margin ".concat(n," ").concat(r),"color ".concat(n)].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:["opacity ".concat(n," ").concat(r),"margin ".concat(n),"color ".concat(n)].join(",")}},["".concat(t,"-item-icon")]:Object.assign({},{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"}}),["&".concat(t,"-item-only-child")]:{["> ".concat(a,", > ").concat(t,"-item-icon")]:{marginInlineEnd:0}}},["".concat(t,"-item-disabled, ").concat(t,"-submenu-disabled")]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},["> ".concat(t,"-submenu-title")]:{color:"inherit !important",cursor:"not-allowed"}}}},wy=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:o,borderRadius:r,menuArrowSize:i,menuArrowOffset:a}=e;return{["".concat(t,"-submenu")]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:"transform ".concat(n," ").concat(o,", opacity ").concat(n)},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:r,transition:["background ".concat(n," ").concat(o),"transform ".concat(n," ").concat(o),"top ".concat(n," ").concat(o),"color ".concat(n," ").concat(o)].join(","),content:'""'},"&::before":{transform:"rotate(45deg) translateY(".concat(qr(e.calc(a).mul(-1).equal()),")")},"&::after":{transform:"rotate(-45deg) translateY(".concat(qr(a),")")}}}}},xy=e=>{const{antCls:t,componentCls:n,fontSize:o,motionDurationSlow:r,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:c,colorSplit:s,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:h,menuArrowOffset:m,lineType:g,groupTitleLineHeight:v,groupTitleFontSize:b}=e;return[{"":{["".concat(n)]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-hidden":{display:"none"}})},["".concat(n,"-submenu-hidden")]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ca(e)),{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{marginBottom:0,paddingInlineStart:0,fontSize:o,lineHeight:0,listStyle:"none",outline:"none",transition:"width ".concat(r," cubic-bezier(0.2, 0, 0, 1) 0s"),"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",["".concat(n,"-item")]:{flex:"none"}},["".concat(n,"-item, ").concat(n,"-submenu, ").concat(n,"-submenu-title")]:{borderRadius:e.itemBorderRadius},["".concat(n,"-item-group-title")]:{padding:"".concat(qr(l)," ").concat(qr(c)),fontSize:b,lineHeight:v,transition:"all ".concat(r)},["&-horizontal ".concat(n,"-submenu")]:{transition:["border-color ".concat(r," ").concat(a),"background ".concat(r," ").concat(a)].join(",")},["".concat(n,"-submenu, ").concat(n,"-submenu-inline")]:{transition:["border-color ".concat(r," ").concat(a),"background ".concat(r," ").concat(a),"padding ".concat(i," ").concat(a)].join(",")},["".concat(n,"-submenu ").concat(n,"-sub")]:{cursor:"initial",transition:["background ".concat(r," ").concat(a),"padding ".concat(r," ").concat(a)].join(",")},["".concat(n,"-title-content")]:{transition:"color ".concat(r),["> ".concat(t,"-typography-ellipsis-single-line")]:{display:"inline",verticalAlign:"unset"}},["".concat(n,"-item a")]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},["".concat(n,"-item-divider")]:{overflow:"hidden",lineHeight:0,borderColor:s,borderStyle:g,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),yy(e)),{["".concat(n,"-item-group")]:{["".concat(n,"-item-group-list")]:{margin:0,padding:0,["".concat(n,"-item, ").concat(n,"-submenu-title")]:{paddingInline:"".concat(qr(e.calc(o).mul(2).equal())," ").concat(qr(c))}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:f,boxShadow:"none",transformOrigin:"0 0",["&".concat(n,"-submenu")]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},["> ".concat(n)]:Object.assign(Object.assign(Object.assign({borderRadius:f},yy(e)),wy(e)),{["".concat(n,"-item, ").concat(n,"-submenu > ").concat(n,"-submenu-title")]:{borderRadius:p},["".concat(n,"-submenu-title::after")]:{transition:"transform ".concat(r," ").concat(a)}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),wy(e)),{["&-inline-collapsed ".concat(n,"-submenu-arrow,\n &-inline ").concat(n,"-submenu-arrow")]:{"&::before":{transform:"rotate(-45deg) translateX(".concat(qr(m),")")},"&::after":{transform:"rotate(45deg) translateX(".concat(qr(e.calc(m).mul(-1).equal()),")")}},["".concat(n,"-submenu-open").concat(n,"-submenu-inline > ").concat(n,"-submenu-title > ").concat(n,"-submenu-arrow")]:{transform:"translateY(".concat(qr(e.calc(h).mul(.2).mul(-1).equal()),")"),"&::after":{transform:"rotate(-45deg) translateX(".concat(qr(e.calc(m).mul(-1).equal()),")")},"&::before":{transform:"rotate(45deg) translateX(".concat(qr(m),")")}}})},{["".concat(t,"-layout-header")]:{[n]:{lineHeight:"inherit"}}}]},Sy=e=>{var t,n,o;const{colorPrimary:r,colorError:i,colorTextDisabled:a,colorErrorBg:l,colorText:c,colorTextDescription:s,colorBgContainer:u,colorFillAlter:d,colorFillContent:f,lineWidth:p,lineWidthBold:h,controlItemBgActive:m,colorBgTextHover:g,controlHeightLG:v,lineHeight:b,colorBgElevated:y,marginXXS:w,padding:x,fontSize:S,controlHeightSM:C,fontSizeLG:k,colorTextLightSolid:E,colorErrorHover:O}=e,_=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,P=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:p,M=null!==(o=e.itemMarginInline)&&void 0!==o?o:e.marginXXS,N=new Ul(E).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:r,horizontalItemHoverColor:r,colorGroupTitle:s,groupTitleColor:s,colorItemTextSelected:r,itemSelectedColor:r,colorItemTextSelectedHorizontal:r,horizontalItemSelectedColor:r,colorItemBg:u,itemBg:u,colorItemBgHover:g,itemHoverBg:g,colorItemBgActive:f,itemActiveBg:m,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:m,itemSelectedBg:m,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:_,colorActiveBarHeight:h,activeBarHeight:h,colorActiveBarBorderSize:p,activeBarBorderWidth:P,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:M,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:v,groupTitleLineHeight:b,collapsedWidth:2*v,popupBg:y,itemMarginBlock:w,itemPaddingInline:x,horizontalLineHeight:"".concat(1.15*v,"px"),iconSize:S,iconMarginInlineEnd:C-S,collapsedIconSize:k,groupTitleFontSize:S,darkItemDisabledColor:new Ul(E).setAlpha(.25).toRgbString(),darkItemColor:N,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:E,darkItemSelectedBg:r,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:N,darkItemHoverColor:E,darkDangerItemHoverColor:O,darkDangerItemSelectedColor:E,darkDangerItemActiveBg:i,itemWidth:_?"calc(100% + ".concat(P,"px)"):"calc(100% - ".concat(2*M,"px)")}};var Cy=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const ky=(0,o.forwardRef)(((e,t)=>{var n,r;const i=o.useContext(ny),a=i||{},{getPrefixCls:l,getPopupContainer:c,direction:s,menu:u}=o.useContext(nl),d=l(),{prefixCls:f,className:p,style:h,theme:m="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:v,inlineCollapsed:b,siderCollapsed:y,items:w,children:x,rootClassName:S,mode:C,selectable:k,onClick:E,overflowedIndicatorPopupClassName:O}=e,_=Zo(Cy(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]),P=Jb(w)||x;null===(n=a.validator)||void 0===n||n.call(a,{mode:C});const M=Ja((function(){var e;null===E||void 0===E||E.apply(void 0,arguments),null===(e=a.onClick)||void 0===e||e.call(a)})),N=a.mode||C,I=null!==k&&void 0!==k?k:a.selectable,R=o.useMemo((()=>void 0!==y?y:b),[b,y]),T={horizontal:{motionName:"".concat(d,"-slide-up")},inline:gn(d),other:{motionName:"".concat(d,"-zoom-big")}},j=l("menu",f||a.prefixCls),A=Bc(j),[z,L,D]=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const n=Oc("Menu",(e=>{const{colorBgElevated:t,colorPrimary:n,colorTextLightSolid:o,controlHeightLG:r,fontSize:i,darkItemColor:a,darkDangerItemColor:l,darkItemBg:c,darkSubMenuItemBg:s,darkItemSelectedColor:u,darkItemSelectedBg:d,darkDangerItemSelectedBg:f,darkItemHoverBg:p,darkGroupTitleColor:h,darkItemHoverColor:m,darkItemDisabledColor:g,darkDangerItemHoverColor:v,darkDangerItemSelectedColor:b,darkDangerItemActiveBg:y,popupBg:w,darkPopupBg:x}=e,S=e.calc(i).div(7).mul(5).equal(),C=Ga(e,{menuArrowSize:S,menuHorizontalHeight:e.calc(r).mul(1.15).equal(),menuArrowOffset:e.calc(S).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:w}),k=Ga(C,{itemColor:a,itemHoverColor:m,groupTitleColor:h,itemSelectedColor:u,itemBg:c,popupBg:x,subMenuItemBg:s,itemActiveBg:"transparent",itemSelectedBg:d,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:p,itemDisabledColor:g,dangerItemColor:l,dangerItemHoverColor:v,dangerItemSelectedColor:b,dangerItemActiveBg:y,dangerItemSelectedBg:f,menuSubMenuBg:s,horizontalItemSelectedColor:o,horizontalItemSelectedBg:n});return[xy(C),py(C),by(C),gy(C,"light"),gy(k,"dark"),hy(C),qa(C),fy(C,"slide-up"),fy(C,"slide-down"),Ka(C,"zoom-big")]}),Sy,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:!(arguments.length>2&&void 0!==arguments[2])||arguments[2],unitless:{groupTitleLineHeight:!0}});return n(e,t)}(j,A,!i),B=je()("".concat(j,"-").concat(m),null===u||void 0===u?void 0:u.className,p);let F;if("function"===typeof g)F=g;else if(null===g||!1===g)F=null;else if(null===a.expandIcon||!1===a.expandIcon)F=null;else{const e=null!==g&&void 0!==g?g:a.expandIcon;F=gs(e,{className:je()("".concat(j,"-submenu-expand-icon"),hs(e)?null===(r=e.props)||void 0===r?void 0:r.className:"")})}const H=o.useMemo((()=>({prefixCls:j,inlineCollapsed:R||!1,direction:s,firstLevel:!0,theme:m,mode:N,disableMenuItemTitleTooltip:v})),[j,R,s,v,m]);return z(o.createElement(ny.Provider,{value:null},o.createElement(Xb.Provider,{value:H},o.createElement(Hb,Object.assign({getPopupContainer:c,overflowedIndicator:o.createElement(Kb,null),overflowedIndicatorPopupClassName:je()(j,"".concat(j,"-").concat(m),O),mode:N,selectable:I,onClick:M},_,{inlineCollapsed:R,style:Object.assign(Object.assign({},null===u||void 0===u?void 0:u.style),h),className:B,prefixCls:j,direction:s,defaultMotions:T,expandIcon:F,ref:t,rootClassName:je()(S,L,a.rootClassName,D,A)}),P))))})),Ey=ky,Oy=(0,o.forwardRef)(((e,t)=>{const n=(0,o.useRef)(null),r=o.useContext(Og);return(0,o.useImperativeHandle)(t,(()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}}))),o.createElement(Ey,Object.assign({ref:n},e,r))}));Oy.Item=Gb,Oy.SubMenu=$b,Oy.Divider=Ub,Oy.ItemGroup=Rb;const _y=Oy;function Py(e){return["small","middle","large"].includes(e)}function My(e){return!!e&&("number"===typeof e&&!Number.isNaN(e))}const Ny=o.createContext({latestIndex:0}),Iy=Ny.Provider,Ry=e=>{let{className:t,index:n,children:r,split:i,style:a}=e;const{latestIndex:l}=o.useContext(Ny);return null===r||void 0===r?null:o.createElement(o.Fragment,null,o.createElement("div",{className:t,style:a},r),n<l&&i&&o.createElement("span",{className:"".concat(t,"-split")},i))};var Ty=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const jy=o.forwardRef(((e,t)=>{var n,r;const{getPrefixCls:i,space:a,direction:l}=o.useContext(nl),{size:c=(null===a||void 0===a?void 0:a.size)||"small",align:s,className:u,rootClassName:d,children:f,direction:p="horizontal",prefixCls:h,split:m,style:g,wrap:v=!1,classNames:b,styles:y}=e,w=Ty(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[x,S]=Array.isArray(c)?c:[c,c],C=Py(S),k=Py(x),E=My(S),O=My(x),_=wn(f,{keepEmpty:!0}),P=void 0===s&&"horizontal"===p?"center":s,M=i("space",h),[N,I,R]=cf(M),T=je()(M,null===a||void 0===a?void 0:a.className,I,"".concat(M,"-").concat(p),{["".concat(M,"-rtl")]:"rtl"===l,["".concat(M,"-align-").concat(P)]:P,["".concat(M,"-gap-row-").concat(S)]:C,["".concat(M,"-gap-col-").concat(x)]:k},u,d,R),j=je()("".concat(M,"-item"),null!==(n=null===b||void 0===b?void 0:b.item)&&void 0!==n?n:null===(r=null===a||void 0===a?void 0:a.classNames)||void 0===r?void 0:r.item);let A=0;const z=_.map(((e,t)=>{var n,r;null!==e&&void 0!==e&&(A=t);const i=e&&e.key||"".concat(j,"-").concat(t);return o.createElement(Ry,{className:j,key:i,index:t,split:m,style:null!==(n=null===y||void 0===y?void 0:y.item)&&void 0!==n?n:null===(r=null===a||void 0===a?void 0:a.styles)||void 0===r?void 0:r.item},e)})),L=o.useMemo((()=>({latestIndex:A})),[A]);if(0===_.length)return null;const D={};return v&&(D.flexWrap="wrap"),!k&&O&&(D.columnGap=x),!C&&E&&(D.rowGap=S),N(o.createElement("div",Object.assign({ref:t,className:T,style:Object.assign(Object.assign(Object.assign({},D),null===a||void 0===a?void 0:a.style),g)},w),o.createElement(Iy,{value:L},z)))}));const Ay=jy;Ay.Compact=hf;const zy=Ay,Ly=e=>{const{prefixCls:t,className:n,style:r,size:i,shape:a}=e,l=je()({["".concat(t,"-lg")]:"large"===i,["".concat(t,"-sm")]:"small"===i}),c=je()({["".concat(t,"-circle")]:"circle"===a,["".concat(t,"-square")]:"square"===a,["".concat(t,"-round")]:"round"===a}),s=o.useMemo((()=>"number"===typeof i?{width:i,height:i,lineHeight:"".concat(i,"px")}:{}),[i]);return o.createElement("span",{className:je()(t,l,c,n),style:Object.assign(Object.assign({},s),r)})},Dy=new wa("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),By=e=>({height:e,lineHeight:qr(e)}),Fy=e=>Object.assign({width:e},By(e)),Hy=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Dy,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Wy=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},By(e)),Vy=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:o,controlHeightLG:r,controlHeightSM:i}=e;return{["".concat(t)]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Fy(o)),["".concat(t).concat(t,"-circle")]:{borderRadius:"50%"},["".concat(t).concat(t,"-lg")]:Object.assign({},Fy(r)),["".concat(t).concat(t,"-sm")]:Object.assign({},Fy(i))}},Ky=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:o,controlHeightLG:r,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return{["".concat(o)]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},Wy(t,l)),["".concat(o,"-lg")]:Object.assign({},Wy(r,l)),["".concat(o,"-sm")]:Object.assign({},Wy(i,l))}},qy=e=>Object.assign({width:e},By(e)),Uy=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:o,borderRadiusSM:r,calc:i}=e;return{["".concat(t)]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:o,borderRadius:r},qy(i(n).mul(2).equal())),{["".concat(t,"-path")]:{fill:"#bfbfbf"},["".concat(t,"-svg")]:Object.assign(Object.assign({},qy(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),["".concat(t,"-svg").concat(t,"-svg-circle")]:{borderRadius:"50%"}}),["".concat(t).concat(t,"-circle")]:{borderRadius:"50%"}}},Xy=(e,t,n)=>{const{skeletonButtonCls:o}=e;return{["".concat(n).concat(o,"-circle")]:{width:t,minWidth:t,borderRadius:"50%"},["".concat(n).concat(o,"-round")]:{borderRadius:t}}},Gy=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},By(e)),$y=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:o,controlHeightLG:r,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({["".concat(n)]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:l(o).mul(2).equal(),minWidth:l(o).mul(2).equal()},Gy(o,l))},Xy(e,o,n)),{["".concat(n,"-lg")]:Object.assign({},Gy(r,l))}),Xy(e,r,"".concat(n,"-lg"))),{["".concat(n,"-sm")]:Object.assign({},Gy(i,l))}),Xy(e,i,"".concat(n,"-sm")))},Yy=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:o,skeletonParagraphCls:r,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:l,controlHeight:c,controlHeightLG:s,controlHeightSM:u,gradientFromColor:d,padding:f,marginSM:p,borderRadius:h,titleHeight:m,blockRadius:g,paragraphLiHeight:v,controlHeightXS:b,paragraphMarginTop:y}=e;return{["".concat(t)]:{display:"table",width:"100%",["".concat(t,"-header")]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",["".concat(n)]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},Fy(c)),["".concat(n,"-circle")]:{borderRadius:"50%"},["".concat(n,"-lg")]:Object.assign({},Fy(s)),["".concat(n,"-sm")]:Object.assign({},Fy(u))},["".concat(t,"-content")]:{display:"table-cell",width:"100%",verticalAlign:"top",["".concat(o)]:{width:"100%",height:m,background:d,borderRadius:g,["+ ".concat(r)]:{marginBlockStart:u}},["".concat(r)]:{padding:0,"> li":{width:"100%",height:v,listStyle:"none",background:d,borderRadius:g,"+ li":{marginBlockStart:b}}},["".concat(r,"> li:last-child:not(:first-child):not(:nth-child(2))")]:{width:"61%"}},["&-round ".concat(t,"-content")]:{["".concat(o,", ").concat(r," > li")]:{borderRadius:h}}},["".concat(t,"-with-avatar ").concat(t,"-content")]:{["".concat(o)]:{marginBlockStart:p,["+ ".concat(r)]:{marginBlockStart:y}}},["".concat(t).concat(t,"-element")]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},$y(e)),Vy(e)),Ky(e)),Uy(e)),["".concat(t).concat(t,"-block")]:{width:"100%",["".concat(i)]:{width:"100%"},["".concat(a)]:{width:"100%"}},["".concat(t).concat(t,"-active")]:{["\n ".concat(o,",\n ").concat(r," > li,\n ").concat(n,",\n ").concat(i,",\n ").concat(a,",\n ").concat(l,"\n ")]:Object.assign({},Hy(e))}}},Qy=Oc("Skeleton",(e=>{const{componentCls:t,calc:n}=e,o=Ga(e,{skeletonAvatarCls:"".concat(t,"-avatar"),skeletonTitleCls:"".concat(t,"-title"),skeletonParagraphCls:"".concat(t,"-paragraph"),skeletonButtonCls:"".concat(t,"-button"),skeletonInputCls:"".concat(t,"-input"),skeletonImageCls:"".concat(t,"-image"),imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:"linear-gradient(90deg, ".concat(e.gradientFromColor," 25%, ").concat(e.gradientToColor," 37%, ").concat(e.gradientFromColor," 63%)"),skeletonLoadingMotionDuration:"1.4s"});return[Yy(o)]}),(e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}}),{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Jy=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,shape:a="circle",size:l="default"}=e,{getPrefixCls:c}=o.useContext(nl),s=c("skeleton",t),[u,d,f]=Qy(s),p=Zo(e,["prefixCls","className"]),h=je()(s,"".concat(s,"-element"),{["".concat(s,"-active")]:i},n,r,d,f);return u(o.createElement("div",{className:h},o.createElement(Ly,Object.assign({prefixCls:"".concat(s,"-avatar"),shape:a,size:l},p))))},Zy=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:a=!1,size:l="default"}=e,{getPrefixCls:c}=o.useContext(nl),s=c("skeleton",t),[u,d,f]=Qy(s),p=Zo(e,["prefixCls"]),h=je()(s,"".concat(s,"-element"),{["".concat(s,"-active")]:i,["".concat(s,"-block")]:a},n,r,d,f);return u(o.createElement("div",{className:h},o.createElement(Ly,Object.assign({prefixCls:"".concat(s,"-button"),size:l},p))))},ew=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:a}=e,{getPrefixCls:l}=o.useContext(nl),c=l("skeleton",t),[s,u,d]=Qy(c),f=je()(c,"".concat(c,"-element"),{["".concat(c,"-active")]:a},n,r,u,d);return s(o.createElement("div",{className:f},o.createElement("div",{className:je()("".concat(c,"-image"),n),style:i},o.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(c,"-image-svg")},o.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:"".concat(c,"-image-path")})))))},tw=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:a,size:l="default"}=e,{getPrefixCls:c}=o.useContext(nl),s=c("skeleton",t),[u,d,f]=Qy(s),p=Zo(e,["prefixCls"]),h=je()(s,"".concat(s,"-element"),{["".concat(s,"-active")]:i,["".concat(s,"-block")]:a},n,r,d,f);return u(o.createElement("div",{className:h},o.createElement(Ly,Object.assign({prefixCls:"".concat(s,"-input"),size:l},p))))};const nw={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"};var ow=function(e,t){return o.createElement(au,Jt({},e,{ref:t,icon:nw}))};const rw=o.forwardRef(ow),iw=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:a,children:l}=e,{getPrefixCls:c}=o.useContext(nl),s=c("skeleton",t),[u,d,f]=Qy(s),p=je()(s,"".concat(s,"-element"),{["".concat(s,"-active")]:a},d,n,r,f),h=null!==l&&void 0!==l?l:o.createElement(rw,null);return u(o.createElement("div",{className:p},o.createElement("div",{className:je()("".concat(s,"-image"),n),style:i},h)))},aw=e=>{const t=t=>{const{width:n,rows:o=2}=e;return Array.isArray(n)?n[t]:o-1===t?n:void 0},{prefixCls:n,className:r,style:i,rows:a}=e,l=Re(Array(a)).map(((e,n)=>o.createElement("li",{key:n,style:{width:t(n)}})));return o.createElement("ul",{className:je()(n,r),style:i},l)},lw=e=>{let{prefixCls:t,className:n,width:r,style:i}=e;return o.createElement("h3",{className:je()(t,n),style:Object.assign({width:r},i)})};function cw(e){return e&&"object"===typeof e?e:{}}const sw=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:i,style:a,children:l,avatar:c=!1,title:s=!0,paragraph:u=!0,active:d,round:f}=e,{getPrefixCls:p,direction:h,skeleton:m}=o.useContext(nl),g=p("skeleton",t),[v,b,y]=Qy(g);if(n||!("loading"in e)){const e=!!c,t=!!s,n=!!u;let l,p;if(e){const e=Object.assign(Object.assign({prefixCls:"".concat(g,"-avatar")},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,n)),cw(c));l=o.createElement("div",{className:"".concat(g,"-header")},o.createElement(Ly,Object.assign({},e)))}if(t||n){let r,i;if(t){const t=Object.assign(Object.assign({prefixCls:"".concat(g,"-title")},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,n)),cw(s));r=o.createElement(lw,Object.assign({},t))}if(n){const n=Object.assign(Object.assign({prefixCls:"".concat(g,"-paragraph")},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,t)),cw(u));i=o.createElement(aw,Object.assign({},n))}p=o.createElement("div",{className:"".concat(g,"-content")},r,i)}const w=je()(g,{["".concat(g,"-with-avatar")]:e,["".concat(g,"-active")]:d,["".concat(g,"-rtl")]:"rtl"===h,["".concat(g,"-round")]:f},null===m||void 0===m?void 0:m.className,r,i,b,y);return v(o.createElement("div",{className:w,style:Object.assign(Object.assign({},null===m||void 0===m?void 0:m.style),a)},l,p))}return"undefined"!==typeof l?l:null};sw.Button=Zy,sw.Avatar=Jy,sw.Input=tw,sw.Image=ew,sw.Node=iw;const uw=sw;const dw={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};var fw=function(e,t){return o.createElement(au,Jt({},e,{ref:t,icon:dw}))};const pw=o.forwardRef(fw);const hw={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};var mw=function(e,t){return o.createElement(au,Jt({},e,{ref:t,icon:hw}))};const gw=o.forwardRef(mw),vw=(0,o.createContext)(null);const bw=function(e){var t=e.activeTabOffset,n=e.horizontal,r=e.rtl,i=e.indicator,a=void 0===i?{}:i,l=a.size,c=a.align,s=void 0===c?"center":c,u=We((0,o.useState)(),2),d=u[0],f=u[1],p=(0,o.useRef)(),h=o.useCallback((function(e){return"function"===typeof l?l(e):"number"===typeof l?l:e}),[l]);function m(){Kt.cancel(p.current)}return(0,o.useEffect)((function(){var e={};if(t)if(n){e.width=h(t.width);var o=r?"right":"left";"start"===s&&(e[o]=t[o]),"center"===s&&(e[o]=t[o]+t.width/2,e.transform=r?"translateX(50%)":"translateX(-50%)"),"end"===s&&(e[o]=t[o]+t.width,e.transform="translateX(-100%)")}else e.height=h(t.height),"start"===s&&(e.top=t.top),"center"===s&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===s&&(e.top=t.top+t.height,e.transform="translateY(-100%)");return m(),p.current=Kt((function(){f(e)})),m}),[t,n,r,s,h]),{style:d}};var yw={width:0,height:0,left:0,top:0};function ww(e,t){var n=o.useRef(e),r=We(o.useState({}),2)[1];return[n.current,function(e){var o="function"===typeof e?e(n.current):e;o!==n.current&&t(o,n.current),n.current=o,r({})}]}var xw=Math.pow(.995,20);function Sw(e){var t=We((0,o.useState)(0),2),n=t[0],r=t[1],i=(0,o.useRef)(0),a=(0,o.useRef)();return a.current=e,Jr((function(){var e;null===(e=a.current)||void 0===e||e.call(a)}),[n]),function(){i.current===n&&(i.current+=1,r(i.current))}}var Cw={width:0,height:0,left:0,top:0,right:0};function kw(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function Ew(e){return String(e).replace(/"/g,"TABS_DQ")}function Ow(e,t,n,o){return!(!n||o||!1===e||void 0===e&&(!1===t||null===t))}var _w=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.editable,i=e.locale,a=e.style;return r&&!1!==r.showAdd?o.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(null===i||void 0===i?void 0:i.addAriaLabel)||"Add tab",onClick:function(e){r.onEdit("add",{event:e})}},r.addIcon||"+"):null}));const Pw=_w;var Mw=o.forwardRef((function(e,t){var n,r=e.position,i=e.prefixCls,a=e.extra;if(!a)return null;var l={};return"object"!==Ae(a)||o.isValidElement(a)?l.right=a:l=a,"right"===r&&(n=l.right),"left"===r&&(n=l.left),n?o.createElement("div",{className:"".concat(i,"-extra-content"),ref:t},n):null}));const Nw=Mw;var Iw=jv.ESC,Rw=jv.TAB;const Tw=(0,o.forwardRef)((function(e,t){var n=e.overlay,r=e.arrow,i=e.prefixCls,a=(0,o.useMemo)((function(){return"function"===typeof n?n():n}),[n]),l=Ge(t,null===a||void 0===a?void 0:a.ref);return o.createElement(o.Fragment,null,r&&o.createElement("div",{className:"".concat(i,"-arrow")}),o.cloneElement(a,{ref:Ye(a)?l:void 0}))}));var jw={adjustX:1,adjustY:1},Aw=[0,0];const zw={topLeft:{points:["bl","tl"],overflow:jw,offset:[0,-4],targetOffset:Aw},top:{points:["bc","tc"],overflow:jw,offset:[0,-4],targetOffset:Aw},topRight:{points:["br","tr"],overflow:jw,offset:[0,-4],targetOffset:Aw},bottomLeft:{points:["tl","bl"],overflow:jw,offset:[0,4],targetOffset:Aw},bottom:{points:["tc","bc"],overflow:jw,offset:[0,4],targetOffset:Aw},bottomRight:{points:["tr","br"],overflow:jw,offset:[0,4],targetOffset:Aw}};var Lw=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Dw(e,t){var n,r=e.arrow,i=void 0!==r&&r,a=e.prefixCls,l=void 0===a?"rc-dropdown":a,c=e.transitionName,s=e.animation,u=e.align,d=e.placement,f=void 0===d?"bottomLeft":d,p=e.placements,h=void 0===p?zw:p,m=e.getPopupContainer,g=e.showAction,v=e.hideAction,b=e.overlayClassName,y=e.overlayStyle,w=e.visible,x=e.trigger,S=void 0===x?["hover"]:x,C=e.autoFocus,k=e.overlay,E=e.children,O=e.onVisibleChange,_=Qe(e,Lw),P=We(o.useState(),2),M=P[0],N=P[1],I="visible"in e?w:M,R=o.useRef(null),T=o.useRef(null),j=o.useRef(null);o.useImperativeHandle(t,(function(){return R.current}));var A=function(e){N(e),null===O||void 0===O||O(e)};!function(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,i=e.autoFocus,a=e.overlayRef,l=o.useRef(!1),c=function(){var e,o;t&&(null===(e=n.current)||void 0===e||null===(o=e.focus)||void 0===o||o.call(e),null===r||void 0===r||r(!1))},s=function(){var e;return!(null===(e=a.current)||void 0===e||!e.focus)&&(a.current.focus(),l.current=!0,!0)},u=function(e){switch(e.keyCode){case Iw:c();break;case Rw:var t=!1;l.current||(t=s()),t?e.preventDefault():c()}};o.useEffect((function(){return t?(window.addEventListener("keydown",u),i&&Kt(s,3),function(){window.removeEventListener("keydown",u),l.current=!1}):function(){l.current=!1}}),[t])}({visible:I,triggerRef:j,onVisibleChange:A,autoFocus:C,overlayRef:T});var z=function(){return o.createElement(Tw,{ref:T,overlay:k,prefixCls:l,arrow:i})},L=o.cloneElement(E,{className:je()(null===(n=E.props)||void 0===n?void 0:n.className,I&&function(){var t=e.openClassName;return void 0!==t?t:"".concat(l,"-open")}()),ref:Ye(E)?Ge(j,E.ref):void 0}),D=v;return D||-1===S.indexOf("contextMenu")||(D=["click"]),o.createElement(Ad,Jt({builtinPlacements:h},_,{prefixCls:l,ref:R,popupClassName:je()(b,Le({},"".concat(l,"-show-arrow"),i)),popupStyle:y,action:S,showAction:g,hideAction:D,popupPlacement:f,popupAlign:u,popupTransitionName:c,popupAnimation:s,popupVisible:I,stretch:function(){var t=e.minOverlayWidthMatchTrigger,n=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?t:!n}()?"minWidth":"",popup:"function"===typeof k?z:z(),onPopupVisibleChange:A,onPopupClick:function(t){var n=e.onOverlayClick;N(!1),n&&n(t)},getPopupContainer:m}),L)}const Bw=o.forwardRef(Dw);var Fw=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.id,i=e.tabs,a=e.locale,l=e.mobile,c=e.moreIcon,s=void 0===c?"More":c,u=e.moreTransitionName,d=e.style,f=e.className,p=e.editable,h=e.tabBarGutter,m=e.rtl,g=e.removeAriaLabel,v=e.onTabClick,b=e.getPopupContainer,y=e.popupClassName,w=We((0,o.useState)(!1),2),x=w[0],S=w[1],C=We((0,o.useState)(null),2),k=C[0],E=C[1],O="".concat(r,"-more-popup"),_="".concat(n,"-dropdown"),P=null!==k?"".concat(O,"-").concat(k):null,M=null===a||void 0===a?void 0:a.dropdownAriaLabel;var N=o.createElement(Hb,{onClick:function(e){var t=e.key,n=e.domEvent;v(t,n),S(!1)},prefixCls:"".concat(_,"-menu"),id:O,tabIndex:-1,role:"listbox","aria-activedescendant":P,selectedKeys:[k],"aria-label":void 0!==M?M:"expanded dropdown"},i.map((function(e){var t=e.closable,n=e.disabled,i=e.closeIcon,a=e.key,l=e.label,c=Ow(t,i,p,n);return o.createElement(fb,{key:a,id:"".concat(O,"-").concat(a),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(a),disabled:n},o.createElement("span",null,l),c&&o.createElement("button",{type:"button","aria-label":g||"remove",tabIndex:0,className:"".concat(_,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),p.onEdit("remove",{key:t,event:e})}(e,a)}},i||p.removeIcon||"\xd7"))})));function I(e){for(var t=i.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===k}))||0,o=t.length,r=0;r<o;r+=1){var a=t[n=(n+e+o)%o];if(!a.disabled)return void E(a.key)}}(0,o.useEffect)((function(){var e=document.getElementById(P);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[k]),(0,o.useEffect)((function(){x||E(null)}),[x]);var R=Le({},m?"marginRight":"marginLeft",h);i.length||(R.visibility="hidden",R.order=1);var T=je()(Le({},"".concat(_,"-rtl"),m)),j=l?null:o.createElement(Bw,{prefixCls:_,overlay:N,trigger:["hover"],visible:!!i.length&&x,transitionName:u,onVisibleChange:S,overlayClassName:je()(T,y),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:b},o.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:R,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":O,id:"".concat(r,"-more"),"aria-expanded":x,onKeyDown:function(e){var t=e.which;if(x)switch(t){case jv.UP:I(-1),e.preventDefault();break;case jv.DOWN:I(1),e.preventDefault();break;case jv.ESC:S(!1);break;case jv.SPACE:case jv.ENTER:null!==k&&v(k,e)}else[jv.DOWN,jv.SPACE,jv.ENTER].includes(t)&&(S(!0),e.preventDefault())}},s));return o.createElement("div",{className:je()("".concat(n,"-nav-operations"),f),style:d,ref:t},j,o.createElement(Pw,{prefixCls:n,locale:a,editable:p}))}));const Hw=o.memo(Fw,(function(e,t){return t.tabMoving}));const Ww=function(e){var t=e.prefixCls,n=e.id,r=e.active,i=e.tab,a=i.key,l=i.label,c=i.disabled,s=i.closeIcon,u=i.icon,d=e.closable,f=e.renderWrapper,p=e.removeAriaLabel,h=e.editable,m=e.onClick,g=e.onFocus,v=e.style,b="".concat(t,"-tab"),y=Ow(d,s,h,c);function w(e){c||m(e)}var x=o.useMemo((function(){return u&&"string"===typeof l?o.createElement("span",null,l):l}),[l,u]),S=o.createElement("div",{key:a,"data-node-key":Ew(a),className:je()(b,Le(Le(Le({},"".concat(b,"-with-remove"),y),"".concat(b,"-active"),r),"".concat(b,"-disabled"),c)),style:v,onClick:w},o.createElement("div",{role:"tab","aria-selected":r,id:n&&"".concat(n,"-tab-").concat(a),className:"".concat(b,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(a),"aria-disabled":c,tabIndex:c?null:0,onClick:function(e){e.stopPropagation(),w(e)},onKeyDown:function(e){[jv.SPACE,jv.ENTER].includes(e.which)&&(e.preventDefault(),w(e))},onFocus:g},u&&o.createElement("span",{className:"".concat(b,"-icon")},u),l&&x),y&&o.createElement("button",{type:"button","aria-label":p||"remove",tabIndex:0,className:"".concat(b,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),h.onEdit("remove",{key:a,event:t})}},s||h.removeIcon||"\xd7"));return f?f(S):S};var Vw=function(e){var t=e.current||{},n=t.offsetWidth,o=void 0===n?0:n,r=t.offsetHeight,i=void 0===r?0:r;if(e.current){var a=e.current.getBoundingClientRect(),l=a.width,c=a.height;if(Math.abs(l-o)<1)return[l,c]}return[o,i]},Kw=function(e,t){return e[t?0:1]},qw=o.forwardRef((function(e,t){var n=e.className,r=e.style,i=e.id,a=e.animated,l=e.activeKey,c=e.rtl,s=e.extra,u=e.editable,d=e.locale,f=e.tabPosition,p=e.tabBarGutter,h=e.children,m=e.onTabClick,g=e.onTabScroll,v=e.indicator,b=o.useContext(vw),y=b.prefixCls,w=b.tabs,x=(0,o.useRef)(null),S=(0,o.useRef)(null),C=(0,o.useRef)(null),k=(0,o.useRef)(null),E=(0,o.useRef)(null),O=(0,o.useRef)(null),_=(0,o.useRef)(null),P="top"===f||"bottom"===f,M=ww(0,(function(e,t){P&&g&&g({direction:e>t?"left":"right"})})),N=We(M,2),I=N[0],R=N[1],T=ww(0,(function(e,t){!P&&g&&g({direction:e>t?"top":"bottom"})})),j=We(T,2),A=j[0],z=j[1],L=We((0,o.useState)([0,0]),2),D=L[0],B=L[1],F=We((0,o.useState)([0,0]),2),H=F[0],W=F[1],V=We((0,o.useState)([0,0]),2),K=V[0],q=V[1],U=We((0,o.useState)([0,0]),2),X=U[0],G=U[1],$=function(e){var t=(0,o.useRef)([]),n=We((0,o.useState)({}),2)[1],r=(0,o.useRef)("function"===typeof e?e():e),i=Sw((function(){var e=r.current;t.current.forEach((function(t){e=t(e)})),t.current=[],r.current=e,n({})}));return[r.current,function(e){t.current.push(e),i()}]}(new Map),Y=We($,2),Q=Y[0],J=Y[1],Z=function(e,t,n){return(0,o.useMemo)((function(){for(var n,o=new Map,r=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||yw,i=r.left+r.width,a=0;a<e.length;a+=1){var l,c=e[a].key,s=t.get(c);s||(s=t.get(null===(l=e[a-1])||void 0===l?void 0:l.key)||yw);var u=o.get(c)||Be({},s);u.right=i-u.left-u.width,o.set(c,u)}return o}),[e.map((function(e){return e.key})).join("_"),t,n])}(w,Q,H[0]),ee=Kw(D,P),te=Kw(H,P),ne=Kw(K,P),oe=Kw(X,P),re=ee<te+ne,ie=re?ee-oe:ee-ne,ae="".concat(y,"-nav-operations-hidden"),le=0,ce=0;function se(e){return e<le?le:e>ce?ce:e}P&&c?(le=0,ce=Math.max(0,te-ie)):(le=Math.min(0,ie-te),ce=0);var ue=(0,o.useRef)(null),de=We((0,o.useState)(),2),fe=de[0],pe=de[1];function he(){pe(Date.now())}function me(){ue.current&&clearTimeout(ue.current)}!function(e,t){var n=We((0,o.useState)(),2),r=n[0],i=n[1],a=We((0,o.useState)(0),2),l=a[0],c=a[1],s=We((0,o.useState)(0),2),u=s[0],d=s[1],f=We((0,o.useState)(),2),p=f[0],h=f[1],m=(0,o.useRef)(),g=(0,o.useRef)(),v=(0,o.useRef)(null);v.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,o=t.screenY;i({x:n,y:o}),window.clearInterval(m.current)},onTouchMove:function(e){if(r){e.preventDefault();var n=e.touches[0],o=n.screenX,a=n.screenY;i({x:o,y:a});var s=o-r.x,u=a-r.y;t(s,u);var f=Date.now();c(f),d(f-l),h({x:s,y:u})}},onTouchEnd:function(){if(r&&(i(null),h(null),p)){var e=p.x/u,n=p.y/u,o=Math.abs(e),a=Math.abs(n);if(Math.max(o,a)<.1)return;var l=e,c=n;m.current=window.setInterval((function(){Math.abs(l)<.01&&Math.abs(c)<.01?window.clearInterval(m.current):t(20*(l*=xw),20*(c*=xw))}),20)}},onWheel:function(e){var n=e.deltaX,o=e.deltaY,r=0,i=Math.abs(n),a=Math.abs(o);i===a?r="x"===g.current?n:o:i>a?(r=n,g.current="x"):(r=o,g.current="y"),t(-r,-r)&&e.preventDefault()}},o.useEffect((function(){function t(e){v.current.onTouchMove(e)}function n(e){v.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){v.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){v.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(k,(function(e,t){function n(e,t){e((function(e){return se(e+t)}))}return!!re&&(P?n(R,e):n(z,t),me(),he(),!0)})),(0,o.useEffect)((function(){return me(),fe&&(ue.current=setTimeout((function(){pe(0)}),100)),me}),[fe]);var ge=function(e,t,n,r,i,a,l){var c,s,u,d=l.tabs,f=l.tabPosition,p=l.rtl;return["top","bottom"].includes(f)?(c="width",s=p?"right":"left",u=Math.abs(n)):(c="height",s="top",u=-n),(0,o.useMemo)((function(){if(!d.length)return[0,0];for(var n=d.length,o=n,r=0;r<n;r+=1){var i=e.get(d[r].key)||Cw;if(i[s]+i[c]>u+t){o=r-1;break}}for(var a=0,l=n-1;l>=0;l-=1)if((e.get(d[l].key)||Cw)[s]<u){a=l+1;break}return a>=o?[0,0]:[a,o]}),[e,t,r,i,a,u,f,d.map((function(e){return e.key})).join("_"),p])}(Z,ie,P?I:A,te,ne,oe,Be(Be({},e),{},{tabs:w})),ve=We(ge,2),be=ve[0],ye=ve[1],we=Ja((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=Z.get(e)||{width:0,height:0,left:0,right:0,top:0};if(P){var n=I;c?t.right<I?n=t.right:t.right+t.width>I+ie&&(n=t.right+t.width-ie):t.left<-I?n=-t.left:t.left+t.width>-I+ie&&(n=-(t.left+t.width-ie)),z(0),R(se(n))}else{var o=A;t.top<-A?o=-t.top:t.top+t.height>-A+ie&&(o=-(t.top+t.height-ie)),R(0),z(se(o))}})),xe={};"top"===f||"bottom"===f?xe[c?"marginRight":"marginLeft"]=p:xe.marginTop=p;var Se=w.map((function(e,t){var n=e.key;return o.createElement(Ww,{id:i,prefixCls:y,key:n,tab:e,style:0===t?void 0:xe,closable:e.closable,editable:u,active:n===l,renderWrapper:h,removeAriaLabel:null===d||void 0===d?void 0:d.removeAriaLabel,onClick:function(e){m(n,e)},onFocus:function(){we(n),he(),k.current&&(c||(k.current.scrollLeft=0),k.current.scrollTop=0)}})})),Ce=function(){return J((function(){var e,t=new Map,n=null===(e=E.current)||void 0===e?void 0:e.getBoundingClientRect();return w.forEach((function(e){var o,r=e.key,i=null===(o=E.current)||void 0===o?void 0:o.querySelector('[data-node-key="'.concat(Ew(r),'"]'));if(i){var a=function(e,t){var n=e.offsetWidth,o=e.offsetHeight,r=e.offsetTop,i=e.offsetLeft,a=e.getBoundingClientRect(),l=a.width,c=a.height,s=a.x,u=a.y;return Math.abs(l-n)<1?[l,c,s-t.x,u-t.y]:[n,o,i,r]}(i,n),l=We(a,4),c=l[0],s=l[1],u=l[2],d=l[3];t.set(r,{width:c,height:s,left:u,top:d})}})),t}))};(0,o.useEffect)((function(){Ce()}),[w.map((function(e){return e.key})).join("_")]);var ke=Sw((function(){var e=Vw(x),t=Vw(S),n=Vw(C);B([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var o=Vw(_);q(o);var r=Vw(O);G(r);var i=Vw(E);W([i[0]-o[0],i[1]-o[1]]),Ce()})),Ee=w.slice(0,be),Oe=w.slice(ye+1),_e=[].concat(Re(Ee),Re(Oe)),Pe=Z.get(l),Me=bw({activeTabOffset:Pe,horizontal:P,indicator:v,rtl:c}).style;(0,o.useEffect)((function(){we()}),[l,le,ce,kw(Pe),kw(Z),P]),(0,o.useEffect)((function(){ke()}),[c]);var Ne,Ie,Te,Ae,ze=!!_e.length,De="".concat(y,"-nav-wrap");return P?c?(Ie=I>0,Ne=I!==ce):(Ne=I<0,Ie=I!==le):(Te=A<0,Ae=A!==le),o.createElement(ld,{onResize:ke},o.createElement("div",{ref:$e(t,x),role:"tablist",className:je()("".concat(y,"-nav"),n),style:r,onKeyDown:function(){he()}},o.createElement(Nw,{ref:S,position:"left",extra:s,prefixCls:y}),o.createElement(ld,{onResize:ke},o.createElement("div",{className:je()(De,Le(Le(Le(Le({},"".concat(De,"-ping-left"),Ne),"".concat(De,"-ping-right"),Ie),"".concat(De,"-ping-top"),Te),"".concat(De,"-ping-bottom"),Ae)),ref:k},o.createElement(ld,{onResize:ke},o.createElement("div",{ref:E,className:"".concat(y,"-nav-list"),style:{transform:"translate(".concat(I,"px, ").concat(A,"px)"),transition:fe?"none":void 0}},Se,o.createElement(Pw,{ref:_,prefixCls:y,locale:d,editable:u,style:Be(Be({},0===Se.length?void 0:xe),{},{visibility:ze?"hidden":null})}),o.createElement("div",{className:je()("".concat(y,"-ink-bar"),Le({},"".concat(y,"-ink-bar-animated"),a.inkBar)),style:Me}))))),o.createElement(Hw,Jt({},e,{removeAriaLabel:null===d||void 0===d?void 0:d.removeAriaLabel,ref:O,prefixCls:y,tabs:_e,className:!ze&&ae,tabMoving:!!fe})),o.createElement(Nw,{ref:C,position:"right",extra:s,prefixCls:y})))}));const Uw=qw;var Xw=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,i=e.style,a=e.id,l=e.active,c=e.tabKey,s=e.children;return o.createElement("div",{id:a&&"".concat(a,"-panel-").concat(c),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(c),"aria-hidden":!l,style:i,className:je()(n,l&&"".concat(n,"-active"),r),ref:t},s)}));const Gw=Xw;var $w=["renderTabBar"],Yw=["label","key"];const Qw=function(e){var t=e.renderTabBar,n=Qe(e,$w),r=o.useContext(vw).tabs;return t?t(Be(Be({},n),{},{panes:r.map((function(e){var t=e.label,n=e.key,r=Qe(e,Yw);return o.createElement(Gw,Jt({tab:t,key:n,tabKey:n},r))}))}),Uw):o.createElement(Uw,n)};var Jw=["key","forceRender","style","className","destroyInactiveTabPane"];const Zw=function(e){var t=e.id,n=e.activeKey,r=e.animated,i=e.tabPosition,a=e.destroyInactiveTabPane,l=o.useContext(vw),c=l.prefixCls,s=l.tabs,u=r.tabPane,d="".concat(c,"-tabpane");return o.createElement("div",{className:je()("".concat(c,"-content-holder"))},o.createElement("div",{className:je()("".concat(c,"-content"),"".concat(c,"-content-").concat(i),Le({},"".concat(c,"-content-animated"),u))},s.map((function(e){var i=e.key,l=e.forceRender,c=e.style,s=e.className,f=e.destroyInactiveTabPane,p=Qe(e,Jw),h=i===n;return o.createElement(un,Jt({key:i,visible:h,forceRender:l,removeOnLeave:!(!a&&!f),leavedClassName:"".concat(d,"-hidden")},r.tabPaneMotion),(function(e,n){var r=e.style,a=e.className;return o.createElement(Gw,Jt({},p,{prefixCls:d,id:t,tabKey:i,animated:u,active:h,style:Be(Be({},c),r),className:je()(s,a),ref:n}))}))}))))};var ex=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],tx=0,nx=o.forwardRef((function(e,t){var n=e.id,r=e.prefixCls,i=void 0===r?"rc-tabs":r,a=e.className,l=e.items,c=e.direction,s=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,p=e.tabPosition,h=void 0===p?"top":p,m=e.tabBarGutter,g=e.tabBarStyle,v=e.tabBarExtraContent,b=e.locale,y=e.moreIcon,w=e.moreTransitionName,x=e.destroyInactiveTabPane,S=e.renderTabBar,C=e.onChange,k=e.onTabClick,E=e.onTabScroll,O=e.getPopupContainer,_=e.popupClassName,P=e.indicator,M=Qe(e,ex),N=o.useMemo((function(){return(l||[]).filter((function(e){return e&&"object"===Ae(e)&&"key"in e}))}),[l]),I="rtl"===c,R=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:Be({inkBar:!0},"object"===Ae(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(f),T=We((0,o.useState)(!1),2),j=T[0],A=T[1];(0,o.useEffect)((function(){A(dd())}),[]);var z=We(el((function(){var e;return null===(e=N[0])||void 0===e?void 0:e.key}),{value:s,defaultValue:u}),2),L=z[0],D=z[1],B=We((0,o.useState)((function(){return N.findIndex((function(e){return e.key===L}))})),2),F=B[0],H=B[1];(0,o.useEffect)((function(){var e,t=N.findIndex((function(e){return e.key===L}));-1===t&&(t=Math.max(0,Math.min(F,N.length-1)),D(null===(e=N[t])||void 0===e?void 0:e.key));H(t)}),[N.map((function(e){return e.key})).join("_"),L,F]);var W=We(el(null,{value:n}),2),V=W[0],K=W[1];(0,o.useEffect)((function(){n||(K("rc-tabs-".concat(tx)),tx+=1)}),[]);var q={id:V,activeKey:L,animated:R,tabPosition:h,rtl:I,mobile:j},U=Be(Be({},q),{},{editable:d,locale:b,moreIcon:y,moreTransitionName:w,tabBarGutter:m,onTabClick:function(e,t){null===k||void 0===k||k(e,t);var n=e!==L;D(e),n&&(null===C||void 0===C||C(e))},onTabScroll:E,extra:v,style:g,panes:null,getPopupContainer:O,popupClassName:_,indicator:P});return o.createElement(vw.Provider,{value:{tabs:N,prefixCls:i}},o.createElement("div",Jt({ref:t,id:n,className:je()(i,"".concat(i,"-").concat(h),Le(Le(Le({},"".concat(i,"-mobile"),j),"".concat(i,"-editable"),d),"".concat(i,"-rtl"),I),a)},M),o.createElement(Qw,Jt({},U,{renderTabBar:S})),o.createElement(Zw,Jt({destroyInactiveTabPane:x},q,{animated:R}))))}));const ox=nx,rx={motionAppear:!1,motionEnter:!0,motionLeave:!0};var ix=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const ax=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{["".concat(t,"-switch")]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:"opacity ".concat(n)}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:"opacity ".concat(n)}}}}},[fy(e,"slide-up"),fy(e,"slide-down")]]},lx=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:o,cardGutter:r,colorBorderSecondary:i,itemSelectedColor:a}=e;return{["".concat(t,"-card")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{["".concat(t,"-tab")]:{margin:0,padding:n,background:o,border:"".concat(qr(e.lineWidth)," ").concat(e.lineType," ").concat(i),transition:"all ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOut)},["".concat(t,"-tab-active")]:{color:a,background:e.colorBgContainer},["".concat(t,"-ink-bar")]:{visibility:"hidden"}},["&".concat(t,"-top, &").concat(t,"-bottom")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{["".concat(t,"-tab + ").concat(t,"-tab")]:{marginLeft:{_skip_check_:!0,value:qr(r)}}}},["&".concat(t,"-top")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{["".concat(t,"-tab")]:{borderRadius:"".concat(qr(e.borderRadiusLG)," ").concat(qr(e.borderRadiusLG)," 0 0")},["".concat(t,"-tab-active")]:{borderBottomColor:e.colorBgContainer}}},["&".concat(t,"-bottom")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{["".concat(t,"-tab")]:{borderRadius:"0 0 ".concat(qr(e.borderRadiusLG)," ").concat(qr(e.borderRadiusLG))},["".concat(t,"-tab-active")]:{borderTopColor:e.colorBgContainer}}},["&".concat(t,"-left, &").concat(t,"-right")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{["".concat(t,"-tab + ").concat(t,"-tab")]:{marginTop:qr(r)}}},["&".concat(t,"-left")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{["".concat(t,"-tab")]:{borderRadius:{_skip_check_:!0,value:"".concat(qr(e.borderRadiusLG)," 0 0 ").concat(qr(e.borderRadiusLG))}},["".concat(t,"-tab-active")]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},["&".concat(t,"-right")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{["".concat(t,"-tab")]:{borderRadius:{_skip_check_:!0,value:"0 ".concat(qr(e.borderRadiusLG)," ").concat(qr(e.borderRadiusLG)," 0")}},["".concat(t,"-tab-active")]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},cx=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:o}=e;return{["".concat(t,"-dropdown")]:Object.assign(Object.assign({},Ca(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},["".concat(t,"-dropdown-menu")]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:"".concat(qr(o)," 0"),overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Sa),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:"".concat(qr(e.paddingXXS)," ").concat(qr(e.paddingSM)),color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:"all ".concat(e.motionDurationSlow),"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},sx=e=>{const{componentCls:t,margin:n,colorBorderSecondary:o,horizontalMargin:r,verticalItemPadding:i,verticalItemMargin:a,calc:l}=e;return{["".concat(t,"-top, ").concat(t,"-bottom")]:{flexDirection:"column",["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{margin:r,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:"".concat(qr(e.lineWidth)," ").concat(e.lineType," ").concat(o),content:"''"},["".concat(t,"-ink-bar")]:{height:e.lineWidthBold,"&-animated":{transition:"width ".concat(e.motionDurationSlow,", left ").concat(e.motionDurationSlow,",\n right ").concat(e.motionDurationSlow)}},["".concat(t,"-nav-wrap")]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},["&".concat(t,"-nav-wrap-ping-left::before")]:{opacity:1},["&".concat(t,"-nav-wrap-ping-right::after")]:{opacity:1}}}},["".concat(t,"-top")]:{["> ".concat(t,"-nav,\n > div > ").concat(t,"-nav")]:{"&::before":{bottom:0},["".concat(t,"-ink-bar")]:{bottom:0}}},["".concat(t,"-bottom")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},["".concat(t,"-ink-bar")]:{top:0}},["> ".concat(t,"-content-holder, > div > ").concat(t,"-content-holder")]:{order:0}},["".concat(t,"-left, ").concat(t,"-right")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),["".concat(t,"-tab")]:{padding:i,textAlign:"center"},["".concat(t,"-tab + ").concat(t,"-tab")]:{margin:a},["".concat(t,"-nav-wrap")]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},["&".concat(t,"-nav-wrap-ping-top::before")]:{opacity:1},["&".concat(t,"-nav-wrap-ping-bottom::after")]:{opacity:1}},["".concat(t,"-ink-bar")]:{width:e.lineWidthBold,"&-animated":{transition:"height ".concat(e.motionDurationSlow,", top ").concat(e.motionDurationSlow)}},["".concat(t,"-nav-list, ").concat(t,"-nav-operations")]:{flex:"1 0 auto",flexDirection:"column"}}},["".concat(t,"-left")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{["".concat(t,"-ink-bar")]:{right:{_skip_check_:!0,value:0}}},["> ".concat(t,"-content-holder, > div > ").concat(t,"-content-holder")]:{marginLeft:{_skip_check_:!0,value:qr(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:"".concat(qr(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder)},["> ".concat(t,"-content > ").concat(t,"-tabpane")]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},["".concat(t,"-right")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{order:1,["".concat(t,"-ink-bar")]:{left:{_skip_check_:!0,value:0}}},["> ".concat(t,"-content-holder, > div > ").concat(t,"-content-holder")]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:"".concat(qr(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder)},["> ".concat(t,"-content > ").concat(t,"-tabpane")]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},ux=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:o,horizontalItemPaddingSM:r,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{["> ".concat(t,"-nav")]:{["".concat(t,"-tab")]:{padding:r,fontSize:e.titleFontSizeSM}}},"&-large":{["> ".concat(t,"-nav")]:{["".concat(t,"-tab")]:{padding:i,fontSize:e.titleFontSizeLG}}}},["".concat(t,"-card")]:{["&".concat(t,"-small")]:{["> ".concat(t,"-nav")]:{["".concat(t,"-tab")]:{padding:n}},["&".concat(t,"-bottom")]:{["> ".concat(t,"-nav ").concat(t,"-tab")]:{borderRadius:"0 0 ".concat(qr(e.borderRadius)," ").concat(qr(e.borderRadius))}},["&".concat(t,"-top")]:{["> ".concat(t,"-nav ").concat(t,"-tab")]:{borderRadius:"".concat(qr(e.borderRadius)," ").concat(qr(e.borderRadius)," 0 0")}},["&".concat(t,"-right")]:{["> ".concat(t,"-nav ").concat(t,"-tab")]:{borderRadius:{_skip_check_:!0,value:"0 ".concat(qr(e.borderRadius)," ").concat(qr(e.borderRadius)," 0")}}},["&".concat(t,"-left")]:{["> ".concat(t,"-nav ").concat(t,"-tab")]:{borderRadius:{_skip_check_:!0,value:"".concat(qr(e.borderRadius)," 0 0 ").concat(qr(e.borderRadius))}}}},["&".concat(t,"-large")]:{["> ".concat(t,"-nav")]:{["".concat(t,"-tab")]:{padding:o}}}}}},dx=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:o,iconCls:r,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:c}=e,s="".concat(t,"-tab");return{[s]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},_a(e)),"&-btn":{outline:"none",transition:"all 0.3s",["".concat(s,"-icon:not(:last-child)")]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:"all ".concat(e.motionDurationSlow),"&:hover":{color:e.colorTextHeading}},"&:hover":{color:o},["&".concat(s,"-active ").concat(s,"-btn")]:{color:l,textShadow:e.tabsActiveTextShadow},["&".concat(s,"-disabled")]:{color:e.colorTextDisabled,cursor:"not-allowed"},["&".concat(s,"-disabled ").concat(s,"-btn, &").concat(s,"-disabled ").concat(t,"-remove")]:{"&:focus, &:active":{color:e.colorTextDisabled}},["& ".concat(s,"-remove ").concat(r)]:{margin:0},["".concat(r,":not(:last-child)")]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},["".concat(s," + ").concat(s)]:{margin:{_skip_check_:!0,value:i}}}},fx=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:o,cardGutter:r,calc:i}=e;return{["".concat(t,"-rtl")]:{direction:"rtl",["".concat(t,"-nav")]:{["".concat(t,"-tab")]:{margin:{_skip_check_:!0,value:n},["".concat(t,"-tab:last-of-type")]:{marginLeft:{_skip_check_:!0,value:0}},[o]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:qr(e.marginSM)}},["".concat(t,"-tab-remove")]:{marginRight:{_skip_check_:!0,value:qr(e.marginXS)},marginLeft:{_skip_check_:!0,value:qr(i(e.marginXXS).mul(-1).equal())},[o]:{margin:0}}}},["&".concat(t,"-left")]:{["> ".concat(t,"-nav")]:{order:1},["> ".concat(t,"-content-holder")]:{order:0}},["&".concat(t,"-right")]:{["> ".concat(t,"-nav")]:{order:0},["> ".concat(t,"-content-holder")]:{order:1}},["&".concat(t,"-card").concat(t,"-top, &").concat(t,"-card").concat(t,"-bottom")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{["".concat(t,"-tab + ").concat(t,"-tab")]:{marginRight:{_skip_check_:!0,value:r},marginLeft:{_skip_check_:!0,value:0}}}}},["".concat(t,"-dropdown-rtl")]:{direction:"rtl"},["".concat(t,"-menu-item")]:{["".concat(t,"-dropdown-rtl")]:{textAlign:{_skip_check_:!0,value:"right"}}}}},px=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:o,cardGutter:r,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ca(e)),{display:"flex",["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{position:"relative",display:"flex",flex:"none",alignItems:"center",["".concat(t,"-nav-wrap")]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:"opacity ".concat(e.motionDurationSlow),content:"''",pointerEvents:"none"}},["".concat(t,"-nav-list")]:{position:"relative",display:"flex",transition:"opacity ".concat(e.motionDurationSlow)},["".concat(t,"-nav-operations")]:{display:"flex",alignSelf:"stretch"},["".concat(t,"-nav-operations-hidden")]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},["".concat(t,"-nav-more")]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},["".concat(t,"-nav-add")]:Object.assign({minWidth:o,minHeight:o,marginLeft:{_skip_check_:!0,value:r},padding:"0 ".concat(qr(e.paddingXS)),background:"transparent",border:"".concat(qr(e.lineWidth)," ").concat(e.lineType," ").concat(l),borderRadius:"".concat(qr(e.borderRadiusLG)," ").concat(qr(e.borderRadiusLG)," 0 0"),outline:"none",cursor:"pointer",color:e.colorText,transition:"all ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOut),"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},_a(e))},["".concat(t,"-extra-content")]:{flex:"none"},["".concat(t,"-ink-bar")]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),dx(e)),{["".concat(t,"-content")]:{position:"relative",width:"100%"},["".concat(t,"-content-holder")]:{flex:"auto",minWidth:0,minHeight:0},["".concat(t,"-tabpane")]:{outline:"none","&-hidden":{display:"none"}}}),["".concat(t,"-centered")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{["".concat(t,"-nav-wrap")]:{["&:not([class*='".concat(t,"-nav-wrap-ping'])")]:{justifyContent:"center"}}}}}},hx=Oc("Tabs",(e=>{const t=Ga(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:"0 0 0 ".concat(qr(e.horizontalItemGutter)),tabsHorizontalItemMarginRTL:"0 0 0 ".concat(qr(e.horizontalItemGutter))});return[ux(t),fx(t),sx(t),cx(t),lx(t),px(t),ax(t)]}),(e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:"".concat((t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth,"px ").concat(e.padding,"px"),cardPaddingSM:"".concat(1.5*e.paddingXXS,"px ").concat(e.padding,"px"),cardPaddingLG:"".concat(e.paddingXS,"px ").concat(e.padding,"px ").concat(1.5*e.paddingXXS,"px"),titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:"0 0 ".concat(e.margin,"px 0"),horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:"".concat(e.paddingSM,"px 0"),horizontalItemPaddingSM:"".concat(e.paddingXS,"px 0"),horizontalItemPaddingLG:"".concat(e.padding,"px 0"),verticalItemPadding:"".concat(e.paddingXS,"px ").concat(e.paddingLG,"px"),verticalItemMargin:"".concat(e.margin,"px 0 0 0"),itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}));var mx=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const gx=e=>{var t,n,r,i,a,l,c;const{type:s,className:u,rootClassName:d,size:f,onEdit:p,hideAdd:h,centered:m,addIcon:g,moreIcon:v,popupClassName:b,children:y,items:w,animated:x,style:S,indicatorSize:C,indicator:k}=e,E=mx(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","moreIcon","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:O}=E,{direction:_,tabs:P,getPrefixCls:M,getPopupContainer:N}=o.useContext(nl),I=M("tabs",O),R=Bc(I),[T,j,A]=hx(I,R);let z;"editable-card"===s&&(z={onEdit:(e,t)=>{let{key:n,event:o}=t;null===p||void 0===p||p("add"===e?o:n,e)},removeIcon:o.createElement(pw,null),addIcon:(null!==g&&void 0!==g?g:null===P||void 0===P?void 0:P.addIcon)||o.createElement(gw,null),showAdd:!0!==h});const L=M();const D=$c(f),B=function(e,t){if(e)return e;const n=wn(t).map((e=>{if(o.isValidElement(e)){const{key:t,props:n}=e,o=n||{},{tab:r}=o,i=ix(o,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:r})}return null}));return function(e){return e.filter((e=>e))}(n)}(w,y),F=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"===typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},rx),{motionName:mn(e,"switch")})),t}(I,x),H=Object.assign(Object.assign({},null===P||void 0===P?void 0:P.style),S),W={align:null!==(t=null===k||void 0===k?void 0:k.align)&&void 0!==t?t:null===(n=null===P||void 0===P?void 0:P.indicator)||void 0===n?void 0:n.align,size:null!==(l=null!==(i=null!==(r=null===k||void 0===k?void 0:k.size)&&void 0!==r?r:C)&&void 0!==i?i:null===(a=null===P||void 0===P?void 0:P.indicator)||void 0===a?void 0:a.size)&&void 0!==l?l:null===P||void 0===P?void 0:P.indicatorSize};return T(o.createElement(ox,Object.assign({direction:_,getPopupContainer:N,moreTransitionName:"".concat(L,"-slide-up")},E,{items:B,className:je()({["".concat(I,"-").concat(D)]:D,["".concat(I,"-card")]:["card","editable-card"].includes(s),["".concat(I,"-editable-card")]:"editable-card"===s,["".concat(I,"-centered")]:m},null===P||void 0===P?void 0:P.className,u,d,j,A,R),popupClassName:je()(b,j,A,R),style:H,editable:z,moreIcon:null!==(c=null!==v&&void 0!==v?v:null===P||void 0===P?void 0:P.moreIcon)&&void 0!==c?c:o.createElement(Kb,null),prefixCls:I,animated:F,indicator:W})))};gx.TabPane=()=>null;const vx=gx;var bx=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const yx=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,i=bx(e,["prefixCls","className","hoverable"]);const{getPrefixCls:a}=o.useContext(nl),l=a("card",t),c=je()("".concat(l,"-grid"),n,{["".concat(l,"-grid-hoverable")]:r});return o.createElement("div",Object.assign({},i,{className:c}))},wx=e=>{const{antCls:t,componentCls:n,headerHeight:o,cardPaddingBase:r,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:o,marginBottom:-1,padding:"0 ".concat(qr(r)),color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:"".concat(qr(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorderSecondary),borderRadius:"".concat(qr(e.borderRadiusLG)," ").concat(qr(e.borderRadiusLG)," 0 0")},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Sa),{["\n > ".concat(n,"-typography,\n > ").concat(n,"-typography-edit-content\n ")]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),["".concat(t,"-tabs-top")]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:"".concat(qr(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorderSecondary)}}})},xx=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:o,lineWidth:r}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:"\n ".concat(qr(r)," 0 0 0 ").concat(n,",\n 0 ").concat(qr(r)," 0 0 ").concat(n,",\n ").concat(qr(r)," ").concat(qr(r)," 0 0 ").concat(n,",\n ").concat(qr(r)," 0 0 0 ").concat(n," inset,\n 0 ").concat(qr(r)," 0 0 ").concat(n," inset;\n "),transition:"all ".concat(e.motionDurationMid),"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:o}}},Sx=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:o,cardActionsIconSize:r,colorBorderSecondary:i,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:"".concat(qr(e.lineWidth)," ").concat(e.lineType," ").concat(i),display:"flex",borderRadius:"0 0 ".concat(qr(e.borderRadiusLG)," ").concat(qr(e.borderRadiusLG))},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"& > li":{margin:o,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:"color ".concat(e.motionDurationMid)},["a:not(".concat(t,"-btn), > ").concat(n)]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:qr(e.fontHeight),transition:"color ".concat(e.motionDurationMid),"&:hover":{color:e.colorPrimary}},["> ".concat(n)]:{fontSize:r,lineHeight:qr(e.calc(r).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:"".concat(qr(e.lineWidth)," ").concat(e.lineType," ").concat(i)}}})},Cx=e=>Object.assign(Object.assign({margin:"".concat(qr(e.calc(e.marginXXS).mul(-1).equal())," 0"),display:"flex"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Sa),"&-description":{color:e.colorTextDescription}}),kx=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:o}=e;return{["".concat(t,"-head")]:{padding:"0 ".concat(qr(n)),background:o,"&-title":{fontSize:e.fontSize}},["".concat(t,"-body")]:{padding:"".concat(qr(e.padding)," ").concat(qr(n))}}},Ex=e=>{const{componentCls:t}=e;return{overflow:"hidden",["".concat(t,"-body")]:{userSelect:"none"}}},Ox=e=>{const{antCls:t,componentCls:n,cardShadow:o,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:a,cardPaddingBase:l,extraColor:c}=e;return{[n]:Object.assign(Object.assign({},Ca(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,["&:not(".concat(n,"-bordered)")]:{boxShadow:a},["".concat(n,"-head")]:wx(e),["".concat(n,"-extra")]:{marginInlineStart:"auto",color:c,fontWeight:"normal",fontSize:e.fontSize},["".concat(n,"-body")]:Object.assign({padding:l,borderRadius:" 0 0 ".concat(qr(e.borderRadiusLG)," ").concat(qr(e.borderRadiusLG))},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),["".concat(n,"-grid")]:xx(e),["".concat(n,"-cover")]:{"> *":{display:"block",width:"100%"},["img, img + ".concat(t,"-image-mask")]:{borderRadius:"".concat(qr(e.borderRadiusLG)," ").concat(qr(e.borderRadiusLG)," 0 0")}},["".concat(n,"-actions")]:Sx(e),["".concat(n,"-meta")]:Cx(e)}),["".concat(n,"-bordered")]:{border:"".concat(qr(e.lineWidth)," ").concat(e.lineType," ").concat(i),["".concat(n,"-cover")]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},["".concat(n,"-hoverable")]:{cursor:"pointer",transition:"box-shadow ".concat(e.motionDurationMid,", border-color ").concat(e.motionDurationMid),"&:hover":{borderColor:"transparent",boxShadow:o}},["".concat(n,"-contain-grid")]:{borderRadius:"".concat(qr(e.borderRadiusLG)," ").concat(qr(e.borderRadiusLG)," 0 0 "),["".concat(n,"-body")]:{display:"flex",flexWrap:"wrap"},["&:not(".concat(n,"-loading) ").concat(n,"-body")]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},["".concat(n,"-contain-tabs")]:{["> ".concat(n,"-head")]:{minHeight:0,["".concat(n,"-head-title, ").concat(n,"-extra")]:{paddingTop:r}}},["".concat(n,"-type-inner")]:kx(e),["".concat(n,"-loading")]:Ex(e),["".concat(n,"-rtl")]:{direction:"rtl"}}},_x=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:o,headerFontSizeSM:r}=e;return{["".concat(t,"-small")]:{["> ".concat(t,"-head")]:{minHeight:o,padding:"0 ".concat(qr(n)),fontSize:r,["> ".concat(t,"-head-wrapper")]:{["> ".concat(t,"-extra")]:{fontSize:e.fontSize}}},["> ".concat(t,"-body")]:{padding:n}},["".concat(t,"-small").concat(t,"-contain-tabs")]:{["> ".concat(t,"-head")]:{["".concat(t,"-head-title, ").concat(t,"-extra")]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},Px=Oc("Card",(e=>{const t=Ga(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[Ox(t),_x(t)]}),(e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,headerHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,actionsBg:e.colorBgContainer,actionsLiMargin:"".concat(e.paddingSM,"px 0"),tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText})));var Mx=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Nx=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return o.createElement("ul",{className:t,style:r},n.map(((e,t)=>{const r="action-".concat(t);return o.createElement("li",{style:{width:"".concat(100/n.length,"%")},key:r},o.createElement("span",null,e))})))},Ix=o.forwardRef(((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:a,extra:l,headStyle:c={},bodyStyle:s={},title:u,loading:d,bordered:f=!0,size:p,type:h,cover:m,actions:g,tabList:v,children:b,activeTabKey:y,defaultActiveTabKey:w,tabBarExtraContent:x,hoverable:S,tabProps:C={},classNames:k,styles:E}=e,O=Mx(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:_,direction:P,card:M}=o.useContext(nl);const N=e=>{var t;return je()(null===(t=null===M||void 0===M?void 0:M.classNames)||void 0===t?void 0:t[e],null===k||void 0===k?void 0:k[e])},I=e=>{var t;return Object.assign(Object.assign({},null===(t=null===M||void 0===M?void 0:M.styles)||void 0===t?void 0:t[e]),null===E||void 0===E?void 0:E[e])},R=o.useMemo((()=>{let e=!1;return o.Children.forEach(b,(t=>{t&&t.type&&t.type===yx&&(e=!0)})),e}),[b]),T=_("card",n),[j,A,z]=Px(T),L=o.createElement(uw,{loading:!0,active:!0,paragraph:{rows:4},title:!1},b),D=void 0!==y,B=Object.assign(Object.assign({},C),{[D?"activeKey":"defaultActiveKey"]:D?y:w,tabBarExtraContent:x});let F;const H=$c(p),W=H&&"default"!==H?H:"large",V=v?o.createElement(vx,Object.assign({size:W},B,{className:"".concat(T,"-head-tabs"),onChange:t=>{var n;null===(n=e.onTabChange)||void 0===n||n.call(e,t)},items:v.map((e=>{var{tab:t}=e,n=Mx(e,["tab"]);return Object.assign({label:t},n)}))})):null;if(u||l||V){const e=je()("".concat(T,"-head"),N("header")),t=je()("".concat(T,"-head-title"),N("title")),n=je()("".concat(T,"-extra"),N("extra")),r=Object.assign(Object.assign({},c),I("header"));F=o.createElement("div",{className:e,style:r},o.createElement("div",{className:"".concat(T,"-head-wrapper")},u&&o.createElement("div",{className:t,style:I("title")},u),l&&o.createElement("div",{className:n,style:I("extra")},l)),V)}const K=je()("".concat(T,"-cover"),N("cover")),q=m?o.createElement("div",{className:K,style:I("cover")},m):null,U=je()("".concat(T,"-body"),N("body")),X=Object.assign(Object.assign({},s),I("body")),G=o.createElement("div",{className:U,style:X},d?L:b),$=je()("".concat(T,"-actions"),N("actions")),Y=g&&g.length?o.createElement(Nx,{actionClasses:$,actionStyle:I("actions"),actions:g}):null,Q=Zo(O,["onTabChange"]),J=je()(T,null===M||void 0===M?void 0:M.className,{["".concat(T,"-loading")]:d,["".concat(T,"-bordered")]:f,["".concat(T,"-hoverable")]:S,["".concat(T,"-contain-grid")]:R,["".concat(T,"-contain-tabs")]:v&&v.length,["".concat(T,"-").concat(H)]:H,["".concat(T,"-type-").concat(h)]:!!h,["".concat(T,"-rtl")]:"rtl"===P},r,i,A,z),Z=Object.assign(Object.assign({},null===M||void 0===M?void 0:M.style),a);return j(o.createElement("div",Object.assign({ref:t},Q,{className:J,style:Z}),F,q,G,Y))}));var Rx=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Tx=e=>{const{prefixCls:t,className:n,avatar:r,title:i,description:a}=e,l=Rx(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:c}=o.useContext(nl),s=c("card",t),u=je()("".concat(s,"-meta"),n),d=r?o.createElement("div",{className:"".concat(s,"-meta-avatar")},r):null,f=i?o.createElement("div",{className:"".concat(s,"-meta-title")},i):null,p=a?o.createElement("div",{className:"".concat(s,"-meta-description")},a):null,h=f||p?o.createElement("div",{className:"".concat(s,"-meta-detail")},f,p):null;return o.createElement("div",Object.assign({},l,{className:u}),d,h)},jx=Ix;jx.Grid=yx,jx.Meta=Tx;const Ax=jx;const zx={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"};var Lx=function(e,t){return o.createElement(au,Jt({},e,{ref:t,icon:zx}))};const Dx=o.forwardRef(Lx);const Bx={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};var Fx=function(e,t){return o.createElement(au,Jt({},e,{ref:t,icon:Bx}))};const Hx=o.forwardRef(Fx);const Wx={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};var Vx=function(e,t){return o.createElement(au,Jt({},e,{ref:t,icon:Wx}))};const Kx=o.forwardRef(Vx);var qx=n(394),Ux=n.n(qx),Xx=function(e){if(Ct()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some((function(e){return e in n.style}))}return!1},Gx=function(e,t){if(!Xx(e))return!1;var n=document.createElement("div"),o=n.style[e];return n.style[e]=t,n.style[e]!==o};function $x(e,t){return Array.isArray(e)||void 0===t?Xx(e):Gx(e,t)}var Yx=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Qx={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},Jx=o.forwardRef(((e,t)=>{const{style:n,noStyle:r,disabled:i}=e,a=Yx(e,["style","noStyle","disabled"]);let l={};return r||(l=Object.assign({},Qx)),i&&(l.pointerEvents="none"),l=Object.assign(Object.assign({},l),n),o.createElement("div",Object.assign({role:"button",tabIndex:0,ref:t},a,{onKeyDown:e=>{const{keyCode:t}=e;t===jv.ENTER&&e.preventDefault()},onKeyUp:t=>{const{keyCode:n}=t,{onClick:o}=e;n===jv.ENTER&&o&&o()},style:l}))})),Zx=Jx;const eS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};var tS=function(e,t){return o.createElement(au,Jt({},e,{ref:t,icon:eS}))};const nS=o.forwardRef(tS),oS=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:"color ".concat(e.motionDurationSlow),"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),rS=e=>{const t={};return[1,2,3,4,5].forEach((n=>{t["\n h".concat(n,"&,\n div&-h").concat(n,",\n div&-h").concat(n," > textarea,\n h").concat(n,"\n ")]=((e,t,n,o)=>{const{titleMarginBottom:r,fontWeightStrong:i}=o;return{marginBottom:r,color:n,fontWeight:i,fontSize:e,lineHeight:t}})(e["fontSizeHeading".concat(n)],e["lineHeightHeading".concat(n)],e.colorTextHeading,e)})),t},iS=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},oS(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},["&[disabled], &".concat(t,"-disabled")]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},aS=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Hl[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),lS=e=>{const{componentCls:t,paddingSM:n}=e,o=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(o).mul(-1).equal(),marginBottom:"calc(1em - ".concat(qr(o),")")},["".concat(t,"-edit-content-confirm")]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},cS=e=>({["".concat(e.componentCls,"-copy-success")]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},["".concat(e.componentCls,"-copy-icon-only")]:{marginInlineStart:0}}),sS=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,["&".concat(t,"-secondary")]:{color:e.colorTextDescription},["&".concat(t,"-success")]:{color:e.colorSuccess},["&".concat(t,"-warning")]:{color:e.colorWarning},["&".concat(t,"-danger")]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},["&".concat(t,"-disabled")]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},rS(e)),{["\n & + h1".concat(t,",\n & + h2").concat(t,",\n & + h3").concat(t,",\n & + h4").concat(t,",\n & + h5").concat(t,"\n ")]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),aS(e)),iS(e)),{["\n ".concat(t,"-expand,\n ").concat(t,"-edit,\n ").concat(t,"-copy\n ")]:Object.assign(Object.assign({},oS(e)),{marginInlineStart:e.marginXXS})}),lS(e)),cS(e)),{"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),{"&-rtl":{direction:"rtl"}})}},uS=Oc("Typography",(e=>[sS(e)]),(()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}))),dS=e=>{const{prefixCls:t,"aria-label":n,className:r,style:i,direction:a,maxLength:l,autoSize:c=!0,value:s,onSave:u,onCancel:d,onEnd:f,component:p,enterIcon:h=o.createElement(nS,null)}=e,m=o.useRef(null),g=o.useRef(!1),v=o.useRef(),[b,y]=o.useState(s);o.useEffect((()=>{y(s)}),[s]),o.useEffect((()=>{if(m.current&&m.current.resizableTextArea){const{textArea:e}=m.current.resizableTextArea;e.focus();const{length:t}=e.value;e.setSelectionRange(t,t)}}),[]);const w=()=>{u(b.trim())},x=p?"".concat(t,"-").concat(p):"",[S,C,k]=uS(t),E=je()(t,"".concat(t,"-edit-content"),{["".concat(t,"-rtl")]:"rtl"===a},r,x,C,k);return S(o.createElement("div",{className:E,style:i},o.createElement(Rm,{ref:m,maxLength:l,value:b,onChange:e=>{let{target:t}=e;y(t.value.replace(/[\n\r]/g,""))},onKeyDown:e=>{let{keyCode:t}=e;g.current||(v.current=t)},onKeyUp:e=>{let{keyCode:t,ctrlKey:n,altKey:o,metaKey:r,shiftKey:i}=e;v.current!==t||g.current||n||o||r||i||(t===jv.ENTER?(w(),null===f||void 0===f||f()):t===jv.ESC&&d())},onCompositionStart:()=>{g.current=!0},onCompositionEnd:()=>{g.current=!1},onBlur:()=>{w()},"aria-label":n,rows:1,autoSize:c}),null!==h?gs(h,{className:"".concat(t,"-edit-content-confirm")}):null))};function fS(e,t){return o.useMemo((()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&"object"===typeof e?e:null)]}),[e])}const pS=(e,t)=>{const n=o.useRef(!1);o.useEffect((()=>{n.current?e():n.current=!0}),t)};var hS=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const mS=o.forwardRef(((e,t)=>{const{prefixCls:n,component:r="article",className:i,rootClassName:a,setContentRef:l,children:c,direction:s,style:u}=e,d=hS(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:p,typography:h}=o.useContext(nl),m=null!==s&&void 0!==s?s:p;let g=t;l&&(g=Ge(t,l));const v=f("typography",n),[b,y,w]=uS(v),x=je()(v,null===h||void 0===h?void 0:h.className,{["".concat(v,"-rtl")]:"rtl"===m},i,a,y,w),S=Object.assign(Object.assign({},null===h||void 0===h?void 0:h.style),u);return b(o.createElement(r,Object.assign({className:x,style:S,ref:g},d),c))}));const gS=mS;function vS(e){const t=typeof e;return"string"===t||"number"===t}function bS(e,t){let n=0;const o=[];for(let r=0;r<e.length;r+=1){if(n===t)return o;const i=e[r],a=n+(vS(i)?String(i).length:1);if(a>t){const e=t-n;return o.push(String(i).slice(0,e)),o}o.push(i),n=a}return e}const yS=e=>{let{enabledMeasure:t,children:n,text:r,width:i,fontSize:a,rows:l,onEllipsis:c}=e;const[[s,u,d],f]=o.useState([0,0,0]),[p,h]=o.useState(0),[m,g]=o.useState(0),[v,b]=o.useState(0),y=o.useRef(null),w=o.useRef(null),x=o.useMemo((()=>wn(r)),[r]),S=o.useMemo((()=>function(e){let t=0;return e.forEach((e=>{vS(e)?t+=String(e).length:t+=1})),t}(x)),[x]),C=o.useMemo((()=>t&&3===m?n(bS(x,u),u<S):p&&4!==m&&t?n(bS(x,p),p<S):n(x,!1)),[t,m,n,x,u,S]);Zr((()=>{t&&i&&a&&S&&(g(1),f([0,Math.ceil(S/2),S]))}),[t,i,a,r,S,l]),Zr((()=>{var e;1===m&&b((null===(e=y.current)||void 0===e?void 0:e.offsetHeight)||0)}),[m]),Zr((()=>{var e,t;if(v)if(1===m){((null===(e=w.current)||void 0===e?void 0:e.offsetHeight)||0)<=l*v?(g(4),c(!1)):g(2)}else if(2===m)if(s!==d){const e=(null===(t=w.current)||void 0===t?void 0:t.offsetHeight)||0;let n=s,o=d;s===d-1?o=s:e<=l*v?n=u:o=u;const r=Math.ceil((n+o)/2);f([n,r,o])}else g(3),h(u),c(!0)}),[m,s,d,l,v]);const k={width:i,whiteSpace:"normal",margin:0,padding:0},E=(e,t,n)=>o.createElement("span",{"aria-hidden":!0,ref:t,style:Object.assign({position:"fixed",display:"block",left:0,top:0,zIndex:-9999,visibility:"hidden",pointerEvents:"none",fontSize:2*Math.ceil(a/2)},n)},e);return o.createElement(o.Fragment,null,C,t&&3!==m&&4!==m&&o.createElement(o.Fragment,null,E("lg",y,{wordBreak:"keep-all",whiteSpace:"nowrap"}),1===m?E(n(x,!1),w,k):((e,t)=>{const o=bS(x,e);return E(n(o,!0),t,k)})(u,w)))};const wS=e=>{let{enabledEllipsis:t,isEllipsis:n,children:r,tooltipProps:i}=e;return(null===i||void 0===i?void 0:i.title)&&t?o.createElement(Ef,Object.assign({open:!!n&&void 0},i),r):r};var xS=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function SS(e,t,n){return!0===e||void 0===e?t:e||n&&t}function CS(e){return!1===e?[!1,!1]:Array.isArray(e)?e:[e]}const kS=o.forwardRef(((e,t)=>{var n,r,i;const{prefixCls:a,className:l,style:c,type:s,disabled:u,children:d,ellipsis:f,editable:p,copyable:h,component:m,title:g}=e,v=xS(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:b,direction:y}=o.useContext(nl),[w]=gu("Text"),x=o.useRef(null),S=o.useRef(null),C=b("typography",a),k=Zo(v,["mark","code","delete","underline","strong","keyboard","italic"]),[E,O]=fS(p),[_,P]=el(!1,{value:O.editing}),{triggerType:M=["icon"]}=O,N=e=>{var t;e&&(null===(t=O.onStart)||void 0===t||t.call(O)),P(e)};pS((()=>{var e;_||null===(e=S.current)||void 0===e||e.focus()}),[_]);const I=e=>{null===e||void 0===e||e.preventDefault(),N(!0)},R=e=>{var t;null===(t=O.onChange)||void 0===t||t.call(O,e),N(!1)},T=()=>{var e;null===(e=O.onCancel)||void 0===e||e.call(O),N(!1)},[j,A]=fS(h),[z,L]=o.useState(!1),D=o.useRef(null),B={};A.format&&(B.format=A.format);const F=()=>{D.current&&clearTimeout(D.current)},H=e=>{var t;null===e||void 0===e||e.preventDefault(),null===e||void 0===e||e.stopPropagation(),Ux()(A.text||String(d)||"",B),L(!0),F(),D.current=setTimeout((()=>{L(!1)}),3e3),null===(t=A.onCopy)||void 0===t||t.call(A,e)};o.useEffect((()=>F),[]);const[W,V]=o.useState(!1),[K,q]=o.useState(!1),[U,X]=o.useState(!1),[G,$]=o.useState(!1),[Y,Q]=o.useState(!1),[J,Z]=o.useState(!0),[ee,te]=fS(f,{expandable:!1}),ne=ee&&!U,{rows:oe=1}=te,re=o.useMemo((()=>!ne||void 0!==te.suffix||te.onEllipsis||te.expandable||E||j),[ne,te,E,j]);Zr((()=>{ee&&!re&&(V($x("webkitLineClamp")),q($x("textOverflow")))}),[re,ee]);const ie=o.useMemo((()=>!re&&(1===oe?K:W)),[re,K,W]),ae=ne&&(ie?Y:G),le=ne&&1===oe&&ie,ce=ne&&oe>1&&ie,se=e=>{var t;X(!0),null===(t=te.onExpand)||void 0===t||t.call(te,e)},[ue,de]=o.useState(0),[fe,pe]=o.useState(0),he=e=>{var t;$(e),G!==e&&(null===(t=te.onEllipsis)||void 0===t||t.call(te,e))};o.useEffect((()=>{const e=x.current;if(ee&&ie&&e){const t=ce?e.offsetHeight<e.scrollHeight:e.offsetWidth<e.scrollWidth;Y!==t&&Q(t)}}),[ee,ie,d,ce,J,ue]),o.useEffect((()=>{const e=x.current;if("undefined"===typeof IntersectionObserver||!e||!ie||!ne)return;const t=new IntersectionObserver((()=>{Z(!!e.offsetParent)}));return t.observe(e),()=>{t.disconnect()}}),[ie,ne]);let me={};me=!0===te.tooltip?{title:null!==(n=O.text)&&void 0!==n?n:d}:o.isValidElement(te.tooltip)?{title:te.tooltip}:"object"===typeof te.tooltip?Object.assign({title:null!==(r=O.text)&&void 0!==r?r:d},te.tooltip):{title:te.tooltip};const ge=o.useMemo((()=>{const e=e=>["string","number"].includes(typeof e);if(ee&&!ie)return e(O.text)?O.text:e(d)?d:e(g)?g:e(me.title)?me.title:void 0}),[ee,ie,g,me.title,ae]);if(_)return o.createElement(dS,{value:null!==(i=O.text)&&void 0!==i?i:"string"===typeof d?d:"",onSave:R,onCancel:T,onEnd:O.onEnd,prefixCls:C,className:l,style:c,direction:y,component:m,maxLength:O.maxLength,autoSize:O.autoSize,enterIcon:O.enterIcon});const ve=()=>{const{expandable:e,symbol:t}=te;if(!e)return null;let n;return n=t||(null===w||void 0===w?void 0:w.expand),o.createElement("a",{key:"expand",className:"".concat(C,"-expand"),onClick:se,"aria-label":null===w||void 0===w?void 0:w.expand},n)},be=()=>{if(!E)return;const{icon:e,tooltip:t}=O,n=wn(t)[0]||(null===w||void 0===w?void 0:w.edit),r="string"===typeof n?n:"";return M.includes("icon")?o.createElement(Ef,{key:"edit",title:!1===t?"":n},o.createElement(Zx,{ref:S,className:"".concat(C,"-edit"),onClick:I,"aria-label":r},e||o.createElement(Kx,{role:"button"}))):null},ye=()=>{if(!j)return null;const{tooltips:e,icon:t}=A,n=CS(e),r=CS(t),i=z?SS(n[1],null===w||void 0===w?void 0:w.copied):SS(n[0],null===w||void 0===w?void 0:w.copy),a=z?null===w||void 0===w?void 0:w.copied:null===w||void 0===w?void 0:w.copy,l="string"===typeof i?i:a;return o.createElement(Ef,{key:"copy",title:i},o.createElement(Zx,{className:je()("".concat(C,"-copy"),{["".concat(C,"-copy-success")]:z,["".concat(C,"-copy-icon-only")]:null===d||void 0===d}),onClick:H,"aria-label":l},z?SS(r[1],o.createElement(Dx,null),!0):SS(r[0],o.createElement(Hx,null),!0)))};return o.createElement(ld,{onResize:(e,t)=>{let{offsetWidth:n}=e;var o;de(n),pe(parseInt(null===(o=window.getComputedStyle)||void 0===o?void 0:o.call(window,t).fontSize,10)||0)},disabled:!ne},(n=>o.createElement(wS,{tooltipProps:me,enabledEllipsis:ne,isEllipsis:ae},o.createElement(gS,Object.assign({className:je()({["".concat(C,"-").concat(s)]:s,["".concat(C,"-disabled")]:u,["".concat(C,"-ellipsis")]:ee,["".concat(C,"-single-line")]:ne&&1===oe,["".concat(C,"-ellipsis-single-line")]:le,["".concat(C,"-ellipsis-multiple-line")]:ce},l),prefixCls:a,style:Object.assign(Object.assign({},c),{WebkitLineClamp:ce?oe:void 0}),component:m,ref:Ge(n,x,t),direction:y,onClick:M.includes("text")?I:void 0,"aria-label":null===ge||void 0===ge?void 0:ge.toString(),title:g},k),o.createElement(yS,{enabledMeasure:ne&&!ie,text:d,rows:oe,width:ue,fontSize:fe,onEllipsis:he},((t,n)=>{let r=t;t.length&&n&&ge&&(r=o.createElement("span",{key:"show-content","aria-hidden":!0},r));const i=function(e,t){let{mark:n,code:r,underline:i,delete:a,strong:l,keyboard:c,italic:s}=e,u=t;function d(e,t){t&&(u=o.createElement(e,{},u))}return d("strong",l),d("u",i),d("del",a),d("code",r),d("mark",n),d("kbd",c),d("i",s),u}(e,o.createElement(o.Fragment,null,r,(e=>{return[e&&o.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),te.suffix,(t=e,[t&&ve(),be(),ye()])];var t})(n)));return i}))))))})),ES=kS;var OS=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const _S=o.forwardRef(((e,t)=>{var{ellipsis:n,rel:r}=e,i=OS(e,["ellipsis","rel"]);const a=Object.assign(Object.assign({},i),{rel:void 0===r&&"_blank"===i.target?"noopener noreferrer":r});return delete a.navigate,o.createElement(ES,Object.assign({},a,{ref:t,ellipsis:!!n,component:"a"}))})),PS=_S,MS=o.forwardRef(((e,t)=>o.createElement(ES,Object.assign({ref:t},e,{component:"div"}))));var NS=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const IS=(e,t)=>{var{ellipsis:n}=e,r=NS(e,["ellipsis"]);const i=o.useMemo((()=>n&&"object"===typeof n?Zo(n,["expandable","rows"]):n),[n]);return o.createElement(ES,Object.assign({ref:t},r,{ellipsis:i,component:"span"}))},RS=o.forwardRef(IS);var TS=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const jS=[1,2,3,4,5],AS=o.forwardRef(((e,t)=>{const{level:n=1}=e,r=TS(e,["level"]);let i;return i=jS.includes(n)?"h".concat(n):"h1",o.createElement(ES,Object.assign({ref:t},r,{component:i}))})),zS=gS;zS.Text=RS,zS.Link=PS,zS.Title=AS,zS.Paragraph=MS;const LS=zS;function DS(e){return DS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},DS(e)}function BS(e){var t=function(e,t){if("object"!=DS(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=DS(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==DS(t)?t:String(t)}function FS(e,t,n){return(t=BS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HS(e){return e+.5|0}const WS=(e,t,n)=>Math.max(Math.min(e,n),t);function VS(e){return WS(HS(2.55*e),0,255)}function KS(e){return WS(HS(255*e),0,255)}function qS(e){return WS(HS(e/2.55)/100,0,1)}function US(e){return WS(HS(100*e),0,100)}const XS={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},GS=[..."0123456789ABCDEF"],$S=e=>GS[15&e],YS=e=>GS[(240&e)>>4]+GS[15&e],QS=e=>(240&e)>>4===(15&e);function JS(e){var t=(e=>QS(e.r)&&QS(e.g)&&QS(e.b)&&QS(e.a))(e)?$S:YS;return e?"#"+t(e.r)+t(e.g)+t(e.b)+((e,t)=>e<255?t(e):"")(e.a,t):void 0}const ZS=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function eC(e,t,n){const o=t*Math.min(n,1-n),r=function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(t+e/30)%12;return n-o*Math.max(Math.min(r-3,9-r,1),-1)};return[r(0),r(8),r(4)]}function tC(e,t,n){const o=function(o){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(o+e/60)%6;return n-n*t*Math.max(Math.min(r,4-r,1),0)};return[o(5),o(3),o(1)]}function nC(e,t,n){const o=eC(e,1,.5);let r;for(t+n>1&&(r=1/(t+n),t*=r,n*=r),r=0;r<3;r++)o[r]*=1-t-n,o[r]+=t;return o}function oC(e){const t=e.r/255,n=e.g/255,o=e.b/255,r=Math.max(t,n,o),i=Math.min(t,n,o),a=(r+i)/2;let l,c,s;return r!==i&&(s=r-i,c=a>.5?s/(2-r-i):s/(r+i),l=function(e,t,n,o,r){return e===r?(t-n)/o+(t<n?6:0):t===r?(n-e)/o+2:(e-t)/o+4}(t,n,o,s,r),l=60*l+.5),[0|l,c||0,a]}function rC(e,t,n,o){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,o)).map(KS)}function iC(e,t,n){return rC(eC,e,t,n)}function aC(e){return(e%360+360)%360}function lC(e){const t=ZS.exec(e);let n,o=255;if(!t)return;t[5]!==n&&(o=t[6]?VS(+t[5]):KS(+t[5]));const r=aC(+t[2]),i=+t[3]/100,a=+t[4]/100;return n="hwb"===t[1]?function(e,t,n){return rC(nC,e,t,n)}(r,i,a):"hsv"===t[1]?function(e,t,n){return rC(tC,e,t,n)}(r,i,a):iC(r,i,a),{r:n[0],g:n[1],b:n[2],a:o}}const cC={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},sC={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let uC;function dC(e){uC||(uC=function(){const e={},t=Object.keys(sC),n=Object.keys(cC);let o,r,i,a,l;for(o=0;o<t.length;o++){for(a=l=t[o],r=0;r<n.length;r++)i=n[r],l=l.replace(i,cC[i]);i=parseInt(sC[a],16),e[l]=[i>>16&255,i>>8&255,255&i]}return e}(),uC.transparent=[0,0,0,0]);const t=uC[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}const fC=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const pC=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,hC=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function mC(e,t,n){if(e){let o=oC(e);o[t]=Math.max(0,Math.min(o[t]+o[t]*n,0===t?360:1)),o=iC(o),e.r=o[0],e.g=o[1],e.b=o[2]}}function gC(e,t){return e?Object.assign(t||{},e):e}function vC(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=KS(e[3]))):(t=gC(e,{r:0,g:0,b:0,a:1})).a=KS(t.a),t}function bC(e){return"r"===e.charAt(0)?function(e){const t=fC.exec(e);let n,o,r,i=255;if(t){if(t[7]!==n){const e=+t[7];i=t[8]?VS(e):WS(255*e,0,255)}return n=+t[1],o=+t[3],r=+t[5],n=255&(t[2]?VS(n):WS(n,0,255)),o=255&(t[4]?VS(o):WS(o,0,255)),r=255&(t[6]?VS(r):WS(r,0,255)),{r:n,g:o,b:r,a:i}}}(e):lC(e)}class yC{constructor(e){if(e instanceof yC)return e;const t=typeof e;let n;"object"===t?n=vC(e):"string"===t&&(n=function(e){var t,n=e.length;return"#"===e[0]&&(4===n||5===n?t={r:255&17*XS[e[1]],g:255&17*XS[e[2]],b:255&17*XS[e[3]],a:5===n?17*XS[e[4]]:255}:7!==n&&9!==n||(t={r:XS[e[1]]<<4|XS[e[2]],g:XS[e[3]]<<4|XS[e[4]],b:XS[e[5]]<<4|XS[e[6]],a:9===n?XS[e[7]]<<4|XS[e[8]]:255})),t}(e)||dC(e)||bC(e)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var e=gC(this._rgb);return e&&(e.a=qS(e.a)),e}set rgb(e){this._rgb=vC(e)}rgbString(){return this._valid?(e=this._rgb)&&(e.a<255?"rgba(".concat(e.r,", ").concat(e.g,", ").concat(e.b,", ").concat(qS(e.a),")"):"rgb(".concat(e.r,", ").concat(e.g,", ").concat(e.b,")")):void 0;var e}hexString(){return this._valid?JS(this._rgb):void 0}hslString(){return this._valid?function(e){if(!e)return;const t=oC(e),n=t[0],o=US(t[1]),r=US(t[2]);return e.a<255?"hsla(".concat(n,", ").concat(o,"%, ").concat(r,"%, ").concat(qS(e.a),")"):"hsl(".concat(n,", ").concat(o,"%, ").concat(r,"%)")}(this._rgb):void 0}mix(e,t){if(e){const n=this.rgb,o=e.rgb;let r;const i=t===r?.5:t,a=2*i-1,l=n.a-o.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;r=1-c,n.r=255&c*n.r+r*o.r+.5,n.g=255&c*n.g+r*o.g+.5,n.b=255&c*n.b+r*o.b+.5,n.a=i*n.a+(1-i)*o.a,this.rgb=n}return this}interpolate(e,t){return e&&(this._rgb=function(e,t,n){const o=hC(qS(e.r)),r=hC(qS(e.g)),i=hC(qS(e.b));return{r:KS(pC(o+n*(hC(qS(t.r))-o))),g:KS(pC(r+n*(hC(qS(t.g))-r))),b:KS(pC(i+n*(hC(qS(t.b))-i))),a:e.a+n*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new yC(this.rgb)}alpha(e){return this._rgb.a=KS(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,t=HS(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){return this._rgb.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return mC(this._rgb,2,e),this}darken(e){return mC(this._rgb,2,-e),this}saturate(e){return mC(this._rgb,1,e),this}desaturate(e){return mC(this._rgb,1,-e),this}rotate(e){return function(e,t){var n=oC(e);n[0]=aC(n[0]+t),n=iC(n),e.r=n[0],e.g=n[1],e.b=n[2]}(this._rgb,e),this}}function wC(){}const xC=(()=>{let e=0;return()=>e++})();function SC(e){return null===e||"undefined"===typeof e}function CC(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function kC(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function EC(e){return("number"===typeof e||e instanceof Number)&&isFinite(+e)}function OC(e,t){return EC(e)?e:t}function _C(e,t){return"undefined"===typeof e?t:e}const PC=(e,t)=>"string"===typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function MC(e,t,n){if(e&&"function"===typeof e.call)return e.apply(n,t)}function NC(e,t,n,o){let r,i,a;if(CC(e))if(i=e.length,o)for(r=i-1;r>=0;r--)t.call(n,e[r],r);else for(r=0;r<i;r++)t.call(n,e[r],r);else if(kC(e))for(a=Object.keys(e),i=a.length,r=0;r<i;r++)t.call(n,e[a[r]],a[r])}function IC(e,t){let n,o,r,i;if(!e||!t||e.length!==t.length)return!1;for(n=0,o=e.length;n<o;++n)if(r=e[n],i=t[n],r.datasetIndex!==i.datasetIndex||r.index!==i.index)return!1;return!0}function RC(e){if(CC(e))return e.map(RC);if(kC(e)){const t=Object.create(null),n=Object.keys(e),o=n.length;let r=0;for(;r<o;++r)t[n[r]]=RC(e[n[r]]);return t}return e}function TC(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function jC(e,t,n,o){if(!TC(e))return;const r=t[e],i=n[e];kC(r)&&kC(i)?AC(r,i,o):t[e]=RC(i)}function AC(e,t,n){const o=CC(t)?t:[t],r=o.length;if(!kC(e))return e;const i=(n=n||{}).merger||jC;let a;for(let l=0;l<r;++l){if(a=o[l],!kC(a))continue;const t=Object.keys(a);for(let o=0,r=t.length;o<r;++o)i(t[o],e,a,n)}return e}function zC(e,t){return AC(e,t,{merger:LC})}function LC(e,t,n){if(!TC(e))return;const o=t[e],r=n[e];kC(o)&&kC(r)?zC(o,r):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=RC(r))}const DC={"":e=>e,x:e=>e.x,y:e=>e.y};function BC(e,t){const n=DC[t]||(DC[t]=function(e){const t=function(e){const t=e.split("."),n=[];let o="";for(const r of t)o+=r,o.endsWith("\\")?o=o.slice(0,-1)+".":(n.push(o),o="");return n}(e);return e=>{for(const n of t){if(""===n)break;e=e&&e[n]}return e}}(t));return n(e)}function FC(e){return e.charAt(0).toUpperCase()+e.slice(1)}const HC=e=>"undefined"!==typeof e,WC=e=>"function"===typeof e,VC=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};const KC=Math.PI,qC=2*KC,UC=qC+KC,XC=Number.POSITIVE_INFINITY,GC=KC/180,$C=KC/2,YC=KC/4,QC=2*KC/3,JC=Math.log10,ZC=Math.sign;function ek(e,t,n){return Math.abs(e-t)<n}function tk(e){const t=Math.round(e);e=ek(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(JC(e))),o=e/n;return(o<=1?1:o<=2?2:o<=5?5:10)*n}function nk(e){return!isNaN(parseFloat(e))&&isFinite(e)}function ok(e,t,n){let o,r,i;for(o=0,r=e.length;o<r;o++)i=e[o][n],isNaN(i)||(t.min=Math.min(t.min,i),t.max=Math.max(t.max,i))}function rk(e){return e*(KC/180)}function ik(e){return e*(180/KC)}function ak(e){if(!EC(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function lk(e,t){const n=t.x-e.x,o=t.y-e.y,r=Math.sqrt(n*n+o*o);let i=Math.atan2(o,n);return i<-.5*KC&&(i+=qC),{angle:i,distance:r}}function ck(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function sk(e,t){return(e-t+UC)%qC-KC}function uk(e){return(e%qC+qC)%qC}function dk(e,t,n,o){const r=uk(e),i=uk(t),a=uk(n),l=uk(i-r),c=uk(a-r),s=uk(r-i),u=uk(r-a);return r===i||r===a||o&&i===a||l>c&&s<u}function fk(e,t,n){return Math.max(t,Math.min(n,e))}function pk(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e-6;return e>=Math.min(t,n)-o&&e<=Math.max(t,n)+o}function hk(e,t,n){n=n||(n=>e[n]<t);let o,r=e.length-1,i=0;for(;r-i>1;)o=i+r>>1,n(o)?i=o:r=o;return{lo:i,hi:r}}const mk=(e,t,n,o)=>hk(e,n,o?o=>{const r=e[o][t];return r<n||r===n&&e[o+1][t]===n}:o=>e[o][t]<n),gk=(e,t,n)=>hk(e,n,(o=>e[o][t]>=n));const vk=["push","pop","shift","splice","unshift"];function bk(e,t){const n=e._chartjs;if(!n)return;const o=n.listeners,r=o.indexOf(t);-1!==r&&o.splice(r,1),o.length>0||(vk.forEach((t=>{delete e[t]})),delete e._chartjs)}function yk(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const wk="undefined"===typeof window?function(e){return e()}:window.requestAnimationFrame;function xk(e,t){let n=[],o=!1;return function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];n=i,o||(o=!0,wk.call(window,(()=>{o=!1,e.apply(t,n)})))}}const Sk=e=>"start"===e?"left":"end"===e?"right":"center",Ck=(e,t,n)=>"start"===e?t:"end"===e?n:(t+n)/2;function kk(e,t,n){const o=t.length;let r=0,i=o;if(e._sorted){const{iScale:a,_parsed:l}=e,c=a.axis,{min:s,max:u,minDefined:d,maxDefined:f}=a.getUserBounds();d&&(r=fk(Math.min(mk(l,c,s).lo,n?o:mk(t,c,a.getPixelForValue(s)).lo),0,o-1)),i=f?fk(Math.max(mk(l,a.axis,u,!0).hi+1,n?0:mk(t,c,a.getPixelForValue(u),!0).hi+1),r,o)-r:o-r}return{start:r,count:i}}function Ek(e){const{xScale:t,yScale:n,_scaleRanges:o}=e,r={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!o)return e._scaleRanges=r,!0;const i=o.xmin!==t.min||o.xmax!==t.max||o.ymin!==n.min||o.ymax!==n.max;return Object.assign(o,r),i}const Ok=e=>0===e||1===e,_k=(e,t,n)=>-Math.pow(2,10*(e-=1))*Math.sin((e-t)*qC/n),Pk=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*qC/n)+1,Mk={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>1-Math.cos(e*$C),easeOutSine:e=>Math.sin(e*$C),easeInOutSine:e=>-.5*(Math.cos(KC*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>Ok(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1))),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Ok(e)?e:_k(e,.075,.3),easeOutElastic:e=>Ok(e)?e:Pk(e,.075,.3),easeInOutElastic(e){const t=.1125;return Ok(e)?e:e<.5?.5*_k(2*e,t,.45):.5+.5*Pk(2*e-1,t,.45)},easeInBack(e){const t=1.70158;return e*e*((t+1)*e-t)},easeOutBack(e){const t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:e=>1-Mk.easeOutBounce(1-e),easeOutBounce(e){const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:e=>e<.5?.5*Mk.easeInBounce(2*e):.5*Mk.easeOutBounce(2*e-1)+.5};function Nk(e){if(e&&"object"===typeof e){const t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function Ik(e){return Nk(e)?e:new yC(e)}function Rk(e){return Nk(e)?e:new yC(e).saturate(.5).darken(.1).hexString()}const Tk=["x","y","borderWidth","radius","tension"],jk=["color","borderColor","backgroundColor"];const Ak=new Map;function zk(e,t,n){return function(e,t){t=t||{};const n=e+JSON.stringify(t);let o=Ak.get(n);return o||(o=new Intl.NumberFormat(e,t),Ak.set(n,o)),o}(t,n).format(e)}const Lk={values:e=>CC(e)?e:""+e,numeric(e,t,n){if(0===e)return"0";const o=this.chart.options.locale;let r,i=e;if(n.length>1){const t=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(t<1e-4||t>1e15)&&(r="scientific"),i=function(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e));return n}(e,n)}const a=JC(Math.abs(i)),l=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),c={notation:r,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(c,this.options.ticks.format),zk(e,o,c)},logarithmic(e,t,n){if(0===e)return"0";const o=n[t].significand||e/Math.pow(10,Math.floor(JC(e)));return[1,2,3,5,10,15].includes(o)||t>.8*n.length?Lk.numeric.call(this,e,t,n):""}};var Dk={formatters:Lk};const Bk=Object.create(null),Fk=Object.create(null);function Hk(e,t){if(!t)return e;const n=t.split(".");for(let o=0,r=n.length;o<r;++o){const t=n[o];e=e[t]||(e[t]=Object.create(null))}return e}function Wk(e,t,n){return"string"===typeof t?AC(Hk(e,t),n):AC(Hk(e,""),t)}class Vk{constructor(e,t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=e=>e.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>Rk(t.backgroundColor),this.hoverBorderColor=(e,t)=>Rk(t.borderColor),this.hoverColor=(e,t)=>Rk(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return Wk(this,e,t)}get(e){return Hk(this,e)}describe(e,t){return Wk(Fk,e,t)}override(e,t){return Wk(Bk,e,t)}route(e,t,n,o){const r=Hk(this,e),i=Hk(this,n),a="_"+t;Object.defineProperties(r,{[a]:{value:r[t],writable:!0},[t]:{enumerable:!0,get(){const e=this[a],t=i[o];return kC(e)?Object.assign({},t,e):_C(e,t)},set(e){this[a]=e}}})}apply(e){e.forEach((e=>e(this)))}}var Kk=new Vk({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),e.set("animations",{colors:{type:"color",properties:jk},numbers:{type:"number",properties:Tk}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}})},function(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Dk.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e&&"dash"!==e}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e})}]);function qk(e,t,n,o,r){let i=t[r];return i||(i=t[r]=e.measureText(r).width,n.push(r)),i>o&&(o=i),o}function Uk(e,t,n,o){let r=(o=o||{}).data=o.data||{},i=o.garbageCollect=o.garbageCollect||[];o.font!==t&&(r=o.data={},i=o.garbageCollect=[],o.font=t),e.save(),e.font=t;let a=0;const l=n.length;let c,s,u,d,f;for(c=0;c<l;c++)if(d=n[c],void 0===d||null===d||CC(d)){if(CC(d))for(s=0,u=d.length;s<u;s++)f=d[s],void 0===f||null===f||CC(f)||(a=qk(e,r,i,a,f))}else a=qk(e,r,i,a,d);e.restore();const p=i.length/2;if(p>n.length){for(c=0;c<p;c++)delete r[i[c]];i.splice(0,p)}return a}function Xk(e,t,n){const o=e.currentDevicePixelRatio,r=0!==n?Math.max(n/2,.5):0;return Math.round((t-r)*o)/o+r}function Gk(e,t){(t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore()}function $k(e,t,n,o){Yk(e,t,n,o,null)}function Yk(e,t,n,o,r){let i,a,l,c,s,u,d,f;const p=t.pointStyle,h=t.rotation,m=t.radius;let g=(h||0)*GC;if(p&&"object"===typeof p&&(i=p.toString(),"[object HTMLImageElement]"===i||"[object HTMLCanvasElement]"===i))return e.save(),e.translate(n,o),e.rotate(g),e.drawImage(p,-p.width/2,-p.height/2,p.width,p.height),void e.restore();if(!(isNaN(m)||m<=0)){switch(e.beginPath(),p){default:r?e.ellipse(n,o,r/2,m,0,0,qC):e.arc(n,o,m,0,qC),e.closePath();break;case"triangle":u=r?r/2:m,e.moveTo(n+Math.sin(g)*u,o-Math.cos(g)*m),g+=QC,e.lineTo(n+Math.sin(g)*u,o-Math.cos(g)*m),g+=QC,e.lineTo(n+Math.sin(g)*u,o-Math.cos(g)*m),e.closePath();break;case"rectRounded":s=.516*m,c=m-s,a=Math.cos(g+YC)*c,d=Math.cos(g+YC)*(r?r/2-s:c),l=Math.sin(g+YC)*c,f=Math.sin(g+YC)*(r?r/2-s:c),e.arc(n-d,o-l,s,g-KC,g-$C),e.arc(n+f,o-a,s,g-$C,g),e.arc(n+d,o+l,s,g,g+$C),e.arc(n-f,o+a,s,g+$C,g+KC),e.closePath();break;case"rect":if(!h){c=Math.SQRT1_2*m,u=r?r/2:c,e.rect(n-u,o-c,2*u,2*c);break}g+=YC;case"rectRot":d=Math.cos(g)*(r?r/2:m),a=Math.cos(g)*m,l=Math.sin(g)*m,f=Math.sin(g)*(r?r/2:m),e.moveTo(n-d,o-l),e.lineTo(n+f,o-a),e.lineTo(n+d,o+l),e.lineTo(n-f,o+a),e.closePath();break;case"crossRot":g+=YC;case"cross":d=Math.cos(g)*(r?r/2:m),a=Math.cos(g)*m,l=Math.sin(g)*m,f=Math.sin(g)*(r?r/2:m),e.moveTo(n-d,o-l),e.lineTo(n+d,o+l),e.moveTo(n+f,o-a),e.lineTo(n-f,o+a);break;case"star":d=Math.cos(g)*(r?r/2:m),a=Math.cos(g)*m,l=Math.sin(g)*m,f=Math.sin(g)*(r?r/2:m),e.moveTo(n-d,o-l),e.lineTo(n+d,o+l),e.moveTo(n+f,o-a),e.lineTo(n-f,o+a),g+=YC,d=Math.cos(g)*(r?r/2:m),a=Math.cos(g)*m,l=Math.sin(g)*m,f=Math.sin(g)*(r?r/2:m),e.moveTo(n-d,o-l),e.lineTo(n+d,o+l),e.moveTo(n+f,o-a),e.lineTo(n-f,o+a);break;case"line":a=r?r/2:Math.cos(g)*m,l=Math.sin(g)*m,e.moveTo(n-a,o-l),e.lineTo(n+a,o+l);break;case"dash":e.moveTo(n,o),e.lineTo(n+Math.cos(g)*(r?r/2:m),o+Math.sin(g)*m);break;case!1:e.closePath()}e.fill(),t.borderWidth>0&&e.stroke()}}function Qk(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function Jk(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Zk(e){e.restore()}function eE(e,t,n,o,r){if(!t)return e.lineTo(n.x,n.y);if("middle"===r){const o=(t.x+n.x)/2;e.lineTo(o,t.y),e.lineTo(o,n.y)}else"after"===r!==!!o?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function tE(e,t,n,o){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(o?t.cp1x:t.cp2x,o?t.cp1y:t.cp2y,o?n.cp2x:n.cp1x,o?n.cp2y:n.cp1y,n.x,n.y)}function nE(e,t,n,o,r){if(r.strikethrough||r.underline){const i=e.measureText(o),a=t-i.actualBoundingBoxLeft,l=t+i.actualBoundingBoxRight,c=n-i.actualBoundingBoxAscent,s=n+i.actualBoundingBoxDescent,u=r.strikethrough?(c+s)/2:s;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=r.decorationWidth||2,e.moveTo(a,u),e.lineTo(l,u),e.stroke()}}function oE(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function rE(e,t,n,o,r){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};const a=CC(t)?t:[t],l=i.strokeWidth>0&&""!==i.strokeColor;let c,s;for(e.save(),e.font=r.string,function(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),SC(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}(e,i),c=0;c<a.length;++c)s=a[c],i.backdrop&&oE(e,i.backdrop),l&&(i.strokeColor&&(e.strokeStyle=i.strokeColor),SC(i.strokeWidth)||(e.lineWidth=i.strokeWidth),e.strokeText(s,n,o,i.maxWidth)),e.fillText(s,n,o,i.maxWidth),nE(e,n,o,s,i),o+=Number(r.lineHeight);e.restore()}function iE(e,t){const{x:n,y:o,w:r,h:i,radius:a}=t;e.arc(n+a.topLeft,o+a.topLeft,a.topLeft,1.5*KC,KC,!0),e.lineTo(n,o+i-a.bottomLeft),e.arc(n+a.bottomLeft,o+i-a.bottomLeft,a.bottomLeft,KC,$C,!0),e.lineTo(n+r-a.bottomRight,o+i),e.arc(n+r-a.bottomRight,o+i-a.bottomRight,a.bottomRight,$C,0,!0),e.lineTo(n+r,o+a.topRight),e.arc(n+r-a.topRight,o+a.topRight,a.topRight,0,-$C,!0),e.lineTo(n+a.topLeft,o)}const aE=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,lE=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function cE(e,t){const n=(""+e).match(aE);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e}const sE=e=>+e||0;function uE(e,t){const n={},o=kC(t),r=o?Object.keys(t):t,i=kC(e)?o?n=>_C(e[n],e[t[n]]):t=>e[t]:()=>e;for(const a of r)n[a]=sE(i(a));return n}function dE(e){return uE(e,{top:"y",right:"x",bottom:"y",left:"x"})}function fE(e){return uE(e,["topLeft","topRight","bottomLeft","bottomRight"])}function pE(e){const t=dE(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function hE(e,t){e=e||{},t=t||Kk.font;let n=_C(e.size,t.size);"string"===typeof n&&(n=parseInt(n,10));let o=_C(e.style,t.style);o&&!(""+o).match(lE)&&(console.warn('Invalid font style specified: "'+o+'"'),o=void 0);const r={family:_C(e.family,t.family),lineHeight:cE(_C(e.lineHeight,t.lineHeight),n),size:n,style:o,weight:_C(e.weight,t.weight),string:""};return r.string=function(e){return!e||SC(e.size)||SC(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(r),r}function mE(e,t,n,o){let r,i,a,l=!0;for(r=0,i=e.length;r<i;++r)if(a=e[r],void 0!==a&&(void 0!==t&&"function"===typeof a&&(a=a(t),l=!1),void 0!==n&&CC(a)&&(a=a[n%a.length],l=!1),void 0!==a))return o&&!l&&(o.cacheable=!1),a}function gE(e,t){return Object.assign(Object.create(e),t)}function vE(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[""],n=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:()=>e[0];const r=(arguments.length>2?arguments[2]:void 0)||e;"undefined"===typeof n&&(n=PE("_fallback",e));const i={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:r,_fallback:n,_getTarget:o,override:o=>vE([o,...e],t,r,n)};return new Proxy(i,{deleteProperty:(t,n)=>(delete t[n],delete t._keys,delete e[0][n],!0),get:(n,o)=>SE(n,o,(()=>function(e,t,n,o){let r;for(const i of t)if(r=PE(wE(i,e),n),"undefined"!==typeof r)return xE(e,r)?OE(n,o,e,r):r}(o,t,e,n))),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e._scopes[0],t),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(e,t)=>ME(e).includes(t),ownKeys:e=>ME(e),set(e,t,n){const r=e._storage||(e._storage=o());return e[t]=r[t]=n,delete e._keys,!0}})}function bE(e,t,n,o){const r={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:yE(e,o),setContext:t=>bE(e,t,n,o),override:r=>bE(e.override(r),t,n,o)};return new Proxy(r,{deleteProperty:(t,n)=>(delete t[n],delete e[n],!0),get:(e,t,n)=>SE(e,t,(()=>function(e,t,n){const{_proxy:o,_context:r,_subProxy:i,_descriptors:a}=e;let l=o[t];WC(l)&&a.isScriptable(t)&&(l=function(e,t,n,o){const{_proxy:r,_context:i,_subProxy:a,_stack:l}=n;if(l.has(e))throw new Error("Recursion detected: "+Array.from(l).join("->")+"->"+e);l.add(e);let c=t(i,a||o);l.delete(e),xE(e,c)&&(c=OE(r._scopes,r,e,c));return c}(t,l,e,n));CC(l)&&l.length&&(l=function(e,t,n,o){const{_proxy:r,_context:i,_subProxy:a,_descriptors:l}=n;if("undefined"!==typeof i.index&&o(e))return t[i.index%t.length];if(kC(t[0])){const n=t,o=r._scopes.filter((e=>e!==n));t=[];for(const c of n){const n=OE(o,r,e,c);t.push(bE(n,i,a&&a[e],l))}}return t}(t,l,e,a.isIndexable));xE(t,l)&&(l=bE(l,r,i&&i[t],a));return l}(e,t,n))),getOwnPropertyDescriptor:(t,n)=>t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n),getPrototypeOf:()=>Reflect.getPrototypeOf(e),has:(t,n)=>Reflect.has(e,n),ownKeys:()=>Reflect.ownKeys(e),set:(t,n,o)=>(e[n]=o,delete t[n],!0)})}function yE(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{scriptable:!0,indexable:!0};const{_scriptable:n=t.scriptable,_indexable:o=t.indexable,_allKeys:r=t.allKeys}=e;return{allKeys:r,scriptable:n,indexable:o,isScriptable:WC(n)?n:()=>n,isIndexable:WC(o)?o:()=>o}}const wE=(e,t)=>e?e+FC(t):t,xE=(e,t)=>kC(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function SE(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const o=n();return e[t]=o,o}function CE(e,t,n){return WC(e)?e(t,n):e}const kE=(e,t)=>!0===e?t:"string"===typeof e?BC(t,e):void 0;function EE(e,t,n,o,r){for(const i of t){const t=kE(n,i);if(t){e.add(t);const i=CE(t._fallback,n,r);if("undefined"!==typeof i&&i!==n&&i!==o)return i}else if(!1===t&&"undefined"!==typeof o&&n!==o)return null}return!1}function OE(e,t,n,o){const r=t._rootScopes,i=CE(t._fallback,n,o),a=[...e,...r],l=new Set;l.add(o);let c=_E(l,a,n,i||n,o);return null!==c&&(("undefined"===typeof i||i===n||(c=_E(l,a,i,c,o),null!==c))&&vE(Array.from(l),[""],r,i,(()=>function(e,t,n){const o=e._getTarget();t in o||(o[t]={});const r=o[t];if(CC(r)&&kC(n))return n;return r||{}}(t,n,o))))}function _E(e,t,n,o,r){for(;n;)n=EE(e,t,n,o,r);return n}function PE(e,t){for(const n of t){if(!n)continue;const t=n[e];if("undefined"!==typeof t)return t}}function ME(e){let t=e._keys;return t||(t=e._keys=function(e){const t=new Set;for(const n of e)for(const e of Object.keys(n).filter((e=>!e.startsWith("_"))))t.add(e);return Array.from(t)}(e._scopes)),t}function NE(e,t,n,o){const{iScale:r}=e,{key:i="r"}=this._parsing,a=new Array(o);let l,c,s,u;for(l=0,c=o;l<c;++l)s=l+n,u=t[s],a[l]={r:r.parse(BC(u,i),s)};return a}const IE=Number.EPSILON||1e-14,RE=(e,t)=>t<e.length&&!e[t].skip&&e[t],TE=e=>"x"===e?"y":"x";function jE(e,t,n,o){const r=e.skip?t:e,i=t,a=n.skip?t:n,l=ck(i,r),c=ck(a,i);let s=l/(l+c),u=c/(l+c);s=isNaN(s)?0:s,u=isNaN(u)?0:u;const d=o*s,f=o*u;return{previous:{x:i.x-d*(a.x-r.x),y:i.y-d*(a.y-r.y)},next:{x:i.x+f*(a.x-r.x),y:i.y+f*(a.y-r.y)}}}function AE(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x";const n=TE(t),o=e.length,r=Array(o).fill(0),i=Array(o);let a,l,c,s=RE(e,0);for(a=0;a<o;++a)if(l=c,c=s,s=RE(e,a+1),c){if(s){const e=s[t]-c[t];r[a]=0!==e?(s[n]-c[n])/e:0}i[a]=l?s?ZC(r[a-1])!==ZC(r[a])?0:(r[a-1]+r[a])/2:r[a-1]:r[a]}!function(e,t,n){const o=e.length;let r,i,a,l,c,s=RE(e,0);for(let u=0;u<o-1;++u)c=s,s=RE(e,u+1),c&&s&&(ek(t[u],0,IE)?n[u]=n[u+1]=0:(r=n[u]/t[u],i=n[u+1]/t[u],l=Math.pow(r,2)+Math.pow(i,2),l<=9||(a=3/Math.sqrt(l),n[u]=r*a*t[u],n[u+1]=i*a*t[u])))}(e,r,i),function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"x";const o=TE(n),r=e.length;let i,a,l,c=RE(e,0);for(let s=0;s<r;++s){if(a=l,l=c,c=RE(e,s+1),!l)continue;const r=l[n],u=l[o];a&&(i=(r-a[n])/3,l["cp1".concat(n)]=r-i,l["cp1".concat(o)]=u-i*t[s]),c&&(i=(c[n]-r)/3,l["cp2".concat(n)]=r+i,l["cp2".concat(o)]=u+i*t[s])}}(e,i,t)}function zE(e,t,n){return Math.max(Math.min(e,n),t)}function LE(e,t,n,o,r){let i,a,l,c;if(t.spanGaps&&(e=e.filter((e=>!e.skip))),"monotone"===t.cubicInterpolationMode)AE(e,r);else{let n=o?e[e.length-1]:e[0];for(i=0,a=e.length;i<a;++i)l=e[i],c=jE(n,l,e[Math.min(i+1,a-(o?0:1))%a],t.tension),l.cp1x=c.previous.x,l.cp1y=c.previous.y,l.cp2x=c.next.x,l.cp2y=c.next.y,n=l}t.capBezierPoints&&function(e,t){let n,o,r,i,a,l=Qk(e[0],t);for(n=0,o=e.length;n<o;++n)a=i,i=l,l=n<o-1&&Qk(e[n+1],t),i&&(r=e[n],a&&(r.cp1x=zE(r.cp1x,t.left,t.right),r.cp1y=zE(r.cp1y,t.top,t.bottom)),l&&(r.cp2x=zE(r.cp2x,t.left,t.right),r.cp2y=zE(r.cp2y,t.top,t.bottom)))}(e,n)}function DE(){return"undefined"!==typeof window&&"undefined"!==typeof document}function BE(e){let t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function FE(e,t,n){let o;return"string"===typeof e?(o=parseInt(e,10),-1!==e.indexOf("%")&&(o=o/100*t.parentNode[n])):o=e,o}const HE=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);const WE=["top","right","bottom","left"];function VE(e,t,n){const o={};n=n?"-"+n:"";for(let r=0;r<4;r++){const i=WE[r];o[i]=parseFloat(e[t+"-"+i+n])||0}return o.width=o.left+o.right,o.height=o.top+o.bottom,o}const KE=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function qE(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:o}=t,r=HE(n),i="border-box"===r.boxSizing,a=VE(r,"padding"),l=VE(r,"border","width"),{x:c,y:s,box:u}=function(e,t){const n=e.touches,o=n&&n.length?n[0]:e,{offsetX:r,offsetY:i}=o;let a,l,c=!1;if(KE(r,i,e.target))a=r,l=i;else{const e=t.getBoundingClientRect();a=o.clientX-e.left,l=o.clientY-e.top,c=!0}return{x:a,y:l,box:c}}(e,n),d=a.left+(u&&l.left),f=a.top+(u&&l.top);let{width:p,height:h}=t;return i&&(p-=a.width+l.width,h-=a.height+l.height),{x:Math.round((c-d)/p*n.width/o),y:Math.round((s-f)/h*n.height/o)}}const UE=e=>Math.round(10*e)/10;function XE(e,t,n,o){const r=HE(e),i=VE(r,"margin"),a=FE(r.maxWidth,e,"clientWidth")||XC,l=FE(r.maxHeight,e,"clientHeight")||XC,c=function(e,t,n){let o,r;if(void 0===t||void 0===n){const i=BE(e);if(i){const e=i.getBoundingClientRect(),a=HE(i),l=VE(a,"border","width"),c=VE(a,"padding");t=e.width-c.width-l.width,n=e.height-c.height-l.height,o=FE(a.maxWidth,i,"clientWidth"),r=FE(a.maxHeight,i,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:o||XC,maxHeight:r||XC}}(e,t,n);let{width:s,height:u}=c;if("content-box"===r.boxSizing){const e=VE(r,"border","width"),t=VE(r,"padding");s-=t.width+e.width,u-=t.height+e.height}s=Math.max(0,s-i.width),u=Math.max(0,o?s/o:u-i.height),s=UE(Math.min(s,a,c.maxWidth)),u=UE(Math.min(u,l,c.maxHeight)),s&&!u&&(u=UE(s/2));return(void 0!==t||void 0!==n)&&o&&c.height&&u>c.height&&(u=c.height,s=UE(Math.floor(u*o))),{width:s,height:u}}function GE(e,t,n){const o=t||1,r=Math.floor(e.height*o),i=Math.floor(e.width*o);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height="".concat(e.height,"px"),a.style.width="".concat(e.width,"px")),(e.currentDevicePixelRatio!==o||a.height!==r||a.width!==i)&&(e.currentDevicePixelRatio=o,a.height=r,a.width=i,e.ctx.setTransform(o,0,0,o,0,0),!0)}const $E=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};DE()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch(Qc){}return e}();function YE(e,t){const n=function(e,t){return HE(e).getPropertyValue(t)}(e,t),o=n&&n.match(/^(\d+)(\.\d+)?px$/);return o?+o[1]:void 0}function QE(e,t,n,o){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function JE(e,t,n,o){return{x:e.x+n*(t.x-e.x),y:"middle"===o?n<.5?e.y:t.y:"after"===o?n<1?e.y:t.y:n>0?t.y:e.y}}function ZE(e,t,n,o){const r={x:e.cp2x,y:e.cp2y},i={x:t.cp1x,y:t.cp1y},a=QE(e,r,n),l=QE(r,i,n),c=QE(i,t,n),s=QE(a,l,n),u=QE(l,c,n);return QE(s,u,n)}function eO(e,t,n){return e?function(e,t){return{x:n=>e+e+t-n,setWidth(e){t=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,t)=>e-t,leftForLtr:(e,t)=>e-t}}(t,n):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,t)=>e+t,leftForLtr:(e,t)=>e}}function tO(e,t){let n,o;"ltr"!==t&&"rtl"!==t||(n=e.canvas.style,o=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=o)}function nO(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function oO(e){return"angle"===e?{between:dk,compare:sk,normalize:uk}:{between:pk,compare:(e,t)=>e-t,normalize:e=>e}}function rO(e){let{start:t,end:n,count:o,loop:r,style:i}=e;return{start:t%o,end:n%o,loop:r&&(n-t+1)%o===0,style:i}}function iO(e,t,n){if(!n)return[e];const{property:o,start:r,end:i}=n,a=t.length,{compare:l,between:c,normalize:s}=oO(o),{start:u,end:d,loop:f,style:p}=function(e,t,n){const{property:o,start:r,end:i}=n,{between:a,normalize:l}=oO(o),c=t.length;let s,u,{start:d,end:f,loop:p}=e;if(p){for(d+=c,f+=c,s=0,u=c;s<u&&a(l(t[d%c][o]),r,i);++s)d--,f--;d%=c,f%=c}return f<d&&(f+=c),{start:d,end:f,loop:p,style:e.style}}(e,t,n),h=[];let m,g,v,b=!1,y=null;const w=()=>b||c(r,v,m)&&0!==l(r,v),x=()=>!b||0===l(i,m)||c(i,v,m);for(let S=u,C=u;S<=d;++S)g=t[S%a],g.skip||(m=s(g[o]),m!==v&&(b=c(m,r,i),null===y&&w()&&(y=0===l(m,r)?S:C),null!==y&&x()&&(h.push(rO({start:y,end:S,loop:f,count:a,style:p})),y=null),C=S,v=m));return null!==y&&h.push(rO({start:y,end:d,loop:f,count:a,style:p})),h}function aO(e,t){const n=[],o=e.segments;for(let r=0;r<o.length;r++){const i=iO(o[r],e.points,t);i.length&&n.push(...i)}return n}function lO(e,t,n,o){return o&&o.setContext&&n?function(e,t,n,o){const r=e._chart.getContext(),i=cO(e.options),{_datasetIndex:a,options:{spanGaps:l}}=e,c=n.length,s=[];let u=i,d=t[0].start,f=d;function p(e,t,o,r){const i=l?-1:1;if(e!==t){for(e+=c;n[e%c].skip;)e-=i;for(;n[t%c].skip;)t+=i;e%c!==t%c&&(s.push({start:e%c,end:t%c,loop:o,style:r}),u=r,d=t%c)}}for(const h of t){d=l?d:h.start;let e,t=n[d%c];for(f=d+1;f<=h.end;f++){const i=n[f%c];e=cO(o.setContext(gE(r,{type:"segment",p0:t,p1:i,p0DataIndex:(f-1)%c,p1DataIndex:f%c,datasetIndex:a}))),sO(e,u)&&p(d,f-1,h.loop,u),t=i,u=e}d<f-1&&p(d,f-1,h.loop,u)}return s}(e,t,n,o):t}function cO(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function sO(e,t){if(!t)return!1;const n=[],o=function(e,t){return Nk(t)?(n.includes(t)||n.push(t),n.indexOf(t)):t};return JSON.stringify(e,o)!==JSON.stringify(t,o)}class uO{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,t,n,o){const r=t.listeners[o],i=t.duration;r.forEach((o=>o({chart:e,initial:t.initial,numSteps:i,currentStep:Math.min(n-t.start,i)})))}_refresh(){this._request||(this._running=!0,this._request=wk.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now(),t=0;this._charts.forEach(((n,o)=>{if(!n.running||!n.items.length)return;const r=n.items;let i,a=r.length-1,l=!1;for(;a>=0;--a)i=r[a],i._active?(i._total>n.duration&&(n.duration=i._total),i.tick(e),l=!0):(r[a]=r[r.length-1],r.pop());l&&(o.draw(),this._notify(o,n,e,"progress")),r.length||(n.running=!1,this._notify(o,n,e,"complete"),n.initial=!1),t+=r.length})),this._lastDate=e,0===t&&(this._running=!1)}_getAnims(e){const t=this._charts;let n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}listen(e,t,n){this._getAnims(e).listeners[t].push(n)}add(e,t){t&&t.length&&this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){const t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce(((e,t)=>Math.max(e,t._duration)),0),this._refresh())}running(e){if(!this._running)return!1;const t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}stop(e){const t=this._charts.get(e);if(!t||!t.items.length)return;const n=t.items;let o=n.length-1;for(;o>=0;--o)n[o].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var dO=new uO;const fO="transparent",pO={boolean:(e,t,n)=>n>.5?t:e,color(e,t,n){const o=Ik(e||fO),r=o.valid&&Ik(t||fO);return r&&r.valid?r.mix(o,n).hexString():t},number:(e,t,n)=>e+(t-e)*n};class hO{constructor(e,t,n,o){const r=t[n];o=mE([e.to,o,r,e.from]);const i=mE([e.from,r,o]);this._active=!0,this._fn=e.fn||pO[e.type||typeof i],this._easing=Mk[e.easing]||Mk.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=n,this._from=i,this._to=o,this._promises=void 0}active(){return this._active}update(e,t,n){if(this._active){this._notify(!1);const o=this._target[this._prop],r=n-this._start,i=this._duration-r;this._start=n,this._duration=Math.floor(Math.max(i,e.duration)),this._total+=r,this._loop=!!e.loop,this._to=mE([e.to,t,o,e.from]),this._from=mE([e.from,o,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const t=e-this._start,n=this._duration,o=this._prop,r=this._from,i=this._loop,a=this._to;let l;if(this._active=r!==a&&(i||t<n),!this._active)return this._target[o]=a,void this._notify(!0);t<0?this._target[o]=r:(l=t/n%2,l=i&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[o]=this._fn(r,a,l))}wait(){const e=this._promises||(this._promises=[]);return new Promise(((t,n)=>{e.push({res:t,rej:n})}))}_notify(e){const t=e?"res":"rej",n=this._promises||[];for(let o=0;o<n.length;o++)n[o][t]()}}class mO{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!kC(e))return;const t=Object.keys(Kk.animation),n=this._properties;Object.getOwnPropertyNames(e).forEach((o=>{const r=e[o];if(!kC(r))return;const i={};for(const e of t)i[e]=r[e];(CC(r.properties)&&r.properties||[o]).forEach((e=>{e!==o&&n.has(e)||n.set(e,i)}))}))}_animateOptions(e,t){const n=t.options,o=function(e,t){if(!t)return;let n=e.options;if(!n)return void(e.options=t);n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(e,n);if(!o)return[];const r=this._createAnimations(o,n);return n.$shared&&function(e,t){const n=[],o=Object.keys(t);for(let r=0;r<o.length;r++){const t=e[o[r]];t&&t.active()&&n.push(t.wait())}return Promise.all(n)}(e.options.$animations,n).then((()=>{e.options=n}),(()=>{})),r}_createAnimations(e,t){const n=this._properties,o=[],r=e.$animations||(e.$animations={}),i=Object.keys(t),a=Date.now();let l;for(l=i.length-1;l>=0;--l){const c=i[l];if("$"===c.charAt(0))continue;if("options"===c){o.push(...this._animateOptions(e,t));continue}const s=t[c];let u=r[c];const d=n.get(c);if(u){if(d&&u.active()){u.update(d,s,a);continue}u.cancel()}d&&d.duration?(r[c]=u=new hO(d,e,c,s),o.push(u)):e[c]=s}return o}update(e,t){if(0===this._properties.size)return void Object.assign(e,t);const n=this._createAnimations(e,t);return n.length?(dO.add(this._chart,n),!0):void 0}}function gO(e,t){const n=e&&e.options||{},o=n.reverse,r=void 0===n.min?t:0,i=void 0===n.max?t:0;return{start:o?i:r,end:o?r:i}}function vO(e,t){const n=[],o=e._getSortedDatasetMetas(t);let r,i;for(r=0,i=o.length;r<i;++r)n.push(o[r].index);return n}function bO(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const r=e.keys,i="single"===o.mode;let a,l,c,s;if(null!==t){for(a=0,l=r.length;a<l;++a){if(c=+r[a],c===n){if(o.all)continue;break}s=e.values[c],EC(s)&&(i||0===t||ZC(t)===ZC(s))&&(t+=s)}return t}}function yO(e,t){const n=e&&e.options.stacked;return n||void 0===n&&void 0!==t.stack}function wO(e,t,n){const o=e[t]||(e[t]={});return o[n]||(o[n]={})}function xO(e,t,n,o){for(const r of t.getMatchingVisibleMetas(o).reverse()){const t=e[r.index];if(n&&t>0||!n&&t<0)return r.index}return null}function SO(e,t){const{chart:n,_cachedMeta:o}=e,r=n._stacks||(n._stacks={}),{iScale:i,vScale:a,index:l}=o,c=i.axis,s=a.axis,u=function(e,t,n){return"".concat(e.id,".").concat(t.id,".").concat(n.stack||n.type)}(i,a,o),d=t.length;let f;for(let p=0;p<d;++p){const e=t[p],{[c]:n,[s]:i}=e;f=(e._stacks||(e._stacks={}))[s]=wO(r,u,n),f[l]=i,f._top=xO(f,a,!0,o.type),f._bottom=xO(f,a,!1,o.type);(f._visualValues||(f._visualValues={}))[l]=i}}function CO(e,t){const n=e.scales;return Object.keys(n).filter((e=>n[e].axis===t)).shift()}function kO(e,t){const n=e.controller.index,o=e.vScale&&e.vScale.axis;if(o){t=t||e._parsed;for(const e of t){const t=e._stacks;if(!t||void 0===t[o]||void 0===t[o][n])return;delete t[o][n],void 0!==t[o]._visualValues&&void 0!==t[o]._visualValues[n]&&delete t[o]._visualValues[n]}}}const EO=e=>"reset"===e||"none"===e,OO=(e,t)=>t?e:Object.assign({},e);class _O{constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=yO(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&kO(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,t=this._cachedMeta,n=this.getDataset(),o=(e,t,n,o)=>"x"===e?t:"r"===e?o:n,r=t.xAxisID=_C(n.xAxisID,CO(e,"x")),i=t.yAxisID=_C(n.yAxisID,CO(e,"y")),a=t.rAxisID=_C(n.rAxisID,CO(e,"r")),l=t.indexAxis,c=t.iAxisID=o(l,r,i,a),s=t.vAxisID=o(l,i,r,a);t.xScale=this.getScaleForId(r),t.yScale=this.getScaleForId(i),t.rScale=this.getScaleForId(a),t.iScale=this.getScaleForId(c),t.vScale=this.getScaleForId(s)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&bk(this._data,this),e._stacked&&kO(e)}_dataCheck(){const e=this.getDataset(),t=e.data||(e.data=[]),n=this._data;if(kC(t))this._data=function(e){const t=Object.keys(e),n=new Array(t.length);let o,r,i;for(o=0,r=t.length;o<r;++o)i=t[o],n[o]={x:i,y:e[i]};return n}(t);else if(n!==t){if(n){bk(n,this);const e=this._cachedMeta;kO(e),e._parsed=[]}t&&Object.isExtensible(t)&&function(e,t){e._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),vk.forEach((t=>{const n="_onData"+FC(t),o=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];const a=o.apply(this,r);return e._chartjs.listeners.forEach((e=>{"function"===typeof e[n]&&e[n](...r)})),a}})})))}(t,this),this._syncList=[],this._data=t}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const t=this._cachedMeta,n=this.getDataset();let o=!1;this._dataCheck();const r=t._stacked;t._stacked=yO(t.vScale,t),t.stack!==n.stack&&(o=!0,kO(t),t.stack=n.stack),this._resyncElements(e),(o||r!==t._stacked)&&SO(this,t._parsed)}configure(){const e=this.chart.config,t=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,t){const{_cachedMeta:n,_data:o}=this,{iScale:r,_stacked:i}=n,a=r.axis;let l,c,s,u=0===e&&t===o.length||n._sorted,d=e>0&&n._parsed[e-1];if(!1===this._parsing)n._parsed=o,n._sorted=!0,s=o;else{s=CC(o[e])?this.parseArrayData(n,o,e,t):kC(o[e])?this.parseObjectData(n,o,e,t):this.parsePrimitiveData(n,o,e,t);const r=()=>null===c[a]||d&&c[a]<d[a];for(l=0;l<t;++l)n._parsed[l+e]=c=s[l],u&&(r()&&(u=!1),d=c);n._sorted=u}i&&SO(this,s)}parsePrimitiveData(e,t,n,o){const{iScale:r,vScale:i}=e,a=r.axis,l=i.axis,c=r.getLabels(),s=r===i,u=new Array(o);let d,f,p;for(d=0,f=o;d<f;++d)p=d+n,u[d]={[a]:s||r.parse(c[p],p),[l]:i.parse(t[p],p)};return u}parseArrayData(e,t,n,o){const{xScale:r,yScale:i}=e,a=new Array(o);let l,c,s,u;for(l=0,c=o;l<c;++l)s=l+n,u=t[s],a[l]={x:r.parse(u[0],s),y:i.parse(u[1],s)};return a}parseObjectData(e,t,n,o){const{xScale:r,yScale:i}=e,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=new Array(o);let s,u,d,f;for(s=0,u=o;s<u;++s)d=s+n,f=t[d],c[s]={x:r.parse(BC(f,a),d),y:i.parse(BC(f,l),d)};return c}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,t,n){const o=this.chart,r=this._cachedMeta,i=t[e.axis];return bO({keys:vO(o,!0),values:t._stacks[e.axis]._visualValues},i,r.index,{mode:n})}updateRangeFromParsed(e,t,n,o){const r=n[t.axis];let i=null===r?NaN:r;const a=o&&n._stacks[t.axis];o&&a&&(o.values=a,i=bO(o,r,this._cachedMeta.index)),e.min=Math.min(e.min,i),e.max=Math.max(e.max,i)}getMinMax(e,t){const n=this._cachedMeta,o=n._parsed,r=n._sorted&&e===n.iScale,i=o.length,a=this._getOtherScale(e),l=((e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:vO(n,!0),values:null})(t,n,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:s,max:u}=function(e){const{min:t,max:n,minDefined:o,maxDefined:r}=e.getUserBounds();return{min:o?t:Number.NEGATIVE_INFINITY,max:r?n:Number.POSITIVE_INFINITY}}(a);let d,f;function p(){f=o[d];const t=f[a.axis];return!EC(f[e.axis])||s>t||u<t}for(d=0;d<i&&(p()||(this.updateRangeFromParsed(c,e,f,l),!r));++d);if(r)for(d=i-1;d>=0;--d)if(!p()){this.updateRangeFromParsed(c,e,f,l);break}return c}getAllParsedValues(e){const t=this._cachedMeta._parsed,n=[];let o,r,i;for(o=0,r=t.length;o<r;++o)i=t[o][e.axis],EC(i)&&n.push(i);return n}getMaxOverflow(){return!1}getLabelAndValue(e){const t=this._cachedMeta,n=t.iScale,o=t.vScale,r=this.getParsed(e);return{label:n?""+n.getLabelForValue(r[n.axis]):"",value:o?""+o.getLabelForValue(r[o.axis]):""}}_update(e){const t=this._cachedMeta;this.update(e||"default"),t._clip=function(e){let t,n,o,r;return kC(e)?(t=e.top,n=e.right,o=e.bottom,r=e.left):t=n=o=r=e,{top:t,right:n,bottom:o,left:r,disabled:!1===e}}(_C(this.options.clip,function(e,t,n){if(!1===n)return!1;const o=gO(e,n),r=gO(t,n);return{top:r.end,right:o.end,bottom:r.start,left:o.start}}(t.xScale,t.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,t=this.chart,n=this._cachedMeta,o=n.data||[],r=t.chartArea,i=[],a=this._drawStart||0,l=this._drawCount||o.length-a,c=this.options.drawActiveElementsOnTop;let s;for(n.dataset&&n.dataset.draw(e,r,a,l),s=a;s<a+l;++s){const t=o[s];t.hidden||(t.active&&c?i.push(t):t.draw(e,r))}for(s=0;s<i.length;++s)i[s].draw(e,r)}getStyle(e,t){const n=t?"active":"default";return void 0===e&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(e||0,n)}getContext(e,t,n){const o=this.getDataset();let r;if(e>=0&&e<this._cachedMeta.data.length){const t=this._cachedMeta.data[e];r=t.$context||(t.$context=function(e,t,n){return gE(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}(this.getContext(),e,t)),r.parsed=this.getParsed(e),r.raw=o.data[e],r.index=r.dataIndex=e}else r=this.$context||(this.$context=function(e,t){return gE(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),r.dataset=o,r.index=r.datasetIndex=this.index;return r.active=!!t,r.mode=n,r}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,t){return this._resolveElementOptions(this.dataElementType.id,t,e)}_resolveElementOptions(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",n=arguments.length>2?arguments[2]:void 0;const o="active"===t,r=this._cachedDataOpts,i=e+"-"+t,a=r[i],l=this.enableOptionSharing&&HC(n);if(a)return OO(a,l);const c=this.chart.config,s=c.datasetElementScopeKeys(this._type,e),u=o?["".concat(e,"Hover"),"hover",e,""]:[e,""],d=c.getOptionScopes(this.getDataset(),s),f=Object.keys(Kk.elements[e]),p=c.resolveNamedOptions(d,f,(()=>this.getContext(n,o,t)),u);return p.$shared&&(p.$shared=l,r[i]=Object.freeze(OO(p,l))),p}_resolveAnimations(e,t,n){const o=this.chart,r=this._cachedDataOpts,i="animation-".concat(t),a=r[i];if(a)return a;let l;if(!1!==o.options.animation){const o=this.chart.config,r=o.datasetAnimationScopeKeys(this._type,t),i=o.getOptionScopes(this.getDataset(),r);l=o.createResolver(i,this.getContext(e,n,t))}const c=new mO(o,l&&l.animations);return l&&l._cacheable&&(r[i]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,t){return!t||EO(e)||this.chart._animationsDisabled}_getSharedOptions(e,t){const n=this.resolveDataElementOptions(e,t),o=this._sharedOptions,r=this.getSharedOptions(n),i=this.includeOptions(t,r)||r!==o;return this.updateSharedOptions(r,t,n),{sharedOptions:r,includeOptions:i}}updateElement(e,t,n,o){EO(o)?Object.assign(e,n):this._resolveAnimations(t,o).update(e,n)}updateSharedOptions(e,t,n){e&&!EO(t)&&this._resolveAnimations(void 0,t).update(e,n)}_setStyle(e,t,n,o){e.active=o;const r=this.getStyle(t,o);this._resolveAnimations(t,n,o).update(e,{options:!o&&this.getSharedOptions(r)||r})}removeHoverStyle(e,t,n){this._setStyle(e,n,"active",!1)}setHoverStyle(e,t,n){this._setStyle(e,n,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const t=this._data,n=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const o=n.length,r=t.length,i=Math.min(r,o);i&&this.parse(0,i),r>o?this._insertElements(o,r-o,e):r<o&&this._removeElements(r,o-r)}_insertElements(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const o=this._cachedMeta,r=o.data,i=e+t;let a;const l=e=>{for(e.length+=t,a=e.length-1;a>=i;a--)e[a]=e[a-t]};for(l(r),a=e;a<i;++a)r[a]=new this.dataElementType;this._parsing&&l(o._parsed),this.parse(e,t),n&&this.updateElements(r,e,t,"reset")}updateElements(e,t,n,o){}_removeElements(e,t){const n=this._cachedMeta;if(this._parsing){const o=n._parsed.splice(e,t);n._stacked&&kO(n,o)}n.data.splice(e,t)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[t,n,o]=e;this[t](n,o)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,t){t&&this._sync(["_removeElements",e,t]);const n=arguments.length-2;n&&this._sync(["_insertElements",e,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function PO(e){const t=e.iScale,n=function(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let o=[];for(let t=0,r=n.length;t<r;t++)o=o.concat(n[t].controller.getAllParsedValues(e));e._cache.$bar=yk(o.sort(((e,t)=>e-t)))}return e._cache.$bar}(t,e.type);let o,r,i,a,l=t._length;const c=()=>{32767!==i&&-32768!==i&&(HC(a)&&(l=Math.min(l,Math.abs(i-a)||l)),a=i)};for(o=0,r=n.length;o<r;++o)i=t.getPixelForValue(n[o]),c();for(a=void 0,o=0,r=t.ticks.length;o<r;++o)i=t.getPixelForTick(o),c();return l}function MO(e,t,n,o){return CC(e)?function(e,t,n,o){const r=n.parse(e[0],o),i=n.parse(e[1],o),a=Math.min(r,i),l=Math.max(r,i);let c=a,s=l;Math.abs(a)>Math.abs(l)&&(c=l,s=a),t[n.axis]=s,t._custom={barStart:c,barEnd:s,start:r,end:i,min:a,max:l}}(e,t,n,o):t[n.axis]=n.parse(e,o),t}function NO(e,t,n,o){const r=e.iScale,i=e.vScale,a=r.getLabels(),l=r===i,c=[];let s,u,d,f;for(s=n,u=n+o;s<u;++s)f=t[s],d={},d[r.axis]=l||r.parse(a[s],s),c.push(MO(f,d,i,s));return c}function IO(e){return e&&void 0!==e.barStart&&void 0!==e.barEnd}function RO(e,t,n,o){let r=t.borderSkipped;const i={};if(!r)return void(e.borderSkipped=i);if(!0===r)return void(e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:a,end:l,reverse:c,top:s,bottom:u}=function(e){let t,n,o,r,i;return e.horizontal?(t=e.base>e.x,n="left",o="right"):(t=e.base<e.y,n="bottom",o="top"),t?(r="end",i="start"):(r="start",i="end"),{start:n,end:o,reverse:t,top:r,bottom:i}}(e);"middle"===r&&n&&(e.enableBorderRadius=!0,(n._top||0)===o?r=s:(n._bottom||0)===o?r=u:(i[TO(u,a,l,c)]=!0,r=s)),i[TO(r,a,l,c)]=!0,e.borderSkipped=i}function TO(e,t,n,o){var r,i,a;return o?(a=n,e=jO(e=(r=e)===(i=t)?a:r===a?i:r,n,t)):e=jO(e,t,n),e}function jO(e,t,n){return"start"===e?t:"end"===e?n:e}function AO(e,t,n){let{inflateAmount:o}=t;e.inflateAmount="auto"===o?1===n?.33:0:o}FS(_O,"defaults",{}),FS(_O,"datasetElementType",null),FS(_O,"dataElementType",null);class zO extends _O{parsePrimitiveData(e,t,n,o){return NO(e,t,n,o)}parseArrayData(e,t,n,o){return NO(e,t,n,o)}parseObjectData(e,t,n,o){const{iScale:r,vScale:i}=e,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c="x"===r.axis?a:l,s="x"===i.axis?a:l,u=[];let d,f,p,h;for(d=n,f=n+o;d<f;++d)h=t[d],p={},p[r.axis]=r.parse(BC(h,c),d),u.push(MO(BC(h,s),p,i,d));return u}updateRangeFromParsed(e,t,n,o){super.updateRangeFromParsed(e,t,n,o);const r=n._custom;r&&t===this._cachedMeta.vScale&&(e.min=Math.min(e.min,r.min),e.max=Math.max(e.max,r.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const t=this._cachedMeta,{iScale:n,vScale:o}=t,r=this.getParsed(e),i=r._custom,a=IO(i)?"["+i.start+", "+i.end+"]":""+o.getLabelForValue(r[o.axis]);return{label:""+n.getLabelForValue(r[n.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(e){const t=this._cachedMeta;this.updateElements(t.data,0,t.data.length,e)}updateElements(e,t,n,o){const r="reset"===o,{index:i,_cachedMeta:{vScale:a}}=this,l=a.getBasePixel(),c=a.isHorizontal(),s=this._getRuler(),{sharedOptions:u,includeOptions:d}=this._getSharedOptions(t,o);for(let f=t;f<t+n;f++){const t=this.getParsed(f),n=r||SC(t[a.axis])?{base:l,head:l}:this._calculateBarValuePixels(f),p=this._calculateBarIndexPixels(f,s),h=(t._stacks||{})[a.axis],m={horizontal:c,base:n.base,enableBorderRadius:!h||IO(t._custom)||i===h._top||i===h._bottom,x:c?n.head:p.center,y:c?p.center:n.head,height:c?p.size:Math.abs(n.size),width:c?Math.abs(n.size):p.size};d&&(m.options=u||this.resolveDataElementOptions(f,e[f].active?"active":o));const g=m.options||e[f].options;RO(m,g,h,i),AO(m,g,s.ratio),this.updateElement(e[f],f,m,o)}}_getStacks(e,t){const{iScale:n}=this._cachedMeta,o=n.getMatchingVisibleMetas(this._type).filter((e=>e.controller.options.grouped)),r=n.options.stacked,i=[],a=e=>{const n=e.controller.getParsed(t),o=n&&n[e.vScale.axis];if(SC(o)||isNaN(o))return!0};for(const l of o)if((void 0===t||!a(l))&&((!1===r||-1===i.indexOf(l.stack)||void 0===r&&void 0===l.stack)&&i.push(l.stack),l.index===e))break;return i.length||i.push(void 0),i}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,t,n){const o=this._getStacks(e,n),r=void 0!==t?o.indexOf(t):-1;return-1===r?o.length-1:r}_getRuler(){const e=this.options,t=this._cachedMeta,n=t.iScale,o=[];let r,i;for(r=0,i=t.data.length;r<i;++r)o.push(n.getPixelForValue(this.getParsed(r)[n.axis],r));const a=e.barThickness;return{min:a||PO(t),pixels:o,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:e.grouped,ratio:a?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:t,_stacked:n,index:o},options:{base:r,minBarLength:i}}=this,a=r||0,l=this.getParsed(e),c=l._custom,s=IO(c);let u,d,f=l[t.axis],p=0,h=n?this.applyStack(t,l,n):f;h!==f&&(p=h-f,h=f),s&&(f=c.barStart,h=c.barEnd-c.barStart,0!==f&&ZC(f)!==ZC(c.barEnd)&&(p=0),p+=f);const m=SC(r)||s?p:r;let g=t.getPixelForValue(m);if(u=this.chart.getDataVisibility(e)?t.getPixelForValue(p+h):g,d=u-g,Math.abs(d)<i){d=function(e,t,n){return 0!==e?ZC(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}(d,t,a)*i,f===a&&(g-=d/2);const e=t.getPixelForDecimal(0),r=t.getPixelForDecimal(1),c=Math.min(e,r),p=Math.max(e,r);g=Math.max(Math.min(g,p),c),u=g+d,n&&!s&&(l._stacks[t.axis]._visualValues[o]=t.getValueForPixel(u)-t.getValueForPixel(g))}if(g===t.getPixelForValue(a)){const e=ZC(d)*t.getLineWidthForValue(a)/2;g+=e,d-=e}return{size:d,base:g,head:u,center:u+d/2}}_calculateBarIndexPixels(e,t){const n=t.scale,o=this.options,r=o.skipNull,i=_C(o.maxBarThickness,1/0);let a,l;if(t.grouped){const n=r?this._getStackCount(e):t.stackCount,c="flex"===o.barThickness?function(e,t,n,o){const r=t.pixels,i=r[e];let a=e>0?r[e-1]:null,l=e<r.length-1?r[e+1]:null;const c=n.categoryPercentage;null===a&&(a=i-(null===l?t.end-t.start:l-i)),null===l&&(l=i+i-a);const s=i-(i-Math.min(a,l))/2*c;return{chunk:Math.abs(l-a)/2*c/o,ratio:n.barPercentage,start:s}}(e,t,o,n):function(e,t,n,o){const r=n.barThickness;let i,a;return SC(r)?(i=t.min*n.categoryPercentage,a=n.barPercentage):(i=r*o,a=1),{chunk:i/o,ratio:a,start:t.pixels[e]-i/2}}(e,t,o,n),s=this._getStackIndex(this.index,this._cachedMeta.stack,r?e:void 0);a=c.start+c.chunk*s+c.chunk/2,l=Math.min(i,c.chunk*c.ratio)}else a=n.getPixelForValue(this.getParsed(e)[n.axis],e),l=Math.min(i,t.min*t.ratio);return{base:a-l/2,head:a+l/2,center:a,size:l}}draw(){const e=this._cachedMeta,t=e.vScale,n=e.data,o=n.length;let r=0;for(;r<o;++r)null!==this.getParsed(r)[t.axis]&&n[r].draw(this._ctx)}}FS(zO,"id","bar"),FS(zO,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),FS(zO,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class LO extends _O{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,t,n,o){const r=super.parsePrimitiveData(e,t,n,o);for(let i=0;i<r.length;i++)r[i]._custom=this.resolveDataElementOptions(i+n).radius;return r}parseArrayData(e,t,n,o){const r=super.parseArrayData(e,t,n,o);for(let i=0;i<r.length;i++){const e=t[n+i];r[i]._custom=_C(e[2],this.resolveDataElementOptions(i+n).radius)}return r}parseObjectData(e,t,n,o){const r=super.parseObjectData(e,t,n,o);for(let i=0;i<r.length;i++){const e=t[n+i];r[i]._custom=_C(e&&e.r&&+e.r,this.resolveDataElementOptions(i+n).radius)}return r}getMaxOverflow(){const e=this._cachedMeta.data;let t=0;for(let n=e.length-1;n>=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart.data.labels||[],{xScale:o,yScale:r}=t,i=this.getParsed(e),a=o.getLabelForValue(i.x),l=r.getLabelForValue(i.y),c=i._custom;return{label:n[e]||"",value:"("+a+", "+l+(c?", "+c:"")+")"}}update(e){const t=this._cachedMeta.data;this.updateElements(t,0,t.length,e)}updateElements(e,t,n,o){const r="reset"===o,{iScale:i,vScale:a}=this._cachedMeta,{sharedOptions:l,includeOptions:c}=this._getSharedOptions(t,o),s=i.axis,u=a.axis;for(let d=t;d<t+n;d++){const t=e[d],n=!r&&this.getParsed(d),f={},p=f[s]=r?i.getPixelForDecimal(.5):i.getPixelForValue(n[s]),h=f[u]=r?a.getBasePixel():a.getPixelForValue(n[u]);f.skip=isNaN(p)||isNaN(h),c&&(f.options=l||this.resolveDataElementOptions(d,t.active?"active":o),r&&(f.options.radius=0)),this.updateElement(t,d,f,o)}}resolveDataElementOptions(e,t){const n=this.getParsed(e);let o=super.resolveDataElementOptions(e,t);o.$shared&&(o=Object.assign({},o,{$shared:!1}));const r=o.radius;return"active"!==t&&(o.radius=0),o.radius+=_C(n&&n._custom,r),o}}FS(LO,"id","bubble"),FS(LO,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),FS(LO,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});class DO extends _O{constructor(e,t){super(e,t),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,t){const n=this.getDataset().data,o=this._cachedMeta;if(!1===this._parsing)o._parsed=n;else{let r,i,a=e=>+n[e];if(kC(n[e])){const{key:e="value"}=this._parsing;a=t=>+BC(n[t],e)}for(r=e,i=e+t;r<i;++r)o._parsed[r]=a(r)}}_getRotation(){return rk(this.options.rotation-90)}_getCircumference(){return rk(this.options.circumference)}_getRotationExtents(){let e=qC,t=-qC;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){const o=this.chart.getDatasetMeta(n).controller,r=o._getRotation(),i=o._getCircumference();e=Math.min(e,r),t=Math.max(t,r+i)}return{rotation:e,circumference:t-e}}update(e){const t=this.chart,{chartArea:n}=t,o=this._cachedMeta,r=o.data,i=this.getMaxBorderWidth()+this.getMaxOffset(r)+this.options.spacing,a=Math.max((Math.min(n.width,n.height)-i)/2,0),l=Math.min((c=this.options.cutout,s=a,"string"===typeof c&&c.endsWith("%")?parseFloat(c)/100:+c/s),1);var c,s;const u=this._getRingWeight(this.index),{circumference:d,rotation:f}=this._getRotationExtents(),{ratioX:p,ratioY:h,offsetX:m,offsetY:g}=function(e,t,n){let o=1,r=1,i=0,a=0;if(t<qC){const l=e,c=l+t,s=Math.cos(l),u=Math.sin(l),d=Math.cos(c),f=Math.sin(c),p=(e,t,o)=>dk(e,l,c,!0)?1:Math.max(t,t*n,o,o*n),h=(e,t,o)=>dk(e,l,c,!0)?-1:Math.min(t,t*n,o,o*n),m=p(0,s,d),g=p($C,u,f),v=h(KC,s,d),b=h(KC+$C,u,f);o=(m-v)/2,r=(g-b)/2,i=-(m+v)/2,a=-(g+b)/2}return{ratioX:o,ratioY:r,offsetX:i,offsetY:a}}(f,d,l),v=(n.width-i)/p,b=(n.height-i)/h,y=Math.max(Math.min(v,b)/2,0),w=PC(this.options.radius,y),x=(w-Math.max(w*l,0))/this._getVisibleDatasetWeightTotal();this.offsetX=m*w,this.offsetY=g*w,o.total=this.calculateTotal(),this.outerRadius=w-x*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-x*u,0),this.updateElements(r,0,r.length,e)}_circumference(e,t){const n=this.options,o=this._cachedMeta,r=this._getCircumference();return t&&n.animation.animateRotate||!this.chart.getDataVisibility(e)||null===o._parsed[e]||o.data[e].hidden?0:this.calculateCircumference(o._parsed[e]*r/qC)}updateElements(e,t,n,o){const r="reset"===o,i=this.chart,a=i.chartArea,l=i.options.animation,c=(a.left+a.right)/2,s=(a.top+a.bottom)/2,u=r&&l.animateScale,d=u?0:this.innerRadius,f=u?0:this.outerRadius,{sharedOptions:p,includeOptions:h}=this._getSharedOptions(t,o);let m,g=this._getRotation();for(m=0;m<t;++m)g+=this._circumference(m,r);for(m=t;m<t+n;++m){const t=this._circumference(m,r),n=e[m],i={x:c+this.offsetX,y:s+this.offsetY,startAngle:g,endAngle:g+t,circumference:t,outerRadius:f,innerRadius:d};h&&(i.options=p||this.resolveDataElementOptions(m,n.active?"active":o)),g+=t,this.updateElement(n,m,i,o)}}calculateTotal(){const e=this._cachedMeta,t=e.data;let n,o=0;for(n=0;n<t.length;n++){const r=e._parsed[n];null===r||isNaN(r)||!this.chart.getDataVisibility(n)||t[n].hidden||(o+=Math.abs(r))}return o}calculateCircumference(e){const t=this._cachedMeta.total;return t>0&&!isNaN(e)?qC*(Math.abs(e)/t):0}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart,o=n.data.labels||[],r=zk(t._parsed[e],n.options.locale);return{label:o[e]||"",value:r}}getMaxBorderWidth(e){let t=0;const n=this.chart;let o,r,i,a,l;if(!e)for(o=0,r=n.data.datasets.length;o<r;++o)if(n.isDatasetVisible(o)){i=n.getDatasetMeta(o),e=i.data,a=i.controller;break}if(!e)return 0;for(o=0,r=e.length;o<r;++o)l=a.resolveDataElementOptions(o),"inner"!==l.borderAlign&&(t=Math.max(t,l.borderWidth||0,l.hoverBorderWidth||0));return t}getMaxOffset(e){let t=0;for(let n=0,o=e.length;n<o;++n){const e=this.resolveDataElementOptions(n);t=Math.max(t,e.offset||0,e.hoverOffset||0)}return t}_getRingWeightOffset(e){let t=0;for(let n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t}_getRingWeight(e){return Math.max(_C(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}FS(DO,"id","doughnut"),FS(DO,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),FS(DO,"descriptors",{_scriptable:e=>"spacing"!==e,_indexable:e=>"spacing"!==e&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),FS(DO,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n,color:o}}=e.legend.options;return t.labels.map(((t,r)=>{const i=e.getDatasetMeta(0).controller.getStyle(r);return{text:t,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,fontColor:o,lineWidth:i.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(r),index:r}}))}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}}});class BO extends _O{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const t=this._cachedMeta,{dataset:n,data:o=[],_dataset:r}=t,i=this.chart._animationsDisabled;let{start:a,count:l}=kk(t,o,i);this._drawStart=a,this._drawCount=l,Ek(t)&&(a=0,l=o.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!r._decimated,n.points=o;const c=this.resolveDatasetElementOptions(e);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(n,void 0,{animated:!i,options:c},e),this.updateElements(o,a,l,e)}updateElements(e,t,n,o){const r="reset"===o,{iScale:i,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:s,includeOptions:u}=this._getSharedOptions(t,o),d=i.axis,f=a.axis,{spanGaps:p,segment:h}=this.options,m=nk(p)?p:Number.POSITIVE_INFINITY,g=this.chart._animationsDisabled||r||"none"===o,v=t+n,b=e.length;let y=t>0&&this.getParsed(t-1);for(let w=0;w<b;++w){const n=e[w],p=g?n:{};if(w<t||w>=v){p.skip=!0;continue}const b=this.getParsed(w),x=SC(b[f]),S=p[d]=i.getPixelForValue(b[d],w),C=p[f]=r||x?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,b,l):b[f],w);p.skip=isNaN(S)||isNaN(C)||x,p.stop=w>0&&Math.abs(b[d]-y[d])>m,h&&(p.parsed=b,p.raw=c.data[w]),u&&(p.options=s||this.resolveDataElementOptions(w,n.active?"active":o)),g||this.updateElement(n,w,p,o),y=b}}getMaxOverflow(){const e=this._cachedMeta,t=e.dataset,n=t.options&&t.options.borderWidth||0,o=e.data||[];if(!o.length)return n;const r=o[0].size(this.resolveDataElementOptions(0)),i=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(n,r,i)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}FS(BO,"id","line"),FS(BO,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),FS(BO,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class FO extends _O{constructor(e,t){super(e,t),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart,o=n.data.labels||[],r=zk(t._parsed[e].r,n.options.locale);return{label:o[e]||"",value:r}}parseObjectData(e,t,n,o){return NE.bind(this)(e,t,n,o)}update(e){const t=this._cachedMeta.data;this._updateRadius(),this.updateElements(t,0,t.length,e)}getMinMax(){const e=this._cachedMeta,t={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach(((e,n)=>{const o=this.getParsed(n).r;!isNaN(o)&&this.chart.getDataVisibility(n)&&(o<t.min&&(t.min=o),o>t.max&&(t.max=o))})),t}_updateRadius(){const e=this.chart,t=e.chartArea,n=e.options,o=Math.min(t.right-t.left,t.bottom-t.top),r=Math.max(o/2,0),i=(r-Math.max(n.cutoutPercentage?r/100*n.cutoutPercentage:1,0))/e.getVisibleDatasetCount();this.outerRadius=r-i*this.index,this.innerRadius=this.outerRadius-i}updateElements(e,t,n,o){const r="reset"===o,i=this.chart,a=i.options.animation,l=this._cachedMeta.rScale,c=l.xCenter,s=l.yCenter,u=l.getIndexAngle(0)-.5*KC;let d,f=u;const p=360/this.countVisibleElements();for(d=0;d<t;++d)f+=this._computeAngle(d,o,p);for(d=t;d<t+n;d++){const t=e[d];let n=f,h=f+this._computeAngle(d,o,p),m=i.getDataVisibility(d)?l.getDistanceFromCenterForValue(this.getParsed(d).r):0;f=h,r&&(a.animateScale&&(m=0),a.animateRotate&&(n=h=u));const g={x:c,y:s,innerRadius:0,outerRadius:m,startAngle:n,endAngle:h,options:this.resolveDataElementOptions(d,t.active?"active":o)};this.updateElement(t,d,g,o)}}countVisibleElements(){const e=this._cachedMeta;let t=0;return e.data.forEach(((e,n)=>{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&t++})),t}_computeAngle(e,t,n){return this.chart.getDataVisibility(e)?rk(this.resolveDataElementOptions(e,t).angle||n):0}}FS(FO,"id","polarArea"),FS(FO,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),FS(FO,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n,color:o}}=e.legend.options;return t.labels.map(((t,r)=>{const i=e.getDatasetMeta(0).controller.getStyle(r);return{text:t,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,fontColor:o,lineWidth:i.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(r),index:r}}))}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class HO extends DO{}FS(HO,"id","pie"),FS(HO,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class WO extends _O{getLabelAndValue(e){const t=this._cachedMeta.vScale,n=this.getParsed(e);return{label:t.getLabels()[e],value:""+t.getLabelForValue(n[t.axis])}}parseObjectData(e,t,n,o){return NE.bind(this)(e,t,n,o)}update(e){const t=this._cachedMeta,n=t.dataset,o=t.data||[],r=t.iScale.getLabels();if(n.points=o,"resize"!==e){const t=this.resolveDatasetElementOptions(e);this.options.showLine||(t.borderWidth=0);const i={_loop:!0,_fullLoop:r.length===o.length,options:t};this.updateElement(n,void 0,i,e)}this.updateElements(o,0,o.length,e)}updateElements(e,t,n,o){const r=this._cachedMeta.rScale,i="reset"===o;for(let a=t;a<t+n;a++){const t=e[a],n=this.resolveDataElementOptions(a,t.active?"active":o),l=r.getPointPositionForValue(a,this.getParsed(a).r),c=i?r.xCenter:l.x,s=i?r.yCenter:l.y,u={x:c,y:s,angle:l.angle,skip:isNaN(c)||isNaN(s),options:n};this.updateElement(t,a,u,o)}}}FS(WO,"id","radar"),FS(WO,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),FS(WO,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class VO extends _O{getLabelAndValue(e){const t=this._cachedMeta,n=this.chart.data.labels||[],{xScale:o,yScale:r}=t,i=this.getParsed(e),a=o.getLabelForValue(i.x),l=r.getLabelForValue(i.y);return{label:n[e]||"",value:"("+a+", "+l+")"}}update(e){const t=this._cachedMeta,{data:n=[]}=t,o=this.chart._animationsDisabled;let{start:r,count:i}=kk(t,n,o);if(this._drawStart=r,this._drawCount=i,Ek(t)&&(r=0,i=n.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:r,_dataset:i}=t;r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!i._decimated,r.points=n;const a=this.resolveDatasetElementOptions(e);a.segment=this.options.segment,this.updateElement(r,void 0,{animated:!o,options:a},e)}else this.datasetElementType&&(delete t.dataset,this.datasetElementType=!1);this.updateElements(n,r,i,e)}addElements(){const{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(e,t,n,o){const r="reset"===o,{iScale:i,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,s=this.resolveDataElementOptions(t,o),u=this.getSharedOptions(s),d=this.includeOptions(o,u),f=i.axis,p=a.axis,{spanGaps:h,segment:m}=this.options,g=nk(h)?h:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||r||"none"===o;let b=t>0&&this.getParsed(t-1);for(let y=t;y<t+n;++y){const t=e[y],n=this.getParsed(y),s=v?t:{},h=SC(n[p]),w=s[f]=i.getPixelForValue(n[f],y),x=s[p]=r||h?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,n,l):n[p],y);s.skip=isNaN(w)||isNaN(x)||h,s.stop=y>0&&Math.abs(n[f]-b[f])>g,m&&(s.parsed=n,s.raw=c.data[y]),d&&(s.options=u||this.resolveDataElementOptions(y,t.active?"active":o)),v||this.updateElement(t,y,s,o),b=n}this.updateSharedOptions(u,o,s)}getMaxOverflow(){const e=this._cachedMeta,t=e.data||[];if(!this.options.showLine){let e=0;for(let n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}const n=e.dataset,o=n.options&&n.options.borderWidth||0;if(!t.length)return o;const r=t[0].size(this.resolveDataElementOptions(0)),i=t[t.length-1].size(this.resolveDataElementOptions(t.length-1));return Math.max(o,r,i)/2}}FS(VO,"id","scatter"),FS(VO,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),FS(VO,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});function KO(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class qO{static override(e){Object.assign(qO.prototype,e)}constructor(e){FS(this,"options",void 0),this.options=e||{}}init(){}formats(){return KO()}parse(){return KO()}format(){return KO()}add(){return KO()}diff(){return KO()}startOf(){return KO()}endOf(){return KO()}}var UO=qO;function XO(e,t,n,o){const{controller:r,data:i,_sorted:a}=e,l=r._cachedMeta.iScale;if(l&&t===l.axis&&"r"!==t&&a&&i.length){const e=l._reversePixels?gk:mk;if(!o)return e(i,t,n);if(r._sharedOptions){const o=i[0],r="function"===typeof o.getRange&&o.getRange(t);if(r){const o=e(i,t,n-r),a=e(i,t,n+r);return{lo:o.lo,hi:a.hi}}}}return{lo:0,hi:i.length-1}}function GO(e,t,n,o,r){const i=e.getSortedVisibleDatasetMetas(),a=n[t];for(let l=0,c=i.length;l<c;++l){const{index:e,data:n}=i[l],{lo:c,hi:s}=XO(i[l],t,a,r);for(let t=c;t<=s;++t){const r=n[t];r.skip||o(r,e,t)}}}function $O(e,t,n,o,r){const i=[];if(!r&&!e.isPointInArea(t))return i;return GO(e,n,t,(function(n,a,l){(r||Qk(n,e.chartArea,0))&&n.inRange(t.x,t.y,o)&&i.push({element:n,datasetIndex:a,index:l})}),!0),i}function YO(e,t,n,o,r,i){let a=[];const l=function(e){const t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,o){const r=t?Math.abs(e.x-o.x):0,i=n?Math.abs(e.y-o.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(i,2))}}(n);let c=Number.POSITIVE_INFINITY;return GO(e,n,t,(function(n,s,u){const d=n.inRange(t.x,t.y,r);if(o&&!d)return;const f=n.getCenterPoint(r);if(!(!!i||e.isPointInArea(f))&&!d)return;const p=l(t,f);p<c?(a=[{element:n,datasetIndex:s,index:u}],c=p):p===c&&a.push({element:n,datasetIndex:s,index:u})})),a}function QO(e,t,n,o,r,i){return i||e.isPointInArea(t)?"r"!==n||o?YO(e,t,n,o,r,i):function(e,t,n,o){let r=[];return GO(e,n,t,(function(e,n,i){const{startAngle:a,endAngle:l}=e.getProps(["startAngle","endAngle"],o),{angle:c}=lk(e,{x:t.x,y:t.y});dk(c,a,l)&&r.push({element:e,datasetIndex:n,index:i})})),r}(e,t,n,r):[]}function JO(e,t,n,o,r){const i=[],a="x"===n?"inXRange":"inYRange";let l=!1;return GO(e,n,t,((e,o,c)=>{e[a](t[n],r)&&(i.push({element:e,datasetIndex:o,index:c}),l=l||e.inRange(t.x,t.y,r))})),o&&!l?[]:i}var ZO={evaluateInteractionItems:GO,modes:{index(e,t,n,o){const r=qE(t,e),i=n.axis||"x",a=n.includeInvisible||!1,l=n.intersect?$O(e,r,i,o,a):QO(e,r,i,!1,o,a),c=[];return l.length?(e.getSortedVisibleDatasetMetas().forEach((e=>{const t=l[0].index,n=e.data[t];n&&!n.skip&&c.push({element:n,datasetIndex:e.index,index:t})})),c):[]},dataset(e,t,n,o){const r=qE(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;let l=n.intersect?$O(e,r,i,o,a):QO(e,r,i,!1,o,a);if(l.length>0){const t=l[0].datasetIndex,n=e.getDatasetMeta(t).data;l=[];for(let e=0;e<n.length;++e)l.push({element:n[e],datasetIndex:t,index:e})}return l},point:(e,t,n,o)=>$O(e,qE(t,e),n.axis||"xy",o,n.includeInvisible||!1),nearest(e,t,n,o){const r=qE(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;return QO(e,r,i,n.intersect,o,a)},x:(e,t,n,o)=>JO(e,qE(t,e),"x",n.intersect,o),y:(e,t,n,o)=>JO(e,qE(t,e),"y",n.intersect,o)}};const e_=["left","top","right","bottom"];function t_(e,t){return e.filter((e=>e.pos===t))}function n_(e,t){return e.filter((e=>-1===e_.indexOf(e.pos)&&e.box.axis===t))}function o_(e,t){return e.sort(((e,n)=>{const o=t?n:e,r=t?e:n;return o.weight===r.weight?o.index-r.index:o.weight-r.weight}))}function r_(e,t){const n=function(e){const t={};for(const n of e){const{stack:e,pos:o,stackWeight:r}=n;if(!e||!e_.includes(o))continue;const i=t[e]||(t[e]={count:0,placed:0,weight:0,size:0});i.count++,i.weight+=r}return t}(e),{vBoxMaxWidth:o,hBoxMaxHeight:r}=t;let i,a,l;for(i=0,a=e.length;i<a;++i){l=e[i];const{fullSize:a}=l.box,c=n[l.stack],s=c&&l.stackWeight/c.weight;l.horizontal?(l.width=s?s*o:a&&t.availableWidth,l.height=r):(l.width=o,l.height=s?s*r:a&&t.availableHeight)}return n}function i_(e,t,n,o){return Math.max(e[n],t[n])+Math.max(e[o],t[o])}function a_(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function l_(e,t,n,o){const{pos:r,box:i}=n,a=e.maxPadding;if(!kC(r)){n.size&&(e[r]-=n.size);const t=o[n.stack]||{size:0,count:1};t.size=Math.max(t.size,n.horizontal?i.height:i.width),n.size=t.size/t.count,e[r]+=n.size}i.getPadding&&a_(a,i.getPadding());const l=Math.max(0,t.outerWidth-i_(a,e,"left","right")),c=Math.max(0,t.outerHeight-i_(a,e,"top","bottom")),s=l!==e.w,u=c!==e.h;return e.w=l,e.h=c,n.horizontal?{same:s,other:u}:{same:u,other:s}}function c_(e,t){const n=t.maxPadding;function o(e){const o={left:0,top:0,right:0,bottom:0};return e.forEach((e=>{o[e]=Math.max(t[e],n[e])})),o}return o(e?["left","right"]:["top","bottom"])}function s_(e,t,n,o){const r=[];let i,a,l,c,s,u;for(i=0,a=e.length,s=0;i<a;++i){l=e[i],c=l.box,c.update(l.width||t.w,l.height||t.h,c_(l.horizontal,t));const{same:a,other:d}=l_(t,n,l,o);s|=a&&r.length,u=u||d,c.fullSize||r.push(l)}return s&&s_(r,t,n,o)||u}function u_(e,t,n,o,r){e.top=n,e.left=t,e.right=t+o,e.bottom=n+r,e.width=o,e.height=r}function d_(e,t,n,o){const r=n.padding;let{x:i,y:a}=t;for(const l of e){const e=l.box,c=o[l.stack]||{count:1,placed:0,weight:1},s=l.stackWeight/c.weight||1;if(l.horizontal){const o=t.w*s,i=c.size||e.height;HC(c.start)&&(a=c.start),e.fullSize?u_(e,r.left,a,n.outerWidth-r.right-r.left,i):u_(e,t.left+c.placed,a,o,i),c.start=a,c.placed+=o,a=e.bottom}else{const o=t.h*s,a=c.size||e.width;HC(c.start)&&(i=c.start),e.fullSize?u_(e,i,r.top,a,n.outerHeight-r.bottom-r.top):u_(e,i,t.top+c.placed,a,o),c.start=i,c.placed+=o,i=e.right}}t.x=i,t.y=a}var f_={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(e){t.draw(e)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,o){if(!e)return;const r=pE(e.options.layout.padding),i=Math.max(t-r.width,0),a=Math.max(n-r.height,0),l=function(e){const t=function(e){const t=[];let n,o,r,i,a,l;for(n=0,o=(e||[]).length;n<o;++n)r=e[n],({position:i,options:{stack:a,stackWeight:l=1}}=r),t.push({index:n,box:r,pos:i,horizontal:r.isHorizontal(),weight:r.weight,stack:a&&i+a,stackWeight:l});return t}(e),n=o_(t.filter((e=>e.box.fullSize)),!0),o=o_(t_(t,"left"),!0),r=o_(t_(t,"right")),i=o_(t_(t,"top"),!0),a=o_(t_(t,"bottom")),l=n_(t,"x"),c=n_(t,"y");return{fullSize:n,leftAndTop:o.concat(i),rightAndBottom:r.concat(c).concat(a).concat(l),chartArea:t_(t,"chartArea"),vertical:o.concat(r).concat(c),horizontal:i.concat(a).concat(l)}}(e.boxes),c=l.vertical,s=l.horizontal;NC(e.boxes,(e=>{"function"===typeof e.beforeLayout&&e.beforeLayout()}));const u=c.reduce(((e,t)=>t.box.options&&!1===t.box.options.display?e:e+1),0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:r,availableWidth:i,availableHeight:a,vBoxMaxWidth:i/2/u,hBoxMaxHeight:a/2}),f=Object.assign({},r);a_(f,pE(o));const p=Object.assign({maxPadding:f,w:i,h:a,x:r.left,y:r.top},r),h=r_(c.concat(s),d);s_(l.fullSize,p,d,h),s_(c,p,d,h),s_(s,p,d,h)&&s_(c,p,d,h),function(e){const t=e.maxPadding;function n(n){const o=Math.max(t[n]-e[n],0);return e[n]+=o,o}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}(p),d_(l.leftAndTop,p,d,h),p.x+=p.w,p.y+=p.h,d_(l.rightAndBottom,p,d,h),e.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},NC(l.chartArea,(t=>{const n=t.box;Object.assign(n,e.chartArea),n.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})}))}};class p_{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,n){}removeEventListener(e,t,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,n,o){return t=Math.max(0,t||e.width),n=n||e.height,{width:t,height:Math.max(0,o?Math.floor(t/o):n)}}isAttached(e){return!0}updateConfig(e){}}class h_ extends p_{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const m_="$chartjs",g_={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},v_=e=>null===e||""===e;const b_=!!$E&&{passive:!0};function y_(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,b_)}function w_(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function x_(e,t,n){const o=e.canvas,r=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||w_(n.addedNodes,o),t=t&&!w_(n.removedNodes,o);t&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}function S_(e,t,n){const o=e.canvas,r=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||w_(n.removedNodes,o),t=t&&!w_(n.addedNodes,o);t&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}const C_=new Map;let k_=0;function E_(){const e=window.devicePixelRatio;e!==k_&&(k_=e,C_.forEach(((t,n)=>{n.currentDevicePixelRatio!==e&&t()})))}function O_(e,t,n){const o=e.canvas,r=o&&BE(o);if(!r)return;const i=xk(((e,t)=>{const o=r.clientWidth;n(e,t),o<r.clientWidth&&n()}),window),a=new ResizeObserver((e=>{const t=e[0],n=t.contentRect.width,o=t.contentRect.height;0===n&&0===o||i(n,o)}));return a.observe(r),function(e,t){C_.size||window.addEventListener("resize",E_),C_.set(e,t)}(e,i),a}function __(e,t,n){n&&n.disconnect(),"resize"===t&&function(e){C_.delete(e),C_.size||window.removeEventListener("resize",E_)}(e)}function P_(e,t,n){const o=e.canvas,r=xk((t=>{null!==e.ctx&&n(function(e,t){const n=g_[e.type]||e.type,{x:o,y:r}=qE(e,t);return{type:n,chart:t,native:e,x:void 0!==o?o:null,y:void 0!==r?r:null}}(t,e))}),e);return function(e,t,n){e&&e.addEventListener(t,n,b_)}(o,t,r),r}class M_ extends p_{acquireContext(e,t){const n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(function(e,t){const n=e.style,o=e.getAttribute("height"),r=e.getAttribute("width");if(e[m_]={initial:{height:o,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",v_(r)){const t=YE(e,"width");void 0!==t&&(e.width=t)}if(v_(o))if(""===e.style.height)e.height=e.width/(t||2);else{const t=YE(e,"height");void 0!==t&&(e.height=t)}}(e,t),n):null}releaseContext(e){const t=e.canvas;if(!t[m_])return!1;const n=t[m_].initial;["height","width"].forEach((e=>{const o=n[e];SC(o)?t.removeAttribute(e):t.setAttribute(e,o)}));const o=n.style||{};return Object.keys(o).forEach((e=>{t.style[e]=o[e]})),t.width=t.width,delete t[m_],!0}addEventListener(e,t,n){this.removeEventListener(e,t);const o=e.$proxies||(e.$proxies={}),r={attach:x_,detach:S_,resize:O_}[t]||P_;o[t]=r(e,t,n)}removeEventListener(e,t){const n=e.$proxies||(e.$proxies={}),o=n[t];if(!o)return;({attach:__,detach:__,resize:__}[t]||y_)(e,t,o),n[t]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,n,o){return XE(e,t,n,o)}isAttached(e){const t=BE(e);return!(!t||!t.isConnected)}}class N_{constructor(){FS(this,"x",void 0),FS(this,"y",void 0),FS(this,"active",!1),FS(this,"options",void 0),FS(this,"$animations",void 0)}tooltipPosition(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}hasValue(){return nk(this.x)&&nk(this.y)}getProps(e,t){const n=this.$animations;if(!t||!n)return this;const o={};return e.forEach((e=>{o[e]=n[e]&&n[e].active()?n[e]._to:this[e]})),o}}function I_(e,t){const n=e.options.ticks,o=function(e){const t=e.options.offset,n=e._tickSize(),o=e._length/n+(t?0:1),r=e._maxLength/n;return Math.floor(Math.min(o,r))}(e),r=Math.min(n.maxTicksLimit||o,o),i=n.major.enabled?function(e){const t=[];let n,o;for(n=0,o=e.length;n<o;n++)e[n].major&&t.push(n);return t}(t):[],a=i.length,l=i[0],c=i[a-1],s=[];if(a>r)return function(e,t,n,o){let r,i=0,a=n[0];for(o=Math.ceil(o),r=0;r<e.length;r++)r===a&&(t.push(e[r]),i++,a=n[i*o])}(t,s,i,a/r),s;const u=function(e,t,n){const o=function(e){const t=e.length;let n,o;if(t<2)return!1;for(o=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==o)return!1;return o}(e),r=t.length/n;if(!o)return Math.max(r,1);const i=function(e){const t=[],n=Math.sqrt(e);let o;for(o=1;o<n;o++)e%o===0&&(t.push(o),t.push(e/o));return n===(0|n)&&t.push(n),t.sort(((e,t)=>e-t)).pop(),t}(o);for(let a=0,l=i.length-1;a<l;a++){const e=i[a];if(e>r)return e}return Math.max(r,1)}(i,t,r);if(a>0){let e,n;const o=a>1?Math.round((c-l)/(a-1)):null;for(R_(t,s,u,SC(o)?0:l-o,l),e=0,n=a-1;e<n;e++)R_(t,s,u,i[e],i[e+1]);return R_(t,s,u,c,SC(o)?t.length:c+o),s}return R_(t,s,u),s}function R_(e,t,n,o,r){const i=_C(o,0),a=Math.min(_C(r,e.length),e.length);let l,c,s,u=0;for(n=Math.ceil(n),r&&(l=r-o,n=l/Math.floor(l/n)),s=i;s<0;)u++,s=Math.round(i+u*n);for(c=Math.max(i,0);c<a;c++)c===s&&(t.push(e[c]),u++,s=Math.round(i+u*n))}FS(N_,"defaults",{}),FS(N_,"defaultRoutes",void 0);const T_=(e,t,n)=>"top"===t||"left"===t?e[t]+n:e[t]-n,j_=(e,t)=>Math.min(t||e,e);function A_(e,t){const n=[],o=e.length/t,r=e.length;let i=0;for(;i<r;i+=o)n.push(e[Math.floor(i)]);return n}function z_(e,t,n){const o=e.ticks.length,r=Math.min(t,o-1),i=e._startPixel,a=e._endPixel,l=1e-6;let c,s=e.getPixelForTick(r);if(!(n&&(c=1===o?Math.max(s-i,a-s):0===t?(e.getPixelForTick(1)-s)/2:(s-e.getPixelForTick(r-1))/2,s+=r<t?c:-c,s<i-l||s>a+l)))return s}function L_(e){return e.drawTicks?e.tickLength:0}function D_(e,t){if(!e.display)return 0;const n=hE(e.font,t),o=pE(e.padding);return(CC(e.text)?e.text.length:1)*n.lineHeight+o.height}function B_(e,t,n){let o=Sk(e);return(n&&"right"!==t||!n&&"right"===t)&&(o=(e=>"left"===e?"right":"right"===e?"left":e)(o)),o}class F_ extends N_{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,t){return e}getUserBounds(){let{_userMin:e,_userMax:t,_suggestedMin:n,_suggestedMax:o}=this;return e=OC(e,Number.POSITIVE_INFINITY),t=OC(t,Number.NEGATIVE_INFINITY),n=OC(n,Number.POSITIVE_INFINITY),o=OC(o,Number.NEGATIVE_INFINITY),{min:OC(e,n),max:OC(t,o),minDefined:EC(e),maxDefined:EC(t)}}getMinMax(e){let t,{min:n,max:o,minDefined:r,maxDefined:i}=this.getUserBounds();if(r&&i)return{min:n,max:o};const a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;l<c;++l)t=a[l].controller.getMinMax(this,e),r||(n=Math.min(n,t.min)),i||(o=Math.max(o,t.max));return n=i&&n>o?o:n,o=r&&n>o?n:o,{min:OC(n,OC(o,n)),max:OC(o,OC(n,o))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.chart.chartArea;return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){MC(this.options.beforeUpdate,[this])}update(e,t,n){const{beginAtZero:o,grace:r,ticks:i}=this.options,a=i.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(e,t,n){const{min:o,max:r}=e,i=PC(t,(r-o)/2),a=(e,t)=>n&&0===e?0:e+t;return{min:a(o,-Math.abs(i)),max:a(r,i)}}(this,r,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?A_(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),i.display&&(i.autoSkip||"auto"===i.source)&&(this.ticks=I_(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e,t,n=this.options.reverse;this.isHorizontal()?(e=this.left,t=this.right):(e=this.top,t=this.bottom,n=!n),this._startPixel=e,this._endPixel=t,this._reversePixels=n,this._length=t-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){MC(this.options.afterUpdate,[this])}beforeSetDimensions(){MC(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){MC(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),MC(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){MC(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const t=this.options.ticks;let n,o,r;for(n=0,o=e.length;n<o;n++)r=e[n],r.label=MC(t.callback,[r.value,n,e],this)}afterTickToLabelConversion(){MC(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){MC(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,t=e.ticks,n=j_(this.ticks.length,e.ticks.maxTicksLimit),o=t.minRotation||0,r=t.maxRotation;let i,a,l,c=o;if(!this._isVisible()||!t.display||o>=r||n<=1||!this.isHorizontal())return void(this.labelRotation=o);const s=this._getLabelSizes(),u=s.widest.width,d=s.highest.height,f=fk(this.chart.width-u,0,this.maxWidth);i=e.offset?this.maxWidth/n:f/(n-1),u+6>i&&(i=f/(n-(e.offset?.5:1)),a=this.maxHeight-L_(e.grid)-t.padding-D_(e.title,this.chart.options.font),l=Math.sqrt(u*u+d*d),c=ik(Math.min(Math.asin(fk((s.highest.height+6)/i,-1,1)),Math.asin(fk(a/l,-1,1))-Math.asin(fk(d/l,-1,1)))),c=Math.max(o,Math.min(r,c))),this.labelRotation=c}afterCalculateLabelRotation(){MC(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){MC(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:t,options:{ticks:n,title:o,grid:r}}=this,i=this._isVisible(),a=this.isHorizontal();if(i){const i=D_(o,t.options.font);if(a?(e.width=this.maxWidth,e.height=L_(r)+i):(e.height=this.maxHeight,e.width=L_(r)+i),n.display&&this.ticks.length){const{first:t,last:o,widest:r,highest:i}=this._getLabelSizes(),l=2*n.padding,c=rk(this.labelRotation),s=Math.cos(c),u=Math.sin(c);if(a){const t=n.mirror?0:u*r.width+s*i.height;e.height=Math.min(this.maxHeight,e.height+t+l)}else{const t=n.mirror?0:s*r.width+u*i.height;e.width=Math.min(this.maxWidth,e.width+t+l)}this._calculatePadding(t,o,u,s)}}this._handleMargins(),a?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,t,n,o){const{ticks:{align:r,padding:i},position:a}=this.options,l=0!==this.labelRotation,c="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,s=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,d=0;l?c?(u=o*e.width,d=n*t.height):(u=n*e.height,d=o*t.width):"start"===r?d=t.width:"end"===r?u=e.width:"inner"!==r&&(u=e.width/2,d=t.width/2),this.paddingLeft=Math.max((u-a+i)*this.width/(this.width-a),0),this.paddingRight=Math.max((d-s+i)*this.width/(this.width-s),0)}else{let n=t.height/2,o=e.height/2;"start"===r?(n=0,o=e.height):"end"===r&&(n=t.height,o=0),this.paddingTop=n+i,this.paddingBottom=o+i}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){MC(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:t}=this.options;return"top"===t||"bottom"===t||"x"===e}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){let t,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(e),t=0,n=e.length;t<n;t++)SC(e[t].label)&&(e.splice(t,1),n--,t--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const t=this.options.ticks.sampleSize;let n=this.ticks;t<n.length&&(n=A_(n,t)),this._labelSizes=e=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,t,n){const{ctx:o,_longestTextCache:r}=this,i=[],a=[],l=Math.floor(t/j_(t,n));let c,s,u,d,f,p,h,m,g,v,b,y=0,w=0;for(c=0;c<t;c+=l){if(d=e[c].label,f=this._resolveTickFontOptions(c),o.font=p=f.string,h=r[p]=r[p]||{data:{},gc:[]},m=f.lineHeight,g=v=0,SC(d)||CC(d)){if(CC(d))for(s=0,u=d.length;s<u;++s)b=d[s],SC(b)||CC(b)||(g=qk(o,h.data,h.gc,g,b),v+=m)}else g=qk(o,h.data,h.gc,g,d),v=m;i.push(g),a.push(v),y=Math.max(g,y),w=Math.max(v,w)}!function(e,t){NC(e,(e=>{const n=e.gc,o=n.length/2;let r;if(o>t){for(r=0;r<o;++r)delete e.data[n[r]];n.splice(0,o)}}))}(r,t);const x=i.indexOf(y),S=a.indexOf(w),C=e=>({width:i[e]||0,height:a[e]||0});return{first:C(0),last:C(t-1),widest:C(x),highest:C(S),widths:i,heights:a}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const t=this._startPixel+e*this._length;return fk(this._alignToPixels?Xk(this.chart,t,0):t,-32768,32767)}getDecimalForPixel(e){const t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){const t=this.ticks||[];if(e>=0&&e<t.length){const n=t[e];return n.$context||(n.$context=function(e,t,n){return gE(e,{tick:n,index:t,type:"tick"})}(this.getContext(),e,n))}return this.$context||(this.$context=gE(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const e=this.options.ticks,t=rk(this.labelRotation),n=Math.abs(Math.cos(t)),o=Math.abs(Math.sin(t)),r=this._getLabelSizes(),i=e.autoSkipPadding||0,a=r?r.widest.width+i:0,l=r?r.highest.height+i:0;return this.isHorizontal()?l*n>a*o?a/n:l/o:l*o<a*n?l/n:a/o}_isVisible(){const e=this.options.display;return"auto"!==e?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const t=this.axis,n=this.chart,o=this.options,{grid:r,position:i,border:a}=o,l=r.offset,c=this.isHorizontal(),s=this.ticks.length+(l?1:0),u=L_(r),d=[],f=a.setContext(this.getContext()),p=f.display?f.width:0,h=p/2,m=function(e){return Xk(n,e,p)};let g,v,b,y,w,x,S,C,k,E,O,_;if("top"===i)g=m(this.bottom),x=this.bottom-u,C=g-h,E=m(e.top)+h,_=e.bottom;else if("bottom"===i)g=m(this.top),E=e.top,_=m(e.bottom)-h,x=g+h,C=this.top+u;else if("left"===i)g=m(this.right),w=this.right-u,S=g-h,k=m(e.left)+h,O=e.right;else if("right"===i)g=m(this.left),k=e.left,O=m(e.right)-h,w=g+h,S=this.left+u;else if("x"===t){if("center"===i)g=m((e.top+e.bottom)/2+.5);else if(kC(i)){const e=Object.keys(i)[0],t=i[e];g=m(this.chart.scales[e].getPixelForValue(t))}E=e.top,_=e.bottom,x=g+h,C=x+u}else if("y"===t){if("center"===i)g=m((e.left+e.right)/2);else if(kC(i)){const e=Object.keys(i)[0],t=i[e];g=m(this.chart.scales[e].getPixelForValue(t))}w=g-h,S=w-u,k=e.left,O=e.right}const P=_C(o.ticks.maxTicksLimit,s),M=Math.max(1,Math.ceil(s/P));for(v=0;v<s;v+=M){const e=this.getContext(v),t=r.setContext(e),o=a.setContext(e),i=t.lineWidth,s=t.color,u=o.dash||[],f=o.dashOffset,p=t.tickWidth,h=t.tickColor,m=t.tickBorderDash||[],g=t.tickBorderDashOffset;b=z_(this,v,l),void 0!==b&&(y=Xk(n,b,i),c?w=S=k=O=y:x=C=E=_=y,d.push({tx1:w,ty1:x,tx2:S,ty2:C,x1:k,y1:E,x2:O,y2:_,width:i,color:s,borderDash:u,borderDashOffset:f,tickWidth:p,tickColor:h,tickBorderDash:m,tickBorderDashOffset:g}))}return this._ticksLength=s,this._borderValue=g,d}_computeLabelItems(e){const t=this.axis,n=this.options,{position:o,ticks:r}=n,i=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:c,padding:s,mirror:u}=r,d=L_(n.grid),f=d+s,p=u?-s:f,h=-rk(this.labelRotation),m=[];let g,v,b,y,w,x,S,C,k,E,O,_,P="middle";if("top"===o)x=this.bottom-p,S=this._getXAxisLabelAlignment();else if("bottom"===o)x=this.top+p,S=this._getXAxisLabelAlignment();else if("left"===o){const e=this._getYAxisLabelAlignment(d);S=e.textAlign,w=e.x}else if("right"===o){const e=this._getYAxisLabelAlignment(d);S=e.textAlign,w=e.x}else if("x"===t){if("center"===o)x=(e.top+e.bottom)/2+f;else if(kC(o)){const e=Object.keys(o)[0],t=o[e];x=this.chart.scales[e].getPixelForValue(t)+f}S=this._getXAxisLabelAlignment()}else if("y"===t){if("center"===o)w=(e.left+e.right)/2-f;else if(kC(o)){const e=Object.keys(o)[0],t=o[e];w=this.chart.scales[e].getPixelForValue(t)}S=this._getYAxisLabelAlignment(d).textAlign}"y"===t&&("start"===l?P="top":"end"===l&&(P="bottom"));const M=this._getLabelSizes();for(g=0,v=a.length;g<v;++g){b=a[g],y=b.label;const e=r.setContext(this.getContext(g));C=this.getPixelForTick(g)+r.labelOffset,k=this._resolveTickFontOptions(g),E=k.lineHeight,O=CC(y)?y.length:1;const t=O/2,n=e.color,l=e.textStrokeColor,s=e.textStrokeWidth;let d,f=S;if(i?(w=C,"inner"===S&&(f=g===v-1?this.options.reverse?"left":"right":0===g?this.options.reverse?"right":"left":"center"),_="top"===o?"near"===c||0!==h?-O*E+E/2:"center"===c?-M.highest.height/2-t*E+E:-M.highest.height+E/2:"near"===c||0!==h?E/2:"center"===c?M.highest.height/2-t*E:M.highest.height-O*E,u&&(_*=-1),0===h||e.showLabelBackdrop||(w+=E/2*Math.sin(h))):(x=C,_=(1-O)*E/2),e.showLabelBackdrop){const t=pE(e.backdropPadding),n=M.heights[g],o=M.widths[g];let r=_-t.top,i=0-t.left;switch(P){case"middle":r-=n/2;break;case"bottom":r-=n}switch(S){case"center":i-=o/2;break;case"right":i-=o;break;case"inner":g===v-1?i-=o:g>0&&(i-=o/2)}d={left:i,top:r,width:o+t.width,height:n+t.height,color:e.backdropColor}}m.push({label:y,font:k,textOffset:_,options:{rotation:h,color:n,strokeColor:l,strokeWidth:s,textAlign:f,textBaseline:P,translation:[w,x],backdrop:d}})}return m}_getXAxisLabelAlignment(){const{position:e,ticks:t}=this.options;if(-rk(this.labelRotation))return"top"===e?"left":"right";let n="center";return"start"===t.align?n="left":"end"===t.align?n="right":"inner"===t.align&&(n="inner"),n}_getYAxisLabelAlignment(e){const{position:t,ticks:{crossAlign:n,mirror:o,padding:r}}=this.options,i=e+r,a=this._getLabelSizes().widest.width;let l,c;return"left"===t?o?(c=this.right+r,"near"===n?l="left":"center"===n?(l="center",c+=a/2):(l="right",c+=a)):(c=this.right-i,"near"===n?l="right":"center"===n?(l="center",c-=a/2):(l="left",c=this.left)):"right"===t?o?(c=this.left+r,"near"===n?l="right":"center"===n?(l="center",c-=a/2):(l="left",c-=a)):(c=this.left+i,"near"===n?l="left":"center"===n?(l="center",c+=a/2):(l="right",c=this.right)):l="right",{textAlign:l,x:c}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,t=this.options.position;return"left"===t||"right"===t?{top:0,left:this.left,bottom:e.height,right:this.right}:"top"===t||"bottom"===t?{top:this.top,left:0,bottom:this.bottom,right:e.width}:void 0}drawBackground(){const{ctx:e,options:{backgroundColor:t},left:n,top:o,width:r,height:i}=this;t&&(e.save(),e.fillStyle=t,e.fillRect(n,o,r,i),e.restore())}getLineWidthForValue(e){const t=this.options.grid;if(!this._isVisible()||!t.display)return 0;const n=this.ticks.findIndex((t=>t.value===e));if(n>=0){return t.setContext(this.getContext(n)).lineWidth}return 0}drawGrid(e){const t=this.options.grid,n=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let r,i;const a=(e,t,o)=>{o.width&&o.color&&(n.save(),n.lineWidth=o.width,n.strokeStyle=o.color,n.setLineDash(o.borderDash||[]),n.lineDashOffset=o.borderDashOffset,n.beginPath(),n.moveTo(e.x,e.y),n.lineTo(t.x,t.y),n.stroke(),n.restore())};if(t.display)for(r=0,i=o.length;r<i;++r){const e=o[r];t.drawOnChartArea&&a({x:e.x1,y:e.y1},{x:e.x2,y:e.y2},e),t.drawTicks&&a({x:e.tx1,y:e.ty1},{x:e.tx2,y:e.ty2},{color:e.tickColor,width:e.tickWidth,borderDash:e.tickBorderDash,borderDashOffset:e.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:t,options:{border:n,grid:o}}=this,r=n.setContext(this.getContext()),i=n.display?r.width:0;if(!i)return;const a=o.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,s,u,d;this.isHorizontal()?(c=Xk(e,this.left,i)-i/2,s=Xk(e,this.right,a)+a/2,u=d=l):(u=Xk(e,this.top,i)-i/2,d=Xk(e,this.bottom,a)+a/2,c=s=l),t.save(),t.lineWidth=r.width,t.strokeStyle=r.color,t.beginPath(),t.moveTo(c,u),t.lineTo(s,d),t.stroke(),t.restore()}drawLabels(e){if(!this.options.ticks.display)return;const t=this.ctx,n=this._computeLabelArea();n&&Jk(t,n);const o=this.getLabelItems(e);for(const r of o){const e=r.options,n=r.font;rE(t,r.label,0,r.textOffset,n,e)}n&&Zk(t)}drawTitle(){const{ctx:e,options:{position:t,title:n,reverse:o}}=this;if(!n.display)return;const r=hE(n.font),i=pE(n.padding),a=n.align;let l=r.lineHeight/2;"bottom"===t||"center"===t||kC(t)?(l+=i.bottom,CC(n.text)&&(l+=r.lineHeight*(n.text.length-1))):l+=i.top;const{titleX:c,titleY:s,maxWidth:u,rotation:d}=function(e,t,n,o){const{top:r,left:i,bottom:a,right:l,chart:c}=e,{chartArea:s,scales:u}=c;let d,f,p,h=0;const m=a-r,g=l-i;if(e.isHorizontal()){if(f=Ck(o,i,l),kC(n)){const e=Object.keys(n)[0],o=n[e];p=u[e].getPixelForValue(o)+m-t}else p="center"===n?(s.bottom+s.top)/2+m-t:T_(e,n,t);d=l-i}else{if(kC(n)){const e=Object.keys(n)[0],o=n[e];f=u[e].getPixelForValue(o)-g+t}else f="center"===n?(s.left+s.right)/2-g+t:T_(e,n,t);p=Ck(o,a,r),h="left"===n?-$C:$C}return{titleX:f,titleY:p,maxWidth:d,rotation:h}}(this,l,t,a);rE(e,n.text,0,0,r,{color:n.color,maxWidth:u,rotation:d,textAlign:B_(a,t,o),textBaseline:"middle",translation:[c,s]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,t=e.ticks&&e.ticks.z||0,n=_C(e.grid&&e.grid.z,-1),o=_C(e.border&&e.border.z,0);return this._isVisible()&&this.draw===F_.prototype.draw?[{z:n,draw:e=>{this.drawBackground(),this.drawGrid(e),this.drawTitle()}},{z:o,draw:()=>{this.drawBorder()}},{z:t,draw:e=>{this.drawLabels(e)}}]:[{z:t,draw:e=>{this.draw(e)}}]}getMatchingVisibleMetas(e){const t=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",o=[];let r,i;for(r=0,i=t.length;r<i;++r){const i=t[r];i[n]!==this.id||e&&i.type!==e||o.push(i)}return o}_resolveTickFontOptions(e){return hE(this.options.ticks.setContext(this.getContext(e)).font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class H_{constructor(e,t,n){this.type=e,this.scope=t,this.override=n,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const t=Object.getPrototypeOf(e);let n;(function(e){return"id"in e&&"defaults"in e})(t)&&(n=this.register(t));const o=this.items,r=e.id,i=this.scope+"."+r;if(!r)throw new Error("class does not have id: "+e);return r in o||(o[r]=e,function(e,t,n){const o=AC(Object.create(null),[n?Kk.get(n):{},Kk.get(t),e.defaults]);Kk.set(t,o),e.defaultRoutes&&function(e,t){Object.keys(t).forEach((n=>{const o=n.split("."),r=o.pop(),i=[e].concat(o).join("."),a=t[n].split("."),l=a.pop(),c=a.join(".");Kk.route(i,r,c,l)}))}(t,e.defaultRoutes);e.descriptors&&Kk.describe(t,e.descriptors)}(e,i,n),this.override&&Kk.override(e.id,e.overrides)),i}get(e){return this.items[e]}unregister(e){const t=this.items,n=e.id,o=this.scope;n in t&&delete t[n],o&&n in Kk[o]&&(delete Kk[o][n],this.override&&delete Bk[n])}}class W_{constructor(){this.controllers=new H_(_O,"datasets",!0),this.elements=new H_(N_,"elements"),this.plugins=new H_(Object,"plugins"),this.scales=new H_(F_,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t)}remove(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t)}addControllers(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.controllers)}addElements(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.elements)}addPlugins(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.plugins)}addScales(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.controllers)}removeElements(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.elements)}removePlugins(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.plugins)}removeScales(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.scales)}_each(e,t,n){[...t].forEach((t=>{const o=n||this._getRegistryForType(t);n||o.isForType(t)||o===this.plugins&&t.id?this._exec(e,o,t):NC(t,(t=>{const o=n||this._getRegistryForType(t);this._exec(e,o,t)}))}))}_exec(e,t,n){const o=FC(e);MC(n["before"+o],[],n),t[e](n),MC(n["after"+o],[],n)}_getRegistryForType(e){for(let t=0;t<this._typedRegistries.length;t++){const n=this._typedRegistries[t];if(n.isForType(e))return n}return this.plugins}_get(e,t,n){const o=t.get(e);if(void 0===o)throw new Error('"'+e+'" is not a registered '+n+".");return o}}var V_=new W_;class K_{constructor(){this._init=[]}notify(e,t,n,o){"beforeInit"===t&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const r=o?this._descriptors(e).filter(o):this._descriptors(e),i=this._notify(r,e,t,n);return"afterDestroy"===t&&(this._notify(r,e,"stop"),this._notify(this._init,e,"uninstall")),i}_notify(e,t,n,o){o=o||{};for(const r of e){const e=r.plugin;if(!1===MC(e[n],[t,o,r.options],e)&&o.cancelable)return!1}return!0}invalidate(){SC(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}_createDescriptors(e,t){const n=e&&e.config,o=_C(n.options&&n.options.plugins,{}),r=function(e){const t={},n=[],o=Object.keys(V_.plugins.items);for(let i=0;i<o.length;i++)n.push(V_.getPlugin(o[i]));const r=e.plugins||[];for(let i=0;i<r.length;i++){const e=r[i];-1===n.indexOf(e)&&(n.push(e),t[e.id]=!0)}return{plugins:n,localIds:t}}(n);return!1!==o||t?function(e,t,n,o){let{plugins:r,localIds:i}=t;const a=[],l=e.getContext();for(const c of r){const t=c.id,r=q_(n[t],o);null!==r&&a.push({plugin:c,options:U_(e.config,{plugin:c,local:i[t]},r,l)})}return a}(e,r,o,t):[]}_notifyStateChanges(e){const t=this._oldCache||[],n=this._cache,o=(e,t)=>e.filter((e=>!t.some((t=>e.plugin.id===t.plugin.id))));this._notify(o(t,n),e,"stop"),this._notify(o(n,t),e,"start")}}function q_(e,t){return t||!1!==e?!0===e?{}:e:null}function U_(e,t,n,o){let{plugin:r,local:i}=t;const a=e.pluginScopeKeys(r),l=e.getOptionScopes(n,a);return i&&r.defaults&&l.push(r.defaults),e.createResolver(l,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function X_(e,t){const n=Kk.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function G_(e){if("x"===e||"y"===e||"r"===e)return e}function $_(e){return"top"===e||"bottom"===e?"x":"left"===e||"right"===e?"y":void 0}function Y_(e){if(G_(e))return e;for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];for(const r of n){const t=r.axis||$_(r.position)||e.length>1&&G_(e[0].toLowerCase());if(t)return t}throw new Error("Cannot determine type of '".concat(e,"' axis. Please provide 'axis' or 'position' option."))}function Q_(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function J_(e,t){const n=Bk[e.type]||{scales:{}},o=t.scales||{},r=X_(e.type,t),i=Object.create(null);return Object.keys(o).forEach((t=>{const a=o[t];if(!kC(a))return console.error("Invalid scale configuration for scale: ".concat(t));if(a._proxy)return console.warn("Ignoring resolver passed as options for scale: ".concat(t));const l=Y_(t,a,function(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter((t=>t.xAxisID===e||t.yAxisID===e));if(n.length)return Q_(e,"x",n[0])||Q_(e,"y",n[0])}return{}}(t,e),Kk.scales[a.type]),c=function(e,t){return e===t?"_index_":"_value_"}(l,r),s=n.scales||{};i[t]=zC(Object.create(null),[{axis:l},a,s[l],s[c]])})),e.data.datasets.forEach((n=>{const r=n.type||e.type,a=n.indexAxis||X_(r,t),l=(Bk[r]||{}).scales||{};Object.keys(l).forEach((e=>{const t=function(e,t){let n=e;return"_index_"===e?n=t:"_value_"===e&&(n="x"===t?"y":"x"),n}(e,a),r=n[t+"AxisID"]||t;i[r]=i[r]||Object.create(null),zC(i[r],[{axis:t},o[r],l[e]])}))})),Object.keys(i).forEach((e=>{const t=i[e];zC(t,[Kk.scales[t.type],Kk.scale])})),i}function Z_(e){const t=e.options||(e.options={});t.plugins=_C(t.plugins,{}),t.scales=J_(e,t)}function eP(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}const tP=new Map,nP=new Set;function oP(e,t){let n=tP.get(e);return n||(n=t(),tP.set(e,n),nP.add(n)),n}const rP=(e,t,n)=>{const o=BC(t,n);void 0!==o&&e.add(o)};class iP{constructor(e){this._config=function(e){return(e=e||{}).data=eP(e.data),Z_(e),e}(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=eP(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),Z_(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return oP(e,(()=>[["datasets.".concat(e),""]]))}datasetAnimationScopeKeys(e,t){return oP("".concat(e,".transition.").concat(t),(()=>[["datasets.".concat(e,".transitions.").concat(t),"transitions.".concat(t)],["datasets.".concat(e),""]]))}datasetElementScopeKeys(e,t){return oP("".concat(e,"-").concat(t),(()=>[["datasets.".concat(e,".elements.").concat(t),"datasets.".concat(e),"elements.".concat(t),""]]))}pluginScopeKeys(e){const t=e.id,n=this.type;return oP("".concat(n,"-plugin-").concat(t),(()=>[["plugins.".concat(t),...e.additionalOptionScopes||[]]]))}_cachedScopes(e,t){const n=this._scopeCache;let o=n.get(e);return o&&!t||(o=new Map,n.set(e,o)),o}getOptionScopes(e,t,n){const{options:o,type:r}=this,i=this._cachedScopes(e,n),a=i.get(t);if(a)return a;const l=new Set;t.forEach((t=>{e&&(l.add(e),t.forEach((t=>rP(l,e,t)))),t.forEach((e=>rP(l,o,e))),t.forEach((e=>rP(l,Bk[r]||{},e))),t.forEach((e=>rP(l,Kk,e))),t.forEach((e=>rP(l,Fk,e)))}));const c=Array.from(l);return 0===c.length&&c.push(Object.create(null)),nP.has(t)&&i.set(t,c),c}chartOptionScopes(){const{options:e,type:t}=this;return[e,Bk[t]||{},Kk.datasets[t]||{},{type:t},Kk,Fk]}resolveNamedOptions(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[""];const r={$shared:!0},{resolver:i,subPrefixes:a}=aP(this._resolverCache,e,o);let l=i;if(function(e,t){const{isScriptable:n,isIndexable:o}=yE(e);for(const r of t){const t=n(r),i=o(r),a=(i||t)&&e[r];if(t&&(WC(a)||lP(a))||i&&CC(a))return!0}return!1}(i,t)){r.$shared=!1;l=bE(i,n=WC(n)?n():n,this.createResolver(e,n,a))}for(const c of t)r[c]=l[c];return r}createResolver(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[""],o=arguments.length>3?arguments[3]:void 0;const{resolver:r}=aP(this._resolverCache,e,n);return kC(t)?bE(r,t,void 0,o):r}}function aP(e,t,n){let o=e.get(t);o||(o=new Map,e.set(t,o));const r=n.join();let i=o.get(r);if(!i){i={resolver:vE(t,n),subPrefixes:n.filter((e=>!e.toLowerCase().includes("hover")))},o.set(r,i)}return i}const lP=e=>kC(e)&&Object.getOwnPropertyNames(e).some((t=>WC(e[t])));const cP=["top","bottom","left","right","chartArea"];function sP(e,t){return"top"===e||"bottom"===e||-1===cP.indexOf(e)&&"x"===t}function uP(e,t){return function(n,o){return n[e]===o[e]?n[t]-o[t]:n[e]-o[e]}}function dP(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),MC(n&&n.onComplete,[e],t)}function fP(e){const t=e.chart,n=t.options.animation;MC(n&&n.onProgress,[e],t)}function pP(e){return DE()&&"string"===typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const hP={},mP=e=>{const t=pP(e);return Object.values(hP).filter((e=>e.canvas===t)).pop()};function gP(e,t,n){const o=Object.keys(e);for(const r of o){const o=+r;if(o>=t){const i=e[r];delete e[r],(n>0||o>t)&&(e[o+n]=i)}}}function vP(e,t,n){return e.options.clip?e[n]:t[n]}class bP{static register(){V_.add(...arguments),yP()}static unregister(){V_.remove(...arguments),yP()}constructor(e,t){const n=this.config=new iP(t),o=pP(e),r=mP(o);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");const i=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(e){return!DE()||"undefined"!==typeof OffscreenCanvas&&e instanceof OffscreenCanvas?h_:M_}(o)),this.platform.updateConfig(n);const a=this.platform.acquireContext(o,i.aspectRatio),l=a&&a.canvas,c=l&&l.height,s=l&&l.width;this.id=xC(),this.ctx=a,this.canvas=l,this.width=s,this.height=c,this._options=i,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new K_,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(e,t){let n;return function(){for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}((e=>this.update(e)),i.resizeDelay||0),this._dataChanges=[],hP[this.id]=this,a&&l?(dO.listen(this,"complete",dP),dO.listen(this,"progress",fP),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:t},width:n,height:o,_aspectRatio:r}=this;return SC(e)?t&&r?r:o?n/o:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return V_}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():GE(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Gk(this.canvas,this.ctx),this}stop(){return dO.stop(this),this}resize(e,t){dO.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){const n=this.options,o=this.canvas,r=n.maintainAspectRatio&&this.aspectRatio,i=this.platform.getMaximumSize(o,e,t,r),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=i.width,this.height=i.height,this._aspectRatio=this.aspectRatio,GE(this,a,!0)&&(this.notifyPlugins("resize",{size:i}),MC(n.onResize,[this,i],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){NC(this.options.scales||{},((e,t)=>{e.id=t}))}buildOrUpdateScales(){const e=this.options,t=e.scales,n=this.scales,o=Object.keys(n).reduce(((e,t)=>(e[t]=!1,e)),{});let r=[];t&&(r=r.concat(Object.keys(t).map((e=>{const n=t[e],o=Y_(e,n),r="r"===o,i="x"===o;return{options:n,dposition:r?"chartArea":i?"bottom":"left",dtype:r?"radialLinear":i?"category":"linear"}})))),NC(r,(t=>{const r=t.options,i=r.id,a=Y_(i,r),l=_C(r.type,t.dtype);void 0!==r.position&&sP(r.position,a)===sP(t.dposition)||(r.position=t.dposition),o[i]=!0;let c=null;if(i in n&&n[i].type===l)c=n[i];else{c=new(V_.getScale(l))({id:i,type:l,ctx:this.ctx,chart:this}),n[c.id]=c}c.init(r,e)})),NC(o,((e,t)=>{e||delete n[t]})),NC(n,(e=>{f_.configure(this,e,e.options),f_.addBox(this,e)}))}_updateMetasets(){const e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort(((e,t)=>e.index-t.index)),n>t){for(let e=t;e<n;++e)this._destroyDatasetMeta(e);e.splice(t,n-t)}this._sortedMetasets=e.slice(0).sort(uP("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:t}}=this;e.length>t.length&&delete this._stacks,e.forEach(((e,n)=>{0===t.filter((t=>t===e._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const e=[],t=this.data.datasets;let n,o;for(this._removeUnreferencedMetasets(),n=0,o=t.length;n<o;n++){const o=t[n];let r=this.getDatasetMeta(n);const i=o.type||this.config.type;if(r.type&&r.type!==i&&(this._destroyDatasetMeta(n),r=this.getDatasetMeta(n)),r.type=i,r.indexAxis=o.indexAxis||X_(i,this.options),r.order=o.order||0,r.index=n,r.label=""+o.label,r.visible=this.isDatasetVisible(n),r.controller)r.controller.updateIndex(n),r.controller.linkScales();else{const t=V_.getController(i),{datasetElementType:o,dataElementType:a}=Kk.datasets[i];Object.assign(t,{dataElementType:V_.getElement(a),datasetElementType:o&&V_.getElement(o)}),r.controller=new t(this,n),e.push(r.controller)}}return this._updateMetasets(),e}_resetElements(){NC(this.data.datasets,((e,t)=>{this.getDatasetMeta(t).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const t=this.config;t.update();const n=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0}))return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let i=0;for(let c=0,s=this.data.datasets.length;c<s;c++){const{controller:e}=this.getDatasetMeta(c),t=!o&&-1===r.indexOf(e);e.buildOrUpdateElements(t),i=Math.max(+e.getMaxOverflow(),i)}i=this._minPadding=n.layout.autoPadding?i:0,this._updateLayout(i),o||NC(r,(e=>{e.reset()})),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(uP("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){NC(this.scales,(e=>{f_.removeBox(this,e)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,t=new Set(Object.keys(this._listeners)),n=new Set(e.events);VC(t,n)&&!!this._responsiveListeners===e.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(const{method:n,start:o,count:r}of t){gP(e,o,"_removeElements"===n?-r:r)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const t=this.data.datasets.length,n=t=>new Set(e.filter((e=>e[0]===t)).map(((e,t)=>t+","+e.splice(1).join(",")))),o=n(0);for(let r=1;r<t;r++)if(!VC(o,n(r)))return;return Array.from(o).map((e=>e.split(","))).map((e=>({method:e[1],start:+e[2],count:+e[3]})))}_updateLayout(e){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;f_.update(this,this.width,this.height,e);const t=this.chartArea,n=t.width<=0||t.height<=0;this._layers=[],NC(this.boxes,(e=>{n&&"chartArea"===e.position||(e.configure&&e.configure(),this._layers.push(...e._layers()))}),this),this._layers.forEach(((e,t)=>{e._idx=t})),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(let e=0,t=this.data.datasets.length;e<t;++e)this.getDatasetMeta(e).controller.configure();for(let t=0,n=this.data.datasets.length;t<n;++t)this._updateDataset(t,WC(e)?e({datasetIndex:t}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,t){const n=this.getDatasetMeta(e),o={meta:n,index:e,mode:t,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",o)&&(n.controller._update(t),o.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",o))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(dO.has(this)?this.attached&&!dO.running(this)&&dO.start(this):(this.draw(),dP({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:e,height:t}=this._resizeBeforeDraw;this._resize(e,t),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const t=this._layers;for(e=0;e<t.length&&t[e].z<=0;++e)t[e].draw(this.chartArea);for(this._drawDatasets();e<t.length;++e)t[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const t=this._sortedMetasets,n=[];let o,r;for(o=0,r=t.length;o<r;++o){const r=t[o];e&&!r.visible||n.push(r)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const e=this.getSortedVisibleDatasetMetas();for(let t=e.length-1;t>=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const t=this.ctx,n=e._clip,o=!n.disabled,r=function(e,t){const{xScale:n,yScale:o}=e;return n&&o?{left:vP(n,t,"left"),right:vP(n,t,"right"),top:vP(o,t,"top"),bottom:vP(o,t,"bottom")}:t}(e,this.chartArea),i={meta:e,index:e.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",i)&&(o&&Jk(t,{left:!1===n.left?0:r.left-n.left,right:!1===n.right?this.width:r.right+n.right,top:!1===n.top?0:r.top-n.top,bottom:!1===n.bottom?this.height:r.bottom+n.bottom}),e.controller.draw(),o&&Zk(t),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(e){return Qk(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,n,o){const r=ZO.modes[t];return"function"===typeof r?r(this,e,n,o):[]}getDatasetMeta(e){const t=this.data.datasets[e],n=this._metasets;let o=n.filter((e=>e&&e._dataset===t)).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(o)),o}getContext(){return this.$context||(this.$context=gE(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const t=this.data.datasets[e];if(!t)return!1;const n=this.getDatasetMeta(e);return"boolean"===typeof n.hidden?!n.hidden:!t.hidden}setDatasetVisibility(e,t){this.getDatasetMeta(e).hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,n){const o=n?"show":"hide",r=this.getDatasetMeta(e),i=r.controller._resolveAnimations(void 0,o);HC(t)?(r.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),i.update(r,{visible:n}),this.update((t=>t.datasetIndex===e?o:void 0)))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){const t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),dO.remove(this),e=0,t=this.data.datasets.length;e<t;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:t}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),Gk(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),delete hP[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(){return this.canvas.toDataURL(...arguments)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,t=this.platform,n=(n,o)=>{t.addEventListener(this,n,o),e[n]=o},o=(e,t,n)=>{e.offsetX=t,e.offsetY=n,this._eventHandler(e)};NC(this.options.events,(e=>n(e,o)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,t=this.platform,n=(n,o)=>{t.addEventListener(this,n,o),e[n]=o},o=(n,o)=>{e[n]&&(t.removeEventListener(this,n,o),delete e[n])},r=(e,t)=>{this.canvas&&this.resize(e,t)};let i;const a=()=>{o("attach",a),this.attached=!0,this.resize(),n("resize",r),n("detach",i)};i=()=>{this.attached=!1,o("resize",r),this._stop(),this._resize(0,0),n("attach",a)},t.isAttached(this.canvas)?a():i()}unbindEvents(){NC(this._listeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._listeners={},NC(this._responsiveListeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._responsiveListeners=void 0}updateHoverStyle(e,t,n){const o=n?"set":"remove";let r,i,a,l;for("dataset"===t&&(r=this.getDatasetMeta(e[0].datasetIndex),r.controller["_"+o+"DatasetHoverStyle"]()),a=0,l=e.length;a<l;++a){i=e[a];const t=i&&this.getDatasetMeta(i.datasetIndex).controller;t&&t[o+"HoverStyle"](i.element,i.datasetIndex,i.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const t=this._active||[],n=e.map((e=>{let{datasetIndex:t,index:n}=e;const o=this.getDatasetMeta(t);if(!o)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:o.data[n],index:n}}));!IC(n,t)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,t))}notifyPlugins(e,t,n){return this._plugins.notify(this,e,t,n)}isPluginEnabled(e){return 1===this._plugins._cache.filter((t=>t.plugin.id===e)).length}_updateHoverStyles(e,t,n){const o=this.options.hover,r=(e,t)=>e.filter((e=>!t.some((t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)))),i=r(t,e),a=n?e:r(e,t);i.length&&this.updateHoverStyle(i,o.mode,!1),a.length&&o.mode&&this.updateHoverStyle(a,o.mode,!0)}_eventHandler(e,t){const n={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},o=t=>(t.options.events||this.options.events).includes(e.native.type);if(!1===this.notifyPlugins("beforeEvent",n,o))return;const r=this._handleEvent(e,t,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,o),(r||n.changed)&&this.render(),this}_handleEvent(e,t,n){const{_active:o=[],options:r}=this,i=t,a=this._getActiveElements(e,o,n,i),l=function(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}(e),c=function(e,t,n,o){return n&&"mouseout"!==e.type?o?t:e:null}(e,this._lastEvent,n,l);n&&(this._lastEvent=null,MC(r.onHover,[e,a,this],this),l&&MC(r.onClick,[e,a,this],this));const s=!IC(a,o);return(s||t)&&(this._active=a,this._updateHoverStyles(a,o,t)),this._lastEvent=c,s}_getActiveElements(e,t,n,o){if("mouseout"===e.type)return[];if(!n)return t;const r=this.options.hover;return this.getElementsAtEventForMode(e,r.mode,r,o)}}function yP(){return NC(bP.instances,(e=>e._plugins.invalidate()))}function wP(e,t,n,o){const r=uE(e.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const i=(n-t)/2,a=Math.min(i,o*t/2),l=e=>{const t=(n-Math.min(i,e))*o/2;return fk(e,0,Math.min(i,t))};return{outerStart:l(r.outerStart),outerEnd:l(r.outerEnd),innerStart:fk(r.innerStart,0,a),innerEnd:fk(r.innerEnd,0,a)}}function xP(e,t,n,o){return{x:n+e*Math.cos(t),y:o+e*Math.sin(t)}}function SP(e,t,n,o,r,i){const{x:a,y:l,startAngle:c,pixelMargin:s,innerRadius:u}=t,d=Math.max(t.outerRadius+o+n-s,0),f=u>0?u+o+n+s:0;let p=0;const h=r-c;if(o){const e=((u>0?u-o:0)+(d>0?d-o:0))/2;p=(h-(0!==e?h*e/(e+o):h))/2}const m=(h-Math.max(.001,h*d-n/KC)/d)/2,g=c+m+p,v=r-m-p,{outerStart:b,outerEnd:y,innerStart:w,innerEnd:x}=wP(t,f,d,v-g),S=d-b,C=d-y,k=g+b/S,E=v-y/C,O=f+w,_=f+x,P=g+w/O,M=v-x/_;if(e.beginPath(),i){const t=(k+E)/2;if(e.arc(a,l,d,k,t),e.arc(a,l,d,t,E),y>0){const t=xP(C,E,a,l);e.arc(t.x,t.y,y,E,v+$C)}const n=xP(_,v,a,l);if(e.lineTo(n.x,n.y),x>0){const t=xP(_,M,a,l);e.arc(t.x,t.y,x,v+$C,M+Math.PI)}const o=(v-x/f+(g+w/f))/2;if(e.arc(a,l,f,v-x/f,o,!0),e.arc(a,l,f,o,g+w/f,!0),w>0){const t=xP(O,P,a,l);e.arc(t.x,t.y,w,P+Math.PI,g-$C)}const r=xP(S,g,a,l);if(e.lineTo(r.x,r.y),b>0){const t=xP(S,k,a,l);e.arc(t.x,t.y,b,g-$C,k)}}else{e.moveTo(a,l);const t=Math.cos(k)*d+a,n=Math.sin(k)*d+l;e.lineTo(t,n);const o=Math.cos(E)*d+a,r=Math.sin(E)*d+l;e.lineTo(o,r)}e.closePath()}function CP(e,t,n,o,r){const{fullCircles:i,startAngle:a,circumference:l,options:c}=t,{borderWidth:s,borderJoinStyle:u,borderDash:d,borderDashOffset:f}=c,p="inner"===c.borderAlign;if(!s)return;e.setLineDash(d||[]),e.lineDashOffset=f,p?(e.lineWidth=2*s,e.lineJoin=u||"round"):(e.lineWidth=s,e.lineJoin=u||"bevel");let h=t.endAngle;if(i){SP(e,t,n,o,h,r);for(let t=0;t<i;++t)e.stroke();isNaN(l)||(h=a+(l%qC||qC))}p&&function(e,t,n){const{startAngle:o,pixelMargin:r,x:i,y:a,outerRadius:l,innerRadius:c}=t;let s=r/l;e.beginPath(),e.arc(i,a,l,o-s,n+s),c>r?(s=r/c,e.arc(i,a,c,n+s,o-s,!0)):e.arc(i,a,r,n+$C,o-$C),e.closePath(),e.clip()}(e,t,h),i||(SP(e,t,n,o,h,r),e.stroke())}FS(bP,"defaults",Kk),FS(bP,"instances",hP),FS(bP,"overrides",Bk),FS(bP,"registry",V_),FS(bP,"version","4.4.2"),FS(bP,"getChart",mP);class kP extends N_{constructor(e){super(),FS(this,"circumference",void 0),FS(this,"endAngle",void 0),FS(this,"fullCircles",void 0),FS(this,"innerRadius",void 0),FS(this,"outerRadius",void 0),FS(this,"pixelMargin",void 0),FS(this,"startAngle",void 0),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,t,n){const o=this.getProps(["x","y"],n),{angle:r,distance:i}=lk(o,{x:e,y:t}),{startAngle:a,endAngle:l,innerRadius:c,outerRadius:s,circumference:u}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),d=(this.options.spacing+this.options.borderWidth)/2,f=_C(u,l-a)>=qC||dk(r,a,l),p=pk(i,c+d,s+d);return f&&p}getCenterPoint(e){const{x:t,y:n,startAngle:o,endAngle:r,innerRadius:i,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],e),{offset:l,spacing:c}=this.options,s=(o+r)/2,u=(i+a+c+l)/2;return{x:t+Math.cos(s)*u,y:n+Math.sin(s)*u}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:t,circumference:n}=this,o=(t.offset||0)/4,r=(t.spacing||0)/2,i=t.circular;if(this.pixelMargin="inner"===t.borderAlign?.33:0,this.fullCircles=n>qC?Math.floor(n/qC):0,0===n||this.innerRadius<0||this.outerRadius<0)return;e.save();const a=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(a)*o,Math.sin(a)*o);const l=o*(1-Math.sin(Math.min(KC,n||0)));e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor,function(e,t,n,o,r){const{fullCircles:i,startAngle:a,circumference:l}=t;let c=t.endAngle;if(i){SP(e,t,n,o,c,r);for(let t=0;t<i;++t)e.fill();isNaN(l)||(c=a+(l%qC||qC))}SP(e,t,n,o,c,r),e.fill()}(e,this,l,r,i),CP(e,this,l,r,i),e.restore()}}function EP(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;e.lineCap=_C(n.borderCapStyle,t.borderCapStyle),e.setLineDash(_C(n.borderDash,t.borderDash)),e.lineDashOffset=_C(n.borderDashOffset,t.borderDashOffset),e.lineJoin=_C(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=_C(n.borderWidth,t.borderWidth),e.strokeStyle=_C(n.borderColor,t.borderColor)}function OP(e,t,n){e.lineTo(n.x,n.y)}function _P(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=e.length,{start:r=0,end:i=o-1}=n,{start:a,end:l}=t,c=Math.max(r,a),s=Math.min(i,l),u=r<a&&i<a||r>l&&i>l;return{count:o,start:c,loop:t.loop,ilen:s<c&&!u?o+s-c:s-c}}function PP(e,t,n,o){const{points:r,options:i}=t,{count:a,start:l,loop:c,ilen:s}=_P(r,n,o),u=function(e){return e.stepped?eE:e.tension||"monotone"===e.cubicInterpolationMode?tE:OP}(i);let d,f,p,{move:h=!0,reverse:m}=o||{};for(d=0;d<=s;++d)f=r[(l+(m?s-d:d))%a],f.skip||(h?(e.moveTo(f.x,f.y),h=!1):u(e,p,f,m,i.stepped),p=f);return c&&(f=r[(l+(m?s:0))%a],u(e,p,f,m,i.stepped)),!!c}function MP(e,t,n,o){const r=t.points,{count:i,start:a,ilen:l}=_P(r,n,o),{move:c=!0,reverse:s}=o||{};let u,d,f,p,h,m,g=0,v=0;const b=e=>(a+(s?l-e:e))%i,y=()=>{p!==h&&(e.lineTo(g,h),e.lineTo(g,p),e.lineTo(g,m))};for(c&&(d=r[b(0)],e.moveTo(d.x,d.y)),u=0;u<=l;++u){if(d=r[b(u)],d.skip)continue;const t=d.x,n=d.y,o=0|t;o===f?(n<p?p=n:n>h&&(h=n),g=(v*g+t)/++v):(y(),e.lineTo(t,n),f=o,v=0,p=h=n),m=n}y()}function NP(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&"monotone"!==t.cubicInterpolationMode&&!t.stepped&&!n?MP:PP}FS(kP,"id","arc"),FS(kP,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),FS(kP,"defaultRoutes",{backgroundColor:"backgroundColor"}),FS(kP,"descriptors",{_scriptable:!0,_indexable:e=>"borderDash"!==e});const IP="function"===typeof Path2D;function RP(e,t,n,o){IP&&!t.options.segment?function(e,t,n,o){let r=t._path;r||(r=t._path=new Path2D,t.path(r,n,o)&&r.closePath()),EP(e,t.options),e.stroke(r)}(e,t,n,o):function(e,t,n,o){const{segments:r,options:i}=t,a=NP(t);for(const l of r)EP(e,i,l.style),e.beginPath(),a(e,t,l,{start:n,end:n+o-1})&&e.closePath(),e.stroke()}(e,t,n,o)}class TP extends N_{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,t){const n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const o=n.spanGaps?this._loop:this._fullLoop;LE(this._points,n,e,o,t),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(e,t){const n=e.points,o=e.options.spanGaps,r=n.length;if(!r)return[];const i=!!e._loop,{start:a,end:l}=function(e,t,n,o){let r=0,i=t-1;if(n&&!o)for(;r<t&&!e[r].skip;)r++;for(;r<t&&e[r].skip;)r++;for(r%=t,n&&(i+=r);i>r&&e[i%t].skip;)i--;return i%=t,{start:r,end:i}}(n,r,i,o);return lO(e,!0===o?[{start:a,end:l,loop:i}]:function(e,t,n,o){const r=e.length,i=[];let a,l=t,c=e[t];for(a=t+1;a<=n;++a){const n=e[a%r];n.skip||n.stop?c.skip||(o=!1,i.push({start:t%r,end:(a-1)%r,loop:o}),t=l=n.stop?a:null):(l=a,c.skip&&(t=a)),c=n}return null!==l&&i.push({start:t%r,end:l%r,loop:o}),i}(n,a,l<a?l+r:l,!!e._fullLoop&&0===a&&l===r-1),n,t)}(this,this.options.segment))}first(){const e=this.segments,t=this.points;return e.length&&t[e[0].start]}last(){const e=this.segments,t=this.points,n=e.length;return n&&t[e[n-1].end]}interpolate(e,t){const n=this.options,o=e[t],r=this.points,i=aO(this,{property:t,start:o,end:o});if(!i.length)return;const a=[],l=function(e){return e.stepped?JE:e.tension||"monotone"===e.cubicInterpolationMode?ZE:QE}(n);let c,s;for(c=0,s=i.length;c<s;++c){const{start:s,end:u}=i[c],d=r[s],f=r[u];if(d===f){a.push(d);continue}const p=l(d,f,Math.abs((o-d[t])/(f[t]-d[t])),n.stepped);p[t]=e[t],a.push(p)}return 1===a.length?a[0]:a}pathSegment(e,t,n){return NP(this)(e,this,t,n)}path(e,t,n){const o=this.segments,r=NP(this);let i=this._loop;t=t||0,n=n||this.points.length-t;for(const a of o)i&=r(e,this,a,{start:t,end:t+n-1});return!!i}draw(e,t,n,o){const r=this.options||{};(this.points||[]).length&&r.borderWidth&&(e.save(),RP(e,this,n,o),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function jP(e,t,n,o){const r=e.options,{[n]:i}=e.getProps([n],o);return Math.abs(t-i)<r.radius+r.hitRadius}FS(TP,"id","line"),FS(TP,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),FS(TP,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),FS(TP,"descriptors",{_scriptable:!0,_indexable:e=>"borderDash"!==e&&"fill"!==e});class AP extends N_{constructor(e){super(),FS(this,"parsed",void 0),FS(this,"skip",void 0),FS(this,"stop",void 0),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,t,n){const o=this.options,{x:r,y:i}=this.getProps(["x","y"],n);return Math.pow(e-r,2)+Math.pow(t-i,2)<Math.pow(o.hitRadius+o.radius,2)}inXRange(e,t){return jP(this,e,"x",t)}inYRange(e,t){return jP(this,e,"y",t)}getCenterPoint(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}size(e){let t=(e=e||this.options||{}).radius||0;t=Math.max(t,t&&e.hoverRadius||0);return 2*(t+(t&&e.borderWidth||0))}draw(e,t){const n=this.options;this.skip||n.radius<.1||!Qk(this,t,this.size(n)/2)||(e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.fillStyle=n.backgroundColor,$k(e,n,this.x,this.y))}getRange(){const e=this.options||{};return e.radius+e.hitRadius}}function zP(e,t){const{x:n,y:o,base:r,width:i,height:a}=e.getProps(["x","y","base","width","height"],t);let l,c,s,u,d;return e.horizontal?(d=a/2,l=Math.min(n,r),c=Math.max(n,r),s=o-d,u=o+d):(d=i/2,l=n-d,c=n+d,s=Math.min(o,r),u=Math.max(o,r)),{left:l,top:s,right:c,bottom:u}}function LP(e,t,n,o){return e?0:fk(t,n,o)}function DP(e){const t=zP(e),n=t.right-t.left,o=t.bottom-t.top,r=function(e,t,n){const o=e.options.borderWidth,r=e.borderSkipped,i=dE(o);return{t:LP(r.top,i.top,0,n),r:LP(r.right,i.right,0,t),b:LP(r.bottom,i.bottom,0,n),l:LP(r.left,i.left,0,t)}}(e,n/2,o/2),i=function(e,t,n){const{enableBorderRadius:o}=e.getProps(["enableBorderRadius"]),r=e.options.borderRadius,i=fE(r),a=Math.min(t,n),l=e.borderSkipped,c=o||kC(r);return{topLeft:LP(!c||l.top||l.left,i.topLeft,0,a),topRight:LP(!c||l.top||l.right,i.topRight,0,a),bottomLeft:LP(!c||l.bottom||l.left,i.bottomLeft,0,a),bottomRight:LP(!c||l.bottom||l.right,i.bottomRight,0,a)}}(e,n/2,o/2);return{outer:{x:t.left,y:t.top,w:n,h:o,radius:i},inner:{x:t.left+r.l,y:t.top+r.t,w:n-r.l-r.r,h:o-r.t-r.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(r.t,r.l)),topRight:Math.max(0,i.topRight-Math.max(r.t,r.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(r.b,r.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(r.b,r.r))}}}}function BP(e,t,n,o){const r=null===t,i=null===n,a=e&&!(r&&i)&&zP(e,o);return a&&(r||pk(t,a.left,a.right))&&(i||pk(n,a.top,a.bottom))}function FP(e,t){e.rect(t.x,t.y,t.w,t.h)}function HP(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=e.x!==n.x?-t:0,r=e.y!==n.y?-t:0,i=(e.x+e.w!==n.x+n.w?t:0)-o,a=(e.y+e.h!==n.y+n.h?t:0)-r;return{x:e.x+o,y:e.y+r,w:e.w+i,h:e.h+a,radius:e.radius}}FS(AP,"id","point"),FS(AP,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),FS(AP,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});class WP extends N_{constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:t,options:{borderColor:n,backgroundColor:o}}=this,{inner:r,outer:i}=DP(this),a=function(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}(i.radius)?iE:FP;e.save(),i.w===r.w&&i.h===r.h||(e.beginPath(),a(e,HP(i,t,r)),e.clip(),a(e,HP(r,-t,i)),e.fillStyle=n,e.fill("evenodd")),e.beginPath(),a(e,HP(r,t)),e.fillStyle=o,e.fill(),e.restore()}inRange(e,t,n){return BP(this,e,t,n)}inXRange(e,t){return BP(this,e,null,t)}inYRange(e,t){return BP(this,null,e,t)}getCenterPoint(e){const{x:t,y:n,base:o,horizontal:r}=this.getProps(["x","y","base","horizontal"],e);return{x:r?(t+o)/2:t,y:r?n:(n+o)/2}}getRange(e){return"x"===e?this.width/2:this.height/2}}FS(WP,"id","bar"),FS(WP,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),FS(WP,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});const VP=(e,t)=>{let{boxHeight:n=t,boxWidth:o=t}=e;return e.usePointStyle&&(n=Math.min(n,t),o=e.pointStyleWidth||Math.min(o,t)),{boxWidth:o,boxHeight:n,itemHeight:Math.max(t,n)}};class KP extends N_{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t,n){this.maxWidth=e,this.maxHeight=t,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let t=MC(e.generateLabels,[this.chart],this)||[];e.filter&&(t=t.filter((t=>e.filter(t,this.chart.data)))),e.sort&&(t=t.sort(((t,n)=>e.sort(t,n,this.chart.data)))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){const{options:e,ctx:t}=this;if(!e.display)return void(this.width=this.height=0);const n=e.labels,o=hE(n.font),r=o.size,i=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=VP(n,r);let c,s;t.font=o.string,this.isHorizontal()?(c=this.maxWidth,s=this._fitRows(i,r,a,l)+10):(s=this.maxHeight,c=this._fitCols(i,o,a,l)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(s,e.maxHeight||this.maxHeight)}_fitRows(e,t,n,o){const{ctx:r,maxWidth:i,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],s=o+a;let u=e;r.textAlign="left",r.textBaseline="middle";let d=-1,f=-s;return this.legendItems.forEach(((e,p)=>{const h=n+t/2+r.measureText(e.text).width;(0===p||c[c.length-1]+h+2*a>i)&&(u+=s,c[c.length-(p>0?0:1)]=0,f+=s,d++),l[p]={left:0,top:f,row:d,width:h,height:o},c[c.length-1]+=h+a})),u}_fitCols(e,t,n,o){const{ctx:r,maxHeight:i,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],s=i-e;let u=a,d=0,f=0,p=0,h=0;return this.legendItems.forEach(((e,i)=>{const{itemWidth:m,itemHeight:g}=function(e,t,n,o,r){const i=function(e,t,n,o){let r=e.text;r&&"string"!==typeof r&&(r=r.reduce(((e,t)=>e.length>t.length?e:t)));return t+n.size/2+o.measureText(r).width}(o,e,t,n),a=function(e,t,n){let o=e;"string"!==typeof t.text&&(o=qP(t,n));return o}(r,o,t.lineHeight);return{itemWidth:i,itemHeight:a}}(n,t,r,e,o);i>0&&f+g+2*a>s&&(u+=d+a,c.push({width:d,height:f}),p+=d+a,h++,d=f=0),l[i]={left:p,top:f,col:h,width:m,height:g},d=Math.max(d,m),f+=g+a})),u+=d,c.push({width:d,height:f}),u}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:n,labels:{padding:o},rtl:r}}=this,i=eO(r,this.left,this.width);if(this.isHorizontal()){let r=0,a=Ck(n,this.left+o,this.right-this.lineWidths[r]);for(const l of t)r!==l.row&&(r=l.row,a=Ck(n,this.left+o,this.right-this.lineWidths[r])),l.top+=this.top+e+o,l.left=i.leftForLtr(i.x(a),l.width),a+=l.width+o}else{let r=0,a=Ck(n,this.top+e+o,this.bottom-this.columnSizes[r].height);for(const l of t)l.col!==r&&(r=l.col,a=Ck(n,this.top+e+o,this.bottom-this.columnSizes[r].height)),l.top=a,l.left+=this.left+o,l.left=i.leftForLtr(i.x(l.left),l.width),a+=l.height+o}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const e=this.ctx;Jk(e,this),this._draw(),Zk(e)}}_draw(){const{options:e,columnSizes:t,lineWidths:n,ctx:o}=this,{align:r,labels:i}=e,a=Kk.color,l=eO(e.rtl,this.left,this.width),c=hE(i.font),{padding:s}=i,u=c.size,d=u/2;let f;this.drawTitle(),o.textAlign=l.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=c.string;const{boxWidth:p,boxHeight:h,itemHeight:m}=VP(i,u),g=this.isHorizontal(),v=this._computeTitleHeight();f=g?{x:Ck(r,this.left+s,this.right-n[0]),y:this.top+s+v,line:0}:{x:this.left+s,y:Ck(r,this.top+v+s,this.bottom-t[0].height),line:0},tO(this.ctx,e.textDirection);const b=m+s;this.legendItems.forEach(((y,w)=>{o.strokeStyle=y.fontColor,o.fillStyle=y.fontColor;const x=o.measureText(y.text).width,S=l.textAlign(y.textAlign||(y.textAlign=i.textAlign)),C=p+d+x;let k=f.x,E=f.y;l.setWidth(this.width),g?w>0&&k+C+s>this.right&&(E=f.y+=b,f.line++,k=f.x=Ck(r,this.left+s,this.right-n[f.line])):w>0&&E+b>this.bottom&&(k=f.x=k+t[f.line].width+s,f.line++,E=f.y=Ck(r,this.top+v+s,this.bottom-t[f.line].height));if(function(e,t,n){if(isNaN(p)||p<=0||isNaN(h)||h<0)return;o.save();const r=_C(n.lineWidth,1);if(o.fillStyle=_C(n.fillStyle,a),o.lineCap=_C(n.lineCap,"butt"),o.lineDashOffset=_C(n.lineDashOffset,0),o.lineJoin=_C(n.lineJoin,"miter"),o.lineWidth=r,o.strokeStyle=_C(n.strokeStyle,a),o.setLineDash(_C(n.lineDash,[])),i.usePointStyle){const a={radius:h*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:r},c=l.xPlus(e,p/2);Yk(o,a,c,t+d,i.pointStyleWidth&&p)}else{const i=t+Math.max((u-h)/2,0),a=l.leftForLtr(e,p),c=fE(n.borderRadius);o.beginPath(),Object.values(c).some((e=>0!==e))?iE(o,{x:a,y:i,w:p,h:h,radius:c}):o.rect(a,i,p,h),o.fill(),0!==r&&o.stroke()}o.restore()}(l.x(k),E,y),k=((e,t,n,o)=>e===(o?"left":"right")?n:"center"===e?(t+n)/2:t)(S,k+p+d,g?k+C:this.right,e.rtl),function(e,t,n){rE(o,n.text,e,t+m/2,c,{strikethrough:n.hidden,textAlign:l.textAlign(n.textAlign)})}(l.x(k),E,y),g)f.x+=C+s;else if("string"!==typeof y.text){const e=c.lineHeight;f.y+=qP(y,e)+s}else f.y+=b})),nO(this.ctx,e.textDirection)}drawTitle(){const e=this.options,t=e.title,n=hE(t.font),o=pE(t.padding);if(!t.display)return;const r=eO(e.rtl,this.left,this.width),i=this.ctx,a=t.position,l=n.size/2,c=o.top+l;let s,u=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),s=this.top+c,u=Ck(e.align,u,this.right-d);else{const t=this.columnSizes.reduce(((e,t)=>Math.max(e,t.height)),0);s=c+Ck(e.align,this.top,this.bottom-t-e.labels.padding-this._computeTitleHeight())}const f=Ck(a,u,u+d);i.textAlign=r.textAlign(Sk(a)),i.textBaseline="middle",i.strokeStyle=t.color,i.fillStyle=t.color,i.font=n.string,rE(i,t.text,f,s,n)}_computeTitleHeight(){const e=this.options.title,t=hE(e.font),n=pE(e.padding);return e.display?t.lineHeight+n.height:0}_getLegendItemAt(e,t){let n,o,r;if(pk(e,this.left,this.right)&&pk(t,this.top,this.bottom))for(r=this.legendHitBoxes,n=0;n<r.length;++n)if(o=r[n],pk(e,o.left,o.left+o.width)&&pk(t,o.top,o.top+o.height))return this.legendItems[n];return null}handleEvent(e){const t=this.options;if(!function(e,t){if(("mousemove"===e||"mouseout"===e)&&(t.onHover||t.onLeave))return!0;if(t.onClick&&("click"===e||"mouseup"===e))return!0;return!1}(e.type,t))return;const n=this._getLegendItemAt(e.x,e.y);if("mousemove"===e.type||"mouseout"===e.type){const i=this._hoveredItem,a=(r=n,null!==(o=i)&&null!==r&&o.datasetIndex===r.datasetIndex&&o.index===r.index);i&&!a&&MC(t.onLeave,[e,i,this],this),this._hoveredItem=n,n&&!a&&MC(t.onHover,[e,n,this],this)}else n&&MC(t.onClick,[e,n,this],this);var o,r}}function qP(e,t){return t*(e.text?e.text.length:0)}var UP={id:"legend",_element:KP,start(e,t,n){const o=e.legend=new KP({ctx:e.ctx,options:n,chart:e});f_.configure(e,o,n),f_.addBox(e,o)},stop(e){f_.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const o=e.legend;f_.configure(e,o,n),o.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const o=t.datasetIndex,r=n.chart;r.isDatasetVisible(o)?(r.hide(o),t.hidden=!0):(r.show(o),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:o,textAlign:r,color:i,useBorderRadius:a,borderRadius:l}}=e.legend.options;return e._getSortedDatasetMetas().map((e=>{const c=e.controller.getStyle(n?0:void 0),s=pE(c.borderWidth);return{text:t[e.index].label,fillStyle:c.backgroundColor,fontColor:i,hidden:!e.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(s.width+s.height)/4,strokeStyle:c.borderColor,pointStyle:o||c.pointStyle,rotation:c.rotation,textAlign:r||c.textAlign,borderRadius:a&&(l||c.borderRadius),datasetIndex:e.index}}),this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class XP extends N_{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t){const n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=e,this.height=this.bottom=t;const o=CC(n.text)?n.text.length:1;this._padding=pE(n.padding);const r=o*hE(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=r:this.width=r}isHorizontal(){const e=this.options.position;return"top"===e||"bottom"===e}_drawArgs(e){const{top:t,left:n,bottom:o,right:r,options:i}=this,a=i.align;let l,c,s,u=0;return this.isHorizontal()?(c=Ck(a,n,r),s=t+e,l=r-n):("left"===i.position?(c=n+e,s=Ck(a,o,t),u=-.5*KC):(c=r-e,s=Ck(a,t,o),u=.5*KC),l=o-t),{titleX:c,titleY:s,maxWidth:l,rotation:u}}draw(){const e=this.ctx,t=this.options;if(!t.display)return;const n=hE(t.font),o=n.lineHeight/2+this._padding.top,{titleX:r,titleY:i,maxWidth:a,rotation:l}=this._drawArgs(o);rE(e,t.text,0,0,n,{color:t.color,maxWidth:a,rotation:l,textAlign:Sk(t.align),textBaseline:"middle",translation:[r,i]})}}var GP={id:"title",_element:XP,start(e,t,n){!function(e,t){const n=new XP({ctx:e.ctx,options:t,chart:e});f_.configure(e,n,t),f_.addBox(e,n),e.titleBlock=n}(e,n)},stop(e){const t=e.titleBlock;f_.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const o=e.titleBlock;f_.configure(e,o,n),o.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};new WeakMap;const $P={average(e){if(!e.length)return!1;let t,n,o=new Set,r=0,i=0;for(t=0,n=e.length;t<n;++t){const n=e[t].element;if(n&&n.hasValue()){const e=n.tooltipPosition();o.add(e.x),r+=e.y,++i}}return{x:[...o].reduce(((e,t)=>e+t))/o.size,y:r/i}},nearest(e,t){if(!e.length)return!1;let n,o,r,i=t.x,a=t.y,l=Number.POSITIVE_INFINITY;for(n=0,o=e.length;n<o;++n){const o=e[n].element;if(o&&o.hasValue()){const e=ck(t,o.getCenterPoint());e<l&&(l=e,r=o)}}if(r){const e=r.tooltipPosition();i=e.x,a=e.y}return{x:i,y:a}}};function YP(e,t){return t&&(CC(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function QP(e){return("string"===typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function JP(e,t){const{element:n,datasetIndex:o,index:r}=t,i=e.getDatasetMeta(o).controller,{label:a,value:l}=i.getLabelAndValue(r);return{chart:e,label:a,parsed:i.getParsed(r),raw:e.data.datasets[o].data[r],formattedValue:l,dataset:i.getDataset(),dataIndex:r,datasetIndex:o,element:n}}function ZP(e,t){const n=e.chart.ctx,{body:o,footer:r,title:i}=e,{boxWidth:a,boxHeight:l}=t,c=hE(t.bodyFont),s=hE(t.titleFont),u=hE(t.footerFont),d=i.length,f=r.length,p=o.length,h=pE(t.padding);let m=h.height,g=0,v=o.reduce(((e,t)=>e+t.before.length+t.lines.length+t.after.length),0);if(v+=e.beforeBody.length+e.afterBody.length,d&&(m+=d*s.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),v){m+=p*(t.displayColors?Math.max(l,c.lineHeight):c.lineHeight)+(v-p)*c.lineHeight+(v-1)*t.bodySpacing}f&&(m+=t.footerMarginTop+f*u.lineHeight+(f-1)*t.footerSpacing);let b=0;const y=function(e){g=Math.max(g,n.measureText(e).width+b)};return n.save(),n.font=s.string,NC(e.title,y),n.font=c.string,NC(e.beforeBody.concat(e.afterBody),y),b=t.displayColors?a+2+t.boxPadding:0,NC(o,(e=>{NC(e.before,y),NC(e.lines,y),NC(e.after,y)})),b=0,n.font=u.string,NC(e.footer,y),n.restore(),g+=h.width,{width:g,height:m}}function eM(e,t,n,o){const{x:r,width:i}=n,{width:a,chartArea:{left:l,right:c}}=e;let s="center";return"center"===o?s=r<=(l+c)/2?"left":"right":r<=i/2?s="left":r>=a-i/2&&(s="right"),function(e,t,n,o){const{x:r,width:i}=o,a=n.caretSize+n.caretPadding;return"left"===e&&r+i+a>t.width||"right"===e&&r-i-a<0||void 0}(s,e,t,n)&&(s="center"),s}function tM(e,t,n){const o=n.yAlign||t.yAlign||function(e,t){const{y:n,height:o}=t;return n<o/2?"top":n>e.height-o/2?"bottom":"center"}(e,n);return{xAlign:n.xAlign||t.xAlign||eM(e,t,n,o),yAlign:o}}function nM(e,t,n,o){const{caretSize:r,caretPadding:i,cornerRadius:a}=e,{xAlign:l,yAlign:c}=n,s=r+i,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:p}=fE(a);let h=function(e,t){let{x:n,width:o}=e;return"right"===t?n-=o:"center"===t&&(n-=o/2),n}(t,l);const m=function(e,t,n){let{y:o,height:r}=e;return"top"===t?o+=n:o-="bottom"===t?r+n:r/2,o}(t,c,s);return"center"===c?"left"===l?h+=s:"right"===l&&(h-=s):"left"===l?h-=Math.max(u,f)+r:"right"===l&&(h+=Math.max(d,p)+r),{x:fk(h,0,o.width-t.width),y:fk(m,0,o.height-t.height)}}function oM(e,t,n){const o=pE(n.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-o.right:e.x+o.left}function rM(e){return YP([],QP(e))}function iM(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const aM={beforeTitle:wC,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,o=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(o>0&&t.dataIndex<o)return n[t.dataIndex]}return""},afterTitle:wC,beforeBody:wC,beforeLabel:wC,label(e){if(this&&this.options&&"dataset"===this.options.mode)return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return SC(n)||(t+=n),t},labelColor(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:wC,afterBody:wC,beforeFooter:wC,footer:wC,afterFooter:wC};function lM(e,t,n,o){const r=e[t].call(n,o);return"undefined"===typeof r?aM[t].call(n,o):r}class cM extends N_{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const t=this.chart,n=this.options.setContext(this.getContext()),o=n.enabled&&t.options.animation&&n.animations,r=new mO(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=(e=this.chart.getContext(),t=this,n=this._tooltipItems,gE(e,{tooltip:t,tooltipItems:n,type:"tooltip"})));var e,t,n}getTitle(e,t){const{callbacks:n}=t,o=lM(n,"beforeTitle",this,e),r=lM(n,"title",this,e),i=lM(n,"afterTitle",this,e);let a=[];return a=YP(a,QP(o)),a=YP(a,QP(r)),a=YP(a,QP(i)),a}getBeforeBody(e,t){return rM(lM(t.callbacks,"beforeBody",this,e))}getBody(e,t){const{callbacks:n}=t,o=[];return NC(e,(e=>{const t={before:[],lines:[],after:[]},r=iM(n,e);YP(t.before,QP(lM(r,"beforeLabel",this,e))),YP(t.lines,lM(r,"label",this,e)),YP(t.after,QP(lM(r,"afterLabel",this,e))),o.push(t)})),o}getAfterBody(e,t){return rM(lM(t.callbacks,"afterBody",this,e))}getFooter(e,t){const{callbacks:n}=t,o=lM(n,"beforeFooter",this,e),r=lM(n,"footer",this,e),i=lM(n,"afterFooter",this,e);let a=[];return a=YP(a,QP(o)),a=YP(a,QP(r)),a=YP(a,QP(i)),a}_createItems(e){const t=this._active,n=this.chart.data,o=[],r=[],i=[];let a,l,c=[];for(a=0,l=t.length;a<l;++a)c.push(JP(this.chart,t[a]));return e.filter&&(c=c.filter(((t,o,r)=>e.filter(t,o,r,n)))),e.itemSort&&(c=c.sort(((t,o)=>e.itemSort(t,o,n)))),NC(c,(t=>{const n=iM(e.callbacks,t);o.push(lM(n,"labelColor",this,t)),r.push(lM(n,"labelPointStyle",this,t)),i.push(lM(n,"labelTextColor",this,t))})),this.labelColors=o,this.labelPointStyles=r,this.labelTextColors=i,this.dataPoints=c,c}update(e,t){const n=this.options.setContext(this.getContext()),o=this._active;let r,i=[];if(o.length){const e=$P[n.position].call(this,o,this._eventPosition);i=this._createItems(n),this.title=this.getTitle(i,n),this.beforeBody=this.getBeforeBody(i,n),this.body=this.getBody(i,n),this.afterBody=this.getAfterBody(i,n),this.footer=this.getFooter(i,n);const t=this._size=ZP(this,n),a=Object.assign({},e,t),l=tM(this.chart,n,a),c=nM(n,a,l,this.chart);this.xAlign=l.xAlign,this.yAlign=l.yAlign,r={opacity:1,x:c.x,y:c.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}else 0!==this.opacity&&(r={opacity:0});this._tooltipItems=i,this.$context=void 0,r&&this._resolveAnimations().update(this,r),e&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,n,o){const r=this.getCaretPosition(e,n,o);t.lineTo(r.x1,r.y1),t.lineTo(r.x2,r.y2),t.lineTo(r.x3,r.y3)}getCaretPosition(e,t,n){const{xAlign:o,yAlign:r}=this,{caretSize:i,cornerRadius:a}=n,{topLeft:l,topRight:c,bottomLeft:s,bottomRight:u}=fE(a),{x:d,y:f}=e,{width:p,height:h}=t;let m,g,v,b,y,w;return"center"===r?(y=f+h/2,"left"===o?(m=d,g=m-i,b=y+i,w=y-i):(m=d+p,g=m+i,b=y-i,w=y+i),v=m):(g="left"===o?d+Math.max(l,s)+i:"right"===o?d+p-Math.max(c,u)-i:this.caretX,"top"===r?(b=f,y=b-i,m=g-i,v=g+i):(b=f+h,y=b+i,m=g+i,v=g-i),w=b),{x1:m,x2:g,x3:v,y1:b,y2:y,y3:w}}drawTitle(e,t,n){const o=this.title,r=o.length;let i,a,l;if(r){const c=eO(n.rtl,this.x,this.width);for(e.x=oM(this,n.titleAlign,n),t.textAlign=c.textAlign(n.titleAlign),t.textBaseline="middle",i=hE(n.titleFont),a=n.titleSpacing,t.fillStyle=n.titleColor,t.font=i.string,l=0;l<r;++l)t.fillText(o[l],c.x(e.x),e.y+i.lineHeight/2),e.y+=i.lineHeight+a,l+1===r&&(e.y+=n.titleMarginBottom-a)}}_drawColorBox(e,t,n,o,r){const i=this.labelColors[n],a=this.labelPointStyles[n],{boxHeight:l,boxWidth:c}=r,s=hE(r.bodyFont),u=oM(this,"left",r),d=o.x(u),f=l<s.lineHeight?(s.lineHeight-l)/2:0,p=t.y+f;if(r.usePointStyle){const t={radius:Math.min(c,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},n=o.leftForLtr(d,c)+c/2,s=p+l/2;e.strokeStyle=r.multiKeyBackground,e.fillStyle=r.multiKeyBackground,$k(e,t,n,s),e.strokeStyle=i.borderColor,e.fillStyle=i.backgroundColor,$k(e,t,n,s)}else{e.lineWidth=kC(i.borderWidth)?Math.max(...Object.values(i.borderWidth)):i.borderWidth||1,e.strokeStyle=i.borderColor,e.setLineDash(i.borderDash||[]),e.lineDashOffset=i.borderDashOffset||0;const t=o.leftForLtr(d,c),n=o.leftForLtr(o.xPlus(d,1),c-2),a=fE(i.borderRadius);Object.values(a).some((e=>0!==e))?(e.beginPath(),e.fillStyle=r.multiKeyBackground,iE(e,{x:t,y:p,w:c,h:l,radius:a}),e.fill(),e.stroke(),e.fillStyle=i.backgroundColor,e.beginPath(),iE(e,{x:n,y:p+1,w:c-2,h:l-2,radius:a}),e.fill()):(e.fillStyle=r.multiKeyBackground,e.fillRect(t,p,c,l),e.strokeRect(t,p,c,l),e.fillStyle=i.backgroundColor,e.fillRect(n,p+1,c-2,l-2))}e.fillStyle=this.labelTextColors[n]}drawBody(e,t,n){const{body:o}=this,{bodySpacing:r,bodyAlign:i,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:s}=n,u=hE(n.bodyFont);let d=u.lineHeight,f=0;const p=eO(n.rtl,this.x,this.width),h=function(n){t.fillText(n,p.x(e.x+f),e.y+d/2),e.y+=d+r},m=p.textAlign(i);let g,v,b,y,w,x,S;for(t.textAlign=i,t.textBaseline="middle",t.font=u.string,e.x=oM(this,m,n),t.fillStyle=n.bodyColor,NC(this.beforeBody,h),f=a&&"right"!==m?"center"===i?c/2+s:c+2+s:0,y=0,x=o.length;y<x;++y){for(g=o[y],v=this.labelTextColors[y],t.fillStyle=v,NC(g.before,h),b=g.lines,a&&b.length&&(this._drawColorBox(t,e,y,p,n),d=Math.max(u.lineHeight,l)),w=0,S=b.length;w<S;++w)h(b[w]),d=u.lineHeight;NC(g.after,h)}f=0,d=u.lineHeight,NC(this.afterBody,h),e.y-=r}drawFooter(e,t,n){const o=this.footer,r=o.length;let i,a;if(r){const l=eO(n.rtl,this.x,this.width);for(e.x=oM(this,n.footerAlign,n),e.y+=n.footerMarginTop,t.textAlign=l.textAlign(n.footerAlign),t.textBaseline="middle",i=hE(n.footerFont),t.fillStyle=n.footerColor,t.font=i.string,a=0;a<r;++a)t.fillText(o[a],l.x(e.x),e.y+i.lineHeight/2),e.y+=i.lineHeight+n.footerSpacing}}drawBackground(e,t,n,o){const{xAlign:r,yAlign:i}=this,{x:a,y:l}=e,{width:c,height:s}=n,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:p}=fE(o.cornerRadius);t.fillStyle=o.backgroundColor,t.strokeStyle=o.borderColor,t.lineWidth=o.borderWidth,t.beginPath(),t.moveTo(a+u,l),"top"===i&&this.drawCaret(e,t,n,o),t.lineTo(a+c-d,l),t.quadraticCurveTo(a+c,l,a+c,l+d),"center"===i&&"right"===r&&this.drawCaret(e,t,n,o),t.lineTo(a+c,l+s-p),t.quadraticCurveTo(a+c,l+s,a+c-p,l+s),"bottom"===i&&this.drawCaret(e,t,n,o),t.lineTo(a+f,l+s),t.quadraticCurveTo(a,l+s,a,l+s-f),"center"===i&&"left"===r&&this.drawCaret(e,t,n,o),t.lineTo(a,l+u),t.quadraticCurveTo(a,l,a+u,l),t.closePath(),t.fill(),o.borderWidth>0&&t.stroke()}_updateAnimationTarget(e){const t=this.chart,n=this.$animations,o=n&&n.x,r=n&&n.y;if(o||r){const n=$P[e.position].call(this,this._active,this._eventPosition);if(!n)return;const i=this._size=ZP(this,e),a=Object.assign({},n,this._size),l=tM(t,e,a),c=nM(e,a,l,t);o._to===c.x&&r._to===c.y||(this.xAlign=l.xAlign,this.yAlign=l.yAlign,this.width=i.width,this.height=i.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(e){const t=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(t);const o={width:this.width,height:this.height},r={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const i=pE(t.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&a&&(e.save(),e.globalAlpha=n,this.drawBackground(r,e,o,t),tO(e,t.textDirection),r.y+=i.top,this.drawTitle(r,e,t),this.drawBody(r,e,t),this.drawFooter(r,e,t),nO(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){const n=this._active,o=e.map((e=>{let{datasetIndex:t,index:n}=e;const o=this.chart.getDatasetMeta(t);if(!o)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:o.data[n],index:n}})),r=!IC(n,o),i=this._positionChanged(o,t);(r||i)&&(this._active=o,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const o=this.options,r=this._active||[],i=this._getActiveElements(e,r,t,n),a=this._positionChanged(i,e),l=t||!IC(i,r)||a;return l&&(this._active=i,(o.enabled||o.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),l}_getActiveElements(e,t,n,o){const r=this.options;if("mouseout"===e.type)return[];if(!o)return t.filter((e=>this.chart.data.datasets[e.datasetIndex]&&void 0!==this.chart.getDatasetMeta(e.datasetIndex).controller.getParsed(e.index)));const i=this.chart.getElementsAtEventForMode(e,r.mode,r,n);return r.reverse&&i.reverse(),i}_positionChanged(e,t){const{caretX:n,caretY:o,options:r}=this,i=$P[r.position].call(this,e,t);return!1!==i&&(n!==i.x||o!==i.y)}}FS(cM,"positioners",$P);var sM={id:"tooltip",_element:cM,positioners:$P,afterInit(e,t,n){n&&(e.tooltip=new cM({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(!1===e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0}))return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:aM},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>"filter"!==e&&"itemSort"!==e&&"external"!==e,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};function uM(e,t,n,o){const r=e.indexOf(t);if(-1===r)return((e,t,n,o)=>("string"===typeof t?(n=e.push(t)-1,o.unshift({index:n,label:t})):isNaN(t)&&(n=null),n))(e,t,n,o);return r!==e.lastIndexOf(t)?n:r}function dM(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class fM extends F_{constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const t=this._addedLabels;if(t.length){const e=this.getLabels();for(const{index:n,label:o}of t)e[n]===o&&e.splice(n,1);this._addedLabels=[]}super.init(e)}parse(e,t){if(SC(e))return null;const n=this.getLabels();return((e,t)=>null===e?null:fk(Math.round(e),0,t))(t=isFinite(t)&&n[t]===e?t:uM(n,e,_C(t,e),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let{min:n,max:o}=this.getMinMax(!0);"ticks"===this.options.bounds&&(e||(n=0),t||(o=this.getLabels().length-1)),this.min=n,this.max=o}buildTicks(){const e=this.min,t=this.max,n=this.options.offset,o=[];let r=this.getLabels();r=0===e&&t===r.length-1?r:r.slice(e,t+1),this._valueRange=Math.max(r.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let i=e;i<=t;i++)o.push({value:i});return o}getLabelForValue(e){return dM.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return"number"!==typeof e&&(e=this.parse(e)),null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}function pM(e,t){const n=[],{bounds:o,step:r,min:i,max:a,precision:l,count:c,maxTicks:s,maxDigits:u,includeBounds:d}=e,f=r||1,p=s-1,{min:h,max:m}=t,g=!SC(i),v=!SC(a),b=!SC(c),y=(m-h)/(u+1);let w,x,S,C,k=tk((m-h)/p/f)*f;if(k<1e-14&&!g&&!v)return[{value:h},{value:m}];C=Math.ceil(m/k)-Math.floor(h/k),C>p&&(k=tk(C*k/p/f)*f),SC(l)||(w=Math.pow(10,l),k=Math.ceil(k*w)/w),"ticks"===o?(x=Math.floor(h/k)*k,S=Math.ceil(m/k)*k):(x=h,S=m),g&&v&&r&&function(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}((a-i)/r,k/1e3)?(C=Math.round(Math.min((a-i)/k,s)),k=(a-i)/C,x=i,S=a):b?(x=g?i:x,S=v?a:S,C=c-1,k=(S-x)/C):(C=(S-x)/k,C=ek(C,Math.round(C),k/1e3)?Math.round(C):Math.ceil(C));const E=Math.max(ak(k),ak(x));w=Math.pow(10,SC(l)?E:l),x=Math.round(x*w)/w,S=Math.round(S*w)/w;let O=0;for(g&&(d&&x!==i?(n.push({value:i}),x<i&&O++,ek(Math.round((x+O*k)*w)/w,i,hM(i,y,e))&&O++):x<i&&O++);O<C;++O){const e=Math.round((x+O*k)*w)/w;if(v&&e>a)break;n.push({value:e})}return v&&d&&S!==a?n.length&&ek(n[n.length-1].value,a,hM(a,y,e))?n[n.length-1].value=a:n.push({value:a}):v&&S!==a||n.push({value:S}),n}function hM(e,t,n){let{horizontal:o,minRotation:r}=n;const i=rk(r),a=(o?Math.sin(i):Math.cos(i))||.001,l=.75*t*(""+e).length;return Math.min(t/a,l)}FS(fM,"id","category"),FS(fM,"defaults",{ticks:{callback:dM}});class mM extends F_{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return SC(e)||("number"===typeof e||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:o,max:r}=this;const i=e=>o=t?o:e,a=e=>r=n?r:e;if(e){const e=ZC(o),t=ZC(r);e<0&&t<0?a(0):e>0&&t>0&&i(0)}if(o===r){let t=0===r?1:Math.abs(.05*r);a(r+t),e||i(o-t)}this.min=o,this.max=r}getTickLimit(){const e=this.options.ticks;let t,{maxTicksLimit:n,stepSize:o}=e;return o?(t=Math.ceil(this.max/o)-Math.floor(this.min/o)+1,t>1e3&&(console.warn("scales.".concat(this.id,".ticks.stepSize: ").concat(o," would result generating up to ").concat(t," ticks. Limiting to 1000.")),t=1e3)):(t=this.computeTickLimit(),n=n||11),n&&(t=Math.min(n,t)),t}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,t=e.ticks;let n=this.getTickLimit();n=Math.max(2,n);const o=pM({maxTicks:n,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:!1!==t.includeBounds},this._range||this);return"ticks"===e.bounds&&ok(o,this,"value"),e.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const e=this.ticks;let t=this.min,n=this.max;if(super.configure(),this.options.offset&&e.length){const o=(n-t)/Math.max(e.length-1,1)/2;t-=o,n+=o}this._startValue=t,this._endValue=n,this._valueRange=n-t}getLabelForValue(e){return zk(e,this.chart.options.locale,this.options.ticks.format)}}class gM extends mM{determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=EC(e)?e:0,this.max=EC(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),t=e?this.width:this.height,n=rk(this.options.ticks.minRotation),o=(e?Math.sin(n):Math.cos(n))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,r.lineHeight/o))}getPixelForValue(e){return null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}FS(gM,"id","linear"),FS(gM,"defaults",{ticks:{callback:Dk.formatters.numeric}});const vM=e=>Math.floor(JC(e)),bM=(e,t)=>Math.pow(10,vM(e)+t);function yM(e){return 1===e/Math.pow(10,vM(e))}function wM(e,t,n){const o=Math.pow(10,n),r=Math.floor(e/o);return Math.ceil(t/o)-r}function xM(e,t){let{min:n,max:o}=t;n=OC(e.min,n);const r=[],i=vM(n);let a=function(e,t){let n=vM(t-e);for(;wM(e,t,n)>10;)n++;for(;wM(e,t,n)<10;)n--;return Math.min(n,vM(e))}(n,o),l=a<0?Math.pow(10,Math.abs(a)):1;const c=Math.pow(10,a),s=i>a?Math.pow(10,i):0,u=Math.round((n-s)*l)/l,d=Math.floor((n-s)/c/10)*c*10;let f=Math.floor((u-d)/Math.pow(10,a)),p=OC(e.min,Math.round((s+d+f*Math.pow(10,a))*l)/l);for(;p<o;)r.push({value:p,major:yM(p),significand:f}),f>=10?f=f<15?15:20:f++,f>=20&&(a++,f=2,l=a>=0?1:l),p=Math.round((s+d+f*Math.pow(10,a))*l)/l;const h=OC(e.max,p);return r.push({value:h,major:yM(h),significand:f}),r}class SM extends F_{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,t){const n=mM.prototype.parse.apply(this,[e,t]);if(0!==n)return EC(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=EC(e)?Math.max(0,e):null,this.max=EC(t)?Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!EC(this._userMin)&&(this.min=e===bM(this.min,0)?bM(this.min,-1):bM(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let n=this.min,o=this.max;const r=t=>n=e?n:t,i=e=>o=t?o:e;n===o&&(n<=0?(r(1),i(10)):(r(bM(n,-1)),i(bM(o,1)))),n<=0&&r(bM(o,-1)),o<=0&&i(bM(n,1)),this.min=n,this.max=o}buildTicks(){const e=this.options,t=xM({min:this._userMin,max:this._userMax},this);return"ticks"===e.bounds&&ok(t,this,"value"),e.reverse?(t.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),t}getLabelForValue(e){return void 0===e?"0":zk(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=JC(e),this._valueRange=JC(this.max)-JC(e)}getPixelForValue(e){return void 0!==e&&0!==e||(e=this.min),null===e||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(JC(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const t=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+t*this._valueRange)}}function CM(e){const t=e.ticks;if(t.display&&e.display){const e=pE(t.backdropPadding);return _C(t.font&&t.font.size,Kk.font.size)+e.height}return 0}function kM(e,t,n,o,r){return e===o||e===r?{start:t-n/2,end:t+n/2}:e<o||e>r?{start:t-n,end:t}:{start:t,end:t+n}}function EM(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),o=[],r=[],i=e._pointLabels.length,a=e.options.pointLabels,l=a.centerPointLabels?KC/i:0;for(let d=0;d<i;d++){const i=a.setContext(e.getPointLabelContext(d));r[d]=i.padding;const f=e.getPointPosition(d,e.drawingArea+r[d],l),p=hE(i.font),h=(c=e.ctx,s=p,u=CC(u=e._pointLabels[d])?u:[u],{w:Uk(c,s.string,u),h:u.length*s.lineHeight});o[d]=h;const m=uk(e.getIndexAngle(d)+l),g=Math.round(ik(m));OM(n,t,m,kM(g,f.x,h.w,0,180),kM(g,f.y,h.h,90,270))}var c,s,u;e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=function(e,t,n){const o=[],r=e._pointLabels.length,i=e.options,{centerPointLabels:a,display:l}=i.pointLabels,c={extra:CM(i)/2,additionalAngle:a?KC/r:0};let s;for(let u=0;u<r;u++){c.padding=n[u],c.size=t[u];const r=_M(e,u,c);o.push(r),"auto"===l&&(r.visible=PM(r,s),r.visible&&(s=r))}return o}(e,o,r)}function OM(e,t,n,o,r){const i=Math.abs(Math.sin(n)),a=Math.abs(Math.cos(n));let l=0,c=0;o.start<t.l?(l=(t.l-o.start)/i,e.l=Math.min(e.l,t.l-l)):o.end>t.r&&(l=(o.end-t.r)/i,e.r=Math.max(e.r,t.r+l)),r.start<t.t?(c=(t.t-r.start)/a,e.t=Math.min(e.t,t.t-c)):r.end>t.b&&(c=(r.end-t.b)/a,e.b=Math.max(e.b,t.b+c))}function _M(e,t,n){const o=e.drawingArea,{extra:r,additionalAngle:i,padding:a,size:l}=n,c=e.getPointPosition(t,o+r+a,i),s=Math.round(ik(uk(c.angle+$C))),u=function(e,t,n){90===n||270===n?e-=t/2:(n>270||n<90)&&(e-=t);return e}(c.y,l.h,s),d=function(e){if(0===e||180===e)return"center";if(e<180)return"left";return"right"}(s),f=function(e,t,n){"right"===n?e-=t:"center"===n&&(e-=t/2);return e}(c.x,l.w,d);return{visible:!0,x:c.x,y:u,textAlign:d,left:f,top:u,right:f+l.w,bottom:u+l.h}}function PM(e,t){if(!t)return!0;const{left:n,top:o,right:r,bottom:i}=e;return!(Qk({x:n,y:o},t)||Qk({x:n,y:i},t)||Qk({x:r,y:o},t)||Qk({x:r,y:i},t))}function MM(e,t,n){const{left:o,top:r,right:i,bottom:a}=n,{backdropColor:l}=t;if(!SC(l)){const n=fE(t.borderRadius),c=pE(t.backdropPadding);e.fillStyle=l;const s=o-c.left,u=r-c.top,d=i-o+c.width,f=a-r+c.height;Object.values(n).some((e=>0!==e))?(e.beginPath(),iE(e,{x:s,y:u,w:d,h:f,radius:n}),e.fill()):e.fillRect(s,u,d,f)}}function NM(e,t,n,o){const{ctx:r}=e;if(n)r.arc(e.xCenter,e.yCenter,t,0,qC);else{let n=e.getPointPosition(0,t);r.moveTo(n.x,n.y);for(let i=1;i<o;i++)n=e.getPointPosition(i,t),r.lineTo(n.x,n.y)}}FS(SM,"id","logarithmic"),FS(SM,"defaults",{ticks:{callback:Dk.formatters.logarithmic,major:{enabled:!0}}});class IM extends mM{constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const e=this._padding=pE(CM(this.options)/2),t=this.width=this.maxWidth-e.width,n=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+t/2+e.left),this.yCenter=Math.floor(this.top+n/2+e.top),this.drawingArea=Math.floor(Math.min(t,n)/2)}determineDataLimits(){const{min:e,max:t}=this.getMinMax(!1);this.min=EC(e)&&!isNaN(e)?e:0,this.max=EC(t)&&!isNaN(t)?t:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/CM(this.options))}generateTickLabels(e){mM.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map(((e,t)=>{const n=MC(this.options.pointLabels.callback,[e,t],this);return n||0===n?n:""})).filter(((e,t)=>this.chart.getDataVisibility(t)))}fit(){const e=this.options;e.display&&e.pointLabels.display?EM(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,t,n,o){this.xCenter+=Math.floor((e-t)/2),this.yCenter+=Math.floor((n-o)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,t,n,o))}getIndexAngle(e){return uk(e*(qC/(this._pointLabels.length||1))+rk(this.options.startAngle||0))}getDistanceFromCenterForValue(e){if(SC(e))return NaN;const t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*t:(e-this.min)*t}getValueForDistanceFromCenter(e){if(SC(e))return NaN;const t=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}getPointLabelContext(e){const t=this._pointLabels||[];if(e>=0&&e<t.length){const n=t[e];return function(e,t,n){return gE(e,{label:n,index:t,type:"pointLabel"})}(this.getContext(),e,n)}}getPointPosition(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const o=this.getIndexAngle(e)-$C+n;return{x:Math.cos(o)*t+this.xCenter,y:Math.sin(o)*t+this.yCenter,angle:o}}getPointPositionForValue(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:t,top:n,right:o,bottom:r}=this._pointLabelItems[e];return{left:t,top:n,right:o,bottom:r}}drawBackground(){const{backgroundColor:e,grid:{circular:t}}=this.options;if(e){const n=this.ctx;n.save(),n.beginPath(),NM(this,this.getDistanceFromCenterForValue(this._endValue),t,this._pointLabels.length),n.closePath(),n.fillStyle=e,n.fill(),n.restore()}}drawGrid(){const e=this.ctx,t=this.options,{angleLines:n,grid:o,border:r}=t,i=this._pointLabels.length;let a,l,c;if(t.pointLabels.display&&function(e,t){const{ctx:n,options:{pointLabels:o}}=e;for(let r=t-1;r>=0;r--){const t=e._pointLabelItems[r];if(!t.visible)continue;const i=o.setContext(e.getPointLabelContext(r));MM(n,i,t);const a=hE(i.font),{x:l,y:c,textAlign:s}=t;rE(n,e._pointLabels[r],l,c+a.lineHeight/2,a,{color:i.color,textAlign:s,textBaseline:"middle"})}}(this,i),o.display&&this.ticks.forEach(((e,t)=>{if(0!==t||0===t&&this.min<0){l=this.getDistanceFromCenterForValue(e.value);const n=this.getContext(t),a=o.setContext(n),c=r.setContext(n);!function(e,t,n,o,r){const i=e.ctx,a=t.circular,{color:l,lineWidth:c}=t;!a&&!o||!l||!c||n<0||(i.save(),i.strokeStyle=l,i.lineWidth=c,i.setLineDash(r.dash),i.lineDashOffset=r.dashOffset,i.beginPath(),NM(e,n,a,o),i.closePath(),i.stroke(),i.restore())}(this,a,l,i,c)}})),n.display){for(e.save(),a=i-1;a>=0;a--){const o=n.setContext(this.getPointLabelContext(a)),{color:r,lineWidth:i}=o;i&&r&&(e.lineWidth=i,e.strokeStyle=r,e.setLineDash(o.borderDash),e.lineDashOffset=o.borderDashOffset,l=this.getDistanceFromCenterForValue(t.ticks.reverse?this.min:this.max),c=this.getPointPosition(a,l),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(c.x,c.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,t=this.options,n=t.ticks;if(!n.display)return;const o=this.getIndexAngle(0);let r,i;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(o),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach(((o,a)=>{if(0===a&&this.min>=0&&!t.reverse)return;const l=n.setContext(this.getContext(a)),c=hE(l.font);if(r=this.getDistanceFromCenterForValue(this.ticks[a].value),l.showLabelBackdrop){e.font=c.string,i=e.measureText(o.label).width,e.fillStyle=l.backdropColor;const t=pE(l.backdropPadding);e.fillRect(-i/2-t.left,-r-c.size/2-t.top,i+t.width,c.size+t.height)}rE(e,o.label,0,-r,c,{color:l.color,strokeColor:l.textStrokeColor,strokeWidth:l.textStrokeWidth})})),e.restore()}drawTitle(){}}FS(IM,"id","radialLinear"),FS(IM,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Dk.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:e=>e,padding:5,centerPointLabels:!1}}),FS(IM,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),FS(IM,"descriptors",{angleLines:{_fallback:"grid"}});const RM={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},TM=Object.keys(RM);function jM(e,t){return e-t}function AM(e,t){if(SC(t))return null;const n=e._adapter,{parser:o,round:r,isoWeekday:i}=e._parseOpts;let a=t;return"function"===typeof o&&(a=o(a)),EC(a)||(a="string"===typeof o?n.parse(a,o):n.parse(a)),null===a?null:(r&&(a="week"!==r||!nk(i)&&!0!==i?n.startOf(a,r):n.startOf(a,"isoWeek",i)),+a)}function zM(e,t,n,o){const r=TM.length;for(let i=TM.indexOf(e);i<r-1;++i){const e=RM[TM[i]],r=e.steps?e.steps:Number.MAX_SAFE_INTEGER;if(e.common&&Math.ceil((n-t)/(r*e.size))<=o)return TM[i]}return TM[r-1]}function LM(e,t,n){if(n){if(n.length){const{lo:o,hi:r}=hk(n,t);e[n[o]>=t?n[o]:n[r]]=!0}}else e[t]=!0}function DM(e,t,n){const o=[],r={},i=t.length;let a,l;for(a=0;a<i;++a)l=t[a],r[l]=a,o.push({value:l,major:!1});return 0!==i&&n?function(e,t,n,o){const r=e._adapter,i=+r.startOf(t[0].value,o),a=t[t.length-1].value;let l,c;for(l=i;l<=a;l=+r.add(l,1,o))c=n[l],c>=0&&(t[c].major=!0);return t}(e,o,r,n):o}class BM extends F_{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e.time||(e.time={}),o=this._adapter=new UO(e.adapters.date);o.init(t),zC(n.displayFormats,o.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(e),this._normalized=t.normalized}parse(e,t){return void 0===e?null:AM(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,t=this._adapter,n=e.time.unit||"day";let{min:o,max:r,minDefined:i,maxDefined:a}=this.getUserBounds();function l(e){i||isNaN(e.min)||(o=Math.min(o,e.min)),a||isNaN(e.max)||(r=Math.max(r,e.max))}i&&a||(l(this._getLabelBounds()),"ticks"===e.bounds&&"labels"===e.ticks.source||l(this.getMinMax(!1))),o=EC(o)&&!isNaN(o)?o:+t.startOf(Date.now(),n),r=EC(r)&&!isNaN(r)?r:+t.endOf(Date.now(),n)+1,this.min=Math.min(o,r-1),this.max=Math.max(o+1,r)}_getLabelBounds(){const e=this.getLabelTimestamps();let t=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return e.length&&(t=e[0],n=e[e.length-1]),{min:t,max:n}}buildTicks(){const e=this.options,t=e.time,n=e.ticks,o="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===e.bounds&&o.length&&(this.min=this._userMin||o[0],this.max=this._userMax||o[o.length-1]);const r=this.min,i=function(e,t,n){let o=0,r=e.length;for(;o<r&&e[o]<t;)o++;for(;r>o&&e[r-1]>n;)r--;return o>0||r<e.length?e.slice(o,r):e}(o,r,this.max);return this._unit=t.unit||(n.autoSkip?zM(t.minUnit,this.min,this.max,this._getLabelCapacity(r)):function(e,t,n,o,r){for(let i=TM.length-1;i>=TM.indexOf(n);i--){const n=TM[i];if(RM[n].common&&e._adapter.diff(r,o,n)>=t-1)return n}return TM[n?TM.indexOf(n):0]}(this,i.length,t.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(e){for(let t=TM.indexOf(e)+1,n=TM.length;t<n;++t)if(RM[TM[t]].common)return TM[t]}(this._unit):void 0,this.initOffsets(o),e.reverse&&i.reverse(),DM(this,i,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((e=>+e.value)))}initOffsets(){let e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=0,r=0;this.options.offset&&n.length&&(e=this.getDecimalForValue(n[0]),o=1===n.length?1-e:(this.getDecimalForValue(n[1])-e)/2,t=this.getDecimalForValue(n[n.length-1]),r=1===n.length?t:(t-this.getDecimalForValue(n[n.length-2]))/2);const i=n.length<3?.5:.25;o=fk(o,0,i),r=fk(r,0,i),this._offsets={start:o,end:r,factor:1/(o+1+r)}}_generate(){const e=this._adapter,t=this.min,n=this.max,o=this.options,r=o.time,i=r.unit||zM(r.minUnit,t,n,this._getLabelCapacity(t)),a=_C(o.ticks.stepSize,1),l="week"===i&&r.isoWeekday,c=nk(l)||!0===l,s={};let u,d,f=t;if(c&&(f=+e.startOf(f,"isoWeek",l)),f=+e.startOf(f,c?"day":i),e.diff(n,t,i)>1e5*a)throw new Error(t+" and "+n+" are too far apart with stepSize of "+a+" "+i);const p="data"===o.ticks.source&&this.getDataTimestamps();for(u=f,d=0;u<n;u=+e.add(u,a,i),d++)LM(s,u,p);return u!==n&&"ticks"!==o.bounds&&1!==d||LM(s,u,p),Object.keys(s).sort(jM).map((e=>+e))}getLabelForValue(e){const t=this._adapter,n=this.options.time;return n.tooltipFormat?t.format(e,n.tooltipFormat):t.format(e,n.displayFormats.datetime)}format(e,t){const n=this.options.time.displayFormats,o=this._unit,r=t||n[o];return this._adapter.format(e,r)}_tickFormatFunction(e,t,n,o){const r=this.options,i=r.ticks.callback;if(i)return MC(i,[e,t,n],this);const a=r.time.displayFormats,l=this._unit,c=this._majorUnit,s=l&&a[l],u=c&&a[c],d=n[t],f=c&&u&&d&&d.major;return this._adapter.format(e,o||(f?u:s))}generateTickLabels(e){let t,n,o;for(t=0,n=e.length;t<n;++t)o=e[t],o.label=this._tickFormatFunction(o.value,t,e)}getDecimalForValue(e){return null===e?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const t=this._offsets,n=this.getDecimalForValue(e);return this.getPixelForDecimal((t.start+n)*t.factor)}getValueForPixel(e){const t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return this.min+n*(this.max-this.min)}_getLabelSize(e){const t=this.options.ticks,n=this.ctx.measureText(e).width,o=rk(this.isHorizontal()?t.maxRotation:t.minRotation),r=Math.cos(o),i=Math.sin(o),a=this._resolveTickFontOptions(0).size;return{w:n*r+a*i,h:n*i+a*r}}_getLabelCapacity(e){const t=this.options.time,n=t.displayFormats,o=n[t.unit]||n.millisecond,r=this._tickFormatFunction(e,0,DM(this,[e],this._majorUnit),o),i=this._getLabelSize(r),a=Math.floor(this.isHorizontal()?this.width/i.w:this.height/i.h)-1;return a>0?a:1}getDataTimestamps(){let e,t,n=this._cache.data||[];if(n.length)return n;const o=this.getMatchingVisibleMetas();if(this._normalized&&o.length)return this._cache.data=o[0].controller.getAllParsedValues(this);for(e=0,t=o.length;e<t;++e)n=n.concat(o[e].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}getLabelTimestamps(){const e=this._cache.labels||[];let t,n;if(e.length)return e;const o=this.getLabels();for(t=0,n=o.length;t<n;++t)e.push(AM(this,o[t]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return yk(e.sort(jM))}}function FM(e,t,n){let o,r,i,a,l=0,c=e.length-1;n?(t>=e[l].pos&&t<=e[c].pos&&({lo:l,hi:c}=mk(e,"pos",t)),({pos:o,time:i}=e[l]),({pos:r,time:a}=e[c])):(t>=e[l].time&&t<=e[c].time&&({lo:l,hi:c}=mk(e,"time",t)),({time:o,pos:i}=e[l]),({time:r,pos:a}=e[c]));const s=r-o;return s?i+(a-i)*(t-o)/s:i}FS(BM,"id","time"),FS(BM,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});class HM extends BM{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(e);this._minPos=FM(t,this.min),this._tableRange=FM(t,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:t,max:n}=this,o=[],r=[];let i,a,l,c,s;for(i=0,a=e.length;i<a;++i)c=e[i],c>=t&&c<=n&&o.push(c);if(o.length<2)return[{time:t,pos:0},{time:n,pos:1}];for(i=0,a=o.length;i<a;++i)s=o[i+1],l=o[i-1],c=o[i],Math.round((s+l)/2)!==c&&r.push({time:c,pos:i/(a-1)});return r}_generate(){const e=this.min,t=this.max;let n=super.getDataTimestamps();return n.includes(e)&&n.length||n.splice(0,0,e),n.includes(t)&&1!==n.length||n.push(t),n.sort(((e,t)=>e-t))}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const t=this.getDataTimestamps(),n=this.getLabelTimestamps();return e=t.length&&n.length?this.normalize(t.concat(n)):t.length?t:n,e=this._cache.all=e,e}getDecimalForValue(e){return(FM(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return FM(this._table,n*this._tableRange+this._minPos,!0)}}FS(HM,"id","timeseries"),FS(HM,"defaults",BM.defaults);const WM="label";function VM(e,t){"function"===typeof e?e(t):e&&(e.current=t)}function KM(e,t){e.labels=t}function qM(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:WM;const o=[];e.datasets=t.map((t=>{const r=e.datasets.find((e=>e[n]===t[n]));return r&&t.data&&!o.includes(r)?(o.push(r),Object.assign(r,t),r):{...t}}))}function UM(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:WM;const n={labels:[],datasets:[]};return KM(n,e.labels),qM(n,e.datasets,t),n}function XM(e,t){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:a,type:l,data:c,options:s,plugins:u=[],fallbackContent:d,updateMode:f,...p}=e,h=(0,o.useRef)(null),m=(0,o.useRef)(),g=()=>{h.current&&(m.current=new bP(h.current,{type:l,data:UM(c,a),options:s&&{...s},plugins:u}),VM(t,m.current))},v=()=>{VM(t,null),m.current&&(m.current.destroy(),m.current=null)};return(0,o.useEffect)((()=>{!i&&m.current&&s&&function(e,t){const n=e.options;n&&t&&Object.assign(n,t)}(m.current,s)}),[i,s]),(0,o.useEffect)((()=>{!i&&m.current&&KM(m.current.config.data,c.labels)}),[i,c.labels]),(0,o.useEffect)((()=>{!i&&m.current&&c.datasets&&qM(m.current.config.data,c.datasets,a)}),[i,c.datasets]),(0,o.useEffect)((()=>{m.current&&(i?(v(),setTimeout(g)):m.current.update(f))}),[i,s,c.labels,c.datasets,f]),(0,o.useEffect)((()=>{m.current&&(v(),setTimeout(g))}),[l]),(0,o.useEffect)((()=>(g(),()=>v())),[]),o.createElement("canvas",Object.assign({ref:h,role:"img",height:n,width:r},p),d)}const GM=(0,o.forwardRef)(XM);function $M(e,t){return bP.register(t),(0,o.forwardRef)(((t,n)=>o.createElement(GM,Object.assign({},t,{ref:n,type:e}))))}const YM=$M("bar",zO);function QM(e,t){return function(){return e.apply(t,arguments)}}const{toString:JM}=Object.prototype,{getPrototypeOf:ZM}=Object,eN=(tN=Object.create(null),e=>{const t=JM.call(e);return tN[t]||(tN[t]=t.slice(8,-1).toLowerCase())});var tN;const nN=e=>(e=e.toLowerCase(),t=>eN(t)===e),oN=e=>t=>typeof t===e,{isArray:rN}=Array,iN=oN("undefined");const aN=nN("ArrayBuffer");const lN=oN("string"),cN=oN("function"),sN=oN("number"),uN=e=>null!==e&&"object"===typeof e,dN=e=>{if("object"!==eN(e))return!1;const t=ZM(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},fN=nN("Date"),pN=nN("File"),hN=nN("Blob"),mN=nN("FileList"),gN=nN("URLSearchParams");function vN(e,t){let n,o,{allOwnKeys:r=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),rN(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(n=0;n<i;n++)a=o[n],t.call(null,e[a],a,e)}}function bN(e,t){t=t.toLowerCase();const n=Object.keys(e);let o,r=n.length;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const yN="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,wN=e=>!iN(e)&&e!==yN;const xN=(SN="undefined"!==typeof Uint8Array&&ZM(Uint8Array),e=>SN&&e instanceof SN);var SN;const CN=nN("HTMLFormElement"),kN=(e=>{let{hasOwnProperty:t}=e;return(e,n)=>t.call(e,n)})(Object.prototype),EN=nN("RegExp"),ON=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};vN(n,((n,r)=>{let i;!1!==(i=t(n,r,e))&&(o[r]=i||n)})),Object.defineProperties(e,o)},_N="abcdefghijklmnopqrstuvwxyz",PN="0123456789",MN={DIGIT:PN,ALPHA:_N,ALPHA_DIGIT:_N+_N.toUpperCase()+PN};const NN=nN("AsyncFunction"),IN={isArray:rN,isArrayBuffer:aN,isBuffer:function(e){return null!==e&&!iN(e)&&null!==e.constructor&&!iN(e.constructor)&&cN(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||cN(e.append)&&("formdata"===(t=eN(e))||"object"===t&&cN(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&aN(e.buffer),t},isString:lN,isNumber:sN,isBoolean:e=>!0===e||!1===e,isObject:uN,isPlainObject:dN,isUndefined:iN,isDate:fN,isFile:pN,isBlob:hN,isRegExp:EN,isFunction:cN,isStream:e=>uN(e)&&cN(e.pipe),isURLSearchParams:gN,isTypedArray:xN,isFileList:mN,forEach:vN,merge:function e(){const{caseless:t}=wN(this)&&this||{},n={},o=(o,r)=>{const i=t&&bN(n,r)||r;dN(n[i])&&dN(o)?n[i]=e(n[i],o):dN(o)?n[i]=e({},o):rN(o)?n[i]=o.slice():n[i]=o};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&vN(arguments[r],o);return n},extend:function(e,t,n){let{allOwnKeys:o}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return vN(t,((t,o)=>{n&&cN(t)?e[o]=QM(t,n):e[o]=t}),{allOwnKeys:o}),e},trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,o)=>{let r,i,a;const l={};if(t=t||{},null==e)return t;do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)a=r[i],o&&!o(a,e,t)||l[a]||(t[a]=e[a],l[a]=!0);e=!1!==n&&ZM(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:eN,kindOfTest:nN,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return-1!==o&&o===n},toArray:e=>{if(!e)return null;if(rN(e))return e;let t=e.length;if(!sN(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const n=o.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const o=[];for(;null!==(n=e.exec(t));)o.push(n);return o},isHTMLForm:CN,hasOwnProperty:kN,hasOwnProp:kN,reduceDescriptors:ON,freezeMethods:e=>{ON(e,((t,n)=>{if(cN(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const o=e[n];cN(o)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},o=e=>{e.forEach((e=>{n[e]=!0}))};return rN(e)?o(e):o(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:bN,global:yN,isContextDefined:wN,ALPHABET:MN,generateString:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:MN.ALPHA_DIGIT,n="";const{length:o}=t;for(;e--;)n+=t[Math.random()*o|0];return n},isSpecCompliantForm:function(e){return!!(e&&cN(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,o)=>{if(uN(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[o]=e;const r=rN(e)?[]:{};return vN(e,((e,t)=>{const i=n(e,o+1);!iN(i)&&(r[t]=i)})),t[o]=void 0,r}}return e};return n(e,0)},isAsyncFn:NN,isThenable:e=>e&&(uN(e)||cN(e))&&cN(e.then)&&cN(e.catch)};function RN(e,t,n,o,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),r&&(this.response=r)}IN.inherits(RN,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:IN.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const TN=RN.prototype,jN={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{jN[e]={value:e}})),Object.defineProperties(RN,jN),Object.defineProperty(TN,"isAxiosError",{value:!0}),RN.from=(e,t,n,o,r,i)=>{const a=Object.create(TN);return IN.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),RN.call(a,e.message,t,n,o,r),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const AN=RN;function zN(e){return IN.isPlainObject(e)||IN.isArray(e)}function LN(e){return IN.endsWith(e,"[]")?e.slice(0,-2):e}function DN(e,t,n){return e?e.concat(t).map((function(e,t){return e=LN(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const BN=IN.toFlatObject(IN,{},null,(function(e){return/^is[A-Z]/.test(e)}));const FN=function(e,t,n){if(!IN.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const o=(n=IN.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!IN.isUndefined(t[e])}))).metaTokens,r=n.visitor||s,i=n.dots,a=n.indexes,l=(n.Blob||"undefined"!==typeof Blob&&Blob)&&IN.isSpecCompliantForm(t);if(!IN.isFunction(r))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(IN.isDate(e))return e.toISOString();if(!l&&IN.isBlob(e))throw new AN("Blob is not supported. Use a Buffer instead.");return IN.isArrayBuffer(e)||IN.isTypedArray(e)?l&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function s(e,n,r){let l=e;if(e&&!r&&"object"===typeof e)if(IN.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=JSON.stringify(e);else if(IN.isArray(e)&&function(e){return IN.isArray(e)&&!e.some(zN)}(e)||(IN.isFileList(e)||IN.endsWith(n,"[]"))&&(l=IN.toArray(e)))return n=LN(n),l.forEach((function(e,o){!IN.isUndefined(e)&&null!==e&&t.append(!0===a?DN([n],o,i):null===a?n:n+"[]",c(e))})),!1;return!!zN(e)||(t.append(DN(r,n,i),c(e)),!1)}const u=[],d=Object.assign(BN,{defaultVisitor:s,convertValue:c,isVisitable:zN});if(!IN.isObject(e))throw new TypeError("data must be an object");return function e(n,o){if(!IN.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+o.join("."));u.push(n),IN.forEach(n,(function(n,i){!0===(!(IN.isUndefined(n)||null===n)&&r.call(t,n,IN.isString(i)?i.trim():i,o,d))&&e(n,o?o.concat(i):[i])})),u.pop()}}(e),t};function HN(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function WN(e,t){this._pairs=[],e&&FN(e,this,t)}const VN=WN.prototype;VN.append=function(e,t){this._pairs.push([e,t])},VN.toString=function(e){const t=e?function(t){return e.call(this,t,HN)}:HN;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const KN=WN;function qN(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function UN(e,t,n){if(!t)return e;const o=n&&n.encode||qN,r=n&&n.serialize;let i;if(i=r?r(t,n):IN.isURLSearchParams(t)?t.toString():new KN(t,n).toString(o),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const XN=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){IN.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},GN={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},$N={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:KN,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},YN="undefined"!==typeof window&&"undefined"!==typeof document,QN=(JN="undefined"!==typeof navigator&&navigator.product,YN&&["ReactNative","NativeScript","NS"].indexOf(JN)<0);var JN;const ZN="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,eI={...e,...$N};const tI=function(e){function t(e,n,o,r){let i=e[r++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),l=r>=e.length;if(i=!i&&IN.isArray(o)?o.length:i,l)return IN.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!a;o[i]&&IN.isObject(o[i])||(o[i]=[]);return t(e,n,o[i],r)&&IN.isArray(o[i])&&(o[i]=function(e){const t={},n=Object.keys(e);let o;const r=n.length;let i;for(o=0;o<r;o++)i=n[o],t[i]=e[i];return t}(o[i])),!a}if(IN.isFormData(e)&&IN.isFunction(e.entries)){const n={};return IN.forEachEntry(e,((e,o)=>{t(function(e){return IN.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),o,n,0)})),n}return null};const nI={transitional:GN,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",o=n.indexOf("application/json")>-1,r=IN.isObject(e);r&&IN.isHTMLForm(e)&&(e=new FormData(e));if(IN.isFormData(e))return o?JSON.stringify(tI(e)):e;if(IN.isArrayBuffer(e)||IN.isBuffer(e)||IN.isStream(e)||IN.isFile(e)||IN.isBlob(e))return e;if(IN.isArrayBufferView(e))return e.buffer;if(IN.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return FN(e,new eI.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,o){return eI.isNode&&IN.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=IN.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return FN(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return r||o?(t.setContentType("application/json",!1),function(e,t,n){if(IN.isString(e))try{return(t||JSON.parse)(e),IN.trim(e)}catch(Qc){if("SyntaxError"!==Qc.name)throw Qc}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||nI.transitional,n=t&&t.forcedJSONParsing,o="json"===this.responseType;if(e&&IN.isString(e)&&(n&&!this.responseType||o)){const n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(Qc){if(n){if("SyntaxError"===Qc.name)throw AN.from(Qc,AN.ERR_BAD_RESPONSE,this,null,this.response);throw Qc}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:eI.classes.FormData,Blob:eI.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};IN.forEach(["delete","get","head","post","put","patch"],(e=>{nI.headers[e]={}}));const oI=nI,rI=IN.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),iI=Symbol("internals");function aI(e){return e&&String(e).trim().toLowerCase()}function lI(e){return!1===e||null==e?e:IN.isArray(e)?e.map(lI):String(e)}function cI(e,t,n,o,r){return IN.isFunction(o)?o.call(this,t,n):(r&&(t=n),IN.isString(t)?IN.isString(o)?-1!==t.indexOf(o):IN.isRegExp(o)?o.test(t):void 0:void 0)}class sI{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function r(e,t,n){const r=aI(t);if(!r)throw new Error("header name must be a non-empty string");const i=IN.findKey(o,r);(!i||void 0===o[i]||!0===n||void 0===n&&!1!==o[i])&&(o[i||t]=lI(e))}const i=(e,t)=>IN.forEach(e,((e,n)=>r(e,n,t)));return IN.isPlainObject(e)||e instanceof this.constructor?i(e,t):IN.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?i((e=>{const t={};let n,o,r;return e&&e.split("\n").forEach((function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),o=e.substring(r+1).trim(),!n||t[n]&&rI[n]||("set-cookie"===n?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)})),t})(e),t):null!=e&&r(t,e,n),this}get(e,t){if(e=aI(e)){const n=IN.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}(e);if(IN.isFunction(t))return t.call(this,e,n);if(IN.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=aI(e)){const n=IN.findKey(this,e);return!(!n||void 0===this[n]||t&&!cI(0,this[n],n,t))}return!1}delete(e,t){const n=this;let o=!1;function r(e){if(e=aI(e)){const r=IN.findKey(n,e);!r||t&&!cI(0,n[r],r,t)||(delete n[r],o=!0)}}return IN.isArray(e)?e.forEach(r):r(e),o}clear(e){const t=Object.keys(this);let n=t.length,o=!1;for(;n--;){const r=t[n];e&&!cI(0,this[r],r,e,!0)||(delete this[r],o=!0)}return o}normalize(e){const t=this,n={};return IN.forEach(this,((o,r)=>{const i=IN.findKey(n,r);if(i)return t[i]=lI(o),void delete t[r];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(r):String(r).trim();a!==r&&delete t[r],t[a]=lI(o),n[a]=!0})),this}concat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.constructor.concat(this,...t)}toJSON(e){const t=Object.create(null);return IN.forEach(this,((n,o)=>{null!=n&&!1!==n&&(t[o]=e&&IN.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((e=>{let[t,n]=e;return t+": "+n})).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return o.forEach((e=>t.set(e))),t}static accessor(e){const t=(this[iI]=this[iI]={accessors:{}}).accessors,n=this.prototype;function o(e){const o=aI(e);t[o]||(!function(e,t){const n=IN.toCamelCase(" "+t);["get","set","has"].forEach((o=>{Object.defineProperty(e,o+n,{value:function(e,n,r){return this[o].call(this,t,e,n,r)},configurable:!0})}))}(n,e),t[o]=!0)}return IN.isArray(e)?e.forEach(o):o(e),this}}sI.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),IN.reduceDescriptors(sI.prototype,((e,t)=>{let{value:n}=e,o=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(e){this[o]=e}}})),IN.freezeMethods(sI);const uI=sI;function dI(e,t){const n=this||oI,o=t||n,r=uI.from(o.headers);let i=o.data;return IN.forEach(e,(function(e){i=e.call(n,i,r.normalize(),t?t.status:void 0)})),r.normalize(),i}function fI(e){return!(!e||!e.__CANCEL__)}function pI(e,t,n){AN.call(this,null==e?"canceled":e,AN.ERR_CANCELED,t,n),this.name="CanceledError"}IN.inherits(pI,AN,{__CANCEL__:!0});const hI=pI;const mI=eI.hasStandardBrowserEnv?{write(e,t,n,o,r,i){const a=[e+"="+encodeURIComponent(t)];IN.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),IN.isString(o)&&a.push("path="+o),IN.isString(r)&&a.push("domain="+r),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function gI(e,t){return e&&!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const vI=eI.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function o(n){let o=n;return e&&(t.setAttribute("href",o),o=t.href),t.setAttribute("href",o),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=o(window.location.href),function(e){const t=IN.isString(e)?o(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};const bI=function(e,t){e=e||10;const n=new Array(e),o=new Array(e);let r,i=0,a=0;return t=void 0!==t?t:1e3,function(l){const c=Date.now(),s=o[a];r||(r=c),n[i]=l,o[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-r<t)return;const f=s&&c-s;return f?Math.round(1e3*d/f):void 0}};function yI(e,t){let n=0;const o=bI(50,250);return r=>{const i=r.loaded,a=r.lengthComputable?r.total:void 0,l=i-n,c=o(l);n=i;const s={loaded:i,total:a,progress:a?i/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&i<=a?(a-i)/c:void 0,event:r};s[t?"download":"upload"]=!0,e(s)}}const wI="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let o=e.data;const r=uI.from(e.headers).normalize();let i,a,{responseType:l,withXSRFToken:c}=e;function s(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}if(IN.isFormData(o))if(eI.hasStandardBrowserEnv||eI.hasStandardBrowserWebWorkerEnv)r.setContentType(!1);else if(!1!==(a=r.getContentType())){const[e,...t]=a?a.split(";").map((e=>e.trim())).filter(Boolean):[];r.setContentType([e||"multipart/form-data",...t].join("; "))}let u=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";r.set("Authorization","Basic "+btoa(t+":"+n))}const d=gI(e.baseURL,e.url);function f(){if(!u)return;const o=uI.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,n){const o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new AN("Request failed with status code "+n.status,[AN.ERR_BAD_REQUEST,AN.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),s()}),(function(e){n(e),s()}),{data:l&&"text"!==l&&"json"!==l?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:o,config:e,request:u}),u=null}if(u.open(e.method.toUpperCase(),UN(d,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(f)},u.onabort=function(){u&&(n(new AN("Request aborted",AN.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new AN("Network Error",AN.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const o=e.transitional||GN;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new AN(t,o.clarifyTimeoutError?AN.ETIMEDOUT:AN.ECONNABORTED,e,u)),u=null},eI.hasStandardBrowserEnv&&(c&&IN.isFunction(c)&&(c=c(e)),c||!1!==c&&vI(d))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&mI.read(e.xsrfCookieName);t&&r.set(e.xsrfHeaderName,t)}void 0===o&&r.setContentType(null),"setRequestHeader"in u&&IN.forEach(r.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),IN.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),l&&"json"!==l&&(u.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&u.addEventListener("progress",yI(e.onDownloadProgress,!0)),"function"===typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",yI(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=t=>{u&&(n(!t||t.type?new hI(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));const p=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(d);p&&-1===eI.protocols.indexOf(p)?n(new AN("Unsupported protocol "+p+":",AN.ERR_BAD_REQUEST,e)):u.send(o||null)}))},xI={http:null,xhr:wI};IN.forEach(xI,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(Qc){}Object.defineProperty(e,"adapterName",{value:t})}}));const SI=e=>"- ".concat(e),CI=e=>IN.isFunction(e)||null===e||!1===e,kI=e=>{e=IN.isArray(e)?e:[e];const{length:t}=e;let n,o;const r={};for(let i=0;i<t;i++){let t;if(n=e[i],o=n,!CI(n)&&(o=xI[(t=String(n)).toLowerCase()],void 0===o))throw new AN("Unknown adapter '".concat(t,"'"));if(o)break;r[t||"#"+i]=o}if(!o){const e=Object.entries(r).map((e=>{let[t,n]=e;return"adapter ".concat(t," ")+(!1===n?"is not supported by the environment":"is not available in the build")}));let n=t?e.length>1?"since :\n"+e.map(SI).join("\n"):" "+SI(e[0]):"as no adapter specified";throw new AN("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return o};function EI(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new hI(null,e)}function OI(e){EI(e),e.headers=uI.from(e.headers),e.data=dI.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return kI(e.adapter||oI.adapter)(e).then((function(t){return EI(e),t.data=dI.call(e,e.transformResponse,t),t.headers=uI.from(t.headers),t}),(function(t){return fI(t)||(EI(e),t&&t.response&&(t.response.data=dI.call(e,e.transformResponse,t.response),t.response.headers=uI.from(t.response.headers))),Promise.reject(t)}))}const _I=e=>e instanceof uI?e.toJSON():e;function PI(e,t){t=t||{};const n={};function o(e,t,n){return IN.isPlainObject(e)&&IN.isPlainObject(t)?IN.merge.call({caseless:n},e,t):IN.isPlainObject(t)?IN.merge({},t):IN.isArray(t)?t.slice():t}function r(e,t,n){return IN.isUndefined(t)?IN.isUndefined(e)?void 0:o(void 0,e,n):o(e,t,n)}function i(e,t){if(!IN.isUndefined(t))return o(void 0,t)}function a(e,t){return IN.isUndefined(t)?IN.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function l(n,r,i){return i in t?o(n,r):i in e?o(void 0,n):void 0}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(e,t)=>r(_I(e),_I(t),!0)};return IN.forEach(Object.keys(Object.assign({},e,t)),(function(o){const i=c[o]||r,a=i(e[o],t[o],o);IN.isUndefined(a)&&i!==l||(n[o]=a)})),n}const MI="1.6.7",NI={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{NI[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const II={};NI.transitional=function(e,t,n){function o(e,t){return"[Axios v1.6.7] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,i)=>{if(!1===e)throw new AN(o(r," has been removed"+(t?" in "+t:"")),AN.ERR_DEPRECATED);return t&&!II[r]&&(II[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,i)}};const RI={assertOptions:function(e,t,n){if("object"!==typeof e)throw new AN("options must be an object",AN.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let r=o.length;for(;r-- >0;){const i=o[r],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new AN("option "+i+" must be "+n,AN.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new AN("Unknown option "+i,AN.ERR_BAD_OPTION)}},validators:NI},TI=RI.validators;class jI{constructor(e){this.defaults=e,this.interceptors={request:new XN,response:new XN}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}throw n}}_request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},t=PI(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:r}=t;void 0!==n&&RI.assertOptions(n,{silentJSONParsing:TI.transitional(TI.boolean),forcedJSONParsing:TI.transitional(TI.boolean),clarifyTimeoutError:TI.transitional(TI.boolean)},!1),null!=o&&(IN.isFunction(o)?t.paramsSerializer={serialize:o}:RI.assertOptions(o,{encode:TI.function,serialize:TI.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=r&&IN.merge(r.common,r[t.method]);r&&IN.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete r[e]})),t.headers=uI.concat(i,r);const a=[];let l=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(l=l&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const c=[];let s;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let u,d=0;if(!l){const e=[OI.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,c),u=e.length,s=Promise.resolve(t);d<u;)s=s.then(e[d++],e[d++]);return s}u=a.length;let f=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{f=e(f)}catch(p){t.call(this,p);break}}try{s=OI.call(this,f)}catch(p){return Promise.reject(p)}for(d=0,u=c.length;d<u;)s=s.then(c[d++],c[d++]);return s}getUri(e){return UN(gI((e=PI(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}IN.forEach(["delete","get","head","options"],(function(e){jI.prototype[e]=function(t,n){return this.request(PI(n||{},{method:e,url:t,data:(n||{}).data}))}})),IN.forEach(["post","put","patch"],(function(e){function t(t){return function(n,o,r){return this.request(PI(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}jI.prototype[e]=t(),jI.prototype[e+"Form"]=t(!0)}));const AI=jI;class zI{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const o=new Promise((e=>{n.subscribe(e),t=e})).then(e);return o.cancel=function(){n.unsubscribe(t)},o},e((function(e,o,r){n.reason||(n.reason=new hI(e,o,r),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new zI((function(t){e=t})),cancel:e}}}const LI=zI;const DI={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(DI).forEach((e=>{let[t,n]=e;DI[n]=t}));const BI=DI;const FI=function e(t){const n=new AI(t),o=QM(AI.prototype.request,n);return IN.extend(o,AI.prototype,n,{allOwnKeys:!0}),IN.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(PI(t,n))},o}(oI);FI.Axios=AI,FI.CanceledError=hI,FI.CancelToken=LI,FI.isCancel=fI,FI.VERSION=MI,FI.toFormData=FN,FI.AxiosError=AN,FI.Cancel=FI.CanceledError,FI.all=function(e){return Promise.all(e)},FI.spread=function(e){return function(t){return e.apply(null,t)}},FI.isAxiosError=function(e){return IN.isObject(e)&&!0===e.isAxiosError},FI.mergeConfig=PI,FI.AxiosHeaders=uI,FI.formToJSON=e=>tI(IN.isHTMLForm(e)?new FormData(e):e),FI.getAdapter=kI,FI.HttpStatusCode=BI,FI.default=FI;const HI=FI;bP.register(fM,gM,WP,GP,sM,UP);const WI=()=>{const e=[{label:"RR Team",value:4740,name:"Registered"}],t=[{label:"Registered",value:2496,name:"Registered"},{label:"Touched",value:141,name:"Touched"},{label:"Paid",value:5,name:"Paid"},{label:"New",value:1625,name:"New"}],n=[{label:"Dead",value:2496,name:"Dead"},{label:"Neutral",value:141,name:"Neutral"},{label:"Hot",value:5,name:"Hot"},{label:"Negative",value:1625,name:"Negative"},{label:"Positive",value:5,name:"Positive"},{label:"New",value:1625,name:"New"},{label:"Close",value:5,name:"Close"}],[r,i]=(0,o.useState)({});(0,o.useEffect)((()=>{a()}),[]);const a=async()=>{await HI.get("https://universitysolutions.in/univadmin/app.php?a=getAdmissionCountDetails&univcode=097").then((e=>{0==e.data.error_code?i(e.data.data):i({})}))};return(0,sg.jsxs)("div",{children:[(0,sg.jsxs)(zy,{direction:"horizontal",children:[(0,sg.jsx)(Ax,{title:"Reg. Completed",style:{width:300},children:(0,sg.jsx)(LS.Title,{style:{textAlign:"center"},children:r.completed})}),(0,sg.jsx)(Ax,{title:"Applied",style:{width:300},children:(0,sg.jsx)(LS.Title,{style:{textAlign:"center"},children:r.applied})}),(0,sg.jsx)(Ax,{title:"Not Paid",style:{width:300},children:(0,sg.jsx)(LS.Title,{style:{textAlign:"center"},children:r.notpaid})})]}),(0,sg.jsxs)(zy,{direction:"horizontal",children:[(0,sg.jsx)("div",{style:{marginTop:"20px"},children:(0,sg.jsx)(Ax,{title:"Lead Stage",children:(0,sg.jsx)(YM,{data:{labels:t.map((e=>e.label)),datasets:[{data:t.map((e=>e.value)),backgroundColor:["#cbc87b","#9ab57f","#e55353","#7e4453"],label:["Registered","Touched","Paid","New"]}]},style:{width:330}})})}),(0,sg.jsx)("div",{style:{marginTop:"20px"},children:(0,sg.jsx)(Ax,{title:"Counsellor Lead Details",children:(0,sg.jsx)(YM,{data:{labels:e.map((e=>e.label)),datasets:[{label:["Registered"],data:e.map((e=>e.value)),backgroundColor:["#cbc87b"]}]},style:{width:330}})})}),(0,sg.jsx)("div",{style:{marginTop:"20px"},children:(0,sg.jsx)(Ax,{title:"Counsellor Lead Details",children:(0,sg.jsx)(YM,{data:{labels:n.map((e=>e.label)),datasets:[{label:["Dead","Neutral","Hot","Negative","Positive","New","Close"],data:n.map((e=>e.value)),backgroundColor:["#70c92f","#f8ca01","#bd1551","#e97f03","#9d419d","#7e4453","#9ab57f"]}]},style:{width:330}})})})]})]})};function VI(){return VI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},VI.apply(this,arguments)}const KI={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"};function qI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function UI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"===typeof e)return qI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qI(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function XI(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var GI=n(139),$I=n.n(GI);function YI(e,t){(function(e){return"string"===typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"===typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function QI(e){return e<=1?"".concat(100*Number(e),"%"):e}function JI(e){return 1===e.length?"0"+e:String(e)}function ZI(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function eR(e){return tR(e)/255}function tR(e){return parseInt(e,16)}var nR={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 oR(e){var t,n,o,r={r:0,g:0,b:0},i=1,a=null,l=null,c=null,s=!1,u=!1;return"string"===typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(nR[e])e=nR[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=lR.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=lR.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=lR.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=lR.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=lR.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=lR.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=lR.hex8.exec(e),n)return{r:tR(n[1]),g:tR(n[2]),b:tR(n[3]),a:eR(n[4]),format:t?"name":"hex8"};if(n=lR.hex6.exec(e),n)return{r:tR(n[1]),g:tR(n[2]),b:tR(n[3]),format:t?"name":"hex"};if(n=lR.hex4.exec(e),n)return{r:tR(n[1]+n[1]),g:tR(n[2]+n[2]),b:tR(n[3]+n[3]),a:eR(n[4]+n[4]),format:t?"name":"hex8"};if(n=lR.hex3.exec(e),n)return{r:tR(n[1]+n[1]),g:tR(n[2]+n[2]),b:tR(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"===typeof e&&(cR(e.r)&&cR(e.g)&&cR(e.b)?(t=e.r,n=e.g,o=e.b,r={r:255*YI(t,255),g:255*YI(n,255),b:255*YI(o,255)},s=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):cR(e.h)&&cR(e.s)&&cR(e.v)?(a=QI(e.s),l=QI(e.v),r=function(e,t,n){e=6*YI(e,360),t=YI(t,100),n=YI(n,100);var o=Math.floor(e),r=e-o,i=n*(1-t),a=n*(1-r*t),l=n*(1-(1-r)*t),c=o%6;return{r:255*[n,a,i,i,l,n][c],g:255*[l,n,n,a,i,i][c],b:255*[i,i,l,n,n,a][c]}}(e.h,a,l),s=!0,u="hsv"):cR(e.h)&&cR(e.s)&&cR(e.l)&&(a=QI(e.s),c=QI(e.l),r=function(e,t,n){var o,r,i;if(e=YI(e,360),t=YI(t,100),n=YI(n,100),0===t)r=n,i=n,o=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=ZI(l,a,e+1/3),r=ZI(l,a,e),i=ZI(l,a,e-1/3)}return{r:255*o,g:255*r,b:255*i}}(e.h,a,c),s=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(i=e.a)),i=function(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}(i),{ok:s,format:e.format||u,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:i}}var rR="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),iR="[\\s|\\(]+(".concat(rR,")[,|\\s]+(").concat(rR,")[,|\\s]+(").concat(rR,")\\s*\\)?"),aR="[\\s|\\(]+(".concat(rR,")[,|\\s]+(").concat(rR,")[,|\\s]+(").concat(rR,")[,|\\s]+(").concat(rR,")\\s*\\)?"),lR={CSS_UNIT:new RegExp(rR),rgb:new RegExp("rgb"+iR),rgba:new RegExp("rgba"+aR),hsl:new RegExp("hsl"+iR),hsla:new RegExp("hsla"+aR),hsv:new RegExp("hsv"+iR),hsva:new RegExp("hsva"+aR),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 cR(e){return Boolean(lR.CSS_UNIT.exec(String(e)))}var sR=2,uR=.16,dR=.05,fR=.05,pR=.15,hR=5,mR=4,gR=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function vR(e){var t=function(e,t,n){e=YI(e,255),t=YI(t,255),n=YI(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),i=0,a=o,l=o-r,c=0===o?0:l/o;if(o===r)i=0;else{switch(o){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return{h:i,s:c,v:a}}(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function bR(e){var t=e.r,n=e.g,o=e.b;return"#".concat(function(e,t,n,o){var r=[JI(Math.round(e).toString(16)),JI(Math.round(t).toString(16)),JI(Math.round(n).toString(16))];return o&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}(t,n,o,!1))}function yR(e,t,n){var o;return(o=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-sR*t:Math.round(e.h)+sR*t:n?Math.round(e.h)+sR*t:Math.round(e.h)-sR*t)<0?o+=360:o>=360&&(o-=360),o}function wR(e,t,n){return 0===e.h&&0===e.s?e.s:((o=n?e.s-uR*t:t===mR?e.s+uR:e.s+dR*t)>1&&(o=1),n&&t===hR&&o>.1&&(o=.1),o<.06&&(o=.06),Number(o.toFixed(2)));var o}function xR(e,t,n){var o;return(o=n?e.v+fR*t:e.v-pR*t)>1&&(o=1),Number(o.toFixed(2))}function SR(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],o=oR(e),r=hR;r>0;r-=1){var i=vR(o),a=bR(oR({h:yR(i,r,!0),s:wR(i,r,!0),v:xR(i,r,!0)}));n.push(a)}n.push(bR(o));for(var l=1;l<=mR;l+=1){var c=vR(o),s=bR(oR({h:yR(c,l),s:wR(c,l),v:xR(c,l)}));n.push(s)}return"dark"===t.theme?gR.map((function(e){var o=e.index,r=e.opacity;return bR(function(e,t,n){var o=n/100;return{r:(t.r-e.r)*o+e.r,g:(t.g-e.g)*o+e.g,b:(t.b-e.b)*o+e.b}}(oR(t.backgroundColor||"#141414"),oR(n[o]),100*r))})):n}var CR={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"},kR={},ER={};Object.keys(CR).forEach((function(e){kR[e]=SR(CR[e]),kR[e].primary=kR[e][5],ER[e]=SR(CR[e],{theme:"dark",backgroundColor:"#141414"}),ER[e].primary=ER[e][5]}));kR.red,kR.volcano,kR.gold,kR.orange,kR.yellow,kR.lime,kR.green,kR.cyan;var OR=kR.blue;kR.geekblue,kR.purple,kR.magenta,kR.grey,kR.grey;const _R=(0,o.createContext)({});function PR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function MR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PR(Object(n),!0).forEach((function(t){FS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var NR="data-rc-order",IR="data-rc-priority",RR="rc-util-key",TR=new Map;function jR(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):RR}function AR(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function zR(e){return Array.from((TR.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function LR(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("undefined"===typeof window||!window.document||!window.document.createElement)return null;var n=t.csp,o=t.prepend,r=t.priority,i=void 0===r?0:r,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(o),l="prependQueue"===a,c=document.createElement("style");c.setAttribute(NR,a),l&&i&&c.setAttribute(IR,"".concat(i)),null!==n&&void 0!==n&&n.nonce&&(c.nonce=null===n||void 0===n?void 0:n.nonce),c.innerHTML=e;var s=AR(t),u=s.firstChild;if(o){if(l){var d=(t.styles||zR(s)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(NR)))return!1;var t=Number(e.getAttribute(IR)||0);return i>=t}));if(d.length)return s.insertBefore(c,d[d.length-1].nextSibling),c}s.insertBefore(c,u)}else s.appendChild(c);return c}function DR(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=AR(t);return(t.styles||zR(n)).find((function(n){return n.getAttribute(jR(t))===e}))}function BR(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=AR(n),r=zR(o),i=MR(MR({},n),{},{styles:r});!function(e,t){var n=TR.get(e);if(!n||!function(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}(document,n)){var o=LR("",t),r=o.parentNode;TR.set(e,r),e.removeChild(o)}}(o,i);var a=DR(t,i);if(a){var l,c,s;if(null!==(l=i.csp)&&void 0!==l&&l.nonce&&a.nonce!==(null===(c=i.csp)||void 0===c?void 0:c.nonce))a.nonce=null===(s=i.csp)||void 0===s?void 0:s.nonce;return a.innerHTML!==e&&(a.innerHTML=e),a}var u=LR(e,i);return u.setAttribute(jR(i),t),u}function FR(e){var t;return null===e||void 0===e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function HR(e){return function(e){return FR(e)instanceof ShadowRoot}(e)?FR(e):null}var WR={},VR=[];function KR(e,t){}function qR(e,t){}function UR(e,t,n){t||WR[n]||(e(!1,n),WR[n]=!0)}function XR(e,t){UR(KR,e,t)}XR.preMessage=function(e){VR.push(e)},XR.resetWarned=function(){WR={}},XR.noteOnce=function(e,t){UR(qR,e,t)};const GR=XR;function $R(e){return"object"===DS(e)&&"string"===typeof e.name&&"string"===typeof e.theme&&("object"===DS(e.icon)||"function"===typeof e.icon)}function YR(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var o=e[n];if("class"===n)t.className=o,delete t.class;else delete t[n],t[function(e){return e.replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}(n)]=o;return t}),{})}function QR(e,t,n){return n?o.createElement(e.tag,MR(MR({key:t},YR(e.attrs)),n),(e.children||[]).map((function(n,o){return QR(n,"".concat(t,"-").concat(e.tag,"-").concat(o))}))):o.createElement(e.tag,MR({key:t},YR(e.attrs)),(e.children||[]).map((function(n,o){return QR(n,"".concat(t,"-").concat(e.tag,"-").concat(o))})))}function JR(e){return SR(e)[0]}function ZR(e){return e?Array.isArray(e)?e:[e]:[]}var eT=["icon","className","onClick","style","primaryColor","secondaryColor"],tT={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var nT=function(e){var t,n,r=e.icon,i=e.className,a=e.onClick,l=e.style,c=e.primaryColor,s=e.secondaryColor,u=XI(e,eT),d=o.useRef(),f=tT;if(c&&(f={primaryColor:c,secondaryColor:s||JR(c)}),function(e){var t=(0,o.useContext)(_R),n=t.csp,r=t.prefixCls,i="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";r&&(i=i.replace(/anticon/g,r)),(0,o.useEffect)((function(){var t=HR(e.current);BR(i,"@ant-design-icons",{prepend:!0,csp:n,attachTo:t})}),[])}(d),t=$R(r),n="icon should be icon definiton, but got ".concat(r),GR(t,"[@ant-design/icons] ".concat(n)),!$R(r))return null;var p=r;return p&&"function"===typeof p.icon&&(p=MR(MR({},p),{},{icon:p.icon(f.primaryColor,f.secondaryColor)})),QR(p.icon,"svg-".concat(p.name),MR(MR({className:i,onClick:a,style:l,"data-icon":p.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u),{},{ref:d}))};nT.displayName="IconReact",nT.getTwoToneColors=function(){return MR({},tT)},nT.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;tT.primaryColor=t,tT.secondaryColor=n||JR(t),tT.calculated=!!n};const oT=nT;function rT(e){var t=UI(ZR(e),2),n=t[0],o=t[1];return oT.setTwoToneColors({primaryColor:n,secondaryColor:o})}var iT=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];rT(OR.primary);var aT=o.forwardRef((function(e,t){var n=e.className,r=e.icon,i=e.spin,a=e.rotate,l=e.tabIndex,c=e.onClick,s=e.twoToneColor,u=XI(e,iT),d=o.useContext(_R),f=d.prefixCls,p=void 0===f?"anticon":f,h=d.rootClassName,m=$I()(h,p,FS(FS({},"".concat(p,"-").concat(r.name),!!r.name),"".concat(p,"-spin"),!!i||"loading"===r.name),n),g=l;void 0===g&&c&&(g=-1);var v=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=UI(ZR(s),2),y=b[0],w=b[1];return o.createElement("span",VI({role:"img","aria-label":r.name},u,{ref:t,tabIndex:g,onClick:c,className:m}),o.createElement(oT,{icon:r,primaryColor:y,secondaryColor:w,style:v}))}));aT.displayName="AntdIcon",aT.getTwoToneColor=function(){var e=oT.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},aT.setTwoToneColor=rT;const lT=aT;var cT=function(e,t){return o.createElement(lT,VI({},e,{ref:t,icon:KI}))};const sT=o.forwardRef(cT),uT=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:o,lineWidth:r,textPaddingInline:i,orientationMargin:a,verticalMarginInline:l}=e;return{[t]:Object.assign(Object.assign({},Ca(e)),{borderBlockStart:"".concat(qr(r)," solid ").concat(o),"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:"".concat(qr(r)," solid ").concat(o)},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:"".concat(qr(e.dividerHorizontalGutterMargin)," 0")},["&-horizontal".concat(t,"-with-text")]:{display:"flex",alignItems:"center",margin:"".concat(qr(e.dividerHorizontalWithTextGutterMargin)," 0"),color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:"0 ".concat(o),"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:"".concat(qr(r)," solid transparent"),borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},["&-horizontal".concat(t,"-with-text-left")]:{"&::before":{width:"calc(".concat(a," * 100%)")},"&::after":{width:"calc(100% - ".concat(a," * 100%)")}},["&-horizontal".concat(t,"-with-text-right")]:{"&::before":{width:"calc(100% - ".concat(a," * 100%)")},"&::after":{width:"calc(".concat(a," * 100%)")}},["".concat(t,"-inner-text")]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:o,borderStyle:"dashed",borderWidth:"".concat(qr(r)," 0 0")},["&-horizontal".concat(t,"-with-text").concat(t,"-dashed")]:{"&::before, &::after":{borderStyle:"dashed none none"}},["&-vertical".concat(t,"-dashed")]:{borderInlineStartWidth:r,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},["&-plain".concat(t,"-with-text")]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},["&-horizontal".concat(t,"-with-text-left").concat(t,"-no-default-orientation-margin-left")]:{"&::before":{width:0},"&::after":{width:"100%"},["".concat(t,"-inner-text")]:{paddingInlineStart:n}},["&-horizontal".concat(t,"-with-text-right").concat(t,"-no-default-orientation-margin-right")]:{"&::before":{width:"100%"},"&::after":{width:0},["".concat(t,"-inner-text")]:{paddingInlineEnd:n}}})}},dT=Oc("Divider",(e=>{const t=Ga(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[uT(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS})),{unitless:{orientationMargin:!0}});var fT=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const pT=e=>{const{getPrefixCls:t,direction:n,divider:r}=o.useContext(nl),{prefixCls:i,type:a="horizontal",orientation:l="center",orientationMargin:c,className:s,rootClassName:u,children:d,dashed:f,plain:p,style:h}=e,m=fT(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),g=t("divider",i),[v,b,y]=dT(g),w=l.length>0?"-".concat(l):l,x=!!d,S="left"===l&&null!=c,C="right"===l&&null!=c,k=je()(g,null===r||void 0===r?void 0:r.className,b,y,"".concat(g,"-").concat(a),{["".concat(g,"-with-text")]:x,["".concat(g,"-with-text").concat(w)]:x,["".concat(g,"-dashed")]:!!f,["".concat(g,"-plain")]:!!p,["".concat(g,"-rtl")]:"rtl"===n,["".concat(g,"-no-default-orientation-margin-left")]:S,["".concat(g,"-no-default-orientation-margin-right")]:C},s,u),E=o.useMemo((()=>"number"===typeof c?c:/^\d+$/.test(c)?Number(c):c),[c]),O=Object.assign(Object.assign({},S&&{marginLeft:E}),C&&{marginRight:E});return v(o.createElement("div",Object.assign({className:k,style:Object.assign(Object.assign({},null===r||void 0===r?void 0:r.style),h)},m,{role:"separator"}),d&&"vertical"!==a&&o.createElement("span",{className:"".concat(g,"-inner-text"),style:O},d)))};var hT={},mT="rc-table-internal-hook";function gT(e){var t=o.createContext(void 0);return{Context:t,Provider:function(e){var n=e.value,r=e.children,i=o.useRef(n);i.current=n;var l=We(o.useState((function(){return{getValue:function(){return i.current},listeners:new Set}})),1)[0];return Zr((function(){(0,a.unstable_batchedUpdates)((function(){l.listeners.forEach((function(e){e(n)}))}))}),[n]),o.createElement(t.Provider,{value:l},r)},defaultValue:e}}function vT(e,t){var n=Ja("function"===typeof t?t:function(e){if(void 0===t)return e;if(!Array.isArray(t))return e[t];var n={};return t.forEach((function(t){n[t]=e[t]})),n}),r=o.useContext(null===e||void 0===e?void 0:e.Context),i=r||{},a=i.listeners,l=i.getValue,c=o.useRef();c.current=n(r?l():null===e||void 0===e?void 0:e.defaultValue);var s=We(o.useState({}),2)[1];return Zr((function(){if(r)return a.add(e),function(){a.delete(e)};function e(e){var t=n(e);Pn(c.current,t,!0)||s({})}}),[r]),c.current}function bT(){var e=o.createContext(null);function t(){return o.useContext(e)}return{makeImmutable:function(n,r){var i=Ye(n),a=function(a,l){var c=i?{ref:l}:{},s=o.useRef(0),u=o.useRef(a);return null!==t()?o.createElement(n,Jt({},a,c)):(r&&!r(u.current,a)||(s.current+=1),u.current=a,o.createElement(e.Provider,{value:s.current},o.createElement(n,Jt({},a,c))))};return i?o.forwardRef(a):a},responseImmutable:function(e,n){var r=Ye(e),i=function(n,i){var a=r?{ref:i}:{};return t(),o.createElement(e,Jt({},n,a))};return r?o.memo(o.forwardRef(i),n):o.memo(i,n)},useImmutableMark:t}}var yT=bT(),wT=(yT.makeImmutable,yT.responseImmutable,yT.useImmutableMark,bT()),xT=wT.makeImmutable,ST=wT.responseImmutable,CT=wT.useImmutableMark;const kT=gT();const ET=o.createContext({renderWithProps:!1});var OT="RC_TABLE_KEY";function _T(e){var t=[],n={};return e.forEach((function(e){for(var o,r=e||{},i=r.key,a=r.dataIndex,l=i||(o=a,void 0===o||null===o?[]:Array.isArray(o)?o:[o]).join("-")||OT;n[l];)l="".concat(l,"_next");n[l]=!0,t.push(l)})),t}function PT(e){return null!==e&&void 0!==e}function MT(e,t,n,r,i,a){var l=o.useContext(ET),c=Ue((function(){if(PT(r))return[r];var a=null===t||void 0===t||""===t?[]:Array.isArray(t)?t:[t],c=so(e,a),s=c,u=void 0;if(i){var d=i(c,e,n);!function(e){return e&&"object"===Ae(e)&&!Array.isArray(e)&&!o.isValidElement(e)}(d)?s=d:(s=d.children,u=d.props,l.renderWithProps=!0)}return[s,u]}),[CT(),e,r,t,i,n],(function(e,t){if(a){var n=We(e,2)[1],o=We(t,2)[1];return a(o,n)}return!!l.renderWithProps||!Pn(e,t,!0)}));return c}function NT(e){var t,n,r,i,a,l,c,s;var u=e.component,d=e.children,f=e.ellipsis,p=e.scope,h=e.prefixCls,m=e.className,g=e.align,v=e.record,b=e.render,y=e.dataIndex,w=e.renderIndex,x=e.shouldCellUpdate,S=e.index,C=e.rowType,k=e.colSpan,E=e.rowSpan,O=e.fixLeft,_=e.fixRight,P=e.firstFixLeft,M=e.lastFixLeft,N=e.firstFixRight,I=e.lastFixRight,R=e.appendNode,T=e.additionalProps,j=void 0===T?{}:T,A=e.isSticky,z="".concat(h,"-cell"),L=vT(kT,["supportSticky","allColumnsFixedLeft"]),D=L.supportSticky,B=L.allColumnsFixedLeft,F=We(MT(v,y,w,d,b,x),2),H=F[0],W=F[1],V={},K="number"===typeof O&&D,q="number"===typeof _&&D;K&&(V.position="sticky",V.left=O),q&&(V.position="sticky",V.right=_);var U=null!==(t=null!==(n=null!==(r=null===W||void 0===W?void 0:W.colSpan)&&void 0!==r?r:j.colSpan)&&void 0!==n?n:k)&&void 0!==t?t:1,X=null!==(i=null!==(a=null!==(l=null===W||void 0===W?void 0:W.rowSpan)&&void 0!==l?l:j.rowSpan)&&void 0!==a?a:E)&&void 0!==i?i:1,G=function(e,t){return vT(kT,(function(n){var o,r,i,a;return[(o=e,r=t||1,i=n.hoverStartRow,a=n.hoverEndRow,o<=a&&o+r-1>=i),n.onHover]}))}(S,X),$=We(G,2),Y=$[0],Q=$[1],J=Ja((function(e){var t;v&&Q(S,S+X-1),null===j||void 0===j||null===(t=j.onMouseEnter)||void 0===t||t.call(j,e)})),Z=Ja((function(e){var t;v&&Q(-1,-1),null===j||void 0===j||null===(t=j.onMouseLeave)||void 0===t||t.call(j,e)}));if(0===U||0===X)return null;var ee=null!==(c=j.title)&&void 0!==c?c:function(e){var t,n=e.ellipsis,r=e.rowType,i=e.children,a=!0===n?{showTitle:!0}:n;return a&&(a.showTitle||"header"===r)&&("string"===typeof i||"number"===typeof i?t=i.toString():o.isValidElement(i)&&"string"===typeof i.props.children&&(t=i.props.children)),t}({rowType:C,ellipsis:f,children:H}),te=je()(z,m,(Le(s={},"".concat(z,"-fix-left"),K&&D),Le(s,"".concat(z,"-fix-left-first"),P&&D),Le(s,"".concat(z,"-fix-left-last"),M&&D),Le(s,"".concat(z,"-fix-left-all"),M&&B&&D),Le(s,"".concat(z,"-fix-right"),q&&D),Le(s,"".concat(z,"-fix-right-first"),N&&D),Le(s,"".concat(z,"-fix-right-last"),I&&D),Le(s,"".concat(z,"-ellipsis"),f),Le(s,"".concat(z,"-with-append"),R),Le(s,"".concat(z,"-fix-sticky"),(K||q)&&A&&D),Le(s,"".concat(z,"-row-hover"),!W&&Y),s),j.className,null===W||void 0===W?void 0:W.className),ne={};g&&(ne.textAlign=g);var oe=Be(Be(Be(Be({},V),j.style),ne),null===W||void 0===W?void 0:W.style),re=H;return"object"!==Ae(re)||Array.isArray(re)||o.isValidElement(re)||(re=null),f&&(M||N)&&(re=o.createElement("span",{className:"".concat(z,"-content")},re)),o.createElement(u,Jt({},W,j,{className:te,style:oe,title:ee,scope:p,onMouseEnter:J,onMouseLeave:Z,colSpan:1!==U?U:null,rowSpan:1!==X?X:null}),R,re)}const IT=o.memo(NT);function RT(e,t,n,o,r,i){var a,l,c=n[e]||{},s=n[t]||{};"left"===c.fixed?a=o.left["rtl"===r?t:e]:"right"===s.fixed&&(l=o.right["rtl"===r?e:t]);var u=!1,d=!1,f=!1,p=!1,h=n[t+1],m=n[e-1],g=!(null!==i&&void 0!==i&&i.children);if("rtl"===r){if(void 0!==a)p=!(m&&"left"===m.fixed)&&g;else if(void 0!==l){f=!(h&&"right"===h.fixed)&&g}}else if(void 0!==a){u=!(h&&"left"===h.fixed)&&g}else if(void 0!==l){d=!(m&&"right"===m.fixed)&&g}return{fixLeft:a,fixRight:l,lastFixLeft:u,firstFixRight:d,lastFixRight:f,firstFixLeft:p,isSticky:o.isSticky}}const TT=o.createContext({});var jT=["children"];function AT(e){return e.children}AT.Row=function(e){var t=e.children,n=Qe(e,jT);return o.createElement("tr",n,t)},AT.Cell=function(e){var t=e.className,n=e.index,r=e.children,i=e.colSpan,a=void 0===i?1:i,l=e.rowSpan,c=e.align,s=vT(kT,["prefixCls","direction"]),u=s.prefixCls,d=s.direction,f=o.useContext(TT),p=f.scrollColumnIndex,h=f.stickyOffsets,m=f.flattenColumns,g=f.columns,v=n+a-1+1===p?a+1:a,b=RT(n,n+v-1,m,h,d,null===g||void 0===g?void 0:g[n]);return o.createElement(IT,Jt({className:t,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:c,colSpan:v,rowSpan:l,render:function(){return r}},b))};const zT=AT;const LT=ST((function(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,i=e.columns,a=vT(kT,"prefixCls"),l=r.length-1,c=r[l],s=o.useMemo((function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:null!==c&&void 0!==c&&c.scrollbar?l:null,columns:i}}),[c,r,l,n,i]);return o.createElement(TT.Provider,{value:s},o.createElement("tfoot",{className:"".concat(a,"-summary")},t))}));var DT=zT,BT="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/),FT="aria-",HT="data-";function WT(e,t){return 0===e.indexOf(t)}function VT(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:Be({},n);var o={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||WT(n,FT))||t.data&&WT(n,HT)||t.attr&&BT.includes(n))&&(o[n]=e[n])})),o}function KT(e,t,n,o,r,i,a){e.push({record:t,indent:n,index:a});var l=i(t),c=null===r||void 0===r?void 0:r.has(l);if(t&&Array.isArray(t[o])&&c)for(var s=0;s<t[o].length;s+=1)KT(e,t[o][s],n+1,o,r,i,s)}function qT(e,t,n,r){var i=o.useMemo((function(){if(null!==n&&void 0!==n&&n.size){for(var o=[],i=0;i<(null===e||void 0===e?void 0:e.length);i+=1){KT(o,e[i],0,t,n,r,i)}return o}return null===e||void 0===e?void 0:e.map((function(e,t){return{record:e,indent:0,index:t}}))}),[e,t,n,r]);return i}function UT(e,t,n,o){var r,i=vT(kT,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),a=i.flattenColumns,l=i.expandableType,c=i.expandedKeys,s=i.childrenColumnName,u=i.onTriggerExpand,d=i.rowExpandable,f=i.onRow,p=i.expandRowByClick,h=i.rowClassName,m="nest"===l,g="row"===l&&(!d||d(e)),v=g||m,b=c&&c.has(t),y=s&&e&&e[s],w=Ja(u),x=null===f||void 0===f?void 0:f(e,n),S=null===x||void 0===x?void 0:x.onClick;"string"===typeof h?r=h:"function"===typeof h&&(r=h(e,n,o));var C=_T(a);return Be(Be({},i),{},{columnsKey:C,nestExpandable:m,expanded:b,hasNestChildren:y,record:e,onTriggerExpand:w,rowSupportExpand:g,expandable:v,rowProps:Be(Be({},x),{},{className:je()(r,null===x||void 0===x?void 0:x.className),onClick:function(t){p&&v&&u(e,t);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];null===S||void 0===S||S.apply(void 0,[t].concat(o))}})})}const XT=function(e){var t=e.prefixCls,n=e.children,r=e.component,i=e.cellComponent,a=e.className,l=e.expanded,c=e.colSpan,s=e.isEmpty,u=vT(kT,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),d=u.scrollbarSize,f=u.fixHeader,p=u.fixColumn,h=u.componentWidth,m=u.horizonScroll,g=n;return(s?m&&h:p)&&(g=o.createElement("div",{style:{width:h-(f?d:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},g)),o.createElement(r,{className:a,style:{display:l?null:"none"}},o.createElement(IT,{component:i,prefixCls:t,colSpan:c},g))};function GT(e,t,n,r,i){var a,l,c=e.record,s=e.prefixCls,u=e.columnsKey,d=e.fixedInfoList,f=e.expandIconColumnIndex,p=e.nestExpandable,h=e.indentSize,m=e.expandIcon,g=e.expanded,v=e.hasNestChildren,b=e.onTriggerExpand,y=u[n],w=d[n];return n===(f||0)&&p&&(a=o.createElement(o.Fragment,null,o.createElement("span",{style:{paddingLeft:"".concat(h*r,"px")},className:"".concat(s,"-row-indent indent-level-").concat(r)}),m({prefixCls:s,expanded:g,expandable:v,record:c,onExpand:b}))),t.onCell&&(l=t.onCell(c,i)),{key:y,fixedInfo:w,appendCellNode:a,additionalCellProps:l||{}}}const $T=ST((function(e){var t=e.className,n=e.style,r=e.record,i=e.index,a=e.renderIndex,l=e.rowKey,c=e.indent,s=void 0===c?0:c,u=e.rowComponent,d=e.cellComponent,f=e.scopeCellComponent,p=UT(r,l,i,s),h=p.prefixCls,m=p.flattenColumns,g=p.expandedRowClassName,v=p.expandedRowRender,b=p.rowProps,y=p.expanded,w=p.rowSupportExpand,x=o.useRef(!1);x.current||(x.current=y);var S,C=g&&g(r,i,s),k=o.createElement(u,Jt({},b,{"data-row-key":l,className:je()(t,"".concat(h,"-row"),"".concat(h,"-row-level-").concat(s),null===b||void 0===b?void 0:b.className,s>=1?C:""),style:Be(Be({},n),null===b||void 0===b?void 0:b.style)}),m.map((function(e,t){var n=e.render,l=e.dataIndex,c=e.className,u=GT(p,e,t,s,i),m=u.key,g=u.fixedInfo,v=u.appendCellNode,b=u.additionalCellProps;return o.createElement(IT,Jt({className:c,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?f:d,prefixCls:h,key:m,record:r,index:i,renderIndex:a,dataIndex:l,render:n,shouldCellUpdate:e.shouldCellUpdate},g,{appendNode:v,additionalProps:b}))})));if(w&&(x.current||y)){var E=v(r,i,s+1,y);S=o.createElement(XT,{expanded:y,className:je()("".concat(h,"-expanded-row"),"".concat(h,"-expanded-row-level-").concat(s+1),C),prefixCls:h,component:u,cellComponent:d,colSpan:m.length,isEmpty:!1},E)}return o.createElement(o.Fragment,null,k,S)}));function YT(e){var t=e.columnKey,n=e.onColumnResize,r=o.useRef();return o.useEffect((function(){r.current&&n(t,r.current.offsetWidth)}),[]),o.createElement(ld,{data:t},o.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},o.createElement("div",{style:{height:0,overflow:"hidden"}},"\xa0")))}function QT(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize;return o.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},o.createElement(ld.Collection,{onBatchResize:function(e){e.forEach((function(e){var t=e.data,n=e.size;r(t,n.offsetWidth)}))}},n.map((function(e){return o.createElement(YT,{key:e,columnKey:e,onColumnResize:r})}))))}const JT=ST((function(e){var t,n=e.data,r=e.measureColumnWidth,i=vT(kT,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),a=i.prefixCls,l=i.getComponent,c=i.onColumnResize,s=i.flattenColumns,u=i.getRowKey,d=i.expandedKeys,f=i.childrenColumnName,p=i.emptyNode,h=qT(n,f,d,u),m=o.useRef({renderWithProps:!1}),g=l(["body","wrapper"],"tbody"),v=l(["body","row"],"tr"),b=l(["body","cell"],"td"),y=l(["body","cell"],"th");t=n.length?h.map((function(e,t){var n=e.record,r=e.indent,i=e.index,a=u(n,t);return o.createElement($T,{key:a,rowKey:a,record:n,index:t,renderIndex:i,rowComponent:v,cellComponent:b,scopeCellComponent:y,getRowKey:u,indent:r})})):o.createElement(XT,{expanded:!0,className:"".concat(a,"-placeholder"),prefixCls:a,component:v,cellComponent:b,colSpan:s.length,isEmpty:!0},p);var w=_T(s);return o.createElement(ET.Provider,{value:m.current},o.createElement(g,{className:"".concat(a,"-tbody")},r&&o.createElement(QT,{prefixCls:a,columnsKey:w,onColumnResize:c}),t))}));var ZT=["expandable"],ej="RC_TABLE_INTERNAL_COL_DEFINE";var tj=["columnType"];const nj=function(e){for(var t=e.colWidths,n=e.columns,r=[],i=!1,a=(e.columCount||n.length)-1;a>=0;a-=1){var l=t[a],c=n&&n[a],s=c&&c[ej];if(l||s||i){var u=s||{},d=(u.columnType,Qe(u,tj));r.unshift(o.createElement("col",Jt({key:a,style:{width:l}},d))),i=!0}}return o.createElement("colgroup",null,r)};var oj=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];var rj=o.forwardRef((function(e,t){var n=e.className,r=e.noData,i=e.columns,a=e.flattenColumns,l=e.colWidths,c=e.columCount,s=e.stickyOffsets,u=e.direction,d=e.fixHeader,f=e.stickyTopOffset,p=e.stickyBottomOffset,h=e.stickyClassName,m=e.onScroll,g=e.maxContentScroll,v=e.children,b=Qe(e,oj),y=vT(kT,["prefixCls","scrollbarSize","isSticky"]),w=y.prefixCls,x=y.scrollbarSize,S=y.isSticky,C=S&&!d?0:x,k=o.useRef(null),E=o.useCallback((function(e){Xe(t,e),Xe(k,e)}),[]);o.useEffect((function(){var e;function t(e){var t=e,n=t.currentTarget,o=t.deltaX;o&&(m({currentTarget:n,scrollLeft:n.scrollLeft+o}),e.preventDefault())}return null===(e=k.current)||void 0===e||e.addEventListener("wheel",t),function(){var e;null===(e=k.current)||void 0===e||e.removeEventListener("wheel",t)}}),[]);var O=o.useMemo((function(){return a.every((function(e){return e.width}))}),[a]),_=a[a.length-1],P={fixed:_?_.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(w,"-cell-scrollbar")}}},M=(0,o.useMemo)((function(){return C?[].concat(Re(i),[P]):i}),[C,i]),N=(0,o.useMemo)((function(){return C?[].concat(Re(a),[P]):a}),[C,a]),I=(0,o.useMemo)((function(){var e=s.right,t=s.left;return Be(Be({},s),{},{left:"rtl"===u?[].concat(Re(t.map((function(e){return e+C}))),[0]):t,right:"rtl"===u?e:[].concat(Re(e.map((function(e){return e+C}))),[0]),isSticky:S})}),[C,s,S]),R=function(e,t){return(0,o.useMemo)((function(){for(var n=[],o=0;o<t;o+=1){var r=e[o];if(void 0===r)return null;n[o]=r}return n}),[e.join("_"),t])}(l,c);return o.createElement("div",{style:Be({overflow:"hidden"},S?{top:f,bottom:p}:{}),ref:E,className:je()(n,Le({},h,!!h))},o.createElement("table",{style:{tableLayout:"fixed",visibility:r||R?null:"hidden"}},(!r||!g||O)&&o.createElement(nj,{colWidths:R?[].concat(Re(R),[C]):[],columCount:c+1,columns:N}),v(Be(Be({},b),{},{stickyOffsets:I,columns:M,flattenColumns:N}))))}));const ij=o.memo(rj);const aj=function(e){var t,n=e.cells,r=e.stickyOffsets,i=e.flattenColumns,a=e.rowComponent,l=e.cellComponent,c=e.tdCellComponent,s=e.onHeaderRow,u=e.index,d=vT(kT,["prefixCls","direction"]),f=d.prefixCls,p=d.direction;s&&(t=s(n.map((function(e){return e.column})),u));var h=_T(n.map((function(e){return e.column})));return o.createElement(a,t,n.map((function(e,t){var n,a=e.column,s=RT(e.colStart,e.colEnd,i,r,p,a);return a&&a.onHeaderCell&&(n=e.column.onHeaderCell(a)),o.createElement(IT,Jt({},e,{scope:a.title?e.colSpan>1?"colgroup":"col":null,ellipsis:a.ellipsis,align:a.align,component:a.title?l:c,prefixCls:f,key:h[t]},s,{additionalProps:n,rowType:"header"}))})))};const lj=ST((function(e){var t=e.stickyOffsets,n=e.columns,r=e.flattenColumns,i=e.onHeaderRow,a=vT(kT,["prefixCls","getComponent"]),l=a.prefixCls,c=a.getComponent,s=o.useMemo((function(){return function(e){var t=[];!function e(n,o){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[r]=t[r]||[];var i=o,a=n.filter(Boolean).map((function(n){var o={key:n.key,className:n.className||"",children:n.title,column:n,colStart:i},a=1,l=n.children;return l&&l.length>0&&(a=e(l,i,r+1).reduce((function(e,t){return e+t}),0),o.hasSubColumns=!0),"colSpan"in n&&(a=n.colSpan),"rowSpan"in n&&(o.rowSpan=n.rowSpan),o.colSpan=a,o.colEnd=o.colStart+a-1,t[r].push(o),i+=a,a}));return a}(e,0);for(var n=t.length,o=function(e){t[e].forEach((function(t){"rowSpan"in t||t.hasSubColumns||(t.rowSpan=n-e)}))},r=0;r<n;r+=1)o(r);return t}(n)}),[n]),u=c(["header","wrapper"],"thead"),d=c(["header","row"],"tr"),f=c(["header","cell"],"th"),p=c(["header","cell"],"td");return o.createElement(u,{className:"".concat(l,"-thead")},s.map((function(e,n){return o.createElement(aj,{key:n,flattenColumns:r,cells:e,stickyOffsets:t,rowComponent:d,cellComponent:f,tdCellComponent:p,onHeaderRow:i,index:n})})))}));function cj(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"number"===typeof t?t:t.endsWith("%")?e*parseFloat(t)/100:null}var sj=["children"],uj=["fixed"];function dj(e){return wn(e).filter((function(e){return o.isValidElement(e)})).map((function(e){var t=e.key,n=e.props,o=n.children,r=Be({key:t},Qe(n,sj));return o&&(r.children=dj(o)),r}))}function fj(e){return e.filter((function(e){return e&&"object"===Ae(e)&&!e.hidden})).map((function(e){var t=e.children;return t&&t.length>0?Be(Be({},e),{},{children:fj(t)}):e}))}function pj(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key";return e.filter((function(e){return e&&"object"===Ae(e)})).reduce((function(e,n,o){var r=n.fixed,i=!0===r?"left":r,a="".concat(t,"-").concat(o),l=n.children;return l&&l.length>0?[].concat(Re(e),Re(pj(l,a).map((function(e){return Be({fixed:i},e)})))):[].concat(Re(e),[Be(Be({key:a},n),{},{fixed:i})])}),[])}const hj=function(e,t){var n=e.prefixCls,r=e.columns,i=e.children,a=e.expandable,l=e.expandedKeys,c=e.columnTitle,s=e.getRowKey,u=e.onTriggerExpand,d=e.expandIcon,f=e.rowExpandable,p=e.expandIconColumnIndex,h=e.direction,m=e.expandRowByClick,g=e.columnWidth,v=e.fixed,b=e.scrollWidth,y=e.clientWidth,w=o.useMemo((function(){return fj((r||dj(i)||[]).slice())}),[r,i]),x=o.useMemo((function(){if(a){var e,t=w.slice();if(!t.includes(hT)){var r=p||0;r>=0&&t.splice(r,0,hT)}0;var i=t.indexOf(hT);t=t.filter((function(e,t){return e!==hT||t===i}));var h,b=w[i];h="left"!==v&&!v||p?"right"!==v&&!v||p!==w.length?b?b.fixed:null:"right":"left";var y=(Le(e={},ej,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),Le(e,"title",c),Le(e,"fixed",h),Le(e,"className","".concat(n,"-row-expand-icon-cell")),Le(e,"width",g),Le(e,"render",(function(e,t,r){var i=s(t,r),a=l.has(i),c=!f||f(t),p=d({prefixCls:n,expanded:a,expandable:c,record:t,onExpand:u});return m?o.createElement("span",{onClick:function(e){return e.stopPropagation()}},p):p})),e);return t.map((function(e){return e===hT?y:e}))}return w.filter((function(e){return e!==hT}))}),[a,w,s,l,d,h]),S=o.useMemo((function(){var e=x;return t&&(e=t(e)),e.length||(e=[{render:function(){return null}}]),e}),[t,x,h]),C=o.useMemo((function(){return"rtl"===h?function(e){return e.map((function(e){var t=e.fixed,n=t;return"left"===t?n="right":"right"===t&&(n="left"),Be({fixed:n},Qe(e,uj))}))}(pj(S)):pj(S)}),[S,h,b]),k=o.useMemo((function(){for(var e=-1,t=C.length-1;t>=0;t-=1){var n=C[t].fixed;if("left"===n||!0===n){e=t;break}}if(e>=0)for(var o=0;o<=e;o+=1){var r=C[o].fixed;if("left"!==r&&!0!==r)return!0}var i=C.findIndex((function(e){return"right"===e.fixed}));if(i>=0)for(var a=i;a<C.length;a+=1){if("right"!==C[a].fixed)return!0}return!1}),[C]),E=function(e,t,n){return o.useMemo((function(){if(t&&t>0){var o=0,r=0;e.forEach((function(e){var n=cj(t,e.width);n?o+=n:r+=1}));var i=Math.max(t,n),a=Math.max(i-o,r),l=r,c=a/r,s=0,u=e.map((function(e){var n=Be({},e),o=cj(t,n.width);if(o)n.width=o;else{var r=Math.floor(c);n.width=1===l?a:r,a-=r,l-=1}return s+=n.width,n}));if(s<i){var d=i/s;a=i,u.forEach((function(e,t){var n=Math.floor(e.width*d);e.width=t===u.length-1?a:n,a-=n}))}return[u,Math.max(s,i)]}return[e,t]}),[e,t,n])}(C,b,y),O=We(E,2),_=O[0],P=O[1];return[S,_,P,k]};function mj(e){var t,n=e.prefixCls,r=e.record,i=e.onExpand,a=e.expanded,l=e.expandable,c="".concat(n,"-row-expand-icon");if(!l)return o.createElement("span",{className:je()(c,"".concat(n,"-row-spaced"))});return o.createElement("span",{className:je()(c,(t={},Le(t,"".concat(n,"-row-expanded"),a),Le(t,"".concat(n,"-row-collapsed"),!a),t)),onClick:function(e){i(r,e),e.stopPropagation()}})}function gj(e,t,n){var r=function(e){var t,n=e.expandable,o=Qe(e,ZT);return!1===(t="expandable"in e?Be(Be({},o),n):o).showExpandColumn&&(t.expandIconColumnIndex=-1),t}(e),i=r.expandIcon,a=r.expandedRowKeys,l=r.defaultExpandedRowKeys,c=r.defaultExpandAllRows,s=r.expandedRowRender,u=r.onExpand,d=r.onExpandedRowsChange,f=i||mj,p=r.childrenColumnName||"children",h=o.useMemo((function(){return s?"row":!!(e.expandable&&e.internalHooks===mT&&e.expandable.__PARENT_RENDER_ICON__||t.some((function(e){return e&&"object"===Ae(e)&&e[p]})))&&"nest"}),[!!s,t]),m=o.useState((function(){return l||(c?function(e,t,n){var o=[];return function e(r){(r||[]).forEach((function(r,i){o.push(t(r,i)),e(r[n])}))}(e),o}(t,n,p):[])})),g=We(m,2),v=g[0],b=g[1],y=o.useMemo((function(){return new Set(a||v||[])}),[a,v]),w=o.useCallback((function(e){var o,r=n(e,t.indexOf(e)),i=y.has(r);i?(y.delete(r),o=Re(y)):o=[].concat(Re(y),[r]),b(o),u&&u(!i,e),d&&d(o)}),[n,y,t,u,d]);return[r,h,y,f,p,w]}function vj(e){var t=(0,o.useRef)(e),n=We((0,o.useState)({}),2)[1],r=(0,o.useRef)(null),i=(0,o.useRef)([]);return(0,o.useEffect)((function(){return function(){r.current=null}}),[]),[t.current,function(e){i.current.push(e);var o=Promise.resolve();r.current=o,o.then((function(){if(r.current===o){var e=i.current,a=t.current;i.current=[],e.forEach((function(e){t.current=e(t.current)})),r.current=null,a!==t.current&&n({})}}))}]}var bj=Ct()?window:null;const yj=function(e,t,n){var r=(0,o.useMemo)((function(){var o=t.length,r=function(n,o,r){for(var i=[],a=0,l=n;l!==o;l+=r)i.push(a),t[l].fixed&&(a+=e[l]||0);return i},i=r(0,o,1),a=r(o-1,-1,-1).reverse();return"rtl"===n?{left:a,right:i}:{left:i,right:a}}),[e,t,n]);return r};const wj=function(e){var t=e.className,n=e.children;return o.createElement("div",{className:t},n)};function xj(e,t,n,o){var r=a.unstable_batchedUpdates?function(e){a.unstable_batchedUpdates(n,e)}:n;return null!==e&&void 0!==e&&e.addEventListener&&e.addEventListener(t,r,o),{remove:function(){null!==e&&void 0!==e&&e.removeEventListener&&e.removeEventListener(t,r,o)}}}function Sj(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}var Cj=function(e,t){var n,r,i=e.scrollBodyRef,a=e.onScroll,l=e.offsetScroll,c=e.container,s=vT(kT,"prefixCls"),u=(null===(n=i.current)||void 0===n?void 0:n.scrollWidth)||0,d=(null===(r=i.current)||void 0===r?void 0:r.clientWidth)||0,f=u&&d*(d/u),p=o.useRef(),h=We(vj({scrollLeft:0,isHiddenScrollBar:!1}),2),m=h[0],g=h[1],v=o.useRef({delta:0,x:0}),b=We(o.useState(!1),2),y=b[0],w=b[1],x=function(){w(!1)},S=function(e){var t,n=(e||(null===(t=window)||void 0===t?void 0:t.event)).buttons;if(y&&0!==n){var o=v.current.x+e.pageX-v.current.x-v.current.delta;o<=0&&(o=0),o+f>=d&&(o=d-f),a({scrollLeft:o/d*(u+2)}),v.current.x=e.pageX}else y&&w(!1)},C=function(){if(i.current){var e=Sj(i.current).top,t=e+i.current.offsetHeight,n=c===window?document.documentElement.scrollTop+window.innerHeight:Sj(c).top+c.clientHeight;t-xu()<=n||e>=n-l?g((function(e){return Be(Be({},e),{},{isHiddenScrollBar:!0})})):g((function(e){return Be(Be({},e),{},{isHiddenScrollBar:!1})}))}},k=function(e){g((function(t){return Be(Be({},t),{},{scrollLeft:e/u*d||0})}))};return o.useImperativeHandle(t,(function(){return{setScrollLeft:k}})),o.useEffect((function(){var e=xj(document.body,"mouseup",x,!1),t=xj(document.body,"mousemove",S,!1);return C(),function(){e.remove(),t.remove()}}),[f,y]),o.useEffect((function(){var e=xj(c,"scroll",C,!1),t=xj(window,"resize",C,!1);return function(){e.remove(),t.remove()}}),[c]),o.useEffect((function(){m.isHiddenScrollBar||g((function(e){var t=i.current;return t?Be(Be({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e}))}),[m.isHiddenScrollBar]),u<=d||!f||m.isHiddenScrollBar?null:o.createElement("div",{style:{height:xu(),width:d,bottom:l},className:"".concat(s,"-sticky-scroll")},o.createElement("div",{onMouseDown:function(e){e.persist(),v.current.delta=e.pageX-m.scrollLeft,v.current.x=0,w(!0),e.preventDefault()},ref:p,className:je()("".concat(s,"-sticky-scroll-bar"),Le({},"".concat(s,"-sticky-scroll-bar-active"),y)),style:{width:"".concat(f,"px"),transform:"translate3d(".concat(m.scrollLeft,"px, 0, 0)")}}))};const kj=o.forwardRef(Cj);const Ej=function(e){return null};const Oj=function(e){return null};var _j="rc-table",Pj=[],Mj={};function Nj(){return"No Data"}function Ij(e,t){var n,r=Be({rowKey:"key",prefixCls:_j,emptyText:Nj},e),i=r.prefixCls,a=r.className,l=r.rowClassName,c=r.style,s=r.data,u=r.rowKey,d=r.scroll,f=r.tableLayout,p=r.direction,h=r.title,m=r.footer,g=r.summary,v=r.caption,b=r.id,y=r.showHeader,w=r.components,x=r.emptyText,S=r.onRow,C=r.onHeaderRow,k=r.internalHooks,E=r.transformColumns,O=r.internalRefs,_=r.tailor,P=r.getContainerWidth,M=r.sticky,N=s||Pj,I=!!N.length,R=k===mT;var T=o.useCallback((function(e,t){return so(w,e)||t}),[w]),j=o.useMemo((function(){return"function"===typeof u?u:function(e){return e&&e[u]}}),[u]),A=T(["body"]),z=function(){var e=We(o.useState(-1),2),t=e[0],n=e[1],r=We(o.useState(-1),2),i=r[0],a=r[1];return[t,i,o.useCallback((function(e,t){n(e),a(t)}),[])]}(),L=We(z,3),D=L[0],B=L[1],F=L[2],H=We(gj(r,N,j),6),W=H[0],V=H[1],K=H[2],q=H[3],U=H[4],X=H[5],G=null===d||void 0===d?void 0:d.x,$=We(o.useState(0),2),Y=$[0],Q=$[1],J=We(hj(Be(Be(Be({},r),W),{},{expandable:!!W.expandedRowRender,columnTitle:W.columnTitle,expandedKeys:K,getRowKey:j,onTriggerExpand:X,expandIcon:q,expandIconColumnIndex:W.expandIconColumnIndex,direction:p,scrollWidth:R&&_&&"number"===typeof G?G:null,clientWidth:Y}),R?E:null),4),Z=J[0],ee=J[1],te=J[2],ne=J[3],oe=null!==te&&void 0!==te?te:G,re=o.useMemo((function(){return{columns:Z,flattenColumns:ee}}),[Z,ee]),ie=o.useRef(),ae=o.useRef(),le=o.useRef(),ce=o.useRef();o.useImperativeHandle(t,(function(){return{nativeElement:ie.current,scrollTo:function(e){var t;if(le.current instanceof HTMLElement){var n=e.index,o=e.top,r=e.key;if(o){var i;null===(i=le.current)||void 0===i||i.scrollTo({top:o})}else{var a,l=null!==r&&void 0!==r?r:j(N[n]);null===(a=le.current.querySelector('[data-row-key="'.concat(l,'"]')))||void 0===a||a.scrollIntoView()}}else null!==(t=le.current)&&void 0!==t&&t.scrollTo&&le.current.scrollTo(e)}}}));var se,ue,de,fe=o.useRef(),pe=We(o.useState(!1),2),he=pe[0],me=pe[1],ge=We(o.useState(!1),2),ve=ge[0],be=ge[1],ye=We(vj(new Map),2),we=ye[0],xe=ye[1],Se=_T(ee).map((function(e){return we.get(e)})),Ce=o.useMemo((function(){return Se}),[Se.join("_")]),ke=yj(Ce,ee,p),Ee=d&&PT(d.y),Oe=d&&PT(oe)||Boolean(W.fixed),_e=Oe&&ee.some((function(e){return e.fixed})),Pe=o.useRef(),Me=function(e,t){var n="object"===Ae(e)?e:{},r=n.offsetHeader,i=void 0===r?0:r,a=n.offsetSummary,l=void 0===a?0:a,c=n.offsetScroll,s=void 0===c?0:c,u=n.getContainer,d=(void 0===u?function(){return bj}:u)()||bj;return o.useMemo((function(){var n=!!e;return{isSticky:n,stickyClassName:n?"".concat(t,"-sticky-holder"):"",offsetHeader:i,offsetSummary:l,offsetScroll:s,container:d}}),[s,i,l,t,d])}(M,i),Ne=Me.isSticky,Ie=Me.offsetHeader,Re=Me.offsetSummary,Te=Me.offsetScroll,ze=Me.stickyClassName,De=Me.container,Fe=o.useMemo((function(){return null===g||void 0===g?void 0:g(N)}),[g,N]),He=(Ee||Ne)&&o.isValidElement(Fe)&&Fe.type===zT&&Fe.props.fixed;Ee&&(ue={overflowY:"scroll",maxHeight:d.y}),Oe&&(se={overflowX:"auto"},Ee||(ue={overflowY:"hidden"}),de={width:!0===oe?"auto":oe,minWidth:"100%"});var Ve=o.useCallback((function(e,t){Ss(ie.current)&&xe((function(n){if(n.get(e)!==t){var o=new Map(n);return o.set(e,t),o}return n}))}),[]),Ke=We(function(e){var t=(0,o.useRef)(e||null),n=(0,o.useRef)();function r(){window.clearTimeout(n.current)}return(0,o.useEffect)((function(){return r}),[]),[function(e){t.current=e,r(),n.current=window.setTimeout((function(){t.current=null,n.current=void 0}),100)},function(){return t.current}]}(null),2),qe=Ke[0],Xe=Ke[1];function Ge(e,t){t&&("function"===typeof t?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout((function(){t.scrollLeft=e}),0)))}var $e=Ja((function(e){var t,n=e.currentTarget,o=e.scrollLeft,r="rtl"===p,i="number"===typeof o?o:n.scrollLeft,a=n||Mj;Xe()&&Xe()!==a||(qe(a),Ge(i,ae.current),Ge(i,le.current),Ge(i,fe.current),Ge(i,null===(t=Pe.current)||void 0===t?void 0:t.setScrollLeft));var l=n||ae.current;if(l){var c=l.scrollWidth,s=l.clientWidth;if(c===s)return me(!1),void be(!1);r?(me(-i<c-s),be(-i>0)):(me(i>0),be(i<c-s))}})),Ye=function(){Oe&&le.current?$e({currentTarget:le.current}):(me(!1),be(!1))},Qe=o.useRef(!1);o.useEffect((function(){Qe.current&&Ye()}),[Oe,s,Z.length]),o.useEffect((function(){Qe.current=!0}),[]);var Je=We(o.useState(0),2),Ze=Je[0],et=Je[1],tt=We(o.useState(!0),2),nt=tt[0],ot=tt[1];o.useEffect((function(){_&&R||(le.current instanceof Element?et(Cu(le.current).width):et(Cu(ce.current).width)),ot($x("position","sticky"))}),[]),o.useEffect((function(){R&&O&&(O.body.current=le.current)}));var rt,it=o.useCallback((function(e){return o.createElement(o.Fragment,null,o.createElement(lj,e),"top"===He&&o.createElement(LT,e,Fe))}),[He,Fe]),at=o.useCallback((function(e){return o.createElement(LT,e,Fe)}),[Fe]),lt=T(["table"],"table"),ct=o.useMemo((function(){return f||(_e?"max-content"===oe?"auto":"fixed":Ee||Ne||ee.some((function(e){return e.ellipsis}))?"fixed":"auto")}),[Ee,_e,ee,f,Ne]),st={colWidths:Ce,columCount:ee.length,stickyOffsets:ke,onHeaderRow:C,fixHeader:Ee,scroll:d},ut=o.useMemo((function(){return I?null:"function"===typeof x?x():x}),[I,x]),dt=o.createElement(JT,{data:N,measureColumnWidth:Ee||Oe||Ne}),ft=o.createElement(nj,{colWidths:ee.map((function(e){return e.width})),columns:ee}),pt=null!==v&&void 0!==v?o.createElement("caption",{className:"".concat(i,"-caption")},v):void 0,ht=VT(r,{data:!0}),mt=VT(r,{aria:!0});if(Ee||Ne){var gt;"function"===typeof A?(gt=A(N,{scrollbarSize:Ze,ref:le,onScroll:$e}),st.colWidths=ee.map((function(e,t){var n=e.width,o=t===ee.length-1?n-Ze:n;return"number"!==typeof o||Number.isNaN(o)?0:o}))):gt=o.createElement("div",{style:Be(Be({},se),ue),onScroll:$e,ref:le,className:je()("".concat(i,"-body"))},o.createElement(lt,Jt({style:Be(Be({},de),{},{tableLayout:ct})},mt),pt,ft,dt,!He&&Fe&&o.createElement(LT,{stickyOffsets:ke,flattenColumns:ee,columns:Z},Fe)));var vt=Be(Be(Be({noData:!N.length,maxContentScroll:Oe&&"max-content"===oe},st),re),{},{direction:p,stickyClassName:ze,onScroll:$e});rt=o.createElement(o.Fragment,null,!1!==y&&o.createElement(ij,Jt({},vt,{stickyTopOffset:Ie,className:"".concat(i,"-header"),ref:ae}),it),gt,He&&"top"!==He&&o.createElement(ij,Jt({},vt,{stickyBottomOffset:Re,className:"".concat(i,"-summary"),ref:fe}),at),Ne&&le.current&&le.current instanceof Element&&o.createElement(kj,{ref:Pe,offsetScroll:Te,scrollBodyRef:le,onScroll:$e,container:De}))}else rt=o.createElement("div",{style:Be(Be({},se),ue),className:je()("".concat(i,"-content")),onScroll:$e,ref:le},o.createElement(lt,Jt({style:Be(Be({},de),{},{tableLayout:ct})},mt),pt,ft,!1!==y&&o.createElement(lj,Jt({},st,re)),dt,Fe&&o.createElement(LT,{stickyOffsets:ke,flattenColumns:ee,columns:Z},Fe)));var bt=o.createElement("div",Jt({className:je()(i,a,(n={},Le(n,"".concat(i,"-rtl"),"rtl"===p),Le(n,"".concat(i,"-ping-left"),he),Le(n,"".concat(i,"-ping-right"),ve),Le(n,"".concat(i,"-layout-fixed"),"fixed"===f),Le(n,"".concat(i,"-fixed-header"),Ee),Le(n,"".concat(i,"-fixed-column"),_e),Le(n,"".concat(i,"-fixed-column-gapped"),_e&&ne),Le(n,"".concat(i,"-scroll-horizontal"),Oe),Le(n,"".concat(i,"-has-fix-left"),ee[0]&&ee[0].fixed),Le(n,"".concat(i,"-has-fix-right"),ee[ee.length-1]&&"right"===ee[ee.length-1].fixed),n)),style:c,id:b,ref:ie},ht),h&&o.createElement(wj,{className:"".concat(i,"-title")},h(N)),o.createElement("div",{ref:ce,className:"".concat(i,"-container")},rt),m&&o.createElement(wj,{className:"".concat(i,"-footer")},m(N)));Oe&&(bt=o.createElement(ld,{onResize:function(e){var t=e.width,n=ie.current?ie.current.offsetWidth:t;R&&P&&ie.current&&(n=P(ie.current,n)||n),n!==Y&&(Ye(),Q(n))}},bt));var yt=function(e,t,n,o){var r=e.map((function(r,i){return RT(i,i,e,t,n,null===o||void 0===o?void 0:o[i])}));return Ue((function(){return r}),[r],(function(e,t){return!Pn(e,t)}))}(ee,ke,p,Z),wt=o.useMemo((function(){return{scrollX:oe,prefixCls:i,getComponent:T,scrollbarSize:Ze,direction:p,fixedInfoList:yt,isSticky:Ne,supportSticky:nt,componentWidth:Y,fixHeader:Ee,fixColumn:_e,horizonScroll:Oe,tableLayout:ct,rowClassName:l,expandedRowClassName:W.expandedRowClassName,expandIcon:q,expandableType:V,expandRowByClick:W.expandRowByClick,expandedRowRender:W.expandedRowRender,onTriggerExpand:X,expandIconColumnIndex:W.expandIconColumnIndex,indentSize:W.indentSize,allColumnsFixedLeft:ee.every((function(e){return"left"===e.fixed})),emptyNode:ut,columns:Z,flattenColumns:ee,onColumnResize:Ve,hoverStartRow:D,hoverEndRow:B,onHover:F,rowExpandable:W.rowExpandable,onRow:S,getRowKey:j,expandedKeys:K,childrenColumnName:U}}),[oe,i,T,Ze,p,yt,Ne,nt,Y,Ee,_e,Oe,ct,l,W.expandedRowClassName,q,V,W.expandRowByClick,W.expandedRowRender,X,W.expandIconColumnIndex,W.indentSize,ut,Z,ee,Ve,D,B,F,W.rowExpandable,S,j,K,U]);return o.createElement(kT.Provider,{value:wt},bt)}var Rj=o.forwardRef(Ij);function Tj(e){return xT(Rj,e)}var jj=Tj();jj.EXPAND_COLUMN=hT,jj.INTERNAL_HOOKS=mT,jj.Column=Ej,jj.ColumnGroup=Oj,jj.Summary=DT;const Aj=jj;var zj=o.forwardRef((function(e,t){var n=e.height,r=e.offsetY,i=e.offsetX,a=e.children,l=e.prefixCls,c=e.onInnerResize,s=e.innerProps,u=e.rtl,d=e.extra,f={},p={display:"flex",flexDirection:"column"};return void 0!==r&&(f={height:n,position:"relative",overflow:"hidden"},p=Be(Be({},p),{},Le(Le(Le(Le(Le({transform:"translateY(".concat(r,"px)")},u?"marginRight":"marginLeft",-i),"position","absolute"),"left",0),"right",0),"top",0))),o.createElement("div",{style:f},o.createElement(ld,{onResize:function(e){e.offsetHeight&&c&&c()}},o.createElement("div",Jt({style:p,className:je()(Le({},"".concat(l,"-holder-inner"),l)),ref:t},s),a,d)))}));zj.displayName="Filler";const Lj=zj;function Dj(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]}var Bj=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.rtl,i=e.scrollOffset,a=e.scrollRange,l=e.onStartMove,c=e.onStopMove,s=e.onScroll,u=e.horizontal,d=e.spinSize,f=e.containerSize,p=e.style,h=e.thumbStyle,m=We(o.useState(!1),2),g=m[0],v=m[1],b=We(o.useState(null),2),y=b[0],w=b[1],x=We(o.useState(null),2),S=x[0],C=x[1],k=!r,E=o.useRef(),O=o.useRef(),_=We(o.useState(!1),2),P=_[0],M=_[1],N=o.useRef(),I=function(){clearTimeout(N.current),M(!0),N.current=setTimeout((function(){M(!1)}),3e3)},R=a-f||0,T=f-d||0,j=o.useMemo((function(){return 0===i||0===R?0:i/R*T}),[i,R,T]),A=o.useRef({top:j,dragging:g,pageY:y,startTop:S});A.current={top:j,dragging:g,pageY:y,startTop:S};var z=function(e){v(!0),w(Dj(e,u)),C(A.current.top),l(),e.stopPropagation(),e.preventDefault()};o.useEffect((function(){var e=function(e){e.preventDefault()},t=E.current,n=O.current;return t.addEventListener("touchstart",e),n.addEventListener("touchstart",z),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",z)}}),[]);var L=o.useRef();L.current=R;var D=o.useRef();D.current=T,o.useEffect((function(){if(g){var e,t=function(t){var n=A.current,o=n.dragging,r=n.pageY,i=n.startTop;if(Kt.cancel(e),o){var a=Dj(t,u)-r,l=i;!k&&u?l-=a:l+=a;var c=L.current,d=D.current,f=d?l/d:0,p=Math.ceil(f*c);p=Math.max(p,0),p=Math.min(p,c),e=Kt((function(){s(p,u)}))}},n=function(){v(!1),c()};return window.addEventListener("mousemove",t),window.addEventListener("touchmove",t),window.addEventListener("mouseup",n),window.addEventListener("touchend",n),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),Kt.cancel(e)}}}),[g]),o.useEffect((function(){I()}),[i]),o.useImperativeHandle(t,(function(){return{delayHidden:I}}));var B="".concat(n,"-scrollbar"),F={position:"absolute",visibility:P?null:"hidden"},H={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(F.height=8,F.left=0,F.right=0,F.bottom=0,H.height="100%",H.width=d,k?H.left=j:H.right=j):(F.width=8,F.top=0,F.bottom=0,k?F.right=0:F.left=0,H.width="100%",H.height=d,H.top=j),o.createElement("div",{ref:E,className:je()(B,Le(Le(Le({},"".concat(B,"-horizontal"),u),"".concat(B,"-vertical"),!u),"".concat(B,"-visible"),P)),style:Be(Be({},F),p),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:I},o.createElement("div",{ref:O,className:je()("".concat(B,"-thumb"),Le({},"".concat(B,"-thumb-moving"),g)),style:Be(Be({},H),h),onMouseDown:z}))}));const Fj=Bj;function Hj(e){var t=e.children,n=e.setRef,r=o.useCallback((function(e){n(e)}),[]);return o.cloneElement(t,{ref:r})}const Wj=function(){function e(){tt(this,e),Le(this,"maps",void 0),Le(this,"id",0),this.maps=Object.create(null)}return ot(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}();var Vj=10;function Kj(e,t,n){var r=We(o.useState(e),2),i=r[0],a=r[1],l=We(o.useState(null),2),c=l[0],s=l[1];return o.useEffect((function(){var o=function(e,t,n){var o,r,i=e.length,a=t.length;if(0===i&&0===a)return null;i<a?(o=e,r=t):(o=t,r=e);var l={__EMPTY_ITEM__:!0};function c(e){return void 0!==e?n(e):l}for(var s=null,u=1!==Math.abs(i-a),d=0;d<r.length;d+=1){var f=c(o[d]);if(f!==c(r[d])){s=d,u=u||f!==c(r[d+1]);break}}return null===s?null:{index:s,multiple:u}}(i||[],e||[],t);void 0!==(null===o||void 0===o?void 0:o.index)&&(null===n||void 0===n||n(o.index),s(e[o.index])),a(e)}),[e]),[c]}const qj="object"===("undefined"===typeof navigator?"undefined":Ae(navigator))&&/Firefox/i.test(navigator.userAgent),Uj=function(e,t){var n=(0,o.useRef)(!1),r=(0,o.useRef)(null);var i=(0,o.useRef)({top:e,bottom:t});return i.current.top=e,i.current.bottom=t,function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=e<0&&i.current.top||e>0&&i.current.bottom;return t&&o?(clearTimeout(r.current),n.current=!1):o&&!n.current||(clearTimeout(r.current),n.current=!0,r.current=setTimeout((function(){n.current=!1}),50)),!n.current&&o}};function Xj(e,t,n,r,i){var a=(0,o.useRef)(0),l=(0,o.useRef)(null),c=(0,o.useRef)(null),s=(0,o.useRef)(!1),u=Uj(t,n);var d=(0,o.useRef)(null),f=(0,o.useRef)(null);return[function(t){if(e){Kt.cancel(f.current),f.current=Kt((function(){d.current=null}),2);var n=t.deltaX,o=t.deltaY,p=t.shiftKey,h=n,m=o;("sx"===d.current||!d.current&&p&&o&&!n)&&(h=o,m=0,d.current="sx");var g=Math.abs(h),v=Math.abs(m);null===d.current&&(d.current=r&&g>v?"x":"y"),"y"===d.current?function(e,t){Kt.cancel(l.current),a.current+=t,c.current=t,u(t)||(qj||e.preventDefault(),l.current=Kt((function(){var e=s.current?10:1;i(a.current*e),a.current=0})))}(t,m):function(e,t){i(t,!0),qj||e.preventDefault()}(t,h)}},function(t){e&&(s.current=t.detail===c.current)}]}var Gj=14/15;var $j=20;function Yj(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*e;return isNaN(t)&&(t=0),t=Math.max(t,$j),Math.floor(t)}var Qj=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Jj=[],Zj={overflowY:"auto",overflowAnchor:"none"};function eA(e,t){var n=e.prefixCls,r=void 0===n?"rc-virtual-list":n,i=e.className,l=e.height,c=e.itemHeight,s=e.fullHeight,u=void 0===s||s,d=e.style,f=e.data,p=e.children,h=e.itemKey,m=e.virtual,g=e.direction,v=e.scrollWidth,b=e.component,y=void 0===b?"div":b,w=e.onScroll,x=e.onVirtualScroll,S=e.onVisibleChange,C=e.innerProps,k=e.extraRender,E=e.styles,O=Qe(e,Qj),_=!(!1===m||!l||!c),P=_&&f&&(c*f.length>l||!!v),M="rtl"===g,N=je()(r,Le({},"".concat(r,"-rtl"),M),i),I=f||Jj,R=(0,o.useRef)(),T=(0,o.useRef)(),j=We((0,o.useState)(0),2),A=j[0],z=j[1],L=We((0,o.useState)(0),2),D=L[0],B=L[1],F=We((0,o.useState)(!1),2),H=F[0],W=F[1],V=function(){W(!0)},K=function(){W(!1)},q=o.useCallback((function(e){return"function"===typeof h?h(e):null===e||void 0===e?void 0:e[h]}),[h]),U={getKey:q};function X(e){z((function(t){var n=function(e){var t=e;Number.isNaN(ge.current)||(t=Math.min(t,ge.current));return t=Math.max(t,0),t}("function"===typeof e?e(t):e);return R.current.scrollTop=n,n}))}var G=(0,o.useRef)({start:0,end:I.length}),$=(0,o.useRef)(),Y=We(Kj(I,q),1)[0];$.current=Y;var Q=function(e,t,n){var r=We(o.useState(0),2),i=r[0],a=r[1],l=(0,o.useRef)(new Map),c=(0,o.useRef)(new Wj),s=(0,o.useRef)();function u(){Kt.cancel(s.current)}function d(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];u();var t=function(){l.current.forEach((function(e,t){if(e&&e.offsetParent){var n=Ke(e),o=n.offsetHeight;c.current.get(t)!==o&&c.current.set(t,n.offsetHeight)}})),a((function(e){return e+1}))};e?t():s.current=Kt(t)}return(0,o.useEffect)((function(){return u}),[]),[function(o,r){var i=e(o),a=l.current.get(i);r?(l.current.set(i,r),d()):l.current.delete(i),!a!==!r&&(r?null===t||void 0===t||t(o):null===n||void 0===n||n(o))},d,c.current,i]}(q,null,null),J=We(Q,4),Z=J[0],ee=J[1],te=J[2],ne=J[3],oe=o.useMemo((function(){if(!_)return{scrollHeight:void 0,start:0,end:I.length-1,offset:void 0};var e;if(!P)return{scrollHeight:(null===(e=T.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:I.length-1,offset:void 0};for(var t,n,o,r=0,i=I.length,a=0;a<i;a+=1){var s=I[a],u=q(s),d=te.get(u),f=r+(void 0===d?c:d);f>=A&&void 0===t&&(t=a,n=r),f>A+l&&void 0===o&&(o=a),r=f}return void 0===t&&(t=0,n=0,o=Math.ceil(l/c)),void 0===o&&(o=I.length-1),{scrollHeight:r,start:t,end:o=Math.min(o+1,I.length-1),offset:n}}),[P,_,A,I,ne,l]),re=oe.scrollHeight,ie=oe.start,ae=oe.end,le=oe.offset;G.current.start=ie,G.current.end=ae;var ce=We(o.useState({width:0,height:l}),2),se=ce[0],ue=ce[1],de=(0,o.useRef)(),fe=(0,o.useRef)(),pe=o.useMemo((function(){return Yj(se.width,v)}),[se.width,v]),he=o.useMemo((function(){return Yj(se.height,re)}),[se.height,re]),me=re-l,ge=(0,o.useRef)(me);ge.current=me;var ve=A<=0,be=A>=me,ye=Uj(ve,be),we=function(){return{x:M?-D:D,y:A}},xe=(0,o.useRef)(we()),Se=Ja((function(){if(x){var e=we();xe.current.x===e.x&&xe.current.y===e.y||(x(e),xe.current=e)}}));function Ce(e,t){var n=e;t?((0,a.flushSync)((function(){B(n)})),Se()):X(n)}var ke=function(e){var t=e,n=v-se.width;return t=Math.max(t,0),t=Math.min(t,n)},Ee=Ja((function(e,t){t?((0,a.flushSync)((function(){B((function(t){return ke(t+(M?-e:e))}))})),Se()):X((function(t){return t+e}))})),Oe=We(Xj(_,ve,be,!!v,Ee),2),_e=Oe[0],Pe=Oe[1];!function(e,t,n){var r,i=(0,o.useRef)(!1),a=(0,o.useRef)(0),l=(0,o.useRef)(null),c=(0,o.useRef)(null),s=function(e){if(i.current){var t=Math.ceil(e.touches[0].pageY),o=a.current-t;a.current=t,n(o)&&e.preventDefault(),clearInterval(c.current),c.current=setInterval((function(){(!n(o*=Gj,!0)||Math.abs(o)<=.1)&&clearInterval(c.current)}),16)}},u=function(){i.current=!1,r()},d=function(e){r(),1!==e.touches.length||i.current||(i.current=!0,a.current=Math.ceil(e.touches[0].pageY),l.current=e.target,l.current.addEventListener("touchmove",s),l.current.addEventListener("touchend",u))};r=function(){l.current&&(l.current.removeEventListener("touchmove",s),l.current.removeEventListener("touchend",u))},Zr((function(){return e&&t.current.addEventListener("touchstart",d),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",d),r(),clearInterval(c.current)}}),[e])}(_,R,(function(e,t){return!ye(e,t)&&(_e({preventDefault:function(){},deltaY:e}),!0)})),Zr((function(){function e(e){_&&e.preventDefault()}var t=R.current;return t.addEventListener("wheel",_e),t.addEventListener("DOMMouseScroll",Pe),t.addEventListener("MozMousePixelScroll",e),function(){t.removeEventListener("wheel",_e),t.removeEventListener("DOMMouseScroll",Pe),t.removeEventListener("MozMousePixelScroll",e)}}),[_]),Zr((function(){v&&B((function(e){return ke(e)}))}),[se.width,v]);var Me=function(){var e,t;null===(e=de.current)||void 0===e||e.delayHidden(),null===(t=fe.current)||void 0===t||t.delayHidden()},Ne=function(e,t,n,r,i,a,l,c){var s=o.useRef(),u=We(o.useState(null),2),d=u[0],f=u[1];return Zr((function(){if(d&&d.times<Vj){if(!e.current)return void f((function(e){return Be({},e)}));a();var o=d.targetAlign,c=d.originAlign,s=d.index,u=d.offset,p=e.current.clientHeight,h=!1,m=o,g=null;if(p){for(var v=o||c,b=0,y=0,w=0,x=Math.min(t.length-1,s),S=0;S<=x;S+=1){var C=i(t[S]);y=b;var k=n.get(C);b=w=y+(void 0===k?r:k)}for(var E="top"===v?u:p-u,O=x;O>=0;O-=1){var _=i(t[O]),P=n.get(_);if(void 0===P){h=!0;break}if((E-=P)<=0)break}switch(v){case"top":g=y-u;break;case"bottom":g=w-p+u;break;default:var M=e.current.scrollTop;y<M?m="top":w>M+p&&(m="bottom")}null!==g&&l(g),g!==d.lastTop&&(h=!0)}h&&f(Be(Be({},d),{},{times:d.times+1,targetAlign:m,lastTop:g}))}}),[d,e.current]),function(e){if(null!==e&&void 0!==e){if(Kt.cancel(s.current),"number"===typeof e)l(e);else if(e&&"object"===Ae(e)){var n,o=e.align;n="index"in e?e.index:t.findIndex((function(t){return i(t)===e.key}));var r=e.offset;f({times:0,index:n,offset:void 0===r?0:r,originAlign:o})}}else c()}}(R,I,te,c,q,(function(){return ee(!0)}),X,Me);o.useImperativeHandle(t,(function(){return{getScrollInfo:we,scrollTo:function(e){var t;(t=e)&&"object"===Ae(t)&&("left"in t||"top"in t)?(void 0!==e.left&&B(ke(e.left)),Ne(e.top)):Ne(e)}}})),Zr((function(){if(S){var e=I.slice(ie,ae+1);S(e,I)}}),[ie,ae,I]);var Ie=function(e,t,n,r){var i=We(o.useMemo((function(){return[new Map,[]]}),[e,n.id,r]),2),a=i[0],l=i[1];return function(o){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,c=a.get(o),s=a.get(i);if(void 0===c||void 0===s)for(var u=e.length,d=l.length;d<u;d+=1){var f,p=e[d],h=t(p);a.set(h,d);var m=null!==(f=n.get(h))&&void 0!==f?f:r;if(l[d]=(l[d-1]||0)+m,h===o&&(c=d),h===i&&(s=d),void 0!==c&&void 0!==s)break}return{top:l[c-1]||0,bottom:l[s]}}}(I,q,te,c),Re=null===k||void 0===k?void 0:k({start:ie,end:ae,virtual:P,offsetX:D,offsetY:le,rtl:M,getSize:Ie}),Te=function(e,t,n,r,i,a,l){var c=l.getKey;return e.slice(t,n+1).map((function(e,n){var l=a(e,t+n,{style:{width:r}}),s=c(e);return o.createElement(Hj,{key:s,setRef:function(t){return i(e,t)}},l)}))}(I,ie,ae,v,Z,p,U),ze=null;l&&(ze=Be(Le({},u?"height":"maxHeight",l),Zj),_&&(ze.overflowY="hidden",v&&(ze.overflowX="hidden"),H&&(ze.pointerEvents="none")));var De={};return M&&(De.dir="rtl"),o.createElement("div",Jt({style:Be(Be({},d),{},{position:"relative"}),className:N},De,O),o.createElement(ld,{onResize:function(e){ue({width:e.width||e.offsetWidth,height:e.height||e.offsetHeight})}},o.createElement(y,{className:"".concat(r,"-holder"),style:ze,ref:R,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==A&&X(t),null===w||void 0===w||w(e),Se()},onMouseEnter:Me},o.createElement(Lj,{prefixCls:r,height:re,offsetX:D,offsetY:le,scrollWidth:v,onInnerResize:ee,ref:T,innerProps:C,rtl:M,extra:Re},Te))),P&&re>l&&o.createElement(Fj,{ref:de,prefixCls:r,scrollOffset:A,scrollRange:re,rtl:M,onScroll:Ce,onStartMove:V,onStopMove:K,spinSize:he,containerSize:se.height,style:null===E||void 0===E?void 0:E.verticalScrollBar,thumbStyle:null===E||void 0===E?void 0:E.verticalScrollBarThumb}),P&&v>se.width&&o.createElement(Fj,{ref:fe,prefixCls:r,scrollOffset:D,scrollRange:v,rtl:M,onScroll:Ce,onStartMove:V,onStopMove:K,spinSize:pe,containerSize:se.width,horizontal:!0,style:null===E||void 0===E?void 0:E.horizontalScrollBar,thumbStyle:null===E||void 0===E?void 0:E.horizontalScrollBarThumb}))}var tA=o.forwardRef(eA);tA.displayName="List";const nA=tA;var oA=gT(null),rA=gT(null);const iA=function(e){var t=e.rowInfo,n=e.column,r=e.colIndex,i=e.indent,a=e.index,l=e.component,c=e.renderIndex,s=e.record,u=e.style,d=e.className,f=e.inverse,p=e.getHeight,h=n.render,m=n.dataIndex,g=n.className,v=n.width,b=vT(rA,["columnsOffset"]).columnsOffset,y=GT(t,n,r,i,a),w=y.key,x=y.fixedInfo,S=y.appendCellNode,C=y.additionalCellProps,k=C.style,E=C.colSpan,O=void 0===E?1:E,_=C.rowSpan,P=void 0===_?1:_,M=function(e,t,n){return n[e+(t||1)]-(n[e]||0)}(r-1,O,b),N=O>1?v-M:0,I=Be(Be(Be({},k),u),{},{flex:"0 0 ".concat(M,"px"),width:"".concat(M,"px"),marginRight:N,pointerEvents:"auto"}),R=o.useMemo((function(){return f?P<=1:0===O||0===P||P>1}),[P,O,f]);R?I.visibility="hidden":f&&(I.height=null===p||void 0===p?void 0:p(P));var T=R?function(){return null}:h,j={};return 0!==P&&0!==O||(j.rowSpan=1,j.colSpan=1),o.createElement(IT,Jt({className:je()(g,d),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:l,prefixCls:t.prefixCls,key:w,record:s,index:a,renderIndex:c,dataIndex:m,render:T,shouldCellUpdate:n.shouldCellUpdate},x,{appendNode:S,additionalProps:Be(Be({},C),{},{style:I},j)}))};var aA=["data","index","className","rowKey","style","extra","getHeight"],lA=o.forwardRef((function(e,t){var n,r=e.data,i=e.index,a=e.className,l=e.rowKey,c=e.style,s=e.extra,u=e.getHeight,d=Qe(e,aA),f=r.record,p=r.indent,h=r.index,m=vT(kT,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),g=m.scrollX,v=m.flattenColumns,b=m.prefixCls,y=m.fixColumn,w=m.componentWidth,x=vT(oA,["getComponent"]).getComponent,S=UT(f,l,i,p),C=x(["body","row"],"div"),k=x(["body","cell"],"div"),E=S.rowSupportExpand,O=S.expanded,_=S.rowProps,P=S.expandedRowRender,M=S.expandedRowClassName;if(E&&O){var N=P(f,i,p+1,O),I=null===M||void 0===M?void 0:M(f,i,p),R={};y&&(R={style:Le({},"--virtual-width","".concat(w,"px"))});var T="".concat(b,"-expanded-row-cell");n=o.createElement(C,{className:je()("".concat(b,"-expanded-row"),"".concat(b,"-expanded-row-level-").concat(p+1),I)},o.createElement(IT,{component:k,prefixCls:b,className:je()(T,Le({},"".concat(T,"-fixed"),y)),additionalProps:R},N))}var j=Be(Be({},c),{},{width:g});s&&(j.position="absolute",j.pointerEvents="none");var A=o.createElement(C,Jt({},_,d,{ref:E?null:t,className:je()(a,"".concat(b,"-row"),null===_||void 0===_?void 0:_.className,Le({},"".concat(b,"-row-extra"),s)),style:Be(Be({},j),null===_||void 0===_?void 0:_.style)}),v.map((function(e,t){return o.createElement(iA,{key:t,component:k,rowInfo:S,column:e,colIndex:t,indent:p,index:i,renderIndex:h,record:f,inverse:s,getHeight:u})})));return E?o.createElement("div",{ref:t},A,n):A}));const cA=ST(lA);var sA=o.forwardRef((function(e,t){var n=e.data,r=e.onScroll,i=vT(kT,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),a=i.flattenColumns,l=i.onColumnResize,c=i.getRowKey,s=i.expandedKeys,u=i.prefixCls,d=i.childrenColumnName,f=i.emptyNode,p=i.scrollX,h=vT(oA),m=h.sticky,g=h.scrollY,v=h.listItemHeight,b=h.getComponent,y=o.useRef(),w=qT(n,d,s,c),x=o.useMemo((function(){var e=0;return a.map((function(t){var n=t.width;return[t.key,n,e+=n]}))}),[a]),S=o.useMemo((function(){return x.map((function(e){return e[2]}))}),[x]);o.useEffect((function(){x.forEach((function(e){var t=We(e,2),n=t[0],o=t[1];l(n,o)}))}),[x]),o.useImperativeHandle(t,(function(){var e={scrollTo:function(e){var t;null===(t=y.current)||void 0===t||t.scrollTo(e)}};return Object.defineProperty(e,"scrollLeft",{get:function(){var e;return(null===(e=y.current)||void 0===e?void 0:e.getScrollInfo().x)||0},set:function(e){var t;null===(t=y.current)||void 0===t||t.scrollTo({left:e})}}),e}));var C,k=function(e,t){var n,o=null===(n=w[t])||void 0===n?void 0:n.record,r=e.onCell;if(r){var i,a=r(o,t);return null!==(i=null===a||void 0===a?void 0:a.rowSpan)&&void 0!==i?i:1}return 1},E=o.useMemo((function(){return{columnsOffset:S}}),[S]),O="".concat(u,"-tbody"),_=b(["body","wrapper"]),P=b(["body","row"],"div"),M=b(["body","cell"],"div");if(w.length){var N={};m&&(N.position="sticky",N.bottom=0,"object"===Ae(m)&&m.offsetScroll&&(N.bottom=m.offsetScroll)),C=o.createElement(nA,{fullHeight:!1,ref:y,styles:{horizontalScrollBar:N},className:je()(O,"".concat(O,"-virtual")),height:g,itemHeight:v||24,data:w,itemKey:function(e){return c(e.record)},component:_,scrollWidth:p,onVirtualScroll:function(e){var t=e.x;r({scrollLeft:t})},extraRender:function(e){var t=e.start,n=e.end,r=e.getSize,i=e.offsetY;if(n<0)return null;for(var l=a.filter((function(e){return 0===k(e,t)})),s=t,u=function(e){if(l=l.filter((function(t){return 0===k(t,e)})),!l.length)return s=e,1},d=t;d>=0&&!u(d);d-=1);for(var f=a.filter((function(e){return 1!==k(e,n)})),p=n,h=function(e){if(f=f.filter((function(t){return 1!==k(t,e)})),!f.length)return p=Math.max(e-1,n),1},m=n;m<w.length&&!h(m);m+=1);for(var g=[],v=function(e){if(!w[e])return 1;a.some((function(t){return k(t,e)>1}))&&g.push(e)},b=s;b<=p;b+=1)v(b);var y=g.map((function(e){var t=w[e],n=c(t.record,e),a=r(n);return o.createElement(cA,{key:e,data:t,rowKey:n,index:e,style:{top:-i+a.top},extra:!0,getHeight:function(t){var o=e+t-1,i=c(w[o].record,o),a=r(n,i);return a.bottom-a.top}})}));return y}},(function(e,t,n){var r=c(e.record,t);return o.createElement(cA,Jt({data:e,rowKey:r,index:t},n))}))}else C=o.createElement(P,{className:je()("".concat(u,"-placeholder"))},o.createElement(IT,{component:M,prefixCls:u},f));return o.createElement(rA.Provider,{value:E},C)}));const uA=ST(sA);var dA=function(e,t){var n=t.ref,r=t.onScroll;return o.createElement(uA,{ref:n,data:e,onScroll:r})};function fA(e,t){var n=e.columns,r=e.scroll,i=e.sticky,a=e.prefixCls,l=void 0===a?_j:a,c=e.className,s=e.listItemHeight,u=e.components,d=r||{},f=d.x,p=d.y;"number"!==typeof f&&(f=1),"number"!==typeof p&&(p=500);var h=Ja((function(e,t){return so(u,e)||t})),m=o.useMemo((function(){return{sticky:i,scrollY:p,listItemHeight:s,getComponent:h}}),[i,p,s,h]);return o.createElement(oA.Provider,{value:m},o.createElement(Aj,Jt({},e,{className:je()(c,"".concat(l,"-virtual")),scroll:Be(Be({},r),{},{x:f}),components:Be(Be({},u),{},{body:dA}),columns:n,internalHooks:mT,tailor:!0,ref:t})))}var pA=o.forwardRef(fA);function hA(e){return xT(pA,e)}hA();const mA=function(e){return null};const gA=function(e){return null};const vA={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"};var bA=function(e,t){return o.createElement(au,Jt({},e,{ref:t,icon:vA}))};const yA=o.forwardRef(bA);var wA=o.createContext(null),xA=function(e){for(var t=e.prefixCls,n=e.level,r=e.isStart,i=e.isEnd,a="".concat(t,"-indent-unit"),l=[],c=0;c<n;c+=1)l.push(o.createElement("span",{key:c,className:je()(a,Le(Le({},"".concat(a,"-start"),r[c]),"".concat(a,"-end"),i[c]))}));return o.createElement("span",{"aria-hidden":"true",className:"".concat(t,"-indent")},l)};const SA=o.memo(xA);function CA(e,t){return e[t]}var kA=["children"];function EA(e,t){return"".concat(e,"-").concat(t)}function OA(e,t){return null!==e&&void 0!==e?e:t}function _A(e){var t=e||{},n=t.title||"title";return{title:n,_title:t._title||[n],key:t.key||"key",children:t.children||"children"}}function PA(e){return function e(t){return wn(t).map((function(t){if(!function(e){return e&&e.type&&e.type.isTreeNode}(t))return _n(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var n=t.key,o=t.props,r=o.children,i=Be({key:n},Qe(o,kA)),a=e(r);return a.length&&(i.children=a),i})).filter((function(e){return e}))}(e)}function MA(e,t,n){var o=_A(n),r=o._title,i=o.key,a=o.children,l=new Set(!0===t?[]:t),c=[];return function e(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n.map((function(s,u){for(var d,f=EA(o?o.pos:"0",u),p=OA(s[i],f),h=0;h<r.length;h+=1){var m=r[h];if(void 0!==s[m]){d=s[m];break}}var g=Be(Be({},Zo(s,[].concat(Re(r),[i,a]))),{},{title:d,key:p,parent:o,pos:f,children:null,data:s,isStart:[].concat(Re(o?o.isStart:[]),[0===u]),isEnd:[].concat(Re(o?o.isEnd:[]),[u===n.length-1])});return c.push(g),!0===t||l.has(p)?g.children=e(s[a]||[],g):g.children=[],g}))}(e),c}function NA(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,o=t.processEntity,r=t.onProcessFinished,i=t.externalGetKey,a=t.childrenPropName,l=t.fieldNames,c=i||(arguments.length>2?arguments[2]:void 0),s={},u={},d={posEntities:s,keyEntities:u};return n&&(d=n(d)||d),function(e,t,n){var o,r=("object"===Ae(n)?n:{externalGetKey:n})||{},i=r.childrenPropName,a=r.externalGetKey,l=_A(r.fieldNames),c=l.key,s=l.children,u=i||s;a?"string"===typeof a?o=function(e){return e[a]}:"function"===typeof a&&(o=function(e){return a(e)}):o=function(e,t){return OA(e[c],t)},function n(r,i,a,l){var c=r?r[u]:e,s=r?EA(a.pos,i):"0",d=r?[].concat(Re(l),[r]):[];if(r){var f=o(r,s),p={node:r,index:i,pos:s,key:f,parentPos:a.node?a.pos:null,level:a.level+1,nodes:d};t(p)}c&&c.forEach((function(e,t){n(e,t,{node:r,pos:s,level:a?a.level+1:-1},d)}))}(null)}(e,(function(e){var t=e.node,n=e.index,r=e.pos,i=e.key,a=e.parentPos,l=e.level,c={node:t,nodes:e.nodes,index:n,key:i,pos:r,level:l},f=OA(i,r);s[r]=c,u[f]=c,c.parent=s[a],c.parent&&(c.parent.children=c.parent.children||[],c.parent.children.push(c)),o&&o(c,d)}),{externalGetKey:c,childrenPropName:a,fieldNames:l}),r&&r(d),d}function IA(e,t){var n=t.expandedKeys,o=t.selectedKeys,r=t.loadedKeys,i=t.loadingKeys,a=t.checkedKeys,l=t.halfCheckedKeys,c=t.dragOverNodeKey,s=t.dropPosition,u=CA(t.keyEntities,e);return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==o.indexOf(e),loaded:-1!==r.indexOf(e),loading:-1!==i.indexOf(e),checked:-1!==a.indexOf(e),halfChecked:-1!==l.indexOf(e),pos:String(u?u.pos:""),dragOver:c===e&&0===s,dragOverGapTop:c===e&&-1===s,dragOverGapBottom:c===e&&1===s}}function RA(e){var t=e.data,n=e.expanded,o=e.selected,r=e.checked,i=e.loaded,a=e.loading,l=e.halfChecked,c=e.dragOver,s=e.dragOverGapTop,u=e.dragOverGapBottom,d=e.pos,f=e.active,p=e.eventKey,h=Be(Be({},t),{},{expanded:n,selected:o,checked:r,loaded:i,loading:a,halfChecked:l,dragOver:c,dragOverGapTop:s,dragOverGapBottom:u,pos:d,active:f,key:p});return"props"in h||Object.defineProperty(h,"props",{get:function(){return _n(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),h}var TA=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],jA="open",AA="close",zA=function(e){it(n,e);var t=ut(n);function n(){var e;tt(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return Le(ct(e=t.call.apply(t,[this].concat(i))),"state",{dragNodeHighlight:!1}),Le(ct(e),"selectHandle",void 0),Le(ct(e),"cacheIndent",void 0),Le(ct(e),"onSelectorClick",(function(t){(0,e.props.context.onNodeClick)(t,RA(e.props)),e.isSelectable()?e.onSelect(t):e.onCheck(t)})),Le(ct(e),"onSelectorDoubleClick",(function(t){(0,e.props.context.onNodeDoubleClick)(t,RA(e.props))})),Le(ct(e),"onSelect",(function(t){e.isDisabled()||(0,e.props.context.onNodeSelect)(t,RA(e.props))})),Le(ct(e),"onCheck",(function(t){if(!e.isDisabled()){var n=e.props,o=n.disableCheckbox,r=n.checked,i=e.props.context.onNodeCheck;if(e.isCheckable()&&!o){var a=!r;i(t,RA(e.props),a)}}})),Le(ct(e),"onMouseEnter",(function(t){(0,e.props.context.onNodeMouseEnter)(t,RA(e.props))})),Le(ct(e),"onMouseLeave",(function(t){(0,e.props.context.onNodeMouseLeave)(t,RA(e.props))})),Le(ct(e),"onContextMenu",(function(t){(0,e.props.context.onNodeContextMenu)(t,RA(e.props))})),Le(ct(e),"onDragStart",(function(t){var n=e.props.context.onNodeDragStart;t.stopPropagation(),e.setState({dragNodeHighlight:!0}),n(t,ct(e));try{t.dataTransfer.setData("text/plain","")}catch(o){}})),Le(ct(e),"onDragEnter",(function(t){var n=e.props.context.onNodeDragEnter;t.preventDefault(),t.stopPropagation(),n(t,ct(e))})),Le(ct(e),"onDragOver",(function(t){var n=e.props.context.onNodeDragOver;t.preventDefault(),t.stopPropagation(),n(t,ct(e))})),Le(ct(e),"onDragLeave",(function(t){var n=e.props.context.onNodeDragLeave;t.stopPropagation(),n(t,ct(e))})),Le(ct(e),"onDragEnd",(function(t){var n=e.props.context.onNodeDragEnd;t.stopPropagation(),e.setState({dragNodeHighlight:!1}),n(t,ct(e))})),Le(ct(e),"onDrop",(function(t){var n=e.props.context.onNodeDrop;t.preventDefault(),t.stopPropagation(),e.setState({dragNodeHighlight:!1}),n(t,ct(e))})),Le(ct(e),"onExpand",(function(t){var n=e.props,o=n.loading,r=n.context.onNodeExpand;o||r(t,RA(e.props))})),Le(ct(e),"setSelectHandle",(function(t){e.selectHandle=t})),Le(ct(e),"getNodeState",(function(){var t=e.props.expanded;return e.isLeaf()?null:t?jA:AA})),Le(ct(e),"hasChildren",(function(){var t=e.props.eventKey;return!!((CA(e.props.context.keyEntities,t)||{}).children||[]).length})),Le(ct(e),"isLeaf",(function(){var t=e.props,n=t.isLeaf,o=t.loaded,r=e.props.context.loadData,i=e.hasChildren();return!1!==n&&(n||!r&&!i||r&&o&&!i)})),Le(ct(e),"isDisabled",(function(){var t=e.props.disabled;return!(!e.props.context.disabled&&!t)})),Le(ct(e),"isCheckable",(function(){var t=e.props.checkable,n=e.props.context.checkable;return!(!n||!1===t)&&n})),Le(ct(e),"syncLoadData",(function(t){var n=t.expanded,o=t.loading,r=t.loaded,i=e.props.context,a=i.loadData,l=i.onNodeLoad;o||a&&n&&!e.isLeaf()&&(e.hasChildren()||r||l(RA(e.props)))})),Le(ct(e),"isDraggable",(function(){var t=e.props,n=t.data,o=t.context.draggable;return!(!o||o.nodeDraggable&&!o.nodeDraggable(n))})),Le(ct(e),"renderDragHandler",(function(){var t=e.props.context,n=t.draggable,r=t.prefixCls;return null!==n&&void 0!==n&&n.icon?o.createElement("span",{className:"".concat(r,"-draggable-icon")},n.icon):null})),Le(ct(e),"renderSwitcherIconDom",(function(t){var n=e.props.switcherIcon,o=e.props.context.switcherIcon,r=n||o;return"function"===typeof r?r(Be(Be({},e.props),{},{isLeaf:t})):r})),Le(ct(e),"renderSwitcher",(function(){var t=e.props.expanded,n=e.props.context.prefixCls;if(e.isLeaf()){var r=e.renderSwitcherIconDom(!0);return!1!==r?o.createElement("span",{className:je()("".concat(n,"-switcher"),"".concat(n,"-switcher-noop"))},r):null}var i=je()("".concat(n,"-switcher"),"".concat(n,"-switcher_").concat(t?jA:AA)),a=e.renderSwitcherIconDom(!1);return!1!==a?o.createElement("span",{onClick:e.onExpand,className:i},a):null})),Le(ct(e),"renderCheckbox",(function(){var t=e.props,n=t.checked,r=t.halfChecked,i=t.disableCheckbox,a=e.props.context.prefixCls,l=e.isDisabled(),c=e.isCheckable();if(!c)return null;var s="boolean"!==typeof c?c:null;return o.createElement("span",{className:je()("".concat(a,"-checkbox"),n&&"".concat(a,"-checkbox-checked"),!n&&r&&"".concat(a,"-checkbox-indeterminate"),(l||i)&&"".concat(a,"-checkbox-disabled")),onClick:e.onCheck},s)})),Le(ct(e),"renderIcon",(function(){var t=e.props.loading,n=e.props.context.prefixCls;return o.createElement("span",{className:je()("".concat(n,"-iconEle"),"".concat(n,"-icon__").concat(e.getNodeState()||"docu"),t&&"".concat(n,"-icon_loading"))})})),Le(ct(e),"renderSelector",(function(){var t,n,r=e.state.dragNodeHighlight,i=e.props,a=i.title,l=void 0===a?"---":a,c=i.selected,s=i.icon,u=i.loading,d=i.data,f=e.props.context,p=f.prefixCls,h=f.showIcon,m=f.icon,g=f.loadData,v=f.titleRender,b=e.isDisabled(),y="".concat(p,"-node-content-wrapper");if(h){var w=s||m;t=w?o.createElement("span",{className:je()("".concat(p,"-iconEle"),"".concat(p,"-icon__customize"))},"function"===typeof w?w(e.props):w):e.renderIcon()}else g&&u&&(t=e.renderIcon());n="function"===typeof l?l(d):v?v(d):l;var x=o.createElement("span",{className:"".concat(p,"-title")},n);return o.createElement("span",{ref:e.setSelectHandle,title:"string"===typeof l?l:"",className:je()("".concat(y),"".concat(y,"-").concat(e.getNodeState()||"normal"),!b&&(c||r)&&"".concat(p,"-node-selected")),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onContextMenu:e.onContextMenu,onClick:e.onSelectorClick,onDoubleClick:e.onSelectorDoubleClick},t,x,e.renderDropIndicator())})),Le(ct(e),"renderDropIndicator",(function(){var t=e.props,n=t.disabled,o=t.eventKey,r=e.props.context,i=r.draggable,a=r.dropLevelOffset,l=r.dropPosition,c=r.prefixCls,s=r.indent,u=r.dropIndicatorRender,d=r.dragOverNodeKey,f=r.direction,p=!n&&!!i&&d===o,h=null!==s&&void 0!==s?s:e.cacheIndent;return e.cacheIndent=s,p?u({dropPosition:l,dropLevelOffset:a,indent:h,prefixCls:c,direction:f}):null})),e}return ot(n,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var e=this.props.selectable,t=this.props.context.selectable;return"boolean"===typeof e?e:t}},{key:"render",value:function(){var e,t=this.props,n=t.eventKey,r=t.className,i=t.style,a=t.dragOver,l=t.dragOverGapTop,c=t.dragOverGapBottom,s=t.isLeaf,u=t.isStart,d=t.isEnd,f=t.expanded,p=t.selected,h=t.checked,m=t.halfChecked,g=t.loading,v=t.domRef,b=t.active,y=(t.data,t.onMouseMove),w=t.selectable,x=Qe(t,TA),S=this.props.context,C=S.prefixCls,k=S.filterTreeNode,E=S.keyEntities,O=S.dropContainerKey,_=S.dropTargetKey,P=S.draggingNodeKey,M=this.isDisabled(),N=VT(x,{aria:!0,data:!0}),I=(CA(E,n)||{}).level,R=d[d.length-1],T=this.isDraggable(),j=!M&&T,A=P===n,z=void 0!==w?{"aria-selected":!!w}:void 0;return o.createElement("div",Jt({ref:v,className:je()(r,"".concat(C,"-treenode"),(e={},Le(Le(Le(Le(Le(Le(Le(Le(Le(Le(e,"".concat(C,"-treenode-disabled"),M),"".concat(C,"-treenode-switcher-").concat(f?"open":"close"),!s),"".concat(C,"-treenode-checkbox-checked"),h),"".concat(C,"-treenode-checkbox-indeterminate"),m),"".concat(C,"-treenode-selected"),p),"".concat(C,"-treenode-loading"),g),"".concat(C,"-treenode-active"),b),"".concat(C,"-treenode-leaf-last"),R),"".concat(C,"-treenode-draggable"),T),"dragging",A),Le(Le(Le(Le(Le(Le(e,"drop-target",_===n),"drop-container",O===n),"drag-over",!M&&a),"drag-over-gap-top",!M&&l),"drag-over-gap-bottom",!M&&c),"filter-node",k&&k(RA(this.props))))),style:i,draggable:j,"aria-grabbed":A,onDragStart:j?this.onDragStart:void 0,onDragEnter:T?this.onDragEnter:void 0,onDragOver:T?this.onDragOver:void 0,onDragLeave:T?this.onDragLeave:void 0,onDrop:T?this.onDrop:void 0,onDragEnd:T?this.onDragEnd:void 0,onMouseMove:y},z,N),o.createElement(SA,{prefixCls:C,level:I,isStart:u,isEnd:d}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),n}(o.Component),LA=function(e){return o.createElement(wA.Consumer,null,(function(t){return o.createElement(zA,Jt({},e,{context:t}))}))};LA.displayName="TreeNode",LA.isTreeNode=1;const DA=LA;function BA(e,t){if(!e)return[];var n=e.slice(),o=n.indexOf(t);return o>=0&&n.splice(o,1),n}function FA(e,t){var n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function HA(e){return e.split("-")}function WA(e,t){var n=[];return function e(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(t){var o=t.key,r=t.children;n.push(o),e(r)}))}(CA(t,e).children),n}function VA(e){if(e.parent){var t=HA(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function KA(e,t,n,o,r,i,a,l,c,s){var u,d=e.clientX,f=e.clientY,p=e.target.getBoundingClientRect(),h=p.top,m=p.height,g=(("rtl"===s?-1:1)*(((null===r||void 0===r?void 0:r.x)||0)-d)-12)/o,v=c.filter((function(e){var t;return null===(t=l[e])||void 0===t||null===(t=t.children)||void 0===t?void 0:t.length})),b=CA(l,n.props.eventKey);if(f<h+m/2){var y=a.findIndex((function(e){return e.key===b.key})),w=a[y<=0?0:y-1].key;b=CA(l,w)}var x=b.key,S=b,C=b.key,k=0,E=0;if(!v.includes(x))for(var O=0;O<g&&VA(b);O+=1)b=b.parent,E+=1;var _=t.props.data,P=b.node,M=!0;return function(e){var t=HA(e.pos);return 0===Number(t[t.length-1])}(b)&&0===b.level&&f<h+m/2&&i({dragNode:_,dropNode:P,dropPosition:-1})&&b.key===n.props.eventKey?k=-1:(S.children||[]).length&&v.includes(C)?i({dragNode:_,dropNode:P,dropPosition:0})?k=0:M=!1:0===E?g>-1.5?i({dragNode:_,dropNode:P,dropPosition:1})?k=1:M=!1:i({dragNode:_,dropNode:P,dropPosition:0})?k=0:i({dragNode:_,dropNode:P,dropPosition:1})?k=1:M=!1:i({dragNode:_,dropNode:P,dropPosition:1})?k=1:M=!1,{dropPosition:k,dropLevelOffset:E,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:C,dropContainerKey:0===k?null:(null===(u=b.parent)||void 0===u?void 0:u.key)||null,dropAllowed:M}}function qA(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function UA(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==Ae(e))return _n(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function XA(e,t){var n=new Set;function o(e){if(!n.has(e)){var r=CA(t,e);if(r){n.add(e);var i=r.parent;r.node.disabled||i&&o(i.key)}}}return(e||[]).forEach((function(e){o(e)})),Re(n)}function GA(e,t){var n=new Set;return e.forEach((function(e){t.has(e)||n.add(e)})),n}function $A(e){var t=e||{},n=t.disabled,o=t.disableCheckbox,r=t.checkable;return!(!n&&!o)||!1===r}function YA(e,t,n,o){var r,i=[];r=o||$A;var a,l=new Set(e.filter((function(e){var t=!!CA(n,e);return t||i.push(e),t}))),c=new Map,s=0;return Object.keys(n).forEach((function(e){var t=n[e],o=t.level,r=c.get(o);r||(r=new Set,c.set(o,r)),r.add(t),s=Math.max(s,o)})),_n(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),a=!0===t?function(e,t,n,o){for(var r=new Set(e),i=new Set,a=0;a<=n;a+=1)(t.get(a)||new Set).forEach((function(e){var t=e.key,n=e.node,i=e.children,a=void 0===i?[]:i;r.has(t)&&!o(n)&&a.filter((function(e){return!o(e.node)})).forEach((function(e){r.add(e.key)}))}));for(var l=new Set,c=n;c>=0;c-=1)(t.get(c)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!o(n)&&e.parent&&!l.has(e.parent.key))if(o(e.parent.node))l.add(t.key);else{var a=!0,c=!1;(t.children||[]).filter((function(e){return!o(e.node)})).forEach((function(e){var t=e.key,n=r.has(t);a&&!n&&(a=!1),c||!n&&!i.has(t)||(c=!0)})),a&&r.add(t.key),c&&i.add(t.key),l.add(t.key)}}));return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(GA(i,r))}}(l,c,s,r):function(e,t,n,o,r){for(var i=new Set(e),a=new Set(t),l=0;l<=o;l+=1)(n.get(l)||new Set).forEach((function(e){var t=e.key,n=e.node,o=e.children,l=void 0===o?[]:o;i.has(t)||a.has(t)||r(n)||l.filter((function(e){return!r(e.node)})).forEach((function(e){i.delete(e.key)}))}));a=new Set;for(var c=new Set,s=o;s>=0;s-=1)(n.get(s)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!c.has(e.parent.key))if(r(e.parent.node))c.add(t.key);else{var o=!0,l=!1;(t.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var t=e.key,n=i.has(t);o&&!n&&(o=!1),l||!n&&!a.has(t)||(l=!0)})),o||i.delete(t.key),l&&a.add(t.key),c.add(t.key)}}));return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(GA(a,i))}}(l,t.halfCheckedKeys,c,s,r),a}var QA=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],JA=(0,o.forwardRef)((function(e,t){var n,r=e.prefixCls,i=void 0===r?"rc-checkbox":r,a=e.className,l=e.style,c=e.checked,s=e.disabled,u=e.defaultChecked,d=void 0!==u&&u,f=e.type,p=void 0===f?"checkbox":f,h=e.title,m=e.onChange,g=Qe(e,QA),v=(0,o.useRef)(null),b=We(el(d,{value:c}),2),y=b[0],w=b[1];(0,o.useImperativeHandle)(t,(function(){return{focus:function(){var e;null===(e=v.current)||void 0===e||e.focus()},blur:function(){var e;null===(e=v.current)||void 0===e||e.blur()},input:v.current}}));var x=je()(i,a,(Le(n={},"".concat(i,"-checked"),y),Le(n,"".concat(i,"-disabled"),s),n));return o.createElement("span",{className:x,title:h,style:l},o.createElement("input",Jt({},g,{className:"".concat(i,"-input"),ref:v,onChange:function(t){s||("checked"in e||w(t.target.checked),null===m||void 0===m||m({target:Be(Be({},e),{},{type:p,checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:s,checked:!!y,type:p})),o.createElement("span",{className:"".concat(i,"-inner")}))}));const ZA=JA,ez=o.createContext(null),tz=e=>{const{checkboxCls:t}=e,n="".concat(t,"-wrapper");return[{["".concat(t,"-group")]:Object.assign(Object.assign({},Ca(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,["> ".concat(e.antCls,"-row")]:{flex:1}}),[n]:Object.assign(Object.assign({},Ca(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},["& + ".concat(n)]:{marginInlineStart:0},["&".concat(n,"-in-form-item")]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},Ca(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",["".concat(t,"-input")]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,["&:focus-visible + ".concat(t,"-inner")]:Object.assign({},Oa(e))},["".concat(t,"-inner")]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:"".concat(qr(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:"all ".concat(e.motionDurationSlow),"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:"".concat(qr(e.lineWidthBold)," solid ").concat(e.colorWhite),borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:"all ".concat(e.motionDurationFast," ").concat(e.motionEaseInBack,", opacity ").concat(e.motionDurationFast)}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{["\n ".concat(n,":not(").concat(n,"-disabled),\n ").concat(t,":not(").concat(t,"-disabled)\n ")]:{["&:hover ".concat(t,"-inner")]:{borderColor:e.colorPrimary}},["".concat(n,":not(").concat(n,"-disabled)")]:{["&:hover ".concat(t,"-checked:not(").concat(t,"-disabled) ").concat(t,"-inner")]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},["&:hover ".concat(t,"-checked:not(").concat(t,"-disabled):after")]:{borderColor:e.colorPrimaryHover}}},{["".concat(t,"-checked")]:{["".concat(t,"-inner")]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:"all ".concat(e.motionDurationMid," ").concat(e.motionEaseOutBack," ").concat(e.motionDurationFast)}}},["\n ".concat(n,"-checked:not(").concat(n,"-disabled),\n ").concat(t,"-checked:not(").concat(t,"-disabled)\n ")]:{["&:hover ".concat(t,"-inner")]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{["".concat(t,"-inner")]:{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{["".concat(n,"-disabled")]:{cursor:"not-allowed"},["".concat(t,"-disabled")]:{["&, ".concat(t,"-input")]:{cursor:"not-allowed",pointerEvents:"none"},["".concat(t,"-inner")]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},["&".concat(t,"-indeterminate ").concat(t,"-inner::after")]:{background:e.colorTextDisabled}}}]};function nz(e,t){const n=Ga(t,{checkboxCls:".".concat(e),checkboxSize:t.controlInteractiveSize});return[tz(n)]}const oz=Oc("Checkbox",((e,t)=>{let{prefixCls:n}=t;return[nz(n,e)]}));var rz=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const iz=(e,t)=>{var n;const{prefixCls:r,className:i,rootClassName:a,children:l,indeterminate:c=!1,style:s,onMouseEnter:u,onMouseLeave:d,skipGroup:f=!1,disabled:p}=e,h=rz(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:m,direction:g,checkbox:v}=o.useContext(nl),b=o.useContext(ez),{isFormItemInput:y}=o.useContext(rr),w=o.useContext(qc),x=null!==(n=(null===b||void 0===b?void 0:b.disabled)||p)&&void 0!==n?n:w,S=o.useRef(h.value);o.useEffect((()=>{null===b||void 0===b||b.registerValue(h.value)}),[]),o.useEffect((()=>{if(!f)return h.value!==S.current&&(null===b||void 0===b||b.cancelValue(S.current),null===b||void 0===b||b.registerValue(h.value),S.current=h.value),()=>null===b||void 0===b?void 0:b.cancelValue(h.value)}),[h.value]);const C=m("checkbox",r),k=Bc(C),[E,O,_]=oz(C,k),P=Object.assign({},h);b&&!f&&(P.onChange=function(){h.onChange&&h.onChange.apply(h,arguments),b.toggleOption&&b.toggleOption({label:l,value:h.value})},P.name=b.name,P.checked=b.value.includes(h.value));const M=je()("".concat(C,"-wrapper"),{["".concat(C,"-rtl")]:"rtl"===g,["".concat(C,"-wrapper-checked")]:P.checked,["".concat(C,"-wrapper-disabled")]:x,["".concat(C,"-wrapper-in-form-item")]:y},null===v||void 0===v?void 0:v.className,i,a,_,k,O),N=je()({["".concat(C,"-indeterminate")]:c},yh,O),I=c?"mixed":void 0;return E(o.createElement(Ch,{component:"Checkbox",disabled:x},o.createElement("label",{className:M,style:Object.assign(Object.assign({},null===v||void 0===v?void 0:v.style),s),onMouseEnter:u,onMouseLeave:d},o.createElement(ZA,Object.assign({"aria-checked":I},P,{prefixCls:C,className:N,disabled:x,ref:t})),void 0!==l&&o.createElement("span",null,l))))};const az=o.forwardRef(iz);var lz=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const cz=o.forwardRef(((e,t)=>{const{defaultValue:n,children:r,options:i=[],prefixCls:a,className:l,rootClassName:c,style:s,onChange:u}=e,d=lz(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:p}=o.useContext(nl),[h,m]=o.useState(d.value||n||[]),[g,v]=o.useState([]);o.useEffect((()=>{"value"in d&&m(d.value||[])}),[d.value]);const b=o.useMemo((()=>i.map((e=>"string"===typeof e||"number"===typeof e?{label:e,value:e}:e))),[i]),y=f("checkbox",a),w="".concat(y,"-group"),x=Bc(y),[S,C,k]=oz(y,x),E=Zo(d,["value","disabled"]),O=i.length?b.map((e=>o.createElement(az,{prefixCls:y,key:e.value.toString(),disabled:"disabled"in e?e.disabled:d.disabled,value:e.value,checked:h.includes(e.value),onChange:e.onChange,className:"".concat(w,"-item"),style:e.style,title:e.title,id:e.id,required:e.required},e.label))):r,_={toggleOption:e=>{const t=h.indexOf(e.value),n=Re(h);-1===t?n.push(e.value):n.splice(t,1),"value"in d||m(n),null===u||void 0===u||u(n.filter((e=>g.includes(e))).sort(((e,t)=>b.findIndex((t=>t.value===e))-b.findIndex((e=>e.value===t)))))},value:h,disabled:d.disabled,name:d.name,registerValue:e=>{v((t=>[].concat(Re(t),[e])))},cancelValue:e=>{v((t=>t.filter((t=>t!==e))))}},P=je()(w,{["".concat(w,"-rtl")]:"rtl"===p},l,c,k,x,C);return S(o.createElement("div",Object.assign({className:P,style:s},E,{ref:t}),o.createElement(ez.Provider,{value:_},O)))})),sz=cz,uz=az;uz.Group=sz,uz.__ANT_CHECKBOX=!0;const dz=uz;let fz=Object.assign({},hu.Modal),pz=[];const hz=()=>pz.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),hu.Modal);const mz=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;o.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return pz.push(t),fz=hz(),()=>{pz=pz.filter((e=>e!==t)),fz=hz()}}fz=Object.assign({},hu.Modal)}(t&&t.Modal);return e}),[t]);const i=o.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return o.createElement(mu.Provider,{value:i},n)},gz="-ant-".concat(Date.now(),"-").concat(Math.random());function vz(e,t){const n=function(e,t){const n={},o=(e,t)=>{let n=e.clone();return n=(null===t||void 0===t?void 0:t(n))||n,n.toRgbString()},r=(e,t)=>{const r=new Ul(e),i=Ll(r.toRgbString());n["".concat(t,"-color")]=o(r),n["".concat(t,"-color-disabled")]=i[1],n["".concat(t,"-color-hover")]=i[4],n["".concat(t,"-color-active")]=i[6],n["".concat(t,"-color-outline")]=r.clone().setAlpha(.2).toRgbString(),n["".concat(t,"-color-deprecated-bg")]=i[0],n["".concat(t,"-color-deprecated-border")]=i[2]};if(t.primaryColor){r(t.primaryColor,"primary");const e=new Ul(t.primaryColor),i=Ll(e.toRgbString());i.forEach(((e,t)=>{n["primary-".concat(t+1)]=e})),n["primary-color-deprecated-l-35"]=o(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=o(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=o(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=o(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=o(e,(e=>e.setAlpha(.12*e.getAlpha())));const a=new Ul(i[0]);n["primary-color-active-deprecated-f-30"]=o(a,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=o(a,(e=>e.darken(2)))}t.successColor&&r(t.successColor,"success"),t.warningColor&&r(t.warningColor,"warning"),t.errorColor&&r(t.errorColor,"error"),t.infoColor&&r(t.infoColor,"info");const i=Object.keys(n).map((t=>"--".concat(e,"-").concat(t,": ").concat(n[t],";")));return"\n :root {\n ".concat(i.join("\n"),"\n }\n ").trim()}(e,t);Ct()&&yr(n,"".concat(gz,"-dynamic-theme"))}const bz=function(){return{componentDisabled:(0,o.useContext)(qc),componentSize:(0,o.useContext)(Gc)}},yz=Object.assign({},r),{useId:wz}=yz,xz="undefined"===typeof wz?()=>"":wz;function Sz(e){const{children:t}=e,[,n]=hc(),{motion:r}=n,i=o.useRef(!1);return i.current=i.current||!1===r,i.current?o.createElement(et,{motion:r},t):t}const Cz=()=>null;var kz=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Ez=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Oz,_z,Pz,Mz;function Nz(){return Oz||"ant"}const Iz=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,anchor:a,form:l,locale:c,componentSize:s,direction:u,space:d,virtual:f,dropdownMatchSelectWidth:p,popupMatchSelectWidth:h,popupOverflow:m,legacyLocale:g,parentContext:v,iconPrefixCls:b,theme:y,componentDisabled:w,segmented:x,statistic:S,spin:C,calendar:k,carousel:E,cascader:O,collapse:_,typography:P,checkbox:M,descriptions:N,divider:I,drawer:R,skeleton:T,steps:j,image:A,layout:z,list:L,mentions:D,modal:B,progress:F,result:H,slider:W,breadcrumb:V,menu:K,pagination:q,input:U,empty:X,badge:G,radio:$,rate:Y,switch:Q,transfer:J,avatar:Z,message:ee,tag:te,table:ne,card:oe,tabs:re,timeline:ie,timePicker:ae,upload:le,notification:ce,tree:se,colorPicker:ue,datePicker:de,rangePicker:fe,flex:pe,wave:he,dropdown:me,warning:ge,tour:ve}=e,be=o.useCallback(((t,n)=>{const{prefixCls:o}=e;if(n)return n;const r=o||v.getPrefixCls("");return t?"".concat(r,"-").concat(t):r}),[v.getPrefixCls,e.prefixCls]),ye=b||v.iconPrefixCls||tl,we=n||v.csp;xc(ye,we);const xe=function(e,t){var n;ys("ConfigProvider");const o=e||{},r=!1!==o.inherit&&t?t:Object.assign(Object.assign({},oc),{hashed:null!==(n=null===t||void 0===t?void 0:t.hashed)&&void 0!==n?n:oc.hashed,cssVar:null===t||void 0===t?void 0:t.cssVar}),i=xz();return Ue((()=>{var n,a;if(!e)return t;const l=Object.assign({},r.components);Object.keys(e.components||{}).forEach((t=>{l[t]=Object.assign(Object.assign({},l[t]),e.components[t])}));const c="css-var-".concat(i.replace(/:/g,"")),s=(null!==(n=o.cssVar)&&void 0!==n?n:r.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:"ant"},"object"===typeof r.cssVar?r.cssVar:{}),"object"===typeof o.cssVar?o.cssVar:{}),{key:"object"===typeof o.cssVar&&(null===(a=o.cssVar)||void 0===a?void 0:a.key)||c});return Object.assign(Object.assign(Object.assign({},r),o),{token:Object.assign(Object.assign({},r.token),o.token),components:l,cssVar:s})}),[o,r],((e,t)=>e.some(((e,n)=>{const o=t[n];return!Pn(e,o,!0)}))))}(y,v.theme);const Se={csp:we,autoInsertSpaceInButton:r,alert:i,anchor:a,locale:c||g,direction:u,space:d,virtual:f,popupMatchSelectWidth:null!==h&&void 0!==h?h:p,popupOverflow:m,getPrefixCls:be,iconPrefixCls:ye,theme:xe,segmented:x,statistic:S,spin:C,calendar:k,carousel:E,cascader:O,collapse:_,typography:P,checkbox:M,descriptions:N,divider:I,drawer:R,skeleton:T,steps:j,image:A,input:U,layout:z,list:L,mentions:D,modal:B,progress:F,result:H,slider:W,breadcrumb:V,menu:K,pagination:q,empty:X,badge:G,radio:$,rate:Y,switch:Q,transfer:J,avatar:Z,message:ee,tag:te,table:ne,card:oe,tabs:re,timeline:ie,timePicker:ae,upload:le,notification:ce,tree:se,colorPicker:ue,datePicker:de,rangePicker:fe,flex:pe,wave:he,dropdown:me,warning:ge,tour:ve},Ce=Object.assign({},v);Object.keys(Se).forEach((e=>{void 0!==Se[e]&&(Ce[e]=Se[e])})),Ez.forEach((t=>{const n=e[t];n&&(Ce[t]=n)}));const ke=Ue((()=>Ce),Ce,((e,t)=>{const n=Object.keys(e),o=Object.keys(t);return n.length!==o.length||n.some((n=>e[n]!==t[n]))})),Ee=o.useMemo((()=>({prefixCls:ye,csp:we})),[ye,we]);let Oe=o.createElement(o.Fragment,null,o.createElement(Cz,{dropdownMatchSelectWidth:p}),t);const _e=o.useMemo((()=>{var e,t,n,o;return mo((null===(e=hu.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=ke.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(o=ke.form)||void 0===o?void 0:o.validateMessages)||{},(null===l||void 0===l?void 0:l.validateMessages)||{})}),[ke,null===l||void 0===l?void 0:l.validateMessages]);Object.keys(_e).length>0&&(Oe=o.createElement(us.Provider,{value:_e},Oe)),c&&(Oe=o.createElement(mz,{locale:c,_ANT_MARK__:"internalMark"},Oe)),(ye||we)&&(Oe=o.createElement(qs.Provider,{value:Ee},Oe)),s&&(Oe=o.createElement(Xc,{size:s},Oe)),Oe=o.createElement(Sz,null,Oe);const Pe=o.useMemo((()=>{const e=xe||{},{algorithm:t,token:n,components:o,cssVar:r}=e,i=kz(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?jr(t):nc,l={};Object.entries(o||{}).forEach((e=>{let[t,n]=e;const o=Object.assign({},n);"algorithm"in o&&(!0===o.algorithm?o.theme=a:(Array.isArray(o.algorithm)||"function"===typeof o.algorithm)&&(o.theme=jr(o.algorithm)),delete o.algorithm),l[t]=o}));const c=Object.assign(Object.assign({},ql),n);return Object.assign(Object.assign({},i),{theme:a,token:c,components:l,override:Object.assign({override:c},l),cssVar:r})}),[xe]);return y&&(Oe=o.createElement(rc.Provider,{value:Pe},Oe)),ke.warning&&(Oe=o.createElement(bs.Provider,{value:ke.warning},Oe)),void 0!==w&&(Oe=o.createElement(Kc,{disabled:w},Oe)),o.createElement(nl.Provider,{value:ke},Oe)},Rz=e=>{const t=o.useContext(nl),n=o.useContext(mu);return o.createElement(Iz,Object.assign({parentContext:t,legacyLocale:n},e))};Rz.ConfigContext=nl,Rz.SizeContext=Gc,Rz.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:o,holderRender:r}=e;void 0!==t&&(Oz=t),void 0!==n&&(_z=n),"holderRender"in e&&(Mz=r),o&&(!function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(o)?Pz=o:vz(Nz(),o))},Rz.useConfig=bz,Object.defineProperty(Rz,"SizeContext",{get:()=>Gc});const Tz=Rz;const jz=(e,t,n,r)=>function(e){return t=>o.createElement(Tz,{theme:{token:{motion:!1,zIndexPopupBase:0}}},o.createElement(e,Object.assign({},t)))}((i=>{const{prefixCls:a,style:l}=i,c=o.useRef(null),[s,u]=o.useState(0),[d,f]=o.useState(0),[p,h]=el(!1,{value:i.open}),{getPrefixCls:m}=o.useContext(nl),g=m(t||"select",a);o.useEffect((()=>{if(h(!0),"undefined"!==typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;u(t.offsetHeight+8),f(t.offsetWidth)})),t=setInterval((()=>{var o;const r=n?".".concat(n(g)):".".concat(g,"-dropdown"),i=null===(o=c.current)||void 0===o?void 0:o.querySelector(r);i&&(clearInterval(t),e.observe(i))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let v=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},l),{margin:0}),open:p,visible:p,getPopupContainer:()=>c.current});r&&(v=r(v));const b={paddingBottom:s,position:"relative",minWidth:d};return o.createElement("div",{ref:c,style:b},o.createElement(e,Object.assign({},v)))})),Az=new wa("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),zz=new wa("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Lz=new wa("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Dz=new wa("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Bz=new wa("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Fz=new wa("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Hz={"move-up":{inKeyframes:new wa("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new wa("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:Az,outKeyframes:zz},"move-left":{inKeyframes:Lz,outKeyframes:Dz},"move-right":{inKeyframes:Bz,outKeyframes:Fz}},Wz=(e,t)=>{const{antCls:n}=e,o="".concat(n,"-").concat(t),{inKeyframes:r,outKeyframes:i}=Hz[t];return[Na(o,r,i,e.motionDurationMid),{["\n ".concat(o,"-enter,\n ").concat(o,"-appear\n ")]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},["".concat(o,"-leave")]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Vz=e=>{const{componentCls:t,menuCls:n,colorError:o,colorTextLightSolid:r}=e,i="".concat(n,"-item");return{["".concat(t,", ").concat(t,"-menu-submenu")]:{["".concat(n," ").concat(i)]:{["&".concat(i,"-danger:not(").concat(i,"-disabled)")]:{color:o,"&:hover":{color:r,backgroundColor:o}}}}}},Kz=e=>{const{componentCls:t,menuCls:n,zIndexPopup:o,dropdownArrowDistance:r,sizePopupArrow:i,antCls:a,iconCls:l,motionDurationMid:c,paddingBlock:s,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:f,fontSizeIcon:p,controlPaddingHorizontal:h,colorBgElevated:m}=e;return[{[t]:Object.assign(Object.assign({},Ca(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:o,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(r).equal(),zIndex:-9999,opacity:1e-4,content:'""'},["&-trigger".concat(a,"-btn")]:{["& > ".concat(l,"-down, & > ").concat(a,"-btn-icon > ").concat(l,"-down")]:{fontSize:p}},["".concat(t,"-wrap")]:{position:"relative",["".concat(a,"-btn > ").concat(l,"-down")]:{fontSize:p},["".concat(l,"-down::before")]:{transition:"transform ".concat(c)}},["".concat(t,"-wrap-open")]:{["".concat(l,"-down::before")]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},["&".concat(a,"-slide-down-enter").concat(a,"-slide-down-enter-active").concat(t,"-placement-bottomLeft,\n &").concat(a,"-slide-down-appear").concat(a,"-slide-down-appear-active").concat(t,"-placement-bottomLeft,\n &").concat(a,"-slide-down-enter").concat(a,"-slide-down-enter-active").concat(t,"-placement-bottom,\n &").concat(a,"-slide-down-appear").concat(a,"-slide-down-appear-active").concat(t,"-placement-bottom,\n &").concat(a,"-slide-down-enter").concat(a,"-slide-down-enter-active").concat(t,"-placement-bottomRight,\n &").concat(a,"-slide-down-appear").concat(a,"-slide-down-appear-active").concat(t,"-placement-bottomRight")]:{animationName:oy},["&".concat(a,"-slide-up-enter").concat(a,"-slide-up-enter-active").concat(t,"-placement-topLeft,\n &").concat(a,"-slide-up-appear").concat(a,"-slide-up-appear-active").concat(t,"-placement-topLeft,\n &").concat(a,"-slide-up-enter").concat(a,"-slide-up-enter-active").concat(t,"-placement-top,\n &").concat(a,"-slide-up-appear").concat(a,"-slide-up-appear-active").concat(t,"-placement-top,\n &").concat(a,"-slide-up-enter").concat(a,"-slide-up-enter-active").concat(t,"-placement-topRight,\n &").concat(a,"-slide-up-appear").concat(a,"-slide-up-appear-active").concat(t,"-placement-topRight")]:{animationName:iy},["&".concat(a,"-slide-down-leave").concat(a,"-slide-down-leave-active").concat(t,"-placement-bottomLeft,\n &").concat(a,"-slide-down-leave").concat(a,"-slide-down-leave-active").concat(t,"-placement-bottom,\n &").concat(a,"-slide-down-leave").concat(a,"-slide-down-leave-active").concat(t,"-placement-bottomRight")]:{animationName:ry},["&".concat(a,"-slide-up-leave").concat(a,"-slide-up-leave-active").concat(t,"-placement-topLeft,\n &").concat(a,"-slide-up-leave").concat(a,"-slide-up-leave-active").concat(t,"-placement-top,\n &").concat(a,"-slide-up-leave").concat(a,"-slide-up-leave-active").concat(t,"-placement-topRight")]:{animationName:ay}})},Zd(e,m,{arrowPlacement:{top:!0,bottom:!0}}),{["".concat(t," ").concat(n)]:{position:"relative",margin:0},["".concat(n,"-submenu-popup")]:{position:"absolute",zIndex:o,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},["".concat(t,", ").concat(t,"-menu-submenu")]:{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:m,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},_a(e)),{"&:empty":{padding:0,boxShadow:"none"},["".concat(n,"-item-group-title")]:{padding:"".concat(qr(s)," ").concat(qr(h)),color:e.colorTextDescription,transition:"all ".concat(c)},["".concat(n,"-item")]:{position:"relative",display:"flex",alignItems:"center"},["".concat(n,"-item-icon")]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},["".concat(n,"-title-content")]:{flex:"auto","> a":{color:"inherit",transition:"all ".concat(c),"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},["".concat(n,"-item, ").concat(n,"-submenu-title")]:Object.assign(Object.assign({clear:"both",margin:0,padding:"".concat(qr(s)," ").concat(qr(h)),color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:"all ".concat(c),borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},_a(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:"not-allowed","&:hover":{color:f,backgroundColor:m,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:"".concat(qr(e.marginXXS)," 0"),overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},["".concat(t,"-menu-submenu-expand-icon")]:{position:"absolute",insetInlineEnd:e.paddingXS,["".concat(t,"-menu-submenu-arrow-icon")]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:p,fontStyle:"normal"}}}),["".concat(n,"-item-group-list")]:{margin:"0 ".concat(qr(e.marginXS)),padding:0,listStyle:"none"},["".concat(n,"-submenu-title")]:{paddingInlineEnd:e.calc(h).add(e.fontSizeSM).equal()},["".concat(n,"-submenu-vertical")]:{position:"relative"},["".concat(n,"-submenu").concat(n,"-submenu-disabled ").concat(t,"-menu-submenu-title")]:{["&, ".concat(t,"-menu-submenu-arrow-icon")]:{color:f,backgroundColor:m,cursor:"not-allowed"}},["".concat(n,"-submenu-selected ").concat(t,"-menu-submenu-title")]:{color:e.colorPrimary}})}},[fy(e,"slide-up"),fy(e,"slide-down"),Wz(e,"move-up"),Wz(e,"move-down"),Ka(e,"zoom-big")]]},qz=Oc("Dropdown",(e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:o,componentCls:r}=e,i=Ga(e,{menuCls:"".concat(r,"-menu"),dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:o});return[Kz(i),Vz(i)]}),(e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Qd({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Gd(e)))),Uz=e=>{const{menu:t,arrow:n,prefixCls:r,children:i,trigger:a,disabled:l,dropdownRender:c,getPopupContainer:s,overlayClassName:u,rootClassName:d,overlayStyle:f,open:p,onOpenChange:h,visible:m,onVisibleChange:g,mouseEnterDelay:v=.15,mouseLeaveDelay:b=.1,autoAdjustOverflow:y=!0,placement:w="",overlay:x,transitionName:S}=e,{getPopupContainer:C,getPrefixCls:k,direction:E,dropdown:O}=o.useContext(nl);ys("Dropdown");const _=o.useMemo((()=>{const e=k();return void 0!==S?S:w.includes("top")?"".concat(e,"-slide-down"):"".concat(e,"-slide-up")}),[k,w,S]),P=o.useMemo((()=>w?w.includes("Center")?w.slice(0,w.indexOf("Center")):w:"rtl"===E?"bottomRight":"bottomLeft"),[w,E]);const M=k("dropdown",r),N=Bc(M),[I,R,T]=qz(M,N),[,j]=hc(),A=o.Children.only(i),z=gs(A,{className:je()("".concat(M,"-trigger"),{["".concat(M,"-rtl")]:"rtl"===E},A.props.className),disabled:l}),L=l?[]:a;let D;L&&L.includes("contextMenu")&&(D=!0);const[B,F]=el(!1,{value:null!==p&&void 0!==p?p:m}),H=Ja((e=>{null===h||void 0===h||h(e,{source:"trigger"}),null===g||void 0===g||g(e),F(e)})),W=je()(u,d,R,T,N,null===O||void 0===O?void 0:O.className,{["".concat(M,"-rtl")]:"rtl"===E}),V=of({arrowPointAtCenter:"object"===typeof n&&n.pointAtCenter,autoAdjustOverflow:y,offset:j.marginXXS,arrowWidth:n?j.sizePopupArrow:0,borderRadius:j.borderRadius}),K=o.useCallback((()=>{(null===t||void 0===t?void 0:t.selectable)&&(null===t||void 0===t?void 0:t.multiple)||(null===h||void 0===h||h(!1,{source:"menu"}),F(!1))}),[null===t||void 0===t?void 0:t.selectable,null===t||void 0===t?void 0:t.multiple]),[q,U]=Xd("Dropdown",null===f||void 0===f?void 0:f.zIndex);let X=o.createElement(Bw,Object.assign({alignPoint:D},Zo(e,["rootClassName"]),{mouseEnterDelay:v,mouseLeaveDelay:b,visible:B,builtinPlacements:V,arrow:!!n,overlayClassName:W,prefixCls:M,getPopupContainer:s||C,transitionName:_,trigger:L,overlay:()=>{let e;return e=(null===t||void 0===t?void 0:t.items)?o.createElement(_y,Object.assign({},t)):"function"===typeof x?x():x,c&&(e=c(e)),e=o.Children.only("string"===typeof e?o.createElement("span",null,e):e),o.createElement(ty,{prefixCls:"".concat(M,"-menu"),rootClassName:je()(T,N),expandIcon:o.createElement("span",{className:"".concat(M,"-menu-submenu-arrow")},o.createElement(Sg,{className:"".concat(M,"-menu-submenu-arrow-icon")})),mode:"vertical",selectable:!1,onClick:K,validator:e=>{let{mode:t}=e}},e)},placement:P,onVisibleChange:H,overlayStyle:Object.assign(Object.assign(Object.assign({},null===O||void 0===O?void 0:O.style),f),{zIndex:q})}),z);return q&&(X=o.createElement(Vd.Provider,{value:U},X)),I(X)};const Xz=jz(Uz,"dropdown",(e=>e),(function(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}));Uz._InternalPanelDoNotUseOrYouWillBeFired=e=>o.createElement(Xz,Object.assign({},e),o.createElement("span",null));const Gz=Uz;var $z=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Yz=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=o.useContext(nl),{prefixCls:i,type:a="default",danger:l,disabled:c,loading:s,onClick:u,htmlType:d,children:f,className:p,menu:h,arrow:m,autoFocus:g,overlay:v,trigger:b,align:y,open:w,onOpenChange:x,placement:S,getPopupContainer:C,href:k,icon:E=o.createElement(Kb,null),title:O,buttonsRender:_=(e=>e),mouseEnterDelay:P,mouseLeaveDelay:M,overlayClassName:N,overlayStyle:I,destroyPopupOnHide:R,dropdownRender:T}=e,j=$z(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"]),A=n("dropdown",i),z="".concat(A,"-button"),L={menu:h,arrow:m,autoFocus:g,align:y,disabled:c,trigger:c?[]:b,onOpenChange:x,getPopupContainer:C||t,mouseEnterDelay:P,mouseLeaveDelay:M,overlayClassName:N,overlayStyle:I,destroyPopupOnHide:R,dropdownRender:T},{compactSize:D,compactItemClassnames:B}=df(A,r),F=je()(z,B,p);"overlay"in e&&(L.overlay=v),"open"in e&&(L.open=w),L.placement="placement"in e?S:"rtl"===r?"bottomLeft":"bottomRight";const H=o.createElement(gm,{type:a,danger:l,disabled:c,loading:s,onClick:u,htmlType:d,href:k,title:O},f),W=o.createElement(gm,{type:a,danger:l,icon:E}),[V,K]=_([H,W]);return o.createElement(zy.Compact,Object.assign({className:F,size:D,block:!0},j),V,o.createElement(Gz,Object.assign({},L),K))};Yz.__ANT_BUTTON=!0;const Qz=Yz,Jz=Gz;Jz.Button=Qz;const Zz=Jz,eL=o.createContext(null),tL=eL.Provider,nL=eL,oL=o.createContext(null),rL=oL.Provider,iL=e=>{const{componentCls:t,antCls:n}=e,o="".concat(t,"-group");return{[o]:Object.assign(Object.assign({},Ca(e)),{display:"inline-block",fontSize:0,["&".concat(o,"-rtl")]:{direction:"rtl"},["".concat(n,"-badge ").concat(n,"-badge-count")]:{zIndex:1},["> ".concat(n,"-badge:not(:first-child) > ").concat(n,"-button-wrapper")]:{borderInlineStart:"none"}})}},aL=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:o,radioSize:r,motionDurationSlow:i,motionDurationMid:a,motionEaseInOutCirc:l,colorBgContainer:c,colorBorder:s,lineWidth:u,colorBgContainerDisabled:d,colorTextDisabled:f,paddingXS:p,dotColorDisabled:h,lineType:m,radioColor:g,radioBgColor:v,calc:b}=e,y="".concat(t,"-inner"),w=b(r).sub(b(4).mul(2)),x=b(1).mul(r).equal();return{["".concat(t,"-wrapper")]:Object.assign(Object.assign({},Ca(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",["&".concat(t,"-wrapper-rtl")]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},["".concat(t,"-checked::after")]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:"".concat(qr(u)," ").concat(m," ").concat(o),borderRadius:"50%",visibility:"hidden",content:'""'},[t]:Object.assign(Object.assign({},Ca(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),["".concat(t,"-wrapper:hover &,\n &:hover ").concat(y)]:{borderColor:o},["".concat(t,"-input:focus-visible + ").concat(y)]:Object.assign({},Oa(e)),["".concat(t,":hover::after, ").concat(t,"-wrapper:hover &::after")]:{visibility:"visible"},["".concat(t,"-inner")]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:x,height:x,marginBlockStart:b(1).mul(r).div(-2).equal(),marginInlineStart:b(1).mul(r).div(-2).equal(),backgroundColor:g,borderBlockStart:0,borderInlineStart:0,borderRadius:x,transform:"scale(0)",opacity:0,transition:"all ".concat(i," ").concat(l),content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:x,height:x,backgroundColor:c,borderColor:s,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:"all ".concat(a)},["".concat(t,"-input")]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},["".concat(t,"-checked")]:{[y]:{borderColor:o,backgroundColor:v,"&::after":{transform:"scale(".concat(e.calc(e.dotSize).div(r).equal(),")"),opacity:1,transition:"all ".concat(i," ").concat(l)}}},["".concat(t,"-disabled")]:{cursor:"not-allowed",[y]:{backgroundColor:d,borderColor:s,cursor:"not-allowed","&::after":{backgroundColor:h}},["".concat(t,"-input")]:{cursor:"not-allowed"},["".concat(t,"-disabled + span")]:{color:f,cursor:"not-allowed"},["&".concat(t,"-checked")]:{[y]:{"&::after":{transform:"scale(".concat(b(w).div(r).equal({unit:!1}),")")}}}},["span".concat(t," + *")]:{paddingInlineStart:p,paddingInlineEnd:p}})}},lL=e=>{const{buttonColor:t,controlHeight:n,componentCls:o,lineWidth:r,lineType:i,colorBorder:a,motionDurationSlow:l,motionDurationMid:c,buttonPaddingInline:s,fontSize:u,buttonBg:d,fontSizeLG:f,controlHeightLG:p,controlHeightSM:h,paddingXS:m,borderRadius:g,borderRadiusSM:v,borderRadiusLG:b,buttonCheckedBg:y,buttonSolidCheckedColor:w,colorTextDisabled:x,colorBgContainerDisabled:S,buttonCheckedBgDisabled:C,buttonCheckedColorDisabled:k,colorPrimary:E,colorPrimaryHover:O,colorPrimaryActive:_,buttonSolidCheckedBg:P,buttonSolidCheckedHoverBg:M,buttonSolidCheckedActiveBg:N,calc:I}=e;return{["".concat(o,"-button-wrapper")]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:s,paddingBlock:0,color:t,fontSize:u,lineHeight:qr(I(n).sub(I(r).mul(2)).equal()),background:d,border:"".concat(qr(r)," ").concat(i," ").concat(a),borderBlockStartWidth:I(r).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:r,cursor:"pointer",transition:["color ".concat(c),"background ".concat(c),"box-shadow ".concat(c)].join(","),a:{color:t},["> ".concat(o,"-button")]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:I(r).mul(-1).equal(),insetInlineStart:I(r).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:r,paddingInline:0,backgroundColor:a,transition:"background-color ".concat(l),content:'""'}},"&:first-child":{borderInlineStart:"".concat(qr(r)," ").concat(i," ").concat(a),borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g},["".concat(o,"-group-large &")]:{height:p,fontSize:f,lineHeight:qr(I(p).sub(I(r).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},["".concat(o,"-group-small &")]:{height:h,paddingInline:I(m).sub(r).equal(),paddingBlock:0,lineHeight:qr(I(h).sub(I(r).mul(2)).equal()),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},"&:hover":{position:"relative",color:E},"&:has(:focus-visible)":Object.assign({},Oa(e)),["".concat(o,"-inner, input[type='checkbox'], input[type='radio']")]:{width:0,height:0,opacity:0,pointerEvents:"none"},["&-checked:not(".concat(o,"-button-wrapper-disabled)")]:{zIndex:1,color:E,background:y,borderColor:E,"&::before":{backgroundColor:E},"&:first-child":{borderColor:E},"&:hover":{color:O,borderColor:O,"&::before":{backgroundColor:O}},"&:active":{color:_,borderColor:_,"&::before":{backgroundColor:_}}},["".concat(o,"-group-solid &-checked:not(").concat(o,"-button-wrapper-disabled)")]:{color:w,background:P,borderColor:P,"&:hover":{color:w,background:M,borderColor:M},"&:active":{color:w,background:N,borderColor:N}},"&-disabled":{color:x,backgroundColor:S,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:x,backgroundColor:S,borderColor:a}},["&-disabled".concat(o,"-button-wrapper-checked")]:{color:k,backgroundColor:C,borderColor:a,boxShadow:"none"}}}},cL=Oc("Radio",(e=>{const{controlOutline:t,controlOutlineWidth:n}=e,o="0 0 0 ".concat(qr(n)," ").concat(t),r=Ga(e,{radioFocusShadow:o,radioButtonFocusShadow:o});return[iL(r),aL(r),lL(r)]}),(e=>{const{wireframe:t,padding:n,marginXS:o,lineWidth:r,fontSizeLG:i,colorText:a,colorBgContainer:l,colorTextDisabled:c,controlItemBgActiveDisabled:s,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:f,colorPrimaryActive:p,colorWhite:h}=e;return{radioSize:i,dotSize:t?i-8:i-2*(4+r),dotColorDisabled:c,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:p,buttonBg:l,buttonCheckedBg:l,buttonColor:a,buttonCheckedBgDisabled:s,buttonCheckedColorDisabled:c,buttonPaddingInline:n-r,wrapperMarginInlineEnd:o,radioColor:t?d:h,radioBgColor:t?l:d}}),{unitless:{radioSize:!0,dotSize:!0}});var sL=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const uL=(e,t)=>{var n,r;const i=o.useContext(nL),a=o.useContext(oL),{getPrefixCls:l,direction:c,radio:s}=o.useContext(nl),u=Ge(t,o.useRef(null)),{isFormItemInput:d}=o.useContext(rr);const f=t=>{var n,o;null===(n=e.onChange)||void 0===n||n.call(e,t),null===(o=null===i||void 0===i?void 0:i.onChange)||void 0===o||o.call(i,t)},{prefixCls:p,className:h,rootClassName:m,children:g,style:v,title:b}=e,y=sL(e,["prefixCls","className","rootClassName","children","style","title"]),w=l("radio",p),x="button"===((null===i||void 0===i?void 0:i.optionType)||a),S=x?"".concat(w,"-button"):w,C=Bc(w),[k,E,O]=cL(w,C),_=Object.assign({},y),P=o.useContext(qc);i&&(_.name=i.name,_.onChange=f,_.checked=e.value===i.value,_.disabled=null!==(n=_.disabled)&&void 0!==n?n:i.disabled),_.disabled=null!==(r=_.disabled)&&void 0!==r?r:P;const M=je()("".concat(S,"-wrapper"),{["".concat(S,"-wrapper-checked")]:_.checked,["".concat(S,"-wrapper-disabled")]:_.disabled,["".concat(S,"-wrapper-rtl")]:"rtl"===c,["".concat(S,"-wrapper-in-form-item")]:d},null===s||void 0===s?void 0:s.className,h,m,E,O,C);return k(o.createElement(Ch,{component:"Radio",disabled:_.disabled},o.createElement("label",{className:M,style:Object.assign(Object.assign({},null===s||void 0===s?void 0:s.style),v),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:b},o.createElement(ZA,Object.assign({},_,{className:je()(_.className,!x&&yh),type:"radio",prefixCls:S,ref:u})),void 0!==g?o.createElement("span",null,g):null)))};const dL=o.forwardRef(uL),fL=o.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r}=o.useContext(nl),[i,a]=el(e.defaultValue,{value:e.value}),{prefixCls:l,className:c,rootClassName:s,options:u,buttonStyle:d="outline",disabled:f,children:p,size:h,style:m,id:g,onMouseEnter:v,onMouseLeave:b,onFocus:y,onBlur:w}=e,x=n("radio",l),S="".concat(x,"-group"),C=Bc(x),[k,E,O]=cL(x,C);let _=p;u&&u.length>0&&(_=u.map((e=>"string"===typeof e||"number"===typeof e?o.createElement(dL,{key:e.toString(),prefixCls:x,disabled:f,value:e,checked:i===e},e):o.createElement(dL,{key:"radio-group-value-options-".concat(e.value),prefixCls:x,disabled:e.disabled||f,value:e.value,checked:i===e.value,title:e.title,style:e.style,id:e.id,required:e.required},e.label))));const P=$c(h),M=je()(S,"".concat(S,"-").concat(d),{["".concat(S,"-").concat(P)]:P,["".concat(S,"-rtl")]:"rtl"===r},c,s,E,O,C);return k(o.createElement("div",Object.assign({},VT(e,{aria:!0,data:!0}),{className:M,style:m,onMouseEnter:v,onMouseLeave:b,onFocus:y,onBlur:w,id:g,ref:t}),o.createElement(tL,{value:{onChange:t=>{const n=i,o=t.target.value;"value"in e||a(o);const{onChange:r}=e;r&&o!==n&&r(t)},value:i,disabled:e.disabled,name:e.name,optionType:e.optionType}},_)))})),pL=o.memo(fL);var hL=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const mL=(e,t)=>{const{getPrefixCls:n}=o.useContext(nl),{prefixCls:r}=e,i=hL(e,["prefixCls"]),a=n("radio",r);return o.createElement(rL,{value:"button"},o.createElement(dL,Object.assign({prefixCls:a},i,{type:"radio",ref:t})))},gL=o.forwardRef(mL),vL=dL;vL.Button=gL,vL.Group=pL,vL.__ANT_RADIO=!0;const bL=vL,yL={},wL="SELECT_ALL",xL="SELECT_INVERT",SL="SELECT_NONE",CL=[],kL=(e,t)=>{let n=[];return(t||[]).forEach((t=>{n.push(t),t&&"object"===typeof t&&e in t&&(n=[].concat(Re(n),Re(kL(e,t[e]))))})),n},EL=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:i,getCheckboxProps:a,onChange:l,onSelect:c,onSelectAll:s,onSelectInvert:u,onSelectNone:d,onSelectMultiple:f,columnWidth:p,type:h,selections:m,fixed:g,renderCell:v,hideSelectAll:b,checkStrictly:y=!0}=t||{},{prefixCls:w,data:x,pageData:S,getRecordByKey:C,getRowKey:k,expandType:E,childrenColumnName:O,locale:_,getPopupContainer:P}=e,M=ys("Table"),[N,I]=function(e){const[t,n]=(0,o.useState)(null),r=(0,o.useCallback)(((o,r,i)=>{const a=null!==t&&void 0!==t?t:o,l=Math.min(a||0,o),c=Math.max(a||0,o),s=r.slice(l,c+1).map((t=>e(t))),u=s.some((e=>!i.has(e))),d=[];return s.forEach((e=>{u?(i.has(e)||d.push(e),i.add(e)):(i.delete(e),d.push(e))})),n(u?c:null),d}),[t]);return[r,e=>{n(e)}]}((e=>e)),[R,T]=el(r||i||CL,{value:r}),j=o.useRef(new Map),A=(0,o.useCallback)((e=>{if(n){const t=new Map;e.forEach((e=>{let n=C(e);!n&&j.current.has(e)&&(n=j.current.get(e)),t.set(e,n)})),j.current=t}}),[C,n]);o.useEffect((()=>{A(R)}),[R]);const{keyEntities:z}=(0,o.useMemo)((()=>{if(y)return{keyEntities:null};let e=x;if(n){const t=new Set(x.map(((e,t)=>k(e,t)))),n=Array.from(j.current).reduce(((e,n)=>{let[o,r]=n;return t.has(o)?e:e.concat(r)}),[]);e=[].concat(Re(e),Re(n))}return NA(e,{externalGetKey:k,childrenPropName:O})}),[x,k,y,O,n]),L=(0,o.useMemo)((()=>kL(O,S)),[O,S]),D=(0,o.useMemo)((()=>{const e=new Map;return L.forEach(((t,n)=>{const o=k(t,n),r=(a?a(t):null)||{};e.set(o,r)})),e}),[L,k,a]),B=(0,o.useCallback)((e=>{var t;return!!(null===(t=D.get(k(e)))||void 0===t?void 0:t.disabled)}),[D,k]),[F,H]=(0,o.useMemo)((()=>{if(y)return[R||[],[]];const{checkedKeys:e,halfCheckedKeys:t}=YA(R,!0,z,B);return[e||[],t]}),[R,y,z,B]),W=(0,o.useMemo)((()=>{const e="radio"===h?F.slice(0,1):F;return new Set(e)}),[F,h]),V=(0,o.useMemo)((()=>"radio"===h?new Set:new Set(H)),[H,h]);o.useEffect((()=>{t||T(CL)}),[!!t]);const K=(0,o.useCallback)(((e,t)=>{let o,r;A(e),n?(o=e,r=e.map((e=>j.current.get(e)))):(o=[],r=[],e.forEach((e=>{const t=C(e);void 0!==t&&(o.push(e),r.push(t))}))),T(o),null===l||void 0===l||l(o,r,{type:t})}),[T,C,l,n]),q=(0,o.useCallback)(((e,t,n,o)=>{if(c){const r=n.map((e=>C(e)));c(C(e),t,r,o)}K(n,"single")}),[c,C,K]),U=(0,o.useMemo)((()=>{if(!m||b)return null;return(!0===m?[wL,xL,SL]:m).map((e=>e===wL?{key:"all",text:_.selectionAll,onSelect(){K(x.map(((e,t)=>k(e,t))).filter((e=>{const t=D.get(e);return!(null===t||void 0===t?void 0:t.disabled)||W.has(e)})),"all")}}:e===xL?{key:"invert",text:_.selectInvert,onSelect(){const e=new Set(W);S.forEach(((t,n)=>{const o=k(t,n),r=D.get(o);(null===r||void 0===r?void 0:r.disabled)||(e.has(o)?e.delete(o):e.add(o))}));const t=Array.from(e);u&&(M.deprecated(!1,"onSelectInvert","onChange"),u(t)),K(t,"invert")}}:e===SL?{key:"none",text:_.selectNone,onSelect(){null===d||void 0===d||d(),K(Array.from(W).filter((e=>{const t=D.get(e);return null===t||void 0===t?void 0:t.disabled})),"none")}}:e)).map((e=>Object.assign(Object.assign({},e),{onSelect:function(){for(var t,n,o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];null===(n=e.onSelect)||void 0===n||(t=n).call.apply(t,[e].concat(r)),I(null)}})))}),[m,W,S,k,u,K]),X=(0,o.useCallback)((e=>{var n;if(!t)return e.filter((e=>e!==yL));let r=Re(e);const i=new Set(W),a=L.map(k).filter((e=>!D.get(e).disabled)),l=a.every((e=>i.has(e))),c=a.some((e=>i.has(e))),u=()=>{const e=[];l?a.forEach((t=>{i.delete(t),e.push(t)})):a.forEach((t=>{i.has(t)||(i.add(t),e.push(t))}));const t=Array.from(i);null===s||void 0===s||s(!l,t.map((e=>C(e))),e.map((e=>C(e)))),K(t,"all"),I(null)};let d,x,S;if("radio"!==h){let e;if(U){const t={getPopupContainer:P,items:U.map(((e,t)=>{const{key:n,text:o,onSelect:r}=e;return{key:null!==n&&void 0!==n?n:t,onClick:()=>{null===r||void 0===r||r(a)},label:o}}))};e=o.createElement("div",{className:"".concat(w,"-selection-extra")},o.createElement(Zz,{menu:t,getPopupContainer:P},o.createElement("span",null,o.createElement(yA,null))))}const t=L.map(((e,t)=>{const n=k(e,t),o=D.get(n)||{};return Object.assign({checked:i.has(n)},o)})).filter((e=>{let{disabled:t}=e;return t})),n=!!t.length&&t.length===L.length,r=n&&t.every((e=>{let{checked:t}=e;return t})),s=n&&t.some((e=>{let{checked:t}=e;return t}));x=o.createElement(dz,{checked:n?r:!!L.length&&l,indeterminate:n?!r&&s:!l&&c,onChange:u,disabled:0===L.length||n,"aria-label":e?"Custom selection":"Select all",skipGroup:!0}),d=!b&&o.createElement("div",{className:"".concat(w,"-selection")},x,e)}S="radio"===h?(e,t,n)=>{const r=k(t,n),a=i.has(r);return{node:o.createElement(bL,Object.assign({},D.get(r),{checked:a,onClick:e=>e.stopPropagation(),onChange:e=>{i.has(r)||q(r,!0,[r],e.nativeEvent)}})),checked:a}}:(e,t,n)=>{var r;const l=k(t,n),c=i.has(l),s=V.has(l),u=D.get(l);let d;return d="nest"===E?s:null!==(r=null===u||void 0===u?void 0:u.indeterminate)&&void 0!==r?r:s,{node:o.createElement(dz,Object.assign({},u,{indeterminate:d,checked:c,skipGroup:!0,onClick:e=>e.stopPropagation(),onChange:e=>{let{nativeEvent:t}=e;const{shiftKey:n}=t,o=a.findIndex((e=>e===l)),r=F.some((e=>a.includes(e)));if(n&&y&&r){const e=N(o,a,i),t=Array.from(i);null===f||void 0===f||f(!c,t.map((e=>C(e))),e.map((e=>C(e)))),K(t,"multiple")}else{const e=F;if(y){const n=c?BA(e,l):FA(e,l);q(l,!c,n,t)}else{const n=YA([].concat(Re(e),[l]),!0,z,B),{checkedKeys:o,halfCheckedKeys:r}=n;let i=o;if(c){const e=new Set(o);e.delete(l),i=YA(Array.from(e),{checked:!1,halfCheckedKeys:r},z,B).checkedKeys}q(l,!c,i,t)}}I(c?null:o)}})),checked:c}};if(!r.includes(yL))if(0===r.findIndex((e=>{var t;return"EXPAND_COLUMN"===(null===(t=e[ej])||void 0===t?void 0:t.columnType)}))){const[e,...t]=r;r=[e,yL].concat(Re(t))}else r=[yL].concat(Re(r));const O=r.indexOf(yL);r=r.filter(((e,t)=>e!==yL||t===O));const _=r[O-1],M=r[O+1];let R=g;void 0===R&&(void 0!==(null===M||void 0===M?void 0:M.fixed)?R=M.fixed:void 0!==(null===_||void 0===_?void 0:_.fixed)&&(R=_.fixed)),R&&_&&"EXPAND_COLUMN"===(null===(n=_[ej])||void 0===n?void 0:n.columnType)&&void 0===_.fixed&&(_.fixed=R);const T=je()("".concat(w,"-selection-col"),{["".concat(w,"-selection-col-with-dropdown")]:m&&"checkbox"===h}),j={fixed:R,width:p,className:"".concat(w,"-selection-column"),title:(null===t||void 0===t?void 0:t.columnTitle)?"function"===typeof t.columnTitle?t.columnTitle(x):t.columnTitle:d,render:(e,t,n)=>{const{node:o,checked:r}=S(e,t,n);return v?v(r,t,n,o):o},onCell:t.onCell,[ej]:{className:T}};return r.map((e=>e===yL?j:e))}),[k,L,t,F,W,V,p,U,E,D,f,q,B]);return[X,W]};function OL(e,t){return(0,o.useImperativeHandle)(e,(()=>{const e=t(),{nativeElement:n}=e;return"undefined"!==typeof Proxy?new Proxy(n,{get:(t,n)=>e[n]?e[n]:Reflect.get(t,n)}):(r=e,(o=n)._antProxy=o._antProxy||{},Object.keys(r).forEach((e=>{if(!(e in o._antProxy)){const t=o[e];o._antProxy[e]=t,o[e]=r[e]}})),o);var o,r}))}function _L(e){return null!==e&&void 0!==e&&e===e.window}function PL(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{getContainer:n=(()=>window),callback:o,duration:r=450}=t,i=n(),a=function(e,t){var n,o;if("undefined"===typeof window)return 0;const r=t?"scrollTop":"scrollLeft";let i=0;return _L(e)?i=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?i=e.documentElement[r]:(e instanceof HTMLElement||e)&&(i=e[r]),e&&!_L(e)&&"number"!==typeof i&&(i=null===(o=(null!==(n=e.ownerDocument)&&void 0!==n?n:e).documentElement)||void 0===o?void 0:o[r]),i}(i,!0),l=Date.now(),c=()=>{const t=Date.now()-l,n=function(e,t,n,o){const r=n-t;return(e/=o/2)<1?r/2*e*e*e+t:r/2*((e-=2)*e*e+2)+t}(t>r?r:t,a,e,r);_L(i)?i.scrollTo(window.pageXOffset,n):i instanceof Document||"HTMLDocument"===i.constructor.name?i.documentElement.scrollTop=n:i.scrollTop=n,t<r?Kt(c):"function"===typeof o&&o()};Kt(c)}const ML=()=>{const[,e]=hc(),t=new Ul(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return o.createElement("svg",{style:t,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("g",{transform:"translate(24 31.67)"},o.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),o.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"}),o.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)"}),o.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"}),o.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"})),o.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"}),o.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},o.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),o.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};const NL=()=>{const[,e]=hc(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:i}=e,{borderColor:a,shadowColor:l,contentColor:c}=(0,o.useMemo)((()=>({borderColor:new Ul(t).onBackground(i).toHexShortString(),shadowColor:new Ul(n).onBackground(i).toHexShortString(),contentColor:new Ul(r).onBackground(i).toHexShortString()})),[t,n,r,i]);return o.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},o.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},o.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),o.createElement("g",{fillRule:"nonzero",stroke:a},o.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"}),o.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:c}))))},IL=e=>{const{componentCls:t,margin:n,marginXS:o,marginXL:r,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:o,fontSize:i,lineHeight:a,textAlign:"center",["".concat(t,"-image")]:{height:e.emptyImgHeight,marginBottom:o,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},["".concat(t,"-description")]:{color:e.colorText},["".concat(t,"-footer")]:{marginTop:n},"&-normal":{marginBlock:r,color:e.colorTextDisabled,["".concat(t,"-description")]:{color:e.colorTextDisabled},["".concat(t,"-image")]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:o,color:e.colorTextDisabled,["".concat(t,"-image")]:{height:e.emptyImgHeightSM}}}}},RL=Oc("Empty",(e=>{const{componentCls:t,controlHeightLG:n,calc:o}=e,r=Ga(e,{emptyImgCls:"".concat(t,"-img"),emptyImgHeight:o(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:o(n).mul(.875).equal()});return[IL(r)]}));var TL=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const jL=o.createElement(ML,null),AL=o.createElement(NL,null),zL=e=>{var{className:t,rootClassName:n,prefixCls:r,image:i=jL,description:a,children:l,imageStyle:c,style:s}=e,u=TL(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:d,direction:f,empty:p}=o.useContext(nl),h=d("empty",r),[m,g,v]=RL(h),[b]=gu("Empty"),y="undefined"!==typeof a?a:null===b||void 0===b?void 0:b.description,w="string"===typeof y?y:"empty";let x=null;return x="string"===typeof i?o.createElement("img",{alt:w,src:i}):i,m(o.createElement("div",Object.assign({className:je()(g,v,h,null===p||void 0===p?void 0:p.className,{["".concat(h,"-normal")]:i===AL,["".concat(h,"-rtl")]:"rtl"===f},t,n),style:Object.assign(Object.assign({},null===p||void 0===p?void 0:p.style),s)},u),o.createElement("div",{className:"".concat(h,"-image"),style:c},x),y&&o.createElement("div",{className:"".concat(h,"-description")},y),l&&o.createElement("div",{className:"".concat(h,"-footer")},l)))};zL.PRESENTED_IMAGE_DEFAULT=jL,zL.PRESENTED_IMAGE_SIMPLE=AL;const LL=zL,DL=e=>{const{componentName:t}=e,{getPrefixCls:n}=(0,o.useContext)(nl),r=n("empty");switch(t){case"Table":case"List":return o.createElement(LL,{image:LL.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return o.createElement(LL,{image:LL.PRESENTED_IMAGE_SIMPLE,className:"".concat(r,"-small")});default:return o.createElement(LL,null)}};function BL(){const[,e]=o.useReducer((e=>e+1),0);return e}const FL=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=(0,o.useRef)({}),n=BL(),r=Os();return Zr((()=>{const o=r.subscribe((o=>{t.current=o,e&&n()}));return()=>r.unsubscribe(o)}),[]),t.current};const HL={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"};var WL=function(e,t){return o.createElement(au,Jt({},e,{ref:t,icon:HL}))};const VL=o.forwardRef(WL);const KL={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"};var qL=function(e,t){return o.createElement(au,Jt({},e,{ref:t,icon:KL}))};const UL=o.forwardRef(qL);const XL={items_per_page:"\u6761/\u9875",jump_to:"\u8df3\u81f3",jump_to_confirm:"\u786e\u5b9a",page:"\u9875",prev_page:"\u4e0a\u4e00\u9875",next_page:"\u4e0b\u4e00\u9875",prev_5:"\u5411\u524d 5 \u9875",next_5:"\u5411\u540e 5 \u9875",prev_3:"\u5411\u524d 3 \u9875",next_3:"\u5411\u540e 3 \u9875",page_size:"\u9875\u7801"};var GL=["10","20","50","100"];const $L=function(e){var t=e.pageSizeOptions,n=void 0===t?GL:t,r=e.locale,i=e.changeSize,a=e.pageSize,l=e.goButton,c=e.quickGo,s=e.rootPrefixCls,u=e.selectComponentClass,d=e.selectPrefixCls,f=e.disabled,p=e.buildOptionText,h=We(o.useState(""),2),m=h[0],g=h[1],v=function(){return!m||Number.isNaN(m)?void 0:Number(m)},b="function"===typeof p?p:function(e){return"".concat(e," ").concat(r.items_per_page)},y=function(e){""!==m&&(e.keyCode!==jv.ENTER&&"click"!==e.type||(g(""),null===c||void 0===c||c(v())))},w="".concat(s,"-options");if(!i&&!c)return null;var x=null,S=null,C=null;if(i&&u){var k=(n.some((function(e){return e.toString()===a.toString()}))?n:n.concat([a.toString()]).sort((function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))}))).map((function(e,t){return o.createElement(u.Option,{key:t,value:e.toString()},b(e))}));x=o.createElement(u,{disabled:f,prefixCls:d,showSearch:!1,className:"".concat(w,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(a||n[0]).toString(),onChange:function(e){null===i||void 0===i||i(Number(e))},getPopupContainer:function(e){return e.parentNode},"aria-label":r.page_size,defaultOpen:!1},k)}return c&&(l&&(C="boolean"===typeof l?o.createElement("button",{type:"button",onClick:y,onKeyUp:y,disabled:f,className:"".concat(w,"-quick-jumper-button")},r.jump_to_confirm):o.createElement("span",{onClick:y,onKeyUp:y},l)),S=o.createElement("div",{className:"".concat(w,"-quick-jumper")},r.jump_to,o.createElement("input",{disabled:f,type:"text",value:m,onChange:function(e){g(e.target.value)},onKeyUp:y,onBlur:function(e){l||""===m||(g(""),e.relatedTarget&&(e.relatedTarget.className.indexOf("".concat(s,"-item-link"))>=0||e.relatedTarget.className.indexOf("".concat(s,"-item"))>=0)||null===c||void 0===c||c(v()))},"aria-label":r.page}),r.page,C)),o.createElement("li",{className:w},x,S)};const YL=function(e){var t,n=e.rootPrefixCls,r=e.page,i=e.active,a=e.className,l=e.showTitle,c=e.onClick,s=e.onKeyPress,u=e.itemRender,d="".concat(n,"-item"),f=je()(d,"".concat(d,"-").concat(r),(Le(t={},"".concat(d,"-active"),i),Le(t,"".concat(d,"-disabled"),!r),t),a),p=u(r,"page",o.createElement("a",{rel:"nofollow"},r));return p?o.createElement("li",{title:l?String(r):null,className:f,onClick:function(){c(r)},onKeyDown:function(e){s(e,c,r)},tabIndex:0},p):null};var QL=function(e,t,n){return n};function JL(){}function ZL(e){var t=Number(e);return"number"===typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function eD(e,t,n){var o="undefined"===typeof e?t:e;return Math.floor((n-1)/o)+1}const tD=function(e){var t,n=e.prefixCls,r=void 0===n?"rc-pagination":n,i=e.selectPrefixCls,a=void 0===i?"rc-select":i,l=e.className,c=e.selectComponentClass,s=e.current,u=e.defaultCurrent,d=void 0===u?1:u,f=e.total,p=void 0===f?0:f,h=e.pageSize,m=e.defaultPageSize,g=void 0===m?10:m,v=e.onChange,b=void 0===v?JL:v,y=e.hideOnSinglePage,w=e.showPrevNextJumpers,x=void 0===w||w,S=e.showQuickJumper,C=e.showLessItems,k=e.showTitle,E=void 0===k||k,O=e.onShowSizeChange,_=void 0===O?JL:O,P=e.locale,M=void 0===P?XL:P,N=e.style,I=e.totalBoundaryShowSizeChanger,R=void 0===I?50:I,T=e.disabled,j=e.simple,A=e.showTotal,z=e.showSizeChanger,L=e.pageSizeOptions,D=e.itemRender,B=void 0===D?QL:D,F=e.jumpPrevIcon,H=e.jumpNextIcon,W=e.prevIcon,V=e.nextIcon,K=o.useRef(null),q=We(el(10,{value:h,defaultValue:g}),2),U=q[0],X=q[1],G=We(el(1,{value:s,defaultValue:d,postState:function(e){return Math.max(1,Math.min(e,eD(void 0,U,p)))}}),2),$=G[0],Y=G[1],Q=We(o.useState($),2),J=Q[0],Z=Q[1];(0,o.useEffect)((function(){Z($)}),[$]);var ee=Math.max(1,$-(C?3:5)),te=Math.min(eD(void 0,U,p),$+(C?3:5));function ne(t,n){var i=t||o.createElement("button",{type:"button","aria-label":n,className:"".concat(r,"-item-link")});return"function"===typeof t&&(i=o.createElement(t,Be({},e))),i}function oe(e){var t=e.target.value,n=eD(void 0,U,p);return""===t?t:Number.isNaN(Number(t))?J:t>=n?n:Number(t)}var re=p>U&&S;function ie(e){var t=oe(e);switch(t!==J&&Z(t),e.keyCode){case jv.ENTER:ae(t);break;case jv.UP:ae(t-1);break;case jv.DOWN:ae(t+1)}}function ae(e){if(function(e){return ZL(e)&&e!==$&&ZL(p)&&p>0}(e)&&!T){var t=eD(void 0,U,p),n=e;return e>t?n=t:e<1&&(n=1),n!==J&&Z(n),Y(n),null===b||void 0===b||b(n,U),n}return $}var le=$>1,ce=$<eD(void 0,U,p),se=null!==z&&void 0!==z?z:p>R;function ue(){le&&ae($-1)}function de(){ce&&ae($+1)}function fe(){ae(ee)}function pe(){ae(te)}function he(e,t){if("Enter"===e.key||e.charCode===jv.ENTER||e.keyCode===jv.ENTER){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];t.apply(void 0,o)}}function me(e){"click"!==e.type&&e.keyCode!==jv.ENTER||ae(J)}var ge=null,ve=VT(e,{aria:!0,data:!0}),be=A&&o.createElement("li",{className:"".concat(r,"-total-text")},A(p,[0===p?0:($-1)*U+1,$*U>p?p:$*U])),ye=null,we=eD(void 0,U,p);if(y&&p<=U)return null;var xe=[],Se={rootPrefixCls:r,onClick:ae,onKeyPress:he,showTitle:E,itemRender:B,page:-1},Ce=$-1>0?$-1:0,ke=$+1<we?$+1:we,Ee=S&&S.goButton,Oe=Ee,_e=null;j&&(Ee&&(Oe="boolean"===typeof Ee?o.createElement("button",{type:"button",onClick:me,onKeyUp:me},M.jump_to_confirm):o.createElement("span",{onClick:me,onKeyUp:me},Ee),Oe=o.createElement("li",{title:E?"".concat(M.jump_to).concat($,"/").concat(we):null,className:"".concat(r,"-simple-pager")},Oe)),_e=o.createElement("li",{title:E?"".concat($,"/").concat(we):null,className:"".concat(r,"-simple-pager")},o.createElement("input",{type:"text",value:J,disabled:T,onKeyDown:function(e){e.keyCode!==jv.UP&&e.keyCode!==jv.DOWN||e.preventDefault()},onKeyUp:ie,onChange:ie,onBlur:function(e){ae(oe(e))},size:3}),o.createElement("span",{className:"".concat(r,"-slash")},"/"),we));var Pe=C?1:2;if(we<=3+2*Pe){we||xe.push(o.createElement(YL,Jt({},Se,{key:"noPager",page:1,className:"".concat(r,"-item-disabled")})));for(var Me=1;Me<=we;Me+=1)xe.push(o.createElement(YL,Jt({},Se,{key:Me,page:Me,active:$===Me})))}else{var Ne=C?M.prev_3:M.prev_5,Ie=C?M.next_3:M.next_5,Re=B(ee,"jump-prev",ne(F,"prev page")),Te=B(te,"jump-next",ne(H,"next page"));x&&(ge=Re?o.createElement("li",{title:E?Ne:null,key:"prev",onClick:fe,tabIndex:0,onKeyDown:function(e){he(e,fe)},className:je()("".concat(r,"-jump-prev"),Le({},"".concat(r,"-jump-prev-custom-icon"),!!F))},Re):null,ye=Te?o.createElement("li",{title:E?Ie:null,key:"next",onClick:pe,tabIndex:0,onKeyDown:function(e){he(e,pe)},className:je()("".concat(r,"-jump-next"),Le({},"".concat(r,"-jump-next-custom-icon"),!!H))},Te):null);var Ae=Math.max(1,$-Pe),ze=Math.min($+Pe,we);$-1<=Pe&&(ze=1+2*Pe),we-$<=Pe&&(Ae=we-2*Pe);for(var De=Ae;De<=ze;De+=1)xe.push(o.createElement(YL,Jt({},Se,{key:De,page:De,active:$===De})));if($-1>=2*Pe&&3!==$&&(xe[0]=o.cloneElement(xe[0],{className:je()("".concat(r,"-item-after-jump-prev"),xe[0].props.className)}),xe.unshift(ge)),we-$>=2*Pe&&$!==we-2){var Fe=xe[xe.length-1];xe[xe.length-1]=o.cloneElement(Fe,{className:je()("".concat(r,"-item-before-jump-next"),Fe.props.className)}),xe.push(ye)}1!==Ae&&xe.unshift(o.createElement(YL,Jt({},Se,{key:1,page:1}))),ze!==we&&xe.push(o.createElement(YL,Jt({},Se,{key:we,page:we})))}var He=function(e){var t=B(e,"prev",ne(W,"prev page"));return o.isValidElement(t)?o.cloneElement(t,{disabled:!le}):t}(Ce);if(He){var Ve=!le||!we;He=o.createElement("li",{title:E?M.prev_page:null,onClick:ue,tabIndex:Ve?null:0,onKeyDown:function(e){he(e,ue)},className:je()("".concat(r,"-prev"),Le({},"".concat(r,"-disabled"),Ve)),"aria-disabled":Ve},He)}var Ke,qe,Ue=function(e){var t=B(e,"next",ne(V,"next page"));return o.isValidElement(t)?o.cloneElement(t,{disabled:!ce}):t}(ke);Ue&&(j?(Ke=!ce,qe=le?0:null):qe=(Ke=!ce||!we)?null:0,Ue=o.createElement("li",{title:E?M.next_page:null,onClick:de,tabIndex:qe,onKeyDown:function(e){he(e,de)},className:je()("".concat(r,"-next"),Le({},"".concat(r,"-disabled"),Ke)),"aria-disabled":Ke},Ue));var Xe=je()(r,l,(Le(t={},"".concat(r,"-simple"),j),Le(t,"".concat(r,"-disabled"),T),t));return o.createElement("ul",Jt({className:Xe,style:N,ref:K},ve),be,He,j?_e:xe,Ue,o.createElement($L,{locale:M,rootPrefixCls:r,disabled:T,selectComponentClass:c,selectPrefixCls:a,changeSize:se?function(e){var t=eD(e,U,p),n=$>t&&0!==t?t:$;X(e),Z(n),null===_||void 0===_||_($,e),Y(n),null===b||void 0===b||b(n,e)}:null,pageSize:U,pageSizeOptions:L,quickGo:re?ae:null,goButton:Oe}))};const nD=function(e){var t=e.className,n=e.customizeIcon,r=e.customizeIconProps,i=e.children,a=e.onMouseDown,l=e.onClick,c="function"===typeof n?n(r):n;return o.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),null===a||void 0===a||a(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},void 0!==c?c:o.createElement("span",{className:je()(t.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},i))};var oD=o.createContext(null);function rD(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=o.useRef(null),n=o.useRef(null);return o.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},function(o){(o||null===t.current)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}]}var iD=function(e,t){var n,r=e.prefixCls,i=e.id,a=e.inputElement,l=e.disabled,c=e.tabIndex,s=e.autoFocus,u=e.autoComplete,d=e.editable,f=e.activeDescendantId,p=e.value,h=e.maxLength,m=e.onKeyDown,g=e.onMouseDown,v=e.onChange,b=e.onPaste,y=e.onCompositionStart,w=e.onCompositionEnd,x=e.open,S=e.attrs,C=a||o.createElement("input",null),k=C,E=k.ref,O=k.props,_=O.onKeyDown,P=O.onChange,M=O.onMouseDown,N=O.onCompositionStart,I=O.onCompositionEnd,R=O.style;return C.props,C=o.cloneElement(C,Be(Be(Be({type:"search"},O),{},{id:i,ref:Ge(t,E),disabled:l,tabIndex:c,autoComplete:u||"off",autoFocus:s,className:je()("".concat(r,"-selection-search-input"),null===(n=C)||void 0===n||null===(n=n.props)||void 0===n?void 0:n.className),role:"combobox","aria-expanded":x||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":x?f:void 0},S),{},{value:d?p:"",maxLength:h,readOnly:!d,unselectable:d?null:"on",style:Be(Be({},R),{},{opacity:d?null:0}),onKeyDown:function(e){m(e),_&&_(e)},onMouseDown:function(e){g(e),M&&M(e)},onChange:function(e){v(e),P&&P(e)},onCompositionStart:function(e){y(e),N&&N(e)},onCompositionEnd:function(e){w(e),I&&I(e)},onPaste:b}))};const aD=o.forwardRef(iD);function lD(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var cD="undefined"!==typeof window&&window.document&&window.document.documentElement;function sD(e){return["string","number"].includes(Ae(e))}function uD(e){var t=void 0;return e&&(sD(e.title)?t=e.title.toString():sD(e.label)&&(t=e.label.toString())),t}function dD(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var fD=function(e){e.preventDefault(),e.stopPropagation()};const pD=function(e){var t,n,r=e.id,i=e.prefixCls,a=e.values,l=e.open,c=e.searchValue,s=e.autoClearSearchValue,u=e.inputRef,d=e.placeholder,f=e.disabled,p=e.mode,h=e.showSearch,m=e.autoFocus,g=e.autoComplete,v=e.activeDescendantId,b=e.tabIndex,y=e.removeIcon,w=e.maxTagCount,x=e.maxTagTextLength,S=e.maxTagPlaceholder,C=void 0===S?function(e){return"+ ".concat(e.length," ...")}:S,k=e.tagRender,E=e.onToggleOpen,O=e.onRemove,_=e.onInputChange,P=e.onInputPaste,M=e.onInputKeyDown,N=e.onInputMouseDown,I=e.onInputCompositionStart,R=e.onInputCompositionEnd,T=o.useRef(null),j=We((0,o.useState)(0),2),A=j[0],z=j[1],L=We((0,o.useState)(!1),2),D=L[0],B=L[1],F="".concat(i,"-selection"),H=l||"multiple"===p&&!1===s||"tags"===p?c:"",W="tags"===p||"multiple"===p&&!1===s||h&&(l||D);t=function(){z(T.current.scrollWidth)},n=[H],cD?o.useLayoutEffect(t,n):o.useEffect(t,n);var V=function(e,t,n,r,i){return o.createElement("span",{title:uD(e),className:je()("".concat(F,"-item"),Le({},"".concat(F,"-item-disabled"),n))},o.createElement("span",{className:"".concat(F,"-item-content")},t),r&&o.createElement(nD,{className:"".concat(F,"-item-remove"),onMouseDown:fD,onClick:i,customizeIcon:y},"\xd7"))},K=o.createElement("div",{className:"".concat(F,"-search"),style:{width:A},onFocus:function(){B(!0)},onBlur:function(){B(!1)}},o.createElement(aD,{ref:u,open:l,prefixCls:i,id:r,inputElement:null,disabled:f,autoFocus:m,autoComplete:g,editable:W,activeDescendantId:v,value:H,onKeyDown:M,onMouseDown:N,onChange:_,onPaste:P,onCompositionStart:I,onCompositionEnd:R,tabIndex:b,attrs:VT(e,!0)}),o.createElement("span",{ref:T,className:"".concat(F,"-search-mirror"),"aria-hidden":!0},H,"\xa0")),q=o.createElement(vv,{prefixCls:"".concat(F,"-overflow"),data:a,renderItem:function(e){var t=e.disabled,n=e.label,r=e.value,i=!f&&!t,a=n;if("number"===typeof x&&("string"===typeof n||"number"===typeof n)){var c=String(a);c.length>x&&(a="".concat(c.slice(0,x),"..."))}var s=function(t){t&&t.stopPropagation(),O(e)};return"function"===typeof k?function(e,t,n,r,i){return o.createElement("span",{onMouseDown:function(e){fD(e),E(!l)}},k({label:t,value:e,disabled:n,closable:r,onClose:i}))}(r,a,t,i,s):V(e,a,t,i,s)},renderRest:function(e){var t="function"===typeof C?C(e):C;return V({title:t},t,!1)},suffix:K,itemKey:dD,maxCount:w});return o.createElement(o.Fragment,null,q,!a.length&&!H&&o.createElement("span",{className:"".concat(F,"-placeholder")},d))};const hD=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,i=e.inputRef,a=e.disabled,l=e.autoFocus,c=e.autoComplete,s=e.activeDescendantId,u=e.mode,d=e.open,f=e.values,p=e.placeholder,h=e.tabIndex,m=e.showSearch,g=e.searchValue,v=e.activeValue,b=e.maxLength,y=e.onInputKeyDown,w=e.onInputMouseDown,x=e.onInputChange,S=e.onInputPaste,C=e.onInputCompositionStart,k=e.onInputCompositionEnd,E=e.title,O=We(o.useState(!1),2),_=O[0],P=O[1],M="combobox"===u,N=M||m,I=f[0],R=g||"";M&&v&&!_&&(R=v),o.useEffect((function(){M&&P(!1)}),[M,v]);var T=!("combobox"!==u&&!d&&!m)&&!!R,j=void 0===E?uD(I):E,A=o.useMemo((function(){return I?null:o.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:T?{visibility:"hidden"}:void 0},p)}),[I,T,p,n]);return o.createElement(o.Fragment,null,o.createElement("span",{className:"".concat(n,"-selection-search")},o.createElement(aD,{ref:i,prefixCls:n,id:r,open:d,inputElement:t,disabled:a,autoFocus:l,autoComplete:c,editable:N,activeDescendantId:s,value:R,onKeyDown:y,onMouseDown:w,onChange:function(e){P(!0),x(e)},onPaste:S,onCompositionStart:C,onCompositionEnd:k,tabIndex:h,attrs:VT(e,!0),maxLength:M?b:void 0})),!M&&I?o.createElement("span",{className:"".concat(n,"-selection-item"),title:j,style:T?{visibility:"hidden"}:void 0},I.label):null,A)};var mD=function(e,t){var n=(0,o.useRef)(null),r=(0,o.useRef)(!1),i=e.prefixCls,a=e.open,l=e.mode,c=e.showSearch,s=e.tokenWithEnter,u=e.autoClearSearchValue,d=e.onSearch,f=e.onSearchSubmit,p=e.onToggleOpen,h=e.onInputKeyDown,m=e.domRef;o.useImperativeHandle(t,(function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}}));var g=We(rD(0),2),v=g[0],b=g[1],y=(0,o.useRef)(null),w=function(e){!1!==d(e,!0,r.current)&&p(!0)},x={inputRef:n,onInputKeyDown:function(e){var t,n=e.which;n!==jv.UP&&n!==jv.DOWN||e.preventDefault(),h&&h(e),n!==jv.ENTER||"tags"!==l||r.current||a||null===f||void 0===f||f(e.target.value),t=n,[jv.ESC,jv.SHIFT,jv.BACKSPACE,jv.TAB,jv.WIN_KEY,jv.ALT,jv.META,jv.WIN_KEY_RIGHT,jv.CTRL,jv.SEMICOLON,jv.EQUALS,jv.CAPS_LOCK,jv.CONTEXT_MENU,jv.F1,jv.F2,jv.F3,jv.F4,jv.F5,jv.F6,jv.F7,jv.F8,jv.F9,jv.F10,jv.F11,jv.F12].includes(t)||p(!0)},onInputMouseDown:function(){b(!0)},onInputChange:function(e){var t=e.target.value;if(s&&y.current&&/[\r\n]/.test(y.current)){var n=y.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,y.current)}y.current=null,w(t)},onInputPaste:function(e){var t=e.clipboardData,n=null===t||void 0===t?void 0:t.getData("text");y.current=n||""},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==l&&w(e.target.value)}},S="multiple"===l||"tags"===l?o.createElement(pD,Jt({},e,x)):o.createElement(hD,Jt({},e,x));return o.createElement("div",{ref:m,className:"".concat(i,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus())},onMouseDown:function(e){var t=v();e.target===n.current||t||"combobox"===l||e.preventDefault(),("combobox"===l||c&&t)&&a||(a&&!1!==u&&d("",!0,!1),p())}},S)};const gD=o.forwardRef(mD);var vD=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],bD=function(e,t){var n=e.prefixCls,r=(e.disabled,e.visible),i=e.children,a=e.popupElement,l=e.animation,c=e.transitionName,s=e.dropdownStyle,u=e.dropdownClassName,d=e.direction,f=void 0===d?"ltr":d,p=e.placement,h=e.builtinPlacements,m=e.dropdownMatchSelectWidth,g=e.dropdownRender,v=e.dropdownAlign,b=e.getPopupContainer,y=e.empty,w=e.getTriggerDOMNode,x=e.onPopupVisibleChange,S=e.onPopupMouseEnter,C=Qe(e,vD),k="".concat(n,"-dropdown"),E=a;g&&(E=g(a));var O=o.useMemo((function(){return h||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(m)}),[h,m]),_=l?"".concat(k,"-").concat(l):c,P="number"===typeof m,M=o.useMemo((function(){return P?null:!1===m?"minWidth":"width"}),[m,P]),N=s;P&&(N=Be(Be({},N),{},{width:m}));var I=o.useRef(null);return o.useImperativeHandle(t,(function(){return{getPopupElement:function(){return I.current}}})),o.createElement(Ad,Jt({},C,{showAction:x?["click"]:[],hideAction:x?["click"]:[],popupPlacement:p||("rtl"===f?"bottomRight":"bottomLeft"),builtinPlacements:O,prefixCls:k,popupTransitionName:_,popup:o.createElement("div",{ref:I,onMouseEnter:S},E),stretch:M,popupAlign:v,popupVisible:r,getPopupContainer:b,popupClassName:je()(u,Le({},"".concat(k,"-empty"),y)),popupStyle:N,getTriggerDOMNode:w,onPopupVisibleChange:x}),i)};const yD=o.forwardRef(bD);function wD(e,t){var n,o=e.key;return"value"in e&&(n=e.value),null!==o&&void 0!==o?o:void 0!==n?n:"rc-index-key-".concat(t)}function xD(e,t){var n=e||{},o=n.label||(t?"children":"label");return{label:o,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||o}}function SD(e){var t=Be({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return _n(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}const CD=o.createContext(null);var kD=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],ED=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],OD=function(e){return"tags"===e||"multiple"===e},_D=o.forwardRef((function(e,t){var n,r,i=e.id,a=e.prefixCls,l=e.className,c=e.showSearch,s=e.tagRender,u=e.direction,d=e.omitDomProps,f=e.displayValues,p=e.onDisplayValuesChange,h=e.emptyOptions,m=e.notFoundContent,g=void 0===m?"Not Found":m,v=e.onClear,b=e.mode,y=e.disabled,w=e.loading,x=e.getInputElement,S=e.getRawInputElement,C=e.open,k=e.defaultOpen,E=e.onDropdownVisibleChange,O=e.activeValue,_=e.onActiveValueChange,P=e.activeDescendantId,M=e.searchValue,N=e.autoClearSearchValue,I=e.onSearch,R=e.onSearchSplit,T=e.tokenSeparators,j=e.allowClear,A=e.suffixIcon,z=e.clearIcon,L=e.OptionList,D=e.animation,B=e.transitionName,F=e.dropdownStyle,H=e.dropdownClassName,W=e.dropdownMatchSelectWidth,V=e.dropdownRender,K=e.dropdownAlign,q=e.placement,U=e.builtinPlacements,X=e.getPopupContainer,G=e.showAction,$=void 0===G?[]:G,Y=e.onFocus,Q=e.onBlur,J=e.onKeyUp,Z=e.onKeyDown,ee=e.onMouseDown,te=Qe(e,kD),ne=OD(b),oe=(void 0!==c?c:ne)||"combobox"===b,re=Be({},te);ED.forEach((function(e){delete re[e]})),null===d||void 0===d||d.forEach((function(e){delete re[e]}));var ie=We(o.useState(!1),2),ae=ie[0],le=ie[1];o.useEffect((function(){le(dd())}),[]);var ce=o.useRef(null),se=o.useRef(null),ue=o.useRef(null),de=o.useRef(null),fe=o.useRef(null),pe=o.useRef(!1),he=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=We(o.useState(!1),2),n=t[0],r=t[1],i=o.useRef(null),a=function(){window.clearTimeout(i.current)};return o.useEffect((function(){return a}),[]),[n,function(t,n){a(),i.current=window.setTimeout((function(){r(t),n&&n()}),e)},a]}(),me=We(he,3),ge=me[0],ve=me[1],be=me[2];o.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=de.current)||void 0===e?void 0:e.focus,blur:null===(t=de.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=fe.current)||void 0===t?void 0:t.scrollTo(e)}}}));var ye=o.useMemo((function(){var e;if("combobox"!==b)return M;var t=null===(e=f[0])||void 0===e?void 0:e.value;return"string"===typeof t||"number"===typeof t?String(t):""}),[M,b,f]),we="combobox"===b&&"function"===typeof x&&x()||null,xe="function"===typeof S&&S(),Se=$e(se,null===xe||void 0===xe||null===(n=xe.props)||void 0===n?void 0:n.ref),Ce=We(o.useState(!1),2),ke=Ce[0],Ee=Ce[1];Zr((function(){Ee(!0)}),[]);var Oe=We(el(!1,{defaultValue:k,value:C}),2),_e=Oe[0],Pe=Oe[1],Me=!!ke&&_e,Ne=!g&&h;(y||Ne&&Me&&"combobox"===b)&&(Me=!1);var Ie=!Ne&&Me,Te=o.useCallback((function(e){var t=void 0!==e?e:!Me;y||(Pe(t),Me!==t&&(null===E||void 0===E||E(t)))}),[y,Me,Pe,E]),ze=o.useMemo((function(){return(T||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[T]),De=o.useContext(CD)||{},Fe=De.maxCount,He=De.rawValues,Ve=function(e,t,n){if(!((null===He||void 0===He?void 0:He.size)>=Fe)){var o=!0,r=e;null===_||void 0===_||_(null);var i=function(e,t,n){if(!t||!t.length)return null;var o=!1,r=function e(t,n){var r=co(n),i=r[0],a=r.slice(1);if(!i)return[t];var l=t.split(i);return o=o||l.length>1,l.reduce((function(t,n){return[].concat(Re(t),Re(e(n,a)))}),[]).filter(Boolean)}(e,t);return o?"undefined"!==typeof n?r.slice(0,n):r:null}(e,T,Fe&&Fe-He.size),a=n?null:i;return"combobox"!==b&&a&&(r="",null===R||void 0===R||R(a),Te(!1),o=!1),I&&ye!==r&&I(r,{source:t?"typing":"effect"}),o}};o.useEffect((function(){Me||ne||"combobox"===b||Ve("",!1,!1)}),[Me]),o.useEffect((function(){_e&&y&&Pe(!1),y&&!pe.current&&ve(!1)}),[y]);var Ke=We(rD(),2),qe=Ke[0],Ue=Ke[1],Xe=o.useRef(!1),Ge=[];o.useEffect((function(){return function(){Ge.forEach((function(e){return clearTimeout(e)})),Ge.splice(0,Ge.length)}}),[]);var Ye,Je=We(o.useState({}),2)[1];xe&&(Ye=function(e){Te(e)}),function(e,t,n,r){var i=o.useRef(null);i.current={open:t,triggerOpen:n,customizedTrigger:r},o.useEffect((function(){function t(t){var n;if(null===(n=i.current)||void 0===n||!n.customizedTrigger){var o=t.target;o.shadowRoot&&t.composed&&(o=t.composedPath()[0]||o),i.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(o)&&e!==o}))&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[ce.current,null===(e=ue.current)||void 0===e?void 0:e.getPopupElement()]}),Ie,Te,!!xe);var Ze,et=o.useMemo((function(){return Be(Be({},e),{},{notFoundContent:g,open:Me,triggerOpen:Ie,id:i,showSearch:oe,multiple:ne,toggleOpen:Te})}),[e,g,Ie,Me,i,oe,ne,Te]),tt=!!A||w;tt&&(Ze=o.createElement(nD,{className:je()("".concat(a,"-arrow"),Le({},"".concat(a,"-arrow-loading"),w)),customizeIcon:A,customizeIconProps:{loading:w,searchValue:ye,open:Me,focused:ge,showSearch:oe}}));var nt,ot=function(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,s=o.useMemo((function(){return"object"===Ae(r)?r.clearIcon:i||void 0}),[r,i]);return{allowClear:o.useMemo((function(){return!(a||!r||!n.length&&!l||"combobox"===c&&""===l)}),[r,a,n.length,l,c]),clearIcon:o.createElement(nD,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:s},"\xd7")}}(a,(function(){var e;null===v||void 0===v||v(),null===(e=de.current)||void 0===e||e.focus(),p([],{type:"clear",values:f}),Ve("",!1,!1)}),f,j,z,y,ye,b),rt=ot.allowClear,it=ot.clearIcon,at=o.createElement(L,{ref:fe}),lt=je()(a,l,(Le(r={},"".concat(a,"-focused"),ge),Le(r,"".concat(a,"-multiple"),ne),Le(r,"".concat(a,"-single"),!ne),Le(r,"".concat(a,"-allow-clear"),j),Le(r,"".concat(a,"-show-arrow"),tt),Le(r,"".concat(a,"-disabled"),y),Le(r,"".concat(a,"-loading"),w),Le(r,"".concat(a,"-open"),Me),Le(r,"".concat(a,"-customize-input"),we),Le(r,"".concat(a,"-show-search"),oe),r)),ct=o.createElement(yD,{ref:ue,disabled:y,prefixCls:a,visible:Ie,popupElement:at,animation:D,transitionName:B,dropdownStyle:F,dropdownClassName:H,direction:u,dropdownMatchSelectWidth:W,dropdownRender:V,dropdownAlign:K,placement:q,builtinPlacements:U,getPopupContainer:X,empty:h,getTriggerDOMNode:function(){return se.current},onPopupVisibleChange:Ye,onPopupMouseEnter:function(){Je({})}},xe?o.cloneElement(xe,{ref:Se}):o.createElement(gD,Jt({},e,{domRef:se,prefixCls:a,inputElement:we,ref:de,id:i,showSearch:oe,autoClearSearchValue:N,mode:b,activeDescendantId:P,tagRender:s,values:f,open:Me,onToggleOpen:Te,activeValue:O,searchValue:ye,onSearch:Ve,onSearchSubmit:function(e){e&&e.trim()&&I(e,{source:"submit"})},onRemove:function(e){var t=f.filter((function(t){return t!==e}));p(t,{type:"remove",values:[e]})},tokenWithEnter:ze})));return nt=xe?ct:o.createElement("div",Jt({className:lt},re,{ref:ce,onMouseDown:function(e){var t,n=e.target,o=null===(t=ue.current)||void 0===t?void 0:t.getPopupElement();if(o&&o.contains(n)){var r=setTimeout((function(){var e,t=Ge.indexOf(r);-1!==t&&Ge.splice(t,1),be(),ae||o.contains(document.activeElement)||null===(e=de.current)||void 0===e||e.focus()}));Ge.push(r)}for(var i=arguments.length,a=new Array(i>1?i-1:0),l=1;l<i;l++)a[l-1]=arguments[l];null===ee||void 0===ee||ee.apply(void 0,[e].concat(a))},onKeyDown:function(e){var t,n=qe(),o=e.which;if(o===jv.ENTER&&("combobox"!==b&&e.preventDefault(),Me||Te(!0)),Ue(!!ye),o===jv.BACKSPACE&&!n&&ne&&!ye&&f.length){for(var r=Re(f),i=null,a=r.length-1;a>=0;a-=1){var l=r[a];if(!l.disabled){r.splice(a,1),i=l;break}}i&&p(r,{type:"remove",values:[i]})}for(var c=arguments.length,s=new Array(c>1?c-1:0),u=1;u<c;u++)s[u-1]=arguments[u];Me&&(null===(t=fe.current)||void 0===t||t.onKeyDown.apply(t,[e].concat(s))),null===Z||void 0===Z||Z.apply(void 0,[e].concat(s))},onKeyUp:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r;Me&&(null===(r=fe.current)||void 0===r||r.onKeyUp.apply(r,[e].concat(n))),null===J||void 0===J||J.apply(void 0,[e].concat(n))},onFocus:function(){ve(!0),y||(Y&&!Xe.current&&Y.apply(void 0,arguments),$.includes("focus")&&Te(!0)),Xe.current=!0},onBlur:function(){pe.current=!0,ve(!1,(function(){Xe.current=!1,pe.current=!1,Te(!1)})),y||(ye&&("tags"===b?I(ye,{source:"submit"}):"multiple"===b&&I("",{source:"blur"})),Q&&Q.apply(void 0,arguments))}}),ge&&!Me&&o.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(f.map((function(e){var t=e.label,n=e.value;return["number","string"].includes(Ae(t))?t:n})).join(", "))),ct,Ze,rt&&it),o.createElement(oD.Provider,{value:et},nt)}));const PD=_D;var MD=function(){return null};MD.isSelectOptGroup=!0;const ND=MD;var ID=function(){return null};ID.isSelectOption=!0;const RD=ID;var TD=["disabled","title","children","style","className"];function jD(e){return"string"===typeof e||"number"===typeof e}var AD=function(e,t){var n=o.useContext(oD),r=n.prefixCls,i=n.id,a=n.open,l=n.multiple,c=n.mode,s=n.searchValue,u=n.toggleOpen,d=n.notFoundContent,f=n.onPopupScroll,p=o.useContext(CD),h=p.maxCount,m=p.flattenOptions,g=p.onActiveValue,v=p.defaultActiveFirstOption,b=p.onSelect,y=p.menuItemSelectedIcon,w=p.rawValues,x=p.fieldNames,S=p.virtual,C=p.direction,k=p.listHeight,E=p.listItemHeight,O=p.optionRender,_="".concat(r,"-item"),P=Ue((function(){return m}),[a,m],(function(e,t){return t[0]&&e[1]!==t[1]})),M=o.useRef(null),N=o.useMemo((function(){return l&&"undefined"!==typeof h&&(null===w||void 0===w?void 0:w.size)>=h}),[l,h,null===w||void 0===w?void 0:w.size]),I=function(e){e.preventDefault()},R=function(e){var t;null===(t=M.current)||void 0===t||t.scrollTo("number"===typeof e?{index:e}:e)},T=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=P.length,o=0;o<n;o+=1){var r=(e+o*t+n)%n,i=P[r]||{},a=i.group,l=i.data;if(!a&&(null===l||void 0===l||!l.disabled)&&!N)return r}return-1},j=We(o.useState((function(){return T(0)})),2),A=j[0],z=j[1],L=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];z(e);var n={source:t?"keyboard":"mouse"},o=P[e];o?g(o.value,e,n):g(null,-1,n)};(0,o.useEffect)((function(){L(!1!==v?T(0):-1)}),[P.length,s]);var D=o.useCallback((function(e){return w.has(e)&&"combobox"!==c}),[c,Re(w).toString(),w.size]);(0,o.useEffect)((function(){var e,t=setTimeout((function(){if(!l&&a&&1===w.size){var e=Array.from(w)[0],t=P.findIndex((function(t){return t.data.value===e}));-1!==t&&(L(t),R(t))}}));a&&(null===(e=M.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[a,s]);var B=function(e){void 0!==e&&b(e,{selected:!w.has(e)}),l||u(!1)};if(o.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case jv.N:case jv.P:case jv.UP:case jv.DOWN:var o=0;if(t===jv.UP?o=-1:t===jv.DOWN?o=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===jv.N?o=1:t===jv.P&&(o=-1)),0!==o){var r=T(A+o,o);R(r),L(r,!0)}break;case jv.ENTER:var i,l=P[A];!l||null!==l&&void 0!==l&&null!==(i=l.data)&&void 0!==i&&i.disabled||N?B(void 0):B(l.value),a&&e.preventDefault();break;case jv.ESC:u(!1),a&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){R(e)}}})),0===P.length)return o.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(_,"-empty"),onMouseDown:I},d);var F=Object.keys(x).map((function(e){return x[e]})),H=function(e){return e.label};function W(e,t){return{role:e.group?"presentation":"option",id:"".concat(i,"_list_").concat(t)}}var V=function(e){var t=P[e];if(!t)return null;var n=t.data||{},r=n.value,i=t.group,a=VT(n,!0),l=H(t);return t?o.createElement("div",Jt({"aria-label":"string"!==typeof l||i?null:l},a,{key:e},W(t,e),{"aria-selected":D(r)}),r):null},K={role:"listbox",id:"".concat(i,"_list")};return o.createElement(o.Fragment,null,S&&o.createElement("div",Jt({},K,{style:{height:0,width:0,overflow:"hidden"}}),V(A-1),V(A),V(A+1)),o.createElement(nA,{itemKey:"key",ref:M,data:P,height:k,itemHeight:E,fullHeight:!1,onMouseDown:I,onScroll:f,virtual:S,direction:C,innerProps:S?null:K},(function(e,t){var n,r=e.group,i=e.groupOption,a=e.data,l=e.label,c=e.value,s=a.key;if(r){var u,d=null!==(u=a.title)&&void 0!==u?u:jD(l)?l.toString():void 0;return o.createElement("div",{className:je()(_,"".concat(_,"-group")),title:d},void 0!==l?l:s)}var f=a.disabled,p=a.title,h=(a.children,a.style),m=a.className,g=Zo(Qe(a,TD),F),v=D(c),b=f||!v&&N,w="".concat(_,"-option"),x=je()(_,w,m,(Le(n={},"".concat(w,"-grouped"),i),Le(n,"".concat(w,"-active"),A===t&&!b),Le(n,"".concat(w,"-disabled"),b),Le(n,"".concat(w,"-selected"),v),n)),C=H(e),k=!y||"function"===typeof y||v,E="number"===typeof C?C:C||c,P=jD(E)?E.toString():void 0;return void 0!==p&&(P=p),o.createElement("div",Jt({},VT(g),S?{}:W(e,t),{"aria-selected":v,className:x,title:P,onMouseMove:function(){A===t||b||L(t)},onClick:function(){b||B(c)},style:h}),o.createElement("div",{className:"".concat(w,"-content")},"function"===typeof O?O(e,{index:t}):E),o.isValidElement(y)||v,k&&o.createElement(nD,{className:"".concat(_,"-option-state"),customizeIcon:y,customizeIconProps:{value:c,disabled:b,isSelected:v}},v?"\u2713":null))})))};const zD=o.forwardRef(AD);function LD(e,t){return lD(e).join("").toUpperCase().includes(t)}var DD=0,BD=Ct();function FD(e){var t=We(o.useState(),2),n=t[0],r=t[1];return o.useEffect((function(){r("rc_select_".concat(function(){var e;return BD?(e=DD,DD+=1):e="TEST_OR_SSR",e}()))}),[]),e||n}var HD=["children","value"],WD=["children"];function VD(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return wn(e).map((function(e,n){if(!o.isValidElement(e)||!e.type)return null;var r=e,i=r.type.isSelectOptGroup,a=r.key,l=r.props,c=l.children,s=Qe(l,WD);return t||!i?function(e){var t=e,n=t.key,o=t.props,r=o.children,i=o.value;return Be({key:n,value:void 0!==i?i:n,children:r},Qe(o,HD))}(e):Be(Be({key:"__RC_SELECT_GRP__".concat(null===a?n:a,"__"),label:a},s),{},{options:VD(c)})})).filter((function(e){return e}))}const KD=function(e,t,n,r,i){return o.useMemo((function(){var o=e;!e&&(o=VD(t));var a=new Map,l=new Map,c=function(e,t,n){n&&"string"===typeof n&&e.set(t[n],t)};return function e(t){for(var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=0;s<t.length;s+=1){var u=t[s];!u[n.options]||o?(a.set(u[n.value],u),c(l,u,n.label),c(l,u,r),c(l,u,i)):e(u[n.options],!0)}}(o),{options:o,valueOptions:a,labelOptions:l}}),[e,t,n,r,i])};function qD(e){var t=o.useRef();t.current=e;var n=o.useCallback((function(){return t.current.apply(t,arguments)}),[]);return n}var UD=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange","maxCount"],XD=["inputValue"];var GD=o.forwardRef((function(e,t){var n=e.id,r=e.mode,i=e.prefixCls,a=void 0===i?"rc-select":i,l=e.backfill,c=e.fieldNames,s=e.inputValue,u=e.searchValue,d=e.onSearch,f=e.autoClearSearchValue,p=void 0===f||f,h=e.onSelect,m=e.onDeselect,g=e.dropdownMatchSelectWidth,v=void 0===g||g,b=e.filterOption,y=e.filterSort,w=e.optionFilterProp,x=e.optionLabelProp,S=e.options,C=e.optionRender,k=e.children,E=e.defaultActiveFirstOption,O=e.menuItemSelectedIcon,_=e.virtual,P=e.direction,M=e.listHeight,N=void 0===M?200:M,I=e.listItemHeight,R=void 0===I?20:I,T=e.value,j=e.defaultValue,A=e.labelInValue,z=e.onChange,L=e.maxCount,D=Qe(e,UD),B=FD(n),F=OD(r),H=!(S||!k),W=o.useMemo((function(){return(void 0!==b||"combobox"!==r)&&b}),[b,r]),V=o.useMemo((function(){return xD(c,H)}),[JSON.stringify(c),H]),K=We(el("",{value:void 0!==u?u:s,postState:function(e){return e||""}}),2),q=K[0],U=K[1],X=KD(S,k,V,w,x),G=X.valueOptions,$=X.labelOptions,Y=X.options,Q=o.useCallback((function(e){return lD(e).map((function(e){var t,n,o,r,i,a;(function(e){return!e||"object"!==Ae(e)})(e)?t=e:(o=e.key,n=e.label,t=null!==(a=e.value)&&void 0!==a?a:o);var l,c=G.get(t);c&&(void 0===n&&(n=null===c||void 0===c?void 0:c[x||V.label]),void 0===o&&(o=null!==(l=null===c||void 0===c?void 0:c.key)&&void 0!==l?l:t),r=null===c||void 0===c?void 0:c.disabled,i=null===c||void 0===c?void 0:c.title);return{label:n,value:t,key:o,disabled:r,title:i}}))}),[V,x,G]),J=We(el(j,{value:T}),2),Z=J[0],ee=J[1],te=o.useMemo((function(){var e,t=Q(F&&null===Z?[]:Z);return"combobox"===r&&function(e){return!e&&0!==e}(null===(e=t[0])||void 0===e?void 0:e.value)?[]:t}),[Z,Q,r,F]),ne=function(e,t){var n=o.useRef({values:new Map,options:new Map});return[o.useMemo((function(){var o=n.current,r=o.values,i=o.options,a=e.map((function(e){var t;return void 0===e.label?Be(Be({},e),{},{label:null===(t=r.get(e.value))||void 0===t?void 0:t.label}):e})),l=new Map,c=new Map;return a.forEach((function(e){l.set(e.value,e),c.set(e.value,t.get(e.value)||i.get(e.value))})),n.current.values=l,n.current.options=c,a}),[e,t]),o.useCallback((function(e){return t.get(e)||n.current.options.get(e)}),[t])]}(te,G),oe=We(ne,2),re=oe[0],ie=oe[1],ae=o.useMemo((function(){if(!r&&1===re.length){var e=re[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return re.map((function(e){var t;return Be(Be({},e),{},{label:null!==(t=e.label)&&void 0!==t?t:e.value})}))}),[r,re]),le=o.useMemo((function(){return new Set(re.map((function(e){return e.value})))}),[re]);o.useEffect((function(){if("combobox"===r){var e,t=null===(e=re[0])||void 0===e?void 0:e.value;U(function(e){return void 0!==e&&null!==e}(t)?String(t):"")}}),[re]);var ce=qD((function(e,t){var n,o=null!==t&&void 0!==t?t:e;return Le(n={},V.value,e),Le(n,V.label,o),n})),se=function(e,t,n,r,i){return o.useMemo((function(){if(!n||!1===r)return e;var o=t.options,a=t.label,l=t.value,c=[],s="function"===typeof r,u=n.toUpperCase(),d=s?r:function(e,t){return i?LD(t[i],u):t[o]?LD(t["children"!==a?a:"label"],u):LD(t[l],u)},f=s?function(e){return SD(e)}:function(e){return e};return e.forEach((function(e){if(e[o])if(d(n,f(e)))c.push(e);else{var t=e[o].filter((function(e){return d(n,f(e))}));t.length&&c.push(Be(Be({},e),{},Le({},o,t)))}else d(n,f(e))&&c.push(e)})),c}),[e,r,i,n,t])}(o.useMemo((function(){if("tags"!==r)return Y;var e=Re(Y);return Re(re).sort((function(e,t){return e.value<t.value?-1:1})).forEach((function(t){var n=t.value;(function(e){return G.has(e)})(n)||e.push(ce(n,t.label))})),e}),[ce,Y,G,re,r]),V,q,W,w),ue=o.useMemo((function(){return"tags"!==r||!q||se.some((function(e){return e[w||"value"]===q}))||se.some((function(e){return e[V.value]===q}))?se:[ce(q)].concat(Re(se))}),[ce,w,r,se,q,V]),de=o.useMemo((function(){return y?Re(ue).sort((function(e,t){return y(e,t)})):ue}),[ue,y]),fe=o.useMemo((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,o=t.childrenAsData,r=[],i=xD(n,!1),a=i.label,l=i.value,c=i.options,s=i.groupLabel;return function e(t,n){Array.isArray(t)&&t.forEach((function(t){if(n||!(c in t)){var i=t[l];r.push({key:wD(t,r.length),groupOption:n,data:t,label:t[a],value:i})}else{var u=t[s];void 0===u&&o&&(u=t.label),r.push({key:wD(t,r.length),group:!0,data:t,label:u}),e(t[c],!0)}}))}(e,!1),r}(de,{fieldNames:V,childrenAsData:H})}),[de,V,H]),pe=function(e){var t=Q(e);if(ee(t),z&&(t.length!==re.length||t.some((function(e,t){var n;return(null===(n=re[t])||void 0===n?void 0:n.value)!==(null===e||void 0===e?void 0:e.value)})))){var n=A?t:t.map((function(e){return e.value})),o=t.map((function(e){return SD(ie(e.value))}));z(F?n:n[0],F?o:o[0])}},he=We(o.useState(null),2),me=he[0],ge=he[1],ve=We(o.useState(0),2),be=ve[0],ye=ve[1],we=void 0!==E?E:"combobox"!==r,xe=o.useCallback((function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,o=void 0===n?"keyboard":n;ye(t),l&&"combobox"===r&&null!==e&&"keyboard"===o&&ge(String(e))}),[l,r]),Se=function(e,t,n){var o=function(){var t,n=ie(e);return[A?{label:null===n||void 0===n?void 0:n[V.label],value:e,key:null!==(t=null===n||void 0===n?void 0:n.key)&&void 0!==t?t:e}:e,SD(n)]};if(t&&h){var r=We(o(),2),i=r[0],a=r[1];h(i,a)}else if(!t&&m&&"clear"!==n){var l=We(o(),2),c=l[0],s=l[1];m(c,s)}},Ce=qD((function(e,t){var n,o=!F||t.selected;n=o?F?[].concat(Re(re),[e]):[e]:re.filter((function(t){return t.value!==e})),pe(n),Se(e,o),"combobox"===r?ge(""):OD&&!p||(U(""),ge(""))})),ke=o.useMemo((function(){var e=!1!==_&&!1!==v;return Be(Be({},X),{},{flattenOptions:fe,onActiveValue:xe,defaultActiveFirstOption:we,onSelect:Ce,menuItemSelectedIcon:O,rawValues:le,fieldNames:V,virtual:e,direction:P,listHeight:N,listItemHeight:R,childrenAsData:H,maxCount:L,optionRender:C})}),[L,X,fe,xe,we,Ce,O,le,V,_,v,P,N,R,H,C]);return o.createElement(CD.Provider,{value:ke},o.createElement(PD,Jt({},D,{id:B,prefixCls:a,ref:t,omitDomProps:XD,mode:r,displayValues:ae,onDisplayValuesChange:function(e,t){pe(e);var n=t.type,o=t.values;"remove"!==n&&"clear"!==n||o.forEach((function(e){Se(e.value,!1,n)}))},direction:P,searchValue:q,onSearch:function(e,t){if(U(e),ge(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===r&&pe(e),null===d||void 0===d||d(e));else{var n=(e||"").trim();if(n){var o=Array.from(new Set([].concat(Re(le),[n])));pe(o),Se(n,!0),U("")}}},autoClearSearchValue:p,onSearchSplit:function(e){var t=e;"tags"!==r&&(t=e.map((function(e){var t=$.get(e);return null===t||void 0===t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat(Re(le),Re(t))));pe(n),n.forEach((function(e){Se(e,!0)}))},dropdownMatchSelectWidth:v,OptionList:zD,emptyOptions:!fe.length,activeValue:me,activeDescendantId:"".concat(B,"_list_").concat(be)})))}));var $D=GD;$D.Option=RD,$D.OptGroup=ND;const YD=$D;const QD=function(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)},JD=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:o,optionPadding:r}=e;return{position:"relative",display:"block",minHeight:t,padding:r,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:o,boxSizing:"border-box"}},ZD=e=>{const{antCls:t,componentCls:n}=e,o="".concat(n,"-item"),r="&".concat(t,"-slide-up-enter").concat(t,"-slide-up-enter-active"),i="&".concat(t,"-slide-up-appear").concat(t,"-slide-up-appear-active"),a="&".concat(t,"-slide-up-leave").concat(t,"-slide-up-leave-active"),l="".concat(n,"-dropdown-placement-");return[{["".concat(n,"-dropdown")]:Object.assign(Object.assign({},Ca(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,["\n ".concat(r).concat(l,"bottomLeft,\n ").concat(i).concat(l,"bottomLeft\n ")]:{animationName:oy},["\n ".concat(r).concat(l,"topLeft,\n ").concat(i).concat(l,"topLeft,\n ").concat(r).concat(l,"topRight,\n ").concat(i).concat(l,"topRight\n ")]:{animationName:iy},["".concat(a).concat(l,"bottomLeft")]:{animationName:ry},["\n ".concat(a).concat(l,"topLeft,\n ").concat(a).concat(l,"topRight\n ")]:{animationName:ay},"&-hidden":{display:"none"},["".concat(o)]:Object.assign(Object.assign({},JD(e)),{cursor:"pointer",transition:"background ".concat(e.motionDurationSlow," ease"),borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Sa),"&-state":{flex:"none",display:"flex",alignItems:"center"},["&-active:not(".concat(o,"-option-disabled)")]:{backgroundColor:e.optionActiveBg},["&-selected:not(".concat(o,"-option-disabled)")]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,["".concat(o,"-option-state")]:{color:e.colorPrimary},["&:has(+ ".concat(o,"-option-selected:not(").concat(o,"-option-disabled))")]:{borderEndStartRadius:0,borderEndEndRadius:0,["& + ".concat(o,"-option-selected:not(").concat(o,"-option-disabled)")]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{["&".concat(o,"-option-selected")]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},JD(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},fy(e,"slide-up"),fy(e,"slide-down"),Wz(e,"move-up"),Wz(e,"move-down")]},eB=(e,t)=>{const{componentCls:n,iconCls:o}=e,r="".concat(n,"-selection-overflow"),i=e.multipleSelectItemHeight,a=(e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:o}=e;return e.calc(n).sub(t).div(2).sub(o).equal()})(e),l=t?"".concat(n,"-").concat(t):"";return{["".concat(n,"-multiple").concat(l)]:{[r]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},["".concat(n,"-selector")]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:e.calc(2).mul(2).equal(),paddingBlock:e.calc(a).sub(2).equal(),borderRadius:e.borderRadius,["".concat(n,"-disabled&")]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:"".concat(qr(2)," 0"),lineHeight:qr(i),visibility:"hidden",content:'"\\a0"'}},["".concat(n,"-selection-item")]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:i,marginTop:2,marginBottom:2,lineHeight:qr(e.calc(i).sub(e.calc(e.lineWidth).mul(2)).equal()),borderRadius:e.borderRadiusSM,cursor:"default",transition:"font-size ".concat(e.motionDurationSlow,", line-height ").concat(e.motionDurationSlow,", height ").concat(e.motionDurationSlow),marginInlineEnd:e.calc(2).mul(2).equal(),paddingInlineStart:e.paddingXS,paddingInlineEnd:e.calc(e.paddingXS).div(2).equal(),["".concat(n,"-disabled&")]:{color:e.multipleItemColorDisabled,borderColor:e.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(e.paddingXS).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},{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"}}),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",["> ".concat(o)]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},["".concat(r,"-item + ").concat(r,"-item")]:{["".concat(n,"-selection-search")]:{marginInlineStart:0}},["".concat(r,"-item-suffix")]:{height:"100%"},["".concat(n,"-selection-search")]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:qr(i),transition:"all ".concat(e.motionDurationSlow)},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},["".concat(n,"-selection-placeholder")]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:"all ".concat(e.motionDurationSlow)}}}};function tB(e,t){const{componentCls:n}=e,o=t?"".concat(n,"-").concat(t):"",r={["".concat(n,"-multiple").concat(o)]:{fontSize:e.fontSize,["".concat(n,"-selector")]:{["".concat(n,"-show-search&")]:{cursor:"text"}},["\n &".concat(n,"-show-arrow ").concat(n,"-selector,\n &").concat(n,"-allow-clear ").concat(n,"-selector\n ")]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[eB(e,t),r]}const nB=e=>{const{componentCls:t}=e,n=Ga(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),o=Ga(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[tB(e),tB(n,"sm"),{["".concat(t,"-multiple").concat(t,"-sm")]:{["".concat(t,"-selection-placeholder")]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},["".concat(t,"-selection-search")]:{marginInlineStart:2}}},tB(o,"lg")]};function oB(e,t){const{componentCls:n,inputPaddingHorizontalBase:o,borderRadius:r}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?"".concat(n,"-").concat(t):"";return{["".concat(n,"-single").concat(a)]:{fontSize:e.fontSize,height:e.controlHeight,["".concat(n,"-selector")]:Object.assign(Object.assign({},Ca(e,!0)),{display:"flex",borderRadius:r,["".concat(n,"-selection-search")]:{position:"absolute",top:0,insetInlineStart:o,insetInlineEnd:o,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},["\n ".concat(n,"-selection-item,\n ").concat(n,"-selection-placeholder\n ")]:{padding:0,lineHeight:qr(i),transition:"all ".concat(e.motionDurationSlow,", visibility 0s"),alignSelf:"center"},["".concat(n,"-selection-placeholder")]:{transition:"none",pointerEvents:"none"},[["&:after","".concat(n,"-selection-item:empty:after"),"".concat(n,"-selection-placeholder:empty:after")].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),["\n &".concat(n,"-show-arrow ").concat(n,"-selection-item,\n &").concat(n,"-show-arrow ").concat(n,"-selection-placeholder\n ")]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},["&".concat(n,"-open ").concat(n,"-selection-item")]:{color:e.colorTextPlaceholder},["&:not(".concat(n,"-customize-input)")]:{["".concat(n,"-selector")]:{width:"100%",height:"100%",padding:"0 ".concat(qr(o)),["".concat(n,"-selection-search-input")]:{height:i},"&:after":{lineHeight:qr(i)}}},["&".concat(n,"-customize-input")]:{["".concat(n,"-selector")]:{"&:after":{display:"none"},["".concat(n,"-selection-search")]:{position:"static",width:"100%"},["".concat(n,"-selection-placeholder")]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:"0 ".concat(qr(o)),"&:after":{display:"none"}}}}}}}function rB(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[oB(e),oB(Ga(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{["".concat(t,"-single").concat(t,"-sm")]:{["&:not(".concat(t,"-customize-input)")]:{["".concat(t,"-selection-search")]:{insetInlineStart:n,insetInlineEnd:n},["".concat(t,"-selector")]:{padding:"0 ".concat(qr(n))},["&".concat(t,"-show-arrow ").concat(t,"-selection-search")]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},["\n &".concat(t,"-show-arrow ").concat(t,"-selection-item,\n &").concat(t,"-show-arrow ").concat(t,"-selection-placeholder\n ")]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},oB(Ga(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const iB=(e,t)=>{const{componentCls:n,antCls:o,controlOutlineWidth:r}=e;return{["&:not(".concat(n,"-customize-input) ").concat(n,"-selector")]:{border:"".concat(qr(e.lineWidth)," ").concat(e.lineType," ").concat(t.borderColor),background:e.selectorBg},["&:not(".concat(n,"-disabled):not(").concat(n,"-customize-input):not(").concat(o,"-pagination-size-changer)")]:{["&:hover ".concat(n,"-selector")]:{borderColor:t.hoverBorderHover},["".concat(n,"-focused& ").concat(n,"-selector")]:{borderColor:t.activeBorderColor,boxShadow:"0 0 0 ".concat(qr(r)," ").concat(t.activeShadowColor),outline:0}}}},aB=(e,t)=>({["&".concat(e.componentCls,"-status-").concat(t.status)]:Object.assign({},iB(e,t))}),lB=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},iB(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),aB(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),aB(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{["&".concat(e.componentCls,"-disabled")]:{["&:not(".concat(e.componentCls,"-customize-input) ").concat(e.componentCls,"-selector")]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},["&".concat(e.componentCls,"-multiple ").concat(e.componentCls,"-selection-item")]:{background:e.multipleItemBg,border:"".concat(qr(e.lineWidth)," ").concat(e.lineType," ").concat(e.multipleItemBorderColor)}})}),cB=(e,t)=>{const{componentCls:n,antCls:o}=e;return{["&:not(".concat(n,"-customize-input) ").concat(n,"-selector")]:{background:t.bg,border:"".concat(qr(e.lineWidth)," ").concat(e.lineType," transparent"),color:t.color},["&:not(".concat(n,"-disabled):not(").concat(n,"-customize-input):not(").concat(o,"-pagination-size-changer)")]:{["&:hover ".concat(n,"-selector")]:{background:t.hoverBg},["".concat(n,"-focused& ").concat(n,"-selector")]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},sB=(e,t)=>({["&".concat(e.componentCls,"-status-").concat(t.status)]:Object.assign({},cB(e,t))}),uB=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},cB(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),sB(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),sB(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{["&".concat(e.componentCls,"-disabled")]:{["&:not(".concat(e.componentCls,"-customize-input) ").concat(e.componentCls,"-selector")]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},["&".concat(e.componentCls,"-multiple ").concat(e.componentCls,"-selection-item")]:{background:e.colorBgContainer,border:"".concat(qr(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit)}})}),dB=e=>({"&-borderless":{["".concat(e.componentCls,"-selector")]:{background:"transparent",borderColor:"transparent"},["&".concat(e.componentCls,"-disabled")]:{["&:not(".concat(e.componentCls,"-customize-input) ").concat(e.componentCls,"-selector")]:{color:e.colorTextDisabled}},["&".concat(e.componentCls,"-multiple ").concat(e.componentCls,"-selection-item")]:{background:e.multipleItemBg,border:"".concat(qr(e.lineWidth)," ").concat(e.lineType," ").concat(e.multipleItemBorderColor)}}}),fB=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},lB(e)),uB(e)),dB(e))}),pB=e=>{const{componentCls:t}=e;return{position:"relative",transition:"all ".concat(e.motionDurationMid," ").concat(e.motionEaseInOut),input:{cursor:"pointer"},["".concat(t,"-show-search&")]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},["".concat(t,"-disabled&")]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},hB=e=>{const{componentCls:t}=e;return{["".concat(t,"-selection-search-input")]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},mB=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:o,iconCls:r}=e;return{[n]:Object.assign(Object.assign({},Ca(e)),{position:"relative",display:"inline-block",cursor:"pointer",["&:not(".concat(n,"-customize-input) ").concat(n,"-selector")]:Object.assign(Object.assign({},pB(e)),hB(e)),["".concat(n,"-selection-item")]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Sa),{["> ".concat(t,"-typography")]:{display:"inline"}}),["".concat(n,"-selection-placeholder")]:Object.assign(Object.assign({},Sa),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),["".concat(n,"-arrow")]:Object.assign(Object.assign({},{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"}}),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:"opacity ".concat(e.motionDurationSlow," ease"),[r]:{verticalAlign:"top",transition:"transform ".concat(e.motionDurationSlow),"> svg":{verticalAlign:"top"},["&:not(".concat(n,"-suffix)")]:{pointerEvents:"auto"}},["".concat(n,"-disabled &")]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),["".concat(n,"-clear")]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:"color ".concat(e.motionDurationMid," ease, opacity ").concat(e.motionDurationSlow," ease"),textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{["".concat(n,"-clear")]:{opacity:1},["".concat(n,"-arrow:not(:last-child)")]:{opacity:0}}}),["".concat(n,"-has-feedback")]:{["".concat(n,"-clear")]:{insetInlineEnd:e.calc(o).add(e.fontSize).add(e.paddingXS).equal()}}}},gB=e=>{const{componentCls:t}=e;return[{[t]:{["&".concat(t,"-in-form-item")]:{width:"100%"}}},mB(e),rB(e),nB(e),ZD(e),{["".concat(t,"-rtl")]:{direction:"rtl"}},Zf(e,{borderElCls:"".concat(t,"-selector"),focusElCls:"".concat(t,"-focused")})]},vB=Oc("Select",((e,t)=>{let{rootPrefixCls:n}=t;const o=Ga(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[gB(o),fB(o)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:o,controlPaddingHorizontal:r,zIndexPopupBase:i,colorText:a,fontWeightStrong:l,controlItemBgActive:c,controlItemBgHover:s,colorBgContainer:u,colorFillSecondary:d,controlHeightLG:f,controlHeightSM:p,colorBgContainerDisabled:h,colorTextDisabled:m}=e;return{zIndexPopup:i+50,optionSelectedColor:a,optionSelectedFontWeight:l,optionSelectedBg:c,optionActiveBg:s,optionPadding:"".concat((o-t*n)/2,"px ").concat(r,"px"),optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:u,clearBg:u,singleItemHeightLG:f,multipleItemBg:d,multipleItemBorderColor:"transparent",multipleItemHeight:p,multipleItemHeightLG:o,multipleSelectorBgDisabled:h,multipleItemColorDisabled:m,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize)}}),{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var bB=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const yB="SECRET_COMBOBOX_MODE_DO_NOT_USE",wB=(e,t)=>{var n;const{prefixCls:r,bordered:i,className:a,rootClassName:l,getPopupContainer:c,popupClassName:s,dropdownClassName:u,listHeight:d=256,placement:f,listItemHeight:p,size:h,disabled:m,notFoundContent:g,status:v,builtinPlacements:b,dropdownMatchSelectWidth:y,popupMatchSelectWidth:w,direction:x,style:S,allowClear:C,variant:k,dropdownStyle:E,transitionName:O,tagRender:_,maxCount:P}=e,M=bB(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:N,getPrefixCls:I,renderEmpty:R,direction:T,virtual:j,popupMatchSelectWidth:A,popupOverflow:z,select:L}=o.useContext(nl),[,D]=hc(),B=null!==p&&void 0!==p?p:null===D||void 0===D?void 0:D.controlHeight,F=I("select",r),H=I(),W=null!==x&&void 0!==x?x:T,{compactSize:V,compactItemClassnames:K}=df(F,W),[q,U]=Bp(k,i),X=Bc(F),[G,$,Y]=vB(F,X),Q=o.useMemo((()=>{const{mode:t}=e;if("combobox"!==t)return t===yB?"combobox":t}),[e.mode]),J="multiple"===Q||"tags"===Q,Z=function(e,t){return void 0!==t?t:null!==e}(e.suffixIcon,e.showArrow),ee=null!==(n=null!==w&&void 0!==w?w:y)&&void 0!==n?n:A,{status:te,hasFeedback:ne,isFormItemInput:oe,feedbackIcon:re}=o.useContext(rr),ie=zp(te,v);let ae;ae=void 0!==g?g:"combobox"===Q?null:(null===R||void 0===R?void 0:R("Select"))||o.createElement(DL,{componentName:"Select"});const{suffixIcon:le,itemIcon:ce,removeIcon:se,clearIcon:ue}=function(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:i,loading:a,multiple:l,hasFeedback:c,prefixCls:s,showSuffixIcon:u,feedbackIcon:d,showArrow:f,componentName:p}=e;const h=null!==n&&void 0!==n?n:o.createElement(Tf,null),m=e=>null!==t||c||f?o.createElement(o.Fragment,null,!1!==u&&e,c&&d):null;let g=null;if(void 0!==t)g=m(t);else if(a)g=m(o.createElement(Bf,{spin:!0}));else{const e="".concat(s,"-suffix");g=t=>{let{open:n,showSearch:r}=t;return m(n&&r?o.createElement(oh,{className:e}):o.createElement(yA,{className:e}))}}let v=null;v=void 0!==r?r:l?o.createElement(Dx,null):null;let b=null;return b=void 0!==i?i:o.createElement(pw,null),{clearIcon:h,suffixIcon:g,itemIcon:v,removeIcon:b}}(Object.assign(Object.assign({},M),{multiple:J,hasFeedback:ne,feedbackIcon:re,showSuffixIcon:Z,prefixCls:F,componentName:"Select"})),de=!0===C?{clearIcon:ue}:C,fe=Zo(M,["suffixIcon","itemIcon"]),pe=je()(s||u,{["".concat(F,"-dropdown-").concat(W)]:"rtl"===W},l,Y,X,$),he=$c((e=>{var t;return null!==(t=null!==h&&void 0!==h?h:V)&&void 0!==t?t:e})),me=o.useContext(qc),ge=null!==m&&void 0!==m?m:me,ve=je()({["".concat(F,"-lg")]:"large"===he,["".concat(F,"-sm")]:"small"===he,["".concat(F,"-rtl")]:"rtl"===W,["".concat(F,"-").concat(q)]:U,["".concat(F,"-in-form-item")]:oe},Ap(F,ie,ne),K,null===L||void 0===L?void 0:L.className,a,l,Y,X,$),be=o.useMemo((()=>void 0!==f?f:"rtl"===W?"bottomRight":"bottomLeft"),[f,W]);const[ye]=Xd("SelectLike",null===E||void 0===E?void 0:E.zIndex);return G(o.createElement(YD,Object.assign({ref:t,virtual:j,showSearch:null===L||void 0===L?void 0:L.showSearch},fe,{style:Object.assign(Object.assign({},null===L||void 0===L?void 0:L.style),S),dropdownMatchSelectWidth:ee,transitionName:mn(H,"slide-up",O),builtinPlacements:QD(b,z),listHeight:d,listItemHeight:B,mode:Q,prefixCls:F,placement:be,direction:W,suffixIcon:le,menuItemSelectedIcon:ce,removeIcon:se,allowClear:de,notFoundContent:ae,className:ve,getPopupContainer:c||N,dropdownClassName:pe,disabled:ge,dropdownStyle:Object.assign(Object.assign({},E),{zIndex:ye}),maxCount:J?P:void 0,tagRender:J?_:void 0})))};const xB=o.forwardRef(wB),SB=jz(xB);xB.SECRET_COMBOBOX_MODE_DO_NOT_USE=yB,xB.Option=RD,xB.OptGroup=ND,xB._InternalPanelDoNotUseOrYouWillBeFired=SB;const CB=xB,kB=e=>o.createElement(CB,Object.assign({},e,{showSearch:!0,size:"small"})),EB=e=>o.createElement(CB,Object.assign({},e,{showSearch:!0,size:"middle"}));kB.Option=CB.Option,EB.Option=CB.Option;const OB=e=>{const{componentCls:t}=e;return{["".concat(t,"-disabled")]:{"&, &:hover":{cursor:"not-allowed",["".concat(t,"-item-link")]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",["".concat(t,"-item-link")]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},["&".concat(t,"-disabled")]:{cursor:"not-allowed",["".concat(t,"-item")]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},["".concat(t,"-item-link")]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},["".concat(t,"-simple&")]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},["".concat(t,"-simple-pager")]:{color:e.colorTextDisabled},["".concat(t,"-jump-prev, ").concat(t,"-jump-next")]:{["".concat(t,"-item-link-icon")]:{opacity:0},["".concat(t,"-item-ellipsis")]:{opacity:1}}},["&".concat(t,"-simple")]:{["".concat(t,"-prev, ").concat(t,"-next")]:{["&".concat(t,"-disabled ").concat(t,"-item-link")]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},_B=e=>{const{componentCls:t}=e;return{["&".concat(t,"-mini ").concat(t,"-total-text, &").concat(t,"-mini ").concat(t,"-simple-pager")]:{height:e.itemSizeSM,lineHeight:qr(e.itemSizeSM)},["&".concat(t,"-mini ").concat(t,"-item")]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:qr(e.calc(e.itemSizeSM).sub(2).equal())},["&".concat(t,"-mini:not(").concat(t,"-disabled) ").concat(t,"-item:not(").concat(t,"-item-active)")]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},["&".concat(t,"-mini ").concat(t,"-prev, &").concat(t,"-mini ").concat(t,"-next")]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:qr(e.itemSizeSM)},["&".concat(t,"-mini:not(").concat(t,"-disabled)")]:{["".concat(t,"-prev, ").concat(t,"-next")]:{["&:hover ".concat(t,"-item-link")]:{backgroundColor:e.colorBgTextHover},["&:active ".concat(t,"-item-link")]:{backgroundColor:e.colorBgTextActive},["&".concat(t,"-disabled:hover ").concat(t,"-item-link")]:{backgroundColor:"transparent"}}},["\n &".concat(t,"-mini ").concat(t,"-prev ").concat(t,"-item-link,\n &").concat(t,"-mini ").concat(t,"-next ").concat(t,"-item-link\n ")]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:qr(e.itemSizeSM)}},["&".concat(t,"-mini ").concat(t,"-jump-prev, &").concat(t,"-mini ").concat(t,"-jump-next")]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:qr(e.itemSizeSM)},["&".concat(t,"-mini ").concat(t,"-options")]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:qr(e.itemSizeSM),input:Object.assign(Object.assign({},gp(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},PB=e=>{const{componentCls:t}=e;return{["\n &".concat(t,"-simple ").concat(t,"-prev,\n &").concat(t,"-simple ").concat(t,"-next\n ")]:{height:e.itemSizeSM,lineHeight:qr(e.itemSizeSM),verticalAlign:"top",["".concat(t,"-item-link")]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:qr(e.itemSizeSM)}}},["&".concat(t,"-simple ").concat(t,"-simple-pager")]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:"0 ".concat(qr(e.paginationItemPaddingInline)),textAlign:"center",backgroundColor:e.itemInputBg,border:"".concat(qr(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderRadius:e.borderRadius,outline:"none",transition:"border-color ".concat(e.motionDurationMid),color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:"".concat(qr(e.inputOutlineOffset)," 0 ").concat(qr(e.controlOutlineWidth)," ").concat(e.controlOutline)},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},MB=e=>{const{componentCls:t}=e;return{["".concat(t,"-jump-prev, ").concat(t,"-jump-next")]:{outline:0,["".concat(t,"-item-container")]:{position:"relative",["".concat(t,"-item-link-icon")]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:"all ".concat(e.motionDurationMid),"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},["".concat(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 ".concat(e.motionDurationMid)}},"&:hover":{["".concat(t,"-item-link-icon")]:{opacity:1},["".concat(t,"-item-ellipsis")]:{opacity:0}}},["\n ".concat(t,"-prev,\n ").concat(t,"-jump-prev,\n ").concat(t,"-jump-next\n ")]:{marginInlineEnd:e.marginXS},["\n ".concat(t,"-prev,\n ").concat(t,"-next,\n ").concat(t,"-jump-prev,\n ").concat(t,"-jump-next\n ")]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:"".concat(qr(e.itemSize)),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:"all ".concat(e.motionDurationMid)},["".concat(t,"-prev, ").concat(t,"-next")]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},["".concat(t,"-item-link")]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:"".concat(qr(e.lineWidth)," ").concat(e.lineType," transparent"),borderRadius:e.borderRadius,outline:"none",transition:"all ".concat(e.motionDurationMid)},["&:hover ".concat(t,"-item-link")]:{backgroundColor:e.colorBgTextHover},["&:active ".concat(t,"-item-link")]:{backgroundColor:e.colorBgTextActive},["&".concat(t,"-disabled:hover")]:{["".concat(t,"-item-link")]:{backgroundColor:"transparent"}}},["".concat(t,"-slash")]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},["".concat(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:qr(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},vp(e)),rp(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},op(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},NB=e=>{const{componentCls:t}=e;return{["".concat(t,"-item")]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:qr(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:"".concat(qr(e.lineWidth)," ").concat(e.lineType," transparent"),borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:"0 ".concat(qr(e.paginationItemPaddingInline)),color:e.colorText,"&:hover":{textDecoration:"none"}},["&:not(".concat(t,"-item-active)")]:{"&:hover":{transition:"all ".concat(e.motionDurationMid),backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},IB=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ca(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},["".concat(t,"-total-text")]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:qr(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),NB(e)),MB(e)),PB(e)),_B(e)),OB(e)),{["@media only screen and (max-width: ".concat(e.screenLG,"px)")]:{["".concat(t,"-item")]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},["@media only screen and (max-width: ".concat(e.screenSM,"px)")]:{["".concat(t,"-options")]:{display:"none"}}}),["&".concat(e.componentCls,"-rtl")]:{direction:"rtl"}}},RB=e=>{const{componentCls:t}=e;return{["".concat(t,":not(").concat(t,"-disabled)")]:{["".concat(t,"-item")]:Object.assign({},_a(e)),["".concat(t,"-jump-prev, ").concat(t,"-jump-next")]:{"&:focus-visible":Object.assign({["".concat(t,"-item-link-icon")]:{opacity:1},["".concat(t,"-item-ellipsis")]:{opacity:0}},Oa(e))},["".concat(t,"-prev, ").concat(t,"-next")]:{["&:focus-visible ".concat(t,"-item-link")]:Object.assign({},Oa(e))}}}},TB=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},tp(e)),jB=e=>Ga(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},ep(e)),AB=Oc("Pagination",(e=>{const t=jB(e);return[IB(t),RB(t)]}),TB),zB=e=>{const{componentCls:t}=e;return{["".concat(t).concat(t,"-bordered").concat(t,"-disabled:not(").concat(t,"-mini)")]:{"&, &:hover":{["".concat(t,"-item-link")]:{borderColor:e.colorBorder}},"&:focus-visible":{["".concat(t,"-item-link")]:{borderColor:e.colorBorder}},["".concat(t,"-item, ").concat(t,"-item-link")]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,["&:hover:not(".concat(t,"-item-active)")]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},["&".concat(t,"-item-active")]:{backgroundColor:e.itemActiveBgDisabled}},["".concat(t,"-prev, ").concat(t,"-next")]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},["".concat(t,"-item-link")]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},["".concat(t).concat(t,"-bordered:not(").concat(t,"-mini)")]:{["".concat(t,"-prev, ").concat(t,"-next")]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},["".concat(t,"-item-link")]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},["&:hover ".concat(t,"-item-link")]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},["&".concat(t,"-disabled")]:{["".concat(t,"-item-link")]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},["".concat(t,"-item")]:{backgroundColor:e.itemBg,border:"".concat(qr(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),["&:hover:not(".concat(t,"-item-active)")]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},LB=Ec(["Pagination","bordered"],(e=>{const t=jB(e);return[zB(t)]}),TB);var DB=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const BB=e=>{const{prefixCls:t,selectPrefixCls:n,className:r,rootClassName:i,style:a,size:l,locale:c,selectComponentClass:s,responsive:u,showSizeChanger:d}=e,f=DB(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:p}=FL(u),[,h]=hc(),{getPrefixCls:m,direction:g,pagination:v={}}=o.useContext(nl),b=m("pagination",t),[y,w,x]=AB(b),S=null!==d&&void 0!==d?d:v.showSizeChanger,C=o.useMemo((()=>{const e=o.createElement("span",{className:"".concat(b,"-item-ellipsis")},"\u2022\u2022\u2022");return{prevIcon:o.createElement("button",{className:"".concat(b,"-item-link"),type:"button",tabIndex:-1},"rtl"===g?o.createElement(Sg,null):o.createElement(yg,null)),nextIcon:o.createElement("button",{className:"".concat(b,"-item-link"),type:"button",tabIndex:-1},"rtl"===g?o.createElement(yg,null):o.createElement(Sg,null)),jumpPrevIcon:o.createElement("a",{className:"".concat(b,"-item-link")},o.createElement("div",{className:"".concat(b,"-item-container")},"rtl"===g?o.createElement(UL,{className:"".concat(b,"-item-link-icon")}):o.createElement(VL,{className:"".concat(b,"-item-link-icon")}),e)),jumpNextIcon:o.createElement("a",{className:"".concat(b,"-item-link")},o.createElement("div",{className:"".concat(b,"-item-container")},"rtl"===g?o.createElement(VL,{className:"".concat(b,"-item-link-icon")}):o.createElement(UL,{className:"".concat(b,"-item-link-icon")}),e))}}),[g,b]),[k]=gu("Pagination",su),E=Object.assign(Object.assign({},k),c),O=$c(l),_="small"===O||!(!p||O||!u),P=m("select",n),M=je()({["".concat(b,"-mini")]:_,["".concat(b,"-rtl")]:"rtl"===g,["".concat(b,"-bordered")]:h.wireframe},null===v||void 0===v?void 0:v.className,r,i,w,x),N=Object.assign(Object.assign({},null===v||void 0===v?void 0:v.style),a);return y(o.createElement(o.Fragment,null,h.wireframe&&o.createElement(LB,{prefixCls:b}),o.createElement(tD,Object.assign({},C,f,{style:N,prefixCls:b,selectPrefixCls:P,className:M,selectComponentClass:s||(_?kB:EB),locale:E,showSizeChanger:S}))))},FB=BB;function HB(e,t,n){var o=(n||{}).atBegin;return function(e,t,n){var o,r=n||{},i=r.noTrailing,a=void 0!==i&&i,l=r.noLeading,c=void 0!==l&&l,s=r.debounceMode,u=void 0===s?void 0:s,d=!1,f=0;function p(){o&&clearTimeout(o)}function h(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var l=this,s=Date.now()-f;function h(){f=Date.now(),t.apply(l,r)}function m(){o=void 0}d||(c||!u||o||h(),p(),void 0===u&&s>e?c?(f=Date.now(),a||(o=setTimeout(u?m:h,e))):h():!0!==a&&(o=setTimeout(u?m:h,void 0===u?e-s:e)))}return h.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;p(),d=!n},h}(e,t,{debounceMode:!1!==(void 0!==o&&o)})}const WB=new wa("antSpinMove",{to:{opacity:1}}),VB=new wa("antRotate",{to:{transform:"rotate(405deg)"}}),KB=e=>{const{componentCls:t,calc:n}=e;return{["".concat(t)]:Object.assign(Object.assign({},Ca(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:"transform ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOutCirc),"&-spinning":{position:"static",display:"inline-block",opacity:1},["".concat(t,"-text")]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:"all ".concat(e.motionDurationMid),"&-show":{opacity:1,visibility:"visible"},["".concat(t,"-dot ").concat(t,"-dot-item")]:{backgroundColor:e.colorWhite},["".concat(t,"-text")]:{color:e.colorTextLightSolid}},"&-nested-loading":{position:"relative",["> div > ".concat(t)]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,["".concat(t,"-dot")]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},["".concat(t,"-text")]:{position:"absolute",top:"50%",width:"100%",textShadow:"0 1px 2px ".concat(e.colorBgContainer)},["&".concat(t,"-show-text ").concat(t,"-dot")]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{["".concat(t,"-dot")]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},["".concat(t,"-text")]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},["&".concat(t,"-show-text ").concat(t,"-dot")]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{["".concat(t,"-dot")]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},["".concat(t,"-text")]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},["&".concat(t,"-show-text ").concat(t,"-dot")]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},["".concat(t,"-container")]:{position:"relative",transition:"opacity ".concat(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 ".concat(e.motionDurationSlow),content:'""',pointerEvents:"none"}},["".concat(t,"-blur")]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},["".concat(t,"-dot")]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:WB,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&: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:VB,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},["&-sm ".concat(t,"-dot")]:{fontSize:e.dotSizeSM,i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},["&-lg ".concat(t,"-dot")]:{fontSize:e.dotSizeLG,i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},["&".concat(t,"-show-text ").concat(t,"-text")]:{display:"block"}})}},qB=Oc("Spin",(e=>{const t=Ga(e,{spinDotDefault:e.colorTextDescription});return[KB(t)]}),(e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:.35*t,dotSizeLG:n}}));var UB=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};let XB=null;const GB=e=>{const{prefixCls:t,spinning:n=!0,delay:r=0,className:i,rootClassName:a,size:l="default",tip:c,wrapperClassName:s,style:u,children:d,fullscreen:f=!1}=e,p=UB(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen"]),{getPrefixCls:h}=o.useContext(nl),m=h("spin",t),[g,v,b]=qB(m),[y,w]=o.useState((()=>n&&!function(e,t){return!!e&&!!t&&!isNaN(Number(t))}(n,r)));o.useEffect((()=>{if(n){const e=HB(r,(()=>{w(!0)}));return e(),()=>{var t;null===(t=null===e||void 0===e?void 0:e.cancel)||void 0===t||t.call(e)}}w(!1)}),[r,n]);const x=o.useMemo((()=>"undefined"!==typeof d&&!f),[d,f]);const{direction:S,spin:C}=o.useContext(nl),k=je()(m,null===C||void 0===C?void 0:C.className,{["".concat(m,"-sm")]:"small"===l,["".concat(m,"-lg")]:"large"===l,["".concat(m,"-spinning")]:y,["".concat(m,"-show-text")]:!!c,["".concat(m,"-fullscreen")]:f,["".concat(m,"-fullscreen-show")]:f&&y,["".concat(m,"-rtl")]:"rtl"===S},i,a,v,b),E=je()("".concat(m,"-container"),{["".concat(m,"-blur")]:y}),O=Zo(p,["indicator"]),_=Object.assign(Object.assign({},null===C||void 0===C?void 0:C.style),u),P=o.createElement("div",Object.assign({},O,{style:_,className:k,"aria-live":"polite","aria-busy":y}),function(e,t){const{indicator:n}=t,r="".concat(e,"-dot");return null===n?null:hs(n)?gs(n,{className:je()(n.props.className,r)}):hs(XB)?gs(XB,{className:je()(XB.props.className,r)}):o.createElement("span",{className:je()(r,"".concat(e,"-dot-spin"))},o.createElement("i",{className:"".concat(e,"-dot-item"),key:1}),o.createElement("i",{className:"".concat(e,"-dot-item"),key:2}),o.createElement("i",{className:"".concat(e,"-dot-item"),key:3}),o.createElement("i",{className:"".concat(e,"-dot-item"),key:4}))}(m,e),c&&(x||f)?o.createElement("div",{className:"".concat(m,"-text")},c):null);return g(x?o.createElement("div",Object.assign({},O,{className:je()("".concat(m,"-nested-loading"),s,v,b)}),y&&o.createElement("div",{key:"loading"},P),o.createElement("div",{className:E,key:"container"},d)):P)};GB.setDefaultIndicator=e=>{XB=e};const $B=GB;const YB=function(e){return function(t){let{prefixCls:n,onExpand:r,record:i,expanded:a,expandable:l}=t;const c="".concat(n,"-row-expand-icon");return o.createElement("button",{type:"button",onClick:e=>{r(i,e),e.stopPropagation()},className:je()(c,{["".concat(c,"-spaced")]:!l,["".concat(c,"-expanded")]:l&&a,["".concat(c,"-collapsed")]:l&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}};function QB(e,t){return"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function JB(e,t){return t?"".concat(t,"-").concat(e):"".concat(e)}function ZB(e,t){return"function"===typeof e?e(t):e}const eF={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"};var tF=function(e,t){return o.createElement(au,Jt({},e,{ref:t,icon:eF}))};const nF=o.forwardRef(tF);function oF(e){if(null==e)throw new TypeError("Cannot destructure "+e)}var rF=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],iF=function(e,t){var n=e.className,r=e.style,i=e.motion,a=e.motionNodes,l=e.motionType,c=e.onMotionStart,s=e.onMotionEnd,u=e.active,d=e.treeNodeRequiredProps,f=Qe(e,rF),p=We(o.useState(!0),2),h=p[0],m=p[1],g=o.useContext(wA).prefixCls,v=a&&"hide"!==l;Zr((function(){a&&v!==h&&m(v)}),[a]);var b=o.useRef(!1),y=function(){a&&!b.current&&(b.current=!0,s())};!function(e,t){var n=We(o.useState(!1),2),r=n[0],i=n[1];Zr((function(){if(r)return e(),function(){t()}}),[r]),Zr((function(){return i(!0),function(){i(!1)}}),[])}((function(){a&&c()}),y);return a?o.createElement(un,Jt({ref:t,visible:h},i,{motionAppear:"show"===l,onVisibleChanged:function(e){v===e&&y()}}),(function(e,t){var n=e.className,r=e.style;return o.createElement("div",{ref:t,className:je()("".concat(g,"-treenode-motion"),n),style:r},a.map((function(e){var t=Object.assign({},(oF(e.data),e.data)),n=e.title,r=e.key,i=e.isStart,a=e.isEnd;delete t.children;var l=IA(r,d);return o.createElement(DA,Jt({},t,l,{title:n,active:u,data:e.data,key:r,isStart:i,isEnd:a}))})))})):o.createElement(DA,Jt({domRef:t,className:n,style:r},f,{active:u}))};iF.displayName="MotionTreeNode";const aF=o.forwardRef(iF);function lF(e,t,n){var o=e.findIndex((function(e){return e.key===n})),r=e[o+1],i=t.findIndex((function(e){return e.key===n}));if(r){var a=t.findIndex((function(e){return e.key===r.key}));return t.slice(i+1,a)}return t.slice(i+1)}var cF=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],sF={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},uF=function(){},dF="RC_TREE_MOTION_".concat(Math.random()),fF={key:dF},pF={key:dF,level:0,index:0,pos:"0",node:fF,nodes:[fF]},hF={parent:null,children:[],pos:pF.pos,data:fF,title:null,key:dF,isStart:[],isEnd:[]};function mF(e,t,n,o){return!1!==t&&n?e.slice(0,Math.ceil(n/o)+1):e}function gF(e){return OA(e.key,e.pos)}var vF=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.data,i=(e.selectable,e.checkable,e.expandedKeys),a=e.selectedKeys,l=e.checkedKeys,c=e.loadedKeys,s=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,f=e.disabled,p=e.dragging,h=e.dragOverNodeKey,m=e.dropPosition,g=e.motion,v=e.height,b=e.itemHeight,y=e.virtual,w=e.focusable,x=e.activeItem,S=e.focused,C=e.tabIndex,k=e.onKeyDown,E=e.onFocus,O=e.onBlur,_=e.onActiveChange,P=e.onListChangeStart,M=e.onListChangeEnd,N=Qe(e,cF),I=o.useRef(null),R=o.useRef(null);o.useImperativeHandle(t,(function(){return{scrollTo:function(e){I.current.scrollTo(e)},getIndentWidth:function(){return R.current.offsetWidth}}}));var T=We(o.useState(i),2),j=T[0],A=T[1],z=We(o.useState(r),2),L=z[0],D=z[1],B=We(o.useState(r),2),F=B[0],H=B[1],W=We(o.useState([]),2),V=W[0],K=W[1],q=We(o.useState(null),2),U=q[0],X=q[1],G=o.useRef(r);function $(){var e=G.current;D(e),H(e),K([]),X(null),M()}G.current=r,Zr((function(){A(i);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,o=t.length;if(1!==Math.abs(n-o))return{add:!1,key:null};function r(e,t){var n=new Map;e.forEach((function(e){n.set(e,!0)}));var o=t.filter((function(e){return!n.has(e)}));return 1===o.length?o[0]:null}return n<o?{add:!0,key:r(e,t)}:{add:!1,key:r(t,e)}}(j,i);if(null!==e.key)if(e.add){var t=L.findIndex((function(t){return t.key===e.key})),n=mF(lF(L,r,e.key),y,v,b),o=L.slice();o.splice(t+1,0,hF),H(o),K(n),X("show")}else{var a=r.findIndex((function(t){return t.key===e.key})),l=mF(lF(r,L,e.key),y,v,b),c=r.slice();c.splice(a+1,0,hF),H(c),K(l),X("hide")}else L!==r&&(D(r),H(r))}),[i,r]),o.useEffect((function(){p||$()}),[p]);var Y=g?F:r,Q={expandedKeys:i,selectedKeys:a,loadedKeys:c,loadingKeys:s,checkedKeys:l,halfCheckedKeys:u,dragOverNodeKey:h,dropPosition:m,keyEntities:d};return o.createElement(o.Fragment,null,S&&x&&o.createElement("span",{style:sF,"aria-live":"assertive"},function(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}(x)),o.createElement("div",null,o.createElement("input",{style:sF,disabled:!1===w||f,tabIndex:!1!==w?C:null,onKeyDown:k,onFocus:E,onBlur:O,value:"",onChange:uF,"aria-label":"for screen reader"})),o.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},o.createElement("div",{className:"".concat(n,"-indent")},o.createElement("div",{ref:R,className:"".concat(n,"-indent-unit")}))),o.createElement(nA,Jt({},N,{data:Y,itemKey:gF,height:v,fullHeight:!1,virtual:y,itemHeight:b,prefixCls:"".concat(n,"-list"),ref:I,onVisibleChange:function(e,t){var n=new Set(e);t.filter((function(e){return!n.has(e)})).some((function(e){return gF(e)===dF}))&&$()}}),(function(e){var t=e.pos,n=Object.assign({},(oF(e.data),e.data)),r=e.title,i=e.key,a=e.isStart,l=e.isEnd,c=OA(i,t);delete n.key,delete n.children;var s=IA(c,Q);return o.createElement(aF,Jt({},n,s,{title:r,active:!!x&&i===x.key,pos:t,data:e.data,isStart:a,isEnd:l,motion:g,motionNodes:i===dF?V:null,motionType:U,onMotionStart:P,onMotionEnd:$,treeNodeRequiredProps:Q,onMouseMove:function(){_(null)}}))})))}));vF.displayName="NodeList";const bF=vF;var yF=function(e){it(n,e);var t=ut(n);function n(){var e;tt(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return Le(ct(e=t.call.apply(t,[this].concat(i))),"destroyed",!1),Le(ct(e),"delayedDragEnterLogic",void 0),Le(ct(e),"loadingRetryTimes",{}),Le(ct(e),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:_A()}),Le(ct(e),"dragStartMousePosition",null),Le(ct(e),"dragNode",void 0),Le(ct(e),"currentMouseOverDroppableNodeKey",null),Le(ct(e),"listRef",o.createRef()),Le(ct(e),"onNodeDragStart",(function(t,n){var o=e.state,r=o.expandedKeys,i=o.keyEntities,a=e.props.onDragStart,l=n.props.eventKey;e.dragNode=n,e.dragStartMousePosition={x:t.clientX,y:t.clientY};var c=BA(r,l);e.setState({draggingNodeKey:l,dragChildrenKeys:WA(l,i),indent:e.listRef.current.getIndentWidth()}),e.setExpandedKeys(c),window.addEventListener("dragend",e.onWindowDragEnd),null===a||void 0===a||a({event:t,node:RA(n.props)})})),Le(ct(e),"onNodeDragEnter",(function(t,n){var o=e.state,r=o.expandedKeys,i=o.keyEntities,a=o.dragChildrenKeys,l=o.flattenNodes,c=o.indent,s=e.props,u=s.onDragEnter,d=s.onExpand,f=s.allowDrop,p=s.direction,h=n.props,m=h.pos,g=h.eventKey,v=ct(e).dragNode;if(e.currentMouseOverDroppableNodeKey!==g&&(e.currentMouseOverDroppableNodeKey=g),v){var b=KA(t,v,n,c,e.dragStartMousePosition,f,l,i,r,p),y=b.dropPosition,w=b.dropLevelOffset,x=b.dropTargetKey,S=b.dropContainerKey,C=b.dropTargetPos,k=b.dropAllowed,E=b.dragOverNodeKey;-1===a.indexOf(x)&&k?(e.delayedDragEnterLogic||(e.delayedDragEnterLogic={}),Object.keys(e.delayedDragEnterLogic).forEach((function(t){clearTimeout(e.delayedDragEnterLogic[t])})),v.props.eventKey!==n.props.eventKey&&(t.persist(),e.delayedDragEnterLogic[m]=window.setTimeout((function(){if(null!==e.state.draggingNodeKey){var o=Re(r),a=CA(i,n.props.eventKey);a&&(a.children||[]).length&&(o=FA(r,n.props.eventKey)),"expandedKeys"in e.props||e.setExpandedKeys(o),null===d||void 0===d||d(o,{node:RA(n.props),expanded:!0,nativeEvent:t.nativeEvent})}}),800)),v.props.eventKey!==x||0!==w?(e.setState({dragOverNodeKey:E,dropPosition:y,dropLevelOffset:w,dropTargetKey:x,dropContainerKey:S,dropTargetPos:C,dropAllowed:k}),null===u||void 0===u||u({event:t,node:RA(n.props),expandedKeys:r})):e.resetDragState()):e.resetDragState()}else e.resetDragState()})),Le(ct(e),"onNodeDragOver",(function(t,n){var o=e.state,r=o.dragChildrenKeys,i=o.flattenNodes,a=o.keyEntities,l=o.expandedKeys,c=o.indent,s=e.props,u=s.onDragOver,d=s.allowDrop,f=s.direction,p=ct(e).dragNode;if(p){var h=KA(t,p,n,c,e.dragStartMousePosition,d,i,a,l,f),m=h.dropPosition,g=h.dropLevelOffset,v=h.dropTargetKey,b=h.dropContainerKey,y=h.dropAllowed,w=h.dropTargetPos,x=h.dragOverNodeKey;-1===r.indexOf(v)&&y&&(p.props.eventKey===v&&0===g?null===e.state.dropPosition&&null===e.state.dropLevelOffset&&null===e.state.dropTargetKey&&null===e.state.dropContainerKey&&null===e.state.dropTargetPos&&!1===e.state.dropAllowed&&null===e.state.dragOverNodeKey||e.resetDragState():m===e.state.dropPosition&&g===e.state.dropLevelOffset&&v===e.state.dropTargetKey&&b===e.state.dropContainerKey&&w===e.state.dropTargetPos&&y===e.state.dropAllowed&&x===e.state.dragOverNodeKey||e.setState({dropPosition:m,dropLevelOffset:g,dropTargetKey:v,dropContainerKey:b,dropTargetPos:w,dropAllowed:y,dragOverNodeKey:x}),null===u||void 0===u||u({event:t,node:RA(n.props)}))}})),Le(ct(e),"onNodeDragLeave",(function(t,n){e.currentMouseOverDroppableNodeKey!==n.props.eventKey||t.currentTarget.contains(t.relatedTarget)||(e.resetDragState(),e.currentMouseOverDroppableNodeKey=null);var o=e.props.onDragLeave;null===o||void 0===o||o({event:t,node:RA(n.props)})})),Le(ct(e),"onWindowDragEnd",(function(t){e.onNodeDragEnd(t,null,!0),window.removeEventListener("dragend",e.onWindowDragEnd)})),Le(ct(e),"onNodeDragEnd",(function(t,n){var o=e.props.onDragEnd;e.setState({dragOverNodeKey:null}),e.cleanDragState(),null===o||void 0===o||o({event:t,node:RA(n.props)}),e.dragNode=null,window.removeEventListener("dragend",e.onWindowDragEnd)})),Le(ct(e),"onNodeDrop",(function(t,n){var o,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e.state,a=i.dragChildrenKeys,l=i.dropPosition,c=i.dropTargetKey,s=i.dropTargetPos;if(i.dropAllowed){var u=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==c){var d=Be(Be({},IA(c,e.getTreeNodeRequiredProps())),{},{active:(null===(o=e.getActiveItem())||void 0===o?void 0:o.key)===c,data:CA(e.state.keyEntities,c).node}),f=-1!==a.indexOf(c);_n(!f,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var p=HA(s),h={event:t,node:RA(d),dragNode:e.dragNode?RA(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(a),dropToGap:0!==l,dropPosition:l+Number(p[p.length-1])};r||null===u||void 0===u||u(h),e.dragNode=null}}})),Le(ct(e),"cleanDragState",(function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null})),Le(ct(e),"triggerExpandActionExpand",(function(t,n){var o=e.state,r=o.expandedKeys,i=o.flattenNodes,a=n.expanded,l=n.key;if(!(n.isLeaf||t.shiftKey||t.metaKey||t.ctrlKey)){var c=i.filter((function(e){return e.key===l}))[0],s=RA(Be(Be({},IA(l,e.getTreeNodeRequiredProps())),{},{data:c.data}));e.setExpandedKeys(a?BA(r,l):FA(r,l)),e.onNodeExpand(t,s)}})),Le(ct(e),"onNodeClick",(function(t,n){var o=e.props,r=o.onClick;"click"===o.expandAction&&e.triggerExpandActionExpand(t,n),null===r||void 0===r||r(t,n)})),Le(ct(e),"onNodeDoubleClick",(function(t,n){var o=e.props,r=o.onDoubleClick;"doubleClick"===o.expandAction&&e.triggerExpandActionExpand(t,n),null===r||void 0===r||r(t,n)})),Le(ct(e),"onNodeSelect",(function(t,n){var o=e.state.selectedKeys,r=e.state,i=r.keyEntities,a=r.fieldNames,l=e.props,c=l.onSelect,s=l.multiple,u=n.selected,d=n[a.key],f=!u,p=(o=f?s?FA(o,d):[d]:BA(o,d)).map((function(e){var t=CA(i,e);return t?t.node:null})).filter((function(e){return e}));e.setUncontrolledState({selectedKeys:o}),null===c||void 0===c||c(o,{event:"select",selected:f,node:n,selectedNodes:p,nativeEvent:t.nativeEvent})})),Le(ct(e),"onNodeCheck",(function(t,n,o){var r,i=e.state,a=i.keyEntities,l=i.checkedKeys,c=i.halfCheckedKeys,s=e.props,u=s.checkStrictly,d=s.onCheck,f=n.key,p={event:"check",node:n,checked:o,nativeEvent:t.nativeEvent};if(u){var h=o?FA(l,f):BA(l,f);r={checked:h,halfChecked:BA(c,f)},p.checkedNodes=h.map((function(e){return CA(a,e)})).filter((function(e){return e})).map((function(e){return e.node})),e.setUncontrolledState({checkedKeys:h})}else{var m=YA([].concat(Re(l),[f]),!0,a),g=m.checkedKeys,v=m.halfCheckedKeys;if(!o){var b=new Set(g);b.delete(f);var y=YA(Array.from(b),{checked:!1,halfCheckedKeys:v},a);g=y.checkedKeys,v=y.halfCheckedKeys}r=g,p.checkedNodes=[],p.checkedNodesPositions=[],p.halfCheckedKeys=v,g.forEach((function(e){var t=CA(a,e);if(t){var n=t.node,o=t.pos;p.checkedNodes.push(n),p.checkedNodesPositions.push({node:n,pos:o})}})),e.setUncontrolledState({checkedKeys:g},!1,{halfCheckedKeys:v})}null===d||void 0===d||d(r,p)})),Le(ct(e),"onNodeLoad",(function(t){var n=t.key,o=new Promise((function(o,r){e.setState((function(i){var a=i.loadedKeys,l=void 0===a?[]:a,c=i.loadingKeys,s=void 0===c?[]:c,u=e.props,d=u.loadData,f=u.onLoad;return d&&-1===l.indexOf(n)&&-1===s.indexOf(n)?(d(t).then((function(){var r=FA(e.state.loadedKeys,n);null===f||void 0===f||f(r,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:r}),e.setState((function(e){return{loadingKeys:BA(e.loadingKeys,n)}})),o()})).catch((function(t){if(e.setState((function(e){return{loadingKeys:BA(e.loadingKeys,n)}})),e.loadingRetryTimes[n]=(e.loadingRetryTimes[n]||0)+1,e.loadingRetryTimes[n]>=10){var i=e.state.loadedKeys;_n(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:FA(i,n)}),o()}r(t)})),{loadingKeys:FA(s,n)}):null}))}));return o.catch((function(){})),o})),Le(ct(e),"onNodeMouseEnter",(function(t,n){var o=e.props.onMouseEnter;null===o||void 0===o||o({event:t,node:n})})),Le(ct(e),"onNodeMouseLeave",(function(t,n){var o=e.props.onMouseLeave;null===o||void 0===o||o({event:t,node:n})})),Le(ct(e),"onNodeContextMenu",(function(t,n){var o=e.props.onRightClick;o&&(t.preventDefault(),o({event:t,node:n}))})),Le(ct(e),"onFocus",(function(){var t=e.props.onFocus;e.setState({focused:!0});for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];null===t||void 0===t||t.apply(void 0,o)})),Le(ct(e),"onBlur",(function(){var t=e.props.onBlur;e.setState({focused:!1}),e.onActiveChange(null);for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];null===t||void 0===t||t.apply(void 0,o)})),Le(ct(e),"getTreeNodeRequiredProps",(function(){var t=e.state;return{expandedKeys:t.expandedKeys||[],selectedKeys:t.selectedKeys||[],loadedKeys:t.loadedKeys||[],loadingKeys:t.loadingKeys||[],checkedKeys:t.checkedKeys||[],halfCheckedKeys:t.halfCheckedKeys||[],dragOverNodeKey:t.dragOverNodeKey,dropPosition:t.dropPosition,keyEntities:t.keyEntities}})),Le(ct(e),"setExpandedKeys",(function(t){var n=e.state,o=MA(n.treeData,t,n.fieldNames);e.setUncontrolledState({expandedKeys:t,flattenNodes:o},!0)})),Le(ct(e),"onNodeExpand",(function(t,n){var o=e.state.expandedKeys,r=e.state,i=r.listChanging,a=r.fieldNames,l=e.props,c=l.onExpand,s=l.loadData,u=n.expanded,d=n[a.key];if(!i){var f=o.indexOf(d),p=!u;if(_n(u&&-1!==f||!u&&-1===f,"Expand state not sync with index check"),o=p?FA(o,d):BA(o,d),e.setExpandedKeys(o),null===c||void 0===c||c(o,{node:n,expanded:p,nativeEvent:t.nativeEvent}),p&&s){var h=e.onNodeLoad(n);h&&h.then((function(){var t=MA(e.state.treeData,o,a);e.setUncontrolledState({flattenNodes:t})})).catch((function(){var t=BA(e.state.expandedKeys,d);e.setExpandedKeys(t)}))}}})),Le(ct(e),"onListChangeStart",(function(){e.setUncontrolledState({listChanging:!0})})),Le(ct(e),"onListChangeEnd",(function(){setTimeout((function(){e.setUncontrolledState({listChanging:!1})}))})),Le(ct(e),"onActiveChange",(function(t){var n=e.state.activeKey,o=e.props,r=o.onActiveChange,i=o.itemScrollOffset,a=void 0===i?0:i;n!==t&&(e.setState({activeKey:t}),null!==t&&e.scrollTo({key:t,offset:a}),null===r||void 0===r||r(t))})),Le(ct(e),"getActiveItem",(function(){var t=e.state,n=t.activeKey,o=t.flattenNodes;return null===n?null:o.find((function(e){return e.key===n}))||null})),Le(ct(e),"offsetActiveKey",(function(t){var n=e.state,o=n.flattenNodes,r=n.activeKey,i=o.findIndex((function(e){return e.key===r}));-1===i&&t<0&&(i=o.length);var a=o[i=(i+t+o.length)%o.length];if(a){var l=a.key;e.onActiveChange(l)}else e.onActiveChange(null)})),Le(ct(e),"onKeyDown",(function(t){var n=e.state,o=n.activeKey,r=n.expandedKeys,i=n.checkedKeys,a=n.fieldNames,l=e.props,c=l.onKeyDown,s=l.checkable,u=l.selectable;switch(t.which){case jv.UP:e.offsetActiveKey(-1),t.preventDefault();break;case jv.DOWN:e.offsetActiveKey(1),t.preventDefault()}var d=e.getActiveItem();if(d&&d.data){var f=e.getTreeNodeRequiredProps(),p=!1===d.data.isLeaf||!!(d.data[a.children]||[]).length,h=RA(Be(Be({},IA(o,f)),{},{data:d.data,active:!0}));switch(t.which){case jv.LEFT:p&&r.includes(o)?e.onNodeExpand({},h):d.parent&&e.onActiveChange(d.parent.key),t.preventDefault();break;case jv.RIGHT:p&&!r.includes(o)?e.onNodeExpand({},h):d.children&&d.children.length&&e.onActiveChange(d.children[0].key),t.preventDefault();break;case jv.ENTER:case jv.SPACE:!s||h.disabled||!1===h.checkable||h.disableCheckbox?s||!u||h.disabled||!1===h.selectable||e.onNodeSelect({},h):e.onNodeCheck({},h,!i.includes(o))}}null===c||void 0===c||c(t)})),Le(ct(e),"setUncontrolledState",(function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var r=!1,i=!0,a={};Object.keys(t).forEach((function(n){n in e.props?i=!1:(r=!0,a[n]=t[n])})),!r||n&&!i||e.setState(Be(Be({},a),o))}})),Le(ct(e),"scrollTo",(function(t){e.listRef.current.scrollTo(t)})),e}return ot(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props,t=e.activeKey,n=e.itemScrollOffset,o=void 0===n?0:n;void 0!==t&&t!==this.state.activeKey&&(this.setState({activeKey:t}),null!==t&&this.scrollTo({key:t,offset: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 e,t=this.state,n=t.focused,r=t.flattenNodes,i=t.keyEntities,a=t.draggingNodeKey,l=t.activeKey,c=t.dropLevelOffset,s=t.dropContainerKey,u=t.dropTargetKey,d=t.dropPosition,f=t.dragOverNodeKey,p=t.indent,h=this.props,m=h.prefixCls,g=h.className,v=h.style,b=h.showLine,y=h.focusable,w=h.tabIndex,x=void 0===w?0:w,S=h.selectable,C=h.showIcon,k=h.icon,E=h.switcherIcon,O=h.draggable,_=h.checkable,P=h.checkStrictly,M=h.disabled,N=h.motion,I=h.loadData,R=h.filterTreeNode,T=h.height,j=h.itemHeight,A=h.virtual,z=h.titleRender,L=h.dropIndicatorRender,D=h.onContextMenu,B=h.onScroll,F=h.direction,H=h.rootClassName,W=h.rootStyle,V=VT(this.props,{aria:!0,data:!0});return O&&(e="object"===Ae(O)?O:"function"===typeof O?{nodeDraggable:O}:{}),o.createElement(wA.Provider,{value:{prefixCls:m,selectable:S,showIcon:C,icon:k,switcherIcon:E,draggable:e,draggingNodeKey:a,checkable:_,checkStrictly:P,disabled:M,keyEntities:i,dropLevelOffset:c,dropContainerKey:s,dropTargetKey:u,dropPosition:d,dragOverNodeKey:f,indent:p,direction:F,dropIndicatorRender:L,loadData:I,filterTreeNode:R,titleRender:z,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}},o.createElement("div",{role:"tree",className:je()(m,g,H,Le(Le(Le({},"".concat(m,"-show-line"),b),"".concat(m,"-focused"),n),"".concat(m,"-active-focused"),null!==l)),style:W},o.createElement(bF,Jt({ref:this.listRef,prefixCls:m,style:v,data:r,disabled:M,selectable:S,checkable:!!_,motion:N,dragging:null!==a,height:T,itemHeight:j,virtual:A,focusable:y,focused:n,tabIndex:x,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:D,onScroll:B},this.getTreeNodeRequiredProps(),V))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,o=t.prevProps,r={prevProps:e};function i(t){return!o&&t in e||o&&o[t]!==e[t]}var a=t.fieldNames;if(i("fieldNames")&&(a=_A(e.fieldNames),r.fieldNames=a),i("treeData")?n=e.treeData:i("children")&&(_n(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=PA(e.children)),n){r.treeData=n;var l=NA(n,{fieldNames:a});r.keyEntities=Be(Le({},dF,pF),l.keyEntities)}var c,s=r.keyEntities||t.keyEntities;if(i("expandedKeys")||o&&i("autoExpandParent"))r.expandedKeys=e.autoExpandParent||!o&&e.defaultExpandParent?XA(e.expandedKeys,s):e.expandedKeys;else if(!o&&e.defaultExpandAll){var u=Be({},s);delete u[dF],r.expandedKeys=Object.keys(u).map((function(e){return u[e].key}))}else!o&&e.defaultExpandedKeys&&(r.expandedKeys=e.autoExpandParent||e.defaultExpandParent?XA(e.defaultExpandedKeys,s):e.defaultExpandedKeys);if(r.expandedKeys||delete r.expandedKeys,n||r.expandedKeys){var d=MA(n||t.treeData,r.expandedKeys||t.expandedKeys,a);r.flattenNodes=d}if((e.selectable&&(i("selectedKeys")?r.selectedKeys=qA(e.selectedKeys,e):!o&&e.defaultSelectedKeys&&(r.selectedKeys=qA(e.defaultSelectedKeys,e))),e.checkable)&&(i("checkedKeys")?c=UA(e.checkedKeys)||{}:!o&&e.defaultCheckedKeys?c=UA(e.defaultCheckedKeys)||{}:n&&(c=UA(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),c)){var f=c,p=f.checkedKeys,h=void 0===p?[]:p,m=f.halfCheckedKeys,g=void 0===m?[]:m;if(!e.checkStrictly){var v=YA(h,!0,s);h=v.checkedKeys,g=v.halfCheckedKeys}r.checkedKeys=h,r.halfCheckedKeys=g}return i("loadedKeys")&&(r.loadedKeys=e.loadedKeys),r}}]),n}(o.Component);Le(yF,"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:function(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:i.top=0,i.left=-n*r;break;case 1:i.bottom=0,i.left=-n*r;break;case 0:i.bottom=0,i.left=r}return o.createElement("div",{style:i})},allowDrop:function(){return!0},expandAction:!1}),Le(yF,"TreeNode",DA);const wF=yF;const xF={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"};var SF=function(e,t){return o.createElement(au,Jt({},e,{ref:t,icon:xF}))};const CF=o.forwardRef(SF);const kF={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"};var EF=function(e,t){return o.createElement(au,Jt({},e,{ref:t,icon:kF}))};const OF=o.forwardRef(EF);const _F={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"};var PF=function(e,t){return o.createElement(au,Jt({},e,{ref:t,icon:_F}))};const MF=o.forwardRef(PF);const NF={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"};var IF=function(e,t){return o.createElement(au,Jt({},e,{ref:t,icon:NF}))};const RF=o.forwardRef(IF),TF=new wa("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),jF=(e,t)=>({[".".concat(e,"-switcher-icon")]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:"transform ".concat(t.motionDurationSlow)}}}),AF=(e,t)=>({[".".concat(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:"".concat(qr(t.lineWidthBold)," solid ").concat(t.colorPrimary),borderRadius:"50%",content:'""'}}}),zF=(e,t)=>{const{treeCls:n,treeNodeCls:o,treeNodePadding:r,titleHeight:i,nodeSelectedBg:a,nodeHoverBg:l}=t,c=t.paddingXS;return{[n]:Object.assign(Object.assign({},Ca(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:"background-color ".concat(t.motionDurationSlow),["&".concat(n,"-rtl")]:{["".concat(n,"-switcher")]:{"&_close":{["".concat(n,"-switcher-icon")]:{svg:{transform:"rotate(90deg)"}}}}},["&-focused:not(:hover):not(".concat(n,"-active-focused)")]:Object.assign({},Oa(t)),["".concat(n,"-list-holder-inner")]:{alignItems:"flex-start"},["&".concat(n,"-block-node")]:{["".concat(n,"-list-holder-inner")]:{alignItems:"stretch",["".concat(n,"-node-content-wrapper")]:{flex:"auto"},["".concat(o,".dragging")]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,border:"1px solid ".concat(t.colorPrimary),opacity:0,animationName:TF,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},["".concat(o)]:{display:"flex",alignItems:"flex-start",padding:"0 0 ".concat(qr(r)," 0"),outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{["".concat(n,"-node-content-wrapper")]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},["&-active ".concat(n,"-node-content-wrapper")]:{background:t.controlItemBgHover},["&:not(".concat(o,"-disabled).filter-node ").concat(n,"-title")]:{color:"inherit",fontWeight:500},"&-draggable":{cursor:"grab",["".concat(n,"-draggable-icon")]:{flexShrink:0,width:i,lineHeight:"".concat(qr(i)),textAlign:"center",visibility:"visible",opacity:.2,transition:"opacity ".concat(t.motionDurationSlow),["".concat(o,":hover &")]:{opacity:.45}},["&".concat(o,"-disabled")]:{["".concat(n,"-draggable-icon")]:{visibility:"hidden"}}}},["".concat(n,"-indent")]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:i}},["".concat(n,"-draggable-icon")]:{visibility:"hidden"},["".concat(n,"-switcher")]:Object.assign(Object.assign({},jF(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,margin:0,lineHeight:"".concat(qr(i)),textAlign:"center",cursor:"pointer",userSelect:"none",transition:"all ".concat(t.motionDurationSlow),borderRadius:t.borderRadius,"&-noop":{cursor:"unset"},["&:not(".concat(n,"-switcher-noop):hover")]:{backgroundColor:t.colorBgTextHover},"&_close":{["".concat(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:t.calc(i).div(2).equal(),bottom:t.calc(r).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:"1px solid ".concat(t.colorBorder),content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(i).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:"1px solid ".concat(t.colorBorder),content:'""'}}}),["".concat(n,"-checkbox")]:{top:"initial",marginInlineEnd:c,alignSelf:"flex-start",marginTop:t.marginXXS},["".concat(n,"-node-content-wrapper, ").concat(n,"-checkbox + span")]:{position:"relative",zIndex:"auto",minHeight:i,margin:0,padding:"0 ".concat(qr(t.calc(t.paddingXS).div(2).equal())),color:"inherit",lineHeight:"".concat(qr(i)),background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:"all ".concat(t.motionDurationMid,", border 0s, line-height 0s, box-shadow 0s"),"&:hover":{backgroundColor:l},["&".concat(n,"-node-selected")]:{backgroundColor:a},["".concat(n,"-iconEle")]:{display:"inline-block",width:i,height:i,lineHeight:"".concat(qr(i)),textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},["".concat(n,"-unselectable ").concat(n,"-node-content-wrapper:hover")]:{backgroundColor:"transparent"},["".concat(n,"-node-content-wrapper")]:Object.assign({lineHeight:"".concat(qr(i)),userSelect:"none"},AF(e,t)),["".concat(o,".drop-container")]:{"> [draggable]":{boxShadow:"0 0 0 2px ".concat(t.colorPrimary)}},"&-show-line":{["".concat(n,"-indent")]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(r).mul(-1).equal(),borderInlineEnd:"1px solid ".concat(t.colorBorder),content:'""'},"&-end":{"&:before":{display:"none"}}}},["".concat(n,"-switcher")]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},["".concat(o,"-leaf-last")]:{["".concat(n,"-switcher")]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:"".concat(qr(t.calc(i).div(2).equal())," !important")}}}}})}},LF=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:o,directoryNodeSelectedBg:r,directoryNodeSelectedColor:i}=e;return{["".concat(t).concat(t,"-directory")]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,transition:"background-color ".concat(e.motionDurationMid),content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},["".concat(t,"-switcher")]:{transition:"color ".concat(e.motionDurationMid)},["".concat(t,"-node-content-wrapper")]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},["&".concat(t,"-node-selected")]:{color:i,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:r},["".concat(t,"-switcher")]:{color:i},["".concat(t,"-node-content-wrapper")]:{color:i,background:"transparent"}}}}}},DF=(e,t)=>{const n=".".concat(e),o="".concat(n,"-treenode"),r=t.calc(t.paddingXS).div(2).equal(),i=Ga(t,{treeCls:n,treeNodeCls:o,treeNodePadding:r});return[zF(e,i),LF(i)]},BF=Oc("Tree",((e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:nz("".concat(n,"-checkbox"),e)},DF(n,e),qa(e)]}),(e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},(e=>{const{controlHeightSM:t}=e;return{titleHeight:t,nodeHoverBg:e.controlItemBgHover,nodeSelectedBg:e.controlItemBgActive}})(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})}));function FF(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:i,direction:a="ltr"}=e,l="ltr"===a?"left":"right",c={[l]:-n*i+4,["ltr"===a?"right":"left"]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[l]=i+4}return o.createElement("div",{style:c,className:"".concat(r,"-drop-indicator")})}const HF={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"};var WF=function(e,t){return o.createElement(au,Jt({},e,{ref:t,icon:HF}))};const VF=o.forwardRef(WF);const KF={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"};var qF=function(e,t){return o.createElement(au,Jt({},e,{ref:t,icon:KF}))};const UF=o.forwardRef(qF);const XF={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"};var GF=function(e,t){return o.createElement(au,Jt({},e,{ref:t,icon:XF}))};const $F=o.forwardRef(GF),YF=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:i}=e,{isLeaf:a,expanded:l,loading:c}=r;if(c)return o.createElement(Bf,{className:"".concat(t,"-switcher-loading-icon")});let s;if(i&&"object"===typeof i&&(s=i.showLeafIcon),a){if(!i)return null;if("boolean"!==typeof s&&s){const e="function"===typeof s?s(r):s,n="".concat(t,"-switcher-line-custom-icon");return hs(e)?gs(e,{className:je()(e.props.className||"",n)}):e}return s?o.createElement(CF,{className:"".concat(t,"-switcher-line-icon")}):o.createElement("span",{className:"".concat(t,"-switcher-leaf-line")})}const u="".concat(t,"-switcher-icon"),d="function"===typeof n?n(r):n;return hs(d)?gs(d,{className:je()(d.props.className||"",u)}):void 0!==d?d:i?l?o.createElement(UF,{className:"".concat(t,"-switcher-line-icon")}):o.createElement($F,{className:"".concat(t,"-switcher-line-icon")}):o.createElement(VF,{className:u})},QF=o.forwardRef(((e,t)=>{var n;const{getPrefixCls:r,direction:i,virtual:a,tree:l}=o.useContext(nl),{prefixCls:c,className:s,showIcon:u=!1,showLine:d,switcherIcon:f,blockNode:p=!1,children:h,checkable:m=!1,selectable:g=!0,draggable:v,motion:b,style:y}=e,w=r("tree",c),x=r(),S=null!==b&&void 0!==b?b:Object.assign(Object.assign({},gn(x)),{motionAppear:!1}),C=Object.assign(Object.assign({},e),{checkable:m,selectable:g,showIcon:u,motion:S,blockNode:p,showLine:Boolean(d),dropIndicatorRender:FF}),[k,E,O]=BF(w),[,_]=hc(),P=_.paddingXS/2+((null===(n=_.Tree)||void 0===n?void 0:n.titleHeight)||_.controlHeightSM),M=o.useMemo((()=>{if(!v)return!1;let e={};switch(typeof v){case"function":e.nodeDraggable=v;break;case"object":e=Object.assign({},v)}return!1!==e.icon&&(e.icon=e.icon||o.createElement(RF,null)),e}),[v]);return k(o.createElement(wF,Object.assign({itemHeight:P,ref:t,virtual:a},C,{style:Object.assign(Object.assign({},null===l||void 0===l?void 0:l.style),y),prefixCls:w,className:je()({["".concat(w,"-icon-hide")]:!u,["".concat(w,"-block-node")]:p,["".concat(w,"-unselectable")]:!g,["".concat(w,"-rtl")]:"rtl"===i},null===l||void 0===l?void 0:l.className,s,E,O),direction:i,checkable:m?o.createElement("span",{className:"".concat(w,"-checkbox-inner")}):m,selectable:g,switcherIcon:e=>o.createElement(YF,{prefixCls:w,switcherIcon:f,treeNodeProps:e,showLine:d}),draggable:M}),h))}));const JF=QF;var ZF;function eH(e,t,n){const{key:o,children:r}=n;e.forEach((function(e){const i=e[o],a=e[r];!1!==t(i,e)&&eH(a||[],t,n)}))}function tH(e){let{treeData:t,expandedKeys:n,startKey:o,endKey:r,fieldNames:i}=e;const a=[];let l=ZF.None;if(o&&o===r)return[o];if(!o||!r)return[];return eH(t,(e=>{if(l===ZF.End)return!1;if(function(e){return e===o||e===r}(e)){if(a.push(e),l===ZF.None)l=ZF.Start;else if(l===ZF.Start)return l=ZF.End,!1}else l===ZF.Start&&a.push(e);return n.includes(e)}),_A(i)),a}function nH(e,t,n){const o=Re(t),r=[];return eH(e,((e,t)=>{const n=o.indexOf(e);return-1!==n&&(r.push(t),o.splice(n,1)),!!o.length}),_A(n)),r}!function(e){e[e.None=0]="None",e[e.Start=1]="Start",e[e.End=2]="End"}(ZF||(ZF={}));var oH=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function rH(e){const{isLeaf:t,expanded:n}=e;return t?o.createElement(CF,null):n?o.createElement(OF,null):o.createElement(MF,null)}function iH(e){let{treeData:t,children:n}=e;return t||PA(n)}const aH=(e,t)=>{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:i}=e,a=oH(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const l=o.useRef(),c=o.useRef(),[s,u]=o.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[d,f]=o.useState((()=>(()=>{const{keyEntities:e}=NA(iH(a));let t;return t=n?Object.keys(e):r?XA(a.expandedKeys||i||[],e):a.expandedKeys||i,t})()));o.useEffect((()=>{"selectedKeys"in a&&u(a.selectedKeys)}),[a.selectedKeys]),o.useEffect((()=>{"expandedKeys"in a&&f(a.expandedKeys)}),[a.expandedKeys]);const{getPrefixCls:p,direction:h}=o.useContext(nl),{prefixCls:m,className:g,showIcon:v=!0,expandAction:b="click"}=a,y=oH(a,["prefixCls","className","showIcon","expandAction"]),w=p("tree",m),x=je()("".concat(w,"-directory"),{["".concat(w,"-directory-rtl")]:"rtl"===h},g);return o.createElement(JF,Object.assign({icon:rH,ref:t,blockNode:!0},y,{showIcon:v,expandAction:b,prefixCls:w,className:x,expandedKeys:d,selectedKeys:s,onSelect:(e,t)=>{var n;const{multiple:o,fieldNames:r}=a,{node:i,nativeEvent:s}=t,{key:f=""}=i,p=iH(a),h=Object.assign(Object.assign({},t),{selected:!0}),m=(null===s||void 0===s?void 0:s.ctrlKey)||(null===s||void 0===s?void 0:s.metaKey),g=null===s||void 0===s?void 0:s.shiftKey;let v;o&&m?(v=e,l.current=f,c.current=v,h.selectedNodes=nH(p,v,r)):o&&g?(v=Array.from(new Set([].concat(Re(c.current||[]),Re(tH({treeData:p,expandedKeys:d,startKey:f,endKey:l.current,fieldNames:r}))))),h.selectedNodes=nH(p,v,r)):(v=[f],l.current=f,c.current=v,h.selectedNodes=nH(p,v,r)),null===(n=a.onSelect)||void 0===n||n.call(a,v,h),"selectedKeys"in a||u(v)},onExpand:(e,t)=>{var n;return"expandedKeys"in a||f(e),null===(n=a.onExpand)||void 0===n?void 0:n.call(a,e,t)}}))};const lH=o.forwardRef(aH),cH=JF;cH.DirectoryTree=lH,cH.TreeNode=DA;const sH=cH;const uH=function(e){let{value:t,onChange:n,filterSearch:r,tablePrefixCls:i,locale:a}=e;return r?o.createElement("div",{className:"".concat(i,"-filter-dropdown-search")},o.createElement(jm,{prefix:o.createElement(oh,null),placeholder:a.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,className:"".concat(i,"-filter-dropdown-search-input")})):null},dH=e=>{const{keyCode:t}=e;t===jv.ENTER&&e.stopPropagation()},fH=o.forwardRef(((e,t)=>o.createElement("div",{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:dH,ref:t},e.children)));const pH=fH;function hH(e){let t=[];return(e||[]).forEach((e=>{let{value:n,children:o}=e;t.push(n),o&&(t=[].concat(Re(t),Re(hH(o))))})),t}function mH(e,t){return("string"===typeof t||"number"===typeof t)&&(null===t||void 0===t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}function gH(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,filterSearch:l}=e;return t.map(((e,t)=>{const c=String(e.value);if(e.children)return{key:c||t,label:e.text,popupClassName:"".concat(n,"-dropdown-submenu"),children:gH({filters:e.children,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,filterSearch:l})};const s=i?dz:bL,u={key:void 0!==e.value?c:t,label:o.createElement(o.Fragment,null,o.createElement(s,{checked:r.includes(c)}),o.createElement("span",null,e.text))};return a.trim()?"function"===typeof l?l(a,e)?u:null:mH(a,e.text)?u:null:u}))}function vH(e){return e||[]}const bH=function(e){var t,n;const{tablePrefixCls:r,prefixCls:i,column:a,dropdownPrefixCls:l,columnKey:c,filterMultiple:s,filterMode:u="menu",filterSearch:d=!1,filterState:f,triggerFilter:p,locale:h,children:m,getPopupContainer:g,rootClassName:v}=e,{filterDropdownOpen:b,onFilterDropdownOpenChange:y,filterResetToDefaultFilteredValue:w,defaultFilteredValue:x,filterDropdownVisible:S,onFilterDropdownVisibleChange:C}=a,[k,E]=o.useState(!1),O=!(!f||!(null===(t=f.filteredKeys)||void 0===t?void 0:t.length)&&!f.forceFiltered),_=e=>{E(e),null===y||void 0===y||y(e),null===C||void 0===C||C(e)},P=null!==(n=null!==b&&void 0!==b?b:S)&&void 0!==n?n:k,M=null===f||void 0===f?void 0:f.filteredKeys,[N,I]=function(e){const t=o.useRef(e),n=BL();return[()=>t.current,e=>{t.current=e,n()}]}(vH(M)),R=e=>{let{selectedKeys:t}=e;I(t)},T=(e,t)=>{let{node:n,checked:o}=t;R(s?{selectedKeys:e}:{selectedKeys:o&&n.key?[n.key]:[]})};o.useEffect((()=>{k&&R({selectedKeys:vH(M)})}),[M]);const[j,A]=o.useState([]),z=e=>{A(e)},[L,D]=o.useState(""),B=e=>{const{value:t}=e.target;D(t)};o.useEffect((()=>{k||D("")}),[k]);const F=e=>{const t=e&&e.length?e:null;return null!==t||f&&f.filteredKeys?Pn(t,null===f||void 0===f?void 0:f.filteredKeys,!0)?null:void p({column:a,key:c,filteredKeys:t}):null},H=()=>{_(!1),F(N())},W=function(){let{confirm:e,closeDropdown:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1};e&&F([]),t&&_(!1),D(""),I(w?(x||[]).map((e=>String(e))):[])},V=function(){let{closeDropdown:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0};e&&_(!1),F(N())},K=je()({["".concat(l,"-menu-without-submenu")]:(q=a.filters||[],!q.some((e=>{let{children:t}=e;return t})))});var q;const U=e=>{if(e.target.checked){const e=hH(null===a||void 0===a?void 0:a.filters).map((e=>String(e)));I(e)}else I([])},X=e=>{let{filters:t}=e;return(t||[]).map(((e,t)=>{const n=String(e.value),o={title:e.text,key:void 0!==e.value?n:String(t)};return e.children&&(o.children=X({filters:e.children})),o}))},G=e=>{var t;return Object.assign(Object.assign({},e),{text:e.title,value:e.key,children:(null===(t=e.children)||void 0===t?void 0:t.map((e=>G(e))))||[]})};let $,Y;if("function"===typeof a.filterDropdown)$=a.filterDropdown({prefixCls:"".concat(l,"-custom"),setSelectedKeys:e=>R({selectedKeys:e}),selectedKeys:N(),confirm:V,clearFilters:W,filters:a.filters,visible:P,close:()=>{_(!1)}});else if(a.filterDropdown)$=a.filterDropdown;else{const e=N()||[],t=()=>0===(a.filters||[]).length?o.createElement(LL,{image:LL.PRESENTED_IMAGE_SIMPLE,description:h.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):"tree"===u?o.createElement(o.Fragment,null,o.createElement(uH,{filterSearch:d,value:L,onChange:B,tablePrefixCls:r,locale:h}),o.createElement("div",{className:"".concat(r,"-filter-dropdown-tree")},s?o.createElement(dz,{checked:e.length===hH(a.filters).length,indeterminate:e.length>0&&e.length<hH(a.filters).length,className:"".concat(r,"-filter-dropdown-checkall"),onChange:U},h.filterCheckall):null,o.createElement(sH,{checkable:!0,selectable:!1,blockNode:!0,multiple:s,checkStrictly:!s,className:"".concat(l,"-menu"),onCheck:T,checkedKeys:e,selectedKeys:e,showIcon:!1,treeData:X({filters:a.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:L.trim()?e=>"function"===typeof d?d(L,G(e)):mH(L,e.title):void 0}))):o.createElement(o.Fragment,null,o.createElement(uH,{filterSearch:d,value:L,onChange:B,tablePrefixCls:r,locale:h}),o.createElement(_y,{selectable:!0,multiple:s,prefixCls:"".concat(l,"-menu"),className:K,onSelect:R,onDeselect:R,selectedKeys:e,getPopupContainer:g,openKeys:j,onOpenChange:z,items:gH({filters:a.filters||[],filterSearch:d,prefixCls:i,filteredKeys:N(),filterMultiple:s,searchValue:L})})),n=()=>w?Pn((x||[]).map((e=>String(e))),e,!0):0===e.length;$=o.createElement(o.Fragment,null,t(),o.createElement("div",{className:"".concat(i,"-dropdown-btns")},o.createElement(gm,{type:"link",size:"small",disabled:n(),onClick:()=>W()},h.filterReset),o.createElement(gm,{type:"primary",size:"small",onClick:H},h.filterConfirm)))}a.filterDropdown&&($=o.createElement(ty,{selectable:void 0},$)),Y="function"===typeof a.filterIcon?a.filterIcon(O):a.filterIcon?a.filterIcon:o.createElement(nF,null);const{direction:Q}=o.useContext(nl);return o.createElement("div",{className:"".concat(i,"-column")},o.createElement("span",{className:"".concat(r,"-column-title")},m),o.createElement(Zz,{dropdownRender:()=>o.createElement(pH,{className:"".concat(i,"-dropdown")},$),trigger:["click"],open:P,onOpenChange:(e,t)=>{"trigger"===t.source&&(e&&void 0!==M&&I(vH(M)),_(e),e||a.filterDropdown||H())},getPopupContainer:g,placement:"rtl"===Q?"bottomLeft":"bottomRight",rootClassName:v},o.createElement("span",{role:"button",tabIndex:-1,className:je()("".concat(i,"-trigger"),{active:O}),onClick:e=>{e.stopPropagation()}},Y)))};function yH(e,t,n){let o=[];return(e||[]).forEach(((e,r)=>{var i;const a=JB(r,n);if(e.filters||"filterDropdown"in e||"onFilter"in e)if("filteredValue"in e){let t=e.filteredValue;"filterDropdown"in e||(t=null!==(i=null===t||void 0===t?void 0:t.map(String))&&void 0!==i?i:t),o.push({column:e,key:QB(e,a),filteredKeys:t,forceFiltered:e.filtered})}else o.push({column:e,key:QB(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(o=[].concat(Re(o),Re(yH(e.children,t,a))))})),o}function wH(e,t,n,r,i,a,l,c,s){return n.map(((n,u)=>{const d=JB(u,c),{filterMultiple:f=!0,filterMode:p,filterSearch:h}=n;let m=n;if(m.filters||m.filterDropdown){const c=QB(m,d),u=r.find((e=>{let{key:t}=e;return c===t}));m=Object.assign(Object.assign({},m),{title:r=>o.createElement(bH,{tablePrefixCls:e,prefixCls:"".concat(e,"-filter"),dropdownPrefixCls:t,column:m,columnKey:c,filterState:u,filterMultiple:f,filterMode:p,filterSearch:h,triggerFilter:a,locale:i,getPopupContainer:l,rootClassName:s},ZB(n.title,r))})}return"children"in m&&(m=Object.assign(Object.assign({},m),{children:wH(e,t,m.children,r,i,a,l,d,s)})),m}))}function xH(e){const t={};return e.forEach((e=>{let{key:n,filteredKeys:o,column:r}=e;const i=n,{filters:a,filterDropdown:l}=r;if(l)t[i]=o||null;else if(Array.isArray(o)){const e=hH(a);t[i]=e.filter((e=>o.includes(String(e))))}else t[i]=null})),t}function SH(e,t,n){return t.reduce(((e,o)=>{const{column:{onFilter:r,filters:i},filteredKeys:a}=o;return r&&a&&a.length?e.map((e=>Object.assign({},e))).filter((e=>a.some((o=>{const a=hH(i),l=a.findIndex((e=>String(e)===String(o))),c=-1!==l?a[l]:o;return e[n]&&(e[n]=SH(e[n],t,n)),r(c,e)})))):e}),e)}const CH=e=>e.flatMap((e=>"children"in e?[e].concat(Re(CH(e.children||[]))):[e]));const kH=function(e){let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:i,getPopupContainer:a,locale:l,rootClassName:c}=e;ys("Table");const s=o.useMemo((()=>CH(r||[])),[r]),[u,d]=o.useState((()=>yH(s,!0))),f=o.useMemo((()=>{const e=yH(s,!1);if(0===e.length)return e;let t=!0,n=!0;if(e.forEach((e=>{let{filteredKeys:o}=e;void 0!==o?t=!1:n=!1})),t){const e=(s||[]).map(((e,t)=>QB(e,JB(t))));return u.filter((t=>{let{key:n}=t;return e.includes(n)})).map((t=>{const n=s[e.findIndex((e=>e===t.key))];return Object.assign(Object.assign({},t),{column:Object.assign(Object.assign({},t.column),n),forceFiltered:n.filtered})}))}return e}),[s,u]),p=o.useMemo((()=>xH(f)),[f]),h=e=>{const t=f.filter((t=>{let{key:n}=t;return n!==e.key}));t.push(e),d(t),i(xH(t),t)};return[e=>wH(t,n,e,f,l,h,a,void 0,c),f,p]};const EH=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t];n&&Object.keys(n).forEach((t=>{const o=n[t];void 0!==o&&(e[t]=o)}))}return e};var OH=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const _H=10;const PH=function(e,t,n){const r=n&&"object"===typeof n?n:{},{total:i=0}=r,a=OH(r,["total"]),[l,c]=(0,o.useState)((()=>({current:"defaultCurrent"in a?a.defaultCurrent:1,pageSize:"defaultPageSize"in a?a.defaultPageSize:_H}))),s=EH(l,a,{total:i>0?i:e}),u=Math.ceil((i||e)/s.pageSize);s.current>u&&(s.current=u||1);const d=(e,t)=>{c({current:null!==e&&void 0!==e?e:1,pageSize:t||s.pageSize})};return!1===n?[{},()=>{}]:[Object.assign(Object.assign({},s),{onChange:(e,o)=>{var r;n&&(null===(r=n.onChange)||void 0===r||r.call(n,e,o)),d(e,o),t(e,o||(null===s||void 0===s?void 0:s.pageSize))}}),d]};const MH={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"};var NH=function(e,t){return o.createElement(au,Jt({},e,{ref:t,icon:MH}))};const IH=o.forwardRef(NH);const RH={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"};var TH=function(e,t){return o.createElement(au,Jt({},e,{ref:t,icon:RH}))};const jH=o.forwardRef(TH),AH="ascend",zH="descend";function LH(e){return"object"===typeof e.sorter&&"number"===typeof e.sorter.multiple&&e.sorter.multiple}function DH(e){return"function"===typeof e?e:!(!e||"object"!==typeof e||!e.compare)&&e.compare}function BH(e,t,n){let o=[];function r(e,t){o.push({column:e,key:QB(e,t),multiplePriority:LH(e),sortOrder:e.sortOrder})}return(e||[]).forEach(((e,i)=>{const a=JB(i,n);e.children?("sortOrder"in e&&r(e,a),o=[].concat(Re(o),Re(BH(e.children,t,a)))):e.sorter&&("sortOrder"in e?r(e,a):t&&e.defaultSortOrder&&o.push({column:e,key:QB(e,a),multiplePriority:LH(e),sortOrder:e.defaultSortOrder}))})),o}function FH(e,t,n,r,i,a,l,c){return(t||[]).map(((t,s)=>{const u=JB(s,c);let d=t;if(d.sorter){const c=d.sortDirections||i,s=void 0===d.showSorterTooltip?l:d.showSorterTooltip,f=QB(d,u),p=n.find((e=>{let{key:t}=e;return t===f})),h=p?p.sortOrder:null,m=function(e,t){return t?e[e.indexOf(t)+1]:e[0]}(c,h);let g;if(t.sortIcon)g=t.sortIcon({sortOrder:h});else{const t=c.includes(AH)&&o.createElement(jH,{className:je()("".concat(e,"-column-sorter-up"),{active:h===AH})}),n=c.includes(zH)&&o.createElement(IH,{className:je()("".concat(e,"-column-sorter-down"),{active:h===zH})});g=o.createElement("span",{className:je()("".concat(e,"-column-sorter"),{["".concat(e,"-column-sorter-full")]:!(!t||!n)})},o.createElement("span",{className:"".concat(e,"-column-sorter-inner"),"aria-hidden":"true"},t,n))}const{cancelSort:v,triggerAsc:b,triggerDesc:y}=a||{};let w=v;m===zH?w=y:m===AH&&(w=b);const x="object"===typeof s?Object.assign({title:w},s):{title:w};d=Object.assign(Object.assign({},d),{className:je()(d.className,{["".concat(e,"-column-sort")]:h}),title:n=>{const r=o.createElement("div",{className:"".concat(e,"-column-sorters")},o.createElement("span",{className:"".concat(e,"-column-title")},ZB(t.title,n)),g);return s?o.createElement(Ef,Object.assign({},x),r):r},onHeaderCell:n=>{const o=t.onHeaderCell&&t.onHeaderCell(n)||{},i=o.onClick,a=o.onKeyDown;o.onClick=e=>{r({column:t,key:f,sortOrder:m,multiplePriority:LH(t)}),null===i||void 0===i||i(e)},o.onKeyDown=e=>{e.keyCode===jv.ENTER&&(r({column:t,key:f,sortOrder:m,multiplePriority:LH(t)}),null===a||void 0===a||a(e))};const l=function(e,t){const n=ZB(e,t);return"[object Object]"===Object.prototype.toString.call(n)?"":n}(t.title,{}),c=null===l||void 0===l?void 0:l.toString();return h?o["aria-sort"]="ascend"===h?"ascending":"descending":o["aria-label"]=c||"",o.className=je()(o.className,"".concat(e,"-column-has-sorters")),o.tabIndex=0,t.ellipsis&&(o.title=(null!==l&&void 0!==l?l:"").toString()),o}})}return"children"in d&&(d=Object.assign(Object.assign({},d),{children:FH(e,d.children,n,r,i,a,l,u)})),d}))}function HH(e){const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}}function WH(e){const t=e.filter((e=>{let{sortOrder:t}=e;return t})).map(HH);return 0===t.length&&e.length?Object.assign(Object.assign({},HH(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function VH(e,t,n){const o=t.slice().sort(((e,t)=>t.multiplePriority-e.multiplePriority)),r=e.slice(),i=o.filter((e=>{let{column:{sorter:t},sortOrder:n}=e;return DH(t)&&n}));return i.length?r.sort(((e,t)=>{for(let n=0;n<i.length;n+=1){const o=i[n],{column:{sorter:r},sortOrder:a}=o,l=DH(r);if(l&&a){const n=l(e,t,a);if(0!==n)return a===AH?n:-n}}return 0})).map((e=>{const o=e[n];return o?Object.assign(Object.assign({},e),{[n]:VH(o,t,n)}):e})):r}function KH(e,t){return e.map((e=>{const n=Object.assign({},e);return n.title=ZB(e.title,t),"children"in n&&(n.children=KH(n.children,t)),n}))}function qH(e){return[o.useCallback((t=>KH(t,e)),[e])]}const UH=Tj(((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:o}=t;return n!==o})),XH=hA(((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:o}=t;return n!==o})),GH=e=>{const{componentCls:t,lineWidth:n,lineType:o,tableBorderColor:r,tableHeaderBg:i,tablePaddingVertical:a,tablePaddingHorizontal:l,calc:c}=e,s="".concat(qr(n)," ").concat(o," ").concat(r),u=(e,o,r)=>({["&".concat(t,"-").concat(e)]:{["> ".concat(t,"-container")]:{["> ".concat(t,"-content, > ").concat(t,"-body")]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{["> ".concat(t,"-expanded-row-fixed")]:{margin:"".concat(qr(c(o).mul(-1).equal()),"\n ").concat(qr(c(c(r).add(n)).mul(-1).equal()))}}}}}});return{["".concat(t,"-wrapper")]:{["".concat(t).concat(t,"-bordered")]:Object.assign(Object.assign(Object.assign({["> ".concat(t,"-title")]:{border:s,borderBottom:0},["> ".concat(t,"-container")]:{borderInlineStart:s,borderTop:s,["\n > ".concat(t,"-content,\n > ").concat(t,"-header,\n > ").concat(t,"-body,\n > ").concat(t,"-summary\n ")]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:s},"> thead":{"> tr:not(:last-child) > th":{borderBottom:s},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{["> ".concat(t,"-cell-fix-right-first::after")]:{borderInlineEnd:s}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{["> ".concat(t,"-expanded-row-fixed")]:{margin:"".concat(qr(c(a).mul(-1).equal())," ").concat(qr(c(c(l).add(n)).mul(-1).equal())),"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:s,content:'""'}}}}}},["&".concat(t,"-scroll-horizontal")]:{["> ".concat(t,"-container > ").concat(t,"-body")]:{"> table > tbody":{["\n > tr".concat(t,"-expanded-row,\n > tr").concat(t,"-placeholder\n ")]:{"> th, > td":{borderInlineEnd:0}}}}}},u("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),u("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{["> ".concat(t,"-footer")]:{border:s,borderTop:0}}),["".concat(t,"-cell")]:{["".concat(t,"-container:first-child")]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:"0 ".concat(qr(n)," 0 ").concat(qr(n)," ").concat(i)}},["".concat(t,"-bordered ").concat(t,"-cell-scrollbar")]:{borderInlineEnd:s}}}},$H=e=>{const{componentCls:t}=e;return{["".concat(t,"-wrapper")]:{["".concat(t,"-cell-ellipsis")]:Object.assign(Object.assign({},Sa),{wordBreak:"keep-all",["\n &".concat(t,"-cell-fix-left-last,\n &").concat(t,"-cell-fix-right-first\n ")]:{overflow:"visible",["".concat(t,"-cell-content")]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},["".concat(t,"-column-title")]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},YH=e=>{const{componentCls:t}=e;return{["".concat(t,"-wrapper")]:{["".concat(t,"-tbody > tr").concat(t,"-placeholder")]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},QH=e=>{const{componentCls:t,antCls:n,motionDurationSlow:o,lineWidth:r,paddingXS:i,lineType:a,tableBorderColor:l,tableExpandIconBg:c,tableExpandColumnWidth:s,borderRadius:u,tablePaddingVertical:d,tablePaddingHorizontal:f,tableExpandedRowBg:p,paddingXXS:h,expandIconMarginTop:m,expandIconSize:g,expandIconHalfInner:v,expandIconScale:b,calc:y}=e,w="".concat(qr(r)," ").concat(a," ").concat(l),x=y(h).sub(r).equal();return{["".concat(t,"-wrapper")]:{["".concat(t,"-expand-icon-col")]:{width:s},["".concat(t,"-row-expand-icon-cell")]:{textAlign:"center",["".concat(t,"-row-expand-icon")]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},["".concat(t,"-row-indent")]:{height:1,float:"left"},["".concat(t,"-row-expand-icon")]:Object.assign(Object.assign({},oS(e)),{position:"relative",float:"left",boxSizing:"border-box",width:g,height:g,padding:0,color:"inherit",lineHeight:qr(g),background:c,border:w,borderRadius:u,transform:"scale(".concat(b,")"),transition:"all ".concat(o),userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:"transform ".concat(o," ease-out"),content:'""'},"&::before":{top:v,insetInlineEnd:x,insetInlineStart:x,height:r},"&::after":{top:x,bottom:x,insetInlineStart:v,width:r,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"}}),["".concat(t,"-row-indent + ").concat(t,"-row-expand-icon")]:{marginTop:m,marginInlineEnd:i},["tr".concat(t,"-expanded-row")]:{"&, &:hover":{"> th, > td":{background:p}},["".concat(n,"-descriptions-view")]:{display:"flex",table:{flex:"auto",width:"auto"}}},["".concat(t,"-expanded-row-fixed")]:{position:"relative",margin:"".concat(qr(y(d).mul(-1).equal())," ").concat(qr(y(f).mul(-1).equal())),padding:"".concat(qr(d)," ").concat(qr(f))}}}},JH=e=>{const{componentCls:t,antCls:n,iconCls:o,tableFilterDropdownWidth:r,tableFilterDropdownSearchWidth:i,paddingXXS:a,paddingXS:l,colorText:c,lineWidth:s,lineType:u,tableBorderColor:d,headerIconColor:f,fontSizeSM:p,tablePaddingHorizontal:h,borderRadius:m,motionDurationSlow:g,colorTextDescription:v,colorPrimary:b,tableHeaderFilterActiveBg:y,colorTextDisabled:w,tableFilterDropdownBg:x,tableFilterDropdownHeight:S,controlItemBgHover:C,controlItemBgActive:k,boxShadowSecondary:E,filterDropdownMenuBg:O,calc:_}=e,P="".concat(n,"-dropdown"),M="".concat(t,"-filter-dropdown"),N="".concat(n,"-tree"),I="".concat(qr(s)," ").concat(u," ").concat(d);return[{["".concat(t,"-wrapper")]:{["".concat(t,"-filter-column")]:{display:"flex",justifyContent:"space-between"},["".concat(t,"-filter-trigger")]:{position:"relative",display:"flex",alignItems:"center",marginBlock:_(a).mul(-1).equal(),marginInline:"".concat(qr(a)," ").concat(qr(_(h).div(2).mul(-1).equal())),padding:"0 ".concat(qr(a)),color:f,fontSize:p,borderRadius:m,cursor:"pointer",transition:"all ".concat(g),"&:hover":{color:v,background:y},"&.active":{color:b}}}},{["".concat(n,"-dropdown")]:{[M]:Object.assign(Object.assign({},Ca(e)),{minWidth:r,backgroundColor:x,borderRadius:m,boxShadow:E,overflow:"hidden",["".concat(P,"-menu")]:{maxHeight:S,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:O,"&:empty::after":{display:"block",padding:"".concat(qr(l)," 0"),color:w,fontSize:p,textAlign:"center",content:'"Not Found"'}},["".concat(M,"-tree")]:{paddingBlock:"".concat(qr(l)," 0"),paddingInline:l,[N]:{padding:0},["".concat(N,"-treenode ").concat(N,"-node-content-wrapper:hover")]:{backgroundColor:C},["".concat(N,"-treenode-checkbox-checked ").concat(N,"-node-content-wrapper")]:{"&, &:hover":{backgroundColor:k}}},["".concat(M,"-search")]:{padding:l,borderBottom:I,"&-input":{input:{minWidth:i},[o]:{color:w}}},["".concat(M,"-checkall")]:{width:"100%",marginBottom:a,marginInlineStart:a},["".concat(M,"-btns")]:{display:"flex",justifyContent:"space-between",padding:"".concat(qr(_(l).sub(s).equal())," ").concat(qr(l)),overflow:"hidden",borderTop:I}})}},{["".concat(n,"-dropdown ").concat(M,", ").concat(M,"-submenu")]:{["".concat(n,"-checkbox-wrapper + span")]:{paddingInlineStart:l,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},ZH=e=>{const{componentCls:t,lineWidth:n,colorSplit:o,motionDurationSlow:r,zIndexTableFixed:i,tableBg:a,zIndexTableSticky:l,calc:c}=e,s=o;return{["".concat(t,"-wrapper")]:{["\n ".concat(t,"-cell-fix-left,\n ").concat(t,"-cell-fix-right\n ")]:{position:"sticky !important",zIndex:i,background:a},["\n ".concat(t,"-cell-fix-left-first::after,\n ").concat(t,"-cell-fix-left-last::after\n ")]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:c(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:"box-shadow ".concat(r),content:'""',pointerEvents:"none"},["".concat(t,"-cell-fix-left-all::after")]:{display:"none"},["\n ".concat(t,"-cell-fix-right-first::after,\n ").concat(t,"-cell-fix-right-last::after\n ")]:{position:"absolute",top:0,bottom:c(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:"box-shadow ".concat(r),content:'""',pointerEvents:"none"},["".concat(t,"-container")]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:c(l).add(1).equal({unit:!1}),width:30,transition:"box-shadow ".concat(r),content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},["".concat(t,"-ping-left")]:{["&:not(".concat(t,"-has-fix-left) ").concat(t,"-container::before")]:{boxShadow:"inset 10px 0 8px -8px ".concat(s)},["\n ".concat(t,"-cell-fix-left-first::after,\n ").concat(t,"-cell-fix-left-last::after\n ")]:{boxShadow:"inset 10px 0 8px -8px ".concat(s)},["".concat(t,"-cell-fix-left-last::before")]:{backgroundColor:"transparent !important"}},["".concat(t,"-ping-right")]:{["&:not(".concat(t,"-has-fix-right) ").concat(t,"-container::after")]:{boxShadow:"inset -10px 0 8px -8px ".concat(s)},["\n ".concat(t,"-cell-fix-right-first::after,\n ").concat(t,"-cell-fix-right-last::after\n ")]:{boxShadow:"inset -10px 0 8px -8px ".concat(s)}},["".concat(t,"-fixed-column-gapped")]:{["\n ".concat(t,"-cell-fix-left-first::after,\n ").concat(t,"-cell-fix-left-last::after,\n ").concat(t,"-cell-fix-right-first::after,\n ").concat(t,"-cell-fix-right-last::after\n ")]:{boxShadow:"none"}}}}},eW=e=>{const{componentCls:t,antCls:n,margin:o}=e;return{["".concat(t,"-wrapper")]:{["".concat(t,"-pagination").concat(n,"-pagination")]:{margin:"".concat(qr(o)," 0")},["".concat(t,"-pagination")]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},tW=e=>{const{componentCls:t,tableRadius:n}=e;return{["".concat(t,"-wrapper")]:{[t]:{["".concat(t,"-title, ").concat(t,"-header")]:{borderRadius:"".concat(qr(n)," ").concat(qr(n)," 0 0")},["".concat(t,"-title + ").concat(t,"-container")]:{borderStartStartRadius:0,borderStartEndRadius:0,["".concat(t,"-header, table")]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:"0 0 ".concat(qr(n)," ").concat(qr(n))}}}}},nW=e=>{const{componentCls:t}=e;return{["".concat(t,"-wrapper-rtl")]:{direction:"rtl",table:{direction:"rtl"},["".concat(t,"-pagination-left")]:{justifyContent:"flex-end"},["".concat(t,"-pagination-right")]:{justifyContent:"flex-start"},["".concat(t,"-row-expand-icon")]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},["".concat(t,"-container")]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},["".concat(t,"-row-indent")]:{float:"right"}}}}},oW=e=>{const{componentCls:t,antCls:n,iconCls:o,fontSizeIcon:r,padding:i,paddingXS:a,headerIconColor:l,headerIconHoverColor:c,tableSelectionColumnWidth:s,tableSelectedRowBg:u,tableSelectedRowHoverBg:d,tableRowHoverBg:f,tablePaddingHorizontal:p,calc:h}=e;return{["".concat(t,"-wrapper")]:{["".concat(t,"-selection-col")]:{width:s,["&".concat(t,"-selection-col-with-dropdown")]:{width:h(s).add(r).add(h(i).div(4)).equal()}},["".concat(t,"-bordered ").concat(t,"-selection-col")]:{width:h(s).add(h(a).mul(2)).equal(),["&".concat(t,"-selection-col-with-dropdown")]:{width:h(s).add(r).add(h(i).div(4)).add(h(a).mul(2)).equal()}},["\n table tr th".concat(t,"-selection-column,\n table tr td").concat(t,"-selection-column,\n ").concat(t,"-selection-column\n ")]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",["".concat(n,"-radio-wrapper")]:{marginInlineEnd:0}},["table tr th".concat(t,"-selection-column").concat(t,"-cell-fix-left")]:{zIndex:e.zIndexTableFixed+1},["table tr th".concat(t,"-selection-column::after")]:{backgroundColor:"transparent !important"},["".concat(t,"-selection")]:{position:"relative",display:"inline-flex",flexDirection:"column"},["".concat(t,"-selection-extra")]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:"all ".concat(e.motionDurationSlow),marginInlineStart:"100%",paddingInlineStart:qr(h(p).div(4).equal()),[o]:{color:l,fontSize:r,verticalAlign:"baseline","&:hover":{color:c}}},["".concat(t,"-tbody")]:{["".concat(t,"-row")]:{["&".concat(t,"-row-selected")]:{["> ".concat(t,"-cell")]:{background:u,"&-row-hover":{background:d}}},["> ".concat(t,"-cell-row-hover")]:{background:f}}}}}},rW=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:o}=e,r=(e,r,i,a)=>({["".concat(t).concat(t,"-").concat(e)]:{fontSize:a,["\n ".concat(t,"-title,\n ").concat(t,"-footer,\n ").concat(t,"-cell,\n ").concat(t,"-thead > tr > th,\n ").concat(t,"-tbody > tr > th,\n ").concat(t,"-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n ")]:{padding:"".concat(qr(r)," ").concat(qr(i))},["".concat(t,"-filter-trigger")]:{marginInlineEnd:qr(o(i).div(2).mul(-1).equal())},["".concat(t,"-expanded-row-fixed")]:{margin:"".concat(qr(o(r).mul(-1).equal())," ").concat(qr(o(i).mul(-1).equal()))},["".concat(t,"-tbody")]:{["".concat(t,"-wrapper:only-child ").concat(t)]:{marginBlock:qr(o(r).mul(-1).equal()),marginInline:"".concat(qr(o(n).sub(i).equal())," ").concat(qr(o(i).mul(-1).equal()))}},["".concat(t,"-selection-extra")]:{paddingInlineStart:qr(o(i).div(4).equal())}}});return{["".concat(t,"-wrapper")]:Object.assign(Object.assign({},r("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),r("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},iW=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:o,headerIconColor:r,headerIconHoverColor:i}=e;return{["".concat(t,"-wrapper")]:{["".concat(t,"-thead th").concat(t,"-column-has-sorters")]:{outline:"none",cursor:"pointer",transition:"all ".concat(e.motionDurationSlow),"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},["\n &".concat(t,"-cell-fix-left:hover,\n &").concat(t,"-cell-fix-right:hover\n ")]:{background:e.tableFixedHeaderSortActiveBg}},["".concat(t,"-thead th").concat(t,"-column-sort")]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},["td".concat(t,"-column-sort")]:{background:e.tableBodySortBg},["".concat(t,"-column-title")]:{position:"relative",zIndex:1,flex:1},["".concat(t,"-column-sorters")]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},["".concat(t,"-column-sorter")]:{marginInlineStart:n,color:r,fontSize:0,transition:"color ".concat(e.motionDurationSlow),"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:o,"&.active":{color:e.colorPrimary}},["".concat(t,"-column-sorter-up + ").concat(t,"-column-sorter-down")]:{marginTop:"-0.3em"}},["".concat(t,"-column-sorters:hover ").concat(t,"-column-sorter")]:{color:i}}}},aW=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:o,tableScrollThumbBgHover:r,tableScrollThumbSize:i,tableScrollBg:a,zIndexTableSticky:l,stickyScrollBarBorderRadius:c,lineWidth:s,lineType:u,tableBorderColor:d}=e,f="".concat(qr(s)," ").concat(u," ").concat(d);return{["".concat(t,"-wrapper")]:{["".concat(t,"-sticky")]:{"&-holder":{position:"sticky",zIndex:l,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:"".concat(qr(i)," !important"),zIndex:l,display:"flex",alignItems:"center",background:a,borderTop:f,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:o,borderRadius:c,transition:"all ".concat(e.motionDurationSlow,", transform none"),position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:r}}}}}}},lW=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:o,calc:r}=e,i="".concat(qr(n)," ").concat(e.lineType," ").concat(o);return{["".concat(t,"-wrapper")]:{["".concat(t,"-summary")]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:i}}},["div".concat(t,"-summary")]:{boxShadow:"0 ".concat(qr(r(n).mul(-1).equal())," 0 ").concat(o)}}}},cW=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:o,lineType:r,tableBorderColor:i,calc:a}=e,l="".concat(qr(o)," ").concat(r," ").concat(i),c="".concat(t,"-expanded-row-cell");return{["".concat(t,"-wrapper")]:{["".concat(t,"-tbody-virtual")]:{["".concat(t,"-row:not(tr)")]:{display:"flex",boxSizing:"border-box",width:"100%"},["".concat(t,"-cell")]:{borderBottom:l,transition:"background ".concat(n)},["".concat(t,"-expanded-row")]:{["".concat(c).concat(c,"-fixed")]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:"calc(var(--virtual-width) - ".concat(qr(o),")"),borderInlineEnd:"none"}}},["".concat(t,"-bordered")]:{["".concat(t,"-tbody-virtual")]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:l,position:"absolute"},["".concat(t,"-cell")]:{borderInlineEnd:l,["&".concat(t,"-cell-fix-right-first:before")]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:a(o).mul(-1).equal(),borderInlineStart:l}}},["&".concat(t,"-virtual")]:{["".concat(t,"-placeholder ").concat(t,"-cell")]:{borderInlineEnd:l,borderBottom:l}}}}}},sW=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:o,tablePaddingHorizontal:r,tableExpandColumnWidth:i,lineWidth:a,lineType:l,tableBorderColor:c,tableFontSize:s,tableBg:u,tableRadius:d,tableHeaderTextColor:f,motionDurationMid:p,tableHeaderBg:h,tableHeaderCellSplitColor:m,tableFooterTextColor:g,tableFooterBg:v,calc:b}=e,y="".concat(qr(a)," ").concat(l," ").concat(c);return{["".concat(t,"-wrapper")]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[t]:Object.assign(Object.assign({},Ca(e)),{fontSize:s,background:u,borderRadius:"".concat(qr(d)," ").concat(qr(d)," 0 0")}),table:{width:"100%",textAlign:"start",borderRadius:"".concat(qr(d)," ").concat(qr(d)," 0 0"),borderCollapse:"separate",borderSpacing:0},["\n ".concat(t,"-cell,\n ").concat(t,"-thead > tr > th,\n ").concat(t,"-tbody > tr > th,\n ").concat(t,"-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n ")]:{position:"relative",padding:"".concat(qr(o)," ").concat(qr(r)),overflowWrap:"break-word"},["".concat(t,"-title")]:{padding:"".concat(qr(o)," ").concat(qr(r))},["".concat(t,"-thead")]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:f,fontWeight:n,textAlign:"start",background:h,borderBottom:y,transition:"background ".concat(p," ease"),"&[colspan]:not([colspan='1'])":{textAlign:"center"},["&:not(:last-child):not(".concat(t,"-selection-column):not(").concat(t,"-row-expand-icon-cell):not([colspan])::before")]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:m,transform:"translateY(-50%)",transition:"background-color ".concat(p),content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},["".concat(t,"-tbody")]:{"> tr":{"> th, > td":{transition:"background ".concat(p,", border-color ").concat(p),borderBottom:y,["\n > ".concat(t,"-wrapper:only-child,\n > ").concat(t,"-expanded-row-fixed > ").concat(t,"-wrapper:only-child\n ")]:{[t]:{marginBlock:qr(b(o).mul(-1).equal()),marginInline:"".concat(qr(b(i).sub(r).equal()),"\n ").concat(qr(b(r).mul(-1).equal())),["".concat(t,"-tbody > tr:last-child > td")]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:f,fontWeight:n,textAlign:"start",background:h,borderBottom:y,transition:"background ".concat(p," ease")}}},["".concat(t,"-footer")]:{padding:"".concat(qr(o)," ").concat(qr(r)),color:g,background:v}})}},uW=Oc("Table",(e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:o,controlInteractiveSize:r,headerBg:i,headerColor:a,headerSortActiveBg:l,headerSortHoverBg:c,bodySortBg:s,rowHoverBg:u,rowSelectedBg:d,rowSelectedHoverBg:f,rowExpandedBg:p,cellPaddingBlock:h,cellPaddingInline:m,cellPaddingBlockMD:g,cellPaddingInlineMD:v,cellPaddingBlockSM:b,cellPaddingInlineSM:y,borderColor:w,footerBg:x,footerColor:S,headerBorderRadius:C,cellFontSize:k,cellFontSizeMD:E,cellFontSizeSM:O,headerSplitColor:_,fixedHeaderSortActiveBg:P,headerFilterHoverBg:M,filterDropdownBg:N,expandIconBg:I,selectionColumnWidth:R,stickyScrollBarBg:T,calc:j}=e,A=Ga(e,{tableFontSize:k,tableBg:o,tableRadius:C,tablePaddingVertical:h,tablePaddingHorizontal:m,tablePaddingVerticalMiddle:g,tablePaddingHorizontalMiddle:v,tablePaddingVerticalSmall:b,tablePaddingHorizontalSmall:y,tableBorderColor:w,tableHeaderTextColor:a,tableHeaderBg:i,tableFooterTextColor:S,tableFooterBg:x,tableHeaderCellSplitColor:_,tableHeaderSortBg:l,tableHeaderSortHoverBg:c,tableBodySortBg:s,tableFixedHeaderSortActiveBg:P,tableHeaderFilterActiveBg:M,tableFilterDropdownBg:N,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,zIndexTableFixed:2,zIndexTableSticky:3,tableFontSizeMiddle:E,tableFontSizeSmall:O,tableSelectionColumnWidth:R,tableExpandIconBg:I,tableExpandColumnWidth:j(r).add(j(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:T,tableScrollThumbBgHover:t,tableScrollBg:n});return[sW(A),eW(A),lW(A),iW(A),JH(A),GH(A),tW(A),QH(A),lW(A),YH(A),oW(A),ZH(A),aW(A),$H(A),rW(A),nW(A),cW(A)]}),(e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:o,colorFillSecondary:r,colorFillContent:i,controlItemBgActive:a,controlItemBgActiveHover:l,padding:c,paddingSM:s,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:f,controlHeight:p,colorTextPlaceholder:h,fontSize:m,fontSizeSM:g,lineHeight:v,lineWidth:b,colorIcon:y,colorIconHover:w,opacityLoading:x,controlInteractiveSize:S}=e,C=new Ul(r).onBackground(n).toHexShortString(),k=new Ul(i).onBackground(n).toHexShortString(),E=new Ul(t).onBackground(n).toHexShortString(),O=new Ul(y),_=new Ul(w),P=S/2-b,M=2*P+3*b;return{headerBg:E,headerColor:o,headerSortActiveBg:C,headerSortHoverBg:k,bodySortBg:E,rowHoverBg:E,rowSelectedBg:a,rowSelectedHoverBg:l,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:s,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:f,footerBg:E,footerColor:o,cellFontSize:m,cellFontSizeMD:m,cellFontSizeSM:m,headerSplitColor:d,fixedHeaderSortActiveBg:C,headerFilterHoverBg:i,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:h,stickyScrollBarBorderRadius:100,expandIconMarginTop:(m*v-3*b)/2-Math.ceil((1.4*g-3*b)/2),headerIconColor:O.clone().setAlpha(O.getAlpha()*x).toRgbString(),headerIconHoverColor:_.clone().setAlpha(_.getAlpha()*x).toRgbString(),expandIconHalfInner:P,expandIconSize:M,expandIconScale:S/M}}),{unitless:{expandIconScale:!0}}),dW=[],fW=(e,t)=>{var n,r;const{prefixCls:i,className:a,rootClassName:l,style:c,size:s,bordered:u,dropdownPrefixCls:d,dataSource:f,pagination:p,rowSelection:h,rowKey:m="key",rowClassName:g,columns:v,children:b,childrenColumnName:y,onChange:w,getPopupContainer:x,loading:S,expandIcon:C,expandable:k,expandedRowRender:E,expandIconColumnIndex:O,indentSize:_,scroll:P,sortDirections:M,locale:N,showSorterTooltip:I=!0,virtual:R}=e;ys("Table");const T=o.useMemo((()=>v||dj(b)),[v,b]),j=o.useMemo((()=>T.some((e=>e.responsive))),[T]),A=FL(j),z=o.useMemo((()=>{const e=new Set(Object.keys(A).filter((e=>A[e])));return T.filter((t=>!t.responsive||t.responsive.some((t=>e.has(t)))))}),[T,A]),L=Zo(e,["className","style","columns"]),{locale:D=hu,direction:B,table:F,renderEmpty:H,getPrefixCls:W,getPopupContainer:V}=o.useContext(nl),K=$c(s),q=Object.assign(Object.assign({},D.Table),N),U=f||dW,X=W("table",i),G=W("dropdown",d),[,$]=hc(),Y=Bc(X),[Q,J,Z]=uW(X,Y),ee=Object.assign(Object.assign({childrenColumnName:y,expandIconColumnIndex:O},k),{expandIcon:null!==(n=null===k||void 0===k?void 0:k.expandIcon)&&void 0!==n?n:null===(r=null===F||void 0===F?void 0:F.expandable)||void 0===r?void 0:r.expandIcon}),{childrenColumnName:te="children"}=ee,ne=o.useMemo((()=>U.some((e=>null===e||void 0===e?void 0:e[te]))?"nest":E||k&&k.expandedRowRender?"row":null),[U]),oe={body:o.useRef()},re=function(e){return(t,n)=>{const o=t.querySelector(".".concat(e,"-container"));let r=n;if(o){const e=getComputedStyle(o);r=n-parseInt(e.borderLeftWidth,10)-parseInt(e.borderRightWidth,10)}return r}}(X),ie=o.useRef(null),ae=o.useRef(null);OL(t,(()=>Object.assign(Object.assign({},ae.current),{nativeElement:ie.current})));const le=o.useMemo((()=>"function"===typeof m?m:e=>null===e||void 0===e?void 0:e[m]),[m]),[ce]=function(e,t,n){const r=o.useRef({});return[function(o){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){const i=new Map;function a(e){e.forEach(((e,o)=>{const r=n(e,o);i.set(r,e),e&&"object"===typeof e&&t in e&&a(e[t]||[])}))}a(e),r.current={data:e,childrenColumnName:t,kvMap:i,getRowKey:n}}return r.current.kvMap.get(o)}]}(U,te,le),se={},ue=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var o,r,i;const a=Object.assign(Object.assign({},se),e);n&&(null===(o=se.resetPagination)||void 0===o||o.call(se),(null===(r=a.pagination)||void 0===r?void 0:r.current)&&(a.pagination.current=1),p&&p.onChange&&p.onChange(1,null===(i=a.pagination)||void 0===i?void 0:i.pageSize)),P&&!1!==P.scrollToFirstRowOnChange&&oe.body.current&&PL(0,{getContainer:()=>oe.body.current}),null===w||void 0===w||w(a.pagination,a.filters,a.sorter,{currentDataSource:SH(VH(U,a.sorterStates,te),a.filterStates,te),action:t})},[de,fe,pe,he]=function(e){let{prefixCls:t,mergedColumns:n,onSorterChange:r,sortDirections:i,tableLocale:a,showSorterTooltip:l}=e;const[c,s]=o.useState(BH(n,!0)),u=o.useMemo((()=>{let e=!0;const t=BH(n,!1);if(!t.length)return c;const o=[];function r(t){e?o.push(t):o.push(Object.assign(Object.assign({},t),{sortOrder:null}))}let i=null;return t.forEach((t=>{null===i?(r(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:i=!0)):(i&&!1!==t.multiplePriority||(e=!1),r(t))})),o}),[n,c]),d=o.useMemo((()=>{const e=u.map((e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n}}));return{sortColumns:e,sortColumn:e[0]&&e[0].column,sortOrder:e[0]&&e[0].order}}),[u]);function f(e){let t;t=!1!==e.multiplePriority&&u.length&&!1!==u[0].multiplePriority?[].concat(Re(u.filter((t=>{let{key:n}=t;return n!==e.key}))),[e]):[e],s(t),r(WH(t),t)}return[e=>FH(t,e,u,f,i,a,l),u,d,()=>WH(u)]}({prefixCls:X,mergedColumns:z,onSorterChange:(e,t)=>{ue({sorter:e,sorterStates:t},"sort",!1)},sortDirections:M||["ascend","descend"],tableLocale:q,showSorterTooltip:I}),me=o.useMemo((()=>VH(U,fe,te)),[U,fe]);se.sorter=he(),se.sorterStates=fe;const[ge,ve,be]=kH({prefixCls:X,locale:q,dropdownPrefixCls:G,mergedColumns:z,onFilterChange:(e,t)=>{ue({filters:e,filterStates:t},"filter",!0)},getPopupContainer:x||V,rootClassName:je()(l,Y)}),ye=SH(me,ve,te);se.filters=be,se.filterStates=ve;const we=o.useMemo((()=>{const e={};return Object.keys(be).forEach((t=>{null!==be[t]&&(e[t]=be[t])})),Object.assign(Object.assign({},pe),{filters:e})}),[pe,be]),[xe]=qH(we),[Se,Ce]=PH(ye.length,((e,t)=>{ue({pagination:Object.assign(Object.assign({},se.pagination),{current:e,pageSize:t})},"paginate")}),p);se.pagination=!1===p?{}:function(e,t){const n={current:e.current,pageSize:e.pageSize},o=t&&"object"===typeof t?t:{};return Object.keys(o).forEach((t=>{const o=e[t];"function"!==typeof o&&(n[t]=o)})),n}(Se,p),se.resetPagination=Ce;const ke=o.useMemo((()=>{if(!1===p||!Se.pageSize)return ye;const{current:e=1,total:t,pageSize:n=_H}=Se;return ye.length<t?ye.length>n?ye.slice((e-1)*n,e*n):ye:ye.slice((e-1)*n,e*n)}),[!!p,ye,Se&&Se.current,Se&&Se.pageSize,Se&&Se.total]),[Ee,Oe]=EL({prefixCls:X,data:ye,pageData:ke,getRowKey:le,getRecordByKey:ce,expandType:ne,childrenColumnName:te,locale:q,getPopupContainer:x||V},h);ee.__PARENT_RENDER_ICON__=ee.expandIcon,ee.expandIcon=ee.expandIcon||C||YB(q),"nest"===ne&&void 0===ee.expandIconColumnIndex?ee.expandIconColumnIndex=h?1:0:ee.expandIconColumnIndex>0&&h&&(ee.expandIconColumnIndex-=1),"number"!==typeof ee.indentSize&&(ee.indentSize="number"===typeof _?_:15);const _e=o.useCallback((e=>xe(Ee(ge(de(e))))),[de,ge,Ee]);let Pe,Me,Ne;if(!1!==p&&(null===Se||void 0===Se?void 0:Se.total)){let e;e=Se.size?Se.size:"small"===K||"middle"===K?"small":void 0;const t=t=>o.createElement(FB,Object.assign({},Se,{className:je()("".concat(X,"-pagination ").concat(X,"-pagination-").concat(t),Se.className),size:e})),n="rtl"===B?"left":"right",{position:r}=Se;if(null!==r&&Array.isArray(r)){const e=r.find((e=>e.includes("top"))),o=r.find((e=>e.includes("bottom"))),i=r.every((e=>"none"==="".concat(e)));e||o||i||(Me=t(n)),e&&(Pe=t(e.toLowerCase().replace("top",""))),o&&(Me=t(o.toLowerCase().replace("bottom","")))}else Me=t(n)}"boolean"===typeof S?Ne={spinning:S}:"object"===typeof S&&(Ne=Object.assign({spinning:!0},S));const Ie=je()(Z,Y,"".concat(X,"-wrapper"),null===F||void 0===F?void 0:F.className,{["".concat(X,"-wrapper-rtl")]:"rtl"===B},a,l,J),Te=Object.assign(Object.assign({},null===F||void 0===F?void 0:F.style),c),Ae=N&&N.emptyText||(null===H||void 0===H?void 0:H("Table"))||o.createElement(DL,{componentName:"Table"}),ze=R?XH:UH,Le={},De=o.useMemo((()=>{const{fontSize:e,lineHeight:t,padding:n,paddingXS:o,paddingSM:r}=$,i=Math.floor(e*t);switch(K){case"large":return 2*n+i;case"small":return 2*o+i;default:return 2*r+i}}),[$,K]);return R&&(Le.listItemHeight=De),Q(o.createElement("div",{ref:ie,className:Ie,style:Te},o.createElement($B,Object.assign({spinning:!1},Ne),Pe,o.createElement(ze,Object.assign({},Le,L,{ref:ae,columns:z,direction:B,expandable:ee,prefixCls:X,className:je()({["".concat(X,"-middle")]:"middle"===K,["".concat(X,"-small")]:"small"===K,["".concat(X,"-bordered")]:u,["".concat(X,"-empty")]:0===U.length},Z,Y,J),data:ke,rowKey:le,rowClassName:(e,t,n)=>{let o;return o="function"===typeof g?je()(g(e,t,n)):je()(g),je()({["".concat(X,"-row-selected")]:Oe.has(le(e,t))},o)},emptyText:Ae,internalHooks:mT,internalRefs:oe,transformColumns:_e,getContainerWidth:re})),Me)))},pW=o.forwardRef(fW),hW=(e,t)=>{const n=o.useRef(0);return n.current+=1,o.createElement(pW,Object.assign({},e,{ref:t,_renderTimes:n.current}))},mW=o.forwardRef(hW);mW.SELECTION_COLUMN=yL,mW.EXPAND_COLUMN=hT,mW.SELECTION_ALL=wL,mW.SELECTION_INVERT=xL,mW.SELECTION_NONE=SL,mW.Column=mA,mW.ColumnGroup=gA,mW.Summary=DT;const gW=mW;var vW=n(854),bW=n.n(vW);const yW=[{key:"1",title:"John Brown",domain:32,code:"New York No. 1 Lake Park",ffields:"A",hfields:"Avjhsdxtdfchvgjbknlzsdxcfgvhbjnkmlsxdfcghvbjnkm lsrxdfcgvhbjnkmlzesrdxtcfyvghubjnklm,;.rdtcfgvhbjnkml,;"},{key:"2",title:"Joe Black",domain:42,code:"London No. 1 Lake Park",ffields:"B",hfields:"B"},{key:"3",title:"Jim Green",domain:32,code:"Sydney No. 1 Lake Park",ffields:"C",hfields:"C"},{key:"4",title:"Jim Red",domain:32,code:"London No. 2 Lake Park",ffields:"D",hfields:"D"}],wW=()=>{const[e,t]=(0,o.useState)(""),[n,r]=(0,o.useState)(""),i=(0,o.useRef)(null),a=(e,n,o)=>{n(),t(e[0]),r(o)},l=o=>({filterDropdown:e=>{let{setSelectedKeys:n,selectedKeys:l,confirm:c,clearFilters:s,close:u}=e;return(0,sg.jsxs)("div",{style:{padding:8},onKeyDown:e=>e.stopPropagation(),children:[(0,sg.jsx)(jm,{ref:i,placeholder:"Search ".concat(o),value:l[0],onChange:e=>n(e.target.value?[e.target.value]:[]),onPressEnter:()=>a(l,c,o),style:{marginBottom:8,display:"block"}}),(0,sg.jsxs)(zy,{children:[(0,sg.jsx)(gm,{type:"primary",onClick:()=>a(l,c,o),icon:(0,sg.jsx)(sT,{}),size:"small",style:{width:90},children:"Search"}),(0,sg.jsx)(gm,{onClick:()=>{s&&(e=>{e(),t("")})(s)},size:"small",style:{width:90},children:"Reset"}),(0,sg.jsx)(gm,{type:"link",size:"small",onClick:()=>{c({closeDropdown:!1}),t(l[0]),r(o)},children:"Filter"}),(0,sg.jsx)(gm,{type:"link",size:"small",onClick:()=>{u()},children:"close"})]})]})},filterIcon:e=>(0,sg.jsx)(sT,{style:{color:e?"#1677ff":void 0}}),onFilter:(e,t)=>t[o].toString().toLowerCase().includes(e.toLowerCase()),onFilterDropdownOpenChange:e=>{e&&setTimeout((()=>{var e;return null===(e=i.current)||void 0===e?void 0:e.select()}),100)},render:t=>n===o?(0,sg.jsx)(bW(),{highlightStyle:{backgroundColor:"#ffc069",padding:0},searchWords:[e],autoEscape:!0,textToHighlight:t?t.toString():""}):t}),c=[{title:"Title",dataIndex:"title",key:"title",fixed:"left",width:"20%",...l("title"),sorter:(e,t)=>e.title.length-t.title.length,sortDirections:["descend","ascend"]},{title:"Domain",dataIndex:"domain",key:"domain",fixed:"left",width:"20%",...l("domain"),sorter:(e,t)=>e.domain.length-t.domain.length,sortDirections:["descend","ascend"]},{title:"Code",dataIndex:"code",key:"code",width:"10%",...l("code"),sorter:(e,t)=>e.code.length-t.code.length,sortDirections:["descend","ascend"]},{title:"Form Fields",dataIndex:"ffields",key:"ffields",width:"20%",...l("ffields"),sorter:(e,t)=>e.ffields.length-t.ffields.length,sortDirections:["descend","ascend"]},{title:"Hidden Fields",dataIndex:"hfields",key:"hfields",width:"30%",...l("hfields"),sorter:(e,t)=>e.hfields.length-t.hfields.length,sortDirections:["descend","ascend"]}];return(0,sg.jsxs)("div",{children:[(0,sg.jsx)("div",{children:(0,sg.jsx)(LS.Title,{level:4,style:{marginTop:"auto"},children:"Third party Interation"})}),(0,sg.jsx)(pT,{}),(0,sg.jsx)(Ax,{children:(0,sg.jsx)(gW,{columns:c,dataSource:yW,scroll:{x:1e3}})})]})},xW=e=>({filterDropdown:t=>{let{setSelectedKeys:n,selectedKeys:o,confirm:r,clearFilters:i,close:a}=t;return(0,sg.jsxs)("div",{style:{padding:8},onKeyDown:e=>e.stopPropagation(),children:[(0,sg.jsx)(jm,{autoFocus:!0,placeholder:"Search ".concat(e),value:o,onChange:e=>n(e.target.value?[e.target.value]:[]),onPressEnter:()=>{r()},style:{marginBottom:8,display:"block"}}),(0,sg.jsxs)(zy,{children:[(0,sg.jsx)(gm,{type:"primary",onClick:()=>r(),icon:(0,sg.jsx)(sT,{}),size:"small",style:{width:90},children:"Search"}),(0,sg.jsx)(gm,{onClick:()=>{i(),r()},size:"small",style:{width:90},children:"Reset"})]})]})},filterIcon:e=>(0,sg.jsx)(sT,{style:{color:e?"#1677ff":"#000"}}),onFilter:(t,n)=>n[e].toString().toLowerCase().includes(t.toLowerCase())}),SW=(e,t,n)=>e[n].localeCompare(t[n]),CW=()=>{const[e,t]=(0,o.useState)([]),[n,r]=(0,o.useState)(!0);(0,o.useEffect)((()=>{i()}),[]);const i=async()=>{HI.get("https://universitysolutions.in/univadmin/app.php?a=getAdmissionDetails&univcode=097").then((e=>{if(0!=e.data.error_code)return alert(e.data.data.msg),void r(!1);t(e.data.data),r(!1)}))},a=[{title:"Sl. No.",dataIndex:"slno",align:"center",width:"10%"},{title:"App. No.",dataIndex:"appno",align:"center",...xW("appno"),sorter:(e,t)=>SW(e,t,"appno"),sortDirections:["descend","ascend"],width:"15%"},{title:"Name",dataIndex:"name",...xW("name"),sorter:(e,t)=>SW(e,t,"name"),sortDirections:["descend","ascend"],width:"25%"},{title:"Mobile No.",dataIndex:"mobile",...xW("mobile"),sorter:(e,t)=>SW(e,t,"mobile"),sortDirections:["descend","ascend"],align:"center",width:"15%"},{title:"Degree",dataIndex:"degree",...xW("degree"),sorter:(e,t)=>SW(e,t,"degree"),sortDirections:["descend","ascend"],width:"30%"},{title:"Status",dataIndex:"status",...xW("status"),sorter:(e,t)=>SW(e,t,"status"),sortDirections:["descend","ascend"],align:"center",width:"10%"}],l=e.map(((e,t)=>({key:t,slno:t+1,appno:e.fappno,name:e.fname,degree:e.fdegree,mobile:e.fmobile,status:"T"==e.fpaymentstatus?"Registration Completed":"R"==e.fpaymentstatus?"Applied":""})));return(0,sg.jsx)(Tz,{theme:{components:{Table:{borderColor:"#001529",headerBg:"#ACDDDE"}}},children:(0,sg.jsx)(gW,{scroll:{y:400},bordered:!0,columns:a,loading:n,dataSource:l,size:"small"})})},{Header:kW,Content:EW,Sider:OW}=Wg,_W=()=>{const e=ee(),t=lg(),{token:{colorBgContainer:n,borderRadiusLG:o}}=Yg.useToken(),r=()=>{t((e=>(localStorage.removeItem("logininfo"),e(localStorage.getItem("root")),{type:"LOGOUT"}))(e))};return(0,sg.jsxs)(Wg,{children:[(0,sg.jsxs)(kW,{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,sg.jsx)("div",{className:"demo-logo",children:(0,sg.jsx)("img",{src:cg,width:50,height:50,style:{marginTop:"20px"}})}),(0,sg.jsx)(gm,{onClick:()=>r(),children:"Logout"})]}),(0,sg.jsxs)(Wg,{children:[(0,sg.jsx)(OW,{width:200,style:{background:n},children:(0,sg.jsxs)(_y,{mode:"inline",defaultSelectedKeys:["1"],children:[(0,sg.jsx)(_y.Item,{children:(0,sg.jsx)(Oe,{to:"/dashboard",children:"Dashboard"})},"1"),(0,sg.jsx)(_y.Item,{children:(0,sg.jsx)(Oe,{to:"/adm-details",children:"Admission Details"})},"2")]})}),(0,sg.jsx)(Wg,{style:{padding:"12px 12px"},children:(0,sg.jsx)(EW,{style:{padding:24,margin:0,minHeight:280,background:n,borderRadius:o},children:(0,sg.jsxs)(ve,{children:[(0,sg.jsx)(me,{path:"/dashboard",element:(0,sg.jsx)(WI,{})}),(0,sg.jsx)(me,{path:"/adm-details",element:(0,sg.jsx)(CW,{})}),(0,sg.jsx)(me,{path:"/ctplQF",element:(0,sg.jsx)(wW,{})}),(0,sg.jsx)(me,{path:"*",element:(0,sg.jsx)(dg,{})})]})})})]})]})},PW=()=>{const e=Qm((e=>e.AuthReducer.userData));Qm((e=>console.log()));return(0,sg.jsx)(Ce,{children:null===e?(0,sg.jsx)(fg,{}):(0,sg.jsx)(_W,{})})};function MW(e){return"Minified Redux error #".concat(e,"; visit https://redux.js.org/Errors?code=").concat(e," for the full message or use the non-minified dev environment for full errors. ")}var NW=(()=>"function"===typeof Symbol&&Symbol.observable||"@@observable")(),IW=()=>Math.random().toString(36).substring(7).split("").join("."),RW={INIT:"@@redux/INIT".concat(IW()),REPLACE:"@@redux/REPLACE".concat(IW()),PROBE_UNKNOWN_ACTION:()=>"@@redux/PROBE_UNKNOWN_ACTION".concat(IW())};function TW(e){if("object"!==typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function jW(e,t,n){if("function"!==typeof e)throw new Error(MW(2));if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(MW(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(MW(1));return n(jW)(e,t)}let o=e,r=t,i=new Map,a=i,l=0,c=!1;function s(){a===i&&(a=new Map,i.forEach(((e,t)=>{a.set(t,e)})))}function u(){if(c)throw new Error(MW(3));return r}function d(e){if("function"!==typeof e)throw new Error(MW(4));if(c)throw new Error(MW(5));let t=!0;s();const n=l++;return a.set(n,e),function(){if(t){if(c)throw new Error(MW(6));t=!1,s(),a.delete(n),i=null}}}function f(e){if(!TW(e))throw new Error(MW(7));if("undefined"===typeof e.type)throw new Error(MW(8));if("string"!==typeof e.type)throw new Error(MW(17));if(c)throw new Error(MW(9));try{c=!0,r=o(r,e)}finally{c=!1}return(i=a).forEach((e=>{e()})),e}f({type:RW.INIT});return{dispatch:f,subscribe:d,getState:u,replaceReducer:function(e){if("function"!==typeof e)throw new Error(MW(10));o=e,f({type:RW.REPLACE})},[NW]:function(){const e=d;return{subscribe(t){if("object"!==typeof t||null===t)throw new Error(MW(11));function n(){const e=t;e.next&&e.next(u())}n();return{unsubscribe:e(n)}},[NW](){return this}}}}}function AW(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?e=>e:1===t.length?t[0]:t.reduce(((e,t)=>function(){return e(t(...arguments))}))}function zW(e){return t=>{let{dispatch:n,getState:o}=t;return t=>r=>"function"===typeof r?r(n,o,e):t(r)}}var LW=zW();const DW=localStorage.getItem("logininfo"),BW={userData:DW?JSON.parse(DW):null},FW=function(e){const t=Object.keys(e),n={};for(let i=0;i<t.length;i++){const o=t[i];0,"function"===typeof e[o]&&(n[o]=e[o])}const o=Object.keys(n);let r;try{!function(e){Object.keys(e).forEach((t=>{const n=e[t];if("undefined"===typeof n(void 0,{type:RW.INIT}))throw new Error(MW(12));if("undefined"===typeof n(void 0,{type:RW.PROBE_UNKNOWN_ACTION()}))throw new Error(MW(13))}))}(n)}catch(Qc){r=Qc}return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(r)throw r;let i=!1;const a={};for(let r=0;r<o.length;r++){const l=o[r],c=n[l],s=e[l],u=c(s,t);if("undefined"===typeof u){t&&t.type;throw new Error(MW(14))}a[l]=u,i=i||u!==s}return i=i||o.length!==Object.keys(e).length,i?a:e}}({AuthReducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:BW,t=arguments.length>1?arguments[1]:void 0;const{type:n,payload:o,loading:r}=t;switch(t.type){case"USER_INFO":return{...e,userData:t.payload};case"CLEAR_USERINFO":case"LOGOUT":return{...e,userData:null};case"LOADING":return{...e,loading:r};default:return e}}}),HW=(e,t)=>("LOGOUT"===t.type&&(e=void 0),FW(e,t)),WW=[LW],VW=window.REDUX_DEVTOOLS_EXTENSION_COMPOSE||AW,KW=(qW=HW,UW=VW(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>(n,o)=>{const r=e(n,o);let i=()=>{throw new Error(MW(15))};const a={getState:r.getState,dispatch:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return i(e,...n)}},l=t.map((e=>e(a)));return i=AW(...l)(r.dispatch),{...r,dispatch:i}}}(...WW)),jW(qW,UW,XW));var qW,UW,XW;i.createRoot(document.getElementById("root")).render((0,sg.jsx)(ng,{store:KW,children:(0,sg.jsx)(PW,{})}))})()})();
//# sourceMappingURL=main.79185df9.js.map
|